Source: tuxpaint-config
Version: 0.0.13-4
Severity: important
Tags: patch

tuxpaint-config sometimes FTBFS:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/tuxpaint-config.html

...
Compiling tuxpaint-config.cxx
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security 
`fltk-config --cxxflags` -DDATA_PREFIX=\"/usr/share/tuxpaint-config/\" 
-D__SOUND -DDOC_PREFIX=\"/usr/share/doc/tuxpaint-config/\" 
-DLOCALEDIR=\"/usr/share/locale/\" -DCONFDIR=\"/etc/tuxpaint\" 
-DVER_VERSION=\"0.0.13\" -DVER_DATE=\"2017-10-18\" -Wdate-time 
-D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat 
-Werror=format-security -c src/tuxpaint-config.cxx -o obj/tuxpaint-config.o
msgfmt -o trans/ro.mo src/po/ro.po

msgfmt -o trans/hy.mo src/po/hy.po
msgfmt -o trans/nn.mo src/po/nn.po
...Preparing translation files...
Compiling tuxpaint-config2.cxx
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security 
`fltk-config --cxxflags` -DDATA_PREFIX=\"/usr/share/tuxpaint-config/\" 
-D__SOUND -DDOC_PREFIX=\"/usr/share/doc/tuxpaint-config/\" 
-DLOCALEDIR=\"/usr/share/locale/\" -DCONFDIR=\"/etc/tuxpaint\" 
-DVER_VERSION=\"0.0.13\" -DVER_DATE=\"2017-10-18\" -Wdate-time 
-D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat 
-Werror=format-security -c src/tuxpaint-config2.cxx -o obj/tuxpaint-config2.o
msgfmt -o trans/ka.mo src/po/ka.po
msgfmt -o trans/ja.mo src/po/ja.po
msgfmt -o trans/eo.mo src/po/eo.po
msgfmt -o trans/tr.mo src/po/tr.po
msgfmt -o trans/fr.mo src/po/fr.po
msgfmt -o trans/sr.mo src/po/sr.po
Compiling defaults.cxx
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security 
`fltk-config --cxxflags` -DDATA_PREFIX=\"/usr/share/tuxpaint-config/\" 
-D__SOUND -DDOC_PREFIX=\"/usr/share/doc/tuxpaint-config/\" 
-DLOCALEDIR=\"/usr/share/locale/\" -DCONFDIR=\"/etc/tuxpaint\" 
-DVER_VERSION=\"0.0.13\" -DVER_DATE=\"2017-10-18\" -Wdate-time 
-D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat 
-Werror=format-security -c src/defaults.cxx -o obj/defaults.o
msgfmt -o trans/pt.mo src/po/pt.po
msgfmt -o trans/da.mo src/po/da.po
msgfmt: error while opening "trans/hy.mo" for writing: No such file or directory
Makefile:379: recipe for target 'trans/hy.mo' failed
make[1]: *** [trans/hy.mo] Error 1


Fix is attached.
Description: Fix a parallel build FTBFS
 Files were sometimes written to trans/ before that directory was created.
Author: Adrian Bunk <[email protected]>

--- tuxpaint-config-0.0.13.orig/Makefile
+++ tuxpaint-config-0.0.13/Makefile
@@ -375,7 +375,7 @@ endif
 
 # Build the translation files for gettext
 
-$(MOFILES): trans/%.mo: src/po/%.po
+$(MOFILES): trans/%.mo: src/po/%.po trans
        msgfmt -o $@ $<
 
 .PHONY: translations

Reply via email to