Skip to content

Commit 8b62cec

Browse files
authored
[3.0] hwloc: fix ptest (#13968)
1 parent 2cd2602 commit 8b62cec

2 files changed

Lines changed: 41 additions & 1 deletion

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
From 268ffea51d623e9eff721a76a396b3feecaf7fa8 Mon Sep 17 00:00:00 2001
2+
From: Andrew Phelps <anphel@microsoft.com>
3+
Date: Thu, 5 Jun 2025 16:16:23 +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 41f8dee57..219d8f7a9 100644
15+
--- a/tests/hwloc/linux/gather/test-gather-topology.sh.in
16+
+++ b/tests/hwloc/linux/gather/test-gather-topology.sh.in
17+
@@ -62,7 +62,7 @@ export HWLOC_FSROOT=//
18+
19+
echo "Saving current system topology to XML..."
20+
# ignore DAXDevice info attr because it won't appear in save2.xml unless we pass --io to gather below
21+
-if ! "$lstopo" --no-io -.xml | grep -v DAXDevice > "$tmpdir/save1.xml" ; then
22+
+if ! "$lstopo" --no-io --ignore misc -.xml | grep -v DAXDevice > "$tmpdir/save1.xml" ; then
23+
error "Failed"
24+
exit 1
25+
fi
26+
@@ -85,7 +85,7 @@ export HWLOC_FSROOT="$tmpdir/save"
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+
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.9.2
4-
Release: 2%{?dist}
4+
Release: 3%{?dist}
55
License: BSD-2-Clause
66
Vendor: Microsoft Corporation
77
Distribution: Azure Linux
88
URL: https://www.open-mpi.org/projects/hwloc/
99
Source0: http://www.open-mpi.org/software/hwloc/v2.9/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 <anphel@microsoft.com> - 2.9.2-3
173+
- Add patch fix-test-gather-topology.patch
174+
171175
* Wed Jan 29 2025 Jyoti Kanase <v-jykanase@microsoft.com> - 2.9.2-2
172176
- Fix CVE-2022-47022
173177

0 commit comments

Comments
 (0)