pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/rust lang/rust: Adjust openssl bootstrap depends ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0153916f892a
branches:  trunk
changeset: 439879:0153916f892a
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Tue Sep 29 16:24:28 2020 +0000

description:
lang/rust: Adjust openssl bootstrap depends (NetBSD only)

On NetBSD, further limit the DEPENDS on openssl to i386.  It turns out
that the sparc64 and powerpc bootstraps are not linked against openssl
as I previously assumed.

No change to limiting this DEPENDS to 9+.  No change to any other OS.

This change is believed to fix rust building on NetBSD 9 sparc64.

As discussed on tech-pkg@.

diffstat:

 lang/rust/Makefile |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 16a880dc558f -r 0153916f892a lang/rust/Makefile
--- a/lang/rust/Makefile        Tue Sep 29 16:18:28 2020 +0000
+++ b/lang/rust/Makefile        Tue Sep 29 16:24:28 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.195 2020/09/25 12:21:02 gdt Exp $
+# $NetBSD: Makefile,v 1.196 2020/09/29 16:24:28 gdt Exp $
 
 DISTNAME=      rustc-1.45.2-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -525,10 +525,16 @@
 # \todo Explain why this is limited to a small list of architectures,
 # and in particular why not x86_64.
 DEPENDS+=      compat80>=0:../../emulators/compat80
+.endif
+
+.if (${OPSYS} == "NetBSD") && \
+               ((${MACHINE_ARCH} == "i386")) \
+       && (empty(OS_VERSION:M[012345678].*) || \
+           !empty(OS_VERSION:M8.99.*))
 # Bootstrap kits use openssl, which on NetBSD 8 comes from pkgsrc.
 # Therefore the pkgsrc openssl libs need to be present as well.
-# (Observed on i386, and presumed true on the other
-# bootstrap-built-for-8 systems.)  Then, when the package is built,
+# The 1.44.1 i686 bootstrap links with pkgsrc openssl.  The others do
+# not.  When the package is built,
 # cargo links against pkgsrc openssl, so it must be a run-time
 # dependency as well.  Forcing USE_BUILTIN.openssl=no results in a
 # mysterious heimdal error, but straight DEPENDS seems to result in a



Home | Main Index | Thread Index | Old Index