[Pkg-samba-maint] building samba packages from experimental in pbuilder chroot from unstable

Ivo De Decker ivo.dedecker at ugent.be
Tue Jun 18 12:29:18 UTC 2013


Hi Christian,

On Tue, Jun 18, 2013 at 12:24:57PM +0200, Christian PERRIER wrote:
> > So, where do we go from here?  
> 
> We probably need to understand what's happening in my build
> environment.
> 
> I relaunched the built and made cowbuilder list packages in the build
> chroot, as Ivo suggested.

It seems you installed a number of packages from experimental, without an
explicit build-dependency in the samba package. The version from unstable
should be used. One of those might be causing the problem. There are also some
other packages in your chroot that shouldn't be there.

When you create a pbuilder chroot for experimental, pbuilder installs
everything from experimental, which is not what you want. It's better to start
from an unstable chroot and add the experimental sources to that one. That
way, packages from experimental will only be installed if they are needed to
satisfy build-dependencies. This should be similar to what happens on buildds.
To do that, you can add this to your pbuilder config:

-----------------------------------------------------

# experimental: start from unstable chroot
# the distribution must NOT be set to experimental!
DISTRIBUTION=sid

# add experimental sources to the chroot
OTHERMIRROR="deb http://ftp.de.debian.org/debian/ experimental main"
# add these lines to sources.list on build
OVERRIDE_APTLINES=yes

# the sources added above will only be used after an apt-get update
# this environment variable is used by
# /etc/pbuilder/hooks/D01apt-get_update
# to do the apt-get update
export DO_APTGET_UPDATE=1

# set the hookdir for the apt-get update hook
HOOKDIR=/etc/pbuilder/hooks

# for experimental, the aptitude solver is needed to install build-dependencies
# from unstable unless the version specified is only available in experimental
PBUILDERSATISFYDEPENDSCMD=/usr/lib/pbuilder/pbuilder-satisfydepends-aptitude

-----------------------------------------------------

And you need the following hook in /etc/pbuilder/hooks/D01apt-get_update:

-----------------------------------------------------
#! /bin/bash

echo hook $0

if [ -n "$DO_APTGET_UPDATE" ]
then
	apt-get update
fi

-----------------------------------------------------

Could you try to do the build this way?

Cheers,

Ivo



More information about the Pkg-samba-maint mailing list