Bug#1105521: pasdoc: FTBFS with make --shuffle=reverse: make[2]: *** [Makefile:193: build-fpc-default-debug] Error 1 shuffle=reverse

2025-05-15 Thread Michalis Kamburelis
> Relevant part (hopefully):
...
> > PasDoc_GenHtml.pas(352,23) Fatal: Cannot open include file "pasdoc.css.inc"
> > Fatal: Compilation aborted
> > Error: /usr/bin/ppcx64 returned an error exitcode
> > make[2]: *** [Makefile:193: build-fpc-default-debug] Error 1 shuffle=reverse

( Upstream of PasDoc here. ) The error indicates that "pasdoc.css.inc"
does not exist when doing the build.

Looking at our upstream Makefile and files (
https://github.com/pasdoc/pasdoc/ ), I don't think it's a problem on
our side. The "pasdoc.css.inc", although it's autogenerated, is also
present in the repo (see
https://github.com/pasdoc/pasdoc/tree/master/source/component ). This
is done for the comfort of people building PasDoc in various ways, so
that one can open the project in Lazarus / Delphi and "just hit F9 to
compile".

Possibly the Debian package customization removes the "pasdoc.css.inc"
file, and then relies on "make -C source/component" to recreate? This
certainly would make sense as a validation (to make sure the
"pasdoc.css.inc" is indeed auto-generated to a correct version). And
then it has to execute before doing the actual build that relies on
"pasdoc.css.inc" existence. But I was not able to find this in PasDoc
Debian package sources on Salsa
https://salsa.debian.org/pascal-team/pasdoc/ .

So..
- I don't know where is the problem,
- but I don't think it's in upstream and I don't see it in
https://salsa.debian.org/pascal-team/pasdoc/ .
- But I hope above observations help the package maintainer to solve
the issue :)

Regards,
Michalis



Bug#1105521: pasdoc: FTBFS with make --shuffle=reverse: make[2]: *** [Makefile:193: build-fpc-default-debug] Error 1 shuffle=reverse

2025-05-13 Thread Lucas Nussbaum
Source: pasdoc
Version: 0.16.0-2
Severity: minor
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-shuffle

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):
> make[2]: Entering directory '/build/reproducible-path/pasdoc-0.16.0'
> Makefile:183: update target 'make-dirs' due to: target is .PHONY
> /usr/bin/mkdir -p lib
> /usr/bin/mkdir -p bin
> Makefile:193: update target 'build-fpc-default-debug' due to: target is .PHONY
> fpc -FEbin -FUlib @pasdoc-fpc.cfg -Fu./source/component -Fu./source/console 
> -Fu./source/component/tipue -Fi./source/component 
> -Fi./source/component/images ./source/console/pasdoc.dpr
> Free Pascal Compiler version 3.2.2+dfsg-46 [2025/02/08] for x86_64
> Copyright (c) 1993-2021 by Florian Klaempfl and others
> Target OS: Linux for x86-64
> Compiling ./source/console/pasdoc.dpr
> Compiling ./source/console/PasDoc_Main.pas
> Compiling ./source/component/PasDoc_GenHtml.pas
> PasDoc_GenHtml.pas(352,23) Fatal: Cannot open include file "pasdoc.css.inc"
> Fatal: Compilation aborted
> Error: /usr/bin/ppcx64 returned an error exitcode
> make[2]: *** [Makefile:193: build-fpc-default-debug] Error 1 shuffle=reverse


The full build log is available from:
http://qa-logs.debian.net/2025/05/05/shuffle/reverse/pasdoc_0.16.0-2_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