Your message dated Fri, 04 Aug 2006 04:32:13 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#381248: fixed in libsdl1.2 1.2.11-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libsdl1.2
Version: 1.2.11-1
Severity: serious
Tags: patch
Justification: Policy 5.6.8

Hi!

libsdl1.2 is failing to build in powerpc [0] due to the use of PAGE_SIZE
which was dropped in powerpc (and will soon be dropped in the other arches
as well).

I've created a patch that fixes this problem.  I'm dropping the use of
PAGE_SIZE completely, in favour of sysconf(_SC_PAGESIZE), as suggested by
various developers.

I've tested this build in i386, amd64 and powerpc, and it builds fine.
Please send this patch upstream.

Thanks,
        Marga
diff -Naru libsdl1.2-1.2.11/src/video/fbcon/SDL_fbvideo.c libsdl1.2-patched/src/video/fbcon/SDL_fbvideo.c
--- libsdl1.2-1.2.11/src/video/fbcon/SDL_fbvideo.c	2006-05-17 00:16:07.000000000 -0300
+++ libsdl1.2-patched/src/video/fbcon/SDL_fbvideo.c	2006-08-02 20:46:35.748443472 -0300
@@ -547,7 +547,7 @@
 
 	/* Memory map the device, compensating for buggy PPC mmap() */
 	mapped_offset = (((long)finfo.smem_start) -
-	                (((long)finfo.smem_start)&~(PAGE_SIZE-1)));
+	                (((long)finfo.smem_start)&~(sysconf(_SC_PAGESIZE)-1)));
 	mapped_memlen = finfo.smem_len+mapped_offset;
 	mapped_mem = do_mmap(NULL, mapped_memlen,
 	                  PROT_READ|PROT_WRITE, MAP_SHARED, console_fd, 0);
diff -Naru libsdl1.2-1.2.11/src/video/ps2gs/SDL_gsyuv.c libsdl1.2-patched/src/video/ps2gs/SDL_gsyuv.c
--- libsdl1.2-1.2.11/src/video/ps2gs/SDL_gsyuv.c	2006-05-17 00:16:07.000000000 -0300
+++ libsdl1.2-patched/src/video/ps2gs/SDL_gsyuv.c	2006-08-02 20:35:18.992336121 -0300
@@ -180,7 +180,7 @@
 
 	/* Allocate a DMA area for pixel conversion */
 	bpp = this->screen->format->BytesPerPixel;
-	map_offset = (mapped_len + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1);
+	map_offset = (mapped_len + (sysconf(_SC_PAGESIZE)- 1)) & ~(sysconf(_SC_PAGESIZE) - 1);
 	hwdata->dma_len = hwdata->macroblocks * (16 * 16 + 8 * 8 + 8 * 8) +
 	                  width * height * bpp +
 	                  hwdata->macroblocks * (16 * sizeof(long long)) +

--- End Message ---
--- Begin Message ---
Source: libsdl1.2
Source-Version: 1.2.11-2

We believe that the bug you reported is fixed in the latest version of
libsdl1.2, which is due to be installed in the Debian FTP archive:

libsdl1.2-dev_1.2.11-2_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2-dev_1.2.11-2_i386.deb
libsdl1.2_1.2.11-2.diff.gz
  to pool/main/libs/libsdl1.2/libsdl1.2_1.2.11-2.diff.gz
libsdl1.2_1.2.11-2.dsc
  to pool/main/libs/libsdl1.2/libsdl1.2_1.2.11-2.dsc
libsdl1.2debian-all_1.2.11-2_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2debian-all_1.2.11-2_i386.deb
libsdl1.2debian-alsa_1.2.11-2_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2debian-alsa_1.2.11-2_i386.deb
libsdl1.2debian-arts_1.2.11-2_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2debian-arts_1.2.11-2_i386.deb
libsdl1.2debian-esd_1.2.11-2_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2debian-esd_1.2.11-2_i386.deb
libsdl1.2debian-nas_1.2.11-2_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2debian-nas_1.2.11-2_i386.deb
libsdl1.2debian-oss_1.2.11-2_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2debian-oss_1.2.11-2_i386.deb
libsdl1.2debian-udeb_1.2.11-2_i386.udeb
  to pool/main/libs/libsdl1.2/libsdl1.2debian-udeb_1.2.11-2_i386.udeb
libsdl1.2debian_1.2.11-2_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2debian_1.2.11-2_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sam Hocevar (Debian packages) <[EMAIL PROTECTED]> (supplier of updated 
libsdl1.2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri,  4 Aug 2006 12:15:55 +0200
Source: libsdl1.2
Binary: libsdl1.2debian-oss libsdl1.2debian-alsa libsdl1.2debian-arts 
libsdl1.2debian libsdl1.2-dev libsdl1.2debian-udeb libsdl1.2debian-nas 
libsdl1.2debian-esd libsdl1.2debian-all
Architecture: source i386
Version: 1.2.11-2
Distribution: unstable
Urgency: low
Maintainer: Debian SDL packages maintainers <[EMAIL PROTECTED]>
Changed-By: Sam Hocevar (Debian packages) <[EMAIL PROTECTED]>
Description: 
 libsdl1.2-dev - Simple DirectMedia Layer development files
 libsdl1.2debian - Simple DirectMedia Layer
 libsdl1.2debian-all - Simple DirectMedia Layer (with all available options)
 libsdl1.2debian-alsa - Simple DirectMedia Layer (with X11 and ALSA options)
 libsdl1.2debian-arts - Simple DirectMedia Layer (with X11 and aRts options)
 libsdl1.2debian-esd - Simple DirectMedia Layer (with X11 and esound options)
 libsdl1.2debian-nas - Simple DirectMedia Layer (with X11 and NAS options)
 libsdl1.2debian-oss - Simple DirectMedia Layer (with X11 and OSS options)
 libsdl1.2debian-udeb - Simple DirectMedia Layer (with directfb graphics and no 
sound) (udeb)
Closes: 381248
Changes: 
 libsdl1.2 (1.2.11-2) unstable; urgency=low
 .
   * debian/control:
     + Build-depend on libdirectfb-dev (>= 0.9.25.1) to make sure our binaries
       no longer depend on libdirectfb-0.9-24.
 .
   * debian/patches/016_page_size.diff:
     + New patch courtesy of Margarita Manterola. Fix an FTBFS on powerpc due
       to PAGE_SIZE being dropped (Closes: #381248).
Files: 
 700b07fe61e935da3c5ea1c5f9925fc3 1500 libs optional libsdl1.2_1.2.11-2.dsc
 058877c14d780f874ad5902fd996afa5 282486 libs optional 
libsdl1.2_1.2.11-2.diff.gz
 fb1d078ab3b6f32292b9c3df0ac4f90a 20222 libs optional 
libsdl1.2debian_1.2.11-2_i386.deb
 4cd5750ccffe5c6306e2dfd4113ac754 215558 libs optional 
libsdl1.2debian-all_1.2.11-2_i386.deb
 a35e2dfa6c8ccd9289ba8fb090467f37 208020 libs extra 
libsdl1.2debian-alsa_1.2.11-2_i386.deb
 10301524345177cfe0e275fbbffda487 208722 libs extra 
libsdl1.2debian-oss_1.2.11-2_i386.deb
 4c09947884ee61bc58d79f4c8aed19da 207044 libs extra 
libsdl1.2debian-esd_1.2.11-2_i386.deb
 e28dc9c28a90501f6db8e051c0f14ce7 207002 libs extra 
libsdl1.2debian-arts_1.2.11-2_i386.deb
 62e738f01759357c18b9b7f9944887e2 205866 libs extra 
libsdl1.2debian-nas_1.2.11-2_i386.deb
 5280292dbf3607c6e7e940e9636293a9 117124 debian-installer extra 
libsdl1.2debian-udeb_1.2.11-2_i386.udeb
 103a60ea0a2458f0b0e7b8a574d6405f 735572 libdevel optional 
libsdl1.2-dev_1.2.11-2_i386.deb
Package-Type: udeb

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

iD8DBQFE0yx5fPP1rylJn2ERAk+1AJ4p+I2qwkiAiusFPT8dtyk0/xEYEACfZrDE
d9hTVc4x0gt0/KYdJ7ufFdY=
=Nup/
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to