!UUYziobKGGxpovWyAN:nixos.org

Robotnix

248 Members
Build Android (AOSP) using Nix | https://github.com/danielfullmer/robotnix76 Servers

Load older messages


SenderMessageTime
31 Mar 2024
@atemu12:matrix.orgatemu12
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:matrix.orgatemu12Ah no, nvm I remember: It has kernel sources that are built during the android build15:07:36
@atemu12:matrix.orgatemu12For Vanilla/GOS we use "prebuilt" kernels that we build in Nix15:07:59
@eyjhb:eyjhb.dkeyJhbI 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:matrix.orgatemu12But I have never really touched Vanilla15:08:10
@eyjhb:eyjhb.dkeyJhb
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:eyjhb.dkeyJhbI'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:matrix.orgatemu12I vaguely remember ncurses being a bit cursed (heh)15:09:42
@eyjhb:eyjhb.dkeyJhbIndeed.15:09:49
@atemu12:matrix.orgatemu12https://github.com/NixOS/nixpkgs/issues/8976915:10:03
@eyjhb:eyjhb.dkeyJhbGrapheneOS 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_attr15:10:28
@eyjhb:eyjhb.dkeyJhb
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:eyjhb.dkeyJhbhttps://github.com/NixOS/nixpkgs/issues/89769#issuecomment-183737492215:12:55
@eyjhb:eyjhb.dkeyJhbI'm desperate enough to try that :P15:13:01
@eyjhb:eyjhb.dkeyJhbhttps://github.com/NixOS/nixpkgs/issues/103648 found this, had hope15:26:48
@eyjhb:eyjhb.dkeyJhbOnly to realise that's already what we're doing.15:26:56
@atemu12:matrix.orgatemu12Oh15:31:38
@eyjhb:eyjhb.dkeyJhbI might have found a solution.15:54:24
@eyjhb:eyjhb.dkeyJhbTrying after this current bisect stage.15:54:47
@eyjhb:eyjhb.dkeyJhbhttps://github.com/NixOS/nixpkgs/issues/26277516:11:41
@eyjhb:eyjhb.dkeyJhbI think I found the reason here.16:11:47
@eyjhb:eyjhb.dkeyJhb

/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:eyjhb.dkeyJhb *

/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:eyjhb.dkeyJhbhttps://github.com/NixOS/nixpkgs/pull/26320116:13:10
@eyjhb:eyjhb.dkeyJhbThat was incredibly tiring.16:13:54
@atemu12:matrix.orgatemu12Huh so we did finally find a user of that 16:23:24
@atemu12:matrix.orgatemu12Thanks for figuring that out16:23:43
@atemu12:matrix.orgatemu12Though I still don't quite understand why it's necessary16:24:13
@atemu12:matrix.orgatemu12Because it shouldn't16:24:33
@atemu12:matrix.orgatemu12The dynamic linker should look inside those dirs16:24:56

Show newer messages


Back to Room ListRoom Version: 6