Review: ruby-rbs 4.2.0-1
Package Information
| Description | Type signature for Ruby. RBS is the language for type signatures for Ruby and standard library definitions. |
|---|---|
| Maintainer | Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org> |
| Changed By | Simon Quigley <tsimonq2@debian.org> |
| Sponsor | tsimonq2@debian.org |
| Distribution | unstable |
| Architecture | any |
| VCS | git: https://salsa.debian.org/ruby-team/ruby-rbs.git (browse) |
| Tracker | https://tracker.debian.org/pkg/ruby-rbs |
| Uploaded | 16 days ago |
New Package Report
.changes
| Date | Fri, 06 Nov 2026 20:48:15 -0600 |
|---|---|
| Source | ruby-rbs |
| Version | 4.2.0-1 |
| Changed-By | Simon Quigley <tsimonq2@debian.org> |
| Architecture | source amd64 |
| Distribution | unstable |
Changelog
ruby-rbs (4.2.0-1) unstable; urgency=medium . * Initial release.
.dsc
| Component | main |
|---|---|
| Package-List | ruby-rbs deb ruby optional arch=any |
| Section | ruby |
| Priority | optional |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: rbs
Upstream-Contact: Soutaro Matsumoto <matsumoto@soutaro.com>
Source: https://github.com/ruby/rbs
Files: *
Copyright: 2019-2026 Soutaro Matsumoto <matsumoto@soutaro.com>
License: BSD-2-clause or Ruby
Files: src/util/rbs_encoding.c
Copyright: 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de>
2019-2026 Soutaro Matsumoto <matsumoto@soutaro.com>
License: BSD-2-clause or Ruby
Comment: The UTF-8 state table in this file is Copyright 2008-2009
Bjoern Hoehrmann and is used under the Expat license.
Files: debian/*
Copyright: 2026 Simon Quigley <tsimonq2@debian.org>
License: Expat
License: BSD-2-clause
Copyright (C) 2019 Soutaro Matsumoto. All rights reserved.
.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
License: Ruby
rbs is copyrighted free software by Soutaro Matsumoto <matsumoto@soutaro.com>.
You can redistribute it and/or modify it under either the terms of the
2-clause BSDL (see the file BSDL), or the conditions below:
.
1. You may make and give away verbatim copies of the source form of the
software without restriction, provided that you duplicate all of the
original copyright notices and associated disclaimers.
.
2. You may modify your copy of the software in any way, provided that
you do at least ONE of the following:
.
a. place your modifications in the Public Domain or otherwise
make them Freely Available, such as by posting said
modifications to Usenet or an equivalent medium, or by allowing
the author to include your modifications in the software.
.
b. use the modified software only within your corporation or
organization.
.
c. give non-standard binaries non-standard names, with
instructions on where to get the original software distribution.
.
d. make other distribution arrangements with the author.
.
3. You may distribute the software in object code or binary form,
provided that you do at least ONE of the following:
.
a. distribute the binaries and library files of the software,
together with instructions (in the manual page or equivalent)
on where to get the original distribution.
.
b. accompany the distribution with the machine-readable source of
the software.
.
c. give non-standard binaries non-standard names, with
instructions on where to get the original software distribution.
.
d. make other distribution arrangements with the author.
.
4. You may modify and include the part of the software into any other
software (possibly commercial). But some files in the distribution
are not written by the author, so that they are not under these terms.
.
For the list of those files and their copying conditions, see the
file LEGAL.
.
5. The scripts and library files supplied as input to or produced as
output from the software do not automatically fall under the
copyright of the software, but belong to whomever generated them,
and may be sold commercially, and may be aggregated with this
software.
.
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.
License: Expat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
DFSG Assistant LLM REVIEW 2 blocker, 0 important, 2 minor
This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.
Reviewed 16 days ago.
Report
DFSG NEW review for ruby-rbs version 4.2.0-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: Yes
- Issues: 2 blocker, 0 important, 2 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: nothing found
Licensing
The licences in play (BSD-2-clause, the Ruby licence, and Expat for the UTF-8 table in src/util/rbs_encoding.c) are all free, so nothing here is non-DFSG. debian/copyright is DEP-5 and mostly right for the bulk of the tree, but its single Files: * stanza (BSD-2-clause or Ruby, Soutaro Matsumoto only) does not describe the stdlib signature files that carry other people's copyright notices and, for stdlib/pty/0/pty.rbs, another permission notice altogether. The stdlib holders the prescan named (Akinori Ito, Network Applied Communication Laboratory, Information-technology Promotion Agency Japan) plus akira yamada and Minero Aoki are missing. Separately, nine shipped files are generated from templates/ that the package does not contain.
Packaging
Standard Debian Ruby Team gem2deb packaging: debhelper compat 14, sane Build-Depends on the gemspec's runtime dependencies (all of which exist and satisfy their versions), DEP-3 patches with a real purpose, current Standards-Version, Vcs-* and upstream/metadata present, a hand-written manpage, and a source format of 3.0 (quilt). The weak point is testing: the orig tarball is the RubyGem release, which contains no test suite, so debian/ruby-tests.rb is only a load-and-check-dependencies smoke test.
Issues
blocker licensing 1. Files: * does not name the holders of the stdlib signature files (Akinori Ito, Network Applied Communication Laboratory, Information-technology Promotion Agency Japan, akira yamada, Minero Aoki) ◂
- Files:
debian/copyright:6-8,stdlib/pty/0/pty.rbs:46,stdlib/timeout/0/timeout.rbs:16-22,stdlib/uri/0/common.rbs:102-112,stdlib/uri/0/generic.rbs:78-88,stdlib/ripper/0/ripper.rbs:66-74 - Basis: checked, in the package or with a reference tool
- Evidence: debian/copyright
Files: *gives onlyCopyright: 2019-2026 Soutaro Matsumoto <matsumoto@soutaro.com>; the files say# (c) Copyright 1998 by Akinori Ito.(pty.rbs:46),# : (C) 2000 Network Applied Communication Laboratory, Inc.and# : (C) 2000 Information-technology Promotion Agency, Japan(timeout.rbs:18-22),# : Copyright (c) 2001 akira yamada <akira@ruby-lang.org> You can redistribute it and/or modify it under the same term as Ruby.(uri/common.rbs:112), and# ## License/# Ruby License./# * Minero Aoki(ripper.rbs:66-72). - Problem: These stdlib signatures reproduce the rdoc text of the corresponding CRuby sources, including their copyright notices, so the holders are real copyright holders of material shipped in the binary package. Debian Policy 12.5 and the machine-readable copyright specification require debian/copyright to state the copyright of every file; a
Files: *stanza naming one holder is inaccurate for these files. - Fix: Add a Files stanza for the stdlib signatures that carry notices of their own, with each holder and the licence that applies to it, e.g.
Files: stdlib/pty/0/pty.rbs(see the next issue), andFiles: stdlib/timeout/0/timeout.rbs stdlib/uri/0/*.rbs stdlib/ripper/0/ripper.rbswith those copyright lines andLicense: Ruby(uri.rbs restricts redistribution to the Ruby licence; ripper.rbs statesRuby License).
blocker
licensing
2. stdlib/pty/0/pty.rbs carries a permission notice that is neither BSD-2-clause nor the Ruby licence, but debian/copyright puts it under License: BSD-2-clause or Ruby
◂
- Files:
debian/copyright:6-8,stdlib/pty/0/pty.rbs:44-56 - Basis: checked, in the package or with a reference tool
- Evidence:
# ## License/# (c) Copyright 1998 by Akinori Ito./# This software may be redistributed freely for this purpose, in full or in part, provided that this entire copyright notice is included on any copies of this software and applications and derivations thereof./# This software is provided on an "as is" basis, without warranty of any kind ... - Problem: The stanza that matches this file states a dual BSD-2-clause/Ruby licence, which is not the text the file carries. The notice is permissive and does not make the file non-free, but debian/copyright must state the licence that actually applies to the file, and this one appears nowhere in the file.
- Fix: Give stdlib/pty/0/pty.rbs its own Files stanza with
Copyright: 1998 Akinori Itoand a stand-alone License paragraph holding this notice verbatim under a short name of its own (or asLicense: pty, reproducing the text), and stop claimingBSD-2-clause or Rubyfor it.
minor licensing 3. Nine shipped files are generated from templates/ that the package does not contain ◂
- Files:
src/ast.c:2,include/rbs/ast.h:2,src/serialize.c:2,include/rbs/serialize.h:2,ext/rbs_extension/ast_translation.c:2,ext/rbs_extension/ast_translation.h:2,ext/rbs_extension/class_constants.c:2,ext/rbs_extension/class_constants.h:2,lib/rbs/wasm/serialization_schema.rb:3,Rakefile:170-182 - Basis: checked, in the package or with a reference tool
- Evidence:
This file is generated by the templates/template.rb script and should not be modified manually. To change the template see templates/src/ast.c.erb(and the same for the other eight); Rakefile'stask :templatesrunsruby templates/template.rb src/ast.candconfirm_templatescompares the output against them. Neither templates/ nor bin/ nor test/ is in the tarball. - Problem: The preferred form for modifying these files is the ERB template plus config.yml, and the templates are absent, so the generated C cannot be regenerated from the package and a change to the AST has to be made by editing thousands of lines of boilerplate by hand. This is a DFSG 2 completeness concern for the source, and it is a consequence of the orig tarball being the RubyGem release, whose gemspec rejects templates/, rust/, bin/ and test/ (rbs.gemspec:28-38). The rest of the tree is fine in this respect: src/lexer.c is generated by re2c from the shipped src/lexer.re, and src/parser.c is hand-written C.
- Fix: Package the upstream repository release (or the upstream git tag tarball) so that templates/ and config.yml's generator are present, or add the templates as a supplementary orig tarball; alternatively state in debian/README.source that the C files are the maintained source and the templates live upstream.
minor packaging 4. autopkgtest only loads the library; the source tarball contains no upstream test suite ◂
- Files:
debian/ruby-tests.rb:1-7,debian/control:9,debian/rules:4 - Basis: checked, in the package or with a reference tool
- Evidence: debian/ruby-tests.rb is
ENV['LC_ALL'] = 'C.UTF-8',require 'rbs', thenRBS::VERSION,RBS::Parser,RBS::Environment;Testsuite: autopkgtest-pkg-rubyruns exactly that, andGEM2DEB_TEST_RUNNER = --check-dependenciesonly adds a dependency check. The tarball has no test/ or spec/ directory. - Problem: Neither the build-time test nor autopkgtest exercises the native extension (lexer, parser, serializer) or any behaviour of the tool, so a regression in the C code shipped here would pass. The upstream suite exists but is excluded from the RubyGem, which is the orig tarball.
- Fix: If the source is switched to the upstream repository tarball, wire its test suite into debian/ruby-tests.rb; otherwise at least drive the parser from the test, e.g.
RBS::Parser.parse_signature("class Foo end")and aRBS::Environmentload of the shipped core signatures.
Verified ◂
- Read all of debian/ (control, rules, changelog, copyright, patches/series and both patches, rbs.1, ruby-tests.rb, ruby-rbs.docs, ruby-rbs.manpages, gbp.conf, salsa-ci.yml, source/format, upstream/metadata); grepped the whole tree with gitignore off for copyright, licence, SPDX, permission and restriction wording, and read every file that matched.
- stdlib/pty/0/pty.rbs:46 (Akinori Ito), stdlib/timeout/0/timeout.rbs:18-22 (Network Applied Communication Laboratory, Inc. and Information-technology Promotion Agency, Japan) from the prescan: reported as issue 1, together with the same defect in the uri and ripper signatures.
- src/util/rbs_encoding.c:4743-4750 is Bjoern Hoehrmann's UTF-8 decode table under the Expat licence; it has its own stanza at debian/copyright:10-16 naming him, a Comment saying so, and the full Expat text at debian/copyright:103-118.
- src/lexer.c:1
Generated by re2c 4.5.1from src/lexer.re, which is shipped; src/parser.c is not generated (hand-written recursive-descent C). - core/rubygems/rubygems.rbs:84-87 and core/rubygems/errors.rbs:84-87 only point at RubyGems' LICENSE.txt inside rdoc prose; they state no terms and name no holder of their own.
- stdlib/erb/0/erb.rbs:114 quotes
ruby - Copyright (C) 1993-2025 Yukihiro Matsumotoas an ERB example of RUBY_COPYRIGHT, not as a copyright notice on the file. - core/pathname.rbs:6 and stdlib/open-uri/0/open-uri.rbs:82 credit Tanaka Akira as author of the CRuby rdoc prose, with no copyright or licence statement; stdlib/strscan/0/string_scanner.rbs:422
and may not be modifiedis prose about StringScanner's fixed_anchor setting, not a licence term. - debian/copyright is DEP-5 with the correct Format URL;
Files: *then a narrower src/util stanza thendebian/*(Expat, Simon Quigley) - ordering is correct, so debian/ files and rbs_encoding.c get their own stanzas. Both licence texts (BSD-2-clause and Ruby) are reproduced in full as they are not in /usr/share/common-licenses, and COPYING and BSDL match them. - No binary or built artefacts in the tree: no .wasm, .jar, .gem, PDF or object files; lib/rbs/wasm/rbs_parser.wasm is a build product and is correctly absent (wasm/README.md). schema/*.json are hand-written JSON Schema files with no third-party terms.
- Standards-Version 4.7.4 against Policy 4.7.4.1 - current. ruby-prism 2.1.0 (>= 1.6.0), ruby-tsort 0.2.0 and the virtual ruby-logger (provided by libruby3.3) all exist, and ruby is 3.3, matching the gemspec's
required_ruby_version >= 3.3. - Patches are applied, carry DEP-3 headers and do what they say (no-git-in-gemspec replaces
git ls-fileswith a Dir.glob listing that excludes debian/ and .pc/; drop-clang-only-cflag removes -Wnullable-to-nonnull-conversion, which GCC rejects). debian/rules relies on gem2deb's ruby buildsystem and dh_ruby. - gem2deb is not installed on the reviewing system, so dh_ruby's handling of
DH_RUBY = --gem-installcould not be inspected; nothing in the package suggests it is wrong. - uscan found the packaged version as the newest upstream release (upstream
4.2.0, packaged4.2.0).
Not confirmed ◂
- libruby3.3 Provides: ruby-rbs (= 3.4.0), i.e. rbs 3.4.0 is already installed as a bundled gem with this interpreter. I could not check its file list here, so I do not know whether it ships /usr/bin/rbs. If it does, installing the new binary package would overwrite that file and need
Breaks/Replaces: libruby3.3 (<< ...); an install of this package on a system with libruby3.3 would show it.
Proposed changes ◂
None.
Uploader's response to the LLM review
The two blockers treat CRuby rdoc, copied into the signature files, as the copyright and licence of those files. It is not.
stdlib/pty/0/pty.rbs, stdlib/timeout/0/timeout.rbs, stdlib/uri/0/common.rbs, stdlib/uri/0/generic.rbs, and stdlib/ripper/0/ripper.rbs each start from an rdoc import (<!-- rdoc-file=ext/pty/pty.c --> and the corresponding Ruby sources). The Copyright and License sections in those comments are the documentation of the CRuby files being described. The signature files are part of RBS and are under the BSD-2-clause or Ruby licence in BSDL and COPYING (Soutaro Matsumoto, 2019-2026). Akinori Ito's 1998 notice is not the licence of pty.rbs.
libruby3.3 ships the original ext/pty/pty.c and documents the interpreter as Files: * / Yukihiro Matsumoto and others / BSD-2-clause or Ruby, without a separate pty, timeout, uri, or ripper stanza. The same treatment is right here. The quoted notices are free either way.
The two minor notes are accurate and not grounds to reject. The orig tarball is the RubyGems release, whose gemspec omits templates/ and the upstream test suite. The generated C is the form upstream distributes. debian/ruby-tests.rb is the load check used because that suite is not in the tarball.
libruby3.3 does not ship /usr/bin/rbs. This package does. The gems install in different directories (rbs-3.4.0 and rbs-4.2.0), so there is no file conflict.
— Simon Quigley (tsimonq2), 16 days ago
Review Information
accepted — allocated to awm 14 days ago, started 14 days ago, completed 14 days ago.
Final Comment
Other Reviews of this Package
| Version | Hash | Allocated | Completed | Reviewer | Status | Details |
|---|---|---|---|---|---|---|
| 3.10.3-1 | 83532639… | 2026-02-22 20:17 | 2026-02-22 20:17 | awm | rejected | VIEW |
Public Notes
Missed Author Check
Command: dfsg-author-check -markdown
Exit code: 1
Author check: ruby-rbs-4.2.0
Scanned 566 files. Authors declared in debian/copyright: 3.
Not named in debian/copyright (3):
- Akinori Ito
stdlib/pty/0/pty.rbs:46
- Information-technology Promotion Agency, Japan
stdlib/timeout/0/timeout.rbs:21stdlib/timeout/0/timeout.rbs:22
- Network Applied Communication Laboratory, Inc
stdlib/timeout/0/timeout.rbs:18stdlib/timeout/0/timeout.rbs:19
Result: 3 holders not named in debian/copyright
To name them, add to the end of debian/copyright:
Files: stdlib/pty/0/pty.rbs
stdlib/timeout/0/timeout.rbs
Copyright: 1998 Akinori Ito
2000 Information-technology Promotion Agency, Japan
2000 Network Applied Communication Laboratory, Inc
License: BSD-2-clause or Ruby
Each paragraph names every holder found in its files, with the years their copyright lines give, and has the License of the paragraph that covers them now, which it takes the place of for them. Check the License, and whether the files' holders are all there: one a file names only in prose, or in a form the check passes over, is not.