Re: UPDATE: libsndfile 1.0.31

2021-02-27 Thread Brad Smith

ping.

On 2/19/2021 8:48 PM, Brad Smith wrote:

Here is an update to libsndfile 1.0.31.


Index: Makefile
===
RCS file: /home/cvs/ports/audio/libsndfile/Makefile,v
retrieving revision 1.35
diff -u -p -u -p -r1.35 Makefile
--- Makefile13 Feb 2021 06:31:07 -  1.35
+++ Makefile20 Feb 2021 01:16:02 -
@@ -2,12 +2,12 @@
  
  COMMENT=	library to handle various audio file formats
  
-DISTNAME=	libsndfile-1.0.30

-REVISION=  0
+VER=   1.0.31
+DISTNAME=  libsndfile-${VER}
  CATEGORIES=   audio
  GH_ACCOUNT=   libsndfile
  GH_PROJECT=   libsndfile
-GH_TAGNAME=v1.0.30
+GH_TAGNAME=${VER}
  
  HOMEPAGE=	https://github.com/libsndfile/libsndfile/
  
Index: distinfo

===
RCS file: /home/cvs/ports/audio/libsndfile/distinfo,v
retrieving revision 1.18
diff -u -p -u -p -r1.18 distinfo
--- distinfo16 Jan 2021 12:53:12 -  1.18
+++ distinfo20 Feb 2021 01:13:09 -
@@ -1,2 +1,2 @@
-SHA256 (libsndfile-1.0.30.tar.gz) = 
WUK5Y9HbPtirH/uFcIMiqpY333bZ/oTh3+Sal6kOj0c=
-SIZE (libsndfile-1.0.30.tar.gz) = 650659
+SHA256 (libsndfile-1.0.31.tar.gz) = 
jN7grLBrsKPBpspSRXVkPfix86VaCJO03Z+CnQgmN4U=
+SIZE (libsndfile-1.0.31.tar.gz) = 662584
Index: patches/patch-CMakeLists_txt
===
RCS file: patches/patch-CMakeLists_txt
diff -N patches/patch-CMakeLists_txt
--- patches/patch-CMakeLists_txt16 Jan 2021 12:54:12 -  1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,16 +0,0 @@
-$OpenBSD: patch-CMakeLists_txt,v 1.1 2021/01/16 12:54:12 sthen Exp $
-
-CMake: Fix INSTALL_MANPAGES option.
-
-Index: CMakeLists.txt
 CMakeLists.txt.orig
-+++ CMakeLists.txt
-@@ -74,7 +74,7 @@ if (NOT ENABLE_CPU_CLIP)
-   set (CPU_CLIPS_NEGATIVE FALSE)
- endif ()
- cmake_dependent_option (ENABLE_COMPATIBLE_LIBSNDFILE_NAME "Set DLL name to libsndfile-1.dll 
(canonical name), sndfile.dll otherwise" OFF "WIN32;BUILD_SHARED_LIBS" OFF)
--cmake_dependent_option (INSTALL_MANPAGES "Install man pages for programs" ON 
"BUILD_PROGRAMS AND (UNIX OR MINGW OR CYGWIN)" OFF)
-+cmake_dependent_option (INSTALL_MANPAGES "Install man pages for programs" ON 
"BUILD_PROGRAMS" OFF)
-
- set (HAVE_EXTERNAL_XIPH_LIBS ${ENABLE_EXTERNAL_LIBS})
- set (HAVE_SQLITE3 ${BUILD_REGTEST})
Index: patches/patch-src_aiff_c
===
RCS file: patches/patch-src_aiff_c
diff -N patches/patch-src_aiff_c
--- patches/patch-src_aiff_c16 Jan 2021 12:54:12 -  1.2
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,63 +0,0 @@
-$OpenBSD: patch-src_aiff_c,v 1.2 2021/01/16 12:54:12 sthen Exp $
-
-- Fix aiff_read_header() memory leak.
-- Fix memory leak in aiff_open.
-- Fix AIFF parsing bug.
-- Fix memory leak in aiff_read_basc_chunk.
-- Fix memory leak in aiff_read_header.
-
-Index: src/aiff.c
 src/aiff.c.orig
-+++ src/aiff.c
-@@ -243,6 +243,8 @@ aiff_open (SF_PRIVATE *psf)
-   if ((psf->container_data = calloc (1, sizeof (AIFF_PRIVATE))) == NULL)
-   return SFE_MALLOC_FAILED ;
-
-+  psf->container_close = aiff_close ;
-+
-   if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && 
psf->filelength > 0))
-   {   if ((error = aiff_read_header (psf, _fmt)))
-   return error ;
-@@ -283,7 +285,6 @@ aiff_open (SF_PRIVATE *psf)
-   psf->set_chunk   = aiff_set_chunk ;
-   } ;
-
--  psf->container_close = aiff_close ;
-   psf->command = aiff_command ;
-
-   switch (SF_CODEC (psf->sf.format))
-@@ -498,6 +499,11 @@ aiff_read_header (SF_PRIVATE *psf, COMM_CHUNK *comm_fm
-   return SFE_WAV_BAD_PEAK ;
-   } ;
-
-+  if (psf->peak_info)
-+  {   psf_log_printf (psf, "*** Found 
existing peak info, using last one.\n") ;
-+  free (psf->peak_info) ;
-+  psf->peak_info = NULL ;
-+  } ;
-   if ((psf->peak_info = peak_info_calloc 
(psf->sf.channels)) == NULL)
-   return SFE_MALLOC_FAILED ;
-
-@@ -800,6 +806,10 @@ aiff_read_header (SF_PRIVATE *psf, COMM_CHUNK *comm_fm
-   break ;
-   } ;
-
-+  if (psf->cues)
-+  {   free (psf->cues) ;
-+  psf->cues = NULL ;
-+  } ;
-   if ((psf->cues = psf_cues_alloc 

UPDATE: libsndfile 1.0.31

2021-02-19 Thread Brad Smith
Here is an update to libsndfile 1.0.31.


Index: Makefile
===
RCS file: /home/cvs/ports/audio/libsndfile/Makefile,v
retrieving revision 1.35
diff -u -p -u -p -r1.35 Makefile
--- Makefile13 Feb 2021 06:31:07 -  1.35
+++ Makefile20 Feb 2021 01:16:02 -
@@ -2,12 +2,12 @@
 
 COMMENT=   library to handle various audio file formats
 
-DISTNAME=  libsndfile-1.0.30
-REVISION=  0
+VER=   1.0.31
+DISTNAME=  libsndfile-${VER}
 CATEGORIES=audio
 GH_ACCOUNT=libsndfile
 GH_PROJECT=libsndfile
-GH_TAGNAME=v1.0.30
+GH_TAGNAME=${VER}
 
 HOMEPAGE=  https://github.com/libsndfile/libsndfile/
 
Index: distinfo
===
RCS file: /home/cvs/ports/audio/libsndfile/distinfo,v
retrieving revision 1.18
diff -u -p -u -p -r1.18 distinfo
--- distinfo16 Jan 2021 12:53:12 -  1.18
+++ distinfo20 Feb 2021 01:13:09 -
@@ -1,2 +1,2 @@
-SHA256 (libsndfile-1.0.30.tar.gz) = 
WUK5Y9HbPtirH/uFcIMiqpY333bZ/oTh3+Sal6kOj0c=
-SIZE (libsndfile-1.0.30.tar.gz) = 650659
+SHA256 (libsndfile-1.0.31.tar.gz) = 
jN7grLBrsKPBpspSRXVkPfix86VaCJO03Z+CnQgmN4U=
+SIZE (libsndfile-1.0.31.tar.gz) = 662584
Index: patches/patch-CMakeLists_txt
===
RCS file: patches/patch-CMakeLists_txt
diff -N patches/patch-CMakeLists_txt
--- patches/patch-CMakeLists_txt16 Jan 2021 12:54:12 -  1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,16 +0,0 @@
-$OpenBSD: patch-CMakeLists_txt,v 1.1 2021/01/16 12:54:12 sthen Exp $
-
-CMake: Fix INSTALL_MANPAGES option.
-
-Index: CMakeLists.txt
 CMakeLists.txt.orig
-+++ CMakeLists.txt
-@@ -74,7 +74,7 @@ if (NOT ENABLE_CPU_CLIP)
-   set (CPU_CLIPS_NEGATIVE FALSE)
- endif ()
- cmake_dependent_option (ENABLE_COMPATIBLE_LIBSNDFILE_NAME "Set DLL name to 
libsndfile-1.dll (canonical name), sndfile.dll otherwise" OFF 
"WIN32;BUILD_SHARED_LIBS" OFF)
--cmake_dependent_option (INSTALL_MANPAGES "Install man pages for programs" ON 
"BUILD_PROGRAMS AND (UNIX OR MINGW OR CYGWIN)" OFF)
-+cmake_dependent_option (INSTALL_MANPAGES "Install man pages for programs" ON 
"BUILD_PROGRAMS" OFF)
- 
- set (HAVE_EXTERNAL_XIPH_LIBS ${ENABLE_EXTERNAL_LIBS})
- set (HAVE_SQLITE3 ${BUILD_REGTEST})
Index: patches/patch-src_aiff_c
===
RCS file: patches/patch-src_aiff_c
diff -N patches/patch-src_aiff_c
--- patches/patch-src_aiff_c16 Jan 2021 12:54:12 -  1.2
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,63 +0,0 @@
-$OpenBSD: patch-src_aiff_c,v 1.2 2021/01/16 12:54:12 sthen Exp $
-
-- Fix aiff_read_header() memory leak.
-- Fix memory leak in aiff_open.
-- Fix AIFF parsing bug.
-- Fix memory leak in aiff_read_basc_chunk.
-- Fix memory leak in aiff_read_header.
-
-Index: src/aiff.c
 src/aiff.c.orig
-+++ src/aiff.c
-@@ -243,6 +243,8 @@ aiff_open (SF_PRIVATE *psf)
-   if ((psf->container_data = calloc (1, sizeof (AIFF_PRIVATE))) == NULL)
-   return SFE_MALLOC_FAILED ;
- 
-+  psf->container_close = aiff_close ;
-+
-   if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && 
psf->filelength > 0))
-   {   if ((error = aiff_read_header (psf, _fmt)))
-   return error ;
-@@ -283,7 +285,6 @@ aiff_open (SF_PRIVATE *psf)
-   psf->set_chunk  = aiff_set_chunk ;
-   } ;
- 
--  psf->container_close = aiff_close ;
-   psf->command = aiff_command ;
- 
-   switch (SF_CODEC (psf->sf.format))
-@@ -498,6 +499,11 @@ aiff_read_header (SF_PRIVATE *psf, COMM_CHUNK *comm_fm
-   return SFE_WAV_BAD_PEAK ;
-   } ;
- 
-+  if (psf->peak_info)
-+  {   psf_log_printf (psf, "*** Found 
existing peak info, using last one.\n") ;
-+  free (psf->peak_info) ;
-+  psf->peak_info = NULL ;
-+  } ;
-   if ((psf->peak_info = peak_info_calloc 
(psf->sf.channels)) == NULL)
-   return SFE_MALLOC_FAILED ;
- 
-@@ -800,6 +806,10 @@ aiff_read_header (SF_PRIVATE *psf, COMM_CHUNK *comm_fm
-   break ;
-   } ;
- 
-+  if (psf->cues)
-+  {   free (psf->cues) ;
-+  psf->cues = NULL ;
-+  } ;
-   if ((psf->cues = psf_cues_alloc 
(mark_count)) == NULL)
-