Bug 124995 - "--with foo-bar" may not contain dash
Summary: "--with foo-bar" may not contain dash
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: rpm   
(Show other bugs)
Version: 3.0
Hardware: i686 Linux
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Mike McLean
Depends On:
TreeView+ depends on / blocked
Reported: 2004-06-01 20:45 UTC by NN Poster
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-19 19:25:05 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description NN Poster 2004-06-01 20:45:57 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Description of problem:
(Disclaimer: Due to a lack of comprehensive documentation for RPM I 
am unable to determine if this is a bug or some kind of an obscure 

rpmbuild parameter "--with foo-bar" does not allow dash in feature 
name "foo-bar". The expected behavior is that RPM will define a macro 
called "_with_foo-bar" or perhaps "_with_foo_bar" and give it a 
value "--with-foo-bar". Instead RPM will define macro "_with_foo<TAB>-

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

How reproducible:

Steps to Reproduce:
1. rpmbuild --with foo-bar --eval %dump 2>&1 | grep foo

Actual Results:   -8: _with_foo  -bar     --with-foo-bar

Expected Results:   -8: _with_foo-bar     --with-foo-bar
 -8: _with_foo_bar     --with-foo-bar

Additional info:

Comment 1 Jeff Johnson 2004-06-02 02:07:45 UTC
Since --with is a popt alias, it's not surprising
that rpm documentation does not cover.

Try man popt.

Yup, looks like the parser stops at first '-'.

Comment 2 Jeff Johnson 2007-01-18 05:57:32 UTC
Macro names do not permit the '-' character, so changing '-' to '_' in --define names is the only solution.

Here is the behavior:

$ rpmbuild --with foo-bar --eval %dump 2>&1 | grep foo
 -8: _with_foo_bar      --with-foo-bar

Fixed in rpm cvs, will be in rpm-4.4.8-0.11 when built.


Comment 3 RHEL Product and Program Management 2007-10-19 19:25:05 UTC
This bug is filed against RHEL 3, which is in maintenance phase.
During the maintenance phase, only security errata and select mission
critical bug fixes will be released for enterprise products. Since
this bug does not meet that criteria, it is now being closed.
For more information of the RHEL errata support policy, please visit:
If you feel this bug is indeed mission critical, please contact your
support representative. You may be asked to provide detailed
information on how this bug is affecting you.

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