Your message dated Thu, 23 Jan 2025 18:06:44 +0000
with message-id <[email protected]>
and subject line Bug#1088683: fixed in lighttpd 1.4.77-1
has caused the Debian Bug report #1088683,
regarding lighttpd: FTBFS with zlib-ng
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 [email protected]
immediately.)


-- 
1088683: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088683
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: lighttpd
Version: 1.4.76-1
Severity: important
Tags: sid patch
control: affects -1 src:zlib-ng
User: [email protected]
Usertags: zlib-ng-ftbfs

lighttpd's testsuite fails if zlib-ng is used because it compares
against the exact size of the compressed content. The patch attached
updates it to ensure the compressed content is at least half of the
input.

Sebastian
From: Sebastian Andrzej Siewior <[email protected]>
Date: Fri, 29 Nov 2024 15:55:13 +0100
Subject: [PATCH] tests: Don't test for exact compress zlib size.

If zlibg-ng instead of zlib is used then the testsuite fails because the
resulting compressed content has a different size.

Alter the test and expect that the compressed content is at least half
of the input.

Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
---
 tests/LightyTest.pm | 12 ++++++++++++
 tests/request.t     |  9 +++++----
 2 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/tests/LightyTest.pm b/tests/LightyTest.pm
index 2bf1aed63148d..613938dafe86b 100644
--- a/tests/LightyTest.pm
+++ b/tests/LightyTest.pm
@@ -460,6 +460,7 @@ sub handle_http {
 			(my $k = $_) =~ tr/[A-Z]/[a-z]/;
 
 			my $verify_value = 1;
+			my $verify_less_than = 0;
 			my $key_inverted = 0;
 
 			if (substr($k, 0, 1) eq '+') {
@@ -470,6 +471,10 @@ sub handle_http {
 				$k = substr($k, 1);
 				$key_inverted = 1;
 				$verify_value = 0; ## skip the value check
+			} elsif (substr($k, 0, 1) eq '<') {
+				## the value must be less then
+				$k = substr($k, 1);
+				$verify_less_than = 1;
 			}
 
 			if ($key_inverted) {
@@ -492,6 +497,13 @@ sub handle_http {
 							$href->{$_}, $resp_hdr{$k}, $1));
 						return -1;
 					}
+				} elsif ($verify_less_than) {
+					if ($resp_hdr{$k} >= $href->{$_}) {
+						diag(sprintf(
+							"\nresponse-header failed: expected '%s' less than '%s'",
+							$href->{$_}, $resp_hdr{$k}));
+						return -1;
+					}
 				} elsif ($href->{$_} ne $resp_hdr{$k}) {
 					diag(sprintf(
 						"\nresponse-header failed: expected '%s', got '%s'",
diff --git a/tests/request.t b/tests/request.t
index f4b4e88aae3d1..f9302131f0463 100755
--- a/tests/request.t
+++ b/tests/request.t
@@ -1411,7 +1411,8 @@ Accept-Encoding: deflate
 Host: deflate.example.org
 EOF
  );
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', 'Content-Length' => '1294', '+Content-Encoding' => '' } ];
+# The compressed content should be at least half of the original content.
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', '<Content-Length' => '2174', '+Content-Encoding' => '' } ];
 ok($tf->handle_http($t) == 0, 'deflate - Content-Length and Content-Encoding is set');
 
 $t->{REQUEST}  = ( <<EOF
@@ -1420,7 +1421,7 @@ Accept-Encoding: deflate
 Host: deflate-cache.example.org
 EOF
  );
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', 'Content-Length' => '1294', '+Content-Encoding' => '' } ];
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', '<Content-Length' => '2174', '+Content-Encoding' => '' } ];
 ok($tf->handle_http($t) == 0, 'deflate - Content-Length and Content-Encoding is set');
 
 $t->{REQUEST}  = ( <<EOF
@@ -1429,7 +1430,7 @@ Accept-Encoding: gzip
 Host: deflate.example.org
 EOF
  );
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', 'Content-Length' => '1306', '+Content-Encoding' => '' } ];
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', '<Content-Length' => '2174', '+Content-Encoding' => '' } ];
 ok($tf->handle_http($t) == 0, 'gzip - Content-Length and Content-Encoding is set');
 
 $t->{REQUEST}  = ( <<EOF
@@ -1438,7 +1439,7 @@ Accept-Encoding: gzip
 Host: deflate-cache.example.org
 EOF
  );
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', 'Content-Length' => '1306', '+Content-Encoding' => '' } ];
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', '<Content-Length' => '2174', '+Content-Encoding' => '' } ];
 ok($tf->handle_http($t) == 0, 'gzip - Content-Length and Content-Encoding is set');
 
 
-- 
2.45.2


--- End Message ---
--- Begin Message ---
Source: lighttpd
Source-Version: 1.4.77-1
Done: Glenn Strauss <[email protected]>

We believe that the bug you reported is fixed in the latest version of
lighttpd, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Glenn Strauss <[email protected]> (supplier of updated lighttpd 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 [email protected])


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

Format: 1.8
Date: Wed, 22 Jan 2025 04:26:52 -0500
Source: lighttpd
Architecture: source
Version: 1.4.77-1
Distribution: unstable
Urgency: medium
Maintainer: Debian lighttpd maintainers <[email protected]>
Changed-By: Glenn Strauss <[email protected]>
Closes: 1084233 1088683
Changes:
 lighttpd (1.4.77-1) unstable; urgency=medium
 .
   [ Glenn Strauss ]
   * Remove include-conf-enabled.pl
     (deprecated since 2019 in debian/1.4.52-4)
   * Test config in systemd ExecReload before signal SIGUSR1 (closes: #1084233)
     (lighttpd 1.4.77)
   * Remove perl from debian/control Recommends
   * Move spawn-fcgi from debian/control Recommends to Suggests
   * FTBFS with zlib-ng (closes: #1088683)
   * New upstream version 1.4.77
   * Drop patches applied upstream
   * Add post-release patches
   * Update debhelper compatibility level to 13.
   * Move lighty-enable-mod.1 -> lighty-enable-mod.8
   * Add debian/lighty-enable-mod to debian/copyright
   * Remove obsolete alt packages from debian/control
   * Add Documentation key to systemd unit lighttpd.lighttpd-maint.service
 .
   [ Niels Thykier ]
   * add debian/rules override_dh_perl
     perl dependency for `lighttpd` is handled manually (as Recommends)
   * Migrate to `debputy` to remove the need for `fakeroot`
Checksums-Sha1:
 088bce91ce84e314a5824f712c5c06d998e6336d 3854 lighttpd_1.4.77-1.dsc
 b99dbd3861a810a237fd3bd072e1057c29047fd7 857872 lighttpd_1.4.77.orig.tar.xz
 f420ea84fed3be4ed50951c2fc7209c05a1fb258 47804 lighttpd_1.4.77-1.debian.tar.xz
 b1b89d2210b35ac83a8851fa00b65df57e24c037 10834 
lighttpd_1.4.77-1_source.buildinfo
Checksums-Sha256:
 65abfcbbe36bba5ecb4050cb14c581d1da4feb83998e5b427aa3c5729aa3d15d 3854 
lighttpd_1.4.77-1.dsc
 acafabdbfa2267d8b6452d03d85fdd2a66525f3f05a36a79b6645c017f1562ce 857872 
lighttpd_1.4.77.orig.tar.xz
 d57a57cabf378e9c67e4a7751b48cc3069d0af673dbfece5b67feac9dbda270a 47804 
lighttpd_1.4.77-1.debian.tar.xz
 f8bb519a79465fb532a9a2030776d9a921a2b71844aa6beae067fb24347c1327 10834 
lighttpd_1.4.77-1_source.buildinfo
Files:
 64452518a18308780898371f857c3c1f 3854 httpd optional lighttpd_1.4.77-1.dsc
 3bd1d9d3853d539cc99791a2eb725d39 857872 httpd optional 
lighttpd_1.4.77.orig.tar.xz
 abac1bde2ea7b0d3fea1962cd1d90770 47804 httpd optional 
lighttpd_1.4.77-1.debian.tar.xz
 8444b906e0d353efa8786ee09c85bc83 10834 httpd optional 
lighttpd_1.4.77-1_source.buildinfo

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

iQJHBAEBCgAxFiEEt+z0Ld/ZiscwHAYrEQGtWoE2mtcFAmeSfHQTHHBhdWx0YWdA
ZGViaWFuLm9yZwAKCRARAa1agTaa108sEACTwBaMOK7MjfE8WMbM+12/3eNSeads
h14eAkJWrOXI5j/GNzcx5A8kBEC4T9WiC6YNZRJ5bN1mUa5FGtKFRS8mD2L2KOkX
7sCGnBrid4YTFouM8Li5jYWzLjHUREXUSuRKV9MsLupPMhVFHPKirpfPNA1wfzRP
kfp+iSeMrpGIYip1DQ8PFfb+U33KfrTQKA+VxYI8/n7KWnAb5rswMroZhun7LZOr
yl+lNrLk4AtHON0hkP+xVNxZ/ahI7izKWSpuVHNA3n9+AK0EewojD2EqeaJfBaO9
bPDgA2tkzj7xI8ByDpCxOESh2Fd/ZtF9mabbvm216x/LKOzxeXrL4u5DqV/xUNOj
X4BZg8LxObmz5uwayWhW+eQfbaBiQ90Qb6GHxSKaHVV3fYI6Ir3rpCH9kUwoN3u+
etv3NCSVBxZ+37yQwYUVkEgK921t7pOOSk4lVWsmoCkgFGQVJtvaD2lWtqJC0/74
ahqmLpLO+8DEZsztbHzNymy7X5wDFGyH1t9AE1isxxOVg//+s43OQy9UH2qOFuGV
pWtIrrNWXtdGRxukgIgmhT49ZCCZro4tjm/klnjfZxPKWG8PreCqm2vUa4zO4krp
6eyyYsGI+6NukMPQALHNx6BKwRub05gzbAkEtgm2sEQn6XyvczeBT58CmdF5evBg
iM+iR2+etoiu6w==
=s8+E
-----END PGP SIGNATURE-----

Attachment: pgprJdZ3RqPgi.pgp
Description: PGP signature


--- End Message ---

Reply via email to