# HG changeset patch # User Hans-G?nter Theisgen # Date 1647446795 -3600 # Node ID 2f031a8d4c0b3e578917d6ff74f232ea0b03b293 # Parent f01b54fbd046c6486fa545802b8feb424f579b33 cairo: modified lookup-symbol.c for binutils-2.37 diff -r f01b54fbd046 -r 2f031a8d4c0b cairo/receipt --- a/cairo/receipt Wed Mar 16 15:28:37 2022 +0000 +++ b/cairo/receipt Wed Mar 16 17:06:35 2022 +0100 @@ -37,12 +37,9 @@ # Rules to configure and make the package. compile_rules() { - # 1.16.0 workaround for - # errors in lookup-symbol.c - # enable-trace=no - # until a better solution is found - - sed -i '/index.sgml/d' doc/public/Makefile* + # modify lookup-symbol.c for binutils-2.37 + patch --strip=0 --input=$stuff/patches/lookup-symbol.c-1.16.0 && + sed -i '/index.sgml/d' doc/public/Makefile* && ./configure \ --prefix=/usr \ diff -r f01b54fbd046 -r 2f031a8d4c0b cairo/stuff/patches/lookup-symbol.c-1.16.0 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cairo/stuff/patches/lookup-symbol.c-1.16.0 Wed Mar 16 17:06:35 2022 +0100 @@ -0,0 +1,20 @@ +--- util/cairo-trace/lookup-symbol.c.orig ++++ util/cairo-trace/lookup-symbol.c +@@ -145,14 +145,14 @@ + if (symbol->found) + return; + +- if ((bfd_get_section_flags (symtab->bfd, section) & SEC_ALLOC) == 0) ++ if ((bfd_section_flags (section) & SEC_ALLOC) == 0) + return; + +- vma = bfd_get_section_vma (symtab->bfd, section); ++ vma = bfd_section_vma (section); + if (symbol->pc < vma) + return; + +- size = bfd_section_size (symtab->bfd, section); ++ size = bfd_section_size (section); + if (symbol->pc >= vma + size) + return; +