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
RFE: rpmbuild -br --i-really-want-src-rpm #760
Comments
I had conversation yesterday with @ffesti over IRC about this and we need to add something like I'll send PR this week. |
What's wrong with --nodeps, which we already have? |
@pmatilai |
I'm not fond of these --do-foo-except-in-this-one-special-case-do-bar style options, they rarely make sense in the big picture. |
@pmatilai true, Ithink --force would make sense for this. |
Yeah, --force as a cli-switch makes sense for the case, it's just the existing API-side wiring to RPMSPEC_FORCE that has other side-effects which you'd not want for this case, so whether it's reasonably straightforward or even possible to use it for this purpose is another question. |
I think using RPMSPEC_FORCE is fine for this case because normally people would not do it. Only if they know what they are doing. |
Closes: rpm-software-management#760 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Closes: rpm-software-management#760 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
There is no way to get src.rpm with dynamic BuildRequires without checking dependencies on the system. --nodeps always forces rpmbuild to write buildreqs.nosrc.rpm, but in some cases it might be desired to get src.rpm with dynamic BRs but without checking for dependencies. Closes: rpm-software-management#760 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
There is no way to get src.rpm with dynamic BuildRequires without checking dependencies on the system. --nodeps always forces rpmbuild to write buildreqs.nosrc.rpm, but in some cases it might be desired to get src.rpm with dynamic BRs but without checking for dependencies. Closes: #760 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
There is no way to get src.rpm with dynamic BuildRequires without checking dependencies on the system. --nodeps always forces rpmbuild to write buildreqs.nosrc.rpm, but in some cases it might be desired to get src.rpm with dynamic BRs but without checking for dependencies. Closes: rpm-software-management#760 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com> (cherry picked from commit e672ec2)
There is no way to get src.rpm with dynamic BuildRequires without checking dependencies on the system. --nodeps always forces rpmbuild to write buildreqs.nosrc.rpm, but in some cases it might be desired to get src.rpm with dynamic BRs but without checking for dependencies. Closes: #760 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com> (cherry picked from commit e672ec2)
I have some scripts which operate on packages to generate their (build)dependency tree for Fedora Modularity stuff. It relies on normal binary and source RPMs for dependency information. However, with dynamic BuildRequires, I need a way to rebuild sourcerpms with some macros defined. And I found out that there is no way to get src.rpm with dynamic buildrequires without installing them.
So I had to do something like
and use
rpmbuild -rr -D "_module_build 1" --nodeps /path/to/srpm
and it does what I need.So what I want is to say "I am expert, I know src.rpm will have all dynamic dependencies, just give me src.rpm and not buildreqs.nosrc.rpm.".
The text was updated successfully, but these errors were encountered: