[Debian-astro-maintainers] Bug#1105355: giza: FTBFS with make --shuffle=reverse: make[4]: *** [Makefile:1030: check_output_files] Error 1 shuffle=reverse

Trupti trupti at linux.ibm.com
Thu Feb 5 12:12:52 GMT 2026


Hello,

I reproduced the FTBFS with GNU make shuffle mode 
(MAKEFLAGS=--shuffle=reverse).
The failure happened because the PNG verification step was executed 
before the test programs ran.
The PNG files are created only when the tests are executed, but under 
shuffle mode the check could run first due to missing ordering.

I fixed this by removing the custom check rule and moving the PNG 
verification to check-local, with an explicit dependency on check-TESTS, 
so the tests always run before the PNG check.


--- giza-1.5.0.orig/test/F90/Makefile.am
+++ giza-1.5.0/test/F90/Makefile.am
@@ -10,13 +10,10 @@ TESTS = $(ftests)
  check_PROGRAMS = $(ftests)
  AM_DEFAULT_SOURCE_EXT = .f90

-# Ensure that the tests are built as part of the 'check' target
-check: $(ftests) check_output_files
-
  test_output_files = giza-test.png giza-test-2D.png

  # Custom target to check for the existence of expected output files 
from the Fortran tests
-check_output_files: $(ftests)
+check-local: check-TESTS
         @echo "Checking for required png files..."
         @for i in $(test_output_files); do \
             if [ ! -s $$i ]; then \
@@ -26,4 +23,6 @@ check_output_files: $(ftests)
                 echo "$$i exists"; \
             fi; \
         done
-       @echo "All required png files exist."
\ No newline at end of file
+       @echo "All required png files exist."
+
+

With this change, the package builds successfully under shuffle mode on 
ppc64el

I have attached a patch that fixes the issue described above. I would 
appreciate a review.



Thanks,
Trupti
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-test-ordering-shuffle.patch
Type: text/x-diff
Size: 1321 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-astro-maintainers/attachments/20260205/76461cd7/attachment-0001.patch>


More information about the Debian-astro-maintainers mailing list