Jira (PUP-10406) puppet-agent on Debian Buster: incorrect mkdir path in rbconfig.rb

6 views
Skip to first unread message

Radek Zajic (Jira)

unread,
Apr 2, 2020, 3:44:03 AM4/2/20
to puppe...@googlegroups.com
Radek Zajic created an issue
 
Puppet / Bug PUP-10406
puppet-agent on Debian Buster: incorrect mkdir path in rbconfig.rb
Issue Type: Bug Bug
Affects Versions: PUP 6.14.0
Assignee: Unassigned
Components: Modules
Created: 2020/04/02 12:43 AM
Priority: Normal Normal
Reporter: Radek Zajic

Puppet Version: 6.14.0-1buster
Puppet Server Version:
OS Name/Version: Debian Buster

Apt entry: deb http://apt.puppetlabs.com buster puppet6
 
Dear Maintainer,
Desired Behavior:

The following works on clean Debian Buster

/opt/puppetlabs/puppet/bin/gem install --no-document msgpack

Actual Behavior:
puppet-agent's bundled rbconfig.rb (/opt/puppetlabs/puppet/lib/ruby/2.5.0/x86_64-linux/rbconfig.rb) contains the following line:
CONFIG["MAKEDIRS"] = "/usr/bin/mkdir -p"
however there is no /usr/bin/mkdir on a clean Debian Buster system; mkdir
resides in /bin only. This configuration results in failed build of
native Ruby gems, which use mkmf: mkmf generates the following line into
the native Ruby gem Makefile:
MAKEDIRS = /usr/bin/mkdir -p
 
Following use of such $MAKEDIRS value results in failed installation,
e.g. for the msgpack gem:
make "DESTDIR=" install

make: /usr/bin/mkdir: Command not foundmake: *** [Makefile:200: .sitearchdir.-.msgpack.time] Error 12

make install failed, exit code 2
 
The behavior can be verified on your system by running
/opt/puppetlabs/puppet/bin/gem install --no-document msgpack
 
My ruby experience level is low, however based on the above I recommend
to fix the value of CONFIG["MAKEDIRS"] in rbconfig.rb. This would avoid
the failed builds of native gems/extensions.
 
Thank you for handling this issue.
 
Best regards
Radek Zajic

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Apr 2, 2020, 3:26:03 PM4/2/20
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-10406
 
Re: puppet-agent on Debian Buster: incorrect mkdir path in rbconfig.rb

Our debian buster images seem to have /usr/bin/mkdir:

root@familar-cadenza:~# facter os
{
  architecture => "amd64",
  distro => {
    codename => "buster",
    description => "Debian GNU/Linux 10 (buster)",
    id => "Debian",
    release => {
      full => "10.0",
      major => "10",
      minor => "0"
    }
  },
  family => "Debian",
  hardware => "x86_64",
  name => "Debian",
  release => {
    full => "10.0",
    major => "10",
    minor => "0"
  },
  selinux => {
    enabled => false
  }
}
root@familar-cadenza:~# ls -la /usr/bin/mkdir
-rwxr-xr-x 1 root root 89088 Feb 28  2019 /usr/bin/mkdir

Josh Cooper (Jira)

unread,
Apr 2, 2020, 3:26:04 PM4/2/20
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages