CumulusNetworks / DUE

A user friendly build environment generator for building .debs, .rpms, ONIE and more.
MIT License
56 stars 12 forks source link

Can't build rpm package - missing build depemdencies #49

Open raczkow opened 1 month ago

raczkow commented 1 month ago

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?

ehdoyle commented 3 weeks ago

Hi sorry about the lag on reply - the notification got buried. I'd thought it already handled pulling in the dependencies, but clearly not. I'll look in to this as the whole point of the tool was to figure out how these things built once, automate it, and never have to remember it again :) For replication purposes - where should toolrack-4.0.0-1.fc40.src.rpm be available? Google is just returning 'how to build an rpm' which makes me think I'm missing some detail... Thanks!