Received: by mail.netbsd.org (Postfix, from userid 605) id 175D284E76; Thu, 9 Aug 2018 13:40:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 1034A84E04 for ; Thu, 9 Aug 2018 13:40:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id iCyy1aGWdSe6 for ; Thu, 9 Aug 2018 13:40:34 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id AA04584C71 for ; Thu, 9 Aug 2018 13:40:34 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id A406FFBEC; Thu, 9 Aug 2018 13:40:34 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1533822034143850" MIME-Version: 1.0 Date: Thu, 9 Aug 2018 13:40:34 +0000 From: "Jonathan Perkin" Subject: CVS commit: pkgsrc/lang To: pkgsrc-changes@NetBSD.org Reply-To: jperkin@netbsd.org X-Mailer: log_accum Message-Id: <20180809134034.A406FFBEC@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1533822034143850 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: jperkin Date: Thu Aug 9 13:40:34 UTC 2018 Modified Files: pkgsrc/lang: Makefile Added Files: pkgsrc/lang/compiler-rt: DESCR Makefile PLIST buildlink3.mk distinfo pkgsrc/lang/compiler-rt/patches: patch-cmake_config-ix.cmake Log Message: lang: Import compiler-rt version 6.0.1. The compiler-rt project consists of: - builtins - a simple library that provides an implementation of the low-level target-specific hooks required by code generation and other runtime components. For example, when compiling for a 32-bit target, converting a double to a 64-bit unsigned integer is compiling into a runtime call to the "__fixunsdfdi" function. The builtins library provides optimized implementations of this and other low-level routines, either in target-independent C form, or as a heavily-optimized assembly. - sanitizer runtimes - runtime libraries that are required to run the code with sanitizer instrumentation. This includes runtimes for: * AddressSanitizer * ThreadSanitizer * UndefinedBehaviorSanitizer * MemorySanitizer * LeakSanitizer * DataFlowSanitizer - profile - library which is used to collect coverage information. - BlocksRuntime - a target-independent implementation of Apple "Blocks" runtime interfaces. To generate a diff of this commit: cvs rdiff -u -r1.489 -r1.490 pkgsrc/lang/Makefile cvs rdiff -u -r0 -r1.1 pkgsrc/lang/compiler-rt/DESCR \ pkgsrc/lang/compiler-rt/Makefile pkgsrc/lang/compiler-rt/PLIST \ pkgsrc/lang/compiler-rt/buildlink3.mk pkgsrc/lang/compiler-rt/distinfo cvs rdiff -u -r0 -r1.1 \ pkgsrc/lang/compiler-rt/patches/patch-cmake_config-ix.cmake Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1533822034143850 Content-Disposition: inline Content-Length: 8121 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/Makefile diff -u pkgsrc/lang/Makefile:1.489 pkgsrc/lang/Makefile:1.490 --- pkgsrc/lang/Makefile:1.489 Tue Aug 7 09:24:35 2018 +++ pkgsrc/lang/Makefile Thu Aug 9 13:40:34 2018 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.489 2018/08/07 09:24:35 adam Exp $ +# $NetBSD: Makefile,v 1.490 2018/08/09 13:40:34 jperkin Exp $ # COMMENT= Programming languages @@ -33,6 +33,7 @@ SUBDIR+= classpath SUBDIR+= classpath-gui SUBDIR+= clisp SUBDIR+= clojure +SUBDIR+= compiler-rt SUBDIR+= coq SUBDIR+= coreclr SUBDIR+= cparser Added files: Index: pkgsrc/lang/compiler-rt/DESCR diff -u /dev/null pkgsrc/lang/compiler-rt/DESCR:1.1 --- /dev/null Thu Aug 9 13:40:34 2018 +++ pkgsrc/lang/compiler-rt/DESCR Thu Aug 9 13:40:34 2018 @@ -0,0 +1,23 @@ +The compiler-rt project consists of: + + - builtins - a simple library that provides an implementation of the low-level + target-specific hooks required by code generation and other runtime + components. For example, when compiling for a 32-bit target, converting a + double to a 64-bit unsigned integer is compiling into a runtime call to the + "__fixunsdfdi" function. The builtins library provides optimized + implementations of this and other low-level routines, either in + target-independent C form, or as a heavily-optimized assembly. + + - sanitizer runtimes - runtime libraries that are required to run the code + with sanitizer instrumentation. This includes runtimes for: + * AddressSanitizer + * ThreadSanitizer + * UndefinedBehaviorSanitizer + * MemorySanitizer + * LeakSanitizer + * DataFlowSanitizer + + - profile - library which is used to collect coverage information. + + - BlocksRuntime - a target-independent implementation of Apple "Blocks" + runtime interfaces. Index: pkgsrc/lang/compiler-rt/Makefile diff -u /dev/null pkgsrc/lang/compiler-rt/Makefile:1.1 --- /dev/null Thu Aug 9 13:40:34 2018 +++ pkgsrc/lang/compiler-rt/Makefile Thu Aug 9 13:40:34 2018 @@ -0,0 +1,49 @@ +# $NetBSD: Makefile,v 1.1 2018/08/09 13:40:34 jperkin Exp $ + +DISTNAME= compiler-rt-6.0.1.src +PKGNAME= ${DISTNAME:S/.src//} +CATEGORIES= lang devel +MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/ +EXTRACT_SUFX= .tar.xz + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://compiler-rt.llvm.org/ +COMMENT= LLVM runtime libraries +LICENSE= modified-bsd OR mit + +USE_LANGUAGES= c99 c++11 +USE_CMAKE= yes +GCC_REQD+= 4.8 + +CONFIGURE_DIRS= ${WRKDIR}/build +CMAKE_ARG_PATH= ${WRKSRC} + +OS_DIR.SunOS-5.11= solaris2.11 +OS_DIR= ${OS_DIR.${OPSYS}-${OS_VERSION}} + +CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release +CMAKE_ARGS+= -DCMAKE_C_COMPILER=${CC:Q} +CMAKE_ARGS+= -DCMAKE_CXX_COMPILER=${CXX:Q} +CMAKE_ARGS+= -DCOMPILER_RT_TEST_COMPILER=${PKG_CC:Q} +CMAKE_ARGS+= -DCOMPILER_RT_OS_DIR:STRING=${OS_DIR} +CMAKE_ARGS+= -DCOMPILER_RT_INSTALL_PATH:STRING=lib/clang/${PKGVERSION_NOREV} +CMAKE_ARGS+= -DCOMPILER_RT_INCLUDE_TESTS:BOOL=ON +CMAKE_ARGS+= -DLLVM_CONFIG_PATH=${LLVM_CONFIG_PATH:Q} + +PLIST_SUBST+= COMPILER_RT_OS_DIR=${OS_DIR} + +TEST_TARGET= check-compiler-rt + +post-extract: + ${RUN} mkdir -p ${WRKDIR}/build + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "SunOS" +BUILD_DEPENDS+= grep>=0:../../textproc/grep +TOOLS_PATH.grep= ${PREFIX}/bin/ggrep +.endif + +.include "../../devel/googletest/buildlink3.mk" +.include "../../lang/llvm/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" Index: pkgsrc/lang/compiler-rt/PLIST diff -u /dev/null pkgsrc/lang/compiler-rt/PLIST:1.1 --- /dev/null Thu Aug 9 13:40:34 2018 +++ pkgsrc/lang/compiler-rt/PLIST Thu Aug 9 13:40:34 2018 @@ -0,0 +1,18 @@ +@comment $NetBSD: PLIST,v 1.1 2018/08/09 13:40:34 jperkin Exp $ +lib/clang/${PKGVERSION}/include/sanitizer/allocator_interface.h +lib/clang/${PKGVERSION}/include/sanitizer/asan_interface.h +lib/clang/${PKGVERSION}/include/sanitizer/common_interface_defs.h +lib/clang/${PKGVERSION}/include/sanitizer/coverage_interface.h +lib/clang/${PKGVERSION}/include/sanitizer/dfsan_interface.h +lib/clang/${PKGVERSION}/include/sanitizer/esan_interface.h +lib/clang/${PKGVERSION}/include/sanitizer/hwasan_interface.h +lib/clang/${PKGVERSION}/include/sanitizer/linux_syscall_hooks.h +lib/clang/${PKGVERSION}/include/sanitizer/lsan_interface.h +lib/clang/${PKGVERSION}/include/sanitizer/msan_interface.h +lib/clang/${PKGVERSION}/include/sanitizer/scudo_interface.h +lib/clang/${PKGVERSION}/include/sanitizer/tsan_interface.h +lib/clang/${PKGVERSION}/include/sanitizer/tsan_interface_atomic.h +lib/clang/${PKGVERSION}/include/xray/xray_interface.h +lib/clang/${PKGVERSION}/include/xray/xray_log_interface.h +lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.builtins-i386.a +lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.builtins-x86_64.a Index: pkgsrc/lang/compiler-rt/buildlink3.mk diff -u /dev/null pkgsrc/lang/compiler-rt/buildlink3.mk:1.1 --- /dev/null Thu Aug 9 13:40:34 2018 +++ pkgsrc/lang/compiler-rt/buildlink3.mk Thu Aug 9 13:40:34 2018 @@ -0,0 +1,14 @@ +# $NetBSD: buildlink3.mk,v 1.1 2018/08/09 13:40:34 jperkin Exp $ + +BUILDLINK_TREE+= compiler-rt + +.if !defined(COMPILER_RT_BUILDLINK3_MK) +COMPILER_RT_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.compiler-rt+= compiler-rt>=6.0.1 +BUILDLINK_PKGSRCDIR.compiler-rt?= ../../lang/compiler-rt + +.include "../../lang/llvm/buildlink3.mk" +.endif # COMPILER_RT_BUILDLINK3_MK + +BUILDLINK_TREE+= -compiler-rt Index: pkgsrc/lang/compiler-rt/distinfo diff -u /dev/null pkgsrc/lang/compiler-rt/distinfo:1.1 --- /dev/null Thu Aug 9 13:40:34 2018 +++ pkgsrc/lang/compiler-rt/distinfo Thu Aug 9 13:40:34 2018 @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2018/08/09 13:40:34 jperkin Exp $ + +SHA1 (compiler-rt-6.0.1.src.tar.xz) = 4a61bd09f31d3079e921205bb93fb7d05a95946b +RMD160 (compiler-rt-6.0.1.src.tar.xz) = 1e391941c1e0a7385bb3f22a7a7061d57bd18fe7 +SHA512 (compiler-rt-6.0.1.src.tar.xz) = 69850c1ad92c66977fa217cbfb42a6a3f502fbe3d1a08daa7fc4cfeb617a7736d231f8ad8d93b10b1ae29bd753315d2a2d70f9ff1f4d18a9a7cc81758d91f963 +Size (compiler-rt-6.0.1.src.tar.xz) = 1686820 bytes +SHA1 (patch-cmake_config-ix.cmake) = f2a871dfe7c2ee2e938e0812aa19b7498b0e71cc Index: pkgsrc/lang/compiler-rt/patches/patch-cmake_config-ix.cmake diff -u /dev/null pkgsrc/lang/compiler-rt/patches/patch-cmake_config-ix.cmake:1.1 --- /dev/null Thu Aug 9 13:40:34 2018 +++ pkgsrc/lang/compiler-rt/patches/patch-cmake_config-ix.cmake Thu Aug 9 13:40:34 2018 @@ -0,0 +1,42 @@ +$NetBSD: patch-cmake_config-ix.cmake,v 1.1 2018/08/09 13:40:34 jperkin Exp $ + +Disable components that aren't ready for SunOS yet. + +--- cmake/config-ix.cmake.orig 2018-01-03 14:54:43.000000000 +0000 ++++ cmake/config-ix.cmake +@@ -486,7 +486,7 @@ set(COMPILER_RT_SANITIZERS_TO_BUILD all + list_replace(COMPILER_RT_SANITIZERS_TO_BUILD all "${ALL_SANITIZERS}") + + if (SANITIZER_COMMON_SUPPORTED_ARCH AND NOT LLVM_USE_SANITIZER AND +- (OS_NAME MATCHES "Android|Darwin|Linux|FreeBSD|NetBSD|Fuchsia|SunOS" OR ++ (OS_NAME MATCHES "Android|Darwin|Linux|FreeBSD|NetBSD|Fuchsia" OR + (OS_NAME MATCHES "Windows" AND (NOT MINGW AND NOT CYGWIN)))) + set(COMPILER_RT_HAS_SANITIZER_COMMON TRUE) + else() +@@ -505,7 +505,7 @@ else() + set(COMPILER_RT_HAS_ASAN FALSE) + endif() + +-if (OS_NAME MATCHES "Linux|FreeBSD|Windows|NetBSD|SunOS") ++if (OS_NAME MATCHES "Linux|FreeBSD|Windows|NetBSD") + set(COMPILER_RT_ASAN_HAS_STATIC_RUNTIME TRUE) + else() + set(COMPILER_RT_ASAN_HAS_STATIC_RUNTIME FALSE) +@@ -542,7 +542,7 @@ else() + endif() + + if (PROFILE_SUPPORTED_ARCH AND NOT LLVM_USE_SANITIZER AND +- OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows|Android|SunOS") ++ OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows|Android") + set(COMPILER_RT_HAS_PROFILE TRUE) + else() + set(COMPILER_RT_HAS_PROFILE FALSE) +@@ -556,7 +556,7 @@ else() + endif() + + if (COMPILER_RT_HAS_SANITIZER_COMMON AND UBSAN_SUPPORTED_ARCH AND +- OS_NAME MATCHES "Darwin|Linux|FreeBSD|NetBSD|Windows|Android|Fuchsia|SunOS") ++ OS_NAME MATCHES "Darwin|Linux|FreeBSD|NetBSD|Windows|Android|Fuchsia") + set(COMPILER_RT_HAS_UBSAN TRUE) + else() + set(COMPILER_RT_HAS_UBSAN FALSE) --_----------=_1533822034143850--