>>>> "APA" == Adrian Aichner
<aichner(a)ecf.teradyne.com> writes:
APA> Hello All,
Hello Andreas, hello All,
can any of you help me to solve this problem?
I am now fairly convinced that (md5 ...) or a function used by it is
broken (both in 21.1.9 and 21.2-b32). Can anybody prove me right/wrong?
See excerpts from my debug session atend, which should back up my
analysis.
APA> I don't know what this is yet:
APA> I used to be able to build private packages under Windows NT
APA> and install them using pui.
APA> Just tried that again today and failed.
APA> Both 21.1.9 and 21.2-b32 report incorrect md5 checksums.
The created package index contains the same number as produces by
md5sum -t
I am using md5sum (GNU textutils) 1.22
What should the package index contain:
The binary md5sum (md5sum -b)?
The text md5sum (md5sum -t)?
APA> I suspect (insert-file-contents-internal ...)
APA> vs. (insert-file-contents ...) being used in package-get.el
APA> at this point.
No, this is not the problem.
APA> The .el files of my packages contain CRLF as they are written
APA> on Windows NT. This seems to be exposing the problem.
This causes the issue of text vs. binary under WindowsNT, right?
APA> Any ideas, pointers, etc?
APA> Best regards,
APA> Adrian
Best regards,
Adrian
Here's some excerpts of my debug session:
Validating checksum for `whois-complete'...
Output of (mark-whole-buffer " *temp*", shell-command-on-region
md5sum -b):
f6d247cf1124c0c7cd7358e47c019385 *-
Output of (mark-whole-buffer " *temp*", shell-command-on-region
md5sum -t):
f6d247cf1124c0c7cd7358e47c019385 -
md5sum (GNU textutils) 1.22
Break
Result: #<buffer " *temp*">
(md5 (current-buffer)) in (defun package-get ...):
Result: "596e30de02fdac2b75fb93af38ae1e5e"
I get above number when I run
cd d:\Users\AichnerAd\Public\xemacs-packages\
md5sum -b whois-complete-1.9-pkg.tar.gz
Compilation started at Sun Mar 26 14:35:46 2000 +0200 (W. Europe Daylight Time)
596e30de02fdac2b75fb93af38ae1e5e *whois-complete-1.9-pkg.tar.gz
Compilation finished at Sun Mar 26 14:35:46
Result: (standards-version 1.0 version "1.9" author-version "1.9" date
"2000-03-25" build-date "2000-03-25" maintainer "Adrian Aichner
<adrian.aichner(a)teradyne.com>" distribution stable priority low category
"comm" dump nil description "Whois Mail-Address Completion." filename
"whois-complete-1.9-pkg.tar.gz" md5sum
"f6d247cf1124c0c7cd7358e47c019385" size 5200 provides (whois-complete-name)
requires nil type single-file)
md5sum of package-index:
Result: "f6d247cf1124c0c7cd7358e47c019385"
I get above number when I run
cd d:\Users\AichnerAd\Public\xemacs-packages\
md5sum -t whois-complete-1.9-pkg.tar.gz
Compilation started at Sun Mar 26 14:37:01 2000 +0200 (W. Europe Daylight Time)
f6d247cf1124c0c7cd7358e47c019385 whois-complete-1.9-pkg.tar.gz
Compilation finished at Sun Mar 26 14:37:01
Result: nil
Result: t
Result: "whois-complete-1.9-pkg.tar.gz"
error: "Package whois-complete-1.9-pkg.tar.gz does not match md5 checksum"
--
Adrian Aichner <adrian(a)xemacs.org>