All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3] openssl.inc: Install c_rehash utility with openssl
@ 2013-12-17  8:28 Yasir Khan
  2013-12-19 13:33 ` Richard Purdie
  2013-12-19 14:17 ` Koen Kooi
  0 siblings, 2 replies; 3+ messages in thread
From: Yasir Khan @ 2013-12-17  8:28 UTC (permalink / raw)
  To: openembedded-core

From: mykhani <yasir_khan@mentor.com>

c_rehash utility is not being installed with openssl.It conveniently
generates hash and symbolic links based on it for CA certificates
stored locally for SSL based server authentication

Signed-off-by: Yasir-Khan <yasir_khan@mentor.com>
---
 meta/recipes-connectivity/openssl/openssl.inc |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
index 3bfe569..cdb1809 100644
--- a/meta/recipes-connectivity/openssl/openssl.inc
+++ b/meta/recipes-connectivity/openssl/openssl.inc
@@ -13,6 +13,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
 
 DEPENDS = "perl-native-runtime"
 
+# Adding RDEPENDS for perl scripts
+RDEPENDS_${PN}-misc +="perl"
+
 SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz \
           "
 S = "${WORKDIR}/openssl-${PV}"
@@ -37,7 +40,7 @@ PACKAGES =+ "libcrypto libssl ${PN}-misc openssl-conf"
 FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
 FILES_libssl = "${libdir}/libssl.so.*"
 FILES_${PN} =+ " ${libdir}/ssl/*"
-FILES_${PN}-misc = "${libdir}/ssl/misc"
+FILES_${PN}-misc = "${libdir}/ssl/misc ${bindir}/c_rehash"
 FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
 
 # Add the openssl.cnf file to the openssl-conf package.  Make the libcrypto
@@ -157,6 +160,8 @@ do_install () {
 	sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
 
 	oe_multilib_header openssl/opensslconf.h
+	# The c_rehash utility isn't installed by the normal installation process.
+	install -m 0755 ${S}/tools/c_rehash ${D}${bindir}
 }
 
 BBCLASSEXTEND = "native nativesdk"
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH V3] openssl.inc: Install c_rehash utility with openssl
  2013-12-17  8:28 [PATCH V3] openssl.inc: Install c_rehash utility with openssl Yasir Khan
@ 2013-12-19 13:33 ` Richard Purdie
  2013-12-19 14:17 ` Koen Kooi
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2013-12-19 13:33 UTC (permalink / raw)
  To: Yasir Khan; +Cc: openembedded-core

On Tue, 2013-12-17 at 13:28 +0500, Yasir Khan wrote:
> From: mykhani <yasir_khan@mentor.com>
> 
> c_rehash utility is not being installed with openssl.It conveniently
> generates hash and symbolic links based on it for CA certificates
> stored locally for SSL based server authentication
> 
> Signed-off-by: Yasir-Khan <yasir_khan@mentor.com>
> ---
>  meta/recipes-connectivity/openssl/openssl.inc |    7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)

Unfortunately this commit has increased our benchmark build time by
approximately 3 minutes on a 1 hour 25 minute build time which is quite
a regression :(.

Would you be able to help figure out how we can regain some of the
performance?

Cheers,

Richard

> diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
> index 3bfe569..cdb1809 100644
> --- a/meta/recipes-connectivity/openssl/openssl.inc
> +++ b/meta/recipes-connectivity/openssl/openssl.inc
> @@ -13,6 +13,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
>  
>  DEPENDS = "perl-native-runtime"
>  
> +# Adding RDEPENDS for perl scripts
> +RDEPENDS_${PN}-misc +="perl"
> +
>  SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz \
>            "
>  S = "${WORKDIR}/openssl-${PV}"
> @@ -37,7 +40,7 @@ PACKAGES =+ "libcrypto libssl ${PN}-misc openssl-conf"
>  FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
>  FILES_libssl = "${libdir}/libssl.so.*"
>  FILES_${PN} =+ " ${libdir}/ssl/*"
> -FILES_${PN}-misc = "${libdir}/ssl/misc"
> +FILES_${PN}-misc = "${libdir}/ssl/misc ${bindir}/c_rehash"
>  FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
>  
>  # Add the openssl.cnf file to the openssl-conf package.  Make the libcrypto
> @@ -157,6 +160,8 @@ do_install () {
>  	sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
>  
>  	oe_multilib_header openssl/opensslconf.h
> +	# The c_rehash utility isn't installed by the normal installation process.
> +	install -m 0755 ${S}/tools/c_rehash ${D}${bindir}
>  }
>  
>  BBCLASSEXTEND = "native nativesdk"




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH V3] openssl.inc: Install c_rehash utility with openssl
  2013-12-17  8:28 [PATCH V3] openssl.inc: Install c_rehash utility with openssl Yasir Khan
  2013-12-19 13:33 ` Richard Purdie
@ 2013-12-19 14:17 ` Koen Kooi
  1 sibling, 0 replies; 3+ messages in thread
From: Koen Kooi @ 2013-12-19 14:17 UTC (permalink / raw)
  To: Yasir Khan; +Cc: Patches and discussions about the oe-core layer


Op 17 dec. 2013, om 09:28 heeft Yasir Khan <yasir_khan@mentor.com> het volgende geschreven:

> From: mykhani <yasir_khan@mentor.com>
> 
> c_rehash utility is not being installed with openssl.It conveniently
> generates hash and symbolic links based on it for CA certificates
> stored locally for SSL based server authentication
> 
> Signed-off-by: Yasir-Khan <yasir_khan@mentor.com>
> ---
> meta/recipes-connectivity/openssl/openssl.inc |    7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
> index 3bfe569..cdb1809 100644
> --- a/meta/recipes-connectivity/openssl/openssl.inc
> +++ b/meta/recipes-connectivity/openssl/openssl.inc
> @@ -13,6 +13,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
> 
> DEPENDS = "perl-native-runtime"
> 
> +# Adding RDEPENDS for perl scripts
> +RDEPENDS_${PN}-misc +="perl"

Does it need any perl-modules to function?

> +

R* variables go below do_install

> SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz \
>           "
> S = "${WORKDIR}/openssl-${PV}"
> @@ -37,7 +40,7 @@ PACKAGES =+ "libcrypto libssl ${PN}-misc openssl-conf"
> FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
> FILES_libssl = "${libdir}/libssl.so.*"
> FILES_${PN} =+ " ${libdir}/ssl/*"
> -FILES_${PN}-misc = "${libdir}/ssl/misc"
> +FILES_${PN}-misc = "${libdir}/ssl/misc ${bindir}/c_rehash"
> FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"

Same thing for FILES* variables, btw

> 
> # Add the openssl.cnf file to the openssl-conf package.  Make the libcrypto
> @@ -157,6 +160,8 @@ do_install () {
> 	sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
> 
> 	oe_multilib_header openssl/opensslconf.h
> +	# The c_rehash utility isn't installed by the normal installation process.
> +	install -m 0755 ${S}/tools/c_rehash ${D}${bindir}
> }
> 
> BBCLASSEXTEND = "native nativesdk"
> -- 
> 1.7.10.4
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-19 14:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-17  8:28 [PATCH V3] openssl.inc: Install c_rehash utility with openssl Yasir Khan
2013-12-19 13:33 ` Richard Purdie
2013-12-19 14:17 ` Koen Kooi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.