You are not logged in.

#1 2008-03-28 23:16:11

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

makepkg fails to download source but wget alone works fine

I made this PKGBUILD, but when I execute makepkg when it executes wget it just seems to keep looking for mirrors, while if I uso wget alone it works fine:

# Contributor: LTSmash <lord.ltsmash@gmail.com>
pkgname=assaultcube
pkgver=v0.93
pkgrel=1
pkgdesc="A realistic team oriented multiplayer FPS based on the Cube engine."
arch=('i686')
url="http://assault.cubers.net/"
license=('GPL')
depends=(mesa sdl_image sdl_mixer)
source=(http://downloads.sourceforge.net/actiongame/$pkgname_$pkgver.tar.gz?use_mirror=switch)
md5sums=(generate with makepkg -g)

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

What am I doing wrong?
Thanks.


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#2 2008-03-28 23:20:21

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: makepkg fails to download source but wget alone works fine

Remove the "?..." ending from source, and remove the invalid md5sums line.

Offline

#3 2008-03-28 23:25:39

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: makepkg fails to download source but wget alone works fine

Hum...

[root@LTS-Arch AssaultCube]# LANG=C makepkg --asroot
==> Making package: assaultcube v0.93-1  (Fri Mar 28 17:30:02 CST 2008)
==> WARNING: Running makepkg as root...
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Downloading v0.93.tar.gz...
--2008-03-28 17:30:02--  http://downloads.sourceforge.net/action … .93.tar.gz
Resolving downloads.sourceforge.net... 66.35.250.203
Connecting to downloads.sourceforge.net|66.35.250.203|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://superb-west.dl.sourceforge.net/s … .93.tar.gz [following]
--2008-03-28 17:30:03--  http://superb-west.dl.sourceforge.net/s … .93.tar.gz
Resolving superb-west.dl.sourceforge.net... 209.160.59.253
Connecting to superb-west.dl.sourceforge.net|209.160.59.253|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://prdownloads.sourceforge.net/acti … eforge.net [following]
--2008-03-28 17:30:04--  http://prdownloads.sourceforge.net/acti … eforge.net
Resolving prdownloads.sourceforge.net... 66.35.250.217
Connecting to prdownloads.sourceforge.net|66.35.250.217|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/action … eforge.net [following]
--2008-03-28 17:30:05--  http://downloads.sourceforge.net/action … eforge.net
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://jaist.dl.sourceforge.net/sourcef … .93.tar.gz [following]
--2008-03-28 17:30:06--  http://jaist.dl.sourceforge.net/sourcef … .93.tar.gz
Resolving jaist.dl.sourceforge.net... 150.65.7.130
Connecting to jaist.dl.sourceforge.net|150.65.7.130|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://prdownloads.sourceforge.net/acti … eforge.net [following]
--2008-03-28 17:30:07--  http://prdownloads.sourceforge.net/acti … eforge.net
Connecting to prdownloads.sourceforge.net|66.35.250.217|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/action … eforge.net [following]
--2008-03-28 17:30:08--  http://downloads.sourceforge.net/action … eforge.net
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://heanet.dl.sourceforge.net/source … .93.tar.gz [following]
--2008-03-28 17:30:08--  http://heanet.dl.sourceforge.net/source … .93.tar.gz
Resolving heanet.dl.sourceforge.net... 193.1.193.66, 2001:770:18:aa40::c101:c142
Connecting to heanet.dl.sourceforge.net|193.1.193.66|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2008-03-28 17:30:09 ERROR 404: Not Found.

==> ERROR: Failure while downloading v0.93.tar.gz
    Aborting...
[root@LTS-Arch AssaultCube]#

Still no luck, already did what you told me.

Last edited by LTSmash (2008-03-28 23:27:29)


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#4 2008-03-28 23:34:22

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: makepkg fails to download source but wget alone works fine

This is what I have added to the /etc/hosts file:

195.141.111.5 download.sourceforge.net download.sf.net dl.sourceforge.net dl.sf.net downloads.sourceforge.net

If that IP doesn't work for you I also keep this one there, commented out, as a backup: 193.1.193.66.
Maybe something like this would help in your case.

Nevermind -- something is wrong with your Sources line, because in the output you posted makepkg is trying to download a file called "v0.93.tar.gz" -- which doesn't exist.

Last edited by fwojciec (2008-03-28 23:36:26)

Offline

#5 2008-03-28 23:38:09

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: makepkg fails to download source but wget alone works fine

Ahm, weird and dunno why, this works and the other way don't :S

# Contributor: LTSmash <lord.ltsmash@gmail.com>
pkgname=AssaultCube
pkgver=0.93
_pkgver=_v0.93
pkgrel=1
pkgdesc="A realistic team oriented multiplayer FPS based on the Cube engine."
arch=('i686')
url="http://assault.cubers.net/"
license=('GPL')
depends=(mesa sdl_image sdl_mixer)
source=(http://downloads.sourceforge.net/actiongame/AssaultCube_v0.93.tar.bz2?use_mirror=switch)
#source=(http://downloads.sourceforge.net/actiongame/$pkgname$_pkgver.tar.gz)
md5sums=()

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

Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#6 2008-03-28 23:39:24

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: makepkg fails to download source but wget alone works fine

fwojciec wrote:

Nevermind -- something is wrong with your Sources line, because in the output you posted makepkg is trying to download a file called "v0.93.tar.gz" -- which doesn't exist.

Already fixed but still no luck, check my post before this one :S


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#7 2008-03-28 23:46:04

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: makepkg fails to download source but wget alone works fine

I would suggest something like this:

# Contributor: LTSmash <lord.ltsmash@gmail.com>
pkgname=assaultcube
pkgver=0.93
pkgrel=1
pkgdesc="A realistic team oriented multiplayer FPS based on the Cube engine."
arch=('i686')
url="http://assault.cubers.net/"
license=('GPL')
depends=(mesa sdl_image sdl_mixer)
source=(http://downloads.sourceforge.net/actiongame/AssaultCube_v$pkgver.tar.gz)
#source=(http://downloads.sourceforge.net/actiongame/$pkgname$_pkgver.tar.gz)
md5sums=()

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

As I understand it there should be no capital letters in the package name.

Offline

#8 2008-03-29 05:28:19

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: makepkg fails to download source but wget alone works fine

fwojciec wrote:

I would suggest something like this:

# Contributor: LTSmash <lord.ltsmash@gmail.com>
pkgname=assaultcube
pkgver=0.93
pkgrel=1
pkgdesc="A realistic team oriented multiplayer FPS based on the Cube engine."
arch=('i686')
url="http://assault.cubers.net/"
license=('GPL')
depends=(mesa sdl_image sdl_mixer)
source=(http://downloads.sourceforge.net/actiongame/AssaultCube_v$pkgver.tar.gz)
#source=(http://downloads.sourceforge.net/actiongame/$pkgname$_pkgver.tar.gz)
md5sums=()

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

As I understand it there should be no capital letters in the package name.

EDIT: Nope, its not working, the problem persists :S

[root@LTS-Arch AssaultCube]# LANG=C makepkg --asroot

==> Making package: assaultcube 0.93-1  (Fri Mar 28 23:33:36 CST 2008)
==> WARNING: Running makepkg as root...
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Downloading AssaultCube_v0.93.tar.gz...
--2008-03-28 23:33:36--  http://downloads.sourceforge.net/actiongame/AssaultCube_v0.93.tar.gz
Resolving downloads.sourceforge.net... 66.35.250.203
Connecting to downloads.sourceforge.net|66.35.250.203|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://superb-east.dl.sourceforge.net/sourceforge/actiongame/AssaultCube_v0.93.tar.gz [following]
--2008-03-28 23:33:37--  http://superb-east.dl.sourceforge.net/sourceforge/actiongame/AssaultCube_v0.93.tar.gz
Resolving superb-east.dl.sourceforge.net... 209.160.66.130
Connecting to superb-east.dl.sourceforge.net|209.160.66.130|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://prdownloads.sourceforge.net/actiongame/AssaultCube_v0.93.tar.gz?download&failedmirror=superb-east.dl.sourceforge.net [following]
--2008-03-28 23:33:37--  http://prdownloads.sourceforge.net/actiongame/AssaultCube_v0.93.tar.gz?download&failedmirror=superb-east.dl.sourceforge.net
Resolving prdownloads.sourceforge.net... 66.35.250.217
Connecting to prdownloads.sourceforge.net|66.35.250.217|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/actiongame/AssaultCube_v0.93.tar.gz?download&failedmirror=superb-east.dl.sourceforge.net [following]
--2008-03-28 23:33:37--  http://downloads.sourceforge.net/actiongame/AssaultCube_v0.93.tar.gz?download&failedmirror=superb-east.dl.sourceforge.net
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://optusnet.dl.sourceforge.net/sourceforge/actiongame/AssaultCube_v0.93.tar.gz [following]
--2008-03-28 23:33:38--  http://optusnet.dl.sourceforge.net/sourceforge/actiongame/AssaultCube_v0.93.tar.gz
Resolving optusnet.dl.sourceforge.net... 211.29.132.142
Connecting to optusnet.dl.sourceforge.net|211.29.132.142|:80... connected.
HTTP request sent, awaiting response...
==> ERROR: Aborted by user! Exiting...
[root@LTS-Arch AssaultCube]#

Last edited by LTSmash (2008-03-29 05:32:42)


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#9 2008-03-29 05:34:41

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: makepkg fails to download source but wget alone works fine

FYI, you needed to put curly brackets around your variables.  I.e. ${pkgname}${_pkgver} should have worked.

Offline

Board footer

Powered by FluxBB