Article View: linux.debian.bugs.dist
Article #2470Bug#1152350: ITP: dh-scala -- debhelper build system for Scala libraries
From: Juan Manuel Méndez Rey
Date: Wed, 28 Oct 2026 12:00
Date: Wed, 28 Oct 2026 12:00
52 lines
4201 bytes
4201 bytes
Package: wnpp Severity: wishlist Owner: Juan Manuel Méndez Rey <juan.mendezr@proton.me> * Package name : dh-scala Version : 0.1 Upstream Author : Juan Manuel Méndez Rey <juan.mendezr@proton.me> URL : https://salsa.debian.org/mendezr/dh-scala License : GPL-3+ Programming Lang: Perl Description : debhelper build system for Scala libraries dh-scala builds Scala libraries for Debian without sbt. A short debian/scala-build file lists, for each artifact and Scala binary version (2.12, 2.13 or 3), the source directories, the compiler options taken from upstream's build and the dependencies, given as Maven coordinates resolved in /usr/share/maven-repo. dh-scala compiles the Scala and Java sources with the Scala compiler from the archive, writes reproducible jars and installs them with maven-repo-helper under their Maven artifact names (such as scala-xml_2.13). The same source builds dh-make-scala, which starts the debian/ directory of a library from its POM on Maven Central and the git tag of the release, and compares the built jars with upstream's. Every Scala library in Debian today needs a hand written build in debian/rules, because sbt is not in the archive. dh-scala replaces that with a declarative file, the way dh-golang and dh-cargo do for Go and Rust. It is written in Perl and has no Scala dependency of its own, so it adds no bootstrap cycle. It was tested by porting scala-xml-2.12 and scala-parser-combinators-2.12 (https://bugs.debian.org/1139712 and https://bugs.debian.org/1139718) to it: the resulting jars contain the same classes, byte for byte, as their hand written builds, and two builds give identical packages. dh-make-scala was then used on scala-xml 2.3.0 (one source built for Scala 2.13 and 3), scala-parallel-collections, geny, portable-scala-reflect and munit (three modules, one of them in Java): every class of upstream's jars is present in the packages built with sbuild. Libraries that generate sources at build time, such as scala-java8-compat, are its current limit, and the comparison with upstream reports it. The libraries sbt 2 needs (12 sources, sbt included) were then packaged with it, not yet uploaded. The package includes a guide for packagers and complete examples taken from these packages. I plan to maintain it within the Debian Java team. The first upload would go to experimental, until more Scala libraries use it.
Technical Details
Message-ID:
<NTatX-8q0o-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!news.imp.ch!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!news.imp.ch!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Juan Manuel Méndez Rey <juan.mendezr@proton.me> Newsgroups: linux.debian.bugs.dist Subject: Bug#1152350: ITP: dh-scala -- debhelper build system for Scala libraries Date: Wed, 28 Oct 2026 13:00:01 +0100 Message-ID: <NTatX-8q0o-3@gated-at.bofh.it> X-Original-To: submit@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Oct 28 11:51:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Juan Manuel Méndez Rey <juan.mendezr@proton.me>, 1152350@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: wnpp@debian.org X-Debian-Pr-Message: report 1152350 X-Debian-Pr-Package: wnpp Feedback-ID: 176548819:user:proton X-Pm-Message-ID: 76d521c224b116c532c3a67257d27099f26108db MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999351 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 52 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 28 Oct 2026 11:48:27 +0000 X-Original-Message-ID: <6f0abdda2ed7a7718fc25ff09f4cbb88@proton.me>