build: stop relying on intltool for i18n
Recent gettext version can extract and merge back strings from and to various file formats, no need for intltool anymore. https://wiki.gnome.org/Initiatives/GnomeGoals/GettextMigration https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/133 https://github.com/NetworkManager/NetworkManager/pull/303 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/96 Clarification about the use of AM_GNU_GETTEXT_REQUIRE_VERSION: In configure.ac, specify the minimum gettext version we require, rather than the exact one. This fixes a situation where the autoconf macros used for gettext will be the latest available on the system (for example, 0.20); but the copied-in Makefile.in.in will be for the exact version specified in configure.ac (in this case, 0.19). In that situation, the gettext build rules will error out at `make` time with the message: *** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.19 but the autoconf macros are from gettext version 0.20 Avoid that by specifying a minimum version dependency rather than an exact one. This should not cause problems as we haven’t committed any generated or external gettext files into git, so each developer will end up regenerating the build system for their system’s version of gettext, as expected. See the subsection of https://www.gnu.org/software/gettext/manual/html_node/Version-Control-Issues.html for more information. Note that autoreconf currently doesn’t recognise AM_GNU_GETTEXT_REQUIRE_VERSION, so we must continue also using AM_GNU_GETTEXT_VERSION. autopoint will ignore the latter if the former is present. See https://lists.gnu.org/archive/html/autoconf-patches/2015-10/msg00000.html. [lkundrak@v3.sk: Fixed the meson build, adjusted autogen.sh: droped "|| exit 1", dropped call to aclocal, dropped --copy from gtkdocize.]
This commit is contained in:

committed by
Lubomir Rintel

parent
bf9a2babb4
commit
19a6affd3a
@@ -59,11 +59,10 @@ if enable_polkit
|
||||
configuration: data_conf,
|
||||
)
|
||||
|
||||
custom_target(
|
||||
policy,
|
||||
i18n.merge_file(
|
||||
input: policy_in,
|
||||
output: '@BASENAME@',
|
||||
command: intltool_xml_cmd,
|
||||
po_dir: po_dir,
|
||||
install: true,
|
||||
install_dir: polkit_gobject_policydir,
|
||||
)
|
||||
|
@@ -10,8 +10,8 @@
|
||||
<icon_name>nm-icon</icon_name>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.enable-disable-network">
|
||||
<_description>Enable or disable system networking</_description>
|
||||
<_message>System policy prevents enabling or disabling system networking</_message>
|
||||
<description>Enable or disable system networking</description>
|
||||
<message>System policy prevents enabling or disabling system networking</message>
|
||||
<defaults>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>yes</allow_active>
|
||||
@@ -19,8 +19,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.reload">
|
||||
<_description>Reload NetworkManager configuration</_description>
|
||||
<_message>System policy prevents reloading NetworkManager</_message>
|
||||
<description>Reload NetworkManager configuration</description>
|
||||
<message>System policy prevents reloading NetworkManager</message>
|
||||
<defaults>
|
||||
<allow_any>auth_admin_keep</allow_any>
|
||||
<allow_inactive>auth_admin_keep</allow_inactive>
|
||||
@@ -29,8 +29,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.sleep-wake">
|
||||
<_description>Put NetworkManager to sleep or wake it up (should only be used by system power management)</_description>
|
||||
<_message>System policy prevents putting NetworkManager to sleep or waking it up</_message>
|
||||
<description>Put NetworkManager to sleep or wake it up (should only be used by system power management)</description>
|
||||
<message>System policy prevents putting NetworkManager to sleep or waking it up</message>
|
||||
<defaults>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>no</allow_active>
|
||||
@@ -38,8 +38,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.enable-disable-wifi">
|
||||
<_description>Enable or disable Wi-Fi devices</_description>
|
||||
<_message>System policy prevents enabling or disabling Wi-Fi devices</_message>
|
||||
<description>Enable or disable Wi-Fi devices</description>
|
||||
<message>System policy prevents enabling or disabling Wi-Fi devices</message>
|
||||
<defaults>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>yes</allow_active>
|
||||
@@ -47,8 +47,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.enable-disable-wwan">
|
||||
<_description>Enable or disable mobile broadband devices</_description>
|
||||
<_message>System policy prevents enabling or disabling mobile broadband devices</_message>
|
||||
<description>Enable or disable mobile broadband devices</description>
|
||||
<message>System policy prevents enabling or disabling mobile broadband devices</message>
|
||||
<defaults>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>yes</allow_active>
|
||||
@@ -56,8 +56,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.enable-disable-wimax">
|
||||
<_description>Enable or disable WiMAX mobile broadband devices</_description>
|
||||
<_message>System policy prevents enabling or disabling WiMAX mobile broadband devices</_message>
|
||||
<description>Enable or disable WiMAX mobile broadband devices</description>
|
||||
<message>System policy prevents enabling or disabling WiMAX mobile broadband devices</message>
|
||||
<defaults>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>yes</allow_active>
|
||||
@@ -65,8 +65,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.network-control">
|
||||
<_description>Allow control of network connections</_description>
|
||||
<_message>System policy prevents control of network connections</_message>
|
||||
<description>Allow control of network connections</description>
|
||||
<message>System policy prevents control of network connections</message>
|
||||
<defaults>
|
||||
<allow_any>auth_admin</allow_any>
|
||||
<allow_inactive>yes</allow_inactive>
|
||||
@@ -75,8 +75,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.wifi.scan">
|
||||
<_description>Allow control of Wi-Fi scans</_description>
|
||||
<_message>System policy prevents Wi-Fi scans</_message>
|
||||
<description>Allow control of Wi-Fi scans</description>
|
||||
<message>System policy prevents Wi-Fi scans</message>
|
||||
<defaults>
|
||||
<allow_any>auth_admin</allow_any>
|
||||
<allow_inactive>yes</allow_inactive>
|
||||
@@ -85,8 +85,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.wifi.share.protected">
|
||||
<_description>Connection sharing via a protected Wi-Fi network</_description>
|
||||
<_message>System policy prevents sharing connections via a protected Wi-Fi network</_message>
|
||||
<description>Connection sharing via a protected Wi-Fi network</description>
|
||||
<message>System policy prevents sharing connections via a protected Wi-Fi network</message>
|
||||
<defaults>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>yes</allow_active>
|
||||
@@ -94,8 +94,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.wifi.share.open">
|
||||
<_description>Connection sharing via an open Wi-Fi network</_description>
|
||||
<_message>System policy prevents sharing connections via an open Wi-Fi network</_message>
|
||||
<description>Connection sharing via an open Wi-Fi network</description>
|
||||
<message>System policy prevents sharing connections via an open Wi-Fi network</message>
|
||||
<defaults>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>yes</allow_active>
|
||||
@@ -103,8 +103,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.settings.modify.own">
|
||||
<_description>Modify personal network connections</_description>
|
||||
<_message>System policy prevents modification of personal network settings</_message>
|
||||
<description>Modify personal network connections</description>
|
||||
<message>System policy prevents modification of personal network settings</message>
|
||||
<defaults>
|
||||
<allow_any>auth_self_keep</allow_any>
|
||||
<allow_inactive>yes</allow_inactive>
|
||||
@@ -113,8 +113,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.settings.modify.system">
|
||||
<_description>Modify network connections for all users</_description>
|
||||
<_message>System policy prevents modification of network settings for all users</_message>
|
||||
<description>Modify network connections for all users</description>
|
||||
<message>System policy prevents modification of network settings for all users</message>
|
||||
<defaults>
|
||||
<allow_any>auth_admin_keep</allow_any>
|
||||
<allow_inactive>@NM_MODIFY_SYSTEM_POLICY@</allow_inactive>
|
||||
@@ -123,8 +123,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.settings.modify.hostname">
|
||||
<_description>Modify persistent system hostname</_description>
|
||||
<_message>System policy prevents modification of the persistent system hostname</_message>
|
||||
<description>Modify persistent system hostname</description>
|
||||
<message>System policy prevents modification of the persistent system hostname</message>
|
||||
<defaults>
|
||||
<allow_any>auth_admin_keep</allow_any>
|
||||
<allow_inactive>auth_admin_keep</allow_inactive>
|
||||
@@ -133,8 +133,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.settings.modify.global-dns">
|
||||
<_description>Modify persistent global DNS configuration</_description>
|
||||
<_message>System policy prevents modification of the persistent global DNS configuration</_message>
|
||||
<description>Modify persistent global DNS configuration</description>
|
||||
<message>System policy prevents modification of the persistent global DNS configuration</message>
|
||||
<defaults>
|
||||
<allow_any>auth_admin_keep</allow_any>
|
||||
<allow_inactive>auth_admin_keep</allow_inactive>
|
||||
@@ -143,8 +143,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.checkpoint-rollback">
|
||||
<_description>Perform a checkpoint or rollback of interfaces configuration</_description>
|
||||
<_message>System policy prevents the creation of a checkpoint or its rollback</_message>
|
||||
<description>Perform a checkpoint or rollback of interfaces configuration</description>
|
||||
<message>System policy prevents the creation of a checkpoint or its rollback</message>
|
||||
<defaults>
|
||||
<allow_any>auth_admin_keep</allow_any>
|
||||
<allow_inactive>auth_admin_keep</allow_inactive>
|
||||
@@ -153,8 +153,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.enable-disable-statistics">
|
||||
<_description>Enable or disable device statistics</_description>
|
||||
<_message>System policy prevents enabling or disabling device statistics</_message>
|
||||
<description>Enable or disable device statistics</description>
|
||||
<message>System policy prevents enabling or disabling device statistics</message>
|
||||
<defaults>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>yes</allow_active>
|
||||
@@ -162,8 +162,8 @@
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.NetworkManager.enable-disable-connectivity-check">
|
||||
<_description>Enable or disable connectivity checking</_description>
|
||||
<_message>System policy prevents enabling or disabling connectivity checking</_message>
|
||||
<description>Enable or disable connectivity checking</description>
|
||||
<message>System policy prevents enabling or disabling connectivity checking</message>
|
||||
<defaults>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>yes</allow_active>
|
||||
|
Reference in New Issue
Block a user