Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 704256 - sys-apps/portage-2.3.84 - cannot open /usr/portage/profiles/categories: Permission denied
Summary: sys-apps/portage-2.3.84 - cannot open /usr/portage/profiles/categories: Permi...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks: 701268 706142
  Show dependency tree
 
Reported: 2019-12-30 11:21 UTC by yesi
Modified: 2020-01-23 07:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge screen log (emerge_screen.log,3.23 KB, text/plain)
2019-12-30 11:21 UTC, yesi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yesi 2019-12-30 11:21:32 UTC
Created attachment 601834 [details]
emerge screen log

Hi,

I met lastly some trouble to emerge, eix-update, etc...
I created a ticket : 
https://forums.gentoo.org/viewtopic-t-1105478.html

Somebody met the same trouble : 
https://forums.gentoo.org/viewtopic-t-1105604.html

I have a local miroir and sync only with "web rsync" with : 
emerge-webrsync ; echo && eix-update ; echo && emerge -uDavN @world

=================================================================
                        Package Settings
=================================================================

sys-apps/portage-2.3.84::gentoo was built with the following:
USE="(ipc) native-extensions rsync-verify (selinux) (xattr) -build -doc -epydoc -gentoo-dev" ABI_X86="(64)" PYTHON_TARGETS="python3_6 (-pypy) (-python2_7) -python3_5 -python3_7 -python3_8"


>> eix-update

Reading Portage settings...
Building database (/var/cache/eix/portage.eix)...
cannot open /usr/portage/profiles/categories: Permission non accordée


>> ls -lZ /usr/portage/profiles/categories
-rw-r--r--. 1 root root system_u:object_r:portage_ebuild_t 1810 11 oct. 17:40 /usr/portage/profiles/categories

>> ls -lZd /usr/portage/profiles
drwxr-xr-x. 1 root root system_u:object_r:portage_ebuild_t 456 17 déc. 14:48 /usr/portage/profiles

>> ls -lZd /usr/portage
drwx------. 1 root root system_u:object_r:portage_ebuild_t 3634 17 déc. 14:47 /usr/portage

>> ls -lZd /usr
drwxr-xr-x. 1 root root system_u:object_r:usr_t 142 12 juin 2019 /usr

>> su portage -s /bin/bash -c "ls -la /usr/portage/profiles/categories"
ls: impossible d'accéder à '/usr/portage/profiles/categories': Permission non accordée

>> emerge --info
Portage 2.3.82 (python 3.6.9-final-0, default/linux/amd64/17.1/hardened/selinux, gcc-9.2.0, glibc-2.29-r7, 5.4.2-gentoo x86_64)
=================================================================
System uname: Linux-5.4.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-5557U_CPU_@_3.10GHz-with-gentoo-2.6
KiB Mem: 16269192 total, 13352044 free
KiB Swap: 8388604 total, 8388604 free
Timestamp of repository gentoo: Tue, 17 Dec 2019 00:45:01 +0000
Head commit of repository gentoo: 2e48f9575369612bcf342dd8d3cd307773cf7c73
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
ccache version 3.7.4 [enabled]
app-shells/bash: 4.4_p23-r1::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.30.1::gentoo
dev-lang/python: 2.7.17::gentoo, 3.6.9::gentoo, 3.7.5-r1::gentoo
dev-util/ccache: 3.7.4::gentoo
dev-util/cmake: 3.14.6::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.6-r1::gentoo
sys-apps/openrc: 0.41.2::gentoo
sys-apps/sandbox: 2.13::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils: 2.32-r1::gentoo
sys-devel/gcc: 9.2.0-r2::gentoo
sys-devel/gcc-config: 2.1::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc: 2.29-r7::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1

local
location: /usr/local/portage
masters: gentoo
priority: 10

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fforce-addr -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -fforce-addr -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4.0 --keep-going=y --with-bdeps=y --complete-graph"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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-docompress binpkg-dostrip binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install
preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="my_URL"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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="/var/tmp"
USE="X acl amd64 branding bzip2 chroot consolekit crypt cryptsetup cxx ffmpeg gnutls hardened iconv icu ipv6 jpeg libtirpc logrotate lzma mmx modplug multilib ncurses nls nptl opengl openmp pam pax_kernel pcre perl pic pie png python readl
ine seccomp secure_delete selinux snmp split-usr sse sse2 ssl ssp symlink tcpd unicode wavpack webrsync-gpg xattr xml xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10
k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_
dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_co
nfig logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="load memory syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 m
mx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm
104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_E
XTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS
="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="arm x86_64 sparc" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_C
ARDS="intel i915" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS 


>> mount -v 

proc on /proc type proc (rw,nosuid,nodev,noexec,relatime,hidepid=2)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=10240k,nr_inodes=2030998,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,seclabel)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,seclabel,mode=755)
/dev/mapper/gnu-rootfs on / type btrfs (rw,noatime,seclabel,compress=lzo,ssd,discard,space_cache,autodefrag,subvolid=257,subvol=/@)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime,seclabel)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime,seclabel)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc)
none on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,seclabel,nsdelegate)
cpuset on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,cpuset)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,cpu)
cpuacct on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,cpuacct)
blkio on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,blkio)
memory on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,memory)
devices on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,devices)
freezer on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,freezer)
net_cls on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,net_cls)
perf_event on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,perf_event)
net_prio on /sys/fs/cgroup/net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,net_prio)
hugetlb on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,hugetlb)
pids on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,pids)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime,seclabel)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
/dev/mapper/gnu-rootfs on /home type btrfs (rw,noatime,seclabel,compress=lzo,ssd,discard,space_cache,autodefrag,subvolid=259,subvol=/@home)
/dev/mapper/gnu-rootfs on /boot type btrfs (ro,nosuid,nodev,noexec,noatime,seclabel,compress=lzo,ssd,discard,space_cache,autodefrag,subvolid=258,subvol=/@boot)
/dev/mapper/gnu-rootfs on /opt type btrfs (rw,nosuid,nodev,noatime,seclabel,compress=lzo,ssd,discard,space_cache,autodefrag,subvolid=261,subvol=/@opt)
/dev/mapper/gnu-rootfs on /var type btrfs (rw,nosuid,nodev,noexec,noatime,seclabel,compress=lzo,ssd,discard,space_cache,autodefrag,subvolid=263,subvol=/@var)
/dev/mapper/gnu-rootfs on /var/log type btrfs (rw,nosuid,nodev,noexec,noatime,seclabel,compress=lzo,ssd,discard,space_cache,autodefrag,subvolid=264,subvol=/@var_log)
/dev/mapper/gnu-rootfs on /var/tmp type btrfs (rw,nosuid,nodev,noatime,seclabel,compress=lzo,ssd,discard,space_cache,autodefrag,subvolid=265,subvol=/var/tmp)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,noatime,rootcontext=system_u:object_r:tmp_t,seclabel,size=4194304k)


>> fstab
UUID=5F4C-7016                                  /boot/efi               vfat    noauto,noatime 1 2
UUID=a51a0128-2805-460f-a09c-2a7dfd3947b0       none                    swap    sw 0 0
UUID=d20e1832-cb84-40f1-aff9-856700f28c7c       /                       btrfs   defaults,ssd,discard,space_cache,noatime,compress=lzo,autodefrag,subvol=/@ 0 0
UUID=d20e1832-cb84-40f1-aff9-856700f28c7c       /home                   btrfs   defaults,ssd,discard,space_cache,noatime,compress=lzo,autodefrag,subvol=/@home 0 0
UUID=d20e1832-cb84-40f1-aff9-856700f28c7c       /boot                   btrfs   defaults,ssd,discard,space_cache,noatime,compress=lzo,autodefrag,subvol=/@boot,nosuid,nodev,noexec,ro 1 0
UUID=d20e1832-cb84-40f1-aff9-856700f28c7c       /opt                    btrfs   defaults,ssd,discard,space_cache,noatime,compress=lzo,autodefrag,subvol=/@opt,nosuid,nodev 0 0
UUID=d20e1832-cb84-40f1-aff9-856700f28c7c       /var                    btrfs   defaults,ssd,discard,space_cache,noatime,compress=lzo,autodefrag,subvol=/@var,nosuid,nodev,noexec 0 0
UUID=d20e1832-cb84-40f1-aff9-856700f28c7c       /var/log                btrfs   defaults,ssd,discard,space_cache,noatime,compress=lzo,autodefrag,subvol=/@var_log,nosuid,nodev,noexec 0 0
UUID=d20e1832-cb84-40f1-aff9-856700f28c7c       /var/tmp                btrfs   defaults,ssd,discard,space_cache,noatime,compress=lzo,autodefrag,subvol=/var/tmp,nosuid,nodev 0 0
proc                                            /proc                   proc    nodev,nosuid,noexec,hidepid=2 0 0
tmpfs                                           /tmp                    tmpfs   rw,nosuid,noatime,nodev,size=4G,mode=1777,noexec,rootcontext=system_u:object_r:tmp_t 0 0
tmpfs                                           /run                    tmpfs   rw,mode=0755,nosuid,nodev,noexec,rootcontext=system_u:object_r:var_run_t 0 0


>> dmesg -l err
[  729.689439] systemd-udevd[1443]: loop2: Failed to add device '/dev/loop2' to watch: Permission denied
[  729.689601] systemd-udevd[1442]: loop5: Failed to add device '/dev/loop5' to watch: Permission denied
[  729.689843] systemd-udevd[1446]: loop4: Failed to add device '/dev/loop4' to watch: Permission denied
[  729.689905] systemd-udevd[1438]: loop1: Failed to add device '/dev/loop1' to watch: Permission denied
[  729.690207] systemd-udevd[1442]: loop7: Failed to add device '/dev/loop7' to watch: Permission denied
[  729.690211] systemd-udevd[1443]: loop6: Failed to add device '/dev/loop6' to watch: Permission denied
[  729.690284] systemd-udevd[1456]: loop0: Failed to add device '/dev/loop0' to watch: Permission denied
[  729.690823] systemd-udevd[1449]: loop3: Failed to add device '/dev/loop3' to watch: Permission denied


That worked temporary if i do :
chmod 0755 /usr/portage

But, when i boot again, and do the sync :
emerge-webrsync ; echo && eix-update ; echo && emerge -uDavN @world
the problem came back.
Comment 1 Ionen Wolkens gentoo-dev 2019-12-30 11:42:04 UTC
I tested it and long story short, emerge-webrsync been creating a /var/db/repos/gentoo or /usr/portage that has 0700 permissions rather than 0755. Or at least on ~unstable with default repos.conf (I never tried stable).

Doing a normal non-web emerge --sync fixes the permission which likely been minimizing the issue for those that only used it for the initial sync.
Comment 2 yesi 2019-12-30 12:01:24 UTC
I can only do "emerge-webrsync" to a local miroir : only tcp/80,443 are allowed...
Comment 3 Stefan Wimmer 2019-12-30 13:44:13 UTC
I can confirm that behaviour on several of my hosts where I use `eix-sync -aw` which runs `emerge-webrsync`. Changing to 'eix-sync -a` does fix it but I feel this should be reported and fixed if possible.

emerge --info:
Portage 2.3.84 (python 3.6.10-final-0, default/linux/amd64/17.1, gcc-9.2.0, glibc-2.30-r3, 5.4.6-gentoo x86_64)
=================================================================
System uname: Linux-5.4.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-8700_CPU_@_3.20GHz-with-gentoo-2.6
KiB Mem:    16318532 total,   6384600 free
KiB Swap:    4194300 total,   4179964 free
Timestamp of repository gentoo: Sun, 29 Dec 2019 02:45:01 +0000
Head commit of repository gentoo: e9fa34fe1a645caef3955350adea8d4a53d1675f
sh bash 5.0_p11
ld GNU ld (Gentoo 2.33.1 p1) 2.33.1
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17::gentoo, 3.6.10::gentoo, 3.7.6::gentoo, 3.8.1::gentoo
dev-util/cmake:           3.16.2-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.1-r2::gentoo
sys-devel/binutils:       2.33.1::gentoo
sys-devel/gcc:            9.2.0-r3::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

0x4d4c
    location: /var/lib/layman/0x4d4c
    sync-type: laymansync
    sync-uri: https://github.com/0x4d4c/gentoo-overlay.git
    masters: gentoo
    priority: 50

4nykey
    location: /var/lib/layman/4nykey
    sync-type: laymansync
    sync-uri: https://github.com/4nykey/4nykey.git
    masters: gentoo
    priority: 50

brother-overlay
    location: /var/lib/layman/brother-overlay
    sync-type: laymansync
    sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git
    masters: gentoo
    priority: 50

gnome
    location: /var/lib/layman/gnome
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/gnome.git
    masters: gentoo
    priority: 50

jorgicio
    location: /var/lib/layman/jorgicio
    sync-type: laymansync
    sync-uri: https://github.com/jorgicio/jorgicio-gentoo.git
    masters: gentoo
    priority: 50

mozilla
    location: /var/lib/layman/mozilla
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/mozilla.git
    masters: gentoo
    priority: 50

nightmare
    location: /var/lib/layman/nightmare
    sync-type: laymansync
    sync-uri: https://gitlab.com/r3lgar/nightmare.git
    masters: gentoo
    priority: 50

ros-overlay
    location: /var/lib/layman/ros-overlay
    sync-type: laymansync
    sync-uri: git://github.com/ros/ros-overlay.git
    masters: gentoo
    priority: 50

slyfox
    location: /var/lib/layman/slyfox
    sync-type: laymansync
    sync-uri: https://github.com/trofi/slyfox-gentoo
    masters: gentoo
    priority: 50

soft
    location: /var/lib/layman/soft
    sync-type: laymansync
    sync-uri: https://bitbucket.org/Soft/overlay
    masters: gentoo
    priority: 50

stefantalpalaru
    location: /var/lib/layman/stefantalpalaru
    sync-type: laymansync
    sync-uri: https://github.com/stefantalpalaru/gentoo-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @FREE brother-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --quiet-build=y --with-bdeps=y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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-docompress binpkg-dostrip binpkg-logs buildsyspkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.netcologne.de/gentoo/ rsync://mirror.leaseweb.com/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="--jobs=13"
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="/var/tmp"
USE="X aac acl alsa amd64 apache2 berkdb bzip2 cairo cli crypt cups cxx dri exif flac fortran gdbm gif gtk3 iconv ipv6 jpeg jpeg2k lcms libtirpc mp3 mp4 multilib ncurses nls nptl ogg opengl openmp pam pcre png readline seccomp split-usr ssl svg tcpd tiff truetype udev unicode vim-syntax vorbis webp x264 xattr zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel emu10k1" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Zac Medico gentoo-dev 2019-12-30 21:18:55 UTC
It looks like it must be a consequence of this commit, since rsync takes permissions from the temporary directory (if you don't have tarsync installed):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=fa0f8720e168c95bcd6a8bd57d5abf09c488fd32

commit fa0f8720e168c95bcd6a8bd57d5abf09c488fd32
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-12-09 09:26:55 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-12-09 09:28:50 +0000

    emerge-delta-webrsync: handle gentoo-YYYYMMDD directory name
    
    Bug: https://bugs.gentoo.org/693454
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 misc/emerge-delta-webrsync | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2019-12-30 21:30:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=605ae9eb6dae230d8bb967edbdd719c61a2b14b8

commit 605ae9eb6dae230d8bb967edbdd719c61a2b14b8
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-12-30 21:25:06 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-12-30 21:29:46 +0000

    emerge-webrsync: chmod 755 temp dir (bug 704256)
    
    Before the rsync call, chmod 755 the temporary directory so that the
    root directory of the repository will have appropriate permissions.
    
    Fixes: 92f4b283c86a ("emerge-webrsync: handle gentoo-YYYYMMDD directory name")
    Bug: https://bugs.gentoo.org/704256
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 bin/emerge-webrsync | 1 +
 1 file changed, 1 insertion(+)
Comment 6 Larry the Git Cow gentoo-dev 2019-12-30 21:36:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=82b29bdd12c1ea1002a455c98fa7958311b92ec3

commit 82b29bdd12c1ea1002a455c98fa7958311b92ec3
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-12-30 21:34:29 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-12-30 21:34:29 +0000

    emerge-delta-webrsync: chmod 755 temp dir (bug 704256)
    
    Before the rsync call, chmod 755 the temporary directory so that the
    root directory of the repository will have appropriate permissions.
    
    Fixes: fa0f8720e168 ("emerge-delta-webrsync: handle gentoo-YYYYMMDD directory name")
    Bug: https://bugs.gentoo.org/704256
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 misc/emerge-delta-webrsync | 1 +
 1 file changed, 1 insertion(+)
Comment 7 Larry the Git Cow gentoo-dev 2019-12-30 22:07:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5dbfc7c9cab7c59813d1c33b75d774d0bfd09ba2

commit 5dbfc7c9cab7c59813d1c33b75d774d0bfd09ba2
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-12-30 22:02:20 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-12-30 22:07:50 +0000

    sys-apps/portage: 2.3.84-r1 revbump for bug 704256
    
     #704256 emerge-webrsync: chmod 755 temp dir
    
    Bug: https://bugs.gentoo.org/701268
    Closes: https://bugs.gentoo.org/704256
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 sys-apps/portage/{portage-2.3.84.ebuild => portage-2.3.84-r1.ebuild} | 3 +++
 1 file changed, 3 insertions(+)
Comment 8 Larry the Git Cow gentoo-dev 2020-01-23 07:04:55 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=926daa64ce2932685e50c5b87ebe6e1f2578feb2

commit 926daa64ce2932685e50c5b87ebe6e1f2578feb2
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2020-01-23 06:54:10 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2020-01-23 07:04:32 +0000

    sys-apps/portage: Bump to version 2.3.85
    
     #615594 dosym: revert deprecated prefix compat
     #704256 emerge-webrsync: chmod 755 temp dir
     #704320 Add QA check for unresolved soname dependencies
     #704848 doebuild: export SANDBOX_LOG=${T}/sandbox.log
     #705986 solve pypy / pypy-exe dependency cycle
    
    Bug: https://bugs.gentoo.org/706142
    Bug: https://bugs.gentoo.org/615594
    Bug: https://bugs.gentoo.org/704256
    Bug: https://bugs.gentoo.org/704320
    Bug: https://bugs.gentoo.org/704848
    Bug: https://bugs.gentoo.org/705986
    Package-Manager: Portage-2.3.85, Repoman-2.3.20
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-2.3.85.ebuild | 276 +++++++++++++++++++++++++++++++++
 2 files changed, 277 insertions(+)