fansi 0.5.1-1
Package Information
| Description | colored terminal strings for Scala (Scala 2.13) Fansi provides fansi.Str, a string with ANSI colors and decorations kept apart from the text. Its length is the length on screen, and it can be split, sliced and recolored without leaking colors or breaking escape codes. This package provides com.lihaoyi:fansi_2.13, built for Scala 2.13. |
|---|---|
| Maintainer | Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> |
| Changed By | Juan Manuel Méndez Rey <juan.mendezr@proton.me> |
| Sponsor | tsimonq2@debian.org |
| Distribution | unstable |
| Architecture | all |
| VCS | git: https://salsa.debian.org/java-team/fansi.git (browse) |
| Closes | #1154222 |
| Tracker | https://tracker.debian.org/pkg/fansi |
| Uploaded | 2 hours ago |
New Package Report
.changes
| Changed-By | Juan Manuel Méndez Rey <juan.mendezr@proton.me> |
|---|---|
| Architecture | source all |
| Distribution | unstable |
| Date | Tue, 17 Nov 2026 15:25:13 +0100 |
| Source | fansi |
| Version | 0.5.1-1 |
Changelog
fansi (0.5.1-1) unstable; urgency=medium . * Initial release. (Closes: #1154222)
.dsc
| Package-List | libfansi-scala2.13-java deb java optional arch=all libfansi-scala3-java deb java optional arch=all |
|---|---|
| Section | java |
| Priority | optional |
| Component | main |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: fansi Upstream-Contact: Li Haoyi <haoyi.sg@gmail.com> Source: https://github.com/com-lihaoyi/fansi Files: * Copyright: 2016 Li Haoyi (haoyi.sg@gmail.com) License: Expat Comment: ansiRegex in fansi/src/fansi/Fansi.scala is a single regular expression for ANSI escape codes, found in a 2015 Stack Overflow answer (https://stackoverflow.com/a/33925425, CC-BY-SA 3.0), which itself follows the ECMA-48 standard. Files: mill Copyright: 2019-2025 Tobias Roeser <le.petit.fou@web.de> 2025 Li Haoyi <haoyi.sg@gmail.com> License: Apache-2.0 Comment: Mill launcher, from https://github.com/lefou/millw via Mill's dist/scripts/src/mill.sh. Not used by the build. Files: debian/* Copyright: 2026 Juan Manuel Méndez Rey <juan.mendezr@proton.me> License: Expat 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 license 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.
DFSG Assistant LLM REVIEW 1 blocker, 0 important, 0 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 hour ago.
Report
DFSG NEW review for fansi version 0.5.1-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: Yes
- Issues: 1 blocker, 0 important, 0 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: nothing found
Licensing
The tree is DEP-5 copyright, and most of it is accurately covered: LICENSE is MIT/Expat for Li Haoyi, the mill launcher's own Apache-2.0 notice is matched by its own stanza, and the debian/* files are attributed to the maintainer. One file is not described accurately: fansi/src/fansi/Fansi.scala contains the ansiRegex taken from a Stack Overflow answer that debian/copyright itself says is CC-BY-SA 3.0, yet the file is licensed there as Expat only; the CC-BY-SA-3.0 terms, license text and author attribution that license requires are absent. CC-BY-SA 3.0 is itself free, but the copyright file does not describe the mixed licensing and the attribution/license-notice condition is unmet for code compiled into both jars.
Packaging
Packaging is small and clean: debhelper compat 14 with dh-sequence-scala/scala-build, all Build-Depends resolvable in the archive (scala-2.13 2.13.18, scala3 3.9.0, both sourcecode packages 0.4.4, dh-sequence-scala from scala-debian-helper 0.1), a proper two-package split by Scala version, an autopkgtest that compiles and exercises the installed jars, no patches, correct Vcs-*, Standards-Version 4.7.4 against Policy 4.7.4.1, and a sane initial changelog. No packaging defect worth reporting was found.
Issues
blocker licensing 1. Files: * licenses Fansi.scala under Expat alone, although its ansiRegex is CC-BY-SA 3.0 and neither its terms nor its author are in debian/copyright ◂
- Files:
debian/copyright:9-13,fansi/src/fansi/Fansi.scala:232-242 - Basis: checked, in the package or with a reference tool
- Evidence: debian/copyright, under
Files: *withLicense: Expat:Comment: ansiRegex in fansi/src/fansi/Fansi.scala is a single regular expression for ANSI escape codes, found in a 2015 Stack Overflow answer (https://stackoverflow.com/a/33925425, CC-BY-SA 3.0). Fansi.scala:234:* Found from: http://stackoverflow.com/a/33925425/871202, line 242:val ansiRegex = "(\u009b|\u001b\\[)[0-?]*[ -\\/]*[@-~]".r.pattern - Problem: The file is compiled into both libfansi-scala2.13-java and libfansi-scala3-java, but the stanza that matches it states Expat only. The Comment is not a license statement: there is no CC-BY-SA-3.0 License paragraph or pointer to /usr/share/common-licenses/CC-BY-SA-3.0, and the answer's author, whose attribution CC-BY-SA 3.0 requires, is named nowhere. Policy 12.5 requires a verbatim copy of every distribution license, and Policy 2.3 requires the copyright notices of files compiled into the binary package. The share-alike terms also have to be reconciled with the Expat licence of the rest of the file, and as shipped the package does not meet them.
- Fix: Add a
Files: fansi/src/fansi/Fansi.scalaparagraph with both holders (Li Haoyi and the Stack Overflow answer's author) andLicense: Expat and CC-BY-SA-3.0, plus a stand-aloneLicense: CC-BY-SA-3.0paragraph pointing to/usr/share/common-licenses/CC-BY-SA-3.0(or with the full text). Alternatively have upstream replace the regex with an independently written one, or record with the author's permission why it is licensed under Expat/MIT.
Verified ◂
- Inventoried the whole tree outside .pc/ and debian/: .gitignore, LICENSE, build.mill, mill, readme.md, 3 .github files, 7 docs/*.png, fansi/src/fansi/Fansi.scala and fansi/test/src/fansi/FansiTests.scala; all are covered by the
Files: *orFiles: millstanza. - debian/copyright is DEP-5 with the exact copyright-format 1.0 Format URL; the Expat text is included and matches LICENSE, the Apache-2.0 stanza for mill matches the
Licensed under the Apache License, Version 2.0line at mill:31, and the holder years match the file. - docs/*.png are documentation screenshots referenced by readme.md; recorded by name only and not opened, as instructed.
- The prescan's author check names no missing holder among file notices; the only unrepresented holder is the Stack Overflow author disclosed in debian/copyright itself.
- debian/rules uses debhelper compat 14 (
debhelper-compat (= 14)) withdh $@ --buildsystem=scala; debian/scala-build defines both artifacts and their source/classpath; no debian/patches directory exists, so 3.0 (quilt) with no patches is consistent. - Build-Depends resolve in the archive or its NEW queues: scala-2.13 2.13.18 provides scalac-2.13, scala3 3.9.0 provides scalac-3, libsourcecode-scala2.13-java and libsourcecode-scala3-java 0.4.4 exist, and dh-sequence-scala is provided by scala-debian-helper 0.1.
- debian/tests/control is valid (Test-Command plus a named Tests: compile-and-run), the script uses only packages in its Depends, and the test source is a sibling file in the source tree.
- Standards-Version 4.7.4 is current enough against Policy 4.7.4.1 (first two components match); changelog distribution, version and date are sane; Vcs-Git/Vcs-Browser/Homepage are present and consistent.
- uscan found the packaged version as the newest upstream release (upstream
0.5.1, packaged0.5.1). - Every pointer of
debian/copyrightto /usr/share/common-licenses names a file that is there (Apache-2.0).
Not confirmed ◂
None.
Proposed changes ◂
None.
Uploader's response to the LLM review
Waiting for the uploader's response until , because the review found serious issues.
Are you a maintainer or uploader of this package? Log in with Salsa to comment on the review.