This commit is contained in:
commit
661edb8361
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
2
get_release_number.sh
Normal file
2
get_release_number.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#! /bin/sh
|
||||
env -i - TZ=GMT date +%Y%m%d%H%M
|
3
librtas-src-1.2.4.tar.gz
Normal file
3
librtas-src-1.2.4.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c3644ff02fee92304067a315c6d94a38a851905621ad034590b6afed193326b4
|
||||
size 72650
|
37
librtas.changes
Normal file
37
librtas.changes
Normal file
@ -0,0 +1,37 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
27
librtas.open_prop_file-off_by_one.patch
Normal file
27
librtas.open_prop_file-off_by_one.patch
Normal file
@ -0,0 +1,27 @@
|
||||
alloc the trailing nul as well.
|
||||
|
||||
---
|
||||
librtas_src/ofdt.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
Index: librtas-1.2.4/librtas_src/ofdt.c
|
||||
===================================================================
|
||||
--- librtas-1.2.4.orig/librtas_src/ofdt.c
|
||||
+++ librtas-1.2.4/librtas_src/ofdt.c
|
||||
@@ -31,14 +31,14 @@ static int open_prop_file(const char *pr
|
||||
char *path;
|
||||
int len;
|
||||
|
||||
- len = strlen(prop_path) + strlen(prop_name) + 1;
|
||||
+ len = strlen(prop_path) + strlen(prop_name) + 1 + 1;
|
||||
path = malloc(len);
|
||||
if (path == NULL) {
|
||||
errno = ENOMEM;
|
||||
return -1;
|
||||
}
|
||||
|
||||
- sprintf(path, "%s/%s", prop_path, prop_name);
|
||||
+ snprintf(path, len, "%s/%s", prop_path, prop_name);
|
||||
|
||||
*fd = open(path, O_RDONLY);
|
||||
free(path);
|
27
librtas.signed-char.patch
Normal file
27
librtas.signed-char.patch
Normal file
@ -0,0 +1,27 @@
|
||||
librtasevent_src/print_rtas_event.c | 6 +++---
|
||||
1 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
Index: librtas-1.2.4/librtasevent_src/print_rtas_event.c
|
||||
===================================================================
|
||||
--- librtas-1.2.4.orig/librtasevent_src/print_rtas_event.c
|
||||
+++ librtas-1.2.4/librtasevent_src/print_rtas_event.c
|
||||
@@ -158,8 +158,8 @@ print_scn_title(char *fmt, ...)
|
||||
int
|
||||
print_raw_data(char *data, int data_len)
|
||||
{
|
||||
- char *h, *a;
|
||||
- char *end = data + data_len;
|
||||
+ unsigned char *h, *a;
|
||||
+ unsigned char *end = (unsigned char *)data + data_len;
|
||||
unsigned int offset = 0;
|
||||
int i,j;
|
||||
int len = 0;
|
||||
@@ -168,7 +168,7 @@ print_raw_data(char *data, int data_len)
|
||||
if (line_offset != 0)
|
||||
len += rtas_print("\n");
|
||||
|
||||
- h = a = data;
|
||||
+ h = a = (unsigned char *)data;
|
||||
|
||||
while (h < end) {
|
||||
/* print offset */
|
90
librtas.spec
Normal file
90
librtas.spec
Normal file
@ -0,0 +1,90 @@
|
||||
#
|
||||
# spec file for package librtas (Version 1.2.4)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: librtas
|
||||
BuildRequires: doxygen
|
||||
Version: 1.2.4
|
||||
Release: 200610091709
|
||||
Group: System/Libraries
|
||||
License: IBM Public License, Other License(s), see package
|
||||
Summary: Libraries to provide access to RTAS calls and RTAS events.
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
ExclusiveArch: ppc
|
||||
URL: http://librtas.ozlabs.org/
|
||||
Source0: http://librtas.ozlabs.org/downloads/librtas-src-%{version}.tar.gz
|
||||
Patch0: librtas.signed-char.patch
|
||||
Patch1: librtas.syscall.patch
|
||||
Patch2: librtas.open_prop_file-off_by_one.patch
|
||||
|
||||
%description
|
||||
The librtas shared library provides userspace with an interface through
|
||||
which certain RTAS calls can be made. The library uses either of the
|
||||
RTAS User Module or the RTAS system call to direct the kernel in making
|
||||
these calls.
|
||||
|
||||
The librtasevent shared library provides users with a set of
|
||||
definitions and common routines useful in parsing and dumping the
|
||||
contents of RTAS events.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Nathan Fontenot <nfont@austin.ibm.com>
|
||||
John Rose <johnrose@us.ibm.com>
|
||||
Michael Strosaker <strosake@austin.ibm.com>
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
make CFLAGS="$RPM_OPT_FLAGS -fPIC -g" LIBDIR="%{_libdir}" %{?jobs:-j%jobs}
|
||||
make doc
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT doc/*/latex
|
||||
mkdir $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT LIBDIR="%{_libdir}"
|
||||
/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
|
||||
|
||||
%post
|
||||
%{run_ldconfig}
|
||||
|
||||
%postun
|
||||
%{run_ldconfig}
|
||||
|
||||
%files
|
||||
%defattr(444, root, root,555)
|
||||
%doc COPYRIGHT README doc
|
||||
/usr/include/*
|
||||
%attr (555,root,root)%{_libdir}/lib*
|
||||
|
||||
%changelog -n librtas
|
||||
* Fri Oct 13 2006 - olh@suse.de
|
||||
- fix off by one in open_prop_file
|
||||
* Fri Jan 27 2006 - olh@suse.de
|
||||
- package soname symlink
|
||||
* Wed Jan 25 2006 - mls@suse.de
|
||||
- converted neededforbuild to BuildRequires
|
||||
* Fri Dec 09 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 2005 - olh@suse.de
|
||||
- update to version 1.2.4 (130214 - LTC19273)
|
||||
* Wed Oct 26 2005 - olh@suse.de
|
||||
- update to version 1.2.3 (130214 - LTC19273)
|
||||
fixes for date parsing and vendor event parsing
|
||||
* Thu Oct 13 2005 - olh@suse.de
|
||||
- create 32bit package librtas 1.2
|
26
librtas.syscall.patch
Normal file
26
librtas.syscall.patch
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
librtas_src/syscall_calls.c | 4 +---
|
||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||
|
||||
Index: librtas-1.2.4/librtas_src/syscall_calls.c
|
||||
===================================================================
|
||||
--- librtas-1.2.4.orig/librtas_src/syscall_calls.c
|
||||
+++ librtas-1.2.4/librtas_src/syscall_calls.c
|
||||
@@ -93,8 +93,6 @@ struct rtas_operations syscall_rtas_ops
|
||||
.interface_exists = sc_interface_exists,
|
||||
};
|
||||
|
||||
-_syscall1(int, rtas, void *, args);
|
||||
-
|
||||
#define CALL_AGAIN 1
|
||||
|
||||
/**
|
||||
@@ -201,7 +199,7 @@ static int sc_rtas_call(int token, int n
|
||||
va_end(ap);
|
||||
|
||||
display_rtas_buf(&args, 0);
|
||||
- rc = rtas(&args);
|
||||
+ rc = syscall(__NR_rtas, &args);
|
||||
if (rc != 0) {
|
||||
dbg1("RTAS syscall failure, errno=%d\n", errno);
|
||||
return RTAS_IO_ASSERT;
|
Loading…
Reference in New Issue
Block a user