Source: gitlint
Severity: important
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The output of a python traceback including the build path is embedded in
the gitlint.1 man page:

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

  /usr/share/man/man1/gitlint.1.gz

  
.TH·TRACEBACK·"1"·"December·2021"·"Traceback·(most·recent·call·last):"·"User·Commands"
  ...
  
File·"/build/1st/gitlint\-0.17.0/debian/gitlint/usr/bin/gitlint",·line·33,·in·<module>
  vs.
  
File·"/build/2/gitlint\-0.17.0/2nd/debian/gitlint/usr/bin/gitlint",·line·33,·in·<module>
  ...
  import·click
  ModuleNotFoundError:·No·module·named·'click'

Though embedding the build path revealed the problem, the real problem
is caused by missing dependencies...

The attached patch to debian/control fixes this by passing adding
several python3 packages to Build-Depends, as using help2man requires
the run-time dependencies at build-time.

According to my local tests, with this patch applied gitlint should
build reproducibly on tests.reproducible-builds.org as a side-effect of
fixing the real problem!

Thanks for maintaining gitlint!

live well,
  vagrant
From 00d8df53ff0425c801103417db027819541fa132 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Fri, 18 Nov 2022 20:19:38 +0000
Subject: [PATCH] debian/control: Add Build-Depends on python3-arrow,
 python3-click and python3-sh, which are used when generated the gitlint.1
 manpage.

---
 debian/control | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/control b/debian/control
index 80ce548..036ea43 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,10 @@ Build-Depends:
  git,
  help2man,
  python3-all,
+ python3-arrow,
+ python3-click,
  python3-setuptools,
+ python3-sh,
 Rules-Requires-Root: no
 Standards-Version: 4.6.0
 Homepage: https://jorisroovers.com/gitlint/
-- 
2.38.1

Attachment: signature.asc
Description: PGP signature

Reply via email to