lxc: add dependency on gnutls
PATCH v2 1/1 lxc: add dependency on gnutls
lxc can use gnutls for various checksumming so add a dependency on it if package is selected
---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Get upstream patch that add --enable-gnutls option
package/lxc/lxc.hash | 1 + package/lxc/lxc.mk | 14 ++++++++++++++ 2 files changed, 15 insertions(+)
package/lxc/lxc.hash +1 -0
@@ -1,2 +1,3 @@ # Locally calculated sha256 7c292cd0055dac1a0e6fbb6a7740fd12b6ffb204603c198faf37c11c9d6dcd7a lxc-2.0.6.tar.gz +sha256 e8ca30fb1e8d6dbafb5cccc04b3fd1784c35bc8ccf79112036e5166924b6b01d 64fa248372c90c9d98fc9d67f80327d865c11a48.patch
package/lxc/lxc.mk +14 -0
@@ -9,10 +9,24 @@ LXC_SITE = https://linuxcontainers.org/downloads/lxc LXC_LICENSE = LGPLv2.1+ LXC_LICENSE_FILES = COPYING LXC_DEPENDENCIES = libcap host-pkgconf +# we're patching configure.ac +LXC_AUTORECONF = YES + +# This patch adds --enable-gnutls option +LXC_PATCH = \ + https://github.com/lxc/lxc/commit/64fa248372c90c9d98fc9d67f80327d865c11a48.patch + LXC_CONF_OPTS = --disable-apparmor --with-distro=buildroot \ --disable-python --disable-werror \ $(if $(BR2_PACKAGE_BASH),,--disable-bash) +ifeq ($(BR2_PACKAGE_GNUTLS),y) +LXC_CONF_OPTS += --enable-gnutls +LXC_DEPENDENCIES += gnutls +else +LXC_CONF_OPTS += --disable-gnutls +endif + ifeq ($(BR2_PACKAGE_LIBSECCOMP),y) LXC_CONF_OPTS += --enable-seccomp LXC_DEPENDENCIES += libseccomp
Signature · 1 line
2.7.4
PATCH v2 1/1 lxc: add dependency on gnutls
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
lxc can use gnutls for various checksumming so add a dependency on it if package is selected
Signed-off-by Fabrice Fontaine <[email protected]>---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Get upstream patch that add --enable-gnutls option
Committed, thanks. I see upstream has releases 2.0.7 so it would be nice to update to that and get rid of autoreconf.
I also noticed that your patch hardcodes -lgnutls instead of using pkg-config to figure out the exact libraries needed. With lxc not allowing static linking this it probably good enough, but it would have been nicer to do it "right".
Signature · 1 line
Bye, Peter Korsgaard