Conversation
|
I suspect that Envoy's bazel build hashes won't be stable and I'll have to do some more surgery... |
|
Result of 114 packages marked as broken and skipped:
45 packages failed to build:
144 packages built:
|
|
OK, this gn bump doesn't work with this v8 build... Taking a look. |
|
I'm going to fix this by importing a newer version of gn just for pomerium. |
Split into "current" version, as used by most things (aka gn), and "gn1924", which uses a more recent version of gn which is incompatible with the currently packaged version of v8 in nixpkgs. We can't win, but I need a newer version of gn for envoy. Note that the newer gn matches the version in Chromium's DEPS for v93.0.4577.82, the current Linux stable build as of September.
This now uses gn1924 to allow v8 to build properly.
|
This is ready for review, but I don't know why OfBorg isn't happy with this; in particular, it's finding a link failure, which I can't reproduce locally building |
We can set an override path for Envoy's binary location now, so do that instead of the previous thing of embedding the binary. Note that we still need to include the SHA256/version of the binary we're referring to, but Through The Power Of Nix™ we can do that with relative ease.
|
@stesie @matthewbauer @primeos for changes to I tried to get things working, but between building Node and Chromium and Envoy's bundled V8 I couldn't make it work with just one gn version :( |
|
Result of 3 packages built:
|
|
You're gonna have to be more specific, I think? Your previous comment seemed to indicate you managed to build everything successfully. |
|
@lukegb Honestly I was irritated myself. I was just quickly going over all security PRs and the second error came from |
This comment has been minimized.
This comment has been minimized.
|
Full output: |
|
build.nix contains { pkgs ? import ./nixpkgs { system = "x86_64-linux"; } }:
with pkgs;
let
paths = [
envoy
gn1924
pomerium
];
env = buildEnv {
name = "env";
inherit paths;
ignoreCollisions = true;
};
in stdenv.mkDerivation rec {
name = "review-shell";
preferLocalBuild = true;
allowSubstitutes = false;
buildInputs = if builtins.length paths > 50 then [ env ] else paths;
unpackPhase = ":";
installPhase = "touch $out";
} |
|
I think it can be ignored |
|
|
|
Ah right, I see the problem - because it includes gn as a dependency, the review shell inherited the gn build hook, which promptly failed because it couldn't actually find anything to actually build with gn. It's WAI but a little confusing. Thanks for the context. |
Motivation for this change
Update Pomerium to latest version. Includes bumps to Envoy to match what upstream has done, and a bump to Gn because otherwise Envoy doesn't build.
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)