pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang gcc48: don't try to make references to stack_chk_...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b7a379bef844
branches: trunk
changeset: 382949:b7a379bef844
user: maya <maya%pkgsrc.org@localhost>
date: Wed Jul 18 23:15:42 2018 +0000
description:
gcc48: don't try to make references to stack_chk_fail_local on netbsd/sun
sun was added as joyent is patching for the same.
this code is only reached if compiling for i386 (or some variation of ppc)
netbsd's stack_chk_fail_local won't work for this.
bump gcc48-libs PKGREVISION above gcc48
PR pkg/53436.
diffstat:
lang/gcc48-libs/Makefile | 4 ++--
lang/gcc48/Makefile | 4 ++--
lang/gcc48/distinfo | 3 ++-
lang/gcc48/patches/patch-gcc_targhooks.c | 17 +++++++++++++++++
4 files changed, 23 insertions(+), 5 deletions(-)
diffs (74 lines):
diff -r 64e1eecb0548 -r b7a379bef844 lang/gcc48-libs/Makefile
--- a/lang/gcc48-libs/Makefile Wed Jul 18 22:57:47 2018 +0000
+++ b/lang/gcc48-libs/Makefile Wed Jul 18 23:15:42 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2017/07/28 23:40:48 maya Exp $
+# $NetBSD: Makefile,v 1.29 2018/07/18 23:15:42 maya Exp $
GCC_PKGNAME= gcc48
.include "../../lang/${GCC_PKGNAME}/version.mk"
@@ -8,7 +8,7 @@
## The PKGREVISION of this package needs to be at least 1 more than the
## PKGREVISION of the lang/gcc48 package so that with the dependence pattern
## '{gcc48,gcc48-libs}>=4.8.*' pkg_all will choose gcc48-libs over gcc48.
-PKGREVISION= 5
+PKGREVISION= 7
CATEGORIES= lang
MASTER_SITES= # empty
DISTFILES= # empty
diff -r 64e1eecb0548 -r b7a379bef844 lang/gcc48/Makefile
--- a/lang/gcc48/Makefile Wed Jul 18 22:57:47 2018 +0000
+++ b/lang/gcc48/Makefile Wed Jul 18 23:15:42 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2018/07/18 00:06:20 joerg Exp $
+# $NetBSD: Makefile,v 1.41 2018/07/18 23:15:42 maya Exp $
GCC_PKGNAME= gcc48
.include "version.mk"
@@ -8,7 +8,7 @@
## When bumping the PKGREVISION of this package the PKGREVISION of
## lang/gcc48-libs needs to be bump to be at least 1 more than the
## PKGREVISION of this package!
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC48_DIST_VERSION}/}
EXTRACT_SUFX= .tar.bz2
diff -r 64e1eecb0548 -r b7a379bef844 lang/gcc48/distinfo
--- a/lang/gcc48/distinfo Wed Jul 18 22:57:47 2018 +0000
+++ b/lang/gcc48/distinfo Wed Jul 18 23:15:42 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.37 2018/06/27 10:07:07 maya Exp $
+$NetBSD: distinfo,v 1.38 2018/07/18 23:15:42 maya Exp $
SHA1 (ecj-4.5.jar) = 58c1d79c64c8cd718550f32a932ccfde8d1e6449
RMD160 (ecj-4.5.jar) = d3f4da657f086b6423f74e93f001132f4855368a
@@ -60,6 +60,7 @@
SHA1 (patch-gcc_java_lang.c) = 781c8f70241df0e5cfb1c69beb755bee14a6c54e
SHA1 (patch-gcc_lto_lto.c) = cc7fdf396c238785141e0ffc8ca8f62a91640f58
SHA1 (patch-gcc_system.h) = 4c959a6b1c4d524cbdf44cfb80f0e5758ec20783
+SHA1 (patch-gcc_targhooks.c) = f9a71960346aea8cc33c397630c32bc4d48ff427
SHA1 (patch-gcc_testsuite_g++.dg_eh_unwind-direct.C) = fd85ccee102e9618a8010d2dcbb2d9916b28f1cc
SHA1 (patch-gcc_testsuite_gcc.dg_format_format.h) = 5bb7af9f355dcd80bfaf4a206d86e4badd4d4b4d
SHA1 (patch-include_libiberty.h) = ad2c64e9a14405c89b02ff68811b1c889405d0a1
diff -r 64e1eecb0548 -r b7a379bef844 lang/gcc48/patches/patch-gcc_targhooks.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc48/patches/patch-gcc_targhooks.c Wed Jul 18 23:15:42 2018 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-gcc_targhooks.c,v 1.1 2018/07/18 23:15:42 maya Exp $
+
+PR pkg/53436
+netbsd can't handle hidden reference to stack_chk_fail_local.
+(note: this code is only happening if targeting i386)
+
+--- gcc/targhooks.c.orig 2013-01-10 20:38:27.000000000 +0000
++++ gcc/targhooks.c
+@@ -692,7 +692,7 @@ default_external_stack_protect_fail (voi
+ tree
+ default_hidden_stack_protect_fail (void)
+ {
+-#ifndef HAVE_GAS_HIDDEN
++#if !defined(HAVE_GAS_HIDDEN) || defined(__NetBSD__) || defined(__sun)
+ return default_external_stack_protect_fail ();
+ #else
+ tree t = stack_chk_fail_decl;
Home |
Main Index |
Thread Index |
Old Index