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: Add DEPENDS on openssl for NetBSD...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1f10789ffa2e
branches:  trunk
changeset: 439677:1f10789ffa2e
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Fri Sep 25 12:21:02 2020 +0000

description:
lang/rust: Add DEPENDS on openssl for NetBSD >=9 i386

For background, the bootstrap kits need pkgsrc openssl present to run.
Then, the built cargo links against libs from pkgsrc openssl.  One
would expect USE_BUILTIN.openssl=no to cause the later bl3 to depend
on pkgsrc openssl, and it does, but then there is a mysterious error
about not being able to buildlink heimdal.

This commit, relative to how 1.192, modifies comments and adds a
straight DEPENDS:

  DEPENDS+=     openssl>=1.1:../../security/openssl

only in the case of NetBSD, >=9, i386/sparc64/powerpc.

More or less as proposed on tech-pkg, with no responses.

diffstat:

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

diffs (28 lines):

diff -r 41263d4fa063 -r 1f10789ffa2e lang/rust/Makefile
--- a/lang/rust/Makefile        Fri Sep 25 11:25:44 2020 +0000
+++ b/lang/rust/Makefile        Fri Sep 25 12:21:02 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.194 2020/09/24 11:01:51 gdt Exp $
+# $NetBSD: Makefile,v 1.195 2020/09/25 12:21:02 gdt Exp $
 
 DISTNAME=      rustc-1.45.2-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -527,10 +527,14 @@
 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.  It also is linked against by cargo,
-# so it must be a run-time dependency as well.
-.include "../../security/openssl/buildlink3.mk"
+# (Observed on i386, and presumed true on the other
+# bootstrap-built-for-8 systems.)  Then, 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
+# satisfactory package build.
+# While this is icky, it is for the time being better than no rust package.
+DEPENDS+=      openssl>=1.1:../../security/openssl
 .endif
 
 .include "../../devel/zlib/buildlink3.mk"



Home | Main Index | Thread Index | Old Index