You are not logged in.

#1 2008-04-02 10:29:49

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

makepkg issue with sourceforge

Any package I try to build using abs just stops when it attempts to download a program's sources from SourceForge.  It just sits there, doing nothing.  I have to go and manually download the program sources in order to build the package.

EDIT: As well, just copying the address of the package just makes my browser sit around and do nothing other than saying "Connecting to dl.sourceforge.net..."

Last edited by Falcata (2008-04-02 10:31:13)

Offline

#2 2008-04-02 10:39:25

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

Re: makepkg issue with sourceforge

pkgbuilds should use something extremely similar to this:

source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2)

Unfortunately, many of them are hard-coded to unreliableserver.dl.sourceforge...

But also, sourceforge itself, or the mirror that sourceforge picks for you, can be having problems at that time.

Edit: Removed "sourceforge/" after byte's info below. As in wiki.

Last edited by brebs (2008-04-02 14:45:43)

Offline

#3 2008-04-02 10:39:50

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: makepkg issue with sourceforge

Ah, I see.

Offline

#4 2008-04-02 12:17:14

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: makepkg issue with sourceforge

brebs is perfectly right with that source line, just one minor addition: You could also omit the "/sourceforge/" in the middle.


1000

Offline

#5 2008-04-02 15:24:42

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: makepkg issue with sourceforge

I think dl.sourceforge.net ... is a broken alias for a couple of have-been-real servers, like downloads.sourceforge.net is now.

So people believe to do the correct thing using dl... But the alias is pointing to some not existing servers.

Offline

#6 2008-04-04 18:36:16

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: makepkg issue with sourceforge

The old dl. was a so-called DNS round-robin implementation.
Run 'host dl.sourceforge.net' (from dnsutils pkg) and you'll see that it resolves to multiple IPs. It then depends on the name resolving mechnism of your OS to pick one server at random.

The current downloads. is a lot more complex.
There's no DNS load-balancing mechanism involved, but instead server-side scripting stuff looks up your (connecting) IP in some GeoIP backend db and then decides which of the current mirrors might be the closest to your location.


1000

Offline

#7 2008-04-05 02:05:32

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: makepkg issue with sourceforge

You can also add a line like this:

209.160.66.130 dl.sourceforge.net dl.sf.net downloads.sourceforge.net

in your /etc/hosts file. Just replace 209.160.66.130 by the IP of your favorite sourceforge mirror and that mirror will always be used. I think it will also make the download  start faster.

Offline

Board footer

Powered by FluxBB