Well, %subj%.
Reproducing:
1. download sources
2. install build dependencies
3. cd dir/with/anyfstools/sources
4. run dpkg_buildpackage
Expected behavior:
.deb packages are created normally
Current behavior:
Package build fails while "installing" it under fakeroot. Here is build log — http://launchpadlibrarian.net/40259300/buildlog_ubuntu-karmic-i386.anyfs-tools_0.85.1b~ppa1_FAILEDTOBUILD.txt.gz
>install -c -m 0644 direct_io.h /build/buildd/anyfs-tools-0.85.1b~ppa1/debian/anysurrect/usr/include/anyfs-tools
>install -c -m 0755 libanysurrect.so /build/buildd/anyfs-tools-0.85.1b~ppa1/debian/anysurrect/usr/lib
>ldconfig
>/sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied <- HERE IT FAILS
>make[1]: *** [install] Error 1
>make[1]: Leaving directory `/build/buildd/anyfs-tools-0.85.1b~ppa1/src/anysurrect'
>make: *** [install-arch] Error 2
>dpkg-buildpackage: error: /usr/bin/fakeroot debian/rules binary gave error exit status 2
I'd like to fix it myself but have no idea on how.
Unconditional ldconfig in src/anysurrect/Makefile.in is naive (install might be non-root when building a package), see e.g. http://projects.archlinux.org/svntogit/community.git/tree/anyfs-tools/repos/community-i686/PKGBUILD for a fix