[arch-commits] Commit in libbs2b/trunk (PKGBUILD formatsecurity.diff)

Jan Steffens heftig at gemini.archlinux.org
Mon Jul 18 19:05:23 UTC 2022


    Date: Monday, July 18, 2022 @ 19:05:23
  Author: heftig
Revision: 451445

3.1.0-8

Added:
  libbs2b/trunk/formatsecurity.diff
Modified:
  libbs2b/trunk/PKGBUILD

---------------------+
 PKGBUILD            |   25 ++++++++++++++++++-------
 formatsecurity.diff |   12 ++++++++++++
 2 files changed, 30 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-18 19:04:05 UTC (rev 451444)
+++ PKGBUILD	2022-07-18 19:05:23 UTC (rev 451445)
@@ -1,22 +1,33 @@
-# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
 # Contributor: Gustavo Alvarez <sl1pkn07 at gmail.com>
 # Contributor: Panagiotis Papadopoulos pano_90 AT gmx DOT net 
 
 pkgname=libbs2b
 pkgver=3.1.0
-pkgrel=7
+pkgrel=8
 pkgdesc="Bauer stereophonic-to-binaural DSP effect library"
 url="http://bs2b.sourceforge.net"
 arch=(x86_64)
-license=('custom:MIT')
+license=(custom:MIT)
 depends=(libsndfile gcc-libs)
-source=("https://downloads.sourceforge.net/sourceforge/bs2b/$pkgname-$pkgver.tar.lzma")
-md5sums=('00d32ffa6461dde6a632c846da3e0a13')
-sha1sums=('ec847e38a3a6f7eeed245b44e53f02cfff056df0')
+options=(debug)
+source=("https://downloads.sourceforge.net/sourceforge/bs2b/$pkgname-$pkgver.tar.lzma"
+        formatsecurity.diff)
+md5sums=('00d32ffa6461dde6a632c846da3e0a13'
+         'af1c91f47bd7481cd71fc38a3a35f0e7')
+sha1sums=('ec847e38a3a6f7eeed245b44e53f02cfff056df0'
+          'f8206ca996894884a2989401feb1b7d1acd28f2e')
+b2sums=('986b0df4faee05cd6659bf5e338752d795450af9543f6c24c93cfeaa537fefb125966e4311d3637856aa6c4959b2aeec68b46baaab9caba5829405ce4b69d9a3'
+        'c111cf2f249261ec286fdb24e1f044ce2b3b9d078f3f139e1519ba4932bc35392b497882c0daf23c53c89199d0f3783b740cdf0e71175c6dedd408a9fb2d7cfd')
 
 prepare() {
   cd $pkgname-$pkgver
+
+  # Fix error: format not a string literal and no format arguments [-Werror=format-security]
+  patch -Np1 -i ../formatsecurity.diff
+
   sed -i 's/dist-lzma/dist-xz/g' configure.ac
+
   autoreconf -fvi
 }
 
@@ -38,5 +49,5 @@
 
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
-  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
 }

Added: formatsecurity.diff
===================================================================
--- formatsecurity.diff	                        (rev 0)
+++ formatsecurity.diff	2022-07-18 19:05:23 UTC (rev 451445)
@@ -0,0 +1,12 @@
+diff -u -r libbs2b-3.1.0/src/bs2bconvert.c libbs2b-3.1.0-formatsecurity/src/bs2bconvert.c
+--- libbs2b-3.1.0/src/bs2bconvert.c	2009-06-04 18:01:15.000000000 +0000
++++ libbs2b-3.1.0-formatsecurity/src/bs2bconvert.c	2022-07-18 19:02:24.764809592 +0000
+@@ -153,7 +153,7 @@
+ 	if( ( infile = sf_open( infilename, SFM_READ, &sfinfo ) ) == NULL )
+ 	{
+ 		printf( "Not able to open input file %s.\n", infilename );
+-		printf( sf_strerror( NULL ) );
++		printf( "%s", sf_strerror( NULL ) );
+ 		return 1;
+ 	}
+ 



More information about the arch-commits mailing list