Hyphens in macros are translated to underscore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RPM |
New
|
Undecided
|
Unassigned |
Bug Description
I've noticed an error when attempting to use -Rsourcedir dynamically from the command line to access cached source files
The argument supplied to rpmbuild is here:
54 ++ rpmbuild -v -bs --nodeps --define _Rsourcedir/
55 + sources_
56 /var/source_
As you can see on line 56 the output of the sources provided by rpm is wrong on 2 accounts:
The hyphen in source-cache has been converted to source_cache as well as the one in the path for pps_tools
I had a look in rpmGenpath hoping I could find a string conversion somewhere that I could tweak, but failed. I believe though it might be the side effect of trying to create safe remote URLs.
A strace -ff -eopen confirmed that rpmbuild is looking in the wrong place
open("/
This behaviour was observed on rpm 5.2.2