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: On NetBSD >=9, bl3 on openssl



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2f4ea33ead46
branches:  trunk
changeset: 439661:2f4ea33ead46
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Thu Sep 24 11:01:51 2020 +0000

description:
lang/rust: On NetBSD >=9, bl3 on openssl

On NetBSD i386 (and sparc64 and powerpc), we have bootstrap kits that
are linked against pkgsrc openssl.  Previously rust BUILD_DEPENDed on
openssl so they could run but this resulted in an installed cargo that
linked against that openssl.  This changes the depend method to
straight bl3, so openssl will be a runtime dependency.

This continues to be icky, but after a long period of discussion on
the lists, no other this-branch fixes to make NetBSD 9/i386 be able to
build rust have been suggested, and further there no objections.

It is expected that the bootstrap process will be rototilled after
2020Q3 is cut; this situation is obviously not a good one to continue.

diffstat:

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

diffs (21 lines):

diff -r e8521d3264ec -r 2f4ea33ead46 lang/rust/Makefile
--- a/lang/rust/Makefile        Thu Sep 24 09:40:31 2020 +0000
+++ b/lang/rust/Makefile        Thu Sep 24 11:01:51 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.193 2020/09/20 22:50:21 gdt Exp $
+# $NetBSD: Makefile,v 1.194 2020/09/24 11:01:51 gdt Exp $
 
 DISTNAME=      rustc-1.45.2-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -528,8 +528,9 @@
 # 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.
-BUILD_DEPENDS+=        openssl>1.1:../../security/openssl
+# bootstrap-built-for-8 systems.  It also is linked against by cargo,
+# so it must be a run-time dependency as well.
+.include "../../security/openssl/buildlink3.mk"
 .endif
 
 .include "../../devel/zlib/buildlink3.mk"



Home | Main Index | Thread Index | Old Index