pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang



Module Name:    pkgsrc
Committed By:   tnn
Date:           Sat Aug 13 09:58:04 UTC 2022

Modified Files:
        pkgsrc/lang/clang: Makefile Makefile.common distinfo
        pkgsrc/lang/clang-tools-extra: Makefile
Added Files:
        pkgsrc/lang/clang/patches: patch-lib_Lex_InitHeaderSearch.cpp
Removed Files:
        pkgsrc/lang/clang/patches: patch-lib_Frontend_InitHeaderSearch.cpp

Log Message:
clang: de-lint, repair broken patch distinfo, restore SunOS patch. Untested


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 pkgsrc/lang/clang/Makefile
cvs rdiff -u -r1.50 -r1.51 pkgsrc/lang/clang/Makefile.common
cvs rdiff -u -r1.74 -r1.75 pkgsrc/lang/clang/distinfo
cvs rdiff -u -r1.18 -r1.19 pkgsrc/lang/clang-tools-extra/Makefile
cvs rdiff -u -r1.2 -r0 \
    pkgsrc/lang/clang/patches/patch-lib_Frontend_InitHeaderSearch.cpp
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/lang/clang/patches/patch-lib_Lex_InitHeaderSearch.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/clang/Makefile
diff -u pkgsrc/lang/clang/Makefile:1.72 pkgsrc/lang/clang/Makefile:1.73
--- pkgsrc/lang/clang/Makefile:1.72     Fri Aug 12 19:03:39 2022
+++ pkgsrc/lang/clang/Makefile  Sat Aug 13 09:58:03 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.72 2022/08/12 19:03:39 tnn Exp $
+# $NetBSD: Makefile,v 1.73 2022/08/13 09:58:03 tnn Exp $
 
 .include "Makefile.common"
 
@@ -7,7 +7,7 @@ PKGNAME=        ${DISTNAME:S/.src//}
 USE_TOOLS+=    perl:run
 
 PLIST_VARS+=   RISCV
-.if !empty(PKG_BUILD_OPTIONS.llvm:Mllvm-target-riscv)
+.if ${PKG_BUILD_OPTIONS.llvm:Mllvm-target-riscv}
 PLIST.RISCV=   yes
 .endif
 

Index: pkgsrc/lang/clang/Makefile.common
diff -u pkgsrc/lang/clang/Makefile.common:1.50 pkgsrc/lang/clang/Makefile.common:1.51
--- pkgsrc/lang/clang/Makefile.common:1.50      Fri Aug 12 08:45:44 2022
+++ pkgsrc/lang/clang/Makefile.common   Sat Aug 13 09:58:03 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.50 2022/08/12 08:45:44 pin Exp $
+# $NetBSD: Makefile.common,v 1.51 2022/08/13 09:58:03 tnn Exp $
 # used by lang/clang/Makefile
 # used by lang/clang-tools-extra/Makefile
 
@@ -12,7 +12,7 @@ HOMEPAGE=     https://clang.llvm.org/
 COMMENT=       C language family frontend for LLVM
 LICENSE=       apache-2.0
 
-CONFIGURE_DIRS=                ${WRKDIR}/build
+CONFIGURE_DIRS=                build
 CMAKE_ARG_PATH=                ${WRKSRC}
 
 USE_LANGUAGES=         c c++14
@@ -147,7 +147,7 @@ CMAKE_ARGS+=                -DLLVM_INCLUDE_TESTS=ON
 CMAKE_ARGS+=           -DCLANG_INCLUDE_TESTS=ON
 TEST_TARGET=           clang-test
 TEST_ENV+=             LD_LIBRARY_PATH=${WRKDIR}/build/lib
-.include "../../devel/googletest/buildlink3.mk"
+.  include "../../devel/googletest/buildlink3.mk"
 .else
 CMAKE_ARGS+=           -DLLVM_INCLUDE_TESTS=OFF
 CMAKE_ARGS+=           -DCLANG_INCLUDE_TESTS=OFF
@@ -156,15 +156,15 @@ CMAKE_ARGS+=              -DCLANG_INCLUDE_TESTS=OFF
 .include "../../lang/llvm/buildlink3.mk"
 
 .if !empty(PKG_OPTIONS:Mz3)
-.if empty(PKG_BUILD_OPTIONS.llvm:Mz3)
+.  if empty(PKG_BUILD_OPTIONS.llvm:Mz3)
 PKG_FAIL_REASON+=      "z3 PKG_OPTION must be enabled in lang/llvm"
-.endif
-.include "../../math/z3/buildlink3.mk"
+.  endif
+.  include "../../math/z3/buildlink3.mk"
 CMAKE_ARGS+=           -DLLVM_ENABLE_Z3_SOLVER=ON
 .endif
 
 post-extract:
-       ${MKDIR} ${WRKDIR}/build
+       ${MKDIR} ${WRKSRC}/build
 
 .include "../../textproc/libxml2/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"

Index: pkgsrc/lang/clang/distinfo
diff -u pkgsrc/lang/clang/distinfo:1.74 pkgsrc/lang/clang/distinfo:1.75
--- pkgsrc/lang/clang/distinfo:1.74     Fri Aug 12 08:45:44 2022
+++ pkgsrc/lang/clang/distinfo  Sat Aug 13 09:58:03 2022
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.74 2022/08/12 08:45:44 pin Exp $
+$NetBSD: distinfo,v 1.75 2022/08/13 09:58:03 tnn Exp $
 
 BLAKE2s (clang-14.0.6.src.tar.xz) = a39d30a3475f93605cf5cf63374500d78b1583e5c738b3ad7693a9ef08c137c4
 SHA512 (clang-14.0.6.src.tar.xz) = 5f5497b57dd116225e90f321902f1015beb50c0b1bb90d0fc6c026f13aa748feabe44f98eb75e86f98f3b1785ad5e850210732f3eae75b942ecd520527dcd30b
@@ -7,5 +7,6 @@ SHA1 (patch-lib_Basic_Targets_OSTargets.
 SHA1 (patch-lib_Driver_ToolChain.cpp) = 33a8e346a72893140fde42245e4b108f3a9b9e3e
 SHA1 (patch-lib_Driver_ToolChains_Solaris.cpp) = 29e6ca7cf0bf0b01f50305f50cd555cbb75995e1
 SHA1 (patch-lib_Driver_ToolChains_Solaris.h) = 22d1ddef34b8df3cc29c4632108d45904797aff3
+SHA1 (patch-lib_Lex_InitHeaderSearch.cpp) = e5cd01d0950f2d9f29b295b2c6da42ec73ce81ca
 SHA1 (patch-tools_clang-shlib_CMakeLists.txt) = 2dce9cfc1e114a79fab457211eea1ee93c2198f4
 SHA1 (patch-tools_libclang_CMakeLists.txt) = 7e5655fc753ef20c8b08d1de438b26dcd3434525

Index: pkgsrc/lang/clang-tools-extra/Makefile
diff -u pkgsrc/lang/clang-tools-extra/Makefile:1.18 pkgsrc/lang/clang-tools-extra/Makefile:1.19
--- pkgsrc/lang/clang-tools-extra/Makefile:1.18 Fri Aug 12 08:50:58 2022
+++ pkgsrc/lang/clang-tools-extra/Makefile      Sat Aug 13 09:58:04 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2022/08/12 08:50:58 pin Exp $
+# $NetBSD: Makefile,v 1.19 2022/08/13 09:58:04 tnn Exp $
 
 .include "../../lang/clang/Makefile.common"
 
@@ -8,21 +8,21 @@ COMMENT=      Extra Clang tools
 
 DEPENDS+=      clang>=${LLVM_VERSION}:../../lang/clang
 
-_EXTRA_DIST=           ${DISTNAME:S/clang/clang-tools-extra/}${EXTRACT_SUFX}
-SITES.${_EXTRA_DIST}=  ${MASTER_SITES:=${GITHUB_PROJECT}/releases/download/${GITHUB_RELEASE}/}
+EXTRA_DIST=            ${DISTNAME:S/clang/clang-tools-extra/}${EXTRACT_SUFX}
+SITES.${EXTRA_DIST}=   ${MASTER_SITES:=${GITHUB_PROJECT}/releases/download/${GITHUB_RELEASE}/}
 
-DISTFILES=     ${DEFAULT_DISTFILES} ${_EXTRA_DIST}
+DISTFILES=     ${DEFAULT_DISTFILES} ${EXTRA_DIST}
 
 BUILD_TARGET=  clang-change-namespace clang-apply-replacements clang-doc
 BUILD_TARGET+= clang-include-fixer clang-move clang-query clang-reorder-fields
 BUILD_TARGET+= clang-tidy clangd modularize pp-trace tool-template
-INSTALL_DIRS=  ../build/tools/extra
+INSTALL_DIRS=  build/tools/extra
 
 REPLACE_PYTHON+=       tools/extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
 REPLACE_PYTHON+=       tools/extra/clang-tidy/tool/clang-tidy-diff.py
 REPLACE_PYTHON+=       tools/extra/clang-tidy/tool/run-clang-tidy.py
 
-BUILDLINK_TRANSFORM.SunOS+=     rm:-Wl,-Bsymbolic-functions
+BUILDLINK_TRANSFORM.SunOS+=    rm:-Wl,-Bsymbolic-functions
 
 .PHONY: inject-clang-tools
 post-extract: inject-clang-tools

Added files:

Index: pkgsrc/lang/clang/patches/patch-lib_Lex_InitHeaderSearch.cpp
diff -u /dev/null pkgsrc/lang/clang/patches/patch-lib_Lex_InitHeaderSearch.cpp:1.1
--- /dev/null   Sat Aug 13 09:58:04 2022
+++ pkgsrc/lang/clang/patches/patch-lib_Lex_InitHeaderSearch.cpp        Sat Aug 13 09:58:04 2022
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_Lex_InitHeaderSearch.cpp,v 1.1 2022/08/13 09:58:04 tnn Exp $
+
+Don't add /usr/local/include by default on Solaris.
+was: patch-lib_Frontend_InitHeaderSearch.cpp
+
+--- lib/Lex/InitHeaderSearch.cpp.orig  2022-06-22 16:46:24.000000000 +0000
++++ lib/Lex/InitHeaderSearch.cpp
+@@ -241,6 +241,7 @@ void InitHeaderSearch::AddDefaultCInclud
+     case llvm::Triple::PS4:
+     case llvm::Triple::ELFIAMCU:
+     case llvm::Triple::Fuchsia:
++    case llvm::Triple::Solaris:
+       break;
+     case llvm::Triple::Win32:
+       if (triple.getEnvironment() != llvm::Triple::Cygnus)



Home | Main Index | Thread Index | Old Index