[DRE-maint] Bug#961194: warning: Using the last argument as keyword parameters is deprecated

Marko Mäkelä msmakela at gmail.com
Thu May 21 09:11:05 BST 2020


Package: jekyll
Version: 3.8.6+dfsg-3
Severity: important

Dear Maintainer,

At least a few weeks ago, after I updated my Sid system,
the command "jekyll build --incremental" for a nontrivial
input (287 *.html files, using some custom Jekyll code) would spew
deprecation warnings for a Ruby files in Jekyll.
Here is the summary, filtered by "sort|uniq -c":

     187 /usr/lib/ruby/vendor_ruby/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
     120 /usr/lib/ruby/vendor_ruby/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
     329 /usr/lib/ruby/vendor_ruby/jekyll/tags/include.rb:194: warning: Using the last argument as keyword parameters is deprecated

The following minimal set of input reproduces one of these deprecation
warnings:

#!/bin/sh
mkdir j
cd j
echo 'markdown: kramdown' > _config.yml
cat > index.html << EOF
---
layout: default
---
<p>hello world</p>
EOF
mkdir _layouts
echo '<html><body>{{content}}</body></html>' > _layouts/default.html
jekyll build

The above script outputs the following:
Configuration file: /dev/shm/j/_config.yml
             Source: /dev/shm/j
        Destination: /dev/shm/j/_site
  Incremental build: disabled. Enable with --incremental
       Generating... 
/usr/lib/ruby/vendor_ruby/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
/usr/lib/ruby/vendor_ruby/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
                     done in 0.014 seconds.
  Auto-regeneration: disabled. Use --watch to enable.

The extra messages from Ruby are preventing me from noticing any Jekyll
warning messages about possible wrong syntax in my Jekyll source files.
Hence, I think that the severity is 'important'.

The generated output in the _site directory seems to be unaffected by this.

I do not know Ruby, so I cannot provide a patch. A common pattern
for these lines appears to be a File.read() invocation.

Best regards,

Marko Mäkelä

-- System Information:
Debian Release: bullseye/sid
   APT prefers unstable
   APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.5.0-1-amd64 (SMP w/40 CPU cores)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), LANGUAGE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages jekyll depends on:
ii  bundler                     2.1.4-1
ii  ruby                        1:2.7+1
ii  ruby-addressable            2.7.0-1
ii  ruby-classifier-reborn      2.2.0-1
ii  ruby-colorator              1.1.0-3
ii  ruby-em-websocket           0.5.1-2
ii  ruby-i18n                   1.8.2-2
ii  ruby-jekyll-sass-converter  1.5.2-2
ii  ruby-jekyll-watch           2.2.1-1
ii  ruby-kramdown               1.17.0-4
ii  ruby-launchy-shim           2.3.0.1
ii  ruby-liquid                 4.0.3-2
ii  ruby-mercenary              0.3.6-2
ii  ruby-mime-types             3.3.1-1
ii  ruby-pathutil               0.16.1-1
ii  ruby-pygments.rb            1.2.1-1
ii  ruby-rdiscount              2.1.8-1+b7
ii  ruby-redcarpet              3.5.0-1+b2
ii  ruby-rouge                  3.18.0-1
ii  ruby-safe-yaml              1.0.5-1
ii  ruby-toml                   0.2.0-3
ii  xdg-utils                   1.1.3-2

jekyll recommends no packages.

Versions of packages jekyll suggests:
ii  ruby-jekyll-coffeescript      1.2.2-2
pn  ruby-jekyll-compose           <none>
ii  ruby-jekyll-feed              0.13.0-2
ii  ruby-jekyll-gist              1.5.0-2
pn  ruby-jekyll-last-modified-at  <none>
ii  ruby-jekyll-paginate          1.1.0-3
pn  ruby-jekyll-redirect-from     <none>
pn  ruby-jekyll-remote-theme      <none>
pn  ruby-jekyll-seo-tag           <none>
pn  ruby-jekyll-sitemap           <none>

-- no debconf information



More information about the Pkg-ruby-extras-maintainers mailing list