systemd: Fix out-of-tree builds#134
Conversation
|
"make distcheck" fails on MUSL. I haven't seen this failure before. Either something in the MUSL set-up has changed or your commit is giving MUSL heartburn. Can you take an initial look into it? |
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 <raj.khem@gmail.com>
`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 <raj.khem@gmail.com>
970485a to
dcf432d
Compare
The failure is not due to the original patch I proposed but in general how autotools are interacting with system tar program, which does not work with busybox tar default on alpine. |
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).