Generate the same C code whether the eds backend is enabled or not.
authorTravis Reitter <travis.reitter@collabora.co.uk>
Thu, 27 Oct 2011 00:30:37 +0000 (17:30 -0700)
committerTravis Reitter <travis.reitter@collabora.co.uk>
Fri, 28 Oct 2011 16:14:39 +0000 (09:14 -0700)
Previously, the configure options used would alter the release tarball.

This would cause problems for anyone building from the shipped C files
(specifically, if they also disabled the eds backend, as the Debian
packagers did).

Closes: bgo#662274 - Failed to link personas: Can't link personas with
no primary store.

NEWS
folks/individual-aggregator.vala

diff --git a/NEWS b/NEWS
index 6113612..fa24e5f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,8 @@ Bugs fixed:
 * Bug 660908 — Add favourites support to EDS backend
 * Bug 662770 — ContactPhotos are ignored when mime type is null
 * Bug 662616 — We should set mime type when setting an EContact's photo
+* Bug 662274 — Failed to link personas: Can't link personas with no primary
+  store.
 
 API changes:
 * Add AbstractFieldDetails.id to identify instances of details
index d8df003..f1eeaba 100644 (file)
@@ -303,13 +303,16 @@ public class Folks.IndividualAggregator : Object
       else
         {
           debug ("Setting primary store IDs to defaults.");
-#if ENABLE_EDS
-          this._configured_primary_store_type_id = "eds";
-          this._configured_primary_store_id = "system";
-#else
-          this._configured_primary_store_type_id = "key-file";
-          this._configured_primary_store_id = "";
-#endif
+          if (BuildConf.HAVE_EDS)
+            {
+              this._configured_primary_store_type_id = "eds";
+              this._configured_primary_store_id = "system";
+            }
+          else
+            {
+              this._configured_primary_store_type_id = "key-file";
+              this._configured_primary_store_id = "";
+            }
 
           try
             {