Debian Bug report logs - #1036522
pytorch-audio: reproducible-builds: build paths trigger differences

Package: src:pytorch-audio; Maintainer for src:pytorch-audio is Debian Deep Learning Team <debian-ai@lists.debian.org>;

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

Date: Sun, 21 May 2023 22:30:02 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

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 Deep Learning Team <debian-ai@lists.debian.org>:
Bug#1036522; Package src:pytorch-audio. (Sun, 21 May 2023 22:30:04 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 Deep Learning Team <debian-ai@lists.debian.org>. (Sun, 21 May 2023 22:30:04 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: pytorch-audio: reproducible-builds: build paths trigger differences
Date: Sun, 21 May 2023 15:26:27 -0700
[Message part 1 (text/plain, inline)]
Source: pytorch-audio
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The RPATH contains the build path resulting in different buildid and
various other differences:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/pytorch-audio.html

The attached patch to the upstream tools/setup_helpers/extension.py
fixes this by passing -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON to CMake.

With this patch applied, based on my local tests, pytorch-audio should
build reproducibly on tests.reproducible-builds.org!

Thanks for maintaining pytorch-audio!

live well,
  vagrant
[0001-tools-setup_helpers-extension.py-Pass.patch (text/x-diff, inline)]
From 8e7dab52b12566c95569581c3f81ac7689b5e179 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 21 May 2023 14:20:35 -0700
Subject: tools/setup_helpers/extension.py: Pass
 -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON to CMake.

https://tests.reproducible-builds.org/debian/issues/unstable/cmake_rpath_contains_build_path_issue.html
---
 tools/setup_helpers/extension.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/setup_helpers/extension.py b/tools/setup_helpers/extension.py
index 96ea13e..6ac1538 100644
--- a/tools/setup_helpers/extension.py
+++ b/tools/setup_helpers/extension.py
@@ -100,6 +100,7 @@ class CMakeBuild(build_ext):
             f"-DCMAKE_PREFIX_PATH={torch.utils.cmake_prefix_path}",
             f"-DCMAKE_INSTALL_PREFIX={extdir}",
             "-DCMAKE_VERBOSE_MAKEFILE=ON",
+            "-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON",
             f"-DPython_INCLUDE_DIR={distutils.sysconfig.get_python_inc()}",
             f"-DBUILD_SOX:BOOL={'ON' if _BUILD_SOX else 'OFF'}",
             f"-DBUILD_KALDI:BOOL={'ON' if _BUILD_KALDI else 'OFF'}",
-- 
2.39.2

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

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Aug 19 14:57:04 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU 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.