make rpm broken in 2.6.8-rc2
[root@localhost linux-2.6]# make rpm
make clean
set -e; cd ..; ln -sf /usr/src/linux-2.6 kernel-2.6.8rc2
set -e; cd ..; tar -cz -f kernel-2.6.8rc2.tar.gz kernel-2.6.8rc2/. set -e; cd ..; rm kernel-2.6.8rc2
set -e; \/bin/sh /usr/src/linux-2.6/scripts/mkversion > /usr/src/linux-2.6/.tmp_version set -e; \
mv -f /usr/src/linux-2.6/.tmp_version /usr/src/linux-2.6/.version rpmbuild --target i386 -ta ../kernel-2.6.8rc2.tar.gz
Building target platforms: i386
Building for target i386
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.72624
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ cd /usr/src/redhat/BUILD
+ rm -rf kernel-2.6.8rc1
+ /usr/bin/gzip -dc /usr/src/kernel-2.6.8rc1.tar.gz
+ tar -xf -
gzip: /usr/src/kernel-2.6.8rc1.tar.gz: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
error: Bad exit status from /var/tmp/rpm-tmp.72624 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.72624 (%prep)
make[1]: *** [rpm] Error 1
make: *** [rpm] Error 2
[root@localhost linux-2.6]#
Steve Bangert
Works for me..
Quoted 10 lines · Steve Bangert
[root@localhost linux-2.6]# make rpm
make clean
set -e; cd ..; ln -sf/usr/src/linux-2.6kernel-2.6.8rc2 set -e; cd ..; tar -cz -f kernel-2.6.8rc2.tar.gz kernel-2.6.8rc2/. set -e; cd ..; rm kernel-2.6.8rc2
set -e; \/bin/sh/usr/src/linux-2.6/scripts/mkversion>/usr/src/linux-2.6/.tmp_version
set -e; \
mv -f/usr/src/linux-2.6/.tmp_version/usr/src/linux-2.6/.version
Quoted 8 lines
rpmbuild --target i386 -ta ../kernel-2.6.8rc2.tar.gz Building target platforms: i386
Building for target i386
Executing(%prep):/bin/sh-e/var/tmp/rpm-tmp.72624
+ umask 022
+ cd/usr/src/redhat/BUILD
+ LANG=C
+ export LANG
These two lines are not present here. Maybe that have impact?
Quoted 8 lines
+ cd
/usr/src/redhat/BUILD
+ rm -rf kernel-2.6.8rc1
+/usr/bin/gzip-dc/usr/src/kernel-2.6.8rc1.tar.gz
+ tar -xf -gzip:
/usr/src/kernel-2.6.8rc1.tar.gz: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar is complaining here, even though it is reading from '-'. Is it repeatable?
Sam
Quoted 33 lines · [email protected] wrote:
Works for me..
Quoted 9 lines · Steve Bangert
[root@localhost linux-2.6]# make rpm
make clean
set -e; cd ..; ln -sf/usr/src/linux-2.6kernel-2.6.8rc2
set -e; cd ..; tar -cz -f kernel-2.6.8rc2.tar.gz kernel-2.6.8rc2/. set -e; cd ..; rm kernel-2.6.8rc2
set -e; \/bin/sh/usr/src/linux-2.6/scripts/mkversion>/usr/src/linux-2.6/.tmp_versionset -e; \
mv -f/usr/src/linux-2.6/.tmp_version/usr/src/linux-2.6/.versionQuoted 10 lines
rpmbuild --target i386 -ta ../kernel-2.6.8rc2.tar.gz Building target platforms: i386
Building for target i386
Executing(%prep):/bin/sh-e/var/tmp/rpm-tmp.72624
+ umask 022
+ cd/usr/src/redhat/BUILD
+ LANG=C
+ export LANGThese two lines are not present here. Maybe that have impact?
Quoted 5 lines
+ cd
/usr/src/redhat/BUILD
+ rm -rf kernel-2.6.8rc1
+/usr/bin/gzip-dc/usr/src/kernel-2.6.8rc1.tar.gz
+ tar -xf -
Quoted 10 lines
Quoted 5 lines
gzip:
/usr/src/kernel-2.6.8rc1.tar.gz: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archivetar is complaining here, even though it is reading from '-'. Is it repeatable?
Yes, tried it 3 times, same result. I don,t think the "make spec" script is being executed.
Steve
Quoted 4 lines
Sam
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
+ cd
/usr/src/redhat/BUILD
+ rm -rf kernel-2.6.8rc1
+/usr/bin/gzip-dc/usr/src/kernel-2.6.8rc1.tar.gz
+ tar -xf -gzip:
/usr/src/kernel-2.6.8rc1.tar.gz: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
Quoted 6 lines
Quoted 4 lines
tar is complaining here, even though it is reading from '-'. Is it repeatable?
Yes, tried it 3 times, same result. I don,t think the "make spec" script is being executed.
Could you try running/bin/gzip -dc /home/sam/bk/kernel-2.6.8rc2.tar.gz | tar -xf - in an empty directory.
If that fails try:/bin/gzip -dc /home/sam/bk/kernel-2.6.8rc2.tar.gz eventually redirected to /dev/null
Also try to check the size of the .tar.gz file.
My tar.gz file:
$ ll /home/sam/bk/kernel-2.6.8rc2.tar.gz -rw-r--r-- 1 sam users 153725342 Jul 20 00:17 /home/sam/bk/kernel-2.6.8rc2.tar.gz
If the .tar.gz file is broken try uncomenting the rm from the Makefile and execute rpmbuild manually.
Sam
Quoted 18 lines · [email protected] wrote:
Quoted 18 lines
Quoted 18 lines
Quoted 5 lines
+ cd
/usr/src/redhat/BUILD
+ rm -rf kernel-2.6.8rc1
+/usr/bin/gzip-dc/usr/src/kernel-2.6.8rc1.tar.gz
+ tar -xf -Quoted 7 lines
gzip:
/usr/src/kernel-2.6.8rc1.tar.gz: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archivetar is complaining here, even though it is reading from '-'. Is it repeatable?
Quoted 9 lines
Quoted 3 lines
Yes, tried it 3 times, same result. I don,t think the "make spec" script is being executed.
Could you try running
/bin/gzip-dc/home/sam/bk/kernel-2.6.8rc2.tar.gz| tar -xf - in an empty directory.
Works fine
Quoted 10 lines
If that fails try:
/bin/gzip-dc/home/sam/bk/kernel-2.6.8rc2.tar.gzeventually redirected to/dev/nullAlso try to check the size of the .tar.gz file.
My tar.gz file:$ ll /home/sam/bk/kernel-2.6.8rc2.tar.gz -rw-r--r-- 1 sam users 153725342 Jul 20 00:17 /home/sam/bk/kernel-2.6.8rc2.tar.gz
It was corrupted and the cause of the error, notice that tar was complaining about 2.6.8-rc1, but I was building 2.6.8-rc2, thats because the kernel.spec file didn't get updated, the " make spec" script didn't get executed after I built 2.6.8-rc1, It will execute if I delete the kernel.spec file and I can successfully build the kernel with "make rpm"
Steve
Quoted 8 lines
If the .tar.gz file is broken try uncomenting the rm from the
Makefileand execute rpmbuild manually.Sam