Skip to contentSkip to conversation

libhugetlbfs: fix versioning

PATCH Superseded Koen Kooi 2 participants 5 messages Jul 14, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

PATCH 1/2 libhugetlbfs: fix versioning

PE bump is needed because "git+stuff"" > "2.18"

---
 meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +3 -0
index 5645add..af7ed3e 100644
@@ -5,6 +5,9 @@ LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1"
 DEPENDS = "sysfsutils perl"
 RDEPENDS_${PN} += "python python-io python-lang python-subprocess python-resource"
 
+PV = "2.18"
+PE = "1"
+
 SRCREV = "ea3f6b273f535aab38cefae30030774457bbbfe6"
 SRC_URI = "git://git.code.sf.net/p/libhugetlbfs/code \
     file://skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch \
Signature · 1 line
1.9.3
author
#1 lore raw

PATCH 2/2 libhugetlbfs: fix packaging

Libhugetlbs doesn't generate proper .so.X libs, only two .so files. Package those in ${PN} and silence the resulting QA warning. This fixes:

ERROR: QA Issue: libhugetlbfs-tests rdepends on libhugetlbfs-dev

---
 meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +5 -1
index af7ed3e..d3b64bf 100644
@@ -25,6 +25,7 @@ COMPATIBLE_HOST = "(x86_64|powerpc|powerpc64|aarch64).*-linux*"
 
 LIBARGS = "LIB32=${baselib} LIB64=${baselib}"
 EXTRA_OEMAKE = "'ARCH=${TARGET_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}' ${LIBARGS} V=1"
+PARALLEL_MAKE_pn-${PN} = ""
 CFLAGS += "-fexpensive-optimizations -frename-registers -fomit-frame-pointer -g0"
 
 TARGET_CC_ARCH += "${LDFLAGS}"
@@ -46,12 +47,15 @@ do_install() {
           install-tests
 }
 
-PARALLEL_MAKE_pn-${PN} = ""
 
 PACKAGES =+ "${PN}-perl ${PN}-tests "
+FILES_${PN} += "${libdir}/*.so"
+FILES_${PN}-dev = "${includedir}"
 FILES_${PN}-dbg += "${libdir}/libhugetlbfs/tests/obj32/.debug ${libdir}/libhugetlbfs/tests/obj64/.debug"
 FILES_${PN}-perl = "${libdir}/perl"
 FILES_${PN}-tests += "${libdir}/libhugetlbfs/tests"
 
+INSANE_SKIP_${PN} = "dev-so"
+
 INHIBIT_PACKAGE_STRIP = "1"
 INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
Signature · 1 line
1.9.3
#2 lore raw

Re: [meta-oe][PATCH 2/2] libhugetlbfs: fix packaging

Quoted 14 lines · Koen Kooi

Libhugetlbs doesn't generate proper .so.X libs, only two .so files. Package those in ${PN} and silence the resulting QA warning. This fixes:

ERROR: QA Issue: libhugetlbfs-tests rdepends on libhugetlbfs-dev

---
 meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +0 -0
index af7ed3e..d3b64bf 100644

meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb COMPATIBLE_HOST = "(x86_64|powerpc|powerpc64|aarch64).*-linux*" · line 28

Quoted 4 lines
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +1 -0
@@ -25,6 +25,7 @@ COMPATIBLE_HOST = "(x86_64|powerpc|powerpc64|aarch64).*-linux*"
 
 LIBARGS = "LIB32=${baselib} LIB64=${baselib}"
 EXTRA_OEMAKE = "'ARCH=${TARGET_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}' ${LIBARGS} V=1"
+PARALLEL_MAKE_pn-${PN} = ""

Is _pn override really needed?

Quoted 28 lines
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +4 -1
 CFLAGS += "-fexpensive-optimizations -frename-registers -fomit-frame-pointer -g0"
 
 TARGET_CC_ARCH += "${LDFLAGS}"
@@ -46,12 +47,15 @@ do_install() {
           install-tests
 }
 
-PARALLEL_MAKE_pn-${PN} = ""
 
 PACKAGES =+ "${PN}-perl ${PN}-tests "
+FILES_${PN} += "${libdir}/*.so"
+FILES_${PN}-dev = "${includedir}"
 FILES_${PN}-dbg += "${libdir}/libhugetlbfs/tests/obj32/.debug ${libdir}/libhugetlbfs/tests/obj64/.debug"
 FILES_${PN}-perl = "${libdir}/perl"
 FILES_${PN}-tests += "${libdir}/libhugetlbfs/tests"
 
+INSANE_SKIP_${PN} = "dev-so"
+
 INHIBIT_PACKAGE_STRIP = "1"
 INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
Signature · 7 lines
1.9.3

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
author
#3 lore raw

Re: [meta-oe][PATCH 2/2] libhugetlbfs: fix packaging

Quoted 19 lines · Martin Jansa
Quoted 1 line · Koen Kooi

Libhugetlbs doesn't generate proper .so.X libs, only two .so files.

Package those in ${PN} and silence the resulting QA warning. This fixes:

Review

Quoted 9 lines

ERROR: QA Issue: libhugetlbfs-tests rdepends on libhugetlbfs-dev

---
 meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb

meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb COMPATIBLE_HOST =

Quoted 4 lines

index af7ed3e..d3b64bf 100644

meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +0 -0
@@ -25,6 +25,7 @@ COMPATIBLE_HOST =

"(x86_64|powerpc|powerpc64|aarch64).*-linux*"

Quoted 1 line
Quoted 7 lines
Quoted 2 lines

LIBARGS = "LIB32=${baselib} LIB64=${baselib}" EXTRA_OEMAKE = "'ARCH=${TARGET_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}'

${LIBARGS} V=1"

Quoted 1 line

+PARALLEL_MAKE_pn-${PN} = ""

Is _pn override really needed?

It isn't, I only moved the line without noticing the override. Do you want me to respin?

#4 lore raw

Re: [meta-oe][PATCH 2/2] libhugetlbfs: fix packaging

Quoted 23 lines · Koen Kooi
Quoted 21 lines · Martin Jansa
Quoted 1 line · Koen Kooi

Libhugetlbs doesn't generate proper .so.X libs, only two .so files.

Package those in ${PN} and silence the resulting QA warning. This fixes:

Review

Quoted 9 lines

ERROR: QA Issue: libhugetlbfs-tests rdepends on libhugetlbfs-dev

---
 meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb

meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb COMPATIBLE_HOST =

Quoted 4 lines

index af7ed3e..d3b64bf 100644

meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +0 -0
@@ -25,6 +25,7 @@ COMPATIBLE_HOST =

"(x86_64|powerpc|powerpc64|aarch64).*-linux*"

Quoted 3 lines
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +0 -0
 LIBARGS = "LIB32=${baselib} LIB64=${baselib}"
 EXTRA_OEMAKE = "'ARCH=${TARGET_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}'
Quoted 8 lines
Quoted 5 lines

${LIBARGS} V=1"

meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb COMPATIBLE_HOST = "(x86_64|powerpc|powerpc64|aarch64).*-linux*" · line 28

Quoted 1 line
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +1 -0
+PARALLEL_MAKE_pn-${PN} = ""

Is _pn override really needed?

It isn't, I only moved the line without noticing the override. Do you want me to respin?

Please do, thanks

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]