summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominic Dunlop <domo@slipper.ip.lu>1997-01-04 23:34:25 +0100
committerChip Salzenberg <chip@atlantic.net>1997-01-08 11:52:00 +1200
commit692df45da95e2b7d14c4560347ef4555bb40b621 (patch)
tree074eeececb5db7fe86d8ecf366fcb61b222bd034
parent3112f5de73952f91aa4e8005d9852dfddbcf0402 (diff)
downloadperl-692df45da95e2b7d14c4560347ef4555bb40b621.tar.gz
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: <v03010d00aef53ac4d18a@[194.51.248.68]>
-rwxr-xr-xConfigure2
-rw-r--r--hints/aux.sh4
-rw-r--r--hints/bust-db.shx14
-rw-r--r--hints/freebsd.sh11
4 files changed, 19 insertions, 12 deletions
diff --git a/Configure b/Configure
index 15a3e417b7..a6a4b285b2 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 e0aec237bc..42ad0673f4 100644
--- a/hints/aux.sh
+++ b/hints/aux.sh
@@ -2,8 +2,9 @@
#
# Improved by Jake Hamby <jehamby@lightside.com> 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 0000000000..4a2f157204
--- /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 <<EOF >&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 99ceaa3201..474ada6a3f 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 <<EOF
-
-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
+ test -r ./bust-db.shx && . ./bust-db.shx
;;
#
# 2.2 and above have phkmalloc(3).