Hello community, here is the log from the commit of package powerpc-utils for openSUSE:Factory checked in at 2020-05-28 09:10:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/powerpc-utils (Old) and /work/SRC/openSUSE:Factory/.powerpc-utils.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "powerpc-utils" Thu May 28 09:10:37 2020 rev:102 rq:808819 version:1.3.7.1 Changes: -------- --- /work/SRC/openSUSE:Factory/powerpc-utils/powerpc-utils.changes 2020-04-23 18:29:31.115982243 +0200 +++ /work/SRC/openSUSE:Factory/.powerpc-utils.new.3606/powerpc-utils.changes 2020-05-28 09:11:23.460324830 +0200 @@ -1,0 +2,27 @@ +Mon May 25 12:27:30 UTC 2020 - Michal Suchanek <[email protected]> + +- Add patch metadata, refresh to upstream version where available. + * Refreshed 0001-powerpc-utils-Suppress-errors-reading-kernel-files.patch +- The above patch was modified to fix bsc#1164068. Add a separate patch for + that (bsc#1164068). + * Added Fix-ofpathname-Could-not-retrieve-logical-device-nam.patch +- Stop using /sbin/udevadm symlink (boo#1160890). + * Added ofpathname-Fix-udevadm-location.patch + +------------------------------------------------------------------- +Wed May 20 08:42:57 UTC 2020 - Josef Möllers <[email protected]> + +- Remove a trailing NUL ('\0') byte from a vendor_id contents. + [bsc#1171892, bsc1171892-get-rid-of-trainling-NUL.patch] + +------------------------------------------------------------------- +Wed May 20 07:59:35 UTC 2020 - Josef Möllers <[email protected]> + +- Reduce the number of searches of /sys by searching directly in + /sys/class/block. This patch obsoletes + 0002-Reduce-number-of-searches-of-sys-hierarchy.patch + [bsc#1164726, + 0002-Reduce-number-of-searches-of-sys-hierarchy.patch, + bsc1164726-search-only-part-of-sys.patch] + +------------------------------------------------------------------- Old: ---- 0002-Reduce-number-of-searches-of-sys-hierarchy.patch New: ---- Fix-ofpathname-Could-not-retrieve-logical-device-nam.patch bsc1164726-search-only-part-of-sys.patch bsc1171892-get-rid-of-trainling-NUL.patch ofpathname-Fix-udevadm-location.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ powerpc-utils.spec ++++++ --- /var/tmp/diff_new_pack.OV1cBc/_old 2020-05-28 09:11:25.288329247 +0200 +++ /var/tmp/diff_new_pack.OV1cBc/_new 2020-05-28 09:11:25.292329258 +0200 @@ -35,7 +35,10 @@ Patch5: Revert-lparstat-Show-available-physical-processors-i.patch Patch6: bug-1158312-parse-ibm-drc-info-property.patch Patch7: 0001-powerpc-utils-Suppress-errors-reading-kernel-files.patch -Patch8: 0002-Reduce-number-of-searches-of-sys-hierarchy.patch +Patch9: bsc1164726-search-only-part-of-sys.patch +Patch10: bsc1171892-get-rid-of-trainling-NUL.patch +Patch11: Fix-ofpathname-Could-not-retrieve-logical-device-nam.patch +Patch12: ofpathname-Fix-udevadm-location.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: librtas-devel @@ -70,7 +73,10 @@ %endif %patch6 -p1 %patch7 -p1 -%patch8 -p1 +%patch9 -p1 +%patch10 -p1 +%patch11 -p1 +%patch12 -p1 %build autoreconf -fvi ++++++ 0001-powerpc-utils-Suppress-errors-reading-kernel-files.patch ++++++ --- /var/tmp/diff_new_pack.OV1cBc/_old 2020-05-28 09:11:25.308329296 +0200 +++ /var/tmp/diff_new_pack.OV1cBc/_new 2020-05-28 09:11:25.312329306 +0200 @@ -3,6 +3,10 @@ Date: Fri, 26 Jul 2019 09:10:51 -0500 Subject: [PATCH] powerpc-utils: Suppress errors reading kernel files +References: bsc#1116561 ltc#165182 +Upstream: pending - expected 1.3.8 +Git-commit: 73839d6bab4da24350a60105b7b2c3a6cc7d3a15 + A problem was observed with the evaluation of the '${devspec} by the script 'ofpathname'. The problem occurred during installation to an nvme device as follows: @@ -34,10 +38,19 @@ scripts/ofpathname | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) -Index: powerpc-utils-1.3.7/scripts/bootlist -=================================================================== ---- powerpc-utils-1.3.7.orig/scripts/bootlist -+++ powerpc-utils-1.3.7/scripts/bootlist +diff --git a/scripts/bootlist b/scripts/bootlist +index acdaf8960ad0..1d1c210e69fc 100755 +--- a/scripts/bootlist ++++ b/scripts/bootlist +@@ -169,7 +169,7 @@ get_logical_device_name() + local devname=$1 + local logical_name + +- logical_name=`$OFPATHNAME -l $devname 2>/dev/null` ++ logical_name=`$OFPATHNAME -l $devname 2>/dev/null | tr -d '\000'` + if [[ $? -ne 0 ]]; then + echo "" + else @@ -207,11 +207,11 @@ show_bootlist() local devlist=$1 local i @@ -48,7 +61,7 @@ name=`get_logical_device_name $i` if [[ -z $name ]]; then - echo "Could not translate $i to logical device name" -+ echo "Could not translate $i to logical device name" >&2 ++ echo "Could not translate $i to logical device name" 2>&1 else case $name in eth*) parse_eth_info $name $i ;; @@ -57,14 +70,14 @@ . $PSERIES_PLATFORM if [[ $platform != $PLATFORM_PSERIES_LPAR ]]; then - echo "bootlist: is not supported on the $platform_name platform" -+ echo "bootlist: is not supported on the $platform_name platform" >&2 ++ echo "bootlist: is not supported on the $platform_name platform" 2>&1 exit 1 fi -Index: powerpc-utils-1.3.7/scripts/ofpathname -=================================================================== ---- powerpc-utils-1.3.7.orig/scripts/ofpathname -+++ powerpc-utils-1.3.7/scripts/ofpathname +diff --git a/scripts/ofpathname b/scripts/ofpathname +index dc452c4465ea..7c6345eeaca1 100755 +--- a/scripts/ofpathname ++++ b/scripts/ofpathname @@ -656,7 +656,7 @@ l2of_nvme() goto_dir $PWD "device/devspec" @@ -83,3 +96,6 @@ if [[ -z $devtype ]]; then err $ERR_NO_OFPATH fi +-- +2.26.2 + ++++++ Fix-ofpathname-Could-not-retrieve-logical-device-nam.patch ++++++ >From e77d74c81ec01abf14c2da96d22314e3088b50d1 Mon Sep 17 00:00:00 2001 From: Michal Suchanek <[email protected]> Date: Mon, 25 May 2020 15:18:12 +0200 Subject: [PATCH] Fix ofpathname: Could not retrieve logical device name for Open Firmware path Upstream: submitted https://github.com/ibm-power-utilities/powerpc-utils/pull/40 References: bsc#1164068 With commit 73839d6bab4d ("powerpc-utils: Suppress errors reading kernel files") the return status of tr rather than ofpathname is tested. Fixes: 73839d6bab4d ("powerpc-utils: Suppress errors reading kernel files") Signed-off-by: Michal Suchanek <[email protected]> --- scripts/bootlist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bootlist b/scripts/bootlist index 1d1c210e69fc..adae778c712f 100755 --- a/scripts/bootlist +++ b/scripts/bootlist @@ -169,11 +169,11 @@ get_logical_device_name() local devname=$1 local logical_name - logical_name=`$OFPATHNAME -l $devname 2>/dev/null | tr -d '\000'` + logical_name=`$OFPATHNAME -l $devname 2>/dev/null` if [[ $? -ne 0 ]]; then echo "" else - echo $logical_name + echo $logical_name | tr -d '\000' fi } -- 2.26.2 ++++++ Revert-lparstat-Show-available-physical-processors-i.patch ++++++ --- /var/tmp/diff_new_pack.OV1cBc/_old 2020-05-28 09:11:25.328329344 +0200 +++ /var/tmp/diff_new_pack.OV1cBc/_new 2020-05-28 09:11:25.328329344 +0200 @@ -1,3 +1,6 @@ +References: bsc#1120474 +Upstream: no, SLE compatibility patch + Index: powerpc-utils-1.3.7/man/lparstat.8 =================================================================== --- powerpc-utils-1.3.7.orig/man/lparstat.8 ++++++ bsc1164726-search-only-part-of-sys.patch ++++++ >From c97fe35b5b6d767b88419fa2084a59e986ac3da0 Mon Sep 17 00:00:00 2001 From: Nathan Lynch <[email protected]> Date: Mon, 27 Apr 2020 20:48:04 -0500 Subject: [PATCH] ofpathname: speed up l2of_scsi() References: bsc#1164726 ltc#183674 Upstream: pending - expected 1.3.8 Git-commit: c97fe35b5b6d767b88419fa2084a59e986ac3da0 There is no need to search the entire /sys hierarchy for kernel device names like "sda". We know that if it is present it will be in /sys/class/block. In an environment with more than 800 scsi devices, this brings the execution time for a command like "lsdevinfo -F name -c -q parent=host1" from over 20 minutes to under two minutes. Signed-off-by: Nathan Lynch <[email protected]> Signed-off-by: Tyrel Datwyler <[email protected]> --- scripts/ofpathname | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ofpathname b/scripts/ofpathname index 7c6345eeaca1..bd61ee04bc14 100755 --- a/scripts/ofpathname +++ b/scripts/ofpathname @@ -773,7 +773,7 @@ l2of_scsi() local devtype # There may be many instances of DEVICE under /sys - for dir in `$FIND /sys -name $DEVICE`; do + for dir in `$FIND /sys/class/block -name $DEVICE`; do # Move up until we find one with a device link goto_dir $dir "device" 0 if [ $? -eq 0 ]; then -- 2.26.2 ++++++ bsc1171892-get-rid-of-trainling-NUL.patch ++++++ >From e3ab5276c51a2128d4816ac1ed75ca8262d99b3c Mon Sep 17 00:00:00 2001 From: "Michael W. Bringmann" <[email protected]> Date: Tue, 24 Mar 2020 15:36:01 -0700 Subject: [PATCH] lsdevinfo: Fix bash command substitution warning References: bsc#1171892 ltc#185700 Upstream: pending - expected 1.3.8 Git-commit: e3ab5276c51a2128d4816ac1ed75ca8262d99b3c This patch is to remove the warning, /usr/sbin/lsdevinfo: line 278: warning: command substitution: ignored null byte in input. observed in some shells. This warning appears to be a new feature in Bash-4.4. Signed-off-by: Michael W. Bringmann <[email protected]> Signed-off-by: Tyrel Datwyler <[email protected]> --- scripts/lsdevinfo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lsdevinfo b/scripts/lsdevinfo index 85019e9d9923..1d9597bc4bc9 100755 --- a/scripts/lsdevinfo +++ b/scripts/lsdevinfo @@ -275,7 +275,7 @@ for pci_dev in $($LS -d /proc/device-tree/pci* 2> /dev/null); do # get the physical location physloc=$(tr -d '\0' < $dev/ibm,loc-code) type="$($OD -t x2 $dev/vendor-id $dev/device-id | - $CUT -f3,5 -d ' ' -s --output-delimiter='')" + $CUT -f3,5 -d ' ' -s --output-delimiter='' | tr -d '\0')" uniquetype="adapter/pci/$type" class="adapter" subclass="pci" -- 2.26.2 ++++++ bug-1158312-parse-ibm-drc-info-property.patch ++++++ --- /var/tmp/diff_new_pack.OV1cBc/_old 2020-05-28 09:11:25.348329392 +0200 +++ /var/tmp/diff_new_pack.OV1cBc/_new 2020-05-28 09:11:25.348329392 +0200 @@ -3,6 +3,10 @@ Date: Wed, 2 Oct 2019 16:54:52 -0500 Subject: [PATCH] powerpc-utils/devtree: Parse 'ibm,drc-info' property +References: bsc#1158312 ltc#182676 FATE#326955 +Upstream: pending - expected 1.3.8 +Git-commit: b0586b5938e9d371e55671422b2f0a5d2cd10c54 + Parse new DRC Info: Define data structures to support parsing the new "ibm,drc-info" device tree property. Integrate the new property information into the existing search mechanisms of the @@ -15,7 +19,7 @@ 1 file changed, 194 insertions(+), 29 deletions(-) diff --git a/src/drmgr/common_ofdt.c b/src/drmgr/common_ofdt.c -index 8c9e224..c110bc0 100644 +index 8c9e224e6d98..c110bc023206 100644 --- a/src/drmgr/common_ofdt.c +++ b/src/drmgr/common_ofdt.c @@ -41,6 +41,16 @@ struct drc_prop_grp { @@ -272,3 +276,6 @@ return list; } +-- +2.26.2 + ++++++ libvirt-service-dep.patch ++++++ --- /var/tmp/diff_new_pack.OV1cBc/_old 2020-05-28 09:11:25.356329412 +0200 +++ /var/tmp/diff_new_pack.OV1cBc/_new 2020-05-28 09:11:25.356329412 +0200 @@ -1,3 +1,6 @@ +Upstream: TBD +References: lost in the mists of time + Index: powerpc-utils-1.3.4/systemd/smt_off.service.in =================================================================== --- powerpc-utils-1.3.4.orig/systemd/smt_off.service.in ++++++ ofpathname-Fix-udevadm-location.patch ++++++ >From bfdb5433fc9afc7c6ee4fdeaf849d2e059680c2d Mon Sep 17 00:00:00 2001 From: Michal Suchanek <[email protected]> Date: Mon, 25 May 2020 16:25:34 +0200 Subject: [PATCH] ofpathname: Fix udevadm location Upstream: submitted References: boo#1160890 The canonical location for udevadm is /usr/bin. Signed-off-by: Michal Suchanek <[email protected]> --- scripts/ofpathname | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ofpathname b/scripts/ofpathname index bd61ee04bc14..0fb00ade8167 100755 --- a/scripts/ofpathname +++ b/scripts/ofpathname @@ -349,7 +349,7 @@ is_pata_dev() local sysfs_dir local udev_path local udevinfo="/usr/bin/udevinfo" - local udevadm="/sbin/udevadm" + local udevadm="/usr/bin/udevadm" if [[ -a $udevadm ]]; then udev_path=`$udevadm info --query=path --name=$DEVNAME` -- 2.26.2 ++++++ ofpathname_powernv.patch ++++++ --- /var/tmp/diff_new_pack.OV1cBc/_old 2020-05-28 09:11:25.376329460 +0200 +++ /var/tmp/diff_new_pack.OV1cBc/_new 2020-05-28 09:11:25.376329460 +0200 @@ -1,3 +1,6 @@ +Upstream: TBD +Referebces: boo#933651 + Index: powerpc-utils-1.3.7/scripts/ofpathname =================================================================== --- powerpc-utils-1.3.7.orig/scripts/ofpathname ++++++ powerpc-utils-lsprop.patch ++++++ --- /var/tmp/diff_new_pack.OV1cBc/_old 2020-05-28 09:11:25.384329480 +0200 +++ /var/tmp/diff_new_pack.OV1cBc/_new 2020-05-28 09:11:25.384329480 +0200 @@ -1,3 +1,6 @@ +Upstream: TBD +References: lost in the mists of time + Index: powerpc-utils-1.3.4/src/lsprop.c =================================================================== --- powerpc-utils-1.3.4.orig/src/lsprop.c ++++++ systemd-dir.patch ++++++ --- /var/tmp/diff_new_pack.OV1cBc/_old 2020-05-28 09:11:25.396329509 +0200 +++ /var/tmp/diff_new_pack.OV1cBc/_new 2020-05-28 09:11:25.396329509 +0200 @@ -1,3 +1,6 @@ +Upstream: TBD +References: lost in the mists of time + Index: powerpc-utils-1.3.7/Makefile.am =================================================================== --- powerpc-utils-1.3.7.orig/Makefile.am
