Subject: Re: glib2/gettext problem
To: Bernhard Riedel <bernhard@SDG.DE>
From: Min Sik Kim <minskim@NetBSD.org>
List: tech-pkg
Date: 11/27/2004 11:52:24
On Sat, 27 Nov 2004 18:13:15 +0100 (CET)
"Bernhard Riedel" <bernhard@SDG.DE> wrote:
> Hi,
>
> I can't build devel/glib2 because of something that looks like a gettext
> problem.
>
> beast# cd /usr/pkgsrc/devel/glib2
> beast# make
> [...]
> checking if -liconv is needed to use gettext...
> checking for dcgettext in -lintl... no
> configure: error:
I think gettext-lib/builtin.mk fails to detect libintl. Please try
the following patch.
Index: devel/gettext-lib/builtin.mk
===================================================================
RCS file: /cvsroot/pkgsrc/devel/gettext-lib/builtin.mk,v
retrieving revision 1.14
diff -u -r1.14 builtin.mk
--- devel/gettext-lib/builtin.mk 26 Nov 2004 23:16:35 -0000 1.14
+++ devel/gettext-lib/builtin.mk 27 Nov 2004 17:43:59 -0000
@@ -3,12 +3,12 @@
.for _lib_ in intl
. if !defined(_BLNK_LIB_FOUND.${_lib_})
_BLNK_LIB_FOUND.${_lib_}!= \
- if ${TEST} "`${ECHO} /usr/lib/lib${_lib_}.*`" = "/usr/lib/lib${_lib_}.*"; then \
- ${ECHO} "no"; \
- elif ${TEST} "`${ECHO} /lib/lib${_lib_}.*`" = "/lib/lib${_lib_}.*"; then \
- ${ECHO} "no"; \
- else \
+ if ${TEST} "`${ECHO} /usr/lib/lib${_lib_}.*`" != "/usr/lib/lib${_lib_}.*"; then \
${ECHO} "yes"; \
+ elif ${TEST} "`${ECHO} /lib/lib${_lib_}.*`" != "/lib/lib${_lib_}.*"; then \
+ ${ECHO} "yes"; \
+ else \
+ ${ECHO} "no"; \
fi
BUILDLINK_VARS+= _BLNK_LIB_FOUND.${_lib_}
. endif
--
Min Sik Kim