golang-github-ncruces-wasm2go 0.4.22+ds-1
Package Information
| Description | Wasm to Go translator (library) Library that translates a WebAssembly module into a single self-contained Go source file with no dependencies beyond the Go standard library. |
|---|---|
| Maintainer | Debian Go Packaging Team <team+pkg-go@tracker.debian.org> |
| Changed By | Hermes Rodríguez <hrodrig@usb.ve> |
| Sponsor | maytham@debian.org |
| Distribution | unstable |
| Architecture | any all |
| VCS | git: https://salsa.debian.org/go-team/packages/golang-github-ncruces-wasm2go.git (browse) |
| Closes | #1154992 |
| Tracker | https://tracker.debian.org/pkg/golang-github-ncruces-wasm2go |
| Uploaded | 2 hours ago |
New Package Report
.changes
| Date | Mon, 23 Nov 2026 15:50:00 -0400 |
|---|---|
| Source | golang-github-ncruces-wasm2go |
| Version | 0.4.22+ds-1 |
| Changed-By | Hermes Rodríguez <hrodrig@usb.ve> |
| Architecture | source all amd64 |
| Distribution | unstable |
Changelog
golang-github-ncruces-wasm2go (0.4.22+ds-1) unstable; urgency=medium
.
* Initial release (Closes: #1154992)
* Repack as +ds: Files-Excluded internal/spectest/ (prebuilt .wasm;
agreed with sponsor).
* d/copyright: Doug Lea MIT-0 (malloc.c), Sean Barrett Expat or
public-domain (stb_sprintf.h)..dsc
| Section | golang |
|---|---|
| Priority | optional |
| Component | main |
| Package-List | golang-github-ncruces-wasm2go-dev deb golang optional arch=all wasm2go deb devel optional arch=any |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: wasm2go
Upstream-Contact: Nuno Cruces <ncruces@gmail.com>
Source: https://github.com/ncruces/wasm2go
Files-Excluded: internal/spectest
Files: *
Copyright: 2026 Nuno Cruces
License: Expat
Files: debian/*
Copyright: 2026 Hermes Rodríguez <hrodrig@usb.ve>
2026 Maytham Alsudany <maytham@debian.org>
License: Expat
Comment: Debian packaging is licensed under the same terms as upstream
Files: libc-gen/c/malloc.c
Copyright: 2023 Doug Lea
License: MIT-0
Comment: Re-licensed 25 Sep 2023 with MIT-0 replacing obsolete CC0
(see comment block in malloc.c; https://opensource.org/license/mit-0/).
Files: libc-gen/c/stb_sprintf.h
Copyright: 2017 Sean Barrett
License: Expat or public-domain
Comment: Dual-licensed upstream (ALTERNATIVE A MIT / ALTERNATIVE B
Unlicense public domain). Either may be used.
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.
License: MIT-0
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.
.
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.
License: public-domain
This is free and unencumbered software released into the public domain.
.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute
this software, either in source code form or as a compiled binary, for any
purpose, commercial or non-commercial, and by any means.
.
In jurisdictions that recognize copyright laws, the author or authors of this
software dedicate any and all copyright interest in the software to the public
domain. We make this dedication for the benefit of the public at large and to
the detriment of our heirs and successors. We intend this dedication to be an
overt act of relinquishment in perpetuity of all present and future rights to
this software under copyright law.
.
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 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 0 blocker, 1 important, 1 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 0 hours ago.
Report
DFSG NEW review for golang-github-ncruces-wasm2go version 0.4.22+ds-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: Yes
- Issues: 0 blocker, 1 important, 1 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: 18 found
Licensing
All licences in the tree are DFSG-free and compatible (Expat for the project, MIT-0 for Doug Lea's malloc.c, Expat-or-public-domain for stb_sprintf.h, with the full texts present in debian/copyright), and the two +ds exclusions are consistent. However debian/copyright is not accurate for every file: six testdata fixtures are Eli Bendersky's public-domain WAT samples, but Files: * credits them to Nuno Cruces under Expat. Policy 2.3 does not require the notice to be copied for those plain-text files, but the holder and licence statements in the copyright file are wrong for files Debian ships.
Packaging
Solid, conventional Go-team packaging: debhelper 13-semantics compat 14 with an out-of-source build, dh-sequence-golang, correct <!nocheck> marking of clang/lld/wabt (used only by execute_before_dh_auto_test, which dh skips on nocheck), matching Build-Depends (x/tools 0.52.0 present in the archive), Standards-Version 4.7.4 against Policy 4.7.4.1, sane binary split and autopkgtest. The only defect found is minor: debian/clean lists upstream-shipped testdata fixtures, so debian/rules clean deletes them from the pristine source tree, and the pattern does not even match the regression/ ones.
Issues
important licensing 1. debian/copyright credits Nuno Cruces under Expat for Eli Bendersky's public-domain testdata WAT fixtures ◂
- Files:
debian/copyright:8-9,testdata/loops/loops.wat:4,testdata/memory/memory.wat:3,testdata/primes/primes.wat:3,testdata/recursion/recursion.wat:6,testdata/stack/stack.wat:11,testdata/table/table.wat:3 - Basis: checked, in the package or with a reference tool
- Evidence:
;; Eli Bendersky [https://eli.thegreenplace.net]/;; This code is in the public domain.in the six .wat files, againstFiles: *→Copyright: 2026 Nuno Cruces/License: Expat. - Problem: Six committed fixtures (testdata/{loops,memory,primes,recursion,stack,table}/*.wat) and the .wasm compiled from them by debian/rules are not Nuno Cruces' work and are not Expat-licensed: their notices name Eli Bendersky and dedicate them to the public domain. They are installed in the -dev package (the whole source tree, including testdata, goes to /usr/share/gocode via usr/share), so the catch-all stanza misstates both the holder and the licence of files Debian ships. Policy 2.3 does not require the notice to be copied into debian/copyright here (the .wat are installed as plain text with their notice intact, and a public-domain dedication imposes no retention condition, also for the .wasm), which is why this is not a DFSG problem; but the copyright file is inaccurate for them and the DFSG team expects it to be complete.
- Fix: Add a stanza after
Files: *, e.g.Files: testdata/loops/* testdata/memory/* testdata/primes/* testdata/recursion/* testdata/stack/* testdata/table/*withCopyright: Eli BenderskyandLicense: public-domain(keeping the existing public-domain licence paragraph), so that both the .wat and their .wasm/.go derivatives are covered.
minor packaging 2. debian/clean deletes upstream testdata/*.wasm fixtures from the source tree and its pattern does not recurse ◂
- Files:
debian/clean:1 - Basis: inferred from what was read, not seen directly
- Evidence: debian/clean contains
testdata/**/*.wasm; the same 16 modules are shipped in the orig tarball next to their .wat/.c sources (no quilt patches exist), and the Debian build is out-of-source (--builddirectory=_build). - Problem: Nothing is generated in the source tree: dh_auto_install/test regenerate the fixtures inside
_build, so these entries have no build product to clean. Instead dh_clean removes nine of upstream's committed fixtures (testdata/{dwarfline,fib,loops,memory,primes,recursion,stack,table,trig}/.wasm) from the pristine source on everydebian/rules clean. Because dpkg-buildpackage cleans beforedpkg-source -b, a source build from a built tree records deletion of upstream files in the .debian.tar.xz. The pattern is also inconsistent: dh's glob uses GLOB_CSH (Dh_Lib.pm) without recursive**, sotestdata/**/*.wasmonly matches one directory level and the seven testdata/regression//*.wasm are not matched at all. - Fix: Drop debian/clean, or limit it to files the Debian build actually creates in the source tree (none here).
Verified ◂
- Read every file under debian/ in full (control, rules, copyright, changelog, clean, *.install, *.docs, gbp.conf, README.source, source/format, upstream/metadata, gitlab-ci.yml, salsa-ci.yml); debian/patches is absent and .pc/applied-patches is empty, so there are no patches.
- All 16 WebAssembly modules listed by the scan are built from sources shipped in the tree and regenerated by
execute_before_dh_auto_testin debian/rules —testdata/*/*.watwith wat2wasm,testdata/dwarfline/dwarfline.cwith clang: testdata/dwarfline/dwarfline.wasm, testdata/fib/fib.wasm, testdata/loops/loops.wasm, testdata/memory/memory.wasm, testdata/primes/primes.wasm, testdata/recursion/recursion.wasm, testdata/regression/bulk_grow/bulk_grow.wasm, testdata/regression/oob_trap/oob_trap.wasm, testdata/regression/provided_helper/provided_helper.wasm, testdata/regression/select_effect/select_effect.wasm, testdata/regression/shared_export/shared_export.wasm, testdata/regression/store_grow/store_grow.wasm, testdata/regression/tee_self_loop/tee_self_loop.wasm, testdata/stack/stack.wasm, testdata/table/table.wasm, testdata/trig/trig.wasm. Upstream commits them as test fixtures (its CI runsgo generate, which only regenerates the .go outputs), so the preferred form for modification is present; the .wasm are test data, not shipped programs. - The rare-licence wording found at debian/copyright:69 and libc-gen/c/stb_sprintf.h:1892 (
for any purpose, commercial or non-commercial, and by any means) is the Unlicense/public-domain dedication's permission text, not a restriction; the licence is DFSG-free. - libc-gen/c/malloc.c is Doug Lea's malloc 2.8.6 under MIT-0; its header matches the
Files: libc-gen/c/malloc.cstanza and the full MIT-0 text is in debian/copyright. libc-gen/c/stb_sprintf.h is Sean Barrett's dual MIT/Unlicense file; the end-of-file licence block is present and the stanza'sExpat or public-domainwith both paragraphs matches it. Both are embedded as text in the wasm2go-libc-gen binary (//go:embed in libc-gen/main.go), with their notices inside the embedded file. - The top-level LICENSE is Expat and matches the
Files: *stanza; grep for Copyright/(C)/©/SPDX/Licensed under/GNU/Apache/MPL/All rights reserved across the tree found no other licence or holder notices than those already handled and the Eli Bendersky fixtures. - libc-gen/c/*.c and *.h other than malloc.c and stb_sprintf.h carry no notices and are upstream's own minimal libc implementations (README describes them as such); no musl/BSD/other vendored C code was found, and no third-party Go code (no 'The Go Authors' notices).
- Build-Depends checked against the archive: golang-golang-x-tools-dev 1:0.52.0 (matches go.mod's golang.org/x/tools v0.52.0), clang, lld, wabt (ships wat2wasm); dpkg-build-api (= 1) is a virtual package provided by dpkg-dev and is the documented way to select the level.
- clang/lld/wabt are used only in
execute_before_dh_auto_test; the debhelper tool confirms that from compat 13 dh skips that target whennocheckis set, so marking them<!nocheck>is correct and does not break a nocheck build. - The -dev package's
usr/shareinstall line and the program'susr/binline are correct with compat 14's out-of-source debian/tmp install; dh_install logs the -dev package's files for dh_missing even when that package is not being acted on, so adpkg-buildpackage -Bbuild does not fail with --fail-missing. - Standards-Version 4.7.4 is current against Policy 4.7.4.1; source format 3.0 (quilt), changelog version 0.4.22+ds-1 with distribution unstable and a valid Monday date, Testsuite: autopkgtest-pkg-go without a local debian/tests/control, and a correct gbp.conf dist = DEP14 line.
- uscan found the packaged version as the newest upstream release (upstream
0.4.22, packaged0.4.22+ds).
Not confirmed ◂
- The orig tarball's member list could not be read (the archive reader shows only its top-level directory
ncruces-wasm2go-0feace5/), so that testdata/*.wasm are upstream files is deduced from there being no quilt patches and no other way for them to reach the unpacked tree. - The 16 .wasm files were not opened (binary WebAssembly modules; recorded by name only), and no build or test run was performed (read-only review).
- Perl's File::Glob
**semantics are not documented on this system (no File::Glob man page); the non-recursive reading of debian/clean's pattern follows from Dh_Lib.pm using GLOB_CSH without GLOB_STAR.
Proposed changes ◂
None.
Uploader's response to the LLM review
Waiting for the uploader's response until , because the review found serious issues.