Bug 140339 - aliases with hyphens get an extra space injected (e.g. --with/--without)
aliases with hyphens get an extra space injected (e.g. --with/--without)
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2004-11-22 09:03 EST by Axel Thimm
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-11-22 13:09:56 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Axel Thimm 2004-11-22 09:03:04 EST
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):


How reproducible:

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 12:55:10 EST
Don't use hyphens.
Comment 2 Axel Thimm 2004-11-22 13:07:42 EST
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 13:09:56 EST
"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?

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