From d1a974589d2ae58a8704be9e6401305be639fa1d Mon Sep 17 00:00:00 2001 From: "Taihsiang Ho (tai271828)" Date: Mon, 16 Oct 2023 22:03:14 +0200 Subject: d/control: Specify required git version as dependency Explicitly specify the git version to facilitate easier backporting. Developers can align with this git version to reduce false alarms due to version inconsistencies. The latest git-buildpackage requires a newer git version to avoid test failures. For example, building the source in bookworm with git 1:2.39.2-1.1 results in: $ ./packaging/run-in-docker -t bookworm FAIL: Doctest: tests.doctests.test_GitRepository.test_clone ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/doctest.py", line 2222, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for test_clone File "/workdir/project/tests/doctests/test_GitRepository.py", line 626, in test_clone ---------------------------------------------------------------------- File "/workdir/project/tests/doctests/test_GitRepository.py", line 649, in test_clone Failed example: clone.get_remote_branches() Expected: ['origin', 'origin/foo', 'origin/master'] Got: ['origin/HEAD', 'origin/foo', 'origin/master'] -------------------- >> begin captured logging << -------------------- gbp: debug: ['git', 'rev-parse', '--show-cdup'] gbp: debug: ['git', 'rev-parse', '--is-bare-repository'] gbp: debug: ['git', 'rev-parse', '--git-dir'] gbp: debug: ['git', 'symbolic-ref', 'HEAD'] gbp: debug: ['git', 'show-ref', 'refs/heads/master'] gbp: debug: ['git', 'clone', '--quiet', '/tmp/tmp72nxjjwzgbp_tests.doctests.test_GitRepository_/repo'] gbp: debug: ['git', 'rev-parse', '--show-cdup'] gbp: debug: ['git', 'rev-parse', '--is-bare-repository'] gbp: debug: ['git', 'rev-parse', '--git-dir'] gbp: debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/heads/'] gbp: debug: ['git', 'symbolic-ref', 'HEAD'] gbp: debug: ['git', 'show-ref', 'refs/heads/master'] gbp: debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/remotes/'] gbp: debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/heads/'] gbp: debug: ['git', 'config', 'branch.master.remote'] gbp: debug: ['git', 'config', 'branch.master.merge'] gbp: debug: ['git', 'branch', 'foo', 'origin/foo'] gbp: debug: ['git', 'config', 'branch.foo.remote'] gbp: debug: ['git', 'config', 'branch.foo.merge'] gbp: debug: ['git', 'branch', 'bar'] gbp: debug: ['git', 'config', 'branch.bar.remote'] gbp: debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/heads/'] gbp: debug: ['git', 'remote'] gbp: debug: ['git', 'remote'] gbp: debug: ['git', 'remote', 'show', '-n', 'origin'] gbp: debug: ['git', 'show-ref', '--verify', 'refs/remotes/origin/master'] gbp: debug: ['git', 'remote'] gbp: debug: ['git', 'remote', 'show', '-n', 'origin'] --------------------- >> end captured logging << --------------------- --- debian/control | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index d030e4ca..7c70f07c 100644 --- a/debian/control +++ b/debian/control @@ -30,7 +30,7 @@ Build-Depends: bzip2 , cpio , devscripts (>= 2.17.7~) , - git (>= 1:1.7.9.1-1~) , + git (>= 1:2.40.1-1) , pristine-tar (>= 1.14) , rpm (>= 4.16.1) , unzip , @@ -51,7 +51,7 @@ Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}, devscripts (>= 2.13.5~), - git (>= 1:1.7.9.1-1~), + git (>= 1:2.40.1-1), man-db, python3-dateutil, python3-pkg-resources, -- cgit v1.2.3