Hello community, here is the log from the commit of package librtas checked in at Mon Feb 18 12:05:33 CET 2008. -------- --- arch/ppc/librtas/librtas.changes 2008-01-21 11:16:53.000000000 +0100 +++ /mounts/work_src_done/STABLE/librtas/librtas.changes 2008-02-18 09:52:17.000000000 +0100 @@ -1,0 +2,6 @@ +Fri Feb 15 16:39:00 CET 2008 - sassmann@suse.de + +- update to librtas-1.3.3 (bnc#361305) +- removed errno patch (included upstream) + +------------------------------------------------------------------- Old: ---- librtas-1.3.2.tar.bz2 librtas.errno.patch New: ---- librtas-1.3.3.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ librtas.spec ++++++ --- /var/tmp/diff_new_pack.WH2963/_old 2008-02-18 12:05:16.000000000 +0100 +++ /var/tmp/diff_new_pack.WH2963/_new 2008-02-18 12:05:16.000000000 +0100 @@ -1,5 +1,5 @@ # -# spec file for package librtas (Version 1.3.2) +# spec file for package librtas (Version 1.3.3) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -10,10 +10,11 @@ # norootforbuild + Name: librtas BuildRequires: doxygen -Version: 1.3.2 -Release: 200710312355 +Version: 1.3.3 +Release: 1 Group: System/Libraries License: IBM Public License Summary: Libraries to provide access to RTAS calls and RTAS events @@ -24,8 +25,7 @@ Patch0: librtas.open_prop_file-off_by_one.patch Patch1: librtas.libdir-fix-for-64bit.patch Patch2: librtas.open_create.patch -Patch3: librtas.errno.patch -Patch4: librtas.firmware_rev.patch +Patch3: librtas.firmware_rev.patch %description The librtas shared library provides userspace with an interface through @@ -51,7 +51,6 @@ %patch1 -p1 %patch2 -p1 %patch3 -p1 -%patch4 -p1 %build make CFLAGS="$RPM_OPT_FLAGS -fPIC -g" LIBDIR="%{_libdir}" %{?jobs:-j%jobs} @@ -76,6 +75,9 @@ %attr (555,root,root)%{_libdir}/lib* %changelog +* Fri Feb 15 2008 sassmann@suse.de +- update to librtas-1.3.3 (bnc#361305) +- removed errno patch (included upstream) * Mon Jan 21 2008 olh@suse.de - use correct open mode for O_CREAT fix out-of-bounds access in parse_post_scn() @@ -102,7 +104,7 @@ - package soname symlink * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires -* Fri Dec 09 2005 olh@suse.de +* Sat Dec 10 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 ++++++ librtas-1.3.2.tar.bz2 -> librtas-1.3.3.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librtas-1.3.2/Changelog new/librtas-1.3.3/Changelog --- old/librtas-1.3.2/Changelog 2007-08-06 18:02:34.000000000 +0200 +++ new/librtas-1.3.3/Changelog 2007-12-12 23:31:25.000000000 +0100 @@ -1,3 +1,9 @@ +Changelog for librtas-1.3.3 +======================================= + - Changed ibm,get-vpd call to reuse the same RMO buffer for both + input and output. Obtaining two RMO buffers (one for input and one + for output) was failing on large-page systems. + Changelog for librtas-1.3.2 ======================================= - Fixed rtas_mem_scn and rtas_ibmsp_scn reserved padding bits and diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librtas-1.3.2/librtasevent_src/rtas_srcfru.c new/librtas-1.3.3/librtasevent_src/rtas_srcfru.c --- old/librtas-1.3.2/librtasevent_src/rtas_srcfru.c 2007-08-06 18:02:34.000000000 +0200 +++ new/librtas-1.3.3/librtasevent_src/rtas_srcfru.c 2007-12-12 23:31:25.000000000 +0100 @@ -78,7 +78,7 @@ fru_pe = malloc(sizeof(*fru_pe)); if (fru_pe == NULL) { - errno - ENOMEM; + errno = ENOMEM; return NULL; } @@ -109,7 +109,7 @@ fru_mr = malloc(sizeof(*fru_mr)); if (fru_mr == NULL) { - errno - ENOMEM; + errno = ENOMEM; return NULL; } diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librtas-1.3.2/librtas-ppc64.spec new/librtas-1.3.3/librtas-ppc64.spec --- old/librtas-1.3.2/librtas-ppc64.spec 2007-08-06 18:02:34.000000000 +0200 +++ new/librtas-1.3.3/librtas-ppc64.spec 2007-12-12 23:31:25.000000000 +0100 @@ -1,5 +1,5 @@ %define name librtas -%define version 1.3.2 +%define version 1.3.3 %define release 0 Summary: Libraries to provide access to RTAS calls and RTAS events. Name: %{name} diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librtas-1.3.2/librtas_src/syscall_calls.c new/librtas-1.3.3/librtas_src/syscall_calls.c --- old/librtas-1.3.2/librtas_src/syscall_calls.c 2007-08-06 18:02:34.000000000 +0200 +++ new/librtas-1.3.3/librtas_src/syscall_calls.c 2007-12-12 23:31:25.000000000 +0100 @@ -768,24 +768,24 @@ { uint32_t kernbuf_pa; uint32_t loc_pa = 0; + uint32_t rmo_pa = 0; uint64_t elapsed = 0; void *kernbuf; + void *rmobuf; void *locbuf; int status; int rc; - rc = sc_get_rmo_buffer(size, &kernbuf, &kernbuf_pa); + rc = sc_get_rmo_buffer(size + PAGE_SIZE, &rmobuf, &rmo_pa); if (rc) return rc; - - rc = sc_get_rmo_buffer(PAGE_SIZE, &locbuf, &loc_pa); - if (rc) { - (void) sc_free_rmo_buffer(kernbuf, kernbuf_pa, size); - return rc; - } + kernbuf = rmobuf + PAGE_SIZE; + kernbuf_pa = rmo_pa + PAGE_SIZE; + locbuf = rmobuf; + loc_pa = rmo_pa; /* If user didn't set loc_code, copy a NULL string */ - strcpy(locbuf, loc_code ? loc_code : ""); + strncpy(locbuf, loc_code ? loc_code : "", PAGE_SIZE); *seq_next = sequence; do { @@ -801,8 +801,7 @@ if (rc == 0) memcpy(workarea, kernbuf, size); - (void) sc_free_rmo_buffer(kernbuf, kernbuf_pa, size); - (void) sc_free_rmo_buffer(locbuf, loc_pa, PAGE_SIZE); + (void) sc_free_rmo_buffer(rmobuf, rmo_pa, size + PAGE_SIZE); dbg1("(%s, 0x%p, %d, %d) = %d, %d, %d", loc_code ? loc_code : "NULL", workarea, size, sequence, status, *seq_next, *bytes_ret); diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librtas-1.3.2/librtas_src/syscall_rmo.c new/librtas-1.3.3/librtas_src/syscall_rmo.c --- old/librtas-1.3.2/librtas_src/syscall_rmo.c 2007-08-06 18:02:34.000000000 +0200 +++ new/librtas-1.3.3/librtas_src/syscall_rmo.c 2007-12-12 23:31:25.000000000 +0100 @@ -403,6 +403,8 @@ int n_pages; int rc; + dbg1("RMO buffer request, size: %d\n", size); + n_pages = size / PAGE_SIZE; /* Check for multiple of page size */ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org