GNOME Bugzilla – Bug 565322
glib2 does not install on Solaris
Last modified: 2008-12-29 19:59:32 UTC
Please describe the problem: glib-2.18.3/docs/reference/glib/Makefile.in contains this code ! which gtkdoc-rebase >/dev/null 2>&1 || \ gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir} ; \ If gtkdoc-rebase is missing, this breaks on Solaris, as /usr/bin/which does not set an exit code, if the requested program cannot be found. Steps to reproduce: 1. 2. 3. Actual results: "make install" exits with an error, leaving behind a half installed package Expected results: "make install" succeeds Does this happen every time? yes Other information: The corresponding code in glib 2.18.0 did work: which gtkdoc-rebase >/dev/null && \ gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) ; \
Ah, see 562310. And of course this does not fall into the responsibility of gtk-doc. The code in glib2 to test the availability of gtkdoc-rebase is broken (on at least two OSes). There is little a non-existent program can do to fix this problem.
Makefile.in is a generated file. The offending code originates in gtk-doc.make.
*** This bug has been marked as a duplicate of 562310 ***