GNOME Bugzilla – Bug 701259
/bin/bash: -chmod: command not found
Last modified: 2013-08-19 15:23:46 UTC
This is in gtk-doc.make, line 160: https://git.gnome.org/browse/gtk-doc/tree/gtk-doc.make#n160 This bug was introduced with commit 57fecd7d1c9a2bec079439fd391df9178d1c8732. Previously the "-" was used to keep going on errors and was removed from similar lines in that commit, not sure whether the wise thing would be to do the same here or find a replacement for that functionality with silent rules
As a side note, I think that chmod'ding the source tree as part of the build process is a sign of serious brokenness, but let's forget about that for a moment. The fix is trivial: diff --git build/docs/gudev/Makefile~ build/docs/gudev/Makefile index 186be97..81a535d 100644 --- build/docs/gudev/Makefile~ +++ build/docs/gudev/Makefile @@ -789,7 +789,7 @@ $(srcdir)/tmpl/*.sgml: @true sgml-build.stamp: tmpl.stamp $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content - $(GTK_DOC_V_XML)-chmod -R u+w $(srcdir) && _source_dir='' ; \ + -$(GTK_DOC_V_XML)chmod -R u+w $(srcdir) && _source_dir='' ; \ for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \
The chmod is only in the old deprecated tmpl build. You can use gtkdocize --flavour no-tmpl to not use imtermediate tmpl files. This makes the doc generation also a tad faster. commit 6f04348705e4fe05a30ca3bbf9bef27749e24b14 Author: Stefan Sauer <ensonic@users.sf.net> Date: Sun Aug 18 13:07:41 2013 +0200 gtk-doc.make: Fix "-chmod: command not found" Move the '-' before the silence var. Fixes #701259.
Thanks. Good to know about --flavour no-tmpl, we'll use that.