Patchwork [1/1] cronie: build cronie with --with-syscrontab

login
register
mail settings
Submitter yaoxp
Date Oct. 10, 2013, 1:36 p.m.
Message ID <008a01cec5bd$b1797160$146c5420$@cn.fujitsu.com>
Download mbox | patch
Permalink /patch/59613/
State New
Headers show

Comments

yaoxp - Oct. 10, 2013, 1:36 p.m.
Hi all,
	
If build cronie without --with-syscrontab, the /etc/crontab will not work.

Signed-off-by: Yao Xinpan <yaoxp@cn.fujitsu.com>
---
 meta/recipes-extended/cronie/cronie_1.4.9.bb |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

--
1.7.1

-------------------------------------------
Yao Xinpan
TEL: 8559
Saul Wold - Oct. 31, 2013, 5:20 p.m.
On 10/10/2013 06:36 AM, yaoxp wrote:
> 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!



> Signed-off-by: Yao Xinpan <yaoxp@cn.fujitsu.com>
> ---
>   meta/recipes-extended/cronie/cronie_1.4.9.bb |    4 +++-
>   1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-extended/cronie/cronie_1.4.9.bb b/meta/recipes-extended/cronie/cronie_1.4.9.bb
> index 7db0381..0fbb815 100644
> --- a/meta/recipes-extended/cronie/cronie_1.4.9.bb
> +++ b/meta/recipes-extended/cronie/cronie_1.4.9.bb
> @@ -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
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
yaoxp - Nov. 7, 2013, 10:07 a.m.
> On 10/10/2013 06:36 AM, yaoxp wrote:
> > 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


> 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!
> 
> 
> 
> > Signed-off-by: Yao Xinpan <yaoxp@cn.fujitsu.com>
> > ---
> >   meta/recipes-extended/cronie/cronie_1.4.9.bb |    4 +++-
> >   1 files changed, 3 insertions(+), 1 deletions(-)
> >
> > diff --git a/meta/recipes-extended/cronie/cronie_1.4.9.bb
> b/meta/recipes-extended/cronie/cronie_1.4.9.bb
> > index 7db0381..0fbb815 100644
> > --- a/meta/recipes-extended/cronie/cronie_1.4.9.bb
> > +++ b/meta/recipes-extended/cronie/cronie_1.4.9.bb
> > @@ -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
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >
> >

Patch

diff --git a/meta/recipes-extended/cronie/cronie_1.4.9.bb b/meta/recipes-extended/cronie/cronie_1.4.9.bb
index 7db0381..0fbb815 100644
--- a/meta/recipes-extended/cronie/cronie_1.4.9.bb
+++ b/meta/recipes-extended/cronie/cronie_1.4.9.bb
@@ -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 ."