* openldap and icu
@ 2013-04-18 21:11 Marcin Juszkiewicz
2013-04-19 9:44 ` [meta-oe][PATCH] openldap: do not link to ICU Marcin Juszkiewicz
2013-04-26 7:14 ` openldap and icu Khem Raj
0 siblings, 2 replies; 3+ messages in thread
From: Marcin Juszkiewicz @ 2013-04-18 21:11 UTC (permalink / raw)
To: openembedded-devel
Hi
As one of our Linaro builds failed in nasty way I decided to take a look
and discovered something ugly.
bitbake -ccleansstate openldap
bitbake icu
bitbake openldap
rm -rf TMPDIR
bitbake openldap
99% that it will fail...
Where the problem is? in openldap sources: build/openldap.m4 has this:
-----
dnl International Components for Unicode (ICU)
AC_DEFUN([OL_ICU],
[ol_icu=no
AC_CHECK_HEADERS( unicode/utypes.h )
if test $ac_cv_header_unicode_utypes_h = yes ; then
dnl OL_ICULIBS="-licui18n -licuuc -licudata"
OL_ICULIBS="-licuuc -licudata"
AC_CACHE_CHECK([for ICU libraries], [ol_cv_lib_icu], [
ol_LIBS="$LIBS"
LIBS="$OL_ICULIBS $LIBS"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <unicode/utypes.h>
]], [[
(void) u_errorName(0);
]])],[ol_cv_lib_icu=yes],[ol_cv_lib_icu=no])
LIBS="$ol_LIBS"
])
if test $ol_cv_lib_icu != no ; then
ol_icu="$OL_ICULIBS"
AC_DEFINE(HAVE_ICU,1,[define if you actually have ICU])
fi
fi
])
-----
which is called by configure.in:
-----
dnl International Components for Unicode
OL_ICU
if test "$ol_icu" = no ; then
AC_MSG_WARN([ICU not available])
else
ICU_LIBS="$ol_icu"
fi
-----
Now the question is: will we kill ICU dependency or will we add it into
build dependencies?
^ permalink raw reply [flat|nested] 3+ messages in thread
* [meta-oe][PATCH] openldap: do not link to ICU
2013-04-18 21:11 openldap and icu Marcin Juszkiewicz
@ 2013-04-19 9:44 ` Marcin Juszkiewicz
2013-04-26 7:14 ` openldap and icu Khem Raj
1 sibling, 0 replies; 3+ messages in thread
From: Marcin Juszkiewicz @ 2013-04-19 9:44 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
---
.../openldap/openldap-2.4.23/kill-icu.patch | 30 ++++++++++++++++++++++
.../recipes-support/openldap/openldap_2.4.23.bb | 1 +
2 files changed, 31 insertions(+)
create mode 100644 meta-oe/recipes-support/openldap/openldap-2.4.23/kill-icu.patch
diff --git a/meta-oe/recipes-support/openldap/openldap-2.4.23/kill-icu.patch b/meta-oe/recipes-support/openldap/openldap-2.4.23/kill-icu.patch
new file mode 100644
index 0000000..dcf5411
--- /dev/null
+++ b/meta-oe/recipes-support/openldap/openldap-2.4.23/kill-icu.patch
@@ -0,0 +1,30 @@
+From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
+
+slapd depends on ICU if it was built first.
+
+Upstream-status: inappropiate [embedded specific]
+---
+ configure.in | 8 --------
+ 1 file changed, 8 deletions(-)
+
+--- openldap-2.4.23.orig/configure.in
++++ openldap-2.4.23/configure.in
+@@ -2045,18 +2045,10 @@ if test $ol_enable_ndb != no ; then
+ SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
+ fi
+ fi
+
+ dnl ----------------------------------------------------------------
+-dnl International Components for Unicode
+-OL_ICU
+-if test "$ol_icu" = no ; then
+- AC_MSG_WARN([ICU not available])
+-else
+- ICU_LIBS="$ol_icu"
+-fi
+-dnl ----------------------------------------------------------------
+ dnl
+ dnl Check for Cyrus SASL
+ dnl
+ WITH_SASL=no
+ ol_link_sasl=no
diff --git a/meta-oe/recipes-support/openldap/openldap_2.4.23.bb b/meta-oe/recipes-support/openldap/openldap_2.4.23.bb
index 1c6c32f..9a7c118 100644
--- a/meta-oe/recipes-support/openldap/openldap_2.4.23.bb
+++ b/meta-oe/recipes-support/openldap/openldap_2.4.23.bb
@@ -15,6 +15,7 @@ LDAP_VER = "${@'.'.join(d.getVar('PV',1).split('.')[0:2])}"
SRC_URI = "ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/${P}.tgz"
SRC_URI += "file://openldap-m4-pthread.patch"
+SRC_URI += "file://kill-icu.patch"
SRC_URI += "file://initscript"
SRC_URI[md5sum] = "90150b8c0d0192e10b30157e68844ddf"
SRC_URI[sha256sum] = "5a5ede91d5e8ab3c7f637620aa29a3b96eb34318a8b26c8eef2d2c789fc055e3"
--
1.8.1.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: openldap and icu
2013-04-18 21:11 openldap and icu Marcin Juszkiewicz
2013-04-19 9:44 ` [meta-oe][PATCH] openldap: do not link to ICU Marcin Juszkiewicz
@ 2013-04-26 7:14 ` Khem Raj
1 sibling, 0 replies; 3+ messages in thread
From: Khem Raj @ 2013-04-26 7:14 UTC (permalink / raw)
To: openembedded-devel
On Apr 18, 2013, at 2:11 PM, Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> wrote:
> dnl International Components for Unicode
> OL_ICU
> if test "$ol_icu" = no ; then
> AC_MSG_WARN([ICU not available])
> else
> ICU_LIBS="$ol_icu"
> fi
> -----
>
> Now the question is: will we kill ICU dependency or will we add it into
> build dependencies?
force ice dependency using DEPENDS
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-04-26 7:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-18 21:11 openldap and icu Marcin Juszkiewicz
2013-04-19 9:44 ` [meta-oe][PATCH] openldap: do not link to ICU Marcin Juszkiewicz
2013-04-26 7:14 ` openldap and icu Khem Raj
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.