diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2019-07-02 16:16:18 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-07-10 09:24:32 -0700 |
commit | cd0ecef266549cba02244ad8cf4b3d18e9612e21 (patch) | |
tree | eacabdc90f9145fe634bdedd916dbb7c96030236 | |
parent | f818d3b9fc11a067a5144279a8dce8f4ef07e334 (diff) | |
download | meta-openembedded-cd0ecef266549cba02244ad8cf4b3d18e9612e21.tar.gz |
libbytesize: 1.4 -> 2.0
- Depends on libpcre2 since upstream commit [1c7e40a Port to pcre2]
- Remove PACKAGECONFIG python2 since upstream commit
[895baa3 Remove Python 2 support]
- Fix out of tree build failure
- RDEPENDS on python3-core rather than python3
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/libbytesize/files/0001-fix-out-of-tree-build-failure.patch | 37 | ||||
-rw-r--r-- | meta-oe/recipes-support/libbytesize/libbytesize_2.0.bb (renamed from meta-oe/recipes-support/libbytesize/libbytesize_1.4.bb) | 8 |
2 files changed, 41 insertions, 4 deletions
diff --git a/meta-oe/recipes-support/libbytesize/files/0001-fix-out-of-tree-build-failure.patch b/meta-oe/recipes-support/libbytesize/files/0001-fix-out-of-tree-build-failure.patch new file mode 100644 index 000000000..3f42c25d7 --- /dev/null +++ b/meta-oe/recipes-support/libbytesize/files/0001-fix-out-of-tree-build-failure.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 55802fd187b844f0c114c1657b18482bfc80ec51 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Tue, 2 Jul 2019 02:52:31 +0000 | ||
4 | Subject: [PATCH] fix out of tree build failure | ||
5 | |||
6 | Since commit [116da95 Add the '--version' option to bs_calc.py] applied, | ||
7 | while build out of tree, there is a install failure | ||
8 | ... | ||
9 | |install -m0755 ../../git/tools/bs_calc.py /usr/bin/bscalc | ||
10 | |install: cannot stat '../../git/tools/bs_calc.py': No such file or directory | ||
11 | ... | ||
12 | |||
13 | The generated bs_calc.py locates in builddir rather than srcdir | ||
14 | |||
15 | Upstream-Status: Submitted [https://github.com/storaged-project/libbytesize/pull/59] | ||
16 | |||
17 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
18 | --- | ||
19 | tools/Makefile.am | 2 +- | ||
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/tools/Makefile.am b/tools/Makefile.am | ||
23 | index 08223a8..ae22fed 100644 | ||
24 | --- a/tools/Makefile.am | ||
25 | +++ b/tools/Makefile.am | ||
26 | @@ -5,7 +5,7 @@ dist_man1_MANS = bscalc.man | ||
27 | |||
28 | install-exec-local: | ||
29 | install -d ${DESTDIR}${bindir} | ||
30 | - install -m0755 ${srcdir}/bs_calc.py ${DESTDIR}${bindir}/bscalc | ||
31 | + install -m0755 ${builddir}/bs_calc.py ${DESTDIR}${bindir}/bscalc | ||
32 | |||
33 | uninstall-local: | ||
34 | rm ${DESTDIR}${bindir}/bscalc | ||
35 | -- | ||
36 | 2.17.1 | ||
37 | |||
diff --git a/meta-oe/recipes-support/libbytesize/libbytesize_1.4.bb b/meta-oe/recipes-support/libbytesize/libbytesize_2.0.bb index 863ce428f..1beb6777e 100644 --- a/meta-oe/recipes-support/libbytesize/libbytesize_1.4.bb +++ b/meta-oe/recipes-support/libbytesize/libbytesize_2.0.bb | |||
@@ -9,14 +9,15 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c07cb499d259452f324bb90c3067d85c" | |||
9 | S = "${WORKDIR}/git" | 9 | S = "${WORKDIR}/git" |
10 | B = "${S}" | 10 | B = "${S}" |
11 | 11 | ||
12 | SRCREV = "ebbda2217d177d2a17f917d7a3e3d132a26db791" | 12 | SRCREV = "92c00638a6f846df5c40dbb690f9fcf998ad6df2" |
13 | SRC_URI = "git://github.com/rhinstaller/libbytesize;branch=master \ | 13 | SRC_URI = "git://github.com/rhinstaller/libbytesize;branch=master \ |
14 | file://0001-fix-out-of-tree-build-failure.patch \ | ||
14 | " | 15 | " |
15 | 16 | ||
16 | inherit gettext autotools python3native | 17 | inherit gettext autotools python3native |
17 | 18 | ||
18 | DEPENDS += " \ | 19 | DEPENDS += " \ |
19 | libpcre \ | 20 | libpcre2 \ |
20 | gmp \ | 21 | gmp \ |
21 | mpfr \ | 22 | mpfr \ |
22 | " | 23 | " |
@@ -24,8 +25,7 @@ DEPENDS += " \ | |||
24 | FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}/bytesize" | 25 | FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}/bytesize" |
25 | 26 | ||
26 | PACKAGECONFIG ??= "python3" | 27 | PACKAGECONFIG ??= "python3" |
27 | PACKAGECONFIG[python3] = "--with-python3, --without-python3,,python3" | 28 | PACKAGECONFIG[python3] = "--with-python3, --without-python3,,python3-core" |
28 | PACKAGECONFIG[python2] = "--with-python2, --without-python2,,python2" | ||
29 | PACKAGECONFIG[doc] = "--with-gtk-doc, --without-gtk-doc, gtk-doc-native" | 29 | PACKAGECONFIG[doc] = "--with-gtk-doc, --without-gtk-doc, gtk-doc-native" |
30 | 30 | ||
31 | EXTRA_OEMAKE = "py3libdir=${PYTHON_SITEPACKAGES_DIR}" | 31 | EXTRA_OEMAKE = "py3libdir=${PYTHON_SITEPACKAGES_DIR}" |