!UUYziobKGGxpovWyAN:nixos.org

Robotnix

228 Members
Build Android (AOSP) using Nix | https://github.com/nix-community/robotnix69 Servers

Load older messages


SenderMessageTime
4 Jun 2025
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Debug env? 14:54:34
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) I can do a --keep-failed 14:55:16
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)That won't work because it uses bind mounts14:55:31
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)I'll add github.com/NixOS/nixpkgs/pull/334924 then14:55:41
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Then you can get in :P14:56:15
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)Shouldn't be necessary, Robotnix has its own debug env functionality14:56:29
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)I did a google search for robotnix docs and gave up when I couldn't find it14:56:43
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) I also ctrl + f''d for debug on the readme 14:57:02
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) I searched the repo for debug and found a lot of things that aren't what you're referencing 14:57:24
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978) If you've defined a robotnix system with foo = lib.robotnixSystem { ... }, you can access the debug env script with foo.config.build.debugEnterEnv 14:57:41
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978) Just remember to cd into an empty directory before, it'll create lots of bind mounts ;) 14:58:04
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)But yeah I agree that robotnix needs better docs14:58:22
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)I'll just add a tmate breakpoint and ssh into the failed build14:58:37
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)seems less janky than making a bunch of bind mounts?14:58:44
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978) in my experience, debugEnterEnv works pretty well 14:58:57
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)
In reply to @matthewcroughan:defenestrate.it
I'll just add a tmate breakpoint and ssh into the failed build
but yeah I suppose that this should work too
14:59:08
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)
user: matthew 🌐 swordfish in /tmp/nix-build-robotnix-lineage_hlte-2025040309.drv-0/build🔒 
❯ fd lineage_hlte.mk
out/soong/Android-lineage_hlte.mk
out/soong/installs-lineage_hlte.mk
out/soong/late-lineage_hlte.mk
out/soong/make_vars-lineage_hlte.mk
14:59:48
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) This is just --keep-failed, did you expect something not to work? 15:00:08
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)Yeah, it should include the sources too15:00:59
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)
[root@swordfish:/tmp/nix-build-robotnix-lineage_hlte-2025040309.drv-0/build]# grep -ri 'Robotnixprebuiltwebview'
out/error.log:Robotnixprebuiltwebview
grep: out/build_error: binary file matches
15:01:25
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978) I mean, I know that --keep-failed won't because the sources are bind-mounted into the workdir during the build process 15:01:27
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)yeah doesn't occur as expected15:01:32
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)Yep15:01:36
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)bu15:01:38
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)* bind mounts in a drv?15:01:42
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)Yep15:01:45
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)it creates its own namespace15:01:51
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)how does that work15:01:51
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)I thought you couldn't do that in a drv15:02:01
@cyclopentane:aidoskyneen.eupentane (DECT CYPT/2978)Copying the sources wouldn't be feasible because they're massive15:02:02

Show newer messages


Back to Room ListRoom Version: 6