[arch-commits] Commit in yosys/trunk (PKGBUILD gcc11.patch)

Evangelos Foutras foutrelis at archlinux.org
Tue Jun 8 20:12:48 UTC 2021


    Date: Tuesday, June 8, 2021 @ 20:12:48
  Author: foutrelis
Revision: 959884

Fix build with GCC 11 (patch from Fedora)

Added:
  yosys/trunk/gcc11.patch
Modified:
  yosys/trunk/PKGBUILD

-------------+
 PKGBUILD    |   11 +++++++++--
 gcc11.patch |   12 ++++++++++++
 2 files changed, 21 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-08 20:06:57 UTC (rev 959883)
+++ PKGBUILD	2021-06-08 20:12:48 UTC (rev 959884)
@@ -14,8 +14,10 @@
 checkdepends=('iverilog')
 optdepends=('graphviz: Schematics display support'
             'xdot: Display netlists')
-source=("https://github.com/cliffordwolf/yosys/archive/$pkgname-$pkgver.tar.gz")
-sha512sums=('6ae0f822ca0e3ec749773dae89e948488b698aaa149e73f04604dd899ac403a3073645f0e27382801f5f1a9483d87ef4066fde5dc797181eff06684de7a5b138')
+source=("https://github.com/cliffordwolf/yosys/archive/$pkgname-$pkgver.tar.gz"
+        gcc11.patch)
+sha512sums=('6ae0f822ca0e3ec749773dae89e948488b698aaa149e73f04604dd899ac403a3073645f0e27382801f5f1a9483d87ef4066fde5dc797181eff06684de7a5b138'
+            '5e087b9b11544adfb48eee6242634f47c60280748c627b27fa806490906047ee1ce34f174398dac6544cc83845823d76bfe94004157304d32ec40ca425a24386')
 
 _make() {
     make \
@@ -33,6 +35,11 @@
         BOOST_PYTHON_LIB="-lpython3.9 -lboost_python39" $@
 }
 
+prepare() {
+    cd $pkgname-$pkgname-$pkgver
+    patch -Np1 -i ../gcc11.patch
+}
+
 build() {
     cd $pkgname-$pkgname-$pkgver
     _make

Added: gcc11.patch
===================================================================
--- gcc11.patch	                        (rev 0)
+++ gcc11.patch	2021-06-08 20:12:48 UTC (rev 959884)
@@ -0,0 +1,12 @@
+diff --git a/passes/sat/freduce.cc b/passes/sat/freduce.cc
+index f296316..292097c 100644
+--- a/passes/sat/freduce.cc
++++ b/passes/sat/freduce.cc
+@@ -27,6 +27,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <algorithm>
++#include <limits>
+ 
+ USING_YOSYS_NAMESPACE
+ PRIVATE_NAMESPACE_BEGIN



More information about the arch-commits mailing list