FTBFS on riscv64 because tests are disabled by default

Bug #1917650 reported by Olivier Tilloy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libsndfile (Ubuntu)
Fix Released
Medium
Olivier Tilloy

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

Revision history for this message
Olivier Tilloy (osomon) wrote :
Changed in libsndfile (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Olivier Tilloy (osomon) wrote :

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 $@

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libsndfile - 1.0.31-1ubuntu1

---------------
libsndfile (1.0.31-1ubuntu1) hirsute; urgency=medium

  * debian/rules: forcefully enable tests (they are disabled by default on
    riscv64 in Ubuntu) because libsndfile1-dev wants to install test binaries
    (LP: #1917650)

 -- Olivier Tilloy <email address hidden> Wed, 03 Mar 2021 17:53:18 +0100

Changed in libsndfile (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.