Conditionally add OpenBSD's pledge(2) call -- but to which library?

Matthias Kilian kili at outback.escape.de
Thu Nov 12 21:20:49 UTC 2015


Hi,

On Thu, Nov 12, 2015 at 08:09:36AM -0800, Bryan O'Sullivan wrote:
> > Please note: just writing a separate package for this wouldn't help
> > much (for OpenBSD ports), because it would require changing cabal
> > dependencies for every client application in addition to other
> > source code patches.
> >
> 
> Changing cabal dependencies is the right thing to do in this case. Any code
> that will use this function will already need specialized OpenBSD
> knowledge, so the likelihood of it actually being used is extremely small –
> whereas the cost of having a rat's nest of #ifdef usage in clients of core
> libraries is already well known to be high.

Ok, thank you (and Sven and Carter) for your input.

So, on the long term, I'll prepare a separate package when I'm
confident that it's actually *useful* for Haskell programs.

For now, I'll just keep everything local to the OpenBSD ports tree
to experiment a little bit with it.

Ciao,
	Kili


More information about the Libraries mailing list