message "${MESSAGE_COLOR}It's possible to workaround a bug when application
crashes with something like:
... xcb_xlib_unlock: Assertion \`c->xlib.lock' failed.
Just export LIBXCB_ALLOW_SLOPPY_LOCK=1${DEFAULT_COLOR}"

# Using OLD_SPELL_VERSION from UP_TRIGGERS
if [[ ${OLD_SPELL_VERSION:0:3} != ${VERSION:0:3} ]] &&
   [[ ${VERSION:0:3} == 1.2 ||
      ${VERSION:0:3} == 1.3 ||
      ${VERSION:0:3} == 1.4    ]]
then
  message "${MESSAGE_COLOR}Running fix for Bug #15104...${DEFAULT_COLOR}"
  find $INSTALL_ROOT/usr/lib -name "*.la" -exec sed -e \
  "s:-lxcb-xlib:: ; s:/usr/lib/libxcb-xlib.la::" -i \{\} \;
  find $INSTALL_ROOT/usr/lib -name "*.la" -exec sed -e \
  "s:/usr/lib/libxcb-render-util.la::" -i.libxcb-render-util.la \{\} \;
fi
