libhugetlbfs: upgrade 2.21 -> 2.22

1) Upgrade libhugetlbfs from 2.21 to 2.22.

2) Update two patches for new version.
   0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch
   0005-Include-dirent.h-for-ino_t.patch

3) Add RDEPEND python3-core for libhugetlbfs-tests to fix the do_package_qa error as follows:

ERROR: libhugetlbfs-1_2.22-r0 do_package_qa: QA Issue: /usr/lib/libhugetlbfs/tests/run_tests.py contained in package libhugetlbfs-tests requires /usr/bin/python3, but no providers found in RDEPENDS_libhugetlbfs-tests? [file-rdeps]

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Zheng Ruoqin 2019-10-31 23:14:54 +08:00 committed by Khem Raj
parent 7e96c8814f
commit 97f47fb689
3 changed files with 19 additions and 9 deletions

View File

@ -10,15 +10,17 @@ Upstream-Status: Submitted
Signed-off-by: Ting Liu <b28495@freescale.com>
Update for 2.22.
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
---
tests/run_tests.py | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/tests/run_tests.py b/tests/run_tests.py
index 3c95a03..560df6b 100755
index 018264d..0aabcd1 100755
--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -234,9 +234,19 @@ def get_pagesizes():
@@ -245,9 +245,19 @@ def get_pagesizes():
Use libhugetlbfs' hugeadm utility to get a list of page sizes that have
active mount points and at least one huge page allocated to the pool.
"""
@ -36,6 +38,9 @@ index 3c95a03..560df6b 100755
+ return sizes
+ out = p.stdout.read().strip()
+
if rc != 0 or out == "": return sizes
if rc != 0 or out == "":
return sizes
for size in out.split("\n"): sizes.add(int(size))
--
2.7.4

View File

@ -8,12 +8,14 @@ error: unknown type name 'ino_t'; did you mean 'int'?
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Update for 2.22.
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
---
tests/hugetests.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/hugetests.h b/tests/hugetests.h
index 8b1d8d9..056042c 100644
index bc4e16a..fbe4dc0 100644
--- a/tests/hugetests.h
+++ b/tests/hugetests.h
@@ -22,6 +22,7 @@
@ -21,6 +23,9 @@ index 8b1d8d9..056042c 100644
#include <errno.h>
#include <string.h>
+#include <dirent.h>
#include <unistd.h>
#include "libhugetlbfs_privutils.h"
#include "libhugetlbfs_testprobes.h"
--
2.7.4

View File

@ -5,12 +5,12 @@ LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1"
DEPENDS = "sysfsutils"
RDEPENDS_${PN} += "bash python python-io python-lang python-subprocess python-resource"
RDEPENDS_${PN}-tests += "bash"
RDEPENDS_${PN}-tests += "bash python3-core"
PV = "2.21"
PV = "2.22"
PE = "1"
SRCREV = "73d06e69108f231696e9c5c44f4b42690fc5d752"
SRCREV = "e6499ff92b4a7dcffbd131d1f5d24933e48c3f20"
SRC_URI = " \
git://github.com/libhugetlbfs/libhugetlbfs.git;protocol=https \
file://skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch \