Skip to content

Commit 472b8f5

Browse files
committed
scripts/bootstrap-prefix: bring back Darwin 9 x86 support
Use ppc-macos as base for this, as it's just an aid. Signed-off-by: Fabian Groffen <[email protected]>
1 parent c682495 commit 472b8f5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

scripts/bootstrap-prefix.sh

+14
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,16 @@ bootstrap_setup() {
299299
echo "USE=\"\${USE} ${MAKE_CONF_ADDITIONAL_USE}\""
300300
[[ ${OFFLINE_MODE} ]] && \
301301
echo 'FETCHCOMMAND="bash -c \"echo I need \${FILE} from \${URI} in \${DISTDIR}; read\""'
302+
303+
if [[ ${CHOST} == i*86-apple-darwin9 ]] ; then
304+
# There's no legitimate reason to use 10.5 with x86 (10.6 and
305+
# 10.7 run on every device that ever ran 10.5 x86) but it's
306+
# vastly easier to access and faster than ppc. Don't want to
307+
# burden the tree with this aid-arch, so just use the ppc
308+
# keyword.
309+
echo
310+
echo 'ACCEPT_KEYWORDS="~ppc-macos"'
311+
fi
302312
} > "${MAKE_CONF_DIR}/0100_bootstrap_prefix_make.conf"
303313
fi
304314

@@ -357,6 +367,10 @@ bootstrap_profile() {
357367
rev=${CHOST##*darwin}
358368
profile="prefix/darwin/macos/10.$((rev - 4))/ppc"
359369
;;
370+
i*86-apple-darwin9)
371+
rev=${CHOST##*darwin}
372+
profile="prefix/darwin/macos/10.$((rev - 4))/x32"
373+
;;
360374
i*86-apple-darwin1[578])
361375
eerror "REMOVED ARCH: this 32-bit MacOS architecture was removed,"
362376
eerror "bootstrapping is impossible"

0 commit comments

Comments
 (0)