other/7727: `make install' fails when none of the localization files are installed (as controlled by LINGUAS)
Andrey R. Urazov
coola@localhost.localdomain
Mon Aug 26 11:26:00 GMT 2002
>Number: 7727
>Category: other
>Synopsis: `make install' fails when none of the localization files are installed (as controlled by LINGUAS)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 26 09:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Andrey R. Urazov
>Release: 3.2
>Organization:
Novosibirsk State Technical University
>Environment:
System: Linux localhost.localdomain 2.4.18 #7 Don Jul 11 21:38:33 NOVST 2002 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.2/configure --prefix=/usr/local/gcc-3.2 --enable-languages=c,c++,java,f77
>Description:
after I ran make install I got:
for cat in ; do \
lang=`basename $cat | sed 's/\.gmo$//'`; \
if [ -f $cat ]; then :; \
elif [ -f ../../gcc-3.2/gcc/$cat ]; then cat=../../gcc-3.2/gcc/$cat; \
else continue; \
fi; \
dir=/usr/local/gcc-3.2/share/locale/$lang/LC_MESSAGES; \
echo /bin/sh ../../gcc-3.2/gcc/mkinstalldirs $dir; \
/bin/sh ../../gcc-3.2/gcc/mkinstalldirs $dir || exit 1; \
echo /bin/sh /usr/src/gcc/gcc-3.2/install-sh -c -m 644 $cat $dir/gcc.mo; \
/bin/sh /usr/src/gcc/gcc-3.2/install-sh -c -m 644 $cat $dir/gcc.mo; \
done
/bin/sh: -c: line 1: syntax error near unexpected token `;'
This is on account of the fact I didn't need any localization files to be installed and the corresponding variable in the makefile turned out to be empty.
>How-To-Repeat:
set environment var LINGUAS=en, configure, bootstrap and `make install'
>Fix:
Probably it makes sense to treat such a case specially when constructing Makefile, or put an a branch in it so that in my case the loop is never entered.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list