Skip to contentSkip to conversation

cronie: build cronie with --with-syscrontab

PATCH In review yaoxp 2 participants 3 messages Oct 10, 2013 – Nov 7, 2013

lore
Share & tools
lore

yaoxp

author
#0 lore raw

PATCH 1/1 cronie: build cronie with --with-syscrontab

Hi all,

If build cronie without --with-syscrontab, the /etc/crontab will not work.

---
 meta/recipes-extended/cronie/cronie_1.4.9.bb |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
meta/recipes-extended/cronie/cronie_1.4.9.bb +3 -1
index 7db0381..0fbb815 100644
@@ -34,7 +34,9 @@ SRC_URI[sha256sum] = "bd7f6f118460c452bd1217a24b80fd3c000425d3de28731b98354a81a2
 inherit autotools update-rc.d useradd
 
 EXTRA_OECONF += "\
-                ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)}"
+                ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \
+                --with-syscrontab \
+                "
 
 INITSCRIPT_NAME = "crond"
 INITSCRIPT_PARAMS = "start 90 2 3 4 5 . stop 60 0 1 6 ."

--
1.7.1

-------------------------------------------
Yao Xinpan
TEL: 8559

#1 lore raw
Quoted 4 lines · yaoxp

Hi all,

If build cronie without --with-syscrontab, the /etc/crontab will not work.

I ran a test without this and the /etc/crontab file was read and the cron entry was executed, can you explain more clearly what you observed?

The default seems to have it enabled unless it's explicitly disabled. This might be a change from 1.4.9 to 1.4.11 as the recipe was recently updated.

Sau!

Quoted 36 lines
---
  meta/recipes-extended/cronie/cronie_1.4.9.bb |    4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)
meta/recipes-extended/cronie/cronie_1.4.9.bb +3 -2
index 7db0381..0fbb815 100644
@@ -34,7 +34,9 @@ SRC_URI[sha256sum] = "bd7f6f118460c452bd1217a24b80fd3c000425d3de28731b98354a81a2
  inherit autotools update-rc.d useradd
 
  EXTRA_OECONF += "\
-                ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)}"
+                ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \
+                --with-syscrontab \
+                "
 
  INITSCRIPT_NAME = "crond"
  INITSCRIPT_PARAMS = "start 90 2 3 4 5 . stop 60 0 1 6 ."
--

1.7.1

-------------------------------------------
Yao Xinpan
TEL: 8559

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

author
#2 lore raw
Quoted 10 lines · yaoxp
Quoted 4 lines

Hi all,

If build cronie without --with-syscrontab, the /etc/crontab will not work.

I ran a test without this and the /etc/crontab file was read and the cron entry was executed, can you explain more clearly what you observed?

My build environment:

	Yocto version: 1.4.2
	Cronie version: 1.4.9

/etc/crontab will not read if build cronie without --with-syscrontab from 1.4.9 If /etc/crontab doesn't work, may be inconvenient to the user

Yaoxp

Quoted 48 lines

The default seems to have it enabled unless it's explicitly disabled. This might be a change from 1.4.9 to 1.4.11 as the recipe was recently updated.

Sau!

Review

Quoted 6 lines
---
  meta/recipes-extended/cronie/cronie_1.4.9.bb |    4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)
(quoted diff) +0 -0

b/meta/recipes-extended/cronie/cronie_1.4.9.bb

meta/recipes-extended/cronie/cronie_1.4.9.bb SRC_URI[sha256sum] =

Quoted 4 lines

index 7db0381..0fbb815 100644

meta/recipes-extended/cronie/cronie_1.4.9.bb +0 -0
@@ -34,7 +34,9 @@ SRC_URI[sha256sum] =

"bd7f6f118460c452bd1217a24b80fd3c000425d3de28731b98354a81a2

meta/recipes-extended/cronie/cronie_1.4.9.bb SRC_URI[sha256sum] = "bd7f6f118460c452bd1217a24b80fd3c000425d3de28731b98354a81a2

Quoted 4 lines
meta/recipes-extended/cronie/cronie_1.4.9.bb +0 -1
  inherit autotools update-rc.d useradd
 
  EXTRA_OECONF += "\
-                ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam',

'--without-pam', d)}"

meta/recipes-extended/cronie/cronie_1.4.9.bb SRC_URI[sha256sum] = · line 37

Quoted 1 line
meta/recipes-extended/cronie/cronie_1.4.9.bb +1 -0
+                ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam',

'--without-pam', d)} \

Quoted 21 lines
meta/recipes-extended/cronie/cronie_1.4.9.bb +2 -1
+                --with-syscrontab \
+                "
 
  INITSCRIPT_NAME = "crond"
  INITSCRIPT_PARAMS = "start 90 2 3 4 5 . stop 60 0 1 6 ."
--

1.7.1

-------------------------------------------
Yao Xinpan
TEL: 8559

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core