After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 701259 - /bin/bash: -chmod: command not found
/bin/bash: -chmod: command not found
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: 1.20
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2013-05-30 10:21 UTC by Jens Georg
Modified: 2013-08-19 15:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jens Georg 2013-05-30 10:21:27 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
Comment 1 zbyszek 2013-07-12 15:44:30 UTC
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 ; \
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2013-08-18 11:11:02 UTC
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.
Comment 3 zbyszek 2013-08-19 15:23:46 UTC
Thanks. Good to know about --flavour no-tmpl, we'll use that.