Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Apr 2015 08:56:16 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r382897 - in head/audio/shntool: . files
Message-ID:  <201504010856.t318uG6l053159@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Wed Apr  1 08:56:15 2015
New Revision: 382897
URL: https://svnweb.freebsd.org/changeset/ports/382897
QAT: https://qat.redports.org/buildarchive/r382897/

Log:
  Fix a known bug: shntool fails to determine correct size/length of very large
  files (possibly 64-bit related).  Transfer maintainership to multimedia@ team.
  
  Obtained from:	https://github.com/flacon/shntool/commit/4c6fc2e

Added:
  head/audio/shntool/files/
  head/audio/shntool/files/patch-src_core__fileio.c   (contents, props changed)
Modified:
  head/audio/shntool/Makefile

Modified: head/audio/shntool/Makefile
==============================================================================
--- head/audio/shntool/Makefile	Wed Apr  1 08:39:14 2015	(r382896)
+++ head/audio/shntool/Makefile	Wed Apr  1 08:56:15 2015	(r382897)
@@ -3,10 +3,11 @@
 
 PORTNAME=	shntool
 PORTVERSION=	3.0.10
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	http://www.etree.org/shnutils/shntool/dist/src/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	multimedia@FreeBSD.org
 COMMENT=	Multi-purpose WAVE data processing and reporting utility
 
 GNU_CONFIGURE=	yes

Added: head/audio/shntool/files/patch-src_core__fileio.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/shntool/files/patch-src_core__fileio.c	Wed Apr  1 08:56:15 2015	(r382897)
@@ -0,0 +1,15 @@
+--- src/core_fileio.c.orig	2009-03-11 17:18:01 UTC
++++ src/core_fileio.c
+@@ -110,10 +110,10 @@ bool read_value_long(FILE *file,unsigned
+   buf[4] = 0;
+ 
+   if (be_val)
+-    *be_val = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3];
++    *be_val = ((buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]) & 0xFFFFFFFF;
+ 
+   if (le_val)
+-    *le_val = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0];
++    *le_val = ((buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]) & 0xFFFFFFFF;
+ 
+   if (tag_val)
+     tagcpy(tag_val,buf);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504010856.t318uG6l053159>