Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Kernel config checks in simple packages (not kernel modules)
Date: Tue, 26 Jul 2011 21:08:01
Message-Id: 20110726230815.40c94b89@pomiocik.lan
1 Hello,
2
3 As Diego pointed out in bug #374807 [1], a simple package (not a kernel
4 module) should not enforce any kernel options during the build process.
5 As of no reply on the bug, I'm posting my question here.
6
7 Should it just use '~' and warn then? Or should it re-do the checks
8 in pkg_preinst(), this time making the checks fatal? Or maybe it should
9 only perform them there?
10
11 Also, I think I've seen ebuilds doing kernel checks in pkg_pretend(). I
12 did that once too but now I think that's wrong because kernel sources
13 are not guaranteed to be installed at that point. I am right?
14
15 [1]:http://bugs.gentoo.org/show_bug.cgi?id=374807
16
17 --
18 Best regards,
19 Michał Górny

Attachments

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

Replies