Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414523 - sys-kernel/genkernel should not use the cript use flag
Summary: sys-kernel/genkernel should not use the cript use flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-03 21:15 UTC by William Hubbs
Modified: 2012-05-03 22:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Hubbs gentoo-dev 2012-05-03 21:15:46 UTC
The crypt flag is defined globally as being used to support gpg/gpgme,
and it is on by default in the profiles.

I am thinking that genkernel shouldn't use this flag for cryptsetup.

I was looking around in the tree and found some packages use the
'cryptsetup' use flag for this, and I think this would be a good fit for
genkernel.

Thoughts?

William
Comment 1 Sebastian Pipping gentoo-dev 2012-05-03 21:25:25 UTC
(In reply to comment #0)
> The crypt flag is defined globally as being used to support gpg/gpgme,
> and it is on by default in the profiles.
> 
> I am thinking that genkernel shouldn't use this flag for cryptsetup.

I see.


> I was looking around in the tree and found some packages use the
> 'cryptsetup' use flag for this, and I think this would be a good fit for
> genkernel.

Looks like it's just a single one:

# euse -i cryptsetup
global use flags (searching: cryptsetup)
************************************************************
no matching entries found

local use flags (searching: cryptsetup)
************************************************************
[-      ] cryptsetup
    sys-apps/systemd: Use libcryptsetup
        [-  ] 29-r3 [gentoo]
        [-  ] 29-r6 [gentoo]
        [-  ] 39 [gentoo]
        [-  ] 44-r1 [gentoo]

Still, no objections.

Any ideas on a smooth use flag rename transition?
Comment 2 William Hubbs gentoo-dev 2012-05-03 21:31:35 UTC
I would just switch over to the new use flag and put an ewarn in
pkg_postinst:

if use crypt; then
# some warning about the change here.
fi
Comment 3 William Hubbs gentoo-dev 2012-05-03 22:04:40 UTC
Because of portage's --newuse option, you don't need to do a revbump for
this type of change.
Comment 4 Sebastian Pipping gentoo-dev 2012-05-03 22:05:58 UTC
(In reply to comment #2)
> I would just switch over to the new use flag and put an ewarn in
> pkg_postinst:
> 
> if use crypt; then
> # some warning about the change here.
> fi

For that to work flag "crypt" needs to remain in IUSE one way or another: just verified with portage myself.
Comment 5 Sebastian Pipping gentoo-dev 2012-05-03 22:26:37 UTC
I have migrated the use flag effect and added this messaging:

+  if use crypt && ! use cryptsetup ; then
+     ewarn "Local use flag 'crypt' has been renamed to 'cryptsetup' (bug [..]"
+     ewarn "Please set flag 'cryptsetup' for this very package if you would like"
+     ewarn "to have genkernel create an initramfs with LUKS support."
+     ewarn "Sorry for the inconvenience."
+     echo
+  fi

Closing.

+  03 May 2012; Sebastian Pipping <sping@gentoo.org> genkernel-3.4.30.ebuild,
+  genkernel-9999.ebuild, metadata.xml:
+  Migrate from use flag 'crypt' to 'cryptsetup' (bug #414523), sync live ebuild
+