Re: packaging with stack
Le 25/10/2016 à 16:19, Damien Couroussé a écrit : >> On Wed, Oct 19, 2016 at 08:02:56AM +0200, Damien Couroussé wrote: >>> >> I would like to package binary executables, but some dependencies are >>> >> not packaged yet in Debian. >> > >> > Okay, I think I see what you are asking. For official Debian packages, >> > each dependency must be separately packaged. For your own personal >> > package, maybe you could bundle it all into one package with stack. You >> > won't find any scripts and tools in Debian to do that, though, since we >> > wouldn't be able to use them to make official packages. >> > I see the point of having all dependencies packaged for official packages. As suggested by David and Dimitry, cabal-debian aims at the debianization of a cabal file to ease Debian packaging, but does not avoid the need to have all dependencies as Debian packages. For my need, maybe an ad hoc solution would be more suitable. thanks again for your answers, Damien
Re: packaging with stack
Le 19/10/2016 à 19:27, Sean Whitton a écrit : > Dear Damien, > > On Wed, Oct 19, 2016 at 08:02:56AM +0200, Damien Couroussé wrote: >> I would like to package binary executables, but some dependencies are >> not packaged yet in Debian. > > Okay, I think I see what you are asking. For official Debian packages, > each dependency must be separately packaged. For your own personal > package, maybe you could bundle it all into one package with stack. You > won't find any scripts and tools in Debian to do that, though, since we > wouldn't be able to use them to make official packages. > Thank you Sean, David and Dimitri for your answers. I will have a look at cabal-debian, and let you know. Maybe not before a few weeks/months, depending of other schedule constraints :). cheers, Damien
Re: packaging with stack
> For the deployment of binaries, deb packages seems a good option to me. > So I was wondering if it could be possible to take advantage of the > dependencies installed by stack to build debian packages. No. The whole point of Debian is that everything you need to build package is in Debian. We are self-contained. Are you aware of cabal-debian(1), which greatly simplify creation of debian packages from cabalized ones. -- X-Web-Site: https://sinsekvu.github.io | Note that I process my email in batch, Accept-Languages: eo,ru,en | at most once every 24 hours. If matter Accept: text/plain, text/x-diff| is urgent, you have my phone number.
Re: packaging with stack
On Tue, Oct 18, 2016 at 11:02 PM, Damien Couroussé < damien.courou...@gmail.com> wrote: For the deployment of binaries, deb packages seems a good option to me. > So I was wondering if it could be possible to take advantage of the > dependencies installed by stack to build debian packages. You could try using the cabal-debian program to convert cabal packages to debs.
Re: packaging with stack
Dear Damien, On Wed, Oct 19, 2016 at 08:02:56AM +0200, Damien Couroussé wrote: > I would like to package binary executables, but some dependencies are > not packaged yet in Debian. Okay, I think I see what you are asking. For official Debian packages, each dependency must be separately packaged. For your own personal package, maybe you could bundle it all into one package with stack. You won't find any scripts and tools in Debian to do that, though, since we wouldn't be able to use them to make official packages. -- Sean Whitton
Re: packaging with stack
Hello Sean, Le 17/10/2016 à 16:11, Sean Whitton a écrit : > On Mon, Oct 17, 2016 at 10:01:58AM +0200, Damien Couroussé wrote: >> > Does anyone here use stack to build Debian packages? Is it possible? > Could you explain why you'd want to do this? To take advantage of > upstream stack config files? I did a few Debian packages for personal use and fun, but I know very little about packaging. Noob here, so please forgive me if the question is not relevant. :) I would like to package binary executables, but some dependencies are not packaged yet in Debian. When I started playing with Haskell, I used to install all dependencies from deb packages. I found it a bit more easy than managing dependencies with cabal, but not so easy as well, because most of the time the number of library deps is quite large. Now using stack, and the management of dependencies seems more easy to me, at least for building. For the deployment of binaries, deb packages seems a good option to me. So I was wondering if it could be possible to take advantage of the dependencies installed by stack to build debian packages. best, Damien
Re: packaging with stack
Hello Damien, On Mon, Oct 17, 2016 at 10:01:58AM +0200, Damien Couroussé wrote: > Does anyone here use stack to build Debian packages? Is it possible? Could you explain why you'd want to do this? To take advantage of upstream stack config files? -- Sean Whitton
packaging with stack
Hello, Does anyone here use stack to build Debian packages? Is it possible? I did a quick search on the Internet and did not find anything relevant. I only saw that pandoc uses an ad hoc approach [1] for building deb packages instead of using the standard devscripts/debhelpers. cheers, Damien [1] https://github.com/jgm/pandoc/blob/master/deb/make_deb.sh -- Damien Couroussé Research Engineer at CEA-LIST DRT/LIST/DACLE/SCSN/LIALP Laboratoire Infrastructures et Ateliers pour le Logiciel sur Puces Commissariat à l’énergie atomique et aux énergies alternatives MINATEC Campus | 17 rue des Martyrs | 38054 Grenoble Cedex 9 Tel : +33 (0)4 38 78 04 66 damien.courou...@cea.fr [Citation aléatoire] Quidquid latine dictum sit, altum sonatur.