pan-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pan-users] about building 0.136 on Slackware


From: Loki Harfagr
Subject: [Pan-users] about building 0.136 on Slackware
Date: Sun, 8 Apr 2012 17:02:50 +0200

Hello pan dev-men :-)

As I noticed Robby's News Flash post on aolu I went curious end
checked if I could build the git and then the source tar on my -current 
Slackware

It went quite easily with the small patch pasted below,
I tested only a few posts, including binaries, and all seems quite
good (apart the initial default "sort by date recent up" a la Outlook ;-)

Please note that I'm not part of the packaging team!

the patch addresses three tiny glitches most probably sue to my -current state:
1. the configure scripts didn't look the automake share vault for install-sh
 (there certainly exists a kosher AC-AM way to find it but I'm not a dev for a 
long time now)
2. an include was missing in task/nzb.h about unlink, a question od gcc version 
I guess
3. the pan/gui/pan.cc used a non fully backwards compatible expression (or I'm 
lost in mine :D).

There's a strange glitch on the rebelbase download site, the tarballs are not 
in the 'source' subdir :-)

--------------------
$ cat pan-0.136-betatypos.patch 
--- pan-0.136/configure.ori     2012-04-08 16:38:32.403418314 +0200
+++ pan-0.136/configure 2012-04-08 16:39:01.782416193 +0200
@@ -2384,8 +2384,9 @@
 
 am__api_version='1.11'
 
+am_sh_dir=$( (which automake ; echo $am__api_version) | awk 
'NR==1{sub(/bin/,"share");p=$0;next};{printf("%s-%s\n",p,$NF);exit}' )
 ac_aux_dir=
-for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.." $am_sh_dir ; do
   if test -f "$ac_dir/install-sh"; then
     ac_aux_dir=$ac_dir
     ac_install_sh="$ac_aux_dir/install-sh -c"

--- pan-0.136/pan/tasks/nzb.h.ori       2012-04-08 16:40:34.798409975 +0200
+++ pan-0.136/pan/tasks/nzb.h   2012-04-08 16:40:48.014409129 +0200
@@ -20,6 +20,7 @@
 #ifndef __NZB_H__
 #define __NZB_H__
 
+#include <unistd.h>
 #include <vector>
 #include <pan/data/data.h>
 #include <pan/usenet-utils/MersenneTwister.h>

--- pan-0.136/pan/gui/pan.cc.ori        2012-04-08 16:41:07.422407686 +0200
+++ pan-0.136/pan/gui/pan.cc    2012-04-08 16:41:19.054406746 +0200
@@ -320,7 +320,7 @@
       NotifyNotification *notif(0);
       GError* error(0);
 
-      notif = notify_notification_new (summary, body, NULL);
+      notif = notify_notification_new (summary, body, NULL, NULL);
       if (!notif) return;
 
       _notifs.insert(G_OBJECT(notif));
--------------------

-- 
<
 °/_
 /|
   ¹ 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]