[gentoo-portage-dev] [PATCH 2/2] emerge: call setlocale() to enable system locale.

2014-03-29 Thread Michał Górny
This is necessary so that the size formatting function (and possibly other locale-dependant functions in the future) respect the system locale rather than using the 'C' locale. --- pym/_emerge/main.py | 4 1 file changed, 4 insertions(+) diff --git a/pym/_emerge/main.py

[gentoo-portage-dev] [PATCH 1/2] Use a localized size formatting function and ISO/IEC prefixes.

2014-03-29 Thread Michał Górny
A similar size formatting function was used in two places in emerge code. Instead, create a single function in portage.localization module that formats sizes using the current locale and a common set of rules. I'm not really convinced about 'ceiling' all sizes but I understand the original point

Re: [gentoo-portage-dev] [PATCH 2/2] emerge: call setlocale() to enable system locale.

2014-03-30 Thread Michał Górny
, LC_ALL ? -- Best regards, Michał Górny signature.asc Description: PGP signature

Re: [gentoo-portage-dev] [PATCH 1/2] Use a localized size formatting function and ISO/IEC prefixes.

2014-03-30 Thread Michał Górny
Dnia 2014-03-30, o godz. 00:03:02 Alexander Berntsen berna...@gentoo.org napisał(a): -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Please use a max 50 char commit message headline, without the period. On 29/03/14 19:45, Michał Górny wrote: +import locale +import math Why

[gentoo-portage-dev] [PATCH] Sort repoman check results in output

2014-03-30 Thread Michał Górny
Currently, the check results are output in dict order which is implementation-defined. This makes it hard to compare results coming from two machines (Python versions). Instead, sort all the results lexically. --- pym/repoman/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [gentoo-portage-dev] Proposal of uncooperative-root in SUPPORTED_FEATURES

2014-07-05 Thread Michał Górny
} if ! ___eapi_has_prefix_variables; then local ED=${D} -- Best regards, Michał Górny signature.asc Description: PGP signature

[gentoo-portage-dev] [PATCH] sets: introduce @changed-deps to update packages which need dep changes.

2014-07-24 Thread Michał Górny
The @changed-deps set tries to compare RDEPEND and PDEPEND entries of installed packages with ebuild counterparts, and pulls the ebuild whenever the two are not in sync. This could be used, for example, to clean up the system after disabling --dynamic-deps. --- cnf/sets/portage.conf | 5

[gentoo-portage-dev] [PATCH] QA-warn about systemd units using /etc/conf.d.

2014-07-24 Thread Michał Górny
--- bin/misc-functions.sh | 15 +++ 1 file changed, 15 insertions(+) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 5ccf7c2..f24e78c 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -595,6 +595,21 @@ install_qa_check() { done

[gentoo-portage-dev] [PATCH] QA: use pngfix to find broken PNG files.

2014-07-26 Thread Michał Górny
--- bin/misc-functions.sh | 26 ++ 1 file changed, 26 insertions(+) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index f24e78c..0a8ece0 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -875,6 +875,32 @@ install_qa_check() {

Re: [gentoo-portage-dev] [PATCH] sets: introduce @changed-deps to update packages which need dep changes.

2014-07-30 Thread Michał Górny
Dnia 2014-07-25, o godz. 00:26:05 Michał Górny mgo...@gentoo.org napisał(a): The @changed-deps set tries to compare RDEPEND and PDEPEND entries of installed packages with ebuild counterparts, and pulls the ebuild whenever the two are not in sync. This could be used, for example, to clean up

[gentoo-portage-dev] [PATCH] slot op: do not remove := from vdb on unmatched dependencies.

2014-07-31 Thread Michał Górny
Previously, the slot operator processing code used to remove := operator from vdb dependency entries when the underlying package was not installed. With regards to a dependency alike || ( A:= B:= ), this suggested that the particular slot/subslot of installed package could be replaced by any

[gentoo-portage-dev] [PATCH] repoman: fix atom.blocker checks.

2014-08-04 Thread Michał Górny
The original checks assume that no-blocker is denoted as 'None'. However, currently atom.blocker returns just 'False'. --- bin/repoman | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/repoman b/bin/repoman index 9c5d720..71fc7f0 100755 --- a/bin/repoman +++

[gentoo-portage-dev] [PATCH] repoman: check for ebuilds not using slot operator against multi-slot packages.

2014-08-04 Thread Michał Górny
The idea if that a particular dependency atom matches more than one slot of a package, you are supposed to either use := or :* operator (or a specific :slot dependency), whichever is appropriate. This will help catching mistakes (when packages become slotted) and make cross-slot behavior clear

[gentoo-portage-dev] [PATCH v2] repoman: check for ebuilds not using slot operator against multi-slot packages.

2014-08-04 Thread Michał Górny
The idea if that a particular dependency atom matches more than one slot of a package, you are supposed to either use := or :* operator (or a specific :slot dependency), whichever is appropriate. This will help catching mistakes (when packages become slotted) and make cross-slot behavior clear

[gentoo-portage-dev] [PATCH v2] QA: use pngfix to find broken PNG files.

2014-08-06 Thread Michał Górny
--- bin/misc-functions.sh | 27 +++ 1 file changed, 27 insertions(+) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index f24e78c..5477e9c 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -875,6 +875,33 @@ install_qa_check() {

Re: [gentoo-portage-dev] [PATCH v2] sets: introduce @changed-deps to update packages which need dep changes.

2014-08-07 Thread Michał Górny
Dnia 2014-07-30, o godz. 18:36:49 Michał Górny mgo...@gentoo.org napisał(a): The @changed-deps set tries to compare RDEPEND and PDEPEND entries of installed packages with ebuild counterparts, and pulls the ebuild whenever the two are not in sync. This could be used, for example, to clean up

[gentoo-portage-dev] [PATCH v3] repoman: add check for missing slot values/slot operators.

2014-08-07 Thread Michał Górny
The idea if that a particular dependency atom matches more than one slot of a package, you are supposed to either use := or :* operator (or a specific :slot dependency), whichever is appropriate. This will help catching mistakes (when packages become slotted) and make cross-slot behavior clear

[gentoo-portage-dev] [PATCH] Use __future__ to enable floating-point division of integers in Python 2.

2014-08-11 Thread Michał Górny
In Python 2, the division ('/') operator defaults to integer (truncating) division when given integer argument. In Python 3, it performs floating-point division unconditionally instead. To overcome this difference and get a consistent behavior, integers were converted to floats explicitly in a few

[gentoo-portage-dev] [PATCH v2] Use __future__ to enable floating-point division of integers in Python 2.

2014-08-11 Thread Michał Górny
In Python 2, the division ('/') operator defaults to integer (truncating) division when given integer argument. In Python 3, it performs floating-point division unconditionally instead. To overcome this difference and get a consistent behavior, integers were converted to floats explicitly in a few

Re: [gentoo-portage-dev] [PATCH] Use __future__ to enable floating-point division of integers in Python 2.

2014-08-11 Thread Michał Górny
Dnia 2014-08-06, o godz. 19:26:08 Michał Górny mgo...@gentoo.org napisał(a): In Python 2, the division ('/') operator defaults to integer (truncating) division when given integer argument. In Python 3, it performs floating-point division unconditionally instead. To overcome this difference

Re: [gentoo-portage-dev] [PATCH] QA-warn about systemd units using /etc/conf.d.

2014-08-11 Thread Michał Górny
Dnia 2014-07-25, o godz. 00:25:38 Michał Górny mgo...@gentoo.org napisał(a): --- bin/misc-functions.sh | 15 +++ 1 file changed, 15 insertions(+) This one's in git now. -- Best regards, Michał Górny signature.asc Description: PGP signature

Re: [gentoo-portage-dev] [PATCH] Use __future__ to enable floating-point division of integers in Python 2.

2014-08-11 Thread Michał Górny
Dnia 2014-08-11, o godz. 21:51:34 Michał Górny mgo...@gentoo.org napisał(a): In Python 2, the division ('/') operator defaults to integer (truncating) division when given integer argument. In Python 3, it performs floating-point division unconditionally instead. To overcome this difference

[gentoo-portage-dev] [PATCH] --sync: properly decode getaddrinfo() errors.

2014-08-12 Thread Michał Górny
Fixes UnicodeDecodeError in Python 2 with getaddrinfo() error messages that contain non-ASCII characters, e.g. in pl_PL.UTF-8 locale. --- pym/_emerge/actions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index

[gentoo-portage-dev] [PATCH 1/3] vardb: Do not remove := from vdb on unmatched dependencies

2014-08-13 Thread Michał Górny
Previously, the slot operator processing code used to remove := operator from vdb dependency entries when the underlying package was not installed. With regards to a dependency alike || ( A:= B:= ), this suggested that the particular slot/subslot of installed package could be replaced by any

[gentoo-portage-dev] [PATCHES] @changed-deps + missing slot check reposted for bernalex

2014-08-13 Thread Michał Górny
check for dependencies that refer to packages that have more than one slot yet do not specify a slot explicitly or use a proper slot operator. This is meant to help fixing mistakes like: dev-libs/openssl - dev-libs/openssl:0 [:0.9.8 comes with no headers] -- Best regards, Michał Górny

[gentoo-portage-dev] [PATCH 3/3] repoman: Add check for missing slot values/slot operators

2014-08-13 Thread Michał Górny
The idea if that a particular dependency atom matches more than one slot of a package, you are supposed to either use := or :* operator (or a specific :slot dependency), whichever is appropriate. This will help catching mistakes (when packages become slotted) and make cross-slot behavior clear

[gentoo-portage-dev] [PATCH 2/3] sets: Introduce @changed-deps to update packages which need dep changes

2014-08-13 Thread Michał Górny
The @changed-deps set tries to compare RDEPEND and PDEPEND entries of installed packages with ebuild counterparts, and pulls the ebuild whenever the two are not in sync. This could be used, for example, to clean up the system after disabling --dynamic-deps. --- cnf/sets/portage.conf | 5 +++

[gentoo-portage-dev] [PATCH] Output uniform status message before and after src_test()

2014-08-16 Thread Michał Górny
Before, the status message indicating src_test() run was output only if the default EAPI implementation was used. If an ebuild overrode test phase, the test phase output lacked delimitation. Instead, output uniform status messages before and after running src_test() alike for other phase

[gentoo-portage-dev] [PATCH 2/2] econf: Add EAPI-conditional arguments via array

2014-08-17 Thread Michał Górny
Use a dedicated array variable to add EAPI-conditional arguments to the configure script instead of prepending them to the command parameters. --- bin/phase-helpers.sh | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh index

[gentoo-portage-dev] [PATCH] Fix off-by-one error in supported EAPI list

2014-08-17 Thread Michał Górny
Fix the off-by-one error in construction of supported EAPI list that resulted in EAPI 5 being considered unsupported. --- pym/portage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index fdbc4a8..18b2599 100644 ---

Re: [gentoo-portage-dev] [PATCH] Fix off-by-one error in supported EAPI list

2014-08-17 Thread Michał Górny
replace that with list of officially supported EAPIs but I don't have any strong opinion on this... -- Best regards, Michał Górny signature.asc Description: PGP signature

[gentoo-portage-dev] [PATCH] Make eapi_is_supported() reuse _supported_eapis list

2014-08-17 Thread Michał Górny
Make the eapi_is_supported() function use the generated list of supported EAPIs rather than partial lists and integer comparison. --- pym/portage/__init__.py | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index

[gentoo-portage-dev] [PATCH] Apply 'nonfatal' to helpers only

2014-08-18 Thread Michał Górny
Make 'nonfatal' modifier affect helpers only rather than disabling 'die' completely. This improves the PMS conformance. --- bin/isolated-functions.sh | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index

Re: [gentoo-portage-dev] [PATCH] Apply 'nonfatal' to helpers only

2014-08-18 Thread Michał Górny
Dnia 2014-08-18, o godz. 14:00:08 Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com napisał(a): 2014-08-18 11:02 Michał Górny napisał(a): Make 'nonfatal' modifier affect helpers only rather than disabling 'die' completely. This improves the PMS conformance. It is better to leave

[gentoo-portage-dev] [PATCH] Rewrite default ebuild phase setting code

2014-08-18 Thread Michał Górny
Replace the ebuild phase setting code for EAPI 2 and newer with a simpler approach; first set proper default_* functions, and call them within the phase. Disallow calling default_* for other phase functions than the one being run. --- bin/phase-functions.sh | 117

[gentoo-portage-dev] [PATCH 4/6] Make eapi_is_supported() reuse _supported_eapis list

2014-08-18 Thread Michał Górny
Make the eapi_is_supported() function use the generated list of supported EAPIs rather than partial lists and integer comparison. --- pym/portage/__init__.py | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index

[gentoo-portage-dev] [PATCH 5/6] Apply 'nonfatal' to helpers only

2014-08-18 Thread Michał Górny
Make 'nonfatal' modifier affect helpers only rather than disabling 'die' completely. This improves the PMS conformance. --- bin/isolated-functions.sh | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index

[gentoo-portage-dev] [PATCH 1/6] econf: Replace unnecessary 'case' statements with 'if's

2014-08-18 Thread Michał Górny
Replace the 'case' statements used to match 'configure' output with simpler pattern-matching 'if's. Acked-by: Alexander Berntsen berna...@gentoo.org --- bin/phase-helpers.sh | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/bin/phase-helpers.sh

[gentoo-portage-dev] [PATCHES] Random issues and refactoring before EAPI6 series

2014-08-18 Thread Michał Górny
declaring non-existent __eapi2_src_*() phases. The new code is much cleaner and makes adding new phases in future EAPIs trivial. It also prevents from calling default_* function for another phase as forbidden by PMS. -- Michał Górny

[gentoo-portage-dev] [PATCH 6/6] Rewrite default ebuild phase setting code

2014-08-18 Thread Michał Górny
Replace the ebuild phase setting code for EAPI 2 and newer with a simpler approach; first set proper default_* functions, and call them within the phase. Disallow calling default_* for other phase functions than the one being run. --- bin/phase-functions.sh | 117

[gentoo-portage-dev] [PATCH 2/6] econf: Add EAPI-conditional arguments via array

2014-08-18 Thread Michał Górny
Use a dedicated array variable to add EAPI-conditional arguments to the configure script instead of prepending them to the command parameters. --- bin/phase-helpers.sh | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh index

[gentoo-portage-dev] [PATCH 01/13] Support EAPI=6_pre1 for testing EAPI6 features

2014-08-18 Thread Michał Górny
--- pym/portage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 66bfeb0..0046161 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -491,7 +491,7 @@ def abssymlink(symlink, target=None):

[gentoo-portage-dev] [PATCH 03/13] Add tentative support for EAPI6 get_libdir()

2014-08-18 Thread Michał Górny
Add get_libdir() function to obtain the basename of libdir using the same algorithm that econf uses. --- bin/eapi.sh | 4 bin/phase-helpers.sh | 11 +++ 2 files changed, 15 insertions(+) diff --git a/bin/eapi.sh b/bin/eapi.sh index 5f96c3b..6ace20d 100644 --- a/bin/eapi.sh

[gentoo-portage-dev] [PATCH 02/13] Add tentative support for EAPI6 --docdir and --htmldir

2014-08-18 Thread Michał Górny
Pass --docdir and --htmldir to configure scripts that support it. --- bin/eapi.sh | 4 bin/phase-helpers.sh | 12 +++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/bin/eapi.sh b/bin/eapi.sh index 623b89f..5f96c3b 100644 --- a/bin/eapi.sh +++ b/bin/eapi.sh

[gentoo-portage-dev] [PATCH 09/13] Add tentative EAPI6 .txz unpack support

2014-08-18 Thread Michał Górny
Support unpacking .txz-suffixed archives. --- bin/eapi.sh | 4 bin/phase-helpers.sh | 13 + 2 files changed, 17 insertions(+) diff --git a/bin/eapi.sh b/bin/eapi.sh index fa57999..878f8e7 100644 --- a/bin/eapi.sh +++ b/bin/eapi.sh @@ -118,6 +118,10 @@

[gentoo-portage-dev] [PATCHES] Initial EAPI6 patch set for review

2014-08-18 Thread Michał Górny
review, comment and possibly test. The easy way: portage_LIVE_REPO=https://github.com/mgorny/portage.git portage_LIVE_BRANCH=eapi6 -- Michał Górny

[gentoo-portage-dev] [PATCH 08/13] Enable tentative support for EAPI6 profile-level directories

2014-08-18 Thread Michał Górny
Enable the support for package.* and use.* directories on profile and repository level. --- 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 4f77910..7217d23 100644 --- a/pym/portage/eapi.py +++

[gentoo-portage-dev] [PATCH 10/13] Add tentative EAPI6 absolute path support to unpack()

2014-08-18 Thread Michał Górny
Add support for absolute paths in unpack(). Allow subdirectory-level relative paths not to start with './'. --- bin/eapi.sh | 4 bin/phase-helpers.sh | 25 ++--- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/bin/eapi.sh b/bin/eapi.sh index

[gentoo-portage-dev] [PATCH 06/13] Add tentative support for EAPI6 eapply_user function

2014-08-18 Thread Michał Górny
Add support for the user patch applying function. --- bin/eapi.sh | 4 bin/phase-helpers.sh | 22 ++ 2 files changed, 26 insertions(+) diff --git a/bin/eapi.sh b/bin/eapi.sh index 8bb..6e78750 100644 --- a/bin/eapi.sh +++ b/bin/eapi.sh @@ -76,6 +76,10 @@

[gentoo-portage-dev] [PATCH 11/13] Add tentative EAPI6 nonfatal support to die()

2014-08-18 Thread Michał Górny
Add support for die() to respect 'nonfatal' modifier if '--respect-nonfatal' (or '-n') option is used. This allows eclasses to create custom ebuild helpers that mimic built-in helper behavior. --- bin/eapi.sh | 4 bin/isolated-functions.sh | 7 +++ 2 files changed, 11

[gentoo-portage-dev] [PATCH 13/13] Add tentative EAPI6 phase functions

2014-08-18 Thread Michał Górny
--- bin/phase-functions.sh | 11 +++ bin/phase-helpers.sh | 18 ++ 2 files changed, 29 insertions(+) diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh index b7fb5d7..f2088bd 100644 --- a/bin/phase-functions.sh +++ b/bin/phase-functions.sh @@ -806,6 +806,17 @@

[gentoo-portage-dev] [PATCH 12/13] Add tentative EAPI6 in_iuse() function

2014-08-18 Thread Michał Górny
Add a function to query IUSE_EFFECTIVE for flags. --- bin/eapi.sh| 4 bin/phase-helpers.sh | 16 pym/portage/eapi.py| 3 +++ pym/portage/package/ebuild/doebuild.py | 2 +- 4 files changed, 24 insertions(+),

[gentoo-portage-dev] [PATCHES] setup.py install for Portage

2014-08-21 Thread Michał Górny
/usr/lib/portage/python3.4 $ portageq envvar PORTAGE_PYM_PATH /usr/lib64/python3.4/site-packages Please look through the patches and test at will :). Thanks. -- Michał Górny

[gentoo-portage-dev] [PATCH 4/6] tests: Fix running on installed copy of Portage

2014-08-21 Thread Michał Górny
--- pym/portage/tests/__init__.py| 20 ++ pym/portage/tests/dbapi/test_portdb_cache.py | 5 ++--- pym/portage/tests/emerge/test_emerge_slot_abi.py | 7 +++ pym/portage/tests/emerge/test_simple.py | 26

[gentoo-portage-dev] [PATCH 1/6] self-update: Copy only relevant packages from PORTAGE_PYM_PATH

2014-08-21 Thread Michał Górny
Update the self-update code to copy only packages relevant to Portage, to avoid copying other packages when Portage is installed alongside them. --- pym/portage/const.py | 3 +++ pym/portage/package/ebuild/doebuild.py | 8 ++-- 2 files changed, 9 insertions(+), 2

[gentoo-portage-dev] [PATCH 2/6] portage.const: Make PORTAGE_PYM_PATH point to the real package tree

2014-08-21 Thread Michał Górny
Change PORTAGE_PYM_PATH to use real package tree path rather than one based on PORTAGE_BASE_PATH. --- pym/portage/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/const.py b/pym/portage/const.py index 4b01ff9..f518b47 100644 --- a/pym/portage/const.py +++

[gentoo-portage-dev] [PATCH 6/6] travis: Use setup.py for running tests

2014-08-21 Thread Michał Górny
--- .travis.yml | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 52ca444..563f9ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,4 +7,8 @@ python: - 3.4 - pypy script: -- python -b -Wd pym/portage/tests/runTests.py +-

[gentoo-portage-dev] [PATCH 5/6] Install Python modules using setup.py

2014-08-21 Thread Michał Górny
--git a/setup.py b/setup.py new file mode 100755 index 000..bd6e506 --- /dev/null +++ b/setup.py @@ -0,0 +1,557 @@ +#!/usr/bin/env python +# vim:fileencoding=utf-8 +# (c) 2010 Michał Górny mgo...@gentoo.org +# Released under the terms of the 2-clause BSD license. + +from distutils.core

Re: [gentoo-portage-dev] [PATCHES] setup.py install for Portage

2014-08-21 Thread Michał Górny
Dnia 2014-08-21, o godz. 22:19:38 Michał Górny mgo...@gentoo.org napisał(a): I will follow this thread with updated ebuild. And here's the ebuild. You can also find it in ::mgorny. One minor note: after applying the distutils-r1 patch I submitted to gentoo-dev@ today, the following diff can

Re: [gentoo-portage-dev] [PATCHES] setup.py install for Portage

2014-08-21 Thread Michał Górny
Dnia 2014-08-21, o godz. 22:22:30 Michał Górny mgo...@gentoo.org napisał(a): # symlink compatibility /usr/lib/portage/bin dosym ${EPYTHON} /usr/lib/portage/bin I'm also wondering about removing this. Since the scripts won't work without setting PORTAGE_PYM_PATH correctly, people

Re: [gentoo-portage-dev] [PATCH 5/6] Install Python modules using setup.py

2014-08-22 Thread Michał Górny
Dnia 2014-08-22, o godz. 15:30:15 Brian Dolbec dol...@gentoo.org napisał(a): On Thu, 21 Aug 2014 22:19:43 +0200 Michał Górny mgo...@gentoo.org wrote: --- .gitignore | 1 + Makefile | 215 doc/Makefile | 11 - pym/portage

Re: [gentoo-portage-dev] [PATCH 4/6] tests: Fix running on installed copy of Portage

2014-08-22 Thread Michał Górny
Dnia 2014-08-22, o godz. 15:19:12 Brian Dolbec dol...@gentoo.org napisał(a): On Thu, 21 Aug 2014 22:19:42 +0200 Michał Górny mgo...@gentoo.org wrote: --- pym/portage/tests/__init__.py| 20 ++ pym/portage/tests/dbapi/test_portdb_cache.py | 5

[gentoo-portage-dev] [PATCH v2] Install Portage using setup.py

2014-08-23 Thread Michał Górny
diff --git a/setup.py b/setup.py new file mode 100755 index 000..7ffe7f0 --- /dev/null +++ b/setup.py @@ -0,0 +1,578 @@ +#!/usr/bin/env python +# vim:fileencoding=utf-8 +# (c) 2010 Michał Górny mgo...@gentoo.org +# Released under the terms of the 2-clause BSD license. + +from distutils.core

Re: [gentoo-portage-dev] [PATCHES] @changed-deps + missing slot check reposted for bernalex

2014-08-28 Thread Michał Górny
Dnia 2014-08-13, o godz. 19:20:32 Michał Górny mgo...@gentoo.org napisał(a): 1. fixes Portage not to replace non-installed 'dev-foo/bar:=' deps with plain 'dev-foo/bar'. This affects e.g. || () dependencies where the remaining branches may have referred to non-installed packages. By keeping

[gentoo-portage-dev] [PATCH] QA: Add a set of checks for bash-completion files

2014-08-30 Thread Michał Górny
Add checks for common mistakes when installing bash completion files: legacy directory, incorrect naming, missing aliases, deprecated 'have' function. --- bin/misc-functions.sh | 119 ++ 1 file changed, 119 insertions(+) diff --git

[gentoo-portage-dev] [PATCH] QA: Add a set of checks for bash-completion files

2014-08-31 Thread Michał Górny
Add checks for common mistakes when installing bash completion files: legacy directory, incorrect naming, missing aliases, deprecated 'have' function. Changes in v2: - silenced output (error) when sourcing completion files, - faked _have() to enable all conditional completions in the tested

[gentoo-portage-dev] [PATCH] repoman: Do not check for indirect inherits of deprecated eclasses

2014-09-03 Thread Michał Górny
Complain only about deprecated eclasses that are inherited directly. Checking indirectly inherited eclasses is pointless since the ebuild maintainer can't really do anything about it --- it is up to the maintainer of one of the directly inherited eclasses. --- pym/repoman/checks.py | 16

[gentoo-portage-dev] [PATCH v3] QA: Add a set of checks for bash-completion files

2014-09-03 Thread Michał Górny
Add checks for common mistakes when installing bash completion files: legacy directory, incorrect naming, missing aliases, deprecated 'have' function. Changes in v2: - silenced output (error) when sourcing completion files, - faked _have() to enable all conditional completions in the tested

Re: [gentoo-portage-dev] [PATCH 0 of many] New plug-in sync system

2014-09-04 Thread Michał Górny
]] with no extra brackets. -- Best regards, Michał Górny signature.asc Description: PGP signature

Re: [gentoo-portage-dev] [PATCH 0 of many] New plug-in sync system

2014-09-04 Thread Michał Górny
Dnia 2014-09-03, o godz. 23:48:50 Brian Dolbec dol...@gentoo.org napisał(a): On Thu, 4 Sep 2014 08:38:29 +0200 Michał Górny mgo...@gentoo.org wrote: Dnia 2014-09-03, o godz. 18:22:15 Brian Dolbec dol...@gentoo.org napisał(a): fixed: bracket spacing (spotted by mrueg) diff

[gentoo-portage-dev] [PATCH v3] Install Portage using setup.py

2014-09-05 Thread Michał Górny
Changes in v2: - 'sdist' support Changes in v3: - version substituted properly in docs mans - cleaner handling of install_data --- .gitignore | 1 + MANIFEST.in | 18 ++ Makefile | 215 - doc/Makefile | 11 - doc/fragment/date| 0

Re: [gentoo-portage-dev] repoman commit message for git

2014-09-09 Thread Michał Górny
can handle removals, and does spell- and bug#-checking for you. -- Best regards, Michał Górny signature.asc Description: PGP signature

[gentoo-portage-dev] [PATCH] Split install_qa_check() into install-qa-check.d scripts

2014-09-10 Thread Michał Górny
Convert the horrendous install_qa_check() function into a plug-in system that calls separate QA checking scripts from install-qa-check.d. --- bin/install-qa-check.d/05double-D | 17 + bin/install-qa-check.d/05prefix | 117 +++

[gentoo-portage-dev] [PATCH 1/2] Run install-qa-check.d scripts from repositories

2014-09-11 Thread Michał Górny
--- (following the remaster of install_qa_check()) --- bin/misc-functions.sh | 13 + 1 file changed, 13 insertions(+) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index d701ba6..bd43360 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -182,6 +182,19 @@

Re: [gentoo-portage-dev] [PATCH] Output uniform status message before and after src_test()

2014-09-12 Thread Michał Górny
Dnia 2014-08-17, o godz. 00:22:16 Michał Górny mgo...@gentoo.org napisał(a): Before, the status message indicating src_test() run was output only if the default EAPI implementation was used. If an ebuild overrode test phase, the test phase output lacked delimitation. Instead, output uniform

Re: [gentoo-portage-dev] [PATCHES] Random issues and refactoring before EAPI6 series

2014-09-12 Thread Michał Górny
Dnia 2014-08-18, o godz. 19:51:35 Michał Górny mgo...@gentoo.org napisał(a): dol-sen asked me to send all of them in a serie. Those are minor bugfixes and code refactoring done to prepare for EAPI6 code. 1 2 cleans up econf. In EAPI6 we will likely be adding --docdir and --htmldir

[gentoo-portage-dev] [PATCH 1/2] Update gcc warning checks to work with gcc-4.9

2014-09-12 Thread Michał Górny
Use -W indicators whenever possible, or more flexible regular expressions so that our checks correctly match output with -fdiagnostics-color in gcc 4.9. Also, enable a few extra warnings that are triggered by -W flags we already use and clean up some outdated matches. The check is confirmed to

[gentoo-portage-dev] [PATCH 2/2] Use a single grep call for gcc warning checks

2014-09-12 Thread Michał Górny
Use a single grep call with all gcc warning checks combined rather than calling grep separately for each message being checked. Aside to being faster, this also avoids outputting warnings in separate blocks. --- bin/install-qa-check.d/90gcc-warnings | 62 +++ 1

Re: [gentoo-portage-dev] [PATCH] per package environment: generalize the mechanism to be profile specific

2014-09-18 Thread Michał Górny
, and so allows you override more variables, like FEATURES, - env/ is used as bashrc extension. The other difference is that package.env supports any atom syntax that the particular EAPI supports, while env/ has hardcoded list of possibilities. -- Best regards, Michał Górny signature.asc

[gentoo-portage-dev] [PATCH] Add empty default src_prepare() as required by PMS

2014-09-22 Thread Michał Górny
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=523182 --- bin/phase-functions.sh | 4 bin/phase-helpers.sh | 4 2 files changed, 8 insertions(+) diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh index 9bc3eb5..9117719 100644 --- a/bin/phase-functions.sh +++

[gentoo-portage-dev] [PATCH] Add missing bind for pkg_nofetch

2014-09-24 Thread Michał Górny
Spotted-by: Zac Medico zmed...@gentoo.org --- bin/phase-functions.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh index 9117719..d292ad3 100644 --- a/bin/phase-functions.sh +++ b/bin/phase-functions.sh @@ -807,6 +807,8 @@

Re: [gentoo-portage-dev] [PATCH] per package environment: generalize the mechanism to be profile specific

2014-09-26 Thread Michał Górny
it 'package.bashrc' (since it pretty much points to bashrcs, doesn't it?) and using a new subdirectory like 'bashrc/' instead of re-using 'env/' to avoid confusion. -- Best regards, Michał Górny signature.asc Description: PGP signature

Re: [gentoo-portage-dev] [PATCH] bin/ebuild-helpers/portageq: fix bug #524964

2014-10-11 Thread Michał Górny
}} \ + exec ${PORTAGE_PYTHON:-/usr/bin/python} \ + ${path}/${scriptname} $@ +done + +unset IFS +echo ${scriptname}: command not found 12 +exit 127 -- Best regards, Michał Górny signature.asc Description: PGP signature

Re: [gentoo-portage-dev] [PATCH 1/3] bin/misc-functions.sh: Introduce eqalog and eqawarnlog functions.

2014-10-25 Thread Michał Górny
that I think eqalog should escape any \n characters that might be embedded in the arguments. Why? That sounds like some unsafe fancy feature only one person would use. Embedding newlines in bash is trivial, why make them implicit with a lot of added complexity? -- Best regards, Michał Górny

Re: [gentoo-portage-dev] [PATCH 1/3] bin/misc-functions.sh: Introduce eqalog and eqawarnlog functions.

2014-10-25 Thread Michał Górny
some Gentoo-specific QA checks out of portage code. -- Best regards, Michał Górny signature.asc Description: PGP signature

Re: [gentoo-portage-dev] [PATCH 1/3] bin/misc-functions.sh: Introduce eqalog and eqawarnlog functions.

2014-10-25 Thread Michał Górny
Dnia 2014-10-25, o godz. 13:28:54 Zac Medico zmed...@gentoo.org napisał(a): On 10/25/2014 01:25 PM, Michał Górny wrote: Dnia 2014-10-25, o godz. 12:42:14 Zac Medico zmed...@gentoo.org napisał(a): On 10/25/2014 09:15 AM, Michael Palimaka wrote: +eqalog() { + local tag=$1 x + shift

[gentoo-portage-dev] [PATCH 3/3] Remove __eqalog __eqawarnlog

2014-11-02 Thread Michał Górny
Replaced by eqatag. --- bin/isolated-functions.sh | 23 --- bin/save-ebuild-env.sh| 2 +- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index f03503b..42bf05d 100644 --- a/bin/isolated-functions.sh +++

[gentoo-portage-dev] [PATCH 2/3] Update the QA checks to new eqatag API

2014-11-02 Thread Michał Górny
--- bin/install-qa-check.d/05double-D | 8 bin/install-qa-check.d/90world-writable | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/bin/install-qa-check.d/05double-D b/bin/install-qa-check.d/05double-D index 7d958f1..4b7737c 100644 ---

[gentoo-portage-dev] [PATCH 1/3] Introduce eqatag to output proper machine-readable QA logs

2014-11-02 Thread Michał Górny
The eqatag command syntax conforms to pre-GLEP describing install-qa-check.d. The qa.log file format strictly conforms to YAML for easy machine parsing. --- bin/isolated-functions.sh | 68 +++ bin/misc-functions.sh | 4 +++ bin/save-ebuild-env.sh

[gentoo-portage-dev] [PATCH] Do not try to source stray directories in bashrc paths

2014-11-29 Thread Michał Górny
Check whether a particular bashrc path is not a directory before trying to source it. Avoids unnecessary 'is a directory' errors. --- bin/ebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 658884a..46c3a03 100755 --- a/bin/ebuild.sh

Re: [gentoo-portage-dev] [PATCH] Support all install-qa-check.d locations and overrides

2014-11-29 Thread Michał Górny
Dnia 2014-11-23, o godz. 10:23:27 Zac Medico zmed...@gentoo.org napisał(a): On 11/23/2014 01:09 AM, Michał Górny wrote: + # Collect file names of QA checks. We need them early to support + # overrides properly. + for d in ${paths[@]}; do + for f in ${d}/*; do

[gentoo-portage-dev] [PATCH] Support all install-qa-check.d locations and overrides

2014-11-29 Thread Michał Górny
Update the install-qa-check.d handling code to conform to GLEP 65. Collect files from all defined locations, order them lexically by name and run each uniquely named script once. Make scripts in higher priority locations override lower priority locations properly. --- bin/misc-functions.sh | 65

[gentoo-portage-dev] [PATCH] Do not try to source stray directories in bashrc paths

2014-11-29 Thread Michał Górny
Check whether a particular bashrc path is not a directory before trying to source it. Avoids unnecessary 'is a directory' errors. --- bin/ebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 658884a..0de51f7 100755 --- a/bin/ebuild.sh

[gentoo-portage-dev] [PATCH] Restore sbindir install support

2014-11-29 Thread Michał Górny
Restore the ability to install sbin-tools into sbindir since it works fine with pure distutils. The issue is python-exec/eclass-specific and therefore all the relevant workarounds belong in the ebuild. --- pym/portage/tests/__init__.py | 4 +--- setup.py | 23

[gentoo-portage-dev] [PATCH] Respect nonfatal in unpack(), econf() and einstall()

2014-11-30 Thread Michał Górny
--- bin/isolated-functions.sh | 11 -- bin/phase-helpers.sh | 87 ++- 2 files changed, 73 insertions(+), 25 deletions(-) diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 6f6d669..f320084 100644 ---

[gentoo-portage-dev] [PATCH v2] Respect nonfatal in unpack(), econf() and einstall()

2014-11-30 Thread Michał Górny
--- bin/isolated-functions.sh | 11 -- bin/phase-helpers.sh | 87 ++- 2 files changed, 73 insertions(+), 25 deletions(-) diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 6f6d669..251d7ee 100644 ---

Re: [gentoo-portage-dev] [PATCH v2] Respect nonfatal in unpack(), econf() and einstall()

2014-11-30 Thread Michał Górny
Dnia 2014-11-30, o godz. 11:26:16 Zac Medico zmed...@gentoo.org napisał(a): On 11/30/2014 09:36 AM, Michał Górny wrote: @@ -628,7 +665,11 @@ einstall() { sysconfdir=${ED}etc \ ${LOCAL_EXTRA_EINSTALL} \ ${MAKEOPTS} -j1

[gentoo-portage-dev] [PATCH] Split @selected into @selected-packages and @selected-sets

2014-11-30 Thread Michał Górny
Split the big @selected set into separate @selected-packages for plain packages and @selected-sets for subsets. The @selected set is still provided as compatibility wrapper for both, though the new sets are preferred for more flexibility. --- bin/regenworld| 4 +-

Re: [gentoo-portage-dev] [PATCH] Split @selected into @selected-packages and @selected-sets

2014-11-30 Thread Michał Górny
Dnia 2014-11-30, o godz. 17:52:29 Zac Medico zmed...@gentoo.org napisał(a): On 11/30/2014 03:04 PM, Michał Górny wrote: Split the big @selected set into separate @selected-packages for plain packages and @selected-sets for subsets. The @selected set is still provided as compatibility

[gentoo-portage-dev] [PATCH 02/18] Apply 'nonfatal' to helpers only

2014-12-01 Thread Michał Górny
Make 'nonfatal' modifier affect helpers only rather than disabling 'die' completely. This improves the PMS conformance. --- bin/isolated-functions.sh | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index

  1   2   3   4   5   6   7   8   9   >