freeswitch/spandsp

dpkg-buildpackage -us -uc does not work after d9681c374

xrobau opened this issue · 1 comments

One of the changes made in d9681c3 was to add this line to configure.ac:

AX_CHECK_REAL_FILE([${prefix}/lib64], libdir='${exec_prefix}/lib64')

Unfortunately, this SHOULD be ${prefix}/lib64/${host} in both cases. While it doesn't matter that much to the OS itself, all the libspandsp installers are hard-coded to be /usr/lib (which is a symlink to /usr/lib64, so that doesn't matter) but also require something to match a glob of /usr/lib/*/libspandsp

For an example, see https://github.com/freeswitch/spandsp/blob/master/debian/libspandsp3.install

This is fixed by this patch, which simply adds ${host} to both sides. xrobau/freeswitch-ubuntubuilder@7924f4a#diff-1acd998070a18f72fce00e939f0d05162806ad9af641eb0821df6c78a58b6f41

However, the end result is that it does nothing. Overriding libdir is NOT something that it should be doing, so a better idea is to remove that line totally.

on 933d40d dpkg-buildpackage -uc -us -b results to:
[...]
dh_install
dh_install: warning: Compatibility levels before 10 are deprecated (level 9 in use)
dh_install: warning: Cannot find (any matches for) "debian/tmp/usr/lib//libspandsp.so." (tried in ., debian/tmp)

dh_install: warning: libspandsp3 missing files: debian/tmp/usr/lib//libspandsp.so.
dh_install: warning: Cannot find (any matches for) "debian/tmp/usr/lib/*/libspandsp.so" (tried in ., debian/tmp)

dh_install: warning: libspandsp3-dev missing files: debian/tmp/usr/lib//libspandsp.so
dh_install: warning: Cannot find (any matches for) "debian/tmp/usr/lib/
/libspandsp.a" (tried in ., debian/tmp)

dh_install: warning: libspandsp3-dev missing files: debian/tmp/usr/lib//libspandsp.a
dh_install: warning: Cannot find (any matches for) "debian/tmp/usr/lib/
/pkgconfig/spandsp.pc" (tried in ., debian/tmp)

dh_install: warning: libspandsp3-dev missing files: debian/tmp/usr/lib/*/pkgconfig/spandsp.pc