Review: jeolib-miallib 2.0.1-1~exp1
New Package Report
.changes
| Architecture | source amd64 |
|---|---|
| Distribution | experimental |
| Date | Thu, 05 Nov 2026 19:39:44 +0100 |
| Source | jeolib-miallib |
| Version | 2.0.1-1~exp1 |
| Changed-By | Bas Couwenberg <sebastic@debian.org> |
Changelog
jeolib-miallib (2.0.1-1~exp1) experimental; urgency=medium . * Team upload. * New upstream release. * Add patch to make setup.py license match the project. * Add patch to fix core license text.
.dsc
| Component | main |
|---|---|
| Package-List | libmiallib-dev deb libdevel optional arch=any libmiallib2 deb libs optional arch=any |
| Section | libdevel |
| Priority | optional |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: jeolib-miallib
Upstream-Contact: miallib developers (https://github.com/ec-jrc/jeolib-miallib/issues)
Source: https://github.com/ec-jrc/jeolib-miallib
Files: *
Copyright: 2000, Arnold Meijster
2000, Jos Roerdink
2000, Michael Wilkinson
2025, Francesco Lovergine <francesco@lovergine.com>
2000-2026, European Union (Joint Research Centre)
License: GPL-3+
Files: cmake/modules/FindPROJ.cmake
Copyright: 2009, Mateusz Loskot <mateusz@loskot.net>
2015, NextGIS <info@nextgis.com>
2018, Hiroshi Miura
License: BSD-3-clause
Files: cmake/modules/FindGeoTIFF.cmake
Copyright: 2005-2019, Centre National d'Etudes Spatiales (CNES)
License: Apache-2.0
Files: core/doc/doxy2swig.py
Copyright: 2015, Michael Thon
Prabhu Ramachandran
License: BSD-2-clause
Files: debian/*
Copyright: 2024, Francesco Paolo Lovergine <frankie@debian.org>
License: GPL-3+
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 Apache License can
be found in `/usr/share/common-licenses/Apache-2.0'.
License: BSD-2-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
.
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
License: BSD-3-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
.
1) Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
.
2) Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
.
3) Neither the name of the ORGANIZATION nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
License: GPL-3+
This program 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
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".
DFSG Assistant LLM REVIEW 1 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 17 days ago.
Proposes a replacement debian/watch:
debian/watch in version 5 format
Report
DFSG NEW review for jeolib-miallib version 2.0.1-1~exp1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: Yes
- Issues: 1 blocker, 0 important, 3 minor
- debian/watch: old format (version 4)
- debian/copyright: machine-readable
- Scan before the review: 1 found
Licensing
The tree is GPL-3+ throughout (COPYING is GPL-3; every C/H file carries the same GPL-3-or-later header with the European Union (Joint Research Centre) as holder), and the BSD-3, Apache-2.0 and BSD-2 files in cmake/modules/ and core/doc/ each have a matching Files stanza with the required notice text in debian/copyright; the file is DEP-5 with the correct Format URL. However core/c/rank.c still contains a non-free distribution restriction ('ALl rights reserved. This programme can only be obtained directly from its author') in us_squarerank: debian/patches/core-license.patch was written to delete exactly this text but only covers two of the three occurrences. So the source package as distributed is not DFSG-free, and debian/copyright treats the file as plain GPL-3+.
Packaging
The packaging is conventional and sound: compat 13 with dh and the cmake buildsystem, build in build/, quilt patches with DEP-3 headers and Forwarded URLs, a proper symbols file with #PACKAGE#, Multi-Arch: same consistently used, the dev/library split matching what CMake installs, no maintainer scripts, current Standards-Version and a sane experimental-only version scheme for the SONAME bump. Only minor dependency tidying is left: two directly used dev packages are not in Build-Depends, and five Build-Depends that nothing in the build uses should be dropped.
Issues
blocker licensing 1. core/c/rank.c:687 still carries a non-free restriction: 'This programme can only be obtained directly from its author' ◂
-
Files:
core/c/rank.c:687-688; debian/patches/core-license.patch; core/c/convolve.c (already patched) -
Basis: checked, in the package or with a reference tool
-
Evidence:
core/c/rank.c:687-688, inside us_squarerank():
** (c) by Pierre Soille. ALl rights reserved. This programme can only ** be obtained directly from its author.debian/patches/core-license.patch removes the same two lines from uc_squarerank() (rank.c @@ -567,7 +567,5 @@) and from convolve.c (@@ -1202,8 +1202,6 @@), and its Description says 'Remove restrictions, invalidating top of file license.' The third copy in us_squarerank() is not in the patch. The tree-wide search for 'all rights reserved|can only be obtained' finds no other occurrence outside .pc/ and the patch itself.
-
Problem: The clause restricts distribution to copies obtained from the author, which fails DFSG 1 (free redistribution) and DFSG 3; it cannot stand together with the GPL-3+ grant in the same file header, and the package's own patch shows the maintainer agrees. Editing the licence text out of two functions while leaving a third occurrence means the source package still ships non-free terms, and the -dev headers/source users get them. Worse, removing a copyright holder's restriction is only defensible if the holder's GPL grant really covers the code: this needs the upstream fix (the patch is forwarded to PR 12) or explicit confirmation from the JRC, not a partial Debian-side deletion.
-
Fix: Delete the two lines at core/c/rank.c:687-688 as well (i.e. extend debian/patches/core-license.patch so every occurrence goes, and say so in its Description), or better, have upstream remove them in a release and drop the patch; if the restriction cannot be shown to be invalid, the functions are non-free and must be removed/repacked as was done for chull.c in 1.1.5. Then re-scan the whole tree for the wording.
minor packaging 2. Build-Depends omits zlib1g-dev and libtiff-dev, which the build includes and links directly ◂
- Files:
debian/control (Build-Depends); CMakeLists.txt:402-417; core/c/borderdetection.h:31, core/c/writeSVG.c:33; core/c/imio.c:30, core/c/imio2.c:31 - Basis: checked, in the package or with a reference tool
- Evidence: Sources:
#include <zlib.h>(borderdetection.h:31, writeSVG.c:33) and#include <tiffio.h>(imio.c:30, imio2.c:31), with TIFFOpen/TIFFGetField and gzopen used. CMakeLists.txt:402find_package(ZLIB REQUIRED)and :417target_link_libraries(${MIALLIB_LIB_NAME} tiff). debian/control Build-Depends lists neither zlib1g-dev nor libtiff-dev; apt-cache shows they arrive only transitively (libgdal-dev -> libpng-dev -> zlib1g-dev; libgeotiff-dev -> libtiff-dev), which is why the package builds anyway. - Problem: Policy requires the build dependencies the package actually uses to be declared; relying on another build-dependency's dependencies is fragile - a change in GDAL's or GeoTIFF's dev package drops the header and the build breaks.
- Fix: Add zlib1g-dev and libtiff-dev to Build-Depends.
minor packaging 3. Five Build-Depends are unused: swig, libfann-dev, libjsoncpp-dev, libssl-dev, libopenblas-dev ◂
- Files:
debian/control (Build-Depends, and libmiallib-dev Depends for libopenblas-dev); CMakeLists.txt:266 - Basis: checked, in the package or with a reference tool
- Evidence: Only core/c is built (single
add_library(... SHARED ${SOURCES}), no add_subdirectory, so swig/ is never run); grep of CMakeLists.txt and core/c finds no find_package(SWIG), FIND_PACKAGE(BLAS/LAPACK)/cblas use (set(BLA_VENDOR OpenBLAS)is set but never consumed), and no fann, jsoncpp or openssl header or symbol. libopenblas-dev is also listed in libmiallib-dev Depends although no installed header includes cblas. - Problem: Unnecessary build dependencies slow every build and can create build-dependency cycles; the list appears to have been copied from the README/pyjeo instructions rather than from what this source builds.
- Fix: Drop swig, libfann-dev, libjsoncpp-dev, libssl-dev and libopenblas-dev from Build-Depends, and libopenblas-dev from libmiallib-dev Depends (keep the other -dev dependencies that the exported CMake target needs).
minor packaging 4. debian/watch is in the old version 4 format ◂
- Files:
debian/watch - Basis: found by the review tooling's own checks
- Evidence:
version=4 - Problem: Version 5 is the current format of
debian/watch. - Fix: Convert it to version 5; a mechanical conversion is under Proposed changes.
Verified ◂
- core/doc/miallib_logo.xcf: GIMP image source (the preferred form) for core/doc/miallib_logo.png; documentation artwork, covered by the GPL-3+ Files: * stanza, not installed or built, so not a DFSG problem.
- The prescan's 'copyright holder' in core/c/ced.c:97 is a parameter comment -
IMAGE *ref: binary UCHAR image with reference pixels set to 1- not a holder or a licence term. - core/c/uswilk.c: names Michael Wilkinson, Arnold Meijster and Jos Roerdink as copyright holders, all three are named in the Files: * Copyright field, and the file header states GPL-3+.
- core/c: all Copyright lines found across the tree name the European Union (Joint Research Centre); the only exception is uswilk.c's original authors, named above. Sampled headers of fifo.c, pqueue.c, herk.c, hull.c, writeShapeFile.c confirmed the standard GPL-3+ block.
- cmake/modules/FindPROJ.cmake (BSD-3-clause, three holders), cmake/modules/FindGeoTIFF.cmake (Apache-2.0, CNES) and core/doc/doxy2swig.py (BSD-2-clause, Thon/Ramachandran, file says 'License: BSD style') each have a Files stanza whose holders match the notices and whose full licence text is present; stanzas appear after Files: * so they override it.
- cmake/modules/FindSHAPELIB.cmake has no copyright/licence header of its own; as an unmarked file of the project it falls under the Files: * GPL-3+ stanza.
- The Python modules under swig/python/ and the SWIG .i files carry no individual notices; the project COPYING (GPL-3) plus Files: * covers them, and swig/python/setup.py's 'Exact licence to be defined' is corrected by debian/patches/setup-license.patch to GPL-3.0-or-later.
- No other COPYING/LICENSE/NOTICE/AUTHORS file exists in the tree, and no built objects, archives, PDFs, minified files or bytecode are shipped (glob for .o/.so/.a/.pyc/.jar/.pdf found none); documentation sources for swig/python/doc are present.
- debian/copyright is DEP-5 with the canonical Format URL, correct later-stanza overrides, and no Files-Excluded needed; the remaining restriction is discussed in the blocker, not as a separate copyright-file fault.
- Packaging read in full: control, rules, changelog, source/format, source/lintian-overrides, gbp.conf, upstream/metadata, .gitlab-ci.yml, .install files, libmiallib2.symbols, patches/series and both patches. compat 13 with dh, cmake buildsystem in build/, RelWithDebInfo, hardening=+all, dh_makeshlibs -v$(UPSTREAM_VERSION), symbols with #PACKAGE#/#MINVER#, Multi-Arch: same, Standards-Version 4.7.4 (current), experimental version for the SONAME change, Forwarded URLs on both patches. No maintainer scripts, *.maintscript or debian/tests.
- uscan found the packaged version as the newest upstream release (upstream
2.0.1, packaged2.0.1). - Every pointer of
debian/copyrightto /usr/share/common-licenses names a file that is there (Apache-2.0,GPL-3).
Not confirmed ◂
- The symbols file cannot be checked against the built library: completeness for 2.0.1 and the @Base 1.1.5/1.1.7 versions carried over from the libmiallib1 era would only show up in a build.
- Whether cmake/modules/FindSHAPELIB.cmake was copied from another project (e.g. GDAL's MIT-licensed module) and should therefore carry that attribution; the file has no header and no source was available to compare.
Proposed: debian/watch in version 5 format ◂
debian/watch is in an old format. This is the conversion made by uscan --update-watchfile, which has not been run against the upstream site: some defaults differ in version 5, so test it with uscan --report before use.
Version: 5
Template: Github
Dist: https://github.com/ec-jrc/jeolib-miallib
Uploader's response to the LLM review
The uploader hasn't responded yet, and is welcome to at any time. The 24-hour hold has ended, so the package is now open for review as usual.
Review Information
accepted — allocated to mechtilde 14 days ago, started 14 days ago, completed 14 days ago.
Final Comment
Superseded by review of later version