[From nobody Fri Jul  3 18:39:08 2026
Received: (at submit) by bugs.debian.org; 31 Jan 2026 19:19:41 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-8.9 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FOURLA,
 FREEMAIL_FROM,GMAIL,HAS_PACKAGE,NML_ADSP_CUSTOM_MED,RCVD_IN_PBL,
 RDNS_NONE,SPF_SOFTFAIL,SPOOFED_FREEMAIL,SPOOFED_FREEMAIL_NO_RDNS,
 SPOOF_GMAIL_MID,XMAILER_REPORTBUG autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 38; hammy, 149; neutral, 50; spammy,
 1. spammytokens:0.999-1--Across hammytokens:0.000-+--XDebbugsCc,
 0.000-+--X-Debbugs-Cc, 0.000-+--HTo:N*Debian, 0.000-+--H*Ad:N*Bug,
 0.000-+--H*Ad:N*Tracking
Return-path: &lt;jonathan.brandmeyer@gmail.com&gt;
Received: from [73.78.204.119] (port=51458 helo=[127.0.1.1])
 by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;jonathan.brandmeyer@gmail.com&gt;) id 1vmGDY-00CTMp-1K
 for submit@bugs.debian.org; Sat, 31 Jan 2026 19:01:13 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Jonathan Brandmeyer &lt;jonathan.brandmeyer@gmail.com&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: libpnetcdf-dev: Build system paths leak into pnetcdf.pc
Message-ID: &lt;176988607101.156304.3405410482980562006.reportbug@scylla&gt;
X-Mailer: reportbug 13.2.0
Date: Sat, 31 Jan 2026 12:01:11 -0700
Delivered-To: submit@bugs.debian.org

Package: libpnetcdf-dev
Version: 1.14.0-2
Severity: normal
X-Debbugs-Cc: jonathan.brandmeyer@gmail.com

Dear Maintainer,

The pkg-config support file /usr/lib/x86_64-linux-gnu/pkgconfig/pnetcdf.pc leaks
some incorrect paths into the config.  In particular, it contains the following:

```
# prefix can be changed by &quot;make install prefix=/path&quot;
prefix=/build/reproducible-path/pnetcdf-1.14.0/debian/tmp//usr
# exec_prefix can be changed by &quot;make install exec_prefix=/path&quot;
exec_prefix=/build/reproducible-path/pnetcdf-1.14.0/debian/tmp//usr
```

Both prefix and exec_prefix should be set to /usr on the host's machine. As a
consequence of this leak,

```
$ pkg-config --cflags pnetcdf
-I/build/reproducible-path/pnetcdf-1.14.0/debian/tmp/usr/include
```

Programs which actively check the validity of this path, such as the Model for
Prediction Across Scales (MPAS) CMake-based build system produce an error.


-- System Information:
Debian Release: 13.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.63+deb13-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libpnetcdf-dev depends on:
ii  libpnetcdf6  1.14.0-2

libpnetcdf-dev recommends no packages.

libpnetcdf-dev suggests no packages.

-- no debconf information
]