On Mon, Aug 03, 2020 at 10:46:33PM +0100, Richard W.M. Jones wrote: > On Mon, Aug 03, 2020 at 10:42:01PM +0100, Richard W.M. Jones wrote: > > I can't reproduce this locally but it happens in Koji reliably enough: > > > > + /usr/lib/rpm/brp-strip /usr/bin/strip > > /usr/bin/strip: unable to copy file '/builddir/build/BUILDROOT/ocaml-omake-0.10.3-27.fc33.x86_64/usr/bin/omake'; reason: Permission denied > > error: Bad exit status from /var/tmp/rpm-tmp.5A3ApT (%install) > > After updating to more Rawhide I _am_ able to reproduce it. It seems > to be caused because the binary is installed 0555: > > -r-xr-xr-x. 1 rjones rjones 8042912 Aug 3 22:41 /home/rjones/rpmbuild/BUILDROOT/ocaml-omake-0.10.3-27.fc33.x86_64/usr/bin/omake > > However nothing has changed in this package for years (last rebase was > in Nov 2017) but apparently strip didn't have a problem before now. > > I was able to work around it by adding an explicit > > %install > make install \ > INSTALL_ROOT=$RPM_BUILD_ROOT > +chmod 0755 $RPM_BUILD_ROOT%{_bindir}/omake > > so I guess that "fixes" it, but why? > I saw a similar randomly occuring issue when a spec Source file was copied into the %buildroot. It turned out that the Source file was created without a write bit when unpacking a source package. Probably due to an unexpected umask on a builder. My solution was using "install -m" instead of "cp -a". -- Petr
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx