Merge lp:~3v1n0/bamf/distros-compile-fixes into lp:bamf

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 546
Merged at revision: 543
Proposed branch: lp:~3v1n0/bamf/distros-compile-fixes
Merge into: lp:bamf
Diff against target: 62 lines (+9/-3)
4 files modified
configure.ac (+1/-1)
lib/libbamf/bamf-application.c (+6/-1)
src/bamf-matcher.c (+1/-0)
src/bamf-tab.h (+1/-1)
To merge this branch: bzr merge lp:~3v1n0/bamf/distros-compile-fixes
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Christopher Townsend Approve
Review via email: mp+168246@code.launchpad.net

Commit message

BamfDaemon, LibBamf: Fix compilation errors out from ubuntu

Description of the change

Other distros such as Arch Linux have troubles to compile BAMF due to different CFLAGS parameters or to missing glib declarations, fixing this.

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
Christopher Townsend (townsend) wrote :

Merges and compiles cleanly. LGTM!

review: Approve
Revision history for this message
Christopher Townsend (townsend) wrote :

I see the arm CI failed because of the -Wcast-align flag. Let's see what this is about before merging this.

lp:~3v1n0/bamf/distros-compile-fixes updated
546. By Marco Trevisan (Treviño)

configure.ac: don't bother about cast-align or the generated code won't work as expected in ARM buidlds.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

> I see the arm CI failed because of the -Wcast-align flag. Let's see what this
> is about before merging this.

Mh, weird... However since that problem is into some generated code, the only thing we can do for now is not use the Wcast-align flag :(

Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'configure.ac'
2--- configure.ac 2013-06-07 07:36:18 +0000
3+++ configure.ac 2013-06-10 21:28:23 +0000
4@@ -153,7 +153,7 @@
5 AM_PATH_GTK_3_0
6
7 dnl CFLAGS
8-CFLAGS="$CFLAGS -Wall -Werror -lm"
9+CFLAGS="$CFLAGS -Wall -Werror -Wempty-body -Wformat-security -Winit-self -Warray-bounds -Wimplicit-function-declaration -lm"
10
11 AC_SUBST(BAMFDAEMON_CFLAGS)
12 AC_SUBST(BAMFDAEMON_LIBS)
13
14=== modified file 'lib/libbamf/bamf-application.c'
15--- lib/libbamf/bamf-application.c 2013-06-07 07:36:18 +0000
16+++ lib/libbamf/bamf-application.c 2013-06-10 21:28:23 +0000
17@@ -291,7 +291,7 @@
18 {
19 view = l->data;
20
21- if (BAMF_IS_WINDOW (view));
22+ if (BAMF_IS_WINDOW (view))
23 {
24 windows = g_list_prepend (windows, view);
25 }
26@@ -641,6 +641,11 @@
27
28 name = g_strdup (g_app_info_get_name (G_APP_INFO (desktop_info)));
29
30+/* GLib doesn't provide this by default */
31+#ifndef G_KEY_FILE_DESKTOP_KEY_FULLNAME
32+#define G_KEY_FILE_DESKTOP_KEY_FULLNAME "X-GNOME-FullName"
33+#endif
34+
35 /* Grab the better name if its available */
36 fullname = g_key_file_get_locale_string (keyfile, G_KEY_FILE_DESKTOP_GROUP,
37 G_KEY_FILE_DESKTOP_KEY_FULLNAME, NULL, NULL);
38
39=== modified file 'src/bamf-matcher.c'
40--- src/bamf-matcher.c 2013-06-07 07:36:18 +0000
41+++ src/bamf-matcher.c 2013-06-10 21:28:23 +0000
42@@ -23,6 +23,7 @@
43 #include "bamf-matcher.h"
44 #include "bamf-matcher-private.h"
45 #include "bamf-application.h"
46+#include "bamf-tab.h"
47 #include "bamf-window.h"
48 #include "bamf-legacy-screen.h"
49
50
51=== modified file 'src/bamf-tab.h'
52--- src/bamf-tab.h 2013-06-07 07:36:18 +0000
53+++ src/bamf-tab.h 2013-06-10 21:28:23 +0000
54@@ -40,7 +40,7 @@
55 struct _BamfTabClass
56 {
57 BamfViewClass parent;
58-
59+
60 void (*raise) (BamfTab *self);
61 void (*close) (BamfTab *self);
62 void (*request_preview) (BamfTab *self, BamfTabPreviewReadyCallback callback, gpointer user_data);

Subscribers

People subscribed via source and target branches