Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ members = [
"packages/host-ctr",
"packages/iproute",
"packages/iptables",
"packages/hwloc",
"packages/iputils",
"packages/kexec-tools",
"packages/keyutils",
Expand Down
1 change: 1 addition & 0 deletions kits/bottlerocket-core-kit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ findutils = { path = "../../packages/findutils" }
glibc = { path = "../../packages/glibc" }
grep = { path = "../../packages/grep" }
host-ctr = { path = "../../packages/host-ctr" }
hwloc = { path = "../../packages/hwloc" }
iproute = { path = "../../packages/iproute" }
iptables = { path = "../../packages/iptables" }
iputils = { path = "../../packages/iputils" }
Expand Down
20 changes: 20 additions & 0 deletions packages/hwloc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "hwloc"
version = "0.1.0"
edition = "2021"
publish = false
build = "../build.rs"

[lib]
path = "../packages.rs"

[package.metadata.build-package]
releases-url = "https://www.open-mpi.org/software/ompi/v5.0/"

[[package.metadata.build-package.external-files]]
url = "https://download.open-mpi.org/release/hwloc/v2.12/hwloc-2.12.2.tar.bz2"
sha512 = "949d6c9d7b858ee58e477b15e6c06f57812872142fa1c7f3ef20aae2e4ef954135f839e8604404bfd0637fde99729c7d00211c8aee860dfde9ac60bba0e78aef"

[build-dependencies]
glibc = { path = "../glibc" }
systemd-252 = { path = "../systemd-252" }
83 changes: 83 additions & 0 deletions packages/hwloc/hwloc.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
Name: %{_cross_os}hwloc
Version: 2.12.2
Release: 1%{?dist}
Summary: Portable hardware locality library
URL: https://www.open-mpi.org/projects/hwloc/
License: BSD-3-Clause
Source0: https://download.open-mpi.org/release/hwloc/v2.12/hwloc-%{version}.tar.bz2

BuildRequires: %{_cross_os}glibc-devel
BuildRequires: %{_cross_os}systemd-devel

%description
%{summary}.

%package tools
Summary: Command line tools for the hwloc library
Requires: %{name}

%description tools
%{summary}.

%package devel
Summary: hwloc development libraries and headers
Requires: %{name}
Requires: %{_cross_os}systemd-devel

%description devel
%{summary}.

%prep
%autosetup -n hwloc-%{version} -p1

%build
%cross_configure \
--disable-cairo \
--disable-gl \
--disable-libxml2 \
--disable-opencl \
--disable-pci \
--disable-plugins \
--exec-prefix=%{_cross_prefix} \
--program-prefix=""

%force_disable_rpath

%make_build

%install
%make_install

%files
%license COPYING
%{_cross_attribution_file}
%{_cross_libdir}/libhwloc.so
%{_cross_libdir}/libhwloc.so.*
%exclude %{_cross_bindir}/lstopo
%exclude %{_cross_bindir}/hwloc-compress-dir
%exclude %{_cross_bindir}/hwloc-gather-topology
%exclude %{_cross_datadir}
%exclude %{_cross_mandir}

%files tools
%{_cross_bindir}/hwloc-annotate
%{_cross_bindir}/hwloc-ls
%{_cross_bindir}/hwloc-ps
%{_cross_bindir}/hwloc-bind
%{_cross_bindir}/hwloc-calc
%{_cross_bindir}/hwloc-diff
%{_cross_bindir}/hwloc-distrib
%{_cross_bindir}/hwloc-info
%{_cross_bindir}/hwloc-patch
%{_cross_bindir}/lstopo-no-graphics
# These are not on aarch64
%if "%{_cross_arch}" == "x86_64"
%{_cross_sbindir}/hwloc-dump-hwdata
%{_cross_bindir}/hwloc-gather-cpuid
%endif

%files devel
%{_cross_includedir}/hwloc.h
%{_cross_includedir}/hwloc/*.h
%{_cross_includedir}/hwloc/autogen/*.h
%{_cross_pkgconfigdir}/*.pc