Your message dated Thu, 17 Oct 2024 14:39:17 +0000
with message-id <e1t1ren-001s6f...@fasolo.debian.org>
and subject line Bug#1072399: fixed in aubio 0.4.9-4.5
has caused the Debian Bug report #1072399,
regarding aubio: NMU for RC-critical bugs
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1072399: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072399
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: aubio
Version: 0.4.9-4.4
Severity: normal
Tags: patch

Dear Maintainer,

I'm currently preparing an NMU for the RC-bugs #1072399 and #1074827,
and will upload it to DELAYED/10.

Attached you'll find the debdiff.
diff -Nru aubio-0.4.9/debian/changelog aubio-0.4.9/debian/changelog
--- aubio-0.4.9/debian/changelog        2024-02-07 00:46:01.000000000 +0100
+++ aubio-0.4.9/debian/changelog        2024-10-05 01:40:39.000000000 +0200
@@ -1,3 +1,14 @@
+aubio (0.4.9-4.5) unstable; urgency=medium
+
+  * Non-maintainer upload.
+
+  * Backport fix for FTBFS with FFMpeg-7 from upstream via Ubuntu
+    (Closes: #1072399)
+  * Backport fix for FTBFS with Python3.12 from Ubuntu.
+    Thanks to Zixing Liu <zixing....@canonical.com> (Closes: #1074827)
+
+ -- IOhannes m zmölnig (Debian/GNU) <umlae...@debian.org>  Sat, 05 Oct 2024 
01:40:39 +0200
+
 aubio (0.4.9-4.4) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru aubio-0.4.9/debian/patches/ffmpeg5.1-adjust.patch 
aubio-0.4.9/debian/patches/ffmpeg5.1-adjust.patch
--- aubio-0.4.9/debian/patches/ffmpeg5.1-adjust.patch   1970-01-01 
01:00:00.000000000 +0100
+++ aubio-0.4.9/debian/patches/ffmpeg5.1-adjust.patch   2024-10-05 
01:40:39.000000000 +0200
@@ -0,0 +1,58 @@
+Description: [source_avcodec] adjust detection of AVChannelLayout (>ffmpeg 5.0)
+Author: Paul Brossier <p...@piem.org>
+Origin: upstream, 
https://github.com/aubio/aubio/commit/0b947f9634937d27589d995ec90e90d763aca86f
+Last-Update: 2024-09-17
+---
+Index: aubio/src/io/source_avcodec.c
+===================================================================
+--- aubio.orig/src/io/source_avcodec.c
++++ aubio/src/io/source_avcodec.c
+@@ -56,6 +56,12 @@
+ #define av_packet_unref av_free_packet
+ #endif
+ 
++#if LIBAVUTIL_VERSION_INT < AV_VERSION_INT(57,28,100)
++#warning "libavutil < 57.28.100 is deprecated"
++#else
++#define LIBAVUTIL_HAS_CH_LAYOUT
++#endif
++
+ #include "aubio_priv.h"
+ #include "fvec.h"
+ #include "fmat.h"
+@@ -263,7 +269,7 @@ aubio_source_avcodec_t * new_aubio_sourc
+ 
+   /* get input specs */
+   s->input_samplerate = avCodecCtx->sample_rate;
+-#ifdef AVUTIL_CHANNEL_LAYOUT_H
++#ifdef LIBAVUTIL_HAS_CH_LAYOUT
+   s->input_channels   = avCodecCtx->ch_layout.nb_channels;
+ #else
+   s->input_channels   = avCodecCtx->channels;
+@@ -325,7 +331,7 @@ void aubio_source_avcodec_reset_resample
+ #elif defined(HAVE_SWRESAMPLE)
+     SwrContext *avr = swr_alloc();
+ #endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */
+-#ifdef AVUTIL_CHANNEL_LAYOUT_H
++#ifdef LIBAVUTIL_HAS_CH_LAYOUT
+     AVChannelLayout input_layout;
+     AVChannelLayout output_layout;
+     av_channel_layout_default(&input_layout, s->input_channels);
+@@ -387,7 +393,7 @@ void aubio_source_avcodec_readframe(aubi
+   int out_samples = 0;
+ #elif defined(HAVE_SWRESAMPLE)
+   int in_samples = avFrame->nb_samples;
+-#ifdef AVUTIL_CHANNEL_LAYOUT_H
++#ifdef LIBAVUTIL_HAS_CH_LAYOUT
+   int max_out_samples = AUBIO_AVCODEC_MAX_BUFFER_SIZE / 
avCodecCtx->ch_layout.nb_channels;
+ #else
+   int max_out_samples = AUBIO_AVCODEC_MAX_BUFFER_SIZE / avCodecCtx->channels;
+@@ -458,7 +464,7 @@ void aubio_source_avcodec_readframe(aubi
+   }
+ 
+ #if LIBAVUTIL_VERSION_MAJOR > 52
+-#ifdef AVUTIL_CHANNEL_LAYOUT_H
++#ifdef LIBAVUTIL_HAS_CH_LAYOUT
+   int frame_channels = avFrame->ch_layout.nb_channels;
+ #else
+   int frame_channels = avFrame->channels;
diff -Nru aubio-0.4.9/debian/patches/ffmpeg5.1.patch 
aubio-0.4.9/debian/patches/ffmpeg5.1.patch
--- aubio-0.4.9/debian/patches/ffmpeg5.1.patch  1970-01-01 01:00:00.000000000 
+0100
+++ aubio-0.4.9/debian/patches/ffmpeg5.1.patch  2024-10-05 01:40:39.000000000 
+0200
@@ -0,0 +1,90 @@
+Description: [source_avcodec] add support for AVChannelLayout (ffmpeg 5.1)
+Author: Paul Brossier <p...@piem.org>
+Origin: upstream, 
https://github.com/aubio/aubio/commit/0b947f9634937d27589d995ec90e90d763aca86f
+Last-Update: 2024-09-17
+---
+Index: aubio/src/io/source_avcodec.c
+===================================================================
+--- aubio.orig/src/io/source_avcodec.c
++++ aubio/src/io/source_avcodec.c
+@@ -263,7 +263,11 @@ aubio_source_avcodec_t * new_aubio_sourc
+ 
+   /* get input specs */
+   s->input_samplerate = avCodecCtx->sample_rate;
++#ifdef AVUTIL_CHANNEL_LAYOUT_H
++  s->input_channels   = avCodecCtx->ch_layout.nb_channels;
++#else
+   s->input_channels   = avCodecCtx->channels;
++#endif
+   //AUBIO_DBG("input_samplerate: %d\n", s->input_samplerate);
+   //AUBIO_DBG("input_channels: %d\n", s->input_channels);
+ 
+@@ -316,16 +320,26 @@ void aubio_source_avcodec_reset_resample
+   // create or reset resampler to/from mono/multi-channel
+   if ( s->avr == NULL ) {
+     int err;
+-    int64_t input_layout = av_get_default_channel_layout(s->input_channels);
+-    int64_t output_layout = av_get_default_channel_layout(s->input_channels);
+ #ifdef HAVE_AVRESAMPLE
+     AVAudioResampleContext *avr = avresample_alloc_context();
+ #elif defined(HAVE_SWRESAMPLE)
+     SwrContext *avr = swr_alloc();
+ #endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */
++#ifdef AVUTIL_CHANNEL_LAYOUT_H
++    AVChannelLayout input_layout;
++    AVChannelLayout output_layout;
++    av_channel_layout_default(&input_layout, s->input_channels);
++    av_channel_layout_default(&output_layout, s->input_channels);
++
++    av_opt_set_chlayout(avr, "in_chlayout",  &input_layout,        0);
++    av_opt_set_chlayout(avr, "out_chlayout", &output_layout,       0);
++#else
++    int64_t input_layout = av_get_default_channel_layout(s->input_channels);
++    int64_t output_layout = av_get_default_channel_layout(s->input_channels);
+ 
+     av_opt_set_int(avr, "in_channel_layout",  input_layout,              0);
+     av_opt_set_int(avr, "out_channel_layout", output_layout,             0);
++#endif /* AVUTIL_CHANNEL_LAYOUT_H */
+     av_opt_set_int(avr, "in_sample_rate",     s->input_samplerate,       0);
+     av_opt_set_int(avr, "out_sample_rate",    s->samplerate,             0);
+     av_opt_set_int(avr, "in_sample_fmt",      s->avCodecCtx->sample_fmt, 0);
+@@ -373,7 +387,11 @@ void aubio_source_avcodec_readframe(aubi
+   int out_samples = 0;
+ #elif defined(HAVE_SWRESAMPLE)
+   int in_samples = avFrame->nb_samples;
++#ifdef AVUTIL_CHANNEL_LAYOUT_H
++  int max_out_samples = AUBIO_AVCODEC_MAX_BUFFER_SIZE / 
avCodecCtx->ch_layout.nb_channels;
++#else
+   int max_out_samples = AUBIO_AVCODEC_MAX_BUFFER_SIZE / avCodecCtx->channels;
++#endif
+   int out_samples = 0;
+ #endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */
+   smpl_t *output = s->output;
+@@ -440,10 +458,15 @@ void aubio_source_avcodec_readframe(aubi
+   }
+ 
+ #if LIBAVUTIL_VERSION_MAJOR > 52
+-  if (avFrame->channels != (sint_t)s->input_channels) {
++#ifdef AVUTIL_CHANNEL_LAYOUT_H
++  int frame_channels = avFrame->ch_layout.nb_channels;
++#else
++  int frame_channels = avFrame->channels;
++#endif
++  if (frame_channels != (sint_t)s->input_channels) {
+     AUBIO_WRN ("source_avcodec: trying to read from %d channel(s),"
+         "but configured for %d; is '%s' corrupt?\n",
+-        avFrame->channels, s->input_channels, s->path);
++        frame_channels, s->input_channels, s->path);
+     goto beach;
+   }
+ #else
+@@ -462,7 +485,8 @@ void aubio_source_avcodec_readframe(aubi
+         (uint8_t **)avFrame->data, in_linesize, in_samples);
+ #elif defined(HAVE_SWRESAMPLE)
+   in_samples = avFrame->nb_samples;
+-  max_out_samples = AUBIO_AVCODEC_MAX_BUFFER_SIZE / avCodecCtx->channels;
++  max_out_samples = AUBIO_AVCODEC_MAX_BUFFER_SIZE;
++  if (frame_channels > 0) max_out_samples /= frame_channels;
+   out_samples = swr_convert( avr,
+       (uint8_t **)&output, max_out_samples,
+       (const uint8_t **)avFrame->data, in_samples);
diff -Nru aubio-0.4.9/debian/patches/fixpy312.patch 
aubio-0.4.9/debian/patches/fixpy312.patch
--- aubio-0.4.9/debian/patches/fixpy312.patch   1970-01-01 01:00:00.000000000 
+0100
+++ aubio-0.4.9/debian/patches/fixpy312.patch   2024-10-05 01:40:39.000000000 
+0200
@@ -0,0 +1,49 @@
+Description: Fix Python 3.12 compatibility
+Author: Zixing Liu <zixing....@canonical.com>
+Forwarded: no
+Last-Update: 2024-09-17
+---
+--- aubio-0.4.9.orig/python/ext/ufuncs.c
++++ aubio-0.4.9/python/ext/ufuncs.c
+@@ -3,8 +3,8 @@
+ 
+ typedef smpl_t (*aubio_unary_func_t)(smpl_t input);
+ 
+-static void aubio_PyUFunc_d_d(char **args, npy_intp *dimensions,
+-                            npy_intp* steps, void* data)
++static void aubio_PyUFunc_d_d(char **args, const npy_intp *dimensions,
++                            const npy_intp* steps, void* data)
+ {
+     npy_intp i;
+     npy_intp n = dimensions[0];
+@@ -22,8 +22,8 @@ static void aubio_PyUFunc_d_d(char **arg
+     }
+ }
+ 
+-static void aubio_PyUFunc_f_f_As_d_d(char **args, npy_intp *dimensions,
+-                            npy_intp* steps, void* data)
++static void aubio_PyUFunc_f_f_As_d_d(char **args, const npy_intp *dimensions,
++                            const npy_intp* steps, void* data)
+ {
+     npy_intp i;
+     npy_intp n = dimensions[0];
+--- aubio-0.4.9.orig/python/lib/gen_code.py
++++ aubio-0.4.9/python/lib/gen_code.py
+@@ -106,7 +106,7 @@ def get_name(proto):
+ 
+ def get_return_type(proto):
+     import re
+-    paramregex = re.compile('(\w+ ?\*?).*')
++    paramregex = re.compile(r'(\w+ ?\*?).*')
+     outputs = paramregex.findall(proto)
+     assert len(outputs) == 1
+     return outputs[0].replace(' ', '')
+@@ -137,7 +137,7 @@ def get_params(proto):
+     returns: ['int argc', 'char ** argv']
+     """
+     import re
+-    paramregex = re.compile('.*\((.*)\);')
++    paramregex = re.compile(r'.*\((.*)\);')
+     a = paramregex.findall(proto)[0].split(', ')
+     #a = [i.replace('const ', '') for i in a]
+     return a
diff -Nru aubio-0.4.9/debian/patches/series aubio-0.4.9/debian/patches/series
--- aubio-0.4.9/debian/patches/series   2024-02-07 00:46:01.000000000 +0100
+++ aubio-0.4.9/debian/patches/series   2024-10-05 01:40:39.000000000 +0200
@@ -6,3 +6,6 @@
 waflib-py311.patch
 ffmpeg5.patch
 waflib-py312.patch
+ffmpeg5.1.patch
+ffmpeg5.1-adjust.patch
+fixpy312.patch

--- End Message ---
--- Begin Message ---
Source: aubio
Source-Version: 0.4.9-4.5
Done: IOhannes m zmölnig (Debian/GNU) <umlae...@debian.org>

We believe that the bug you reported is fixed in the latest version of
aubio, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1072...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
IOhannes m zmölnig (Debian/GNU) <umlae...@debian.org> (supplier of updated 
aubio package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 05 Oct 2024 01:40:39 +0200
Source: aubio
Architecture: source
Version: 0.4.9-4.5
Distribution: unstable
Urgency: medium
Maintainer: Paul Brossier <p...@debian.org>
Changed-By: IOhannes m zmölnig (Debian/GNU) <umlae...@debian.org>
Closes: 1072399 1074827
Changes:
 aubio (0.4.9-4.5) unstable; urgency=medium
 .
   * Non-maintainer upload.
 .
   * Backport fix for FTBFS with FFMpeg-7 from upstream via Ubuntu
     (Closes: #1072399)
   * Backport fix for FTBFS with Python3.12 from Ubuntu.
     Thanks to Zixing Liu <zixing....@canonical.com> (Closes: #1074827)
Checksums-Sha1:
 1d8370a98de3680e976043e6f92a334fde73640b 2423 aubio_0.4.9-4.5.dsc
 df6d7b6949bb3928851b549cac4dd411b70e2a53 21416 aubio_0.4.9-4.5.debian.tar.xz
 8e862aa7b9c4ca710367f6cc1e0d56f48a7c6bb4 14313 aubio_0.4.9-4.5_amd64.buildinfo
Checksums-Sha256:
 971c827f9077adc4134a708d98d4450113e8fd76d2d8bd3ca2aa3290cf9f71b5 2423 
aubio_0.4.9-4.5.dsc
 ade3e32316d6f63611d7e18e18ce7ee350252568f277c81478f4d6e7e920456f 21416 
aubio_0.4.9-4.5.debian.tar.xz
 ef29d8b7a87a1d921cd6c8d3753ae231103b7f18291a1ca68e27b0c37a4c9ecb 14313 
aubio_0.4.9-4.5_amd64.buildinfo
Files:
 31108641257b597cd31b8fbbf4a7a23d 2423 sound optional aubio_0.4.9-4.5.dsc
 e0a12e304e5a442742dc99a7dab463d1 21416 sound optional 
aubio_0.4.9-4.5.debian.tar.xz
 e1bdf5f5b532f932224959754ac7ba09 14313 sound optional 
aubio_0.4.9-4.5_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEdAXnRVdICXNIABVttlAZxH96NvgFAmcRGlcACgkQtlAZxH96
NviR8w//TsCZXgDF7AEKr6D8ZtpdZLosww+FySrStIApy9Pk3+5fEpRR+OkLqYew
7m6SrdGd8fimFvzd1XV38VaaH1N7e7WAG2uaNHJJkxIEZBUCAx3fLfKbCAMMbEji
gXzu2UVncRHwLhqdYEnT59q8fqEAiG4DGYu3UVc2IndBD+dL2K9mwfKLo8j4WqS/
iOFN7NPSFbxYlw9kUQyKLmKj36o3WeoDJDNjJYzJbDqL9hAblsv0Cn0nzaTrq2TF
EEJiCCWKGaidRWN6simS5DHA3G1wCi4fZagEb7kGuFdjRHgK2Q/rHKF+/wZ/g818
EURMInl7lu4NX0Xy8L8QHFoarBWHCukhUXRZWYBarqh/WCX76NbGcOr/RwZFJ4br
MhwiIIPKhqz0OHrpI0ER1iwbcIq+yQ8zKXSt41DsowLdF7gmOtYpEHSGWwjUeqBD
gyL6ghNhL+VzPRtCbeY3bRPOUaLzeuXfmo9sgmiM5sirtbF2GmSXqGPflWKP67qi
fUaeaVXu6F8Sohq+7xUwcgz4t69sxZVj/4y9pETz8+J1Mr5J+K+521OO5RZ+LwCW
a3oc0vBCal91XFLpBGkksaKXUJ1DFwihX2b7yUxCMmPvcq5eo7VBsfke6Z7zudeB
HiN33zJWLvM4lJV0VEi3Dsg1fG/spT9YaXUxoWOnylKQJhvavOc=
=8xgW
-----END PGP SIGNATURE-----

Attachment: pgpRMqB7zPdm7.pgp
Description: PGP signature


--- End Message ---

Reply via email to