From 3e46c56693e9e9e4243a52c0dd77c9cf8efdaed0 Mon Sep 17 00:00:00 2001 From: Boyuan Yang Date: Aug 22 2021 05:13:25 +0000 Subject: Alien/Package/Deb.pm: Do not fail when dh_usrlocal complains When dh_usrlocal returns nonzero, continue and print a warning information. This allows the generated deb package to install files under /usr/local/. --- diff --git a/Alien/Package/Deb.pm b/Alien/Package/Deb.pm index 0c568da..4155d14 100644 --- a/Alien/Package/Deb.pm +++ b/Alien/Package/Deb.pm @@ -496,6 +496,9 @@ override_dh_strip: # This has been known to break on some wacky binaries. # dh_strip +override_dh_usrlocal: + -dh_usrlocal || printf "Your package seems to be installing files into /usr/local/, which could be buggy. Will continue anyway.\\n" + override_dh_fixperms: $fixpermscomment dh_fixperms