Conversation
There was a problem hiding this comment.
Ninja hook will ignore this now. You'd have to switch to ninjaFlags.
There was a problem hiding this comment.
I Googled and grepped around here and came up empty-handed: not sure how to pass these flags through to a CMAKE-generated ninja build as flags. I have moved these to a preconfigure sh export.
There was a problem hiding this comment.
Yup, this makes sense. Sorry for setting you off on a wild goose chase.
It might also be possible to use CMAKE_{C,CXX}_FLAGS for this. I hope there wasn't some very specific reason why this was previously done by passing CFLAGS as make parameter.
debug flags are as expected (snippet from the build log):
/nix/store/ii75mhh7sxl11167m1b86p0qrjsjyjmd-gcc-wrapper-14-20241116/bin/g++ -DDEBUG ..... -DKICAD_STDLIB_DEBUG ..... -I...... -Og -ggdb ...... -o libs/kimath/CMakeFiles/kimath.dir/src/md5_hash.cpp.o -c /build/source/libs/kimath/src/md5_hash.cpp
There was a problem hiding this comment.
I wouldn't be able to augment C_FLAGS and CXX_FLAGS if I used the {C,CXX}_FLAGS shorthand. I could just clobber them entirely (they are empty at the start of configure anyway).
xokdvium
left a comment
There was a problem hiding this comment.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 384150
x86_64-linux
❌ 4 packages failed to build:
- kicadAddons.kikit
- kicadAddons.kikit-library
- kikit
- kikit.dist
✅ 12 packages built:
- kicad
- kicad-small
- kicad-testing
- kicad-testing-small
- kicad-unstable
- kicad-unstable-small
- python312Packages.kicad
- python312Packages.pcbnewtransition
- python312Packages.pcbnewtransition.dist
- python313Packages.kicad
- python313Packages.pcbnewtransition
- python313Packages.pcbnewtransition.dist
error: builder for '/nix/store/hbc0p5i0vmx1qg7fyxlaz8bmchz4aq72-kikit-1.6.0.drv' failed with exit code 2;
last 25 log lines:
> # 12:16:23: Error: Directory '/homeless-shelter' couldn't be created (error 13: Permission denied)
> # 12:16:23: Error: Directory '/homeless-shelter/.config/kicad/9.0' couldn't be created (error 2: No such file or directory)
> # An error occurred: No board edges found
> # No output files produced
> not ok 42 Steel stencils with cutout
kikit might need a writableTmpDirAsHomeHook hook as well as some other changes.
Looks like #383480 is necessary for KiCad 9.0 support: https://github.com/yaqwsx/KiKit/releases/tag/v1.7.0
diff --git a/pkgs/by-name/ki/kikit/default.nix b/pkgs/by-name/ki/kikit/default.nix
index 69e7c4eef099..7db181e7204b 100644
--- a/pkgs/by-name/ki/kikit/default.nix
+++ b/pkgs/by-name/ki/kikit/default.nix
@@ -19,6 +19,7 @@
pybars3,
versioneer,
shapely,
+ writableTmpDirAsHomeHook,
}:
let
solidpython = callPackage ./solidpython { };
@@ -64,6 +65,7 @@ buildPythonApplication rec {
nativeCheckInputs = [
pytestCheckHook
bats
+ writableTmpDirAsHomeHook
];
pythonImportsCheck = [
That fixed the build, though now the tests are failing. Seems like we will have to wait for the linked PR. |
@jcdickinson, #383480 is now merged. |
|
Waiting for #385032.
|
I must have messed up the manual patching, this is not happening now that I've rebased on the real merge. The home dir hook seemingly isn't required either. |
xokdvium
left a comment
There was a problem hiding this comment.
kicad, kicad-small, kicad-unstable launch fine and there are no obvious issues.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 384150
x86_64-linux
✅ 16 packages built:
- kicad
- kicad-small
- kicad-testing
- kicad-testing-small
- kicad-unstable
- kicad-unstable-small
- kicadAddons.kikit
- kicadAddons.kikit-library
- kikit
- kikit.dist
- python312Packages.kicad
- python312Packages.pcbnewtransition
- python312Packages.pcbnewtransition.dist
- python313Packages.kicad
- python313Packages.pcbnewtransition
- python313Packages.pcbnewtransition.dist
changelog: https://github.com/yaqwsx/KiKit/releases/tag/v1.7.2 This brings in support for KiCAD v9: https://github.com/yaqwsx/KiKit/releases/tag/v1.7.2, as [we upgraded to KiCAD v9 recently](#384150).
Release announcement: https://www.kicad.org/blog/2025/02/Version-9.0.0-Released/
Beyond updating the refs/shas, I needed to add protobuf and nng as dependencies. I also switched it to Ninja, as that is recommended by the KiCad docs (https://dev-docs.kicad.org/en/build/linux/index.html#_ninja).
Things done
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". (processing)./result/bin/)Smoke test of project binaries (from
kicad,kicad-testing, andkicad-unstable), including first setup and librariesAdd a 👍 reaction to pull requests you find important.