Package: git-dpm
Version: 0.10.0-1.1
Severity: grave
Tags: patch
Justification: renders package unusable

  $ git-dpm import-new-upstream -p 1.65^{} --ptc --rebase-patched 
../libfilter-perl_1.65.orig.tar.gz
  /usr/bin/git-dpm: line 241: cd: null directory

This is due to the following change in bash 5.3:

  a. Per POSIX, a null pathname argument to `cd' is now an error.

The attached patch fixes this.

Thanks,

-- 
Colin Watson (he/him)                              [[email protected]]

-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.16.3+deb14-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages git-dpm depends on:
ii  dpkg-dev  1.22.21
ii  git       1:2.51.0-1

Versions of packages git-dpm recommends:
ii  bzip2           1.0.8-6
ii  devscripts      2.25.19
ii  sensible-utils  0.0.26
ii  xz-utils        5.8.1-1.1

Versions of packages git-dpm suggests:
ii  pristine-tar  1.50+nmu2
pn  sharutils     <none>

-- no debconf information
--- git-dpm.sh.orig	2019-02-03 12:23:45.000000000 +0000
+++ git-dpm.sh	2025-09-14 12:08:19.768077810 +0100
@@ -238,7 +238,9 @@
 function cdtoplevel() {
 	test -n "$gitdir" || return 1
 	checkworkingdir || return 1
-	cd -- "$reldir" || return 1
+	if [ "$reldir" ]; then
+		cd -- "$reldir" || return 1
+	fi
 	reldir=""
 }
 

Reply via email to