From 16c2533af090744683cccbfc0987000975f6b52f Mon Sep 17 00:00:00 2001 From: Mike Fleetwood Date: Sat, 24 Feb 2024 22:48:38 +0000 Subject: [PATCH] Document future Debian/Ubuntu build time dependency in README (!121) When preparing the GParted Live 1.6.0 distribution, which is based on Debian unstable ("sid"), compiling GParted failed like this: $ make ... /usr/bin/msgfmt --desktop --template gparted.desktop.in -d ./po -o gparted.desktop chmod +x gparted /usr/bin/msgfmt --xml --template org.gnome.gparted.policy.in -d ./po -o org.gnome.gparted.policy /usr/bin/msgfmt: cannot locate ITS rules for org.gnome.gparted.policy.in make[3]: *** [Makefile:1060: org.gnome.gparted.policy] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory '/root/gparted/gparted-1.6.0-beta1' make[2]: *** [Makefile:618: all-recursive] Error 1 make[2]: Leaving directory '/root/gparted/gparted-1.6.0-beta1' make[1]: *** [Makefile:452: all] Error 2 make[1]: Leaving directory '/root/gparted/gparted-1.6.0-beta1' dh_auto_build: error: make -j16 returned exit code 2 make: *** [debian/rules:9: build] Error 25 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 debuild: fatal error at line 1184: dpkg-buildpackage -us -uc -ui failed This was also previously reported in the GParted Forum [1]. Future Debian 13 ("trixie") and Ubuntu 24.04 LTS ("nobel") releases have moved the needed gettext translation rules for .policy XML files: /usr/share/gettext/its/policy.its /usr/share/gettext/its/policy.loc to new package libpolkit-gobject-1-dev not installed by default. Document this new build time dependency. Also see commits [2][3] where the equivalent change was needed in the Alpine Linux and CentOS continuous integration images. [1] GParted forum / [SOLVED] Unable to build "msgfmt: cannot locate ITS rules for org..." http://gparted-forum.surf4.info/viewtopic.php?id=18136 [2] 57ae8f888bb6f5fb8f06177a478a2374f07ee33c Fix .policy file translation failure in Alpine Linux CI image (!107) [3] 8450d8c6056a79508bdb91517eb4d8c5dc60fb35 Fix .policy file translation failure in CentOS CI image (!107) Closed !121 - Document future Debian/Ubuntu build time dependency in README --- README | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README b/README index 8eb18196..a501ae6b 100644 --- a/README +++ b/README @@ -111,6 +111,10 @@ b. Building from Source libglib2.0-dev uuid-dev libparted-dev \ libgtkmm-3.0-dev + Debian 13 and later and Ubuntu 24.04 LTS and later also require this + dependency installing: + sudo apt install libpolkit-gobject-1-dev + On Fedora, these dependencies may be obtained by running the following command as root: dnf install gnome-common yelp-tools glib2-devel gcc-c++ \