You are not logged in.

#1 2006-05-28 16:47:05

timm
Member
From: Wisconsin
Registered: 2004-02-25
Posts: 417

atftp replacement

I'm trying to install mvpmc, a program that will run a Hauppauge MediaMVP from linux.  Per their instructions, I need to install aftpd to allow the MediaMVP to boot from a /tftpboot directory on my arch box.

Arch doesn't have a current package for atftp, so I tried using tftp-hpa  but cannot get the system to work.  There are some known hardware problems, but I'm trying to follow their instructions exactly so I can isolate whether this is the problem, or something else.

I have tried building the atftp package from the AUR, but it could not download the source.  I modified the PKGBUILD file to require atftp .7, but now during the makepkg stage I get the following warning:

tftp.c:360: warning: pointer targets in passing argument 4 of 'argz_create_sep' differ in signedness

This gives me a 1st error, a 2nd error ends the program 2 lines later.  I'm no programmer, so this error message is not helpful to me.

Is there a way to fix this issue, or is there an alternative for atftp?

Offline

#2 2006-05-28 18:49:27

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: atftp replacement

Atftp 0.7 needs a patch. You can try this pkgbuild + patch, it seems to compile ok.

PKGBUILD:

pkgname=atftp
pkgver=0.7
pkgrel=1
pkgdesc="a client/server implementation of the TFTP protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349"
url="http://freshmeat.net/projects/atftp/"
license="GPL"
depends=('pcre' 'readline')
makedepends=('bash' 'gcc')
conflicts=('netkit-tftp')
replaces=('netkit-tftp')
source=(http://downloads.openwrt.org/sources/$pkgname-$pkgver.tar.gz atftp-patch.diff)
md5sums=('3b27365772d918050b2251d98a9c7c82' 
         'adf34e78ac4145a7c4288d9abc234554')

build() {
  cd $startdir/src/$pkgname-$pkgver
  patch -Np1 -i ../atftp-patch.diff 
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}

atftp-patch.diff :

diff -ruN atftp-0.7/argz.h atftp-0.7-new/argz.h
--- atftp-0.7/argz.h    2003-01-21 01:38:35.000000000 +0000
+++ atftp-0.7-new/argz.h        2006-05-28 18:42:42.000000000 +0000
@@ -179,8 +179,8 @@
 
 #ifdef __USE_EXTERN_INLINES
 extern inline char *
-__argz_next (__const char *__argz, size_t __argz_len,
-            __const char *__entry) __THROW
+__NTH (__argz_next (__const char *__argz, size_t __argz_len,
+            __const char *__entry))
 {
   if (__entry)
     {
@@ -193,8 +193,8 @@
     return __argz_len > 0 ? (char *) __argz : 0;
 }
 extern inline char *
-argz_next (__const char *__argz, size_t __argz_len,
-          __const char *__entry) __THROW
+__NTH (argz_next (__const char *__argz, size_t __argz_len,
+          __const char *__entry))
 {
   return __argz_next (__argz, __argz_len, __entry);
 }

Offline

#3 2006-06-10 16:34:24

timm
Member
From: Wisconsin
Registered: 2004-02-25
Posts: 417

Re: atftp replacement

I finally got back to this; tried the PKGBUILD with the patch provided; it gives me this error:

patching file argz.h
Hunk #1 FAILED at 179.
patch unexpectedly ends in middle of line
Hunk #2 FAILED at 193.
2 out of 2 hunks FAILED -- saving rejects to file argz.h.rej

At the end, the build fails as before.

I assume there's a typo here, but I've been through what I copied a couple of times and see nothing; is there something in what you posted?

Offline

#4 2007-07-02 14:30:17

close2
Member
Registered: 2006-09-08
Posts: 12

Re: atftp replacement

I modified the PKGBUILD to download the patch from my server:

pkgname=atftp
pkgver=0.7
pkgrel=1
pkgdesc="a client/server implementation of the TFTP protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349"
url="http://freshmeat.net/projects/atftp/"
license="GPL"
depends=('pcre' 'readline')
makedepends=('bash' 'gcc')
conflicts=('netkit-tftp')
replaces=('netkit-tftp')
source=(http://downloads.openwrt.org/sources/$pkgname-$pkgver.tar.gz http://christian.delta64.com/atftp-patch.diff)
md5sums=('3b27365772d918050b2251d98a9c7c82'
         '8b5c4b3cea9e8036ddf58433fb4a58e8')

build() {
  cd $startdir/src/$pkgname-$pkgver
  patch -Np1 -i ../atftp-patch.diff
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}

Offline

Board footer

Powered by FluxBB