]> saetta.ns0.it Git - zakform/libzakform/commitdiff
Debian pkg: updates from upstream (start patching).
authorAndrea Zagli <azagli@libero.it>
Sat, 24 Jun 2017 09:03:47 +0000 (11:03 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 24 Jun 2017 09:03:47 +0000 (11:03 +0200)
debian/changelog
debian/control
debian/libzakform-dev.install
debian/libzakform.install
debian/patches/0001-DESTDIR-support.patch
debian/patches/0002-aclocal-old-version.patch
debian/patches/0005-Glib-old-version-private.patch
debian/patches/0006-Some-new-functions-not-replaced.patch
debian/patches/0009-Glib-old-version-private.patch
debian/rules

index 6aa1ad3888380ddf075be97383aba225ce07518e..3679fa6468ec7bde163d671112000a35ef38edc6 100644 (file)
@@ -1,6 +1,6 @@
-libzakform (0.0.1-4~6.gbp93b859) UNRELEASED; urgency=medium
+libzakform (0.0.1-4~7.gbpdc0f58) UNRELEASED; urgency=medium
 
-  ** SNAPSHOT build @93b859fdaee31093247b0f27ff27ab846e1b83ee **
+  ** SNAPSHOT build @dc0f58a402c4d3b9c900adf1eb54ec569f91029c **
 
   [ Andrea Zagli ]
   * Initial release
@@ -55,4 +55,28 @@ libzakform (0.0.1-4~6.gbp93b859) UNRELEASED; urgency=medium
 
   [ tux ]
 
- -- tux <tux@develop64.comune.scandicci.fi.it>  Sat, 27 May 2017 09:19:02 +0200
+  [ Andrea Zagli ]
+  * Debian pkg: locale files in dev (closes #1121).
+  * Enabled gtk-doc.
+  * Enabled gir.
+  * Added private function ZakForm::get_module_new.
+  * Renamed function ZakFormForm::get_form_element_validator.
+  * Added function ZakFormForm::get_form_element_filter.
+  * Use of ZakFormForm::get_module_new in FormValidator construct from xml.
+  * Make public function ZakFormElement::xml_parsing.
+  * Added function ZakFormForm::get_form_element.
+  * Added some member functions to ZakFormElement.
+  * Added class ZakFormElementExtension.
+  * Moved functions ZakFormForm::get_form_* to commons.
+  * Moved function ZakFormForm::element_xml_parsing in ZakFormElement.
+  * Start of implementation of FormElementArray.
+  * Added function ZakFormElementArray::get_element_by_id.
+  * Wrong comparision value in ZakForm*ValidatorCompare*.
+  * Implemented functions ZakFormElementArray::[gs]et_visible.
+  * Implemented functions ZakFormElementArray::[gs]et_editable.
+  * Implemented functions ZakFormElementArray::is_valid.
+  * Implemented functions ZakFormElementArray::is_changed.
+
+  [ tux ]
+
+ -- tux <tux@develop64.example.tst>  Sat, 24 Jun 2017 10:34:40 +0200
index 43a1eee731bc52599d0923a00e0648adbd97d6e3..fc5d8647d4176ee84c00d90fed9aea17f473cc5e 100644 (file)
@@ -1,7 +1,7 @@
 Source: libzakform
 Priority: optional
 Maintainer: Andrea Zagli <azagli@libero.it>
-Build-Depends: debhelper (>=9), libzakutils-dev, intltool, pkg-config, gtk-doc-tools, libxml2-dev
+Build-Depends: debhelper (>=9), libzakutils-dev, intltool, pkg-config, gtk-doc-tools, gobject-introspection, libgirepository1.0-dev, libxml2-dev
 Standards-Version: 3.9.8
 Section: libs
 Homepage: http://saetta.ns0.it
index dde00097fac75e761222dbf073e19ff91a6b421f..4a419f3377c0dc1ba057be614bc8d9442126b938 100644 (file)
@@ -2,3 +2,4 @@ usr/lib/*/libzakform.a
 usr/lib/*/libzakform.la
 usr/lib/*/pkgconfig/*
 usr/include/libzakform*
+usr/share/gtk-doc/*
index 86af80ac357003bf4f6d252211f5d33752d03a59..e902df3d9d8954021dec61c4e86e2e1087d3d553 100644 (file)
@@ -1,3 +1,4 @@
 usr/lib/*/libzakform*.so*
 usr/lib/*/libzakform/modules
-usr/share/locale/*
\ No newline at end of file
+usr/share/locale/*
+usr/lib/*/girepository-1.0/*
\ No newline at end of file
index 5f287e85e8bef0a3b0ad4c2c985527826285bb6d..faad6637372b55792d1661b04ff2a18384aaea64 100644 (file)
@@ -10,7 +10,7 @@ diff --git a/src/Makefile.am b/src/Makefile.am
 index 6c6f9b6..ee33785 100644
 --- a/src/Makefile.am
 +++ b/src/Makefile.am
-@@ -55,7 +55,7 @@ libzakform_include_HEADERS = \
+@@ -62,10 +62,10 @@
  libzakform_includedir = $(includedir)/libzakform
  
  install-exec-hook:
@@ -20,3 +20,6 @@ index 6c6f9b6..ee33785 100644
  uninstall-hook:
 -      rm -rf "$(libdir)/$(PACKAGE)"
 +      rm -rf "$(DESTDIR)$(libdir)/$(PACKAGE)"
+ CLEANFILES =
index bb3a293f4f3f00432063d5855fd2e3cfe5fee82f..22e322594251c3fa1c3f85b4244e522211084144 100644 (file)
@@ -17,5 +17,5 @@ index 83f5de2..9e5ebc4 100755
 -aclocal --install || exit 1
 +aclocal --install -I m4 || exit 1
  glib-gettextize --force --copy || exit 1
#gtkdocize --copy || exit 1
+ gtkdocize --copy || exit 1
  intltoolize --force --copy --automake || exit 1
index cbc8e3c3402f6c0dc6d39c8f84d0da9ae8e75bb8..a933969f2f31424d988dd961978cc67f0dda23c2 100644 (file)
@@ -26,15 +26,15 @@ diff --git a/src/form.c b/src/form.c
 index 226ca90..03c076f 100644
 --- a/src/form.c
 +++ b/src/form.c
-@@ -57,6 +57,8 @@ static void zak_form_form_finalize (GObject *gobject);
- static void zak_form_form_load_modules (ZakFormForm *zakform);
+@@ -51,6 +51,8 @@
+ static void zak_form_form_dispose (GObject *gobject);
+ static void zak_form_form_finalize (GObject *gobject);
  
 +#define ZAK_FORM_FORM_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_FORM_TYPE_FORM, ZakFormFormPrivate))
 +
  typedef struct
        {
-               GPtrArray *ar_modules;
+               GPtrArray *ar_elements;
 @@ -65,7 +67,7 @@ typedef struct
                GPtrArray *ar_messages;
        } ZakFormFormPrivate;
@@ -53,24 +53,6 @@ index 226ca90..03c076f 100644
        class->get_elements = zak_form_form_get_elements;
  }
  
-@@ -170,7 +174,7 @@ zak_form_form_element_xml_parsing (ZakFormForm *zakform, ZakFormElement *element
-       gboolean to_unlink;
-       xmlNode *xnode_tmp;
--      priv = zak_form_form_get_instance_private (zakform);
-+      priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-       xnode = xnode->children;
-       while (xnode)
-@@ -356,7 +360,7 @@ zak_form_form_load_from_xml (ZakFormForm *zakform, xmlDoc *xmldoc)
-                               {
-                                       ret = TRUE;
--                                      priv = zak_form_form_get_instance_private (zakform);
-+                                      priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-                                       cur = cur->children;
-                                       while (cur)
 @@ -497,7 +501,7 @@ zak_form_form_add_element (ZakFormForm *zakform, ZakFormElement *element)
  
        ZakFormFormPrivate *priv;
@@ -224,22 +206,13 @@ index 226ca90..03c076f 100644
  
  
  
-@@ -984,7 +988,7 @@ zak_form_form_load_modules (ZakFormForm* zakform)
-       if (g_module_supported ())
-               {
--                      priv = zak_form_form_get_instance_private (zakform);
-+                      priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-                       modulesdir = (gchar *)g_getenv ("LIBZAKFORM_MODULESDIR");
-                       if (modulesdir == NULL)
 diff --git a/src/formelement.c b/src/formelement.c
 index eb9a601..ea3542c 100644
 --- a/src/formelement.c
 +++ b/src/formelement.c
-@@ -65,6 +65,8 @@ static void zak_form_element_finalize (GObject *gobject);
- static void zak_form_element_xml_parsing (ZakFormElement *element, xmlNode *xmlnode);
+@@ -66,6 +65,8 @@
+ static void zak_form_element_dispose (GObject *gobject);
+ static void zak_form_element_finalize (GObject *gobject);
  
 +#define ZAK_FORM_ELEMENT_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_FORM_TYPE_ELEMENT, ZakFormElementPrivate))
 +
@@ -255,9 +228,8 @@ index eb9a601..ea3542c 100644
  
  static void
  zak_form_element_class_init (ZakFormElementClass *class)
-@@ -100,6 +102,8 @@ zak_form_element_class_init (ZakFormElementClass *class)
-       class->xml_parsing = zak_form_element_xml_parsing;
+@@ -100,5 +102,7 @@ zak_form_element_class_init (ZakFormElementClass *class)
+       object_class->finalize = zak_form_element_finalize;
  
 +      g_type_class_add_private (object_class, sizeof (ZakFormElementPrivate));
 +
@@ -489,15 +461,15 @@ index eb9a601..ea3542c 100644
  
        return priv->to_save;
  }
-@@ -1246,7 +1250,7 @@ zak_form_element_clear (ZakFormElement *element)
+@@ -1259,7 +1259,7 @@ zak_form_element_clear (ZakFormElement *element)
  {
        ZakFormElementPrivate *priv;
  
 -      priv = zak_form_element_get_instance_private (element);
 +      priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
  
-       zak_form_element_set_value_gvalue (element, priv->default_value);
- }
+       if (ZAK_FORM_ELEMENT_GET_CLASS (element)->clear != NULL)
+               {
 @@ -1314,7 +1318,7 @@ zak_form_element_is_valid (ZakFormElement *element)
  
        ZakFormElementClass *klass = ZAK_FORM_ELEMENT_GET_CLASS (element);
index 0995c764359c973d6bc88ddb5bf5cb62f8ba27bd..245d7004dc88931c890920f77a02a6a8be415dd3 100644 (file)
@@ -20,8 +20,8 @@ index 03c076f..4d6a76a 100644
 -      ZakFormFormPrivate *priv = zak_form_form_get_instance_private (zak_form_form);
 +      ZakFormFormPrivate *priv = ZAK_FORM_FORM_GET_PRIVATE (zak_form_form);
  
-       priv->ar_modules = NULL;
        priv->ar_elements = g_ptr_array_new ();
+       priv->ar_validators = g_ptr_array_new ();
 diff --git a/src/formelement.c b/src/formelement.c
 index ea3542c..93b29c4 100644
 --- a/src/formelement.c
index a6a0e4b5c91ca3f4f0ba849801cd5281c38be45d..450184bd9e02b7dcfb4cc1566ffbe2766f40163e 100644 (file)
@@ -14,15 +14,6 @@ diff --git a/src/form.c b/src/form.c
 index db77782..3090dde 100644
 --- a/src/form.c
 +++ b/src/form.c
-@@ -300,7 +300,7 @@ zak_form_get_form_element_validator (ZakFormForm *zakform, const gchar *namespac
-       g_return_val_if_fail (ZAK_FORM_IS_FORM (zakform), NULL);
--      priv = zak_form_form_get_instance_private (zakform);
-+      priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-       validator_constructor = NULL;
 @@ -627,7 +627,7 @@ ZakFormValidator
  
        guint i;
index dc0ef3dd0533db65381edf2b8af9185b7ae11bab..b7397a630deb1ccae401c4258cbae47a8d6a174f 100755 (executable)
 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
 
+export DEB_CFLAGS_MAINT_STRIP = -Werror=format-security
+export DEB_CPPFLAGS_MAINT_STRIP = -Werror=format-security
+export DEB_CXXFLAGS_MAINT_STRIP = -Werror=format-security
+
+
 %:
        dh $@
 
 
 override_dh_auto_configure:
        NOCONFIGURE="X" ./autogen.sh
-       dh_auto_configure
+       dh_auto_configure -- --enable-introspection --enable-gtk-doc
 
 override_dh_auto_install:
        $(MAKE) DESTDIR=$$(pwd)/debian/tmp prefix=/usr install