Subject: pkg/24375: pkgsrc/security/tcp_wrappers fixes to compile on IRIX
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <geos@epost.de>
List: netbsd-bugs
Date: 02/09/2004 18:21:05
>Number:         24375
>Category:       pkg
>Synopsis:       pkgsrc/security/tcp_wrappers fixes to compile on IRIX
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 09 18:22:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
I've just managed to build pkgsrc/security/tcp_wrappers on IRIX 5.3.
Two things I had to change:

in the pkgsrc Makefile:

.elif ${OPSYS} == "IRIX" || ${OPSYS} == "Linux"
ALL_TARGET!=    ${ECHO} ${LOWER_OPSYS} | ${AWK} -F. '{ print $$1 }'
.else

(to have irix5 as a target, not irix5.3). Valid make targets are:
generic (most bsd-ish systems with sys5 compatibility)
386bsd aix alpha apollo bsdos convex-ultranet dell-gcc dgux dgux543
dynix epix esix freebsd hpux irix4 irix5 irix6 isc iunix
linux machten mips(untested) ncrsvr4 netbsd next osf power_unix_211
ptx-2.x ptx-generic pyramid sco sco-nis sco-od2 sco-os5 sinix sunos4
sunos40 sunos5 sysv4 tandem ultrix unicos7 unicos8 unixware1 unixware2
uts215 uxp

So the above should work for all versions of IRIX. It should still work
for Linux (where the awk stuff has no effect). Maybe you find a more
elegant way.

Secondly, tcp_wrappers_7.6-ipv6.1/tcpd.h must have <sys/types.h>
included before <sys/socket.h>. This should probably be true for most if
not all platforms (I've checked man socket on Linux), but many can do
without.
(I'm wondering if it is correct that this file is touched at all since
my OS will never be able to run IPv6...)

>How-To-Repeat:

>Fix:
see above. Fixing tcp_wrappers_7.6-ipv6.1/tcpd.h probably requires a patch.
>Release-Note:
>Audit-Trail:
>Unformatted: