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


Commits:
daf53536 by Juan Manuel Méndez Rey at 2026-10-29T08:27:12+01:00
Automatic-Module-Name in the jars; README.source: the bootstrap uploads as they 
happen

- - - - -


3 changed files:

- debian/README.source
- debian/build-driver.sh
- debian/changelog


Changes:

=====================================
debian/README.source
=====================================
@@ -68,10 +68,11 @@ java.util.Comparator gained default max/min methods. 
2.13.18 itself handles
 them (https://github.com/scala/bug/issues/13127), so normal builds use
 default-jdk.
 
-This is a NEW package, and NEW throws away the binaries of an accepted
-upload (https://wiki.debian.org/ThrowAwayNewBinaries), so the bootstrap
-takes three uploads: -1 stage0 source+binary to experimental, -2
-source+binary to unstable, -3 source-only. From then on the archive
+NEW throws away the binaries of an upload to unstable
+(https://wiki.debian.org/ThrowAwayNewBinaries), and the buildds cannot
+build -1 without scala-2.13 in the archive. So the bootstrap takes three
+uploads: -1 through NEW, -2 source+binary to unstable built with the stage0
+profile, -3 source-only. From then on the archive
 self-hosts and the seed is no longer used; the stage0 profile stays only to
 bootstrap new architectures. A normal-profile build against the stage0
 output produces byte-identical .debs.


=====================================
debian/build-driver.sh
=====================================
@@ -50,11 +50,13 @@ props "$C/compiler.properties"
 props "$SP/scalap.properties"
 
 J="$OUT/jars"
-( cd "$L" && jar cf "$J/scala-library.jar" . )
-( cd "$R" && jar cf "$J/scala-reflect.jar" . )
+# Automatic-Module-Name as upstream sets it (project/AutomaticModuleName.scala)
+amn() { printf 'Automatic-Module-Name: %s\n' "$1" > "$OUT/$1.mf"; echo 
"$OUT/$1.mf"; }
+( cd "$L" && jar cfm "$J/scala-library.jar" "$(amn scala.library)" . )
+( cd "$R" && jar cfm "$J/scala-reflect.jar" "$(amn scala.reflect)" . )
 mkdir -p "$OUT/compiler-all"
 for d in "$C" "$I" "$RE" "$RF" "$SD"; do cp -a "$d/." "$OUT/compiler-all/"; 
done
-( cd "$OUT/compiler-all" && jar cf "$J/scala-compiler.jar" . )
+( cd "$OUT/compiler-all" && jar cfm "$J/scala-compiler.jar" "$(amn 
scala.tools.nsc)" . )
 ( cd "$SP" && jar cf "$J/scalap.jar" . )
 
 echo "DONE v$VERSION : lib=$(find "$L" -name '*.class'|wc -l) reflect=$(find 
"$R" -name '*.class'|wc -l) compiler=$(find "$C" -name '*.class'|wc -l) 
interactive=$(find "$I" -name '*.class'|wc -l) repl=$(find "$RE" -name 
'*.class'|wc -l) repl-frontend=$(find "$RF" -name '*.class'|wc -l) 
scaladoc=$(find "$SD" -name '*.class'|wc -l) scalap=$(find "$SP" -name 
'*.class'|wc -l)"


=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+scala-2.13 (2.13.18+ds2-2) UNRELEASED; urgency=medium
+
+  * Set Automatic-Module-Name in the library, reflect and compiler jars,
+    as upstream does.
+  * README.source: -1 went through NEW to unstable; -2 brings the stage0
+    binaries.
+
+ -- Juan Manuel Méndez Rey <[email protected]>  Thu, 29 Oct 2026 08:27:01 
+0100
+
 scala-2.13 (2.13.18+ds2-1) unstable; urgency=medium
 
   * Initial release. (Closes: #1149766)



View it on GitLab: 
https://salsa.debian.org/java-team/scala-2.13/-/commit/daf5353652c32ad6a8beca9a06ffc637b1e54fc0

-- 
View it on GitLab: 
https://salsa.debian.org/java-team/scala-2.13/-/commit/daf5353652c32ad6a8beca9a06ffc637b1e54fc0
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


_______________________________________________
pkg-java-commits mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to