1 |
On 2020-03-20 10:10, Alarig Le Lay wrote: |
2 |
|
3 |
> > Assuming it's /usr/lib/portage/python3.6/ebuild-helpers/dobin, mine |
4 |
> > contains as the last significant chunk the following: |
5 |
> > |
6 |
> > for x in "$@" ; do |
7 |
> > if [[ -e ${x} ]] ; then |
8 |
> > install -m0755 -o ${PORTAGE_INST_UID:-0} -g ${PORTAGE_INST_GID:-0} "${x}" "${ED%/}/${_E_DESTTREE_#/}/bin" |
9 |
> > else |
10 |
> > echo "!!! ${0##*/}: $x does not exist" 1>&2 |
11 |
> > false |
12 |
> > fi |
13 |
> > ((ret|=$?)) |
14 |
> > done |
15 |
> > |
16 |
> > so it is indeed trying to set the owner to root. Maybe if I set |
17 |
> > PORTAGE_INST_{UID,GID} to my own it will not really try to change |
18 |
> > them. Are you saying you didn't have to do that? Does your version |
19 |
> > of the script contain the above code? |
20 |
> |
21 |
> Hi I have this chunk of code, but I never had to specify my UID or GID |
22 |
> by hand. |
23 |
> |
24 |
> Do you have hardening or something like that? |
25 |
|
26 |
No. Here is my make.conf: |
27 |
|
28 |
# These settings were set by the catalyst build script that automatically |
29 |
# built this stage. |
30 |
# Please consult /usr/share/portage/config/make.conf.example for a more |
31 |
# detailed example. |
32 |
COMMON_FLAGS="-O2 -march=k8 -mtune=barcelona --param l1-cache-size=64 |
33 |
--param l1-cache-line-size=64 --param l2-cache-size=512" |
34 |
CFLAGS="${COMMON_FLAGS}" |
35 |
CXXFLAGS="${COMMON_FLAGS}" |
36 |
FCFLAGS="${COMMON_FLAGS}" |
37 |
FFLAGS="${COMMON_FLAGS}" |
38 |
|
39 |
# NOTE: This stage was built with the bindist Use flag enabled |
40 |
PORTDIR="/usr/portage" |
41 |
DISTDIR="/usr/portage/distfiles" |
42 |
PKGDIR="/usr/portage/packages" |
43 |
PORTAGE_TMPDIR="/tmp" |
44 |
|
45 |
# This sets the language of build output to English. |
46 |
# Please keep this setting intact when reporting bugs. |
47 |
LC_MESSAGES=C |
48 |
|
49 |
# Added stuff |
50 |
MAKEOPTS="-j5 -l4" |
51 |
GENTOO_MIRRORS="http://gentoo.osuosl.org/ |
52 |
http://mirror.sjc02.svwh.net/gentoo/ |
53 |
http://gentoo.cs.utah.edu/ http://gentoo.gossamerhost.com/" |
54 |
ALSA_CARDS="hda-intel usb-audio ctxfi" |
55 |
VIDEO_CARDS="fbdev radeon vesa" |
56 |
INPUT_DEVICES="evdev" |
57 |
GRUB_PLATFORMS="pc" |
58 |
NOCOLOR="true" |
59 |
EMERGE_DEFAULT_OPTS="-qv --autounmask n --with-bdeps y --nospinner |
60 |
--quiet-unmerge-warn --load-average=4" |
61 |
EBEEP_IGNORE="true" |
62 |
FEATURES="collision-protect notitles splitdebug" |
63 |
USE="acl alsa amd64 ao audiofile berkdb bzip2 cairo cli crypt cxx dbus |
64 |
dri exif expat ffmpeg fftw flac fontconfig fortran gd gdbm gmp graphviz |
65 |
gsl gtk gpg guile hdf5 iconv icu idn ipv6 jpeg json libsamplerate latex |
66 |
lcms lensfun lm_sensors lzma lzo libtirpc mad mmap mp3 multilib ncurses |
67 |
nls nptl ogg openexr opengl openmp opus pam pcre pdf png postscript |
68 |
readline seccomp socks5 sound sqlite ssl svg tcpd tiff tk truetype udev |
69 |
unicode vorbis webp yaml X xattr xcb xft xml xmp xpm wxwidgets zip zlib |
70 |
-cups -emacs -filecaps -introspection -java -libav -lv2 -sasl -smartcard -vala" |
71 |
LLVM_TARGETS="X86 AMDGPU" |
72 |
L10N="en en-GB en-US es es-ES es-MX cs" |
73 |
CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" |
74 |
|
75 |
BTW, I have so far resisted enabling cgroups in the kernel. |
76 |
|
77 |
-- |
78 |
Ian |