diff options
author | Petr Písař <petr.pisar@atlas.cz> | 2024-03-10 20:53:29 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-03-12 02:23:01 +0000 |
commit | 4c2e6a53475e49ef74dab3875af5387c2218f580 (patch) | |
tree | 4c35269832662d975708650d7aa84e843dc1e446 /net-libs | |
parent | net-libs/libisds: Bump to 0.11.2 (diff) | |
download | gentoo-4c2e6a53475e49ef74dab3875af5387c2218f580.tar.gz gentoo-4c2e6a53475e49ef74dab3875af5387c2218f580.tar.bz2 gentoo-4c2e6a53475e49ef74dab3875af5387c2218f580.zip |
net-libs/libisds: Fix building with >=dev-libs/libxml-2.12.0
A fix ported from upstream:
commit 0539e12b3de14a77481bd3f87b301b7e7550172c (HEAD -> master, repo.or.cz/master)
Author: Petr Písař <petr.pisar@atlas.cz>
Date: Thu Nov 23 21:10:05 2023 +0100
Fix building with libxml2-2.12.0
libxml-2.12.0 shuffled included header files.
Closes: https://bugs.gentoo.org/926129
Signed-off-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/libisds/files/libisds-0.11.1-Fix-building-with-libxml2-2.12.0.patch | 37 | ||||
-rw-r--r-- | net-libs/libisds/libisds-0.11.1-r2.ebuild | 59 |
2 files changed, 96 insertions, 0 deletions
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?= <petr.pisar@atlas.cz> +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 <libxml/parser.h> + + 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 <string.h> + #include <stdint.h> /* For intmax_t */ ++#include <stdlib.h> /* For free() */ + #include <inttypes.h> /* For PRIdMAX */ + #include <ctype.h> /* for isdigit() */ + #include <libxml/parser.h> +-- +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 +} |