Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2011 13:05:06 -0500 (CDT)
From:      Lars Eighner <lars@larseighner.com>
To:        Kurt Buff <kurt.buff@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: libgcrypt SHA256 mismatch?
Message-ID:  <alpine.BSF.2.00.1109291241420.39786@abbf.6qbyyneqvnyhc>
In-Reply-To: <CADy1Ce74SaU8mUbA_LqxONdUv8CtuCYGGaiLWtjZtRYdVD9OJg@mail.gmail.com>
References:  <CADy1Ce5uZa9O1kTWe1rN0Wo6N1r0kLbdbRXJ=Ntaq8cTN6mXsA@mail.gmail.com> <alpine.BSF.2.00.1109282034210.61731@abbf.6qbyyneqvnyhc> <CADy1Ce74SaU8mUbA_LqxONdUv8CtuCYGGaiLWtjZtRYdVD9OJg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--21774345-2048161559-1317319506=:39786
Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Thu, 29 Sep 2011, Kurt Buff wrote:

>> The source file is being truncated because fetch loses its connection fo=
r
>> one reason or another. =C2=A0Many servers now cut you off if you are at =
dial-up
>> speeds because "net fairness" means broadband users always go to the fro=
nt
>> of the line.
>>
>> You can make a shell script to fetch the file and keep running it until =
you
>> finally get the whole file a piece at a time or you can try ftp. =C2=A0W=
hen you
>> have the whole source file (check it against distinfo) place it in
>> /usr/ports/distfiles. Things should go fine.
>>
>> "Checksum mismatch" nearly always means a truncated file. =C2=A0I cannot=
 ever
>> remember seeing it otherwise. =C2=A0Do not override it with NO_CHECKSUM.=
 =C2=A0That
>> will be useless with a truncated file and worse than useless if a securi=
ty
>> port really has been tampered with.
>
> Interesting. I found out what the problem is, but haven't figured out
> how to work around it.
>
> As a test, I put the URL
> (http://gnupg.org.favoritelinks.net/libgcrypt/libgcrypt-1.5.0.tar.bz2)
> into a web browser, and found that it's being blocked by our web
> filter, because the site is marked as also serving adult content.

This is absurd unless there is an extremely low bar for "adult content" suc=
h
as mention of evolution.  It's a wonder you can receive email from me.

> The supposed tarball in /usr/ports/distfiles is the response from the web
> filter, so it's junk.
>
> After repeated fetches, that is the only site my machine is using to
> grab the tarball. How to I tell the machine to vary its download sites
> (if indeed there are alternatives?)
>
> In the Makefile I see the line
>
>     MASTER_SITES=3D   ${MASTER_SITE_GNUPG}

find the GNUPG master sites in /usr/ports/Mk/bsd.sites.mk.  Search on GNUPG
to find the list of pertinent sites.

You can move to a empty work directory.  Create a shell script to fetch the
file.

I use git.sh
______________________________
#!/bin/sh

fetch -raR <URL of file>
______________________________


The url of the file is the master site with the subdirectory filled in
according the Makefile of the port and the file name (find the exact right
one in distinfo of the port.  Give your script executable permissions and
run it.

If it seems to work, check sha265 and length of file against distinfo for
the port.  If you have repeated problems with one site, just substitute the
next site in you script.

When you have all of the right file, move it to /usr/ports/distfiles.


>
> which I'd bet controls how it finds what sites to visit, but don't
> know anything beyond that.
>
>
> Thanks,
>
> Kurt
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"
>
>
>

--=20
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266
--21774345-2048161559-1317319506=:39786--




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