jeroen@misha ~ $ FEATURES='-userpriv -usersandbox -sandbox -distlocks -ebuild-locks' PORTAGE_TMPDIR=~ ebuild .../portage/dev-python/m2crypto/m2crypto-0.31.0.ebuild clean [Errno 1] Operation not permitted: b'/home/jeroen/portage/.dev-python.portage_lockfile': chown('/home/jeroen/portage/.dev-python.portage_lockfile', -1, 250) Cannot chown a lockfile: '/home/jeroen/portage/.dev-python.portage_lockfile' Group IDs of current user: 10 14 16 18 19 27 35 85 100 [Errno 1] Operation not permitted: b'/home/jeroen/portage/dev-python/.m2crypto-0.31.0.portage_lockfile': chown('/home/jeroen/portage/dev-python/.m2crypto-0.31.0.portage_lockfile', -1, 250) Cannot chown a lockfile: '/home/jeroen/portage/dev-python/.m2crypto-0.31.0.portage_lockfile' Group IDs of current user: 10 14 16 18 19 27 35 85 100 [Errno 1] Operation not permitted: b'/home/jeroen/portage/.dev-python.portage_lockfile': chown('/home/jeroen/portage/.dev-python.portage_lockfile', -1, 250) Cannot chown a lockfile: '/home/jeroen/portage/.dev-python.portage_lockfile' Group IDs of current user: 10 14 16 18 19 27 35 85 100 jeroen@misha ~ $ id uid=1000(jeroen) gid=100(users) groups=100(users),10(wheel),14(uucp),16(cron),18(audio),19(cdrom),27(video),35(games),85(usb) Not quite bug #389893. I would think that after disabling enough FEATURES it should be possible to run ebuild(1) without it assuming elevated privileges. Sun Dec 30 15:30:37 CET 2018 emerge --info Portage 2.3.51 (python 3.6.5-final-0, default/linux/x86/17.0, gcc-7.3.0, glibc-2.27-r6, 4.14.85-gentoo-JeR i686) ================================================================= System uname: Linux-4.14.85-gentoo-JeR-i686-Intel-R-_Pentium-R-_4_CPU_2.60GHz-with-gentoo-2.6 KiB Mem: 3078016 total, 136668 free KiB Swap: 1060284 total, 1058484 free Timestamp of repository gentoo: Sun, 30 Dec 2018 03:45:01 +0000 Head commit of repository gentoo: 696373300f73d1874121ba9e2b4b02f89d4d4c6a sh bash 4.4_p12 ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1 distcc 3.2rc1 i686-pc-linux-gnu [disabled] app-shells/bash: 4.4_p12::gentoo dev-lang/perl: 5.24.3-r1::gentoo dev-lang/python: 2.7.15::gentoo, 3.6.5::gentoo dev-util/cmake: 3.9.6::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.38.3-r1::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.13.4::gentoo, 1.14.1::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.26.1::gentoo, 2.28-r2::gentoo, 2.30-r4::gentoo sys-devel/gcc: 7.3.0-r3::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.27-r6::gentoo Repositories: gentoo location: /aches/gentoo/portage sync-type: rsync sync-uri: rsync://rsync.de.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 JeR location: /aches/gentoo/local masters: gentoo priority: -100 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -g -pipe -march=i686 -Wall" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/distcc/bin /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.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -g -pipe -march=i686 -Wall" DISTDIR="/aches/gentoo/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask=n --keep-going" 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 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news notitles parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.leaseweb.com/gentoo/ " LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en nl fy" MAKEOPTS="-j1" PKGDIR="/aches/gentoo/packages/misha" 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="/home/jeroen" USE="3dnow 3dnowext a52 aac aalib alsa amr apache2 apng artist-screen asf audiofile bash-completion berkdb bl bonobo boost branding bzip2 cairo caps cdda cdio cdparanoia cgi chroot cli colors consolekit cpudetection cracklib crypt cscope cups curl custom-cflags cxx d dbus dga dillo dlloader dri dts dv edl egl elf encode fame fastbuild fbcon ffmpeg flac flash fontconfig foomaticdb fortran fpx freetype gdbm ggi gimpprint glut gmp gnokii gnutls gpm graphite graphviz gs hfs iconv idn ieee1394 imap imapc imlib inkjar introspection ipv6 javascript jbig jingle jpeg jpeg2k ladspa lcms libcaca libtirpc live lm_sensors logrotate lyrics-screen lzma lzo mad matroska mjpeg mmx mmxext mng modplug mozilla mozsvg mozxmlterm multislot musepack nas natspec ncurses nethack network network-cron nfs nls nptl nsplugin odk offensive ogg opengl openmp pam pcre pcre16 pda pdf physfs pic pie png policykit portaudio qt5 readline real rtc samba screenshot seccomp server sftplogging slang smux song-screen sox speex spell sse ssl svg sysfs tcl tcpd tetex tga theora threads tiff tk truetype udev unicode usb userlocales v4l v4l2 vcd vidix vlm vorbis winbind x264 x86 xanim xcb xcomposite xface xine xkb xml xml2 xmlreader xosd xsl xvid zlib" ABI_X86="32" ALSA_CARDS="emu10k1 via82xx" 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 plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse wacom" KERNEL="linux" L10N="en nl fy" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev" 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, LANG, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=89de8064e8d186a7a001dd1f2f5c486c64f4104f commit 89de8064e8d186a7a001dd1f2f5c486c64f4104f Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2018-12-31 05:23:29 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2018-12-31 05:25:06 +0000 locks: chown lockfiles only if permitted (bug 674090) Reported-by: Jeroen Roovers <jer@gentoo.org> Bug: https://bugs.gentoo.org/674090 Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/portage/locks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
I think that one commit should suppress all of the error messages shown in comment #0. Thanks!
OK, so it was not a configuration error on my side.
I've experienced this with portage-2.3.60 when using a DISTFILES folder mounted via SSHFS. Reverting to portage-2.3.51-r1 fixed it for me.
(In reply to jannis from comment #4) > I've experienced this with portage-2.3.60 when using a DISTFILES folder > mounted via SSHFS. Reverting to portage-2.3.51-r1 fixed it for me. Please report a separate issue for SSHFS.
(In reply to Zac Medico from comment #5) > (In reply to jannis from comment #4) > > I've experienced this with portage-2.3.60 when using a DISTFILES folder > > mounted via SSHFS. Reverting to portage-2.3.51-r1 fixed it for me. > > Please report a separate issue for SSHFS. Reported as bug 678218.