From c23fe2f641335d2907a1756287363aa3b9d908de Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 15 Jul 2011 20:32:40 +0200 Subject: [PATCH 1/2] Mesa: add patch which *maybe* should fix the reboot/shutdown issue Signed-off-by: Stephan Raue --- .../Mesa/patches/Mesa-7.11-443ff60-bug_39219.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/graphics/Mesa/patches/Mesa-7.11-443ff60-bug_39219.patch diff --git a/packages/graphics/Mesa/patches/Mesa-7.11-443ff60-bug_39219.patch b/packages/graphics/Mesa/patches/Mesa-7.11-443ff60-bug_39219.patch new file mode 100644 index 0000000000..7a8d2b7153 --- /dev/null +++ b/packages/graphics/Mesa/patches/Mesa-7.11-443ff60-bug_39219.patch @@ -0,0 +1,13 @@ +diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c +index bac0c9e..e7dba5a 100644 +--- a/src/glx/dri_common.c ++++ b/src/glx/dri_common.c +@@ -388,7 +388,7 @@ driFetchDrawable(struct glx_context *gc, GLXDrawable glxDrawable) + _X_HIDDEN void + driReleaseDrawables(struct glx_context *gc) + { +- struct glx_display *const priv = __glXInitialize(gc->psc->dpy); ++ const struct glx_display *priv = gc->psc->display; + __GLXDRIdrawable *pdraw; + + if (priv == NULL) From 9539ffefbcc16fc57f7b78fd006d70a1faa704bf Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 15 Jul 2011 20:33:55 +0200 Subject: [PATCH 2/2] squashfs: add patch for gzip, build with -fwhole-program Signed-off-by: Stephan Raue --- packages/toolchain/sysutils/squashfs/build | 2 ++ .../squashfs/patches/squashfs-4.2-gzip_fix.patch | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 packages/toolchain/sysutils/squashfs/patches/squashfs-4.2-gzip_fix.patch diff --git a/packages/toolchain/sysutils/squashfs/build b/packages/toolchain/sysutils/squashfs/build index a810a07d98..b023deaf4b 100755 --- a/packages/toolchain/sysutils/squashfs/build +++ b/packages/toolchain/sysutils/squashfs/build @@ -24,6 +24,8 @@ setup_toolchain host +LDFLAGS="$LDFLAGS -fwhole-program" + cd $BUILD/$1*/squashfs-tools make mksquashfs \ XZ_SUPPORT=1 \ diff --git a/packages/toolchain/sysutils/squashfs/patches/squashfs-4.2-gzip_fix.patch b/packages/toolchain/sysutils/squashfs/patches/squashfs-4.2-gzip_fix.patch new file mode 100644 index 0000000000..80260e555d --- /dev/null +++ b/packages/toolchain/sysutils/squashfs/patches/squashfs-4.2-gzip_fix.patch @@ -0,0 +1,12 @@ +diff -Naur squashfs4.2-old/squashfs-tools/compressor.c squashfs4.2-new/squashfs-tools/compressor.c +--- squashfs4.2-old/squashfs-tools/compressor.c 2011-02-11 07:49:24.000000000 -0800 ++++ squashfs4.2-new/squashfs-tools/compressor.c 2011-03-04 10:27:47.000000000 -0800 +@@ -27,7 +27,7 @@ + + #ifndef GZIP_SUPPORT + static struct compressor gzip_comp_ops = { +- NULL, NULL, NULL, NULL, NULL, NULL, ZLIB_COMPRESSION, "gzip", 0 ++ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ZLIB_COMPRESSION, "gzip", 0 + }; + #else + extern struct compressor gzip_comp_ops;