diff --git a/hardware/misc/hwloc/files/hwloc-1.8.1-gl.patch b/hardware/misc/hwloc/files/hwloc-1.8.1-gl.patch
new file mode 100644
index 0000000000..47daa95933
--- /dev/null
+++ b/hardware/misc/hwloc/files/hwloc-1.8.1-gl.patch
@@ -0,0 +1,11 @@
+--- hwloc-1.8.1/config/hwloc.m4.orig 2014-01-30 17:46:58.000000000 +0400
++++ hwloc-1.8.1/config/hwloc.m4 2014-02-27 13:46:28.587238873 +0400
+@@ -948,7 +948,7 @@
+ hwloc_gl_happy=no])
+
+ AC_CHECK_HEADERS([NVCtrl/NVCtrl.h], [
+- AC_CHECK_LIB([XNVCtrl], [XNVCTRLQueryTargetAttribute], [:], [hwloc_gl_happy=no], [-lXext])
++ AC_CHECK_LIB([XNVCtrl], [XNVCTRLQueryTargetAttribute], [:], [hwloc_gl_happy=no], [-lXext -lX11])
+ ], [hwloc_gl_happy=no])
+
+ if test "x$hwloc_gl_happy" = "xyes"; then
diff --git a/hardware/misc/hwloc/pspec.xml b/hardware/misc/hwloc/pspec.xml
index ce2a4fa28f..3ef77642ff 100644
--- a/hardware/misc/hwloc/pspec.xml
+++ b/hardware/misc/hwloc/pspec.xml
@@ -14,12 +14,17 @@
app:console
Portable Hardware Locality (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.
- https://download.open-mpi.org/release/hwloc/v2.2/hwloc-2.2.0.tar.bz2
+ https://download.open-mpi.org/release/hwloc/v2.7/hwloc-2.7.0.tar.bz2
cairo-devel
+ pciutils-devel
libxml2-devel
numactl-devel
+ libpciaccess-devel
+
+ hwloc-1.8.1-gl.patch
+
@@ -29,6 +34,8 @@
cairo
libxml2
numactl
+ libX11
+ libpciaccess
/etc
@@ -38,6 +45,7 @@
/usr/bin
/usr/share/hwloc
/usr/share/applications
+ /usr/share/bash-completion/completions/hwloc
@@ -54,6 +62,13 @@
+
+ 2021-12-14
+ 2.7.0
+ Version bump.
+ Mustafa Cinasal
+ muscnsl@gmail.com
+
2020-05-22
2.2.0
@@ -62,4 +77,4 @@
bluedevil@sctzine.com
-
\ No newline at end of file
+