Package: libsdl1.2
Version: 1.2.7+1.2.8cvs20041007-4.1
Severity: wishlist
Tags: patch

When building 'libsdl1.2' on ppc64/unstable with gcc-4.0,
I get the following error:

dh_gencontrol  -- -Vlibsvga1-dev=
dpkg-gencontrol: error: current build architecture ppc64 does not appear in 
package's list (alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 s390x 
sh3 sh3eb sh4 sh4eb sparc sparc64 amd64)
dh_gencontrol: command returned error code 65280
make: *** [binary-arch] Error 1

Please add support for the ppc64 architecture to debian/control.

With the attached patch 'libsdl1.2' can be compiled
on ppc64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/libsdl1.2-1.2.7+1.2.8cvs20041007/debian/control 
./debian/control
--- ../tmp-orig/libsdl1.2-1.2.7+1.2.8cvs20041007/debian/control 2005-04-13 
19:27:57.695414752 +0200
+++ ./debian/control    2005-04-13 19:28:00.470321857 +0200
@@ -4,7 +4,7 @@
 Maintainer: Debian SDL maintainers <[EMAIL PROTECTED]>
 Uploaders: Matthew Danish <[EMAIL PROTECTED]>, Zephaniah E. Hull <[EMAIL 
PROTECTED]>, Lawrence Williams <[EMAIL PROTECTED]>
 Standards-Version: 3.6.1
-Build-Depends: debhelper (>> 3.0.0), dbs, aalib1-dev, slang1-dev, xlibs-dev, 
libaudiofile-dev, libesd0-dev, xlibmesa-dev | libgl-dev, libsvga1-dev [i386], 
libarts1-dev, libartsc0-dev, libasound2-dev [alpha arm hppa i386 ia64 m68k mips 
mipsel powerpc s390 s390x sh3 sh3eb sh4 sh4eb sparc sparc64 amd64], 
type-handling (>= 0.2.1), libaudio-dev, automake1.7
+Build-Depends: debhelper (>> 3.0.0), dbs, aalib1-dev, slang1-dev, xlibs-dev, 
libaudiofile-dev, libesd0-dev, xlibmesa-dev | libgl-dev, libsvga1-dev [i386], 
libarts1-dev, libartsc0-dev, libasound2-dev [alpha arm hppa i386 ia64 m68k mips 
mipsel powerpc ppc64 s390 s390x sh3 sh3eb sh4 sh4eb sparc sparc64 amd64], 
type-handling (>= 0.2.1), libaudio-dev, automake1.7
 
 Package: libsdl1.2debian
 Architecture: any
@@ -35,7 +35,7 @@
  drivers and oss, esound, alsa, arts, and nas sound drivers.
 
 Package: libsdl1.2debian-alsa
-Architecture: alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 s390x sh3 
sh3eb sh4 sh4eb sparc sparc64 amd64
+Architecture: alpha arm hppa i386 ia64 m68k mips mipsel powerpc ppc64 s390 
s390x sh3 sh3eb sh4 sh4eb sparc sparc64 amd64
 Section: libs
 Priority: extra
 Depends: ${shlibs:Depends}
diff -urN ../tmp-orig/libsdl1.2-1.2.7+1.2.8cvs20041007/debian/control.in 
./debian/control.in
--- ../tmp-orig/libsdl1.2-1.2.7+1.2.8cvs20041007/debian/control.in      
2005-04-13 19:27:57.712403469 +0200
+++ ./debian/control.in 2005-04-13 19:26:58.436224928 +0200
@@ -35,7 +35,7 @@
  drivers and oss, esound, alsa, arts, and nas sound drivers.
 
 Package: libsdl1.2debian-alsa
-Architecture: alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 s390x sh3 
sh3eb sh4 sh4eb sparc sparc64 amd64
+Architecture: alpha arm hppa i386 ia64 m68k mips mipsel powerpc ppc64 s390 
s390x sh3 sh3eb sh4 sh4eb sparc sparc64 amd64
 Section: libs
 Priority: extra
 Depends: ${shlibs:Depends}
diff -urN 
../tmp-orig/libsdl1.2-1.2.7+1.2.8cvs20041007/debian/patches/005_gcc4_fix.diff 
./debian/patches/005_gcc4_fix.diff
--- 
../tmp-orig/libsdl1.2-1.2.7+1.2.8cvs20041007/debian/patches/005_gcc4_fix.diff   
    1970-01-01 01:00:00.000000000 +0100
+++ ./debian/patches/005_gcc4_fix.diff  2005-04-13 19:25:49.588005237 +0200
@@ -0,0 +1,21 @@
+diff -urN tmp/include/SDL_events.h 
SDL-1.2.7+1.2.8cvs20041007/include/SDL_events.h
+--- tmp/include/SDL_events.h   2004-08-20 20:57:01.000000000 +0200
++++ SDL-1.2.7+1.2.8cvs20041007/include/SDL_events.h    2005-02-09 
21:33:52.858716783 +0100
+@@ -44,7 +44,7 @@
+ #endif
+ 
+ /* Event enumerations */
+-enum { SDL_NOEVENT = 0,                       /* Unused (do not remove) */
++enum SDL_Events { SDL_NOEVENT = 0,    /* Unused (do not remove) */
+        SDL_ACTIVEEVENT,                       /* Application loses/gains 
visibility */
+        SDL_KEYDOWN,                   /* Keys pressed */
+        SDL_KEYUP,                     /* Keys released */
+@@ -78,7 +78,7 @@
+ 
+ /* Predefined event masks */
+ #define SDL_EVENTMASK(X)      (1<<(X))
+-enum {
++enum SDL_EventMasks {
+       SDL_ACTIVEEVENTMASK     = SDL_EVENTMASK(SDL_ACTIVEEVENT),
+       SDL_KEYDOWNMASK         = SDL_EVENTMASK(SDL_KEYDOWN),
+       SDL_KEYUPMASK           = SDL_EVENTMASK(SDL_KEYUP),


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

Reply via email to