[ 
https://issues.apache.org/jira/browse/CASSANDRA-16428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17282697#comment-17282697
 ] 

Michael Semb Wever commented on CASSANDRA-16428:
------------------------------------------------

bq. Perhaps using `dpkg --print-architecture` would be more correct?

Yes. TIL.

Patch updated.
New CI runs:
- https://ci-cassandra.apache.org/job/Cassandra-devbranch-artifacts-arm64/7/
- https://ci-cassandra.apache.org/job/Cassandra-devbranch-dtest-arm64/10/

> Fix selections of JDKs in debian docker images on arm64
> -------------------------------------------------------
>
>                 Key: CASSANDRA-16428
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16428
>             Project: Cassandra
>          Issue Type: Task
>          Components: Build, Packaging
>            Reporter: Michael Semb Wever
>            Assignee: Michael Semb Wever
>            Priority: Normal
>
> The debian docker 
> [image|https://github.com/apache/cassandra-builds/blob/trunk/docker/buster-image.docker]
>  used by the 
> [cassandra-deb-packaging.sh|https://github.com/apache/cassandra-builds/blob/trunk/build-scripts/cassandra-deb-packaging.sh]
>  tries to set the jdk like
> {code}
> update-java-alternatives --set java-1.8.0-openjdk-amd64
> {code}
> This won't work on arm64.
> Suggestion is to replace it with the following:
> {code}
> update-java-alternatives --set $(update-java-alternatives -l | cut -d" " -f1 
> | grep java-1.8)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to