Ninlives / relocatable.nix

A nix bundler that produces relocatable deployment script for nix store paths.
60 stars 2 forks source link

Unable to bundle busybox #2

Open takeda opened 2 years ago

takeda commented 2 years ago

So I tried to bundle a busybox then run it on linux server.

This is what I did on Mac OS:

nix bundle --bundler github:Ninlives/relocatable.nix nixpkgs#pkgsCross.gnu64.busybox

After copying file on linux:

$ mkdir deployment
$ ./busybox-x86_64-unknown-linux-gnu-1.35.0-deploy/bin/busybox-x86_64-unknown-linux-gnu-1.35.0.deploy -d deployment
$ cd deployment
$ root/bin/busybox
Inconsistency detected by ld.so: ./get-dynamic-info.h: 118: elf_get_dynamic_info: Assertion `info[DT_RUNPATH] == NULL' failed!
Ninlives commented 2 years ago

Can you confirm that the un-bundled version work? I don't think this problem is caused by relocatable.nix, others also encounter similar issues, see https://github.com/NixOS/nixpkgs/issues/137877.

takeda commented 2 years ago

I'm not sure how I can reproduce it without relocatable.nix. The machine where I'm running it, doesn't have Nix installed.