This shows you the differences between two versions of the page.
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:31] ionic 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. |
||
---|---|---|---|
Line 30: | Line 30: | ||
< | < | ||
- | emerge -av app-portage/ | + | emerge -1av app-portage/ |
</ | </ | ||
Line 37: | Line 37: | ||
mkdir -p / | mkdir -p / | ||
</ | </ | ||
+ | |||
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: | ||
< | < | ||
Line 42: | Line 43: | ||
</ | </ | ||
- | Configure portage to keep the working area that is used to compile | + | Configure portage to extract and patch the Mesa package |
< | < | ||
- | export MESA_VERSION=$(equery -q list media-libs/ | + | mesa_version="$(equery -q list media-libs/ |
- | ebuild "/ | + | ebuild "/ |
</ | </ | ||
Now compile the library and move it over to the storage location: | Now compile the library and move it over to the storage location: | ||
< | < | ||
- | cd / | + | cd "/ |
scons libgl-xlib | scons libgl-xlib | ||
- | cp build/ | + | cp -av build/ |
</ | </ | ||
Line 59: | Line 60: | ||
< | < | ||
- | ebuild / | + | ebuild / |
</ | </ |