Subject: Re: Some pullup-requests
To: Joerg Sonnenberger <joerg@britannica.bec.de>
From: David Brownlee <abs@NetBSD.org>
List: tech-pkg
Date: 11/03/2007 01:27:12
On Thu, 1 Nov 2007, Joerg Sonnenberger wrote:
> On Thu, Nov 01, 2007 at 09:05:28AM +0000, David Brownlee wrote:
>> b) We declare INCOMPAT_GETTEXT for everything on NetBSD-[123].*
>> Clean & quick, but something of a sledgehammer
>
> Doesn't work either as NetBSD doesn't support the argument reordering
> and the macros create some interesting issues e.g. for mplayer and other
> applications that build stuff with libintl.h but without linking with
> -lintl.
>
>> c) Some logic to fixup the files so the other gettext can handle
>> them
>> The best solution, but the most work
>
> Noone has provided the data point that those files *don't* work. It used
> to work fine with older versions of intltool, so I am quite happy to put
> the blame on that.
OK, I missed the start of the thread, so apologies if I'm
repeating what has already been done, but just to confirm
I just setup a NetBSD 3.1.1 qemu image on my server, and
building the previous rev of shared-mime-info but with
everything else from the latest pkgsrc gives:
===> Building for shared-mime-info-0.22
Making check in po
gmake[1]: Entering directory `/var/obj/pkg/databases/shared-mime-info-old/work/shared-mime-info-0.22/po'
file=`echo az | sed 's,.*/,,'`.gmo \
&& rm -f $file && /var/obj/pkg/databases/shared-mime-info-old/work/.tools/bin/msgfmt -o $file az.po
file=`echo bg | sed 's,.*/,,'`.gmo \
&& rm -f $file && /var/obj/pkg/databases/shared-mime-info-old/work/.tools/bin/msgfmt -o $file bg.po
[...]
INTLTOOL_EXTRACT=../intltool-extract srcdir=. ../intltool-update --gettext-package shared-mime-info --pot
WARNING: This version of gettext does not support extracting non-ASCII
strings. That means you should install a version of gettext
that supports non-ASCII strings (such as GNU gettext >= 0.12),
or have to let non-ASCII strings untranslated. (If there is any)
xgettext: unrecognized option `--flag=g_strdup_printf:1:c-format'
Try `xgettext --help' for more information.
ERROR: xgettext failed to generate PO template file. Please consult
error message above if there is any.
gmake[1]: *** [shared-mime-info.pot] Error 1
gmake[1]: Leaving directory `/var/obj/pkg/databases/shared-mime-info-old/work/shared-mime-info-0.22/po'
gmake: *** [check-recursive] Error 1
*** Error code 2
Stop.
make: stopped in /home/netbsd/pkgsrc/databases/shared-mime-info-old
*** Error code 1
Stop.
make: stopped in /home/netbsd/pkgsrc/databases/shared-mime-info-old
netbsd3#
netbsd3# pkg_info
digest-20070803 Message digest wrapper utility
libtool-base-1.5.24nb5 Generic shared library support script (the script itself
gmake-3.81 GNU version of 'make' utility
netbsd3# pkg_info
digest-20070803 Message digest wrapper utility
libtool-base-1.5.24nb5 Generic shared library support script (the script itself)
gmake-3.81 GNU version of 'make' utility
perl-5.8.8nb4 Practical Extraction and Report Language
expat-2.0.1 XML parser library written in C
p5-XML-Parser-2.34nb5 Perl extension interface to James Clark's XML parser, expa
intltool-0.36.2 Toolbox for internationalisation
pkg-config-0.21nb2 System for managing library compile/link flags
glib2-2.14.2 Some useful routines for C programming (glib2)
xmlcatmgr-2.2nb1 XML and SGML catalog manager
libxml2-2.6.30 XML parser library from the GNOME project
netbsd3# /var/obj/pkg/databases/shared-mime-info-old/work/.tools/bin/msgfmt --version <
msgfmt (GNU gettext) 0.10.35
netbsd3# /var/obj/pkg/databases/shared-mime-info-old/work/.tools/bin/xgettext --version
xgettext (GNU gettext) 0.10.35
[...]
netbsd3# /var/obj/pkg/databases/shared-mime-info-old/work/.tools/bin/intltool-extract --version
intltool-extract (intltool) 0.36.2
[...]
So.. that adds having intltool-extract grow an option to be compatible
with gettext 0.10.35 to the list...
David/absolute -- www.NetBSD.org: No hype required --