Skip to contentSkip to conversation

hwloc: Add

PATCH Superseded Haris Okanovic 5 participants 12 messages Dec 22, 2016 – May 19, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwloc: Add

https://www.open-mpi.org/projects/hwloc/

"The Portable Hardware Locality (hwloc) software package provides a portable abstraction (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. It also gathers various system attributes such as cache and memory information as well as the locality of I/O devices such as network interfaces, InfiniBand HCAs or GPUs."

This recipe adds libhwloc and lstopo utility as two packages.

Testing: Built in OE/Krogoth. Installed to x86_64 machine. Successfully ran lstopo and verified it printed correct CPU and cache info.

---
 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +25 -0
new file mode 100644
index 0000000..3a88f5b
@@ -0,0 +1,25 @@
+SUMMARY = "The Portable Hardware Locality (hwloc) software package \
+ provides a portable abstraction of the hierarchical topology of modern \
+ architectures."
+HOMEPAGE = "https://www.open-mpi.org/software/hwloc/"
+SECTION = "base"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=3282e20dc3cec311deda3c6d4b1f990b"
+
+SRC_URI = "https://www.open-mpi.org/software/${PN}/v1.11/downloads/${BP}.tar.bz2"
+SRC_URI[md5sum] = "96c34136ff416d2b13a7821c27477bed"
+
+inherit autotools
+
+# Split hwloc library into separate subpackage
+PACKAGES_prepend = "lib${PN}"
+FILES_lib${PN} += "${libdir}/lib${PN}.so*"
+${PN}_RDEPENDS += "lib${PN}"
+
+do_install_append() {
+    # Let ldconfig do it's thing, no need for these symlinks
+    test -L "${D}${libdir}/lib${PN}.so.5"
+    test -L "${D}${libdir}/lib${PN}.so"
+    rm "${D}${libdir}/lib${PN}.so.5"
+    rm "${D}${libdir}/lib${PN}.so"
+}
Signature · 1 line
2.10.1
#1 lore raw

SUMMARY is for short summary, put long one into DESCRIPTION and create short one for SUMMARY.

Also missing sha265sum, so I doubt it was tested properly.

Quoted 64 lines · Haris Okanovic

https://www.open-mpi.org/projects/hwloc/

"The Portable Hardware Locality (hwloc) software package provides a portable abstraction (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. It also gathers various system attributes such as cache and memory information as well as the locality of I/O devices such as network interfaces, InfiniBand HCAs or GPUs."

This recipe adds libhwloc and lstopo utility as two packages.

Testing: Built in OE/Krogoth. Installed to x86_64 machine. Successfully ran lstopo and verified it printed correct CPU and cache info.

---
 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb | 25
+++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +9 -0
new file mode 100644
index 0000000..3a88f5b
@@ -0,0 +1,25 @@
+SUMMARY = "The Portable Hardware Locality (hwloc) software package \
+ provides a portable abstraction of the hierarchical topology of modern \
+ architectures."
+HOMEPAGE = "https://www.open-mpi.org/software/hwloc/"
+SECTION = "base"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=3282e20dc3cec311deda3c6d4b1f990b"
+
+SRC_URI = "https://www.open-mpi.org/software/${PN}/v1.11/

downloads/${BP}.tar.bz2"

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +16 -1
+SRC_URI[md5sum] = "96c34136ff416d2b13a7821c27477bed"
+
+inherit autotools
+
+# Split hwloc library into separate subpackage
+PACKAGES_prepend = "lib${PN}"
+FILES_lib${PN} += "${libdir}/lib${PN}.so*"
+${PN}_RDEPENDS += "lib${PN}"
+
+do_install_append() {
+    # Let ldconfig do it's thing, no need for these symlinks
+    test -L "${D}${libdir}/lib${PN}.so.5"
+    test -L "${D}${libdir}/lib${PN}.so"
+    rm "${D}${libdir}/lib${PN}.so.5"
+    rm "${D}${libdir}/lib${PN}.so"
+}
--

2.10.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw
Quoted 56 lines · Martin Jansa

SUMMARY is for short summary, put long one into DESCRIPTION and create short one for SUMMARY.

Also missing sha265sum, so I doubt it was tested properly.

Quoted 29 lines · Haris Okanovic

https://www.open-mpi.org/projects/hwloc/

"The Portable Hardware Locality (hwloc) software package provides a portable abstraction (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. It also gathers various system attributes such as cache and memory information as well as the locality of I/O devices such as network interfaces, InfiniBand HCAs or GPUs."

This recipe adds libhwloc and lstopo utility as two packages.

Testing: Built in OE/Krogoth. Installed to x86_64 machine. Successfully ran lstopo and verified it printed correct CPU and cache info.

---
 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb | 25
+++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +0 -0
new file mode 100644
index 0000000..3a88f5b

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb line 2

Quoted 2 lines
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +2 -0
@@ -0,0 +1,25 @@
+SUMMARY = "The Portable Hardware Locality (hwloc) software package \
+ provides a portable abstraction of the hierarchical topology of modern

\

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb

Quoted 5 lines
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +5 -0
+ architectures."
+HOMEPAGE = "https://www.open-mpi.org/software/hwloc/"
+SECTION = "base"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=3282e20dc3cec311deda3c6d4b1f99

0b"

Quoted 10 lines
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +2 -0
+
+SRC_URI = "https://www.open-mpi.org/software/${PN}/v1.11/

downloads/${BP}.tar.bz2"

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +7 -0
+SRC_URI[md5sum] = "96c34136ff416d2b13a7821c27477bed"
+
+inherit autotools
+
+# Split hwloc library into separate subpackage
+PACKAGES_prepend = "lib${PN}"
+FILES_lib${PN} += "${libdir}/lib${PN}.so*"
Quoted 9 lines

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb line 24

Quoted 8 lines

+${PN}_RDEPENDS += "lib${PN}"

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +7 -0
+
+do_install_append() {
+    # Let ldconfig do it's thing, no need for these symlinks
+    test -L "${D}${libdir}/lib${PN}.so.5"
+    test -L "${D}${libdir}/lib${PN}.so"
+    rm "${D}${libdir}/lib${PN}.so.5"
+    rm "${D}${libdir}/lib${PN}.so"

This link manipulation is also inconsistent with every other recipe. It’s not appropriate. If your distro wants to rely on ldconfig to handle the links, then your distro could do this for all recipes rather than just one. This isn’t how things are done in our existing recipes.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#3 lore raw
Quoted 69 lines · Christopher Larson
Quoted 56 lines · Martin Jansa

SUMMARY is for short summary, put long one into DESCRIPTION and create short one for SUMMARY.

Also missing sha265sum, so I doubt it was tested properly.

Quoted 29 lines · Haris Okanovic

https://www.open-mpi.org/projects/hwloc/

"The Portable Hardware Locality (hwloc) software package provides a portable abstraction (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. It also gathers various system attributes such as cache and memory information as well as the locality of I/O devices such as network interfaces, InfiniBand HCAs or GPUs."

This recipe adds libhwloc and lstopo utility as two packages.

Testing: Built in OE/Krogoth. Installed to x86_64 machine. Successfully ran lstopo and verified it printed correct CPU and cache info.

---
 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb | 25
+++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +0 -0
new file mode 100644
index 0000000..3a88f5b

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb line 2

Quoted 2 lines
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +2 -0
@@ -0,0 +1,25 @@
+SUMMARY = "The Portable Hardware Locality (hwloc) software package \
+ provides a portable abstraction of the hierarchical topology of modern

\

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb

Quoted 5 lines
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +5 -0
+ architectures."
+HOMEPAGE = "https://www.open-mpi.org/software/hwloc/"
+SECTION = "base"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=3282e20dc3cec311deda3c6d4b1f99

0b"

Quoted 10 lines
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +2 -0
+
+SRC_URI = "https://www.open-mpi.org/software/${PN}/v1.11/

downloads/${BP}.tar.bz2"

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +7 -0
+SRC_URI[md5sum] = "96c34136ff416d2b13a7821c27477bed"
+
+inherit autotools
+
+# Split hwloc library into separate subpackage
+PACKAGES_prepend = "lib${PN}"
+FILES_lib${PN} += "${libdir}/lib${PN}.so*"
Quoted 9 lines

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb line 24

Quoted 8 lines

+${PN}_RDEPENDS += "lib${PN}"

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +7 -0
+
+do_install_append() {
+    # Let ldconfig do it's thing, no need for these symlinks
+    test -L "${D}${libdir}/lib${PN}.so.5"
+    test -L "${D}${libdir}/lib${PN}.so"
+    rm "${D}${libdir}/lib${PN}.so.5"
+    rm "${D}${libdir}/lib${PN}.so"
Quoted 4 lines

This link manipulation is also inconsistent with every other recipe. It’s not appropriate. If your distro wants to rely on ldconfig to handle the links, then your distro could do this for all recipes rather than just one. This isn’t how things are done in our existing recipes.

There is global knob USE_LDCONFIG, perhaps thats what could be used but generally I agree with Chris here.

Quoted 11 lines

--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#4 lore raw

Missing dependencies and PACKAGES_prepend breaks hwloc-dbg, because of missing space at the end of the prepended value.

hwloc-1.11.5: hwloc: Files/directories were installed but not shipped in any package:
/usr/src
/usr/src/debug
/usr/src/debug/hwloc
/usr/src/debug/hwloc/1.11.5-r0 /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5 /usr/src/debug/hwloc/1.11.5-r0/build /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo-xml.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo-text.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo-fig.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo-draw.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo-color.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo-cairo.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo-ascii.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/misc.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-ps.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-patch.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-info.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-dump-hwdata.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-dump-hwdata-knl.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-distrib.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-distances.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-diff.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-calc.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-calc.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-bind.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-assembler.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-annotate.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/traversal.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-xml.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-xml-nolibxml.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-xml-libxml.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-x86.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-synthetic.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-pci.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-noos.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-linux.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-hardwired.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-custom.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/pci-common.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/misc.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/distances.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/diff.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/components.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/bitmap.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/bind.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/base64.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/private /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/private/xml.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/private/private.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/private/misc.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/private/debug.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/private/cpuid-x86.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/private/components.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc/plugins.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc/linux.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc/inlines.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc/helper.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc/diff.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc/bitmap.h /usr/src/debug/hwloc/1.11.5-r0/build/src /usr/src/debug/hwloc/1.11.5-r0/build/include /usr/src/debug/hwloc/1.11.5-r0/build/src/static-components.h /usr/src/debug/hwloc/1.11.5-r0/build/include/hwloc /usr/src/debug/hwloc/1.11.5-r0/build/include/hwloc/autogen /usr/src/debug/hwloc/1.11.5-r0/build/include/hwloc/autogen/config.h
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
hwloc: 75 installed and not shipped files. [installed-vs-shipped] hwloc-1.11.5: hwloc rdepends on numactl, but it isn't a build dependency, missing numactl in DEPENDS or PACKAGECONFIG? [build-deps] hwloc-1.11.5: hwloc rdepends on cairo, but it isn't a build dependency, missing cairo in DEPENDS or PACKAGECONFIG? [build-deps] hwloc-1.11.5: hwloc rdepends on libpciaccess, but it isn't a build dependency, missing libpciaccess in DEPENDS or PACKAGECONFIG? [build-deps]
hwloc-1.11.5: hwloc rdepends on libx11, but it isn't a build dependency, missing libx11 in DEPENDS or PACKAGECONFIG? [build-deps] hwloc-1.11.5: hwloc rdepends on libcap, but it isn't a build dependency, missing libcap in DEPENDS or PACKAGECONFIG? [build-deps] hwloc-1.11.5: hwloc rdepends on zlib, but it isn't a build dependency, missing zlib in DEPENDS or PACKAGECONFIG? [build-deps]
hwloc-1.11.5: hwloc rdepends on ncurses-libtinfo, but it isn't a build dependency, missing ncurses in DEPENDS or PACKAGECONFIG? [build-deps] hwloc-1.11.5: hwloc rdepends on libxml2, but it isn't a build dependency, missing libxml2 in DEPENDS or PACKAGECONFIG? [build-deps] hwloc-1.11.5: hwloc rdepends on libudev, but it isn't a build dependency, missing systemd in DEPENDS or PACKAGECONFIG? [build-deps]

Quoted 100 lines · Khem Raj
Quoted 21 lines · Christopher Larson
Quoted 18 lines · Martin Jansa

SUMMARY is for short summary, put long one into DESCRIPTION and create short one for SUMMARY.

Also missing sha265sum, so I doubt it was tested properly.

Quoted 10 lines · Haris Okanovic

https://www.open-mpi.org/projects/hwloc/

"The Portable Hardware Locality (hwloc) software package provides a portable abstraction (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. It also gathers various system attributes such as cache and memory information as well as the locality of I/O devices such as network interfaces, InfiniBand HCAs or GPUs."

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

This recipe adds libhwloc and lstopo utility as two packages.

Testing: Built in OE/Krogoth. Installed to x86_64 machine.

Successfully

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

ran lstopo and verified it printed correct CPU and cache info.

---
 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb | 25
+++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
Quoted 9 lines
Quoted 9 lines

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb line 2

Quoted 9 lines
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +2 -0
new file mode 100644
index 0000000..3a88f5b
@@ -0,0 +1,25 @@
+SUMMARY = "The Portable Hardware Locality (hwloc) software package \
+ provides a portable abstraction of the hierarchical topology of

modern

Quoted 6 lines
Quoted 6 lines

\

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb

Quoted 5 lines
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +5 -0
+ architectures."
+HOMEPAGE = "https://www.open-mpi.org/software/hwloc/"
+SECTION = "base"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=

3282e20dc3cec311deda3c6d4b1f99

Quoted 21 lines
Quoted 11 lines

0b"

Quoted 10 lines
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +2 -0
+
+SRC_URI = "https://www.open-mpi.org/software/${PN}/v1.11/

downloads/${BP}.tar.bz2"

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +7 -0
+SRC_URI[md5sum] = "96c34136ff416d2b13a7821c27477bed"
+
+inherit autotools
+
+# Split hwloc library into separate subpackage
+PACKAGES_prepend = "lib${PN}"
+FILES_lib${PN} += "${libdir}/lib${PN}.so*"
Quoted 9 lines

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb line 24

Quoted 8 lines

+${PN}_RDEPENDS += "lib${PN}"

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +7 -0
+
+do_install_append() {
+    # Let ldconfig do it's thing, no need for these symlinks
+    test -L "${D}${libdir}/lib${PN}.so.5"
+    test -L "${D}${libdir}/lib${PN}.so"
+    rm "${D}${libdir}/lib${PN}.so.5"
+    rm "${D}${libdir}/lib${PN}.so"
Quoted 3 lines

This link manipulation is also inconsistent with every other recipe. It’s not appropriate. If your distro wants to rely on ldconfig to handle the links, then your distro could do this for all recipes rather than just

one.

Quoted 1 line

This isn’t how things are done in our existing recipes.

There is global knob USE_LDCONFIG, perhaps thats what could be used but generally I agree with Chris here.

Quoted 11 lines

--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#5 lore raw

Thanks for looking over the patch. I'll post a V2 shortly to address these issues.

Quoted 83 lines · Martin Jansa

Missing dependencies and PACKAGES_prepend breaks hwloc-dbg, because of missing space at the end of the prepended value.

hwloc-1.11.5: hwloc: Files/directories were installed but not shipped in any package:
/usr/src
/usr/src/debug
/usr/src/debug/hwloc
/usr/src/debug/hwloc/1.11.5-r0
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5
/usr/src/debug/hwloc/1.11.5-r0/build
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo-xml.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo-text.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo-fig.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo-draw.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo-color.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo-cairo.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/lstopo/lstopo-ascii.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/misc.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-ps.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-patch.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-info.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-dump-hwdata.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-dump-hwdata-knl.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-distrib.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-distances.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-diff.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-calc.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-calc.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-bind.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-assembler.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/utils/hwloc/hwloc-annotate.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/traversal.c
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-xml.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-xml-nolibxml.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-xml-libxml.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-x86.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-synthetic.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-pci.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-noos.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-linux.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-hardwired.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/topology-custom.c /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/pci-common.c
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/misc.c
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/distances.c
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/diff.c
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/components.c
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/bitmap.c
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/bind.c
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/src/base64.c
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/private
/usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/private/xml.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/private/private.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/private/misc.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/private/debug.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/private/cpuid-x86.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/private/components.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc/plugins.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc/linux.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc/inlines.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc/helper.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc/diff.h /usr/src/debug/hwloc/1.11.5-r0/hwloc-1.11.5/include/hwloc/bitmap.h
/usr/src/debug/hwloc/1.11.5-r0/build/src
/usr/src/debug/hwloc/1.11.5-r0/build/include
/usr/src/debug/hwloc/1.11.5-r0/build/src/static-components.h
/usr/src/debug/hwloc/1.11.5-r0/build/include/hwloc
/usr/src/debug/hwloc/1.11.5-r0/build/include/hwloc/autogen /usr/src/debug/hwloc/1.11.5-r0/build/include/hwloc/autogen/config.h
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
hwloc: 75 installed and not shipped files. [installed-vs-shipped]
hwloc-1.11.5: hwloc rdepends on numactl, but it isn't a build dependency, missing numactl in DEPENDS or PACKAGECONFIG? [build-deps]

Quoted 9 lines

hwloc-1.11.5: hwloc rdepends on cairo, but it isn't a build dependency, missing cairo in DEPENDS or PACKAGECONFIG? [build-deps] hwloc-1.11.5: hwloc rdepends on libpciaccess, but it isn't a build dependency, missing libpciaccess in DEPENDS or PACKAGECONFIG? [build-deps] hwloc-1.11.5: hwloc rdepends on libx11, but it isn't a build dependency, missing libx11 in DEPENDS or PACKAGECONFIG? [build-deps] hwloc-1.11.5: hwloc rdepends on libcap, but it isn't a build dependency, missing libcap in DEPENDS or PACKAGECONFIG? [build-deps] hwloc-1.11.5: hwloc rdepends on zlib, but it isn't a build dependency, missing zlib in DEPENDS or PACKAGECONFIG? [build-deps] hwloc-1.11.5: hwloc rdepends on ncurses-libtinfo, but it isn't a build dependency, missing ncurses in DEPENDS or PACKAGECONFIG? [build-deps] hwloc-1.11.5: hwloc rdepends on libxml2, but it isn't a build dependency, missing libxml2 in DEPENDS or PACKAGECONFIG? [build-deps] hwloc-1.11.5: hwloc rdepends on libudev, but it isn't a build dependency, missing systemd in DEPENDS or PACKAGECONFIG? [build-deps]

I'm not really sure what happened here. bitbake -e shows a properly delimited PACKAGES when I build:

PACKAGES="libhwloc hwloc-dbg hwloc-staticdev [...]"

However, my distro has some core patches which might affect this particular variable. I'll pad with spaces as you suggested.

Quoted 10 lines

On Thu, Dec 22, 2016 at 11:56 PM, Khem Raj <[email protected] <mailto:[email protected]>> wrote:

On Thu, Dec 22, 2016 at 2:35 PM, Christopher Larson <[email protected] <mailto:[email protected]>> wrote:
> On Thu, Dec 22, 2016 at 2:34 PM, Martin Jansa <[email protected] <mailto:[email protected]>> > wrote:
>

Quoted 5 lines

>> SUMMARY is for short summary, put long one into DESCRIPTION and create
>> short one for SUMMARY.
>>
>> Also missing sha265sum, so I doubt it was tested properly.

Andre pointed out that "a single hash doesn't generate a warning" in a separate thread. However, I added a sha256sum anyway since it seems pretty common.

Quoted 81 lines
Quoted 2 lines
Quoted 2 lines

On Thu, Dec 22, 2016 at 9:02 PM, Haris Okanovic

    <[email protected] <mailto:[email protected]>>
    >> wrote:
    >>
    >> > https://www.open-mpi.org/projects/hwloc/
    <https://www.open-mpi.org/projects/hwloc/>
    >> >
    >> > "The Portable Hardware Locality (hwloc) software package provides a
    >> > portable abstraction (across OS, versions, architectures, ...)
    of the
    >> > hierarchical topology of modern architectures, including NUMA
    memory
    >> > nodes, sockets, shared caches, cores and simultaneous
    multithreading.
    >> > It also gathers various system attributes such as cache and memory
    >> > information as well as the locality of I/O devices such as network
    >> > interfaces, InfiniBand HCAs or GPUs."
    >> >
    >> > This recipe adds libhwloc and lstopo utility as two packages.
    >> >
    >> > Testing: Built in OE/Krogoth. Installed to x86_64 machine.
    Successfully
    >> > ran `lstopo` and verified it printed correct CPU and cache info.
    >> >
    >> > Signed-off-by: Haris Okanovic <[email protected]
    <mailto:[email protected]>>
    >> > ---
    >> >  meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
    <http://hwloc_1.11.5.bb> | 25
    >> > +++++++++++++++++++++++++
    >> >  1 file changed, 25 insertions(+)
    >> >  create mode 100644
    meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb <http://hwloc_1.11.5.bb>
    >> >
    >> > diff --git a/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
    <http://hwloc_1.11.5.bb>
    >> > b/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
    <http://hwloc_1.11.5.bb>
    >> > new file mode 100644
    >> > index 0000000..3a88f5b
    >> > --- /dev/null
    >> > +++ b/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
    <http://hwloc_1.11.5.bb>
    >> > @@ -0,0 +1,25 @@
    >> > +SUMMARY = "The Portable Hardware Locality (hwloc) software
    package \
    >> > + provides a portable abstraction of the hierarchical topology
    of modern
    >> \
    >> > + architectures."
    >> > +HOMEPAGE = "https://www.open-mpi.org/software/hwloc/
    <https://www.open-mpi.org/software/hwloc/>"
    >> > +SECTION = "base"
    >> > +LICENSE = "BSD"
    >> > +LIC_FILES_CHKSUM =
    "file://COPYING;md5=3282e20dc3cec311deda3c6d4b1f99
    >> 0b"
    >> > +
    >> > +SRC_URI = "https://www.open-mpi.org/software/${PN}/v1.11/
    <https://www.open-mpi.org/software/${PN}/v1.11/>
    >> > downloads/${BP}.tar.bz2"
    >> > +SRC_URI[md5sum] = "96c34136ff416d2b13a7821c27477bed"
    >> > +
    >> > +inherit autotools
    >> > +
    >> > +# Split hwloc library into separate subpackage
    >> > +PACKAGES_prepend = "lib${PN}"
    >> > +FILES_lib${PN} += "${libdir}/lib${PN}.so*"
    >> > +${PN}_RDEPENDS += "lib${PN}"
    >> > +
    >> > +do_install_append() {
    >> > +    # Let ldconfig do it's thing, no need for these symlinks
    >> > +    test -L "${D}${libdir}/lib${PN}.so.5"
    >> > +    test -L "${D}${libdir}/lib${PN}.so"
    >> > +    rm "${D}${libdir}/lib${PN}.so.5"
    >> > +    rm "${D}${libdir}/lib${PN}.so"
    >>
    >
    > This link manipulation is also inconsistent with every other
    recipe. It’s
Quoted 9 lines
    > not appropriate. If your distro wants to rely on ldconfig to
    handle the
    > links, then your distro could do this for all recipes rather than
    just one.
    > This isn’t how things are done in our existing recipes.

    There is global knob USE_LDCONFIG, perhaps thats what could be used
    but generally I agree with Chris here.

That's fine, I can remove this. I really did it to avoid a dev-so QA warning, which isn't very amenable to lib* package names. It trips on symlink in any non *-dev or *-dbg package name. Added INSANE_SKIP instead.

Perhaps we should loosen dev-so to permit symlinks in lib*'s as well, if it's common practice to package soname symlinks in OE. Thoughts?

Quoted 10 lines
Quoted 10 lines

--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
--
_______________________________________________
Openembedded-devel mailing list
[email protected]

Quoted 12 lines
    <mailto:[email protected]>
    > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
    <http://lists.openembedded.org/mailman/listinfo/openembedded-devel>
    --
    _______________________________________________
    Openembedded-devel mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.openembedded.org/mailman/listinfo/openembedded-devel
    <http://lists.openembedded.org/mailman/listinfo/openembedded-devel>

Thanks,
Haris

#7 lore raw

PATCH v2 1/1 hwloc: Add

In reply to Haris Okanovic

https://www.open-mpi.org/projects/hwloc/

"The Portable Hardware Locality (hwloc) software package provides a portable abstraction (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. It also gathers various system attributes such as cache and memory information as well as the locality of I/O devices such as network interfaces, InfiniBand HCAs or GPUs."

This recipe adds libhwloc and lstopo utility as two packages.

Testing: Built in OE/Krogoth. Installed to x86_64 machine. Successfully ran lstopo and verified it printed correct CPU and cache info.

---
 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +22 -0
new file mode 100644
index 0000000..812f70d
@@ -0,0 +1,22 @@
+SUMMARY = "Portable Hardware Locality (hwloc) software package"
+DESCRIPTION = "The Portable Hardware Locality (hwloc) software package \
+ provides a portable abstraction of the hierarchical topology of modern \
+ architectures."
+HOMEPAGE = "https://www.open-mpi.org/software/hwloc/"
+SECTION = "base"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=3282e20dc3cec311deda3c6d4b1f990b"
+
+SRC_URI = "https://www.open-mpi.org/software/${PN}/v1.11/downloads/${BP}.tar.bz2"
+SRC_URI[md5sum] = "96c34136ff416d2b13a7821c27477bed"
+SRC_URI[sha256sum] = "95d80286dfe658a3f79e2ac90698782bb36e5504f4bac1bba2394ba14dbbad24"
+
+inherit autotools
+
+# Split hwloc library into separate subpackage
+PACKAGES_prepend = " lib${PN} "
+FILES_lib${PN} += "${libdir}/lib${PN}.so*"
+${PN}_RDEPENDS += "lib${PN}"
+
+# XXX dev-so QA check doesn't like soname symlinks in non-dev packages
+INSANE_SKIP_lib${PN} += "dev-so"
Signature · 1 line
2.10.1
#8 lore raw

By ${PN}_RDEPENDS you probably meant RDEPENDS_${PN}.

Quoted 62 lines · Haris Okanovic

https://www.open-mpi.org/projects/hwloc/

"The Portable Hardware Locality (hwloc) software package provides a portable abstraction (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. It also gathers various system attributes such as cache and memory information as well as the locality of I/O devices such as network interfaces, InfiniBand HCAs or GPUs."

This recipe adds libhwloc and lstopo utility as two packages.

Testing: Built in OE/Krogoth. Installed to x86_64 machine. Successfully ran lstopo and verified it printed correct CPU and cache info.

---
 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb | 22
++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +10 -0
new file mode 100644
index 0000000..812f70d
@@ -0,0 +1,22 @@
+SUMMARY = "Portable Hardware Locality (hwloc) software package"
+DESCRIPTION = "The Portable Hardware Locality (hwloc) software package \
+ provides a portable abstraction of the hierarchical topology of modern \
+ architectures."
+HOMEPAGE = "https://www.open-mpi.org/software/hwloc/"
+SECTION = "base"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=3282e20dc3cec311deda3c6d4b1f990b"
+
+SRC_URI = "https://www.open-mpi.org/software/${PN}/v1.11/

downloads/${BP}.tar.bz2"

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +2 -0
+SRC_URI[md5sum] = "96c34136ff416d2b13a7821c27477bed"
+SRC_URI[sha256sum] = "95d80286dfe658a3f79e2ac9069878

2bb36e5504f4bac1bba2394ba14dbbad24"

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +10 -1
+
+inherit autotools
+
+# Split hwloc library into separate subpackage
+PACKAGES_prepend = " lib${PN} "
+FILES_lib${PN} += "${libdir}/lib${PN}.so*"
+${PN}_RDEPENDS += "lib${PN}"
+
+# XXX dev-so QA check doesn't like soname symlinks in non-dev packages
+INSANE_SKIP_lib${PN} += "dev-so"
--

2.10.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#9 lore raw

PATCH v3 1/1 hwloc: Add

https://www.open-mpi.org/projects/hwloc/

"The Portable Hardware Locality (hwloc) software package provides a portable abstraction (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. It also gathers various system attributes such as cache and memory information as well as the locality of I/O devices such as network interfaces, InfiniBand HCAs or GPUs."

This recipe adds libhwloc and lstopo utility as two packages.

Testing: Built in OE/Krogoth. Installed to x86_64 machine. Successfully ran lstopo and verified it printed correct CPU and cache info.

---
 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +22 -0
new file mode 100644
index 0000000..1bf7a55
@@ -0,0 +1,22 @@
+SUMMARY = "Portable Hardware Locality (hwloc) software package"
+DESCRIPTION = "The Portable Hardware Locality (hwloc) software package \
+ provides a portable abstraction of the hierarchical topology of modern \
+ architectures."
+HOMEPAGE = "https://www.open-mpi.org/software/hwloc/"
+SECTION = "base"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=3282e20dc3cec311deda3c6d4b1f990b"
+
+SRC_URI = "https://www.open-mpi.org/software/${PN}/v1.11/downloads/${BP}.tar.bz2"
+SRC_URI[md5sum] = "96c34136ff416d2b13a7821c27477bed"
+SRC_URI[sha256sum] = "95d80286dfe658a3f79e2ac90698782bb36e5504f4bac1bba2394ba14dbbad24"
+
+inherit autotools
+
+# Split hwloc library into separate subpackage
+PACKAGES_prepend = " lib${PN} "
+FILES_lib${PN} += "${libdir}/lib${PN}.so*"
+RDEPENDS_${PN} += "lib${PN} (= ${EXTENDPKGV})"
+
+# XXX dev-so QA check doesn't like soname symlinks in non-dev packages
+INSANE_SKIP_lib${PN} += "dev-so"
Signature · 1 line
2.10.1
#10 lore raw
Quoted 39 lines · Haris Okanovic

https://www.open-mpi.org/projects/hwloc/

"The Portable Hardware Locality (hwloc) software package provides a portable abstraction (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. It also gathers various system attributes such as cache and memory information as well as the locality of I/O devices such as network interfaces, InfiniBand HCAs or GPUs."

This recipe adds libhwloc and lstopo utility as two packages.

Testing: Built in OE/Krogoth. Installed to x86_64 machine. Successfully ran lstopo and verified it printed correct CPU and cache info.

---
 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +12 -0
new file mode 100644
index 0000000..1bf7a55
@@ -0,0 +1,22 @@
+SUMMARY = "Portable Hardware Locality (hwloc) software package"
+DESCRIPTION = "The Portable Hardware Locality (hwloc) software package \
+ provides a portable abstraction of the hierarchical topology of modern \
+ architectures."
+HOMEPAGE = "https://www.open-mpi.org/software/hwloc/"
+SECTION = "base"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=3282e20dc3cec311deda3c6d4b1f990b"
+
+SRC_URI = "https://www.open-mpi.org/software/${PN}/v1.11/downloads/${BP}.tar.bz2"
+SRC_URI[md5sum] = "96c34136ff416d2b13a7821c27477bed"
+SRC_URI[sha256sum] = "95d80286dfe658a3f79e2ac90698782bb36e5504f4bac1bba2394ba14dbbad24"

meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb line 22

Quoted 10 lines
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +10 -0
+
+inherit autotools
+
+# Split hwloc library into separate subpackage
+PACKAGES_prepend = " lib${PN} "
+FILES_lib${PN} += "${libdir}/lib${PN}.so*"
+RDEPENDS_${PN} += "lib${PN} (= ${EXTENDPKGV})"
+
+# XXX dev-so QA check doesn't like soname symlinks in non-dev packages
+INSANE_SKIP_lib${PN} += "dev-so"

Still a lot of missing/autodetected dependencies I've reported in v1:

WARN: hwloc: hwloc rdepends on cairo, but it isn't a build dependency?
WARN: hwloc: hwloc rdepends on ncurses-libtinfo, but it isn't a build dependency?
WARN: hwloc: libhwloc rdepends on libpciaccess, but it isn't a build dependency?
WARN: hwloc: libhwloc rdepends on libudev, but it isn't a build dependency?
WARN: hwloc: libhwloc rdepends on libxml2, but it isn't a build dependency?
WARN: hwloc: libhwloc rdepends on numactl, but it isn't a build dependency?
WARN: hwloc: libhwloc rdepends on zlib, but it isn't a build dependency?

Quoted 8 lines
Signature · 7 lines
2.10.1

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

PATCH v4 1/1 hwloc: Add

In reply to Haris Okanovic

https://www.open-mpi.org/projects/hwloc/

"The Portable Hardware Locality (hwloc) software package provides a portable abstraction (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. It also gathers various system attributes such as cache and memory information as well as the locality of I/O devices such as network interfaces, InfiniBand HCAs or GPUs."

This recipe adds libhwloc and lstopo utility as two packages.

Testing: Built in OE/Krogoth. Installed to x86_64 machine. Successfully ran lstopo and verified it printed correct CPU and cache info.

---
 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb new file +26 -0
new file mode 100644
index 000000000..e067f2799
@@ -0,0 +1,26 @@
+SUMMARY = "Portable Hardware Locality (hwloc) software package"
+DESCRIPTION = "The Portable Hardware Locality (hwloc) software package \
+ provides a portable abstraction of the hierarchical topology of modern \
+ architectures."
+HOMEPAGE = "https://www.open-mpi.org/software/hwloc/"
+SECTION = "base"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=3282e20dc3cec311deda3c6d4b1f990b"
+
+SRC_URI = "https://www.open-mpi.org/software/${PN}/v1.11/downloads/${BP}.tar.bz2"
+SRC_URI[md5sum] = "96c34136ff416d2b13a7821c27477bed"
+SRC_URI[sha256sum] = "95d80286dfe658a3f79e2ac90698782bb36e5504f4bac1bba2394ba14dbbad24"
+
+inherit autotools
+
+DEPENDS += "cairo ncurses udev libxml2 zlib libpciaccess"
+DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)}"
+DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'libselinux', '', d)}"
+
+# Split hwloc library into separate subpackage
+PACKAGES_prepend = " lib${PN} "
+FILES_lib${PN} += "${libdir}/lib${PN}.so*"
+RDEPENDS_${PN} += "lib${PN} (= ${EXTENDPKGV})"
+
+# XXX dev-so QA check doesn't like soname symlinks in non-dev packages
+INSANE_SKIP_lib${PN} += "dev-so"
Signature · 1 line
2.12.1