| Summary: | urpmi --buildrequires does not support setting macros for correct spec evaluation | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Oleg Bosis <olelukoie> |
| Component: | RPM Packages | Assignee: | Mageia tools maintainers <mageiatools> |
| Status: | NEW --- | QA Contact: | |
| Severity: | major | ||
| Priority: | Normal | CC: | lewyssmith, ngompa13 |
| Version: | 9 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | urpmi-8.131-1.mga9.src.rpm | CVE: | |
| Status comment: | |||
|
Description
Oleg Bosis
2023-11-25 14:13:57 CET
Thank you for the report, and apologies for the inconvenience it is causing.
--buildrequires
Select all the "BuildRequires" of the wanted source packages. (You
can also install the build dependencies read directly from an rpm
spec file.)
But there is no sign of '--with' in the urpmi man page. Where did you get that from?CC:
(none) =>
lewyssmith (In reply to Lewis Smith from comment #1) > But there is no sign of '--with' in the urpmi man page. Where did you get > that from? The '--with' option is an rpm's option to conditionally build packages with selected features ( https://rpm-software-management.github.io/rpm/manual/conditionalbuilds.html ). The same option is used to conditionally require or not require BRs. For example, sqlite3 uses it to add BR on ICU: %bcond_with icu ... %if %{with icu} BuildRequires: icu-devel %endif Ignoring (not understanding) this option by urpmi means this dependency is missing and proper build with required feature is impossible without removing this condition from spec file. Just change %bcond_with icu For %bcond_without icu Save the spec and install the buildrequires Changing conditions, removing them or any other ways of editing spec file are not a solution but just workaround. I think there has to be a proper solution: support --with and --without options in urpmi for installing BRs. You could also try "dnf builddep --define='_with_sqlite 1' sqlite3.spec" and see if that works for you? CC:
(none) =>
ngompa13 (In reply to Neal Gompa from comment #5) > You could also try "dnf builddep --define='_with_sqlite 1' sqlite3.spec" and > see if that works for you? Erk, I mean "dnf builddep --define='_with_icu 1' sqlite3.spec" ((In reply to Oleg Bosis from comment #4) > Changing conditions, removing them or any other ways of editing spec file > are not a solution but just workaround. > > I think there has to be a proper solution: support --with and --without > options in urpmi for installing BRs. The correct solution for urpmi --buildrequires would be to support setting macros for triggering specific logic here.
Neal Gompa
2023-11-26 14:01:33 CET
Summary:
urpmi --builrequires complains on unknown option 'with' =>
urpmi --buildrequires does not support setting macros for correct spec evaluation |