WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] RFC: Partially revert xen-unstable c/s 23071:a3466b005017

To: xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <keir@xxxxxxx>, Jonathan Ludlam <jonathan.ludlam@xxxxxxxxxxxxx>
Subject: [Xen-devel] RFC: Partially revert xen-unstable c/s 23071:a3466b005017
From: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>
Date: Tue, 18 Oct 2011 14:53:58 +0100
Cc:
Delivery-date: Tue, 18 Oct 2011 06:54:49 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=7UaFeTZvLMYNdIvyn+JK9e5lHH4h8HfEQsKxpvKYt5c=; b=lgj65XQYFI4BQAYS+Ty1e/leCHaMQ7FFVVlNL4+adxv9I75LPGWBusbFekHhCsj572 vWnCYZ+wmJCNcSAIpe5DpQAtZXwy+n9MFB+XmSwrRnqJ/izXRVsXQy5Cof6CYNULWca9 IUqh3hHcXlvs82NcrDJQSBSe1+JS/6mLo4cKY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
When trying to make a XenServer branch with xen-server, I managed to
get Xen to build, but when I tried to use some of the ocaml output, I
got the following errors:

gcc: 
/bind/obj/RPM_BUILD_DIRECTORY/xen-4.2.unstable/tools/ocaml/libs/xc/../../../../tools/libxc/libxenctrl.so:
No such file or directory
gcc: 
/bind/obj/RPM_BUILD_DIRECTORY/xen-4.2.unstable/tools/ocaml/libs/xc/../../../../tools/libxc/libxenguest.so:
No such file or directory


It appears that somehow the change made in 23071:a3466b005017 ended up
putting in a hard-link to the exact directory of the library in the
resulting .ml files, which is only used when someone attempts to
actually use those files.  Since, of course, those exact directories
are gone when the RPM build is over, this doesn't work very well. :-)

The attached patch reverts the parts of 23071 which pertains to
tools/ocaml/libs/xc, and the resulting *.ml files work properly again.
 But I'm not sure what the desired approach is going forward -- I'm
not familiar enough with the ocaml link process to know what a
"proper" fix would be (i.e., one which accomplishes the goal of 23071)

 -George

Attachment: 20111018-ocaml-no-hard-links.diff
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel