rng-tools: Fixes for latest OE layouts
PATCH 1/1 rng-tools: Fixes for latest OE layouts
The current recipe has a few installation errors:
* The manipulation of configurable paths drops a '/'
* The init script defaults are placed in the wrong file
* Finer control over init script start/stop
* The default device is non-standard
This patch fixes these little nits and makes the package usable again.
--- meta-oe/recipes-support/rng-tools/files/default | 3 ++- meta-oe/recipes-support/rng-tools/rng-tools_2.bb | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-)
meta-oe/recipes-support/rng-tools/files/default +2 -1
@@ -1,2 +1,3 @@ # Specify rng device -RNG_DEVICE=/dev/hwrng +#RNG_DEVICE=/dev/hwrng +RNG_DEVICE=/dev/urandom
meta-oe/recipes-support/rng-tools/rng-tools_2.bb +3 -2
@@ -15,12 +15,13 @@ inherit autotools update-rc.d do_install_append() { install -d "${D}${sysconfdir}/init.d" install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/rng-tools - sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir},' \ + sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir}/,' \ ${D}${sysconfdir}/init.d/rng-tools install -d "${D}${sysconfdir}/default" - install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default + install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/rng-tools } INITSCRIPT_NAME = "rng-tools" INITSCRIPT_PARAMS = "defaults" +INITSCRIPT_PARAMS = "start 30 S . stop 30 0 6 1 ."
Signature · 1 line
1.7.9.5
Quoted 33 lines · Gary Thomas
The current recipe has a few installation errors:
* The manipulation of configurable paths drops a '/'
* The init script defaults are placed in the wrong file
* Finer control over init script start/stop
* The default device is non-standardThis patch fixes these little nits and makes the package usable again.
Signed-off-by Gary Thomas <[email protected]>--- meta-oe/recipes-support/rng-tools/files/default | 3 ++- meta-oe/recipes-support/rng-tools/rng-tools_2.bb | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-)meta-oe/recipes-support/rng-tools/files/default +2
-1@@ -1,2 +1,3 @@ # Specify rng device -RNG_DEVICE=/dev/hwrng +#RNG_DEVICE=/dev/hwrng +RNG_DEVICE=/dev/urandommeta-oe/recipes-support/rng-tools/rng-tools_2.bb +1
-1@@ -15,12 +15,13 @@ inherit autotools update-rc.d do_install_append() { install -d "${D}${sysconfdir}/init.d" install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/rng-tools - sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir},' \ + sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir}/,' \
meta-oe/recipes-support/rng-tools/rng-tools_2.bb inherit autotools update-rc.d · line 27
Quoted 10 lines
meta-oe/recipes-support/rng-tools/rng-tools_2.bb +2
-1${D}${sysconfdir}/init.d/rng-tools install -d "${D}${sysconfdir}/default" - install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default + install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/rng-tools } INITSCRIPT_NAME = "rng-tools" INITSCRIPT_PARAMS = "defaults" +INITSCRIPT_PARAMS = "start 30 S . stop 30 0 6 1 ."
Why do you add 2nd INITSCRIPT_PARAMS ?
Cheers,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 41 lines · Martin Jansa
Quoted 40 lines · Gary Thomas
The current recipe has a few installation errors:
* The manipulation of configurable paths drops a '/'
* The init script defaults are placed in the wrong file
* Finer control over init script start/stop
* The default device is non-standardThis patch fixes these little nits and makes the package usable again.
Signed-off-by Gary Thomas <[email protected]>--- meta-oe/recipes-support/rng-tools/files/default | 3 ++- meta-oe/recipes-support/rng-tools/rng-tools_2.bb | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-)meta-oe/recipes-support/rng-tools/files/default +2
-1@@ -1,2 +1,3 @@ # Specify rng device -RNG_DEVICE=/dev/hwrng +#RNG_DEVICE=/dev/hwrng +RNG_DEVICE=/dev/urandommeta-oe/recipes-support/rng-tools/rng-tools_2.bb +2
-2@@ -15,12 +15,13 @@ inherit autotools update-rc.d do_install_append() { install -d "${D}${sysconfdir}/init.d" install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/rng-tools - sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir},' \ + sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir}/,' \ ${D}${sysconfdir}/init.d/rng-tools install -d "${D}${sysconfdir}/default" - install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default + install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/rng-tools }
Quoted 5 lines
meta-oe/recipes-support/rng-tools/rng-tools_2.bb inherit autotools update-rc.d · line 27
Quoted 3 lines
meta-oe/recipes-support/rng-tools/rng-tools_2.bb +1
-0INITSCRIPT_NAME = "rng-tools" INITSCRIPT_PARAMS = "defaults" +INITSCRIPT_PARAMS = "start 30 S . stop 30 0 6 1 ."Why do you add 2nd
INITSCRIPT_PARAMS?
ping :)
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 42 lines · Martin Jansa
Quoted 41 lines · Martin Jansa
Quoted 40 lines · Gary Thomas
The current recipe has a few installation errors:
* The manipulation of configurable paths drops a '/'
* The init script defaults are placed in the wrong file
* Finer control over init script start/stop
* The default device is non-standardThis patch fixes these little nits and makes the package usable again.
Signed-off-by Gary Thomas <[email protected]>--- meta-oe/recipes-support/rng-tools/files/default | 3 ++- meta-oe/recipes-support/rng-tools/rng-tools_2.bb | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-)meta-oe/recipes-support/rng-tools/files/default +2
-1@@ -1,2 +1,3 @@ # Specify rng device -RNG_DEVICE=/dev/hwrng +#RNG_DEVICE=/dev/hwrng +RNG_DEVICE=/dev/urandommeta-oe/recipes-support/rng-tools/rng-tools_2.bb +2
-2@@ -15,12 +15,13 @@ inherit autotools update-rc.d do_install_append() { install -d "${D}${sysconfdir}/init.d" install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/rng-tools - sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir},' \ + sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir}/,' \ ${D}${sysconfdir}/init.d/rng-tools install -d "${D}${sysconfdir}/default" - install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default + install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/rng-tools }
Quoted 7 lines
Quoted 5 lines
meta-oe/recipes-support/rng-tools/rng-tools_2.bb inherit autotools update-rc.d · line 27
Quoted 3 lines
meta-oe/recipes-support/rng-tools/rng-tools_2.bb +1
-0INITSCRIPT_NAME = "rng-tools" INITSCRIPT_PARAMS = "defaults" +INITSCRIPT_PARAMS = "start 30 S . stop 30 0 6 1 ."Why do you add 2nd
INITSCRIPT_PARAMS?ping :)
Sorry, must have missed your query (holidays).
That second line should really replace the first for finer grain control over the start/stop choice. I can fix this and resend the patch.
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 49 lines · Gary Thomas
Quoted 48 lines · Martin Jansa
Quoted 46 lines · Martin Jansa
Quoted 33 lines · Gary Thomas
The current recipe has a few installation errors:
* The manipulation of configurable paths drops a '/'
* The init script defaults are placed in the wrong file
* Finer control over init script start/stop
* The default device is non-standardThis patch fixes these little nits and makes the package usable again.
Signed-off-by Gary Thomas <[email protected]>--- meta-oe/recipes-support/rng-tools/files/default | 3 ++- meta-oe/recipes-support/rng-tools/rng-tools_2.bb | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-)meta-oe/recipes-support/rng-tools/files/default +2
-1@@ -1,2 +1,3 @@ # Specify rng device -RNG_DEVICE=/dev/hwrng +#RNG_DEVICE=/dev/hwrng +RNG_DEVICE=/dev/urandommeta-oe/recipes-support/rng-tools/rng-tools_2.bb +1
-1@@ -15,12 +15,13 @@ inherit autotools update-rc.d do_install_append() { install -d "${D}${sysconfdir}/init.d" install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/rng-tools - sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir},' \ + sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir}/,' \meta-oe/recipes-support/rng-tools/rng-tools_2.bb inherit autotools update-rc.d · line 27
Quoted 10 lines
meta-oe/recipes-support/rng-tools/rng-tools_2.bb +2
-1${D}${sysconfdir}/init.d/rng-tools install -d "${D}${sysconfdir}/default" - install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default + install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/rng-tools } INITSCRIPT_NAME = "rng-tools" INITSCRIPT_PARAMS = "defaults" +INITSCRIPT_PARAMS = "start 30 S . stop 30 0 6 1 ."Why do you add 2nd
INITSCRIPT_PARAMS?
Quoted 6 lines
Quoted 1 line
ping :)
Sorry, must have missed your query (holidays).
That second line should really replace the first for finer grain control over the start/stop choice. I can fix this and resend the patch.
Yes, please do if you want it applied.
Cheers,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 50 lines · Martin Jansa
Quoted 49 lines · Gary Thomas
Quoted 48 lines · Martin Jansa
Quoted 46 lines · Martin Jansa
Quoted 33 lines · Gary Thomas
The current recipe has a few installation errors:
* The manipulation of configurable paths drops a '/'
* The init script defaults are placed in the wrong file
* Finer control over init script start/stop
* The default device is non-standardThis patch fixes these little nits and makes the package usable again.
Signed-off-by Gary Thomas <[email protected]>--- meta-oe/recipes-support/rng-tools/files/default | 3 ++- meta-oe/recipes-support/rng-tools/rng-tools_2.bb | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-)meta-oe/recipes-support/rng-tools/files/default +2
-1@@ -1,2 +1,3 @@ # Specify rng device -RNG_DEVICE=/dev/hwrng +#RNG_DEVICE=/dev/hwrng +RNG_DEVICE=/dev/urandommeta-oe/recipes-support/rng-tools/rng-tools_2.bb +1
-1@@ -15,12 +15,13 @@ inherit autotools update-rc.d do_install_append() { install -d "${D}${sysconfdir}/init.d" install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/rng-tools - sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir},' \ + sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir}/,' \meta-oe/recipes-support/rng-tools/rng-tools_2.bb inherit autotools update-rc.d · line 27
Quoted 10 lines
meta-oe/recipes-support/rng-tools/rng-tools_2.bb +2
-1${D}${sysconfdir}/init.d/rng-tools install -d "${D}${sysconfdir}/default" - install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default + install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/rng-tools } INITSCRIPT_NAME = "rng-tools" INITSCRIPT_PARAMS = "defaults" +INITSCRIPT_PARAMS = "start 30 S . stop 30 0 6 1 ."Why do you add 2nd
INITSCRIPT_PARAMS?
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
ping :)
Sorry, must have missed your query (holidays).
That second line should really replace the first for finer grain control over the start/stop choice. I can fix this and resend the patch.
Yes, please do if you want it applied.
Last call for update. Next week I'll remove it from my queue and mark it as "Changes requested" on patchwork when not updated.
Quoted 4 lines
Cheers,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]