Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Debian mkdir symlink hack #918

Closed
wants to merge 1 commit into from
Closed

Drop Debian mkdir symlink hack #918

wants to merge 1 commit into from

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Dec 29, 2023

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

@evgeni
Copy link
Member Author

evgeni commented Dec 29, 2023

"fun" fact? this only fails inside Puppet. Native Ruby from Debian installs it fine. Puppet's Ruby does not. 👀

@smortex
Copy link
Member

smortex commented Dec 29, 2023

This seems to be caused by the way Ruby is build by Vanagon to be bundled in AIO packages: at build time, mkdir(1) is found as /usr/bin/mkdir for (bad?) reasons, and this path is saved in rbconfig.rb (part of Ruby) that is used to generate Makefiles when building native gems.

romain@ns3006942 ~ % dpkg -S rbconfig.rb
puppet-agent: /opt/puppetlabs/puppet/lib/ruby/3.2.0/x86_64-linux/rbconfig.rb
libruby2.7:amd64: /usr/lib/x86_64-linux-gnu/ruby/2.7.0/rbconfig.rb
gitlab-ce: /opt/gitlab/embedded/lib/ruby/3.1.0/x86_64-linux/rbconfig.rb
romain@ns3006942 ~ % grep mkdir /opt/puppetlabs/puppet/lib/ruby/3.2.0/x86_64-linux/rbconfig.rb /usr/lib/x86_64-linux-gnu/ruby/2.7.0/rbconfig.rb /opt/gitlab/embedded/lib/ruby/3.1.0/x86_64-linux/rbconfig.rb
/opt/puppetlabs/puppet/lib/ruby/3.2.0/x86_64-linux/rbconfig.rb:  CONFIG["MKDIR_P"] = "/usr/bin/mkdir -p"
/opt/puppetlabs/puppet/lib/ruby/3.2.0/x86_64-linux/rbconfig.rb:  CONFIG["MAKEDIRS"] = "/usr/bin/mkdir -p"
/usr/lib/x86_64-linux-gnu/ruby/2.7.0/rbconfig.rb:  CONFIG["MAKEDIRS"] = "/bin/mkdir -p"
/usr/lib/x86_64-linux-gnu/ruby/2.7.0/rbconfig.rb:  CONFIG["MKDIR_P"] = "/bin/mkdir -p"
/opt/gitlab/embedded/lib/ruby/3.1.0/x86_64-linux/rbconfig.rb:  CONFIG["MAKEDIRS"] = "/bin/mkdir -p"
/opt/gitlab/embedded/lib/ruby/3.1.0/x86_64-linux/rbconfig.rb:  CONFIG["MKDIR_P"] = "/bin/mkdir -p"

@evgeni
Copy link
Member Author

evgeni commented Dec 29, 2023

Ah, thanks for tracking that down!

@evgeni evgeni closed this Mar 1, 2024
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