bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: CVS gettext: many test failures


From: Bruno Haible
Subject: Re: CVS gettext: many test failures
Date: Tue, 19 Dec 2006 18:29:44 +0100
User-agent: KMail/1.9.1

Ralf Wildenhues wrote:
> > If after "make clean; make" the tests pass, it was that.
> 
> Nope.

OK, then the "no-dependencies" in gettext's Makefile.am was innocent.

> > If not, then my guess is that the files
> >    gettext-tools/src/po-gram-gen.h
> >    gettext-tools/src/po-gram-gen2.h
> >    gettext-tools/src/po-gram-gen.c
> > are out of sync.
> 
> Yep: some exist in more than one variation, and they aren't used
> consistently.
> 
> > This happened to me once or twice too. For fixing this
> > in gettext-tools/src/Makefile.am I'd need to know the precise situation,
> > i.e.
> >   - are you using a VPATH build?
> 
> Yes, I am.
> 
> >   - what are the timestamps of
> >       gettext-tools/src/po-gram-gen.y
> >       gettext-tools/src/po-gram-gen.h
> >       gettext-tools/src/po-gram-gen2.h
> >       gettext-tools/src/po-gram-gen.c
> >     in the build directory and in the source directory?
> 
> source:
> -rw-r--r-- 1 ralf ralf 44513 2006-10-29 18:59:35.000000000 +0100 po-gram-gen.c
> -rw-r--r-- 1 ralf ralf  1084 2006-10-29 18:59:35.000000000 +0100 po-gram-gen.h
> -rw-r--r-- 1 ralf ralf 11508 2006-11-07 20:19:55.000000000 +0100 po-gram-gen.y
> 
> build:
> -rw-r--r-- 1 ralf ralf  3325 2006-12-16 18:43:57.000000000 +0100 
> po-gram-gen2.h
> -rw-r--r-- 1 ralf ralf 58715 2006-12-16 18:42:42.000000000 +0100 po-gram-gen.c
> -rw-r--r-- 1 ralf ralf  3294 2006-12-16 18:42:42.000000000 +0100 po-gram-gen.h

That's clear, thanks. The reason is thus that some source files which do
  #include "po-gram-gen.h"
got the one in the source dir, wherease the compilation of
po-gram-gen.c used the results of the Bison invocation on 2006-12-16 18:42:42.

po-gram-gen2.h is not the problem, since it occurs only once. The problem is
with po-gram-gen.h and po-gram-gen.c. gettext-tools/src/Makefile.am relies
on automake to DTRT, but it DTWT: it creates the new files in the build
directory. I know the reason why: if a source distribution is installed in a
read-only location, the build in a VPATH should not touch any file in the
source directory. Say the automake theorists.

The result are inconsistent compiles, as you see.

Are you are going to report this to the automake people?

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]