🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.devel.release
Article #44

Bug#1148496: marked as done (trixie-pu: package jdupes/dupes_1.28.0-1+deb13u2)

#44
From: Debian Bug Tracking System
Date: Wed, 07 Oct 2026 15:20
277 lines
13532 bytes
This is a multi-part message in MIME format...

------------=_1791385984-985016-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your message dated Wed, 7 Oct 2026 12:11:19 -0300
with message-id <20261007121119.3c962c2057aed056c55a9d76@debian.org>
and subject line Re: trixie-pu: package jdupes/dupes_1.28.0-1+deb13u2
has caused the Debian Bug report #1148496,
regarding trixie-pu: package jdupes/dupes_1.28.0-1+deb13u2
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 owner@bugs.debian.org
immediately.)


--=20
1148496: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1148496
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

------------=_1791385984-985016-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.debian.org; 20 Sep 2026 03:03:47 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-30.9 required=4.0 tests=BAYES_00,
	BODY_INCLUDES_CONTROL_AFFECTS,BODY_INCLUDES_PACKAGE,FOURLA,
	FROMDEVELOPER,HAS_PACKAGE,NO_RELAYS,XMAILER_REPORTBUG autolearn=ham
	autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 60; hammy, 150; neutral, 181; spammy,
	0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
	0.000-+--X-Debbugs-Cc, 0.000-+--trixie, 0.000-+--H*Ad:N*Bug,
	0.000-+--HTo:N*Debian
Return-path: <eriberto@debian.org>
Received: via submission
	by buxtehude.debian.org with esmtp (Exim 4.96)
	(envelope-from <eriberto@debian.org>)
	id 1x87qF-007Xg9-1C
	for submit@bugs.debian.org;
	Sun, 20 Sep 2026 03:03:47 +0000
Content-Type: multipart/mixed; boundary="===============5093070039195289094=="
MIME-Version: 1.0
From: Joao Eriberto Mota Filho <eriberto@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: trixie-pu: package jdupes/dupes_1.28.0-1+deb13u2
Message-ID: <178987342057.26149.4970080454364201657.reportbug@canopus.local>
X-Mailer: reportbug 13.2.0
Date: Sun, 20 Sep 2026 00:03:40 -0300
Delivered-To: submit@bugs.debian.org

This is a multi-part MIME message sent by reportbug.


--===============5093070039195289094==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: jdupes@packages.debian.org, Jody Bruchon <jody@jodybruchon.com>
Control: affects -1 + src:jdupes
User: release.debian.org@packages.debian.org
Usertags: pu

[ Reason ]
Jody Bruchon, the jdupes author, told me that the hash database feature is
disabled due to a conditional logic error introduced in v1.28.0 during the
major hashdb changes.

The condition was inadvertently written with the opposite logic, completely
disabling the hash database functionality.

[ Impact ]
This does not affect the correctness of jdupes results or pose any data
integrity risk, but causes a significant performance regression, especially
when processing large, unchanging datasets where the hash database provides
substantial performance improvements.

Several Debian packages use jdupes during the package build process.

[ Tests ]
Some manual tests were performed to confirm that the package works fine after
fixing the issue.

[ Risks ]
This is a small and straightforward change provided by upstream, with no
expected risks.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

[ Changes ]
A small patch provided by upstream was applied. This fix is closing the bug
#1148491.

[ Other info ]
No more info.

--===============5093070039195289094==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="jdupes.diff"

diff -Nru jdupes-1.28.0/debian/changelog jdupes-1.28.0/debian/changelog
--- jdupes-1.28.0/debian/changelog	2025-10-05 22:45:33.000000000 -0300
+++ jdupes-1.28.0/debian/changelog	2026-09-19 23:18:35.000000000 -0300
@@ -1,3 +1,12 @@
+jdupes (1.28.0-1+deb13u2) trixie; urgency=medium
+
+  * debian/patches/030_fix-hashdb.patch: created to fix a conditional logic
+    error that disabled the hash database feature, resulting in a significant
+    performance regression for large, unchanging datasets. Thanks to Jody
+    Bruchon <jody@jodybruchon.com> (upstream). (Closes: #1148491)
+
+ -- Joao Eriberto Mota Filho <eriberto@debian.org>  Sat, 19 Sep 2026 23:18:35 -0300
+
 jdupes (1.28.0-1+deb13u1) trixie; urgency=medium
 
   * debian/patches/020_fix-uniq-count.patch: created to fix flag overlap
diff -Nru jdupes-1.28.0/debian/patches/030_fix-hashdb.patch jdupes-1.28.0/debian/patches/030_fix-hashdb.patch
--- jdupes-1.28.0/debian/patches/030_fix-hashdb.patch	1969-12-31 21:00:00.000000000 -0300
+++ jdupes-1.28.0/debian/patches/030_fix-hashdb.patch	2026-09-19 23:18:35.000000000 -0300
@@ -0,0 +1,63 @@
+Description: Fix a conditional logic error that disables the hash database feature
+             The incorrect condition was introduced in v1.28.0 and caused the
+             hash database to be completely disabled.
+Author: Jody Bruchon <jody@jodybruchon.com>
+Origin: upstream
+Bug-Debian: https://bugs.debian.org/1148491
+Last-Update: 2026-09-02
+Index: jdupes-1.28.0/hashdb.c
+===================================================================
+--- jdupes-1.28.0.orig/hashdb.c
++++ jdupes-1.28.0/hashdb.c
+@@ -530,19 +530,24 @@ int read_hashdb_entry(file_t *file)
+   if (file == NULL || file->d_name == NULL) goto error_null;
+   if (get_path_hash(file->d_name, file->d_name_len, &path_hash) != 0) goto error_path_hash;
+   bucket = path_hash & HT_MASK;
+-  if (hashdb[bucket] == NULL) return 0;
++  if (hashdb[bucket] == NULL) goto end_read_hashdb;
+   cur = hashdb[bucket];
+   while (1) {
+     if (cur->path_hash != path_hash) {
+       if (path_hash < cur->path_hash) cur = cur->left;
+       else cur = cur->right;
+-      if (cur == NULL) return 0;
++      if (cur == NULL) goto end_read_hashdb;
+       continue;
+     }
+     /* Found a matching path hash */
+-    if (cur->pathlen == file->d_name_len && memcmp(cur->path, file->d_name, cur->pathlen) == 0) {
++    LOUD(fprintf(stderr, "read_hashdb_entry: found a matching path hash\n");)
++    if ((cur->pathlen != file->d_name_len) || (memcmp(cur->path, file->d_name, cur->pathlen) != 0)) {
++      LOUD(fprintf(stderr, "read_hashdb_entry: name check failed, not populating (%u != %u, '%s' != '%s', cmp %d)\n",
++			      cur->pathlen, file->d_name_len,
++			      cur->path, file->d_name,
++			      memcmp(cur->path, file->d_name, cur->pathlen));)
+       cur = cur->left;
+-      if (cur == NULL) return 0;
++      if (cur == NULL) goto end_read_hashdb;
+       continue;
+     } else {
+       /* Found a matching path too but check mtime */
+@@ -552,10 +557,12 @@ int read_hashdb_entry(file_t *file)
+       if (cur->size  != file->size)  exclude |= 4;
+       if (exclude != 0) {
+         /* Invalidate if something has changed */
++        LOUD(fprintf(stderr, "read_hashdb_entry: metadata changed, invalidating entry\n");)
+         cur->hashcount = 0;
+         hashdb_dirty = 1;
+         return -1;
+       }
++      LOUD(fprintf(stderr, "read_hashdb_entry: copying hash data to file entry\n");)
+       file->filehash_partial = cur->partialhash;
+       if (cur->hashcount == 2) {
+         file->filehash = cur->fullhash;
+@@ -564,6 +571,9 @@ int read_hashdb_entry(file_t *file)
+       return 1;
+     }
+   }
++
++end_read_hashdb:
++  LOUD(fprintf(stderr, "read_hashdb_entry: exhausted hash scan\n");)
+   return 0;
+ 
+ error_null:
diff -Nru jdupes-1.28.0/debian/patches/series jdupes-1.28.0/debian/patches/series
--- jdupes-1.28.0/debian/patches/series	2025-10-05 22:45:33.000000000 -0300
+++ jdupes-1.28.0/debian/patches/series	2026-09-19 23:18:35.000000000 -0300
@@ -1,2 +1,3 @@
 010_fix-FTBFS-Hurd.patch
 020_fix-uniq-count.patch
+030_fix-hashdb.patch

--===============5093070039195289094==--

------------=_1791385984-985016-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 1148496-done) by bugs.debian.org; 7 Oct 2026 15:11:27 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-107.4 required=4.0 tests=ALL_TRUSTED,BAYES_00,
	DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
	FROMDEVELOPER,SPF_HELO_NONE,SPF_PASS,USER_IN_DKIM_WELCOMELIST
	autolearn=ham autolearn_force=no
	version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 20; hammy, 75; neutral, 18; spammy, 1.
	spammytokens:0.987-1--H*Ad:N*Jody
	hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
	0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
	0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: <eriberto@debian.org>
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:45766)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <eriberto@debian.org>)
	id 1xETIk-004808-2T
	for 1148496-done@bugs.debian.org;
	Wed, 07 Oct 2026 15:11:26 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
	s=smtpauto.stravinsky; h=X-Debian-User:Content-Transfer-Encoding:Content-Type
	:Mime-Version:Message-Id:Subject:Cc:To:From:Date:Reply-To:Content-ID:
	Content-Description:In-Reply-To:References;
	bh=kYeMFRz3oaxzxauHMx8SJB/3qTswzHUFFDxd0beA7LE=; b=aP1rPtnsWb6IH2X+5w8D5vvoVY
	rGLsCfvFpbxhh4QDYurrdWp76V3deBO40dMmArw/ERber8ztbCkOf6NRge17Ywn2dp6p64B19Ncwz
	89oeqLYtC01G9j32BIIeLfbCmc4p1ZjTarRTu1RJTdqaVPP0VFOceZlx6BVl7T1ErxYxwzy1UjEOz
	JwqgBR7L/yor1FfZlsxdJ3GU/q6lgWlWXWHCs5E3CRQZUWLlHLyMZyiVKMGCHvrgdQbdirP9Q0B3I
	CdXeumWy+b6YZ24LgFwoYD0REpMPTfPGyJq6tPn0n6RVuWis2zQhw2T0hMx1O5CyAWko8ZngT6xBu
	k2uXPBpQ==;
Received: from authenticated-user
	by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <eriberto@debian.org>)
	id 1xETIi-004pm2-14;
	Wed, 07 Oct 2026 15:11:24 +0000
Date: Wed, 7 Oct 2026 12:11:19 -0300
From: Eriberto Mota <eriberto@debian.org>
To: 1148496-done@bugs.debian.org
Cc: Jody Bruchon <jody@jodybruchon.com>
Subject: Re: trixie-pu: package jdupes/dupes_1.28.0-1+deb13u2
Message-Id: <20261007121119.3c962c2057aed056c55a9d76@debian.org>
X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Debian-User: eriberto

I am closing this trixie-pu because we have issues with i386 CI tests.

I will wait for a solution from upstream.

Eriberto
------------=_1791385984-985016-0--
Technical Details
Message-ID: <NLBAZ-46dQ-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NLBAZ-46dQ-9@gated-at.bofh.it> <NFg6d-Fh7-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: "Debian Bug Tracking System" <owner@bugs.debian.org>
Newsgroups: linux.debian.devel.release
Subject: Bug#1148496: marked as done (trixie-pu: package jdupes/dupes_1.28.0-1+deb13u2)
Date: Wed, 07 Oct 2026 17:20:01 +0200
Message-ID: <NLBAZ-46dQ-7@gated-at.bofh.it>
References: <NLBAZ-46dQ-9@gated-at.bofh.it> <NFg6d-Fh7-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-release-request@lists.debian.org  Wed Oct  7 15:13:18 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Amavis-Spam-Status: No, score=-2 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
MIME-Version: 1.0
X-Mailer: MIME-tools 5.510 (Entity 5.510)
X-Debian-Pr-Message: closed 1148496
X-Debian-Pr-Package: release.debian.org
X-Debian-Pr-Keywords: trixie
Reply-To: 1148496@bugs.debian.org
Content-Type: multipart/mixed; boundary="----------=_1791385984-985016-0"
X-Mailing-List: <debian-release@lists.debian.org> archive/latest/188205
List-ID: <debian-release.lists.debian.org>
List-URL: <https://lists.debian.org/debian-release/>
List-Archive: https://lists.debian.org/msgid-search/handler.1148496.D1148496.1791385887984095.ackdone@bugs.debian.org
Approved: robomod@news.nic.it
Lines: 277
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 07 Oct 2026 15:13:04 +0000
X-Original-Message-ID: <handler.1148496.D1148496.1791385887984095.ackdone@bugs.debian.org>
X-Original-References: <20261007121119.3c962c2057aed056c55a9d76@debian.org>
 <178987342057.26149.4970080454364201657.reportbug@canopus.local>