Debian Patches
Status for plm/2.9.2+dfsg-2
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| chmod | The new upstream packages lose the exec bit, so we need to restore it. | no | ||||
| system-ant-tasks | Modify the ant file to use the system-wide elements instead of the embeeded ones. |
no | ||||
| no-github | The Java interface to the GitHub API is not packaged yet, so disable this set of features for now. |
no | ||||
| jython-fixes | - The detection of jruby fails on Debian (the searched class is not there), but the functionality is working, so disable that detection |
no | ||||
| git-tracking-disable-signing.patch | Do not sign PLM's internal progress-tracking git commits PLM uses an embedded jgit repository to track student progress (GitSpy / GitUtils). When the user's git configuration enables commit.gpgsign (common on developer machines), jgit tries to sign these internal commits and fails with "org.eclipse.jgit.api.errors.ServiceUnavailableException: Signing service is not available". The stack trace is printed to the student console on every run, for every language (Java, Scala, ...), which is confusing noise. . PLM's internal tracking commits must never be signed; call setSign(false) on each CommitCommand so they ignore the ambient commit.gpgsign configuration. diff --git a/src/plm/core/model/tracking/GitUtils.java b/src/plm/core/model/tracking/GitUtils.java index 755c8a6..730d879 100644 |
Juan Manuel Méndez Rey <juan.mendezr@proton.me> | no | 2026-06-13 | ||
| json-simple-3.patch | Migrate away from deprecated json-simple 1.x classes See json-simple 2.0.0 changelog: > * Deprecated JSONParse and JSONValue in favor of Jsoner. > * Deprecated JSONStreamAware and JSONAware in favor of Jsonable. > * Deprecated JSONObject in favor of JsonObject. > * Deprecated JSONArray in favor of JsonArray. . This patch uses the new json-simple Json* classes. It is compatible with both 2.x and 3.x json-simple releases, with a few ajustments regarding backward incompatible changes in json-simple 3.x: - The package name, changed to com.github.cliftonlabs.json_simple - The exception DeserializationExcetpion renamed as JsonException These two changes are handled using place-holders @JSON_SIMPLE_PACKAGE@ and @JSON_EXCETPION@ which are substituted at build time by debian/rules. . With these tricks the package is compatible with json-simple 2.x and 3.x. |
Gilles Filippini <pini@debian.org> | no | |||
| jgit_6.7.0.patch | replacing methods removed in jgit 6.7.0 The method getRef in Repository had been deprecated in previous versions, and is now removed. |
Pierre Gruet <pgt@debian.org> | no | 2024-05-03 | ||
| scala-2.12-port.patch | Port the embedded Scala compiler glue to Scala 2.12 PLM embeds scala.tools.nsc at runtime to compile student code. Scala 2.12 removed scala.tools.nsc.reporters.AbstractReporter; the replacement is FilteringReporter. Adapt PLMReporter accordingly: - extend FilteringReporter instead of AbstractReporter; - rename the message sink from display() to doReport() (the abstract method of FilteringReporter); - drop the overrides that no longer exist on the 2.12 reporter hierarchy (displayPrompt(), count(Object), resetCount(Object), info0(...)). Also bump the Scala version strings and the checkScala() detection in Game.java from "2.11" to "2.12". . This is the Debian-relevant subset of upstream PR #527 (the .classpath, build.xml, bundled lib/scala/*.jar binaries, .travis.yml and l10n/*.po changes in that PR are not used by the Debian package, which compiles against the system scala-compiler.jar/scala-library.jar/scala-reflect.jar). =================================================================== |
Emmanuel Bourg <ebourg@apache.org> | no | https://github.com/BuggleInc/PLM/pull/527 | 2026-06-13 | |
| scala-2.12-jar-paths.patch | Point the ant build at the Scala 2.12 system jars The Debian scala (>= 2.12) package installs the compiler jars under /usr/share/java (scala-compiler.jar, scala-library.jar, scala-reflect.jar), unversioned, and no longer provides the /usr/share/scala/lib/ layout used by the old scala-2.11 package. Update build.xml (both the project classpath and the scalac taskdef classpath) to reference the new unversioned locations so the scala.tools.ant.Scalac task and the compile step resolve under 2.12. . Scala 2.12 also no longer bundles the repackaged ASM (scala.tools.asm) inside scala-compiler.jar; it ships separately as scala-asm. Add the version-agnostic Maven alias jar (/usr/share/maven-repo/org/scala-lang/modules/scala-asm/debian/scala-asm-debian.jar) to both classpaths so the backend (scala.tools.asm.ClassVisitor) is found at compile time. =================================================================== |
Juan Manuel Méndez Rey <juan.mendezr@proton.me> | not-needed | 2026-06-13 | ||
| java-mode-jdk-thread-interrupt.patch | Java mode on modern JDK: replace Thread.stop() with Thread.interrupt() When running a Java exercise, PLM recompiles a set of its own framework sources together with the student code, in process, via javax.tools.JavaCompiler. One of those sources, LessonRunner.stopAll(), called java.lang.Thread.stop(), which is deprecated for removal. On recent JDKs (the default-jdk in current Debian is OpenJDK 26) that in-process recompilation fails with "cannot find symbol: method stop()" and no Java exercise can run. . Replace Thread.stop() with cooperative cancellation via Thread.interrupt(). This is independent of the Scala toolchain (LessonRunner.java is plain Java and is shared by every PLM build). Note: interrupt() is cooperative, so a student program stuck in a tight non-cooperative loop is no longer force-killed the way Thread.stop() did; that matches modern Java practice and a fully robust solution would run student code in a separate, hard-killable JVM. diff --git a/src/plm/core/model/LessonRunner.java b/src/plm/core/model/LessonRunner.java index f567d54..ed3041e 100644 |
Juan Manuel Méndez Rey <juan.mendezr@proton.me> | no | debian | 2026-06-13 | |
| java-console-show-errors-only.patch | Show only compilation errors (not framework warnings) in the console When running a Java exercise, PLM recompiles a set of its own framework sources in process together with the student code. Their deprecation and unchecked warnings/notes (e.g. ThreadDeath and AccessController being deprecated for removal, raw-type usage) were logged to the in-application console on every run, which is noise the student cannot act on and did not write. . Log only Diagnostic.Kind.ERROR in LoggerPanel; real compilation errors in the student's own code are still shown. Independent of the Scala toolchain. diff --git a/src/plm/core/ui/LoggerPanel.java b/src/plm/core/ui/LoggerPanel.java index 7f6a04d..392f918 100644 |
Juan Manuel Méndez Rey <juan.mendezr@proton.me> | no | 2026-06-13 | ||
| java-mode-filemanager-package-filter.patch | Java mode: only list compiled classes from the queried package PLM compiles a Java exercise (and the framework sources it recompiles in process) through a custom JavaFileManager. Its list() returned ALL in-memory compiled classes for any CLASS_PATH package query. javac trusts that list(package=P) returns classes of P and derives their binary name as P plus the file's simple name, so a class such as plm.core.model.session.SourceFile leaked into the query for scala.reflect.internal.util and was read as scala.reflect.internal.util.SourceFile -- "class file contains wrong class" -- breaking any exercise whose recompiled set holds two classes with the same simple name (e.g. a Buggle Java exercise, where both SourceFile classes meet). . Filter the compiled classes by the queried package name, exactly as the source loop just above already does. diff --git a/src/plm/core/lang/LangJava.java b/src/plm/core/lang/LangJava.java index 03b1d23..5e38c32 100644 |
Juan Manuel Méndez Rey <juan.mendezr@proton.me> | no | 2026-06-13 |
All known versions for source package 'plm'
- 2.9.2+dfsg-2 (sid, forky)
- 2.9.2-1.1 (trixie)
- 2.9.2-1 (bookworm)
