Browse Source

package/util-linux: disable systemd for host build

When building host-util-linux, the systemdsystemunitdir is set to the
real host directory, so the install step fails with:

/usr/bin/install: cannot remove '/usr/lib/systemd/system/fstrim.service': Permission denied
/usr/bin/install: cannot remove '/usr/lib/systemd/system/fstrim.timer': Permission denied

Since we don't need systemd support in host-util-linux, unconditionally
disable it for the host build.

Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 86441b9fd6c8472d2e6f0917cc308ea740ee7fd7)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
John Keeping 5 years ago
parent
commit
576113dc21
1 changed files with 4 additions and 1 deletions
  1. 4 1
      package/util-linux/util-linux.mk

+ 4 - 1
package/util-linux/util-linux.mk

@@ -38,7 +38,10 @@ UTIL_LINUX_CONF_OPTS += \
 HOST_UTIL_LINUX_DEPENDENCIES = host-pkgconf
 HOST_UTIL_LINUX_DEPENDENCIES = host-pkgconf
 
 
 # We also don't want the host-python dependency
 # We also don't want the host-python dependency
-HOST_UTIL_LINUX_CONF_OPTS = --without-python
+HOST_UTIL_LINUX_CONF_OPTS = \
+	--without-systemd \
+	--with-systemdsystemunitdir=no \
+	--without-python
 
 
 # Prevent the installation from attempting to move shared libraries from
 # Prevent the installation from attempting to move shared libraries from
 # ${usrlib_execdir} (/usr/lib) to ${libdir} (/lib), since both paths are
 # ${usrlib_execdir} (/usr/lib) to ${libdir} (/lib), since both paths are