diff options
Diffstat (limited to 'community/pacman/use-gettext-libintl.patch')
-rw-r--r-- | community/pacman/use-gettext-libintl.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/community/pacman/use-gettext-libintl.patch b/community/pacman/use-gettext-libintl.patch new file mode 100644 index 00000000000..2026b1f51c7 --- /dev/null +++ b/community/pacman/use-gettext-libintl.patch @@ -0,0 +1,44 @@ +Force build system to use libintl coming with gettext. + +--- a/meson.build ++++ b/meson.build +@@ -77,12 +77,10 @@ + + libintl = dependency('', required: false) + if get_option('i18n') +- if not cc.has_function('ngettext') + libintl = cc.find_library('intl', required : false, static: get_option('buildstatic')) + if not libintl.found() + error('ngettext not found but NLS support requested') + endif +- endif + conf.set('ENABLE_NLS', 1) + endif + +@@ -341,7 +339,7 @@ + pacman_sources, + include_directories : includes, + link_with : [libalpm, libcommon], +- dependencies : [libarchive], ++ dependencies : [libarchive, libintl], + install : true, + ) + +@@ -350,7 +348,7 @@ + pacman_conf_sources, + include_directories : includes, + link_with : [libalpm, libcommon], +- dependencies : [libarchive], ++ dependencies : [libarchive, libintl], + install : true, + ) + +@@ -359,7 +357,7 @@ + testpkg_sources, + include_directories : includes, + link_with : [libalpm], +- dependencies : [libarchive], ++ dependencies : [libarchive, libintl], + install : true, + ) + |