diff options
author | Stephan Hartmann <stha09@googlemail.com> | 2020-01-27 10:19:51 +0100 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2020-01-28 09:09:28 -0500 |
commit | 131011cbfcd351810e8cfe0350ddb17b2312f326 (patch) | |
tree | 3fe808ebe454071bae54e0b69fc47aac3a66dd1e /net-libs/libsrtp | |
parent | net-misc/connman: new live ebuild with several changes (diff) | |
download | gentoo-131011cbfcd351810e8cfe0350ddb17b2312f326.tar.gz gentoo-131011cbfcd351810e8cfe0350ddb17b2312f326.tar.bz2 gentoo-131011cbfcd351810e8cfe0350ddb17b2312f326.zip |
net-libs/libsrtp: fix building with gcc-10
Closes: https://bugs.gentoo.org/706608
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Stephan Hartmann <stha09@googlemail.com>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/14470
Diffstat (limited to 'net-libs/libsrtp')
-rw-r--r-- | net-libs/libsrtp/files/libsrtp-2.2.0-gcc-10.patch | 26 | ||||
-rw-r--r-- | net-libs/libsrtp/libsrtp-2.2.0.ebuild | 7 |
2 files changed, 31 insertions, 2 deletions
diff --git a/net-libs/libsrtp/files/libsrtp-2.2.0-gcc-10.patch b/net-libs/libsrtp/files/libsrtp-2.2.0-gcc-10.patch new file mode 100644 index 000000000000..771ae0f51448 --- /dev/null +++ b/net-libs/libsrtp/files/libsrtp-2.2.0-gcc-10.patch @@ -0,0 +1,26 @@ +diff --git a/crypto/math/datatypes.c b/crypto/math/datatypes.c +index c0dfece..ec2fe6d 100644 +--- a/crypto/math/datatypes.c ++++ b/crypto/math/datatypes.c +@@ -79,7 +79,7 @@ int octet_get_weight(uint8_t octet) + + /* the value MAX_PRINT_STRING_LEN is defined in datatypes.h */ + +-char bit_string[MAX_PRINT_STRING_LEN]; ++static char bit_string[MAX_PRINT_STRING_LEN]; + + uint8_t srtp_nibble_to_hex_char(uint8_t nibble) + { +diff --git a/test/util.c b/test/util.c +index eb203f4..04e149c 100644 +--- a/test/util.c ++++ b/test/util.c +@@ -47,7 +47,7 @@ + #include <string.h> + #include <stdint.h> + +-char bit_string[MAX_PRINT_STRING_LEN]; ++static char bit_string[MAX_PRINT_STRING_LEN]; + + static inline int hex_char_to_nibble(uint8_t c) + { diff --git a/net-libs/libsrtp/libsrtp-2.2.0.ebuild b/net-libs/libsrtp/libsrtp-2.2.0.ebuild index a6f4fc333d87..1ee4065fcb39 100644 --- a/net-libs/libsrtp/libsrtp-2.2.0.ebuild +++ b/net-libs/libsrtp/libsrtp-2.2.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -25,7 +25,10 @@ DEPEND="${RDEPEND}" DOCS=( CHANGES ) -PATCHES=( "${FILESDIR}/${P}-pcap-automagic-r0.patch" ) +PATCHES=( + "${FILESDIR}/${P}-pcap-automagic-r0.patch" + "${FILESDIR}/${P}-gcc-10.patch" +) src_prepare() { default |