On 2017年07月06日 00:59, Peter Kjellerstedt wrote:
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: den 5 juli 2017 10:11
To: [email protected]
Subject: [oe] [meta-oe][PATCH 06/10] opensc: add PACKAGECONFIG openssl

From: Kai Kang <[email protected]>

Add PACKAGECONFIG openssl to enable or disable build with openssl for
opensc. Check DISTRO_FEATURE openssl-no-weak-ciphers. If it exists then
remove PACKAGECONFIG openssl for opensc.

Signed-off-by: Kai Kang <[email protected]>
---
  meta-oe/recipes-support/opensc/opensc_0.16.0.bb | 5 +++++
  1 file changed, 5 insertions(+)

diff --git a/meta-oe/recipes-support/opensc/opensc_0.16.0.bb b/meta-
oe/recipes-support/opensc/opensc_0.16.0.bb
index fd67181..fa7c81d 100644
--- a/meta-oe/recipes-support/opensc/opensc_0.16.0.bb
+++ b/meta-oe/recipes-support/opensc/opensc_0.16.0.bb
@@ -21,6 +21,11 @@ LIC_FILES_CHKSUM =
"file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34"

  inherit autotools pkgconfig

+PACKAGECONFIG ??= "openssl"
+PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl"
+
+PACKAGECONFIG_remove = "${@bb.utils.contains('DISTRO_FEATURES', 
'openssl-no-weak-ciphers', 'openssl', '', d)}"
It is a bad idea to use _remove like this, because it makes it impossible to
enable openssl again in a bbappend or via local.conf.

I do this intendedly that if distro feature 'openssl-no-weak-ciphers' exists, package config openssl should be removed since opensc will compile failed. If this is not a good solution, just set CONFLICT_DISTRO_FEATURES as for other packages.

Thanks,
Kai

It is better to do it
like this:

PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 
'openssl-no-weak-ciphers', '', 'openssl', d)}"
PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl"

You should do it similarly for poco and postgresql as well.

+
  EXTRA_OECONF = " \
      --disable-static \
      --enable-openct \
--
2.10.1
//Peter



--
Regards,
Neil | Kai Kang

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to