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
=== modified file 'configure.ac'
--- configure.ac 2013-06-07 07:36:18 +0000
+++ configure.ac 2013-06-10 21:28:23 +0000
@@ -153,7 +153,7 @@
153AM_PATH_GTK_3_0153AM_PATH_GTK_3_0
154154
155dnl CFLAGS155dnl CFLAGS
156CFLAGS="$CFLAGS -Wall -Werror -lm"156CFLAGS="$CFLAGS -Wall -Werror -Wempty-body -Wformat-security -Winit-self -Warray-bounds -Wimplicit-function-declaration -lm"
157157
158AC_SUBST(BAMFDAEMON_CFLAGS)158AC_SUBST(BAMFDAEMON_CFLAGS)
159AC_SUBST(BAMFDAEMON_LIBS)159AC_SUBST(BAMFDAEMON_LIBS)
160160
=== modified file 'lib/libbamf/bamf-application.c'
--- lib/libbamf/bamf-application.c 2013-06-07 07:36:18 +0000
+++ lib/libbamf/bamf-application.c 2013-06-10 21:28:23 +0000
@@ -291,7 +291,7 @@
291 {291 {
292 view = l->data;292 view = l->data;
293293
294 if (BAMF_IS_WINDOW (view));294 if (BAMF_IS_WINDOW (view))
295 {295 {
296 windows = g_list_prepend (windows, view);296 windows = g_list_prepend (windows, view);
297 }297 }
@@ -641,6 +641,11 @@
641641
642 name = g_strdup (g_app_info_get_name (G_APP_INFO (desktop_info)));642 name = g_strdup (g_app_info_get_name (G_APP_INFO (desktop_info)));
643643
644/* GLib doesn't provide this by default */
645#ifndef G_KEY_FILE_DESKTOP_KEY_FULLNAME
646#define G_KEY_FILE_DESKTOP_KEY_FULLNAME "X-GNOME-FullName"
647#endif
648
644 /* Grab the better name if its available */649 /* Grab the better name if its available */
645 fullname = g_key_file_get_locale_string (keyfile, G_KEY_FILE_DESKTOP_GROUP,650 fullname = g_key_file_get_locale_string (keyfile, G_KEY_FILE_DESKTOP_GROUP,
646 G_KEY_FILE_DESKTOP_KEY_FULLNAME, NULL, NULL);651 G_KEY_FILE_DESKTOP_KEY_FULLNAME, NULL, NULL);
647652
=== modified file 'src/bamf-matcher.c'
--- src/bamf-matcher.c 2013-06-07 07:36:18 +0000
+++ src/bamf-matcher.c 2013-06-10 21:28:23 +0000
@@ -23,6 +23,7 @@
23#include "bamf-matcher.h"23#include "bamf-matcher.h"
24#include "bamf-matcher-private.h"24#include "bamf-matcher-private.h"
25#include "bamf-application.h"25#include "bamf-application.h"
26#include "bamf-tab.h"
26#include "bamf-window.h"27#include "bamf-window.h"
27#include "bamf-legacy-screen.h"28#include "bamf-legacy-screen.h"
2829
2930
=== modified file 'src/bamf-tab.h'
--- src/bamf-tab.h 2013-06-07 07:36:18 +0000
+++ src/bamf-tab.h 2013-06-10 21:28:23 +0000
@@ -40,7 +40,7 @@
40struct _BamfTabClass40struct _BamfTabClass
41{41{
42 BamfViewClass parent;42 BamfViewClass parent;
43 43
44 void (*raise) (BamfTab *self);44 void (*raise) (BamfTab *self);
45 void (*close) (BamfTab *self);45 void (*close) (BamfTab *self);
46 void (*request_preview) (BamfTab *self, BamfTabPreviewReadyCallback callback, gpointer user_data);46 void (*request_preview) (BamfTab *self, BamfTabPreviewReadyCallback callback, gpointer user_data);

Subscribers

People subscribed via source and target branches