From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5170D1389E2 for ; Mon, 8 Dec 2014 19:16:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4ABB6E08A1; Mon, 8 Dec 2014 19:16:44 +0000 (UTC) Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B3DB9E0850 for ; Mon, 8 Dec 2014 19:16:43 +0000 (UTC) Received: by mail-wi0-f176.google.com with SMTP id ex7so5666427wid.9 for ; Mon, 08 Dec 2014 11:16:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=vwvWCWVrt2A8/IeYa8LB+qrI7UDusKz5kzghavEazRo=; b=BUn9M3u174XROfmeb42QONvvzi6EdN234PmTfgwQsATrjc4X1NYTxb7so86lfeKPfr mG1BZOCZ5v15b0pchfjUTafDhIQxdkgN9UHGd/xvfEgR5vVLBwPY9c5c+totXXYmvce7 GmWDx+UQRawppffG6/UcRd35hxotpgZvNLEWbNR43lNNStLqaAk9ROZA/ubmlwLYCgs+ DAjceGhCcq21tVPSJSyjey3aot1zOFSq6H/Q35TZ8+s9GW2vt7EfDjUU/MEsYSAS5rf6 VoDm0TxU58Z/H0tntzvaVX4XCc7o9O+5vwsLJGgMkkuk+p/pBF33aETCerlk12A05kBk Iqtw== X-Received: by 10.180.96.161 with SMTP id dt1mr19166185wib.38.1418066202571; Mon, 08 Dec 2014 11:16:42 -0800 (PST) Received: from afta-picea.localnet (host-94-251-141-202.dynamic.mm.pl. [94.251.141.202]) by mx.google.com with ESMTPSA id qg11sm10883349wic.17.2014.12.08.11.16.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Dec 2014 11:16:41 -0800 (PST) From: Arfrever Frehtes Taifersar Arahesis X-Google-Original-From: Arfrever Frehtes Taifersar Arahesis To: Gentoo Portage Development Subject: [gentoo-portage-dev] [PATCH] Sort PORTAGE_ARCHLIST Date: Mon, 8 Dec 2014 20:16:20 +0100 User-Agent: KMail (GNU/Linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3955127.azkES0K0uv"; protocol="application/pgp-signature"; micalg=pgp-sha512 Content-Transfer-Encoding: 7bit Message-Id: <201412082016.22101.Arfrever.FTA@gmail.com> X-Archives-Salt: 019df299-52cb-4fbb-a8d8-f95c6b8a149c X-Archives-Hash: 45a4f012e03e9b1134b0048d30e84dc1 --nextPart3955127.azkES0K0uv Content-Type: multipart/mixed; boundary="Boundary-01=_FkfhUbv/OmTkVyz" Content-Transfer-Encoding: 7bit --Boundary-01=_FkfhUbv/OmTkVyz Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Currently PORTAGE_ARCHLIST has random value: $ bin/portageq envvar PORTAGE_ARCHLIST x64-macos x86-linux amd64-fbsd ppc x86 x86-macos x86-winnt hppa alpha sparc64-solaris x86-freebsd ppc-openbsd x86-solaris s390 m68k mips ppc64-linux ia64-linux x64-openbsd amd64-linux x86-cygwin amd64 sparc64-freebsd ppc64 ia64-hpux sparc-solaris ia64 ppc-macos x86-interix x86-openbsd arm arm64 hppa-hpux arm-linux sparc x64-solaris m68k-mint sh x86-netbsd sparc-fbsd ppc-aix x86-fbsd x64-freebsd $ bin/portageq envvar PORTAGE_ARCHLIST arm-linux sparc64-solaris x86-openbsd ppc64-linux ppc-macos x64-macos sparc-solaris ppc mips hppa-hpux ppc-aix x86-linux sparc x86-macos x86 ia64-hpux x86-fbsd arm64 x64-freebsd ppc64 amd64 x86-winnt alpha x86-freebsd sh x86-solaris sparc64-freebsd m68k amd64-fbsd s390 x64-openbsd ia64 x86-netbsd amd64-linux ppc-openbsd arm x86-interix ia64-linux x64-solaris sparc-fbsd hppa m68k-mint x86-cygwin $ bin/portageq envvar PORTAGE_ARCHLIST x86-netbsd x86-solaris x86-winnt x64-solaris amd64 x86-fbsd x86-interix m68k-mint x64-macos arm64 hppa x86-freebsd amd64-fbsd m68k x86-openbsd ppc sparc x64-freebsd ppc-aix ia64 x86 sparc-solaris x86-macos arm ppc-openbsd alpha sh mips ppc64 sparc64-solaris sparc-fbsd ppc64-linux ia64-linux sparc64-freebsd arm-linux hppa-hpux amd64-linux s390 x64-openbsd ia64-hpux x86-linux x86-cygwin ppc-macos $ bin/portageq envvar PORTAGE_ARCHLIST sparc64-solaris arm-linux x86-openbsd x86-macos ia64-linux x86-fbsd ppc64-linux hppa amd64 x64-macos ia64-hpux hppa-hpux ia64 sparc-solaris sparc-fbsd amd64-fbsd alpha mips x86-cygwin x86-interix ppc64 amd64-linux x86-freebsd m68k s390 ppc-openbsd x64-freebsd ppc-macos sparc64-freebsd arm ppc-aix x86-netbsd x86-solaris x64-openbsd x86-winnt sparc x86-linux m68k-mint x64-solaris sh x86 ppc arm64 I suggest to make it predictable. [[[ Sort PORTAGE_ARCHLIST. ]]] -- Arfrever Frehtes Taifersar Arahesis --Boundary-01=_FkfhUbv/OmTkVyz Content-Type: text/x-patch; charset="utf-8"; name="portage.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="portage.patch" =2D-- pym/portage/package/ebuild/config.py +++ pym/portage/package/ebuild/config.py @@ -779,7 +779,7 @@ =20 archlist =3D [grabfile(os.path.join(x, "arch.list")) \ for x in locations_manager.profile_and_user_locations] =2D archlist =3D stack_lists(archlist, incremental=3D1) + archlist =3D sorted(stack_lists(archlist, incremental=3D1)) self.configdict["conf"]["PORTAGE_ARCHLIST"] =3D " ".join(archlist) =20 pkgprovidedlines =3D [grabfile( --Boundary-01=_FkfhUbv/OmTkVyz-- --nextPart3955127.azkES0K0uv Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCgAGBQJUhfkGAAoJEHgbAhhyXND87roP/0pfMjxBDPyeqK70X6He4bwg jzosX+lL1f/sBeEvY3DZ1JnCGGVq/TynqCSta6Zm+y+OBZqnSoUA/AToG8HMnu3V lWYkS7ZgVXhJMbdAz5+gvQAdZ5mTxYJXDIDsO8cp34wqsWUfR6zfyi7lbIZzF9+c acDjr8n1oN8lGTmd8wKXeo0SWPKaRylSub4SpIMz2YcGDf95TewWheIYUHXR4bQb BKeVodc1K4yHSonM+SXf9v4DvmwHCeNbmQdo6MMVwG1yMH/wCdqDPE2FnX01I4Le 9lMHuOBUBJGbyCmCSsp4psf8Syqi73Qu6CBrBUmQ7uy1A34EknJDtEFILWhKH+2S GYdjC/fBbzONm/OqyetQ22NzP1qow5XgDZFfJ4oiod2ZUR6RLB5SfrqRRE7Ajdmf CXAambLYICy5XzRDNe1sSyzdAytkDEaV+5txgluRUm5RDu90s6WeWz9j0HimNVP8 AAcnuITaFwLN1ih9M6l3Dz7tZb+AgiVl3FwMj5/+BriWoU9Z4d+bgw9k0OGf1JJ1 Qcy6CR8cMuzJr7TcfkckgxTkcLOuLzReaU3OdQ+hct86bSYrhSeWNcZKuqEUR/Uu D/BO/lXw+ZT+tEiBjVmHBE1okYokTyNGFf25TL/qgz/pVEdCXGAip3IcOfNMNz+X YJVeURw27AVG7urFFe9J =Ry9o -----END PGP SIGNATURE----- --nextPart3955127.azkES0K0uv--