From e7edf9fc5f57acad55e6cdb87c7eb075f6b77f69 Mon Sep 17 00:00:00 2001 From: Cody Shepherd Date: Mon, 28 Jun 2021 07:45:58 -0700 Subject: [PATCH] fix: rename arm rpms with yum-compatible names (#21750) --- CHANGELOG.md | 1 + build.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0263d7c8c0..4d8a75b1897 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - [#21666](https://github.com/influxdata/influxdb/pull/21666): fix: do not panic on cleaning up failed iterators - [#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 v1.9.2 [unreleased] - [#21631](https://github.com/influxdata/influxdb/pull/21631): fix: group by returns multiple results per group in some circumstances diff --git a/build.py b/build.py index 1be0c20a95a..a65ec77d976 100755 --- a/build.py +++ b/build.py @@ -707,6 +707,11 @@ def package(build_output, pkg_name, version, nightly=False, iteration=1, static= elif package_type not in ['zip', 'tar'] and static or "static_" in arch: logging.info("Skipping package type '{}' for static builds.".format(package_type)) else: + if package_type == "rpm": + if package_arch == "armhf": + package_arch = "armv7hl" + elif package_arch == "arm64": + package_arch = "aarch64" fpm_command = "fpm {} --name {} -a {} -t {} --version {} --iteration {} -C {} -p {} ".format( fpm_common_args, name,