Re: [gentoo-portage-dev] [PATCH 16/18] Disallow helpers in global scope in EAPI 6

2015-01-16 Thread Zac Medico
On 01/16/2015 02:14 AM, Sergei Trofimovich wrote: On Mon, 1 Dec 2014 22:28:34 +0100 Michał Górny mgo...@gentoo.org wrote: Disallow calling most of the ebuild helpers in global scope since they are meaningless in that context. Most of them are also prohibited by PMS for all EAPIs, so EAPI 6

Re: [gentoo-portage-dev] [PATCH 16/18] Disallow helpers in global scope in EAPI 6

2015-01-16 Thread Zac Medico
On 01/16/2015 10:18 AM, Zac Medico wrote: On 01/16/2015 02:14 AM, Sergei Trofimovich wrote: On Mon, 1 Dec 2014 22:28:34 +0100 Michał Górny mgo...@gentoo.org wrote: Disallow calling most of the ebuild helpers in global scope since they are meaningless in that context. Most of them are also

Re: [gentoo-portage-dev] [PATCH] Support USE_EXPAND prefixes in package.use and relevant files

2015-01-22 Thread Zac Medico
On 01/20/2015 03:18 AM, Michał Górny wrote: Support prefixing groups of USE_EXPAND flags with 'USE_EXPAND:' in user configuration package.use and similar files. This provides a convenient way of declaring specifying multiple USE_EXPAND flags and matches the syntax supported by Paludis.

[gentoo-portage-dev] [PATCH 0/7] Add FEATURES=binpkg-multi-instance (bug 150031)

2015-02-17 Thread Zac Medico
'emaint --fix binhost' to update the ${PKGDIR}/Packages index. Support for FEATURES=binpkg-multi-instance is planned for eclean-pkg. X-Gentoo-Bug: 150031 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=150031 Zac Medico (7): binpkg-multi-instance 1 of 7 binpkg-multi-instance 2 of 7

[gentoo-portage-dev] [PATCH 1/7] binpkg-multi-instance 1 of 7

2015-02-17 Thread Zac Medico
Extend the _pkg_str class with build_id, build_time, file_size, and mtime attributes. These will be used to distinguish binary package instances that have the same cpv. Package sorting accounts for build_time, which will be used to prefer newer builds over older builds when their versions are

[gentoo-portage-dev] [PATCH 3/7] binpkg-multi-instance 3 of 7

2015-02-17 Thread Zac Medico
FEATURES=binpkg-multi-instance causes an integer build-id to be associated with each binary package instance. Inclusion of the build-id in the file name of the binary package file makes it possible to store an arbitrary number of binary packages built from the same ebuild. Having multiple

[gentoo-portage-dev] [PATCH 7/7] binpkg-multi-instance 7 of 7

2015-02-17 Thread Zac Medico
Support profile-formats = build-id setting for layout.conf. When this is enabled in layout.conf of the containing repository, a dependency atom in the profile can refer to a specific build, using the build-id that is assigned when FEATURES=binpkg-multi-instance is enabled. A build-id atom is

[gentoo-portage-dev] [PATCH 4/7] binpkg-multi-instance 4 of 7

2015-02-17 Thread Zac Medico
Add a test case to verify that emerge --rebuilt-binaries works with binpkg-multi-instance. This relies on the fact that binary packages of the same version are ordered by BUILD_TIME, so that the latest builds are preferred when appropriate. --- pym/portage/tests/resolver/ResolverPlayground.py |

[gentoo-portage-dev] [PATCH 6/7] binpkg-multi-instance 6 of 7

2015-02-17 Thread Zac Medico
Remove unused binarytree _remove_symlink, _create_symlink, prevent_collision, _move_to_all, and _move_from_all methods. These are all related to the oldest PKGDIR layout, which put all of the tbz2 files in $PKGDIR/All, and created symlinks to them in the category directories. The $PKGDIR/All

Re: [gentoo-portage-dev] [PATCH] bin/eapi.sh: Invert condition in ___eapi_unpack_supports_absolute_paths().

2015-02-16 Thread Zac Medico
On 02/16/2015 10:21 AM, Ulrich Müller wrote: This should return true starting with EAPI 6, and false for EAPI 5 and earlier. --- bin/eapi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/eapi.sh b/bin/eapi.sh index f1c677e..528e6f2 100644 --- a/bin/eapi.sh +++

Re: [gentoo-portage-dev] [PATCH 1/2] Add FEATURES=binpkg-multi-instance (bug 150031)

2015-02-17 Thread Zac Medico
On 02/17/2015 10:42 AM, Brian Dolbec wrote: overall, there is no way I know the code well enough to know if you screwed up. But the code looks decent, so... My only questions are: pym/portage/dbapi/bintree.py: You removed several functions from the binarytree class and essentially

Re: [gentoo-portage-dev] [PATCH 2/2] Add profile-formats=build-id (bug 150031)

2015-02-17 Thread Zac Medico
On 02/17/2015 10:58 AM, Brian Dolbec wrote: class Atom() if allow_repo is None: allow_repo = True + if allow_build_id is None: + allow_build_id = True these can be written as

Re: [gentoo-portage-dev] [PATCH 1/2] Add FEATURES=binpkg-multi-instance (bug 150031)

2015-02-17 Thread Zac Medico
On 02/17/2015 11:56 AM, Brian Dolbec wrote: On Tue, 17 Feb 2015 11:26:27 -0800 Zac Medico zmed...@gentoo.org wrote: On 02/17/2015 10:42 AM, Brian Dolbec wrote: overall, there is no way I know the code well enough to know if you screwed up. But the code looks decent, so... My only

[gentoo-portage-dev] [PATCH 1/7 v2] binpkg-multi-instance 1 of 7

2015-02-19 Thread Zac Medico
Extend the _pkg_str class with build_id, build_time, file_size, and mtime attributes. These will be used to distinguish binary package instances that have the same cpv. Package sorting accounts for build_time, which will be used to prefer newer builds over older builds when their versions are

[gentoo-portage-dev] [PATCH] binarytree: avoid unecessary index regeneration

2015-02-17 Thread Zac Medico
Since commit f1c1b8a77eebf7713b32e5f9945690f60f4f46de, binarytree regenerates the 'Packages' index unnecessarily, due to missing REQUIRES and PROVIDES entries. These entries are not required, so use default empty values in order to avoid the unnecessary regeneration. Fixes: f1c1b8a77eeb (Generate

[gentoo-portage-dev] [PATCH 1/2] Add FEATURES=binpkg-multi-instance (bug 150031)

2015-02-17 Thread Zac Medico
FEATURES=binpkg-multi-instance causes an integer build-id to be associated with each binary package instance. Inclusion of the build-id in the file name of the binary package file makes it possible to store an arbitrary number of binary packages built from the same ebuild. Having multiple

[gentoo-portage-dev] [PATCH 2/2] Add profile-formats=build-id (bug 150031)

2015-02-17 Thread Zac Medico
When profile-formats = build-id is enabled in layout.conf of the containing repository, a dependency atom in the profile can refer to a specific build, using the build-id that is assigned when FEATURES=binpkg-multi-instance is enabled. A build-id atom is identical to a version-specific atom,

[gentoo-portage-dev] [PATCH] Generate soname dependency metadata (282639)

2015-01-26 Thread Zac Medico
Generate soname dependency metadata for binary and installed packages, in the form of PROVIDES and REQUIRES metadata. It is useful to generate PROVIDES and REQUIRES metadata now, so that it will be available when dependency resolver support is added in the future. Note that slot-operator

[gentoo-portage-dev] [PATCH v2] Generate soname dependency metadata (282639)

2015-01-30 Thread Zac Medico
Generate soname dependency metadata for binary and installed packages, in the form of PROVIDES and REQUIRES metadata. It is useful to generate PROVIDES and REQUIRES metadata now, so that it will be available when dependency resolver support is added in the future. Note that slot-operator

[gentoo-portage-dev] [PATCH] lockfile: handle EINTR for bug #538314

2015-01-31 Thread Zac Medico
Use portage._eintr_func_wrapper to handle EINTR from fcntl.lockf. Since fcntl.lockf raises IOError, make _eintr_func_wrapper handle EnvironmentError (which both OSError and IOError inherit from). X-Gentoo-Bug: 538314 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=538314 ---

Re: [gentoo-portage-dev] [PATCH] dispatch-conf: avoid symlink File exists error (535850)

2015-01-11 Thread Zac Medico
On 01/11/2015 05:21 PM, Brian Dolbec wrote: On Sun, 11 Jan 2015 00:49:50 -0800 Zac Medico zmed...@gentoo.org wrote: Since commit f17448317166bfac42dc279b8795cd581c189582, an existing symlink in /etc/config-archive could trigger a fatal File exists error. Handle this by removing

[gentoo-portage-dev] [PATCH] dispatch_conf: factor out _archive_copy

2015-01-11 Thread Zac Medico
This eliminates 4 instances of duplicate code from the rcs_archive and file_archive functions. Suggested-by: Brian Dolbec dol...@gentoo.org --- pym/portage/dispatch_conf.py | 92 +--- 1 file changed, 36 insertions(+), 56 deletions(-) diff --git

Re: [gentoo-portage-dev] [PATCH] Allow virtuals in package.provided

2015-01-12 Thread Zac Medico
On 01/12/2015 01:34 AM, Michał Górny wrote: Dnia 2014-12-06, o godz. 22:31:42 Zac Medico zmed...@gentoo.org napisał(a): @Robin: This patch reverts the changes from bug 161003. Maybe this constraint is not needed anymore? Considering the feedback on the bug, ok to push this one finally

[gentoo-portage-dev] [PATCH] Use _SUBMODULE_PATH_MAP keys for option choices

2015-01-07 Thread Zac Medico
Fix commit c8a850685232b938cf0896fc2d80e72d57edad17 to re-use the keys from _SUBMODULE_PATH_MAP for option choices. Fixes: c8a850685232 (Add --sync-submodule glsa|news|profiles (534070)) Suggested-by: Brian Dolbec dol...@gentoo.org --- pym/_emerge/main.py | 3 ++-

Re: [gentoo-portage-dev] [PATCH] Add --sync-submodule glsa|news|profiles (534070)

2015-01-07 Thread Zac Medico
On 01/06/2015 08:53 PM, Brian Dolbec wrote: On Wed, 31 Dec 2014 00:07:19 -0800 Zac Medico zmed...@gentoo.org wrote: This adds support for a new --sync-submodule option to both emerge and emaint. When this option is used with the sync action, only the selected submodules are synced. Each

Re: [gentoo-portage-dev] [PATCH v2] Add early check for broken /dev/s (bug 538980)

2015-02-13 Thread Zac Medico
On 02/13/2015 10:11 AM, Alexander Berntsen wrote: Signed-off-by: Alexander Berntsen berna...@gentoo.org Suggested-by: Zac Medico zmed...@gentoo.org --- Add some output. Use the more backwards compatible OSError instead of FileNotFoundError. pym/_emerge/main.py | 14

[gentoo-portage-dev] [PATCH 2/2 v2] depgraph: soname dependency resolution (282639)

2015-02-13 Thread Zac Medico
Soname dependency resolution is disabled by default, since it will not work correctly unless all available installed and binary packages have been built by a version of portage which generates REQUIRES and PROVIDES metadata. Soname dependency resolution is enabled when --ignore-soname-deps=n is

Re: [gentoo-portage-dev] [PATCH] Add another check for broken /dev/s (bug 538980)

2015-02-13 Thread Zac Medico
On 02/13/2015 10:39 AM, Alexander Berntsen wrote: Signed-off-by: Alexander Berntsen berna...@gentoo.org --- pym/_emerge/main.py | 9 + 1 file changed, 9 insertions(+) diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index f1a9e18..84094ae 100644 --- a/pym/_emerge/main.py

[gentoo-portage-dev] [PATCH] Fix random SonameOrChoicesTestCase failure

2015-02-14 Thread Zac Medico
In commit 11467fc640995e3dc8897c82bbc7130d5bf27d05, the atom_not_selected variable was initialized outside of a loop, when it should have been re-initialized for each iteration of the loop. This caused atom_not_selected to have an incorrect value in some cases, triggering random failures of

Re: [gentoo-portage-dev] [PATCH 0/2] Implement soname dependencies

2015-02-09 Thread Zac Medico
On 02/09/2015 08:40 AM, Alexander Berntsen wrote: On 09/02/15 06:41, Zac Medico wrote: 49 files changed, 2766 insertions(+), 149 deletions(-) So... is anyone anywhere near qualified to (N)ACK this? Sebastian Luther it the only other person who is really familiar with portage's dependency

Re: [gentoo-portage-dev] Re: [PATCH 2/2 v2] depgraph: soname dependency resolution (282639)

2015-02-13 Thread Zac Medico
On 02/13/2015 07:03 PM, Duncan wrote: Zac Medico posted on Fri, 13 Feb 2015 10:35:09 -0800 as excerpted: Soname dependency resolution is enabled when --ignore-soname-deps=n is specified, and [...] Can that option possibly be renamed? Ignore is functionally a negative, as in don't

Re: [gentoo-portage-dev] custom profiles?

2015-03-14 Thread Zac Medico
On 03/14/2015 11:41 AM, Joakim Tjernlund wrote: On Sat, 2015-03-14 at 11:08 -0700, Zac Medico wrote: On 03/14/2015 09:12 AM, Joakim Tjernlund wrote: On Wed, 2015-03-11 at 13:43 -0700, Zac Medico wrote: On 03/11/2015 01:16 PM, Joakim Tjernlund wrote: On Wed, 2015-03-11 at 10:56 -0700, Zac

Re: [gentoo-portage-dev] custom profiles?

2015-03-14 Thread Zac Medico
On 03/14/2015 12:30 PM, Joakim Tjernlund wrote: On Sat, 2015-03-14 at 11:57 -0700, Zac Medico wrote: On 03/14/2015 11:41 AM, Joakim Tjernlund wrote: On Sat, 2015-03-14 at 11:08 -0700, Zac Medico wrote: On 03/14/2015 09:12 AM, Joakim Tjernlund wrote: On Wed, 2015-03-11 at 13:43 -0700, Zac

[gentoo-portage-dev] [PATCH v2] _post_src_install_soname_symlinks: fix bug 543818

2015-03-22 Thread Zac Medico
The SonameDepsProcessor.add() method raises AssertionError if the multilib category of an ELF file is not recognized. It's not possible to account for soname dependencies in this case (the file is probably intended for a foreign architecture), so avoid the AssertionError and generate an eqawarn

[gentoo-portage-dev] [PATCH v3] _post_src_install_soname_symlinks: fix bug 543818

2015-03-22 Thread Zac Medico
The SonameDepsProcessor.add() method raises AssertionError if the multilib category of an ELF file is not recognized. It's not possible to account for soname dependencies in this case (the file is probably intended for a foreign architecture), so avoid the AssertionError and generate an eqawarn

Re: [gentoo-portage-dev] custom profiles?

2015-03-16 Thread Zac Medico
On 03/16/2015 09:31 AM, Joakim Tjernlund wrote: On Sun, 2015-03-15 at 16:37 +, Joakim Tjernlund wrote: On Sat, 2015-03-14 at 14:02 -0700, Zac Medico wrote: You can set default USE flags in the profile, and then the users can override those settings locally (both positively

[gentoo-portage-dev] [PATCH] _post_src_install_soname_symlinks: fix bug 543818

2015-03-21 Thread Zac Medico
The SonameDepsProcessor.add() method raises AssertionError if the multilib category of an ELF file is not recognized. It's not possible to account for soname dependencies in this case (the file is probably intended for a foreign architecture), so avoid the AssertionError and generate an eqawarn

Re: [gentoo-portage-dev] custom profiles?

2015-03-11 Thread Zac Medico
On 03/11/2015 01:16 PM, Joakim Tjernlund wrote: On Wed, 2015-03-11 at 10:56 -0700, Zac Medico wrote: On 03/11/2015 08:48 AM, Joakim Tjernlund wrote: On Sun, 2015-03-08 at 11:58 -0700, Zac Medico wrote: On 03/08/2015 10:01 AM, Joakim Tjernlund wrote: On Sun, 2015-03-08 at 15:47 +, Joakim

Re: [gentoo-portage-dev] custom profiles?

2015-03-11 Thread Zac Medico
On 03/11/2015 01:27 PM, Brian Dolbec wrote: On Wed, 11 Mar 2015 20:16:06 + Joakim Tjernlund joakim.tjernl...@transmode.se wrote: Why is --dynamic-deps=y default? This feels like lying about your true deps, I am probably missing something here, an example would be great:) Because

Re: [gentoo-portage-dev] running ebuild in src tree

2015-03-11 Thread Zac Medico
On 03/11/2015 09:03 AM, Joakim Tjernlund wrote: When developing code it would be really nice if one could run your ebuild on that src tree as is(no fetch, unpack etc.) The existing convention is to create an ebuild with version and use one of the live vcs eclasses such as git-r3 to pull

Re: [gentoo-portage-dev] custom profiles?

2015-03-11 Thread Zac Medico
On 03/11/2015 08:48 AM, Joakim Tjernlund wrote: On Sun, 2015-03-08 at 11:58 -0700, Zac Medico wrote: On 03/08/2015 10:01 AM, Joakim Tjernlund wrote: On Sun, 2015-03-08 at 15:47 +, Joakim Tjernlund wrote: package.use/package.use.force is a bit different though: cat /etc/portage

Re: [gentoo-portage-dev] running ebuild in src tree

2015-03-11 Thread Zac Medico
On 03/11/2015 12:08 PM, Joakim Tjernlund wrote: On Wed, 2015-03-11 at 12:03 -0700, Zac Medico wrote: On 03/11/2015 11:56 AM, Joakim Tjernlund wrote: On Wed, 2015-03-11 at 11:34 -0700, Zac Medico wrote: On 03/11/2015 09:03 AM, Joakim Tjernlund wrote: When developing code it would be really

Re: [gentoo-portage-dev] Security and Comparison of Portage with other Package Managers

2015-03-08 Thread Zac Medico
On 03/08/2015 08:02 AM, Mark Kubacki wrote: On 03/06/2015 09:50 AM, Mark Kubacki wrote: And by default you cannot compare the result with any authoritative source. 2015-03-08 0:26 GMT+01:00 Zac Medico zmed...@gentoo.org: Ideally, we can rely on security mechanisms built into git [1

Re: [gentoo-portage-dev] Security and Comparison of Portage with other Package Managers

2015-03-08 Thread Zac Medico
On 03/08/2015 07:59 AM, Patrick Schleizer wrote: Zac Medico: On 03/06/2015 09:50 AM, Mark Kubacki wrote: We're on the same side here. Do we have numbers showing the ratio portage used with defaults vs. where [webrsync-gpg] is described in many hardening guides for gentoo and widely used

Re: [gentoo-portage-dev] custom profiles?

2015-03-07 Thread Zac Medico
On 03/06/2015 02:15 AM, Joakim Tjernlund wrote: I am trying to define a custom profile in one of our overlay(managed via layman) This profile should inherit one of /usr/portage/profiles/ and then I want to add custom USE flags, mask, keywords packages etc, then eselect this new profile.

Re: [gentoo-portage-dev] Security and Comparison of Portage with other Package Managers

2015-03-07 Thread Zac Medico
On 03/06/2015 09:50 AM, Mark Kubacki wrote: We're on the same side here. Do we have numbers showing the ratio portage used with defaults vs. where [webrsync-gpg] is described in many hardening guides for gentoo and widely used among the security conscious applies? DNS not being encrypted

Re: [gentoo-portage-dev] Security and Comparison of Portage with other Package Managers

2015-03-07 Thread Zac Medico
On 03/07/2015 05:24 PM, Brian Dolbec wrote: On Sat, 07 Mar 2015 15:26:26 -0800 Zac Medico zmed...@gentoo.org wrote: On 03/06/2015 09:50 AM, Mark Kubacki wrote: We're on the same side here. Do we have numbers showing the ratio portage used with defaults vs. where [webrsync-gpg

Re: [gentoo-portage-dev] custom profiles?

2015-03-13 Thread Zac Medico
On 03/13/2015 05:08 AM, Joakim Tjernlund wrote: On Thu, 2015-03-12 at 17:51 -0700, Zac Medico wrote: On 03/12/2015 02:43 PM, Joakim Tjernlund wrote: Why is --dynamic-deps=y default? This feels like lying about your true deps, I am probably missing something here, an example would

Re: [gentoo-portage-dev] custom profiles?

2015-03-14 Thread Zac Medico
On 03/14/2015 05:55 AM, Joakim Tjernlund wrote: On Fri, 2015-03-13 at 10:51 -0700, Zac Medico wrote: On 03/13/2015 05:08 AM, Joakim Tjernlund wrote: On Thu, 2015-03-12 at 17:51 -0700, Zac Medico wrote: On 03/12/2015 02:43 PM, Joakim Tjernlund wrote: Why is --dynamic-deps=y default

Re: [gentoo-portage-dev] custom profiles?

2015-03-14 Thread Zac Medico
On 03/14/2015 09:12 AM, Joakim Tjernlund wrote: On Wed, 2015-03-11 at 13:43 -0700, Zac Medico wrote: On 03/11/2015 01:16 PM, Joakim Tjernlund wrote: On Wed, 2015-03-11 at 10:56 -0700, Zac Medico wrote: On 03/11/2015 08:48 AM, Joakim Tjernlund wrote: On Sun, 2015-03-08 at 11:58 -0700, Zac

Re: [gentoo-portage-dev] custom profiles?

2015-03-14 Thread Zac Medico
On 03/14/2015 11:35 AM, Joakim Tjernlund wrote: On Sat, 2015-03-14 at 10:58 -0700, Zac Medico wrote: On 03/14/2015 05:55 AM, Joakim Tjernlund wrote: On Fri, 2015-03-13 at 10:51 -0700, Zac Medico wrote: On 03/13/2015 05:08 AM, Joakim Tjernlund wrote: On Thu, 2015-03-12 at 17:51 -0700, Zac

Re: [gentoo-portage-dev] ROOT=/usr/src/initramfs emerge -ave busybox cause host rebuilds

2015-03-12 Thread Zac Medico
On 03/12/2015 10:39 AM, Joakim Tjernlund wrote: ROOT=/usr/src/initramfs emerge -ave busybox givs [ebuild R ] app-arch/xz-utils-5.0.8 USE=nls threads -static-libs [ebuild R ] sys-libs/zlib-1.2.8-r1 USE=-minizip -static-libs [ebuild R ] virtual/libintl-0-r1 [ebuild R ]

Re: [gentoo-portage-dev] custom profiles?

2015-03-12 Thread Zac Medico
On 03/12/2015 02:43 PM, Joakim Tjernlund wrote: Why is --dynamic-deps=y default? This feels like lying about your true deps, I am probably missing something here, an example would be great:) It's a legacy behavior, since portage has always behaved this way, and ebuild developers

[gentoo-portage-dev] [PATCH] dispatch-conf.conf: less-opts --quit-if-one-screen for bug 501886

2015-03-12 Thread Zac Medico
From: Marc Schiffbauer msch...@gentoo.org Use --quit-if-one-screen instead of --QUIT-AT-EOF, so that less doesn't quit automatically when the user has scrolled to the bottom. X-Gentoo-Bug: 501886 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=501886 Signed-off-by: Zac Medico zmed

Re: [gentoo-portage-dev] [PATCH] repoman: add --straight-to-stable (-S) option

2015-03-24 Thread Zac Medico
On 03/24/2015 02:10 AM, Michał Górny wrote: Add an option to safely allow committing ebuilds straight to stable. Before, this required either round trips with multiple commits or --force option that ignored valid QA concerns and (surprisingly to many developers) skipped some expensive QA

[gentoo-portage-dev] [PATCH 3/7 v2] binpkg-multi-instance 3 of 7

2015-02-27 Thread Zac Medico
FEATURES=binpkg-multi-instance causes an integer build-id to be associated with each binary package instance. Inclusion of the build-id in the file name of the binary package file makes it possible to store an arbitrary number of binary packages built from the same ebuild. Having multiple

[gentoo-portage-dev] [PATCH] make.conf: expand PORTAGE_CONFIGROOT (bug 511806)

2015-03-03 Thread Zac Medico
This can be useful for making settings, such as PKGDIR, relative to PORTAGE_CONFIGROOT. X-Gentoo-Bug: 511806 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=511806 --- pym/portage/package/ebuild/config.py | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [gentoo-portage-dev] Impl. egetent in user.eclass using script from sys-apps/getent?

2015-03-03 Thread Zac Medico
On 03/03/2015 10:39 AM, Joakim Tjernlund wrote: I wonder if it would be possible to use the script from sys-apps/getent(included below) to impl. getent instead of using glibc's getent? I cannot see any downside, is there one? Please re-send to the gentoo-dev mailing list. -- Thanks, Zac

[gentoo-portage-dev] [PATCH] Don't spawn socks5-server.py for pkg_nofetch (bug 542052)

2015-03-04 Thread Zac Medico
Don't spawn socks5-server.py for pkg_nofetch, since the spawn_nofetch function creates a private PORTAGE_TMPDIR. X-Gentoo-Bug: 542052 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=542052 --- pym/portage/package/ebuild/doebuild.py | 4 +++- 1 file changed, 3 insertions(+), 1

[gentoo-portage-dev] [PATCH] depgraph: fix 'operation' AttributeError (bug 541754)

2015-02-28 Thread Zac Medico
Since commit 4f5e4f697e2593df164fc9864893768f7d2375fc, this faulty code has gone unreported because it's only triggered by invalid dependencies in /var/db/pkg. Fixes: 4f5e4f697e25 (Use Package instance attributes to clean up and simplify depgraph.validate_blockers().) X-Gentoo-Bug: 541754

Re: [gentoo-portage-dev] Pre RFC on RFC: Add compiler information to exported a Package Manger's Cached Information.

2015-03-01 Thread Zac Medico
On 02/25/2015 04:07 PM, Zac Medico wrote: On 02/25/2015 03:41 PM, Anthony G. Basile wrote: On 02/25/15 15:38, Zac Medico wrote: On 02/25/2015 12:01 PM, Anthony G. Basile wrote: On 02/25/15 14:51, Anthony G. Basile wrote: On 02/22/15 01:30, Zac Medico wrote: On 02/21/2015 10:22 PM, Zac Medico

Re: [gentoo-portage-dev] Pre RFC on RFC: Add compiler information to exported a Package Manger's Cached Information.

2015-03-01 Thread Zac Medico
On 02/25/2015 12:01 PM, Anthony G. Basile wrote: On 02/25/15 14:51, Anthony G. Basile wrote: On 02/22/15 01:30, Zac Medico wrote: On 02/21/2015 10:22 PM, Zac Medico wrote: If we put the real/canonical libstdc++.so path in the DT_NEEDED section, then it will automatically work with existing

[gentoo-portage-dev] [PATCH 3/7 v3] binpkg-multi-instance 3 of 7

2015-02-27 Thread Zac Medico
FEATURES=binpkg-multi-instance causes an integer build-id to be associated with each binary package instance. Inclusion of the build-id in the file name of the binary package file makes it possible to store an arbitrary number of binary packages built from the same ebuild. Having multiple

Re: [gentoo-portage-dev] Pre RFC on RFC: Add compiler information to exported a Package Manger's Cached Information.

2015-02-25 Thread Zac Medico
On 02/25/2015 11:51 AM, Anthony G. Basile wrote: On 02/22/15 01:30, Zac Medico wrote: On 02/21/2015 10:22 PM, Zac Medico wrote: If we put the real/canonical libstdc++.so path in the DT_NEEDED section, then it will automatically work with existing soname dependency support. Actually, we'd

Re: [gentoo-portage-dev] Pre RFC on RFC: Add compiler information to exported a Package Manger's Cached Information.

2015-02-25 Thread Zac Medico
On 02/25/2015 12:01 PM, Anthony G. Basile wrote: On 02/25/15 14:51, Anthony G. Basile wrote: On 02/22/15 01:30, Zac Medico wrote: On 02/21/2015 10:22 PM, Zac Medico wrote: If we put the real/canonical libstdc++.so path in the DT_NEEDED section, then it will automatically work with existing

Re: [gentoo-portage-dev] Pre RFC on RFC: Add compiler information to exported a Package Manger's Cached Information.

2015-02-21 Thread Zac Medico
On 02/21/2015 10:22 PM, Zac Medico wrote: If we put the real/canonical libstdc++.so path in the DT_NEEDED section, then it will automatically work with existing soname dependency support. Actually, we'd also have to add a way for you to put the full path of the libstdc++.so in PROVIDES

Re: [gentoo-portage-dev] Pre RFC on RFC: Add compiler information to exported a Package Manger's Cached Information.

2015-02-21 Thread Zac Medico
On 02/21/2015 12:18 PM, Zac Medico wrote: On 02/21/2015 08:14 AM, Anthony G. Basile wrote: Finally, a limitation of the above should be noted. Since the CFLAGS/CXXFLAGS cached are only those supplied by the user, it does not cover situations where the package build system or ebuild supply

[gentoo-portage-dev] [PATCH] use_reduce: support non-string token_class (bug 541198)

2015-02-23 Thread Zac Medico
Do not assume that token_class returns a basestring. X-Gentoo-Bug: 541198 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=541198 --- pym/portage/dep/__init__.py | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pym/portage/dep/__init__.py

Re: [gentoo-portage-dev] [PATCH] Do not interrupt on SIGCONT

2015-02-26 Thread Zac Medico
On 02/25/2015 08:30 PM, Mike Frysinger wrote: From: Bertrand SIMONNET bsimon...@chromium.org SIGCONT signals should not interrupt any system calls (locking or wait pid for example). URL: http://crbug.com/417800 X-Gentoo-Bug-URL: https://bugs.gentoo.org/500436 ---

[gentoo-portage-dev] [PATCH] repoman: skip vcs calls for manifest modes (bug 540882)

2015-02-21 Thread Zac Medico
For manifest and manifest-check modes, there's no need to call the vcs unless --if-modified=y is enabled. X-Gentoo-Bug: 540882 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=540882 --- bin/repoman | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/repoman

Re: [gentoo-portage-dev] Pre RFC on RFC: Add compiler information to exported a Package Manger's Cached Information.

2015-02-25 Thread Zac Medico
On 02/25/2015 03:41 PM, Anthony G. Basile wrote: On 02/25/15 15:38, Zac Medico wrote: On 02/25/2015 12:01 PM, Anthony G. Basile wrote: On 02/25/15 14:51, Anthony G. Basile wrote: On 02/22/15 01:30, Zac Medico wrote: On 02/21/2015 10:22 PM, Zac Medico wrote: If we put the real/canonical

[gentoo-portage-dev] [PATCH] actions.py: fix missing localization import (bug 541302)

2015-02-24 Thread Zac Medico
Since commit 206efe5f6341bce99a5e9994a0458c304513b2c3, FEATURES=buildpkg triggers a NameError due to a missing localization import. Fix the NameError, and also allow read-only PKGDIR if the --usepkgonly option is enabled. Fixes: 206efe5f6341 (emerge: check for writable PKGDIR (490732))

Re: [gentoo-portage-dev] [PATCH v2] Support escaping network-sandbox through SOCKSv5 proxy

2015-01-25 Thread Zac Medico
On 01/25/2015 06:00 AM, Michał Górny wrote: diff --git a/bin/socks5-server.py b/bin/socks5-server.py new file mode 100644 index 000..c079018 --- /dev/null +++ b/bin/socks5-server.py @@ -0,0 +1,218 @@ +#!/usr/bin/env python +# SOCKSv5 proxy server for network-sandbox +# Copyright 2015

Re: [gentoo-portage-dev] [PATCH v2] Support escaping network-sandbox through SOCKSv5 proxy

2015-01-25 Thread Zac Medico
On 01/25/2015 06:00 AM, Michał Górny wrote: diff --git a/bin/socks5-server.py b/bin/socks5-server.py new file mode 100644 index 000..c079018 --- /dev/null +++ b/bin/socks5-server.py @@ -0,0 +1,218 @@ +#!/usr/bin/env python +# SOCKSv5 proxy server for network-sandbox +# Copyright 2015

Re: [gentoo-portage-dev] [PATCH v2] Support escaping network-sandbox through SOCKSv5 proxy

2015-01-25 Thread Zac Medico
On 01/25/2015 06:00 AM, Michał Górny wrote: + def __bool__(self):a + return self.socket_path is not None You should also implement __nonzero__ for python-2.x. -- Thanks, Zac

Re: [gentoo-portage-dev] [PATCH v3] Support escaping network-sandbox through SOCKSv5 proxy

2015-01-25 Thread Zac Medico
On 01/25/2015 02:34 PM, Michał Górny wrote: diff --git a/bin/socks5-server.py b/bin/socks5-server.py new file mode 100644 index 000..45cf76b --- /dev/null +++ b/bin/socks5-server.py @@ -0,0 +1,233 @@ +#!/usr/bin/env python +# SOCKSv5 proxy server for network-sandbox +# Copyright 2015

Re: [gentoo-portage-dev] [PATCH] Allow IPC networking during pkg_config pkg_info

2015-01-25 Thread Zac Medico
On 01/25/2015 03:42 AM, Michał Górny wrote: --- pym/portage/package/ebuild/doebuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py index 0d71f01..050f6c4 100644 ---

Re: [gentoo-portage-dev] [PATCH] Generate soname dependency metadata (282639)

2015-01-29 Thread Zac Medico
On 01/29/2015 04:54 PM, Anthony G. Basile wrote: On 01/26/15 22:16, Zac Medico wrote: ELF gets us like 99% of the way but will eventually have to think about Mach-O for gentoo-on-mac etc. Maybe COFF, a.out. Not sure where to draw the line. Yeah, I guess we can let the Prefix team decide

Re: [gentoo-portage-dev] [PATCH 2/3] portage/sync/syncbase.py: Change has_bin to an @property function

2015-01-29 Thread Zac Medico
On 01/29/2015 11:45 AM, Brian Dolbec wrote: This avoids that self.logger is None error in the __init__(). --- pym/portage/sync/syncbase.py | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/pym/portage/sync/syncbase.py

[gentoo-portage-dev] Re: [gentoo-dev] [PATCH] pym/portage/news.py: let slackers copy+paste the news read command

2015-01-30 Thread Zac Medico
On 01/30/2015 12:14 AM, Jason Zaman wrote: On Thu, Jan 29, 2015 at 11:00:21PM -0800, Zac Medico wrote: Also, when the work read appears twice on a short line like that, it gives a wordy/redundant feeling. Perhaps better would be 'eselect news read' to view new items? ie. view instead

Re: [gentoo-portage-dev] [PATCH 3/3] portage/sync: Some final pyflakes code cleanup

2015-01-29 Thread Zac Medico
On 01/29/2015 11:45 AM, Brian Dolbec wrote: --- pym/portage/sync/modules/cvs/cvs.py | 1 - pym/portage/sync/modules/git/git.py | 6 -- pym/portage/sync/modules/svn/svn.py | 5 ++--- pym/portage/sync/modules/websync/websync.py | 4 4 files changed, 2

Re: [gentoo-portage-dev] [PATCH 1/3] portage/sync: Break out a NewBase class from SyncBase

2015-01-29 Thread Zac Medico
On 01/29/2015 11:45 AM, Brian Dolbec wrote: From mgorny's suggestion, rename _sync() to update(). Raise NotImplementedError in base classes. Directly override sync() in websync module. Fix up line spacing to be consistent. --- pym/portage/sync/modules/cvs/cvs.py | 10 +++---

[gentoo-portage-dev] [PATCH v3] dispatch-conf: fix unicode handling (bug 545270)

2015-04-01 Thread Zac Medico
This avoids UnicodeDecodeError problems by using UTF-8 encoding regardless of the locale. X-Gentoo-Bug: 545270 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=545270 --- [PATCH v3] adds related fixes in bin/dispatch-conf bin/dispatch-conf| 9 +

[gentoo-portage-dev] [PATCH v2] repoman: fix dependency.unknown to ignore USE deps (bug 525376)

2015-04-02 Thread Zac Medico
The surrounding code is ignorant of USE flags, because it calls use_reduce(matchall=True), therefore it makes sense for the dependency.unknown code to ignore USE deps. X-Gentoo-Bug: 525376 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=525376 --- [PATCH v2] only changes the bug

Re: [gentoo-portage-dev] [PATCHv3 1/2] MEDIUM: misc-functions: Be more quiet when removing non existing INSTALL_MASK

2015-04-20 Thread Zac Medico
These are in the master branch now: https://gitweb.gentoo.org/proj/portage.git/commit/?id=5a1b870fe54ac06f864a648c3ea5cc118f6ce911 https://gitweb.gentoo.org/proj/portage.git/commit/?id=e74e2670e3f043608fced9847e54bdbb19f35169 On 04/20/2015 12:45 PM, Bertrand Jaquin wrote: #

Re: [gentoo-portage-dev] [PATCHv3 1/2] MEDIUM: misc-functions: Be more quiet when removing non existing INSTALL_MASK

2015-04-20 Thread Zac Medico
On 04/20/2015 05:31 PM, Bertrand Jacquin wrote: On 21/04/2015 00:39, Zac Medico wrote: These are in the master branch now: https://gitweb.gentoo.org/proj/portage.git/commit/?id=5a1b870fe54ac06f864a648c3ea5cc118f6ce911 https://gitweb.gentoo.org/proj/portage.git/commit/?id

Re: [gentoo-portage-dev] Re: [PATCHv3 1/2] MEDIUM: misc-functions: Be more quiet when removing non existing INSTALL_MASK

2015-04-21 Thread Zac Medico
On 04/21/2015 10:27 AM, Zac Medico wrote: On 04/21/2015 02:48 AM, Duncan wrote: Zac Medico posted on Mon, 20 Apr 2015 17:37:15 -0700 as excerpted: On 04/20/2015 05:31 PM, Bertrand Jacquin wrote: On 21/04/2015 00:39, Zac Medico wrote: These are in the master branch now: https

Re: [gentoo-portage-dev] Re: [PATCHv3 1/2] MEDIUM: misc-functions: Be more quiet when removing non existing INSTALL_MASK

2015-04-21 Thread Zac Medico
On 04/21/2015 02:48 AM, Duncan wrote: Zac Medico posted on Mon, 20 Apr 2015 17:37:15 -0700 as excerpted: On 04/20/2015 05:31 PM, Bertrand Jacquin wrote: On 21/04/2015 00:39, Zac Medico wrote: These are in the master branch now: https://gitweb.gentoo.org/proj/portage.git/commit/? id

Re: [gentoo-portage-dev] Re: [PATCHv3 1/2] MEDIUM: misc-functions: Be more quiet when removing non existing INSTALL_MASK

2015-04-21 Thread Zac Medico
On 04/21/2015 04:21 AM, Michael Orlitzky wrote: On 04/21/2015 05:48 AM, Duncan wrote: Well, I don't use INSTALL_MASK myself, so I don't have a real-world use-case for you. However, it's clear that the code will expand shell globs, so I preserved that behavior for compatibility. I do, with

[gentoo-portage-dev] [PATCH] LinkageMapElf.rebuild: pass error_leader to varexpand (bug 542796)

2015-04-23 Thread Zac Medico
Since commit f1c1b8a77eebf7713b32e5f9945690f60f4f46de, LinkageMapElf.rebuild could produce mysterious bad substitution messages. Fixes: f1c1b8a77eeb (Generate soname dependency metadata (bug 282639)) X-Gentoo-Bug: 542796 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=542796

Re: [gentoo-portage-dev] [PATCH] portage/util.py: Identify the source of a bad sustitution error message (bug 542796)

2015-04-23 Thread Zac Medico
On 04/23/2015 09:01 AM, Brian Dolbec wrote: This bug caused great difficulty in determining the cause of the error message. This adds identifying code which states where the error message is coming from. It also adds the actual source which caused the error message in the first place.

Re: [gentoo-portage-dev] emerge -a @preserved-rebuild wants to rebuild dev-java/oracle-jdk-bin-1.8.0.45

2015-04-24 Thread Zac Medico
On 04/23/2015 11:20 PM, Joakim Tjernlund wrote: On Thu, 2015-04-23 at 18:57 -0700, Zac Medico wrote: On 04/23/2015 04:35 AM, Joakim Tjernlund wrote: On Wed, 2015-04-22 at 18:49 -0700, Zac Medico wrote: On 04/22/2015 04:07 PM, Joakim Tjernlund wrote: emerge -a @preserved-rebuild [ebuild Rf

[gentoo-portage-dev] [PATCH] search: fix addCP so only the specified results are displayed (bug 547736)

2015-04-25 Thread Zac Medico
Since commit 4938b8a8a72e719b394a5c5b0c5030c160091d57, the search.addCP method has not worked as intended. Fixes: 4938b8a8a72e (Display emerge search results incrementally (412471)) X-Gentoo-Bug: 547736 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=547736 --- pym/_emerge/search.py |

[gentoo-portage-dev] [PATCH] Make the USE variable readonly (bug 325009)

2015-04-26 Thread Zac Medico
This requires the EBUILD_FORCE_TEST code from dyn_test to execute before USE is declared readonly. X-Gentoo-Bug: 325009 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=325009 --- bin/ebuild.sh | 10 +- bin/phase-functions.sh | 9 + 2 files changed, 10

[gentoo-portage-dev] [PATCH] VdbMetadataDelta.applyDelta: remove replaced versions (bug 547532)

2015-04-24 Thread Zac Medico
Since commit d800d224ab38c0f524d3fe858ebe201cbfa903c1, emerge --search could randomly report incorrect results for the installed version due to the replaced version of a given slot remaining in the cache. Fixes: d800d224ab38 (Log changes between vdb_metadata.pickle updates) X-Gentoo-Bug: 547532

Re: [gentoo-portage-dev] emerge -a @preserved-rebuild wants to rebuild dev-java/oracle-jdk-bin-1.8.0.45

2015-04-22 Thread Zac Medico
On 04/22/2015 04:07 PM, Joakim Tjernlund wrote: emerge -a @preserved-rebuild [ebuild Rf ] dev-java/oracle-jdk-bin-1.8.0.45 but this does not help, how can I see what @preserved-rebuild is looking for? Jocke Probably ffmpeg/libav libraries. Here's a bug report:

Re: [gentoo-portage-dev] [PATCH 2/2] MEDIUM: misc-functions: Be more verbose when removing INSTALL_MASK glob

2015-04-19 Thread Zac Medico
On 04/19/2015 03:35 PM, Bertrand Jaquin wrote: + find ${root} \( -path ${no_inst} -or -name ${no_inst} \) 2 /dev/null \ + | while read; do + __quiet_mode || einfo Removing /${REPLY#${root}} + rm -Rf ${REPLY} /dev/null +

[gentoo-portage-dev] [PATCH] _doebuild_path: add fallback for temp PORTAGE_BIN_PATH (bug 547086)

2015-04-19 Thread Zac Medico
X-Gentoo-Bug: 547086 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=547086 --- pym/portage/package/ebuild/doebuild.py | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pym/portage/package/ebuild/doebuild.py

[gentoo-portage-dev] [PATCH] UseManager: handle newlines for USE_EXPAND prefixes (bug 546512)

2015-04-19 Thread Zac Medico
From: Albert Safin xzf...@gmail.com Since commit b65e1fc5fe723bd07bf034f6e08878fa3eb033cb, USE_EXPAND prefixes affected subsequent lines of the same atom in package.use. Fixes: b65e1fc5fe72 (Support USE_EXPAND prefixes in package.use and relevant files) X-Gentoo-Bug: 546512 X-Gentoo-Bug-URL:

Re: [gentoo-portage-dev] [PATCHv2 2/2] MEDIUM: misc-functions: Be more verbose when removing INSTALL_MASK glob

2015-04-19 Thread Zac Medico
On 04/19/2015 05:01 PM, Bertrand Jaquin wrote: diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 36a3bb8..4c37f10 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -276,7 +276,13 @@ install_mask() { # we also need to handle globs (*.a, *.h,

<    1   2   3   4   5   6   7   8   9   10   >