commit 661edb836194f7c7f1ad6300af2f59d11f5a2898b2a4398bfb45f9738ccd4d4d Author: OBS User unknown Date: Mon Jan 15 23:23:07 2007 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/librtas?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/get_release_number.sh b/get_release_number.sh new file mode 100644 index 0000000..8181d08 --- /dev/null +++ b/get_release_number.sh @@ -0,0 +1,2 @@ +#! /bin/sh +env -i - TZ=GMT date +%Y%m%d%H%M diff --git a/librtas-src-1.2.4.tar.gz b/librtas-src-1.2.4.tar.gz new file mode 100644 index 0000000..a238d9e --- /dev/null +++ b/librtas-src-1.2.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3644ff02fee92304067a315c6d94a38a851905621ad034590b6afed193326b4 +size 72650 diff --git a/librtas.changes b/librtas.changes new file mode 100644 index 0000000..c1d2350 --- /dev/null +++ b/librtas.changes @@ -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 + diff --git a/librtas.open_prop_file-off_by_one.patch b/librtas.open_prop_file-off_by_one.patch new file mode 100644 index 0000000..84c588c --- /dev/null +++ b/librtas.open_prop_file-off_by_one.patch @@ -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); diff --git a/librtas.signed-char.patch b/librtas.signed-char.patch new file mode 100644 index 0000000..03f08ba --- /dev/null +++ b/librtas.signed-char.patch @@ -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 */ diff --git a/librtas.spec b/librtas.spec new file mode 100644 index 0000000..81880d4 --- /dev/null +++ b/librtas.spec @@ -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 + John Rose + Michael Strosaker + +%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 diff --git a/librtas.syscall.patch b/librtas.syscall.patch new file mode 100644 index 0000000..1320328 --- /dev/null +++ b/librtas.syscall.patch @@ -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; diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4