All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] openssl: Move libcrypto to base_libdir
@ 2012-02-09 18:30 Andrei Gherzan
  2012-02-09 18:33 ` Phil Blundell
  2012-02-09 18:34 ` Saul Wold
  0 siblings, 2 replies; 9+ messages in thread
From: Andrei Gherzan @ 2012-02-09 18:30 UTC (permalink / raw)
  To: openembedded-core

This fix is for dhclient. It needs libcrypto at runtime and if
libcrypto is in libdir, it's path can be inaccessible on systems
where /usr is on nfs for example or dhclient is needed before
/usr is mounted.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
---
 meta/recipes-connectivity/openssl/openssl.inc      |    8 +++++++-
 .../recipes-connectivity/openssl/openssl_1.0.0g.bb |    2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
index 771f146..76a28ff 100644
--- a/meta/recipes-connectivity/openssl/openssl.inc
+++ b/meta/recipes-connectivity/openssl/openssl.inc
@@ -36,10 +36,11 @@ export AS = "${CC} -c"
 inherit pkgconfig siteinfo
 
 PACKAGES =+ "libcrypto libssl ${PN}-misc"
-FILES_libcrypto = "${libdir}/libcrypto.so.*"
+FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
 FILES_libssl = "${libdir}/libssl.so.*"
 FILES_${PN} =+ " ${libdir}/ssl/*"
 FILES_${PN}-misc = "${libdir}/ssl/misc ${libdir}/ssl/openssl.cnf"
+FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
 
 do_configure_prepend_darwin () {
 	sed -i -e '/version-script=openssl\.ld/d' Configure
@@ -132,6 +133,11 @@ do_install () {
 	oe_libinstall -so libcrypto ${D}${libdir}
 	oe_libinstall -so libssl ${D}${libdir}
 
+	# Moving libcrypto to /usr
+	mkdir -p ${D}/${base_libdir}/
+	mv ${D}${libdir}/libcrypto* ${D}${base_libdir}/
+	sed -i s/usr// ${D}/${libdir}/pkgconfig/libcrypto.pc
+
 	install -d ${D}${includedir}
 	cp --dereference -R include/openssl ${D}${includedir}
 	sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb b/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
index 80dfcb3..8ffe931 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
@@ -6,7 +6,7 @@ DEPENDS += "ocf-linux"
 
 CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
 
-- 
1.7.5.4




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

* Re: [PATCH] openssl: Move libcrypto to base_libdir
  2012-02-09 18:30 [PATCH] openssl: Move libcrypto to base_libdir Andrei Gherzan
@ 2012-02-09 18:33 ` Phil Blundell
  2012-02-09 19:54   ` Khem Raj
  2012-02-09 18:34 ` Saul Wold
  1 sibling, 1 reply; 9+ messages in thread
From: Phil Blundell @ 2012-02-09 18:33 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, 2012-02-09 at 20:30 +0200, Andrei Gherzan wrote:
> +	# Moving libcrypto to /usr
> +	mkdir -p ${D}/${base_libdir}/
> +	mv ${D}${libdir}/libcrypto* ${D}${base_libdir}/

That looks like it will fail if ${libdir} and ${base_libdir} are the
same.

> +	sed -i s/usr// ${D}/${libdir}/pkgconfig/libcrypto.pc

Also, this seems like it might fail if ${prefix} was set to something
other than "/usr".  

Do you really want to put the development files in ${base_libdir}
anyway?  I would have thought that even the most enthusiastic proponents
of a standalone / would not expect to be able to use the compiler
without /usr mounted.

p.





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

* Re: [PATCH] openssl: Move libcrypto to base_libdir
  2012-02-09 18:30 [PATCH] openssl: Move libcrypto to base_libdir Andrei Gherzan
  2012-02-09 18:33 ` Phil Blundell
@ 2012-02-09 18:34 ` Saul Wold
  1 sibling, 0 replies; 9+ messages in thread
From: Saul Wold @ 2012-02-09 18:34 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 02/09/2012 10:30 AM, Andrei Gherzan wrote:
> This fix is for dhclient. It needs libcrypto at runtime and if
> libcrypto is in libdir, it's path can be inaccessible on systems
> where /usr is on nfs for example or dhclient is needed before
> /usr is mounted.
>
> Signed-off-by: Andrei Gherzan<andrei@gherzan.ro>
> ---
>   meta/recipes-connectivity/openssl/openssl.inc      |    8 +++++++-
>   .../recipes-connectivity/openssl/openssl_1.0.0g.bb |    2 +-
>   2 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
> index 771f146..76a28ff 100644
> --- a/meta/recipes-connectivity/openssl/openssl.inc
> +++ b/meta/recipes-connectivity/openssl/openssl.inc
> @@ -36,10 +36,11 @@ export AS = "${CC} -c"
>   inherit pkgconfig siteinfo
>
>   PACKAGES =+ "libcrypto libssl ${PN}-misc"
> -FILES_libcrypto = "${libdir}/libcrypto.so.*"
> +FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
>   FILES_libssl = "${libdir}/libssl.so.*"
>   FILES_${PN} =+ " ${libdir}/ssl/*"
>   FILES_${PN}-misc = "${libdir}/ssl/misc ${libdir}/ssl/openssl.cnf"
> +FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
>
>   do_configure_prepend_darwin () {
>   	sed -i -e '/version-script=openssl\.ld/d' Configure
> @@ -132,6 +133,11 @@ do_install () {
>   	oe_libinstall -so libcrypto ${D}${libdir}
>   	oe_libinstall -so libssl ${D}${libdir}
>
> +	# Moving libcrypto to /usr
> +	mkdir -p ${D}/${base_libdir}/
> +	mv ${D}${libdir}/libcrypto* ${D}${base_libdir}/
> +	sed -i s/usr// ${D}/${libdir}/pkgconfig/libcrypto.pc
> +

You still did not fix the case of libdir == base_libdir as Phil pointed out.

Sau!

>   	install -d ${D}${includedir}
>   	cp --dereference -R include/openssl ${D}${includedir}
>   	sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
> diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb b/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
> index 80dfcb3..8ffe931 100644
> --- a/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
> +++ b/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
> @@ -6,7 +6,7 @@ DEPENDS += "ocf-linux"
>
>   CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
>
> -PR = "${INC_PR}.0"
> +PR = "${INC_PR}.1"
>
>   LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
>



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

* Re: [PATCH] openssl: Move libcrypto to base_libdir
  2012-02-09 18:33 ` Phil Blundell
@ 2012-02-09 19:54   ` Khem Raj
  2012-02-10 13:37     ` Phil Blundell
  0 siblings, 1 reply; 9+ messages in thread
From: Khem Raj @ 2012-02-09 19:54 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, Feb 9, 2012 at 10:33 AM, Phil Blundell <philb@gnu.org> wrote:
>
> Do you really want to put the development files in ${base_libdir}
> anyway?  I would have thought that even the most enthusiastic proponents
> of a standalone / would not expect to be able to use the compiler
> without /usr mounted.

eventually I think we will end up with everything being in ${base_libdir} :)
or we have to make sure that stripped out debug files and standard dev
libs and headers
go into /usr

this should be made an option before we go on making these changes IMOs
I like stuff in /usr and I don't so much care about / and /usr being
on different partitions



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

* Re: [PATCH] openssl: Move libcrypto to base_libdir
  2012-02-09 19:54   ` Khem Raj
@ 2012-02-10 13:37     ` Phil Blundell
  0 siblings, 0 replies; 9+ messages in thread
From: Phil Blundell @ 2012-02-10 13:37 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, 2012-02-09 at 11:54 -0800, Khem Raj wrote:
> eventually I think we will end up with everything being in ${base_libdir} :)
> or we have to make sure that stripped out debug files and standard dev
> libs and headers
> go into /usr

The .debug data does always go into /usr/lib/debug (even on micro).
That path is hardcoded in package.bbclass or some such place and doesn't
depend on ${prefix} or ${libdir}.

> this should be made an option before we go on making these changes IMOs
> I like stuff in /usr and I don't so much care about / and /usr being
> on different partitions

Yes, I agree.  As I mentioned the other day, I think having a
DISTRO_FEATURE for "/ usable without /usr mounted" would be a fine idea
and then all this sort of thing can be made conditional on that.

In this particular case I think there's also an underlying issue that,
for most people, having dhcp linked against openssl is probably just not
nececessary.  I assume this dependency is because of secure ddns or some
such thing, which is a fine feature but, I suspect, not one that the
majority of OE distros are actually using.

p.





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

* Re: [PATCH] openssl: Move libcrypto to base_libdir
  2012-02-21 22:40   ` Phil Blundell
@ 2012-02-21 22:53     ` Andrei Gherzan
  0 siblings, 0 replies; 9+ messages in thread
From: Andrei Gherzan @ 2012-02-21 22:53 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 2452 bytes --]

On Wed, Feb 22, 2012 at 00:40, Phil Blundell <philb@gnu.org> wrote:

> On Tue, 2012-02-21 at 14:24 -0800, Saul Wold wrote:
> > On 02/10/2012 08:01 AM, Andrei Gherzan wrote:
> > > This fix is for dhclient. It needs libcrypto at runtime and if
> > > libcrypto is in libdir, it's path can be inaccessible on systems
> > > where /usr is on nfs for example or dhclient is needed before
> > > /usr is mounted.
> > >
> > > Signed-off-by: Andrei Gherzan<andrei@gherzan.ro>
> > > ---
> > >   ...001-openssl-Move-libcrypto-to-base_libdir.patch |   61
> ++++++++++++++++++++
> > >   meta/recipes-connectivity/openssl/openssl.inc      |   10 +++-
> > >   .../recipes-connectivity/openssl/openssl_1.0.0g.bb |    2 +-
> > >   3 files changed, 71 insertions(+), 2 deletions(-)
> > >   create mode 100644
> meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch
> > >
> > > diff --git
> a/meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch
> b/meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch
> > > new file mode 100644
> > > index 0000000..b101d8c
> > > --- /dev/null
> > > +++
> b/meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch
> > > @@ -0,0 +1,61 @@
> > > +From ac1fe1490e997fb8fd91ec13b675d38efcc65775 Mon Sep 17 00:00:00 2001
> > > +From: Andrei Gherzan<andrei@gherzan.ro>
> > > +Date: Thu, 9 Feb 2012 00:03:38 +0200
> > > +Subject: [PATCH] openssl: Move libcrypto to base_libdir
> > > +
> > > +This fix is for dhclient. It needs libcrypto at runtime and if
> > > +libcrypto is in libdir, it's path can be inaccessible on systems
> > > +where /usr is on nfs for example or dhclient is needed before
> > > +/usr is mounted.
> > > +
> > Seems to be missing Upstream-Status
>
> Really?  There doesn't seem to be any genuine patch here.  As far as I
> can tell, that 0001-openssl-Move-libcrypto-to-base_libdir.patch file is
> some old version of the changeset which has somehow gotten checked in as
> a git format-patch'd diff.  I think it should be deleted, not given an
> upstream-status.
>
> p.
>
>
It was my mistake. git -A did the wrong thing. I will re-upload .

ag

>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>

[-- Attachment #2: Type: text/html, Size: 3416 bytes --]

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

* Re: [PATCH] openssl: Move libcrypto to base_libdir
  2012-02-21 22:24 ` Saul Wold
@ 2012-02-21 22:40   ` Phil Blundell
  2012-02-21 22:53     ` Andrei Gherzan
  0 siblings, 1 reply; 9+ messages in thread
From: Phil Blundell @ 2012-02-21 22:40 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Tue, 2012-02-21 at 14:24 -0800, Saul Wold wrote:
> On 02/10/2012 08:01 AM, Andrei Gherzan wrote:
> > This fix is for dhclient. It needs libcrypto at runtime and if
> > libcrypto is in libdir, it's path can be inaccessible on systems
> > where /usr is on nfs for example or dhclient is needed before
> > /usr is mounted.
> >
> > Signed-off-by: Andrei Gherzan<andrei@gherzan.ro>
> > ---
> >   ...001-openssl-Move-libcrypto-to-base_libdir.patch |   61 ++++++++++++++++++++
> >   meta/recipes-connectivity/openssl/openssl.inc      |   10 +++-
> >   .../recipes-connectivity/openssl/openssl_1.0.0g.bb |    2 +-
> >   3 files changed, 71 insertions(+), 2 deletions(-)
> >   create mode 100644 meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch
> >
> > diff --git a/meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch b/meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch
> > new file mode 100644
> > index 0000000..b101d8c
> > --- /dev/null
> > +++ b/meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch
> > @@ -0,0 +1,61 @@
> > +From ac1fe1490e997fb8fd91ec13b675d38efcc65775 Mon Sep 17 00:00:00 2001
> > +From: Andrei Gherzan<andrei@gherzan.ro>
> > +Date: Thu, 9 Feb 2012 00:03:38 +0200
> > +Subject: [PATCH] openssl: Move libcrypto to base_libdir
> > +
> > +This fix is for dhclient. It needs libcrypto at runtime and if
> > +libcrypto is in libdir, it's path can be inaccessible on systems
> > +where /usr is on nfs for example or dhclient is needed before
> > +/usr is mounted.
> > +
> Seems to be missing Upstream-Status

Really?  There doesn't seem to be any genuine patch here.  As far as I
can tell, that 0001-openssl-Move-libcrypto-to-base_libdir.patch file is
some old version of the changeset which has somehow gotten checked in as
a git format-patch'd diff.  I think it should be deleted, not given an
upstream-status.

p.





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

* Re: [PATCH] openssl: Move libcrypto to base_libdir
  2012-02-10 16:01 Andrei Gherzan
@ 2012-02-21 22:24 ` Saul Wold
  2012-02-21 22:40   ` Phil Blundell
  0 siblings, 1 reply; 9+ messages in thread
From: Saul Wold @ 2012-02-21 22:24 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 02/10/2012 08:01 AM, Andrei Gherzan wrote:
> This fix is for dhclient. It needs libcrypto at runtime and if
> libcrypto is in libdir, it's path can be inaccessible on systems
> where /usr is on nfs for example or dhclient is needed before
> /usr is mounted.
>
> Signed-off-by: Andrei Gherzan<andrei@gherzan.ro>
> ---
>   ...001-openssl-Move-libcrypto-to-base_libdir.patch |   61 ++++++++++++++++++++
>   meta/recipes-connectivity/openssl/openssl.inc      |   10 +++-
>   .../recipes-connectivity/openssl/openssl_1.0.0g.bb |    2 +-
>   3 files changed, 71 insertions(+), 2 deletions(-)
>   create mode 100644 meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch
>
> diff --git a/meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch b/meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch
> new file mode 100644
> index 0000000..b101d8c
> --- /dev/null
> +++ b/meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch
> @@ -0,0 +1,61 @@
> +From ac1fe1490e997fb8fd91ec13b675d38efcc65775 Mon Sep 17 00:00:00 2001
> +From: Andrei Gherzan<andrei@gherzan.ro>
> +Date: Thu, 9 Feb 2012 00:03:38 +0200
> +Subject: [PATCH] openssl: Move libcrypto to base_libdir
> +
> +This fix is for dhclient. It needs libcrypto at runtime and if
> +libcrypto is in libdir, it's path can be inaccessible on systems
> +where /usr is on nfs for example or dhclient is needed before
> +/usr is mounted.
> +
Seems to be missing Upstream-Status

Sau!

> +Signed-off-by: Andrei Gherzan<andrei@gherzan.ro>
> +---
> + meta/recipes-connectivity/openssl/openssl.inc      |    8 +++++++-
> + .../recipes-connectivity/openssl/openssl_1.0.0g.bb |    2 +-
> + 2 files changed, 8 insertions(+), 2 deletions(-)
> +
> +diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
> +index 771f146..76a28ff 100644
> +--- a/meta/recipes-connectivity/openssl/openssl.inc
> ++++ b/meta/recipes-connectivity/openssl/openssl.inc
> +@@ -36,10 +36,11 @@ export AS = "${CC} -c"
> + inherit pkgconfig siteinfo
> +
> + PACKAGES =+ "libcrypto libssl ${PN}-misc"
> +-FILES_libcrypto = "${libdir}/libcrypto.so.*"
> ++FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
> + FILES_libssl = "${libdir}/libssl.so.*"
> + FILES_${PN} =+ " ${libdir}/ssl/*"
> + FILES_${PN}-misc = "${libdir}/ssl/misc ${libdir}/ssl/openssl.cnf"
> ++FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
> +
> + do_configure_prepend_darwin () {
> + 	sed -i -e '/version-script=openssl\.ld/d' Configure
> +@@ -132,6 +133,11 @@ do_install () {
> + 	oe_libinstall -so libcrypto ${D}${libdir}
> + 	oe_libinstall -so libssl ${D}${libdir}
> +
> ++	# Moving libcrypto to /usr
> ++	mkdir -p ${D}/${base_libdir}/
> ++	mv ${D}${libdir}/libcrypto* ${D}${base_libdir}/
> ++	sed -i s/usr// ${D}/${libdir}/pkgconfig/libcrypto.pc
> ++
> + 	install -d ${D}${includedir}
> + 	cp --dereference -R include/openssl ${D}${includedir}
> + 	sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
> +diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb b/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
> +index 80dfcb3..8ffe931 100644
> +--- a/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
> ++++ b/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
> +@@ -6,7 +6,7 @@ DEPENDS += "ocf-linux"
> +
> + CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
> +
> +-PR = "${INC_PR}.0"
> ++PR = "${INC_PR}.1"
> +
> + LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
> +
> +--
> +1.7.5.4
> +
> diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
> index 771f146..eb6c5ea 100644
> --- a/meta/recipes-connectivity/openssl/openssl.inc
> +++ b/meta/recipes-connectivity/openssl/openssl.inc
> @@ -36,10 +36,11 @@ export AS = "${CC} -c"
>   inherit pkgconfig siteinfo
>
>   PACKAGES =+ "libcrypto libssl ${PN}-misc"
> -FILES_libcrypto = "${libdir}/libcrypto.so.*"
> +FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
>   FILES_libssl = "${libdir}/libssl.so.*"
>   FILES_${PN} =+ " ${libdir}/ssl/*"
>   FILES_${PN}-misc = "${libdir}/ssl/misc ${libdir}/ssl/openssl.cnf"
> +FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
>
>   do_configure_prepend_darwin () {
>   	sed -i -e '/version-script=openssl\.ld/d' Configure
> @@ -132,6 +133,13 @@ do_install () {
>   	oe_libinstall -so libcrypto ${D}${libdir}
>   	oe_libinstall -so libssl ${D}${libdir}
>
> +	# Moving libcrypto to /usr
> +	if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
> +		mkdir -p ${D}/${base_libdir}/
> +		mv ${D}${libdir}/libcrypto* ${D}${base_libdir}/
> +		sed -i s#libdir=\$\{exec_prefix\}\/lib#libdir=${base_libdir}# ${D}/${libdir}/pkgconfig/libcrypto.pc
> +	fi
> +
>   	install -d ${D}${includedir}
>   	cp --dereference -R include/openssl ${D}${includedir}
>   	sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
> diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb b/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
> index 80dfcb3..8ffe931 100644
> --- a/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
> +++ b/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
> @@ -6,7 +6,7 @@ DEPENDS += "ocf-linux"
>
>   CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
>
> -PR = "${INC_PR}.0"
> +PR = "${INC_PR}.1"
>
>   LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
>



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

* [PATCH] openssl: Move libcrypto to base_libdir
@ 2012-02-10 16:01 Andrei Gherzan
  2012-02-21 22:24 ` Saul Wold
  0 siblings, 1 reply; 9+ messages in thread
From: Andrei Gherzan @ 2012-02-10 16:01 UTC (permalink / raw)
  To: openembedded-core

This fix is for dhclient. It needs libcrypto at runtime and if
libcrypto is in libdir, it's path can be inaccessible on systems
where /usr is on nfs for example or dhclient is needed before
/usr is mounted.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
---
 ...001-openssl-Move-libcrypto-to-base_libdir.patch |   61 ++++++++++++++++++++
 meta/recipes-connectivity/openssl/openssl.inc      |   10 +++-
 .../recipes-connectivity/openssl/openssl_1.0.0g.bb |    2 +-
 3 files changed, 71 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch

diff --git a/meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch b/meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch
new file mode 100644
index 0000000..b101d8c
--- /dev/null
+++ b/meta/recipes-connectivity/openssl/0001-openssl-Move-libcrypto-to-base_libdir.patch
@@ -0,0 +1,61 @@
+From ac1fe1490e997fb8fd91ec13b675d38efcc65775 Mon Sep 17 00:00:00 2001
+From: Andrei Gherzan <andrei@gherzan.ro>
+Date: Thu, 9 Feb 2012 00:03:38 +0200
+Subject: [PATCH] openssl: Move libcrypto to base_libdir
+
+This fix is for dhclient. It needs libcrypto at runtime and if
+libcrypto is in libdir, it's path can be inaccessible on systems
+where /usr is on nfs for example or dhclient is needed before
+/usr is mounted.
+
+Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
+---
+ meta/recipes-connectivity/openssl/openssl.inc      |    8 +++++++-
+ .../recipes-connectivity/openssl/openssl_1.0.0g.bb |    2 +-
+ 2 files changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
+index 771f146..76a28ff 100644
+--- a/meta/recipes-connectivity/openssl/openssl.inc
++++ b/meta/recipes-connectivity/openssl/openssl.inc
+@@ -36,10 +36,11 @@ export AS = "${CC} -c"
+ inherit pkgconfig siteinfo
+ 
+ PACKAGES =+ "libcrypto libssl ${PN}-misc"
+-FILES_libcrypto = "${libdir}/libcrypto.so.*"
++FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
+ FILES_libssl = "${libdir}/libssl.so.*"
+ FILES_${PN} =+ " ${libdir}/ssl/*"
+ FILES_${PN}-misc = "${libdir}/ssl/misc ${libdir}/ssl/openssl.cnf"
++FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
+ 
+ do_configure_prepend_darwin () {
+ 	sed -i -e '/version-script=openssl\.ld/d' Configure
+@@ -132,6 +133,11 @@ do_install () {
+ 	oe_libinstall -so libcrypto ${D}${libdir}
+ 	oe_libinstall -so libssl ${D}${libdir}
+ 
++	# Moving libcrypto to /usr
++	mkdir -p ${D}/${base_libdir}/
++	mv ${D}${libdir}/libcrypto* ${D}${base_libdir}/
++	sed -i s/usr// ${D}/${libdir}/pkgconfig/libcrypto.pc
++
+ 	install -d ${D}${includedir}
+ 	cp --dereference -R include/openssl ${D}${includedir}
+ 	sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
+diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb b/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
+index 80dfcb3..8ffe931 100644
+--- a/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
++++ b/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
+@@ -6,7 +6,7 @@ DEPENDS += "ocf-linux"
+ 
+ CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
+ 
+-PR = "${INC_PR}.0"
++PR = "${INC_PR}.1"
+ 
+ LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
+ 
+-- 
+1.7.5.4
+
diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
index 771f146..eb6c5ea 100644
--- a/meta/recipes-connectivity/openssl/openssl.inc
+++ b/meta/recipes-connectivity/openssl/openssl.inc
@@ -36,10 +36,11 @@ export AS = "${CC} -c"
 inherit pkgconfig siteinfo
 
 PACKAGES =+ "libcrypto libssl ${PN}-misc"
-FILES_libcrypto = "${libdir}/libcrypto.so.*"
+FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
 FILES_libssl = "${libdir}/libssl.so.*"
 FILES_${PN} =+ " ${libdir}/ssl/*"
 FILES_${PN}-misc = "${libdir}/ssl/misc ${libdir}/ssl/openssl.cnf"
+FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
 
 do_configure_prepend_darwin () {
 	sed -i -e '/version-script=openssl\.ld/d' Configure
@@ -132,6 +133,13 @@ do_install () {
 	oe_libinstall -so libcrypto ${D}${libdir}
 	oe_libinstall -so libssl ${D}${libdir}
 
+	# Moving libcrypto to /usr
+	if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
+		mkdir -p ${D}/${base_libdir}/
+		mv ${D}${libdir}/libcrypto* ${D}${base_libdir}/
+		sed -i s#libdir=\$\{exec_prefix\}\/lib#libdir=${base_libdir}# ${D}/${libdir}/pkgconfig/libcrypto.pc
+	fi
+
 	install -d ${D}${includedir}
 	cp --dereference -R include/openssl ${D}${includedir}
 	sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb b/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
index 80dfcb3..8ffe931 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
@@ -6,7 +6,7 @@ DEPENDS += "ocf-linux"
 
 CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
 
-- 
1.7.5.4




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

end of thread, other threads:[~2012-02-21 23:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-09 18:30 [PATCH] openssl: Move libcrypto to base_libdir Andrei Gherzan
2012-02-09 18:33 ` Phil Blundell
2012-02-09 19:54   ` Khem Raj
2012-02-10 13:37     ` Phil Blundell
2012-02-09 18:34 ` Saul Wold
2012-02-10 16:01 Andrei Gherzan
2012-02-21 22:24 ` Saul Wold
2012-02-21 22:40   ` Phil Blundell
2012-02-21 22:53     ` Andrei Gherzan

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.