From 87dc293ed06b1019b91e12e03c0b42778a593104 Mon Sep 17 00:00:00 2001 From: ferreo Date: Mon, 2 Dec 2024 19:18:31 +0000 Subject: [PATCH] add pam patch --- .github/release-nest-v3 | 2 +- debian/patches/pam.patch | 24 ++++++++++++++++++++++++ debian/patches/series | 1 + debian/rules | 3 +-- 4 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 debian/patches/pam.patch create mode 100644 debian/patches/series diff --git a/.github/release-nest-v3 b/.github/release-nest-v3 index d8263ee..56a6051 100644 --- a/.github/release-nest-v3 +++ b/.github/release-nest-v3 @@ -1 +1 @@ -2 \ No newline at end of file +1 \ No newline at end of file diff --git a/debian/patches/pam.patch b/debian/patches/pam.patch new file mode 100644 index 0000000..492828b --- /dev/null +++ b/debian/patches/pam.patch @@ -0,0 +1,24 @@ +From cc5e2bc37900f27f11630253a0b08d31d9e88086 Mon Sep 17 00:00:00 2001 +From: ferrreo +Date: Mon, 2 Dec 2024 19:16:48 +0000 +Subject: [PATCH] Update build.zig + +--- + build.zig | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/build.zig b/build.zig +index f0e9074..cf25dd2 100644 +--- a/build.zig ++++ b/build.zig +@@ -297,7 +297,7 @@ fn install_ly(allocator: std.mem.Allocator, install_config: bool) !void { + } + + { +- const pam_path = try std.fs.path.join(allocator, &[_][]const u8{ dest_directory, config_directory, "/pam.d" }); ++ const pam_path = try std.fs.path.join(allocator, &[_][]const u8{ config_directory, "/pam.d" }); + if (!std.mem.eql(u8, dest_directory, "")) { + std.fs.cwd().makePath(pam_path) catch { + std.debug.print("warn: {s} already exists as a directory.\n", .{pam_path}); + + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..6d656f7 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +pam.patch \ No newline at end of file diff --git a/debian/rules b/debian/rules index db7bdd2..34b1431 100755 --- a/debian/rules +++ b/debian/rules @@ -7,5 +7,4 @@ export PIKA_BUILD_ARCH = $(shell cat ../pika-build-arch) dh $@ override_dh_auto_build: - zig build -Dcpu=x86_64_v3 -Doptimize=ReleaseFast -Ddest_directory=$(CURDIR)/debian/tmp/ installsystemd - + zig build -Dcpu=x86_64_v3 -Doptimize=ReleaseFast -Ddest_directory='$${DESTDIR}' installsystemd \ No newline at end of file