1 |
Hi Ricardo, |
2 |
|
3 |
Sorry, your email seems to have slipped through. Some answers inline: |
4 |
|
5 |
On 09-07-2018 23:48:00 -0400, Ricardo Grant wrote: |
6 |
> Hello! |
7 |
> |
8 |
> The more I read about portage the more I like it, it has very nice features. I |
9 |
> Decided to use prefix on Ubuntu 16.04. The bootstrap script successfully |
10 |
> completed. I had to slightly modify my `bashrc`(default from Ubuntu) since |
11 |
> gentoo's `lesspipe` works differently, however `startprefix` works as intended. |
12 |
> In the stage logs I see various `chown` failures. Like these: |
13 |
> |
14 |
> ``` |
15 |
> chown failure ignored with unprivileged user: |
16 |
> * chown -R root:0 ${D}${EPREFIX}/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0 |
17 |
> * /bin/chown: changing ownership of |
18 |
> '${D}${EPREFIX}/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/libvtv.a': Operation not |
19 |
> permitted |
20 |
> * /bin/chown: changing ownership of |
21 |
> '${D}${EPREFIX}/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/libtsan_preinit.o': |
22 |
> Operation not permitted |
23 |
> |
24 |
> ... |
25 |
> |
26 |
> ``` |
27 |
> |
28 |
> It's interesting to note it uses Ubuntu's `chown`. I assume this fails because |
29 |
> `sudo` would be required. Does this affect me on using prefix? |
30 |
|
31 |
This should only be during bootstrap, not everything is there yet. |
32 |
Finally, it will use $EPREFIX/bin/chown and also fail (and ignore). |
33 |
This is because mainline Gentoo Linux assumes root access, and Prefix |
34 |
does not. Hence it is a warning and not an error. It is safe to |
35 |
ignore. |
36 |
|
37 |
> Some other |
38 |
> concerns: |
39 |
> |
40 |
> ``` |
41 |
> |
42 |
> * Failed to set PT_PAX markings -r |
43 |
> /home/ricardo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/image//home/ricardo/gentoo/tmp/usr/libexec/gcc/x86_64-pc-linux-gnu/7.3.0/cc1. |
44 |
> * Failed to set XATTR_PAX markings -r |
45 |
> /home/ricardo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/image//home/ricardo/gentoo/tmp/usr/libexec/gcc/x86_64-pc-linux-gnu/7.3.0/cc1. |
46 |
> * Failed to set PT_PAX markings -r |
47 |
> /home/ricardo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/image//home/ricardo/gentoo/tmp/usr/libexec/gcc/x86_64-pc-linux-gnu/7.3.0/cc1plus. |
48 |
> * Failed to set XATTR_PAX markings -r |
49 |
> /home/ricardo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-7.3.0-r3/image//home/ricardo/gentoo/tmp/usr/libexec/gcc/x86_64-pc-linux-gnu/7.3.0/cc1plus |
50 |
> |
51 |
> ... |
52 |
> |
53 |
> ``` |
54 |
> |
55 |
> I assume because `chown` fails? |
56 |
|
57 |
No, pax-utils is probably not yet emerged at this point. During the |
58 |
bootstrap process, however, you can safely ignore this, as all packages |
59 |
are re-installed in the last step. These things get done properly by |
60 |
then. |
61 |
|
62 |
> I am also curious as to the philosophy of Gentoo Prefix. Do I always use a |
63 |
> prefix sessions to work / use portage based packages? Is it possible for more |
64 |
> cohesion with my system packages? It would be nice to open gui apps without |
65 |
> launching them from the command line ( I assume that’s how you would do it). |
66 |
|
67 |
The general idea is to "enter" the Prefix system and use everything from |
68 |
there. Reason why historically was because everything on the host |
69 |
system sulks, but nowadays it is mostly because you just want the |
70 |
specific versions as provided by Gentoo. It is hard, if not impossible, |
71 |
to maintain compatibility with host-provided packages. In reality, |
72 |
though you might find some things just work well when mixed. |
73 |
|
74 |
Thanks, |
75 |
Fabian |
76 |
|
77 |
> Here is my `emerge --info` : |
78 |
> |
79 |
> ``` |
80 |
> Portage 2.3.41 (python 3.5.5-final-0, |
81 |
> default/linux/amd64/17.0/no-multilib/prefix/kernel-3.2+, gcc-7.3.0, |
82 |
> glibc-2.27-r5, 4.13.0-45-generic x86_64) |
83 |
> ================================================================= |
84 |
> System uname: |
85 |
> Linux-4.13.0-45-generic-x86_64-Intel-R-_Pentium-R-_CPU_4415U_@_2.30GHz-with-debian-stretch-sid |
86 |
> KiB Mem: 3905956 total, 139788 free |
87 |
> KiB Swap: 4059132 total, 3843540 free |
88 |
> Timestamp of repository gentoo: Mon, 09 Jul 2018 01:30:01 +0000 |
89 |
> Head commit of repository gentoo: 1c5415775dabb4a420dcd040894c5f254ea034dd |
90 |
> sh bash 4.4_p23 |
91 |
> ld GNU ld (Gentoo 2.30 p3) 2.30.0 |
92 |
> app-shells/bash: 4.4_p23::gentoo |
93 |
> dev-lang/perl: 5.26.2::gentoo |
94 |
> dev-lang/python: 2.7.15::gentoo, 3.5.5-r1::gentoo |
95 |
> dev-util/pkgconfig: 0.29.2::gentoo |
96 |
> sys-apps/baselayout: 2.6::gentoo |
97 |
> sys-apps/sandbox: 2.13::gentoo |
98 |
> sys-devel/autoconf: 2.69-r4::gentoo |
99 |
> sys-devel/automake: 1.16.1-r1::gentoo |
100 |
> sys-devel/binutils: 2.30-r3::gentoo |
101 |
> sys-devel/gcc: 7.3.0-r3::gentoo |
102 |
> sys-devel/gcc-config: 1.9.1::gentoo |
103 |
> sys-devel/libtool: 2.4.6-r5::gentoo |
104 |
> sys-devel/make: 4.2.1-r3::gentoo |
105 |
> sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers) |
106 |
> sys-libs/glibc: 2.27-r5::gentoo |
107 |
> Repositories: |
108 |
> |
109 |
> gentoo |
110 |
> location: /home/ricardo/gentoo/usr/portage |
111 |
> sync-type: rsync |
112 |
> sync-uri: rsync://[1]rsync.gentoo.org/gentoo-portage |
113 |
> priority: -1000 |
114 |
> sync-rsync-verify-max-age: 24 |
115 |
> sync-rsync-verify-metamanifest: yes |
116 |
> sync-rsync-extra-opts: |
117 |
> sync-rsync-verify-jobs: 1 |
118 |
> |
119 |
> ACCEPT_KEYWORDS="amd64 ~amd64" |
120 |
> ACCEPT_LICENSE="* -@EULA" |
121 |
> CBUILD="x86_64-pc-linux-gnu" |
122 |
> CFLAGS="-O2 -pipe -O2 -pipe" |
123 |
> CHOST="x86_64-pc-linux-gnu" |
124 |
> CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" |
125 |
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf |
126 |
> /etc/sandbox.d /etc/terminfo /home/ricardo/gentoo/etc/gentoo-release" |
127 |
> CXXFLAGS="-O2 -pipe -O2 -pipe" |
128 |
> DISTDIR="/home/ricardo/gentoo/usr/portage/distfiles" |
129 |
> ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX |
130 |
> PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME |
131 |
> XDG_DATA_HOME XDG_RUNTIME_DIR" |
132 |
> FCFLAGS="-O2 -pipe" |
133 |
> FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks |
134 |
> ebuild-locks fixlafiles force-prefix merge-sync multilib-strict news |
135 |
> parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn |
136 |
> unmerge-logs unmerge-orphans unprivileged" |
137 |
> FFLAGS="-O2 -pipe" |
138 |
> GENTOO_MIRRORS="[2]http://distfiles.gentoo.org" |
139 |
> LDFLAGS="-Wl,-O1 -Wl,--as-needed" |
140 |
> MAKEOPTS="-j3" |
141 |
> PKGDIR="/home/ricardo/gentoo/usr/portage/packages" |
142 |
> PORTAGE_CONFIGROOT="/home/ricardo/gentoo/" |
143 |
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times |
144 |
> --omit-dir-times --compress --force --whole-file --delete --stats |
145 |
> --human-readable --timeout=180 --exclude=/distfiles --exclude=/local |
146 |
> --exclude=/packages --exclude=/.git" |
147 |
> PORTAGE_TMPDIR="/home/ricardo/gentoo/var/tmp" |
148 |
> USE="acl amd64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc |
149 |
> modules ncurses nls nptl openmp pcre prefix readline seccomp ssl tcpd unicode |
150 |
> zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 |
151 |
> cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m |
152 |
> maestro3 trident usb-audio via82xx via82xx-modem ymfpci" |
153 |
> APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias |
154 |
> auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm |
155 |
> authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache |
156 |
> cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter |
157 |
> file_cache filter headers include info log_config logio mem_cache mime |
158 |
> mime_magic negotiation rewrite setenvif speling status unique_id userdir |
159 |
> usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" |
160 |
> COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" |
161 |
> CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm |
162 |
> earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip |
163 |
> navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 |
164 |
> timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" |
165 |
> KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 |
166 |
> mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console |
167 |
> presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 |
168 |
> php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" |
169 |
> PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" |
170 |
> RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau |
171 |
> radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 |
172 |
> ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal |
173 |
> rawnat logmark ipmark dhcpmac delude chaos account" |
174 |
> Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, |
175 |
> LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, |
176 |
> PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
177 |
> ``` |
178 |
> |
179 |
> TIA |
180 |
> |
181 |
> -- Ricardo Grant |
182 |
> |
183 |
> Computer Science Student, Laurentian University |
184 |
> |
185 |
> P: 705 470 5386 |
186 |
> |
187 |
> E: [3]rgrant@××××××××××.ca |
188 |
> |
189 |
> |
190 |
> |
191 |
> References: |
192 |
> 1. http://rsync.gentoo.org/gentoo-portage |
193 |
> 2. http://distfiles.gentoo.org |
194 |
> 3. mailto:rgrant@××××××××××.ca |
195 |
> |
196 |
> read_char: errno==EILSEQ; invalid byte sequence for UTF-8: |
197 |
-- |
198 |
Fabian Groffen |
199 |
Gentoo on a different level |