Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/rasdaemon/, app-admin/rasdaemon/files/
Date: Thu, 10 Jun 2021 03:51:46
Message-Id: 1623297097.6294ab61ad13da4a283554975b9f3d0c502a1f8d.prometheanfire@gentoo
1 commit: 6294ab61ad13da4a283554975b9f3d0c502a1f8d
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 10 03:50:50 2021 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 10 03:51:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6294ab61
7
8 app-admin/rasdaemon: fix sysconfig dir
9
10 uses https://github.com/mchehab/rasdaemon/pull/46
11
12 Closes: https://bugs.gentoo.org/795132
13 Package-Manager: Portage-3.0.18, Repoman-3.0.2
14 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
15
16 .../rasdaemon/files/sysconfig-fix-0.6.7.patch | 32 ++++++++++++++++++++++
17 app-admin/rasdaemon/rasdaemon-0.6.7.ebuild | 4 +++
18 2 files changed, 36 insertions(+)
19
20 diff --git a/app-admin/rasdaemon/files/sysconfig-fix-0.6.7.patch b/app-admin/rasdaemon/files/sysconfig-fix-0.6.7.patch
21 new file mode 100644
22 index 00000000000..ce4f5ce92bc
23 --- /dev/null
24 +++ b/app-admin/rasdaemon/files/sysconfig-fix-0.6.7.patch
25 @@ -0,0 +1,32 @@
26 +From 2379c720a7e490854a2f352ca53af6fbd99c0832 Mon Sep 17 00:00:00 2001
27 +From: Matt Whitlock <whitslack@××××××××××××××××××××.com>
28 +Date: Wed, 9 Jun 2021 10:25:18 -0400
29 +Subject: [PATCH] configure.ac: fix SYSCONFDEFDIR default value
30 +
31 +configure.ac was using AC_ARG_WITH incorrectly, yielding a generated configure script like:
32 +
33 + # Check whether --with-sysconfdefdir was given.
34 + if test "${with_sysconfdefdir+set}" = set; then :
35 + withval=$with_sysconfdefdir; SYSCONFDEFDIR=$withval
36 + else
37 + "/etc/sysconfig"
38 + fi
39 +
40 +This commit fixes the default case so that the SYSCONFDEFDIR variable is assigned the value "/etc/sysconfig" rather than trying to execute "/etc/sysconfig" as a command.
41 +---
42 + configure.ac | 2 +-
43 + 1 file changed, 1 insertion(+), 1 deletion(-)
44 +
45 +diff --git a/configure.ac b/configure.ac
46 +index f7d1947..33b81fe 100644
47 +--- a/configure.ac
48 ++++ b/configure.ac
49 +@@ -172,7 +172,7 @@ AC_SUBST([RASSTATEDIR])
50 + AC_ARG_WITH(sysconfdefdir,
51 + AC_HELP_STRING([--with-sysconfdefdir=DIR], [rasdaemon environment file dir]),
52 + [SYSCONFDEFDIR=$withval],
53 +- ["/etc/sysconfig"])
54 ++ [SYSCONFDEFDIR=/etc/sysconfig])
55 + AC_SUBST([SYSCONFDEFDIR])
56 +
57 + AC_DEFINE([RAS_DB_FNAME], ["ras-mc_event.db"], [ras events database])
58
59 diff --git a/app-admin/rasdaemon/rasdaemon-0.6.7.ebuild b/app-admin/rasdaemon/rasdaemon-0.6.7.ebuild
60 index c5aa842b5d0..add264d2374 100644
61 --- a/app-admin/rasdaemon/rasdaemon-0.6.7.ebuild
62 +++ b/app-admin/rasdaemon/rasdaemon-0.6.7.ebuild
63 @@ -25,6 +25,10 @@ RDEPEND="
64 )
65 "
66
67 +PATCHES=(
68 + "${FILESDIR}/sysconfig-fix-0.6.7.patch"
69 +)
70 +
71 pkg_setup() {
72 linux-info_pkg_setup
73 local CONFIG_CHECK="~ACPI_EXTLOG"