Source: manderlbot
Severity: serious
Justification: TC resolution #994388
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: usrmerge
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The path to erl is embedded differently in /usr/bin/manderlbot depending
on if it was built on a usrmerge vs. non-usrmerge system:

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

  ERL=/usr/bin/erl
  vs.
  ERL=/bin/erl

The attached patch fixes this by passing the path to ERL in a
debian/rules dh_auto_configure override. The path in /usr/bin is
compatible with both usrmerge and non-usrmerge systems.

According to my local tests, with this patch applied manderlbot should
build reproducibly on tests.reproducible-builds.org once it migrates to
testing! Unfortunately, there are other issues with build paths which
are only tested in unstable and experimental.

Thanks for maintaining manderlbot!

live well,
  vagrant
From 1d8e42b99a87810397cd1c50c36c79d545192575 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sat, 10 Jun 2023 07:10:24 -0700
Subject: [PATCH] debian/rules: Specify path to "erl" binary in
 dh_auto_configure override.

Otherwise, the path to "erl" may be hardcoded to a path that only
works on a usrmerge system when built on a usrmerge system.

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

diff --git a/debian/rules b/debian/rules
index ba8c906..b7c845a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,5 +27,8 @@ override_dh_gencontrol:
 	erlang-depends
 	dh_gencontrol
 
+override_dh_auto_configure:
+	dh_auto_configure -- ERL=/usr/bin/erl
+
 .PHONY: override_dh_auto_build override_dh_auto_install \
 	override_dh_gencontrol
-- 
2.39.2

Attachment: signature.asc
Description: PGP signature

Reply via email to