From 4631ac18d6491ed45e33cc78cd3c176775eae2c9 Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 6 Dec 2021 03:39:49 +0100 Subject: [PATCH] verilator: update to 4.216 --- .../0001-Fix-MSWIN-compile-error-2681.patch | 29 +++++++++++++++++++ mingw-w64-verilator/PKGBUILD | 9 ++++-- 2 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 mingw-w64-verilator/0001-Fix-MSWIN-compile-error-2681.patch diff --git a/mingw-w64-verilator/0001-Fix-MSWIN-compile-error-2681.patch b/mingw-w64-verilator/0001-Fix-MSWIN-compile-error-2681.patch new file mode 100644 index 0000000000..0d2c37524d --- /dev/null +++ b/mingw-w64-verilator/0001-Fix-MSWIN-compile-error-2681.patch @@ -0,0 +1,29 @@ +diff --git a/Changes b/Changes +index 0cc1c41b..4f1a4c16 100644 +--- a/Changes ++++ b/Changes +@@ -13,6 +13,8 @@ Verilator 4.217 devel + + **Minor:** + ++* Fix MSWIN compile error (#2681). [Unai Martinez-Corral] ++ + + Verilator 4.216 2021-12-05 + ========================== +diff --git a/src/V3File.cpp b/src/V3File.cpp +index 47cc857d..19a777b2 100644 +--- a/src/V3File.cpp ++++ b/src/V3File.cpp +@@ -335,7 +335,7 @@ class VInFilterImp final { + #ifdef INFILTER_PIPE + pid_t m_pid = 0; // fork() process id + #else +- const int m_pid = 0; // fork() process id - always zero as disabled ++ int m_pid = 0; // fork() process id - always zero as disabled + #endif + bool m_pidExited = false; + int m_pidStatus = 0; +-- +2.34.1 + diff --git a/mingw-w64-verilator/PKGBUILD b/mingw-w64-verilator/PKGBUILD index c9c10c8e06..c1ab3fe876 100644 --- a/mingw-w64-verilator/PKGBUILD +++ b/mingw-w64-verilator/PKGBUILD @@ -3,8 +3,8 @@ _realname=verilator pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" -pkgver=4.214 -pkgrel=2 +pkgver=4.216 +pkgrel=1 pkgdesc="The fastest free Verilog HDL simulator (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32') @@ -16,15 +16,18 @@ depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs") source=( "${_realname}::https://codeload.github.com/${_realname}/${_realname}/tar.gz/v${pkgver}" + '0001-Fix-MSWIN-compile-error-2681.patch' ) sha256sums=( - 'e14c7f6ffb00a6746ae2a8ea0424e90a1a30067e8ae4c96b8c42689ca1ca0b1f' + '64e5093b629a7e96178e3b2494f208955f218dfac6f310a91e4fc07d050c980b' + '9a38ccf4f492d804e49cf764e1ada9bbcceccfdba54161af2538ce5d856e6385' ) prepare() { [[ -d "${srcdir}/build-${MINGW_CHOST}" ]] && rm -rf "${srcdir}/build-${MINGW_CHOST}" cp -rf "${srcdir}/${_realname}-${pkgver}" "${srcdir}/build-${MINGW_CHOST}" cd "${srcdir}/build-${MINGW_CHOST}" + patch -p1 -i "${srcdir}"/0001-Fix-MSWIN-compile-error-2681.patch sh autoconf }