From owner-svn-ports-all@freebsd.org Sat Feb 3 04:36:23 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F0227EE681B; Sat, 3 Feb 2018 04:36:22 +0000 (UTC) (envelope-from acm@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9F56B728B1; Sat, 3 Feb 2018 04:36:22 +0000 (UTC) (envelope-from acm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 80CB325C11; Sat, 3 Feb 2018 04:36:22 +0000 (UTC) (envelope-from acm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w134aMJ4031331; Sat, 3 Feb 2018 04:36:22 GMT (envelope-from acm@FreeBSD.org) Received: (from acm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w134aMUE031329; Sat, 3 Feb 2018 04:36:22 GMT (envelope-from acm@FreeBSD.org) Message-Id: <201802030436.w134aMUE031329@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: acm set sender to acm@FreeBSD.org using -f From: Jose Alonso Cardenas Marquez Date: Sat, 3 Feb 2018 04:36:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r460774 - head/lang/ldc X-SVN-Group: ports-head X-SVN-Commit-Author: acm X-SVN-Commit-Paths: head/lang/ldc X-SVN-Commit-Revision: 460774 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Feb 2018 04:36:23 -0000 Author: acm Date: Sat Feb 3 04:36:22 2018 New Revision: 460774 URL: https://svnweb.freebsd.org/changeset/ports/460774 Log: - Revert latest commit because it didn't solve pkg-plist problem. jit support depends of LLVM version - Change llvm dependency to devel/llvm40 - Respect llvm40 detection Modified: head/lang/ldc/Makefile head/lang/ldc/pkg-plist Modified: head/lang/ldc/Makefile ============================================================================== --- head/lang/ldc/Makefile Sat Feb 3 04:35:20 2018 (r460773) +++ head/lang/ldc/Makefile Sat Feb 3 04:36:22 2018 (r460774) @@ -14,7 +14,7 @@ COMMENT= The LLVM-based D compiler LICENSE= BSD3CLAUSE -BUILD_DEPENDS= clang39:devel/llvm39 +BUILD_DEPENDS= clang40:devel/llvm40 LIB_DEPENDS= libconfig.so:devel/libconfig BROKEN_aarch64= fails to compile: Error: undefined identifier _jmp_buf, did you mean alias jmp_buf? @@ -26,10 +26,11 @@ USES= cmake CMAKE_ARGS+= -DD_COMPILER:STRING="${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/}/bin/ldmd2" \ -DBUILD_SHARED_LIBS:STRING="BOTH" -CC= clang39 -CXX= clang++39 +CC= clang40 +CXX= clang++40 BOOTVER= 0.17.5 +LLVM_CONFIG= llvm-config40 LDCVER= ${PORTVERSION} WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/$/-src/} @@ -39,13 +40,15 @@ DISTFILES+= ${PORTNAME}-${BOOTVER}-src.tar.gz:bootstra .if ${ARCH} == "amd64" CFLAGS+= -fPIC -PLIST_SUB+= LDC_I386="" -.elif ${ARCH} == "i386" -PLIST_SUB+= LDC_I386="@comment " .endif +post-patch: + ${REINPLACE_CMD} -e 's|$${llvm_config_names}|${LLVM_CONFIG}|g' \ + ${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/}/cmake/Modules/FindLLVM.cmake \ + ${WRKSRC}/cmake/Modules/FindLLVM.cmake + pre-configure: - @cd ${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/} && ${CMAKE_BIN} . - @cd ${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/} && ${MAKE} + @cd ${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/} && ${CMAKE_BIN} . + @cd ${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/} && ${MAKE} .include Modified: head/lang/ldc/pkg-plist ============================================================================== --- head/lang/ldc/pkg-plist Sat Feb 3 04:35:20 2018 (r460773) +++ head/lang/ldc/pkg-plist Sat Feb 3 04:36:22 2018 (r460774) @@ -385,7 +385,7 @@ include/d/ldc/arrayinit.d include/d/ldc/asan.d include/d/ldc/attributes.d include/d/ldc/dcompute.d -%%LDC_I386%%include/d/ldc/dynamic_compile.d +include/d/ldc/dynamic_compile.d include/d/ldc/eh_asm.S include/d/ldc/eh_msvc.d include/d/ldc/gccbuiltins_aarch64.di @@ -570,10 +570,10 @@ lib/libdruntime-ldc-shared.so lib/libdruntime-ldc-shared.so.2.0.77 lib/libdruntime-ldc-shared.so.77 lib/libdruntime-ldc.a -%%LDC_I386%%lib/libldc-jit-rt.a -%%LDC_I386%%lib/libldc-jit.so -%%LDC_I386%%lib/libldc-jit.so.2.0.77 -%%LDC_I386%%lib/libldc-jit.so.77 +lib/libldc-jit-rt.a +lib/libldc-jit.so +lib/libldc-jit.so.2.0.77 +lib/libldc-jit.so.77 lib/libldc-profile-rt.a lib/libphobos2-ldc-debug-shared.so lib/libphobos2-ldc-debug-shared.so.2.0.77