Skip to content

Commit

Permalink
net-libs/libcurl-debian: New symlink package for Debian compatibility
Browse files Browse the repository at this point in the history
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
  • Loading branch information
chewi committed Sep 3, 2016
1 parent adc8ee7 commit 1b0ad03
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
25 changes: 25 additions & 0 deletions 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
}
20 changes: 20 additions & 0 deletions net-libs/libcurl-debian/metadata.xml
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>chewi@gentoo.org</email>
<name>James Le Cuirot</name>
</maintainer>
<longdescription>
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.
</longdescription>
</pkgmetadata>

0 comments on commit 1b0ad03

Please sign in to comment.