Fri Nov 12 20:29:05 2021 UTC ()
mk/bootstrap: Fix bits for SCO UnixWare 7.

Derived from a patch from Boyd Lynn Gerber.


(nia)
diff -r1.302 -r1.303 pkgsrc/bootstrap/bootstrap
diff -r1.410 -r1.411 pkgsrc/mk/bsd.prefs.mk

cvs diff -r1.302 -r1.303 pkgsrc/bootstrap/bootstrap (expand / switch to unified diff)

--- pkgsrc/bootstrap/bootstrap 2021/07/13 12:43:58 1.302
+++ pkgsrc/bootstrap/bootstrap 2021/11/12 20:29:05 1.303
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1#! /bin/sh 1#! /bin/sh
2 2
3# $NetBSD: bootstrap,v 1.302 2021/07/13 12:43:58 schmonz Exp $ 3# $NetBSD: bootstrap,v 1.303 2021/11/12 20:29:05 nia Exp $
4# 4#
5# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> 5# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
6# All rights reserved. 6# All rights reserved.
7# 7#
8# Redistribution and use in source and binary forms, with or without 8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions 9# modification, are permitted provided that the following conditions
10# are met: 10# are met:
11# 1. Redistributions of source code must retain the above copyright 11# 1. Redistributions of source code must retain the above copyright
12# notice, this list of conditions and the following disclaimer. 12# notice, this list of conditions and the following disclaimer.
13# 2. Redistributions in binary form must reproduce the above copyright 13# 2. Redistributions in binary form must reproduce the above copyright
14# notice, this list of conditions and the following disclaimer in the 14# notice, this list of conditions and the following disclaimer in the
15# documentation and/or other materials provided with the distribution. 15# documentation and/or other materials provided with the distribution.
16# 16#
@@ -825,26 +825,27 @@ SunOS) @@ -825,26 +825,27 @@ SunOS)
825 groupsprog="${idprog} -gn" 825 groupsprog="${idprog} -gn"
826 whoamiprog="${idprog} -un" 826 whoamiprog="${idprog} -un"
827 machine_arch=`isainfo -k` 827 machine_arch=`isainfo -k`
828 check_compiler=yes 828 check_compiler=yes
829 check_ssp=yes 829 check_ssp=yes
830 ;; 830 ;;
831UnixWare) 831UnixWare)
832 root_group=sys 832 root_group=sys
833 BSTRAP_ENV="INSTALL=/usr/ucb/install $BSTRAP_ENV" 833 BSTRAP_ENV="INSTALL=/usr/ucb/install $BSTRAP_ENV"
834 need_mkdir=yes 834 need_mkdir=yes
835 need_awk=yes 835 need_awk=yes
836 need_sed=yes 836 need_sed=yes
837 whoamiprog=/usr/ucb/whoami 837 whoamiprog=/usr/ucb/whoami
 838 machine_arch=`uname -m`
838 CC="gcc -DUNIXWARE"; export CC 839 CC="gcc -DUNIXWARE"; export CC
839 ;; 840 ;;
840*) 841*)
841 echo "This platform ($opsys) is untried - good luck, and thanks for using pkgsrc" 842 echo "This platform ($opsys) is untried - good luck, and thanks for using pkgsrc"
842 root_group=wheel 843 root_group=wheel
843 need_bsd_install=yes 844 need_bsd_install=yes
844 need_awk=yes 845 need_awk=yes
845 need_sed=yes 846 need_sed=yes
846 ;; 847 ;;
847esac 848esac
848 849
849# Override if the user explicitly requests it. 850# Override if the user explicitly requests it.
850if [ -n "${march}" ]; then 851if [ -n "${march}" ]; then

cvs diff -r1.410 -r1.411 pkgsrc/mk/bsd.prefs.mk (expand / switch to unified diff)

--- pkgsrc/mk/bsd.prefs.mk 2021/11/02 08:14:58 1.410
+++ pkgsrc/mk/bsd.prefs.mk 2021/11/12 20:29:05 1.411
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: bsd.prefs.mk,v 1.410 2021/11/02 08:14:58 nia Exp $ 1# $NetBSD: bsd.prefs.mk,v 1.411 2021/11/12 20:29:05 nia Exp $
2# 2#
3# This file includes the mk.conf file, which contains the user settings. 3# This file includes the mk.conf file, which contains the user settings.
4# 4#
5# Packages should include this file before any of the .if directives, as 5# Packages should include this file before any of the .if directives, as
6# well as before modifying variables like CFLAGS, LDFLAGS, and so on. 6# well as before modifying variables like CFLAGS, LDFLAGS, and so on.
7# Otherwise the behavior may be unexpected. 7# Otherwise the behavior may be unexpected.
8# 8#
9# When mk.conf is included by this file, the following variables are 9# When mk.conf is included by this file, the following variables are
10# defined: 10# defined:
11# 11#
12# ACCEPTABLE_LICENSES 12# ACCEPTABLE_LICENSES
13# This variable is set to the list of Open Source licenses. See 13# This variable is set to the list of Open Source licenses. See
14# mk/license.mk for details. 14# mk/license.mk for details.
@@ -275,26 +275,32 @@ LOWER_VARIANT_VERSION= ${_UNAME_V} @@ -275,26 +275,32 @@ LOWER_VARIANT_VERSION= ${_UNAME_V}
275.elif ${OPSYS} == "SCO_SV" 275.elif ${OPSYS} == "SCO_SV"
276SCO_RELEASE!= ${UNAME} -r 276SCO_RELEASE!= ${UNAME} -r
277SCO_VERSION!= ${UNAME} -v 277SCO_VERSION!= ${UNAME} -v
278LOWER_VENDOR?= pc 278LOWER_VENDOR?= pc
279LOWER_OPSYS?= sco 279LOWER_OPSYS?= sco
280LOWER_OPSYS_VERSUFFIX= ${SCO_RELEASE}v${SCO_VERSION} 280LOWER_OPSYS_VERSUFFIX= ${SCO_RELEASE}v${SCO_VERSION}
281_UNAME_V!= ${UNAME} -v 281_UNAME_V!= ${UNAME} -v
282. if !empty(_UNAME_V:M5.0*) 282. if !empty(_UNAME_V:M5.0*)
283OS_VARIANT= SCOOSR5 283OS_VARIANT= SCOOSR5
284. elif !empty(_UNAME_V:M6.0*) 284. elif !empty(_UNAME_V:M6.0*)
285OS_VARIANT= SCOOSR6 285OS_VARIANT= SCOOSR6
286. endif 286. endif
287 287
 288.elif ${OPSYS} == "UnixWare"
 289SCO_RELEASE?= sysv5${OPSYS}
 290SCO_VERSION!= ${UNAME} -v
 291LOWER_VENDOR?= unknown
 292LOWER_OPSYS_VERSUFFIX= ${SCO_RELEASE}${SCO_VERSION}
 293
288.elif ${OPSYS} == "Minix" 294.elif ${OPSYS} == "Minix"
289LOWER_VENDOR?= unknown 295LOWER_VENDOR?= unknown
290LOWER_OPSYS:= ${OPSYS:tl} 296LOWER_OPSYS:= ${OPSYS:tl}
291 297
292.elif !defined(LOWER_OPSYS) 298.elif !defined(LOWER_OPSYS)
293LOWER_OPSYS:= ${OPSYS:tl} 299LOWER_OPSYS:= ${OPSYS:tl}
294.endif 300.endif
295 301
296# Now commit the [LOWER_]OS_VERSION values computed above, eliding the :sh 302# Now commit the [LOWER_]OS_VERSION values computed above, eliding the :sh
297OS_VERSION:= ${OS_VERSION} 303OS_VERSION:= ${OS_VERSION}
298LOWER_OS_VERSION:= ${OS_VERSION:tl} 304LOWER_OS_VERSION:= ${OS_VERSION:tl}
299 305
300MAKEFLAGS+= LOWER_OPSYS=${LOWER_OPSYS:Q} 306MAKEFLAGS+= LOWER_OPSYS=${LOWER_OPSYS:Q}
@@ -352,26 +358,28 @@ OBJECT_FMT= ECOFF @@ -352,26 +358,28 @@ OBJECT_FMT= ECOFF
352.elif ${OPSYS} == "HPUX" 358.elif ${OPSYS} == "HPUX"
353. if ${MACHINE_ARCH} == "ia64" 359. if ${MACHINE_ARCH} == "ia64"
354OBJECT_FMT= ELF 360OBJECT_FMT= ELF
355. elif ${MACHINE_ARCH} == "hppa64" 361. elif ${MACHINE_ARCH} == "hppa64"
356# it is ELF but for most purposes behaves like SOM (.sl suffix, ...) 362# it is ELF but for most purposes behaves like SOM (.sl suffix, ...)
357OBJECT_FMT= SOM 363OBJECT_FMT= SOM
358. else # hppa 364. else # hppa
359OBJECT_FMT= SOM 365OBJECT_FMT= SOM
360. endif 366. endif
361.elif ${OPSYS} == "Cygwin" 367.elif ${OPSYS} == "Cygwin"
362OBJECT_FMT= PE 368OBJECT_FMT= PE
363.elif ${OPSYS} == "SCO_SV" 369.elif ${OPSYS} == "SCO_SV"
364OBJECT_FMT= ELF 370OBJECT_FMT= ELF
 371.elif ${OPSYS} == "UnixWare"
 372OBJECT_FMT= ELF
365.endif 373.endif
366 374
367# Calculate depth 375# Calculate depth
368.if exists(${.CURDIR}/mk/bsd.pkg.mk) 376.if exists(${.CURDIR}/mk/bsd.pkg.mk)
369_PKGSRC_TOPDIR= ${.CURDIR} 377_PKGSRC_TOPDIR= ${.CURDIR}
370.elif exists(${.CURDIR}/../mk/bsd.pkg.mk) 378.elif exists(${.CURDIR}/../mk/bsd.pkg.mk)
371_PKGSRC_TOPDIR= ${.CURDIR}/.. 379_PKGSRC_TOPDIR= ${.CURDIR}/..
372.elif exists(${.CURDIR}/../../mk/bsd.pkg.mk) 380.elif exists(${.CURDIR}/../../mk/bsd.pkg.mk)
373_PKGSRC_TOPDIR= ${.CURDIR}/../.. 381_PKGSRC_TOPDIR= ${.CURDIR}/../..
374.endif 382.endif
375 383
376# include the defaults file 384# include the defaults file
377.include "${_PKGSRC_TOPDIR}/mk/defaults/mk.conf" 385.include "${_PKGSRC_TOPDIR}/mk/defaults/mk.conf"