[vserver] Util-vserver debian build error

From: Ghislain <gadnet_at_aqueos.com>
Date: Fri 21 Oct 2011 - 09:25:29 BST
Message-ID: <4EA12C79.5070305@aqueos.com>

hi,

   I wanted to use the debian rules included in the released tool to
build a package for my servers.

  As i used the vserver's default before when i done mine i must add :
--prefix=/usr/local because i hard coded path to the binaries in a lot
of my scripts

   so i just:

edited the debian/rules

changed :

     override_dh_auto_configure:
         dh_auto_configure -- --with-initrddir=/etc/init.d
--enable-release \
                 --enable-apis=NOLEGACY --with-initscripts=sysv

to

     override_dh_auto_configure:
         dh_auto_configure -- --prefix=/usr/local
--with-vrootdir=/vservers --with-initrddir=/etc/init.d --enable-release \
                 --enable-apis=NOLEGACY --with-initscripts=sysv

and edited the postinstall script to change /etc/vservers to
/usr/local/etc/vservers

but then the build fails with this error:

dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/mask2prefix
is not a directory
dh_usrlocal:
debian/util-vserver/usr/local/lib/util-vserver/vservers.grabinfo.sh is
not a directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/exec-ulimit
is not a directory
dh_usrlocal:
debian/util-vserver/usr/local/lib/util-vserver/keep-ctx-alive is not a
directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/save_ctxinfo
is not a directory
dh_usrlocal:
debian/util-vserver/usr/local/lib/util-vserver/vshelper-sync is not a
directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/vprocunhide
is not a directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/capchroot is
not a directory
dh_usrlocal:
debian/util-vserver/usr/local/lib/util-vserver/vserver.suexec is not a
directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/vserver.stop
is not a directory
dh_usrlocal:
debian/util-vserver/usr/local/lib/util-vserver/vserver.start is not a
directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/functions is
not a directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/exec-remount
is not a directory
dh_usrlocal:
debian/util-vserver/usr/local/lib/util-vserver/start-vservers is not a
directory
dh_usrlocal:
debian/util-vserver/usr/local/lib/util-vserver/vserver.delete is not a
directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/chroot-sh is
not a directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/secure-mount
is not a directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/fakerunlevel
is not a directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/lockfile is
not a directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/vsysctl is
not a directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/tunctl is
not a directory
dh_usrlocal: debian/util-vserver util-vserver/vserver.functions is not a
directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/filetime is
not a directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/sigexec is
not a directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/readlink is
not a directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/vshelper is
not a directory
dh_usrlocal: debian/util-vserver/usr/local/lib/util-vserver/chain-echo
is not a directory
dh_usrlocal:
debian/util-vserver/usr/local/lib/util-vserver/check-unixfile is not a
directory
dh_usrlocal:
debian/util-vserver/usr/local/lib/util-vserver/defaults/environment is
not a directory
dh_usrlocal:
debian/util-vserver/usr/local/lib/util-vserver/defaults/mtab is not a
directory
dh_usrlocal:
debian/util-vserver/usr/local/lib/util-vserver/defaults/vprocunhide-files is
not a directory
rmdir: failed to remove
`debian/util-vserver/usr/local/lib/util-vserver/defaults': Directory not
empty
dh_usrlocal: rmdir
debian/util-vserver/usr/local/lib/util-vserver/defaults returned exit code 1
make: *** [binary] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit
status 2

i really do not see why there is an error for such a little
modification, any ideas ?

-- 
Cordialement,
Ghislain

Received on Fri Oct 21 09:26:02 2011
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 21 Oct 2011 - 09:26:02 BST by hypermail 2.1.8