Skip to content

Add glibc version check for linux builds#8278

Merged
ssoroka merged 3 commits intomasterfrom
glibc-version
Oct 16, 2020
Merged

Add glibc version check for linux builds#8278
ssoroka merged 3 commits intomasterfrom
glibc-version

Conversation

@reimda
Copy link
Copy Markdown
Contributor

@reimda reimda commented Oct 16, 2020

This version check makes sure that telegraf on linux platforms doesn't dynamically link to a glibc that is too new. Requiring a new glibc would cause telegraf to fail to run on older supported linux distributions. The version it compares against is configurable in the makefile and set to 2.17 which is what RHEL 7 provides.

The check runs as part of the makefile's packages target which already runs during CI, so this will run on every PR.

CI for this PR is failing intentionally to show that it works.

@reimda reimda requested a review from ssoroka October 16, 2020 17:52
@ssoroka
Copy link
Copy Markdown
Contributor

ssoroka commented Oct 16, 2020

lgtm

@ssoroka ssoroka merged commit bfc1a87 into master Oct 16, 2020
@ssoroka ssoroka deleted the glibc-version branch October 16, 2020 19:08
powersj added a commit to powersj/telegraf that referenced this pull request Feb 2, 2023
This ensures that cgo is always disabled with builds using
the Makefile. Telegraf does not support importing C libraries
or depending on any of them in the first place. This is to
ensure cross-platform and cross-OS support.

Our official builds for Windows, macOS, and BSD are
cross-compiled. In these cases, cgo is already disabled. This
primarily affects the linux builds. This will enable us to deliver
the much requested arm64 docker images for Alpine.

In influxdata#8278, a check for the glibc version was added after a
user noticed the binary was depending on newer versions of
glibc. This removes those checks as static builds will not need
these checks.

Finally, this removes the no longer necessary static specific
build.
powersj added a commit to powersj/telegraf that referenced this pull request Feb 2, 2023
This ensures that cgo is always disabled with builds using
the Makefile. Telegraf does not support importing C libraries
or depending on any of them in the first place. This is to
ensure cross-platform and cross-OS support.

Our official builds for Windows, macOS, and BSD are
cross-compiled. In these cases, cgo is already disabled. This
primarily affects the linux builds. This will enable us to deliver
the much requested arm64 docker images for Alpine.

In influxdata#8278, a check for the glibc version was added after a
user noticed the binary was depending on newer versions of
glibc. This removes those checks as static builds will not need
these checks.

Finally, this removes the no longer necessary static specific
build.
powersj added a commit to powersj/telegraf that referenced this pull request Feb 2, 2023
This ensures that cgo is always disabled with builds using
the Makefile. Telegraf does not support importing C libraries
or depending on any of them in the first place. This is to
ensure cross-platform and cross-OS support.

Our official builds for Windows, macOS, and BSD are
cross-compiled. In these cases, cgo is already disabled. This
primarily affects the linux builds. This will enable us to deliver
the much requested arm64 docker images for Alpine.

In influxdata#8278, a check for the glibc version was added after a
user noticed the binary was depending on newer versions of
glibc. This removes those checks as static builds will not need
these checks.

Finally, this removes the no longer necessary static specific
build.
powersj added a commit to powersj/telegraf that referenced this pull request Feb 2, 2023
This ensures that cgo is always disabled with builds using
the Makefile. Telegraf does not support importing C libraries
or depending on any of them in the first place. This is to
ensure cross-platform and cross-OS support.

Our official builds for Windows, macOS, and BSD are
cross-compiled. In these cases, cgo is already disabled. This
primarily affects the linux builds. This will enable us to deliver
the much requested arm64 docker images for Alpine.

In influxdata#8278, a check for the glibc version was added after a
user noticed the binary was depending on newer versions of
glibc. This removes those checks as static builds will not need
these checks.

Finally, this removes the no longer necessary static specific
build.
powersj added a commit to powersj/telegraf that referenced this pull request Feb 2, 2023
This ensures that cgo is always disabled with builds using
the Makefile. Telegraf does not support importing C libraries
or depending on any of them in the first place. This is to
ensure cross-platform and cross-OS support.

Our official builds for Windows, macOS, and BSD are
cross-compiled. In these cases, cgo is already disabled. This
primarily affects the linux builds. This will enable us to deliver
the much requested arm64 docker images for Alpine.

In influxdata#8278, a check for the glibc version was added after a
user noticed the binary was depending on newer versions of
glibc. This removes those checks as static builds will not need
these checks.

Finally, this removes the no longer necessary static specific
build.
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants