
I personally not sure about the one right solution, as there are a plenty
of different approaches and rules that are applied
system wide, and heavily depend on the underlying package system. Of cause
implementation of the new nice features like running
arbitrary script, but I personally don't know of many good examples that
can make life much easier without introducing
additional problems.
I'll try to follow up this thread and ready to share our experience and
solutions.
--
Alexander
On 19 March 2014 18:42, David Thomas
Yeah, it seems that there are a number of potentially good options that are going to vary by distro and situation, which is why I've been thinking "hook to run arbitrary script". Sufficiently populating the lookup table for that script for any given (Project, Distro) shouldn't be hard, and collecting those we should be able to quickly 1) round the rough edges off of the more common cases without requiring too much manual intervention, and 2) have a reasonable path for the less common cases.
On Wed, Mar 19, 2014 at 5:48 AM, Alexander V Vershilov < alexander.vershilov@gmail.com> wrote:
In Gentoo Linux we use a common ebuild format that allowes to add native dependencies to packages. To create a ebuild from cabal file we use tool called hackport [1].
This approach allow to bump dependencies when some authors are to lazy to bump them themselves, even in presence of pull requests, and add compatibility patches. Also it's possible to create a desktop-icons, additional files, filter test/bench programs that should not be installed into system. Also it supports a dependency on package flags and profiling.
However this approach doesn't scale on other distros in a easy way, one possibility is to create static packages using emerge, but this area require some more research.
[1] http://hackage.haskell.org/package/hackport
-- Alexander
On 18 March 2014 20:26, David Thomas
wrote: Is there a way to extract this? I'm looking to make it easier for newcomers to my project to get things building across different linux distros.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Alexander
-- Alexander