Skip to contentSkip to conversation

rng-tools: Don't depend on libgcrypt when the PACKAGECONFIG is disabled

PATCH New Adrian Bunk 1 participant 2 messages Mar 6, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 rng-tools: Don't depend on libgcrypt when the PACKAGECONFIG is disabled

PACKAGECONFIG[libgcrypt] already adds it when necessary.

---
 meta/recipes-support/rng-tools/rng-tools_6.6.bb | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-support/rng-tools/rng-tools_6.6.bb +0 -1
index 4d91216e32..d3361ae4e1 100644
@@ -21,7 +21,6 @@ DEPENDS = "curl \
            libxml2 \
            openssl \
            sysfsutils \
-           libgcrypt \
           "
 
 PACKAGECONFIG ??= "libgcrypt libjitterentropy"
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 rng-tools: Make nistbeacon support optional

Downloading your randomness directly from the US government is a rare usecase but adds heavy dependencies.

Make it optional and non-default.

---
 meta/recipes-support/rng-tools/rng-tools_6.6.bb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
meta/recipes-support/rng-tools/rng-tools_6.6.bb +2 -3
index d3361ae4e1..6796c9be9e 100644
@@ -17,9 +17,7 @@ S = "${WORKDIR}/git"
 
 inherit autotools update-rc.d systemd pkgconfig
 
-DEPENDS = "curl \
-           libxml2 \
-           openssl \
+DEPENDS = " \
            sysfsutils \
           "
 
@@ -28,6 +26,7 @@ PACKAGECONFIG_libc-musl = "libargp libjitterentropy"
 PACKAGECONFIG[libargp] = "--with-libargp,--without-libargp,argp-standalone,"
 PACKAGECONFIG[libgcrypt] = "--with-libgcrypt,--without-libgcrypt,libgcrypt,"
 PACKAGECONFIG[libjitterentropy] = "--enable-jitterentropy,--disable-jitterentropy,libjitterentropy"
+PACKAGECONFIG[nistbeacon] = "--with-nistbeacon,--without-nistbeacon,curl libxml2 openssl"
 
 # Refer autogen.sh in rng-tools
 do_configure_prepend() {
Signature · 1 line
2.17.1