Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 824098 - x11-libs/libva-intel-media-driver should have a USE flag to control non-free components
Summary: x11-libs/libva-intel-media-driver should have a USE flag to control non-free ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-11-17 05:44 UTC by Matt Turner
Modified: 2021-12-02 18:01 UTC (History)
2 users (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 Matt Turner gentoo-dev 2021-11-17 05:44:13 UTC
The ENABLE_NONFREE_KERNELS CMake option controls:

> # ENABLE_NONFREE_KERNELS option permits to enable closed source EU shaders (kernels)
> # additionally to open source EU shaders and fixed function hardware.

I don't know how LICENSE should be modified for this.
Comment 1 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2021-11-22 21:36:21 UTC
The binary kernels have the following license:
/*                                                                                     
// Copyright (c) 2020 Intel Corporation                                                
//                                                                                     
// Permission is hereby granted, free of charge, to any person obtaining a             
// copy of this software and associated documentation files (the                       
// 'Software'), to deal in the Software without restriction, including                 
// without limitation the rights to use, copy, modify, merge, publish,                 
// distribute, sublicense, and/or sell copies of the Software, and to                  
// permit persons to whom the Software is furnished to do so, subject to               
// the following conditions:                                                           
//                                                                                     
// The above copyright notice and this permission notice shall be included             
// in all copies or substantial portions of the Software.                              
//                                                                                     
// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS             
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF                          
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.              
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY                
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,                
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE                   
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                              
*/

That looks like the MIT license to me so all you have to do is add "no-source-code" as done by sys-kernel/linux-firmware

If you want to disable building such kernels, maybe reusing the "redistributable" USE flag used by sys-kernel/linux-firmware is the best approach.
Comment 2 Larry the Git Cow gentoo-dev 2021-12-02 18:01:22 UTC
The bug has been closed via the following commit(s):

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

commit 333162ad6a22e3927ec455b3aac936c12680ccd1
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2021-11-23 20:13:36 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2021-12-02 18:01:15 +0000

    x11-libs/libva-intel-media-driver: Add USE=redistributable
    
    Controls whether non-free media kernels primarily used for video encoding
    support are used.
    
    Closes: https://bugs.gentoo.org/824098
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 .../libva-intel-media-driver/libva-intel-media-driver-9999.ebuild    | 5 +++--
 x11-libs/libva-intel-media-driver/metadata.xml                       | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)