Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 607140

Summary: media-libs/vulkan-loader-1.0.39.0 ships with a broken deps in ebuild, fails to work with LTO
Product: Gentoo Linux Reporter: Amit Prakash Ambasta <amit.prakash.ambasta>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alexander, kajanos
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: vulkan-loader-1.0.39.0.ebuild
build.log

Description Amit Prakash Ambasta 2017-01-25 07:38:07 UTC
Created attachment 461322 [details]
vulkan-loader-1.0.39.0.ebuild

Hi,

Currently vulkan-loader ships with an ebuild that 

a) fails to specify wayland as an optional or explicit dependency 
b) fails to build with -flto=thin enabled

The first issue can be resolved by specifying either dev-libs/wayland as a dependency, or passing -DBUILD_WSI_WAYLAND_SUPPORT=OFF to mycmakeargs or passing -DBUILD_WSI_WAYLAND_SUPPORT=$(usex SOME_USEFLAG_FOR_WAYLAND) to my cmakeargs

Additionally, 

	dosym libvulkan.so.1.* /usr/$(get_libdir)/libvulkan.so.1
	dosym libvulkan.so.1.* /usr/$(get_libdir)/libvulkan.so

uses wildcard arguments to dosym which also ends up capturing bytecode files generated by -flto=thin as libvulkan.so.1.0.33.thinlto.bc 

I've attached an updated ebuild to handle both the issues
Comment 1 Michal Jakubowski 2017-01-25 07:43:04 UTC
Created attachment 461324 [details]
build.log

I can confirm, build log in attachment.
Comment 2 Matt Turner gentoo-dev 2017-01-25 23:18:56 UTC
You're reporting two different problems:

> a) fails to specify wayland as an optional or explicit dependency 
> b) fails to build with -flto=thin enabled

You already filed (b) as bug 600070. Someone else filed (a) as bug 607154 after this was filed. I'm going to mark this as a duplicate of (b) and we can handle the two problems in their separate bug reports.

*** This bug has been marked as a duplicate of bug 600070 ***