Files
rocm-systems/runtime/hsa-runtime/DEBIAN/prerm
T
Sean Keely f3b532b42d Fix Debian package build on CPack 3.10.
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
2020-03-20 21:35:32 -05:00

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