* [gentoo-dev] [PATCH 1/2] linux-mod.eclass: drop unnecessary IUSE="kernel_linux"
@ 2022-01-04 10:23 Sam James
2022-01-04 10:23 ` [gentoo-dev] [PATCH 2/2] linux-info.eclass: " Sam James
2022-01-04 16:17 ` [gentoo-dev] [PATCH 1/2] linux-mod.eclass: " Mike Gilbert
0 siblings, 2 replies; 6+ messages in thread
From: Sam James @ 2022-01-04 10:23 UTC (permalink / raw
To: gentoo-dev; +Cc: kernel, Sam James
It's already an implicit IUSE, so we don't need this.
Signed-off-by: Sam James <sam@gentoo.org>
---
eclass/linux-mod.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index 9f4ae64f6b55..496b9c98b526 100644
--- a/eclass/linux-mod.eclass
+++ b/eclass/linux-mod.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: linux-mod.eclass
@@ -170,7 +170,7 @@ esac
0) die "EAPI=${EAPI} is not supported with MODULES_OPTIONAL_USE_IUSE_DEFAULT due to lack of IUSE defaults" ;;
esac
-IUSE="kernel_linux dist-kernel
+IUSE="dist-kernel
${MODULES_OPTIONAL_USE:+${_modules_optional_use_iuse_default}}${MODULES_OPTIONAL_USE}"
SLOT="0"
RDEPEND="
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-dev] [PATCH 2/2] linux-info.eclass: drop unnecessary IUSE="kernel_linux"
2022-01-04 10:23 [gentoo-dev] [PATCH 1/2] linux-mod.eclass: drop unnecessary IUSE="kernel_linux" Sam James
@ 2022-01-04 10:23 ` Sam James
2022-01-04 17:46 ` Brian Evans
2022-01-04 16:17 ` [gentoo-dev] [PATCH 1/2] linux-mod.eclass: " Mike Gilbert
1 sibling, 1 reply; 6+ messages in thread
From: Sam James @ 2022-01-04 10:23 UTC (permalink / raw
To: gentoo-dev; +Cc: kernel, Sam James
It's already an implicit IUSE, so we don't need this.
Signed-off-by: Sam James <sam@gentoo.org>
---
eclass/linux-info.eclass | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index 568f7a1a2832..a0942f0e554c 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: linux-info.eclass
@@ -137,8 +137,6 @@ inherit toolchain-funcs
EXPORT_FUNCTIONS pkg_setup
-IUSE="kernel_linux"
-
# Bug fixes
# fix to bug #75034
case ${ARCH} in
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] [PATCH 1/2] linux-mod.eclass: drop unnecessary IUSE="kernel_linux"
2022-01-04 10:23 [gentoo-dev] [PATCH 1/2] linux-mod.eclass: drop unnecessary IUSE="kernel_linux" Sam James
2022-01-04 10:23 ` [gentoo-dev] [PATCH 2/2] linux-info.eclass: " Sam James
@ 2022-01-04 16:17 ` Mike Gilbert
2022-01-04 21:54 ` Michał Górny
1 sibling, 1 reply; 6+ messages in thread
From: Mike Gilbert @ 2022-01-04 16:17 UTC (permalink / raw
To: Gentoo Dev; +Cc: kernel, Sam James
On Tue, Jan 4, 2022 at 5:23 AM Sam James <sam@gentoo.org> wrote:
>
> It's already an implicit IUSE, so we don't need this.
I think it is better to declare it explicitly rather than relying on
the IUSE_IMPLICIT setting in profiles.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] [PATCH 1/2] linux-mod.eclass: drop unnecessary IUSE="kernel_linux"
2022-01-04 16:17 ` [gentoo-dev] [PATCH 1/2] linux-mod.eclass: " Mike Gilbert
@ 2022-01-04 21:54 ` Michał Górny
2022-01-04 22:55 ` Sam James
0 siblings, 1 reply; 6+ messages in thread
From: Michał Górny @ 2022-01-04 21:54 UTC (permalink / raw
To: gentoo-dev; +Cc: kernel, Sam James
On Tue, 2022-01-04 at 11:17 -0500, Mike Gilbert wrote:
> On Tue, Jan 4, 2022 at 5:23 AM Sam James <sam@gentoo.org> wrote:
> >
> > It's already an implicit IUSE, so we don't need this.
>
> I think it is better to declare it explicitly rather than relying on
> the IUSE_IMPLICIT setting in profiles.
I agree. Perhaps we should go even further and remove them from
implicit flags.
--
Best regards,
Michał Górny
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] [PATCH 1/2] linux-mod.eclass: drop unnecessary IUSE="kernel_linux"
2022-01-04 21:54 ` Michał Górny
@ 2022-01-04 22:55 ` Sam James
0 siblings, 0 replies; 6+ messages in thread
From: Sam James @ 2022-01-04 22:55 UTC (permalink / raw
To: Michał Górny; +Cc: gentoo-dev, kernel
[-- Attachment #1: Type: text/plain, Size: 1150 bytes --]
> On 4 Jan 2022, at 21:54, Michał Górny <mgorny@gentoo.org> wrote:
>
> On Tue, 2022-01-04 at 11:17 -0500, Mike Gilbert wrote:
>> On Tue, Jan 4, 2022 at 5:23 AM Sam James <sam@gentoo.org> wrote:
>>>
>>> It's already an implicit IUSE, so we don't need this.
>>
>> I think it is better to declare it explicitly rather than relying on
>> the IUSE_IMPLICIT setting in profiles.
>
> I agree. Perhaps we should go even further and remove them from
> implicit flags.
>
(Note: I did push this change already to coalesce this
with FreeBSD and other removals.)
I don't think declaring it explicitly is helpful given
in most cases (and even more now after recent
cleanups), it's relied upon without declaring it anyway.
Use within IUSE while it's implicit also means
IUSE seems to regularly get out of sync with
actual use within the ebuilds.
As for removing implicit use entirely: while you might
argue this could be okay for the Linux kernel, it would cause
unnecessary rebuilds indefinitely whenever we add a new dep
to an ebuild for e.g. Darwin, or if we did it for libcs,
for say, musl/non-glibc.
best,
sam
[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 618 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-01-04 22:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-04 10:23 [gentoo-dev] [PATCH 1/2] linux-mod.eclass: drop unnecessary IUSE="kernel_linux" Sam James
2022-01-04 10:23 ` [gentoo-dev] [PATCH 2/2] linux-info.eclass: " Sam James
2022-01-04 17:46 ` Brian Evans
2022-01-04 16:17 ` [gentoo-dev] [PATCH 1/2] linux-mod.eclass: " Mike Gilbert
2022-01-04 21:54 ` Michał Górny
2022-01-04 22:55 ` Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox