fix: convert arm arch names for rpms during builds via docker (#21777)

* fix: convert arm arch names for rpms during builds via docker

* chore: update changelog
pull/21792/head
Cody Shepherd 2021-07-02 08:23:05 -07:00 committed by GitHub
parent e7edf9fc5f
commit 639527cd57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -12,6 +12,7 @@
- [#21693](https://github.com/influxdata/influxdb/pull/21693): fix: don't access a field in a nil struct
- [#21558](https://github.com/influxdata/influxdb/pull/21558): fix: do not send non-UTF-8 characters to subscriptions
- [#21750](https://github.com/influxdata/influxdb/pull/21750): fix: rename arm rpms with yum-compatible names
- [#21777](https://github.com/influxdata/influxdb/pull/21777): fix: convert arm arch names for rpms during builds via docker
v1.9.2 [unreleased]
- [#21631](https://github.com/influxdata/influxdb/pull/21631): fix: group by returns multiple results per group in some circumstances

View File

@ -114,6 +114,13 @@ elif [ "$OS" == "linux" ] || [ "$OS" == "darwin" ]; then
if [ "$OS" == "linux" ] ; then
# Call fpm to build .deb and .rpm packages.
for typeargs in "-t deb" "-t rpm --depends coreutils --depends shadow-utils"; do
ARCH_CONVERTED=$ARCH
pkg_t=$(echo $typeargs | cut -d ' ' -f2)
if [ "$pkg_t" == "rpm" ] && [ $"$ARCH" == "armhf" ]; then
ARCH_CONVERTED="armv7hl"
elif [ "$pkg_t" == "rpm" ] && [ $"$ARCH" == "arm64" ]; then
ARCH_CONVERTED="aarch64"
fi
FPM_NAME=$(
fpm \
-s dir \
@ -134,7 +141,7 @@ elif [ "$OS" == "linux" ] || [ "$OS" == "darwin" ]; then
--config-files /etc/influxdb/influxdb.conf \
--config-files /etc/logrotate.d/influxdb \
--name "influxdb" \
--architecture "$ARCH" \
--architecture "$ARCH_CONVERTED" \
--version "$VERSION" \
--iteration 1 \
-C "$PKG_ROOT" \