Can't fetch libxml2-2.7.7.tar.gz

Jeremy Chadwick freebsd at jdc.parodius.com
Fri Sep 17 14:57:04 UTC 2010


On Fri, Sep 17, 2010 at 04:36:20PM +0200, Leslie Jensen wrote:
> On 2010-09-17 16:25, Jeremy Chadwick wrote:
> >On Fri, Sep 17, 2010 at 03:52:01PM +0200, Leslie Jensen wrote:
> >>When building the meta port xorg I get an error saying
> >>
> >>libxml2-2.7.7.tar.gz "local modification time does not match remote"
> >>
> >>Ports tree is updated with portsnap update.
> >>
> >>Any advise ?
> >
> >Can't reproduce...
> >
> ># pkg_info | grep libxml2
> >libxml2-2.7.7                       =   up-to-date with port
> ># cd /usr/ports/textproc/libxml2
> ># ls -l
> >total 10
> >-rw-r--r--  1 root  wheel  2016 Jun 25 00:23 Makefile
> >-rw-r--r--  1 root  wheel   218 May 11 05:18 distinfo
> >drwxr-xr-x  2 root  wheel   512 May 11 05:18 files
> >-rw-r--r--  1 root  wheel   339 Jan 15  2007 pkg-descr
> >-rw-r--r--  1 root  wheel  1822 May 11  2006 pkg-plist
> ># egrep ^PORT Makefile
> >PORTNAME=       libxml2
> >PORTVERSION=    2.7.7
> >PORTREVISION?=  0
> ># cat distinfo
> >MD5 (gnome2/libxml2-2.7.7.tar.gz) = 9abc9959823ca9ff904f1fbcf21df066
> >SHA256 (gnome2/libxml2-2.7.7.tar.gz) = af5b781418ba4fff556fa43c50086658ea8a2f31909c2b625c2ce913a1d9eb68
> >SIZE (gnome2/libxml2-2.7.7.tar.gz) = 4868502
> >
> I get
> 
> root at bljbsd01/usr/ports/textproc/libxml2:make install clean
> ===>  Vulnerability check disabled, database not found
> ===>  License check disabled, port has not defined LICENSE
> ===>  Extracting for libxml2-2.7.7
> => MD5 Checksum mismatch for gnome2/libxml2-2.7.7.tar.gz.
> => SHA256 Checksum mismatch for gnome2/libxml2-2.7.7.tar.gz.
> ===>  Refetch for 1 more times files: gnome2/libxml2-2.7.7.tar.gz
> gnome2/libxml2-2.7.7.tar.gz
> ===>  Vulnerability check disabled, database not found
> ===>  License check disabled, port has not defined LICENSE
> => libxml2-2.7.7.tar.gz doesn't seem to exist in
> /usr/ports/distfiles/gnome2.
> => Attempting to fetch from ftp://fr.rpmfind.net/pub/libxml/.
> fetch: libxml2-2.7.7.tar.gz: local modification time does not match remote
> => Attempting to fetch from ftp://gd.tuwien.ac.at/pub/libxml/.
> fetch: libxml2-2.7.7.tar.gz: local modification time does not match remote
> => Attempting to fetch from ftp://xmlsoft.org/libxml2/.
> fetch: libxml2-2.7.7.tar.gz: local modification time does not match remote
> => Attempting to fetch from
> ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/gnome2/.
> fetch: libxml2-2.7.7.tar.gz: local modification time does not match remote
> => Couldn't fetch it - please try to retrieve this
> => port manually into /usr/ports/distfiles/gnome2 and try again.
> *** Error code 1

It looks to me like the tarball you have in /usr/ports/distfiles,
probably from a previous build attempt, it incomplete or corrupt.  The
checksum validation failure is proof of this.  I'm betting the file on
your system is too small.

ls -l /usr/ports/distfiles/gnome2/libxml2-2.7.7.tar.gz should tell
you what size the file is.  A proper file:

-rw-r--r--    1 root      wheel     4868502 15 Mar  2010 /usr/ports/distfiles/gnome2/libxml2-2.7.7.tar.gz

I think the modification time mismatch indicates that fetch is trying to
resume the transfer (e.g. pick up where the corrupted file left off),
but the resume can't happen for the above reason.

If you attempt "make distclean", then "make install clean", it should
re-fetch the entire tarball from scratch.

-- 
| Jeremy Chadwick                                   jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |



More information about the freebsd-ports mailing list