Your message dated Tue, 30 Jun 2026 12:18:43 +0000
with message-id <[email protected]>
and subject line Bug#959384: fixed in similarity-tester 3.0.2-2
has caused the Debian Bug report #959384,
regarding similarity-tester: Fix compilation warnings and enable reproductible
builds.
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.)
--
959384: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959384
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: similarity-tester
Version: 3.0.2-1+b1
Severity: normal
Tags: patch
Dear Maintainer,
here's patch to fix compilation warnings and actually enable
reproductible builds.
Upstream seems totally dead but this software is really
important to me.
Thank you.
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500,
'unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.4.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8),
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages similarity-tester depends on:
ii libc6 2.30-4
similarity-tester recommends no packages.
similarity-tester suggests no packages.
-- debconf-show failed
>From 613976535663abc254b5f48e2b22215fb55a675a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= <[email protected]>
Date: Fri, 1 May 2020 20:17:15 +0200
Subject: [PATCH] Enable and fix compilation warnings.
---
ForEachFile.c | 4 ++--
Makefile | 3 ++-
Malloc.c | 2 +-
compare.c | 4 ++--
debug.c | 3 ++-
options.c | 2 ++
pass3.c | 2 +-
7 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/ForEachFile.c b/ForEachFile.c
index a7b9166..991fe6d 100644
--- a/ForEachFile.c
+++ b/ForEachFile.c
@@ -122,8 +122,8 @@ do_dir(
Closedir(dir);
}
-static MSDOS_sep = (Fchar)'\\';
-static UNIX_sep = (Fchar)'/';
+static const char MSDOS_sep = (Fchar)'\\';
+static const char UNIX_sep = (Fchar)'/';
static void
clean_name(Fchar *Fn) {
diff --git a/Makefile b/Makefile
index 7bce7f6..6416dad 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@
#
#VERSION="-DVERSION=\"3.0.2 of 2017-12-16\"" # uncomment for public version
+VERSION="-DVERSION=\"3.0.2-2 Debian\""
# E N T R Y P O I N T S
@@ -78,7 +79,7 @@ GROFF = man2pdf
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
# Compiling
MEMORY = -DMEMCHECK -DMEMCLOBBER
-CFLAGS = $(VERSION) $(MEMORY) -O4 $(shell dpkg-buildflags --get
CPPFLAGS) $(shell dpkg-buildflags --get CFLAGS) -fPIC
+CFLAGS = $(VERSION) $(MEMORY) -Wall $(shell dpkg-buildflags --get
CPPFLAGS) $(shell dpkg-buildflags --get CFLAGS) -fPIC
LIBFLAGS = #
LINTFLAGS = -Dlint_test $(MEMORY) -h# -X
LOADFLAGS = -s $(shell dpkg-buildflags --get LDFLAGS) # strip symbol table
diff --git a/Malloc.c b/Malloc.c
index 39ed530..cde504f 100644
--- a/Malloc.c
+++ b/Malloc.c
@@ -57,7 +57,7 @@ struct alloc { /* corresponds to an allocated block */
#define HASH_SIZE 16381 /* largest prime under 2^16 */
static struct alloc *alloc_bucket[HASH_SIZE];
-#define alloc_bucket_for(x) alloc_bucket[((unsigned
int)(x)%HASH_SIZE)]
+#define alloc_bucket_for(x) alloc_bucket[((size_t)(x)%HASH_SIZE)]
/* MEMORY STATUS */
diff --git a/compare.c b/compare.c
index 189f607..2feb340 100644
--- a/compare.c
+++ b/compare.c
@@ -33,8 +33,8 @@ in_range(size_t i, const struct range *rg) {
return (rg->rg_start <= i && i < rg->rg_limit);
} else {
/* looped-around range */
- return (rg->rg_start <= i && i < end_of_text
- || beginning_of_text <= i && i < rg->rg_limit);
+ return (rg->rg_start <= i && i < end_of_text)
+ || (beginning_of_text <= i && i < rg->rg_limit);
}
}
diff --git a/debug.c b/debug.c
index e27c335..3828007 100644
--- a/debug.c
+++ b/debug.c
@@ -3,6 +3,7 @@
$Id: debug.c,v 1.8 2017-12-08 18:07:16 Gebruiker Exp $
*/
+#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
@@ -26,7 +27,7 @@
static void
wr_char(char ch) {
- write(2, &ch, 1);
+ fputc(ch, stderr);
}
static void
diff --git a/options.c b/options.c
index 0416f6e..59ccd78 100644
--- a/options.c
+++ b/options.c
@@ -121,6 +121,8 @@ opt_value(
case String:
*(const char **)op->op_value = string;
break;
+ default:
+ break;
}
return consumed;
diff --git a/pass3.c b/pass3.c
index 9c0be1b..7c4de66 100644
--- a/pass3.c
+++ b/pass3.c
@@ -185,7 +185,7 @@ print_line(FILE *f, pts max_line_length) {
utf8_box u; clear_utf8_box(&u);
int len;
- while (len = fill_ubox(f, &u)) {
+ while ((len = fill_ubox(f, &u))) {
/* take a critical look at what we've got */
char u0 = u.text[0];
if (u0 == '\n') break; /* stop on end of line*/
--
2.26.0
--- End Message ---
--- Begin Message ---
Source: similarity-tester
Source-Version: 3.0.2-2
Done: Andreas Tille <[email protected]>
We believe that the bug you reported is fixed in the latest version of
similarity-tester, 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.
Andreas Tille <[email protected]> (supplier of updated similarity-tester 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: Tue, 30 Jun 2026 13:57:14 +0200
Source: similarity-tester
Architecture: source
Version: 3.0.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <[email protected]>
Changed-By: Andreas Tille <[email protected]>
Closes: 959384
Changes:
similarity-tester (3.0.2-2) unstable; urgency=medium
.
* QA upload.
.
[ Andreas Tille ]
* Orphan package
* Maintain in Debian team on Salsa
* Secure URI in Homepage
* d/watch
- version=5
- Mark as untrackable
* d/copyright: DEP5
* Bump debhelper from deprecated 9 to 13.
* Remove redundant Priority: optional from source stanza.
* Trim trailing whitespace.
* Set debhelper-compat version in Build-Depends.
* Remove empty README.Debian
* Standards-Version: 4.7.4
.
[ BenoƮt ]
* Enable and fix compilation warnings
Closes: #959384
Checksums-Sha1:
aeff3d81b8c46b006d599e3da2924a9cd1d1c788 1973 similarity-tester_3.0.2-2.dsc
2b604256e2c69426817e3af6a2fec4d60026cdfa 5592
similarity-tester_3.0.2-2.debian.tar.xz
1f3bdb909658c40faada75b562651e49a0ff4019 5719
similarity-tester_3.0.2-2_amd64.buildinfo
Checksums-Sha256:
81055fc25e66e0bb7d161d6660ecdbd27cf5c43fcd91385100551f9bcbfd034c 1973
similarity-tester_3.0.2-2.dsc
d7feadbcd63b202cc29c1f43b9087f753a5e72636af2900033a1968805d8ec8c 5592
similarity-tester_3.0.2-2.debian.tar.xz
a300455116c719d880cc8aedb3f630134a95f290615c62ade13811162b06edff 5719
similarity-tester_3.0.2-2_amd64.buildinfo
Files:
051813bc649053e7aeb4201fa914dd87 1973 devel optional
similarity-tester_3.0.2-2.dsc
d6a79ec2757e690b79d5cdb6fb4ac6c0 5592 devel optional
similarity-tester_3.0.2-2.debian.tar.xz
c8cd993a162e8a49e3b4f60e09690ffc 5719 devel optional
similarity-tester_3.0.2-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmpDr9URHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtHInw//TGZx2t8gp/8/iLrFACjrB8uL7op8pxuX
X9f7VH2lDHQuNV1JEWf0t4xMlm8u4t5/CGLPlNOsMUm/Y77TJYn9RiD26LCGMwx2
aZwpdTHXxcjFWRBZRuzKuDejswsboHBpVbBzpaXkSKkWjDduvGs8145xOzjLxkKq
fvbWnGiLTuiFUIVlgmJKvUd6H4fAiHDiZUJ8/a5xr+w3Qmgv4HpF7ljcFrkVB4eT
kBtTne/u5V1Yupp4033bi6qTu//+JiZGpd8rQCSIpslFHsCuuFMCAT6lpJURspgb
FBIq8do5mT2datO87zRtbOfBC70bjhNSGC6Tz422v3j0InGm+iA1BN8clWvjxawr
YCwLhVMOjUwf3uw9Zq/XsR4cQewAIbHyogA0lTcHYkXC5D10GwQMjCp6BjRJFc20
uvUreXQdqvRuUE2MxfT5yTgZYydz0dsKOyW93lRKDQL2m6OEIA5DuVMnXGQI8kga
Vy5mY1Uofww6IDjEoSp/Aqxu255RM+CUHSC9hGAJfekCUS4YQVosQ0c7TOYEZycd
rtBRaBc4c8QCPhRu3JpI2DBmyyrlwxtqXq7v0I1tewYXB5/cEBzz+AvJMctkGMnf
RzMQmuSglUENyZOaudPI9E6rHswTVe7zywSI9wCKJHPBC8jhkpxLSuKQIGe+4P9t
8xJiVbpKH/Y=
=UzWf
-----END PGP SIGNATURE-----
pgpLvuUm8Rm6R.pgp
Description: PGP signature
--- End Message ---