Date: Wed, 01 May 2019 11:48:08 -0400 From: "Dave Cottlehuber" <dch@skunkwerks.at> To: Adam <amvandemore@gmail.com>, Yuri <yuri@rawbw.com> Cc: "FreeBSD Ports" <ports@freebsd.org> Subject: =?UTF-8?Q?Re:_Is_there_a_way_to_build_only_the_port_from_source, _and_ins?= =?UTF-8?Q?tall_dependencies_from_packages_with_the_make_command=3F?= Message-ID: <1e036392-9116-4aed-80b8-63e65642992b@www.fastmail.com> In-Reply-To: <CA%2BtpaK1w_9yk13oUjOQ%2BZb6196WO_F0y7n7FsaeLKofuSgMuBQ@mail.gmail.com> References: <20850a87-edd8-457c-352c-9b3c5baa8781@rawbw.com> <CA%2BtpaK1w_9yk13oUjOQ%2BZb6196WO_F0y7n7FsaeLKofuSgMuBQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 30 Apr 2019, at 21:17, Adam wrote: > On Tue, Apr 30, 2019 at 12:36 PM Yuri <yuri@rawbw.com> wrote: > > > Sometimes instructions to build some port from source are needed. "cd > > /usr/ports/{caregory}/{port-name} && make" rebuilds everything from > > source, including dependencies. > > > > Is there an easy way to make it install missing dependencies with pkg, > > without listing them? I couldn't find such feature. from within the appropriate port directory: function make-depends --description 'installs runtime and buildtime dependencies for a given port' sudo pkg install -r FreeBSD --automatic (make build-depends-list run-depends-list | sed -E -e 's,^.+/([^/]+/[^/]+$),\1,') end function make-pkg --description 'test port build locally' make clean \ check-sanity \ fetch makesum checksum \ extract patch \ configure build \ stage stage-qa \ check-orphans \ check-plist \ package \ && find /tmp/usr/ports -name \*.txz -type f end I use these locally while working on ports - should work similar for you too. A+ Dave
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1e036392-9116-4aed-80b8-63e65642992b>