* [PATCH 0/1] update-rc.d: fix to handle priority numbers correctly
@ 2014-05-29 1:50 Chen Qi
2014-05-29 1:50 ` [PATCH 1/1] " Chen Qi
0 siblings, 1 reply; 2+ messages in thread
From: Chen Qi @ 2014-05-29 1:50 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 32ac58819580d359e22161be1abf62215d202250:
i2c-tools: Add i2c-tools to the core (2014-05-28 09:41:11 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib ChenQi/updatercd-priority
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/updatercd-priority
Chen Qi (1):
update-rc.d: fix to handle priority numbers correctly
.../fix-to-handle-priority-numbers-correctly.patch | 28 ++++++++++++++++++++
meta/recipes-core/update-rc.d/update-rc.d_0.7.bb | 1 +
2 files changed, 29 insertions(+)
create mode 100644 meta/recipes-core/update-rc.d/update-rc.d/fix-to-handle-priority-numbers-correctly.patch
--
1.7.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] update-rc.d: fix to handle priority numbers correctly
2014-05-29 1:50 [PATCH 0/1] update-rc.d: fix to handle priority numbers correctly Chen Qi
@ 2014-05-29 1:50 ` Chen Qi
0 siblings, 0 replies; 2+ messages in thread
From: Chen Qi @ 2014-05-29 1:50 UTC (permalink / raw)
To: openembedded-core
The update-rc.d treated priority numbers begin with '0' as octal
numbers. This led to problems of update-rc.d being unable to handle
priorities like '08' or '09' correctly.
This patch fixes the above problem.
[YOCTO #6376]
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
.../fix-to-handle-priority-numbers-correctly.patch | 28 ++++++++++++++++++++
meta/recipes-core/update-rc.d/update-rc.d_0.7.bb | 1 +
2 files changed, 29 insertions(+)
create mode 100644 meta/recipes-core/update-rc.d/update-rc.d/fix-to-handle-priority-numbers-correctly.patch
diff --git a/meta/recipes-core/update-rc.d/update-rc.d/fix-to-handle-priority-numbers-correctly.patch b/meta/recipes-core/update-rc.d/update-rc.d/fix-to-handle-priority-numbers-correctly.patch
new file mode 100644
index 0000000..85bc234
--- /dev/null
+++ b/meta/recipes-core/update-rc.d/update-rc.d/fix-to-handle-priority-numbers-correctly.patch
@@ -0,0 +1,28 @@
+Upstream-Status: Pending
+
+Fix to handle priority numbers correctly.
+Previously, if the priority number is '08' or '09', for example,
+the script cannot handle them correctly as these numbers are treated
+as octal numbers.
+
+Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
+---
+ update-rc.d | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/update-rc.d b/update-rc.d
+index ec50d15..c70b859 100644
+--- a/update-rc.d
++++ b/update-rc.d
+@@ -205,7 +205,7 @@ case $1 in
+ exit 1
+ fi
+ shift
+- NN=`printf %02d $1`
++ NN=`printf %02d $(expr $1 + 0)`
+ shift
+ while [ "x$1" != "x." ]; do
+ if [ $# -eq 0 ]; then
+--
+1.7.9.5
+
diff --git a/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb b/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb
index 50dcaa2..c15cb78 100644
--- a/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb
+++ b/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb
@@ -13,6 +13,7 @@ SRCREV = "eca680ddf28d024954895f59a241a622dd575c11"
SRC_URI = "git://github.com/philb/update-rc.d.git \
file://add-verbose.patch \
file://check-if-symlinks-are-valid.patch \
+ file://fix-to-handle-priority-numbers-correctly.patch \
"
S = "${WORKDIR}/git"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-29 1:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-29 1:50 [PATCH 0/1] update-rc.d: fix to handle priority numbers correctly Chen Qi
2014-05-29 1:50 ` [PATCH 1/1] " Chen Qi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox