From owner-freebsd-ports@FreeBSD.ORG Wed Jul 12 17:17:58 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA81816A4DD for ; Wed, 12 Jul 2006 17:17:58 +0000 (UTC) (envelope-from jbq@anyware-tech.com) Received: from caraldi.com (195-13-58-165.oxyd.net [195.13.58.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35DE243D4C for ; Wed, 12 Jul 2006 17:17:57 +0000 (GMT) (envelope-from jbq@anyware-tech.com) Received: from vision.anyware (10.21.96-84.rev.gaoland.net [84.96.21.10]) by caraldi.com (Postfix) with ESMTP id 020FD6113 for ; Wed, 12 Jul 2006 19:17:57 +0200 (CEST) Received: by vision.anyware (Postfix, from userid 1021) id 9F30962CC; Wed, 12 Jul 2006 19:17:58 +0200 (CEST) Date: Wed, 12 Jul 2006 19:17:58 +0200 From: Jean-Baptiste Quenot To: freebsd-ports Message-ID: <20060712171758.GA74240@vision.anyware> Mail-Followup-To: freebsd-ports MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="huq684BweRXVnRxX" Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: Subject: msgfmt conflict between devel/gettext and x11-toolkits/xview X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2006 17:17:58 -0000 --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--