Update lang/iverilog to 11.0
This allows it to build with CXXFLAGS=-fno-common Added a patch from upstream to work around a case of "all-world-is-Linux"ism. ok naddy@
This commit is contained in:
parent
eefa404aaf
commit
ca7b9c36eb
@ -1,8 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.21 2019/10/28 08:18:37 bentley Exp $
|
||||
# $OpenBSD: Makefile,v 1.22 2021/02/05 01:02:04 gnezdo Exp $
|
||||
|
||||
COMMENT= Verilog simulation and synthesis tool
|
||||
|
||||
V= 10.3
|
||||
V= 11.0
|
||||
DISTNAME= verilog-$V
|
||||
PKGNAME= iverilog-$V
|
||||
CATEGORIES= lang devel
|
||||
@ -12,7 +12,7 @@ HOMEPAGE= http://iverilog.icarus.com/
|
||||
# GPLv2+
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
MASTER_SITES= ftp://ftp.icarus.com/pub/eda/verilog/v10/
|
||||
MASTER_SITES= ftp://ftp.icarus.com/pub/eda/verilog/v11/
|
||||
|
||||
WANTLIB += ${COMPILER_LIBCXX} bz2 c curses m readline z
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (verilog-10.3.tar.gz) = hr1F5+EtG8h3LDzdOU5oqf7MsqbRSq99rgdztydDaO8=
|
||||
SIZE (verilog-10.3.tar.gz) = 1698889
|
||||
SHA256 (verilog-11.0.tar.gz) = 1UeFYWtj/mc5lI6ZZ0mWJPKd7VSttX4eAOuJdWemVdU=
|
||||
SIZE (verilog-11.0.tar.gz) = 1784307
|
||||
|
25
lang/iverilog/patches/patch-driver_main_c
Normal file
25
lang/iverilog/patches/patch-driver_main_c
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-driver_main_c,v 1.1 2021/02/05 01:02:04 gnezdo Exp $
|
||||
|
||||
Don't exit when ivl_root not found - the user may have supplied it.
|
||||
|
||||
When running 'make check' without having an installed copy, find_ivl_root()
|
||||
will fail on Unix systems that don't provide /proc/self/exe (e.g. MacOS).
|
||||
|
||||
https://github.com/steveicarus/iverilog/commit/56d2d798ecd97c09539e7748997013eddd37ab42
|
||||
|
||||
Index: driver/main.c
|
||||
--- driver/main.c.orig
|
||||
+++ driver/main.c
|
||||
@@ -1061,7 +1061,11 @@ static void find_ivl_root(void)
|
||||
find_ivl_root_failed("command path exceeds size of string buffer.");
|
||||
}
|
||||
if (len <= 0) {
|
||||
- find_ivl_root_failed("couldn't get command path from OS.");
|
||||
+ // We've failed, but we may yet find a -B option on the command line.
|
||||
+ // Use the built-in path so the user sees a sensible error message.
|
||||
+ assert(strlen(IVL_ROOT) < sizeof ivl_root);
|
||||
+ strcpy(ivl_root, IVL_ROOT);
|
||||
+ return;
|
||||
}
|
||||
s = strrchr(ivl_root, sep);
|
||||
if (s == 0) {
|
Loading…
Reference in New Issue
Block a user