From 8947d3b726a7b9eefbf452feccf3121dda833181 Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Sun, 19 Jan 2025 11:39:28 +0000 Subject: [PATCH] x86_64-elf-gdb 16.1 --- Formula/x/x86_64-elf-gdb.rb | 38 ++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/Formula/x/x86_64-elf-gdb.rb b/Formula/x/x86_64-elf-gdb.rb index 13101bddba1bd..f9056ef297a6b 100644 --- a/Formula/x/x86_64-elf-gdb.rb +++ b/Formula/x/x86_64-elf-gdb.rb @@ -1,9 +1,9 @@ class X8664ElfGdb < Formula desc "GNU debugger for x86_64-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" @@ -36,6 +36,10 @@ class X8664ElfGdb < 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 = "x86_64-elf" args = %W[ @@ -68,3 +72,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 < $< > $@.tmp; \ + 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 $@.tmp $$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 < $< > $@.tmp; \ + 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 $@.tmp $$texi; \ + touch $@; \ + )