[Top][All Lists]

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

[bug-gnulib] Problem: regex.c being omitted from the distribution

From: James Youngman
Subject: [bug-gnulib] Problem: regex.c being omitted from the distribution
Date: Sat, 22 Jan 2005 10:40:33 +0000
User-agent: Mutt/1.3.28i

There's an eerie feeling of familiarity about this problem.  For
background please see

My earlier attempt to resolve this problem was misguided, so this time
I'll admit up front that I don't know what the right solution is.

My problem is that "make distcheck" against the current GNU findutils
CVS code (which uses the current gnulib CVS code) fails.

I find that "make dist" fails to include "regex.c" in the distributed
tar.gz file, although it does include regex.m4 and regex.h.  Bruno
writes in the referenced article that everything works with
"gnulib-tool --create-testdir" but I'm not using that; I am using

   # We start with $1 indicating the directory containing the CVS source for 
   # Modules needed for findutils itself.
   alloca  argmatch  dirname error fileblocks  fnmatch-gnu  \
   getline getopt human idcache  lstat malloc memcmp memset mktime        \
   modechange   pathmax quotearg realloc regex rpmatch savedir stat  \
   stpcpy strdup strftime  strstr strtol strtoul strtoull strtoumax  \
   xalloc xalloc-die xgetcwd  xstrtol  xstrtoumax yesno human filemode \
   getline stpcpy canonicalize mountlist closeout"
   # Modules needed for the "intl" subdirectory.
   # We currently don't use the intl subdirectory.
   modules="$findutils_modules $intl_modules"
   export modules
   # ... 
   if "$1"/gnulib-tool --import --dir=. --lib=libgnulib 
--source-base=gnulib/lib --m4-base=gnulib/m4  $modules
       : OK
       echo "gnulib-tool failed, exiting." >&2
       exit 1

Please notice that regex is included in $findutils_modules (and hence
in $modules) even though it is not included in $intl_modules.  The
failure occurs because regex.c is needed in po/Makefile during "make

make[2]: Entering directory 
make update-po
make[3]: Entering directory 
make findutils.pot
make[4]: Entering directory 
make[4]: *** No rule to make target `../../gnulib/lib/regex.c', needed by 
`../../po/findutils.pot'.  Stop.
make[4]: Leaving directory 
make[3]: *** [update-po] Error 2
make[3]: Leaving directory 
make[2]: *** [distdir] Error 2
make[2]: Leaving directory 
make[1]: *** [distdir] Error 1
make[1]: Leaving directory 
make: *** [distcheck] Error 2

The above is generated with gnulib from CVS updated at Sat Jan 22
10:26:24 UTC 2005.  

I wonder if the problem is in effect that regex.c should be included
somehow in $(EXTRA_DIST) or $(DIST_COMMON) but it's not.

Thanks in advance for any help,

reply via email to

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