Commit Graph

18 Commits

Author SHA1 Message Date
Patrick Ohly 7a2c76607d .gitignore: ignore test-driver
autotools started creating that after the recent update to Ubuntu
Trusty as main build platform.
2016-11-08 07:47:05 -08:00
Patrick Ohly 340579cbdb Merge branch 'HARMATTAN-1-3-1'
Fetched the code and its history from the 1.3.1 archives at:
http://people.debian.org/~ovek/maemo/
http://people.debian.org/~ovek/harmattan/

Merged almost everything, except for Maemo/Harmattan specific build files:
  autogen-maemo.sh builddeb buildsrc debian

The following changes were also removed, because they are either local
workarounds or merge artifacts which probably also don't belong into
the Maemo/Harmattan branch:

diff --git a/configure.ac b/configure.ac
index cb66617..2c4403c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,7 +44,7 @@ if test "$enable_release_mode" = "yes"; then
    AC_DEFINE(SYNCEVOLUTION_STABLE_RELEASE, 1, [binary is meant for end-users])
 fi

-AM_INIT_AUTOMAKE([1.11.1 tar-ustar silent-rules subdir-objects -Wno-portability])
+AM_INIT_AUTOMAKE([subdir-objects -Wno-portability])

 AM_PROG_CC_C_O

diff --git a/src/backends/webdav/CalDAVSource.cpp b/src/backends/webdav/CalDAVSource.cpp
index decd170..7d338ac 100644
--- a/src/backends/webdav/CalDAVSource.cpp
+++ b/src/backends/webdav/CalDAVSource.cpp
@@ -1282,6 +1282,7 @@ void CalDAVSource::Event::fixIncomingCalendar(icalcomponent *calendar)
     // time.
     bool ridInUTC = false;
     const icaltimezone *zone = NULL;
+    icalcomponent *parent = NULL;

     for (icalcomponent *comp = icalcomponent_get_first_component(calendar, ICAL_VEVENT_COMPONENT);
          comp;
@@ -1295,6 +1296,7 @@ void CalDAVSource::Event::fixIncomingCalendar(icalcomponent *calendar)
         // is parent event? -> remember time zone unless it is UTC
         static const struct icaltimetype null = { 0 };
         if (!memcmp(&rid, &null, sizeof(null))) {
+            parent = comp;
             struct icaltimetype dtstart = icalcomponent_get_dtstart(comp);
             if (!icaltime_is_utc(dtstart)) {
                 zone = icaltime_get_timezone(dtstart);
diff --git a/src/backends/webdav/CalDAVSource.h b/src/backends/webdav/CalDAVSource.h
index 517ac2f..fa7c2ca 100644
--- a/src/backends/webdav/CalDAVSource.h
+++ b/src/backends/webdav/CalDAVSource.h
@@ -45,6 +45,10 @@ class CalDAVSource : public WebDAVSource,
     virtual void removeMergedItem(const std::string &luid);
     virtual void flushItem(const string &uid);
     virtual std::string getSubDescription(const string &uid, const string &subid);
+    virtual void updateSynthesisInfo(SynthesisInfo &info,
+                                     XMLConfigFragments &fragments) {
+        info.m_backendRule = "HAVE-SYNCEVOLUTION-EXDATE-DETACHED";
+    }

     // implementation of SyncSourceLogging callback
     virtual std::string getDescription(const string &luid);

Making SySync_ConsolePrintf a real instance inside SyncEvolution leads
to link errors in other configurations. It really has to be extern. Added
a comment to the master branch to make that more obvious:

-extern "C" { // without curly braces, g++ 4.2 thinks the variable is extern
-    int (*SySync_ConsolePrintf)(FILE *stream, const char *format, ...);
-}
+// This is just the declaration. The actual function pointer instance
+// is inside libsynthesis, which, for historic purposes, doesn't define
+// it in its header files (yet).
+extern "C" int (*SySync_ConsolePrintf)(FILE *stream, const char *format, ...);
2012-11-01 19:13:58 +01:00
Patrick Ohly 2b6093441b gitignore: added *.pyc
Needed for testdbus.pyc.
2012-10-26 20:05:56 +02:00
Ove Kåven 0352113e8d Merge tag 'syncevolution-1-2-99-4' into FREMANTLE-1-2-99-4 2012-08-12 19:34:03 +02:00
Ove Kåven 8aff8fab34 Remove INSTALL file from version control. 2012-08-05 04:05:01 +02:00
Ove Kåven c4b73b49ff Merge tag 'syncevolution-1-2-99-3' into FREMANTLE-1-2-99-3 2012-08-05 04:02:44 +02:00
Patrick Ohly cd2b115040 autotools: let autogen.sh install the INSTALL file
INSTALL is copied unmodified from the autotools when invoking
autogen.sh. No need to have it in git; that just leads to diffs when
using more recent autotools.
2012-08-02 14:00:48 +02:00
Patrick Ohly d1db2d30a1 Buteo: removed from source code
Pseudo-backend (really more like a plugin for Buteo) and testing
framework changes were removed because Buteo is obsolete.
2012-05-22 15:02:59 +02:00
Krzesimir Nowak a7ad98fabc Port build system to non-recursive Automake.
All but toplevel Makefile.am are replaced with their non-recursive
counterparts. The generation of configure.in was removed (and thus
configure-{pre,post}.in are also removed) in favor of configure.ac
and m4 macros adding backend specific configure parts.

Version number is generated like in old build system.

There are still many things to improve, but for now there are no
immediate regressions. AUTOTOOLS-TODO contains a list of possible
improvements and fixes. AUTOTOOLS-TESTING contains what was tested
with current build system (configure flags, make options).
2011-08-30 16:38:34 +02:00
Ove Kåven beb9f5d51f Merge commit 'syncevolution-1-1-99-4' into FREMANTLE-1-1-99-4 2011-06-19 17:24:37 +02:00
Patrick Ohly 3dc7b5fb17 added .gitignore entries for locally created files
This should be enough to keep "git" happy after a compilation inside
the source directory. Kudos to Sascha Peilicke for the original
patch.
2011-04-13 10:34:14 +02:00
Ove Kaaven fbedce32ca Ignore some stuff in the Maemo build. 2010-07-20 18:32:05 +02:00
Patrick Ohly 67e3448355 .gitignore: fixes for .gitignore and .patch
.gitignore itself is under git control and thus should not be ignored.

*.patch was too broad and ignored files which have to be tracked by
git, like test/testcases/*.patch. Now it only matches patch files in
the top-level directory, like the ones which might be created there by
"git format-patch".
2010-03-18 11:52:43 +01:00
Patrick Ohly 2a3c735b43 LINGUAS: create automatically as part of autogen.sh/gen-autotools.sh
Manually updating the LINGUAS file is error prone because new
translations can be added at any time via translate.moblin.org.
Better create the file automatically on each build/release.
2009-10-02 17:27:45 +02:00
Patrick Ohly b7f06f02b6 sync.desktop: fixed "make dist" after recent rename
The file which has to be distributed is "sync.desktop.in" now,
not "sync.desktop".
2009-07-13 14:32:10 +02:00
Patrick Ohly d1a2631e28 compilation: fixes + installation of client-test + version bump
Removed a spurious package check for synthesis which was reintroduced
during the recent code cleanup and merging.

Fixed compilation with --enable-unit-tests and/or --enable-integration-tests.
CPPUnit header files were not included properly.

When at least one of these enable options is used, client-test is built
as part of the normal "make all" and installed in bindir as part of
"make install". The test files go into the docdir.
2009-03-25 14:43:49 +01:00
Patrick Ohly 18d17c2b19 .gitignore: ignore patches 2009-03-25 14:43:35 +01:00
Patrick Ohly 015090c128 ignore autotools files 2009-03-25 14:43:32 +01:00