Using pbuilder-dist to build packages with additional local dependencies
Sam Varshavchik
mrsam at courier-mta.com
Sun Aug 7 18:28:24 UTC 2022
I have several deb packages that I built and installed on 20, with mutual
dependencies.
In preparation for updating from to 20 to 22 I need to rebuild them. This is
what I've been able to figure out so far:
1. I used "pbuilder-dist jammy create" to create a new build environment
2. I used "pbuilder-dist jammy build" to build the first package.
That worked, and I see the new package in ~/pbuilder/jammy_result.
I'm trying to figure out how to do the next step: take the first package
that I just built and add it to the build root in order to build the second
package.
When I built rpm packages for Fedora with mock, I fed my first package to
"mock install" and it installed it into the build root. Then I simply used
the -n option when building the remaining packages, and "mock install" ing
each one.
What is the comparable process with pbuilder?
I think I found what I need to do:
https://blog.anthonywong.net/2014/10/26/how-to-include-local-packages-for-
pbuilder/
Looking at what that blog page says, and reconciling with what I see: I
don't have an existing ~/.pbuilderrc or
/var/cache/pbuilder/hook.d, so I presume that I'll need to create one.
Is this, pretty much, what I need to do? There is no simpler way of just
pulling in a package?
Additionally:
My home directory is on its own partition. As part of the pbuilder build
process there was a bunch of noise like this:
I: new cache content 'autotools-dev_20220109.1_all.deb' added
ln: failed to create hard link
'/home/mrsam/pbuilder/aptcache/ubuntu/autotools-dev_20220109.1_all.deb' =>
'/var/cache/pbuilder/build/363505/var/cache/apt/archives/autotools-
dev_20220109.1_all.deb': Invalid cross-device link
I suppose I can move /var/cache/pbuilder on the (much bigger) /home mount,
if this is crucial, but I'd like to get the local package build dependency
figured out first.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220807/5018a777/attachment.sig>
More information about the ubuntu-users
mailing list