On Mittwoch, 2. Oktober 2019 02:11:39 CEST Simon Lees wrote:
On 10/1/19 7:05 PM, Axel Braun wrote:
Hello,
I'm currently working on packaging Orthanc. This installation can be extended with plugins, e.g. for database-backends and viewers.
Those plugins require the sources of Orthanc to compile (beside some other specialities).
In order to keep things easy and consistent, I packed the sources of orthanc into orthanc-devel. So with BuildRequires: orthanc-devel in the plugins one should be fine.
Now this is objected by the maintainer of the targeted development repository, sources inside -devel are not allowed.
Adding the othanc source tarball to each plugin separately sounds a bad idea to me. High risk of inconsistency. Having a -src package build together with -devel isnt smart either - it just adds overhead.
Any other ideas how to solve this?
Does it actually need all the sources to compile? Generally if its C or C++ the header files and libraries are enough (although sometimes plugins are different) traditionally the -devel package should just contain the header files installed into /usr/include/orthanc
The source packaging of the plugins is IMHO a mess. The public headers which are installed by Orthancs "make install" target declare the plugin API (and, as its plain C, more or less the ABI). So in general, the two header files which are installed are sufficient to create (trivial) plugins. The plugins use these headers, but also reuse some of orthancs code. This is done by setting the include pathes and by directly referencing the sources relative to the orthanc sources directory. (The plugins also provide copies of the plugin API headers, in 4 different versions, i.e. you can compile the plugins without the public headers, but not without private definitions. Go figure.) I think the proposal by Henne Vogel (building the plugins within the main package) is the least evil here. Kind regards, Stefan -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org