Package: git-buildpackage
Version: 0.9.29
Severity: normal
User: [email protected]
Usertags: origin-kali
Dear Maintainer,
I tried to rebuild git-buildpackage locally and the submodule tests
fail:
~~~~
======================================================================
ERROR: Add a submodule
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File
"/build/git-buildpackage-JtfSq8/git-buildpackage-0.9.29/tests/04_test_submodules.py",
line 99, in test_add_submodule
REPO.add_submodule(SUBMODULES[0].dir)
File
"/build/git-buildpackage-JtfSq8/git-buildpackage-0.9.29/gbp/git/repository.py",
line 1938, in add_submodule
self._git_command("submodule", ["add", repo_path])
File
"/build/git-buildpackage-JtfSq8/git-buildpackage-0.9.29/gbp/git/repository.py",
line 245, in _git_command
raise GitRepositoryError("Error running git %s: %s" % (command,
detail.decode().strip()))
gbp.git.repository.GitRepositoryError: Error running git submodule: Cloning
into '/tmp/tmp7tjw_zrzgbp_tests.04_test_submodules_/test_repo/test_submodule'...
fatal: transport 'file' not allowed
fatal: clone of '/tmp/tmp7tjw_zrzgbp_tests.04_test_submodules_/test_submodule'
into submodule path
'/tmp/tmp7tjw_zrzgbp_tests.04_test_submodules_/test_repo/test_submodule' failed
-------------------- >> begin captured logging << --------------------
gbp: debug: ['git', 'submodule', 'add',
'/tmp/tmp7tjw_zrzgbp_tests.04_test_submodules_/test_submodule']
--------------------- >> end captured logging << ---------------------
~~~~
This is due to a recent change in Git, and it's documented at:
*
https://vielmetti.typepad.com/logbook/2022/10/git-security-fixes-lead-to-fatal-transport-file-not-allowed-error-in-ci-systems-cve-2022-39253.html
* https://bugs.launchpad.net/ubuntu/+source/git/+bug/1993586
Please find a tentative fix at:
https://salsa.debian.org/arnaudr/git-buildpackage/-/commit/5a73cf0e
I tried using REPO.set_config() but it didn't work, so I used the
environment instead.
Best,
Arnaud
----
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.0.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages git-buildpackage depends on:
ii devscripts 2.22.2
ii git 1:2.37.2-1
ii man-db 2.11.0-1+b1
ii python3 3.10.6-1
ii python3-dateutil 2.8.2-1
ii python3-pkg-resources 65.5.0-1
ii python3-yaml 5.4.1-1+b2
ii sensible-utils 0.0.17
Versions of packages git-buildpackage recommends:
ii pristine-tar 1.49
ii python3-requests 2.27.1+dfsg-1
ii sbuild 0.83.2
Versions of packages git-buildpackage suggests:
pn python3-notify2 <none>
ii sudo 1.9.11p3-2
ii unzip 6.0-27
-- no debconf information