Merge lp:~3v1n0/bamf/gir-package into lp:bamf/0.4

Proposed by Marco Trevisan (Treviño) on 2012-12-19
Status: Merged
Approved by: Marco Trevisan (Treviño) on 2013-01-09
Approved revision: 526
Merged at revision: 515
Proposed branch: lp:~3v1n0/bamf/gir-package
Merge into: lp:bamf/0.4
Prerequisite: lp:~3v1n0/bamf/soname-up
Diff against target: 485 lines (+93/-99)
13 files modified
.bzrignore (+19/-14)
configure.ac (+17/-9)
debian/changelog (+2/-0)
debian/control (+17/-21)
debian/gir1.2-bamf-3.install (+1/-1)
debian/libbamf-dev.install (+0/-5)
debian/libbamf3-dev.install (+5/-5)
debian/rules (+2/-2)
doc/reference/libbamf/Makefile.am (+2/-2)
lib/libbamf/Makefile.am (+13/-17)
tests/functional/Makefile.am (+8/-8)
tests/libbamf/Makefile.am (+0/-4)
tests/libbamf/test-libbamf.c (+7/-11)
To merge this branch: bzr merge lp:~3v1n0/bamf/gir-package
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing on 2013-01-09
Michael Terry 2012-12-19 Approve on 2013-01-09
Review via email: mp+140742@code.launchpad.net

Commit Message

libbamf: use proper GIR dirs and build the gir1.2-bamf-0.2 package

Description of the Change

Enabled the construction of the Bamf gir package so that we can have bindings for free.

To post a comment you must log in.
Michael Terry (mterry) wrote :

* Do we still need gir1.2-gtk-3.0 in the Build-Depends?
* Instead of override_dh_gencontrol, use --with gir (i.e. change rules to be "--with autoreconf,gir")
* The "usr/share/gir-1.0/Bamf-*.gir" file does actually belong in the -dev package. Only the typelib stuff goes into the gir1.2-* package
* You don't need to define GIR_TYPELIBDIR, use INTROSPECTION_TYPELIBDIR (defined by GOBJECT_INTROSPECTION_CHECK) instead
* Likewise, instead of GIR_DATADIR, use INTROSPECTION_GIRDIR
* I believe "0.2" is the wrong version for the gir. It should be Bamf-3.gir/Bamf-3.typelib and gir1.2-bamf-3 as the package name. (see libsecret-1 or libgtk-3 for naming parallels)
* Does ${shlibs:Depends} not add a dep on libbamf3-1 itself?

review: Needs Fixing
Marco Trevisan (Treviño) (3v1n0) wrote :

> * Do we still need gir1.2-gtk-3.0 in the Build-Depends?

No... I'm removing it as well.

> * Instead of override_dh_gencontrol, use --with gir (i.e. change rules to be "
> --with autoreconf,gir")

Done, thanks

> * The "usr/share/gir-1.0/Bamf-*.gir" file does actually belong in the -dev
> package. Only the typelib stuff goes into the gir1.2-* package

Moved.

> * You don't need to define GIR_TYPELIBDIR, use INTROSPECTION_TYPELIBDIR
> (defined by GOBJECT_INTROSPECTION_CHECK) instead
> * Likewise, instead of GIR_DATADIR, use INTROSPECTION_GIRDIR

Replaced... I was thinking if we had them already defined. Thanks.

> * I believe "0.2" is the wrong version for the gir. It should be
> Bamf-3.gir/Bamf-3.typelib and gir1.2-bamf-3 as the package name. (see
> libsecret-1 or libgtk-3 for naming parallels)

Mh ok... Shouldn't be gir1.2-bamf-3-1 at this point?

> * Does ${shlibs:Depends} not add a dep on libbamf3-1 itself?

It wasn't before... Now it seems to add it.
But it's actually done by ${gir:Depends} since I'm getting this:

dpkg-gencontrol: warning: Depends field of package gir1.2-bamf-3.0: unknown substitution variable ${shlibs:Depends}

Should we get rid of it, right?

Rico Tzschichholz (ricotz) wrote :

The gir/typelib should be called Bamf-0.4.gir/typelib and the debian package gir1.2-bamf-0.4
It is an API suffix following API changes.

Michael Terry (mterry) wrote :

I don't believe you're right about 0.4. I think it should be named after the library name/versioning alone.

See http://lists.debian.org/debian-gtk-gnome/2009/09/msg00011.html

The examples they use show no SONAME, but do use the parallel-installable-version in the library name for the typelib. And for bamf, we are currently at libbamf3, so the gir should be Bamf-3.typelib and the package name gir1.2-bamf-3 I believe. Much like gir1.2-secret-1.

Michael Terry (mterry) wrote :

So, Marco, I know we were waiting on feedback from others, but didrocks pointed me at that Debian email, and it seems relatively clear.

Marco Trevisan (Treviño) (3v1n0) wrote :

> And for bamf, we are currently
> at libbamf3, so the gir should be Bamf-3.typelib and the package name
> gir1.2-bamf-3 I believe. Much like gir1.2-secret-1.

So... At this point, this branch is fine as it is, isn't it?

Rico Tzschichholz (ricotz) wrote :

> I don't believe you're right about 0.4. I think it should be named after the
> library name/versioning alone.
>
> See http://lists.debian.org/debian-gtk-gnome/2009/09/msg00011.html
>
> The examples they use show no SONAME, but do use the parallel-installable-
> version in the library name for the typelib. And for bamf, we are currently
> at libbamf3, so the gir should be Bamf-3.typelib and the package name
> gir1.2-bamf-3 I believe. Much like gir1.2-secret-1.

Looking at the debian policy doesn't say much. The usage of gir/typelib isn't bound to the actually library (with its soname) behind it. So if there are ABI breaks it is no concern for the GI bindings to work.
Telepathy-Logger might be a good example here which has a stable API (0.2) but not ABI (currently 3).
So using 0.4, as i mentioned, is the right choice here.

Michael Terry (mterry) wrote :

@Marco, right you are. This branch already uses 3 as the gir version. But I guess I'll wait to approve until we finish discussing 3 vs 0.4.

@Rico, you're talking more about using the version number of the package, not the API number. 3 is the API here. (The 3 denotes the parallel-installable version number of libbamf3. Much like the 3 in GTK+ 3.) It's not the SONAME.

Michael Terry (mterry) wrote :

Alright, I think we agreed on IRC that 3 is fine. Rico's concern was that we weren't treating the library version as an API guarantee like we should (which we hadn't in the past when removing API but keeping the 3). But that was a one-off laziness thing, not a policy.

review: Approve
Michael Terry (mterry) wrote :

I believe you need to add GOBJECT_INTROSPECTION_REQUIRE([1.29]) to configure.ac.
(exact version is iffy, I just stole that number from another app)

Francis Ginther (fginther) wrote :

I as able to reproduce this inside a pbuilder chroot. The failure looks like a missing build dependency. From the logs:

...
checking for X... yes
checking for gobject-introspection... yes
checking for vapigen... no
...

As a results ${vapigen} appears to be an empty string.

Adding "valac-0.18" to debian/dontrol resolved the issue on my pbuilder.

lp:~3v1n0/bamf/gir-package updated on 2013-01-09
525. By Marco Trevisan (Treviño) on 2013-01-09

configure.ac: add more errors when checking build tools

526. By Marco Trevisan (Treviño) on 2013-01-09

debian/control: add valac as build depends

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.bzrignore'
2--- .bzrignore 2012-12-19 18:27:38 +0000
3+++ .bzrignore 2013-01-09 23:53:22 +0000
4@@ -6,8 +6,7 @@
5 autom4te.cache/
6 compile
7 config.guess
8-config.h
9-config.h.in
10+config.h*
11 config.log
12 config.status
13 config.sub
14@@ -32,11 +31,23 @@
15 module/libgiodbus_la-gapplaunchhandlerdbus.lo
16 src/Makefile
17 src/Makefile.in
18-src/*-generated.c
19-src/*-generated.h
20+lib/libbamf/libbamf*.la
21+lib/libbamf/libbamf*.pc
22+lib/libbamf/libbamf*.vapi
23+lib/libbamf/libbamf_la-bamf-application.lo
24+lib/libbamf/libbamf_la-bamf-matcher.lo
25+lib/libbamf/libbamf_la-bamf-proxy.lo
26+lib/libbamf/libbamf_la-bamf-view.lo
27+lib/libbamf/Bamf-*.gir
28+lib/libbamf/Bamf-*.typelib
29+lib/libbamf/bamf-marshal.c
30+lib/libbamf/bamf-marshal.h
31+lib/libbamf/bamf-tab-source-glue.h
32+lib/libbamf/stamp-marshal
33+src/bamfdbus-glue.h
34 *.lo
35 gtk-doc.make
36-bamf-0.2.34.tar.gz
37+bamf-*.tar.gz
38 data/org.ayatana.bamf.service
39 doc/reference/libbamf/html
40 doc/reference/libbamf/html-build.stamp
41@@ -61,19 +72,13 @@
42 doc/reference/libbamf/tmpl-build.stamp
43 doc/reference/libbamf/tmpl.stamp
44 doc/reference/libbamf/xml
45-lib/libbamf/Bamf-0.2.gir
46-lib/libbamf/Bamf-0.2.typelib
47-lib/libbamf/bamf-marshal.c
48-lib/libbamf/bamf-marshal.h
49-lib/libbamf/bamf-tab-source-glue.h
50-lib/libbamf/stamp-marshal
51-lib/libbamf/libbamf3.la
52-lib/libbamf/libbamf3.pc
53-lib/libbamf/libbamf3.vapi
54+debian/*/
55 m4/gtk-doc.m4
56 module/libgiobamf.la
57 src/bamf-marshal.h
58 src/bamf-marshal.c
59+src/bamf-gdbus*-generated.h
60+src/bamf-gdbus*-generated.c
61 src/bamfdaemon
62 src/stamp-marshal
63 tests/bamfdaemon/test-bamf
64
65=== modified file 'configure.ac'
66--- configure.ac 2012-12-19 18:22:35 +0000
67+++ configure.ac 2013-01-09 23:53:22 +0000
68@@ -24,9 +24,7 @@
69 AC_SUBST(ACLOCAL_AMFLAFS, "$ACLOCAL_FLAGS -I m4")
70
71 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
72-if test "x$PKG_CONFIG" = "xno"; then
73- AC_MSG_ERROR([You need to install pkg-config])
74-fi
75+if test "x$PKG_CONFIG" = "xno"; then AC_MSG_ERROR([You need to install pkg-config]); fi
76
77 # Checks for programs.
78 AC_PROG_CC
79@@ -47,11 +45,14 @@
80 # glib
81 #
82 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.32.0 gio-2.0 >= 2.30.0 gio-unix-2.0)
83+AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
84+if test -z "$GLIB_GENMARSHAL"; then AC_MSG_ERROR([glib-genmarshal is required but was not found]); fi
85
86 #
87 # gdbus-codegen
88 #
89-AC_PATH_PROG([GDBUS_CODEGEN], [gdbus-codegen], AC_MSG_ERROR([gdbus-codegen is required but was not found]))
90+AC_PATH_PROG([GDBUS_CODEGEN], [gdbus-codegen])
91+if test -z "$GDBUS_CODEGEN"; then AC_MSG_ERROR([gdbus-codegen is required but was not found]); fi
92
93 #
94 # dbus
95@@ -72,9 +73,6 @@
96 # libgtop
97 #
98 PKG_CHECK_MODULES(GTOP, libgtop-2.0)
99-PKG_CHECK_MODULES(LIBWSBIND, glib-2.0 gdk-3.0 gdk-x11-3.0 gtk+-3.0)
100-AC_SUBST(LIBWSBIND_CFLAGS)
101-AC_SUBST(LIBWSBIND_LIBS)
102
103 #
104 # x11
105@@ -91,8 +89,14 @@
106 # Vala API Generation
107 ###########################
108
109-AC_PATH_PROG([VALA_API_GEN], [vapigen])
110-AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
111+if test "$enable_introspection" = "yes"; then
112+ AC_PATH_PROG([VALA_API_GEN], [vapigen])
113+ if test -z "$VALA_API_GEN"; then
114+ AC_MSG_ERROR([vapigen is needed to build introspection])
115+ HAVE_INTROSPECTION=0
116+ enable_introspection="no"
117+ fi
118+fi
119
120 ###########################
121 # GTK-DOC
122@@ -127,6 +131,10 @@
123 if test "x$enable_headless_tests" = "xyes"; then
124 AC_PATH_PROG([XVFB],[Xvfb])
125 AC_PATH_PROG([DBUS_LAUNCH],[dbus-launch])
126+
127+ if test -z "$XVFB" -o -z "$DBUS_LAUNCH"; then
128+ AC_MSG_ERROR([Xvfb and dbus-launch are needed for headless-tests])
129+ fi
130 fi
131
132 ###########################
133
134=== modified file 'debian/changelog'
135--- debian/changelog 2012-12-19 16:21:01 +0000
136+++ debian/changelog 2013-01-09 23:53:22 +0000
137@@ -9,6 +9,8 @@
138 * Remove the unneeded library dependencies on libwnck
139 * Bump the SONAME
140 * Update the package version to libbamf3-1
141+ * Enable the gir1.2-bamf-3 package building
142+ * Add valac as build-depend
143
144 -- Didier Roche <didrocks@ubuntu.com> Wed, 05 Dec 2012 17:34:41 +0100
145
146
147=== modified file 'debian/control'
148--- debian/control 2012-12-19 16:23:32 +0000
149+++ debian/control 2013-01-09 23:53:22 +0000
150@@ -5,21 +5,18 @@
151 Uploaders: Andrea Veri <and@debian.org>
152 Build-Depends: dbus-x11,
153 debhelper (>= 9),
154+ gir1.2-glib-2.0,
155 dh-autoreconf,
156+ gobject-introspection (>= 0.6.5-3),
157+ gtk-doc-tools,
158+ libdbus-glib-1-dev,
159 libglib2.0-dev (>= 2.32.0),
160- libwnck-3-dev,
161 libgtop2-dev,
162 libgtk-3-dev (>= 3.0.0),
163- libdbus-glib-1-dev,
164- gtk-doc-tools,
165- gobject-introspection (>= 0.6.5-3),
166+ libunity-webapps-dev (>= 2.3.3),
167+ libwnck-3-dev,
168 libgirepository1.0-dev,
169- gir1.2-atk-1.0,
170- gir1.2-glib-2.0,
171- gir1.2-gtk-3.0 (>= 3.0.0),
172- gir1.2-pango-1.0,
173- gir1.2-wnck-3.0,
174- libunity-webapps-dev (>= 2.3.3),
175+ valac,
176 xvfb,
177 Standards-Version: 3.9.3
178 Homepage: https://launchpad.net/bamf
179@@ -94,15 +91,14 @@
180 .
181 This package contains debugging symbols for the daemon and library.
182
183-#Package: gir1.2-bamf-0.2
184-#Section: libs
185-#Architecture: any
186-#Depends: ${gir:Depends},
187-# ${shlibs:Depends},
188-# ${misc:Depends}
189-#Description: GObject introspection data for the Bamf 0 library
190-# This package contains introspection data for the Bamf library.
191-# .
192-# It can be used by packages using the GIRepository format to generate
193-# dynamic bindings.
194+Package: gir1.2-bamf-3
195+Section: libs
196+Architecture: any
197+Depends: ${gir:Depends},
198+ ${misc:Depends},
199+Description: GObject introspection data for the Bamf library
200+ This package contains introspection data for the Bamf library.
201+ .
202+ It can be used by packages using the GIRepository format to generate
203+ dynamic bindings.
204
205
206=== renamed file 'debian/gir1.2-bamf-0.2.install' => 'debian/gir1.2-bamf-3.install'
207--- debian/gir1.2-bamf-0.2.install 2010-12-17 12:35:53 +0000
208+++ debian/gir1.2-bamf-3.install 2013-01-09 23:53:22 +0000
209@@ -1,1 +1,1 @@
210-#debian/tmp/usr/lib/girepository-1.0/
211+usr/lib/girepository-1.0/Bamf-*.typelib
212
213=== removed file 'debian/libbamf-dev.install'
214--- debian/libbamf-dev.install 2011-03-29 19:53:03 +0000
215+++ debian/libbamf-dev.install 1970-01-01 00:00:00 +0000
216@@ -1,5 +0,0 @@
217-debian/tmp/usr/include/libbamf/libbamf/
218-debian/tmp/usr/lib/*/pkgconfig/libbamf.pc
219-debian/tmp/usr/lib/*/libbamf.so
220-#debian/tmp/usr/share/vala/vapi/
221-#debian/tmp/usr/share/gir-1.0/
222
223=== modified file 'debian/libbamf3-dev.install'
224--- debian/libbamf3-dev.install 2011-06-17 16:42:00 +0000
225+++ debian/libbamf3-dev.install 2013-01-09 23:53:22 +0000
226@@ -1,5 +1,5 @@
227-debian/tmp/usr/include/libbamf3/libbamf/
228-debian/tmp/usr/lib/*/pkgconfig/libbamf3.pc
229-debian/tmp/usr/lib/*/libbamf3.so
230-#debian/tmp/usr/share/vala/vapi/
231-#debian/tmp/usr/share/gir-1.0/
232+usr/include/libbamf3/libbamf/
233+usr/lib/*/pkgconfig/libbamf3.pc
234+usr/lib/*/libbamf3.so
235+usr/share/vala/vapi/
236+usr/share/gir-1.0/
237
238=== modified file 'debian/rules'
239--- debian/rules 2012-11-19 18:43:21 +0000
240+++ debian/rules 2013-01-09 23:53:22 +0000
241@@ -5,13 +5,13 @@
242 export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
243
244 %:
245- dh $@ --with autoreconf
246+ dh $@ --with autoreconf,gir
247
248 override_dh_autoreconf:
249 NOCONFIGURE=1 dh_autoreconf ./autogen.sh
250
251 override_dh_auto_configure:
252- dh_auto_configure -- --enable-introspection=no \
253+ dh_auto_configure -- --enable-introspection=yes \
254 --enable-gtk-doc \
255 --enable-headless-tests
256
257
258=== modified file 'doc/reference/libbamf/Makefile.am'
259--- doc/reference/libbamf/Makefile.am 2012-11-15 17:45:29 +0000
260+++ doc/reference/libbamf/Makefile.am 2013-01-09 23:53:22 +0000
261@@ -43,12 +43,12 @@
262 # CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
263 INCLUDES= \
264 -I$(top_srcdir)/lib/libbamf \
265- $(LIBWSBIND_CFLAGS) \
266+ $(GTK_CFLAGS) \
267 $(GLIB_CFLAGS) \
268 $(DBUS_CFLAGS)
269
270 GTKDOC_LIBS = \
271- $(LIBWSBIND_LIBS) \
272+ $(GTK_LIBS) \
273 $(GLIB_LIBS) \
274 $(DBUS_LIBS) \
275 $(top_builddir)/lib/libbamf/libbamf$(LIBBAMF_VER).la
276
277=== renamed file 'lib/libbamf/Bamf-0.2.metadata' => 'lib/libbamf/Bamf-3.metadata'
278=== modified file 'lib/libbamf/Makefile.am'
279--- lib/libbamf/Makefile.am 2012-12-19 16:01:25 +0000
280+++ lib/libbamf/Makefile.am 2013-01-09 23:53:22 +0000
281@@ -49,7 +49,6 @@
282 $(NULL)
283
284 libbamf3_la_LIBADD = \
285- $(LIBWSBIND_LIBS) \
286 $(GLIB_LIBS) \
287 $(DBUS_LIBS) \
288 $(NULL)
289@@ -62,7 +61,6 @@
290 -I$(top_builddir)/lib \
291 -I$(top_srcdir)/lib/libbamf \
292 -I$(top_builddir)/lib/libbamf \
293- $(LIBWSBIND_CFLAGS) \
294 $(GLIB_CFLAGS) \
295 $(DBUS_CFLAGS) \
296 $(COVERAGE_CFLAGS) \
297@@ -102,39 +100,37 @@
298
299
300 #########################
301-# GObject Introsepction
302+# GObject Introsepction
303 #########################
304
305-INTROSPECTION_GIRS =
306+if HAVE_INTROSPECTION
307+
308+INTROSPECTION_GIRS = Bamf-3.gir
309 INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
310 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
311
312-if HAVE_INTROSPECTION
313-
314 introspection_sources = \
315 $(libbamf_headers) \
316 $(libbamf_sources) \
317 $(NULL)
318
319-Bamf-0.2.gir: libbamf$(LIBBAMF_VER).la
320-Bamf_0_2_gir_INCLUDES = GObject-2.0 GLib-2.0
321-Bamf_0_2_gir_CFLAGS = \
322+Bamf-3.gir: libbamf$(LIBBAMF_VER).la
323+Bamf_3_gir_INCLUDES = GObject-2.0 GLib-2.0
324+Bamf_3_gir_CFLAGS = \
325 --warn-all \
326 --c-include='libbamf/libbamf.h' \
327 $(DBUS_CFLAGS) \
328 -I$(top_srcdir)/lib \
329 -I$(top_builddir)/lib \
330 $(NULL)
331-Bamf_0_2_gir_LIBS = libbamf$(LIBBAMF_VER).la
332-Bamf_0_2_gir_FILES = $(introspection_sources)
333-Bamf_0_2_gir_EXPORT_PACKAGES = libbamf$(LIBBAMF_VER)
334-
335-INTROSPECTION_GIRS += Bamf-0.2.gir
336-
337-girdir = $(datadir)/gir-1.0
338+Bamf_3_gir_LIBS = libbamf$(LIBBAMF_VER).la
339+Bamf_3_gir_FILES = $(introspection_sources)
340+Bamf_3_gir_EXPORT_PACKAGES = libbamf$(LIBBAMF_VER)
341+
342+girdir = $(INTROSPECTION_GIRDIR)
343 gir_DATA = $(INTROSPECTION_GIRS)
344
345-typelibdir = $(libdir)/girepository-1.0
346+typelibdir = $(INTROSPECTION_TYPELIBDIR)
347 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
348
349 CLEANFILES += $(gir_DATA) $(typelib_DATA)
350
351=== modified file 'tests/functional/Makefile.am'
352--- tests/functional/Makefile.am 2012-11-14 19:30:00 +0000
353+++ tests/functional/Makefile.am 2013-01-09 23:53:22 +0000
354@@ -15,13 +15,13 @@
355 -I$(top_builddir)/lib/libbamf \
356 -DDATADIR=\""$(datadir)"\" \
357 -DWNCK_I_KNOW_THIS_IS_UNSTABLE \
358- $(LIBWSBIND_CFLAGS) \
359+ $(GTK_CFLAGS) \
360 $(GLIB_CFLAGS) \
361 $(DBUS_CFLAGS) \
362 $(NULL)
363
364 alt_tabber_LDADD = \
365- $(LIBWSBIND_LIBS) \
366+ $(GTK_LIBS) \
367 $(GLIB_LIBS) \
368 $(DBUS_LIBS) \
369 $(top_builddir)/lib/libbamf/libbamf$(LIBBAMF_VER).la
370@@ -35,13 +35,13 @@
371 -I$(top_builddir)/lib/libbamf \
372 -DDATADIR=\""$(datadir)"\" \
373 -DWNCK_I_KNOW_THIS_IS_UNSTABLE \
374- $(LIBWSBIND_CFLAGS) \
375+ $(GTK_CFLAGS) \
376 $(GLIB_CFLAGS) \
377 $(DBUS_CFLAGS) \
378 $(NULL)
379
380 tab_source_test_LDADD = \
381- $(LIBWSBIND_LIBS) \
382+ $(GTK_LIBS) \
383 $(GLIB_LIBS) \
384 $(DBUS_LIBS) \
385 $(top_builddir)/lib/libbamf/libbamf$(LIBBAMF_VER).la
386@@ -55,13 +55,13 @@
387 -I$(top_builddir)/lib/libbamf \
388 -DDATADIR=\""$(datadir)"\" \
389 -DWNCK_I_KNOW_THIS_IS_UNSTABLE \
390- $(LIBWSBIND_CFLAGS) \
391+ $(GTK_CFLAGS) \
392 $(GLIB_CFLAGS) \
393 $(DBUS_CFLAGS) \
394 $(NULL)
395
396 interaction_tester_LDADD = \
397- $(LIBWSBIND_LIBS) \
398+ $(GTK_LIBS) \
399 $(GLIB_LIBS) \
400 $(DBUS_LIBS) \
401 $(top_builddir)/lib/libbamf/libbamf$(LIBBAMF_VER).la
402@@ -69,5 +69,5 @@
403
404 # desktop-file-launcher
405 desktop_file_launcher_SOURCES = desktop-file-launcher.c
406-desktop_file_launcher_CPPFLAGS = $(GLIB_CFLAGS) $(LIBWSBIND_CFLAGS)
407-desktop_file_launcher_LDFLAGS = $(GLIB_LIBS) $(LIBWSBIND_LIBS)
408+desktop_file_launcher_CPPFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS)
409+desktop_file_launcher_LDFLAGS = $(GLIB_LIBS) $(GTK_LIBS)
410
411=== modified file 'tests/libbamf/Makefile.am'
412--- tests/libbamf/Makefile.am 2012-12-19 16:01:25 +0000
413+++ tests/libbamf/Makefile.am 2013-01-09 23:53:22 +0000
414@@ -13,16 +13,12 @@
415 -I$(top_builddir)/lib/libbamf \
416 -DTESTDIR=\""$(abs_top_srcdir)/tests/libbamf"\" \
417 $(GCC_FLAGS) \
418- $(GTK_CFLAGS) \
419- $(LIBWSBIND_CFLAGS) \
420 $(DBUS_CFLAGS) \
421 $(GLIB_CFLAGS)
422
423 test_libbamf_LDADD = \
424 $(top_builddir)/lib/libbamf/libbamf$(LIBBAMF_VER).la \
425- $(LIBWSBIND_LIBS) \
426 $(GLIB_LIBS) \
427- $(GTK_LIBS) \
428 $(DBUS_LIBS)
429
430 TEST_BINARY = test-libbamf
431
432=== modified file 'tests/libbamf/test-libbamf.c'
433--- tests/libbamf/test-libbamf.c 2012-10-27 07:31:54 +0000
434+++ tests/libbamf/test-libbamf.c 2013-01-09 23:53:22 +0000
435@@ -1,23 +1,21 @@
436-//
437+//
438 // Copyright (C) 2009 Canonical Ltd.
439-//
440+//
441 // This program is free software: you can redistribute it and/or modify
442 // it under the terms of the GNU General Public License as published by
443 // the Free Software Foundation, either version 3 of the License, or
444 // (at your option) any later version.
445-//
446+//
447 // This program is distributed in the hope that it will be useful,
448 // but WITHOUT ANY WARRANTY; without even the implied warranty of
449 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
450 // GNU General Public License for more details.
451-//
452+//
453 // You should have received a copy of the GNU General Public License
454 // along with this program. If not, see <http://www.gnu.org/licenses/>.
455-//
456+//
457
458 #include <stdio.h>
459-#include <gtk/gtk.h>
460-#include <gdk/gdk.h>
461 #include <glib.h>
462
463 #include <dbus/dbus-glib.h>
464@@ -26,7 +24,7 @@
465
466
467 void test_matcher_create_suite (void);
468-
469+
470 gint
471 main (gint argc, gchar *argv[])
472 {
473@@ -35,11 +33,9 @@
474 #endif
475 g_test_init (&argc, &argv, NULL);
476
477- gtk_init (&argc, &argv);
478-
479 dbus_g_thread_init ();
480
481 test_matcher_create_suite ();
482-
483+
484 return g_test_run ();
485 }

Subscribers

People subscribed via source and target branches