Bug 140339 - aliases with hyphens get an extra space injected (e.g. --with/--without)
Summary: aliases with hyphens get an extra space injected (e.g. --with/--without)
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm   
(Show other bugs)
Version: 3
Hardware: All Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-22 14:03 UTC by Axel Thimm
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

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: ---


Attachments (Terms of Use)

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?


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