From c646a97e835d9b0f3f6ce544c3ccfba835bca0d4 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 28 Apr 2019 22:00:35 +0200 Subject: media-sound/playmidi: Remove last-rited pkg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/617184 Signed-off-by: Michał Górny --- media-sound/playmidi/Manifest | 1 - media-sound/playmidi/files/CAN-2005-0020.patch | 69 ---------------------- .../playmidi/files/playmidi-2.5-includes.patch | 66 --------------------- media-sound/playmidi/files/playmidi-2.5.patch | 22 ------- media-sound/playmidi/metadata.xml | 11 ---- media-sound/playmidi/playmidi-2.5-r2.ebuild | 56 ------------------ profiles/package.mask | 7 --- 7 files changed, 232 deletions(-) delete mode 100644 media-sound/playmidi/Manifest delete mode 100644 media-sound/playmidi/files/CAN-2005-0020.patch delete mode 100644 media-sound/playmidi/files/playmidi-2.5-includes.patch delete mode 100644 media-sound/playmidi/files/playmidi-2.5.patch delete mode 100644 media-sound/playmidi/metadata.xml delete mode 100644 media-sound/playmidi/playmidi-2.5-r2.ebuild diff --git a/media-sound/playmidi/Manifest b/media-sound/playmidi/Manifest deleted file mode 100644 index 66d3221979d4..000000000000 --- a/media-sound/playmidi/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST playmidi-2.5.tar.gz 147687 BLAKE2B 2f59f2f25672dd50ee4b142221c8dbf708b7210931bcca148a98892ee0865a57b0525ba9af3620fa405b45ee8d3df867aa65ba72611d2034d80b407003ba9b1d SHA512 246885e17c89469ed10ded2ccf47ac8b89396458315faf26e312ec0bfc2613ebf97c3634e0ec220d87e3ddaefe7291d1fb4d16bd99e32f18a053d2dcdbe1629b diff --git a/media-sound/playmidi/files/CAN-2005-0020.patch b/media-sound/playmidi/files/CAN-2005-0020.patch deleted file mode 100644 index 9cd120eddb59..000000000000 --- a/media-sound/playmidi/files/CAN-2005-0020.patch +++ /dev/null @@ -1,69 +0,0 @@ ---- playmidi.c.orig 2005-01-17 17:43:20.578060936 -0500 -+++ playmidi.c 2005-01-17 17:48:55.022217696 -0500 -@@ -22,6 +22,7 @@ - #include - #include - #include -+#include - #include "playmidi.h" - - SEQ_DEFINEBUF(SEQUENCERBLOCKSIZE); -@@ -186,6 +187,15 @@ - struct stat info; - int piped = 0; - -+ /* CPhipps 2000/02/04 - this might be splaymidi, in which case we're -+ * probably setuid root. Drop privs immediately.. io_svgalib.c can -+ * regain them */ -+ if (getuid() != geteuid()) -+ if (seteuid(getuid())) { -+ perror("seteuid"); -+ exit(EPERM); /* Seems appropriate */ -+ } -+ - printf("%s Copyright (C) 1994-1997 Nathan I. Laredo," - " AWE32 by Takashi Iwai\n" - "This is free software with ABSOLUTELY NO WARRANTY.\n" -@@ -439,9 +449,9 @@ - for (i = optind; i < argc;) { - filename = argv[i]; - if (stat(filename, &info) == -1) { -- if ((extra = malloc(strlen(filename) + 4)) == NULL) -+ if ((extra = malloc(strlen(filename) + 5)) == NULL) - close_show(-1); -- sprintf(extra, "%s.mid", filename); -+ snprintf(extra, sizeof(extra), "%s.mid", filename); - if (stat(extra, &info) == -1) - close_show(-1); - if ((mfd = fopen(extra, "r")) == NULL) -@@ -452,7 +462,7 @@ - if (ext && strcmp(ext, ".gz") == 0) { - char temp[1024]; - piped = 1; -- sprintf(temp, "gzip -l %s", filename); -+ snprintf(temp, sizeof(temp), "gzip -l %s", filename); - if ((mfd = popen(temp, "r")) == NULL) - close_show(-1); - fgets(temp, sizeof(temp), mfd); /* skip 1st line */ -@@ -460,7 +470,7 @@ - strtok(temp, " "); /* compressed size */ - info.st_size = atoi(strtok(NULL, " ")); /* original size */ - pclose(mfd); -- sprintf(temp, "gzip -d -c %s", filename); -+ snprintf(temp, sizeof(temp), "gzip -d -c %s", filename); - if ((mfd = popen(temp, "r")) == NULL) - close_show(-1); - } else if ((mfd = fopen(filename, "r")) == NULL) ---- io_svgalib.c.orig 2005-01-17 17:49:55.758984304 -0500 -+++ io_svgalib.c 2005-01-17 17:49:59.310444400 -0500 -@@ -259,6 +259,10 @@ - tcgetattr(mytty, &newtty); - newtty.c_lflag &= ~(ICANON | ECHO | ICRNL | ISIG); - tcsetattr(mytty, TCSANOW, &newtty); -+ /* CPhipps 2000/02/04 - restore euid root in order to start SVGALib. -+ * We don't have to worry about errors, or dropping priv's afterwards, -+ * SVGALib handles that safely for us. */ -+ seteuid(0); - vga_init(); - if ((vgamode = vga_getdefaultmode()) == -1) - vgamode = G640x480x256; diff --git a/media-sound/playmidi/files/playmidi-2.5-includes.patch b/media-sound/playmidi/files/playmidi-2.5-includes.patch deleted file mode 100644 index 0a93c5930892..000000000000 --- a/media-sound/playmidi/files/playmidi-2.5-includes.patch +++ /dev/null @@ -1,66 +0,0 @@ -diff -ur playmidi-2.4.orig/Makefile playmidi-2.4/Makefile ---- playmidi-2.4.orig/Makefile 1998-10-01 05:39:18.000000000 +0300 -+++ playmidi-2.4/Makefile 2007-07-25 16:22:23.000000000 +0300 -@@ -12,38 +12,38 @@ - - # ncurses usually /usr/lib, -L/usr/local/lib doesn't hurt - # unless there's more than one ncurses floating around on your system --LIBNC = -L/usr/local/lib -lncurses -+LIBNC = -L/usr/lib -lncurses - - ######### NOTE: X11R6 or newer REQUIRED --LIBX11 = -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11 -lXext -lSM -lICE --LIBGTK = -L/usr/X11R6/lib -lgtk-1.1 -lgdk-1.1 -lglib-1.1 -lX11 -lXext -lm --LIBVGA = -L/usr/local/lib -lvgagl -lvga -+LIBX11 = -L/usr/lib -lXaw -lXmu -lXt -lX11 -lXext -lSM -lICE -+LIBGTK = -L/usr/lib -lgtk-1.1 -lgdk-1.1 -lglib-1.1 -lX11 -lXext -lm -+LIBVGA = -L/usr/lib -lvgagl -lvga - - # ncurses is usually in /usr/include/ncurses, but you may need - # to use /usr/local/include/ncurses depending on your setup. - INCNC = -I/usr/include/ncurses - - # just in case you keep your X includes in an odd location. --INCX11 = -I/usr/X11R6/include -DNARROWPROTO -+INCX11 = -I/usr/include -DNARROWPROTO - - # stuff for sound blaster awe32 - INCAWE = -DVOXWARE_CONTROLLER_7_WORKING - # awe_voice.h path --INCAWE += -I/usr/lib/oss/include/sys -+INCAWE += -I. - - # usually in /usr/include, but -I/usr/local/include doesn't hurt - # unless there's more than one svgalib floating around your system. --INCVGA = -I/usr/local/include -+INCVGA = -I/usr/include - - # Directory where application defaults files are stored for X11 version --XAPPDEFAULTS = /usr/X11R6/lib/X11/app-defaults -+XAPPDEFAULTS = /usr/share/X11/app-defaults - - INCLUDES= $(INCNC) $(INCX11) $(INCVGA) $(INCAWE) - INSTALLDIR = /usr/bin - INSTALL = install -s - - # if you are using the GUS Ultra driver module, add -DULTRA_DRIVER --CFLAGS = -Wall -pipe -fomit-frame-pointer -O2 -m486 $(INCAWE) -+CFLAGS = -Wall $(INCAWE) - LDFLAGS = - - OBJECTS = playmidi.o readmidi.o playevents.o \ -diff -ur playmidi-2.4.orig/playmidi.h-dist playmidi-2.4/playmidi.h-dist ---- playmidi-2.4.orig/playmidi.h-dist 1997-05-12 00:26:36.000000000 +0300 -+++ playmidi-2.4/playmidi.h-dist 2007-07-25 16:22:44.000000000 +0300 -@@ -52,11 +52,7 @@ - #include - #include - #include --#ifdef linux --#include --#else - #include --#endif - - struct chanstate { - int program; diff --git a/media-sound/playmidi/files/playmidi-2.5.patch b/media-sound/playmidi/files/playmidi-2.5.patch deleted file mode 100644 index 317b5c8734b7..000000000000 --- a/media-sound/playmidi/files/playmidi-2.5.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- io_ncurses.c.orig 2003-11-30 19:23:34.000000000 -0800 -+++ io_ncurses.c 2003-11-30 19:23:46.000000000 -0800 -@@ -14,11 +14,7 @@ - Kelly Drive, Lackland AFB, TX 78236-5128, USA. - *************************************************************************/ - #include "playmidi.h" --#ifdef linux --#include --#else - #include --#endif - #include "gsvoices.h" - #include - #include ---- playmidi.h-dist.orig 2003-11-30 19:49:35.000000000 -0800 -+++ playmidi.h-dist 2003-11-30 19:49:46.000000000 -0800 -@@ -1,4 +1,4 @@ --#define RELEASE "Playmidi 2.4" -+#define RELEASE "Playmidi 2.5" - /************************************************************************ - playmidi.h -- defines and structures for use by playmidi package - diff --git a/media-sound/playmidi/metadata.xml b/media-sound/playmidi/metadata.xml deleted file mode 100644 index 8c84a6074c44..000000000000 --- a/media-sound/playmidi/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - sound@gentoo.org - Gentoo Sound project - - - playmidi - - diff --git a/media-sound/playmidi/playmidi-2.5-r2.ebuild b/media-sound/playmidi/playmidi-2.5-r2.ebuild deleted file mode 100644 index a1bcd8e8f0c0..000000000000 --- a/media-sound/playmidi/playmidi-2.5-r2.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=0 - -inherit eutils toolchain-funcs - -DESCRIPTION="Command Line and GUI based MIDI Player" -HOMEPAGE="https://sourceforge.net/projects/playmidi/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~ppc sparc x86" -IUSE="svga X" - -RDEPEND="sys-libs/ncurses - svga? ( media-libs/svgalib ) - X? ( x11-libs/libX11 - x11-libs/libSM - x11-libs/libXaw )" -DEPEND="${RDEPEND} - X? ( x11-base/xorg-proto )" - -S="${WORKDIR}/${P/2.5/2.4}" - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}.patch - epatch "${FILESDIR}"/CAN-2005-0020.patch - epatch "${FILESDIR}"/${P}-includes.patch -} - -src_compile() { - local targets="playmidi" - - use svga && targets="$targets splaymidi" - use X && targets="$targets xplaymidi" - - echo "5" | ./Configure - - emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ - depend clean || die "emake failed." - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -I." LDFLAGS="${LDFLAGS}" ${targets} \ - || die "emake failed." -} - -src_install() { - dobin playmidi - use svga && dobin splaymidi - use X && dobin xplaymidi - dodoc BUGS QuickStart README.1ST - docinto techref - dodoc techref/* -} diff --git a/profiles/package.mask b/profiles/package.mask index 87fd7697f240..c77689e9d7b9 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -650,13 +650,6 @@ net-ftp/weex # Removal in 30 days. Bug #650888 media-gfx/swftools -# Michał Górny (29 Mar 2019) -# Unmaintained. Fails to build with ncurses[tinfo]; fixing it reveals -# further build failures. Last release in 2001. Upstream has shortly -# revived coding in 2015 but did not finish the update. -# Removal in 30 days. Bug #617184. -media-sound/playmidi - # Robin H. Johnson (25 Mar 2019) # Requires >=dev-lang/lua-5.3 which is masked sys-apps/likwid -- cgit v1.2.3-65-gdbad