* PATCH: System error names, again.
@ 2007-05-26 20:15 Peter Stephenson
0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2007-05-26 20:15 UTC (permalink / raw)
To: Zsh hackers list
The generation of names for system errors is broken on Linux again.
We restrict the list of files which may contain error
number definitions to the longest list yet found. This means
asm-generic/errno-base.h doesn't get included.
I don't think that test is necessary, but have a careful look to see if
this is broken on any system (Src/Modules/errnames.c; you may have to
remove it to regenerate it).
Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.62
diff -u -r1.62 configure.ac
--- configure.ac 1 May 2007 22:05:03 -0000 1.62
+++ configure.ac 26 May 2007 20:15:00 -0000
@@ -1325,7 +1325,6 @@
$AWK '{ if ($1 ~ /err/) files[[$1]] = $1 }
END { for (var in files) print var }'`"
rm -f nametmp.c
-lnerrs=0
for ERRNO_TRY_H in $errfile_list /dev/null
do
dnl Try to make sure it doesn't get confused by files that don't
@@ -1337,9 +1336,8 @@
nerrs=`test -f $ERRNO_TRY_H && \
$EGREP '#[ ]*define[ ][ ]*E[0-9A-Z]*[ ]*(_HURD_ERRNO )?\(?[_A-Z0-9]' $ERRNO_TRY_H | \
wc -l | sed 's/[ ]//g'`
- if test "x$nerrs" != x && test "$nerrs" -ge 1 && test "$nerrs" -gt "$lnerrs"
+ if test "x$nerrs" != x && test "$nerrs" -ge 1
then
- lnerrs=$nerrs
ERRNO_H="$ERRNO_H $ERRNO_TRY_H"
fi
done
--
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-26 20:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-26 20:15 PATCH: System error names, again Peter Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).