[geocode-glib] Symlink geocode-glib.h into subdir to avoid breakage
- From: Andreas Henriksson <ah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] Symlink geocode-glib.h into subdir to avoid breakage
- Date: Wed, 10 Jul 2013 08:38:08 +0000 (UTC)
commit 76baed43692552cc362525a6f5b72bd0d5926d3e
Author: Andreas Henriksson <andreas fatal se>
Date: Sun Jul 7 20:54:26 2013 +0200
Symlink geocode-glib.h into subdir to avoid breakage
Atleast geoclue2 does #include <geocode-glib.h>
which will break with the new api-versioned
include path with additional subdirectory.
This is a workaround to avoid causing breakage
until everyone has updated their include paths.
https://bugzilla.gnome.org/show_bug.cgi?id=703571
geocode-glib/Makefile.am | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/geocode-glib/Makefile.am b/geocode-glib/Makefile.am
index 0e330e3..892fea6 100644
--- a/geocode-glib/Makefile.am
+++ b/geocode-glib/Makefile.am
@@ -67,6 +67,13 @@ geocode-enum-types.c: $(GCGLIB_HEADER_FILES) geocode-enum-types.h
--vtail " { 0, NULL, NULL }\n };\n etype = g_ type@_register_static (\"@EnumName
\", values);\n }\n return etype;\n}\n" $^ > xgen-$(@F) \
&& mv -f xgen-$(@F) $@)
+# Symlink geocode-glib.h into the new subdirectory. This is to avoid breaking
+# users like geoclue2 who does "#include <geocode-glib.h>" which used
+# to be fine. Drop this when everyone who didn't already has changed to
+# use "#include <geocode-glib/geocode-glib.h>" instead.
+install-exec-hook:
+ cd $(DESTDIR)/$(gcglibdir)/.. && $(LN_S) geocode-glib/geocode-glib.h
+
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --warn-all --add-include-path=$(top_srcdir)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]