msgfmt conflict between devel/gettext and x11-toolkits/xview

Jean-Baptiste Quenot jbq at caraldi.com
Wed Jul 12 17:17:58 UTC 2006


Hello,

A   lot   of  ports   failed   to   compile  after   I   installed
x11-toolkits/xview.  The latter installs a program called "msgfmt"
in X11BASE, whereas gettext installs  a program with the same name
in LOCALBASE.

Most ports don't set MSGFMT in CONFIGURE_ENV, so the port compiles
with  the first  "msgfmt" found  in PATH.   This is  not reliable.
There are also  ports that don't allow to specify  the path of the
"msgfmt" program at configure stage.

See attached patches for examples.  First patch is for
audio/audacity, second for mail/mutt-ng and third for
audio/sound-juicer.

Note that the audacity patch is not complete, it is just an
indication of the way to go.
-- 
     Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/
-------------- next part --------------
--- locale/Makefile.in.orig	Sun Jul  9 15:41:02 2006
+++ locale/Makefile.in	Sun Jul  9 15:42:41 2006
@@ -33,9 +33,9 @@
 update: force-update $(POTFILE) updatepo FORCE
 
 # the programs we use (TODO: use configure to detect them)
-MSGFMT=msgfmt -v
-MSGMERGE=msgmerge
-XGETTEXT=xgettext
+MSGFMT=@LOCALBASE@/bin/msgfmt -v
+MSGMERGE=@LOCALBASE@/bin/msgmerge
+XGETTEXT=@LOCALBASE@/bin/xgettext
 XARGS=xargs
 
 # common xgettext args: C++ syntax, use the specified macro names as markers
-------------- next part --------------
--- Makefile.orig	Tue Jul 11 22:07:08 2006
+++ Makefile	Tue Jul 11 22:07:36 2006
@@ -19,7 +19,7 @@
 GNU_CONFIGURE=	yes
 USE_OPENSSL=	yes
 
-CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" MSGFMT=${LOCALBASE}/bin/msgfmt
 CONFIGURE_ARGS=	--disable-fcntl --sysconfdir=${PREFIX}/etc \
 		--with-sharedir=${PREFIX}/share/mutt \
 		--with-docdir=${DOCSDIR} --with-charmaps
-------------- next part --------------
--- Makefile.orig	Tue Jul 11 23:42:55 2006
+++ Makefile	Tue Jul 11 23:43:28 2006
@@ -32,7 +32,8 @@
 CONFIGURE_ARGS=	--enable-ignore-missing-cd
 INSTALLS_ICONS=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
-		LDFLAGS="-L${LOCALBASE}/lib"
+		LDFLAGS="-L${LOCALBASE}/lib" \
+		MSGFMT=${LOCALBASE}/bin/msgfmt
 
 GCONF_SCHEMAS=	sound-juicer.schemas
 


More information about the freebsd-ports mailing list