!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
6 Jun 2024
@erahhal:matrix.orgerahhal So the one repo it uses when building that is not from github is pantah-kernel. For standard lineage builds, it's using the branch android-14.0.0_r35. Currently greping through the source repos to figure out how the system determines that 23:40:49
@erahhal:matrix.orgerahhalAlso, is it possible to configure the build so that it matches a standard LineageOS build, e.g. I could install over standard lineage and not lose data? Does that involve signing the build? Or anything else?23:41:46
@erahhal:matrix.orgerahhalFound an answer to the first question: https://github.com/LineageOS/android/blob/lineage-21.0/default.xml#L1423:47:37
7 Jun 2024
@erahhal:matrix.orgerahhalOne oddity with ccache is that it never goes much above 1.6G. it will go larger temporarily, then go back down to 1.6G. ccache.conf is present and indeed set to 100G02:59:12
@erahhal:matrix.orgerahhal* One oddity with ccache is that it never goes much above 1.58G. it will go larger temporarily, then go back down to 1.58G. ccache.conf is present and indeed set to 100G03:09:37
@erahhal:matrix.orgerahhalMaybe the conf isn't getting picked up03:20:46
@samueldr:matrix.orgsamueldror the cache doesn't need more space because it's not being exercised?03:54:40
@samueldr:matrix.orgsamueldrif you're rebuilding the same "moral" thing, I would expect the cache won't change size much03:55:06
@samueldr:matrix.orgsamueldr(it's just a guess)04:03:19
@erahhal:matrix.orgerahhalYeah that's totally possible.04:33:44
@atemu12:matrix.orgatemu12
In reply to @erahhal:matrix.org
Also, is it possible to configure the build so that it matches a standard LineageOS build, e.g. I could install over standard lineage and not lose data? Does that involve signing the build? Or anything else?
That should be the default. If it's not, that's a bug
08:27:18
@atemu12:matrix.orgatemu12Though note that your signing keys won't match08:28:50
@atemu12:matrix.orgatemu12You need to migrate the disk state to the new keys though08:32:24
@atemu12:matrix.orgatemu12There's an installable zip somwhere which can do this08:34:11
@jaen:matrix.orgjaen Atemu: is there anything else blocking https://github.com/nix-community/robotnix/pull/236 or could we maybe merge it? I have also rebased https://github.com/nix-community/robotnix/pull/237 on top of it (and used the commit format you seem to prefer). Hopefully it will be easier to merge (unless there's something we'd want to wait for before it?). I have also finally made a PR for the changes to re-enable basic CI (https://github.com/nix-community/robotnix/pull/239), but that might require some more discussion. 11:30:04
@atemu12:matrix.orgatemu12No, just me needing to find the time to take a proper look14:10:37
@erahhal:matrix.orgerahhal I occasionally get ninja: build stopped: subcommand failed. I assume this is due to lack of resources, as it happens less when I unload all desktop apps, and also it's non-deterministic and doesn't seem to be associated with a particular compilation failure. Tried using the -j and --cores flags with nix build. Any other tips to address this? My machine as 32gb memory and 12 cores. 15:37:41
@jaen:matrix.orgjaen If you have /tmp backed by tmpfs you might want to either buy 3x more RAM or back it by a block device. If you don't, then I'm not sure what that could be off-hand 15:42:44
@jaen:matrix.orgjaen * If you have /tmp backed by tmpfs you might want to either buy 3x more RAM or back it by a block device instead. If you don't, then I'm not sure what that could be off-hand 15:43:03
@erahhal:matrix.orgerahhal thx. Doesn't appear to be using tmpfs. 15:54:26
@atemu12:matrix.orgatemu12 erahhal: Check dmesg whether the OOM killer reaped a process 16:12:05
@atemu12:matrix.orgatemu12Make sure you have swap16:12:16
@atemu12:matrix.orgatemu12Even with 32G16:12:37
@erahhal:matrix.orgerahhalYup, got swap16:32:18
@eyjhb:eyjhb.dkeyJhbzramswap! That's what saved my life16:34:13
@erahhal:matrix.orgerahhalthank you i will try that!16:38:02
@atemu12:matrix.orgatemu12Don't combine zram and physical swap16:39:16
@erahhal:matrix.orgerahhalOk, definitely wont16:41:04
@erahhal:matrix.orgerahhalI'm using zfs btw, wonder if it's related16:45:31
@atemu12:matrix.orgatemu12I had Android builds trigger ZFS incompatibilities with newer kernels before16:46:54

Show newer messages


Back to Room ListRoom Version: 6