]> git.ipfire.org Git - thirdparty/asterisk.git/commit
build: Fix deb build issues with fakeroot
authorWalter Doekes <walter+github@wjd.nu>
Tue, 28 Mar 2017 18:01:16 +0000 (20:01 +0200)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 30 Mar 2017 22:10:13 +0000 (17:10 -0500)
commite6087296c3c0d3f200f157ec6e1753f09f5d11c3
tree1373734bd4beeb2bed5e00fd3bc82f738ae5b690
parentb3fe94e4cac8b6f871e3873b529c62ca54c2600c
build: Fix deb build issues with fakeroot

If DESTDIR is set, don't call ldconfig. Assume that DESTDIR is used to
create a binary archive. The ldconfig call should be delegated to the
archive postinst script. This fixes the case where fakeroot wraps 'make
install' causing $EUID to be 0 even though it doesn't have permission to
call ldconfig.

The previous logic in configure.ac to detect and correct libdir
has been removed as it was not completely accurate.  CentOS 64-bit
users should again specifiy --libdir=/usr/lib64 when configuring
to prevent install to /usr/lib.

Updated Makefile:check-old-libdir to check for orphans in
lib64 when installing to lib as well as orphans in lib when installing
to lib64.

Updated Makefile and main/Makefile uninstall targets to remove the
orphans using the new logic.

ASTERISK-26705

Change-Id: I51739d4a03e60bff38be719b8d2ead0007afdd51
Makefile
configure
configure.ac
main/Makefile