public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in media-libs/openinventor/files: support-sparc.patch
@ 2008-08-10 12:10 Stefaan De Roeck (stefaan)
  0 siblings, 0 replies; only message in thread
From: Stefaan De Roeck (stefaan) @ 2008-08-10 12:10 UTC (permalink / raw
  To: gentoo-commits

stefaan     08/08/10 12:10:17

  Added:                support-sparc.patch
  Log:
  Small patch needed to support sparc (fixes #231962)
  (Portage version: 2.2_rc6/cvs/Linux 2.6.25-gentoo-r7 x86_64)

Revision  Changes    Path
1.1                  media-libs/openinventor/files/support-sparc.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/openinventor/files/support-sparc.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/openinventor/files/support-sparc.patch?rev=1.1&content-type=text/plain

Index: support-sparc.patch
===================================================================
https://bugs.gentoo.org/show_bug.cgi?id=231962

sci-physics/geant-4.9.1_p02 wants to be able to get an openinventor with
USE=openinventor.  However, on sparc we must package.use.mask this option
because openinventor will not build.  It will not build because its
architecture file (machine.h) does not know about sparc linux (or any
big-endian linux for that matter).  With the following little patch,
openinventor will build and install on sparc, and the demos all seem good.  I
do not know if everything is correct, however, because this change only matters
in a couple classes (SoInput, SoOutput), and I don't know if the demos hit
them.  No attachment because the test patch changes only one line.
===============================================
polylepis inventor # diff -u lib/database/include/machine.h-
lib/database/include/machine.h
--- lib/database/include/machine.h-     2008-07-16 12:54:21.000000000 +0000
+++ lib/database/include/machine.h      2008-07-16 12:54:34.000000000 +0000
@@ -106,7 +106,7 @@
  * SUN/BSD machine dependent setup
  */

-#if sun
+#if sun || sparc

 #define MACHINE_WORD_FORMAT    DGL_BIG_ENDIAN
 #define MACHINE_FLOAT_FORMAT   DGL_BIG_IEEE
================================================







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-10 12:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-10 12:10 [gentoo-commits] gentoo-x86 commit in media-libs/openinventor/files: support-sparc.patch Stefaan De Roeck (stefaan)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox