pkgsrc-Changes-HG archive

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

[pkgsrc/pkgsrc-2022Q4]: pkgsrc/lang/clang Pullup ticket #6709 - requested by he



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e237d8291158
branches:  pkgsrc-2022Q4
changeset: 390780:e237d8291158
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Thu Dec 29 09:05:25 2022 +0000

description:
Pullup ticket #6709 - requested by he
lang/clang: NetBSD build fix

Revisions pulled up:
- lang/clang/Makefile                                           1.78
- lang/clang/distinfo                                           1.79
- lang/clang/patches/patch-lib_Interpreter_IncrementalParser.cpp 1.1

---
   Module Name: pkgsrc
   Committed By:        he
   Date:                Tue Dec 27 10:49:42 UTC 2022

   Modified Files:
        pkgsrc/lang/clang: Makefile distinfo
   Added Files:
        pkgsrc/lang/clang/patches: patch-lib_Interpreter_IncrementalParser.cpp

   Log Message:
   lang/clang: fix build on NetBSD.

   In IncrementalParser.cpp: NetBSD doesn't have ENOTRECOVERABLE, so
   doesn't have std::errc::state_not_recoverable either.  Use
   std::errc::operation_not_supported instead.

   Bump PKGREVISION.

diffstat:

 lang/clang/Makefile                                            |   3 +-
 lang/clang/distinfo                                            |   3 +-
 lang/clang/patches/patch-lib_Interpreter_IncrementalParser.cpp |  17 ++++++++++
 3 files changed, 21 insertions(+), 2 deletions(-)

diffs (49 lines):

diff -r 16671e5fe6cf -r e237d8291158 lang/clang/Makefile
--- a/lang/clang/Makefile       Mon Dec 26 21:09:11 2022 +0000
+++ b/lang/clang/Makefile       Thu Dec 29 09:05:25 2022 +0000
@@ -1,5 +1,6 @@
-# $NetBSD: Makefile,v 1.77 2022/12/01 10:09:02 adam Exp $
+# $NetBSD: Makefile,v 1.77.2.1 2022/12/29 09:05:25 bsiegert Exp $
 
+PKGREVISION=   1
 .include "Makefile.common"
 
 PKGNAME=       ${DISTNAME:S/.src//}
diff -r 16671e5fe6cf -r e237d8291158 lang/clang/distinfo
--- a/lang/clang/distinfo       Mon Dec 26 21:09:11 2022 +0000
+++ b/lang/clang/distinfo       Thu Dec 29 09:05:25 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.78 2022/12/01 08:10:52 wiz Exp $
+$NetBSD: distinfo,v 1.78.2.1 2022/12/29 09:05:25 bsiegert Exp $
 
 BLAKE2s (clang-15.0.6.src.tar.xz) = 22c571afff6b323ad71fb2e050ff02646a3fa6c093e0b5ca64ef2b6ebf45edd2
 SHA512 (clang-15.0.6.src.tar.xz) = 898e9793b27a17689150b8df99fce87037d7353e35b6f03449c64f131a8afb3780e45bf640af8c173362ddbf60bcf09f864a4316b523123899cdd19073ed5e48
@@ -10,6 +10,7 @@
 SHA1 (patch-lib_Driver_ToolChain.cpp) = 33a8e346a72893140fde42245e4b108f3a9b9e3e
 SHA1 (patch-lib_Driver_ToolChains_Solaris.cpp) = ad22a65fb75c266e4f56e3004844f084f92a988f
 SHA1 (patch-lib_Driver_ToolChains_Solaris.h) = 22d1ddef34b8df3cc29c4632108d45904797aff3
+SHA1 (patch-lib_Interpreter_IncrementalParser.cpp) = c5ace959ce566478316447b1621e9bfd9a537cc5
 SHA1 (patch-lib_Lex_InitHeaderSearch.cpp) = 6f8e3d21efbaf3b90bf6c9859ca703d50fa35a46
 SHA1 (patch-tools_clang-shlib_CMakeLists.txt) = 2dce9cfc1e114a79fab457211eea1ee93c2198f4
 SHA1 (patch-tools_libclang_CMakeLists.txt) = 7e5655fc753ef20c8b08d1de438b26dcd3434525
diff -r 16671e5fe6cf -r e237d8291158 lang/clang/patches/patch-lib_Interpreter_IncrementalParser.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/clang/patches/patch-lib_Interpreter_IncrementalParser.cpp    Thu Dec 29 09:05:25 2022 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-lib_Interpreter_IncrementalParser.cpp,v 1.1.2.2 2022/12/29 09:05:25 bsiegert Exp $
+
+NetBSD doesn't have ENOTRECOVERABLE, so doesn't have
+std::errc::state_not_recoverable either.  Use
+std::errc::operation_not_supported instead.
+
+--- lib/Interpreter/IncrementalParser.cpp.orig 2022-11-16 06:28:29.000000000 +0000
++++ lib/Interpreter/IncrementalParser.cpp
+@@ -53,7 +53,7 @@ public:
+           switch (CI.getFrontendOpts().ProgramAction) {
+           default:
+             Err = llvm::createStringError(
+-                std::errc::state_not_recoverable,
++                std::errc::operation_not_supported,
+                 "Driver initialization failed. "
+                 "Incremental mode for action %d is not supported",
+                 CI.getFrontendOpts().ProgramAction);



Home | Main Index | Thread Index | Old Index