Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Jun 2026 06:37:05 +0000
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c21de1bd30a3 - main - cad/openroad: update 2.0-20250=?utf-8?Q?216 =E2=86=92?= 26.q2
Message-ID:  <6a1d2891.1aad8.3718991c@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c21de1bd30a38ac6e4e7ce0303d84a62dd791dbd

commit c21de1bd30a38ac6e4e7ce0303d84a62dd791dbd
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-01 05:39:52 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-01 06:36:45 +0000

    cad/openroad: update 2.0-20250216 → 26.q2
---
 cad/openroad/Makefile                              | 33 +++++++++++-----------
 cad/openroad/distinfo                              | 14 ++++-----
 cad/openroad/files/patch-CMakeLists.txt            | 12 --------
 .../files/patch-src_odb_include_odb_dbTypes.h      | 11 --------
 .../files/patch-src_sta_util_StringUtil.cc         | 30 ++++++++++++++++++++
 .../files/patch-src_stt_src_flt_etc_MakeDatVar.tcl | 11 --------
 cad/openroad/files/patch-swig                      | 33 ----------------------
 7 files changed, 53 insertions(+), 91 deletions(-)

diff --git a/cad/openroad/Makefile b/cad/openroad/Makefile
index 41dcd5bf2406..8ae4812bfddf 100644
--- a/cad/openroad/Makefile
+++ b/cad/openroad/Makefile
@@ -1,7 +1,5 @@
 PORTNAME=	openroad
-DISTVERSIONPREFIX=	v
-DISTVERSION=	2.0-20250216
-PORTREVISION=	10
+DISTVERSION=	26Q2
 PORTEPOCH=	1
 CATEGORIES=	cad
 
@@ -13,7 +11,6 @@ WWW=		https://theopenroadproject.org \
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BROKEN_i386=	C++ issue on i386, should be resolved in the next update
 .if !exists(/usr/include/omp.h)
 BROKEN=		requires OpenMP support that is missing on this architecture
 .endif
@@ -25,6 +22,7 @@ BUILD_DEPENDS=	base64:converters/base64 \
 		gmake:devel/gmake \
 		swig:devel/swig
 LIB_DEPENDS=	libabsl_flags_parse.so:devel/abseil \
+		libbzip2.so:misc/vxl \
 		libCbc.so:math/cbc \
 		libCgl.so:math/cgl \
 		libClpSolver.so:math/clp \
@@ -33,25 +31,30 @@ LIB_DEPENDS=	libabsl_flags_parse.so:devel/abseil \
 		libCoinUtils.so:math/coinutils \
 		libcudd.so:math/cudd \
 		libfmt.so:devel/libfmt \
+		libhighs.so:math/highs \
 		libnauty.so:math/nauty \
 		libopenblas.so:math/openblas \
 		libortools.so:math/or-tools \
 		libOsi.so:math/osi \
 		libprotobuf.so:devel/protobuf \
 		libre2.so:devel/re2 \
-		libspdlog.so:devel/spdlog
+		libspdlog.so:devel/spdlog \
+		libyaml-cpp.so:devel/yaml-cpp \
+		libzstd.so:archivers/zstd
 LIB_DEPENDS+=	libgtest.so:devel/googletest # because third-party/abc looks for it
+LIB_DEPENDS+=	libicudata.so:devel/icu
 
-USES=		bison compiler:c++17-lang cmake eigen:3 qt:5 \
-		localbase:ldflags pkgconfig python:build readline tcl:86 # the code asks for tcl-87, but build fails: https://github.com/The-OpenROAD-Project/OpenROAD/issues/508
+TEST_DEPENDS=	${LOCALBASE}/lib/tcllib/json/json.tcl:devel/tcllib
+
+USES=		bison compiler:c++20-lang cmake eigen:3 qt:5 \
+		localbase:ldflags pkgconfig python:build readline tcl:86
 USE_QT=		core gui widgets buildtools:build qmake:build
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	The-OpenROAD-Project
 GH_PROJECT=	OpenROAD
-GH_TAGNAME=	888a3207a
-GH_TUPLE=	The-OpenROAD-Project:OpenSTA:6e95d93:The_OpenROAD_Project_OpenSTA/src/sta \
-		The-OpenROAD-Project:abc:5c9448c:abc/third-party/abc
+GH_TUPLE=	The-OpenROAD-Project:OpenSTA:43177bb:The_OpenROAD_Project_OpenSTA/src/sta \
+		The-OpenROAD-Project:abc:17cadca:abc/third-party/abc
 
 CMAKE_OFF=	BUILD_PYTHON \
 		ENABLE_TESTS
@@ -66,24 +69,20 @@ BINARY_ALIAS=	python3=${PYTHON_CMD} tclsh=${TCLSH} make=${GMAKE}
 PLIST_FILES=	bin/openroad \
 		bin/sta
 
-PORTSCOUT=	limit:^[0-9]\. # prevent 2021_*
+PORTSCOUT=	limit:^[0-9][0-9]Q
 
 post-patch: # override the TCL version to be the same as USES=tcl sets
 	@${FIND} ${WRKSRC} -name FindTCL.cmake \
 		| ${XARGS} ${REINPLACE_CMD} -e ' \
 			s|set(TCL_POSSIBLE_NAMES |set(TCL_POSSIBLE_NAMES tcl$${FREEBSD_TCL_VER} |; \
 			s|PATHS $${TCL_LIB_PARENT1}|PATHS $${FREEBSD_TCL_INCLUDEDIR} $${TCL_LIB_PARENT1}|'
-	@${REINPLACE_CMD} \
-			-e '/^find_package(Boost /s| system||' \
-			-e '/Boost::system/d'  \
-			${WRKSRC}/src/dst/CMakeLists.txt
 
 post-install: # unnecessarily installs bundled OpenSTA project: https://github.com/The-OpenROAD-Project/OpenROAD/issues/597
 	${RM} -r ${STAGEDIR}${PREFIX}/include/sta ${STAGEDIR}${PREFIX}/lib/libOpenSTA.a
 
 do-test: # some tests are known to fail
-	@${MKDIR} ${WRKSRC}/build/src
-	@[ -f ${WRKSRC}/build/src/openroad ] || ${LN} ${STAGEDIR}${PREFIX}/bin/openroad ${WRKSRC}/build/src/openroad
+	@${MKDIR} ${WRKSRC}/build/bin
+	@[ -f ${WRKSRC}/build/bin/openroad ] || ${LN} ${STAGEDIR}${PREFIX}/bin/openroad ${WRKSRC}/build/bin/openroad
 	@${ECHO} "==> Unit tests"
 	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} test/regression
 	@${ECHO} "==> Flow tests"
diff --git a/cad/openroad/distinfo b/cad/openroad/distinfo
index bfb52df0d252..bbaee2ba892b 100644
--- a/cad/openroad/distinfo
+++ b/cad/openroad/distinfo
@@ -1,7 +1,7 @@
-TIMESTAMP = 1739770620
-SHA256 (The-OpenROAD-Project-OpenROAD-v2.0-20250216-888a3207a_GH0.tar.gz) = 67d24997bcfb2021d5d56bb4185a0dfaefdbe69d4aff51957ef419415fcd1ce1
-SIZE (The-OpenROAD-Project-OpenROAD-v2.0-20250216-888a3207a_GH0.tar.gz) = 291485926
-SHA256 (The-OpenROAD-Project-OpenSTA-6e95d93_GH0.tar.gz) = 135a3517462dee1f96e8163279293eb22d1aedde6df660e27444f797f8d09481
-SIZE (The-OpenROAD-Project-OpenSTA-6e95d93_GH0.tar.gz) = 13668295
-SHA256 (The-OpenROAD-Project-abc-5c9448c_GH0.tar.gz) = 9595bad81ad0c4778b7096374d47485a8e67c1ce297aea87f7329e6aa3b09183
-SIZE (The-OpenROAD-Project-abc-5c9448c_GH0.tar.gz) = 6267553
+TIMESTAMP = 1780261288
+SHA256 (The-OpenROAD-Project-OpenROAD-26Q2_GH0.tar.gz) = f82d5e2b3d94057ce15e741e87810531507c6d8260be2819da923338da5f705c
+SIZE (The-OpenROAD-Project-OpenROAD-26Q2_GH0.tar.gz) = 336422547
+SHA256 (The-OpenROAD-Project-OpenSTA-43177bb_GH0.tar.gz) = f1c9aa4729722637c036d514502ac49710ba10a03ec6004937ac8817ede8bd27
+SIZE (The-OpenROAD-Project-OpenSTA-43177bb_GH0.tar.gz) = 95720128
+SHA256 (The-OpenROAD-Project-abc-17cadca_GH0.tar.gz) = b27dad119c8372c213291b9be2f60002ff89b35673ecbc9924c01dab82f43cf6
+SIZE (The-OpenROAD-Project-abc-17cadca_GH0.tar.gz) = 7182684
diff --git a/cad/openroad/files/patch-CMakeLists.txt b/cad/openroad/files/patch-CMakeLists.txt
deleted file mode 100644
index 34cd12dc3cc5..000000000000
--- a/cad/openroad/files/patch-CMakeLists.txt
+++ /dev/null
@@ -1,12 +0,0 @@
---- CMakeLists.txt.orig	2022-02-09 14:58:23 UTC
-+++ CMakeLists.txt
-@@ -45,6 +45,9 @@ if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.10)
- cmake_policy(SET CMP0071 NEW)
- endif()
- 
-+# Fix with FMT >= 9 - see https://github.com/The-OpenROAD-Project/OpenROAD/issues/2386
-+add_compile_definitions(FMT_DEPRECATED_OSTREAM)
-+
- # Interfers with Qt so off by default.
- option(LINK_TIME_OPTIMIZATION "Flag to control link time optimization: off by default" OFF)
- 
diff --git a/cad/openroad/files/patch-src_odb_include_odb_dbTypes.h b/cad/openroad/files/patch-src_odb_include_odb_dbTypes.h
deleted file mode 100644
index 3f58e39c3c06..000000000000
--- a/cad/openroad/files/patch-src_odb_include_odb_dbTypes.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/odb/include/odb/dbTypes.h.orig	2022-02-10 04:05:30 UTC
-+++ src/odb/include/odb/dbTypes.h
-@@ -34,6 +34,8 @@
- 
- #include "odb.h"
- 
-+#include <sys/types.h> // int8_t
-+
- namespace odb {
- 
- ///
diff --git a/cad/openroad/files/patch-src_sta_util_StringUtil.cc b/cad/openroad/files/patch-src_sta_util_StringUtil.cc
new file mode 100644
index 000000000000..c0562096d9ae
--- /dev/null
+++ b/cad/openroad/files/patch-src_sta_util_StringUtil.cc
@@ -0,0 +1,30 @@
+-- std::from_chars for floating-point types is not implemented in FreeBSD's libc++.
+-- Replace with std::stof which is available and has equivalent semantics.
+-- see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295767
+
+--- src/sta/util/StringUtil.cc.orig	2026-05-31 21:08:13 UTC
++++ src/sta/util/StringUtil.cc
+@@ -55,13 +55,17 @@ stringFloat(const std::string &str)
+ std::pair<float, bool>
+ stringFloat(const std::string &str)
+ {
+-  float value;
+-  auto [ptr, ec] = std::from_chars(str.data(), str.data() + str.size(), value);
+-  if (ec == std::errc()
+-      && *ptr == '\0')
+-    return {value, true};
+-  else
++  // std::from_chars for float is not implemented in FreeBSD libc++
++  try {
++    size_t pos;
++    float value = std::stof(str, &pos);
++    if (pos == str.size())
++      return {value, true};
++    else
++      return {0.0, false};
++  } catch (...) {
+     return {0.0, false};
++  }
+ }
+ 
+ void
diff --git a/cad/openroad/files/patch-src_stt_src_flt_etc_MakeDatVar.tcl b/cad/openroad/files/patch-src_stt_src_flt_etc_MakeDatVar.tcl
deleted file mode 100644
index bc91cc282611..000000000000
--- a/cad/openroad/files/patch-src_stt_src_flt_etc_MakeDatVar.tcl
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/stt/src/flt/etc/MakeDatVar.tcl.orig	2022-02-10 04:38:37 UTC
-+++ src/stt/src/flt/etc/MakeDatVar.tcl
-@@ -32,7 +32,7 @@ close $var_stream
- set b64_file "[file rootname $dat_file].b64"
- set b64_file2 "[file rootname $dat_file].tr"
- 
--exec base64 -i $dat_file > $b64_file
-+exec base64 $dat_file > $b64_file
- # strip trailing \n from base64 file
- exec tr -d "\n" <$b64_file >$b64_file2
- exec cat < $b64_file2 >> $var_file
diff --git a/cad/openroad/files/patch-swig b/cad/openroad/files/patch-swig
deleted file mode 100644
index 0e736f5184e2..000000000000
--- a/cad/openroad/files/patch-swig
+++ /dev/null
@@ -1,33 +0,0 @@
---- src/Exception-py.i.orig	2025-02-16 20:42:08 UTC
-+++ src/Exception-py.i
-@@ -42,7 +42,7 @@
- %}
- 
- %exception {
--  try { $function }
-+  try { $action }
-   catch (std::bad_alloc &) {
-     fprintf(stderr, "Error: out of memory.");
-     abort();
---- src/Exception.i.orig	2025-02-16 20:42:08 UTC
-+++ src/Exception.i
-@@ -25,7 +25,7 @@
- %}
- 
- %exception {
--  try { $function }
-+  try { $action }
-   catch (std::bad_alloc &) {
-     fprintf(stderr, "Error: out of memory.");
-     abort();
---- src/sta/tcl/Exception.i.orig	2025-02-12 00:55:01 UTC
-+++ src/sta/tcl/Exception.i
-@@ -23,7 +23,7 @@
- // This notice may not be removed or altered from any source distribution.
- 
- %exception {
--  try { $function }
-+  try { $action }
-   catch (std::bad_alloc &) {
-     fprintf(stderr, "Error: out of memory.\n");
-     exit(1);


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1d2891.1aad8.3718991c>