Your message dated Sun, 01 Mar 2026 18:49:02 +0000
with message-id <[email protected]>
and subject line Bug#1128056: fixed in primecount 8.2+ds-1
has caused the Debian Bug report #1128056,
regarding primecount.pc has empty Version field
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1128056: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128056
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: primecount
Version: 8.1+ds-1
Severity: normal
Tags: patch upstream

The installed primecount.pc pkg-config file has an empty Version field.

Current (broken) primecount.pc:

  prefix=/usr
  bindir=/usr/bin
  libdir=/usr/lib/x86_64-linux-gnu
  includedir=/usr/include

  Name: primecount
  Description: Fast C/C++ prime counting function library
  Version:
  Requires.private: primesieve >= 11.0
  Cflags: -I${includedir}
  Libs: -L${libdir} -lprimecount
  Libs.private: -lgomp -lpthread

The Version field is empty because the upstream primecount.pc.in template
uses @PRIMECOUNT_VERSION@, but CMakeLists.txt never defines a variable
called PRIMECOUNT_VERSION. The version is set via:

  project(primecount VERSION 8.1)

which creates PROJECT_VERSION (= "8.1"), but not PRIMECOUNT_VERSION.
CMake's configure_file substitutes the undefined @PRIMECOUNT_VERSION@
with an empty string.

This has been fixed upstream on 2026-02-01 with the commit
"Fix missing version in .pc file":

  https://github.com/kimwalisch/primecount/commit/HEAD

The fix changes primecount.pc.in from:

  Version: @PRIMECOUNT_VERSION@

to:

  Version: @PROJECT_VERSION@

Impact: Any software using "pkg-config --modversion primecount" gets an
empty string. Version constraints in Requires or Requires.private from
other packages that depend on primecount will also fail to evaluate
correctly.

Suggested fix: Either pick up the upstream fix by updating to a newer
release, or backport the one-line change to primecount.pc.in:

--- a/primecount.pc.in
+++ b/primecount.pc.in
@@ -6,7 +6,7 @@
 Name: primecount
 Description: Fast C/C++ prime counting function library
-Version: @PRIMECOUNT_VERSION@
+Version: @PROJECT_VERSION@
 Requires.private: primesieve >= 11.0

How to reproduce:

  apt install libprimecount-dev
  pkg-config --modversion primecount
  # Returns empty string instead of "8.1"
  cat /usr/lib/x86_64-linux-gnu/pkgconfig/primecount.pc
  # Observe "Version: " with no value


-- System Information:
Debian Release: forky/sid
  APT prefers resolute
  APT policy: (500, 'resolute')
Architecture: amd64 (x86_64)

Kernel: Linux 6.6.87.2-microsoft-standard-WSL2 (SMP w/24 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

--- End Message ---
--- Begin Message ---
Source: primecount
Source-Version: 8.2+ds-1
Done: Jerome Benoit <[email protected]>

We believe that the bug you reported is fixed in the latest version of
primecount, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jerome Benoit <[email protected]> (supplier of updated primecount package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 01 Mar 2026 18:22:06 +0000
Source: primecount
Architecture: source
Version: 8.2+ds-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Math Team <[email protected]>
Changed-By: Jerome Benoit <[email protected]>
Closes: 1128056
Changes:
 primecount (8.2+ds-1) unstable; urgency=medium
 .
   * New upstream version (Closes: #1128056).
Checksums-Sha1:
 e2cafa2d5097e6a78aa4d6ec98e055dc36654963 3123 primecount_8.2+ds-1.dsc
 19555ade29af5083521b681f322dd070fab93a56 870416 primecount_8.2+ds.orig.tar.xz
 778690d229b7b4f04c0d8a2cc40d81e436f12deb 7728 primecount_8.2+ds-1.debian.tar.xz
 d7f083ebb29080407ef8d4e00f015d30704df224 8155 
primecount_8.2+ds-1_source.buildinfo
Checksums-Sha256:
 23046841e84584369e92f181309f630bf594479cbbe5bf3fba9fa430282308b8 3123 
primecount_8.2+ds-1.dsc
 36c9133444c3a30e51ce5da6537c86dc6dfccbf672bb4c00ec9e4ec254b4ed05 870416 
primecount_8.2+ds.orig.tar.xz
 b3c61145b3c09618c7d25f56731a9ad6f16a8f14c1a06f1bd7428ad79bbdc98a 7728 
primecount_8.2+ds-1.debian.tar.xz
 446edac23b58a3638040ead1445169a94949a62671a2ad14f3d2e0c889bbe30d 8155 
primecount_8.2+ds-1_source.buildinfo
Files:
 7314627f5f6359e74a3a2e1c818271db 3123 math optional primecount_8.2+ds-1.dsc
 5b8049b9e1e4cc36d01ddfd3da308299 870416 math optional 
primecount_8.2+ds.orig.tar.xz
 abb2d03aec1c94153b2830b13b85344b 7728 math optional 
primecount_8.2+ds-1.debian.tar.xz
 9447be7da109ad4a829c2bb0d0aa7d2b 8155 math optional 
primecount_8.2+ds-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQRJBAEBCgAzFiEEriiuFXEN/x2H5adiP5IZpn82xosFAmmkhEQVHGNhbGN1bHVz
QHJlem96ZXIubmV0AAoJED+SGaZ/NsaL68EgALRsIbkuJ8Y5aTeIdLDfIcd6EYLD
wHn4b1ZtQlGPWag/Mrsv2AbZyu9hbIhU4pH9sUtlwJf1gM8+oMGzhVu5lYwdOFpo
Tjap01Hh7Y7ghQ6QOf3d2HFbTKfvrXq9ks2rTvqlWdeLAHhqX37mfJp4uXDLyUiv
2m0JCjDngfxlJYrxnINheKREcRthO1FmTnoZQsqXBu2S7TSywbkTcZSB1XKmNyP4
G0eNy6jBPzVYFLhYTTMsblsxM0nzLG1ZZzNtCa+7IO9KTzsrs7LrCT701e4ABilx
hhPyKR9J/gD1shJ9nc5Ic0diz1Nc5EMrwVu48RV0doYnVHQFQ/w0Z92TwrgwfGgv
k5roVAN3uRbhpnxux23rwWyTJ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