Bug 124995 - "--with foo-bar" may not contain dash
"--with foo-bar" may not contain dash
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: rpm (Show other bugs)
3.0
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Panu Matilainen
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-06-01 16:45 EDT by NN Poster
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

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


Attachments (Terms of Use)

  None (edit)
Description NN Poster 2004-06-01 16:45:57 EDT
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 
feature.)

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>-
bar".

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

How reproducible:
Always

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

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

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

Additional info:
Comment 1 Jeff Johnson 2004-06-01 22:07:45 EDT
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 00:57:32 EST
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.

UPSTREAM
Comment 3 RHEL Product and Program Management 2007-10-19 15:25:05 EDT
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:
http://www.redhat.com/security/updates/errata/
 
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.