[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#977609: grap: reproducible builds: Embeds running kernel in /usr/bin/grap



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

The running kernel is embedded in /usr/bin/grap:

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

  349 	Linux·5.9.0-0.bpo.2-amd64
  349 	Linux·4.19.0-13-amd64


The attached patch fixes by changing the call to "uname -sr" (e.g. Linux
4.19.0-13-amd64) to simply "uname -s" (e.g. Linux).


Thanks for maintaining grap!


live well,
  vagrant
From 2ff1634b1df9ab3e3b11706ca37f1ba0c02c2733 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Thu, 17 Dec 2020 18:48:26 +0000
Subject: [PATCH] Do not include the running kernel version in the binaries.

https://tests.reproducible-builds.org/debian/issues/unstable/captures_kernel_version_issue.html

---
 grap.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grap.m4 b/grap.m4
index 570133a..cc59090 100644
--- a/grap.m4
+++ b/grap.m4
@@ -272,7 +272,7 @@ fi
 dnl get the OS version.  Export it as OS_VERSION in an AC_SUBST
 AC_DEFUN([TVF_OS_VERSION],[
 AC_CACHE_CHECK(for OS version,tvf_cv_os_version,
-	tvf_cv_os_version=`uname -sr`
+	tvf_cv_os_version=`uname -s`
 )
 OS_VERSION=$tvf_cv_os_version
 AC_SUBST(OS_VERSION)
-- 
2.29.2

Attachment: signature.asc
Description: PGP signature


Reply to: