Resolves: #2050885, rebase to 1.1.16

This commit is contained in:
Than Ngo 2022-05-10 11:11:03 +02:00
parent 4e79d234de
commit a6af3ac1eb
5 changed files with 15 additions and 71 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ servicelog-1.1.7.tar.gz
/servicelog-1.1.12.tar.gz /servicelog-1.1.12.tar.gz
/servicelog-1.1.14.tar.gz /servicelog-1.1.14.tar.gz
/servicelog-1.1.15.tar.gz /servicelog-1.1.15.tar.gz
/servicelog-1.1.16.tar.gz

View File

@ -1,61 +0,0 @@
From c4b4aa2c79dc801311af6483079e6cb6a84d0919 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh@redhat.com>
Date: Wed, 28 Oct 2020 15:20:04 -0400
Subject: [PATCH] slog_common_event: Allow --help and --version even on
unsupported platforms
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
---
src/slog_common_event.c | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/src/slog_common_event.c b/src/slog_common_event.c
index a034511635a993330154578632b0824cbacddf18..970551cc9cf953e08a09309e655056f41152b50e 100644
--- a/src/slog_common_event.c
+++ b/src/slog_common_event.c
@@ -77,20 +77,10 @@ main(int argc, char **argv) {
char *e=NULL, *s=NULL, *d=NULL, *l=NULL;
char desc[1024];
servicelog *slog;
struct sl_event event;
uint64_t event_id;
- int platform = 0;
-
- platform = get_platform();
- switch (platform) {
- case PLATFORM_UNKNOWN:
- case PLATFORM_POWERNV:
- fprintf(stderr, "%s is not supported on the %s platform\n",
- argv[0], __power_platform_name(platform));
- exit(1);
- }
for (;;) {
option_index = 0;
rc = getopt_long(argc, argv, "e:t:s:d:l:hvV", long_options,
&option_index);
@@ -135,10 +125,21 @@ main(int argc, char **argv) {
"(%s).\n", PACKAGE_BUGREPORT);
exit(1);
}
}
+ int platform = 0;
+
+ platform = get_platform();
+ switch (platform) {
+ case PLATFORM_UNKNOWN:
+ case PLATFORM_POWERNV:
+ fprintf(stderr, "%s is not supported on the %s platform\n",
+ argv[0], __power_platform_name(platform));
+ exit(1);
+ }
+
if (e == NULL) {
if (verbose) {
fprintf(stderr, "The --event command-line argument is "
"required.");
}
--
2.28.0

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}

View File

@ -1,23 +1,19 @@
Name: servicelog Name: servicelog
Version: 1.1.15 Version: 1.1.16
Release: 8%{?dist} Release: 1%{?dist}
Summary: Servicelog Tools Summary: Servicelog Tools
License: GPLv2 License: GPLv2
URL: https://github.com/power-ras/servicelog URL: https://github.com/power-ras/servicelog
Source0: https://github.com/power-ras/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/power-ras/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: make BuildRequires: make
BuildRequires: libservicelog-devel >= 1.1.9-2 BuildRequires: libservicelog-devel >= 1.1.9-2
BuildRequires: autoconf libtool librtas-devel help2man BuildRequires: autoconf libtool librtas-devel help2man
# because of librtas-devel in libservicelog # because of librtas-devel in libservicelog
ExclusiveArch: ppc %{power64} ExclusiveArch: ppc %{power64}
# Patch to work around build failing to generate manpages on PowerNV builders
# See https://github.com/power-ras/servicelog/pull/2
Patch0001: 0001-slog_common_event-Allow-help-and-version-even-on-uns.patch
%description %description
Command-line interfaces for viewing and manipulating the contents of Command-line interfaces for viewing and manipulating the contents of
the servicelog database. Contains entries that are useful the servicelog database. Contains entries that are useful
@ -25,8 +21,7 @@ for performing system service operations, and for providing a history
of service operations that have been performed on the system. of service operations that have been performed on the system.
%prep %prep
%setup -q %autosetup -p1
%patch0001 -p1
%build %build
autoreconf -fiv autoreconf -fiv
@ -51,6 +46,9 @@ help2man -s 8 -N $RPM_BUILD_ROOT/%{_sbindir}/slog_common_event > $RPM_BUILD_ROOT
%{_mandir}/man[18]/*.[18]* %{_mandir}/man[18]/*.[18]*
%changelog %changelog
* Tue May 10 2022 Than Ngo <than@redhat.com> - 1.1.16-1
- Resolves: #2050885, rebase to 1.1.16
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.15-8 * Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.15-8
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688 Related: rhbz#1991688

View File

@ -1 +1 @@
SHA512 (servicelog-1.1.15.tar.gz) = 5d5142aeb947133fb8ae77d5021790ab530d4614a8becf018342e1feeded2f64302343189d4bd4d684b096888aad6f45e08861404bcc5437abeac078fbbb7ac6 SHA512 (servicelog-1.1.16.tar.gz) = 127329cd04cbcc83ea95614aff441e8efb5ba10c1befbf13ad9ed7fc2ca88f11b6390c2ed7843df7e56b848fb0066d85c0bf17e60b22885ed4266661012b34a0