[xen-tools-discuss] make install doesn't make

Axel Beckert abe at deuxchevaux.org
Thu Sep 9 00:15:30 CEST 2010


Hi,

On Wed, Sep 08, 2010 at 11:47:45PM +0200, Roland Giesler wrote:
> > Have you tried the ubuntu/debian recommended way :
> >
> > make changelog
> > dpkg-buildpackage
> > sudo dpkg -i ../xen-tools_*.deb
> 
> I tried doing this, but the result is as follows:
> 
> roland at vm1:~/Xen/xen-tools$ sudo rm -rf /usr/lib/xen-tools
> 
> (This is based on Axel's response in this thread)
> 
> roland at vm1:~/Xen/xen-tools$ sudo make changelog
> git log -v > ChangeLog

This definitely doesn't need sudo. Use sudo only where really
necessary.

> roland at vm1:~/Xen/xen-tools$ sudo dpkg-buildpackage -d

Root rights are not necessary for this step, either.

If any of the used tools request root rights nevertheless, you can use
the fakeroot command from the fakeroot package instead of sudo.

> dpkg-buildpackage: set CFLAGS to default value: -g -O2
> dpkg-buildpackage: set CPPFLAGS to default value:
> dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
> dpkg-buildpackage: set FFLAGS to default value: -g -O2
> dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
> dpkg-buildpackage: source package xen-tools
> dpkg-buildpackage: source version 4.2~rc2-1
> dpkg-buildpackage: source changed by Axel Beckert <abe at debian.org>
> dpkg-buildpackage: host architecture amd64
>  debian/rules clean
> dh_testdir
> make: dh_testdir: Command not found
> make: *** [clean] Error 127
> dpkg-buildpackage: error: debian/rules clean gave error exit status 2
> 
> I don't know how to deal with this.

To build the package, some more packages (so called build
dependencies) need to be installed:

$ sudo apt-get install debhelper libtest-pod-perl libtext-template-perl

dh_testdir is part of the debhelper suite of packaging helpers.

If you use "debuild" from the devscripts package instead of
"dpkg-buildpackage", it will check first if all build dependencies are
installed and if not all are installed it will tell you which ones are
missing. And it will call fakeroot where necessary, too.

		Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | abe at deuxchevaux.org  (Mail)
 X   See http://www.asciiribbon.org/              | abe at noone.org (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)


More information about the xen-tools-discuss mailing list