[ https://issues.apache.org/jira/browse/CASSANDRA-16428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17281158#comment-17281158 ]
Brandon Williams commented on CASSANDRA-16428: ---------------------------------------------- Perhaps using `{{dpkg --print-architecture}}` would be more correct? > 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: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org