From c5216a8a480df7ae83f7811c42c815db0c3d6bce Mon Sep 17 00:00:00 2001 From: Iryna Shcherbina Date: Thu, 15 Mar 2018 05:03:12 +0100 Subject: [PATCH 01/29] Update Python 2 dependency declarations to new packaging standards --- iprutils.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/iprutils.spec b/iprutils.spec index 262d741..8a7a609 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -1,7 +1,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.15.1 -Release: 3%{?dist} +Release: 4%{?dist} License: CPL Group: System Environment/Base URL: http://sourceforge.net/projects/iprdd/ @@ -19,7 +19,7 @@ BuildRequires: ncurses-devel BuildRequires: libcap-devel BuildRequires: kernel-headers BuildRequires: systemd -BuildRequires: python-devel +BuildRequires: python2-devel BuildRequires: zlib-devel Obsoletes: ipr-utils @@ -81,6 +81,10 @@ mkdir -p %{buildroot}/%{_udevrulesdir} %{_udevrulesdir}/90-iprutils.rules %changelog +* Thu Mar 15 2018 Iryna Shcherbina - 2.4.15.1-4 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + * Wed Feb 07 2018 Fedora Release Engineering - 2.4.15.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From eb604b348bfedd254f1352dd3b3abbdebca6e650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Fri, 11 May 2018 11:47:15 +0200 Subject: [PATCH 02/29] - rebased to 2.4.16.1 - spec file cleanup --- .gitignore | 1 + iprutils.spec | 48 +++++++++++++++++++++++++----------------------- sources | 2 +- 3 files changed, 27 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index 30019a3..7a912b8 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /iprutils-2.4.12.1.tar.gz /iprutils-2.4.14.1.tar.gz /iprutils-2.4.15.1.tar.gz +/iprutils-2.4.16.1.tar.gz diff --git a/iprutils.spec b/iprutils.spec index 8a7a609..9477b2e 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -1,11 +1,11 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils -Version: 2.4.15.1 -Release: 4%{?dist} +Version: 2.4.16.1 +Release: 1%{?dist} License: CPL Group: System Environment/Base URL: http://sourceforge.net/projects/iprdd/ -Source0: https://sourceforge.net/projects/iprdd/files/iprutils%20for%202.6%20kernels/2.4.15/%{name}-%{version}.tar.gz +Source0: https://sourceforge.net/projects/iprdd/files/iprutils%20for%202.6%20kernels/2.4.16/%{name}-%{version}.tar.gz # missing man page Source1: iprdbg.8.gz @@ -13,48 +13,45 @@ Source1: iprdbg.8.gz # sent to upstream Patch0: 0001-Service-start-is-controled-by-udev-rule.patch -Requires: /sbin/pidof - BuildRequires: ncurses-devel BuildRequires: libcap-devel BuildRequires: kernel-headers BuildRequires: systemd -BuildRequires: python2-devel BuildRequires: zlib-devel -Obsoletes: ipr-utils %description Provides a suite of utilities to manage and configure SCSI devices supported by the ipr SCSI storage device driver. + %prep -%setup -q -%patch0 -p1 -b .udev +%autosetup -p1 + %build -export CFLAGS="%{optflags} -fPIE -Wl,-z,relro,-z,now" -export LDFLAGS="-pie" -%configure -%{__make} %{?_smp_mflags} +%configure --with-systemd --disable-static --disable-sosreport +%{make_build} + %install -%{__make} DESTDIR=%{buildroot} install +%{make_install} # iprutils.target -%{__install} -m 0644 systemd/iprutils.target %{buildroot}/%{_unitdir}/iprutils.target +install -p -m 0644 systemd/iprutils.target %{buildroot}/%{_unitdir}/iprutils.target mkdir -p %{buildroot}/%{_udevrulesdir} -%{__install} -m 0644 udev/rules.d/90-iprutils.rules %{buildroot}/%{_udevrulesdir}/90-iprutils.rules +install -p -m 0644 udev/rules.d/90-iprutils.rules %{buildroot}/%{_udevrulesdir}/90-iprutils.rules # missing man page -%{__install} -m 0644 %SOURCE1 %{buildroot}%{_mandir}/man8/ +install -p -m 0644 %SOURCE1 %{buildroot}%{_mandir}/man8/ #install bash completion -%{__mv} %{buildroot}/%{_sysconfdir}/bash_completion.d/{iprconfig-bash-completion.sh,iprconfig} +mv %{buildroot}/%{_sysconfdir}/bash_completion.d/{iprconfig-bash-completion.sh,iprconfig} # Remove temporary files and scripts that will not be packaged. -%{__rm} %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha +rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha + %post %systemd_post iprinit.service @@ -69,18 +66,23 @@ mkdir -p %{buildroot}/%{_udevrulesdir} %systemd_preun iprutils.target %files -%doc README LICENSE +%license LICENSE +%doc README %{_sbindir}/* %{_sysconfdir}/bash_completion.d/ -#fix permissions -%attr(0644,root,root) %{_mandir}/man*/* +%{_mandir}/man*/* %{_unitdir}/iprinit.service %{_unitdir}/iprdump.service %{_unitdir}/iprupdate.service %{_unitdir}/iprutils.target %{_udevrulesdir}/90-iprutils.rules - + + %changelog +* Fri May 11 2018 Dan Horák - 2.4.16.1-1 +- rebased to 2.4.16.1 +- spec file cleanup + * Thu Mar 15 2018 Iryna Shcherbina - 2.4.15.1-4 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) diff --git a/sources b/sources index 5b3bb90..78f2983 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (iprutils-2.4.15.1.tar.gz) = 34987356c989ccfcb462153eb7d3792c770a04f4ef14406073dfec4895598e5e7968050e17d2b6d057659c2c57be68406911d9abbc1b820980685ed27ea83dad +SHA512 (iprutils-2.4.16.1.tar.gz) = 9eb69689bfd6821a69f8cfb550f007a2b5359f5d38652d61c74aff04e2b7acf1c7e8d32492dc3e6da0876de5d2338eba36100f4b2ded04e932d1ddf36ad9c171 From fa7a55e97650187c7134d4b22a01a0c1a83660a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Mon, 14 May 2018 15:39:57 +0200 Subject: [PATCH 03/29] - use better patch for udev activation --- ...vice-start-is-controled-by-udev-rule.patch | 71 ------- iprutils-udev-activation.patch | 199 ++++++++++++++++++ iprutils.spec | 20 +- 3 files changed, 209 insertions(+), 81 deletions(-) delete mode 100644 0001-Service-start-is-controled-by-udev-rule.patch create mode 100644 iprutils-udev-activation.patch diff --git a/0001-Service-start-is-controled-by-udev-rule.patch b/0001-Service-start-is-controled-by-udev-rule.patch deleted file mode 100644 index 629a976..0000000 --- a/0001-Service-start-is-controled-by-udev-rule.patch +++ /dev/null @@ -1,71 +0,0 @@ -From b880ec7893b072467df1dc202d3a09f5bddbb9b6 Mon Sep 17 00:00:00 2001 -From: Jakub Cajka -Date: Wed, 8 Jul 2015 12:48:43 -0300 -Subject: [PATCH] Service start is controled by udev rule - -Signed-off-by: Gabriel Krisman Bertazi - [Rebased to upstream.] - [Modified to use Autotools.] ---- - systemd/iprdump.service.in | 2 +- - systemd/iprinit.service.in | 2 +- - systemd/iprupdate.service.in | 2 +- - systemd/iprutils.target | 7 +++++++ - udev/rules.d/90-iprutils.rules | 1 + - 5 files changed, 11 insertions(+), 3 deletions(-) - create mode 100644 systemd/iprutils.target - create mode 100644 udev/rules.d/90-iprutils.rules - -diff --git a/systemd/iprdump.service.in b/systemd/iprdump.service.in -index 7f60e7c..fc92a40 100644 ---- a/systemd/iprdump.service.in -+++ b/systemd/iprdump.service.in -@@ -7,4 +7,4 @@ Type=forking - ExecStart=@sbindir@/iprdump --daemon - - [Install] --WantedBy=multi-user.target -+WantedBy=iprutils.target -diff --git a/systemd/iprinit.service.in b/systemd/iprinit.service.in -index dfbd33e..fb20cce 100644 ---- a/systemd/iprinit.service.in -+++ b/systemd/iprinit.service.in -@@ -6,4 +6,4 @@ Type=forking - ExecStart=@sbindir@/iprinit --daemon - - [Install] --WantedBy=multi-user.target -+WantedBy=iprutils.target -diff --git a/systemd/iprupdate.service.in b/systemd/iprupdate.service.in -index 9f44245..001b1e8 100644 ---- a/systemd/iprupdate.service.in -+++ b/systemd/iprupdate.service.in -@@ -6,4 +6,4 @@ Type=forking - ExecStart=@sbindir@/iprupdate --daemon - - [Install] --WantedBy=multi-user.target -+WantedBy=iprutils.target -diff --git a/systemd/iprutils.target b/systemd/iprutils.target -new file mode 100644 -index 0000000..1b1260e ---- /dev/null -+++ b/systemd/iprutils.target -@@ -0,0 +1,7 @@ -+[Unit] -+Description=IBM Power Raid utilities -+Requires=iprupdate.service iprinit.service iprdump.service basic.target -+Before=default.target -+ -+[Install] -+WantedBy=default.target -diff --git a/udev/rules.d/90-iprutils.rules b/udev/rules.d/90-iprutils.rules -new file mode 100644 -index 0000000..1bb5a4a ---- /dev/null -+++ b/udev/rules.d/90-iprutils.rules -@@ -0,0 +1 @@ -+DRIVERS=="ipr", TAG+="systemd", ENV{SYSTEMD_WANTS}+="iprutils.target" --- -2.1.0 - diff --git a/iprutils-udev-activation.patch b/iprutils-udev-activation.patch new file mode 100644 index 0000000..9b4d69d --- /dev/null +++ b/iprutils-udev-activation.patch @@ -0,0 +1,199 @@ +From 65ada384b036556ad4c608b317187a89543d053f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jakub=20=C4=8Cajka?= +Date: Sun, 13 May 2018 18:48:47 +0200 +Subject: [PATCH 1/3] Add posibility to activate ipr systemd units via udev + rule and corresponding iprutils.target that makes deps between the ipr + systemd units Add those new files in to the dist target + +--- + Makefile.am | 1 + + configure.ac | 2 +- + systemd/Makefile.am | 2 +- + systemd/iprdump.service.in | 2 +- + systemd/iprinit.service.in | 2 +- + systemd/iprupdate.service.in | 2 +- + systemd/iprutils.target | 7 +++++++ + udev/Makefile.am | 11 +++++++++++ + udev/rules.d/90-iprutils.rules | 1 + + 9 files changed, 25 insertions(+), 5 deletions(-) + create mode 100644 systemd/iprutils.target + create mode 100644 udev/Makefile.am + create mode 100644 udev/rules.d/90-iprutils.rules + +diff --git a/Makefile.am b/Makefile.am +index d528c26..a92f1bf 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -47,6 +47,7 @@ SUBDIRS = . init.d spec + + if SYSTEMD + SUBDIRS += systemd ++SUBDIRS += udev + endif + + if SOSREPORT +diff --git a/configure.ac b/configure.ac +index 774db12..dd1e32d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -159,5 +159,5 @@ AC_CHECK_FUNCS([getcwd isascii memset mkdir munmap pow setenv setlocale \ + socket strcasecmp strchr strncasecmp strrchr strstr \ + strtol strtoul strtoull]) + +-AC_CONFIG_FILES([Makefile systemd/Makefile init.d/Makefile spec/Makefile]) ++AC_CONFIG_FILES([Makefile systemd/Makefile init.d/Makefile spec/Makefile udev/Makefile]) + AC_OUTPUT +diff --git a/systemd/Makefile.am b/systemd/Makefile.am +index b9a28c9..3feb05d 100644 +--- a/systemd/Makefile.am ++++ b/systemd/Makefile.am +@@ -16,7 +16,7 @@ systemdunitdir = @systemdunitdir@ + nodist_systemdunit_DATA = iprdump.service \ + iprinit.service iprupdate.service + EXTRA_DIST = iprdump.service.in \ +- iprinit.service.in iprupdate.service.in ++ iprinit.service.in iprupdate.service.in iprutils.target + + clean-local: + -rm iprdump.service iprinit.service iprupdate.service +diff --git a/systemd/iprdump.service.in b/systemd/iprdump.service.in +index 7f60e7c..fc92a40 100644 +--- a/systemd/iprdump.service.in ++++ b/systemd/iprdump.service.in +@@ -7,4 +7,4 @@ Type=forking + ExecStart=@sbindir@/iprdump --daemon + + [Install] +-WantedBy=multi-user.target ++WantedBy=iprutils.target +diff --git a/systemd/iprinit.service.in b/systemd/iprinit.service.in +index dfbd33e..fb20cce 100644 +--- a/systemd/iprinit.service.in ++++ b/systemd/iprinit.service.in +@@ -6,4 +6,4 @@ Type=forking + ExecStart=@sbindir@/iprinit --daemon + + [Install] +-WantedBy=multi-user.target ++WantedBy=iprutils.target +diff --git a/systemd/iprupdate.service.in b/systemd/iprupdate.service.in +index 9f44245..001b1e8 100644 +--- a/systemd/iprupdate.service.in ++++ b/systemd/iprupdate.service.in +@@ -6,4 +6,4 @@ Type=forking + ExecStart=@sbindir@/iprupdate --daemon + + [Install] +-WantedBy=multi-user.target ++WantedBy=iprutils.target +diff --git a/systemd/iprutils.target b/systemd/iprutils.target +new file mode 100644 +index 0000000..1b1260e +--- /dev/null ++++ b/systemd/iprutils.target +@@ -0,0 +1,7 @@ ++[Unit] ++Description=IBM Power Raid utilities ++Requires=iprupdate.service iprinit.service iprdump.service basic.target ++Before=default.target ++ ++[Install] ++WantedBy=default.target +diff --git a/udev/Makefile.am b/udev/Makefile.am +new file mode 100644 +index 0000000..740dcaa +--- /dev/null ++++ b/udev/Makefile.am +@@ -0,0 +1,11 @@ ++# IBM IPR adapter configuration utility ++# ++# (C) Copyright 2015 ++# International Business Machines Corporation and others. ++# All Rights Reserved. This program and the accompanying ++# materials are made available under the terms of the ++# Common Public License v1.0 which accompanies this distribution. ++# ++# ++: ++EXTRA_DIST = rules.d/ +diff --git a/udev/rules.d/90-iprutils.rules b/udev/rules.d/90-iprutils.rules +new file mode 100644 +index 0000000..1bb5a4a +--- /dev/null ++++ b/udev/rules.d/90-iprutils.rules +@@ -0,0 +1 @@ ++DRIVERS=="ipr", TAG+="systemd", ENV{SYSTEMD_WANTS}+="iprutils.target" + +From aeca4f9208bf45db2486736530021e53f65f7e6d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Dan=20Hor=C3=A1k?= +Date: Mon, 14 May 2018 10:27:38 +0200 +Subject: [PATCH 2/3] properly install iprutils.target + +--- + systemd/Makefile.am | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/systemd/Makefile.am b/systemd/Makefile.am +index 3feb05d..ba858ef 100644 +--- a/systemd/Makefile.am ++++ b/systemd/Makefile.am +@@ -16,7 +16,8 @@ systemdunitdir = @systemdunitdir@ + nodist_systemdunit_DATA = iprdump.service \ + iprinit.service iprupdate.service + EXTRA_DIST = iprdump.service.in \ +- iprinit.service.in iprupdate.service.in iprutils.target ++ iprinit.service.in iprupdate.service.in ++systemdunit_DATA = iprutils.target + + clean-local: + -rm iprdump.service iprinit.service iprupdate.service + +From 3af0d5dc832406ccee601ef1e8aba777c8262406 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Dan=20Hor=C3=A1k?= +Date: Mon, 14 May 2018 10:46:59 +0200 +Subject: [PATCH 3/3] install udev rules + +--- + configure.ac | 2 ++ + udev/{rules.d => }/90-iprutils.rules | 0 + udev/Makefile.am | 5 +++-- + 3 files changed, 5 insertions(+), 2 deletions(-) + rename udev/{rules.d => }/90-iprutils.rules (100%) + +diff --git a/configure.ac b/configure.ac +index dd1e32d..e71558a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -75,6 +75,7 @@ AM_CONDITIONAL([IPRDUMPFMT], [test "x${iprdumpfmt}" = xtrue]) + + # --with-systemd + systemdunitdir='${exec_prefix}/lib/systemd/system/' ++udevrulesdir='${exec_prefix}/lib/udev/rules.d/' + AC_ARG_WITH([systemd], + [--without-systemd Disable systemd service files.], + [case $withval in +@@ -91,6 +92,7 @@ AC_ARG_WITH([systemd], + esac], [systemd=true]) + AM_CONDITIONAL([SYSTEMD], [test "x${systemd}" = xtrue]) + AC_SUBST(systemdunitdir, ${systemdunitdir}) ++AC_SUBST(udevrulesdir, ${udevrulesdir}) + + # --with-initd + initddir="${prefix}/etc/init.d/" +diff --git a/udev/rules.d/90-iprutils.rules b/udev/90-iprutils.rules +similarity index 100% +rename from udev/rules.d/90-iprutils.rules +rename to udev/90-iprutils.rules +diff --git a/udev/Makefile.am b/udev/Makefile.am +index 740dcaa..30211c1 100644 +--- a/udev/Makefile.am ++++ b/udev/Makefile.am +@@ -7,5 +7,6 @@ + # Common Public License v1.0 which accompanies this distribution. + # + # +-: +-EXTRA_DIST = rules.d/ ++ ++udevrulesdir = @udevrulesdir@ ++udevrules_DATA = 90-iprutils.rules diff --git a/iprutils.spec b/iprutils.spec index 9477b2e..5abd181 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -1,7 +1,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.16.1 -Release: 1%{?dist} +Release: 2%{?dist} License: CPL Group: System Environment/Base URL: http://sourceforge.net/projects/iprdd/ @@ -10,9 +10,10 @@ Source0: https://sourceforge.net/projects/iprdd/files/iprutils%20for%202.6%20ker # missing man page Source1: iprdbg.8.gz -# sent to upstream -Patch0: 0001-Service-start-is-controled-by-udev-rule.patch +# https://github.com/bjking1/iprutils/pull/2 +Patch0: iprutils-udev-activation.patch +BuildRequires: libtool BuildRequires: ncurses-devel BuildRequires: libcap-devel BuildRequires: kernel-headers @@ -28,21 +29,17 @@ supported by the ipr SCSI storage device driver. %prep %autosetup -p1 +autoreconf -vif + %build -%configure --with-systemd --disable-static --disable-sosreport +%configure --with-systemd --without-initscripts --disable-static --disable-sosreport %{make_build} %install %{make_install} -# iprutils.target -install -p -m 0644 systemd/iprutils.target %{buildroot}/%{_unitdir}/iprutils.target - -mkdir -p %{buildroot}/%{_udevrulesdir} -install -p -m 0644 udev/rules.d/90-iprutils.rules %{buildroot}/%{_udevrulesdir}/90-iprutils.rules - # missing man page install -p -m 0644 %SOURCE1 %{buildroot}%{_mandir}/man8/ @@ -79,6 +76,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Mon May 14 2018 Dan Horák - 2.4.16.1-2 +- use better patch for udev activation + * Fri May 11 2018 Dan Horák - 2.4.16.1-1 - rebased to 2.4.16.1 - spec file cleanup From dff160204fe31f6b80f1c6a1ddc83fb1c333bf8c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 13 Jul 2018 05:48:33 +0000 Subject: [PATCH 04/29] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index 5abd181..1b1794d 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -1,7 +1,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.16.1 -Release: 2%{?dist} +Release: 3%{?dist} License: CPL Group: System Environment/Base URL: http://sourceforge.net/projects/iprdd/ @@ -76,6 +76,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Fri Jul 13 2018 Fedora Release Engineering - 2.4.16.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Mon May 14 2018 Dan Horák - 2.4.16.1-2 - use better patch for udev activation From b7a4f2db67eece25f86c3ce7bf02aace31528441 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:17:48 +0100 Subject: [PATCH 05/29] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- iprutils.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index 1b1794d..8b2dd57 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,7 +3,6 @@ Name: iprutils Version: 2.4.16.1 Release: 3%{?dist} License: CPL -Group: System Environment/Base URL: http://sourceforge.net/projects/iprdd/ Source0: https://sourceforge.net/projects/iprdd/files/iprutils%20for%202.6%20kernels/2.4.16/%{name}-%{version}.tar.gz From 4ed6c78e326ccfbcd714ec5dad92a94274ddb84a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 1 Feb 2019 03:29:55 +0000 Subject: [PATCH 06/29] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index 8b2dd57..b1634a6 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -1,7 +1,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.16.1 -Release: 3%{?dist} +Release: 4%{?dist} License: CPL URL: http://sourceforge.net/projects/iprdd/ Source0: https://sourceforge.net/projects/iprdd/files/iprutils%20for%202.6%20kernels/2.4.16/%{name}-%{version}.tar.gz @@ -75,6 +75,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Fri Feb 01 2019 Fedora Release Engineering - 2.4.16.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Fri Jul 13 2018 Fedora Release Engineering - 2.4.16.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From 240e474fee6fafaacac39b4032fe678ef95ef9be Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 4 Mar 2019 12:33:52 +0100 Subject: [PATCH 07/29] update to 2.4.17.1 --- .gitignore | 1 + iprutils-udev-activation.patch | 199 --------------------------------- iprutils.spec | 12 +- sources | 2 +- 4 files changed, 8 insertions(+), 206 deletions(-) delete mode 100644 iprutils-udev-activation.patch diff --git a/.gitignore b/.gitignore index 7a912b8..ec0e1aa 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /iprutils-2.4.14.1.tar.gz /iprutils-2.4.15.1.tar.gz /iprutils-2.4.16.1.tar.gz +/iprutils-2.4.17.1.tar.gz diff --git a/iprutils-udev-activation.patch b/iprutils-udev-activation.patch deleted file mode 100644 index 9b4d69d..0000000 --- a/iprutils-udev-activation.patch +++ /dev/null @@ -1,199 +0,0 @@ -From 65ada384b036556ad4c608b317187a89543d053f Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Jakub=20=C4=8Cajka?= -Date: Sun, 13 May 2018 18:48:47 +0200 -Subject: [PATCH 1/3] Add posibility to activate ipr systemd units via udev - rule and corresponding iprutils.target that makes deps between the ipr - systemd units Add those new files in to the dist target - ---- - Makefile.am | 1 + - configure.ac | 2 +- - systemd/Makefile.am | 2 +- - systemd/iprdump.service.in | 2 +- - systemd/iprinit.service.in | 2 +- - systemd/iprupdate.service.in | 2 +- - systemd/iprutils.target | 7 +++++++ - udev/Makefile.am | 11 +++++++++++ - udev/rules.d/90-iprutils.rules | 1 + - 9 files changed, 25 insertions(+), 5 deletions(-) - create mode 100644 systemd/iprutils.target - create mode 100644 udev/Makefile.am - create mode 100644 udev/rules.d/90-iprutils.rules - -diff --git a/Makefile.am b/Makefile.am -index d528c26..a92f1bf 100644 ---- a/Makefile.am -+++ b/Makefile.am -@@ -47,6 +47,7 @@ SUBDIRS = . init.d spec - - if SYSTEMD - SUBDIRS += systemd -+SUBDIRS += udev - endif - - if SOSREPORT -diff --git a/configure.ac b/configure.ac -index 774db12..dd1e32d 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -159,5 +159,5 @@ AC_CHECK_FUNCS([getcwd isascii memset mkdir munmap pow setenv setlocale \ - socket strcasecmp strchr strncasecmp strrchr strstr \ - strtol strtoul strtoull]) - --AC_CONFIG_FILES([Makefile systemd/Makefile init.d/Makefile spec/Makefile]) -+AC_CONFIG_FILES([Makefile systemd/Makefile init.d/Makefile spec/Makefile udev/Makefile]) - AC_OUTPUT -diff --git a/systemd/Makefile.am b/systemd/Makefile.am -index b9a28c9..3feb05d 100644 ---- a/systemd/Makefile.am -+++ b/systemd/Makefile.am -@@ -16,7 +16,7 @@ systemdunitdir = @systemdunitdir@ - nodist_systemdunit_DATA = iprdump.service \ - iprinit.service iprupdate.service - EXTRA_DIST = iprdump.service.in \ -- iprinit.service.in iprupdate.service.in -+ iprinit.service.in iprupdate.service.in iprutils.target - - clean-local: - -rm iprdump.service iprinit.service iprupdate.service -diff --git a/systemd/iprdump.service.in b/systemd/iprdump.service.in -index 7f60e7c..fc92a40 100644 ---- a/systemd/iprdump.service.in -+++ b/systemd/iprdump.service.in -@@ -7,4 +7,4 @@ Type=forking - ExecStart=@sbindir@/iprdump --daemon - - [Install] --WantedBy=multi-user.target -+WantedBy=iprutils.target -diff --git a/systemd/iprinit.service.in b/systemd/iprinit.service.in -index dfbd33e..fb20cce 100644 ---- a/systemd/iprinit.service.in -+++ b/systemd/iprinit.service.in -@@ -6,4 +6,4 @@ Type=forking - ExecStart=@sbindir@/iprinit --daemon - - [Install] --WantedBy=multi-user.target -+WantedBy=iprutils.target -diff --git a/systemd/iprupdate.service.in b/systemd/iprupdate.service.in -index 9f44245..001b1e8 100644 ---- a/systemd/iprupdate.service.in -+++ b/systemd/iprupdate.service.in -@@ -6,4 +6,4 @@ Type=forking - ExecStart=@sbindir@/iprupdate --daemon - - [Install] --WantedBy=multi-user.target -+WantedBy=iprutils.target -diff --git a/systemd/iprutils.target b/systemd/iprutils.target -new file mode 100644 -index 0000000..1b1260e ---- /dev/null -+++ b/systemd/iprutils.target -@@ -0,0 +1,7 @@ -+[Unit] -+Description=IBM Power Raid utilities -+Requires=iprupdate.service iprinit.service iprdump.service basic.target -+Before=default.target -+ -+[Install] -+WantedBy=default.target -diff --git a/udev/Makefile.am b/udev/Makefile.am -new file mode 100644 -index 0000000..740dcaa ---- /dev/null -+++ b/udev/Makefile.am -@@ -0,0 +1,11 @@ -+# IBM IPR adapter configuration utility -+# -+# (C) Copyright 2015 -+# International Business Machines Corporation and others. -+# All Rights Reserved. This program and the accompanying -+# materials are made available under the terms of the -+# Common Public License v1.0 which accompanies this distribution. -+# -+# -+: -+EXTRA_DIST = rules.d/ -diff --git a/udev/rules.d/90-iprutils.rules b/udev/rules.d/90-iprutils.rules -new file mode 100644 -index 0000000..1bb5a4a ---- /dev/null -+++ b/udev/rules.d/90-iprutils.rules -@@ -0,0 +1 @@ -+DRIVERS=="ipr", TAG+="systemd", ENV{SYSTEMD_WANTS}+="iprutils.target" - -From aeca4f9208bf45db2486736530021e53f65f7e6d Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Dan=20Hor=C3=A1k?= -Date: Mon, 14 May 2018 10:27:38 +0200 -Subject: [PATCH 2/3] properly install iprutils.target - ---- - systemd/Makefile.am | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/systemd/Makefile.am b/systemd/Makefile.am -index 3feb05d..ba858ef 100644 ---- a/systemd/Makefile.am -+++ b/systemd/Makefile.am -@@ -16,7 +16,8 @@ systemdunitdir = @systemdunitdir@ - nodist_systemdunit_DATA = iprdump.service \ - iprinit.service iprupdate.service - EXTRA_DIST = iprdump.service.in \ -- iprinit.service.in iprupdate.service.in iprutils.target -+ iprinit.service.in iprupdate.service.in -+systemdunit_DATA = iprutils.target - - clean-local: - -rm iprdump.service iprinit.service iprupdate.service - -From 3af0d5dc832406ccee601ef1e8aba777c8262406 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Dan=20Hor=C3=A1k?= -Date: Mon, 14 May 2018 10:46:59 +0200 -Subject: [PATCH 3/3] install udev rules - ---- - configure.ac | 2 ++ - udev/{rules.d => }/90-iprutils.rules | 0 - udev/Makefile.am | 5 +++-- - 3 files changed, 5 insertions(+), 2 deletions(-) - rename udev/{rules.d => }/90-iprutils.rules (100%) - -diff --git a/configure.ac b/configure.ac -index dd1e32d..e71558a 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -75,6 +75,7 @@ AM_CONDITIONAL([IPRDUMPFMT], [test "x${iprdumpfmt}" = xtrue]) - - # --with-systemd - systemdunitdir='${exec_prefix}/lib/systemd/system/' -+udevrulesdir='${exec_prefix}/lib/udev/rules.d/' - AC_ARG_WITH([systemd], - [--without-systemd Disable systemd service files.], - [case $withval in -@@ -91,6 +92,7 @@ AC_ARG_WITH([systemd], - esac], [systemd=true]) - AM_CONDITIONAL([SYSTEMD], [test "x${systemd}" = xtrue]) - AC_SUBST(systemdunitdir, ${systemdunitdir}) -+AC_SUBST(udevrulesdir, ${udevrulesdir}) - - # --with-initd - initddir="${prefix}/etc/init.d/" -diff --git a/udev/rules.d/90-iprutils.rules b/udev/90-iprutils.rules -similarity index 100% -rename from udev/rules.d/90-iprutils.rules -rename to udev/90-iprutils.rules -diff --git a/udev/Makefile.am b/udev/Makefile.am -index 740dcaa..30211c1 100644 ---- a/udev/Makefile.am -+++ b/udev/Makefile.am -@@ -7,5 +7,6 @@ - # Common Public License v1.0 which accompanies this distribution. - # - # --: --EXTRA_DIST = rules.d/ -+ -+udevrulesdir = @udevrulesdir@ -+udevrules_DATA = 90-iprutils.rules diff --git a/iprutils.spec b/iprutils.spec index b1634a6..e5cb6cb 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -1,17 +1,14 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils -Version: 2.4.16.1 -Release: 4%{?dist} +Version: 2.4.17.1 +Release: 1%{?dist} License: CPL URL: http://sourceforge.net/projects/iprdd/ -Source0: https://sourceforge.net/projects/iprdd/files/iprutils%20for%202.6%20kernels/2.4.16/%{name}-%{version}.tar.gz +Source0: https://sourceforge.net/projects/iprdd/files/iprutils%20for%202.6%20kernels/2.4.17/%{name}-%{version}.tar.gz # missing man page Source1: iprdbg.8.gz -# https://github.com/bjking1/iprutils/pull/2 -Patch0: iprutils-udev-activation.patch - BuildRequires: libtool BuildRequires: ncurses-devel BuildRequires: libcap-devel @@ -75,6 +72,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Mon Mar 04 2019 Than Ngo - 2.4.17.1-1 +- update to 2.4.17.1 + * Fri Feb 01 2019 Fedora Release Engineering - 2.4.16.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index 78f2983..11c881d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (iprutils-2.4.16.1.tar.gz) = 9eb69689bfd6821a69f8cfb550f007a2b5359f5d38652d61c74aff04e2b7acf1c7e8d32492dc3e6da0876de5d2338eba36100f4b2ded04e932d1ddf36ad9c171 +SHA512 (iprutils-2.4.17.1.tar.gz) = d9b257a1e86350ef26e6491d5030ac864a244283697a4ca588af7ee21c2518c631a2bcfc9913783f973025d186feab8ed045b1d4674621a08b401823e9c52d3d From e5ea455f1b9ece328b0113e8e8cacd21b4e6b407 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 15 Apr 2019 16:47:02 +0200 Subject: [PATCH 08/29] add tier1 tests --- iprutils.spec | 5 +- tests/basic-functionality-test/Makefile | 65 ++++++++ tests/basic-functionality-test/PURPOSE | 11 ++ tests/basic-functionality-test/runtest.sh | 185 ++++++++++++++++++++++ tests/tests.yml | 13 ++ 5 files changed, 278 insertions(+), 1 deletion(-) create mode 100644 tests/basic-functionality-test/Makefile create mode 100644 tests/basic-functionality-test/PURPOSE create mode 100755 tests/basic-functionality-test/runtest.sh create mode 100644 tests/tests.yml diff --git a/iprutils.spec b/iprutils.spec index e5cb6cb..8e65898 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -1,7 +1,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.17.1 -Release: 1%{?dist} +Release: 2%{?dist} License: CPL URL: http://sourceforge.net/projects/iprdd/ Source0: https://sourceforge.net/projects/iprdd/files/iprutils%20for%202.6%20kernels/2.4.17/%{name}-%{version}.tar.gz @@ -72,6 +72,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Mon Apr 15 2019 Than Ngo - 2.4.17.1-2 +- add tests + * Mon Mar 04 2019 Than Ngo - 2.4.17.1-1 - update to 2.4.17.1 diff --git a/tests/basic-functionality-test/Makefile b/tests/basic-functionality-test/Makefile new file mode 100644 index 0000000..5530481 --- /dev/null +++ b/tests/basic-functionality-test/Makefile @@ -0,0 +1,65 @@ +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Makefile of /CoreOS/patch/Regression/Cannot-handle-file-names-with-integrated-spaces +# Description: Test for bz431887 (Cannot handle file names with integrated spaces) +# Author: Ondrej Moris +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2010 Red Hat, Inc. All rights reserved. +# +# This copyrighted material is made available to anyone wishing +# to use, modify, copy, or redistribute it subject to the terms +# and conditions of the GNU General Public License version 2. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +export TEST=/CoreOS/patch/Regression/Cannot-handle-file-names-with-integrated-spaces +export TESTVERSION=1.0 + +BUILT_FILES= + +FILES=$(METADATA) runtest.sh Makefile PURPOSE + +.PHONY: all install download clean + +run: $(FILES) build + ./runtest.sh + +build: $(BUILT_FILES) + chmod a+x runtest.sh + +clean: + rm -f *~ $(BUILT_FILES) + + +include /usr/share/rhts/lib/rhts-make.include + +$(METADATA): Makefile + @echo "Owner: Ondrej Moris " > $(METADATA) + @echo "Name: $(TEST)" >> $(METADATA) + @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) + @echo "Path: $(TEST_DIR)" >> $(METADATA) + @echo "Description: Test for bz431887 (Cannot handle file names with integrated spaces)" >> $(METADATA) + @echo "Type: Regression" >> $(METADATA) + @echo "TestTime: 5m" >> $(METADATA) + @echo "RunFor: patch" >> $(METADATA) + @echo "Requires: patch" >> $(METADATA) + @echo "Requires: expect" >> $(METADATA) + @echo "Priority: Normal" >> $(METADATA) + @echo "License: GPLv2" >> $(METADATA) + @echo "Confidential: no" >> $(METADATA) + @echo "Destructive: no" >> $(METADATA) + @echo "Bug: 431887" >> $(METADATA) + + rhts-lint $(METADATA) diff --git a/tests/basic-functionality-test/PURPOSE b/tests/basic-functionality-test/PURPOSE new file mode 100644 index 0000000..4d05a09 --- /dev/null +++ b/tests/basic-functionality-test/PURPOSE @@ -0,0 +1,11 @@ +PURPOSE of /CoreOS/iprutils/basic-functionality-test +Description: Tier1 tests +Author: Than Ngo + +tests following scenarios: + * test iprdump --version + * test iprinit --version + * test iprupdate --version + * test Services: iprdump, iprinit, iprupdate + * test existence of man pages + * test existence of license and readme file diff --git a/tests/basic-functionality-test/runtest.sh b/tests/basic-functionality-test/runtest.sh new file mode 100755 index 0000000..93d9ea0 --- /dev/null +++ b/tests/basic-functionality-test/runtest.sh @@ -0,0 +1,185 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/which/Sanity/basic-functionality-test +# Description: tests basic functionality +# Author: Than Ngo +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2019 Red Hat, Inc. +# +# This copyrighted material is made available to anyone wishing +# to use, modify, copy, or redistribute it subject to the terms +# and conditions of the GNU General Public License version 2. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +PACKAGES="iprutils man-db coreutils rpm" +SERVICES="iprdump iprinit iprupdate" + +# Include Beaker environment +. /usr/bin/rhts-environment.sh || exit 1 +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +rlJournalStart + rlPhaseStartSetup + for p in $PACKAGES ; do + rlAssertRpm $p + done + rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" + rlRun "pushd $TmpDir" + rlPhaseEnd + # test the sercives + rlPhaseStartTest "Services: iprdump, iprinit, iprupdate" + for s in $SERVICES ; do + rlServiceStart $s + rlRun "systemctl status -l $s" + rlServiceStop $s + done + rlPhaseEnd + rlPhaseStartTest "Smoke, sanity and function tests" + rlRun "VERSION=\$( rpm -q --qf '%{VERSION}' iprutils )" + rlRun -s "iprconfig --version" 0 "It ought show the version" + rlAssertGrep "iprconfig: $VERSION" $rlRun_LOG + rlRun "iprconfig -c show-config" 0 "Show ipr configuration" + rlRun "iprconfig -c show-alt-config" 0 "Show alternate ipr configuration information" + rlRun "iprconfig -c show-ioas" 0 "Show all ipr adapters" + rlRun "iprconfig -c show-arrays" 0 "Show all ipr arrays" + # rlRun "iprconfig -c show-battey-info" 0 "Show cache battery information for specified IOA" + # rlRun "iprconfig -c show-details sda" 0 "Show device details for specified device" + rlRun "iprconfig -c show-hot-spares" 0 "Show all configured hot spares" + rlRun "iprconfig -c show-af-disks" 0 "Show disks formatted for Advanced Function that are not configured in an array or as a hot spare" + rlRun "iprconfig -c show-all-af-disks" 0 "Show all disks formatted for Advanced Function" + rlRun "iprconfig -c show-jbod-disks" 0 "Show all disks formatted for JBOD Function" + rlRun "iprconfig -c show-slots" 0 "Show all disks slots available on the system" + # iprconfig -c status /dev/sda || echo FAILED $? + # iprconfig -c alt-status /dev/sda || echo FAILED $? + # iprconfig -c query-aid-ceate || echo FAILED $? + # iprconfig -c query-aid-delete || echo FAILED $? + # iprconfig -c query-hot-spae-ceate || echo FAILED $? + # iprconfig -c query-hot-spae-delete || echo FAILED $? + rlRun "iprconfig -c query-raid-consistency-check" 0 "Show all RAID arrays that are candidates for a RAID consistency check" + rlRun "iprconfig -c query-format-for-jbod" 0 "Show all disks that can be reformatted for JBOD function" + rlRun "iprconfig -c query-reclaim" 0 "Show all IOAs that may need a reclaim cache storage" + rlRun "iprconfig -c query-arrays-raid-include" 0 "Show all RAID arrays that can have disks included in them to increase their capacity" + # iprconfig -c query-devices-aid-include || echo FAILED $? + # iprconfig -c query-suppoted-aid-levels || echo FAILED $? + # iprconfig -c query-include-allowed || echo FAILED $? + # iprconfig -c query-max-devices-in-aay || echo FAILED $? + # iprconfig -c query-min-devices-in-aay || echo FAILED $? + # iprconfig -c quey-min-mult-in-aay || echo FAILED $? + # iprconfig -c quey-supp-stipe-sizes || echo FAILED $? + # iprconfig -c query-ecommended-stipe-size || echo FAILED $? + rlRun "iprconfig -c query-recovery-format" 0 "Show all disks that can be formatted for error recovery purposes" + rlRun "iprconfig -c query-raid-rebuild" 0 "Show all disks in RAID arrays that can be rebuilt" + rlRun "iprconfig -c query-format-for-raid" 0 "Show all disks that can be formatted such that they can be used in a RAID array or as a hot spare" + # iprconfig -c query-ucode-level || echo FAILED $? + # iprconfig -c ssd-report || echo FAILED $? + rlRun "iprconfig -c show-ucode-levels" 0 "Show the microcode level that is currently loaded for every device and adapter in the system" + # iprconfig -c query-format-timeout || echo FAILED $? + # iprconfig -c query-qdepth || echo FAILED $? + # iprconfig -c query-tcq-enable || echo FAILED $? + # iprconfig -c query-log-level || echo FAILED $? + rlRun "iprconfig -c query-add-device" 0 "Show all empty disk slots that can have a disk concurrently added" + rlRun "iprconfig -c query-remove-device" 0 "Show all disk slots which are either empty or have disks in them which can be concurrently removed from the running system" + # iprconfig -c query-initiator-id || echo FAILED $? + # iprconfig -c query-bus-speed || echo FAILED $? + # iprconfig -c query-bus-width || echo FAILED $? + rlRun "iprconfig -c query-path-status" 0 "Show the current dual path state for the SAS devices attached specified IOA" + # iprconfig -c query-path-details || echo FAILED $? + # iprconfig -c query-arrays-raid-migrate || echo FAILED $? + # iprconfig -c query-devices-raid-migrate || echo FAILED $? + # iprconfig -c query-raid-levels-raid-migrate || echo FAILED $? + # iprconfig -c query-stripe-sizes-raid-migrate || echo FAILED $? + # iprconfig -c query-devices-min-max-raid-migrate || echo FAILED $? + rlRun "iprconfig -c query-ioas-asymmetric-access" 0 "Show the IOAs that support asymmetric access" + rlRun "iprconfig -c query-arrays-asymmetric-access" 0 "Show the disk arrays that are candidates for setting their asymmetric access mode to Optimized or Non-Optimized" + # iprconfig -c query-ioa-asymmetric-access-mode || echo FAILED $? + # iprconfig -c query-aay-asymmetric-access-mode || echo FAILED $? + # iprconfig -c query-ioa-caching || echo FAILED $? + # iprconfig -c query-array-label || echo FAILED $? + # iprconfig -c query-array-rebuild-rate || echo FAILED $? + # iprconfig -c query-array-rebuild-verify || echo FAILED $? + # iprconfig -c query-array || echo FAILED $? + # iprconfig -c query-device || echo FAILED $? + # iprconfig -c query-location || echo FAILED $? + # iprconfig -c query-write-cache-policy || echo FAILED $? + # iprconfig -c raid-create || echo FAILED $? + # iprconfig -c raid-delete || echo FAILED $? + # iprconfig -c raid-include || echo FAILED $? + # iprconfig -c raid-migrate || echo FAILED $? + # iprconfig -c format-for-raid || echo FAILED $? + # iprconfig -c format-for-jbod || echo FAILED $? + # iprconfig -c recovey-format || echo FAILED $? + # iprconfig -c hot-spare-create || echo FAILED $? + # iprconfig -c hot-spare-delete || echo FAILED $? + # iprconfig -c disrupt-device || echo FAILED $? + # iprconfig -c reclaim-cache || echo FAILED $? + # iprconfig -c reclaim-unknown-cache || echo FAILED $? + # iprconfig -c raid-consistency-check || echo FAILED $? + # iprconfig -c raid-rebuild || echo FAILED $? + # iprconfig -c update-ucode || echo FAILED $? + rlRun "iprconfig -c update-all-ucodes" 0 "Update the microcode of every device with the latest version found in the system" + # iprconfig -c set-format-timeout || echo FAILED $? + # iprconfig -c set-qdepth || echo FAILED $? + # iprconfig -c set-tcq-enable || echo FAILED $? + # iprconfig -c set-log-level || echo FAILED $? + # iprconfig -c set-write-cache-policy || echo FAILED $? + # iprconfig -c identify-disk || echo FAILED $? + # iprconfig -c identify-slot || echo FAILED $? + # iprconfig -c remove-disk || echo FAILED $? + # iprconfig -c remove-slot || echo FAILED $? + # iprconfig -c add-slot || echo FAILED $? + # iprconfig -c set-initiator-id || echo FAILED $? + # iprconfig -c set-bus-speed || echo FAILED $? + # iprconfig -c set-bus-width || echo FAILED $? + # iprconfig -c primary || echo FAILED $? + # iprconfig -c secondary || echo FAILED $? + rlRun "iprconfig -c set-all-primary" 0 "Set all attached ipr adapters as the preferred primary adapter" + rlRun "iprconfig -c set-all-secondary" 0 "Set all attached ipr adapters to indicate they are not the preferred primary adapter" + # iprconfig -c query-ha-mode || echo FAILED $? + # iprconfig -c set-ha-mode || echo FAILED $? + # iprconfig -c set-aay-asymmetic-access-mode || echo FAILED $? + # iprconfig -c set-ioa-asymmetric-access-mode || echo FAILED $? + # iprconfig -c set-ioa-caching || echo FAILED $? + # iprconfig -c set-array-rebuild-verify || echo FAILED $? + # iprconfig -c set-array-rebuild-rate || echo FAILED $? + # iprconfig -c get-live-dump || echo FAILED $? + rlRun "iprconfig -c dump" 0 "Display detailed hardware and system information on standard output" + + # should not segfault + rlRun -s "iprdump --version" 0 "Print iprdump version" + rlAssertGrep "iprdump: $VERSION" $rlRun_LOG + rlRun -s "iprinit --version" 0 "Print iprinit version" + rlAssertGrep "iprinit: $VERSION" $rlRun_LOG + # iprsos --version + rlRun -s "iprupdate --version" 0 "Print iprupdate version" + rlAssertGrep "iprupdate: $VERSION" $rlRun_LOG + + # check man page + for m in iprconfig iprdbg iprdump iprinit iprsos iprupdate ; do + rlRun "man -P head $m" 0 "Show the $m man page" + done + + # check for sane license and readme file + rlRun "head /usr/share/licenses/iputils/LICENSE" 0 "Check for license file" + rlRun "head /usr/share/doc/iputils/README" 0 "Check for README file" + rlPhaseEnd + rlPhaseStartCleanup + rlRun "popd" + rlRun "rm -fr $TmpDir" 0 "Removing tmp directory" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..7619f5f --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +--- +# Run tests in all contexts +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-beakerlib + tests: + - basic-functionality-test + required_packages: + - man-db + - coreutils + - rpm From 2a996d952883a7fb3f6a4b9b742c574b2df6d32a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jul 2019 09:39:38 +0000 Subject: [PATCH 09/29] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index 8e65898..64d986f 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -1,7 +1,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.17.1 -Release: 2%{?dist} +Release: 3%{?dist} License: CPL URL: http://sourceforge.net/projects/iprdd/ Source0: https://sourceforge.net/projects/iprdd/files/iprutils%20for%202.6%20kernels/2.4.17/%{name}-%{version}.tar.gz @@ -72,6 +72,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Thu Jul 25 2019 Fedora Release Engineering - 2.4.17.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Mon Apr 15 2019 Than Ngo - 2.4.17.1-2 - add tests From c40c6a61682d473ea9af8f68dfdc80c1ccc1a226 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 29 Jan 2020 05:35:47 +0000 Subject: [PATCH 10/29] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index 64d986f..dc821a8 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -1,7 +1,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.17.1 -Release: 3%{?dist} +Release: 4%{?dist} License: CPL URL: http://sourceforge.net/projects/iprdd/ Source0: https://sourceforge.net/projects/iprdd/files/iprutils%20for%202.6%20kernels/2.4.17/%{name}-%{version}.tar.gz @@ -72,6 +72,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Wed Jan 29 2020 Fedora Release Engineering - 2.4.17.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Thu Jul 25 2019 Fedora Release Engineering - 2.4.17.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From c0875a9bf11967068fade42b53e001a55fb913b7 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 9 Jul 2020 15:33:31 +0200 Subject: [PATCH 11/29] rebase to 2.4.19 --- iprutils.spec | 15 ++++++++++----- sources | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/iprutils.spec b/iprutils.spec index dc821a8..29b9c81 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -1,10 +1,12 @@ +%global gitver rel-2-4-19 + Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils -Version: 2.4.17.1 -Release: 4%{?dist} +Version: 2.4.19 +Release: 1%{?dist} License: CPL -URL: http://sourceforge.net/projects/iprdd/ -Source0: https://sourceforge.net/projects/iprdd/files/iprutils%20for%202.6%20kernels/2.4.17/%{name}-%{version}.tar.gz +URL: https://github.com/bjking1/iprutils +Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz # missing man page Source1: iprdbg.8.gz @@ -23,7 +25,7 @@ supported by the ipr SCSI storage device driver. %prep -%autosetup -p1 +%autosetup -p1 -n %{name}-%{gitver} autoreconf -vif @@ -72,6 +74,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Thu Jul 09 2020 Than Ngo - 2.4.19-1 +- rebase to 2.4.19 + * Wed Jan 29 2020 Fedora Release Engineering - 2.4.17.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 11c881d..1a03d26 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (iprutils-2.4.17.1.tar.gz) = d9b257a1e86350ef26e6491d5030ac864a244283697a4ca588af7ee21c2518c631a2bcfc9913783f973025d186feab8ed045b1d4674621a08b401823e9c52d3d +SHA512 (iprutils-2.4.19.tar.gz) = 4b2a5cfdc7982d26b976b82e8d6eac219266059dda40dd79f03734c6e6ef434a273bfc5f8276ea4f2dd55b1a749c2c03b7c5677c64527469dd54fe45afe6f25d From 45139386c6cb5d1e45918e84cff29cd3734ba479 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jul 2020 01:55:24 +0000 Subject: [PATCH 12/29] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index 29b9c81..421d448 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,7 +3,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 -Release: 1%{?dist} +Release: 2%{?dist} License: CPL URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz @@ -74,6 +74,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Tue Jul 28 2020 Fedora Release Engineering - 2.4.19-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Thu Jul 09 2020 Than Ngo - 2.4.19-1 - rebase to 2.4.19 From 479a1bb9ce9054ae73181b2b3757204ddb2d97a4 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 19 Dec 2020 00:53:58 +0000 Subject: [PATCH 13/29] Add BuildRequires: make https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot --- iprutils.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/iprutils.spec b/iprutils.spec index 421d448..c4f6e30 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -17,6 +17,7 @@ BuildRequires: libcap-devel BuildRequires: kernel-headers BuildRequires: systemd BuildRequires: zlib-devel +BuildRequires: make %description From 7ae29fcdb2184ed45b5514730441336dc73b6bbc Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 14:27:48 +0000 Subject: [PATCH 14/29] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index c4f6e30..3dc49ea 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,7 +3,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 -Release: 2%{?dist} +Release: 3%{?dist} License: CPL URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz @@ -75,6 +75,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 2.4.19-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Tue Jul 28 2020 Fedora Release Engineering - 2.4.19-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 50ebb847291851831556c4db65b34d40b23dd7cf Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 22 Jul 2021 08:42:00 +0000 Subject: [PATCH 15/29] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index 3dc49ea..c406c18 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,7 +3,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 -Release: 3%{?dist} +Release: 4%{?dist} License: CPL URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz @@ -75,6 +75,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Thu Jul 22 2021 Fedora Release Engineering - 2.4.19-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Tue Jan 26 2021 Fedora Release Engineering - 2.4.19-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 745b8a9324f7e8ce5d4194c743586e4ccf0ac138 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 13:25:05 +0000 Subject: [PATCH 16/29] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index c406c18..67a43df 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,7 +3,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 -Release: 4%{?dist} +Release: 5%{?dist} License: CPL URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz @@ -75,6 +75,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 2.4.19-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Thu Jul 22 2021 Fedora Release Engineering - 2.4.19-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From cb03a5fee6d314ba42ff19c11ac7c25430ab28d9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 21 Jul 2022 14:48:48 +0000 Subject: [PATCH 17/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index 67a43df..c286e2e 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,7 +3,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 -Release: 5%{?dist} +Release: 6%{?dist} License: CPL URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz @@ -75,6 +75,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Thu Jul 21 2022 Fedora Release Engineering - 2.4.19-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Thu Jan 20 2022 Fedora Release Engineering - 2.4.19-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From 79b29b5f3cf7d24ecfefc74e789e33878b0f019a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 19 Jan 2023 13:18:48 +0000 Subject: [PATCH 18/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index c286e2e..a52133c 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,7 +3,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 -Release: 6%{?dist} +Release: 7%{?dist} License: CPL URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz @@ -75,6 +75,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Thu Jan 19 2023 Fedora Release Engineering - 2.4.19-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Thu Jul 21 2022 Fedora Release Engineering - 2.4.19-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From cad6a4ba5d6a309dd45b281239c82fa7e64e21bb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jul 2023 07:34:59 +0000 Subject: [PATCH 19/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index a52133c..e250df6 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,7 +3,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 -Release: 7%{?dist} +Release: 8%{?dist} License: CPL URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz @@ -75,6 +75,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Thu Jul 20 2023 Fedora Release Engineering - 2.4.19-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Thu Jan 19 2023 Fedora Release Engineering - 2.4.19-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From ef134128fe4b05c040c606a837bc46bdf788a8f7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 20 Jan 2024 23:14:49 +0000 Subject: [PATCH 20/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index e250df6..70909e8 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,7 +3,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 -Release: 8%{?dist} +Release: 9%{?dist} License: CPL URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz @@ -75,6 +75,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Sat Jan 20 2024 Fedora Release Engineering - 2.4.19-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Thu Jul 20 2023 Fedora Release Engineering - 2.4.19-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From d9d1adf690f17444eaf7e8892a61f79eb5099795 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jan 2024 22:53:36 +0000 Subject: [PATCH 21/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index 70909e8..60ef0de 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,7 +3,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 -Release: 9%{?dist} +Release: 10%{?dist} License: CPL URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz @@ -75,6 +75,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Wed Jan 24 2024 Fedora Release Engineering - 2.4.19-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Sat Jan 20 2024 Fedora Release Engineering - 2.4.19-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 258bf6598e9e50a1f1902d310307550edec72fab Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 8 Jul 2024 14:53:46 +0200 Subject: [PATCH 22/29] - fixed covscan issues and test - limit to ppc64le --- iprutils-2.4.19-covscan.patch | 449 ++++++++++++++++++++++ iprutils.spec | 10 +- tests/basic-functionality-test/runtest.sh | 4 +- 3 files changed, 460 insertions(+), 3 deletions(-) create mode 100644 iprutils-2.4.19-covscan.patch diff --git a/iprutils-2.4.19-covscan.patch b/iprutils-2.4.19-covscan.patch new file mode 100644 index 0000000..87b4e66 --- /dev/null +++ b/iprutils-2.4.19-covscan.patch @@ -0,0 +1,449 @@ +diff -up iprutils-rel-2-4-19/iprconfig.c.me iprutils-rel-2-4-19/iprconfig.c +--- iprutils-rel-2-4-19/iprconfig.c.me 2024-06-17 12:10:54.493119641 +0200 ++++ iprutils-rel-2-4-19/iprconfig.c 2024-06-18 11:20:17.885495296 +0200 +@@ -2483,7 +2483,7 @@ static char *disk_details(char *body, st + char vendor_id[IPR_VENDOR_ID_LEN+1]; + char serial_num[IPR_SERIAL_NUM_LEN+1]; + char buffer[100]; +- int len, scsi_channel, scsi_id, scsi_lun; ++ int len = 0, scsi_channel = 0, scsi_id = 0, scsi_lun = 0; + + device_record = (struct ipr_dev_record *)dev->dev_rcd; + +@@ -2633,7 +2633,7 @@ int get_ses_phy_loc(struct ipr_dev *dev) + int rc, i, ret = 1; + struct ses_inquiry_page0 ses_page0_inq; + struct ses_serial_num_vpd ses_vpd_inq; +- struct esm_serial_num_vpd esm_vpd_inq; ++ struct esm_serial_num_vpd esm_vpd_inq = {0}; + char buffer[100]; + + memset(&ses_vpd_inq, 0, sizeof(ses_vpd_inq)); +@@ -2649,18 +2649,18 @@ int get_ses_phy_loc(struct ipr_dev *dev) + + if (ret == 0 ) { + dev->physical_location[0] = '\0'; +- strncat(dev->physical_location, "U", strlen("U")); ++ strcat(dev->physical_location, "U"); + ipr_strncpy_0(buffer, (char *)ses_vpd_inq.feature_code, + sizeof(ses_vpd_inq.feature_code)); +- strncat(dev->physical_location, buffer, strlen(buffer)); ++ strncat(dev->physical_location, buffer, sizeof(dev->physical_location) - strlen(dev->physical_location) -1); + ipr_strncpy_0(buffer, (char *)ses_vpd_inq.count, + sizeof(ses_vpd_inq.count)); +- strncat(dev->physical_location, ".", strlen(".")); +- strncat(dev->physical_location, buffer, strlen(buffer)); ++ strcat(dev->physical_location, "."); ++ strncat(dev->physical_location, buffer, sizeof(dev->physical_location) - strlen(dev->physical_location) -1); + ipr_strncpy_0(buffer, (char *)ses_vpd_inq.ses_serial_num, + sizeof(ses_vpd_inq.ses_serial_num)); +- strncat(dev->physical_location, ".", strlen(".")); +- strncat(dev->physical_location, buffer, strlen(buffer)); ++ strcat(dev->physical_location, "."); ++ strncat(dev->physical_location, buffer, sizeof(dev->physical_location) - strlen(dev->physical_location) -1); + + } + +@@ -2676,8 +2676,8 @@ int get_ses_phy_loc(struct ipr_dev *dev) + ipr_strncpy_0((char *)&dev->serial_number, (char *)&esm_vpd_inq.esm_serial_num[0], sizeof(esm_vpd_inq.esm_serial_num)); + ipr_strncpy_0(buffer, (char *)esm_vpd_inq.frb_label, + sizeof(esm_vpd_inq.frb_label)); +- strncat(dev->physical_location, "-", strlen("-")); +- strncat(dev->physical_location, buffer, strlen(buffer)); ++ strcat(dev->physical_location, "-"); ++ strncat(dev->physical_location, buffer, sizeof(dev->physical_location) - strlen(dev->physical_location) -1); + return 0; + } + } +@@ -3313,7 +3313,7 @@ static int raid_stop_complete() + **/ + int do_confirm_raid_stop(i_container *i_con) + { +- struct ipr_dev *vset; ++ struct ipr_dev *vset = NULL; + struct array_cmd_data *cur_raid_cmd; + struct ipr_ioa *ioa; + int rc; +@@ -3715,7 +3715,7 @@ int configure_raid_parameters(i_containe + int ch, start_row; + int cur_field_index; + int selected_count = 0, ssd_num = 0, hdd_num = 0; +- int stripe_sz, stripe_sz_mask, stripe_sz_list[16]; ++ int stripe_sz, stripe_sz_mask, stripe_sz_list[16] = {0}; + struct prot_level *prot_level_list; + int *userptr = NULL; + int *retptr; +@@ -3979,7 +3979,7 @@ int configure_raid_parameters(i_containe + sprintf(stripe_menu_str[index].line,"%d k",stripe_sz_mask); + + if (stripe_sz_mask == ntohs(cap_entry->recommended_stripe_size)) { +- sprintf(buffer,_("%s - recommend"),stripe_menu_str[index].line); ++ snprintf(buffer, sizeof(buffer), _("%s - recommend"),stripe_menu_str[index].line); + raid_item[index] = new_item(buffer, ""); + } else { + raid_item[index] = new_item(stripe_menu_str[index].line, ""); +@@ -7486,7 +7486,7 @@ int remove_or_add_back_device_64bit(stru + int res_path_len, dev_slot; + struct ipr_dev *sec_dev, *tmp_dev; + char new_sysfs_res_path[IPR_MAX_RES_PATH_LEN]; +- int rc; ++ int rc = 0; + + res_path_len = strlen(dev->res_path_name); + dev_slot = strtoul(dev->res_path_name + (res_path_len - 2), NULL, 16); +@@ -7558,7 +7558,7 @@ int process_conc_maint(i_container *i_co + int toggle=0; + s_node *n_screen; + struct screen_output *s_out; +- struct ipr_res_addr res_addr; ++ struct ipr_res_addr res_addr = {0}; + struct ipr_res_path res_path[2]; + int max_y, max_x; + +@@ -7905,7 +7905,7 @@ static struct ipr_dev *alloc_empty_slot( + dev->ses[0] = ses; + dev->ioa = ioa; + dev->physical_location[0] = '\0'; +- strncat(dev->physical_location, phy_loc, strlen(phy_loc)); ++ strncat(dev->physical_location, phy_loc, sizeof(dev->physical_location) - strlen(dev->physical_location) -1); + get_res_addrs(dev); + return dev; + } +@@ -7948,7 +7948,7 @@ static struct ipr_dev *alloc_empty_slot_ + dev->ses[0] = ses; + dev->ioa = ioa; + dev->physical_location[0] = '\0'; +- strncat(dev->physical_location, phy_loc, strlen(phy_loc)); ++ strncat(dev->physical_location, phy_loc, sizeof(dev->physical_location) - strlen(dev->physical_location) -1); + get_res_path(dev); + return dev; + } +@@ -8020,7 +8020,7 @@ static struct ipr_dev *get_dev_for_slot( + } + dev->physical_location[0] = '\0'; + if (strlen(phy_loc)) +- strncat(dev->physical_location, phy_loc, strlen(phy_loc)); ++ strncat(dev->physical_location, phy_loc, sizeof(dev->physical_location) - strlen(dev->physical_location) -1); + return dev; + } + } +@@ -8068,7 +8068,7 @@ static struct ipr_dev *get_dev_for_slot_ + } + dev->physical_location[0] = '\0'; + if (strlen(phy_loc)) +- strncat(dev->physical_location, phy_loc, strlen(phy_loc)); ++ strncat(dev->physical_location, phy_loc, sizeof(dev->physical_location) - strlen(dev->physical_location) -1); + return dev; + + } +@@ -8282,7 +8282,7 @@ static int get_conc_devs(struct ipr_dev + int ses_bus, scsi_id_found, is_spi, is_vses; + struct ipr_ses_config_pg ses_cfg; + struct drive_elem_desc_pg drive_data; +- char phy_loc[PHYSICAL_LOCATION_LENGTH + 1]; ++ char phy_loc[PHYSICAL_LOCATION_LENGTH + 1] = {0}; + int times, index; + + for_each_primary_ioa(ioa) { +@@ -11447,7 +11447,7 @@ int change_ioa_config(i_container * i_co + * number of options showed at screen. It should be more generic... + */ + struct ioa_config_attr *config_attr = NULL; +- struct ipr_ioa_attr ioa_attr; ++ struct ipr_ioa_attr ioa_attr = {0}; + int header_lines = 0, index = 0; + char *body = NULL; + struct screen_output *s_out; +@@ -12418,8 +12418,7 @@ int ibm_storage_log(i_container *i_con) + (*dirent)->d_name); + logsource_fp = gzopen(logfile, "r"); + if (logsource_fp == NULL) { +- syslog(LOG_ERR, "Could not open %s: %m\n", line); +- close(log_fd); ++ syslog(LOG_ERR, "Could not open %s: %m\n", logfile); + continue; /* proceed to next log file */ + } + +@@ -12524,8 +12523,7 @@ int kernel_log(i_container *i_con) + (*dirent)->d_name); + logsource_fp = gzopen(logfile, "r"); + if (logsource_fp == NULL) { +- syslog(LOG_ERR, "Could not open %s: %m\n", line); +- close(log_fd); ++ syslog(LOG_ERR, "Could not open %s: %m\n", logfile); + continue; /* proceed to next log file */ + } + +@@ -12602,8 +12600,7 @@ int iprconfig_log(i_container *i_con) + (*dirent)->d_name); + logsource_fp = gzopen(logfile, "r"); + if (logsource_fp == NULL) { +- syslog(LOG_ERR, "Could not open %s: %m\n", line); +- close(log_fd); ++ syslog(LOG_ERR, "Could not open %s: %m\n", logfile); + continue; /* proceed to next log file */ + } + +@@ -12855,7 +12852,7 @@ int ibm_boot_log(i_container *i_con) + snprintf(logfile, sizeof(logfile), "%s/boot.msg", log_root_dir); + logsource_fp = fopen(logfile, "r"); + if (!logsource_fp) { +- syslog(LOG_ERR, "Could not open %s: %m\n", line); ++ syslog(LOG_ERR, "Could not open %s: %m\n", logfile); + free(tmp_log); + close(log_fd); + return RC_75_Failed_Read_Err_Log; +@@ -12917,7 +12914,7 @@ static void get_status(struct ipr_dev *d + int blk_size = 0; + struct ipr_mode_pages mode_pages; + struct ipr_block_desc *block_desc; +- struct sense_data_t sense_data; ++ struct sense_data_t sense_data = {0}; + struct ipr_cmd_status cmd_status; + struct ipr_cmd_status_record *status_record; + int percent_cmplt = 0; +@@ -13261,7 +13258,7 @@ static char *print_phy64(struct ipr_fabr + ipr_format_res_path_wo_hyphen(cfg->res_path, buffer, IPR_MAX_RES_PATH_LEN); + ff_len = res_path_len - strlen(buffer); + for ( i = 0; i < ff_len; i++) +- strncat(buffer, "F", strlen("F")); ++ strcat(buffer, "F"); + + len += sprintf(body + len, "%s", buffer); + +@@ -13419,8 +13416,8 @@ char *__print_device(struct ipr_dev *dev + char res_path_name[IPR_MAX_RES_PATH_LEN]; + int tab_stop = 0; + int loc_len = 0; +- char vendor_id[IPR_VENDOR_ID_LEN + 1]; +- char product_id[IPR_PROD_ID_LEN + 1]; ++ char vendor_id[IPR_VENDOR_ID_LEN + 1] = {0}; ++ char product_id[IPR_PROD_ID_LEN + 1] = {0}; + struct ipr_ioa *ioa = dev->ioa, *ioa_phy_loc; + bool is4k = false, isri = false; + +@@ -14009,7 +14006,7 @@ static void curses_init() + **/ + static int format_devices(char **args, int num_args, int fmt_flag) + { +- int i, rc, blksz; ++ int i, rc, blksz = 0; + struct ipr_dev *dev; + + for (i = 0; i < num_args; i++) { +@@ -17779,7 +17776,7 @@ static int get_drive_phy_loc(struct ipr_ + struct ipr_ses_config_pg ses_cfg; + int ses_bus, scsi_id_found, is_spi, is_vses; + struct drive_elem_desc_pg drive_data; +- char phy_loc[PHYSICAL_LOCATION_LENGTH + 1]; ++ char phy_loc[PHYSICAL_LOCATION_LENGTH + 1] = {0}; + int times, index; + + is_spi = ioa_is_spi(ioa); +@@ -18222,7 +18219,7 @@ static int set_ioa_caching(char **args, + static int set_array_rebuild_verify(char **args, int num_args) + { + int rc; +- struct ipr_ioa_attr attr; ++ struct ipr_ioa_attr attr = {0}; + struct ipr_ioa *ioa; + struct ipr_dev *dev; + int disable_rebuild_verify; +@@ -18318,7 +18315,7 @@ static int set_array_rebuild_rate(char** + int err_rebuild_rate = 0; + int rebuild_rate = 0; + int rc; +- struct ipr_ioa_attr attr; ++ struct ipr_ioa_attr attr = {0}; + struct ipr_ioa *ioa; + struct ipr_dev *dev; + +@@ -18382,7 +18379,7 @@ static int set_array_rebuild_rate(char** + **/ + static int query_array_rebuild_rate(char**args, int num_args) + { +- struct ipr_ioa_attr attr; ++ struct ipr_ioa_attr attr = {0}; + struct ipr_ioa *ioa; + struct ipr_dev *dev; + int rebuild_rate = 0; +diff -up iprutils-rel-2-4-19/iprconfig.h.me iprutils-rel-2-4-19/iprconfig.h +diff -up iprutils-rel-2-4-19/iprdump.c.me iprutils-rel-2-4-19/iprdump.c +--- iprutils-rel-2-4-19/iprdump.c.me 2024-06-17 17:12:49.846400485 +0200 ++++ iprutils-rel-2-4-19/iprdump.c 2024-06-18 00:41:47.907738323 +0200 +@@ -23,6 +23,7 @@ + #define MAX_DUMP_FILES 4 + #define TOOL_NAME "iprdump" + #define DUMP_PREFIX TOOL_NAME"." ++#define MAX_PATH_LENGTH 1024 + + char *tool_name = TOOL_NAME; + +@@ -156,7 +157,7 @@ static int dump_sort(const struct dirent + static void cleanup_old_dumps() + { + struct dirent **dirent; +- char fname[100]; ++ char fname[MAX_PATH_LENGTH]; + int rc, i; + + rc = scandir(usr_dir, &dirent, select_dump_file, dump_sort); +@@ -226,7 +227,7 @@ static void write_dump(struct ipr_ioa *i + if (get_dump_fname(dump_file)) + return; + +- sprintf(dump_path, "%s%s", usr_dir, dump_file); ++ snprintf(dump_path, sizeof(dump_path), "%s%s", usr_dir, dump_file); + f_dump = creat(dump_path, S_IRUSR); + if (f_dump < 0) { + syslog(LOG_ERR, "Cannot open %s. %m\n", dump_path); +@@ -347,7 +348,7 @@ int main(int argc, char *argv[]) + if (strcmp(argv[i], "-d") == 0) { + strcpy(usr_dir,argv[++i]); + len = strlen(usr_dir); +- if (len < sizeof(usr_dir) && usr_dir[len] != '/') { ++ if (len < sizeof(usr_dir) - 2 && usr_dir[len] != '/') { + usr_dir[len + 1] = '/'; + usr_dir[len + 2] = '\0'; + } +diff -up iprutils-rel-2-4-19/iprlib.c.me iprutils-rel-2-4-19/iprlib.c +--- iprutils-rel-2-4-19/iprlib.c.me 2024-06-17 12:22:56.983740856 +0200 ++++ iprutils-rel-2-4-19/iprlib.c 2024-06-18 10:09:20.716132953 +0200 +@@ -2063,8 +2063,9 @@ static void ipr_get_pci_slots() + if (strcmp(pci_slot[i].pci_device, ioa->pci_address) && + strcmp(pci_slot[i].slot_name, ioa->pci_address)) + continue; +- strcpy(ioa->physical_location, +- pci_slot[i].physical_name); ++ strncpy(ioa->physical_location, ++ pci_slot[i].physical_name, sizeof(ioa->physical_location) - 1); ++ ioa->physical_location[sizeof(ioa->physical_location) - 1] = '\0'; + break; + } + } +@@ -2101,7 +2102,7 @@ void load_system_p_oper_mode() + **/ + static int __tool_init(int save_state) + { +- int temp, fw_type; ++ int temp, fw_type = 0; + struct ipr_ioa *ipr_ioa; + DIR *dirfd, *host_dirfd; + struct dirent *dent, *host_dent; +@@ -2132,13 +2133,15 @@ static int __tool_init(int save_state) + memset(ipr_ioa,0,sizeof(struct ipr_ioa)); + + /* PCI address */ +- strcpy(ipr_ioa->pci_address, dent->d_name); ++ strncpy(ipr_ioa->pci_address, dent->d_name, sizeof(ipr_ioa->pci_address) - 1); ++ ipr_ioa->pci_address[sizeof(ipr_ioa->pci_address) -1] = '\0'; + ipr_ioa->host_num = -1; + sprintf(devpath, "/sys/bus/pci/drivers/ipr/%s", + dent->d_name); + host_dirfd = opendir(devpath); + if (!host_dirfd) { + syslog_dbg("Failed to open scsi_host class.\n"); ++ closedir(dirfd); + return -EAGAIN; + } + while ((host_dent = readdir(host_dirfd)) != NULL) { +@@ -2152,7 +2155,8 @@ static int __tool_init(int save_state) + &ipr_ioa->host_num) != 1) + continue; + +- strcpy(ipr_ioa->host_name, host_dent->d_name); ++ strncpy(ipr_ioa->host_name, host_dent->d_name, sizeof(ipr_ioa->host_name) - 1); ++ ipr_ioa->host_name[sizeof(ipr_ioa->host_name) - 1] = '\0'; + get_pci_attrs(ipr_ioa, devpath); + + sprintf(scsipath, "%s/%s/scsi_host/%s", devpath, +@@ -2188,6 +2192,7 @@ static int __tool_init(int save_state) + len = sysfs_read_attr(devpath, "model", buff, 16); + if (len < 0 || (sscanf(buff, "%4X", &temp) != 1)) { + syslog_dbg("Cannot read SCSI device model.\n"); ++ closedir(dirfd); + return -EAGAIN; + } + ipr_ioa->ccin = temp; +@@ -5747,7 +5752,7 @@ int ipr_set_active_active_mode(struct ip + **/ + int set_active_active_mode(struct ipr_ioa *ioa, int mode) + { +- struct ipr_ioa_attr attr; ++ struct ipr_ioa_attr attr = {0}; + int rc; + + /* Get the current ioa attributes. */ +@@ -5860,7 +5865,7 @@ int get_scsi_dev_data(struct scsi_dev_da + len = sysfs_read_attr(devpath, "resource_path", buff, 256); + if (len > 0) + ipr_strncpy_0n(scsi_dev_data->res_path, +- buff, IPR_MAX_RES_PATH_LEN); ++ buff, IPR_MAX_RES_PATH_LEN-1); + + len = sysfs_read_attr(devpath, "device_id", buff, 256); + if (len > 0) +@@ -6255,15 +6260,19 @@ static void get_prot_levels(struct ipr_i + for_each_array(ioa, array) { + prot_level_str = get_prot_level_str(ioa->supported_arrays, + array->raid_level); +- strncpy(array->prot_level_str, prot_level_str, 8); ++ strncpy(array->prot_level_str, prot_level_str, sizeof(array->prot_level_str) - 1); ++ array->prot_level_str[sizeof(array->prot_level_str) - 1] = '\0'; + } + + for_each_vset(ioa, vset) { + prot_level_str = get_prot_level_str(ioa->supported_arrays, + vset->raid_level); +- strncpy(vset->prot_level_str, prot_level_str, 8); +- for_each_dev_in_vset(vset, dev) +- strncpy(dev->prot_level_str, prot_level_str, 8); ++ strncpy(vset->prot_level_str, prot_level_str, sizeof(vset->prot_level_str) - 1); ++ vset->prot_level_str[sizeof(vset->prot_level_str) - 1] = '\0'; ++ for_each_dev_in_vset(vset, dev) { ++ strncpy(dev->prot_level_str, prot_level_str, sizeof(dev->prot_level_str) - 1); ++ dev->prot_level_str[sizeof(dev->prot_level_str) - 1] = '\0'; ++ } + } + } + +@@ -7038,6 +7047,7 @@ static void ipr_save_attr(struct ipr_ioa + temp_fd = fopen(temp_fname, "w"); + if (temp_fd == NULL) { + syslog(LOG_ERR, "Could not open %s. %m\n", temp_fname); ++ fclose(fd); + return; + } + +@@ -9175,6 +9185,8 @@ int ipr_update_ioa_fw(struct ipr_ioa *io + dir = opendir(hotplug_dir); + if (!dir) + mkdir(hotplug_dir, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); ++ else ++ closedir(dir); + + dir = opendir(hotplug_dir); + if (!dir) { +@@ -9356,7 +9368,12 @@ int ipr_ses_get_time(struct ipr_dev *dev + return -EIO; + + *origin = !!get_time.timestamp_origin; +- *timestamp = be64toh(*((u64*) get_time.timestamp)) >> 16; ++ *timestamp = ((u64)get_time.timestamp[0] << 40) | ++ ((u64)get_time.timestamp[1] << 32) | ++ ((u64)get_time.timestamp[2] << 24) | ++ ((u64)get_time.timestamp[3] << 16) | ++ ((u64)get_time.timestamp[4] << 8) | ++ (u64)get_time.timestamp[5]; + return 0; + } + +@@ -9776,7 +9793,7 @@ static void init_gpdd_dev(struct ipr_dev + */ + static void init_af_dev(struct ipr_dev *dev) + { +- struct ipr_disk_attr attr; ++ struct ipr_disk_attr attr = {0}; + int rc; + + if (ipr_set_dasd_timeouts(dev, 0)) diff --git a/iprutils.spec b/iprutils.spec index 60ef0de..6e78121 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,7 +3,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 -Release: 10%{?dist} +Release: 11%{?dist} License: CPL URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz @@ -11,6 +11,10 @@ Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version # missing man page Source1: iprdbg.8.gz +Patch10: iprutils-2.4.19-covscan.patch + +ExclusiveArch: ppc64le + BuildRequires: libtool BuildRequires: ncurses-devel BuildRequires: libcap-devel @@ -75,6 +79,10 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Mon Jul 08 2024 Than Ngo - 2.4.19-11 +- fixed covscan issues and test +- limit to ppc64le + * Wed Jan 24 2024 Fedora Release Engineering - 2.4.19-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git a/tests/basic-functionality-test/runtest.sh b/tests/basic-functionality-test/runtest.sh index 93d9ea0..b16a304 100755 --- a/tests/basic-functionality-test/runtest.sh +++ b/tests/basic-functionality-test/runtest.sh @@ -174,8 +174,8 @@ rlJournalStart done # check for sane license and readme file - rlRun "head /usr/share/licenses/iputils/LICENSE" 0 "Check for license file" - rlRun "head /usr/share/doc/iputils/README" 0 "Check for README file" + rlRun "head /usr/share/licenses/iprutils/LICENSE" 0 "Check for license file" + rlRun "head /usr/share/doc/iprutils/README" 0 "Check for README file" rlPhaseEnd rlPhaseStartCleanup rlRun "popd" From 2999637c6532240fb549e66418c834ae141de54d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 18 Jul 2024 10:33:03 +0000 Subject: [PATCH 23/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index 6e78121..92c9ddc 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,7 +3,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 -Release: 11%{?dist} +Release: 12%{?dist} License: CPL URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz @@ -79,6 +79,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Thu Jul 18 2024 Fedora Release Engineering - 2.4.19-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Mon Jul 08 2024 Than Ngo - 2.4.19-11 - fixed covscan issues and test - limit to ppc64le From 3cfb3dc7c0601d04c4bb8ae33bdf6de1dcbed6f5 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 5 Aug 2024 08:20:22 +0200 Subject: [PATCH 24/29] fix license tag --- iprutils.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iprutils.spec b/iprutils.spec index 92c9ddc..a917806 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,8 +3,8 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 -Release: 12%{?dist} -License: CPL +Release: 13%{?dist} +License: CPL-1.0 URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz @@ -79,6 +79,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Mon Aug 05 2024 Than Ngo - 2.4.19-13 +- fix license tag + * Thu Jul 18 2024 Fedora Release Engineering - 2.4.19-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 7ea06f1d5eeca0aedec3ee2e30f5478a861860a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Wed, 7 Aug 2024 09:39:22 +0200 Subject: [PATCH 25/29] convert license to SPDX This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- iprutils.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/iprutils.spec b/iprutils.spec index a917806..ae13436 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,8 +3,9 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 -Release: 13%{?dist} -License: CPL-1.0 +Release: 14%{?dist} +# Automatically converted from old format: CPL-1.0 - review is highly recommended. +License: Not a valid license string in legacy syntax. Pass '--verbose' to get full parser error. URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz @@ -79,6 +80,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Wed Aug 07 2024 Miroslav Suchý - 2.4.19-14 +- convert license to SPDX + * Mon Aug 05 2024 Than Ngo - 2.4.19-13 - fix license tag From 52debdb86dcc1814c094bed69afed240802817b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Fri, 13 Sep 2024 06:41:40 +0000 Subject: [PATCH 26/29] Correct SPDX license formula Previously, the script for automatic conversion made an incorrect change. Reverting back as CPL-1.0 is a valid license id. --- iprutils.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/iprutils.spec b/iprutils.spec index ae13436..d992cb6 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -4,8 +4,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 Release: 14%{?dist} -# Automatically converted from old format: CPL-1.0 - review is highly recommended. -License: Not a valid license string in legacy syntax. Pass '--verbose' to get full parser error. +License: CPL-1.0 URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz From c88aa208ebcf8a665a09fb9d6c413e939eede0e1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jan 2025 07:21:31 +0000 Subject: [PATCH 27/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index d992cb6..95b3c8b 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,7 +3,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 -Release: 14%{?dist} +Release: 15%{?dist} License: CPL-1.0 URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz @@ -79,6 +79,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Fri Jan 17 2025 Fedora Release Engineering - 2.4.19-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Wed Aug 07 2024 Miroslav Suchý - 2.4.19-14 - convert license to SPDX From 81c60cdbb36957071f1fd415cfb70a2f6b8b9838 Mon Sep 17 00:00:00 2001 From: Jakub Haruda Date: Tue, 15 Jul 2025 14:56:45 +0200 Subject: [PATCH 28/29] Convert STI to TMT --- .fmf/version | 1 + plans/basic.fmf | 11 ++++ tests/basic-functionality-test/Makefile | 65 ------------------- tests/basic-functionality-test/PURPOSE | 11 ---- tests/sanity/main.fmf | 24 +++++++ .../runtest.sh | 1 - tests/tests.yml | 13 ---- 7 files changed, 36 insertions(+), 90 deletions(-) create mode 100644 .fmf/version create mode 100644 plans/basic.fmf delete mode 100644 tests/basic-functionality-test/Makefile delete mode 100644 tests/basic-functionality-test/PURPOSE create mode 100644 tests/sanity/main.fmf rename tests/{basic-functionality-test => sanity}/runtest.sh (99%) delete mode 100644 tests/tests.yml diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/plans/basic.fmf b/plans/basic.fmf new file mode 100644 index 0000000..b5711c6 --- /dev/null +++ b/plans/basic.fmf @@ -0,0 +1,11 @@ +--- +/: + inherit: false + +summary: Plan for running all tests + +discover: + how: fmf +execute: + how: tmt + diff --git a/tests/basic-functionality-test/Makefile b/tests/basic-functionality-test/Makefile deleted file mode 100644 index 5530481..0000000 --- a/tests/basic-functionality-test/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/patch/Regression/Cannot-handle-file-names-with-integrated-spaces -# Description: Test for bz431887 (Cannot handle file names with integrated spaces) -# Author: Ondrej Moris -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/patch/Regression/Cannot-handle-file-names-with-integrated-spaces -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE - -.PHONY: all install download clean - -run: $(FILES) build - ./runtest.sh - -build: $(BUILT_FILES) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Ondrej Moris " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for bz431887 (Cannot handle file names with integrated spaces)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: patch" >> $(METADATA) - @echo "Requires: patch" >> $(METADATA) - @echo "Requires: expect" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 431887" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/basic-functionality-test/PURPOSE b/tests/basic-functionality-test/PURPOSE deleted file mode 100644 index 4d05a09..0000000 --- a/tests/basic-functionality-test/PURPOSE +++ /dev/null @@ -1,11 +0,0 @@ -PURPOSE of /CoreOS/iprutils/basic-functionality-test -Description: Tier1 tests -Author: Than Ngo - -tests following scenarios: - * test iprdump --version - * test iprinit --version - * test iprupdate --version - * test Services: iprdump, iprinit, iprupdate - * test existence of man pages - * test existence of license and readme file diff --git a/tests/sanity/main.fmf b/tests/sanity/main.fmf new file mode 100644 index 0000000..b0aef71 --- /dev/null +++ b/tests/sanity/main.fmf @@ -0,0 +1,24 @@ +summary: Test for bz431887 (Cannot handle file names with integrated spaces) +description: "tests following scenarios:\n * test iprdump --version\n * test iprinit + --version\n * test iprupdate --version\n * test Services: iprdump, iprinit, iprupdate\n\ + \ * test existence of man pages\n * test existence of license and readme file\ + \ \n" +contact: Ondrej Moris +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=431887 +component: + - patch +test: ./runtest.sh +framework: beakerlib +recommend: + - iprutils + - patch + - expect + - man-db + - coreutils + - rpm +duration: 5m +extra-summary: + /CoreOS/patch/Regression/Cannot-handle-file-names-with-integrated-spaces +extra-task: + /CoreOS/patch/Regression/Cannot-handle-file-names-with-integrated-spaces diff --git a/tests/basic-functionality-test/runtest.sh b/tests/sanity/runtest.sh similarity index 99% rename from tests/basic-functionality-test/runtest.sh rename to tests/sanity/runtest.sh index b16a304..2cc274e 100755 --- a/tests/basic-functionality-test/runtest.sh +++ b/tests/sanity/runtest.sh @@ -30,7 +30,6 @@ PACKAGES="iprutils man-db coreutils rpm" SERVICES="iprdump iprinit iprupdate" # Include Beaker environment -. /usr/bin/rhts-environment.sh || exit 1 . /usr/share/beakerlib/beakerlib.sh || exit 1 rlJournalStart diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index 7619f5f..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -# Run tests in all contexts -- hosts: localhost - tags: - - classic - roles: - - role: standard-test-beakerlib - tests: - - basic-functionality-test - required_packages: - - man-db - - coreutils - - rpm From f40acc53aa4c16da13c8bd167848a9b90ac5a677 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 17:45:44 +0000 Subject: [PATCH 29/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- iprutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iprutils.spec b/iprutils.spec index 95b3c8b..fb01523 100644 --- a/iprutils.spec +++ b/iprutils.spec @@ -3,7 +3,7 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils Version: 2.4.19 -Release: 15%{?dist} +Release: 16%{?dist} License: CPL-1.0 URL: https://github.com/bjking1/iprutils Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz @@ -79,6 +79,9 @@ rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Thu Jul 24 2025 Fedora Release Engineering - 2.4.19-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Fri Jan 17 2025 Fedora Release Engineering - 2.4.19-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild