user [email protected] usertags 1114309 python3.15 tags 1114309 patch thanks
Hi! While rebuilding the python related packages against the Python 3.15rc2 version I ran into this FTBFS [1]. I think this package is a good candidate to request removal: it has no reverse dependecies; upstream is inactive, and it's the same person as the Debian maintainer; and the uploaded code doesn't match the code in the git package. To be able to get it back to building, I had to: - Add a patch to use <stdbool.h> - Update a test script that was using old ctypes I've applied these fixes in the sandbox [2] to verify that it builds successfully, this should either be applied in Debian to get it back to a healthy state, or ask for the removal of the package. Happy hacking, [1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4286077/ [2]: https://debusine.debian.net/debian/r-python-python3.15/ -- "If you optimize everything, you will always be unhappy." -- Donald Knuth Saludos /\/\ /\ >< `/
diff -Nru python-lua-1.0/debian/changelog python-lua-1.0/debian/changelog --- python-lua-1.0/debian/changelog 2025-06-10 00:12:52.000000000 +0200 +++ python-lua-1.0/debian/changelog 2026-09-08 11:46:11.000000000 +0200 @@ -1,10 +1,18 @@ +python-lua (1.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Add patch to support C23 + * Update test script + + -- Maximiliano Curia <[email protected]> Tue, 08 Sep 2026 11:46:11 +0200 + python-lua (1.0-1) unstable; urgency=medium * New upstream release. * Convert code to C++. * Update standards version to 3.7.2. No changes needed. - -- Bas Wijnen <[email protected]> Tue, 10 Jun 2025 00:12:52 +0200 + -- Bas Wijnen <[email protected]> Tue, 10 Jun 2025 00:00:16 +0200 python-lua (0.6-1) unstable; urgency=medium diff -Nru python-lua-1.0/debian/patches/c23-stdbool.patch python-lua-1.0/debian/patches/c23-stdbool.patch --- python-lua-1.0/debian/patches/c23-stdbool.patch 1970-01-01 01:00:00.000000000 +0100 +++ python-lua-1.0/debian/patches/c23-stdbool.patch 2026-09-08 11:46:11.000000000 +0200 @@ -0,0 +1,16 @@ +Description: Use stdbool.h for C23 compatibility +Index: python-lua-1.0/module.h +=================================================================== +--- python-lua-1.0.orig/module.h ++++ python-lua-1.0/module.h +@@ -91,9 +91,7 @@ lua.module(name, object) + #include <assert.h> + // }}} + +-typedef int bool; +-#define true 1 +-#define false 0 ++#include <stdbool.h> + + enum Operator { // {{{ + // Operators using the default metamethod. diff -Nru python-lua-1.0/debian/patches/series python-lua-1.0/debian/patches/series --- python-lua-1.0/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ python-lua-1.0/debian/patches/series 2026-09-08 11:46:11.000000000 +0200 @@ -0,0 +1 @@ +c23-stdbool.patch diff -Nru python-lua-1.0/debian/tests/control python-lua-1.0/debian/tests/control --- python-lua-1.0/debian/tests/control 2023-02-19 13:49:01.000000000 +0100 +++ python-lua-1.0/debian/tests/control 2026-09-08 11:46:11.000000000 +0200 @@ -1,2 +1,2 @@ Tests: run -Depends: @ +Depends: @, python3-all diff -Nru python-lua-1.0/debian/tests/run python-lua-1.0/debian/tests/run --- python-lua-1.0/debian/tests/run 2023-02-19 14:31:02.000000000 +0100 +++ python-lua-1.0/debian/tests/run 2026-09-08 11:46:11.000000000 +0200 @@ -1,71 +1,8 @@ -#!/bin/bash +#!/bin/sh +set -e -d="`mktemp -d`" -cleanup() { - rm -rf "$d" -} -trap cleanup EXIT - -cat > "$d"/correct.txt <<EOF -global "x" None -file {a: 3, b: "bar"} {'a': 3, 'b': bar} -1 + 2 = 3 -x = 15: 15 -new x = "foo": foo -use str = "48": 48 -use bytes = "49": 49 -module foo = 12: 12 -table 1: 1 -+ 8: 8 --2 -2: -2 -* 15: 15 -/ .6: 0.6 -% 3: 3 -** 243: 243 --1 -3: -3 -// 0: 0 -& 1: 1 -| 7: 7 -~ 6: 6 -~ -4: -4 -<< 96: 96 ->> 128: 128 -.. "35" 3 concat 5 -# 4: 4 -== False: False -~= True: True -< True: True -> False: False -<= True: True ->= False: False -[int] 3: 3 -[str] 25: 25 -[]= [4,7,42,2,33,10] [4, 7, 42, 2, 33, 10] -5 foo -() None + 5,"foo": None -closing 12 None -close 8 and 12 8 -str "abc" b'abc' -code call 11: 11 -table len 3 3 -table [] 3: 3 -table {None,4,"boo",6,None,4,5} {1: 4, 2: boo, 3: 6, 5: 4, 6: 5} -contain FFTT False False True True -for ['1: 4', '2: boo', '3: 6', '4: 0', '5: 4', '6: 5'] -eq TFFT: True False False True -dict {1: 4, 2: boo, 3: 6, 4: 0, 5: 4, 6: 5} -list [4, 'boo', 6, 0, 4, 5] -pop [4, 'boo', 6, 0, 5] -pop ['boo', 6, 0, 5] -del'd -python list [1, 2, 3] [1, 2, 3] -python dict {1: "foo", "bar": 42} {1: foo, 'bar': 42} -python bytes from string = b'Hello!' b'Hello!' -python bytes from table = b'AB' b'AB' -python bytes from int = b'\x00\x00' b'\x00\x00' -EOF - -cd "`dirname "$0"`" -./test > "$d"/output.txt - -diff -u "$d"/output.txt "$d"/correct.txt +DIR="$(dirname "$0")/../.." +for py in $(py3versions -r 2>/dev/null || echo python3); do + echo "=== Testing with $py ===" + "$py" "$DIR/test.py" +done
signature.asc
Description: PGP signature

