pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/perl5



Module Name:    pkgsrc
Committed By:   maya
Date:           Wed Nov 21 08:33:51 UTC 2018

Modified Files:
        pkgsrc/lang/perl5: hacks.mk

Log Message:
perl5: low cost hack for alignment issue on SunOS/sparc.
Substitute -O3 with -O2.

This is tracked upstream in https://rt.perl.org/Public/Bug/Display.html?id=133495
>From Hiroshi Hakoyama in PR pkg/53568


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/lang/perl5/hacks.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/perl5/hacks.mk
diff -u pkgsrc/lang/perl5/hacks.mk:1.20 pkgsrc/lang/perl5/hacks.mk:1.21
--- pkgsrc/lang/perl5/hacks.mk:1.20     Tue Nov 20 09:07:06 2018
+++ pkgsrc/lang/perl5/hacks.mk  Wed Nov 21 08:33:51 2018
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.20 2018/11/20 09:07:06 maya Exp $
+# $NetBSD: hacks.mk,v 1.21 2018/11/21 08:33:51 maya Exp $
 
 .if !defined(PERL5_HACKS_MK)
 PERL5_HACKS_MK=        defined
@@ -22,6 +22,13 @@ PKG_HACKS+=          m68k-codegen
 BUILDLINK_TRANSFORM+=  opt:-O[0-9]*:-Os
 .endif
 
+# Alignment fault on perl 5.28.0
+# https://rt.perl.org/Public/Bug/Display.html?id=133495
+.if ${OPSYS} == "SunOS" && !empty(MACHINE_ARCH:Msparc*)
+PKG_HACKS+=            
+BUILDLINK_TRANSFORM+=  opt:-O3:-O2
+.endif
+
 ### [Fri Jan 31 11:09:04 CST 2014 : schnoebe]
 ### [Fri Oct 28 11:53:57 EDT 2016 : dholland - extended to gcc5]
 ### gcc-[45].*.* in NetBSD/alpha causes unaligned access exception in perl.



Home | Main Index | Thread Index | Old Index