Description of problem: While waiting for a fix for bug 32516 I've decided to build proper sqlite3 version locally using chroot environment. The spec file for sqlite3 contains directive '%bcond_with icu' and it is used to build sqlite3 with ICU support. But when I try to install build dependencies I get the following result: $ LC_ALL=C sudo urpmi --buildrequires --no-recommends --no-verify-rpm --with icu sqlite3.spec Unknown option: with No package named icu Version-Release number of selected component (if applicable): urpmi-8.131-1.mga9.src.rpm How reproducible: Always Steps to Reproduce: 1. Try to install build dependencies for any conditional-building spec-file using urpmi --buildrequires command and '--with' option. 2. 3.
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) => lewyssmithAssignee: bugsquad => mageiatools
(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.
Summary: urpmi --builrequires complains on unknown option 'with' => urpmi --buildrequires does not support setting macros for correct spec evaluation