Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 129172 - Rebuilding of coreutils dies with "bad substitution"
Rebuilding of coreutils dies with "bad substitution"
Status: CLOSED DUPLICATE of bug 129128
Product: Fedora
Classification: Fedora
Component: bash (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Depends On:
  Show dependency treegraph
Reported: 2004-08-04 14:27 EDT by Robert Scheck
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-21 14:04: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 Robert Scheck 2004-08-04 14:27:56 EDT
Description of problem:
Rebuilding of coreutils dies here with this error message:

--- snipp ---
# rpmbuild -ba coreutils.spec
+ install -m 4755 src/su /var/tmp/coreutils-root/bin
+ for i in hostname uptime kill
/var/tmp/rpm-tmp.23363: line 76: $RPM_BUILD_ROOT/usr/share/man/man1/${i.1}: bad substitution
error: Bad exit status from /var/tmp/rpm-tmp.23363 (%install)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.23363 (%install)
--- snapp ---

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

How reproducible / Steps to Reproduce:
Everytime, see above.

Actual results:
--- snipp ---
--- coreutils.spec      2004-08-04 20:04:56.000000000 +0200
+++ coreutils.spec.rsc  2004-08-04 20:20:21.000000000 +0200
@@ -186,7 +186,7 @@

 # These come from util-linux and/or procps.
 for i in hostname uptime kill ; do
-       rm -f $RPM_BUILD_ROOT{%_bindir/$i,%_mandir/man1/${i}.1}
+       rm -f $RPM_BUILD_ROOT{%_bindir/$i,%_mandir/man1/$i.1}

 %{?!nopam:install -m 644 %SOURCE200 $RPM_BUILD_ROOT%_sysconfdir/pam.d/su}
--- snapp ---

Expected results:
Rebuild without error... ;-)

Additional info:
Maybe it's of belong, but I'm rebuilding at bash (bash3).
Comment 1 Tim Waugh 2004-08-04 18:07:14 EDT

*** This bug has been marked as a duplicate of 129128 ***
Comment 2 Red Hat Bugzilla 2006-02-21 14:04:56 EST
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

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