GNOME Bugzilla – Bug 780447
@datarootdir@ in python scripts are replaced with invalid paths
Last modified: 2017-03-24 12:49:27 UTC
In gtkdoc-mkhtml.in, several output variables are used to find installation directory at runtime: prefix='@prefix@' datarootdir='@datarootdir@' gtkdocdir='@datadir@/gtk-doc/data' styledir=gtkdocdir However, they are replaced with paths including shell variables, which cannot be expanded by python: prefix='/home/lantw44/gnome/devinstall' datarootdir='${prefix}/share' gtkdocdir='${datarootdir}/gtk-doc/data' styledir=gtkdocdir This causes error when building glib with --enable-gtk-doc: DOC Building HTML warning: failed to load external entity "${datarootdir}/gtk-doc/data/gtk-doc.xsl" cannot parse ${datarootdir}/gtk-doc/data/gtk-doc.xsl Traceback (most recent call last):
+ Trace 237287
document])
subprocess.check_call([xsltproc] + args)
raise CalledProcessError(retcode, cmd)
gmake[4]: *** [Makefile:943: html-build.stamp] Error 1 gmake[4]: Leaving directory '/home/lantw44/gnome/build/glib/docs/reference/glib' According to the documentation of autoconf ( https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Installation-Directory-Variables.html), installation directory variables can only be used in makefiles. They cannot be used in python scripts because they can have unexpanded variables.
Thanks for the report we've just migrated those from shell scripts and this was overlooked. It is *not* intentional. Patches in the other bug. *** This bug has been marked as a duplicate of bug 780497 ***