If the distribution is based on Debian/Ubuntu, dkms should not make any calls to rpm.
There are currently unguarded calls in setup_kernels_arches and do_uninstall.
There is an unwanted side effect of creating an empty rpmdb in /.rpmdb/ or /root/.rpmdb/ on Debian and derivatives when performing rpm queries and rpm is installed.