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 628] New: Tools contain hardcoded paths, and hence don't

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 628] New: Tools contain hardcoded paths, and hence don't work with DESTDIR
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Tue, 25 Apr 2006 05:16:39 -0700
Delivery-date: Tue, 25 Apr 2006 05:17:16 -0700
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: Tools contain hardcoded paths, and hence don't work with
           Product: Xen
           Version: 3.0 (general)
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Tools
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: tethys@xxxxxxxxx

As a general priciple, it's a bad idea to mix system managed binaries with
self compiled ones. Thus I wanted to install the Xen tools under /opt/xen.

The README claims "You can override the destination for make install by
setting DESTDIR to some value.". Sounds ideal. However, while:

DESTDIR=/opt/xen make install

does indeed put the appropriate files under /opt/xen, they don't work.
Firstly, I had to set LD_LIBRARY_PATH and PYTHONPATH to point to the
right place, just to get xend to run at all. But then it just fails
because it can't find the config file. I had to do a recursive grep
just to find out where it was looking for this file (XendRoot.py, as
it turns out), and then read the source to spot that I can override
the default by using the XEND_CONFIG environment variable.

Really, "make install" should notice that and alternative DESTDIR is
being supplied, and make appropriate changes to provide some sensible
defaults. But at the very least, the necessary changes should be
documented somewhere obvious.

Currently, I still don't have a running xend.

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>