Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922690 - dev-libs/libcec-6.0.2-r1[cubox]: fails check for TDA995x support silently and installs library with unresolved symbols
Summary: dev-libs/libcec-6.0.2-r1[cubox]: fails check for TDA995x support silently and...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 818262 824978
  Show dependency tree
 
Reported: 2024-01-22 10:31 UTC by Alfred Wingate
Modified: 2025-05-01 01:32 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 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.
Comment 2 Larry the Git Cow gentoo-dev 2025-05-01 01:26:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=002612edc8b404763cfc8913f989fd887fb485d8

commit 002612edc8b404763cfc8913f989fd887fb485d8
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2025-04-30 17:58:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-01 01:25:50 +0000

    dev-libs/libcec: remove cubox use flag
    
    These headers may have never existed in the gentoo tree, older versions just
    silently compiled causing breakage elsewhere. Now the situation has
    improved in 7.0.0 where it will fail to configure without the headers
    present atleast. But this doesn't address the fact that these headers are
    still elusive.
    
    These headers were most likely available in an android fork of the
    kernel at some time and some other related headers are in an out of tree
    module beagle-nxp-hdmi which was last updated in 2012 and was never in
    the gentoo tree.
    
    Closes: https://bugs.gentoo.org/955124
    Closes: https://bugs.gentoo.org/922690
    Closes: https://bugs.gentoo.org/818262
    Closes: https://bugs.gentoo.org/824978
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Part-of: https://github.com/gentoo/gentoo/pull/41865
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/libcec/libcec-6.0.2-r2.ebuild | 5 +++--
 dev-libs/libcec/libcec-7.0.0.ebuild    | 5 +++--
 dev-libs/libcec/metadata.xml           | 1 -
 3 files changed, 6 insertions(+), 5 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9698490a4724b78be474ae1f933476b432132623

commit 9698490a4724b78be474ae1f933476b432132623
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2025-04-30 18:05:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-01 01:25:51 +0000

    media-tv/kodi: handle removal of the cubox use flag
    
    Bug: https://bugs.gentoo.org/818262
    Bug: https://bugs.gentoo.org/922690
    Bug: https://bugs.gentoo.org/955124
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Part-of: https://github.com/gentoo/gentoo/pull/41865
    Closes: https://github.com/gentoo/gentoo/pull/41865
    Signed-off-by: Sam James <sam@gentoo.org>

 media-tv/kodi/{kodi-21.2-r3.ebuild => kodi-21.2-r4.ebuild} | 2 +-
 media-tv/kodi/kodi-21.9999.ebuild                          | 2 +-
 media-tv/kodi/kodi-9999.ebuild                             | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)