[X2Go-Commits] [[X2Go Wiki]] page changed: wiki:development:glx-xlib-workaround

wiki-admin at x2go.org wiki-admin at x2go.org
Sat Nov 4 12:31:51 CET 2017


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2017/11/04 11:31
Browser     : Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0
IP-Address  : 178.162.222.163
Hostname    : 178.162.222.163.adsl.inet-telecom.org
Old Revision: https://wiki.x2go.org/doku.php/wiki:development:glx-xlib-workaround?rev=1509794890
New Revision: https://wiki.x2go.org/doku.php/wiki:development:glx-xlib-workaround
Edit Summary: More quotes, don't export MESA_VERSION variable - child processes don't use that. Rename it to a lower-case version. Use -av while running cp.
User        : ionic

@@ -35,28 +35,29 @@
  Create a place to store the library - adapt this path to your liking.
  <code>
  mkdir -p /usr/local/share/mesa-libgl-xlib
  </code>
+ 
  Place the following line in a suitable place - either in your .bashrc or in the script that calls the individual application:
  <code>
  export LD_LIBRARY_PATH=/usr/local/share/mesa-libgl-xlib/:${LD_LIBRARY_PATH}
 
</code>
  
- Configure portage to keep the working area that is used to compile the Mesa package. Before doing so, ensure that the USE flags for media-libs/mesa are configured to your liking.
+ Configure portage to extract and patch the Mesa package into a known location. Before doing so, ensure that the USE flags for media-libs/mesa are configured to your liking.
  
  <code>
- export MESA_VERSION=$(equery -q list media-libs/mesa -F '$version')
- ebuild "/usr/portage/media-libs/mesa/mesa-${MESA_VERSION}.ebuild" prepare
+ mesa_version="$(equery -q list media-libs/mesa -F '$version')"
+ ebuild "/usr/portage/media-libs/mesa/mesa-${mesa_version}.ebuild" prepare
  </code>
  
  Now compile the library and move it over to the storage location:
  <code>
- cd /var/tmp/portage/media-libs/mesa-${MESA_VERSION}/work/mesa-${MESA_VERSION}
+ cd "/var/tmp/portage/media-libs/mesa-${mesa_version}/work/mesa-${mesa_version}"
  scons libgl-xlib
- cp build/linux-x86_64-debug/gallium/targets/libgl-xlib/*
/usr/local/share/mesa-libgl-xlib/
+ cp -av build/linux-x86_64-debug/gallium/targets/libgl-xlib/* /usr/local/share/mesa-libgl-xlib/
  </code>
  
  Cleanup:
  
  <code>
- ebuild /usr/portage/media-libs/mesa/mesa-${MESA_VERSION}.ebuild clean
+ ebuild /usr/portage/media-libs/mesa/mesa-${mesa_version}.ebuild clean
  </code>


-- 
This mail was generated by DokuWiki at
https://wiki.x2go.org/



More information about the x2go-commits mailing list