summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2011-02-26 12:28:33 +0000
committerAlexis Ballier <aballier@gentoo.org>2011-02-26 12:28:33 +0000
commitf3377d3fa7fcc268f35b0a5fa8d66f42424bf3ef (patch)
tree96d0fadb7abac9635a0b38f114ca566c663583a0 /media-sound
parentsparc dropping keywords (bug 325621) (diff)
downloadhistorical-f3377d3fa7fcc268f35b0a5fa8d66f42424bf3ef.tar.gz
historical-f3377d3fa7fcc268f35b0a5fa8d66f42424bf3ef.tar.bz2
historical-f3377d3fa7fcc268f35b0a5fa8d66f42424bf3ef.zip
Make it build with latest autotools, fix an automake warning, fix a buffer overflow (bug #339242), fix some char* vs const char* warnings.
Package-Manager: portage-2.2.0_alpha25/cvs/Linux x86_64
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/orpheus/ChangeLog12
-rw-r--r--media-sound/orpheus/Manifest24
-rw-r--r--media-sound/orpheus/files/orpheus-1.6-bufsize.patch13
-rw-r--r--media-sound/orpheus/files/orpheus-1.6-constify.patch60
-rw-r--r--media-sound/orpheus/files/orpheus-1.6-cppflags.patch12
-rw-r--r--media-sound/orpheus/orpheus-1.6-r2.ebuild49
6 files changed, 153 insertions, 17 deletions
diff --git a/media-sound/orpheus/ChangeLog b/media-sound/orpheus/ChangeLog
index 284f3a82f54f..c0c92c4caa15 100644
--- a/media-sound/orpheus/ChangeLog
+++ b/media-sound/orpheus/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-sound/orpheus
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/orpheus/ChangeLog,v 1.26 2010/12/03 00:28:03 flameeyes Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/orpheus/ChangeLog,v 1.27 2011/02/26 12:28:33 aballier Exp $
+
+*orpheus-1.6-r2 (26 Feb 2011)
+
+ 26 Feb 2011; Alexis Ballier <aballier@gentoo.org> +orpheus-1.6-r2.ebuild,
+ +files/orpheus-1.6-bufsize.patch, +files/orpheus-1.6-constify.patch,
+ +files/orpheus-1.6-cppflags.patch:
+ Make it build with latest autotools, fix an automake warning, fix a buffer
+ overflow (bug #339242), fix some char* vs const char* warnings.
03 Dec 2010; Diego E. Pettenò <flameeyes@gentoo.org> orpheus-1.6-r1.ebuild,
files/orpheus-1.6-nolibghttp.patch:
diff --git a/media-sound/orpheus/Manifest b/media-sound/orpheus/Manifest
index c9ac84e8d99a..8d5442d6c5cc 100644
--- a/media-sound/orpheus/Manifest
+++ b/media-sound/orpheus/Manifest
@@ -1,27 +1,21 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-- -----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX 1.5-amd64.patch 962 RMD160 d1161a1f7aafdb629ebf9e04850183c7d976d841 SHA1 794a565b09895e46136ebb492a7d3e24dac780ae SHA256 cd0c12aebe6909dceba04b6db0741fa997bf86f2501cbed3fccf070c9802395a
AUX 101_fix-buffer-overflow.diff 614 RMD160 01fa9fc617eb87a7cfbb099ca8a894d39d3b864b SHA1 e98ec36f1983219dcd4fcbbd263c4cb14d5200c1 SHA256 f6c2ee9d2e53b079764b40e85678b8d23664d86432c14cedf0246112c59f2501
+AUX orpheus-1.6-bufsize.patch 590 RMD160 0b5ec80f7edecb269a30d22c3f11ff40a812f8c8 SHA1 19600d5b311bfeabd19cbffc0aed742752250625 SHA256 d5aef82370efca028deee08176494bb926a0239f56322815eed22b3b5c44ed8a
+AUX orpheus-1.6-constify.patch 2123 RMD160 3d537c849d752a097b612177552c83c9baa62f83 SHA1 920c304970f270fbb2197f096a53f5285e6fe28b SHA256 db6a5fea1765c72edaf173293cc4325d905201eda5f53d42491f1022deb85e4f
+AUX orpheus-1.6-cppflags.patch 830 RMD160 1369d90464c710b64ee351cc97e3ffcd783b0a34 SHA1 87b1d29a1c3bebe02a755bb7a4a4e336cfe221fa SHA256 0e2750cc1cd492273a0b9b77b6e006b96bfa8534770b8ffd1b0aa409be495bff
AUX orpheus-1.6-nolibghttp.patch 731 RMD160 0da2bf24dcb764de67245c423813a37752d6cc8c SHA1 5899dcafc691a6469b49c07d72a6da047ce33ad5 SHA256 7162d95a07ec1ce1c4109befeaf704817a46d3036c17990f10a5600deebef5e0
DIST orpheus-1.6.tar.gz 440553 RMD160 bd1b04f8c1195074e648d1ed8731970f512e120a SHA1 0cfd17a68f98971e2c810d4f47ef8e37c550b121 SHA256 18a6a4b0171c8a2a5a09be6e2cd8fc781c145fde1b266e43a9902fef10ee6ff5
EBUILD orpheus-1.6-r1.ebuild 1167 RMD160 f11c4faf9869339dd683dfc9432246b6c8e6bcaf SHA1 71e03b2be32ec3add969111a97b13ceee07749e4 SHA256 d416a8d1273a3232c7807b283a382c9790e416e209d73b4561e412987bdbeea5
-MISC ChangeLog 3951 RMD160 c22c4c0d923b90755585a158d59c3c58059f8502 SHA1 273aee437352365f8f06acb99e790072ea62f261 SHA256 1620abb296b227265b007c27e438800d3156af3078edbe622d0f947964ddf944
+EBUILD orpheus-1.6-r2.ebuild 1343 RMD160 c8b49709f49b6215988269c414c13d3c6d644a41 SHA1 08ca7134bafb721c3f5cdeab6f0020a99252d19d SHA256 775a17de5f6e7f4e283298fa87ec8cc65c7dcdcc4298794ddb8e2d7e339001a1
+MISC ChangeLog 4309 RMD160 f2adac8c3ded2e47b6c27e30cec88759b5d0a437 SHA1 a37e0e0bccf869f045486db50c8fa495f2ac4a35 SHA256 a047df8114595cd8dfad340b7caf48cc93f55ace6cb9a82a0811ad7d35f703f8
MISC metadata.xml 159 RMD160 568344dc99ebe68c2e2d43d268d186757532144d SHA1 3f9589301dbaa4363c56de0f309cf792d8c38b63 SHA256 eb5b8cfa9aed067cd72d6439beac2dd0abdba30248f27e4b337012b493a18369
-- -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.16 (GNU/Linux)
-
-iEYEARECAAYFAkz4OYAACgkQAiZjviIA2XhCkgCfalgoAxlDhyRFKOGVmNG3JHlz
-04YAoNlFtxUj/lz6VEWMXdM3cYYXEteH
-=5gB8
-- -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.16 (GNU/Linux)
+Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAkz4Of8ACgkQAiZjviIA2XiwVgCeL3muzejeaVxGlOSf+UPrOgfQ
-JYkAoIkeoa5wlBwmJE6ciPgXNvIlQ059
-=8TXd
+iEYEARECAAYFAk1o8fcACgkQvFcC4BYPU0qM5QCdGth8CgKxcgLk2xixZEvVgODT
+R88AmQGQEyiqkV7hrQXdQvvMfhu49BF3
+=03rK
-----END PGP SIGNATURE-----
diff --git a/media-sound/orpheus/files/orpheus-1.6-bufsize.patch b/media-sound/orpheus/files/orpheus-1.6-bufsize.patch
new file mode 100644
index 000000000000..319fcd83eecc
--- /dev/null
+++ b/media-sound/orpheus/files/orpheus-1.6-bufsize.patch
@@ -0,0 +1,13 @@
+Index: orpheus-1.6/kkstrtext-0.1/kkstrtext.cc
+===================================================================
+--- orpheus-1.6.orig/kkstrtext-0.1/kkstrtext.cc
++++ orpheus-1.6/kkstrtext-0.1/kkstrtext.cc
+@@ -1132,7 +1132,7 @@ string striprtf(const string &s, const s
+ bunicode = false;
+ if(unichar.substr(0, 4).find_first_not_of("0123456789") == -1) {
+ long l = strtol(unichar.substr(0, 4).c_str(), 0, 0);
+- char ubuf[sizeof(long)+4];
++ char ubuf[sizeof(long)*2+4];
+ #ifdef HAVE_ICONV
+ memcpy(ubuf, "\xff\xfe", 2);
+ memcpy(ubuf+2, &l, sizeof(long));
diff --git a/media-sound/orpheus/files/orpheus-1.6-constify.patch b/media-sound/orpheus/files/orpheus-1.6-constify.patch
new file mode 100644
index 000000000000..8255b4094ef6
--- /dev/null
+++ b/media-sound/orpheus/files/orpheus-1.6-constify.patch
@@ -0,0 +1,60 @@
+Index: orpheus-1.6/kkstrtext-0.1/kkstrtext.cc
+===================================================================
+--- orpheus-1.6.orig/kkstrtext-0.1/kkstrtext.cc
++++ orpheus-1.6/kkstrtext-0.1/kkstrtext.cc
+@@ -41,17 +41,17 @@ char *strimlead(char *str) { return tri
+ char *strimtrail(char *str) { return trimtrail(str, " \t"); }
+ char *strim(char *str) { return trim(str, " \t"); }
+
+-char *trimlead(char *str, char *chr) {
++char *trimlead(char *str, const char *chr) {
+ while(strchr(chr, str[0]) && strlen(str)) strcpy(str, str + 1);
+ return str;
+ }
+
+-char *trimtrail(char *str, char *chr) {
++char *trimtrail(char *str, const char *chr) {
+ while(strchr(chr, str[strlen(str)-1]) && strlen(str)) str[strlen(str)-1] = 0;
+ return str;
+ }
+
+-char *trim(char *str, char *chr) {
++char *trim(char *str, const char *chr) {
+ return trimlead(trimtrail(str, chr), chr);
+ }
+
+@@ -370,7 +370,7 @@ const char *strqstr(const char *s, const
+ return ret;
+ }
+
+-char *strinsert(char *buf, int pos, char *ins) {
++char *strinsert(char *buf, int pos, const char *ins) {
+ char *p = strdup(buf+pos);
+ memcpy(buf+pos+strlen(ins), p, strlen(p)+1);
+ memcpy(buf+pos, ins, strlen(ins));
+Index: orpheus-1.6/kkstrtext-0.1/kkstrtext.h
+===================================================================
+--- orpheus-1.6.orig/kkstrtext-0.1/kkstrtext.h
++++ orpheus-1.6/kkstrtext-0.1/kkstrtext.h
+@@ -119,9 +119,9 @@ __KTOOL_BEGIN_C
+
+ char *strcut(char *strin, int frompos, int count);
+
+-char *trimlead(char *str, char *chr);
+-char *trimtrail(char *str, char *chr);
+-char *trim(char *str, char *chr);
++char *trimlead(char *str, const char *chr);
++char *trimtrail(char *str, const char *chr);
++char *trim(char *str, const char *chr);
+
+ char *strimlead(char *str);
+ char *strimtrail(char *str);
+@@ -145,7 +145,7 @@ const char *strqstr(const char *s,
+ const char *esc = "");
+
+ char *strccat(char *dest, char c);
+-char *strinsert(char *buf, int pos, char *ins);
++char *strinsert(char *buf, int pos, const char *ins);
+ char *strcinsert(char *buf, int pos, char ins);
+
+ int strchcount(char *s, char *accept);
diff --git a/media-sound/orpheus/files/orpheus-1.6-cppflags.patch b/media-sound/orpheus/files/orpheus-1.6-cppflags.patch
new file mode 100644
index 000000000000..bf7effbcd9d9
--- /dev/null
+++ b/media-sound/orpheus/files/orpheus-1.6-cppflags.patch
@@ -0,0 +1,12 @@
+Index: orpheus-1.6/kkconsui-0.1/src/Makefile.am
+===================================================================
+--- orpheus-1.6.orig/kkconsui-0.1/src/Makefile.am
++++ orpheus-1.6/kkconsui-0.1/src/Makefile.am
+@@ -1,6 +1,6 @@
+ INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/../kkstrtext -I$(top_srcdir)/../kkstrtext-0.1
+ noinst_LIBRARIES = libsrc.a
+-CPPFLAGS =
++AM_CPPFLAGS =
+ libsrc_a_SOURCES = treeview.cc colorschemer.cc textinputline.cc fileselector.cc textwindow.cc texteditor.cc dialogbox.cc screenarea.cc textbrowser.cc abstractui.cc horizontalbar.cc linkedlist.cc cmenus.cc conscommon.cc
+ EXTRA_DIST = treeview.cc colorschemer.cc textinputline.cc fileselector.cc textwindow.cc texteditor.cc dialogbox.cc screenarea.cc textbrowser.cc abstractui.cc horizontalbar.cc linkedlist.cc cmenus.cc conscommon.cc
+ SUBDIRS =
diff --git a/media-sound/orpheus/orpheus-1.6-r2.ebuild b/media-sound/orpheus/orpheus-1.6-r2.ebuild
new file mode 100644
index 000000000000..714afd59b946
--- /dev/null
+++ b/media-sound/orpheus/orpheus-1.6-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/orpheus/orpheus-1.6-r2.ebuild,v 1.1 2011/02/26 12:28:33 aballier Exp $
+
+EAPI=2
+
+inherit eutils autotools
+
+DESCRIPTION="Command line MP3 player."
+HOMEPAGE="http://konst.org.ua/en/orpheus"
+SRC_URI="http://konst.org.ua/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND="sys-libs/ncurses
+ media-libs/libvorbis
+ media-sound/mpg123
+ media-sound/vorbis-tools[ogg123]"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/1.5-amd64.patch
+
+ # Fix a stack-based buffer overflow in kkstrtext.h in ktools library.
+ # Bug 113683, CVE-2005-3863.
+ epatch "${FILESDIR}"/101_fix-buffer-overflow.diff
+
+ epatch "${FILESDIR}"/${P}-nolibghttp.patch \
+ "${FILESDIR}"/${P}-cppflags.patch \
+ "${FILESDIR}"/${P}-bufsize.patch \
+ "${FILESDIR}"/${P}-constify.patch
+ cp "${S}/config.rpath" "${S}/kkstrtext-0.1/" || die
+
+ # For automake 1.9 and later
+ sed -i -e 's:@MKINSTALLDIRS@:$(top_srcdir)/mkinstalldirs:' \
+ po/Makefile.in.in || die
+
+ einfo "Removing outdated files..."
+ find . -name "missing" -print -delete
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog NEWS README TODO
+}