Hi, unfortunately I ran the emerge and layman in one sweep but I still hope it can be seen the Permission denied issues are probably coming from emerge itself. I admit I have symlinked /usr/portage to /scratch/usr/portage and that is likely causing the permission errors when picky rsync is used. # emerge --sync; layman -S >>> Syncing repository 'gentoo' into '/scratch/usr/portage'... * Using keys from /usr/share/openpgp-keys/gentoo-release.asc * Refreshing keys from keyserver ... [ ok ] >>> Starting rsync with rsync://89.238.71.6/gentoo-portage... >>> Checking server timestamp ... Welcome to turnstone.gentoo.org / rsync.gentoo.org Server Address : 89.238.71.6, 2a00:1828:a00d:ffff::6 Contact Name : mirror-admin@gentoo.org Hardware : 16 x Intel(R) Xeon(R) CPU E5530 @ 2.40GHz, 24160MB RAM Sponsor : Manitu GmbH, St. Wendel, Germany Please note: common gentoo-netiquette says you should not sync more than once a day. Users who abuse the rsync.gentoo.org rotation may be added to a temporary ban list. MOTD autogenerated by update-rsync-motd on Tue Jan 2 08:34:00 UTC 2018 receiving incremental file list timestamp.chk Number of files: 1 (reg: 1) Number of created files: 0 Number of deleted files: 0 Number of regular files transferred: 1 Total file size: 32 bytes Total transferred file size: 32 bytes Literal data: 32 bytes Matched data: 0 bytes File list size: 41 File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 104 Total bytes received: 132 sent 104 bytes received 132 bytes 157.33 bytes/sec total size is 32 speedup is 0.14 Welcome to turnstone.gentoo.org / rsync.gentoo.org Server Address : 89.238.71.6, 2a00:1828:a00d:ffff::6 Contact Name : mirror-admin@gentoo.org Hardware : 16 x Intel(R) Xeon(R) CPU E5530 @ 2.40GHz, 24160MB RAM Sponsor : Manitu GmbH, St. Wendel, Germany Please note: common gentoo-netiquette says you should not sync more than once a day. Users who abuse the rsync.gentoo.org rotation may be added to a temporary ban list. MOTD autogenerated by update-rsync-motd on Tue Jan 2 08:34:00 UTC 2018 receiving incremental file list Manifest Manifest.files.gz app-crypt/Manifest.gz app-crypt/hashcat-utils/ app-crypt/hashcat-utils/Manifest app-crypt/hashcat-utils/hashcat-utils-1.9.ebuild app-crypt/hashcat-utils/metadata.xml dev-db/Manifest.gz deleting dev-db/pspg/pspg-1.1.0.ebuild deleting dev-db/pspg/pspg-0.9.3.ebuild deleting dev-db/pspg/pspg-0.9.2.ebuild deleting dev-db/pspg/pspg-0.8.0.ebuild dev-db/pspg/Manifest dev-python/Manifest.gz dev-python/pygobject/Manifest dev-python/pygobject/pygobject-3.28.3.ebuild media-libs/Manifest.gz media-libs/tiff/Manifest media-libs/tiff/tiff-4.0.9-r4.ebuild metadata/Manifest.gz metadata/timestamp metadata/timestamp.chk metadata/timestamp.commit metadata/timestamp.x metadata/dtd/timestamp.chk metadata/glsa/Manifest metadata/glsa/timestamp.chk metadata/md5-cache/Manifest.gz metadata/md5-cache/app-crypt/Manifest.gz metadata/md5-cache/app-crypt/hashcat-utils-1.9 deleting metadata/md5-cache/dev-db/pspg-1.1.0 deleting metadata/md5-cache/dev-db/pspg-0.9.3 deleting metadata/md5-cache/dev-db/pspg-0.9.2 deleting metadata/md5-cache/dev-db/pspg-0.8.0 metadata/md5-cache/dev-db/Manifest.gz metadata/md5-cache/dev-python/Manifest.gz metadata/md5-cache/dev-python/pygobject-3.28.3 metadata/md5-cache/media-libs/Manifest.gz metadata/md5-cache/media-libs/tiff-4.0.9-r4 metadata/news/Manifest metadata/news/timestamp.chk metadata/xml-schema/timestamp.chk profiles/Manifest.gz profiles/arch/powerpc/use.mask Number of files: 162,755 (reg: 135,244, dir: 27,511) Number of created files: 7 (reg: 6, dir: 1) Number of deleted files: 8 (reg: 8) Number of regular files transferred: 35 Total file size: 218.86M bytes Total transferred file size: 1.45M bytes Literal data: 1.45M bytes Matched data: 0 bytes File list size: 2.84M File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 30.79K Total bytes received: 5.49M sent 30.79K bytes received 5.49M bytes 441.63K bytes/sec total size is 218.86M speedup is 39.65 * Manifest timestamp: 2018-09-18 20:38:42 UTC * Valid OpenPGP signature found: * - primary key: DCD05B71EAB94199527F44ACDB6B8C1F96D8BF6D * - subkey: E1D6ABB63BFCFB4BA02FDF1CEC590EEAC9189250 * - timestamp: 2018-09-18 20:38:42 UTC * Verifying /scratch/usr/portage/.tmp-unverified-download-quarantine ... [ ok ] sending incremental file list Manifest Manifest.files.gz rsync: delete_file: unlink(app-admin/spectre-meltdown-checker/spectre-meltdown-checker-0.38.ebuild) failed: Permission denied (13) rsync: delete_file: unlink(app-admin/spectre-meltdown-checker/spectre-meltdown-checker-0.37.ebuild) failed: Permission denied (13) app-admin/spectre-meltdown-checker/Manifest app-admin/spectre-meltdown-checker/spectre-meltdown-checker-0.39.ebuild rsync: mkstemp "/scratch/usr/portage/app-admin/spectre-meltdown-checker/.Manifest.yDg3lW" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/app-admin/spectre-meltdown-checker/.spectre-meltdown-checker-0.39.ebuild.7F1JxL" failed: Permission denied (13) app-crypt/Manifest.gz app-crypt/hashcat-utils/ app-crypt/hashcat-utils/Manifest app-crypt/hashcat-utils/hashcat-utils-1.9.ebuild app-crypt/hashcat-utils/metadata.xml app-misc/mkcert/Manifest app-misc/mkcert/metadata.xml app-misc/mkcert/mkcert-1.1.2.ebuild rsync: mkstemp "/scratch/usr/portage/app-misc/mkcert/.Manifest.Osd3aW" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/app-misc/mkcert/.metadata.xml.VTBGHM" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/app-misc/mkcert/.mkcert-1.1.2.ebuild.345jeD" failed: Permission denied (13) dev-db/Manifest.gz deleting dev-db/pspg/pspg-1.1.0.ebuild deleting dev-db/pspg/pspg-0.9.3.ebuild deleting dev-db/pspg/pspg-0.9.2.ebuild deleting dev-db/pspg/pspg-0.8.0.ebuild dev-db/pspg/Manifest dev-python/Manifest.gz dev-python/precis-i18n/Manifest dev-python/precis-i18n/precis-i18n-1.0.0.ebuild dev-python/pygobject/Manifest dev-python/pygobject/pygobject-3.28.3.ebuild rsync: mkstemp "/scratch/usr/portage/dev-python/precis-i18n/.Manifest.iWo6Ab" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/dev-python/precis-i18n/.precis-i18n-1.0.0.ebuild.ZlT7D6" failed: Permission denied (13) dev-python/python-consul/Manifest dev-python/python-consul/metadata.xml rsync: mkstemp "/scratch/usr/portage/dev-python/python-consul/.Manifest.ieprTR" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/dev-python/python-consul/.metadata.xml.6K7q2M" failed: Permission denied (13) dev-python/tappy/Manifest dev-python/tappy/tappy-2.4.ebuild rsync: mkstemp "/scratch/usr/portage/dev-python/tappy/.Manifest.Vnq9vI" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/dev-python/tappy/.tappy-2.4.ebuild.hIgSZD" failed: Permission denied (13) dev-util/envman/Manifest dev-util/envman/envman-1.2.1.ebuild rsync: mkstemp "/scratch/usr/portage/dev-util/envman/.Manifest.XHiFoA" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/dev-util/envman/.envman-1.2.1.ebuild.SPRsNw" failed: Permission denied (13) dev-util/gn/Manifest dev-util/gn/gn-0.1463.ebuild dev-util/gn/files/gn-gen-r1.patch dev-util/stepman/Manifest dev-util/stepman/stepman-0.10.2.ebuild rsync: mkstemp "/scratch/usr/portage/dev-util/gn/.Manifest.mVYEht" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/dev-util/gn/.gn-0.1463.ebuild.ATORLp" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/dev-util/gn/files/.gn-gen-r1.patch.yW44fm" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/dev-util/stepman/.Manifest.3BirKi" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/dev-util/stepman/.stepman-0.10.2.ebuild.xWGNef" failed: Permission denied (13) games-emulation/jrommanager/Manifest games-emulation/jrommanager/jrommanager-1.7_p24-r1.ebuild games-emulation/jrommanager/jrommanager-1.8_p27-r1.ebuild rsync: mkstemp "/scratch/usr/portage/games-emulation/jrommanager/.Manifest.N8s1ac" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/games-emulation/jrommanager/.jrommanager-1.7_p24-r1.ebuild.p1Gf78" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/games-emulation/jrommanager/.jrommanager-1.8_p27-r1.ebuild.tmdu35" failed: Permission denied (13) rsync: delete_file: unlink(gnome-extra/authenticator/files/disable-failing-tests.patch) failed: Permission denied (13) cannot delete non-empty directory: gnome-extra/authenticator/files rsync: delete_file: rmdir(gnome-extra/authenticator/files) failed: Permission denied (13) rsync: delete_file: unlink(gnome-extra/authenticator/metadata.xml) failed: Permission denied (13) rsync: delete_file: unlink(gnome-extra/authenticator/authenticator-9999.ebuild) failed: Permission denied (13) rsync: delete_file: unlink(gnome-extra/authenticator/authenticator-0.2.1.ebuild) failed: Permission denied (13) rsync: delete_file: unlink(gnome-extra/authenticator/Manifest) failed: Permission denied (13) cannot delete non-empty directory: gnome-extra/authenticator gnome-extra/gnome-shell-extension-gsconnect/Manifest gnome-extra/gnome-shell-extension-gsconnect/gnome-shell-extension-gsconnect-12.ebuild rsync: mkstemp "/scratch/usr/portage/gnome-extra/gnome-shell-extension-gsconnect/.Manifest.nmtlR3" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/gnome-extra/gnome-shell-extension-gsconnect/.gnome-shell-extension-gsconnect-12.ebuild.FCcdF1" failed: Permission denied (13) rsync: delete_file: unlink(kde-frameworks/kio/files/kio-5.48.0-memleak.patch) failed: Permission denied (13) cannot delete non-empty directory: kde-frameworks/kio/files rsync: delete_file: unlink(kde-frameworks/kxmlgui/files/kxmlgui-5.48.0-kmainwindow.patch) failed: Permission denied (13) cannot delete non-empty directory: kde-frameworks/kxmlgui/files media-libs/Manifest.gz media-libs/graphene/Manifest media-libs/graphene/graphene-1.8.2.ebuild rsync: mkstemp "/scratch/usr/portage/media-libs/graphene/.Manifest.PnHYaZ" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/media-libs/graphene/.graphene-1.8.2.ebuild.X8bSYX" failed: Permission denied (13) media-libs/tiff/Manifest media-libs/tiff/tiff-4.0.9-r4.ebuild media-libs/woff2/Manifest media-libs/woff2/woff2-1.0.2-r1.ebuild rsync: mkstemp "/scratch/usr/portage/media-libs/woff2/.Manifest.joqm4U" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/media-libs/woff2/.woff2-1.0.2-r1.ebuild.K2pf6T" failed: Permission denied (13) rsync: delete_file: unlink(media-sound/qtractor/files/qtractor-0.9.1-qt-5.11.patch) failed: Permission denied (13) cannot delete non-empty directory: media-sound/qtractor/files metadata/Manifest.gz metadata/timestamp metadata/timestamp.chk metadata/timestamp.commit metadata/timestamp.x metadata/dtd/timestamp.chk metadata/glsa/Manifest metadata/glsa/timestamp.chk metadata/md5-cache/Manifest.gz metadata/md5-cache/app-crypt/Manifest.gz metadata/md5-cache/app-crypt/hashcat-utils-1.9 deleting metadata/md5-cache/dev-db/pspg-1.1.0 deleting metadata/md5-cache/dev-db/pspg-0.9.3 deleting metadata/md5-cache/dev-db/pspg-0.9.2 deleting metadata/md5-cache/dev-db/pspg-0.8.0 metadata/md5-cache/dev-db/Manifest.gz metadata/md5-cache/dev-python/Manifest.gz metadata/md5-cache/dev-python/pygobject-3.28.3 metadata/md5-cache/media-libs/Manifest.gz metadata/md5-cache/media-libs/tiff-4.0.9-r4 metadata/news/Manifest metadata/news/timestamp.chk metadata/xml-schema/timestamp.chk net-im/telegram-desktop-bin/files/telegram-desktop-bin-r1 rsync: mkstemp "/scratch/usr/portage/net-im/telegram-desktop-bin/files/.telegram-desktop-bin-r1.GIA1e9" failed: Permission denied (13) profiles/Manifest.gz profiles/arch/powerpc/use.mask virtual/cargo/Manifest virtual/cargo/cargo-1.28.0.ebuild rsync: mkstemp "/scratch/usr/portage/virtual/cargo/.Manifest.W4vHMl" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/virtual/cargo/.cargo-1.28.0.ebuild.7ffFsr" failed: Permission denied (13) rsync: delete_file: unlink(x11-libs/pango/files/1.42.3-pango-view.1.in) failed: Permission denied (13) x11-libs/pango/files/1.42.4-pango-view.1.in rsync: mkstemp "/scratch/usr/portage/x11-libs/pango/files/.1.42.4-pango-view.1.in.VnxFCx" failed: Permission denied (13) x11-themes/numix-gtk-theme/Manifest x11-themes/numix-gtk-theme/numix-gtk-theme-2.6.7.ebuild rsync: mkstemp "/scratch/usr/portage/x11-themes/numix-gtk-theme/.Manifest.03IZ9D" failed: Permission denied (13) rsync: mkstemp "/scratch/usr/portage/x11-themes/numix-gtk-theme/.numix-gtk-theme-2.6.7.ebuild.8MwkHK" failed: Permission denied (13) Number of files: 162,755 (reg: 135,244, dir: 27,511) Number of created files: 18 (reg: 17, dir: 1) Number of deleted files: 8 (reg: 8) Number of regular files transferred: 68 Total file size: 218.86M bytes Total transferred file size: 1.49M bytes Literal data: 1.49M bytes Matched data: 0 bytes File list size: 262.13K File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 5.81M Total bytes received: 35.58K sent 5.81M bytes received 35.58K bytes 779.45K bytes/sec total size is 218.86M speedup is 37.44 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3] q: Updating ebuild cache for /scratch/usr/portage ... q: Finished 35953 entries in 0.406176 seconds * IMPORTANT: 1 news items need reading for repository 'gentoo'. * Use eselect news read to view new items. Action: sync for repo: gentoo, returned code = 23 * Fetching remote list... * Fetch Ok * Syncing selected overlay(s)... * Running Git... # ( cd /var/lib/layman/haskell && /usr/bin/git pull ) Already up to date. * Running Git... # ( cd /var/lib/layman/vmware && /usr/bin/git pull ) Already up to date. * * Succeeded: * ------ * Successfully synchronized overlay "haskell". * Successfully synchronized overlay "vmware". * #
# emerge --info Portage 2.3.49 (python 2.7.15-final-0, default/linux/amd64/17.0, gcc-8.2.0, glibc-2.27-r4, 4.18.7-default-pciehp x86_64) ================================================================= System uname: Linux-4.18.7-default-pciehp-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.6 KiB Mem: 16365812 total, 3743752 free KiB Swap: 26853460 total, 26853460 free Timestamp of repository gentoo: Tue, 18 Sep 2018 21:00:01 +0000 Head commit of repository gentoo: 16be8cdec7c0cc3e0a0a891aabcf36fc2f432472 sh bash 4.4_p23 ld GNU ld (Gentoo 2.30 p3) 2.30.0 app-shells/bash: 4.4_p23::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.28.9999::gentoo dev-lang/python: 2.7.15::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo, 3.7.0::gentoo dev-util/cmake: 3.12.0::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.36::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15.1-r1::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.30-r3::gentoo, 2.31.1::gentoo sys-devel/gcc: 4.3.6-r1::gentoo, 4.4.7::gentoo, 4.7.4::gentoo, 4.9.4::gentoo, 5.4.0-r3::gentoo, 6.3.0::gentoo, 7.3.0-r3::gentoo, 8.2.0-r2::gentoo sys-devel/gcc-config: 1.9.1::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.27-r4::gentoo Repositories: gentoo location: /scratch/usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 science location: /scratch/mmokrejs/proj/sci masters: gentoo priority: 0 layman location: /var/lib/layman masters: gentoo priority: 1 x-portage location: /usr/local/portage masters: gentoo priority: 2 haskell location: /var/lib/layman/haskell masters: gentoo priority: 50 vmware location: /var/lib/layman/vmware masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 skype-eula Nero-EULA-US AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x OPERA-2014 RAR Intel-SDP intel-ucode-20180807" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -mpclmul -mpopcnt -march=native -ftree-vectorize" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.2/conf /usr/share/maven-bin-3.3/conf /var/bind /var/lib/hsqldb /var/spool/torque" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -mpclmul -mpopcnt -march=native -ftree-vectorize" DISTDIR="/scratch/usr/portage/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.wheel.sk/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_US en_GB en cs" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/scratch/var/tmp" USE="R X acpi alsa amd64 amr apache apache2 asm avx berkdb bluetooth boost bzip2 cairo cgi cli coin consolekit cracklib crypt cryptlib cryptsetup cups cxx dbus device-mapper dhcp directfb dri drm dvd emboss encode fax fbcon ffmpeg flac fontconfig fortran fuse gbm gcrypt gd gdbm geoip geolocation gimp glpk gmp gnutls gpm gps gtk hal hpijs hwdb iconv id3tag imaging innodb inotify java javafx javascript jce jpeg jpg js jscript keymap ladspa lame lapack laptop lcms libnotify libtirpc lm_sensors mad matroska mmx modemmanager modules mp3 multicore multilib multimedia mysql ncurses networkmanager nfs nls nptl nptlonly nscd ntfs ntfsdecrypt ntfsprogs objc ocr ogg opengl openmp pam parport pcre pcre16 pdf pdfimport pdl perl php pkcs11 plplot png policykit polkit postproc postscript ppds ppp pppd pptx python qt3support qt4 qt5 readline rendering resolvconf samba scanner sctp seccomp server session sha512 slideshow sna sndfile sparsehash sqlite sse sse2 sse3 sse4_1 sse4_2 ssh ssh-agent ssl sslv2 sslv3 ssse3 startup-notification suexec svg syslog tcl tcpd threads tiff tk truetype twolame udev unicode upower usb v4l v4l2 vim-syntax vnc wavpack wifi x11 xattr xcb xml xorg xrandr xv xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="alias authz_host auth_basic auth_digest cgi cgid deflate dir env filter include info mem_cache mime mime_magic negotiation remoteip setenvif status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="aivdm ashtech earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 navcom ntrip oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tnt tripmate tsip ublox fury geostar nmea0183 nmea2000 passthrough" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en-US en en-GB cs" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby20 ruby21 ruby23 ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="vesa vmware fbdev intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS #
Created attachment 547260 [details] file/dir listings
This looks like a duplicate of bug 661834. You need to chown the files to have a consistent owner, so that FEATURES=usersync will work. This should do it: chown -R portage:portage /scratch/usr/portage
Thank you for your analysis, your are right it it merely a dupe of the mentioned issue. But, why do I have to taky any action at all? Why FEATURES=usersync is needed? The host is running Gentoo for about 6 years so what did change? And nevertheless I thought it always used rsync instead of git, for general users fetching a portage tree. Anyway, I can confirm some files are owned by root.root or by mmokrejs.root which is my login name. Hmm, I use mostly 'sudo su -' from within my personal account but does that cause that original login name is retained? I could provide output of: # ls -latrR /scratch/usr/portage | grep -v 'portage portage' | grep -v '^total' | grep -v '^/scratch' | grep -v '^$' | grep -v root After inspecting # ls -latrR /scratch/usr/portage | grep -v 'portage portage' | grep -v '^total' | grep -v '^/scratch' | grep -v '^$' | grep -v root | grep -v 'portage portage' I can confirm the mmokrejs.portage files are in /scratch/usr/portage/distfiles are I ndeed fetched them manually, so that is correct. Why some are stored under mmokrejs.portage is a mystery for me, although I am indeed a member of portage group. What am I doing wrong, Zac? I will run the 'chown -R' command but am I just fixing results caused by a teporary issue which has been fixed meanwhile in emerge or is that my own ignorance?
(In reply to Martin Mokrejš from comment #4) > Thank you for your analysis, your are right it it merely a dupe of the > mentioned issue. But, why do I have to taky any action at all? You should only have to take action if you have portage-2.3.42 or portage-2.3.43 installed at some point, since those were the only versions affected by bug 661834. > Why FEATURES=usersync is needed? FEATURES=usersync is normally enabled by default, since portage-2.1.12.14 (see bug 477682). > The host is running Gentoo for about 6 years so > what did change? Nothing changed unless you have one of the versions of portage installed that was affected bug 661834, either portage-2.3.42 or portage-2.3.43. > And nevertheless I thought it always used rsync instead of > git, for general users fetching a portage tree. That's correct, bug 661834 only involves rsync. > Anyway, I can confirm some files are owned by root.root or by mmokrejs.root > which is my login name. Hmm, I use mostly 'sudo su -' from within my > personal account but does that cause that original login name is retained? For FEATURES=usersync, the default assumption is that file ownership for all files is the same as the top-level directory (/scratch/usr/portage). If there is any deviation then you need to fix that with chown. You want the files to all be owned by a non-root user. > I can confirm the mmokrejs.portage files are in > /scratch/usr/portage/distfiles are I ndeed fetched them manually, so that is > correct. Why some are stored under mmokrejs.portage is a mystery for me, > although I am indeed a member of portage group. Just make sure that all files have the same ownership as the top-level /scratch/usr/portage directory, and it will work fine. > What am I doing wrong, Zac? I will run the 'chown -R' command but am I just > fixing results caused by a teporary issue which has been fixed meanwhile in > emerge or is that my own ignorance? It's just a temporary issue, triggered if you had portage-2.3.42 or portage-2.3.43 installed at some point, since those were the only versions affected by bug 661834.
Ok, excellent explanation, nevertheless I would have be even more happy if emerge in future told me for the very first case and hard exited with: "Just make sure that all files have the same ownership as the top-level /scratch/usr/portage directory, and it will work fine.". I think I am prone to break this when fetching manually some FETCH_RESTRICTed files and just moving them into distfiles/ dir while misusing my GID=portage rights to write in there or while misusing UID=root to push the file in there (I do both I think).
(In reply to Martin Mokrejš from comment #6) > Ok, excellent explanation, nevertheless I would have be even more happy if > emerge in future told me for the very first case and hard exited with: > "Just make sure that all files have the same ownership as the top-level > /scratch/usr/portage directory, and it will work fine.". That would be nice, but the thing is, it takes time to check the ownership of files, and it would be a waste of time for emerge to check them for every sync. > I think I am prone to break this when fetching manually some FETCH_RESTRICTed files and just > moving them into distfiles/ dir while misusing my GID=portage rights to > write in there or while misusing UID=root to push the file in there (I do > both I think). The distfiles are a separate thing (default location will change for bug 378603), and those files only have to be readable by the portage user.
(In reply to Zac Medico from comment #7) > (In reply to Martin Mokrejš from comment #6) > > Ok, excellent explanation, nevertheless I would have be even more happy if > > emerge in future told me for the very first case and hard exited with: > > "Just make sure that all files have the same ownership as the top-level > > /scratch/usr/portage directory, and it will work fine.". > > That would be nice, but the thing is, it takes time to check the ownership > of files, and it would be a waste of time for emerge to check them for every > sync. Actually, we could check for the exit code 23 from rsync, and output some kind of specialized message in that case.