Merge lp:~renatofilho/qtorganizer5-eds/eds3.16-vivid into lp:~laney/qtorganizer5-eds/eds3.16

Proposed by Renato Araujo Oliveira Filho
Status: Merged
Merged at revision: 91
Proposed branch: lp:~renatofilho/qtorganizer5-eds/eds3.16-vivid
Merge into: lp:~laney/qtorganizer5-eds/eds3.16
Diff against target: 177 lines (+40/-27)
8 files modified
CMakeLists.txt (+13/-7)
config.h.in (+13/-4)
organizer/CMakeLists.txt (+1/-1)
organizer/qorganizer-eds-engine.cpp (+2/-5)
organizer/qorganizer-eds-source-registry.cpp (+3/-1)
tests/unittest/CMakeLists.txt (+2/-2)
tests/unittest/eds-base-test.cpp (+1/-2)
tests/unittest/run-eds-test.sh (+5/-5)
To merge this branch: bzr merge lp:~renatofilho/qtorganizer5-eds/eds3.16-vivid
Reviewer Review Type Date Requested Status
Iain Lane Pending
Review via email: mp+264657@code.launchpad.net

Commit message

Make sure that vivid build still working.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2015-06-18 11:32:43 +0000
+++ CMakeLists.txt 2015-07-14 00:56:12 +0000
@@ -13,8 +13,8 @@
1313
14pkg_check_modules(GLIB REQUIRED glib-2.0>=2.32)14pkg_check_modules(GLIB REQUIRED glib-2.0>=2.32)
15pkg_check_modules(GIO REQUIRED gio-2.0>=2.32)15pkg_check_modules(GIO REQUIRED gio-2.0>=2.32)
16pkg_check_modules(EDATASERVER REQUIRED libedataserver-1.2>=3.16)16pkg_check_modules(EDATASERVER REQUIRED libedataserver-1.2>=3.8)
17pkg_check_modules(ECAL REQUIRED REQUIRED libecal-1.2>=3.16)17pkg_check_modules(ECAL REQUIRED REQUIRED libecal-1.2>=3.8)
1818
19set(CMAKE_INCLUDE_CURRENT_DIR ON)19set(CMAKE_INCLUDE_CURRENT_DIR ON)
20set(CMAKE_AUTOMOC ON)20set(CMAKE_AUTOMOC ON)
@@ -64,13 +64,19 @@
64 PATHS /usr/lib/evolution/)64 PATHS /usr/lib/evolution/)
65find_program(GVFSD gvfsd65find_program(GVFSD gvfsd
66 PATHS /usr/lib/gvfs/)66 PATHS /usr/lib/gvfs/)
67
68if(EDATASERVER_VERSION VERSION_LESS "3.16")
69 set(EVOLUTION_API_3_17 "0")
70 set(EVOLUTION_SOURCE_SERVICE_NAME "org.gnome.evolution.dataserver.Sources3")
71 set(EVOLUTION_CALENDAR_SERVICE_NAME "org.gnome.evolution.dataserver.Calendar4")
72else()
73 set(EVOLUTION_API_3_17 "1")
74 set(EVOLUTION_SOURCE_SERVICE_NAME "org.gnome.evolution.dataserver.Sources4")
75 set(EVOLUTION_CALENDAR_SERVICE_NAME "org.gnome.evolution.dataserver.Calendar7")
76endif()
77
67configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)78configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
6879
69OPTION(EVOLUTION_SOURCE_SERVICE_NAME "DBus name for source registry")
70if(NOT EVOLUTION_SOURCE_SERVICE_NAME)
71 set(EVOLUTION_SOURCE_SERVICE_NAME "org.gnome.evolution.dataserver.Sources4")
72endif()
73
74add_subdirectory(organizer)80add_subdirectory(organizer)
75if(DBUS_RUNNER)81if(DBUS_RUNNER)
76 if(EVOLUTION_CALENDAR_FACTORY)82 if(EVOLUTION_CALENDAR_FACTORY)
7783
=== modified file 'config.h.in'
--- config.h.in 2015-06-18 11:32:43 +0000
+++ config.h.in 2015-07-14 00:56:12 +0000
@@ -1,9 +1,18 @@
1#ifndef __CONFIG_H__1#ifndef __CONFIG_H__
2#define __CONFIG_H__2#define __CONFIG_H__
33
4#define TMP_DIR "@TMP_DIR@"4#define TMP_DIR "@TMP_DIR@"
5#define EVOLUTION_CALENDAR_FACTORY "@EVOLUTION_CALENDAR_FACTORY@"5#define EVOLUTION_CALENDAR_FACTORY "@EVOLUTION_CALENDAR_FACTORY@"
6#define EVOLUTION_CALENDAR_SERVICE "org.gnome.evolution.dataserver.Calendar7"6#define EVOLUTION_CALENDAR_SERVICE_NAME "@EVOLUTION_CALENDAR_SERVICE@"
7#define QORGANIZER_DEV_PATH "@CMAKE_BINARY_DIR@"7#define QORGANIZER_DEV_PATH "@CMAKE_BINARY_DIR@"
8#define EVOLUTION_API_3_17 @EVOLUTION_API_3_17@
9
10#if EVOLUTION_API_3_17
11 #define E_CAL_CLIENT_CONNECT_SYNC(SOURCE, SOURCE_TYPE, CANCELLABLE, ERROR) \
12 e_cal_client_connect_sync(SOURCE, SOURCE_TYPE, -1, CANCELLABLE, ERROR)
13#else
14 #define E_CAL_CLIENT_CONNECT_SYNC(SOURCE, SOURCE_TYPE, CANCELLABLE, ERROR) \
15 e_cal_client_connect_sync(SOURCE, SOURCE_TYPE, CANCELLABLE, ERROR)
16#endif
817
9#endif18#endif
1019
=== modified file 'organizer/CMakeLists.txt'
--- organizer/CMakeLists.txt 2014-02-25 17:12:32 +0000
+++ organizer/CMakeLists.txt 2015-07-14 00:56:12 +0000
@@ -49,7 +49,7 @@
49)49)
5050
51include_directories(51include_directories(
52 ${CMAKE_SOURCE_DIR}52 ${CMAKE_BINARY_DIR}
53 ${GLIB_INCLUDE_DIRS}53 ${GLIB_INCLUDE_DIRS}
54 ${GIO_INCLUDE_DIRS}54 ${GIO_INCLUDE_DIRS}
55 ${ECAL_INCLUDE_DIRS}55 ${ECAL_INCLUDE_DIRS}
5656
=== modified file 'organizer/qorganizer-eds-engine.cpp'
--- organizer/qorganizer-eds-engine.cpp 2015-05-08 20:01:32 +0000
+++ organizer/qorganizer-eds-engine.cpp 2015-07-14 00:56:12 +0000
@@ -1944,12 +1944,9 @@
1944{1944{
1945 rule->freq = ICAL_MONTHLY_RECURRENCE;1945 rule->freq = ICAL_MONTHLY_RECURRENCE;
19461946
1947 QList<int> daysOfMonth = qRule.daysOfMonth().toList();
1948 int c = 0;1947 int c = 0;
1949 for (int d=1; d < ICAL_BY_MONTHDAY_SIZE; d++) {1948 Q_FOREACH(int daysOfMonth, qRule.daysOfMonth()) {
1950 if (daysOfMonth.contains(d)) {1949 rule->by_month_day[c++] = daysOfMonth;
1951 rule->by_month_day[c++] = d;
1952 }
1953 }1950 }
1954 for (int d = c; d < ICAL_BY_MONTHDAY_SIZE; d++) {1951 for (int d = c; d < ICAL_BY_MONTHDAY_SIZE; d++) {
1955 rule->by_month_day[d] = ICAL_RECURRENCE_ARRAY_MAX;1952 rule->by_month_day[d] = ICAL_RECURRENCE_ARRAY_MAX;
19561953
=== modified file 'organizer/qorganizer-eds-source-registry.cpp'
--- organizer/qorganizer-eds-source-registry.cpp 2015-06-18 11:39:48 +0000
+++ organizer/qorganizer-eds-source-registry.cpp 2015-07-14 00:56:12 +0000
@@ -1,4 +1,5 @@
1#include "qorganizer-eds-source-registry.h"1#include "qorganizer-eds-source-registry.h"
2#include "config.h"
23
3#include <QtCore/QDebug>4#include <QtCore/QDebug>
45
@@ -177,7 +178,8 @@
177 QOrganizerEDSCollectionEngineId *eid = m_collectionsMap[collectionId];178 QOrganizerEDSCollectionEngineId *eid = m_collectionsMap[collectionId];
178 if (eid) {179 if (eid) {
179 GError *gError = 0;180 GError *gError = 0;
180 client = e_cal_client_connect_sync(eid->m_esource, eid->m_sourceType, -1, 0, &gError);181
182 client = E_CAL_CLIENT_CONNECT_SYNC(eid->m_esource, eid->m_sourceType, 0, &gError);
181 if (gError) {183 if (gError) {
182 qWarning() << "Fail to connect with client" << gError->message;184 qWarning() << "Fail to connect with client" << gError->message;
183 g_error_free(gError);185 g_error_free(gError);
184186
=== modified file 'tests/unittest/CMakeLists.txt'
--- tests/unittest/CMakeLists.txt 2015-05-08 20:01:32 +0000
+++ tests/unittest/CMakeLists.txt 2015-07-14 00:56:12 +0000
@@ -22,8 +22,8 @@
2222
23 add_test(${TESTNAME}23 add_test(${TESTNAME}
24 ${CMAKE_CURRENT_SOURCE_DIR}/run-eds-test.sh ${DBUS_RUNNER} ${CMAKE_CURRENT_BINARY_DIR}/${TESTNAME} ${TESTNAME}24 ${CMAKE_CURRENT_SOURCE_DIR}/run-eds-test.sh ${DBUS_RUNNER} ${CMAKE_CURRENT_BINARY_DIR}/${TESTNAME} ${TESTNAME}
25 ${EVOLUTION_CALENDAR_FACTORY} ${EVOLUTION_SOURCE_SERVICE_NAME}25 ${EVOLUTION_CALENDAR_FACTORY} ${EVOLUTION_CALENDAR_SERVICE_NAME}
26 ${EVOLUTION_SOURCE_REGISTRY}26 ${EVOLUTION_SOURCE_REGISTRY} ${EVOLUTION_SOURCE_SERVICE_NAME}
27 ${GVFSD})27 ${GVFSD})
28endmacro(declare_test testname)28endmacro(declare_test testname)
2929
3030
=== modified file 'tests/unittest/eds-base-test.cpp'
--- tests/unittest/eds-base-test.cpp 2015-06-18 11:39:48 +0000
+++ tests/unittest/eds-base-test.cpp 2015-07-14 00:56:12 +0000
@@ -90,9 +90,8 @@
90 calendar.reset(e_source_registry_ref_source(sourceRegistry.data(),90 calendar.reset(e_source_registry_ref_source(sourceRegistry.data(),
91 collectionId.toString().toUtf8().data()));91 collectionId.toString().toUtf8().data()));
92 }92 }
93 GScopedPointer<EClient> client(e_cal_client_connect_sync(calendar.data(),93 GScopedPointer<EClient> client(E_CAL_CLIENT_CONNECT_SYNC(calendar.data(),
94 E_CAL_CLIENT_SOURCE_TYPE_EVENTS,94 E_CAL_CLIENT_SOURCE_TYPE_EVENTS,
95 -1, /* timeout */
96 0,95 0,
97 &error));96 &error));
98 if (error) {97 if (error) {
9998
=== modified file 'tests/unittest/run-eds-test.sh'
--- tests/unittest/run-eds-test.sh 2015-06-18 10:41:05 +0000
+++ tests/unittest/run-eds-test.sh 2015-07-14 00:56:12 +0000
@@ -7,8 +7,9 @@
7echo ARG4=$4 # full executable path of evolution-calendar-factory7echo ARG4=$4 # full executable path of evolution-calendar-factory
8echo ARG5=$5 # bus service name of calendar factory8echo ARG5=$5 # bus service name of calendar factory
9echo ARG6=$6 # full exectuable path of evolution-source-registry9echo ARG6=$6 # full exectuable path of evolution-source-registry
10echo ARG7=$7 # full executable path of gvfs10echo ARG7=$7 # bus service name of evolution-source-registry
11echo ARG8=$8 # config files11echo ARG7=$8 # full executable path of gvfs
12echo ARG8=$9 # config files
1213
13# set up the tmpdir and tell the shell to purge it when we exit14# set up the tmpdir and tell the shell to purge it when we exit
14export TEST_TMP_DIR=$(mktemp -p "${TMPDIR:-/tmp}" -d $3-XXXXXXXXXX) || exit 115export TEST_TMP_DIR=$(mktemp -p "${TMPDIR:-/tmp}" -d $3-XXXXXXXXXX) || exit 1
@@ -38,10 +39,9 @@
3839
39# run dbus-test-runner40# run dbus-test-runner
40$1 --keep-env --max-wait=90 \41$1 --keep-env --max-wait=90 \
41--task $2 --task-name $3 --wait-until-complete --wait-for=org.gnome.evolution.dataserver.Calendar7 \42--task $2 --task-name $3 --wait-until-complete --wait-for=$5 \
42--task $4 --task-name "evolution" --wait-until-complete --wait-for=org.gnome.evolution.dataserver.Sources4 -r \43--task $4 --task-name "evolution" --wait-until-complete --wait-for=$7 -r \
43--task $6 --task-name "source-registry" -r44--task $6 --task-name "source-registry" -r
44#--task $7 --task-name "gvfsd" -r
45rv=$?45rv=$?
4646
47# if the test passed, blow away the tmpdir47# if the test passed, blow away the tmpdir

Subscribers

People subscribed via source and target branches