summaryrefslogtreecommitdiffstats
path: root/main/openrc/dont-provide-ourself.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-01 09:42:13 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-01 09:42:13 +0000
commit3e5560e92f595620d173afcc3c28eb9e67cdfb1a (patch)
treebc6ac9ef6ea1936110be0478b22243dbca268c4b /main/openrc/dont-provide-ourself.patch
parentc478877b8a61220b6162a907d55b5474a5993ed8 (diff)
downloadaports-3e5560e92f595620d173afcc3c28eb9e67cdfb1a.tar.bz2
aports-3e5560e92f595620d173afcc3c28eb9e67cdfb1a.tar.xz
main/openrc: backport patch from upstream
Diffstat (limited to 'main/openrc/dont-provide-ourself.patch')
-rw-r--r--main/openrc/dont-provide-ourself.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/main/openrc/dont-provide-ourself.patch b/main/openrc/dont-provide-ourself.patch
new file mode 100644
index 000000000..2ff988f7f
--- /dev/null
+++ b/main/openrc/dont-provide-ourself.patch
@@ -0,0 +1,14 @@
+Index: src/librc/librc-depend.c
+===================================================================
+--- a/src/librc/librc-depend.c (revision b4104957b198b38aba609ed3889e7fa605012d19)
++++ b/src/librc/librc-depend.c (revision 7fbb6ad42742ebc5e6ec244eedc85e9ac0a6236d)
+@@ -802,4 +802,9 @@
+ continue;
+ }
++
++ /* Don't provide ourself */
++ if (strcmp(type, "iprovide") == 0 &&
++ strcmp(depend, service) == 0)
++ continue;
+
+ /* .sh files are not init scripts */