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: Build-depend on openssl, on NetBS...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/38dbe7e00d84
branches:  trunk
changeset: 439586:38dbe7e00d84
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Sun Sep 20 22:50:21 2020 +0000

description:
lang/rust: Build-depend on openssl, on NetBSD >8

On NetBSD >8, for several CPU types we depend on compat80, because
bootstrap kits are build for NetBSD 8.  On those, also add a
BUILD_DEPENDS on openssl, because the bootstrap kits need pkgsrc
openssl libs.

Adjust and reorganize comments (but the only functional change is the
NetBSD >8 openssl BUILD_DEPENDS).>

Resolves failure to build on NetBSD 9.

(The entire "NetBSD>8" section is a hack that can be removed with
improved bootstrap generation.)

diffstat:

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

diffs (40 lines):

diff -r 6e9794eeedd5 -r 38dbe7e00d84 lang/rust/Makefile
--- a/lang/rust/Makefile        Sun Sep 20 22:30:07 2020 +0000
+++ b/lang/rust/Makefile        Sun Sep 20 22:50:21 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.192 2020/09/20 22:30:07 gdt Exp $
+# $NetBSD: Makefile,v 1.193 2020/09/20 22:50:21 gdt Exp $
 
 DISTNAME=      rustc-1.45.2-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -508,18 +508,28 @@
 #.include "../../www/http-parser/buildlink3.mk"
 #.include "../../devel/jemalloc/buildlink3.mk"
 
-# Bootstrap built on 8.0, build on later version
-# requires compat80 package.
+## Issues specific to: bootstrap AND NetBSD follow
+
 # (I wish this worked on powerpc, but it doesn't since
 # I can't build with the internal LLVM, ref.
 # https://github.com/rust-lang/rust/issues/65862)
+
 .if (${OPSYS} == "NetBSD") && \
                ((${MACHINE_ARCH} == "i386") || \
                 (${MACHINE_ARCH} == "sparc64") || \
                 (${MACHINE_ARCH} == "powerpc")) \
        && (empty(OS_VERSION:M[012345678].*) || \
            !empty(OS_VERSION:M8.99.*))
+# Bootstrap kits are built on 8.0, so that a single bootstrap can run
+# on multiple systems.  Thus later versions need the compat80 package.
+# \todo Explain why this is limited to a small list of architectures,
+# and in particular why not x86_64.
 DEPENDS+=      compat80>=0:../../emulators/compat80
+# 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
 .endif
 
 .include "../../devel/zlib/buildlink3.mk"



Home | Main Index | Thread Index | Old Index