pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gettext-tools build failure



On today's NetBSD-current/amd64, I'm getting a repeatable

libtool: install: (cd /tmp/pkgsrc/devel/gettext-tools/work/.destdir/usr/pbulk/lib && { ln -s -f libgettextsrc-0.22.5.so libgett
extsrc.so || { rm -f libgettextsrc.so && ln -s libgettextsrc-0.22.5.so libgettextsrc.so; }; })
libtool: install: /usr/bin/install -c -o root -g wheel .libs/libgettextsrc.lai /tmp/pkgsrc/devel/gettext-tools/work/.destdir/us
r/pbulk/lib/libgettextsrc.la
libtool: warning: remember to run 'libtool --finish /usr/pbulk/lib'
 mkdir -p '/tmp/pkgsrc/devel/gettext-tools/work/.destdir/usr/pbulk/bin'
  /bin/sh ../libtool   --mode=install /usr/bin/install -c -s -o root -g wheel -m 755 msgcmp msgfmt msgmerge msgunfmt xgettext m
sgattrib msgcat msgcomm msgconv msgen msgexec msgfilter msggrep msginit msguniq recode-sr-latin '/tmp/pkgsrc/devel/gettext-tool
s/work/.destdir/usr/pbulk/bin'
...
libtool: install: /usr/bin/install -c -o root -g wheel -m 755 -s .libs/xgettext /tmp/pkgsrc/devel/gettext-tools/work/.destdir/usr/pbulk/bin/xgettext
./msgattrib: func_source: 79: Syntax error: Word "dump_D=." unexpected (expecting ")")
*** Error code 2

when building pbulk in a chroot. gettext-tools is built as a dependency, and

work/gettext-0.22.5/gettext-tools/src/msgattrib
    66  # The first argument to this parsing function should be the
    67  # script's /usr/pbulk/bin/libtool value, followed by no.
    68  lt_option_debug=
    69  func_parse_lt_options ()
    70  {
    71    lt_script_arg0=$0
    72    shift
    73    for lt_opt
    74    do
    75      case "$lt_opt" in
    76      --lt-debug) lt_option_debug=1 ;;
    77      --lt-dump-script)
    78          lt_dump_D=`$ECHO "X$lt_script_arg0" | /usr/bin/sed -e 's/^X//' -e 's%/[^/]*$%%'`
    79          test "X$lt_dump_D" = "X$lt_script_arg0" && lt_(dump_D=.
    80          lt_dump_F=`$ECHO "X$lt_script_arg0" | /usr/bin/sed -e 's/^X//' -e 's%^.*/%%'`
    81          cat "$lt_dump_D/$lt_dump_F"
    82          exit 0
    83        ;;

does indeed contain "lt_(dump_D=."

That msgattrib script is generated by libtool (don't see how yet)
to wrap the real .lib/msgattrib which is built from msgattrib.c.
(I'm using cwrappers shlibtool)

Double check: building gettext-0.22.5 outside of pkgsrc gives same error,
so to reproduce

cd /tmp
tar -xzvf /usr/pkgsrc/distfiles/gettext-0.22.5.tar.gz
cd gettext-0.22.5/
mkdir obj
cd obj
../configure --prefix=/tmp/gtxt
gmake -j8
gmake install
[see error]
more ./gettext-tools/src/msgattrib
[see line 79]


Oh: just had successful build on a Sun Mar  1 13:48:46 GMT 2026
current/amd64, and the problematic line doesn't have the spurious '(':

    66  # The first argument to this parsing function should be the
    67  # script's ../libtool value, followed by no.
    68  lt_option_debug=
    69  func_parse_lt_options ()
    70  {
    71    lt_script_arg0=$0
    72    shift
    73    for lt_opt
    74    do
    75      case "$lt_opt" in
    76      --lt-debug) lt_option_debug=1 ;;
    77      --lt-dump-script)
    78          lt_dump_D=`$ECHO "X$lt_script_arg0" | /usr/bin/sed -e 's/^X//' -e 's%/[^/]*$%%'`
    79          test "X$lt_dump_D" = "X$lt_script_arg0" && lt_dump_D=.
    80          lt_dump_F=`$ECHO "X$lt_script_arg0" | /usr/bin/sed -e 's/^X//' -e 's%^.*/%%'`
    81          cat "$lt_dump_D/$lt_dump_F"
    82          exit 0
    83        ;;

So something changed on the NetBSD side, not the pkgsrc/gettext side.

/bin/sh?

Thoughts?


Cheers,

Patrick


Home | Main Index | Thread Index | Old Index