Skip to contentSkip to conversation

package/util-linux: disable systemd for host build

PATCH New John Keeping 3 participants 3 messages Feb 19, 2020 – Mar 7, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 package/util-linux/util-linux.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
package/util-linux/util-linux.mk +4 -1
index 549442232e..b6ccaaa78d 100644
@@ -38,7 +38,10 @@ UTIL_LINUX_CONF_OPTS += \
 HOST_UTIL_LINUX_DEPENDENCIES = host-pkgconf
 
 # 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
 # ${usrlib_execdir} (/usr/lib) to ${libdir} (/lib), since both paths are
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 package/util-linux: disable systemd for host build

Quoted 6 lines · On Wed, 19 Feb 2020 11:25:59 +0000 John Keeping <[email protected]> wrote:

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

Quoted 7 lines

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

---
 package/util-linux/util-linux.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 package/util-linux: disable systemd for host build

In reply to John Keeping
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"John" == John Keeping <[email protected]> writes:

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

Quoted 7 lines

/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.

Committed to 2019.02.x and 2019.11.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard