Thursday, February 28, 2019

Re: lang/ghc

On Thu, Feb 28, 2019 at 08:43:49PM +0100, Matthias Kilian wrote:
> Hi,
>
> On Thu, Feb 28, 2019 at 04:54:51PM +0100, Marc Espie wrote:
> > On Tue, Feb 26, 2019 at 10:21:07PM +0100, Matthias Kilian wrote:
> > > Some notes: make update-plist seems to remove lib/ghc/unregister.sh
> > > from pkg/PLIST, I've no idea, why.
> >
> > ghc is about the only port left with major @exec/@unexec in the plist.
> >
> > it would be great if those scripts could be abstracted somewhat so that
> > the registration/unregistration is run just once at the end of pkg_add,
> > like is done for all other things that moved to @tag/@define-tag.
>
> I can try to do this, to make it able to nuke @exec/@unexec. But I
> don't think it'll gain anything with @tag/@define-tag, because all the
> register.sh scripts (in lang/ghc and all the hs-parts) are different.
>
> On the other hand, it may be possible to almost completely get rid
> of the register/unregister scripts -- every haskell package now
> "registered" by a single file in $PREFIX/lib/ghc/package.conf.d,
> which I could just include in the packages and then run ghc-pkg
> recache (which would then be done with @tag/@define-tag).

This looks like a MUCH simpler approach, might even be faster.

No comments:

Post a Comment