!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

986 Members
For people hacking on the Nix package manager itself208 Servers

Load older messages


SenderMessageTime
23 Oct 2021
@bew:matrix.orgbewAnd is there a way to run tests without nix develop / nix-shell ?09:41:20
@enzime:nixos.devEnzime the nix build runs them although that might make for a slow feedback loop :) 09:41:59
@bew:matrix.orgbewI'm retrying a clean build in nix-shell.. we'll see how it goes09:43:12
@bew:matrix.orgbewAnd I didn't have any $LD_LIBRARY_PATH env var09:43:44
@bew:matrix.orgbew * And I didn't have any $LD_LIBRARY_PATH env var when in nix develop 09:43:59
@balsoft:balsoft.rubalsoft
In reply to @bew:matrix.org
FYI I'm making a little change to registry, to solve https://github.com/NixOS/nix/issues/4874 (one of my issues), I did my changes but I can't find test cases. Am I missing something?
Hm, now there's use-registries = false
09:44:26
@bew:matrix.orgbew
In reply to @balsoft:balsoft.ru
Hm, now there's use-registries = false
but that will disable all registries (even the user one) no?
09:44:57
@balsoft:balsoft.rubalsoftYes09:45:07
@balsoft:balsoft.rubalsoftYou only want to disable the global registry?09:45:14
@bew:matrix.orgbewyes09:45:19
@balsoft:balsoft.rubalsoftOk then09:46:05
@bew:matrix.orgbew in my home config I declaratively generate my ~/.config/nix/registry.json for user registry 09:46:13
@bew:matrix.orgbew(I wrote about it earlier today FYI: https://discourse.nixos.org/t/how-to-pin-nix-registry-nixpkgs-to-release-channel/14883/3)09:46:58
@bew:matrix.orgbew

nix-shell fails the same way:

[nix-shell:~/Projects/opensource/nix-stuff/nix]$ make
  GEN    doc/manual/nix.json
/home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/bin/nix: error while loading shared libraries: libboost_context.so.1.76.0: cannot open shared object file: No such file or
directory
make: *** [doc/manual/local.mk:55: doc/manual/nix.json] Error 127

:(

09:58:50
@bew:matrix.orgbew *

nix-shell fails the same way:

[nix-shell:~/Projects/opensource/nix-stuff/nix]$ make
  GEN    doc/manual/nix.json
/home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/bin/nix: error while loading shared libraries: libboost_context.so.1.76.0: cannot open shared object file: No such file or
directory
make: *** [doc/manual/local.mk:55: doc/manual/nix.json] Error 127

😢

09:59:04
@enzime:nixos.devEnzime hm, I wonder why it's looking for 1.76.0 is that the version you're running on Arch? 10:02:42
@bew:matrix.orgbewhmm yes, I have arch packages boost & boost-libs at version 1.76.0-110:05:31
@enzime:nixos.devEnzime I would do an env | grep boost and look for non-Nix paths 10:07:51
@bew:matrix.orgbewthere are no non-Nix paths10:11:30
@bew:matrix.orgbewboost appears in $buildInputs $NIX_CFLAGS_COMPILE and $NIX_LDFLAGS but all in /nix/store, and all about boost 1.69.010:14:12
@enzime:nixos.devEnzime
In reply to @bew:matrix.org
boost appears in $buildInputs $NIX_CFLAGS_COMPILE and $NIX_LDFLAGS but all in /nix/store, and all about boost 1.69.0
yeah I had a look, configure.ac uses AX_BOOST_BASE the definition of which you can see in aclocal.m4
10:35:07
@enzime:nixos.devEnzimehttps://www.gnu.org/software/autoconf-archive/ax_boost_base.html according to docs, it searches FHS paths10:36:26
@enzime:nixos.devEnzimeI'm guessing this just requires setting the correct flags somewhere to use Nix's boost10:36:53
@bew:matrix.orgbew in configure script I've seen there is a flag called --with-boost-libdir maybe we could use that? 10:38:04
@bew:matrix.orgbew * in configure script I've seen there is a flag called --with-boost-libdir=DIR maybe we could use that? 10:38:15
@enzime:nixos.devEnzime possibly --with-boost? not sure if that's for a source root 10:38:24
@enzime:nixos.devEnzime I'm not too familiar with C/C++ build systems, but I'm guessing these are flags for ./configure 10:38:59
@enzime:nixos.devEnzime just to confirm you're using $configureFlags with ./configure right? 10:39:53
@bew:matrix.orgbewRedacted or Malformed Event10:39:58
@bew:matrix.orgbew
In reply to @enzime:nixos.dev
just to confirm you're using $configureFlags with ./configure right?
yes
10:42:48

Show newer messages


Back to Room ListRoom Version: 6