Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 863200 - media-libs/openal-1.22.2: Failed to emerge (pipewire.cpp:1323:43: error: ‘struct pw_buffer’ has no member named ‘requested’)
Summary: media-libs/openal-1.22.2: Failed to emerge (pipewire.cpp:1323:43: error: ‘str...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 863983 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-08-02 18:37 UTC by Serg
Modified: 2022-08-21 03:07 UTC (History)
2 users (show)

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


Attachments
emerge --info '=media-libs/openal-1.22.2::gentoo' (emerge-info.txt,18.63 KB, text/plain)
2022-08-02 18:37 UTC, Serg
Details
emerge -pqv '=media-libs/openal-1.22.2::gentoo' (emerge-pqv.txt,191 bytes, text/plain)
2022-08-02 18:38 UTC, Serg
Details
media-libs/openal-1.22.2::gentoo build.log (build.log,80.13 KB, text/x-log)
2022-08-02 18:38 UTC, Serg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Serg 2022-08-02 18:37:14 UTC
After initiating PipeWire sound server migration process I have started system upgrade and faced issue with openal compilation

Reproducible: Didn't try

Steps to Reproduce:
Regarding reproducibility - it is enough to `sudo emerge --update --newuse --deep --with-bdeps=y @world'. Haven't tried to reproduce problem on another machine
Actual Results:  
See build log

Expected Results:  
Successful emerge
Comment 1 Serg 2022-08-02 18:37:49 UTC
Created attachment 797086 [details]
emerge --info '=media-libs/openal-1.22.2::gentoo'
Comment 2 Serg 2022-08-02 18:38:13 UTC
Created attachment 797089 [details]
emerge -pqv '=media-libs/openal-1.22.2::gentoo'
Comment 3 Serg 2022-08-02 18:38:48 UTC
Created attachment 797092 [details]
media-libs/openal-1.22.2::gentoo build.log
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-02 18:54:44 UTC
1.22.2/alc/backends/pipewire.cpp
FAILED: CMakeFiles/OpenAL.dir/alc/backends/pipewire.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DALC_API="__attribute__((visibility(\"protected\")))" -DAL_ALEXT_PROTOTYPES -DAL_API="__attribute__((visibility(\"protected\")))" -DAL_BUILD_LIBRARY -DOpenAL_EXPORTS -DRESTRICT=__restrict -I/var/tmp/portage/media-libs/openal-1.22.2/work/openal-soft-1.22.2/include -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/var/tmp/portage/media-libs/openal-1.22.2/work/openal-soft-1.22.2_build-abi_x86_64.amd64 -I/var/tmp/portage/media-libs/openal-1.22.2/work/openal-soft-1.22.2 -I/var/tmp/portage/media-libs/openal-1.22.2/work/openal-soft-1.22.2/common  -O2 -pipe -march=znver2 -fPIC -Winline -Wunused -Wall -Wextra -Wshadow -Wconversion -Wcast-align -Wpedantic -Wold-style-cast -Wnon-virtual-dtor -Woverloaded-virtual -fno-math-errno -fvisibility=hidden -pthread -std=gnu++14 -MD -MT CMakeFiles/OpenAL.dir/alc/backends/pipewire.cpp.o -MF CMakeFiles/OpenAL.dir/alc/backends/pipewire.cpp.o.d -o CMakeFiles/OpenAL.dir/alc/backends/pipewire.cpp.o -c /var/tmp/portage/media-libs/openal-1.22.2/work/openal-soft-1.22.2/alc/backends/pipewire.cpp
/var/tmp/portage/media-libs/openal-1.22.2/work/openal-soft-1.22.2/alc/backends/pipewire.cpp: In member function ‘void {anonymous}::PipeWirePlayback::outputCallback()’:
/var/tmp/portage/media-libs/openal-1.22.2/work/openal-soft-1.22.2/alc/backends/pipewire.cpp:1323:43: error: ‘struct pw_buffer’ has no member named ‘requested’
 1323 |     uint length{static_cast<uint>(pw_buf->requested)};
      |                                           ^~~~~~~~~
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-06 19:43:22 UTC
*** Bug 863983 has been marked as a duplicate of this bug. ***
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-06 19:43:40 UTC
See https://bugs.gentoo.org/863983#c3 from ionen too
Comment 8 Larry the Git Cow gentoo-dev 2022-08-21 03:06:58 UTC
The bug has been closed via the following commit(s):

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

commit e50776f608e30a41a6a59d734d9a7d871d939ab4
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-21 03:00:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-21 03:06:47 +0000

    media-libs/openal: fix automagic PipeWire dependency (and others)
    
    Not sure why I didn't poke at these when I looked at sndio, but oh well.
    
    * Fix automagic issues for all backends, including newly-added PipeWire.
    
    * The PipeWire support is flaky with older versions, looks like an ifdef
    is subtly wrong, but given how fast PW is moving anyway & the changes
    in the ecosystem (see NEWS item for migration w/ USE=sound-server), we don't
    want people running an older PW anyway, so depend on a newer version.
    
    * Disable CMake unused argument warning as it's a false positive, as
    the backend options are conditionally defined based on if deps found.
    
    (Might in future want a regex / adopt the QA one for ./configure instead
    to allow conditionally ignoring specific ones instead of blanket disable.)
    
    Bug: https://bugs.gentoo.org/809314
    Closes: https://bugs.gentoo.org/828674
    Closes: https://bugs.gentoo.org/863200
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/openal/metadata.xml            |  1 +
 media-libs/openal/openal-1.22.2-r1.ebuild | 91 +++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)