Not sure about .deb format, but rpmbuild will automatically add dependencies on packaged shared libraries using their sonames: <a href="http:&#x2F;&#x2F;www.rpm.org&#x2F;max-rpm&#x2F;s1-rpm-depend-auto-depend.html" rel="nofollow">http:&#x2F;&#x2F;www.rpm.org&#x2F;max-rpm&#x2F;s1-rpm-depend-auto-depend.html</a><p>If you smuggle unpackaged code onto a QA or build machine, IMHO you asked for whatever happens to you.