Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/playmidi/, profiles/, media-sound/playmidi/files/
Date: Sun, 28 Apr 2019 20:03:07
Message-Id: 1556481751.c646a97e835d9b0f3f6ce544c3ccfba835bca0d4.mgorny@gentoo
1 commit: c646a97e835d9b0f3f6ce544c3ccfba835bca0d4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 28 20:00:35 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 28 20:02:31 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c646a97e
7
8 media-sound/playmidi: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/617184
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 media-sound/playmidi/Manifest | 1 -
14 media-sound/playmidi/files/CAN-2005-0020.patch | 69 ----------------------
15 .../playmidi/files/playmidi-2.5-includes.patch | 66 ---------------------
16 media-sound/playmidi/files/playmidi-2.5.patch | 22 -------
17 media-sound/playmidi/metadata.xml | 11 ----
18 media-sound/playmidi/playmidi-2.5-r2.ebuild | 56 ------------------
19 profiles/package.mask | 7 ---
20 7 files changed, 232 deletions(-)
21
22 diff --git a/media-sound/playmidi/Manifest b/media-sound/playmidi/Manifest
23 deleted file mode 100644
24 index 66d3221979d..00000000000
25 --- a/media-sound/playmidi/Manifest
26 +++ /dev/null
27 @@ -1 +0,0 @@
28 -DIST playmidi-2.5.tar.gz 147687 BLAKE2B 2f59f2f25672dd50ee4b142221c8dbf708b7210931bcca148a98892ee0865a57b0525ba9af3620fa405b45ee8d3df867aa65ba72611d2034d80b407003ba9b1d SHA512 246885e17c89469ed10ded2ccf47ac8b89396458315faf26e312ec0bfc2613ebf97c3634e0ec220d87e3ddaefe7291d1fb4d16bd99e32f18a053d2dcdbe1629b
29
30 diff --git a/media-sound/playmidi/files/CAN-2005-0020.patch b/media-sound/playmidi/files/CAN-2005-0020.patch
31 deleted file mode 100644
32 index 9cd120eddb5..00000000000
33 --- a/media-sound/playmidi/files/CAN-2005-0020.patch
34 +++ /dev/null
35 @@ -1,69 +0,0 @@
36 ---- playmidi.c.orig 2005-01-17 17:43:20.578060936 -0500
37 -+++ playmidi.c 2005-01-17 17:48:55.022217696 -0500
38 -@@ -22,6 +22,7 @@
39 - #include <ctype.h>
40 - #include <unistd.h>
41 - #include <sys/stat.h>
42 -+#include <errno.h>
43 - #include "playmidi.h"
44 -
45 - SEQ_DEFINEBUF(SEQUENCERBLOCKSIZE);
46 -@@ -186,6 +187,15 @@
47 - struct stat info;
48 - int piped = 0;
49 -
50 -+ /* CPhipps 2000/02/04 - this might be splaymidi, in which case we're
51 -+ * probably setuid root. Drop privs immediately.. io_svgalib.c can
52 -+ * regain them */
53 -+ if (getuid() != geteuid())
54 -+ if (seteuid(getuid())) {
55 -+ perror("seteuid");
56 -+ exit(EPERM); /* Seems appropriate */
57 -+ }
58 -+
59 - printf("%s Copyright (C) 1994-1997 Nathan I. Laredo,"
60 - " AWE32 by Takashi Iwai\n"
61 - "This is free software with ABSOLUTELY NO WARRANTY.\n"
62 -@@ -439,9 +449,9 @@
63 - for (i = optind; i < argc;) {
64 - filename = argv[i];
65 - if (stat(filename, &info) == -1) {
66 -- if ((extra = malloc(strlen(filename) + 4)) == NULL)
67 -+ if ((extra = malloc(strlen(filename) + 5)) == NULL)
68 - close_show(-1);
69 -- sprintf(extra, "%s.mid", filename);
70 -+ snprintf(extra, sizeof(extra), "%s.mid", filename);
71 - if (stat(extra, &info) == -1)
72 - close_show(-1);
73 - if ((mfd = fopen(extra, "r")) == NULL)
74 -@@ -452,7 +462,7 @@
75 - if (ext && strcmp(ext, ".gz") == 0) {
76 - char temp[1024];
77 - piped = 1;
78 -- sprintf(temp, "gzip -l %s", filename);
79 -+ snprintf(temp, sizeof(temp), "gzip -l %s", filename);
80 - if ((mfd = popen(temp, "r")) == NULL)
81 - close_show(-1);
82 - fgets(temp, sizeof(temp), mfd); /* skip 1st line */
83 -@@ -460,7 +470,7 @@
84 - strtok(temp, " "); /* compressed size */
85 - info.st_size = atoi(strtok(NULL, " ")); /* original size */
86 - pclose(mfd);
87 -- sprintf(temp, "gzip -d -c %s", filename);
88 -+ snprintf(temp, sizeof(temp), "gzip -d -c %s", filename);
89 - if ((mfd = popen(temp, "r")) == NULL)
90 - close_show(-1);
91 - } else if ((mfd = fopen(filename, "r")) == NULL)
92 ---- io_svgalib.c.orig 2005-01-17 17:49:55.758984304 -0500
93 -+++ io_svgalib.c 2005-01-17 17:49:59.310444400 -0500
94 -@@ -259,6 +259,10 @@
95 - tcgetattr(mytty, &newtty);
96 - newtty.c_lflag &= ~(ICANON | ECHO | ICRNL | ISIG);
97 - tcsetattr(mytty, TCSANOW, &newtty);
98 -+ /* CPhipps 2000/02/04 - restore euid root in order to start SVGALib.
99 -+ * We don't have to worry about errors, or dropping priv's afterwards,
100 -+ * SVGALib handles that safely for us. */
101 -+ seteuid(0);
102 - vga_init();
103 - if ((vgamode = vga_getdefaultmode()) == -1)
104 - vgamode = G640x480x256;
105
106 diff --git a/media-sound/playmidi/files/playmidi-2.5-includes.patch b/media-sound/playmidi/files/playmidi-2.5-includes.patch
107 deleted file mode 100644
108 index 0a93c593089..00000000000
109 --- a/media-sound/playmidi/files/playmidi-2.5-includes.patch
110 +++ /dev/null
111 @@ -1,66 +0,0 @@
112 -diff -ur playmidi-2.4.orig/Makefile playmidi-2.4/Makefile
113 ---- playmidi-2.4.orig/Makefile 1998-10-01 05:39:18.000000000 +0300
114 -+++ playmidi-2.4/Makefile 2007-07-25 16:22:23.000000000 +0300
115 -@@ -12,38 +12,38 @@
116 -
117 - # ncurses usually /usr/lib, -L/usr/local/lib doesn't hurt
118 - # unless there's more than one ncurses floating around on your system
119 --LIBNC = -L/usr/local/lib -lncurses
120 -+LIBNC = -L/usr/lib -lncurses
121 -
122 - ######### NOTE: X11R6 or newer REQUIRED
123 --LIBX11 = -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11 -lXext -lSM -lICE
124 --LIBGTK = -L/usr/X11R6/lib -lgtk-1.1 -lgdk-1.1 -lglib-1.1 -lX11 -lXext -lm
125 --LIBVGA = -L/usr/local/lib -lvgagl -lvga
126 -+LIBX11 = -L/usr/lib -lXaw -lXmu -lXt -lX11 -lXext -lSM -lICE
127 -+LIBGTK = -L/usr/lib -lgtk-1.1 -lgdk-1.1 -lglib-1.1 -lX11 -lXext -lm
128 -+LIBVGA = -L/usr/lib -lvgagl -lvga
129 -
130 - # ncurses is usually in /usr/include/ncurses, but you may need
131 - # to use /usr/local/include/ncurses depending on your setup.
132 - INCNC = -I/usr/include/ncurses
133 -
134 - # just in case you keep your X includes in an odd location.
135 --INCX11 = -I/usr/X11R6/include -DNARROWPROTO
136 -+INCX11 = -I/usr/include -DNARROWPROTO
137 -
138 - # stuff for sound blaster awe32
139 - INCAWE = -DVOXWARE_CONTROLLER_7_WORKING
140 - # awe_voice.h path
141 --INCAWE += -I/usr/lib/oss/include/sys
142 -+INCAWE += -I.
143 -
144 - # usually in /usr/include, but -I/usr/local/include doesn't hurt
145 - # unless there's more than one svgalib floating around your system.
146 --INCVGA = -I/usr/local/include
147 -+INCVGA = -I/usr/include
148 -
149 - # Directory where application defaults files are stored for X11 version
150 --XAPPDEFAULTS = /usr/X11R6/lib/X11/app-defaults
151 -+XAPPDEFAULTS = /usr/share/X11/app-defaults
152 -
153 - INCLUDES= $(INCNC) $(INCX11) $(INCVGA) $(INCAWE)
154 - INSTALLDIR = /usr/bin
155 - INSTALL = install -s
156 -
157 - # if you are using the GUS Ultra driver module, add -DULTRA_DRIVER
158 --CFLAGS = -Wall -pipe -fomit-frame-pointer -O2 -m486 $(INCAWE)
159 -+CFLAGS = -Wall $(INCAWE)
160 - LDFLAGS =
161 -
162 - OBJECTS = playmidi.o readmidi.o playevents.o \
163 -diff -ur playmidi-2.4.orig/playmidi.h-dist playmidi-2.4/playmidi.h-dist
164 ---- playmidi-2.4.orig/playmidi.h-dist 1997-05-12 00:26:36.000000000 +0300
165 -+++ playmidi-2.4/playmidi.h-dist 2007-07-25 16:22:44.000000000 +0300
166 -@@ -52,11 +52,7 @@
167 - #include <stdlib.h>
168 - #include <sys/soundcard.h>
169 - #include <sys/ioctl.h>
170 --#ifdef linux
171 --#include <linux/awe_voice.h>
172 --#else
173 - #include <awe_voice.h>
174 --#endif
175 -
176 - struct chanstate {
177 - int program;
178
179 diff --git a/media-sound/playmidi/files/playmidi-2.5.patch b/media-sound/playmidi/files/playmidi-2.5.patch
180 deleted file mode 100644
181 index 317b5c8734b..00000000000
182 --- a/media-sound/playmidi/files/playmidi-2.5.patch
183 +++ /dev/null
184 @@ -1,22 +0,0 @@
185 ---- io_ncurses.c.orig 2003-11-30 19:23:34.000000000 -0800
186 -+++ io_ncurses.c 2003-11-30 19:23:46.000000000 -0800
187 -@@ -14,11 +14,7 @@
188 - Kelly Drive, Lackland AFB, TX 78236-5128, USA.
189 - *************************************************************************/
190 - #include "playmidi.h"
191 --#ifdef linux
192 --#include <ncurses/curses.h>
193 --#else
194 - #include <ncurses.h>
195 --#endif
196 - #include "gsvoices.h"
197 - #include <sys/time.h>
198 - #include <unistd.h>
199 ---- playmidi.h-dist.orig 2003-11-30 19:49:35.000000000 -0800
200 -+++ playmidi.h-dist 2003-11-30 19:49:46.000000000 -0800
201 -@@ -1,4 +1,4 @@
202 --#define RELEASE "Playmidi 2.4"
203 -+#define RELEASE "Playmidi 2.5"
204 - /************************************************************************
205 - playmidi.h -- defines and structures for use by playmidi package
206 -
207
208 diff --git a/media-sound/playmidi/metadata.xml b/media-sound/playmidi/metadata.xml
209 deleted file mode 100644
210 index 8c84a6074c4..00000000000
211 --- a/media-sound/playmidi/metadata.xml
212 +++ /dev/null
213 @@ -1,11 +0,0 @@
214 -<?xml version="1.0" encoding="UTF-8"?>
215 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
216 -<pkgmetadata>
217 - <maintainer type="project">
218 - <email>sound@g.o</email>
219 - <name>Gentoo Sound project</name>
220 - </maintainer>
221 - <upstream>
222 - <remote-id type="sourceforge">playmidi</remote-id>
223 - </upstream>
224 -</pkgmetadata>
225
226 diff --git a/media-sound/playmidi/playmidi-2.5-r2.ebuild b/media-sound/playmidi/playmidi-2.5-r2.ebuild
227 deleted file mode 100644
228 index a1bcd8e8f0c..00000000000
229 --- a/media-sound/playmidi/playmidi-2.5-r2.ebuild
230 +++ /dev/null
231 @@ -1,56 +0,0 @@
232 -# Copyright 1999-2018 Gentoo Foundation
233 -# Distributed under the terms of the GNU General Public License v2
234 -
235 -EAPI=0
236 -
237 -inherit eutils toolchain-funcs
238 -
239 -DESCRIPTION="Command Line and GUI based MIDI Player"
240 -HOMEPAGE="https://sourceforge.net/projects/playmidi/"
241 -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
242 -
243 -LICENSE="GPL-2"
244 -SLOT="0"
245 -KEYWORDS="amd64 ~ppc sparc x86"
246 -IUSE="svga X"
247 -
248 -RDEPEND="sys-libs/ncurses
249 - svga? ( media-libs/svgalib )
250 - X? ( x11-libs/libX11
251 - x11-libs/libSM
252 - x11-libs/libXaw )"
253 -DEPEND="${RDEPEND}
254 - X? ( x11-base/xorg-proto )"
255 -
256 -S="${WORKDIR}/${P/2.5/2.4}"
257 -
258 -src_unpack() {
259 - unpack ${A}
260 - cd "${S}"
261 - epatch "${FILESDIR}"/${P}.patch
262 - epatch "${FILESDIR}"/CAN-2005-0020.patch
263 - epatch "${FILESDIR}"/${P}-includes.patch
264 -}
265 -
266 -src_compile() {
267 - local targets="playmidi"
268 -
269 - use svga && targets="$targets splaymidi"
270 - use X && targets="$targets xplaymidi"
271 -
272 - echo "5" | ./Configure
273 -
274 - emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
275 - depend clean || die "emake failed."
276 - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -I." LDFLAGS="${LDFLAGS}" ${targets} \
277 - || die "emake failed."
278 -}
279 -
280 -src_install() {
281 - dobin playmidi
282 - use svga && dobin splaymidi
283 - use X && dobin xplaymidi
284 - dodoc BUGS QuickStart README.1ST
285 - docinto techref
286 - dodoc techref/*
287 -}
288
289 diff --git a/profiles/package.mask b/profiles/package.mask
290 index 87fd7697f24..c77689e9d7b 100644
291 --- a/profiles/package.mask
292 +++ b/profiles/package.mask
293 @@ -650,13 +650,6 @@ net-ftp/weex
294 # Removal in 30 days. Bug #650888
295 media-gfx/swftools
296
297 -# Michał Górny <mgorny@g.o> (29 Mar 2019)
298 -# Unmaintained. Fails to build with ncurses[tinfo]; fixing it reveals
299 -# further build failures. Last release in 2001. Upstream has shortly
300 -# revived coding in 2015 but did not finish the update.
301 -# Removal in 30 days. Bug #617184.
302 -media-sound/playmidi
303 -
304 # Robin H. Johnson <robbat2@g.o> (25 Mar 2019)
305 # Requires >=dev-lang/lua-5.3 which is masked
306 sys-apps/likwid