Bug#1067562: FTBFS: missing symbols on 32-bit architectures

2024-04-03 Thread Simon Chopin
Source: mpg123
Followup-For: Bug #1067562
X-Debbugs-Cc: scho...@ubuntu.com
Control: tags -1 ftbfs patch

Hi,

I just uploaded the attached debdiff to Ubuntu to both fix the FTBFS and
start the t64 transition for this package, based on the following
comment:

> the non-suffixed functions now work with 64 bit offsets, where they
> formerly worked with 32 bit off_t arguments. This could be considered
> ABI breakage, too.

That's definitely an ABI break, so the transition is necessary in any
case. We can always add back the compat layer if we deem it necessary.


-- System Information:
Debian Release: trixie/sid
  APT prefers noble-updates
  APT policy: (500, 'noble-updates'), (500, 'noble'), (100, 'noble-proposed')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.8.0-20-generic (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru mpg123-1.32.5/debian/changelog mpg123-1.32.5/debian/changelog
--- mpg123-1.32.5/debian/changelog  2024-03-31 10:08:02.0 +0200
+++ mpg123-1.32.5/debian/changelog  2024-04-03 20:29:56.0 +0200
@@ -1,3 +1,13 @@
+mpg123 (1.32.5-1ubuntu1) noble; urgency=medium
+
+  [ Steve Langasek ]
+  * Rename libraries for 64-bit time_t transition. (Closes: #1063140)
+
+  [ Simon Chopin ]
+  * Only include 32bit compat symbols on i386 arches (Closes: #1067562)
+
+ -- Simon Chopin   Wed, 03 Apr 2024 20:29:56 +0200
+
 mpg123 (1.32.5-1build2) noble; urgency=medium
 
   * No-change rebuild for CVE-2024-3094
diff -Nru mpg123-1.32.5/debian/control mpg123-1.32.5/debian/control
--- mpg123-1.32.5/debian/control2024-03-12 07:39:44.0 +0100
+++ mpg123-1.32.5/debian/control2024-04-03 20:20:46.0 +0200
@@ -43,7 +43,10 @@
  OSS4, the Advanced Linux Sound Architecture (ALSA), JACK, PortAudio,
  PulseAudio, OpenAL and the Network Audio System (NAS).
 
-Package: libmpg123-0
+Package: libmpg123-0t64
+Provides: ${t64:Provides}
+Replaces: libmpg123-0
+Breaks: libmpg123-0 (<< ${source:Version})
 Multi-Arch: same
 Architecture: any
 Section: libs
@@ -57,7 +60,10 @@
  This package contains the C libraries needed to run executables that use
  the mpg123 library.
 
-Package: libout123-0
+Package: libout123-0t64
+Provides: ${t64:Provides}
+Replaces: libout123-0
+Breaks: libout123-0 (<< ${source:Version})
 Multi-Arch: same
 Architecture: any
 Section: libs
@@ -70,7 +76,10 @@
  .
  This package contains the shared out123 library.
 
-Package: libsyn123-0
+Package: libsyn123-0t64
+Provides: ${t64:Provides}
+Replaces: libsyn123-0
+Breaks: libsyn123-0 (<< ${source:Version})
 Multi-Arch: same
 Architecture: any
 Section: libs
@@ -88,9 +97,9 @@
 Architecture: any
 Section: libdevel
 Depends:
- libmpg123-0 (= ${binary:Version}),
- libout123-0 (= ${binary:Version}),
- libsyn123-0 (= ${binary:Version}),
+ libmpg123-0t64 (= ${binary:Version}),
+ libout123-0t64 (= ${binary:Version}),
+ libsyn123-0t64 (= ${binary:Version}),
  ${misc:Depends}
 Description: MPEG layer 1/2/3 audio decoder (development files)
  mpg123 is a real time MPEG 1.0/2.0/2.5 audio player/decoder for layers
diff -Nru mpg123-1.32.5/debian/libmpg123-0.install 
mpg123-1.32.5/debian/libmpg123-0.install
--- mpg123-1.32.5/debian/libmpg123-0.install2023-10-01 15:44:05.0 
+0200
+++ mpg123-1.32.5/debian/libmpg123-0.install1970-01-01 01:00:00.0 
+0100
@@ -1 +0,0 @@
-usr/lib/*/libmpg123.so.0*
diff -Nru mpg123-1.32.5/debian/libmpg123-0.lintian-overrides 
mpg123-1.32.5/debian/libmpg123-0.lintian-overrides
--- mpg123-1.32.5/debian/libmpg123-0.lintian-overrides  2023-10-01 
15:44:05.0 +0200
+++ mpg123-1.32.5/debian/libmpg123-0.lintian-overrides  1970-01-01 
01:00:00.0 +0100
@@ -1,2 +0,0 @@
-# The SSE, 3DNowExt, 3DNow, and MMX decoders use non-pic assembly code.
-libmpg123-0 [i386]: specific-address-in-shared-library
diff -Nru mpg123-1.32.5/debian/libmpg123-0.symbols 
mpg123-1.32.5/debian/libmpg123-0.symbols
--- mpg123-1.32.5/debian/libmpg123-0.symbols2023-10-02 21:38:58.0 
+0200
+++ mpg123-1.32.5/debian/libmpg123-0.symbols1970-01-01 01:00:00.0 
+0100
@@ -1,160 +0,0 @@
-libmpg123.so.0 libmpg123-0 #MINVER#
- mpg123_add_string@Base 1.6.2
- mpg123_add_substring@Base 1.6.2
- mpg123_chomp_string@Base 1.15.1
- mpg123_clip@Base 1.6.2
- mpg123_close@Base 1.6.2
- mpg123_copy_string@Base 1.6.2
- mpg123_current_decoder@Base 1.7.2
- mpg123_decode@Base 1.6.2
- mpg123_decode_frame64@Base 1.32.3
- mpg123_decode_frame@Base 1.6.2
- mpg123_decode_frame_64@Base 1.13.7
- mpg123_decoder@Base 1.6.2
- mpg123_decoders@Base 1.6.2
- mpg123_delete@Base 1.6.2
- mpg123_delete_pars@Base 1.6.2
- mpg123_delete_string@Base 1.26.0
- mpg123_distversion@Base 1.32.3
- mpg1

Bug#1033528: apbs: autopkgtest regression: apbs_tester.py': [Errno 2] No such file or directory

2024-03-29 Thread Simon Chopin
Package: apbs
Followup-For: Bug #1033528
X-Debbugs-Cc: scho...@ubuntu.com
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Hi, I applied the attached patch in Ubuntu to fix the problem (just a
missing shebang in the autopkgtest script)

Cheers,
Simon

-- System Information:
Debian Release: trixie/sid
  APT prefers noble
  APT policy: (500, 'noble'), (100, 'noble-proposed')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.8.0-11-generic (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru apbs-3.4.1/debian/tests/test-apbs apbs-3.4.1/debian/tests/test-apbs
--- apbs-3.4.1/debian/tests/test-apbs   2021-01-10 14:57:25.0 +0100
+++ apbs-3.4.1/debian/tests/test-apbs   2024-03-29 15:19:36.0 +0100
@@ -1,3 +1,5 @@
+#!/bin/bash
+
 cp -ra /usr/share/apbs/{tests,examples} ${AUTOPKGTEST_TMP}
 cd ${AUTOPKGTEST_TMP}/tests
 


Bug#1067075: openvas-scanner: FTBFS on arm{el,hf}: /<>/src/attack.c:1617:16: error: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘__time64_t’ {aka ‘long long

2024-03-23 Thread Simon Chopin
Source: openvas-scanner
Followup-For: Bug #1067075
X-Debbugs-Cc: scho...@ubuntu.com
Control: tags -1 ftbfs

It seems I missed a few (and messed something when test building?),
new patch attached.


-- System Information:
Debian Release: trixie/sid
  APT prefers noble
  APT policy: (500, 'noble'), (100, 'noble-proposed')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.8.0-11-generic (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
>From b75d19ecd90498e6d005c62b8fd4d31f3909a5cb Mon Sep 17 00:00:00 2001
From: Simon Chopin 
Date: Fri, 22 Mar 2024 17:43:22 +0100
Subject: [PATCH] Fix printf specifiers for time_t-related types

Best to only use fixed-width types and explicit casting.
---
 src/attack.c   | 8 +---
 src/pluginlaunch.c | 8 +---
 2 files changed, 10 insertions(+), 6 deletions(-)

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067075
--- a/src/attack.c
+++ b/src/attack.c
@@ -44,9 +44,11 @@
 #include  /* for nvticache_t */
 #include 
 #include 
+#include 
 #include/* for strlen() */
 #include  /* for waitpid() */
 #include/* for close() */
+#include 
 
 #define ERR_HOST_DEAD -1
 
@@ -987,9 +989,9 @@
   now.tv_usec += 100;
 }
   g_message (
-"Vulnerability scan %s finished for host %s in %ld.%.2ld seconds",
-globals->scan_id, ip_str, (long) (now.tv_sec - then.tv_sec),
-(long) ((now.tv_usec - then.tv_usec) / 1));
+"Vulnerability scan %s finished for host %s in %"PRIu64".%.2"PRIu32" 
seconds",
+globals->scan_id, ip_str, (uint64_t) (now.tv_sec - then.tv_sec),
+(uint32_t) ((now.tv_usec - then.tv_usec) / 1));
 }
 }
 
@@ -1614,13 +1616,13 @@
 
   gettimeofday (&now, NULL);
   if (test_alive_hosts_only)
-g_message ("Vulnerability scan %s finished in %ld seconds: "
+g_message ("Vulnerability scan %s finished in %"PRIu64" seconds: "
"%d alive hosts of %d",
-   globals->scan_id, now.tv_sec - then.tv_sec,
+   globals->scan_id, (uint64_t)(now.tv_sec - then.tv_sec),
gvm_hosts_count (alive_hosts_list), gvm_hosts_count (hosts));
   else
-g_message ("Vulnerability scan %s finished in %ld seconds: %d hosts",
-   globals->scan_id, now.tv_sec - then.tv_sec,
+g_message ("Vulnerability scan %s finished in %"PRIu64" seconds: %d hosts",
+   globals->scan_id, (uint64_t)(now.tv_sec - then.tv_sec),
gvm_hosts_count (hosts));
 
   gvm_hosts_free (hosts);
--- a/src/pluginlaunch.c
+++ b/src/pluginlaunch.c
@@ -24,8 +24,10 @@
 #include "utils.h"
 
 #include   /* for errno() */
+#include 
 #include  /* for prefs_get_bool() */
 #include 
+#include 
 #include   /* for perror() */
 #include  /* for atoi() */
 #include 
@@ -187,10 +189,10 @@
 {
   char *name = nvticache_get_filename (oid);
   g_message (
-"%s (%s) [%d] finished its job in %ld.%.3ld seconds",
+"%s (%s) [%d] finished its job in 
%"PRIu64".%.3"PRIu32" seconds",
 name, oid, processes[i].pid,
-(long) (now.tv_sec - processes[i].start.tv_sec),
-(long) ((now.tv_usec - processes[i].start.tv_usec)
+(uint64_t) (now.tv_sec - processes[i].start.tv_sec),
+(uint32_t) ((now.tv_usec - processes[i].start.tv_usec)
 / 1000));
   g_free (name);
 }
--- a/nasl/nasl_misc_funcs.c
+++ b/nasl/nasl_misc_funcs.c
@@ -30,6 +30,7 @@
 #include 
 #include  /* for gvm_uncompress */
 #include /* for KB_TYPE_STR */
+#include 
 #include /* for boolean */
 #include  /* for lrand48 */
 #include  /* for bzero */
@@ -657,7 +658,7 @@
   nasl_perror (lexic, "gettimeofday: %s\n", strerror (errno));
   return NULL;
 }
-  sprintf (str, "%u.%06u", (unsigned int) t.tv_sec, (unsigned int) t.tv_usec);
+  sprintf (str, "%"PRIu64".%06"PRIu32, (uint64_t) t.tv_sec, (uint32_t) 
t.tv_usec);
   retc = alloc_typed_cell (CONST_DATA);
   retc->size = strlen (str);
   retc->x.str_val = g_malloc0 (retc->size);


Bug#1067075: openvas-scanner: FTBFS on arm{el,hf}: /<>/src/attack.c:1617:16: error: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘__time64_t’ {aka ‘long long

2024-03-22 Thread Simon Chopin
Package: openvas-scanner
Followup-For: Bug #1067075
X-Debbugs-Cc: scho...@ubuntu.com
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch ftbfs

Hi,

The attached patch should fix this (shipped in Ubuntu).

-- System Information:
Debian Release: trixie/sid
  APT prefers noble
  APT policy: (500, 'noble'), (100, 'noble-proposed')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.8.0-11-generic (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru 
openvas-scanner-22.7.9/debian/patches/Fix-printf-specifiers-for-time_t-related-types.patch
 
openvas-scanner-22.7.9/debian/patches/Fix-printf-specifiers-for-time_t-related-types.patch
--- 
openvas-scanner-22.7.9/debian/patches/Fix-printf-specifiers-for-time_t-related-types.patch
  1970-01-01 01:00:00.0 +0100
+++ 
openvas-scanner-22.7.9/debian/patches/Fix-printf-specifiers-for-time_t-related-types.patch
  2024-03-22 17:51:47.0 +0100
@@ -0,0 +1,75 @@
+From b75d19ecd90498e6d005c62b8fd4d31f3909a5cb Mon Sep 17 00:00:00 2001
+From: Simon Chopin 
+Date: Fri, 22 Mar 2024 17:43:22 +0100
+Subject: [PATCH] Fix printf specifiers for time_t-related types
+
+Best to only use fixed-width types and explicit casting.
+---
+ src/attack.c   | 8 +---
+ src/pluginlaunch.c | 8 +---
+ 2 files changed, 10 insertions(+), 6 deletions(-)
+
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067075
+diff --git a/src/attack.c b/src/attack.c
+index 120a3cd..3c76b31 100644
+--- a/src/attack.c
 b/src/attack.c
+@@ -44,9 +44,11 @@
+ #include  /* for nvticache_t */
+ #include 
+ #include 
++#include 
+ #include/* for strlen() */
+ #include  /* for waitpid() */
+ #include/* for close() */
++#include 
+ 
+ #define ERR_HOST_DEAD -1
+ 
+@@ -987,9 +989,9 @@ attack_start (struct ipc_context *ipcc, struct 
attack_start_args *args)
+   now.tv_usec += 100;
+ }
+   g_message (
+-"Vulnerability scan %s finished for host %s in %ld.%.2ld seconds",
+-globals->scan_id, ip_str, (long) (now.tv_sec - then.tv_sec),
+-(long) ((now.tv_usec - then.tv_usec) / 1));
++"Vulnerability scan %s finished for host %s in %"PRIu64".%.2"PRIu32" 
seconds",
++globals->scan_id, ip_str, (uint64_t) (now.tv_sec - then.tv_sec),
++(uint32_t) ((now.tv_usec - then.tv_usec) / 1));
+ }
+ }
+ 
+diff --git a/src/pluginlaunch.c b/src/pluginlaunch.c
+index d9d1dee..66ac683 100644
+--- a/src/pluginlaunch.c
 b/src/pluginlaunch.c
+@@ -24,8 +24,10 @@
+ #include "utils.h"
+ 
+ #include   /* for errno() */
++#include 
+ #include  /* for prefs_get_bool() */
+ #include 
++#include 
+ #include   /* for perror() */
+ #include  /* for atoi() */
+ #include 
+@@ -187,10 +189,10 @@ update_running_processes (kb_t main_kb, kb_t kb)
+ {
+   char *name = nvticache_get_filename (oid);
+   g_message (
+-"%s (%s) [%d] finished its job in %ld.%.3ld seconds",
++"%s (%s) [%d] finished its job in 
%"PRIu64".%.3"PRIu32" seconds",
+ name, oid, processes[i].pid,
+-(long) (now.tv_sec - processes[i].start.tv_sec),
+-(long) ((now.tv_usec - processes[i].start.tv_usec)
++(uint64_t) (now.tv_sec - processes[i].start.tv_sec),
++(uint32_t) ((now.tv_usec - processes[i].start.tv_usec)
+ / 1000));
+   g_free (name);
+ }
+
+base-commit: d6f2b322940b50ce5f2a6e121c6b41c57d9bbd26
+-- 
+2.43.0
+
diff -Nru openvas-scanner-22.7.9/debian/patches/series 
openvas-scanner-22.7.9/debian/patches/series
--- openvas-scanner-22.7.9/debian/patches/series2023-12-19 
14:10:26.0 +0100
+++ openvas-scanner-22.7.9/debian/patches/series2024-03-22 
17:51:47.0 +0100
@@ -1,3 +1,4 @@
 Fix-test-failure.patch
 Use-pkg_check_modules-when-required.patch
 Adapt-the-redis-config-file-for-Kali.patch
+Fix-printf-specifiers-for-time_t-related-types.patch


Bug#1065790: libosmo-netif: FTBFS on arm{el,hf}: tests fail

2024-03-22 Thread Simon Chopin
Source: libosmo-netif
Followup-For: Bug #1065790
X-Debbugs-Cc: scho...@ubuntu.com
Control: tags -1 ftbfs

I looked into this, and AFAICT there's a fundamental mismatch between
libosmo-netif and libosmocore: libosmocore defines (struct msgb).cb as a
`unsigned long[5]`, but -netif interprets cb[0] as a struct timespec in
src/osmux.c, while it defines cb[3] as the SCTP PPID and cb[4] as the
SCTP Stream ID in include/osmocom/netif/stream.h

That works on architectures where sizeof(time_t) == sizeof(long), in
which case sizeof(struct timespec) <= sizeof(long[3]), but that's simply
not true when on 32-bit archs with 64b time_t.



Bug#1058743: libuv1: FTBFS on s390x on older kernels

2023-12-15 Thread Simon Chopin
Package: libuv1
Severity: serious
Tags: patch ftbfs
Justification: fails to build from source (but built successfully in the past)
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
X-Debbugs-Cc: scho...@ubuntu.com

Hi!

If the buildd is using an older kernel version, such as 5.4 as is the
case in the Ubuntu s390x builders, the build fails on the following
tests:

not ok 147 - idle_starvation
not ok 366 - timer_from_check

In Ubuntu, the attached patch was applied to fix it.

-- System Information:
Debian Release: trixie/sid
  APT prefers mantic-updates
  APT policy: (500, 'mantic-updates'), (500, 'mantic-security'), (500, 'mantic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-14-generic (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru 
libuv1-1.46.0/debian/patches/lp2046442-linux-don-t-use-io_uring-on-pre-5.10.186-kernels-409.patch
 
libuv1-1.46.0/debian/patches/lp2046442-linux-don-t-use-io_uring-on-pre-5.10.186-kernels-409.patch
--- 
libuv1-1.46.0/debian/patches/lp2046442-linux-don-t-use-io_uring-on-pre-5.10.186-kernels-409.patch
   1970-01-01 01:00:00.0 +0100
+++ 
libuv1-1.46.0/debian/patches/lp2046442-linux-don-t-use-io_uring-on-pre-5.10.186-kernels-409.patch
   2023-12-15 12:44:07.0 +0100
@@ -0,0 +1,39 @@
+From 50b53cbd0db8d4e7be06939a0976ff520e791d31 Mon Sep 17 00:00:00 2001
+From: Ben Noordhuis 
+Date: Wed, 12 Jul 2023 23:33:49 +0200
+Subject: [PATCH] linux: don't use io_uring on pre-5.10.186 kernels (#4093)
+
+Those kernels have a known resource consumption bug where the sqpoll
+thread busy-loops.
+
+Fixes: https://github.com/libuv/libuv/issues/4089
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libuv1/+bug/2046442
+Origin: upstream, 
https://github.com/libuv/libuv/commit/50b53cbd0db8d4e7be06939a0976ff520e791d31
+Applied-Upstream: v1.47.0
+---
+ src/unix/linux.c | 8 +++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/src/unix/linux.c b/src/unix/linux.c
+index 28803225..65fb847f 100644
+--- a/src/unix/linux.c
 b/src/unix/linux.c
+@@ -431,8 +431,14 @@ static int uv__use_io_uring(void) {
+   use = atomic_load_explicit(&use_io_uring, memory_order_relaxed);
+ 
+   if (use == 0) {
++/* Older kernels have a bug where the sqpoll thread uses 100% CPU. */
++use = uv__kernel_version() >= /* 5.10.186 */ 0x050ABA ? 1 : -1;
++
++/* But users can still enable it if they so desire. */
+ val = getenv("UV_USE_IO_URING");
+-use = val == NULL || atoi(val) ? 1 : -1;
++if (val != NULL)
++  use = atoi(val) ? 1 : -1;
++
+ atomic_store_explicit(&use_io_uring, use, memory_order_relaxed);
+   }
+ 
+-- 
+2.40.1
+
diff -Nru libuv1-1.46.0/debian/patches/series 
libuv1-1.46.0/debian/patches/series
--- libuv1-1.46.0/debian/patches/series 2023-10-15 16:37:48.0 +0200
+++ libuv1-1.46.0/debian/patches/series 2023-12-15 12:43:14.0 +0100
@@ -3,3 +3,4 @@
 disable_ipv6_test.patch
 path_max_zero_st_size
 skip-multicast-test
+lp2046442-linux-don-t-use-io_uring-on-pre-5.10.186-kernels-409.patch


Bug#1052875: borgbackup2: FTBFS: E FileNotFoundError: [Errno 2] No such file or directory: '/<>/.pybuild/cpython3_3.11/build/borg/testsuite/archiver/repo12.tar.gz'

2023-10-16 Thread Simon Chopin
Source: borgbackup2
Version: 2.0.0b5-1
Followup-For: Bug #1052875
X-Debbugs-Cc: scho...@ubuntu.com

I fixed this in 
https://salsa.debian.org/schopin/borgbackup2/-/commit/8f02b24dc022ad26c7d78b5efe80b9e933a3ebc8
but wasn't able to open a PR against the original Salsa repo, so here's
the commit attached as a patch if you prefer it that way.
>From 8f02b24dc022ad26c7d78b5efe80b9e933a3ebc8 Mon Sep 17 00:00:00 2001
From: Simon Chopin 
Date: Mon, 16 Oct 2023 11:14:21 +0200
Subject: [PATCH] d/p/manifest-data-files: fix FTBFS due to missing data files

Closes: 1052875, LP: #2039423
---
 debian/patches/manifest-data-files.patch | 35 
 debian/patches/series|  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 debian/patches/manifest-data-files.patch

diff --git a/debian/patches/manifest-data-files.patch 
b/debian/patches/manifest-data-files.patch
new file mode 100644
index ..24c5c26f
--- /dev/null
+++ b/debian/patches/manifest-data-files.patch
@@ -0,0 +1,35 @@
+From 3078c3cbe69724f28a76890f5b1ae6fb9aa906b6 Mon Sep 17 00:00:00 2001
+From: Simon Chopin 
+Date: Mon, 16 Oct 2023 10:34:51 +0200
+Subject: [PATCH] packaging: Explicit add data files to the manifest
+
+We've started seeing some failures to build in Debian and Ubuntu that
+can be traced to those files missing from the manifest when we're
+calling setup.py install.
+
+Now, this started failing fairly recently, so I'm guessing it's actually
+a change of behaviour in the SCM plugin and/or setuptools. It makes
+sense though, since we're packaging from the tarball, which isn't in the
+Git context needed to actually include those data files.
+
+Signed-off-by: Simon Chopin 
+Forwarded: https://github.com/borgbackup/borg/pull/7876
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1052875
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/borgbackup2/+bug/2039423
+---
+ MANIFEST.in | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/MANIFEST.in b/MANIFEST.in
+index caf027ad..50c5c565 100644
+--- a/MANIFEST.in
 b/MANIFEST.in
+@@ -6,3 +6,5 @@ prune .github
+ include src/borg/platform/darwin.c src/borg/platform/freebsd.c 
src/borg/platform/linux.c src/borg/platform/posix.c
+ include src/borg/platform/syncfilerange.c
+ include src/borg/platform/windows.c
++include src/borg/paperkey.html
++include src/borg/testsuite/archiver/repo12.tar.gz
+--
+2.40.1
+
diff --git a/debian/patches/series b/debian/patches/series
index 3335e123..672026a6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@ privacy/mathjax.patch
 explicit_version.patch
 lower_platformdirs.patch
 0001-Make-timestamps-in-manual-pages-reproducible.patch
+manifest-data-files.patch
-- 
2.40.1



Bug#1052430: pastedeploy: FTBFS against dh-python 6.20230825

2023-09-21 Thread Simon Chopin
Package: pastedeploy
Severity: serious
Tags: patch ftbfs
Justification: fails to build from source (but built successfully in the past)
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu mantic ubuntu-patch
X-Debbugs-Cc: scho...@ubuntu.com

Hi,

The package now fails to build due to dh-python new clean behavior
removing the FakeApp egg info that is needed for the test suite to run.

We've applied the attached workaround in Ubuntu, although I think it'd
be nicer to have an API for specifying exclusion, see #1051837.

  * Fix FTBFS due to dh-python being overly enthusiastic in its cleaning
duties (LP: #2035337)

Thanks for considering the patch.

Simon Chopin

-- System Information:
Debian Release: trixie/sid
  APT prefers mantic
  APT policy: (500, 'mantic'), (100, 'mantic-proposed')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-5-generic (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru pastedeploy-3.0.1/debian/rules pastedeploy-3.0.1/debian/rules
--- pastedeploy-3.0.1/debian/rules  2022-12-08 00:29:11.0 +0100
+++ pastedeploy-3.0.1/debian/rules  2023-09-21 22:20:30.0 +0200
@@ -22,3 +22,8 @@
 
 override_dh_installchangelogs:
dh_installchangelogs $(CURDIR)/docs/news.rst
+
+override_dh_auto_clean:
+   mv tests/fake_packages/FakeApp.egg/FakeApp.egg-info FakeApp.backup
+   dh_auto_clean
+   mv FakeApp.backup tests/fake_packages/FakeApp.egg/FakeApp.egg-info


Bug#1051850: pastescript: FTBFS due to new dh-python clean behaviour

2023-09-13 Thread Simon Chopin
Package: pastescript
Severity: serious
Tags: patch ftbfs
Justification: fails to build from source (but built successfully in the past)
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu mantic ubuntu-patch
X-Debbugs-Cc: scho...@ubuntu.com

Hi,

In Ubuntu, the attached patch was applied to work around dh-python
removing the test FakePlugin.egg-info directory in the clean step, which
is needed for some tests. This is fairly ugly, since Ubuntu has a fairly
tight schedule and release is looming, but I'm hoping we'll come up with
a better solve in bug 1051837

-- System Information:
Debian Release: trixie/sid
  APT prefers mantic
  APT policy: (500, 'mantic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.3.0-7-generic (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru pastescript-3.2.1/debian/rules pastescript-3.2.1/debian/rules
--- pastescript-3.2.1/debian/rules  2022-11-20 12:38:22.0 +0100
+++ pastescript-3.2.1/debian/rules  2023-09-13 12:18:46.0 +0200
@@ -27,3 +27,9 @@
 
 override_dh_installchangelogs:
dh_installchangelogs docs/news.txt
+
+override_dh_auto_clean:
+   # Work around LP: #2035337
+   mv tests/fake_packages/FakePlugin.egg/FakePlugin.egg-info/ 
fakeplugin.back
+   dh_auto_clean
+   mv fakeplugin.back 
tests/fake_packages/FakePlugin.egg/FakePlugin.egg-info/


Bug#1012950: insighttoolkit4: ftbfs with GCC-12

2022-10-17 Thread Simon Chopin
Source: insighttoolkit4
Version: 4.13.3withdata-dfsg2-3
Followup-For: Bug #1012950
X-Debbugs-Cc: scho...@ubuntu.com

For information, we've tried using the following patch on Ubuntu:

https://github.com/InsightSoftwareConsortium/ITK/commit/b6d3d5066d939b90fff7d642adf46f5ab4136876

This did fix the compilation, but then the tests started to fail. I
actually ended up forcing the compilation with gcc-11 to get the
package building again.

-- System Information:
Debian Release: bookworm/sid
  APT prefers kinetic
  APT policy: (500, 'kinetic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.19.0-19-generic (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



Bug#1018942: zookeeper: Can attempt to access the network during build

2022-09-02 Thread Simon Chopin
Package: zookeeper
Severity: serious
Tags: patch ftbfs
Justification: fails to build from source (but built successfully in the past)
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu kinetic ubuntu-patch
X-Debbugs-Cc: scho...@ubuntu.com

We observed a FTBFS on amd64 in Ubuntu due to a DNS resolution error on
google.com, see https://bugs.launchpad.net/ubuntu/+source/zookeeper/+bug/1988541
for more details.

I don't exactly know why this hasn't happened during the Debian build,
but in any case, you'll find attached a debdiff to address the issue.

Cheers,
Simon

-- System Information:
Debian Release: bookworm/sid
  APT prefers jammy-updates
  APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy'), 
(100, 'jammy-backports'), (50, 'jammy-proposed')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-46-lowlatency (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru zookeeper-3.8.0/debian/patches/30-skip-tests-network.patch 
zookeeper-3.8.0/debian/patches/30-skip-tests-network.patch
--- zookeeper-3.8.0/debian/patches/30-skip-tests-network.patch  2022-06-27 
09:11:31.0 +0200
+++ zookeeper-3.8.0/debian/patches/30-skip-tests-network.patch  2022-09-02 
11:10:51.0 +0200
@@ -456,3 +456,21 @@
  @Test
  public void testVersionOfDynamicFilename() throws Exception {
  final int SERVER_COUNT = 5;
+--- 
a/zookeeper-server/src/test/java/org/apache/zookeeper/server/quorum/MultipleAddressesTest.java
 
b/zookeeper-server/src/test/java/org/apache/zookeeper/server/quorum/MultipleAddressesTest.java
+@@ -37,6 +37,7 @@
+ import java.util.stream.IntStream;
+ import org.apache.commons.collections4.CollectionUtils;
+ import org.apache.zookeeper.PortAssignment;
++import org.junit.jupiter.api.Disabled;
+ import org.junit.jupiter.api.Test;
+ 
+ public class MultipleAddressesTest {
+@@ -135,6 +136,7 @@
+ assertEquals(unreachableAddress, actualReturnedAddress);
+ }
+ 
++@Disabled("no network on debian buildds")
+ @Test
+ public void testRecreateSocketAddresses() throws UnknownHostException {
+ List searchedAddresses = 
Arrays.stream(InetAddress.getAllByName("google.com"))


Bug#984297: presage: ftbfs with GCC-11

2022-08-30 Thread Simon Chopin
Package: presage
Followup-For: Bug #984297
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu kinetic ubuntu-patch
X-Debbugs-Cc: scho...@ubuntu.com
Control: tags -1 patch



In Ubuntu, the attached patch was applied to achieve the following:

  * d/p/c++17.patch: fix the build against GCC-11 by porting the code to C++17
(LP: #1988196)
  * d/p/format-security.patch: fix insecure format strings in the demo code
(FTBFS on Ubuntu due to -Werror=format-security.patch)

I'm not sure that the second one actually applies in Debian, but
attaching the patch in the debdiff just in case.

Thanks for considering the patch.


-- System Information:
Debian Release: bookworm/sid
  APT prefers jammy-updates
  APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy'), 
(100, 'jammy-backports'), (50, 'jammy-proposed')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-46-lowlatency (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru presage-0.9.1/debian/patches/c++17.patch 
presage-0.9.1/debian/patches/c++17.patch
--- presage-0.9.1/debian/patches/c++17.patch1970-01-01 01:00:00.0 
+0100
+++ presage-0.9.1/debian/patches/c++17.patch2022-08-30 17:56:09.0 
+0200
@@ -0,0 +1,239 @@
+Description: Port the code to C++17
+Author: Simon Chopin 
+Origin: ubuntu
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=984297
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/presage/+bug/1988196
+Last-Update: 2022-08-30
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/src/lib/presage.h
 b/src/lib/presage.h
+@@ -112,7 +112,7 @@
+  * 
+  * Presage does not take ownership of the callback object.
+  */
+-Presage(PresageCallback* callback) throw (PresageException);
++Presage(PresageCallback* callback) noexcept(false);
+ 
+ 
+ /** Creates and initializes presage with supplied configuration.
+@@ -122,7 +122,7 @@
+  *
+  * Presage does not take ownership of the callback object.
+  */
+-Presage(PresageCallback* callback, const std::string config) throw 
(PresageException);
++Presage(PresageCallback* callback, const std::string config) 
noexcept(false);
+ 
+ 
+ /** Destroys presage.
+@@ -138,7 +138,7 @@
+  * context.
+  *
+  */
+-std::vector predict() throw (PresageException);
++std::vector predict() noexcept(false);
+ 
+ /** \brief Obtain a prediction that matches the supplied token
+  * filter.
+@@ -153,7 +153,7 @@
+  * of the filter tokens.
+  *
+  */
+-std::multimap predict(std::vector 
filter) throw (PresageException);
++std::multimap predict(std::vector 
filter) noexcept(false);
+ 
+ /** \brief Learn from text offline.
+  *
+@@ -167,7 +167,7 @@
+  * \param text a text string to learn from.
+  *
+  */
+-void learn(const std::string text) const throw (PresageException);
++void learn(const std::string text) const noexcept(false);
+ 
+ /** \brief Callback getter/setter.
+  *
+@@ -176,7 +176,7 @@
+  *
+  * \return pointer to previously used callback
+  */
+-PresageCallback* callback(PresageCallback* callback) throw 
(PresageException);
++PresageCallback* callback(PresageCallback* callback) noexcept(false);
+ 
+ /** \brief Request presage to return the completion string for the given 
predicted token.
+  *
+@@ -190,26 +190,26 @@
+  *
+  * \return completion string
+  */
+-std::string completion(std::string str) throw (PresageException);
++std::string completion(std::string str) noexcept(false);
+ 
+ /** \brief Returns the text entered so far.
+  *
+  * \return context, text entered so far.
+  */
+-std::string context() const throw (PresageException);
++std::string context() const noexcept(false);
+ 
+ /** \brief Returns true if a context change occured.
+  *
+  * \return true if a context change occured after the last update
+  * or predict calls, or false otherwise.
+  */
+-bool context_change() const throw (PresageException);
++bool context_change() const noexcept(false);
+ 
+ /** \brief Returns the current prefix.
+  *
+  * \return prefix
+  */
+-std::string prefix() const throw (PresageException);
++std::string prefix() const noexcept(false);
+ 
+ /** \brief Gets the value of specified configuration variable.
+  *
+@@ -218,7 +218,7 @@
+  *
+  * \return value assigned to configuration variable.
+  */
+-std::string config(const std::string variable) const throw 
(PresageException);
++std::string config(const std::string variable) co

Bug#1015031: irssi-plugin-xmpp: FTBFS: xep/ping.c:169:37: error: request for member ‘tv_sec’ in something not a structure or union

2022-07-29 Thread Simon Chopin
Package: irssi-plugin-xmpp
Followup-For: Bug #1015031
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu kinetic ubuntu-patch
X-Debbugs-Cc: scho...@ubuntu.com
Control: tags -1 patch

In Ubuntu, the attached patch was applied to achieve the following:

  * d/p/gtimeval-build-fix.patch: cherry-picked from a PR upstream to fix
build against newer irssi (Closes: #1015031)

Thanks for considering the patch.
Cheers,

Simon

-- System Information:
Debian Release: bookworm/sid
  APT prefers jammy-updates
  APT policy: (500, 'jammy-updates'), (500, 'jammy-proposed'), (500, 'jammy'), 
(100, 'jammy-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-43-generic (SMP w/24 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru 
irssi-plugin-xmpp-0.54+git20191101+c13fa5/debian/patches/gtimeval-build-fix.patch
 
irssi-plugin-xmpp-0.54+git20191101+c13fa5/debian/patches/gtimeval-build-fix.patch
--- 
irssi-plugin-xmpp-0.54+git20191101+c13fa5/debian/patches/gtimeval-build-fix.patch
   1970-01-01 01:00:00.0 +0100
+++ 
irssi-plugin-xmpp-0.54+git20191101+c13fa5/debian/patches/gtimeval-build-fix.patch
   2022-07-29 09:48:28.0 +0200
@@ -0,0 +1,123 @@
+From c7728ea5aa2f4e584159b3d12ad815294c44ca6a Mon Sep 17 00:00:00 2001
+From: Ailin Nemui 
+Date: Tue, 17 Mar 2020 14:32:52 +0100
+Subject: [PATCH] add compatibility code to GTimeVal -> gint64 transition
+Origin: https://github.com/cdidier/irssi-xmpp/pull/53
+Reviewed-By: Simon Chopin 
+Last-Update: 2022-07-29
+
+this is for irssi/irssi#1145
+---
+ src/core/xep/ping.c | 50 +
+ 1 file changed, 37 insertions(+), 13 deletions(-)
+
+diff --git a/src/core/xep/ping.c b/src/core/xep/ping.c
+index d51930a..7b811cb 100644
+--- a/src/core/xep/ping.c
 b/src/core/xep/ping.c
+@@ -36,15 +36,40 @@
+ 
+ #define XMLNS_PING "urn:xmpp:ping"
+ 
++#if defined(IRSSI_ABI_VERSION) && IRSSI_ABI_VERSION >= 25
++#define NO_TIMEVAL
++#define TimeType gint64
++#else
++#define TimeType GTimeVal
++#endif
++
+ struct ping_data {
+-  char *id;
+-  GTimeVal  time;
++  char*id;
++  TimeType time;
+ };
+ 
+ static int timeout_tag;
+ static GSList *supported_servers;
+ static DATALIST *pings;
+ 
++#ifdef NO_TIMEVAL
++
++#define set_current_time(var)   (var) = g_get_real_time()
++#define clear_time(var) (var) = 0
++#define has_time(var)   ((var) != 0)
++#define get_time_sec(var)   ((var) / G_TIME_SPAN_SECOND)
++#define get_time_diff(to, from) (to) - (from)
++
++#else
++
++#define set_current_time(var)   g_get_current_time(&(var))
++#define clear_time(var) memset(&(var), 0, sizeof((var)))
++#define has_time(var)   ((var).tv_sec != 0)
++#define get_time_sec(var)   ((var).tv_sec)
++#define get_time_diff(to, from) (int) get_timeval_diff(&(to), &(from))
++
++#endif
++
+ static void
+ request_ping(XMPP_SERVER_REC *server, const char *dest)
+ {
+@@ -63,13 +88,13 @@ request_ping(XMPP_SERVER_REC *server, const char *dest)
+   g_free(server->ping_id);
+   server->ping_id =
+   g_strdup(lm_message_node_get_attribute(lmsg->node, "id"));
+-  g_get_current_time(&server->lag_sent);
++  set_current_time(server->lag_sent);
+   server->lag_last_check = time(NULL);
+   } else {
+   pd = g_new0(struct ping_data, 1);
+   pd->id =
+   g_strdup(lm_message_node_get_attribute(lmsg->node, "id"));
+-  g_get_current_time(&pd->time);
++  set_current_time(pd->time);
+   datalist_add(pings, server, dest, pd);
+   }
+   signal_emit("xmpp send iq", 2, server, lmsg);
+@@ -98,7 +123,7 @@ sig_recv_iq(XMPP_SERVER_REC *server, LmMessage *lmsg, const 
int type,
+ {
+   DATALIST_REC *rec;
+   LmMessageNode *node;
+-  GTimeVal now;
++  TimeType now;
+   struct ping_data *pd;
+ 
+   if (type == LM_MESSAGE_SUB_TYPE_RESULT) {
+@@ -106,19 +131,18 @@ sig_recv_iq(XMPP_SERVER_REC *server, LmMessage *lmsg, 
const int type,
+   if (server->ping_id != NULL
+   && (*from == '\0' || strcmp(from, server->domain) == 0)
+   && strcmp(id, server->ping_id) == 0) {
+-  g_get_current_time(&now);
+-  server->lag =
+-  (int)get_timeval_diff(&now, &server->lag_sent);
+-  memset(&server->lag_sent, 0, sizeof(server->lag_sent));
++   

Bug#1012125: astroquery: Autopkgtests failure due to trying to write to /usr/lib

2022-05-31 Thread Simon Chopin
Source: astroquery
Version: 0.4.1+dfsg-7
Followup-For: Bug #1012125
X-Debbugs-Cc: simon.cho...@canonical.com
Control: tags -1 patch

Attached is a debdiff addressing the issue
diff -Nru astroquery-0.4.6+dfsg/debian/changelog 
astroquery-0.4.6+dfsg/debian/changelog
--- astroquery-0.4.6+dfsg/debian/changelog  2022-04-30 13:31:11.0 
+0200
+++ astroquery-0.4.6+dfsg/debian/changelog  2022-05-24 11:30:56.0 
+0200
@@ -1,3 +1,11 @@
+astroquery (0.4.6+dfsg-2ubuntu1) kinetic; urgency=medium
+
+  * d/p/Move-tests-files-to-tmp-for-user-to-have-write-acces.patch: Move
+temp test files to a temp dir where the user has write access.
+(Closes: #1012125, LP: #1976295)
+
+ -- Alexandre Ghiti   Tue, 24 May 2022 11:30:56 
+0200
+
 astroquery (0.4.6+dfsg-2) unstable; urgency=medium
 
   * Add missing autopkgtest dependencies (Closes: #1010195)
diff -Nru 
astroquery-0.4.6+dfsg/debian/patches/Move-tests-files-to-tmp-for-user-to-have-write-acces.patch
 
astroquery-0.4.6+dfsg/debian/patches/Move-tests-files-to-tmp-for-user-to-have-write-acces.patch
--- 
astroquery-0.4.6+dfsg/debian/patches/Move-tests-files-to-tmp-for-user-to-have-write-acces.patch
 1970-01-01 01:00:00.0 +0100
+++ 
astroquery-0.4.6+dfsg/debian/patches/Move-tests-files-to-tmp-for-user-to-have-write-acces.patch
 2022-05-24 11:30:56.0 +0200
@@ -0,0 +1,50 @@
+From 8dc33bd53dfd30117940a436b626311660a8e0c7 Mon Sep 17 00:00:00 2001
+From: Alexandre Ghiti 
+Date: Tue, 24 May 2022 10:54:00 +0200
+Subject: [PATCH] Move tests files to tmp for user to have write access
+
+---
+ astroquery/esa/hubble/tests/test_esa_hubble.py | 13 +
+ 1 file changed, 9 insertions(+), 4 deletions(-)
+
+diff --git a/astroquery/esa/hubble/tests/test_esa_hubble.py 
b/astroquery/esa/hubble/tests/test_esa_hubble.py
+index 107bff8..6e08385 100644
+--- a/astroquery/esa/hubble/tests/test_esa_hubble.py
 b/astroquery/esa/hubble/tests/test_esa_hubble.py
+@@ -24,6 +24,7 @@ from astropy import coordinates
+ from unittest.mock import MagicMock
+ from astropy.table.table import Table
+ import shutil
++import tempfile
+ 
+ 
+ def data_path(filename):
+@@ -35,8 +36,10 @@ def get_mockreturn(method, request, url, params, *args, 
**kwargs):
+ file = 'm31.vot'
+ if 'OBSERVATION_ID' in params:
+ file = params['OBSERVATION_ID'] + ".vot"
+-response = data_path(file)
+-shutil.copy(response + '.test', response)
++initial_response = data_path(file)
++tmp_dir = tempfile.mkdtemp()
++response = os.path.join(tmp_dir, file)
++shutil.copy(initial_response + '.test', response)
+ return response
+ 
+ 
+@@ -54,8 +57,10 @@ def get_cone_mockreturn(method, request, url, params, 
*args, **kwargs):
+ file = data_path('cone_search_m31_5.vot')
+ if 'OBSERVATION_ID' in params:
+ file = params['OBSERVATION_ID'] + ".vot"
+-response = data_path(file)
+-shutil.copy(response + '.test', response)
++filename = os.path.basename(file)
++tmp_dir = tempfile.mkdtemp()
++response = os.path.join(tmp_dir, filename)
++shutil.copy(file + '.test', response)
+ return response
+ 
+ 
+-- 
+2.34.1
+
diff -Nru astroquery-0.4.6+dfsg/debian/patches/series 
astroquery-0.4.6+dfsg/debian/patches/series
--- astroquery-0.4.6+dfsg/debian/patches/series 2022-04-09 17:50:45.0 
+0200
+++ astroquery-0.4.6+dfsg/debian/patches/series 2022-05-24 11:30:56.0 
+0200
@@ -2,3 +2,4 @@
 no_auto_use_astropy_helpers.patch
 nvas_nonfree_imfits_test.patch
 fix_duplicate_examples_section
+Move-tests-files-to-tmp-for-user-to-have-write-acces.patch


Bug#1012125: astroquery: Autopkgtests failure due to trying to write to /usr/lib

2022-05-30 Thread Simon Chopin
Source: astroquery
Version: 0.4.6+dfsg-2
Severity: serious
Justification: RT
X-Debbugs-Cc: simon.cho...@canonical.com

Hi,

The autopkgtests for 0.4.6+dfsg-2 fail with attempts to write to
locations in /usr/lib, preventing the package from migrating to testing.

>From 
>https://ci.debian.net/data/autopkgtest/unstable/amd64/a/astroquery/21778465/log.gz
> :

=== short test summary info 
FAILED 
../../../../usr/lib/python3/dist-packages/astroquery/esa/hubble/tests/test_esa_hubble.py::TestESAHubble::test_download_product_by_calibration
FAILED 
../../../../usr/lib/python3/dist-packages/astroquery/esa/hubble/tests/test_esa_hubble.py::TestESAHubble::test_download_product_by_product_type
FAILED 
../../../../usr/lib/python3/dist-packages/astroquery/esa/hubble/tests/test_esa_hubble.py::TestESAHubble::test_get_postcard
FAILED 
../../../../usr/lib/python3/dist-packages/astroquery/esa/hubble/tests/test_esa_hubble.py::TestESAHubble::test_cone_search
FAILED 
../../../../usr/lib/python3/dist-packages/astroquery/esa/hubble/tests/test_esa_hubble.py::TestESAHubble::test_cone_search_coords
FAILED 
../../../../usr/lib/python3/dist-packages/astroquery/esa/hubble/tests/test_esa_hubble.py::TestESAHubble::test_get_artifact
= 6 failed, 973 passed, 588 skipped, 2 xfailed, 150 warnings in 53.54s =

Details of the first failure:

__ TestESAHubble.test_download_product_by_calibration __

self = 

def test_download_product_by_calibration(self):
parameters = {'observation_id': "J6FL25S4Q",
  'cal_level': "RAW",
  'filename': "J6FL25S4Q.vot",
  'verbose': True}
ehst = ESAHubbleClass(self.get_dummy_tap_handler())
>   ehst.download_product(observation_id=parameters['observation_id'],
  calibration_level=parameters['cal_level'],
  filename=parameters['filename'],
  verbose=parameters['verbose'])

/usr/lib/python3/dist-packages/astroquery/esa/hubble/tests/test_esa_hubble.py:101:
 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3/dist-packages/astroquery/esa/hubble/core.py:106: in 
download_product
response = self._request('GET', self.data_url, save=True, cache=True,
/usr/lib/python3/dist-packages/astroquery/esa/hubble/tests/test_esa_hubble.py:39:
 in get_mockreturn
shutil.copy(response + '.test', response)
/usr/lib/python3.10/shutil.py:417: in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

src = 
'/usr/lib/python3/dist-packages/astroquery/esa/hubble/tests/data/J6FL25S4Q.vot.test'
dst = 
'/usr/lib/python3/dist-packages/astroquery/esa/hubble/tests/data/J6FL25S4Q.vot'
[snip]
with open(src, 'rb') as fsrc:
try:
>   with open(dst, 'wb') as fdst:
E   PermissionError: [Errno 13] Permission denied: 
'/usr/lib/python3/dist-packages/astroquery/esa/hubble/tests/data/J6FL25S4Q.vot'

/usr/lib/python3.10/shutil.py:256: PermissionError



Bug#1010698: Salsa MR to fix this

2022-05-10 Thread Simon Chopin
I just posted a Salsa MR to fix this issue:

https://salsa.debian.org/debian/stunnel/-/merge_requests/1

--
Simon Chopin
Foundations Team Ubuntu MOTU
simon.cho...@canonical.comscho...@ubuntu.com



Bug#1005800: sundials: FTBFS in sid (test failures)

2022-02-15 Thread Simon Chopin
Source: sundials
Version: 5.8.0+dfsg-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: simon.cho...@canonical.com

Hi,

This package fails to build in Debian unstable in a clean schroot, with test 
failures.
Here's an excerpt from the logs showing the issue:

76% tests passed, 19 tests failed out of 79

Total Test time (real) =   2.13 sec

The following tests FAILED:
 11 - test_nvector_mpi_1000_0 (Failed)
 12 - test_nvector_mpi_4_1000_0 (Failed)
 13 - test_nvector_mpimanyvector_parallel1_4_1000_200_0 (Failed)
 14 - test_nvector_mpimanyvector_parallel2_4_200_1000_0 (Failed)
 15 - test_nvector_mpiplusx_4_1000_9 (Failed)
 18 - test_nvector_parhyp_1000_0 (Failed)
 19 - test_nvector_parhyp_4_1000_0 (Failed)
 32 - test_nvector_petsc_1000_0 (Failed)
 33 - test_nvector_petsc_4_1000_0 (Failed)
 66 - test_sunlinsol_spgmr_parallel_100_1_1_50_1e-3_0 (Failed)
 67 - test_sunlinsol_spgmr_parallel_100_1_2_50_1e-3_0 (Failed)
 68 - test_sunlinsol_spgmr_parallel_100_2_1_50_1e-3_0 (Failed)
 69 - test_sunlinsol_spgmr_parallel_100_2_2_50_1e-3_0 (Failed)
 70 - test_sunlinsol_spfgmr_parallel_100_1_50_1e-3_0 (Failed)
 71 - test_sunlinsol_spfgmr_parallel_100_2_50_1e-3_0 (Failed)
 72 - test_sunlinsol_spbcgs_parallel_100_1_50_1e-3_0 (Failed)
 73 - test_sunlinsol_spbcgs_parallel_100_2_50_1e-3_0 (Failed)
 74 - test_sunlinsol_sptfqmr_parallel_100_1_50_1e-3_0 (Failed)
 75 - test_sunlinsol_sptfqmr_parallel_100_2_50_1e-3_0 (Failed)
Errors while running CTest
Output from these tests are in: 
/<>/debian/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.


-- System Information:
Debian Release: 11.0
  APT prefers impish-updates
  APT policy: (500, 'impish-updates'), (500, 'impish-security'), (500, 
'impish'), (400, 'impish-proposed'), (100, 'impish-backports'), (90, 
'jammy-proposed'), (90, 'jammy')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.13.0-28-generic (SMP w/24 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



Bug#994794: booth: intermittent autopkgtest failures

2021-12-17 Thread Simon Chopin
Package: booth
Followup-For: Bug #994794
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu jammy ubuntu-patch
X-Debbugs-Cc: simon.cho...@canonical.com
Control: tags -1 patch

In Ubuntu, the attached patch was applied on top of the fix, as the
online node doesn't necessarily contain the 'node1' string in the name.
I'm guessing it depends on the configuration of the autopkgtest runners.

For instance, here is the output of the crm status command in my
LXC-based local runner.

```
Cluster Summary:
  * Stack: corosync
  * Current DC: autopkgtest-lxc-fisgca (version 2.0.5-ba59be7122) - partition 
with quorum
  * Last updated: Fri Dec 17 16:56:18 2021
  * Last change:  Fri Dec 17 16:55:54 2021 by hacluster via crmd on 
autopkgtest-lxc-fisgca
  * 1 node configured
  * 0 resource instances configured

Node List:
  * Online: [ autopkgtest-lxc-fisgca ]

Full List of Resources:
  * No resources
```

Cheers,
Simon Chopin
diff -Nru booth-1.0-237-gdd88847/debian/tests/pacemaker 
booth-1.0-237-gdd88847/debian/tests/pacemaker
--- booth-1.0-237-gdd88847/debian/tests/pacemaker   2021-09-22 
22:33:36.0 +0200
+++ booth-1.0-237-gdd88847/debian/tests/pacemaker   2021-12-17 
17:49:22.0 +0100
@@ -28,7 +28,7 @@
 start_service corosync
 start_service pacemaker
 n=0
-while ! crm status | grep 'Online:.*node1'; do
+while ! crm status | grep "\\* Online: "; do
   test "$n" -lt 120
   sleep 1
   n=$((n+1))


Bug#993379: libyami-utils FTBFS: error: ‘void av_init_packet(AVPacket*)’ is deprecated [-Werror=deprecated-declarations]

2021-12-17 Thread Simon Chopin
Package: libyami-utils
Version: 1.3.0-3
Followup-For: Bug #993379
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu jammy ubuntu-patch
X-Debbugs-Cc: simon.cho...@canonical.com
Control: tags -1 patch

Hi,

In Ubuntu, the attached patch was applied to fix the aforementioned
FTBFS:

Thanks for considering the patch.

Cheers,
Simon
diff -Nru 
libyami-utils-1.3.0/debian/patches/0004-tests-decodeinputavformat-use-heap-allocated-m_packe.patch
 
libyami-utils-1.3.0/debian/patches/0004-tests-decodeinputavformat-use-heap-allocated-m_packe.patch
--- 
libyami-utils-1.3.0/debian/patches/0004-tests-decodeinputavformat-use-heap-allocated-m_packe.patch
  1970-01-01 01:00:00.0 +0100
+++ 
libyami-utils-1.3.0/debian/patches/0004-tests-decodeinputavformat-use-heap-allocated-m_packe.patch
  2021-12-17 15:50:51.0 +0100
@@ -0,0 +1,85 @@
+From dbd0c5508d0084a9b069cafd583e6004a12f562a Mon Sep 17 00:00:00 2001
+From: Simon Chopin 
+Date: Fri, 17 Dec 2021 16:03:10 +0100
+Subject: [PATCH] tests/decodeinputavformat: use heap-allocated m_packet
+Forwarded: https://github.com/intel/libyami-utils/pull/138
+
+This allows us to migrate away from av_init_packet() which has been
+deprecated in recent FFMpeg, making the build fail.
+
+This implementation is somewhat rough, there's probably a way to avoid
+reallocating the packet each iteration, but it does the job.
+---
+ tests/decodeinputavformat.cpp | 23 +--
+ tests/decodeinputavformat.h   |  2 +-
+ 2 files changed, 10 insertions(+), 15 deletions(-)
+
+--- a/tests/decodeinputavformat.cpp
 b/tests/decodeinputavformat.cpp
+@@ -22,18 +22,12 @@
+ #include "common/log.h"
+ #include 
+ 
+-#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55, 39, 100)
+-#define av_packet_unref av_free_packet
+-#endif
+-
+ DecodeInputAvFormat::DecodeInputAvFormat()
+-:m_format(NULL),m_videoId(-1), m_codecId(AV_CODEC_ID_NONE), m_isEos(true)
++:m_format(NULL),m_videoId(-1), m_codecId(AV_CODEC_ID_NONE), 
m_packet(av_packet_alloc()), m_isEos(true)
+ {
+ #if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 9, 100)
+ av_register_all();
+ #endif
+-
+-av_init_packet(&m_packet);
+ }
+ 
+ bool DecodeInputAvFormat::initInput(const char* fileName)
+@@ -132,18 +126,19 @@
+ int ret;
+ while (1) {
+ //free old packet
+-av_packet_unref(&m_packet);
++av_packet_free(&m_packet);
++m_packet = av_packet_alloc();
+ 
+-ret = av_read_frame(m_format, &m_packet);
++ret = av_read_frame(m_format, m_packet);
+ if (ret) {
+ m_isEos = true;
+ return false;
+ }
+-if (m_packet.stream_index == m_videoId) {
++if (m_packet->stream_index == m_videoId) {
+ memset(&inputBuffer, 0, sizeof(inputBuffer));
+-inputBuffer.data = m_packet.data;
+-inputBuffer.size = m_packet.size;
+-inputBuffer.timeStamp = m_packet.dts;
++inputBuffer.data = m_packet->data;
++inputBuffer.size = m_packet->size;
++inputBuffer.timeStamp = m_packet->dts;
+ return true;
+ }
+ }
+@@ -158,8 +153,8 @@
+ DecodeInputAvFormat::~DecodeInputAvFormat()
+ {
+ if (m_format) {
+-av_packet_unref(&m_packet);
+ avformat_close_input(&m_format);
+ }
++av_packet_free(&m_packet);
+ 
+ }
+--- a/tests/decodeinputavformat.h
 b/tests/decodeinputavformat.h
+@@ -47,7 +47,7 @@
+ AVFormatContext* m_format;
+ int m_videoId;
+ AVCodecID m_codecId;
+-AVPacket m_packet;
++AVPacket* m_packet;
+ bool m_isEos;
+ string m_codecData;
+ };
diff -Nru libyami-utils-1.3.0/debian/patches/av_packet_init-deprecated.patch 
libyami-utils-1.3.0/debian/patches/av_packet_init-deprecated.patch
--- libyami-utils-1.3.0/debian/patches/av_packet_init-deprecated.patch  
1970-01-01 01:00:00.0 +0100
+++ libyami-utils-1.3.0/debian/patches/av_packet_init-deprecated.patch  
2021-12-17 15:48:08.0 +0100
@@ -0,0 +1,61 @@
+Description: Migrate away from the deprecated av_packet_init API
+Author: Simon Chopin 
+
+--- a/tests/decodeinputavformat.cpp
 b/tests/decodeinputavformat.cpp
+@@ -33,7 +33,7 @@
+ av_register_all();
+ #endif
+ 
+-av_init_packet(&m_packet);
++m_packet = av_packet_alloc();
+ }
+ 
+ bool DecodeInputAvFormat::initInput(const char* fileName)
+@@ -132,18 +132,19 @@
+ int ret;
+ while (1) {
+ //free old packet
+-av_packet_unref(&m_packet);
++av_packet_free(&m_packet);
++m_packet = av_packet_alloc();
+ 
+-ret = av_read_frame(m_format, &m_packet);
++ret = av_read_frame(m_format, m_packet);
+ if (ret) {
+ m_isEos = true;
+ return false;
+ }
+-if (m_packet.stream_index == m_videoId) {
++if (m_packet->stream_index == m_videoId) {
+ memset(&inputBuffer, 0, sizeof(input

Bug#999625: pgcharts: FTBFS: Compilation failed: * is not permitted as an argument to the FUNCTION type specifier in /usr/share/common-lisp/source/esrap/src/evaluator.lisp

2021-12-02 Thread Simon Chopin
Control: reassign -1 cl-esrap
Control: affects -1 pgcharts pgloader

This failure is caused by the new version of sbcl being more strict
regarding syntax conformance. Attached is the debdiff of the delta I
applied in Ubuntu.

--
Simon Chopin
Foundations Team Ubuntu MOTU
simon.cho...@canonical.comscho...@ubuntu.com
diff -Nru cl-esrap-20180430/debian/changelog cl-esrap-20180430/debian/changelog
--- cl-esrap-20180430/debian/changelog	2021-01-05 16:21:58.0 +0100
+++ cl-esrap-20180430/debian/changelog	2021-12-02 12:20:39.0 +0100
@@ -1,3 +1,10 @@
+cl-esrap (20180430-1.1ubuntu1) jammy; urgency=medium
+
+  * d/p/function-type-no-star.patch: Fix invalid syntax, breaking since
+sbcl >= 2.1.9
+
+ -- Simon Chopin   Thu, 02 Dec 2021 12:20:39 +0100
+
 cl-esrap (20180430-1.1) unstable; urgency=medium
 
   * Non maintainer upload by the Reproducible Builds team.
diff -Nru cl-esrap-20180430/debian/control cl-esrap-20180430/debian/control
--- cl-esrap-20180430/debian/control	2018-03-06 14:38:56.0 +0100
+++ cl-esrap-20180430/debian/control	2021-12-02 12:20:39.0 +0100
@@ -1,7 +1,8 @@
 Source: cl-esrap
 Section: lisp
 Priority: optional
-Maintainer: Dimitri Fontaine 
+Maintainer: Ubuntu Developers 
+XSBC-Original-Maintainer: Dimitri Fontaine 
 Build-Depends: debhelper (>= 7)
 Build-Depends-Indep: dh-lisp
 Standards-Version: 4.1.3
diff -Nru cl-esrap-20180430/debian/patches/function-type-no-star.patch cl-esrap-20180430/debian/patches/function-type-no-star.patch
--- cl-esrap-20180430/debian/patches/function-type-no-star.patch	1970-01-01 01:00:00.0 +0100
+++ cl-esrap-20180430/debian/patches/function-type-no-star.patch	2021-12-02 12:20:39.0 +0100
@@ -0,0 +1,67 @@
+From c99c33a33ff58ca85e8ba73912eba45d458eaa72 Mon Sep 17 00:00:00 2001
+From: Jan Moringen 
+Date: Fri, 8 Oct 2021 13:28:46 +0200
+Subject: [PATCH] fix FTYPE declamations for evaluator functions
+Origin: https://github.com/scymtym/esrap/commit/c99c33a33ff58ca85e8ba73912eba45d458eaa72
+
+Lambda lists elements within FUNCTION type specifiers cannot be *.
+---
+ src/evaluator.lisp | 12 ++--
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+--- a/src/evaluator.lisp
 b/src/evaluator.lisp
+@@ -21,7 +21,7 @@
+ 
+ ;;; Utilities
+ 
+-(declaim (ftype (function * (values function &optional))
++(declaim (ftype (function (t t t) (values function &optional))
+ resolve-function))
+ 
+ (defun resolve-function (name arguments expression)
+@@ -138,7 +138,7 @@
+ (predicate
+  (eval-semantic-predicate expression text position end
+ 
+-(declaim (ftype (function (*) (values function &optional)) compile-expression))
++(declaim (ftype (function (t) (values function &optional)) compile-expression))
+ (defun compile-expression (expression)
+   (expression-case expression
+ (character(compile-character))
+@@ -194,7 +194,7 @@
+  expression limit nil (subseq text position limit))
+ (make-failed-parse expression end nil
+ 
+-(declaim (ftype (function (* string input-position input-length)
++(declaim (ftype (function (t string input-position input-length)
+   (values result &optional))
+ eval-string))
+ (defun eval-string (expression text position end)
+@@ -271,7 +271,7 @@
+  (match-terminal/case-insensitive-p
+   string length text position end
+ 
+-(declaim (ftype (function (* function string input-position input-length)
++(declaim (ftype (function (t function string input-position input-length)
+   (values result &optional))
+ exec-terminal-function))
+ (defun exec-terminal-function (expression function text position end)
+@@ -516,7 +516,7 @@
+ 
+ ;;; Negations
+ 
+-(declaim (ftype (function (function * string input-position input-position)
++(declaim (ftype (function (function t string input-position input-position)
+   (values result &optional))
+ exec-negation))
+ (defun exec-negation (fun expr text position end)
+@@ -702,7 +702,7 @@
+ 
+ ;;; Character ranges
+ 
+-(declaim (ftype (function (* * string input-position input-length)
++(declaim (ftype (function (t t string input-position input-length)
+   (values result &optional))
+ exec-character-ranges))
+ (defun exec-character-ranges (expression ranges text position end)
diff -Nru cl-esrap-20180430/debian/patches/series cl-esrap-20180430/debian/patches/series
--- cl-esrap-20180430/debian/patches/series	1970-01-01 01:00:00.0 +0100
+++ cl-esrap-20180430/debian/patches/series	2021-12-02 12:19:16.0 +0100
@@ -0,0 +1 @@
+function-type-no-star.patch


Bug#998557: spice-gtk: FTBFS: ../meson.build:4:0: ERROR: Unknown options: "celt051"

2021-12-01 Thread Simon Chopin
Package: spice-gtk
Version: 0.39-3
Followup-For: Bug #998557
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu jammy ubuntu-patch
X-Debbugs-Cc: simon.cho...@canonical.com
Control: tags -1 patch

Hi,

In Ubuntu, the attached patch was applied to achieve the following:

  * d/rules: remove the -Dcelt051=disabled option as the whole CELT
support has been removed upstream (Closes #998557)

Thanks for considering the patch.
Cheers,
Simon

-- System Information:
Debian Release: 11.0
  APT prefers impish-updates
  APT policy: (500, 'impish-updates'), (500, 'impish-security'), (500, 
'impish-proposed'), (500, 'impish'), (100, 'impish-backports'), (90, 
'jammy-proposed'), (90, 'jammy')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.13.0-22-generic (SMP w/24 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru spice-gtk-0.39/debian/rules spice-gtk-0.39/debian/rules
--- spice-gtk-0.39/debian/rules 2021-09-24 01:59:54.0 +0200
+++ spice-gtk-0.39/debian/rules 2021-12-01 11:52:26.0 +0100
@@ -6,7 +6,7 @@
 override_dh_auto_configure:
dh_auto_configure -- \
 -Dsmartcard=enabled -Dgtk=enabled \
--Dintrospection=enabled -Dvapi=enabled -Dcelt051=disabled \
+-Dintrospection=enabled -Dvapi=enabled \
 -Dusbredir=enabled -Dpolkit=enabled \
 -Dlz4=enabled -Dgtk_doc=enabled \
 -Dusb-acl-helper-dir=/usr/libexec \


Bug#1000861: eggdrop: orig tarball doesn't match the attached upstream signature

2021-11-30 Thread Simon Chopin
Source: eggdrop
Version: 1.8.4-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: simon.cho...@canonical.com

eggdrop_1.8.4.orig.tar.gz doesn't match the attached .asc file, which
causes dpkg-buildpackage to fail. When comparing with the upstream
tarball downloaded from Github (which matches the signature), the only
difference is in the metadata of the files: the upstream tarball records
the file owner as freeder(1002)/freeder(1002) whereas the
Debian-provided one records root(0)/root(0).

A simple workaround is to delete the signature file
'eggdrop_1.8.4.orig.tar.gz.asc', but that kind of defeats the purpose of
having the signature file in the first place ;-).

I'm guessing a 1.8.4+repack-1 version with the proper tarball would fix
things?

Cheers,
Simon

-- System Information:
Debian Release: 11.0
  APT prefers impish-updates
  APT policy: (500, 'impish-updates'), (500, 'impish-security'), (500, 
'impish-proposed'), (500, 'impish'), (100, 'impish-backports'), (90, 
'jammy-proposed'), (90, 'jammy')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.13.0-22-generic (SMP w/24 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



Bug#995625: httping FTBFS: error: format not a string literal and no format arguments [-Werror=format-security]

2021-11-26 Thread Simon Chopin
Hi,

Would it be possible to either have the URL of the upstream VCS or a
proper patch file for 4ea9d5b78540c972e3fe1bf44db9f7b3f87c0ad0?
I couldn't find any mention of a VCS on the homepage, only tarballs.

Thanks in advance,
Cheers
--
Simon Chopin
Foundations Team Ubuntu MOTU
simon.cho...@canonical.comscho...@ubuntu.com



Bug#984159: gnubiff: ftbfs with GCC-11

2021-11-26 Thread Simon Chopin
Package: gnubiff
Version: 2.2.17-3
Followup-For: Bug #984159
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu jammy ubuntu-patch
X-Debbugs-Cc: simon.cho...@canonical.com
Control: tags -1 patch

Dear Maintainer,


In Ubuntu, the attached patch was applied to achieve the following:

  * d/rules: force G++ to use C++14 (Closes: #984159)

Thanks for considering the patch.


-- System Information:
Debian Release: 11.0
  APT prefers impish-updates
  APT policy: (500, 'impish-updates'), (500, 'impish-security'), (500, 
'impish'), (50, 'impish-proposed')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.13.0-20-lowlatency (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru gnubiff-2.2.17/debian/rules gnubiff-2.2.17/debian/rules
--- gnubiff-2.2.17/debian/rules 2018-10-17 00:37:55.0 +0200
+++ gnubiff-2.2.17/debian/rules 2021-11-26 09:13:33.0 +0100
@@ -1,5 +1,6 @@
 #!/usr/bin/make -f
 
+export DEB_CXXFLAGS_MAINT_APPEND=-std=c++14
 %:
dh $@
 


Bug#973153: caml-crush: FTBFS: ocamlopt: OCaml has been configured with -force-safe-string: -unsafe-string is not available.

2021-08-20 Thread Simon Chopin
Source: caml-crush
Followup-For: Bug #973153

There's a PR upstream to deal with this:

https://github.com/caml-pkcs11/caml-crush/pull/46

-- System Information:
Debian Release: 11.0
  APT prefers impish
  APT policy: (500, 'impish'), (50, 'impish-proposed')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.13.0-14-generic (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



Bug#992564: FTBFS: "rpc/rpc.h" not found (removed from glibc 2.32)

2021-08-20 Thread Simon Chopin
Source: caml-crush
Severity: serious
Tags: upstream ftbfs

Dear Maintainer,

The package fails to build from source in clean environments as it
relies on "rpc/rpc.h" being present, while those headers have been
removed in glibc 2.32, considered obsolete. The solution is to use tirpc
instead.

There is a PR upstream to adapt the build system to use tirpc :

https://github.com/caml-pkcs11/caml-crush/pull/47

-- System Information:
Debian Release: 11.0
  APT prefers impish
  APT policy: (500, 'impish'), (50, 'impish-proposed')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.13.0-14-generic (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



Bug#770977: [Python-modules-team] Bug#770977: Bug#770977: pytest: Fails to build from source

2014-11-26 Thread Simon Chopin
Quoting Lennart Sorensen (2014-11-26 16:53:44)
> On Tue, Nov 25, 2014 at 04:35:52PM -0500,  wrote:
> > Hmm, interesting, I can try and see if I can reproduce it on more systems.
> > 
> > So the machine I was building on is an IBM x3650 with 2 quad core 2.5GHz
> > xeons.  Kernel is amd64, userspace is i386 wheezy, chroot is i386 jessie
> > buildd variant.
> > 
> > So I just tried some more tests.
> > 
> > jessie-amd64 on sid-amd64: works
> > jessie-i386 on sid-amd64: works
> > jessie-i386 on wheezy-i386(with amd64 kernel): fails
> > Same chroot copied to a sid machine (so 3.16 kernel instead of 3.2 kernel: 
> > works
> > 
> > It would appear that pytest fails on python 3.4.2 when the underlying
> > kernel is 3.2 for some reason that I can't even imagine what is.
> > 
> > I will try upgrading the kernel on our build machine to the
> > wheezy-backprot of 3.16 and see if that solves the problem and report
> > back.
> 
> So to confirm I did this:
> 
> Create a VM with a fresh wheezy install.
> Create a jessie chroot with debootstrap.
> Try building pytest.
> It fails.
> Upgrade wheezy kernel to 3.16 from wheezy-backports.
> Try building pytest in chroot again.
> It passes.
> 
> So the problem is caused by running on the 3.2 wheezy kernel.
> 
> So weird as that is, I think the bug can be closed.  No idea if this
> is a bug in the old kernel, or glibc, or python 3.4, with one of them
> making some assumption about kernel behaviour based on the linux-libc-dev
> headers they were built against.  I suppose it means there is a chance a
> system upgrading from wheezy to jessie could have some issues with running
> python3 stuff in some cases until it is rebooted to the jessie kernel,
> although that would probably be recommended to do as soon as possible
> anyhow.

I think we should downgrade it and maybe tag it moreinfo, but it
shouldn't be closed. The case of a Jessie kernel on a machine running a
kernel that is not Jessie's is a valid use case IMHO.

Not that I'm volunteering to track down and fix it!

Cheers,
Simon


signature.asc
Description: signature


Bug#732300: logkeys: log file is gibberish

2014-11-07 Thread Simon Chopin
Hi!

Henri, just to be sure, have you set the correct input device in
/etc/default/logkeys ?

When I do, with your steps I have a correct behaviour, whereas following
the instructions of the OP (with the correct filename keymap.txt) I do
get a similar result.

Cheers,
Simon


signature.asc
Description: signature


Bug#764979: pyacoustid: continues to FTBFS

2014-10-21 Thread Simon Chopin
Hi Michael,

hmm, that's weird. I used sbuild for the package, and it builds fine
here (just tested again).
I'm curious, what tool to you use to build?

Anyway, I'll just export the variable all over the Makefile.

Cheers,

Simon


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#764979: pyacoustid: FTBFS: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 636: ordinal not in range(128)

2014-10-12 Thread Simon Chopin
Control: tags -1 + fixed-upstream pending

Hi Daniel,

I have actually fixed it by patching the faulty setup.py, but your setup
appears to run debian/rules clean on an unpatched tree. I don't know
whether this is the good way to go or not, but in any case I've just
commited a workaround on the DPMT svn repo, and will ping my usual
sponsor ASAP.

Cheers,
Simon


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#742508: [Python-modules-team] Bug#742508: python-rgain: collectiongain is unusable

2014-09-12 Thread Simon Chopin
Well, I wrote to my usual sponsor since he already knows the packaging.
He still hasn't gotten back to me yet, so thanks a lot!

On Fri, Sep 12, 2014 at 10:27 AM, Simon McVittie  wrote:
> On Fri, 22 Aug 2014 at 14:12:28 +0200, Simon Chopin wrote:
>> (you might want to install
>> it manually since I have to find a sponsor for the upload).
>
> I found this long-standing bug via how-can-i-help and did an upload,
> since I'm still theoretically a member of the python-modules team.
>
> Uploading to mentors.debian.net or opening a sponsorship-requests bug
> might be a useful way to get sponsored sooner.
>
> Regards,
> S


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#742508: [Python-modules-team] Bug#742508: python-rgain: collectiongain is unusable

2014-08-22 Thread Simon Chopin
Control: tag -1 pending
Hi Christian
Quoting Christian Marillat (2014-03-24 16:23:57)
> Package: python-rgain
> Version: 1.2-1
> Severity: serious
> 
> Dear Maintainer,
> 
> collectiongain (amd replaygain) doesn't work at all :
> 
> Dispatching jobs ...
> Now waiting for results ...
> Unfortunately, there were some errors:
> 10cc - The original soundtrack: Calculating Replay Gain information ...
>   Musique/10cc/1975 - The original soundtrack/01 - Nuit a Paris, pt. 1- one 
> night in Paris-pt. 2- the same night in Paris.mp3:
> Error while calculating gain - GST error: Your GStreamer installation is 
> missing a plug-in. (gstdecodebin2.c(3928): gst_decode_bin_expose (): 
> /GstPipeline:pipeline0/GstDecodeBin:decbin:
> no suitable plugins found)

The plugin in question is actually needed to play MP3 files, and isn't
in the same package as the replaygain package. I've added it to the
recommends, it is in gstreamer1.0-plugins-bad (you might want to install
it manually since I have to find a sponsor for the upload).

Sorry for the delay!

Cheers,
Simon


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#731299: [Python-modules-team] Bug#731299: Bug#731299: python-pytest: Broken because of pkg_resources.VersionConflict

2013-12-04 Thread Simon Chopin
Hi,

Le 4 déc. 2013 17:03, "Sebastian Ramacher"  a écrit :
>
> On 2013-12-03 19:30:35, Nikolaus Rath wrote:
> > pkg_resources.VersionConflict: (py 1.4.15
(/usr/lib/python3/dist-packages), Requirement.parse('py>=1.4.17'))
>
> A new enough version of py has just been uploaded to unstable.

Nice :-).

Still, the dependency should be specified in d/control. I'll try and
get to that this weekend.

Regards
Simon


Bug#713074: pygpgme: FTBFS: tests failed

2013-08-08 Thread Simon Chopin

Note that this failure also occurs when trying to build the new upstream
version.


signature.asc
Description: signature


Bug#707151: [Python-modules-team] Bug#707151: pytest: FTBFS: Python 3.3 tests fail

2013-05-07 Thread Simon Chopin
Control: tag -1 +pending

The new upstream version builds fine. I'll upload (well, someone will
for me) in unstable as soon as python-mock lands in it.

Thanks for the head's up!

Cheers,
Simon


signature.asc
Description: signature


Bug#702102:

2013-03-20 Thread Simon Chopin
For those who like me are (were) testing systemd, reverting to the default
init (SysV) in testing/unstable would also work around this problem.



signature.asc
Description: signature


Bug#668104: python-pytest-xdist: Crash at startup && out of date

2012-04-08 Thread Simon Chopin
Package: python-pytest-xdist
Version: 1.4-1.1
Severity: grave
Tags: upstream
Justification: renders package unusable

Dear Maintainer,
When trying this package using the python-pytest package (not yet in the
archive, but it will hopefully be uploaded soon), here is what I get:

$ py.test -n 2
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File
"/usr/lib/python2.7/dist-packages/_pytest/main.py", line 68, in
wrap_session
INTERNALERROR> config.pluginmanager.do_configure(config)
INTERNALERROR>   File
"/usr/lib/python2.7/dist-packages/_pytest/core.py", line 267, in
do_configure
INTERNALERROR> config.hook.pytest_configure(config=self._config)
INTERNALERROR>   File
"/usr/lib/python2.7/dist-packages/_pytest/core.py", line 419, in
__call__
INTERNALERROR> return self._docall(methods, kwargs)
INTERNALERROR>   File
"/usr/lib/python2.7/dist-packages/_pytest/core.py", line 430, in _docall
INTERNALERROR> res = mc.execute()
INTERNALERROR>   File
"/usr/lib/python2.7/dist-packages/_pytest/core.py", line 348, in execute
INTERNALERROR> res = method(**kwargs)
INTERNALERROR>   File
"/usr/lib/python2.7/dist-packages/xdist/plugin.py", line 204, in
pytest_configure
INTERNALERROR> from xdist.dsession import DSession
INTERNALERROR>   File
"/usr/lib/python2.7/dist-packages/xdist/dsession.py", line 2, in

INTERNALERROR> from py._test import session
INTERNALERROR> ImportError: No module named _test

Note that since the 1.4 release of python-py, py.test was split off and
now has its own repository and release schedule. The crash is probably a
consequence of it.

Upstream for xdist is currently at 1.8, and switched to zip-only
archive, see http://pypi.python.org/packages/source/p/pytest-xdist/

I intend to provide patches if needed.

Cheers,
Simon

-- System Information:
Debian Release: wheezy/sid
  APT prefers experimental
  APT policy: (990, 'experimental'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-pytest-xdist depends on:
ii  python  2.7.2-10
ii  python-execnet  1.0.8-1.1
ii  python-py   1.4.7-3
ii  python2.6   2.6.7-4
ii  python2.7   2.7.3~rc2-2

python-pytest-xdist recommends no packages.

python-pytest-xdist suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#647544: Component clfswm not found

2011-11-03 Thread Simon Chopin
Package: clfswm
Version: 20111015.git51b0a02-1
Severity: grave
Justification: renders package unusable

Hi,

When trying to start clfswm, I just get this error message and then the
program exits :

*** - Component "clfswm" not found

Anyway, thanks for packaging this software :-)

Cheers,

Simon

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages clfswm depends on:
ii  clisp-module-clx  1:2.49-8

clfswm recommends no packages.

clfswm suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#645005: git: installation failure: cannot remove `/usr/share/doc/git/contrib/hooks': Not a directory

2011-10-11 Thread Simon Chopin
Package: git
Version: 1:1.7.7-1
Followup-For: Bug #645005

Hi,

I was also confronted to the problem. I slightly modified the postinst
script to skip the whole thing if the version provided as argument is an
empty string.

I attached the patch to this mail.

Cheers,

Simon
>From 1b7039ad6c0e59f3e2ea644e39cd7854154309f9 Mon Sep 17 00:00:00 2001
From: Simon Chopin 
Date: Wed, 12 Oct 2011 07:28:53 +0200
Subject: [PATCH] postinst: Fix fresh install contrib/hooks cleaning

The postinstall script now only attempts the removal if the version
string given as argument $2 is not empty, i.e. if it is in fact an
upgrade.
---
 debian/git.postinst |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/debian/git.postinst b/debian/git.postinst
index 8cf7ad3..332d77c 100644
--- a/debian/git.postinst
+++ b/debian/git.postinst
@@ -34,7 +34,7 @@ fi
 
 # 1.7.7-1 replaces /usr/share/doc/git/contrib/hooks with a symlink,
 # but dpkg doesn't do so on package upgrade
-if dpkg --compare-versions "$2" lt '1:1.7.7-1' &&
+if test -n "$2" && dpkg --compare-versions "$2" lt '1:1.7.7-1' &&
test -d /usr/share/doc/git/contrib/hooks; then
   rmdir /usr/share/doc/git/contrib/hooks &&
   ln -s ../../../git-core/contrib/hooks \
-- 
1.7.7



Bug#580453: linux-base: Fail to upgrade to 2.6.32-12

2010-05-05 Thread Simon Chopin
Package: linux-base
Version: 2.6.32-12
Severity: grave
Tags: sid
Justification: renders package unusable

Hi !
When i try to upgrade my kernel, the output of aptitude give me this (french 
locale) :

Paramétrage de linux-base (2.6.32-12) ...
Use of uninitialized value $label_len in numeric gt (>) at 
/var/lib/dpkg/info/linux-base.postinst line 1338.
Use of uninitialized value $label_len in subtraction (-) at 
/var/lib/dpkg/info/linux-base.postinst line 1339.
Cluster size is zero.
dosfslabel failed: 256 at /var/lib/dpkg/info/linux-base.postinst line 1042, 
 line 10.
dpkg : erreur de traitement de linux-base (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de 
sortie d'état 9
dpkg : des problèmes de dépendances empêchent la configuration de 
linux-image-2.6.32-5-amd64 :
 linux-image-2.6.32-5-amd64 dépend de linux-base (>= 2.6.32-12) ; cependant :
 Le paquet linux-base n'est pas encore configuré.
dpkg : erreur de traitement de linux-image-2.6.32-5-amd64 (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de 
linux-image-2.6-amd64 :
 linux-image-2.6-amd64 dépend de linux-image-2.6.32-5-amd64 ; cependant :
 Le paquet linux-image-2.6.32-5-amd64 n'est pas encore configuré.
dpkg : erreur de traitement de linux-image-2.6-amd64 (--configure) :
 problèmes de dépendances - laissé non configuré
Des erreurs ont été rencontrées pendant l'exécution :
 linux-base
 linux-image-2.6.32-5-amd64
 linux-image-2.6-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-base depends on:
ii  debconf [debconf-2.0] 1.5.32 Debian configuration management sy
ii  libapt-pkg-perl   0.1.24 Perl interface to libapt-pkg
ii  libuuid-perl  0.02-3+b1  Perl extension for using UUID inte
ii  udev  153-2  /dev/ and hotplug management daemo
ii  util-linux2.16.2-0   Miscellaneous system utilities

linux-base recommends no packages.

linux-base suggests no packages.

-- debconf information:
  linux-base/disk-id-manual:
  linux-base/disk-id-convert-plan-no-relabel: true
  linux-base/disk-id-manual-boot-loader:
* linux-base/disk-id-convert-auto: true
* linux-base/disk-id-convert-plan: true



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org