Compare commits
No commits in common. "rawhide" and "f41" have entirely different histories.
6 changed files with 116 additions and 43 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -6,4 +6,3 @@
|
|||
/xmlrpc-1.51.08.tgz
|
||||
/xmlrpc-c-1.59.02.tgz
|
||||
/xmlrpc-c-1.59.03.tgz
|
||||
/xmlrpc-c-1.60.04.tgz
|
||||
|
|
|
|||
10
Makefile
Normal file
10
Makefile
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
MAKEFILE_COMMON = $(HOME)/.fedora/common.mk
|
||||
-include $(MAKEFILE_COMMON)
|
||||
|
||||
all:
|
||||
|
||||
SVN_VER ?= ${VERSION}
|
||||
|
||||
svn-sources:
|
||||
cd $(DESTDIR) . && svn export https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/advanced@${SVN_REV} xmlrpc-c-${SVN_VER}
|
||||
cd $(DESTDIR) . && tar cJf xmlrpc-c-${SVN_VER}.tar.xz xmlrpc-c-${SVN_VER} --owner root --group root --mode=go-w,a+rX
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (xmlrpc-c-1.60.04.tgz) = 68407053eec1e3f32187169f5bb976e9f043f1576dd9fb7a9076ed00414dd0293cfdf72527a314c244dd48986402af3c9cc33d110ed3b382a13190eb8dddb734
|
||||
SHA512 (xmlrpc-c-1.59.03.tgz) = 10b984421e7f4a7c1434b03f542ba1c9f9027ae72ed6022aca5efee55fc630b0f630f1ca5193fd2477c743ffd994c199064b15b73d1b019004f1f8e36cbd6921
|
||||
|
|
|
|||
41
xmlrpc-c-check-vasprintf-return-value.patch
Normal file
41
xmlrpc-c-check-vasprintf-return-value.patch
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
From 80047d74644eeda55c451aea59951eb502649cf4 Mon Sep 17 00:00:00 2001
|
||||
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
|
||||
Date: Thu, 29 Jul 2010 19:43:08 +0200
|
||||
Subject: [PATCH 7/8] check vasprintf return value
|
||||
|
||||
---
|
||||
lib/libutil/asprintf.c | 3 ++-
|
||||
lib/util/casprintf.c | 3 ++-
|
||||
2 files changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/lib/libutil/asprintf.c b/lib/libutil/asprintf.c
|
||||
index a79cd81..5a06f0f 100644
|
||||
--- a/lib/libutil/asprintf.c
|
||||
+++ b/lib/libutil/asprintf.c
|
||||
@@ -121,7 +121,8 @@ xmlrpc_vasprintf(const char ** const retvalP,
|
||||
char * string;
|
||||
|
||||
#if HAVE_ASPRINTF
|
||||
- vasprintf(&string, fmt, varargs);
|
||||
+ if (vasprintf(&string, fmt, varargs) < 0)
|
||||
+ string = NULL;
|
||||
#else
|
||||
simpleVasprintf(&string, fmt, varargs);
|
||||
#endif
|
||||
diff --git a/lib/util/casprintf.c b/lib/util/casprintf.c
|
||||
index 643f145..9139253 100644
|
||||
--- a/lib/util/casprintf.c
|
||||
+++ b/lib/util/casprintf.c
|
||||
@@ -99,7 +99,8 @@ cvasprintf(const char ** const retvalP,
|
||||
char * string;
|
||||
|
||||
#if HAVE_ASPRINTF
|
||||
- vasprintf(&string, fmt, varargs);
|
||||
+ if (vasprintf(&string, fmt, varargs) < 0)
|
||||
+ string = NULL;
|
||||
#else
|
||||
simpleVasprintf(&string, fmt, varargs);
|
||||
#endif
|
||||
--
|
||||
1.7.3.4
|
||||
|
||||
48
xmlrpc-c-printf-size_t.patch
Normal file
48
xmlrpc-c-printf-size_t.patch
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
From 25a777bb0ee2e2ee17d87006f76b3cea5d15a9f7 Mon Sep 17 00:00:00 2001
|
||||
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
|
||||
Date: Mon, 25 Feb 2008 17:48:25 +0100
|
||||
Subject: [PATCH 2/9] fixed broken format string modifiers
|
||||
|
||||
---
|
||||
examples/json.c | 4 ++--
|
||||
examples/parse_xml.c | 2 +-
|
||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/examples/json.c b/examples/json.c
|
||||
index 89fe82b..91ea50d 100644
|
||||
--- a/examples/json.c
|
||||
+++ b/examples/json.c
|
||||
@@ -41,7 +41,7 @@ printAsXml(xmlrpc_value * const valP) {
|
||||
printf("XML-RPC XML:\n");
|
||||
|
||||
printf("%.*s\n",
|
||||
- XMLRPC_MEMBLOCK_SIZE(char, &out),
|
||||
+ (int)XMLRPC_MEMBLOCK_SIZE(char, &out),
|
||||
XMLRPC_MEMBLOCK_CONTENTS(char, &out));
|
||||
|
||||
XMLRPC_MEMBLOCK_CLEAN(char, &out);
|
||||
@@ -70,7 +70,7 @@ printAsJson(xmlrpc_value * const valP) {
|
||||
printf("JSON:\n");
|
||||
|
||||
printf("%.*s\n",
|
||||
- XMLRPC_MEMBLOCK_SIZE(char, &out),
|
||||
+ (int)XMLRPC_MEMBLOCK_SIZE(char, &out),
|
||||
XMLRPC_MEMBLOCK_CONTENTS(char, &out));
|
||||
|
||||
XMLRPC_MEMBLOCK_CLEAN(char, &out);
|
||||
diff --git a/examples/parse_xml.c b/examples/parse_xml.c
|
||||
index 2e6c508..4f6c308 100644
|
||||
--- a/examples/parse_xml.c
|
||||
+++ b/examples/parse_xml.c
|
||||
@@ -58,7 +58,7 @@ describeXmlElement(const xml_element * const elemP,
|
||||
printf("%sXML element type: '%s'\n",
|
||||
prefix, xml_element_name(elemP));
|
||||
|
||||
- printf("%sNumber of child elements: %u\n",
|
||||
+ printf("%sNumber of child elements: %zu\n",
|
||||
prefix, xml_element_children_size(elemP));
|
||||
|
||||
for (i = 0; i < xml_element_children_size(elemP); ++i) {
|
||||
--
|
||||
1.7.6
|
||||
|
||||
|
|
@ -1,16 +1,15 @@
|
|||
# build order matters and multiple threads break it
|
||||
%global _smp_mflags -j1
|
||||
# Upstream libxml2 backend is completely broken since 2015 https://sourceforge.net/p/xmlrpc-c/patches/49/
|
||||
%bcond_with libxml2
|
||||
|
||||
Name: xmlrpc-c
|
||||
Version: 1.60.04
|
||||
Release: 7%{?dist}
|
||||
Version: 1.59.03
|
||||
Release: 2%{?dist}
|
||||
Summary: Lightweight RPC library based on XML and HTTP
|
||||
# See doc/COPYING for details.
|
||||
# The Python 1.5.2 license used by a few files is just BSD.
|
||||
# Automatically converted from old format: BSD and MIT - review is highly recommended.
|
||||
License: LicenseRef-Callaway-BSD AND LicenseRef-Callaway-MIT
|
||||
License: BSD and MIT
|
||||
URL: http://xmlrpc-c.sourceforge.net/
|
||||
Source: http://dl.sourceforge.net/sourceforge/xmlrpc-c/xmlrpc-c-%version.tgz
|
||||
Source: http://dl.sourceforge.net/sourceforge/xmlrpc-c/xmlrpc-c-%version.tgz
|
||||
|
||||
# Upstreamable patches
|
||||
Patch102: 0002-Use-proper-datatypes-for-long-long.patch
|
||||
|
|
@ -19,7 +18,12 @@ Patch103: 0003-allow-30x-redirections.patch
|
|||
BuildRequires: git-core
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
%if %{with libxml2}
|
||||
BuildRequires: pkgconfig(libxml-2.0)
|
||||
%else
|
||||
# upstream has its own fork of expat
|
||||
Provides: bundled(expat)
|
||||
%endif
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
BuildRequires: pkgconfig(libcurl)
|
||||
BuildRequires: readline-devel
|
||||
|
|
@ -106,8 +110,9 @@ This package contains some handy XML-RPC demo applications.
|
|||
|
||||
%build
|
||||
%configure
|
||||
%make_build CFLAGS="%{optflags} -std=gnu17"
|
||||
%make_build CFLAGS="%{optflags} -std=gnu17" -C tools
|
||||
%make_build
|
||||
# build order matters and multiple threads break it
|
||||
%make_build -j1 -C tools
|
||||
|
||||
|
||||
%install
|
||||
|
|
@ -122,9 +127,10 @@ This package contains some handy XML-RPC demo applications.
|
|||
%files
|
||||
%license doc/COPYING lib/abyss/license.txt
|
||||
%doc doc/CREDITS doc/HISTORY
|
||||
%if ! %{with libxml2}
|
||||
%{_libdir}/libxmlrpc_xml*.so.*
|
||||
%endif
|
||||
%{_libdir}/libxmlrpc.so.*
|
||||
%{_libdir}/libxmlrpc_openssl.so.*
|
||||
%{_libdir}/libxmlrpc_util.so.*
|
||||
%{_libdir}/libxmlrpc_abyss.so.*
|
||||
%{_libdir}/libxmlrpc_server.so.*
|
||||
|
|
@ -171,37 +177,6 @@ This package contains some handy XML-RPC demo applications.
|
|||
%{_bindir}/xmlrpc_dumpserver
|
||||
|
||||
%changelog
|
||||
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.60.04-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Sat Jun 13 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 1.60.04-6
|
||||
- Rebuilt for openssl 4.0
|
||||
|
||||
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.60.04-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.60.04-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Thu Jan 23 2025 Jonathan Wright <jonathan@almalinux.org> - 1.60.04-3
|
||||
- fix ftbfs on gcc15 rhbz#2341577
|
||||
|
||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.60.04-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Thu Jan 02 2025 Jonathan Wright <jonathan@almalinux.org> - 1.60.4-2
|
||||
- Use global macro to override make smp_flags
|
||||
|
||||
* Thu Jan 02 2025 Jonathan Wright <jonathan@almalinux.org> - 1.60.4-1
|
||||
- update to 1.60.4 rhbz#2334236
|
||||
- re-enable builds against libxml2, no more bundled libexpat
|
||||
- fixes rhbz#2310136
|
||||
- fixes rhbz#2310146
|
||||
- fixes rhbz#2310152
|
||||
|
||||
* Wed Sep 04 2024 Miroslav Suchý <msuchy@redhat.com> - 1.59.03-3
|
||||
- convert license to SPDX
|
||||
|
||||
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.59.03-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue