[From nobody Fri Jul  3 18:39:08 2026
Received: (at submit) by bugs.debian.org; 27 Jun 2023 19:27:18 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-9.1 required=4.0 tests=BAYES_00,DIGITS_LETTERS,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,MD5_SHA1_SUM,
 MURPHY_DRUGS_REL8,PGPSIGNATURE,SPF_HELO_NONE,SPF_PASS,
 T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no
 version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 46; hammy, 150; neutral, 96; spammy,
 0. spammytokens: hammytokens:0.000-+--bookworm, 0.000-+--XDebbugsCc,
 0.000-+--X-Debbugs-Cc, 0.000-+--U*reproducible-builds,
 0.000-+--reproduciblebuildslistsaliothdebianorg
Return-path: &lt;vagrant@reproducible-builds.org&gt;
Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:45658)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;vagrant@reproducible-builds.org&gt;)
 id 1qEELM-00BzPd-6O
 for submit@bugs.debian.org; Tue, 27 Jun 2023 19:27:18 +0000
Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50])
 (Authenticated sender: vagrant@aikidev.net)
 by cascadia.aikidev.net (Postfix) with ESMTPSA id F35E21ACA6
 for &lt;submit@bugs.debian.org&gt;; Tue, 27 Jun 2023 12:27:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
 d=reproducible-builds.org; s=1.vagrant; t=1687894029;
 bh=yzmHw8ShNnkqRt6HHVf73z5QLVb7nmjIp1JuHiIWve0=;
 h=From:To:Subject:Date:From;
 b=wgOk/VQMeiRFEITh8umhrll3g3cCJGTk2DWOAaKJ6Y9ko9GD+sMRnLZkLmOjbJSD9
 piNSrmfgJdwqvgPpUpA5/yxgav3uLpXjeWzCU6GwEUprphQEcjpniavOPNskh8OVnB
 YC0J/sYkIK2ZZtBNt5NeLZwKyAClojo+WuV+/CRPghv1e2rmnqKO3mM757XzblHZf7
 L1C58SbC/o/pWq+S7iGEFtoDoffayN3rniCHjDDxOXKKf4buwG69xT060A9PUOc8EN
 fHvHTFYu08EnN+UGaWNrhf1xxc5YDk5NR3nVq6NHV3Ry4oHwQ1ryng2Tfn6NHIDKp0
 7lNnFvihXHLfA==
From: Vagrant Cascadian &lt;vagrant@reproducible-builds.org&gt;
To: submit@bugs.debian.org
Subject: pnetcdf: reproducible-builds: timestamp and build path embedded
 pnetcdf-config
Date: Tue, 27 Jun 2023 12:27:01 -0700
Message-ID: &lt;87zg4kzoxm.fsf@wireframe&gt;
MIME-Version: 1.0
Content-Type: multipart/signed; boundary=&quot;==-=-=&quot;;
 micalg=pgp-sha512; protocol=&quot;application/pgp-signature&quot;
Delivered-To: submit@bugs.debian.org

--==-=-=
Content-Type: multipart/mixed; boundary=&quot;=-=-=&quot;

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Source: pnetcdf
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The build date is embedded in /usr/bin/pnetcdf-config:

  https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffos=
cope-results/pnetcdf.html

  CFLAGS=3D&quot;-g=C2=B7-O2=C2=B7-ffile-prefix-map=3D/build/1st/pnetcdf-1.12.3=
=3D.=C2=B7-fstack-protector-strong...
  vs.
  CFLAGS=3D&quot;-g=C2=B7-O2=C2=B7-ffile-prefix-map=3D/build/2/pnetcdf-1.12.3/2n=
d=3D.=C2=B7-fstack-protector-strong...

  config_date=3D&quot;Mon=C2=B7Jun=C2=B719=C2=B719:34:17=C2=B7-12=C2=B72023&quot;
  vs.
  config_date=3D&quot;Tue=C2=B7Jun=C2=B720=C2=B721:34:17=C2=B7+14=C2=B72023&quot;

The attached patch fixes this by replacing these strings with
placeholder values in debian/rules.

According to my local tests, with this patch applied pnetcdf should
build reproducibly on tests.reproducible-builds.org once it migrates to
debian/trixie!  Unfortunately, there are still other outstanding issues
with build paths, which are tested in unstable or experimental.

Thanks for maintaining pnetcdf!

live well,
  vagrant

--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0001-debian-rules-Remove-timestamp-and-build-path-from-pn.patch
Content-Transfer-Encoding: quoted-printable

From=20f19bcebd1114f70775a3596b33b16f89dec26070 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian &lt;vagrant@reproducible-builds.org&gt;
Date: Tue, 27 Jun 2023 12:16:39 -0700
Subject: [PATCH] debian/rules: Remove timestamp and build path from
 pnetcdf-config in dh_auto_install override.

https://reproducible-builds.org/docs/timestamps/
https://reproducible-builds.org/docs/build-path/
=2D--
 debian/rules | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/rules b/debian/rules
index d66a066..068775a 100755
=2D-- a/debian/rules
+++ b/debian/rules
@@ -68,3 +68,4 @@ override_dh_auto_test:
 override_dh_auto_install:
 	$(MAKE) -C build-static install DESTDIR=3D$(DESTDIR)
 	find $(DESTDIR) -name '*.la' -delete
+	sed -i -e 's,config_date=3D.*,config_date=3DBUILDDATE,g' -e 's,$(CURDIR),=
BUILDPATH,g' ./debian/tmp/usr/bin/pnetcdf-config
=2D-=20
2.39.2


--=-=-=--

--==-=-=
Content-Type: application/pgp-signature; name=&quot;signature.asc&quot;

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

iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZJs4BQAKCRDcUY/If5cW
qkGrAP0efp+gdcQETeraAMeu7+DfKqi9KFYkAlazxCMi9x+YhgEAxM5Tw92RwjoU
Jbqy9dXdWKJHdl+GjSfU4kEQFNcbCAk=
=qNui
-----END PGP SIGNATURE-----
--==-=-=--
]