From b922431aa8c2285906a2926c378e7650a9be1365 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 9 Dec 2025 08:53:53 -0800 Subject: [PATCH 1/2] systemd: Fix out-of-tree builds The systemd unit file installation does not work when the build directory differs from the source directory because cp cannot find the source file. Prefix the unit files with $(srcdir) to reference files from the source tree. This fixes out-of-tree builds which use separate build directories (B != S). Signed-off-by: Khem Raj --- systemd/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd/Makefile.am b/systemd/Makefile.am index d2f8e25..d6435ad 100644 --- a/systemd/Makefile.am +++ b/systemd/Makefile.am @@ -24,5 +24,5 @@ MAINTAINERCLEANFILES = Makefile.in if INSTALL_SYSTEMD install-data-hook: $(unit_files) mkdir -p $(DESTDIR)/$(unitdir) - cp $(unit_files) $(DESTDIR)/$(unitdir) + cp $(addprefix $(srcdir)/,$(unit_files)) $(DESTDIR)/$(unitdir) endif From dcf432dc3a907e5d1c9693fbaa8b55b66a851aec Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 10 Dec 2025 17:29:38 -0800 Subject: [PATCH 2/2] ci: Add GNU tar to musl system depedencies `make distcheck` invokes tar, however, default tar is provided by busybox on alpine and autoconf's wizardry does not work with the simple tar implementation that busybox has. Therefore add gnu tar to alpine CI container. Ideally, autotools could entertain busybox tar will make it more portable Signed-off-by: Khem Raj --- .github/workflows/makefile.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 6353900..e39a720 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -69,7 +69,8 @@ jobs: keyutils-dev \ libnl3-dev \ glib-dev \ - linux-headers + linux-headers \ + tar - name: Configure run: |