[cl-debian] A Lisp debhelper

Hello, I've been tired of using those lengthy postinst and prerm scripts for the common-lisp-controller in all packages and linking all ASDs to the directories using dh_link. (you always have to change their names and locations in multiple places, if you need to...) So I just wrote a litte debhelper extension that generates automatically the postinst and prerm scripts and puts links appropriately. Currently it only works with Common Lisp source packages, not implementations. You can darcs get (how to [1]) from here[2] and build package a of it to test it. I hope the manpage is sufficient for testing. ;) I have converted two of my not yet released packages to dh-lisp. One [3] is rather simple and served as the minimal requirement, the other [4] has quite some ASD files inside of multiple directory layers. For how the conversion looks, look at the commitdiffs. What still needs to be tested: working on source packages that generate multiple binary packages. So feel free to get me some feedback. :) Just branch one of those nice Darcs repositories and go play with it. What's still to come: support for CL implementation registration. Good evening, good night, ... :-) [1] http://cl-debian.alioth.debian.org/ [2] http://cl-debian.alioth.debian.org/repository/rvb/dh-lisp [3] http://cl-debian.alioth.debian.org/cgi-bin/darcsweb.cgi?r=cl-yacc;a=summary [4] http://cl-debian.alioth.debian.org/cgi-bin/darcsweb.cgi?r=clg;a=summary -- René van Bevern -- http://progn.org/

On 6.08.05, René van Bevern wrote:
What's still to come: support for CL implementation registration.
Okay, I have done that now. It is not quite as useful as the part for Common Lisp library packages, though, since there are lots of specific things in packages for implementations. Calling "dh_lisp sbcl" will do the following: a) install debian/sbcl.sh to usr/lib/common-lisp/bin/sbcl.sh b) generate postinst and prerm scripts to interact with the common-lisp-controller c) nevertheless scan the package contents for ASDs to register I've tested dh_lisp on packages for clisp and sbcl. I attach a patch that demonstrates the changes for dh_lisp. :) -- René van Bevern -- http://progn.org/

On 6.08.05, René van Bevern wrote:
What's still to come: support for CL implementation registration.
Okay, I have done that now. It is not quite as useful as the
Hello! I'm sorry, I'm replying to an old post... :-D On Sat 06 Aug 2005 15:10 +0200, René van Bevern wrote: part
for Common Lisp library packages, though, since there are lots of specific things in packages for implementations.
Calling "dh_lisp sbcl" will do the following: a) install debian/sbcl.sh to usr/lib/common-lisp/bin/sbcl.sh b) generate postinst and prerm scripts to interact with the common-lisp-controller c) nevertheless scan the package contents for ASDs to register
I used dh_lisp in the cl-rfc2388 (and I'm planning to use it also in cl-s-xml and all the other CL packages I'll deal with), because it's very useful and I don't need to care of correct link, etc. However, I'd like to be sure of what I did. Calling "dh_lisp rfc2388" will search for debian/rfc2388.sh. However, rfc2388 doesn't have any "binary" to install in /usr/lib/[cl]/bin/, so dh_lisp fails. Instead, if I call "dh_lisp" only, it correctly find my rfc2388.asd and installs it, genearting the postinst and prerm scripts. Am I correct if I understood that as the intended behaviour? Thx, bye, Gismo / Luca PS, René, have you considered to apply for dh_lisp inclusion in debhelper?

Hello! On Tue 20 Sep 2005 15:51 +0200, Luca Capello wrote:
However, I'd like to be sure of what I did.
Calling "dh_lisp rfc2388" will search for debian/rfc2388.sh. However, rfc2388 doesn't have any "binary" to install in /usr/lib/[cl]/bin/, so dh_lisp fails. Instead, if I call "dh_lisp" only, it correctly find my rfc2388.asd and installs it, genearting the postinst and prerm scripts.
Am I correct if I understood that as the intended behaviour?
I'm quite stupid, I completely forgot the dh_lisp section [1] in the "Common Lisp in Debian Manual" [2], which say exactly what I wanted to be sure of. Sorry for the noise. Thx, bye, Gismo / Luca [1] http://cl-debian.alioth.debian.org/clid/clid.html/ch-libs.html#s-lib-dh [2] http://cl-debian.alioth.debian.org/clid/clid.html/
participants (2)
-
Luca Capello
-
René van Bevern