pkgsrc-Changes-HG archive

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

[pkgsrc/pkgsrc-2021Q1]: pkgsrc/lang/rust Pullup ticket #6446 - requested by g...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/55c0fae88722
branches:  pkgsrc-2021Q1
changeset: 451103:55c0fae88722
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sat Apr 24 12:48:46 2021 +0000

description:
Pullup ticket #6446 - requested by gutteridge
lang/rust: NetBSD/i386 build fix

Revisions pulled up:
- lang/rust/Makefile                                            1.228-1.229

---
   Module Name:    pkgsrc
   Committed By:   gutteridge
   Date:           Thu Apr 15 00:55:45 UTC 2021

   Modified Files:
           pkgsrc/lang/rust: Makefile

   Log Message:
   rust: restore NetBSD i386 bootstrap workaround

   The current i386 bootstrap is built for NetBSD 8.x, and so is linked
   against libstdc++.so.8. NetBSD 9.x still requires compat80 for it to
   run.

   This isn't a complete workaround, as builds still fail in a sandboxed
   environment that doesn't have compat80 installed outside it. Dealing
   with that would require another workaround somewhat like the one used
   for ghc*, but a little different.

---
   Module Name:    pkgsrc
   Committed By:   gutteridge
   Date:           Fri Apr 16 01:14:37 UTC 2021

   Modified Files:
           pkgsrc/lang/rust: Makefile

   Log Message:
   rust: the i386 bootstrap workaround is really a BUILD_DEPENDS

diffstat:

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

diffs (24 lines):

diff -r f3882e829819 -r 55c0fae88722 lang/rust/Makefile
--- a/lang/rust/Makefile        Sat Apr 24 12:46:53 2021 +0000
+++ b/lang/rust/Makefile        Sat Apr 24 12:48:46 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.220.2.1 2021/04/10 08:36:05 bsiegert Exp $
+# $NetBSD: Makefile,v 1.220.2.2 2021/04/24 12:48:46 bsiegert Exp $
 
 DISTNAME=      rustc-1.49.0-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -531,6 +531,14 @@
 #.include "../../www/http-parser/buildlink3.mk"
 #.include "../../devel/jemalloc/buildlink3.mk"
 
+## Issues specific to: bootstrap AND NetBSD follow
+
+# rust i386 bootstraps are built for 8.0 and still depend on libstdc++.so.8.
+# Pull in compat80 on 9.x and newer.
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) && empty(OS_VERSION:M8.*)
+BUILD_DEPENDS+=        compat80>=0:../../emulators/compat80
+.endif
+
 # This is for when we build natively:
 .if !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc) || \
     !empty(MACHINE_PLATFORM:MNetBSD-*-i386)



Home | Main Index | Thread Index | Old Index