f3b532b42d
CPack now incorrectly adds two copies of directory symlinks when building Debian packages. This causes dpkg to see a file conflict and fail installing. The correct long term solution is to remove the symlink and use a flat directory structure. This patch adds the symlink in the post install script as a workaround until we can switch to flat layout. Change-Id: I879b6cbc2661c19df3db639cb42fba0972fddb93
22 lines
359 B
Plaintext
22 lines
359 B
Plaintext
#/bin/bash
|
|
|
|
set -e
|
|
|
|
do_ldconfig() {
|
|
echo /opt/rocm/hsa/lib > /etc/ld.so.conf.d/hsa-rocr-dev.conf && ldconfig
|
|
}
|
|
|
|
case "$1" in
|
|
configure)
|
|
do_ldconfig
|
|
mkdir -p /opt/rocm/include
|
|
ln -s ../hsa/include/hsa /opt/rocm/include/hsa
|
|
;;
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
echo "$1"
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|