Summary: | sys-apps/portage-2.3.84 - cannot open /usr/portage/profiles/categories: Permission denied | ||
---|---|---|---|
Product: | Portage Development | Reporter: | yesi <yesi> |
Component: | Unclassified | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | yesi |
Priority: | Normal | Keywords: | REGRESSION |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 701268, 706142 | ||
Attachments: | emerge screen log |
Description
yesi
2019-12-30 11:21:32 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. I can only do "emerge-webrsync" to a local miroir : only tcp/80,443 are allowed... 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 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(-) 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(+) 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(+) 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(+) 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(+) |