diff mbox series

widevine + arm64

Message ID IJXWUR.OUXJ6LSOIO482@t-online.de
State New
Headers show
Series widevine + arm64 | expand

Commit Message

Markus Volk May 19, 2023, 3:54 p.m. UTC
Finally there's a libwidevinecdm.so achievable for arm64. To make it 
usable by chromium/kodi it is required to patch glibc:

 From 85892fbc0d6f64f564f0d4c9514a7183ad8eb985 Mon Sep 17 00:00:00 2001
 From: alex <knaerzche@gmail.com>
Date: Sun, 17 Jul 2022 12:16:20 +0200
Subject: [PATCH] HACK: Don't check GLIBC_ABI_DT_RELR support for 
ChromeOS
 libwidevinecdm.so

Required starting with glibc 2.36
---
 elf/dl-version.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

 		  (&exception, DSO_FILENAME (map->l_name),

Comments

Ross Burton May 19, 2023, 4:11 p.m. UTC | #1
On 19 May 2023, at 16:54, Markus Volk via lists.openembedded.org <f_l_k=t-online.de@lists.openembedded.org> wrote:
> I have tested this to work on raspberrypi4-64. Is this something that should be supported in oe-core or should it be added via bbappend?

That’s pretty ugly. :)

I’m not sure I’d want to carry a patch like that in core, no.

Ross
diff mbox series

Patch

diff --git a/elf/dl-version.c b/elf/dl-version.c
index cda0889209..058394f148 100644
--- a/elf/dl-version.c
+++ b/elf/dl-version.c
@@ -373,7 +373,8 @@  _dl_check_map_versions (struct link_map *map, int 
verbose, int trace_mode)
 	if (d->d_tag == DT_NEEDED)
 	  {
 	    const char *name = strtab + d->d_un.d_val;
-	    if (strncmp (name, "libc.so.", 8) == 0)
+	    if (strncmp (name, "libc.so.", 8) == 0 &&
+	        strstr (map->l_name, "libwidevinecdm.so") == NULL)
 	      {
 		_dl_exception_create