diff options
-rw-r--r-- | meta-networking/recipes-support/libtdb/libtdb/0001-Makefile-fix-problem-that-waf-cannot-found.patch | 35 | ||||
-rw-r--r-- | meta-networking/recipes-support/libtdb/libtdb/do-not-check-xsltproc-manpages.patch | 15 | ||||
-rw-r--r-- | meta-networking/recipes-support/libtdb/libtdb/tdb-Add-configure-options-for-packages.patch | 33 | ||||
-rw-r--r-- | meta-networking/recipes-support/libtdb/libtdb_1.4.0.bb (renamed from meta-networking/recipes-support/libtdb/libtdb_1.3.17.bb) | 21 |
4 files changed, 26 insertions, 78 deletions
diff --git a/meta-networking/recipes-support/libtdb/libtdb/0001-Makefile-fix-problem-that-waf-cannot-found.patch b/meta-networking/recipes-support/libtdb/libtdb/0001-Makefile-fix-problem-that-waf-cannot-found.patch deleted file mode 100644 index 10f2ef84d3..0000000000 --- a/meta-networking/recipes-support/libtdb/libtdb/0001-Makefile-fix-problem-that-waf-cannot-found.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From 7205761d654636a6c1fad03a3ca40d38e253e192 Mon Sep 17 00:00:00 2001 | ||
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Fri, 25 Jan 2019 16:01:07 +0800 | ||
4 | Subject: [PATCH] Makefile: fix problem that waf cannot found | ||
5 | |||
6 | tdb is subfolder of samba, but it can also build independently. | ||
7 | so both path need to be added into PATH | ||
8 | |||
9 | Upsteam-Status: Inappropriate [oe specific] | ||
10 | |||
11 | Fix reject by upstream since upsteam need to support both python2/3, | ||
12 | so drop add append PATH. refer link: | ||
13 | https://gitlab.com/samba-team/samba/merge_requests/209 | ||
14 | https://gitlab.com/samba-team/samba/merge_requests/211 | ||
15 | |||
16 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
17 | --- | ||
18 | Makefile | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/Makefile b/Makefile | ||
22 | index 3e70146..64bb393 100644 | ||
23 | --- a/Makefile | ||
24 | +++ b/Makefile | ||
25 | @@ -1,6 +1,6 @@ | ||
26 | # simple makefile wrapper to run waf | ||
27 | |||
28 | -WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf | ||
29 | +WAF_BINARY=PATH=buildtools/bin:../../buildtools/bin:$$PATH waf | ||
30 | WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY) | ||
31 | |||
32 | all: | ||
33 | -- | ||
34 | 2.7.4 | ||
35 | |||
diff --git a/meta-networking/recipes-support/libtdb/libtdb/do-not-check-xsltproc-manpages.patch b/meta-networking/recipes-support/libtdb/libtdb/do-not-check-xsltproc-manpages.patch deleted file mode 100644 index bcc45c9fc3..0000000000 --- a/meta-networking/recipes-support/libtdb/libtdb/do-not-check-xsltproc-manpages.patch +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | Don't check manpages for xsltproc. | ||
2 | |||
3 | Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com> | ||
4 | |||
5 | --- tdb-1.3.0.orig/wscript 2015-04-22 09:52:32.366000222 +0900 | ||
6 | +++ tdb-1.3.0/wscript 2015-04-22 09:51:57.720000205 +0900 | ||
7 | @@ -90,7 +90,7 @@ def configure(conf): | ||
8 | not conf.env.disable_tdb_mutex_locking): | ||
9 | conf.define('USE_TDB_MUTEX_LOCKING', 1) | ||
10 | |||
11 | - conf.CHECK_XSLTPROC_MANPAGES() | ||
12 | + conf.find_program('xsltproc', var='XSLTPROC') | ||
13 | |||
14 | if not conf.env.disable_python: | ||
15 | # also disable if we don't have the python libs installed | ||
diff --git a/meta-networking/recipes-support/libtdb/libtdb/tdb-Add-configure-options-for-packages.patch b/meta-networking/recipes-support/libtdb/libtdb/tdb-Add-configure-options-for-packages.patch index e6e10238f1..481fd68a4f 100644 --- a/meta-networking/recipes-support/libtdb/libtdb/tdb-Add-configure-options-for-packages.patch +++ b/meta-networking/recipes-support/libtdb/libtdb/tdb-Add-configure-options-for-packages.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | From 13bbc851d9fd7396f087758e614abba60eeb2aad Mon Sep 17 00:00:00 2001 | 1 | From 71a10c176c34da898c0169371b3c1b032d2f88b1 Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | Date: Wed, 23 Jan 2019 10:14:05 +0800 | 3 | Date: Wed, 19 Jun 2019 17:53:34 +0800 |
4 | Subject: [PATCH] tdb: Add configure options for packages | 4 | Subject: [PATCH] tdb: Add configure options for packages |
5 | 5 | ||
6 | Add configure options for the following packages: | 6 | Add configure options for the following packages: |
@@ -15,22 +15,16 @@ Upstream-Status: Inappropriate [oe deterministic build specific] | |||
15 | 15 | ||
16 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 16 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
17 | 17 | ||
18 | Update for libtdb_1.3.14. | 18 | Update to 1.4.0 |
19 | 19 | ||
20 | Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com> | ||
21 | |||
22 | Update for libtdb_1.3.16 | ||
23 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
24 | |||
25 | Update for libtdb_1.3.17 | ||
26 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 20 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
27 | --- | 21 | --- |
28 | lib/replace/wscript | 95 ++++++++++++++++++++++++++++++++++++++++------------- | 22 | lib/replace/wscript | 94 ++++++++++++++++++++++++++++++++++++++++------------- |
29 | wscript | 6 ++++ | 23 | wscript | 6 ++++ |
30 | 2 files changed, 79 insertions(+), 22 deletions(-) | 24 | 2 files changed, 78 insertions(+), 22 deletions(-) |
31 | 25 | ||
32 | diff --git a/lib/replace/wscript b/lib/replace/wscript | 26 | diff --git a/lib/replace/wscript b/lib/replace/wscript |
33 | index 6cbae93..7aeaf46 100644 | 27 | index 1d01e1e..2336dc3 100644 |
34 | --- a/lib/replace/wscript | 28 | --- a/lib/replace/wscript |
35 | +++ b/lib/replace/wscript | 29 | +++ b/lib/replace/wscript |
36 | @@ -25,6 +25,41 @@ def options(opt): | 30 | @@ -25,6 +25,41 @@ def options(opt): |
@@ -104,26 +98,26 @@ index 6cbae93..7aeaf46 100644 | |||
104 | + conf.CHECK_HEADERS('sys/capability.h') | 98 | + conf.CHECK_HEADERS('sys/capability.h') |
105 | + | 99 | + |
106 | conf.CHECK_HEADERS('port.h') | 100 | conf.CHECK_HEADERS('port.h') |
107 | conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h sys/fs/vx/quota.h') | 101 | conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h') |
108 | conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h') | 102 | conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h') |
109 | @@ -110,8 +158,10 @@ def configure(conf): | 103 | @@ -110,9 +158,10 @@ def configure(conf): |
110 | conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') | 104 | conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') |
111 | conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') | 105 | conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') |
112 | 106 | ||
113 | - conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') | 107 | - conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') |
114 | - conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') | 108 | - conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') |
109 | - conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') | ||
115 | + if Options.options.enable_valgrind: | 110 | + if Options.options.enable_valgrind: |
116 | + conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') | 111 | + conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') |
117 | + conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') | 112 | + conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') |
118 | + | 113 | + |
119 | conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') | ||
120 | conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') | 114 | conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') |
121 | conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') | 115 | conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') |
122 | @@ -379,21 +429,22 @@ def configure(conf): | 116 | conf.CHECK_HEADERS('syscall.h sys/syscall.h inttypes.h') |
123 | conf.CHECK_FUNCS('prctl dirname basename') | 117 | @@ -380,20 +429,21 @@ def configure(conf): |
124 | 118 | ||
125 | strlcpy_in_bsd = False | 119 | strlcpy_in_bsd = False |
126 | - | 120 | |
127 | - # libbsd on some platforms provides strlcpy and strlcat | 121 | - # libbsd on some platforms provides strlcpy and strlcat |
128 | - if not conf.CHECK_FUNCS('strlcpy strlcat'): | 122 | - if not conf.CHECK_FUNCS('strlcpy strlcat'): |
129 | - if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h', | 123 | - if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h', |
@@ -138,7 +132,6 @@ index 6cbae93..7aeaf46 100644 | |||
138 | - | 132 | - |
139 | - if not conf.CHECK_FUNCS('closefrom'): | 133 | - if not conf.CHECK_FUNCS('closefrom'): |
140 | - conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h') | 134 | - conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h') |
141 | + | ||
142 | + if Options.options.enable_libbsd: | 135 | + if Options.options.enable_libbsd: |
143 | + # libbsd on some platforms provides strlcpy and strlcat | 136 | + # libbsd on some platforms provides strlcpy and strlcat |
144 | + if not conf.CHECK_FUNCS('strlcpy strlcat'): | 137 | + if not conf.CHECK_FUNCS('strlcpy strlcat'): |
@@ -158,7 +151,7 @@ index 6cbae93..7aeaf46 100644 | |||
158 | conf.CHECK_CODE(''' | 151 | conf.CHECK_CODE(''' |
159 | struct ucred cred; | 152 | struct ucred cred; |
160 | diff --git a/wscript b/wscript | 153 | diff --git a/wscript b/wscript |
161 | index bc5ee26..9ac10b6 100644 | 154 | index 5598d02..8d47244 100644 |
162 | --- a/wscript | 155 | --- a/wscript |
163 | +++ b/wscript | 156 | +++ b/wscript |
164 | @@ -69,6 +69,12 @@ def options(opt): | 157 | @@ -69,6 +69,12 @@ def options(opt): |
diff --git a/meta-networking/recipes-support/libtdb/libtdb_1.3.17.bb b/meta-networking/recipes-support/libtdb/libtdb_1.4.0.bb index 4c7755cba3..acc94d923f 100644 --- a/meta-networking/recipes-support/libtdb/libtdb_1.3.17.bb +++ b/meta-networking/recipes-support/libtdb/libtdb_1.4.0.bb | |||
@@ -7,14 +7,12 @@ LIC_FILES_CHKSUM = "file://tools/tdbdump.c;endline=18;md5=b59cd45aa8624578126a8c | |||
7 | file://include/tdb.h;endline=27;md5=f5bb544641d3081821bcc1dd58310be6" | 7 | file://include/tdb.h;endline=27;md5=f5bb544641d3081821bcc1dd58310be6" |
8 | 8 | ||
9 | SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \ | 9 | SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \ |
10 | file://do-not-check-xsltproc-manpages.patch \ | ||
11 | file://tdb-Add-configure-options-for-packages.patch \ | 10 | file://tdb-Add-configure-options-for-packages.patch \ |
12 | file://0001-waf-add-support-of-cross_compile.patch \ | 11 | file://0001-waf-add-support-of-cross_compile.patch \ |
13 | file://0001-Makefile-fix-problem-that-waf-cannot-found.patch \ | ||
14 | " | 12 | " |
15 | 13 | ||
16 | SRC_URI[md5sum] = "519d373ac72a66b0a2739dbb495de127" | 14 | SRC_URI[md5sum] = "c4c2f8cf9e691244a7f2ecfa3baadecc" |
17 | SRC_URI[sha256sum] = "1cb4399394c60a773430ca54848359adcf54fb6f136afdcfcbbe62b5f4245614" | 15 | SRC_URI[sha256sum] = "c1a0729c5400fb495465fa4bd953ae290db43c28dacd0506aef50dc482132d35" |
18 | 16 | ||
19 | PACKAGECONFIG ??= "\ | 17 | PACKAGECONFIG ??= "\ |
20 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ | 18 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ |
@@ -42,11 +40,18 @@ EXTRA_OECONF += "--disable-rpath \ | |||
42 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ | 40 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ |
43 | " | 41 | " |
44 | 42 | ||
45 | PACKAGES += "tdb-tools python-tdb" | 43 | do_install_append() { |
44 | # add this link for cross check python module existence. eg: on x86-64 host, check python module | ||
45 | # under recipe-sysroot which is mips64. | ||
46 | cd ${D}${PYTHON_SITEPACKAGES_DIR}; ln -s tdb.*.so tdb.so | ||
47 | } | ||
46 | 48 | ||
47 | RPROVIDES_${PN}-dbg += "python-tdb-dbg" | 49 | PACKAGES += "tdb-tools python3-tdb" |
50 | |||
51 | RPROVIDES_${PN}-dbg += "python3-tdb-dbg" | ||
48 | 52 | ||
49 | FILES_${PN} = "${libdir}/*.so.*" | 53 | FILES_${PN} = "${libdir}/*.so.*" |
50 | FILES_tdb-tools = "${bindir}/*" | 54 | FILES_tdb-tools = "${bindir}/*" |
51 | FILES_python-tdb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" | 55 | FILES_python3-tdb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" |
52 | RDEPENDS_python-tdb = "python" | 56 | RDEPENDS_python3-tdb = "python3" |
57 | INSANE_SKIP_python3-tdb = "dev-so" | ||