tech-pkg archive

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

Re: rust 1.95 incoming



* On 2026-05-08 at 10:49 BST, Jonathan Perkin wrote:

* On 2026-05-07 at 20:43 BST, Alistair Crooks wrote:

See also https://pkgsrc.se/pkgtools/libkver

Yup.  With a couple of small tweaks this now works, e.g.:

 vars = {
     LD_PRELOAD = "/libkver.so.1",
     LIBKVER_OSRELEASE = "1.4T",
 }

 { action = "copy", src = "/libkver.so.1", dest = "/libkver.so.1" },

The one quirk I'm not fully happy with is that the path needs to be identical both inside and outside the sandbox due to the way the environment is applied, hence not mounting it directly from /usr/pkg/lib.

I'm not sure I can change this in a way that I'm completely happy with. But, with that config applied and running with a small patch, this appears to work:

I fixed it in a way that I'm completely happy with, so this now Just Works, and doesn't require the path to exist outside the sandbox.

I've published 0.99.5 and updated wip/bob, and tested this with a netbsd-9 sandbox. Here's what I did:

 - Unpacked daily netbsd-9 sets from nycdn to /data/netbsd-9-x86_64

 - Ran `what netbsd` to figure out it was 9.4_STABLE.

 - Installed libkver and copied libkver.so.1 to /data/netbsd-9-x86_64/lib

 - Modified config.lua to mount the base system directories from this path
   rather than the system mounts.

 - Set LD_PRELOAD="/lib/libkver.so.1" and LIBKVER_OS_RELEASE="9.4_STABLE" in
   vars.

Seems to work:

  # uname -rsm; gcc -dumpversion
  NetBSD 10.1 amd64
  10.5.0

  # bob dev
  Creating sandbox... done (1.4s)
  Entering sandbox /data/chroot/0...
  sandbox:0 /# uname -rsm; gcc -dumpversion
  NetBSD 9.4_STABLE amd64
  7.5.0

Cheers,

--
Jonathan Perkin                    pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com


Home | Main Index | Thread Index | Old Index