rpms/redhat-lsb/devel redhat-lsb-lsb_start_daemon-fix.patch, NONE, 1.1 redhat-lsb.spec, 1.46, 1.47

Tom Callaway spot at fedoraproject.org
Wed Oct 21 15:46:23 UTC 2009


Author: spot

Update of /cvs/pkgs/rpms/redhat-lsb/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19891/devel

Modified Files:
	redhat-lsb.spec 
Added Files:
	redhat-lsb-lsb_start_daemon-fix.patch 
Log Message:
fix bz485367

redhat-lsb-lsb_start_daemon-fix.patch:
 lsb_start_daemon |   26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

--- NEW FILE redhat-lsb-lsb_start_daemon-fix.patch ---
diff -up redhat-lsb-3.1/lsb_start_daemon.orig redhat-lsb-3.1/lsb_start_daemon
--- redhat-lsb-3.1/lsb_start_daemon.orig	2009-05-15 11:20:17.000000000 -0400
+++ redhat-lsb-3.1/lsb_start_daemon	2009-05-15 11:33:03.000000000 -0400
@@ -4,6 +4,9 @@
 
 nice=
 force=
+pidfile=
+user=
+check=
 RETVAL=
 while [ "$1" != "${1##[-+]}" ]; do
 	case $1 in
@@ -15,7 +18,28 @@ while [ "$1" != "${1##[-+]}" ]; do
 	     	nice=$2
 		shift 2
 		;;
+	     -p)
+		pidfile="--pidfile $2"
+		shift 2
+		;;
+	     -u)
+	        user="--user $2"
+		shift 2
+		;;
+	     -c)
+	        check="--check $2"
+		shift 2
+		;;
+	      *)     
+ 		echo "Unknown Option $1"
+ 		echo "Options are:"
+ 		echo "-f" 
+		echo "-p {pidfile}"
+		echo "-n [+/-nicelevel]"
+		echo "-u {user}"
+		echo "-c {base}"
+	        exit 1;;	
 	esac
 done
-LSB=LSB-1.1 daemon ${force:-} ${nice:-} $*
+LSB=LSB-1.1 daemon ${force:-} ${nice:-} ${pidfile:-} ${user:-} ${check:-} $*
 exit $?


Index: redhat-lsb.spec
===================================================================
RCS file: /cvs/pkgs/rpms/redhat-lsb/devel/redhat-lsb.spec,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -p -r1.46 -r1.47
--- redhat-lsb.spec	27 Jul 2009 02:54:57 -0000	1.46
+++ redhat-lsb.spec	21 Oct 2009 15:46:22 -0000	1.47
@@ -49,10 +49,11 @@
 Summary: LSB support for Red Hat Linux
 Name: redhat-lsb
 Version: 3.2
-Release: 5%{?dist}
+Release: 6%{?dist}
 URL: http://www.linuxfoundation.org/collaborate/workgroups/lsb
 Source0: %{name}-%{version}-%{srcrelease}.tar.bz2
 Patch0: lsb-release-3.1-update-init-functions.patch
+Patch1: redhat-lsb-lsb_start_daemon-fix.patch
 License: GPLv2
 Group: System Environment/Base
 BuildRoot: %{_tmppath}/%{name}-root
@@ -526,6 +527,7 @@ installed on the system.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 cd lsb-release-%{upstreamlsbrelver}
@@ -645,6 +647,9 @@ fi
 #/usr/X11R6/lib/X11/rgb.txt
 
 %changelog
+* Wed Oct 21 2009 Tom "spot" Callaway <tcallawa at redhat.com> - 3.2-6
+- apply fix from bz485367 (thanks to Jon Thomas)
+
 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.2-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the scm-commits mailing list