All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/kodi: fix Formatting of non-void pointers is disallowed
@ 2022-11-30  1:03 James Hilliard
  0 siblings, 0 replies; 3+ messages in thread
From: James Hilliard @ 2022-11-30  1:03 UTC (permalink / raw)
  To: buildroot; +Cc: Bernd Kuhls, James Hilliard

Backport a patch from upstream.

Fixes:
/home/buildroot/buildroot/output/per-package/kodi/host/x86_64-buildroot-linux-gnu/sysroot/usr/include/fmt/core.h:1751:17: error: static assertion failed: Formatting of non-void pointers is disallowed.
 1751 |   static_assert(formattable_pointer,
      |                 ^~~~~~~~~~~~~~~~~~~

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 ...char-as-formatting-of-non-void-point.patch | 53 +++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 package/kodi/0005-GLUtils-cast-as-char-as-formatting-of-non-void-point.patch

diff --git a/package/kodi/0005-GLUtils-cast-as-char-as-formatting-of-non-void-point.patch b/package/kodi/0005-GLUtils-cast-as-char-as-formatting-of-non-void-point.patch
new file mode 100644
index 0000000000..1ce106f03a
--- /dev/null
+++ b/package/kodi/0005-GLUtils-cast-as-char-as-formatting-of-non-void-point.patch
@@ -0,0 +1,53 @@
+From 44b30c116682968bacf8aec566fc9c193026ecc9 Mon Sep 17 00:00:00 2001
+From: Rudi Heitbaum <rudi@heitbaum.com>
+Date: Wed, 6 Jul 2022 22:48:35 +1000
+Subject: [PATCH] GLUtils: cast as char as formatting of non-void pointers is
+ disallowed
+
+Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
+[james.hilliard1@gmail.com: backport from upstream commit
+44b30c116682968bacf8aec566fc9c193026ecc9]
+---
+ xbmc/utils/GLUtils.cpp | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/xbmc/utils/GLUtils.cpp b/xbmc/utils/GLUtils.cpp
+index 1ef804709f..c36dcf6a20 100644
+--- a/xbmc/utils/GLUtils.cpp
++++ b/xbmc/utils/GLUtils.cpp
+@@ -148,27 +148,27 @@ void _VerifyGLState(const char* szfile, const char* szfunction, int lineno)
+ void LogGraphicsInfo()
+ {
+ #if defined(HAS_GL) || defined(HAS_GLES)
+-  const GLubyte *s;
++  const char* s;
+ 
+-  s = glGetString(GL_VENDOR);
++  s = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
+   if (s)
+     CLog::Log(LOGINFO, "GL_VENDOR = %s", s);
+   else
+     CLog::Log(LOGINFO, "GL_VENDOR = NULL");
+ 
+-  s = glGetString(GL_RENDERER);
++  s = reinterpret_cast<const char*>(glGetString(GL_RENDERER));
+   if (s)
+     CLog::Log(LOGINFO, "GL_RENDERER = %s", s);
+   else
+     CLog::Log(LOGINFO, "GL_RENDERER = NULL");
+ 
+-  s = glGetString(GL_VERSION);
++  s = reinterpret_cast<const char*>(glGetString(GL_VERSION));
+   if (s)
+     CLog::Log(LOGINFO, "GL_VERSION = %s", s);
+   else
+     CLog::Log(LOGINFO, "GL_VERSION = NULL");
+ 
+-  s = glGetString(GL_SHADING_LANGUAGE_VERSION);
++  s = reinterpret_cast<const char*>(glGetString(GL_SHADING_LANGUAGE_VERSION));
+   if (s)
+     CLog::Log(LOGINFO, "GL_SHADING_LANGUAGE_VERSION = %s", s);
+   else
+-- 
+2.34.1
+
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/kodi: fix Formatting of non-void pointers is disallowed
  2022-11-30  6:24 ` Bernd Kuhls
@ 2022-12-01 20:50   ` Peter Korsgaard
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-12-01 20:50 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot

>>>>> "Bernd" == Bernd Kuhls <bernd.kuhls@t-online.de> writes:

 > Am Tue, 29 Nov 2022 18:03:06 -0700 schrieb James Hilliard:
 >> Backport a patch from upstream.
 >> 
 >> Fixes:
 >> /home/buildroot/buildroot/output/per-package/kodi/host/x86_64-buildroot-
 > linux-gnu/sysroot/usr/include/fmt/core.h:1751:17:
 >> error: static assertion failed: Formatting of non-void pointers is
 >> disallowed.
 >> 1751 |   static_assert(formattable_pointer,
 >> |                 ^~~~~~~~~~~~~~~~~~~
 >> 
 >> Signed-off-by: James Hilliard
 >> <james.hilliard1@gmail.com>

 > Hi James,

 > this is a duplicate of http://patchwork.ozlabs.org/project/buildroot/
 > patch/20221002144629.2105385-2-bernd.kuhls@t-online.de/

Applied Bernd's patch and marked this as superseeded, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/kodi: fix Formatting of non-void pointers is disallowed
       [not found] <20221130010306.3797360-1-james.hilliard1__5877.50912397809$1669770216$gmane$org@gmail.com>
@ 2022-11-30  6:24 ` Bernd Kuhls
  2022-12-01 20:50   ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Bernd Kuhls @ 2022-11-30  6:24 UTC (permalink / raw)
  To: buildroot

Am Tue, 29 Nov 2022 18:03:06 -0700 schrieb James Hilliard:

> Backport a patch from upstream.
> 
> Fixes:
> /home/buildroot/buildroot/output/per-package/kodi/host/x86_64-buildroot-
linux-gnu/sysroot/usr/include/fmt/core.h:1751:17:
> error: static assertion failed: Formatting of non-void pointers is
> disallowed.
>  1751 |   static_assert(formattable_pointer,
>       |                 ^~~~~~~~~~~~~~~~~~~
> 
> Signed-off-by: James Hilliard
> <james.hilliard1@gmail.com>

Hi James,

this is a duplicate of http://patchwork.ozlabs.org/project/buildroot/
patch/20221002144629.2105385-2-bernd.kuhls@t-online.de/

Regards, Bernd

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-01 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30  1:03 [Buildroot] [PATCH 1/1] package/kodi: fix Formatting of non-void pointers is disallowed James Hilliard
     [not found] <20221130010306.3797360-1-james.hilliard1__5877.50912397809$1669770216$gmane$org@gmail.com>
2022-11-30  6:24 ` Bernd Kuhls
2022-12-01 20:50   ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.