| 24 Dec 2024 |
atemu12 | (Without signing it yourself with your own key again.) | 22:19:36 |
oak 🏳️🌈♥️ | https://github.com/nix-community/robotnix/blob/master/modules/apps/chromium.nix#L127-L130 I'm just looking at this | 22:21:12 |
oak 🏳️🌈♥️ | If you don't provide a signing key, then it is changed to some "snake oil" key | 22:21:26 |
atemu12 | My understanding is that this snake oil signature is later replaced with the actual signature | 22:22:00 |
atemu12 | But, again, I never used signing | 22:22:10 |
countoren | Hi, I was looking at your response and back to my code I do have the latest commit ``` ddefce63fe8ec896c24325e1680959a893a581ff
with this flake
{ description = "Robotnix configuration for OnePlus 8 Pro";
inputs.robotnix.url = "github:danielfullmer/robotnix";
outputs = { self, robotnix }: { robotnixConfigurations."oneplus8pro" = robotnix.lib.robotnixSystem ({ config, pkgs, ... }: { # Required options device = "instantnoodlep"; # Codename for OnePlus 8 Pro flavor = "lineage-20.0"; # Change this to 'lineageos' if you want LineageOS, otherwise keep 'grapheneos' if supported
# Optional configurations
# buildDateTime = 1584398664; # Update if you want to push OTA updates for your custom changes
# If you have keys for signing, enable this
# signing.enable = true;
# signing.keyStorePath = "/var/secrets/android-keys";
# Enable ccache if you want faster subsequent builds
# ccache.enable = true;
apps.chromium.enable = false;
});
# Default package for building the image
defaultPackage.x86_64-linux = self.robotnixConfigurations."oneplus8pro".img;
}; }
getting back
error: builder for '/nix/store/jgw8vkv0rg819c3m9d1a9dwl25xwfdnk-build=make-patched.drv' failed with exit code 1; last 25 log lines: > Perhaps you used the wrong -p or --strip option? > The text leading up to this was: > -------------------------- > |diff --git a/core/definitions.mk b/core/definitions.mk > |index c5fe76b606..5c8f85b4a4 100644 > |--- a/core/definitions.mk > |+++ b/core/definitions.mk > -------------------------- > File to patch: > Skip this patch? [y] > Skipping patch. > 4 out of 4 hunks ignored > can't find file to patch at input line 100 > Perhaps you used the wrong -p or --strip option? > The text leading up to this was: > -------------------------- > |diff --git a/tools/libhost/CopyFile.c b/tools/libhost/CopyFile.c > |index f9bda86fd1..44b36e4bdf 100644 > |--- a/tools/libhost/CopyFile.c > |+++ b/tools/libhost/CopyFile.c > -------------------------- > File to patch: > Skip this patch? [y] > Skipping patch. > 1 out of 1 hunk ignored For full logs, run 'nix log /nix/store/jgw8vkv0rg819c3m9d1a9dwl25xwfdnk-build=make-patched.drv'.
| 22:26:12 |
countoren | * Hi, I was looking at your response and back to my code I do have the latest commit
ddefce63fe8ec896c24325e1680959a893a581ff
with this flake
{ description = "Robotnix configuration for OnePlus 8 Pro";
inputs.robotnix.url = "github:danielfullmer/robotnix";
outputs = { self, robotnix }: { robotnixConfigurations."oneplus8pro" = robotnix.lib.robotnixSystem ({ config, pkgs, ... }: {
Required options
device = "instantnoodlep"; # Codename for OnePlus 8 Pro flavor = "lineage-20.0"; # Change this to 'lineageos' if you want LineageOS, otherwise keep 'grapheneos' if supported
# Optional configurations
# buildDateTime = 1584398664; # Update if you want to push OTA updates for your custom changes
# If you have keys for signing, enable this
# signing.enable = true;
# signing.keyStorePath = "/var/secrets/android-keys";
# Enable ccache if you want faster subsequent builds
# ccache.enable = true;
apps.chromium.enable = false;
});
# Default package for building the image
defaultPackage.x86_64-linux = self.robotnixConfigurations."oneplus8pro".img;
}; }
getting back
error: builder for '/nix/store/jgw8vkv0rg819c3m9d1a9dwl25xwfdnk-build=make-patched.drv' failed with exit code 1; last 25 log lines: > Perhaps you used the wrong -p or --strip option? > The text leading up to this was: > -------------------------- > |diff --git a/core/definitions.mk b/core/definitions.mk > |index c5fe76b606..5c8f85b4a4 100644 > |--- a/core/definitions.mk > |+++ b/core/definitions.mk > -------------------------- > File to patch: > Skip this patch? [y] > Skipping patch. > 4 out of 4 hunks ignored > can't find file to patch at input line 100 > Perhaps you used the wrong -p or --strip option? > The text leading up to this was: > -------------------------- > |diff --git a/tools/libhost/CopyFile.c b/tools/libhost/CopyFile.c > |index f9bda86fd1..44b36e4bdf 100644 > |--- a/tools/libhost/CopyFile.c > |+++ b/tools/libhost/CopyFile.c > -------------------------- > File to patch: > Skip this patch? [y] > Skipping patch. > 1 out of 1 hunk ignored For full logs, run 'nix log /nix/store/jgw8vkv0rg819c3m9d1a9dwl25xwfdnk-build=make-patched.drv'.
| 22:26:49 |
countoren | * Hi, I was looking at your response and back to my code I do have the latest commit
ddefce63fe8ec896c24325e1680959a893a581ff
with this flake
{
description = "Robotnix configuration for OnePlus 8 Pro";
inputs.robotnix.url = "github:danielfullmer/robotnix";
outputs = { self, robotnix }: {
robotnixConfigurations."oneplus8pro" = robotnix.lib.robotnixSystem ({ config, pkgs, ... }: {
# Required options
device = "instantnoodlep"; # Codename for OnePlus 8 Pro
flavor = "lineage-20.0"; # Change this to 'lineageos' if you want LineageOS, otherwise keep 'grapheneos' if supported
Optional configurations
buildDateTime = 1584398664; # Update if you want to push OTA updates for your custom changes
If you have keys for signing, enable this
signing.enable = true;
signing.keyStorePath = "/var/secrets/android-keys";
Enable ccache if you want faster subsequent builds
ccache.enable = true;
apps.chromium.enable = false; });
Default package for building the image
defaultPackage.x86_64-linux = self.robotnixConfigurations."oneplus8pro".img;
};
}
getting back
error: builder for '/nix/store/jgw8vkv0rg819c3m9d1a9dwl25xwfdnk-build=make-patched.drv' failed with exit code 1;
last 25 log lines:
\> Perhaps you used the wrong -p or --strip option?
\> The text leading up to this was:
\> --------------------------
\> |diff --git a/core/definitions.mk b/core/definitions.mk
\> |index c5fe76b606..5c8f85b4a4 100644
\> |--- a/core/definitions.mk
\> |+++ b/core/definitions.mk
\> --------------------------
\> File to patch:
\> Skip this patch? \[y\]
\> Skipping patch.
\> 4 out of 4 hunks ignored
\> can't find file to patch at input line 100
\> Perhaps you used the wrong -p or --strip option?
\> The text leading up to this was:
\> --------------------------
\> |diff --git a/tools/libhost/CopyFile.c b/tools/libhost/CopyFile.c
\> |index f9bda86fd1..44b36e4bdf 100644
\> |--- a/tools/libhost/CopyFile.c
\> |+++ b/tools/libhost/CopyFile.c
\> --------------------------
\> File to patch:
\> Skip this patch? \[y\]
\> Skipping patch.
\> 1 out of 1 hunk ignored
For full logs, run 'nix log /nix/store/jgw8vkv0rg819c3m9d1a9dwl25xwfdnk-build=make-patched.drv'.
| 22:27:00 |
atemu12 | Your flavour is still wrong; it needs to be just lineageos. I don't know how that even evals. | 22:27:31 |
countoren | * Hi, I was looking at your response and back to my code I do have the latest commit
ddefce63fe8ec896c24325e1680959a893a581ff
with this flake
{
description = "Robotnix configuration for OnePlus 8 Pro";
inputs.robotnix.url = "github:danielfullmer/robotnix";
outputs = { self, robotnix }: {
robotnixConfigurations."oneplus8pro" = robotnix.lib.robotnixSystem ({ config, pkgs, ... }: {
# Required options
device = "instantnoodlep"; # Codename for OnePlus 8 Pro
flavor = "lineage-20.0"; # Change this to 'lineageos' if you want LineageOS, otherwise keep 'grapheneos' if supported
# Optional configurations
# buildDateTime = 1584398664; # Update if you want to push OTA updates for your custom changes
# If you have keys for signing, enable this
# signing.enable = true;
# signing.keyStorePath = "/var/secrets/android-keys";
# Enable ccache if you want faster subsequent builds
# ccache.enable = true;
apps.chromium.enable = false;
});
# Default package for building the image
defaultPackage.x86\_64-linux = self.robotnixConfigurations."oneplus8pro".img;
};
}
getting back
error: builder for '/nix/store/jgw8vkv0rg819c3m9d1a9dwl25xwfdnk-build=make-patched.drv' failed with exit code 1;
last 25 log lines:
\> Perhaps you used the wrong -p or --strip option?
\> The text leading up to this was:
\> --------------------------
\> |diff --git a/core/definitions.mk b/core/definitions.mk
\> |index c5fe76b606..5c8f85b4a4 100644
\> |--- a/core/definitions.mk
\> |+++ b/core/definitions.mk
\> --------------------------
\> File to patch:
\> Skip this patch? \[y\]
\> Skipping patch.
\> 4 out of 4 hunks ignored
\> can't find file to patch at input line 100
\> Perhaps you used the wrong -p or --strip option?
\> The text leading up to this was:
\> --------------------------
\> |diff --git a/tools/libhost/CopyFile.c b/tools/libhost/CopyFile.c
\> |index f9bda86fd1..44b36e4bdf 100644
\> |--- a/tools/libhost/CopyFile.c
\> |+++ b/tools/libhost/CopyFile.c
\> --------------------------
\> File to patch:
\> Skip this patch? \[y\]
\> Skipping patch.
\> 1 out of 1 hunk ignored
For full logs, run 'nix log /nix/store/jgw8vkv0rg819c3m9d1a9dwl25xwfdnk-build=make-patched.drv'.
| 22:27:54 |
atemu12 | What you did doesn't deactivate the chromium dependency though I belive, you need this: https://github.com/Atemu/robot-config/blob/d6c4357332d626b287e6711d622bb485a4db33ee/common.nix#L21-L23 | 22:28:21 |
countoren | o i guess i was testing with lineage-20.0 because when i put lineageos I am getting
$ nix build
warning: Git tree '/home/p1n3/robotnix' is dirty
error:
… while evaluating the attribute 'robotnixConfigurations.oneplus8pro.img'
at /nix/store/cqfwznl56mky8vfsfz353hfh55qyn0qq-source/default.nix:91:24:
90| targetFiles unsignedTargetFiles signedTargetFiles
91| ota incrementalOta img factoryImg bootImg recoveryImg otaDir
| ^
92| releaseScript generateKeysScript verifyKeysScript
… while evaluating a branch condition
at /nix/store/9fpv0kjq9a80isa1wkkvrdqsh9dpcn05-source/lib/lists.nix:57:9:
56| fold' = n:
57| if n == len
| ^
58| then nul
… while evaluating the option `warnings':
… while evaluating definitions from `/nix/store/cqfwznl56mky8vfsfz353hfh55qyn0qq-source/flavors/lineageos':
… while evaluating the option `androidVersion':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: attribute '"lineage-21.0"' missing
at /nix/store/cqfwznl56mky8vfsfz353hfh55qyn0qq-source/flavors/lineageos/default.nix:75:71:
74| defaultBranch = deviceMetadata.${config.device}.branch;
75| in mkIf (deviceMetadata ? ${config.device}) (mkDefault (lib.toInt lineageBranchToAndroidVersion.${defaultBranch}));
| ^
76| flavorVersion = removePrefix "lineage-" androidVersionToLineageBranch.${toString config.androidVersion};
Did you mean lineage-20.0?
| 22:32:04 |
countoren | thank you I added these lines too | 22:32:54 |
atemu12 | I have no idea how you'd get 21? | 22:33:19 |
countoren | that is directly a flake from the template | 22:34:35 |
countoren | so it should have any modification | 22:35:06 |
countoren | * so it should not have any modification | 22:35:15 |
atemu12 | Please just set flavour = "lineageos"; and androidVersion = 13;. I have no idea about any flake templates | 22:35:31 |
atemu12 | They're not maintained | 22:35:37 |
atemu12 | * Please just set flavor = "lineageos"; and androidVersion = 13;. I have no idea about any flake templates | 22:35:52 |
countoren | it seems to start building now that i added the androidVersion | 22:37:00 |
countoren | Thank you Atemu anyhow, really appreciate your help guys. | 22:39:20 |
atemu12 | Please keep in mind that robotnix is not really ready for use right now | 22:39:57 |
countoren | that is fine I will dive in as much as needed when needed :) | 22:43:18 |
| 25 Dec 2024 |
countoren | it seems like I am getting into the soong build now but getting this error:
$ nix build
warning: Git tree '/home/p1n3/robotnix' is dirty
error: builder for '/nix/store/8r5s5677nnk9s1lbv3kp1r84k6f9w6cm-robotnix-lineage_instantnoodlep-2024111902.drv' failed with exit code 1;
last 25 log lines:
> [ 94% 378/398] compile out/host/linux-x86/bin/go/soong-sdk/test/android/soong/sdk.a
> [ 95% 379/398] compile out/host/linux-x86/bin/go/soong-bp2build/test/android/soong/bp2build.a
> [ 95% 380/398] compile out/host/linux-x86/bin/go/soong-sdk/test/test.a
> [ 95% 381/398] compile out/host/linux-x86/bin/go/soong-bp2build/test/test.a
> [ 95% 382/398] compile out/host/linux-x86/bin/go/soong_build/obj/soong_build.a
> [ 96% 383/398] link out/host/linux-x86/bin/go/gki-soong-rules/test/test
> [ 96% 384/398] test android/soong/gki
> [ 96% 385/398] test android/soong/sysprop
> [ 96% 386/398] link out/host/linux-x86/bin/go/soong-apex/test/test
> [ 97% 387/398] link out/host/linux-x86/bin/go/soong-bp2build/test/test
> [ 97% 388/398] link out/host/linux-x86/bin/go/soong_build/obj/a.out
> [ 97% 389/398] cp out/host/linux-x86/bin/soong_build
> [ 97% 390/398] link out/host/linux-x86/bin/go/soong-sdk/test/test
> [ 98% 391/398] test android/soong/bp2build
> [ 98% 392/398] test android/soong/aidl
> [ 98% 393/398] test android/soong/rust
> [ 98% 394/398] test android/soong/cc
> [ 99% 395/398] test android/soong/sdk
> [ 99% 396/398] test android/soong/java
> [ 99% 397/398] test android/soong/apex
> [100% 398/398] analyzing Android.bp files and generating ninja file at out/soong/build.ninja
> FAILED: out/soong/build.ninja
> cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILD
ER" --top "$TOP" --soong_out "out/soong" --out "out" -o out/soong/build.ninja --globListDir build --globFile out/soong/globs-build.ninja -t
-l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.build Android.bp
> 03:25:58 soong bootstrap failed with: exit status 1
> ninja: build stopped: subcommand failed.
For full logs, run 'nix log /nix/store/8r5s5677nnk9s1lbv3kp1r84k6f9w6cm-robotnix-lineage_instantnoodlep-2024111902.drv'.
error: 1 dependencies of derivation '/nix/store/n5j97x5m3832rh0dv8k024bwa4bc86jp-instantnoodlep-img-2024111902.zip.drv' failed to build
any pointers?
| 03:32:22 |
oak 🏳️🌈♥️ | I don't think the relevant error is visible here | 11:39:39 |
oak 🏳️🌈♥️ | * I don't think the relevant error is visible here? (Or is there simply not any error message?) | 11:41:51 |
countoren | yes looking at the entire nix log I dont see more meaningful error it does spit the env vars:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=13
LINEAGE_VERSION=20.0-20241225-EXPERIMENTAL-instantnoodlep
TARGET_PRODUCT=lineage_instantnoodlep
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.6.56-x86_64
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=TQ3A.230901.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/oneplus/instantnoodlep hardware/oplus/overlay/qssi device/oneplus/sm8250-common hardware/oplus vendor/qcom/opensource/us>
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=13
LINEAGE_VERSION=20.0-20241225-EXPERIMENTAL-instantnoodlep
TARGET_PRODUCT=lineage_instantnoodlep
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.6.56-x86_64
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=TQ3A.230901.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/oneplus/instantnoodlep hardware/oplus/overlay/qssi device/oneplus/sm8250-common hardware/oplus vendor/qcom/opensource/us>
these from first look makes sense to me.
| 13:00:09 |
countoren | * looking at the entire nix log I dont see more meaningful error it does spit the env vars:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=13
LINEAGE_VERSION=20.0-20241225-EXPERIMENTAL-instantnoodlep
TARGET_PRODUCT=lineage_instantnoodlep
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.6.56-x86_64
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=TQ3A.230901.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/oneplus/instantnoodlep hardware/oplus/overlay/qssi device/oneplus/sm8250-common hardware/oplus vendor/qcom/opensource/us>
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=13
LINEAGE_VERSION=20.0-20241225-EXPERIMENTAL-instantnoodlep
TARGET_PRODUCT=lineage_instantnoodlep
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.6.56-x86_64
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=TQ3A.230901.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/oneplus/instantnoodlep hardware/oplus/overlay/qssi device/oneplus/sm8250-common hardware/oplus vendor/qcom/opensource/us>
these from first look makes sense to me.
| 13:01:46 |
oak 🏳️🌈♥️ | Could be helpful to see the robotnix configuration again | 13:03:39 |