Subject: Re: [vserver] UTils-vserver included debian build on lenny
From: "Daniel Hokka Zakrisson" <daniel@hozac.com>
Date: Fri, 17 Feb 2012 10:28:44 +0100 (CET)

Ghislain wrote:
> hi,
>
>   i have some issue with the included debian packaging of the new
> util-vserver that i cannot solve so i wanted to see if anyone could help:
>
>
> 1/ some of the  packages use a dependancy of diffutils, this package
> does not exist before "squeeze"  preventing the build on any other
> platform. Making it depend on ( diff OR diffutils ) solve that, also
> squeeze has a dummy diff package that can be used:
>
> i
> diff
> - dummy transitional package for diff -> diffutils

Sounds about right.

> 2/ When compiled , for the install  I try to install the packages in
> order one by one but
>
>
>   Package: util-vserver-sysv
>   Depends: util-vserver, make, diff
>
>   Package: util-vserver
>   Depends: util-vserver-core, libvserver0, util-vserver-sysv, diff
>
>
>   so util-vserver depend on sysv, and sysv depend on util-vserver . Is
> it normal or do i made an error compiling the thing somewhere  ?

That's the way it's supposed to be. You have to install the packages all
at once (or at least the ones you're interested in).

> 3/ on lenny the
>
> util-vserver-sysv_0.30.216-pre3004-1_amd64.deb
>
>   if i replace diffutils by diff in the dependancy list and do a
> dpkg-buildpackage -rfakeroot  it is then a broken package that is  not
> containing the start script it has only:
>
> # dpkg --contents util-vserver-sysv_0.30.216-pre3004-1_amd64.deb
> drwxr-xr-x root/root         0 2012-02-17 00:40 ./
> drwxr-xr-x root/root         0 2012-02-17 00:40 ./usr/
> drwxr-xr-x root/root         0 2012-02-17 00:40 ./usr/share/
> drwxr-xr-x root/root         0 2012-02-17 00:40 ./usr/share/doc/
> drwxr-xr-x root/root         0 2012-02-17 00:40
> ./usr/share/doc/util-vserver-sysv/
> -rw-r--r-- root/root      1383 2011-11-29 22:34
> ./usr/share/doc/util-vserver-sysv/copyright
> -rw-r--r-- root/root       158 2011-11-29 22:35
> ./usr/share/doc/util-vserver-sysv/changelog.Debian.gz
> -rw-r--r-- root/root    108592 2011-11-29 22:35
> ./usr/share/doc/util-vserver-sysv/changelog.gz
>
>
> i lack all those file i have on the squeeze version:
>
> -rwxr-xr-x root/root      1603 2012-01-03 21:48
> ./usr/lib/util-vserver/vsysvwrapper
> -rw-r--r-- root/root      2925 2012-01-03 21:48
> ./usr/lib/util-vserver/vserver-init.functions
> -rwxr-xr-x root/root      1959 2012-01-03 21:48
> ./usr/lib/util-vserver/vserver-wrapper
> -rwxr-xr-x root/root      1516 2012-01-03 21:48 ./etc/init.d/vprocunhide
> -rwxr-xr-x root/root      1546 2012-01-03 21:48
> ./etc/init.d/vservers-default
> -rwxr-xr-x root/root      2254 2012-01-03 21:48 ./etc/init.d/util-vserver
>
> i do not know how to debug this, the only error in compilation that i
> can see (many lines so perhaps missed more) are:
>
> dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
> dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
> dpkg-gencontrol: warning: unknown substitution variable ${python:Depends}

I recall debhelper on lenny not being able to use the rules that generate
the file lists, but I'm very foggy on that. A full build log might help.

> If i compile it from the source with a "make" i got those errors:
> <snip>

-- 
Daniel Hokka Zakrisson