Skip to content

Commit 81002d5

Browse files
authored
[2.0] hwloc: fix ptest (#13969)
1 parent 6a78b9e commit 81002d5

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
From 2ca0265cd11afa20431cb2c7f4dfe3bfa759e032 Mon Sep 17 00:00:00 2001
2+
From: Andrew Phelps <[email protected]>
3+
Date: Sat, 7 Jun 2025 00:59:34 +0000
4+
Subject: [PATCH] disable dmi in test-gather-topology
5+
6+
test-gather-topology.sh test fails due to MemoryModule difference #719
7+
https://github.com/open-mpi/hwloc/issues/719
8+
9+
---
10+
tests/hwloc/linux/gather/test-gather-topology.sh.in | 4 ++--
11+
1 file changed, 2 insertions(+), 2 deletions(-)
12+
13+
diff --git a/tests/hwloc/linux/gather/test-gather-topology.sh.in b/tests/hwloc/linux/gather/test-gather-topology.sh.in
14+
index dbd6d5372..6d6e3033d 100644
15+
--- a/tests/hwloc/linux/gather/test-gather-topology.sh.in
16+
+++ b/tests/hwloc/linux/gather/test-gather-topology.sh.in
17+
@@ -58,7 +58,7 @@
18+
export HWLOC_FSROOT=//
19+
20+
echo "Saving current system topology to XML..."
21+
-if ! "$lstopo" --no-io "$tmpdir/save1.xml" ; then
22+
+if ! "$lstopo" --no-io --ignore misc "$tmpdir/save1.xml" ; then
23+
error "Failed"
24+
exit 1
25+
fi
26+
@@ -81,7 +81,7 @@
27+
rm -f "$tmpdir/save/proc/hwloc-nofile-info"
28+
29+
echo "Saving tarball topology to XML..."
30+
-if ! "$lstopo" --no-io "$tmpdir/save2.xml" ; then
31+
+if ! "$lstopo" --no-io --ignore misc "$tmpdir/save2.xml" ; then
32+
error "Failed"
33+
exit 1
34+
fi
35+
36+
--
37+
2.45.3

SPECS/hwloc/hwloc.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
Summary: Portable Hardware Locality - portable abstraction of hierarchical architectures
22
Name: hwloc
33
Version: 2.5.0
4-
Release: 2%{?dist}
4+
Release: 3%{?dist}
55
License: BSD-2-Clause
66
Vendor: Microsoft Corporation
77
Distribution: Mariner
88
URL: https://www.open-mpi.org/projects/hwloc/
99
Source0: http://www.open-mpi.org/software/hwloc/v2.5/downloads/%{name}-%{version}.tar.bz2
1010
Patch0: CVE-2022-47022.patch
11+
Patch1: fix-test-gather-topology.patch
1112
BuildRequires: gcc
1213
# C++ only for hwloc-hello-cpp test:
1314
BuildRequires: gcc-c++
@@ -168,6 +169,9 @@ LD_LIBRARY_PATH=$PWD/hwloc/.libs make check
168169
%{_libdir}/%{name}/hwloc*
169170

170171
%changelog
172+
* Fri Jun 06 2025 Andrew Phelps <[email protected]> - 2.5.0-3
173+
- Add patch fix-test-gather-topology.patch
174+
171175
* Wed Aug 30 2023 Henry Beberman <[email protected]> - 2.5.0-2
172176
- Patch CVE-2022-47022
173177

0 commit comments

Comments
 (0)