[med-svn] [Git][med-team/ltrsift][master] 2 commits: Fix build with make --shuffle=reverse
Andreas Tille (@tille)
gitlab at salsa.debian.org
Tue Oct 20 19:46:37 BST 2026
Andreas Tille pushed to branch master at Debian Med / ltrsift
Commits:
8305dd64 by Andreas Tille at 2026-10-20T20:25:22+02:00
Fix build with make --shuffle=reverse
The object and link rules depended on the "dirs" target having run
first. Add order-only prerequisites so obj/src and bin exist before
the compiler or linker writes into them.
Closes: #1105470
- - - - -
6c80df9e by Andreas Tille at 2026-10-20T20:29:18+02:00
Upload to unstable
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/fix-shuffled-build.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,4 +1,4 @@
-ltrsift (1.0.2-12) UNRELEASED; urgency=medium
+ltrsift (1.0.2-12) unstable; urgency=medium
* Team upload.
* d/watch: version=5
@@ -11,8 +11,10 @@ ltrsift (1.0.2-12) UNRELEASED; urgency=medium
easily
* Fix use-after-free when creating a project. Closes: #1126708
* Add autopkgtest reproducing the project creation crash.
+ * Fix build failure with make --shuffle=reverse by creating output
+ directories before compiling and linking. Closes: #1105470
- -- Andreas Tille <tille at debian.org> Tue, 20 Oct 2026 11:20:34 +0200
+ -- Andreas Tille <tille at debian.org> Tue, 20 Oct 2026 20:25:55 +0200
ltrsift (1.0.2-11) unstable; urgency=medium
=====================================
debian/patches/fix-shuffled-build.patch
=====================================
@@ -0,0 +1,43 @@
+Description: Create output directories before compiling or linking
+ The object and link rules relied on the phony "dirs" target running
+ before them. With GNU make --shuffle the prerequisites can be reordered,
+ so the compiler or linker runs before obj/src or bin exists and fails
+ with "can't create ... No such file or directory". Add order-only
+ prerequisites on the output directories.
+Author: Andreas Tille <tille at debian.org>
+Assisted-By: opencode/deepseek-v4.1-flash-free
+Bug-Debian: https://bugs.debian.org/1105470
+Last-Update: 2026-10-20
+
+--- a/Makefile
++++ b/Makefile
+@@ -42,24 +42,24 @@
+ all: dirs bin/ltrsift bin/ltrsift_encode $(STATICBIN)
+ dirs: bin obj obj/src
+
+-obj/%.o: %.c
++obj/%.o: %.c | obj/src
+ @echo "[compile $@]"
+ $(CC) -c $(CFLAGS) $(CPPFLAGS) $(GTK_FLAGS) $(GT_FLAGS) $< -o $(@)
+
+-bin/ltrsift: $(OBJECTS) obj/src/ltrsift.o
++bin/ltrsift: $(OBJECTS) obj/src/ltrsift.o | bin
+ @echo "[linking $@]"
+ $(CC) $(OBJECTS) obj/src/ltrsift.o -o $@ $(CFLAGS) $(LDFLAGS) $(GTK_FLAGS) $(GT_FLAGS)
+
+-bin/ltrsift_encode: obj/src/ltrsift_encode.o
++bin/ltrsift_encode: obj/src/ltrsift_encode.o | bin
+ @echo "[linking $@]"
+ $(CC) obj/src/ltrsift_encode.o -o $@ $(CFLAGS) $(LDFLAGS) $(GT_FLAGS)
+
+-bin/ltrsift_static: obj/src/ltrsift.o $(OBJECTS) $(gt_prefix)/lib/libgenometools.a
++bin/ltrsift_static: obj/src/ltrsift.o $(OBJECTS) $(gt_prefix)/lib/libgenometools.a | bin
+ @echo "[linking $@]"
+ $(CC) $(OBJECTS) obj/src/ltrsift.o $(gt_prefix)/lib/libgenometools.a \
+ -o $@ $(CFLAGS) $(LDFLAGS) $(GT_FLAGS_STATIC) $(GTK_FLAGS) -lbz2
+
+-bin/ltrsift_encode_static: obj/src/ltrsift_encode.o $(gt_prefix)/lib/libgenometools.a
++bin/ltrsift_encode_static: obj/src/ltrsift_encode.o $(gt_prefix)/lib/libgenometools.a | bin
+ @echo "[linking $@]"
+ $(CC) obj/src/ltrsift_encode.o $(gt_prefix)/lib/libgenometools.a \
+ -o $@ $(CFLAGS) $(LDFLAGS) \
=====================================
debian/patches/series
=====================================
@@ -4,3 +4,4 @@ spelling.patch
no-binary-in-examples.patch
gtk3.patch
fix-project-nodes-use-after-free.patch
+fix-shuffled-build.patch
View it on GitLab: https://salsa.debian.org/med-team/ltrsift/-/compare/bef30a914f8902018807a13e28311665640789d1...6c80df9e30cfa9a881535780c312ca29527e574e
--
View it on GitLab: https://salsa.debian.org/med-team/ltrsift/-/compare/bef30a914f8902018807a13e28311665640789d1...6c80df9e30cfa9a881535780c312ca29527e574e
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20261020/61690e8a/attachment-0001.htm>
More information about the debian-med-commit
mailing list