You are not logged in.

#1 2004-12-30 01:11:16

skoal
Member
From: Frequent Flyer Underworld
Registered: 2004-03-23
Posts: 612
Website

giFT/Gnutella plugin 1 year experation date?

The giFT daemon will error out if I am using the Gnutella protocol plugin with the following error:

[18:54:32] Plugin Gnutella (0.0.9) successfully loaded and initialized
[18:54:32] Gnutella: gt_gnutella.c:352(gnutella_start): Starting Gnutella plugin
[18:54:32] *** GIFT-ERROR:
Your version of the Gnutella plugin is more than 1 year
old.  In order to protect the Gnutella network from
older programs, this plugin has deactivated itself.

I've been using all 3 protocols with no problem for several months now, but apparently, something built into giFT itself is causing this problem.  The problem is self explanatory from what's posted above.  What's not self explanatory is...

I've checked the giFT website and download section on sourceforge, but there are no current releases to Gnutella scheduled.  I am currently up to date on giFT and all it's plugin protocol packages, as are the Arch repositories themselves.

Any ideas how to get giFT to run with Gnutella plugin still active?  NOTE: I disabled the Gnutella protocol and the giFT daemon will start fine, but I'd like to be able to use this protocol with the others.

Offline

#2 2004-12-30 01:35:30

skoal
Member
From: Frequent Flyer Underworld
Registered: 2004-03-23
Posts: 612
Website

Re: giFT/Gnutella plugin 1 year experation date?

Well, the quick and easy sol'n is to comment out year old expiration check in "gt_gnutella.c".  I made a patch, remade a custom pkg, and everything works now again.  Basically, just comment out the lines ~358-362 in that file.  It's where it calls the function "too_old_error_msg ()".

Here's my patch:

*** gt_gnutella.c       2004-12-29 19:30:11.000000000 -0600
--- gt_gnutella.orig.c  2004-12-29 19:28:02.000000000 -0600
***************
*** 354,366 ****
        /* set the last time we were running to now */
        start_time = time (NULL);
 
-       /*
        if (start_time - GT_RELEASE_DATE >= 365 * EDAYS)
        {
                too_old_error_msg ();
                return FALSE;
        }
-       */
 
        if (!gt_config_init ())
        {
--- 354,364 ----

I don't see any new release scheduled for this plugin, so this is the only sol'n I could come up with.

Offline

#3 2004-12-30 02:24:14

skoal
Member
From: Frequent Flyer Underworld
Registered: 2004-03-23
Posts: 612
Website

Re: giFT/Gnutella plugin 1 year experation date?

Sorry about the multiple replies to self, but if you want to make the changes yourself, here's what I did:

1. Make the patch yourself or use the one I gave above and call it "yearold.patch".  Put that file in your "abs" tree at the root directory where your "gift-gnutella" PKGBUILD is.  I build my custom packages in "/var/abs/local/<package name>".

Here's the contents of my "/var/abs/local/gift-gnutella" directory:

[root@morpheus gift-gnutella]# ls
PKGBUILD  yearold.patch

2. Change the "source=()" download mirror.  There seems to be a problem with the mirror used in the Arch repository.  I used a different http mirror.  Here's my PKGBUILD:

# $Id: PKGBUILD,v 1.8 2004/02/07 02:20:49 jason Exp $
# Maintainer: Jason Chu <jason@archlinux.org>
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>

pkgname=gift-gnutella
pkgver=0.0.9.2
pkgrel=1
pkgdesc="GiFT's Gnutella plugin."
depends=('gift' 'zlib')
source=(http://internap.dl.sourceforge.net/sourceforge/gift/$pkgname-$pkgver.tar.bz2)
md5sums=('a348b3449fc818d767b8c8570ea07eb5')
url="http://gift.sourceforge.net"

build() {
  cd $startdir/src/$pkgname-$pkgver
 
# apply patch
  cd src
  patch -Np0 -i ../../../yearold.patch || return 1
  cd ..

  touch NEWS AUTHORS
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
  mkdir -p $startdir/pkg/usr/share/giFT/Gnutella
  cp $startdir/src/$pkgname-$pkgver/data/Gnutella.conf $startdir/pkg/usr/share/giFT/Gnutella
  cp $startdir/src/$pkgname-$pkgver/data/hostiles.txt $startdir/pkg/usr/share/giFT/Gnutella
  }

Offline

#4 2004-12-30 05:50:34

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: giFT/Gnutella plugin 1 year experation date?

you should post a bug report with all your fixes.

that way it can go into the trees instead of manual fiddling on a user level.


AKA uknowme

I am not your friend

Offline

#5 2004-12-31 02:57:20

jskier
Member
From: Minnesota, USA
Registered: 2003-07-30
Posts: 357
Website

Re: giFT/Gnutella plugin 1 year experation date?

I get malformed errors with your patch.  :?


--
JSkier

Offline

#6 2004-12-31 22:30:46

skoal
Member
From: Frequent Flyer Underworld
Registered: 2004-03-23
Posts: 612
Website

Re: giFT/Gnutella plugin 1 year experation date?

jskier wrote:

I get malformed errors with your patch.  :?

Hmm...maybe it has something to do with cutting/pasting from/into these forums.  I don't know, but here is the last patch i used directly with the PKGBUILD above.  I think the first one was when I was just fumbling through the sources.

I don't have anyway to host these files, so try this one:

*** gt_gnutella.c       2003-12-31 12:51:22.000000000 -0600
--- gt_gnutella.orig.c  2004-12-29 20:03:42.000000000 -0600
***************
*** 354,364 ****
--- 354,366 ----
        /* set the last time we were running to now */
        start_time = time (NULL);

+       /*
        if (start_time - GT_RELEASE_DATE >= 365 * EDAYS)
        {
                too_old_error_msg ();
                return FALSE;
        }
+       */

        if (!gt_config_init ())
        {

Offline

#7 2005-01-01 18:12:20

jskier
Member
From: Minnesota, USA
Registered: 2003-07-30
Posts: 357
Website

Re: giFT/Gnutella plugin 1 year experation date?

Still getting malformed errors... First it was a commented line but once I deleted that it still had malformed problems with reseting the time deal. I'll just wait for the package to be updated or if you're up to it you could e-mail me the package.

~JSkier


--
JSkier

Offline

#8 2005-01-01 22:32:20

skoal
Member
From: Frequent Flyer Underworld
Registered: 2004-03-23
Posts: 612
Website

Re: giFT/Gnutella plugin 1 year experation date?

I sent you my pkgbuild at your email address.  I'll be on the #archlinux IRC channel for most of the day if you have any questions.  I would post the file here but my superihost.com web portal cannot resolve DNS for the moment, so I cannot provide a link.

Offline

Board footer

Powered by FluxBB