commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2019-09-26 20:42:02 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new.2352 (New) Package is "ppc64-diag" Thu Sep 26 20:42:02 2019 rev:44 rq:733328 version:2.7.6 Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2019-05-02 19:18:18.257525735 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new.2352/ppc64-diag.changes 2019-09-26 20:42:06.610402033 +0200 @@ -1,0 +2,9 @@ +Thu Sep 19 07:13:00 UTC 2019 - Josef Möllers + +- Upgrade to v2.7.6 + - opal_errd: Enhance the purging logic of rotate_logs + - diags/cronjob: Include disk diagnostics + - CVE fixes + [jsc#SLE-8324, CVE-2014-4039, CVE-2014-4038] + +--- Old: ppc64-diag-2.7.5.tar.gz New: ppc64-diag-2.7.6.tar.gz Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.IbHdTS/_old 2019-09-26 20:42:07.618399340 +0200 +++ /var/tmp/diff_new_pack.IbHdTS/_new 2019-09-26 20:42:07.626399318 +0200 @@ -12,12 +12,12 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: ppc64-diag -Version:2.7.5 +Version:2.7.6 Release:0 Summary:Linux for Power Platform Diagnostics License:GPL-2.0-or-later @@ -29,6 +29,7 @@ BuildRequires: autoconf BuildRequires: automake BuildRequires: bison +BuildRequires: cron BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: librtas-devel >= 1.4.0 ++ ppc64-diag-2.7.5.tar.gz -> ppc64-diag-2.7.6.tar.gz ++ 4551 lines of diff (skipped)
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2019-05-02 19:18:12 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new.5148 (New) Package is "ppc64-diag" Thu May 2 19:18:12 2019 rev:43 rq:699671 version:2.7.5 Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2019-01-24 14:13:05.943384355 +0100 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new.5148/ppc64-diag.changes 2019-05-02 19:18:18.257525735 +0200 @@ -1,0 +2,20 @@ +Tue Apr 30 12:31:54 UTC 2019 - josef.moell...@suse.com + +- Upgrade to upstream version 2.7.5 + * Obsoletes 6 patches: ++ ppc64-diag.bug-1072708_fix_service_scripts.patch ++ ppc64-diag.bug-1072708_create_diag_disk_path.patch ++ ppc64-diag.bug-1072708_increase_buffer_for_vpd.patch ++ ppc64-diag.bug-1072708_remove_timestamp.patch ++ ppc64-diag.bug-1072708_create_diag_disk_log_directory.patch ++ bsc1113097-run_diag_encl-exit-gracefully.patch + * rather that just fail, give more concise +error messages in configure script + * use bison rather than yacc + * probe for indicators on running platform + * usysattn, usysfault and usysident: add -P option to limit the +operations to only the platform indicators excluding the +enclosures. + [jsc:SLE-6081] + +--- Old: bsc1113097-run_diag_encl-exit-gracefully.patch ppc64-diag-2.7.4.tar.gz ppc64-diag.bug-1072708_create_diag_disk_log_directory.patch ppc64-diag.bug-1072708_create_diag_disk_path.patch ppc64-diag.bug-1072708_fix_service_scripts.patch ppc64-diag.bug-1072708_increase_buffer_for_vpd.patch ppc64-diag.bug-1072708_remove_timestamp.patch New: ppc64-diag-2.7.5.tar.gz Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.4op1ch/_old 2019-05-02 19:18:19.573528127 +0200 +++ /var/tmp/diff_new_pack.4op1ch/_new 2019-05-02 19:18:19.573528127 +0200 @@ -12,26 +12,20 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: ppc64-diag -Version:2.7.4 +Version:2.7.5 Release:0 Summary:Linux for Power Platform Diagnostics License:GPL-2.0-or-later Group: System/Monitoring -URL:http://sourceforge.net/projects/linux-diag/files/ppc64-diag +Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/v%{version}/%{name}-%{version}.tar.gz #PATCH-FIX-OPENSUSE - ppc64-diag.varunused.patch - fix unused variables Patch1: ppc64-diag.varunused.patch -Patch2: ppc64-diag.bug-1072708_fix_service_scripts.patch -Patch3: ppc64-diag.bug-1072708_create_diag_disk_path.patch -Patch4: ppc64-diag.bug-1072708_increase_buffer_for_vpd.patch -Patch5: ppc64-diag.bug-1072708_remove_timestamp.patch -Patch6: ppc64-diag.bug-1072708_create_diag_disk_log_directory.patch -Patch7: bsc1113097-run_diag_encl-exit-gracefully.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: bison @@ -71,12 +65,6 @@ %prep %setup -q %patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 %build sed -i 's@%{_prefix}/libexec/ppc64-diag@%{_libexecdir}@g' scripts/opal_errd.service ++ ppc64-diag-2.7.4.tar.gz -> ppc64-diag-2.7.5.tar.gz ++ 8812 lines of diff (skipped)
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2019-01-24 14:13:05 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new.28833 (New) Package is "ppc64-diag" Thu Jan 24 14:13:05 2019 rev:42 rq:667733 version:2.7.4 Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2018-11-12 09:46:53.148694667 +0100 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new.28833/ppc64-diag.changes 2019-01-24 14:13:05.943384355 +0100 @@ -1,0 +2,14 @@ +Tue Jan 22 08:24:44 UTC 2019 - Tomáš Chvátal + +- Drop pointless _service file +- Format with spec-cleaner + +--- +Fri Jan 18 14:07:53 UTC 2019 - josef.moell...@suse.com + +- If a system does not have any enclosures, let the daily cron + script "run_diag_encl"exit gracefully to prevent bogus + error messages in root's mailbox. + [bsc#1113097, bsc1113097-run_diag_encl-exit-gracefully.patch] + +--- Old: _service New: bsc1113097-run_diag_encl-exit-gracefully.patch Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.5A2UKO/_old 2019-01-24 14:13:06.495383717 +0100 +++ /var/tmp/diff_new_pack.5A2UKO/_new 2019-01-24 14:13:06.499383713 +0100 @@ -1,7 +1,7 @@ # # spec file for package ppc64-diag # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,18 +12,26 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag Version:2.7.4 Release:0 Summary:Linux for Power Platform Diagnostics -License:GPL-2.0+ +License:GPL-2.0-or-later Group: System/Monitoring -ExclusiveArch: ppc ppc64 ppc64le +URL:http://sourceforge.net/projects/linux-diag/files/ppc64-diag +Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/v%{version}/%{name}-%{version}.tar.gz +#PATCH-FIX-OPENSUSE - ppc64-diag.varunused.patch - fix unused variables +Patch1: ppc64-diag.varunused.patch +Patch2: ppc64-diag.bug-1072708_fix_service_scripts.patch +Patch3: ppc64-diag.bug-1072708_create_diag_disk_path.patch +Patch4: ppc64-diag.bug-1072708_increase_buffer_for_vpd.patch +Patch5: ppc64-diag.bug-1072708_remove_timestamp.patch +Patch6: ppc64-diag.bug-1072708_create_diag_disk_log_directory.patch +Patch7: bsc1113097-run_diag_encl-exit-gracefully.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: bison @@ -32,32 +40,23 @@ BuildRequires: librtas-devel >= 1.4.0 BuildRequires: libservicelog-devel BuildRequires: libtool -BuildRequires: libudev-devel -BuildRequires: libvpd2-devel -BuildRequires: ncurses-devel BuildRequires: perl -BuildRequires: sqlite3-devel +BuildRequires: pkgconfig BuildRequires: systemd-rpm-macros +BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(libvpd-2) +BuildRequires: pkgconfig(ncurses) +BuildRequires: pkgconfig(sqlite3) Requires: cron -Requires: servicelog -Requires: systemd -# License change -Requires: powerpc-utils >= 1.3.2 # Light Path Diagnostics depends on below lsvpd version. Requires: lsvpd >= 1.7.1 +Requires: powerpc-utils >= 1.3.2 +Requires: servicelog +Requires(post): aaa_base # autoselect the package on systems which have the /vdevice/IBM,sp node # All pSeries POWER5 and later have this property Supplements:modalias(vio:TIBM*spS*) -PreReq: aaa_base -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/v%{version}/%{name}-%{version}.tar.gz -#PATCH-FIX-OPENSUSE - ppc64-diag.varunused.patch - fix unused variables -Patch1: %{name}.varunused.patch -Patch2: ppc64-diag.bug-1072708_fix_service_scripts.patch -Patch3: ppc64-diag.bug-1072708_create_diag_disk_path.patch -Patch4: ppc64-diag.bug-1072708_increase_buffer_for_vpd.patch -Patch5: ppc64-diag.bug-1072708_remove_timestamp.patch -Patch6: ppc64-diag.bug-1072708_create_diag_disk_log_directory.patch +ExclusiveArch:
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2018-11-12 09:46:02 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is "ppc64-diag" Mon Nov 12 09:46:02 2018 rev:41 rq:648384 version:2.7.4 Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2017-12-19 10:59:25.982611590 +0100 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2018-11-12 09:46:53.148694667 +0100 @@ -16 +16 @@ -- version update to 2.7.4 (fate#35) +- version update to 2.7.4 (fate#35, fate#326429) Other differences: --
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2017-12-19 10:59:23 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is "ppc64-diag" Tue Dec 19 10:59:23 2017 rev:40 rq:558183 version:2.7.4 Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2017-10-23 16:53:52.927027170 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2017-12-19 10:59:25.982611590 +0100 @@ -1,0 +2,12 @@ +Mon Dec 18 08:55:48 UTC 2017 - jloe...@suse.com + +- fix 'diag_encl -d' call (bsc#1072708) + +- added patches: + * ppc64-diag.bug-1072708_create_diag_disk_log_directory.patch + * ppc64-diag.bug-1072708_create_diag_disk_path.patch + * ppc64-diag.bug-1072708_fix_service_scripts.patch + * ppc64-diag.bug-1072708_increase_buffer_for_vpd.patch + * ppc64-diag.bug-1072708_remove_timestamp.patch + +--- New: ppc64-diag.bug-1072708_create_diag_disk_log_directory.patch ppc64-diag.bug-1072708_create_diag_disk_path.patch ppc64-diag.bug-1072708_fix_service_scripts.patch ppc64-diag.bug-1072708_increase_buffer_for_vpd.patch ppc64-diag.bug-1072708_remove_timestamp.patch Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.SZSbMm/_old 2017-12-19 10:59:26.678577992 +0100 +++ /var/tmp/diff_new_pack.SZSbMm/_new 2017-12-19 10:59:26.682577799 +0100 @@ -53,6 +53,11 @@ Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/v%{version}/%{name}-%{version}.tar.gz #PATCH-FIX-OPENSUSE - ppc64-diag.varunused.patch - fix unused variables Patch1: %{name}.varunused.patch +Patch2: ppc64-diag.bug-1072708_fix_service_scripts.patch +Patch3: ppc64-diag.bug-1072708_create_diag_disk_path.patch +Patch4: ppc64-diag.bug-1072708_increase_buffer_for_vpd.patch +Patch5: ppc64-diag.bug-1072708_remove_timestamp.patch +Patch6: ppc64-diag.bug-1072708_create_diag_disk_log_directory.patch %description This package contains various diagnostic tools for PowerLinux. @@ -71,6 +76,11 @@ %prep %setup -q %patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 %build sed -i 's@/usr/libexec/ppc64-diag@%{_libexecdir}@g' scripts/opal_errd.service ++ ppc64-diag.bug-1072708_create_diag_disk_log_directory.patch ++ commit d2ec2733829b69f8b935f328f5cc2396e4c2af70 Author: Ankit KumarDate: Tue Dec 5 14:56:14 2017 +0530 diags: Create diag_disk log directory manually if not present disk diagnostics code populates disk health information under /var/log/ppc64-diag/diag_disk. If above path is not found then disk diagnostics will fail. This patch creates /var/log/ppc64-diag/diag_disk/ manually part of diag_disk code if not already created. It will help diag_disk code to remove dependency on ppc64-diag installation process. Signed-off-by: Ankit Kumar [Removed inline function, renamed function name and also killed some of the redundant checks - Vasant] Signed-off-by: Vasant Hegde Index: ppc64-diag-2.7.4/diags/diag_disk.c === --- ppc64-diag-2.7.4.orig/diags/diag_disk.c +++ ppc64-diag-2.7.4/diags/diag_disk.c @@ -38,7 +38,8 @@ #include "encl_util.h" -#define OUTPUT_PATH"/var/log/ppc64-diag/diag_disk" +#define DIAG_OUTPUT_PATH "/var/log/ppc64-diag/" +#define DISK_OUTPUT_PATH DIAG_OUTPUT_PATH"diag_disk" #define SYSFS_SG_PATH "/sys/class/scsi_generic" #define DEVICE_TREE"/proc/device-tree/" #define DEVICE_TREE_SYSTEM_ID DEVICE_TREE"system-id" @@ -142,12 +143,53 @@ static int get_page_34_data(int device_f return 0; } -static inline int open_output_xml_file(const char *xml_filename) +static inline void dir_sync(char * path) +{ + int dir_fd; + + dir_fd = open(path, O_RDONLY|O_DIRECTORY); + if (dir_fd >= 0) { + fsync(dir_fd); + close(dir_fd); + } +} + +static int open_output_xml_file(const char *xml_filename) { char filename[PATH_MAX]; + int rc; + + rc = access(DISK_OUTPUT_PATH, W_OK); + if (rc) { + /* Return if it fails with error code other than ENOENT */ + if (errno != ENOENT) + return -1; + + /* Check for the existence of parent directory */ + rc = access(DIAG_OUTPUT_PATH, W_OK); + if
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2017-10-23 16:53:35 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is "ppc64-diag" Mon Oct 23 16:53:35 2017 rev:39 rq:535938 version:2.7.4 Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2017-03-02 19:43:20.460648859 +0100 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2017-10-23 16:53:52.927027170 +0200 @@ -1,0 +2,18 @@ +Fri Oct 20 09:43:36 UTC 2017 - jloe...@suse.com + +- version update to 2.7.4 (fate#35) + +- modified patches: + * ppc64-diag.varunused.patch + +- removed patches: + * ppc64-diag.opal_errd.patch + * ppc64-diag.rtas_errd.patch + +--- +Wed Sep 6 11:34:03 UTC 2017 - jloe...@suse.com + +- add missing references for SLE merge: + * bsc#931001 + +--- @@ -25 +43 @@ -- Update to 2.7.1 +- Update to 2.7.1 (bsc#979032) Old: ppc64-diag-2.7.3.tar.gz ppc64-diag.opal_errd.patch ppc64-diag.rtas_errd.patch New: ppc64-diag-2.7.4.tar.gz Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.U0wxG4/_old 2017-10-23 16:53:53.566997211 +0200 +++ /var/tmp/diff_new_pack.U0wxG4/_new 2017-10-23 16:53:53.570997024 +0200 @@ -18,42 +18,41 @@ Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag -Version:2.7.3 +Version:2.7.4 Release:0 Summary:Linux for Power Platform Diagnostics License:GPL-2.0+ Group: System/Monitoring ExclusiveArch: ppc ppc64 ppc64le -%if 0%{?suse_version} >= 1210 -BuildRequires: systemd-rpm-macros -%{?systemd_requires} -%define has_systemd 1 -%endif +BuildRequires: autoconf +BuildRequires: automake BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ -BuildRequires: librtas-devel +BuildRequires: librtas-devel >= 1.4.0 BuildRequires: libservicelog-devel +BuildRequires: libtool BuildRequires: libudev-devel BuildRequires: libvpd2-devel BuildRequires: ncurses-devel +BuildRequires: perl BuildRequires: sqlite3-devel -Requires: lsvpd -Requires: powerpc-utils >= 1.2.15 +BuildRequires: systemd-rpm-macros +Requires: cron Requires: servicelog +Requires: systemd +# License change +Requires: powerpc-utils >= 1.3.2 +# Light Path Diagnostics depends on below lsvpd version. +Requires: lsvpd >= 1.7.1 # autoselect the package on systems which have the /vdevice/IBM,sp node # All pSeries POWER5 and later have this property Supplements:modalias(vio:TIBM*spS*) -PreReq: %insserv_prereq PreReq: aaa_base BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/v%{version}/%{name}-%{version}.tar.gz -#PATCH-FIX-OPENSUSE - ppc64-diag.rtas_errd.patch - fix rtas_errd initscript to comply with openSUSE standards -Patch1: %{name}.rtas_errd.patch #PATCH-FIX-OPENSUSE - ppc64-diag.varunused.patch - fix unused variables -Patch2: %{name}.varunused.patch -#PATCH-FIX-OPENSUSE - ppc64-diag.opal_errd.patch - fix opal_errd initscript to comply with openSUSE standards -Patch3: %{name}.opal_errd.patch +Patch1: %{name}.varunused.patch %description This package contains various diagnostic tools for PowerLinux. @@ -72,17 +71,12 @@ %prep %setup -q %patch1 -p1 -%patch2 -p1 -%patch3 -p1 %build -%if 0%{?has_systemd} - sed -i '/LIBEXEC_DIR/c\LIBEXEC_DIR = \%{_libexecdir}' rules.mk - sed -i 's@/usr/libexec/ppc64-diag@%{_libexecdir}@g' scripts/opal_errd.service - sed -i 's@/usr/libexec/ppc64-diag@%{_libexecdir}@g' scripts/rtas_errd.service -%else - sed -i '/LIBEXEC_DIR/c\LIBEXEC_DIR = \%{_initddir}' rules.mk -%endif +sed -i 's@/usr/libexec/ppc64-diag@%{_libexecdir}@g' scripts/opal_errd.service +sed -i 's@/usr/libexec/ppc64-diag@%{_libexecdir}@g' scripts/rtas_errd.service +./autogen.sh +%configure make %install @@ -90,22 +84,20 @@ chmod 644 $RPM_BUILD_ROOT/etc/ppc64-diag/servevent_parse.pl mkdir $RPM_BUILD_ROOT/etc/ppc64-diag/ses_pages ln -sf /usr/sbin/usysattn $RPM_BUILD_ROOT/usr/sbin/usysfault -%if 0%{?has_systemd} - mkdir -p $RPM_BUILD_ROOT/%{_unitdir} - install -D -m0644 scripts/rtas_errd.service %{buildroot}%{_unitdir}/ - install -D -m0644 scripts/opal_errd.service %{buildroot}%{_unitdir}/ - ln -s /sbin/service %{buildroot}/usr/sbin/rcrtas_errd - ln -s /sbin/service %{buildroot}/usr/sbin/rcopal_errd -%else - pushd $RPM_BUILD_ROOT/etc/init.d - ln -s
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2017-03-02 19:43:19 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is "ppc64-diag" Thu Mar 2 19:43:19 2017 rev:38 rq:461694 version:2.7.3 Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2016-10-20 23:10:02.0 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2017-03-02 19:43:20.460648859 +0100 @@ -1,0 +2,11 @@ +Wed Mar 1 16:33:06 UTC 2017 - jloe...@suse.com + +- version update to 2.7.3 (fate#321444) + - LED support for Marvell HDD + - Added support to parse new drc-index device tree property + - ela: remove support on PowerVM LPAR + +- modified patches: + * ppc64-diag.varunused.patch + +--- Old: ppc64-diag-2.7.2.tar.gz New: ppc64-diag-2.7.3.tar.gz Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.3xW9SL/_old 2017-03-02 19:43:21.184546429 +0100 +++ /var/tmp/diff_new_pack.3xW9SL/_new 2017-03-02 19:43:21.184546429 +0100 @@ -1,7 +1,7 @@ # # spec file for package ppc64-diag # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag -Version:2.7.2 +Version:2.7.3 Release:0 Summary:Linux for Power Platform Diagnostics License:GPL-2.0+ ++ ppc64-diag-2.7.2.tar.gz -> ppc64-diag-2.7.3.tar.gz ++ 2189 lines of diff (skipped) ++ ppc64-diag.varunused.patch ++ --- /var/tmp/diff_new_pack.3xW9SL/_old 2017-03-02 19:43:21.408514739 +0100 +++ /var/tmp/diff_new_pack.3xW9SL/_new 2017-03-02 19:43:21.408514739 +0100 @@ -1,54 +1,20 @@ -Index: ppc64-diag-2.7.0/diags/7031_D24_T24.c +Index: ppc64-diag-2.7.3/rtas_errd/files.c === ppc64-diag-2.7.0.orig/diags/7031_D24_T24.c -+++ ppc64-diag-2.7.0/diags/7031_D24_T24.c -@@ -86,7 +86,8 @@ get_enclosure_scsi_id(struct pearl_diag_ - static int - pearl_print_drive_status(uint32_t status) - { -- int fail = 0, printed = 0, rc = OK; -+ __attribute__((unused)) int fail = 0; -+int printed = 0, rc = OK; - - if ((status & 0x0F00) == 0x0500) { - printf("(empty) "); -@@ -184,7 +185,8 @@ print_ps_fan_status(uint32_t status) - static int - print_repeater_status(uint32_t status) - { -- int printed = 0, fail = 0, rc = OK; -+ int printed = 0, rc = OK; -+ __attribute__((unused)) int fail = 0; - - if ((status & 0x0F00) == 0x0100) - printf("ok "); -@@ -368,7 +370,8 @@ int - diag_7031_D24_T24(int fd, struct dev_vpd *vpd) +--- ppc64-diag-2.7.3.orig/rtas_errd/files.c ppc64-diag-2.7.3/rtas_errd/files.c +@@ -176,7 +176,7 @@ setup_rtas_event_scenario(void) { - struct pearl_diag_page2 dp; -- int failure = 0, rc, encl_id; -+ int failure = 0, encl_id; -+ __attribute__((unused)) int rc; - int buf_len = sizeof(dp); - int ps1, ps2, fan1, fan2, fan3, rpt, vpd_card; - -Index: ppc64-diag-2.7.0/rtas_errd/ela.c -=== ppc64-diag-2.7.0.orig/rtas_errd/ela.c -+++ ppc64-diag-2.7.0/rtas_errd/ela.c -@@ -1837,7 +1837,7 @@ process_v1_epow(struct event *event, int - int class; - int ext_epow; - int ext_epow_nofan; -- int fan_num; -+ __attribute__((unused)) int fan_num; + struct stat sbuf; + char*tmp; +- int fd, len; ++ int fd, __attribute__((unused)) len; + int i; - /* -* The following EPOW error logs found in CHRP, Ver. 1 -Index: ppc64-diag-2.7.0/rtas_errd/epow.c + if (scenario_file == NULL) +Index: ppc64-diag-2.7.3/rtas_errd/epow.c === ppc64-diag-2.7.0.orig/rtas_errd/epow.c -+++ ppc64-diag-2.7.0/rtas_errd/epow.c +--- ppc64-diag-2.7.3.orig/rtas_errd/epow.c ppc64-diag-2.7.3/rtas_errd/epow.c @@ -62,7 +62,7 @@ static int time_remaining = 0; void epow_timer_handler(int sig, siginfo_t siginfo, void *context) @@ -63,7 +29,7 @@ struct itimerval tv; char*event_type; - int rc, state; -+ int __attribute__((unused)) rc, state; ++ int __attribute__((unused)) rc,
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2016-10-20 23:09:32 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is "ppc64-diag" Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2016-06-09 16:05:22.0 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2016-10-20 23:10:02.0 +0200 @@ -1,0 +2,10 @@ +Wed Oct 19 07:48:42 UTC 2016 - jloe...@suse.com + +- version update to 2.7.2 + - Added slider enclosure diagnostics support + - Added support for eSEL parsing + +- modified patches: + * ppc64-diag.opal_errd.patch + +--- Old: ppc64-diag-2.7.1.tar.gz New: ppc64-diag-2.7.2.tar.gz Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.8zu175/_old 2016-10-20 23:10:03.0 +0200 +++ /var/tmp/diff_new_pack.8zu175/_new 2016-10-20 23:10:03.0 +0200 @@ -18,7 +18,7 @@ Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag -Version:2.7.1 +Version:2.7.2 Release:0 Summary:Linux for Power Platform Diagnostics License:GPL-2.0+ ++ ppc64-diag-2.7.1.tar.gz -> ppc64-diag-2.7.2.tar.gz ++ 6649 lines of diff (skipped) ++ ppc64-diag.opal_errd.patch ++ --- /var/tmp/diff_new_pack.8zu175/_old 2016-10-20 23:10:03.0 +0200 +++ /var/tmp/diff_new_pack.8zu175/_new 2016-10-20 23:10:03.0 +0200 @@ -1,7 +1,7 @@ -Index: ppc64-diag-2.7.0/scripts/opal_errd +Index: ppc64-diag-2.7.2/scripts/opal_errd === ppc64-diag-2.7.0.orig/scripts/opal_errd -+++ ppc64-diag-2.7.0/scripts/opal_errd +--- ppc64-diag-2.7.2.orig/scripts/opal_errd ppc64-diag-2.7.2/scripts/opal_errd @@ -37,6 +37,10 @@ # Provides: opal_errd # Required-Start: $local_fs $syslog $time @@ -13,7 +13,7 @@ # Default-Start: 2 3 5 # Default-Stop: 0 1 4 6 # Short-Description: Daemon to retrieve platform errors/events -@@ -73,8 +77,8 @@ opal_errd_start() +@@ -71,8 +75,8 @@ opal_errd_start() daemon $OE_BIN pid=`pidof opal_errd` if [ -n "$pid" ]; then @@ -24,7 +24,7 @@ fi fi } -@@ -86,8 +90,8 @@ opal_errd_stop() +@@ -84,8 +88,8 @@ opal_errd_stop() rc_status -v else killproc opal_errd -TERM
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2016-06-09 16:03:08 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is "ppc64-diag" Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2015-09-27 08:39:02.0 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2016-06-09 16:05:22.0 +0200 @@ -1,0 +2,23 @@ +Mon May 9 10:25:34 UTC 2016 - dval...@suse.com + +- Update to 2.7.1 + - Fixed endianess issues in diagnostics code + +--- +Tue Mar 22 15:31:40 UTC 2016 - jloe...@suse.com + +- version update to 2.7.0 (FATE#319557) + - Move from EPL to the GNU GPL license + - LED support on FSP based PowerNV platform + - Few minor bugs fixes + +- removed patches: + * ppc64-diag.bug-945385_create_dump_directory_on_startup.patch + * ppc64-diag.tmpraces.patch + +- modified patches: + * ppc64-diag.opal_errd.patch + * ppc64-diag.rtas_errd.patch + * ppc64-diag.varunused.patch + +--- Old: ppc64-diag-2.6.9.tar.gz ppc64-diag.bug-945385_create_dump_directory_on_startup.patch ppc64-diag.tmpraces.patch New: ppc64-diag-2.7.1.tar.gz Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.2cOZbk/_old 2016-06-09 16:05:41.0 +0200 +++ /var/tmp/diff_new_pack.2cOZbk/_new 2016-06-09 16:05:41.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package ppc64-diag # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,10 +18,10 @@ Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag -Version:2.6.9 +Version:2.7.1 Release:0 Summary:Linux for Power Platform Diagnostics -License:EPL-1.0 +License:GPL-2.0+ Group: System/Monitoring ExclusiveArch: ppc ppc64 ppc64le %if 0%{?suse_version} >= 1210 @@ -54,8 +54,6 @@ Patch2: %{name}.varunused.patch #PATCH-FIX-OPENSUSE - ppc64-diag.opal_errd.patch - fix opal_errd initscript to comply with openSUSE standards Patch3: %{name}.opal_errd.patch -Patch4: ppc64-diag.tmpraces.patch -Patch5: ppc64-diag.bug-945385_create_dump_directory_on_startup.patch %description This package contains various diagnostic tools for PowerLinux. @@ -76,8 +74,6 @@ %patch1 -p1 %patch2 -p1 %patch3 -p1 -%patch4 -p1 -%patch5 -p1 %build %if 0%{?has_systemd} @@ -109,7 +105,7 @@ %files %defattr (-,root,root,-) -%doc %attr(644,root,root) COPYRIGHT +%doc %attr(644,root,root) COPYING /usr/sbin/* %dir /etc/ppc64-diag %config /etc/ppc64-diag/* ++ ppc64-diag-2.6.9.tar.gz -> ppc64-diag-2.7.1.tar.gz ++ 8823 lines of diff (skipped) ++ ppc64-diag.opal_errd.patch ++ --- /var/tmp/diff_new_pack.2cOZbk/_old 2016-06-09 16:05:41.0 +0200 +++ /var/tmp/diff_new_pack.2cOZbk/_new 2016-06-09 16:05:41.0 +0200 @@ -1,8 +1,8 @@ -Index: ppc64-diag-2.6.9/scripts/opal_errd +Index: ppc64-diag-2.7.0/scripts/opal_errd === ppc64-diag-2.6.9.orig/scripts/opal_errd -+++ ppc64-diag-2.6.9/scripts/opal_errd -@@ -22,6 +22,10 @@ +--- ppc64-diag-2.7.0.orig/scripts/opal_errd ppc64-diag-2.7.0/scripts/opal_errd +@@ -37,6 +37,10 @@ # Provides: opal_errd # Required-Start: $local_fs $syslog $time # Required-Stop: @@ -13,7 +13,7 @@ # Default-Start: 2 3 5 # Default-Stop: 0 1 4 6 # Short-Description: Daemon to retrieve platform errors/events -@@ -58,8 +62,8 @@ opal_errd_start() +@@ -73,8 +77,8 @@ opal_errd_start() daemon $OE_BIN pid=`pidof opal_errd` if [ -n "$pid" ]; then @@ -24,7 +24,7 @@ fi fi } -@@ -71,8 +75,8 @@ opal_errd_stop() +@@ -86,8 +90,8 @@ opal_errd_stop() rc_status -v else killproc opal_errd -TERM ++ ppc64-diag.rtas_errd.patch ++ --- /var/tmp/diff_new_pack.2cOZbk/_old 2016-06-09 16:05:41.0 +0200 +++ /var/tmp/diff_new_pack.2cOZbk/_new 2016-06-09 16:05:41.0 +0200 @@ -2,11 +2,11 @@ scripts/rtas_errd |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) -Index: ppc64-diag-2.6.9/scripts/rtas_errd +Index: ppc64-diag-2.7.0/scripts/rtas_errd
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2015-09-27 08:39:40 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is "ppc64-diag" Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2015-08-01 11:37:10.0 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2015-09-27 08:39:02.0 +0200 @@ -1,0 +2,8 @@ +Wed Sep 16 16:48:35 UTC 2015 - jloe...@suse.com + +- create /var/log/dump directory on startup (bsc#945385) + +- added patches: + * ppc64-diag.bug-945385_create_dump_directory_on_startup.patch + +--- New: ppc64-diag.bug-945385_create_dump_directory_on_startup.patch Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.EjQlIg/_old 2015-09-27 08:39:02.0 +0200 +++ /var/tmp/diff_new_pack.EjQlIg/_new 2015-09-27 08:39:02.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package ppc64-diag # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -55,6 +55,7 @@ #PATCH-FIX-OPENSUSE - ppc64-diag.opal_errd.patch - fix opal_errd initscript to comply with openSUSE standards Patch3: %{name}.opal_errd.patch Patch4: ppc64-diag.tmpraces.patch +Patch5: ppc64-diag.bug-945385_create_dump_directory_on_startup.patch %description This package contains various diagnostic tools for PowerLinux. @@ -76,6 +77,7 @@ %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build %if 0%{?has_systemd} ++ ppc64-diag.bug-945385_create_dump_directory_on_startup.patch ++ >From 25797e8420d6cbcf8b64f062d347f21649d9d1f7 Mon Sep 17 00:00:00 2001 From: Kamalesh BabulalDate: Wed, 9 Sep 2015 10:43:29 +0530 Subject: [PATCH] opal_errd/extract_opal_dump: Create dump directory on startup To: ltc...@lists.linux.ibm.com extract_opal_dump is called, while starting opal_errd daemon. Following failure message from extract_opal_dump is observed when output dump directory (/var/log/dump default) is missing to extract the dump to. opal_errd.service - opal_errd (PowerNV platform error handling) Service Loaded: loaded (/usr/lib/systemd/system/opal_errd.service; enabled) Active: active (running) since Wed 2015-09-09 09:41:03 BST; 2s ago Process: 84467 ExecStop=/usr/lib/opal_errd stop (code=exited, status=0/SUCCESS) Process: 84488 ExecStart=/usr/lib/opal_errd start (code=exited, status=0/SUCCESS) Main PID: 84500 (opal_errd) CGroup: /system.slice/opal_errd.service `-84500 /usr/sbin/opal_errd Sep 09 09:41:03 linux ELOG[84500]: /usr/sbin/extract_opal_dump command execution failed Sep 09 09:41:03 linux opal_errd[84488]: Starting opal_errd daemon: ..done Sep 09 09:41:04 linux ELOG[84500]: /usr/sbin/extract_opal_dump command execution failed Sep 09 09:41:05 linux ELOG[84500]: /usr/sbin/extract_opal_dump command execution failed Fix this issue by creating missing output directory, mimicking opal_errd (creates opal-elog directory, if missing on startup) instead of bailing out. Also replace stat() with access(), in places where access() is sufficient. Signed-off-by: Kamalesh Babulal Cc: Vasant Hegde --- opal_errd/extract_opal_dump.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/opal_errd/extract_opal_dump.c b/opal_errd/extract_opal_dump.c index 800d308bdbf5..6c3923bb1432 100644 --- a/opal_errd/extract_opal_dump.c +++ b/opal_errd/extract_opal_dump.c @@ -100,7 +100,6 @@ static void ack_dump(const char* dump_dir_path) */ static void check_dup_dump_file(char *dumpname) { - struct stat sbuf; char dump_path[PATH_MAX]; int rc; @@ -111,7 +110,7 @@ static void check_dup_dump_file(char *dumpname) return; } - if (stat(dump_path, ) == -1) + if (access(dump_path, R_OK) == -1) return; if (unlink(dump_path) < 0) @@ -379,7 +378,6 @@ int main(int argc, char *argv[]) int rc; int fd; fd_set exceptfds; - struct stat s; setlogmask(LOG_UPTO(LOG_NOTICE)); openlog("OPAL_DUMP", LOG_CONS | LOG_PID | LOG_NDELAY | LOG_PERROR, @@ -422,18 +420,29 @@ int main(int argc, char *argv[]) snprintf(sysfs_path, sizeof(sysfs_path), "%s/firmware/opal/dump",
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2015-08-01 11:37:09 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2015-06-09 12:24:46.0 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2015-08-01 11:37:10.0 +0200 @@ -1,0 +2,17 @@ +Thu Jul 23 11:45:16 UTC 2015 - jloe...@suse.com + +- version update to 2.6.9 (FATE#318007) + - see Changelog under ppc64-diag-2.6.9/ppc64-diag.spec + +- modified patches: + * ppc64-diag.varunused.patch + * ppc64-diag.rtas_errd.patch + * ppc64-diag.opal_errd.patch + * ppc64-diag.tmpraces.patch + +- removed patches: + * ppc64-diag.add_ncurses_include_path.patch + * ppc64-diag.rtas_errd-LE-fixes-for-extract_platdump.patch + * ppc64-diag-tmpraces.patch + +--- Old: ppc64-diag-2.6.8.tar.gz ppc64-diag-tmpraces.patch ppc64-diag.add_ncurses_include_path.patch ppc64-diag.rtas_errd-LE-fixes-for-extract_platdump.patch New: ppc64-diag-2.6.9.tar.gz ppc64-diag.tmpraces.patch Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.DAYWHE/_old 2015-08-01 11:37:11.0 +0200 +++ /var/tmp/diff_new_pack.DAYWHE/_new 2015-08-01 11:37:11.0 +0200 @@ -18,7 +18,7 @@ Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag -Version:2.6.8 +Version:2.6.9 Release:0 Summary:Linux for Power Platform Diagnostics License:EPL-1.0 @@ -54,9 +54,7 @@ Patch2: %{name}.varunused.patch #PATCH-FIX-OPENSUSE - ppc64-diag.opal_errd.patch - fix opal_errd initscript to comply with openSUSE standards Patch3: %{name}.opal_errd.patch -Patch4: ppc64-diag.add_ncurses_include_path.patch -Patch5: ppc64-diag-tmpraces.patch -Patch6: %{name}.rtas_errd-LE-fixes-for-extract_platdump.patch +Patch4: ppc64-diag.tmpraces.patch %description This package contains various diagnostic tools for PowerLinux. @@ -78,8 +76,6 @@ %patch2 -p1 %patch3 -p1 %patch4 -p1 -%patch5 -p1 -%patch6 -p1 %build %if 0%{?has_systemd} ++ ppc64-diag-2.6.8.tar.gz - ppc64-diag-2.6.9.tar.gz ++ 5396 lines of diff (skipped) ++ ppc64-diag.opal_errd.patch ++ --- /var/tmp/diff_new_pack.DAYWHE/_old 2015-08-01 11:37:11.0 +0200 +++ /var/tmp/diff_new_pack.DAYWHE/_new 2015-08-01 11:37:11.0 +0200 @@ -1,7 +1,7 @@ -Index: ppc64-diag-2.6.7/scripts/opal_errd +Index: ppc64-diag-2.6.9/scripts/opal_errd === ppc64-diag-2.6.7.orig/scripts/opal_errd -+++ ppc64-diag-2.6.7/scripts/opal_errd +--- ppc64-diag-2.6.9.orig/scripts/opal_errd ppc64-diag-2.6.9/scripts/opal_errd @@ -22,6 +22,10 @@ # Provides: opal_errd # Required-Start: $local_fs $syslog $time ++ ppc64-diag.rtas_errd.patch ++ --- /var/tmp/diff_new_pack.DAYWHE/_old 2015-08-01 11:37:11.0 +0200 +++ /var/tmp/diff_new_pack.DAYWHE/_new 2015-08-01 11:37:11.0 +0200 @@ -2,10 +2,10 @@ scripts/rtas_errd |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) -Index: ppc64-diag-2.6.7/scripts/rtas_errd +Index: ppc64-diag-2.6.9/scripts/rtas_errd === ppc64-diag-2.6.7.orig/scripts/rtas_errd -+++ ppc64-diag-2.6.7/scripts/rtas_errd +--- ppc64-diag-2.6.9.orig/scripts/rtas_errd ppc64-diag-2.6.9/scripts/rtas_errd @@ -21,6 +21,10 @@ # Provides: rtas_errd # Required-Start: $local_fs $syslog $time ++ ppc64-diag-tmpraces.patch - ppc64-diag.tmpraces.patch ++ --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag-tmpraces.patch 2015-06-09 12:24:46.0 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.tmpraces.patch 2015-08-01 11:37:10.0 +0200 @@ -1,7 +1,7 @@ -Index: ppc64-diag-2.6.8/lpd/test/lpd_ela_test.sh +Index: ppc64-diag-2.6.9/lpd/test/lpd_ela_test.sh === ppc64-diag-2.6.8.orig/lpd/test/lpd_ela_test.sh -+++ ppc64-diag-2.6.8/lpd/test/lpd_ela_test.sh +--- ppc64-diag-2.6.9.orig/lpd/test/lpd_ela_test.sh ppc64-diag-2.6.9/lpd/test/lpd_ela_test.sh @@ -22,7 +22,7 @@ EXECUTION_LOG=$LOG_DIR/$SCRIPT_NAME.log ERROR_LOG=$LOG_DIR/$SCRIPT_NAME.err @@ -11,10 +11,10 @@ MESSAGE_FILE=$TMP_DIR/messages TMP_FILE=$TMP_DIR/$SCRIPT_NAME.tmp -Index: ppc64-diag-2.6.8/scripts/ppc64_diag_mkrsrc
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2015-06-09 12:24:44 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2014-09-29 12:40:18.0 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2015-06-09 12:24:46.0 +0200 @@ -1,0 +2,12 @@ +Mon Jun 8 20:10:27 UTC 2015 - dvla...@suse.com + +- Update to 2.6.8 +- Cpu and memory hotplugging support for PowerKVM guest +- Various fixes to opal-dump-parse tool +- Few LE related fixes +- Several security fixes across tools +- Drop upstreamed patches + ppc64-diag.opal-dump-parse-Add-printk-log-in-the-list-of-dump-s.patch + ppc64-diag.rtas_errd-Fix-PRRN-Event-handling-on-LE.patch + +--- Old: ppc64-diag-2.6.7.tar.gz ppc64-diag.opal-dump-parse-Add-printk-log-in-the-list-of-dump-s.patch ppc64-diag.rtas_errd-Fix-PRRN-Event-handling-on-LE.patch New: _service ppc64-diag-2.6.8.tar.gz Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.1euqnm/_old 2015-06-09 12:24:47.0 +0200 +++ /var/tmp/diff_new_pack.1euqnm/_new 2015-06-09 12:24:47.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package ppc64-diag # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag -Version:2.6.7 +Version:2.6.8 Release:0 Summary:Linux for Power Platform Diagnostics License:EPL-1.0 @@ -47,7 +47,7 @@ PreReq: %insserv_prereq PreReq: aaa_base BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/v.%{version}/%{name}-%{version}.tar.gz +Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/v%{version}/%{name}-%{version}.tar.gz #PATCH-FIX-OPENSUSE - ppc64-diag.rtas_errd.patch - fix rtas_errd initscript to comply with openSUSE standards Patch1: %{name}.rtas_errd.patch #PATCH-FIX-OPENSUSE - ppc64-diag.varunused.patch - fix unused variables @@ -56,9 +56,7 @@ Patch3: %{name}.opal_errd.patch Patch4: ppc64-diag.add_ncurses_include_path.patch Patch5: ppc64-diag-tmpraces.patch -Patch6: %{name}.opal-dump-parse-Add-printk-log-in-the-list-of-dump-s.patch -Patch7: %{name}.rtas_errd-LE-fixes-for-extract_platdump.patch -Patch8: %{name}.rtas_errd-Fix-PRRN-Event-handling-on-LE.patch +Patch6: %{name}.rtas_errd-LE-fixes-for-extract_platdump.patch %description This package contains various diagnostic tools for PowerLinux. @@ -82,8 +80,6 @@ %patch4 -p1 %patch5 -p1 %patch6 -p1 -%patch7 -p1 -%patch8 -p1 %build %if 0%{?has_systemd} ++ _service ++ services service name=download_files mode=disabled /service service name=set_version mode=disabled/ service name=refresh_patches mode=disabled param name=ignorefuzzenable/param /service /services ++ ppc64-diag-2.6.7.tar.gz - ppc64-diag-2.6.8.tar.gz ++ 141906 lines of diff (skipped) ++ ppc64-diag-tmpraces.patch ++ --- /var/tmp/diff_new_pack.1euqnm/_old 2015-06-09 12:24:47.0 +0200 +++ /var/tmp/diff_new_pack.1euqnm/_new 2015-06-09 12:24:47.0 +0200 @@ -1,7 +1,7 @@ -Index: ppc64-diag-2.6.7/lpd/test/lpd_ela_test.sh +Index: ppc64-diag-2.6.8/lpd/test/lpd_ela_test.sh === ppc64-diag-2.6.7.orig/lpd/test/lpd_ela_test.sh -+++ ppc64-diag-2.6.7/lpd/test/lpd_ela_test.sh +--- ppc64-diag-2.6.8.orig/lpd/test/lpd_ela_test.sh ppc64-diag-2.6.8/lpd/test/lpd_ela_test.sh @@ -22,7 +22,7 @@ EXECUTION_LOG=$LOG_DIR/$SCRIPT_NAME.log ERROR_LOG=$LOG_DIR/$SCRIPT_NAME.err @@ -11,87 +11,10 @@ MESSAGE_FILE=$TMP_DIR/messages TMP_FILE=$TMP_DIR/$SCRIPT_NAME.tmp -Index: ppc64-diag-2.6.7/rtas_errd/diag_support.c +Index: ppc64-diag-2.6.8/scripts/ppc64_diag_mkrsrc === ppc64-diag-2.6.7.orig/rtas_errd/diag_support.c -+++ ppc64-diag-2.6.7/rtas_errd/diag_support.c -@@ -230,27 +230,23 @@ get_dt_status(char *dev) - char loc_file[80]; - char target[80]; - char *ptr; --
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2014-09-29 12:40:17 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2014-09-10 17:02:48.0 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2014-09-29 12:40:18.0 +0200 @@ -1,0 +2,9 @@ +Fri Sep 26 09:20:31 UTC 2014 - stefan.f...@suse.com + +- fix bsc #898480 ppc64-diag: fixes for LE support +- patches added: + - ppc64-diag.opal-dump-parse-Add-printk-log-in-the-list-of-dump-s.patch + - ppc64-diag.rtas_errd-Fix-PRRN-Event-handling-on-LE.patch + - ppc64-diag.rtas_errd-LE-fixes-for-extract_platdump.patch + +--- New: ppc64-diag.opal-dump-parse-Add-printk-log-in-the-list-of-dump-s.patch ppc64-diag.rtas_errd-Fix-PRRN-Event-handling-on-LE.patch ppc64-diag.rtas_errd-LE-fixes-for-extract_platdump.patch Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.bEDdEm/_old 2014-09-29 12:40:19.0 +0200 +++ /var/tmp/diff_new_pack.bEDdEm/_new 2014-09-29 12:40:19.0 +0200 @@ -56,6 +56,9 @@ Patch3: %{name}.opal_errd.patch Patch4: ppc64-diag.add_ncurses_include_path.patch Patch5: ppc64-diag-tmpraces.patch +Patch6: %{name}.opal-dump-parse-Add-printk-log-in-the-list-of-dump-s.patch +Patch7: %{name}.rtas_errd-LE-fixes-for-extract_platdump.patch +Patch8: %{name}.rtas_errd-Fix-PRRN-Event-handling-on-LE.patch %description This package contains various diagnostic tools for PowerLinux. @@ -78,6 +81,9 @@ %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 %build %if 0%{?has_systemd} ++ ppc64-diag.opal-dump-parse-Add-printk-log-in-the-list-of-dump-s.patch ++ From f5a0a711ad79e6d1ec8bbf5f561a55582ae8ea03 Mon Sep 17 00:00:00 2001 From: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com Date: Thu, 4 Sep 2014 11:09:18 +0530 Subject: [PATCH 1/3] opal-dump-parse: Add printk log in the list of dump sections Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com --- opal-dump-parse/opal-dump-parse.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opal-dump-parse/opal-dump-parse.h b/opal-dump-parse/opal-dump-parse.h index 1d13029..8fbd928 100644 --- a/opal-dump-parse/opal-dump-parse.h +++ b/opal-dump-parse/opal-dump-parse.h @@ -28,7 +28,8 @@ #define DUMP_SECTION_DESC \ {0, Unknown}, \ {1, Opal-log}, \ - {2, HostBoot-Runtime-log} + {2, HostBoot-Runtime-log}, \ + {128, printk} #define MDST_SECTION_DESC_LEN 128 -- 1.8.3.1 ++ ppc64-diag.rtas_errd-Fix-PRRN-Event-handling-on-LE.patch ++ From f53bb968306ee868de781911e1d906879698c3cd Mon Sep 17 00:00:00 2001 From: Suzuki K. Poulose suz...@in.ibm.com Date: Tue, 9 Sep 2014 15:24:50 -0400 Subject: [PATCH 3/3] rtas_errd: Fix PRRN Event handling on LE Fixes for PRRN event handling on LE systems 1) Convert the number of properties to host endian in i update_properties(). 2) Use phandle in host endian while issuing an ofdt command, since we pass the phandle as a numeric string to the kernel. With this patch the PRRN event handling works fine, however, drmgr needs to support LE systems for a seemless operation of the rtas_errd, since we depend on drmgr Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Acked-by: Nathan Fontenot nf...@linux.vnet.ibm.com Signed-off-by: Vasant Hegde hegdevas...@linux.vnet.ibm.com --- rtas_errd/prrn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtas_errd/prrn.c b/rtas_errd/prrn.c index 7a791cb..8226ec1 100644 --- a/rtas_errd/prrn.c +++ b/rtas_errd/prrn.c @@ -342,7 +342,7 @@ static int update_properties(uint32_t phandle) dbg(successful rtas_update_properties (more %d), rc); op = wa+4; - nprop = *op++; + nprop = be32toh(*op++); /* Should just be on property to update, the affinity. Except * for reconfig memory, that is a single property for @@ -374,7 +374,7 @@ static int update_properties(uint32_t phandle) dbg(%s - delete property %s, pms-name, pname); sprintf(cmd,remove_property %u %s, - htobe32(phandle), pname); + phandle, pname); do_update(cmd, strlen(cmd)); break;
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2014-09-10 17:02:18 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2014-07-25 09:09:00.0 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2014-09-10 17:02:48.0 +0200 @@ -1,0 +2,17 @@ +Tue Sep 9 11:44:11 UTC 2014 - dvla...@suse.com + +- Fix download service + +--- +Mon Sep 8 11:11:06 UTC 2014 - jloe...@suse.com + +- version update to 2.6.7 (BNC#894846) + no upstream changelog provided + +- modified patches: + * ppc64-diag-tmpraces.patch + * ppc64-diag.add_ncurses_include_path.patch + * ppc64-diag.opal_errd.patch + * ppc64-diag.rtas_errd.patch + * ppc64-diag.varunused.patch +--- Old: opal_errd.service ppc64-diag-2.6.6.tar.gz rtas_errd.service New: ppc64-diag-2.6.7.tar.gz Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.TXQBNq/_old 2014-09-10 17:02:49.0 +0200 +++ /var/tmp/diff_new_pack.TXQBNq/_new 2014-09-10 17:02:49.0 +0200 @@ -18,7 +18,7 @@ Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag -Version:2.6.6 +Version:2.6.7 Release:0 Summary:Linux for Power Platform Diagnostics License:EPL-1.0 @@ -34,6 +34,7 @@ BuildRequires: gcc-c++ BuildRequires: librtas-devel BuildRequires: libservicelog-devel +BuildRequires: libudev-devel BuildRequires: libvpd2-devel BuildRequires: ncurses-devel BuildRequires: sqlite3-devel @@ -46,9 +47,7 @@ PreReq: %insserv_prereq PreReq: aaa_base BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/v%{version}/%{name}-%{version}.tar.gz -Source1:rtas_errd.service -Source2:opal_errd.service +Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/v.%{version}/%{name}-%{version}.tar.gz #PATCH-FIX-OPENSUSE - ppc64-diag.rtas_errd.patch - fix rtas_errd initscript to comply with openSUSE standards Patch1: %{name}.rtas_errd.patch #PATCH-FIX-OPENSUSE - ppc64-diag.varunused.patch - fix unused variables @@ -81,6 +80,13 @@ %patch5 -p1 %build +%if 0%{?has_systemd} + sed -i '/LIBEXEC_DIR/c\LIBEXEC_DIR = \%{_libexecdir}' rules.mk + sed -i 's@/usr/libexec/ppc64-diag@%{_libexecdir}@g' scripts/opal_errd.service + sed -i 's@/usr/libexec/ppc64-diag@%{_libexecdir}@g' scripts/rtas_errd.service +%else + sed -i '/LIBEXEC_DIR/c\LIBEXEC_DIR = \%{_initddir}' rules.mk +%endif make %install @@ -89,11 +95,9 @@ mkdir $RPM_BUILD_ROOT/etc/ppc64-diag/ses_pages ln -sf /usr/sbin/usysattn $RPM_BUILD_ROOT/usr/sbin/usysfault %if 0%{?has_systemd} - rm $RPM_BUILD_ROOT/etc/init.d/rtas_errd - rm $RPM_BUILD_ROOT/etc/init.d/opal_errd mkdir -p $RPM_BUILD_ROOT/%{_unitdir} - install -D -m0644 %{S:1} %{buildroot}%{_unitdir}/ - install -D -m0644 %{S:2} %{buildroot}%{_unitdir}/ + install -D -m0644 scripts/rtas_errd.service %{buildroot}%{_unitdir}/ + install -D -m0644 scripts/opal_errd.service %{buildroot}%{_unitdir}/ ln -s /sbin/service %{buildroot}/usr/sbin/rcrtas_errd ln -s /sbin/service %{buildroot}/usr/sbin/rcopal_errd %else @@ -118,13 +122,18 @@ %{_mandir}/man8/usysattn.8.gz %{_mandir}/man8/usysfault.8.gz %{_mandir}/man8/usysident.8.gz +%{_mandir}/man8/opal-dump-parse.8.gz +%{_mandir}/man8/opal-elog-parse.8.gz +%{_mandir}/man8/opal_errd.8.gz %if 0%{?has_systemd} %{_unitdir}/rtas_errd.service %{_unitdir}/opal_errd.service + %{_libexecdir}/rtas_errd + %{_libexecdir}/opal_errd %else - %config %attr(755,root,root) /etc/init.d/rtas_errd - %config %attr(755,root,root) /etc/init.d/opal_errd + %config %attr(755,root,root) %{_initddir}/rtas_errd + %config %attr(755,root,root) %{_initddir}/opal_errd %endif %if 1 @@ -235,7 +244,6 @@ %service_add_pre rtas_errd.service %service_add_pre opal_errd.service %endif - %endif %changelog ++ ppc64-diag-2.6.6.tar.gz - ppc64-diag-2.6.7.tar.gz ++ 143403 lines of diff (skipped) ++ ppc64-diag-tmpraces.patch ++ --- /var/tmp/diff_new_pack.TXQBNq/_old 2014-09-10 17:02:49.0 +0200 +++ /var/tmp/diff_new_pack.TXQBNq/_new 2014-09-10 17:02:49.0 +0200 @@ -1,7 +1,8 @@ -diff -ur ppc64-diag-2.6.1_orig/lpd/test/lpd_ela_test.sh ppc64-diag-2.6.1/lpd/test/lpd_ela_test.sh
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2014-07-25 09:08:58 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2014-06-24 15:16:27.0 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2014-07-25 09:09:00.0 +0200 @@ -1,0 +2,20 @@ +Tue Jul 22 12:22:13 UTC 2014 - dvla...@suse.com + +- Fix download URL once again + +--- +Tue Jul 22 11:50:30 UTC 2014 - meiss...@suse.com + +- Also run the systemd %post snippets within chroots, otherwise + we will enable the service (as we always install in chroots). + bnc#882450 +- the %service snippets take argument lists. + +--- +Fri Jul 18 13:32:25 UTC 2014 - jseg...@suse.com + +- updated ppc64-diag-tmpraces.patch to include proper permissions + (bnc#882667, CVE-2014-4039) +- added missing pclose and fclose in default path of get_dt_status() + +--- Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.dkYBo0/_old 2014-07-25 09:09:01.0 +0200 +++ /var/tmp/diff_new_pack.dkYBo0/_new 2014-07-25 09:09:01.0 +0200 @@ -35,7 +35,6 @@ BuildRequires: librtas-devel BuildRequires: libservicelog-devel BuildRequires: libvpd2-devel -BuildRequires: libvpd2-devel BuildRequires: ncurses-devel BuildRequires: sqlite3-devel Requires: lsvpd @@ -69,7 +68,6 @@ indicator(s) and provides event notification to system administrators or connected service frameworks. - Authors: IBM Corporation @@ -132,28 +130,26 @@ %if 1 %post -# get it going if outside a chroot -if test -f /proc/1/exe -a -d /proc/1/root; then - if test $(stat -Lc '%%D-%%i' /) = $(stat -Lc '%%D-%%i' /proc/1/root); then -%if 0%{?has_systemd} - %service_add_post rtas_errd.service - %service_add_post opal_errd.service -%else +%if 0%{?has_systemd} + %service_add_post rtas_errd.service opal_errd.service +%else %{insserv_force_if_yast rtas_errd} %{insserv_force_if_yast opal_errd} + # get it going if outside a chroot + if test -f /proc/1/exe -a -d /proc/1/root; then +if test $(stat -Lc '%%D-%%i' /) = $(stat -Lc '%%D-%%i' /proc/1/root); then rcrtas_errd start || : rcopal_errd start || : -%endif fi -fi + fi +%endif %preun if test $1 = 0 ; then test -f /var/cache/ppc64-diag.registered rmdir -v /var/cache/ppc64-diag.registered || : fi %if 0%{?has_systemd} - %service_del_preun rtas_errd.service - %service_del_preun opal_errd.service + %service_del_preun rtas_errd.service opal_errd.service %else %stop_on_removal rtas_errd %stop_on_removal opal_errd @@ -161,8 +157,7 @@ %postun %if 0%{?has_systemd} - %service_del_postun rtas_errd.service - %service_del_postun opal_errd.service + %service_del_postun rtas_errd.service opal_errd.service %else %restart_on_update rtas_errd %insserv_cleanup rtas_errd @@ -172,8 +167,7 @@ %pre %if 0%{?has_systemd} - %service_add_pre rtas_errd.service - %service_add_pre opal_errd.service + %service_add_pre rtas_errd.service opal_errd.service %endif %else @@ -241,6 +235,7 @@ %service_add_pre rtas_errd.service %service_add_pre opal_errd.service %endif + %endif %changelog ++ ppc64-diag-tmpraces.patch ++ --- /var/tmp/diff_new_pack.dkYBo0/_old 2014-07-25 09:09:01.0 +0200 +++ /var/tmp/diff_new_pack.dkYBo0/_new 2014-07-25 09:09:01.0 +0200 @@ -1,8 +1,19 @@ -Index: ppc64-diag-2.6.6/rtas_errd/diag_support.c -=== ppc64-diag-2.6.6.orig/rtas_errd/diag_support.c -+++ ppc64-diag-2.6.6/rtas_errd/diag_support.c -@@ -230,27 +230,23 @@ get_dt_status(char *dev) +diff -ur ppc64-diag-2.6.1_orig/lpd/test/lpd_ela_test.sh ppc64-diag-2.6.1/lpd/test/lpd_ela_test.sh +--- ppc64-diag-2.6.1_orig/lpd/test/lpd_ela_test.sh 2014-07-18 13:33:08.351629000 +0200 ppc64-diag-2.6.1/lpd/test/lpd_ela_test.sh 2014-07-18 13:33:15.323767000 +0200 +@@ -22,7 +22,7 @@ + ERROR_LOG=$LOG_DIR/$SCRIPT_NAME.err + + TMP_DIR=/var/tmp/ras +-mkdir -p $TMP_DIR ++mkdir $TMP_DIR || exit 1 + MESSAGE_FILE=$TMP_DIR/messages + TMP_FILE=$TMP_DIR/$SCRIPT_NAME.tmp + +diff -ur ppc64-diag-2.6.1_orig/rtas_errd/diag_support.c ppc64-diag-2.6.1/rtas_errd/diag_support.c +--- ppc64-diag-2.6.1_orig/rtas_errd/diag_support.c 2014-07-18 13:33:08.473633000 +0200
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2014-06-24 15:16:14 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2014-06-18 07:52:36.0 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2014-06-24 15:16:27.0 +0200 @@ -1,0 +2,7 @@ +Mon Jun 23 13:47:37 UTC 2014 - jloe...@suse.com + +- fix /tmp race (BNC#882667, CVE-2014-4038) + +- added patches: + * ppc64-diag-tmpraces.patch +--- New: ppc64-diag-tmpraces.patch Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.5xmkdU/_old 2014-06-24 15:16:28.0 +0200 +++ /var/tmp/diff_new_pack.5xmkdU/_new 2014-06-24 15:16:28.0 +0200 @@ -57,6 +57,7 @@ #PATCH-FIX-OPENSUSE - ppc64-diag.opal_errd.patch - fix opal_errd initscript to comply with openSUSE standards Patch3: %{name}.opal_errd.patch Patch4: ppc64-diag.add_ncurses_include_path.patch +Patch5: ppc64-diag-tmpraces.patch %description This package contains various diagnostic tools for PowerLinux. @@ -79,6 +80,7 @@ %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build make ++ ppc64-diag-tmpraces.patch ++ Index: ppc64-diag-2.6.6/rtas_errd/diag_support.c === --- ppc64-diag-2.6.6.orig/rtas_errd/diag_support.c +++ ppc64-diag-2.6.6/rtas_errd/diag_support.c @@ -230,27 +230,23 @@ get_dt_status(char *dev) char loc_file[80]; char target[80]; char *ptr; - char command[]=/usr/bin/find /proc/device-tree -name status -print /tmp/get_dt_files; + char command[]=/usr/bin/find /proc/device-tree -name status -print; - if (system(command) != 0) { + fp1 = popen(command,r); + + if (!fp1) { fprintf(stderr, get_dt_status find command failed\n); return NULL; } - /* results of the find command */ - fp1 = fopen(/tmp/get_dt_files, r); - if (fp1 == 0) { - fprintf(stderr, open failed on /tmp/get_dt_files\n); - return NULL; - } - while (fscanf (fp1, %s, loc_file) != EOF) { - dbg(read from /tmp/get_dt_files, \%s\, loc_file); + dbg(read from find, \%s\, loc_file); /* read the status in case this is the one */ fp2 = fopen(loc_file, r); if (fp2 == 0) { fprintf(stderr, open failed on %s\n, loc_file); + pclose(fp1); return NULL; } if (fscanf(fp2, %s, target_status)) { @@ -259,6 +255,7 @@ get_dt_status(char *dev) } else { fprintf(stderr, read failed on %s\n, loc_file); + pclose(fp1); return NULL; } @@ -270,6 +267,7 @@ get_dt_status(char *dev) fp2 = fopen(loc_file, r); if (fp2 == 0) { fprintf(stderr, open failed on %s\n, loc_file); + pclose(fp1); return NULL; } @@ -285,11 +283,12 @@ get_dt_status(char *dev) } else { fprintf(stderr, read failed on %s\n, loc_file); + pclose(fp1); return NULL; } } - fclose(fp1); + pclose(fp1); fprintf(stderr, error: status NOT FOUND\n); return NULL; } Index: ppc64-diag-2.6.6/lpd/test/lpd_ela_test.sh === --- ppc64-diag-2.6.6.orig/lpd/test/lpd_ela_test.sh +++ ppc64-diag-2.6.6/lpd/test/lpd_ela_test.sh @@ -22,7 +22,7 @@ EXECUTION_LOG=$LOG_DIR/$SCRIPT_NAME.log ERROR_LOG=$LOG_DIR/$SCRIPT_NAME.err TMP_DIR=/var/tmp/ras -mkdir -p $TMP_DIR +mkdir $TMP_DIR || exit 1 MESSAGE_FILE=$TMP_DIR/messages TMP_FILE=$TMP_DIR/$SCRIPT_NAME.tmp Index: ppc64-diag-2.6.6/scripts/ppc64_diag_mkrsrc === --- ppc64-diag-2.6.6.orig/scripts/ppc64_diag_mkrsrc +++ ppc64-diag-2.6.6/scripts/ppc64_diag_mkrsrc @@ -123,7 +123,7 @@ if (-e /proc/device-tree/ibm,converged- } # Retrieve Extended Error Data (EED) -mkdir /tmp/diagSEsnap, 0775; +mkdir /tmp/diagSEsnap, 0775 || die mkdir failed: $!; $general_eed_file = /tmp/diagSEsnap/snapH.tar.gz; system(/usr/sbin/snap -o
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2014-06-18 07:50:24 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2014-04-04 16:41:28.0 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2014-06-18 07:52:36.0 +0200 @@ -1,0 +2,19 @@ +Fri May 23 13:47:29 UTC 2014 - dvla...@suse.com + +- Fix Source url + +--- +Fri May 23 07:59:45 UTC 2014 - jseg...@novell.com + +- added necessary macros for systemd files + +--- +Fri May 2 15:37:03 UTC 2014 - jloe...@suse.com + +- version update to 2.6.6 (BNC#875775) + * No upstream changelog provided + * need to add include/ncurses path for menu.h in lpd/lp_diag.c + +- added patches: + * ppc64-diag.add_ncurses_include_path.patch +--- Old: ppc64-diag-2.6.4.tar.gz New: ppc64-diag-2.6.6.tar.gz ppc64-diag.add_ncurses_include_path.patch Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.mdHC8e/_old 2014-06-18 07:52:37.0 +0200 +++ /var/tmp/diff_new_pack.mdHC8e/_new 2014-06-18 07:52:37.0 +0200 @@ -18,7 +18,7 @@ Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag -Version:2.6.4 +Version:2.6.6 Release:0 Summary:Linux for Power Platform Diagnostics License:EPL-1.0 @@ -47,7 +47,7 @@ PreReq: %insserv_prereq PreReq: aaa_base BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/%{version}/%{name}-%{version}.tar.gz +Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/v%{version}/%{name}-%{version}.tar.gz Source1:rtas_errd.service Source2:opal_errd.service #PATCH-FIX-OPENSUSE - ppc64-diag.rtas_errd.patch - fix rtas_errd initscript to comply with openSUSE standards @@ -56,6 +56,7 @@ Patch2: %{name}.varunused.patch #PATCH-FIX-OPENSUSE - ppc64-diag.opal_errd.patch - fix opal_errd initscript to comply with openSUSE standards Patch3: %{name}.opal_errd.patch +Patch4: ppc64-diag.add_ncurses_include_path.patch %description This package contains various diagnostic tools for PowerLinux. @@ -77,6 +78,7 @@ %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build make @@ -166,6 +168,12 @@ %insserv_cleanup opal_errd %endif +%pre +%if 0%{?has_systemd} + %service_add_pre rtas_errd.service + %service_add_pre opal_errd.service +%endif + %else %post @@ -219,6 +227,18 @@ rcopal_errd restart %endif fi + +%postun +%if 0%{?has_systemd} + %service_del_postun rtas_errd.service + %service_del_postun opal_errd.service +%endif + +%pre +%if 0%{?has_systemd} + %service_add_pre rtas_errd.service + %service_add_pre opal_errd.service +%endif %endif %changelog ++ ppc64-diag-2.6.4.tar.gz - ppc64-diag-2.6.6.tar.gz ++ 5213 lines of diff (skipped) ++ ppc64-diag.add_ncurses_include_path.patch ++ Index: ppc64-diag-2.6.6/rules.mk === --- ppc64-diag-2.6.6.orig/rules.mk +++ ppc64-diag-2.6.6/rules.mk @@ -93,6 +93,9 @@ CFLAGS += -g -DDEBUG # Build with common directory included CFLAGS += -I $(ROOT_DIR)/$(COM_DIR) +# Build with ncurses directory included +CFLAGS += -I $(INC_DIR)/ncurses + # Build with version string AM_CFLAGS = -DVERSION='$(VERSION)' -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2014-04-04 16:41:27 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2014-03-11 17:28:24.0 +0100 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2014-04-04 16:41:28.0 +0200 @@ -1,0 +2,17 @@ +Fri Mar 28 11:41:49 UTC 2014 - jloe...@suse.com + +- remove ppc64.stop_service.patch (already fixed by + ppc64.opal_errd.patch) + +--- +Tue Mar 25 13:28:10 UTC 2014 - jloe...@suse.com + +- version update to 2.6.4 (BNC#869845) + new opal error daemon added + No upstream changelog provided +- add opal_errd.service file +- add ppc64-diag.opal_errd.patch: fix opal_errd init script +- fix rtas_errd init script: $pid to correct pid file + (init scripts might be obsolete due to systemd) + +--- Old: ppc64-diag-2.6.3.tar.gz New: opal_errd.service ppc64-diag-2.6.4.tar.gz ppc64-diag.opal_errd.patch Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.hicJth/_old 2014-04-04 16:41:29.0 +0200 +++ /var/tmp/diff_new_pack.hicJth/_new 2014-04-04 16:41:29.0 +0200 @@ -18,14 +18,14 @@ Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag -Version:2.6.3 +Version:2.6.4 Release:0 Summary:Linux for Power Platform Diagnostics License:EPL-1.0 Group: System/Monitoring ExclusiveArch: ppc ppc64 ppc64le %if 0%{?suse_version} = 1210 -BuildRequires: systemd +BuildRequires: systemd-rpm-macros %{?systemd_requires} %define has_systemd 1 %endif @@ -49,10 +49,13 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/%{version}/%{name}-%{version}.tar.gz Source1:rtas_errd.service +Source2:opal_errd.service #PATCH-FIX-OPENSUSE - ppc64-diag.rtas_errd.patch - fix rtas_errd initscript to comply with openSUSE standards Patch1: %{name}.rtas_errd.patch #PATCH-FIX-OPENSUSE - ppc64-diag.varunused.patch - fix unused variables Patch2: %{name}.varunused.patch +#PATCH-FIX-OPENSUSE - ppc64-diag.opal_errd.patch - fix opal_errd initscript to comply with openSUSE standards +Patch3: %{name}.opal_errd.patch %description This package contains various diagnostic tools for PowerLinux. @@ -73,6 +76,7 @@ %setup -q %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build make @@ -81,13 +85,20 @@ make install DESTDIR=$RPM_BUILD_ROOT chmod 644 $RPM_BUILD_ROOT/etc/ppc64-diag/servevent_parse.pl mkdir $RPM_BUILD_ROOT/etc/ppc64-diag/ses_pages -pushd $RPM_BUILD_ROOT/etc/init.d -ln -s rtas_errd $RPM_BUILD_ROOT/usr/sbin/rcrtas_errd -popd ln -sf /usr/sbin/usysattn $RPM_BUILD_ROOT/usr/sbin/usysfault %if 0%{?has_systemd} -mkdir -p $RPM_BUILD_ROOT/%{_unitdir} -install -D -m0644 %{S:1} %{buildroot}%{_unitdir}/ + rm $RPM_BUILD_ROOT/etc/init.d/rtas_errd + rm $RPM_BUILD_ROOT/etc/init.d/opal_errd + mkdir -p $RPM_BUILD_ROOT/%{_unitdir} + install -D -m0644 %{S:1} %{buildroot}%{_unitdir}/ + install -D -m0644 %{S:2} %{buildroot}%{_unitdir}/ + ln -s /sbin/service %{buildroot}/usr/sbin/rcrtas_errd + ln -s /sbin/service %{buildroot}/usr/sbin/rcopal_errd +%else + pushd $RPM_BUILD_ROOT/etc/init.d + ln -s rtas_errd $RPM_BUILD_ROOT/usr/sbin/rcrtas_errd + ln -s opal_errd $RPM_BUILD_ROOT/usr/sbin/rcopal_errd + popd %endif %files @@ -97,7 +108,6 @@ %dir /etc/ppc64-diag %config /etc/ppc64-diag/* %config /etc/rc.powerfail -%config %attr(755,root,root) /etc/init.d/rtas_errd %{_mandir}/man8/explain_syslog.8.gz %{_mandir}/man8/syslog_to_svclog.8.gz %{_mandir}/man8/diag_encl.8.gz @@ -108,7 +118,11 @@ %{_mandir}/man8/usysident.8.gz %if 0%{?has_systemd} -%{_unitdir}/rtas_errd.service + %{_unitdir}/rtas_errd.service + %{_unitdir}/opal_errd.service +%else + %config %attr(755,root,root) /etc/init.d/rtas_errd + %config %attr(755,root,root) /etc/init.d/opal_errd %endif %if 1 @@ -119,9 +133,12 @@ if test $(stat -Lc '%%D-%%i' /) = $(stat -Lc '%%D-%%i' /proc/1/root); then %if 0%{?has_systemd} %service_add_post rtas_errd.service + %service_add_post opal_errd.service %else %{insserv_force_if_yast rtas_errd} + %{insserv_force_if_yast opal_errd} rcrtas_errd start || : + rcopal_errd start || : %endif fi fi @@ -132,16 +149,21 @@ fi %if 0%{?has_systemd}
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2014-03-11 17:28:23 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2014-01-30 12:52:25.0 +0100 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2014-03-11 17:28:24.0 +0100 @@ -1,0 +2,6 @@ +Mon Mar 10 12:41:50 UTC 2014 - jloe...@suse.com + +- version update to 2.6.3 (BNC#867346, FATE#315459) + No upstream changelog provided + +--- Old: ppc64-diag-2.6.2.tar.gz New: ppc64-diag-2.6.3.tar.gz Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.TK6wPo/_old 2014-03-11 17:28:25.0 +0100 +++ /var/tmp/diff_new_pack.TK6wPo/_new 2014-03-11 17:28:25.0 +0100 @@ -18,7 +18,7 @@ Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag -Version:2.6.2 +Version:2.6.3 Release:0 Summary:Linux for Power Platform Diagnostics License:EPL-1.0 ++ ppc64-diag-2.6.2.tar.gz - ppc64-diag-2.6.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ppc64-diag-2.6.2/common/platform.c new/ppc64-diag-2.6.3/common/platform.c --- old/ppc64-diag-2.6.2/common/platform.c 1970-01-01 01:00:00.0 +0100 +++ new/ppc64-diag-2.6.3/common/platform.c 2014-03-07 10:15:01.0 +0100 @@ -0,0 +1,51 @@ +/** + * @fileplatform.c + * + * Copyright (C) 2014 IBM Corporation + * See 'COPYRIGHT' for License of this code + * + * @author Aruna Balakrishnaiah ar...@linux.vnet.ibm.com + */ + +#include stdio.h +#include string.h + +#include platform.h + +#define LENGTH 512 + +const char *__platform_name[] = { +Unknown, +PowerKVM Host, +PowerKVM pSeries Guest, +PowerVM pSeries LPAR, + /* Add new platforms name here */ +}; + +int +get_platform(void) +{ + int rc = PLATFORM_UNKNOWN; + FILE *fp; + char line[LENGTH]; + + if((fp = fopen(PLATFORM_FILE, r)) == NULL) + return rc; + + while (fgets(line, LENGTH, fp)) { + if (strstr(line, PowerNV)) { + rc = PLATFORM_POWERKVM; + break; + } else if (strstr(line, pSeries (emulated by qemu))) { + rc = PLATFORM_POWERKVM_GUEST; + break; + } else if (strstr(line, pSeries)) { + rc = PLATFORM_PSERIES_LPAR; + /* catch model for PowerNV guest */ + continue; + } + } + + fclose(fp); + return rc; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ppc64-diag-2.6.2/common/platform.h new/ppc64-diag-2.6.3/common/platform.h --- old/ppc64-diag-2.6.2/common/platform.h 1970-01-01 01:00:00.0 +0100 +++ new/ppc64-diag-2.6.3/common/platform.h 2014-03-07 10:15:01.0 +0100 @@ -0,0 +1,31 @@ +/** + * Copyright (C) 2014 IBM Corporation + * See 'COPYRIGHT' for License of this code. + */ + +#ifndef PLATFORM_H +#define PLARFORM_H + +#define PLATFORM_FILE /proc/cpuinfo + +enum { + PLATFORM_UNKNOWN = 0, + PLATFORM_POWERKVM, + PLATFORM_POWERKVM_GUEST, + PLATFORM_PSERIES_LPAR, + /* Add new platforms here */ + PLATFORM_MAX, +}; + +extern const char *__platform_name[]; + +extern int get_platform(void); + +static inline const char * __power_platform_name(int platform) +{ + if (platform PLATFORM_UNKNOWN platform PLATFORM_MAX) + return __platform_name[platform]; + + return __platform_name[PLATFORM_UNKNOWN]; +} +#endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ppc64-diag-2.6.2/diags/diag_encl.c new/ppc64-diag-2.6.3/diags/diag_encl.c --- old/ppc64-diag-2.6.2/diags/diag_encl.c 2013-08-20 13:21:13.0 +0200 +++ new/ppc64-diag-2.6.3/diags/diag_encl.c 2014-03-07 10:15:01.0 +0100 @@ -19,6 +19,7 @@ #include encl_util.h #include diag_encl.h +#include platform.c static struct option long_options[] = { {cmp_prev,no_argument,NULL, 'c'}, @@ -488,11 +489,19 @@ main(int argc, char *argv[]) { int failure = 0, option_index, rc; + int platform = 0; char path[128]; DIR *edir, *sdir; struct dirent *sdirent, *edirent; struct
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2014-01-30 12:52:25 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2013-12-11 15:43:52.0 +0100 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2014-01-30 12:52:25.0 +0100 @@ -1,0 +2,13 @@ +Fri Jan 17 10:47:35 UTC 2014 - dvla...@suse.com + +- drop ppc64-diag.unistd.patch + +--- +Fri Jan 10 17:44:52 UTC 2014 - jloe...@suse.com + +- version update to 2.6.2 (FATE#315459) + - Minor bug fix in diag_encl and encl_led + +- drop ppc64-diag.makefile.patch + +--- Old: ppc64-diag-2.6.1.tar.gz ppc64-diag.makefile.patch ppc64-diag.unistd.patch New: ppc64-diag-2.6.2.tar.gz Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.2UALsm/_old 2014-01-30 12:52:26.0 +0100 +++ /var/tmp/diff_new_pack.2UALsm/_new 2014-01-30 12:52:26.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package ppc64-diag # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag -Version:2.6.1 +Version:2.6.2 Release:0 Summary:Linux for Power Platform Diagnostics License:EPL-1.0 @@ -49,8 +49,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/%{version}/%{name}-%{version}.tar.gz Source1:rtas_errd.service -Patch0: %{name}.makefile.patch +#PATCH-FIX-OPENSUSE - ppc64-diag.rtas_errd.patch - fix rtas_errd initscript to comply with openSUSE standards Patch1: %{name}.rtas_errd.patch +#PATCH-FIX-OPENSUSE - ppc64-diag.varunused.patch - fix unused variables Patch2: %{name}.varunused.patch %description @@ -70,7 +71,6 @@ %prep %setup -q -%patch0 %patch1 -p1 %patch2 -p1 ++ ppc64-diag-2.6.1.tar.gz - ppc64-diag-2.6.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ppc64-diag-2.6.1/diags/diag_encl.c new/ppc64-diag-2.6.2/diags/diag_encl.c --- old/ppc64-diag-2.6.1/diags/diag_encl.c 2013-02-08 10:06:13.0 +0100 +++ new/ppc64-diag-2.6.2/diags/diag_encl.c 2013-08-20 13:21:13.0 +0200 @@ -10,6 +10,7 @@ #include time.h #include getopt.h #include errno.h +#include dirent.h #include sys/wait.h #include scsi/scsi.h #include scsi/scsi_ioctl.h @@ -391,6 +392,11 @@ struct dev_vpd *vpd = NULL; struct dev_vpd *v; + /* Validate sg device */ + rc = valid_enclosure_device(sg); + if (rc) + return -1; + printf(DIAGNOSING %s\n, sg); vpd = (struct dev_vpd *)malloc(sizeof(struct dev_vpd)); @@ -468,8 +474,8 @@ *diagnosed = vpd; } else { free(vpd); - fprintf(stderr, Unable to diagnose devices of machine - type/model %s\n\n, vpd-mtm); + fprintf(stderr, \tUnable to diagnose devices of machine + type/model: %s\n\n, vpd-mtm); } return rc; @@ -482,8 +488,9 @@ main(int argc, char *argv[]) { int failure = 0, option_index, rc; - char buf[128], *sg; - FILE *fp; + char path[128]; + DIR *edir, *sdir; + struct dirent *sdirent, *edirent; struct dev_vpd *diagnosed = NULL; memset(cmd_opts, 0, sizeof(cmd_opts)); @@ -569,21 +576,38 @@ failure += diagnose(argv[optind++], diagnosed); } else { - /* use lsvpd to find all sg devices */ - fp = popen(lsvpd | grep sg, r); - if (fp == NULL) { - fprintf(stderr, Could not obtain a list of sg devices. -Ensure that lsvpd is installed.\n); + edir = opendir(SCSI_SES_PATH); + if (!edir) { + fprintf(stderr, + System does not have SCSI enclsoure(s).\n); return -1; } - while
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2013-12-11 15:43:51 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2013-02-25 20:40:36.0 +0100 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2013-12-11 15:43:52.0 +0100 @@ -1,0 +2,5 @@ +Tue Dec 10 19:27:30 UTC 2013 - dval...@suse.com + +- enable ppc64le + +--- Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.eNh0jZ/_old 2013-12-11 15:43:52.0 +0100 +++ /var/tmp/diff_new_pack.eNh0jZ/_new 2013-12-11 15:43:52.0 +0100 @@ -23,7 +23,7 @@ Summary:Linux for Power Platform Diagnostics License:EPL-1.0 Group: System/Monitoring -ExclusiveArch: ppc ppc64 +ExclusiveArch: ppc ppc64 ppc64le %if 0%{?suse_version} = 1210 BuildRequires: systemd %{?systemd_requires} -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2013-02-25 20:40:35 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag, Maintainer is jloe...@suse.com Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2012-12-21 14:56:04.0 +0100 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2013-02-25 20:40:36.0 +0100 @@ -1,0 +2,8 @@ +Sun Feb 24 16:46:41 UTC 2013 - dval...@suse.com + +- Update to 2.6.1: + * Add Handler to handle PRRN RTAS notification + * Drop upstreamed ppc64-diag.unistd.patch + * Update package desription + +--- Old: ppc64-diag-2.6.0.tar.gz New: ppc64-diag-2.6.1.tar.gz Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.cXiJ8u/_old 2013-02-25 20:40:38.0 +0100 +++ /var/tmp/diff_new_pack.cXiJ8u/_new 2013-02-25 20:40:38.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package ppc64-diag # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag -Version:2.6.0 +Version:2.6.1 Release:0 Summary:Linux for Power Platform Diagnostics License:EPL-1.0 @@ -52,17 +52,16 @@ Patch0: %{name}.makefile.patch Patch1: %{name}.rtas_errd.patch Patch2: %{name}.varunused.patch -Patch3: %{name}.unistd.patch %description -Platform diagnostics for Linux for Power writes events reported by the -System p or System i platform firmware to the servicelog, provides -automated reponses to urgent events such as environmental conditions -and predictive failures, and provides notifications of the event to -system administrators or connected service frameworks. Some error log -analysis parameters can be configured in -/etc/ppc64-diag/ppc64-diag.config. - +This package contains various diagnostic tools for PowerLinux. +These tools captures the diagnostic events from Power Systems +platform firmware, SES enclosures and device drivers, and +write events to servicelog database. It also provides automated +responses to urgent events such as environmental conditions and +predictive failures, if appropriate modifies the FRUs fault +indicator(s) and provides event notification to system +administrators or connected service frameworks. Authors: @@ -74,7 +73,6 @@ %patch0 %patch1 -p1 %patch2 -p1 -%patch3 -p1 %build make ++ ppc64-diag-2.6.0.tar.gz - ppc64-diag-2.6.1.tar.gz ++ 2527 lines of diff (skipped) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2012-12-21 14:56:02 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag, Maintainer is jloe...@suse.com Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2012-12-17 09:37:08.0 +0100 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2012-12-21 14:56:04.0 +0100 @@ -1,0 +2,15 @@ +Wed Dec 19 11:54:00 UTC 2012 - dval...@suse.com + +- update to 2.6.0: + * Added Light Path Diagnostics code. (moved from powerpc-utils) + * Introduced new options to diag_encl command (Jim). + * Added bluehawk enclosure diagnostics support (Jim). + * Introduced new command encl_led to modify identify/fault + indicators for SCSI enclosures (Jim). + +- update ppc64-diag.rtas_errd.patch to not have references to + /var/lock/subsys + +- add ncurses-devel and libvpd2-devel to BuildRequires + +--- Old: ppc64-diag-2.5.0.tar.gz New: ppc64-diag-2.6.0.tar.gz Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.JzKniG/_old 2012-12-21 14:56:06.0 +0100 +++ /var/tmp/diff_new_pack.JzKniG/_new 2012-12-21 14:56:06.0 +0100 @@ -18,7 +18,7 @@ Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag -Version:2.5.0 +Version:2.6.0 Release:0 Summary:Linux for Power Platform Diagnostics License:EPL-1.0 @@ -35,8 +35,11 @@ BuildRequires: librtas-devel BuildRequires: libservicelog-devel BuildRequires: libvpd2-devel +BuildRequires: libvpd2-devel +BuildRequires: ncurses-devel BuildRequires: sqlite3-devel Requires: lsvpd +Requires: powerpc-utils = 1.2.15 Requires: servicelog # autoselect the package on systems which have the /vdevice/IBM,sp node # All pSeries POWER5 and later have this property @@ -79,9 +82,11 @@ %install make install DESTDIR=$RPM_BUILD_ROOT chmod 644 $RPM_BUILD_ROOT/etc/ppc64-diag/servevent_parse.pl +mkdir $RPM_BUILD_ROOT/etc/ppc64-diag/ses_pages pushd $RPM_BUILD_ROOT/etc/init.d ln -s rtas_errd $RPM_BUILD_ROOT/usr/sbin/rcrtas_errd popd +ln -sf /usr/sbin/usysattn $RPM_BUILD_ROOT/usr/sbin/usysfault %if 0%{?has_systemd} mkdir -p $RPM_BUILD_ROOT/%{_unitdir} install -D -m0644 %{S:1} %{buildroot}%{_unitdir}/ @@ -99,6 +104,11 @@ %{_mandir}/man8/syslog_to_svclog.8.gz %{_mandir}/man8/diag_encl.8.gz %{_mandir}/man8/encl_led.8.gz +%{_mandir}/man8/lp_diag.8.gz +%{_mandir}/man8/usysattn.8.gz +%{_mandir}/man8/usysfault.8.gz +%{_mandir}/man8/usysident.8.gz + %if 0%{?has_systemd} %{_unitdir}/rtas_errd.service %endif @@ -133,7 +143,7 @@ %service_del_postun rtas_errd.service %else %restart_on_update rtas_errd - %{insserv_cleanup} + %insserv_cleanup rtas_errd %endif %else @@ -141,6 +151,7 @@ %post # Post-install script -- /etc/ppc64-diag/ppc64_diag_setup --register /dev/null +/etc/ppc64-diag/lp_diag_setup --register /dev/null if [ $1 = 1 ]; then # first install %if 0%{?has_systemd} %service_add_post rtas_errd.service @@ -166,6 +177,7 @@ chkconfig --del rtas_errd %endif /etc/ppc64-diag/ppc64_diag_setup --unregister /dev/null +/etc/ppc64-diag/lp_diag_setup --unregister /dev/null fi %triggerin -- librtas ++ ppc64-diag-2.5.0.tar.gz - ppc64-diag-2.6.0.tar.gz ++ 4932 lines of diff (skipped) ++ ppc64-diag.rtas_errd.patch ++ --- /var/tmp/diff_new_pack.JzKniG/_old 2012-12-21 14:56:06.0 +0100 +++ /var/tmp/diff_new_pack.JzKniG/_new 2012-12-21 14:56:06.0 +0100 @@ -2,10 +2,10 @@ scripts/rtas_errd |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) -Index: ppc64-diag-2.5.0/scripts/rtas_errd +Index: ppc64-diag-2.6.0/scripts/rtas_errd === ppc64-diag-2.5.0.orig/scripts/rtas_errd -+++ ppc64-diag-2.5.0/scripts/rtas_errd +--- ppc64-diag-2.6.0.orig/scripts/rtas_errd ppc64-diag-2.6.0/scripts/rtas_errd @@ -19,8 +19,10 @@ ### BEGIN INIT INFO @@ -19,3 +19,23 @@ # Default-Start: 2 3 5 # Default-Stop: 0 1 4 6 # Short-Description: Daemon to retrieve platform errors +@@ -57,7 +59,7 @@ case $1 in + pid=`pidof rtas_errd` + if [[ -n $pid ]]; then + echo $pid /var/run/rtas_errd.pid +- touch /var/lock/subsys/rtas_errd ++ touch /var/run/rcrtas_errd + fi + echo + fi +@@ -70,8 +72,8 @@
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2012-12-17 09:37:06 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag, Maintainer is jloe...@suse.com Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2012-06-15 14:05:15.0 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2012-12-17 09:37:08.0 +0100 @@ -1,0 +2,7 @@ +Thu Dec 6 17:30:26 UTC 2012 - dval...@suse.com + +- update to 2.5.0 + No upstream changelog provided +- add systemd service for rtas_errd + +--- Old: ppc64-diag-2.4.3.tar.gz New: ppc64-diag-2.5.0.tar.gz rtas_errd.service Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.RN5lfW/_old 2012-12-17 09:37:10.0 +0100 +++ /var/tmp/diff_new_pack.RN5lfW/_new 2012-12-17 09:37:10.0 +0100 @@ -1,7 +1,7 @@ # -# spec file for package ppc64-diag (Version 2.3.1) +# spec file for package ppc64-diag # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,16 +18,26 @@ Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag -Version:2.4.3 -Release:1 +Version:2.5.0 +Release:0 Summary:Linux for Power Platform Diagnostics -Group: System/Monitoring License:EPL-1.0 +Group: System/Monitoring ExclusiveArch: ppc ppc64 -BuildRequires: librtas-devel libservicelog-devel -BuildRequires: sqlite3-devel gcc-c++ bison flex libvpd2-devel -Requires: servicelog +%if 0%{?suse_version} = 1210 +BuildRequires: systemd +%{?systemd_requires} +%define has_systemd 1 +%endif +BuildRequires: bison +BuildRequires: flex +BuildRequires: gcc-c++ +BuildRequires: librtas-devel +BuildRequires: libservicelog-devel +BuildRequires: libvpd2-devel +BuildRequires: sqlite3-devel Requires: lsvpd +Requires: servicelog # autoselect the package on systems which have the /vdevice/IBM,sp node # All pSeries POWER5 and later have this property Supplements:modalias(vio:TIBM*spS*) @@ -35,6 +45,7 @@ PreReq: aaa_base BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/%{version}/%{name}-%{version}.tar.gz +Source1:rtas_errd.service Patch0:%{name}.makefile.patch Patch1: %{name}.rtas_errd.patch Patch2: %{name}.varunused.patch @@ -71,6 +82,10 @@ pushd $RPM_BUILD_ROOT/etc/init.d ln -s rtas_errd $RPM_BUILD_ROOT/usr/sbin/rcrtas_errd popd +%if 0%{?has_systemd} +mkdir -p $RPM_BUILD_ROOT/%{_unitdir} +install -D -m0644 %{S:1} %{buildroot}%{_unitdir}/ +%endif %files %defattr (-,root,root,-) @@ -82,51 +97,85 @@ %config %attr(755,root,root) /etc/init.d/rtas_errd %{_mandir}/man8/explain_syslog.8.gz %{_mandir}/man8/syslog_to_svclog.8.gz +%{_mandir}/man8/diag_encl.8.gz +%{_mandir}/man8/encl_led.8.gz +%if 0%{?has_systemd} +%{_unitdir}/rtas_errd.service +%endif %if 1 %post -%{insserv_force_if_yast rtas_errd} # get it going if outside a chroot if test -f /proc/1/exe -a -d /proc/1/root; then if test $(stat -Lc '%%D-%%i' /) = $(stat -Lc '%%D-%%i' /proc/1/root); then -/etc/init.d/rtas_errd start || : +%if 0%{?has_systemd} + %service_add_post rtas_errd.service +%else + %{insserv_force_if_yast rtas_errd} + rcrtas_errd start || : +%endif fi fi %preun if test $1 = 0 ; then - rmdir -v /var/cache/ppc64-diag.registered || : + test -f /var/cache/ppc64-diag.registered rmdir -v /var/cache/ppc64-diag.registered || : fi -%stop_on_removal rtas_errd +%if 0%{?has_systemd} + %service_del_preun rtas_errd.service +%else + %stop_on_removal rtas_errd +%endif %postun -%restart_on_update rtas_errd -%{insserv_cleanup} +%if 0%{?has_systemd} + %service_del_postun rtas_errd.service +%else + %restart_on_update rtas_errd + %{insserv_cleanup} +%endif + %else %post # Post-install script -- /etc/ppc64-diag/ppc64_diag_setup --register /dev/null if [ $1 = 1 ]; then # first install -/sbin/chkconfig --add rtas_errd -/etc/init.d/rtas_errd start +%if 0%{?has_systemd} + %service_add_post rtas_errd.service +%else + chkconfig --add rtas_errd + rcrtas_errd start +
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2012-06-15 14:05:13 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag, Maintainer is jloe...@suse.com Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2012-05-03 10:59:53.0 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2012-06-15 14:05:15.0 +0200 @@ -1,0 +2,6 @@ +Thu Jun 14 10:10:28 UTC 2012 - cfarr...@suse.com + +- license update: EPL-1.0 + SPDX format (http://www.spdx.org/licenses) + +--- Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.ykHlw0/_old 2012-06-15 14:05:17.0 +0200 +++ /var/tmp/diff_new_pack.ykHlw0/_new 2012-06-15 14:05:17.0 +0200 @@ -22,7 +22,7 @@ Release:1 Summary:Linux for Power Platform Diagnostics Group: System/Monitoring -License:Other uncritical OpenSource License; Eclipse Public License v1.0 +License:EPL-1.0 ExclusiveArch: ppc ppc64 BuildRequires: librtas-devel libservicelog-devel BuildRequires: sqlite3-devel gcc-c++ bison flex libvpd2-devel -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2012-05-03 10:59:52 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag, Maintainer is jloe...@suse.com Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2011-11-07 14:29:28.0 +0100 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2012-05-03 10:59:53.0 +0200 @@ -1,0 +2,10 @@ +Tue Apr 24 12:13:09 UTC 2012 - dval...@suse.com + +- Change upstream Url +- fix build with gcc 4.7 +- update to 2.4.3 + - Added message catalogs for the ipr, ixgb, lpfc, and qla2xxx +drivers + - Removed obsolete ppc64_diag_servagent script + +--- Old: ppc64-diag-2.4.2.tar.bz2 New: ppc64-diag-2.4.3.tar.gz ppc64-diag.unistd.patch ppc64-diag.varunused.patch Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.nRCZv0/_old 2012-05-03 10:59:54.0 +0200 +++ /var/tmp/diff_new_pack.nRCZv0/_new 2012-05-03 10:59:54.0 +0200 @@ -16,10 +16,9 @@ # -Url:http://linux-diag.sourceforge.net/ppc64-diag/ - +Url:http://sourceforge.net/projects/linux-diag/files/ppc64-diag Name: ppc64-diag -Version:2.4.2 +Version:2.4.3 Release:1 Summary:Linux for Power Platform Diagnostics Group: System/Monitoring @@ -35,9 +34,11 @@ PreReq: %insserv_prereq PreReq: aaa_base BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0:%{name}-%{version}.tar.bz2 -Patch0:ppc64-diag.makefile.patch -Patch1: ppc64-diag.rtas_errd.patch +Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/%{version}/%{name}-%{version}.tar.gz +Patch0:%{name}.makefile.patch +Patch1: %{name}.rtas_errd.patch +Patch2: %{name}.varunused.patch +Patch3: %{name}.unistd.patch %description Platform diagnostics for Linux for Power writes events reported by the @@ -58,6 +59,8 @@ %setup -q %patch0 %patch1 -p1 +%patch2 -p1 +%patch3 -p1 %build make ++ ppc64-diag.unistd.patch ++ Index: ppc64-diag-2.4.3/ela/add_regex.cpp === --- ppc64-diag-2.4.3.orig/ela/add_regex.cpp +++ ppc64-diag-2.4.3/ela/add_regex.cpp @@ -1,6 +1,7 @@ using namespace std; #include stdlib.h +#include unistd.h #include iostream #include catalogs.h ++ ppc64-diag.varunused.patch ++ Index: ppc64-diag-2.4.3/diags/7031_D24_T24.c === --- ppc64-diag-2.4.3.orig/diags/7031_D24_T24.c +++ ppc64-diag-2.4.3/diags/7031_D24_T24.c @@ -64,7 +64,8 @@ get_enclosure_scsi_id(struct pearl_diag_ static int print_drive_status(uint32_t status) { - int fail = 0, printed = 0, rc = OK; + __attribute__((unused)) int fail = 0; +int printed = 0, rc = OK; if ((status 0x0F00) == 0x0500) { printf((empty) ); @@ -162,7 +163,8 @@ print_ps_fan_status(uint32_t status) static int print_repeater_status(uint32_t status) { - int printed = 0, fail = 0, rc = OK; + int printed = 0, rc = OK; + __attribute__((unused)) int fail = 0; if ((status 0x0F00) == 0x0100) printf(ok ); @@ -348,7 +350,8 @@ int diag_7031_D24_T24(int fd, struct dev_vpd *vpd, int se, int verbose) { struct pearl_diag_page2 dp; - int failure = 0, rc, encl_id; + int failure = 0, encl_id; + __attribute__((unused)) int rc; int buf_len = sizeof(dp); int ps1, ps2, fan1, fan2, fan3, rpt, vpd_card; Index: ppc64-diag-2.4.3/rtas_errd/ela.c === --- ppc64-diag-2.4.3.orig/rtas_errd/ela.c +++ ppc64-diag-2.4.3/rtas_errd/ela.c @@ -1787,7 +1787,7 @@ process_v1_epow(struct event *event, int int class; int ext_epow; int ext_epow_nofan; - int fan_num; + __attribute__((unused)) int fan_num; /* * The following EPOW error logs found in CHRP, Ver. 1 Index: ppc64-diag-2.4.3/rtas_errd/epow.c === --- ppc64-diag-2.4.3.orig/rtas_errd/epow.c +++ ppc64-diag-2.4.3/rtas_errd/epow.c @@ -48,7 +48,7 @@ static int time_remaining = 0; void epow_timer_handler(int sig, siginfo_t siginfo, void *context) { - int rc, state; + int __attribute__((unused)) rc, state; struct itimerval tv; if (time_remaining = 0) { @@ -149,7 +149,7
commit ppc64-diag for openSUSE:Factory
Hello community, here is the log from the commit of package ppc64-diag for openSUSE:Factory checked in at 2011-11-07 14:29:24 Comparing /work/SRC/openSUSE:Factory/ppc64-diag (Old) and /work/SRC/openSUSE:Factory/.ppc64-diag.new (New) Package is ppc64-diag, Maintainer is jloe...@suse.com Changes: --- /work/SRC/openSUSE:Factory/ppc64-diag/ppc64-diag.changes2011-09-23 12:41:48.0 +0200 +++ /work/SRC/openSUSE:Factory/.ppc64-diag.new/ppc64-diag.changes 2011-11-07 14:29:28.0 +0100 @@ -1,0 +2,19 @@ +Wed Nov 2 21:11:06 UTC 2011 - dval...@suse.com + +- update to 2.4.2 + - Minor modifications to GPFS catalog files +and syslog_to_svclog.cpp + - Added gpfs files to the catalog, updated ppc64-diag-setup +notification commands + - Changed Makefiles and rules.mk to build for the default +architecture rather than -m32 + - Added ELA code to the package, made changes to the rules.mk +and minor changes to the spec file + - Bug fix adding in support for -e and -l, so that root users can +be notified of serviceable events. Addresses bug #26192 + - Added SIGCHLD handler to clean up servicelog notification +scripts + - Removed all absolute path references, specifically +to /sbin/lsvpd and lsvpd + +--- Old: ppc64-diag-2.3.1.tar.bz2 ppc64-diag.event_severity.patch ppc64-diag.register.patch New: ppc64-diag-2.4.2.tar.bz2 ppc64-diag.makefile.patch Other differences: -- ++ ppc64-diag.spec ++ --- /var/tmp/diff_new_pack.GTiy3X/_old 2011-11-07 14:29:29.0 +0100 +++ /var/tmp/diff_new_pack.GTiy3X/_new 2011-11-07 14:29:29.0 +0100 @@ -19,26 +19,25 @@ Url:http://linux-diag.sourceforge.net/ppc64-diag/ Name: ppc64-diag -Version:2.3.1 -Release:8 +Version:2.4.2 +Release:1 Summary:Linux for Power Platform Diagnostics Group: System/Monitoring License:Other uncritical OpenSource License; Eclipse Public License v1.0 ExclusiveArch: ppc ppc64 -BuildRequires: librtas libservicelog-devel +BuildRequires: librtas-devel libservicelog-devel +BuildRequires: sqlite3-devel gcc-c++ bison flex libvpd2-devel Requires: servicelog Requires: lsvpd # autoselect the package on systems which have the /vdevice/IBM,sp node # All pSeries POWER5 and later have this property Supplements:modalias(vio:TIBM*spS*) PreReq: %insserv_prereq -PreReq: libservicelog PreReq: aaa_base BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0:ppc64-diag-2.3.1.tar.bz2 -Patch0: ppc64-diag.event_severity.patch +Source0:%{name}-%{version}.tar.bz2 +Patch0:ppc64-diag.makefile.patch Patch1: ppc64-diag.rtas_errd.patch -Patch2: ppc64-diag.register.patch %description Platform diagnostics for Linux for Power writes events reported by the @@ -57,9 +56,8 @@ %prep %setup -q -%patch0 -p1 +%patch0 %patch1 -p1 -%patch2 -p1 %build make @@ -67,15 +65,21 @@ %install make install DESTDIR=$RPM_BUILD_ROOT chmod 644 $RPM_BUILD_ROOT/etc/ppc64-diag/servevent_parse.pl +pushd $RPM_BUILD_ROOT/etc/init.d +ln -s rtas_errd $RPM_BUILD_ROOT/usr/sbin/rcrtas_errd +popd %files %defattr (-,root,root,-) -%doc COPYRIGHT +%doc %attr(644,root,root) COPYRIGHT /usr/sbin/* %dir /etc/ppc64-diag %config /etc/ppc64-diag/* %config /etc/rc.powerfail %config %attr(755,root,root) /etc/init.d/rtas_errd +%{_mandir}/man8/explain_syslog.8.gz +%{_mandir}/man8/syslog_to_svclog.8.gz + %if 1 %post ++ ppc64-diag-2.3.1.tar.bz2 - ppc64-diag-2.4.2.tar.bz2 ++ 7528 lines of diff (skipped) ++ ppc64-diag.makefile.patch ++ --- ela/Makefile.orig 2011-11-02 21:40:12.0 +0100 +++ ela/Makefile2011-11-02 21:40:26.0 +0100 @@ -75,7 +75,7 @@ @$(call install_files,$(CATALOG),744,$(DESTDIR)/etc/ppc64-diag/message_catalog) @$(call install_files,$(CATALOG_REGEX),744,$(DESTDIR)/etc/ppc64-diag/message_catalog/with_regex) @$(call install_man,$(MANPAGES),$(DESTDIR)) - $(INSTALL) -d -m 755 /var/log/ppc64-diag + $(INSTALL) -d -m 755 $(DESTDIR)/var/log/ppc64-diag clean: @rm -rf $(CMDS) *.o lex.*.c *.tab.c *.tab.h -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org