Skip to content

Commit 2b860f5

Browse files
committed
Remove "sco" and "unixware" ports.
SCO OpenServer and SCO UnixWare are more or less dead platforms. We have never had a buildfarm member testing the "sco" port, and the last "unixware" member was last heard from in 2012, so it's fair to doubt that the code even compiles anymore on either one. Remove both ports. We can always undo this if someone shows up with an interest in maintaining and testing these platforms. Discussion: <17177.1476136994@sss.pgh.pa.us>
1 parent c7e5681 commit 2b860f5

21 files changed

+6
-575
lines changed

configure

-37
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,6 @@ STRIP_SHARED_LIB
694694
STRIP_STATIC_LIB
695695
STRIP
696696
RANLIB
697-
ld_R_works
698697
with_gnu_ld
699698
LD
700699
LDFLAGS_SL
@@ -2867,9 +2866,7 @@ dragonfly*) template=netbsd ;;
28672866
mingw*) template=win32 ;;
28682867
netbsd*) template=netbsd ;;
28692868
openbsd*) template=openbsd ;;
2870-
sco*) template=sco ;;
28712869
solaris*) template=solaris ;;
2872-
sysv5*) template=unixware ;;
28732870
esac
28742871

28752872
if test x"$template" = x"" ; then
@@ -6382,40 +6379,6 @@ with_gnu_ld=$ac_cv_prog_gnu_ld
63826379

63836380

63846381

6385-
case $host_os in sysv5*)
6386-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld -R works" >&5
6387-
$as_echo_n "checking whether ld -R works... " >&6; }
6388-
if ${pgac_cv_prog_ld_R+:} false; then :
6389-
$as_echo_n "(cached) " >&6
6390-
else
6391-
6392-
pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6393-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394-
/* end confdefs.h. */
6395-
6396-
int
6397-
main ()
6398-
{
6399-
6400-
;
6401-
return 0;
6402-
}
6403-
_ACEOF
6404-
if ac_fn_c_try_link "$LINENO"; then :
6405-
pgac_cv_prog_ld_R=yes
6406-
else
6407-
pgac_cv_prog_ld_R=no
6408-
fi
6409-
rm -f core conftest.err conftest.$ac_objext \
6410-
conftest$ac_exeext conftest.$ac_ext
6411-
LDFLAGS=$pgac_save_LDFLAGS
6412-
6413-
fi
6414-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_ld_R" >&5
6415-
$as_echo "$pgac_cv_prog_ld_R" >&6; }
6416-
ld_R_works=$pgac_cv_prog_ld_R
6417-
6418-
esac
64196382
if test -n "$ac_tool_prefix"; then
64206383
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
64216384
set dummy ${ac_tool_prefix}ranlib; ac_word=$2

configure.in

-14
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ dragonfly*) template=netbsd ;;
6969
mingw*) template=win32 ;;
7070
netbsd*) template=netbsd ;;
7171
openbsd*) template=openbsd ;;
72-
sco*) template=sco ;;
7372
solaris*) template=solaris ;;
74-
sysv5*) template=unixware ;;
7573
esac
7674

7775
if test x"$template" = x"" ; then
@@ -871,18 +869,6 @@ AC_ARG_VAR(LDFLAGS_SL, [extra linker flags for linking shared libraries only])
871869
PGAC_PROG_LD
872870
AC_SUBST(LD)
873871
AC_SUBST(with_gnu_ld)
874-
case $host_os in sysv5*)
875-
AC_CACHE_CHECK([whether ld -R works], [pgac_cv_prog_ld_R],
876-
[
877-
pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
878-
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
879-
[pgac_cv_prog_ld_R=yes],
880-
[pgac_cv_prog_ld_R=no])
881-
LDFLAGS=$pgac_save_LDFLAGS
882-
])
883-
ld_R_works=$pgac_cv_prog_ld_R
884-
AC_SUBST(ld_R_works)
885-
esac
886872
AC_PROG_RANLIB
887873
PGAC_CHECK_STRIP
888874
AC_CHECK_TOOL(AR, ar, ar)

doc/src/sgml/Makefile

+1-5
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,7 @@ check: postgres.sgml $(ALMOSTALLSGML) check-tabs
326326
## Install
327327
##
328328

329-
install: install-html
330-
331-
ifneq ($(PORTNAME), sco)
332-
install: install-man
333-
endif
329+
install: install-html install-man
334330

335331
installdirs:
336332
$(MKDIR_P) '$(DESTDIR)$(htmldir)'/html $(addprefix '$(DESTDIR)$(mandir)'/man, 1 3 $(sqlmansectnum))

doc/src/sgml/dfunc.sgml

-26
Original file line numberDiff line numberDiff line change
@@ -200,32 +200,6 @@ cc -G -o foo.so foo.o
200200
<programlisting>
201201
gcc -fpic -c foo.c
202202
gcc -G -o foo.so foo.o
203-
</programlisting>
204-
</para>
205-
</listitem>
206-
</varlistentry>
207-
208-
<varlistentry>
209-
<term>
210-
<systemitem class="osname">UnixWare</>
211-
<indexterm><primary>UnixWare</><secondary>shared library</></>
212-
</term>
213-
<listitem>
214-
<para>
215-
The compiler flag to create <acronym>PIC</acronym> is <option>-K
216-
PIC</option> with the SCO compiler and <option>-fpic</option>
217-
with <productname>GCC</productname>. To link shared libraries,
218-
the compiler option is <option>-G</option> with the SCO compiler
219-
and <option>-shared</option> with
220-
<productname>GCC</productname>.
221-
<programlisting>
222-
cc -K PIC -c foo.c
223-
cc -G -o foo.so foo.o
224-
</programlisting>
225-
or
226-
<programlisting>
227-
gcc -fpic -c foo.c
228-
gcc -shared -o foo.so foo.o
229203
</programlisting>
230204
</para>
231205
</listitem>

doc/src/sgml/installation.sgml

+5-159
Original file line numberDiff line numberDiff line change
@@ -2000,8 +2000,8 @@ kill `cat /usr/local/pgsql/data/postmaster.pid`
20002000
<para>
20012001
In general, <productname>PostgreSQL</> can be expected to work on
20022002
these CPU architectures: x86, x86_64, IA64, PowerPC,
2003-
PowerPC 64, S/390, S/390x, Sparc, Sparc 64, ARM, MIPS, MIPSEL, M68K,
2004-
and PA-RISC. Code support exists for M32R and VAX, but these
2003+
PowerPC 64, S/390, S/390x, Sparc, Sparc 64, ARM, MIPS, MIPSEL,
2004+
and PA-RISC. Code support exists for M68K, M32R, and VAX, but these
20052005
architectures are not known to have been tested recently. It is often
20062006
possible to build on an unsupported CPU type by configuring with
20072007
<option>--disable-spinlocks</option>, but performance will be poor.
@@ -2010,11 +2010,11 @@ kill `cat /usr/local/pgsql/data/postmaster.pid`
20102010
<para>
20112011
<productname>PostgreSQL</> can be expected to work on these operating
20122012
systems: Linux (all recent distributions), Windows (Win2000 SP4 and later),
2013-
FreeBSD, OpenBSD, NetBSD, macOS, AIX, HP/UX, Solaris,
2014-
and UnixWare. Other Unix-like systems may also work but are not currently
2013+
FreeBSD, OpenBSD, NetBSD, macOS, AIX, HP/UX, and Solaris.
2014+
Other Unix-like systems may also work but are not currently
20152015
being tested. In most cases, all CPU architectures supported by
20162016
a given operating system will work. Look in
2017-
the <xref linkend="installation-platform-notes"> below to see if
2017+
<xref linkend="installation-platform-notes"> below to see if
20182018
there is information
20192019
specific to your operating system, particularly if using an older system.
20202020
</para>
@@ -2639,160 +2639,6 @@ PHSS_30849 s700_800 u2comp/be/plugin library Patch
26392639
</sect3>
26402640
</sect2>
26412641

2642-
<sect2 id="installation-notes-sco">
2643-
<title>SCO OpenServer and SCO UnixWare</title>
2644-
2645-
<indexterm zone="installation-notes-sco">
2646-
<primary>SCO</primary>
2647-
<secondary>installation on</secondary>
2648-
</indexterm>
2649-
2650-
<indexterm zone="installation-notes-sco">
2651-
<primary>UnixWare</primary>
2652-
<secondary>installation on</secondary>
2653-
</indexterm>
2654-
2655-
<para>
2656-
PostgreSQL can be built on SCO UnixWare 7 and SCO OpenServer 5.
2657-
On OpenServer, you can use either the OpenServer Development Kit
2658-
or the Universal Development Kit. However, some tweaking may be
2659-
needed, as described below.
2660-
</para>
2661-
2662-
<sect3>
2663-
<title>Skunkware</title>
2664-
2665-
<para>
2666-
You should locate your copy of the SCO Skunkware CD. The
2667-
Skunkware CD is included with UnixWare 7 and current versions of
2668-
OpenServer 5. Skunkware includes ready-to-install versions of
2669-
many popular programs that are available on the Internet. For
2670-
example, gzip, gunzip, GNU Make, Flex, and Bison are all
2671-
included. For UnixWare 7.1, this CD is now labeled "Open License
2672-
Software Supplement". If you do not have this CD, the software
2673-
on it is available
2674-
from <ulink url="http://www.sco.com/skunkware/"></ulink>.
2675-
</para>
2676-
2677-
<para>
2678-
Skunkware has different versions for UnixWare and OpenServer.
2679-
Make sure you install the correct version for your operating
2680-
system, except as noted below.
2681-
</para>
2682-
2683-
<para>
2684-
On UnixWare 7.1.3 and beyond, the GCC compiler is included on the
2685-
UDK CD as is GNU Make.
2686-
</para>
2687-
</sect3>
2688-
2689-
<sect3>
2690-
<title>GNU Make</title>
2691-
2692-
<para>
2693-
You need to use the GNU Make program, which is on the Skunkware
2694-
CD. By default, it installs
2695-
as <filename>/usr/local/bin/make</filename>.
2696-
</para>
2697-
2698-
<para>
2699-
As of UnixWare 7.1.3 and above, the GNU Make program is the
2700-
OSTK portion of the UDK CD, and is
2701-
in <filename>/usr/gnu/bin/gmake</filename>.
2702-
</para>
2703-
</sect3>
2704-
2705-
<sect3>
2706-
<title>Readline</title>
2707-
2708-
<para>
2709-
The Readline library is on the Skunkware CD. But it is not
2710-
included on the UnixWare 7.1 Skunkware CD. If you have the
2711-
UnixWare 7.0.0 or 7.0.1 Skunkware CDs, you can install it from
2712-
there. Otherwise,
2713-
try <ulink url="http://www.sco.com/skunkware/"></ulink>.
2714-
</para>
2715-
2716-
<para>
2717-
By default, Readline installs into <filename>/usr/local/lib</> and
2718-
<filename>/usr/local/include</>. However, the
2719-
PostgreSQL <command>configure</command> program will not find it
2720-
there without help. If you installed Readline, then use the
2721-
following options to <command>configure</command>:
2722-
<programlisting>
2723-
./configure --with-libraries=/usr/local/lib --with-includes=/usr/local/include
2724-
</programlisting>
2725-
</para>
2726-
</sect3>
2727-
2728-
<sect3>
2729-
<title>Using the UDK on OpenServer</title>
2730-
2731-
<para>
2732-
If you are using the new Universal Development Kit (UDK) compiler
2733-
on OpenServer, you need to specify the locations of the UDK
2734-
libraries:
2735-
<programlisting>
2736-
./configure --with-libraries=/udk/usr/lib --with-includes=/udk/usr/include
2737-
</programlisting>
2738-
Putting these together with the Readline options from above:
2739-
<programlisting>
2740-
./configure --with-libraries="/udk/usr/lib /usr/local/lib" --with-includes="/udk/usr/include /usr/local/include"
2741-
</programlisting>
2742-
</para>
2743-
</sect3>
2744-
2745-
<sect3>
2746-
<title>Reading the PostgreSQL Man Pages</title>
2747-
2748-
<para>
2749-
By default, the PostgreSQL man pages are installed into
2750-
<filename>/usr/local/pgsql/share/man</filename>. By default, UnixWare
2751-
does not look there for man pages. To be able to read them you
2752-
need to modify the
2753-
<varname>MANPATH</varname> variable
2754-
in <filename>/etc/default/man</filename>, for example:
2755-
<programlisting>
2756-
MANPATH=/usr/lib/scohelp/%L/man:/usr/dt/man:/usr/man:/usr/share/man:scohelp:/usr/local/man:/usr/local/pgsql/share/man
2757-
</programlisting>
2758-
</para>
2759-
2760-
<para>
2761-
On OpenServer, some extra research needs to be invested to make
2762-
the man pages usable, because the man system is a bit different
2763-
from other platforms. Currently, PostgreSQL will not install
2764-
them at all.
2765-
</para>
2766-
</sect3>
2767-
2768-
<sect3>
2769-
<title>C99 Issues with the 7.1.1b Feature Supplement</title>
2770-
2771-
<para>
2772-
For compilers earlier than the one released with OpenUNIX 8.0.0
2773-
(UnixWare 7.1.2), including the 7.1.1b Feature Supplement, you
2774-
may need to specify <option>-Xb</option>
2775-
in <varname>CFLAGS</varname> or the <varname>CC</varname>
2776-
environment variable. The indication of this is an error in
2777-
compiling <filename>tuplesort.c</filename> referencing inline
2778-
functions. Apparently there was a change in the 7.1.2(8.0.0)
2779-
compiler and beyond.
2780-
</para>
2781-
</sect3>
2782-
2783-
<sect3>
2784-
<title>Threading on UnixWare</title>
2785-
2786-
<para>
2787-
For threading, you<emphasis>must</emphasis> use <option>-Kpthread</option>
2788-
on <emphasis>all</emphasis> libpq-using programs. libpq
2789-
uses <function>pthread_*</function> calls, which are only
2790-
available with the
2791-
<option>-Kpthread</>/<option>-Kthread</> flag.
2792-
</para>
2793-
</sect3>
2794-
</sect2>
2795-
27962642
<sect2 id="installation-notes-solaris">
27972643
<title>Solaris</title>
27982644

doc/src/sgml/runtime.sgml

-58
Original file line numberDiff line numberDiff line change
@@ -1086,34 +1086,6 @@ sysctl -w kern.sysv.shmall
10861086
</varlistentry>
10871087

10881088

1089-
<varlistentry>
1090-
<term><systemitem class="osname">SCO OpenServer</>
1091-
<indexterm><primary>SCO OpenServer</><secondary>IPC configuration</></>
1092-
</term>
1093-
<listitem>
1094-
<para>
1095-
In the default configuration, only 512 kB of shared memory per
1096-
segment is allowed. To increase the setting, first change to the
1097-
directory <filename>/etc/conf/cf.d</>. To display the current value of
1098-
<varname>SHMMAX</>, run:
1099-
<programlisting>
1100-
./configure -y SHMMAX
1101-
</programlisting>
1102-
To set a new value for <varname>SHMMAX</>, run:
1103-
<programlisting>
1104-
./configure SHMMAX=<replaceable>value</>
1105-
</programlisting>
1106-
where <replaceable>value</> is the new value you want to use
1107-
(in bytes). After setting <varname>SHMMAX</>, rebuild the kernel:
1108-
<programlisting>
1109-
./link_unix
1110-
</programlisting>
1111-
and reboot.
1112-
</para>
1113-
</listitem>
1114-
</varlistentry>
1115-
1116-
11171089
<varlistentry>
11181090
<term><systemitem class="osname">Solaris</> 2.6 to 2.9 (Solaris
11191091
6 to Solaris 9)
@@ -1189,36 +1161,6 @@ project.max-msg-ids=(priv,4096,deny)
11891161
</listitem>
11901162
</varlistentry>
11911163

1192-
1193-
<varlistentry>
1194-
<term><systemitem class="osname">UnixWare</>
1195-
<indexterm><primary>UnixWare</><secondary>IPC configuration</></>
1196-
</term>
1197-
<listitem>
1198-
<para>
1199-
On <productname>UnixWare</> 7, the maximum size for shared
1200-
memory segments is 512 kB in the default configuration.
1201-
To display the current value of <varname>SHMMAX</>, run:
1202-
<programlisting>
1203-
/etc/conf/bin/idtune -g SHMMAX
1204-
</programlisting>
1205-
which displays the current, default, minimum, and maximum
1206-
values. To set a new value for <varname>SHMMAX</>,
1207-
run:
1208-
<programlisting>
1209-
/etc/conf/bin/idtune SHMMAX <replaceable>value</>
1210-
</programlisting>
1211-
where <replaceable>value</> is the new value you want to use
1212-
(in bytes). After setting <varname>SHMMAX</>, rebuild the
1213-
kernel:
1214-
<programlisting>
1215-
/etc/conf/bin/idbuild -B
1216-
</programlisting>
1217-
and reboot.
1218-
</para>
1219-
</listitem>
1220-
</varlistentry>
1221-
12221164
</variablelist>
12231165

12241166
</sect2>

0 commit comments

Comments
 (0)