pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/cross/mingw-binutils cross/mingw-binutils: take upstre...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ba8790cb52d2
branches:  trunk
changeset: 443461:ba8790cb52d2
user:      dbj <dbj%pkgsrc.org@localhost>
date:      Mon Dec 14 00:39:33 2020 +0000

description:
cross/mingw-binutils: take upstream fix to avoid BASH_LINENO

https://sourceware.org/bugzilla/show_bug.cgi?id=5652

diffstat:

 cross/mingw-binutils/distinfo                       |   4 +-
 cross/mingw-binutils/patches/patch-aa               |  13 -----------
 cross/mingw-binutils/patches/patch-ld_genscripts.sh |  23 +++++++++++++++++++++
 3 files changed, 25 insertions(+), 15 deletions(-)

diffs (58 lines):

diff -r 444120505c1a -r ba8790cb52d2 cross/mingw-binutils/distinfo
--- a/cross/mingw-binutils/distinfo     Mon Dec 14 00:14:48 2020 +0000
+++ b/cross/mingw-binutils/distinfo     Mon Dec 14 00:39:33 2020 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 00:47:44 agc Exp $
+$NetBSD: distinfo,v 1.5 2020/12/14 00:39:33 dbj Exp $
 
 SHA1 (binutils-2.18.tar.bz2) = fdec92e9dfc6c32155869f3910f47041c78e2277
 RMD160 (binutils-2.18.tar.bz2) = 78d07475667c55ecbf9068dbb90362a3445b2a99
 SHA512 (binutils-2.18.tar.bz2) = d3415f867451eca10d8e0585a64c3bfe2bac6a9f74ca8640c97e284d173cfacf2409179e133e24b77d634adf48e3d218d3585af430085aeda0086afd2066a417
 Size (binutils-2.18.tar.bz2) = 14962245 bytes
-SHA1 (patch-aa) = d0eaca0996d6bc4858230e7c22a26d83336b6370
 SHA1 (patch-ab) = 848b71c900463445d8f5420b3175fd74cf5ae4d9
+SHA1 (patch-ld_genscripts.sh) = 3edb0d9ac26fdca2a31cb2497ad0f61d56cc1ccf
diff -r 444120505c1a -r ba8790cb52d2 cross/mingw-binutils/patches/patch-aa
--- a/cross/mingw-binutils/patches/patch-aa     Mon Dec 14 00:14:48 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-aa,v 1.1.1.1 2010/03/15 18:34:37 asau Exp $
-
---- ld/genscripts.sh-orig      2008-07-12 17:45:33.000000000 +0900
-+++ ld/genscripts.sh   2008-07-12 17:43:56.000000000 +0900
-@@ -400,7 +400,7 @@
-   }
-   fragment()
-   {
--    local lineno=$[${BASH_LINENO[0]} + 1]
-+    local lineno=$[\${BASH_LINENO[0]} + 1]
-     echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\""
-     cat >> e${EMULATION_NAME}.c
-   }
diff -r 444120505c1a -r ba8790cb52d2 cross/mingw-binutils/patches/patch-ld_genscripts.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cross/mingw-binutils/patches/patch-ld_genscripts.sh       Mon Dec 14 00:39:33 2020 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ld_genscripts.sh,v 1.1 2020/12/14 00:39:33 dbj Exp $
+
+https://sourceware.org/bugzilla/show_bug.cgi?id=5652
+
+--- ld/genscripts.sh.orig      2007-08-12 19:00:07.000000000 +0000
++++ ld/genscripts.sh
+@@ -390,7 +390,15 @@ case " $EMULATION_LIBPATH " in
+     *" ${EMULATION_NAME} "*) COMPILE_IN=true;;
+ esac
+ 
+-if test -n "${BASH+set}"; then
++# Determine if the shell has support for the variable BASH_LINENO.
++# When it is the case, it is only available inside functions.
++has_lineno()
++{
++  test "x$BASH_LINENO" != "x"
++}
++
++# Enable accruate error source in the compiler error messages, if possible.
++if has_lineno; then
+   source_em()
+   {
+     local current_script="$em_script"



Home | Main Index | Thread Index | Old Index