Re: [gentoo-user] emerge kde-plasma/kscreenlocker: permission denied [SOLVED]

2016-04-11 Thread Yuri K. Shatroff

11.04.2016 17:09, Alan McKinnon wrote:

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.


Alan, thanks for your quick reply!


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.


Actually, I started to panic too early. I logged into the `portage` user 
and it turned out that the whole /var/portage/tree/kde-plasma directory 
was inaccessible to it due to 0720 permissions (I have set up rsync to 
use my own user and add g+w perms to `portage` group), but apparently 
that dir had 0700 on the rsync mirror and g+w isn't just enough :)


So the problem was solved by chmod'ing the kde-plasma dir to g+rwx. As 
usual, an easy solution is easily overlooked.


Sorry for the noise.

--
Regards,
Yuri K. Shatroff



Re: [gentoo-user] emerge kde-plasma/kscreenlocker: permission denied

2016-04-11 Thread Alan McKinnon
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 +
> 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:  

[gentoo-user] emerge kde-plasma/kscreenlocker: permission denied

2016-04-11 Thread Yuri K. Shatroff

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?



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 +
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