Package: python-notify
Version: 0.1.1-1
Tags: upstream patch

Hi!

Current package does not export the function attach_to_status_icon().
Indeed it is not present in src/pynotify.c, although src/pynotify.defs
defines it.

The solution is to force a regeneration of src/pynotify.c during
build, see attached patch.

Ideally upstream would either not ship pynotify.c in the first place,
or make sure that it gets rebuild in the automake files.

Thanks,

Martin

-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org
diff -u notify-python-0.1.1/debian/changelog notify-python-0.1.1/debian/changelog
--- notify-python-0.1.1/debian/changelog
+++ notify-python-0.1.1/debian/changelog
@@ -1,3 +1,11 @@
+notify-python (0.1.1-1ubuntu1) gutsy; urgency=low
+
+  * debian/rules: Remove src/pynotify.c on clean, so that it actually gets
+    regenerated on build. Otherwise some functions like
+    attach_to_status_icon() are missing.
+
+ -- Martin Pitt <[EMAIL PROTECTED]>  Thu, 26 Jul 2007 07:40:50 +0200
+
 notify-python (0.1.1-1) unstable; urgency=low
 
   [ Piotr Ozarowski ]
diff -u notify-python-0.1.1/debian/control notify-python-0.1.1/debian/control
diff -u notify-python-0.1.1/debian/rules notify-python-0.1.1/debian/rules
--- notify-python-0.1.1/debian/rules
+++ notify-python-0.1.1/debian/rules
@@ -6,6 +6,10 @@
 include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
+clean::
+	# actually rebuild file
+	rm -f src/pynotify.c
+
 binary-install/python-notify::
 	dh_pysupport -p$(cdbs_curpkg)
 

Attachment: signature.asc
Description: Digital signature

Reply via email to