Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#18266 - [qt] More splitted packages to reduce dependencies.
Attached to Project:
Arch Linux
Opened by Lorenzo Masini (rugginoso) - Wednesday, 10 February 2010, 00:47 GMT
Last edited by Pierre Schmitz (Pierre) - Sunday, 28 February 2010, 19:55 GMT
Opened by Lorenzo Masini (rugginoso) - Wednesday, 10 February 2010, 00:47 GMT
Last edited by Pierre Schmitz (Pierre) - Sunday, 28 February 2010, 19:55 GMT
|
DetailsDescription:
Since pacman 3.3 was released, there's the new ability to make splitted packages. It should be usefull to split packages to reduce the dependencies and to provide only what the user want. Something like what Debian does. As an example, Qt library: Now we have only a package qt. It should become qt-core, qt-gui, qt-network, qt-sql, qt-opengl, qt-xml, qt-sql, qt-sql-sqlite, qt-sql-mysql, etc. |
This task depends upon
In theory they claim that Qt is modular. But their buildsystem is really not meant to split the packages (in contrast to e.g. KDE). I did not find any sane way to do so which isn't either very hacky or will result in writing your own make files (__simple__ patches are welcome though).
However: I cheked the benefit and it looks like that e.g. KDE basically needs everything from Qt; there are even apps that link to libs from the qtlinguist and development tools.
About splitted Qt, it's at least possible to split the library from the demos and the tools. This is done by the Chakra guys for example.
Talking of the Qt library itself, the /src directory contains a src.pro project, which is a sub-dirs project. Maybe it's possible to call "make install" on each subdir separately (to verify).
No way build one time an move the files afterwards?
But as I said: feel free to work on this and if the result is a simple PKGBUILD we can rethink about this.
Here is the patch if you want to take a look:
http://chakra-project.org/svn/packages/testing/qtmod/demosexamples-manual-install.patch
By default Qt does "make install" in every subdir, so you can just remove these lines in the makefile for components you dont want and then run the installation in subpackages.
For everything else its a little more complicated due to the dependencies between the Qt modules. In fact my patch to that Makefile was quite long. The benefit was low though as only very few packages wont depend on nearly everything. E.g. for KDE it's not worth it.
Of course i know about these options to disable docs, demos etc and that Qt's install targets are a pain ;) The patch just serves the purpose to "keep" the knowledge, so that even unexperienced users can take the PKGBUILD and see how it could be split. All in all, a simple patch or commenting (out) some stuff in the PKGBUILD is the same level of "unclean" and more a matter of personal preference, and i just prefer the patch :)