πŸ“• Node [[pkgsrc]]
πŸ“„ pkgsrc.md by @bmann

NetBSD package manager, 20K+ packages, works on [[ChromeOS]]

pkgsrc on ChromeOS

Presentation at FOSDEM 2018: https://docs.google.com/presentation/d/e/2PACX-1vSk7dCv8sNycDkuaHi-vmxZpVjrGLOYbLRXkDW2s9nMrR4a_UGsMsl_GOHi4NOpsOtzpZMp_4U5k7zH/pub?slide=id.p

By https://github.com/bsiegert

  1. Bootstrap with Chromebrew to get gcc then other packages can be installed from source.

crew install gcc linuxheaders

  1. Download tarball http://ftp.netbsd.org/pub/pkgsrc/current/

  2. Extract in /usr/local

  3. Set SH and Run bootstrap

export SH=/bin/bash

cd /usr/local/pkgsrc/bootstrap

./bootstrap \
<p><hr /></p>unprivileged \
<p><hr /></p>prefix /usr/local/pkg \
<p><hr /></p>varbase /usr/local/pkg/var \
<p><hr /></p>pkgdbdir /usr/local/pkg/pkgdb \
<p><hr /></p>cwrappers=no \
<p><hr /></p>prefer-pkgsrc=yes \
<p><hr /></p>make-jobs=6

Currently errors:

sed: -e expression #15, char 34: e/r/w commands disabled in sandbox mode

Had this same issue elsewhere (installing emacs), and installed chromebrew’s sed version, crew install sed. Didn’t work here, likely have to give it the path to chromebrew’s sed.

Loading pushes...

Rendering context...