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

Bug 922690

Summary: dev-libs/libcec-6.0.2-r1[cubox]: fails check for TDA995x support silently and installs library with unresolved symbols
Product: Gentoo Linux Reporter: Alfred Wingate <parona>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: CONFIRMED ---    
Severity: normal CC: leonchik1976
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 818262, 824978    

Description Alfred Wingate 2024-01-22 10:31:42 UTC
$ objdump -T --demangle /usr/lib64/libcec.so.6.0.2 | grep TDA995x
0000000000000000      D  *UND*  0000000000000000  Base        CEC::CTDA995xCECAdapterDetection::FindAdapter()
0000000000000000      D  *UND*  0000000000000000  Base        CEC::CTDA995xCECAdapterCommunication::CTDA995xCECAdapterCommunication(CEC::IAdapterCommunicationCallback*)

libcec adds the functions to the interface if HAVE_TDA995X_API is defined, but does a separate check for headers (which fails) for building the implemented functions.

https://github.com/Pulse-Eight/libcec/blob/master/src/libcec/adapter/TDA995x/TDA995xCECAdapterDetection.cpp#L37
https://github.com/Pulse-Eight/libcec/blob/master/src/libcec/cmake/CheckPlatformSupport.cmake#L137

This then leads to failed builds elsewhere such as with kodi.

I don't have a good idea where these headers are from. I'm only seeing that android's fork of the kernel had tda998x_ioctl.h at some point.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-22 10:36:09 UTC
My guess is linux-headers installed it once upon a time and it got dropped.