GNOME Bugzilla – Bug 501066
Missing quotes around gtkdoc-rebase check cause a warning
Last modified: 2007-12-05 14:57:13 UTC
Hi, When building gtk-doc aware packages with --disable-gtk-doc in a chroot where gtk-doc isn't installed, the following test in gtk-doc.make causes a sh syntax warning: if test `which gtkdoc-rebase` != ""; then \ the warning is: /bin/sh: line 11: test: !=: unary operator expected I think the `which gtkdoc-rebase` should be within double quotes: if test "`which gtkdoc-rebase`" != ""; then Sample build logs with the error: http://buildd.debian.org/fetch.cgi?&pkg=glib2.0&ver=2.14.4-2&arch=alpha&stamp=1196340485&file=log Bye,
Created attachment 100051 [details] [review] Add double-quotes around ` which gtkdoc-rebase` to prevent the warning
Thanks for spotting and patch! 2007-12-02 Loïc Minier <lool@dooz.org> * gtk-doc.make: * gtk-doc.notmpl.make: Add double-quotes around `which gtkdoc-rebase` to prevent "test" from failing with "/bin/sh: line 11: test: !=: unary operator expected ". Fixes #501066.
*** Bug 501617 has been marked as a duplicate of this bug. ***
Bug 501617 is not a duplicate of this bug.
Better fix according to Bug 501617 committed.