pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/ruby18-base Hack to make this package build and r...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cadca322d660
branches:  trunk
changeset: 495281:cadca322d660
user:      seb <seb%pkgsrc.org@localhost>
date:      Mon Jun 06 13:49:25 2005 +0000

description:
Hack to make this package build and run its tests on at least
NetBSD/2.0_STABLE sparc64. I bet it also fixes it for other versions
of NetBSD on the same architecture.

diffstat:

 lang/ruby18-base/hacks.mk |  21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diffs (25 lines):

diff -r 1b3e7beea6ab -r cadca322d660 lang/ruby18-base/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby18-base/hacks.mk Mon Jun 06 13:49:25 2005 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: hacks.mk,v 1.1 2005/06/06 13:49:25 seb Exp $
+
+.if !defined(RUBY18_BASE_HACKS_MK)
+RUBY18_BASE_HACKS_MK=  defined
+
+.include "../../mk/compiler.mk"
+
+### [ Sun Jun  5 10:05:39 CEST 2005 : seb ]
+### On NetBSD/sparc64, gcc optimisation, at least for version 3.3.3,
+### produces segmentation faulting miniruby binary.
+### Also note that `-O' level optimisation produces a miniruby
+### binary that loops while running the installation scripts.
+###
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
+.  if !empty(CC_VERSION:Mgcc-3.3.*)
+PKG_HACKS+=            optimisation
+BUILDLINK_TRANSFORM+=   rm:-O[0-9]*
+.  endif
+.endif
+
+.endif # RUBY18_BASE_HACKS_MK



Home | Main Index | Thread Index | Old Index