Bug#1074706: [Pkg-pascal-devel] Bug#1074706: fpc: FTBFS: make[1]: *** [Makefile:9: de] Error 1

2024-07-11 Thread Peter Blackman

On 09/07/2024 17:08, Peter B wrote:


Until recently, fpc built OK, and msgfmt did not appear in the build 
logs.




Sorry, I got that bit wrong. I was looking at the 'all' build not the 
'amd64'

msgfmt used to work, but no longer.
It seems a header such as

msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"

needs to be added, AND the encoding changed to UTF-8


Regards,
Peter



Bug#1074706: [Pkg-pascal-devel] Bug#1074706: fpc: FTBFS: make[1]: *** [Makefile:9: de] Error 1

2024-07-09 Thread Peter B

On 02/07/2024 14:30, Lucas Nussbaum wrote:

Source: fpc
Version: 3.2.2+dfsg-33
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240702 ftbfs-trixie

Hi,
Project developers 
During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):


snip

/usr/bin/make -C fpcsrc/utils/fpdoc/intl install 
INSTALL_PREFIX=/<>/debian/tmp/usr 
PP=/<>/fpcsrc/compiler/ppcx64
make[1]: Entering directory '/<>/fpcsrc/utils/fpdoc/intl'
msgfmt fpdoc.de.po dwriter.de.po -o fpdoc.de.mo
msgfmt: input file doesn't contain a header entry with a charset specification
make[1]: *** [Makefile:9: de] Error 1


The immediate cause of the build fail, is that msgfmt is called against 
de.po files which have no header.

Until recently, fpc built OK, and msgfmt did not appear in the build logs.

I have no idea why this problem has just appeared now,
but the build can be saved by commenting out the build of the de.mo files.

In d/rules
  #$(MAKE) -C fpcsrc/utils/fpdoc/intl install $(INSTALLOPTS)

and in d/fp-utils.install.in
  #usr/share/locale


Regards,
Peter