Re: [HACKERS] build of 7.2.1 on SCO Openserver and Unixware - Mailing list pgsql-patches
From | Bruce Momjian |
---|---|
Subject | Re: [HACKERS] build of 7.2.1 on SCO Openserver and Unixware |
Date | |
Msg-id | 200204181531.g3IFVO610230@candle.pha.pa.us Whole thread Raw |
In response to | Re: [HACKERS] build of 7.2.1 on SCO Openserver and Unixware ("Nicolas Bazin" <nbazin@ingenico.com.au>) |
Responses |
Re: [HACKERS] build of 7.2.1 on SCO Openserver and Unixware
|
List | pgsql-patches |
Sorry, here is an updated patch. I didn't realize there were two QNX tests in the file. The patch has: case $host_platform in *-*-qnx* | *-*-sco3.2v5*) DIFFFLAGS=-b;; *) DIFFFLAGS=-w;; esac Is this correct. We don't need the sysv5? It is my understanding that sysv5 is much more than Open Server 8. --------------------------------------------------------------------------- Nicolas Bazin wrote: > The patch from Bruce does not correct the proper thing. The original patch I > submitted was : > *** postgresql-7.2.1-rc/src/test/regress/pg_regress.sh Tue Mar 26 16:49:04 > 2002 > --- postgresql-7.2.1/src/test/regress/pg_regress.sh Tue Mar 26 17:03:39 2002 > *************** > *** 173,179 **** > # ---------- > case $host_platform in > ! *-*-qnx*) > DIFFFLAGS=-b;; > *) > DIFFFLAGS=-w;; > --- 173,179 ---- > # ---------- > case $host_platform in > ! *-*-qnx* | *-*-sco3.2v5* | *-*-sysv5) > DIFFFLAGS=-b;; > *) > DIFFFLAGS=-w;; > > Because the diff tool that comes with Openserver or Unixware does not suppor > the -w option but the -b option to remove blank characters. > There is nothing wrong with unix sockets on both platforms. > > Nicolas > > ----- Original Message ----- > From: "Bruce Momjian" <pgman@candle.pha.pa.us> > To: "Peter Eisentraut" <peter_e@gmx.net> > Cc: "Larry Rosenman" <ler@lerctr.org>; "Nicolas Bazin" > <nbazin@ingenico.com.au>; "PostgreSQL-patches" > <pgsql-patches@postgresql.org> > Sent: Thursday, April 18, 2002 1:15 PM > Subject: Re: [PATCHES] [HACKERS] build of 7.2.1 on SCO Openserver and > Unixware > > > > Peter Eisentraut wrote: > > > Bruce Momjian writes: > > > > > > > OK, new code is: > > > > > > > > ! *-*-qnx* | *beos* | *-*-sco3.2v5*) > > > ^^^^^^^^^^^^^ > > > > > > I would like to see an explanation for this. > > > > The patch section is below. Not knowing the platform, I have no idea > > why. > > > > case $host_platform in > > ! *-*-qnx* | *beos* | *-*-sco3.2v5*) > > unix_sockets=no;; > > *) > > unix_sockets=yes;; > > > > -- > > Bruce Momjian | http://candle.pha.pa.us > > pgman@candle.pha.pa.us | (610) 853-3000 > > + If your life is a hard drive, | 830 Blythe Avenue > > + Christ can be your backup. | Drexel Hill, Pennsylvania 19026 > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 5: Have you checked our extensive FAQ? > > > > http://www.postgresql.org/users-lounge/docs/faq.html > > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026 Index: configure.in =================================================================== RCS file: /cvsroot/pgsql/configure.in,v retrieving revision 1.178 diff -c -r1.178 configure.in *** configure.in 14 Apr 2002 17:23:20 -0000 1.178 --- configure.in 18 Apr 2002 15:26:08 -0000 *************** *** 696,703 **** AC_CHECK_LIB(util, setproctitle) AC_CHECK_LIB(m, main) AC_CHECK_LIB(dl, main) - AC_CHECK_LIB(socket, main) AC_CHECK_LIB(nsl, main) AC_CHECK_LIB(ipc, main) AC_CHECK_LIB(IPC, main) AC_CHECK_LIB(lc, main) --- 696,703 ---- AC_CHECK_LIB(util, setproctitle) AC_CHECK_LIB(m, main) AC_CHECK_LIB(dl, main) AC_CHECK_LIB(nsl, main) + AC_CHECK_LIB(socket, main) AC_CHECK_LIB(ipc, main) AC_CHECK_LIB(IPC, main) AC_CHECK_LIB(lc, main) Index: src/interfaces/odbc/convert.c =================================================================== RCS file: /cvsroot/pgsql/src/interfaces/odbc/convert.c,v retrieving revision 1.78 diff -c -r1.78 convert.c *** src/interfaces/odbc/convert.c 1 Apr 2002 03:01:14 -0000 1.78 --- src/interfaces/odbc/convert.c 18 Apr 2002 15:26:23 -0000 *************** *** 2717,2723 **** y = 0; for (i = 1; i <= 3; i++) ! y += (s[i] - 48) * (int) pow(8, 3 - i); return y; --- 2717,2723 ---- y = 0; for (i = 1; i <= 3; i++) ! y += (s[i] - '0') << (3 * (3 - i)); return y; *************** *** 2740,2746 **** else val = s[i] - '0'; ! y += val * (int) pow(16, 2 - i); } return y; --- 2740,2746 ---- else val = s[i] - '0'; ! y += val << (4 * (2 - i)); } return y; *************** *** 2795,2801 **** for (i = 4; i > 1; i--) { ! x[i] = (val & 7) + 48; val >>= 3; } --- 2795,2801 ---- for (i = 4; i > 1; i--) { ! x[i] = (val & 7) + '0'; val >>= 3; } Index: src/test/regress/pg_regress.sh =================================================================== RCS file: /cvsroot/pgsql/src/test/regress/pg_regress.sh,v retrieving revision 1.23 diff -c -r1.23 pg_regress.sh *** src/test/regress/pg_regress.sh 3 Jan 2002 21:52:05 -0000 1.23 --- src/test/regress/pg_regress.sh 18 Apr 2002 15:26:24 -0000 *************** *** 173,179 **** # ---------- case $host_platform in ! *-*-qnx*) DIFFFLAGS=-b;; *) DIFFFLAGS=-w;; --- 173,179 ---- # ---------- case $host_platform in ! *-*-qnx* | *-*-sco3.2v5*) DIFFFLAGS=-b;; *) DIFFFLAGS=-w;;
pgsql-patches by date: