Merge lp:~unity-team/unity/unity-7.4.0-bump into lp:unity

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Andrea Azzarone
Approved revision: no longer in the source branch.
Merged at revision: 4029
Proposed branch: lp:~unity-team/unity/unity-7.4.0-bump
Merge into: lp:unity
Prerequisite: lp:~unity-team/unity/unity-7.3.3
Diff against target: 325 lines (+95/-71)
8 files modified
CMakeLists.txt (+68/-55)
UnityCore/Scope.h (+1/-1)
dash/previews/CMakeLists.txt (+6/-6)
debian/changelog (+7/-0)
debian/control (+1/-1)
debian/rules (+3/-2)
launcher/LauncherController.cpp (+4/-0)
unity-shared/BamfApplicationManager.cpp (+5/-6)
To merge this branch: bzr merge lp:~unity-team/unity/unity-7.4.0-bump
Reviewer Review Type Date Requested Status
Andrea Azzarone (community) Approve
Review via email: mp+275746@code.launchpad.net

Commit message

Bump version to 7.4.0

To post a comment you must log in.
Revision history for this message
Andrea Azzarone (azzar1) :
review: Approve
Revision history for this message
Andrea Azzarone (azzar1) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2015-11-05 11:17:32 +0000
3+++ CMakeLists.txt 2015-11-05 11:17:32 +0000
4@@ -9,8 +9,8 @@
5 #
6 set (PROJECT_NAME "unity")
7 set (UNITY_MAJOR 7)
8-set (UNITY_MINOR 3)
9-set (UNITY_MICRO 3)
10+set (UNITY_MINOR 4)
11+set (UNITY_MICRO 0)
12 set (UNITY_VERSION "${UNITY_MAJOR}.${UNITY_MINOR}.${UNITY_MICRO}")
13 set (UNITY_API_VERSION "6.0")
14 set (UNITY_COMPONENTS_VERSION "6")
15@@ -25,6 +25,12 @@
16 ON
17 )
18
19+option(
20+ ENABLE_UNIT_TESTS
21+ "Enable Unity Unit Tests"
22+ ON
23+)
24+
25 # This is due to bug lp:668799 - qemu-arm segfaults executing msgmerge
26 option(
27 I18N_SUPPORT
28@@ -226,7 +232,7 @@
29 gtk+-3.0>=3.1
30 indicator3-0.4>=0.4.90
31 json-glib-1.0
32- libbamf3>=0.5.0
33+ libbamf3>=0.5.2
34 gnome-desktop-3.0
35 libnotify
36 libstartup-notification-1.0
37@@ -260,6 +266,7 @@
38 add_subdirectory(dash)
39 add_subdirectory(launcher)
40 add_subdirectory(data)
41+
42 if (ENABLE_X_SUPPORT)
43 add_subdirectory(hud)
44 add_subdirectory(lockscreen)
45@@ -273,65 +280,71 @@
46 add_subdirectory(unity-standalone)
47 endif ()
48
49-# subdirs
50 add_subdirectory(doc)
51-
52-# Check for google test and build it locally
53-set (
54- GMOCK_ROOT_DIR
55- "/usr/src/gmock"
56- CACHE
57- PATH
58- "Path to Google mock srcs"
59-)
60-
61-set (
62- GMOCK_INCLUDE_DIR
63- "/usr/include/gmock/include"
64- CACHE
65- PATH
66- "Path to Google mock include"
67-)
68-
69-set(
70- GTEST_ROOT_DIR
71- "${GMOCK_ROOT_DIR}/gtest" # Default value, adjustable by user with e.g., ccmake
72- CACHE
73- PATH
74- "Path to Google test srcs"
75-)
76-
77-set(
78- GTEST_INCLUDE_DIR
79- "${GMOCK_ROOT_DIR}/gtest/include"
80- CACHE
81- PATH
82- "Path to Google tests include"
83-)
84-
85-if (GTEST_INCLUDE_DIR AND GMOCK_INCLUDE_DIR)
86- include_directories (
87- ${GMOCK_INCLUDE_DIR}
88- ${GTEST_INCLUDE_DIR}
89- )
90- add_subdirectory(
91- ${GMOCK_ROOT_DIR}
92- "${CMAKE_CURRENT_BINARY_DIR}/gmock"
93- )
94-elseif (GTEST_INCLUDE_DIR AND NOT GMOCK_INCLUDE_DIR)
95- include_directories (
96- ${GTEST_INCLUDE_DIR}
97- )
98-endif(GTEST_INCLUDE_DIR AND GMOCK_INCLUDE_DIR)
99-
100 add_subdirectory(services)
101-add_subdirectory(tests)
102 add_subdirectory(tools)
103 add_subdirectory(UnityCore)
104 add_subdirectory(guides)
105-
106 add_subdirectory(gnome)
107
108+if (ENABLE_UNIT_TESTS)
109+ # Check for google test and build it locally
110+ set (
111+ GMOCK_ROOT_DIR
112+ "/usr/src/gmock"
113+ CACHE
114+ PATH
115+ "Path to Google mock srcs"
116+ )
117+
118+ set (
119+ GMOCK_INCLUDE_DIR
120+ "/usr/include/gmock/include"
121+ CACHE
122+ PATH
123+ "Path to Google mock include"
124+ )
125+
126+ set(
127+ GTEST_ROOT_DIR
128+ "${GMOCK_ROOT_DIR}/gtest" # Default value, adjustable by user with e.g., ccmake
129+ CACHE
130+ PATH
131+ "Path to Google test srcs"
132+ )
133+
134+ set(
135+ GTEST_INCLUDE_DIR
136+ "${GMOCK_ROOT_DIR}/gtest/include"
137+ CACHE
138+ PATH
139+ "Path to Google tests include"
140+ )
141+
142+ if (GTEST_INCLUDE_DIR AND GMOCK_INCLUDE_DIR)
143+ include_directories (
144+ ${GMOCK_INCLUDE_DIR}
145+ ${GTEST_INCLUDE_DIR}
146+ )
147+ add_subdirectory(
148+ ${GMOCK_ROOT_DIR}
149+ "${CMAKE_CURRENT_BINARY_DIR}/gmock"
150+ )
151+ elseif (GTEST_INCLUDE_DIR AND NOT GMOCK_INCLUDE_DIR)
152+ include_directories (
153+ ${GTEST_INCLUDE_DIR}
154+ )
155+ endif(GTEST_INCLUDE_DIR AND GMOCK_INCLUDE_DIR)
156+
157+ add_subdirectory(tests)
158+
159+else (ENABLE_UNIT_TESTS)
160+ set (MISSING_TESTS_MSG "-- Tests disabled, compile with -DENABLE_UNIT_TESTS=ON")
161+ add_custom_target (check COMMAND echo ${MISSING_TESTS_MSG})
162+ add_custom_target (check-headless COMMAND echo ${MISSING_TESTS_MSG})
163+ add_custom_target (gcheck COMMAND echo ${MISSING_TESTS_MSG})
164+endif (ENABLE_UNIT_TESTS)
165+
166 #
167 # GSettings Schema
168 #
169
170=== modified file 'UnityCore/Scope.h'
171--- UnityCore/Scope.h 2014-07-30 00:49:35 +0000
172+++ UnityCore/Scope.h 2015-11-05 11:17:32 +0000
173@@ -36,7 +36,7 @@
174 typedef enum
175 {
176 G_SCOPE_ERROR_NO_ACTIVATION_HANDLER = (1 << 0),
177- G_SCOPE_ERROR_INVALID_PREVIEW = (2 << 0)
178+ G_SCOPE_ERROR_INVALID_PREVIEW = (1 << 1)
179 } GScopeError;
180
181 GQuark
182
183=== modified file 'dash/previews/CMakeLists.txt'
184--- dash/previews/CMakeLists.txt 2013-05-06 11:57:14 +0000
185+++ dash/previews/CMakeLists.txt 2015-11-05 11:17:32 +0000
186@@ -48,36 +48,36 @@
187 # Application Standalone variant
188 #
189 add_executable (app_previews StandaloneApplicationPreview.cpp)
190-target_link_libraries (app_previews previews-lib unity-shared)
191+target_link_libraries (app_previews previews-lib unity-shared unity-shared-standalone)
192
193 #
194 # Music Standalone variant
195 #
196 add_executable (music_previews StandaloneMusicPreview.cpp)
197-target_link_libraries (music_previews previews-lib unity-shared)
198+target_link_libraries (music_previews previews-lib unity-shared unity-shared-standalone)
199
200 #
201 # Social Standalone variant
202 #
203 add_executable (social_previews StandaloneSocialPreview.cpp)
204-target_link_libraries (social_previews previews-lib unity-shared)
205+target_link_libraries (social_previews previews-lib unity-shared unity-shared-standalone)
206
207 #
208 # Movie Standalone variant
209 #
210 add_executable (movie_previews StandaloneMoviePreview.cpp)
211-target_link_libraries (movie_previews previews-lib unity-shared)
212+target_link_libraries (movie_previews previews-lib unity-shared unity-shared-standalone)
213
214 #
215 # Payment Standalone variant
216 #
217 add_executable (payment_previews StandaloneMusicPaymentPreview.cpp)
218 add_dependencies (payment_previews previews-lib)
219-target_link_libraries (payment_previews previews-lib unity-shared)
220+target_link_libraries (payment_previews previews-lib unity-shared unity-shared-standalone)
221
222 #
223 # Error Standalone variant
224 #
225 add_executable (error_previews StandaloneErrorPreview.cpp)
226 add_dependencies (error_previews previews-lib)
227-target_link_libraries (error_previews previews-lib unity-shared)
228+target_link_libraries (error_previews previews-lib unity-shared unity-shared-standalone)
229
230=== modified file 'debian/changelog'
231--- debian/changelog 2015-11-05 11:17:32 +0000
232+++ debian/changelog 2015-11-05 11:17:32 +0000
233@@ -1,3 +1,10 @@
234+unity (7.4.0-0ubuntu1) UNRELEASED; urgency=medium
235+
236+ * Bumping version to 7.4.0
237+ * Fix building in xenial
238+
239+ -- Marco Trevisan (Treviño) <marco@ubuntu.com> Mon, 26 Oct 2015 15:37:22 +0100
240+
241 unity (7.3.3-0ubuntu1) UNRELEASED; urgency=medium
242
243 * Releasing Unity 7.3.3
244
245=== modified file 'debian/control'
246--- debian/control 2015-08-24 16:03:38 +0000
247+++ debian/control 2015-11-05 11:17:32 +0000
248@@ -13,7 +13,7 @@
249 gsettings-ubuntu-schemas (>= 0.0.1+14.04.20140219),
250 intltool (>= 0.35.0),
251 libatk1.0-dev,
252- libbamf3-dev (>= 0.5.0+13.10.20130731),
253+ libbamf3-dev (>= 0.5.2~bzr0),
254 libboost-dev,
255 libcairo2-dev,
256 libdbus-1-dev,
257
258=== modified file 'debian/rules'
259--- debian/rules 2015-02-05 14:07:05 +0000
260+++ debian/rules 2015-11-05 11:17:32 +0000
261@@ -27,11 +27,12 @@
262 ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
263 cmake_gl_options := -DBUILD_GLES=TRUE -DDISABLE_MAINTAINER_CFLAGS=ON
264 endif
265+
266+# Workaround for bug #1511542
267 ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), arm64))
268- cmake_pch_options := -Duse_pch=OFF
269+ cmake_pch_options := -DENABLE_UNIT_TESTS=OFF
270 endif
271
272-
273 override_dh_auto_configure:
274 dh_auto_configure -- $(cmake_base_options) $(cmake_gl_options) $(cmake_pch_options)
275
276
277=== modified file 'launcher/LauncherController.cpp'
278--- launcher/LauncherController.cpp 2015-05-29 12:41:38 +0000
279+++ launcher/LauncherController.cpp 2015-11-05 11:17:32 +0000
280@@ -150,7 +150,11 @@
281
282 WindowManager& wm = WindowManager::Default();
283 wm.window_focus_changed.connect(sigc::mem_fun(this, &Controller::Impl::OnWindowFocusChanged));
284+#if SIGCXX_MAJOR_VERSION >= 2 && SIGCXX_MINOR_VERSION >= 5
285+ wm.viewport_layout_changed.connect(sigc::track_obj([this] (int w, int h) { UpdateNumWorkspaces(w * h); }, *this));
286+#else
287 wm.viewport_layout_changed.connect(sigc::group(sigc::mem_fun(this, &Controller::Impl::UpdateNumWorkspaces), sigc::_1 * sigc::_2));
288+#endif
289 average_color_connection_ = wm.average_color.changed.connect([this] (nux::Color const& color) {
290 parent_->options()->background_color = color;
291 });
292
293=== modified file 'unity-shared/BamfApplicationManager.cpp'
294--- unity-shared/BamfApplicationManager.cpp 2015-07-10 10:16:03 +0000
295+++ unity-shared/BamfApplicationManager.cpp 2015-11-05 11:17:32 +0000
296@@ -425,8 +425,7 @@
297
298 bool was_empty = windows_.empty();
299
300- std::shared_ptr<GList> children(bamf_view_get_children(bamf_view_), g_list_free);
301- for (GList* l = children.get(); l; l = l->next)
302+ for (GList* l = bamf_view_peek_children(bamf_view_); l; l = l->next)
303 {
304 if (ApplicationWindowPtr const& window = pool::EnsureWindow(manager_, static_cast<BamfView*>(l->data)))
305 {
306@@ -686,15 +685,15 @@
307 return win_pair.second;
308 }
309
310- // TODO: use bamf_matcher_get_window_for_xid
311+ if (BamfWindow* win = bamf_matcher_get_window_for_xid(matcher_, xid))
312+ return pool::EnsureWindow(*this, reinterpret_cast<BamfView*>(win));
313+
314 auto* app = bamf_matcher_get_application_for_xid(matcher_, xid);
315
316 if (!app)
317 return nullptr;
318
319- std::shared_ptr<GList> windows(bamf_view_get_children(reinterpret_cast<BamfView*>(app)), g_list_free);
320-
321- for (GList* l = windows.get(); l; l = l->next)
322+ for (GList* l = bamf_view_peek_children(reinterpret_cast<BamfView*>(app)); l; l = l->next)
323 {
324 if (!BAMF_IS_WINDOW(l->data))
325 continue;