[packages/libvirt] virtlockd init script needs pldization

glen glen at pld-linux.org
Fri Apr 26 21:54:11 CEST 2013


commit 8357fab1deb596418e1fd889407f7d6fe54fa870
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Apr 26 22:53:01 2013 +0300

    virtlockd init script needs pldization
    
    until then force bash interpreter. this will enable fedora specific
    hacks in rc-scripts, and seems current one depends on some bashisms

 libvirt.spec         | 3 +++
 virtlockd.init.patch | 8 ++++++++
 2 files changed, 11 insertions(+)
---
diff --git a/libvirt.spec b/libvirt.spec
index 31502b5..0b9a485 100644
--- a/libvirt.spec
+++ b/libvirt.spec
@@ -1,5 +1,6 @@
 #
 # TODO: - seems that lxc patch is not needed anymore, verify that before removing
+# - pldize virtlockd.init
 #
 # Conditional build:
 %bcond_without	ceph		# RADOS BD (Ceph) storage support
@@ -42,6 +43,7 @@ Patch0:		%{name}-sasl.patch
 Patch1:		%{name}-lxc.patch
 Patch2:		%{name}-qemu-acl.patch
 Patch3:		%{name}-xend.patch
+Patch4:		virtlockd.init.patch
 URL:		http://www.libvirt.org/
 BuildRequires:	audit-libs-devel
 BuildRequires:	augeas-devel
@@ -409,6 +411,7 @@ biblioteki libvirt.
 #patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 # weird translations
 %{__rm} po/{my,eu_ES}.{po,gmo}
diff --git a/virtlockd.init.patch b/virtlockd.init.patch
new file mode 100644
index 0000000..f3bdadd
--- /dev/null
+++ b/virtlockd.init.patch
@@ -0,0 +1,8 @@
+--- libvirt-1.0.4/src/locking/virtlockd.init.in~	2013-01-17 08:01:39.000000000 +0200
++++ libvirt-1.0.4/src/locking/virtlockd.init.in	2013-04-26 22:51:35.454895048 +0300
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/bin/bash
+ 
+ # the following is the LSB init header see
+ # http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libvirt.git/commitdiff/8357fab1deb596418e1fd889407f7d6fe54fa870



More information about the pld-cvs-commit mailing list