You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Splitting Calligra Suite into multiple packages #9238
Currently the Calligra suite is a single package containing all ten programs that make it up. For many users (including me) it would be more convenient and save disk space to have individual packages for each program in the suite.
Are there other users who would prefer individual packages for each program? If so what would be the best way to implement this? A multiple outputs package was suggested on IRC which would have the benefit of not massively increasing build times for users of the entire suite.
The mechanism for producing multiple outputs is relatively simple: you define outputs = [ "foo" "bar" ]; and then you put stuff into $foo and $bar directories. You can have a look at mesa_noglu, for example.
Separating packages by hand like that could be
tricky. KDE guys love frameworks, and your splitting
code could break newer releases. However, if the
build system itself lets you build applications
separately, then it makes sense to rely on upstream
for splitting the package.
I wouldn't do it as a multiple-output derivation
though. Just make the meta-package propagate all
the separate calligra application packages.
It really all depends on Calligra's build system. If it supports building the programs separately, it should be easy. If it doesn't support building them separately, but it will install them to different locations, you can use multiple outputs. If it doesn't support either mode, you'll have to resort to patching the build system. If the build system is CMake, you can try building subdirectories of the whole package by giving an explicit target to the cmake command; I have had (limited) success with that approach.
I just sent out a pull request that builds Krita as a standalone package using the built in cmake option. If this works for everyone I can do the same for the rest of the suite (it will take a few days, the source builds take forever).
The calligra apps share various libs and other stuff. If we just build apps one by one like this, the libs will be re-built (and take space) for each separately. It would be better to split away the shared dependencies into other separate derivations; an example of factoring the suite can be seen in Debian.
I understand such splitting might take quite some work, depending on whether these shared libs will be detected when added into build inputs, so that step can be done later if you prefer. Just note that for someone using may calligra parts the solution-in-progress might be significantly worse than the current one. In Debian the shared calligra-libs take ~25 MB and calligra-data ~4 MB.
The internal dependencies seem relatively readable in <source root>/CalligraProducts.cmake.
Activity
vcunat commentedon Aug 13, 2015
Noone can mind such a change. We could then even easily provide a meta-package containing all. However, achieving it can get tricky...
Epitrochoid commentedon Aug 14, 2015
I'd be happy to put some time towards achieving it. Does anyone know of some packages doing something similar that I can look at?
vcunat commentedon Aug 14, 2015
The mechanism for producing multiple outputs is relatively simple: you define
outputs = [ "foo" "bar" ];and then you put stuff into$fooand$bardirectories. You can have a look atmesa_noglu, for example.Phreedom commentedon Aug 16, 2015
vcunat commentedon Aug 16, 2015
Yeah, I suppose the packaging is similar to KDE – @ttuegel probably has the most knowledge about that around here, so he may have some advice.
ttuegel commentedon Aug 16, 2015
It really all depends on Calligra's build system. If it supports building the programs separately, it should be easy. If it doesn't support building them separately, but it will install them to different locations, you can use multiple outputs. If it doesn't support either mode, you'll have to resort to patching the build system. If the build system is CMake, you can try building subdirectories of the whole package by giving an explicit target to the
cmakecommand; I have had (limited) success with that approach.Epitrochoid commentedon Aug 20, 2015
I just sent out a pull request that builds Krita as a standalone package using the built in cmake option. If this works for everyone I can do the same for the rest of the suite (it will take a few days, the source builds take forever).
vcunat commentedon Aug 21, 2015
The calligra apps share various libs and other stuff. If we just build apps one by one like this, the libs will be re-built (and take space) for each separately. It would be better to split away the shared dependencies into other separate derivations; an example of factoring the suite can be seen in Debian.
I understand such splitting might take quite some work, depending on whether these shared libs will be detected when added into build inputs, so that step can be done later if you prefer. Just note that for someone using may calligra parts the solution-in-progress might be significantly worse than the current one. In Debian the shared calligra-libs take ~25 MB and calligra-data ~4 MB.
The internal dependencies seem relatively readable in
<source root>/CalligraProducts.cmake.