Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jul 2006 19:17:58 +0200
From:      Jean-Baptiste Quenot <jbq@caraldi.com>
To:        freebsd-ports <ports@freebsd.org>
Subject:   msgfmt conflict between devel/gettext and x11-toolkits/xview
Message-ID:  <20060712171758.GA74240@vision.anyware>

next in thread | raw e-mail | index | archive | help

--huq684BweRXVnRxX
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

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/

--huq684BweRXVnRxX
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename=20060709-freebsd-audacity-locale

--- 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

--huq684BweRXVnRxX
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename=20060711-freebsd-muttng-msgfmt

--- 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

--huq684BweRXVnRxX
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename=20060711-freebsd-sound-juicer-msgfmt

--- 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
 

--huq684BweRXVnRxX--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060712171758.GA74240>