Bug#337025: libgtksourceview-dev does not ship .a, static linking of libgtksourceview is not possible

Loic Minier lool at dooz.org
Wed Nov 2 10:53:20 UTC 2005


severity 337025 wishlist
tags 337025 + patch
thanks

        Hi,

On Wed, Nov 02, 2005, Stefano Zacchiroli wrote:
> How am I supposed to statically link libgtksourceview in end-user
> applications? Since gtksourceview is not so widespread it would be a
> good idea to enable its static linking ...

 I just checked policy, and I think nothing requires the presence of
 a static version of the library.  I understand that it's a nice to have
 feature, however it has some serious drawbacks:
 - experience proved that some static libraries don't work at all, and
   noone stepped up to repair them due to the complexity of the build
   process (I think the discussion started due to the size of
   libgtk2.0-dev)
 - static libraries eat a lot of space (the current installed size of
   libgtksourceview-dev is 164k, and would bump by 672k)

 The default configure flags will even disable static libraries
 generation.

 Since I'm not even sure that libgtksourceview would work as a static
 library, I attach a patch enabling this support.  Please rebuild and
 test the resulting .a, if you can do something useful out of it, I'll
 consider its inclusion.

   Cheers,
-- 
Loïc Minier <lool at dooz.org>
-------------- next part --------------
Index: debian/changelog
===================================================================
--- debian/changelog	(révision 4537)
+++ debian/changelog	(copie de travail)
@@ -1,3 +1,10 @@
+gtksourceview (1.4.2-2) UNRELEASED; urgency=low
+
+  * Add CDBS' utils. [debian/rules]
+  * Enable building of static libraries. [debian/rules]
+
+ -- Loic Minier <lool at dooz.org>  Wed,  2 Nov 2005 11:45:18 +0100
+
 gtksourceview (1.4.2-1) unstable; urgency=high
 
   * Urgency high because of RC bug fix.
Index: debian/rules
===================================================================
--- debian/rules	(révision 4537)
+++ debian/rules	(copie de travail)
@@ -5,12 +5,14 @@
 # CDBS Classes & Rules
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/rules/utils.mk
 include /usr/share/cdbs/1/class/gnome.mk
 include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
 
 # Compile options
 DEB_CONFIGURE_EXTRA_FLAGS :=	\
-	--with-html-dir=\$${datadir}/doc/gtksourceview
+	--with-html-dir=\$${datadir}/doc/gtksourceview \
+	--enable-static
 
 # Debhelper Arguments
 DEB_DH_INSTALL_ARGS := --sourcedir=debian/tmp


More information about the Pkg-gnome-maintainers mailing list