File dpkg-tar-no-recursion.patch of Package dpkg.4525
With tar changes from [bsc#913058] the --no-recursion option is now
positional, and needs to be passed before the -T option, otherwise
the tarball will end up with duplicated entries [bsc#919233]
Index: dpkg-1.16.10/dpkg-deb/build.c
===================================================================
--- dpkg-1.16.10.orig/dpkg-deb/build.c
+++ dpkg-1.16.10/dpkg-deb/build.c
@@ -545,7 +545,7 @@ do_build(const char *const *argv)
m_dup2(p2[1],1); close(p2[0]); close(p2[1]);
if (chdir(dir))
ohshite(_("failed to chdir to `%.255s'"), dir);
- execlp(TAR, "tar", "-cf", "-", "--format=gnu", "--null", "-T", "-", "--no-recursion", NULL);
+ execlp(TAR, "tar", "-cf", "-", "--format=gnu", "--null", "--no-recursion", "-T", "-", NULL);
ohshite(_("unable to execute %s (%s)"), "tar -cf", TAR);
}
close(p1[0]);