diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-graphics/mesa/qemugl_git.bb | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/meta/recipes-graphics/mesa/qemugl_git.bb b/meta/recipes-graphics/mesa/qemugl_git.bb index 378aa65502..32980d319d 100644 --- a/meta/recipes-graphics/mesa/qemugl_git.bb +++ b/meta/recipes-graphics/mesa/qemugl_git.bb | |||
@@ -19,7 +19,7 @@ S = "${WORKDIR}/git" | |||
19 | SRCREV = "d888bbc723c00d197d34a39b5b7448660ec1b1c0" | 19 | SRCREV = "d888bbc723c00d197d34a39b5b7448660ec1b1c0" |
20 | 20 | ||
21 | PV = "0.0+git${SRCPV}" | 21 | PV = "0.0+git${SRCPV}" |
22 | PR = "r10" | 22 | PR = "r11" |
23 | 23 | ||
24 | DEFAULT_PREFERENCE = "-1" | 24 | DEFAULT_PREFERENCE = "-1" |
25 | 25 | ||
@@ -34,11 +34,17 @@ do_install () { | |||
34 | fi | 34 | fi |
35 | } | 35 | } |
36 | 36 | ||
37 | # This cannot be converted to run at pacakge install time, because | ||
38 | # it depends on being run after the libgl1 package is installed, | ||
39 | # and RPM cannot guarantee the order of pacakge insallation. | ||
37 | pkg_postinst_${PN} () { | 40 | pkg_postinst_${PN} () { |
38 | if [ "${PN}" != "qemugl-nativesdk" ]; then | 41 | #!/bin/sh -e |
39 | rm -f $D${libdir}/libGL.so.1.2 | 42 | if [ x"$D" = "x" ]; then |
40 | ln -s libGL-qemu.so.1.2 $D${libdir}/libGL.so.1.2 | 43 | rm -f ${libdir}/libGL.so.1.2 |
41 | fi | 44 | ln -s libGL-qemu.so.1.2 ${libdir}/libGL.so.1.2 |
45 | else | ||
46 | exit 1 | ||
47 | fi | ||
42 | } | 48 | } |
43 | 49 | ||
44 | BBCLASSEXTEND = "nativesdk" | 50 | BBCLASSEXTEND = "nativesdk" |