Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-sports/torcs/, games-sports/torcs/files/, profiles/
Date: Tue, 01 Nov 2022 04:48:31
Message-Id: 1667277441.97caaf827ca530c3b8dcb7b1377bb403cac9b632.jsmolic@gentoo
1 commit: 97caaf827ca530c3b8dcb7b1377bb403cac9b632
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 1 04:37:21 2022 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 1 04:37:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97caaf82
7
8 games-sports/torcs: treeclean
9
10 Closes: https://bugs.gentoo.org/253517
11 Closes: https://bugs.gentoo.org/479698
12 Closes: https://bugs.gentoo.org/601636
13 Closes: https://bugs.gentoo.org/711644
14 Closes: https://bugs.gentoo.org/846671
15 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
16
17 games-sports/torcs/Manifest | 1 -
18 .../torcs/files/torcs-1.3.6-as-needed.patch | 96 ----------------------
19 games-sports/torcs/files/torcs-1.3.6-flags.patch | 14 ----
20 games-sports/torcs/files/torcs-1.3.6-format.patch | 34 --------
21 games-sports/torcs/files/torcs-1.3.6-gcc6.patch | 11 ---
22 games-sports/torcs/files/torcs-1.3.6-gcc7.patch | 11 ---
23 .../torcs/files/torcs-1.3.6-no-automake.patch | 21 -----
24 games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch | 15 ----
25 games-sports/torcs/metadata.xml | 11 ---
26 games-sports/torcs/torcs-1.3.6-r2.ebuild | 68 ---------------
27 profiles/package.mask | 7 --
28 11 files changed, 289 deletions(-)
29
30 diff --git a/games-sports/torcs/Manifest b/games-sports/torcs/Manifest
31 deleted file mode 100644
32 index 0e8af9340f57..000000000000
33 --- a/games-sports/torcs/Manifest
34 +++ /dev/null
35 @@ -1 +0,0 @@
36 -DIST torcs-1.3.6.tar.bz2 477954437 BLAKE2B 294e2775f9d7a88b1781139793fedf1f5e79238ed46ffcda22188bdf9f991180b161ab1057fcfe72205033db43b7a134b9568055e62f2152462de4436b454726 SHA512 4116c920b92ecbf5dcd3f14a137e86685651167f68725f2ad4549b2d3d20e3dc54569685925e08ffff6e7e19e532ecb1a95ec77dfe22a542a26c9e006b0c8c0d
37
38 diff --git a/games-sports/torcs/files/torcs-1.3.6-as-needed.patch b/games-sports/torcs/files/torcs-1.3.6-as-needed.patch
39 deleted file mode 100644
40 index d848538c07ea..000000000000
41 --- a/games-sports/torcs/files/torcs-1.3.6-as-needed.patch
42 +++ /dev/null
43 @@ -1,96 +0,0 @@
44 ---- torcs-1.3.6.orig/Make-default.mk
45 -+++ torcs-1.3.6/Make-default.mk
46 -@@ -402,7 +402,7 @@
47 - ifdef PROGRAM
48 -
49 - ${PROGRAM}: ${OBJECTS} $(subst -l,${EXPORTBASE}/lib/lib, ${LIBS:=.a})
50 -- ${CXX} ${OBJECTS} ${LDFLAGS} ${LIBS} ${SOLIBS} ${EXT_LIBS} -o $@
51 -+ ${CXX} ${LDFLAGS} -o $@ ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS}
52 -
53 - installprogram: ${PROGRAM}
54 - @ createdir="${INSTLIBBASE}" ; \
55 -@@ -420,14 +420,14 @@
56 - ifdef LOCALTOOLS
57 -
58 - ${LOCALTOOLS}: ${OBJECTS} $(subst -l,${EXPORTBASE}/lib/lib, ${LIBS:=.a})
59 -- ${CXX} ${OBJECTS} ${LDFLAGS} ${LIBS} ${EXT_LIBS} ${SOLIBS} -o $@
60 -+ ${CXX} ${LDFLAGS} -o $@ ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS}
61 -
62 - endif
63 -
64 - ifdef TOOLS
65 -
66 - ${TOOLS}: ${OBJECTS} $(subst -l,${EXPORTBASE}/lib/lib, ${LIBS:=.a})
67 -- ${CXX} ${OBJECTS} ${LDFLAGS} ${LIBS} ${EXT_LIBS} ${SOLIBS} -o $@
68 -+ ${CXX} ${LDFLAGS} -o $@ ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS}
69 -
70 - installtools: ${TOOLS}
71 - @createdir="${INSTBINBASE}/${TOOLSDIR}" ; \
72 -@@ -478,7 +478,7 @@
73 - ifdef SOLIBRARY
74 -
75 - ${SOLIBRARY}: ${OBJECTS}
76 -- ${CXX} -shared -o ${SOLIBRARY} ${OBJECTS} ${SOLIBS} ${LDFLAGS} ${LIBSPATH} ${LIBS} ${DEBUG_LIBS}
77 -+ ${CXX} ${CXXFLAGS} ${LDFLAGS} -shared -o ${SOLIBRARY} ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS}
78 - @D=`pwd` ; \
79 - createdir="${EXPORTBASE}/lib" ; \
80 - $(mkinstalldirs) $$createdir ; \
81 -@@ -509,7 +509,7 @@
82 - ifdef MODULE
83 -
84 - ${MODULE}: ${OBJECTS}
85 -- ${CXX} -shared -o ${MODULE} ${OBJECTS} ${LDFLAGS} ${LIBSPATH} ${LIBS}
86 -+ ${CXX} ${CXXFLAGS} ${LDFLAGS} -shared -o ${MODULE} ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS}
87 - @D=`pwd` ; \
88 - createdir="${EXPORTBASE}/${MODULEDIR}" ; \
89 - $(mkinstalldirs) $$createdir ; \
90 ---- torcs-1.3.6.orig/configure.in
91 -+++ torcs-1.3.6/configure.in
92 -@@ -123,11 +123,11 @@
93 - AC_CHECK_LIB(Xxf86vm, XF86VidModeSetViewPort,,AC_MSG_ERROR([Can't find libXxf86vm. Please check config.log and if you can't solve the problem send the file to torcs-users@×××××××××××××××××.net with the subject \"torcs compilation problem\"]))
94 - AC_CHECK_LIB(Xrender, XRenderSetSubpixelOrder,,AC_MSG_ERROR([Can't find libXrender. Please check config.log and if you can't solve the problem send the file to torcs-users@×××××××××××××××××.net with the subject \"torcs compilation problem\"]))
95 - AC_CHECK_LIB(Xrandr, XRRQueryVersion,,AC_MSG_ERROR([Can't find libXrandr. Please check config.log and if you can't solve the problem send the file to torcs-users@×××××××××××××××××.net with the subject \"torcs compilation problem\"]))
96 --AC_CHECK_LIB(openal, alEnable, LDFLAGS="$LDFLAGS -lopenal", AC_MSG_ERROR([Can't find AL/al.h. OpenAL can be found on http://www.openal.org/]))
97 -+AC_CHECK_LIB(openal, alEnable, LIBS="$LIBS -lopenal", AC_MSG_ERROR([Can't find AL/al.h. OpenAL can be found on http://www.openal.org/]))
98 - AC_CHECK_LIB(alut, alutLoadWAVFile,
99 -- LDFLAGS="$LDFLAGS -lalut",
100 -- LDFLAGS="$LDFLAGS")
101 --AC_CHECK_LIB(vorbisfile, ov_fopen, LDFLAGS="$LDFLAGS -lvorbisfile", AC_MSG_ERROR([Can't find libvorbis.]))
102 -+ LIBS="$LIBS -lalut", )
103 -+AC_CHECK_LIB(vorbisfile, ov_fopen, LIBS="$LIBS -lvorbisfile", AC_MSG_ERROR([Can't find libvorbis.]))
104 -+
105 -
106 - AC_CHECK_LIB(dl, dlopen)
107 - AC_CHECK_FUNC(dlopen,,AC_MSG_ERROR([Can't find dlopen function. Please check config.log and if you can't solve the problem send the file to torcs-users@×××××××××××××××××.net with the subject \"torcs compilation problem\"]))
108 ---- torcs-1.3.6.orig/src/libs/Makefile
109 -+++ torcs-1.3.6/src/libs/Makefile
110 -@@ -23,7 +23,7 @@
111 -
112 - TOOLSUBDIRS = txml
113 -
114 --SUBDIRS = confscreens racescreens robottools txml tgf tgfclient client raceengineclient learning \
115 -+SUBDIRS = confscreens racescreens robottools txml tgf tgfclient raceengineclient client learning \
116 - portability math musicplayer
117 -
118 - PKGSUBDIRS = $(SUBDIRS)
119 ---- torcs-1.3.6.orig/src/libs/client/Makefile
120 -+++ torcs-1.3.6/src/libs/client/Makefile
121 -@@ -23,6 +23,8 @@
122 - SOURCES = entry.cpp mainmenu.cpp splash.cpp exitmenu.cpp \
123 - optionmenu.cpp
124 -
125 -+SOLIBS = -lconfscreens -lraceengine
126 -+
127 - LIBS = -lplibssg -lplibsg -lplibul
128 -
129 - EXPDIR = include
130 ---- torcs-1.3.6.orig/src/libs/tgf/Makefile
131 -+++ torcs-1.3.6/src/libs/tgf/Makefile
132 -@@ -29,6 +29,7 @@
133 - profiler.cpp \
134 - hash.cpp
135 -
136 -+SOLIBS = -ltxml
137 -
138 - EXPDIR = include
139 -
140
141 diff --git a/games-sports/torcs/files/torcs-1.3.6-flags.patch b/games-sports/torcs/files/torcs-1.3.6-flags.patch
142 deleted file mode 100644
143 index 5f11fd270ef1..000000000000
144 --- a/games-sports/torcs/files/torcs-1.3.6-flags.patch
145 +++ /dev/null
146 @@ -1,14 +0,0 @@
147 -respect cflags
148 -
149 ---- torcs-1.3.6/configure.in
150 -+++ torcs-1.3.6/configure.in
151 -@@ -50,8 +50,7 @@
152 - ADDCFLAGS="-Wall -fPIC -fno-strict-aliasing"
153 - AC_ARG_ENABLE(debug,
154 - [ --enable-debug set the debug mode],
155 -- ADDCFLAGS="$ADDCFLAGS -g -DDEBUG -DDEBUG_OUT",
156 -- ADDCFLAGS="$ADDCFLAGS -O2")
157 -+ ADDCFLAGS="$ADDCFLAGS -g -DDEBUG -DDEBUG_OUT")
158 -
159 - AC_ARG_ENABLE(xrandr,
160 - [ --disable-xrandr reset the XRANDR mode],
161
162 diff --git a/games-sports/torcs/files/torcs-1.3.6-format.patch b/games-sports/torcs/files/torcs-1.3.6-format.patch
163 deleted file mode 100644
164 index da59c4da4fa0..000000000000
165 --- a/games-sports/torcs/files/torcs-1.3.6-format.patch
166 +++ /dev/null
167 @@ -1,34 +0,0 @@
168 ---- a/src/tools/texmapper/maintexmapper.cpp 2015-12-23 20:55:24.874102363 +0100
169 -+++ b/src/tools/texmapper/maintexmapper.cpp 2015-12-23 20:55:55.071553325 +0100
170 -@@ -103,7 +103,7 @@
171 - {
172 - int i, j;
173 -
174 -- printf(title);
175 -+ printf("%s", title);
176 - for (j = 0; j < 4; j ++){
177 - for (i = 0; i < 4; i ++) {
178 - printf("%.6f ", m[i][j]);
179 ---- a/src/tools/trackgen/objects.cpp 2015-12-23 20:59:49.671287196 +0100
180 -+++ b/src/tools/trackgen/objects.cpp 2015-12-23 21:02:21.639523189 +0100
181 -@@ -234,9 +234,9 @@
182 -
183 - ssgLeaf *vt = (ssgLeaf *)ent;
184 - if (vt->getCullFace() == TRUE) {
185 -- surf = "SURF 0x10\n";
186 -+ surf = "0x10";
187 - } else {
188 -- surf = "SURF 0x30\n";
189 -+ surf = "0x30";
190 - }
191 -
192 - int num_verts = vt->getNumVertices();
193 -@@ -304,7 +304,7 @@
194 - fprintf (save_fd, "numsurf %d\n", num_tris);
195 -
196 - for (i = 0; i < num_tris; i++) {
197 -- fprintf (save_fd, surf);
198 -+ fprintf (save_fd, "SURF %s\n", surf);
199 - fprintf (save_fd, "mat 0\n");
200 - fprintf (save_fd, "refs 3\n");
201 - fprintf (save_fd, "%d %g %g\n",
202
203 diff --git a/games-sports/torcs/files/torcs-1.3.6-gcc6.patch b/games-sports/torcs/files/torcs-1.3.6-gcc6.patch
204 deleted file mode 100644
205 index 6daf22a81b11..000000000000
206 --- a/games-sports/torcs/files/torcs-1.3.6-gcc6.patch
207 +++ /dev/null
208 @@ -1,11 +0,0 @@
209 ---- a/src/drivers/olethros/geometry.cpp
210 -+++ b/src/drivers/olethros/geometry.cpp
211 -@@ -27,6 +27,8 @@
212 - #ifdef WIN32
213 - #include <float.h>
214 - #define isnan _isnan
215 -+#elif __cplusplus >= 201103L
216 -+using std::isnan;
217 - #endif
218 -
219 -
220
221 diff --git a/games-sports/torcs/files/torcs-1.3.6-gcc7.patch b/games-sports/torcs/files/torcs-1.3.6-gcc7.patch
222 deleted file mode 100644
223 index af139ad509de..000000000000
224 --- a/games-sports/torcs/files/torcs-1.3.6-gcc7.patch
225 +++ /dev/null
226 @@ -1,11 +0,0 @@
227 ---- a/src/libs/musicplayer/OpenALMusicPlayer.cpp
228 -+++ b/src/libs/musicplayer/OpenALMusicPlayer.cpp
229 -@@ -161,7 +161,7 @@
230 - {
231 - char pcm[BUFFERSIZE];
232 - int size = 0;
233 -- const char* error = '\0';
234 -+ const char* error = "";
235 -
236 - if (!stream->read(pcm, BUFFERSIZE, &size, &error)) {
237 - GfError("OpenALMusicPlayer: Stream read error: %s\n", error);
238
239 diff --git a/games-sports/torcs/files/torcs-1.3.6-no-automake.patch b/games-sports/torcs/files/torcs-1.3.6-no-automake.patch
240 deleted file mode 100644
241 index 9b47bfb9a64c..000000000000
242 --- a/games-sports/torcs/files/torcs-1.3.6-no-automake.patch
243 +++ /dev/null
244 @@ -1,21 +0,0 @@
245 -torcs doesn't use automake, so it shouldn't be calling the macro
246 -
247 -http://bugs.gentoo.org/408473
248 -
249 ---- torcs-1.3.6.orig/configure.in
250 -+++ torcs-1.3.6/configure.in
251 -@@ -15,9 +15,12 @@
252 - #
253 - ##############################################################################
254 -
255 --AC_INIT(Make-config.in)
256 -+AC_INIT(torcs, 1.3.6)
257 - AC_CONFIG_HEADERS(config.h)
258 --AM_INIT_AUTOMAKE(torcs, 1.3.6)
259 -+dnl Workaround code using old VERSION instead of new PACKAGE_VERSION
260 -+VERSION=$PACKAGE_VERSION
261 -+AC_DEFINE_UNQUOTED([VERSION], "$VERSION", [old VERSION workaround])
262 -+AC_SUBST(VERSION)
263 -
264 - dnl Checks for programs.
265 - AC_PROG_CC
266
267 diff --git a/games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch b/games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch
268 deleted file mode 100644
269 index f87fb750d199..000000000000
270 --- a/games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch
271 +++ /dev/null
272 @@ -1,15 +0,0 @@
273 ---- a/configure.in
274 -+++ b/configure.in
275 -@@ -116,12 +116,8 @@
276 - AC_CHECK_LIB(ICE, IceSetIOErrorHandler,,AC_MSG_ERROR([Can't find libICE. Please check config.log and if you can't solve the problem send the file to torcs-users@×××××××××××××××××.net with the subject \"torcs compilation problem\"]))
277 - dnl Replace `main' with a function in -lSM:
278 - AC_CHECK_LIB(SM, SmsSetErrorHandler,,AC_MSG_ERROR([Can't find libSM. Please check config.log and if you can't solve the problem send the file to torcs-users@×××××××××××××××××.net with the subject \"torcs compilation problem\"]))
279 --dnl Replace `main' with a function in -lXt:
280 --AC_CHECK_LIB(Xt, XtDisplay,,AC_MSG_ERROR([Can't find libXt. Please check config.log and if you can't solve the problem send the file to torcs-users@×××××××××××××××××.net with the subject \"torcs compilation problem\"]))
281 - dnl Replace `main' with a function in -lXi:
282 - AC_CHECK_LIB(Xi, XOpenDevice,,AC_MSG_ERROR([Can't find libXi. Please check config.log and if you can't solve the problem send the file to torcs-users@×××××××××××××××××.net with the subject \"torcs compilation problem\"]))
283 --dnl Replace `main' with a function in -lXmu:
284 --AC_CHECK_LIB(Xmu, XmuSimpleErrorHandler,,AC_MSG_ERROR([Can't find libXmu. Please check config.log and if you can't solve the problem send the file to torcs-users@×××××××××××××××××.net with the subject \"torcs compilation problem\"]))
285 - AC_CHECK_LIB(Xxf86vm, XF86VidModeSetViewPort,,AC_MSG_ERROR([Can't find libXxf86vm. Please check config.log and if you can't solve the problem send the file to torcs-users@×××××××××××××××××.net with the subject \"torcs compilation problem\"]))
286 - AC_CHECK_LIB(Xrender, XRenderSetSubpixelOrder,,AC_MSG_ERROR([Can't find libXrender. Please check config.log and if you can't solve the problem send the file to torcs-users@×××××××××××××××××.net with the subject \"torcs compilation problem\"]))
287 - AC_CHECK_LIB(Xrandr, XRRQueryVersion,,AC_MSG_ERROR([Can't find libXrandr. Please check config.log and if you can't solve the problem send the file to torcs-users@×××××××××××××××××.net with the subject \"torcs compilation problem\"]))
288
289 diff --git a/games-sports/torcs/metadata.xml b/games-sports/torcs/metadata.xml
290 deleted file mode 100644
291 index d676ee2e4e32..000000000000
292 --- a/games-sports/torcs/metadata.xml
293 +++ /dev/null
294 @@ -1,11 +0,0 @@
295 -<?xml version="1.0" encoding="UTF-8"?>
296 -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
297 -<pkgmetadata>
298 - <maintainer type="project">
299 - <email>games@g.o</email>
300 - <name>Gentoo Games Project</name>
301 - </maintainer>
302 - <upstream>
303 - <remote-id type="sourceforge">torcs</remote-id>
304 - </upstream>
305 -</pkgmetadata>
306
307 diff --git a/games-sports/torcs/torcs-1.3.6-r2.ebuild b/games-sports/torcs/torcs-1.3.6-r2.ebuild
308 deleted file mode 100644
309 index 00ec9f2fc5d5..000000000000
310 --- a/games-sports/torcs/torcs-1.3.6-r2.ebuild
311 +++ /dev/null
312 @@ -1,68 +0,0 @@
313 -# Copyright 1999-2021 Gentoo Authors
314 -# Distributed under the terms of the GNU General Public License v2
315 -
316 -EAPI=6
317 -
318 -inherit autotools desktop vcs-clean
319 -
320 -DESCRIPTION="The Open Racing Car Simulator"
321 -HOMEPAGE="http://torcs.sourceforge.net/"
322 -SRC_URI="mirror://sourceforge/torcs/${P}.tar.bz2"
323 -
324 -LICENSE="GPL-2+ Free-Art-1.2"
325 -SLOT="0"
326 -KEYWORDS="~amd64 ~x86"
327 -
328 -RDEPEND="media-libs/freealut
329 - media-libs/freeglut
330 - media-libs/libpng:0
331 - media-libs/libvorbis:=
332 - media-libs/openal
333 - >=media-libs/plib-1.8.5
334 - sys-libs/zlib:0=
335 - virtual/opengl
336 - virtual/glu
337 - x11-libs/libX11
338 - x11-libs/libXrandr"
339 -DEPEND="${RDEPEND}
340 - x11-base/xorg-proto"
341 -
342 -PATCHES=(
343 - "${FILESDIR}"/${P}-no-automake.patch
344 - "${FILESDIR}"/${P}-as-needed.patch
345 - "${FILESDIR}"/${P}-flags.patch
346 - "${FILESDIR}"/${P}-format.patch
347 - "${FILESDIR}"/${P}-noXmuXt.patch
348 - "${FILESDIR}"/${P}-gcc6.patch
349 - "${FILESDIR}"/${P}-gcc7.patch
350 -)
351 -
352 -src_prepare() {
353 - default
354 -
355 - eautoreconf
356 - ecvs_clean
357 -}
358 -
359 -src_configure() {
360 - addpredict $(echo /dev/snd/controlC? | sed 's/ /:/g')
361 - [[ -e /dev/dsp ]] && addpredict /dev/dsp
362 - econf \
363 - --datadir=/usr/share \
364 - --x-libraries=/usr/$(get_libdir) \
365 - --enable-xrandr
366 -}
367 -
368 -src_compile() {
369 - # So ugly... patches welcome.
370 - emake -j1
371 -}
372 -
373 -src_install() {
374 - emake -j1 DESTDIR="${D}" install datainstall
375 - newicon Ticon.png ${PN}.png
376 - make_desktop_entry ${PN} TORCS
377 - dodoc README doc/history/history.txt
378 - doman doc/man/*.6
379 - dodoc -r doc/faq/faq.html doc/tutorials doc/userman
380 -}
381
382 diff --git a/profiles/package.mask b/profiles/package.mask
383 index 7df7cb3be0fc..1804812f2ec4 100644
384 --- a/profiles/package.mask
385 +++ b/profiles/package.mask
386 @@ -376,13 +376,6 @@ games-simulation/bcs-demo
387 =app-shells/bash-5.2*
388 =sys-libs/readline-8.2*
389
390 -# Michał Górny <mgorny@g.o> (2022-09-26)
391 -# Bundles a vulnerable version of dev-libs/expat. The current Gentoo
392 -# version is from 2014, pending bump to the last upstream release
393 -# from 2016. Effectively unmaintained. EAPI 6.
394 -# Removal on 2022-10-26. Bug #253517.
395 -games-sports/torcs
396 -
397 # John Helmert III <ajak@g.o> (2022-09-18)
398 # Unfixed root privilege escalation, bug #631552
399 sys-cluster/slurm