livecd-rootfs/live-build/ubuntu-touch/hooks/80-enable-libhybris.chroot
Oliver Grawert f381ad345f Import patches-unapplied version 2.254 to ubuntu/utopic-proposed
Imported using git-ubuntu import.

Changelog parent: a40ec94d2425292687ead49eed34eb12c434787f

New changelog entries:
  * force the right alternative when the libmir*-android packages are
    installed, so that accidentially pulled in -mesa versions will not provide
    the default alternatives for them in ubuntu-touch images
  * Update hardcoded libmir*-android installations for Mir 0.8.0.
2014-10-11 12:58:34 +00:00

19 lines
963 B
Bash
Executable File

#!/bin/sh
echo "I: making libhybris the default alternatives for @DEB_HOST_MULTIARCH@_egl_conf"
update-alternatives --set @DEB_HOST_MULTIARCH@_egl_conf /usr/lib/@DEB_HOST_MULTIARCH@/libhybris-egl/ld.so.conf
if dpkg -l libmirclient8driver-android 2>/dev/null|grep -q ^ii; then
echo "I: making android the default alternatives for @DEB_HOST_MULTIARCH@_mirclient8driver_conf"
update-alternatives --set @DEB_HOST_MULTIARCH@_mirclient8driver_conf /usr/lib/@DEB_HOST_MULTIARCH@/client8driver/android/ld.so.conf
fi
if dpkg -l libmirplatform3driver-android 2>/dev/null|grep -q ^ii; then
echo "I: making android the default alternatives for @DEB_HOST_MULTIARCH@_mirplatform3driver_conf"
update-alternatives --set @DEB_HOST_MULTIARCH@_mirplatform3driver_conf /usr/lib/@DEB_HOST_MULTIARCH@/platform3driver/android/ld.so.conf
fi
# ldconfig needs to be run immediately as we're changing /etc/ld.so.conf.d/ with alternatives.
LDCONFIG_NOTRIGGER=y ldconfig