Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913521 - media-libs/alsa-lib-1.2.10: control.h references undeclared type (was: x11-misc/polybar-3.6.3-r3 - /.../control.h: error: snd_ump_endpoint_info_t has not been declared)
Summary: media-libs/alsa-lib-1.2.10: control.h references undeclared type (was: x11-mi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo ALSA team
URL: https://github.com/alsa-project/alsa-...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 913513
  Show dependency tree
 
Reported: 2023-09-02 18:16 UTC by Toralf Förster
Modified: 2023-09-07 14:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.66 KB, text/plain)
2023-09-02 18:16 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,54.16 KB, application/x-xz)
2023-09-02 18:16 UTC, Toralf Förster
Details
environment (environment,130.28 KB, text/plain)
2023-09-02 18:16 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,788 bytes, application/x-xz)
2023-09-02 18:16 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,20.91 KB, application/x-xz)
2023-09-02 18:16 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,34.20 KB, application/x-xz)
2023-09-02 18:16 UTC, Toralf Förster
Details
x11-misc:polybar-3.6.3-r3:20230902-144541.log (x11-misc:polybar-3.6.3-r3:20230902-144541.log,104.99 KB, text/plain)
2023-09-02 18:16 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-09-02 18:16:36 UTC
too long lines were shrinked:

[76/90] /usr/bin/x86_64-pc-linux-gnu-g++  -I/var/tmp/portage/x11-misc/polybar-3.6.3-r3/work/polybar-3.6.3/include -I/var/tmp/portage/x11-misc/polybar-3.6.3-r3/work/polybar-3.6.3_build/generated-sources -isystem /usr/include/cairo -isystem /usr/include/libpng16 -isystem /usr/include/freetype2 -isyste
[77/90] /usr/bin/x86_64-pc-linux-gnu-g++  -I/var/tmp/portage/x11-misc/polybar-3.6.3-r3/work/polybar-3.6.3/include -I/var/tmp/portage/x11-misc/polybar-3.6.3-r3/work/polybar-3.6.3_build/generated-sources -isystem /usr/include/cairo -isystem /usr/include/libpng16 -isystem /usr/include/freetype2 -isyste
FAILED: bin/CMakeFiles/poly.dir/adapters/alsa/control.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++  -I/var/tmp/portage/x11-misc/polybar-3.6.3-r3/work/polybar-3.6.3/include -I/var/tmp/portage/x11-misc/polybar-3.6.3-r3/work/polybar-3.6.3_build/generated-sources -isystem /usr/include/cairo -isystem /usr/include/libpng16 -isystem /usr/include/freetype2 -isystem /usr/i
In file included from /var/tmp/portage/x11-misc/polybar-3.6.3-r3/work/polybar-3.6.3/include/adapters/alsa/generic.hpp:37,
                 from /var/tmp/portage/x11-misc/polybar-3.6.3-r3/work/polybar-3.6.3/src/adapters/alsa/control.cpp:2:
/usr/include/alsa/control.h:417:47: error: snd_ump_endpoint_info_t has not been declared
  417 | int snd_ctl_ump_endpoint_info(snd_ctl_t *ctl, snd_ump_endpoint_info_t *info);
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_gnome_systemd-20230830-072900

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.6
Python 3.11.5
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.72.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
2)	Eclipse Temurin JDK 11.0.19_p7 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.7_p7 [openjdk-bin-17]
4)	Eclipse Temurin JDK 8.372_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-bin-8 
  [3]   openjdk-bin-11 
  [4]   openjdk-bin-17  system-vm

php cli (if any):
go version go1.21.0 linux/amd64

  HEAD of ::gentoo
commit 420ee02e72de08caa3fbc169c3a6a04f595eaf73
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 2 14:01:55 2023 +0000

    2023-09-02 14:01:54 UTC

emerge -qpvO x11-misc/polybar
[ebuild  N    ] x11-misc/polybar-3.6.3-r3  USE="alsa -curl -doc -i3wm -ipc -mpd -network -pulseaudio" PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12"
Comment 1 Toralf Förster gentoo-dev 2023-09-02 18:16:37 UTC
Created attachment 869239 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-09-02 18:16:38 UTC
Created attachment 869240 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2023-09-02 18:16:40 UTC
Created attachment 869241 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-09-02 18:16:40 UTC
Created attachment 869242 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-09-02 18:16:41 UTC
Created attachment 869243 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-09-02 18:16:42 UTC
Created attachment 869244 [details]
temp.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-09-02 18:16:43 UTC
Created attachment 869245 [details]
x11-misc:polybar-3.6.3-r3:20230902-144541.log
Comment 8 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-09-02 21:12:51 UTC
Seems like this is an alsa-lib-1.2.10 issue, the error is coming from an alsa-lib file on a type whose usage was only introduced in 1.2.10:

 ~/git/alsa-lib $ git log --oneline -S"snd_ump_endpoint_info_t"
80e20a10 ump: Add UMP 1.1 features
2aefb5c4 seq: Add UMP support
81b0cf46 control: Add UMP Endpoint and Block info query support
f47763d2 ump: Add initial support
 ~/git/alsa-lib $ git tag --contains f47763d2
v1.2.10
Comment 9 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-09-05 03:06:02 UTC
Upstream fixed with https://github.com/alsa-project/alsa-lib/commit/fcce13a6726c52882bd8b7131c61c4eba308792c, works for me
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-06 15:14:13 UTC
(In reply to John Helmert III from comment #9)
> Upstream fixed with
> https://github.com/alsa-project/alsa-lib/commit/
> fcce13a6726c52882bd8b7131c61c4eba308792c, works for me

please backport it
Comment 11 Larry the Git Cow gentoo-dev 2023-09-07 14:48:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cd39f1f240ebd443106c162bcd7c1b22a55f26c

commit 0cd39f1f240ebd443106c162bcd7c1b22a55f26c
Author:     Violet Purcell <vimproved@inventati.org>
AuthorDate: 2023-09-07 12:05:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-07 14:47:35 +0000

    media-libs/alsa-lib: Backport UMP header file detection fix
    
    Closes: https://bugs.gentoo.org/913513
    Closes: https://bugs.gentoo.org/913521
    Signed-off-by: Violet Purcell <vimproved@inventati.org>
    Closes: https://github.com/gentoo/gentoo/pull/32660
    Signed-off-by: Sam James <sam@gentoo.org>

 ...lib-1.2.10.ebuild => alsa-lib-1.2.10-r1.ebuild} |  1 +
 .../alsa-lib-1.2.10-ump-header-detection.patch     | 31 ++++++++++++++++++++++
 2 files changed, 32 insertions(+)