Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package jack_capture for openSUSE:Factory checked in at 2023-08-28 17:15:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/jack_capture (Old) and /work/SRC/openSUSE:Factory/.jack_capture.new.1766 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "jack_capture" Mon Aug 28 17:15:24 2023 rev:3 rq:1106127 version:0.9.73 Changes: -------- --- /work/SRC/openSUSE:Factory/jack_capture/jack_capture.changes 2020-09-23 18:49:05.885801423 +0200 +++ /work/SRC/openSUSE:Factory/.jack_capture.new.1766/jack_capture.changes 2023-08-28 17:15:31.181306782 +0200 @@ -1,0 +2,6 @@ +Sat Aug 26 21:55:34 UTC 2023 - Christophe Marin <[email protected]> + +- Add upstream change: + * 0001-Compile-with-_GNU_SOURCE-to-avoid-custom-version-of-.patch + +------------------------------------------------------------------- New: ---- 0001-Compile-with-_GNU_SOURCE-to-avoid-custom-version-of-.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ jack_capture.spec ++++++ --- /var/tmp/diff_new_pack.e50r6B/_old 2023-08-28 17:15:32.241344848 +0200 +++ /var/tmp/diff_new_pack.e50r6B/_new 2023-08-28 17:15:32.245344991 +0200 @@ -1,7 +1,7 @@ # # spec file for package jack_capture # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # Copyright (c) 2005 JackLab, Germany. # # All modifications and additions to the file contributed by third parties @@ -25,6 +25,8 @@ Group: Productivity/Multimedia/Sound/Utilities URL: https://github.com/kmatheussen/jack_capture Source0: https://github.com/kmatheussen/jack_capture/archive/%{version}.tar.gz +# PATCH-FIX-UPSTREAM +Patch0: 0001-Compile-with-_GNU_SOURCE-to-avoid-custom-version-of-.patch BuildRequires: gcc-c++ BuildRequires: libsndfile-devel BuildRequires: pkgconfig @@ -39,7 +41,7 @@ sound is going out to your speakers into a file. %prep -%setup -q +%autosetup -p1 %build export CXXFLAGS="%{optflags}" ++++++ 0001-Compile-with-_GNU_SOURCE-to-avoid-custom-version-of-.patch ++++++ >From 430d6bd0e29f0f0f8934e0628050ff418e5592b5 Mon Sep 17 00:00:00 2001 From: Kjetil Matheussen <[email protected]> Date: Fri, 30 Apr 2021 08:35:03 +0200 Subject: [PATCH] Compile with _GNU_SOURCE to avoid custom version of asprintf --- jack_capture.c | 50 ++------------------------------------------------ 1 file changed, 2 insertions(+), 48 deletions(-) diff --git a/jack_capture.c b/jack_capture.c index b2d15a1..ccbfa5c 100644 --- a/jack_capture.c +++ b/jack_capture.c @@ -20,6 +20,8 @@ #include "das_config.h" +#define _GNU_SOURCE 1 + #include <signal.h> #include <stdio.h> #include <stdlib.h> @@ -900,54 +902,6 @@ static void stop_helper_thread(void){ ///////////////////////////////////////////////////////////////////// -#ifndef __USE_GNU -/* This code has been derived from an example in the glibc2 documentation. - * "asprintf() implementation for braindamaged operating systems" - * Copyright (C) 1991, 1994-1999, 2000, 2001 Free Software Foundation, Inc. - */ -#ifdef _WIN32 -#define vsnprintf _vsnprintf -#endif -#ifndef __APPLE__ -int asprintf(char **buffer, char *fmt, ...) { - /* Guess we need no more than 200 chars of space. */ - int size = 200; - int nchars; - va_list ap; - - *buffer = (char*)malloc(size); - if (*buffer == NULL) return -1; - - /* Try to print in the allocated space. */ - va_start(ap, fmt); - nchars = vsnprintf(*buffer, size, fmt, ap); - va_end(ap); - - if (nchars >= size) - { - char *tmpbuff; - /* Reallocate buffer now that we know how much space is needed. */ - size = nchars+1; - tmpbuff = (char*)realloc(*buffer, size); - - if (tmpbuff == NULL) { /* we need to free it*/ - free(*buffer); - return -1; - } - - *buffer=tmpbuff; - /* Try again. */ - va_start(ap, fmt); - nchars = vsnprintf(*buffer, size, fmt, ap); - va_end(ap); - } - - if (nchars < 0) return nchars; - return size; -} -#endif -#endif - #define ARGS_ADD_ARGV(FMT,ARG) \ argv=(char**) realloc((void*)argv, (argc+2)*sizeof(char*)); \ asprintf(&argv[argc++], FMT, ARG); argv[argc] = 0; -- 2.41.0
