Tk Library Source Code

View Ticket
Login
Ticket UUID: 954328
Title: require md5 then mime, throws error
Type: Bug Version: None
Submitter: coldstore Created on: 2004-05-15 05:33:02
Subsystem: mime Assigned To: andreas_kupries
Priority: 8 Severity:
Status: Closed Last Modified: 2004-05-20 12:46:14
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2004-05-20 05:46:14
Description:
From a clean CVS install of tcllib:

tclsh 
% package require md5 
2.0.0 
% package require mime 
version conflict for package "md5": have 2.0.0, need 1.0 
%  

whereas the opposite order works:

tclsh 
% package require mime 
1.4 
% package require md5 
1.4.3 
%
User Comments: andreas_kupries added on 2004-05-20 12:46:14:
Logged In: YES 
user_id=75003

Applied changes to head which cause mime and smtp to adapt
at runtime to whatever version of md5 is loaded.

andreas_kupries added on 2004-05-20 12:01:09:
Logged In: YES 
user_id=75003

package mime requires 'md5 1', i.e. any version of md5 in
the 1.x series. That is the reason for the opposite order to
work. Mime loads md5 on its own, and the second require
simply uses and reports that package. In the regular order
the mime package cannot satisfy its constraint.

The problem is that md5 1.x and 2.x series have definite API
incompatibilities, hence the change in the major version
number. And having mime require v1 was the easy way to
satisfy it without bigger changes to the code.

Now looking into this some more the situation is actually
even worse. While mime requires md5 v1, smtp on the other
hand requires md5 v2 (see proc auth_CRAM-MD5).  :(

I will write up some code which adjusts itself at runtime to
whatever package it gets when asking for any md5 version,
i.e. handling both possible APIs.

coldstore added on 2004-05-15 14:00:03:
Logged In: YES 
user_id=19214

I've lodged sf bug [ 954346 ] 'tcllib mime / md5 problem
stops tclhttpd loading' against tclhttpd, because tcllib 1.6
and the upcoming release of tclhttpd aren't compatible.