From: Dominic Dunlop Date: Sat, 4 Jan 1997 22:34:25 +0000 (+0100) Subject: Patch: make hints files warn about db-recno failures X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=692df45da95e2b7d14c4560347ef4555bb40b621;p=p5sagit%2Fp5-mst-13.2.git Patch: make hints files warn about db-recno failures Herewith some minor Configure and hints patches against 5.003_19: 1. Amend Configure so that MachTen's antediluvian test, which holds that -1 is not an integer, does not bleat during non-blocking IO tests. (Tom Christiansen posted a while back about several instances of this sort of thing; this patch addresses the only one I can see. Are there still others?) 2. Make hints files for A/UX, FreeBSD, and MachTen give notification of the db-recno test failures caused by these systems' old db libraries. This patch due mainly to Roderick Schertler, who implemented a suggestion I made. I hope it's OK to put a shared stub in hints/. It has the .shx extension so that it doesn't show up in Configure's list of systems for which there are hints. It may be that the hints for some version of IRIX need the same tweak, but I couldn't work out which one from Martijn Koster's recent posting, and so left well enough alone. p5p-msgid: --- diff --git a/Configure b/Configure index 15a3e41..a6a4b28 100755 --- a/Configure +++ b/Configure @@ -6439,7 +6439,7 @@ EOCP *) echo "However, your read() returns '$status' on EOF??";; esac val="$define" - if test "$status" -eq "$rd_nodata"; then + if test "$status" = "$rd_nodata"; then echo "WARNING: you can't distinguish between EOF and no data!" val="$undef" fi diff --git a/hints/aux.sh b/hints/aux.sh index e0aec23..42ad067 100644 --- a/hints/aux.sh +++ b/hints/aux.sh @@ -2,8 +2,9 @@ # # Improved by Jake Hamby to support both Apple CC # and GNU CC. Tested on A/UX 3.1.1 with GCC 2.6.3. +# Now notifies of problem with version of dbm shipped with A/UX # Last modified -# Fri May 5 10:59:43 EDT 1995 +# Sun Jan 5 11:16:41 WET 1997 case "$cc" in *gcc*) optimize='-O2' @@ -18,3 +19,4 @@ case "$cc" in echo "./Configure -Dcc=gcc" ;; esac +test -r ./bust-db.shx && . ./bust-db.shx diff --git a/hints/bust-db.shx b/hints/bust-db.shx new file mode 100644 index 0000000..4a2f157 --- /dev/null +++ b/hints/bust-db.shx @@ -0,0 +1,14 @@ +# Several OSs come with an old version of the DB library which fails on +# a few of the db-recno.t tests. This file is sourced by the hints +# files for those OSs. + +cat <&4 + +Unless you've upgraded your DB library manually you will see failures in +db-recno tests 51, 53 and 55. The behavior these tests are checking is +broken in the DB library which is included with the OS. You can ignore +the errors if you're never going to use the broken functionality (recno +databases with a modified bval), otherwise you'll have to upgrade your +DB library or OS. + +EOF diff --git a/hints/freebsd.sh b/hints/freebsd.sh index 99ceaa3..474ada6 100644 --- a/hints/freebsd.sh +++ b/hints/freebsd.sh @@ -64,16 +64,7 @@ case "$osvers" in d_setreuid='define' d_setegid='undef' d_seteuid='undef' - cat <