Your message dated Sat, 22 Feb 2025 09:39:17 +0000
with message-id <e1tllyf-008izo...@fasolo.debian.org>
and subject line Bug#1098474: fixed in resvg 0.44.0-4
has caused the Debian Bug report #1098474,
regarding resvg: Failing autopkgtest
to be marked as done.

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

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


-- 
1098474: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098474
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: resvg
Version: 0.44.0-3
Severity: serious
Tags: patch
Justification: RT
X-Debbugs-Cc: noisyc...@tutanota.com

Hi,

src:resvg's autopkgtest is failing bacause of two separate issues: 1. some of
resvg's and usvg's versions are reported incorrectly in d/tests/control, making
tests uninstallable; 2. two of resvg's examples should be gated behind the
correct features. The patches in attachment, to be applied to the debian
packages in no precise order, fix both of them.

Cheers!
>From 4983a9ca52e2d9bd378ebadea5524b4a3eeaf185 Mon Sep 17 00:00:00 2001
From: NoisyCoil <noisyc...@tutanota.com>
Date: Thu, 20 Feb 2025 23:30:55 +0100
Subject: [PATCH 1/2] d/tests/control: fix {re,u}svg package versions

---
 debian/tests/control | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/debian/tests/control b/debian/tests/control
index 0bb23c97..44473799 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -20,7 +20,7 @@ Depends:
  dh-rust,
  librust-once-cell-1+default-dev,
  librust-png-0.17+default-dev,
- librust-resvg-0.8+default-dev,
+ librust-resvg-0.44+default-dev,
 Restrictions:
  allow-stderr,
 
@@ -44,7 +44,7 @@ Depends:
  dh-rust,
  librust-once-cell-1+default-dev,
  librust-png-0.17+default-dev,
- librust-resvg-0.8+memmap-fonts-dev,
+ librust-resvg-0.44+memmap-fonts-dev,
 Restrictions:
  allow-stderr,
 Architecture: amd64
@@ -57,7 +57,7 @@ Depends:
  dh-rust,
  librust-once-cell-1+default-dev,
  librust-png-0.17+default-dev,
- librust-resvg-0.8+raster-images-dev,
+ librust-resvg-0.44+raster-images-dev,
 Restrictions:
  allow-stderr,
 Architecture: amd64
@@ -70,7 +70,7 @@ Depends:
  dh-rust,
  librust-once-cell-1+default-dev,
  librust-png-0.17+default-dev,
- librust-resvg-0.8+system-fonts-dev,
+ librust-resvg-0.44+system-fonts-dev,
 Restrictions:
  allow-stderr,
 Architecture: amd64
@@ -83,7 +83,7 @@ Depends:
  dh-rust,
  librust-once-cell-1+default-dev,
  librust-png-0.17+default-dev,
- librust-resvg-0.8+text-dev,
+ librust-resvg-0.44+text-dev,
 Restrictions:
  allow-stderr,
 Architecture: amd64
@@ -106,7 +106,7 @@ Features:
 Depends:
  dh-rust,
  librust-once-cell-1+default-dev,
- librust-usvg-0.8+default-dev,
+ librust-usvg-0.44+default-dev,
 Restrictions:
  allow-stderr,
 
@@ -128,7 +128,7 @@ Features:
 Depends:
  dh-rust,
  librust-once-cell-1+default-dev,
- librust-usvg-0.8+memmap-fonts-dev,
+ librust-usvg-0.44+memmap-fonts-dev,
 Restrictions:
  allow-stderr,
 Architecture: amd64
@@ -140,7 +140,7 @@ Features:
 Depends:
  dh-rust,
  librust-once-cell-1+default-dev,
- librust-usvg-0.8+system-fonts-dev,
+ librust-usvg-0.44+system-fonts-dev,
 Restrictions:
  allow-stderr,
 Architecture: amd64
@@ -152,7 +152,7 @@ Features:
 Depends:
  dh-rust,
  librust-once-cell-1+default-dev,
- librust-usvg-0.8+text-dev,
+ librust-usvg-0.44+text-dev,
 Restrictions:
  allow-stderr,
 Architecture: amd64
-- 
2.47.2

>From d9220858c7dd4d4ca1fa62d7b65e52e2e1b86317 Mon Sep 17 00:00:00 2001
From: NoisyCoil <noisyc...@tutanota.com>
Date: Thu, 20 Feb 2025 23:49:21 +0100
Subject: [PATCH 2/2] d/patches: add 1002_fix-examples.patch

Gate some resvg's examples behind the appropriate features
---
 debian/patches/1002_fix-examples.patch | 34 ++++++++++++++++++++++++++
 debian/patches/series                  |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 debian/patches/1002_fix-examples.patch

diff --git a/debian/patches/1002_fix-examples.patch 
b/debian/patches/1002_fix-examples.patch
new file mode 100644
index 00000000..b57f66c2
--- /dev/null
+++ b/debian/patches/1002_fix-examples.patch
@@ -0,0 +1,34 @@
+Description: fix examples
+ Fix examples by gating them behind the relevant features
+Author: NoisyCoil <noisyc...@tutanota.com>
+Last-Update: 2025-02-20
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/crates/resvg/examples/draw_bboxes.rs
++++ b/crates/resvg/examples/draw_bboxes.rs
+@@ -1,3 +1,4 @@
++#[cfg(all(feature = "text", feature = "system-fonts"))]
+ fn main() {
+     let args: Vec<String> = std::env::args().collect();
+     if !(args.len() == 3 || args.len() == 5) {
+@@ -76,3 +77,6 @@
+         }
+     }
+ }
++
++#[cfg(not(all(feature = "text", feature = "system-fonts")))]
++fn main() {}
+--- a/crates/resvg/examples/minimal.rs
++++ b/crates/resvg/examples/minimal.rs
+@@ -1,3 +1,4 @@
++#[cfg(all(feature = "text", feature = "system-fonts"))]
+ fn main() {
+     let args: Vec<String> = std::env::args().collect();
+     if args.len() != 3 {
+@@ -23,3 +24,6 @@
+     resvg::render(&tree, tiny_skia::Transform::default(), &mut 
pixmap.as_mut());
+     pixmap.save_png(&args[2]).unwrap();
+ }
++
++#[cfg(not(all(feature = "text", feature = "system-fonts")))]
++fn main() {}
diff --git a/debian/patches/series b/debian/patches/series
index 9adfb6b8..7df20de9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 1001_image-webp.patch
+1002_fix-examples.patch
 2002_privacy.patch
-- 
2.47.2


--- End Message ---
--- Begin Message ---
Source: resvg
Source-Version: 0.44.0-4
Done: Jonas Smedegaard <d...@jones.dk>

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

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

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

Debian distribution maintenance software
pp.
Jonas Smedegaard <d...@jones.dk> (supplier of updated resvg package)

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 22 Feb 2025 10:14:52 +0100
Source: resvg
Architecture: source
Version: 0.44.0-4
Distribution: unstable
Urgency: medium
Maintainer: Jonas Smedegaard <d...@jones.dk>
Changed-By: Jonas Smedegaard <d...@jones.dk>
Closes: 1098474
Changes:
 resvg (0.44.0-4) unstable; urgency=medium
 .
   * fix autopkgtest-dependencies;
     add patch 1002 to add feature fencing for tests;
     closes: bug#1098474, thanks to NoisyCoil
   * declare compliance with Debian Policy 4.7.1
Checksums-Sha1:
 03e0755f4f857b6a79597d649bdba485f2f8485b 3690 resvg_0.44.0-4.dsc
 4ac14357ff54505075aabf7567f27583abcd1ce9 12376 resvg_0.44.0-4.debian.tar.xz
 dd9bbc755935494761a86b33b7b3a69739b674f7 19066 resvg_0.44.0-4_amd64.buildinfo
Checksums-Sha256:
 850ef6d9a125b9fa03a946bbbdb8bb35b44de4f76b2ea8d11f0af99e50daca1d 3690 
resvg_0.44.0-4.dsc
 48a69cc2ad2f06885396c7fd35e968f1b3ef4e633b4c78cc5437f00f58139208 12376 
resvg_0.44.0-4.debian.tar.xz
 da743bede365680797fbbc4feaea4d37af31b41b53cc342df9912ae78b527a0f 19066 
resvg_0.44.0-4_amd64.buildinfo
Files:
 ad782decbf5653d9b07d36e8071f2b45 3690 graphics optional resvg_0.44.0-4.dsc
 d2d3040e90ad56ce8bb0f6691e3359e2 12376 graphics optional 
resvg_0.44.0-4.debian.tar.xz
 fb4d9e5e5c7add2fcdd18444b5f2aae3 19066 graphics optional 
resvg_0.44.0-4_amd64.buildinfo


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

wsG7BAEBCgBvBYJnuZYPCRAsfDFGwaABIUcUAAAAAAAeACBzYWx0QG5vdGF0aW9u
cy5zZXF1b2lhLXBncC5vcmfqQYRev1IpAnsHQi+hrLfKpB6DCow1fSsW7B8LFux5
+BYhBJ/j6cNmkaaf9TzGhCx8MUbBoAEhAAA9Ug/9F576CoP/hJZtVt5QMomeXNeJ
fS54MDAOATgTXQDuajQgV6AmaRtRx5NI4ka9jyV1eQmW9k0IlDNxOeE1G+nO5gxx
9aw7cwfmwSr7cjXfKtsZkMejJskhxfCWHoZIjOd4gLvQ0xiiHHoXcdJxonsro/nm
xJPns5VXWjo1/CUzJAC5vUffghB4wjLIUAaC9kdnhopkIqpPt1+EZH6UB66mKlW4
bXxCd9Zl4ia/6jdSzyvcxOQkAhCIOGDtba1jC6utUWoEln7uh6Sk/0cpsOiPiK3b
l3liP4pSe2Pqsuj3/HMg/rTLIZSPIP7iiLKUxsPZhHe3u7lvrv4eRNUW8O9EStzo
6Y+uSaS7BMJh8uTBsZ0/XoD3ifua5wSQKer0EV2wJo/mjWppkp1qTlK35K3X/1s5
151EjV+CaMBqt0JYehQhqw/R5licmQN2yyXNY8zcE64BFs+OVfiuMDcxca9Adedb
4JpBy17zBYlXyngqRVd4+TvWoERfF5p4UWwA1/v+vfpawje9DrW8yQk+j5jUK0f7
L90YSMRkgyogf0392olOyL2epptV8URuzpELFLNHSGPrLWzx8gxH/GIs8iEcR8bk
qmsHbz9tYuCLp0bNJ0l24t5mu5t53Y0ucnejgxHsIxsO3BULrxIBXLhwu59+DExQ
IsIb6q7LxiKR1c4DClc=
=aAZ1
-----END PGP SIGNATURE-----

Attachment: pgp7EzNrPWT83.pgp
Description: PGP signature


--- End Message ---

Reply via email to