rpms/s390utils/F-12 0018-fix-uppercase-conversion-in-lscss.patch, NONE, 1.1 device_cio_free, 1.3, 1.4 s390utils.spec, 1.19, 1.20

Dan Horák sharkcz at fedoraproject.org
Wed Jan 13 08:17:18 UTC 2010


Author: sharkcz

Update of /cvs/pkgs/rpms/s390utils/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12399

Modified Files:
	device_cio_free s390utils.spec 
Added Files:
	0018-fix-uppercase-conversion-in-lscss.patch 
Log Message:
* Wed Jan 13 2010 Dan Horák <dan[at]danny.cz> 2:1.8.2-9
- updated device_cio_free script (#533494)
- fixed uppercase conversion in lscss (#554768)


0018-fix-uppercase-conversion-in-lscss.patch:
 lscss |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

--- NEW FILE 0018-fix-uppercase-conversion-in-lscss.patch ---
>From a8bcc744ec941c3b34c22c7a7729b52a390c7a08 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan at danny.cz>
Date: Wed, 13 Jan 2010 08:39:09 +0100
Subject: [PATCH] fix uppercase conversion in lscss

Description: lscss: fix uppercase conversion
Symptom:     when invoking the -u option, lscss will fail with the message "tr: missing operand"
Problem:     the bash option "nullglob" interferes with the tr operands
Solution:    avoid expanding of those operands by placing quotes around them
---
 zconf/lscss |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/zconf/lscss b/zconf/lscss
index efdb9ca..fc40fe6 100755
--- a/zconf/lscss
+++ b/zconf/lscss
@@ -354,7 +354,7 @@ if [ $SCH_IO ] ;then
 	echo "----------------------------------------------------------------------"
     fi
     print_io | if [ $UPPERCASE ] ;then
-	tr [:lower:] [:upper:]
+	tr "[:lower:]" "[:upper:]"
     else
 	cat -
     fi
@@ -368,7 +368,7 @@ if [ $SCH_CHSC ] ;then
     echo "Device   Subchan."
     echo "-----------------"
     print_chsc | if [ $UPPERCASE ] ;then
-	tr [:lower:] [:upper:]
+	tr "[:lower:]" "[:upper:]"
     else
 	cat -
     fi
-- 
1.6.5.2



Index: device_cio_free
===================================================================
RCS file: /cvs/pkgs/rpms/s390utils/F-12/device_cio_free,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- device_cio_free	8 Jan 2010 11:14:15 -0000	1.3
+++ device_cio_free	13 Jan 2010 08:17:17 -0000	1.4
@@ -145,7 +145,9 @@ if [ $MODE = "dasd" ]; then
 	sed -e 's/.*[[:space:]]dasd=\([^[:space:]]*\).*/\1/' -e 's/([^)]*)//g' \
 	-e 's/nopav\|nofcx\|autodetect\|probeonly//g' -e 's/,,/,/g' -e 's/^,//' -e 's/,$//')
 
-    free_device $DEVICES
+    for DEVRANGE in $(echo $DEVICES | tr ',' ' '); do
+	free_device $DEVRANGE
+    done
 fi
 
 if [ $MODE = "znet" ]; then


Index: s390utils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/s390utils/F-12/s390utils.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -p -r1.19 -r1.20
--- s390utils.spec	8 Jan 2010 11:14:15 -0000	1.19
+++ s390utils.spec	13 Jan 2010 08:17:17 -0000	1.20
@@ -8,7 +8,7 @@ Name:           s390utils
 Summary:        Utilities and daemons for IBM System/z
 Group:          System Environment/Base
 Version:        1.8.2
-Release:        8%{?dist}
+Release:        9%{?dist}
 Epoch:          2
 License:        GPLv2 and GPLv2+ and CPL
 Buildroot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -50,6 +50,7 @@ Patch14:  0014-dasdview-fdasd-fix-floati
 Patch15:  0015-s390tools-1.8.2-zipl-dm.patch
 Patch16:  0016-s390tools-1.8.2-lsreipl-nss.patch
 Patch17:  0017-qualified-return-codes-and-further-error-handling-in.patch
+Patch18:  0018-fix-uppercase-converion-in-lscss.patch
 
 Patch100:       cmsfs-1.1.8-warnings.patch
 Patch101:       cmsfs-1.1.8-kernel26.patch
@@ -130,6 +131,9 @@ be used together with the zSeries (s390)
 # Add qualified return codes and further error handling in znetconf (#548487)
 %patch17 -p1 -b .znetconf-returncodes
 
+# Fixed uppercase conversion in lscss (#554768)
+%patch18 -p1 -b .uppercase
+
 #
 # cmsfs
 #
@@ -446,11 +450,9 @@ fi
 %doc README
 %doc LICENSE
 /sbin/zipl
-/sbin/dasd_cio_free
 /sbin/dasdfmt
 /sbin/dasdinfo
 /sbin/dasdview
-/sbin/device_cio_free
 /sbin/fdasd
 /sbin/chccwdev
 /sbin/chchp
@@ -472,9 +474,7 @@ fi
 /sbin/tape390_crypt
 /sbin/tunedasd
 /sbin/vmcp
-/sbin/zfcp_cio_free
 /sbin/zgetdump
-/sbin/znet_cio_free
 /sbin/znetconf
 /sbin/dbginfo.sh
 %{_sbindir}/lsreipl
@@ -488,8 +488,6 @@ fi
 %{_bindir}/vmconvert
 %{_initddir}/dumpconf
 %config(noreplace) %{_sysconfdir}/sysconfig/dumpconf
-%{_initddir}/cpi
-%config(noreplace) %{_sysconfdir}/sysconfig/cpi
 /lib/s390-tools
 %{_mandir}/man1/zfcpdbf.1*
 %{_mandir}/man4/prandom.4*
@@ -537,8 +535,14 @@ fi
 %config(noreplace) %{_sysconfdir}/udev/rules.d/60-readahead.rules
 %ghost %config(noreplace) %{_sysconfdir}/dasd.conf
 %ghost %config(noreplace) %{_sysconfdir}/zfcp.conf
+%{_initddir}/cpi
+%config(noreplace) %{_sysconfdir}/sysconfig/cpi
 /sbin/dasdconf.sh
 /sbin/zfcpconf.sh
+/sbin/dasd_cio_free
+/sbin/device_cio_free
+/sbin/zfcp_cio_free
+/sbin/znet_cio_free
 
 # src_vipa
 %{_bindir}/src_vipa.sh
@@ -826,6 +830,10 @@ User-space development files for the s39
 
 
 %changelog
+* Wed Jan 13 2010 Dan Horák <dan[at]danny.cz> 2:1.8.2-9
+- updated device_cio_free script (#533494)
+- fixed uppercase conversion in lscss (#554768)
+
 * Fri Jan  8 2010 Dan Horák <dan[at]danny.cz> 2:1.8.2-8
 - updated device_cio_free script (#533494)
 



More information about the scm-commits mailing list