summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-10-06 06:48:06 +0000
committerJakub Jelinek <jakub@redhat.com>2004-10-06 06:48:06 +0000
commit6fb78a87583a6d2f65a0fb4a77c950ddc037876c (patch)
treed906306a1ee0990cd8ca0016c2a1179a0e65fa89
parentc25d26bbb4e1d6447b5a6b60afb2d6086796c9bc (diff)
downloadglibc-6fb78a87583a6d2f65a0fb4a77c950ddc037876c.tar.gz
glibc-6fb78a87583a6d2f65a0fb4a77c950ddc037876c.tar.xz
glibc-6fb78a87583a6d2f65a0fb4a77c950ddc037876c.zip
Replace use of perl with sed -ie in the spec file, set TIMEOUTFACTOR.
-rw-r--r--fedora/glibc.spec.in12
1 files changed, 8 insertions, 4 deletions
diff --git a/fedora/glibc.spec.in b/fedora/glibc.spec.in
index 351dc9c9ff..8645262184 100644
--- a/fedora/glibc.spec.in
+++ b/fedora/glibc.spec.in
@@ -1,4 +1,4 @@
-%define glibcrelease 65
+%define glibcrelease 66
 %define auxarches i586 i686 athlon sparcv9 alphaev6
 %define prelinkarches noarch
 %define nptlarches i386 i686 athlon x86_64 ia64 s390 s390x sparcv9 ppc ppc64
@@ -33,6 +33,7 @@ Prereq: basesystem, libgcc
 # This is for building auxiliary programs like memusage, nscd
 # For initial glibc bootstraps it can be commented out
 BuildPreReq: gd-devel libpng-devel zlib-devel texinfo, libselinux-devel >= 1.17.10-1
+BuildPreReq: sed >= 3.95
 %ifarch %{prelinkarches}
 BuildPreReq: prelink >= 0.2.0-5
 %endif
@@ -478,7 +479,7 @@ GCC="gcc -m64"
 # If gcc supports __thread, test it even in --with-tls --without-__thread
 # builds.
 if echo '__thread int a;' | $GCC -xc - -S -o /dev/null 2>/dev/null; then
-  perl -pi -e 's/0 \|\|/1 ||/' ../elf/tst-tls10.h ../linuxthreads/tst-tls1.h
+  sed -ie 's/0 [|][|]/1 ||/' ../elf/tst-tls10.h ../linuxthreads/tst-tls1.h
 fi
 
 BuildFlags="$BuildFlags -DNDEBUG=1"
@@ -922,8 +923,7 @@ ln -sf /%{_lib}/ld-linux-ia64.so.2 $RPM_BUILD_ROOT/lib/ld-linux-ia64.so.2
 %endif
 
 # Increase timeouts
-perl -pi -e 's/alarm \(TIMEOUT\)/alarm (TIMEOUT * 15 * '$numprocs' < 600 ? TIMEOUT * 15 * '$numprocs' : 600)/' \
-  test-skeleton.c
+export TIMEOUTFACTOR=16
 echo ====================TESTING=========================
 cd build-%{_target_cpu}-linux
 make -j$numprocs -k check PARALLELMFLAGS=-s 2>&1 | tee check.log || :
@@ -1239,6 +1239,10 @@ rm -f *.filelist*
 %endif
 
 %changelog
+- avoid using perl in the spec file, buildrequire sed >= 3.95
+  (#127671)
+- export TIMEOUTFACTOR=16
+
 * Tue Oct  5 2004 Jakub Jelinek <jakub@redhat.com> 2.3.3-65
 - update from CVS
   - define _POSIX_THREAD_PROCESS_SHARED and _POSIX_CLOCK_SELECTION