Bug#795411: [cowbuilder] cowbuilder doesn't seem to honor an APT Pin?
James Clarke
jrtc27 at jrtc27.com
Thu Mar 24 12:28:38 UTC 2016
Control: reassign -1 pbuilder
Control: tags -1 moreinfo
Hi,
On Thu, 13 Aug 2015 14:45:23 -0400 Chris Knadle <Chris.Knadle at coredump.us> wrote:
> Package: cowbuilder
> Version: 0.73
> Severity: normal
>
> --- Please enter the report below this line. ---
>
> I'm trying to rebuild a chain of build dependencies to work on a package for
> the gcc5 and libstdc++6 transition. What I'm doing is building libraries,
> putting them into a local reprepro repository, and made an APT Pin in the
> chroot to prioritize the local repository to try to get cowbuilder to use
> the newly rebuilt version of the libraries in order to pick up the ABI
> change, without having to modify the source packages of the libraries. This
> means that the library version numbers between the local repository and
> Debian's remote repository are exactly the same.
>
> The APT Pin looks like it's in place correctly as far as I can tell:
>
> # chroot /deb-chroots/amd64-sid-base.cow/
> # apt-cache policy
> Package files:
> 100 /var/lib/dpkg/status
> release a=now
> 1001 ftp://localhost/debian/ sid/main amd64 Packages
> release o=Local_Packages,a=unstable,n=sid,l=Local_Packages,c=main
> origin localhost
> 500 http://ftp.us.debian.org/debian/ sid/main Translation-en
> 500 http://ftp.us.debian.org/debian/ sid/main amd64 Packages
> release o=Debian,a=unstable,n=sid,l=Debian,c=main
> origin ftp.us.debian.org
> Pinned packages:
>
> So I expect that when I try to do a build of avahi that it will pull
> libglib2.0-0 from the local repository because it contains it:
>
> # reprepro list sid
> sid|main|amd64: libglib2.0-0 2.44.1-1.1
> sid|main|amd64: libglib2.0-0-dbg 2.44.1-1.1
> sid|main|amd64: libglib2.0-0-refdbg 2.44.1-1.1
> sid|main|amd64: libglib2.0-bin 2.44.1-1.1
> sid|main|amd64: libglib2.0-data 2.44.1-1.1
> sid|main|amd64: libglib2.0-dev 2.44.1-1.1
> sid|main|amd64: libglib2.0-doc 2.44.1-1.1
> sid|main|amd64: libglib2.0-tests 2.44.1-1.1
> u|sid|main|amd64: libglib2.0-udeb 2.44.1-1.1
> sid|main|i386: libglib2.0-data 2.44.1-1.1
> sid|main|i386: libglib2.0-doc 2.44.1-1.1
> sid|main|source: glib2.0 2.44.1-1.1
>
> But when I attempt to do a build, cowbuilder (or pbuilder) is instead
> pulling libglib2.0-0 from Debian's repository instead:
The interactions with apt are all done by pbuilder (with the
exception of apt-get clean). Have you verified that you can
get the pinning to work *outside* the chroot? I’m not aware of
pbuilder doing anything to stop pinning.
>
> # time nice cowbuilder --build avahi_0.6.31-5.dsc --basepath
> /deb-chroots/amd64-sid-base.cow/
> -> Copying COW directory
> forking: rm -rf /deb-chroots/cow-buildplace/cow.18920
> [...]
> Need to get 32.4 MB/151 MB of archives. After unpacking 499 MB will be used.
> Writing extended state information...
> Get: 1 http://ftp.us.debian.org/debian/ sid/main libglib2.0-0 amd64
> 2.44.1-1.1 [2461 kB]
Regards,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20160324/e65a2d7f/attachment.sig>
More information about the Pbuilder-maint
mailing list