author | Evangelos Foutras
<foutrelis@archlinux.org> 2021-06-08 20:12:48 UTC |
committer | Evangelos Foutras
<foutrelis@archlinux.org> 2021-06-08 20:12:48 UTC |
parent | 6abe7d75e2daa5fbd03e0837625e787765ba63ba |
PKGBUILD | +9 | -2 |
gcc11.patch | +12 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index 94067d3..9dff105 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -14,8 +14,10 @@ makedepends=('boost') 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 @@ _make() { BOOST_PYTHON_LIB="-lpython3.9 -lboost_python39" $@ } +prepare() { + cd $pkgname-$pkgname-$pkgver + patch -Np1 -i ../gcc11.patch +} + build() { cd $pkgname-$pkgname-$pkgver _make diff --git a/gcc11.patch b/gcc11.patch new file mode 100644 index 0000000..090c6bf --- /dev/null +++ b/gcc11.patch @@ -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