NetBSD Problem Report #23361

Received: (qmail 11345 invoked by uid 605); 3 Nov 2003 18:39:15 -0000
Message-Id: <200311031848.hA3Imuk02404@arale.act.uji.es>
Date: Mon, 3 Nov 2003 19:48:56 +0100 (CET)
From: root@arale.act.uji.es
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: jacereda@users.sourceforge.net
To: gnats-bugs@gnats.netbsd.org
Subject: support for MIPS in gforth
X-Send-Pr-Version: 3.95

>Number:         23361
>Category:       pkg
>Synopsis:       support for MIPS in gforth
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    simonb
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 03 18:40:00 +0000 2003
>Closed-Date:    Sat Feb 20 12:47:12 +0000 2010
>Last-Modified:  Sat Feb 20 12:47:12 +0000 2010
>Originator:     Jorge Acereda
>Release:        NetBSD 1.6.1_RC1
>Organization:

>Environment:


System: NetBSD arale.act.uji.es 1.6.1_RC1 NetBSD 1.6.1_RC1 (ARALE) #3: Thu Feb 27 21:40:54 CET 2003 jacereda@ps2linux:/usr/local/home/jacereda/netbsd/src/sys/arch/playstation2/compile/ARALE playstation2
Architecture: mipsel
Machine: playstation2
>Description:

	The following patch adds support to gforth for mipsel.
	Tested only on playstation2.

>How-To-Repeat:

>Fix:


cvs server: Diffing .
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/gforth/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile	2003/03/24 23:36:33	1.11
+++ Makefile	2003/11/03 18:33:57
@@ -8,7 +8,7 @@
 HOMEPAGE=		http://www.complang.tuwien.ac.at/forth/gforth/
 COMMENT=		Fast interpreter for the Forth language

-ONLY_FOR_PLATFORM=	*-*-alpha *-*-i386 *-*-m68k *-*-powerpc *-*-sparc
+ONLY_FOR_PLATFORM=	*-*-alpha *-*-i386 *-*-m68k *-*-powerpc *-*-sparc *-*-mipsel

 GNU_CONFIGURE=		YES
 # Make sure elisp will be installed even if no emacs installed.
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/lang/gforth/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo	2001/04/19 15:00:50	1.2
+++ distinfo	2003/11/03 18:33:57
@@ -5,3 +5,4 @@
 SHA1 (patch-aa) = 426205f27609f24f818837a853c974134c0d4035
 SHA1 (patch-ab) = a80fd7553acce1168931171b9c100eb25e2fa19a
 SHA1 (patch-ac) = d9155ee2d7f06b3aafeaa5fc2719948deb1c9c7e
+SHA1 (patch-ad) = 4e902e2936250abf211b0a203a8757ac457ad4f0
cvs server: Diffing patches
Index: patches/patch-ad
===================================================================
RCS file: patch-ad
diff -N patch-ad
--- /dev/null	Thu Jul 11 11:18:53 2002
+++ patch-ad	Mon Nov  3 18:33:58 2003
@@ -0,0 +1,27 @@
+--- arch/mips/machine.h.~1.10.~	Sat Sep 23 18:22:05 2000
++++ arch/mips/machine.h	Mon Oct 27 00:15:28 2003
+@@ -44,15 +44,22 @@
+ /* configure may define both on the MIPS */
+ #endif
+ 
+-#ifdef ultrix
++#if defined(ultrix) || defined(__NetBSD__)
+ #include <mips/cachectl.h>
+ #else
+ /* works on Irix */
+ #include <sys/cachectl.h>
+ #endif
+ 
+-#define FLUSH_ICACHE(addr,size) \
++
++#if defined(__NetBSD__)
++#  define FLUSH_ICACHE(addr,size) \
++			_cacheflush((char *)(addr), (int)(size), BCACHE)
++#else
++#  define FLUSH_ICACHE(addr,size) \
+ 			cacheflush((char *)(addr), (int)(size), BCACHE)
++#endif
++
+ 
+ #include "../generic/machine.h"
+ 
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->simonb 
Responsible-Changed-By: wiz 
Responsible-Changed-When: Tue Jul 6 10:50:13 UTC 2004 
Responsible-Changed-Why:  
Over to maintainer. 
State-Changed-From-To: open->feedback
State-Changed-By: asau@NetBSD.org
State-Changed-When: Fri, 19 Feb 2010 11:50:58 +0000
State-Changed-Why:
Package was updated, do you have problems with gforth 0.7.0?


From: Jorge Acereda <jacereda@gmail.com>
To: gnats-bugs@gnats.netbsd.org
Cc: 
Subject: Subject: Re: pkg/23361
Date: Sat, 20 Feb 2010 12:01:11 +0100

 I don't have the playstation at hand, I guess this can be closed for =
 now. I will reopen it if I get my hands on a mips box.
 BTW, 0.7.0 fails to build on Mac OS X/x64 becaus devel/fflang tries to =
 compile as i386 instead of x64.

State-Changed-From-To: feedback->closed
State-Changed-By: asau@NetBSD.org
State-Changed-When: Sat, 20 Feb 2010 12:47:12 +0000
State-Changed-Why:
Close as proposed by submitter.
It is better to push this upstream anyway.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.