<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>61531</bug_id>
          
          <creation_ts>2004-08-24 09:52 0000</creation_ts>
          <short_desc>fbzx-1.4 won&apos;t work on PPC</short_desc>
          <delta_ts>2004-08-26 19:58:18 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>PPC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mat@esi.com.pl</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>ppc@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>mat@esi.com.pl</who>
            <bug_when>2004-08-24 09:52:49 0000</bug_when>
            <thetext>While the program compiles fine it lacks the necessary changes described in
PORTS file to work properly on PPC (and other big-endian system).

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




So I did a little patch that solved the problem for me. 
 
--------------------------------------------------- fbzx-1.4-endian_patch 
--- fbzx/Z80.h  2003-12-19 21:37:22.000000000 +0100 
+++ fbzx.new/Z80.h      2004-08-24 18:26:50.696481080 +0200 
@@ -12,7 +12,10 @@ 
 /*************************************************************/ 
 #ifndef Z80_H 
 #define Z80_H 
+#include &lt;endian.h&gt; 
+#if __BYTE_ORDER == __LITTLE_ENDIAN 
 #define LSB_FIRST 
+#endif 
                                /* Compilation options:       */ 
 /* #define DEBUG */            /* Compile debugging version  */ 
 /* #define LSB_FIRST */        /* Compile for low-endian CPU */ 
-------------------------------------------------------------------------</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mat@esi.com.pl</who>
            <bug_when>2004-08-24 09:58:25 0000</bug_when>
            <thetext>Created an attachment (id=38104)
fbzx-1.4-endian_patch
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2004-08-24 10:14:00 0000</bug_when>
            <thetext>Have you checked if this has been fixed upstream?

I only ask so that we know if we should submit the patch to them or not... =]</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mat@esi.com.pl</who>
            <bug_when>2004-08-24 10:20:09 0000</bug_when>
            <thetext>No. I didn&apos;t checked as I don&apos;t think author of fbzx considers it a bug. There
is a note in PORTS readme stating that when you compile it on big-endian
machine you should remove one #define. What I did is the extension of this
note to automate the build.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-08-26 19:58:18 0000</bug_when>
            <thetext>awesome, thanks again

gonna try to contact upstream author ...</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>38104</attachid>
            <date>2004-08-24 09:58 0000</date>
            <desc>fbzx-1.4-endian_patch</desc>
            <filename>fbzx-1.4-endian_patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGZiengvWjgwLmgJMjAwMy0xMi0xOSAyMTozNzoyMi4wMDAwMDAwMDAgKzAxMDAKKysrIGZi
engubmV3L1o4MC5oCTIwMDQtMDgtMjQgMTg6MjY6NTAuNjk2NDgxMDgwICswMjAwCkBAIC0xMiw3
ICsxMiwxMCBAQAogLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKiovDQogI2lmbmRlZiBaODBfSA0KICNkZWZpbmUgWjgwX0gNCisjaW5j
bHVkZSA8ZW5kaWFuLmg+DQorI2lmIF9fQllURV9PUkRFUiA9PSBfX0xJVFRMRV9FTkRJQU4NCiAj
ZGVmaW5lIExTQl9GSVJTVA0KKyNlbmRpZg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAvKiBDb21waWxhdGlvbiBvcHRpb25zOiAgICAgICAqLw0KIC8qICNkZWZpbmUgREVCVUcgKi8g
ICAgICAgICAgICAvKiBDb21waWxlIGRlYnVnZ2luZyB2ZXJzaW9uICAqLw0KIC8qICNkZWZpbmUg
TFNCX0ZJUlNUICovICAgICAgICAvKiBDb21waWxlIGZvciBsb3ctZW5kaWFuIENQVSAqLw0K
</data>        

          </attachment>
    </bug>

</bugzilla>