From 0f558761aa2dee1017b4751e4017205e015a9560 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Jun 2022 12:04:12 +0100 Subject: gentoo resync : 29.12.2022 --- net-libs/sofia-sip/Manifest | 3 ++ .../sofia-sip/files/1.13.8-Fix-array-size.patch | 45 ++++++++++++++++++++ net-libs/sofia-sip/sofia-sip-1.13.8.ebuild | 48 ++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 net-libs/sofia-sip/files/1.13.8-Fix-array-size.patch create mode 100644 net-libs/sofia-sip/sofia-sip-1.13.8.ebuild (limited to 'net-libs/sofia-sip') diff --git a/net-libs/sofia-sip/Manifest b/net-libs/sofia-sip/Manifest index 9794fde7f254..7845a6ddc1dc 100644 --- a/net-libs/sofia-sip/Manifest +++ b/net-libs/sofia-sip/Manifest @@ -1,3 +1,6 @@ +AUX 1.13.8-Fix-array-size.patch 1849 BLAKE2B 2d266e72f7ae03d02049d1328c7e8b814d061ca52a8da3ae4e467b6b9714c69e0498a6ce70b0db9be2792c11407ab0cae5ad7fc99b99406c28b02c9eecd7f902 SHA512 c9da814e223af25d2260f2a4c642a5bbc3ff07aa47371eafa520d18942a2795e3159a66fd6350a6ed93445aca30ff44cf7f7bdd5cc7f62708c1aab8dd13a8908 DIST sofia-sip-1.12.11.tar.gz 2927808 BLAKE2B 2723aef491b5f85c047cc54a191fdd2ae63b23445f24b6ee9910af88e2daa684eded6e44cee50c3a52bec2901b5310f34c09e7cf4efce714210755046ceaecd7 SHA512 48bef0223ecf5a31267773c8e2491c1990b4419be67154e350cc9e5644a98e55409d635d7828824de3e0e1658caebe5b61e44d613615beb709ecbe8180be131c +DIST sofia-sip-1.13.8.tar.gz 2551359 BLAKE2B 505d3cdac29b00589f63782c296b68f36ba9247ef87bcbda7b2765c0079aa2313ac72c0062ada5ba29e07faa892a991722c53468756ce8ef4cd385b90afda564 SHA512 f857eb9cf25d3306476bc6d0bda786385529021d498cf0c2c779cdbae31295af4ed59a67fb0c882b09bac738623d273a94ebbda360c7a2b3d7da140852ccc6fa EBUILD sofia-sip-1.12.11.ebuild 767 BLAKE2B 17a614a54d0c98e778beca5771ee39cfe17f954a5d68f1515b90c1550200adf20db6db976cbc90bfed896859d13d2bfb34b24571bf46c6695b4a9e1ccc7ee286 SHA512 d509b066bf4ffca99f6c5e99e3405dbac8a06cf5473f56a265f70d38113fedf631aa6ce145901bee307aa1fdb439650ce98b7790fd3c29c9d72fea2c3496cbf9 +EBUILD sofia-sip-1.13.8.ebuild 932 BLAKE2B fe7f30db30231b729c1c8609e9a00bd59c5636a7c738c75877662e04d875191ff4301997be4235cb7f1f8fd10f6713403e4968c775d4018db7ee30f700a8e0d1 SHA512 52744c3e2eed29f2a1ac7a8ac5cf4919d3630db494de36ba6442871e9cbdd8087bcdea1c2904f9bea4dd5805a58b02158b9d676b168de9f9591646348a5d19a4 MISC metadata.xml 333 BLAKE2B c1affd2a0937b16cc617e0e0fe2ecfdd7fd11608e5884a51bbdf9ed8b6fb1f5db4c677ce1ba2cde8c5257e45fb16562fc49417bf36af8cba7731884864cb97f1 SHA512 f0f6ede0eeae3ec1c4cb5b76ace17f7c43640c22175938a2205c6c47e56304d3068665a08b4b247d6ac6af10da72b918b5192f1bc54a5d67a2e772cf8a46b9ed diff --git a/net-libs/sofia-sip/files/1.13.8-Fix-array-size.patch b/net-libs/sofia-sip/files/1.13.8-Fix-array-size.patch new file mode 100644 index 000000000000..1473b18c61a5 --- /dev/null +++ b/net-libs/sofia-sip/files/1.13.8-Fix-array-size.patch @@ -0,0 +1,45 @@ +https://github.com/freeswitch/sofia-sip/pull/134 + +From 17da7c45937cf0f66ca6a49a5661519443ebf8a7 Mon Sep 17 00:00:00 2001 +From: Matt Turner +Date: Wed, 1 Jun 2022 11:32:38 -0400 +Subject: [PATCH] Fix array size +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +check_sres_sip.c: In function ‘resolver_setup’: +check_sres_sip.c:113:19: warning: array subscript 2 is above array bounds of ‘su_addrinfo_t[2]’ {aka ‘struct addrinfo[2]’} [-Warray-bounds] + 113 | hint_udp_tcp_tls[2].ai_protocol = TPPROTO_TLS; + | ~~~~~~~~~~~~~~~~^~~ +check_sres_sip.c:69:22: note: while referencing ‘hint_udp_tcp_tls’ + 69 | static su_addrinfo_t hint_udp_tcp_tls[2]; + | ^~~~~~~~~~~~~~~~ +check_sres_sip.c:114:19: warning: array subscript 2 is above array bounds of ‘su_addrinfo_t[2]’ {aka ‘struct addrinfo[2]’} [-Warray-bounds] + 114 | hint_udp_tcp_tls[2].ai_next = NULL; + | ~~~~~~~~~~~~~~~~^~~ +check_sres_sip.c:69:22: note: while referencing ‘hint_udp_tcp_tls’ + 69 | static su_addrinfo_t hint_udp_tcp_tls[2]; + | ^~~~~~~~~~~~~~~~ + +Fixes: https://github.com/freeswitch/sofia-sip/issues/89 +--- + libsofia-sip-ua/sresolv/check_sres_sip.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libsofia-sip-ua/sresolv/check_sres_sip.c b/libsofia-sip-ua/sresolv/check_sres_sip.c +index ea392f0..e6c9642 100644 +--- a/libsofia-sip-ua/sresolv/check_sres_sip.c ++++ b/libsofia-sip-ua/sresolv/check_sres_sip.c +@@ -66,7 +66,7 @@ struct context { + } x[1]; + + static su_addrinfo_t hint_udp_tcp[2]; +-static su_addrinfo_t hint_udp_tcp_tls[2]; ++static su_addrinfo_t hint_udp_tcp_tls[3]; + static su_addrinfo_t hint_udp_tcp_ip4[2]; + static su_addrinfo_t hint_tls[1]; + static su_addrinfo_t hint_tls_udp_tcp[1]; +-- +2.35.1 + diff --git a/net-libs/sofia-sip/sofia-sip-1.13.8.ebuild b/net-libs/sofia-sip/sofia-sip-1.13.8.ebuild new file mode 100644 index 000000000000..640a845a0cea --- /dev/null +++ b/net-libs/sofia-sip/sofia-sip-1.13.8.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="RFC3261 compliant SIP User-Agent library" +HOMEPAGE="https://github.com/freeswitch/sofia-sip" +SRC_URI="https://github.com/freeswitch/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1+ BSD public-domain" # See COPYRIGHT +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-linux" +IUSE="ssl test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/glib:2 + ssl? ( + dev-libs/openssl:0= + )" +DEPEND="${RDEPEND} + test? ( dev-libs/check )" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PV}-Fix-array-size.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --disable-static \ + $(use_with ssl openssl) +} + +src_install() { + default + dodoc RELEASE + + # no static archives + find "${D}" -name '*.la' -delete || die +} -- cgit v1.2.3