Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: Florian Schmaus <flow@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] java-pkg-simple.eclass: eqawarn if module-info.java is not compiled
Date: Wed, 04 May 2022 05:57:40
Message-Id: u8rrhyh4t@gentoo.org
In Reply to: [gentoo-dev] [PATCH] java-pkg-simple.eclass: eqawarn if module-info.java is not compiled by Florian Schmaus
1 >>>>> On Wed, 04 May 2022, Florian Schmaus wrote:
2
3 > + 5|6) inherit eutils ;; # eutils for eqawarn
4
5 Adding eutils in 2022 seems a little backwards. Maybe make the output
6 command conditional instead? Something like this:
7
8 # conditional needed in EAPIs 5 and 6
9 local eqawarn=eqawarn
10 declare -F eqawarn >/dev/null || eqawarn=ewarn
11 ${eqawarn} ...
12
13 Alternatively, port the few remaining EAPI 5 and 6 consumers to a newer
14 EAPI. :)
15
16 Ulrich

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies