1 |
commit: 33594acceaa6c72b2158a70477d8191e81e4cd39 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 8 14:31:15 2022 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 8 14:34:08 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33594acc |
7 |
|
8 |
app-emacs/rpm-spec-mode: Fix byte-compilation with Emacs 28 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/837290 |
11 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
12 |
|
13 |
.../files/rpm-spec-mode-0.15-emacs-28.patch | 38 ++++++++++++++++++++++ |
14 |
app-emacs/rpm-spec-mode/rpm-spec-mode-0.15.ebuild | 3 +- |
15 |
2 files changed, 40 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/app-emacs/rpm-spec-mode/files/rpm-spec-mode-0.15-emacs-28.patch b/app-emacs/rpm-spec-mode/files/rpm-spec-mode-0.15-emacs-28.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..7f13f78dc9dd |
20 |
--- /dev/null |
21 |
+++ b/app-emacs/rpm-spec-mode/files/rpm-spec-mode-0.15-emacs-28.patch |
22 |
@@ -0,0 +1,38 @@ |
23 |
+--- a/rpm-spec-mode.el |
24 |
++++ b/rpm-spec-mode.el |
25 |
+@@ -112,7 +112,7 @@ |
26 |
+ :group 'rpm-spec) |
27 |
+ |
28 |
+ (define-obsolete-variable-alias |
29 |
+- 'rpm-completion-ignore-case 'rpm-spec-completion-ignore-case) |
30 |
++ 'rpm-completion-ignore-case 'rpm-spec-completion-ignore-case "") |
31 |
+ |
32 |
+ (defcustom rpm-spec-completion-ignore-case t |
33 |
+ "*Non-nil means that case differences are ignored during completion. |
34 |
+@@ -132,7 +132,7 @@ |
35 |
+ :group 'rpm-spec) |
36 |
+ |
37 |
+ (define-obsolete-variable-alias |
38 |
+- 'rpm-spec-test 'rpm-spec-nobuild) |
39 |
++ 'rpm-spec-test 'rpm-spec-nobuild "") |
40 |
+ |
41 |
+ (defcustom rpm-spec-nobuild nil |
42 |
+ "Do not execute any build stages. Useful for testing out spec files." |
43 |
+@@ -158,7 +158,7 @@ |
44 |
+ :group 'rpm-spec) |
45 |
+ |
46 |
+ (define-obsolete-variable-alias |
47 |
+- 'rpm-initialize-sections 'rpm-spec-initialize-sections) |
48 |
++ 'rpm-initialize-sections 'rpm-spec-initialize-sections "") |
49 |
+ |
50 |
+ (defcustom rpm-spec-initialize-sections t |
51 |
+ "Automatically add empty section headings to new spec files." |
52 |
+@@ -166,7 +166,7 @@ |
53 |
+ :group 'rpm-spec) |
54 |
+ |
55 |
+ (define-obsolete-variable-alias |
56 |
+- 'rpm-insert-version 'rpm-spec-insert-changelog-version) |
57 |
++ 'rpm-insert-version 'rpm-spec-insert-changelog-version "") |
58 |
+ |
59 |
+ (defcustom rpm-spec-insert-changelog-version t |
60 |
+ "Automatically add version in a new change log entry." |
61 |
|
62 |
diff --git a/app-emacs/rpm-spec-mode/rpm-spec-mode-0.15.ebuild b/app-emacs/rpm-spec-mode/rpm-spec-mode-0.15.ebuild |
63 |
index 0086ffe7ae34..a7f24a7b33d1 100644 |
64 |
--- a/app-emacs/rpm-spec-mode/rpm-spec-mode-0.15.ebuild |
65 |
+++ b/app-emacs/rpm-spec-mode/rpm-spec-mode-0.15.ebuild |
66 |
@@ -1,4 +1,4 @@ |
67 |
-# Copyright 1999-2021 Gentoo Authors |
68 |
+# Copyright 1999-2022 Gentoo Authors |
69 |
# Distributed under the terms of the GNU General Public License v2 |
70 |
|
71 |
EAPI=7 |
72 |
@@ -14,4 +14,5 @@ LICENSE="GPL-2+" |
73 |
SLOT="0" |
74 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
75 |
|
76 |
+PATCHES=( "${FILESDIR}"/${P}-emacs-28.patch ) |
77 |
SITEFILE="50${PN}-gentoo.el" |