Name collision on package postgresql.

Erik Enge <[email protected]> Sat, 29 Mar 2003 11:28:11 -0500
Newsgroups gmane.lisp.clsql.general,gmane.lisp.uncommon-sql
Message-ID <[email protected]>
Hi.

I want to use both CLSQL and UncommonSQL for a while as I am evaluating
both and currently they both serve their needs (UncommonSQL gives me a
nice CLOS interface to my PostgreSQL database while CLSQL gives me raw
SQL-statements).

This is my .cmucl-init.cl:

  (setq extensions::*gc-verbose* nil)
  
  (mk:operate-on-system :odcl 'load)
  (mk:operate-on-system :uncommonsql 'load)
  (mk:operate-on-system :uncommonsql-postgresql 'load)
  (mk:operate-on-system :local-time 'load)
  (asdf:oos 'asdf:load-op :split-sequence)
  (asdf:oos 'asdf:load-op :uffi)
  (asdf:oos 'asdf:load-op :clsql-base)
  (asdf:oos 'asdf:load-op :clsql-postgresql)
  (asdf:oos 'asdf:load-op :clsql)
  ;(asdf:oos 'asdf:load-op :clunit)
  (asdf:oos 'asdf:load-op :xptest)

This results in:

  ;; Loading #p"/usr/lib/common-lisp/cmucl-normal/clsql-postgresql/db-postgresql/postgresql-package.x86f".
  
  POSTGRESQL is a nick-name for the package MAISQL-POSTGRESQL
  
  Restarts:
    0: [CONTINUE       ] Return NIL from load of #p"/usr/lib/common-lisp/cmucl-normal/clsql-postgresql/db-postgresql/postgresql-package.x86f".
    1: [RETRY-COMPONENT] ASDF::RETRY-COMPONENT
    2: [SKIP-COMPONENT ] ASDF::SKIP-COMPONENT
    3:                   Return NIL from load of "home:.cmucl-init".
    4: [ABORT          ] Skip remaining initializations.
  
  Debug  (type H for help)
  
  (KERNEL:%DEFPACKAGE "POSTGRESQL" ("PGSQL") NIL NIL ...)
  Source: 
  ; File: target:code/package.lisp
  (ERROR 'SIMPLE-PACKAGE-ERROR :PACKAGE NAME :FORMAT-CONTROL ...)
  0] 
  0] ;;; Loading /usr/lib/ilisp/cl-ilisp.lisp
  ILISP: File is not compiled, use M-x ilisp-compile-inits
  0] 

CLSQL defines the postgresql package and UncommonSQL uses it as a
nickname for a package.  Is there any way around this?

Erik.