2013-04-17 20:17:28

by Thomas Schweikle

[permalink] [raw]
Subject: make rpm-pkg fails for all kernels with "spec file not found in <kernel>.tar.gz


[1.] One line summary of the problem:
"make rpm-pkg" fails for all kernels with
"spec file not found in <kernel>.tar.gz"

[2.] Full description of the problem/report:
"make rpm-pkg" fails for all kernels with
"spec file not found in <kernel>.tar.gz"

make O=/home/sct-muc/dev/obj/3.8.8 defconfig
make O=/home/sct-muc/dev/obj/3.8.8 bzImage
make O=/home/sct-muc/dev/obj/3.8.8 rpm-pkg
/bin/bash /home/sct-muc/dev/linux-3.8.y/scripts/package/mkspec \
> /home/sct-muc/dev/obj/3.8.8/kernel.spec
make clean
set -e; cd -P ..; ln -sf /home/sct-muc/dev/linux-3.8.y kernel-3.8.8
/bin/bash /home/sct-muc/dev/linux-3.8.y/scripts/setlocalversion \
--save-scmversion
set -e; cd -P ..; tar -cz --exclude SCCS --exclude BitKeeper \
--exclude .svn --exclude CVS --exclude .pc --exclude .hg \
--exclude .git -f kernel-3.8.8.tar.gz kernel-3.8.8/.
set -e; cd -P ..; rm kernel-3.8.8
rm -f /home/sct-muc/dev/obj/3.8.8/.scmversion
set -e; \
/bin/bash /home/sct-muc/dev/linux-3.8.y/scripts/mkversion \
> /home/sct-muc/dev/obj/3.8.8/.tmp_version
set -e; \
mv -f /home/sct-muc/dev/obj/3.8.8/.tmp_version \
/home/sct-muc/dev/obj/3.8.8/.version
rpmbuild --target x86_64 -ta ../kernel-3.8.8.tar.gz
Fehler: Konnte Spec-Datei von ../kernel-3.8.8.tar.gz nicht lesen
Baue f?r die Zielplattform(en): x86_64
Baue f?r das Ziel x86_64
make[2]: *** [rpm-pkg] Fehler 1
make[1]: *** [rpm-pkg] Fehler 2
make: *** [sub-make] Fehler 2

[3.] Keywords:
build, rpm-pkg

[4.] Kernel version:
all

[5.] Output of Oops.. message
"rpmbuild --target x86_64 -ta ../kernel-3.8.8.tar.gz"
Error: could not read spec-file from ../kernel-3.8.8.tar.gz
Building for target(s): x86_64
Building for target: x86_64
make[2]: *** [rpm-pkg] Error 1
make[1]: *** [rpm-pkg] Error 2
make: *** [sub-make] Error 2

[6.] Shell script to trigger the problem:
git clone \
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
linux-3.4.y
cd linux-3.4.y
git checkout -t origin/linux-3.4.y
make clean
make mrpropper
mkdir -p ${HOME}/obj
make O=${HOME}/obj defconfig
make O=${HOME}/obj bzImage
make O=${HOME}/obj rpm-pkg

[7.] Environment

[7.1.] Software:
$ scripts/ver_linux
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.

Linux cc-tps-build-muc 3.2.0-40-generic #64-Ubuntu SMP Mon Mar 25
21:22:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Gnu C 4.6
Gnu make 3.81
binutils 2.22
util-linux 2.20.1
mount support
module-init-tools 3.16
e2fsprogs 1.42
jfsutils 1.1.15
reiserfsprogs 3.6.21
pcmciautils 018
PPP 2.4.5
Linux C Library 2.15
Dynamic linker (ldd) 2.15
Procps 3.2.8
Net-tools 1.60
Kbd 1.15.2
Sh-utils 8.13
wireless-tools 30
Modules Loaded pcnet32 vmxnet vmblock vmsync vmhgfs nfsd nfs
lockd fscache auth_rpcgss nfs_acl sunrpc ext2 ppdev vmw_balloon psmouse
serio_raw vmwgfx ttm drm parport_pc i2c_piix4 shpchp vmci mac_hid lp
parport floppy e1000 mptspi mptscsih mptbase btrfs zlib_deflate libcrc32c

[7.2.] Processor information (from /proc/cpuinfo):
n.a.

[7.3.] Module information (from /proc/modules):
n.a.

[7.4.] Loaded driver and hardware information:
n.a.

[7.5.] PCI information ('lspci -vvv' as root)
n.a.

[7.6.] SCSI information (from /proc/scsi/scsi)
n.a.

[7.7.] Other information that might be relevant to the problem
(please look in /proc and include all information that you
think to be relevant):
n.a.


[X.] Other notes, patches, fixes, workarounds:
git clone \
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
linux-3.4.y
cd linux-3.4.y
git checkout -t origin/linux-3.4.y
make clean
make mrpropper
mkdir -p ${HOME}/obj
make O=${HOME}/obj defconfig
make O=${HOME}/obj bzImage
make O=${HOME}/obj deb-pkg

works.

--
Mit freundlichen Gr?ssen
Thomas Schweikle


Bundesamt f?r Strahlenschutz Thomas Schweikle
Ingolst?dter Landstra?e 1 AG-IT
D-85764 Oberschlei?heim Tel.: +49(0) 30 / 18 333 2594
Fax: +49(0) 30 / 18 10 333 2594
http://www.bfs.de e-mail: [email protected]


Attachments:
smime.p7s (4.61 kB)
S/MIME Kryptografische Unterschrift

2013-04-18 12:51:07

by Michal Marek

[permalink] [raw]
Subject: Re: make rpm-pkg fails for all kernels with "spec file not found in <kernel>.tar.gz

On 17.4.2013 22:06, Thomas Schweikle wrote:
> make O=/home/sct-muc/dev/obj/3.8.8 defconfig
> make O=/home/sct-muc/dev/obj/3.8.8 bzImage
> make O=/home/sct-muc/dev/obj/3.8.8 rpm-pkg

make rpm does not work with O=. There was a bug that it does not detect
this early enough to give a meaningful error message.

Michal