Skip to contentSkip to conversation

mesa-dri-git: remove patch that doesn't apply to 9.x

PATCH New Ross Burton 1 participant 2 messages Dec 13, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 mesa-dri-git: remove patch that doesn't apply to 9.x

---
 meta/recipes-graphics/mesa/mesa-git.inc |    2 --
 1 file changed, 2 deletions(-)
meta/recipes-graphics/mesa/mesa-git.inc +0 -2
index d558d0b..25093af 100644
@@ -9,6 +9,4 @@ SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa;protocol=git \
            file://0002-cross-compile.patch \
            "
 
-SRC_URI += "${@base_contains('DISTRO_FEATURES', 'x11', '', 'file://0004-gross-hack-to-prevent-from-install-libgl.patch', d)}"
-
 S = "${WORKDIR}/git"
Signature · 1 line
1.7.10
#1 lore raw

PATCH 2/2 mesa: bump to 9.0.1

Upgrade Mesa to 9.01, backporting a patch from master to build without needing mesa-dri-glsl-native.

Several patches have been merged upstream, so drop them.

License checksums updated as the file was re-formated.

Drop mesa-dri-glsl-native as we don't need it anymore.

Tested with Piglit's "quick" test suite, pass rate remains constant compared to 8.0.5 at 87%.

---
 meta/recipes-graphics/mesa/mesa-8.0.5.inc          |   18 -
 meta/recipes-graphics/mesa/mesa-9.0.1.inc          |   11 +
 meta/recipes-graphics/mesa/mesa-common.inc         |    1 -
 .../recipes-graphics/mesa/mesa-dri-glsl-native.inc |    7 -
 .../mesa/mesa-dri-glsl-native_8.0.5.bb             |   22 -
 meta/recipes-graphics/mesa/mesa-dri_8.0.5.bb       |    4 -
 meta/recipes-graphics/mesa/mesa-dri_9.0.1.bb       |    4 +
 .../mesa/mesa/0001-Compile-with-uclibc.patch       |   52 --
 .../mesa/mesa/0003-fix-for-x32.patch               |   50 --
 ...-gross-hack-to-prevent-from-install-libgl.patch |   29 -
 meta/recipes-graphics/mesa/mesa/cross-glsl.patch   |  673 ++++++++++++++++++++
 11 files changed, 688 insertions(+), 183 deletions(-)
 delete mode 100644 meta/recipes-graphics/mesa/mesa-8.0.5.inc
 create mode 100644 meta/recipes-graphics/mesa/mesa-9.0.1.inc
 delete mode 100644 meta/recipes-graphics/mesa/mesa-dri-glsl-native.inc
 delete mode 100644 meta/recipes-graphics/mesa/mesa-dri-glsl-native_8.0.5.bb
 delete mode 100644 meta/recipes-graphics/mesa/mesa-dri_8.0.5.bb
 create mode 100644 meta/recipes-graphics/mesa/mesa-dri_9.0.1.bb
 delete mode 100644 meta/recipes-graphics/mesa/mesa/0001-Compile-with-uclibc.patch
 delete mode 100644 meta/recipes-graphics/mesa/mesa/0003-fix-for-x32.patch
 delete mode 100644 meta/recipes-graphics/mesa/mesa/0004-gross-hack-to-prevent-from-install-libgl.patch
 create mode 100644 meta/recipes-graphics/mesa/mesa/cross-glsl.patch
meta/recipes-graphics/mesa/mesa-8.0.5.inc deleted +0 -18
deleted file mode 100644
index b39b011..0000000
@@ -1,18 +0,0 @@
-DEPENDS += "mesa-dri-glsl-native"
-
-SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2 \
-           file://0001-Compile-with-uclibc.patch \
-           file://0002-cross-compile.patch \
-           file://0003-fix-for-x32.patch \
-           "
-SRC_URI += "${@base_contains('DISTRO_FEATURES', 'x11', '', 'file://0004-gross-hack-to-prevent-from-install-libgl.patch', d)}"
-
-S = "${WORKDIR}/Mesa-${PV}"
-
-SRC_URI[md5sum] = "01305591073a76b65267f69f27d635a3"
-SRC_URI[sha256sum] = "511b8da34f8e69ed24caf422964fb7ae747f3b1d8093f6b8aa2602164a475a5e"
-
-do_configure_prepend() {
-  # We need builtin_compiler built for buildhost arch instead of target (is provided by mesa-dri-glsl-native)"
-  sed -i "s#\./builtin_compiler#${STAGING_BINDIR_NATIVE}/glsl/builtin_compiler#g" ${S}/src/glsl/Makefile
-}
meta/recipes-graphics/mesa/mesa-9.0.1.inc new file +11 -0
new file mode 100644
index 0000000..9b639da
@@ -0,0 +1,11 @@
+SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2 \
+           file://0002-cross-compile.patch \
+           file://cross-glsl.patch \
+           "
+
+SRC_URI[md5sum] = "97d6554c05ea7449398afe3a0ede7018"
+SRC_URI[sha256sum] = "57a7ba83bace3f3a7dc0929fe026ef5f0ad454234ec4ad8a3e0d31650a75db6f"
+
+LIC_FILES_CHKSUM = "file://docs/license.html;md5=012f69938d81b766472fd0d240df38a4"
+
+S = "${WORKDIR}/Mesa-${PV}"
meta/recipes-graphics/mesa/mesa-common.inc +0 -1
index 70957eb..120b2f6 100644
@@ -10,7 +10,6 @@ HOMEPAGE = "http://mesa3d.org"
 BUGTRACKER = "https://bugs.freedesktop.org"
 SECTION = "x11"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://docs/license.html;md5=03ccdc4c379c4289aecfb8892c546f67"
 
 INC_PR = "r9"
 PE = "2"
meta/recipes-graphics/mesa/mesa-dri-glsl-native.inc deleted +0 -7
deleted file mode 100644
index c8b80e8..0000000
@@ -1,7 +0,0 @@
-DESCRIPTION = "gl shader language specific build from mesa-dri"
-HOMEPAGE = "http://mesa3d.org"
-BUGTRACKER = "https://bugs.freedesktop.org"
-SECTION = "x11"
-LICENSE = "GPLv3+"
-
-DEPENDS = "makedepend-native"
meta/recipes-graphics/mesa/mesa-dri-glsl-native_8.0.5.bb deleted +0 -22
deleted file mode 100644
index 842d492..0000000
@@ -1,22 +0,0 @@
-require mesa-dri-glsl-native.inc
-
-LIC_FILES_CHKSUM = "file://glsl_parser.yy;beginline=2;endline=23;md5=a12a9c0208ee64a07ce314dfed4c81eb"
-
-SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2"
-SRC_URI[md5sum] = "01305591073a76b65267f69f27d635a3"
-SRC_URI[sha256sum] = "511b8da34f8e69ed24caf422964fb7ae747f3b1d8093f6b8aa2602164a475a5e"
-
-S = "${WORKDIR}/Mesa-${PV}/src/glsl/"
-
-inherit native
-
-# use default config for native build
-do_configure_prepend() {
-	ln -sf ${S}/../../configs/default ${S}/../../configs/current
-}
-
-do_install() {
-	install -d ${D}/${bindir}/glsl
-	install -m 755 ${S}/builtin_compiler ${D}/${bindir}/glsl/builtin_compiler
-	install -m 755 ${S}/glsl_compiler ${D}/${bindir}/glsl/glsl_compiler
-}
meta/recipes-graphics/mesa/mesa-dri_8.0.5.bb deleted +0 -4
deleted file mode 100644
index 26b56e4..0000000
@@ -1,4 +0,0 @@
-require mesa-common.inc
-require mesa-${PV}.inc
-require mesa-dri.inc
-PR = "${INC_PR}.0"
meta/recipes-graphics/mesa/mesa-dri_9.0.1.bb new file +4 -0
new file mode 100644
index 0000000..26b56e4
@@ -0,0 +1,4 @@
+require mesa-common.inc
+require mesa-${PV}.inc
+require mesa-dri.inc
+PR = "${INC_PR}.0"
meta/recipes-graphics/mesa/mesa/0001-Compile-with-uclibc.patch deleted +0 -52

52 lines not on this page · raw message

meta/recipes-graphics/mesa/mesa/0003-fix-for-x32.patch deleted +0 -50

50 lines not on this page · raw message

meta/recipes-graphics/mesa/mesa/0004-gross-hack-to-prevent-from-install-libgl.patch deleted +0 -29
deleted file mode 100644
index cf9dee2..0000000
@@ -1,29 +0,0 @@
-gross hack to prevent from install libgl
-
-This patch is not suitable for upstream. This is only needed for the 8.0.x
-branch, master (8.1.x) has a largely different build system (using automake)
-and does not need it. It is fully expected to drop the patch with the next bump
-to a stable version based on 8.1.x.
-
-Upstream-Status: Inappropriate
-
----
- src/mesa/Makefile |    2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/mesa/Makefile b/src/mesa/Makefile
-index 0e15d61..a0a2cb5 100644
---- a/src/mesa/Makefile
-+++ b/src/mesa/Makefile
-@@ -166,7 +166,7 @@ install: default $(DRICORE_INSTALL_TARGET)
- 	            else \
- 	              $(MAKE) install-osmesa || exit 1 ; \
- 	            fi ;; \
--	    dri)    $(MAKE) install-libgl install-dri || exit 1 ;; \
-+	    dri)    $(MAKE) install-dri || exit 1 ;; \
- 	    *)      $(MAKE) install-libgl || exit 1 ;; \
- 	  esac ; \
- 	done
--- 
-1.7.10.4
-
meta/recipes-graphics/mesa/mesa/cross-glsl.patch new file +673 -0

673 lines not on this page · raw message

Signature · 1 line
1.7.10