mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
dev-libs/xmlrpc-c: add 1.54.06
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST xmlrpc-c-1.54.05.tgz 933228 BLAKE2B 50d73fe22454f04ffebf11d4b88986eaac571d107abce4e04244ad0b74469fc5233178967e3dd832a8525514912e4f835fa1ce13c439caf918a2b2d0c05021a0 SHA512 81bf8f398e9cb73b421907d8e304b9a6dc8da931f573f7296457486ade432f4a00a94b6850391690f7b229928f785522e5852db8aca68cb462c71d139e4f27b1
|
||||
DIST xmlrpc-c-1.54.06.tgz 933199 BLAKE2B 1286323b59aa4d77fe2f8b04fef18d9a448d29a7fa23aad143418e62c92ac6a5156bb61ee58e0df4b0667e73a9170663b02b42fac94b38df71fc789d13e929e0 SHA512 0e8c920ccf04c78947bc66f7210b62c153ba185183c181461584772885690a3bb09dcf63d69c5b0f1f76a96f162a2a0eba6268e7210dda42561f59bec8008733
|
||||
|
||||
@@ -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 <i.gnatenko.brain@gmail.com>
|
||||
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 <i.gnatenko.brain@gmail.com>
|
||||
--- 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
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user