| 31 Mar 2024 |
eyJhb | Only to realise that's already what we're doing. | 15:26:56 |
atemu12 | Oh | 15:31:38 |
eyJhb | I might have found a solution. | 15:54:24 |
eyJhb | Trying after this current bisect stage. | 15:54:47 |
eyJhb | https://github.com/NixOS/nixpkgs/issues/262775 | 16:11:41 |
eyJhb | I think I found the reason here. | 16:11:47 |
eyJhb | /usr/lib and /usr/lib32 was removed from LD_LIBRARYPATH in fhsenv. Adding them back as
in buildFHSUserEnv {
name = "robotnix-build";
targetPkgs = pkgs: config.envPackages;
multiPkgs = pkgs: with pkgs; [ zlib ];
profile = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/lib32
'';
};
| 16:12:23 |
eyJhb | * /usr/lib and /usr/lib32 was removed from LD_LIBRARYPATH in fhsenv. Adding them back as
in buildFHSUserEnv {
name = "robotnix-build";
targetPkgs = pkgs: config.envPackages;
multiPkgs = pkgs: with pkgs; [ zlib ];
profile = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/lib32
'';
};
Seems to fix the issue. Currently trying to build.
| 16:12:37 |
eyJhb | https://github.com/NixOS/nixpkgs/pull/263201 | 16:13:10 |
eyJhb | That was incredibly tiring. | 16:13:54 |
atemu12 | Huh so we did finally find a user of that | 16:23:24 |
atemu12 | Thanks for figuring that out | 16:23:43 |
atemu12 | Though I still don't quite understand why it's necessary | 16:24:13 |
atemu12 | Because it shouldn't | 16:24:33 |
atemu12 | The dynamic linker should look inside those dirs | 16:24:56 |
eyJhb | perl: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory | 16:25:51 |
eyJhb | Oh ffs | 16:25:52 |
eyJhb | :( | 16:25:54 |
eyJhb | In reply to @atemu12:matrix.org The dynamic linker should look inside those dirs Isn't it just part of the "magic" that is Android? | 16:26:13 |
eyJhb |  Download image.png | 16:27:04 |
eyJhb | It has a slight complaint | 16:27:06 |
atemu12 | libxcrypt-legacy | 16:28:17 |
eyJhb | Trying again :) | 16:29:26 |
eyJhb | RE the LD_PRELOAD I just placed placed all these as references
https://github.com/NixOS/nixpkgs/issues/103648
https://github.com/NixOS/nixpkgs/issues/112266
https://github.com/NixOS/nixpkgs/issues/262775
https://github.com/NixOS/nixpkgs/pull/263201
https://github.com/NixOS/nixpkgs/pull/278361
| 16:33:47 |
eyJhb | In reply to @atemu12:matrix.org libxcrypt-legacy Added and stilll going | 17:01:36 |
eyJhb | Makes it hard to play games however. I usually notice it has crashed when my game stops lagging. | 17:01:47 |
eyJhb | magic_rb: you asked about build time, right? buildPhase completed in 2 hours 5 minutes 44 seconds | 18:35:44 |
eyJhb | But that was with the ccache | 18:35:48 |
eyJhb | Made initial PR for the bump here :) Would be nice if nixpkgs could be updated 3 year old nixpkgs pinned :D https://github.com/nix-community/robotnix/pull/231 , however, there are a couple of things that should be discussed first. Not sure how viable it is to just say, "Run it with NIXPKGS_ALLOW_INSECURE=1, please" :) | 20:08:16 |
atemu12 | eyJhb: We could set config.allowInsecure | 20:24:58 |