DFSG NEW Queue

DFSG, Licensing & New Packages Team

scala3 3.9.0+ds2-1

Package Information

Descriptioncompiler and interactive shell for the Scala 3 language

Scala is a programming language that scales with you: from small scripts to large multiplatform applications. Scala 3 adds enums, given instances and using clauses, extension methods, opaque type aliases, union and intersection types, and a new metaprogramming system based on inline and quotes.

This package provides the Scala 3 compiler (scalac-3) with its staging and TASTy inspector libraries, the interactive shell (REPL, started by scala-3 with no program to run), a minimal program runner (scala-3) and the compiler bridge used by sbt and other build tools (scala3-sbt-bridge). The scaladoc tool is in scala3-scaladoc; its command, scaladoc-3, is in this package and names scala3-scaladoc when that is not installed. It can be installed together with the Scala 2.12 (scala) and Scala 2.13 (scala-2.13) packages; /usr/bin/scalac and /usr/bin/scala are managed by update-alternatives.

It is built from source with no sbt, by a two-pass self-hosting build.

MaintainerDebian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed ByJuan Manuel Méndez Rey <juan.mendezr@proton.me>
Sponsortsimonq2@debian.org
Distributionexperimental
Architectureall
VCSgit: https://salsa.debian.org/java-team/scala3.git (browse)
Closes#1125161
Trackerhttps://tracker.debian.org/pkg/scala3
Uploaded1 day ago

New Package Report

.changes◂
DateWed, 28 Oct 2026 16:09:30 +0100
Sourcescala3
Version3.9.0+ds2-1
Changed-ByJuan Manuel Méndez Rey <juan.mendezr@proton.me>
Architecturesource all
Distributionexperimental
Changelog◂
scala3 (3.9.0+ds2-1) experimental; urgency=medium
 .
   * Initial release. (Closes: #1125161)
   * Packages: scala3 (compiler, REPL, sbt bridge), scala3-library and
     scala3-scaladoc (scaladoc, command scaladoc-3).
   * scaladoc's Scala.js front end (search, contributors) is built from
     source with Debian's scala-js; the scala-js-dom facades are a
     component without their CC-BY-SA documentation comments.
   * Left out of scaladoc for now: Inkuire type-signature search, the
     Scastie run button and the dotty-icons font; generated pages load
     nothing from other sites.
   * The scaladoc command and its manual page are in scala3, so every
     slave of the scala alternative always has its target (no update-
     alternatives warnings, no file trigger); without scala3-scaladoc,
     which scala3 suggests, the command names that package.
   * scaladoc's type hierarchy graph: its scripts (d3, graphlib-dot,
     dagre-d3) come from node-d3, node-graphlib-dot and node-dagre-d3-
     renderer, copied into the generated site instead of loaded from
     CDNs; ux.js reads the zoom event the d3 5 way too.
   * Repack (+ds2): without the spec's binary fonts and MDN's deprecated
     banner.
   * sbt bridge built against sbt compiler-interface 2.x (patch 0007).
.dsc◂
Componentmain
Package-Listscala3 deb devel optional arch=all
scala3-library deb devel optional arch=all
scala3-scaladoc deb devel optional arch=all
Sectiondevel
Priorityoptional
debian/copyright◂
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: scala3
Upstream-Contact: https://github.com/scala/scala3/issues
Source: https://github.com/scala/scala3
 The three components come from https://github.com/scala-js/scala-js (tag
 v1.22.0, ir/), https://github.com/scala/scala (tag v2.13.18,
 src/library) and https://github.com/scala-js/scala-js-dom (tag v2.8.1,
 dom/); see debian/README.source.
Comment:
 The upstream tarball is repacked (+ds) to remove files that are not in the
 preferred form for modification or are not DFSG free; see Files-Excluded.
 .
 Of the Files-Excluded entries, the test jars, class and TASTy files have
 no preferred-form source in the tree (canon/lib/a.jar is a symbolic link
 to the excluded canon/actual/a.jar); highlight.pack.js and
 bootstrap.min.css are minified copies with no source; dotty-icons.* is a
 generated icon font whose sources are not in the tree; the PDF files are
 rendered copies of figures and a paper whose sources are not in the tree;
 the Luxi fonts (Bigelow & Holmes) are under a licence that is not DFSG
 free; the Heuristica and octicons .woff, .eot and .ttf fonts are binary
 fonts without source (octicons.svg, the SVG font, stays); repl/src/sourcecode/LICENSE is a saved GitHub web page (HTML,
 scripts and GitHub's own notices) rather than a licence file, the
 licence of those sources is stated below. None of them is used by the
 build: the language specification and the documentation site are not
 built, the REPL is built from its sources only, and scaladoc is built
 with highlight.js from libjs-highlight.js in place of highlight.pack.js
 and without the icon font (debian/patches/0005).
 .
 The components scalajs-ir, scala213-library and scalajs-dom are cut
 from their upstream git tags by uscan with Files-Excluded-<component> and
 Files-Included-<component>. The scalajs-dom tarball is then rewritten by
 debian/repack-scalajs-dom without the Scaladoc comments of its sources
 (MDN documentation under CC-BY-SA 2.5 or later; see below).
 .
 The scaladoc jar in scala3-scaladoc also carries, as
 dotty_res/scripts/d3.min.js, graphlib-dot.min.js and dagre-d3.min.js,
 copies made at build time of the browser bundles of node-d3
 (BSD-3-clause, Mike Bostock), node-graphlib-dot (Expat, Chris Pettitt;
 with graphlib and lodash, Expat) and node-dagre-d3-renderer (Expat; with
 dagre, graphlib, lodash and parts of d3), recorded in the package's
 Static-Built-Using. They are not in this source package; their
 copyright files are in those packages.
Files-Excluded:
 compiler/test-resources/jars/*.jar
 sbt-test/source-dependencies/canon/actual/a.jar
 sbt-test/source-dependencies/canon/lib/a.jar
 tests/neg-custom-args/i20491/cp/testpkg/A.class
 tests/neg-custom-args/i20491/cp/testpkg/A.tasty
 docs/_spec/public/fonts/LuxiMono-*.woff
 docs/_spec/public/fonts/LuxiSans-*.woff
 docs/_spec/public/fonts/Heuristica-*.woff
 docs/_spec/public/octicons/octicons.eot
 docs/_spec/public/octicons/octicons.ttf
 docs/_spec/public/octicons/octicons.woff
 docs/_spec/public/scripts/highlight.pack.js
 docs/_spec/public/images/classhierarchy.pdf
 docs/_assets/images/explicit-nulls/*.pdf
 docs/_assets/resources/safer-exceptions.pdf
 scaladoc/resources/dotty_res/hljs/highlight.pack.js
 scaladoc/resources/dotty_res/fonts/dotty-icons.*
 scaladoc-testcases/docs/_assets/css/bootstrap.min.css
 repl/src/sourcecode/LICENSE
Files-Excluded-scalajs-ir: *
Files-Included-scalajs-ir:
 ir
 LICENSE
 NOTICE
Files-Excluded-scala213-library: *
Files-Included-scala213-library:
 src/library
 LICENSE
 NOTICE
Files-Excluded-scalajs-dom: *
Files-Included-scalajs-dom:
 dom
 LICENSE
 README.md

Files: *
Copyright: 2012-2026 EPFL
           2012-2026 Lightbend, Inc. dba Akka
           EPFL and Lightbend, Inc. dba Akka
           EPFL and Lightbend, Inc.
           2002-2026 LAMP/EPFL
           2002-2022 LAMP/EPFL and Lightbend, Inc.
           2012-2014 Typesafe Inc. <http://www.typesafe.com>
           2014 Contributor.
License: Apache-2.0
Comment:
 The holder spellings above are the ones used in the source headers; most
 files carry no header and fall under the project licence (LICENSE,
 NOTICE.md). A few files say "Copyright (c) 2014 Contributor." with no
 licence of their own; they were contributed to Scala under its
 Apache-2.0 licence and contributor agreement. The same holds for the
 social icons in scaladoc/resources/dotty_res/images (GitHub, Discord,
 Twitter, Gitter), contributed in
 https://github.com/scala/scala3/pull/11273 and
 https://github.com/scala/scala3/pull/15697 under the CLA
 (https://cla.scala-lang.org/scala/scala3), which states each
 contribution is the contributor's original creation. The brands are
 trademarks of their owners.
 .
 NOTICE.md lists the parts derived from other projects under Apache-2.0:
 the Scala 2 compiler (scala/scala, same holders), the sbt compiler phases
 (see sbt-bridge/* below), the coverage instrumentation (scoverage), the
 presentation compiler (presentation-compiler/, adapted from the mtags
 module of scalameta/metals) and the SemanticDB serialisation (ScalaPB,
 see below). scoverage and Metals state no holder of their own; their
 authors contributed the adapted code to Scala 3.

Files: compiler/src/dotty/tools/dotc/semanticdb/internal/*
Copyright: EPFL and Lightbend, Inc. dba Akka
           2014 Google Inc.
License: Apache-2.0 and BSD-3-clause
Comment:
 NOTICE.md says these files are derived from the ScalaPB protobuf runtime
 (https://github.com/scalapb/protobuf-scala-runtime, Apache-2.0), whose
 input and output streams and wire format are themselves a port of
 Google's Protocol Buffers Java runtime, under the BSD licence that
 project ships as GOOGLE-PROTOBUF-LICENSE ("Copyright 2014, Google Inc.").

Files: compiler/src/dotty/tools/dotc/semanticdb/Scala3.scala
Copyright: EPFL and Lightbend, Inc. dba Akka
           2017 EPFL
License: Apache-2.0 and BSD-3-clause
Comment:
 The IdentifierOrdering comparison is "taken from" scalameta's metap
 (https://github.com/scalameta/scalameta, BSD-3-clause, holder EPFL).

Files: compiler/src/dotty/tools/dotc/sbt/ShowAPI.scala
       sbt-bridge/*
Copyright: Lightbend, Inc. and Mark Harrah
           2008-2010 Mark Harrah
           EPFL and Lightbend, Inc. dba Akka
License: Apache-2.0
Comment:
 Code from sbt's compiler interface. The headers that say only "sbt --
 Simple Build Tool, Copyright 2008, 2009 Mark Harrah" (or 2010) come from
 sbt 0.13, then under a BSD licence; that code was relicensed to
 Apache-2.0 with sbt 1.0 and zinc, whose copies carry "Copyright
 Lightbend, Inc. and Mark Harrah, Licensed under Apache License 2.0".
 ShowAPI.scala and the sbt-bridge sources are built into this package
 (scala3-compiler and scala3-sbt-bridge).

Files: library/src/scala/math/BigInt.scala
Copyright: EPFL and Lightbend, Inc. dba Akka
           2011 The Guava Authors
License: Apache-2.0
Comment:
 The private longGcd method is adapted from Google Guava's LongMath.java,
 whose notice the file quotes.

Files: compiler/src/dotty/tools/dotc/interactive/Completion.scala
Copyright: 2012-2026 EPFL
           2012-2026 Lightbend, Inc. dba Akka
           2014 Li Haoyi
License: Apache-2.0 and Expat
Comment: needsBacktick is adapted from Ammonite (via Metals KeywordWrapper).

Files: scaladoc/src/dotty/tools/scaladoc/parsers/WikiCodeBlockParser.scala
Copyright: 2012-2026 EPFL
           2012-2026 Lightbend, Inc. dba Akka
           2015-2016 Atlassian Pty Ltd
           2016-2018 Vladimir Schneider
License: Apache-2.0 and BSD-2-clause
Comment: Adapted from flexmark-java's FencedCodeBlockParser.java.

Files: scaladoc/src/dotty/tools/scaladoc/util/JSON.scala
Copyright: 2012-2026 EPFL
           2012-2026 Lightbend, Inc. dba Akka
           2009-2011 Mathias Doenitz
License: Apache-2.0
Comment: jsonString is adapted from spray-json's JsonPrinter.scala.

Files: scalajs-ir/*
Copyright: 2013-2018 EPFL
           EPFL.
License: Apache-2.0
Comment:
 Scala.js IR (component scalajs-ir). Its NOTICE also mentions a JUnit and a
 Hamcrest translation, which live elsewhere in Scala.js and are not part of
 this component.

Files: scala213-library/*
Copyright: 2002-2025 EPFL
           2011-2025 Lightbend, Inc. dba Akka
           EPFL and Lightbend, Inc. dba Akka
           2002-2025 LAMP/EPFL and Lightbend, Inc. dba Akka
License: Apache-2.0
Comment:
 Scala 2.13 standard library sources (component scala213-library). The
 CompletionLatch class in src/library/scala/concurrent/impl/Promise.scala
 says it is inspired by Doug Lea's public domain AbstractQueuedSynchronizer;
 the file itself is under the Scala header.

Files: scala213-library/src/library/scala/math/BigInt.scala
Copyright: EPFL and Lightbend, Inc. dba Akka
           2011 The Guava Authors
License: Apache-2.0
Comment: As library/src/scala/math/BigInt.scala above.

Files: scalajs-dom/*
Copyright: 2013 Li Haoyi
           2014 Matt Seddon
License: Expat
Comment:
 scala-js-dom 2.8.1 (component scalajs-dom), the DOM facades the scaladoc
 front end is compiled against. Its LICENSE states that the code is under
 the MIT License and that the documentation of the facades, taken from
 the Mozilla Developer Network, is under the Creative Commons
 Attribution-ShareAlike licence, version 2.5 or later. That documentation
 is the Scaladoc comments of the sources, and they are not in this
 component: debian/repack-scalajs-dom removes every /** ... */ comment
 when the component tarball is made (see debian/README.source), and the
 MDN "deprecated" banner sentence quoted in two @deprecated messages, so
 only the MIT-licensed code remains. The LICENSE file is kept unchanged as
 upstream's licence statement. The WebGL facades say "Copyright (C) 2014
 Matt Seddon. This source is donated in full to the scala-js-dom
 project."
 .
 The two JavaScript files of scaladoc's front end in the scaladoc jar
 (dotty_res/scripts/scaladoc-scalajs.js and contributors.js) are generated
 at build time by the Scala.js linker from scaladoc-js, the standard
 library, this component and the Scala.js libraries of the scala-js-library
 package (Apache-2.0, EPFL).

Files: repl/src/fansi/*
Copyright: 2016 Li Haoyi (haoyi.sg@gmail.com)
License: Expat
Comment: Vendored copy of the fansi library, built into scala3-repl.

Files: repl/src/pprint/*
Copyright: 2019 Li Haoyi
License: Expat
Comment: Vendored copy of the pprint library, built into scala3-repl.

Files: repl/src/sourcecode/*
Copyright: 2014 Li Haoyi (haoyi.sg@gmail.com)
License: Expat
Comment:
 Vendored copy of the sourcecode library, built into scala3-repl. Upstream's
 LICENSE file here was a saved GitHub web page and is excluded; it showed
 the MIT licence of https://github.com/com-lihaoyi/sourcecode with this
 holder.

Files: docs/_spec/public/scripts/LICENSE-highlight
Copyright: 2006 Ivan Sagalaev
License: BSD-3-clause-highlight
Comment:
 License text for highlight.js. The minified highlight.pack.js itself is
 excluded from the +ds repack (no preferred-form source).

Files: scaladoc/resources/dotty_res/hljs/LICENSE
Copyright: 2006 Ivan Sagalaev.
License: BSD-3-clause
Comment:
 License text for highlight.js. The minified highlight.pack.js itself is
 excluded from the +ds repack (no preferred-form source). The scaladoc
 jar in scala3-scaladoc carries, as dotty_res/hljs/highlight.pack.js, a
 copy of highlight.min.js from libjs-highlight.js made at build time
 (same licence; recorded in the package's Static-Built-Using), and this
 LICENSE file next to it.

Files: docs/_spec/public/scripts/toc.js
       docs/_spec/public/scripts/LICENSE-toc
Copyright: 2013-2014 Greg Allen
License: Expat

Files: docs/_spec/public/octicons/*
Copyright: 2012-2014 GitHub
License: Expat
Comment:
 GitHub octicons; LICENSE.txt: fonts under SIL OFL 1.1, the rest MIT.

Files: docs/_spec/public/octicons/octicons.svg
Copyright: 2012-2014 GitHub
License: OFL-1.1

Files: debian/*
Copyright: 2026 Juan Manuel Méndez Rey <juan.mendezr@proton.me>
License: Apache-2.0

Files: debian/PatchStdlib.java
Copyright: EPFL and Lightbend, Inc. dba Akka
           2026 Juan Manuel Méndez Rey <juan.mendezr@proton.me>
License: Apache-2.0
Comment:
 Java port of upstream's project/ScalaLibraryPlugin.scala and
 project/StripScala2Annotations.scala.

License: Apache-2.0
 Licensed under the Apache License, Version 2.0 (the "License"); you may
 not use this file except in compliance with the License. You may obtain
 a copy of the License at
 .
     http://www.apache.org/licenses/LICENSE-2.0
 .
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 .
 On Debian systems, the complete text of the Apache License Version 2.0
 can be found in "/usr/share/common-licenses/Apache-2.0".

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.

License: BSD-3-clause
 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.
 .
 3. Neither the name of the copyright holders nor the names of its
    contributors may be used to endorse or promote products derived from
    this software without specific prior written permission.
 .
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT OWNER 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: BSD-2-clause
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:
 .
 * Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.
 .
 * 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 COPYRIGHT HOLDERS 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 COPYRIGHT HOLDER 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: BSD-3-clause-highlight
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:
 .
     * Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.
     * 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.
     * Neither the name of highlight.js nor the names of its contributors
       may be used to endorse or promote products derived from this software
       without specific prior written permission.
 .
 THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS AND 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: OFL-1.1
 This Font Software is licensed under the SIL Open Font License, Version 1.1.
 This license is available with a FAQ at: https://openfontlicense.org
 .
 The OFL allows the licensed fonts to be used, studied, modified and
 redistributed freely as long as they are not sold by themselves. The fonts,
 including any derivative works, can be bundled, embedded, redistributed
 and/or sold with any software provided that any reserved names are not used
 by derivative works. The fonts and derivatives, however, cannot be released
 under any other type of license. The requirement for fonts to remain under
 this license does not apply to any document created using the fonts or
 their derivatives.
 .
 On Debian systems, the complete text of the SIL Open Font License version
 1.1 can be found in "/usr/share/common-licenses/OFL-1.1".

DFSG Assistant LLM REVIEW 0 blocker, 1 important, 1 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 1 day ago.

Report◂

DFSG NEW review for scala3 version 3.9.0+ds2-1

Summary

  • Licensing is DFSG-compliant and debian/copyright is accurate: No
  • Packaging is of good quality: Yes
  • Issues: 0 blocker, 1 important, 1 minor
  • debian/watch: version 5
  • debian/copyright: machine-readable
  • Scan before the review: 2 found

Licensing

The licences of the tree are all free and mutually compatible: Apache-2.0 for the Scala 3 tree and for the scala213-library and scalajs-ir components, MIT/Expat for scalajs-dom and the vendored fansi, pprint and sourcecode, BSD-3-clause for highlight.js and for the ScalaPB/Google-derived SemanticDB code, OFL-1.1 for the octicons SVG font. debian/copyright is DEP-5 with the correct Format line, the Files stanzas match the header notices and every NOTICE file, the holder spellings found in the tree are all declared, and the full texts of the non-common licences are included. One gap stops the answer being yes: the 18 files under compiler/src/dotty/tools/dotc/semanticdb/generated/ are generated protobuf code whose schema and generator are not in the package, and debian/copyright does not describe them at all.

Packaging

The packaging is of high quality: debhelper-compat 14 with a plain dh $@ and small, commented overrides; all binary packages are arch: all and split sensibly (compiler/REPL/bridge, library, scaladoc); dependencies and the Maven POMs are consistent with the archive's packages; the seven patches carry DEP-3 headers and correct Forwarded fields; six autopkgtests exercise the installed commands; the alternatives, man pages, NOTICE installation and Static-Built-Using are handled, and the two-pass self-hosting bootstrap is documented in README.source. The only shortcomings are the missing scala-js-library entry in Static-Built-Using and the fact that the build needs companion packages that are not in the archive yet (unconfirmed).

Issues

important licensing 1. compiler/src/dotty/tools/dotc/semanticdb/generated/*.scala are generated protobuf sources whose schema and generator are not in the package and are not described in debian/copyright ◂
  • Files: compiler/src/dotty/tools/dotc/semanticdb/generated/Access.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/Annotation.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/Constant.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/Diagnostic.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/Documentation.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/Language.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/Location.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/Range.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/Schema.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/Scope.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/Signature.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/SymbolInformation.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/SymbolOccurrence.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/Synthetic.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/TextDocument.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/TextDocuments.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/Tree.scala, compiler/src/dotty/tools/dotc/semanticdb/generated/Type.scala, debian/copyright
  • Basis: checked, in the package or with a reference tool
  • Evidence: Every file starts with // Generated by https://github.com/tanishiking/semanticdb-for-scala3 / // Generated by the Scala Plugin for the Protocol Buffer Compiler. / // Do not edit! (about 350 KB in total). A glob of the whole source for *.proto finds nothing, and no generation script or schema is shipped. debian/copyright has a stanza for compiler/src/dotty/tools/dotc/semanticdb/internal/* (the hand-written ScalaPB runtime port) but no stanza or comment for .../semanticdb/generated/*.
  • Problem: DFSG point 2, which Policy 2.2.1 requires every main package to meet, asks for the source in the preferred form for modification; for these classes that form is the SemanticDB .proto schema and the semanticdb-for-scala3 generator, neither of which is in the package (the schema lives in the separate scalameta project). The files are built into scala3-compiler, so the package as uploaded cannot be regenerated from its own source, and debian/copyright, which documents every other derived component, does not record their origin or licence holder.
  • Fix: Ship the SemanticDB schema and the generator (for example as a Files-Included component tarball, with the generator pinned to a commit), or add them under the Debian repack, and add a Files: compiler/src/dotty/tools/dotc/semanticdb/generated/* stanza with the schema's Copyright and License: Apache-2.0, with a note in the Copyright comment and in debian/README.source saying how the files are produced. If upstream considers the generated Scala the preferred form, state that and its provenance there instead.
minor packaging 2. Static-Built-Using for scala3-scaladoc omits the Scala.js library whose code scalajs-link bundles into scaladoc-scalajs.js ◂
  • Files: debian/rules:52, debian/rules:55, debian/rules:187-190, debian/build-scaladoc-js.sh:100-106
  • Basis: checked, in the package or with a reference tool
  • Evidence: debian/rules:188 builds the field from for p in libjs-highlight.js $(GRAPHPKGS) with GRAPHPKGS = node-d3 node-graphlib-dot node-dagre-d3-renderer, while debian/build-scaladoc-js.sh links with scalajs-link ... ${SJSLIB//:/ } and with the IR extracted from scalajs-scalalib.jar; debian/rules:55 defines SJSLIB = $(J)/scalajs-library.jar:$(J)/scalajs-javalib.jar and SJS_SCALALIB213 = $(J)/scalajs-scalalib.jar, all from scala-js-library, and debian/copyright's scalajs-dom comment says the front end is linked ... with the Scala.js libraries of the scala-js-library package.
  • Problem: Static-Built-Using (deb-control(5)) is meant to name every source package whose code is statically embedded in the binary. The Scala.js library and the Scala 2.13 IR are linked into the shipped scaladoc-scalajs.js exactly as highlight.js and the three graph bundles are, and the package already records those, so the field is incomplete for the one large embedding it does not name.
  • Fix: Add the source package that ships scalajs-library.jar, scalajs-javalib.jar and scalajs-scalalib.jar (scala-js-library, or whichever source package builds those binaries) to the dpkg-query loop that generates ${scaladoc:Static-Built-Using}.
Verified ◂
  • Read all of debian/ in full: control, rules, changelog, copyright, README.source, gbp.conf, source/format, maven.rules, lrc.config, all seven patches and the series, the eleven POM templates and the three .poms files, the maintainer scripts, the three man pages and their sources, the shell wrappers, PatchStdlib.java, make-stage0-deb, repack-scalajs-dom, build-driver.sh, build-scala2-library.sh, build-scaladoc-js.sh, the six tests and their control file, the .docs files and the lintian override.
  • tests/run/StringConcat.check (1.1 KB) and tests/run/typelevel-defaultValue.check (48 B), the two files the scan called binary, are plain-text expected-output fixtures for tests/run/StringConcat.scala and tests/run/typelevel-defaultValue.scala (read with :raw: expected output such as Some(0) and String some string). They are test data, not built artifacts, and the scan's binary test trips on the extension/content rather than on a compiled format.
  • The six 'possibly missing' holders the scan listed are all LAMP/EPFL spellings already declared in Files: * (2002-2026 LAMP/EPFL): the Scala 2 banner (bench/tests/Vector.scala, compiler/.../classfile/ByteCodecs.scala, compiler/.../parsing/xml/MarkupParserCommon.scala and 11 more), the Copyright 2005-2013 LAMP/EPFL headers (core/Scopes.scala, unpickleScala2/Scala2Flags.scala, transform/ExtensionMethods.scala, io/*.scala and others), a footer string built by project/scripts/cmdScaladocTests:35 and project/ScaladocConfigs0.scala:35, and the reporter line in tests/pos/t1035.scala:2.
  • A grep of all 27026 files for copyright and licence wording found only 79 year-bearing copyright header lines; each names a holder declared in debian/copyright (EPFL, Lightbend, LAMP/EPFL, Typesafe, Mark Harrah, Contributor, Matt Seddon, Li Haoyi) and each third-party notice (Ivan Sagalaev, Greg Allen, Mathias Doenitz, Atlassian, Vladimir Schneider, Guava, Google) has its own stanza.
  • All Files-Excluded entries are absent from the tree: no .jar, .class, .tasty, .pdf, .woff, .ttf or .eot anywhere, no highlight.pack.js or bootstrap.min.css, and repl/src/sourcecode/LICENSE gone; scaladoc/resources/dotty_res/fonts/ and docs/_spec/public/fonts/ remain only as empty directories.
  • Vendored repl libraries match their stanzas: repl/src/fansi (MIT, 2016 Li Haoyi), repl/src/pprint (MIT, 2019 Li Haoyi), repl/src/sourcecode (MIT, 2014 Li Haoyi; its upstream LICENSE was the excluded GitHub page). scala213-library (Apache-2.0, EPFL/Lightbend) and scalajs-ir (Apache-2.0, EPFL) match their LICENSE/NOTICE; scalajs-ir/NOTICE's JUnit/Hamcrest sentences refer to files not in the ir/ component.
  • scalajs-dom is MIT code only: the component tarball has every /** ... */ comment blanked (checked IDBEnvironment.scala and idb.scala, which retain only the factual Removed. See https://developer.mozilla.org/... @deprecated text), so no MDN CC-BY-SA prose remains; its LICENSE file is kept and its holder Li Haoyi is declared.
  • The files whose only header is Copyright (c) 2014 Contributor. All rights reserved. (compiler/src/dotty/tools/dotc/classpath/*.scala) have no licence grant of their own; the Files: * comment names that holder and explains the Apache-2.0/CLA provenance, and the same explanation covers the social icons.
  • highlight.js: docs/_spec/public/scripts/LICENSE-highlight (with its 'neither the name of highlight.js' clause) has the BSD-3-clause-highlight paragraph, scaladoc/resources/dotty_res/hljs/LICENSE the BSD-3-clause paragraph; octicons.svg is the OFL-1.1 font with its notice in the file, and OFL-1.1, Apache-2.0 and the other cited texts are present in /usr/share/common-licenses. dist/LICENSE.rtf is a copy of the Apache-2.0 text.
  • Packaging mechanics: compat 14 with dh $@, no override of dh_missing, no network in debian/rules (only the by-hand make-stage0-deb and repack-scalajod-dom download/fetch, and neither runs at build time); Standards-Version 4.7.4 against Policy 4.7.4.1 (same first two components, not an issue); the POMs are cleaned by mh_install, which runs mh_cleanpom with debian/maven.rules and the default debian dependency version, so the org.scala-lang and org.jline rules and the Debian versions resolve; Static-Built-Using is a documented dpkg field (deb-control(5)).
  • Alternatives are correct: one master scala with scalac/scaladoc slaves, every slave target ships in scala3 (scaladoc included), the prerm removes on remove/deconfigure, and the six autopkgtests name the right packages, with scaladoc-missing deliberately depending only on scala3 so that scala3-scaladoc is absent.
  • Dependencies that exist in the archive satisfy their constraints: libjline4-java 4.0.14+ds2-1, libflexmark-java 0.64.8+ds-1, libjackson3-core/databind 3.2.4, libliqp-java 0.9.2.3+ds-1, scala-asm 9.9.0-scala-1, libsbt-util-interface-java 2.0.12, node-d3 5.16.0, node-graphlib-dot 0.6.4, node-dagre-d3-renderer 7.0.14, libjs-highlight.js 10.7.3, and java17-sdk-headless is a virtual package of openjdk-17/21-jdk-headless.
  • Coverage: all of debian/ and both tarball-level README/NOTICE files were read; licence evidence was grepped across the whole tree; images, fonts and the ICO/SVG assets were not opened, only recorded by path.
  • uscan found the packaged version as the newest upstream release (upstream 3.9.0, packaged 3.9.0+ds2).
  • Every pointer of debian/copyright to /usr/share/common-licenses names a file that is there (Apache-2.0, OFL-1.1).
Not confirmed ◂
  • The build dependencies scala-2.13, scala-js, scala-js-library, libsbt-compiler-interface-java and libjackson3-dataformat-yaml-java are in neither the reviewing system's unstable/experimental lists nor the NEW queue as of 2026-11-05T04:00:44Z, nor is scala3-stage0 (which README.source says is a maintainer-built local .deb that is never uploaded). If those companion uploads do not land first, the archive's build of this source, and the autopkgtests that use scalac-2.13/scaladoc, cannot run; the package's README.source documents the intended bootstrap.
  • Did not have network access, so could not check which .proto version or commit the semanticdb/generated classes were produced from, nor compare them with scalameta's schema.
  • Did not build the package or run debian/tests: the build-driver, PatchStdlib and the Scala.js linker steps were read, not exercised; this does not affect the findings above.
  • Binary media were not opened: the JPEG/PNG/GIF images in docs/_assets/images, docs/_spec/public/images and scaladoc/resources/dotty_res/images, the two favicon.ico files, and octicons.svg (an SVG font) were recorded by name and judged from their location and the documentation.
Proposed changes ◂

None.

Uploader's response to the LLM review

Thanks. I ask for considering uploading this one with the following rationale:

Both are fixed in salsa (commit 281b648a in
https://salsa.debian.org/java-team/scala3) and will go into 3.9.0+ds2-2, the
unstable upload that the bootstrap needs right after this one.

For the one tagged as Important: the 18 files are generated by ScalaPB from semanticdb.proto of
scalameta 4.13.9 (BSD-3-clause), with https://github.com/tanishiking/semanticdb-for-scala3 .

I checked that its output at commit 427889e matches the packaged files, apart from whitespace.

Upstream commits the generated code and regenerates it with that tool. The
schema is now shipped as debian/semanticdb.proto, d/copyright has a Files
stanza for the generated files and one for the schema, and README.source
says how they are produced.

Regarding the other: scala-js-library is added to Static-Built-Using of scala3-scaladoc.

— Juan Manuel Méndez Rey (mendezr), 1 day ago

Back to Dashboard | View all reviews for this package