Discussion:
strip: unable to copy file; reason: Permission denied
(too old to reply)
David E. Wheeler
2014-08-07 19:18:03 UTC
Permalink
Porters,

I’m working on a 5.20 build on CentOS 6.5, and keep seeing these warnings:

/usr/bin/strip: unable to copy file '/home/dwheeler/iov-perl/BUILDROOT/perl520-5.20.0-1.el6.x86_64/usr/local/perl520/lib/5.20.0/x86_64-linux-thread-multi/auto/Sys/Syslog/Syslog.so'; reason: Permission denied

56 of them! The files in question are read-only, no +w on them, so it’s understandable it would fail. Might there be a build ordering issue here, or is it something funky with my system?

Here's how I'm doing the build:

sh Configure -des \
-Dprefix=%{_prefix} \
-Dsiteprefix=%{_prefix} \
-Dsiteman1dir=%_prefix/share/man/man1 \
-Dsiteman3dir=%_prefix/share/man/man3 \
-Dvendorprefix=%{_prefix} \
-Dvendorman3dir=%{_prefix}/man/man3 \
-Dvendorman1dir=%{_prefix}/man/man1 \
-Duseshrplib \
-Dusemultiplicity \
-Duseithreads \
make %{?_smp_mflags}

_smp_mflags is set to "-j16".

Thanks,

David
Abigail
2014-08-08 08:49:17 UTC
Permalink
Post by David E. Wheeler
Porters,
/usr/bin/strip: unable to copy file '/home/dwheeler/iov-perl/BUILDROOT/perl520-5.20.0-1.el6.x86_64/usr/local/perl520/lib/5.20.0/x86_64-linux-thread-multi/auto/Sys/Syslog/Syslog.so'; reason: Permission denied
56 of them! The files in question are read-only, no +w on them, so it’s understandable it would fail. Might there be a build ordering issue here, or is it something funky with my system?
sh Configure -des \
-Dprefix=%{_prefix} \
-Dsiteprefix=%{_prefix} \
-Dsiteman1dir=%_prefix/share/man/man1 \
-Dsiteman3dir=%_prefix/share/man/man3 \
-Dvendorprefix=%{_prefix} \
-Dvendorman3dir=%{_prefix}/man/man3 \
-Dvendorman1dir=%{_prefix}/man/man1 \
-Duseshrplib \
-Dusemultiplicity \
-Duseithreads \
make %{?_smp_mflags}
_smp_mflags is set to "-j16".
An obvious question, but did you check your umask?



Abigail
David E. Wheeler
2014-08-09 22:22:04 UTC
Permalink
Post by Abigail
An obvious question, but did you check your umask?
It’s 0022.

D
David E. Wheeler
2014-08-20 05:48:47 UTC
Permalink
Post by David E. Wheeler
Post by Abigail
An obvious question, but did you check your umask?
It’s 0022.
Turns out this is an RPM thing.

https://bugzilla.redhat.com/show_bug.cgi?id=1131270

Best,

David

Loading...