Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.33102
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf patchelf-0.4
+ /usr/bin/bzip2 -dc /tmp/patchelf-0.4.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd patchelf-0.4
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.33102
+ umask 022
+ cd /usr/src/packages/BUILD
+ /bin/rm -rf /var/tmp/patchelf-0.4-buildroot
++ dirname /var/tmp/patchelf-0.4-buildroot
+ /bin/mkdir -p /var/tmp
+ /bin/mkdir /var/tmp/patchelf-0.4-buildroot
+ cd patchelf-0.4
+ ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: executing depfiles commands
+ make
Making all in src
make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4/src'
if g++ -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"\"0.4\"\" -DPACKAGE_STRING=\"patchelf\ \"0.4\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"\"0.4\"\" -I. -I. -g -O2 -MT patchelf.o -MD -MP -MF ".deps/patchelf.Tpo" -c -o patchelf.o patchelf.cc; \
then mv -f ".deps/patchelf.Tpo" ".deps/patchelf.Po"; else rm -f ".deps/patchelf.Tpo"; exit 1; fi
g++ -g -O2 -o patchelf patchelf.o
make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4/src'
Making all in tests
make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4/tests'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4/tests'
make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4'
+ make check
Making check in src
make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4/src'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4/src'
Making check in tests
make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4/tests'
make main main-scoped simple big-dynstr
make[2]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4/tests'
gcc -fpic -o main.o -c main.c
gcc -fpic -o foo.o -c foo.c
gcc -fpic -o bar.o -c bar.c
NIX_DONT_SET_RPATH=1 gcc -Wl,--disable-new-dtags -shared -o libbar.so bar.o -L . -Wl,-rpath,`pwd`/no-such-path
NIX_DONT_SET_RPATH=1 gcc -Wl,--disable-new-dtags -shared -o libfoo.so foo.o -L . -lbar
LD_LIBRARY_PATH=. gcc -Wl,--disable-new-dtags -o main main.o -L . -lfoo
NIX_DONT_SET_RPATH=1 gcc -Wl,--enable-new-dtags -shared -o libbar-scoped.so bar.o
NIX_DONT_SET_RPATH=1 gcc -Wl,--enable-new-dtags -shared -o libfoo-scoped.so foo.o -L . -lbar-scoped
LD_LIBRARY_PATH=. gcc -Wl,--enable-new-dtags -o main-scoped main.o -L . -lfoo-scoped
if gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"\"0.4\"\" -DPACKAGE_STRING=\"patchelf\ \"0.4\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"\"0.4\"\" -I. -I. -g -O2 -MT simple.o -MD -MP -MF ".deps/simple.Tpo" -c -o simple.o simple.c; \
then mv -f ".deps/simple.Tpo" ".deps/simple.Po"; else rm -f ".deps/simple.Tpo"; exit 1; fi
gcc -g -O2 -o simple simple.o
if gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"\"0.4\"\" -DPACKAGE_STRING=\"patchelf\ \"0.4\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"\"0.4\"\" -I. -I. -g -O2 -MT big-dynstr.o -MD -MP -MF ".deps/big-dynstr.Tpo" -c -o big-dynstr.o big-dynstr.c; \
then mv -f ".deps/big-dynstr.Tpo" ".deps/big-dynstr.Po"; else rm -f ".deps/big-dynstr.Tpo"; exit 1; fi
LD_LIBRARY_PATH=. gcc -Wl,--disable-new-dtags -o big-dynstr big-dynstr.o -L . -lfoo
make[2]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4/tests'
make check-TESTS
make[2]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4/tests'
./main: error while loading shared libraries: libfoo.so: cannot open shared object file: No such file or directory
PASS: plain-fail.sh
Hello World
This is foo()!
This is bar()!
Result is 46
PASS: plain-run.sh
RPATH before: /usr/src/packages/BUILD/patchelf-0.4/tests/no-such-path
patching ELF file `scratch/libbar.so'
removing directory `/usr/src/packages/BUILD/patchelf-0.4/tests/no-such-path' from RPATH
new rpath is `'
RPATH after:
Hello World
This is foo()!
This is bar()!
Result is 46
PASS: shrink-rpath.sh
Hello World
current interpreter is /lib/ld-linux.so.2
patching ELF file `scratch/simple'
replacing section `.interp' with size 6
found .interp section; this is an executable
using replaced section `.interp'
last replaced is 1
looking at section `.interp'
first reserved offset/addr is 0x168/0x8048168
first page is 0x8048000
needed space is 348
clearing first 20 bytes
rewriting section `.interp' from offset 340 (size 19) to offset 340 (size 6)
running with missing interpreter...
./set-interpreter-short.sh: line 15: scratch/simple: No such file or directory
PASS: set-interpreter-short.sh
Hello World
current interpreter is /lib/ld-linux.so.2
patching ELF file `scratch/simple'
replacing section `.interp' with size 152
found .interp section; this is an executable
using replaced section `.interp'
last replaced is 1
looking at section `.interp'
first reserved offset/addr is 0x168/0x8048168
first page is 0x8048000
needed space is 492
needed space is 524
needed pages is 1
clearing first 4084 bytes
rewriting section `.interp' from offset 4436 (size 19) to offset 372 (size 152)
running with missing interpreter...
./set-interpreter-long.sh: line 16: scratch/simple: No such file or directory
running with new interpreter...
Hello World
PASS: set-interpreter-long.sh
patching ELF file `scratch/main'
new rpath is `/oops:/usr/src/packages/BUILD/patchelf-0.4/tests/scratch/libsA:/usr/src/packages/BUILD/patchelf-0.4/tests/scratch/libsB'
rpath is too long, resizing...
DT_NULL index is 21
replacing section `.dynamic' with size 224
replacing section `.dynstr' with size 271
found .interp section; this is an executable
using replaced section `.dynstr'
using replaced section `.dynamic'
last replaced is 21
looking at section `.interp'
replacing section `.interp' which is in the way
looking at section `.note.ABI-tag'
replacing section `.note.ABI-tag' which is in the way
looking at section `.note.SuSE'
replacing section `.note.SuSE' which is in the way
looking at section `.hash'
replacing section `.hash' which is in the way
looking at section `.gnu.hash'
replacing section `.gnu.hash' which is in the way
looking at section `.dynsym'
replacing section `.dynsym' which is in the way
looking at section `.dynstr'
looking at section `.gnu.version'
first reserved offset/addr is 0x38c/0x804838c
first page is 0x8048000
needed space is 1252
needed space is 1284
needed pages is 1
clearing first 4632 bytes
rewriting section `.dynamic' from offset 7960 (size 216) to offset 372 (size 224)
rewriting section `.dynstr' from offset 4852 (size 151) to offset 596 (size 271)
rewriting section `.dynsym' from offset 4644 (size 208) to offset 868 (size 208)
rewriting section `.gnu.hash' from offset 4584 (size 60) to offset 1076 (size 60)
rewriting section `.hash' from offset 4512 (size 72) to offset 1136 (size 72)
rewriting section `.interp' from offset 4436 (size 19) to offset 1208 (size 19)
rewriting section `.note.ABI-tag' from offset 4456 (size 32) to offset 1228 (size 32)
rewriting section `.note.SuSE' from offset 4488 (size 24) to offset 1260 (size 24)
Hello World
This is foo()!
This is bar()!
Result is 46
PASS: set-rpath.sh
patching ELF file `scratch/no-rpath'
new rpath is `/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 19
replacing section `.dynamic' with size 208
replacing section `.dynstr' with size 103
replacing section `.interp' with size 19
found .interp section; this is an executable
using replaced section `.interp'
using replaced section `.dynstr'
using replaced section `.dynamic'
last replaced is 17
looking at section `.interp'
looking at section `.note.ABI-tag'
replacing section `.note.ABI-tag' which is in the way
looking at section `.hash'
replacing section `.hash' which is in the way
looking at section `.dynsym'
replacing section `.dynsym' which is in the way
looking at section `.dynstr'
looking at section `.gnu.version'
first reserved offset/addr is 0x1ec/0x80481ec
first page is 0x8048000
needed space is 728
needed space is 760
needed pages is 1
clearing first 4312 bytes
rewriting section `.dynamic' from offset 5288 (size 200) to offset 276 (size 208)
rewriting section `.dynstr' from offset 4512 (size 76) to offset 484 (size 103)
rewriting section `.dynsym' from offset 4432 (size 80) to offset 588 (size 80)
rewriting section `.hash' from offset 4392 (size 40) to offset 668 (size 40)
rewriting section `.interp' from offset 4340 (size 19) to offset 708 (size 19)
rewriting section `.note.ABI-tag' from offset 4360 (size 32) to offset 728 (size 32)
PASS: no-rpath.sh
patching ELF file `scratch/big-dynstr'
new rpath is `/oops:/usr/src/packages/BUILD/patchelf-0.4/tests/scratch/libsA:/usr/src/packages/BUILD/patchelf-0.4/tests/scratch/libsB'
rpath is too long, resizing...
DT_NULL index is 21
replacing section `.dynamic' with size 224
replacing section `.dynstr' with size 271
found .interp section; this is an executable
using replaced section `.dynstr'
using replaced section `.dynamic'
last replaced is 21
looking at section `.interp'
replacing section `.interp' which is in the way
looking at section `.note.ABI-tag'
replacing section `.note.ABI-tag' which is in the way
looking at section `.note.SuSE'
replacing section `.note.SuSE' which is in the way
looking at section `.hash'
replacing section `.hash' which is in the way
looking at section `.gnu.hash'
replacing section `.gnu.hash' which is in the way
looking at section `.dynsym'
replacing section `.dynsym' which is in the way
looking at section `.dynstr'
looking at section `.gnu.version'
first reserved offset/addr is 0x38c/0x804838c
first page is 0x8048000
needed space is 1252
needed space is 1284
needed pages is 1
clearing first 4632 bytes
rewriting section `.dynamic' from offset 40728 (size 216) to offset 372 (size 224)
rewriting section `.dynstr' from offset 4852 (size 151) to offset 596 (size 271)
rewriting section `.dynsym' from offset 4644 (size 208) to offset 868 (size 208)
rewriting section `.gnu.hash' from offset 4584 (size 60) to offset 1076 (size 60)
rewriting section `.hash' from offset 4512 (size 72) to offset 1136 (size 72)
rewriting section `.interp' from offset 4436 (size 19) to offset 1208 (size 19)
rewriting section `.note.ABI-tag' from offset 4456 (size 32) to offset 1228 (size 32)
rewriting section `.note.SuSE' from offset 4488 (size 24) to offset 1260 (size 24)
Hello World
This is foo()!
This is bar()!
Result is 46
PASS: big-dynstr.sh
patching ELF file `scratch/main-scoped'
new rpath is `/oops:/usr/src/packages/BUILD/patchelf-0.4/tests/scratch/libsA:/usr/src/packages/BUILD/patchelf-0.4/tests/scratch/libsB'
rpath is too long, resizing...
DT_NULL index is 21
replacing section `.dynamic' with size 224
replacing section `.dynstr' with size 278
found .interp section; this is an executable
using replaced section `.dynstr'
using replaced section `.dynamic'
last replaced is 21
looking at section `.interp'
replacing section `.interp' which is in the way
looking at section `.note.ABI-tag'
replacing section `.note.ABI-tag' which is in the way
looking at section `.note.SuSE'
replacing section `.note.SuSE' which is in the way
looking at section `.hash'
replacing section `.hash' which is in the way
looking at section `.gnu.hash'
replacing section `.gnu.hash' which is in the way
looking at section `.dynsym'
replacing section `.dynsym' which is in the way
looking at section `.dynstr'
looking at section `.gnu.version'
first reserved offset/addr is 0x392/0x8048392
first page is 0x8048000
needed space is 1260
needed space is 1292
needed pages is 1
clearing first 4638 bytes
rewriting section `.dynamic' from offset 7960 (size 216) to offset 372 (size 224)
rewriting section `.dynstr' from offset 4852 (size 158) to offset 596 (size 278)
rewriting section `.dynsym' from offset 4644 (size 208) to offset 876 (size 208)
rewriting section `.gnu.hash' from offset 4584 (size 60) to offset 1084 (size 60)
rewriting section `.hash' from offset 4512 (size 72) to offset 1144 (size 72)
rewriting section `.interp' from offset 4436 (size 19) to offset 1216 (size 19)
rewriting section `.note.ABI-tag' from offset 4456 (size 32) to offset 1236 (size 32)
rewriting section `.note.SuSE' from offset 4488 (size 24) to offset 1268 (size 24)
./main-scoped: error while loading shared libraries: libbar-scoped.so: cannot open shared object file: No such file or directory
patching ELF file `scratch/libsA/libfoo-scoped.so'
new rpath is `/oops:/usr/src/packages/BUILD/patchelf-0.4/tests/scratch/libsB'
rpath is too long, resizing...
DT_NULL index is 21
replacing section `.dynamic' with size 216
replacing section `.dynstr' with size 212
no .interp section; this is a dynamic library
last page is 0x3000
needed space is 620
rewriting section `.dynamic' from offset 3864 (size 208) to offset 8384 (size 216)
rewriting section `.dynstr' from offset 532 (size 149) to offset 8600 (size 212)
Hello World
This is foo()!
This is bar()!
Result is 46
patching ELF file `scratch/main-scoped'
removing directory `/oops' from RPATH
removing directory `/usr/src/packages/BUILD/patchelf-0.4/tests/scratch/libsB' from RPATH
new rpath is `/usr/src/packages/BUILD/patchelf-0.4/tests/scratch/libsA'
Hello World
This is foo()!
This is bar()!
Result is 46
PASS: set-rpath-library.sh
==================
All 9 tests passed
==================
make[2]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4/tests'
make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4/tests'
make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4'
make[1]: Nothing to be done for `check-am'.
make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.75460
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd patchelf-0.4
+ rm -rf /var/tmp/patchelf-0.4-buildroot
+ make DESTDIR=/var/tmp/patchelf-0.4-buildroot install
Making install in src
make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4/src'
make[2]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4/src'
test -z "/usr/bin" || mkdir -p -- "/var/tmp/patchelf-0.4-buildroot/usr/bin"
/usr/bin/install -c 'patchelf' '/var/tmp/patchelf-0.4-buildroot/usr/bin/patchelf'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4/src'
make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4/src'
Making install in tests
make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4/tests'
make[2]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4/tests'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4/tests'
make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4/tests'
make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4'
make[2]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4'
make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4'
+ strip /var/tmp/patchelf-0.4-buildroot//usr/bin/patchelf
+ RPM_BUILD_ROOT=/var/tmp/patchelf-0.4-buildroot
+ export RPM_BUILD_ROOT
+ test -x /usr/sbin/Check -a 0 = 0 -o -x /usr/sbin/Check -a '!' -z /var/tmp/patchelf-0.4-buildroot
+ echo 'I call /usr/sbin/Check...'
I call /usr/sbin/Check...
+ /usr/sbin/Check
-rw-r--r-- 1 root root 456 Sep 21 2007 /usr/share/info/dir.rpmnew.gz
Checking permissions and ownerships - using the permissions files
/tmp/Check.perms.pN1730
setting /tmp to root:root 1777. (wrong permissions 0755)
setting /dev to root:root 0755. (wrong permissions 1777)
setting /dev/zero to root:root 0666. (wrong permissions 0644)
setting /dev/null to root:root 0666. (wrong permissions 0644)
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-symlink
Processing files: patchelf-0.4-1
D: execv(/usr/lib/rpm/find-provides) pid 1742
D: waitpid(1742) rc 1742 status 0
Finding Provides: /usr/lib/rpm/find-provides patchelf
D: execv(/usr/lib/rpm/find-requires) pid 1767
xargs: file: No such file or directory
xargs: file: No such file or directory
xargs: file: No such file or directory
D: waitpid(1767) rc 1767 status 0
Finding Requires: /usr/lib/rpm/find-requires patchelf
D: execv(/usr/lib/rpm/find-supplements) pid 1797
sed: can't read /usr/src/packages/SOURCES/patchelf.spec: No such file or directory
D: waitpid(1797) rc 1797 status 0
Finding Supplements: /usr/lib/rpm/find-supplements patchelf
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/patchelf-0.4-buildroot
D: execv(/usr/lib/rpm/check-files) pid 1808
D: waitpid(1808) rc 1808 status 0
warning: Could not canonicalize hostname: (none)
D: fini 100444 1 ( 0, 0) 75696 /tmp/patchelf-0.4.tar.bz2
D: fini 100600 1 ( 0, 0) 702 /usr/src/packages/SPECS/patchelf.spec
GZDIO: 3 writes, 76780 total bytes in 0.004946 secs
D: May free Score board((nil))
D: Signature: size(180)+pad(4)
Wrote: /usr/src/packages/SRPMS/patchelf-0.4-1.src.rpm
D: fini 040755 3 ( 0, 0) 0
D: fini 040755 3 ( 0, 0) 0 /usr
D: fini 040755 2 ( 0, 0) 0 /usr/bin
D: fini 100755 1 ( 0, 0) 116592 /usr/bin/patchelf
BZDIO: 3 writes, 117200 total bytes in 0.005341 secs
D: May free Score board((nil))
D: Signature: size(180)+pad(4)
Wrote: /usr/src/packages/RPMS/i586/patchelf-0.4-1.i586.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.90081
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd patchelf-0.4
+ rm -rf /var/tmp/patchelf-0.4-buildroot
+ exit 0
D: May free Score board((nil))