Bug 15176 - udisks-2.9.4 build fails with per-package
Summary: udisks-2.9.4 build fails with per-package
Status: RESOLVED MOVED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2022.11
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-16 08:19 UTC by Michael Nosthoff
Modified: 2024-06-15 15:04 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nosthoff 2022-12-16 08:19:20 UTC
When using per-package build the build of udisks fails with the following error msg:


cp org.freedesktop.UDisks2.conf.in org.freedesktop.UDisks2.conf
  GEN      org.freedesktop.UDisks2.policy
/build/buildroot/build/per-package/udisks/host/bin/msgfmt: cannot locate ITS rules for org.freedesktop.UDisks2.policy.in
make[5]: *** [Makefile:924: org.freedesktop.UDisks2.policy] Error 1
make[4]: *** [Makefile:632: all-recursive] Error 1
make[3]: *** [Makefile:514: all-recursive] Error 1
make[2]: *** [Makefile:446: all] Error 2
make[1]: *** [package/pkg-generic.mk:293: /build/buildroot/build/build/udisks-2.9.4/.stamp_built] Error 2
make: *** [Makefile:23: _all] Error 2

I tried to figure out what dependency might be missing but wasn't successful. Any hints welcome!
Comment 1 Michael Nosthoff 2022-12-16 12:42:21 UTC
I just realized the same is happening with gvfs for which some extra handlings is alread in the polkit.mk file.

[88/263] Generating daemon/org.gtk.vfs.file-operations.policy with a custom command
FAILED: daemon/org.gtk.vfs.file-operations.policy
/build/buildroot/build/per-package/gvfs/host/bin/meson --internal msgfmthelper --msgfmt=/build/buildroot/build/per-package/gvfs/host/bin/msgfmt daemon/org.gtk.vfs.file-operations.policy.in daemon/org.gtk.vfs.file-operations.policy xml /build/buildroot/build/build/gvfs-1.48.1/po
/build/buildroot/build/per-package/gvfs/host/bin/msgfmt: cannot locate ITS rules for daemon/org.gtk.vfs.file-operations.policy.in
[113/263] Compiling C object common/libgvfscommon.so.p/meson-generated_.._gvfsdbus.c.o
ninja: build stopped: subcommand failed.
Comment 2 Thomas Petazzoni 2023-01-28 21:28:27 UTC
I can't reproduce the udisks issue, I've successfully built the following configuration:

BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_PER_PACKAGE_DIRECTORIES=y
BR2_INIT_NONE=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_UDISKS=y
# BR2_TARGET_ROOTFS_TAR is not set

Could you provide a defconfig that reproduces the issue?
Comment 3 Yann E. MORIN 2024-06-15 15:04:27 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!