blob: 7cd0d4a4d2a181a5da8a3538b2bb783e67120a45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
[[Installation]]
[[Userland]]
[[Qemu]]
[[Custom Ebuild Repo]]
[[Kernel]]
what is /var/cache/distfiles/...
eclean-dist -dp
# fix mpv from segfault
- For information, I will repeat here the workaround, it may help for others :
- emerge app-portage/cpuid2cpuflags
- launch cpuid2cpuflags
- create a var CPU_FLAGS_X86 containing the output of this command in your /etc/portage/make.conf
- re emerge media-video/ffmpeg
zram for swap
# bashrc portage - run post hook
mkdir -p /etc/portage/postinst.d/
chmod 755 /etc/portage/postinst.d/
vim /etc/portage/bashrc
#!/bin/bash
POSTINST_BASE="/etc/portage/postinst.d/"
post_pkg_postinst()
{
local POSTINST_SCRIPT
if [[ "x${CATEGORY}" == "xvirtual" ]']
then
return 0
fi
for POSTINST_SCRIPT in ${POSTINST_BASE%/}/{all,${CATEGORY}/{${P}-${PR},${P},${PN}}{:$SLOT},}}
do
if [[ -x "${POSTINST_SCRIPT}" ]']
then
einfo "Running post-installation script ${POSTINST_SCRIPT} ..."
"${POSTINST_SCRIPT}"
fi
done
}
then put script in
/etc/portage/postinst.d/sys-kernel/gentoo-kernel-bin
(with a shebang and make it executable)
chmod +x
script will be run as root - set -eu on top script ???
|