Re: rust 1.95 incoming

Jonathan Perkin <[email protected]> Fri, 8 May 2026 10:49:23 +0100
Newsgroups gmane.os.netbsd.devel.packages
Message-ID <[email protected]>
* 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:

   # bob dev
   Creating sandbox... done (1.2s)
   Entering sandbox /data/chroot/0...
   sandbox:0 /# uname -a
   NetBSD pkgsrc-nb0 1.4T NetBSD 1.4T (LIBKVER) #0: Tue Jan 19 00:00:00 UTC 2038 root@localhost:/sys/arch/amd64/compile/LIBKVER amd64

and:

   # bob rebuild mktools
   Cleared 1 cached build result(s)
   Creating sandbox... done (1.5s)
   Building packages...
          Built mktools-20250213 (7s)
   Built 1 in 10s (1 succeeded, 0 cached, 0 failed, 0 skipped)
   Destroying sandbox... done (0.5s)
   Generating pkg_summary... done (0.2s)

   # pkg_info -Q OS_VERSION /path/to/All/mktools-20250213.tgz
   1.4T

I'll do a bit more testing and thinking through possible improvements, and 
then hopefully push later.

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