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 565322 - glib2 does not install on Solaris
glib2 does not install on Solaris
Status: RESOLVED DUPLICATE of bug 562310
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other All
: Normal major
: ---
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-22 09:54 UTC by Jörn Clausen
Modified: 2008-12-29 19:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jörn Clausen 2008-12-22 09:54:33 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) ; \
Comment 1 Jörn Clausen 2008-12-22 10:02:05 UTC
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.
Comment 2 Matthias Clasen 2008-12-22 15:18:42 UTC
Makefile.in is a generated file. 

The offending code originates in gtk-doc.make.
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2008-12-29 19:59:32 UTC

*** This bug has been marked as a duplicate of 562310 ***