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

Proposed by Iain Lane
Status: Merged
Approved by: Renato Araujo Oliveira Filho
Approved revision: 93
Merged at revision: 84
Proposed branch: lp:~laney/qtorganizer5-eds/eds3.16
Merge into: lp:qtorganizer5-eds
Diff against target: 179 lines (+40/-26)
9 files modified
CMakeLists.txt (+11/-5)
config.h.in (+13/-4)
debian/control (+2/-2)
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/-1)
tests/unittest/run-eds-test.sh (+5/-5)
To merge this branch: bzr merge lp:~laney/qtorganizer5-eds/eds3.16
Reviewer Review Type Date Requested Status
Renato Araujo Oliveira Filho (community) Approve
PS Jenkins bot continuous-integration Needs Fixing
Ubuntu Phablet Team Pending
Review via email: mp+262331@code.launchpad.net

Commit message

Adapt to API changes and new D-Bus service names in e-d-s 3.16

Description of the change

Test built in https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/landing-028/+packages

This FAILS TO BULID due to a test failure. I don't know the code well enough to fix it - could you help please?

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

Which ubuntu version contains this eds version?

Revision history for this message
Iain Lane (laney) wrote :

On Thu, Jun 18, 2015 at 01:14:55PM -0000, Renato Araujo Oliveira Filho wrote:
> Which ubuntu version contains this eds version?

The referenced silo does: ppa:ci-train-ppa-service/landing-028

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Revision history for this message
Iain Lane (laney) wrote :

Hey Renato,

On Thu, Jun 18, 2015 at 01:21:26PM -0000, Iain Lane wrote:
> On Thu, Jun 18, 2015 at 01:14:55PM -0000, Renato Araujo Oliveira Filho wrote:
> > Which ubuntu version contains this eds version?
>
> The referenced silo does: ppa:ci-train-ppa-service/landing-028

Do you think there's any chance you will be able to take a look at this
soon?

Thanks :-)

Cheers,

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

Thanks for the MR, and sorry for take so long to give it a try. I am very busy right now with contacts sync.

I spent a long time debugging the problem, unfortunately I was unable to fix it yet. I am afraid that it is a evolution bug, but I will need more time to confirm that.

While I was working on it I did some changes[1] on your MR to keep it compatible vivid. (feel free to merge it on your MR if you think that is valid).

lp:~laney/qtorganizer5-eds/eds3.16 updated
91. By Iain Lane

merge lp:~renatofilho/qtorganizer5-eds/eds3.16-vivid to stay compatible with vivid + wily

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

Looks good. Just a small comment. Check the inline comments

lp:~laney/qtorganizer5-eds/eds3.16 updated
92. By Iain Lane

Build with e-d-s 3.12 too

Revision history for this message
Iain Lane (laney) wrote :

On Thu, Jul 23, 2015 at 01:43:25PM -0000, Renato Araujo Oliveira Filho wrote:
> > + libedataserver1.2-dev (>= 3.16),
>
> Could we change that to the version present in vivid?

Yeah OK, done!

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

> On Thu, Jul 23, 2015 at 01:43:25PM -0000, Renato Araujo Oliveira Filho wrote:
> > > + libedataserver1.2-dev (>= 3.16),
> >
> > Could we change that to the version present in vivid?
>
> Yeah OK, done!
>
Could you do the same for: libecal1.2-dev (>= 3.16),

lp:~laney/qtorganizer5-eds/eds3.16 updated
93. By Iain Lane

And for libecal

Revision history for this message
Iain Lane (laney) wrote :

On Thu, Jul 23, 2015 at 02:06:18PM -0000, Renato Araujo Oliveira Filho wrote:
> > On Thu, Jul 23, 2015 at 01:43:25PM -0000, Renato Araujo Oliveira Filho wrote:
> > > > + libedataserver1.2-dev (>= 3.16),
> > >
> > > Could we change that to the version present in vivid?
> >
> > Yeah OK, done!
> >
> Could you do the same for: libecal1.2-dev (>= 3.16),

I already did (in two commits), just triggered a build for that.

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

looks good to me.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2015-03-30 17:59:13 +0000
+++ CMakeLists.txt 2015-07-23 14:16:00 +0000
@@ -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.Sources3")
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 2014-05-26 20:43:55 +0000
+++ config.h.in 2015-07-23 14:16:00 +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.Calendar4"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 'debian/control'
--- debian/control 2014-09-22 14:20:47 +0000
+++ debian/control 2015-07-23 14:16:00 +0000
@@ -4,8 +4,8 @@
4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5Build-Depends: cmake (>= 2.8.9),5Build-Depends: cmake (>= 2.8.9),
6 debhelper (>= 9),6 debhelper (>= 9),
7 libecal1.2-dev,7 libecal1.2-dev (>= 3.12),
8 libedataserver1.2-dev,8 libedataserver1.2-dev (>= 3.12),
9 qt5-default,9 qt5-default,
10 qt5-qmake,10 qt5-qmake,
11 qtbase5-dev,11 qtbase5-dev,
1212
=== modified file 'organizer/CMakeLists.txt'
--- organizer/CMakeLists.txt 2014-02-25 17:12:32 +0000
+++ organizer/CMakeLists.txt 2015-07-23 14:16:00 +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-23 14:16:00 +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-04-09 15:16:39 +0000
+++ organizer/qorganizer-eds-source-registry.cpp 2015-07-23 14:16:00 +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, 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-23 14:16:00 +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-04-09 14:00:57 +0000
+++ tests/unittest/eds-base-test.cpp 2015-07-23 14:16:00 +0000
@@ -90,7 +90,7 @@
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 0,95 0,
96 &error));96 &error));
9797
=== modified file 'tests/unittest/run-eds-test.sh'
--- tests/unittest/run-eds-test.sh 2015-04-09 19:05:11 +0000
+++ tests/unittest/run-eds-test.sh 2015-07-23 14:16:00 +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.Calendar4 \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.Sources3 -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

to all changes: