From 483dc8ed8099addb8540a7e23db859b0e6151b39 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 30 Oct 2026 17:23:55 +0100 Subject: [PATCH] verilator: update to 5.052, orphan. --- .../patches/skip-cpp-version-check.diff | 36 +++++++++++++++++++ srcpkgs/verilator/template | 9 ++--- 2 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/verilator/patches/skip-cpp-version-check.diff diff --git a/srcpkgs/verilator/patches/skip-cpp-version-check.diff b/srcpkgs/verilator/patches/skip-cpp-version-check.diff new file mode 100644 index 00000000000000..ac24083b4f66a9 --- /dev/null +++ b/srcpkgs/verilator/patches/skip-cpp-version-check.diff @@ -0,0 +1,36 @@ +diff --git a/configure.ac b/configure.ac +index 9ae4d293d..d2256ed66 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -825,30 +825,6 @@ AC_DEFUN([_MY_CXX_CHECK_CXX_VER], + [_my_result=no]) + ]) + +-# Add $CFG_CXXFLAGS_STD only if can't compile correctly otherwise, +-# as adding std= when not needed can cause errors with the C++ std library. +-CFG_CXXFLAGS_STD=$CFG_CXXFLAGS_STD_NEWEST +-AC_MSG_CHECKING(whether $CXX supports C++14) +-_MY_CXX_CHECK_CXX_VER() +-AC_MSG_RESULT($_my_result) +-if test "$_my_result" = "no" ; then +- CXXFLAGS="$CXXFLAGS $CFG_CXXFLAGS_STD" +- CFG_CXX_FLAGS_CMAKE="$CFG_CXX_FLAGS_CMAKE $CFG_CXXFLAGS_STD" +- AC_MSG_CHECKING(whether $CXX supports C++14 with $CFG_CXXFLAGS_STD) +- _MY_CXX_CHECK_CXX_VER() +- AC_MSG_RESULT($_my_result) +-else +- # CFG_CXXFLAGS_STD is also propagated to include/verilated.mk.in +- # make sure we use the same std flag while compiling verilator and verilated design +- CFG_CXXFLAGS_STD="" +-fi +-if test "$_my_result" = "no" ; then +- AC_MSG_NOTICE([[]]) +- AC_MSG_ERROR([[the $CXX compiler appears to not support C++14. +- +-Verilator requires a C++14 or newer compiler.]]) +- +-fi + AC_SUBST(CFG_CXXFLAGS_STD) + + # Compiler precompiled header options (assumes either gcc or clang++) + diff --git a/srcpkgs/verilator/template b/srcpkgs/verilator/template index 3864a6ed8147fe..f273dd06c9ab37 100644 --- a/srcpkgs/verilator/template +++ b/srcpkgs/verilator/template @@ -1,16 +1,17 @@ # Template file for 'verilator' pkgname=verilator -version=4.222 +version=5.052 revision=1 build_style=gnu-configure -hostmakedepends="autoconf flex python3" +hostmakedepends="autoconf flex help2man python3" makedepends="libfl-devel" short_desc="SystemVerilog simulator and lint system" -maintainer="Sasha Krassovsky " +maintainer="Orphaned " license="LGPL-3.0-only" homepage="https://veripool.org/wiki/verilator" +changelog="https://raw.githubusercontent.com/verilator/verilator/refs/heads/master/Changes" distfiles="https://github.com/verilator/verilator/archive/v${version}.tar.gz" -checksum=15c60175807c0f3536c3c5b435f131c2b1e8725aefd30645efd946bf401b4c84 +checksum=8c8d2e11e6ad32f641dd250742a94195ddecb912e2e2dabe2f42ddbbb99c1092 pre_configure() { autoconf