git: 5160e2389af8 - main - lang/ldc: Update to 1.40.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 04 Jan 2025 17:39:01 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5160e2389af822d23f4cddca861165460066361f
commit 5160e2389af822d23f4cddca861165460066361f
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-01-04 17:37:46 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-01-04 17:38:51 +0000
lang/ldc: Update to 1.40.0
PR: 283134
Sponsored by: Future Crew, LLC
---
lang/ldc/Makefile | 5 +++--
lang/ldc/distinfo | 10 +++++-----
lang/ldc/files/patch-CMakeLists.txt | 18 ++++++++++++++++++
lang/ldc/pkg-plist | 17 +++++++++--------
4 files changed, 35 insertions(+), 15 deletions(-)
diff --git a/lang/ldc/Makefile b/lang/ldc/Makefile
index 371dec52a9ac..f00ec90b6d3a 100644
--- a/lang/ldc/Makefile
+++ b/lang/ldc/Makefile
@@ -1,5 +1,5 @@
PORTNAME= ldc
-PORTVERSION= 1.39.0
+PORTVERSION= 1.40.0
DISTVERSIONSUFFIX= -src
CATEGORIES= lang
MASTER_SITES= https://github.com/ldc-developers/${PORTNAME}/releases/download/v${DISTVERSION}/
@@ -15,9 +15,10 @@ LICENSE= BSD3CLAUSE
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= The bootstrap compiler is provided only for x86_64
+BUILD_DEPENDS= ${LOCALBASE}/llvm15/lib/libLLVM-15.so:devel/llvm15 # required for bootstrap
LIB_DEPENDS= libconfig.so:devel/libconfig
-USES= llvm:lib,run ninja cmake:insource pkgconfig
+USES= llvm:lib,run,min=15,max=19 ninja cmake:insource pkgconfig
#USE_GITHUB= yes
#GH_ACCOUNT= ldc-developers
diff --git a/lang/ldc/distinfo b/lang/ldc/distinfo
index f9533a2a1883..ca97ef8237a1 100644
--- a/lang/ldc/distinfo
+++ b/lang/ldc/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1723214216
-SHA256 (ldc-1.39.0-src.tar.gz) = 839bac36f6073318e36f0b163767e03bdbd3f57d99256b97494ac439b59a4562
-SIZE (ldc-1.39.0-src.tar.gz) = 8554301
-SHA256 (ldc2-1.39.0-freebsd-x86_64.tar.xz) = 82a09a754e69d1afe5741291b9162895f17d85f96bcf7b9c9a1d9bc076aec614
-SIZE (ldc2-1.39.0-freebsd-x86_64.tar.xz) = 18142140
+TIMESTAMP = 1735995517
+SHA256 (ldc-1.40.0-src.tar.gz) = 80a3ddd7b7292818cdf6c130e55f1246a19b5fce96139a49b45ccf4e2be99e5f
+SIZE (ldc-1.40.0-src.tar.gz) = 8672131
+SHA256 (ldc2-1.40.0-freebsd-x86_64.tar.xz) = 7ca16f1c27c824d084d0fb6eb5e93d40a672fd832c5ca0c53c3d2f26f4656d9f
+SIZE (ldc2-1.40.0-freebsd-x86_64.tar.xz) = 18384884
diff --git a/lang/ldc/files/patch-CMakeLists.txt b/lang/ldc/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..9fbecafe250b
--- /dev/null
+++ b/lang/ldc/files/patch-CMakeLists.txt
@@ -0,0 +1,18 @@
+Workaround for the following error
+ld: error: undefined symbol: ZSTD_createCCtx
+>>> referenced by OutputSections.cpp
+>>> OutputSections.cpp.o:(void lld::elf::OutputSection::maybeCompress<llvm::object::ELFType<(llvm::endianness)1, false>>()) in archive /usr/local/llvm18/lib/liblldELF.a
+
+
+--- CMakeLists.txt.orig 2024-12-15 13:48:09 UTC
++++ CMakeLists.txt
+@@ -578,7 +578,8 @@ set_target_properties(
+ VS_USER_PROPS "${PROJECT_SOURCE_DIR}/cmake/VisualD.props"
+ )
+ # LDFLAGS should actually be in target property LINK_FLAGS, but this works, and gets around linking problems
+-target_link_libraries(${LDC_LIB} ${LLVM_LIBRARIES} ${LLVM_LDFLAGS})
++find_package(zstd)
++target_link_libraries(${LDC_LIB} ${LLVM_LIBRARIES} ${LLVM_LDFLAGS} zstd::libzstd)
+ if(WIN32)
+ target_link_libraries(${LDC_LIB} imagehlp psapi)
+ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
diff --git a/lang/ldc/pkg-plist b/lang/ldc/pkg-plist
index b16533d7b1fc..ad1175673864 100644
--- a/lang/ldc/pkg-plist
+++ b/lang/ldc/pkg-plist
@@ -653,6 +653,7 @@ include/d/std/internal/memory.d
include/d/std/internal/scopebuffer.d
include/d/std/internal/test/dummyrange.d
include/d/std/internal/test/range.d
+include/d/std/internal/test/sumtype_example_overloads.d
include/d/std/internal/test/uda.d
include/d/std/internal/unicode_comp.d
include/d/std/internal/unicode_decomp.d
@@ -722,22 +723,22 @@ include/d/std/zip.d
include/d/std/zlib.d
lib/ldc_rt.dso.o
lib/libdruntime-ldc-debug-shared.so
-lib/libdruntime-ldc-debug-shared.so.109
-lib/libdruntime-ldc-debug-shared.so.109.1
+lib/libdruntime-ldc-debug-shared.so.110
+lib/libdruntime-ldc-debug-shared.so.110.0
lib/libdruntime-ldc-debug.a
lib/libdruntime-ldc-lto.a
lib/libdruntime-ldc-shared.so
-lib/libdruntime-ldc-shared.so.109
-lib/libdruntime-ldc-shared.so.109.1
+lib/libdruntime-ldc-shared.so.110
+lib/libdruntime-ldc-shared.so.110.0
lib/libdruntime-ldc.a
lib/libphobos2-ldc-debug-shared.so
-lib/libphobos2-ldc-debug-shared.so.109
-lib/libphobos2-ldc-debug-shared.so.109.1
+lib/libphobos2-ldc-debug-shared.so.110
+lib/libphobos2-ldc-debug-shared.so.110.0
lib/libphobos2-ldc-debug.a
lib/libphobos2-ldc-lto.a
lib/libphobos2-ldc-shared.so
-lib/libphobos2-ldc-shared.so.109
-lib/libphobos2-ldc-shared.so.109.1
+lib/libphobos2-ldc-shared.so.110
+lib/libphobos2-ldc-shared.so.110.0
lib/libphobos2-ldc.a
@dir include/d/etc/c/zlib/doc
@dir include/d/etc/c/zlib/test