openldap: update version to 2.4.39
PATCH 1/1 openldap: update version to 2.4.39
From: Jackie Huang <[email protected]>
Changed:
* Move slapd from ${libexecdir} to ${sbin}:
Installing slapd under ${sbin} is more FHS and LSB compliance
* Manage init script by inheriting update-rc.d, than postinst
* Add status for initscript
* Rename the patch named with commit id to gnutls-Avoid-use-of-deprecated-function.patch
* Add a patch for CVE-2013-4449
* Add a patch to use /dev/urandom for entropy
* Allow tls obtains random bits from /dev/urandom:
The URANDOM_DEVICE is undefined for cross-compiling, define it as /dev/urandom to allow tls obtains random bits from /dev/urandom.
* Add PACKAGECONFIG for mdb, ndb, relay and sock
* Remove unsupported config for ldbm
* Add license file
---
meta-oe/licenses/OpenLDAP | 47 +++++++++++++
.../ITS-7723-fix-reference-counting.patch | 38 ++++++++++
.../gnutls-Avoid-use-of-deprecated-function.patch} | 0
.../initscript | 10 ++-
.../install-strip.patch | 0
.../kill-icu.patch | 0
.../openldap-2.4.28-gnutls-gcrypt.patch | 0
.../openldap-m4-pthread.patch | 0
.../openldap/openldap-2.4.39/use-urandom.patch | 38 ++++++++++
.../{openldap_2.4.23.bb => openldap_2.4.39.bb} | 81 +++++++++++-----------
10 files changed, 172 insertions(+), 42 deletions(-)
create mode 100644 meta-oe/licenses/OpenLDAP
create mode 100644 meta-oe/recipes-support/openldap/openldap-2.4.39/ITS-7723-fix-reference-counting.patch
rename meta-oe/recipes-support/openldap/{openldap-2.4.23/0205e83f4670d10ad3c6ae4b8fc5ec1d0c7020c0.patch => openldap-2.4.39/gnutls-Avoid-use-of-deprecated-function.patch} (100%)
rename meta-oe/recipes-support/openldap/{openldap-2.4.23 => openldap-2.4.39}/initscript (71%)
rename meta-oe/recipes-support/openldap/{openldap-2.4.23 => openldap-2.4.39}/install-strip.patch (100%)
rename meta-oe/recipes-support/openldap/{openldap-2.4.23 => openldap-2.4.39}/kill-icu.patch (100%)
rename meta-oe/recipes-support/openldap/{openldap-2.4.23 => openldap-2.4.39}/openldap-2.4.28-gnutls-gcrypt.patch (100%)
rename meta-oe/recipes-support/openldap/{openldap-2.4.23 => openldap-2.4.39}/openldap-m4-pthread.patch (100%)
create mode 100644 meta-oe/recipes-support/openldap/openldap-2.4.39/use-urandom.patch
rename meta-oe/recipes-support/openldap/{openldap_2.4.23.bb => openldap_2.4.39.bb} (75%)meta-oe/licenses/OpenLDAP new file +47 -0
@@ -0,0 +1,47 @@ +The OpenLDAP Public License + Version 2.8, 17 August 2003 + +Redistribution and use of this software and associated documentation +("Software"), with or without modification, are permitted provided +that the following conditions are met: + +1. Redistributions in source form must retain copyright statements + and notices, + +2. Redistributions in binary form must reproduce applicable copyright + statements and notices, this list of conditions, and the following + disclaimer in the documentation and/or other materials provided + with the distribution, and + +3. Redistributions must contain a verbatim copy of this document. + +The OpenLDAP Foundation may revise this license from time to time. +Each revision is distinguished by a version number. You may use +this Software under terms of this license revision or under the +terms of any subsequent revision of the license. + +THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS +CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +SHALL THE OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S) +OR OWNER(S) OF THE SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +The names of the authors and copyright holders must not be used in +advertising or otherwise to promote the sale, use or other dealing +in this Software without specific, written prior permission. Title +to copyright in this Software shall at all times remain with copyright +holders. + +OpenLDAP is a registered trademark of the OpenLDAP Foundation. + +Copyright 1999-2003 The OpenLDAP Foundation, Redwood City, +California, USA. All Rights Reserved. Permission to copy and +distribute verbatim copies of this document is granted.
meta-oe/recipes-support/openldap/openldap-2.4.39/ITS-7723-fix-reference-counting.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 59688044386dfeee0c837a15133f4e878f1bb661 Mon Sep 17 00:00:00 2001 +From: Jan Synacek <[email protected]> +Date: Wed, 13 Nov 2013 09:06:54 +0100 +Subject: [PATCH] ITS#7723 fix reference counting + +Upstream-Status: Backport + +Commit 59688044386dfeee0c837a15133f4e878f1bb661 upstream + +Signed-off-by: Yue Tao <[email protected]> +Signed-off-by: Jackie Huang <[email protected]> +--- + libraries/librewrite/session.c | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/libraries/librewrite/session.c b/libraries/librewrite/session.c +index fcc7698..02fc054 100644 +--- a/libraries/librewrite/session.c ++++ b/libraries/librewrite/session.c +@@ -161,6 +161,7 @@ rewrite_session_find( + #ifdef USE_REWRITE_LDAP_PVT_THREADS + if ( session ) { + ldap_pvt_thread_mutex_lock( &session->ls_mutex ); ++ session->ls_count++; + } + ldap_pvt_thread_rdwr_runlock( &info->li_cookies_mutex ); + #endif /* USE_REWRITE_LDAP_PVT_THREADS */ +@@ -178,6 +179,7 @@ rewrite_session_return( + ) + { + assert( session != NULL ); ++ session->ls_count--; + ldap_pvt_thread_mutex_unlock( &session->ls_mutex ); + } + +-- +1.7.5.4 +
meta-oe/recipes-support/openldap/openldap-2.4.39/gnutls-Avoid-use-of-deprecated-function.patch renamed from meta-oe/recipes-support/openldap/openldap-2.4.23/0205e83f4670d10ad3c6ae4b8fc5ec1d0c7020c0.patch +0 -0
meta-oe/recipes-support/openldap/openldap-2.4.39/initscript renamed from meta-oe/recipes-support/openldap/openldap-2.4.23/initscript +8 -2
@@ -5,8 +5,10 @@ # > update-rc.d openldap defaults 60 # +# Source function library. +. /etc/init.d/functions -slapd=/usr/libexec/slapd +slapd=/usr/sbin/slapd test -x "$slapd" || exit 0
@@ -21,8 +23,12 @@ case "$1" in start-stop-daemon --stop --quiet --pidfile /var/run/slapd.pid echo "." ;; + status) + status $slapd; + exit $? + ;; *) - echo "Usage: /etc/init.d/openldap {start|stop}" + echo "Usage: /etc/init.d/openldap {start|stop|status}" exit 1 esac
meta-oe/recipes-support/openldap/openldap-2.4.39/install-strip.patch renamed from meta-oe/recipes-support/openldap/openldap-2.4.23/install-strip.patch +0 -0
meta-oe/recipes-support/openldap/openldap-2.4.39/kill-icu.patch renamed from meta-oe/recipes-support/openldap/openldap-2.4.23/kill-icu.patch +0 -0
meta-oe/recipes-support/openldap/openldap-2.4.39/openldap-2.4.28-gnutls-gcrypt.patch renamed from meta-oe/recipes-support/openldap/openldap-2.4.23/openldap-2.4.28-gnutls-gcrypt.patch +0 -0
meta-oe/recipes-support/openldap/openldap-2.4.39/openldap-m4-pthread.patch renamed from meta-oe/recipes-support/openldap/openldap-2.4.23/openldap-m4-pthread.patch +0 -0
meta-oe/recipes-support/openldap/openldap-2.4.39/use-urandom.patch new file +38 -0
@@ -0,0 +1,38 @@ +openldap: assume /dev/urandom exists + +When we are cross-compiling, we want to assume +that /dev/urandom exists. We could change the source +code to look for it, but this is the easy way out. + +Upstream-Status: pending + +Signed-off-by: Joe Slater <[email protected]> + + +--- a/configure.in ++++ b/configure.in +@@ -2142,8 +2142,8 @@ fi + + dnl ---------------------------------------------------------------- + dnl Check for entropy sources ++dev=no + if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then +- dev=no + if test -r /dev/urandom ; then + dev="/dev/urandom"; + elif test -r /idev/urandom ; then +@@ -2156,9 +2156,11 @@ if test $cross_compiling != yes && test + dev="/idev/random"; + fi + +- if test $dev != no ; then +- AC_DEFINE_UNQUOTED(URANDOM_DEVICE,"$dev",[set to urandom device]) +- fi ++elif test $cross_compiling == yes ; then ++ dev="/dev/urandom"; ++fi ++if test $dev != no ; then ++ AC_DEFINE_UNQUOTED(URANDOM_DEVICE,"$dev",[set to urandom device]) + fi + + dnl ----------------------------------------------------------------
meta-oe/recipes-support/openldap/openldap_2.4.39.bb renamed from meta-oe/recipes-support/openldap/openldap_2.4.23.bb +41 -40
169 lines not on this page · raw message
Signature · 1 line
2.0.0
Quoted 17 lines · On Mon, Sep 29, 2014 at 06:09:10AM -0400, [email protected] wrote:
From: Jackie Huang <[email protected]>
Changed:
* Move slapd from ${libexecdir} to ${sbin}:
Installing slapd under ${sbin} is more FHS and LSB compliance
* Manage init script by inheriting update-rc.d, than postinst
* Add status for initscript
* Rename the patch named with commit id to gnutls-Avoid-use-of-deprecated-function.patch
* Add a patch for CVE-2013-4449
* Add a patch to use/dev/urandomfor entropy
* Allow tls obtains random bits from/dev/urandom:
TheURANDOM_DEVICEis undefined for cross-compiling, define it as/dev/urandomto allow tls obtains random bits from/dev/urandom.
* Add PACKAGECONFIG for mdb, ndb, relay and sock
* Remove unsupported config for ldbm
* Add license file
Can you please resolve:
WARNING: QA Issue: openldap: Files/directories were installed but not shipped
/run [installed-vs-shipped]
Quoted 28 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, September 30, 2014 8:31 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 17 lines · On Mon, Sep 29, 2014 at 06:09:10AM -0400, [email protected] wrote:
From: Jackie Huang <[email protected]>
Changed:
* Move slapd from ${libexecdir} to ${sbin}:
Installing slapd under ${sbin} is more FHS and LSB compliance
* Manage init script by inheriting update-rc.d, than postinst
* Add status for initscript
* Rename the patch named with commit id to gnutls-Avoid-use-of-deprecated-function.patch
* Add a patch for CVE-2013-4449
* Add a patch to use/dev/urandomfor entropy
* Allow tls obtains random bits from/dev/urandom:
TheURANDOM_DEVICEis undefined for cross-compiling, define it as/dev/urandomto allow tls obtains random bits from/dev/urandom.
* Add PACKAGECONFIG for mdb, ndb, relay and sock
* Remove unsupported config for ldbm
* Add license file
Quoted 3 lines
Can you please resolve:
WARNING: QA Issue: openldap: Files/directories were installed but not shipped
/run [installed-vs-shipped]
Could you show me how to reproduce this? I don't see this warning (I set installed-vs-shipped in ERROR_QA in fact, so it should be an error), and I checked that there is no /run directory generated for openldap.
Thanks,
Jackie
Quoted 28 lines · Jie (Jackie)
Quoted 28 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, September 30, 2014 8:31 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 17 lines · On Mon, Sep 29, 2014 at 06:09:10AM -0400, [email protected] wrote:
From: Jackie Huang <[email protected]>
Changed:
* Move slapd from ${libexecdir} to ${sbin}:
Installing slapd under ${sbin} is more FHS and LSB compliance
* Manage init script by inheriting update-rc.d, than postinst
* Add status for initscript
* Rename the patch named with commit id to gnutls-Avoid-use-of-deprecated-function.patch
* Add a patch for CVE-2013-4449
* Add a patch to use/dev/urandomfor entropy
* Allow tls obtains random bits from/dev/urandom:
TheURANDOM_DEVICEis undefined for cross-compiling, define it as/dev/urandomto allow tls obtains random bits from/dev/urandom.
* Add PACKAGECONFIG for mdb, ndb, relay and sock
* Remove unsupported config for ldbm
* Add license file
Quoted 7 lines
Quoted 3 lines
Can you please resolve:
WARNING: QA Issue: openldap: Files/directories were installed but not shipped
/run [installed-vs-shipped]Could you show me how to reproduce this? I don't see this warning (I set installed-vs-shipped in
ERROR_QAin fact, so it should be an error), and I checked that there is no /run directory generated for openldap.
You can try to configure your builds like world builds are:
http://www.openembedded.org/wiki/Bitbake_World_Status
My guess would be systemd in DISTRO_FEATURES (if you don't have it already).
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 44 lines
-----Original Message-----
From: Martin Jansa [mailto:[email protected]]
Sent: Tuesday, September 30, 2014 10:14 AM
To: Huang, Jie (Jackie)
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 34 lines · Jie (Jackie)
Quoted 33 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, September 30, 2014 8:31 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 17 lines · On Mon, Sep 29, 2014 at 06:09:10AM -0400, [email protected] wrote:
From: Jackie Huang <[email protected]>
Changed:
* Move slapd from ${libexecdir} to ${sbin}:
Installing slapd under ${sbin} is more FHS and LSB compliance
* Manage init script by inheriting update-rc.d, than postinst
* Add status for initscript
* Rename the patch named with commit id to gnutls-Avoid-use-of-deprecated-function.patch
* Add a patch for CVE-2013-4449
* Add a patch to use/dev/urandomfor entropy
* Allow tls obtains random bits from/dev/urandom:
TheURANDOM_DEVICEis undefined for cross-compiling, define it as/dev/urandomto allow tls obtains random bits from/dev/urandom.
* Add PACKAGECONFIG for mdb, ndb, relay and sock
* Remove unsupported config for ldbm
* Add license fileCan you please resolve:
WARNING: QA Issue: openldap: Files/directories were installed but not shipped
/run [installed-vs-shipped]
Quoted 8 lines
Quoted 3 lines
Could you show me how to reproduce this? I don't see this warning (I set installed-vs-shipped in
ERROR_QAin fact, so it should be an error), and I checked that there is no /run directory generated for openldap.You can try to configure your builds like world builds are:
http://www.openembedded.org/wiki/Bitbake_World_StatusMy guess would be systemd in
DISTRO_FEATURES(if you don't have it already).
Yeah, it should be the case, I will check and fix it.
Thanks,
Jackie
Quoted 3 lines
--
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 60 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Huang, Jie (Jackie)
Sent: Tuesday, September 30, 2014 10:28 AM
To: Martin Jansa
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 48 lines
-----Original Message-----
From: Martin Jansa [mailto:[email protected]]
Sent: Tuesday, September 30, 2014 10:14 AM
To: Huang, Jie (Jackie)
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 30 lines · Jie (Jackie)
Quoted 30 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, September 30, 2014 8:31 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 17 lines · On Mon, Sep 29, 2014 at 06:09:10AM -0400, [email protected] wrote:
From: Jackie Huang <[email protected]>
Changed:
* Move slapd from ${libexecdir} to ${sbin}:
Installing slapd under ${sbin} is more FHS and LSB compliance
* Manage init script by inheriting update-rc.d, than postinst
* Add status for initscript
* Rename the patch named with commit id to gnutls-Avoid-use-of-deprecated-function.patch
* Add a patch for CVE-2013-4449
* Add a patch to use/dev/urandomfor entropy
* Allow tls obtains random bits from/dev/urandom:
TheURANDOM_DEVICEis undefined for cross-compiling, define it as/dev/urandomto allow tls obtains random bits from/dev/urandom.
* Add PACKAGECONFIG for mdb, ndb, relay and sock
* Remove unsupported config for ldbm
* Add license fileQuoted 7 lines
Quoted 3 lines
Can you please resolve:
WARNING: QA Issue: openldap: Files/directories were installed but not shipped
/run [installed-vs-shipped]Could you show me how to reproduce this? I don't see this warning (I set installed-vs-shipped in
ERROR_QAin fact, so it should be an error), and I checked that there is no /run directory generated for openldap.You can try to configure your builds like world builds are:
http://www.openembedded.org/wiki/Bitbake_World_Status
Sorry I couldn't find configure infos in this page, could you show me a local.conf or or something like that?
Quoted 4 lines
Quoted 2 lines
My guess would be systemd in
DISTRO_FEATURES(if you don't have it already).Yeah, it should be the case, I will check and fix it.
I added system in DISTRO_FEATURES but still can't reproduce it.
Thanks,
Jackie
Quoted 12 lines
Thanks,
JackieQuoted 3 lines
--
Martin 'JaMa' Jansa jabber: [email protected]--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 58 lines · Jie (Jackie)
Quoted 58 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Huang, Jie (Jackie)
Sent: Tuesday, September 30, 2014 10:28 AM
To: Martin Jansa
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 46 lines
-----Original Message-----
From: Martin Jansa [mailto:[email protected]]
Sent: Tuesday, September 30, 2014 10:14 AM
To: Huang, Jie (Jackie)
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 37 lines · Jie (Jackie)
Quoted 30 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, September 30, 2014 8:31 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 17 lines · On Mon, Sep 29, 2014 at 06:09:10AM -0400, [email protected] wrote:
From: Jackie Huang <[email protected]>
Changed:
* Move slapd from ${libexecdir} to ${sbin}:
Installing slapd under ${sbin} is more FHS and LSB compliance
* Manage init script by inheriting update-rc.d, than postinst
* Add status for initscript
* Rename the patch named with commit id to gnutls-Avoid-use-of-deprecated-function.patch
* Add a patch for CVE-2013-4449
* Add a patch to use/dev/urandomfor entropy
* Allow tls obtains random bits from/dev/urandom:
TheURANDOM_DEVICEis undefined for cross-compiling, define it as/dev/urandomto allow tls obtains random bits from/dev/urandom.
* Add PACKAGECONFIG for mdb, ndb, relay and sock
* Remove unsupported config for ldbm
* Add license fileQuoted 3 lines
Can you please resolve:
WARNING: QA Issue: openldap: Files/directories were installed but not shipped
/run [installed-vs-shipped]Could you show me how to reproduce this? I don't see this warning (I set installed-vs-shipped in
ERROR_QAin fact, so it should be an error), and I checked that there is no /run directory generated for openldap.
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
You can try to configure your builds like world builds are:
http://www.openembedded.org/wiki/Bitbake_World_StatusSorry I couldn't find configure infos in this page, could you show me a local.conf or or something like that?
http://logs.nslu2-linux.org/buildlogs/oe/world/log.world.20140929_053035.log/world_fixes.inc
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
My guess would be systemd in
DISTRO_FEATURES(if you don't have it already).Yeah, it should be the case, I will check and fix it.
I added system in
DISTRO_FEATURESbut still can't reproduce it.
Do you have some PACKAGECONFIG changes in your setup or just default?
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 73 lines
-----Original Message-----
From: Martin Jansa [mailto:[email protected]]
Sent: Tuesday, September 30, 2014 12:06 PM
To: Huang, Jie (Jackie)
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 63 lines · Jie (Jackie)
Quoted 63 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Huang, Jie (Jackie)
Sent: Tuesday, September 30, 2014 10:28 AM
To: Martin Jansa
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 49 lines
-----Original Message-----
From: Martin Jansa [mailto:[email protected]]
Sent: Tuesday, September 30, 2014 10:14 AM
To: Huang, Jie (Jackie)
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 39 lines · Jie (Jackie)
Quoted 32 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, September 30, 2014 8:31 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 11 lines · On Mon, Sep 29, 2014 at 06:09:10AM -0400, [email protected] wrote:
From: Jackie Huang <[email protected]>
Changed:
* Move slapd from ${libexecdir} to ${sbin}:
Installing slapd under ${sbin} is more FHS and LSB
compliance
* Manage init script by inheriting update-rc.d, than
postinst
* Add status for initscript
* Rename the patch named with commit id to gnutls-Avoid-use-of-deprecated-function.patchQuoted 8 lines
* Add a patch for CVE-2013-4449
* Add a patch to use/dev/urandomfor entropy
* Allow tls obtains random bits from/dev/urandom:
TheURANDOM_DEVICEis undefined for cross-compiling, define it as/dev/urandomto allow tls obtains random bits from/dev/urandom.
* Add PACKAGECONFIG for mdb, ndb, relay and sock
* Remove unsupported config for ldbm
* Add license fileQuoted 3 lines
Can you please resolve:
WARNING: QA Issue: openldap: Files/directories were installed but not shipped
/run [installed-vs-shipped]Could you show me how to reproduce this? I don't see this
warning (I set installed-vs-shipped inERROR_QAin fact, so it
should be an error), and I checked that there is no /run directory generated for openldap.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
You can try to configure your builds like world builds are:
http://www.openembedded.org/wiki/Bitbake_World_StatusSorry I couldn't find configure infos in this page, could you show me a local.conf or or something like that?
http://logs.nslu2-linux.org/buildlogs/oe/world/log.world.20140929_053035.log/world_fixes.inc
I added this into my local.conf but could still not reproduce it, are you sure you see this warning in the world builds with my patch? I checked the log and didn't find the warning you mentioned:
$ wget http://logs.nslu2-linux.org/buildlogs/oe/world/log.world.20140929_041409.log/bitbake.world.log $ grep WARNING bitbake.world.log |grep openldap $
And I checked that the following in the recipe should be able to avoid such QA issue:
+ rmdir "${D}${localstatedir}/run"
+ rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
My guess would be systemd in
DISTRO_FEATURES(if you don't have it already).Yeah, it should be the case, I will check and fix it.
I added system in
DISTRO_FEATURESbut still can't reproduce it.Do you have some PACKAGECONFIG changes in your setup or just default?
No, I just use the default.
Thanks,
Jackie
Quoted 3 lines
--
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 79 lines · Jie (Jackie)
Quoted 79 lines
-----Original Message-----
From: Martin Jansa [mailto:[email protected]]
Sent: Tuesday, September 30, 2014 12:06 PM
To: Huang, Jie (Jackie)
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 68 lines · Jie (Jackie)
Quoted 65 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Huang, Jie (Jackie)
Sent: Tuesday, September 30, 2014 10:28 AM
To: Martin Jansa
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 51 lines
-----Original Message-----
From: Martin Jansa [mailto:[email protected]]
Sent: Tuesday, September 30, 2014 10:14 AM
To: Huang, Jie (Jackie)
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 32 lines · Jie (Jackie)
Quoted 32 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, September 30, 2014 8:31 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 19 lines · On Mon, Sep 29, 2014 at 06:09:10AM -0400, [email protected] wrote:
From: Jackie Huang <[email protected]>
Changed:
* Move slapd from ${libexecdir} to ${sbin}:
Installing slapd under ${sbin} is more FHS and LSB
compliance
* Manage init script by inheriting update-rc.d, than
postinst
* Add status for initscript
* Rename the patch named with commit id to gnutls-Avoid-use-of-deprecated-function.patch
* Add a patch for CVE-2013-4449
* Add a patch to use/dev/urandomfor entropy
* Allow tls obtains random bits from/dev/urandom:
TheURANDOM_DEVICEis undefined for cross-compiling, define it as/dev/urandomto allow tls obtains random bits from/dev/urandom.
* Add PACKAGECONFIG for mdb, ndb, relay and sock
* Remove unsupported config for ldbm
* Add license fileQuoted 7 lines
Quoted 3 lines
Can you please resolve:
WARNING: QA Issue: openldap: Files/directories were installed but not shipped
/run [installed-vs-shipped]Could you show me how to reproduce this? I don't see this
warning (I set installed-vs-shipped inERROR_QAin fact, so it
should be an error), and I checked that there is no /run directory generated for openldap.You can try to configure your builds like world builds are:
http://www.openembedded.org/wiki/Bitbake_World_StatusSorry I couldn't find configure infos in this page, could you show me a local.conf or or something like that?
Quoted 8 lines
Quoted 1 line
http://logs.nslu2-linux.org/buildlogs/oe/world/log.world.20140929_053035.log/world_fixes.inc
I added this into my local.conf but could still not reproduce it, are you sure you see this warning in the world builds with my patch? I checked the log and didn't find the warning you mentioned:
$ wget http://logs.nslu2-linux.org/buildlogs/oe/world/log.world.20140929_041409.log/bitbake.world.log $ grep WARNING bitbake.world.log |grep openldap $
Yes, I was copy pasting it from next build (which haven't finished for all MACHINEs yet - so it wasn't published yet)
NOTE: recipe openldap-2.4.39-r0: task do_populate_sysroot: Started
NOTE: recipe openldap-2.4.39-r0: task do_populate_sysroot: Succeeded
NOTE: Running task 9290 of 29472 (ID: 27688, virtual:native:/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-devtools/swig/swig_3.0.2.bb, do_populate_sysroot)
NOTE: recipe swig-native-3.0.2-r0: task do_populate_sysroot: Started
NOTE: recipe swig-native-3.0.2-r0: task do_populate_sysroot: Succeeded
NOTE: Running task 9291 of 29472 (ID: 5067, /home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-support/opencv/opencv_3.0.0.bb, do_configure)
NOTE: recipe opencv-3.0.0+gitAUTOINC+fb9a143429-r0: task do_configure: Started
WARNING: QA Issue: openldap: Files/directories were installed but not shipped
/run [installed-vs-shipped]
NOTE: recipe imagemagick-6.8.8-r0: task do_configure: Succeeded
NOTE: Running noexec task 9292 of 29472 (ID: 27693, virtual:native:/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-devtools/swig/swig_3.0.2.bb, do_build)
NOTE: Running task 9293 of 29472 (ID: 27694, virtual:native:/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-devtools/swig/swig_3.0.2.bb, do_rm_work)
NOTE: recipe swig-native-3.0.2-r0: task do_rm_work: Started
NOTE: recipe swig-native-3.0.2-r0: task do_rm_work: Succeeded
NOTE: Running task 9294 of 29472 (ID: 24418, /home/jenkins/oe/world/shr-core/openembedded-core/meta/recipes-devtools/rpm/rpm_5.4.14.bb, do_populate_lic)
NOTE: recipe opencv-3.0.0+gitAUTOINC+fb9a143429-r0: task do_configure: Succeeded
NOTE: Running task 9295 of 29472 (ID: 5068, /home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-support/opencv/opencv_3.0.0.bb, do_compile)
NOTE: recipe rpm-5.4.14-r0: task do_populate_lic: Started
NOTE: recipe openldap-2.4.39-r0: task do_package: Succeeded
NOTE: Running task 9296 of 29472 (ID: 11252, /home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-support/openldap/openldap_2.4.39.bb, do_packagedata)
NOTE: recipe opencv-3.0.0+gitAUTOINC+fb9a143429-r0: task do_compile: Started
NOTE: recipe openldap-2.4.39-r0: task do_packagedata: Started
Review
Quoted 4 lines
And I checked that the following in the recipe should be able to avoid such QA issue:
(quoted diff) +2
-0+ rmdir "${D}${localstatedir}/run" + rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
It's just /run without ${localstatedir} (and I don't think that localstatedir is empty in my setup)
Quoted 16 lines
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
My guess would be systemd in
DISTRO_FEATURES(if you don't have it already).Yeah, it should be the case, I will check and fix it.
I added system in
DISTRO_FEATURESbut still can't reproduce it.Do you have some PACKAGECONFIG changes in your setup or just default?
No, I just use the default.
Thanks,
JackieQuoted 3 lines
--
Martin 'JaMa' Jansa jabber: [email protected]
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 137 lines
-----Original Message-----
From: Martin Jansa [mailto:[email protected]]
Sent: Tuesday, September 30, 2014 11:34 PM
To: Huang, Jie (Jackie)
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 78 lines · Jie (Jackie)
Quoted 78 lines
-----Original Message-----
From: Martin Jansa [mailto:[email protected]]
Sent: Tuesday, September 30, 2014 12:06 PM
To: Huang, Jie (Jackie)
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 67 lines · Jie (Jackie)
Quoted 66 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Huang, Jie (Jackie)
Sent: Tuesday, September 30, 2014 10:28 AM
To: Martin Jansa
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 52 lines
-----Original Message-----
From: Martin Jansa [mailto:[email protected]]
Sent: Tuesday, September 30, 2014 10:14 AM
To: Huang, Jie (Jackie)
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to 2.4.39Quoted 33 lines · Jie (Jackie)
Quoted 33 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, September 30, 2014 8:31 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] openldap: update version to
2.4.39Quoted 19 lines · On Mon, Sep 29, 2014 at 06:09:10AM -0400, [email protected] wrote:
From: Jackie Huang <[email protected]>
Changed:
* Move slapd from ${libexecdir} to ${sbin}:
Installing slapd under ${sbin} is more FHS and LSB
compliance
* Manage init script by inheriting update-rc.d, than
postinst
* Add status for initscript
* Rename the patch named with commit id to gnutls-Avoid-use-of-deprecated-function.patch
* Add a patch for CVE-2013-4449
* Add a patch to use/dev/urandomfor entropy
* Allow tls obtains random bits from/dev/urandom:
TheURANDOM_DEVICEis undefined for cross-compiling, define it as/dev/urandomto allow tls obtains random bits from/dev/urandom.
* Add PACKAGECONFIG for mdb, ndb, relay and sock
* Remove unsupported config for ldbm
* Add license fileQuoted 7 lines
Quoted 3 lines
Can you please resolve:
WARNING: QA Issue: openldap: Files/directories were installed but not shipped
/run [installed-vs-shipped]Could you show me how to reproduce this? I don't see this
warning (I set installed-vs-shipped inERROR_QAin fact, so
it should be an error), and I checked that there is no /run directory generated for openldap.You can try to configure your builds like world builds are:
http://www.openembedded.org/wiki/Bitbake_World_StatusQuoted 8 lines
Quoted 5 lines
Quoted 2 lines
Sorry I couldn't find configure infos in this page, could you show me a local.conf or or something like that?
http://logs.nslu2-linux.org/buildlogs/oe/world/log.world.20140929_05
3035.log/world_fixes.incI added this into my local.conf but could still not reproduce it, are
you sure you see this warning in the world builds with my patch? I checked the log and didn't findthe warning you mentioned:
Quoted 5 lines
$ wget http://logs.nslu2-linux.org/buildlogs/oe/world/log.world.20140929_0414 09.log/bitbake.world.log $ grep WARNING bitbake.world.log |grep openldap $Yes, I was copy pasting it from next build (which haven't finished for all MACHINEs yet - so it wasn't published yet)
NOTE: recipe openldap-2.4.39-r0: task
do_populate_sysroot: Started
NOTE: recipe openldap-2.4.39-r0: taskdo_populate_sysroot: Succeeded
NOTE: Running task 9290 of 29472 (ID: 27688, virtual:native:/home/jenkins/oe/world/shr-core/meta- openembedded/meta-oe/recipes-devtools/swig/swig_3.0.2.bb,do_populate_sysroot)
NOTE: recipe swig-native-3.0.2-r0: taskdo_populate_sysroot: Started
NOTE: recipe swig-native-3.0.2-r0: taskdo_populate_sysroot: Succeeded
NOTE: Running task 9291 of 29472 (ID: 5067,/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-support/opencv/opencv_3.0.0.bb,do_configure)
NOTE: recipe opencv-3.0.0+gitAUTOINC+fb9a143429-r0: taskdo_configure: Started
WARNING: QA Issue: openldap: Files/directories were installed but not shipped
/run [installed-vs-shipped]
NOTE: recipe imagemagick-6.8.8-r0: taskdo_configure: Succeeded
NOTE: Running noexec task 9292 of 29472 (ID: 27693, virtual:native:/home/jenkins/oe/world/shr- core/meta-openembedded/meta-oe/recipes-devtools/swig/swig_3.0.2.bb,do_build)
NOTE: Running task 9293 of 29472 (ID: 27694, virtual:native:/home/jenkins/oe/world/shr-core/meta- openembedded/meta-oe/recipes-devtools/swig/swig_3.0.2.bb,do_rm_work)
NOTE: recipe swig-native-3.0.2-r0: taskdo_rm_work: Started
NOTE: recipe swig-native-3.0.2-r0: taskdo_rm_work: Succeeded
NOTE: Running task 9294 of 29472 (ID: 24418,/home/jenkins/oe/world/shr-core/openembedded-core/meta/recipes-devtools/rpm/rpm_5.4.14.bb,do_populate_lic)
NOTE: recipe opencv-3.0.0+gitAUTOINC+fb9a143429-r0: taskdo_configure: Succeeded
NOTE: Running task 9295 of 29472 (ID: 5068,/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-support/opencv/opencv_3.0.0.bb,do_compile)
NOTE: recipe rpm-5.4.14-r0: taskdo_populate_lic: Started
NOTE: recipe openldap-2.4.39-r0: taskdo_package: Succeeded
NOTE: Running task 9296 of 29472 (ID: 11252,/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-support/openldap/openldap_2.4.39.bb,do_packagedata)
NOTE: recipe opencv-3.0.0+gitAUTOINC+fb9a143429-r0: taskdo_compile: Started
NOTE: recipe openldap-2.4.39-r0: taskdo_packagedata: StartedQuoted 1 line
Quoted 5 lines
Review
Quoted 3 lines
And I checked that the following in the recipe should be able to avoid such QA issue:
(quoted diff) +2
-0+ rmdir "${D}${localstatedir}/run" + rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"It's just /run without ${localstatedir} (and I don't think that localstatedir is empty in my setup)
It's odd, but even if localstatedir is empty, it should also be removed in do_install, and I don't' think Openldap install /run directly:
$ grep -r 'MKDIR.*run' openldap-2.4.39/* openldap-2.4.39/servers/slapd/Makefile: -$(MKDIR) $(DESTDIR)$(localstatedir)/run openldap-2.4.39/servers/slapd/Makefile.in: -$(MKDIR) $(DESTDIR)$(localstatedir)/run
Anyway, could you help check if it work if I change it as:
- rmdir "${D}${localstatedir}/run"
+ rmdir "${D}${localstatedir}/run ${D}/run"
Thanks,
Jackie
Quoted 20 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines
My guess would be systemd in
DISTRO_FEATURES(if you don't have it already).Yeah, it should be the case, I will check and fix it.
Quoted 12 lines
Quoted 3 lines
Quoted 1 line
I added system in
DISTRO_FEATURESbut still can't reproduce it.Do you have some PACKAGECONFIG changes in your setup or just default?
No, I just use the default.
Thanks,
JackieQuoted 3 lines
--
Martin 'JaMa' Jansa jabber: [email protected]--
Martin 'JaMa' Jansa jabber: [email protected]