Debian Bug report logs -
#1006844
intel-mediasdk: reproducible builds: Embeds kernel version in various .so files
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Timo Aaltonen <tjaalton@debian.org>:
Bug#1006844; Package src:intel-mediasdk.
(Sun, 06 Mar 2022 18:03: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, Timo Aaltonen <tjaalton@debian.org>.
(Sun, 06 Mar 2022 18:03:03 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: intel-mediasdk
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: kernel
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
various .so files embed the kernel version of the build machine:
│ │ │ ├── ./usr/lib/x86_64-linux-gnu/mfx/libmfx_vp8d_hw64.so
...
│ │ │ │ │ -mediasdk_build_info: Debian 5.10.0-11-amd64 | GNU 11.2.0 | glibc 2.33
│ │ │ │ │ +mediasdk_build_info: Debian 2.6.70-11-amd64 | GNU 11.2.0 | glibc 2.33
The attached patch fixes this by removing the use of
CMAKE_SYSTEM_VERSION, which includes the running kernel version.
This patch alone does not resolve all reproducibility issues (e.g. build
paths tested only on unstable/experimental), but with this patch
applied, intel-mediasdk should build reproducibly on
tests.reproducible-builds.org once it migrates to bookworm/testing!
Thanks for maintaining intel-mediasdk!
live well,
vagrant
[0001-builder-FindGlobals.cmake-Do-not-embed-the-running-k.patch (text/x-diff, inline)]
From 4e30d9854924bd24622711535c564fd5d6dedbdc Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 6 Mar 2022 17:27:55 +0000
Subject: [PATCH] builder/FindGlobals.cmake: Do not embed the running kernel
version.
Avoid using CMAKE_SYSTEM_VERSION to embed the kernel version in the
build information.
https://tests.reproducible-builds.org/debian/issues/unstable/captures_kernel_version_via_CMAKE_SYSTEM_issue.html
---
builder/FindGlobals.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builder/FindGlobals.cmake b/builder/FindGlobals.cmake
index 6c96fc8e..df5f96f1 100644
--- a/builder/FindGlobals.cmake
+++ b/builder/FindGlobals.cmake
@@ -199,7 +199,7 @@ else()
endif()
if( MFX_SYSTEM )
- set( BUILD_INFO "${MFX_SYSTEM} ${CMAKE_SYSTEM_VERSION} | ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}" )
+ set( BUILD_INFO "${MFX_SYSTEM} | ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}" )
else()
set( BUILD_INFO "${CMAKE_SYSTEM} ${CMAKE_SYSTEM_VERSION} | ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}" )
endif()
--
2.30.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:
Wed May 17 13:24:16 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.