[
https://issues.apache.org/jira/browse/CASSANDRA-15889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17266594#comment-17266594
]
Michael Semb Wever edited comment on CASSANDRA-15889 at 1/16/21, 1:32 PM:
--------------------------------------------------------------------------
[~mattsplat], would you be able to test the debian repository in
[{{debian-repo-15889.tar}}|https://nightlies.apache.org/cassandra/devbranch/misc/CASSANDRA-15889/debian-repo-15889.tar]
?
It was built with the patch mentioned above, and the following steps (copied
from our {{prepare_release.sh}} script):
{code}
export gpg_key="…"
export cassandra_builds_dir="../cassandra-builds" # where your
cassandra-builds repo clone is
mkdir debian
cd debian/
${cassandra_builds_dir}/build-scripts/cassandra-deb-packaging.sh
cassandra-4.0-beta4
debsign -k$gpg_key cassandra_4.0~beta4_amd64.changes
export debian_series="40x"
mkdir conf
echo "Origin: Apache Cassandra Packages" > conf/distributions
echo "Label: Apache Cassandra Packages" >> conf/distributions
echo "Codename: $debian_series" >> conf/distributions
echo "Architectures: i386 amd64 arm64 source" >> conf/distributions
echo "Components: main" >> conf/distributions
echo "Description: Apache Cassandra APT Repository" >> conf/distributions
echo "SignWith: $gpg_key" >> conf/distributions
reprepro --ignore=wrongdistribution include $debian_series
cassandra_4.0~beta4_amd64.changes
rm -fR db conf cass*
cd ..
tar cvf debian-repo-15889.tar debian/
{code}
was (Author: michaelsembwever):
[~mattsplat], would you be able to test the debian repository in
[{{debian-repo-15889.tar}} ,
|https://nightlies.apache.org/cassandra/devbranch/misc/CASSANDRA-15889/debian-repo-15889.tar]
?
It was built with the patch mentioned above, and the following steps (copied
from our {{prepare_release.sh}} script):
{code}
export gpg_key="…"
export cassandra_builds_dir="../cassandra-builds" # where your
cassandra-builds repo clone is
mkdir debian
cd debian/
${cassandra_builds_dir}/build-scripts/cassandra-deb-packaging.sh
cassandra-4.0-beta4
debsign -k$gpg_key cassandra_4.0~beta4_amd64.changes
export debian_series="40x"
mkdir conf
echo "Origin: Apache Cassandra Packages" > conf/distributions
echo "Label: Apache Cassandra Packages" >> conf/distributions
echo "Codename: $debian_series" >> conf/distributions
echo "Architectures: i386 amd64 arm64 source" >> conf/distributions
echo "Components: main" >> conf/distributions
echo "Description: Apache Cassandra APT Repository" >> conf/distributions
echo "SignWith: $gpg_key" >> conf/distributions
reprepro --ignore=wrongdistribution include $debian_series
cassandra_4.0~beta4_amd64.changes
rm -fR db conf cass*
cd ..
tar cvf debian-repo-15889.tar debian/
{code}
> Debian package fails to download on Arm-based hosts
> ---------------------------------------------------
>
> Key: CASSANDRA-15889
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15889
> Project: Cassandra
> Issue Type: Bug
> Components: Build
> Reporter: Matt Davis
> Assignee: Michael Semb Wever
> Priority: Normal
> Labels: ARM, debian
> Fix For: 2.2.x, 3.0.x, 3.11.x, 4.0-rc
>
>
> Following the first three steps of the [Debian install
> process|https://cassandra.apache.org/download/], after an apt-get update
> you'll see this line:
> {code:bash}
> $ sudo apt-get update
> ...
> N: Skipping acquire of configured file 'main/binary-arm64/Packages' as
> repository 'https://downloads.apache.org/cassandra/debian 311x InRelease'
> doesn't support architecture 'arm64'
> {code}
> Checking the [Debian
> repo|https://dl.bintray.com/apache/cassandra/dists/311x/main/] confirms there
> is no aarch64 variant available.
> Should you then attempt to install Cassandra:
> {code:bash}
> $ sudo apt-get install cassandra
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Package cassandra is not available, but is referred to by another package.
> This may mean that the package is missing, has been obsoleted, or
> is only available from another source
> E: Package 'cassandra' has no installation candidate
> {code}
> Note that there is a workaround available: if you specify "amd64" as the arch
> for the source, it downloads and runs on Arm without issue:
> {code:bash}
> echo "deb [arch=amd64] https://downloads.apache.org/cassandra/debian 311x
> main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
> {code}
> The Redhat RPM contains a "noarch" arch type, so it will download on any
> host. (Cassandra does not use separate binaries/releases for different
> architectures, so this seems to be the correct approach, but adding an
> aarch64 variant would also suffice.)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]