Re: [gentoo-portage-dev] [RFC] Adding extra vars to md5-cache, for QA&tooling purposes

2019-07-28 Thread Zac Medico
On 7/25/19 11:49 PM, Fabian Groffen wrote: > Hi, > > On 25-07-2019 14:20:50 +0200, Michał Górny wrote: >> Hi, >> >> TL;DR: I'd like to make it possible for ebuilds to define additional >> variables that will be stored in md5-cache. This would be useful for CI >> and other tooling that right now h

Re: [gentoo-portage-dev] [PATCH] Drop removed git and tla from list of live eclasses.

2019-07-26 Thread Zac Medico
On 7/26/19 2:28 AM, Ulrich Müller wrote: > Signed-off-by: Ulrich Müller > --- > cnf/sets/portage.conf | 2 +- > lib/portage/const.py | 4 +--- > 2 files changed, 2 insertions(+), 4 deletions(-) > > diff --git a/cnf/sets/portage.conf b/cnf/sets/portage.conf > index ed4c6d9a7..38c50a647 100644 >

Re: [gentoo-portage-dev] [PATCH] Support PROPERTIES="live".

2019-07-26 Thread Zac Medico
On 7/26/19 1:51 AM, Ulrich Müller wrote: > Bug: https://bugs.gentoo.org/233589 > Signed-off-by: Ulrich Müller > --- > cnf/sets/portage.conf | 8 +++- > lib/_emerge/EbuildExecuter.py | 4 ++-- > lib/portage/_sets/__init__.py

Re: [gentoo-portage-dev] [RFC] Adding extra vars to md5-cache, for QA&tooling purposes

2019-07-25 Thread Zac Medico
On 7/25/19 5:20 AM, Michał Górny wrote: > Hi, > > TL;DR: I'd like to make it possible for ebuilds to define additional > variables that will be stored in md5-cache. This would be useful for CI > and other tooling that right now has to parse ebuilds for other data. > > > The idea is to add a new

Re: [gentoo-portage-dev] [PATCH] repoman: add 'user.eclass' to deprecated eclasses

2019-07-24 Thread Zac Medico
On 7/24/19 1:16 AM, Michał Górny wrote: > Dnia July 24, 2019 6:19:05 AM UTC, Ulrich Mueller > napisał(a): >>> On Tue, 23 Jul 2019, Michał Górny wrote: >> >>> Make repoman report user.eclass as deprecated by GLEP 81. >> >> I don't understand. user.eclass is inherited by both acct-user.eclass >

Re: [gentoo-portage-dev] [PATCH] repoman: add 'user.eclass' to deprecated eclasses

2019-07-23 Thread Zac Medico
On 7/23/19 8:00 AM, Michał Górny wrote: > Make repoman report user.eclass as deprecated by GLEP 81. > > Signed-off-by: Michał Górny > --- > repoman/lib/repoman/modules/linechecks/deprecated/inherit.py | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/repoman/lib/repoman/modules/linecheck

[gentoo-portage-dev] [PATCH v3] repos.conf: default sync-webrsync-verify-signature

2019-07-10 Thread Zac Medico
for secure key refresh, this behavior will not be supported in a future release. Bug: https://bugs.gentoo.org/689506 Signed-off-by: Zac Medico --- [PATCH v3] * Set sync-webrsync-verify-signature = yes in the default repos.conf (due to dependencies the ebuild will make this conditional on USE

[gentoo-portage-dev] [PATCH v2] repos.conf: default sync-webrsync-verify-signature

2019-07-09 Thread Zac Medico
Enable sync-webrsync-verify-signature by default. Use a new PORTAGE_TEMP_GPG_DIR variable to distinguish indirect emerge-webrsync calls that use gemato for secure key refresh, and disable direct emerge-webrsync calls. Deprecate FEATURES=webrsync-gpg and use it to trigger a backward-compatibility m

[gentoo-portage-dev] [PATCH] repos.conf: default sync-webrsync-verify-signature

2019-07-09 Thread Zac Medico
Enable sync-webrsync-verify-signature by default. Use a new PORTAGE_TEMP_GPG_DIR variable to distinguish indirect emerge-webrsync calls that use gemato for secure key refresh, and disable direct emerge-webrsync calls. Deprecate FEATURES=webrsync-gpg and use it to trigger a backward-compatibility m

Re: [gentoo-portage-dev] [PATCH 2/2] repos.conf: Default to using Gentoo keyservers

2019-07-04 Thread Zac Medico
This series looks good. Please merge. -- Thanks, Zac signature.asc Description: OpenPGP digital signature

Re: [gentoo-portage-dev] Constraint-Based Dependency Solver for Portage: again

2019-06-20 Thread Zac Medico
On 6/20/19 12:02 PM, michael.lienha...@laposte.net wrote: > Dear all, > > A few months ago, I got back to my constraint-based dependency solver for > portage, that I had to leave for a while. > Thanks to Zac Medico, it is now based on portage itself to query the portage > tre

Re: [gentoo-portage-dev] [PATCH] [repoman] Allow empty LICENSE in acct-* packages

2019-06-20 Thread Zac Medico
On 6/20/19 5:33 AM, Michał Górny wrote: > Since acct-* packages do not create any files (except for keepfile > for the home directory), it is perfectly normal for the LICENSE > to be empty. > --- > repoman/lib/repoman/modules/scan/metadata/ebuild_metadata.py | 4 ++-- > 1 file changed, 2 insertion

Re: [gentoo-portage-dev] [PATCH] ebuild: fix QA_SONAME_NO_SYMLINK

2019-06-18 Thread Zac Medico
On 6/17/19 4:09 PM, Mike Gilbert wrote: > misc-functions.sh and ebuild.5 reference QA_SONAME_NO_SYMLINK. > Update doebuild.py to match this name. > > Signed-off-by: Mike Gilbert > --- > lib/portage/package/ebuild/doebuild.py | 18 +- > 1 file changed, 9 insertions(+), 9 deletions

Re: [gentoo-portage-dev] [PATCH] Don't modify /etc/mtab from temporary namespaces

2019-05-27 Thread Zac Medico
On 5/27/19 1:23 PM, i.Dark_Templar wrote: > These records are never removed and just pollute > /etc/mtab if that's a regular file. > And if /etc/mtab isn't a regular file, > then attempts to modify it are pointless. > --- > lib/portage/process.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletio

[gentoo-portage-dev] [PATCH] repoman: report error for unknown arguments (bug 686074)

2019-05-25 Thread Zac Medico
Bug: https://bugs.gentoo.org/686074 Signed-off-by: Zac Medico --- repoman/lib/repoman/argparser.py | 33 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/repoman/lib/repoman/argparser.py b/repoman/lib/repoman/argparser.py index b87df95cd..fa0e6ff90

[gentoo-portage-dev] [PATCH] Recognize riscv ABIs (bug 686194)

2019-05-17 Thread Zac Medico
/. Bug: https://bugs.gentoo.org/686194 Signed-off-by: Zac Medico --- lib/portage/dep/soname/multilib_category.py | 51 +++-- lib/portage/util/elf/constants.py | 10 +++- 2 files changed, 55 insertions(+), 6 deletions(-) diff --git a/lib/portage/dep/soname

Re: [gentoo-portage-dev] [PATCH] bindbapi: add reentrant lock method (bug 685236)

2019-05-10 Thread Zac Medico
On 5/8/19 11:05 AM, Zac Medico wrote: > On 5/7/19 1:01 PM, Zac Medico wrote: >> On 5/7/19 7:55 AM, Alec Warner wrote: >> >>> Also curious why we are not implementing enter and exit so we can avoid >>> unbalanced pairs by using context managers. >>>

[gentoo-portage-dev] [PATCH] repoman: check IUSE in _match_use for USE defaults (bug 685482)

2019-05-09 Thread Zac Medico
thon2_7', 'python_targets_python3_5', 'python_targets_python3_7', 'python_single_target_python3_5', 'python_single_target_python3_7', 'python_targets_python2_7', 'python_targets_python3_6', 'python_single_target_python3_6

Re: [gentoo-portage-dev] [PATCH] bindbapi: add reentrant lock method (bug 685236)

2019-05-08 Thread Zac Medico
On 5/7/19 1:01 PM, Zac Medico wrote: > On 5/7/19 7:55 AM, Alec Warner wrote: > >> Also curious why we are not implementing enter and exit so we can avoid >> unbalanced pairs by using context managers. >> >> e.g. in match(), we could likely write: >> >> w

Re: [gentoo-portage-dev] [PATCH] bindbapi: add reentrant lock method (bug 685236)

2019-05-07 Thread Zac Medico
On 5/7/19 7:55 AM, Alec Warner wrote: > > > On Mon, May 6, 2019 at 8:15 PM Zac Medico <mailto:zmed...@gentoo.org>> wrote: > > Add a reentrant lock/unlock method which is useful for things like > emaint binhost and eclean-pkg. The vardbapi class already

[gentoo-portage-dev] [PATCH] bindbapi: add reentrant lock method (bug 685236)

2019-05-06 Thread Zac Medico
Add a reentrant lock/unlock method which is useful for things like emaint binhost and eclean-pkg. The vardbapi class already provides lock/unlock methods that behave the same way. Bug: https://bugs.gentoo.org/685236 Signed-off-by: Zac Medico --- lib/portage/dbapi/bintree.py

Re: [gentoo-portage-dev] Re: Portage project lead election

2019-05-04 Thread Zac Medico
On 5/2/19 12:10 PM, Johannes Kellner wrote: > > On 5/2/19 1:43 AM, Zac Medico wrote: >> I'm the only nominee. > > I vote for you Zac, because of the things I have seen at this mailing list. > You are an active devloper, with a deep understanding of the code base. > Y

[gentoo-portage-dev] Re: Portage project lead election

2019-05-01 Thread Zac Medico
On 4/24/19 11:26 AM, Zac Medico wrote: > On 4/16/19 1:05 PM, Zac Medico wrote: >> Hi all, >> >> We're due for a Portage project lead election [1] which is required by >> GLEP 39 [2]. Please reply with nominations. Thanks! >> >> [1] https://bugs.gentoo.o

[gentoo-portage-dev] Re: [PATCH] autounmask: prefer || choices with existing packages (bug 327177)

2019-04-29 Thread Zac Medico
On 4/29/19 12:33 AM, Zac Medico wrote: > + # If all choices have unsatisfied deps, fall back to > default > + # autounmask=False behavior. > + choice = choices[0] > + > +

[gentoo-portage-dev] [PATCH] autounmask: prefer || choices with existing packages (bug 327177)

2019-04-29 Thread Zac Medico
. The unit tests also show that autounmask still prefers choices containing packages that are not masked (if available). Bug: https://bugs.gentoo.org/327177 Signed-off-by: Zac Medico --- lib/_emerge/depgraph.py | 152 -- .../resolver

[gentoo-portage-dev] [PATCH] fetch: atomic downloads (bug 175612)

2019-04-28 Thread Zac Medico
. Bug: https://bugs.gentoo.org/175612 Signed-off-by: Zac Medico --- lib/_emerge/BinpkgVerifier.py | 2 +- lib/portage/package/ebuild/fetch.py| 97 - lib/portage/tests/ebuild/test_fetch.py | 186 + 3 files changed, 251 insertions(+), 34 deletions

[gentoo-portage-dev] [PATCH] Enable FEATURES=strict-keepdir behavior for new EAPIs

2019-04-27 Thread Zac Medico
Suggested-by: Pacho Ramos Bug: https://bugs.gentoo.org/651678 Signed-off-by: Zac Medico --- bin/eapi.sh | 4 bin/install-qa-check.d/95empty-dirs | 4 +++- man/make.conf.5 | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bin

[gentoo-portage-dev] Re: Portage project lead election

2019-04-24 Thread Zac Medico
On 4/16/19 1:05 PM, Zac Medico wrote: > Hi all, > > We're due for a Portage project lead election [1] which is required by > GLEP 39 [2]. Please reply with nominations. Thanks! > > [1] https://bugs.gentoo.org/683510 > [2] https://www.gentoo.org/glep/glep-0039.h

[gentoo-portage-dev] [PATCH 2/2 v4] Update /usr/portage references (bug 378603)

2019-04-18 Thread Zac Medico
Update all relevant references in docs, messages, and comments to refer to /var/db/repos/gentoo instead of /usr/portage. Also update DISTDIR and PKGDIR references to refer to the new /var/cache/{distfiles,binpkgs} locations. Bug: https://bugs.gentoo.org/378603 Signed-off-by: Zac Medico

Re: [gentoo-portage-dev] [PATCH 2/2 v3] Update /usr/portage references (bug 378603)

2019-04-18 Thread Zac Medico
On 4/18/19 10:28 AM, Ulrich Mueller wrote: >>>>>> On Thu, 18 Apr 2019, Zac Medico wrote: > >> --- a/man/ebuild.5 >> +++ b/man/ebuild.5 >> [...] >> @@ -553,8 +554,8 @@ usage. >> .B LICENSE >> This should be a space delimited list of lice

[gentoo-portage-dev] [PATCH 2/2 v3] Update /usr/portage references (bug 378603)

2019-04-18 Thread Zac Medico
Update all relevant references in docs, messages, and comments to refer to /var/db/repos/gentoo instead of /usr/portage. Also update DISTDIR and PKGDIR references to refer to the new /var/cache/{distfiles,binpkgs} locations. Bug: https://bugs.gentoo.org/378603 --- [PATCH 2/2 v3] Remove "Note that

Re: [gentoo-portage-dev] Portage project lead election

2019-04-17 Thread Zac Medico
On 4/16/19 4:41 PM, Brian Dolbec wrote: > On Tue, 16 Apr 2019 13:05:40 -0700 > Zac Medico wrote: > >> Hi all, >> >> We're due for a Portage project lead election [1] which is required by >> GLEP 39 [2]. Please reply with nominations. Thanks! >> >&g

[gentoo-portage-dev] Portage project lead election

2019-04-16 Thread Zac Medico
Hi all, We're due for a Portage project lead election [1] which is required by GLEP 39 [2]. Please reply with nominations. Thanks! [1] https://bugs.gentoo.org/683510 [2] https://www.gentoo.org/glep/glep-0039.html -- Thanks, Zac

[gentoo-portage-dev] [PATCH] socks5: use ${PORTAGE_TMPDIR}/portage (bug 683040)

2019-04-10 Thread Zac Medico
Write temporary socket files in ${PORTAGE_TMPDIR}/portage, since writing files directly in ${PORTAGE_TMPDIR} is generally unexpected. Bug: https://bugs.gentoo.org/683040 Signed-off-by: Zac Medico --- lib/portage/util/socks5.py | 10 +- 1 file changed, 9 insertions(+), 1 deletion

[gentoo-portage-dev] [PATCH] Speed up testing against IUSE by not using regexp

2019-04-10 Thread Zac Medico
view.googlesource.com/1524641 Commit-Ready: Douglas Anderson Tested-by: Douglas Anderson Reviewed-by: Douglas Anderson See: https://chromium.googlesource.com/chromiumos/third_party/portage_tool/+/82a0776602df5707606de2099b93b8b7b1cc34a1 Bug: https://bugs.gentoo.org/680810 Signed-off-by: Zac

Re: [gentoo-portage-dev] [PATCH][v4] enable user settable gpg keyservers

2019-03-31 Thread Zac Medico
On 3/3/19 1:43 PM, Matthew Thode wrote: > On 19-02-26 15:33:53, Matthew Thode wrote: >> On 19-02-26 10:52:52, Zac Medico wrote: >>> On 2/26/19 10:48 AM, Zac Medico wrote: >>>> On 2/25/19 1:45 PM, Matthew Thode wrote: >>>>> On 19-02-25 15:41:03, Mat

Re: [gentoo-portage-dev] [PATCH] __dyn_test: Make fallback to WORKDIR conditional.

2019-03-18 Thread Zac Medico
On 3/9/19 12:16 AM, Ulrich Müller wrote: > When the fallback from S to WORKDIR was made conditional in EAPI 4, > src_test() was originally omitted. This has been fixed retroactively > in PMS: > https://gitweb.gentoo.org/proj/pms.git/commit/?id=0038f90a942f0856ae2533b26f709002a3ec80ae > > There sho

Re: [gentoo-portage-dev] [PATCH][v3] enable user settable gpg keyservers (attached)

2019-02-26 Thread Zac Medico
On 2/26/19 10:48 AM, Zac Medico wrote: > On 2/25/19 1:45 PM, Matthew Thode wrote: >> On 19-02-25 15:41:03, Matthew Thode wrote: >>> On 19-02-25 14:34:46, Matthew Thode wrote: >>>> Allowing users to define which keyservers they update from allows them >>>&g

Re: [gentoo-portage-dev] [PATCH][v3] enable user settable gpg keyservers (attached)

2019-02-26 Thread Zac Medico
On 2/25/19 1:45 PM, Matthew Thode wrote: > On 19-02-25 15:41:03, Matthew Thode wrote: >> On 19-02-25 14:34:46, Matthew Thode wrote: >>> Allowing users to define which keyservers they update from allows them >>> to work around buggy keyservers. It is also useful for local mirrors >>> and / or priva

[gentoo-portage-dev] [PATCH] locks: check for removed lockfile only if unlinkfile is True

2019-02-19 Thread Zac Medico
Check for a removed lockfile only if unlinkfile is True, since in this case the parent directory must be writable. This fixes emergelog usage where the parent directory is not writable. Bug: https://bugs.gentoo.org/678278 Signed-off-by: Zac Medico --- lib/portage/locks.py | 2 +- 1 file changed

Re: [gentoo-portage-dev] [PATCH] locks: handle sshfs hardlink inode numbers (bug 678218)

2019-02-18 Thread Zac Medico
On 2/18/19 8:57 AM, Brian Dolbec wrote: > On Sun, 17 Feb 2019 15:04:29 -0800 > Zac Medico wrote: > >> Since hardlinks on sshfs do not have matching inode numbers, detect >> this behavior and use a simple stat call to detect if lock_path has >> been removed. >>

[gentoo-portage-dev] [PATCH] locks: handle sshfs hardlink inode numbers (bug 678218)

2019-02-17 Thread Zac Medico
Since hardlinks on sshfs do not have matching inode numbers, detect this behavior and use a simple stat call to detect if lock_path has been removed. Bug: https://bugs.gentoo.org/678218 Signed-off-by: Zac Medico --- lib/portage/locks.py | 27 +++ 1 file changed, 27

Re: [gentoo-portage-dev] [PATCH 2/2] Replace multiprocessing.cpu_count with portage.util.cpuinfo.get_cpu_count

2019-02-15 Thread Zac Medico
On 2/15/19 10:21 PM, robb...@gentoo.org wrote: > From: "Robin H. Johnson" > > portage.util.cpuinfo.get_cpu_count was only used in one spot before, and > other call-sites just used multiprocessing.cpu_count() directly. > > Replace all multiprocessing.cpu_count() calls with get_cpu_count() in > po

[gentoo-portage-dev] [PATCH] locks: handle lock file removal on NFS (bug 636798)

2019-02-06 Thread Zac Medico
ath exists on the NFS server. Bug: https://bugs.gentoo.org/636798 Signed-off-by: Zac Medico --- lib/portage/locks.py | 76 +--- 1 file changed, 64 insertions(+), 12 deletions(-) diff --git a/lib/portage/locks.py b/lib/portage/locks.py index a4e7ec53f.

[gentoo-portage-dev] [PATCH] pid-sandbox: pid-ns-init TIOCSCTTY after setsid (bug 675868)

2019-01-27 Thread Zac Medico
Set the controlling terminal to the stdout pty after calling setsid, in order to avoid "No such device or address" ENXIO errors when attempting to open /dev/tty. Bug: https://bugs.gentoo.org/675868 Signed-off-by: Zac Medico --- bin/pid-ns-init | 11 +++ 1 file changed, 11

[gentoo-portage-dev] [PATCH v2] inherit: use local -x ECLASS (bug 676014)

2019-01-22 Thread Zac Medico
ECLASS variable. Bug: https://bugs.gentoo.org/656354 Bug: https://bugs.gentoo.org/676014 Signed-off-by: Zac Medico --- [PATCH v2] * Fix the EXPORT_FUNCTIONS eqawarn messsage, reported by Arfrever * Also make __export_funcs_var local bin/ebuild.sh | 27 ++- 1 file

[gentoo-portage-dev] [PATCH] pid-sandbox: run pid-ns-init as root (bug 675868)

2019-01-22 Thread Zac Medico
ned-off-by: Arfrever Frehtes Taifersar Arahesis Signed-off-by: Zac Medico --- bin/pid-ns-init| 49 ++ lib/portage/process.py | 12 +-- 2 files changed, 40 insertions(+), 21 deletions(-) diff --git a/bin/pid-ns-init b/bin/pid-ns-init index f9b8cc4f3.

[gentoo-portage-dev] [PATCH] pid-sandbox: pid-ns-init setsid support (bug 675870)

2019-01-22 Thread Zac Medico
Use setsid to isolate the parent process from signals sent to the process group, and forward signals to the entire process group with kill(0, signum). Bug: https://bugs.gentoo.org/675870 Signed-off-by: Zac Medico --- bin/pid-ns-init | 12 +--- 1 file changed, 9 insertions(+), 3

[gentoo-portage-dev] [PATCH] inherit: use local -x ECLASS (bug 676014)

2019-01-21 Thread Zac Medico
Use local -x ECLASS. Bug: https://bugs.gentoo.org/656354 Bug: https://bugs.gentoo.org/676014 Signed-off-by: Zac Medico --- bin/ebuild.sh | 26 ++ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 820db50ca..64041dff9

[gentoo-portage-dev] [PATCH v2] pid-ns-init: fix child process signal disposition (bug 675828)

2019-01-20 Thread Zac Medico
use preexec_fn to manually configure the signal disposition (I have found that this is necessary for CPython 2.7 and all PyPy versions tested, including PyPy3). Bug: https://bugs.gentoo.org/675828 Signed-off-by: Zac Medico --- [PATCH v2] fix to use Popen pass_fds parameter when appropriate bin/pid

[gentoo-portage-dev] [PATCH] INSTALL_MASK: index patterns anchored with leading slash (bug 675826)

2019-01-20 Thread Zac Medico
oo*/bar']} /foo/bar* -> {'foo': {'.': ['/foo/bar*']}} /foo/bar/ -> {'foo': {'bar': {'.': ['/foo/bar/']}}} Bug: https://bugs.gentoo.org/675826 Signed-off-by: Zac Medico --- lib/portage/util/install_mask.py | 78 +

[gentoo-portage-dev] [PATCH] pid-ns-init: fix child process signal disposition (bug 675828)

2019-01-19 Thread Zac Medico
use preexec_fn to manually configure the signal disposition (I have found that this is necessary for CPython 2.7 and all PyPy versions tested, including PyPy3). Bug: https://bugs.gentoo.org/675828 Signed-off-by: Zac Medico --- bin/pid-ns-init | 31 --- 1 file changed,

Re: [gentoo-portage-dev] [PATCH] pid-sandbox: execute pid-ns-init as pid 1 (bug 675312)

2019-01-14 Thread Zac Medico
On 1/13/19 8:57 PM, Brian Dolbec wrote: > On Sun, 13 Jan 2019 16:27:21 -0800 > Zac Medico wrote: > >> Execute pid-ns-init as the first fork after unshare, as >> required for it to have pid 1 and become the default reaper >> of orphaned descendant processes. In _exec

[gentoo-portage-dev] [PATCH] pid-sandbox: execute pid-ns-init as pid 1 (bug 675312)

2019-01-13 Thread Zac Medico
Execute pid-ns-init as the first fork after unshare, as required for it to have pid 1 and become the default reaper of orphaned descendant processes. In _exec, exec a separate pid-ns-init process to behave as a supervisor which will forward signals to init and forward exit status to the parent proc

Re: [gentoo-portage-dev] [PATCH v5] collision_protect: use dynamic report interval

2019-01-10 Thread Zac Medico
On 1/10/19 7:30 AM, Fabian Groffen wrote: > The reporting of files remaining can look somewhat odd since the report > interval is hardcoded to be per 1000 objects. Adjust this interval to > be time based. This means that modern (fast) machines likely will never > see the countdown messages at all

Re: [gentoo-portage-dev] [PATCH v4] collision_protect: use dynamic report interval

2019-01-09 Thread Zac Medico
On 1/9/19 12:33 AM, Fabian Groffen wrote: > The reporting of files remaining can look somewhat odd since the report > interval is hardcoded to be per 1000 objects. Adjust this interval to > be time based. This means that modern (fast) machines likely will never > see the countdown messages at all

Re: [gentoo-portage-dev] [PATCH v3] collision_protect: use dynamic report interval

2019-01-08 Thread Zac Medico
On 1/8/19 5:42 AM, Fabian Groffen wrote: > The reporting of files remaining can look somewhat odd since the report > interval is hardcoded to be per 1000 objects. Adjust this interval to > be time based. This means that modern (fast) machines likely will never > see the countdown messages at all.

[gentoo-portage-dev] [PATCH] pid-sandbox: whitelist selected pkg_* phases (bug 673794)

2019-01-07 Thread Zac Medico
Whitelist the same phases that are whitelisted for FEATURES=cgroup, since pid-sandbox is less valuable and is likely to have unintended consenquences during these phases. Bug: https://bugs.gentoo.org/673794 Signed-off-by: Zac Medico --- lib/_emerge/AbstractEbuildProcess.py | 9 ++--- lib

Re: [gentoo-portage-dev] [PATCH] lib/portage/dbapi/vartree: use dynamic report interval in _collision_protect

2019-01-07 Thread Zac Medico
On 1/7/19 6:31 AM, Fabian Groffen wrote: > The reporting of files remaining can look somewhat odd since the report > interval is hardcoded to be per 1000 objects. Adjust this interval to > be regular towards the end. While at it, report percentage done. > > Output before this patch: > > * chec

[gentoo-portage-dev] Re: [PATCH] file_copy: handle EUCLEAN from copy_file_range (bug 674332)

2019-01-03 Thread Zac Medico
On 1/2/19 2:29 PM, Zac Medico wrote: > EXT4 can set the errno to EUCLEAN for copy_file_range. > > Bug: https://bugs.gentoo.org/674332 > Signed-off-by: Zac Medico > --- > src/portage_util_file_copy_reflink_linux.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [gentoo-portage-dev] [PATCH] file_copy: handle EUCLEAN from copy_file_range (bug 674332)

2019-01-02 Thread Zac Medico
On 1/2/19 8:55 PM, Michał Górny wrote: > On Wed, 2019-01-02 at 14:29 -0800, Zac Medico wrote: >> EXT4 can set the errno to EUCLEAN for copy_file_range. >> >> Bug: https://bugs.gentoo.org/674332 >> Signed-off-by: Zac Medico >> --- >> src/portage_util_file

[gentoo-portage-dev] [PATCH v2] file_copy: handle EUCLEAN from copy_file_range (bug 674332)

2019-01-02 Thread Zac Medico
EXT4 can set the errno to EUCLEAN for copy_file_range. Bug: https://bugs.gentoo.org/674332 Signed-off-by: Zac Medico --- [PATCH v2] Use #ifdef EUCLEAN as suggested by Micha?? G??rny src/portage_util_file_copy_reflink_linux.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions

[gentoo-portage-dev] [PATCH] ebuild.sh: sandbox write to ${PORTAGE_TMPDIR}/portage (bug 673738)

2019-01-02 Thread Zac Medico
}/portage. Bug: https://bugs.gentoo.org/673738 Bug: https://bugs.gentoo.org/378403 Signed-off-by: Zac Medico --- bin/ebuild.sh | 4 ++-- lib/portage/package/ebuild/doebuild.py | 27 ++ 2 files changed, 4 insertions(+), 27 deletions(-) diff --git a/bin

[gentoo-portage-dev] [PATCH] file_copy: handle EUCLEAN from copy_file_range (bug 674332)

2019-01-02 Thread Zac Medico
EXT4 can set the errno to EUCLEAN for copy_file_range. Bug: https://bugs.gentoo.org/674332 Signed-off-by: Zac Medico --- src/portage_util_file_copy_reflink_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/portage_util_file_copy_reflink_linux.c b/src

Re: [gentoo-portage-dev] Error logs

2018-12-30 Thread Zac Medico
On 12/30/18 9:51 PM, Pratyush Das wrote: > For oracle-jdk - https://pastebin.com/iT1XsfUv > In this case the log tells you to download jdk-8u192-linux-x64.tar.gz > from  > http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html > and place it in your distfiles directory.

Re: [gentoo-portage-dev] [PATCH] process.spawn: validate unshare calls (bug 673900)

2018-12-30 Thread Zac Medico
On 12/30/18 1:06 AM, Zac Medico wrote: > On 12/30/18 12:44 AM, Michał Górny wrote: >> On Sat, 2018-12-29 at 04:49 -0800, Zac Medico wrote: >>> In order to prevent failed unshare calls from corrupting the state >>> of an essential process, validate the relevant unshar

Re: [gentoo-portage-dev] [PATCH] process.spawn: validate unshare calls (bug 673900)

2018-12-30 Thread Zac Medico
On 12/30/18 12:44 AM, Michał Górny wrote: > On Sat, 2018-12-29 at 04:49 -0800, Zac Medico wrote: >> In order to prevent failed unshare calls from corrupting the state >> of an essential process, validate the relevant unshare call in a >> short-lived subprocess. An unshare cal

[gentoo-portage-dev] [PATCH] process.spawn: validate unshare calls (bug 673900)

2018-12-29 Thread Zac Medico
-by: Zac Medico --- lib/portage/process.py | 130 + 1 file changed, 106 insertions(+), 24 deletions(-) diff --git a/lib/portage/process.py b/lib/portage/process.py index ce3e42a8f..4bd6a4192 100644 --- a/lib/portage/process.py +++ b/lib/portage/process.py

Re: [gentoo-portage-dev] [PATCH 0/4] Rename PORT_LOGDIR{,_CLEAN} variables to PORTAGE_LOGDIR{,_CLEAN} Bug 668538

2018-12-18 Thread Zac Medico
On 12/17/18 7:51 AM, Michał Górny wrote: > On Mon, 2018-12-17 at 15:44 +, M. J. Everitt wrote: >> On 17/12/18 12:54, Michał Górny wrote: Not only this, but as noted, unless you know the man pages for portage and make.conf in order to recite them in your sleep, they are confusing for >

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

2018-12-12 Thread Zac Medico
On 12/12/18 9:37 AM, Michał Górny wrote: > The sandboxes are stable enough to be enabled by default, and they all > prevent undesirable situations. Furthermore, they all gracefully handle > missing namespace support. > --- > cnf/make.globals | 9 + > 1 file changed, 5 insertions(+), 4 del

[gentoo-portage-dev] [PATCH] Support FEATURES=ccache-permission-adjust (bug 657582)

2018-12-11 Thread Zac Medico
Automatic CCACHE_DIR permission adjustments can cause problems for some users, therefore add a FEATURES flag so that it can be disabled. Bug: https://bugs.gentoo.org/657582 Signed-off-by: Zac Medico --- cnf/make.globals | 1 + lib/portage/const.py

Re: [gentoo-portage-dev] [PATCH] portage.process.spawn: inherit env by default (bug 672440)

2018-12-03 Thread Zac Medico
On 12/3/18 8:49 AM, Brian Dolbec wrote: > On Sun, 2 Dec 2018 23:55:23 -0800 > Zac Medico wrote: > >> Make child processes inherit the current process's environment by >> default, so that behavior is equivalent to the standard library's >> subprocess modul

[gentoo-portage-dev] [PATCH] portage.process.spawn: inherit env by default (bug 672440)

2018-12-02 Thread Zac Medico
Make child processes inherit the current process's environment by default, so that behavior is equivalent to the standard library's subprocess module. Bug: https://bugs.gentoo.org/672440 Signed-off-by: Zac Medico --- lib/portage/process.py | 10 +++--- 1 file changed, 7 insert

Re: [gentoo-portage-dev] [PATCH 0/2] git: drop privileges for gc and merge (bug 669496)

2018-11-25 Thread Zac Medico
On 11/25/18 9:54 AM, Brian Dolbec wrote: > On Fri, 23 Nov 2018 16:15:23 -0800 > Zac Medico wrote: > >> Use portage.process.spawn (with new cwd parameter) and >> self.spawn_kwargs to drop privileges for git gc and merge commands. >> >> Fixes: 3cd8cf93abb6 ("

[gentoo-portage-dev] [PATCH 0/2] git: drop privileges for gc and merge (bug 669496)

2018-11-23 Thread Zac Medico
4)") Bug: https://bugs.gentoo.org/669496 Signed-off-by: Zac Medico Zac Medico (2): portage.process.spawn: add cwd parameter git: drop privileges for gc and merge (bug 669496) lib/portage/process.py| 13 ++--- lib/portage/sync/modules/git/git.py | 10 ++ li

[gentoo-portage-dev] [PATCH 2/2] git: drop privileges for gc and merge (bug 669496)

2018-11-23 Thread Zac Medico
4)") Bug: https://bugs.gentoo.org/669496 Signed-off-by: Zac Medico --- lib/portage/sync/modules/git/git.py | 10 ++ lib/portage/tests/sync/test_sync_local.py | 22 -- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/lib/portage/sync/modules/git/git.py b/lib/

[gentoo-portage-dev] [PATCH 1/2] portage.process.spawn: add cwd parameter

2018-11-23 Thread Zac Medico
Signed-off-by: Zac Medico --- lib/portage/process.py | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/portage/process.py b/lib/portage/process.py index 75ec299f0..ed1a49247 100644 --- a/lib/portage/process.py +++ b/lib/portage/process.py @@ -220,7 +220,7

Re: [gentoo-portage-dev] [PATCH v3 3/3] Introduce a tiny init replacement for inside pid namespace

2018-11-18 Thread Zac Medico
On 11/18/18 3:42 AM, Michał Górny wrote: > Signed-off-by: Michał Górny > --- > bin/pid-ns-init| 30 ++ > lib/portage/process.py | 11 ++- > 2 files changed, 36 insertions(+), 5 deletions(-) > create mode 100644 bin/pid-ns-init > > New in v3: pid-ns-in

Re: [gentoo-portage-dev] [PATCH v2 3/3] Introduce a tiny init replacement for inside pid namespace

2018-11-18 Thread Zac Medico
On 11/18/18 1:21 AM, M. J. Everitt wrote: > On 18/11/18 09:18, Michał Górny wrote: >> On Sun, 2018-11-18 at 09:04 +, M. J. Everitt wrote: >>> On 18/11/18 08:53, Michał Górny wrote: Signed-off-by: Michał Górny --- bin/pid-ns-init| 25 + lib/p

Re: [gentoo-portage-dev] [PATCH v2 3/3] Introduce a tiny init replacement for inside pid namespace

2018-11-18 Thread Zac Medico
On 11/18/18 12:53 AM, Michał Górny wrote: > Signed-off-by: Michał Górny > --- > bin/pid-ns-init| 25 + > lib/portage/process.py | 11 ++- > 2 files changed, 31 insertions(+), 5 deletions(-) > create mode 100644 bin/pid-ns-init > > diff --git a/bin/pid-ns-

Re: [gentoo-portage-dev] [PATCH] ecompress-file: Support decompressing .lz

2018-11-17 Thread Zac Medico
On 11/17/18 12:14 AM, Michał Górny wrote: > Signed-off-by: Michał Górny > --- > bin/ecompress-file | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/bin/ecompress-file b/bin/ecompress-file > index bc8fe5451..ccc2701c3 100755 > --- a/bin/ecompress-file > +++ b/bin/ecompress-file > @@ -2

Re: [gentoo-portage-dev] [PATCH 2/3] Support FEATURES=pid-sandbox

2018-11-17 Thread Zac Medico
On 11/14/18 12:02 AM, Michał Górny wrote: > @@ -531,6 +543,15 @@ def _exec(binary, mycommand, opt_name, fd_pipes, env, > gid, groups, uid, umask, > > errno.errorcode.get(ctypes.get_errno(), '?')), >

Re: [RFC] gpkg format proposal v2 (was: Re: [gentoo-portage-dev] [RFC] Improving Gentoo package format)

2018-11-13 Thread Zac Medico
On 11/13/18 11:11 AM, Michał Górny wrote: > On Tue, 2018-11-13 at 10:50 -0800, Zac Medico wrote: >> On 11/11/18 12:53 PM, Michał Górny wrote: >>> Hi, >>> >>> Ok, here's the second version integrating the feedback received. >>> The format is much si

Re: [RFC] gpkg format proposal v2 (was: Re: [gentoo-portage-dev] [RFC] Improving Gentoo package format)

2018-11-13 Thread Zac Medico
On 11/13/18 10:50 AM, Zac Medico wrote: > On 11/11/18 12:53 PM, Michał Górny wrote: >> Hi, >> >> Ok, here's the second version integrating the feedback received. >> The format is much simpler, based on nested tarballs inspired by Debian. >> >> The outer

Re: [RFC] gpkg format proposal v2 (was: Re: [gentoo-portage-dev] [RFC] Improving Gentoo package format)

2018-11-13 Thread Zac Medico
On 11/11/18 12:53 PM, Michał Górny wrote: > Hi, > > Ok, here's the second version integrating the feedback received. > The format is much simpler, based on nested tarballs inspired by Debian. > > The outer tarball is uncompressed and uses '.gpkg.tar' suffix. It > contains (preferably in order bu

Re: [RFC] gpkg format proposal v2 (was: Re: [gentoo-portage-dev] [RFC] Improving Gentoo package format)

2018-11-13 Thread Zac Medico
On 11/13/18 9:53 AM, Zac Medico wrote: > On 11/13/18 9:49 AM, Zac Medico wrote: >> On 11/11/18 12:53 PM, Michał Górny wrote: >>> Hi, >>> >>> Ok, here's the second version integrating the feedback received. >>> The format is much simpler, based

Re: [RFC] gpkg format proposal v2 (was: Re: [gentoo-portage-dev] [RFC] Improving Gentoo package format)

2018-11-13 Thread Zac Medico
On 11/13/18 9:49 AM, Zac Medico wrote: > On 11/11/18 12:53 PM, Michał Górny wrote: >> Hi, >> >> Ok, here's the second version integrating the feedback received. >> The format is much simpler, based on nested tarballs inspired by Debian. >> >> The outer

Re: [RFC] gpkg format proposal v2 (was: Re: [gentoo-portage-dev] [RFC] Improving Gentoo package format)

2018-11-13 Thread Zac Medico
On 11/11/18 12:53 PM, Michał Górny wrote: > Hi, > > Ok, here's the second version integrating the feedback received. > The format is much simpler, based on nested tarballs inspired by Debian. > > The outer tarball is uncompressed and uses '.gpkg.tar' suffix. It > contains (preferably in order bu

Re: [gentoo-portage-dev] [RFC] Improving Gentoo package format

2018-11-10 Thread Zac Medico
On 11/10/2018 06:37 AM, Alec Warner wrote: > > On Sat, Nov 10, 2018 at 8:09 AM Michał Górny > wrote: > > Hi, everyone. > > The Gentoo's tbz2/xpak package format is quite old.  We've made a few > incompatible changes in the past (most notably, allowing non-b

Re: [gentoo-portage-dev] [PATCH] isolated-functions.sh: Do not define any aliases.

2018-11-05 Thread Zac Medico
On 11/05/2018 12:12 PM, Ulrich Müller wrote: > save_IFS and restore_IFS are the only aliases that Portage defines, > and they are used exactly once. Rewrite __source_all_bashrcs() not to > depend on them, and remove their definitions. > > The intention is to drop the expand_aliases shell option at

Re: [gentoo-portage-dev] [PATCH v2] Support disabling stripping for binary packages

2018-11-05 Thread Zac Medico
On 11/05/2018 11:58 AM, Michał Górny wrote: > Similarly to FEATURES=binpkg-docompress, implement > FEATURES=binpkg-dostrip that controls whether stripping occurs before or > after building the binary package. > > This makes it possible to build binary packages with some debug > information that is

Re: [gentoo-portage-dev] [PATCH v2] Support disabling docompress for binary package builds

2018-11-04 Thread Zac Medico
On 11/04/2018 01:20 AM, Michał Górny wrote: > Add FEATURES=binpkg-docompress that can be used whether docompress > compression is performed before or after creating binary packages. With > the feature enabled (the default), the current behavior of storing > compressed files in binpkg is preserved.

Re: [gentoo-portage-dev] [PATCH] Support disabling docompress for binary package builds

2018-11-03 Thread Zac Medico
On 11/03/2018 03:44 PM, Zac Medico wrote: > On 11/03/2018 01:10 AM, Michał Górny wrote: >> On Fri, 2018-11-02 at 19:35 -0700, Zac Medico wrote: >>> On 11/02/2018 12:35 PM, Michał Górny wrote: >>>> On Fri, 2018-11-02 at 12:22 -0700, Zac Medico wrote: >>>>&g

Re: [gentoo-portage-dev] [PATCH] Support disabling docompress for binary package builds

2018-11-03 Thread Zac Medico
On 11/03/2018 01:10 AM, Michał Górny wrote: > On Fri, 2018-11-02 at 19:35 -0700, Zac Medico wrote: >> On 11/02/2018 12:35 PM, Michał Górny wrote: >>> On Fri, 2018-11-02 at 12:22 -0700, Zac Medico wrote: >>>> On 11/02/2018 12:16 PM, Michał Górny wrote: >>>&g

Re: [gentoo-portage-dev] [PATCH] Support disabling docompress for binary package builds

2018-11-02 Thread Zac Medico
On 11/02/2018 12:35 PM, Michał Górny wrote: > On Fri, 2018-11-02 at 12:22 -0700, Zac Medico wrote: >> On 11/02/2018 12:16 PM, Michał Górny wrote: >>> On Fri, 2018-11-02 at 11:49 -0700, Zac Medico wrote: >>>> On 11/01/2018 02:50 AM, Michał Górny wrote: >>>>

Re: [gentoo-portage-dev] [PATCH] Support disabling docompress for binary package builds

2018-11-02 Thread Zac Medico
On 11/02/2018 12:16 PM, Michał Górny wrote: > On Fri, 2018-11-02 at 11:49 -0700, Zac Medico wrote: >> On 11/01/2018 02:50 AM, Michał Górny wrote: >>> Add FEATURES=binpkg-docompress that can be used whether docompress >>> compression is performed before or after crea

Re: [gentoo-portage-dev] [PATCH] Support disabling docompress for binary package builds

2018-11-02 Thread Zac Medico
On 11/01/2018 02:50 AM, Michał Górny wrote: > Add FEATURES=binpkg-docompress that can be used whether docompress > compression is performed before or after creating binary packages. With > the feature enabled (the default), the current behavior of storing > compressed files in binpkg is preserved.

Re: [gentoo-portage-dev] [PATCH] estrip: Run RANLIB after stripping static archives to fix LTO

2018-10-30 Thread Zac Medico
On 10/29/2018 09:46 AM, Michał Górny wrote: > Run RANLIB after stripping static archives in order to fix potentially > mangled LTO symbol indexes. According to the user's report, strip lacks > support for LTO symbols (and for binutils plugins that could add > the missing support) and breaks them.

Re: [gentoo-portage-dev] [PATCH] *-qa-check.d: fix entering EROOT in EAPI 7

2018-10-25 Thread Zac Medico
On 10/25/2018 07:25 AM, Michał Górny wrote: > Fix running QA checks from EROOT in EAPI 7 if the value is empty. > Previously, this wrongly caused 'cd' to be run with empty value implying > home directory. > > Bug: https://bugs.gentoo.org/668638 > Signed-off-by: Michał Górny > --- > bin/misc-func

[gentoo-portage-dev] [PATCH] _doebuild_path: Respect order defined in ROOTPATH (bug 667662)

2018-10-07 Thread Zac Medico
://bugs.gentoo.org/667662 Signed-off-by: Zac Medico --- lib/portage/package/ebuild/doebuild.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/portage/package/ebuild/doebuild.py b/lib/portage/package/ebuild/doebuild.py index 941a597e2..621fe7360 100644 --- a/lib/portage

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