[gentoo-dev] [PATCH 2/2] eclass/tests: Initial test cases for eapi8-dosym.eclass.

2020-11-19 Thread Ulrich Müller
Signed-off-by: Ulrich Müller --- eclass/tests/eapi8-dosym.sh | 78 + 1 file changed, 78 insertions(+) create mode 100755 eclass/tests/eapi8-dosym.sh diff --git a/eclass/tests/eapi8-dosym.sh b/eclass/tests/eapi8-dosym.sh new file mode 100755 index

[gentoo-dev] [PATCH 1/2] eapi8-dosym.eclass: New eclass.

2020-11-19 Thread Ulrich Müller
expansion only looks at the specified apparent paths, without touching any actual files in ED or EROOT. Signed-off-by: Ulrich Müller --- eclass/eapi8-dosym.eclass | 108 ++ 1 file changed, 108 insertions(+) create mode 100644 eclass/eapi8-dosym.eclass

[gentoo-dev] [PATCH] user.eclass: Deprecate general use for future EAPIs.

2020-10-25 Thread Ulrich Müller
No functional difference for existing EAPIs. Reviewed-by: David Seifert Reviewed-by: Michał Górny Reviewed-by: Andreas K. Hüttel Signed-off-by: Ulrich Müller --- eclass/user.eclass | 13 + 1 file changed, 13 insertions(+) diff --git a/eclass/user.eclass b/eclass/user.eclass

[gentoo-dev] [PATCH 7/8] eutils.eclass: Deprecate emktemp().

2020-09-10 Thread Ulrich Müller
Signed-off-by: Ulrich Müller --- eclass/eutils.eclass | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index cd59d3f9ccc4..0a99d00ee01a 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -31,9 +31,11 @@ esac

[gentoo-dev] [PATCH 8/8] eutils.eclass: Deprecate use_if_iuse().

2020-09-10 Thread Ulrich Müller
The function is not called from any ebuilds in the gentoo repository. Inline it as "in_iuse foo && use foo" in other eclasses, or define it as a local function when it is called multiple times. Signed-off-by: Ulrich Müller --- eclass/chromium-2.eclass | 4 +-- eclass/euti

[gentoo-dev] [PATCH 4/8] wrapper.eclass: Do not use emktemp.

2020-09-10 Thread Ulrich Müller
Signed-off-by: Ulrich Müller --- eclass/wrapper.eclass | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eclass/wrapper.eclass b/eclass/wrapper.eclass index 8cde94979d1a..399c7cc269d4 100644 --- a/eclass/wrapper.eclass +++ b/eclass/wrapper.eclass @@ -9,8 +9,6 @@ if [[ -z

[gentoo-dev] [PATCH 6/8] l10n.eclass: strip-linguas() moved from eutils to here.

2020-09-10 Thread Ulrich Müller
Signed-off-by: Ulrich Müller --- eclass/eutils.eclass | 53 ++-- eclass/l10n.eclass | 47 +++ 2 files changed, 49 insertions(+), 51 deletions(-) diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index

[gentoo-dev] [PATCH 5/8] l10n.eclass: Add conditional to prevent multiple inclusion.

2020-09-10 Thread Ulrich Müller
Signed-off-by: Ulrich Müller --- eclass/l10n.eclass | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eclass/l10n.eclass b/eclass/l10n.eclass index 0b2d287afa7f..73d54ec22334 100644 --- a/eclass/l10n.eclass +++ b/eclass/l10n.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2018

[gentoo-dev] [PATCH 1/8] eutils.eclass: Specify supported EAPIs.

2020-09-10 Thread Ulrich Müller
Proactively deprecate in future EAPIs, as requested by soap. Signed-off-by: Ulrich Müller --- eclass/eutils.eclass | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index c2fc05c9dbed..f74074fb4f16 100644 --- a/eclass

[gentoo-dev] [PATCH 3/8] wrapper.eclass: New eclass, split off from eutils.

2020-09-10 Thread Ulrich Müller
Signed-off-by: Ulrich Müller --- eclass/eutils.eclass | 51 ++-- eclass/wrapper.eclass | 61 +++ 2 files changed, 63 insertions(+), 49 deletions(-) create mode 100644 eclass/wrapper.eclass diff --git a/eclass

[gentoo-dev] [PATCH 2/8] edos2unix.eclass: New eclass, split off from eutils.

2020-09-10 Thread Ulrich Müller
Signed-off-by: Ulrich Müller --- eclass/edos2unix.eclass | 21 + eclass/eutils.eclass| 18 +++--- 2 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 eclass/edos2unix.eclass diff --git a/eclass/edos2unix.eclass b/eclass/edos2unix.eclass new

[gentoo-dev] [PATCH 0/8] Split off remaining functions from eutils.eclass

2020-09-10 Thread Ulrich Müller
emktemp: deprecate (create file in ${T} instead) use_in_iuse: deprecate (only used in eclasses, where it can be inlined) Please review the following series of patches. (Note that this is to be applied on top of soap's optfeature patch: https://github.com/gentoo/gentoo/pull/17452) Ulrich Müller

[gentoo-dev] [PATCH] elisp-common.eclass: Support installation of dynamic modules.

2020-07-25 Thread Ulrich Müller
Signed-off-by: Ulrich Müller --- eclass/elisp-common.eclass | 42 -- 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass index 6fa2bbe..0bf6c01 100644 --- a/eclass/elisp-common.eclass +++ b

[gentoo-dev] [PATCH] linux-info.eclass: Pass M=${T} to the Linux Makefile unconditionally.

2020-06-24 Thread Ulrich Müller
Bug: https://bugs.gentoo.org/469210 Signed-off-by: Ulrich Müller --- eclass/linux-info.eclass | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass index 405ef5571e1c..11a890889e4f 100644 --- a/eclass/linux-info.eclass +++ b/ec

[gentoo-dev] [PATCH] font.eclass: Fix condition for FONT_S in src_install().

2020-04-17 Thread Ulrich Müller
Whitespace can be other characters than literal space. Fixes: 58cea2803d7aa7b1a98f72aa55b6221618dc5e5f Signed-off-by: Ulrich Müller --- eclass/font.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/font.eclass b/eclass/font.eclass index bf24701f12fc..e9e448a8155b

[gentoo-dev] [PATCH] desktop.eclass: Sanitize filename of desktop entry.

2020-03-25 Thread Ulrich Müller
Before that commit, anything after a space in Exec would have been removed. Restore that behaviour, and in addition use only the executable's basename. While at it, get rid of the sed call and handle everything in bash. Signed-off-by: Ulrich Müller --- eclass/desktop.eclass | 6 +++--- 1 file c

[gentoo-dev] [PATCH] elisp.eclass: Test if the DOCS variable has a value.

2020-02-21 Thread Ulrich Müller
The current test for the return status of declare -p will be true if DOCS is declared but otherwise has a void value. Test for presence of an = sign in the output instead. Signed-off-by: Ulrich Müller --- eclass/elisp.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[gentoo-dev] [PATCH 3/3] savedconfig.eclass: Remove @ROFF from eclass documentation.

2020-02-20 Thread Ulrich Müller
Remove all @ROFF tokens, because they make conversion to any format other than a man page very difficult. Replace the numbered list by explicitly numbered paragraphs. Signed-off-by: Ulrich Müller --- eclass/savedconfig.eclass | 20 ++-- 1 file changed, 10 insertions(+), 10

[gentoo-dev] [PATCH 1/3] eapi7-ver.eclass: Replace @ROFF in eclass documentation.

2020-02-20 Thread Ulrich Müller
Replace all @ROFF tokens by @SUBSECTION, because the former makes conversion to any format other than a man page very difficult. Signed-off-by: Ulrich Müller --- eclass/eapi7-ver.eclass | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/eclass/eapi7-ver.eclass b/eclass

[gentoo-dev] [PATCH 2/3] elisp-common.eclass: Replace @ROFF in eclass documentation.

2020-02-20 Thread Ulrich Müller
Replace all @ROFF tokens by @SUBSECTION, because the former makes conversion to any format other than a man page very difficult. Signed-off-by: Ulrich Müller --- eclass/elisp-common.eclass | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/eclass/elisp

[gentoo-dev] [PATCH 0/3] *** SUBJECT HERE ***

2020-02-20 Thread Ulrich Müller
with groff is required. The following series of commits will replace or remove all @ROFF tags from eclass documentation. The conversion script was already updated: https://github.com/mgorny/eclass-to-manpage/commit/2be88fd421c7549f659439a287bbb849418a3a3e Ulrich Müller (3): eapi7-ver.eclass

[gentoo-portage-dev] [PATCH] einstalldocs: Fix test for DOCS being unset.

2020-02-20 Thread Ulrich Müller
-by: Ulrich Müller --- bin/phase-helpers.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh index 3deb28c68..9495465f9 100644 --- a/bin/phase-helpers.sh +++ b/bin/phase-helpers.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2019

[gentoo-dev] [PATCH v2] font.eclass: Don't assign FONT_S in global scope, allow an array.

2020-02-14 Thread Ulrich Müller
for some time, and a QA warning will be shown. Die if pushd or popd fails. Closes: https://bugs.gentoo.org/613108 Closes: https://bugs.gentoo.org/709578 Signed-off-by: Ulrich Müller --- v2: Quote pattern substitution, fix die message eclass/font.eclass | 36

[gentoo-dev] [PATCH] font.eclass: Don't assign FONT_S in global scope, allow an array.

2020-02-14 Thread Ulrich Müller
for some time, and a QA warning will be shown. Die if pushd or popd fails. Closes: https://bugs.gentoo.org/613108 Closes: https://bugs.gentoo.org/709578 Signed-off-by: Ulrich Müller --- This will be committed in 60 days from now. The backwards compatibility code for whitespace-separated FONT_S

[gentoo-dev] [PATCH] mount-boot.eclass: Make awk expression work with mawk.

2020-02-12 Thread Ulrich Müller
gensub() is a GNUism and doesn't exist in all awk variants. Use a loop instead. Tested with gawk, nawk, mawk, and busybox awk. Closes: https://bugs.gentoo.org/709322 Signed-off-by: Ulrich Müller --- eclass/mount-boot.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[gentoo-dev] [PATCH v2 3/3] elisp.eclass: Depend on app-editors/emacs directly.

2019-12-20 Thread Ulrich Müller
This replaces the indirect dependency on virtual/emacs. Update pkg_setup() to call elisp-check-emacs-version instead of the now deprecated elisp-need-emacs. Signed-off-by: Ulrich Müller --- eclass/elisp.eclass | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git

[gentoo-dev] [PATCH v2 1/3] elisp-common.eclass: New function elisp-check-emacs-version.

2019-12-20 Thread Ulrich Müller
() and elisp-make-autoload-file(), so ebuilds inheriting only elisp-common.eclass (but not elisp.eclass) won't have to add a pkg_setup phase function. Drop support for EAPIs 0 to 3. Signed-off-by: Ulrich Müller --- v2: Don't change elisp-need-emacs() in place, but add a new function for the new

[gentoo-dev] [PATCH v2 2/3] elisp-common.eclass: Update documentation.

2019-12-20 Thread Ulrich Müller
After the package split between emacs and emacs-vcs is gone, packages can depend on app-editors/emacs directly. Deprecate function elisp-need-emacs; ebuilds should assign variable NEED_EMACS instead. Signed-off-by: Ulrich Müller --- eclass/elisp-common.eclass | 45

[gentoo-dev] [PATCH 3/3] elisp.eclass: Depend on app-editors/emacs directly.

2019-12-18 Thread Ulrich Müller
This replaces the indirect dependency on virtual/emacs. Signed-off-by: Ulrich Müller --- eclass/elisp.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass index df160ea01e2..8f907bbb5d6 100644 --- a/eclass/elisp.eclass +++ b

[gentoo-dev] [PATCH 2/3] elisp-common.eclass: Update documentation.

2019-12-18 Thread Ulrich Müller
After the package split between emacs and emacs-vcs is gone, packages can depend on app-editors/emacs directly. Signed-off-by: Ulrich Müller --- eclass/elisp-common.eclass | 22 +- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/eclass/elisp-common.eclass b

[gentoo-dev] [PATCH 1/3] elisp-common.eclass: Allow full versions in elisp-need-emacs().

2019-12-18 Thread Ulrich Müller
To this end, replace the simple numeric comparison of the first component by a call to ver_test. Signed-off-by: Ulrich Müller --- eclass/elisp-common.eclass | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/eclass/elisp-common.eclass b/eclass/elisp

[gentoo-dev] [PATCH 0/3] elisp{,-common}.eclass update for emacs-vcs consolidation

2019-12-18 Thread Ulrich Müller
- Package mask app-editors/emacs-vcs (but not the virtual) for removal. Ulrich Müller (3): elisp-common.eclass: Allow full versions in elisp-need-emacs(). elisp-common.eclass: Update documentation. elisp.eclass: Depend on app-editors/emacs directly. eclass/elisp-common.e

[gentoo-dev] [PATCH] elisp-common.eclass: Drop support for EAPIs 0 to 3.

2019-12-14 Thread Ulrich Müller
This goes along with a small code simplification, since doins will die by itself in EAPI 4 or later. Signed-off-by: Ulrich Müller --- eclass/elisp-common.eclass | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/eclass/elisp-common.eclass b/eclass/elisp

[gentoo-dev] [PATCH] git-r3.eclass: Remove SGR control sequences from messages.

2019-12-14 Thread Ulrich Müller
These prevent NOCOLOR in make.conf or emerge --color=n from working correctly, and may also be problematic for accessibility. Signed-off-by: Ulrich Müller --- eclass/git-r3.eclass | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/eclass/git-r3.eclass b

[gentoo-dev] [PATCH v4] mount-boot.eclass: Check if /boot is sane, but don't try to mount it.

2019-12-07 Thread Ulrich Müller
rep or sed. :-) Closes: https://bugs.gentoo.org/532264 See-also: https://bugs.gentoo.org/274130#c5 Signed-off-by: Ulrich Müller --- v3: Exit awk commands on first match. v4: Added die statements after awk commands Fixed typo in mount-boot_is_disabled function documentation Reverte

[gentoo-dev] [PATCH v3] mount-boot.eclass: Check if /boot is sane, but don't try to mount it.

2019-12-06 Thread Ulrich Müller
d simplify. (For example, awk is a grown-up program which doesn't need any help from egrep or sed. :-) Closes: https://bugs.gentoo.org/532264 See-also: https://bugs.gentoo.org/274130#c5 Signed-off-by: Ulrich Müller --- v3: Exit awk commands on first match. eclass/mount-boot.ec

[gentoo-dev] [PATCH v2] mount-boot.eclass: Check if /boot is sane, but don't try to mount it.

2019-12-06 Thread Ulrich Müller
rep or sed. :-) Closes: https://bugs.gentoo.org/532264 See-also: https://bugs.gentoo.org/274130#c5 Signed-off-by: Ulrich Müller --- eclass/mount-boot.eclass | 144 +-- 1 file changed, 47 insertions(+), 97 deletions(-) diff --git a/eclass/mount-boot.eclass b/ec

[gentoo-dev] [PATCH] mount-boot.eclass: Check if /boot is sane, but don't try to mount it.

2019-12-06 Thread Ulrich Müller
rep or sed. :-) Closes: https://bugs.gentoo.org/532264 Signed-off-by: Ulrich Müller --- eclass/mount-boot.eclass | 137 --- 1 file changed, 43 insertions(+), 94 deletions(-) diff --git a/eclass/mount-boot.eclass b/eclass/mount-boot.eclass index 938df6732f4..1d7eb8bf

[gentoo-portage-dev] [PATCH] eapply: Drop -s option for patch.

2019-11-25 Thread Ulrich Müller
-127001r1 Traditionally, the -s option wasn't used by epatch either. Bug: https://bugs.gentoo.org/674562 Signed-off-by: Ulrich Müller --- bin/phase-helpers.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh index b53d39650..60f8d3243

[gentoo-dev] [PATCH] eutils.eclass: Drop epause() and ebeep().

2019-11-23 Thread Ulrich Müller
No ebuilds calling these functions in EAPIs 0 to 2 are left in the tree. Signed-off-by: Ulrich Müller --- eclass/eutils.eclass | 49 +--- 1 file changed, 1 insertion(+), 48 deletions(-) diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index

[gentoo-dev] [PATCH] estack.eclass: Drop isdigit function.

2019-11-23 Thread Ulrich Müller
It isn't (and never was) used by anything else in the tree. Inline its only usage in evar_pop() and drop the function. --- eclass/estack.eclass | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/eclass/estack.eclass b/eclass/estack.eclass index

[gentoo-dev] [PATCH] estack.eclass: Properly restore shopt options.

2019-11-23 Thread Ulrich Müller
he problem by always saving and restoring both "set -o" and "shopt" option sets. Also fix "estack_push -s" which should not execute shopt when called without further parameters. Closes: https://bugs.gentoo.org/662586 Signed-off-by: Ulrich Müller --- eclass/estack

[gentoo-dev] [GLEP repo] [PATCH] Replace outdated mail archive URLs.

2019-11-09 Thread Ulrich Müller
are missing from Gentoo archives. Use marc.info instead. Signed-off-by: Ulrich Müller --- glep-0011.rst | 26 +- glep-0029.rst | 7 +++--- glep-0030.rst | 6 +++-- glep-0038.rst | 4 ++-- glep-0039.rst | 5 +++-- glep-0040.rst | 30 +++-- glep-0042.rst | 6

[gentoo-portage-dev] [PATCH] doins: Fix directory install options when called as dodoc.

2019-10-02 Thread Ulrich Müller
list for review. Signed-off-by: Ulrich Müller --- bin/ebuild-helpers/doins | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/ebuild-helpers/doins b/bin/ebuild-helpers/doins index fb5fc7c7c..24fe48121 100755 --- a/bin/ebuild-helpers/doins +++ b/bin/ebuild-helpers/doins

[gentoo-dev] [PATCH] elisp.eclass: Use EAPI defaults where possible.

2019-09-05 Thread Ulrich Müller
. Signed-off-by: Ulrich Müller --- eclass/elisp.eclass | 32 ++-- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass index c885345a7a8..d1b6cf71731 100644 --- a/eclass/elisp.eclass +++ b/eclass/elisp.eclass

[gentoo-dev] [PATCH] bzr.eclass: Respect the EVCS_UMASK variable.

2019-09-02 Thread Ulrich Müller
Bug: https://bugs.gentoo.org/497798 Signed-off-by: Ulrich Müller --- eclass/bzr.eclass | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/eclass/bzr.eclass b/eclass/bzr.eclass index 10bd6bc7e5a..598a0f87fe6 100644 --- a/eclass/bzr.eclass +++ b/eclass

[gentoo-dev] [PATCH] check-reqs.eclass: Drop unused code for EAPIs without MERGE_TYPE.

2019-08-20 Thread Ulrich Müller
Signed-off-by: Ulrich Müller --- eclass/check-reqs.eclass | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass index 95f73a3012eb..242abde4e279 100644 --- a/eclass/check-reqs.eclass +++ b/eclass/check-reqs.eclass

[gentoo-dev] [PATCH] skel.ebuild: Use relative paths for directories.

2019-08-08 Thread Ulrich Müller
/usr/portage is no longer the default repository location. Signed-off-by: Ulrich Müller --- This looks larger than it is, because most of it is caused by rewrapping of paragraphs. The only text changes are: "/usr/portage/eclass/" -> "the eclass/ directory"

[gentoo-portage-dev] [PATCH 1/2] man/ebuild.5: Fix .nf macro usage.

2019-07-27 Thread Ulrich Müller
Several .nf (no-fill mode) blocks were not terminated by .fi, causing broken formatting of the rest of the manpage. Fixes: cdcf4a28409daa7c56a0c2c94054f48bd5e43c6d Signed-off-by: Ulrich Müller --- man/ebuild.5 | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/man/ebuild

[gentoo-portage-dev] [PATCH 2/2] man/ebuild.5: Document PROPERTIES="live".

2019-07-27 Thread Ulrich Müller
Signed-off-by: Ulrich Müller --- man/ebuild.5 | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/man/ebuild.5 b/man/ebuild.5 index 31bd8f771..b002f3889 100644 --- a/man/ebuild.5 +++ b/man/ebuild.5 @@ -1,4 +1,4 @@ -.TH "EBUILD" "5" "Apr 2019&qu

[gentoo-dev] [PATCH] user.eclass: Allocate next free UID or GID from 999 downwards.

2019-07-27 Thread Ulrich Müller
implicitly. Signed-off-by: Ulrich Müller --- eclass/user.eclass | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eclass/user.eclass b/eclass/user.eclass index fdf98caa6099..6563a03a1505 100644 --- a/eclass/user.eclass +++ b/eclass/user.eclass @@ -157,10 +157,10 @

[gentoo-dev] [PATCH] cdrom.eclass: Append to PROPERTIES variable.

2019-07-26 Thread Ulrich Müller
It is not accumulated across eclasses. Signed-off-by: Ulrich Müller --- eclass/cdrom.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/cdrom.eclass b/eclass/cdrom.eclass index 7b0eb9c6c3b5..77b9d6ceb209 100644 --- a/eclass/cdrom.eclass +++ b/eclass

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

2019-07-26 Thread Ulrich Müller
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 --- a/cnf/sets/portage.conf +++ b/cnf/sets/portage.conf

[gentoo-dev] [PATCH] eclass: Assign PROPERTIES="live" in live eclasses.

2019-07-26 Thread Ulrich Müller
Bug: https://bugs.gentoo.org/233589 Signed-off-by: Ulrich Müller --- As previously discussed [1], add a "live" token to PROPERTIES in all live eclasses. This can also be used to tag live ebuilds that don't inherit any live eclass. Corresponding updates for PMS [2] and Portage [3] are

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

2019-07-26 Thread Ulrich Müller
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 | 12 +--- repoman/lib/repoman/modules/scan

[gentoo-dev] [PATCH 3/3] cvs.eclass: Add proper EAPI conditional, drop EAPIs 0 to 3.

2019-07-18 Thread Ulrich Müller
--- eclass/cvs.eclass | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass index 8c9b41f586f3..ff23bd9df496 100644 --- a/eclass/cvs.eclass +++ b/eclass/cvs.eclass @@ -4,6 +4,7 @@ # @ECLASS: cvs.eclass # @MAINTAINER: #

[gentoo-dev] [PATCH 1/3] cvs.eclass: Remove support for running under sudo.

2019-07-18 Thread Ulrich Müller
This neither works, nor is it used in the tree. Signed-off-by: Ulrich Müller --- eclass/cvs.eclass | 53 +++ 1 file changed, 8 insertions(+), 45 deletions(-) diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass index e2121f4724f2..128c065ebe78 100644

[gentoo-dev] [PATCH 2/3] cvs.eclass: Remove support for PATCHES.

2019-07-18 Thread Ulrich Müller
Not used in the tree, and broken in EAPI 7. Signed-off-by: Ulrich Müller --- eclass/cvs.eclass | 15 --- 1 file changed, 15 deletions(-) diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass index 128c065ebe78..8c9b41f586f3 100644 --- a/eclass/cvs.eclass +++ b/eclass/cvs.eclass

[gentoo-dev] [PATCH 0/3] cvs.eclass update

2019-07-18 Thread Ulrich Müller
This removes some broken and unused code, and adds proper EAPI support. Ulrich Müller (3): cvs.eclass: Remove support for running under sudo. cvs.eclass: Remove support for PATCHES. cvs.eclass: Add proper EAPI conditional, drop EAPIs 0 to 3. eclass/cvs.eclass | 77

[gentoo-dev] [PATCH] subversion.eclass: Support EAPI 7, drop EAPIs 0 to 3.

2019-07-15 Thread Ulrich Müller
Closes: https://bugs.gentoo.org/678344 Signed-off-by: Ulrich Müller --- eclass/subversion.eclass | 44 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/eclass/subversion.eclass b/eclass/subversion.eclass index d9f9daf7eb6e..ab707027a502

[gentoo-dev] [PATCH] elisp.eclass: Drop support for EAPIs 0 to 3.

2019-07-15 Thread Ulrich Müller
Signed-off-by: Ulrich Müller --- eclass/elisp.eclass | 36 +--- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass index 55635398d54..c885345a7a8 100644 --- a/eclass/elisp.eclass +++ b/eclass/elisp.eclass

[gentoo-dev] [PATCH] wxwidgets.eclass: Support EAPI 7.

2019-07-12 Thread Ulrich Müller
Don't inherit multilib, which apparently was needed only for get_libdir (and should have been removed for EAPI 6 already). Drop deprecated need-wxwidgets function. Signed-off-by: Ulrich Müller --- eclass/wxwidgets.eclass | 29 - 1 file changed, 16 insertions(+), 13

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

2019-03-09 Thread Ulrich Müller
phases (otherwise it would die in one of these phases). Signed-off-by: Ulrich Müller --- bin/phase-functions.sh | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh index d8ebf3d3e..4c6420bfa 100644 --- a/bin/phase-functions.sh

[gentoo-dev] [PATCH] kernel-2.eclass: Fix LICENSE for Linux 4.14 and later.

2019-02-12 Thread Ulrich Müller
Bug: https://bugs.gentoo.org/677756 Reviewed-by: Mike Pagano Reviewed-by: Alice Ferrazzi Signed-off-by: Ulrich Müller --- eclass/kernel-2.eclass | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index 48146b7284b9..edbb4a858

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

2018-11-05 Thread Ulrich Müller
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 some time in the future. Signed-off-by: Ulrich

[gentoo-dev] [PATCH] eutils.eclass: Disable eqawarn in EAPI 7.

2018-08-10 Thread Ulrich Müller
The eqawarn command is part of EAPI 7, therefore the eclass should not override it. Also we cannot rely on its being a shell function. --- eclass/eutils.eclass | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/eclass/eutils.eclass

[gentoo-dev] [PATCH] glep-0001: Small update to reflect current practice.

2018-07-10 Thread Ulrich Müller
Drop the requirement that GLEPs must be discussed in forums (in addition to mailing lists), since no GLEPs have been sent there since at least 2011. --- See also the discussion about the previous update of GLEP 1 in 2011:

[gentoo-dev] [PATCH] latex-package.eclass: Support EAPI 7.

2018-06-14 Thread Ulrich Müller
--- eclass/latex-package.eclass | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass index f42b6fdd25d8..3402c94cc081 100644 --- a/eclass/latex-package.eclass +++ b/eclass/latex-package.eclass @@ -1,4 +1,4 @@ -#

[gentoo-dev] [PATCH 2/2] readme.gentoo-r1.eclass: Support EAPI 7.

2018-06-03 Thread Ulrich Müller
No changes appear to be necessary, other than updating the case statement. --- eclass/readme.gentoo-r1.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/readme.gentoo-r1.eclass b/eclass/readme.gentoo-r1.eclass index a9f91cb10e38..78cbead639d3 100644 ---

[gentoo-dev] [PATCH 1/2] readme.gentoo-r1.eclass: Fix @BLURB.

2018-06-03 Thread Ulrich Müller
Closes: https://bugs.gentoo.org/637860 --- eclass/readme.gentoo-r1.eclass | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/eclass/readme.gentoo-r1.eclass b/eclass/readme.gentoo-r1.eclass index 6f80cbaccdcc..a9f91cb10e38 100644 --- a/eclass/readme.gentoo-r1.eclass +++

[gentoo-dev] [PATCH] elisp.eclass: Depend on virtual/emacs on the build system.

2018-06-01 Thread Ulrich Müller
For byte-compilation, Emacs is required to run on the native build system. Therefore BDEPEND on virtual/emacs in EAPI 7. Reorganise EAPI conditionals to be more compact. --- eclass/elisp.eclass | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git

[gentoo-dev] [PATCH] eclass: Remove remaining uses of epause and ebeep.

2018-05-26 Thread Ulrich Müller
These functions are long deprecated and only defined in EAPIs 0 to 2. --- eclass/gnatbuild-r1.eclass | 1 - eclass/gnatbuild.eclass| 1 - eclass/kernel-2.eclass | 2 -- eclass/linux-info.eclass | 3 +-- eclass/webapp.eclass | 5 + 5 files changed, 2 insertions(+), 10

[gentoo-dev] [PATCH v3] eapi7-ver.eclass: Support EAPIs 0 to 6.

2018-05-09 Thread Ulrich Müller
--- v3, including suggestions from Duncan and Hello71. eclass/eapi7-ver.eclass | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/eclass/eapi7-ver.eclass b/eclass/eapi7-ver.eclass index 6117124a90a5..e34025e201c7 100644 --- a/eclass/eapi7-ver.eclass +++

[gentoo-dev] [PATCH v2] eapi7-ver.eclass: Support EAPIs 0 to 6.

2018-05-08 Thread Ulrich Müller
--- Sorry, I had sent the wrong patch. eclass/eapi7-ver.eclass | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/eclass/eapi7-ver.eclass b/eclass/eapi7-ver.eclass index 6117124a90a5..43b6a4122506 100644 --- a/eclass/eapi7-ver.eclass +++ b/eclass/eapi7-ver.eclass

[gentoo-dev] [PATCH] eapi7-ver.eclass: Support EAPIs 0 to 6.

2018-05-08 Thread Ulrich Müller
--- eclass/eapi7-ver.eclass | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/eclass/eapi7-ver.eclass b/eclass/eapi7-ver.eclass index 6117124a90a5..3a200cbe9ef2 100644 --- a/eclass/eapi7-ver.eclass +++ b/eclass/eapi7-ver.eclass @@ -1,4 +1,4 @@ -# Copyright

[gentoo-dev] [PATCH] bzr.eclass: Support EAPI 7.

2018-05-03 Thread Ulrich Müller
--- eclass/bzr.eclass | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/eclass/bzr.eclass b/eclass/bzr.eclass index 710b64db28c0..7cfe73a70268 100644 --- a/eclass/bzr.eclass +++ b/eclass/bzr.eclass @@ -20,19 +20,20 @@ EBZR="bzr.eclass" +if [[

[gentoo-dev] [PATCH] bzr.eclass: Drop bzr_bootstrap and bzr_src_prepare.

2018-02-06 Thread Ulrich Müller
No ebuild in the Gentoo repository uses the bzr_bootstrap functionality. Therefore drop the function along with bzr_src_prepare (which would not have worked in EAPI 6 anyway, due to missing call to eapply_user). After this change, inheriting eutils is not needed any more. Drop support for EAPIs 0

[gentoo-dev] [PATCH] bzr.eclass: Add --overwrite-tags option to pull command.

2018-02-06 Thread Ulrich Müller
Fixes: https://bugs.gentoo.org/446422 --- eclass/bzr.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/bzr.eclass b/eclass/bzr.eclass index ef1b47936867..792cc3bec36f 100644 --- a/eclass/bzr.eclass +++ b/eclass/bzr.eclass @@ -27,7 +27,7 @@ case "${EAPI:-0}" in

[gentoo-dev] [PATCH] eutils.eclass: Update function documentation.

2018-01-20 Thread Ulrich Müller
Mention that einstalldocs() and in_iuse() are provided by the package manager in EAPI 6. in_iuse "must not" (rather than "should not") be used in global scope. --- eclass/eutils.eclass | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/eclass/eutils.eclass

[gentoo-dev] [PATCH] eutils.eclass: Remove built_with_use().

2018-01-19 Thread Ulrich Müller
The function was deprecated in 2010 and is no longer used in the tree. Use EAPI 2 use deps and has_version as replacement. Closes: https://bugs.gentoo.org/261562 --- To be committed after removal of x-modular.eclass which is scheduled for 2018-02-01. eclass/eutils.eclass | 92

[gentoo-dev] [PATCH] l10n.eclass: Disabled locales are the complement of enabled ones.

2018-01-12 Thread Ulrich Müller
Disabled locales returned by l10n_get_locales() should be the complement of enabled locales: disabled = PLOCALES \ enabled. So far, in the case of the enabled set falling back to PLOCALE_BACKUP, the backup locale would end up being both enabled and disabled. Closes:

[gentoo-dev] [PATCH] check-reqs.eclass: Make obsolete usage fatal.

2018-01-12 Thread Ulrich Müller
QA warnings for calling the obsolete check_reqs function and for missing size units were in place for more than two years, and usage in the Gentoo repository has been fixed. Error out on all obsolete usage. This will also allow dropping the eutils inherit which was only needed for eqawarn(). ---

[gentoo-dev] [PATCH 2/2] eutils.eclass: Inline remaining uses of _eutils_eprefix_init.

2018-01-03 Thread Ulrich Müller
Inline the remaining two uses of the function. This shortens the code, and also allows to declare the variables as local. --- eclass/eutils.eclass | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index

[gentoo-dev] [PATCH 1/2] preserve-libs.eclass: Split off preserve_old_lib from eutils.

2018-01-03 Thread Ulrich Müller
Split off functions preserve_old_lib and preserve_old_lib_notify from eutils.eclass into a dedicated preserve-libs.eclass. These functions are rarely used and are independent of the rest of eutils, therefore moving them into their own eclass will help clarifying eclass inheritance in ebuilds. For

[gentoo-dev] [PATCH] versionator.eclass: inherit estack rather than eutils.

2018-01-02 Thread Ulrich Müller
The only functions needed from the eutils.eclass are eshopts_push and eshopts_pop, which have been split off to estack.eclass. See also commit 401ef96525d8c21c33bdd6e88e475e09f3a42717 (in historical.git) which added the eutils inherit. --- eclass/versionator.eclass | 4 ++-- 1 file changed, 2

[gentoo-dev] [PATCH v2] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.

2018-01-01 Thread Ulrich Müller
Change the example used for inherit. Also comment the inherit line, since not every ebuild will use it. Empty SLOT doesn't disable slots, but is outright illegal in all EAPIs. Similar for KEYWORDS="*", which isn't "deprecated" but invalid. Replace x86 by amd64 as an example, where appropriate.

[gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.

2017-12-31 Thread Ulrich Müller
epatch() is provided by epatch.eclass now. Also comment the inherit line, since not every ebuild will use it. Empty SLOT doesn't disable slots, but is outright illegal in all EAPIs. Similar for KEYWORDS="*", which isn't "deprecated" but invalid. --- skel.ebuild | 9 - 1 file changed, 4

[gentoo-dev] [PATCH] l10n.eclass: Update for unexpanded LINGUAS.

2017-12-29 Thread Ulrich Müller
--- This is meant to be merged after removal of LINGUAS from USE_EXPAND. Any packages inheriting l10n.eclass but not using any of its functions (i.e. relying only on the global scope snippet that adds linguas_* USE flags) will be updated at the same time. eclass/l10n.eclass | 40

[gentoo-dev] [PATCH] elisp.eclass: Inherit epatch rather than eutils.

2017-12-25 Thread Ulrich Müller
The only function needed from eutils was epatch() which has been split off into its own eclass. --- eclass/elisp.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass index 078a7994d00c..67459730aa61 100644 ---

[gentoo-dev] [PATCH 2/2] glep-0042: Update and clarify naming rules.

2017-11-27 Thread Ulrich Müller
ostinst/pkg_preinst ewarn/einfo logging", https://bugs.gentoo.org/show_bug.cgi?id=11359 @@ -500,7 +504,6 @@ References .. [#glep-74] GLEP 74: "Full-tree verification using Manifest files", Michał Górny, Robin Hugh Johnson, Ulrich Müller, https://www.gentoo.org/glep/gle

[gentoo-dev] [PATCH 0/2] Two updates for GLEP 42

2017-11-27 Thread Ulrich Müller
e same day. However, there seems to be a tendency to repeat half of the news item's content in its filename. ;-) Ulrich Müller (2): glep-0042: Drop requirement for detached signatures. glep-0042: Update and clarify naming rules. glep-0042.rst | 29 - 1 file changed, 16

[gentoo-dev] [PATCH 1/2] glep-0042: Drop requirement for detached signatures.

2017-11-27 Thread Ulrich Müller
://www.gentoo.org/glep/glep-0034.html .. [#glep-45] GLEP 45: "GLEP date format", Henrik Brix Andersen, https://www.gentoo.org/glep/glep-0045.html +.. [#glep-74] GLEP 74: "Full-tree verification using Manifest files", + Michał Górny, Robin Hugh Johnson, Ulrich Müller, + ht

[gentoo-dev] [PATCH 3/3] desktop.eclass: Split off desktop, menu, and icon functions from eutils.

2017-11-24 Thread Ulrich Müller
Split off functions make_desktop_entry, make_session_desktop, domenu, newmenu, doicon, and newicon from eutils.eclass into a dedicated desktop.eclass. These functions are independent of the rest of eutils, therefore moving them into their own eclass will help clarifying eclass inheritance in

[gentoo-dev] [PATCH 2/3] eutils.eclass: Remove validate_desktop_entries function.

2017-11-24 Thread Ulrich Müller
This function is no longer used in the tree. It was deprecated more than 8 months ago in commit 650a1ebe8f63d3750908142e2117b24a8efc9403. --- eclass/eutils.eclass | 30 -- 1 file changed, 30 deletions(-) diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index

[gentoo-dev] [PATCH 1/3] eutils.eclass: Remove check_license function.

2017-11-24 Thread Ulrich Müller
This is an inoperative stub since 2011, and no longer used in the tree. --- eclass/eutils.eclass | 4 1 file changed, 4 deletions(-) diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index f35fa5980d7a..7fd4b847a649 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@

[gentoo-dev] [PATCH 0/3] Further cleanup of eutils.eclass

2017-11-24 Thread Ulrich Müller
. Other than that, there are no code changes. For existing EAPIs, the split-off eclass will still be inherited by eutils. The plan would be to drop that inherit in EAPI 7. Please review. Ulrich Müller (3): eutils.eclass: Remove check_license function. eutils.eclass: Remove

[gentoo-portage-dev] [PATCH] man/ebuild.5: Do not document internal functions.

2017-10-24 Thread Ulrich Müller
Functions containing "hook" or "prep" in their name may not be used or relied upon by ebuilds. Therefore they should not be documented in ebuild(5) which describes the funtions available for ebuilds. PMS reference: https://projects.gentoo.org/pms/6/pms.html#x1-14700011.3.3.16 --- man/ebuild.5 |

[gentoo-portage-dev] [PATCH] man: Update URI of GLEP references.

2017-10-14 Thread Ulrich Müller
GLEPs have been moved to https://www.gentoo.org/glep/. --- man/ebuild.5| 2 +- man/emerge.1| 2 +- man/make.conf.5 | 4 ++-- man/portage.5 | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/man/ebuild.5 b/man/ebuild.5 index e4c866cd2..43d12765d 100644 ---

[gentoo-portage-dev] [PATCH] dosym: Make implicit basename a fatal error.

2017-04-17 Thread Ulrich Müller
The respective QA warning in the dosym helper is in place since 2011. All known violations in the gentoo repository have been fixed. Gentoo-Bug: 379899 --- bin/ebuild-helpers/dosym | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/ebuild-helpers/dosym

[gentoo-portage-dev] [PATCH] phase-helpers.sh: Loop over A rather than SRC_URI in __eapi0_pkg_nofetch.

2017-03-23 Thread Ulrich Müller
Looping over SRC_URI also outputs non-filename elements (e.g, use conditionals) which is avoided when looping over A. Gentoo-Bug: 613132 --- bin/phase-helpers.sh | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh index

  1   2   >