1020815">

Debian Bug report logs - #1020815
libapache2-mod-python: reproducible-builds: Embedded build paths in mod_python.so

version graph

Package: src:libapache2-mod-python; Maintainer for src:libapache2-mod-python is Debian Python Team <team+python@tracker.debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Tue, 27 Sep 2022 01:48:01 UTC

Severity: normal

Tags: patch

Fixed in version libapache2-mod-python/3.5.0.1-1

Done: Stefano Rivera <stefanor@debian.org>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Python Team <team+python@tracker.debian.org>:
Bug#1020815; Package src:libapache2-mod-python. (Tue, 27 Sep 2022 01:48:03 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian Python Team <team+python@tracker.debian.org>. (Tue, 27 Sep 2022 01:48:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: libapache2-mod-python: reproducible-builds: Embedded build paths in mod_python.so
Date: Mon, 26 Sep 2022 18:45:19 -0700
[Message part 1 (text/plain, inline)]
Source: libapache2-mod-python
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The build path is embedded in /usr/lib/apache2/modules/mod_python.so

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/libapache2-mod-python.html

  /build/1st/libapache2-mod-python-3.5.0+git20211031.e6458ec/src/util.c:339
  vs.
  /build/2/libapache2-mod-python-3.5.0+git20211031.e6458ec/2nd/src/util.c:339

The attached patch to debian/rules fixes this by adding a dh_auto_build
override which passes -ffile-prefix-map via APXSFLAGS.

According to my local tests, with this patch applied
libapache2-mod-python should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining libapache2-mod-python!

live well,
  vagrant
[0001-debian-rules-Add-dh_auto_build-override-to-pass-ffil.patch (text/x-diff, inline)]
From 22481b9000ea20640cb2e6e231c5f2d5dd21df9b Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 27 Sep 2022 01:37:14 +0000
Subject: [PATCH] debian/rules: Add dh_auto_build override to pass
 -ffile-prefix-map via APXSFLAGS to avoid embedding build paths.

https://reproducible-builds.org/docs/build-path/
---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index 39a81df..8a2944c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,9 @@ PYTHON=/usr/bin/python3
 override_dh_auto_configure:
 	dh_auto_configure -- --with-apxs=/usr/bin/apxs2 --with-python=$(PYTHON)
 
+override_dh_auto_build:
+	dh_auto_build -- APXSFLAGS="-Wc,-ffile-prefix-map=$(CURDIR)=."
+
 execute_after_dh_auto_build-indep:
 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
 	sphinx-build -b html -aE Doc doc-html
-- 
2.37.2

[signature.asc (application/pgp-signature, inline)]

Reply sent to Stefano Rivera <stefanor@debian.org>:
You have taken responsibility. (Thu, 26 Oct 2023 14:45:23 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Thu, 26 Oct 2023 14:45:23 GMT) (full text, mbox, link).


Message #10 received at 1020815-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1020815-close@bugs.debian.org
Subject: Bug#1020815: fixed in libapache2-mod-python 3.5.0.1-1
Date: Thu, 26 Oct 2023 14:42:07 +0000
Source: libapache2-mod-python
Source-Version: 3.5.0.1-1
Done: Stefano Rivera <stefanor@debian.org>

We believe that the bug you reported is fixed in the latest version of
libapache2-mod-python, 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 1020815@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefano Rivera <stefanor@debian.org> (supplier of updated libapache2-mod-python 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 ftpmaster@ftp-master.debian.org)


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

Format: 1.8
Date: Thu, 26 Oct 2023 15:47:22 +0200
Source: libapache2-mod-python
Architecture: source
Version: 3.5.0.1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Stefano Rivera <stefanor@debian.org>
Closes: 592988 1019299 1020815 1040269 1045745 1054587
Changes:
 libapache2-mod-python (3.5.0.1-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream release.
     - Fixes random segfaults with Python 3.10 (Closes: #1019299)
   * Update watch file, upstream is cutting releases again.
   * Refresh patches.
   * Drop patches, superseded upstream: 11_py310_py_ssize_t_clean.patch,
     12_py310_collections_import.patch, 13_py310_minor_version.patch,
     14_sphinx_py3.patch.
   * Patch: Sphinx >= 5.1 support.
   * Drop ln for contents.html, no longer needed.
   * Clean correctly. (Closes: #1045745)
   * debian/rules: Add dh_auto_build override to pass
     -ffile-prefix-map via APXSFLAGS to avoid embedding build paths. Thanks
     Vagrant Cascadian. (Closes: #1020815)
   * Patch: Remove the Python version check. (Closes: #592988, #1040269)
     (LP: #1919923, #1073147)
   * Bump Standards-Version to 4.6.2, no changes needed.
   * In 03_debian-version.patch, strip the debian part of the version. BinNMUs
     were resulting in invalid PEP-440 versions. (Closes: #1054587)
Checksums-Sha1:
 e227eb158330e30f6914c7e88fadf02216de046e 1769 libapache2-mod-python_3.5.0.1-1.dsc
 b46881f3dde2f9bfdb9c52d081f1625b079bec3f 313340 libapache2-mod-python_3.5.0.1.orig.tar.gz
 894e503976b71cdbf8eab51cf4077245f7295630 12412 libapache2-mod-python_3.5.0.1-1.debian.tar.xz
 258e743c144357ac993a02c79802de5848f25e4e 6277 libapache2-mod-python_3.5.0.1-1_source.buildinfo
Checksums-Sha256:
 17475aa5bad5fab21ed7f960c8dd6ec486e92659d928ad70293917a0db378e4d 1769 libapache2-mod-python_3.5.0.1-1.dsc
 b81ca9bd7675530abb6651e76821889ab1c3941352c8331712c649e1488a5506 313340 libapache2-mod-python_3.5.0.1.orig.tar.gz
 6f3a7821627e767fcee4f48f509ea04169e075f28cc37ac62a44c825e0afb855 12412 libapache2-mod-python_3.5.0.1-1.debian.tar.xz
 9d0d31ad6c6304983995e52224da1d2abd3264d32e052871334635c2376af51c 6277 libapache2-mod-python_3.5.0.1-1_source.buildinfo
Files:
 47cef1f3c03b5899fa7e584c3fec43a5 1769 httpd optional libapache2-mod-python_3.5.0.1-1.dsc
 14d161f585a03a7261d6e73f9649a204 313340 httpd optional libapache2-mod-python_3.5.0.1.orig.tar.gz
 7f69e46cebe64626a05958e09eb0a33a 12412 httpd optional libapache2-mod-python_3.5.0.1-1.debian.tar.xz
 5f7859f06fdbc70f4d26c6cce5275a8b 6277 httpd optional libapache2-mod-python_3.5.0.1-1_source.buildinfo

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

iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCZTpuQRQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2OG6AQDKixDp/blf3LKnnkFaMP6gwx/qKWeQ
UEg0vsumsuifEgEAiSGbl/FJtBsAbGR3Rqg3QeS+RveXZHAEqTAo9ZsnWAY=
=SuzU
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 26 Nov 2023 07:25:28 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 31 00:39:34 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.