Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: ulf at uclibc.org <ulf@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/sdl
Date: Sat, 11 Aug 2007 15:09:10 -0700 (PDT)	[thread overview]
Message-ID: <20070811220910.5985FA659C@busybox.net> (raw)

Author: ulf
Date: 2007-08-11 15:09:09 -0700 (Sat, 11 Aug 2007)
New Revision: 19443

Log:
Fix mismatch in SDL patch naming convention

Added:
   trunk/buildroot/package/sdl/sdl-1.2.11-patch_PAGE_SIZE.patch

Removed:
   trunk/buildroot/package/sdl/SDL-1.2.11-patch_PAGE_SIZE.patch


Changeset:
Deleted: trunk/buildroot/package/sdl/SDL-1.2.11-patch_PAGE_SIZE.patch
===================================================================
--- trunk/buildroot/package/sdl/SDL-1.2.11-patch_PAGE_SIZE.patch	2007-08-11 22:01:13 UTC (rev 19442)
+++ trunk/buildroot/package/sdl/SDL-1.2.11-patch_PAGE_SIZE.patch	2007-08-11 22:09:09 UTC (rev 19443)
@@ -1,59 +0,0 @@
-diff -urN SDL-1.2.11.orig/src/video/fbcon/SDL_fbvideo.c SDL-1.2.11/src/video/fbcon/SDL_fbvideo.c
---- SDL-1.2.11.orig/src/video/fbcon/SDL_fbvideo.c	2006-05-17 06:16:06.000000000 +0300
-+++ SDL-1.2.11/src/video/fbcon/SDL_fbvideo.c	2007-06-24 22:19:41.000000000 +0300
-@@ -29,9 +29,17 @@
- #include <unistd.h>
- #include <sys/ioctl.h>
- #include <sys/mman.h>
--#include <asm/page.h>		/* For definition of PAGE_SIZE */
- #include <linux/vt.h>
- 
-+#if defined(linux)
-+#define HAS_MMAP_ANON
-+#include <sys/types.h>
-+#include <sys/mman.h>
-+#include <asm/page.h>   /* PAGE_SIZE */
-+#define HAS_SC_PAGESIZE /* _SC_PAGESIZE may be an enum for Linux */
-+#define HAS_GETPAGESIZE
-+#endif /* linux */
-+
- #include "SDL_video.h"
- #include "SDL_mouse.h"
- #include "../SDL_sysvideo.h"
-@@ -474,6 +482,7 @@
- 	unsigned int current_h;
- 	const char *SDL_fbdev;
- 	FILE *modesdb;
-+	int pagesize = -1;
- 
- 	/* Initialize the library */
- 	SDL_fbdev = SDL_getenv("SDL_FBDEV");
-@@ -545,9 +554,27 @@
- 		}
- 	}
- 
-+#if defined(_SC_PAGESIZE) && defined(HAS_SC_PAGESIZE)
-+	pagesize = sysconf(_SC_PAGESIZE);
-+#endif
-+#ifdef _SC_PAGE_SIZE
-+	if (pagesize == -1)
-+		pagesize = sysconf(_SC_PAGE_SIZE);
-+#endif
-+#ifdef HAS_GETPAGESIZE
-+	if (pagesize == -1)
-+		pagesize = getpagesize();
-+#endif
-+#ifdef PAGE_SIZE
-+	if (pagesize == -1)
-+		pagesize = PAGE_SIZE;
-+#endif
-+	if (pagesize == -1)
-+		pagesize = 4096;
-+
- 	/* 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)&~(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);

Copied: trunk/buildroot/package/sdl/sdl-1.2.11-patch_PAGE_SIZE.patch (from rev 19425, trunk/buildroot/package/sdl/SDL-1.2.11-patch_PAGE_SIZE.patch)
===================================================================
--- trunk/buildroot/package/sdl/sdl-1.2.11-patch_PAGE_SIZE.patch	                        (rev 0)
+++ trunk/buildroot/package/sdl/sdl-1.2.11-patch_PAGE_SIZE.patch	2007-08-11 22:09:09 UTC (rev 19443)
@@ -0,0 +1,59 @@
+diff -urN SDL-1.2.11.orig/src/video/fbcon/SDL_fbvideo.c SDL-1.2.11/src/video/fbcon/SDL_fbvideo.c
+--- SDL-1.2.11.orig/src/video/fbcon/SDL_fbvideo.c	2006-05-17 06:16:06.000000000 +0300
++++ SDL-1.2.11/src/video/fbcon/SDL_fbvideo.c	2007-06-24 22:19:41.000000000 +0300
+@@ -29,9 +29,17 @@
+ #include <unistd.h>
+ #include <sys/ioctl.h>
+ #include <sys/mman.h>
+-#include <asm/page.h>		/* For definition of PAGE_SIZE */
+ #include <linux/vt.h>
+ 
++#if defined(linux)
++#define HAS_MMAP_ANON
++#include <sys/types.h>
++#include <sys/mman.h>
++#include <asm/page.h>   /* PAGE_SIZE */
++#define HAS_SC_PAGESIZE /* _SC_PAGESIZE may be an enum for Linux */
++#define HAS_GETPAGESIZE
++#endif /* linux */
++
+ #include "SDL_video.h"
+ #include "SDL_mouse.h"
+ #include "../SDL_sysvideo.h"
+@@ -474,6 +482,7 @@
+ 	unsigned int current_h;
+ 	const char *SDL_fbdev;
+ 	FILE *modesdb;
++	int pagesize = -1;
+ 
+ 	/* Initialize the library */
+ 	SDL_fbdev = SDL_getenv("SDL_FBDEV");
+@@ -545,9 +554,27 @@
+ 		}
+ 	}
+ 
++#if defined(_SC_PAGESIZE) && defined(HAS_SC_PAGESIZE)
++	pagesize = sysconf(_SC_PAGESIZE);
++#endif
++#ifdef _SC_PAGE_SIZE
++	if (pagesize == -1)
++		pagesize = sysconf(_SC_PAGE_SIZE);
++#endif
++#ifdef HAS_GETPAGESIZE
++	if (pagesize == -1)
++		pagesize = getpagesize();
++#endif
++#ifdef PAGE_SIZE
++	if (pagesize == -1)
++		pagesize = PAGE_SIZE;
++#endif
++	if (pagesize == -1)
++		pagesize = 4096;
++
+ 	/* 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)&~(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);

             reply	other threads:[~2007-08-11 22:09 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-11 22:09 ulf at uclibc.org [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-01-22  7:51 [Buildroot] svn commit: trunk/buildroot/package/sdl ulf at uclibc.org
2009-01-11 20:24 ulf at uclibc.org
2008-03-17 16:39 jacmet at uclibc.org
2008-03-07 13:31 jacmet at uclibc.org
2008-03-14  1:05 ` Hebbar
2008-03-17 16:47   ` Peter Korsgaard
2008-03-14  2:40 ` Hebbar
2008-03-07 13:31 jacmet at uclibc.org
2008-03-07 13:31 jacmet at uclibc.org
2008-03-07 13:31 jacmet at uclibc.org
2007-11-16 15:35 vanokuten at uclibc.org
2007-11-16 12:37 vanokuten at uclibc.org
2007-09-23  9:53 ulf at uclibc.org
2007-08-12 23:31 ulf at uclibc.org
2007-08-11 21:47 ulf at uclibc.org
2007-08-11 22:46 ` Ivan Kuten
2007-07-25 17:39 ulf at uclibc.org
2007-07-25 22:39 ` Bernhard Fischer
2007-07-25 23:47   ` Ulf Samuelsson
2007-07-26  1:06     ` Rex Ashbaugh
2007-07-26  6:55       ` Ulf Samuelsson
2007-06-25 11:12 aldot at uclibc.org
2006-11-30  9:06 aldot at uclibc.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070811220910.5985FA659C@busybox.net \
    --to=ulf@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox