Re: F34 pkg.spec rpmbuild OK on local dev; same spec fails @ my COPR. why?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,

On 5/13/21 6:06 PM, Sérgio Basto wrote:

mock -r fedora-34-x86_64 --rebuild  lua-resty-luajit2-git.HEAD-0.pgnd_20210513_212639.fc34.src.rpm
also fails in my machine, %forgesetup -z 0 is where it fails

hm.  whereas a non-isolated, local rpmbuild works, as per my OP,

a *mock* build here fails similarly to @ COPR:

wget https://download.copr.fedorainfracloud.org/results/pgfed/nginx-mainline/fedora-34-x86_64/02184528-lua-resty-luajit2/lua-resty-luajit2-git.HEAD-0.pgnd_20210513_212639.fc34.src.rpm

mock \
 -r fedora-34-x86_64 \
 --rebuild \
 --addrepo=https://download.copr.fedorainfracloud.org/results/pgfed/pgnd-rpmbuild-macros/fedora-34-x86_64 \
./lua-resty-luajit2-git.HEAD-0.pgnd_20210513_212639.fc34.src.rpm

	...
	Packaging variables read or set by %forgemeta
	forgeurl0:         https://github.com/openresty/luajit2
	forgesource0:      https://github.com/openresty/luajit2/archive/v2.1-agentzh/luajit2-2.1-agentzh.tar.gz
	forgesetupargs0:   -n luajit2-2.1-agentzh
	archivename0:      luajit2-2.1-agentzh
	archiveext0:       tar.gz
	archiveurl0:       https://github.com/openresty/luajit2/archive/v2.1-agentzh/luajit2-2.1-agentzh.tar.gz
	topdir0:           luajit2-2.1-agentzh
	extractdir0:       luajit2-2.1-agentzh
	repo0:             luajit2
	scm0:              git
	branch0:           v2.1-agentzh
	distprefix0:       .20210513gitv2.1-agentzh
	dist:              .20210513gitv2.1-agentzh.fc34
	(snapshot date is either manually supplied or computed once %{_sourcedir}/%{archivename0}.%{archiveext0} is available)
	Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.9O1tue
	+ umask 022
	+ cd /builddir/build/BUILD
	+ cd /builddir/build/BUILD
	+ rm -rf luajit2-2.1-agentzh
	+ /usr/bin/gzip -dc /builddir/build/SOURCES/luajit2-2.1-agentzh.tar.gz
	+ /usr/bin/tar -xof -
	+ STATUS=0
	+ '[' 0 -ne 0 ']'
	+ cd luajit2-2.1-agentzh
	/var/tmp/rpm-tmp.9O1tue: line 38: cd: luajit2-2.1-agentzh: No such file or directory


	RPM build errors:
	error: Bad exit status from /var/tmp/rpm-tmp.9O1tue (%prep)
		Setting %{branch} = v2.1-agentzh
		Setting %{forgeurl0} = https://github.com/openresty/luajit2
		Setting %{fileref0} = 2.1-agentzh
		Setting %{ref0} = v2.1-agentzh
		Setting %{archivename0} = %{repo0}-2.1-agentzh
		Setting %{archiveext0} = tar.gz
		Setting %{archiveurl0} = https://github.com/openresty/luajit2/archive/v2.1-agentzh/%{repo0}-2.1-agentzh.tar.gz
		Setting %{scm0} = git
		Setting %{topdir0} = %{repo0}-2.1-agentzh
		Setting %{repo0} = luajit2
		Setting %{forgesource0} = https://github.com/openresty/luajit2/archive/v2.1-agentzh/luajit2-2.1-agentzh.tar.gz
		Setting %{forgesetupargs0} = -n %{extractdir0}
		Setting %{extractdir0} = luajit2-2.1-agentzh
		Setting %{distprefix0} = .20210513gitv2.1-agentzh
		Setting %{forgesource} = https://github.com/openresty/luajit2/archive/v2.1-agentzh/luajit2-2.1-agentzh.tar.gz
		Setting %{forgesetupargs} = -n luajit2-2.1-agentzh
		Setting %{archivename} = luajit2-2.1-agentzh
		Setting %{archiveext} = tar.gz
		Setting %{archiveurl} = https://github.com/openresty/luajit2/archive/v2.1-agentzh/luajit2-2.1-agentzh.tar.gz
		Setting %{topdir} = luajit2-2.1-agentzh
		Setting %{extractdir} = luajit2-2.1-agentzh
		Setting %{repo} = luajit2
		Setting %{scm} = git
		Setting %{distprefix} = .20210513gitv2.1-agentzh
		Bad exit status from /var/tmp/rpm-tmp.9O1tue (%prep)
	Finish: rpmbuild lua-resty-luajit2-git.HEAD-0.pgnd_20210513_212639.fc34.src.rpm
	Finish: build phase for lua-resty-luajit2-git.HEAD-0.pgnd_20210513_212639.fc34.src.rpm
	ERROR: Exception(./lua-resty-luajit2-git.HEAD-0.pgnd_20210513_212639.fc34.src.rpm) Config(fedora-34-x86_64) 0 minutes 19 seconds
	INFO: Results and/or logs in: /home/mock/resultdir
	INFO: Cleaning up build root ('cleanup_on_failure=True')
	Start: clean chroot
	Finish: clean chroot
	ERROR: Command failed:
	# /usr/bin/systemd-nspawn -q -M a5a65f56173f44919d9e4890b40b3e55 -D /var/lib/mock/fedora-34-x86_64/root -a -u mockbuild --capability=cap_ipc_lock --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;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$  --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/lua-resty-luajit2.spec


have you a different or custom /usr/lib/rpm/macros.d/macros.forge ?

here, on my local build box

  rpm -q --whatprovides /usr/lib/rpm/macros.d/macros.forge
    redhat-rpm-config-182-1.fc34.noarch


seems "something" is missing from the mock build env -- here & @ COPR.
_______________________________________________
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
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux