pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/clang lang/clang: fix build on NetBSD.
details: https://anonhg.NetBSD.org/pkgsrc/rev/1decb2e1e598
branches: trunk
changeset: 390686:1decb2e1e598
user: he <he%pkgsrc.org@localhost>
date: Tue Dec 27 10:49:42 2022 +0000
description:
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 7ed2ac4c52c8 -r 1decb2e1e598 lang/clang/Makefile
--- a/lang/clang/Makefile Mon Dec 26 22:14:45 2022 +0000
+++ b/lang/clang/Makefile Tue Dec 27 10:49:42 2022 +0000
@@ -1,5 +1,6 @@
-# $NetBSD: Makefile,v 1.77 2022/12/01 10:09:02 adam Exp $
+# $NetBSD: Makefile,v 1.78 2022/12/27 10:49:42 he Exp $
+PKGREVISION= 1
.include "Makefile.common"
PKGNAME= ${DISTNAME:S/.src//}
diff -r 7ed2ac4c52c8 -r 1decb2e1e598 lang/clang/distinfo
--- a/lang/clang/distinfo Mon Dec 26 22:14:45 2022 +0000
+++ b/lang/clang/distinfo Tue Dec 27 10:49:42 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.78 2022/12/01 08:10:52 wiz Exp $
+$NetBSD: distinfo,v 1.79 2022/12/27 10:49:42 he 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 7ed2ac4c52c8 -r 1decb2e1e598 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 Tue Dec 27 10:49:42 2022 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-lib_Interpreter_IncrementalParser.cpp,v 1.1 2022/12/27 10:49:42 he 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