On Fri, Jan 25, 2013 at 9:56 AM, Phil Harvey <[email protected]>wrote:

> As promised, here is a proper write-up of how we're planning to modify the
> Proton build system.
>
>
> === Requirements ===
> I've updated the "Proton build system requirements" wiki page:
>
> https://cwiki.apache.org/confluence/display/qpid/Proton+build+system+requirements
>
>
> === Proposed solution ===
>
> The proposed solution changes Proton in two important ways.
>
> 1. proton will built and distributed as a single project.
> This means that the released souce tarball will be created from the top
> level, not from the proton-c sub-folder.
>
> To support this, a CMakelists.txt file will be created at the top level.
> Therefore, an existing end user wishing to build proton-c will follow the
> usual steps when they receive the tar (e.g. tar xf proton.tar ; mkdir
> proton/build ; cd proton/build ; cmake .. ; make install).
>
>
> 2. Both proton-c and proton-j will be buildable and testable using cmake,
> although proton-j will retain Maven support.
>
> Expanding our cmake build to include proton-j solves two problems, namely:
> (i) Satisfying the JNI binding's dependency on proton-api.jar and
> libqpid-proton.so.
> (ii) Allowing RHEL and Fedora users to build proton-j despite the lack of a
> recent Maven version on their platforms.
>
> The cmake Java build will assume that the developer has already downloaded
> dependencies (e.g. bouncycastle.jar for SSL support), and will not emulate
> Maven's ability to fetch them from remote repositories. This support could
> be added in the future if it is deemed necessary.
>

Two comments here. First, I think it's important to be clear that as part
of this proposal the root of the tree will emphasize the cmake build.  As
discussed on the call, the README will headline with the cmake build
instructions with the maven build as more of a secondary footnote. The
reasoning here being that the C code depends significantly more on manual
install testing than the Java, and the source code is really the primary
distribution mechanism for C, whereas most people will probably never
bother with the source when consuming the Java code.

Secondly, I suspect it's probably technically feasible (and possibly quite
natural) to structure the build such that an export of the pure Java
portion of the tree would constitute a completely functioning maven build.
This would leave us with the option to produce two source tarballs if we
wished where the Java source tarball was simply a nested subset of the full
source tarball. I don't know that we necessarily need this, but it might be
good to keep the option open if in the future we find the cmake oriented
source tarball is an obstacle for Java users.


>
> === System Tests ===
>
> Returning to another discussion point, note that the proton/tests folder
> will contain both Python and Java test suites, each of which can be run
> against either proton-c or proton-j. Their division of responsibility is
> something that will emerge over time, and does not need to be fully
> resolved right now.
>
>
As a final note on this point, I don't think this needs to be resolved to
proceed with the build, however I do think it is an important discussion to
have sooner rather than later if a significant investment in new tests are
planned.

--Rafael

Reply via email to