From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] E: incoming i586 reject: ruby-xmpp4r-0.4-alt1
Date: Tue, 2 Sep 2008 12:48:02 +0300
Message-ID: <20080902094801.GC5135@localhost.localdomain> (raw)
In-Reply-To: <20080902093738.GO6477@altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 2233 bytes --]
On Tue, Sep 02, 2008 at 01:37:38PM +0400, Alexey Tourbin wrote:
> On Tue, Sep 02, 2008 at 12:30:12PM +0300, Kirill A. Shutemov wrote:
> > On Tue, Sep 02, 2008 at 01:25:17PM +0400, Alexey I. Froloff wrote:
> > > * QA Team Upravdom Robot <upravdom@> [080902 13:05]:
> > > > Dear Alexey I. Froloff (Sir Raorn)!
> > > > The ruby-xmpp4r-0.4-alt1 package has been rejected from Sisyphus incoming
> > > > for i586 architecture.
> > >
> > > > ./test/bytestreams/../../lib/xmpp4r/bytestreams/helper/socks5bytestreams/server.rb:35:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)
> > >
> > > * QA Team Upravdom Robot <upravdom@> [080902 13:05]:
> > > > Dear Alexey I. Froloff (Sir Raorn)!
> > > > The ruby-xmpp4r-0.4-alt1 package passed through Sisyphus incoming rebuild
> > > > for x86_64 architecture.
> > >
> > > Мне надо с этим что-то делать?
> > >
> > > Тесты создают сервер на порту 65005, видимо собиралось это
> > > одновременно и на одном хосту. Надо такие тесты вырезать?
> >
> > перехвати Errno::EADDRINUSE и сделай +=1 к порту.
>
> А при одновременной сборке на трёх архитектурах? Можно попробовать
> задействовать фактор случайности. С другой стороны, фактор случайности
> привносить и нежелательно, потому что сборка пакета должна быть
> воспроизводимой. (Лучше пусть явно не соберётся, чем будет собираться
> через раз.)
Я имел ввиду такой код:
require 'socket'
include Socket::Constants
server = Socket.new(AF_INET, SOCK_STREAM, 0)
port = 1234
begin
sockaddr = Socket.pack_sockaddr_in(port, 'localhost')
server.bind(sockaddr)
rescue Errno::EADDRINUSE
port += 1
retry
end
Возможно, стоит также обрабатывать EACCES.
--
Regards, Kirill A. Shutemov
+ Belarus, Minsk
+ ALT Linux Team, http://www.altlinux.com/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-09-02 9:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-02 9:25 ` Alexey I. Froloff
2008-09-02 9:30 ` Kirill A. Shutemov
2008-09-02 9:37 ` Alexey Tourbin
2008-09-02 9:48 ` Kirill A. Shutemov [this message]
2008-09-02 9:53 ` Alexey Tourbin
2008-09-02 9:31 ` Alexey Tourbin
2008-09-02 9:41 ` Alexey I. Froloff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080902094801.GC5135@localhost.localdomain \
--to=kirill@shutemov.name \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git