Re: git: 8bb43708468c - main - security/pam_howdy: + PAM module for Howdy Face Recognition.

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 29 Mar 2023 11:59:30 UTC
Gleb Popov <arrowd@FreeBSD.org> writes:

> ++# On libintl library is required for gettext
> ++libintl_dep = meson.get_compiler('cpp').find_library('intl', required: false)

This can be simplified via https://github.com/mesonbuild/meson/commit/2c6ccfe4c407

diff --git a/security/pam_howdy/files/patch-meson.build b/security/pam_howdy/files/patch-meson.build
index 761de0f00a2c..4e565f5e2644 100644
--- a/security/pam_howdy/files/patch-meson.build
+++ b/security/pam_howdy/files/patch-meson.build
@@ -7,7 +7,7 @@
 +# On FreeBSD, libepoll-shim library is required for signalfd.h
 +epoll_shim = dependency('epoll-shim', required : false)
 +# On libintl library is required for gettext
-+libintl_dep = meson.get_compiler('cpp').find_library('intl', required: false)
++libintl_dep = dependency('intl')
 +
  # Translations
  subdir('po')