Bug#1071789: rust-version-sync: bump pulldown-cmark version to 0.10

2024-05-24 Thread Zixing Liu
Package: rust-version-sync
Version: 0.9.5-4
Severity: normal
Tags: patch
User: zixing@canonical.com

Dear Maintainer,

The rust-pulldown-cmark package is about to be updated to 0.10.
This patch will upgrade the pulldown-cmark crate in rust-version-sync to 0.10
and also adapt to any API changes.

A modified version of the patch is forwarded to the upstream as:
https://github.com/mgeisler/version-sync/pull/151

Thanks for considering the patch.
diff -Nru 
rust-version-sync-0.9.5/debian/patches/0001-update-pulldown-cmark-to-0-10.patch 
rust-version-sync-0.9.5/debian/patches/0001-update-pulldown-cmark-to-0-10.patch
--- 
rust-version-sync-0.9.5/debian/patches/0001-update-pulldown-cmark-to-0-10.patch 
1969-12-31 17:00:00.0 -0700
+++ 
rust-version-sync-0.9.5/debian/patches/0001-update-pulldown-cmark-to-0-10.patch 
2024-05-24 15:58:32.0 -0600
@@ -0,0 +1,42 @@
+Description: Upgrade pulldown-cmark to 0.10
+Author: Zixing Liu 
+Origin: backport, 
https://github.com/mgeisler/version-sync/pull/151/commits/cc74ef5f749b1422e324155ef5e68c14437902ec.patch
+Bug: https://github.com/mgeisler/version-sync/pull/151
+Forwarded: https://github.com/mgeisler/version-sync/pull/151.patch
+Last-Update: 2024-05-24
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: rust-version-sync/src/markdown_deps.rs
+===
+--- rust-version-sync.orig/src/markdown_deps.rs
 rust-version-sync/src/markdown_deps.rs
+@@ -1,6 +1,6 @@
+ #![cfg(feature = "markdown_deps_updated")]
+ use pulldown_cmark::CodeBlockKind::Fenced;
+-use pulldown_cmark::{Event, Parser, Tag};
++use pulldown_cmark::{Event, Parser, Tag, TagEnd};
+ use semver::{Version, VersionReq};
+ use toml::Value;
+ 
+@@ -78,7 +78,7 @@ fn find_toml_blocks(text: ) -> Vec {
++Event::End(TagEnd::CodeBlock) => {
+ if let Some(block) = current_block.take() {
+ code_blocks.push(block);
+ }
+Index: rust-version-sync/Cargo.toml
+===
+--- rust-version-sync.orig/Cargo.toml
 rust-version-sync/Cargo.toml
+@@ -19,7 +19,7 @@ contains_regex = ["regex", "semver"]
+ 
+ [dependencies]
+ proc-macro2 = { version = "1.0.36", default-features = false, features = 
["span-locations"], optional = true }
+-pulldown-cmark = { version = "0.9.1", default-features = false, optional = 
true }
++pulldown-cmark = { version = "0.10", default-features = false, optional = 
true }
+ regex = { version = "1.5.4", default-features = false, features = ["std", 
"unicode"], optional = true }
+ semver = { version = "1.0.5", optional = true }
+ syn = { version = "2.0.15", default-features = false, features = ["parsing", 
"printing", "full"], optional = true }
diff -Nru rust-version-sync-0.9.5/debian/patches/series 
rust-version-sync-0.9.5/debian/patches/series
--- rust-version-sync-0.9.5/debian/patches/series   2024-01-23 
09:08:59.0 -0700
+++ rust-version-sync-0.9.5/debian/patches/series   2024-05-24 
15:58:21.0 -0600
@@ -1 +1,2 @@
 1001_toml.patch
+0001-update-pulldown-cmark-to-0-10.patch


Bug#1070868: vstream-client: make the build system respect Debian compiler flags

2024-05-10 Thread Zixing Liu
Package: vstream-client
Version: 1.2-7
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oracular ubuntu-patch

Dear Maintainer,

This patch makes the build system respect Debian compiler flags to ensure
build consistency.

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

- Use dpkg-buildflags, and build with -D_LARGEFILE64_SOURCE since
  test-client.c uses fopen64.


Thanks for considering the patch.


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

Kernel: Linux 6.8.0-31-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru vstream-client-1.2/debian/control vstream-client-1.2/debian/control
--- vstream-client-1.2/debian/control   2022-01-16 14:25:17.0 -0700
+++ vstream-client-1.2/debian/control   2024-05-10 14:37:40.0 -0600
@@ -2,7 +2,8 @@
 Priority: optional
 Maintainer: Paul Hedderly 
 Build-Depends: debhelper-compat (= 13),
-   autotools-dev
+   autotools-dev,
+   dpkg-dev
 Standards-Version: 3.9.2
 Vcs-Browser: https://salsa.debian.org/debian/vstream-client
 Vcs-Git: https://salsa.debian.org/debian/vstream-client.git
diff -Nru vstream-client-1.2/debian/rules vstream-client-1.2/debian/rules
--- vstream-client-1.2/debian/rules 2022-01-16 14:25:17.0 -0700
+++ vstream-client-1.2/debian/rules 2024-05-10 14:34:09.0 -0600
@@ -31,6 +31,10 @@
 #major=`ls src/.libs/lib*.so.* | \
 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
 
+export DEB_CPPFLAGS_MAINT_APPEND := -D_LARGEFILE64_SOURCE
+export DEB_CFLAGS_MAINT_APPEND := -Wall
+include /usr/share/dpkg/buildflags.mk
+
 config.status: configure
dh_testdir
# Add here commands to configure the package.
@@ -40,7 +44,7 @@
 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
cp -f /usr/share/misc/config.guess config.guess
 endif
-   ./configure --prefix=/usr
+   CFLAGS="$(CPPFLAGS) $(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure 
--prefix=/usr
# THIS IS POINTLESS... BECAUSE THE UPSTREAM BUILD SYSTEM IS SIMPLE AND 
MESSY!
 
 #CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"


Bug#1070823: xorg-gtest: fix FTBFS on Debian sid

2024-05-09 Thread Zixing Liu
Package: xorg-gtest
Version: 0.7.1-8
Severity: important
Tags: patch ftbfs
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oracular ubuntu-patch

Dear Maintainer,

This patch fixes buildability on Debian sid (trixie).
The patch removal is due to upstream reverting the changes:
https://gitlab.freedesktop.org/xorg/test/xorg-gtest/-/commit/03d9896d3152749c68441a6d913a40dd05754082.
You will see the changelog entry mentioning a certain issue gets resolved, and
that issue was resolved by the commit shown above.

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

  - Disable 0005-Properly-escape-the-D-string-defines.patch until upstream
issue https://gitlab.freedesktop.org/xorg/test/xorg-gtest/issues/1 is
resolved, to make compiz buildable again.
  - d/rules: do not build documentation and code in parallel, as this will
break the build system.


Thanks for considering the patch.


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

Kernel: Linux 6.8.0-31-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru 
xorg-gtest-0.7.1/debian/patches/0005-Properly-escape-the-D-string-defines.patch 
xorg-gtest-0.7.1/debian/patches/0005-Properly-escape-the-D-string-defines.patch
--- 
xorg-gtest-0.7.1/debian/patches/0005-Properly-escape-the-D-string-defines.patch 
2022-11-09 15:19:00.0 -0700
+++ 
xorg-gtest-0.7.1/debian/patches/0005-Properly-escape-the-D-string-defines.patch 
1969-12-31 17:00:00.0 -0700
@@ -1,28 +0,0 @@
-From 51a836bf4cafa7fb3d3f71d9cf9b7cb8158a32f2 Mon Sep 17 00:00:00 2001
-From: Peter Hutterer 
-Date: Mon, 13 Jun 2016 13:55:12 +1000
-Subject: [PATCH 5/5] Properly escape the -D string defines
-
-Some compiler change apparently makes this necessary now.
-
-Signed-off-by: Peter Hutterer 

- xorg-gtest.pc.in | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/xorg-gtest.pc.in b/xorg-gtest.pc.in
-index 8fa18a6..612839d 100644
 a/xorg-gtest.pc.in
-+++ b/xorg-gtest.pc.in
-@@ -2,7 +2,7 @@ prefix=@prefix@
- includedir=@includedir@
- sourcedir=@SOURCEDIR@
- datarootdir=@datarootdir@
--CPPflags=-I${includedir} -I${includedir}/xorg -I${sourcedir} 
-DDUMMY_CONF_PATH=\"@DUMMY_CONF_PATH@\" -DLOGFILE_DIR=\"@LOGFILE_DIR@\"
-+CPPflags=-I${includedir} -I${includedir}/xorg -I${sourcedir} 
-D'DUMMY_CONF_PATH=\"@DUMMY_CONF_PATH@\"' -D'LOGFILE_DIR=\"@LOGFILE_DIR@\"'
- 
- Name: xorg-gtest
- Description: X.org Google Test Environment
--- 
-2.18.0
-
diff -Nru xorg-gtest-0.7.1/debian/patches/series 
xorg-gtest-0.7.1/debian/patches/series
--- xorg-gtest-0.7.1/debian/patches/series  2022-11-09 15:19:00.0 
-0700
+++ xorg-gtest-0.7.1/debian/patches/series  2024-05-06 19:36:02.0 
-0600
@@ -5,6 +5,5 @@
 0002-xserver-improve-error-code-reporting.patch
 0003-doc-update-doxygen-file.patch
 0004-doc-remove-DOT_FONTNAME-from-doxygen.in.patch
-0005-Properly-escape-the-D-string-defines.patch
 reproducible-builds.patch
 1001_another-Doxygen-update.patch
diff -Nru xorg-gtest-0.7.1/debian/rules xorg-gtest-0.7.1/debian/rules
--- xorg-gtest-0.7.1/debian/rules   2022-11-09 15:19:00.0 -0700
+++ xorg-gtest-0.7.1/debian/rules   2024-05-06 19:36:02.0 -0600
@@ -12,7 +12,8 @@
  --docdir=/usr/share/doc/libxorg-gtest-doc
 
 override_dh_auto_build:
-   dh_auto_build -- all doc
+   dh_auto_build -- all
+   dh_auto_build -- doc
 
 override_dh_install:
rm -rf debian/tmp/usr/include/gtest


Bug#1070820: vinagre: fix compatibility with FreeRDP 2.1.1+

2024-05-09 Thread Zixing Liu
Package: vinagre
Version: 3.22.0-8.1
Severity: important
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oracular ubuntu-patch

Dear Maintainer,

This set of patches fix the compatibility with FreeRDP 2.1.1+.

The patches are cherry-picked from the upstream and pending Merge Requests
in the upstream's GitLab instance.

Some of the previous patches got replaced by a newer revision in the upstream
source repository.

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

  * Fix compatibility with FreeRDP 2.1.1 security update.
- debian/patches/freerdp*.patch: backport series of upstream patches to
  fix compatibility wither newer FreeRDP versions.
- d/p/0001-Revert-Improve-FreeRDP-authentication-failure-handli.patch:
  removed, no longer needed.
- d/p/0002-Revert-Store-credentials-for-RDP.patch: removed, no longer
  needed.
- d/p/freerdp2017.patch: removed, replaced with upstream patches.
- d/patches: re-import patches from the upstream and refresh the patches 
  against the Ubuntu-patched source tree.


Thanks for considering the patch.


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

Kernel: Linux 6.8.0-31-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru vinagre-3.22.0/debian/control vinagre-3.22.0/debian/control
--- vinagre-3.22.0/debian/control   2021-05-16 15:11:19.0 -0600
+++ vinagre-3.22.0/debian/control   2024-05-08 15:11:43.0 -0600
@@ -18,6 +18,7 @@
libspice-client-gtk-3.0-dev (>= 0.5) [linux-any],
libavahi-ui-gtk3-dev (>= 0.6.26),
libavahi-gobject-dev (>= 0.6.26),
+   libdbus-glib-1-dev,
libsecret-1-dev,
valac (>= 0.12.0),
yelp-tools,
diff -Nru vinagre-3.22.0/debian/control.in vinagre-3.22.0/debian/control.in
--- vinagre-3.22.0/debian/control.in2020-12-31 17:05:07.0 -0700
+++ vinagre-3.22.0/debian/control.in2024-05-08 15:11:43.0 -0600
@@ -14,6 +14,7 @@
libspice-client-gtk-3.0-dev (>= 0.5) [linux-any],
libavahi-ui-gtk3-dev (>= 0.6.26),
libavahi-gobject-dev (>= 0.6.26),
+   libdbus-glib-1-dev,
libsecret-1-dev,
valac (>= 0.12.0),
yelp-tools,
diff -Nru 
vinagre-3.22.0/debian/patches/0001-Revert-Improve-FreeRDP-authentication-failure-handli.patch
 
vinagre-3.22.0/debian/patches/0001-Revert-Improve-FreeRDP-authentication-failure-handli.patch
--- 
vinagre-3.22.0/debian/patches/0001-Revert-Improve-FreeRDP-authentication-failure-handli.patch
   2020-02-13 04:42:44.0 -0700
+++ 
vinagre-3.22.0/debian/patches/0001-Revert-Improve-FreeRDP-authentication-failure-handli.patch
   1969-12-31 17:00:00.0 -0700
@@ -1,53 +0,0 @@
-From 8ebc0685b85e0d1f70eb00171f2e7712de3d44bd Mon Sep 17 00:00:00 2001
-From: Michael Biebl 
-Date: Thu, 22 Sep 2016 01:15:55 +0200
-Subject: [PATCH 1/2] Revert "Improve FreeRDP authentication failure handling"
-
-This reverts commit d7b4f88943e8615d252d27e1efc58cb64a9e1821.

- plugins/rdp/vinagre-rdp-tab.c | 10 ++
- 1 file changed, 6 insertions(+), 4 deletions(-)
-
-diff --git a/plugins/rdp/vinagre-rdp-tab.c b/plugins/rdp/vinagre-rdp-tab.c
-index b731f9b..8572bc3 100644
 a/plugins/rdp/vinagre-rdp-tab.c
-+++ b/plugins/rdp/vinagre-rdp-tab.c
-@@ -1195,8 +1195,8 @@ open_freerdp (VinagreRdpTab *rdp_tab)
-   VinagreTab   *tab = VINAGRE_TAB (rdp_tab);
-   GtkWindow*window = GTK_WINDOW (vinagre_tab_get_window (tab));
-   gboolean  success = TRUE;
-+  gboolean  authentication_error = FALSE;
-   gboolean  cancelled = FALSE;
--  guint authentication_errors = 0;
- 
-   priv->events = g_queue_new ();
- 
-@@ -1205,12 +1205,14 @@ open_freerdp (VinagreRdpTab *rdp_tab)
- 
-   do
- {
-+  authentication_error = FALSE;
-+
-   /* Run FreeRDP session */
-   success = freerdp_connect (priv->freerdp_session);
-   if (!success)
- {
--  authentication_errors += freerdp_get_last_error 
(priv->freerdp_session->context) == 0x20009 ||
--   freerdp_get_last_error 
(priv->freerdp_session->context) == 0x2000c;
-+  authentication_error = freerdp_get_last_error 
(priv->freerdp_session->context) == 0x20009 ||
-+ freerdp_get_last_error 
(priv->freerdp_session->context) == 0x2000c;
- 
-   cancelled = freerdp_get_last_error 

Bug#832524: hasciicam: Replace ftplib-dev build dependency by libftp-dev

2024-05-09 Thread Zixing Liu
Package: hasciicam
Version: 1.1.2-1.1
Followup-For: Bug #832524
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oracular ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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


  * Merge with Debian unstable (LP: #2065107). Remaining changes:
  * debian/patches/10_desktop-file.patch: Fix invalid desktop file,
don't include extension for icons. (LP: #1198969)
  * Explicitly build-depend on libftp-dev instead of old ftplib-dev


Thanks for considering the patch.


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

Kernel: Linux 6.8.0-31-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru hasciicam-1.1.2/debian/control hasciicam-1.1.2/debian/control
--- hasciicam-1.1.2/debian/control  2022-12-11 11:39:06.0 -0700
+++ hasciicam-1.1.2/debian/control  2024-05-07 15:23:23.0 -0600
@@ -7,7 +7,7 @@
 Vcs-Git: git://code.dyne.org/hasciicam.git
 Vcs-Browser: http://code.dyne.org/?r=hasciicam
 Homepage: http://ascii.dyne.org/
-Build-Depends: cdbs, debhelper (>= 9), libaa1-dev, ftplib-dev
+Build-Depends: cdbs, debhelper (>= 9), libaa1-dev, libftp-dev
 Standards-Version: 3.9.1
 
 Package: hasciicam


Bug#717690: hasciicam ships with invalid desktop file

2024-05-09 Thread Zixing Liu
Package: hasciicam
Version: 1.1.2-1.1
Followup-For: Bug #717690
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oracular ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/10_desktop-file.patch: Fix invalid desktop file,
don't include extension for icons. (LP: #1198969)

Thanks for considering the patch.


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

Kernel: Linux 6.8.0-31-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru hasciicam-1.1.2/debian/patches/10_desktop-file.patch 
hasciicam-1.1.2/debian/patches/10_desktop-file.patch
--- hasciicam-1.1.2/debian/patches/10_desktop-file.patch1969-12-31 
17:00:00.0 -0700
+++ hasciicam-1.1.2/debian/patches/10_desktop-file.patch2024-05-07 
15:21:06.0 -0600
@@ -0,0 +1,15 @@
+Description: Don't include extension for icon.
+Author: Andreas Moog 
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1198969
+
+--- hasciicam-1.1.2.orig/share/hasciicam.desktop
 hasciicam-1.1.2/share/hasciicam.desktop
+@@ -5,7 +5,7 @@ GenericName=HasciiCam
+ Comment=(h)ascii for the masses!
+ Exec=hasciicam %U
+ TryExec=hasciicam
+-Icon=hasciicam.png
++Icon=hasciicam
+ Terminal=false
+ Categories=AudioVideo;
+ X-AppInstall-Package=hasciicam
diff -Nru hasciicam-1.1.2/debian/patches/series 
hasciicam-1.1.2/debian/patches/series
--- hasciicam-1.1.2/debian/patches/series   2011-04-26 07:29:30.0 
-0600
+++ hasciicam-1.1.2/debian/patches/series   2024-05-07 15:21:06.0 
-0600
@@ -1 +1,2 @@
 debian-changes-1.1.2-1
+10_desktop-file.patch


Bug#1066327: chmlib: FTBFS: chm_http.c:167:32: error: implicit declaration of function ‘inet_addr’ [-Werror=implicit-function-declaration]

2024-04-23 Thread Zixing Liu
Package: chmlib
Followup-For: Bug #1066327
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

This is the updated patch that tries to address the build issue on amd64.

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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-28-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru chmlib-0.40a/debian/patches/implicit-declarations.patch 
chmlib-0.40a/debian/patches/implicit-declarations.patch
--- chmlib-0.40a/debian/patches/implicit-declarations.patch 1969-12-31 
17:00:00.0 -0700
+++ chmlib-0.40a/debian/patches/implicit-declarations.patch 2024-04-19 
20:28:40.0 -0600
@@ -0,0 +1,39 @@
+Description: Add missing includes and fix large file support
+Author: Zixing Liu 
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066327
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/2062947
+Forwarded: no
+Last-Update: 2024-04-19
+---
+Index: chmlib/src/chm_http.c
+===
+--- chmlib.orig/src/chm_http.c
 chmlib/src/chm_http.c
+@@ -34,6 +34,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #if __sun || __sgi
+ #include 
+ #define strrchr rindex
+@@ -43,6 +44,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ /* threading includes */
+ #include 
+Index: chmlib/src/chm_lib.c
+===
+--- chmlib.orig/src/chm_lib.c
 chmlib/src/chm_lib.c
+@@ -48,6 +48,7 @@
+  * *
+  ***/
+ 
++#define _LARGEFILE64_SOURCE 1
+ #include "chm_lib.h"
+ 
+ #ifdef CHM_MT
diff -Nru chmlib-0.40a/debian/patches/series chmlib-0.40a/debian/patches/series
--- chmlib-0.40a/debian/patches/series  1969-12-31 17:00:00.0 -0700
+++ chmlib-0.40a/debian/patches/series  2024-04-19 20:25:29.0 -0600
@@ -0,0 +1 @@
+implicit-declarations.patch


Bug#1066327: chmlib: FTBFS: chm_http.c:167:32: error: implicit declaration of function ‘inet_addr’ [-Werror=implicit-function-declaration]

2024-04-22 Thread Zixing Liu
Package: chmlib
Followup-For: Bug #1066327
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/implicit-declarations.patch: Add missing includes and
fix large file support. (LP: #2062947).


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-28-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru chmlib-0.40a/debian/patches/implicit-declarations.patch 
chmlib-0.40a/debian/patches/implicit-declarations.patch
--- chmlib-0.40a/debian/patches/implicit-declarations.patch 1969-12-31 
17:00:00.0 -0700
+++ chmlib-0.40a/debian/patches/implicit-declarations.patch 2024-04-19 
20:28:30.0 -0600
@@ -0,0 +1,38 @@
+Description: Add missing includes and fix large file support
+Author: Zixing Liu 
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066327
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/2062947
+Forwarded: no
+Last-Update: 2024-04-19
+---
+--- chmlib-0.40a.orig/src/chm_http.c
 chmlib-0.40a/src/chm_http.c
+@@ -34,6 +34,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #if __sun || __sgi
+ #include 
+ #define strrchr rindex
+@@ -43,6 +44,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ /* threading includes */
+ #include 
+--- chmlib-0.40a.orig/src/chm_lib.c
 chmlib-0.40a/src/chm_lib.c
+@@ -86,7 +86,9 @@
+ #include 
+ /* #include  */
+ #endif
+-
++#ifdef _LARGEFILE_SOURCE
++#define pread64 pread
++#endif
+ /* includes/defines for threading, if using them */
+ #ifdef CHM_MT
+ #ifdef WIN32
diff -Nru chmlib-0.40a/debian/patches/series chmlib-0.40a/debian/patches/series
--- chmlib-0.40a/debian/patches/series  1969-12-31 17:00:00.0 -0700
+++ chmlib-0.40a/debian/patches/series  2024-04-19 20:25:29.0 -0600
@@ -0,0 +1 @@
+implicit-declarations.patch


Bug#1037699: intel-mediasdk: ftbfs with GCC-13

2024-04-19 Thread Zixing Liu
Package: intel-mediasdk
Followup-For: Bug #1037699
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/fix-missing-includes.patch: Add missing header
includes. (LP: #2062948).


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-28-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru intel-mediasdk-22.5.4/debian/patches/fix-missing-includes.patch 
intel-mediasdk-22.5.4/debian/patches/fix-missing-includes.patch
--- intel-mediasdk-22.5.4/debian/patches/fix-missing-includes.patch 
1969-12-31 17:00:00.0 -0700
+++ intel-mediasdk-22.5.4/debian/patches/fix-missing-includes.patch 
2024-04-19 21:28:34.0 -0600
@@ -0,0 +1,18 @@
+Description: Add missing header includes
+Author: Zixing Liu 
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1037699
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/2062948
+Forwarded: no
+Last-Update: 2024-04-19
+---
+--- intel-mediasdk-22.5.4.orig/api/mfx_dispatch/linux/mfxparser.cpp
 intel-mediasdk-22.5.4/api/mfx_dispatch/linux/mfxparser.cpp
+@@ -22,7 +22,7 @@
+ #include 
+ #include 
+ #include 
+-
++#include 
+ #include 
+ 
+ #include "mfxloader.h"
diff -Nru intel-mediasdk-22.5.4/debian/patches/series 
intel-mediasdk-22.5.4/debian/patches/series
--- intel-mediasdk-22.5.4/debian/patches/series 2022-10-18 05:16:05.0 
-0600
+++ intel-mediasdk-22.5.4/debian/patches/series 2024-04-19 21:13:23.0 
-0600
@@ -1 +1,2 @@
 #placeholder
+fix-missing-includes.patch


Bug#1065797: st: FTBFS on arm{el,hf}: res.c:115:12: error: implicit declaration of function ‘_getshort’; did you mean ‘__putshort’? [-Werror=implicit-function-declaration]

2024-04-15 Thread Zixing Liu
Package: st
Followup-For: Bug #1065797
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/02-implicit-declarations.patch: Fix an improper macro
feature check.  (Closes #1065797, LP: #2060973).
  * debian/patches/1032955_riscv_support.patch: Add support for RISC-V
CPU.  Thanks to Steven Liu . (LP: #2061639).


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-27-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru st-1.9/debian/patches/02-implicit-declarations.patch 
st-1.9/debian/patches/02-implicit-declarations.patch
--- st-1.9/debian/patches/02-implicit-declarations.patch1969-12-31 
17:00:00.0 -0700
+++ st-1.9/debian/patches/02-implicit-declarations.patch2024-04-15 
10:06:57.0 -0600
@@ -0,0 +1,21 @@
+Description: Fix an improper macro feature check
+ This resolves the implicit declaration error on armhf
+Author: Zixing Liu 
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065797
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/st/+bug/2060973
+Forwarded: no
+Last-Update: 2024-04-15
+---
+Index: st/examples/res.c
+===
+--- st.orig/examples/res.c
 st/examples/res.c
+@@ -82,7 +82,7 @@
+ #endif
+ 
+ /* New in Solaris 7 */
+-#if !defined(_getshort) && defined(ns_get16)
++#if !defined(_getshort) && defined(NS_GET16)
+ #define _getshort(cp) ns_get16(cp)
+ #endif
+ 
diff -Nru st-1.9/debian/patches/1032955_riscv_support.patch 
st-1.9/debian/patches/1032955_riscv_support.patch
--- st-1.9/debian/patches/1032955_riscv_support.patch   1969-12-31 
17:00:00.0 -0700
+++ st-1.9/debian/patches/1032955_riscv_support.patch   2024-04-15 
10:06:57.0 -0600
@@ -0,0 +1,111 @@
+Description: Add support for RISC-V CPU
+Author: Steven Liu 
+Origin: 
https://github.com/ossrs/state-threads/commit/c865500b8c1f4821cc77627094c1a30fef403dbb
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032955
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/st/+bug/2061639
+Applied-Upstream: 
https://github.com/ossrs/state-threads/commit/c865500b8c1f4821cc77627094c1a30fef403dbb
+Reviewed-by: Zixing Liu 
+Last-Update: 2022-07-20
+---
+Index: st-1.9/md.S
+===
+--- st-1.9.orig/md.S
 st-1.9/md.S
+@@ -431,5 +431,81 @@ _st_md_cxt_restore:
+ 
+ //
+ 
++#elif defined(__riscv)
++
++//
++/*
++ * Internal __jmp_buf layout
++ * riscv-asm: 
https://github.com/riscv/riscv-asm-manual/blob/master/riscv-asm.md
++ */
++#define JB_SP  0/* A0, SP, Stack pointer */
++#define JB_RA  1/* RA, Return address */
++#define JB_FP  2/* FP/S0 Frame pointer */
++#define JB_S1  3/* S1 Saved register*/
++#define JB_S2  4/* S2-S11,  Saved register */
++#define JB_S3  5/* S2-S11,  Saved register */
++#define JB_S4  6/* S2-S11,  Saved register */
++#define JB_S5  7/* S2-S11,  Saved register */
++#define JB_S6  8/* S2-S11,  Saved register */
++#define JB_S7  9/* S2-S11,  Saved register */
++#define JB_S8  10/* S2-S11,  Saved register */
++#define JB_S9  11   /* S2-S11,  Saved register */
++#define JB_S10 12   /* S2-S11,  Saved register */
++#define JB_S11 13   /* S2-S11,  Saved register */
++
++
++  .file "md.S"
++  .text
++
++  /* _st_md_cxt_save(__jmp_buf env) */ /* The env is $a0, 
https://en.wikipedia.org/wiki/RISC-V#Register_sets */
++  .globl _st_md_cxt_save
++  .type _st_md_cxt_save, %function
++  .align 2
++_st_md_cxt_save:
++  sdsp,  JB_SP  * 8(a0)
++  sdra,  JB_RA  * 8(a0)
++  sds0,  JB_FP  * 8(a0)
++  sds1,  JB_S1  * 8(a0)
++  sds2,  JB_S2  * 8(a0)
++  sds3,  JB_S3  * 8(a0)
++  sds4,  JB_S4  * 8(a0)
++  sds5,  JB_S5  * 8(a0)
++  sds6,  JB_S6  * 8(a0)
++  sds7,  JB_S7  * 8(a0)
++  sds8,  JB_S8  * 8(a0)
++  sds9,  JB_S9  * 8(a0)
++  sds10, JB_S10 * 8(a0)
++  sds11, JB_S11 * 8(a0)
++  lia0,  0
++  jrra
++  .size _st_md_c

Bug#1067618: FTBFS: error: implicit declaration of function 'yyerror'; did you mean 'yyerrok'? [-Werror=implicit-function-declaration]

2024-04-15 Thread Zixing Liu
Package: whitedune
Followup-For: Bug #1067618
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/implicit-declarations.patch: Add missing includes and
function prototypes.  (LP: #2061038).


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-27-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru whitedune-0.30.10/debian/patches/implicit-declarations.patch 
whitedune-0.30.10/debian/patches/implicit-declarations.patch
--- whitedune-0.30.10/debian/patches/implicit-declarations.patch
1969-12-31 17:00:00.0 -0700
+++ whitedune-0.30.10/debian/patches/implicit-declarations.patch
2024-04-15 11:23:06.0 -0600
@@ -0,0 +1,60 @@
+Description: Add missing includes and function prototypes
+ This fixes FTBFS on armhf
+Author: Zixing Liu 
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067618
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/whitedune/+bug/2061038
+Forwarded: no
+Last-Update: 2024-04-15
+---
+Index: whitedune/src/SDLjoystick/SDL_joystick_c.h
+===
+--- whitedune.orig/src/SDLjoystick/SDL_joystick_c.h
 whitedune/src/SDLjoystick/SDL_joystick_c.h
+@@ -2,3 +2,11 @@
+  * This Makefile is free software; the Free Software Foundation
+  * gives unlimited permission to copy, distribute and modify it.
+  */
++extern int SDL_PrivateJoystickButton(SDL_Joystick *joystick,
++ Uint8 button, Uint8 state);
++extern int SDL_PrivateJoystickAxis(SDL_Joystick *joystick,
++   Uint8 axis, Sint16 value);
++extern int SDL_PrivateJoystickBall(SDL_Joystick *joystick,
++   Uint8 ball, Sint16 xrel, Sint16 yrel);
++extern int SDL_PrivateJoystickHat(SDL_Joystick *joystick,
++  Uint8 hat, Uint8 value);
+Index: whitedune/src/swt/rc/rclex.l
+===
+--- whitedune.orig/src/swt/rc/rclex.l
 whitedune/src/swt/rc/rclex.l
+@@ -28,6 +28,7 @@
+ #include 
+ 
+ #include 
++#include 
+ #include "y.tab.h"
+ #include "rc.h"
+ 
+Index: whitedune/src/swt/rc/rcparse.y
+===
+--- whitedune.orig/src/swt/rc/rcparse.y
 whitedune/src/swt/rc/rcparse.y
+@@ -38,6 +38,7 @@ static RCNode *append(RCNode *node1, RCN
+ static RCBitmap *newBitmap(int id, const char *filename);
+ static void addAccelerator(int key, int modifiers, int command);
+ static int getVirtkey(const char *str);
++int yyerror(const char *s);
+ 
+ RCBitmap **bitmaps = NULL;
+ RCNode **nodes = NULL;
+Index: whitedune/src/pngLoad.c
+===
+--- whitedune.orig/src/pngLoad.c
 whitedune/src/pngLoad.c
+@@ -20,6 +20,7 @@
+ 
+ #include 
+ #include 
++#include 
+ 
+ #include "config.h"
+ 
diff -Nru whitedune-0.30.10/debian/patches/series 
whitedune-0.30.10/debian/patches/series
--- whitedune-0.30.10/debian/patches/series 2019-02-12 14:32:01.0 
-0700
+++ whitedune-0.30.10/debian/patches/series 2024-04-15 11:20:26.0 
-0600
@@ -1,3 +1,4 @@
 libxp-configure.patch
 png1.5.patch
 avoid-grep-binary.patch
+implicit-declarations.patch


Bug#1066247: uhub: FTBFS: adcclient.c:178:33: error: implicit declaration of function ‘ADC_client_connect_internal’; did you mean ‘ADC_client_connect’? [-Werror=implicit-function-declaration]

2024-04-15 Thread Zixing Liu
Package: uhub
Followup-For: Bug #1066247
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/implicit-declarations.patch: Add missing function
prototypes.  (LP: #2061039).
  * debian/patches/riscv64-fix-ftbfs.patch: Add RISC-V architecture to
CPU list.  Thanks to Eric Long .  (LP: #2061039).


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-27-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru uhub-0.4.1/debian/patches/implicit-declarations.patch 
uhub-0.4.1/debian/patches/implicit-declarations.patch
--- uhub-0.4.1/debian/patches/implicit-declarations.patch   1969-12-31 
17:00:00.0 -0700
+++ uhub-0.4.1/debian/patches/implicit-declarations.patch   2024-04-15 
12:08:31.0 -0600
@@ -0,0 +1,20 @@
+Description: Add missing function prototypes
+ This fixes FTBFS on armhf
+Author: Zixing Liu 
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066247
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/uhub/+bug/2061039
+Forwarded: no
+Last-Update: 2024-04-15
+---
+Index: uhub/src/tools/adcclient.c
+===
+--- uhub.orig/src/tools/adcclient.c
 uhub/src/tools/adcclient.c
+@@ -88,6 +88,7 @@ static void ADC_client_on_login(struct A
+ static int ADC_client_parse_address(struct ADC_client* client, const char* 
arg);
+ static int ADC_client_on_recv_line(struct ADC_client* client, const char* 
line, size_t length);
+ static int ADC_client_send_queue(struct ADC_client* client);
++int ADC_client_connect_internal(struct ADC_client* client);
+ 
+ static void ADC_client_debug(struct ADC_client* client, const char* format, 
...)
+ {
diff -Nru uhub-0.4.1/debian/patches/riscv64-fix-ftbfs.patch 
uhub-0.4.1/debian/patches/riscv64-fix-ftbfs.patch
--- uhub-0.4.1/debian/patches/riscv64-fix-ftbfs.patch   1969-12-31 
17:00:00.0 -0700
+++ uhub-0.4.1/debian/patches/riscv64-fix-ftbfs.patch   2024-04-15 
12:09:00.0 -0600
@@ -0,0 +1,22 @@
+Description: Add RISC-V architecture to CPU list
+Author: Eric Long 
+Origin: 
https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1020965;filename=riscv64-fix-ftbfs.patch;msg=5
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1020965
+Bug-Ubuntu: https://bugs.launchpad.net/debian/+source/uhub/+bug/2061039
+Forwarded: no
+Reviewed-by: Zixing Liu 
+Last-Update: 2022-09-30
+---
+--- a/src/system.h
 b/src/system.h
+@@ -242,6 +242,10 @@
+ #define CPUINFO "s390"
+ #endif
+ 
++#if defined(__riscv)
++#define CPUINFO "RISC-V"
++#endif
++
+ /* Misc */
+ #ifdef MSG_NOSIGNAL
+ #define UHUB_SEND_SIGNAL MSG_NOSIGNAL
diff -Nru uhub-0.4.1/debian/patches/series uhub-0.4.1/debian/patches/series
--- uhub-0.4.1/debian/patches/series2022-09-12 03:10:42.0 -0600
+++ uhub-0.4.1/debian/patches/series2024-04-15 12:09:00.0 -0600
@@ -1,3 +1,5 @@
 fix-build-on-hurd-i386
 openssl1.1.patch
 arm64-fix-ftbfs.patch
+implicit-declarations.patch
+riscv64-fix-ftbfs.patch


Bug#1066484: tcpxtract: FTBFS: confy.c:494:16: error: implicit declaration of function ‘yylex’ [-Werror=implicit-function-declaration]

2024-04-15 Thread Zixing Liu
Package: tcpxtract
Followup-For: Bug #1066484
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/70_fix-implicit-declarations.patch: Add missing
includes and function prototypes.  Closes #1066484, LP: #2061589.


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-27-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru tcpxtract-1.0.1/debian/patches/70_fix-implicit-declarations.patch 
tcpxtract-1.0.1/debian/patches/70_fix-implicit-declarations.patch
--- tcpxtract-1.0.1/debian/patches/70_fix-implicit-declarations.patch   
1969-12-31 17:00:00.0 -0700
+++ tcpxtract-1.0.1/debian/patches/70_fix-implicit-declarations.patch   
2024-04-15 10:41:14.0 -0600
@@ -0,0 +1,57 @@
+Description: Add missing includes and function prototypes
+ This fixes the FTBFS on armhf
+Author: Zixing Liu 
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066484
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/2061589
+Forwarded: no
+Last-Update: 2024-04-15
+---
+Index: tcpxtract/conf.h
+===
+--- tcpxtract.orig/conf.h
 tcpxtract/conf.h
+@@ -24,5 +24,8 @@
+ #define CONF_H
+ 
+ extern void config_type(char *, char *, char *, char *);
++int yyparse (void);
++int yyerror(char *s);
++int yylex (void);
+ 
+ #endif /* CONF_H */
+Index: tcpxtract/confl.l
+===
+--- tcpxtract.orig/confl.l
 tcpxtract/confl.l
+@@ -20,6 +20,7 @@
+Tcpxtract, a sniffer that extracts files based on headers
+by Nick Harbour
+ */
++#include 
+ #include "confy.h"
+ %}
+ 
+Index: tcpxtract/confy.y
+===
+--- tcpxtract.orig/confy.y
 tcpxtract/confy.y
+@@ -23,6 +23,7 @@
+ 
+ #include 
+ #include "conf.h"
++#include "confy.h"
+ %}
+ 
+ %union {
+Index: tcpxtract/tcpxtract.c
+===
+--- tcpxtract.orig/tcpxtract.c
 tcpxtract/tcpxtract.c
+@@ -44,6 +44,7 @@
+ 
+ #include "sessionlist.h"
+ #include "util.h"
++#include "conf.h"
+ #include "confy.h"
+ #include "search.h"
+ 
diff -Nru tcpxtract-1.0.1/debian/patches/series 
tcpxtract-1.0.1/debian/patches/series
--- tcpxtract-1.0.1/debian/patches/series   2023-02-06 05:27:00.0 
-0700
+++ tcpxtract-1.0.1/debian/patches/series   2024-04-15 10:38:13.0 
-0600
@@ -4,3 +4,4 @@
 40_fix-png-header-bytes.patch
 50_fix-spelling-binary.patch
 60_libfl.patch
+70_fix-implicit-declarations.patch


Bug#1065944: squeak-plugins-scratch: FTBFS on arm{el,hf}: WeDoLinux.c:175:9: error: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Werror=implicit-function-declaration]

2024-04-15 Thread Zixing Liu
Package: squeak-plugins-scratch
Followup-For: Bug #1065944
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/add-missing-include.patch: Add a missing header to
fix build on armhf.  (Closes #1065944, LP: #2061587).
  * debian/control: Add quilt to B-D as this is previously missing.


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-27-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru squeak-plugins-scratch-1.4.0.2~svn.r83/debian/control 
squeak-plugins-scratch-1.4.0.2~svn.r83/debian/control
--- squeak-plugins-scratch-1.4.0.2~svn.r83/debian/control   2024-03-08 
00:00:18.0 -0700
+++ squeak-plugins-scratch-1.4.0.2~svn.r83/debian/control   2024-04-15 
10:23:53.0 -0600
@@ -1,8 +1,8 @@
 Source: squeak-plugins-scratch
 Section: devel
 Priority: optional
 Maintainer: Miriam Ruiz 
-Build-Depends: debhelper, dh-buildinfo,
+Build-Depends: debhelper, dh-buildinfo, quilt,
  libcairo2-dev (>= 1.8.6), libpango1.0-dev (>= 1.24.1),
  libglib2.0-dev (>= 2.20.1), libv4l-dev (>= 0.5.8)
 Standards-Version: 4.2.1.4
diff -Nru 
squeak-plugins-scratch-1.4.0.2~svn.r83/debian/patches/add-missing-include.patch 
squeak-plugins-scratch-1.4.0.2~svn.r83/debian/patches/add-missing-include.patch
--- 
squeak-plugins-scratch-1.4.0.2~svn.r83/debian/patches/add-missing-include.patch 
1969-12-31 17:00:00.0 -0700
+++ 
squeak-plugins-scratch-1.4.0.2~svn.r83/debian/patches/add-missing-include.patch 
2024-04-15 10:23:10.0 -0600
@@ -0,0 +1,19 @@
+Description: Add a missing header to fix build on armhf
+Author: Zixing Liu 
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065944
+Bug-Ubuntu: 
https://bugs.launchpad.net/ubuntu/+source/squeak-plugins-scratch/+bug/2061587
+Forwarded: no
+Last-Update: 2024-04-15
+---
+Index: squeak-plugins-scratch/wedo/WeDoLinux.c
+===
+--- squeak-plugins-scratch.orig/wedo/WeDoLinux.c
 squeak-plugins-scratch/wedo/WeDoLinux.c
+@@ -37,6 +37,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #include 
+ 
+ 
diff -Nru squeak-plugins-scratch-1.4.0.2~svn.r83/debian/patches/series 
squeak-plugins-scratch-1.4.0.2~svn.r83/debian/patches/series
--- squeak-plugins-scratch-1.4.0.2~svn.r83/debian/patches/series
1969-12-31 17:00:00.0 -0700
+++ squeak-plugins-scratch-1.4.0.2~svn.r83/debian/patches/series
2024-04-15 10:17:28.0 -0600
@@ -0,0 +1 @@
+add-missing-include.patch


Bug#1066483: scrollz: FTBFS: configure: error: Fatal: You must get working getaddrinfo() function.

2024-04-12 Thread Zixing Liu
Package: scrollz
Followup-For: Bug #1066483
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/gcc13.patch: Fix build with GCC 13 and add missing
includes.  Closes LP: #2061184.


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-26-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru scrollz-2.2.3/debian/patches/gcc13.patch 
scrollz-2.2.3/debian/patches/gcc13.patch
--- scrollz-2.2.3/debian/patches/gcc13.patch1969-12-31 17:00:00.0 
-0700
+++ scrollz-2.2.3/debian/patches/gcc13.patch2024-04-12 16:18:41.0 
-0600
@@ -0,0 +1,131 @@
+Description: Fix build with GCC 13 and add missing includes
+ Also included missing function prototypes
+Author: Zixing Liu 
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066483
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/scrollz/+bug/2061184
+Forwarded: no
+Last-Update: 2024-04-12
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: scrollz/configure
+===
+--- scrollz.orig/configure
 scrollz/configure
+@@ -2317,6 +2317,7 @@ else
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char snprintf(); below.  */
+ #include 
++#include 
+ /* Override any gcc2 internal prototype to avoid an error.  */
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply.  */
+@@ -2368,6 +2369,7 @@ else
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char vsnprintf(); below.  */
+ #include 
++#include 
+ /* Override any gcc2 internal prototype to avoid an error.  */
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply.  */
+@@ -2536,6 +2538,7 @@ else
+ #line 2537 "configure"
+ #include "confdefs.h"
+ #include 
++#include 
+ #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+ #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+@@ -5472,6 +5475,7 @@ else
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ main()
+ {
+Index: scrollz/include/edit.h
+===
+--- scrollz.orig/include/edit.h
 scrollz/include/edit.h
+@@ -72,7 +72,7 @@ extern   u_char  *recv_nick;
+   voidcommand_completion _((u_int, char *));
+   voide_quit _((char *, char *, char *));
+   int check_wait_command _((char *));
+-  
++  int  GrabURL _((char *, char *, char *, char *));
+ #define AWAY_ONE 0
+ #define AWAY_ALL 1
+ 
+Index: scrollz/include/trace.h
+===
+--- scrollz.orig/include/trace.h
 scrollz/include/trace.h
+@@ -29,4 +29,6 @@ void TraceChannelInfo _((int indent, Cha
+ void TraceNickListInfo _((int indent, NickList *nicks));
+ void TraceWindowInfo _((int indent, Window *window));
+ 
++void Trace(long area, char *format, ...);
++
+ #endif
+Index: scrollz/source/edit.c
+===
+--- scrollz.orig/source/edit.c
 scrollz/source/edit.c
+@@ -101,6 +101,7 @@ static voidsend_action _((char *, char
+ 
+ TimerList *PendingTimers = (TimerList *) 0;
+ 
++extern void PopLine(void);
+ /* used with input_move_cursor */
+ #define RIGHT 1
+ #define LEFT 0
+Index: scrollz/source/edit2.c
+===
+--- scrollz.orig/source/edit2.c
 scrollz/source/edit2.c
+@@ -195,6 +195,8 @@ static char *celeawaystr=(char *) 0;
+ static time_t CeleAwayTime=0;
+ #endif
+ extern char *CelerityNtfy;
++extern int  DecryptMessage _((char *, char *));
++extern int  EncryptMessage _((char *, char *));
+ 
+ /* Kicks all unopped people from current channel */
+ void LameKick(command,args,subargs)
+Index: scrollz/source/edit3.c
+===
+--- scrollz.orig/source/edit3.c
 scrollz/source/edit3.c
+@@ -96,6 +96,7 @@ extern NickList * find_in_hash _((Channe
+ 
+ extern void dcc_chat _((char *));
+ extern void dcc_close _((char *));
++extern int  DecryptString _((ch

Bug#1066529: samhain: FTBFS: x_sh_prelude.c:840:42: error: implicit declaration of function ‘isblank’ [-Werror=implicit-function-declaration]

2024-04-12 Thread Zixing Liu
Package: samhain
Followup-For: Bug #1066529
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/gcc13.patch: Add missing includes and use va_copy
compiler builtin.  Closes LP: #2061192.


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-26-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru samhain-4.1.4/debian/patches/gcc13.patch 
samhain-4.1.4/debian/patches/gcc13.patch
--- samhain-4.1.4/debian/patches/gcc13.patch1969-12-31 17:00:00.0 
-0700
+++ samhain-4.1.4/debian/patches/gcc13.patch2024-04-12 15:20:21.0 
-0600
@@ -0,0 +1,33 @@
+Description: Add missing includes and use va_copy compiler builtin
+Author: Zixing Liu 
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066529
+Bug-Ubuntu: https://bugs.launchpad.net/debian/+source/samhain/+bug/2061192
+Forwarded: no
+Last-Update: 2024-04-12
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: samhain/src/sh_error.c
+===
+--- samhain.orig/src/sh_error.c
 samhain/src/sh_error.c
+@@ -1584,7 +1584,7 @@ int sh_error_ehead (/*@null@*/const char
+ #if defined(__GNUC__) && defined(__PPC__) && (defined(_CALL_SYSV) || 
defined(_WIN32))
+ #define VA_COPY(ap1, ap2) (*(ap1) = *(ap2))
+ #elif defined(VA_COPY_AS_ARRAY)
+-#define VA_COPY(ap1, ap2) memmove ((ap1), (ap2), sizeof (va_list))
++#define VA_COPY(ap1, ap2) va_copy((ap1), (ap2))
+ #else /* va_list is a pointer */
+ #define VA_COPY(ap1, ap2) ((ap1) = (ap2))
+ #endif
+Index: samhain/src/sh_prelude.c
+===
+--- samhain.orig/src/sh_prelude.c
 samhain/src/sh_prelude.c
+@@ -35,6 +35,7 @@
+ 
+ #include "config_xor.h"
+ 
++#include 
+ #include 
+ #include 
+ #include 
diff -Nru samhain-4.1.4/debian/patches/series 
samhain-4.1.4/debian/patches/series
--- samhain-4.1.4/debian/patches/series 2023-08-15 14:46:14.0 -0600
+++ samhain-4.1.4/debian/patches/series 2024-04-12 15:17:16.0 -0600
@@ -1,2 +1,3 @@
 debian.patch
 configure.patch
+gcc13.patch


Bug#1066629: ucspi-tcp: FTBFS: tcpserver.c:143:29: error: implicit declaration of function ‘getpid’ [-Werror=implicit-function-declaration]

2024-04-12 Thread Zixing Liu
Package: ucspi-tcp
Followup-For: Bug #1066629
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/0006-implicit-declarations.patch: Add missing
includes and prototypes.  Closes LP: #2061188.
  * debian/ipv6-support.patch: Refresh deferred patch.


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-26-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru ucspi-tcp-0.88/debian/ipv6-support.patch 
ucspi-tcp-0.88/debian/ipv6-support.patch
--- ucspi-tcp-0.88/debian/ipv6-support.patch2024-02-27 02:57:42.0 
-0700
+++ ucspi-tcp-0.88/debian/ipv6-support.patch2024-04-12 14:19:46.0 
-0600
@@ -741,7 +741,7 @@
 index 0948b1a..f06c5a8 100644
 --- a/dns.h
 +++ b/dns.h
-@@ -34,51 +34,60 @@ struct dns_transmit {
+@@ -34,51 +34,61 @@ struct dns_transmit {
unsigned int curserver;
struct taia deadline;
unsigned int pos;
@@ -812,6 +812,7 @@
 -extern int dns_mx_packet(stralloc *,char *,unsigned int);
 -extern int dns_mx(stralloc *,stralloc *);
 +extern int dns_name4(stralloc *,const char *);
++extern int dns_name6(stralloc *,char *);
 +extern int dns_txt_packet(stralloc *,const char *,unsigned int);
 +extern int dns_txt(stralloc *,const stralloc *);
 +extern int dns_mx_packet(stralloc *,const char *,unsigned int);
@@ -1330,11 +1331,6 @@
 index b9892b4..2158ed4 100644
 --- a/dns_random.c
 +++ b/dns_random.c
-@@ -1,3 +1,4 @@
-+#include 
- #include "dns.h"
- #include "taia.h"
- #include "uint32.h"
 @@ -29,7 +30,7 @@ static void surf(void)
}
  }
@@ -1433,8 +1429,8 @@
 index 6f215ac..b0c8e6d 100644
 --- a/dns_rcrw.c
 +++ b/dns_rcrw.c
-@@ -1,16 +1,17 @@
-+#include 
+@@ -1,16 +1,16 @@
+ #include 
  #include "taia.h"
 -#include "env.h"
  #include "byte.h"
@@ -1511,17 +1507,7 @@
 index df12826..9511511 100644
 --- a/dns_transmit.c
 +++ b/dns_transmit.c
-@@ -1,12 +1,15 @@
-+#include 
-+#include 
-+#include 
-+#include 
- #include "socket.h"
--#include "alloc.h"
--#include "error.h"
-+#include 
- #include "byte.h"
--#include "readwrite.h"
+@@ -7,7 +7,8 @@
  #include "uint16.h"
  #include "dns.h"
 +#include "ip6.h"
@@ -1985,7 +1971,7 @@
 +#include "byte.h"
 +
 +extern unsigned int scan_ip6(const char *src,char *ip);
-+extern unsigned int fmt_ip6(char *dest,const char *ip);
++extern unsigned int ip6_fmt(char *dest,char *ip);
 +
 +extern unsigned int scan_ip6_flat(const char *src,char *);
 +extern unsigned int fmt_ip6_flat(char *dest,const char *);
@@ -2357,7 +2343,8 @@
 index 000..cf3b7c1
 --- /dev/null
 +++ b/remoteinfo6.c
-@@ -0,0 +1,98 @@
+@@ -0,0 +1,99 @@
++#include 
 +#include "fmt.h"
 +#include "buffer.h"
 +#include "socket.h"
@@ -3065,7 +3052,8 @@
 index 000..74099e2
 --- /dev/null
 +++ b/socket_tcp6.c
-@@ -0,0 +1,44 @@
+@@ -0,0 +1,45 @@
++#include 
 +#include 
 +#include 
 +#include 
diff -Nru ucspi-tcp-0.88/debian/patches/0006-implicit-declarations.patch 
ucspi-tcp-0.88/debian/patches/0006-implicit-declarations.patch
--- ucspi-tcp-0.88/debian/patches/0006-implicit-declarations.patch  
1969-12-31 17:00:00.0 -0700
+++ ucspi-tcp-0.88/debian/patches/0006-implicit-declarations.patch  
2024-04-12 14:33:32.0 -0600
@@ -0,0 +1,356 @@
+Description: Add missing includes and prototypes
+Author: Zixing Liu 
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066629
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/ucspi-tcp/+bug/2061188
+Forwarded: no
+Last-Update: 2024-04-12
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: ucspi-tcp/dns_random.c
+===
+--- ucspi-tcp.orig/dns_random.c
 ucspi-tcp/dns_random.c
+@@ -1,3 +1,4 @@
++#include 
+ #include "dns.h"
+ #include "taia.h"
+ #include "uint32.h"
+Index: ucspi-tcp/dns_rcrw.c
+===
+--- ucspi-tcp.orig/dns_rcrw.c
 ucspi-tcp/dns_rcrw.c
+@@ -1,3 +1,4 @@
++#include 
+ #include "taia.h"
+ #include "env.h"
+ #include "byte.h"
+Index: ucspi-tcp/remoteinfo.c
+===
+--- ucspi-tcp.orig/remoteinfo.c
 ucspi

Bug#1067066: ruby-fusefs: fusefs_fuse.c:31:10: error: implicit declaration of function ‘fuse_chan_fd’ [-Werror=implicit-function-declaration]

2024-04-11 Thread Zixing Liu
Package: ruby-fusefs
Followup-For: Bug #1067066
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/fix-missing-includes.patch: Add missing includes.
Closes LP: #2061037.


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-26-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru ruby-fusefs-0.7.0/debian/patches/fix-missing-includes.patch 
ruby-fusefs-0.7.0/debian/patches/fix-missing-includes.patch
--- ruby-fusefs-0.7.0/debian/patches/fix-missing-includes.patch 1969-12-31 
17:00:00.0 -0700
+++ ruby-fusefs-0.7.0/debian/patches/fix-missing-includes.patch 2024-04-11 
16:38:56.0 -0600
@@ -0,0 +1,19 @@
+Description: Add missing includes
+Author: Zixing Liu 
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067066
+Bug-Ubuntu: https://bugs.launchpad.net/debian/+source/ruby-fusefs/+bug/2061037
+Forwarded: no
+Last-Update: 2024-04-11
+---
+Index: ruby-fusefs/ext/fusefs_fuse.c
+===
+--- ruby-fusefs.orig/ext/fusefs_fuse.c
 ruby-fusefs/ext/fusefs_fuse.c
+@@ -7,6 +7,7 @@
+ #define _FILE_OFFSET_BITS 64
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 
diff -Nru ruby-fusefs-0.7.0/debian/patches/series 
ruby-fusefs-0.7.0/debian/patches/series
--- ruby-fusefs-0.7.0/debian/patches/series 2022-06-30 17:15:19.0 
-0600
+++ ruby-fusefs-0.7.0/debian/patches/series 2024-04-11 16:35:51.0 
-0600
@@ -1,2 +1,3 @@
 port-to-newer-ruby.patch
 fix-dynamic-library-load-path.patch
+fix-missing-includes.patch


Bug#1066653: prime-phylo: FTBFS: gb.tab.c:1096:16: error: implicit declaration of function ‘yylex’ [-Werror=implicit-function-declaration]

2024-04-11 Thread Zixing Liu
Package: prime-phylo
Followup-For: Bug #1066653
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/fix-ftbfs-with-gcc13.patch: Fix missing headers and
missing prototypes.  Closes LP: #2061032.


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-26-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru prime-phylo-1.0.11/debian/patches/fix-ftbfs-with-gcc13.patch 
prime-phylo-1.0.11/debian/patches/fix-ftbfs-with-gcc13.patch
--- prime-phylo-1.0.11/debian/patches/fix-ftbfs-with-gcc13.patch
1969-12-31 17:00:00.0 -0700
+++ prime-phylo-1.0.11/debian/patches/fix-ftbfs-with-gcc13.patch
2024-04-11 16:13:25.0 -0600
@@ -0,0 +1,54 @@
+Description: Fix missing headers and missing prototypes
+Author: Zixing Liu 
+Bug-Ubuntu: https://bugs.launchpad.net/debian/+source/prime-phylo/+bug/2061032
+Forwarded: no
+Last-Update: 2024-04-11
+Index: prime-phylo/src/cxx/libraries/prime/NHXparse.y
+===
+--- prime-phylo.orig/src/cxx/libraries/prime/NHXparse.y
 prime-phylo/src/cxx/libraries/prime/NHXparse.y
+@@ -2,6 +2,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #include "NHXnode.h"
+ #include "NHXtree.h"
+ #include "NHXannotation.h"
+@@ -14,7 +15,9 @@
+ /* #define YYERROR_VERBOSE */ 
+ 
+ /* Here comes some C declarations */
+-
++extern int yylex (void);
++extern void read_from_string(char *str);
++extern void close_string_buffer();
+ extern FILE *yytree_in;
+ extern char *yytree_text;
+ extern unsigned int lineno; /* Current line number in input file */
+Index: prime-phylo/src/cxx/libraries/sfile/gb.y
+===
+--- prime-phylo.orig/src/cxx/libraries/sfile/gb.y
 prime-phylo/src/cxx/libraries/sfile/gb.y
+@@ -23,7 +23,8 @@
+ #include "entry.h"
+ #include "sfile.h"
+ 
+-
++extern int yylex (void);
++unsigned linenumber();
+ static int yyerror();
+ 
+ #define YYDEBUG 1
+Index: prime-phylo/src/cxx/libraries/sfile/gbread.c
+===
+--- prime-phylo.orig/src/cxx/libraries/sfile/gbread.c
 prime-phylo/src/cxx/libraries/sfile/gbread.c
+@@ -3,6 +3,7 @@
+ 
+ extern int yydebug;
+ 
++#include 
+ #include "sfile.h"
+ #include "gb.tab.h"
+  
diff -Nru prime-phylo-1.0.11/debian/patches/series 
prime-phylo-1.0.11/debian/patches/series
--- prime-phylo-1.0.11/debian/patches/series2021-05-20 05:51:42.0 
-0600
+++ prime-phylo-1.0.11/debian/patches/series2024-04-11 16:10:29.0 
-0600
@@ -3,3 +3,4 @@
 fix-gcc-8.patch
 0003-Fix-build-with-Boost-1.67.patch
 0004-fix-gcc10-build.patch
+fix-ftbfs-with-gcc13.patch


Bug#1066378: pike8.0: FTBFS: zlibmod.c:1235:5: error: implicit declaration of function ‘pop_n_elems’ [-Werror=implicit-function-declaration]

2024-04-11 Thread Zixing Liu
Package: pike8.0
Followup-For: Bug #1066378
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

This is an update to the previous patch that contains further fixes to the
package.

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

  * debian/patches/gz_test_fix.patch: Fix zlib detection logic.
  * debian/patches/threads_undefined_var_fix.patch: Fix incorrect
variable referencing in threads.c.  Closes LP: #2061023.


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-26-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru pike8.0-8.0.1738/debian/patches/gz_test_fix.patch 
pike8.0-8.0.1738/debian/patches/gz_test_fix.patch
--- pike8.0-8.0.1738/debian/patches/gz_test_fix.patch   1969-12-31 
17:00:00.0 -0700
+++ pike8.0-8.0.1738/debian/patches/gz_test_fix.patch   2024-04-11 
14:31:45.0 -0600
@@ -0,0 +1,18 @@
+Description: Fix zlib detection logic
+ Fixes the issue where vendored zlib fails to compile on armhf
+Author: Zixing Liu 
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066378
+Bug-Ubuntu: https://bugs.launchpad.net/debian/+source/pike8.0/+bug/2061023
+Forwarded: no
+Last-Update: 2024-04-11
+--- pike8.0-8.0.1738.orig/src/modules/Gz/gz_test.c
 pike8.0-8.0.1738/src/modules/Gz/gz_test.c
+@@ -320,6 +320,8 @@ void test_sync(compr, comprLen, uncompr,
+ err = inflateSync(_stream);   /* but skip the damaged part */
+ CHECK_ERR(err, "inflateSync");
+ 
++inflateEnd(_stream);
++inflateInit(_stream);
+ err = inflate(_stream, Z_FINISH);
+ if (err != Z_DATA_ERROR) {
+ fprintf(stderr, "inflate should report DATA_ERROR\n");
diff -Nru pike8.0-8.0.1738/debian/patches/series 
pike8.0-8.0.1738/debian/patches/series
--- pike8.0-8.0.1738/debian/patches/series  2022-04-18 11:30:23.0 
-0600
+++ pike8.0-8.0.1738/debian/patches/series  2024-04-11 14:33:12.0 
-0600
@@ -13,3 +13,5 @@
 undefined_htons.patch
 bad_size_t_redef.patch
 dont_disable_debug_symbols.patch
+gz_test_fix.patch
+threads_undefined_var_fix.patch
diff -Nru pike8.0-8.0.1738/debian/patches/threads_undefined_var_fix.patch 
pike8.0-8.0.1738/debian/patches/threads_undefined_var_fix.patch
--- pike8.0-8.0.1738/debian/patches/threads_undefined_var_fix.patch 
1969-12-31 17:00:00.0 -0700
+++ pike8.0-8.0.1738/debian/patches/threads_undefined_var_fix.patch 
2024-04-11 14:33:12.0 -0600
@@ -0,0 +1,16 @@
+Description: Fix incorrect variable referencing in threads.c
+Author: Zixing Liu 
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/pike8.0/+bug/2061023
+Forwarded: no
+Last-Update: 2024-04-11
+--- pike8.0-8.0.1738.orig/src/threads.c
 pike8.0-8.0.1738/src/threads.c
+@@ -3422,7 +3422,7 @@ static TH_RETURN_TYPE farm(void *_a)
+ int current = prctl(PR_GET_DUMPABLE);
+ #endif
+ #ifdef HAVE_BROKEN_LINUX_THREAD_EUID
+-if( setegid(arg.egid) != 0 || seteuid(arg.euid) != 0 )
++if( setegid(me->egid) != 0 || seteuid(me->euid) != 0 )
+ {
+   fprintf (stderr, "%s:%d: Unexpected error from setegid(2). errno=%d\n",
+  __FILE__, __LINE__, errno);


Bug#1066378: pike8.0: FTBFS: zlibmod.c:1235:5: error: implicit declaration of function ‘pop_n_elems’ [-Werror=implicit-function-declaration]

2024-04-11 Thread Zixing Liu
Package: pike8.0
Followup-For: Bug #1066378
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/gz_test_fix.patch: Fix zlib detection logic.  Closes
LP: #2061023.


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-26-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru pike8.0-8.0.1738/debian/patches/gz_test_fix.patch 
pike8.0-8.0.1738/debian/patches/gz_test_fix.patch
--- pike8.0-8.0.1738/debian/patches/gz_test_fix.patch   1969-12-31 
17:00:00.0 -0700
+++ pike8.0-8.0.1738/debian/patches/gz_test_fix.patch   2024-04-11 
14:31:45.0 -0600
@@ -0,0 +1,18 @@
+Description: Fix zlib detection logic
+ Fixes the issue where vendored zlib fails to compile on armhf
+Author: Zixing Liu 
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066378
+Bug-Ubuntu: https://bugs.launchpad.net/debian/+source/pike8.0/+bug/2061023
+Forwarded: no
+Last-Update: 2024-04-11
+--- pike8.0-8.0.1738.orig/src/modules/Gz/gz_test.c
 pike8.0-8.0.1738/src/modules/Gz/gz_test.c
+@@ -320,6 +320,8 @@ void test_sync(compr, comprLen, uncompr,
+ err = inflateSync(_stream);   /* but skip the damaged part */
+ CHECK_ERR(err, "inflateSync");
+ 
++inflateEnd(_stream);
++inflateInit(_stream);
+ err = inflate(_stream, Z_FINISH);
+ if (err != Z_DATA_ERROR) {
+ fprintf(stderr, "inflate should report DATA_ERROR\n");
diff -Nru pike8.0-8.0.1738/debian/patches/series 
pike8.0-8.0.1738/debian/patches/series
--- pike8.0-8.0.1738/debian/patches/series  2022-04-18 11:30:23.0 
-0600
+++ pike8.0-8.0.1738/debian/patches/series  2024-04-11 14:19:11.0 
-0600
@@ -13,3 +13,4 @@
 undefined_htons.patch
 bad_size_t_redef.patch
 dont_disable_debug_symbols.patch
+gz_test_fix.patch


Bug#1066694: netdiag: FTBFS: getservent.c:121:38: error: implicit declaration of function ‘atoi’ [-Werror=implicit-function-declaration]

2024-04-10 Thread Zixing Liu
Package: netdiag
Followup-For: Bug #1066694
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/gcc13.patch: Add multiple missing headers and
function prototypes.  Closes LP: #2060901.


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-26-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -u netdiag-1.2/debian/patches/series netdiag-1.2/debian/patches/series
--- netdiag-1.2/debian/patches/series
+++ netdiag-1.2/debian/patches/series
@@ -9,3 +9,4 @@
 gcc-10.diff
 pcap_init.diff
 gcc12.patch
+gcc13.patch
only in patch2:
unchanged:
--- netdiag-1.2.orig/debian/patches/gcc13.patch
+++ netdiag-1.2/debian/patches/gcc13.patch
@@ -0,0 +1,106 @@
+Description: Add multiple missing headers and function prototypes
+Author: Zixing Liu 
+Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066694
+Bug-Ubuntu: https://bugs.launchpad.net/debian/+source/netdiag/+bug/2060901
+Forwarded: no
+Last-Update: 2024-04-10
+Index: netdiag/netwatch-1.3.1-2/netwatch.h
+===
+--- netdiag.orig/netwatch-1.3.1-2/netwatch.h
 netdiag/netwatch-1.3.1-2/netwatch.h
+@@ -38,6 +38,10 @@
+ #define SN_PROT_LOOP  164 /* Pseudo protocol for Loopback */
+ 
+ #include 
++#include 
++#include 
++#include 
++#include 
+ #include "config.h"
+ /*
+ #ifdef NETINET_SUPP_socket
+@@ -84,6 +88,11 @@ typedef unsigned short  sa_family_t;
+ 
+ 
+ #include "core.h"
++int dokeyin(int force);
++int doeth();
++int gh (int opt);
++void setuphelp();
++void uthread_wait(long usec);
+ void dispdata(int errnum);
+ void services();
+ void usage(char *arg);
+Index: netdiag/statnet-3.8/statnet.c
+===
+--- netdiag.orig/statnet-3.8/statnet.c
 netdiag/statnet-3.8/statnet.c
+@@ -7,7 +7,6 @@
+ #define MAIN_LINE 1
+ 
+ #include 
+-#include "stat.h"
+ 
+ #include "curs.h"
+ #include 
+@@ -33,6 +32,8 @@
+ #endif
+ 
+ #include 
++#include 
++#include "stat.h"
+ 
+ #define Stringify(X)  #X
+ #define Quoteify(X)   Stringify(X)
+Index: netdiag/statnet-3.8/getservent.c
+===
+--- netdiag.orig/statnet-3.8/getservent.c
 netdiag/statnet-3.8/getservent.c
+@@ -43,7 +43,7 @@ static char sccsid[] = "@(#)getservent.c
+ #endif /* LIBC_SCCS and not lint */
+ 
+ #include "inetprivate.h"
+-
++#include 
+ #define   MAXALIASES  35
+ 
+ static char SERVDB[] = _PATH_SERVICES;
+Index: netdiag/statnet-3.8/itstime.c
+===
+--- netdiag.orig/statnet-3.8/itstime.c
 netdiag/statnet-3.8/itstime.c
+@@ -8,7 +8,7 @@
+ #include "stat.h"
+ #include 
+ #include 
+-
++#include 
+ extern struct StatMemStruct *StatMem; /* pointer to shared memory segment */
+ 
+ void itstime (int errnum)
+Index: netdiag/statnet-3.8/stat.h
+===
+--- netdiag.orig/statnet-3.8/stat.h
 netdiag/statnet-3.8/stat.h
+@@ -197,7 +197,7 @@ void set_null ( struct StatMemStruct *St
+ void services ();
+ void stat_delta ( struct StatMemStruct *New, struct StatMemStruct *Prev, 
struct StatMemStruct *Delta );
+ void usage (char *arg);
+-#ifdef WINDOW
++#if CURSES_H
+ void win_show_stat( WINDOW *win, int X, int Y, int noframes, struct Tally 
*Now_ts, struct Tally *Prev_ts, struct Tally *Delta_ts, short rewrite_labels, 
short *update_labels, void *show_labels );
+ #endif
+ 
+@@ -226,10 +226,10 @@ void tally_ntoh ( int bytecode,
+ struct Tally *New_t, 
+ struct Tally *Prev_t );
+ 
+-#ifdef WINDOW
++#if CURSES_H
+ void tally_label ( struct Tally *Now_ts, WINDOW *win, int width, int height );
+ #endif
+-
++int tally (int type_wanted, struct Tally *tally);
+ 
+ /* Now some redefinitions of  stuff.  With the Berkeley notice... */
+ 


Bug#1067141: kcemu: FTBFS with -Werror=implicit-function-declaration

2024-04-10 Thread Zixing Liu
Package: kcemu
Followup-For: Bug #1067141
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * debian/patches/add-missing-includes.patch: Add missing includes.
Closes LP: #2060887.


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-26-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru kcemu-0.5.2+dfsg/debian/control kcemu-0.5.2+dfsg/debian/control
--- kcemu-0.5.2+dfsg/debian/control 2024-03-07 22:13:42.0 -0700
+++ kcemu-0.5.2+dfsg/debian/control 2024-04-10 17:17:16.0 -0600
@@ -1,8 +1,7 @@
 Source: kcemu
 Section: contrib/otherosfs
 Priority: optional
-Maintainer: Ubuntu Developers 
-XSBC-Original-Maintainer: John Paul Adrian Glaubitz 

+Maintainer: John Paul Adrian Glaubitz 
 Build-Depends: debhelper-compat (= 13), libz80ex-dev, libsdl1.2-dev, 
libsndfile-dev, libvncserver-dev, libtheora-dev,
libgtk2.0-dev, automake, autoconf, libxmu-dev, libncurses5-dev, 
netpbm, imagemagick, dh-autoreconf
 Standards-Version: 4.6.1
diff -Nru kcemu-0.5.2+dfsg/debian/patches/add-missing-includes.patch 
kcemu-0.5.2+dfsg/debian/patches/add-missing-includes.patch
--- kcemu-0.5.2+dfsg/debian/patches/add-missing-includes.patch  1969-12-31 
17:00:00.0 -0700
+++ kcemu-0.5.2+dfsg/debian/patches/add-missing-includes.patch  2024-04-10 
17:17:01.0 -0600
@@ -0,0 +1,18 @@
+Description: Add missing includes
+Author: Zixing Liu 
+Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067141
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/kcemu/+bug/2060887
+Forwarded: no
+Last-Update: 2024-04-10
+Index: kcemu/src/sys/unix/sys_socket_create.c
+===
+--- kcemu.orig/src/sys/unix/sys_socket_create.c
 kcemu/src/sys/unix/sys_socket_create.c
+@@ -23,6 +23,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #include "kc/config.h"
+ #include "sys/sysdep.h"
diff -Nru kcemu-0.5.2+dfsg/debian/patches/series 
kcemu-0.5.2+dfsg/debian/patches/series
--- kcemu-0.5.2+dfsg/debian/patches/series  1969-12-31 17:00:00.0 
-0700
+++ kcemu-0.5.2+dfsg/debian/patches/series  2024-04-10 17:06:09.0 
-0600
@@ -0,0 +1 @@
+add-missing-includes.patch


Bug#1067621: FTBFS on 32-bit time64 architectures: error: implicit declaration of function ‘gzopen64’

2024-04-10 Thread Zixing Liu
Package: berkeley-abc
Followup-For: Bug #1067621
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

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

  * Fix the build failure caused by missing function prototypes.

  * debian/patches/add-missing-include.patch: Add missing headers to
Glucose components.  Closes LP: #2060873.


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-26-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru berkeley-abc-1.01+20230625git01b1bd1+dfsg/debian/control 
berkeley-abc-1.01+20230625git01b1bd1+dfsg/debian/control
--- berkeley-abc-1.01+20230625git01b1bd1+dfsg/debian/control2024-03-31 
23:33:27.0 -0600
+++ berkeley-abc-1.01+20230625git01b1bd1+dfsg/debian/control2024-04-10 
14:45:54.0 -0600
@@ -1,8 +1,7 @@
 Source: berkeley-abc
 Section: electronics
 Priority: optional
-Maintainer: Ubuntu Developers 
-XSBC-Original-Maintainer: Debian Science Maintainers 

+Maintainer: Debian Science Maintainers 

 Uploaders: Ruben Undheim ,
Daniel Gröber 
 Build-Depends: debhelper-compat (= 13),
diff -Nru 
berkeley-abc-1.01+20230625git01b1bd1+dfsg/debian/patches/add-missing-include.patch
 
berkeley-abc-1.01+20230625git01b1bd1+dfsg/debian/patches/add-missing-include.patch
--- 
berkeley-abc-1.01+20230625git01b1bd1+dfsg/debian/patches/add-missing-include.patch
  1969-12-31 17:00:00.0 -0700
+++ 
berkeley-abc-1.01+20230625git01b1bd1+dfsg/debian/patches/add-missing-include.patch
  2024-04-10 14:45:54.0 -0600
@@ -0,0 +1,30 @@
+Description: Add missing headers to Glucose components
+Author: Zixing Liu 
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/berkeley-abc/+bug/2060873
+Forwarded: no
+Last-Update: 2024-04-10
+Index: berkeley-abc/src/sat/glucose/Glucose.cpp
+===
+--- berkeley-abc.orig/src/sat/glucose/Glucose.cpp
 berkeley-abc/src/sat/glucose/Glucose.cpp
+@@ -34,6 +34,7 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR
+ #include "sat/glucose/Constants.h"
+ #include "sat/glucose/System.h"
+ 
++#include "misc/util/abc_global.h"
+ ABC_NAMESPACE_IMPL_START
+ 
+ using namespace Gluco;
+Index: berkeley-abc/src/sat/glucose2/Glucose2.cpp
+===
+--- berkeley-abc.orig/src/sat/glucose2/Glucose2.cpp
 berkeley-abc/src/sat/glucose2/Glucose2.cpp
+@@ -34,7 +34,7 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR
+ #include "sat/glucose2/Solver.h"
+ 
+ #include "sat/glucose2/CGlucose.h"
+-
++#include "misc/util/abc_global.h"
+ ABC_NAMESPACE_IMPL_START
+ 
+ using namespace Gluco2;
diff -Nru 
berkeley-abc-1.01+20230625git01b1bd1+dfsg/debian/patches/remove_bzlib_convenience.patch
 
berkeley-abc-1.01+20230625git01b1bd1+dfsg/debian/patches/remove_bzlib_convenience.patch
--- 
berkeley-abc-1.01+20230625git01b1bd1+dfsg/debian/patches/remove_bzlib_convenience.patch
 2024-03-31 23:33:27.0 -0600
+++ 
berkeley-abc-1.01+20230625git01b1bd1+dfsg/debian/patches/remove_bzlib_convenience.patch
 2024-04-10 14:45:54.0 -0600
@@ -12,10 +12,10 @@
  src/base/io/ioWriteAiger.c | 2 +-
  3 files changed, 5 insertions(+), 3 deletions(-)
 
-diff --git a/Makefile b/Makefile
-index 3976cf7..bb3fbc2 100644
 a/Makefile
-+++ b/Makefile
+Index: berkeley-abc/Makefile
+===
+--- berkeley-abc.orig/Makefile
 berkeley-abc/Makefile
 @@ -22,7 +22,7 @@ MODULES := \
src/map/mapper src/map/mio src/map/super src/map/if \
src/map/amap src/map/cov src/map/scl src/map/mpm \
@@ -25,7 +25,7 @@
src/misc/mem src/misc/bar src/misc/bbl src/misc/parse \
src/opt/cut src/opt/fxu src/opt/fxch src/opt/rwr src/opt/mfs 
src/opt/sim \
src/opt/ret src/opt/fret src/opt/res src/opt/lpk src/opt/nwk 
src/opt/rwt \
-@@ -145,6 +145,8 @@ ifneq ($(findstring Darwin, $(shell uname)), Darwin)
+@@ -145,6 +145,8 @@ ifneq ($(findstring Darwin, $(shell unam
 LIBS += -lrt
  endif
  
@@ -34,10 +34,10 @@
  ifdef ABC_USE_LIBSTDCXX
 LIBS += -lstdc++
 $(info $(MSG_PREFIX)Using explicit -lstdc++)
-diff --git a/src/base/io/ioReadAiger.c b/src/base/io/ioReadAiger.c
-index 9cf4141..8be6d21 100644
 a/src/base/io/ioReadAiger.c
-+++ b/src/base/io/ioReadAiger.c
+Index: berkeley-abc/src/base/io/ioReadAiger.c
+==

Bug#1066880: rpcbind: FTBFS due to immutable chroot contains old libtirpc3

2024-03-14 Thread Zixing Liu
Package: rpcbind
Severity: serious
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch

Dear Maintainer,

This package won't be able to build when the old libtirpc3 is installed in
the immutable rootfs of the buildd container system.

I have bumped the version requirement of libtirpc-dev to force an upgrade
so that the package will build.

  * d/control: raise libtirpc-dev requirement to 1.3.4+ds-1.1 so that
the package builds can build with the correct libtirpc3t64 library


Thanks for considering the patch.


-- System Information:
Debian Release: bookworm/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-25-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru rpcbind-1.2.6/debian/control rpcbind-1.2.6/debian/control
--- rpcbind-1.2.6/debian/control2024-02-29 02:33:05.0 -0700
+++ rpcbind-1.2.6/debian/control2024-03-14 09:03:02.0 -0600
@@ -1,10 +1,10 @@
 Source: rpcbind
 Section: net
 Priority: optional
 Maintainer: Josue Ortega 
 Build-Depends: debhelper-compat (= 13),
  pkg-config,
- libtirpc-dev (>= 1.0.2),
+ libtirpc-dev (>= 1.3.4+ds-1.1),
  libwrap0-dev,
  libsystemd-dev [linux-any]
 Standards-Version: 4.6.2


Bug#1066837: mpi4py: FTBFS: Unable to generate documentation

2024-03-14 Thread Zixing Liu
Package: mpi4py
Severity: serious
Tags: patch
User: zixing@canonical.com
Usertags: origin-ubuntu noble ubuntu-patch

Dear Maintainer,

mpi4py failed to build from source after Python 3.12 and Sphinx upgrade.
Please find the patch attached that fixes the Sphinx documentation generation
issue and also a partial fix to the InterSphinx online requirements.

Due to a packaging issue in numpy, the InterSphinx of numpy isn't included
in the package, so linking the documentation from numpy is not possible
at the moment.

  * Un-break Sphinx documentation generation by removing PYTHONPATH overrides.
  * Add a patch to make Intersphinx read the cross-documentation index
from local filesystem. (LP: #2057848)


Thanks for considering the patch.


-- System Information:
Debian Release: bookworm/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-25-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru mpi4py-3.1.5/debian/control mpi4py-3.1.5/debian/control
--- mpi4py-3.1.5/debian/control 2024-03-13 12:30:07.0 -0600
+++ mpi4py-3.1.5/debian/control 2024-03-13 15:33:29.0 -0600
@@ -17,7 +16,8 @@
python3-setuptools
 Build-Depends-Indep: texinfo, texlive,
  latexmk, tex-gyre,
- texlive-latex-extra
+ texlive-latex-extra,
+ python3-doc
 Standards-Version: 4.6.2
 Vcs-Browser: https://salsa.debian.org/science-team/mpi4py
 Vcs-Git: https://salsa.debian.org/science-team/mpi4py.git
diff -Nru mpi4py-3.1.5/debian/patches/intersphinx_use_local_inventory.patch 
mpi4py-3.1.5/debian/patches/intersphinx_use_local_inventory.patch
--- mpi4py-3.1.5/debian/patches/intersphinx_use_local_inventory.patch   
1969-12-31 17:00:00.0 -0700
+++ mpi4py-3.1.5/debian/patches/intersphinx_use_local_inventory.patch   
2024-03-13 15:33:29.0 -0600
@@ -0,0 +1,18 @@
+Description: Use local InterSphinx inventory data
+Author: Zixing Liu 
+Forwarded: not-needed
+Last-Update: 2024-03-13
+
+Index: mpi4py/docs/source/usrman/conf.py
+===
+--- mpi4py.orig/docs/source/usrman/conf.py
 mpi4py/docs/source/usrman/conf.py
+@@ -90,7 +90,7 @@ autosummary_context = {
+ }
+ 
+ intersphinx_mapping = {
+-'python': ('https://docs.python.org/3/', None),
++'python': ('https://docs.python.org/3/', 
('/usr/share/doc/python3/html/objects.inv', None)),
+ 'numpy': ('https://numpy.org/doc/stable/', None),
+ }
+ 
diff -Nru mpi4py-3.1.5/debian/patches/series mpi4py-3.1.5/debian/patches/series
--- mpi4py-3.1.5/debian/patches/series  2024-02-20 03:49:49.0 -0700
+++ mpi4py-3.1.5/debian/patches/series  2024-03-13 15:29:22.0 -0600
@@ -7,3 +7,4 @@
 docs_privacy.patch
 io_long_double_i386_2d868d7.patch
 skip_testPackUnpackExternal_sparc64.patch
+intersphinx_use_local_inventory.patch
diff -Nru mpi4py-3.1.5/debian/rules mpi4py-3.1.5/debian/rules
--- mpi4py-3.1.5/debian/rules   2024-02-20 03:49:49.0 -0700
+++ mpi4py-3.1.5/debian/rules   2024-03-13 15:28:23.0 -0600
@@ -64,8 +64,7 @@
--build-args "--mpicc=/usr/bin/mpicc$(MPI) 
--mpicxx=/usr/bin/mpicxx$(MPI)"
 
 override_dh_auto_build-indep: override_dh_auto_build-arch
-   PYTHONPATH=`pybuild --print "{build_dir}"` \
-make -C docs/source/usrman/ html man info latexpdf SPHINXOPTS="-D 
today=\"$(BUILD_DATE)\""
+   make -C docs/source/usrman/ html man info latexpdf SPHINXOPTS="-D 
today=\"$(BUILD_DATE)\""
 
 override_dh_auto_install:
dh_auto_install


Bug#1066834: libopenmpi3t64: libs are missing after 64-bit time_t transition

2024-03-13 Thread Zixing Liu
Package: openmpi
Followup-For: Bug #1066834
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

This patch should install the optional libraries to the transitioned binary 
packages.

  * d/rules: correctly install all the optional libraries to the t64-suffixed
binary packages. (LP: #1070321)


Thanks for considering the patch.
diff -Nru openmpi-4.1.6/debian/rules openmpi-4.1.6/debian/rules
--- openmpi-4.1.6/debian/rules  2024-03-12 20:30:35.0 -0600
+++ openmpi-4.1.6/debian/rules  2024-03-13 18:49:15.0 -0600
@@ -179,11 +179,11 @@
cp 
$(BUILDDIR_FLANG)/ompi/mpi/fortran/*/.libs/libmpi_mpifh.so.40.30.0 
$(DESTDIR)/$(LIBDIR)/openmpi/lib/libmpi_mpifh-flang.so.40.30.0 ; \
cp 
$(BUILDDIR_FLANG)/ompi/mpi/fortran/*/.libs/libmpi_usempi_ignore_tkr.so.40.30.0 
$(DESTDIR)/$(LIBDIR)/openmpi/lib/libmpi_usempi_ignore_tkr-flang.so.40.30.0 ; \
cp 
$(BUILDDIR_FLANG)/ompi/mpi/fortran/*/.libs/libmpi_usempif08.so.40.30.0 
$(DESTDIR)/$(LIBDIR)/openmpi/lib/libmpi_usempif08-flang.so.40.30.0 ; \
-   dh_link -p libopenmpi3 $(LIBDIR)/libmpi_mpifh-flang.so.40.30.0  
 $(LIBDIR)/openmpi/lib/libmpi_mpifh-flang.so.40 ; \
+   dh_link -p libopenmpi3t64 
$(LIBDIR)/libmpi_mpifh-flang.so.40.30.0   
$(LIBDIR)/openmpi/lib/libmpi_mpifh-flang.so.40 ; \
dh_link -p libopenmpi-dev 
$(LIBDIR)/libmpi_mpifh-flang.so.40.30.0   
$(FLANG_LIBDIR)/openmpi/lib/libmpi_mpifh-flang.so ; \
-   dh_link -p libopenmpi3 
$(LIBDIR)/libmpi_usempif08-flang.so.40.30.0   
$(LIBDIR)/openmpi/lib/libmpi_usempif08-flang.so.40   ; \
+   dh_link -p libopenmpi3t64 
$(LIBDIR)/libmpi_usempif08-flang.so.40.30.0   
$(LIBDIR)/openmpi/lib/libmpi_usempif08-flang.so.40   ; \
dh_link -p libopenmpi-dev 
$(LIBDIR)/libmpi_usempif08-flang.so.40.30.0   
$(FLANG_LIBDIR)/openmpi/lib/libmpi_usempif08.so ; \
-   dh_link -p libopenmpi3 
$(LIBDIR)/libmpi_usempi_ignore_tkr-flang.so.40.30.0  
$(LIBDIR)/openmpi/lib/libmpi_usempi_ignore_tkr-flang.so.40 ; \
+   dh_link -p libopenmpi3t64 
$(LIBDIR)/libmpi_usempi_ignore_tkr-flang.so.40.30.0  
$(LIBDIR)/openmpi/lib/libmpi_usempi_ignore_tkr-flang.so.40 ; \
dh_link -p libopenmpi-dev 
$(LIBDIR)/libmpi_usempi_ignore_tkr-flang.so.40.30.0   
$(FLANG_LIBDIR)/openmpi/lib/libmpi_usempi_ignore_tkr.so ; \
) || true
 #  patchelf  --set-soname libmpi_mpifh-flang.so.40 
$(DESTDIR)/$(LIBDIR)/openmpi/lib/libmpi_mpifh-flang.so.40.30.0 ; \
@@ -231,8 +231,8 @@
dh_installman -p openmpi-bin 
$(DESTDIR)/usr/share/man/man1/oshCC.1 ; \
dh_installman -p openmpi-bin 
$(DESTDIR)/usr/share/man/man1/oshc++.1 ; \
dh_installman -p openmpi-bin 
$(DESTDIR)/usr/share/man/man1/oshcxx.1 ; \
-   dh_install -p libopenmpi3 
$(LIBDIR)/openmpi/lib/liboshmem.so.40.30.3 $(LIBDIR) ; \
-dh_link -p libopenmpi3 $(LIBDIR)/liboshmem.so.40.30.3  
$(LIBDIR)/liboshmem.so.40 ; \
+   dh_install -p libopenmpi3t64 
$(LIBDIR)/openmpi/lib/liboshmem.so.40.30.3 $(LIBDIR) ; \
+   dh_link -p libopenmpi3t64 $(LIBDIR)/liboshmem.so.40.30.3  
$(LIBDIR)/liboshmem.so.40 ; \
dh_link -p libopenmpi-dev   $(LIBDIR)/liboshmem.so.40  
$(LIBDIR)/openmpi/lib/liboshmem.so ; \
dh_link -p libopenmpi-dev   $(LIBDIR)/liboshmem.so.40  
$(LIBDIR)/liboshmem.so ; \
fi
@@ -240,45 +240,45 @@
dh_install -p openmpi-bin /usr/bin/mpijavac ; \
dh_install -p openmpi-bin usr/bin/mpijavac.pl ; \
dh_installman openmpi-bin 
$(DESTDIR)/usr/share/man/man1/mpijavac.1 ; \
-   dh_install -p libopenmpi3 
$(LIBDIR)/openmpi/lib/libmpi_java.so.40.30.0 $(LIBDIR); \
-   dh_link -p libopenmpi3 $(LIBDIR)/libmpi_java.so.40.30.0  
$(LIBDIR)/libmpi_java.so.40 ; \
+   dh_install -p libopenmpi3t64 
$(LIBDIR)/openmpi/lib/libmpi_java.so.40.30.0 $(LIBDIR); \
+   dh_link -p libopenmpi3t64 $(LIBDIR)/libmpi_java.so.40.30.0  
$(LIBDIR)/libmpi_java.so.40 ; \
dh_link -p libopenmpi-dev $(LIBDIR)/libmpi_java.so.40   
$(LIBDIR)/openmpi/lib/libmpi_java.so ; \
dh_link -p libopenmpi-dev $(LIBDIR)/libmpi_java.so.40   
$(LIBDIR)/libmpi_java.so ; \
fi
if test -f 
$(DESTDIR)/$(LIBDIR)/openmpi/lib/libmca_common_ucx.so.40.30.2 ; then \
-   dh_install -p libopenmpi3 
$(LIBDIR)/openmpi/lib/libmca_common_ucx.so.40.30.2 $(LIBDIR); \
-   dh_link -p libopenmpi3 $(LIBDIR)/libmca_common_ucx.so.40.30.2  
$(LIBDIR)/libmca_common_ucx.so.40 ; \
+   dh_install -p libopenmpi3t64 
$(LIBDIR)/openmpi/lib/libmca_common_ucx.so.40.30.2 $(LIBDIR); \
+   dh_link -p libopenmpi3t64 
$(LIBDIR)/libmca_common_ucx.so.40.30.2  $(LIBDIR)/libmca_common_ucx.so.40 ; \
 

Bug#1064085: gts: NMU diff for 64-bit time_t transition

2024-03-10 Thread Zixing Liu
Package: gts
Version: 0.7.6+darcs121130-5.1
Followup-For: Bug #1064085
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

Please find attached a patch for fixing shlib dependency marking of 
libgts-0.7-5t64.
This was a regression introduced by the time_t transition.

  * d/symbols: rename package libgts-0.7-5 to libgts-0.7-5t64.


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')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-25-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru gts-0.7.6+darcs121130/debian/symbols 
gts-0.7.6+darcs121130/debian/symbols
--- gts-0.7.6+darcs121130/debian/symbols2021-11-11 09:18:31.0 
-0700
+++ gts-0.7.6+darcs121130/debian/symbols2024-03-10 20:46:33.0 
-0600
@@ -1,4 +1,4 @@
-libgts-0.7.so.5 libgts-0.7-5 #MINVER#
+libgts-0.7.so.5 libgts-0.7-5t64 #MINVER#
  gts_allow_floating_edges@Base 0.7.6
  gts_allow_floating_faces@Base 0.7.6
  gts_allow_floating_gnodes@Base 0.7.6


Bug#1064605: RFS: rustup/1.26.0-5 [RC] [Team] -- The Rust toolchain installer

2024-02-24 Thread Zixing Liu
Package: sponsorship-requests
Severity: important
X-Debbugs-Cc: zixing@canonical.com

Dear mentors,

I am looking for a sponsor for my package "rustup":

 * Package name : rustup
   Version  : 1.26.0-5
   Upstream contact : Daniel Silverstone 
 * URL  : https://github.com/rust-lang/rustup
 * License  : MIT or Apache-2.0, OFL-1.1-RFN
 * Vcs  : https://salsa.debian.org/rust-team/rustup
   Section  : rust

The source builds the following binary packages:

  librust-rustup-dev - Manage multiple rust installations with ease - Rust 
source code
  rustup - The Rust toolchain installer

To access further information about this package, please visit the following 
URL:

  https://mentors.debian.net/package/rustup/

Alternatively, you can download the package with 'dget' using this command:

  dget -x 
https://mentors.debian.net/debian/pool/main/r/rustup/rustup_1.26.0-5.dsc

Changes since the last upload:

 rustup (1.26.0-5) unstable; urgency=medium
 .
   * Team upload.
   * d/debcargo.toml: declare additional conflict packages for:
 - rust-web-clippy
 - rustfmt-web
 - rust-mozilla-gdb
 - rust-mozilla-lldb
 - rust-web-gdb
 - rust-web-lldb
 ... so that users can correctly install rustup when those packages are
 present (by replacing them with rustup). (Closes: #1064564)
   * d/copyright: update copyright years.
   * d/control: update Conflicts using debcargo.

Regards,
-- 
  Zixing Liu



Bug#1057431: fakeupstream.cgi: add support for static.rust-lang.org

2023-12-12 Thread Zixing Liu
Hi Bart,

> That should be suitable for a watch file. Right?

Yes, while that is true, the page is updated frequently with older
versions replaced with the new version.
In Debian, usually, we can't package the latest version as quickly as
possible due to bootstrapping requirements.
Hence, a fakeupstream service is needed to retrieve a non-latest
version from the upstream.

Also, another use-case might be, you want a specific nightly or beta
to test a certain regression. Since that page
does not list the previous releases, it would be difficult to rely on
it to retrieve a previous beta using uscan by
specifying `--download-version`.

Thanks,
Zixing

On Tue, Dec 12, 2023 at 2:58 PM Bart Martens  wrote:
>
> Hi Zixing, the source code and signature are also advertised here:
> https://forge.rust-lang.org/infra/other-installation-methods.html#source-code
> That should be suitable for a watch file. Right?
>
>
> On Tue, Dec 05, 2023 at 02:44:06PM -0700, Zixing Liu wrote:
> > Hi Bart,
> >
> > > The link https://static.rust-lang.org/dist displays an error in xml 
> > > format.
> >
> > This is because this website is hosted on AWS S3 and is machine-readable 
> > only.
> > To list the files, you need to either use an S3-compatible tool or visit
> > https://static.rust-lang.org/?prefix=dist/ to see the file listing in
> > XML format.
> >
> > > Can I view an example of a package in Debian that can be watched with 
> > > such extension of fakeupstream?
> >
> > This fakeupstream service is intended for 
> > https://tracker.debian.org/pkg/rustc.
> > Because it needs to download the signed source tarball from
> > https://static.rust-lang.org.
> >
> > Thanks,
> > Zixing
> >
> > On Tue, Dec 5, 2023 at 1:46 PM Bart Martens  wrote:
> > >
> > > Hello Zixing Liu,
> > >
> > > Can I view an example of a package in Debian that can be watched with such
> > > extension of fakeupstream? The link https://static.rust-lang.org/dist 
> > > displays
> > > an error in xml format. A real example would help me understand the 
> > > context.
> > >
> > > Ciao,
> > >
> > > Bart
> > >
> > >
> > > On Mon, Dec 04, 2023 at 03:32:39PM -0700, Zixing Liu wrote:
> > > > Package: qa.debian.org
> > > > Severity: wishlist
> > > > Tags: patch
> > > > X-Debbugs-Cc: zixing@canonical.com
> > > >
> > > > Hi Debian QA Team,
> > > >
> > > > I would like to see a fakeupstream service implemented for
> > > > https://static.rust-lang.org/dist so that
> > >
>
> --



Bug#1057431: Fwd: Bug#1057431: fakeupstream.cgi: add support for static.rust-lang.org

2023-12-05 Thread Zixing Liu
Hi Bart,

> The link https://static.rust-lang.org/dist displays an error in xml format.

This is because this website is hosted on AWS S3 and is machine-readable only.
To list the files, you need to either use an S3-compatible tool or visit
https://static.rust-lang.org/?prefix=dist/ to see the file listing in
XML format.

> Can I view an example of a package in Debian that can be watched with such 
> extension of fakeupstream?

This fakeupstream service is intended for https://tracker.debian.org/pkg/rustc.
Because it needs to download the signed source tarball from
https://static.rust-lang.org.

Thanks,
Zixing

On Tue, Dec 5, 2023 at 1:46 PM Bart Martens  wrote:
>
> Hello Zixing Liu,
>
> Can I view an example of a package in Debian that can be watched with such
> extension of fakeupstream? The link https://static.rust-lang.org/dist displays
> an error in xml format. A real example would help me understand the context.
>
> Ciao,
>
> Bart
>
>
> On Mon, Dec 04, 2023 at 03:32:39PM -0700, Zixing Liu wrote:
> > Package: qa.debian.org
> > Severity: wishlist
> > Tags: patch
> > X-Debbugs-Cc: zixing@canonical.com
> >
> > Hi Debian QA Team,
> >
> > I would like to see a fakeupstream service implemented for
> > https://static.rust-lang.org/dist so that
>



Bug#1057431: fakeupstream.cgi: add support for static.rust-lang.org

2023-12-04 Thread Zixing Liu
Package: qa.debian.org
Severity: wishlist
Tags: patch
X-Debbugs-Cc: zixing@canonical.com

Hi Debian QA Team,

I would like to see a fakeupstream service implemented for 
https://static.rust-lang.org/dist so that the debian/watch file inside the
rustc package could be simplified and actually useful for checking new
releases.

Attached below is a patch that I proposed to add the said functionality.
You can find the same patch at:
 https://salsa.debian.org/qa/qa/-/merge_requests/48
if you prefer using Debian Salsa to merge the patch/merge request.

Thanks,
Zixing
>From 9bbd2ecffe31822cf2a77ed0ce9ed69f78931aee Mon Sep 17 00:00:00 2001
From: liushuyu 
Date: Mon, 23 Oct 2023 22:27:29 -0600
Subject: [PATCH] cgi-bin/fakeupstream.cgi: add support ...

... for monitoring Rust releases
---
 cgi-bin/fakeupstream.cgi | 77 
 1 file changed, 77 insertions(+)

diff --git a/cgi-bin/fakeupstream.cgi b/cgi-bin/fakeupstream.cgi
index c13538e8..718b2540 100755
--- a/cgi-bin/fakeupstream.cgi
+++ b/cgi-bin/fakeupstream.cgi
@@ -26,6 +26,8 @@ use JSON;
 use File::Temp qw/ tempdir /;
 use Date::Format;
 use Date::Parse;
+use Time::Piece;
+use Time::Seconds qw(ONE_DAY);
 use Dpkg::Version;
 use threads;
 use constant MAX_THREADS => 3;
@@ -1110,6 +1112,81 @@ elsif( $upstream_param =~ 
m%^google-fonts/($project_char_re+)/($project_char_re+
exit 0;
 }
 
+elsif( $upstream_param eq 'rustc' )
+{
+   my $ua = LWP::UserAgent->new;
+
+   sub fetch_rust_github_tags($) {
+   my $ua = shift;
+   my @versions;
+   my $page_number = 1;
+   my $per_page = 100;
+   my $url = 
"https://api.github.com/repos/rust-lang/rust/tags?per_page=$per_page;;
+   while (1) {
+   my $response = $ua->get( "$url=$page_number" );
+   return_error( "failed to read $url : 
$response->status_line" ) if( not $response->is_success );
+   my $json = JSON::decode_json( 
$response->decoded_content );
+   foreach my $version (@{$json}) {
+   my $version_name = $version->{"name"};
+   if ( $version_name =~ /^\d+\.\d+\.\d+$/ ) {
+   push @versions, $version_name;
+   }
+   }
+   last if (scalar @versions) < $per_page;
+   }
+   $page_number++;
+   return @versions;
+   }
+
+   sub fetch_rust_last_unstable_date($$) {
+   my $ua = shift;
+   my $channel = shift;
+   my $url = 
"https://static.rust-lang.org/dist/channel-rust-$channel-date.txt;;
+   my $response = $ua->get ( $url );
+   return_error( "failed to read $url : $response->status_line" ) 
unless( $response->is_success );
+   return $response->decoded_content;
+   }
+
+   sub make_header($) {
+   my $channel = shift;
+   my $title = "Rust toolchain version listing ($channel)";
+   print $q->header;
+   print $q->start_html({ -title => $title });
+   print $q->h1($title) . "\n";
+   print $q->start_ul;
+   }
+
+   $type_param = 'stable' unless $type_param;
+   my $channel = $type_param;
+
+   if ($channel eq 'stable') {
+   my @tags = fetch_rust_github_tags( $ua );
+   make_header($channel);
+   foreach my $version (@tags) {
+   print $q->li( $q->a( { -href => 
"https://static.rust-lang.org/dist/rustc-$version-src.tar.xz; }, $version ) );
+   }
+   } else {
+   my $last_date = fetch_rust_last_unstable_date ( $ua, $channel );
+   my $limit = 10;
+   make_header($channel);
+   print $q->p( "For unstable channels, only releases within the 
last $limit days are listed." );
+   while ($limit > 0) {
+   my $response = $ua->get( 
"https://static.rust-lang.org/dist/$last_date/channel-rust-$channel.toml; );
+   if ($response->is_success()) {
+   if ($response->decoded_content =~ 
/(1\.\d+\.\d+-(?:nightly|beta)(?:\.\d+)?\s+\([0-9a-f]{9}\s+\d+-\d+-\d+\))/) {
+   print $q->li( $q->a( { -href => 
"https://static.rust-lang.org/dist/$last_date/rustc-$channel-src.tar.xz; }, $1 
) );
+   }
+   }
+   my $next_last_date = Time::Piece->strptime($last_date, 
"%Y-%m-%d") - ONE_DAY;
+   $last_date = $next_last_date->ymd;
+   $limit--;
+   }
+   }
+
+   print $q->end_ul;
+   print $q->end_html;
+   exit 0;
+}
 
 my %upstream_info_per_package =
 (
-- 
GitLab



Bug#1052424: RFS: rust-rustup/1.26.0-1 [ITP] [Team] -- The Rust toolchain installer

2023-09-21 Thread Zixing Liu
Dear mentors,

I am looking for a sponsor for my package "rustup":

 * Package name : rustup
   Version  : 1.26.0-1
   Upstream contact : Daniel Silverstone 
 * URL  : https://github.com/rust-lang/rustup
 * License  : MIT or Apache-2.0, OFL-1.1-RFN
 * Vcs  : https://salsa.debian.org/rust-team/rustup
   Section  : rust

The source builds the following binary packages:

  librust-rustup-dev - Manage multiple rust installations with ease -
Rust source code
  rustup - The Rust toolchain installer

To access further information about this package, please visit the
following URL:

  https://mentors.debian.net/package/rustup/

Alternatively, you can download the package with 'dget' using this command:

  dget -x 
https://mentors.debian.net/debian/pool/main/r/rustup/rustup_1.26.0-1.dsc

Changes for the initial release:

 rustup (1.26.0-1) unstable; urgency=medium
 .
   * Team upload.
   * Package rustup 1.26.0 from local source using debcargo 2.6.0
   * Initial package upload. (Closes: #1026333)
   * d/copyright: update copyright data from upstream rustup 1.26.0:
 - Update copyright years
 - Add new licenses for new files
   * d/patches: add multiple patches to make rustup buildable under Debian:
 - 0001-cargo-remove-windows-dependencies.patch: Remove Windows dependencies
 - 0002-cargo-remove-reqwest-and-use-curl-instead.patch: Remove reqwest
   entirely (use curl as the downloader)
 - 0003-Bumped-retry.patch: Upgrade retry to ^2
 - 0004-cargo-relax-term-dependency-constraint.patch: Loosen term to ~0.5
 - 0005-tests-disable-self-update-tests.patch: Disable all the tests that
 do the self-update testing
 - 0006-Update-Rust-crate-toml-to-0.7.3.patch: Upgrade toml to ~0.7.3
 - 0007-Remove-external-images-from-the-web-pages.patch: Remove remotely
 loaded images from the HTML files
 .
   [ Ximin Luo ]
   * Package rustup 1.21.1 from local source using debcargo 2.4.3

Regards,
-- 
  Zixing Liu



Bug#1052424: RFS: rust-rustup/1.26.0-1 [ITP] [Team] -- The Rust toolchain installer

2023-09-21 Thread Zixing Liu
Package: sponsorship-requests
Severity: wishlist

Dear mentors,

I am looking for a sponsor for my package "rust-rustup":

 * Package name : rust-rustup
   Version  : 1.26.0-1
   Upstream contact : Daniel Silverstone 
 * URL  : https://github.com/rust-lang/rustup
 * License  : MIT or Apache-2.0, OFL-1.1-RFN
 * Vcs  : https://salsa.debian.org/rust-team/rustup
   Section  : rust

The source builds the following binary packages:

  librust-rustup-dev - Manage multiple rust installations with ease -
Rust source code
  rustup - The Rust toolchain installer

To access further information about this package, please visit the
following URL:

  https://mentors.debian.net/package/rust-rustup/

Alternatively, you can download the package with 'dget' using this command:

  dget -x 
https://mentors.debian.net/debian/pool/main/r/rust-rustup/rust-rustup_1.26.0-1.dsc

Changes for the initial release:

 rust-rustup (1.26.0-1) UNRELEASED; urgency=medium
 .
   * Team upload.
   * Package rustup 1.26.0 from local source using debcargo 2.6.0
   * Initial package upload. (Closes: #1026333)
   * d/copyright: update copyright data from upstream rustup 1.26.0:
 - Update copyright years
 - Add new licenses for new files
   * d/patches: add multiple patches to make rustup buildable under Debian:
 - 0001-cargo-remove-windows-dependencies.patch: Remove Windows dependencies
 - 0002-cargo-remove-reqwest-and-use-curl-instead.patch: Remove reqwest
   entirely (use curl as the downloader)
 - 0003-Bumped-retry.patch: Upgrade retry to ^2
 - 0004-cargo-relax-term-dependency-constraint.patch: Loosen term to ~0.5
 .
   [ Ximin Luo ]
   * Package rustup 1.21.1 from local source using debcargo 2.4.3

Regards,
--
  Zixing Liu



Bug#1050206: rust-test-case: Failed autopkgtest after 3.1.0-3

2023-08-21 Thread Zixing Liu
Package: rust-test-case
Version: 3.1.0-3
Severity: minor
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu mantic ubuntu-patch
X-Debbugs-Cc: zixing@canonical.com

Dear Maintainer,

After updating rust-test-case to 3.1.0-3, the autopkgtest no longer passes due
to a typo in the Provides field in debian/control.

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

  * fix a typo in the Provides field;
this fixes the autopkgtest

Thanks for considering the patch.

Thanks,
Zixing



Bug#1045582: rust-test-case: Failed autopkgtest after 3.1.0-3

2023-08-21 Thread Zixing Liu
Package: rust-test-case
Followup-For: Bug #1045582
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu mantic ubuntu-patch
X-Debbugs-Cc: zixing@canonical.com
Control: tags -1 patch

Dear Maintainer,

After updating rust-test-case to 3.1.0-3, the autopkgtest no longer passes due
to a typo in the Provides field in debian/control.

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

  * fix a typo in the Provides field;
this fixes the autopkgtest

Thanks for considering the patch.

Thanks,
Zixing
diff -Nru rust-test-case-3.1.0/debian/control 
rust-test-case-3.1.0/debian/control
--- rust-test-case-3.1.0/debian/control 2023-08-20 03:24:41.0 -0600
+++ rust-test-case-3.1.0/debian/control 2023-08-21 19:23:25.0 -0600
@@ -45,7 +45,7 @@
  librust-test-case-core-3.1-dev (= ${binary:Version}),
  librust-test-case-core-3.1.0-dev (= ${binary:Version}),
  librust-test-case-macros-3+default-dev (= ${binary:Version}),
- librust-test-case-macros-3+with-regex (= ${binary:Version}),
+ librust-test-case-macros-3+with-regex-dev (= ${binary:Version}),
  librust-test-case-macros-3-dev (= ${binary:Version}),
  librust-test-case-macros-3.1-dev (= ${binary:Version}),
  librust-test-case-macros-3.1.0-dev (= ${binary:Version}),


Bug#1036368: ITP: libjs-elasticlunr-js -- Lightweight full-text search engine written in JavaScript

2023-05-19 Thread Zixing Liu
Package: wnpp
Severity: wishlist
Owner: Zixing Liu 
X-Debbugs-Cc: debian-de...@lists.debian.org, zixing@canonical.com

* Package name: libjs-elasticlunr-js
  Version : 1.0.1
  Upstream Contact: Robert Isaac 
* URL : https://www.npmjs.com/package/elasticlunrjs
* License : MIT
  Programming Lang: JavaScript
  Description : Lightweight full-text search engine written in JavaScript

This package will be needed for rustc where the documentation have a
web-browser-based search system to effectively search through the
documentation.

In Debian, currently the search script is stripped (see:
https://salsa.debian.org/rust-team/rust/-/blob/debian/sid/debian/patches/d-0002-mdbook-strip-embedded-libs.patch#L322).
By packaging the missing packages, we could restore the searching system
and providing a better documentation reading/searching experience for the Rust
developers who use Debian.

The package may be maintained by the Debian Javascript Maintainers.
The sponsorship is needed for the initial upload.