[Rpm-maint] [rpm-software-management/rpm] Adding parameters to conditional '--with' in the command line (Discussion #3206)
Michal Domonkos
notifications at github.com
Wed Jul 24 09:10:26 UTC 2024
Indeed, there's currently [no built-in way](https://github.com/rpm-software-management/rpm/blob/ef87d2503498f65577b5d7af07cd453d622fe02c/rpmpopt.in#L194) for the `--with foo=<arg>` syntax on the CLI.
Another workaround that comes to mind (that's perhaps a bit cleaner/clearer than defining the `_with_foo` macro directly):
`rpmbuild -rb --with nvml --define 'nvml_path /usr/local/cuda'`
The in the spec file:
```
%configure \
%{?with_nvml:--with-nvml=%{nvml_path}}
```
Although that's still not ideal, of course.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/3206#discussioncomment-10135415
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/3206/comments/10135415 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240724/24c1319f/attachment.html>
More information about the Rpm-maint
mailing list