Bug 127671

Summary: Missing BuildRequires for perl
Product: Red Hat Enterprise Linux 3 Reporter: Andreas Thienemann <andreas>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED NEXTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: drepper.fsp
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-06 03:45:20 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:

Description Andreas Thienemann 2004-07-12 08:41:41 EDT
Description of problem:
When rebuilding glibc, the following error appears when no perl is
installed:

+ perl -pi -e 's/0 \|\|/1 ||/' ../elf/tst-tls10.h
../linuxthreads/tst-tls1.h
/var/tmp/rpm-tmp.76641: line 31: perl: command not found
error: Bad exit status from /var/tmp/rpm-tmp.76641 (%build)

perl is called twice in the specfile to search and replace certain
strings:

1st occurence:
perl -pi -e 's/0 \|\|/1 ||/' ../elf/tst-tls10.h ../linuxthreads/tst-tls1.h

2nd occurence:
perl -pi -e 's/alarm \(TIMEOUT\)/alarm (TIMEOUT * 15 * '$numprocs' <
600 ? TIMEOUT * 15 * '$numprocs' : 600)/' \
  test-skeleton.c


Both should be changed to sed calls such as "sed -ie 's/0 \|\|/1 ||/'
 ../elf/tst-tls10.h ../linuxthreads/tst-tls1.h" as needing perl for
rebuilding glibc is a bit much.

Otherwise, at least BuildRequires: perl should be added to facilate
automated rebuilding.


Version-Release number of selected component (if applicable):
glibc-2.3.2-95.3.src.rpm
Comment 1 Ulrich Drepper 2004-10-06 03:45:20 EDT
We have adjusted the glibc.spec file currently in use.  glibc-2.3.3-66
or higher once available will have the changes.