pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: proposal to make bootstrap on Linux prefer pkgsrc by default.

"Jonathan Perkin" <> 11 August 2020, 16:07:04:
> You can pass --full to bootstrap to force lang/nawk to be built and
> used, so you shouldn't need to do this manually.

Unless there's awk in PATH, --full exits with an error.

> I don't think adding detection to do this automatically would be a
> great idea, awk is a mandatory utility and there needs to be some
> cut-off point where anyone deliberately running a system without it or
> some other critical command will need to just work this out for
> themselves, otherwise where do we stop down the rabbit hole of trying
> to bootstrap everything from nothing.

Ideally at cc, sed, and sh. But other required bootstrap utils are all
much simpler than awk, essentially wrappers around libc functions:
cat, chmod, cp, echo, dirname, groups, id, ln, ls, mkdir, rm, rmdir,
tr, uname, whoami. All of them are present in sbase+ubase and toybox,
which are both common starting points for modern embedded Linux, and
neither implements awk (both provide sed though). Since pkgsrc tree
contains its own awk source, why require one from a base system?

Home | Main Index | Thread Index | Old Index