pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/vala vala: add hacks.mk to avoid SEGV of vala bin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/555c0897cdd1
branches:  trunk
changeset: 389259:555c0897cdd1
user:      tsutsui <tsutsui%pkgsrc.org@localhost>
date:      Mon Dec 24 00:10:09 2018 +0000

description:
vala: add hacks.mk to avoid SEGV of vala binaries on NetBSD/earmv6hf 8.0.

Bump PKGREVISION to denote visible binary changes on arm.
Fixes PR pkg/53743.  Ok'ed by wiz@

diffstat:

 lang/vala/Makefile |   3 ++-
 lang/vala/hacks.mk |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r fc9f70877ecc -r 555c0897cdd1 lang/vala/Makefile
--- a/lang/vala/Makefile        Sun Dec 23 23:51:26 2018 +0000
+++ b/lang/vala/Makefile        Mon Dec 24 00:10:09 2018 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.47 2018/12/01 17:19:33 wiz Exp $
+# $NetBSD: Makefile,v 1.48 2018/12/24 00:10:09 tsutsui Exp $
 
 DISTNAME=      vala-0.42.3
+PKGREVISION=   1
 CATEGORIES=    lang gnome
 MASTER_SITES=  ${MASTER_SITE_GNOME:=sources/vala/${PKGVERSION_NOREV:R}/}
 EXTRACT_SUFX=  .tar.xz
diff -r fc9f70877ecc -r 555c0897cdd1 lang/vala/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/vala/hacks.mk        Mon Dec 24 00:10:09 2018 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: hacks.mk,v 1.1 2018/12/24 00:10:09 tsutsui Exp $
+
+.if !defined(VALA_HACKS_MK)
+VALA_HACKS_MK= defined
+
+.include "../../mk/compiler.mk"
+
+### On NetBSD/earmv6hf 8.0 with gcc 5.5.0, vala binaries compiled with the
+### default optiomization options produce segmentation faulting.
+### Compiling with `-fno-optimize-sibling-calls' works around.
+###
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-*arm*) && !empty(CC_VERSION:Mgcc-5.*)
+PKG_HACKS+=    optimisation
+CFLAGS+=       -fno-optimize-sibling-calls
+.endif
+
+.endif # VALA_HACKS_MK



Home | Main Index | Thread Index | Old Index