Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 882065 - media-libs/libplacebo-5.229.1[-vulkan] fails to build
Summary: media-libs/libplacebo-5.229.1[-vulkan] fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-20 00:10 UTC by Maciej S. Szmigiero
Modified: 2022-11-20 01:30 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej S. Szmigiero 2022-11-20 00:10:46 UTC
media-libs/libplacebo-5.229.1[-vulkan] fails to build, saying that vulkan.h is required.

This system does NOT have dev-util/vulkan-headers installed.

Quick fix to make the package build successfully in this config:
--- a/src/vulkan/meson.build
+++ b/src/vulkan/meson.build
@@ -17,7 +17,7 @@
 endif

 build_deps += vulkan_headers
-if not vulkan_headers.found()
+if vulkan_build.allowed() and not vulkan_headers.found()
   error('vulkan.h was not found on the system, nor inside ' +
         '`3rdparty/Vulkan-Headers`. Please run `git submodule update --init` ' +
         'followed by `meson --wipe`.')
Comment 1 Ionen Wolkens gentoo-dev 2022-11-20 01:10:09 UTC
That doesn't seem like a good idea, results in the library not being installed if vulkan headers are really not found and the error is bypassed.

--- filelist-before (with headers)
+++ filelist-after (with patch, without headers)
@@ -28,7 +28,4 @@
 /usr/include/libplacebo/utils/libav_internal.h
 /usr/include/libplacebo/utils/upload.h
 /usr/include/libplacebo/vulkan.h
-/usr/lib64/libplacebo.so
-/usr/lib64/libplacebo.so.229
-/usr/lib64/pkgconfig/libplacebo.pc
 /usr/share/doc/libplacebo-5.229.1/README.md.zst

Looking at src/common.h it always uses vulkan/vulkan.h so seems like it can't do without even with USE=-vulkan (figures it's not normally bundled for nothing).

Guess keeping the USE is questionable, but disabling it still allows building it as a stub and skipping vulkan-loader dep, guess I'll just make vulkan-headers a hard requirement for now.
Comment 2 Maciej S. Szmigiero 2022-11-20 01:15:18 UTC
> That doesn't seem like a good idea,
> results in the library not being installed if vulkan headers are really not found.
Right, haven't noticed the missing library previously.

> guess I'll just make vulkan-headers a hard requirement for now.
Ack.
Comment 3 Larry the Git Cow gentoo-dev 2022-11-20 01:30:30 UTC
The bug has been closed via the following commit(s):

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

commit 7b11f3a432af8a4b64f7c5c8de35594410bf46dd
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-11-20 01:16:33 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-11-20 01:29:59 +0000

    media-libs/libplacebo: always require vulkan-headers
    
    Closes: https://bugs.gentoo.org/882065
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 media-libs/libplacebo/libplacebo-5.229.1.ebuild | 3 ++-
 media-libs/libplacebo/libplacebo-9999.ebuild    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)