[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#550172: djvulibre: Please port to sh4



Package: djvulibre
Version: 3.5.22-4
Severity: wishlist
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh@lists.debian.org


Hi,

I am now trying to run Debian on Renesas SH CPU(sh4).
http://buildd.debian-ports.org/status/architecture.php?suite=unstable&a=sh4&priority=

But djvulibre FTBFS on sh4. Because current djvulibre package doesn't
support sh4.

-----
make[3]: Entering directory
`/build/buildd-djvulibre_3.5.22-4-sh4-0W6Pgv/djvulibre-3.5.22/gui/nsdejavu'
gcc -MM -DHAVE_CONFIG_H  -DNDEBUG -Wall -O3 -Wno-non-virtual-dtor -I.
-I../.. -I../../gui/shared/res -I../../gui/npsdk    ./nsdejavu.c >
Makefile.dep
cc1: warning: command line option "-Wno-non-virtual-dtor" is valid for
C++/ObjC++ but not for C
In file included from ../../gui/npsdk/prtypes.h:58,
                from ../../gui/npsdk/npapi.h:51,
                from ./nsdejavu.c:124:
../../gui/npsdk/prcpucfg.h:650:2: error: #error "Unknown CPU architecture"
In file included from ../../gui/npsdk/npapi.h:51,
                from ./nsdejavu.c:124:
../../gui/npsdk/prtypes.h:301:2: error: #error No suitable type for
PRInt8/PRUint8
../../gui/npsdk/prtypes.h:326:2: error: #error No suitable type for
PRInt16/PRUint16
../../gui/npsdk/prtypes.h:358:2: error: #error No suitable type for
PRInt32/PRUint32
../../gui/npsdk/prtypes.h:421:2: error: #error 'sizeof(int)' not
sufficient for platform use
make[3]: *** [depend] Error 1
make[2]: *** [depend] Error 2
make[1]: *** [depend] Error 2
make: *** [build-stamp] Error 2
make[3]: Leaving directory
`/build/buildd-djvulibre_3.5.22-4-sh4-0W6Pgv/djvulibre-3.5.22/gui/nsdejavu'
make[2]: Leaving directory
`/build/buildd-djvulibre_3.5.22-4-sh4-0W6Pgv/djvulibre-3.5.22/gui'
make[1]: Leaving directory
`/build/buildd-djvulibre_3.5.22-4-sh4-0W6Pgv/djvulibre-3.5.22'
dpkg-buildpackage: error: debian/rules build gave error exit status 2
-----

I made a patch to revise to be able to build.
Would you apply it?

Best regards,
 Nobuhiro

-- 
Nobuhiro Iwamatsu
--- gui/npsdk/prcpucfg.h	2007-04-23 13:01:27.000000000 +0000
+++ gui/npsdk/prcpucfg.h.sh4	2009-10-07 06:26:55.000000000 +0000
@@ -645,6 +645,56 @@
 #define PR_BYTES_PER_WORD_LOG2   2
 #define PR_BYTES_PER_DWORD_LOG2  3
 
+#elif defined(__sh__)
+
+#ifdef __LITTLE_ENDIAN__
+#define IS_LITTLE_ENDIAN 1
+#undef  IS_BIG_ENDIAN
+#else
+#define IS_BIG_ENDIAN 1
+#undef  IS_LITTLE_ENDIAN
+#endif
+
+#define PR_BYTES_PER_BYTE   1
+#define PR_BYTES_PER_SHORT  2
+#define PR_BYTES_PER_INT    4
+#define PR_BYTES_PER_INT64  8
+#define PR_BYTES_PER_LONG   4
+#define PR_BYTES_PER_FLOAT  4
+#define PR_BYTES_PER_DOUBLE 8
+#define PR_BYTES_PER_WORD   4
+#define PR_BYTES_PER_DWORD  8
+
+#define PR_BITS_PER_BYTE    8
+#define PR_BITS_PER_SHORT   16
+#define PR_BITS_PER_INT     32
+#define PR_BITS_PER_INT64   64
+#define PR_BITS_PER_LONG    32
+#define PR_BITS_PER_FLOAT   32
+#define PR_BITS_PER_DOUBLE  64
+#define PR_BITS_PER_WORD    32
+
+#define PR_BITS_PER_BYTE_LOG2   3
+#define PR_BITS_PER_SHORT_LOG2  4
+#define PR_BITS_PER_INT_LOG2    5
+#define PR_BITS_PER_INT64_LOG2  6
+#define PR_BITS_PER_LONG_LOG2   5
+#define PR_BITS_PER_FLOAT_LOG2  5
+#define PR_BITS_PER_DOUBLE_LOG2 6
+#define PR_BITS_PER_WORD_LOG2   5
+
+#define PR_ALIGN_OF_SHORT   2
+#define PR_ALIGN_OF_INT     4
+#define PR_ALIGN_OF_LONG    4
+#define PR_ALIGN_OF_INT64   8
+#define PR_ALIGN_OF_FLOAT   4
+#define PR_ALIGN_OF_DOUBLE  8
+#define PR_ALIGN_OF_POINTER 4
+#define PR_ALIGN_OF_WORD    4
+
+#define PR_BYTES_PER_WORD_LOG2   2
+#define PR_BYTES_PER_DWORD_LOG2  3
+
 #else
 
 #error "Unknown CPU architecture"

Attachment: djvulibre_3.5.22-4_sh4.build.gz
Description: GNU Zip compressed data


Reply to: