You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Craig Ziesman <cz...@redhat.com> on 2024/05/16 18:16:59 UTC

Excluding components from the build for specific OS/architecture

I opened an issue (https://issues.apache.org/jira/browse/CAMEL-20706) to
address the fact that the camel-salesforce component build fails on Windows
running on ARM.

It turns out that the source builds without errors, but the test build
fails because the protoc executable is unavailable on Windows/ARM.

I looked through the tooling and it appears that there is no way to exclude
a component from a particular Camel distribution based on a specific
OS/architecture.

Has this come up before? Is this even an issue? Just curious what everybody
thinks.

Thanks for listening!

Re: Excluding components from the build for specific OS/architecture

Posted by Claus Ibsen <cl...@gmail.com>.
Hi Craig

Thanks for the help.

We may also consider switching to a more friendly protobuf maven plugin
https://issues.apache.org/jira/browse/CAMEL-20788

You are welcome to take a look at that too

On Sat, May 18, 2024 at 12:31 AM Craig Ziesman <cz...@redhat.com> wrote:

> Unlike camel-salesforce, camel-grpc doesn't actually compile any protobuf
> definitions, so protoc never gets called.
>
> I think that the upshot here is that the Camel build will fail on
> Windows/ARM, but since the official release isn't built there anyway it's
> not a major concern.
>
> I did file a feature request on the protocolbuffers project to add
> Windows/ARM support.
> https://github.com/protocolbuffers/protobuf/issues/16877
>
> For now, I will just add a comment to the camel-salesforce-component POM to
> let folks know that building it on Windows/ARM is currently not possible.
>
> On Fri, May 17, 2024 at 1:05 AM James Netherton <ja...@gmail.com>
> wrote:
>
> > Maybe take a look at camel-grpc to see how protoc is handled for the
> > various platforms & CPU architectures:
> >
> > https://github.com/apache/camel/blob/main/components/camel-grpc/pom.xml
> >
> > --
> > James
> >
> > On Thu, 16 May 2024 at 19:17, Craig Ziesman <cz...@redhat.com> wrote:
> >
> > > I opened an issue (https://issues.apache.org/jira/browse/CAMEL-20706)
> to
> > > address the fact that the camel-salesforce component build fails on
> > Windows
> > > running on ARM.
> > >
> > > It turns out that the source builds without errors, but the test build
> > > fails because the protoc executable is unavailable on Windows/ARM.
> > >
> > > I looked through the tooling and it appears that there is no way to
> > exclude
> > > a component from a particular Camel distribution based on a specific
> > > OS/architecture.
> > >
> > > Has this come up before? Is this even an issue? Just curious what
> > everybody
> > > thinks.
> > >
> > > Thanks for listening!
> > >
> >
>


-- 
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Re: Excluding components from the build for specific OS/architecture

Posted by Craig Ziesman <cz...@redhat.com>.
Unlike camel-salesforce, camel-grpc doesn't actually compile any protobuf
definitions, so protoc never gets called.

I think that the upshot here is that the Camel build will fail on
Windows/ARM, but since the official release isn't built there anyway it's
not a major concern.

I did file a feature request on the protocolbuffers project to add
Windows/ARM support.
https://github.com/protocolbuffers/protobuf/issues/16877

For now, I will just add a comment to the camel-salesforce-component POM to
let folks know that building it on Windows/ARM is currently not possible.

On Fri, May 17, 2024 at 1:05 AM James Netherton <ja...@gmail.com>
wrote:

> Maybe take a look at camel-grpc to see how protoc is handled for the
> various platforms & CPU architectures:
>
> https://github.com/apache/camel/blob/main/components/camel-grpc/pom.xml
>
> --
> James
>
> On Thu, 16 May 2024 at 19:17, Craig Ziesman <cz...@redhat.com> wrote:
>
> > I opened an issue (https://issues.apache.org/jira/browse/CAMEL-20706) to
> > address the fact that the camel-salesforce component build fails on
> Windows
> > running on ARM.
> >
> > It turns out that the source builds without errors, but the test build
> > fails because the protoc executable is unavailable on Windows/ARM.
> >
> > I looked through the tooling and it appears that there is no way to
> exclude
> > a component from a particular Camel distribution based on a specific
> > OS/architecture.
> >
> > Has this come up before? Is this even an issue? Just curious what
> everybody
> > thinks.
> >
> > Thanks for listening!
> >
>

Re: Excluding components from the build for specific OS/architecture

Posted by James Netherton <ja...@gmail.com>.
Maybe take a look at camel-grpc to see how protoc is handled for the
various platforms & CPU architectures:

https://github.com/apache/camel/blob/main/components/camel-grpc/pom.xml

--
James

On Thu, 16 May 2024 at 19:17, Craig Ziesman <cz...@redhat.com> wrote:

> I opened an issue (https://issues.apache.org/jira/browse/CAMEL-20706) to
> address the fact that the camel-salesforce component build fails on Windows
> running on ARM.
>
> It turns out that the source builds without errors, but the test build
> fails because the protoc executable is unavailable on Windows/ARM.
>
> I looked through the tooling and it appears that there is no way to exclude
> a component from a particular Camel distribution based on a specific
> OS/architecture.
>
> Has this come up before? Is this even an issue? Just curious what everybody
> thinks.
>
> Thanks for listening!
>

Re: Excluding components from the build for specific OS/architecture

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

The intent is not for end users to build their own camel distribution.
The source code is built and released to maven central as JARs, where end
users will consume the releases.

If there are odd combinations of osx and cpu arch where some camel
components cannot build special code like protobuf
then "so be it".

However your work to try to make the source build and skip that "odd combo"
for this particular situation is appreciated,
and if you can help find to get the PR working then that would be good.





On Thu, May 16, 2024 at 8:17 PM Craig Ziesman <cz...@redhat.com> wrote:

> I opened an issue (https://issues.apache.org/jira/browse/CAMEL-20706) to
> address the fact that the camel-salesforce component build fails on Windows
> running on ARM.
>
> It turns out that the source builds without errors, but the test build
> fails because the protoc executable is unavailable on Windows/ARM.
>
> I looked through the tooling and it appears that there is no way to exclude
> a component from a particular Camel distribution based on a specific
> OS/architecture.
>
> Has this come up before? Is this even an issue? Just curious what everybody
> thinks.
>
> Thanks for listening!
>


-- 
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2