summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/baselayout/files/baselayout-1.13.0_alpha11-depscan.patch')
-rw-r--r--sys-apps/baselayout/files/baselayout-1.13.0_alpha11-depscan.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/sys-apps/baselayout/files/baselayout-1.13.0_alpha11-depscan.patch b/sys-apps/baselayout/files/baselayout-1.13.0_alpha11-depscan.patch
new file mode 100644
index 000000000000..961bec4fc942
--- /dev/null
+++ b/sys-apps/baselayout/files/baselayout-1.13.0_alpha11-depscan.patch
@@ -0,0 +1,50 @@
+Index: sbin/depscan.sh
+===================================================================
+--- sbin/depscan.sh (revision 2484)
++++ sbin/depscan.sh (working copy)
+@@ -32,6 +32,9 @@
+ exit 1
+ }
+
++# This makes is_older_than fix future mtimes
++RC_FIX_FUTURE=${RC_FIX_FUTURE:-yes}
++
+ mysvcdir=${svcdir}
+ force=false
+ force_net=false
+@@ -92,9 +95,6 @@
+ SVCLIB="${svclib}"
+ export SVCDIR SVCLIB
+
+-# This makes is_older_than fix future mtimes
+-RC_FIX_FUTURE=${RC_FIX_FUTURE:-yes}
+-
+ [[ -e "${mysvcdir}/deptree" ]] || force=true
+ if ! ${force} ; then
+ is_older_than "${mysvcdir}/depcache" /etc/conf.d /etc/init.d \
+Index: sh/init-common-post.sh
+===================================================================
+--- sh/init-common-post.sh (revision 2484)
++++ sh/init-common-post.sh (working copy)
+@@ -15,7 +15,7 @@
+ fi
+
+ # Update init dependencies if needed
+-depscan.sh
++RC_FIX_FUTURE="no" depscan.sh
+
+ # We set the forced softlevel from the kernel command line
+ # It needs to be run right after proc is mounted for the
+Index: sh/rc-services.sh
+===================================================================
+--- sh/rc-services.sh (revision 2484)
++++ sh/rc-services.sh (working copy)
+@@ -6,7 +6,7 @@
+ RC_GOT_SERVICES="yes"
+ if [[ ${EUID} == "0" && $0 != "/etc/init.d/halt.sh" ]] ; then
+ # If the clock service hasn't started, don't fix future mtimes
+- if [[ -e "${svcdir}/started/clock" ]] ; then
++ if [[ -L "${svcdir}"/started/clock && -w /etc ]] ; then
+ depscan.sh
+ else
+ RC_FIX_FUTURE="no" depscan.sh