!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
5 Sep 2021
@kranzes:matrix.orgkranzesJust one thing, before i head to bed, do you think i should restore my backup on my phone and set it up or will you have time to debug this tomorrow and so i will have to "wipe" my phone again?00:36:31
@danielrf:matrix.orgdanielrfI'd bet I'll have an image you can try tomorrow00:39:00
@kranzes:matrix.orgkranzesAlright00:39:40
@kranzes:matrix.orgkranzesGot any ideas yet?00:39:47
@samueldr:matrix.orgsamueldrrandom idea: tried running (e.g. through userspace qemu and binfmt) the boringssl binary as built?01:03:43
@kranzes:matrix.orgkranzesI have no idea how i would go around doing that01:26:56
@kranzes:matrix.orgkranzes * I have no idea how i would go about doing that01:27:03
@danielrf:matrix.orgdanielrf kranzes: OK, i've got another image you can try when you're free: https://drive.google.com/file/d/1YJExVMesL8ZSaRFwAa62YOAdFnM4ChEE/view?usp=sharing 04:42:57
@danielrf:matrix.orgdanielrf This was built with the following command: nix-build --arg configuration '{config,lib,pkgs,...}: {device="miatoll"; productNamePrefix="lineage_"; source.dirs=(lib.importJSON ./repo-miatoll.json); buildDateTime=1630784589; buildNumber="eng.root.20210904.195236"; useReproducibilityFixes=false; variant="userdebug"; envPackages=[pkgs.openssl.dev pkgs.gcc.cc pkgs.glibc.dev];}' -A ota 04:43:24
@danielrf:matrix.orgdanielrfTrying to build this without relying on the lineageos flavor module. I think the biggest differences will be that we 1) aren't using robotnix-built webview/chromium and 2) aren't flattening APEX packages.04:44:40
@danielrf:matrix.orgdanielrfThis is just trying to get closer to the image you uploaded earlier. Also set buildDateTime and buildNumber to match04:44:56
@danielrf:matrix.orgdanielrfMost of the remaining differences I noticed were just package signatures and some debugging sections in the ELF binaries. (which is a little strange, normally the ELF binaries are the easiest to reproduce in android)04:46:15
@danielrf:matrix.orgdanielrf Already tried running boringssl_self_test64 in a qemu user environment and they behave identically with both images. (seemingly successfully) 04:47:31
@danielrf:matrix.orgdanielrfIf this image doesn't work then I'm out of ideas, unfortunately.04:47:39
@danielrf:matrix.orgdanielrf Also, tagged and pushed grapheneos-2021090401. Tested working on crosshatch. 05:13:49
@kranzes:matrix.orgkranzes danielrf IT BOOTS!!!! 11:13:16
@kranzes:matrix.orgkranzesScreenshot_20210905-141612167.jpg
Download Screenshot_20210905-141612167.jpg
11:17:10
@kranzes:matrix.orgkranzesRedacted or Malformed Event11:18:26
@jcie74:matrix.orgpie_nitpick, https://docs.robotnix.org/ still mentions freenode17:07:56
@jcie74:matrix.orgpie_ danielrf: btw, isnt --arg applied everywhere/every function invocation? im always a little weirded out when someone recommends using it 17:44:07
@jcie74:matrix.orgpie_meanwhile, turns out the person offering me the beefy machine for builds cant offer it anymore, so i again need to find someone that can give me build time18:06:32
@jcie74:matrix.orgpie_ * nitpick, https://docs.robotnix.org/ and https://docs.robotnix.org/modules/flavors.html still mentions freenode18:14:16
@samueldr:matrix.orgsamueldr --arg passes the --arg value only to functions it directly encounters AFAIUI; e.g. if the expression you evaluate is a list of function, it will pass the arguments to the functions from that list, but not further.;
This mirrors the nix-build behaviour where building a list of derivations build all of them; if you have a list of expressions needing to be parameterized to produce derivations to build, I guess it makes sense to provide args to all of them
18:34:09
@samueldr:matrix.orgsamueldr (I'm going from the description in the man page, haven't actually seen --arg being given to anything else than a top-level function, and I've been using --arg extensively in Mobile NixOS) 18:35:53
@danielrf:matrix.orgdanielrf
In reply to @jcie74:matrix.org
nitpick, https://docs.robotnix.org/ and https://docs.robotnix.org/modules/flavors.html still mentions freenode
Thanks, just pushed a fix that should propagate to docs.robotnix.org soon
18:36:38
@danielrf:matrix.orgdanielrf My understanding is about --arg matches what samueldr said. The original idea was to have configuration as a top-level argument, so that it matched what NixOS does in nixpkgs/nixos/default.nix. 18:37:50
@danielrf:matrix.orgdanielrf The newer nix command line interface when using flakes does not support --arg on the commandline, you currently have to make a flake.nix and call robotnix.lib.robotnixSystem 18:39:46
@danielrf:matrix.orgdanielrf But if the configuration is short enough (and I'm just testing something out), I like the convenience of specifying the options directly on the command line, as opposed to making a .nix file every time. 18:42:02
@samueldr:matrix.orgsamueldr(off-topic) huh, I didn't know that about flakes... a step backward in UX imho18:42:42
@danielrf:matrix.orgdanielrf kranzes: Hey, that's great! If you're interested in figuring out exactly what is breaking it in the lineageos configuration, you can start commenting out the sections that don't seem needed and testing. Bth, my best guess now actually is the webview configuration overrides we do in the lineageos flavor 18:46:50

Show newer messages


Back to Room ListRoom Version: 6