[Bug 269922] net-mgmt/monitoring-plugins build fails when NLS is set

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 02 Mar 2023 20:28:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269922

            Bug ID: 269922
           Summary: net-mgmt/monitoring-plugins build fails when NLS is
                    set
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: joneum@FreeBSD.org
          Reporter: t.weustink@outlook.com
          Assignee: joneum@FreeBSD.org
             Flags: maintainer-feedback?(joneum@FreeBSD.org)

Since v2.3.2 (released 16 February) this port fails to build when NLS is UNSET.

The log message shows:
cc -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I..  -I..
-I../lib -I../gl -I../intl -I/usr/include -I/usr/local/include -D_THREAD_SAFE
-DNP_VERSION='""' -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -MT
check_swap.o -MD -MP -MF .deps/check_swap.Tpo -c -o check_swap.o check_swap.c
check_swap.c:39:10: fatal error: 'libintl.h' file not found
#include <libintl.h>
         ^~~~~~~~~~~

Changing the option to SET will build the port without a problem.

Thanks to vishwin in #bsdports on EFnet for point to NLS in regards to
libintl.h.

I set Severity to "Affect Some People" since be default NLS is SET, so only if
you build manually and set NLS to UNSET will you run into this issue.
Not sure if "Affects Many People" is warranted in this case.

-- 
You are receiving this mail because:
You are the assignee for the bug.