diff --git a/sys-process/cronie/cronie-1.5.2.recipe b/sys-process/cronie/cronie-1.5.2.recipe index c728500f0..e264caddf 100644 --- a/sys-process/cronie/cronie-1.5.2.recipe +++ b/sys-process/cronie/cronie-1.5.2.recipe @@ -5,13 +5,13 @@ COPYRIGHT="2004-2018 Paul Vixie" LICENSE="BSD (2-clause) BSD (3-clause) GNU GPL v2" -REVISION="1" +REVISION="2" SOURCE_URI="https://github.com/cronie-crond/cronie/archive/cronie-$portVersion.tar.gz" CHECKSUM_SHA256="28cfdc6cc7df304dced6d0d0543767d8d22926f669a28d650c0513c168183eb4" SOURCE_DIR="cronie-cronie-$portVersion" if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then -PATCHES="cronie-$portVersion-gcc2.patchset" +PATCHES="cronie-$portVersion.patchset" fi ARCHITECTURES="x86_gcc2 x86 x86_64" @@ -34,7 +34,9 @@ BUILD_REQUIRES=" " BUILD_PREREQUIRES=" cmd:aclocal - cmd:autoreconf + cmd:autoconf + cmd:autoheader + cmd:automake cmd:make cmd:gcc$secondaryArchSuffix cmd:libtoolize$secondaryArchSuffix @@ -43,7 +45,6 @@ BUILD_PREREQUIRES=" BUILD() { autogen.sh - runConfigure ./configure make $jobArgs } diff --git a/sys-process/cronie/patches/cronie-1.5.2.patchset b/sys-process/cronie/patches/cronie-1.5.2.patchset new file mode 100644 index 000000000..602d2d049 --- /dev/null +++ b/sys-process/cronie/patches/cronie-1.5.2.patchset @@ -0,0 +1,29 @@ +From 53395387e99f9dd76fc2150ceae7960e00dcb8c6 Mon Sep 17 00:00:00 2001 +From: begasus +Date: Wed, 13 Feb 2019 15:41:12 +0100 +Subject: fix parse error for gcc2 + + +diff --git a/src/security.c b/src/security.c +index 703733a..c973463 100644 +--- a/src/security.c ++++ b/src/security.c +@@ -169,6 +169,7 @@ int cron_set_job_security_context(entry *e, user *u ATTRIBUTE_UNUSED, + + *jobenv = build_env(e->envp); + ++ { + time_t job_run_time = time(0L); + + if ((minutely_time > 0) && ((job_run_time / 60) != (minutely_time / 60))) { +@@ -189,6 +190,7 @@ int cron_set_job_security_context(entry *e, user *u ATTRIBUTE_UNUSED, + return -1; + } + return 0; ++ } + } + + #if defined(WITH_PAM) +-- +2.19.1 +