forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Homebrew#204820 from Homebrew/gdb-16.1
gdb & *-gdb 16.1
- Loading branch information
Showing
6 changed files
with
247 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
class Aarch64ElfGdb < Formula | ||
desc "GNU debugger for aarch64-elf cross development" | ||
homepage "https://www.gnu.org/software/gdb/" | ||
url "https://ftp.gnu.org/gnu/gdb/gdb-15.2.tar.xz" | ||
mirror "https://ftpmirror.gnu.org/gdb/gdb-15.2.tar.xz" | ||
sha256 "83350ccd35b5b5a0cba6b334c41294ea968158c573940904f00b92f76345314d" | ||
url "https://ftp.gnu.org/gnu/gdb/gdb-16.1.tar.xz" | ||
mirror "https://ftpmirror.gnu.org/gdb/gdb-16.1.tar.xz" | ||
sha256 "c2cc5ccca029b7a7c3879ce8a96528fdfd056b4d884f2b0511e8f7bc723355c6" | ||
license "GPL-3.0-or-later" | ||
head "https://sourceware.org/git/binutils-gdb.git", branch: "master" | ||
|
||
|
@@ -12,13 +12,12 @@ class Aarch64ElfGdb < Formula | |
end | ||
|
||
bottle do | ||
rebuild 1 | ||
sha256 arm64_sequoia: "e5cd21441950f37a3bf9921c74336c35e015cbabe1b094b9ca162f447a918636" | ||
sha256 arm64_sonoma: "b99503e52ec19d7fe73617369189441b540c54ef9f00afa75087b6553e5e49af" | ||
sha256 arm64_ventura: "408284897e5287a1de871f00b6191161cdca29b0712fb9b8773cf3a4d93a2e6d" | ||
sha256 sonoma: "3bf2066f804c6fa970c1fbd02ec93f7b029aaeae238e00cee3b1669c6db116c2" | ||
sha256 ventura: "d1fa41b6dc0366f7638d553ed50fb86d71ed5048c55afa98b0ff6e8f90187917" | ||
sha256 x86_64_linux: "f58fd6d035e5742511549d3679c91f777eaea20410692d74fafa3e744e461467" | ||
sha256 arm64_sequoia: "3077698e6ced74e70eef8e393d91d5b98427ef30269b1810d28e4be6e7f99c13" | ||
sha256 arm64_sonoma: "2a33aa05debdc6eafac67e3b621ca53a466251ea071c14c41fd17faf2d16b2fa" | ||
sha256 arm64_ventura: "4939ada2dc1adba22309c7be4ed4ddaa808d23be549567f32cbe15277f7cfd4e" | ||
sha256 sonoma: "708cc9feadf8db92a817697a1d76279404b92511eb5f04cbcde0add61a7aca6f" | ||
sha256 ventura: "f0f7505907b6fe4f3a1ec632f12a4ba7020d6ba65f190ab764b8366e1bb4a112" | ||
sha256 x86_64_linux: "37cf17baa9186c4ceb09d80958d399f3f3c45dfa27b0a58b8a6a0851c3d21203" | ||
end | ||
|
||
depends_on "pkgconf" => :build | ||
|
@@ -38,6 +37,10 @@ class Aarch64ElfGdb < Formula | |
depends_on "texinfo" => :build | ||
end | ||
|
||
# Fix build on Linux | ||
# Ref: https://sourceware.org/bugzilla/show_bug.cgi?id=32578 | ||
patch :DATA | ||
|
||
def install | ||
target = "aarch64-elf" | ||
args = %W[ | ||
|
@@ -75,3 +78,31 @@ def install | |
shell_output("#{bin}/aarch64-elf-gdb -batch -ex 'info address _start' a.out") | ||
end | ||
end | ||
|
||
__END__ | ||
diff --git a/bfd/Makefile.in b/bfd/Makefile.in | ||
index aec3717485a..ee674a36c5b 100644 | ||
--- a/bfd/Makefile.in | ||
+++ b/bfd/Makefile.in | ||
@@ -1318,7 +1318,7 @@ REGEN_TEXI = \ | ||
$(MKDOC) -f $(srcdir)/doc/doc.str < $< > [email protected]; \ | ||
texi=$@; \ | ||
texi=$${texi%.stamp}.texi; \ | ||
- test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(srcdir)/$$texi $$texi; \ | ||
+ test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(abs_srcdir)/$$texi $$texi; \ | ||
$(SHELL) $(srcdir)/../move-if-change [email protected] $$texi; \ | ||
touch $@; \ | ||
) | ||
diff --git a/bfd/doc/local.mk b/bfd/doc/local.mk | ||
index 97d658b5a48..9b75402387c 100644 | ||
--- a/bfd/doc/local.mk | ||
+++ b/bfd/doc/local.mk | ||
@@ -101,7 +101,7 @@ REGEN_TEXI = \ | ||
$(MKDOC) -f $(srcdir)/%D%/doc.str < $< > [email protected]; \ | ||
texi=$@; \ | ||
texi=$${texi%.stamp}.texi; \ | ||
- test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(srcdir)/$$texi $$texi; \ | ||
+ test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(abs_srcdir)/$$texi $$texi; \ | ||
$(SHELL) $(srcdir)/../move-if-change [email protected] $$texi; \ | ||
touch $@; \ | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
class ArmNoneEabiGdb < Formula | ||
desc "GNU debugger for arm-none-eabi cross development" | ||
homepage "https://www.gnu.org/software/gdb/" | ||
url "https://ftp.gnu.org/gnu/gdb/gdb-15.2.tar.xz" | ||
mirror "https://ftpmirror.gnu.org/gdb/gdb-15.2.tar.xz" | ||
sha256 "83350ccd35b5b5a0cba6b334c41294ea968158c573940904f00b92f76345314d" | ||
url "https://ftp.gnu.org/gnu/gdb/gdb-16.1.tar.xz" | ||
mirror "https://ftpmirror.gnu.org/gdb/gdb-16.1.tar.xz" | ||
sha256 "c2cc5ccca029b7a7c3879ce8a96528fdfd056b4d884f2b0511e8f7bc723355c6" | ||
license "GPL-3.0-or-later" | ||
head "https://sourceware.org/git/binutils-gdb.git", branch: "master" | ||
|
||
|
@@ -12,13 +12,12 @@ class ArmNoneEabiGdb < Formula | |
end | ||
|
||
bottle do | ||
rebuild 1 | ||
sha256 arm64_sequoia: "4212f97b11f45baa44772a48ac04c55a27637ec92c94da6c828d8c71c1d75ee2" | ||
sha256 arm64_sonoma: "a80ab3c12a9ac961f5d8ac57a6645a83104534319372d007bcae5f2def70b666" | ||
sha256 arm64_ventura: "98a52491d822c7400b726aafec2ed6ede84a53ccd3634d316ef38cdc3c13fa02" | ||
sha256 sonoma: "ae9ae170293d76f2d1c680dc7fc952cc3c8879ce6bcb87547dd6be1956ae0d8b" | ||
sha256 ventura: "dd0627ce4bc99fd95ce688ea794161e2eb2437308cedf0fbacc63fcd3d9370f2" | ||
sha256 x86_64_linux: "4be06338b7071a1f2b1dd245f53a154b8946594e21cd26f4c1df7fa1e9464fb7" | ||
sha256 arm64_sequoia: "f65b635fd9e25b640a6eb95eccbfae48107a24ee3c0e79c5244540a70af23f8c" | ||
sha256 arm64_sonoma: "3bef540704b5fe721617e765aafe78b038d59bba4f208221371721fcdb33b62d" | ||
sha256 arm64_ventura: "9e1a328344bdeb83168921e6c659dff60176894dc4b35f05b1e91e66a1e8e326" | ||
sha256 sonoma: "afc6b9e86828e50d6a06a88a78a053f0922c78712fc8bf453e67eba3403d572f" | ||
sha256 ventura: "e9d346bdd318547661c7f98843877ea5d282f15af424af4234553c73170c6d66" | ||
sha256 x86_64_linux: "7df0ac86aa70a50f11ec3f558b3ecee4c06129bbbb086a1bd4fb106a16eb3b2e" | ||
end | ||
|
||
depends_on "arm-none-eabi-gcc" => :test | ||
|
@@ -35,6 +34,10 @@ class ArmNoneEabiGdb < Formula | |
depends_on "texinfo" => :build | ||
end | ||
|
||
# Fix build on Linux | ||
# Ref: https://sourceware.org/bugzilla/show_bug.cgi?id=32578 | ||
patch :DATA | ||
|
||
def install | ||
target = "arm-none-eabi" | ||
args = %W[ | ||
|
@@ -66,3 +69,31 @@ def install | |
shell_output("#{bin}/arm-none-eabi-gdb -batch -ex 'info address _start' a.out") | ||
end | ||
end | ||
|
||
__END__ | ||
diff --git a/bfd/Makefile.in b/bfd/Makefile.in | ||
index aec3717485a..ee674a36c5b 100644 | ||
--- a/bfd/Makefile.in | ||
+++ b/bfd/Makefile.in | ||
@@ -1318,7 +1318,7 @@ REGEN_TEXI = \ | ||
$(MKDOC) -f $(srcdir)/doc/doc.str < $< > [email protected]; \ | ||
texi=$@; \ | ||
texi=$${texi%.stamp}.texi; \ | ||
- test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(srcdir)/$$texi $$texi; \ | ||
+ test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(abs_srcdir)/$$texi $$texi; \ | ||
$(SHELL) $(srcdir)/../move-if-change [email protected] $$texi; \ | ||
touch $@; \ | ||
) | ||
diff --git a/bfd/doc/local.mk b/bfd/doc/local.mk | ||
index 97d658b5a48..9b75402387c 100644 | ||
--- a/bfd/doc/local.mk | ||
+++ b/bfd/doc/local.mk | ||
@@ -101,7 +101,7 @@ REGEN_TEXI = \ | ||
$(MKDOC) -f $(srcdir)/%D%/doc.str < $< > [email protected]; \ | ||
texi=$@; \ | ||
texi=$${texi%.stamp}.texi; \ | ||
- test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(srcdir)/$$texi $$texi; \ | ||
+ test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(abs_srcdir)/$$texi $$texi; \ | ||
$(SHELL) $(srcdir)/../move-if-change [email protected] $$texi; \ | ||
touch $@; \ | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
class Gdb < Formula | ||
desc "GNU debugger" | ||
homepage "https://www.gnu.org/software/gdb/" | ||
url "https://ftp.gnu.org/gnu/gdb/gdb-15.2.tar.xz" | ||
mirror "https://ftpmirror.gnu.org/gdb/gdb-15.2.tar.xz" | ||
sha256 "83350ccd35b5b5a0cba6b334c41294ea968158c573940904f00b92f76345314d" | ||
url "https://ftp.gnu.org/gnu/gdb/gdb-16.1.tar.xz" | ||
mirror "https://ftpmirror.gnu.org/gdb/gdb-16.1.tar.xz" | ||
sha256 "c2cc5ccca029b7a7c3879ce8a96528fdfd056b4d884f2b0511e8f7bc723355c6" | ||
license "GPL-3.0-or-later" | ||
head "https://sourceware.org/git/binutils-gdb.git", branch: "master" | ||
|
||
bottle do | ||
sha256 sonoma: "9d92a3515e92e9da92688877b856fd36bdcc1117002f3e91e4d0db0e79ce0243" | ||
sha256 ventura: "d2c49ea2e03e06cb8e7144ee46fb2e611eab62119d75629a35e8c99863dd363a" | ||
sha256 x86_64_linux: "c05fb7f13c497e1a01985ad57fd48d6467707e57c20143e7eb5457fa678a4152" | ||
sha256 sonoma: "5ee7e0844dc1e5e74e7936504e954b18b85bcff2856e301ddcbb6f171221f25c" | ||
sha256 ventura: "7b6cfecf7cc06a1e5408fb95ca06a3059eb3755662a9907a9c358a9a8d7d1b87" | ||
sha256 x86_64_linux: "1e88e9c902f2d417c8aa7eb215f888d7e37cf6899b4f2c6521f98384d6824ab0" | ||
end | ||
|
||
depends_on "gmp" | ||
|
@@ -43,7 +43,15 @@ class Gdb < Formula | |
EOS | ||
end | ||
|
||
# Fix build on Linux | ||
# Ref: https://sourceware.org/bugzilla/show_bug.cgi?id=32578 | ||
patch :DATA | ||
|
||
def install | ||
# Fix `error: use of undeclared identifier 'command_style'` | ||
inreplace "gdb/darwin-nat.c", "#include \"cli/cli-cmds.h\"", | ||
"#include \"cli/cli-cmds.h\"\n#include \"cli/cli-style.h\"" | ||
|
||
args = %W[ | ||
--enable-targets=all | ||
--with-lzma | ||
|
@@ -75,3 +83,31 @@ def caveats | |
system bin/"gdb", bin/"gdb", "-configuration" | ||
end | ||
end | ||
|
||
__END__ | ||
diff --git a/bfd/Makefile.in b/bfd/Makefile.in | ||
index aec3717485a..ee674a36c5b 100644 | ||
--- a/bfd/Makefile.in | ||
+++ b/bfd/Makefile.in | ||
@@ -1318,7 +1318,7 @@ REGEN_TEXI = \ | ||
$(MKDOC) -f $(srcdir)/doc/doc.str < $< > [email protected]; \ | ||
texi=$@; \ | ||
texi=$${texi%.stamp}.texi; \ | ||
- test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(srcdir)/$$texi $$texi; \ | ||
+ test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(abs_srcdir)/$$texi $$texi; \ | ||
$(SHELL) $(srcdir)/../move-if-change [email protected] $$texi; \ | ||
touch $@; \ | ||
) | ||
diff --git a/bfd/doc/local.mk b/bfd/doc/local.mk | ||
index 97d658b5a48..9b75402387c 100644 | ||
--- a/bfd/doc/local.mk | ||
+++ b/bfd/doc/local.mk | ||
@@ -101,7 +101,7 @@ REGEN_TEXI = \ | ||
$(MKDOC) -f $(srcdir)/%D%/doc.str < $< > [email protected]; \ | ||
texi=$@; \ | ||
texi=$${texi%.stamp}.texi; \ | ||
- test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(srcdir)/$$texi $$texi; \ | ||
+ test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(abs_srcdir)/$$texi $$texi; \ | ||
$(SHELL) $(srcdir)/../move-if-change [email protected] $$texi; \ | ||
touch $@; \ | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
class I386ElfGdb < Formula | ||
desc "GNU debugger for i386-elf cross development" | ||
homepage "https://www.gnu.org/software/gdb/" | ||
url "https://ftp.gnu.org/gnu/gdb/gdb-15.2.tar.xz" | ||
mirror "https://ftpmirror.gnu.org/gdb/gdb-15.2.tar.xz" | ||
sha256 "83350ccd35b5b5a0cba6b334c41294ea968158c573940904f00b92f76345314d" | ||
url "https://ftp.gnu.org/gnu/gdb/gdb-16.1.tar.xz" | ||
mirror "https://ftpmirror.gnu.org/gdb/gdb-16.1.tar.xz" | ||
sha256 "c2cc5ccca029b7a7c3879ce8a96528fdfd056b4d884f2b0511e8f7bc723355c6" | ||
license "GPL-3.0-or-later" | ||
head "https://sourceware.org/git/binutils-gdb.git", branch: "master" | ||
|
||
|
@@ -12,13 +12,12 @@ class I386ElfGdb < Formula | |
end | ||
|
||
bottle do | ||
rebuild 1 | ||
sha256 arm64_sequoia: "900f3c478443c1636c26dd7262b96a94032eebf5d7855a5dd6b7e3ca0dd5e134" | ||
sha256 arm64_sonoma: "d947404a475e7c75e7d1867fdd675bd42c3c3589eee201b77050827127e58fbb" | ||
sha256 arm64_ventura: "bfb598c82c87bac5a8769ca3bfdfbd0f9b1f586c5a3c116e2fde7a98d8bd8dac" | ||
sha256 sonoma: "847d2c5470792b36811b123394a49b97d2fa2ef5be2c76f6622e4f086084151d" | ||
sha256 ventura: "6fd9fbabbb715b75a09977c4f4f4e39a4b4cbd62ac6b17d9e90aab3f13abad51" | ||
sha256 x86_64_linux: "798b68a4592ac805de5b2b03bd591fc60562782e1404fb9a85ce53f37ddb4448" | ||
sha256 arm64_sequoia: "3b8c8f3be5c6b5900e5ca45d3b9e06d9ac378765aeb8dd577157da95e7fa48b8" | ||
sha256 arm64_sonoma: "71ba38489994cca65572c63b3825222fa3c34ca9ab8184a638679348bd1ecd52" | ||
sha256 arm64_ventura: "ec93c6548af09e56471c202bc22573598cf40e853558e9b5b2d4bc9c7a511014" | ||
sha256 sonoma: "673a13fe944418196dd6af6051538088f2689e91fedf780418f6355ff62225a2" | ||
sha256 ventura: "0e267be3e06b4e463c93082a36723aed46f3c0743f6e3ea25fe43656f700ffac" | ||
sha256 x86_64_linux: "4be9bb16712be288a58ad95d0f77f3fa370fa96dc2a33dd145570ee024af89db" | ||
end | ||
|
||
depends_on "i686-elf-gcc" => :test | ||
|
@@ -35,6 +34,10 @@ class I386ElfGdb < Formula | |
depends_on "texinfo" => :build | ||
end | ||
|
||
# Fix build on Linux | ||
# Ref: https://sourceware.org/bugzilla/show_bug.cgi?id=32578 | ||
patch :DATA | ||
|
||
def install | ||
target = "i386-elf" | ||
args = %W[ | ||
|
@@ -67,3 +70,31 @@ def install | |
assert_match "Symbol \"_start\" is a function at address 0x", output | ||
end | ||
end | ||
|
||
__END__ | ||
diff --git a/bfd/Makefile.in b/bfd/Makefile.in | ||
index aec3717485a..ee674a36c5b 100644 | ||
--- a/bfd/Makefile.in | ||
+++ b/bfd/Makefile.in | ||
@@ -1318,7 +1318,7 @@ REGEN_TEXI = \ | ||
$(MKDOC) -f $(srcdir)/doc/doc.str < $< > [email protected]; \ | ||
texi=$@; \ | ||
texi=$${texi%.stamp}.texi; \ | ||
- test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(srcdir)/$$texi $$texi; \ | ||
+ test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(abs_srcdir)/$$texi $$texi; \ | ||
$(SHELL) $(srcdir)/../move-if-change [email protected] $$texi; \ | ||
touch $@; \ | ||
) | ||
diff --git a/bfd/doc/local.mk b/bfd/doc/local.mk | ||
index 97d658b5a48..9b75402387c 100644 | ||
--- a/bfd/doc/local.mk | ||
+++ b/bfd/doc/local.mk | ||
@@ -101,7 +101,7 @@ REGEN_TEXI = \ | ||
$(MKDOC) -f $(srcdir)/%D%/doc.str < $< > [email protected]; \ | ||
texi=$@; \ | ||
texi=$${texi%.stamp}.texi; \ | ||
- test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(srcdir)/$$texi $$texi; \ | ||
+ test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(abs_srcdir)/$$texi $$texi; \ | ||
$(SHELL) $(srcdir)/../move-if-change [email protected] $$texi; \ | ||
touch $@; \ | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
class Riscv64ElfGdb < Formula | ||
desc "GNU debugger for riscv64-elf cross development" | ||
homepage "https://www.gnu.org/software/gdb/" | ||
url "https://ftp.gnu.org/gnu/gdb/gdb-15.2.tar.xz" | ||
mirror "https://ftpmirror.gnu.org/gdb/gdb-15.2.tar.xz" | ||
sha256 "83350ccd35b5b5a0cba6b334c41294ea968158c573940904f00b92f76345314d" | ||
url "https://ftp.gnu.org/gnu/gdb/gdb-16.1.tar.xz" | ||
mirror "https://ftpmirror.gnu.org/gdb/gdb-16.1.tar.xz" | ||
sha256 "c2cc5ccca029b7a7c3879ce8a96528fdfd056b4d884f2b0511e8f7bc723355c6" | ||
license "GPL-3.0-or-later" | ||
head "https://sourceware.org/git/binutils-gdb.git", branch: "master" | ||
|
||
|
@@ -12,13 +12,12 @@ class Riscv64ElfGdb < Formula | |
end | ||
|
||
bottle do | ||
rebuild 1 | ||
sha256 arm64_sequoia: "36c1f632bb7f40828e5ec403a478b162d0e4fa015fc0cd7efc9bbd00334d4e59" | ||
sha256 arm64_sonoma: "c403475f420f839a525d0aff4e2908a8e64cb70b98872caaa1746ebb10e95399" | ||
sha256 arm64_ventura: "94d073109b7cc60087e9e9b984f8bd87d80770290b6967bec45a97d89ba10109" | ||
sha256 sonoma: "9c5d7038a86482cc060aa65463ccce10d6b0c858a0e9ad5f583a43610f4a1826" | ||
sha256 ventura: "39ca5b921fb532d4f8dac268e68da3c52268097315b976e38af40442997e9172" | ||
sha256 x86_64_linux: "37e929ea261d07835fc69b99999ba092b6da10fe7024d4053fc43c5f7882cc55" | ||
sha256 arm64_sequoia: "5ec7913f8ee922a161642d928054caa35012e7f76ff5704dccc562a41e8c6204" | ||
sha256 arm64_sonoma: "bb83ca7cbf60932bb75c8fc83da5759aa200c63473345c34d6df0094fdb73aa7" | ||
sha256 arm64_ventura: "aa4ad7c443da6dae85fa8f5ef83385baab09ee04255d05ce4c10dcdfdeed25bf" | ||
sha256 sonoma: "b72f8922d44047607f80203783d0f8bcdd4ce3f64a6cbf98c6bc1b79ba9fd6e2" | ||
sha256 ventura: "e4468e209f5e31f7166ad69bb1c839bdfee4a11d1ad8d971def7e50856c9858f" | ||
sha256 x86_64_linux: "6eea4c66dca856214bbfc2f0784ff4f8d1e77e90cbb1a337d941ba76e721dbdd" | ||
end | ||
|
||
depends_on "riscv64-elf-gcc" => :test | ||
|
@@ -35,6 +34,10 @@ class Riscv64ElfGdb < Formula | |
depends_on "texinfo" => :build | ||
end | ||
|
||
# Fix build on Linux | ||
# Ref: https://sourceware.org/bugzilla/show_bug.cgi?id=32578 | ||
patch :DATA | ||
|
||
def install | ||
target = "riscv64-elf" | ||
args = %W[ | ||
|
@@ -66,3 +69,31 @@ def install | |
shell_output("#{bin}/riscv64-elf-gdb -batch -ex 'info address _start' a.out") | ||
end | ||
end | ||
|
||
__END__ | ||
diff --git a/bfd/Makefile.in b/bfd/Makefile.in | ||
index aec3717485a..ee674a36c5b 100644 | ||
--- a/bfd/Makefile.in | ||
+++ b/bfd/Makefile.in | ||
@@ -1318,7 +1318,7 @@ REGEN_TEXI = \ | ||
$(MKDOC) -f $(srcdir)/doc/doc.str < $< > [email protected]; \ | ||
texi=$@; \ | ||
texi=$${texi%.stamp}.texi; \ | ||
- test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(srcdir)/$$texi $$texi; \ | ||
+ test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(abs_srcdir)/$$texi $$texi; \ | ||
$(SHELL) $(srcdir)/../move-if-change [email protected] $$texi; \ | ||
touch $@; \ | ||
) | ||
diff --git a/bfd/doc/local.mk b/bfd/doc/local.mk | ||
index 97d658b5a48..9b75402387c 100644 | ||
--- a/bfd/doc/local.mk | ||
+++ b/bfd/doc/local.mk | ||
@@ -101,7 +101,7 @@ REGEN_TEXI = \ | ||
$(MKDOC) -f $(srcdir)/%D%/doc.str < $< > [email protected]; \ | ||
texi=$@; \ | ||
texi=$${texi%.stamp}.texi; \ | ||
- test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(srcdir)/$$texi $$texi; \ | ||
+ test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(abs_srcdir)/$$texi $$texi; \ | ||
$(SHELL) $(srcdir)/../move-if-change [email protected] $$texi; \ | ||
touch $@; \ | ||
) |
Oops, something went wrong.