From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NaX52-0001dl-5C for garchives@archives.gentoo.org; Thu, 28 Jan 2010 16:18:52 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C0FA0E0C88 for ; Thu, 28 Jan 2010 16:18:51 +0000 (UTC) Received: from toothrot.meleeweb.net (toothrot.meleeweb.net [88.191.40.29]) by pigeon.gentoo.org (Postfix) with ESMTP id 07662E08FB for ; Thu, 28 Jan 2010 15:17:43 +0000 (UTC) Date: Thu, 28 Jan 2010 16:17:41 +0100 From: Beber To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Building custom package for multi-arch/system Message-ID: <20100128151741.GC4462@lady-voodoo.exosec.local> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OBd5C1Lgu00Gd/Tn" Content-Disposition: inline Jabber-ID: beber@meleeweb.net X-GPG-Key: 0x39BB8CF4 X-GPG-DirectLink: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x39BB8CF4 X-GPG-Fingerprint: 2CBD 6A23 D980 3E32 66D1 573D 89B8 C953 39BB 8CF4 X-Pants: On User-Agent: Mutt/1.5.20 (2009-06-14) X-Archives-Salt: 38e54aee-49fa-4d4f-a25c-ff2ff813c194 X-Archives-Hash: c8859b4af5e0bb356f1f150f86064a46 --OBd5C1Lgu00Gd/Tn Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, This mail is continuation of a discussion last month on IRC on #gentoo-portage. As I think it's larger than just portage array, here it is. I have one server dedicated for compilation (xm-compile), and many applicative servers (xmred5, lemonhead, etc). Currently I use the --buildpkg on xm-compile to build packages emergeable by --getbinpkgonly. Everything is fine except that I'm not able to --getbinpkg function of USE flags, CFLAGS, CHOST nor ACCEPT_KEYWORD= S. So all packages on all servers are build in the same way with same USE. But I would like to avoid it. I have mx servers (exim) that need mysql lib, so mysql USE is there. I have mysql servers so -minimal USE is there. I don't want to install a full mysql on mx servers, I just need mysql lib. So I'd like to build custom packages for almost everything. I don't want to build packages on servers for security reasons (somes could reproach me that, but it's not the topic ;) and for a limitation of disk usage. So, I did a wrapper to emerge --buildpkg to create tbz2 with SHA1 in names function of USE, like :=20 CHOST=3D"x86_64-pc-linux-gnu" ACCEPT_KEYWORDS=3D"amd64" tcpdump USE=3D"+chroot +ipv6 -ssl -test -samba -smi" is placed under /data/pkg/amd64/x86_64-pc-linux-gnu/net-analyzer/tcpdump-= 4.0.1_pre20090709+2bf4bfffad82d4ae519f76770b4f7db7b4416738.tbz2 USE=3D"+chroot +ipv6 +ssl -test +samba -smi" is placed under /data/pkg/amd64/x86_64-pc-linux-gnu/net-analyzer/tcpdump-= 4.0.1_pre20090709+5e099e8337e4cadfceda6ccf4c881fbb495980bd.tbz2 Like this, I can easily add on client side a portage bashrc to get the file and place it in the good place to don't have portage to download it as it would find the right file with good USE. This implies I need to emerge 1 package per 1 package which is horrible after some times. So, do you guys plan to implement a such thing ? That's one of the features that is mostly missing imho. The principal miss in on client side as I have tools to manage packages but would like to not have too much specific scripts on client side. Thanks, --=20 Beber --OBd5C1Lgu00Gd/Tn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkthqpQACgkQibjJUzm7jPRXiQCfV1PD+IhdHhHUQRh4ExizVsEh e/UAoJkWdnCR+998S0oosbNOoKb+vxxi =LF/Q -----END PGP SIGNATURE----- --OBd5C1Lgu00Gd/Tn--