Geometry patch for freebsd alpha

Started by Christopher Kings-Lynneover 24 years ago2 messagespatches
Jump to latest
#1Christopher Kings-Lynne
chriskl@familyhealth.com.au

OK,

This patch makes FreeBSD/alpha pass on geometry.

The patch actually required making two different diffs for alpha and i386 as
my initial fix broke freebsd/i386. I have run the resulting regression test
on FreeBSD/i386 and FreeBSD/Alpha and they both now pass.

I suggest someone with more regression test experience have a quick look at
it to make sure I haven't broken any other platforms or anything.

I also notice that the fix is for FreeBSD 4 only - I don't know what the
behavioru will be for freebsd 3.

Chris

Attachments:

alpha-patch-geom.txttext/plain; name=alpha-patch-geom.txtDownload+3-3
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Christopher Kings-Lynne (#1)
Re: Geometry patch for freebsd alpha

"Christopher Kings-Lynne" <chriskl@familyhealth.com.au> writes:

*** src/test/regress/resultmap	2001/12/19 17:25:55	1.52
--- src/test/regress/resultmap	2001/12/20 02:45:56
***************
*** 13,19 ****
geometry/.*-bsdi=geometry-bsdi-precision
geometry/.*-darwin=geometry-powerpc-darwin
geometry/.*-freebsd=geometry-positive-zeros
! geometry/.*-freebsd4=geometry-positive-zeros-bsd
geometry/i386-.*-openbsd=geometry-positive-zeros-bsd
geometry/sparc-.*-openbsd=geometry-positive-zeros
geometry/.*-irix6=geometry-irix
--- 13,20 ----
geometry/.*-bsdi=geometry-bsdi-precision
geometry/.*-darwin=geometry-powerpc-darwin
geometry/.*-freebsd=geometry-positive-zeros
! geometry/i.86-.*-freebsd4=geometry-positive-zeros-bsd
! geometry/alpha-.*-freebsd4=geometry-positive-zeros
geometry/i386-.*-openbsd=geometry-positive-zeros-bsd
geometry/sparc-.*-openbsd=geometry-positive-zeros
geometry/.*-irix6=geometry-irix

Hmm. I think it's bad practice to have two lines in resultmap that
can match, and here "geometry/.*-freebsd" will certainly match all the
same platforms that your two lines do. My inclination is to replace
all three lines with

geometry/i.86-.*-freebsd=geometry-positive-zeros-bsd
geometry/alpha-.*-freebsd=geometry-positive-zeros

and wait to see if anyone using version 3 complains.

regards, tom lane