This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-bugs] [Bug 817] New: rpm spec file can't build kernel-source rpm

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 817] New: rpm spec file can't build kernel-source rpm
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Sun, 19 Nov 2006 22:37:00 -0800
Delivery-date: Sun, 19 Nov 2006 22:38:01 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx

           Summary: rpm spec file can't build kernel-source rpm
           Product: Xen
           Version: 3.0 (general)
          Platform: x86
        OS/Version: Linux-2.6
            Status: NEW
          Severity: minor
          Priority: P3
         Component: Unspecified
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: matthew@xxxxxxxxxxxxxxx

There were a couple of typos in the spec file of the src.rpm available on the
downloads page.  Also, the spec doesn't allow for building the kernel-source
rpm without building the kernel rpm as well.  I've included a fix for that as

--- SPECS/xen-3.0.3-testing-local_2006-10-16-14-13-24+0100_57fa367206fb.spec   
2006-11-19 23:02:42.000000000 -0800
+++ /root/xen-3.0.3-fixed.spec  2006-11-19 22:53:53.000000000 -0800
@@ -96,7 +96,7 @@
 #hg_changeset = %{hg_changeset}

 %package -n kernel-xen-sourcecode
-Version: %{xen_kernel_version}
+Version: %{linux_version_root}
 Release: %{xenlinux_release}
 Summary: The source code for the XenLinux kernel.
 Group: Development/System
@@ -183,12 +183,16 @@

 %if %{buildsource}
+cat >buildconfigs/mk.linux-%{linux_full_version} <<__EOF__
+EXTRAVERSION = %{xenlinux_release}
+include buildconfigs/mk.linux-2.6-xen
 mkdir -p %{buildroot}/usr/src/linux-%{linux_full_version}
 chmod -R a+r *

 # clean up the source tree so that it is ready for users to build their own
 # kernel
-%{__make} linux-2.6-%{linux_full_version}-clean
+%{__make} linux-%{linux_full_version}-clean
 # copy the source over
 tar --dereference -cf - -C linux-%{linux_full_version} . | tar -xf - -C

Configure bugmail: 
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Xen-bugs mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-bugs] [Bug 817] New: rpm spec file can't build kernel-source rpm, bugzilla-daemon <=