summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2008-03-22 07:41:48 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2008-03-22 07:41:48 +0000
commitb03467f8e7d8bf5e8ff47062943dff141d51bb61 (patch)
treecc59efb634d54268ad2a8961ff2348f3ba3c5df8 /media-sound/vorbisgain
parentold (diff)
downloadhistorical-b03467f8e7d8bf5e8ff47062943dff141d51bb61.tar.gz
historical-b03467f8e7d8bf5e8ff47062943dff141d51bb61.tar.bz2
historical-b03467f8e7d8bf5e8ff47062943dff141d51bb61.zip
Marked 0.37 stable for amd64 and created 0.37-r1 for bug 200931, fixing improper use of errno and mktemp, thanks to Marc Finet.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'media-sound/vorbisgain')
-rw-r--r--media-sound/vorbisgain/ChangeLog12
-rw-r--r--media-sound/vorbisgain/Manifest6
-rw-r--r--media-sound/vorbisgain/files/vorbisgain-0.37-fix-errno-and-warnings.patch80
-rw-r--r--media-sound/vorbisgain/vorbisgain-0.37-r1.ebuild34
-rw-r--r--media-sound/vorbisgain/vorbisgain-0.37.ebuild6
5 files changed, 131 insertions, 7 deletions
diff --git a/media-sound/vorbisgain/ChangeLog b/media-sound/vorbisgain/ChangeLog
index 79717990a41c..bbd79bcf6a1b 100644
--- a/media-sound/vorbisgain/ChangeLog
+++ b/media-sound/vorbisgain/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-sound/vorbisgain
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/vorbisgain/ChangeLog,v 1.22 2007/11/23 13:02:22 drac Exp $
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/vorbisgain/ChangeLog,v 1.23 2008/03/22 07:41:48 drac Exp $
+
+*vorbisgain-0.37-r1 (22 Mar 2008)
+
+ 22 Mar 2008; Samuli Suominen <drac@gentoo.org>
+ +files/vorbisgain-0.37-fix-errno-and-warnings.patch,
+ vorbisgain-0.37.ebuild, +vorbisgain-0.37-r1.ebuild:
+ Marked 0.37 stable for amd64 and created 0.37-r1 for bug 200931, fixing
+ improper use of errno and mktemp, thanks to Marc Finet.
*vorbisgain-0.37 (23 Nov 2007)
diff --git a/media-sound/vorbisgain/Manifest b/media-sound/vorbisgain/Manifest
index b1c96ef88fb5..4fb405210492 100644
--- a/media-sound/vorbisgain/Manifest
+++ b/media-sound/vorbisgain/Manifest
@@ -1,6 +1,8 @@
+AUX vorbisgain-0.37-fix-errno-and-warnings.patch 2111 RMD160 dfa224336c78a93f97ef82ad692ada59f907bc56 SHA1 27b2b85b799a47f213a0c9fea4304a10eef46521 SHA256 5fadf6c9147a882de462896baa43b5df188b2de019a443def4024dc173b67cfe
DIST vorbisgain-0.36.zip 155367 RMD160 b3bc9c70a6394431fdb5265a04b7dec793d655a9 SHA1 ed2669f647d1bb4550b39425a071f3514dac3d7c SHA256 e893be4c71f83799771e1335768588fdfb0f935e1add4b6e8133a6c6b07da1e3
DIST vorbisgain-0.37.tar.gz 208977 RMD160 01de9516a7571c2ecdb3e4645c6c8e7ba8ce80cc SHA1 bd79764a83a8ee327df85c538ec798a6d3f240be SHA256 dd6db051cad972bcac25d47b4a9e40e217bb548a1f16328eddbb4e66613530ec
EBUILD vorbisgain-0.36.ebuild 754 RMD160 568ed04e33f7681dc10a8da17fd3aeefd32829f4 SHA1 5ef4e2b8c78623b6f90c6e264866e107ab1954e7 SHA256 5729b02bfb0f23049dc0ad505716f08ab38a2150cbeff5bba39622aa58d35edf
-EBUILD vorbisgain-0.37.ebuild 725 RMD160 4104b2c6dd2e9bffe3250c8a89d10cbcf6fb4538 SHA1 a685dc414d045a00dc820bc667dc2b7737829569 SHA256 c112892734a1c9ebe310302878036814b9420e7ee39fe3d7a1365a7296c42189
-MISC ChangeLog 2969 RMD160 05ce8cfcd24a7d7f3cc8117c828950e0089fd926 SHA1 b0f1cfb41c8e3b883b8f4ea4061a75ddeb4ee282 SHA256 de2d31b4663e3c5f9d9ce8cf22abebba7c99dc110ff03e6ca6b21e8ad1dfc699
+EBUILD vorbisgain-0.37-r1.ebuild 855 RMD160 56a6712d9b60454fd50929444e923113e3fed8b5 SHA1 d4d0e57c825a6de112d193825fe10eac3477fc5d SHA256 c2e623f2775099db831e889804e2ede30c2fb1cfe97ea3d128e65e74c8686703
+EBUILD vorbisgain-0.37.ebuild 724 RMD160 b8058050d217de51461ec030c21f03c035c58914 SHA1 b9995ac21d6edb5fffd51c4a02cb22cfc447d070 SHA256 c1df1612e74a70fffc6338b155fed6f93484c882401f726a246fca48310db8b8
+MISC ChangeLog 3295 RMD160 01311e2cdb89e613a58fbf0572799111bac5dd6a SHA1 bd63e3a3b9a9424c5d1b61be926d1516e397b5b4 SHA256 47f4b2837a8c5d5759d12eed3e55140921686775348ec000d92a232d0ae500f2
MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b
diff --git a/media-sound/vorbisgain/files/vorbisgain-0.37-fix-errno-and-warnings.patch b/media-sound/vorbisgain/files/vorbisgain-0.37-fix-errno-and-warnings.patch
new file mode 100644
index 000000000000..7d2efb63f33c
--- /dev/null
+++ b/media-sound/vorbisgain/files/vorbisgain-0.37-fix-errno-and-warnings.patch
@@ -0,0 +1,80 @@
+diff -ur vorbisgain-0.37.orig/misc.c vorbisgain-0.37/misc.c
+--- vorbisgain-0.37.orig/misc.c 2004-01-03 23:17:28.000000000 +0200
++++ vorbisgain-0.37/misc.c 2008-03-22 09:32:49.000000000 +0200
+@@ -23,6 +23,7 @@
+ #else /* WIN32 */
+ #include <errno.h>
+ #include <ctype.h>
++#include <unistd.h>
+
+ #ifndef DISABLE_WINSIZE
+
+diff -ur vorbisgain-0.37.orig/recurse.c vorbisgain-0.37/recurse.c
+--- vorbisgain-0.37.orig/recurse.c 2004-01-02 14:49:38.000000000 +0200
++++ vorbisgain-0.37/recurse.c 2008-03-22 09:31:52.000000000 +0200
+@@ -377,6 +377,7 @@
+
+ if (result->dir != NULL)
+ {
++ errno = 0;
+ result->entry = readdir(result->dir);
+
+ if (result->entry != NULL)
+@@ -408,6 +409,7 @@
+ */
+ static int read_dir(DIRECTORY *directory)
+ {
++ errno = 0;
+ directory->entry = readdir(directory->dir);
+
+ if (directory->entry != NULL)
+diff -ur vorbisgain-0.37.orig/vorbis.c vorbisgain-0.37/vorbis.c
+--- vorbisgain-0.37.orig/vorbis.c 2005-07-15 01:49:05.000000000 +0300
++++ vorbisgain-0.37/vorbis.c 2008-03-22 09:32:25.000000000 +0200
+@@ -572,6 +572,9 @@
+ int result = -1;
+ int delete_temp = 0;
+ int i;
++#if _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 500
++ int fd;
++#endif
+
+ infile = fopen(filename, "rb");
+
+@@ -699,6 +702,16 @@
+ strcpy(temp_name, filename);
+ strcpy((char *) last_path(temp_name), TEMP_NAME);
+
++#if _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 500
++ fd = mkstemp(temp_name);
++ if (fd == -1)
++ {
++ fprintf(stderr, _("Couldn't create temporary file for processing.\n"));
++ goto exit;
++ }
++
++ outfile = fdopen(fd, "wb");
++#else /* #if _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 500 */
+ #ifdef WIN32
+ temp_name = _mktemp(temp_name);
+ #else
+@@ -712,6 +725,7 @@
+ }
+
+ outfile = fopen(temp_name, "wb");
++#endif /* #if _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 500 */
+
+ if (outfile == NULL)
+ {
+@@ -824,7 +838,10 @@
+ }
+ }
+
+- free(temp_name);
++ if (temp_name != NULL)
++ {
++ free(temp_name);
++ }
+
+ return result;
+ }
diff --git a/media-sound/vorbisgain/vorbisgain-0.37-r1.ebuild b/media-sound/vorbisgain/vorbisgain-0.37-r1.ebuild
new file mode 100644
index 000000000000..4e3cc92a2762
--- /dev/null
+++ b/media-sound/vorbisgain/vorbisgain-0.37-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/vorbisgain/vorbisgain-0.37-r1.ebuild,v 1.1 2008/03/22 07:41:48 drac Exp $
+
+inherit eutils
+
+DESCRIPTION="Calculator of perceived sound level for Ogg Vorbis files"
+HOMEPAGE="http://sjeng.org/vorbisgain.html"
+SRC_URI="http://sjeng.org/ftp/vorbis/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND=">=media-libs/libvorbis-1
+ media-libs/libogg"
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-fix-errno-and-warnings.patch # bug 200931
+}
+
+src_compile() {
+ econf --enable-recursive
+ emake || die "emake failed."
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+ dodoc NEWS README *.txt
+}
diff --git a/media-sound/vorbisgain/vorbisgain-0.37.ebuild b/media-sound/vorbisgain/vorbisgain-0.37.ebuild
index a113534c5de9..c37e7dfc93ea 100644
--- a/media-sound/vorbisgain/vorbisgain-0.37.ebuild
+++ b/media-sound/vorbisgain/vorbisgain-0.37.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/vorbisgain/vorbisgain-0.37.ebuild,v 1.1 2007/11/23 13:02:22 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/vorbisgain/vorbisgain-0.37.ebuild,v 1.2 2008/03/22 07:41:48 drac Exp $
DESCRIPTION="Calculator of perceived sound level for Ogg Vorbis files"
HOMEPAGE="http://sjeng.org/vorbisgain.html"
@@ -8,7 +8,7 @@ SRC_URI="http://sjeng.org/ftp/vorbis/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
-KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
RDEPEND=">=media-libs/libvorbis-1