DFSG NEW Queue

DFSG, Licensing & New Packages Team

Review: pg-roaringbitmap 1.3.0-1

Package Information

DescriptionRoaringBitmap extension for PostgreSQL

Roaring bitmaps are compressed bitmaps which tend to outperform conventional compressed bitmaps such as WAH, EWAH or Concise. In some instances, roaring bitmaps can be hundreds of times faster and they often offer significantly better compression. They can even be faster than uncompressed bitmaps.

MaintainerDebian PostgreSQL Maintainers <team+postgresql@tracker.debian.org>
Changed ByChristoph Berg <myon@debian.org>
Sponsormyon@debian.org
Distributionunstable
Architectureany
VCSgit: https://salsa.debian.org/postgresql/pg-roaringbitmap.git (browse)
Popcon Installs8
Binary NEWYes (new binary packages of a source already in sid)
Trackerhttps://tracker.debian.org/pkg/pg-roaringbitmap
Uploaded3 hours ago

Potential Library Transition

This binary NEW upload drops binary packages that currently have reverse dependencies in unstable. A library transition may need to be coordinated with the Release Team before accepting this package.

Dropped BinaryRdeps in unstable
postgresql-18-roaringbitmap1: postgresql-18-pgfaceting

The maintainer says no transition is needed and asked us to review anyway.

The matching pgfaceting upload is also waiting in NEW.

— myon, 2 hours ago

New Package Report

.changes◂
Sourcepg-roaringbitmap
Version1.3.0-1
Changed-ByChristoph Berg <myon@debian.org>
Architecturesource amd64
Distributionunstable
DateTue, 24 Nov 2026 15:02:01 +0100
Changelog◂
pg-roaringbitmap (1.3.0-1) unstable; urgency=medium
 .
   * New upstream version 1.3.0.
   * Upload for PostgreSQL 19.
   * Copyright overhaul.
.dsc◂
Priorityoptional
Componentmain
Package-Listpostgresql-19-roaringbitmap deb database optional arch=any
Sectiondatabase
debian/copyright◂
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: pg-roaringbitmap
Source: https://github.com/ChenHuajun/pg_roaringbitmap

Files: *
Copyright:
 Copyright (C) 2018-2024 Chen Huajun <chjischj@163.com>
 fork from https://github.com/zeromax007/gpdb-roaringbitmap:
 Copyright (C) 2017 zeromax@live.cn
License: Apache-2.0

Files: roaring.h
Copyright:
 2016-2022 The CRoaring authors
 2016-2024 Daniel Lemire <lemire@gmail.com>
 (https://github.com/RoaringBitmap/CRoaring)
License: Apache-2.0 or Expat

Files: roaring.c
Copyright:
 2016-2022 The CRoaring authors
 2016-2024 Daniel Lemire <lemire@gmail.com>
 (https://github.com/RoaringBitmap/CRoaring)
 2001-2004 Idiap Research Institute (Ronan Collobert, Samy Bengio, Johnny Mariethoz)
 2006 Idiap Research Institute (Samy Bengio)
 2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou, Iain Melvin, Jason Weston)
 2011-2012 NEC Laboratories America (Koray Kavukcuoglu)
 2011-2013 NYU (Clement Farabet)
 2011-2014 Idiap Research Institute (Ronan Collobert)
 2012-2014 Deepmind Technologies (Koray Kavukcuoglu)
 2014 Facebook, Inc (Soumith Chintala)
 2016 Facebook, Inc (Adam Paszke)
License: Apache-2.0 or Expat and BSD-3-Clause
Comment: roaring.c is an amalgamation of CRoaring sources.  The parts taken
 from src/isadetection.c are licensed under BSD-3-Clause; the rest of the
 file may be used under either Apache-2.0 or Expat.

Files: debian/*
Copyright:
 2026 Christoph Berg <myon@debian.org>
License: Apache-2.0

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 Apache-2.0 is available at
 /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.

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 names of Facebook, Deepmind Technologies, NYU, NEC Laboratories
 America and IDIAP Research Institute 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 OWNER 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.

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 pg-roaringbitmap version 1.3.0-1

Summary

  • Licensing is DFSG-compliant and debian/copyright is 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

All licences in the tree are DFSG-free (Apache-2.0, Expat/MIT, BSD-3-Clause) and the copyright holders found in the files are named in debian/copyright: Chen Huajun and zeromax for the extension, the CRoaring authors and Daniel Lemire for roaring.c/roaring.h, and the pytorch simd.h holders (Facebook, Idiap, NEC, NYU, Deepmind) for the BSD-3-Clause part of roaring.c. The licence texts are present (Apache-2.0 via /usr/share/common-licenses, Expat and BSD-3-Clause in full). One stanza is nevertheless inaccurate: the License field for roaring.c uses the wrong operator precedence, so it grants use of the whole file under Apache-2.0 alone, although the BSD-3-Clause part is not dual-licensed.

Packaging

Packaging is clean: debhelper compat 13 with dh $@ --with pgxs_loop, control generated from control.in for PostgreSQL 19, correct Build-Depends (postgresql-server-dev-all, postgresql-all <!nocheck>, architecture-is-64-bit, all present in the archive), sources 3.0 (quilt) with no patches, an installcheck autopkgtest, 4.7.4 Standards-Version (matching the reviewing system's Policy 4.7.4.1), a sane changelog and correct Vcs-*/Homepage fields. README.md is installed via dh_installdocs. No maintainer scripts or other packaging defects were found.

Issues

blocker licensing 1. Files: roaring.c licence expression has the wrong precedence: it permits Apache-2.0 alone for the whole file, including its BSD-3-Clause part ◂
  • Files: debian/copyright:33
  • Basis: checked, in the package or with a reference tool
  • Evidence: License: Apache-2.0 or Expat and BSD-3-Clause, with the stanza's own Comment: "The parts taken from src/isadetection.c are licensed under BSD-3-Clause; the rest of the file may be used under either Apache-2.0 or Expat." copyright-format 7.2: "A or B and C means A or (B and C)".
  • Problem: Without a comma, the field is read as Apache-2.0 OR (Expat AND BSD-3-Clause), i.e. it states that the whole of roaring.c may be taken under Apache-2.0 alone. That is not what the copyright holders granted: the src/isadetection.c portion (roaring.c:13556-13900) is BSD-3-Clause only, as the Comment itself says. debian/copyright therefore does not accurately describe the licensing of a file that is compiled into the shipped extension, contrary to Policy 2.3 and copyright-format 7.2.
  • Fix: Write License: Apache-2.0 or Expat, and BSD-3-Clause; the comma before and is the format's way of expressing (Apache-2.0 or Expat) AND BSD-3-Clause, as in copyright-format 7.2's own Perl+BSD example.
Verified ◂
  • Read debian/copyright in full: DEP-5 with the exact Format URL; stanzas for , roaring.h, roaring.c and debian/; Apache-2.0 pointer to /usr/share/common-licenses/Apache-2.0; Expat and BSD-3-Clause texts present and matching the file notices.
  • Inventoried the 46 upstream files (unpacked tree and orig tarball agree; the tarball contains no debian/ directory) and grepped the whole tree for Copyright, (C), ©, SPDX-License-Identifier, Licensed under, Permission is hereby granted, GNU/Apache/MPL/BSD/MIT, All rights reserved, public domain and non-commercial/ND/NC wording: only the CRoaring Apache/MIT headers in roaring.c/roaring.h and the BSD-3-Clause header of the isadetection.c part of roaring.c (roaring.c:13556-13600) contain licence text; no non-free terms and no GPL-family code.
  • roaring.c:13562-13570 holders (Facebook 2014/2016, Idiap 2001-2014, NEC 2006-2012, NYU 2011-2013, Deepmind 2012-2014) are all named in the roaring.c stanza, and the BSD-3-Clause text including its clause 3 matches the file verbatim.
  • roaring.c and roaring.h are the CRoaring 5.2.2 amalgamation, marked auto-generated by amalgamation.sh, which is not in the tarball; they are plain, directly compiled C (roaring_buffer_reader.c includes roaring.c) whose holders and licences are declared, so they are source, not built artefacts.
  • No other file carries a copyright or licence notice; roaring_buffer_reader.c, roaring64_buffer_reader.c, roaringbitmap.c, roaringbitmap64.c, the SQL/expected files, benchmark/ and docker-example/ are covered by Files: * and no additional holder appears in them (the prescan's author check also found every holder named).
  • Read every file under debian/: compat 13, dh --with pgxs_loop, no debian/patches, 3.0 (quilt), ${misc:Depends}/${postgresql:Depends}/${shlibs:Depends} and ${postgresql:Breaks} named, README.md installed by override_dh_installdocs, installcheck autopkgtest, 4.7.4 Standards-Version, 1.3.0-1 unstable changelog and valid Vcs-* fields.
  • apt-cache: postgresql-all, postgresql-server-dev-all, postgresql-19, postgresql-server-dev-19 and postgresql-common-dev exist in the archive; architecture-is-64-bit is provided by architecture-properties.
  • Policy 4.7.4.1 is the reviewing system's Policy, so Standards-Version 4.7.4 (first two components 4.7) is current; copyright-format 7.2 was read for the precedence rule.
  • uscan found the packaged version as the newest upstream release (upstream 1.3.0, packaged 1.3.0).
  • Every pointer of debian/copyright to /usr/share/common-licenses names a file that is there (Apache-2.0).
Not confirmed ◂
  • No build or autopkgtest was run (read-only review). debian/tests/control depends only on postgresql-common-dev and @; pg_buildext/pgxs_loop are not installed on the reviewing system, so I could not confirm whether pg_buildext installcheck needs anything from Build-Depends that autopkgtest would not install.
  • Could not check file modes (the executable bit of debian/tests/installcheck); lintian was run separately.
  • No network access: the upstream provenance of the 2017 zeromax/gpdb-roaringbitmap code and the new 2026 contributors' copyright status rest on upstream's own statements.
Proposed changes ◂

None.

Uploader's response to the LLM review

Lol wtf, a blocker because of a missing comma in a line whose syntax no human knows or would ever interpret in one or the other way?

— Christoph Berg (myon), 1 hour ago

Review Information

accepted — allocated to mechtilde 0 hours ago, started 0 hours ago, completed 0 hours ago.

Final Comment

Back to Dashboard | View all reviews for this package