Am 26. Februar 2019 14:09:45 MEZ schrieb "Dan Čermák" <dcermak@suse.com>:
"Axel Braun" <Axel.Braun@gmx.de> writes:
Gesendet: Dienstag, 26. Februar 2019 um 11:38 Uhr Von: "Simon Lees" <sflees@suse.de> An: opensuse-packaging@opensuse.org Betreff: Re: [opensuse-packaging] Include source package A in build for B
On Tuesday, 26 February 2019 11:01 Axel Braun wrote:
Hi,
I'm currently trying to build the orthanc-postgresql package.
Problem is that most Orthanc plugins re-use a part of the C++ code of Orthanc, independently of the development headers.
To solve this issue, we can put the source code distribution "Orthanc-1.5.5.tar.gz" file into a folder called "ThirdPartyDownloads" located next to the "PostgreSQL/CMakeLists.txt" file.
Providing the source package is IMO not the smartest idea, as
requires maintenance of version for orthanc not only in hte orthanc package, but as well in each plugin package
Can I somehow include the orthanc.src.rpm in the build for the
On 26/02/2019 20:59, Michal Kubecek wrote: this plugin?
How about building it as a subpackage of orthanc?
Michal Kubecek
Yeah normally you'd create an orthanc-devel which contains all the header files installed into /usr/include/, in a normal case the header files plus any associated shared libraries in /usr/lib64 should be enough to build plugins.
Yes, thats what we have already.....
But this approach makes the assumption that the upstream build system works in a sane and normal way which isn't always the case. Sometimes its quicker to fix the upstream build files so that cmake will look for the preinstalled version fo the source code and libs rather then one in the directory next to it.
Yes, if this is fixed upstream that may be ideal..... I have just at the moment reveiced an answer from the author: --- This could indeed work, but I am not sure about this... while invoking CMake of the PostgreSQL plugin, you could try and add the two following command-line options:
-DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT=/path/to/Orthanc/sources/ --- Question remains, how can I add the .src.rpm as build requirement?
Can you put the plugins into a subpackage of Orthanc itself? Then you'll have the sources available in the buildroot.
Would that not basically mean we build both in one source?
Thanks Axel -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org