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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 238E7158089 for ; Mon, 16 Oct 2023 23:45:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 684792BC01C; Mon, 16 Oct 2023 23:45:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id 5048A2BC01C for ; Mon, 16 Oct 2023 23:45:39 +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 7B54C335CAF for ; Mon, 16 Oct 2023 23:45:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D312B921 for ; Mon, 16 Oct 2023 23:45:36 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1697499770.a80bf43dee8debe9a7da1519e1e4ebbdb6b588c5.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/cronie/, sys-process/cronie/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-process/cronie/cronie-1.7.0-r1.ebuild sys-process/cronie/cronie-1.7.0-r2.ebuild sys-process/cronie/files/cronie-1.7.0-optional-default-anacron.patch X-VCS-Directories: sys-process/cronie/files/ sys-process/cronie/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: a80bf43dee8debe9a7da1519e1e4ebbdb6b588c5 X-VCS-Branch: master Date: Mon, 16 Oct 2023 23:45:36 +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: be76e1d0-b963-4ace-b472-b855cb93fda9 X-Archives-Hash: d497ef467fecc606d9b0e995ca0bb795 commit: a80bf43dee8debe9a7da1519e1e4ebbdb6b588c5 Author: Louis Sautier gentoo org> AuthorDate: Mon Oct 16 23:38:45 2023 +0000 Commit: Louis Sautier gentoo org> CommitDate: Mon Oct 16 23:42:50 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a80bf43d sys-process/cronie: fix error message in 0anacron, #915724 Closes: https://bugs.gentoo.org/915724 Signed-off-by: Louis Sautier gentoo.org> ...cronie-1.7.0-r1.ebuild => cronie-1.7.0-r2.ebuild} | 1 + .../cronie-1.7.0-optional-default-anacron.patch | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/sys-process/cronie/cronie-1.7.0-r1.ebuild b/sys-process/cronie/cronie-1.7.0-r2.ebuild similarity index 98% rename from sys-process/cronie/cronie-1.7.0-r1.ebuild rename to sys-process/cronie/cronie-1.7.0-r2.ebuild index 7df18878c8a5..f546d36ecbbd 100644 --- a/sys-process/cronie/cronie-1.7.0-r1.ebuild +++ b/sys-process/cronie/cronie-1.7.0-r2.ebuild @@ -35,6 +35,7 @@ RDEPEND=" PATCHES=( "${FILESDIR}"/${P}-optional-envionment.patch + "${FILESDIR}"/${P}-optional-default-anacron.patch ) src_configure() { diff --git a/sys-process/cronie/files/cronie-1.7.0-optional-default-anacron.patch b/sys-process/cronie/files/cronie-1.7.0-optional-default-anacron.patch new file mode 100644 index 000000000000..33cd1c79a72d --- /dev/null +++ b/sys-process/cronie/files/cronie-1.7.0-optional-default-anacron.patch @@ -0,0 +1,20 @@ +From ca1b98aaa79975376b729d7f4cc2e8bb2e5939b8 Mon Sep 17 00:00:00 2001 +From: Louis Sautier +Date: Sat, 14 Oct 2023 15:13:22 +0200 +Subject: [PATCH] anacron: only source /etc/default/anacron if it is readable, + fixes #159 + +Signed-off-by: Louis Sautier +--- a/contrib/0anacron ++++ b/contrib/0anacron +@@ -8,7 +8,9 @@ if [ `date +%Y%m%d` = "$day" ]; then + fi + + # Check whether run on battery should be allowed +-. /etc/default/anacron ++if test -r /etc/default/anacron; then ++ . /etc/default/anacron ++fi + + if [ "$ANACRON_RUN_ON_BATTERY_POWER" != "yes" ]; then +