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

gEDA-dev: geda/gaf automake/autoconf issues



Hi,

Today I've checked out the code from the CVS and tried to compile it. I
had automake version 1.4 and the compilation failed in a way that it was
not trivial that my automake was too old. Installing automake 1.8 solves
the problem. I think autogen.sh scripts should check automake/autoconf
versions and warn the user if they are too old. 

The other issue is a nice warning autogen.sh gives on my Debian GNU/Linux
testing, with GNU find version 4.2.8: 

find: warning: Unix filenames usually don't contain slashes (though
pathnames do).  That means that '-name ./CVS' will probably evaluate to
false all the time on this system.  You might find the '-wholename' test
more useful, or perhaps '-samefile'.  Alternatively, if you are using GNU
grep, you could use 'find ... -print0 | grep -FzZ ./CVS'.


I think a possible solution would be not using -name $srcdir/CVS to filter
the results but use a grep. (-wholename doesn't seem to be too portable). 
A patch for gattrib is attached as an example.

Regards,

Igor2 
Index: autogen.sh
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gattrib/autogen.sh,v
retrieving revision 1.2
diff -u -r1.2 autogen.sh
--- autogen.sh	21 Feb 2005 03:58:34 -0000	1.2
+++ autogen.sh	21 Oct 2006 14:22:52 -0000
@@ -78,7 +78,7 @@
   am_opt=--include-deps;;
 esac
 
-for coin in `find $srcdir -name $srcdir/CVS -prune -o -name $configure_script -print`
+for coin in `find $srcdir  -name $configure_script -print | grep -v "^$srcdir/CVS"`
 do 
   dr=`dirname $coin`
   if test -f $dr/NO-AUTO-GEN; then


_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev