[gentoo-portage-dev] [PATCH 1/3] repoman: Update header checks for the new copyright policy

2018-09-18 Thread Michał Górny
Update the header checks to account for the new copyright policy: - there can be multiple copyright lines, - copyright owner can be anyone, - at least one copyright line should match last modification date. This requires updating the check to appropriately allow the license line to move down. Add

[gentoo-portage-dev] [PATCH 2/3] repoman: Allow copyright updates for 'Gentoo Authors'

2018-09-18 Thread Michał Górny
--- repoman/lib/repoman/copyrights.py | 4 ++-- repoman/lib/repoman/tests/simple/test_simple.py | 10 ++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/repoman/lib/repoman/copyrights.py b/repoman/lib/repoman/copyrights.py index 94257c942..25627b3fc 100644 -

[gentoo-portage-dev] [PATCH 3/3] repoman: Automatically convert copyright to 'Gentoo Authors'

2018-09-18 Thread Michał Górny
Automatically convert 'Gentoo Foundation' copyright to 'Gentoo Authors' when updating the copyright date. --- repoman/lib/repoman/copyrights.py | 4 ++-- repoman/lib/repoman/tests/changelog/test_echangelog.py | 2 +- repoman/lib/repoman/tests/simple/test_simple.py| 4 +

[gentoo-portage-dev] [PATCH v2] f{owners,perms}: Warn when using relative path

2018-09-17 Thread Michał Górny
--- bin/ebuild-helpers/fowners | 15 +++ bin/ebuild-helpers/fperms | 15 +++ 2 files changed, 30 insertions(+) diff --git a/bin/ebuild-helpers/fowners b/bin/ebuild-helpers/fowners index 68004210b..0eda73e58 100755 --- a/bin/ebuild-helpers/fowners +++ b/bin/ebuild-helpers/

Re: [gentoo-portage-dev] [PATCH] f{owners,perms}: Warn when using relative path

2018-09-17 Thread Michał Górny
On Mon, 2018-09-17 at 12:42 -0400, Michael Orlitzky wrote: > On 09/17/2018 02:52 AM, Michał Górny wrote: > > > > --- a/bin/ebuild-helpers/fowners > > +++ b/bin/ebuild-helpers/fowners > > ... > > + eqawarn "This is unsupported. Please use '

[gentoo-portage-dev] [PATCH 2/2] ecompress: Replace with implementation from portage[mgorny]

2018-09-17 Thread Michał Górny
Replace the old ecompress/ecompressdir implementation with the one used in portage[mgorny]. This is a squashed version of a long series of commits that gutted off parts of old logic, introduced the new code, fixed ongoing bugs and finally restored the missing features. Given the scale of changes,

[gentoo-portage-dev] [PATCH 1/2] Replace implicit doc compression with dir compression in old EAPIs

2018-09-17 Thread Michał Górny
Unify the documentation compression methods in all EAPIs to compress per-directory rather than implicitly compress files installed by dodoc, doinfo and doman. Old EAPIs don't provide docompress to control which directories are compressed but they don't say anything about dodoc etc. compressing anyt

[gentoo-portage-dev] [PATCH] estrip: Use find -delete instead of manual rm

2018-09-17 Thread Michał Górny
--- bin/estrip | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/estrip b/bin/estrip index 5709b862c..3ee4b01ac 100755 --- a/bin/estrip +++ b/bin/estrip @@ -363,10 +363,9 @@ done < <( ) else while IFS= read -d '' -r x ; do - rm -f "${x}" || die inode_link=$

[gentoo-portage-dev] [PATCH] f{owners,perms}: Warn when using relative path

2018-09-16 Thread Michał Górny
--- bin/ebuild-helpers/fowners | 15 +++ bin/ebuild-helpers/fperms | 15 +++ 2 files changed, 30 insertions(+) diff --git a/bin/ebuild-helpers/fowners b/bin/ebuild-helpers/fowners index 68004210b..70297c6e6 100755 --- a/bin/ebuild-helpers/fowners +++ b/bin/ebuild-helpers/

Re: [gentoo-portage-dev] [PATCH v2 4/4] Ban prepall in ebuild scope

2018-09-16 Thread Michał Górny
On Sun, 2018-09-16 at 16:09 -0700, Zac Medico wrote: > On 09/15/2018 06:45 AM, Michał Górny wrote: > > --- > > bin/ebuild-helpers/prepall | 28 ++-- > > bin/misc-functions.sh | 27 ++- > > 2 files changed, 28

[gentoo-portage-dev] [PATCH v2 3/4] Ban prepalldocs in ebuild scope

2018-09-15 Thread Michał Górny
--- bin/ebuild-helpers/prepalldocs | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/bin/ebuild-helpers/prepalldocs b/bin/ebuild-helpers/prepalldocs index 6cdceb318..e23a6d410 100755 --- a/bin/ebuild-helpers/prepalldocs +++ b/bin/ebuild-helpers/prepalldocs @@

[gentoo-portage-dev] [PATCH v2 2/4] Ban prepallman in ebuild scope

2018-09-15 Thread Michał Górny
--- bin/ebuild-helpers/prepall| 7 ++- bin/ebuild-helpers/prepallman | 20 +++- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/bin/ebuild-helpers/prepall b/bin/ebuild-helpers/prepall index c2d879f37..87e1ca20c 100755 --- a/bin/ebuild-helpers/prepall +++ b/

[gentoo-portage-dev] [PATCH v2 1/4] Ban prepallinfo for ebuild scope use

2018-09-15 Thread Michał Górny
--- bin/ebuild-helpers/prepall | 4 ++-- bin/ebuild-helpers/prepallinfo | 9 ++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/bin/ebuild-helpers/prepall b/bin/ebuild-helpers/prepall index bc77af4a1..c2d879f37 100755 --- a/bin/ebuild-helpers/prepall +++ b/bin/ebuild-help

[gentoo-portage-dev] [PATCH v2 4/4] Ban prepall in ebuild scope

2018-09-15 Thread Michał Górny
--- bin/ebuild-helpers/prepall | 28 ++-- bin/misc-functions.sh | 27 ++- 2 files changed, 28 insertions(+), 27 deletions(-) Changed in v2: - fixed calling prepallstrip in EAPI 7 diff --git a/bin/ebuild-helpers/prepall b/bin/ebuild-helpers/pre

[gentoo-portage-dev] [PATCH 0/4] Unused prepall* removal

2018-09-15 Thread Michał Górny
step of refactoring for ecompress replacement. -- Best regards, Michał Górny Michał Górny (4): Ban prepallinfo for ebuild scope use Ban prepallman in ebuild scope Ban prepalldocs in ebuild scope Ban prepall in ebuild scope bin/ebuild-helpers/prepall | 25 +++-- bin

[gentoo-portage-dev] [PATCH 2/4] Ban prepallman in ebuild scope

2018-09-15 Thread Michał Górny
--- bin/ebuild-helpers/prepall| 7 ++- bin/ebuild-helpers/prepallman | 20 +++- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/bin/ebuild-helpers/prepall b/bin/ebuild-helpers/prepall index c2d879f37..87e1ca20c 100755 --- a/bin/ebuild-helpers/prepall +++ b/

[gentoo-portage-dev] [PATCH 1/4] Ban prepallinfo for ebuild scope use

2018-09-15 Thread Michał Górny
--- bin/ebuild-helpers/prepall | 4 ++-- bin/ebuild-helpers/prepallinfo | 9 ++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/bin/ebuild-helpers/prepall b/bin/ebuild-helpers/prepall index bc77af4a1..c2d879f37 100755 --- a/bin/ebuild-helpers/prepall +++ b/bin/ebuild-help

[gentoo-portage-dev] [PATCH 3/4] Ban prepalldocs in ebuild scope

2018-09-15 Thread Michał Górny
--- bin/ebuild-helpers/prepalldocs | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/bin/ebuild-helpers/prepalldocs b/bin/ebuild-helpers/prepalldocs index 6cdceb318..e23a6d410 100755 --- a/bin/ebuild-helpers/prepalldocs +++ b/bin/ebuild-helpers/prepalldocs @@

[gentoo-portage-dev] [PATCH 4/4] Ban prepall in ebuild scope

2018-09-15 Thread Michał Górny
--- bin/ebuild-helpers/prepall | 28 ++-- bin/misc-functions.sh | 27 ++- 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/bin/ebuild-helpers/prepall b/bin/ebuild-helpers/prepall index 87e1ca20c..e23a6d410 100755 --- a/bin/ebuild

[gentoo-portage-dev] [PATCH v3] install-qa-checks.d: Add a check for Gentoo path policies (FHS-y)

2018-09-04 Thread Michał Górny
Add a check that verifies whether ebuilds don't install to paths forbidden by the policy. This mostly aims to verbosely report bugs such as missing dependencies causing empty install paths, resulting in files ending up in / and bad upstreams. This should also help detect the relatively common mis

[gentoo-portage-dev] [PATCH v2] install-qa-checks.d: Add a check for Gentoo path policies (FHS-y)

2018-09-04 Thread Michał Górny
Add a check that verifies whether ebuilds don't install to paths forbidden by the policy. This mostly aims to verbosely report bugs such as missing dependencies causing empty install paths, resulting in files ending up in / and bad upstreams. This should also help detect the relatively common mis

Re: [gentoo-portage-dev] [PATCH] install-qa-checks.d: Add a check for Gentoo path policies (FHS-y)

2018-09-04 Thread Michał Górny
On Tue, 2018-09-04 at 13:24 +0200, Ulrich Mueller wrote: > > > > > > On Tue, 04 Sep 2018, Michał Górny wrote: > > + # toplevel directories which can be installed to by ebuilds > > + # /home is not included as no ebuilds should install files there > &

[gentoo-portage-dev] [PATCH] install-qa-checks.d: Add a check for Gentoo path policies (FHS-y)

2018-09-03 Thread Michał Górny
Add a check that verifies whether ebuilds don't install to paths forbidden by the policy. This mostly aims to verbosely report bugs such as missing dependencies causing empty install paths, resulting in files ending up in / and bad upstreams. This should also help detect the relatively common mis

[gentoo-portage-dev] [PATCH] repoman.config: Make yaml loader optional

2018-08-16 Thread Michał Górny
Make the yaml loader optional, delaying the failure until the user attempts to actually load a yaml file. Given that pyyaml is an external dependency, there is no real reason to fail as soon as repoman.config is loaded if YAML may not be used at all. --- repoman/lib/repoman/config.py | 8 +++-

Re: [gentoo-portage-dev] [PATCH] install-qa-check.d/60pngfix: parallel support (bug 630292)

2018-08-09 Thread Michał Górny
W dniu czw, 09.08.2018 o godzinie 11∶09 +0200, użytkownik Ulrich Mueller napisał: > > > > > > On Thu, 09 Aug 2018, Michał Górny wrote: > > > + if xargs --help | grep -q -- --max-procs=; then > > '--help' is not a valid argument on FreeBSD, so this

Re: [gentoo-portage-dev] [PATCH] install-qa-check.d/60pngfix: parallel support (bug 630292)

2018-08-09 Thread Michał Górny
quot; -type f -name '*.png' -exec "${pngfix}" > {} +) > + done < <(find "${ED}" -type f -name '*.png' -print0 | > "${xargs[@]}" -0 "${pngfix}") > fi > } > -- Best regards, Michał Górny signature.asc Description: This is a digitally signed message part

[gentoo-portage-dev] [PATCH v2 1/2] Add a tox.ini to support running tests via tox

2018-08-01 Thread Michał Górny
tox is the common Pythonic tool for running tests against multiple interpreters. It integrates well with virtualenv, making testing trivial on practically any system. Add a tox.ini file so users can take advantage of it. --- tox.ini | 16 1 file changed, 16 insertions(+) create

[gentoo-portage-dev] [PATCH v2 2/2] .travis.yml: Take advantage of tox

2018-08-01 Thread Michał Górny
Replace the code responsible for installing dependencies and running tests on Travis to use tox. This reduces code duplication (= risk of mis-sync) and saves us from those hoops needed to install dependencies conditionally via travis. --- .travis.yml | 28 ++-- 1 file chan

[gentoo-portage-dev] [PATCH 1/2] Add a tox.ini to support running tests via tox

2018-07-31 Thread Michał Górny
tox is the common Pythonic tool for running tests against multiple interpreters. It integrates well with virtualenv, making testing trivial on practically any system. Add a tox.ini file so users can take advantage of it. --- tox.ini | 16 1 file changed, 16 insertions(+) create

[gentoo-portage-dev] [PATCH 2/2] .travis.yml: Take advantage of tox

2018-07-31 Thread Michał Górny
Replace the code responsible for installing dependencies and running tests on Travis to use tox. This reduces code duplication (= risk of mis-sync) and saves us from those hoops needed to install dependencies conditionally via travis. --- .travis.yml | 28 ++-- 1 file chan

[gentoo-portage-dev] [PATCH v2] Replace implicit {FEATURES->USE}=test forcing with USE default

2018-07-31 Thread Michał Górny
Use an explicit USE_ORDER entry to control mapping FEATURES=test into default-enabled USE=test, rather than forcing/masking it depending on the state of FEATURES. This makes it possible for users to enable (or disable) USE=test independently of FEATURES. An example use case is installing test dep

[gentoo-portage-dev] [PATCH] Replace implicit {FEATURES->USE}=test forcing with USE default

2018-07-30 Thread Michał Górny
Use an explicit USE_ORDER entry to control mapping FEATURES=test into default-enabled USE=test, rather than forcing/masking it depending on the state of FEATURES. This makes it possible for users to enable (or disable) USE=test independently of FEATURES. An example use case is installing test dep

Re: [gentoo-portage-dev] [PATCH 1/2] bin/install-qa-check.d: add new 90bad-bin-owner QA check.

2018-07-29 Thread Michał Górny
done < <(find -L "${d}" -maxdepth 1 -type f ! -uid 0 -print0) > + > + if [[ ${found[@]} ]]; then > + eqawarn "system executables owned by nonzero uid:" > + for f in "${found[@]}"; do > +

[gentoo-portage-dev] [RFC] gemato-9999 uses WKD to update keys

2018-07-24 Thread Michał Górny
o you? Is there anything I've missed? [1]:https://wiki.gnupg.org/WKD [2]:https://github.com/mgorny/gemato/commit/909390c25a0ab589a4ae10d20cb9e321a51163b2 -- Best regards, Michał Górny signature.asc Description: This is a digitally signed message part

Re: [gentoo-portage-dev] Objections to renaming pym directory to lib?

2018-07-18 Thread Michał Górny
on-portage) tools won't need to care > about this name change? > It affects only the source tree; it doesn't affect installed Portage. -- Best regards, Michał Górny signature.asc Description: This is a digitally signed message part

Re: [gentoo-portage-dev] [PATCH] Disarm FEATURES=distcc-pump

2018-07-17 Thread Michał Górny
W dniu wto, 17.07.2018 o godzinie 23∶11 +0800, użytkownik konsolebox napisał: > On Tue, Jul 17, 2018 at 4:45 AM Michał Górny wrote: > > > > W dniu pon, 16.07.2018 o godzinie 13∶16 -0700, użytkownik Zac Medico > > napisał: > > > On 07/16/2018 02:26 AM, Michał Górny w

Re: [gentoo-portage-dev] [PATCH] Disarm FEATURES=distcc-pump

2018-07-16 Thread Michał Górny
W dniu pon, 16.07.2018 o godzinie 13∶16 -0700, użytkownik Zac Medico napisał: > On 07/16/2018 02:26 AM, Michał Górny wrote: > > The pump mode of distcc has been causing issues for years now, > > and upstream does even attempt to fix it. Disarm the FEATURES so that > > people d

[gentoo-portage-dev] [PATCH] Disarm FEATURES=distcc-pump

2018-07-16 Thread Michał Górny
The pump mode of distcc has been causing issues for years now, and upstream does even attempt to fix it. Disarm the FEATURES so that people do not have to do that themselves after discovering all the bugs. --- bin/phase-functions.sh | 17 - man/make.conf.5| 5 -

[gentoo-portage-dev] [PATCH v2] repoman: Warn on = dependencies without * or revision

2018-07-14 Thread Michał Górny
Warn if the '=' package dependency operator is used along with pure version with no revision specified. This means to catch a common mistake of developers copying '=' from upstream dependency specification while '~' operator would be more appropriate. This causes unintended depgraph breakage when t

[gentoo-portage-dev] [PATCH] repoman: Add EAPI 7 eclass deprecation

2018-05-14 Thread Michał Górny
Explicitly indicate that epatch, ltprune and versionator eclasses are deprecated. Do not deprecate eapi7-ver yet since it is still required in EAPI 6. --- repoman/pym/repoman/modules/linechecks/deprecated/inherit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repoman/pym/repoman/module

[gentoo-portage-dev] [PATCH] repos.conf: Use openpgp-keys-* as key provider for gemato

2018-05-10 Thread Michał Górny
Switch the key provider from unmaintained app-crypt/gentoo-keys to app-crypt/openpgp-keys-gentoo-release. The latter has the advantage of supplying current, working keys in the more portable OpenPGP format (rather than GnuPG binary keyring). --- cnf/repos.conf | 2 +- 1 file changed, 1 insertion(

Re: [gentoo-portage-dev] [PATCH 0/4] rsync: add key refresh retry (bug 649276)

2018-04-01 Thread Michał Górny
W dniu nie, 01.04.2018 o godzinie 08∶59 -0700, użytkownik Zac Medico napisał: > On 04/01/2018 03:57 AM, Michał Górny wrote: > > W dniu sob, 31.03.2018 o godzinie 19∶46 -0700, użytkownik Zac Medico > > napisał: > > > Since key refresh is prone to failure, retry using expone

Re: [gentoo-portage-dev] [PATCH] INSTALL_MASK: honor install time config for binary packages (bug 651952)

2018-04-01 Thread Michał Górny
1 @@ class dblink(object): > # be useful to avoid collisions in some scenarios. > # We cannot detect if this is needed or not here as > INSTALL_MASK can be > # modified by bashrc files. > + phase = MiscFunctionsProcess(background=False, > + commands=["preinst_mask"], phase="preinst", > + scheduler=self._scheduler, settings=self.settings) > + phase.start() > + phase.wait() > try: > with io.open(_unicode_encode(os.path.join(inforoot, > "INSTALL_MASK"), > encoding=_encodings['fs'], errors='strict'), -- Best regards, Michał Górny

Re: [gentoo-portage-dev] [PATCH 0/4] rsync: add key refresh retry (bug 649276)

2018-04-01 Thread Michał Górny
workaround broken networking. I would rather try to do that using 5 lines of code but that's just me, and my programs aren't enterprise quality. I just hope it actually solves as many problems as it's going to introduce. -- Best regards, Michał Górny

Re: [gentoo-portage-dev] [PATCH 0/3] INSTALL_MASK refurbishing resubmit

2018-03-23 Thread Michał Górny
W dniu pią, 23.03.2018 o godzinie 00∶52 +, użytkownik Joakim Tjernlund napisał: > On Mon, 2018-03-19 at 15:59 -0700, Zac Medico wrote: > > On 03/15/2018 12:22 PM, Michał Górny wrote: > > > Hi, > > > > > > Here are three of four INSTALL_MASK updates I'v

Re: [gentoo-portage-dev] [PATCH 0/3] INSTALL_MASK refurbishing resubmit

2018-03-18 Thread Michał Górny
to be able to strip stuff from more complete binary packages, not to force original restrictions forever. -- Best regards, Michał Górny

Re: [gentoo-portage-dev] [PATCH 0/3] INSTALL_MASK refurbishing resubmit

2018-03-16 Thread Michał Górny
W dniu pią, 16.03.2018 o godzinie 10∶07 -0700, użytkownik Zac Medico napisał: > On 03/16/2018 03:08 AM, Michał Górny wrote: > > W dniu czw, 15.03.2018 o godzinie 22∶10 -0700, użytkownik Zac Medico > > napisał: > > > On 03/15/2018 12:22 PM, Michał Górny wrote: > > >

Re: [gentoo-portage-dev] [PATCH 0/3] INSTALL_MASK refurbishing resubmit

2018-03-16 Thread Michał Górny
W dniu czw, 15.03.2018 o godzinie 22∶10 -0700, użytkownik Zac Medico napisał: > On 03/15/2018 12:22 PM, Michał Górny wrote: > > Hi, > > > > Here are three of four INSTALL_MASK updates I've sent long time ago > > which were not really reviewed. The fourth patch ad

[gentoo-portage-dev] [PATCH] portage.dbapi.vartree: Remove one more unfounded virtual case

2018-03-16 Thread Michał Górny
--- pym/portage/dbapi/vartree.py | 7 --- 1 file changed, 7 deletions(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 8b1b77f7d..6406682d6 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -3747,13 +3747,6 @@ class dblink(object)

Re: [gentoo-portage-dev] [PATCH 0/3] INSTALL_MASK refurbishing resubmit

2018-03-16 Thread Michał Górny
W dniu pią, 16.03.2018 o godzinie 08∶11 +, użytkownik Joakim Tjernlund napisał: > On Thu, 2018-03-15 at 20:22 +0100, Michał Górny wrote: > > CAUTION: This email originated from outside of the organization. Do not > > click links or open attachments unless you recognize the

[gentoo-portage-dev] [PATCH] Stop crippling metadata for virtual/*

2018-03-16 Thread Michał Górny
There is no technical requirement that virtual/* packages will reliably contain no executable code. Therefore, stop crippling the metadata stored in vdb for them. --- bin/phase-functions.sh | 24 ++-- pym/portage/package/ebuild/doebuild.py | 11 --- 2 fi

Re: [gentoo-portage-dev] [PATCH 3/3] portage.dbapi.vartree: Support exclusions in INSTALL_MASK

2018-03-16 Thread Michał Górny
W dniu czw, 15.03.2018 o godzinie 21∶44 +, użytkownik Joakim Tjernlund napisał: > On Thu, 2018-03-15 at 17:02 -0400, Alec Warner wrote: > > > > > > On Thu, Mar 15, 2018 at 3:22 PM, Michał Górny wrote: > > > Allow INSTALL_MASK patterns to start with '-

Re: [gentoo-portage-dev] [PATCH 3/3] portage.dbapi.vartree: Support exclusions in INSTALL_MASK

2018-03-15 Thread Michał Górny
W dniu czw, 15.03.2018 o godzinie 17∶02 -0400, użytkownik Alec Warner napisał: > On Thu, Mar 15, 2018 at 3:22 PM, Michał Górny wrote: > > > Allow INSTALL_MASK patterns to start with '-' to indicate that > > a specific match is to be excluded from being masked. In this

[gentoo-portage-dev] [PATCH 0/3] INSTALL_MASK refurbishing resubmit

2018-03-15 Thread Michał Górny
S" I have been using this via user patches since the last submission. Guessing by 'git log', this means almost 2 years now. -- Best regards, Michał Górny Michał Górny (3): portage.package.ebuild.config: Move FEATURES=no* handling there portage.dbapi.vartree: Move INST

[gentoo-portage-dev] [PATCH 1/3] portage.package.ebuild.config: Move FEATURES=no* handling there

2018-03-15 Thread Michał Górny
Move the code responsible for adding additional paths to INSTALL_MASK into portage.package.ebuild.config. --- bin/misc-functions.sh| 13 - pym/portage/package/ebuild/config.py | 10 ++ 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/bin/misc-fun

[gentoo-portage-dev] [PATCH 3/3] portage.dbapi.vartree: Support exclusions in INSTALL_MASK

2018-03-15 Thread Michał Górny
Allow INSTALL_MASK patterns to start with '-' to indicate that a specific match is to be excluded from being masked. In this case, the last matching pattern determines whether the file is actually filtered out or kept. --- pym/portage/dbapi/vartree.py | 10 ++ 1 file changed, 6 insertions(

[gentoo-portage-dev] [PATCH 2/3] portage.dbapi.vartree: Move INSTALL_MASK handling into merging

2018-03-15 Thread Michał Górny
Introduce a new logic for INSTALL_MASK handling in merging code, replacing the old code that removed matching files and directories from imagedir in bash. The new code actually ignores matching files on-the-fly while testing for file collisions and merging files. The files are still written to CONT

[gentoo-portage-dev] [PATCH] prepstrip: Fix double slash in pre-stripped list

2018-03-14 Thread Michał Górny
--- bin/ebuild-helpers/prepstrip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ebuild-helpers/prepstrip b/bin/ebuild-helpers/prepstrip index 9b895c60b..2136e0d4d 100755 --- a/bin/ebuild-helpers/prepstrip +++ b/bin/ebuild-helpers/prepstrip @@ -255,7 +255,7 @@ if ! ${RESTRI

[gentoo-portage-dev] [PATCH 2/2] Remove support for PROVIDE virtuals

2018-03-11 Thread Michał Górny
Remove the support for PROVIDE metadata. The aux entry that used to be assigned to this variable is now reused in the PMS, so we finally need to clean up. --- bin/ebuild.sh | 2 +- bin/phase-functions.sh | 2 +- man/ebuild.5

[gentoo-portage-dev] [PATCH 1/2] _emerge: Remove unused param to show_invalid_depstring_notice()

2018-03-11 Thread Michał Górny
--- pym/_emerge/BlockerDB.py | 4 ++-- pym/_emerge/actions.py | 9 +++-- pym/_emerge/depgraph.py | 8 pym/_emerge/resolver/output.py | 4 ++-- pym/_emerge/show_invalid_depstring_notice.py | 4 ++-- 5 files ch

[gentoo-portage-dev] [PATCH 0/2] Remove most of PROVIDE support

2018-03-11 Thread Michał Górny
EAPI 7 reuses the metadata cache slot that was used for PROVIDE. Finally remove most of Portage support for PROVIDE to make it UNUSED once again. PR: https://github.com/gentoo/portage/pull/266 Michał Górny (2): _emerge: Remove unused param to show_invalid_depstring_notice() Remove support

[gentoo-portage-dev] [PATCH 2/2] Strip trailing slash from D, ED, ROOT, EROOT in EAPI 7

2018-03-11 Thread Michał Górny
Bug: https://bugs.gentoo.org/465772 --- pym/portage/eapi.py | 7 +++ pym/portage/package/ebuild/config.py | 5 + 2 files changed, 12 insertions(+) diff --git a/pym/portage/eapi.py b/pym/portage/eapi.py index 5613fb5d2..d1ca299f5 100644 --- a/pym/portage/eapi.py +++ b/pym/

[gentoo-portage-dev] [PATCH 1/2] Fix uses of D/ED to account for no trailing slash

2018-03-11 Thread Michał Górny
Fix all uses of D/ED to account for trailing slash not being present in EAPI 7. While at it, also remove some duplicate slashes. --- bin/ebuild-helpers/dobin | 6 +++--- bin/ebuild-helpers/dodir | 4 ++-- bin/ebuild-helpers/dodoc | 2 +- bin/ebuild-helpers/doexe

[gentoo-portage-dev] [PATCH eapi6-pt2 v3 2/5] nonfatal: Implement fallback executable for EAPI 7

2018-03-11 Thread Michał Górny
EAPI 7 specifies that nonfatal has to be implemented both as a bash function and a fallback executable, so that it can be used e.g. via find/xargs. Bug: https://bugs.gentoo.org/622894 --- bin/ebuild-helpers/nonfatal | 14 ++ 1 file changed, 14 insertions(+) create mode 100755 bin/ebu

[gentoo-portage-dev] [PATCH eapi6-pt2 v3 1/5] Allow package.*, use.* directories in EAPI 7

2018-03-11 Thread Michał Górny
Bug: https://bugs.gentoo.org/282296 --- pym/portage/eapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/eapi.py b/pym/portage/eapi.py index 075f7a59c..092780ded 100644 --- a/pym/portage/eapi.py +++ b/pym/portage/eapi.py @@ -85,7 +85,7 @@ def eapi_supports_stable

[gentoo-portage-dev] [PATCH eapi6-pt2 v3 4/5] Support ENV_UNSET for EAPI 7

2018-03-11 Thread Michał Górny
Bug: https://bugs.gentoo.org/499288 --- bin/eapi.sh| 4 bin/ebuild.sh | 6 ++ pym/_emerge/actions.py | 4 ++-- pym/portage/const.py | 3 ++- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/bin/eapi.sh b/bin/eapi.sh index 1d5ea802d..569b8a0de 100644 -

[gentoo-portage-dev] [PATCH eapi6-pt2 v3 3/5] Add EAPI 7 version comparison & manipulation functions

2018-03-11 Thread Michał Górny
Bug: https://bugs.gentoo.org/482170 --- bin/eapi.sh | 4 + bin/eapi7-ver-funcs.sh| 191 bin/isolated-functions.sh | 4 + pym/portage/tests/bin/test_eapi7_ver_funcs.py | 240 ++

[gentoo-portage-dev] [PATCH eapi6-pt2 v3 5/5] Do not export PORTDIR & ECLASSDIR in EAPI 7

2018-03-11 Thread Michał Górny
Bug: https://bugs.gentoo.org/373349 Bug: https://bugs.gentoo.org/373351 --- bin/eapi.sh| 4 bin/phase-functions.sh | 6 -- pym/portage/eapi.py| 11 +++ pym/portage/package/ebuild/config.py | 5 + pym/portage/

[gentoo-portage-dev] [PATCH eapi6-pt2 v2 3/6] Add sandbox directory removal functions for EAPI 7

2018-03-08 Thread Michał Górny
Bug: https://bugs.gentoo.org/630422 --- bin/eapi.sh| 4 bin/ebuild.sh | 17 + bin/save-ebuild-env.sh | 1 + 3 files changed, 22 insertions(+) diff --git a/bin/eapi.sh b/bin/eapi.sh index 67563bed8..5d77c8daf 100644 --- a/bin/eapi.sh +++ b/bin/eapi.sh @@

[gentoo-portage-dev] [PATCH eapi6-pt2 v2 4/6] Add EAPI 7 version comparison & manipulation functions

2018-03-08 Thread Michał Górny
Bug: https://bugs.gentoo.org/482170 --- bin/eapi.sh | 4 + bin/eapi7-ver-funcs.sh| 191 bin/isolated-functions.sh | 4 + pym/portage/tests/bin/test_eapi7_ver_funcs.py | 240 ++

[gentoo-portage-dev] [PATCH eapi6-pt2 v2 6/6] Do not export PORTDIR & ECLASSDIR in EAPI 7

2018-03-08 Thread Michał Górny
Bug: https://bugs.gentoo.org/373349 Bug: https://bugs.gentoo.org/373351 --- bin/eapi.sh| 4 bin/phase-functions.sh | 6 -- pym/portage/eapi.py| 11 +++ pym/portage/package/ebuild/doebuild.py | 14 ++ 4 f

[gentoo-portage-dev] [PATCH eapi6-pt2 v2 5/6] Support ENV_UNSET for EAPI 7

2018-03-08 Thread Michał Górny
Bug: https://bugs.gentoo.org/499288 --- bin/eapi.sh| 4 bin/ebuild.sh | 6 ++ pym/_emerge/actions.py | 4 ++-- pym/portage/const.py | 3 ++- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/bin/eapi.sh b/bin/eapi.sh index cd2acad80..3e837f19d 100644 -

[gentoo-portage-dev] [PATCH eapi6-pt2 v2 2/6] nonfatal: Implement fallback executable for EAPI 7

2018-03-08 Thread Michał Górny
EAPI 7 specifies that nonfatal has to be implemented both as a bash function and a fallback executable, so that it can be used e.g. via find/xargs. Bug: https://bugs.gentoo.org/622894 --- bin/eapi.sh | 4 bin/ebuild-helpers/nonfatal | 14 ++ 2 files changed, 18 i

[gentoo-portage-dev] [PATCH eapi6-pt2 v2 1/6] Allow package.*, use.* directories in EAPI 7

2018-03-08 Thread Michał Górny
Bug: https://bugs.gentoo.org/282296 --- pym/portage/eapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/eapi.py b/pym/portage/eapi.py index 075f7a59c..092780ded 100644 --- a/pym/portage/eapi.py +++ b/pym/portage/eapi.py @@ -85,7 +85,7 @@ def eapi_supports_stable

[gentoo-portage-dev] [PATCH] ebuild-helpers: Fix overriding 'insinto' directory

2018-03-08 Thread Michał Górny
Closes: https://bugs.gentoo.org/649946 --- bin/ebuild-helpers/doconfd | 9 +++-- bin/ebuild-helpers/doenvd | 9 +++-- bin/ebuild-helpers/doheader | 6 +- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/bin/ebuild-helpers/doconfd b/bin/ebuild-helpers/doconfd index 38c

Re: [gentoo-portage-dev] [PATCH] doins: don't clobber _E_INSDESTTREE_

2018-03-08 Thread Michał Górny
]; then > # backwards compatibility > _E_INSDESTTREE_=${INSDESTTREE} > fi This breaks using INSDESTTREE completely since _E_INSDESTTREE_ is always set (defaulted). -- Best regards, Michał Górny

[gentoo-portage-dev] [PATCH 6/6] Do not export PORTDIR & ECLASSDIR in EAPI 7

2018-03-06 Thread Michał Górny
Bug: https://bugs.gentoo.org/373349 Bug: https://bugs.gentoo.org/373351 --- bin/eapi.sh| 4 bin/phase-functions.sh | 6 -- pym/portage/eapi.py| 11 +++ pym/portage/package/ebuild/doebuild.py | 14 ++ 4 f

[gentoo-portage-dev] [PATCH 4/6] Add EAPI 7 version comparison & manipulation functions

2018-03-06 Thread Michał Górny
Bug: https://bugs.gentoo.org/482170 --- bin/eapi.sh | 4 + bin/eapi7-ver-funcs.sh| 191 bin/phase-helpers.sh | 4 + pym/portage/tests/bin/test_eapi7_ver_funcs.py | 240 ++

[gentoo-portage-dev] [PATCH 5/6] Support ENV_UNSET for EAPI 7

2018-03-06 Thread Michał Górny
Bug: https://bugs.gentoo.org/499288 --- bin/eapi.sh| 4 bin/ebuild.sh | 5 + pym/_emerge/actions.py | 4 ++-- pym/portage/const.py | 3 ++-

[gentoo-portage-dev] [PATCH 2/6] nonfatal: Implement fallback executable for EAPI 7

2018-03-06 Thread Michał Górny
EAPI 7 specifies that nonfatal has to be implemented both as a bash function and a fallback executable, so that it can be used e.g. via find/xargs. Bug: https://bugs.gentoo.org/622894 --- bin/eapi.sh | 4 bin/ebuild-helpers/nonfatal | 14 ++ 2 files changed, 18 i

[gentoo-portage-dev] [PATCH 0/6] EAPI 7, part II

2018-03-06 Thread Michał Górny
test suite). Directory support was already implemented as part of *-progress EAPI, so I just updated the conditionals. Other stuff I've tested manually. -- Best regards, Michał Górny Michał Górny (6): Allow package.*, use.* directories in EAPI 7 nonfatal: Implement fallback executable for EAPI

[gentoo-portage-dev] [PATCH 3/6] Add sandbox directory removal functions for EAPI 7

2018-03-06 Thread Michał Górny
Bug: https://bugs.gentoo.org/630422 --- bin/eapi.sh| 4 bin/ebuild.sh | 17 + bin/save-ebuild-env.sh | 1 + 3 files changed, 22 insertions(+) diff --git a/bin/eapi.sh b/bin/eapi.sh index 67563bed8..5d77c8daf 100644 --- a/bin/eapi.sh +++ b/bin/eapi.sh @@

[gentoo-portage-dev] [PATCH 1/6] Allow package.*, use.* directories in EAPI 7

2018-03-06 Thread Michał Górny
Bug: https://bugs.gentoo.org/282296 --- pym/portage/eapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/eapi.py b/pym/portage/eapi.py index 075f7a59c..092780ded 100644 --- a/pym/portage/eapi.py +++ b/pym/portage/eapi.py @@ -85,7 +85,7 @@ def eapi_supports_stable

Re: [gentoo-portage-dev] [PATCH 00/10] EAPI 7, part one

2018-03-04 Thread Michał Górny
W dniu sob, 03.03.2018 o godzinie 17∶58 -0800, użytkownik Zac Medico napisał: > On 02/26/2018 07:59 AM, Michał Górny wrote: > > Hi, everyone. > > > > Here's the first part of EAPI 7 support patches. All changes included > > here were tested and should not break

Re: [gentoo-portage-dev] [PATCH] repoman: Warn on = dependencies without * or revision

2018-03-04 Thread Michał Górny
W dniu nie, 04.03.2018 o godzinie 12∶18 +0100, użytkownik Ulrich Mueller napisał: > > > > > > On Sat, 3 Mar 2018, Michał Górny wrote: > > Warn if the '=' package dependency operator is used along with pure > > version with no revision specified. Thi

Re: [gentoo-portage-dev] [PATCH 08/10] dolib.{a,so}: inline the logic from dolib

2018-03-04 Thread Michał Górny
W dniu pon, 26.02.2018 o godzinie 16∶59 +0100, użytkownik Michał Górny napisał: > This cleans up the kinda-ugly logic necessary to preserve dolib.a/so > while removing dolib in EAPI 7, and removes the undesirable symlink > handling in dolib.a. > --- > bin/ebuild-helpers/dolib

[gentoo-portage-dev] [PATCH] repoman: Warn on = dependencies without * or revision

2018-03-03 Thread Michał Górny
Warn if the '=' package dependency operator is used along with pure version with no revision specified. This means to catch a common mistake of developers copying '=' from upstream dependency specification while '~' operator would be more appropriate. This causes unintended depgraph breakage when t

[gentoo-portage-dev] [PATCH v2 2/2] repoman: Enable testing dev profiles by default

2018-03-03 Thread Michał Górny
Enable testing 'dev' profiles by default. Those profiles are in the way of becoming stable, and therefore it is crucial that developers test that their changes do not break them. Instead of requiring developers to explicitly type 'repoman full -d' all the time, just test them by default. The -d/--

[gentoo-portage-dev] [PATCH v2 1/2] repoman: Fix default for -e to 'n' (rather than inconsistent False)

2018-03-03 Thread Michał Górny
--- repoman/pym/repoman/argparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repoman/pym/repoman/argparser.py b/repoman/pym/repoman/argparser.py index f32972288..b7e6071ba 100644 --- a/repoman/pym/repoman/argparser.py +++ b/repoman/pym/repoman/argparser.py @@ -167,7 +16

Re: [gentoo-portage-dev] [PATCH 3/3] repoman: Enable testing dev profiles by default

2018-03-03 Thread Michał Górny
W dniu sob, 03.03.2018 o godzinie 14∶50 +0100, użytkownik Ulrich Mueller napisał: > > > > > > On Sat, 03 Mar 2018, Michał Górny wrote: > > I don't really want to go into this. As far as I'm concerned, I can > > leave defunct '-d' and just che

Re: [gentoo-portage-dev] [PATCH 3/3] repoman: Enable testing dev profiles by default

2018-03-03 Thread Michał Górny
W dniu sob, 03.03.2018 o godzinie 13∶08 +0100, użytkownik Ulrich Mueller napisał: > > > > > > On Sat, 03 Mar 2018, Michał Górny wrote: > > > It seems counter-intuitive for a simple binary option to require an > > > argument. What is wrong with specifying -d to

Re: [gentoo-portage-dev] [PATCH 3/3] repoman: Enable testing dev profiles by default

2018-03-03 Thread Michał Górny
W dniu sob, 03.03.2018 o godzinie 12∶48 +0100, użytkownik Ulrich Mueller napisał: > > > > > > On Sat, 3 Mar 2018, Michał Górny wrote: > > > > parser.add_argument( > > '-d', '--include-dev-profiles', choices

[gentoo-portage-dev] [PATCH 3/3] repoman: Enable testing dev profiles by default

2018-03-03 Thread Michał Górny
Enable testing 'dev' profiles by default. Those profiles are in the way of becoming stable, and therefore it is crucial that developers test that their changes do not break them. Instead of requiring developers to explicitly type 'repoman full -d' all the time, just test them by default. --- repom

[gentoo-portage-dev] [PATCH 2/3] repoman: Unify -d option to match -e

2018-03-03 Thread Michał Górny
Unify the -d option to take y|n argument alike -e. This is necessary to make it possible to control its value after changing the default. Also rename the long option and its uses to match the full name for -e. --- repoman/pym/repoman/actions.py | 12 ++-- repoman/pym/re

[gentoo-portage-dev] [PATCH 1/3] repoman: Fix default for -e to 'n' (rather than inconsistent False)

2018-03-03 Thread Michał Górny
--- repoman/pym/repoman/argparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repoman/pym/repoman/argparser.py b/repoman/pym/repoman/argparser.py index f32972288..b7e6071ba 100644 --- a/repoman/pym/repoman/argparser.py +++ b/repoman/pym/repoman/argparser.py @@ -167,7 +16

Re: [gentoo-portage-dev] [PATCH 02/10] Use bash-4.2 for all future EAPIs, until declared otherwise

2018-02-26 Thread Michał Górny
W dniu pon, 26.02.2018 o godzinie 16∶59 +0100, użytkownik Michał Górny napisał: > --- > bin/eapi.sh | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/bin/eapi.sh b/bin/eapi.sh > index a9c56b8ac..f3ba0da6e 100644 > --- a/bin/eapi.sh > +++ b/bi

Re: [gentoo-portage-dev] [PATCH 1/2] portdbapi: add async_aux_get method (bug 648790)

2018-02-26 Thread Michał Górny
W dniu pon, 26.02.2018 o godzinie 11∶40 -0800, użytkownik Zac Medico napisał: > On 02/26/2018 11:23 AM, Michał Górny wrote: > > W dniu pon, 26.02.2018 o godzinie 10∶09 -0800, użytkownik Zac Medico > > napisał: > > > On 02/26/2018 04:29 AM, Michał Górny wrote: > >

Re: [gentoo-portage-dev] [PATCH 1/2] portdbapi: add async_aux_get method (bug 648790)

2018-02-26 Thread Michał Górny
W dniu pon, 26.02.2018 o godzinie 10∶09 -0800, użytkownik Zac Medico napisał: > On 02/26/2018 04:29 AM, Michał Górny wrote: > > W dniu nie, 25.02.2018 o godzinie 17∶50 -0800, użytkownik Zac Medico > > napisał: > > > Add async_aux_get method that returns a Future and

[gentoo-portage-dev] [PATCH 09/10] domo: force /usr prefix in EAPI 7

2018-02-26 Thread Michał Górny
Bug: https://bugs.gentoo.org/595924 --- bin/eapi.sh | 4 bin/ebuild-helpers/domo | 7 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/eapi.sh b/bin/eapi.sh index b8b493f45..d8c487b69 100644 --- a/bin/eapi.sh +++ b/bin/eapi.sh @@ -186,6 +186,10 @@ ___eapi

[gentoo-portage-dev] [PATCH 10/10] Ban DESTTREE/INSDESTTREE in EAPI 7

2018-02-26 Thread Michał Górny
Ban the direct use of DESTTREE/INSDESTTREE in EAPI 7. Use new _E_* helper variables for into/insinto. Bug: https://bugs.gentoo.org/173630 --- bin/eapi.sh | 4 bin/ebuild-helpers/dobin| 16 bin/ebuild-helpers/doconfd | 4 ++-- bin/ebuild-helpers/doenvd

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