Problem with postgresql-socket and SBCL

"Chris Capel" <[email protected]>
Newsgroups gmane.lisp.clsql.devel
Message-ID <[email protected]>
SBCL renames the MD5 package, used by the clsql-postgresql-socket package, to SB-MD5. As far as I can tell (and I'm not very experienced) this requires some read-time conditionalization in the .asd and in pgsql-socket-api.lisp. Attached are two patches which allow it to compile on my machine.

I sort of remember reading somewhere that it's possible to use a package as if it had a different name than it does. If so, that would be a better way to handle it, but I couldn't find anything on it.

Chris Capel

P.S. I'm new to this patch thing. Did I get it right?

_______________________________________________
CLSQL-Devel mailing list
[email protected]
http://lists.b9.com/mailman/listinfo/clsql-devel
clsql-postgresql-socket.asd.diff (text/x-patch, 179 B)
33c33,35
<   :depends-on (clsql uffi md5 #+sbcl sb-bsd-sockets)
---
>   :depends-on (clsql uffi #-sbcl md5
>                           #+sbcl sb-bsd-sockets
> 			  #+sbcl sb-md5)
postgresql-socket-api.lisp.diff (text/x-patch, 235 B)
429c429,431
< 	   (coerce (md5:md5sum-sequence (concatenate 'string plaintext salt)) 'list))))
---
> 	   (coerce (#+sbcl sb-md5:md5sum-sequence
> 		    #-sbcl md5:md5sum-sequence
> 		    (concatenate 'string plaintext salt)) 'list))))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.