From 6031cee8b35a5f0d7a1fee157d2cefcc05649608 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 19 Apr 2023 11:57:35 +0100 Subject: gentoo auto-resync : 19:04:2023 - 11:57:35 --- dev-libs/xmlrpc-c/Manifest | 3 + .../files/xmlrpc-c-1.54.06-wformat-security.patch | 29 ++++++++ dev-libs/xmlrpc-c/xmlrpc-c-1.54.06.ebuild | 80 ++++++++++++++++++++++ 3 files changed, 112 insertions(+) create mode 100644 dev-libs/xmlrpc-c/files/xmlrpc-c-1.54.06-wformat-security.patch create mode 100644 dev-libs/xmlrpc-c/xmlrpc-c-1.54.06.ebuild (limited to 'dev-libs/xmlrpc-c') diff --git a/dev-libs/xmlrpc-c/Manifest b/dev-libs/xmlrpc-c/Manifest index c11c990b703d..60d0dfe47838 100644 --- a/dev-libs/xmlrpc-c/Manifest +++ b/dev-libs/xmlrpc-c/Manifest @@ -1,5 +1,8 @@ AUX xmlrpc-c-1.51.06-pkg-config-libxml2.patch 7240 BLAKE2B 472b313f8b815c1235cc72b56e9081d855277de21e066a1f2db5acb650d4fc4daedca2e82c05116b353b340c1359bfd8e480b19bd1cc5f4f36627f7ccf66760a SHA512 478af29becba5ee415f0b92f15af1cd8273daf14bc4b5fee4deca83197f11a975a40c94c9400050eac5030eb840d55a54282aaed403f105ab0752b1eec398c08 AUX xmlrpc-c-1.51.06-pkg-config-openssl.patch 1244 BLAKE2B be5e48daa409cb67ae5f75fec54c25ee160e476ef03e5814917f81c887622e8acb5456af29e976ffec761ce4e16c3d5c5b14b75151c594afdc6e8dd48b4dd596 SHA512 73b983c6e0fa97ba0dbceb8bbc7699a51f4e625c05cdfc5a27bf973bf039e9224eb1ec7f21e94ae70d8e32b4f9a1b1dbb04959f639e558b32270a467a72a87e3 +AUX xmlrpc-c-1.54.06-wformat-security.patch 1107 BLAKE2B 4572a031c01f018af7fe8281429d8a43c93a07f9af0cae47d1f5c2e1b4cf0aac98c0a3d00bce7ff4964b61d9f1c4b2a265379f5efcf49ccb60c4207bcccafd34 SHA512 5ecaea4f875261b9c108840779554505fead02011b5fbf6387a01335cbcd5169e2f76b491806efabdb418c0dee9977f15856470099e3464ec039bf8dada9b9ec DIST xmlrpc-c-1.54.05.tgz 933228 BLAKE2B 50d73fe22454f04ffebf11d4b88986eaac571d107abce4e04244ad0b74469fc5233178967e3dd832a8525514912e4f835fa1ce13c439caf918a2b2d0c05021a0 SHA512 81bf8f398e9cb73b421907d8e304b9a6dc8da931f573f7296457486ade432f4a00a94b6850391690f7b229928f785522e5852db8aca68cb462c71d139e4f27b1 +DIST xmlrpc-c-1.54.06.tgz 933199 BLAKE2B 1286323b59aa4d77fe2f8b04fef18d9a448d29a7fa23aad143418e62c92ac6a5156bb61ee58e0df4b0667e73a9170663b02b42fac94b38df71fc789d13e929e0 SHA512 0e8c920ccf04c78947bc66f7210b62c153ba185183c181461584772885690a3bb09dcf63d69c5b0f1f76a96f162a2a0eba6268e7210dda42561f59bec8008733 EBUILD xmlrpc-c-1.54.05-r2.ebuild 2013 BLAKE2B e227ee8ac8f9ed851004c5f59bd19de358a2a39a9a822c23c5f567633d9e58665aeed8b9f8084952fb38aa8b014bc236a1b6ef55aff68be3846aabfc0b8e1a76 SHA512 9a8015aa57bc48d12bfd542bcc5e48945167ce6f23e77326960135be6a0a42058ab3c6c82ceb15668de606e42f908cbecf9562d3aa0436dc0dc35bc162bc305d +EBUILD xmlrpc-c-1.54.06.ebuild 2091 BLAKE2B b1af861e1bd328941d8614f8961e7a95680244b15c265ac9896c23263656042f78c3c2b5a15be1c738991a455f82a51736398b2c370b4800ac1778c97eefad48 SHA512 d1b27e5efbbee75b6594202463fab36fb13c43c56d204a9a6cad2e0758c7a405e29c1b17288a565f9418e407b8864c88efc4859892e4343d7f45b81b5f2384c4 MISC metadata.xml 628 BLAKE2B 3d59eebbcf6eddfba969215a990fd59daa58b78dc305f05d10ba9f77f3ce5d5edbed0599644b40574beacb3c1e084af745bc2d75f0cb660968f4e3bf963c4f00 SHA512 fd572b06cc3359372e5b048d721b33d6bb614ab631fec95628af36217f94434fc9f279d83ec0de8828cd72265158b1a88f58418f94fb2e3d3e82de117c7bea71 diff --git a/dev-libs/xmlrpc-c/files/xmlrpc-c-1.54.06-wformat-security.patch b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.54.06-wformat-security.patch new file mode 100644 index 000000000000..462adcd06375 --- /dev/null +++ b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.54.06-wformat-security.patch @@ -0,0 +1,29 @@ +https://src.fedoraproject.org/rpms/xmlrpc-c/raw/rawhide/f/0001-xmlrpc_server_abyss-use-va_args-properly.patch + +From d31c2ffbf5181053330fa32e4f03c47283bd1448 Mon Sep 17 00:00:00 2001 +From: Igor Gnatenko +Date: Sat, 17 Dec 2016 10:28:31 +0100 +Subject: [PATCH 1/3] xmlrpc_server_abyss: use va_args properly +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +../src/xmlrpc_server_abyss.c: In function ‘createServer’: +../src/xmlrpc_server_abyss.c:783:13: error: format not a string literal and no format arguments [-Werror=format-security] + xmlrpc_faultf(envP, error); + ^~~~~~~~~~~~~ + +Signed-off-by: Igor Gnatenko +--- a/src/xmlrpc_server_abyss.c ++++ b/src/xmlrpc_server_abyss.c +@@ -780,7 +780,7 @@ createServer(xmlrpc_env * const envP, + ServerInit2(abyssServerP, &error); + + if (error) { +- xmlrpc_faultf(envP, error); ++ xmlrpc_faultf(envP, "%s", error); + xmlrpc_strfree(error); + } + } +-- +2.13.1 diff --git a/dev-libs/xmlrpc-c/xmlrpc-c-1.54.06.ebuild b/dev-libs/xmlrpc-c/xmlrpc-c-1.54.06.ebuild new file mode 100644 index 000000000000..a9115dea33cf --- /dev/null +++ b/dev-libs/xmlrpc-c/xmlrpc-c-1.54.06.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +# Upstream maintains 3 release channels: http://xmlrpc-c.sourceforge.net/release.html +# 1. Only the "Super Stable" series is released as a tarball +# 2. SVN tagging of releases seems spotty: http://svn.code.sf.net/p/xmlrpc-c/code/release_number/ +# Because of this, we are following the "Super Stable" release channel + +DESCRIPTION="A lightweight RPC library based on XML and HTTP" +HOMEPAGE="http://xmlrpc-c.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" + +LICENSE="BSD" +SLOT="0/4.54" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="abyss +cgi +curl +cxx +libxml2 threads test" +RESTRICT="!test? ( test )" +REQUIRED_USE="test? ( abyss curl cxx )" + +RDEPEND=" + dev-libs/openssl:= + sys-libs/ncurses:= + sys-libs/readline:= + curl? ( net-misc/curl ) + libxml2? ( dev-libs/libxml2 ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-1.51.06-pkg-config-libxml2.patch + "${FILESDIR}"/${PN}-1.51.06-pkg-config-openssl.patch + "${FILESDIR}"/${PN}-1.54.06-wformat-security.patch +) + +pkg_setup() { + use curl || ewarn "Curl support disabled: No client library will be built" +} + +src_prepare() { + default + + sed -i \ + -e "/CFLAGS_COMMON/s|-g -O3$||" \ + -e "/CXXFLAGS_COMMON/s|-g$||" \ + common.mk || die +} + +src_configure() { + tc-export PKG_CONFIG + + econf \ + --disable-libwww-client \ + --disable-wininet-client \ + --without-libwww-ssl \ + $(use_enable abyss abyss-server) \ + $(use_enable cgi cgi-server) \ + $(use_enable curl curl-client) \ + $(use_enable cxx cplusplus) \ + $(use_enable libxml2 libxml2-backend) \ + $(use_enable threads abyss-threads) +} + +src_compile() { + default + + # Tools building is broken in this release + #use tools && emake -rC "${S}"/tools +} + +src_install() { + default + + # Tools building is broken in this release + #use tools && emake DESTDIR="${D}" -rC "${S}"/tools install +} -- cgit v1.2.3