Skip to content

Commit

Permalink
fix: convert arm arch names for rpms during builds via docker (#21777)
Browse files Browse the repository at this point in the history
* fix: convert arm arch names for rpms during builds via docker

* chore: update changelog
  • Loading branch information
codyshepherd authored Jul 2, 2021
1 parent e7edf9f commit 639527c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion releng/packages/fs/usr/local/bin/influxdb_packages.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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" \
Expand Down

0 comments on commit 639527c

Please sign in to comment.