Skip to content

Commit 9db300c

Browse files
committed
Remove HP-UX port.
HP-UX hardware is no longer produced, build farm coverage recently ended, and there are no known active maintainers targeting this OS. Since there is a major rewrite of the build system in the pipeline for PostgreSQL 16, and that requires development, testing and maintainance for each OS and tool chain, it seems like a good time to drop support for: * HP-UX, the operating system. * HP aCC, the HP-UX native compiler. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Andres Freund <andres@anarazel.de> Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com> Discussion: https://postgr.es/m/1415825.1656893299%40sss.pgh.pa.us
1 parent 3c633f3 commit 9db300c

28 files changed

+53
-616
lines changed

configure

Lines changed: 2 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -2994,7 +2994,6 @@ case $host_os in
29942994
darwin*) template=darwin ;;
29952995
dragonfly*) template=netbsd ;;
29962996
freebsd*) template=freebsd ;;
2997-
hpux*) template=hpux ;;
29982997
linux*|gnu*|k*bsd*-gnu)
29992998
template=linux ;;
30002999
mingw*) template=win32 ;;
@@ -6856,100 +6855,6 @@ if test x"$pgac_cv_prog_CXX_cxxflags__qlonglong" = x"yes"; then
68566855
fi
68576856

68586857

6859-
elif test "$PORTNAME" = "hpux"; then
6860-
# On some versions of HP-UX, libm functions do not set errno by default.
6861-
# Fix that by using +Olibmerrno if the compiler recognizes it.
6862-
6863-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports +Olibmerrno, for CFLAGS" >&5
6864-
$as_echo_n "checking whether ${CC} supports +Olibmerrno, for CFLAGS... " >&6; }
6865-
if ${pgac_cv_prog_CC_cflags_pOlibmerrno+:} false; then :
6866-
$as_echo_n "(cached) " >&6
6867-
else
6868-
pgac_save_CFLAGS=$CFLAGS
6869-
pgac_save_CC=$CC
6870-
CC=${CC}
6871-
CFLAGS="${CFLAGS} +Olibmerrno"
6872-
ac_save_c_werror_flag=$ac_c_werror_flag
6873-
ac_c_werror_flag=yes
6874-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875-
/* end confdefs.h. */
6876-
6877-
int
6878-
main ()
6879-
{
6880-
6881-
;
6882-
return 0;
6883-
}
6884-
_ACEOF
6885-
if ac_fn_c_try_compile "$LINENO"; then :
6886-
pgac_cv_prog_CC_cflags_pOlibmerrno=yes
6887-
else
6888-
pgac_cv_prog_CC_cflags_pOlibmerrno=no
6889-
fi
6890-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891-
ac_c_werror_flag=$ac_save_c_werror_flag
6892-
CFLAGS="$pgac_save_CFLAGS"
6893-
CC="$pgac_save_CC"
6894-
fi
6895-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags_pOlibmerrno" >&5
6896-
$as_echo "$pgac_cv_prog_CC_cflags_pOlibmerrno" >&6; }
6897-
if test x"$pgac_cv_prog_CC_cflags_pOlibmerrno" = x"yes"; then
6898-
CFLAGS="${CFLAGS} +Olibmerrno"
6899-
fi
6900-
6901-
6902-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS" >&5
6903-
$as_echo_n "checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS... " >&6; }
6904-
if ${pgac_cv_prog_CXX_cxxflags_pOlibmerrno+:} false; then :
6905-
$as_echo_n "(cached) " >&6
6906-
else
6907-
pgac_save_CXXFLAGS=$CXXFLAGS
6908-
pgac_save_CXX=$CXX
6909-
CXX=${CXX}
6910-
CXXFLAGS="${CXXFLAGS} +Olibmerrno"
6911-
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6912-
ac_cxx_werror_flag=yes
6913-
ac_ext=cpp
6914-
ac_cpp='$CXXCPP $CPPFLAGS'
6915-
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6916-
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6917-
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6918-
6919-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920-
/* end confdefs.h. */
6921-
6922-
int
6923-
main ()
6924-
{
6925-
6926-
;
6927-
return 0;
6928-
}
6929-
_ACEOF
6930-
if ac_fn_cxx_try_compile "$LINENO"; then :
6931-
pgac_cv_prog_CXX_cxxflags_pOlibmerrno=yes
6932-
else
6933-
pgac_cv_prog_CXX_cxxflags_pOlibmerrno=no
6934-
fi
6935-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936-
ac_ext=c
6937-
ac_cpp='$CPP $CPPFLAGS'
6938-
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6939-
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6940-
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6941-
6942-
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6943-
CXXFLAGS="$pgac_save_CXXFLAGS"
6944-
CXX="$pgac_save_CXX"
6945-
fi
6946-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&5
6947-
$as_echo "$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&6; }
6948-
if test x"$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" = x"yes"; then
6949-
CXXFLAGS="${CXXFLAGS} +Olibmerrno"
6950-
fi
6951-
6952-
69536858
fi
69546859

69556860

@@ -13818,7 +13723,7 @@ $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
1381813723
fi
1381913724

1382013725

13821-
for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/event.h sys/ipc.h sys/personality.h sys/prctl.h sys/procctl.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/signalfd.h sys/sockio.h sys/tas.h sys/uio.h sys/un.h termios.h ucred.h wctype.h
13726+
for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/event.h sys/ipc.h sys/personality.h sys/prctl.h sys/procctl.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/signalfd.h sys/sockio.h sys/tas.h sys/uio.h sys/un.h termios.h ucred.h wctype.h
1382213727
do :
1382313728
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1382413729
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
@@ -15982,7 +15887,7 @@ fi
1598215887
LIBS_including_readline="$LIBS"
1598315888
LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
1598415889

15985-
for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit inet_pton kqueue mbstowcs_l memset_s poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink readv setproctitle setproctitle_fast setsid shm_open strchrnul strsignal symlink syncfs sync_file_range uselocale wcstombs_l writev
15890+
for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit inet_pton kqueue mbstowcs_l memset_s poll posix_fallocate ppoll pthread_is_threaded_np readlink readv setproctitle setproctitle_fast setsid shm_open strchrnul strsignal symlink syncfs sync_file_range uselocale wcstombs_l writev
1598615891
do :
1598715892
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
1598815893
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"

configure.ac

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ case $host_os in
6767
darwin*) template=darwin ;;
6868
dragonfly*) template=netbsd ;;
6969
freebsd*) template=freebsd ;;
70-
hpux*) template=hpux ;;
7170
linux*|gnu*|k*bsd*-gnu)
7271
template=linux ;;
7372
mingw*) template=win32 ;;
@@ -570,11 +569,6 @@ elif test "$PORTNAME" = "aix"; then
570569
PGAC_PROG_CXX_CFLAGS_OPT([-qnoansialias])
571570
PGAC_PROG_CC_CFLAGS_OPT([-qlonglong])
572571
PGAC_PROG_CXX_CFLAGS_OPT([-qlonglong])
573-
elif test "$PORTNAME" = "hpux"; then
574-
# On some versions of HP-UX, libm functions do not set errno by default.
575-
# Fix that by using +Olibmerrno if the compiler recognizes it.
576-
PGAC_PROG_CC_CFLAGS_OPT([+Olibmerrno])
577-
PGAC_PROG_CXX_CFLAGS_OPT([+Olibmerrno])
578572
fi
579573

580574
AC_SUBST(CFLAGS_UNROLL_LOOPS)
@@ -1452,7 +1446,6 @@ AC_CHECK_HEADERS(m4_normalize([
14521446
sys/personality.h
14531447
sys/prctl.h
14541448
sys/procctl.h
1455-
sys/pstat.h
14561449
sys/resource.h
14571450
sys/select.h
14581451
sys/sem.h
@@ -1801,7 +1794,6 @@ AC_CHECK_FUNCS(m4_normalize([
18011794
poll
18021795
posix_fallocate
18031796
ppoll
1804-
pstat
18051797
pthread_is_threaded_np
18061798
readlink
18071799
readv

doc/src/sgml/dfunc.sgml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -75,35 +75,6 @@ gcc -shared -o foo.so foo.o
7575
</listitem>
7676
</varlistentry>
7777

78-
<varlistentry>
79-
<term>
80-
<systemitem class="osname">HP-UX</systemitem>
81-
<indexterm><primary>HP-UX</primary><secondary>shared library</secondary></indexterm>
82-
</term>
83-
<listitem>
84-
<para>
85-
The compiler flag of the system compiler to create
86-
<acronym>PIC</acronym> is <option>+z</option>. When using
87-
<application>GCC</application> it's <option>-fPIC</option>. The
88-
linker flag for shared libraries is <option>-b</option>. So:
89-
<programlisting>
90-
cc +z -c foo.c
91-
</programlisting>
92-
or:
93-
<programlisting>
94-
gcc -fPIC -c foo.c
95-
</programlisting>
96-
and then:
97-
<programlisting>
98-
ld -b -o foo.sl foo.o
99-
</programlisting>
100-
<systemitem class="osname">HP-UX</systemitem> uses the extension
101-
<filename>.sl</filename> for shared libraries, unlike most other
102-
systems.
103-
</para>
104-
</listitem>
105-
</varlistentry>
106-
10778
<varlistentry>
10879
<term>
10980
<systemitem class="osname">Linux</systemitem>

doc/src/sgml/installation.sgml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,6 @@ build-postgresql:
19741974
shared libraries. The systems on which this is
19751975
<emphasis>not</emphasis> necessary include
19761976
<systemitem class="osname">FreeBSD</systemitem>,
1977-
<systemitem class="osname">HP-UX</systemitem>,
19781977
<systemitem class="osname">Linux</systemitem>,
19791978
<systemitem class="osname">NetBSD</systemitem>, <systemitem
19801979
class="osname">OpenBSD</systemitem>, and
@@ -2137,7 +2136,7 @@ export MANPATH
21372136
<para>
21382137
<productname>PostgreSQL</productname> can be expected to work on these operating
21392138
systems: Linux (all recent distributions), Windows (10 and later),
2140-
FreeBSD, OpenBSD, NetBSD, macOS, AIX, HP/UX, and Solaris.
2139+
FreeBSD, OpenBSD, NetBSD, macOS, AIX, and Solaris.
21412140
Other Unix-like systems may also work but are not currently
21422141
being tested. In most cases, all CPU architectures supported by
21432142
a given operating system will work. Look in

doc/src/sgml/regress.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,13 +689,13 @@ testname:output:platformpattern=comparisonfilename
689689
Therefore, we provide a variant comparison file,
690690
<filename>float4-misrounded-input.out</filename>, which includes
691691
the results to be expected on these systems. To silence the bogus
692-
<quote>failure</quote> message on <systemitem>HP-UX 10</systemitem>
692+
<quote>failure</quote> message on <systemitem>Cygwin</systemitem>
693693
platforms, <filename>resultmap</filename> includes:
694694
<programlisting>
695-
float4:out:hppa.*-hp-hpux10.*=float4-misrounded-input.out
695+
float4:out:.*-.*-cygwin.*=float4-misrounded-input.out
696696
</programlisting>
697697
which will trigger on any machine where the output of
698-
<command>config.guess</command> matches <literal>hppa.*-hp-hpux10.*</literal>.
698+
<command>config.guess</command> matches <literal>.*-.*-cygwin.*</literal>.
699699
Other lines in <filename>resultmap</filename> select the variant comparison
700700
file for other platforms where it's appropriate.
701701
</para>

doc/src/sgml/runtime.sgml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,25 +1018,6 @@ psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such
10181018
</listitem>
10191019
</varlistentry>
10201020

1021-
<varlistentry>
1022-
<term><systemitem class="osname">HP-UX</systemitem>
1023-
<indexterm><primary>HP-UX</primary><secondary>IPC configuration</secondary></indexterm>
1024-
</term>
1025-
<listitem>
1026-
<para>
1027-
The default settings tend to suffice for normal installations.
1028-
</para>
1029-
<para>
1030-
<acronym>IPC</acronym> parameters can be set in the <application>System
1031-
Administration Manager</application> (<acronym>SAM</acronym>) under
1032-
<menuchoice><guimenu>Kernel
1033-
Configuration</guimenu><guimenuitem>Configurable Parameters</guimenuitem></menuchoice>. Choose
1034-
<guibutton>Create A New Kernel</guibutton> when you're done.
1035-
</para>
1036-
</listitem>
1037-
</varlistentry>
1038-
1039-
10401021
<varlistentry>
10411022
<term><systemitem class="osname">Linux</systemitem>
10421023
<indexterm><primary>Linux</primary><secondary>IPC configuration</secondary></indexterm>

src/Makefile.shlib

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -175,39 +175,6 @@ ifeq ($(PORTNAME), netbsd)
175175
endif
176176
endif
177177

178-
ifeq ($(PORTNAME), hpux)
179-
ifdef SO_MAJOR_VERSION
180-
shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
181-
endif
182-
ifeq ($(with_gnu_ld), yes)
183-
LINK.shared = $(CC) -shared -Wl,-Bsymbolic
184-
ifdef soname
185-
LINK.shared += -Wl,-h -Wl,$(soname)
186-
endif
187-
else
188-
LINK.shared = $(LD) -b -Bsymbolic
189-
ifdef soname
190-
LINK.shared += +h $(soname)
191-
endif
192-
# can't use the CC-syntax rpath pattern here, so instead:
193-
rpath =
194-
ifeq ($(enable_rpath), yes)
195-
LINK.shared += +s +b '$(rpathdir)'
196-
endif
197-
# On HPUX platforms, gcc is usually configured to search for libraries
198-
# in /usr/local/lib, but ld won't do so. Add an explicit -L switch so
199-
# ld can find the same libraries gcc does. Make sure it goes after any
200-
# -L switches provided explicitly.
201-
ifeq ($(GCC), yes)
202-
SHLIB_LINK += -L/usr/local/lib
203-
endif
204-
endif
205-
# And we need to link with libgcc, too
206-
ifeq ($(GCC), yes)
207-
SHLIB_LINK += `$(CC) $(LDFLAGS) -print-libgcc-file-name`
208-
endif
209-
endif
210-
211178
ifeq ($(PORTNAME), linux)
212179
LINK.shared = $(COMPILER) -shared
213180
ifdef soname

src/backend/libpq/ifaddr.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -333,17 +333,11 @@ pg_foreach_ifaddr(PgIfAddrCallback callback, void *cb_data)
333333
#endif
334334

335335
/*
336-
* SIOCGIFCONF does not return IPv6 addresses on Solaris
337-
* and HP/UX. So we prefer SIOCGLIFCONF if it's available.
338-
*
339-
* On HP/UX, however, it *only* returns IPv6 addresses,
340-
* and the structs are named slightly differently too.
341-
* We'd have to do another call with SIOCGIFCONF to get the
342-
* IPv4 addresses as well. We don't currently bother, just
343-
* fall back to SIOCGIFCONF on HP/UX.
336+
* SIOCGIFCONF does not return IPv6 addresses on Solaris.
337+
* So we prefer SIOCGLIFCONF if it's available.
344338
*/
345339

346-
#if defined(SIOCGLIFCONF) && !defined(__hpux)
340+
#if defined(SIOCGLIFCONF)
347341

348342
/*
349343
* Enumerate the system's network interface addresses and call the callback

src/backend/port/hpux/tas.c.template

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/backend/port/tas/hpux_hppa.s

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)