Subject: have gettext check for "This file is part of the GNU C Library"
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/31/2004 08:12:57
I am using the following patch.

Can others try that too?

Is it okay to add something like this?

--- devel/gettext-lib/builtin.mk	29 Mar 2004 05:43:30 -0000
1.4
+++ devel/gettext-lib/builtin.mk	31 Mar 2004 16:05:33 -0000
@@ -14,18 +14,28 @@

 .if !defined(IS_BUILTIN.gettext)
 IS_BUILTIN.gettext=	no
-.  if !empty(_BLNK_LIBINTL_FOUND:M[yY][eE][sS]) && exists(${_LIBINTL_H})
+.  if  exists(${_LIBINTL_H})
+.    if !empty(_BLNK_LIBINTL_FOUND:M[Nn][Oo])
+IS_BUILTIN.gettext!=	\
+	if ${GREP} -q "This file is part of the GNU C Library"
${_LIBINTL_H}; then \
+		${ECHO} "yes";						\
+	else								\
+		${ECHO} "no";						\
+	fi
+.    endif
+.    if !empty(_BLNK_LIBINTL_FOUND:M[yY][eE][sS])
 IS_BUILTIN.gettext!=	\
 	if ${GREP} -q "\#define[ 	]*__USE_GNU_GETTEXT"
${_LIBINTL_H}; then \
 		${ECHO} "yes";						\
 	else								\
 		${ECHO} "no";						\
 	fi
+.    endif
 .    if !empty(IS_BUILTIN.gettext:M[yY][eE][sS])
 # XXX
 # XXX Consider the native libintl to be gettext-lib-0.10.35nb1.



Maybe same should be done for libiconv too.


Can anyone help with the wip/gettext* packages?

It would be good to update gettext* to a recent (or latest) version.

   Jeremy C. Reed
   http://www.reedmedia.net/