summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authorjs <js@pkgsrc.org>2020-08-29 20:11:21 +0000
committerjs <js@pkgsrc.org>2020-08-29 20:11:21 +0000
commit62c00bb21a997fe12e8b04f00fe4a33e337e92b8 (patch)
tree3ed46326403591c6747622968a3c040e773525ca /bootstrap/bootstrap
parenta8fc3f878c5be0d4474a4e30f37e552bf25a6a48 (diff)
downloadpkgsrc-62c00bb21a997fe12e8b04f00fe4a33e337e92b8.tar.gz
Fix bootstrap on QNX
Tested with QNX 6.5.0SP1. Two things were needed: * bootstrap needs to export ACCEPT_INFERIOR_RM_PROGRAM=yes on QNX, because libarchive checks for "rm -f" (with no arguments) working in configure. It doesn't seem to actually use it during the build, so this works. * QNX.sys.mk sets LORDER to echo, but sets TSORT to tsort -q. This results in tsort complaining about having an uneven number of inputs, since of course there are no dependency pairs. Hence, if LORDER is overridden to echo, TSORT also needs to be overridden to cat. Interestingly, Linux.sys.mk also sets LORDER=echo and TSORT=tsort -q, so it's surprising this isn't broken as well?
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-xbootstrap/bootstrap6
1 files changed, 5 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 464d4523130..9b45398aece 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.292 2020/08/20 13:04:01 bacon Exp $
+# $NetBSD: bootstrap,v 1.293 2020/08/29 20:11:21 js Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -754,6 +754,10 @@ QNX)
groupsprog="id -gn"
whoamiprog="id -un"
machine_arch=`uname -p | sed -e 's/x86/i386/'`
+ # libarchive checks for "rm -f" with no arguments being accepted. This
+ # does not work on QNX. Interestingly, libarchive doesn't seem to
+ # actually need it during the build.
+ export ACCEPT_INFERIOR_RM_PROGRAM=yes
;;
SCO_SV)
root_group=root