Opened 16 years ago
Closed 15 years ago
#17332 closed defect (worksforme)
checksum error when installing dom4j-1.6.1
Reported by: | sgendler@… | Owned by: | jberry@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | dom4j | Cc: | |
Port: | dom4j |
Description
I got repeated checksum errors, despite clean --all and other remedies. I compared Portfile to checksum of file retrieved from sourceforge URL in port output and the checksums matched. The checksum for the file downloaded by port, however, was utterly different:
INCORRECT: [96] ...distfiles/dom4j %>openssl md5 dom4j-1.6.1.tar.gz MD5(dom4j-1.6.1.tar.gz)= 520b2f0cbfcabca66786d8da1d033ae5
CORRECT: ~/Downloads %>openssl md5 dom4j-1.6.1.tar.gz MD5(dom4j-1.6.1.tar.gz)= 1e7ef6d20939315714de4a8502f27b2d
Both files were downloaded simultaneously - one via Safari and the other via port. I'd be inclined to blame some sort of caching between my computer and sourceforge, except that it appears to be dependent upon user-agent. I just checked, and got the correct file via mozilla, too.
I'll probably simulate the port user-agent in a browser and sees what happens in a bit, but I need to get back to work for a while, first. I've been battling this problem for well over an hour already. It'd help if someone were to post the user-agent so that I don't have to go sniffing for it on the wire.
Change History (5)
comment:1 Changed 16 years ago by sgendler@…
comment:2 Changed 16 years ago by blb@…
port is using libcurl to fetch files, and port sets the agent to "MacPorts x.y.z libcurl/r.s.t" (x.y.z being the MacPorts version and r.s.t being the libcurl one). Though I don't see how the user agent setting would affect what was downloaded.
Tried grabbing the file from sourceforge here and it had the correct checksum. When you have the bad file, what does 'file /opt/local/var/macports/distfiles/dom4j/dom4j-1.6.1.tar.gz' say?
comment:3 Changed 16 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to jberry@… |
---|
Seems OK here. Maybe one of the SF mirrors has a corrupt file?
comment:5 Changed 15 years ago by tobypeterson
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Summary: | checksum error when installing jdom-1.6.1 → checksum error when installing dom4j-1.6.1 |
Works for me... if it's still broken after clean --all, reopen and include debugging output...
That should read:
INCORRECT:
[96] ...distfiles/dom4j %>openssl md5 dom4j-1.6.1.tar.gz
MD5(dom4j-1.6.1.tar.gz)= 520b2f0cbfcabca66786d8da1d033ae5
CORRECT:
~/Downloads %>openssl md5 dom4j-1.6.1.tar.gz
MD5(dom4j-1.6.1.tar.gz)= 1e7ef6d20939315714de4a8502f27b2d