diff options
author | js <js@pkgsrc.org> | 2020-12-05 16:50:52 +0000 |
---|---|---|
committer | js <js@pkgsrc.org> | 2020-12-05 16:50:52 +0000 |
commit | c599d5853114bb811e405edc0bdabf0f082bc46f (patch) | |
tree | 16a75364afb69163aa20db02926c6e565e7c755e /bootstrap/bootstrap | |
parent | e8a352a412b785f8d32efa94fb695d3c37c651a6 (diff) | |
download | pkgsrc-c599d5853114bb811e405edc0bdabf0f082bc46f.tar.gz |
bootstrap: Prefer native on Elbrus 2000
A lot of patches for Elbrus 2000 have not been upstreamed, which results
in important packages such as openssl failing to build, while the native
one is quite up-to-date and working.
Tested building devel/fossil with this, which results in a fully working
binary.
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index 4aa833d3bb6..0f610e10bfa 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.295 2020/10/28 16:52:43 maya Exp $ +# $NetBSD: bootstrap,v 1.296 2020/12/05 16:50:52 js Exp $ # # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> # All rights reserved. @@ -1081,7 +1081,10 @@ Linux) # like yum or apt that can leak into pkgsrc and cause issues as they # age, undergo ABI changes, or get added/removed behind our backs. # Let pkgsrc maintain all dependencies to avoid these problems. - if [ -z "$prefer_pkgsrc" ] && [ "$prefer_native" != "yes" ]; then + # The exception here is Elbrus 2000, for which a lot of patches have + # not been upstreamed, so that it is better to use native. + if [ -z "$prefer_pkgsrc" ] && [ "$prefer_native" != "yes" ] && \ + [ "$machine_arch" != "e2k" ]; then prefer_pkgsrc="yes" fi ;; |