pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: recursive bmake package (packages-depends
On Mon, 7 Mar 2016, Michel Jansens wrote:
Is there a way to ask bmake to create the current package AND all
depending packages?
I don't know about that, but you could get the list by doing something
like this in borne shell variants:
pkg_info | awk '{print $1}' | sort >/tmp/before.txt
# change to the pkg dir you want
cd /usr/pkgsrc/category/foobar
# or bmake if you are not on netbsd
make install
# Store the list of packages now that it's done
pkg_info | awk '{print $1}' | sort >/tmp/after.txt
# Diff them and make passages
NEW_PACKAGES=`diff /tmp/before.txt /tmp/after.txt | grep '>' | awk '{print $2}'`
for PKG in $NEW_PACKAGES ; do
pkg_tarup -d . $PKG
done
The problem with this approach is that if there was a dependancy which
you'd already had built, it wouldn't get "detected" this way. So, it's not
perfect.
If I just could do a ?bmake package-depends? in the pkgin directory, and
that libarchive and xz packages would be created, that would be
wonderfull.
You might try making a pkgsrc sandbox then building there. That way you
know everything that got built there was something you needed as a dep of
your main package. Check out /usr/pkgsrc/mksandbox and friends.
-Swift
Home |
Main Index |
Thread Index |
Old Index