[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] tools/mkrpm: allow custom rpm package name



On Wed, Jul 30, Ian Campbell wrote:

> I thought RPM allowed multiple packages with the same name (but
> different versions) to be installed at the same time already. e.g. the
> kernel packages on such systems are just "kernel", in contrast with
> Debian which encodes the uname-r into the package name to allow
> coinstallation.
> 
> Am I misremembering?

Sure. Its very cumbersome to update a single such xen.rpm. And,
depending on the branch, they will be all named xen-4.5-0.rpm. After a
'zypper patch' installs a security update for Xen my private xen.rpm
packages will be all gone.

I have a quick look at mkdeb, it looks like the same change could be
applied there. But I dont run Debian so its hard to tell if that
approach would work as expected.

diff --git a/tools/misc/mkdeb b/tools/misc/mkdeb
index 3bbf881..db7a003 100644
--- a/tools/misc/mkdeb
+++ b/tools/misc/mkdeb
@@ -33,8 +33,8 @@ fi
 # Fill in the debian boilerplate
 mkdir -p deb/DEBIAN
 cat >deb/DEBIAN/control <<EOF
-Package: xen-upstream
-Source: xen-upstream
+Package: xen-upstream$XEN_PKG_SUFFIX
+Source: xen-upstream$XEN_PKG_SUFFIX
 Version: $version
 Architecture: $arch
 Maintainer: Unmaintained snapshot


Olaf

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.