Bundle libcurl with the snap package #15
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DUB uses
std.net.curl
to download package data, which in turn relies on being able to dynamically load libcurl at runtime viadlopen
. If libcurl is not available in the snap, but only on the host system, then DUB may not be able to locate it: this happens e.g. on Ubuntu 18.04 and quite possibly on other distros too.This patch adds a separate
curl
part that includeslibcurl3-gnutls
viastage-packages
. This is simpler than adding it to thedub
part as thedump
plugin will not automatically stage packages specified in this way.Besides the libraries themselves, we need to add extra
LD_LIBRARY_PATH
settings to the app environment to enable dub to find them.Adapted from an earlier PR by @philburr: #13