Added a SVR4 port
--- below my signature, there are a coupls of diffs and files in a shell archive, which were needed to build postgres95 1.02 on Siemens Nixdorfs MIPS based SINIX systems. Except for the compiler switches "-W0" and "-LD-Blargedynsym" these diffs should also apply for other SVR4 based systems. The changes in "Makefile.global" and "genbki.sh" can probably be ignored (I needed gawk, to make the script run). There is one bugfix thou. In "src/backend/parser/sysfunc.c" the function in this file didn't honor the EUROPEAN_DATES ifdef. --- Submitted by: Frank Ridderbusch <ridderbusch.pad@sni.de>
This commit is contained in:
parent
0e9f4ceae0
commit
926a066d40
src
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.20 1996/08/06 16:05:56 scrappy Exp $
|
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.21 1996/08/19 13:50:41 scrappy Exp $
|
||||||
#
|
#
|
||||||
# NOTES
|
# NOTES
|
||||||
# This is seen by any Makefiles that include mk/postgres.mk. To
|
# This is seen by any Makefiles that include mk/postgres.mk. To
|
||||||
@ -59,15 +59,15 @@
|
|||||||
# until after this file is processed!
|
# until after this file is processed!
|
||||||
# make sure that you have no whitespaces after the PORTNAME setting
|
# make sure that you have no whitespaces after the PORTNAME setting
|
||||||
# or the makefiles can get confused
|
# or the makefiles can get confused
|
||||||
PORTNAME= BSD44_derived
|
PORTNAME= svr4
|
||||||
|
|
||||||
# SRCDIR specifies where the source files are.
|
# SRCDIR specifies where the source files are.
|
||||||
SRCDIR= /home/staff/scrappy/cvs/postgres95/src
|
SRCDIR= /home/tools/postgres95-1.02/src
|
||||||
|
|
||||||
# For convenience, POSTGRESDIR is where DATADIR, BINDIR, and LIBDIR
|
# For convenience, POSTGRESDIR is where DATADIR, BINDIR, and LIBDIR
|
||||||
# and other target destinations are rooted. Of course, each of these is
|
# and other target destinations are rooted. Of course, each of these is
|
||||||
# changable separately.
|
# changable separately.
|
||||||
POSTGRESDIR= /home/staff/scrappy/cvs/postgres95
|
POSTGRESDIR= /home/tools/postgres95-1.02
|
||||||
|
|
||||||
# POSTGRESLOGIN is the login name of the user who gets special
|
# POSTGRESLOGIN is the login name of the user who gets special
|
||||||
# privileges within the database. By default it is "postgres", but
|
# privileges within the database. By default it is "postgres", but
|
||||||
@ -130,7 +130,7 @@ CFLAGS+= -DNAMEDATALEN=$(NAMEDATALEN) -DOIDNAMELEN=$(OIDNAMELEN)
|
|||||||
# Comment out CDEBUG to turn off debugging and sanity-checking.
|
# Comment out CDEBUG to turn off debugging and sanity-checking.
|
||||||
#
|
#
|
||||||
# XXX on MIPS, use -g3 if you want to compile with -O
|
# XXX on MIPS, use -g3 if you want to compile with -O
|
||||||
#CDEBUG= -g
|
CDEBUG= -O
|
||||||
|
|
||||||
# Comment out ENFORCE_ALIGNMENT if you do NOT want unaligned access to
|
# Comment out ENFORCE_ALIGNMENT if you do NOT want unaligned access to
|
||||||
# multi-byte types to generate a bus error.
|
# multi-byte types to generate a bus error.
|
||||||
@ -138,7 +138,7 @@ ENFORCE_ALIGNMENT= true
|
|||||||
|
|
||||||
# turn this on if you prefer European style dates instead of American
|
# turn this on if you prefer European style dates instead of American
|
||||||
# style dates
|
# style dates
|
||||||
# EUROPEAN_DATES = 1
|
EUROPEAN_DATES = 1
|
||||||
|
|
||||||
# Comment out PROFILE to disable profiling.
|
# Comment out PROFILE to disable profiling.
|
||||||
#
|
#
|
||||||
@ -154,13 +154,13 @@ ENFORCE_ALIGNMENT= true
|
|||||||
# and READLINE_LIBDIR to reflect the location of the readline and history
|
# and READLINE_LIBDIR to reflect the location of the readline and history
|
||||||
# headers and libraries.
|
# headers and libraries.
|
||||||
#
|
#
|
||||||
#USE_READLINE= true
|
USE_READLINE= true
|
||||||
|
|
||||||
# directories for the readline and history libraries.
|
# directories for the readline and history libraries.
|
||||||
READLINE_INCDIR= /usr/local/include
|
READLINE_INCDIR= /home/tools/include
|
||||||
HISTORY_INCDIR= /usr/local/include
|
HISTORY_INCDIR= /home/tools/include -I/home/tools/include/readline
|
||||||
READLINE_LIBDIR= /usr/local/lib
|
READLINE_LIBDIR= /home/tools/lib
|
||||||
HISTORY_LIBDIR= /usr/local/lib
|
HISTORY_LIBDIR= /home/tools/lib
|
||||||
|
|
||||||
# If you do not plan to use Host based authentication,
|
# If you do not plan to use Host based authentication,
|
||||||
# comment out the following line
|
# comment out the following line
|
||||||
@ -208,19 +208,19 @@ endif
|
|||||||
# location of Tcl/Tk headers and libraries
|
# location of Tcl/Tk headers and libraries
|
||||||
#
|
#
|
||||||
# Uncomment this to build the tcl utilities.
|
# Uncomment this to build the tcl utilities.
|
||||||
#USE_TCL= true
|
USE_TCL= true
|
||||||
# customize these to your site's needs
|
# customize these to your site's needs
|
||||||
#
|
#
|
||||||
TCL_INCDIR= /usr/local/include
|
TCL_INCDIR= /home/tools/include
|
||||||
TCL_LIBDIR= /usr/local/lib
|
TCL_LIBDIR= /home/tools/lib
|
||||||
TCL_LIB = -ltcl7.5
|
TCL_LIB = -ltcl7.5
|
||||||
TK_INCDIR= /usr/local/include
|
TK_INCDIR= /home/tools/include
|
||||||
TK_LIBDIR= /usr/local/lib
|
TK_LIBDIR= /home/tools/lib
|
||||||
TK_LIB = -ltk4.1
|
TK_LIB = -ltk4.1
|
||||||
|
|
||||||
X11_INCDIR = /usr/X11R6.1/include
|
X11_INCDIR = /usr/include
|
||||||
X11_LIBDIR = /usr/X11R6.1/lib
|
X11_LIBDIR = /usr/lib
|
||||||
X11_LIB = -lX11
|
X11_LIB = -lX11 -lsocket -lnsl
|
||||||
|
|
||||||
#
|
#
|
||||||
# include port specific rules and variables. For instance:
|
# include port specific rules and variables. For instance:
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.2 1996/07/31 17:19:49 scrappy Exp $
|
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.3 1996/08/19 13:51:55 scrappy Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -118,6 +118,11 @@ ifeq ($(PORTNAME), linux)
|
|||||||
LDADD+= -lc
|
LDADD+= -lc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# the following is special for Reliant UNIX SVR4 (formerly SINIX)
|
||||||
|
ifeq ($(PORTNAME), svr4)
|
||||||
|
LDFLAGS+= -LD-Blargedynsym
|
||||||
|
endif
|
||||||
|
|
||||||
postgres: $(POSTGRES_DEPEND) $(OBJS) $(EXPORTS)
|
postgres: $(POSTGRES_DEPEND) $(OBJS) $(EXPORTS)
|
||||||
$(CC) $(LDFLAGS) -o $(objdir)/$(@F) $(addprefix $(objdir)/,$(notdir $(OBJS))) $(LDADD)
|
$(CC) $(LDFLAGS) -o $(objdir)/$(@F) $(addprefix $(objdir)/,$(notdir $(OBJS))) $(LDADD)
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh,v 1.1.1.1 1996/07/09 06:21:15 scrappy Exp $
|
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh,v 1.2 1996/08/19 13:52:02 scrappy Exp $
|
||||||
#
|
#
|
||||||
# NOTES
|
# NOTES
|
||||||
# non-essential whitespace is removed from the generated file.
|
# non-essential whitespace is removed from the generated file.
|
||||||
@ -62,7 +62,7 @@ sed -e 's/\/\*.*\*\///g' \
|
|||||||
-e 's/\ NameData/\ name/g' \
|
-e 's/\ NameData/\ name/g' \
|
||||||
-e 's/(NameData/(name/g' \
|
-e 's/(NameData/(name/g' \
|
||||||
-e 's/(Oid/(oid/g' | \
|
-e 's/(Oid/(oid/g' | \
|
||||||
awk '
|
gawk '
|
||||||
# ----------------
|
# ----------------
|
||||||
# now use awk to process remaining .h file..
|
# now use awk to process remaining .h file..
|
||||||
#
|
#
|
||||||
|
@ -30,8 +30,13 @@ char *Sysfunc_system_date(void)
|
|||||||
|
|
||||||
time(&cur_time_secs);
|
time(&cur_time_secs);
|
||||||
cur_time_expanded = localtime(&cur_time_secs);
|
cur_time_expanded = localtime(&cur_time_secs);
|
||||||
|
#if defined(EUROPEAN_DATES) || defined(EUROPEAN_STYLE)
|
||||||
|
sprintf(buf, "%02.2d-%02.2d-%04.4d", cur_time_expanded->tm_mday,
|
||||||
|
cur_time_expanded->tm_mon+1, cur_time_expanded->tm_year+1900);
|
||||||
|
#else
|
||||||
sprintf(buf, "%02.2d-%02.2d-%04.4d", cur_time_expanded->tm_mon+1,
|
sprintf(buf, "%02.2d-%02.2d-%04.4d", cur_time_expanded->tm_mon+1,
|
||||||
cur_time_expanded->tm_mday, cur_time_expanded->tm_year+1900);
|
cur_time_expanded->tm_mday, cur_time_expanded->tm_year+1900);
|
||||||
|
#endif
|
||||||
return &buf[0];
|
return &buf[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: ipc.h,v 1.5 1996/08/04 21:03:23 scrappy Exp $
|
* $Id: ipc.h,v 1.6 1996/08/19 13:52:20 scrappy Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* This file is very architecture-specific. This stuff should actually
|
* This file is very architecture-specific. This stuff should actually
|
||||||
@ -125,6 +125,7 @@ extern int S_LOCK_FREE(slock_t *lock);
|
|||||||
defined(PORTNAME_i386_solaris) || \
|
defined(PORTNAME_i386_solaris) || \
|
||||||
defined(PORTNAME_sparc_solaris) || \
|
defined(PORTNAME_sparc_solaris) || \
|
||||||
defined(PORTNAME_ultrix4) || \
|
defined(PORTNAME_ultrix4) || \
|
||||||
|
defined(PORTNAME_svr4) || \
|
||||||
defined(WIN32)
|
defined(WIN32)
|
||||||
union semun {
|
union semun {
|
||||||
int val;
|
int val;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.2 1996/07/20 08:36:17 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.3 1996/08/19 13:52:35 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1275,7 +1275,7 @@ static int isinf(x)
|
|||||||
}
|
}
|
||||||
#endif /* PORTNAME_alpha */
|
#endif /* PORTNAME_alpha */
|
||||||
|
|
||||||
#if defined(PORTNAME_sparc_solaris)||defined(PORTNAME_i386_solaris)
|
#if defined(PORTNAME_sparc_solaris)||defined(PORTNAME_i386_solaris) || defined(PORTNAME_svr4)
|
||||||
#include <ieeefp.h>
|
#include <ieeefp.h>
|
||||||
static int
|
static int
|
||||||
isinf(d)
|
isinf(d)
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.3 1996/07/22 21:56:03 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.4 1996/08/19 13:52:40 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -296,6 +296,7 @@ tryabsdate(char *fields[], int nf, struct tm *tm, int *tzp)
|
|||||||
defined(PORTNAME_i386_solaris) || \
|
defined(PORTNAME_i386_solaris) || \
|
||||||
defined(PORTNAME_irix5) || \
|
defined(PORTNAME_irix5) || \
|
||||||
defined(PORTNAME_sparc_solaris) || \
|
defined(PORTNAME_sparc_solaris) || \
|
||||||
|
defined(PORTNAME_svr4) || \
|
||||||
defined(WIN32)
|
defined(WIN32)
|
||||||
tzset();
|
tzset();
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 1994-5, Regents of the University of California
|
# Copyright (c) 1994-5, Regents of the University of California
|
||||||
#
|
#
|
||||||
# $Id: postgres.mk.svr4,v 1.1.1.1 1996/07/09 06:22:20 scrappy Exp $
|
# $Id: postgres.mk.svr4,v 1.2 1996/08/19 13:52:54 scrappy Exp $
|
||||||
#
|
#
|
||||||
# NOTE
|
# NOTE
|
||||||
# This file has not been tested. -ay 3/95
|
# This file has not been tested. -ay 3/95
|
||||||
@ -14,6 +14,11 @@
|
|||||||
ifndef MK_PORT
|
ifndef MK_PORT
|
||||||
MK_PORT= svr4
|
MK_PORT= svr4
|
||||||
|
|
||||||
|
# cc won't work?
|
||||||
|
#CC= gcc
|
||||||
|
CC= cc -W0
|
||||||
|
YACC= bison -y
|
||||||
|
|
||||||
#
|
#
|
||||||
# for postgres.mk
|
# for postgres.mk
|
||||||
#
|
#
|
||||||
@ -23,13 +28,48 @@ CFLAGS_BE+= -DUSE_POSIX_SIGNALS
|
|||||||
# symbol names to tell them what to export/import.
|
# symbol names to tell them what to export/import.
|
||||||
MAKE_EXPORTS= true
|
MAKE_EXPORTS= true
|
||||||
|
|
||||||
|
# RANLIB is not used on svr4
|
||||||
|
RANLIB=touch
|
||||||
|
|
||||||
|
# GNU install
|
||||||
|
INSTALL=/home/tools/bin/install
|
||||||
|
|
||||||
|
#
|
||||||
|
# Random things that must be passed everywhere to enable
|
||||||
|
# everything to compile. :-/
|
||||||
|
#
|
||||||
|
# The extra -I flag is to scoop up extra BSD-emulating headers.
|
||||||
|
CFLAGS_BE+= -DSYSV_DIRENT -I$(POSTGRESDIR)/src/backend/port/svr4
|
||||||
|
LDADD_BE+= -lsocket -lnsl -lc /usr/ucblib/libucb.a
|
||||||
|
|
||||||
|
LD_ADD+= $(LDADD_BE)
|
||||||
|
|
||||||
|
#
|
||||||
|
# for postgres.mk
|
||||||
|
#
|
||||||
|
CFLAGS_OPT= -O
|
||||||
|
|
||||||
#
|
#
|
||||||
# for postgres.user.mk
|
# for postgres.user.mk
|
||||||
#
|
#
|
||||||
CFLAGS_SL= -K pic
|
#CFLAGS_SL= -K pic
|
||||||
|
ifeq ($(CC), cc)
|
||||||
|
#CFLAGS_SL= -K PIC
|
||||||
|
else
|
||||||
|
#CFLAGS_SL= -fPIC
|
||||||
|
endif
|
||||||
|
|
||||||
SLSUFF= .so
|
SLSUFF= .so
|
||||||
|
|
||||||
%.so: %.o
|
#%.so: %.o
|
||||||
$(LD) -G $(LDFLAGS) -o $(objdir)/$(@F) $(objdir)/$(<F)
|
# $(LD) -G $(LDFLAGS) -o $(objdir)/$(@F) $(objdir)/$(<F)
|
||||||
|
%.so: %.o
|
||||||
|
$(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F)
|
||||||
|
|
||||||
|
#
|
||||||
|
# for postgres.shell.mk
|
||||||
|
#
|
||||||
|
DASH_N=''
|
||||||
|
BACKSLASH_C='\\\\c'
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user