Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: don't install systemd unit file outside of prefix
Problem: make distcheck fails in an attempt to install the systemd unit file into the actual system directory, which is not writeable. Bring over a fix from flux-core (courtesy @grondo): flux-framework/flux-core@35ee727 His comments: When --with-systemdsystemunitdir is not set explicitly, prepend the pkg-config systemdsystemunitdir with ${prefix}, so that the unit file is not installed outside of --prefix. Distro packages should therefore use --with-systemdsystemunitdir explicitly, in the case where the unit file directory *is* outside of prefix (e.g. /lib/systemd/system when --prefix=/usr). Based on the spec files in the examples subdir, I think we are likely already setting this explicitly when we build RPMs for TOSS.
- Loading branch information