Hi Guillem, On Mon Mar 16, 2026 at 12:03 PM GMT, Guillem Jover wrote:
dpkg-source (via GNU patch) is capable of applying such changes, as long as they are in git patch format. Although it cannot produce them (currently) because GNU diff does not support generating git formatted patches.
Thanks for the hint. I'm getting the following error from dpkg-source (1.22.22) trying the attached patch, which looks pretty similar to your example patch:
dpkg-source: error: diff ikiwiki.orig.LgnKwD/debian/patches/0001-part-1-remove-symlink.patch modifies file ikiwiki.orig.LgnKwD/underlays/basewiki/style.css through a symlink: ikiwiki.orig.LgnKwD/underlays/basewiki/style.css
GNU patch is indeed happy:
$ patch -p1 < debian/patches/0001-part-1-remove-symlink.patch patching symbolic link underlays/basewiki/style.css
I'll try a newer dpkg-dev. -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Jonathan Dowland ⢿⡄⠘⠷⠚⠋⠀ https://jmtd.net ⠈⠳⣄⠀⠀⠀⠀
From 2ee3f57e4bf342b11f63e4cc6a2aefff916a67fc Mon Sep 17 00:00:00 2001 From: Jonathan Dowland <[email protected]> Date: Mon, 16 Mar 2026 11:35:34 +0000 Subject: [PATCH 1/2] part 1: remove symlink --- underlays/basewiki/style.css | 1 - 1 file changed, 1 deletion(-) delete mode 120000 underlays/basewiki/style.css diff --git a/underlays/basewiki/style.css b/underlays/basewiki/style.css deleted file mode 120000 index 9383b4afe..000000000 --- a/underlays/basewiki/style.css +++ /dev/null @@ -1 +0,0 @@ -../../doc/style.css \ No newline at end of file -- 2.47.3

