Package Details: perl-gtk2-notify 0.05-16

Git Clone URL: https://aur.archlinux.org/perl-gtk2-notify.git (read-only)
Package Base: perl-gtk2-notify
Description: Perl interface to libnotify
Upstream URL: http://search.cpan.org/perldoc?Gtk2::Notify
Licenses: LGPL
Submitter: PhotonX
Maintainer: bidulock
Last Packager: bidulock
Votes: 28
Popularity: 0.026585
First Submitted: 2009-12-23 12:53
Last Updated: 2016-08-09 00:26

Required by (3)

Sources (2)

Latest Comments

McLenin commented on 2016-06-29 07:04

This package currently installs in the wrong folder. As it is it installs into /home/user/perl5/...

where is it should install into
/usr/lib/perl5/...

The difference, though small causes programs such as gmusicbrowser to not find the library if they're started with a .desktop file (it still works if you start it from the terminal). To install the library into the correct place please change the following line in the package() function from:

make DESTDIR="$pkgdir" install

to

make install INSTALLDIRS=vendor DESTDIR="$pkgdir"

Thank you.

PhotonX commented on 2015-07-11 19:23

My bad, I realize that you made also some changes to the PKGBUILD and I have just updated the patch file. I think, it's better if you take care of this package, so I have disowned it. Thanks!

bidulock commented on 2015-07-11 19:15

Use the PKGBUILD and libnotify.patch files here:

https://gist.github.com/bbidulock/9055fabe53bf16128012

and you won't have any problem.

PhotonX commented on 2015-07-11 12:59

Updated the md5sum, will have a look at the other problem a little later. Thanks for reporting!

ValHue commented on 2015-07-11 11:58

I updated the checksums updpkgsums and now I have this one:

can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -up src/Gtk2-Notify-0.05/lib/Gtk2/Notify.pm.orig src/Gtk2-Notify-0.05/lib/Gtk2/Notify.pm
|--- src/Gtk2-Notify-0.05/lib/Gtk2/Notify.pm.orig 2008-11-11 23:47:33.000000000 -0700
|+++ src/Gtk2-Notify-0.05/lib/Gtk2/Notify.pm 2015-07-07 20:02:12.000000000 -0600
--------------------------
File to patch:

ValHue commented on 2015-07-11 11:56

Validating sources with md5sums ...
Gtk2-Notify-0.05.tar.gz ... Approved
libnotify.patch ... FAILED
==> ERROR: One or more files did not pass the validation control!

PhotonX commented on 2015-07-09 13:32

Thanks, updated!

bidulock commented on 2015-07-08 20:52

@PhotonX: yes, the libnotify.patch on gist adds the get_closed_reason method (it is really only two lines in the Notify.xs file). Upstream hasn't changed anything in over 4 years and, if you recall, there a lot of other patches in libnotify.patch that were required and we put in to bring the old package up to date. (cf. 2013-02-22 below).

PhotonX commented on 2015-07-08 16:33

@bidulock: Should I include the modified libnotify.patch into the package?

wxg4net commented on 2015-07-08 13:56

@bidulock thx.

$notification->signal_connect(closed => sub { Gtk2->main_quit });

bidulock commented on 2015-07-08 02:33

You can find a PKGBUILD and libnotify.patch file that adds get_closed_reason and corrects a few PKGBUILD issues here:

https://gist.github.com/bbidulock/9055fabe53bf16128012

PhotonX commented on 2014-06-04 17:27

Thanks, done.

jP_wanN commented on 2014-06-04 17:04

Please increase pkgrel, for the update of perl in [base] broke the XS modules in this package and it needs to be rebuilt to fix that

bidulock commented on 2013-06-16 03:42

please bump pkgrel to 9 to trigger recompile against perl 5.18.0

PhotonX commented on 2013-02-22 15:23

Thanks, submitted!

bidulock commented on 2013-02-22 13:31

I didn't know about those patches. They are very similar to the one I just did. I will merge them together into a workable patch and mail you the resulting source package.

PhotonX commented on 2013-02-22 12:48

Thanks for writing a patch! My programming skills are confined to a one week C++ course, so I didn't really understand what my little change actually caused (besides of the syntax error being corrected). So if there is a better solution, I'm glad to include it into the package. Please send it via email (see PKGBUILD) or e.g. pastebin.com. By the way, there are two other patches for this issue here: https://rt.cpan.org/Public/Bug/Display.html?id=67467 I don't understand them but maybe you can make some use of them for improving your patch.

bidulock commented on 2013-02-22 11:33

I have a patch that fixes the libnotify changes better (and completely) but I don't know how to get it to you.

bidulock commented on 2013-02-22 11:32

I have a patch that fixes the libnotify changes better (and completely) but I don't know how to get it to you.

PhotonX commented on 2011-06-05 10:01

Again: After recent updates perl-gtk2-notify crashes gmusicbrowser, a reinstall of perl-gtk2-notify fixes the problem.
Unfortunately I don't know the exact cause of this...

PhotonX commented on 2011-04-14 19:06

This is related to an update of libnotify in extra. I've included a little patch which fixed the problem for me, but I don't know if it's the correct way to fix it...

Anonymous comment on 2011-04-14 07:18

I have tried a couple of times and fails to build (i686)

xs/Notify.c: En la función ‘XS_Gtk2__Notify_new’:
xs/Notify.c:267:2: error: demasiados argumentos para la función ‘notify_notification_new’
/usr/include/libnotify/notification.h:114:21: nota: se declara aquí
xs/Notify.c: En la función ‘XS_Gtk2__Notify_new_with_status_icon’:
xs/Notify.c:322:2: aviso: declaración implícita de la función ‘notify_notification_new_with_status_icon’
xs/Notify.c:322:9: aviso: la asignación crea un puntero desde un entero sin una conversión
xs/Notify.c: En la función ‘XS_Gtk2__Notify_attach_to_widget’:
xs/Notify.c:391:2: aviso: declaración implícita de la función ‘notify_notification_attach_to_widget’
xs/Notify.c: En la función ‘XS_Gtk2__Notify_attach_to_status_icon’:
xs/Notify.c:414:2: aviso: declaración implícita de la función ‘notify_notification_attach_to_status_icon’
xs/Notify.c: En la función ‘XS_Gtk2__Notify_set_geometry_hints’:
xs/Notify.c:437:2: aviso: declaración implícita de la función ‘notify_notification_set_geometry_hints’
make: *** [xs/Notify.o] Error 1
==> ERROR: Se produjo un error en build().
Cancelando...
==> ERROR: Makepkg was unable to build perl-gtk2-notify.

PhotonX commented on 2011-03-04 20:13

Thanks, added!

xdevla commented on 2011-03-04 18:52

You should add gtk2-perl as dependency

PhotonX commented on 2010-11-30 08:30

Thanks, fixed! Should have read the perl packaging guidelines...

miffe commented on 2010-11-29 23:12

Doesn't seem to work with gmusicbrowser unless i change
perl Makefile.PL
to
perl Makefile.PL INSTALLDIRS=vendor

PhotonX commented on 2010-09-01 09:41

After recent updates perl-gtk2-notify crashes gmusicbrowser, a reinstall of perl-gtk2-notify fixes the problem.