From 8a7de1aa78bf532fee2e2dbf2b72e81e88f1c736 Mon Sep 17 00:00:00 2001 From: John Marino Date: Mon, 28 Jul 2014 14:10:10 +0000 Subject: [PATCH] lang/squeak: Claimed fix for PowerPC I've no way to test this, but it supposedly fixes the PowerPC build. Submitter has been notified the port will be removed due to lack of staging soon. PR: 184580 Submitted by: jrh29 (alumni.cwru.edu) Approved by: maintainer timeout (8 months) Approved by: portmgr (implicit, NO_STAGE) --- lang/squeak/Makefile | 2 +- lang/squeak/files/patch-unix_vm_sqUnixMain.c | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 lang/squeak/files/patch-unix_vm_sqUnixMain.c diff --git a/lang/squeak/Makefile b/lang/squeak/Makefile index 674b2d02ef54..073967ef830d 100644 --- a/lang/squeak/Makefile +++ b/lang/squeak/Makefile @@ -45,7 +45,7 @@ NO_STAGE= yes ################################################## DIST_SUBDIR= squeak -ONLY_FOR_ARCHS= i386 amd64 +ONLY_FOR_ARCHS= i386 amd64 powerpc MAN1= squeak.1 USE_GCC= any USE_GL= gl diff --git a/lang/squeak/files/patch-unix_vm_sqUnixMain.c b/lang/squeak/files/patch-unix_vm_sqUnixMain.c new file mode 100644 index 000000000000..269d2a0b98bb --- /dev/null +++ b/lang/squeak/files/patch-unix_vm_sqUnixMain.c @@ -0,0 +1,13 @@ +--- unix/vm/sqUnixMain.c.bak 2013-12-05 13:49:51 -0800 ++++ unix/vm/sqUnixMain.c +@@ -1334,8 +1334,8 @@ + || defined(POWERPC) || defined(__POWERPC) || defined (__POWERPC__) ) + void mtfsfi(unsigned long long fpscr) + { +- __asm__("lfd f0, %0" :: "m"(fpscr)); +- __asm__("mtfsf 0xff, f0"); ++ __asm__("lfd 0, %0" :: "m"(fpscr)); ++ __asm__("mtfsf 0xff, 0"); + } + #else + # define mtfsfi(fpscr)