Control: tag -1 patch

Julien Cristau <jcris...@debian.org> (2014-05-11):
> Source: libphone-ui-shr
> Version: 0.1+git20130901-2
> Severity: serious
> Justification: fails to build from source (but built successfully in the past)
> 
> Hi,
> 
> your package no longer builds from source in sid, see built logs at
> https://buildd.debian.org/status/package.php?p=libphone-ui-shr

> > util/ui-utils.c:575:2: error: 'elm_notify_orient_set' is deprecated 
> > (declared at /usr/include/elementary-1/elm_deprecated.h:450) 
> > [-Werror=deprecated-declarations]
> >   elm_notify_orient_set(notify, ELM_NOTIFY_ORIENT_CENTER);
> >   ^

Patch attached, only build-tested.

Inspiration taken from:
  
http://git.enlightenment.org/devs/rimmed/eflete.git/commit/?h=migration&id=6cd30d0b9da625b2273b293978a202e46948be0a

Mraw,
KiBi.
diff -Nru libphone-ui-shr-0.1+git20130901/debian/changelog libphone-ui-shr-0.1+git20130901/debian/changelog
--- libphone-ui-shr-0.1+git20130901/debian/changelog	2013-10-30 11:18:38.000000000 +0100
+++ libphone-ui-shr-0.1+git20130901/debian/changelog	2014-05-28 11:30:01.000000000 +0200
@@ -1,3 +1,12 @@
+libphone-ui-shr (0.1+git20130901-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * add patch to deal with libelementary2 API incompatible change:
+    replace elm_notify_orient_set() with elm_notify_align_set().
+    + libelementary2.patch (Closes: #747760)
+
+ -- Cyril Brulebois <k...@debian.org>  Wed, 28 May 2014 11:26:45 +0200
+
 libphone-ui-shr (0.1+git20130901-2) unstable; urgency=low
 
   * upload to unstable
diff -Nru libphone-ui-shr-0.1+git20130901/debian/patches/libelementary2.patch libphone-ui-shr-0.1+git20130901/debian/patches/libelementary2.patch
--- libphone-ui-shr-0.1+git20130901/debian/patches/libelementary2.patch	1970-01-01 01:00:00.000000000 +0100
+++ libphone-ui-shr-0.1+git20130901/debian/patches/libelementary2.patch	2014-05-28 11:29:04.000000000 +0200
@@ -0,0 +1,13 @@
+elm_notify_orient_set was dropped from the API, replace with
+elm_notify_align_set, as seen in the eflete tree.
+--- a/src/util/ui-utils.c
++++ b/src/util/ui-utils.c
+@@ -572,7 +572,7 @@ ui_utils_notify(Evas_Object *parent, con
+ 	Evas_Object *notify, *bx, *bt, *lb;
+ 	notify = elm_notify_add(parent);
+ 	evas_object_size_hint_weight_set(notify, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+-	elm_notify_orient_set(notify, ELM_NOTIFY_ORIENT_CENTER);
++	elm_notify_align_set(notify, 0.5, 0.5);
+ 	elm_notify_timeout_set(notify, timeout);
+ 
+ 	bx = elm_box_add(parent);
diff -Nru libphone-ui-shr-0.1+git20130901/debian/patches/series libphone-ui-shr-0.1+git20130901/debian/patches/series
--- libphone-ui-shr-0.1+git20130901/debian/patches/series	2013-10-30 11:18:38.000000000 +0100
+++ libphone-ui-shr-0.1+git20130901/debian/patches/series	2014-05-28 11:29:38.000000000 +0200
@@ -1,2 +1,3 @@
 add-ecore-x-dependency.patch
 update-po.patch
+libelementary2.patch

Attachment: signature.asc
Description: Digital signature

Reply via email to