#1105310 fossil: FTBFS with make --shuffle=reverse: collect2: error: ld returned 1 exit status

Package:
src:fossil
Source:
src:fossil
Submitter:
Lucas Nussbaum
Date:
2026-05-31 19:07:02 UTC
Severity:
normal
Tags:
#1105310#5
Date:
2025-05-13 18:57:31 UTC
From:
To:
Hi,

GNU Make now has a --shuffle option that simulates non-deterministic ordering
of target prerequisites. See
https://trofi.github.io/posts/238-new-make-shuffle-mode.html and also previous
work in Debian by Santiago Vila:
https://people.debian.org/~sanvila/make-shuffle/

This package fails to build with make --shuffle=reverse.
This is likely to be caused by a missing dependency in
debian/rules or an upstream Makefile.

More information about this mass bug filing is available at
https://wiki.debian.org/qa.debian.org/FTBFS/Shuffle

Relevant part (hopefully):
The full build log is available from:
http://qa-logs.debian.net/2025/05/05/shuffle/reverse/fossil_2.25-4_unstable_reverse.log

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

#1105310#12
Date:
2026-05-31 12:15:13 UTC
From:
To:
This issue has been reported upstream, with a patch.

https://fossil-scm.org/forum/forumpost/8700a21fc2

Index: tools/makemake.tcl
==================================================================
--- tools/makemake.tcl
+++ tools/makemake.tcl
@@ -546,17 +546,20 @@
   writeln "\t\$(XTCC) -o \$(OBJDIR)/$s.o -c \$(OBJDIR)/${s}_.c\n"
   writeln "\$(OBJDIR)/$s.h:\t\$(OBJDIR)/headers\n"
 }

 writeln "\$(SQLITE3_OBJ):\t\$(SQLITE3_SRC)"
+writeln "\t-mkdir -p \$(OBJDIR)"
 writeln "\t\$(XTCC) \$(SQLITE_OPTIONS) \$(SQLITE_CFLAGS) \$(SEE_FLAGS) \\"
 writeln "\t\t-c \$(SQLITE3_SRC) -o \$@"

 writeln "\$(OBJDIR)/shell.o:\t\$(SQLITE3_SHELL_SRC)
\$(SRCDIR_extsrc)/sqlite3.h"
+writeln "\t-mkdir -p \$(OBJDIR)"
 writeln "\t\$(XTCC) \$(SHELL_OPTIONS) \$(SHELL_CFLAGS) \$(SEE_FLAGS)
\$(LINENOISE_DEF.\$(USE_LINENOISE)) -c \$(SQLITE3_SHELL_SRC) -o \$@\n"

 writeln "\$(OBJDIR)/linenoise.o:\t\$(SRCDIR_extsrc)/linenoise.c
\$(SRCDIR_extsrc)/linenoise.h"
+writeln "\t-mkdir -p \$(OBJDIR)"
 writeln "\t\$(XTCC) -c \$(SRCDIR_extsrc)/linenoise.c -o \$@\n"

#1105310#17
Date:
2026-05-31 19:05:06 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
fossil, 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 1105310@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Barak A. Pearlmutter <bap@debian.org> (supplier of updated fossil 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 30 Apr 2026 16:12:06 +0100
Source: fossil
Architecture: source
Version: 1:2.27-3
Distribution: unstable
Urgency: medium
Maintainer: Barak A. Pearlmutter <bap@debian.org>
Changed-By: Barak A. Pearlmutter <bap@debian.org>
Closes: 1103921 1105310 1138485
Changes:
 fossil (1:2.27-3) unstable; urgency=medium
 .
   * Update debian/watch to v5
   * Bump policy
   * Deal with cross build bad compiler options issue (closes: #1103921)
   * Quilt patches
     - make-shuffle-reverse.patch (closes: #1105310)
     - openssl-4.patch (closes: #1138485)
Checksums-Sha1:
 89f7c6af7542a069f4357d47b6ac55ef6da56bca 1256 fossil_2.27-3.dsc
 b8b271c8b4177cd93520c18e0df8ec288d5f9213 52580 fossil_2.27-3.debian.tar.xz
 439487bcb27ea79e5850dcd1664a58308f634124 6487 fossil_2.27-3_source.buildinfo
Checksums-Sha256:
 d339df02d852edc05175c6fbf085de978df7aa44b02509f0e90a7b043fc0a900 1256 fossil_2.27-3.dsc
 8a55d21769dc548ddba14061111c3bdf947f269f1861642ab0095226560bcfbf 52580 fossil_2.27-3.debian.tar.xz
 9539e76dede3a07241fc2da079d4b92ba5e8c95ecaf897a242f488f44bd60cc4 6487 fossil_2.27-3_source.buildinfo
Files:
 897a6a78a86cee3d398f9ee7d4d16a65 1256 vcs optional fossil_2.27-3.dsc
 58ee1af0d8bcb010a99c880ddfd02ef5 52580 vcs optional fossil_2.27-3.debian.tar.xz
 a247fc27e402ad7f76d8e3241cf245ee 6487 vcs optional fossil_2.27-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iIUEARYKAC0WIQQt5L8FQhB2xHrSA2fGrySQ08pyuQUCahyCXw8cYmFwQGRlYmlh
bi5vcmcACgkQxq8kkNPKcrmQ6QD/WJrR5ZujhDPpVYetjrwthJT4gRwfjema22HT
Mq2WGFUBAKofQFKBFrAMkq1jIcMWavUDg9rCMwAcRD0hu4U2uWkN
=GE4z
-----END PGP SIGNATURE-----