Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ def com_opencircuitdesign_magic():
patches = [
Label("@rules_hdl//dependency_support/com_opencircuitdesign_magic:magic_wrapper.patch"),
Label("@rules_hdl//dependency_support/com_opencircuitdesign_magic:use_bash.patch"),
Label("@rules_hdl//dependency_support/com_opencircuitdesign_magic:rltypedefs.patch"),
],
)
18 changes: 18 additions & 0 deletions dependency_support/com_opencircuitdesign_magic/rltypedefs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- textio/txMain.c 2020-08-11 22:50:26.000000000 +0200
+++ textio/txMain.c 2025-07-15 10:15:29.672949422 +0200
@@ -43,12 +43,15 @@
global bool TxStdoutIsatty;

#ifdef USE_READLINE
+#define WANT_OBSOLETE_TYPEDEFS 1
#ifdef HAVE_READLINE
#include <readline/readline.h>
#include <readline/history.h>
+#include <readline/rltypedefs.h>
#else
#include "readline/readline.h"
#include "readline/history.h"
+#include "readline/rltypedefs.h"
#endif

int TxPrefix(void);
1 change: 1 addition & 0 deletions dependency_support/org_gnu_readline/bundled.BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ pseudo_configure(
"HAVE_TERMCAP_H": "1",
"HAVE_TERMIO_H": "1",
"HAVE_TERMIOS_H": "1",
"HAVE_TIMEVAL" : "1",
"HAVE_UNISTD_H": "1",
"HAVE_WCHAR_H": "1",
"HAVE_WCTYPE_H": "1",
Expand Down
10 changes: 5 additions & 5 deletions dependency_support/org_gnu_readline/org_gnu_readline.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ def org_gnu_readline():
http_archive,
name = "org_gnu_readline",
urls = [
"https://ftp.gnu.org/gnu/readline/readline-8.0.tar.gz",
"http://ftp.vim.org/ftp/gnu/readline/readline-8.0.tar.gz",
"http://ftp.swin.edu.au/gnu/readline/readline-8.0.tar.gz",
"https://ftp.gnu.org/gnu/readline/readline-8.3.tar.gz",
"http://ftp.vim.org/ftp/gnu/readline/readline-8.3.tar.gz",
"http://ftp.swin.edu.au/gnu/readline/readline-8.3.tar.gz",
],
sha256 = "e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461",
strip_prefix = "readline-8.0",
sha256 = "fe5383204467828cd495ee8d1d3c037a7eba1389c22bc6a041f627976f9061cc",
strip_prefix = "readline-8.3",
build_file = Label("//dependency_support/org_gnu_readline:bundled.BUILD.bazel"),
patches = [
Label("@rules_hdl//dependency_support/org_gnu_readline:missing_include.patch"),
Expand Down