summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/tokyocabinet/tokyocabinet/0001-configure-Fix-check-functions-for-AC_CHECK_LIB-test.patch58
-rw-r--r--meta-oe/recipes-support/tokyocabinet/tokyocabinet_1.4.48.bb1
2 files changed, 59 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/tokyocabinet/tokyocabinet/0001-configure-Fix-check-functions-for-AC_CHECK_LIB-test.patch b/meta-oe/recipes-support/tokyocabinet/tokyocabinet/0001-configure-Fix-check-functions-for-AC_CHECK_LIB-test.patch
new file mode 100644
index 0000000000..001fa9dd75
--- /dev/null
+++ b/meta-oe/recipes-support/tokyocabinet/tokyocabinet/0001-configure-Fix-check-functions-for-AC_CHECK_LIB-test.patch
@@ -0,0 +1,58 @@
1From e192da006dd9b0ecbbef540a3e86b65ff88e89e2 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 1 Sep 2022 13:28:29 -0700
4Subject: [PATCH] configure: Fix check functions for AC_CHECK_LIB test
5
6Upstream-Status: Pending
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 configure.in | 18 +++++++++---------
10 1 file changed, 9 insertions(+), 9 deletions(-)
11
12diff --git a/configure.in b/configure.in
13index 5b24947..0542490 100644
14--- a/configure.in
15+++ b/configure.in
16@@ -247,30 +247,30 @@ test -n "$LDFLAGS" && MYLDFLAGS="$LDFLAGS $MYLDFLAGS"
17 AC_C_BIGENDIAN(MYCPPFLAGS="$MYCPPFLAGS -D_MYBIGEND")
18
19 # Underlying libraries
20-AC_CHECK_LIB(c, main)
21-AC_CHECK_LIB(m, main)
22+AC_CHECK_LIB(c, printf)
23+AC_CHECK_LIB(m, pow)
24 if test "$enable_pthread" != "no"
25 then
26- AC_CHECK_LIB(pthread, main)
27- AC_CHECK_LIB(rt, main)
28+ AC_CHECK_LIB(pthread, pthread_create)
29+ AC_CHECK_LIB(rt, clock_gettime)
30 fi
31 if test "$enable_zlib" != "no"
32 then
33- AC_CHECK_LIB(z, main)
34+ AC_CHECK_LIB(z, inflate)
35 fi
36 if test "$enable_bzip" != "no"
37 then
38- AC_CHECK_LIB(bz2, main)
39+ AC_CHECK_LIB(bz2, BZ2_bzCompressInit)
40 fi
41 if test "$enable_exlzma" = "yes"
42 then
43- AC_CHECK_LIB(lzma, main)
44+ AC_CHECK_LIB(lzma, lzma_easy_buffer_encode)
45 fi
46 if test "$enable_exlzo" = "yes"
47 then
48- AC_CHECK_LIB(lzo2, main)
49+ AC_CHECK_LIB(lzo2, lzo1x_1_compress)
50 fi
51-AC_CHECK_LIB(tokyocabinet, main, AC_MSG_WARN([old version of Tokyo Cabinet was detected]))
52+AC_CHECK_LIB(tokyocabinet, tcbdbopen, AC_MSG_WARN([old version of Tokyo Cabinet was detected]))
53
54 # Necessary headers
55 AC_CHECK_HEADER(stdlib.h, true, AC_MSG_ERROR([stdlib.h is required]))
56--
572.37.3
58
diff --git a/meta-oe/recipes-support/tokyocabinet/tokyocabinet_1.4.48.bb b/meta-oe/recipes-support/tokyocabinet/tokyocabinet_1.4.48.bb
index 22cbcc0f2f..ae00ff4e55 100644
--- a/meta-oe/recipes-support/tokyocabinet/tokyocabinet_1.4.48.bb
+++ b/meta-oe/recipes-support/tokyocabinet/tokyocabinet_1.4.48.bb
@@ -17,6 +17,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34"
17 17
18SRC_URI = "http://fallabs.com/tokyocabinet/${BP}.tar.gz \ 18SRC_URI = "http://fallabs.com/tokyocabinet/${BP}.tar.gz \
19 file://remove-hard-coded-include-and-lib-paths.patch \ 19 file://remove-hard-coded-include-and-lib-paths.patch \
20 file://0001-configure-Fix-check-functions-for-AC_CHECK_LIB-test.patch \
20" 21"
21 22
22SRC_URI[md5sum] = "fd03df6965f8f56dd5b8518ca43b4f5e" 23SRC_URI[md5sum] = "fd03df6965f8f56dd5b8518ca43b4f5e"