Bug 1673333 - RFE: allow to specify rpm macro
Summary: RFE: allow to specify rpm macro
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-07 12:25 UTC by Miroslav Suchý
Modified: 2023-12-25 10:31 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1576516 0 unspecified NEW [api] Need a way to tell DNF to use a different path for database/persistent data 2026-01-20 07:50:01 UTC
Red Hat Bugzilla 1610757 0 unspecified NEW RFE: Need an option to set install_langs value for installation (chroot/early install/bootstrap) 2023-12-25 10:31:23 UTC

Internal Links: 1610757

Description Miroslav Suchý 2019-02-07 12:25:48 UTC
Description of problem:
As part of an initiative to run Mock in Fedora Toolbox:
  https://github.com/rpm-software-management/mock/pull/234
we hit the issue that we need to specify rpm macro for DNF. Namely `_netsharedpath`. Right now it is not possible and only way is to mangle HOME and rpmmacros file.

RPM itself allows you to specify one-time definition of macros. Both using API and command line. It would be nice if DNF can accept the macros overrides and pass it to RPM.

I do not need it on the command line. Allowing to define it in dnf.conf is perfect. Just mind that I may want to define more than one macro.


Note You need to log in before you can comment on or make changes to this bug.