The error happens because aconnect.c uses undeclared err instead of
errcode in error_handler().

Upstream fixed this in commit d0bdee7a32904145ebe38203e7c54884ab56f688.

I cherry-picked the upstream patch and attached the debdiff for stonking
(1.2.15.2-1ubuntu2).

The package builds cleanly and passes all checks.

** Description changed:

- alsa-utils 1.2.15.2-1ubuntu1 fails to build from source in the stonking
- test rebuild (test-rebuild-20260923-stonking).
+ alsa-utils 1.2.15.2-1ubuntu1 fails to build from source across all
+ architectures in stonking with:
+ 
+ aconnect.c: In function 'error_handler':
+ aconnect.c:45:13: error: 'err' undeclared (first use in this function)
+    45 |         if (err)
+       |             ^~~
+ 
+ Root Cause:
+ In seq/aconnect/aconnect.c, the error_handler() function signature takes 'int 
errcode', but line 45 checks 'if (err)' and passes 'err' to snd_strerror(). 
This branch is evaluated when SND_LIB_VERSION > 1.2.15 (libasound2-dev 1.2.16.1 
in stonking).
+ 
+ Fix:
+ Cherry-picked upstream fix commit d0bdee7a32904145ebe38203e7c54884ab56f688 by 
Jaroslav Kysela ("aconnect: fix error handler for alsa-lib <= 1.2.15"), 
replacing 'err' with 'errcode'.
+ 
+ Upstream commit:
+ 
https://github.com/alsa-project/alsa-utils/commit/d0bdee7a32904145ebe38203e7c54884ab56f688
+ 
+ --- [ Original Report ]
+ alsa-utils 1.2.15.2-1ubuntu1 fails to build from source in the stonking test 
rebuild (test-rebuild-20260923-stonking).
  
  Failing architectures: armhf arm64 ppc64el s390x riscv64 i386 amd64
  amd64v3
  
  Error:
  aconnect.c:45:13: error: 'err' undeclared (first use in this function)
  
  Build logs:
    armhf: 
https://launchpad.net/ubuntu/+archive/test-rebuild-20260923-stonking/+build/33625990/+files/buildlog_ubuntu-stonking-armhf.alsa-utils_1.2.15.2-1ubuntu1_BUILDING.txt.gz
    arm64: 
https://launchpad.net/ubuntu/+archive/test-rebuild-20260923-stonking/+build/33625989/+files/buildlog_ubuntu-stonking-arm64.alsa-utils_1.2.15.2-1ubuntu1_BUILDING.txt.gz
    ppc64el: 
https://launchpad.net/ubuntu/+archive/test-rebuild-20260923-stonking/+build/33625992/+files/buildlog_ubuntu-stonking-ppc64el.alsa-utils_1.2.15.2-1ubuntu1_BUILDING.txt.gz
    s390x: 
https://launchpad.net/ubuntu/+archive/test-rebuild-20260923-stonking/+build/33625994/+files/buildlog_ubuntu-stonking-s390x.alsa-utils_1.2.15.2-1ubuntu1_BUILDING.txt.gz
    riscv64: 
https://launchpad.net/ubuntu/+archive/test-rebuild-20260923-stonking/+build/33625993/+files/buildlog_ubuntu-stonking-riscv64.alsa-utils_1.2.15.2-1ubuntu1_BUILDING.txt.gz
    i386: 
https://launchpad.net/ubuntu/+archive/test-rebuild-20260923-stonking/+build/33625991/+files/buildlog_ubuntu-stonking-i386.alsa-utils_1.2.15.2-1ubuntu1_BUILDING.txt.gz
    amd64: 
https://launchpad.net/ubuntu/+archive/test-rebuild-20260923-stonking/+build/33625987/+files/buildlog_ubuntu-stonking-amd64.alsa-utils_1.2.15.2-1ubuntu1_BUILDING.txt.gz
    amd64v3: 
https://launchpad.net/ubuntu/+archive/test-rebuild-20260923-stonking/+build/33625988/+files/buildlog_ubuntu-stonking-amd64v3.alsa-utils_1.2.15.2-1ubuntu1_BUILDING.txt.gz
  
  Report: https://people.canonical.com/~ginggs/ftbfs-report/test-
  rebuild-20260923-stonking-stonking.html#debcrafters-packages-team

** Changed in: alsa-utils (Ubuntu)
       Status: New => Confirmed

** Patch added: "alsa-utils 1.2.15.2-1ubuntu2 debdiff for stonking"
   
https://bugs.launchpad.net/ubuntu/+source/alsa-utils/+bug/2169816/+attachment/6006913/+files/alsa-utils_1.2.15.2-1ubuntu2_stonking.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2169816

Title:
  alsa-utils 1.2.15.2-1ubuntu1 FTBFS in stonking

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-utils/+bug/2169816/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to