Bug#1026310: vdr-dev: dh_vdrplugin_depends fail with "error: Bug in helper:"

2023-02-12 Thread Rogo
Control: tags -1 patch

Hi,

the problem is that the value of the substvar is read from a file and perl adds 
a newline at the end.
Attached patch removes this added newline using chomp.

Best regards,
Rogo
From ca16a57dfea8964905bce2361fce906df0cc8483 Mon Sep 17 00:00:00 2001
From: Rogo 
Date: Sun, 12 Feb 2023 17:20:48 +0100
Subject: [PATCH] Remove trailing newline from abiversion

---
 debian/dh-addon-vdrplugin/dh_vdrplugin_depends | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/dh-addon-vdrplugin/dh_vdrplugin_depends b/debian/dh-addon-vdrplugin/dh_vdrplugin_depends
index 0ea3bb54..5be50ba6 100755
--- a/debian/dh-addon-vdrplugin/dh_vdrplugin_depends
+++ b/debian/dh-addon-vdrplugin/dh_vdrplugin_depends
@@ -43,6 +43,8 @@ no locale;
 open(my $abiversion_file, ";
 close($abiversion_file);
+# remove trailing newline
+chomp($abiversion[-1]);
 
 verbose_print("Setting vdr:Depends=@abiversion");
 
-- 
2.39.1



Bug#1030687: libgiac-dev: giac/plot.h needs lacks typedef for uchar

2023-02-06 Thread Rogo
Control: tags -1 fixed-upstream

Hi,

this regression was introduced in version 1.9.0.35+dfsg2 with the colormap 
support.
The problem is already fixed upstream in version 1.9.0.37 by using 'unsigned 
char' instead of 'uchar' in plot.h.

So simply importing the new upstream version will fix this bug.

Best regards,
Rogo



Bug#1020576: please update sage for pari 2.15.0 and gap 4.12.0

2023-02-05 Thread Rogo
Control: tags -1 patch

Hi,

as Adrian indicated, the setuptools issue is now fixed and the 
dt-reorder-cython-setuptools-import.patch is not needed anymore.
However, there are now several unrelated problems causing sagemath to FTBFS.

First of all giac.h can't be compiled, as uchar is not defined.
Workaround: Add '#define uchar u_char' at the beginning of 
/usr/include/giac/giac.h.

Then debian/rules needs to be adapted to Python 3.11:
$ sed -i 's/python3.10/python3.11/' debian/rules

Further backporting some patches from upstream (on top of what is currently in 
git) is necessary:
# Python 3.11
de38bac21e2 src/sage: Apply python-3.11.patch from 
https://github.com/void-linux/void-packages/commit/6229f313450ecae88743b4d5e99da2ed4de44e07
9eb08f3afde inspect.ArgSpec -> inspect.FullArgSpec
8955607c71c dict_del_by_value: move python internal definitions to a separate 
file
76040803c8a dict_del_by_value: add internal definitions for python 3.11
014c2ac9a6f deprecated uu -> base64
dc8e155994a sage.misc.fpickle: fix for python 3.11
fd4d6975790 src/sage/misc/fpickle.pyx: Fix docstring markup
8b0dac2322d Fix FullArgSpec usage after 9eb08f3afde3266bbd667e196513240a0fe245f4
db45aebfd6b warnings: ignore deprecation for 'import cgi' in cython
664fc008ed5 warnings: ignore deprecation for 'import sre_constants' in pyparsing
0f63cce4ed1 src/sage/repl/display/formatter.py: Replace use of SAGE_EXTCODE in 
doctest by importlib.resources
08e1161c23c warnings: ignore deprecation of importlib.resources.path/read_binary
ed9fe6746f9 remove traces of # py3 and some # py2
44480f4827e doctests: fixes due to ArgSpec -> FullArgSpec change
482dd1ac3d2 doctests: AssertionError message changed in python 3.11
7b6fa565f42 doctests: message added more info in python 3.11
c928c2c7978 src/sage/all.py: Filter out imghdr deprecation warnings
ac0105e720d Filter out locale DeprecationWarning

# Sphinx 5.2
3ee509aec95 remove unused, and removed from sphinx 5, imported 
get_module_members
18c92459b33 fix syntax so extlinks stop complaining
c27e4e4c979 migrate from filename_set to record_dependencies as suggested in 
https://www.sphinx-doc.org/en/master/extdev/deprecated.html
c2e610cfba0 Fix build with sphinx 5.2

# Matplotlib 3.6
5501e0de0dc Support matplotlib 3.6
4645a0d0c10 Removing faulty plot
f0a77039bb2 Add back doctest
8371dd75013 Missing part of the fix
a8741d8c60d Edit the doctest
64589686c26 More edis of the doctest

# SymPy 1.10
609dd9deaea sage.manifolds: Update doctests for SymPy 1.10

# SciPy 1.8
9c8235e44ff Fix deprecation warning with scipy 1.8

# Singular 4.3.1p3
42342b90043 Apply 
https://github.com/archlinux/svntogit-community/blob/packages/sagemath/trunk/sagemath-singular-4.3.1.p3.patch
6e03fbe3161 Singular supports larger exponents now, adapt tests
267177af61d Fix one more test
d2b0016b838 Account for different bahavior of pTakeOutComp and pTakeOutComp1

This makes it possible to compile sagemath, but then 138 tests fail, which is 
larger then the threshold of 100.
Many are due to new deprecation warnings that can simply be ignored for now, 
e.g. with the attached dt-ignore-deprecation-warnings.patch.
With that patch only 97 tests fail, so building sagemath works again!

Best regards,
RogoDescription: ignore some deprecation warnings
Author: Rogo 

--- a/sage/src/sage/all.py
+++ b/sage/src/sage/all.py
@@ -126,6 +126,18 @@ warnings.filterwarnings('ignore', category=DeprecationWarning,
 message=r"Use setlocale\(\), getencoding\(\) and getlocale\(\) instead",
 module='docutils.io')
 
+# ignore some deprecation warnings
+warnings.filterwarnings('ignore', category=DeprecationWarning,
+message="msvccompiler is deprecated and slated to be removed in the future. Please discontinue use or file an issue with pypa/distutils describing your use case.")
+warnings.filterwarnings('ignore', category=FutureWarning,
+message=r"In the future `np.(bool|bytes)` will be defined as the corresponding NumPy scalar.  \(This may have returned Python scalars in past versions.")
+warnings.filterwarnings('ignore', category=DeprecationWarning,
+message="'imghdr' is deprecated and slated for removal in Python 3.13")
+warnings.filterwarnings('ignore', category=DeprecationWarning,
+message="'cgi' is deprecated and slated for removal in Python 3.13")
+warnings.filterwarnings('ignore', category=DeprecationWarning,
+message=r"Passing unrecognized arguments to super\(ToggleButtons\).__init__\(style=\{'button_width': 'initial'\}\).")
+
  end setup warnings ###
 
 


Bug#1016925: kodi: Video playback not working in latest version of kodi

2022-08-15 Thread Rogo
Control: reassign -1 ffmpeg 7:5.1-2
Control: affects -1 kodi

Hi,

since kodi in Debian is built against ffmpeg 5.1, TV playback is broken.
More specifically, kodi can no longer play video transport streams.

One can reproduce this by playing a video from a ts file in kodi, e.g.:
$ ffmpeg -f lavfi -i testsrc -t 10 -c:v h264 test.ts
$ kodi test.ts

This worked fine with kodi 19.4, which was built against ffmpeg 4.4,
but no longer shows the video in kodi 20, which is built against ffmpeg 5.1.

The problem is that kodi tries to manually extract transport stream extradata
using parser->split in CDVDDemuxFFmpeg::ParsePacket [1], but all the split
functions were removed in ffmpeg 5.0 by [2]:
commit e5af9203098a889f36b759652615046254d45102
Author: Andreas Rheinhardt 
Date:   Sun Mar 7 00:28:14 2021 +0100

avcodec: Move all AVCodecParser.split functions to remove_extradata_bsf

The remove_extradata bsf is the only user of these functions.

Signed-off-by: Andreas Rheinhardt 
Signed-off-by: James Almer 

Reverting this commit on top of ffmpeg 5.1 (and including startcode.h in
files then using avpriv_find_start_code) restores TV playback in kodi.

As the example of kodi shows, these split functions are generally useful
for API users outside of ffmpeg itself.
Thus please restore them, e.g. by reverting this commit.

Thanks,
Rogo

1: 
https://salsa.debian.org/multimedia-team/kodi-media-center/kodi/-/blob/1690349c890bdf941216218dd6b4f7b9c4204dc0/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp#L2260
2: 
https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/e5af9203098a889f36b759652615046254d45102