[Git][java-team/scala3][debian/latest] Document the generated SemanticDB sources; add scala-js-library to Static-Built-Using

Juan Manuel Méndez Rey (@mendezr) gitlab at salsa.debian.org
Thu Nov 5 08:45:42 GMT 2026



Juan Manuel Méndez Rey pushed to branch debian/latest at Debian Java Maintainers / scala3


Commits:
281b648a by Juan Manuel Méndez Rey at 2026-11-05T06:46:55+01:00
Document the generated SemanticDB sources; add scala-js-library to Static-Built-Using

Both from the NEW review of 3.9.0+ds2-1.

- - - - -


5 changed files:

- debian/README.source
- debian/changelog
- debian/copyright
- debian/rules
- + debian/semanticdb.proto


Changes:

=====================================
debian/README.source
=====================================
@@ -78,8 +78,17 @@ and contributors.js from source: scala-library-sjs, the scalajs-dom
 component and scaladoc-js, compiled by the pass-2 compiler with -scalajs
 and linked by scalajs-link (src:scala-js) with fullLinkJS settings. The
 CSS bundles are made with the files in sorted order. d3, graphlib-dot,
-dagre-d3 and highlight.js are copied from their Debian packages and
-recorded in Static-Built-Using.
+dagre-d3 and highlight.js are copied from their Debian packages. They and
+scala-js-library are recorded in Static-Built-Using.
+
+SemanticDB sources
+------------------
+
+compiler/src/dotty/tools/dotc/semanticdb/generated/ is generated by ScalaPB
+from debian/semanticdb.proto (scalameta 4.13.9) with
+https://github.com/tanishiking/semanticdb-for-scala3 (sbt generate), which
+also removes the ScalaPB runtime dependency. Upstream commits the output.
+At commit 427889e of that tool the output matches the packaged files.
 
 Stage-0 bootstrap seed
 ----------------------


=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+scala3 (3.9.0+ds2-2) UNRELEASED; urgency=medium
+
+  * d/copyright: document the generated SemanticDB sources; ship their
+    schema as debian/semanticdb.proto.
+  * Static-Built-Using of scala3-scaladoc: add scala-js-library.
+
+ -- Juan Manuel Méndez Rey <juan.mendezr at proton.me>  Thu, 05 Nov 2026 06:46:55 +0100
+
 scala3 (3.9.0+ds2-1) experimental; urgency=medium
 
   * Initial release. (Closes: #1125161)


=====================================
debian/copyright
=====================================
@@ -119,6 +119,17 @@ Comment:
  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/generated/*
+Copyright: EPFL and Lightbend, Inc. dba Akka
+           2014-2018 EPFL
+           2016-2018 Twitter, Inc.
+License: Apache-2.0 and BSD-3-clause
+Comment:
+ Generated by ScalaPB from semanticdb.proto of scalameta 4.13.9
+ (BSD-3-clause), with https://github.com/tanishiking/semanticdb-for-scala3
+ at commit 427889e. The schema is debian/semanticdb.proto, see
+ debian/README.source.
+
 Files: compiler/src/dotty/tools/dotc/semanticdb/Scala3.scala
 Copyright: EPFL and Lightbend, Inc. dba Akka
            2017 EPFL
@@ -288,6 +299,13 @@ Comment:
  Java port of upstream's project/ScalaLibraryPlugin.scala and
  project/StripScala2Annotations.scala.
 
+Files: debian/semanticdb.proto
+Copyright: 2014-2018 EPFL
+           2016-2018 Twitter, Inc.
+License: BSD-3-clause
+Comment:
+ https://github.com/scalameta/scalameta/blob/v4.13.9/semanticdb/semanticdb/shared/src/main/proto/semanticdb.proto
+
 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


=====================================
debian/rules
=====================================
@@ -183,9 +183,9 @@ override_dh_auto_install:
 	gzip -9n $(D)$(SD)/man/man1/*.1
 
 execute_before_dh_gencontrol:
-	# highlight.js and the graph's scripts are copied into the scaladoc jar
-	# at build time (Static-Built-Using names their source packages).
-	echo "scaladoc:Static-Built-Using=$$(for p in libjs-highlight.js $(GRAPHPKGS); do \
+	# highlight.js, the graph's scripts and the Scala.js library are built
+	# into the scaladoc jar (Static-Built-Using names their source packages).
+	echo "scaladoc:Static-Built-Using=$$(for p in libjs-highlight.js scala-js-library $(GRAPHPKGS); do \
 	  dpkg-query -W -f '$${source:Package} (= $${source:Version}), ' $$p; done | sed 's/, $$//')" \
 	  >> debian/scala3-scaladoc.substvars
 


=====================================
debian/semanticdb.proto
=====================================
@@ -0,0 +1,238 @@
+syntax = "proto3";
+
+package scala.meta.internal.semanticdb;
+
+import "scalapb/scalapb.proto";
+
+option (scalapb.options) = {
+  preserve_unknown_fields: false
+};
+
+enum Schema {
+  LEGACY = 0;
+  SEMANTICDB3 = 3;
+  SEMANTICDB4 = 4;
+}
+
+message TextDocuments {
+  repeated TextDocument documents = 1;
+}
+
+message TextDocument {
+  reserved 4, 8, 9;
+  Schema schema = 1;
+  string uri = 2;
+  string text = 3;
+  string md5 = 11;
+  Language language = 10;
+  repeated SymbolInformation symbols = 5;
+  repeated SymbolOccurrence occurrences = 6;
+  repeated Diagnostic diagnostics = 7;
+  repeated Synthetic synthetics = 12;
+}
+
+enum Language {
+  UNKNOWN_LANGUAGE = 0;
+  SCALA = 1;
+  JAVA = 2;
+}
+
+message Range {
+  int32 start_line = 1;
+  int32 start_character = 2;
+  int32 end_line = 3;
+  int32 end_character = 4;
+}
+
+message Location {
+  string uri = 1;
+  Range range = 2;
+}
+
+message Scope {
+  repeated string symlinks = 1;
+  repeated SymbolInformation hardlinks = 2;
+}
+
+message Type {
+  reserved 1, 3, 4, 5, 6, 11, 12, 15, 16;
+  oneof sealed_value {
+    TypeRef type_ref = 2;
+    SingleType single_type = 20;
+    ThisType this_type = 21;
+    SuperType super_type = 22;
+    ConstantType constant_type = 23;
+    IntersectionType intersection_type = 17;
+    UnionType union_type = 18;
+    WithType with_type = 19;
+    StructuralType structural_type = 7;
+    AnnotatedType annotated_type = 8;
+    ExistentialType existential_type = 9;
+    UniversalType universal_type = 10;
+    ByNameType by_name_type = 13;
+    RepeatedType repeated_type = 14;
+    MatchType match_type = 25;
+    LambdaType lambda_type = 26;
+  }
+}
+
+message LambdaType {
+  Scope parameters = 1;
+  Type return_type = 2;
+}
+
+message TypeRef {
+  Type prefix = 1;
+  string symbol = 2;
+  repeated Type type_arguments = 3;
+}
+
+message SingleType {
+  Type prefix = 1;
+  string symbol = 2;
+}
+
+message ThisType {
+  string symbol = 1;
+}
+
+message SuperType {
+  Type prefix = 1;
+  string symbol = 2;
+}
+
+message ConstantType {
+  Constant constant = 1;
+}
+
+message IntersectionType {
+  repeated Type types = 1;
+}
+
+message UnionType {
+  repeated Type types = 1;
+}
+
+message WithType {
+  repeated Type types = 1;
+}
+
+message StructuralType {
+  reserved 1, 2, 3;
+  Type tpe = 4;
+  Scope declarations = 5;
+}
+
+message AnnotatedType {
+  reserved 2;
+  repeated Annotation annotations = 3;
+  Type tpe = 1;
+}
+
+message ExistentialType {
+  reserved 2;
+  Type tpe = 1;
+  Scope declarations = 3;
+}
+
+message UniversalType {
+  reserved 1;
+  Scope type_parameters = 3;
+  Type tpe = 2;
+}
+
+message ByNameType {
+  Type tpe = 1;
+}
+
+message RepeatedType {
+  Type tpe = 1;
+}
+
+message MatchType {
+  message CaseType {
+    Type key = 1;
+    Type body = 2;
+  }
+  Type scrutinee = 1;
+  repeated CaseType cases = 2;
+}
+
+message Constant {
+  oneof sealed_value {
+    UnitConstant unit_constant = 1;
+    BooleanConstant boolean_constant = 2;
+    ByteConstant byte_constant = 3;
+    ShortConstant short_constant = 4;
+    CharConstant char_constant = 5;
+    IntConstant int_constant = 6;
+    LongConstant long_constant = 7;
+    FloatConstant float_constant = 8;
+    DoubleConstant double_constant = 9;
+    StringConstant string_constant = 10;
+    NullConstant null_constant = 11;
+  }
+}
+
+message UnitConstant {
+}
+
+message BooleanConstant {
+  bool value = 1;
+}
+
+message ByteConstant {
+  int32 value = 1;
+}
+
+message ShortConstant {
+  int32 value = 1;
+}
+
+message CharConstant {
+  int32 value = 1;
+}
+
+message IntConstant {
+  int32 value = 1;
+}
+
+message LongConstant {
+  int64 value = 1;
+}
+
+message FloatConstant {
+  float value = 1;
+}
+
+message DoubleConstant {
+  double value = 1;
+}
+
+message StringConstant {
+  string value = 1;
+}
+
+message NullConstant {
+}
+
+message Signature {
+  oneof sealed_value {
+    ClassSignature class_signature = 1;
+    MethodSignature method_signature = 2;
+    TypeSignature type_signature = 3;
+    ValueSignature value_signature = 4;
+  }
+}
+
+message ClassSignature {
+  Scope type_parameters = 1;
+  repeated Type parents = 2;
+  Type self = 3;
+  Scope declarations = 4;
+}
+
+message MethodSignature {
+  Scope type_parameters = 1;
+  repeated Scope parameter_lists = 2;
+  Type return_type 
\ No newline at end of file



View it on GitLab: https://salsa.debian.org/java-team/scala3/-/commit/281b648a1dfcdccb72fcbb5ff74ee617a33238d5

-- 
View it on GitLab: https://salsa.debian.org/java-team/scala3/-/commit/281b648a1dfcdccb72fcbb5ff74ee617a33238d5
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20261105/b6919310/attachment.htm>


More information about the pkg-java-commits mailing list