commit ba16e04b2eb98c63347cd63601ecd4093b134d5610c979d0f2b69ee84a038883 Author: Adrian Schröter Date: Fri May 3 13:46:44 2024 +0200 Sync from SUSE:SLFO:Main ipmctl revision 91d61daf3af3eb474b6372fa322e6845 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/ChangeLog.xz b/ChangeLog.xz new file mode 100644 index 0000000..c4e853c --- /dev/null +++ b/ChangeLog.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb36c968de879e02fbffcdda213ca2f0fe5edc6bf3bc59fe524e72439ec35ba0 +size 95352 diff --git a/_service b/_service new file mode 100644 index 0000000..64fb3eb --- /dev/null +++ b/_service @@ -0,0 +1,27 @@ + + + git + https://github.com/rurban/safeclib + safeclib + 3.3 + @PARENT_TAG@+git@TAG_OFFSET@.%h + 59eba324c20c07f7ca8190238dd415525f4925dc + .git + enable + + + git + https://github.com/intel/ipmctl.git + ipmctl + 01.00.00.3474 + + +git@TAG_OFFSET@.%h + b6cb581ec69a4452dc8429602a947bc0c625c323 + .git + enable + + + ipmctl*.tar + gz + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..4a8be6a --- /dev/null +++ b/_servicedata @@ -0,0 +1,6 @@ + + + https://github.com/intel/ipmctl.git + b6cb581ec69a4452dc8429602a947bc0c625c323 + https://github.com/rurban/safeclib + 59eba324c20c07f7ca8190238dd415525f4925dc \ No newline at end of file diff --git a/ipmctl-03.00.00.0468.tar.gz b/ipmctl-03.00.00.0468.tar.gz new file mode 100644 index 0000000..c3a291e --- /dev/null +++ b/ipmctl-03.00.00.0468.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30de3a90fd3ccc7711dc621453570cc5b47a6196d91167a90794f942d9596be1 +size 878866 diff --git a/ipmctl-rpmlintrc b/ipmctl-rpmlintrc new file mode 100644 index 0000000..a3776d2 --- /dev/null +++ b/ipmctl-rpmlintrc @@ -0,0 +1,3 @@ +# See : +# -- Replace a package by another with the same functionality +addFilter(".*obsolete-not-provided ") diff --git a/ipmctl-static-EDK2.patch.xz b/ipmctl-static-EDK2.patch.xz new file mode 100644 index 0000000..4434fbb --- /dev/null +++ b/ipmctl-static-EDK2.patch.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c82c9e96b5c4ee66e538d89741d4bafca4574db9d3fa6c9741dcf24b7befa68f +size 4667408 diff --git a/ipmctl.changes b/ipmctl.changes new file mode 100644 index 0000000..e1d44d7 --- /dev/null +++ b/ipmctl.changes @@ -0,0 +1,158 @@ +------------------------------------------------------------------- +Mon Oct 31 15:55:48 UTC 2022 - Dominique Leuenberger + +- 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 + diff --git a/ipmctl.spec b/ipmctl.spec new file mode 100644 index 0000000..af75c7c --- /dev/null +++ b/ipmctl.spec @@ -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