pkgsrc-Users archive

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

Re: Error boostraping: list-dependencies: nawk not found



It turns out that alpine linux built-in awk is the busy-box
implementation, which does not work well with pkgsrc bootstrap.

I did install nawk to host system `apk add nawk` but pkgsrc bootstrap
still cannot pick it up. I think this is a problem. I ended up fixing
this issue by installing GNU awk `apk add gawk`, which solved the
issue.

I've patch here to update the README.Linux regarding alpine linux:


--- bootstrap/README.Linux.orig
+++ bootstrap/README.Linux
@@ -35,6 +35,11 @@

        apk add coreutils

+Alpine's built-in awk is from busy-box, which cannot be used to bootstrap. So
+install GNU awk:
+
+       apk add gawk
+
 # Debian and derivatives

 For Debian and derivatives such as Ubuntu the following packages should be

On Sat, Jan 13, 2024 at 10:51 PM klu <kludev%gmail.com@localhost> wrote:
>
> I'm trying to bookstrap pkgsrc on vanilla alpine linux. Bootstrap
> failed quite early on on making some of the `pkgtools`. E.g.,
> `cwrappers`, e.g.:
>
> ```
> ===> running: (cd /root/pkgsrc/pkgtools/cwrappers &&
> /root/pkgsrc/bootstrap/work/bin/bmake  MAKE_JOBS=3
> PKG_COMPRESSION=none PKGSRC_KEEP_BIN_PKGS=no
> MAKECONF=/root/pkgsrc/bootstrap/work/mk.conf install)
> /root/pkgsrc/mk/pkgformat/pkg/list-dependencies: line 47:
> /usr/pkg/bin/nawk: not found
> ```
>
> I also tried bookstrap without cwrappers: `./bootstrap --cwrappers
> no`. It failed at making the next `pkgtool` package (I don't remember
> which), with a similar error above.
>
> Here's the full log: https://envs.sh/FIp.txt
>
> Any idea what went wrong? Thanks!


Home | Main Index | Thread Index | Old Index