1 |
commit: d3e99bee31a1948abb61d68092d0da987d967e9e |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Sat Nov 28 23:09:24 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 23:09:24 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3e99bee |
7 |
|
8 |
x11-terms/mrxvt: fix build with gcc-10 |
9 |
|
10 |
* Thanks to Sam James for providing the patch link |
11 |
|
12 |
Closes: https://github.com/gentoo/gentoo/pull/18441 |
13 |
Closes: https://bugs.gentoo.org/707146 |
14 |
Package-Manager: Portage-3.0.9, Repoman-3.0.1 |
15 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
16 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
17 |
|
18 |
x11-terms/mrxvt/files/mrxvt-0.5.4-fno-common.patch | 20 +++++++++++ |
19 |
x11-terms/mrxvt/mrxvt-0.5.4.ebuild | 41 +++++++++++++--------- |
20 |
2 files changed, 44 insertions(+), 17 deletions(-) |
21 |
|
22 |
diff --git a/x11-terms/mrxvt/files/mrxvt-0.5.4-fno-common.patch b/x11-terms/mrxvt/files/mrxvt-0.5.4-fno-common.patch |
23 |
new file mode 100644 |
24 |
index 00000000000..2bb39a423ae |
25 |
--- /dev/null |
26 |
+++ b/x11-terms/mrxvt/files/mrxvt-0.5.4-fno-common.patch |
27 |
@@ -0,0 +1,20 @@ |
28 |
+--- a/src/rxvtlib.h |
29 |
++++ b/src/rxvtlib.h |
30 |
+@@ -790,7 +790,7 @@ typedef struct { |
31 |
+ } action_t; |
32 |
+ |
33 |
+ /* Values for macro_t.type. Must sync this with macroNames from macros.c */ |
34 |
+-enum { |
35 |
++enum macroFnNames { |
36 |
+ MacroFnDummy=0, |
37 |
+ MacroFnEsc, |
38 |
+ MacroFnStr, |
39 |
+@@ -820,7 +820,7 @@ enum { |
40 |
+ MacroFnSaveConfig, |
41 |
+ MacroFnToggleMacros, |
42 |
+ NMACRO_FUNCS |
43 |
+-} macroFnNames; |
44 |
++}; |
45 |
+ |
46 |
+ typedef unsigned char macro_priority_t; |
47 |
+ typedef struct { |
48 |
|
49 |
diff --git a/x11-terms/mrxvt/mrxvt-0.5.4.ebuild b/x11-terms/mrxvt/mrxvt-0.5.4.ebuild |
50 |
index 2090e188130..dbbfd4f073d 100644 |
51 |
--- a/x11-terms/mrxvt/mrxvt-0.5.4.ebuild |
52 |
+++ b/x11-terms/mrxvt/mrxvt-0.5.4.ebuild |
53 |
@@ -2,7 +2,8 @@ |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
|
56 |
EAPI=7 |
57 |
-inherit autotools eutils |
58 |
+ |
59 |
+inherit autotools |
60 |
|
61 |
DESCRIPTION="Multi-tabbed rxvt clone with XFT, transparent background and CJK support" |
62 |
HOMEPAGE="http://materm.sourceforge.net/" |
63 |
@@ -15,31 +16,37 @@ KEYWORDS="~alpha amd64 ~arm64 ~mips ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" |
64 |
L10N_IUSE="l10n_el l10n_ja l10n_ko l10n_th l10n_zh-CN l10n_zh-TW" |
65 |
IUSE="debug png jpeg session truetype menubar utempter xpm ${L10N_IUSE}" |
66 |
|
67 |
-RDEPEND="png? ( media-libs/libpng ) |
68 |
- utempter? ( sys-libs/libutempter ) |
69 |
+RDEPEND=" |
70 |
+ x11-libs/libX11 |
71 |
+ x11-libs/libXrender |
72 |
+ x11-libs/libXt |
73 |
jpeg? ( virtual/jpeg ) |
74 |
- truetype? ( x11-libs/libXft |
75 |
+ png? ( media-libs/libpng:= ) |
76 |
+ truetype? ( |
77 |
media-libs/fontconfig |
78 |
media-libs/freetype |
79 |
- elibc_uclibc? ( dev-libs/libiconv ) ) |
80 |
- x11-libs/libX11 |
81 |
- x11-libs/libXt |
82 |
- xpm? ( x11-libs/libXpm ) |
83 |
- x11-libs/libXrender" |
84 |
- |
85 |
-DEPEND="${RDEPEND} |
86 |
+ x11-libs/libXft |
87 |
+ elibc_uclibc? ( dev-libs/libiconv ) |
88 |
+ ) |
89 |
+ utempter? ( sys-libs/libutempter ) |
90 |
+ xpm? ( x11-libs/libXpm )" |
91 |
+DEPEND=" |
92 |
+ ${RDEPEND} |
93 |
x11-base/xorg-proto" |
94 |
|
95 |
-src_prepare() { |
96 |
- eapply "${FILESDIR}"/${P}-001-fix-segfault-when-wd-empty.patch |
97 |
- eapply "${FILESDIR}"/${P}-libpng14.patch |
98 |
- eapply_user |
99 |
+PATCHES=( |
100 |
+ "${FILESDIR}"/${P}-001-fix-segfault-when-wd-empty.patch |
101 |
+ "${FILESDIR}"/${P}-libpng14.patch |
102 |
+ "${FILESDIR}"/${P}-fno-common.patch |
103 |
+) |
104 |
|
105 |
+src_prepare() { |
106 |
+ default |
107 |
eautoreconf |
108 |
|
109 |
if use elibc_uclibc && use truetype; then |
110 |
# It is stated in the README "Multichar support under XFT requires GNU iconv" |
111 |
- sed -i -e 's/LIBS = @LIBS@/LIBS = @LIBS@ -liconv/' "${S}/src/Makefile.in" |
112 |
+ sed -i -e 's/LIBS = @LIBS@/LIBS = @LIBS@ -liconv/' src/Makefile.in || die |
113 |
fi |
114 |
} |
115 |
|
116 |
@@ -102,7 +109,7 @@ src_install() { |
117 |
} |
118 |
|
119 |
pkg_postinst() { |
120 |
- if [[ -z $RXVT_TERM ]]; then |
121 |
+ if [[ -z ${RXVT_TERM} ]]; then |
122 |
einfo |
123 |
einfo "If you experience problems with curses programs, then this is" |
124 |
einfo "most likely because of incorrectly set termcap / terminfo" |