DFSG NEW Queue

DFSG, Licensing & New Packages Team

postgresql-unit 7.11-1

Package Information

DescriptionSI Units for PostgreSQL

postgresql-unit implements a PostgreSQL datatype for SI units, plus byte. The base units can be combined to named and unnamed derived units using operators defined in the PostgreSQL type system. SI prefixes are used for input and output, and quantities can be converted to arbitrary scale.

MaintainerChristoph Berg <myon@debian.org>
Changed ByChristoph Berg <myon@debian.org>
Sponsormyon@debian.org
Distributionunstable
Architectureany
VCSgit: https://github.com/df7cb/postgresql-unit.git (browse)
Popcon Installs44
Binary NEWYes (new binary packages of a source already in sid)
Trackerhttps://tracker.debian.org/pkg/postgresql-unit
Uploaded2 hours ago

New Package Report

.changes◂
Sourcepostgresql-unit
Version7.11-1
Changed-ByChristoph Berg <myon@debian.org>
Architecturesource amd64
Distributionunstable
DateWed, 25 Nov 2026 18:01:23 +0100
Changelog◂
postgresql-unit (7.11-1) unstable; urgency=medium
 .
   * Update to definitions.units 3.26.
   * Accept _ in numeric literals. (#46 by Ken Harris, thanks!)
   * Upload for PostgreSQL 19.
.dsc◂
Componentmain
Package-Listpostgresql-19-unit deb database optional arch=any
Sectiondatabase
Priorityoptional
debian/copyright◂
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: postgresql-unit
Source: https://github.com/df7cb/postgresql-unit

Files: *
Copyright: 2016-2023 Christoph Berg <myon@debian.org>
License: GPL-2+

Files: definitions.units
       definitions.units.patch
       definitions.units.patched
Copyright: 1996-2002, 2004-2020, 2022, 2024, 2026
           Free Software Foundation, Inc.
License: GPL-3+

Files: elements.units
Copyright: 2024 Free Software Foundation, Inc.
License: GPL-3+

Files: unitparse.tab.c
       unitparse.tab.h
Copyright: 1984, 1989-1990, 2000-2015, 2018-2021
           Free Software Foundation, Inc.
License: GPL-3+ with Bison-2.2 exception

Files: debian/*
Copyright: 2016-2026 Christoph Berg <myon@debian.org>
License: GPL-2+

License: GPL-2+
 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 2 of the License, or
 (at your option) any later version.
 .
 This program 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.
 .
 On Debian GNU/Linux systems, the complete text of the GNU General
 Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'.

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 program 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 GNU/Linux systems, the complete text of the GNU General
 Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.

License: GPL-3+ with Bison-2.2 exception
 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 program 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 GNU/Linux systems, the complete text of the GNU General
 Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
 .
 As a special exception, you may create a larger work that contains
 part or all of the Bison parser skeleton and distribute that work
 under terms of your choice, so long as that work isn't itself a
 parser generator using the skeleton or a modified version thereof
 as a parser skeleton.  Alternatively, if you modify or redistribute
 the parser skeleton itself, you may (at your option) remove this
 special exception, which will cause the skeleton and the resulting
 Bison output files to be licensed under the GNU General Public
 License without this special exception.
 .
 This special exception was added by the Free Software Foundation in
 version 2.2 of Bison.

DFSG Assistant LLM REVIEW 2 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 0 hours ago.

Report◂

DFSG NEW review for postgresql-unit version 7.11-1

Summary

  • Licensing is DFSG-compliant and debian/copyright is accurate: No
  • Packaging is of good quality: Yes
  • Issues: 2 blocker, 0 important, 0 minor
  • debian/watch: version 5
  • debian/copyright: machine-readable
  • Scan before the review: nothing found

Licensing

All licences in the tree are free and mutually compatible (GPL-2+ for the extension code, GPL-3+ for the GNU units data, PostgreSQL licence for the copied PostgreSQL code), so there is no DFSG problem. debian/copyright is nevertheless inaccurate for two groups of files that are shipped in the binary package: float8out_unit.h is a trimmed copy of PostgreSQL's float8out_internal whose PostgreSQL copyright and licence notice was removed, and unit_units.data/unit_prefixes.data are database dumps of GNU units' GPL-3+ definitions.units but are matched only by the Files: * stanza as Christoph Berg / GPL-2+. The per-file notices of the extension's own code say GPL-2+, which the copyright file follows; README.md and NEWS.md describe the program as GPL-3+, a compatible difference not reported as a fault.

Packaging

Standard PostgreSQL extension packaging: debhelper compat 13 with dh --with pgxs, correct ${misc:Depends}/${shlibs:Depends}/${postgresql:Depends} substvars and ${postgresql:Breaks} at compat 13, Standards-Version 4.7.4 against Policy 4.7.4.1, build-time tests deliberately deferred to an autopkgtest that installs postgresql-common-dev and the binary package, debian/NEWS for the 'h' change, and an upstream/metadata file. No patches are needed and none are present. Nothing worth reporting was found.

Issues

blocker licensing 1. float8out_unit.h copies PostgreSQL's float8out_internal with the PostgreSQL copyright and licence removed ◂
  • Files: float8out_unit.h:1-2, debian/copyright:5-9
  • Basis: checked, in the package or with a reference tool
  • Evidence: File begins /* minimal version of PG 9.6's float8out_internal function for use in 9.4 and 9.5 */ and then reproduces the function body with no copyright or licence notice of its own; debian/copyright matches it only with Files: * / Copyright: 2016-2023 Christoph Berg / License: GPL-2+. The PostgreSQL licence (reproduced on this system in /usr/share/doc/rsync/copyright, License: PostgreSQL) requires that the above copyright notice and this paragraph and the following paragraphs appear in all copies.
  • Problem: The file is PostgreSQL code, is #included by unit.c and compiled into unit.so. Its PostgreSQL Global Development Group and Regents of the University of California copyright notices are absent both from the file and from debian/copyright, contrary to Policy 2.3, and the PostgreSQL licence is not in /usr/share/common-licenses, so its text has to be given in debian/copyright. Attribution to Christoph Berg alone under GPL-2+ is therefore wrong for a file the binary package ships.
  • Fix: Add a Files: float8out_unit.h stanza naming the PostgreSQL Global Development Group and The Regents of the University of California, with a stand-alone License: PostgreSQL paragraph holding the full licence text (or stop copying the function and use the server's float8out_internal).
blocker licensing 2. unit_units.data and unit_prefixes.data are GNU units' GPL-3+ data but are covered only by Files: * as Christoph Berg / GPL-2+ ◂
  • Files: unit_units.data:1559, unit_prefixes.data:1, debian/copyright:5-18, debian/../Makefile
  • Basis: inferred from what was read, not seen directly
  • Evidence: unit_units.data line 1559 is btu_IT\t1055.05585262000022 m^2*kg/s^2\t\\N\tcal_IT lb (degF) / gram K\t\\N, reproducing the definition at definitions.units:4894, and unit_prefixes.data begins quetta\t1e+30\t1e30\t\\N, i.e. definitions.units:467; load-units.pl reads definitions.units.patched and dumps the tables, and the Makefile's DATA = unit_prefixes.data unit_units.data installs both. debian/copyright's Files: definitions.units / definitions.units.patch / definitions.units.patched stanza names Free Software Foundation, Inc. under License: GPL-3+, but the dumps are matched only by Files: * (2016-2023 Christoph Berg, GPL-2+).
  • Problem: These are mechanically extracted copies of the FSF's GPL-3+ units database and are installed in postgresql-19-unit, so Policy 2.3 requires the FSF notice to appear in debian/copyright for them, and their licence short name is GPL-3+, not GPL-2+ (GPL-3+ data cannot be redistributed under GPL-2+ terms). The source-only definitions.unresolved is a list drawn from the same database and is likewise attributed only to Christoph Berg, though Policy does not require its holder because it is not installed.
  • Fix: Add unit_units.data, unit_prefixes.data and definitions.unresolved to the existing definitions.units GPL-3+/FSF stanza (or give them their own stanza), noting that they are generated from definitions.units by load-units.pl.
Verified ◂
  • Read debian/copyright in full: DEP-5 with the correct Format URL; stanzas for Files: , definitions.units/.patch/.patched, elements.units, unitparse.tab.c/.h, debian/, and stand-alone GPL-2+, GPL-3+ and GPL-3+ with Bison-2.2 exception texts.
  • Read every file under debian/ except debian/watch (checked separately): control, control.in, rules, changelog, source/format, tests/control, tests/installcheck, NEWS, gitlab-ci.yml, pgversions, upstream/metadata, copyright.
  • No debian/patches and no debian/patches/series; .pc/applied-patches is empty, so the tree is upstream plus Debian's files.
  • Per-file notices: unit.c, unitparse.l, unitparse.y, unit--1.sql, unit--2.sql, unit--1--2.sql and unit--3.sql.in..unit--7.sql.in are GPL-2+ (c) 2016-2018/2023 Christoph Berg, matching Files: *; definitions.units and definitions.units.patched are GPL-3+ (c) FSF 1996-2026 and elements.units GPL-3+ (c) FSF 2024, matching their stanzas.
  • README.md/NEWS.md state the program is GPL-3+ while the code's own headers say GPL-2+; GPL-2+ is the notice in each file and is compatible with the GPL-3+ data, so the copyright file's choice is defensible.
  • The prescan reported only the author check ('every holder found is named in debian/copyright'); I re-read every file carrying a copyright/licence notice and agree, and re-checked the ones that carry none (float8out_unit.h, powers.c, definition/unresolved and .data files, sql/, expected/, .github/, .editorconfig, .gitignore).
  • Generated files have their inputs in the tree: definitions.units.patched from definitions.units + definitions.units.patch, powers.h from powers.c, unit_units.data/unit_prefixes.data from definitions.units.patched via load-units.pl, unit--N.sql from the .sql.in files by sed; unitparse.tab.c/.h are produced by bison at build time and absent from the tree, so the bison stanza is correct and harmless.
  • sql/.sql and expected/.out are the extension's regression inputs and expected output, with no third-party notices; .github/workflows/regression.yml and do are project CI/developer scripts with no separate licence.
  • Packaging: debhelper-compat 13, dh --with pgxs; override_dh_installdocs uses --all with README.*, which is valid at compat 13; empty override_dh_pgxs_test deliberately skips build-time tests (changelog 7.4-2) and autopkgtest runs them instead.
  • Relationships: architecture-is-64-bit is provided by architecture-properties 0.2.6+b2; postgresql-server-dev-all 297 is in the archive and satisfies >= 217~; postgresql-common-dev 297 exists; postgresql-19-unit is this package's binary; ${misc:Depends}, ${shlibs:Depends}, ${postgresql:Depends} and ${postgresql:Breaks} are all named.
  • debian/tests/control: @ means the binary package (autopkgtest spec), so the test installs postgresql-19-unit plus postgresql-common-dev, whose pg_buildext the installcheck script uses; the .dsc has Testsuite: autopkgtest and Testsuite-Triggers: postgresql-common-dev.
  • Standards-Version 4.7.4 matches Policy 4.7.4.1 in its first two components; changelog is 7.11-1, distribution unstable, with no bogus bug closures.
  • uscan found the packaged version as the newest upstream release (upstream 7.11, packaged 7.11).
  • Every pointer of debian/copyright to /usr/share/common-licenses names a file that is there (GPL-2, GPL-3).
Not confirmed ◂
  • I did not unpack postgresql-unit_7.11.orig.tar.gz, so whether definitions.units.patched and the unit_*.data files there are byte-identical to what the in-tree generators produce was not checked.
  • PostgreSQL's exact copyright years for the copied float8out_internal were not checked against PostgreSQL source (none is installed on this system); the holders to name are certain, the years are not.
Proposed changes ◂

None.

Uploader's response to the LLM review

Waiting for the uploader's response until , because the review found serious issues.

Back to Dashboard | View all reviews for this package