Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Aug 2009 19:20:54 +0400
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        freebsd-ports@FreeBSD.org
Cc:        makc@FreeBSD.org
Subject:   SourceForge changing file distribution scheme!
Message-ID:  <20090811152054.GB50944@hades.panopticon>

next in thread | raw e-mail | index | archive | help
Hi!

I've noticed that SF is changing file distribution scheme significantly,
and I guess that will affect many ports and maybe infrastructure.
Hopefully, the change only seem to affect new distfiles, so for now we
should just do extra checks for updates of ports hosted on sourceforge.

Here's what happens. This is math/maxima port. Old version:

---
% wget http://kent.dl.sourceforge.net/sourceforge/maxima/maxima-5.18.0.tar.gz -O/dev/null
--2009-08-11 19:11:07--  http://kent.dl.sourceforge.net/sourceforge/maxima/maxima-5.18.0.tar.gz
Resolving kent.dl.sourceforge.net... 212.219.56.167
Connecting to kent.dl.sourceforge.net|212.219.56.167|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20437623 (19M) [application/x-gzip]
Saving to: `/dev/null'

 2% [====>
---

New version:

---
% wget http://kent.dl.sourceforge.net/sourceforge/maxima/maxima-5.19.0.tar.gz -O/dev/null
--2009-08-11 19:13:20--  http://kent.dl.sourceforge.net/sourceforge/maxima/maxima-5.19.0.tar.gz
Resolving kent.dl.sourceforge.net... 212.219.56.167
Connecting to kent.dl.sourceforge.net|212.219.56.167|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://downloads.sourceforge.net/sourceforge/maxima/maxima-5.19.0.tar.gz?download&failedmirror=kent.dl.sourceforge.net [following]
--2009-08-11 19:13:20--  http://downloads.sourceforge.net/sourceforge/maxima/maxima-5.19.0.tar.gz?download&failedmirror=kent.dl.sourceforge.net
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://sunet.dl.sourceforge.net/project/maxima/Maxima-source/5.19.0-source/maxima-5.19.0.tar.gz [following]
--2009-08-11 19:13:21--  http://sunet.dl.sourceforge.net/project/maxima/Maxima-source/5.19.0-source/maxima-5.19.0.tar.gz
Resolving sunet.dl.sourceforge.net... 194.71.11.73
Connecting to sunet.dl.sourceforge.net|194.71.11.73|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20566185 (20M) [application/x-gzip]
Saving to: `/dev/null'

 2% [====>
---

As you can see, the distfile now redirects to another path and also
another mirror. As fetch doesn't follow redirects by default, this won't
work. My idea is that in addition to [old scheme]

MASTER_SITE_SOURCEFORGE+= \
        http://${mirror}.dl.sourceforge.net/sourceforge/%SUBDIR%/

we'll need to add

MASTER_SITE_SOURCEFORGE_NEW+= \
        http://${mirror}.dl.sourceforge.net/project/%SUBDIR%/

with coresponding macro (SF -> SFNEW)

and we'll have to add pretty complex MASTER_SITE_SUBDIR to each updated
port from SF.

Any comments?

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090811152054.GB50944>