Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 710602 - [ace overlay] media-video/pipewire-0.3.0 missing dependency on vulkan
Summary: [ace overlay] media-video/pipewire-0.3.0 missing dependency on vulkan
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexander Olofsson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-23 19:46 UTC by Amel Hodzic
Modified: 2020-02-24 19:23 UTC (History)
2 users (show)

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


Attachments
pipewire-0.3.0-vulkan.patch (file_710602.txt,420 bytes, patch)
2020-02-24 06:25 UTC, Amel Hodzic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Amel Hodzic 2020-02-23 19:46:42 UTC
The media-video/pipewire-0.3.0 fails to build while looking for run-time dependency vulkan.

Run-time dependency vulkan found: NO (tried pkgconfig and system)
                                                                                                                       
spa/meson.build:34:4: ERROR: Dependency "vulkan" not found, tried pkgconfig and system
                                                           
A full log can be found at /var/tmp/portage/media-video/pipewire-0.3.0/work/pipewire-0.3.0-build/meson-logs/meson-log.txt
 * ERROR: media-video/pipewire-0.3.0::ace failed (configure phase):
 *   (no error message)                                 
 *                                      
 * Call stack:                  
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 2165:  Called meson_src_configure
 *   environment, line 1276:  Called die                                                                               
 * The specific snippet of code:                                                                                       
 *       tc-env_build "$@" || die                                                                                      
 *                                                                                                                     
 * If you need support, post the output of `emerge --info '=media-video/pipewire-0.3.0::ace'`,
 * the complete build log and the output of `emerge -pqv '=media-video/pipewire-0.3.0::ace'`.
 * The complete build log is located at '/var/tmp/portage/media-video/pipewire-0.3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/pipewire-0.3.0/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/pipewire-0.3.0/work/pipewire-0.3.0'
 * S: '/var/tmp/portage/media-video/pipewire-0.3.0/work/pipewire-0.3.0'




Reproducible: Always
Comment 1 Andreas Sturmlechner gentoo-dev 2020-02-23 21:35:32 UTC
Missing dependency?? This isn't even packaged in gentoo.git.
Comment 2 Amel Hodzic 2020-02-24 01:19:16 UTC
I presume there should be a way to disable that feature before compiling.  As of right now, that error is displayed when trying to upgrade from pipewire-0.2.0 to 0.3.0.
Comment 3 Amel Hodzic 2020-02-24 01:23:09 UTC
The source shows that the "vulkan" option passed to meson defaults to "true".  Should be simple enough to resolve this.  Sorry about the misnomer of this bug.
Comment 4 Amel Hodzic 2020-02-24 01:25:26 UTC
The specific code (config option) I was talking about is at https://github.com/PipeWire/pipewire/blob/master/meson_options.txt#L101


option('vulkan',
       description: 'Enable vulkan spa plugin integration',
       type: 'boolean',
       value: true)

Although, maybe it's not a misnomer, since the error indicates that it's a run-time dep :p
Comment 5 Amel Hodzic 2020-02-24 06:25:11 UTC
Created attachment 615436 [details, diff]
pipewire-0.3.0-vulkan.patch
Comment 6 Amel Hodzic 2020-02-24 06:38:45 UTC
I've tested the patch; works for me.
Comment 7 Alexander Olofsson 2020-02-24 19:06:37 UTC
Huh, apparently all my machines have Vulkan installed at this point.

I added a USE-flag for it, and put dev-util/vulkan-headers as a dep on that flag, as that's what I assume that what's being looked for in compiling the SPA plugin.
I'll have another look when I'm at a proper machine, but hopefully that should be enough for fixing this issue.
Comment 8 Alexander Olofsson 2020-02-24 19:23:20 UTC
Actually, with a bit of testing and some SSH, it turns out you need both the loader and the headers for Vulkan support. Updated the ebuild, should be correct now.

Might need a redo of flags to separate SPA and lib features, but I'm definitely not awake enough for a few more days to reason about that.