than relying on dpkg-architecture (which is in dpkg-dev) to be present in the image.ubuntu/yakkety
parent
5cb6bfe50f
commit
e76df6e4ce
@ -1,3 +1,12 @@
|
|||||||
#! /usr/bin/make -f
|
#! /usr/bin/make -f
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
|
|
||||||
|
DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
||||||
|
|
||||||
|
override_dh_install:
|
||||||
|
dh_install
|
||||||
|
find debian/livecd-rootfs -type f -print0 | \
|
||||||
|
xargs -0r grep -lZ '@DEB_HOST_MULTIARCH@' | \
|
||||||
|
xargs -0r \
|
||||||
|
sed -i 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g'
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH)
|
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
|
||||||
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
|
|
||||||
|
|
||||||
# ldconfig needs to be run immediately as we're changing /etc/ld.so.conf.d/ with alternatives.
|
# ldconfig needs to be run immediately as we're changing /etc/ld.so.conf.d/ with alternatives.
|
||||||
LDCONFIG_NOTRIGGER=y ldconfig
|
LDCONFIG_NOTRIGGER=y ldconfig
|
||||||
|
Loading…
Reference in new issue