Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
raczkow opened this issue Sep 30, 2024 · 1 comment
Open

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

raczkow opened this issue Sep 30, 2024 · 1 comment

Comments

@raczkow
Copy link

raczkow commented Sep 30, 2024

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
Copy link
Collaborator

ehdoyle commented Oct 26, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants