Re: [gentoo-portage-dev] [PATCH v2] repoman: ignore unadded files when possible (bug 559636)

2015-09-05 Thread Zac Medico
On 09/05/2015 09:18 AM, Zac Medico wrote: > On 09/05/2015 09:16 AM, Brian Dolbec wrote: >> On Sat, 5 Sep 2015 07:31:27 -0700 >> Zac Medico <zmed...@gentoo.org> wrote: >> >>> Unadded files that are excluded from the Manifest are safe to ignore. >>>

Re: [gentoo-portage-dev] [PATCH v2] egencache: stable use.local.desc mtime for rsync (bug 557192)

2015-09-01 Thread Zac Medico
On 09/01/2015 03:46 AM, Michał Górny wrote: > > > Dnia 25 sierpnia 2015 18:34:16 CEST, Zac Medico <zmed...@gentoo.org> > napisał(a): >> Preserve mtime when the md5sum is identical. > > Sorry for being late to the party but wouldn't it be cleaner not to rewrite

[gentoo-portage-dev] [PATCH] emerge --search: fix duplication of results (bug 559044)

2015-08-28 Thread Zac Medico
Fix search._cp_all() to ensure sorted input for MultiIterGroupBy. Add a boolean sort keyword argument to all dbapi.cp_all() implementations, and set defaults for backward compatible behavior. X-Gentoo-Bug: 559044 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=559044 Signed-off-by: Zac

[gentoo-portage-dev] [PATCH v2] egencache: stable use.local.desc mtime for rsync (bug 557192)

2015-08-25 Thread Zac Medico
Preserve mtime when the md5sum is identical. X-Gentoo-Bug: 557192 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=557192 --- [PATCH v2] ensures exact integer mtime when there is not an existing file, for consistency with the mtime preservation code. bin/egencache | 20

[gentoo-portage-dev] [PATCH] egencache: stable use.local.desc mtime for rsync (bug 557192)

2015-08-25 Thread Zac Medico
Preserve mtime when the md5sum is identical. X-Gentoo-Bug: 557192 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=557192 --- bin/egencache | 14 ++ 1 file changed, 14 insertions(+) diff --git a/bin/egencache b/bin/egencache index 5c00248..7ac1fba 100755 --- a/bin/egencache

Re: [gentoo-portage-dev] [PATCH] sync repositories in parallel (bug 557426)

2015-08-13 Thread Zac Medico
On 08/13/2015 07:29 AM, Brian Dolbec wrote: On Thu, 13 Aug 2015 01:34:36 -0700 Zac Medico zmed...@gentoo.org wrote: +def _task_exit(self, task): +''' +Remove the task from the graph, in order to expose +more leaf nodes

Re: [gentoo-portage-dev] [PATCH] egencache: Always output EAPI=0 in cache entries

2015-08-11 Thread Zac Medico
On 08/11/2015 10:38 AM, Michał Górny wrote: Remove the code skipping EAPI=0 output in cache entries. There is really no reason to treat EAPI=0 specially here, and this makes the output more consistent. --- bin/egencache | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/egencache

[gentoo-portage-dev] [PATCH] similar_name_search: used indexed repos where appropriate (bug 556764)

2015-08-05 Thread Zac Medico
This reduces the time of 'emerge --info foo' by roughly 24% on my laptop. X-Gentoo-Bug: 556764 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=556764 --- pym/_emerge/actions.py | 7 +-- pym/_emerge/depgraph.py | 6 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff

[gentoo-portage-dev] [PATCH] circular_dependency_handler: limit USE combination search (bug 555698)

2015-08-03 Thread Zac Medico
Limit the number of USE combinations searched to 1024 = 2 ** 10, where 10 is a constant named MAX_AFFECTING_USE, in order to avoid consuming unreasonable amounts of time. First, discard irrelevent flags that are not enabled. Since extract_affecting_use doesn't distinguish between positive and

[gentoo-portage-dev] [PATCH] depgraph._select_files: use _iter_match_pkgs for tbz2 arguments (bug 556464)

2015-08-01 Thread Zac Medico
This code has been broken since commit 34055adae6bd90fc64f18421e2cec5f8da6f7c33. Fixes: 34055adae6bd (binpkg-multi-instance 1 of 7) X-Gentoo-Bug: 556464 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=556464 --- pym/_emerge/depgraph.py | 15 ++- 1 file changed, 10

[gentoo-portage-dev] [PATCH] die: call set +x since tracing only produces useless noise here

2015-07-17 Thread Zac Medico
--- bin/isolated-functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 003c01d..5766921 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -121,6 +121,7 @@ __helpers_die() { } die() { + set +x

[gentoo-portage-dev] [PATCH] depgraph._want_update_pkg: handle _UNREACHABLE_DEPTH (bug 554928)

2015-07-15 Thread Zac Medico
Since commit 336ab90212c80ce9548362bf4fbdafd388c3515c, package depth can refer to _UNREACHABLE_DEPTH which is not an integer. Add _too_deep and _increment_depth methods to handle depth operations. Fixes: 336ab90212c8 (depgraph._add_dep: fix bug #52095) X-Gentoo-Bug: 554928 X-Gentoo-Bug-url:

[gentoo-portage-dev] [PATCH] RsyncSync: don't pass None sync-rsync-extra-opts value into shlex_split

2015-07-14 Thread Zac Medico
This fixes an issue with SyncLocalTestCase hanging on my system. --- pym/portage/sync/modules/rsync/rsync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/sync/modules/rsync/rsync.py b/pym/portage/sync/modules/rsync/rsync.py index 8041f07..f08bf5c 100644 ---

[gentoo-portage-dev] Re: [PATCH] RsyncSync: don't pass None sync-rsync-extra-opts value into shlex_split

2015-07-14 Thread Zac Medico
On Tue, Jul 14, 2015 at 12:52 PM, Zac Medico zmed...@gentoo.org wrote: This fixes an issue with SyncLocalTestCase hanging on my system. --- pym/portage/sync/modules/rsync/rsync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/sync/modules/rsync/rsync.py b

[gentoo-portage-dev] [PATCH] BlockerDB.discardBlocker: convert str to Atom for DbapiProvidesIndex (bug 554578)

2015-07-11 Thread Zac Medico
Since commit 11467fc640995e3dc8897c82bbc7130d5bf27d05, only Atom instances are allowed to be passed into match_pkgs calls. Fixes: 11467fc64099 (depgraph: soname dependency resolution (bug 282639)) X-Gentoo-Bug: 554578 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=554578 ---

[gentoo-portage-dev] [PATCH] AbstractEbuildProcess: use mkdtemp to avoid cgroup interference (bug 554108)

2015-07-07 Thread Zac Medico
This fixes parallel builds of the same package, so they don't try to kill eachothers processes. Fixes: b01a1b90d8c5 (Add FEATURES=cgroup to isolate phase processes.) X-Gentoo-Bug: 554108 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=554108 --- pym/_emerge/AbstractEbuildProcess.py |

[gentoo-portage-dev] [PATCH] Redirect /dev/fd bash test to /dev/null (bug 552340)

2015-06-16 Thread Zac Medico
The /dev/fd test from commit 7fab3aadb4cdca35ce0d81525af1256c745308ff shows a bash error message unecessarily. Fixes: 7fab3aadb4cd (Add another check for broken /dev/s (bug 538980)) X-Gentoo-Bug: 552340 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=552340 --- pym/_emerge/main.py | 19

Re: [gentoo-portage-dev] [PATCH v4] xattr: centralize the various shims in one place

2015-06-10 Thread Zac Medico
On 05/30/2015 01:59 PM, Mike Frysinger wrote: Rather than each module implementing its own shim around the various methods for accessing extended attributes, start a dedicated module that exports a consistent API. --- v4 - merge in recent quickpkg changes - add a XATTRS_WORKS

Re: [gentoo-portage-dev] [PATCH v4] xattr: centralize the various shims in one place

2015-06-10 Thread Zac Medico
On 06/10/2015 10:39 PM, Mike Frysinger wrote: On 10 Jun 2015 11:54, Zac Medico wrote: On 05/30/2015 01:59 PM, Mike Frysinger wrote: LGTM, except this one line is indented with spaces instead of tabs in vartree.py: def tar_contents(contents, root, tar, protect=None, onProgress=None

Re: [gentoo-portage-dev] [PATCH] make PORTAGE_BIN_PATH settings relocatable

2015-06-01 Thread Zac Medico
On 06/01/2015 10:25 AM, Mike Frysinger wrote: (a) just throw an error and exit when PORTAGE_BIN_PATH is not set ... considering the current portage code points to a path where it is no longer installed, maybe that's ok ? the recent changes to make portage install copies for each python

[gentoo-portage-dev] [PATCH] movefile: enable absolute_import for Python 2 (bug 550886)

2015-05-31 Thread Zac Medico
Since commit 1032cbf4c218741df1c57767fead2d00cc6321d9, with Python 2, movefile imports portage.util.xattr instead of xattr. Fix it by enabling absolute_import. Fixes: 1032cbf4c218 (quickpkg: support FEATURES=xattr (bug 550006)) X-Gentoo-Bug: 550886 X-Gentoo-Bug-url:

[gentoo-portage-dev] [PATCH] _LazyImportFrom._get_target: handle submodule import (bug 550906)

2015-05-31 Thread Zac Medico
Since commit 1032cbf4c218741df1c57767fead2d00cc6321d9, PreloadPortageSubmodulesTestCase fails because _LazyImportFrom._get_target does not try to import submodules. Fix it to do so. Fixes: 1032cbf4c218 (quickpkg: support FEATURES=xattr (bug 550006)) X-Gentoo-Bug: 550906 X-Gentoo-Bug-url:

Re: [gentoo-portage-dev] [PATCH v2] install-qa-check.d: issue warnings for 32bit ELFs not using LFS

2015-05-30 Thread Zac Medico
On 05/30/2015 07:36 AM, Mike Frysinger wrote: On 26 May 2015 08:58, Zac Medico wrote: On 05/26/2015 07:24 AM, Mike Frysinger wrote: + # Only check on 32-bit systems. Filtering by $ARCH here isn't perfect, but + # it should be good enough for our needs. + case ${ARCH} in + arm|mips

Re: [gentoo-portage-dev] [PATCH v3] xattr: centralize the various shims in one place

2015-05-30 Thread Zac Medico
On 05/30/2015 08:14 AM, Mike Frysinger wrote: + @classmethod + def list(cls, item, nofollow=False, namespace=None, _names_only=True): + cmd = ['getfattr', '-d', '--absolute-names', item] All getfattr calls need to use -m- ('-' pattern means match all) in order to list all

Re: [gentoo-portage-dev] [PATCH v2] install-qa-check.d: issue warnings for 32bit ELFs not using LFS

2015-05-26 Thread Zac Medico
On 05/26/2015 08:58 AM, Zac Medico wrote: On 05/26/2015 07:24 AM, Mike Frysinger wrote: +# Only check on 32-bit systems. Filtering by $ARCH here isn't perfect, but +# it should be good enough for our needs. +case ${ARCH} in +arm|mips|ppc|sh|x86) ;; +*) return

Re: [gentoo-portage-dev] [PATCH v2] install-qa-check.d: issue warnings for 32bit ELFs not using LFS

2015-05-26 Thread Zac Medico
On 05/26/2015 07:24 AM, Mike Frysinger wrote: + # Only check on 32-bit systems. Filtering by $ARCH here isn't perfect, but + # it should be good enough for our needs. + case ${ARCH} in + arm|mips|ppc|sh|x86) ;; + *) return ;; + esac Shouldn't we also enable this

[gentoo-portage-dev] [PATCH v2] quickpkg: support FEATURES=xattr (bug 550006)

2015-05-23 Thread Zac Medico
The xattrs are preserved in pax headers, in the same way that GNU tar preserves them. X-Gentoo-Bug: 550006 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=550006 --- [PATCH v2] adds absolute_import in portage.util.xattr (py 2.x compat) bin/quickpkg | 16

[gentoo-portage-dev] [PATCH] quickpkg: support FEATURES=xattr (bug 550006)

2015-05-23 Thread Zac Medico
The xattrs are preserved in pax headers, in the same way that GNU tar preserves them. X-Gentoo-Bug: 550006 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=550006 --- bin/quickpkg | 16 ++-- pym/portage/dbapi/vartree.py | 18 +++---

Re: [gentoo-portage-dev] [PATCH] portage/sync/modules/rsync: Fix UnicodeDecodeError: bug 549826

2015-05-18 Thread Zac Medico
On 05/18/2015 10:20 AM, Brian Dolbec wrote: X-Gentoo-Bug: 549826 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=549826 X-Gentoo-forums: https://forums.gentoo.org/viewtopic-t-1017380.html --- pym/portage/sync/modules/rsync/rsync.py | 8 +--- 1 file changed, 5 insertions(+), 3

[gentoo-portage-dev] [PATCH] egencache --update-pkg-desc-index: handle read-only repo (bug 549616)

2015-05-16 Thread Zac Medico
If the repo is read-only, write the cache to /var/cache/edb/dep where IndexedPortdb searches for it. X-Gentoo-Bug: 549616 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=549616 --- bin/egencache| 17 - pym/portage/repository/config.py | 12

[gentoo-portage-dev] [PATCH] binarytree.get_pkgindex_uri: handle --gebinpkg=n (bug 549666)

2015-05-16 Thread Zac Medico
Since commit 328dd4712f88cbb8ef390ae9eb471afa1ef781d7, get_pkgindex_uri triggers AttributeError if --rebuild* options are used together with --getbinpkg=n. Fixes: 328dd4712f88 (binpkg-multi-instance 3 of 7) X-Gentoo-Bug: 549666 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=549666 ---

[gentoo-portage-dev] [PATCH] Allow read-only PKGDIR if no ebuilds will be built (bug 549072)

2015-05-12 Thread Zac Medico
X-Gentoo-Bug: 549072 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=549072 --- pym/_emerge/actions.py | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index b667537..92d1f2e 100644 --- a/pym/_emerge/actions.py +++

[gentoo-portage-dev] [PATCH] Fix deprecated logging.warn() calls (bug 549322)

2015-05-12 Thread Zac Medico
X-Gentoo-Bug: 549322 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=549322 --- bin/repoman| 10 +- pym/portage/_emirrordist/Config.py | 6 +++--- pym/portage/_emirrordist/MirrorDistTask.py | 4 ++-- pym/repoman/utilities.py

Re: [gentoo-portage-dev] repos.conf location w.r.t PORTAGE_CONFIGROOT

2015-05-10 Thread Zac Medico
On 05/10/2015 01:08 PM, Joakim Tjernlund wrote: On Sun, 2015-05-10 at 11:45 -0700, Zac Medico wrote: On 05/10/2015 04:47 AM, Joakim Tjernlund wrote: However, there may be a another bug in here. Portage is complaining over not being able to load the hosts profile as the hosts is using profile

[gentoo-portage-dev] [PATCH] dispatch-conf: handle file/directory collisions (bug 256376)

2015-05-10 Thread Zac Medico
Whenever a file/directory collision would have previously caused a problem, the colliding file or directory will now be renamed. X-Gentoo-Bug: 256376 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=256376 --- pym/portage/dispatch_conf.py | 97

Re: [gentoo-portage-dev] repos.conf location w.r.t PORTAGE_CONFIGROOT

2015-05-10 Thread Zac Medico
On 05/10/2015 04:47 AM, Joakim Tjernlund wrote: However, there may be a another bug in here. Portage is complaining over not being able to load the hosts profile as the hosts is using profile-formats = portage-2 and my CONFIGROOT is not. I don't think my CONFIGROOT should be forced to use

Re: [gentoo-portage-dev] repos.conf location w.r.t PORTAGE_CONFIGROOT

2015-05-09 Thread Zac Medico
On 05/09/2015 06:47 AM, Joakim Tjernlund wrote: On Fri, 2015-05-08 at 11:32 -0700, Zac Medico wrote: On 05/07/2015 11:43 PM, Joakim Tjernlund wrote: On Thu, 2015-05-07 at 14:09 -0700, Zac Medico wrote: On 05/07/2015 03:51 AM, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 22:45 +, Joakim

Re: [gentoo-portage-dev] repos.conf location w.r.t PORTAGE_CONFIGROOT

2015-05-09 Thread Zac Medico
On 05/09/2015 10:08 AM, Joakim Tjernlund wrote: On Sat, 2015-05-09 at 09:36 -0700, Zac Medico wrote: On 05/09/2015 06:47 AM, Joakim Tjernlund wrote: On Fri, 2015-05-08 at 11:32 -0700, Zac Medico wrote: On 05/07/2015 11:43 PM, Joakim Tjernlund wrote: On Thu, 2015-05-07 at 14:09 -0700, Zac

Re: [gentoo-portage-dev] repos.conf location w.r.t PORTAGE_CONFIGROOT

2015-05-08 Thread Zac Medico
On 05/07/2015 11:43 PM, Joakim Tjernlund wrote: On Thu, 2015-05-07 at 14:09 -0700, Zac Medico wrote: On 05/07/2015 03:51 AM, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 22:45 +, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 15:16 -0700, Zac Medico wrote: On 05/06/15 14:57, Joakim

[gentoo-portage-dev] [PATCH] VdbMetadataDelta.applyDelta: handle remove events properly (bug 547532)

2015-05-08 Thread Zac Medico
Since commit d800d224ab38c0f524d3fe858ebe201cbfa903c1, emerge --search could report removed packages as installed, since applyDelta failed to apply remove events unless the cpv exactly matched. Fix it to apply the remove event to each affected package slot, using the same code which is used to

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

2015-05-07 Thread Zac Medico
On 05/07/2015 01:06 AM, Alexander Berntsen wrote: On 24/04/15 18:32, Zac Medico wrote: -installed_package = installed_package[-1] +try: +self._vardb.match_unordered +except AttributeError

Re: [gentoo-portage-dev] repos.conf location w.r.t PORTAGE_CONFIGROOT

2015-05-07 Thread Zac Medico
On 05/07/2015 03:51 AM, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 22:45 +, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 15:16 -0700, Zac Medico wrote: On 05/06/15 14:57, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 14:36 -0700, Zac Medico wrote: On 05/06/15 14:30, Joakim Tjernlund

Re: [gentoo-portage-dev] repos.conf location w.r.t PORTAGE_CONFIGROOT

2015-05-06 Thread Zac Medico
On 05/06/15 14:57, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 14:36 -0700, Zac Medico wrote: On 05/06/15 14:30, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 13:30 -0700, Zac Medico wrote: On 05/06/15 13:22, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 12:54 -0700, Zac Medico wrote

Re: [gentoo-portage-dev] repos.conf location w.r.t PORTAGE_CONFIGROOT

2015-05-06 Thread Zac Medico
On 05/06/15 15:09, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 21:57 +, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 14:36 -0700, Zac Medico wrote: On 05/06/15 14:30, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 13:30 -0700, Zac Medico wrote: On 05/06/15 13:22, Joakim Tjernlund wrote

Re: [gentoo-portage-dev] repos.conf location w.r.t PORTAGE_CONFIGROOT

2015-05-06 Thread Zac Medico
On 05/06/15 13:22, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 12:54 -0700, Zac Medico wrote: On 05/06/15 12:41, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 19:13 +, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 11:37 -0700, Zac Medico wrote: On 05/06/15 09:54, Joakim Tjernlund wrote

Re: [gentoo-portage-dev] repos.conf location w.r.t PORTAGE_CONFIGROOT

2015-05-06 Thread Zac Medico
On 05/06/15 14:30, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 13:30 -0700, Zac Medico wrote: On 05/06/15 13:22, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 12:54 -0700, Zac Medico wrote: On 05/06/15 12:41, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 19:13 +, Joakim Tjernlund wrote

Re: [gentoo-portage-dev] repos.conf location w.r.t PORTAGE_CONFIGROOT

2015-05-06 Thread Zac Medico
On 05/06/15 12:41, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 19:13 +, Joakim Tjernlund wrote: On Wed, 2015-05-06 at 11:37 -0700, Zac Medico wrote: On 05/06/15 09:54, Joakim Tjernlund wrote: I am trying to rebuild an old cross sysroot and I got problems. I cannot make emerge to select

Re: [gentoo-portage-dev] [PATCH] Bundle a minimalistic derivation of Python's formatter module (bug 547732)

2015-05-06 Thread Zac Medico
On 04/28/15 18:48, Zac Medico wrote: On 04/28/2015 05:07 PM, Brian Dolbec wrote: On Sat, 25 Apr 2015 13:37:10 -0700 Zac Medico zmed...@gentoo.org wrote: Python's formatter module is scheduled for removal in Python 3.6, so replace it with a minimalistic derivation. X-Gentoo-Bug: 547732 X

Re: [gentoo-portage-dev] [PATCH] Use consistent rules for filenames of ebuils and misc files.

2015-05-05 Thread Zac Medico
On 05/05/2015 06:34 AM, Ulrich Müller wrote: So far non-ebuild filenames were allowed to contain a colon character. This is a problematic character as it is illegal in MS-Windows (and there is a Prefix x86-interix profile) and has special meaning as remote host indicator in scp and other

[gentoo-portage-dev] [PATCH] varexpand: fix IndexError (bug 548556)

2015-05-04 Thread Zac Medico
This handles two cases where varexpand incremented the index without checking bounds. X-Gentoo-Bug: 548556 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=548556 X-Gentoo-forum-thread: https://forums.gentoo.org/viewtopic-t-1016432.html --- pym/portage/util/__init__.py | 12

Re: [gentoo-portage-dev] [PATCH] bintree.populate: binhost connection failure triggers TypeError (bug 532784)

2015-05-04 Thread Zac Medico
On 05/03/2015 11:25 PM, Brian Dolbec wrote: Isn't this backwards from what was reported. It generated a UnicodeDecodeError when using additional args to unicode(). It was actually a TypeError. It needed to convert it to string so errors= needed to not be passed in. Yeah, the first unicode

[gentoo-portage-dev] [PATCH] Scheduler: increase visiblity of postinst failures (bug 547778)

2015-05-03 Thread Zac Medico
This makes postinst failures behave more like real failures in terms of output and the final emerge return code. However, in other respects, these packages will be treated as successful installations. This means that they will not cause emerge to immediately exit, and they will not trigger

[gentoo-portage-dev] [PATCH v2] PORTAGE_XATTR_EXCLUDE: preserve security.capability (bug 548516)

2015-05-03 Thread Zac Medico
Also, fix BinpkgExtractorAsync tar options to preserve security.capability attributes. X-Gentoo-Bug: 548516 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=548516 --- [PATCH v2] fixes BinpkgExtractorAsync tar --xattrs-exclude arguments to work correcty (each token must be

[gentoo-portage-dev] [PATCH] bintree.populate: binhost connection failure triggers TypeError (bug 532784)

2015-05-03 Thread Zac Medico
Since commit 4496ee37d6fa327ada635c67500e82f830141a9e, binhost connection errors result in a TypeError. Fix it to call the unicode function correctly (with only a single argument). Also, handle a possible UnicodeDecodeError. Fixes: 4496ee37d6fa (bintree.py: fix str() calls for Python 2 (532784))

[gentoo-portage-dev] [PATCH] PORTAGE_XATTR_EXCLUDE: preserve security.capability (bug 548516)

2015-05-03 Thread Zac Medico
Also, fix BinpkgExtractorAsync tar options to preserve security.capability attributes. X-Gentoo-Bug: 548516 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=548516 --- cnf/make.globals| 6 -- pym/_emerge/BinpkgExtractorAsync.py | 3 ++- 2 files changed, 6

[gentoo-portage-dev] [PATCH] dblink: elog failed postinst (bug 547778)

2015-05-02 Thread Zac Medico
This ensures that there's still an eerror elog message, even if the failed postinst did not call eerror itself. X-Gentoo-Bug: 547778 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=547778 --- pym/portage/dbapi/vartree.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff

[gentoo-portage-dev] [PATCH] ebuild-helpers: avoid exec loops or fork bombs in wrappers (bug 547086)

2015-04-28 Thread Zac Medico
Since commit 130c01b9e561dd6ff7733a4905b21a0a921e9a22, extra portage paths in PATH could trigger exec loops or fork bombs in wrappers. Fixes: 130c01b9e561 (_doebuild_path: add fallback for temp PORTAGE_BIN_PATH (bug 547086)) X-Gentoo-Bug: 547086 X-Gentoo-Bug-URL:

[gentoo-portage-dev] [PATCH v3] ebuild-helpers: avoid exec loops or fork bombs in wrappers (bug 547086)

2015-04-28 Thread Zac Medico
Since commit 130c01b9e561dd6ff7733a4905b21a0a921e9a22, extra portage paths in PATH could trigger exec loops or fork bombs in wrappers. Fixes: 130c01b9e561 (_doebuild_path: add fallback for temp PORTAGE_BIN_PATH (bug 547086)) X-Gentoo-Bug: 547086 X-Gentoo-Bug-URL:

[gentoo-portage-dev] [PATCH v3] ro_checker: only check nearest parent (bug 547390)

2015-04-28 Thread Zac Medico
The ro_checker code added in commit 47ef9a0969474f963dc8e52bfbbb8bc075e8d73c incorrectly asserts that all parent directories be writable. Fix it to only assert that the nearest parent directory be writable. Fixes 47ef9a096947: (Test for read-only filesystems, fixes bug 378869) X-Gentoo-Bug:

Re: [gentoo-portage-dev] [PATCH] Bundle a minimalistic derivation of Python's formatter module (bug 547732)

2015-04-28 Thread Zac Medico
On 04/28/2015 05:07 PM, Brian Dolbec wrote: On Sat, 25 Apr 2015 13:37:10 -0700 Zac Medico zmed...@gentoo.org wrote: Python's formatter module is scheduled for removal in Python 3.6, so replace it with a minimalistic derivation. X-Gentoo-Bug: 547732 X-Gentoo-Bug-url: https

[gentoo-portage-dev] [PATCH] ro_checker: only check nearest parent (bug 547390)

2015-04-28 Thread Zac Medico
The ro_checker code added in commit 47ef9a0969474f963dc8e52bfbbb8bc075e8d73c incorrectly asserts that all parent directories be writable. Fix it to only assert that the nearest parent directory be writable. Fixes 47ef9a096947: (Test for read-only filesystems, fixes bug 378869) X-Gentoo-Bug:

[gentoo-portage-dev] [PATCH v2] ro_checker: only check nearest parent (bug 547390)

2015-04-28 Thread Zac Medico
The ro_checker code added in commit 47ef9a0969474f963dc8e52bfbbb8bc075e8d73c incorrectly asserts that all parent directories be writable. Fix it to only assert that the nearest parent directory be writable. Fixes 47ef9a096947: (Test for read-only filesystems, fixes bug 378869) X-Gentoo-Bug:

[gentoo-portage-dev] [PATCH v2] ebuild-helpers: avoid exec loops or fork bombs in wrappers (bug 547086)

2015-04-28 Thread Zac Medico
Since commit 130c01b9e561dd6ff7733a4905b21a0a921e9a22, extra portage paths in PATH could trigger exec loops or fork bombs in wrappers. Fixes: 130c01b9e561 (_doebuild_path: add fallback for temp PORTAGE_BIN_PATH (bug 547086)) X-Gentoo-Bug: 547086 X-Gentoo-Bug-URL:

[gentoo-portage-dev] [PATCH] _unmerge_protected_symlinks: suggest UNINSTALL_IGNORE (bug 428098)

2015-04-28 Thread Zac Medico
X-Gentoo-Bug: 428098 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=428098 --- pym/portage/dbapi/vartree.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index c59d778..cacbf96 100644 ---

[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] 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 |

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] 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

[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-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] 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

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] [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,

Re: [gentoo-portage-dev] [PATCH v2] new_protect_filename: fix _unicode_decode TypeError with symlink (bug 546176)

2015-04-11 Thread Zac Medico
On 04/11/2015 05:45 AM, Alexander Berntsen wrote: LGTM, but what does From: mean? Do you mean Authored-by: or Suggested-by:? Please use one of those, whichever is the right one. Apparently this is what git send-email does when you send a patch after using the git commit --author option to set a

Re: [gentoo-portage-dev] [PATCH] repoman: handle removed packages in vcs_files_to_cps (bug 546010)

2015-04-11 Thread Zac Medico
On 04/11/2015 05:28 AM, Alexander Berntsen wrote: LGTM. But you don't need to duplicate the comment in the commit message, since the commit is so short clean. Okay, I'll drop the duplicate comment before I push. -- Thanks, Zac

[gentoo-portage-dev] [PATCH] repoman: handle removed packages in vcs_files_to_cps (bug 546010)

2015-04-08 Thread Zac Medico
Make vcs_files_to_cps exclude packages that have been removed, since calling code assumes that the packages exist. X-Gentoo-Bug: 546010 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=546010 --- bin/repoman | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

Re: [gentoo-portage-dev] Re: [PATCH] Enable cgroup, ipc-sandbox network-sandbox by default

2015-04-08 Thread Zac Medico
On 04/08/2015 07:03 AM, Martin Vaeth wrote: Michał Górny mgo...@gentoo.org wrote: All the features degrade gracefully when the relevant kernel features are not available. In conncetion with some old version of rescuecd, and fetching files, one can run into troubles with FEATURES=cgroups

[gentoo-portage-dev] [PATCH] ro_checker: skip parents of EPREFIX dir (bug 544624)

2015-04-05 Thread Zac Medico
The ro_checker code added in commit 47ef9a0969474f963dc8e52bfbbb8bc075e8d73c incorrectly asserts that the parent directories of EPREFIX be writable. Fix it to skip the parents, since they are irrelevant. This does not affect the case where EPREFIX is empty, since all directories are checked in

Re: [gentoo-portage-dev] [PATCH] fetch(): fix support for digest size=None

2015-04-05 Thread Zac Medico
On 04/05/2015 12:59 AM, Michał Górny wrote: It seems that the code initially supported fetching without size 'digest' but it got broken over time. Add proper conditionals to avoid ugly failures in this case. If we're handling this case, then we should probably not assume that the dict contains

Re: [gentoo-portage-dev] Dynamic USE dependencies

2015-04-04 Thread Zac Medico
On 04/02/2015 09:32 AM, Rich Freeman wrote: Out of curiosity, what is keeping us from having USE flag dependencies handled dynamically, in the same way that package dependencies are? If portage can figure out that I need libxml2 installed even if I don't put it in /var/lib/portage/world, why

[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

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

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: 545294 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=545294 --- bin/repoman | 5 +++-- 1 file changed,

[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] binarytree.move_ent: fix binpkg-multi-instance _pkg_paths corruption (bug 545252)

2015-04-01 Thread Zac Medico
When binpkg-multi-instance support was added in commit 328dd4712f88cbb8ef390ae9eb471afa1ef781d7, the code that adjusts self._pkg_paths in binarytree.move_ent was not fixed to account for the extra directory in the path. Fixes: 328dd4712f88 (binpkg-multi-instance 3 of 7) X-Gentoo-Bug: 545252

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

2015-04-01 Thread Zac Medico
On 04/01/2015 02:00 PM, Joakim Tjernlund wrote: On Mon, 2015-03-16 at 11:12 -0700, Zac Medico wrote: 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

[gentoo-portage-dev] [PATCH] dispatch_conf: use portage.os unicode wrapper (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 --- pym/portage/dispatch_conf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[gentoo-portage-dev] [PATCH v2] dispatch_conf: use portage.os, shutil unicode wrappers (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 v2] adds portage.shutil to the imports pym/portage/dispatch_conf.py | 4 +--- 1 file changed, 1

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 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

[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-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

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

<    9   10   11   12   13   14   15   16   17   18   >