And this is the fix:

--- libsndfile-1.0.31/debian/rules      2021-01-29 22:05:07.000000000 +0000
+++ libsndfile-1.0.31/debian/rules      2021-03-03 16:53:14.000000000 +0000
@@ -4,6 +4,11 @@
 
 DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+# Forcefully enable tests (they are disabled by default on riscv64 in Ubuntu,
+# see https://launchpad.net/bugs/1891686) because libsndfile1-dev wants to
+# install test binaries (https://launchpad.net/bugs/1917650).
+DEB_BUILD_OPTIONS := $(filter-out nocheck,$(DEB_BUILD_OPTIONS))
+
 %:
        dh $@

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libsndfile in Ubuntu.
https://bugs.launchpad.net/bugs/1917650

Title:
  FTBFS on riscv64 because tests are disabled by default

Status in libsndfile package in Ubuntu:
  Fix Committed

Bug description:
  dpkg defaults to nocheck on riscv64 (see bug #1891686), and as a
  consequence libsndfile fails to build from source, because
  libsndfile1-dev wants to install test binaries that weren't built:

  dh: command-omitted: The call to "dh_auto_test -a" was omitted due to 
"DEB_BUILD_OPTIONS=nocheck"
  dh_install: warning: Cannot find (any matches for) "tests/.libs/*" (tried in 
., debian/tmp)
  dh_install: error: missing files, aborting

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libsndfile/+bug/1917650/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to