On 11/04/2016 15:15, Yuri K. Shatroff wrote: > Hi gentoo users, > > Got a strange problem. While emerging kde-plasma/kscreenlocker (as part > of upgrading to the brand new plasma desktop), the build fails with the > following error: > > * Applying kscreenlocker-5.4.90-no-SUID-no-GUID.patch ... > /var/tmp/portage/kde-plasma/kscreenlocker-5.6.2/temp/environment: line > 1217: > /var/portage/tree/kde-plasma/kscreenlocker/files/kscreenlocker-5.4.90-no-SUID-no-GUID.patch: > Permission denied > > I tried to run the ebuild manually and changed all permissions to a+w, > but to no avail. (The patch itself applied successfully from the command > line.) > I don't believe it's a permissions issue. There haven't been any such > issues before, and I just did a fresh eix-sync. Should I file a bug?
I have the same settings as you and kscreenlocker merges for me. Basic checks: ls -al all the files in /var/portage/tree/kde-plasma/kscreenlocker/files/ and parent directories. Make sure they are OK, especially look for literal question marks. then run "ebuild /var/portage/tree/kde-plasma/kscreenlocker/kscreenlocker-5.6.2 prepare" and see what's at line 1217 of /var/tmp/portage/kde-plasma/kscreenlocker-5.6.2/temp/environment plus a few lines above and below. This won't be executable permissions - ebuilds are sourced, not executed. I suspect file corruption. > > > The complete output: > > * Package: kde-plasma/kscreenlocker-5.6.2 > * Repository: gentoo > * Maintainer: k...@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux pam userland_GNU > * FEATURES: preserve-libs sandbox userpriv usersandbox >>>> Unpacking source... >>>> Unpacking kscreenlocker-5.6.2.tar.xz to > /var/tmp/portage/kde-plasma/kscreenlocker-5.6.2/work >>>> Source unpacked in /var/tmp/portage/kde-plasma/kscreenlocker-5.6.2/work >>>> Preparing source in > /var/tmp/portage/kde-plasma/kscreenlocker-5.6.2/work/kscreenlocker-5.6.2 > ... > * Applying kscreenlocker-5.4.90-no-SUID-no-GUID.patch ... > /var/tmp/portage/kde-plasma/kscreenlocker-5.6.2/temp/environment: line > 1217: > /var/portage/tree/kde-plasma/kscreenlocker/files/kscreenlocker-5.4.90-no-SUID-no-GUID.patch: > Permission denied > [ !! ] > * ERROR: kde-plasma/kscreenlocker-5.6.2::gentoo failed (prepare phase): > * patch -p1 failed with > /var/portage/tree/kde-plasma/kscreenlocker/files/kscreenlocker-5.4.90-no-SUID-no-GUID.patch > > * > * Call stack: > * ebuild.sh, line 133: Called src_prepare > * environment, line 3892: Called kde5_src_prepare > * environment, line 2853: Called cmake-utils_src_prepare > * environment, line 1075: Called _cmake_execute_optionally > 'src_prepare' > * environment, line 517: Called > enable_cmake-utils_src_prepare > * environment, line 1535: Called default_src_prepare > * phase-functions.sh, line 870: Called __eapi6_src_prepare > * environment, line 349: Called eapply > '/var/portage/tree/kde-plasma/kscreenlocker/files/kscreenlocker-5.4.90-no-SUID-no-GUID.patch' > > * environment, line 1282: Called _eapply_patch > '/var/portage/tree/kde-plasma/kscreenlocker/files/kscreenlocker-5.4.90-no-SUID-no-GUID.patch' > > * environment, line 1220: Called __helpers_die 'patch -p1 > failed with > /var/portage/tree/kde-plasma/kscreenlocker/files/kscreenlocker-5.4.90-no-SUID-no-GUID.patch' > > * isolated-functions.sh, line 117: Called die > * The specific snippet of code: > * die "$@" > * > > > emerge --info '=kde-plasma/kscreenlocker-5.6.2::gentoo' > > Portage 2.2.28 (python 2.7.11-final-0, default/linux/amd64/13.0, > gcc-4.9.3, glibc-2.22-r4, 4.5.0-gentoo x86_64) > ================================================================= > System Settings > ================================================================= > System uname: > Linux-4.5.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770_CPU_@_3.40GHz-with-gentoo-2.2 > > KiB Mem: 8190684 total, 2426472 free > KiB Swap: 16777212 total, 15952084 free > Timestamp of repository gentoo: Mon, 11 Apr 2016 12:45:01 +0000 > sh bash 4.3_p42-r2 > ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 > app-shells/bash: 4.3_p42-r2::gentoo > dev-java/java-config: 2.2.0-r3::gentoo > dev-lang/perl: 5.22.1::gentoo > dev-lang/python: 2.7.11-r2::gentoo, 3.4.3-r7::gentoo, > 3.5.1-r2::gentoo > dev-util/cmake: 3.5.1::gentoo > dev-util/pkgconfig: 0.29.1::gentoo > sys-apps/baselayout: 2.2::gentoo > sys-apps/openrc: 0.20.5::gentoo > sys-apps/sandbox: 2.10-r2::gentoo > sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo > sys-devel/automake: 1.13.4::gentoo, 1.14.1-r1::gentoo, > 1.15-r2::gentoo > sys-devel/binutils: 2.25.1-r1::gentoo > sys-devel/gcc: 4.9.3::gentoo, 5.3.0::gentoo > sys-devel/gcc-config: 1.8-r1::gentoo > sys-devel/libtool: 2.4.6-r2::gentoo > sys-devel/make: 4.1-r1::gentoo > sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers) > sys-libs/glibc: 2.22-r4::gentoo > Repositories: > > gentoo > location: /var/portage/tree > sync-type: rsync > sync-uri: rsync://rsync.ru.gentoo.org/gentoo-portage > priority: -1000 > sync-rsync-extra-opts: --no-p --chmod=g+w > > telred > location: /var/lib/layman/telred > masters: gentoo > priority: 50 > > ACCEPT_KEYWORDS="amd64 ~amd64" > ACCEPT_LICENSE="* -@EULA" > CBUILD="x86_64-pc-linux-gnu" > CFLAGS="-O2 -pipe" > CHOST="x86_64-pc-linux-gnu" > CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt > /usr/share/themes/oxygen-gtk/gtk-2.0" > 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="-O2 -pipe" > DISTDIR="/var/portage/distfiles" > EMERGE_DEFAULT_OPTS="--quiet-build --quiet-unmerge --keep-going" > FCFLAGS="-O2 -pipe" > FEATURES="assume-digests binpkg-logs config-protect-if-modified > distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch > preserve-libs protect-owned sandbox sfperms strict unknown-features-warn > unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" > FFLAGS="-O2 -pipe" > GENTOO_MIRRORS="http://distfiles.gentoo.org" > LANG="ru_RU.UTF-8" > LDFLAGS="-Wl,-O1 -Wl,--as-needed" > MAKEOPTS="-j6" > PKGDIR="/var/portage/packages" > PORTAGE_CONFIGROOT="/" > PORTAGE_RSYNC_EXTRA_OPTS="--no-p --chmod=g+w" > 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 alsa amd64 avx berkdb bzip2 cli cracklib cxx dbus dri fortran > gdbm iconv icu jpeg lzma mmx modules multilib ncurses nptl opengl openmp > pam pcre png qt3support qt5 readline seccomp session sqlite sse sse2 > sse3 sse4_1 ssl ssse3 tcpd udev unicode xorg zlib" ABI_X86="32 64" > 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="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" > APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets > stage tables krita karbon braindump author" CAMERAS="ptp2" > COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" > CPU_FLAGS_X86="mmx sse sse2 sse3 ssse3 sse4_1 avx" DRACUT_MODULES="lvm" > ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 > garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver > oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate > tnt ublox ubx" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="evdev keyboard > mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 > lb216 lcdm001 mtxorb ncurses text" > LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" > LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" > PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 > python3_5" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="vesa > 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, > PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, > USE_PYTHON > > -- Alan McKinnon alan.mckin...@gmail.com