On Thursday, April 3, 2003, at 11:50 AM, David R. Morrison wrote:
The problem with perl is similar, but not identical.
Many perl modules work just fine with all versions of perl, and those don't necessarily need to be segregated from each other.
Once I get the bindist out the door, I plan to work on getting multiple versions of perl coexisting with fink. For perl modules that *do* require separate compiles for each perl version, this is going to introduce the same headache we are now discussing with python.
Emacs packages have a similar problem.
With multiple emacs flavours installed, the .el files have to be byte compiled for each flavour.
For the full details of how it works, have a look in /sw/share/doc/emacsen-common/debian-emacs-policy
For Perl and Python, a similar approach could be used. For instance, with python, we could have the following directory structure:
/sw/share/python/site-packages /sw/share/python2.2/site-packages /sw/share/python2.3/site-packages
.py files get installed into /sw/lib/python/site-packages, and then compiled for each flavour of python and the resulting .pyc and .pyo files put into /sw/lib/<flavour>/site-packages
Each flavour of python would be modified to include /sw/lib/<flavour>/site-packages in its path.
A package called python-common would be created. It would provide scripts:
/sw/lib/python-common/python-package-install /sw/lib/python-common/python-package-remove
A python package "foo" must call
/sw/lib/python-common/python-package-install foo
in the postinst and
/sw/lib/python-common/python-package-remove foo
in the prerm
These scripts call the package provided install/remove scripts in
/sw/lib/python-common/packages/install/<package> /sw/lib/python-common/packages/remove/<package>
which are responsible for doing the byte compiling on install and removing the byte compiled files on remove. These scripts are called both when a package is installed/removed and when a flavour is installed/removed. See the debian-policy for details.
It works pretty well for emacs, What do you think?
-- Rohan Lloyd
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel
