From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
To: Gentoo Portage Development <gentoo-portage-dev@lists.gentoo.org>
Subject: [gentoo-portage-dev] [PATCH] Sort PORTAGE_ARCHLIST
Date: Mon, 8 Dec 2014 20:16:20 +0100 [thread overview]
Message-ID: <201412082016.22101.Arfrever.FTA@gmail.com> (raw)
[-- Attachment #1.1: Type: Text/Plain, Size: 1900 bytes --]
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
[-- Attachment #1.2: portage.patch --]
[-- Type: text/x-patch, Size: 449 bytes --]
--- pym/portage/package/ebuild/config.py
+++ pym/portage/package/ebuild/config.py
@@ -779,7 +779,7 @@
archlist = [grabfile(os.path.join(x, "arch.list")) \
for x in locations_manager.profile_and_user_locations]
- archlist = stack_lists(archlist, incremental=1)
+ archlist = sorted(stack_lists(archlist, incremental=1))
self.configdict["conf"]["PORTAGE_ARCHLIST"] = " ".join(archlist)
pkgprovidedlines = [grabfile(
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next reply other threads:[~2014-12-08 19:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-08 19:16 Arfrever Frehtes Taifersar Arahesis [this message]
2014-12-09 0:12 ` [gentoo-portage-dev] [PATCH] Sort PORTAGE_ARCHLIST Brian Dolbec
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=201412082016.22101.Arfrever.FTA@gmail.com \
--to=arfrever.fta@gmail.com \
--cc=gentoo-portage-dev@lists.gentoo.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox