| 31 Mar 2024 |
atemu12 | In reply to @eyjhb:eyjhb.dk Feel broken, mostly because I'm not sure what I am even doing. Atemu is lineageos using a prebuilt kernel, and the vanilla and grapheneos is not? Ie. they are built using robotnix? I think so yes | 15:07:10 |
atemu12 | Ah no, nvm I remember: It has kernel sources that are built during the android build | 15:07:36 |
atemu12 | For Vanilla/GOS we use "prebuilt" kernels that we build in Nix | 15:07:59 |
eyJhb | I can't make any sense of the latest error I'm getting. I'm now just trying to bisect nixpkgs, to figure out why libncurses.so.5 suddenly can't be found. | 15:08:01 |
atemu12 | But I have never really touched Vanilla | 15:08:10 |
eyJhb | In reply to @atemu12:matrix.org Ah no, nvm I remember: It has kernel sources that are built during the android build Makes sense :) | 15:08:28 |
eyJhb | I'm going slightly insane over why ncurses5 suddenly can't be found when bumping nixpkgs. It doesn't make much sense to me. | 15:08:54 |
atemu12 | I vaguely remember ncurses being a bit cursed (heh) | 15:09:42 |
eyJhb | Indeed. | 15:09:49 |
atemu12 | https://github.com/NixOS/nixpkgs/issues/89769 | 15:10:03 |
eyJhb | GrapheneOS does SOMETHING funky with it, which I'm doing as well, then it passes the first part. But then fails with another libncurses.so.5 for the bcc_strip_attr | 15:10:28 |
eyJhb | In reply to @atemu12:matrix.org https://github.com/NixOS/nixpkgs/issues/89769 This issue is from 2020, we're using a 2021 nixpkgs version . But might be the issue? | 15:11:18 |
eyJhb | https://github.com/NixOS/nixpkgs/issues/89769#issuecomment-1837374922 | 15:12:55 |
eyJhb | I'm desperate enough to try that :P | 15:13:01 |
eyJhb | https://github.com/NixOS/nixpkgs/issues/103648 found this, had hope | 15:26:48 |
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 |