User Tools

Site Tools


wiki:development:glx-xlib-workaround

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
wiki:development:glx-xlib-workaround [2017/11/04 11:27]
ionic Don't build the full MESA suite first, use the ebuild tool directly.
wiki:development:glx-xlib-workaround [2017/11/04 11:32]
ionic And even more quotes.
Line 30: Line 30:
  
 <code> <code>
-emerge -av app-portage/gentoolkit dev-util/scons dev-python/mako+emerge -1av app-portage/gentoolkit dev-util/scons dev-python/mako
 </code> </code>
  
Line 37: Line 37:
 mkdir -p /usr/local/share/mesa-libgl-xlib mkdir -p /usr/local/share/mesa-libgl-xlib
 </code> </code>
 +
 Place the following line in a suitable place - either in your .bashrc or in the script that calls the individual application: Place the following line in a suitable place - either in your .bashrc or in the script that calls the individual application:
 <code> <code>
Line 42: Line 43:
 </code> </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> <code>
-export MESA_VERSION=$(equery -q list media-libs/mesa -F '$version'+mesa_version="$(equery -q list media-libs/mesa -F '$version')" 
-ebuild "/usr/portage/media-libs/mesa/mesa-${MESA_VERSION}.ebuild" prepare+ebuild "/usr/portage/media-libs/mesa/mesa-${mesa_version}.ebuild" prepare
 </code> </code>
  
 Now compile the library and move it over to the storage location: Now compile the library and move it over to the storage location:
 <code> <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 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> </code>
  
Line 59: Line 60:
  
 <code> <code>
-ebuild /usr/portage/media-libs/mesa/mesa-${MESA_VERSION}.ebuild clean+ebuild "/usr/portage/media-libs/mesa/mesa-${mesa_version}.ebuildclean
 </code> </code>
wiki/development/glx-xlib-workaround.txt · Last modified: 2021/10/25 21:01 by uli42