tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: How to bootstrap when sed and awk are unusable
* On 2018-08-08 at 08:19 BST, Benny Siegert wrote:
> On Wed, Aug 8, 2018 at 10:17 AM Jonathan Perkin <jperkin%joyent.com@localhost> wrote:
> >
> > * On 2018-08-08 at 08:11 BST, Benny Siegert wrote:
> >
> > > Because the system has no diff and patch, diffutils is built as a tool
> > > early in the bootstrap and fails with
> >
> > Why? Everything in bootstrap is already unpacked and patched, so
> > there should be no need for this. Try and find out why this is being
> > performed first.
>
> Good point! Somehow, bootstrap-mk-files has a tool dependency on patch.
>
> ===> Installing packages
> ===> running: (cd /usr/local/pkgsrc/pkgtools/bootstrap-mk-files &&
> /usr/local/pkgsrc/bootstrap/work/bin/bmake MAKE_JOBS=8
> PKG_COMPRESSION=none -DPKG_PRESERVE
> MAKECONF=/usr/local/pkgsrc/bootstrap/work/mk.conf install)
> ===> Installing dependencies for bootstrap-mk-files-20170802
> => Tool dependency diffutils>=2.8.1: NOT found
Ok, so looks like it's coming via:
mk/check/bsd.check-vars.mk:USE_TOOLS+= awk cat cmp diff echo find grep rm sed test touch true
which is included unconditionally. Maybe we should skip that if
bootstrapping, or set TOOLS_PLATFORM.cmp=${TRUE} etc in the bootstrap
mk.conf.
--
Jonathan Perkin - Joyent, Inc. - www.joyent.com
Home |
Main Index |
Thread Index |
Old Index