package/xfsprogs: fix host build with host-systemd
PATCH 1/1 package/xfsprogs: fix host build with host-systemd
When host-systemd is built before host-xfsprogs, the installation of host-xfsprogs fails with:
../install-sh -o autobuild -g autobuild -m 755 -d /usr/lib/systemd/system
chmod: changing permissions of '//usr/lib/systemd/system': Operation not permitted gmake[2]: *** [Makefile:166: install-systemd] Error 1
xfsprogs' configure takes the systemd unit and udev rule directories from the systemdsystemunitdir and udev_dir variables of systemd.pc and udev.pc. host-systemd installs those files in $(HOST_DIR)/share/pkgconfig, where they hold the target paths /usr/lib/systemd/system and /usr/lib/udev, so xfs_scrub tries to install its units and rules there, outside of $(HOST_DIR).
Host xfsprogs tools don't need systemd units or udev rules, so pass --without-systemd-unit-dir and --without-udev-rule-dir to the host build.
This issue has been present since commit 45a74068df22 ("package/xfsprogs:
enable host package variant"), which added the host variant without disabling these service files. It therefore affects 2026.05 and later.
Fixes:
https://autobuild.buildroot.org/results/d76e66075a9fae55ae84b7bd3d7a01594ade43aa
--- package/xfsprogs/xfsprogs.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
package/xfsprogs/xfsprogs.mk +3 -1
@@ -25,7 +25,9 @@ HOST_XFSPROGS_CONF_OPTS = \ --enable-gettext=no \ --enable-lib64=no \ --enable-libicu=no \ - --enable-static + --enable-static \ + --without-systemd-unit-dir \ + --without-udev-rule-dir ifeq ($(BR2_PACKAGE_ICU),y) XFSPROGS_DEPENDENCIES += icu
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot