commit:     8bf393aded52c35ade125bc216310cd54e8f5b2a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu May 12 20:42:22 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu May 12 20:42:51 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bf393ad

media-video/rtmpdump: fix build with GCC 11

Think it's 11+ specific (obviously these things depend
heavily on env. as it's to do with transitive includes), but
only occurs with *just* USE=tools enabled.

Closes: https://bugs.gentoo.org/828082
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...dump-2.4_p20210219-gcc-11-missing-include.patch | 23 ++++++++++++++++++++++
 media-video/rtmpdump/rtmpdump-2.4_p20210219.ebuild |  1 +
 2 files changed, 24 insertions(+)

diff --git 
a/media-video/rtmpdump/files/rtmpdump-2.4_p20210219-gcc-11-missing-include.patch
 
b/media-video/rtmpdump/files/rtmpdump-2.4_p20210219-gcc-11-missing-include.patch
new file mode 100644
index 000000000000..4325ed07381f
--- /dev/null
+++ 
b/media-video/rtmpdump/files/rtmpdump-2.4_p20210219-gcc-11-missing-include.patch
@@ -0,0 +1,23 @@
+https://bugs.gentoo.org/828082
+--- a/librtmp/rtmp.c
++++ b/librtmp/rtmp.c
+@@ -28,6 +28,7 @@
+ #include <string.h>
+ #include <assert.h>
+ #include <time.h>
++#include <limits.h>
+ 
+ #include "rtmp_sys.h"
+ #include "log.h"
+diff --git a/librtmp/hashswf.c b/librtmp/hashswf.c
+index 32b2eed..e3669e3 100644
+--- a/librtmp/hashswf.c
++++ b/librtmp/hashswf.c
+@@ -25,6 +25,7 @@
+ #include <string.h>
+ #include <ctype.h>
+ #include <time.h>
++#include <limits.h>
+ 
+ #include "rtmp_sys.h"
+ #include "log.h"

diff --git a/media-video/rtmpdump/rtmpdump-2.4_p20210219.ebuild 
b/media-video/rtmpdump/rtmpdump-2.4_p20210219.ebuild
index edd05e9dc2dd..58193c77d1ee 100644
--- a/media-video/rtmpdump/rtmpdump-2.4_p20210219.ebuild
+++ b/media-video/rtmpdump/rtmpdump-2.4_p20210219.ebuild
@@ -27,6 +27,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-swf_vertification_type_2.patch"
        "${FILESDIR}/${PN}-swf_vertification_type_2_part_2.patch"
        "${FILESDIR}/${PN}-fix-chunk-size.patch"
+       "${FILESDIR}/${PN}-2.4_p20210219-gcc-11-missing-include.patch"
 )
 
 if [[ ${PV} == *9999 ]] ; then

Reply via email to