Sync from SUSE:SLFO:Main ipmctl revision 91d61daf3af3eb474b6372fa322e6845

This commit is contained in:
Adrian Schröter 2024-05-03 13:46:44 +02:00
commit ba16e04b2e
9 changed files with 387 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
ChangeLog.xz (Stored with Git LFS) Normal file

Binary file not shown.

27
_service Normal file
View File

@ -0,0 +1,27 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">https://github.com/rurban/safeclib</param>
<param name="filename">safeclib</param>
<param name="versionprefix">3.3</param>
<param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@.%h</param>
<param name="revision">59eba324c20c07f7ca8190238dd415525f4925dc</param>
<param name="exclude">.git</param>
<param name="changesgenerate">enable</param>
</service>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">https://github.com/intel/ipmctl.git</param>
<param name="filename">ipmctl</param>
<param name="versionprefix">01.00.00.3474</param>
<!--param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@.%h</param-->
<param name="versionformat">+git@TAG_OFFSET@.%h</param>
<param name="revision">b6cb581ec69a4452dc8429602a947bc0c625c323</param>
<param name="exclude">.git</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">ipmctl*.tar</param>
<param name="compression">gz</param>
</service>
</services>

6
_servicedata Normal file
View File

@ -0,0 +1,6 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/intel/ipmctl.git</param>
<param name="changesrevision">b6cb581ec69a4452dc8429602a947bc0c625c323</param></service><service name="tar_scm">
<param name="url">https://github.com/rurban/safeclib</param>
<param name="changesrevision">59eba324c20c07f7ca8190238dd415525f4925dc</param></service></servicedata>

BIN
ipmctl-03.00.00.0468.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

3
ipmctl-rpmlintrc Normal file
View File

@ -0,0 +1,3 @@
# See <https://en.opensuse.org/openSUSE:Package_dependencies>:
# -- Replace a package by another with the same functionality
addFilter(".*obsolete-not-provided ")

BIN
ipmctl-static-EDK2.patch.xz (Stored with Git LFS) Normal file

Binary file not shown.

158
ipmctl.changes Normal file
View File

@ -0,0 +1,158 @@
-------------------------------------------------------------------
Mon Oct 31 15:55:48 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 03.00.00.0468:
+ Connect namespace controllers during re-enumeration.
+ Set default value of PcdInvalid to False.
+ Fix memory resources info error.
+ Remove call MemoryResources function to reload namespace
information.
+ Correct link removal behavior for preferences file.
+ Correct multiple NVM API behavior deficiencies.
+ Make ipmctl more resilient to unhealthy PMem modules.
+ Don't always create a preferences file in current directory.
+ Reduce ipmctl version firmware calls to only minimum necessary.
+ Check pointer for NULL before using to prevent seg fault.
-------------------------------------------------------------------
Mon Jan 17 13:29:39 UTC 2022 - rw@suse.com
- Update to version 03.00.00.0423
- Add support for newer systems. [bsc#1194354]
(For detailed changes see 'ChangeLog.xz')
- Refresh patch(es)
(ipmctl-static-EDK2.patch.xz)
-------------------------------------------------------------------
Fri Dec 17 12:45:05 UTC 2021 - rw@suse.com
- Update to version 03.00.00.0407
- Use recommended version. [jsc#SLE-18904, jsc#SLE-19429]
(For detailed changes see 'ChangeLog.xz')
- Incorporate TianoCore EDK II build requirement as patch.
(ipmctl-static-EDK2.patch.xz)
- Drop obsoleted patch(es).
(ipmctl-python3.patch)
-------------------------------------------------------------------
Tue Feb 9 14:57:36 UTC 2021 - rw@suse.com
- Update to version 02.00.00.3847 [jsc#SLE-12711]
(For detailed changes see 'ChangeLog.xz')
-------------------------------------------------------------------
Fri Dec 11 13:05:13 UTC 2020 - rw@suse.com
- Update to version 02.00.00.3833
- Fix create goal command. [bsc#1174807]
(For detailed changes see 'ChangeLog.xz')
-------------------------------------------------------------------
Tue Mar 10 14:06:35 UTC 2020 - rw@suse.com
- Update to version 02.00.00.3733
- Add support for newer systems. [bsc#1162844]
(For detailed changes see 'ChangeLog.xz')
-------------------------------------------------------------------
Wed Feb 26 15:25:31 UTC 2020 - rw@suse.com
- Fix creation (and packaging) of man-pages. [bsc#1158619]
- Improve spec-file for upcoming update.
-------------------------------------------------------------------
Tue Feb 18 15:28:47 UTC 2020 - rw@suse.com
- Update to version 01.00.00.3497
- Try to avoid freezing on newer systems. [bsc#1162935]
(For detailed changes see 'ChangeLog.xz')
-------------------------------------------------------------------
Mon Feb 3 13:58:05 UTC 2020 - dimstar@opensuse.org
- BuildRequire pkgconfig(systemd) instead of systemd: allow OBS to
shortcut through the -mini flavors.
-------------------------------------------------------------------
Fri Dec 13 13:49:54 UTC 2019 - rw@suse.com
- Update to version 01.00.00.3474
- Use recommended version. [jsc#SLE-7948]
(For detailed changes see 'ChangeLog.xz')
-------------------------------------------------------------------
Wed Mar 13 17:14:58 UTC 2019 - rw@suse.com
- Update to version v01.00.00.3440.
- Support more than 16 sockets. [FATE#327556, FATE#327573, bsc#1123735]
- Fix flashing FW of DCPMM modules. [bsc#1128830, bsc#1134253, FATE#327773]
(For detailed changes see 'ChangeLog.xz')
- Update SafeC dependency (as used in 3440).
- Refresh patch(es)
(ipmctl-python3.patch)
-------------------------------------------------------------------
Tue Jan 29 14:03:31 UTC 2019 - rw@suse.com
- Update to v01.00.00.3402.
Switch to release tarball, no content changes.
- Improve spec-file.
-------------------------------------------------------------------
Fri Jan 21 10:42:00 UTC 2019 - rw@suse.com
- Update to v01.00.00.3394+. [FATE#326756, FATE#326917, FATE#326918]
[bsc#1116404, bsc#1091108]
Mandatory for current hard- and firmware.
(For detailed changes see 'ChangeLog.xz')
- Integrate SafeC dependency in contrib.
- Fix remaining unconditional calls to python/python2. [bsc#1111020]
(ipmctl-python3.patch)
- Drop obsoleted patch(es).
(ipmctl-fix-SLE12-build.patch)
-------------------------------------------------------------------
Wed Oct 17 10:24:17 UTC 2018 - rw@suse.com
- Improve ipmctl-fix-SLE12-build.patch to produce position
independent executables.
-------------------------------------------------------------------
Wed Oct 10 14:28:25 UTC 2018 - rw@suse.com
- Remove hard build dependency on python2. [bsc#1111020]
-------------------------------------------------------------------
Fri Aug 10 15:28:34 UTC 2018 - rw@suse.com
- Update to v01.00.00.3102. [FATE#325527]
(Last release without "SafeC" dependency.)
- Refresh ipmctl-fix-SLE12-build.patch.
- Incorporate spec-file improvements proposed by mpluskal.
-------------------------------------------------------------------
Sun Jul 29 10:41:39 UTC 2018 - jengelh@inai.de
- Add bullets to what is a bullet list in the description.
-------------------------------------------------------------------
Fri Jun 22 15:52:14 UTC 2018 - rw@suse.com
- Fix build failure on SLE12-SP4. [FATE#325527]
(ipmctl-fix-SLE12-build.patch)
-------------------------------------------------------------------
Fri Jun 08 07:28:13 UTC 2018 - juston.li@intel.com
- Release v01.00.00.3091
-------------------------------------------------------------------
Fri Jun 01 05:39:07 UTC 2018 - juston.li@intel.com
- Release v01.00.00.3083
-------------------------------------------------------------------
Wed May 30 09:06:48 UTC 2018 - juston.li@intel.com
- Initial release v01.00.00.3072

161
ipmctl.spec Normal file
View File

@ -0,0 +1,161 @@
#
# spec file for package ipmctl
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define abi 5
#define vgit .1547861714.b7a59da
%define vgit %{nil}
Name: ipmctl
Version: 03.00.00.0468
Release: 0
Summary: Utility for managing Intel Optane persistent memory modules
License: BSD-3-Clause
Group: System/Management
URL: https://github.com/intel/ipmctl
%if "%{vgit}" == ""
Source: https://github.com/intel/ipmctl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
%else
Source: %{name}-%{version}%{vgit}.tar.gz
%endif
Source1: ChangeLog.xz
Source2: %{name}-rpmlintrc
Patch1: ipmctl-static-EDK2.patch.xz
Recommends: logrotate
%if %{defined pythons}
BuildRequires: %{pythons}
%else
BuildRequires: python
%endif
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: systemd-rpm-macros
BuildRequires: pkgconfig(libndctl) >= 58.2
BuildRequires: pkgconfig(systemd)
# required for documentation
BuildRequires: rubygem(asciidoctor)
# no 'Conflicts' for 'zypper patch'
Obsoletes: lib%{name}2
# for impctl
Obsoletes: ixpdimm-cli < 01.00.00.3000
# for (obsoleted) libipmctl2 et.al.
Obsoletes: ipmctl-data < %{version}
Obsoletes: ixpdimm-data < 01.00.00.3000
Obsoletes: ixpdimm_sw < 01.00.00.3000
Obsoletes: libixpdimm < 01.00.00.3000
Obsoletes: libixpdimm-cim < 01.00.00.3000
Obsoletes: libixpdimm-cli < 01.00.00.3000
Obsoletes: libixpdimm-common < 01.00.00.3000
Obsoletes: libixpdimm-core < 01.00.00.3000
ExclusiveArch: x86_64
%description
Utility for managing Intel Optane persistent memory modules (PMem module)
Supports functionality to:
- Discover PMem modules on the platform.
- Provision the platform memory configuration.
- View and update the firmware on PMem modules.
- Configure data-at-rest security on PMem modules.
- Monitor PMem module health.
- Track performance of PMem modules.
- Debug and troubleshoot PMem modules.
%package devel
Summary: Development packages for %{name}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Obsoletes: ixpdimm-devel < 01.00.00.3000
Obsoletes: ixpdimm_sw-devel < 01.00.00.3000
%description devel
API for development of Intel Optane persistent memory management utilities.
%prep
%setup -q -n %{name}-%{version}%{vgit}
%patch1 -p1
perl -pi.00 -e '
s[(CMAKE_INSTALL_)DATAROOT(DIR\})/ipmctl][${1}SYSCONF${2}];
s[(INI_INSTALL_FILEPATH "\$\{CMAKE_INSTALL_)DATAROOT(DIR\}")][${1}SYSCONF${2}];
s[(-DINI_INSTALL_FILEPATH="\$\{INI_INSTALL_FILEPATH\})/ipmctl][${1}];
' CMakeLists.txt
diff -u CMakeLists.txt{.00,} || sleep 4
! grep -lri 'INTEL CONFIDENTIAL' || exit 1
%build
%cmake -DBUILDNUM=%{version} -DCMAKE_INSTALL_PREFIX=/ \
-DLINUX_PRODUCT_NAME=%{name} \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
-DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
-DCMAKE_INSTALL_BINDIR=%{_bindir} \
-DCMAKE_INSTALL_DATAROOTDIR=%{_datadir} \
-DCMAKE_INSTALL_MANDIR=%{_mandir} \
-DCMAKE_INSTALL_LOCALSTATEDIR=%{_localstatedir} \
-DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \
-DINSTALL_UNITDIR=%{_unitdir} \
-DRELEASE=ON \
-DRPM_BUILD=ON
%cmake_build
%install
%cmake_install
mkdir -p %{buildroot}%{_sbindir}
rm -f %{buildroot}%{_datadir}/doc/ipmctl/ipmctl_default.conf
rm -f %{buildroot}%{_datadir}/doc/ipmctl/LICENSE
rm -f %{buildroot}%{_datadir}/doc/ipmctl/thirdpartynotice.txt
rm -f %{buildroot}%{_datadir}/doc/ipmctl/edk2_License.txt
install -m 444 -p "%{SOURCE1}" .
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc README.md
%doc opensource
%doc Documentation/ipmctl/*
%doc ChangeLog.xz
%{_bindir}/%{name}
%{_mandir}/man1/*
#files data
%doc output/release/%{name}_default.conf
%config %{_sysconfdir}/%{name}.conf
%config %{_sysconfdir}/logrotate.d/%{name}
%dir %{_localstatedir}/log/%{name}
#files -n lib%%{name}%%{abi}
%{_libdir}/lib%{name}.so.%{abi}*
%files devel
%defattr(-,root,root)
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/lib%{name}.pc
%{_includedir}/nvm_types.h
%{_includedir}/nvm_management.h
%{_includedir}/export_api.h
%{_includedir}/NvmSharedDefs.h
%changelog