pkgsrc-Changes-HG archive

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

[pkgsrc/pkgsrc-2020Q3]: pkgsrc/lang/rust Pullup ticket #6329 - requested by gdt



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1fce954e6d4f
branches:  pkgsrc-2020Q3
changeset: 440218:1fce954e6d4f
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sun Oct 04 09:26:08 2020 +0000

description:
Pullup ticket #6329 - requested by gdt
lang/rust: NetBSD build fix

Revisions pulled up:
- lang/rust/Makefile                                            1.196

---
   Module Name: pkgsrc
   Committed By:        gdt
   Date:                Tue Sep 29 16:24:28 UTC 2020

   Modified Files:
        pkgsrc/lang/rust: Makefile

   Log Message:
   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 |  18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r 6974bce8a995 -r 1fce954e6d4f lang/rust/Makefile
--- a/lang/rust/Makefile        Sat Oct 03 19:28:58 2020 +0000
+++ b/lang/rust/Makefile        Sun Oct 04 09:26:08 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.195 2020/09/25 12:21:02 gdt Exp $
+# $NetBSD: Makefile,v 1.195.2.1 2020/10/04 09:26:08 bsiegert Exp $
 
 DISTNAME=      rustc-1.45.2-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -121,9 +121,9 @@
 #
 # If we aren't on 9-current, and are on 8.x or 9.x, avoid parallel.
 # \todo Consider avoiding setting this on netbsd-9 past the fix.
-.  if ${MACHINE_PLATFORM:MNetBSD-[1-9].*} && !${MACHINE_PLATFORM:MNetBSD-9.99.*}
-MAKE_JOBS_SAFE=        no
-.  endif
+#.  if ${MACHINE_PLATFORM:MNetBSD-[1-9].*} && !${MACHINE_PLATFORM:MNetBSD-9.99.*}
+#MAKE_JOBS_SAFE=       no
+#.  endif
 
 # Open PRs
 #
@@ -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