Bug 1673333

Summary: RFE: allow to specify rpm macro
Product: [Fedora] Fedora Reporter: Miroslav Suchý <msuchy>
Component: dnfAssignee: rpm-software-management
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: medium    
Version: rawhideCC: fedoraproject, jmracek, jrohel, massi.ergosum, mblaha, mhatina, mosvald, ngompa13, packaging-team-maint, pkratoch, rpm-software-management, vmukhame
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.