git: 040ccec12ec4 - main - cad/openroad: Fix with libfmt >= 9
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 22 Dec 2022 19:35:59 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=040ccec12ec47486c4452d69bd369451e21f2aea
commit 040ccec12ec47486c4452d69bd369451e21f2aea
Author: Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2022-12-22 15:34:18 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-22 19:35:57 +0000
cad/openroad: Fix with libfmt >= 9
PR: 268513
---
cad/openroad/Makefile | 2 +-
cad/openroad/files/patch-CMakeLists.txt | 12 ++++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/cad/openroad/Makefile b/cad/openroad/Makefile
index 73539efb4ab3..7bc81ecb806c 100644
--- a/cad/openroad/Makefile
+++ b/cad/openroad/Makefile
@@ -1,7 +1,7 @@
PORTNAME= openroad
DISTVERSIONPREFIX= v
DISTVERSION= 2.0-2930
-PORTREVISION= 2
+PORTREVISION= 3
DISTVERSIONSUFFIX= -gaa6d690df
PORTEPOCH= 1
CATEGORIES= cad
diff --git a/cad/openroad/files/patch-CMakeLists.txt b/cad/openroad/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..34cd12dc3cc5
--- /dev/null
+++ b/cad/openroad/files/patch-CMakeLists.txt
@@ -0,0 +1,12 @@
+--- 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)
+