Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |