Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/rtmpdump/files/, media-video/rtmpdump/
Date: Thu, 12 May 2022 20:43:03
Message-Id: 1652388171.8bf393aded52c35ade125bc216310cd54e8f5b2a.sam@gentoo
1 commit: 8bf393aded52c35ade125bc216310cd54e8f5b2a
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 12 20:42:22 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu May 12 20:42:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bf393ad
7
8 media-video/rtmpdump: fix build with GCC 11
9
10 Think it's 11+ specific (obviously these things depend
11 heavily on env. as it's to do with transitive includes), but
12 only occurs with *just* USE=tools enabled.
13
14 Closes: https://bugs.gentoo.org/828082
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 ...dump-2.4_p20210219-gcc-11-missing-include.patch | 23 ++++++++++++++++++++++
18 media-video/rtmpdump/rtmpdump-2.4_p20210219.ebuild | 1 +
19 2 files changed, 24 insertions(+)
20
21 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
22 new file mode 100644
23 index 000000000000..4325ed07381f
24 --- /dev/null
25 +++ b/media-video/rtmpdump/files/rtmpdump-2.4_p20210219-gcc-11-missing-include.patch
26 @@ -0,0 +1,23 @@
27 +https://bugs.gentoo.org/828082
28 +--- a/librtmp/rtmp.c
29 ++++ b/librtmp/rtmp.c
30 +@@ -28,6 +28,7 @@
31 + #include <string.h>
32 + #include <assert.h>
33 + #include <time.h>
34 ++#include <limits.h>
35 +
36 + #include "rtmp_sys.h"
37 + #include "log.h"
38 +diff --git a/librtmp/hashswf.c b/librtmp/hashswf.c
39 +index 32b2eed..e3669e3 100644
40 +--- a/librtmp/hashswf.c
41 ++++ b/librtmp/hashswf.c
42 +@@ -25,6 +25,7 @@
43 + #include <string.h>
44 + #include <ctype.h>
45 + #include <time.h>
46 ++#include <limits.h>
47 +
48 + #include "rtmp_sys.h"
49 + #include "log.h"
50
51 diff --git a/media-video/rtmpdump/rtmpdump-2.4_p20210219.ebuild b/media-video/rtmpdump/rtmpdump-2.4_p20210219.ebuild
52 index edd05e9dc2dd..58193c77d1ee 100644
53 --- a/media-video/rtmpdump/rtmpdump-2.4_p20210219.ebuild
54 +++ b/media-video/rtmpdump/rtmpdump-2.4_p20210219.ebuild
55 @@ -27,6 +27,7 @@ PATCHES=(
56 "${FILESDIR}/${PN}-swf_vertification_type_2.patch"
57 "${FILESDIR}/${PN}-swf_vertification_type_2_part_2.patch"
58 "${FILESDIR}/${PN}-fix-chunk-size.patch"
59 + "${FILESDIR}/${PN}-2.4_p20210219-gcc-11-missing-include.patch"
60 )
61
62 if [[ ${PV} == *9999 ]] ; then