Robotnix | 266 Members | |
| Build Android (AOSP) using Nix | https://github.com/danielfullmer/robotnix | 84 Servers |
| Sender | Message | Time |
|---|---|---|
| 5 Sep 2021 | ||
| Just 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 | |
| I'd bet I'll have an image you can try tomorrow | 00:39:00 | |
| Alright | 00:39:40 | |
| Got any ideas yet? | 00:39:47 | |
| random idea: tried running (e.g. through userspace qemu and binfmt) the boringssl binary as built? | 01:03:43 | |
| I have no idea how i would go around doing that | 01:26:56 | |
| * I have no idea how i would go about doing that | 01:27:03 | |
| 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 | |
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 | |
| Trying 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 | |
| This is just trying to get closer to the image you uploaded earlier. Also set buildDateTime and buildNumber to match | 04:44:56 | |
| Most 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 | |
Already tried running boringssl_self_test64 in a qemu user environment and they behave identically with both images. (seemingly successfully) | 04:47:31 | |
| If this image doesn't work then I'm out of ideas, unfortunately. | 04:47:39 | |
Also, tagged and pushed grapheneos-2021090401. Tested working on crosshatch. | 05:13:49 | |
| danielrf IT BOOTS!!!! | 11:13:16 | |
Download Screenshot_20210905-141612167.jpg | 11:17:10 | |
| Redacted or Malformed Event | 11:18:26 | |
| nitpick, https://docs.robotnix.org/ still mentions freenode | 17:07:56 | |
| danielrf: btw, isnt --arg applied everywhere/every function invocation? im always a little weirded out when someone recommends using it | 17:44:07 | |
| 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 time | 18:06:32 | |
| * nitpick, https://docs.robotnix.org/ and https://docs.robotnix.org/modules/flavors.html still mentions freenode | 18:14:16 | |
--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 | |
(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 | |
In reply to @jcie74:matrix.orgThanks, just pushed a fix that should propagate to docs.robotnix.org soon | 18:36:38 | |
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 | |
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 | |
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 | |
| (off-topic) huh, I didn't know that about flakes... a step backward in UX imho | 18:42:42 | |
| 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 | |