!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
5 May 2023
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone700MiB seems a bit small, maybe something's missing? 20:57:14
@therivercass:matrix.orgsilent_wateryeah the archive I'm getting is about double that size20:57:35
@therivercass:matrix.orgsilent_waterif you get the store path and list the contents and upload a file with the list, I can tell you if stuff is missing20:57:57
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneSo does it only happen for some devices? I've not seen this bug anywhere but this specific device I'm trying to build 20:58:01
@therivercass:matrix.orgsilent_waterI think it happens whenever you're copying the archive across filesystem boundaries but I'm not entirely sure20:58:24
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneWhat output are you expecting me to build?20:58:47
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone
ser: matthew 🌐 swordfish in nixcfgs on  mc/admin-phone [!?] 
❯ nix build .#robotnixConfigurations.admin-phone.ota -L
warning: Git tree '/home/matthew/git/doesliverpool/nixcfgs' is dirty

user: matthew 🌐 swordfish in nixcfgs on  mc/admin-phone [!?] 
❯ ls -lah result 
lrwxrwxrwx 1 matthew users 78 May  5 21:58 result -> /nix/store/1pr7a8yxfwcyyv8z3m2zh1w8bjqa9z4i-dreamlte-ota_update-2022110721.zip
20:58:57
@therivercass:matrix.orgsilent_waterit's not a consistent thing -- some inputs produce the error with missing files and others don't. but if a set of inputs produces the error, it's going to reliably produce the error20:58:59
@therivercass:matrix.orgsilent_watersignedTargetFiles20:59:16
@therivercass:matrix.orgsilent_wateror unsignedTargetFiles if you don't have signing enabled20:59:51
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone
❯ nix build .#robotnixConfigurations.admin-phone.unsignedTargetFiles -L
warning: Git tree '/home/matthew/git/doesliverpool/nixcfgs' is dirty
trace: warning: dreamlte is not an officially-supported device for LineageOS
error: flake output attribute 'robotnixConfigurations.admin-phone.unsignedTargetFiles' evaluates to the string '/nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip' which is not a store path

user: matthew 🌐 swordfish in nixcfgs on  mc/admin-phone [!?] took 2s 
❯ ^C

user: matthew 🌐 swordfish in nixcfgs on  mc/admin-phone [!?] 
❯ ls -lah /nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip
-r--r--r-- 2 root root 1.8G Jan  1  1970 /nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip
21:01:27
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone *
❯ nix build .#robotnixConfigurations.admin-phone.unsignedTargetFiles -L
warning: Git tree '/home/matthew/git/doesliverpool/nixcfgs' is dirty
trace: warning: dreamlte is not an officially-supported device for LineageOS
error: flake output attribute 'robotnixConfigurations.admin-phone.unsignedTargetFiles' evaluates to the string '/nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip' which is not a store path

user: matthew 🌐 swordfish in nixcfgs on  mc/admin-phone [!?] 
❯ ls -lah /nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip
-r--r--r-- 2 root root 1.8G Jan  1  1970 /nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip
21:01:38
@therivercass:matrix.orgsilent_water use libarchive's bsdtar to list the contents with nix shell nixpkgs#libarchive -c "bsdtar" -- $(nix build <your flake>#<android image config>.signedTargetFiles) 21:02:59
@therivercass:matrix.orgsilent_waterI think that should work anyway21:03:04
@therivercass:matrix.orgsilent_water * use libarchive's bsdtar to list the contents with nix shell nixpkgs#libarchive -c "bsdtar" -- tvf $(nix build <your flake>#<android image config>.signedTargetFiles) 21:03:18
@therivercass:matrix.orgsilent_wateroh and redirect that to a file. the output will be massive whether or not there are missing files21:04:39
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone signedTargetFiles doesn't work because I'm not signing anything, and unsignedTargetFiles results in error: flake output attribute 'robotnixConfigurations.admin-phone.unsignedTargetFiles' evaluates to the string '/nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip' which is not a store path 21:11:57
@therivercass:matrix.orgsilent_waterswap to nix eval instead of nix build21:12:51
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone bsdtar: Must specify one of -c, -r, -t, -u, -x 21:13:29
@therivercass:matrix.orgsilent_wateryeah prefix the nix eval output with tvf21:13:52
@therivercass:matrix.orgsilent_waterI realized my mistake and edited right after sending21:14:12
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone nix shell nixpkgs#libarchive -c "bsdtar" -- tvf $(nix eval .#robotnixConfigurations.admin-phone.unsignedTargetFiles) 21:14:51
@therivercass:matrix.orgsilent_wateryep21:14:58
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI'm saying that returns "must specify one of"21:15:07
@therivercass:matrix.orgsilent_wateroh maybe it's not stripping the --21:15:18
@therivercass:matrix.orgsilent_watertry removing that21:15:22
@therivercass:matrix.orgsilent_waterI always forget which commands need that which ones don't21:15:33
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneYup that did it21:15:45
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone
nix shell nixpkgs#libarchive --command "bsdtar" -tvf $(nix eval .#robotnixConfigurations.admin-phone.unsignedTargetFiles)
warning: Git tree '/home/matthew/git/doesliverpool/nixcfgs' is dirty
trace: warning: dreamlte is not an officially-supported device for LineageOS
bsdtar: Error opening archive: Failed to open '"/nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip"'

21:15:46
@therivercass:matrix.orgsilent_waterif you copy that file path and ls does the archive exist?21:16:09

Show newer messages


Back to Room ListRoom Version: 6