This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gettext-test shouldn't run if !msgfmt



On a machine without msgfmt I got the following error running the testsuite:

[...]
bin/sh -e tst-gettext.sh /var/home/aj/build-glibc/20000523/ /var/home/aj/build-glibc/20000523/intl/
tst-gettext.sh: msgfmt: command not found
make[2]: *** [do-gettext-test] Error 127
make[2]: Leaving directory `/var/home/aj/libc/intl'
make[1]: *** [intl/tests] Error 2
make[1]: Leaving directory `/var/home/aj/libc'
make: *** [check] Error 2
[mq:ttyp0] /var/home/aj/build-glibc/20000523
$ grep -i msgfmt config.make 
MSGFMT = :

FYI: I've committed the appended patch.

Andreas

2000-05-24  Andreas Jaeger  <aj@suse.de>

	* intl/Makefile: Run gettext-test only if msgfmt is available.

============================================================
Index: intl/Makefile
--- intl/Makefile	2000/04/09 22:50:08	1.23
+++ intl/Makefile	2000/05/24 09:30:52
@@ -46,10 +46,12 @@
 
 ifeq (no,$(cross-compiling))
 ifeq (yes,$(build-shared))
+ifneq ($(strip $(MSGFMT)),:)
 .PHONY: do-gettext-test
 tests: do-gettext-test
 do-gettext-test: tst-gettext.sh $(objpfx)tst-gettext
 	$(SHELL) -e $< $(common-objpfx) $(objpfx)
+endif
 endif
 endif
 

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]