From 1b0ad03c580756d367317cc36eb67b0ed2c24a48 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Fri, 2 Sep 2016 23:34:48 +0100 Subject: [PATCH] net-libs/libcurl-debian: New symlink package for Debian compatibility This isn't going in the main tree, at least for now, as I'm a little unsure about whether symlinking to different backends would ever break. It doesn't appear to in most cases. This doesn't deal with the fact that Debian also packages libcurl.so.3 and friends. Hopefully we won't need that. Package-Manager: portage-2.3.0 --- .../libcurl-debian/libcurl-debian-4.ebuild | 25 +++++++++++++++++++ net-libs/libcurl-debian/metadata.xml | 20 +++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 net-libs/libcurl-debian/libcurl-debian-4.ebuild create mode 100644 net-libs/libcurl-debian/metadata.xml diff --git a/net-libs/libcurl-debian/libcurl-debian-4.ebuild b/net-libs/libcurl-debian/libcurl-debian-4.ebuild new file mode 100644 index 0000000..6f61efa --- /dev/null +++ b/net-libs/libcurl-debian/libcurl-debian-4.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit multilib multilib-minimal + +DESCRIPTION="libcurl-{gnutls,nss}.so.${SLOT} symlinks for compatibility with Debian" +HOMEPAGE="https://curl.haxx.se/" +LICENSE="MIT" +SLOT="4" +KEYWORDS="~amd64 ~x86" + +RDEPEND=">=net-misc/curl-7.16.0[${MULTILIB_USEDEP}]" + +S="${WORKDIR}" + +multilib_src_install() { + local backend + + for backend in gnutls nss; do + dosym ../libcurl.so.${SLOT} /usr/$(get_libdir)/debiancompat/libcurl-${backend}.so.${SLOT} + done +} diff --git a/net-libs/libcurl-debian/metadata.xml b/net-libs/libcurl-debian/metadata.xml new file mode 100644 index 0000000..18cadf6 --- /dev/null +++ b/net-libs/libcurl-debian/metadata.xml @@ -0,0 +1,20 @@ + + + + + chewi@gentoo.org + James Le Cuirot + + + Unlike Gentoo, Debian allows multiple copies of libcurl built + against different backends to be installed simultaneously. For + reasons best known to themselves, some developers release + binaries linked against libcurl-gnutls.so instead of libcurl.so, + the latter being the OpenSSL variant. Although it is less than + ideal, real world usage has shown that symlinking from one to + the other doesn't cause any issues so this package provides such + a symlink to satisfy prebuilt binaries. Usage of libcurl-nss.so + seems less common but a symlink for that has also been included + for completeness. + +