Skip to content

Ruby: additional LDFLAGS, bugs.ruby-lang.org/issues/18409

Jason Plum requested to merge debian-ruby-patch into master

What does this MR do?

Add LDFLAGS per bugs.ruby-lang.org/issues/18409 to the Ruby build process, prior to ./configure

See https://github.com/ruby/ruby/pull/4627 && https://bugs.ruby-lang.org/issues/18409

Related to gitlab-com/gl-infra/production#6276 (closed)

Discovered through investigation, this is a Debian Bullseye specific problem. It can be avoided via LD_PRELOAD, which is why we did not see this in Omnibus GitLab. There, we use LD_PRELOAD directly, in place of --with-jemalloc in the compilation step.

🤝 @stanhu

Related issues

Checklist

See Definition of done.

For anything in this list which will not be completed, please provide a reason in the MR discussion

Required

  • Merge Request Title, and Description are up to date, accurate, and descriptive
  • MR targeting the appropriate branch
  • MR has a green pipeline on GitLab.com

Expected (please provide an explanation if not completing)

  • Test plan indicating conditions for success has been posted and passes (!884 (comment 831338692))
  • Documentation created/updated
  • Integration tests added to GitLab QA
  • The impact any change in container size has should be evaluated
Edited by Jason Plum

Merge request reports