Re: pkg build @ COPR succeeds for F32 chroot, FAILS for F33. .spec issue, or problem in buildenv?

2021-01-16 Thread Fabio Valentini
On Sat, Jan 16, 2021 at 9:14 PM PGNet Dev  wrote:
>
> On 1/16/21 12:35 PM, PGNet Dev wrote:
> >  + /usr/lib/rpm/brp-strip /usr/bin/strip
> >  /usr/bin/strip: unable to copy file 
> > '/builddir/build/BUILDROOT/dhcpcd-9.4.0-0.pgnd_20210116_172904.fc33.x86_64/usr/local/dhcpcd/sbin/dhcpcd';
> >  reason: Permission denied
> >  error: Bad exit status from /var/tmp/rpm-tmp.3UY5yu (%install)

Other than the file path being weird (/usr/local/dhcpcd/sbin/dhcpcd
???) , have you tried looking at the file permissions on that file?
The error message sounds suspiciously like if the upstream build
system removed read or write access for root from it, or something
like that.
I'm not sure how that would be different on F33 than on F32, but it
can't hurt to check.

Fabio
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org


Re: pkg build @ COPR succeeds for F32 chroot, FAILS for F33. .spec issue, or problem in buildenv?

2021-01-16 Thread PGNet Dev

On 1/16/21 12:35 PM, PGNet Dev wrote:

 + /usr/lib/rpm/brp-strip /usr/bin/strip
 /usr/bin/strip: unable to copy file 
'/builddir/build/BUILDROOT/dhcpcd-9.4.0-0.pgnd_20210116_172904.fc33.x86_64/usr/local/dhcpcd/sbin/dhcpcd';
 reason: Permission denied
 error: Bad exit status from /var/tmp/rpm-tmp.3UY5yu (%install)



disabling stripping in the rpm spec by adding

%global __os_install_post %{nil}

per,

 "Stripping Binary files in rpmbuild
"
   
https://livecipher.blogspot.com/2012/06/disable-binary-stripping-in-rpmbuild.html


gets past the problem ... both F32 & F33 chroot target builds now succeed

https://copr.fedorainfracloud.org/coprs/pgfed/dhcpcd/build/1885367/

So that's a workaround.

As to _why_ strip has an issue on F33 chroot, dunno yet.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org


pkg build @ COPR succeeds for F32 chroot, FAILS for F33. .spec issue, or problem in buildenv?

2021-01-16 Thread PGNet Dev

 I'm building a pkg @ COPR, 'dhcpcd',

https://copr.fedorainfracloud.org/coprs/pgfed/dhcpcd/build/1885349/

for both F32 & F33 chroot targets.

The F32 build succeeds, pkg installs & execs OK,


https://download.copr.fedorainfracloud.org/results/pgfed/dhcpcd/fedora-32-x86_64/01885349-dhcpcd/builder-live.log.gz

The concurrent F33 build, with same .spec, FAILs,


https://download.copr.fedorainfracloud.org/results/pgfed/dhcpcd/fedora-33-x86_64/01885349-dhcpcd/builder-live.log.gz

@

...
install -m 0444 dhcpcd-run-hooks.8 
/builddir/build/BUILDROOT/dhcpcd-9.4.0-0.pgnd_20210116_172904.fc33.x86_64/usr/local/dhcpcd/share/man/man8
make[1]: Leaving directory 
'/builddir/build/BUILD/dhcpcd-dhcpcd-9.4.0/hooks'
+ /usr/bin/mkdir -p 
/builddir/build/BUILDROOT/dhcpcd-9.4.0-0.pgnd_20210116_172904.fc33.x86_64/usr/local/etc/dhcpcd
+ find 
/builddir/build/BUILDROOT/dhcpcd-9.4.0-0.pgnd_20210116_172904.fc33.x86_64 -name 
'*.la' -delete -print
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
/usr/bin/strip: unable to copy file 
'/builddir/build/BUILDROOT/dhcpcd-9.4.0-0.pgnd_20210116_172904.fc33.x86_64/usr/local/dhcpcd/sbin/dhcpcd';
 reason: Permission denied
error: Bad exit status from /var/tmp/rpm-tmp.3UY5yu (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.3UY5yu (%install)
Finish: rpmbuild dhcpcd-9.4.0-0.pgnd_20210116_172845.fc33.src.rpm
Finish: build phase for dhcpcd-9.4.0-0.pgnd_20210116_172845.fc33.src.rpm
INFO: chroot_scan: 3 files copied to 
/var/lib/copr-rpmbuild/results/chroot_scan
INFO: 
/var/lib/mock/fedora-33-x86_64-1610818126.163401/root/var/log/dnf.rpm.log

/var/lib/mock/fedora-33-x86_64-1610818126.163401/root/var/log/dnf.librepo.log
/var/lib/mock/fedora-33-x86_64-1610818126.163401/root/var/log/dnf.log
ERROR: 
Exception(/var/lib/copr-rpmbuild/results/dhcpcd-9.4.0-0.pgnd_20210116_172845.fc33.src.rpm)
 Config(fedora-33-x86_64) 0 minutes 27 seconds
INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results
INFO: Cleaning up build root ('cleanup_on_failure=True')
Start: clean chroot
INFO: unmounting tmpfs.
Finish: clean chroot
INFO: unmounting tmpfs.
ERROR: Command failed:
# /usr/bin/systemd-nspawn -q -M 1e25f0a21cae4984b852a89713f1da74 -D 
/var/lib/mock/fedora-33-x86_64-1610818126.163401/root -a -u mockbuild --capability=cap_ipc_lock 
--rlimit=RLIMIT_NOFILE=10240 --capability=cap_ipc_lock 
--bind=/tmp/mock-resolv.qfqx7vr9:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/loop-control 
--bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 
--bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 
--bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash 
--setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin 
--setenv=PROMPT_COMMAND=printf "\033]0;\007" 
--setenv=PS1= \s-\v\$  --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c 
/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/dhcpcd.spec

Copr build error: Build failed

So far, I've no idea what F33-chroot-specific issue is causing the problem, 
whether something in my .spec, or in the COPR build env.

Any hints/suggestions as to the cause, and a fix?
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org