1 |
commit: 9d31cdd2b84207dafe2af4e969a12742a7630836 |
2 |
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net> |
3 |
AuthorDate: Wed Jun 16 08:43:01 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 21 22:26:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d31cdd2 |
7 |
|
8 |
dev-libs/tvision: properly detect ar |
9 |
|
10 |
Closes: https://bugs.gentoo.org/796278 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/21333 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
...mmand-now-can-be-configured-from-the-envi.patch | 56 ++++++++++++++++++++ |
17 |
.../files/tvision-2.2.3-0001-use-proper-AR.patch | 23 --------- |
18 |
...ed-configuration-option-to-exclude-libgpm.patch | 60 ++++++++++++++++++++++ |
19 |
.../tvision-2.2.3-0003-Adjusted-c-years.patch | 34 ++++++++++++ |
20 |
...n-2.2.3-0004-Made-ar-command-configurable.patch | 23 +++++++++ |
21 |
dev-libs/tvision/tvision-2.2.3.ebuild | 10 ++-- |
22 |
6 files changed, 180 insertions(+), 26 deletions(-) |
23 |
|
24 |
diff --git a/dev-libs/tvision/files/tvision-2.2.3-0001-Added-ar-command-now-can-be-configured-from-the-envi.patch b/dev-libs/tvision/files/tvision-2.2.3-0001-Added-ar-command-now-can-be-configured-from-the-envi.patch |
25 |
new file mode 100644 |
26 |
index 00000000000..239161b2f0a |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/tvision/files/tvision-2.2.3-0001-Added-ar-command-now-can-be-configured-from-the-envi.patch |
29 |
@@ -0,0 +1,56 @@ |
30 |
+From: "Salvador E. Tropea" <salvador@××××××××.ar> |
31 |
+Date: Thu, 17 Jun 2021 13:11:22 -0300 |
32 |
+Subject: [PATCH 1/4] Added `ar` command now can be configured from the |
33 |
+ environment |
34 |
+ |
35 |
+- Using the AR environment variable. |
36 |
+- Related to issue: #1 |
37 |
+- Gentoo issue: https://bugs.gentoo.org/796278 |
38 |
+--- |
39 |
+ conflib.pl | 24 +++++++++++++++--------- |
40 |
+ 1 file changed, 15 insertions(+), 9 deletions(-) |
41 |
+ |
42 |
+diff --git a/conflib.pl b/conflib.pl |
43 |
+index 0abd33df..946bfa95 100644 |
44 |
+--- a/conflib.pl |
45 |
++++ b/conflib.pl |
46 |
+@@ -1386,21 +1386,27 @@ sub LookForGNUMake |
47 |
+ |
48 |
+ sub LookForGNUar |
49 |
+ { |
50 |
+- my $test; |
51 |
+- print 'Looking for GNU ar: '; |
52 |
++ my ($ar, $test); |
53 |
+ |
54 |
+- if ($conf{'GNU_AR'}) |
55 |
++ print 'Looking for GNU ar: '; |
56 |
++ $ar=$conf{'GNU_AR'}; |
57 |
++ if ($ar) |
58 |
+ { |
59 |
+- print "$conf{'GNU_AR'} (cached)\n"; |
60 |
+- return $conf{'GNU_AR'}; |
61 |
++ print "$ar (cached)\n"; |
62 |
++ return $ar; |
63 |
++ } |
64 |
++ $ar=$ENV{'AR'}; |
65 |
++ if (!length($ar)) |
66 |
++ { |
67 |
++ $ar='ar'; |
68 |
+ } |
69 |
+ $conf{'UseRanLib'}=0; |
70 |
+- $test=RunRedirect('ar --version',$ErrorLog); |
71 |
++ $test=RunRedirect($ar.' --version',$ErrorLog); |
72 |
+ if (($test=~/GNU ar/) || ($test=~/BSD ar/)) |
73 |
+ { |
74 |
+- $conf{'GNU_AR'}='ar'; |
75 |
+- print "ar\n"; |
76 |
+- return 'ar'; |
77 |
++ $conf{'GNU_AR'}=$ar; |
78 |
++ print "$ar\n"; |
79 |
++ return $ar; |
80 |
+ } |
81 |
+ $test=RunRedirect('gar --version',$ErrorLog); |
82 |
+ if ($test=~/GNU ar/) |
83 |
+-- |
84 |
+2.32.0 |
85 |
+ |
86 |
|
87 |
diff --git a/dev-libs/tvision/files/tvision-2.2.3-0001-use-proper-AR.patch b/dev-libs/tvision/files/tvision-2.2.3-0001-use-proper-AR.patch |
88 |
deleted file mode 100644 |
89 |
index ce45ec32ef5..00000000000 |
90 |
--- a/dev-libs/tvision/files/tvision-2.2.3-0001-use-proper-AR.patch |
91 |
+++ /dev/null |
92 |
@@ -1,23 +0,0 @@ |
93 |
-From 017a1059067ab58a9286b3049505cb3e77696de5 Mon Sep 17 00:00:00 2001 |
94 |
-From: Bernd Waibel <waebbl-gentoo@××××××.net> |
95 |
-Date: Mon, 14 Jun 2021 17:48:45 +0200 |
96 |
-Subject: [PATCH 2/2] use proper AR |
97 |
- |
98 |
-Signed-off-by: Bernd Waibel <waebbl-gentoo@××××××.net> |
99 |
---- |
100 |
- intl/dummy/Makefile | 2 +- |
101 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
102 |
- |
103 |
-diff --git a/intl/dummy/Makefile b/intl/dummy/Makefile |
104 |
-index c32b0a8..d47e185 100644 |
105 |
---- a/intl/dummy/Makefile |
106 |
-+++ b/intl/dummy/Makefile |
107 |
-@@ -2,4 +2,4 @@ RHIDE_GCC=gcc |
108 |
- CC=$(RHIDE_GCC) |
109 |
- |
110 |
- libtvfintl.a: intldummy.o |
111 |
-- ar -rv libtvfintl.a intldummy.o |
112 |
-+ $(AR) -rv libtvfintl.a intldummy.o |
113 |
--- |
114 |
-2.32.0 |
115 |
- |
116 |
|
117 |
diff --git a/dev-libs/tvision/files/tvision-2.2.3-0002-Added-configuration-option-to-exclude-libgpm.patch b/dev-libs/tvision/files/tvision-2.2.3-0002-Added-configuration-option-to-exclude-libgpm.patch |
118 |
new file mode 100644 |
119 |
index 00000000000..03cbb76a82d |
120 |
--- /dev/null |
121 |
+++ b/dev-libs/tvision/files/tvision-2.2.3-0002-Added-configuration-option-to-exclude-libgpm.patch |
122 |
@@ -0,0 +1,60 @@ |
123 |
+From: "Salvador E. Tropea" <salvador@××××××××.ar> |
124 |
+Date: Thu, 17 Jun 2021 13:28:36 -0300 |
125 |
+Subject: [PATCH 2/4] Added configuration option to exclude libgpm |
126 |
+ |
127 |
+- Fixes #1 |
128 |
+--- |
129 |
+ config.pl | 16 ++++++++++++++-- |
130 |
+ 1 file changed, 14 insertions(+), 2 deletions(-) |
131 |
+ |
132 |
+diff --git a/config.pl b/config.pl |
133 |
+index 21d81ff3..424e3065 100644 |
134 |
+--- a/config.pl |
135 |
++++ b/config.pl |
136 |
+@@ -73,7 +73,14 @@ if ($OS eq 'DOS') |
137 |
+ |
138 |
+ if ($OS eq 'UNIX') |
139 |
+ { |
140 |
+- LookForGPM($GPMVersionNeeded); |
141 |
++ if ($conf{'gpm'} eq 'no') |
142 |
++ { |
143 |
++ $conf{'HAVE_GPM'}='no'; |
144 |
++ } |
145 |
++ else |
146 |
++ { |
147 |
++ LookForGPM($GPMVersionNeeded); |
148 |
++ } |
149 |
+ LookForNCurses($NCursesVersionNeeded); |
150 |
+ LookForKeysyms(); |
151 |
+ LookForXlib(); |
152 |
+@@ -424,6 +431,10 @@ sub SeeCommandLine |
153 |
+ { |
154 |
+ $conf{'no-dynamic'}='yes'; |
155 |
+ } |
156 |
++ elsif ($i eq '--without-gpm') |
157 |
++ { |
158 |
++ $conf{'gpm'}='no'; |
159 |
++ } |
160 |
+ # elsif ($i eq '--unsafe-memcpy') |
161 |
+ # { |
162 |
+ # $conf{'HAVE_UNSAFE_MEMCPY'}='yes'; |
163 |
+@@ -482,6 +493,7 @@ sub ShowHelp |
164 |
+ print "--no-intl : don't use international support.\n"; |
165 |
+ print "--without-static : don't create the static library.\n"; |
166 |
+ print "--without-dynamic: don't create the dynamic library.\n"; |
167 |
++ print "--without-gpm : skip gpm library detection.\n"; |
168 |
+ print "--with-mss : compiles with MSS memory debugger.\n"; |
169 |
+ print "--without-mss : compiles without MSS [default].\n"; |
170 |
+ print "--with-ssc : compiles using Simple Streams Compatibility.\n"; |
171 |
+@@ -532,7 +544,7 @@ sub GiveAdvice |
172 |
+ print " using this library reconfigure using --no-intl. Read about it in the readme.\n"; |
173 |
+ print " [[[[[[[*******************>>>>> IMPORTANT!!! <<<<<*******************]]]]]]]\n"; |
174 |
+ } |
175 |
+- if ((@conf{'HAVE_GPM'} eq 'no') && ($OSf eq 'Linux')) |
176 |
++ if ((@conf{'HAVE_GPM'} eq 'no') && ($OSf eq 'Linux') && ($conf{'gpm'} ne 'no')) |
177 |
+ { |
178 |
+ print "\n"; |
179 |
+ print "* No mouse support for console! please install the libgpm package needed\n"; |
180 |
+-- |
181 |
+2.32.0 |
182 |
+ |
183 |
|
184 |
diff --git a/dev-libs/tvision/files/tvision-2.2.3-0003-Adjusted-c-years.patch b/dev-libs/tvision/files/tvision-2.2.3-0003-Adjusted-c-years.patch |
185 |
new file mode 100644 |
186 |
index 00000000000..743591c324a |
187 |
--- /dev/null |
188 |
+++ b/dev-libs/tvision/files/tvision-2.2.3-0003-Adjusted-c-years.patch |
189 |
@@ -0,0 +1,34 @@ |
190 |
+From: "Salvador E. Tropea" <salvador@××××××××.ar> |
191 |
+Date: Thu, 17 Jun 2021 13:35:42 -0300 |
192 |
+Subject: [PATCH 3/4] Adjusted (c) years |
193 |
+ |
194 |
+--- |
195 |
+ config.pl | 2 +- |
196 |
+ conflib.pl | 2 +- |
197 |
+ 2 files changed, 2 insertions(+), 2 deletions(-) |
198 |
+ |
199 |
+diff --git a/config.pl b/config.pl |
200 |
+index 424e3065..cda54600 100644 |
201 |
+--- a/config.pl |
202 |
++++ b/config.pl |
203 |
+@@ -1,5 +1,5 @@ |
204 |
+ #!/usr/bin/perl |
205 |
+-# Copyright (C) 1999-2012 by Salvador E. Tropea (SET), |
206 |
++# Copyright (C) 1999-2021 by Salvador E. Tropea (SET), |
207 |
+ # see copyrigh file for details |
208 |
+ # |
209 |
+ # To specify the compilation flags define the CFLAGS environment variable. |
210 |
+diff --git a/conflib.pl b/conflib.pl |
211 |
+index 946bfa95..c8e70204 100644 |
212 |
+--- a/conflib.pl |
213 |
++++ b/conflib.pl |
214 |
+@@ -1,5 +1,5 @@ |
215 |
+ #!/usr/bin/perl |
216 |
+-# Copyright (C) 1999-2004 by Salvador E. Tropea (SET), |
217 |
++# Copyright (C) 1999-2021 by Salvador E. Tropea (SET), |
218 |
+ # see copyrigh file for details |
219 |
+ # |
220 |
+ # Common configuration routines. |
221 |
+-- |
222 |
+2.32.0 |
223 |
+ |
224 |
|
225 |
diff --git a/dev-libs/tvision/files/tvision-2.2.3-0004-Made-ar-command-configurable.patch b/dev-libs/tvision/files/tvision-2.2.3-0004-Made-ar-command-configurable.patch |
226 |
new file mode 100644 |
227 |
index 00000000000..9c67313523a |
228 |
--- /dev/null |
229 |
+++ b/dev-libs/tvision/files/tvision-2.2.3-0004-Made-ar-command-configurable.patch |
230 |
@@ -0,0 +1,23 @@ |
231 |
+From: "Salvador E. Tropea" <salvador@××××××××.ar> |
232 |
+Date: Thu, 17 Jun 2021 13:36:09 -0300 |
233 |
+Subject: [PATCH 4/4] Made ar command configurable. |
234 |
+ |
235 |
+--- |
236 |
+ intl/dummy/Makefile | 3 ++- |
237 |
+ 1 file changed, 2 insertions(+), 1 deletion(-) |
238 |
+ |
239 |
+diff --git a/intl/dummy/Makefile b/intl/dummy/Makefile |
240 |
+index c32b0a8b..e24c1976 100644 |
241 |
+--- a/intl/dummy/Makefile |
242 |
++++ b/intl/dummy/Makefile |
243 |
+@@ -1,5 +1,6 @@ |
244 |
+ RHIDE_GCC=gcc |
245 |
++RHIDE_AR=ar |
246 |
+ CC=$(RHIDE_GCC) |
247 |
+ |
248 |
+ libtvfintl.a: intldummy.o |
249 |
+- ar -rv libtvfintl.a intldummy.o |
250 |
++ $(RHIDE_AR) -rv libtvfintl.a intldummy.o |
251 |
+-- |
252 |
+2.32.0 |
253 |
+ |
254 |
|
255 |
diff --git a/dev-libs/tvision/tvision-2.2.3.ebuild b/dev-libs/tvision/tvision-2.2.3.ebuild |
256 |
index 28c667ecd8d..9f8e1f68959 100644 |
257 |
--- a/dev-libs/tvision/tvision-2.2.3.ebuild |
258 |
+++ b/dev-libs/tvision/tvision-2.2.3.ebuild |
259 |
@@ -16,7 +16,7 @@ S="${WORKDIR}/${PN}" |
260 |
LICENSE="GPL-2" |
261 |
SLOT="0" |
262 |
KEYWORDS="~amd64 ~ppc ~x86" |
263 |
-IUSE="examples nls" |
264 |
+IUSE="examples gpm nls" |
265 |
|
266 |
DOCS=( readme.txt THANKS TODO ) |
267 |
HTML_DOCS=( www-site/. ) |
268 |
@@ -25,7 +25,6 @@ RDEPEND=" |
269 |
dev-libs/libbsd |
270 |
media-libs/allegro:0[X] |
271 |
sys-apps/util-linux |
272 |
- sys-libs/gpm |
273 |
sys-libs/ncurses:0= |
274 |
x11-libs/libICE |
275 |
x11-libs/libSM |
276 |
@@ -36,6 +35,7 @@ RDEPEND=" |
277 |
x11-libs/libXmu |
278 |
x11-libs/libXt |
279 |
x11-libs/libxcb:= |
280 |
+ gpm? ( sys-libs/gpm ) |
281 |
" |
282 |
DEPEND="${RDEPEND}" |
283 |
BDEPEND="sys-devel/gettext" |
284 |
@@ -43,7 +43,10 @@ BDEPEND="sys-devel/gettext" |
285 |
PATCHES=( |
286 |
"${FILESDIR}"/${PN}-2.2.1.4-flags.patch |
287 |
"${FILESDIR}"/${PN}-2.2.1.4-ldconfig.patch |
288 |
- "${FILESDIR}"/${P}-0001-use-proper-AR.patch |
289 |
+ "${FILESDIR}"/${P}-0001-Added-ar-command-now-can-be-configured-from-the-envi.patch |
290 |
+ "${FILESDIR}"/${P}-0002-Added-configuration-option-to-exclude-libgpm.patch |
291 |
+ "${FILESDIR}"/${P}-0003-Adjusted-c-years.patch |
292 |
+ "${FILESDIR}"/${P}-0004-Made-ar-command-configurable.patch |
293 |
) |
294 |
|
295 |
src_configure() { |
296 |
@@ -58,6 +61,7 @@ src_configure() { |
297 |
--x-include="${EPREFIX}/usr/include/X11" |
298 |
) |
299 |
|
300 |
+ use gpm || myconf+=( --without-gpm ) |
301 |
use nls || myconf+=( --no-intl ) |
302 |
|
303 |
# Note: Do not use econf here, this isn't an autoconf configure script, |