Hello community, here is the log from the commit of package powerpc-utils for openSUSE:Factory checked in at 2016-06-13 21:48:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/powerpc-utils (Old) and /work/SRC/openSUSE:Factory/.powerpc-utils.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "powerpc-utils" Changes: -------- --- /work/SRC/openSUSE:Factory/powerpc-utils/powerpc-utils.changes 2016-04-30 23:24:10.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.powerpc-utils.new/powerpc-utils.changes 2016-06-13 21:48:57.000000000 +0200 @@ -1,0 +2,18 @@ +Tue Jun 7 12:23:15 UTC 2016 - jloe...@suse.com + +- fix error injection for EHH (extended error handling) (bsc#982728) + +- added patches: + * powerpc-utils.bug-982728_eeh_inject_error.patch + +------------------------------------------------------------------- +Tue May 24 23:17:02 UTC 2016 - dval...@suse.com + +- Adjust dependant libvirt service name (libvirt-service-dep.patch) + +------------------------------------------------------------------- +Tue May 24 23:01:49 UTC 2016 - dval...@suse.com + +- package smt-off.service (systemd-dir.patch) + +------------------------------------------------------------------- New: ---- libvirt-service-dep.patch powerpc-utils.bug-982728_eeh_inject_error.patch systemd-dir.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ powerpc-utils.spec ++++++ --- /var/tmp/diff_new_pack.W3ZUTO/_old 2016-06-13 21:48:58.000000000 +0200 +++ /var/tmp/diff_new_pack.W3ZUTO/_new 2016-06-13 21:48:58.000000000 +0200 @@ -30,6 +30,7 @@ BuildRequires: autoconf BuildRequires: automake BuildRequires: librtas-devel +BuildRequires: systemd-rpm-macros BuildRequires: zlib-devel Version: 1.3.1 Release: 0 @@ -43,6 +44,9 @@ Source1: nvsetenv Patch1: powerpc-utils-lsprop.patch Patch2: ofpathname_powernv.patch +Patch3: systemd-dir.patch +Patch4: libvirt-service-dep.patch +Patch5: powerpc-utils.bug-982728_eeh_inject_error.patch ExclusiveArch: ppc ppc64 ppc64le %description @@ -53,10 +57,13 @@ %setup -q %patch1 -p1 %patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 %build ./autogen.sh -%configure +%configure --with-systemd=%{buildroot}%{_unitdir} make CFLAGS="%optflags" %{?jobs:-j%jobs} %install @@ -84,5 +91,6 @@ %{_sbindir}/* %{_bindir}/* /sbin/lsprop +%{_unitdir}/smt_off.service %changelog ++++++ libvirt-service-dep.patch ++++++ Index: powerpc-utils-1.3.1/systemd/smt_off.service.in =================================================================== --- powerpc-utils-1.3.1.orig/systemd/smt_off.service.in +++ powerpc-utils-1.3.1/systemd/smt_off.service.in @@ -1,6 +1,6 @@ [Unit] Description=ppc64 set SMT off -Before=libvirt-bin.service +Before=libvirtd.service [Service] Type=oneshot ++++++ powerpc-utils.bug-982728_eeh_inject_error.patch ++++++ When reading files from syfs the file length returned from a stat() From: Nathan Fontenot <nf...@linux.vnet.ibm.com> call does not always match the actual length of the file. The read_file() routine should be checking for an error return from the read() call instead of checking that the amount read matches the file length returned from a stat() call. Signed-off-by: Nathan Fontenot <nf...@linux.vnet.ibm.com> --- src/errinjct/errinjct.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) Index: powerpc-utils-1.3.1/src/errinjct/errinjct.c =================================================================== --- powerpc-utils-1.3.1.orig/src/errinjct/errinjct.c +++ powerpc-utils-1.3.1/src/errinjct/errinjct.c @@ -680,10 +680,8 @@ char *read_file(const char *fname, int * len = read(fd, buf, sbuf.st_size); close(fd); - if (len != sbuf.st_size) { - perr(errno, "Error reading data from file %s\n" - "expected to read %d but got %d\n", fname, - sbuf.st_size, len); + if (len <= 0) { + perr(errno, "Error reading data from file %s\n", fname); free(buf); return NULL; } ++++++ systemd-dir.patch ++++++ Index: powerpc-utils-1.3.1/Makefile.am =================================================================== --- powerpc-utils-1.3.1.orig/Makefile.am +++ powerpc-utils-1.3.1/Makefile.am @@ -176,7 +176,7 @@ src_drmgr_lsslot_LDADD = -lrtas if WITH_SYSTEMD install-data-hook: systemd/smt_off.service - $(MKDIR_P) @prefix@${systemd_unit_dir} - $(INSTALL_SCRIPT) $< @prefix@${systemd_unit_dir}/ - sed -i -e 's,$${exec_prefix},@sbindir@,g' @prefix@${systemd_unit_dir}/smt_off.service + $(MKDIR_P) ${systemd_unit_dir} + $(INSTALL_SCRIPT) $< ${systemd_unit_dir}/ + sed -i -e 's,$${exec_prefix},@sbindir@,g' ${systemd_unit_dir}/smt_off.service endif