Bug 140339

Summary: aliases with hyphens get an extra space injected (e.g. --with/--without)
Product: [Fedora] Fedora Reporter: Axel Thimm <axel.thimm>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: nobody+pnasrat
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-22 18:09:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Axel Thimm 2004-11-22 14:03:04 UTC
Description of problem:

rpm popt aliases with hyphens like

--with alsa-devices

become a space includimng macro like (from %dump)

 -8: _with_alsa -devices     --with-alsa-device

Version-Release number of selected component (if applicable):

4.3.2

How reproducible:

Always
Call rpmbuild with "--with alsa-devices"

Steps to Reproduce:
1.Create a plain specfile with %dump in its %prep
2.rpmbuild --with alsa-devices dummy.spec
3.Watch the macro definitions in the output
  
Actual results:

A macro called "_with_alsa devices" is created.

Expected results:

The macros should be called "with_alsa-devices"

Additional info:

Workaround by changing option names not to contain hyphens.

Comment 1 Jeff Johnson 2004-11-22 17:55:10 UTC
Don't use hyphens.

Comment 2 Axel Thimm 2004-11-22 18:07:42 UTC
Reopening, if you don't want to fix it, you should document it
somewhere (at the very least in /usr/share/doc/rpm-*/conditionalbuilds).

Comment 3 Jeff Johnson 2004-11-22 18:09:56 UTC
"Popt has other meanings for hyphens that cannot be ever
be changed. Don't use hyphens if attempting to use --with
or --without to pass build options into spec files."

Documented. Happy?