[gentoo-dev] [PATCH] fcaps.eclass: use BDEPEND for EAPI 7

2020-03-13 Thread David Michael
The eclass installs libcap to execute the setcap program, so it must be installed in /. Optional libcap linking is handled by the USE=caps flag, which is unrelated to this eclass, so the DEPEND declaration is not needed on EAPI 7. Closes: https://bugs.gentoo.org/700018 Signed-off-by: David

[gentoo-dev] [PATCH] autotools.eclass: reorder sysroot M4 include dir option

2020-03-13 Thread David Michael
The old autoconf-2.13 version requires options to be specified before the file name argument, so packages with WANT_AUTOCONF="2.1" would fail to build in a sysroot with the -l option at the end. Closes: https://bugs.gentoo.org/710792 Signed-off-by: David Michael --- eclass/autotools.

[gentoo-dev] [PATCH v2] fcaps.eclass: use BDEPEND for EAPI 7

2020-03-13 Thread David Michael
The eclass installs libcap to execute the setcap program, so it must be installed in /. Optional libcap linking is handled by the USE=caps flag, which is unrelated to this eclass, so the DEPEND declaration is not needed on EAPI 7. Closes: https://bugs.gentoo.org/700018 Signed-off-by: David

[gentoo-dev] [PATCH] fixheadtails.eclass: move sed to BDEPEND for EAPI 7

2020-03-20 Thread David Michael
It executes sed at build time, so it should be installed in /. Signed-off-by: David Michael --- Hi, Here is another simple dependency move to put a required program in the correct ROOT so it can be executed during the build. It's basically the same as 814ab1294edf3565fc02fe63d15d6fa7ca8

[gentoo-dev] [PATCH v2] fixheadtails.eclass: drop the sed dependency

2020-03-20 Thread David Michael
Signed-off-by: David Michael --- Changes since v1: * Drop the dependency altogether eclass/fixheadtails.eclass | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eclass/fixheadtails.eclass b/eclass/fixheadtails.eclass index c19d33924aa..475b182843a 100644 --- a/eclass

[gentoo-dev] Re: [PATCH v2] fixheadtails.eclass: drop the sed dependency

2020-03-25 Thread David Michael
On Fri, Mar 20, 2020 at 5:12 PM David Michael wrote: > Signed-off-by: David Michael > --- > > Changes since v1: > * Drop the dependency altogether > > eclass/fixheadtails.eclass | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/eclas

[gentoo-dev] [PATCH] qt5-build.eclass: support sysroot builds

2020-03-27 Thread David Michael
Signed-off-by: David Michael --- Hi, I'd like to be able to install qt5 packages in a sysroot for staging, and this is an initial patch for it. The pkg-config variables might not be required, but it seemed appropriate to pass the sysroot-configured versions through the build. There are

Re: [gentoo-dev] [PATCH] qt5-build.eclass: support sysroot builds

2020-03-27 Thread David Michael
On Fri, Mar 27, 2020 at 4:49 PM James Le Cuirot wrote: > On Fri, 27 Mar 2020 13:10:34 -0400 > David Michael wrote: > > > I'd like to be able to install qt5 packages in a sysroot for staging, > > and this is an initial patch for it. The pkg-config variables might n

Re: [gentoo-dev] [PATCH] fcaps.eclass: Remove sys-libs/libcap-ng support

2020-04-15 Thread David Michael
On Tue, Apr 14, 2020 at 10:32 PM Matt Turner wrote: > At the same time, fix the dependency on sys-libs/libcap by moving it to > RDEPEND, as dependencies in DEPEND/BDEPEND are not guaranteed to exist > during pkg_postinst() when this eclass is intended to run. The BDEPEND was added for https://bu

[gentoo-dev] [PATCH] rpm.eclass: use BDEPEND for EAPI 7

2020-04-18 Thread David Michael
The build system's rpm2tar command is executed during unpack, so it must be install in /. Signed-off-by: David Michael --- This patch fixes failures like this: >>> Unpacking source... >>> Unpacking urw-fonts-2.4-9.fc13.src.rpm to /var/tmp/portage/media-fon

[gentoo-dev] Re: [PATCH] rpm.eclass: use BDEPEND for EAPI 7

2020-04-20 Thread David Michael
On Sat, Apr 18, 2020 at 11:15 AM David Michael wrote: > The build system's rpm2tar command is executed during unpack, so it > must be install in /. > > Signed-off-by: David Michael > --- > > This patch fixes failures like this: > >>> Unpacking source.

Re: [gentoo-dev] user.eclass ignores ROOT/SYSROOT

2020-05-05 Thread David Michael
On Tue, May 5, 2020 at 4:22 PM Peter Stuge wrote: > Hi, > > I'm trying something out over here and I'm surprised to find that > acct-group/* do not work with ROOT+SYSROOT != "/". > > Should I file yet another bug about this? > > I suppose the limitation is in user.eclass, but what about the 11 bug

[gentoo-dev] [PATCH] rust-toolchain.eclass: support bootstrapping armv5te

2020-07-11 Thread David Michael
This adds support for using system-bootstrap to build Rust for the armv5tel profile. It does not add binary bootstrap compilers. Signed-off-by: David Michael --- Hi, I have an ARM9 chip that I'd like to be able to target for Rust packages. Things are getting masked in the armv5tel pr

[gentoo-dev] [PATCH 1/2] acct-group.eclass: declare the missing dependency on shadow

2020-09-08 Thread David Michael
Signed-off-by: David Michael --- eclass/acct-group.eclass | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eclass/acct-group.eclass b/eclass/acct-group.eclass index 19a378e0b06..56e6391ef42 100644 --- a/eclass/acct-group.eclass +++ b/eclass/acct-group.eclass @@ -34,8

[gentoo-dev] [PATCH 2/2] acct-user.eclass: declare the missing dependency on shadow

2020-09-08 Thread David Michael
Signed-off-by: David Michael --- eclass/acct-user.eclass | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eclass/acct-user.eclass b/eclass/acct-user.eclass index 56a4e83e8bf..96a076e106e 100644 --- a/eclass/acct-user.eclass +++ b/eclass/acct-user.eclass @@ -42,8 +42,12

Re: [gentoo-dev] [PATCH 1/2] acct-group.eclass: declare the missing dependency on shadow

2020-09-08 Thread David Michael
On Tue, Sep 8, 2020 at 12:04 PM Michał Górny wrote: > On Tue, 2020-09-08 at 11:57 -0400, David Michael wrote: > > Signed-off-by: David Michael > > --- > > eclass/acct-group.eclass | 6 +- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > >

[gentoo-dev] Re: [PATCH 1/2] acct-group.eclass: declare the missing dependency on shadow

2020-09-08 Thread David Michael
Hi, This fix might not be so straightforward. A configuration I tested hit a dependency loop with shadow -> pambase -> systemd -> a bunch of groups -> shadow. It is possible to bootstrap around by emerging shadow with no USE flags first, but I don't know how acceptable it is to introduce new dep

Re: [gentoo-dev] Re: [PATCH 1/2] acct-group.eclass: declare the missing dependency on shadow

2020-09-09 Thread David Michael
On Wed, Sep 9, 2020 at 5:37 AM Alexis Ballier wrote: > On Tue, 8 Sep 2020 15:54:14 -0400 > David Michael wrote: > > > Hi, > > > > This fix might not be so straightforward. A configuration I tested > > hit a dependency loop with shadow -> pambase -> sys

[gentoo-dev] [PATCH 2/2] selinux-policy-2.eclass: drop EAPI 5

2020-11-02 Thread David Michael
Signed-off-by: David Michael --- Grepping through the ebuilds using this eclass shows that they're all on EAPI 6. A bunch of workarounds could be dropped along with EAPI 5, but it isn't necessary to fix anything, so feel free to ignore this patch. eclass/selinux-policy-2.e

[gentoo-dev] [PATCH 1/2] selinux-policy-2.eclass: add EAPI 7

2020-11-02 Thread David Michael
Closes: https://bugs.gentoo.org/748483 Signed-off-by: David Michael --- Hi, Please start allowing EAPI 7 SELinux policy ebuilds. Thanks. David eclass/selinux-policy-2.eclass | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/eclass/selinux-policy-2

Re: [gentoo-dev] [PATCH 1/2] selinux-policy-2.eclass: add EAPI 7

2020-11-03 Thread David Michael
On Tue, Nov 3, 2020 at 2:46 AM Ulrich Mueller wrote: > >>>>> On Mon, 02 Nov 2020, David Michael wrote: > > > +if [[ ${EAPI:-0} == [56] ]]; then > > Substituting 0 is not necessary here. I wrote it that way to match all other EAPI conditions in the file. I'

[gentoo-dev] [PATCH v2 2/2] selinux-policy-2.eclass: drop EAPI 5

2020-11-03 Thread David Michael
Signed-off-by: David Michael --- Changes since v1: - Dropped unnecessary EAPI default value - Fixed eapply array awareness eclass/selinux-policy-2.eclass | 47 +- 1 file changed, 12 insertions(+), 35 deletions(-) diff --git a/eclass/selinux-policy-2.eclass

[gentoo-dev] [PATCH] gnome2-utils.eclass: skip executing cross-compiled tools

2020-12-02 Thread David Michael
d to exist while cross-compiling (e.g. gtk+ can't BDEPEND on itself, so the cross-compiled gtk+ can be installed before the native gtk+, which fails from gtk-query-immodules not existing). Closes: https://bugs.gentoo.org/757483 Signed-off-by: David Michael --- Hi, Here is an eclass patch to

Re: [gentoo-dev] [PATCH] vala.eclass: make has_version aware of ROOT for EAPI 7

2021-01-08 Thread David Michael
On Thu, Jan 7, 2021 at 3:42 AM Mart Raudsepp wrote: > Ühel kenal päeval, K, 06.01.2021 kell 19:27, kirjutas Matt Turner: > > From: David Michael > > The vala dependencies are declared in BDEPEND since EAPI 7 so that > > the valac command is natively executable. W

[gentoo-dev] [PATCH] xorg-3.eclass: Call einstalldocs when not using XORG_MULTILIB

2021-01-09 Thread David Michael
DOCS only got installed from the multilib-minimal_src_install call, so they were missing from non-multilib packages. This corrects a behavior difference from xorg-2.eclass where autotools-utils.eclass installed DOCS for the non-multilib case. Signed-off-by: David Michael --- eclass/xorg-3

[gentoo-dev] [PATCH] kernel-2.eclass: EAPI 7 support

2021-02-05 Thread David Michael
dependency since it was added in the original kernel.eclass implementation ~20 years ago to enforce a minimum version to avoid old assembly bugs. All affected versions are long gone, and it isn't required to install sources anyway, so skip building the unused binutils dependency. Signed-off-by:

[gentoo-dev] Re: [PATCH] kernel-2.eclass: EAPI 7 support

2021-02-05 Thread David Michael
On Fri, Feb 5, 2021 at 12:58 PM David Michael wrote: > This converts installation paths prefixed with EROOT or ED to have > a leading slash, switches DEPEND to BDEPEND for EAPI 7 so tools are > installed in BROOT and natively executable, and makes eapply_user > the default src_prep

Re: [gentoo-dev] [PATCH] toolchain-funcs.eclass: include riscv bitness in tc-arch

2021-05-03 Thread David Michael
On Mon, May 3, 2021 at 4:41 AM Sergei Trofimovich wrote: > On Sun, 02 May 2021 18:22:43 -0400 fedora@gmail.com wrote: > > This makes tc-arch identify RISC-V systems as either "riscv64" or > > "riscv32". It will still return "riscv" for the kernel arch or if > > bitness is not given in the hos

[gentoo-dev] [PATCH] fcaps.eclass: support EAPI 8

2021-06-16 Thread David Michael
in ROOTs. - EAPI > 7: IDEPEND Install native setcap at install-time; it works everywhere. Since all remaining users are EAPI 6 and above, declare eclass compatibility with EAPIs 6, 7, and 8. Signed-off-by: David Michael --- Hi, This is from https://github.com/gentoo/gentoo/pull

Re: [gentoo-dev] [PATCH] fcaps.eclass: support EAPI 8

2021-06-17 Thread David Michael
On Thu, Jun 17, 2021 at 7:02 AM Ulrich Mueller wrote: > >>>>> On Thu, 17 Jun 2021, Michał Górny wrote: > > On Thu, 2021-06-17 at 12:10 +0200, Ulrich Mueller wrote: > >> > > > > > On Thu, 17 Jun 2021, David Michael wrote: > >> > @@ -33

[gentoo-dev] [PATCH 1/4] user-info.eclass: EAPI 8 support

2021-06-22 Thread David Michael
Signed-off-by: David Michael --- eclass/user-info.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/user-info.eclass b/eclass/user-info.eclass index d349fc17476..8b8538bf843 100644 --- a/eclass/user-info.eclass +++ b/eclass/user-info.eclass @@ -5,11 +5,11

[gentoo-dev] [PATCH 2/4] user.eclass: EAPI 8 support

2021-06-22 Thread David Michael
Signed-off-by: David Michael --- eclass/user.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/user.eclass b/eclass/user.eclass index e1f87a383ad..a1fb2a9bbaf 100644 --- a/eclass/user.eclass +++ b/eclass/user.eclass @@ -5,7 +5,7 @@ # @MAINTAINER: # base-sys

[gentoo-dev] [PATCH 3/4] acct-group.eclass: EAPI 8 support

2021-06-22 Thread David Michael
resolve names when building packages in nonempty $SYSROOT at src_install time. - IDEPEND so the build system can resolve names when installing binary packages in nonempty $ROOT at pkg_preinst time. - RDEPEND so the target system can use the accounts. Signed-off-by: David Michael

[gentoo-dev] [PATCH 4/4] acct-user.eclass: EAPI 8 support

2021-06-22 Thread David Michael
resolve names when building packages in nonempty $SYSROOT at src_install time. - IDEPEND so the build system can resolve names when installing binary packages in nonempty $ROOT at pkg_preinst time. - RDEPEND so the target system can use the accounts. Signed-off-by: David Michael

Re: [gentoo-dev] [PATCH 3/4] acct-group.eclass: EAPI 8 support

2021-06-22 Thread David Michael
On Tue, Jun 22, 2021 at 1:15 PM Ulrich Mueller wrote: > >>>>> On Tue, 22 Jun 2021, David Michael wrote: > > -# Then you add appropriate dependency to your package. The dependency > > -# type(s) should be: > > -# - DEPEND (+ RDEPEND) if the group is already ne

[gentoo-dev] [PATCH 1/2] ninja-utils.eclass: EAPI 8 support

2021-06-24 Thread David Michael
Also drop support for EAPIs < 5 to match multiprocessing.eclass. Signed-off-by: David Michael --- Hi, Here are a couple patches to support EAPI 8 with meson packages. I also posted this to https://github.com/gentoo/gentoo/pull/21409 for review. Thanks. David eclass/ninja-utils.eclass |

[gentoo-dev] [PATCH 2/2] meson.eclass: EAPI 8 support

2021-06-24 Thread David Michael
Signed-off-by: David Michael --- Hi, This updates meson.eclass to conform to conventions that other eclasses seem to follow. E.g. conditional inherits are first (presumably for function precedence), and defining the inherit guard at the end. It also removes the split inherit guard. The only

Re: [gentoo-dev] [PATCH 1/2] ninja-utils.eclass: EAPI 8 support

2021-06-24 Thread David Michael
On Thu, Jun 24, 2021 at 12:51 PM Ulrich Mueller wrote: > >>>>> On Thu, 24 Jun 2021, David Michael wrote: > > --- a/eclass/ninja-utils.eclass > > +++ b/eclass/ninja-utils.eclass > > @@ -1,4 +1,4 @@ > > -# Copyright 1999-2018 Gentoo Foundation > > +#

[gentoo-dev] [PATCH] systemd.eclass: EAPI 8 support

2021-06-24 Thread David Michael
This also drops EAPIs < 5 to match toolchain-funcs.eclass. (Its support for EAPI 0 is an implementation detail so crossdev can source it, which is not relevant here.) Signed-off-by: David Michael --- Hi, Here is a simple eclass EAPI cleanup with no dependencies. There are also small twe

[gentoo-dev] [PATCH 1/2] xdg-utils.eclass: EAPI 8 support

2021-06-25 Thread David Michael
Also standardize on one conditional block spacing syntax and drop some redundant local variables. Signed-off-by: David Michael --- Hi, Here are some EAPI updates for GNOMEy eclasses. This one in particular would benefit from IDEPEND as most of its functions run native programs at pkg_post

[gentoo-dev] [PATCH 2/2] gnome.org.eclass: EAPI 8 support

2021-06-25 Thread David Michael
Signed-off-by: David Michael --- eclass/gnome.org.eclass | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eclass/gnome.org.eclass b/eclass/gnome.org.eclass index dba26155d74..7efd03bfa94 100644 --- a/eclass/gnome.org.eclass +++ b/eclass/gnome.org.eclass @@ -7,13 +7,13

[gentoo-dev] Re: [PATCH 1/2] xdg-utils.eclass: EAPI 8 support

2021-06-25 Thread David Michael
On Fri, Jun 25, 2021 at 12:33 PM David Michael wrote: > @@ -17,9 +17,9 @@ > # * XDG .desktop files cache management > # * XDG mime information database management > > -case "${EAPI:-0}" in > - 0|1|2|3|4|5|6|7) ;; > - *) die "EAPI=${EAPI} is

[gentoo-dev] [PATCH] autotools.eclass: EAPI 8 support

2021-06-26 Thread David Michael
Signed-off-by: David Michael --- Hi, Here is a simple update that is blocking a lot of stuff. It moves the EAPI check outside the inherit guard for bash future-proofing. Thanks. David eclass/autotools.eclass | 22 +- 1 file changed, 9 insertions(+), 13 deletions

[gentoo-dev] [PATCH] udev.eclass: EAPI 8 support

2021-06-26 Thread David Michael
This also drops EAPIs < 5 to match toolchain-funcs.eclass. Signed-off-by: David Michael --- This probably could have been sent in a series with https://archives.gentoo.org/gentoo-dev/message/22db5157cab5d6d173483fbc16377081 eclass/udev.eclass | 25 +++-- 1 file changed,

[gentoo-dev] [PATCH] db-use.eclass: EAPI 8 support

2021-07-03 Thread David Michael
conventions. Signed-off-by: David Michael --- eclass/db-use.eclass | 159 --- 1 file changed, 58 insertions(+), 101 deletions(-) diff --git a/eclass/db-use.eclass b/eclass/db-use.eclass index d23b08d1999..1df07a8a7ac 100644 --- a/eclass/db-use.eclass +++ b

[gentoo-dev] [PATCH] qmake-utils.eclass: EAPI 8 support

2021-07-03 Thread David Michael
Signed-off-by: David Michael --- Hi, Maybe the banned functions can be dropped? I don't see a removal date, and it's been over half a year since they were made unusable. Thanks. David eclass/qmake-utils.eclass | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-)