Date: Fri, 3 May 2019 16:15:33 +0200 From: Samy Mahmoudi <samy.mahmoudi@gmail.com> To: Dave Cottlehuber <dch@skunkwerks.at> Cc: Adam <amvandemore@gmail.com>, Yuri <yuri@rawbw.com>, FreeBSD Ports <ports@freebsd.org> Subject: Re: Is there a way to build only the port from source, and install dependencies from packages with the make command? Message-ID: <CAFigVTMqxzA=O8ZGYS474zmV0xcmzk7fSJigUvyAXZvWcVjFpQ@mail.gmail.com> In-Reply-To: <1e036392-9116-4aed-80b8-63e65642992b@www.fastmail.com> References: <20850a87-edd8-457c-352c-9b3c5baa8781@rawbw.com> <CA%2BtpaK1w_9yk13oUjOQ%2BZb6196WO_F0y7n7FsaeLKofuSgMuBQ@mail.gmail.com> <1e036392-9116-4aed-80b8-63e65642992b@www.fastmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Yuri, With the following in my .zshrc, I just run "ibd" before making a particular port: function ibd () { # Can also make all-depends-list pkg install --yes $(make build-depends-list run-depends-list | sort -u | sed 's/\/usr\/ports\///') } Modify at will. Le mer. 1 mai 2019 =C3=A0 17:49, Dave Cottlehuber <dch@skunkwerks.at> a =C3= =A9crit : > 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 > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFigVTMqxzA=O8ZGYS474zmV0xcmzk7fSJigUvyAXZvWcVjFpQ>