Bug 163400 - devel/apr1 apr-util downloaded source file is incorrect
Summary: devel/apr1 apr-util downloaded source file is incorrect
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Philip M. Gollucci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-17 08:30 UTC by Bob Frazier
Modified: 2012-01-18 04:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Frazier 2011-12-17 08:30:09 UTC
when attempting to download devel/apr1 for upgrade via 'make fetch' the ports system attempts to repeatedly download a version of apr-util-1.3.12.tar.gz that is nearly twice as large as the actual file.

when I tested the 'as downloaded' file, it could not even be uncompressed.

When I manually obtain the file from
http://apr.apache.org/download.cgi

the SHA256 and size are correct as specified in 'distinfo' for devel/apr1

output during portupgrade:

--->  Fetching the distfile(s) for 'apr-devrandom-gdbm-db42-1.4.5.1.3.12_1' (devel/apr1)
--->  Fetching '/usr/ports/devel/apr1'
===>  License check disabled, port has not defined LICENSE
===>  Found saved configuration for apr-devrandom-gdbm-db42-1.4.2.1.3.10
=> SHA256 Checksum OK for apr-1.4.5.tar.gz.
=> SHA256 Checksum mismatch for apr-util-1.3.12.tar.gz.
===>  Refetch for 1 more times files: apr-util-1.3.12.tar.gz 
===>  License check disabled, port has not defined LICENSE
===>  Found saved configuration for apr-devrandom-gdbm-db42-1.4.2.1.3.10
=> apr-util-1.3.12.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://www.apache.org/dist/apr/apr-util-1.3.12.tar.gz
fetch: apr-util-1.3.12.tar.gz: local file (1418507 bytes) is longer than remote file (769076 bytes)
=> Attempting to fetch http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
fetch: apr-util-1.3.12.tar.gz: local file (1418507 bytes) is longer than remote file (769076 bytes)
=> Attempting to fetch ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.apache.org/dist/apr/apr-util-1.3.12.tar.gz
fetch: apr-util-1.3.12.tar.gz: local file (1418507 bytes) is longer than remote file (769076 bytes)
=> Attempting to fetch ftp://mir1.ovh.net/ftp.apache.org/dist/apr/apr-util-1.3.12.tar.gz
fetch: apr-util-1.3.12.tar.gz: local file (1418507 bytes) is longer than remote file (769076 bytes)
=> Attempting to fetch ftp://ftp.forthnet.gr/pub/www/apache/apr/apr-util-1.3.12.tar.gz
fetch: apr-util-1.3.12.tar.gz: local file (1418507 bytes) is longer than remote file (769076 bytes)
=> Attempting to fetch ftp://xenia.sote.hu/pub/mirrors/www.apache.org/apr/apr-util-1.3.12.tar.gz
fetch: apr-util-1.3.12.tar.gz: local file (1418507 bytes) is longer than remote file (769076 bytes)
=> Attempting to fetch ftp://ftp.esat.net/mirrors/ftp.apache.org/apr/apr-util-1.3.12.tar.gz
fetch: ftp://ftp.esat.net/mirrors/ftp.apache.org/apr/apr-util-1.3.12.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch ftp://ftp.heanet.ie/mirrors/www.apache.org/dist/apr/apr-util-1.3.12.tar.gz
fetch: ftp://ftp.heanet.ie/mirrors/www.apache.org/dist/apr/apr-util-1.3.12.tar.gz: Unknown FTP error
=> Attempting to fetch ftp://ftp.rhnet.is/pub/apache/apr/apr-util-1.3.12.tar.gz
fetch: apr-util-1.3.12.tar.gz: local file (1418507 bytes) is longer than remote file (769076 bytes)
=> Attempting to fetch http://ring.nict.go.jp/archives/net/apache/apr/apr-util-1.3.12.tar.gz
fetch: http://ring.nict.go.jp/archives/net/apache/apr/apr-util-1.3.12.tar.gz: Requested Range Not Satisfiable
=> Attempting to fetch ftp://ftp.task.gda.pl/pub/www/apache/dist/apr/apr-util-1.3.12.tar.gz
fetch: ftp://ftp.task.gda.pl/pub/www/apache/dist/apr/apr-util-1.3.12.tar.gz: Unknown FTP error
=> Attempting to fetch ftp://sunsite.icm.edu.pl/pub/www/apache/dist/apr/apr-util-1.3.12.tar.gz
fetch: apr-util-1.3.12.tar.gz: local file (1418507 bytes) is longer than remote file (769076 bytes)
=> Attempting to fetch ftp://apache.rinet.ru/pub/mirror/apache.org/dist/apr/apr-util-1.3.12.tar.gz
fetch: apr-util-1.3.12.tar.gz: local file (1418507 bytes) is longer than remote file (769076 bytes)
=> Attempting to fetch ftp://ftp.sunet.se/pub/www/servers/apache/dist/apr/apr-util-1.3.12.tar.gz
fetch: ftp://ftp.sunet.se/pub/www/servers/apache/dist/apr/apr-util-1.3.12.tar.gz: Unknown FTP error
=> Attempting to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/apr-util-1.3.12.tar.gz
fetch: apr-util-1.3.12.tar.gz: local file (1418507 bytes) is longer than remote file (769076 bytes)
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Fix: 

manually fetch apr-util-1.3.12.tar.gz from
  http://apr.apache.org/download.cgi
How-To-Repeat: perform 'make distclean' and then 'make extract' for devel/apr1 (excluding dependencies in the 'distclean')
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-12-17 08:30:20 UTC
Responsible Changed
From-To: freebsd-ports-bugs->apache

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Philip M. Gollucci freebsd_committer freebsd_triage 2012-01-17 05:44:35 UTC
Responsible Changed
From-To: apache->pgollucci

I will take it. 

/pr/devel/apr1 (master)
make makesum
===>  Cleaning for apr-devrandom-gdbm-mysql55-pgsql84-1.4.5.1.3.12_1
===>  Deleting distfiles for apr-devrandom-gdbm-mysql55-pgsql84-1.4.5.1.3.12_1
===>  License check disabled, port has not defined LICENSE
=> apr-1.4.5.tar.gz doesn't seem to exist in /pr/distfiles/.
=> Attempting to fetch http://www.apache.org/dist/apr/apr-1.4.5.tar.gz
apr-1.4.5.tar.gz                              100% of  971 kB  586 kBps
=> apr-util-1.3.12.tar.gz doesn't seem to exist in /pr/distfiles/.
=> Attempting to fetch http://www.apache.org/dist/apr/apr-util-1.3.12.tar.gz
apr-util-1.3.12.tar.gz                        100% of  751 kB  559 kBps
[04:33 AM](0)pgollucci@frieza.p6m7g8.net j0 h304 c806
/pr/devel/apr1 (master)
cvs diff
[04:33 AM](0)pgollucci@frieza.p6m7g8.net j0 h305 c807
/pr/devel/apr1 (master)

must have been transient
Comment 3 Philip M. Gollucci freebsd_committer freebsd_triage 2012-01-18 04:34:38 UTC
State Changed
From-To: open->closed

Committed, Thanks!