Review: nng 2.1.0-1
Package Information
| Description | Lightweight Messaging Library - utility Lightweight, broker-less library, offering a simple API to solve common recurring messaging problems, such as publish/subscribe, RPC-style request/reply, or service discovery. The API frees the programmer from worrying about details like connection management, retries, and other common considerations, so that they can focus on the application instead of the plumbing. This package contains the nngcat utility. |
|---|---|
| Maintainer | Laszlo Boszormenyi (GCS) <gcs@debian.org> |
| Changed By | Laszlo Boszormenyi (GCS) <gcs@debian.org> |
| Sponsor | gcs@debian.org |
| Distribution | experimental |
| Architecture | any all |
| Closes | #1155008 |
| Popcon Installs | 3751 |
| Binary NEW | Yes (new binary packages of a source already in sid) |
| Tracker | https://tracker.debian.org/pkg/nng |
| Uploaded | 7 days ago |
New Package Report
.changes
| Version | 2.1.0-1 |
|---|---|
| Changed-By | Laszlo Boszormenyi (GCS) <gcs@debian.org> |
| Architecture | source amd64 all |
| Distribution | experimental |
| Date | Sat, 28 Nov 2026 14:39:19 +0100 |
| Source | nng |
Changelog
nng (2.1.0-1) experimental; urgency=medium . * New major upstream release. * Build with OpenSSL instead of Mbed-TLS (closes: #1155008). * Library transition from libnng1 to libnng2 . * Update copyright file.
.dsc
| Priority | optional |
|---|---|
| Component | main |
| Package-List | libnng-dev deb libdevel optional arch=any libnng-doc deb doc optional arch=all libnng2 deb devel optional arch=any nng-utils deb devel optional arch=any |
| Section | libdevel |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: nng Upstream-Contact: https://github.com/nanomsg/nng/issues Source: https://github.com/nanomsg/nng Files: * Copyright: Copyright 2018 Staysail Systems, Inc. <info@staysail.tech>, Copyright 2018 Capitar IT Group BV <info@capitar.com>, Copyright 2018 Devolutions <info@devolutions.net>, Copyright 2017 Garrett D'Amore <garrett@damore.org> License: Expat Files: debian/* Copyright: 2020 Laszlo Boszormenyi (GCS) <gcs@debian.org> License: GPL-3+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License 3 along with this program. If not, see <https://www.gnu.org/licenses/>. . On Debian systems, the complete text of the GNU General Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. 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 2 blocker, 0 important, 3 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 6 days ago.
Report
DFSG NEW review for nng version 2.1.0-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: Yes
- Issues: 2 blocker, 0 important, 3 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: 1 found
Licensing
The code is MIT/Expat throughout and that is DFSG-free, but debian/copyright is far from complete: its only upstream stanza names four holders, while at least seven holders of code compiled into libnng2 and nng-utils are missing, and src/supplemental/websocket/sha1.c carries an additional third-party notice (Paul E. Jones' Freeware Public License) that the file does not record. The prescan's only rare-wording hit, docs/ref/api/errors.md:33, is API documentation about not modifying a returned string, not a licence term.
Packaging
Control, rules, install files, patches and changelog are in good shape: compat 13, quilt patches with DEP-3 headers, correct SOVERSION/package split, all installed paths covered, Standards-Version 4.7.2 current against Policy 4.7.x. Only minor items: a wrong project name in the libnng-dev long description and six Build-Depends the build does not use.
Issues
blocker licensing 1. Files: * omits seven holders of code compiled into libnng2 and nng-utils ◂
- Files:
debian/copyright:6-11,src/supplemental/http/http_server.c:4-6,src/sp/protocol/pubsub0/sub.c:4,src/platform/posix/posix_pollq_epoll.c:4,src/supplemental/websocket/base64.c:2,src/supplemental/websocket/base64.h:2,src/supplemental/websocket/sha1.c:18,src/tools/nngcat/nngcat.c:4 - Basis: checked, in the package or with a reference tool
- Evidence:
Files: *names onlyCopyright 2018 Staysail Systems, Inc. ...,Capitar IT Group BV,Devolutions,Garrett D'Amore; but e.g.src/supplemental/http/http_server.c:4-6hasCopyright 2018 QXSoftware <lh563566994@126.com>andCopyright 2020 Dirac Research <robert.bielik@dirac.com>,src/sp/protocol/pubsub0/sub.c:4hasCopyright 2019 Nathan Kent <nate@nkent.net>,src/supplemental/websocket/base64.c:2hasCopyright (c) 2014 Wirebird Labs LLC. All rights reserved.,src/platform/posix/posix_pollq_epoll.c:4hasCopyright 2018 Liam Staskawicz <liam@stask.net>,src/tools/nngcat/nngcat.c:4hasCopyright 2020 Lager Data, Inc. <support@lagerdata.com>. - Problem: Expat requires that
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Policy 2.3 requires the notices of files shipped compiled into a binary package to be in debian/copyright when the licence requires their retention and the notice is not shipped as plain text. src/supplemental/websocket/CMakeLists.txt builds base64.c/base64.h/sha1.c, src/supplemental/http/CMakeLists.txt builds http_server.c (HTTP is on by default), src/platform/posix/CMakeLists.txt selects posix_pollq_epoll.c on Linux, pubsub0/CMakeLists.txt builds sub.c, and src/tools/nngcat/CMakeLists.txt installs nngcat from nngcat.c, so all of these notices are required and missing. - Fix: Add the holders to debian/copyright, per file or in stanzas: QXSoftware and Dirac Research (http_server.c), Nathan Kent (sub.c), Liam Staskawicz (posix_pollq_epoll.c), Wirebird Labs LLC (base64.c, base64.h), Lager Data, Inc. (nngcat.c) and Paul E. Jones (sha1.c, see the separate FPL issue).
blocker licensing 2. sha1.c's Paul E. Jones Freeware Public License notice is not recorded in debian/copyright ◂
- Files:
src/supplemental/websocket/sha1.c:11-33,debian/copyright:6-11 - Basis: checked, in the package or with a reference tool
- Evidence:
// This file represents a modification of Paul E. Jones' implementation....// Freeware Public License (FPL)/This software is licensed as "freeware." Permission to distribute this software in source and binary forms, including incorporation into other products, is hereby granted without a fee.— while debian/copyright declares the whole treeLicense: Expatand does not reproduce this notice. - Problem: sha1.c is compiled into libnng2 (websocket transport, on by default), but its third-party notice and licence terms are absent from debian/copyright, which declares the file Expat only. The file is not shipped as plain text in the binary, so Policy 2.3 applies, and the FPL text is not in /usr/share/common-licenses and therefore has to be reproduced. The notice's grant is a distribution permission with no explicit modification right, which also makes the Expat-only entry inaccurate for the original code.
- Fix: Add a Files stanza for src/supplemental/websocket/sha1.c naming Paul E. Jones and the Staysail/Capitar modifications, and a stand-alone License paragraph with the FPL text verbatim; confirm upstream's relicensing of the modified code is valid.
minor licensing 3. Files: * does not name holders of test, demo, build-system and plain-text files ◂
- Files:
src/testing/acutest.h:5,src/sp/reconnect_stress_test.c:3,src/sp/transport/dtls/dtls_tran_test.c:5,src/sp/transport/ipc/ipc_test.c:3,src/sp/transport/socket/sockfd_test.c:5,src/sp/transport/tcp/tcp_test.c:5,src/sp/transport/tls/tls_tran_test.c:5,src/sp/transport/ws/ws_test.c:3,src/supplemental/http/http_server_test.c:4,src/platform/windows/win_file.c:4,src/platform/posix/posix_pollq_kqueue.c:4,src/tools/nngcat/nngcat_stdin_pipe_test.sh:6,demo/stream/CMakeLists.txt:2,demo/stream/stream.c:1,demo/stream/platform/posix/server.c:1,demo/stream/platform/windows/server.c:1,CMakeLists.txt:3-6,tests/CMakeLists.txt:4-7,include/nng/http.h:4,docs/ref/copyright.md:27 - Basis: checked, in the package or with a reference tool
- Evidence: Examples:
src/testing/acutest.h:5Copyright 2013-2023 Martin Mitáš;CMakeLists.txt:3-6Martin Sustrik, GoPivotal, Inc., Jack R. Dunaway, Franklin "Snaipe" Mathieu;demo/stream/*Copyright 2020 Hugo Lindström;src/sp/reconnect_stress_test.c:3Copyright 2024 Aleksei Solovev;src/platform/windows/win_file.c:4Copyright 2018 QXSoftware;include/nng/http.h:4Copyright 2020 Dirac Research. - Problem: None of these files is compiled into a binary package: tests and demos are not installed, the Windows and kqueue platform files are not built on any Debian architecture, CMakeLists.txt files are build system, and include/nng/http.h and docs/ref/copyright.md are installed as plain text with their notices intact. Policy 2.3 therefore does not require these notices, but the DFSG team asks for a complete debian/copyright.
- Fix: Add stanzas or holder lines for Martin Mitáš, Aleksei Solovev, Cody Piersall, Hugo Lindström, Martin Sustrik, GoPivotal, Jack R. Dunaway, Franklin "Snaipe" Mathieu, QXSoftware (win_file.c), Liam Staskawicz (kqueue), Dirac Research (http.h, docs), and Lager Data (test script).
minor packaging 4. libnng-dev description says the headers are for libwebsockets ◂
- Files:
debian/control:53-54 - Basis: checked, in the package or with a reference tool
- Evidence:
This package contains the header files needed for developing programs using libwebsockets and a static library. - Problem: Copy-paste from another package: user-visible description names the wrong upstream project.
- Fix: Replace
libwebsocketswithnng.
minor packaging 5. Build-Depends lists six packages the build never uses ◂
- Files:
debian/control:5-7 - Basis: checked, in the package or with a reference tool
- Evidence:
Build-Depends: debhelper-compat (= 13), dh-python, python3, python3-setuptools, cmake, asciidoctor, protobuf-compiler, python3-protobuf, libssl-dev; no.protofile exists in the tree, CMake uses neither Python nor protobuf nor asciidoctor, andasciidoctor/python3appear only in .github workflows and the unbuilt tools/pubrefman/main.go. - Problem: Stale build dependencies slow down and enlarge build-dependency installs and can break the package when they migrate; nothing in debian/rules, CMake or the tests uses them.
- Fix: Drop dh-python, python3, python3-setuptools, asciidoctor, protobuf-compiler and python3-protobuf, keeping cmake and libssl-dev (and re-add anything a future build step needs).
Verified ◂
- Read debian/copyright in full: DEP-5 with the correct Format URL, four upstream holders under
Files: *(Expat, full text present) and a GPL-3+ stanza for debian/*; GPL-3+ packaging is compatible with MIT sources. - Read debian/control, rules, changelog, source/format (3.0 quilt), libnng2/libnng-dev/nng-utils/libnng-doc .install files, not-installed, and all three patches plus series; patches have DEP-3 headers and clear purposes.
- Traced the build wiring in CMakeLists.txt and the subdirectory CMakeLists: websocket (base64.c, base64.h, sha1.c), HTTP (http_server.c), Linux epoll (posix_pollq_epoll.c), pubsub0 (sub.c) are compiled into the library, and nngcat.c is installed from src/tools/nngcat/CMakeLists.txt; SOVERSION is NNG_MAJOR_VERSION = 2, matching libnng2.
- Grepped the whole tree for SPDX, GPL/LGPL, Apache, MPL, BSD-style, zlib, CC0, public-domain and 'All rights reserved' wording: every file notice found is MIT/Expat apart from the Paul E. Jones FPL notice in sha1.c; base64.h's 'Based on base64.c (Public Domain) by Jon Mayo' requires no notice.
- Read docs/LICENSE.adoc and LICENSE.txt: both MIT, Copyright Staysail Systems and Capitar IT Group BV; README.md says MIT.
- Prescan item docs/ref/api/errors.md:33 is API documentation about nng_strerror's returned string ('the content must not be modified'), not a licence term.
- Checked that no built binaries, PDFs or minified files are in the tree; libnng-doc ships the mdbook sources (docs/book.toml, docs/ref, docs/theme) copied by debian/rules, i.e. the preferred form for modification, and Recommends the mdbook package that exists in the archive.
- The only images, docs/ref/img/staysail-bw-trans.svg and the inline SVG in docs/ref/copyright.md, are text SVGs from the upstream documentation, covered by the MIT statement in docs/ref/copyright.md.
- Standards-Version 4.7.2 matches the reviewing system's Policy 4.7.x, so not an issue.
- mdbook, libssl-dev, asciidoctor and protobuf-compiler named in debian/control exist in the reviewing system's package lists; every path installed by upstream (headers, cmake config, .a/.so, nngcat, documentation) is matched by one of the .install files.
- libnng2/libnng-dev are Multi-Arch: same, libnng-doc Architecture: all, nng-utils Multi-Arch: foreign; no maintainer scripts or *.maintscript, no tests/control.
- uscan found the packaged version as the newest upstream release (upstream
2.1.0, packaged2.1.0). - Every pointer of
debian/copyrightto /usr/share/common-licenses names a file that is there (GPL-3).
Not confirmed ◂
- Whether the Freeware Public License notice in src/supplemental/websocket/sha1.c satisfies DFSG 3: it grants permission to distribute source and binary forms, including incorporation into other products, but grants no explicit right to modify, while the file is described upstream as a modification. The file as a whole is declared MIT by Staysail at its top, and I did not resolve which terms govern the modified portions.
- CODE_OF_CONDUCT.md says it is adapted from the Contributor Covenant version 1.4, carries no licence statement, and debian/copyright declares it Expat. Contributor Covenant is, as far as I recall, CC BY 4.0; I could not check this offline, and the file is not shipped in any binary package.
- No build or autopkgtest was run, per the review instructions; any build-time problem is therefore not observed.
Proposed changes ◂
None.
Uploader's response to the LLM review
The uploader rejected this upload in response to the review.
Review Information
rejected — allocated to dfsg-uploader 6 days ago, started 6 days ago, completed 6 days ago.
Final Comment
The uploader rejected this upload in response to the automated (LLM) review of it, so that they can fix the problems it found and upload again.
The uploader said:
Updated package is being uploaded soon.
Other Reviews of this Package
| Version | Hash | Allocated | Completed | Reviewer | Status | Details |
|---|---|---|---|---|---|---|
| 2.1.0-1 | e8d59a2f… | 2026-12-05 01:53 | 2026-12-05 03:06 | awm | accepted | VIEW |