Skip to contentSkip to conversation

Minor bug in 4.0.0-rc2

PATCH M A Young 4 participants 7 messages Feb 3, 2010 – Feb 20, 2010 1 message not in the archive

lore
Share & tools
lore

M A Young

author
#0 lore raw

I have been trying to put 4.0.0-rc2 into an RPM, and I got the error "canonicalization unexpectedly shrank by one character" when it was creating files for the debuginfo package. This is because this bit of rpm doesn't like // in paths to file names, and the // comes from the makefile xen-4.0.0/tools/blktap2/drivers/Makefile which sets XEN_ROOT=../../../ and then uses it like $(XEN_ROOT)/tools/libaio/src . XEN_ROOT=../../../ be replaced by XEN_ROOT=../../.. to keep rpm happy please (eg. with the following patch)?

Michael Young

tools/blktap2/drivers/Makefile renamed from tools/blktap2/drivers/Makefile.orig +1 -1
@@ -1,4 +1,4 @@
-XEN_ROOT=../../../
+XEN_ROOT=../../..
 BLKTAP_ROOT= ..
 include $(XEN_ROOT)/tools/Rules.mk
#1 lore raw
Quoted 9 lines · M A Young

I have been trying to put 4.0.0-rc2 into an RPM, and I got the error "canonicalization unexpectedly shrank by one character" when it was creating files for the debuginfo package. This is because this bit of rpm doesn't like // in paths to file names, and the // comes from the makefile xen-4.0.0/tools/blktap2/drivers/Makefile which sets XEN_ROOT=../../../ and then uses it like $(XEN_ROOT)/tools/libaio/src . XEN_ROOT=../../../ be replaced by XEN_ROOT=../../.. to keep rpm happy please (eg. with the following patch)?

Please share the .src.rpm :)

-- Pasi

author
#2 lore raw
Quoted 11 lines · Pasi Kärkkäinen
Quoted 9 lines · M A Young

I have been trying to put 4.0.0-rc2 into an RPM, and I got the error "canonicalization unexpectedly shrank by one character" when it was creating files for the debuginfo package. This is because this bit of rpm doesn't like // in paths to file names, and the // comes from the makefile xen-4.0.0/tools/blktap2/drivers/Makefile which sets XEN_ROOT=../../../ and then uses it like $(XEN_ROOT)/tools/libaio/src . XEN_ROOT=../../../ be replaced by XEN_ROOT=../../.. to keep rpm happy please (eg. with the following patch)?

Quoted 1 line

Please share the .src.rpm :)

I am still tidying up to get it to finish, though I think I am almost there, as I have reached the unpackaged files stage.

The list, if you are interested, is
/etc/sysconfig/xend
/usr/bin/remus
/usr/lib/xen/bin/qemu-dm
/usr/lib/xen/bin/stubdompath.sh
/usr/lib64/libconfig.la
/usr/lib64/pkgconfig/libconfig.pc
/usr/sbin/flask-getenforce
/usr/sbin/flask-setenforce
/usr/sbin/gtracestat
/usr/sbin/gtraceview
/usr/sbin/lock-util
/usr/sbin/tapdisk-client
/usr/sbin/tapdisk-diff
/usr/sbin/tapdisk-stream
/usr/sbin/tapdisk2
/usr/sbin/td-util
/usr/sbin/vhd-update
/usr/sbin/vhd-util
/usr/sbin/xen-hvmctx
/usr/sbin/xen-tmem-list-parse
/usr/sbin/xenlockprof
/usr/sbin/xenpaging
/usr/sbin/xl
/usr/share/create.dtd
/usr/share/info/dir
/usr/share/info/libconfig.info.gz

Some clearly need to be deleted and others included, but others like /usr/share/create.dtd are less obvious.

Michael Young

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#3 lore raw
In reply to Pasi Kärkkäinen
Quoted 1 line · Pasi Kärkkäinen

Please share the .src.rpm :)

It is at
http://myoung.fedorapeople.org/dom0/src/xen-4.0.0-0.1.rc2.fc12.src.rpm

I haven't had a chance to do more than build it so I have no idea if it actually works. It is basically xen-3.4.2-1.fc12.src.rpm with the necessary changes to adapt to 4.0.0-rc2 plus an included copy of http://xenbits.xensource.com/git-http/qemu-xen-unstable.git 4.0.0-rc2 to stop it downloading that whole git repository each time it builds.

Michael Young

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

Re: 4.0.0-rc4 srpm

Quoted 4 lines · M A Young
Quoted 2 lines · M A Young

On Thu, 4 Feb 2010, Pasi Kärkkäinen wrote:

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Please share the .src.rpm :)

It is at
http://myoung.fedorapeople.org/dom0/src/xen-4.0.0-0.1.rc2.fc12.src.rpm

That has now been removed and replaced by
http://myoung.fedorapeople.org/dom0/src/xen-4.0.0-0.2.rc4.fc12.src.rpm

This rc4 src.rpm seems to work (=build) for me on Fedora 12 host. Also it seems to boot OK using custom 2.6.31.6 xen/master dom0 kernel.

-- Pasi

#6 lore raw
In reply to M A Young
Quoted 14 lines · M A Young

I have been trying to put 4.0.0-rc2 into an RPM, and I got the error "canonicalization unexpectedly shrank by one character" when it was creating files for the debuginfo package. This is because this bit of rpm doesn't like // in paths to file names, and the // comes from the makefile xen-4.0.0/tools/blktap2/drivers/Makefile which sets XEN_ROOT=../../../ and then uses it like $(XEN_ROOT)/tools/libaio/src . XEN_ROOT=../../../ be replaced by XEN_ROOT=../../.. to keep rpm happy please (eg. with the following patch)?

(quoted diff) +0 -0
 	Michael Young

tools/blktap2/drivers/Makefile line 4

Quoted 5 lines
tools/blktap2/drivers/Makefile renamed from tools/blktap2/drivers/Makefile.orig +1 -1
@@ -1,4 +1,4 @@
-XEN_ROOT=../../../
+XEN_ROOT=../../..
  BLKTAP_ROOT= ..
  include $(XEN_ROOT)/tools/Rules.mk
 

Yes please.

Daniel

#7 lore raw
In reply to M A Young

Thanks. Actually a trailing slash was appended in quite a few places, so I will fix them all at the same time.

-- Keir

Quoted 26 lines · M A Young

I have been trying to put 4.0.0-rc2 into an RPM, and I got the error "canonicalization unexpectedly shrank by one character" when it was creating files for the debuginfo package. This is because this bit of rpm doesn't like // in paths to file names, and the // comes from the makefile xen-4.0.0/tools/blktap2/drivers/Makefile which sets XEN_ROOT=../../../ and then uses it like $(XEN_ROOT)/tools/libaio/src . XEN_ROOT=../../../ be replaced by XEN_ROOT=../../.. to keep rpm happy please (eg. with the following patch)?

Michael Young

--- xen-4.0.0/tools/blktap2/drivers/Makefile.orig 2010-02-02 20:43:00.000000000 +0000
+++ xen-4.0.0/tools/blktap2/drivers/Makefile 2010-02-03 20:55:14.000000000 +0000

tools/blktap2/drivers/Makefile renamed from tools/blktap2/drivers/Makefile.orig +1 -1
@@ -1,4 +1,4 @@
-XEN_ROOT=../../../
+XEN_ROOT=../../..
  BLKTAP_ROOT= ..
  include $(XEN_ROOT)/tools/Rules.mk
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel