Gentoo Archives: gentoo-user

From: Kai Krakow <hurikhan77@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Forced rebuild of a package...how?
Date: Fri, 09 Feb 2018 10:40:35
Message-Id: tba0le-36g.ln1@hurikhan77.spdns.de
In Reply to: [gentoo-user] Forced rebuild of a package...how? by tuxic@posteo.de
1 Am Sun, 04 Feb 2018 05:20:03 +0100 schrieb tuxic:
2
3 > after installing linux-4.15.1 (downloaded from kernel.org) I want to
4 > reinstall (beside others) nvidia drivers.
5 >
6 > Emerge told me:
7 > | >emerge nvidia-drivers
8 > | Calculating dependencies... done!
9 > | >>> Jobs: 0 of 0 complete Load avg: 1.05, 0.65, 0.34
10 > | >>> Auto-cleaning packages...
11 > |
12 > | >>> No outdated packages were found on your system.
13 >
14 >
15 > That is valid for the previous installed kernel...but not for the one
16 >
17 > This was updated just before
18 > Sun Feb 4 04:21:46 2018 <<< sys-apps/portage-2.3.23
19 > Sun Feb 4 04:21:51 2018 >>> sys-apps/portage-2.3.24
20 >
21 > My make.conf has this options:
22 > EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4 --changed-deps-report=n --changed-deps"
23 >
24 >
25 > Thanks for any help in advance!
26
27 I'm using this script to automate the process:
28
29 $ cat /etc/kernel/postinst.d/70-emerge-module-rebuild
30 #!/bin/bash
31 exec env -i PATH=$PATH /usr/bin/emerge -1v --usepkg=n @module-rebuild
32
33 (I don't know why "env -i PATH=$PATH" is needed but otherwise it won't
34 work correctly sometimes)
35
36
37 You could add "--changed-deps=n" there because otherwise it won't play
38 well with using "--changed-deps" as a default.
39
40 Now, when you run "make modules_install install", it will automatically
41 rebuild kernel modules.
42
43 BTW, I have another script to also install the kernel in systemd-boot
44 which also rebuilds initramfs (dracut here):
45
46 $ cat /etc/kernel/postinst.d/zz-systemd-boot
47 #!/bin/bash
48 /usr/bin/kernel-install remove $1 $2
49 /usr/bin/kernel-install add $1 $2
50
51
52 --
53 Regards,
54 Kai
55
56 Replies to list-only preferred.

Replies

Subject Author
[gentoo-user] Re: Forced rebuild of a package...how? Kai Krakow <hurikhan77@×××××.com>