Bug#499248: CPU 64/32 bit detection missing for powerpc

2008-09-19 Thread Sylvestre Ledru
Le jeudi 18 septembre 2008 à 23:42 -0300, Rogério Brito a écrit :
> Hi, Michel.
> 
> On Sep 17 2008, Michel Dänzer wrote:
> > The attached patch adds the missing CPU detection for powerpc. This
> > allows worldwind to run.
> 
> I don't know what such package does, but I'll chime in anyway. :-)
It aims to provide a library to display planets (our mainly) and to be
able to add some layers, info, etc on it.
It is based on JoGL (Java Open GL).

> > @@ -56,6 +56,7 @@ public class CPU {
> > +(os.startsWith("linux") && cpu.equals("ppc")) ||
> > @@ -67,6 +68,7 @@ public class CPU {
> > +   (os.startsWith("linux") && cpu.equals("ppc64")) ||
> 
> Are all those hardcoded things really necessary? (I understand that this
> may not be a question intended to you, but left as a food for thought).
I don't think they are necessary. I could remove them...

> What about the FreeBSD ports on other machines? What about NetBSD?
> Having a kilometric list doesn't scale, of course... :-( But as a quick
> fix, it seems appropriate, of course.
I think the purpose of this is "we support these platforms and we do not
want to have to deal with others". ;)

Sylvestre





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#499248: CPU 64/32 bit detection missing for powerpc

2008-09-18 Thread Rogério Brito
Hi, Michel.

On Sep 17 2008, Michel Dänzer wrote:
> The attached patch adds the missing CPU detection for powerpc. This
> allows worldwind to run.

I don't know what such package does, but I'll chime in anyway. :-)

> @@ -56,6 +56,7 @@ public class CPU {
> +(os.startsWith("linux") && cpu.equals("ppc")) ||
> @@ -67,6 +68,7 @@ public class CPU {
> +   (os.startsWith("linux") && cpu.equals("ppc64")) ||

Are all those hardcoded things really necessary? (I understand that this
may not be a question intended to you, but left as a food for thought).

What about the FreeBSD ports on other machines? What about NetBSD?
Having a kilometric list doesn't scale, of course... :-( But as a quick
fix, it seems appropriate, of course.


Regards, Rogério Brito.

-- 
Rogério Brito : [EMAIL PROTECTED],ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#499248: CPU 64/32 bit detection missing for powerpc

2008-09-17 Thread Michel Dänzer
Package: libjogl-java
Version: 1.1.1-1
Severity: important
Tags: patch

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


The attached patch adds the missing CPU detection for powerpc. This allows
worldwind to run.


- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (102, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.26.5
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libjogl-java depends on:
ii  antlr 2.7.7-6language tool for constructing rec
ii  libjogl-jni   1.1.1-1Java bindings for OpenGL API (java
ii  openjdk-6-jre [java2-runtime] 6b11-7 OpenJDK Java runtime, using Hotspo

libjogl-java recommends no packages.

Versions of packages libjogl-java suggests:
pn  libjogl-java-doc   (no description available)

- -- no debconf information

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFI0MmdWoGvjmrbsgARAsfFAJwI3nKAFZuw7c3biI4ZpugXDkmqlQCfZTrd
esjzKLgIJe1j7OV5cicADCU=
=7W39
-END PGP SIGNATURE-
diff -up -ru libjogl-java-1.1.1.orig/gluegen/src/java/com/sun/gluegen/runtime/CPU.java libjogl-java-1.1.1/gluegen/src/java/com/sun/gluegen/runtime/CPU.java
--- libjogl-java-1.1.1.orig/gluegen/src/java/com/sun/gluegen/runtime/CPU.java	2008-02-23 06:46:44.0 +0100
+++ libjogl-java-1.1.1/gluegen/src/java/com/sun/gluegen/runtime/CPU.java	2008-09-17 10:09:58.0 +0200
@@ -56,6 +56,7 @@ public class CPU {
 if ((os.startsWith("windows") && cpu.equals("x86")) ||
 (os.startsWith("linux") && cpu.equals("i386")) ||
 (os.startsWith("linux") && cpu.equals("x86")) ||
+(os.startsWith("linux") && cpu.equals("ppc")) ||
 (os.startsWith("mac os") && cpu.equals("ppc")) ||
 (os.startsWith("mac os") && cpu.equals("i386")) ||
 (os.startsWith("sunos") && cpu.equals("sparc")) ||
@@ -67,6 +68,7 @@ public class CPU {
(os.startsWith("linux") && cpu.equals("amd64")) ||
(os.startsWith("linux") && cpu.equals("x86_64")) ||
(os.startsWith("linux") && cpu.equals("ia64")) ||
+   (os.startsWith("linux") && cpu.equals("ppc64")) ||
(os.startsWith("mac os") && cpu.equals("x86_64")) ||
(os.startsWith("sunos") && cpu.equals("sparcv9")) ||
(os.startsWith("sunos") && cpu.equals("amd64"))) {