Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1280338

Bug#1126726: libpnetcdf-dev: Build system paths leak into pnetcdf.pc

Path csiph.com!pasdenom.info!usenet.goja.nl.eu.org!news.nntp4.net!news.hispagatos.org!srl.newsdeef.eu!news.corradoroberto.it!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Jonathan Brandmeyer <jonathan.brandmeyer@gmail.com>
Newsgroups linux.debian.bugs.dist
Subject Bug#1126726: libpnetcdf-dev: Build system paths leak into pnetcdf.pc
Date Sat, 31 Jan 2026 20:30:02 +0100
Message-ID <MjoPo-eLDY-7@gated-at.bofh.it> (permalink)
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Sat Jan 31 19:21:09 2026
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score 1.504
Reply-To Jonathan Brandmeyer <jonathan.brandmeyer@gmail.com>, 1126726@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc jonathan.brandmeyer@gmail.com, debian-science-maintainers@lists.alioth.debian.org
X-Debian-Pr-Message report 1126726
X-Debian-Pr-Package libpnetcdf-dev
X-Debian-Pr-Source pnetcdf
Content-Type text/plain; charset="us-ascii"
MIME-Version 1.0
Content-Transfer-Encoding 7bit
X-Mailer reportbug 13.2.0
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1950570
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 49
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sat, 31 Jan 2026 12:01:11 -0700
X-Original-Message-ID <176988607101.156304.3405410482980562006.reportbug@scylla>
Xref csiph.com linux.debian.bugs.dist:1280338

Show key headers only | View raw


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 "make install prefix=/path"
prefix=/build/reproducible-path/pnetcdf-1.14.0/debian/tmp//usr
# exec_prefix can be changed by "make install exec_prefix=/path"
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

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#1126726: libpnetcdf-dev: Build system paths leak into pnetcdf.pc Jonathan Brandmeyer <jonathan.brandmeyer@gmail.com> - 2026-01-31 20:30 +0100

csiph-web