Re: [oe] [meta-oe][PATCH v3] hwloc: Add

2017-01-05 Thread Martin Jansa
On Wed, Jan 04, 2017 at 10:20:43AM -0600, Haris Okanovic wrote:
> 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 
> ---
>  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
> 
> diff --git a/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb 
> b/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
> new file mode 100644
> index 000..1bf7a55
> --- /dev/null
> +++ b/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
> @@ -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"

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?
> -- 
> 2.10.1
> 
> -- 
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com


signature.asc
Description: Digital signature
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-oe][PATCH v3] hwloc: Add

2017-01-04 Thread 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.

Signed-off-by: Haris Okanovic 
---
 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

diff --git a/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb 
b/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
new file mode 100644
index 000..1bf7a55
--- /dev/null
+++ b/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
@@ -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"
-- 
2.10.1

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel