diff options
author | dbj <dbj@pkgsrc.org> | 2020-12-14 00:39:33 +0000 |
---|---|---|
committer | dbj <dbj@pkgsrc.org> | 2020-12-14 00:39:33 +0000 |
commit | 32ad23bc9cebabec5068795f0e03728d4c41bdaf (patch) | |
tree | c6d33937e0fe4c5f8d15674a436796ac32453214 | |
parent | 98e234cab59f3d715baed4cabffdadac7904b56f (diff) | |
download | pkgsrc-32ad23bc9cebabec5068795f0e03728d4c41bdaf.tar.gz |
cross/mingw-binutils: take upstream fix to avoid BASH_LINENO
https://sourceware.org/bugzilla/show_bug.cgi?id=5652
-rw-r--r-- | cross/mingw-binutils/distinfo | 4 | ||||
-rw-r--r-- | cross/mingw-binutils/patches/patch-aa | 13 | ||||
-rw-r--r-- | cross/mingw-binutils/patches/patch-ld_genscripts.sh | 23 |
3 files changed, 25 insertions, 15 deletions
diff --git a/cross/mingw-binutils/distinfo b/cross/mingw-binutils/distinfo index 64c465cbc4d..777291b5539 100644 --- a/cross/mingw-binutils/distinfo +++ b/cross/mingw-binutils/distinfo @@ -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 --git a/cross/mingw-binutils/patches/patch-aa b/cross/mingw-binutils/patches/patch-aa deleted file mode 100644 index 11398253582..00000000000 --- a/cross/mingw-binutils/patches/patch-aa +++ /dev/null @@ -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 --git a/cross/mingw-binutils/patches/patch-ld_genscripts.sh b/cross/mingw-binutils/patches/patch-ld_genscripts.sh new file mode 100644 index 00000000000..0db986cd0fa --- /dev/null +++ b/cross/mingw-binutils/patches/patch-ld_genscripts.sh @@ -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" |