From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AB0701581F3 for ; Mon, 25 Nov 2024 23:28:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 682EEE0824; Mon, 25 Nov 2024 23:28:06 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7E26EE0824 for ; Mon, 25 Nov 2024 23:28:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 50B8934301E for ; Mon, 25 Nov 2024 23:28:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ABFCE18B9 for ; Mon, 25 Nov 2024 23:28:02 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1732577254.b25f2e9b34509633498ff8b61e00884b64e172c9.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/cronie/files/, sys-process/cronie/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-process/cronie/cronie-1.7.2.ebuild sys-process/cronie/files/cronie-1.7.2-c23.patch X-VCS-Directories: sys-process/cronie/ sys-process/cronie/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: b25f2e9b34509633498ff8b61e00884b64e172c9 X-VCS-Branch: master Date: Mon, 25 Nov 2024 23:28:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1e758446-b923-422d-9d28-83f9422f370e X-Archives-Hash: e0eaffc4483b89e3844a16e0e71f94f1 commit: b25f2e9b34509633498ff8b61e00884b64e172c9 Author: Sam James gentoo org> AuthorDate: Mon Nov 25 23:27:06 2024 +0000 Commit: Sam James gentoo org> CommitDate: Mon Nov 25 23:27:34 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b25f2e9b sys-process/cronie: fix C23 compat Closes: https://bugs.gentoo.org/880387 Signed-off-by: Sam James gentoo.org> sys-process/cronie/cronie-1.7.2.ebuild | 4 +++ sys-process/cronie/files/cronie-1.7.2-c23.patch | 42 +++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/sys-process/cronie/cronie-1.7.2.ebuild b/sys-process/cronie/cronie-1.7.2.ebuild index a4d99c5828fd..fffb6482974d 100644 --- a/sys-process/cronie/cronie-1.7.2.ebuild +++ b/sys-process/cronie/cronie-1.7.2.ebuild @@ -33,6 +33,10 @@ RDEPEND=" sys-apps/debianutils " +PATCHES=( + "${FILESDIR}"/${P}-c23.patch +) + src_configure() { local myeconfargs=( $(use_with inotify) diff --git a/sys-process/cronie/files/cronie-1.7.2-c23.patch b/sys-process/cronie/files/cronie-1.7.2-c23.patch new file mode 100644 index 000000000000..a94f4bec5c4d --- /dev/null +++ b/sys-process/cronie/files/cronie-1.7.2-c23.patch @@ -0,0 +1,42 @@ +https://bugs.gentoo.org/880387 +https://github.com/cronie-crond/cronie/issues/193 +https://github.com/cronie-crond/cronie/commit/09c630c654b2aeff06a90a412cce0a60ab4955a4 + +From 09c630c654b2aeff06a90a412cce0a60ab4955a4 Mon Sep 17 00:00:00 2001 +From: Tomas Mraz +Date: Mon, 18 Nov 2024 21:02:30 +0100 +Subject: [PATCH] load_entry(): Make error_func prototype complete + +Fixes #193 +--- + src/entry.c | 2 +- + src/funcs.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/entry.c b/src/entry.c +index 586eb9d..a2077e8 100644 +--- a/src/entry.c ++++ b/src/entry.c +@@ -90,7 +90,7 @@ void free_entry(entry * e) { + /* return NULL if eof or syntax error occurs; + * otherwise return a pointer to a new entry. + */ +-entry *load_entry(FILE * file, void (*error_func) (), struct passwd *pw, ++entry *load_entry(FILE * file, void (*error_func) (const char *), struct passwd *pw, + char **envp) { + /* this function reads one crontab entry -- the next -- from a file. + * it skips any leading blank lines, ignores comments, and returns +diff --git a/src/funcs.h b/src/funcs.h +index 427e027..f28d634 100644 +--- a/src/funcs.h ++++ b/src/funcs.h +@@ -89,7 +89,7 @@ char *env_get(const char *, char **), + user *load_user(int, struct passwd *, const char *, const char *, const char *), + *find_user(cron_db *, const char *, const char *); + +-entry *load_entry(FILE *, void (*)(), struct passwd *, char **); ++entry *load_entry(FILE *, void (*)(const char *), struct passwd *, char **); + + FILE *cron_popen(char *, const char *, struct passwd *, char **); + +