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
21 lines
227 B
Bash
21 lines
227 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
rm_ldconfig() {
|
|
rm -f /etc/ld.so.conf.d/hsa-rocr-dev.conf && ldconfig
|
|
}
|
|
|
|
case "$1" in
|
|
remove)
|
|
rm_ldconfig
|
|
rm /opt/rocm/include/hsa
|
|
;;
|
|
purge)
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|
|
|