DUE icon indicating copy to clipboard operation
DUE copied to clipboard

Can't build rpm package - missing build depemdencies

Open raczkow opened this issue 4 months ago • 0 comments

Hi, I'm testing this tool as a better replacement for may own bunch of building tools for debs and rpms building. Quick testing of deb support seems to work OK, but I can't find a good way to build a rpm package:

./due --run --run-image localhost/due-pkg-fedora-40-amd64:pkg-fedora-40-amd64 --build --cbuild toolrack-4.0.0-1.fc40.src.rpm
[...]
== Building with dev version 
Adding mockbuild user and mock group to keep complaints down.
Found existing /home/raku/rpmbuild directory for [ toolrack-4.0.0-1.fc40.src.rpm ]
 ==== 
 ==== Setting up code and  patches from SOURCE rpm. Executing the 'prep' stage using [ rpmbuild -bp /home/raku/rpmbuild/SPECS/toolrack.spec ] 
 ==== 
setting SOURCE_DATE_EPOCH=1697760000
error: Failed build dependencies:
	help2man is needed by toolrack-4.0.0-1.fc40.noarch
	python3-devel is needed by toolrack-4.0.0-1.fc40.noarch
	python3-setuptools is needed by toolrack-4.0.0-1.fc40.noarch
ERROR [ 11 ] in 361 fxnDoBuildPrep /usr/local/bin/duebuild, calls [ 361 463 1119 0 ] command: "rpmbuild -bp /home/raku/rpmbuild/SPECS/toolrack.spec"
ERROR at 1133 main /usr/local/bin/duebuild  :  Build FAILED with return code [ 1 ] at [ Mon Sep 30 18:46:22 UTC 2024 ]

ERROR - /usr/local/bin/duebuild [ --cbuild toolrack-4.0.0-1.fc40.src.rpm ] failed with return code [ 1 ]

My previous build tool which was a base tool for my scripts - mock - manage to install build dependencies. Is there a way to achieve this functionality with due?

raczkow avatar Sep 30 '24 18:09 raczkow