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 792148 - cmake: Installed GtkDocConfig.cmake has incorrect bindir path
cmake: Installed GtkDocConfig.cmake has incorrect bindir path
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: 1.28
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2018-01-03 05:03 UTC by Bruce Mitchener
Modified: 2018-01-10 18:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix for this issue. (1.55 KB, patch)
2018-01-03 05:03 UTC, Bruce Mitchener
committed Details | Review
cmake: Correctly perform bindir substitution. (1.62 KB, patch)
2018-01-10 18:50 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
committed Details | Review

Description Bruce Mitchener 2018-01-03 05:03:21 UTC
Created attachment 366234 [details] [review]
Fix for this issue.

This fixes the issue mentioned in #776205.

The generated and installed `GtkDocConfig.cmake` had `@bindir@` being replaced with `${exec_prefix}/bin` by `configure.ac`. This is because the path substitutions used by autoconf are what they are so that they can be overridden like `make install exec_prefix=...`. In this case though, we need the actual expanded path, so the best way to do that is by doing the substitution ourselves in the Makefile.
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2018-01-10 18:50:43 UTC
The following fix has been pushed:
5f7b443 cmake: Correctly perform bindir substitution.
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2018-01-10 18:50:52 UTC
Created attachment 366612 [details] [review]
cmake: Correctly perform bindir substitution.

In the installed cmake config files, the bindir path needs to be
absolute and without using the exec_prefix variable.
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2018-01-10 18:52:08 UTC
Thanks!