Re: pbuilder not updating

2022-07-14 Thread Matt Barry
On Fri, 2022-07-15 at 08:47 +0800, Paul Wise wrote:
> On Thu, 2022-07-14 at 17:49 -0400, Matt Barry wrote:
> 
> > I imagine I'm missing something simple wrt pbuilder.. any ideas
> > where
> > to look?
> 
> Are you getting any errors from the pbuilder update command?

No, however..

> Are you updating the same chroot as you are building with?

No :)

I'll figure out which configs belong where, but long story short,
'pbuilder update' and 'git-pbuilder update' were working on two
different chroots.

Thanks!

> 
> You can also add a hook that does apt update before the build:
> 
>    ==> ~/.pbuilder/hooks/D01update <==
>    #!/bin/bash
>    exec apt-get update

Strangely this did not do anything.. hmm.

>    
> Sometimes it is useful to have a shell during the build, which you
> can use to do things you forgot to do in the packaging or elsewhere.
> 
>    ==> ~/.pbuilder/hooks/A00shell -> shell <==
>    ==> ~/.pbuilder/hooks/B00shell -> shell <==
>    ==> ~/.pbuilder/hooks/C00shell -> shell <==
>    ==> ~/.pbuilder/hooks/D00shell -> shell <==
>    ==> ~/.pbuilder/hooks/E00shell -> shell <==
>    ==> ~/.pbuilder/hooks/G00shell -> shell <==
>    ==> ~/.pbuilder/hooks/H00shell -> shell <==
>    ==> ~/.pbuilder/hooks/I00shell -> shell <==
>    ==> ~/.pbuilder/hooks/shell <==
>    #!/bin/bash
>    exec /bin/bash -i  /dev/tty 2> /dev/tty
> 
> There are various pbuilder hook examples here:
> 
>    /usr/share/doc/pbuilder/examples

Cool, thanks!

Cheers,
Matt


signature.asc
Description: This is a digitally signed message part


Re: pbuilder not updating

2022-07-14 Thread Paul Wise
On Thu, 2022-07-14 at 17:49 -0400, Matt Barry wrote:

> I imagine I'm missing something simple wrt pbuilder.. any ideas where
> to look?

Are you getting any errors from the pbuilder update command?

Are you updating the same chroot as you are building with?

You can also add a hook that does apt update before the build:

   ==> ~/.pbuilder/hooks/D01update <==
   #!/bin/bash
   exec apt-get update
   
Sometimes it is useful to have a shell during the build, which you
can use to do things you forgot to do in the packaging or elsewhere.

   ==> ~/.pbuilder/hooks/A00shell -> shell <==
   ==> ~/.pbuilder/hooks/B00shell -> shell <==
   ==> ~/.pbuilder/hooks/C00shell -> shell <==
   ==> ~/.pbuilder/hooks/D00shell -> shell <==
   ==> ~/.pbuilder/hooks/E00shell -> shell <==
   ==> ~/.pbuilder/hooks/G00shell -> shell <==
   ==> ~/.pbuilder/hooks/H00shell -> shell <==
   ==> ~/.pbuilder/hooks/I00shell -> shell <==
   ==> ~/.pbuilder/hooks/shell <==
   #!/bin/bash
   exec /bin/bash -i  /dev/tty 2> /dev/tty

There are various pbuilder hook examples here:

   /usr/share/doc/pbuilder/examples

More pbuilder tips and tricks here:

   https://wiki.debian.org/PbuilderTricks

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


pbuilder not updating

2022-07-14 Thread Matt Barry
Hi,

I'm using `gbp buildpackage` with pbuilder, and I'm running into an
issue that I've seen a few times.  The build fails because the build
dependencies cannot be satisfied; looking at the failure: 

Err http://deb.debian.org/debian sid/main amd64 python3-django all
2:4.0.5-2
  404  Not Found [IP: 151.101.118.132 80]

but on my machine:

$ apt show python3-django
Package: python3-django
Version: 2:4.0.6-1

..it would seem that the pbuilder env is using an out of date package
index.  I have tried 'pbuilder update', 'pbuilder create'.. with the
same results.  The really odd thing is that if I use 'pbuilder login',
I can install python3-django (4.0.6-1) no problem.

I imagine I'm missing something simple wrt pbuilder.. any ideas where
to look?

Thanks!
Matt


signature.asc
Description: This is a digitally signed message part