* [PATCH] osso-gwobex export
@ 2010-02-09 18:06 Bastien Nocera
2010-02-09 20:44 ` Luiz Augusto von Dentz
2010-02-10 11:02 ` Johan Hedberg
0 siblings, 2 replies; 4+ messages in thread
From: Bastien Nocera @ 2010-02-09 18:06 UTC (permalink / raw)
To: BlueZ development; +Cc: Johan Hedberg
[-- Attachment #1: Type: text/plain, Size: 351 bytes --]
Heya,
Here's a patch to fix libgwobex not using a soname, and fixing a few
build problems.
I couldn't run the test suite, as gnome-bluetooth's ancient btctl Python
module isn't around any more.
Could I bribe someone into making a release that I could use for gvfs'
ObexFTP module[1]?
Cheers
[1]: https://bugzilla.gnome.org/show_bug.cgi?id=609340
[-- Attachment #2: 0001-Export-libgwobex.patch --]
[-- Type: text/x-patch, Size: 3257 bytes --]
>From 8d430811bd39c025e30a2b32370cce426a85f796 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Tue, 9 Feb 2010 18:03:24 +0000
Subject: [PATCH] Export libgwobex
Set the soname for the library, and fix some distchecking problems.
---
Makefile.am | 2 ++
configure.ac | 15 +++++++++++++++
libgwobex.pc.in | 2 +-
src/Makefile.am | 4 ++++
test/Makefile.am | 4 ++--
5 files changed, 24 insertions(+), 3 deletions(-)
mode change 100644 => 100755 test/coverage.py
diff --git a/Makefile.am b/Makefile.am
index f604eb8..58d017d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -16,6 +16,8 @@ EXTRA_DIST = \
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libgwobex.pc
+CLEANFILES = libgwobex.pc
+
if DOXYGEN_DOCS_ENABLED
DOXYGEN_LINE = $(DOXYGEN) doxygen.cfg
else
diff --git a/configure.ac b/configure.ac
index aca038f..2b2b12a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -13,6 +13,17 @@ AC_PROG_LIBTOOL
GWOBEX_COMPILE_WARNINGS
GWOBEX_CHECK_TIMEZONE
+# Before making a release, the CHEESE_LT_VERSION string should be modified.
+# The string is of the form C:R:A.
+# - If interfaces have been changed or added, but binary compatibility has
+# been preserved, change to C+1:0:A+1
+# - If binary compatibility has been broken (eg removed or changed interfaces)
+# change to C+1:0:0
+# - If the interface is the same as the previous version, change to C:R+1:A
+GWOBEX_LT_VERSION=0:0:0
+AC_SUBST(GWOBEX_LT_VERSION)
+
+
changequote(,)dnl
if test "x$GCC" = "xyes"; then
CFLAGS="$CFLAGS $WARN_CFLAGS"
@@ -46,6 +57,10 @@ PKG_CHECK_MODULES(GW_OBEX, [
AC_SUBST(GW_OBEX_CFLAGS)
AC_SUBST(GW_OBEX_LIBS)
+PKG_CHECK_MODULES(TESTS, bluez >= 4.0)
+AC_SUBST(TESTS_CFLAGS)
+AC_SUBST(TESTS_LIBS)
+
### Doxygen Documentation
AC_PATH_PROG(DOXYGEN, doxygen, no)
diff --git a/libgwobex.pc.in b/libgwobex.pc.in
index 22c9eee..316fcb2 100644
--- a/libgwobex.pc.in
+++ b/libgwobex.pc.in
@@ -5,7 +5,7 @@ includedir=@includedir@
Name: libgwobex
Description: libgwobex
-Requires: glib-2.0 openobex
+Requires: glib-2.0 gthread-2.0 openobex
Version: @VERSION@
Libs: -L${libdir} -lgwobex
Cflags: -I${includedir}
diff --git a/src/Makefile.am b/src/Makefile.am
index a58ce3b..916cd37 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -24,6 +24,10 @@ libgwobex_la_SOURCES = \
libgwobexinclude_HEADERS = gw-obex.h
libgwobex_la_LIBADD = $(GW_OBEX_LIBS)
+libgwobex_la_LDFLAGS = \
+ -version-info $(GWOBEX_LT_VERSION) \
+ -no-undefined \
+ $(AM_LDFLAGS)
libgwobexincludedir = $(includedir)
diff --git a/test/Makefile.am b/test/Makefile.am
index 5822d59..4910d96 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1,5 +1,5 @@
-LDADD = ../src/libgwobex.la
-INCLUDES := -I$(top_srcdir)/src $(shell pkg-config --cflags glib-2.0)
+AM_LDFLAGS = $(TESTS_LIBS) $(top_builddir)/src/libgwobex.la
+INCLUDES := -I$(top_srcdir)/src $(GW_OBEX_CFLAGS) $(TESTS_CFLAGS)
check_PROGRAMS = setup callback capability getfile putfile getfd putfd getbuf \
putbuf chdir mkdir readdir delete move move2 copy putasync xfercb objtime \
diff --git a/test/coverage.py b/test/coverage.py
old mode 100644
new mode 100755
--
1.6.6
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] osso-gwobex export
2010-02-09 18:06 [PATCH] osso-gwobex export Bastien Nocera
@ 2010-02-09 20:44 ` Luiz Augusto von Dentz
2010-02-10 0:25 ` Bastien Nocera
2010-02-10 11:02 ` Johan Hedberg
1 sibling, 1 reply; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2010-02-09 20:44 UTC (permalink / raw)
To: Bastien Nocera; +Cc: BlueZ development, Johan Hedberg
Hi Bastien,
On Tue, Feb 9, 2010 at 8:06 PM, Bastien Nocera <hadess@hadess.net> wrote:
> Heya,
>
> Here's a patch to fix libgwobex not using a soname, and fixing a few
> build problems.
>
> I couldn't run the test suite, as gnome-bluetooth's ancient btctl Python
> module isn't around any more.
>
> Could I bribe someone into making a release that I could use for gvfs'
> ObexFTP module[1]?
>
> Cheers
>
> [1]: https://bugzilla.gnome.org/show_bug.cgi?id=609340
I thought the plan was to use obex-client daemon in gvfs backend, well
obex-client uses gwobex so it is mostly the same code, but it would be
good to know if there is there any specific reason, or reasons, not to
use obex-client as it is what we normally uses for testing obexd
functionality.
Regards,
--
Luiz Augusto von Dentz
Computer Engineer
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] osso-gwobex export
2010-02-09 20:44 ` Luiz Augusto von Dentz
@ 2010-02-10 0:25 ` Bastien Nocera
0 siblings, 0 replies; 4+ messages in thread
From: Bastien Nocera @ 2010-02-10 0:25 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: BlueZ development, Johan Hedberg
On Tue, 2010-02-09 at 22:44 +0200, Luiz Augusto von Dentz wrote:
> Hi Bastien,
>
> On Tue, Feb 9, 2010 at 8:06 PM, Bastien Nocera <hadess@hadess.net> wrote:
> > Heya,
> >
> > Here's a patch to fix libgwobex not using a soname, and fixing a few
> > build problems.
> >
> > I couldn't run the test suite, as gnome-bluetooth's ancient btctl Python
> > module isn't around any more.
> >
> > Could I bribe someone into making a release that I could use for gvfs'
> > ObexFTP module[1]?
> >
> > Cheers
> >
> > [1]: https://bugzilla.gnome.org/show_bug.cgi?id=609340
>
> I thought the plan was to use obex-client daemon in gvfs backend,
Not sure where you got that idea from...
> well
> obex-client uses gwobex so it is mostly the same code, but it would be
> good to know if there is there any specific reason, or reasons, not to
> use obex-client as it is what we normally uses for testing obexd
> functionality.
Because I'm not really interested in using D-Bus in gvfs modules
anymore. It's a pain to debug, especially when the client is used by
more than one module (say, for both bluetooth-sendto and the gvfs
backend).
Furthermore, the backend is already split out from applications, and
from the gvfs daemon. So adding a level of indirection is not really
necessary. Finally, nobody's written the file descriptor passing to
allow arbitrary data to be written through obexftp.
Now I can get better crasher and leak reports, better error handling,
stop using temporary files, and still share much of the backend code of
obexd.
If you want to help, you can look into porting gnome-user-share to using
obexd if you want...
Cheers
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] osso-gwobex export
2010-02-09 18:06 [PATCH] osso-gwobex export Bastien Nocera
2010-02-09 20:44 ` Luiz Augusto von Dentz
@ 2010-02-10 11:02 ` Johan Hedberg
1 sibling, 0 replies; 4+ messages in thread
From: Johan Hedberg @ 2010-02-10 11:02 UTC (permalink / raw)
To: Bastien Nocera; +Cc: BlueZ development, daniel.orstadius, luiz.dentz-von
Hi Bastien,
On Tue, Feb 09, 2010, Bastien Nocera wrote:
> Here's a patch to fix libgwobex not using a soname, and fixing a few
> build problems.
Thanks. It's now pushed upstream.
> I couldn't run the test suite, as gnome-bluetooth's ancient btctl Python
> module isn't around any more.
Yep, nobody has really maintained the test tools for a while. Patches
are always welcome :)
> Could I bribe someone into making a release that I could use for gvfs'
> ObexFTP module[1]?
I have nothing against a release, but either Daniel or Luiz will have to
do it since I'm a bit limited with time at the moment.
Johan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-10 11:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-09 18:06 [PATCH] osso-gwobex export Bastien Nocera
2010-02-09 20:44 ` Luiz Augusto von Dentz
2010-02-10 0:25 ` Bastien Nocera
2010-02-10 11:02 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).