Daniel Jakots <d...@chown.me> writes: > On Wed, 8 Apr 2020 13:12:54 +1000, Stuart Longland > <stua...@longlandclan.id.au> wrote: > >> Silly question… how do you install the dependencies of a port from >> binaries automatically? > > https://man.openbsd.org/bsd.port.mk#FETCH_PACKAGES but it doesn't work > very reliably, sadly. >
I didn't know about that. What I have done is use the print-build-depends target. For example, on my machine: $ cd /usr/ports/telephony/asterisk $ make print-build-depends This port requires package(s) "libssh2-1.9.0 bzip2-1.0.8 lynx-2.8.9rel1p0 libusb1-1.0.21p1 npth-1.6 pcre2-10.33 ..." to build. Then you can copy/paste, or otherwise feed the stuff in between the quote marks, to pkg_add. I do: # make print-build-depends | awk -F \" '{print $2}' | xargs pkg_add Then proceed with building/installing the port of interest. Allan