From b5da7935a13b5005ec179604d4beebdaaf1caf11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Sun, 10 Mar 2024 20:53:29 +0100 Subject: [PATCH] net-libs/libisds: Fix building with >=dev-libs/libxml-2.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A fix ported from upstream: commit 0539e12b3de14a77481bd3f87b301b7e7550172c (HEAD -> master, repo.or.cz/master) Author: Petr Písař Date: Thu Nov 23 21:10:05 2023 +0100 Fix building with libxml2-2.12.0 libxml-2.12.0 shuffled included header files. Bug: https://bugs.gentoo.org/show_bug.cgi?id=926129 Signed-off-by: Petr Písař --- ...1.1-Fix-building-with-libxml2-2.12.0.patch | 37 ++++++++++++ net-libs/libisds/libisds-0.11.1-r2.ebuild | 59 +++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 net-libs/libisds/files/libisds-0.11.1-Fix-building-with-libxml2-2.12.0.patch create mode 100644 net-libs/libisds/libisds-0.11.1-r2.ebuild diff --git a/net-libs/libisds/files/libisds-0.11.1-Fix-building-with-libxml2-2.12.0.patch b/net-libs/libisds/files/libisds-0.11.1-Fix-building-with-libxml2-2.12.0.patch new file mode 100644 index 000000000000..7fc65894b156 --- /dev/null +++ b/net-libs/libisds/files/libisds-0.11.1-Fix-building-with-libxml2-2.12.0.patch @@ -0,0 +1,37 @@ +From 0539e12b3de14a77481bd3f87b301b7e7550172c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Thu, 23 Nov 2023 21:10:05 +0100 +Subject: [PATCH] Fix building with libxml2-2.12.0 + +libxml-2.12.0 shuffled included header files. +--- + test/offline/isds_message_free.c | 1 + + test/simline/service.c | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/test/offline/isds_message_free.c b/test/offline/isds_message_free.c +index 3c2096e..f819d19 100644 +--- a/test/offline/isds_message_free.c ++++ b/test/offline/isds_message_free.c +@@ -1,5 +1,6 @@ + #include "../test.h" + #include "isds.h" ++#include + + static int test_isds_message_free(struct isds_message **message) { + isds_message_free(message); +diff --git a/test/simline/service.c b/test/simline/service.c +index 533bed5..fea6e87 100644 +--- a/test/simline/service.c ++++ b/test/simline/service.c +@@ -6,6 +6,7 @@ + #include "system.h" + #include + #include /* For intmax_t */ ++#include /* For free() */ + #include /* For PRIdMAX */ + #include /* for isdigit() */ + #include +-- +2.43.0 + diff --git a/net-libs/libisds/libisds-0.11.1-r2.ebuild b/net-libs/libisds/libisds-0.11.1-r2.ebuild new file mode 100644 index 000000000000..fb326eb24572 --- /dev/null +++ b/net-libs/libisds/libisds-0.11.1-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Client library for accessing ISDS Soap services" +HOMEPAGE="http://xpisar.wz.cz/libisds/" +SRC_URI="http://xpisar.wz.cz/${PN}/dist/${P}.tar.xz" +KEYWORDS="~amd64 ~mips ~x86" + +LICENSE="LGPL-3" +SLOT="0" +IUSE="+curl debug doc nls openssl test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/expat + dev-libs/libxml2 + curl? ( net-misc/curl[ssl] ) + doc? ( + app-text/docbook-xsl-stylesheets + dev-libs/libxslt + ) + openssl? ( dev-libs/openssl:= ) + !openssl? ( + app-crypt/gnupg + app-crypt/gpgme:= + dev-libs/libgcrypt:= + )" +DEPEND="${RDEPEND} + test? ( net-libs/gnutls )" +BDEPEND=" + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +PATCHES=( + "${FILESDIR}/${PN}-0.11.1-Fix-building-with-libxml2-2.12.0.patch" +) + +src_configure() { + local myeconfargs=( + --disable-fatalwarnings + --disable-static + $(use_with curl libcurl) + $(use_enable curl curlreauthorizationbug) + $(use_enable doc) + $(use_enable debug) + $(use_enable nls) + $(use_enable openssl openssl-backend) + $(use_enable test) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die +} -- 2.43.0