bug-gnulib
[Top][All Lists]
Advanced

[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
http://lists.gnu.org/archive/html/bug-gnulib/2004-12/msg00122.html.

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 
gnulib 
   # 
   # Modules needed for findutils itself.
   findutils_modules="\
   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.
   #intl_modules="regex"
   # We currently don't use the intl subdirectory.
   intl_modules=""
   
   modules="$findutils_modules $intl_modules"
   export modules
   # ... 
   if "$1"/gnulib-tool --import --dir=. --lib=libgnulib 
--source-base=gnulib/lib --m4-base=gnulib/m4  $modules
   then
       : OK
   else
       echo "gnulib-tool failed, exiting." >&2
       exit 1
   fi


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
distcheck":-

make[2]: Entering directory 
`/home/james/source/findutils/cvs/fixbug/compile/findutils-4.2.12-CVS/_build/po'
make update-po
make[3]: Entering directory 
`/home/james/source/findutils/cvs/fixbug/compile/findutils-4.2.12-CVS/_build/po'
make findutils.pot
make[4]: Entering directory 
`/home/james/source/findutils/cvs/fixbug/compile/findutils-4.2.12-CVS/_build/po'
make[4]: *** No rule to make target `../../gnulib/lib/regex.c', needed by 
`../../po/findutils.pot'.  Stop.
make[4]: Leaving directory 
`/home/james/source/findutils/cvs/fixbug/compile/findutils-4.2.12-CVS/_build/po'
make[3]: *** [update-po] Error 2
make[3]: Leaving directory 
`/home/james/source/findutils/cvs/fixbug/compile/findutils-4.2.12-CVS/_build/po'
make[2]: *** [distdir] Error 2
make[2]: Leaving directory 
`/home/james/source/findutils/cvs/fixbug/compile/findutils-4.2.12-CVS/_build/po'
make[1]: *** [distdir] Error 1
make[1]: Leaving directory 
`/home/james/source/findutils/cvs/fixbug/compile/findutils-4.2.12-CVS/_build'
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,
James.




reply via email to

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