ports/131666: [maintainer] audio/wavegain: update to 1.2.8

Denise H. G. darcsis at gmail.com
Fri Feb 13 23:50:02 UTC 2009


>Number:         131666
>Category:       ports
>Synopsis:       [maintainer] audio/wavegain: update to 1.2.8
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 13 23:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Denise H. G.
>Release:        FreeBSD 7.1-STABLE
>Organization:
>Environment:
FreeBSD pluton.xbsd.name 7.1-STABLE FreeBSD 7.1-STABLE #0: Tue Feb 10 03:25:42 CST 2009     dhg at pluton.xbsd.name:/opt/obj/sysbuild/usr/src/sys/pluton-amd64  amd64
>Description:
update wavegain to the latest version
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN wavegain.orig/Makefile wavegain/Makefile
--- wavegain.orig/Makefile	2009-02-14 07:43:32.314377690 +0800
+++ wavegain/Makefile	2009-02-14 06:49:44.489977662 +0800
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	wavegain
-PORTVERSION=	1.2.6
+PORTVERSION=	1.2.8
 CATEGORIES=	audio
 MASTER_SITES=	http://www.rarewares.org/files/others/
 DISTNAME=	${PORTNAME}-${PORTVERSION}srcs${EXTRACT_SUFFIX}
diff -ruN wavegain.orig/distinfo wavegain/distinfo
--- wavegain.orig/distinfo	2009-02-14 07:43:32.314377690 +0800
+++ wavegain/distinfo	2009-02-14 06:49:39.210945551 +0800
@@ -1,3 +1,3 @@
-MD5 (wavegain-1.2.6srcs.zip) = 37facb462a3ec4f9831cd00f597ee85e
-SHA256 (wavegain-1.2.6srcs.zip) = 32f3ea5252094c8443a54440ed5e815b044b9feeb82e6494eabbe84f95e6fc08
-SIZE (wavegain-1.2.6srcs.zip) = 160859
+MD5 (wavegain-1.2.8srcs.zip) = bc9b412400dbfb69bcbf961ed4e6eb06
+SHA256 (wavegain-1.2.8srcs.zip) = e1ded05855fa209a67b887fa90e62c7c0a018dab20265a54d26eca40a6cc1436
+SIZE (wavegain-1.2.8srcs.zip) = 72867
diff -ruN wavegain.orig/files/patch-audio.c wavegain/files/patch-audio.c
--- wavegain.orig/files/patch-audio.c	2009-02-14 07:43:32.314377690 +0800
+++ wavegain/files/patch-audio.c	2009-02-14 06:55:25.442293110 +0800
@@ -1,8 +1,8 @@
---- audio.c	2005-11-27 16:55:24.000000000 +0800
-+++ audio.c	2008-05-24 22:12:15.000000000 +0800
-@@ -31,20 +31,8 @@
- #include <string.h>
+--- audio.c.orig	2009-02-14 06:54:45.932023788 +0800
++++ audio.c	2009-02-14 06:55:01.958134649 +0800
+@@ -32,20 +32,8 @@
  #include <sys/types.h>
+ #include <math.h>
  
 -#ifdef _WIN32
 -#include <io.h>
@@ -18,6 +18,6 @@
 -#include <malloc.h>
 -#endif
 -
- #include <math.h>
  #include "config.h"
  #include "audio.h"
+ #include "i18n.h"
diff -ruN wavegain.orig/files/patch-wavegain.c wavegain/files/patch-wavegain.c
--- wavegain.orig/files/patch-wavegain.c	2009-02-14 07:43:32.314377690 +0800
+++ wavegain/files/patch-wavegain.c	2009-02-14 07:29:36.714210072 +0800
@@ -1,5 +1,5 @@
---- wavegain.c	2005-11-27 16:58:46.000000000 +0800
-+++ wavegain.c	2008-05-25 03:23:17.000000000 +0800
+--- wavegain.c.orig	2009-02-14 07:27:18.005266616 +0800
++++ wavegain.c	2009-02-14 07:29:15.783066588 +0800
 @@ -19,20 +19,8 @@
  #include <string.h>
  #include <ctype.h>
@@ -20,62 +20,41 @@
 -
  #include "gain_analysis.h"
  #include "i18n.h"
- #include "config.h"
-@@ -58,6 +46,14 @@
+ #include "getopt.h"
+@@ -57,6 +45,9 @@
  #define ROUND64(x)   ( doubletmp = (x) + Dither.Add + (Int64_t)0x001FFFFD80000000L, *(Int64_t*)(&doubletmp) - (Int64_t)0x433FFFFD80000000L )
  #endif
  
-+
-+
-+# include <errno.h>
++#include <errno.h>
 +static int xrename(const char *oldpath, const char *newpath);
 +
-+
-+
-+
- extern int          write_log;
+ extern int          write_to_log;
  dither_t            Dither;
  double              doubletmp;
-@@ -584,16 +580,26 @@
- 		close_audio_file(infile, aufile, wg_opts);
- 		fclose(infile);
- 
--		if (!settings->std_out) {
-+	        if (!settings->std_out) {               
-+		       		        
- 			if (remove(filename) != 0) {
- 				fprintf(stderr, " Error deleting old file '%s'\n", filename);
+@@ -639,7 +630,14 @@
  				goto exit;
  			}
--    
+     
 -			if (rename(TEMP_NAME, filename) != 0) {
-+						
-+			/* 
-+			* int rename(const char *old, const char *new);
-+			* In POSIX, rename will fail if the 'old' and 'new' names are on different mounted file systems.
-+			* ( From http://en.wikipedia.org/wiki/Rename_%28C%29 )
-+			* Function 'xrename' from 'normalize-0.7.6' is one clever solution
-+			*/
-+								   
-+			/*if (rename(TEMP_NAME, filename) != 0) { */			
-+			if (xrename(TEMP_NAME, filename) != 0) {
++                       /*
++                       * int rename(const char *old, const char *new);
++                       * In POSIX, rename will fail if the 'old' and 'new' names are on different mounted file systems.
++                       * ( From http://en.wikipedia.org/wiki/Rename_%28C%29 )
++                       * Function 'xrename' from 'normalize-0.7.6' is one clever solution
++                       */
++                       /*if (rename(TEMP_NAME, filename) != 0) {*/
++                        if (xrename(TEMP_NAME, filename) != 0) {
  				fprintf(stderr, " Error renaming '" TEMP_NAME "' to '%s' (uh-oh)\n", filename);
  				goto exit;
  			}
-+			
- 		}
-     
- 		result = 1;
-@@ -603,3 +609,65 @@
+@@ -650,4 +648,61 @@
+ 	return result;
  }
  
- 
-+
-+
 +/* From normalize-0.7.6/nid3lib/write.c
 + * Move the file "oldpath" to "newpath", or copy and delete if they
 + * are on different filesystems.
-+ */
++*/
 +static int
 +xrename(const char *oldpath, const char *newpath)
 +{
@@ -95,40 +74,38 @@
 +    if (errno == EXDEV) {
 +      /* files are on different filesystems, so we have to copy */
 +      if (unlink(newpath) == -1 && errno != ENOENT)
-+	return -1;
++       return -1;
 +
 +      in = fopen(oldpath, "rb");
 +      if (in == NULL)
-+	return -1;
++       return -1;
 +      out = fopen(newpath, "wb");
 +      if (out == NULL) {
-+	fclose(in);
-+	return -1;
++       fclose(in);
++       return -1;
 +      }
 +
 +      while ((sz = fread(buf, 1, 4096, in)) > 0)
-+	fwrite(buf, 1, sz, out);
++       fwrite(buf, 1, sz, out);
 +
 +      if (ferror(in) || ferror(out)) {
-+	fclose(in);
-+	fclose(out);
-+	return -1;
++       fclose(in);
++       fclose(out);
++       return -1;
 +      }
 +      if (fclose(in) == EOF) {
-+	fclose(out);
-+	return -1;
++       fclose(out);
++       return -1;
 +      }
 +      if (fclose(out) == EOF)
-+	return -1;
++       return -1;
 +
 +      if (unlink(oldpath) == -1)
-+	return -1;
++       return -1;
 +    } else {
 +      return -1;
 +    }
 +  }
-+
+ 
 +  return 0;
 +}
-+
-+


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list