Merge lp:~mterry/gnome-applets/dbus-glib-ftbfs into lp:~ubuntu-desktop/gnome-applets/ubuntu

Proposed by Michael Terry on 2010-09-28
Status: Merged
Merged at revision: 52
Proposed branch: lp:~mterry/gnome-applets/dbus-glib-ftbfs
Merge into: lp:~ubuntu-desktop/gnome-applets/ubuntu
Diff against target: 97 lines (+76/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/89_fix_dbus_glib_ftbfs.patch (+68/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~mterry/gnome-applets/dbus-glib-ftbfs
Reviewer Review Type Date Requested Status
Ubuntu Desktop 2010-09-28 Pending
Review via email: mp+36869@code.launchpad.net

Description of the Change

This fixes an FTBFS due to dbus-glib headers not being included.

To post a comment you must log in.
John S. Gruber (jsjgruber) wrote :

I'm certainly far from being an expert, but isn't the Makefile.in file created from the Makefile.am, making that part of the patch unnecessary?

I believe a change to gconf2's package-config file early this month may have triggered this problem.

As support, a similar upstream patch is at git://git.gnome.org/gnome-applets commit eb187f06

From eb187f06a2ad4660e9e6d7f08a4332707eb4de75 Mon Sep 17 00:00:00 2001
From: Kjartan Maraas <email address hidden>
Date: Mon, 23 Aug 2010 23:57:29 +0200
Subject: [PATCH] Add dbus-glib to CFLAGS and LDADD to make this compile

---
 cpufreq/src/Makefile.am | 6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/cpufreq/src/Makefile.am b/cpufreq/src/Makefile.am
index 2f94de7..0fb2983 100644
--- a/cpufreq/src/Makefile.am
+++ b/cpufreq/src/Makefile.am
@@ -7,7 +7,8 @@ SUBDIRS = $(selector_SUBDIR)
 INCLUDES = \
  -DCPUFREQ_MENU_UI_DIR=\""$(datadir)/gnome-2.0/ui"\" \
  $(GNOME_APPLETS3_CFLAGS) \
- $(LIBGLADE_CFLAGS)
+ $(LIBGLADE_CFLAGS) \
+ $(DBUS_CFLAGS)

 libexec_PROGRAMS = cpufreq-applet

@@ -31,7 +32,8 @@ cpufreq_applet_SOURCES = \
 cpufreq_applet_LDADD = \
  $(GNOME_APPLETS3_LIBS) \
  $(LIBGLADE_LIBS) \
- $(LIBCPUFREQ_LIBS)
+ $(LIBCPUFREQ_LIBS) \
+ $(DBUS_LIBS)

--
1.7.1

Sebastien Bacher (seb128) wrote :

> but isn't the Makefile.in file created from the Makefile.am, making that part of the patch unnecessary?

it is in this case because autoreconf is ran at build time but doesn't hurt either

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-07-14 00:33:08 +0000
3+++ debian/changelog 2010-09-28 14:10:20 +0000
4@@ -1,3 +1,10 @@
5+gnome-applets (2.30.0-3ubuntu3) maverick; urgency=low
6+
7+ * debian/patches/89_fix_dbus_glib_ftbfs.patch:
8+ - Fix FTBFS due to missing dbus-glib CFLAGS (LP: #649841)
9+
10+ -- Michael Terry <mike@mterry.name> Tue, 28 Sep 2010 10:07:39 -0400
11+
12 gnome-applets (2.30.0-3ubuntu2) maverick; urgency=low
13
14 * debian/control.in:
15
16=== added file 'debian/patches/89_fix_dbus_glib_ftbfs.patch'
17--- debian/patches/89_fix_dbus_glib_ftbfs.patch 1970-01-01 00:00:00 +0000
18+++ debian/patches/89_fix_dbus_glib_ftbfs.patch 2010-09-28 14:10:20 +0000
19@@ -0,0 +1,68 @@
20+Index: gnome-applets-2.30.0/cpufreq/src/Makefile.am
21+===================================================================
22+--- gnome-applets-2.30.0.orig/cpufreq/src/Makefile.am 2010-09-28 09:45:31.604949001 -0400
23++++ gnome-applets-2.30.0/cpufreq/src/Makefile.am 2010-09-28 09:47:41.554949001 -0400
24+@@ -9,6 +9,12 @@
25+ $(GNOME_LIBS2_CFLAGS) \
26+ $(LIBGLADE_CFLAGS)
27+
28++if HAVE_POLKIT
29++INCLUDES += \
30++ $(DBUS_CFLAGS) \
31++ $(POLKIT_CFLAGS)
32++endif
33++
34+ libexec_PROGRAMS = cpufreq-applet
35+
36+ if HAVE_LIBCPUFREQ
37+@@ -34,6 +40,12 @@
38+ $(LIBGLADE_LIBS) \
39+ $(LIBCPUFREQ_LIBS)
40+
41++if HAVE_POLKIT
42++cpufreq_applet_LDADD += \
43++ $(DBUS_LIBS) \
44++ $(POLKIT_LIBS)
45++endif
46++
47+
48+
49+ -include $(top_srcdir)/git.mk
50+Index: gnome-applets-2.30.0/cpufreq/src/Makefile.in
51+===================================================================
52+--- gnome-applets-2.30.0.orig/cpufreq/src/Makefile.in 2010-09-28 09:45:31.674949001 -0400
53++++ gnome-applets-2.30.0/cpufreq/src/Makefile.in 2010-09-28 09:50:19.354949002 -0400
54+@@ -33,7 +33,15 @@
55+ POST_UNINSTALL = :
56+ build_triplet = @build@
57+ host_triplet = @host@
58++@HAVE_POLKIT_TRUE@am__append_1 = \
59++@HAVE_POLKIT_TRUE@ $(DBUS_CFLAGS) \
60++@HAVE_POLKIT_TRUE@ $(POLKIT_CFLAGS)
61++
62+ libexec_PROGRAMS = cpufreq-applet$(EXEEXT)
63++@HAVE_POLKIT_TRUE@am__append_2 = \
64++@HAVE_POLKIT_TRUE@ $(DBUS_LIBS) \
65++@HAVE_POLKIT_TRUE@ $(POLKIT_LIBS)
66++
67+ subdir = cpufreq/src
68+ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
69+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
70+@@ -363,7 +371,7 @@
71+ INCLUDES = \
72+ $(GNOME_APPLETS_CFLAGS) \
73+ $(GNOME_LIBS2_CFLAGS) \
74+- $(LIBGLADE_CFLAGS)
75++ $(LIBGLADE_CFLAGS) $(am__append_1)
76+
77+ @HAVE_LIBCPUFREQ_TRUE@cpufreq_files = cpufreq-monitor-libcpufreq.c cpufreq-monitor-libcpufreq.h
78+ cpufreq_applet_SOURCES = \
79+@@ -383,7 +391,7 @@
80+ $(GNOME_APPLETS_LIBS) \
81+ $(GNOME_LIBS2_LIBS) \
82+ $(LIBGLADE_LIBS) \
83+- $(LIBCPUFREQ_LIBS)
84++ $(LIBCPUFREQ_LIBS) $(am__append_2)
85+
86+ all: all-recursive
87+
88
89=== modified file 'debian/patches/series'
90--- debian/patches/series 2010-07-13 04:27:53 +0000
91+++ debian/patches/series 2010-09-28 14:10:20 +0000
92@@ -4,4 +4,5 @@
93 86_deprecate_battstatus.patch
94 87_deprecate_modemlights.patch
95 88_hide_deprecated_mixer.patch
96+89_fix_dbus_glib_ftbfs.patch
97 99_ltmain_as-needed.patch

Subscribers

People subscribed via source and target branches

to all changes: