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-users] xen-4.0-testing.hg - Debian vs Redhat layout patch options

To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: [Xen-users] xen-4.0-testing.hg - Debian vs Redhat layout patch options
From: user virtual <virtualusr@xxxxxxxxx>
Date: Sun, 23 Jan 2011 05:04:49 +0530
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, Bruce Edge <bruce.edge@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 22 Jan 2011 19:03:14 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to:cc :content-type; bh=F3j2QP0wdFT3bqh2WUVwpYL11Ta/bg7hIDFHJw0nudw=; b=b2t+Z+9fSHRm6YKLAP5p6H7y0ZFHlyHnfOZ20vCqq84knjrlbBbnT917O1pGhUrrkd a8QgYuIQcLdt04YMAqHX1vRuugN2x15/j7iOTJe437YerCw9UuMtp+nlhKg6M825CtzO gvQotQgbieWwAzXTHNelqbR2aAhjCU3cH//8U=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=DMb3zFQLmdalYzTs6ixLOdAmUuWCnw87rc/iga1PY5CqdR/PQ0oqSk6HIZ84LhJfmu QWfmVDLr61VNAt6WT2MghzZKzJiByB1XWAO9v6gE9YdOEtwcoIAeL8dCn22Si0opGsh+ FEMv/wjoc28E/xsystI+0zbqmKn2XciIxieis=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Guys !

I am forwarding my latest experiences for building xen-4.0.x releases on debian based systems (ubuntu 10.04).

I find the following patches missing in xen-4.0-testing.hg :
- backport-StdGNU.mk.diff  (from xen.unstable)
- backport-blktap2-libs.diff  (from xen.unstable)
- debian-sysconfig-default.diff  (my personal, dirty, but non-intrusive solution for non-debian systems)

Issues for Debian package maintainer:
- After you apply backport-StdGNU.mk.diff debian/rules must include line
export LIBLEAFDIR_x86_64 = lib
- Python modules get correctly packaged in debian/rules by using command dh_pysupport
- In order for debian package builder command 'dpkg-buildpackage' to succeed the "env -u LDFLAGS" must be used in debian/rules makefile on two commands:
env -u LDFLAGS make install-xen
env -u LDFLAGS make install-stubdom

An issue for anybody trying to build-install without debian packages by 'make dist; make dist-install'. Python modules get installed to the wrong path by default. This can be resolved by either:
- (my personal, dirty, but nonintrusive solution) applying patch debian-python-2.6.diff after previously applied the above debian-sysconfig-default.diff
- (xen developers suggestion, not running personally) run make as 'PYTHON_PREFIX_ARG="" make dist'. Builds ok and installs python modules under /usr/local/lib/python2.6/dist-packages.

I suggest applying the above three patches to the xen-4.0-testing.hg. At least the first two should pose no problem as they backport working solutions from the coming xen version. I am not missing debian-python-2.6.diff personally, as I always build packages, but there might be other opinions out there.

Resolving the above issues related to the attached 4 patches makes xen-4.0-testing.hg 100% debian compatible; well, according to my personal experience.

For an example of debian packager script see:

Best regards

Attachment: backport-StdGNU.mk.diff
Description: Binary data

Attachment: backport-blktap2-libs.diff
Description: Binary data

Attachment: debian-sysconfig-default.diff
Description: Binary data

Attachment: debian-python-2.6.diff
Description: Binary data

Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>