mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
cronie, add missing patchset, fix build (#3636)
This commit is contained in:
committed by
waddlesplash
parent
793cc8e1f5
commit
22fbfa5a9a
@@ -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
|
||||
}
|
||||
|
||||
29
sys-process/cronie/patches/cronie-1.5.2.patchset
Normal file
29
sys-process/cronie/patches/cronie-1.5.2.patchset
Normal file
@@ -0,0 +1,29 @@
|
||||
From 53395387e99f9dd76fc2150ceae7960e00dcb8c6 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user