Re: [gentoo-portage-dev] [PATCH] man/emerge.1: --quiet-build=n overridden by --jobs (505116)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Fine. Go ahead merge. FFR, I just require that a patch is reviewed by a team member. There's no at least two team members must look at a patch rule that I'm aware of. - -- Alexander berna...@gentoo.org https://secure.plaimi.net/~alexander -BEGIN PGP SIGNATURE- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlSFY1oACgkQRtClrXBQc7W5JQEApqm/66QrsJiVY/qfEFE4OwQa EJFHiBp0krUoA57V4nUA/3lvrROGNWR2r05bAfoSJSDjp7S4qOcUSqbS5fJ6lVDp =k7/6 -END PGP SIGNATURE-
Re: [gentoo-alt] Re: [gentoo-portage-dev] [PATCH 1/2] bin/phase-helpers.shL Fix unpack() for deb2targz .xz types
On Sun, 07 Dec 2014, Zac Medico wrote: On 12/07/2014 07:06 PM, Christoph Junghans wrote: I know, I am late to the party, I just wanted to say that in unpacker.eclass I implemented a variant which uses neither deb2tags nor ar on prefix, but just bash's read and head. The code uses head -c which is a GNU extension: $ man 1p head HEAD(1P)POSIX Programmer's ManualHEAD(1P) [...] SYNOPSIS head [−n number] [file...] [...] For example, on OpenBSD and HPUX there is no -c option, or it is used differently. Also Busybox doesn't have it. Are we better off by requiring GNU head instead of GNU ar? Very nice. We should borrow that code and use it to eliminate the need for deb2targz in portage. In PMS, this would have to go into EAPI 6, I suppose? Ulrich pgpfesq0ME4CD.pgp Description: PGP signature
Re: [gentoo-alt] Re: [gentoo-portage-dev] [PATCH 1/2] bin/phase-helpers.shL Fix unpack() for deb2targz .xz types
Dnia 2014-12-07, o godz. 19:50:24 Zac Medico zmed...@gentoo.org napisał(a): On 12/07/2014 07:06 PM, Christoph Junghans wrote: I know, I am late to the party, I just wanted to say that in unpacker.eclass I implemented a variant which uses neither deb2tags nor ar on prefix, but just bash's read and head. Very nice. We should borrow that code and use it to eliminate the need for deb2targz in portage. You shouldn't borrow code written by vapier. Ever. We have enough work on our shoulders having to fix it in one location. -- Best regards, Michał Górny pgpFIoLYEHMy3.pgp Description: OpenPGP digital signature
Re: [gentoo-alt] Re: [gentoo-portage-dev] [PATCH 1/2] bin/phase-helpers.shL Fix unpack() for deb2targz .xz types
On 12/08/2014 12:45 AM, Ulrich Mueller wrote: On Sun, 07 Dec 2014, Zac Medico wrote: On 12/07/2014 07:06 PM, Christoph Junghans wrote: I know, I am late to the party, I just wanted to say that in unpacker.eclass I implemented a variant which uses neither deb2tags nor ar on prefix, but just bash's read and head. The code uses head -c which is a GNU extension: $ man 1p head HEAD(1P)POSIX Programmer's ManualHEAD(1P) [...] SYNOPSIS head [−n number] [file...] [...] For example, on OpenBSD and HPUX there is no -c option, or it is used differently. Also Busybox doesn't have it. Are we better off by requiring GNU head instead of GNU ar? That's a good question. We might use dd instead of head, or port the shell code to python. Very nice. We should borrow that code and use it to eliminate the need for deb2targz in portage. In PMS, this would have to go into EAPI 6, I suppose? Yes, I suppose so, since PMS currently says deb2targz is required when ar is not compatible with GNU ar. However, earlier you said that other package managers currently use ar unconditionally. Also, I have to wonder if any of the other package managers are used on AIX. So, maybe a retroactive change to PMS would be acceptable? Maybe it's not worth the trouble, and we should simply keep the deb2targz usage for AIX. -- Thanks, Zac
[gentoo-portage-dev] [PATCH] emerge --info: Modernize output of configuration of repositories
[[[ emerge --info: Modernize output of configuration of repositories. - Always print detailed configuration of repositories. - Always skip PORTAGE_REPOSITORIES variable. - Always skip deprecated PORTDIR, PORTDIR_OVERLAY and SYNC variables. ]]] -- Arfrever Frehtes Taifersar Arahesis --- pym/_emerge/actions.py +++ pym/_emerge/actions.py @@ -1707,13 +1707,9 @@ ((cp + :).ljust(cp_max_len + 1), versions)) repos = portdb.settings.repositories - if --verbose in myopts: - append(Repositories:\n) - for repo in repos: - append(repo.info_string()) - else: - append(Repositories: %s % \ - .join(repo.name for repo in repos)) + append(Repositories:\n) + for repo in repos: + append(repo.info_string()) installed_sets = sorted(s for s in root_config.sets['selected'].getNonAtoms() if s.startswith(SETPREFIX)) @@ -1726,8 +1722,8 @@ myvars = list(settings) else: myvars = ['GENTOO_MIRRORS', 'CONFIG_PROTECT', 'CONFIG_PROTECT_MASK', - 'PORTDIR', 'DISTDIR', 'PKGDIR', 'PORTAGE_TMPDIR', - 'PORTDIR_OVERLAY', 'PORTAGE_BUNZIP2_COMMAND', + 'DISTDIR', 'PKGDIR', 'PORTAGE_TMPDIR', + 'PORTAGE_BUNZIP2_COMMAND', 'PORTAGE_BZIP2_COMMAND', 'USE', 'CHOST', 'CFLAGS', 'CXXFLAGS', 'ACCEPT_KEYWORDS', 'ACCEPT_LICENSE', 'FEATURES', @@ -1735,6 +1731,16 @@ myvars.extend(portage.util.grabfile(settings[PORTDIR]+/profiles/info_vars)) + skipped_vars = ['PORTAGE_REPOSITORIES', '_'] + # Deprecated variables + skipped_vars.extend(('PORTDIR', 'PORTDIR_OVERLAY', 'SYNC')) + + for skipped_var in skipped_vars: + try: + myvars.remove(skipped_var) + except ValueError: + pass + myvars_ignore_defaults = { 'PORTAGE_BZIP2_COMMAND' : 'bzip2', } signature.asc Description: This is a digitally signed message part.
[gentoo-portage-dev] [PATCH] Sort PORTAGE_ARCHLIST
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 --- 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( signature.asc Description: This is a digitally signed message part.
Re: [gentoo-portage-dev] [PATCH] emerge --info: Modernize output of configuration of repositories
On Mon, 8 Dec 2014 20:04:11 +0100 Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com wrote: [[[ emerge --info: Modernize output of configuration of repositories. - Always print detailed configuration of repositories. - Always skip PORTAGE_REPOSITORIES variable. - Always skip deprecated PORTDIR, PORTDIR_OVERLAY and SYNC variables. ]]] -- Arfrever Frehtes Taifersar Arahesis @team, I want everyone to weigh in on this one before it is merged. -- Brian Dolbec dolsen signature.asc Description: PGP signature
Re: [gentoo-portage-dev] [PATCH] Sort PORTAGE_ARCHLIST
On Mon, 8 Dec 2014 20:16:20 +0100 Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com wrote: 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 ok to merge -- Brian Dolbec dolsen signature.asc Description: PGP signature
[gentoo-portage-dev] Support for per-repository per-attribute environmental variables
I suggest to add support for per-repository per-attribute environmental variables in Portage. These variables would be used when PORTAGE_REPOSITORIES is not set. Example of setting of them by user and detection of them by Portage: $ env \ PORTAGE_REPOSITORY:gentoo:location=/var/db/repositories/gentoo-cvs \ PORTAGE_REPOSITORY:gentoo:sync-type=cvs \ PORTAGE_REPOSITORY:gentoo:sync-uri=:pserver:anonym...@anoncvs.gentoo.org:/var/cvsroot \ python -c 'import os, pprint; pprint.pprint([x for x in os.environ.items() if x[0].startswith(PORTAGE_REPOSITORY:)])' [('PORTAGE_REPOSITORY:gentoo:sync-type', 'cvs'), ('PORTAGE_REPOSITORY:gentoo:location', '/var/db/repositories/gentoo-cvs'), ('PORTAGE_REPOSITORY:gentoo:sync-uri', ':pserver:anonym...@anoncvs.gentoo.org:/var/cvsroot')] A separator between components of names of these variables cannot be any character valid in names of repositories. -- Arfrever Frehtes Taifersar Arahesis signature.asc Description: This is a digitally signed message part.