1 |
Hi, |
2 |
|
3 |
On 2022/06/10 12:07, Ionen Wolkens wrote: |
4 |
|
5 |
> On Fri, Jun 10, 2022 at 06:03:28AM -0400, Ionen Wolkens wrote: |
6 |
>> On Fri, Jun 10, 2022 at 11:41:01AM +0200, Jaco Kroon wrote: |
7 |
>>> Hi All, |
8 |
>>> |
9 |
>>> Currently checks for kernel options etc happen in pkg_setup, would it be |
10 |
>>> possible to move this to pkg_pretend? |
11 |
>> One problem with pkg_pretend is that it may not even be the right |
12 |
>> kernel, e.g. it could be using a new gentoo-kernel that was just |
13 |
>> emerged in the process. There's also USE=symlink which may lead |
14 |
>> to an entirely non-configured kernel. So pkg_setup check is |
15 |
>> essential and "moving" wouldn't be right. |
16 |
>> |
17 |
>> Copying can "somewhat" work, albeit it could check against different |
18 |
>> kernels and also cause duplicated messages (former nvidia-drivers |
19 |
> Actually, also need to consider the case where there's not even |
20 |
> a kernel yet. |
21 |
> |
22 |
> e.g. `emerge gentoo-kernel-bin nvidia-drivers` would fail with |
23 |
> pkg_pretend and work with pkg_setup |
24 |
> |
25 |
> So, if used, pretend would need to be (at least) non-fatal and |
26 |
> just a warning. |
27 |
|
28 |
Hmm. So a newly installed kernel would probably always fail all checks. |
29 |
|
30 |
Ok, I'm going to leave this as is, but move the DAHDI checks to |
31 |
pkg_setup regardless just to be more in line with what I now understand |
32 |
the INTENDED use was. |
33 |
|
34 |
Kind Regards, |
35 |
Jaco |