[Pkg-puppet-devel] Bug#1006231: puppet: FTBFS with ruby 3.0: fileutils.rb:865:in `install': wrong number of arguments (given 3, expected 2) (ArgumentError)

Andreas Beckmann anbe at debian.org
Mon Feb 21 17:52:21 GMT 2022


Source: puppet
Version: 6.16.0-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source

Hi,

puppet/experimental recently started to FTBFS. This seems to have been
cuased by a recent change to a build dependency as a previous build
attempt on Jan 12 was still successful.

 fakeroot debian/rules binary
dh /usr/share/openstack-pkg-tools/pkgos.make
dh: error: Unknown sequence /usr/share/openstack-pkg-tools/pkgos.make (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep)
dh binary
   dh_testroot
   dh_prep
   dh_installdirs
   debian/rules override_dh_auto_install
make[1]: Entering directory '/build/puppet-6.16.0'
dh /usr/share/openstack-pkg-tools/pkgos.make
dh: error: Unknown sequence /usr/share/openstack-pkg-tools/pkgos.make (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep)
./install.rb --destdir=debian/tmp \
        --configdir=/etc/puppet \
        --codedir=/etc/puppet/code \
        --logdir=/var/log/puppet \
        --localedir=/usr/share/puppet/locale \
        --vardir=/var/cache/puppet \
        --sitelibdir=/usr/lib/ruby/vendor_ruby \
        --ruby=/usr/bin/ruby
/usr/lib/ruby/3.0.0/fileutils.rb:865:in `install': wrong number of arguments (given 3, expected 2) (ArgumentError)
        from ./install.rb:63:in `block in do_configs'
        from ./install.rb:61:in `each'
        from ./install.rb:61:in `do_configs'
        from ./install.rb:493:in `block in <main>'
        from /usr/lib/ruby/3.0.0/fileutils.rb:139:in `chdir'
        from /usr/lib/ruby/3.0.0/fileutils.rb:139:in `cd'
        from ./install.rb:475:in `<main>'
make[1]: *** [debian/rules:10: override_dh_auto_install] Error 1
make[1]: Leaving directory '/build/puppet-6.16.0'
make: *** [debian/rules:7: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2

Comparing the build logs shows the switch from ruby 2.7 to 3.0 as a possible cause.
Please also fix the "Unknown sequence /usr/share/openstack-pkg-tools/pkgos.make" noise.


Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: puppet_6.16.0-1.log.gz
Type: application/gzip
Size: 12817 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-puppet-devel/attachments/20220221/2a89cbee/attachment.gz>


More information about the Pkg-puppet-devel mailing list