Julien Malka
d05fcb7e2c
Some checks failed
Check meta / check_dns (push) Failing after 19s
Check meta / check_meta (push) Successful in 20s
build configuration / build_and_cache_storage01 (push) Failing after 35s
build configuration / build_and_cache_compute01 (push) Failing after 36s
build configuration / build_and_cache_rescue01 (push) Failing after 33s
build configuration / build_and_cache_geo01 (push) Failing after 32s
build configuration / build_and_cache_geo02 (push) Failing after 31s
build configuration / build_and_cache_vault01 (push) Failing after 33s
build configuration / build_and_cache_web01 (push) Failing after 32s
build configuration / build_and_cache_web02 (push) Failing after 33s
lint / check (push) Failing after 28s
build configuration / build_and_cache_krz01 (push) Failing after 1m55s
build configuration / build_and_cache_bridge01 (push) Failing after 33s
54 lines
1.7 KiB
Diff
54 lines
1.7 KiB
Diff
From 4d6e57d2d577cc105c9e0cd397408e9e3ce85cd0 Mon Sep 17 00:00:00 2001
|
|
From: Raito Bezarius <masterancpp@gmail.com>
|
|
Date: Tue, 8 Oct 2024 16:33:14 +0200
|
|
Subject: [PATCH] fix(packaging): correctness of the build top directory
|
|
|
|
It was using /build which is an implementation detail and not
|
|
guaranteed.
|
|
|
|
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
|
|
---
|
|
pkgs/pve-container/default.nix | 6 +++---
|
|
pkgs/pve-rs/default.nix | 2 +-
|
|
2 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/pkgs/pve-container/default.nix b/pkgs/pve-container/default.nix
|
|
index 445c271..5633c0f 100644
|
|
--- a/pkgs/pve-container/default.nix
|
|
+++ b/pkgs/pve-container/default.nix
|
|
@@ -30,7 +30,7 @@ perl536.pkgs.toPerlModule (
|
|
postPatch = ''
|
|
sed -i Makefile \
|
|
-e "s/pct.1 pct.conf.5 pct.bash-completion pct.zsh-completion //" \
|
|
- -e "s,/usr/share/lxc,/build/lxc," \
|
|
+ -e "s,/usr/share/lxc,$NIX_BUILD_TOP/lxc," \
|
|
-e "/pve-doc-generator/d" \
|
|
-e "/PVE_GENERATING_DOCS/d" \
|
|
-e "/SERVICEDIR/d" \
|
|
@@ -45,8 +45,8 @@ perl536.pkgs.toPerlModule (
|
|
dontPatchShebangs = true;
|
|
|
|
postConfigure = ''
|
|
- cp -r ${lxc}/share/lxc /build
|
|
- chmod -R +w /build/lxc
|
|
+ cp -r ${lxc}/share/lxc $NIX_BUILD_TOP/
|
|
+ chmod -R +w $NIX_BUILD_TOP/lxc
|
|
'';
|
|
|
|
makeFlags = [
|
|
diff --git a/pkgs/pve-rs/default.nix b/pkgs/pve-rs/default.nix
|
|
index c024287..881beab 100644
|
|
--- a/pkgs/pve-rs/default.nix
|
|
+++ b/pkgs/pve-rs/default.nix
|
|
@@ -57,7 +57,7 @@ perl536.pkgs.toPerlModule (
|
|
];
|
|
|
|
makeFlags = [
|
|
- "BUILDIR=/build"
|
|
+ "BUILDIR=$NIX_BUILD_TOP"
|
|
"BUILD_MODE=release"
|
|
"DESTDIR=$(out)"
|
|
"GITVERSION:=${src.rev}"
|
|
--
|
|
2.46.0
|
|
|