Accepting request 1059992 from home:michals

- Update to version 2.0.3
- Remove upstreamed patch
  - librtasevent-Fix-memory-page-address-print-issue.patch
- Refresh spec file

OBS-URL: https://build.opensuse.org/request/show/1059992
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/librtas?expand=0&rev=56
This commit is contained in:
Jan Engelhardt 2023-01-24 17:41:14 +00:00 committed by Git OBS Bridge
parent e601eb69a4
commit 52dfde65d6
7 changed files with 42 additions and 362 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b47b2a6f140347ac265e2c66ddf68293f6cdcc7c0c9a78c6e21ff52846465415
size 91627

3
librtas-2.0.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1b951422ec9553fa9d5e5e158fd8e298f867f561189fff6817a9540d5661f145
size 95483

View File

@ -1,264 +0,0 @@
-------------------------------------------------------------------
Wed Jan 12 13:01:37 UTC 2022 - Michal Suchanek <msuchanek@suse.com>
- librtasevent: Fix memory page address print issue (bsc#1193846 ltc#193949).
+ librtasevent-Fix-memory-page-address-print-issue.patch
-------------------------------------------------------------------
Sun Sep 15 10:13:00 UTC 2019 - Michel Normand <normand@linux.vnet.ibm.com>
- Add -ffat-lto-objects to avoid ppc64le build error
-------------------------------------------------------------------
Mon Jul 2 12:30:18 UTC 2018 - jloeser@suse.com
- version update to 2.0.2 (fate#324947)
* interface for ibm,physical-attestation rtas call
-------------------------------------------------------------------
Tue Aug 29 10:22:14 UTC 2017 - jloeser@suse.com
- add missing references for SLE merge:
* bsc#902243
* fate#321599
* fate#318014
-------------------------------------------------------------------
Mon Apr 3 09:18:40 UTC 2017 - jloeser@suse.com
- adjust url/source
-------------------------------------------------------------------
Mon Oct 10 11:41:53 UTC 2016 - jloeser@suse.com
- version update to 2.0.1 (fate#323766)
* Fix endianess issue in errinjct rtas call
- added patches:
* librtas.fix_doc_path.patch
- removed patches:
* librtas.bug-985643_open_RTAS_error_facility.patch
* librtas-failedmagic.patch
-------------------------------------------------------------------
Mon Jul 25 12:37:58 UTC 2016 - jloeser@suse.com
- fix for opening RTAS error injection facility (bsc#985643)
- added patches:
* librtas.bug-985643_open_RTAS_error_facility.patch
-------------------------------------------------------------------
Mon Jun 27 11:32:47 UTC 2016 - normand@linux.vnet.ibm.com
- version update to 2.0.0 (bsc#981294)
* SO version change from 1 -> 2
* generate static libraries
* minor fixes (see Changelog)
-------------------------------------------------------------------
Mon Jun 13 12:03:11 UTC 2016 - mlin@suse.com
- Split off documents to -doc sub-package
* We can't really add doxygen to Ring0 which required by -doc
-------------------------------------------------------------------
Wed Mar 2 14:09:55 UTC 2016 - jloeser@suse.com
- version update to 1.4.0 (FATE#319934)
- see Changelog under librtas-1.4.0/Changelog
-------------------------------------------------------------------
Wed Oct 29 12:08:14 UTC 2014 - jloeser@suse.com
- version update to 1.3.13
see changelog for changes
-------------------------------------------------------------------
Fri Sep 5 09:50:17 UTC 2014 - jengelh@inai.de
- RPM group classification; add project web locations
-------------------------------------------------------------------
Fri Sep 5 09:08:06 UTC 2014 - jloeser@suse.com
- version update to 1.3.12 (BNC#894854)
- get_sensor, set_sensor: Handle big endian data in little endian
- fix for sc_platform_dump endian handling
-------------------------------------------------------------------
Thu Jul 3 14:31:24 CEST 2014 - pth@suse.de
- Update to 1.3.11 (bnc#884710:
* README: documentation on handling endianness
* librtas: Little endian support in syscalls
See Changelog in the package documentation for the full changes
documentation.
- Refresh librtas-failedmagic.patch.
- Packege Changelog
- No need to remove and create buildroot, that's done by osc.
-------------------------------------------------------------------
Tue Mar 25 13:23:54 UTC 2014 - jloeser@suse.com
- version update to 1.3.10 (BNC#870006)
see changelog for change
-------------------------------------------------------------------
Tue Mar 4 14:57:14 UTC 2014 - jloeser@suse.com
- change license to CPL-1.0 (see COPYRIGHT)
-------------------------------------------------------------------
Tue Mar 4 12:53:20 UTC 2014 - jloeser@suse.com
- version update to 1.3.9 (BNC#866674)
see changelog for changes
-------------------------------------------------------------------
Mon Dec 9 15:02:54 UTC 2013 - dvaleev@suse.com
- enable ppc64le
-------------------------------------------------------------------
Sun Feb 24 16:27:48 UTC 2013 - dvaleev@suse.com
- Update to 1.3.8
* Identify Platform Resource Reassignment Notifications (PRRN)
-------------------------------------------------------------------
Fri Dec 28 12:11:40 UTC 2012 - dvaleev@suse.com
- update to 1.3.7
librtas allocates buffer space (required for RTAS call) in the
RTAS private memory area through sc_get_rmo_buffer() which
internally allocates memory and protects it by acquiring
lock on the allocated memory area.
Locking function :
At present acquire_file_lock() tries to lock the particular
memory area. If the memory area is already locked then it
returns error without retrying.
So when two process executes rtas call simultaneously one fails
with "Unknown librtas I/O" error.
This patch introduces "Wait for lock to be available" instead
of returning with IO error.
- fixed minor memory leak in librtas.so
-------------------------------------------------------------------
Tue Jan 31 10:48:35 UTC 2012 - jengelh@medozas.de
- Remove redundant tags/sections per specfile guideline suggestions
- Parallel building using %_smp_mflags
-------------------------------------------------------------------
Mon Nov 14 10:48:21 UTC 2011 - dvaleev@suse.com
- update -> 1.3.6
- changes and small fixes in regards to lib64 support mostly
- split up devel, doc packages
- split librtas1 package according shared library policy
- patch refresh
- fix baselibs.conf
- fix %files permission
-------------------------------------------------------------------
Fri Nov 20 14:45:45 CET 2009 - uli@suse.de
- update -> 1.3.4:
- new inventory model (fate#304149)
- support rtas event updates (fate#307049)
-------------------------------------------------------------------
Wed Nov 5 16:47:14 CET 2008 - ro@suse.de
- added baselibs.conf (bnc#434975)
-------------------------------------------------------------------
Tue Oct 28 08:45:39 CET 2008 - olh@suse.de
- fix header compilation (bnc#439321, bnc#439327)
-------------------------------------------------------------------
Fri Feb 15 16:39:00 CET 2008 - sassmann@suse.de
- update to librtas-1.3.3 (bnc#361305)
- removed errno patch (included upstream)
-------------------------------------------------------------------
Mon Jan 21 11:15:28 CET 2008 - olh@suse.de
- use correct open mode for O_CREAT
fix out-of-bounds access in parse_post_scn()
fix errno assingment in parse_fru_*_scn()
-------------------------------------------------------------------
Tue Nov 13 14:50:25 CET 2007 - sassmann@suse.de
- added patch
librtas.libdir-fix-for-64bit.patch
libraries need to be in lib64 instead of lib on ppc64,
this patch alters the various Makefiles to achieve this.
-------------------------------------------------------------------
Wed Nov 7 16:09:55 CET 2007 - sassmann@suse.de
- fixed wrong release number
-------------------------------------------------------------------
Mon Nov 5 11:57:09 CET 2007 - sassmann@suse.de
- added arch ppc64 for build
- Patch librtas.signed-char.patch removed
- Patch librtas.syscall.patch removed
-------------------------------------------------------------------
Tue Oct 16 16:04:03 CEST 2007 - sassmann@suse.de
- update to librtas-1.3.2 (feature #302692)
- patches disabled
Patch0: librtas.signed-char.patch
Patch1: librtas.syscall.patch
-------------------------------------------------------------------
Fri Oct 13 17:23:32 CEST 2006 - olh@suse.de
- fix off by one in open_prop_file
-------------------------------------------------------------------
Fri Jan 27 13:58:16 CET 2006 - olh@suse.de
- package soname symlink
-------------------------------------------------------------------
Wed Jan 25 21:44:56 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Fri Dec 9 23:09:53 CET 2005 - olh@suse.de
- use unsigned char for fprintf. The rtas_dump output will be
corrupt, depending on the input data (#93851)
-------------------------------------------------------------------
Fri Oct 28 13:08:22 CEST 2005 - olh@suse.de
- update to version 1.2.4 (130214 - LTC19273)
-------------------------------------------------------------------
Wed Oct 26 13:56:50 CEST 2005 - olh@suse.de
- update to version 1.2.3 (130214 - LTC19273)
fixes for date parsing and vendor event parsing
-------------------------------------------------------------------
Thu Oct 13 21:36:43 CEST 2005 - olh@suse.de
- create 32bit package librtas 1.2

View File

@ -1,7 +1,7 @@
#
# spec file for package librtas-doc
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,43 +17,40 @@
Name: librtas-doc
Version: 2.0.2
Version: 2.0.3
Release: 0
Summary: Documents for librtas
License: LGPL-2.1-or-later
Group: Documentation/Other
URL: https://github.com/ibm-power-utilities/librtas
Source0: https://github.com/ibm-power-utilities/librtas/archive/v%{version}.tar.gz#/librtas-%{version}.tar.gz
Patch0: librtas.fix_doc_path.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: libtool
Summary: Documents for librtas
License: LGPL-2.1-or-later
Group: Documentation/Other
ExclusiveArch: ppc ppc64 ppc64le
URL: https://github.com/ibm-power-utilities/librtas
Source0: https://github.com/ibm-power-utilities/librtas/archive/v%{version}.tar.gz#/librtas-%{version}.tar.gz
Patch0: librtas.fix_doc_path.patch
Patch1: librtasevent-Fix-memory-page-address-print-issue.patch
%description
This package provides librtas documentation
%prep
%setup -n librtas-%{version}
%autopatch -p1
%autosetup -p1 -n librtas-%{version}
%build
./autogen.sh
%configure
make CFLAGS="%optflags -fPIC -g -I $PWD/librtasevent_src" LIB_DIR="%{_libdir}" %{?_smp_mflags}
%make_build CFLAGS="%{optflags} -fPIC -g -I $PWD/librtasevent_src" LIB_DIR="%{_libdir}"
%install
rm -rf doc/*/latex
make install DESTDIR=%buildroot LIB_DIR="%{_libdir}"
rm -rf %buildroot/%_libdir
rm -rf %buildroot/%_includedir
%fdupes %buildroot/%_docdir
make install DESTDIR=%{buildroot} LIB_DIR="%{_libdir}"
rm -rf %{buildroot}/%{_libdir}
rm -rf %{buildroot}/%{_includedir}
%fdupes %{buildroot}/%{_docdir}
%files
%defattr(-, root, root)
%doc %{_docdir}/librtas
%changelog

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Jan 20 15:06:16 UTC 2023 - Michal Suchanek <msuchanek@suse.com>
- Update to version 2.0.3
- Remove upstreamed patch
- librtasevent-Fix-memory-page-address-print-issue.patch
- Refresh spec file
-------------------------------------------------------------------
Wed Jan 12 13:01:37 UTC 2022 - Michal Suchanek <msuchanek@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package librtas
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,22 +17,20 @@
%define sover 2
Name: librtas
Version: 2.0.2
Version: 2.0.3
Release: 0
Summary: Libraries to provide access to RTAS calls and RTAS events
License: LGPL-2.1-or-later
Group: System/Libraries
ExclusiveArch: ppc ppc64 ppc64le
URL: https://github.com/ibm-power-utilities/librtas
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
Source0: https://github.com/ibm-power-utilities/librtas/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: baselibs.conf
Patch0: librtas.fix_doc_path.patch
Patch1: librtasevent-Fix-memory-page-address-print-issue.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
ExclusiveArch: ppc ppc64 ppc64le
%description
The librtas shared library provides userspace with an interface through
@ -47,7 +45,7 @@ contents of RTAS events.
%package devel
Summary: Devel librtas files
Group: Development/Libraries/C and C++
BuildRequires: pkg-config
BuildRequires: pkgconfig
Requires: %{name}%{sover} = %{version}
%description devel
@ -76,36 +74,33 @@ definitions and common routines useful in parsing and dumping the
contents of RTAS events.
%prep
%setup -q
%autopatch -p1
%autosetup -p1
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
./autogen.sh
%configure
make CFLAGS="%optflags -fPIC -g -I $PWD/librtasevent_src" LIB_DIR="%{_libdir}" %{?_smp_mflags}
%make_build CFLAGS="%{optflags} -fPIC -g -I $PWD/librtasevent_src" LIB_DIR="%{_libdir}"
%install
rm -rf doc/*/latex
make install DESTDIR=%buildroot LIB_DIR="%{_libdir}"
make install DESTDIR=%{buildroot} LIB_DIR="%{_libdir}"
# documents are in -doc subpackage
rm -rf %buildroot/%_docdir
/sbin/ldconfig -n %buildroot%{_libdir}
rm -rf %{buildroot}/%{_docdir}
/sbin/ldconfig -n %{buildroot}%{_libdir}
chmod -x %{buildroot}%{_libdir}/*.a
rm %{buildroot}/%{_libdir}/*.la
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{name}%{sover} -p /sbin/ldconfig
%postun -n %{name}%{sover} -p /sbin/ldconfig
%files -n %{name}%{sover}
%defattr(-, root, root)
%doc COPYING.LESSER Changelog README
%license COPYING.LESSER
%doc Changelog README
%{_libdir}/lib*.so.*
%files devel
%defattr(-, root, root)
%doc COPYING.LESSER
%license COPYING.LESSER
%{_libdir}/librtasevent.so
%{_libdir}/librtas.so
%{_includedir}/librtas.h
@ -115,8 +110,7 @@ rm %{buildroot}/%{_libdir}/*.la
%{_libdir}/pkgconfig/*.pc
%files devel-static
%defattr(-,root,root)
%doc COPYING.LESSER
%license COPYING.LESSER
%{_libdir}/librtas.a
%{_libdir}/librtasevent.a

View File

@ -1,55 +0,0 @@
From f8a1f6df25263afc75cabb9c40ddb8e54cf086e3 Mon Sep 17 00:00:00 2001
From: Tyrel Datwyler <tyreld@linux.ibm.com>
Date: Thu, 16 Dec 2021 13:37:15 -0800
Subject: [PATCH] librtasevent: Fix memory page address print issue
References: bsc#1193846 ltc#193949
Patch-mainline: accepted, expected 2.0.3
Git-commit: f8a1f6df25263afc75cabb9c40ddb8e54cf086e3
The logical resource address lo and hi fields are currently printed by rtas_dump
infering that their naming refers to significance when in fact they refer to the
bit numbering.
lri_mem_addr_lo == Memory Logical Address (bit 0-31)
lri_mem_addr_hi == Memory Logical Address (bit 32-64))
Hence rtas_dump command is printing the logical address output with those two
fields swapped.
This patch fixes rtas_lri_scn fields so that we get legitimate addresses.
Current output:
--------------
Logical Address: 2ab0a0000000014f
Correct output:
-------------
Logical Address: 0x0000014F2AB0A000
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Reviewed-by: Nathan Lynch <nathanl@linux.ibm.com>
[tyreld: reworded commit message]
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
---
librtasevent_src/rtas_lri.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/librtasevent_src/rtas_lri.c b/librtasevent_src/rtas_lri.c
index c8d8a99..9d60b8f 100644
--- a/librtasevent_src/rtas_lri.c
+++ b/librtasevent_src/rtas_lri.c
@@ -113,8 +113,8 @@ print_re_lri_scn(struct scn_header *shdr, int verbosity)
case 0x40:
len += rtas_print("(Memory Page)\n" PRNT_FMT_ADDR,
- "Logical Address:", lri->lri_mem_addr_hi,
- lri->lri_mem_addr_lo);
+ "Logical Address:", lri->lri_mem_addr_lo,
+ lri->lri_mem_addr_hi);
break;
case 0x41:
--
2.34.1