Debian Bug report logs - #1003371
libavif: reproducible-builds: BuildId differences triggered by RPATH

version graph

Package: src:libavif; Maintainer for src:libavif is Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>;

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

Date: Sun, 9 Jan 2022 02:18:02 UTC

Severity: normal

Tags: patch

Fixed in version libavif/0.10.1-2

Done: Boyuan Yang <byang@debian.org>

Bug is archived. No further changes may be made.

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 Multimedia Maintainers <debian-multimedia@lists.debian.org>:
Bug#1003371; Package src:libavif. (Sun, 09 Jan 2022 02:18: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 Multimedia Maintainers <debian-multimedia@lists.debian.org>. (Sun, 09 Jan 2022 02:18: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: libavif: reproducible-builds: BuildId differences triggered by RPATH
Date: Sat, 08 Jan 2022 18:14:12 -0800
[Message part 1 (text/plain, inline)]
Source: libavif
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:

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

The attached patch to debian/rules passes
-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON via a dh_auto_configure override,
which should use a relative path for RPATH.

Alternately, updating the packaging to debhelper compat level 14 should
fix this, although it is currently an experimental compat level.


With this patch applied, libavif should build reproducibly on
tests.reproducible-builds.org!


Thanks for maintaining libavif!


live well,
  vagrant
[0001-debian-rules-Pass-DCMAKE_BUILD_RPATH_USE_ORIGIN-ON-v.patch (text/x-diff, inline)]
From 710784e88a6ac4e469b236bf820779856cfd97be Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 9 Jan 2022 02:10:45 +0000
Subject: [PATCH] debian/rules: Pass -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON via
 dh_auto_configure override.

This avoids embedding the full path in RPATH, which triggers BuildId
differences.

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

diff --git a/debian/rules b/debian/rules
index 71386fc..29bf3cc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,5 +32,6 @@ override_dh_auto_configure:
 	    -DAVIF_BUILD_APPS=ON \
 	    -DAVIF_CODEC_DAV1D=ON \
 	    -DAVIF_CODEC_AOM=ON \
+	    -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
 	    $(LIBGAV1_FLAG) \
 	    -DAVIF_BUILD_GDK_PIXBUF=ON
-- 
2.34.1

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

Reply sent to Boyuan Yang <byang@debian.org>:
You have taken responsibility. (Thu, 28 Jul 2022 19:54:03 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Thu, 28 Jul 2022 19:54:03 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1003371-close@bugs.debian.org
Subject: Bug#1003371: fixed in libavif 0.10.1-2
Date: Thu, 28 Jul 2022 19:51:03 +0000
Source: libavif
Source-Version: 0.10.1-2
Done: Boyuan Yang <byang@debian.org>

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

Debian distribution maintenance software
pp.
Boyuan Yang <byang@debian.org> (supplier of updated libavif 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, 28 Jul 2022 14:31:47 -0400
Source: libavif
Architecture: source
Version: 0.10.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Changed-By: Boyuan Yang <byang@debian.org>
Closes: 1003371
Changes:
 libavif (0.10.1-2) unstable; urgency=medium
 .
   [ Debian Janitor ]
   * Trim trailing whitespace.
   * Remove unused license definitions for Expat.
 .
   [ Boyuan Yang ]
   * Rebuild against libgav1 (>> 0.18).
   * debian/rules: Pass -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON via
     dh_auto_configure override. (Closes: #1003371)
Checksums-Sha1:
 942b50712cdb53011e15934664dfdc8028f9dbe7 2460 libavif_0.10.1-2.dsc
 f11d78c69d0f3af63549ba7e2fbf7f720dcc16b9 2085698 libavif_0.10.1.orig.tar.gz
 332b71732d6eebbd83cb420ce92e78b151e8d408 5768 libavif_0.10.1-2.debian.tar.xz
 b13d0f5faf94d9e2ddd20f305bb342f8e4ee2ac7 11063 libavif_0.10.1-2_amd64.buildinfo
Checksums-Sha256:
 ec868d7ec7d305e0c05c819dbeaed97a495e736ee0ef3262fa7c55177a1ef41d 2460 libavif_0.10.1-2.dsc
 66e82854ceb84a3e542bc140a343bc90e56c68f3ecb4fff63e636c136ed9a05e 2085698 libavif_0.10.1.orig.tar.gz
 c947d938c2715d07bf11be006350f773e0515acbc8c40bbffcc19e43a53a459d 5768 libavif_0.10.1-2.debian.tar.xz
 1f7063785afbbcfc1b3a6b6beb1d8269f7d24297264c629be57cf557ba592157 11063 libavif_0.10.1-2_amd64.buildinfo
Files:
 cdda712fcd853ca223f98e7a54a945b2 2460 libs optional libavif_0.10.1-2.dsc
 03db8c35534f565d98b24800ca105cf3 2085698 libs optional libavif_0.10.1.orig.tar.gz
 971eae55936b3a892f02d711fd8fed22 5768 libs optional libavif_0.10.1-2.debian.tar.xz
 c1d885ed9a635ab82290c69bfb3b553c 11063 libs optional libavif_0.10.1-2_amd64.buildinfo

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

iQIzBAEBCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAmLi1qcACgkQwpPntGGC
Ws52LxAAiSE2vuo9Y8mJcZ5iVJ0ioW0Kyr4/5mwB3U/SrPqqSKe5A0Xqbq0BVK4S
OJb+MD/T/0xJ4A5IBa3kJIHvn5f0BxeMjGVmnqQ1WA+SzKLuUpGKMa7ZpFoPnq4Q
cYn0KCE/wmrfkIIPwbNE4F1ELmxpC1gaUkgIHPUozTTMe7MPCQd9feC9XMeQJZL3
JKjDo0xq+MxSa/TZH3N0dUaQT6DnPq7wU3mMcXX2KyWAbSwZfYR3ITArr1wrfyG6
l81joQA1Wgv6pHubRiJC5afsJXnbYFMI/PUEpNxoww1cvUDa3w/IoEue1m7epvz+
iSijt+d382hDZyztCWr3n9guI+y9qjD3bvmofvZgmUBIqsCk5aGX4RsUnsjCmdeb
5k+Oh9GTBEgmmcuiIqaShhVGrEqKlzFSLKp7AI8zGd9HCsx9UVV/hEYH0DXp0dOI
CYTDybf3WjYJnMhQH9PD8UkmW5CXu3p1sEuoMu/cUq+QV7ZV+2PthTEByNps95mX
Qfx5lLL3FSy7TKV33hRYYBjDXio3x2/XTp5hkH/IvcechTSipQbxpfgJFcCe+yQ+
RtPyys56+Uis9iwYHXZkr0h3hgRyjixX0G6FY0sZWbSnzoT4tF7xzXvuzKQ1O6aN
IlhPdnkGOkWP33g33vBCxPHd8MaMWdNMfEJ8dj7tBUhWp+2WByk=
=5wT/
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 31 Aug 2022 07:28:24 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: Wed May 17 11:02:45 2023; Machine Name: bembo

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.