On Thu, Dec 15, 2005 at 04:43:05PM -0500, S?bastien Maret wrote:
> On Dec 15, 2005, at 15:57, Brendan Cully wrote:
> >On Thursday, 15 December 2005 at 15:52, Sebastien Maret wrote:
> >>Brendan Cully <[EMAIL PROTECTED]> writes:
> >>>Added Files: erc.info erc.patch
> >>>Log Message: New package from tracker #1236469
> >>
> >>Doesn't work for me. Emacs says that it can't open erc-compat.el.  
> >>It's probably not byte-compiled and removed by:
> >>
> >>rm -f @PREFIX@/share/${FLAVOR}/site-lisp/erc/*.el;
> >>
> >>in the PostInstScript.

Look for any messages about erc-compat.el in
/sw/share/doc/erc/CompilationLog-${FLAVOR}.gz

> >>Copying it from /sw/share/emacs/site-lisp/erc to
> >>/sw/share/emacs22/site-lisp/erc solves the problem.
> >
> >Bah. I spent a while arguing that the .el files should be removed, and
> >now this :)
> >
> >So, I guess either keep symlinks of all the *.el in the $FLAVOR
> >directories, or maybe just keep symlinks of *.el files that don't have
> >corresponding *.elc.
> 
> I think that removing the .el files is indeed a good idea (provided  
> that they are byte-compiled of course), since emacs will use the .elc  
> files anyway.

Fink's (i.e., debian's) emas package policy has example install script
for %p/lib/emacsen-common/packages/install/%n that does:

       # Copy the temp .el files
       (cd ${el_dir} && cp ${el_files} ${elc_dir})

       # Byte compile them
       (cd ${elc_dir} \
        && ${FLAVOR} ${byte_compile_options} ${el_files} 2> /dev/null)

       # remove the redundant .el files
       # presumes that any .el files in the <flavor> dir are trash.
       rm ${elc_dir}/*.el

so it's pretty clear that .el can (and maybe should) be removed after
they are compiled if they are compiled.

> I'd rather patch the Makefile so the erc-compat.el got byte-compiled.

Seconded.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to