Skip to contentSkip to conversation

Fix libGL path in 64b Ubuntu 11.10

PATCH Applied [email protected] 2 participants 3 messages Jan 12, 2012 – Jan 17, 2012

lore
Share & tools
lore
#0 lore raw

cover Fix libGL path in 64b Ubuntu 11.10

From: Zhai Edwin <[email protected]>

From 11.10, 64b Ubuntu has a new path for libGL.so. This patch fix it. Thanks,
Edwin

The following changes since commit 19241e7e2d88406c57613180dec9e7896c6674cc:

distro-tracking: Update info for webkit-gtk, web-webkit (2012-01-11 11:01:32 +0800)

are available in the git repository at:
git://git.pokylinux.org/poky-contrib gzhai/master2
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=gzhai/master2

Zhai Edwin (1):
runqemu: Fix the wrong path of libGL.so in 64b Ubuntu 11.10

 scripts/runqemu-internal |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
#1 lore raw

PATCH 1/1 runqemu: Fix the wrong path of libGL.so in 64b Ubuntu 11.10

From: Zhai Edwin <[email protected]>

From 11.10, libGL.so is installed @ /usr/lib/x86_64-linux-gnu/ in 64b Ubuntu.

[YOCTO #1885] got fixed

---
 scripts/runqemu-internal |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
scripts/runqemu-internal +10 -1
index 2968ed9..aaf776a 100755
@@ -472,8 +472,17 @@ EOM
 # Automatically use Ubuntu system's mesa libGL, other distro can add its own path
     if grep -i ubuntu /etc/lsb-release &> /dev/null
     then
+        GL_PATH=""
+        if test -e /usr/lib/libGL.so
+        then 
+            GL_PATH="/usr/lib/libGL.so"
+        elif test -e /usr/lib/x86_64-linux-gnu/libGL.so
+        then
+            GL_PATH="/usr/lib/x86_64-linux-gnu/libGL.so"
+        fi
+
         echo "Skip nVidia's libGL on Ubuntu!"
-        GL_LD_PRELOAD="/usr/lib/libGL.so $LD_PRELOAD"
+        GL_LD_PRELOAD="$GL_PATH $LD_PRELOAD"
     fi
 fi
 
Signature · 1 line
1.7.1
Applied
#2 lore raw
In reply to [email protected]
Quoted 17 lines · On 01/12/2012 04:57 AM, [email protected] wrote:

From: Zhai Edwin<[email protected]>

Quoted 1 line

From 11.10, 64b Ubuntu has a new path for libGL.so. This patch fix it.

Thanks,
Edwin

The following changes since commit 19241e7e2d88406c57613180dec9e7896c6674cc:

   distro-tracking: Update info for webkit-gtk, web-webkit (2012-01-11 11:01:32 +0800)

are available in the git repository at:
git://git.pokylinux.org/poky-contrib gzhai/master2
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=gzhai/master2

Zhai Edwin (1):
runqemu: Fix the wrong path of libGL.so in 64b Ubuntu 11.10

Quoted 9 lines
  scripts/runqemu-internal |   11 ++++++++++-
  1 files changed, 10 insertions(+), 1 deletions(-)

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Merged into OE-Core

Thanks
Sau!