Mailinglist Archive: opensuse-bugs (8048 mails)

< Previous Next >
[Bug 243077] New: "make rpm" for kernel fails due to not finding spec file, may be caused by change to tar
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 7 Feb 2007 07:19:02 -0700 (MST)
  • Message-id: <bug-243077-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=243077

Summary: "make rpm" for kernel fails due to not finding spec
file, may be caused by change to tar
Product: openSUSE 10.3
Version: unspecified
Platform: PowerPC-64
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: harbaugh@xxxxxxxxxxx
QAContact: qa@xxxxxxx


after setting up the config file in /usr/src/linux, "make rpm" fails:

% make rpm
/bin/sh /usr/src/linux-2.6.20-rc7-2/scripts/package/mkspec >
/usr/src/linux-2.6.20-rc7-2/kernel.spec
make clean
set -e; cd ..; ln -sf /usr/src/linux-2.6.20-rc7-2 kernel-2.6.20rc72ppc64
set -e; cd ..; tar -cz --exclude SCCS --exclude BitKeeper --exclude .svn
--exclude CVS --exclude .pc --exclude .hg --exclude .git -f
kernel-2.6.20rc72ppc64.tar.gz kernel-2.6.20rc72ppc64/.
set -e; cd ..; rm kernel-2.6.20rc72ppc64
set -e; \
/bin/sh /usr/src/linux-2.6.20-rc7-2/scripts/mkversion >
/usr/src/linux-2.6.20-rc7-2/.tmp_version
set -e; \
mv -f /usr/src/linux-2.6.20-rc7-2/.tmp_version
/usr/src/linux-2.6.20-rc7-2/.version
rpmbuild --target ppc64 -ta ../kernel-2.6.20rc72ppc64.tar.gz
Building target platforms: ppc64
Building for target ppc64
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)
make[1]: *** [rpm] Error 1
make: *** [rpm] Error 2

The spec file *does* exist and seems valid

% head kernel.spec
Name: kernel
Summary: The Linux Kernel
Version: 2.6.20rc72ppc64
Release: 3
License: GPL
Group: System Environment/Kernel
Vendor: The Linux Community
URL: http://www.kernel.org
Source: kernel-2.6.20rc72ppc64.tar.gz
BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root
% gunzip -cd ../kernel-2.6.20rc72ppc64.tar.gz | tar -tvf - | grep 'kernel.spec'
-rw-r--r-- harbaugh/messagebus 1347 2007-02-07 14:15
kernel-2.6.20rc72ppc64/./kernel.spec

This problem may be due to a change in tar, see

https://www.redhat.com/archives/fedora-devel-list/2006-September/msg00874.html

for a patch to rpmbuild


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >