Source: solfege
Version: 3.23.4-11
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)

Dear maintainer,

solfege fails to build from source when building only binary-any and
not binary-all. From my build log on amd64:

| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
|    dh_install -a
|    dh_installdocs -a
|    dh_installchangelogs -a
|    dh_python3 -a
| E: dh_python3 dh_python3:197: no package to act on (python3-foo or one with 
${python3:Depends} in Depends)
|    dh_perl -a
|    debian/rules override_dh_link
| make[1]: Entering directory '/<<PKGBUILDDIR>>'
| dh_link
| jdupes -rl debian/solfege-doc/usr/share/doc
| 
| could not stat dir debian/solfege-doc/usr/share/doc
| No duplicates found.
| make[1]: *** [debian/rules:30: override_dh_link] Error 1
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| make: *** [debian/rules:10: binary-arch] Error 2
| dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit 
status 2

A full build log on riscv64 is also available:
https://buildd.debian.org/status/fetch.php?pkg=solfege&arch=riscv64&ver=3.23.4-11&stamp=1692931581&raw=0

The return value of jdupes changed after bookworm to no longer return
success when the given paths do not exist, which causes this failure in
binary-any builds.

A possible untested patch is:

--- a/debian/rules
+++ b/debian/rules
@@ -25,6 +25,5 @@
            iconv --from-code=iso-8859-1 --to-code=utf-8 --output=$$ifile 
$$ifile; \
        done
 
-override_dh_link:
-       dh_link
+execute_after_dh_link-indep:
        jdupes -rl debian/solfege-doc/usr/share/doc

Regards
Aurelien

Reply via email to