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

Bug#995211: libbrahe: reproducible-builds: Example Makefiles embed build paths and binary paths



Source: libbrahe
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath usrmerge shell
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The build path and several binary paths are embedded in example Makefiles
shipped in the package:

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

  /usr/share/doc/libbrahe-dev/test/Makefile.gz

  EGREP·=·/bin/grep·-E
  vs.
  EGREP·=·/usr/bin/grep·-E

  abs_builddir·=·/build/1st/libbrahe-1.3.2/test
  vs.
  abs_builddir·=·/build/2/libbrahe-1.3.2/2nd/test

Since these values may differ with the installed system, in order to use
the example Makefile, a person would have to regenerate it from
Makefile.in, which is also provided in the package.

The attached patch excludes Makefile from getting installed in
debian/libbrahe-dev.install.

With this patch applied libbrahe should become reproducible on
tests.reproducible-builds.org.

Thanks for maintaining libbrahe!

live well,
  vagrant
From 1cbf6e4d300b0c3ffeb8986ca14ffb240e4f3c51 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 27 Sep 2021 21:59:55 +0000
Subject: [PATCH 1/8] libbrahe-dev: Do not install test Makefile.

The Makefile contains build paths and binary paths specific to the
build environment, and would need to be regenerated from Makefile.am
or Makefile.in in order to use them on another system.
---
 debian/libbrahe-dev.install | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/libbrahe-dev.install b/debian/libbrahe-dev.install
index b882b80..28ea15b 100644
--- a/debian/libbrahe-dev.install
+++ b/debian/libbrahe-dev.install
@@ -3,4 +3,4 @@ debian/tmp/usr/lib/*/lib*.a
 debian/tmp/usr/lib/*/lib*.so
 debian/tmp/usr/lib/*/*.la
 test/*.c usr/share/doc/libbrahe-dev/test
-test/Makefile* usr/share/doc/libbrahe-dev/test
+test/Makefile.* usr/share/doc/libbrahe-dev/test
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


Reply to: