1 |
commit: 547d01a0e4870e0095358d89f5293f62d88fd97a |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Sep 8 20:33:45 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 8 21:24:51 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=547d01a0 |
7 |
|
8 |
app-editors/hteditor: remove unused patches |
9 |
|
10 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
11 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/17476 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
app-editors/hteditor/files/hteditor-2.1.0-AR.patch | 14 ------ |
16 |
.../files/hteditor-2.1.0-format-security.patch | 57 ---------------------- |
17 |
.../hteditor/files/hteditor-2.1.0-gcc-10.patch | 36 -------------- |
18 |
.../hteditor/files/hteditor-2.1.0-gcc-7.patch | 32 ------------ |
19 |
4 files changed, 139 deletions(-) |
20 |
|
21 |
diff --git a/app-editors/hteditor/files/hteditor-2.1.0-AR.patch b/app-editors/hteditor/files/hteditor-2.1.0-AR.patch |
22 |
deleted file mode 100644 |
23 |
index 60a0427a212..00000000000 |
24 |
--- a/app-editors/hteditor/files/hteditor-2.1.0-AR.patch |
25 |
+++ /dev/null |
26 |
@@ -1,14 +0,0 @@ |
27 |
-https://bugs.gentoo.org/722040 |
28 |
---- a/configure.ac |
29 |
-+++ b/configure.ac |
30 |
-@@ -104,8 +104,8 @@ AC_PROG_CPP |
31 |
- AC_PROG_CXX |
32 |
- AC_PROG_YACC |
33 |
- AM_PROG_LEX |
34 |
--AC_PATH_PROG(AR, ar) |
35 |
--AC_PATH_PROG(AR, gar) |
36 |
-+AC_CHECK_TOOL(AR, ar) |
37 |
-+AC_CHECK_TOOL(AR, gar) |
38 |
- |
39 |
- if test "x$AR" = "x"; then |
40 |
- AC_MSG_ERROR([*** 'ar' and 'gar' missing, please install one of them or fix your \$PATH ***]) |
41 |
|
42 |
diff --git a/app-editors/hteditor/files/hteditor-2.1.0-format-security.patch b/app-editors/hteditor/files/hteditor-2.1.0-format-security.patch |
43 |
deleted file mode 100644 |
44 |
index 408d1b9b1be..00000000000 |
45 |
--- a/app-editors/hteditor/files/hteditor-2.1.0-format-security.patch |
46 |
+++ /dev/null |
47 |
@@ -1,57 +0,0 @@ |
48 |
-https://bugs.gentoo.org/521018 |
49 |
- |
50 |
-From 5839355d67ff822593190473a41512ca19e4280a Mon Sep 17 00:00:00 2001 |
51 |
-From: Anton Gladky <gladk@××××××.org> |
52 |
-Date: Wed, 18 Feb 2015 21:20:39 +0100 |
53 |
-Subject: [PATCH] Fix "format not a string" compilation failure |
54 |
- |
55 |
-Compilation with the flag -Werror=format-security fails with |
56 |
-the message: |
57 |
- |
58 |
-error: format not a string literal and no format arguments |
59 |
- |
60 |
-This patch solves the issue. |
61 |
---- |
62 |
- asm/x86dis.cc | 6 +++--- |
63 |
- htpal.cc | 2 +- |
64 |
- 2 files changed, 4 insertions(+), 4 deletions(-) |
65 |
- |
66 |
-diff --git a/asm/x86dis.cc b/asm/x86dis.cc |
67 |
-index 0830d9c..bb9028f 100644 |
68 |
---- a/asm/x86dis.cc |
69 |
-+++ b/asm/x86dis.cc |
70 |
-@@ -1218,15 +1218,15 @@ void x86dis::str_op(char *opstr, int *opstrlen, x86dis_insn *insn, x86_insn_op * |
71 |
- default: {assert(0);} |
72 |
- } |
73 |
- if (!insn->rexprefix) { |
74 |
-- sprintf(opstr, x86_regs[j][op->reg]); |
75 |
-+ sprintf(opstr, "%s", x86_regs[j][op->reg]); |
76 |
- } else { |
77 |
-- sprintf(opstr, x86_64regs[j][op->reg]); |
78 |
-+ sprintf(opstr, "%s", x86_64regs[j][op->reg]); |
79 |
- } |
80 |
- break; |
81 |
- } |
82 |
- case X86_OPTYPE_SEG: |
83 |
- if (x86_segs[op->seg]) { |
84 |
-- sprintf(opstr, x86_segs[op->seg]); |
85 |
-+ sprintf(opstr, "%s", x86_segs[op->seg]); |
86 |
- } |
87 |
- break; |
88 |
- case X86_OPTYPE_CRX: |
89 |
-diff --git a/htpal.cc b/htpal.cc |
90 |
-index 03dea18..3d5f51e 100644 |
91 |
---- a/htpal.cc |
92 |
-+++ b/htpal.cc |
93 |
-@@ -307,7 +307,7 @@ void palette_entry::strvalue(char *buf32bytes) |
94 |
- text = "normal"; |
95 |
- } |
96 |
- p = tag_make_color(p, 32, VCP(fg, bg)); |
97 |
-- p += sprintf(p, text); |
98 |
-+ p += sprintf(p, "%s", text); |
99 |
- p = tag_make_default_color(p, 32); |
100 |
- *p = 0; |
101 |
- } |
102 |
--- |
103 |
-2.16.2 |
104 |
- |
105 |
|
106 |
diff --git a/app-editors/hteditor/files/hteditor-2.1.0-gcc-10.patch b/app-editors/hteditor/files/hteditor-2.1.0-gcc-10.patch |
107 |
deleted file mode 100644 |
108 |
index 3516efd2871..00000000000 |
109 |
--- a/app-editors/hteditor/files/hteditor-2.1.0-gcc-10.patch |
110 |
+++ /dev/null |
111 |
@@ -1,36 +0,0 @@ |
112 |
-Backport a subset of upstream c++11 fixes. |
113 |
---- a/htmacho.cc |
114 |
-+++ b/htmacho.cc |
115 |
-@@ -146,7 +146,7 @@ void ht_macho::init(Bounds *b, File *f, format_viewer_if **ifs, ht_format_group |
116 |
- break; |
117 |
- case MACHO_CPU_TYPE_I386: |
118 |
- switch (c->flavor) { |
119 |
-- case -1: |
120 |
-+ default: |
121 |
- createHostStruct(&c->state, MACHO_I386_THREAD_STATE_struct, image_endianess); |
122 |
- break; |
123 |
- } |
124 |
---- a/htmachohd.cc |
125 |
-+++ b/htmachohd.cc |
126 |
-@@ -313,7 +313,7 @@ static ht_view *htmachoheader_init(Bounds *b, File *file, ht_format_group *group |
127 |
- switch (macho_shared->header.cputype) { |
128 |
- case MACHO_CPU_TYPE_I386: |
129 |
- switch (c->flavor) { |
130 |
-- case -1: |
131 |
-+ default: |
132 |
- m->add_staticmask_ptable(macho_i386_thread_state, ofs+4*4/*4 32bit words in thread_header*/, isbigendian); |
133 |
- break; |
134 |
- } |
135 |
---- a/io/types.h |
136 |
-+++ b/io/types.h |
137 |
-@@ -87,8 +87,8 @@ union htmsg_param { |
138 |
- }; |
139 |
- |
140 |
- struct htmsg { |
141 |
-- int msg; |
142 |
-- int type; |
143 |
-+ unsigned int msg; |
144 |
-+ unsigned int type; |
145 |
- htmsg_param data1; |
146 |
- htmsg_param data2; |
147 |
- }; |
148 |
|
149 |
diff --git a/app-editors/hteditor/files/hteditor-2.1.0-gcc-7.patch b/app-editors/hteditor/files/hteditor-2.1.0-gcc-7.patch |
150 |
deleted file mode 100644 |
151 |
index ebcc3c0aa43..00000000000 |
152 |
--- a/app-editors/hteditor/files/hteditor-2.1.0-gcc-7.patch |
153 |
+++ /dev/null |
154 |
@@ -1,32 +0,0 @@ |
155 |
-https://bugs.gentoo.org/show_bug.cgi?id=620732 |
156 |
- |
157 |
-Fixes build failure on gcc-7: |
158 |
- |
159 |
- htapp.cc: In function 'uint isqr(uint)': |
160 |
- htapp.cc:3026:18: error: call of overloaded 'abs(uint)' is ambiguous |
161 |
- while (abs(a - b) > 1) { |
162 |
- ^ |
163 |
- |
164 |
-Picked upstream patch that fixes it: |
165 |
- |
166 |
-commit 3b62f2f7e49e024ec9d3c5ffc8ff9cd87a107af6 |
167 |
-Author: Sebastian Biallas <sb@×××××××.net> |
168 |
-Date: Sun Nov 13 15:25:26 2016 +0100 |
169 |
- |
170 |
- use unsigned variables |
171 |
- |
172 |
-diff --git a/htapp.cc b/htapp.cc |
173 |
-index 53d8725..03236e2 100644 |
174 |
---- a/htapp.cc |
175 |
-+++ b/htapp.cc |
176 |
-@@ -3021,8 +3021,8 @@ void do_modal_resize() |
177 |
- |
178 |
- static uint isqr(uint u) |
179 |
- { |
180 |
-- uint a = 2; |
181 |
-- uint b = u/a; |
182 |
-+ int a = 2; |
183 |
-+ int b = u/a; |
184 |
- while (abs(a - b) > 1) { |
185 |
- a = (a+b)/2; |
186 |
- b = u/a; |