Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [RFC] switch patch_args to -Np1
@ 2021-06-18  1:38 sgn
  2021-06-18  2:41 ` q66
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: sgn @ 2021-06-18  1:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 378 bytes --]

There is a new pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages patch-args-Np1
https://github.com/void-linux/void-packages/pull/31550

[RFC] switch patch_args to -Np1
[ci skip]

Being suggested on IRC @void-linux/pkg-committers 

A patch file from https://github.com/void-linux/void-packages/pull/31550.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-patch-args-Np1-31550.patch --]
[-- Type: text/x-diff, Size: 918739 bytes --]

From 6ca29cb8f814d664172d579c5ee61aef820134fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:09:47 +0700
Subject: [PATCH 1/6] grub: unify patch_args to -Np1

---
 .../0004-add-GRUB_COLOR_variables.patch       |  8 +++----
 .../grub-install-pvxen-paths.patch.args       |  1 -
 .../grub/patches/ieee1275-clear-reset.patch   |  4 ++--
 .../patches/install_powerpc_machtypes.patch   | 24 +++++++++----------
 srcpkgs/grub/patches/os-prober-osx86.patch    |  4 ++--
 .../grub/patches/ppc64el-disable-vsx.patch    |  4 ++--
 srcpkgs/grub/template                         |  1 +
 7 files changed, 23 insertions(+), 23 deletions(-)
 delete mode 100644 srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args

diff --git a/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch b/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch
index f899717c4d99..c113a81d5754 100644
--- a/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch
+++ b/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch
@@ -1,7 +1,7 @@
 diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
 index 3390ba9..c416489 100644
---- util/grub-mkconfig.in
-+++ util/grub-mkconfig.in
+--- a/util/grub-mkconfig.in
++++ b/util/grub-mkconfig.in
 @@ -218,6 +218,8 @@ export GRUB_DEFAULT \
    GRUB_THEME \
    GRUB_GFXPAYLOAD_LINUX \
@@ -13,8 +13,8 @@ index 3390ba9..c416489 100644
    GRUB_ENABLE_CRYPTODISK \
 diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in
 index d2e7252..8259f45 100644
---- util/grub.d/00_header.in
-+++ util/grub.d/00_header.in
+--- a/util/grub.d/00_header.in
++++ b/util/grub.d/00_header.in
 @@ -125,6 +125,14 @@ cat <<EOF
  
  EOF
diff --git a/srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args b/srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args
deleted file mode 100644
index 2eba1cb3c5ce..000000000000
--- a/srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args
+++ /dev/null
@@ -1 +0,0 @@
--Np1
diff --git a/srcpkgs/grub/patches/ieee1275-clear-reset.patch b/srcpkgs/grub/patches/ieee1275-clear-reset.patch
index 96b9bd63f125..18ff7733bdb1 100644
--- a/srcpkgs/grub/patches/ieee1275-clear-reset.patch
+++ b/srcpkgs/grub/patches/ieee1275-clear-reset.patch
@@ -19,8 +19,8 @@ Patch-Name: ieee1275-clear-reset.patch
 
 diff --git a/grub-core/term/terminfo.c b/grub-core/term/terminfo.c
 index f0d3e3deb..7cb7909c8 100644
---- grub-core/term/terminfo.c
-+++ grub-core/term/terminfo.c
+--- a/grub-core/term/terminfo.c
++++ b/grub-core/term/terminfo.c
 @@ -151,7 +151,7 @@ grub_terminfo_set_current (struct grub_term_output *term,
        /* Clear the screen.  Using serial console, screen(1) only recognizes the
         * ANSI escape sequence.  Using video console, Apple Open Firmware
diff --git a/srcpkgs/grub/patches/install_powerpc_machtypes.patch b/srcpkgs/grub/patches/install_powerpc_machtypes.patch
index ce5e36cb4a57..209b726c77ee 100644
--- a/srcpkgs/grub/patches/install_powerpc_machtypes.patch
+++ b/srcpkgs/grub/patches/install_powerpc_machtypes.patch
@@ -26,8 +26,8 @@ Patch-Name: install_powerpc_machtypes.patch
 
 diff --git a/grub-core/osdep/basic/platform.c b/grub-core/osdep/basic/platform.c
 index 4b5502aeb..2ab907976 100644
---- grub-core/osdep/basic/platform.c
-+++ grub-core/osdep/basic/platform.c
+--- a/grub-core/osdep/basic/platform.c
++++ b/grub-core/osdep/basic/platform.c
 @@ -24,3 +24,8 @@ grub_install_get_default_x86_platform (void)
    return "i386-pc";
  }
@@ -39,8 +39,8 @@ index 4b5502aeb..2ab907976 100644
 +}
 diff --git a/grub-core/osdep/linux/platform.c b/grub-core/osdep/linux/platform.c
 index 35f1bcc0e..9805c36d4 100644
---- grub-core/osdep/linux/platform.c
-+++ grub-core/osdep/linux/platform.c
+--- a/grub-core/osdep/linux/platform.c
++++ b/grub-core/osdep/linux/platform.c
 @@ -23,6 +23,7 @@
  #include <grub/emu/misc.h>
  #include <sys/types.h>
@@ -126,8 +126,8 @@ index 35f1bcc0e..9805c36d4 100644
 +}
 diff --git a/grub-core/osdep/unix/platform.c b/grub-core/osdep/unix/platform.c
 index a3fcfcaca..28cb37e15 100644
---- grub-core/osdep/unix/platform.c
-+++ grub-core/osdep/unix/platform.c
+--- a/grub-core/osdep/unix/platform.c
++++ b/grub-core/osdep/unix/platform.c
 @@ -212,13 +212,29 @@ grub_install_register_ieee1275 (int is_prep, const char *install_device,
    else
      boot_device = get_ofpathname (install_device);
@@ -166,8 +166,8 @@ index a3fcfcaca..28cb37e15 100644
    free (boot_device);
 diff --git a/grub-core/osdep/windows/platform.c b/grub-core/osdep/windows/platform.c
 index 912269191..c30025b13 100644
---- grub-core/osdep/windows/platform.c
-+++ grub-core/osdep/windows/platform.c
+--- a/grub-core/osdep/windows/platform.c
++++ b/grub-core/osdep/windows/platform.c
 @@ -128,6 +128,12 @@ grub_install_get_default_x86_platform (void)
      return "i386-efi";
  }
@@ -183,8 +183,8 @@ index 912269191..c30025b13 100644
  {
 diff --git a/include/grub/util/install.h b/include/grub/util/install.h
 index 5ca4811cd..9f517a1bb 100644
---- include/grub/util/install.h
-+++ include/grub/util/install.h
+--- a/include/grub/util/install.h
++++ b/include/grub/util/install.h
 @@ -206,6 +206,9 @@ grub_install_create_envblk_file (const char *name);
  const char *
  grub_install_get_default_x86_platform (void);
@@ -197,8 +197,8 @@ index 5ca4811cd..9f517a1bb 100644
  			   const char *efifile_path,
 diff --git a/util/grub-install.c b/util/grub-install.c
 index e1a0202da..70b22eec4 100644
---- util/grub-install.c
-+++ util/grub-install.c
+--- a/util/grub-install.c
++++ b/util/grub-install.c
 @@ -1155,7 +1155,18 @@ main (int argc, char *argv[])
  
    if (platform == GRUB_INSTALL_PLATFORM_POWERPC_IEEE1275)
diff --git a/srcpkgs/grub/patches/os-prober-osx86.patch b/srcpkgs/grub/patches/os-prober-osx86.patch
index 5fabbeb6d993..5226a6def3b2 100644
--- a/srcpkgs/grub/patches/os-prober-osx86.patch
+++ b/srcpkgs/grub/patches/os-prober-osx86.patch
@@ -1,7 +1,7 @@
 Patches OS X detection out of os-prober hook on non-x86 architectures. The
 menu entries generated for those are invalid for non-x86 Mac stuff.
---- util/grub.d/30_os-prober.in
-+++ util/grub.d/30_os-prober.in
+--- a/util/grub.d/30_os-prober.in
++++ b/util/grub.d/30_os-prober.in
 @@ -42,6 +42,11 @@ if [ -z "${OSPROBED}" ] ; then
  fi
  
diff --git a/srcpkgs/grub/patches/ppc64el-disable-vsx.patch b/srcpkgs/grub/patches/ppc64el-disable-vsx.patch
index 1f4c40181521..67744dd23beb 100644
--- a/srcpkgs/grub/patches/ppc64el-disable-vsx.patch
+++ b/srcpkgs/grub/patches/ppc64el-disable-vsx.patch
@@ -22,8 +22,8 @@ Patch-Name: ppc64el-disable-vsx.patch
 
 diff --git a/grub-core/kern/powerpc/ieee1275/startup.S b/grub-core/kern/powerpc/ieee1275/startup.S
 index 21c884b43..de9a9601a 100644
---- grub-core/kern/powerpc/ieee1275/startup.S
-+++ grub-core/kern/powerpc/ieee1275/startup.S
+--- a/grub-core/kern/powerpc/ieee1275/startup.S
++++ b/grub-core/kern/powerpc/ieee1275/startup.S
 @@ -20,6 +20,8 @@
  #include <grub/symbol.h>
  #include <grub/offsets.h>
diff --git a/srcpkgs/grub/template b/srcpkgs/grub/template
index 69cea9ae19a3..11cbdc495f67 100644
--- a/srcpkgs/grub/template
+++ b/srcpkgs/grub/template
@@ -16,6 +16,7 @@ checksum=e5292496995ad42dabe843a0192cf2a2c502e7ffcc7479398232b10a472df77d
 
 archs="i686* x86_64* aarch64* ppc ppc-musl ppc64*"
 nopie=yes
+patch_args=-Np1
 
 subpackages="grub-utils"
 # _SUPPLEMENTARY_BUILDS is a list of <TARGET>-<PLATFORN> version of grub to build

From c0e63bdd7ea0582973f15e23c21446de82409080 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 08:31:53 +0700
Subject: [PATCH 2/6] srcpkgs: adjust patch_args to -Np1 for patches being
 symlinked

---
 srcpkgs/cmake/patches/musl-test.patch          |  4 ++--
 srcpkgs/cmake/patches/test-none.patch          |  4 ++--
 srcpkgs/cmake/template                         |  1 +
 srcpkgs/gsimplecal-gtk2/patches/musl.patch     |  4 ++--
 srcpkgs/gsimplecal-gtk2/template               |  1 +
 ...list_unlink_in_pthread_exit_after_all.patch |  4 ++--
 ...threads_minus_1_as_relaxed_atomic_for.patch | 12 ++++++------
 ...down_size_of_some_libc_struct_members.patch |  4 ++--
 ...ipping_for_processes_that_return_to_s.patch | 16 ++++++++--------
 srcpkgs/musl/patches/CVE-2020-28928.patch      |  4 ++--
 srcpkgs/musl/patches/aarch64-fregs.patch       |  8 ++++----
 srcpkgs/musl/patches/epoll_cp.patch            |  4 ++--
 srcpkgs/musl/patches/isascii.patch             |  4 ++--
 srcpkgs/musl/patches/mo_lookup.patch           |  4 ++--
 srcpkgs/musl/patches/ppc-pt_regs.patch         |  8 ++++----
 srcpkgs/musl/patches/ppc64-fpregset_t.patch    |  4 ++--
 srcpkgs/musl/patches/ppcle.patch               |  4 ++--
 srcpkgs/musl/patches/reallocarray.patch        |  6 +++---
 srcpkgs/musl/template                          |  1 +
 ...al.c-define-__SIGRTMIN-MAX-for-non-GN.patch |  4 ++--
 .../patches/fix-softfloat-fesetround.patch     |  4 ++--
 srcpkgs/qemu/patches/mmap-mremap-efault.patch  |  4 ++--
 srcpkgs/qemu/patches/musl-9p-limits_h.patch    |  4 ++--
 .../qemu/patches/musl-fix-SIOCGSTAMPNS.patch   |  4 ++--
 .../musl-fix-sigevent-and-sigval_t.patch       |  4 ++--
 .../qemu/patches/musl-initialize-msghdr.patch  |  4 ++--
 srcpkgs/qemu/patches/musl-ppc.patch            | 12 ++++++------
 srcpkgs/qemu/patches/time64.patch              |  8 ++++----
 srcpkgs/qemu/patches/xxx-ppcle.patch           | 18 +++++++++---------
 srcpkgs/qemu/template                          |  1 +
 srcpkgs/util-linux/patches/fix-musl.patch      |  4 ++--
 srcpkgs/util-linux/template                    |  1 +
 srcpkgs/xbps/patches/cflags.patch              |  4 ++--
 srcpkgs/xbps/template                          |  1 +
 34 files changed, 90 insertions(+), 84 deletions(-)

diff --git a/srcpkgs/cmake/patches/musl-test.patch b/srcpkgs/cmake/patches/musl-test.patch
index 4da8c2f9cfc6..0329b5efd2f5 100644
--- a/srcpkgs/cmake/patches/musl-test.patch
+++ b/srcpkgs/cmake/patches/musl-test.patch
@@ -1,5 +1,5 @@
---- Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake.orig	2020-12-05 13:27:21.098078774 +0700
-+++ Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake	2020-12-05 13:29:19.931553018 +0700
+--- a/Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake.orig	2020-12-05 13:27:21.098078774 +0700
++++ b/Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake	2020-12-05 13:29:19.931553018 +0700
 @@ -33,9 +33,9 @@
    [[librunpath_parent_unresolved\.so]]
    [[librunpath_unresolved\.so]]
diff --git a/srcpkgs/cmake/patches/test-none.patch b/srcpkgs/cmake/patches/test-none.patch
index 3a5540551525..e0b6886bb0a2 100644
--- a/srcpkgs/cmake/patches/test-none.patch
+++ b/srcpkgs/cmake/patches/test-none.patch
@@ -24,8 +24,8 @@ Let's define them when non main stream like None is specified as CMAKE_BUILD_TY
 
 diff --git Tests/ConfigSources/CMakeLists.txt Tests/ConfigSources/CMakeLists.txt
 index a3d98f685f..f83759ca10 100644
---- Tests/ConfigSources/CMakeLists.txt
-+++ Tests/ConfigSources/CMakeLists.txt
+--- a/Tests/ConfigSources/CMakeLists.txt
++++ b/Tests/ConfigSources/CMakeLists.txt
 @@ -74,10 +74,10 @@ add_custom_command(APPEND
    VERBATIM
    )
diff --git a/srcpkgs/cmake/template b/srcpkgs/cmake/template
index 5d3308f93b5d..e9ee3debf3c0 100644
--- a/srcpkgs/cmake/template
+++ b/srcpkgs/cmake/template
@@ -17,6 +17,7 @@ homepage="https://www.cmake.org"
 distfiles="https://www.cmake.org/files/v${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=4d008ac3461e271fcfac26a05936f77fc7ab64402156fb371d41284851a651b8
 replaces="cmake-bootstrap>=0"
+patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	build_style=cmake
diff --git a/srcpkgs/gsimplecal-gtk2/patches/musl.patch b/srcpkgs/gsimplecal-gtk2/patches/musl.patch
index 2295d20b338d..eef2a786bb73 100644
--- a/srcpkgs/gsimplecal-gtk2/patches/musl.patch
+++ b/srcpkgs/gsimplecal-gtk2/patches/musl.patch
@@ -1,5 +1,5 @@
---- src/Unique.cpp.orig	2016-04-24 08:08:43.921536576 +0200
-+++ src/Unique.cpp	2016-04-24 08:09:18.615896283 +0200
+--- a/src/Unique.cpp.orig	2016-04-24 08:08:43.921536576 +0200
++++ b/src/Unique.cpp	2016-04-24 08:09:18.615896283 +0200
 @@ -1,10 +1,16 @@
 +#ifdef HAVE_CONFIG_H
 +#include "config.h"
diff --git a/srcpkgs/gsimplecal-gtk2/template b/srcpkgs/gsimplecal-gtk2/template
index 73cf3bd39b88..c7339f62d60e 100644
--- a/srcpkgs/gsimplecal-gtk2/template
+++ b/srcpkgs/gsimplecal-gtk2/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="http://dmedvinsky.github.io/gsimplecal/"
 distfiles="https://github.com/dmedvinsky/${pkgname%-*}/archive/v${version}.tar.gz"
 checksum="660cac7333d3507203a008e142e2b8f5dfcf0735b6ccabdd8d3d902b5d2c40e9"
+patch_args=-Np1
 
 replaces="gsimplecal-gtk3>=0"
 
diff --git a/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch b/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch
index e774afcd52e4..7c1a55bc85e3 100644
--- a/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch
+++ b/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch
@@ -16,8 +16,8 @@ __dl_thread_cleanup.
 
 diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c
 index 5f491092..6a3b0c21 100644
---- src/thread/pthread_create.c
-+++ src/thread/pthread_create.c
+--- a/src/thread/pthread_create.c
++++ b/src/thread/pthread_create.c
 @@ -90,14 +90,7 @@ _Noreturn void __pthread_exit(void *result)
  		exit(0);
  	}
diff --git a/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch b/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch
index 850c43c3cc78..e060762e99a6 100644
--- a/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch
+++ b/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch
@@ -36,8 +36,8 @@ needs to be taken to produce a safe design.
 
 diff --git a/src/internal/libc.h b/src/internal/libc.h
 index ac97dc7e..c0614852 100644
---- src/internal/libc.h
-+++ src/internal/libc.h
+--- a/src/internal/libc.h
++++ b/src/internal/libc.h
 @@ -21,7 +21,7 @@ struct __libc {
  	int can_do_threads;
  	int threaded;
@@ -49,8 +49,8 @@ index ac97dc7e..c0614852 100644
  	size_t tls_size, tls_align, tls_cnt;
 diff --git a/src/malloc/malloc.c b/src/malloc/malloc.c
 index 96982596..2553a62e 100644
---- src/malloc/malloc.c
-+++ src/malloc/malloc.c
+--- a/src/malloc/malloc.c
++++ b/src/malloc/malloc.c
 @@ -26,7 +26,7 @@ int __malloc_replaced;
  
  static inline void lock(volatile int *lk)
@@ -62,8 +62,8 @@ index 96982596..2553a62e 100644
  
 diff --git a/src/thread/__lock.c b/src/thread/__lock.c
 index 45557c88..5b9b144e 100644
---- src/thread/__lock.c
-+++ src/thread/__lock.c
+--- a/src/thread/__lock.c
++++ b/src/thread/__lock.c
 @@ -18,7 +18,7 @@
  
  void __lock(volatile int *l)
diff --git a/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch b/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch
index 60dcac24bda6..540c5d950195 100644
--- a/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch
+++ b/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch
@@ -10,8 +10,8 @@ these are all flags that can be single-byte values.
 
 diff --git a/src/internal/libc.h b/src/internal/libc.h
 index c0614852..d47f58e0 100644
---- src/internal/libc.h
-+++ src/internal/libc.h
+--- a/src/internal/libc.h
++++ b/src/internal/libc.h
 @@ -18,9 +18,9 @@ struct tls_module {
  };
  
diff --git a/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch b/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch
index 09847c32b6a8..e703c1f403c5 100644
--- a/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch
+++ b/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch
@@ -19,8 +19,8 @@ memory load after the lock is taken.
 
 diff --git a/src/internal/libc.h b/src/internal/libc.h
 index d47f58e0..619bba86 100644
---- src/internal/libc.h
-+++ src/internal/libc.h
+--- a/src/internal/libc.h
++++ b/src/internal/libc.h
 @@ -21,6 +21,7 @@ struct __libc {
  	char can_do_threads;
  	char threaded;
@@ -31,8 +31,8 @@ index d47f58e0..619bba86 100644
  	struct tls_module *tls_head;
 diff --git a/src/malloc/malloc.c b/src/malloc/malloc.c
 index 2553a62e..a803d4c9 100644
---- src/malloc/malloc.c
-+++ src/malloc/malloc.c
+--- a/src/malloc/malloc.c
++++ b/src/malloc/malloc.c
 @@ -26,8 +26,11 @@ int __malloc_replaced;
  
  static inline void lock(volatile int *lk)
@@ -48,8 +48,8 @@ index 2553a62e..a803d4c9 100644
  static inline void unlock(volatile int *lk)
 diff --git a/src/thread/__lock.c b/src/thread/__lock.c
 index 5b9b144e..60eece49 100644
---- src/thread/__lock.c
-+++ src/thread/__lock.c
+--- a/src/thread/__lock.c
++++ b/src/thread/__lock.c
 @@ -18,9 +18,11 @@
  
  void __lock(volatile int *l)
@@ -65,8 +65,8 @@ index 5b9b144e..60eece49 100644
  	for (unsigned i = 0; i < 10; ++i) {
 diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c
 index 6a3b0c21..6bdfb44f 100644
---- src/thread/pthread_create.c
-+++ src/thread/pthread_create.c
+--- a/src/thread/pthread_create.c
++++ b/src/thread/pthread_create.c
 @@ -118,8 +118,8 @@ _Noreturn void __pthread_exit(void *result)
  	 * until the lock is released, which only happens after SYS_exit
  	 * has been called, via the exit futex address pointing at the lock.
diff --git a/srcpkgs/musl/patches/CVE-2020-28928.patch b/srcpkgs/musl/patches/CVE-2020-28928.patch
index 9075ae1f8977..b3ff3b4ee08f 100644
--- a/srcpkgs/musl/patches/CVE-2020-28928.patch
+++ b/srcpkgs/musl/patches/CVE-2020-28928.patch
@@ -1,5 +1,5 @@
---- src/multibyte/wcsnrtombs.c
-+++ src/multibyte/wcsnrtombs.c
+--- a/src/multibyte/wcsnrtombs.c
++++ b/src/multibyte/wcsnrtombs.c
 @@ -1,41 +1,33 @@
  #include <wchar.h>
 +#include <limits.h>
diff --git a/srcpkgs/musl/patches/aarch64-fregs.patch b/srcpkgs/musl/patches/aarch64-fregs.patch
index 9c89de447320..024eed11a8e5 100644
--- a/srcpkgs/musl/patches/aarch64-fregs.patch
+++ b/srcpkgs/musl/patches/aarch64-fregs.patch
@@ -2,8 +2,8 @@ Use types compatible with glibc/kernel headers.
 
 diff --git a/arch/aarch64/bits/signal.h b/arch/aarch64/bits/signal.h
 index b71261f5..5098c734 100644
---- arch/aarch64/bits/signal.h
-+++ arch/aarch64/bits/signal.h
+--- a/arch/aarch64/bits/signal.h
++++ b/arch/aarch64/bits/signal.h
 @@ -11,7 +11,7 @@ typedef unsigned long greg_t;
  typedef unsigned long gregset_t[34];
  
@@ -24,8 +24,8 @@ index b71261f5..5098c734 100644
  	struct _aarch64_ctx head;
 diff --git a/arch/aarch64/bits/user.h b/arch/aarch64/bits/user.h
 index d12cdf7f..8a1002aa 100644
---- arch/aarch64/bits/user.h
-+++ arch/aarch64/bits/user.h
+--- a/arch/aarch64/bits/user.h
++++ b/arch/aarch64/bits/user.h
 @@ -6,7 +6,7 @@ struct user_regs_struct {
  };
  
diff --git a/srcpkgs/musl/patches/epoll_cp.patch b/srcpkgs/musl/patches/epoll_cp.patch
index 429aff70b137..92f47551ad8e 100644
--- a/srcpkgs/musl/patches/epoll_cp.patch
+++ b/srcpkgs/musl/patches/epoll_cp.patch
@@ -12,8 +12,8 @@ cancellation points should be done.
 
 diff --git src/linux/epoll.c src/linux/epoll.c
 index deff5b10..93baa814 100644
---- src/linux/epoll.c
-+++ src/linux/epoll.c
+--- a/src/linux/epoll.c
++++ b/src/linux/epoll.c
 @@ -24,9 +24,9 @@ int epoll_ctl(int fd, int op, int fd2, struct epoll_event *ev)
  
  int epoll_pwait(int fd, struct epoll_event *ev, int cnt, int to, const sigset_t *sigs)
diff --git a/srcpkgs/musl/patches/isascii.patch b/srcpkgs/musl/patches/isascii.patch
index 372ab1f44ab2..6719d2ee188f 100644
--- a/srcpkgs/musl/patches/isascii.patch
+++ b/srcpkgs/musl/patches/isascii.patch
@@ -7,8 +7,8 @@ analogous to commit a60457c84a4b59ab564d7f4abb660a70283ba98d.
 
 diff --git include/ctype.h include/ctype.h
 index 7936536f..32bcef4d 100644
---- include/ctype.h
-+++ include/ctype.h
+--- a/include/ctype.h
++++ b/include/ctype.h
 @@ -64,7 +64,9 @@ int   isascii(int);
  int   toascii(int);
  #define _tolower(a) ((a)|0x20)
diff --git a/srcpkgs/musl/patches/mo_lookup.patch b/srcpkgs/musl/patches/mo_lookup.patch
index c23eaf33bc37..ae86e33c9c70 100644
--- a/srcpkgs/musl/patches/mo_lookup.patch
+++ b/srcpkgs/musl/patches/mo_lookup.patch
@@ -6,8 +6,8 @@ and probably others.
 
 	--xtraeme
 
---- src/locale/__mo_lookup.c.orig	2019-06-26 09:55:36.843012674 +0200
-+++ src/locale/__mo_lookup.c	2019-06-26 09:56:11.529443955 +0200
+--- a/src/locale/__mo_lookup.c.orig	2019-06-26 09:55:36.843012674 +0200
++++ b/src/locale/__mo_lookup.c	2019-06-26 09:56:11.529443955 +0200
 @@ -13,7 +13,7 @@ const char *__mo_lookup(const void *p, s
  	uint32_t b = 0, n = swapc(mo[2], sw);
  	uint32_t o = swapc(mo[3], sw);
diff --git a/srcpkgs/musl/patches/ppc-pt_regs.patch b/srcpkgs/musl/patches/ppc-pt_regs.patch
index 93ab51e25c06..45815321bf0f 100644
--- a/srcpkgs/musl/patches/ppc-pt_regs.patch
+++ b/srcpkgs/musl/patches/ppc-pt_regs.patch
@@ -12,8 +12,8 @@ Date:   Sat Oct 19 15:53:43 2019 -0400
 
 diff --git a/arch/powerpc/bits/signal.h b/arch/powerpc/bits/signal.h
 index 06efb11c..c1bf3caf 100644
---- arch/powerpc/bits/signal.h
-+++ arch/powerpc/bits/signal.h
+--- a/arch/powerpc/bits/signal.h
++++ b/arch/powerpc/bits/signal.h
 @@ -28,7 +28,7 @@ struct sigcontext {
  	int signal;
  	unsigned long handler;
@@ -25,8 +25,8 @@ index 06efb11c..c1bf3caf 100644
  typedef struct {
 diff --git a/arch/powerpc64/bits/signal.h b/arch/powerpc64/bits/signal.h
 index 4dec22a5..d5493b18 100644
---- arch/powerpc64/bits/signal.h
-+++ arch/powerpc64/bits/signal.h
+--- a/arch/powerpc64/bits/signal.h
++++ b/arch/powerpc64/bits/signal.h
 @@ -32,7 +32,7 @@ typedef struct sigcontext {
  	int _pad0;
  	unsigned long handler;
diff --git a/srcpkgs/musl/patches/ppc64-fpregset_t.patch b/srcpkgs/musl/patches/ppc64-fpregset_t.patch
index 40c2a066acab..12617ba0ef7d 100644
--- a/srcpkgs/musl/patches/ppc64-fpregset_t.patch
+++ b/srcpkgs/musl/patches/ppc64-fpregset_t.patch
@@ -14,8 +14,8 @@ Date:   Sat Oct 19 15:39:45 2019 -0400
 
 diff --git a/arch/powerpc64/bits/signal.h b/arch/powerpc64/bits/signal.h
 index 2cc0604c..4dec22a5 100644
---- arch/powerpc64/bits/signal.h
-+++ arch/powerpc64/bits/signal.h
+--- a/arch/powerpc64/bits/signal.h
++++ b/arch/powerpc64/bits/signal.h
 @@ -9,11 +9,7 @@
  #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  
diff --git a/srcpkgs/musl/patches/ppcle.patch b/srcpkgs/musl/patches/ppcle.patch
index 568dcce2de82..7d49338a5a0f 100644
--- a/srcpkgs/musl/patches/ppcle.patch
+++ b/srcpkgs/musl/patches/ppcle.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] add ppc32 le subarch
 
 diff --git configure configure
 index 8680128..f1ca58e 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -645,6 +645,7 @@ fi
  if test "$ARCH" = "powerpc" ; then
  trycppif "__NO_FPRS__ && !_SOFT_FLOAT" "$t" && fail \
diff --git a/srcpkgs/musl/patches/reallocarray.patch b/srcpkgs/musl/patches/reallocarray.patch
index 6d5faf32ccf5..cfaab330e89a 100644
--- a/srcpkgs/musl/patches/reallocarray.patch
+++ b/srcpkgs/musl/patches/reallocarray.patch
@@ -11,8 +11,8 @@ while glibc 2.29 allows its usage in _DEFAULT_SOURCE.
 
 diff --git a/include/stdlib.h b/include/stdlib.h
 index 194c2033..b54a051f 100644
---- include/stdlib.h
-+++ include/stdlib.h
+--- a/include/stdlib.h
++++ b/include/stdlib.h
 @@ -145,6 +145,7 @@ int getloadavg(double *, int);
  int clearenv(void);
  #define WCOREDUMP(s) ((s) & 0x80)
@@ -25,7 +25,7 @@ diff --git a/src/malloc/reallocarray.c b/src/malloc/reallocarray.c
 new file mode 100644
 index 00000000..4a6ebe46
 --- /dev/null
-+++ src/malloc/reallocarray.c
++++ b/src/malloc/reallocarray.c
 @@ -0,0 +1,13 @@
 +#define _BSD_SOURCE
 +#include <errno.h>
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 337a3082faa9..eaa3dc12e8e5 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://www.musl-libc.org/"
 distfiles="http://www.musl-libc.org/releases/musl-${version}.tar.gz"
 checksum=1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
+patch_args=-Np1
 
 nostrip_files="libc.so"
 shlib_provides="libc.so"
diff --git a/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch b/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
index 9da918e4345f..528b5d5d8bf6 100644
--- a/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
+++ b/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
@@ -16,8 +16,8 @@ Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
 
 diff --git a/linux-user/signal.c b/linux-user/signal.c
 index 5ca6d62b15..e917c16d91 100644
---- linux-user/signal.c
-+++ linux-user/signal.c
+--- a/linux-user/signal.c
++++ b/linux-user/signal.c
 @@ -25,6 +25,13 @@
  #include "trace.h"
  #include "signal-common.h"
diff --git a/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch b/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch
index 009c3eab1b51..ecdd049f7921 100644
--- a/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch
+++ b/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch
@@ -2,8 +2,8 @@ Source: @pullmoll
 Upstream: no
 Reason: Target architectures with soft float do not define these constants.
 
---- tests/fp/fp-bench.c	2020-12-08 17:59:44.000000000 +0100
-+++ tests/fp/fp-bench.c	2020-12-12 20:38:40.702235420 +0100
+--- a/tests/fp/fp-bench.c	2020-12-08 17:59:44.000000000 +0100
++++ b/tests/fp/fp-bench.c	2020-12-12 20:38:40.702235420 +0100
 @@ -485,16 +485,32 @@
  
      switch (rounding) {
diff --git a/srcpkgs/qemu/patches/mmap-mremap-efault.patch b/srcpkgs/qemu/patches/mmap-mremap-efault.patch
index be58a46df664..5a70e9658b30 100644
--- a/srcpkgs/qemu/patches/mmap-mremap-efault.patch
+++ b/srcpkgs/qemu/patches/mmap-mremap-efault.patch
@@ -8,8 +8,8 @@ Also speed up the loop when checking for increasing the mappings size to go
 in steps of TARGET_PAGE_SIZE and OR-in a check for the very last byte of the range.
 diff --git linux-user/mmap.c linux-user/mmap.c
 index 7e3b245..1e8d0f1 100644
---- linux-user/mmap.c
-+++ linux-user/mmap.c
+--- a/linux-user/mmap.c
++++ b/linux-user/mmap.c
 @@ -738,7 +738,7 @@ abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size,
           !guest_range_valid_untagged(new_addr, new_size)) ||
          ((flags & MREMAP_MAYMOVE) == 0 &&
diff --git a/srcpkgs/qemu/patches/musl-9p-limits_h.patch b/srcpkgs/qemu/patches/musl-9p-limits_h.patch
index fca3207c84a4..ee0f89886352 100644
--- a/srcpkgs/qemu/patches/musl-9p-limits_h.patch
+++ b/srcpkgs/qemu/patches/musl-9p-limits_h.patch
@@ -1,5 +1,5 @@
---- hw/9pfs/9p.c.orig	2016-12-21 15:53:59.997900753 +0100
-+++ hw/9pfs/9p.c	2016-12-21 15:54:03.006935717 +0100
+--- a/hw/9pfs/9p.c.orig	2016-12-21 15:53:59.997900753 +0100
++++ b/hw/9pfs/9p.c	2016-12-21 15:54:03.006935717 +0100
 @@ -11,6 +11,7 @@
   *
   */
diff --git a/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch b/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch
index 1b00c27e70a4..e0b76c4d3c25 100644
--- a/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch
+++ b/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch
@@ -1,5 +1,5 @@
---- linux-user/syscall.c.orig	2017-04-25 23:46:47.896819860 +0200
-+++ linux-user/syscall.c	2017-04-26 08:43:48.821452132 +0200
+--- a/linux-user/syscall.c.orig	2017-04-25 23:46:47.896819860 +0200
++++ b/linux-user/syscall.c	2017-04-26 08:43:48.821452132 +0200
 @@ -34,6 +34,7 @@
  #include <sys/resource.h>
  #include <sys/swap.h>
diff --git a/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch b/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch
index 11497d5fc900..c51fca6cf432 100644
--- a/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch
+++ b/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch
@@ -1,5 +1,5 @@
---- linux-user/syscall.c.orig    2015-04-10 07:10:06.305662505 +0000
-+++ linux-user/syscall.c 2015-04-10 07:36:53.801871968 +0000
+--- a/linux-user/syscall.c.orig    2015-04-10 07:10:06.305662505 +0000
++++ b/linux-user/syscall.c 2015-04-10 07:36:53.801871968 +0000
 @@ -5020,9 +5020,20 @@
      return 0;
  }
diff --git a/srcpkgs/qemu/patches/musl-initialize-msghdr.patch b/srcpkgs/qemu/patches/musl-initialize-msghdr.patch
index c195f0c0b1f4..6d96b3511daf 100644
--- a/srcpkgs/qemu/patches/musl-initialize-msghdr.patch
+++ b/srcpkgs/qemu/patches/musl-initialize-msghdr.patch
@@ -2,8 +2,8 @@ Source: https://github.com/void-linux/void-packages/issues/23557
 
 diff --git linux-user/syscall.c linux-user/syscall.c
 index 945fc25..8d8b68a 100644
---- linux-user/syscall.c
-+++ linux-user/syscall.c
+--- a/linux-user/syscall.c
++++ b/linux-user/syscall.c
 @@ -3071,7 +3071,7 @@ static abi_long do_sendrecvmsg_locked(int fd, struct target_msghdr *msgp,
                                        int flags, int send)
  {
diff --git a/srcpkgs/qemu/patches/musl-ppc.patch b/srcpkgs/qemu/patches/musl-ppc.patch
index 6f066c0b30eb..744efe6a4980 100644
--- a/srcpkgs/qemu/patches/musl-ppc.patch
+++ b/srcpkgs/qemu/patches/musl-ppc.patch
@@ -1,5 +1,5 @@
---- accel/tcg/user-exec.c
-+++ accel/tcg/user-exec.c
+--- a/accel/tcg/user-exec.c
++++ b/accel/tcg/user-exec.c
 @@ -286,6 +286,7 @@ int cpu_signal_handler(int host_signum, void *pinfo,
   */
  #ifdef linux
@@ -44,8 +44,8 @@
  #endif /* linux */
  
  #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
---- linux-user/host/ppc64/hostdep.h
-+++ linux-user/host/ppc64/hostdep.h
+--- a/linux-user/host/ppc64/hostdep.h
++++ b/linux-user/host/ppc64/hostdep.h
 @@ -27,7 +27,11 @@ extern char safe_syscall_end[];
  static inline void rewind_if_in_safe_syscall(void *puc)
  {
@@ -58,8 +58,8 @@
  
      if (*pcreg > (uintptr_t)safe_syscall_start
          && *pcreg < (uintptr_t)safe_syscall_end) {
---- util/mmap-alloc.c
-+++ util/mmap-alloc.c
+--- a/util/mmap-alloc.c
++++ b/util/mmap-alloc.c
 @@ -25,6 +25,10 @@
  
  #ifdef CONFIG_LINUX
diff --git a/srcpkgs/qemu/patches/time64.patch b/srcpkgs/qemu/patches/time64.patch
index 7f74ed356934..28be93004891 100644
--- a/srcpkgs/qemu/patches/time64.patch
+++ b/srcpkgs/qemu/patches/time64.patch
@@ -1,5 +1,5 @@
---- contrib/vhost-user-input/main.c	2020-12-08 17:59:44.000000000 +0100
-+++ contrib/vhost-user-input/main.c	2020-12-12 20:59:04.316996648 +0100
+--- a/contrib/vhost-user-input/main.c	2020-12-08 17:59:44.000000000 +0100
++++ b/contrib/vhost-user-input/main.c	2020-12-12 20:59:04.316996648 +0100
 @@ -114,14 +114,17 @@
  
  static void vi_handle_status(VuInput *vi, virtio_input_event *event)
@@ -19,8 +19,8 @@
      evdev.type = le16toh(event->type);
      evdev.code = le16toh(event->code);
      evdev.value = le32toh(event->value);
---- hw/input/virtio-input-host.c	2020-12-08 17:59:44.000000000 +0100
-+++ hw/input/virtio-input-host.c	2020-12-12 21:33:44.750471890 +0100
+--- a/hw/input/virtio-input-host.c	2020-12-08 17:59:44.000000000 +0100
++++ b/hw/input/virtio-input-host.c	2020-12-12 21:33:44.750471890 +0100
 @@ -192,14 +192,17 @@
                                              virtio_input_event *event)
  {
diff --git a/srcpkgs/qemu/patches/xxx-ppcle.patch b/srcpkgs/qemu/patches/xxx-ppcle.patch
index 99396bff9dd5..c5325c9ca70e 100644
--- a/srcpkgs/qemu/patches/xxx-ppcle.patch
+++ b/srcpkgs/qemu/patches/xxx-ppcle.patch
@@ -14,8 +14,8 @@ Subject: [PATCH] support ppcle architecture
 
 diff --git configure configure
 index 18c26e0..03d3e18 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -653,7 +653,11 @@ elif check_define _ARCH_PPC ; then
        cpu="ppc64"
      fi
@@ -62,7 +62,7 @@ diff --git default-configs/targets/ppcle-linux-user.mak default-configs/targets/
 new file mode 100644
 index 0000000..2259243
 --- /dev/null
-+++ default-configs/targets/ppcle-linux-user.mak
++++ b/default-configs/targets/ppcle-linux-user.mak
 @@ -0,0 +1,4 @@
 +TARGET_ARCH=ppc
 +TARGET_SYSTBL_ABI=common,nospu,32
@@ -70,8 +70,8 @@ index 0000000..2259243
 +TARGET_XML_FILES= gdb-xml/power-core.xml gdb-xml/power-fpu.xml gdb-xml/power-altivec.xml gdb-xml/power-spe.xml
 diff --git linux-user/ppc/target_syscall.h linux-user/ppc/target_syscall.h
 index b9c4b81..cf26497 100644
---- linux-user/ppc/target_syscall.h
-+++ linux-user/ppc/target_syscall.h
+--- a/linux-user/ppc/target_syscall.h
++++ b/linux-user/ppc/target_syscall.h
 @@ -65,7 +65,11 @@ struct target_revectored_struct {
  #define UNAME_MACHINE "ppc64le"
  #endif
@@ -86,8 +86,8 @@ index b9c4b81..cf26497 100644
  
 diff --git scripts/qemu-binfmt-conf.sh scripts/qemu-binfmt-conf.sh
 index 9f1580a..393943f 100755
---- scripts/qemu-binfmt-conf.sh
-+++ scripts/qemu-binfmt-conf.sh
+--- a/scripts/qemu-binfmt-conf.sh
++++ b/scripts/qemu-binfmt-conf.sh
 @@ -46,6 +46,10 @@ ppc_magic='\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x
  ppc_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff'
  ppc_family=ppc
@@ -110,8 +110,8 @@ index 9f1580a..393943f 100755
      arm|armel|armhf|arm64|armv[4-9]*l|aarch64)
 diff --git tests/tcg/configure.sh tests/tcg/configure.sh
 index e1b70e2..e07f5fe 100755
---- tests/tcg/configure.sh
-+++ tests/tcg/configure.sh
+--- a/tests/tcg/configure.sh
++++ b/tests/tcg/configure.sh
 @@ -59,6 +59,8 @@ fi
  : $(cross_cc_mips="mips-linux-gnu-gcc")
  : ${cross_cc_ppc="powerpc-linux-gnu-gcc"}
diff --git a/srcpkgs/qemu/template b/srcpkgs/qemu/template
index 0fadb41f609c..0a08ed821536 100644
--- a/srcpkgs/qemu/template
+++ b/srcpkgs/qemu/template
@@ -30,6 +30,7 @@ nostrip_files="hppa-firmware.img openbios-ppc openbios-sparc32 openbios-sparc64
  opensbi-riscv64-generic-fw_dynamic.elf"
 # FIXME
 make_check=extended
+patch_args=-Np1
 
 build_options="gtk3 opengl sdl2 spice virgl smartcard numa iscsi"
 build_options_default="opengl gtk3 virgl sdl2 numa iscsi"
diff --git a/srcpkgs/util-linux/patches/fix-musl.patch b/srcpkgs/util-linux/patches/fix-musl.patch
index e426672183d1..8d1eeb9d2740 100644
--- a/srcpkgs/util-linux/patches/fix-musl.patch
+++ b/srcpkgs/util-linux/patches/fix-musl.patch
@@ -1,7 +1,7 @@
 Define __SWORD_TYPE for musl.
 
---- sys-utils/switch_root.c.orig	2014-09-20 21:33:27.551345526 +0200
-+++ sys-utils/switch_root.c	2014-09-20 21:34:17.958584374 +0200
+--- a/sys-utils/switch_root.c.orig	2014-09-20 21:33:27.551345526 +0200
++++ b/sys-utils/switch_root.c	2014-09-20 21:34:17.958584374 +0200
 @@ -47,6 +47,15 @@
  #define MNT_DETACH       0x00000002	/* Just detach from the tree */
  #endif
diff --git a/srcpkgs/util-linux/template b/srcpkgs/util-linux/template
index 4fb8292531ba..fbd3f00e6f80 100644
--- a/srcpkgs/util-linux/template
+++ b/srcpkgs/util-linux/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/utils/util-linux/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/v${version%.${version#*.*.}}/${pkgname}-${version}.tar.xz"
 checksum=f7516ba9d8689343594356f0e5e1a5f0da34adfbc89023437735872bb5024c5f
+patch_args=-Np1
 
 # Create uuidd system account for uuidd.
 system_accounts="_uuidd"
diff --git a/srcpkgs/xbps/patches/cflags.patch b/srcpkgs/xbps/patches/cflags.patch
index 8e576f2a887d..bf95fea3bebe 100644
--- a/srcpkgs/xbps/patches/cflags.patch
+++ b/srcpkgs/xbps/patches/cflags.patch
@@ -4,8 +4,8 @@ when using strong stack protector)
 
 diff --git lib/Makefile lib/Makefile
 index 65342ef..847bfdd 100644
---- lib/Makefile
-+++ lib/Makefile
+--- a/lib/Makefile
++++ b/lib/Makefile
 @@ -78,7 +78,7 @@ $(OBJS): %.o: %.c
  
  libxbps.so: $(LIBFETCH_OBJS) $(LIBPROP_OBJS) $(OBJS)
diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template
index 8f986d22f9f3..c6af59bd635a 100644
--- a/srcpkgs/xbps/template
+++ b/srcpkgs/xbps/template
@@ -11,6 +11,7 @@ homepage="https://github.com/void-linux/xbps"
 changelog="https://github.com/void-linux/xbps/blob/master/NEWS"
 distfiles="https://github.com/void-linux/xbps/archive/${version}.tar.gz"
 checksum=0cbd8d5f23a62047c75974bca21da9f004a94efffd7f37c68562a8dbc869fb2a
+patch_args=-Np1
 
 hostmakedepends="pkgconf"
 checkdepends="kyua"

From 1dad7a5b2a3483159bf2e1ad4e360dc0abcd77f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:28:34 +0700
Subject: [PATCH 3/6] srcpkgs: add patch_args=-Np0 en-mass

Generated with:

	git ls-files 'srcpkgs/**/patches/*' |
	cut -d/ -f2 | uniq |
	xargs printf 'srcpkgs/%s/template\n'  |
	xargs grep -L 'patch_args=' |
	xargs sed -i "$(printf '1,/^$/{/^$/i\\\npatch_args=-Np0\n}\n')"
---
 srcpkgs/0ad/template                                 | 1 +
 srcpkgs/66-tools/template                            | 1 +
 srcpkgs/7kaa/template                                | 1 +
 srcpkgs/9base/template                               | 1 +
 srcpkgs/9mount/template                              | 1 +
 srcpkgs/Aegisub/template                             | 1 +
 srcpkgs/Brainfunk/template                           | 1 +
 srcpkgs/CPU-X/template                               | 1 +
 srcpkgs/Carla/template                               | 1 +
 srcpkgs/Cataclysm-DDA/template                       | 1 +
 srcpkgs/Chipmunk2D/template                          | 1 +
 srcpkgs/Clight/template                              | 1 +
 srcpkgs/Clp/template                                 | 1 +
 srcpkgs/CoinMP/template                              | 1 +
 srcpkgs/CubicSDR/template                            | 1 +
 srcpkgs/DarkRadiant/template                         | 1 +
 srcpkgs/Fritzing/template                            | 1 +
 srcpkgs/GConf/template                               | 1 +
 srcpkgs/Gauche/template                              | 1 +
 srcpkgs/GraphicsMagick/template                      | 1 +
 srcpkgs/Haru/template                                | 1 +
 srcpkgs/LibreCAD/template                            | 1 +
 srcpkgs/LuaJIT/template                              | 1 +
 srcpkgs/MEGAcmd/template                             | 1 +
 srcpkgs/Maelstrom/template                           | 1 +
 srcpkgs/MonkeysAudio/template                        | 1 +
 srcpkgs/ORBit2/template                              | 1 +
 srcpkgs/OpenCPN/template                             | 1 +
 srcpkgs/OpenXcom/template                            | 1 +
 srcpkgs/PAmix/template                               | 1 +
 srcpkgs/PrusaSlicer/template                         | 1 +
 srcpkgs/QLC+/template                                | 1 +
 srcpkgs/SDL/template                                 | 1 +
 srcpkgs/SDL2/template                                | 1 +
 srcpkgs/SLADE/template                               | 1 +
 srcpkgs/SMC/template                                 | 1 +
 srcpkgs/Signal-Desktop/template                      | 1 +
 srcpkgs/TSC/template                                 | 1 +
 srcpkgs/VeraCrypt/template                           | 1 +
 srcpkgs/XyGrib/template                              | 1 +
 srcpkgs/ZMusic/template                              | 1 +
 srcpkgs/a2ps/template                                | 1 +
 srcpkgs/abduco/template                              | 1 +
 srcpkgs/abook/template                               | 1 +
 srcpkgs/accountsservice/template                     | 1 +
 srcpkgs/acct/template                                | 1 +
 srcpkgs/acpi_call-dkms/template                      | 1 +
 srcpkgs/acpid/template                               | 1 +
 srcpkgs/actiona/template                             | 1 +
 srcpkgs/afterstep/template                           | 1 +
 srcpkgs/agg/template                                 | 1 +
 srcpkgs/allegro4/template                            | 1 +
 srcpkgs/allegro5/template                            | 1 +
 srcpkgs/alsa-firmware/template                       | 1 +
 srcpkgs/alsa-tools/template                          | 1 +
 srcpkgs/amdvlk/template                              | 1 +
 srcpkgs/angrysearch/template                         | 1 +
 srcpkgs/anjuta/template                              | 1 +
 srcpkgs/anki/template                                | 1 +
 srcpkgs/antimicrox/template                          | 1 +
 srcpkgs/antiword/template                            | 1 +
 srcpkgs/apache/template                              | 1 +
 srcpkgs/apl/template                                 | 1 +
 srcpkgs/appstream-glib/template                      | 1 +
 srcpkgs/apr/template                                 | 1 +
 srcpkgs/aqbanking/template                           | 1 +
 srcpkgs/aqemu/template                               | 1 +
 srcpkgs/ardour/template                              | 1 +
 srcpkgs/arduino/template                             | 1 +
 srcpkgs/argon2/template                              | 1 +
 srcpkgs/argyllcms/template                           | 1 +
 srcpkgs/ark/template                                 | 1 +
 srcpkgs/armadillo/template                           | 1 +
 srcpkgs/artyfx/template                              | 1 +
 srcpkgs/asignify/template                            | 1 +
 srcpkgs/assimp/template                              | 1 +
 srcpkgs/astroid/template                             | 1 +
 srcpkgs/astyle/template                              | 1 +
 srcpkgs/at/template                                  | 1 +
 srcpkgs/aterm/template                               | 1 +
 srcpkgs/atomicparsley/template                       | 1 +
 srcpkgs/atop/template                                | 1 +
 srcpkgs/attic/template                               | 1 +
 srcpkgs/attract/template                             | 1 +
 srcpkgs/aubio/template                               | 1 +
 srcpkgs/audacity/template                            | 1 +
 srcpkgs/audiofile/template                           | 1 +
 srcpkgs/autoconf/template                            | 1 +
 srcpkgs/autoconf213/template                         | 1 +
 srcpkgs/autofs/template                              | 1 +
 srcpkgs/autogen/template                             | 1 +
 srcpkgs/avidemux/template                            | 1 +
 srcpkgs/avr-binutils/template                        | 1 +
 srcpkgs/bacula-common/template                       | 1 +
 srcpkgs/bananapi-uboot/template                      | 1 +
 srcpkgs/basu/template                                | 1 +
 srcpkgs/batman-adv14/template                        | 1 +
 srcpkgs/bbkeys/template                              | 1 +
 srcpkgs/bbswitch/template                            | 1 +
 srcpkgs/bc/template                                  | 1 +
 srcpkgs/bcc/template                                 | 1 +
 srcpkgs/bctoolbox/template                           | 1 +
 srcpkgs/beep/template                                | 1 +
 srcpkgs/beets/template                               | 1 +
 srcpkgs/beignet/template                             | 1 +
 srcpkgs/belle-sip/template                           | 1 +
 srcpkgs/berkeley-abc/template                        | 1 +
 srcpkgs/berry/template                               | 1 +
 srcpkgs/biew/template                                | 1 +
 srcpkgs/bin86/template                               | 1 +
 srcpkgs/binwalk/template                             | 1 +
 srcpkgs/bird/template                                | 1 +
 srcpkgs/bish/template                                | 1 +
 srcpkgs/bitchx/template                              | 1 +
 srcpkgs/bitfighter/template                          | 1 +
 srcpkgs/blackboxwm/template                          | 1 +
 srcpkgs/bmon/template                                | 1 +
 srcpkgs/boinc/template                               | 1 +
 srcpkgs/bomi/template                                | 1 +
 srcpkgs/bonnie++/template                            | 1 +
 srcpkgs/boomerang/template                           | 1 +
 srcpkgs/boost/template                               | 1 +
 srcpkgs/bootchart2/template                          | 1 +
 srcpkgs/botan/template                               | 1 +
 srcpkgs/bridge-utils/template                        | 1 +
 srcpkgs/brltty/template                              | 1 +
 srcpkgs/broadcom-wl-dkms/template                    | 1 +
 srcpkgs/browsh/template                              | 1 +
 srcpkgs/bsdiff/template                              | 1 +
 srcpkgs/bsdunzip/template                            | 1 +
 srcpkgs/bubblewrap/template                          | 1 +
 srcpkgs/buffer/template                              | 1 +
 srcpkgs/buildbot/template                            | 1 +
 srcpkgs/buku/template                                | 1 +
 srcpkgs/bullet/template                              | 1 +
 srcpkgs/bumblebee/template                           | 1 +
 srcpkgs/bup/template                                 | 1 +
 srcpkgs/burp2-server/template                        | 1 +
 srcpkgs/busybox/template                             | 1 +
 srcpkgs/bzip2/template                               | 1 +
 srcpkgs/c-blosc/template                             | 1 +
 srcpkgs/c-client/template                            | 1 +
 srcpkgs/ca-certificates/template                     | 1 +
 srcpkgs/cabal-install/template                       | 1 +
 srcpkgs/cackey/template                              | 1 +
 srcpkgs/cadence/template                             | 1 +
 srcpkgs/calc/template                                | 1 +
 srcpkgs/caps/template                                | 1 +
 srcpkgs/cargo/template                               | 1 +
 srcpkgs/catch2/template                              | 1 +
 srcpkgs/catdoc/template                              | 1 +
 srcpkgs/cbang/template                               | 1 +
 srcpkgs/ccextractor/template                         | 1 +
 srcpkgs/ccl/template                                 | 1 +
 srcpkgs/cclive/template                              | 1 +
 srcpkgs/ccsm/template                                | 1 +
 srcpkgs/cdb/template                                 | 1 +
 srcpkgs/cdecl/template                               | 1 +
 srcpkgs/cdm/template                                 | 1 +
 srcpkgs/cdparanoia/template                          | 1 +
 srcpkgs/cegui/template                               | 1 +
 srcpkgs/cegui07/template                             | 1 +
 srcpkgs/celestia-glut/template                       | 1 +
 srcpkgs/celestia-gtk/template                        | 1 +
 srcpkgs/chafa/template                               | 1 +
 srcpkgs/chatterino2/template                         | 1 +
 srcpkgs/chatty/template                              | 1 +
 srcpkgs/chkrootkit/template                          | 1 +
 srcpkgs/chmlib/template                              | 1 +
 srcpkgs/choosenim/template                           | 1 +
 srcpkgs/choqok/template                              | 1 +
 srcpkgs/chromium/template                            | 1 +
 srcpkgs/ck/template                                  | 1 +
 srcpkgs/ckmame/template                              | 1 +
 srcpkgs/clementine/template                          | 1 +
 srcpkgs/cli-visualizer/template                      | 1 +
 srcpkgs/clib/template                                | 1 +
 srcpkgs/clisp/template                               | 1 +
 srcpkgs/cln/template                                 | 1 +
 srcpkgs/clog/template                                | 1 +
 srcpkgs/cloog/template                               | 1 +
 srcpkgs/clucene/template                             | 1 +
 srcpkgs/clutter/template                             | 1 +
 srcpkgs/cmocka/template                              | 1 +
 srcpkgs/cmus/template                                | 1 +
 srcpkgs/codeblocks/template                          | 1 +
 srcpkgs/codecrypt/template                           | 1 +
 srcpkgs/codelite/template                            | 1 +
 srcpkgs/coin3/template                               | 1 +
 srcpkgs/collectd/template                            | 1 +
 srcpkgs/colord/template                              | 1 +
 srcpkgs/commoncpp2/template                          | 1 +
 srcpkgs/connman-ncurses/template                     | 1 +
 srcpkgs/containers.image/template                    | 1 +
 srcpkgs/coreboot-utils/template                      | 1 +
 srcpkgs/coreutils/template                           | 1 +
 srcpkgs/coturn/template                              | 1 +
 srcpkgs/cpuburn/template                             | 1 +
 srcpkgs/cpulimit/template                            | 1 +
 srcpkgs/criu/template                                | 1 +
 srcpkgs/crossguid/template                           | 1 +
 srcpkgs/crypto++/template                            | 1 +
 srcpkgs/csound/template                              | 1 +
 srcpkgs/csync2/template                              | 1 +
 srcpkgs/ctags/template                               | 1 +
 srcpkgs/cubieboard2-uboot/template                   | 1 +
 srcpkgs/cuetools/template                            | 1 +
 srcpkgs/cups-pdf/template                            | 1 +
 srcpkgs/cups/template                                | 1 +
 srcpkgs/cura-engine/template                         | 1 +
 srcpkgs/cutemarked/template                          | 1 +
 srcpkgs/cvsps2/template                              | 1 +
 srcpkgs/daemontools/template                         | 1 +
 srcpkgs/dante/template                               | 1 +
 srcpkgs/dar/template                                 | 1 +
 srcpkgs/darkplaces/template                          | 1 +
 srcpkgs/darktable/template                           | 1 +
 srcpkgs/dash/template                                | 1 +
 srcpkgs/davfs2/template                              | 1 +
 srcpkgs/db/template                                  | 1 +
 srcpkgs/dbus-glib/template                           | 1 +
 srcpkgs/dcraw/template                               | 1 +
 srcpkgs/dcron/template                               | 1 +
 srcpkgs/deadbeef-fb/template                         | 1 +
 srcpkgs/deadbeef/template                            | 1 +
 srcpkgs/debug-me/template                            | 1 +
 srcpkgs/desmume/template                             | 1 +
 srcpkgs/devil/template                               | 1 +
 srcpkgs/dhcp/template                                | 1 +
 srcpkgs/dhcpcd/template                              | 1 +
 srcpkgs/dia/template                                 | 1 +
 srcpkgs/diod/template                                | 1 +
 srcpkgs/discord-ptb/template                         | 1 +
 srcpkgs/discord/template                             | 1 +
 srcpkgs/discount/template                            | 1 +
 srcpkgs/dispcalGUI/template                          | 1 +
 srcpkgs/djview/template                              | 1 +
 srcpkgs/dma/template                                 | 1 +
 srcpkgs/dmd-bootstrap/template                       | 1 +
 srcpkgs/dmd2.081/template                            | 1 +
 srcpkgs/dmd2.091/template                            | 1 +
 srcpkgs/dmraid/template                              | 1 +
 srcpkgs/dmtx-utils/template                          | 1 +
 srcpkgs/docbook-xsl-ns/template                      | 1 +
 srcpkgs/docbook-xsl/template                         | 1 +
 srcpkgs/dolphin-emu/template                         | 1 +
 srcpkgs/dovecot/template                             | 1 +
 srcpkgs/doxygen/template                             | 1 +
 srcpkgs/dpdk/template                                | 1 +
 srcpkgs/dracut-crypt-ssh/template                    | 1 +
 srcpkgs/dracut/template                              | 1 +
 srcpkgs/drawterm/template                            | 1 +
 srcpkgs/drbd-utils/template                          | 1 +
 srcpkgs/dstat/template                               | 1 +
 srcpkgs/dua-cli/template                             | 1 +
 srcpkgs/dumpet/template                              | 1 +
 srcpkgs/dunelegacy/template                          | 1 +
 srcpkgs/duplicity/template                           | 1 +
 srcpkgs/dust3d/template                              | 1 +
 srcpkgs/dvd+rw-tools/template                        | 1 +
 srcpkgs/dvdauthor/template                           | 1 +
 srcpkgs/e2fsprogs/template                           | 1 +
 srcpkgs/eb/template                                  | 1 +
 srcpkgs/eboard/template                              | 1 +
 srcpkgs/ecl/template                                 | 1 +
 srcpkgs/ecryptfs-utils/template                      | 1 +
 srcpkgs/efibootmgr/template                          | 1 +
 srcpkgs/efl/template                                 | 1 +
 srcpkgs/electron10/template                          | 1 +
 srcpkgs/electron12/template                          | 1 +
 srcpkgs/elogind/template                             | 1 +
 srcpkgs/emerald/template                             | 1 +
 srcpkgs/endless-sky-gl21/template                    | 1 +
 srcpkgs/engrampa/template                            | 1 +
 srcpkgs/enigma/template                              | 1 +
 srcpkgs/enlightenment/template                       | 1 +
 srcpkgs/entr/template                                | 1 +
 srcpkgs/enyo-doom/template                           | 1 +
 srcpkgs/epdfview/template                            | 1 +
 srcpkgs/espeakup/template                            | 1 +
 srcpkgs/eukleides/template                           | 1 +
 srcpkgs/evemu/template                               | 1 +
 srcpkgs/evolution-data-server/template               | 1 +
 srcpkgs/evolution/template                           | 1 +
 srcpkgs/evtest/template                              | 1 +
 srcpkgs/ex-vi/template                               | 1 +
 srcpkgs/exfat-dkms/template                          | 1 +
 srcpkgs/exo/template                                 | 1 +
 srcpkgs/expect/template                              | 1 +
 srcpkgs/extra-cmake-modules/template                 | 1 +
 srcpkgs/faad2/template                               | 1 +
 srcpkgs/fake-hwclock/template                        | 1 +
 srcpkgs/fakeroot/template                            | 1 +
 srcpkgs/falkon/template                              | 1 +
 srcpkgs/farstream/template                           | 1 +
 srcpkgs/fastd/template                               | 1 +
 srcpkgs/faust/template                               | 1 +
 srcpkgs/fbida/template                               | 1 +
 srcpkgs/fbreader/template                            | 1 +
 srcpkgs/fbterm/template                              | 1 +
 srcpkgs/fbv/template                                 | 1 +
 srcpkgs/fbxkb/template                               | 1 +
 srcpkgs/fcitx-anthy/template                         | 1 +
 srcpkgs/fcitx/template                               | 1 +
 srcpkgs/fcron/template                               | 1 +
 srcpkgs/ferm/template                                | 1 +
 srcpkgs/ffmpeg/template                              | 1 +
 srcpkgs/fig2dev/template                             | 1 +
 srcpkgs/filezilla/template                           | 1 +
 srcpkgs/fingerprint-gui/template                     | 1 +
 srcpkgs/firefox-esr/template                         | 1 +
 srcpkgs/firefox/template                             | 1 +
 srcpkgs/firejail/template                            | 1 +
 srcpkgs/flatpak-builder/template                     | 1 +
 srcpkgs/flatpak/template                             | 1 +
 srcpkgs/flex/template                                | 1 +
 srcpkgs/flightgear/template                          | 1 +
 srcpkgs/flowcanvas/template                          | 1 +
 srcpkgs/foobillard++/template                        | 1 +
 srcpkgs/foomatic-db-engine/template                  | 1 +
 srcpkgs/foremost/template                            | 1 +
 srcpkgs/fossil/template                              | 1 +
 srcpkgs/fotoxx/template                              | 1 +
 srcpkgs/fpc/template                                 | 1 +
 srcpkgs/fprint_demo/template                         | 1 +
 srcpkgs/frame/template                               | 1 +
 srcpkgs/freecad/template                             | 1 +
 srcpkgs/freeciv/template                             | 1 +
 srcpkgs/freedroidClassic/template                    | 1 +
 srcpkgs/freeimage/template                           | 1 +
 srcpkgs/freeipmi/template                            | 1 +
 srcpkgs/freeorion/template                           | 1 +
 srcpkgs/freeplane/template                           | 1 +
 srcpkgs/freetds/template                             | 1 +
 srcpkgs/freetype/template                            | 1 +
 srcpkgs/freshplayerplugin/template                   | 1 +
 srcpkgs/fs-utils/template                            | 1 +
 srcpkgs/fuse/template                                | 1 +
 srcpkgs/gamin/template                               | 1 +
 srcpkgs/gammu/template                               | 1 +
 srcpkgs/gatling/template                             | 1 +
 srcpkgs/gavl/template                                | 1 +
 srcpkgs/gbdfed/template                              | 1 +
 srcpkgs/gcc-multilib/template                        | 1 +
 srcpkgs/gcc/template                                 | 1 +
 srcpkgs/gcolor2/template                             | 1 +
 srcpkgs/gdm/template                                 | 1 +
 srcpkgs/gdmap/template                               | 1 +
 srcpkgs/geary/template                               | 1 +
 srcpkgs/geda/template                                | 1 +
 srcpkgs/geis/template                                | 1 +
 srcpkgs/geos/template                                | 1 +
 srcpkgs/gfm/template                                 | 1 +
 srcpkgs/giac/template                                | 1 +
 srcpkgs/giflib/template                              | 1 +
 srcpkgs/giggle/template                              | 1 +
 srcpkgs/gimp/template                                | 1 +
 srcpkgs/git-annex/template                           | 1 +
 srcpkgs/gitea/template                               | 1 +
 srcpkgs/gitg/template                                | 1 +
 srcpkgs/gkrellm/template                             | 1 +
 srcpkgs/glances/template                             | 1 +
 srcpkgs/glib/template                                | 1 +
 srcpkgs/gloox/template                               | 1 +
 srcpkgs/glusterfs/template                           | 1 +
 srcpkgs/glyr/template                                | 1 +
 srcpkgs/gmrun/template                               | 1 +
 srcpkgs/gnome-authenticator/template                 | 1 +
 srcpkgs/gnome-desktop/template                       | 1 +
 srcpkgs/gnome-keyring/template                       | 1 +
 srcpkgs/gnome-latex/template                         | 1 +
 srcpkgs/gnome-photos/template                        | 1 +
 srcpkgs/gnome-screensaver/template                   | 1 +
 srcpkgs/gnome-session/template                       | 1 +
 srcpkgs/gnome-settings-daemon/template               | 1 +
 srcpkgs/gnome-terminal/template                      | 1 +
 srcpkgs/gnu-efi-libs/template                        | 1 +
 srcpkgs/gnucash/template                             | 1 +
 srcpkgs/gnupg2/template                              | 1 +
 srcpkgs/gnuradio-nrsc5/template                      | 1 +
 srcpkgs/gnustep-base/template                        | 1 +
 srcpkgs/gnustep-make/template                        | 1 +
 srcpkgs/gnutls/template                              | 1 +
 srcpkgs/goaccess/template                            | 1 +
 srcpkgs/godot/template                               | 1 +
 srcpkgs/gogglesmm/template                           | 1 +
 srcpkgs/goldendict/template                          | 1 +
 srcpkgs/gosu/template                                | 1 +
 srcpkgs/goxel/template                               | 1 +
 srcpkgs/gpart/template                               | 1 +
 srcpkgs/gperftools/template                          | 1 +
 srcpkgs/gpgme/template                               | 1 +
 srcpkgs/gpick/template                               | 1 +
 srcpkgs/gpm/template                                 | 1 +
 srcpkgs/gpsbabel/template                            | 1 +
 srcpkgs/gpsd/template                                | 1 +
 srcpkgs/grpc/template                                | 1 +
 srcpkgs/grub-customizer/template                     | 1 +
 srcpkgs/gscan2pdf/template                           | 1 +
 srcpkgs/gscope3/template                             | 1 +
 srcpkgs/gsl/template                                 | 1 +
 srcpkgs/gsoap/template                               | 1 +
 srcpkgs/gst-plugins-bad1/template                    | 1 +
 srcpkgs/gst-plugins-base1/template                   | 1 +
 srcpkgs/gst123/template                              | 1 +
 srcpkgs/gstreamermm/template                         | 1 +
 srcpkgs/gthumb/template                              | 1 +
 srcpkgs/gtk-sharp/template                           | 1 +
 srcpkgs/gtk-sharp2/template                          | 1 +
 srcpkgs/gtk-theme-config/template                    | 1 +
 srcpkgs/gtkglext/template                            | 1 +
 srcpkgs/gtkpod/template                              | 1 +
 srcpkgs/gtkspell/template                            | 1 +
 srcpkgs/gtypist/template                             | 1 +
 srcpkgs/guake/template                               | 1 +
 srcpkgs/guile/template                               | 1 +
 srcpkgs/guile1.8/template                            | 1 +
 srcpkgs/guitarix2/template                           | 1 +
 srcpkgs/gummiboot/template                           | 1 +
 srcpkgs/gupnp-igd/template                           | 1 +
 srcpkgs/guvcview/template                            | 1 +
 srcpkgs/gwenhywfar/template                          | 1 +
 srcpkgs/gxemul/template                              | 1 +
 srcpkgs/gzdoom/template                              | 1 +
 srcpkgs/h2o/template                                 | 1 +
 srcpkgs/halibut/template                             | 1 +
 srcpkgs/hamlib/template                              | 1 +
 srcpkgs/handbrake/template                           | 1 +
 srcpkgs/hardinfo/template                            | 1 +
 srcpkgs/heaptrack/template                           | 1 +
 srcpkgs/hedgewars/template                           | 1 +
 srcpkgs/hexchat/template                             | 1 +
 srcpkgs/hexer/template                               | 1 +
 srcpkgs/heyu/template                                | 1 +
 srcpkgs/hfsprogs/template                            | 1 +
 srcpkgs/higan/template                               | 1 +
 srcpkgs/hiredis/template                             | 1 +
 srcpkgs/hitch/template                               | 1 +
 srcpkgs/hlint/template                               | 1 +
 srcpkgs/hosts-update/template                        | 1 +
 srcpkgs/hplip/template                               | 1 +
 srcpkgs/hstr/template                                | 1 +
 srcpkgs/ht/template                                  | 1 +
 srcpkgs/http-parser/template                         | 1 +
 srcpkgs/httpdirfs/template                           | 1 +
 srcpkgs/hugin/template                               | 1 +
 srcpkgs/hunspell/template                            | 1 +
 srcpkgs/i3status/template                            | 1 +
 srcpkgs/ibus-anthy/template                          | 1 +
 srcpkgs/ibus-avro/template                           | 1 +
 srcpkgs/id3lib/template                              | 1 +
 srcpkgs/ifupdown/template                            | 1 +
 srcpkgs/igt-gpu-tools/template                       | 1 +
 srcpkgs/ilmbase/template                             | 1 +
 srcpkgs/imagescan/template                           | 1 +
 srcpkgs/imgbrd-grabber/template                      | 1 +
 srcpkgs/imwheel/template                             | 1 +
 srcpkgs/indent/template                              | 1 +
 srcpkgs/injeqt/template                              | 1 +
 srcpkgs/input-utils/template                         | 1 +
 srcpkgs/inspectrum/template                          | 1 +
 srcpkgs/invada-studio-plugins-lv2/template           | 1 +
 srcpkgs/io.elementary.calendar/template              | 1 +
 srcpkgs/io.elementary.code/template                  | 1 +
 srcpkgs/io.elementary.music/template                 | 1 +
 srcpkgs/iotop/template                               | 1 +
 srcpkgs/iouyap/template                              | 1 +
 srcpkgs/ipmitool/template                            | 1 +
 srcpkgs/ipp-usb/template                             | 1 +
 srcpkgs/ippusbxd/template                            | 1 +
 srcpkgs/iptables/template                            | 1 +
 srcpkgs/iscan/template                               | 1 +
 srcpkgs/iucode-tool/template                         | 1 +
 srcpkgs/iverilog/template                            | 1 +
 srcpkgs/iwd/template                                 | 1 +
 srcpkgs/j/template                                   | 1 +
 srcpkgs/jack/template                                | 1 +
 srcpkgs/janet/template                               | 1 +
 srcpkgs/jbig2dec/template                            | 1 +
 srcpkgs/jedit/template                               | 1 +
 srcpkgs/jfsutils/template                            | 1 +
 srcpkgs/jsonnet/template                             | 1 +
 srcpkgs/jwm/template                                 | 1 +
 srcpkgs/jxrlib/template                              | 1 +
 srcpkgs/kanshi/template                              | 1 +
 srcpkgs/katarakt/template                            | 1 +
 srcpkgs/kauth/template                               | 1 +
 srcpkgs/kbd/template                                 | 1 +
 srcpkgs/kcgi/template                                | 1 +
 srcpkgs/kconfig/template                             | 1 +
 srcpkgs/kcoreaddons/template                         | 1 +
 srcpkgs/kdb/template                                 | 1 +
 srcpkgs/kdelibs4support/template                     | 1 +
 srcpkgs/kdesignerplugin/template                     | 1 +
 srcpkgs/kdevelop-python/template                     | 1 +
 srcpkgs/kdevelop/template                            | 1 +
 srcpkgs/kdoctools/template                           | 1 +
 srcpkgs/kea/template                                 | 1 +
 srcpkgs/kernel-libc-headers/template                 | 1 +
 srcpkgs/kexec-tools/template                         | 1 +
 srcpkgs/kexi/template                                | 1 +
 srcpkgs/keyutils/template                            | 1 +
 srcpkgs/kicad/template                               | 1 +
 srcpkgs/kid3/template                                | 1 +
 srcpkgs/kinit/template                               | 1 +
 srcpkgs/kio/template                                 | 1 +
 srcpkgs/kmod/template                                | 1 +
 srcpkgs/kmscon/template                              | 1 +
 srcpkgs/kobodeluxe/template                          | 1 +
 srcpkgs/kodi-addon-inputstream-adaptive/template     | 1 +
 srcpkgs/kore/template                                | 1 +
 srcpkgs/krita/template                               | 1 +
 srcpkgs/kscreenlocker/template                       | 1 +
 srcpkgs/kvirc/template                               | 1 +
 srcpkgs/kwallet-cli/template                         | 1 +
 srcpkgs/ladish/template                              | 1 +
 srcpkgs/laditools/template                           | 1 +
 srcpkgs/ladspa-sdk/template                          | 1 +
 srcpkgs/lapack/template                              | 1 +
 srcpkgs/latencytop/template                          | 1 +
 srcpkgs/ldapvi/template                              | 1 +
 srcpkgs/ldb/template                                 | 1 +
 srcpkgs/ledger/template                              | 1 +
 srcpkgs/lfe/template                                 | 1 +
 srcpkgs/liba52/template                              | 1 +
 srcpkgs/libabigail/template                          | 1 +
 srcpkgs/libabw/template                              | 1 +
 srcpkgs/libaccounts-qt5/template                     | 1 +
 srcpkgs/libarchive/template                          | 1 +
 srcpkgs/libatasmart/template                         | 1 +
 srcpkgs/libax25/template                             | 1 +
 srcpkgs/libbsd/template                              | 1 +
 srcpkgs/libcanberra/template                         | 1 +
 srcpkgs/libcap-ng/template                           | 1 +
 srcpkgs/libcap/template                              | 1 +
 srcpkgs/libcec/template                              | 1 +
 srcpkgs/libcgroup/template                           | 1 +
 srcpkgs/libcmis/template                             | 1 +
 srcpkgs/libcprops/template                           | 1 +
 srcpkgs/libdaemon/template                           | 1 +
 srcpkgs/libdbus-c++/template                         | 1 +
 srcpkgs/libdill/template                             | 1 +
 srcpkgs/libdrm/template                              | 1 +
 srcpkgs/libesmtp/template                            | 1 +
 srcpkgs/libetpan/template                            | 1 +
 srcpkgs/libevdevPlus/template                        | 1 +
 srcpkgs/libexecinfo/template                         | 1 +
 srcpkgs/libfetch/template                            | 1 +
 srcpkgs/libffado/template                            | 1 +
 srcpkgs/libffi/template                              | 1 +
 srcpkgs/libfprint/template                           | 1 +
 srcpkgs/libfprint0/template                          | 1 +
 srcpkgs/libfreehand/template                         | 1 +
 srcpkgs/libgadu/template                             | 1 +
 srcpkgs/libgdal/template                             | 1 +
 srcpkgs/libgfshare/template                          | 1 +
 srcpkgs/libgit2-glib/template                        | 1 +
 srcpkgs/libglade/template                            | 1 +
 srcpkgs/libglvnd/template                            | 1 +
 srcpkgs/libgme/template                              | 1 +
 srcpkgs/libgpod/template                             | 1 +
 srcpkgs/libgsm/template                              | 1 +
 srcpkgs/libguestfs/template                          | 1 +
 srcpkgs/libieee1284/template                         | 1 +
 srcpkgs/libimobiledevice/template                    | 1 +
 srcpkgs/libindicator/template                        | 1 +
 srcpkgs/libiodbc/template                            | 1 +
 srcpkgs/libixion/template                            | 1 +
 srcpkgs/libmad/template                              | 1 +
 srcpkgs/libmemcached/template                        | 1 +
 srcpkgs/libmill/template                             | 1 +
 srcpkgs/libmilter/template                           | 1 +
 srcpkgs/libmirage/template                           | 1 +
 srcpkgs/libmowgli/template                           | 1 +
 srcpkgs/libmp4v2/template                            | 1 +
 srcpkgs/libmpd/template                              | 1 +
 srcpkgs/libmspub/template                            | 1 +
 srcpkgs/libmygpo-qt/template                         | 1 +
 srcpkgs/libmygui/template                            | 1 +
 srcpkgs/libnet/template                              | 1 +
 srcpkgs/libnetfilter_log/template                    | 1 +
 srcpkgs/libnfc/template                              | 1 +
 srcpkgs/libnfs/template                              | 1 +
 srcpkgs/libnih/template                              | 1 +
 srcpkgs/libnl/template                               | 1 +
 srcpkgs/libogre/template                             | 1 +
 srcpkgs/libomxil-bellagio/template                   | 1 +
 srcpkgs/libopenglrecorder/template                   | 1 +
 srcpkgs/libopenshot-audio/template                   | 1 +
 srcpkgs/libosinfo/template                           | 1 +
 srcpkgs/libostree/template                           | 1 +
 srcpkgs/libowfat/template                            | 1 +
 srcpkgs/libportal/template                           | 1 +
 srcpkgs/libproxy/template                            | 1 +
 srcpkgs/libpurple-steam/template                     | 1 +
 srcpkgs/libratbag/template                           | 1 +
 srcpkgs/libreadline8/template                        | 1 +
 srcpkgs/libreoffice/template                         | 1 +
 srcpkgs/libretro-mupen64plus-rpi/template            | 1 +
 srcpkgs/libretro-mupen64plus/template                | 1 +
 srcpkgs/librtas/template                             | 1 +
 srcpkgs/libscrypt/template                           | 1 +
 srcpkgs/libsearpc/template                           | 1 +
 srcpkgs/libselinux/template                          | 1 +
 srcpkgs/libsigrokdecode/template                     | 1 +
 srcpkgs/libsigsegv/template                          | 1 +
 srcpkgs/libsmbios/template                           | 1 +
 srcpkgs/libspnav/template                            | 1 +
 srcpkgs/libssh/template                              | 1 +
 srcpkgs/libtecla/template                            | 1 +
 srcpkgs/libticables2/template                        | 1 +
 srcpkgs/libtool/template                             | 1 +
 srcpkgs/libtorrent/template                          | 1 +
 srcpkgs/libu2f-host/template                         | 1 +
 srcpkgs/libu2f-server/template                       | 1 +
 srcpkgs/libucl/template                              | 1 +
 srcpkgs/libuninum/template                           | 1 +
 srcpkgs/libunique/template                           | 1 +
 srcpkgs/libunwind/template                           | 1 +
 srcpkgs/libusb-compat/template                       | 1 +
 srcpkgs/libusb/template                              | 1 +
 srcpkgs/libusbmuxd/template                          | 1 +
 srcpkgs/libuv/template                               | 1 +
 srcpkgs/libvdpau/template                            | 1 +
 srcpkgs/libvidstab/template                          | 1 +
 srcpkgs/libvirt-glib/template                        | 1 +
 srcpkgs/libwmf/template                              | 1 +
 srcpkgs/libxdg-basedir/template                      | 1 +
 srcpkgs/libxkbcommon/template                        | 1 +
 srcpkgs/libxml2-python/template                      | 1 +
 srcpkgs/libxml2/template                             | 1 +
 srcpkgs/libxo/template                               | 1 +
 srcpkgs/libzim/template                              | 1 +
 srcpkgs/lightdm-webkit2-greeter/template             | 1 +
 srcpkgs/lightdm/template                             | 1 +
 srcpkgs/lighttpd/template                            | 1 +
 srcpkgs/lightzone/template                           | 1 +
 srcpkgs/lilo/template                                | 1 +
 srcpkgs/lilyterm/template                            | 1 +
 srcpkgs/linphone-desktop/template                    | 1 +
 srcpkgs/linssid/template                             | 1 +
 srcpkgs/linux-tools/template                         | 1 +
 srcpkgs/linux-vt-setcolors/template                  | 1 +
 srcpkgs/linux4.4/template                            | 1 +
 srcpkgs/liquid-dsp/template                          | 1 +
 srcpkgs/liquidwar/template                           | 1 +
 srcpkgs/litecoin/template                            | 1 +
 srcpkgs/llvm11/template                              | 1 +
 srcpkgs/llvm12/template                              | 1 +
 srcpkgs/lmdb/template                                | 1 +
 srcpkgs/lmms/template                                | 1 +
 srcpkgs/log4cxx/template                             | 1 +
 srcpkgs/loksh/template                               | 1 +
 srcpkgs/loudmouth/template                           | 1 +
 srcpkgs/lshw/template                                | 1 +
 srcpkgs/ltrace/template                              | 1 +
 srcpkgs/lttng-tools/template                         | 1 +
 srcpkgs/lua51-luasocket/template                     | 1 +
 srcpkgs/lua51/template                               | 1 +
 srcpkgs/lua52/template                               | 1 +
 srcpkgs/lua53/template                               | 1 +
 srcpkgs/lua54-lgi/template                           | 1 +
 srcpkgs/lua54-lualdap/template                       | 1 +
 srcpkgs/lua54/template                               | 1 +
 srcpkgs/luakit/template                              | 1 +
 srcpkgs/lumina/template                              | 1 +
 srcpkgs/lvm2/template                                | 1 +
 srcpkgs/lwipv6/template                              | 1 +
 srcpkgs/lxappearance/template                        | 1 +
 srcpkgs/lxdm/template                                | 1 +
 srcpkgs/lxpanel/template                             | 1 +
 srcpkgs/lzf/template                                 | 1 +
 srcpkgs/mDNSResponder/template                       | 1 +
 srcpkgs/mairix/template                              | 1 +
 srcpkgs/makedumpfile/template                        | 1 +
 srcpkgs/makeself/template                            | 1 +
 srcpkgs/mame/template                                | 1 +
 srcpkgs/man-db/template                              | 1 +
 srcpkgs/marble5/template                             | 1 +
 srcpkgs/marco/template                               | 1 +
 srcpkgs/mariadb/template                             | 1 +
 srcpkgs/masterpassword-cli/template                  | 1 +
 srcpkgs/mate-utils/template                          | 1 +
 srcpkgs/matio/template                               | 1 +
 srcpkgs/maturin/template                             | 1 +
 srcpkgs/mc/template                                  | 1 +
 srcpkgs/mcpp/template                                | 1 +
 srcpkgs/mdadm/template                               | 1 +
 srcpkgs/mdocml/template                              | 1 +
 srcpkgs/mediastreamer/template                       | 1 +
 srcpkgs/mednafen/template                            | 1 +
 srcpkgs/memtest86+/template                          | 1 +
 srcpkgs/mergerfs/template                            | 1 +
 srcpkgs/merkaartor/template                          | 1 +
 srcpkgs/mesa/template                                | 1 +
 srcpkgs/meson/template                               | 1 +
 srcpkgs/mg/template                                  | 1 +
 srcpkgs/mhddfs/template                              | 1 +
 srcpkgs/milkytracker/template                        | 1 +
 srcpkgs/mimic/template                               | 1 +
 srcpkgs/minicom/template                             | 1 +
 srcpkgs/minidlna/template                            | 1 +
 srcpkgs/minijail/template                            | 1 +
 srcpkgs/minisat/template                             | 1 +
 srcpkgs/minissdpd/template                           | 1 +
 srcpkgs/mit-krb5/template                            | 1 +
 srcpkgs/mit-scheme-c/template                        | 1 +
 srcpkgs/mlocate/template                             | 1 +
 srcpkgs/mmv/template                                 | 1 +
 srcpkgs/moc/template                                 | 1 +
 srcpkgs/mod_wsgi/template                            | 1 +
 srcpkgs/mog/template                                 | 1 +
 srcpkgs/mon/template                                 | 1 +
 srcpkgs/monero/template                              | 1 +
 srcpkgs/mongoose/template                            | 1 +
 srcpkgs/monit/template                               | 1 +
 srcpkgs/mono/template                                | 1 +
 srcpkgs/moon-buggy/template                          | 1 +
 srcpkgs/moosefs/template                             | 1 +
 srcpkgs/mosh/template                                | 1 +
 srcpkgs/mosquitto/template                           | 1 +
 srcpkgs/mp3check/template                            | 1 +
 srcpkgs/mp3val/template                              | 1 +
 srcpkgs/mpg123/template                              | 1 +
 srcpkgs/mplayer/template                             | 1 +
 srcpkgs/mrxvt/template                               | 1 +
 srcpkgs/msg2/template                                | 1 +
 srcpkgs/msp430-toolchain/template                    | 1 +
 srcpkgs/mumble/template                              | 1 +
 srcpkgs/mupen64plus/template                         | 1 +
 srcpkgs/musikcube/template                           | 1 +
 srcpkgs/mutter/template                              | 1 +
 srcpkgs/mysql++/template                             | 1 +
 srcpkgs/nagstamon/template                           | 1 +
 srcpkgs/namecoin/template                            | 1 +
 srcpkgs/navit/template                               | 1 +
 srcpkgs/nemiver/template                             | 1 +
 srcpkgs/net-snmp/template                            | 1 +
 srcpkgs/netcat/template                              | 1 +
 srcpkgs/nethack/template                             | 1 +
 srcpkgs/netpgp/template                              | 1 +
 srcpkgs/netpgpverify/template                        | 1 +
 srcpkgs/nettle/template                              | 1 +
 srcpkgs/network-ups-tools/template                   | 1 +
 srcpkgs/newlisp/template                             | 1 +
 srcpkgs/nextcloud-client/template                    | 1 +
 srcpkgs/nfs4-acl-tools/template                      | 1 +
 srcpkgs/nginx/template                               | 1 +
 srcpkgs/ngspice/template                             | 1 +
 srcpkgs/nitroshare/template                          | 1 +
 srcpkgs/nmon/template                                | 1 +
 srcpkgs/nocache/template                             | 1 +
 srcpkgs/nodejs-lts-10/template                       | 1 +
 srcpkgs/nodejs-lts/template                          | 1 +
 srcpkgs/nodejs/template                              | 1 +
 srcpkgs/noip2/template                               | 1 +
 srcpkgs/notepadqq/template                           | 1 +
 srcpkgs/notes-up/template                            | 1 +
 srcpkgs/nrpe/template                                | 1 +
 srcpkgs/nsjail/template                              | 1 +
 srcpkgs/nspr/template                                | 1 +
 srcpkgs/nss/template                                 | 1 +
 srcpkgs/ntp/template                                 | 1 +
 srcpkgs/numactl/template                             | 1 +
 srcpkgs/nvme-cli/template                            | 1 +
 srcpkgs/nwipe/template                               | 1 +
 srcpkgs/nx-libs/template                             | 1 +
 srcpkgs/obexftp/template                             | 1 +
 srcpkgs/occt/template                                | 1 +
 srcpkgs/odroid-u2-kernel/template                    | 1 +
 srcpkgs/ofono/template                               | 1 +
 srcpkgs/ogmrip/template                              | 1 +
 srcpkgs/ogmtools/template                            | 1 +
 srcpkgs/oksh/template                                | 1 +
 srcpkgs/okteta/template                              | 1 +
 srcpkgs/okular/template                              | 1 +
 srcpkgs/olsrd/template                               | 1 +
 srcpkgs/omxplayer/template                           | 1 +
 srcpkgs/open-iscsi/template                          | 1 +
 srcpkgs/open-vm-tools/template                       | 1 +
 srcpkgs/openbabel/template                           | 1 +
 srcpkgs/openblas/template                            | 1 +
 srcpkgs/openbox/template                             | 1 +
 srcpkgs/openbsd-file/template                        | 1 +
 srcpkgs/opencollada/template                         | 1 +
 srcpkgs/opencolorio/template                         | 1 +
 srcpkgs/opencv/template                              | 1 +
 srcpkgs/opencv4/template                             | 1 +
 srcpkgs/opendkim/template                            | 1 +
 srcpkgs/openexr/template                             | 1 +
 srcpkgs/openjade/template                            | 1 +
 srcpkgs/openjpeg2/template                           | 1 +
 srcpkgs/openlierox/template                          | 1 +
 srcpkgs/openmpi/template                             | 1 +
 srcpkgs/openntpd/template                            | 1 +
 srcpkgs/opensm/template                              | 1 +
 srcpkgs/opensmtpd-extras/template                    | 1 +
 srcpkgs/opensmtpd/template                           | 1 +
 srcpkgs/opensonic/template                           | 1 +
 srcpkgs/openssh/template                             | 1 +
 srcpkgs/openssl/template                             | 1 +
 srcpkgs/opensurge/template                           | 1 +
 srcpkgs/opkg/template                                | 1 +
 srcpkgs/oprofile/template                            | 1 +
 srcpkgs/oragono/template                             | 1 +
 srcpkgs/orion/template                               | 1 +
 srcpkgs/os-prober/template                           | 1 +
 srcpkgs/osg/template                                 | 1 +
 srcpkgs/osmid/template                               | 1 +
 srcpkgs/otfcc/template                               | 1 +
 srcpkgs/otpw/template                                | 1 +
 srcpkgs/owncloudclient/template                      | 1 +
 srcpkgs/p7zip/template                               | 1 +
 srcpkgs/pa-applet/template                           | 1 +
 srcpkgs/pacman/template                              | 1 +
 srcpkgs/pahole/template                              | 1 +
 srcpkgs/pam-mount/template                           | 1 +
 srcpkgs/pam-u2f/template                             | 1 +
 srcpkgs/pam_ssh/template                             | 1 +
 srcpkgs/pam_ssh_agent_auth/template                  | 1 +
 srcpkgs/papi/template                                | 1 +
 srcpkgs/par/template                                 | 1 +
 srcpkgs/par2cmdline/template                         | 1 +
 srcpkgs/paraview/template                            | 1 +
 srcpkgs/parcellite/template                          | 1 +
 srcpkgs/partclone/template                           | 1 +
 srcpkgs/passwordsafe/template                        | 1 +
 srcpkgs/pax/template                                 | 1 +
 srcpkgs/pcaudiolib/template                          | 1 +
 srcpkgs/pcc/template                                 | 1 +
 srcpkgs/pchar/template                               | 1 +
 srcpkgs/pcsclite/template                            | 1 +
 srcpkgs/pcsx2/template                               | 1 +
 srcpkgs/pd/template                                  | 1 +
 srcpkgs/pdsh/template                                | 1 +
 srcpkgs/perl-Text-BibTeX/template                    | 1 +
 srcpkgs/perl-Tk/template                             | 1 +
 srcpkgs/perl-WWW-Curl/template                       | 1 +
 srcpkgs/perl/template                                | 1 +
 srcpkgs/pgadmin3/template                            | 1 +
 srcpkgs/php/template                                 | 1 +
 srcpkgs/pidgin-libnotify/template                    | 1 +
 srcpkgs/pidgin/template                              | 1 +
 srcpkgs/pijul/template                               | 1 +
 srcpkgs/pilot-link/template                          | 1 +
 srcpkgs/pinebookpro-uboot/template                   | 1 +
 srcpkgs/pingus/template                              | 1 +
 srcpkgs/pioneer/template                             | 1 +
 srcpkgs/pipenightdreams/template                     | 1 +
 srcpkgs/pipewire/template                            | 1 +
 srcpkgs/pjproject/template                           | 1 +
 srcpkgs/plasma-framework/template                    | 1 +
 srcpkgs/plasma-workspace/template                    | 1 +
 srcpkgs/plex-media-player/template                   | 1 +
 srcpkgs/plib/template                                | 1 +
 srcpkgs/plocate/template                             | 1 +
 srcpkgs/plotutils/template                           | 1 +
 srcpkgs/plume-creator/template                       | 1 +
 srcpkgs/plymouth/template                            | 1 +
 srcpkgs/pmount/template                              | 1 +
 srcpkgs/png++/template                               | 1 +
 srcpkgs/polkit-qt5/template                          | 1 +
 srcpkgs/polkit/template                              | 1 +
 srcpkgs/polygen/template                             | 1 +
 srcpkgs/portaudio/template                           | 1 +
 srcpkgs/portmidi/template                            | 1 +
 srcpkgs/postfix/template                             | 1 +
 srcpkgs/postgresql/template                          | 1 +
 srcpkgs/postgresql12/template                        | 1 +
 srcpkgs/postgresql13/template                        | 1 +
 srcpkgs/povray/template                              | 1 +
 srcpkgs/powerpc-utils/template                       | 1 +
 srcpkgs/ppp/template                                 | 1 +
 srcpkgs/pps-tools/template                           | 1 +
 srcpkgs/ppsspp/template                              | 1 +
 srcpkgs/pptpclient/template                          | 1 +
 srcpkgs/projectlibre/template                        | 1 +
 srcpkgs/proot/template                               | 1 +
 srcpkgs/protobuf-c/template                          | 1 +
 srcpkgs/prototype/template                           | 1 +
 srcpkgs/psensor/template                             | 1 +
 srcpkgs/ptii/template                                | 1 +
 srcpkgs/pugixml/template                             | 1 +
 srcpkgs/pulseview/template                           | 1 +
 srcpkgs/putty/template                               | 1 +
 srcpkgs/pvoc/template                                | 1 +
 srcpkgs/pwnat/template                               | 1 +
 srcpkgs/pygtk/template                               | 1 +
 srcpkgs/pymol/template                               | 1 +
 srcpkgs/pyside2-tools/template                       | 1 +
 srcpkgs/python-M2Crypto/template                     | 1 +
 srcpkgs/python-coverage/template                     | 1 +
 srcpkgs/python-docutils/template                     | 1 +
 srcpkgs/python-evdev/template                        | 1 +
 srcpkgs/python-nose/template                         | 1 +
 srcpkgs/python-pip/template                          | 1 +
 srcpkgs/python-requests/template                     | 1 +
 srcpkgs/python/template                              | 1 +
 srcpkgs/python3-PyBrowserID/template                 | 1 +
 srcpkgs/python3-PyQt5/template                       | 1 +
 srcpkgs/python3-aiohttp/template                     | 1 +
 srcpkgs/python3-boltons/template                     | 1 +
 srcpkgs/python3-cli_helpers/template                 | 1 +
 srcpkgs/python3-curtsies/template                    | 1 +
 srcpkgs/python3-entrypoints/template                 | 1 +
 srcpkgs/python3-gevent/template                      | 1 +
 srcpkgs/python3-gitchangelog/template                | 1 +
 srcpkgs/python3-grpcio/template                      | 1 +
 srcpkgs/python3-mygpoclient/template                 | 1 +
 srcpkgs/python3-nose2/template                       | 1 +
 srcpkgs/python3-pdfminer.six/template                | 1 +
 srcpkgs/python3-pikepdf/template                     | 1 +
 srcpkgs/python3-pip/template                         | 1 +
 srcpkgs/python3-pwntools/template                    | 1 +
 srcpkgs/python3-pylibgen/template                    | 1 +
 srcpkgs/python3-pyside2/template                     | 1 +
 srcpkgs/python3-repoze.sphinx.autointerface/template | 1 +
 srcpkgs/python3-telegram/template                    | 1 +
 srcpkgs/python3/template                             | 1 +
 srcpkgs/qca-qt5/template                             | 1 +
 srcpkgs/qdirstat/template                            | 1 +
 srcpkgs/qingy/template                               | 1 +
 srcpkgs/qmmp/template                                | 1 +
 srcpkgs/qpdfview/template                            | 1 +
 srcpkgs/qscintilla-qt5/template                      | 1 +
 srcpkgs/qsstv/template                               | 1 +
 srcpkgs/qt5-fsarchiver/template                      | 1 +
 srcpkgs/qt5-styleplugins/template                    | 1 +
 srcpkgs/qt5-webkit/template                          | 1 +
 srcpkgs/qt5/template                                 | 1 +
 srcpkgs/qt5pas/template                              | 1 +
 srcpkgs/qt6-base/template                            | 1 +
 srcpkgs/qtav/template                                | 1 +
 srcpkgs/qtcreator/template                           | 1 +
 srcpkgs/qtikz/template                               | 1 +
 srcpkgs/qtkeychain-qt5/template                      | 1 +
 srcpkgs/qtpass/template                              | 1 +
 srcpkgs/quassel/template                             | 1 +
 srcpkgs/quickjs/template                             | 1 +
 srcpkgs/quota/template                               | 1 +
 srcpkgs/qv4l2/template                               | 1 +
 srcpkgs/rabbitmq-c/template                          | 1 +
 srcpkgs/racket/template                              | 1 +
 srcpkgs/radare2/template                             | 1 +
 srcpkgs/rakarrack/template                           | 1 +
 srcpkgs/rapidjson/template                           | 1 +
 srcpkgs/raptor/template                              | 1 +
 srcpkgs/rdedup/template                              | 1 +
 srcpkgs/rdis-git/template                            | 1 +
 srcpkgs/re/template                                  | 1 +
 srcpkgs/redis/template                               | 1 +
 srcpkgs/redo/template                                | 1 +
 srcpkgs/refind/template                              | 1 +
 srcpkgs/reiserfsprogs/template                       | 1 +
 srcpkgs/renderdoc/template                           | 1 +
 srcpkgs/residualvm/template                          | 1 +
 srcpkgs/resvg/template                               | 1 +
 srcpkgs/retroshare/template                          | 1 +
 srcpkgs/rhythmbox/template                           | 1 +
 srcpkgs/rinse/template                               | 1 +
 srcpkgs/rix/template                                 | 1 +
 srcpkgs/rmilter/template                             | 1 +
 srcpkgs/rmlint/template                              | 1 +
 srcpkgs/rpcbind/template                             | 1 +
 srcpkgs/rpi-imager/template                          | 1 +
 srcpkgs/rpm/template                                 | 1 +
 srcpkgs/rspamd/template                              | 1 +
 srcpkgs/rsstail/template                             | 1 +
 srcpkgs/rstudio/template                             | 1 +
 srcpkgs/rsyslog/template                             | 1 +
 srcpkgs/rtl8812au-dkms/template                      | 1 +
 srcpkgs/rtl8822bu-dkms/template                      | 1 +
 srcpkgs/rtmpdump/template                            | 1 +
 srcpkgs/rtorrent/template                            | 1 +
 srcpkgs/rubberband/template                          | 1 +
 srcpkgs/ruby/template                                | 1 +
 srcpkgs/ruler/template                               | 1 +
 srcpkgs/run-mailcap/template                         | 1 +
 srcpkgs/runit/template                               | 1 +
 srcpkgs/rustup/template                              | 1 +
 srcpkgs/rxvt-unicode/template                        | 1 +
 srcpkgs/s3cmd/template                               | 1 +
 srcpkgs/samba/template                               | 1 +
 srcpkgs/sandboxfs/template                           | 1 +
 srcpkgs/sane/template                                | 1 +
 srcpkgs/sauerbraten/template                         | 1 +
 srcpkgs/sbcl/template                                | 1 +
 srcpkgs/sc3-plugins/template                         | 1 +
 srcpkgs/scanmem/template                             | 1 +
 srcpkgs/schroot/template                             | 1 +
 srcpkgs/screen/template                              | 1 +
 srcpkgs/scrotty/template                             | 1 +
 srcpkgs/scummvm/template                             | 1 +
 srcpkgs/sddm/template                                | 1 +
 srcpkgs/seafile-client-qt/template                   | 1 +
 srcpkgs/seexpr-krita/template                        | 1 +
 srcpkgs/serf/template                                | 1 +
 srcpkgs/shaderc/template                             | 1 +
 srcpkgs/shadow/template                              | 1 +
 srcpkgs/shapelib/template                            | 1 +
 srcpkgs/shiboken2/template                           | 1 +
 srcpkgs/shmux/template                               | 1 +
 srcpkgs/shotwell/template                            | 1 +
 srcpkgs/signond/template                             | 1 +
 srcpkgs/sile/template                                | 1 +
 srcpkgs/silly/template                               | 1 +
 srcpkgs/simgear/template                             | 1 +
 srcpkgs/simutron/template                            | 1 +
 srcpkgs/sisl/template                                | 1 +
 srcpkgs/skroll/template                              | 1 +
 srcpkgs/slcp/template                                | 1 +
 srcpkgs/sleuthkit/template                           | 1 +
 srcpkgs/slim/template                                | 1 +
 srcpkgs/sloccount/template                           | 1 +
 srcpkgs/slurm-wlm/template                           | 1 +
 srcpkgs/smpeg/template                               | 1 +
 srcpkgs/smpeg2/template                              | 1 +
 srcpkgs/snapper/template                             | 1 +
 srcpkgs/snappy/template                              | 1 +
 srcpkgs/socat/template                               | 1 +
 srcpkgs/socklog/template                             | 1 +
 srcpkgs/sombok/template                              | 1 +
 srcpkgs/sonic-visualiser/template                    | 1 +
 srcpkgs/sopwith/template                             | 1 +
 srcpkgs/soundmodem/template                          | 1 +
 srcpkgs/spacefm/template                             | 1 +
 srcpkgs/spamassassin/template                        | 1 +
 srcpkgs/spampd/template                              | 1 +
 srcpkgs/speech-dispatcher/template                   | 1 +
 srcpkgs/speed-dreams/template                        | 1 +
 srcpkgs/spice-gtk/template                           | 1 +
 srcpkgs/spim/template                                | 1 +
 srcpkgs/splix/template                               | 1 +
 srcpkgs/spreed-webrtc/template                       | 1 +
 srcpkgs/sqmail/template                              | 1 +
 srcpkgs/squashfs-tools/template                      | 1 +
 srcpkgs/srb2/template                                | 1 +
 srcpkgs/ssoma/template                               | 1 +
 srcpkgs/sssd/template                                | 1 +
 srcpkgs/stack/template                               | 1 +
 srcpkgs/starplot/template                            | 1 +
 srcpkgs/stepmania/template                           | 1 +
 srcpkgs/stfl/template                                | 1 +
 srcpkgs/stk/template                                 | 1 +
 srcpkgs/stlink/template                              | 1 +
 srcpkgs/stockfish/template                           | 1 +
 srcpkgs/strawberry/template                          | 1 +
 srcpkgs/subversion-kwallet-auth/template             | 1 +
 srcpkgs/subversion/template                          | 1 +
 srcpkgs/sudo/template                                | 1 +
 srcpkgs/sudoku/template                              | 1 +
 srcpkgs/sunxi-tools/template                         | 1 +
 srcpkgs/supercollider/template                       | 1 +
 srcpkgs/supertux2/template                           | 1 +
 srcpkgs/supertuxkart/template                        | 1 +
 srcpkgs/sutils/template                              | 1 +
 srcpkgs/sway/template                                | 1 +
 srcpkgs/swiften/template                             | 1 +
 srcpkgs/sword/template                               | 1 +
 srcpkgs/sxiv/template                                | 1 +
 srcpkgs/sylpheed/template                            | 1 +
 srcpkgs/synergy/template                             | 1 +
 srcpkgs/synfigstudio/template                        | 1 +
 srcpkgs/sysbench/template                            | 1 +
 srcpkgs/sysdig/template                              | 1 +
 srcpkgs/sysexxer-ng/template                         | 1 +
 srcpkgs/sysprof/template                             | 1 +
 srcpkgs/taskd/template                               | 1 +
 srcpkgs/tbb/template                                 | 1 +
 srcpkgs/tc-play/template                             | 1 +
 srcpkgs/tcl/template                                 | 1 +
 srcpkgs/tcpdump/template                             | 1 +
 srcpkgs/teensy_loader_cli/template                   | 1 +
 srcpkgs/teeworlds/template                           | 1 +
 srcpkgs/telegram-desktop/template                    | 1 +
 srcpkgs/telepathy-mission-control/template           | 1 +
 srcpkgs/tepl/template                                | 1 +
 srcpkgs/terminal_markdown_viewer/template            | 1 +
 srcpkgs/tesseract-ocr/template                       | 1 +
 srcpkgs/tesseract/template                           | 1 +
 srcpkgs/tevent/template                              | 1 +
 srcpkgs/texi2mdoc/template                           | 1 +
 srcpkgs/texlab/template                              | 1 +
 srcpkgs/texlive/template                             | 1 +
 srcpkgs/texstudio/template                           | 1 +
 srcpkgs/textosaurus/template                         | 1 +
 srcpkgs/texworks/template                            | 1 +
 srcpkgs/tgt/template                                 | 1 +
 srcpkgs/thingylaunch/template                        | 1 +
 srcpkgs/thunderbird/template                         | 1 +
 srcpkgs/tickr/template                               | 1 +
 srcpkgs/tidy5/template                               | 1 +
 srcpkgs/tilp2/template                               | 1 +
 srcpkgs/tinyxml/template                             | 1 +
 srcpkgs/tlsh/template                                | 1 +
 srcpkgs/tmines/template                              | 1 +
 srcpkgs/tnftp/template                               | 1 +
 srcpkgs/tomahawk/template                            | 1 +
 srcpkgs/tor/template                                 | 1 +
 srcpkgs/torbrowser-launcher/template                 | 1 +
 srcpkgs/touchegg/template                            | 1 +
 srcpkgs/trace-cmd/template                           | 1 +
 srcpkgs/traceroute/template                          | 1 +
 srcpkgs/tracker/template                             | 1 +
 srcpkgs/tracker3-miners/template                     | 1 +
 srcpkgs/transcode/template                           | 1 +
 srcpkgs/transmission/template                        | 1 +
 srcpkgs/treesheets/template                          | 1 +
 srcpkgs/trinity/template                             | 1 +
 srcpkgs/trojita/template                             | 1 +
 srcpkgs/trousers/template                            | 1 +
 srcpkgs/tsocks/template                              | 1 +
 srcpkgs/ttyrec/template                              | 1 +
 srcpkgs/tup/template                                 | 1 +
 srcpkgs/turbovnc/template                            | 1 +
 srcpkgs/txr/template                                 | 1 +
 srcpkgs/typespeed/template                           | 1 +
 srcpkgs/u2f-hidraw-policy/template                   | 1 +
 srcpkgs/u9fs/template                                | 1 +
 srcpkgs/ucspi-ssl/template                           | 1 +
 srcpkgs/udptunnel/template                           | 1 +
 srcpkgs/ufoai/template                               | 1 +
 srcpkgs/ufraw/template                               | 1 +
 srcpkgs/uftrace/template                             | 1 +
 srcpkgs/uim/template                                 | 1 +
 srcpkgs/ulauncher/template                           | 1 +
 srcpkgs/ulogd/template                               | 1 +
 srcpkgs/unison/template                              | 1 +
 srcpkgs/unknown-horizons/template                    | 1 +
 srcpkgs/urbanterror/template                         | 1 +
 srcpkgs/urlview/template                             | 1 +
 srcpkgs/usbguard/template                            | 1 +
 srcpkgs/uwm/template                                 | 1 +
 srcpkgs/uwsgi/template                               | 1 +
 srcpkgs/v4l-utils/template                           | 1 +
 srcpkgs/vala-panel/template                          | 1 +
 srcpkgs/vanitygen/template                           | 1 +
 srcpkgs/vapoursynth-editor/template                  | 1 +
 srcpkgs/varnish/template                             | 1 +
 srcpkgs/vboot-utils/template                         | 1 +
 srcpkgs/vde2/template                                | 1 +
 srcpkgs/vdirsyncer/template                          | 1 +
 srcpkgs/vdrift/template                              | 1 +
 srcpkgs/virglrenderer/template                       | 1 +
 srcpkgs/virtualbox-ose/template                      | 1 +
 srcpkgs/virtuoso/template                            | 1 +
 srcpkgs/visitors/template                            | 1 +
 srcpkgs/vitetris/template                            | 1 +
 srcpkgs/vlc/template                                 | 1 +
 srcpkgs/voltron/template                             | 1 +
 srcpkgs/volumeicon/template                          | 1 +
 srcpkgs/vpcs/template                                | 1 +
 srcpkgs/vpn-ws/template                              | 1 +
 srcpkgs/vsftpd/template                              | 1 +
 srcpkgs/vte3/template                                | 1 +
 srcpkgs/w_scan/template                              | 1 +
 srcpkgs/waifu2x-converter-cpp/template               | 1 +
 srcpkgs/webkit2gtk/template                          | 1 +
 srcpkgs/wicd/template                                | 1 +
 srcpkgs/widelands/template                           | 1 +
 srcpkgs/wildmidi/template                            | 1 +
 srcpkgs/wine/template                                | 1 +
 srcpkgs/wineasio/template                            | 1 +
 srcpkgs/winusb/template                              | 1 +
 srcpkgs/wireshark/template                           | 1 +
 srcpkgs/wm2/template                                 | 1 +
 srcpkgs/woff2/template                               | 1 +
 srcpkgs/wordgrinder/template                         | 1 +
 srcpkgs/workrave/template                            | 1 +
 srcpkgs/wtype/template                               | 1 +
 srcpkgs/wvstreams/template                           | 1 +
 srcpkgs/wxPython4/template                           | 1 +
 srcpkgs/wxWidgets-gtk3/template                      | 1 +
 srcpkgs/wxWidgets/template                           | 1 +
 srcpkgs/x11vnc/template                              | 1 +
 srcpkgs/x265/template                                | 1 +
 srcpkgs/x42-plugins/template                         | 1 +
 srcpkgs/xapian-core/template                         | 1 +
 srcpkgs/xar/template                                 | 1 +
 srcpkgs/xautolock/template                           | 1 +
 srcpkgs/xava/template                                | 1 +
 srcpkgs/xboxdrv/template                             | 1 +
 srcpkgs/xcolorsel/template                           | 1 +
 srcpkgs/xdg-utils/template                           | 1 +
 srcpkgs/xerces-c/template                            | 1 +
 srcpkgs/xf86-input-mtrack/template                   | 1 +
 srcpkgs/xf86-input-synaptics/template                | 1 +
 srcpkgs/xf86-video-ati/template                      | 1 +
 srcpkgs/xf86-video-cirrus/template                   | 1 +
 srcpkgs/xf86-video-fbdev/template                    | 1 +
 srcpkgs/xf86-video-fbturbo-sunxi/template            | 1 +
 srcpkgs/xf86-video-fbturbo/template                  | 1 +
 srcpkgs/xf86-video-intel/template                    | 1 +
 srcpkgs/xf86-video-mach64/template                   | 1 +
 srcpkgs/xf86-video-mga/template                      | 1 +
 srcpkgs/xf86-video-r128/template                     | 1 +
 srcpkgs/xf86-video-vmware/template                   | 1 +
 srcpkgs/xfig/template                                | 1 +
 srcpkgs/xfsprogs/template                            | 1 +
 srcpkgs/xinetd/template                              | 1 +
 srcpkgs/xinit/template                               | 1 +
 srcpkgs/xload/template                               | 1 +
 srcpkgs/xlunch/template                              | 1 +
 srcpkgs/xnp2/template                                | 1 +
 srcpkgs/xonotic/template                             | 1 +
 srcpkgs/xorg-cf-files/template                       | 1 +
 srcpkgs/xorg-server/template                         | 1 +
 srcpkgs/xosview/template                             | 1 +
 srcpkgs/xplanet/template                             | 1 +
 srcpkgs/xrick/template                               | 1 +
 srcpkgs/xsane/template                               | 1 +
 srcpkgs/xsettingsd/template                          | 1 +
 srcpkgs/xst/template                                 | 1 +
 srcpkgs/xstarter/template                            | 1 +
 srcpkgs/xterm/template                               | 1 +
 srcpkgs/xye/template                                 | 1 +
 srcpkgs/yabar/template                               | 1 +
 srcpkgs/yarn-bin/template                            | 1 +
 srcpkgs/yarn/template                                | 1 +
 srcpkgs/yeahconsole/template                         | 1 +
 srcpkgs/yeahwm/template                              | 1 +
 srcpkgs/yersinia/template                            | 1 +
 srcpkgs/ympd/template                                | 1 +
 srcpkgs/yoshimi/template                             | 1 +
 srcpkgs/yosys/template                               | 1 +
 srcpkgs/z3/template                                  | 1 +
 srcpkgs/z80ex/template                               | 1 +
 srcpkgs/zabbix/template                              | 1 +
 srcpkgs/zbar/template                                | 1 +
 srcpkgs/zeal/template                                | 1 +
 srcpkgs/zeek/template                                | 1 +
 srcpkgs/zerofree/template                            | 1 +
 srcpkgs/zfs/template                                 | 1 +
 srcpkgs/zimg/template                                | 1 +
 srcpkgs/zinnia/template                              | 1 +
 srcpkgs/zip/template                                 | 1 +
 srcpkgs/zlib/template                                | 1 +
 srcpkgs/zsnes/template                               | 1 +
 srcpkgs/zulucrypt/template                           | 1 +
 srcpkgs/zutils/template                              | 1 +
 srcpkgs/zynaddsubfx/template                         | 1 +
 1241 files changed, 1241 insertions(+)

diff --git a/srcpkgs/0ad/template b/srcpkgs/0ad/template
index d6bbdb483101..183936084930 100644
--- a/srcpkgs/0ad/template
+++ b/srcpkgs/0ad/template
@@ -17,6 +17,7 @@ distfiles="https://releases.wildfiregames.com/${pkgname}-${version}-alpha-unix-b
 checksum=325c23c9b6bfc16eb636af6a7a7bdaadbf19214b6eed0422d74cc0090bf137a8
 nocross="uses bundled third-party libraries that do not cross-compile"
 lib32disabled=yes
+patch_args=-Np0
 
 CXXFLAGS="-fpermissive"
 # Use BFD linker to avoid erroneous detection of llvm pr8927 with *-musl
diff --git a/srcpkgs/66-tools/template b/srcpkgs/66-tools/template
index b9c5e7c66a79..ca916507c9a6 100644
--- a/srcpkgs/66-tools/template
+++ b/srcpkgs/66-tools/template
@@ -17,6 +17,7 @@ homepage="http://web.obarun.org/software/index.html"
 changelog="https://framagit.org/Obarun/66-tools/-/raw/master/doc/upgrade.md"
 distfiles="https://framagit.org/Obarun/66-tools/-/archive/v${version}/66-tools-v${version}.tar.gz"
 checksum=c8cbe0d6c104e4d87d588d5980201770a6fd2fad11f99ff138a37ff918d68491
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/7kaa/template b/srcpkgs/7kaa/template
index 7aa6e152c8f1..b776195a806b 100644
--- a/srcpkgs/7kaa/template
+++ b/srcpkgs/7kaa/template
@@ -15,6 +15,7 @@ distfiles="https://github.com/the3dfxdude/7kaa/releases/download/v${version}/${p
 checksum="f0265c077025d77b435f1c10b8ba178bdb16329e51ab735330ebaa71a104fbf8
  b0d767b6e25719a14f5f34a93744a8022d7bc24af66275bee54dfc788695c1c3"
 replaces="7kaa-data>=0"
+patch_args=-Np0
 
 post_extract() {
 	mv ../7kaa-music .
diff --git a/srcpkgs/9base/template b/srcpkgs/9base/template
index e7cee72701f8..74ed0a369e03 100644
--- a/srcpkgs/9base/template
+++ b/srcpkgs/9base/template
@@ -17,6 +17,7 @@ distfiles="https://alpha.de.repo.voidlinux.org/distfiles/9base-${_githash}.tar.g
 checksum=b315509470c25db88595bd0e9478428dea54d7836fe2ba9d07279ae9496366fb
 conflicts="plan9port"
 provides="plan9port-20160418_4"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/9mount/template b/srcpkgs/9mount/template
index 5b1160ad2049..6cf8f4e2fc9c 100644
--- a/srcpkgs/9mount/template
+++ b/srcpkgs/9mount/template
@@ -10,6 +10,7 @@ license="ISC"
 homepage="http://sqweek.net/code/9mount/"
 distfiles="http://sqweek.net/9p/$pkgname-$version.tar.gz"
 checksum=820d80b9b478d05ecb022ad658477b37cfc2414a8669c3af17d192a522064c17
+patch_args=-Np0
 
 pre_build() {
 	sed -i '/chown/d' Makefile
diff --git a/srcpkgs/Aegisub/template b/srcpkgs/Aegisub/template
index 2ddf6c24ee6e..8dcd52f2a62c 100644
--- a/srcpkgs/Aegisub/template
+++ b/srcpkgs/Aegisub/template
@@ -17,6 +17,7 @@ license="BSD-3-Clause, MIT"
 homepage="http://www.aegisub.org"
 distfiles="https://github.com/Aegisub/Aegisub/archive/v${version}.tar.gz"
 checksum=62757dd491455268a240f983b59734a801cc2e899039a7493deeaf5e24a61dcd
+patch_args=-Np0
 
 build_options="fftw openal portaudio"
 build_options_default="fftw"
diff --git a/srcpkgs/Brainfunk/template b/srcpkgs/Brainfunk/template
index 309179b0715a..389100d545c3 100644
--- a/srcpkgs/Brainfunk/template
+++ b/srcpkgs/Brainfunk/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/GReaperEx/Brainfunk"
 distfiles="${homepage}/archive/v${version}-beta.tar.gz"
 checksum=6b48bd1fbe0dbce20f3e8af5c799023ea820ddc45aca8fac0ccecfa2de359ee2
+patch_args=-Np0
 
 do_install() {
 	vbin bfk
diff --git a/srcpkgs/CPU-X/template b/srcpkgs/CPU-X/template
index 0947bcfef816..f99e7a8e62a2 100644
--- a/srcpkgs/CPU-X/template
+++ b/srcpkgs/CPU-X/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://x0rg.github.io/CPU-X/"
 distfiles="https://github.com/X0rg/CPU-X/archive/v${version}.tar.gz"
 checksum=c41fbb3000e3e6f79e5228aa0237fde4f98b11df8ccb4c9a46f7e63a4a7011bf
+patch_args=-Np0
 
 build_options="gtk3"
 build_options_default="gtk3"
diff --git a/srcpkgs/Carla/template b/srcpkgs/Carla/template
index 701fd0ea30f7..bc39346ecec8 100644
--- a/srcpkgs/Carla/template
+++ b/srcpkgs/Carla/template
@@ -18,6 +18,7 @@ homepage="https://kxstudio.linuxaudio.org/Applications:Carla"
 distfiles="https://github.com/falkTX/Carla/archive/v${version}.tar.gz"
 checksum=a82ce08f3a82db9d878c8cb7e7e2f3b80834bf21801c6ec4ed95c0cfee25b963
 python_version=3
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	x86_64* | i686*);;
diff --git a/srcpkgs/Cataclysm-DDA/template b/srcpkgs/Cataclysm-DDA/template
index bbe66b9f29b9..8e57303fe874 100644
--- a/srcpkgs/Cataclysm-DDA/template
+++ b/srcpkgs/Cataclysm-DDA/template
@@ -15,6 +15,7 @@ license="CC-BY-SA-3.0, CC-BY-3.0"
 homepage="https://cataclysmdda.org/"
 distfiles="https://github.com/CleverRaven/Cataclysm-DDA/archive/${version}.tar.gz"
 checksum=b0af9a9292929e17332edcea770bca9a91f1d08ea47726d78a47e09281a42fa3
+patch_args=-Np0
 
 build_options="tiles backtrace"
 build_options_default="tiles"
diff --git a/srcpkgs/Chipmunk2D/template b/srcpkgs/Chipmunk2D/template
index 142051ec0a4a..1f4180bda367 100644
--- a/srcpkgs/Chipmunk2D/template
+++ b/srcpkgs/Chipmunk2D/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://chipmunk-physics.net/"
 distfiles="https://github.com/slembcke/Chipmunk2D/archive/Chipmunk-${version}.tar.gz"
 checksum=6b6d8d5d910c4442fb9c8c4c46a178126d8c21d075cdb3ce439a7f8d8757b0ca
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/Clight/template b/srcpkgs/Clight/template
index cff8201154a1..70d18bd53b78 100644
--- a/srcpkgs/Clight/template
+++ b/srcpkgs/Clight/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/FedeDP/Clight"
 distfiles="https://github.com/FedeDP/Clight/archive/${version}.tar.gz"
 checksum=2ce204edd58284c178b99e2ffec0105fc8e78d8a076350f64424b66c9878e91e
+patch_args=-Np0
 
 post_install() {
 	vcompletion Extra/completions/_clight zsh
diff --git a/srcpkgs/Clp/template b/srcpkgs/Clp/template
index 5b2af733ca37..fe3a9f916b18 100644
--- a/srcpkgs/Clp/template
+++ b/srcpkgs/Clp/template
@@ -10,6 +10,7 @@ license="EPL-1.0"
 homepage="http://projects.coin-or.org/Clp"
 distfiles="https://www.coin-or.org/Tarballs/${pkgname}/${pkgname}-${version}.tgz"
 checksum=a13bf54291ad503cf76f5f93f2643d2add4faa5d0e60ff2db902ef715c094573
+patch_args=-Np0
 
 libClp-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/CoinMP/template b/srcpkgs/CoinMP/template
index 995353eee428..a889ea92d33b 100644
--- a/srcpkgs/CoinMP/template
+++ b/srcpkgs/CoinMP/template
@@ -10,6 +10,7 @@ license="CPL-1.0"
 homepage="https://projects.coin-or.org/CoinMP"
 distfiles="http://www.coin-or.org/download/source/${pkgname}/${pkgname}-${version}.tgz"
 checksum=3459fb0ccbdd39342744684338984ac4cc153fb0434f4cae8cf74bd67490a38d
+patch_args=-Np0
 
 post_configure() {
 	# remove erroneous cross base prefix from include paths
diff --git a/srcpkgs/CubicSDR/template b/srcpkgs/CubicSDR/template
index f2eb67e7f9b5..fbc8339d6da0 100644
--- a/srcpkgs/CubicSDR/template
+++ b/srcpkgs/CubicSDR/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://cubicsdr.com"
 distfiles="https://github.com/cjcliffe/CubicSDR/archive/${version}.tar.gz"
 checksum=5cb44c110fcbbb70a468b7fa402cf35f84d8901b3dd42d471a90ac3f5db00f4d
+patch_args=-Np0
 
 build_options="alsa pulseaudio jack"
 build_options_default="alsa pulseaudio"
diff --git a/srcpkgs/DarkRadiant/template b/srcpkgs/DarkRadiant/template
index 1d47801303d3..e5a0057af193 100644
--- a/srcpkgs/DarkRadiant/template
+++ b/srcpkgs/DarkRadiant/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/codereader/DarkRadiant/"
 distfiles="https://github.com/codereader/DarkRadiant/archive/${version}.tar.gz"
 checksum=8c5dc0f7d160dea7e9c735f9739e36462dd8c8719a3022156f9584250fc3b867
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/lib/wx/include/gtk3-unicode-3.0"
 
diff --git a/srcpkgs/Fritzing/template b/srcpkgs/Fritzing/template
index d97ab1654a52..4dd6b0cb08f9 100644
--- a/srcpkgs/Fritzing/template
+++ b/srcpkgs/Fritzing/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/${pkgname}/${pkgname}-app/archive/${version}.tar.g
  https://github.com/${pkgname}/${pkgname}-parts/archive/${_partshash}.tar.gz>fritzing-parts-${_partshash}.tar.gz"
 checksum="2475a95aad2c1536eef3fdb72665c5c16590644b45bd110a0cde223c916625b8
  2d5882f0180d04c582ef418fd286bf1d04142409d316a4cd5c9ce3e2d91434dd"
+patch_args=-Np0
 
 post_extract() {
 	# looks for libgit2 and boost in the source tree
diff --git a/srcpkgs/GConf/template b/srcpkgs/GConf/template
index 4365c11e5844..51c792007cb0 100644
--- a/srcpkgs/GConf/template
+++ b/srcpkgs/GConf/template
@@ -22,6 +22,7 @@ make_dirs="/usr/share/gconf/schemas 0755 root root
  /etc/gconf/gconf.xml.defaults 0755 root root
  /etc/gconf/gconf.xml.mandatory 0755 root root
  /etc/gconf/gconf.xml.system 0755 root root"
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/Gauche/template b/srcpkgs/Gauche/template
index 74beafdc6863..f40f1d382f95 100644
--- a/srcpkgs/Gauche/template
+++ b/srcpkgs/Gauche/template
@@ -15,6 +15,7 @@ alternatives="
  scheme:scheme:/usr/bin/gauche
  scheme:scheme.1:/usr/share/man/man1/gauche.1
 "
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	# Gauche needs itself to bootstrap for cross compilation.
diff --git a/srcpkgs/GraphicsMagick/template b/srcpkgs/GraphicsMagick/template
index 35f5269eac7c..68825a0d4a7e 100644
--- a/srcpkgs/GraphicsMagick/template
+++ b/srcpkgs/GraphicsMagick/template
@@ -21,6 +21,7 @@ changelog="http://www.graphicsmagick.org/NEWS.html"
 distfiles="${SOURCEFORGE_SITE}/graphicsmagick/graphicsmagick/${version}/${pkgname}-${version}.tar.gz"
 checksum=1e6723c48c4abbb31197fadf8396b2d579d97e197123edc70a4f057f0533d563
 keep_libtool_archives=yes
+patch_args=-Np0
 
 post_install() {
 	vlicense Copyright.txt LICENSE
diff --git a/srcpkgs/Haru/template b/srcpkgs/Haru/template
index d1207b72b881..439b4f934042 100644
--- a/srcpkgs/Haru/template
+++ b/srcpkgs/Haru/template
@@ -12,6 +12,7 @@ license="Zlib"
 homepage="http://libharu.org/"
 distfiles="https://github.com/libharu/libharu/archive/RELEASE_${version//./_}.tar.gz"
 checksum=8f9e68cc5d5f7d53d1bc61a1ed876add1faf4f91070dbc360d8b259f46d9a4d2
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args="--with-zlib=${XBPS_CROSS_BASE}/usr"
diff --git a/srcpkgs/LibreCAD/template b/srcpkgs/LibreCAD/template
index 3a5224f907ee..da6fd2e7239a 100644
--- a/srcpkgs/LibreCAD/template
+++ b/srcpkgs/LibreCAD/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://librecad.org"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=74c4ede409b13d0365c65c0cd52dba04f1049530f6df706dc905443d5e60db06
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	configure_args+=" BOOST_DIR=${XBPS_CROSS_BASE}/usr"
diff --git a/srcpkgs/LuaJIT/template b/srcpkgs/LuaJIT/template
index 9fbc72cbe4e7..e270384ecd37 100644
--- a/srcpkgs/LuaJIT/template
+++ b/srcpkgs/LuaJIT/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://www.luajit.org"
 distfiles="http://luajit.org/download/${pkgname}-${_dist_version}.tar.gz"
 checksum=1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3
+patch_args=-Np0
 
 build_options="lua52compat"
 
diff --git a/srcpkgs/MEGAcmd/template b/srcpkgs/MEGAcmd/template
index eb94684afcf6..893d78c880cc 100644
--- a/srcpkgs/MEGAcmd/template
+++ b/srcpkgs/MEGAcmd/template
@@ -14,6 +14,7 @@ homepage="https://github.com/meganz/MEGAcmd"
 distfiles="https://github.com/meganz/MEGAcmd/archive/${version}_Linux.tar.gz"
 checksum=2a3626a9f1d22303fe2123f984a8ecf3779d6d59ac6c67c1bf43c2423dcb832d
 replaces="megacmd>=0"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args="--with-libtool-sysroot=${XBPS_CROSS_BASE}"
diff --git a/srcpkgs/Maelstrom/template b/srcpkgs/Maelstrom/template
index 7c4be8c13b2a..ea3d28d0c4f4 100644
--- a/srcpkgs/Maelstrom/template
+++ b/srcpkgs/Maelstrom/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.libsdl.org/projects/Maelstrom/"
 distfiles="${homepage}/src/${pkgname}-${version}.tar.gz"
 checksum=93680322f4b04d4727ea8e0b461f259b604dc69e7465cb91d2b9aad378a9a036
+patch_args=-Np0
 
 CXXFLAGS="-Wno-error -Wno-write-strings -Wno-unused-result"
 
diff --git a/srcpkgs/MonkeysAudio/template b/srcpkgs/MonkeysAudio/template
index 6b9f47eda5e6..202b419fa843 100644
--- a/srcpkgs/MonkeysAudio/template
+++ b/srcpkgs/MonkeysAudio/template
@@ -14,6 +14,7 @@ distfiles="https://monkeysaudio.com/files/MAC_SDK_${version//./}.zip
 checksum="0000cbfad5f008014bf3d963b72039c518a1e93ded55b23da715d912c830623e
  7d60dabaf760f32180e272b5955d5f1a2febcf9930eff13e49a1934a286a5819"
 skip_extraction="license.html"
+patch_args=-Np0
 
 do_build() {
 	cp -p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/license.html ${wrksrc}
diff --git a/srcpkgs/ORBit2/template b/srcpkgs/ORBit2/template
index 10e7f52924b6..34ac1a00a447 100644
--- a/srcpkgs/ORBit2/template
+++ b/srcpkgs/ORBit2/template
@@ -13,6 +13,7 @@ homepage="http://projects.gnome.org/ORBit2/"
 distfiles="http://ftp.acc.umu.se/pub/gnome/sources/${pkgname}/2.14/${pkgname}-${version}.tar.bz2"
 checksum=55c900a905482992730f575f3eef34d50bda717c197c97c08fa5a6eafd857550
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ORBit2"
diff --git a/srcpkgs/OpenCPN/template b/srcpkgs/OpenCPN/template
index ee67dbaff01c..63796b6f17db 100644
--- a/srcpkgs/OpenCPN/template
+++ b/srcpkgs/OpenCPN/template
@@ -20,6 +20,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.0-or-later, MIT, WxWindows-e
 homepage="https://opencpn.org/"
 distfiles="https://github.com/OpenCPN/OpenCPN/archive/v${version}.tar.gz"
 checksum=f6ec38989bc38f5a7f63234c5e0230adeb73f5626b4e3d3dfa680f0c240badc7
+patch_args=-Np0
 
 build_options="lzma libarchive exif crashreport"
 build_options_default="lzma libarchive exif"
diff --git a/srcpkgs/OpenXcom/template b/srcpkgs/OpenXcom/template
index f44cc1e9d916..fc79fbb7e1f7 100644
--- a/srcpkgs/OpenXcom/template
+++ b/srcpkgs/OpenXcom/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="http://openxcom.org/"
 distfiles="https://github.com/SupSuper/${pkgname}/archive/v${version}.tar.gz"
 checksum=45acb280010a01d60506b1c5f2951ae501c012cc6161aac470bd15c1e6981246
+patch_args=-Np0
 
 pre_configure() {
 	aclocal --install -Im4
diff --git a/srcpkgs/PAmix/template b/srcpkgs/PAmix/template
index dc087f8c7f07..fece21ed427a 100644
--- a/srcpkgs/PAmix/template
+++ b/srcpkgs/PAmix/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/patroclos/PAmix"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=b63522889d70920d64229c66e2ab6929950476538443af297f6b242f7e9dc406
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	*-musl) broken="Parts of ncurses, not available on musl";;
diff --git a/srcpkgs/PrusaSlicer/template b/srcpkgs/PrusaSlicer/template
index dd0e76cb8017..9a073edcf573 100644
--- a/srcpkgs/PrusaSlicer/template
+++ b/srcpkgs/PrusaSlicer/template
@@ -18,6 +18,7 @@ homepage="https://www.prusa3d.com/prusaslicer/"
 distfiles="https://github.com/prusa3d/Prusaslicer/archive/version_${version}.tar.gz"
 checksum=cd3bac5e29b5441fc4690f28cd7b1064e97dc00207bbdc88f7bd7832308d6ca5
 nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/25230/steps/shell_3/logs/stdio"
+patch_args=-Np0
 
 Slic3rPE_package() {
 	build_style=meta
diff --git a/srcpkgs/QLC+/template b/srcpkgs/QLC+/template
index 38322eb305cc..8da1cc17f80c 100644
--- a/srcpkgs/QLC+/template
+++ b/srcpkgs/QLC+/template
@@ -14,6 +14,7 @@ license="Apache-2.0"
 homepage="https://www.qlcplus.org/"
 distfiles="https://github.com/mcallegari/qlcplus/archive/QLC+_$version.tar.gz"
 checksum=cefb5e84dee04b3567733fcaf4f8125069eec859b506e790ba8a9d921f1e75cc
+patch_args=-Np0
 
 pre_build() {
 	vsed -i 's/QMAKE_CXXFLAGS/#QMAKE_CXXFLAGS/' variables.pri
diff --git a/srcpkgs/SDL/template b/srcpkgs/SDL/template
index d55ee7ab382e..03c5de1df7df 100644
--- a/srcpkgs/SDL/template
+++ b/srcpkgs/SDL/template
@@ -19,6 +19,7 @@ license="LGPL-2.1-only"
 homepage="http://www.libsdl.org/"
 distfiles="http://www.libsdl.org/release/SDL-${version}.tar.gz"
 checksum=d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00
+patch_args=-Np0
 
 # Package build options
 build_options="x11 opengl aalib pulseaudio"
diff --git a/srcpkgs/SDL2/template b/srcpkgs/SDL2/template
index 9013c2e73e21..7bc1e95d78b1 100644
--- a/srcpkgs/SDL2/template
+++ b/srcpkgs/SDL2/template
@@ -15,6 +15,7 @@ license="Zlib"
 homepage="http://www.libsdl.org/"
 distfiles="http://www.libsdl.org/release/${pkgname}-${version}.tar.gz"
 checksum=d8215b571a581be1332d2106f8036fcb03d12a70bae01e20f424976d275432bc
+patch_args=-Np0
 
 # Package build options
 build_options="gles opengl pulseaudio sndio vulkan wayland x11"
diff --git a/srcpkgs/SLADE/template b/srcpkgs/SLADE/template
index 030aac7a61b2..1557b2429b3c 100644
--- a/srcpkgs/SLADE/template
+++ b/srcpkgs/SLADE/template
@@ -15,6 +15,7 @@ homepage="https://github.com/sirjuddington/SLADE"
 changelog="https://github.com/sirjuddington/SLADE/releases/tag/${version}"
 distfiles="https://github.com/sirjuddington/SLADE/archive/${version}.tar.gz"
 checksum=7dc8a0089855f6321d2ec185fa5c97fcb7cc54857033aa3adec9a5ec8226ed60
+patch_args=-Np0
 
 pre_configure() {
 	case $XBPS_TARGET_MACHINE in
diff --git a/srcpkgs/SMC/template b/srcpkgs/SMC/template
index d67469fc18a8..15f8f14acef5 100644
--- a/srcpkgs/SMC/template
+++ b/srcpkgs/SMC/template
@@ -18,6 +18,7 @@ checksum="
  b4194e70d3f1de3da884dd1a11e4f5cec25a205f66a3b85cc9fc1c86289b237d
  c5bb2e1830c7cbe499c93851f5a02b2b900b4730d2c7a133a44a7b43a297dab8"
 replaces="SMC-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-fpermissive -std=c++11"
 LDFLAGS="-Wl,--no-as-needed -lX11 -lboost_system"
diff --git a/srcpkgs/Signal-Desktop/template b/srcpkgs/Signal-Desktop/template
index 8999b6e483ff..7fa1635eefff 100644
--- a/srcpkgs/Signal-Desktop/template
+++ b/srcpkgs/Signal-Desktop/template
@@ -14,6 +14,7 @@ homepage="https://github.com/signalapp/Signal-Desktop"
 distfiles="https://github.com/signalapp/Signal-Desktop/archive/v${version}.tar.gz"
 checksum=f9f55c0195579b43712bf370b753337432eda4bcf89809d1c8f3deb0b4ee4400
 nostrip_files="signal-desktop"
+patch_args=-Np0
 
 pre_build() {
 	vsed -e 's/"node": "/&>=/' -i package.json
diff --git a/srcpkgs/TSC/template b/srcpkgs/TSC/template
index 71534315cf7c..66ebf5dd530a 100644
--- a/srcpkgs/TSC/template
+++ b/srcpkgs/TSC/template
@@ -19,6 +19,7 @@ homepage="https://www.secretchronicles.org/"
 distfiles="https://ftp.secretchronicles.org/releases/${pkgname}-${version}.tar.gz"
 checksum=6a16765b4951e3d5d1ea2b84e6da8f67b0271460f0c570b53ccdab80d7396261
 replaces="TSC-data"
+patch_args=-Np0
 
 if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
 	broken="The host ($XBPS_WORDSIZE) and target ($XBPS_TARGET_WORDSIZE) word sizes need to be the same for cross building."
diff --git a/srcpkgs/VeraCrypt/template b/srcpkgs/VeraCrypt/template
index 2b4dd9fcc7e5..c95a8fa6b25d 100644
--- a/srcpkgs/VeraCrypt/template
+++ b/srcpkgs/VeraCrypt/template
@@ -16,6 +16,7 @@ license="Apache-2.0, custom:TrueCrypt-3.0"
 homepage="https://www.veracrypt.fr"
 distfiles="https://www.veracrypt.fr/code/VeraCrypt/snapshot/VeraCrypt-VeraCrypt_${_realversion}.tar.gz"
 checksum=cbdecffdfc258dccca6de1b79759e673dee3329280849b10d8253e802d45b41e
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) ;;
diff --git a/srcpkgs/XyGrib/template b/srcpkgs/XyGrib/template
index e4aa3a2e0265..ccad1528e349 100644
--- a/srcpkgs/XyGrib/template
+++ b/srcpkgs/XyGrib/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://opengribs.org/"
 distfiles="https://github.com/opengribs/XyGrib/archive/v${version}.tar.gz"
 checksum=2dc6099293ae6f7a4bfbfc0cab590cf7ad48241d608e6d7a76e35961b9fc2157
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args="LINK=${XBPS_CROSS_TRIPLET}-c++"
diff --git a/srcpkgs/ZMusic/template b/srcpkgs/ZMusic/template
index 23e805e3c99c..002c59fdc493 100644
--- a/srcpkgs/ZMusic/template
+++ b/srcpkgs/ZMusic/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/coelckers/ZMusic"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=73082f661b7b0bb33348d1d186c132deec9132a1613480348a00172b49c9fd68
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" musl-fts-devel"
diff --git a/srcpkgs/a2ps/template b/srcpkgs/a2ps/template
index 9335f38e08e0..5497ec5a574e 100644
--- a/srcpkgs/a2ps/template
+++ b/srcpkgs/a2ps/template
@@ -14,6 +14,7 @@ homepage="http://www.gnu.org/software/a2ps/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4
 conf_files="/etc/a2ps/a2ps.cfg /etc/a2ps/a2ps-site.cfg"
+patch_args=-Np0
 
 LDFLAGS="-lm"
 
diff --git a/srcpkgs/abduco/template b/srcpkgs/abduco/template
index 21fa18ce85ae..6aa3a516c5e2 100644
--- a/srcpkgs/abduco/template
+++ b/srcpkgs/abduco/template
@@ -10,6 +10,7 @@ license="ISC"
 homepage="http://www.brain-dump.org/projects/abduco/"
 distfiles="http://www.brain-dump.org/projects/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c90909e13fa95770b5afc3b59f311b3d3d2fdfae23f9569fa4f96a3e192a35f4
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/abook/template b/srcpkgs/abook/template
index 9538e8d1f4da..c22614dedfb8 100644
--- a/srcpkgs/abook/template
+++ b/srcpkgs/abook/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://abook.sourceforge.net/"
 distfiles="http://abook.sourceforge.net/devel/${pkgname}-${version}.tar.gz"
 checksum=f0a90df8694fb34685ecdd45d97db28b88046c15c95e7b0700596028bd8bc0f9
+patch_args=-Np0
 
 post_extract() {
 	autoreconf --install
diff --git a/srcpkgs/accountsservice/template b/srcpkgs/accountsservice/template
index c00a4077d8f7..84c28f82c875 100644
--- a/srcpkgs/accountsservice/template
+++ b/srcpkgs/accountsservice/template
@@ -17,6 +17,7 @@ checksum=ff2b2419a7e06bd9cb335ffe391c7409b49a0f0130b890bd54692a3986699c9b
 make_dirs="
  /var/lib/AccountsService/users 755 root root
  /var/lib/AccountsService/icons 755 root root"
+patch_args=-Np0
 
 # Package build options
 build_options="elogind gir"
diff --git a/srcpkgs/acct/template b/srcpkgs/acct/template
index 860bb6b28ccf..b3ac5cc05599 100644
--- a/srcpkgs/acct/template
+++ b/srcpkgs/acct/template
@@ -9,6 +9,7 @@ license="GPL-3.0-or-later"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4c15bf2b58b16378bcc83f70e77d4d40ab0b194acf2ebeefdb507f151faa663f
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	post_extract() {
diff --git a/srcpkgs/acpi_call-dkms/template b/srcpkgs/acpi_call-dkms/template
index 2a24e481538f..752770b0da9d 100644
--- a/srcpkgs/acpi_call-dkms/template
+++ b/srcpkgs/acpi_call-dkms/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/damadmai/acpi_call"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=c48a0a8768d657a8da7b59d7dbf6276554313fa6a0cb012fa4cf85a77e55f44b
+patch_args=-Np0
 
 dkms_modules="acpi_call ${version}"
 depends="dkms"
diff --git a/srcpkgs/acpid/template b/srcpkgs/acpid/template
index 8312d0e4e15a..df44a949213a 100644
--- a/srcpkgs/acpid/template
+++ b/srcpkgs/acpid/template
@@ -10,6 +10,7 @@ homepage="https://sourceforge.net/projects/acpid2/"
 distfiles="${SOURCEFORGE_SITE}/acpid2/acpid-${version}.tar.xz"
 checksum=f2d2d30b3edc3234bd82f6f7186699a6aa3c85c8d20bc4e30e9b3c68a1ed157e
 conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"
+patch_args=-Np0
 
 post_install() {
 	vinstall ${FILESDIR}/handler.sh 755 etc/acpi
diff --git a/srcpkgs/actiona/template b/srcpkgs/actiona/template
index 6ce3ccdc6b41..9b66b6e673a2 100644
--- a/srcpkgs/actiona/template
+++ b/srcpkgs/actiona/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://actiona.tools/"
 distfiles="https://github.com/Jmgr/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=447065e380f8f37db4c8af01df8e1b9d7189cd256205f758845b71d8de6f37ea
+patch_args=-Np0
 
 post_build() {
 	lrelease-qt5 locale/*.ts
diff --git a/srcpkgs/afterstep/template b/srcpkgs/afterstep/template
index ba9c15546dea..f5b99af26493 100644
--- a/srcpkgs/afterstep/template
+++ b/srcpkgs/afterstep/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://www.afterstep.org/"
 distfiles="https://github.com/sashavasko/${pkgname}-devel/archive/${version}.tar.gz"
 checksum=7a82d06a9ce432ef3b0856ff39f6da416aa8cbc249dbb2ff3c1cdcb02e2ca46d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi libAfterBase
diff --git a/srcpkgs/agg/template b/srcpkgs/agg/template
index a313e19cb1f9..5cdbcaa17b47 100644
--- a/srcpkgs/agg/template
+++ b/srcpkgs/agg/template
@@ -13,6 +13,7 @@ homepage="http://www.antigrain.com/"
 license="GPL-2.0-or-later"
 distfiles="http://www.antigrain.com/agg-${version}.tar.gz"
 checksum=ab1edc54cc32ba51a62ff120d501eecd55fceeedf869b9354e7e13812289911f
+patch_args=-Np0
 
 pre_configure() {
 	sed -e '/AM_C_PROTOTYPES/d' -i configure.in
diff --git a/srcpkgs/allegro4/template b/srcpkgs/allegro4/template
index f8901c34cecc..99b570dcb675 100644
--- a/srcpkgs/allegro4/template
+++ b/srcpkgs/allegro4/template
@@ -17,6 +17,7 @@ homepage="http://alleg.sourceforge.net/"
 homepage="https://liballeg.org"
 distfiles="https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz"
 checksum=ec19dbc9a021244582b4819b3583ee594b50141f9fcf6944a4ed8069cbf8d4d4
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/allegro5/template b/srcpkgs/allegro5/template
index f55a7eb6c144..d96d1b779231 100644
--- a/srcpkgs/allegro5/template
+++ b/srcpkgs/allegro5/template
@@ -17,6 +17,7 @@ license="Allegro License (MIT alike)"
 homepage="https://liballeg.org/"
 distfiles="https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz"
 checksum=5de8189ec051e1865f359654f86ec68e2a12a94edd00ad06d1106caa5ff27763
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/alsa-firmware/template b/srcpkgs/alsa-firmware/template
index b85bc791275d..8ded0831aa1c 100644
--- a/srcpkgs/alsa-firmware/template
+++ b/srcpkgs/alsa-firmware/template
@@ -12,6 +12,7 @@ distfiles="https://www.alsa-project.org/files/pub/firmware/${pkgname}-${version}
 checksum=b67b6d7d08bcfc247ef6ff0ab88a99c188305a3cf57ae2dfd0bcd9a5b36cd5bb
 nostrip=yes
 ignore_elf_files="/usr/share/alsa/firmware/mixartloader/miXart8.elf"
+patch_args=-Np0
 
 pre_configure() {
 	export CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" LDFLAGS="${BUILD_LDFLAGS}"
diff --git a/srcpkgs/alsa-tools/template b/srcpkgs/alsa-tools/template
index 1078472c79ae..e96cc23f1547 100644
--- a/srcpkgs/alsa-tools/template
+++ b/srcpkgs/alsa-tools/template
@@ -12,6 +12,7 @@ homepage="http://alsa-project.org"
 distfiles="https://www.alsa-project.org/files/pub/tools/alsa-tools-${version}.tar.bz2"
 checksum=bfd3c7aae1289269605d3da02279159b10e3dabdd31e658cbceaa30170957349
 python_version=3
+patch_args=-Np0
 
 _tools="
 	as10k1 echomixer envy24control hdajackretask hdajacksensetest hda-verb hdspconf
diff --git a/srcpkgs/amdvlk/template b/srcpkgs/amdvlk/template
index 1182a174b558..6a29a3bc9290 100644
--- a/srcpkgs/amdvlk/template
+++ b/srcpkgs/amdvlk/template
@@ -42,6 +42,7 @@ checksum="ec17d7f7c7af5adaa2fee7744321da3665be215105df7c3fc72bfeff2575a509
  186060fbcf87165224ba7df0e1858b66ebc42cf190c481aef1df8d89ebab7abd"
 nocross=yes
 lib32files="/usr/share/vulkan/icd.d/amd_icd32.json"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*) nodebug=yes;;
diff --git a/srcpkgs/angrysearch/template b/srcpkgs/angrysearch/template
index 96b6b6604ba8..bf03527607a7 100644
--- a/srcpkgs/angrysearch/template
+++ b/srcpkgs/angrysearch/template
@@ -13,6 +13,7 @@ homepage="https://github.com/dotheevo/angrysearch/"
 distfiles="http://github.com/dotheevo/${pkgname}/archive/v${version}.tar.gz"
 checksum=9a550649c3efafb26660860758f2e75702ce96a0a0c50dc34ced2967b51a843f
 python_version=3
+patch_args=-Np0
 
 do_install() {
 	vinstall angrysearch.desktop 644 "usr/share/applications"
diff --git a/srcpkgs/anjuta/template b/srcpkgs/anjuta/template
index b46d58aeafe3..e861c17df632 100644
--- a/srcpkgs/anjuta/template
+++ b/srcpkgs/anjuta/template
@@ -22,6 +22,7 @@ license="GPL-2.0-or-later"
 homepage="https://projects.gnome.org/anjuta"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=42a93130ed3ee02d064a7094e94e1ffae2032b3f35a87bf441e37fc3bb3a148f
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/anki/template b/srcpkgs/anki/template
index 55976fbd26eb..731999e63600 100644
--- a/srcpkgs/anki/template
+++ b/srcpkgs/anki/template
@@ -13,6 +13,7 @@ homepage="https://apps.ankiweb.net"
 changelog="https://apps.ankiweb.net/docs/changes.html"
 distfiles="https://apps.ankiweb.net/downloads/archive/anki-$version-source.tgz"
 checksum=5a53760164c77d619f55107a13099cffe620566a7f610b61b6c4b52487f3bb89
+patch_args=-Np0
 
 python_version=3
 
diff --git a/srcpkgs/antimicrox/template b/srcpkgs/antimicrox/template
index 6a77e8e3a09b..1e4a1d081868 100644
--- a/srcpkgs/antimicrox/template
+++ b/srcpkgs/antimicrox/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/AntiMicroX/antimicrox"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=53c6b0e6c8ea8c3a5527b56e1ad052eae983ba36abfc090769c6164bc5f342dd
+patch_args=-Np0
 
 libantimicrox_package() {
 	short_desc+=" - libraries"
diff --git a/srcpkgs/antiword/template b/srcpkgs/antiword/template
index a4dfb6ceb229..c33563fa0c9a 100644
--- a/srcpkgs/antiword/template
+++ b/srcpkgs/antiword/template
@@ -12,6 +12,7 @@ distfiles="http://www.winfield.demon.nl/linux/antiword-${version}.tar.gz
  http://sources.debian.net/data/main/a/antiword/0.37-10/debian/patches/docx.patch"
 checksum="8e2c000fcbc6d641b0e6ff95e13c846da3ff31097801e86702124a206888f5ac
  0ca787f8e31a2e05e6c0ff73406d9a7f0355fe27238a0cde3ed7cf6d3418c8aa"
+patch_args=-Np0
 
 do_build() {
 	# debian patch for better docx handling
diff --git a/srcpkgs/apache/template b/srcpkgs/apache/template
index 3c92ff8fc988..24fa60ac48a6 100644
--- a/srcpkgs/apache/template
+++ b/srcpkgs/apache/template
@@ -37,6 +37,7 @@ homepage="http://httpd.apache.org/"
 changelog="http://www.apache.org/dist/httpd/CHANGES_2.4"
 distfiles="https://archive.apache.org/dist/httpd/httpd-${version}.tar.bz2"
 checksum=1bc826e7b2e88108c7e4bf43c026636f77a41d849cfb667aa7b5c0b86dbf966c
+patch_args=-Np0
 
 system_accounts="_${pkgname}"
 _apache_homedir="/srv/www/$pkgname"
diff --git a/srcpkgs/apl/template b/srcpkgs/apl/template
index 88b8d32b6720..06472f651624 100644
--- a/srcpkgs/apl/template
+++ b/srcpkgs/apl/template
@@ -14,6 +14,7 @@ distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=144f4c858a0d430ce8f28be90a35920dd8e0951e56976cb80b55053fa0d8bbcb
 nocross="execs target binary: ./Gtk_server --ev1 > Gtk_events1.asciidoc"
 CXXFLAGS="-Wno-format-truncation -Wno-class-memaccess -Wno-maybe-uninitialized -Wno-restrict -Wno-cpp"
+patch_args=-Np0
 
 post_install() {
 	vdoc support-files/Dyalog-Keyboard/apl.xkb
diff --git a/srcpkgs/appstream-glib/template b/srcpkgs/appstream-glib/template
index 5eaf493d53f6..36c6fffca5d1 100644
--- a/srcpkgs/appstream-glib/template
+++ b/srcpkgs/appstream-glib/template
@@ -16,6 +16,7 @@ homepage="https://people.freedesktop.org/~hughsient/appstream-glib/"
 changelog="https://raw.githubusercontent.com/hughsie/appstream-glib/master/NEWS"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
 checksum=ca1ed22e3bde3912cb903aaa7de085d55771da454f1c0573fd9608e1de9c4002
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/apr/template b/srcpkgs/apr/template
index f2dc1241668a..1fa0399f64b6 100644
--- a/srcpkgs/apr/template
+++ b/srcpkgs/apr/template
@@ -11,6 +11,7 @@ license="Apache-2.0"
 homepage="http://apr.apache.org/"
 distfiles="http://www.apache.org/dist/apr/apr-${version}.tar.bz2"
 checksum=e2e148f0b2e99b8e5c6caa09f6d4fb4dd3e83f744aa72a952f94f5a14436f7ea
+patch_args=-Np0
 
 # Do not redefine struct iovec in include/apr_want.h
 CFLAGS="-DAPR_IOVEC_DEFINED=1"
diff --git a/srcpkgs/aqbanking/template b/srcpkgs/aqbanking/template
index ea55a80935d7..9f509f325469 100644
--- a/srcpkgs/aqbanking/template
+++ b/srcpkgs/aqbanking/template
@@ -12,6 +12,7 @@ homepage="http://www.aquamaniac.de/aqbanking"
 distfiles="https://www.aquamaniac.de/rdm/attachments/download/372/${pkgname}-${version}.tar.gz"
 checksum=a0e85da2072c927bc32cfd808caaccfdabe34725e75618b08d8049306d8355cc
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
diff --git a/srcpkgs/aqemu/template b/srcpkgs/aqemu/template
index eea61aa562bc..0ada7d5bc748 100644
--- a/srcpkgs/aqemu/template
+++ b/srcpkgs/aqemu/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://aqemu.sourceforge.net"
 distfiles="https://github.com/TBK/aqemu/archive/v${version}.tar.gz"
 checksum=576ae78de936518a1de057355ffc192b59e42be934f0111122b2c5fcafe318a7
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/ardour/template b/srcpkgs/ardour/template
index ae133e67b141..14e6810a0ac5 100644
--- a/srcpkgs/ardour/template
+++ b/srcpkgs/ardour/template
@@ -18,6 +18,7 @@ short_desc="Professional-grade digital audio workstation"
 maintainer="tibequadorian <tibequadorian@posteo.de>"
 license="GPL-2.0-or-later"
 homepage="http://ardour.org"
+patch_args=-Np0
 
 CXXFLAGS="-fpermissive"
 
diff --git a/srcpkgs/arduino/template b/srcpkgs/arduino/template
index d352962e73d3..5d6531ec93fc 100644
--- a/srcpkgs/arduino/template
+++ b/srcpkgs/arduino/template
@@ -19,6 +19,7 @@ checksum="2a2a7bf0a93d36dff2e27f50e490529f10ff73337d6a0b7b222fa6b1a529c9f7
  6c3ab029e0e4a75e2e603d449014374aa8269218fdd03a4aaa46ab743b1912fd"
 nostrip=yes
 nocross="cross build lacks essential libraries"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	broken="downloads multiple binaries linked to glibc; segfaults with gcompat"
diff --git a/srcpkgs/argon2/template b/srcpkgs/argon2/template
index 7cc1bb0617eb..04bdaf7a1419 100644
--- a/srcpkgs/argon2/template
+++ b/srcpkgs/argon2/template
@@ -14,6 +14,7 @@ license="CC0-1.0, Apache-2.0"
 homepage="https://github.com/P-H-C/phc-winner-argon2"
 distfiles="https://github.com/P-H-C/phc-winner-argon2/archive/${version}.tar.gz"
 checksum=daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c
+patch_args=-Np0
 
 libargon2_package() {
 	short_desc="Password hashing library"
diff --git a/srcpkgs/argyllcms/template b/srcpkgs/argyllcms/template
index 5fb8294254f7..33d0d14436cc 100644
--- a/srcpkgs/argyllcms/template
+++ b/srcpkgs/argyllcms/template
@@ -12,6 +12,7 @@ license="AGPL-3.0-or-later, GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://www.argyllcms.com/"
 distfiles="https://www.argyllcms.com/Argyll_V${version}_src.zip"
 checksum=be378ca836b17b8684db05e9feaab138d711835ef00a04a76ac0ceacd386a3e3
+patch_args=-Np0
 
 # Build system look only under / for headers and libraries. Breaks cross.
 nocross=yes
diff --git a/srcpkgs/ark/template b/srcpkgs/ark/template
index dfa7870ed4ca..22022fc8a649 100644
--- a/srcpkgs/ark/template
+++ b/srcpkgs/ark/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://kde.org/applications/en/utilities/org.kde.ark"
 distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=09e0294c36a881585183bf165020ef832bfbbd181547ea26eb78268aab46a768
+patch_args=-Np0
 
 do_check() {
 	cd build
diff --git a/srcpkgs/armadillo/template b/srcpkgs/armadillo/template
index 9407c3aa8b48..52e72128108d 100644
--- a/srcpkgs/armadillo/template
+++ b/srcpkgs/armadillo/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="http://arma.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/arma/${pkgname}-${version}.tar.xz"
 checksum=d78658c9442addf7f718eb05881150ee3ec25604d06dd3af4942422b3ce26d05
+patch_args=-Np0
 
 build_options="hdf5"
 desc_option_hdf5="HDF5 support"
diff --git a/srcpkgs/artyfx/template b/srcpkgs/artyfx/template
index f06781b63736..279fa42510d9 100644
--- a/srcpkgs/artyfx/template
+++ b/srcpkgs/artyfx/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://openavproductions.com/artyfx/"
 distfiles="https://github.com/openAVproductions/openAV-ArtyFX/archive/release-$version.tar.gz"
 checksum=a2a8d02b47bea44d0053cd4f8c6411f68a6fe9b9e4348a4139cd9bfd70105c00
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	armv7*)
diff --git a/srcpkgs/asignify/template b/srcpkgs/asignify/template
index 24b6f55108ea..a6bc88da22d8 100644
--- a/srcpkgs/asignify/template
+++ b/srcpkgs/asignify/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/vstakhov/asignify"
 distfiles="https://github.com/vstakhov/asignify/archive/${version}.tar.gz"
 checksum=81272713900b51049633139549181fa23e56eeb580e0ea0325546d2fe7ca503d
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/assimp/template b/srcpkgs/assimp/template
index 7d45161ede5d..39b1cb64289c 100644
--- a/srcpkgs/assimp/template
+++ b/srcpkgs/assimp/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="http://assimp.sourceforge.net/"
 distfiles="https://github.com/assimp/assimp/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=11310ec1f2ad2cd46b95ba88faca8f7aaa1efe9aa12605c55e3de2b977b3dbfc
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/astroid/template b/srcpkgs/astroid/template
index e37e50c628fe..b1c72bcbe608 100644
--- a/srcpkgs/astroid/template
+++ b/srcpkgs/astroid/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="http://astroidmail.github.io/"
 distfiles="https://github.com/astroidmail/astroid/archive/v${version}.tar.gz"
 checksum=8581bbdbc71bd00d4cdd473cfad8bc604628bb15616fe5eab5c623461f686c65
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qemu-user-static prelink-cross"
diff --git a/srcpkgs/astyle/template b/srcpkgs/astyle/template
index 860e5840811c..d6e09e75d70d 100644
--- a/srcpkgs/astyle/template
+++ b/srcpkgs/astyle/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://astyle.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${version}_linux.tar.gz"
 checksum=cbcc4cf996294534bb56f025d6f199ebfde81aa4c271ccbd5ee1c1a3192745d7
+patch_args=-Np0
 
 do_install() {
 	vbin bin/astyle
diff --git a/srcpkgs/at/template b/srcpkgs/at/template
index 772c4582b3e7..563b741d6af8 100644
--- a/srcpkgs/at/template
+++ b/srcpkgs/at/template
@@ -16,6 +16,7 @@ homepage="http://packages.qa.debian.org/a/at.html"
 distfiles="${DEBIAN_SITE}/main/a/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=2211da14914fde1f9cc83592838fb6385a32fb11fcecb7816c77700df6559088
 disable_parallel_build=yes
+patch_args=-Np0
 
 conf_files="/etc/at.deny"
 system_accounts="at"
diff --git a/srcpkgs/aterm/template b/srcpkgs/aterm/template
index cf474ff86dec..6608120fc2d9 100644
--- a/srcpkgs/aterm/template
+++ b/srcpkgs/aterm/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.afterstep.org/aterm.php"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=a161c3b2d9c7149130a41963899993af21eae92e8e362f4b5b3c7c4cb16760ce
+patch_args=-Np0
 
 pre_build() {
 	sed -i '/INSTALL_PROGRAM/s,-c -s,-c ,g' src/Makefile
diff --git a/srcpkgs/atomicparsley/template b/srcpkgs/atomicparsley/template
index b82abf7d377c..4f6d6cc2d8f2 100644
--- a/srcpkgs/atomicparsley/template
+++ b/srcpkgs/atomicparsley/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://bitbucket.org/wez/atomicparsley/"
 distfiles="https://bitbucket.org/wez/atomicparsley/get/${version}.tar.gz"
 checksum=8ba4e3e21d7a9239932e2a6f34842194d8f9eba84ce9eb83fb35369f5f3f05ab
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/atop/template b/srcpkgs/atop/template
index 8c981e657879..8ba868d263e3 100644
--- a/srcpkgs/atop/template
+++ b/srcpkgs/atop/template
@@ -12,6 +12,7 @@ homepage="https://www.atoptool.nl/"
 distfiles="https://www.atoptool.nl/download/atop-${version}.tar.gz"
 checksum=4b911057ce50463b6e8b3016c5963d48535c0cddeebc6eda817e292b22f93f33
 python_version=2 #unverified
+patch_args=-Np0
 
 make_dirs="/var/log/atop 755 root root"
 
diff --git a/srcpkgs/attic/template b/srcpkgs/attic/template
index 153c0341edcb..3e7feff29c04 100644
--- a/srcpkgs/attic/template
+++ b/srcpkgs/attic/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://attic-backup.org/"
 distfiles="${PYPI_SITE}/A/Attic/Attic-${version}.tar.gz"
 checksum=6650cd28072101c2e05941e77b93a62f91da6179785e4e4b4880916c469bba2c
+patch_args=-Np0
 
 pre_build() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/attract/template b/srcpkgs/attract/template
index ceff4287193d..dd2419954f94 100644
--- a/srcpkgs/attract/template
+++ b/srcpkgs/attract/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="http://attractmode.org/"
 distfiles="https://github.com/mickelson/attract/archive/v${version}.tar.gz"
 checksum=4c17641ce0a0b9ff77da5e75f0cb26cc48e4c6295ef57d86a37db18b2bd9fbe9
+patch_args=-Np0
 
 CFLAGS="-std=gnu++11 \
 	-I extlibs/audio/include \
diff --git a/srcpkgs/aubio/template b/srcpkgs/aubio/template
index eaab3e9fdb72..c903e81ed8d5 100644
--- a/srcpkgs/aubio/template
+++ b/srcpkgs/aubio/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="http://aubio.org"
 distfiles="${homepage}/pub/${pkgname}-${version}.tar.bz2"
 checksum=d48282ae4dab83b3dc94c16cf011bcb63835c1c02b515490e1883049c3d1f3da
+patch_args=-Np0
 
 libaubio_package() {
 	short_desc+=" - Runtime libraries"
diff --git a/srcpkgs/audacity/template b/srcpkgs/audacity/template
index c91520872ce5..4ed153f8b74c 100644
--- a/srcpkgs/audacity/template
+++ b/srcpkgs/audacity/template
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.audacityteam.org"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/Audacity-${version}.tar.gz"
 checksum=50240f07471373a7e5c2df65cc26eeeaaced9a0850ad1f95cb795f171ea3009f
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) ;;
diff --git a/srcpkgs/audiofile/template b/srcpkgs/audiofile/template
index a4eef3f40260..7779d5ec2034 100644
--- a/srcpkgs/audiofile/template
+++ b/srcpkgs/audiofile/template
@@ -13,6 +13,7 @@ homepage="http://audiofile.68k.org"
 distfiles="http://github.com/mpruett/audiofile/archive/audiofile-${version}.tar.gz"
 checksum=52125fee6c7454d743acdc27ebda194c6b5c7b9111426c7d5fdea0754cd366cc
 disable_parallel_build=1
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/autoconf/template b/srcpkgs/autoconf/template
index 260e8c753f07..a3018bf709b9 100644
--- a/srcpkgs/autoconf/template
+++ b/srcpkgs/autoconf/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/autoconf"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=64ebcec9f8ac5b2487125a86a7760d2591ac9e1d3dbd59489633f9de62a57684
+patch_args=-Np0
 
 pre_check() {
 	# Disable failing test by adding
diff --git a/srcpkgs/autoconf213/template b/srcpkgs/autoconf213/template
index 31f07cb74c00..ebbcb4df4549 100644
--- a/srcpkgs/autoconf213/template
+++ b/srcpkgs/autoconf213/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.gnu.org/software/autoconf"
 distfiles="${GNU_SITE}/autoconf/autoconf-$version.tar.gz"
 checksum=f0611136bee505811e9ca11ca7ac188ef5323a8e2ef19cffd3edb3cf08fd791e
+patch_args=-Np0
 
 post_install() {
 	# Avoid conflict with other versions.
diff --git a/srcpkgs/autofs/template b/srcpkgs/autofs/template
index b306368242d3..bd2ab2792540 100644
--- a/srcpkgs/autofs/template
+++ b/srcpkgs/autofs/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/daemons/autofs"
 distfiles="${KERNEL_SITE}/daemons/autofs/v5/autofs-${version}.tar.xz"
 checksum=a36b268611b79b07051749870ba540b139938efc84bc0293244c483e94f9ced7
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/gssglue -I${XBPS_CROSS_BASE}/usr/include/tirpc"
 
diff --git a/srcpkgs/autogen/template b/srcpkgs/autogen/template
index cfc9d20c9df8..3b6d72d5090d 100644
--- a/srcpkgs/autogen/template
+++ b/srcpkgs/autogen/template
@@ -17,6 +17,7 @@ replaces="autogen-docs>=0 autogen-devel>=0"
 _libopts=libopts-42.1.17.tar.gz
 CFLAGS="-Wno-error=format-truncation -Wno-error=format-overflow
 	-Wno-error=unused-parameter"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" autogen guile-devel"
diff --git a/srcpkgs/avidemux/template b/srcpkgs/avidemux/template
index e62a3bc2c436..abedf3e2bc0c 100644
--- a/srcpkgs/avidemux/template
+++ b/srcpkgs/avidemux/template
@@ -19,6 +19,7 @@ homepage="http://avidemux.sourceforge.net/"
 changelog="http://avidemux.sourceforge.net/news.html"
 distfiles="${SOURCEFORGE_SITE}/avidemux/avidemux/${version}/${pkgname}_${version}.tar.gz"
 checksum=9a88741f3535443d4bde35d4207ca2ff96d3b136db2e7232cb50dd6b4eb293cf
+patch_args=-Np0
 
 do_configure() {
 	MAKEFLAGS=${makejobs} \
diff --git a/srcpkgs/avr-binutils/template b/srcpkgs/avr-binutils/template
index 7d3a15725c57..d00bec12e17a 100644
--- a/srcpkgs/avr-binutils/template
+++ b/srcpkgs/avr-binutils/template
@@ -14,6 +14,7 @@ license="GPL-3.0-only"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="$GNU_SITE/binutils/binutils-$version.tar.xz"
 checksum=0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04
+patch_args=-Np0
 
 post_install() {
 	rm -rf "$DESTDIR"/usr/share/info \
diff --git a/srcpkgs/bacula-common/template b/srcpkgs/bacula-common/template
index 04b89e171ad8..9facbbf2efe2 100644
--- a/srcpkgs/bacula-common/template
+++ b/srcpkgs/bacula-common/template
@@ -17,6 +17,7 @@ distfiles="${SOURCEFORGE_SITE}/bacula/bacula-${version}.tar.gz"
 checksum=a40d04d2c48135972cecb6578405e835c4b9d798c0950017de0fad40ca94e8a0
 alternatives="bacula-db-backend:/usr/lib/libbaccats-${version}.so:/usr/lib/libbaccats-sqlite3-${version}.so"
 shlib_provides="libbaccats-${version}.so"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/bananapi-uboot/template b/srcpkgs/bananapi-uboot/template
index fabedf3d5978..80acf0c6e8fd 100644
--- a/srcpkgs/bananapi-uboot/template
+++ b/srcpkgs/bananapi-uboot/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/hardkernel/u-boot"
 distfiles="https://github.com/Bananian/u-boot-bananapi/archive/bananian-v${version}.tar.gz"
 checksum=8be162b0b8e85d3fbc2e14af3b71c4a204f4a9c63f6f13275f86629624c1d6a6
+patch_args=-Np0
 
 conf_files="/boot/uEnv.txt"
 archs="armv7l*"
diff --git a/srcpkgs/basu/template b/srcpkgs/basu/template
index 1a3614b781c3..0244cc11cc20 100644
--- a/srcpkgs/basu/template
+++ b/srcpkgs/basu/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/emersion/basu"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=e2fda9b69fc6c4530173fcf8db94c29aa5f3ed932d948cc6a31892623cde5e4b
+patch_args=-Np0
 
 basu-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/batman-adv14/template b/srcpkgs/batman-adv14/template
index 8fb35827056a..a1776f121092 100644
--- a/srcpkgs/batman-adv14/template
+++ b/srcpkgs/batman-adv14/template
@@ -11,6 +11,7 @@ distfiles="http://downloads.open-mesh.org/batman/releases/batman-adv-${version}/
 checksum=a9b1b7542c94cc6bf7c97b7b0d02bf071b5632a64480ae419358b9cb9cab6870
 provides="batman-adv-${version}_${revision}"
 conflicts="batman-adv>=0"
+patch_args=-Np0
 
 dkms_modules="batman-adv14 ${version}"
 depends="dkms"
diff --git a/srcpkgs/bbkeys/template b/srcpkgs/bbkeys/template
index a9a52c11007a..40ae05dec712 100644
--- a/srcpkgs/bbkeys/template
+++ b/srcpkgs/bbkeys/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/bbidulock/bbkeys"
 distfiles="${homepage}/releases/download/rel-${version//.}/bbkeys-${version}.tar.lz"
 checksum=ece0113b2cc6367e2cad95f59cf43d7576b5a1a7eb8a9e3f10ce9814db67b95c
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/bbswitch/template b/srcpkgs/bbswitch/template
index 4dc9d3235e60..049ba73bc327 100644
--- a/srcpkgs/bbswitch/template
+++ b/srcpkgs/bbswitch/template
@@ -11,6 +11,7 @@ homepage="http://github.com/Bumblebee-Project/bbswitch"
 distfiles="https://github.com/Bumblebee-Project/bbswitch/archive/v$version.tar.gz"
 checksum=76cabd3f734fb4fe6ebfe3ec9814138d0d6f47d47238521ecbd6a986b60d1477
 dkms_modules="${pkgname} ${version}"
+patch_args=-Np0
 
 do_install() {
 	vinstall Makefile 644 usr/src/${pkgname}-${version}
diff --git a/srcpkgs/bc/template b/srcpkgs/bc/template
index c6ca1b7d899a..bff25a4c64e9 100644
--- a/srcpkgs/bc/template
+++ b/srcpkgs/bc/template
@@ -18,6 +18,7 @@ alternatives="
  dc:dc:/usr/bin/gnu-dc
  dc:dc.1:/usr/share/man/man1/gnu-dc.1"
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" bc"
diff --git a/srcpkgs/bcc/template b/srcpkgs/bcc/template
index cbdb9de0abcf..091ad9473a2d 100644
--- a/srcpkgs/bcc/template
+++ b/srcpkgs/bcc/template
@@ -15,6 +15,7 @@ homepage="https://github.com/iovisor/bcc"
 distfiles="https://github.com/iovisor/bcc/releases/download/v${version}/bcc-src-with-submodule.tar.gz"
 checksum=93edc925675262aa509f5eaf146f2fc7dfa3e01d1b0336a5de01ee6d72fa493b
 python_version="3"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/bctoolbox/template b/srcpkgs/bctoolbox/template
index 4de00e55e201..f308b6874143 100644
--- a/srcpkgs/bctoolbox/template
+++ b/srcpkgs/bctoolbox/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="https://gitlab.linphone.org/BC/public/bctoolbox"
 distfiles="https://gitlab.linphone.org/BC/public/bctoolbox/-/archive/${version}/bctoolbox-${version}.tar.gz"
 checksum=1364d5f42b5514546b9c6654c227804ff92cf9cf13fdc7cb6ca666e3bb5a7987
+patch_args=-Np0
 
 bctoolbox-devel_package() {
 	depends="bctoolbox-${version}_${revision}"
diff --git a/srcpkgs/beep/template b/srcpkgs/beep/template
index 0f3c10d9781f..3be4bf6147f3 100644
--- a/srcpkgs/beep/template
+++ b/srcpkgs/beep/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.johnath.com/beep/"
 distfiles="http://www.johnath.com/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=59acef7a987de5557cefd1a904666cc2691f132929af39e65450b182a581ec2d
+patch_args=-Np0
 
 post_extract() {
 	rm -f Makefile
diff --git a/srcpkgs/beets/template b/srcpkgs/beets/template
index 8dfb44bf88ad..60e86df7539f 100644
--- a/srcpkgs/beets/template
+++ b/srcpkgs/beets/template
@@ -17,6 +17,7 @@ license="MIT"
 homepage="http://beets.radbox.org/"
 distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=d29b432cab0c80947b5229f548762948c4dd4a430e5d02760bfeb95da3cc8054
+patch_args=-Np0
 
 post_install() {
 	vman man/beet.1
diff --git a/srcpkgs/beignet/template b/srcpkgs/beignet/template
index 29a1ef99dbda..dbe0d1888c67 100644
--- a/srcpkgs/beignet/template
+++ b/srcpkgs/beignet/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.freedesktop.org/wiki/Software/Beignet/"
 distfiles="https://01.org/sites/default/files/${pkgname}-${version}-source.tar.gz"
 checksum=c555edba149de23243965a703f39f79fa06f15bcff5a3762b5544b0925010b43
+patch_args=-Np0
 
 post_install() {
 	# remove CL headers, we do use opencl-headers instead.
diff --git a/srcpkgs/belle-sip/template b/srcpkgs/belle-sip/template
index 6351feba635d..9f9c297d3589 100644
--- a/srcpkgs/belle-sip/template
+++ b/srcpkgs/belle-sip/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.linphone.org"
 distfiles="https://gitlab.linphone.org/BC/public/belle-sip/-/archive/${version}/belle-sip-${version}.tar.gz"
 checksum=4f9218b0bbf55c2f68d70a0e83779e591ef9fe97f1caf7550768ea192ee34cee
+patch_args=-Np0
 
 belle-sip-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/berkeley-abc/template b/srcpkgs/berkeley-abc/template
index f5aeb2a1e4fd..280c3e0bce2c 100644
--- a/srcpkgs/berkeley-abc/template
+++ b/srcpkgs/berkeley-abc/template
@@ -15,6 +15,7 @@ license="custom:University-of-California, BSD-4-Clause, MIT, BSD-2-Clause"
 homepage="http://www.eecs.berkeley.edu/~alanmi/abc/"
 distfiles="https://github.com/berkeley-abc/abc/archive/$_gitrev.tar.gz"
 checksum=52f1e9bf62c1e0d3b3cbe145f61b409a725e73fe606ba010efcbb2701a14171b
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e '/^CC *:=/d' -e '/^CXX *:=/d' -e '/^AR *:=/d' \
diff --git a/srcpkgs/berry/template b/srcpkgs/berry/template
index 05256589af24..a9fb2bf94342 100644
--- a/srcpkgs/berry/template
+++ b/srcpkgs/berry/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/JLErvin/berry"
 distfiles="https://github.com/JLErvin/berry/archive/${version}.tar.gz"
 checksum=1d6de883a0cd96ceb167c5ad2e855b0b15fa84872d41a22e05d0fdf0cf4be6b8
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/biew/template b/srcpkgs/biew/template
index 73a17e44c8d6..06db316d4c6a 100644
--- a/srcpkgs/biew/template
+++ b/srcpkgs/biew/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://beye.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/beye/${pkgname}/${version}/${pkgname}-${_shortversion}-src.tar.bz2"
 checksum=2e85f03c908dd6ec832461fbfbc79169a33f4caccf48c8fe60cbd29f5fb06d17
+patch_args=-Np0
 
 pre_configure() {
 	configure_args+=" --target-arch=generic --ld=$CC"
diff --git a/srcpkgs/bin86/template b/srcpkgs/bin86/template
index 8d711210193e..fd37d2a267d3 100644
--- a/srcpkgs/bin86/template
+++ b/srcpkgs/bin86/template
@@ -9,6 +9,7 @@ license="GPL-2"
 distfiles="http://v3.sk/~lkundrak/dev86/bin86-${version}.tar.gz"
 checksum=021e37cde3a20632c4c9000993cb4aa9f58cb82b1d3c26b9aeb62d6566925738
 archs="i686* x86_64*"
+patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" PREFIX=/usr
diff --git a/srcpkgs/binwalk/template b/srcpkgs/binwalk/template
index 6c61fff87aeb..cec10ddb7e74 100644
--- a/srcpkgs/binwalk/template
+++ b/srcpkgs/binwalk/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/ReFirmLabs/binwalk"
 distfiles="https://github.com/ReFirmLabs/binwalk/archive/v${version}.tar.gz"
 checksum=7ec9d8fcb8686f4060d37e1096669e3ed8ce1194c91ad80199622448bcc01b19
+patch_args=-Np0
 
 post_extract() {
 	vsed -i -e 's;/etc/bash_completion.d/%s;%s.bash;' setup.py
diff --git a/srcpkgs/bird/template b/srcpkgs/bird/template
index bc40598b0360..493605a5ceb1 100644
--- a/srcpkgs/bird/template
+++ b/srcpkgs/bird/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://bird.network.cz"
 distfiles="https://gitlab.labs.nic.cz/labs/bird/-/archive/v${version}/bird-v${version}.tar.gz"
 checksum=4d0eeea762dcd4422e1e276e2ed123cfed630cf1cce017b50463d79fcf2fff0c
+patch_args=-Np0
 
 conf_files="/etc/bird.conf"
 system_accounts="_bird"
diff --git a/srcpkgs/bish/template b/srcpkgs/bish/template
index 2355c664a428..f5140a9ac2d6 100644
--- a/srcpkgs/bish/template
+++ b/srcpkgs/bish/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/tdenniston/bish"
 distfiles="https://github.com/tdenniston/bish/archive/v${version}.tar.gz"
 checksum=796d1efcbc9e8c7ea604881860aa8d857aad089c4eeb766283c21c210687942b
+patch_args=-Np0
 
 do_install() {
 	vbin bish
diff --git a/srcpkgs/bitchx/template b/srcpkgs/bitchx/template
index 450fde27deed..f5de7ac86973 100644
--- a/srcpkgs/bitchx/template
+++ b/srcpkgs/bitchx/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://bitchx.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=2d270500dd42b5e2b191980d584f6587ca8a0dbda26b35ce7fadb519f53c83e2
+patch_args=-Np0
 
 disable_parallel_build=yes
 
diff --git a/srcpkgs/bitfighter/template b/srcpkgs/bitfighter/template
index c3b2cc22a265..58e033107399 100644
--- a/srcpkgs/bitfighter/template
+++ b/srcpkgs/bitfighter/template
@@ -20,6 +20,7 @@ checksum="cd47c453d9e6875ded627b987a645e2ff2c757363f394b152f62d868e1d81427
  d628a2b0af024a965b92877f321f2174d6309b7ce9236775af3bd86a67fcc72b"
 python_version=2
 replaces="bitfighter-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/blackboxwm/template b/srcpkgs/blackboxwm/template
index 10ad09eac501..05fffcbf3af0 100644
--- a/srcpkgs/blackboxwm/template
+++ b/srcpkgs/blackboxwm/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/bbidulock/blackboxwm"
 distfiles="${homepage}/releases/download/${version}/blackbox-${version}.tar.lz"
 checksum=e4f814fb02f6a977e9aab1c60192087597b79b0a56cc4a14e8a962b7d45d82d1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/bmon/template b/srcpkgs/bmon/template
index 67b13cb31a54..64f426cc2eca 100644
--- a/srcpkgs/bmon/template
+++ b/srcpkgs/bmon/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause, MIT"
 homepage="http://github.com/tgraf/bmon/"
 distfiles="http://github.com/tgraf/${pkgname}/archive/v${version}.tar.gz"
 checksum=d5e503ff6b116c681ebf4d10e238604dde836dceb9c0008eb92416a96c87ca40
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/boinc/template b/srcpkgs/boinc/template
index 1eba13495c2a..944fdaf172d3 100644
--- a/srcpkgs/boinc/template
+++ b/srcpkgs/boinc/template
@@ -21,6 +21,7 @@ system_accounts="boinc"
 boinc_homedir="/var/lib/boinc"
 boinc_shell="/bin/bash"
 conflicts="boinc-nox>=0"
+patch_args=-Np0
 
 CXXFLAGS="-Wno-redundant-decls"
 
diff --git a/srcpkgs/bomi/template b/srcpkgs/bomi/template
index 4cab853148a5..f66197af1d88 100644
--- a/srcpkgs/bomi/template
+++ b/srcpkgs/bomi/template
@@ -21,6 +21,7 @@ changelog="https://raw.githubusercontent.com/xylosper/bomi/master/CHANGES.txt"
 distfiles="https://github.com/xylosper/bomi/archive/v${version}.tar.gz"
 checksum=c76ac45733cdafa7003bbc178e5a90a683df9aec30cd85f188bb17c7af9e282e
 nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/1382/steps/shell_3/logs/stdio
+patch_args=-Np0
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/bonnie++/template b/srcpkgs/bonnie++/template
index 8fa4be8c3d62..5c1be95b51f3 100644
--- a/srcpkgs/bonnie++/template
+++ b/srcpkgs/bonnie++/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="http://www.coker.com.au/bonnie++/"
 distfiles="http://www.coker.com.au/bonnie++/bonnie++-${version}.tgz"
 checksum=6e0bcbc08b78856fd998dd7bcb352d4615a99c26c2dc83d5b8345b102bad0b04
+patch_args=-Np0
 
 post_extract() {
 	sed -i  -e 's/sbin/bin/g' \
diff --git a/srcpkgs/boomerang/template b/srcpkgs/boomerang/template
index 904e0e8571ff..00b49809a562 100644
--- a/srcpkgs/boomerang/template
+++ b/srcpkgs/boomerang/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/BoomerangDecompiler/boomerang"
 distfiles="https://github.com/BoomerangDecompiler/boomerang/archive/v${version}.tar.gz"
 checksum=1d2c9c2f5de1a3e1d5fe3879e82bca268d1c49e6ba3d0a7848695f18c594384d
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*) ;;
diff --git a/srcpkgs/boost/template b/srcpkgs/boost/template
index 5b559e932d18..23f6a6acc51c 100644
--- a/srcpkgs/boost/template
+++ b/srcpkgs/boost/template
@@ -12,6 +12,7 @@ homepage="http://www.boost.org/"
 distfiles="https://dl.bintray.com/boostorg/release/${version}/source/boost_${version//./_}.tar.bz2"
 checksum=59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417cc660722
 python_version=3
+patch_args=-Np0
 
 CXXFLAGS="-std=c++14"
 
diff --git a/srcpkgs/bootchart2/template b/srcpkgs/bootchart2/template
index 62cd9d2116a3..e63b864e5e44 100644
--- a/srcpkgs/bootchart2/template
+++ b/srcpkgs/bootchart2/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/xrmx/bootchart/archive/${version}.tar.gz"
 checksum=cec7871c3dba47a1165873b0acde30a82221fde1d3a942da5e7dd09b513d2017
 make_dirs="/usr/lib/bootchart/tmpfs 0755 root root"
 conflicts="bootchart>=0"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's,\$(EARLY_PREFIX)/sbin/,/usr/bin/,' Makefile
diff --git a/srcpkgs/botan/template b/srcpkgs/botan/template
index d2e6ffb9ccda..5e9e3c803e32 100644
--- a/srcpkgs/botan/template
+++ b/srcpkgs/botan/template
@@ -14,6 +14,7 @@ homepage="https://botan.randombit.net/"
 distfiles="https://botan.randombit.net/releases/Botan-${version}.tar.xz"
 checksum=92ed6ebc918d86bd1b04221ca518af4cf29cc326c4760740bd2d22e61cea2628
 python_version=3
+patch_args=-Np0
 
 LDFLAGS="-pthread"
 CXXFLAGS="-O3"
diff --git a/srcpkgs/bridge-utils/template b/srcpkgs/bridge-utils/template
index 08827cd6ad58..e50ac51ba446 100644
--- a/srcpkgs/bridge-utils/template
+++ b/srcpkgs/bridge-utils/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge"
 distfiles="${KERNEL_SITE}/utils/net/bridge-utils/bridge-utils-${version}.tar.xz"
 checksum=cc67efb5d5fb8928a6569b3fade2b4042ec17da04678dab127d96b46489e26c8
+patch_args=-Np0
 
 pre_configure() {
 	sed "s/u_int\([0-9]*\)_t/uint\1_t/" -i libbridge/libbridge.h
diff --git a/srcpkgs/brltty/template b/srcpkgs/brltty/template
index 53e15ed6ff03..b9c6ba6ec6bf 100644
--- a/srcpkgs/brltty/template
+++ b/srcpkgs/brltty/template
@@ -14,6 +14,7 @@ homepage="http://mielke.cc/brltty/"
 distfiles="http://mielke.cc/brltty/archive/brltty-${version}.tar.xz"
 checksum=4a28e3f1879aee9082f9ce4100fd4053be47add7f8ab0f2af6d6a20590934b62
 python_version=3
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) configure_args="${configure_args} --with-ports-package=glibc";;
diff --git a/srcpkgs/broadcom-wl-dkms/template b/srcpkgs/broadcom-wl-dkms/template
index 55bc9c0e1d36..a31c8c385c7c 100644
--- a/srcpkgs/broadcom-wl-dkms/template
+++ b/srcpkgs/broadcom-wl-dkms/template
@@ -1,4 +1,5 @@
 # Template file for 'broadcom-wl-dkms'
+patch_args=-Np0
 
 pkgname=broadcom-wl-dkms
 version=6.30.223.271
diff --git a/srcpkgs/browsh/template b/srcpkgs/browsh/template
index 856fefd13d78..67675e7dcab0 100644
--- a/srcpkgs/browsh/template
+++ b/srcpkgs/browsh/template
@@ -17,6 +17,7 @@ distfiles="https://$go_import_path/archive/v$version.tar.gz
 checksum="965ce2d94d1d9e4b92411d344421c0bea40994527cafd694c5a6e8e206681ede
  b410527a69dba88a30d8a6d341a20eb5cb1f84b684e9bc8bb6bc88a2930e0eea"
 skip_extraction="browsh.xpi"
+patch_args=-Np0
 
 pre_build() {
 	_prefix="$XBPS_SRCDISTDIR/$pkgname-$version"
diff --git a/srcpkgs/bsdiff/template b/srcpkgs/bsdiff/template
index d1396b8c707c..5f038e447a77 100644
--- a/srcpkgs/bsdiff/template
+++ b/srcpkgs/bsdiff/template
@@ -10,6 +10,7 @@ homepage="http://www.daemonology.net/bsdiff"
 distfiles="${DEBIAN_SITE}/main/b/bsdiff/bsdiff_${version}.orig.tar.gz"
 #distfiles="${homepage}/${pkgname}-${version}.tar.gz"
 checksum=18821588b2dc5bf159aa37d3bcb7b885d85ffd1e19f23a0c57a58723fea85f48
+patch_args=-Np0
 
 do_build() {
 	for i in diff patch; do
diff --git a/srcpkgs/bsdunzip/template b/srcpkgs/bsdunzip/template
index e6ac1e4a369f..922b71d2b7de 100644
--- a/srcpkgs/bsdunzip/template
+++ b/srcpkgs/bsdunzip/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause, ISC"
 homepage="https://github.com/somasis/bsdunzip"
 distfiles="https://github.com/somasis/bsdunzip/archive/${version}.tar.gz"
 checksum=06c52c77fa518732665aa2daa73f364cd2470a5d47a83c9c79f86f207cf3ecc1
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/bubblewrap/template b/srcpkgs/bubblewrap/template
index 4df1dac59395..c8d5dda04338 100644
--- a/srcpkgs/bubblewrap/template
+++ b/srcpkgs/bubblewrap/template
@@ -11,6 +11,7 @@ license="LGPL-2.0-or-later"
 homepage="https://github.com/containers/bubblewrap"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=b9c69b9b1c61a608f34325c8e1a495229bacf6e4a07cbb0c80cf7a814d7ccc03
+patch_args=-Np0
 
 post_install() {
 	if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/buffer/template b/srcpkgs/buffer/template
index df0fb0c0c640..e1c05e510af0 100644
--- a/srcpkgs/buffer/template
+++ b/srcpkgs/buffer/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/scotte/buffer"
 distfiles="https://github.com/scotte/buffer/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=14a881fcd070b1dcd8ec91d8d036f22094c22ac3769c274f0d7d6799038a73c3
+patch_args=-Np0
 
 pre_build() {
 	sed -i Makefile \
diff --git a/srcpkgs/buildbot/template b/srcpkgs/buildbot/template
index ae905fc67ab8..bec731f4e532 100644
--- a/srcpkgs/buildbot/template
+++ b/srcpkgs/buildbot/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://buildbot.net/"
 distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=331efd07bd7522c222a8fb258801e8d78332c88d778ee76416b9e1028676e964
+patch_args=-Np0
 
 pre_install() {
 	sed -i 's,#!/usr/bin/env jython,#!/usr/bin/python2,' contrib/run_maxq.py
diff --git a/srcpkgs/buku/template b/srcpkgs/buku/template
index b2c1962d9195..2785910412d1 100644
--- a/srcpkgs/buku/template
+++ b/srcpkgs/buku/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/jarun/Buku"
 distfiles="https://github.com/jarun/Buku/archive/v${version}.tar.gz"
 checksum=2e1968016d3856184db8ac49cdc92a6c70869f62846185f28c8c60ead0c42888
+patch_args=-Np0
 
 do_install() {
 	vbin buku
diff --git a/srcpkgs/bullet/template b/srcpkgs/bullet/template
index 9dabf7d89292..3f2af8aafdfd 100644
--- a/srcpkgs/bullet/template
+++ b/srcpkgs/bullet/template
@@ -15,6 +15,7 @@ homepage="http://www.bulletphysics.com/Bullet/"
 distfiles="https://github.com/bulletphysics/bullet3/archive/${version}.tar.gz"
 checksum=baa642c906576d4d98d041d0acb80d85dd6eff6e3c16a009b1abf1ccd2bc0a61
 shlib_provides="libOpenGLWindow.so libgwen.so"
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/bumblebee/template b/srcpkgs/bumblebee/template
index c54ea65d32c5..93aa7c8e3bf9 100644
--- a/srcpkgs/bumblebee/template
+++ b/srcpkgs/bumblebee/template
@@ -24,6 +24,7 @@ homepage="http://www.bumblebee-project.org/"
 distfiles="http://www.bumblebee-project.org/${pkgname}-${version}.tar.gz"
 checksum=1018703b07e2f607a4641249d69478ce076ae5a1e9dd6cff5694d394fa7ee30e
 system_groups="bumblebee"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/bup/template b/srcpkgs/bup/template
index b40c3cddbf68..5028dce8364d 100644
--- a/srcpkgs/bup/template
+++ b/srcpkgs/bup/template
@@ -14,6 +14,7 @@ distfiles="https://github.com/bup/bup/archive/${version}.tar.gz"
 checksum=a894cfa96c44b9ef48003b2c2104dc5fa6361dd2f4d519261a93178984a51259
 python_version=3
 nocross=yes
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's#^PREFIX=.*#PREFIX=/usr#' Makefile
diff --git a/srcpkgs/burp2-server/template b/srcpkgs/burp2-server/template
index f3d95a8f1523..c9d602c51242 100644
--- a/srcpkgs/burp2-server/template
+++ b/srcpkgs/burp2-server/template
@@ -1,5 +1,6 @@
 # Template file for 'burp2-server'
 _desc="Network-based backup and restore program"
+patch_args=-Np0
 
 pkgname=burp2-server
 version=2.4.0
diff --git a/srcpkgs/busybox/template b/srcpkgs/busybox/template
index 07377569ba5f..b580ccc52e9b 100644
--- a/srcpkgs/busybox/template
+++ b/srcpkgs/busybox/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://www.busybox.net"
 distfiles="${homepage}/downloads/busybox-${version}.tar.bz2"
 checksum=9d57c4bd33974140fd4111260468af22856f12f5b5ef7c70c8d9b75c712a0dee
+patch_args=-Np0
 
 _alternatives_core="
  ash:ash:/usr/bin/busybox
diff --git a/srcpkgs/bzip2/template b/srcpkgs/bzip2/template
index c39a9427efb1..d51b4a9e6efd 100644
--- a/srcpkgs/bzip2/template
+++ b/srcpkgs/bzip2/template
@@ -10,6 +10,7 @@ homepage="https://sourceware.org/bzip2/"
 changelog="https://sourceware.org/bzip2/CHANGES"
 distfiles="https://sourceware.org/pub/bzip2/bzip2-${version}.tar.gz"
 checksum=ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269
+patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CFLAGS="$CFLAGS -fPIC $LDFLAGS" LDFLAGS="$LDFLAGS" -f Makefile-libbz2_so
diff --git a/srcpkgs/c-blosc/template b/srcpkgs/c-blosc/template
index a488bfbf05d7..b272c4a370c0 100644
--- a/srcpkgs/c-blosc/template
+++ b/srcpkgs/c-blosc/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause, MIT"
 homepage="https://www.blosc.org"
 distfiles="https://github.com/Blosc/c-blosc/archive/v${version}.tar.gz"
 checksum=42c4d3fcce52af9f8e2078f8f57681bfc711706a3330cb72b9b39e05ae18a413
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSES/BLOSC.txt
diff --git a/srcpkgs/c-client/template b/srcpkgs/c-client/template
index bf65dc7277be..83210555d177 100644
--- a/srcpkgs/c-client/template
+++ b/srcpkgs/c-client/template
@@ -11,6 +11,7 @@ homepage="http://www.washington.edu/imap"
 distfiles="http://ftp.ntua.gr/pub/net/mail/imap/imap-${version}.tar.gz"
 checksum=53e15a2b5c1bc80161d42e9f69792a3fa18332b7b771910131004eb520004a28
 nocross=yes
+patch_args=-Np0
 
 do_configure() {
 	sed \
diff --git a/srcpkgs/ca-certificates/template b/srcpkgs/ca-certificates/template
index 854e76a613cd..cd82c7f4c9bc 100644
--- a/srcpkgs/ca-certificates/template
+++ b/srcpkgs/ca-certificates/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later, MPL-2.0"
 homepage="https://tracker.debian.org/pkg/ca-certificates"
 distfiles="${DEBIAN_SITE}/main/c/${pkgname}/${pkgname}_${version}.tar.xz"
 checksum=daa3afae563711c30a0586ddae4336e8e3974c2b627faaca404c4e0141b64665
+patch_args=-Np0
 
 post_extract() {
 	$BUILD_CC $BUILD_CFLAGS ${FILESDIR}/certdata2pem.c -o ${wrksrc}/mozilla/certdata2pem
diff --git a/srcpkgs/cabal-install/template b/srcpkgs/cabal-install/template
index 2c15789b1f9d..1db0f1c792e6 100644
--- a/srcpkgs/cabal-install/template
+++ b/srcpkgs/cabal-install/template
@@ -13,6 +13,7 @@ distfiles="https://hackage.haskell.org/packages/archive/${pkgname}/${version}/${
 checksum=a0555e895aaf17ca08453fde8b19af96725da8398e027aa43a49c1658a600cb0
 nopie_files="/usr/bin/cabal"
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	PREFIX=$PWD/build sh bootstrap.sh --jobs ${XBPS_MAKEJOBS} --user
diff --git a/srcpkgs/cackey/template b/srcpkgs/cackey/template
index 468dcd1c7b1b..6358543e178f 100644
--- a/srcpkgs/cackey/template
+++ b/srcpkgs/cackey/template
@@ -13,6 +13,7 @@ homepage="http://www.rkeene.org/projects/info/wiki/161"
 distfiles="http://cackey.rkeene.org/download/$version/cackey-$version.tar.gz"
 checksum=e2074055bab8eb1c277bfa3355767c50f792d5b87bf41f9c0d1af0e77f311583
 CPPFLAGS="-I$XBPS_CROSS_BASE/usr/include/PCSC"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/cadence/template b/srcpkgs/cadence/template
index b429ab1f0fcb..283dc9312e0b 100644
--- a/srcpkgs/cadence/template
+++ b/srcpkgs/cadence/template
@@ -16,6 +16,7 @@ license="GPL-2.0-only"
 homepage="http://kxstudio.linuxaudio.org/Applications:Cadence"
 distfiles="https://github.com/falkTX/Cadence/archive/v${version}.tar.gz"
 checksum=e530787ded0d53a3004c7a8260114ddb970c2aea43875d62eccd599ac96e1fd1
+patch_args=-Np0
 
 post_extract() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/calc/template b/srcpkgs/calc/template
index bc2087ca2bd3..d5c191ab4da4 100644
--- a/srcpkgs/calc/template
+++ b/srcpkgs/calc/template
@@ -11,6 +11,7 @@ homepage="http://www.isthe.com/chongo/tech/comp/calc/index.html"
 distfiles="http://www.isthe.com/chongo/src/calc/calc-${version}.tar.bz2"
 checksum=eb1dc5dd680019e30264109167e20539fe9ac869049d8b1639781a51d1dea84c
 disable_parallel_build=yes
+patch_args=-Np0
 
 post_extract() {
 	case $XBPS_TARGET_MACHINE in
diff --git a/srcpkgs/caps/template b/srcpkgs/caps/template
index 5555e35858a2..853aec8890bf 100644
--- a/srcpkgs/caps/template
+++ b/srcpkgs/caps/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://quitte.de/dsp/caps.html"
 distfiles="http://quitte.de/dsp/${pkgname}_${version}.tar.bz2"
 checksum=e7496c5bce05abebe3dcb635926153bbb58a9337a6e423f048d3b61d8a4f98c9
+patch_args=-Np0
 
 pre_build() {
 	make_build_args="CC=${CXX} LD=${LD}"
diff --git a/srcpkgs/cargo/template b/srcpkgs/cargo/template
index 9c9781d1fc47..654bdfe4a906 100644
--- a/srcpkgs/cargo/template
+++ b/srcpkgs/cargo/template
@@ -14,6 +14,7 @@ homepage="https://crates.io/"
 distfiles="https://github.com/rust-lang/cargo/archive/${version}.tar.gz"
 checksum=59ba1ce05becb4a5e0772d334d75f9dce3d5487ca288ac986e786241bb1cbac5
 replaces="cargo-tree>=0"
+patch_args=-Np0
 
 build_options="static bindist"
 desc_option_bindist="Generate a tarball for bootstrap"
diff --git a/srcpkgs/catch2/template b/srcpkgs/catch2/template
index 23e59016d313..09607734bc90 100644
--- a/srcpkgs/catch2/template
+++ b/srcpkgs/catch2/template
@@ -15,6 +15,7 @@ license="BSL-1.0"
 homepage="https://github.com/catchorg/Catch2"
 distfiles="https://github.com/catchorg/Catch2/archive/v${version}/${pkgname}-v${version}.tar.gz"
 checksum=e7eb70b3d0ac2ed7dcf14563ad808740c29e628edde99e973adad373a2b5e4df
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/catdoc/template b/srcpkgs/catdoc/template
index ff26dbc5f7be..06522d692116 100644
--- a/srcpkgs/catdoc/template
+++ b/srcpkgs/catdoc/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://www.wagner.pp.ru/~vitus/software/catdoc/"
 distfiles="http://ftp.wagner.pp.ru/pub/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=514a84180352b6bf367c1d2499819dfa82b60d8c45777432fa643a5ed7d80796
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/share/man/man1
diff --git a/srcpkgs/cbang/template b/srcpkgs/cbang/template
index 63388b2aa828..739b521d98c3 100644
--- a/srcpkgs/cbang/template
+++ b/srcpkgs/cbang/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://github.com/CauldronDevelopmentLLC/cbang"
 distfiles="https://github.com/CauldronDevelopmentLLC/cbang/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=8aa5efacf419b712b5bd0172c9d56301bdcbd477cb590ceec25c3595a192e9c0
+patch_args=-Np0
 
 pre_build() {
 	make_build_args+=" prefix=$DESTDIR/usr"
diff --git a/srcpkgs/ccextractor/template b/srcpkgs/ccextractor/template
index fe27e68b04f5..9bdd5e05fc3f 100644
--- a/srcpkgs/ccextractor/template
+++ b/srcpkgs/ccextractor/template
@@ -15,6 +15,7 @@ changelog="https://raw.githubusercontent.com/CCExtractor/ccextractor/master/docs
 distfiles="https://github.com/CCExtractor/${pkgname}/archive/v${version}.tar.gz"
 checksum=bbe8d95347d0cf31bd26489b733fd959a7b98c681f14c59309bff54713fd539d
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/tesseract -DPNG_POWERPC_VSX_OPT=0 -fcommon"
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e "s/tesseract --version/tesseract-ocr --version/g" configure.ac
diff --git a/srcpkgs/ccl/template b/srcpkgs/ccl/template
index 5972ddeb0ce6..d6a2bc83ee74 100644
--- a/srcpkgs/ccl/template
+++ b/srcpkgs/ccl/template
@@ -21,6 +21,7 @@ nopie=1
 nostrip=1
 disable_parallel_build=1
 python_version=3
+patch_args=-Np0
 
 case $XBPS_MACHINE in
 	x86_64*) _arch=64 ;;
diff --git a/srcpkgs/cclive/template b/srcpkgs/cclive/template
index c43dbb94209c..d221a95f2520 100644
--- a/srcpkgs/cclive/template
+++ b/srcpkgs/cclive/template
@@ -12,6 +12,7 @@ homepage="http://cclive.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=2edeaf5d76455723577e0b593f0322a97f1e0c8b0cffcc70eca8b5d17374a495
 CPPFLAGS="-P"
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/ccsm/template b/srcpkgs/ccsm/template
index 7f27e3317fc4..168445d7ec45 100644
--- a/srcpkgs/ccsm/template
+++ b/srcpkgs/ccsm/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/compiz-reloaded"
 distfiles="https://github.com/compiz-reloaded/ccsm/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=99192a021631cc5a82131fbc03d2f1b7e587892878902113d9bde57a6b00bfa4
+patch_args=-Np0
 
 if [ -z "$CROSS_BUILD" ]; then
 	makedepends+=" python-gobject-devel"
diff --git a/srcpkgs/cdb/template b/srcpkgs/cdb/template
index c95afff379bb..410f978ee7f9 100644
--- a/srcpkgs/cdb/template
+++ b/srcpkgs/cdb/template
@@ -9,6 +9,7 @@ license="Public Domain"
 homepage="http://cr.yp.to/cdb.html"
 distfiles="http://cr.yp.to/cdb/cdb-${version}.tar.gz"
 checksum="1919577799a50c080a8a05a1cbfa5fa7e7abc823d8d7df2eeb181e624b7952c5"
+patch_args=-Np0
 
 alternatives="
  cdb:cdbdump:/usr/bin/cdb-dump
diff --git a/srcpkgs/cdecl/template b/srcpkgs/cdecl/template
index e120ca3af500..6de896357130 100644
--- a/srcpkgs/cdecl/template
+++ b/srcpkgs/cdecl/template
@@ -14,6 +14,7 @@ homepage="http://cdecl.org/"
 distfiles="${homepage}files/${wrksrc}.tar.gz"
 checksum=9ee6402be7e4f5bb5e6ee60c6b9ea3862935bf070e6cecd0ab0842305406f3ac
 CFLAGS="-DUSE_READLINE"
+patch_args=-Np0
 
 pre_build() {
 	flex -l -o cdlex.c cdlex.l
diff --git a/srcpkgs/cdm/template b/srcpkgs/cdm/template
index f1fb8b2f646c..5f8a016741b4 100644
--- a/srcpkgs/cdm/template
+++ b/srcpkgs/cdm/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/evertiro/cdm"
 distfiles="https://github.com/evertiro/cdm/archive/${version}.tar.gz"
 checksum=530042165ce65cdff3ec62ba9f077d0e8c6744c13f5d449d84fe2506a79d2e56
+patch_args=-Np0
 
 do_install() {
 	sed -i 's| /| $PKGDESTDIR/|g' install.sh
diff --git a/srcpkgs/cdparanoia/template b/srcpkgs/cdparanoia/template
index 3cf09587f215..956184ded118 100644
--- a/srcpkgs/cdparanoia/template
+++ b/srcpkgs/cdparanoia/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.xiph.org/paranoia/"
 distfiles="http://downloads.xiph.org/releases/$pkgname/$pkgname-III-$version.src.tgz"
 checksum=005db45ef4ee017f5c32ec124f913a0546e77014266c6a1c50df902a55fe64df
+patch_args=-Np0
 
 CFLAGS="-Du_int16_t=uint16_t -Du_int32_t=uint32_t"
 disable_parallel_build=yes
diff --git a/srcpkgs/cegui/template b/srcpkgs/cegui/template
index 070fa66aff81..14cd66cd83fb 100644
--- a/srcpkgs/cegui/template
+++ b/srcpkgs/cegui/template
@@ -23,6 +23,7 @@ homepage="http://cegui.org.uk/"
 distfiles="https://github.com/cegui/cegui/archive/${_githash}.tar.gz"
 checksum=70156257313b81d068d6592887157dd16b91d7bc0dfdcba02a96ed371d329e64
 replaces="cegui-data>=0 cegui-sample>=0"
+patch_args=-Np0
 
 build_options="gtk irrlicht ogre python"
 desc_option_irrlicht="Enable support for Irrlicht"
diff --git a/srcpkgs/cegui07/template b/srcpkgs/cegui07/template
index 3fa7f80a2ea7..352613cf01d5 100644
--- a/srcpkgs/cegui07/template
+++ b/srcpkgs/cegui07/template
@@ -20,6 +20,7 @@ license="MIT"
 homepage="http://cegui.org.uk/"
 distfiles="${SOURCEFORGE_SITE}/crayzedsgui/CEGUI%20Mk-2/${version}/CEGUI-${version}.tar.gz"
 checksum=7c3b264def08b46de749c2acaba363e907479d924612436f3bd09da2e474bb8c
+patch_args=-Np0
 
 build_options="irrlicht python"
 desc_option_irrlicht="Enable support for Irrlicht"
diff --git a/srcpkgs/celestia-glut/template b/srcpkgs/celestia-glut/template
index 2ee6f0cd64fd..22f9e62c648f 100644
--- a/srcpkgs/celestia-glut/template
+++ b/srcpkgs/celestia-glut/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="https://celestia.space"
 distfiles="${SOURCEFORGE_SITE}/celestia/celestia-${version}.tar.gz"
 checksum="d35570ccb9440fc0bd3e73eb9b4c3e8a4c25f3ae444a13d1175053fa16dc34c4"
+patch_args=-Np0
 
 provides="celestia-${version}_${revision}"
 replaces="celestia>=0"
diff --git a/srcpkgs/celestia-gtk/template b/srcpkgs/celestia-gtk/template
index 85e1c6ee1ed8..b0001ac504be 100644
--- a/srcpkgs/celestia-gtk/template
+++ b/srcpkgs/celestia-gtk/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="https://celestia.space"
 distfiles="${SOURCEFORGE_SITE}/celestia/celestia-${version}.tar.gz"
 checksum="d35570ccb9440fc0bd3e73eb9b4c3e8a4c25f3ae444a13d1175053fa16dc34c4"
+patch_args=-Np0
 
 provides="celestia-${version}_${revision}"
 replaces="celestia>=0"
diff --git a/srcpkgs/chafa/template b/srcpkgs/chafa/template
index 1b07026b9ea4..b6c87f0e2757 100644
--- a/srcpkgs/chafa/template
+++ b/srcpkgs/chafa/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-or-later"
 homepage="https://hpjansson.org/chafa/"
 distfiles="https://hpjansson.org/chafa/releases/chafa-${version}.tar.xz"
 checksum=0706e101a6e0e806335aeb57445e2f6beffe0be29a761f561979e81691c2c681
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|i686*) ;;
diff --git a/srcpkgs/chatterino2/template b/srcpkgs/chatterino2/template
index f69730b3a9fe..642d3147fdd2 100644
--- a/srcpkgs/chatterino2/template
+++ b/srcpkgs/chatterino2/template
@@ -29,6 +29,7 @@ e8755e68ff6fc39b4338d424ee9aed2ed5a8eab6eb37af69de2ff21b8dc94e66
 f387cc7eaf27dec462bc85a212619f8086167cf0b47e11825b8580d35a740dfe
 5a5cd8338fcb0a14a4bbe0840f83505d0444a9000956145e85e5550feeb744b0
 eb492b89e67f4ec632bd43f2701d53e355f1d1afbec3cd3af5891c1a6aaaa454"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/chatty/template b/srcpkgs/chatty/template
index a13ad9765b5a..c4ab65395aa6 100644
--- a/srcpkgs/chatty/template
+++ b/srcpkgs/chatty/template
@@ -10,6 +10,7 @@ license="GPL-3.0-only"
 homepage="http://chatty.github.io/"
 distfiles="https://github.com/chatty/chatty/archive/v${version}.tar.gz"
 checksum=2eed3a4ed4f1ea58d89e535182bd32771522e4bccb5aa3bf4329aec9d7ab554c
+patch_args=-Np0
 
 do_build() {
 	gradle shadowJar
diff --git a/srcpkgs/chkrootkit/template b/srcpkgs/chkrootkit/template
index 01558c933f81..1f614156b116 100644
--- a/srcpkgs/chkrootkit/template
+++ b/srcpkgs/chkrootkit/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://www.chkrootkit.org"
 distfiles="ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit-${version}.tar.gz"
 checksum=7262dae33b338976828b5d156b70d159e0043c0db43ada8dee66c97387cf45b5
+patch_args=-Np0
 
 CFLAGS="-fPIC"
 LDFLAGS="-fPIC"
diff --git a/srcpkgs/chmlib/template b/srcpkgs/chmlib/template
index a573c27d1499..44f3de8568b4 100644
--- a/srcpkgs/chmlib/template
+++ b/srcpkgs/chmlib/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.jedrea.com/chmlib/"
 distfiles="http://www.jedrea.com/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=3449d64b0cf71578b2c7e3ddc048d4af3661f44a83941ea074a7813f3a59ffa3
+patch_args=-Np0
 
 libchmlib_package() {
 	short_desc="Library for dealing with Microsoft ITSS/CHM format files"
diff --git a/srcpkgs/choosenim/template b/srcpkgs/choosenim/template
index e2fb62b08d8a..eb5ee1d0fed6 100644
--- a/srcpkgs/choosenim/template
+++ b/srcpkgs/choosenim/template
@@ -13,6 +13,7 @@ distfiles="${homepage}/archive/v${version}.tar.gz>choosenim-${version}.tar.gz
  https://github.com/genotrance/nimarchive/archive/v0.5.4.tar.gz>nimarchive-0.5.4.tar.gz"
 checksum="0e78a59cfb3cf7926f8dff3a4215949ccfaecd6c6dddc3b2e062098b5da03edb
  c38e8c66c2eac2bc021d450f2b60d0e45c5355df963d0133930448639c0bd8d4"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc-musl) broken="ftbfs" ;;
diff --git a/srcpkgs/choqok/template b/srcpkgs/choqok/template
index 75a2c16f63e0..df6cbfc32b23 100644
--- a/srcpkgs/choqok/template
+++ b/srcpkgs/choqok/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="http://choqok.kde.org/"
 distfiles="${KDE_SITE}/${pkgname}/${version%.*}/src/${pkgname}-${version}.tar.xz"
 checksum=26600d95f152c3e04881efb7fb3eb07b5c52fa6ffee838690f28b45defb4a47e
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" kcoreaddons kdoctools ${makedepends}"
diff --git a/srcpkgs/chromium/template b/srcpkgs/chromium/template
index 2c1bb5d7a35c..cbc7e092ac87 100644
--- a/srcpkgs/chromium/template
+++ b/srcpkgs/chromium/template
@@ -11,6 +11,7 @@ homepage="https://www.chromium.org/"
 distfiles="https://commondatastorage.googleapis.com/chromium-browser-official/${pkgname}-${version}.tar.xz"
 checksum=45d5a43ef798d20313c78fa8a075be0c22055e39c8481eb53eabda81df901b31
 nocross=yes
+patch_args=-Np0
 
 lib32disabled=yes
 nodebug=yes
diff --git a/srcpkgs/ck/template b/srcpkgs/ck/template
index f67b160c87c7..4cfe121c7fe6 100644
--- a/srcpkgs/ck/template
+++ b/srcpkgs/ck/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://concurrencykit.org/"
 distfiles="https://github.com/concurrencykit/ck/archive/${version}.tar.gz"
 checksum=e730cb448fb0ecf9d19bf4c7efe9efc3c04dd9127311d87d8f91484742b0da24
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/ckmame/template b/srcpkgs/ckmame/template
index 1b88f6a965cb..3889029f0c9f 100644
--- a/srcpkgs/ckmame/template
+++ b/srcpkgs/ckmame/template
@@ -14,6 +14,7 @@ license="BSD-3-clause"
 homepage="https://nih.at/ckmame/"
 distfiles="https://github.com/nih-at/ckmame/archive/rel-${version//./-}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=9fc5dcf1d2dd75351b2cdf43ce10fecda7d97c8c1a8dd0fe1f653229bb316130
+patch_args=-Np0
 
 post_install() {
 	vlicense ${wrksrc}/LICENSE
diff --git a/srcpkgs/clementine/template b/srcpkgs/clementine/template
index 40a6ac8c70a1..c150fcf650fc 100644
--- a/srcpkgs/clementine/template
+++ b/srcpkgs/clementine/template
@@ -22,6 +22,7 @@ homepage="https://www.clementine-player.org/"
 distfiles="https://github.com/clementine-player/Clementine/releases/download/${_fullver}/${pkgname}-${_fullver}.tar.xz"
 checksum=e1fa2482b81336282a36a5451a0217c274e5b45aa3eeed83fe3fd29a5df59397
 build_options="spotify"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64 | i686 | armv7l)
diff --git a/srcpkgs/cli-visualizer/template b/srcpkgs/cli-visualizer/template
index e758562274e3..d95ce4d4b367 100644
--- a/srcpkgs/cli-visualizer/template
+++ b/srcpkgs/cli-visualizer/template
@@ -13,6 +13,7 @@ distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=927e4c18403c7a40397e8698ffefd1b37250be20fa0ec55fda9a82cf9cc8ba51
 build_options="pulseaudio"
 build_options_default="pulseaudio"
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/clib/template b/srcpkgs/clib/template
index 6e3bf69b149d..f4802d32a731 100644
--- a/srcpkgs/clib/template
+++ b/srcpkgs/clib/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/clibs/clib"
 distfiles="https://github.com/clibs/clib/archive/${version}.tar.gz"
 checksum=74643374883651a272ed8ac8e8a6789c0b4a4b13e20a9d45798fd770821e620d
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/clisp/template b/srcpkgs/clisp/template
index ee0941a3d581..f062b8a1244b 100644
--- a/srcpkgs/clisp/template
+++ b/srcpkgs/clisp/template
@@ -21,6 +21,7 @@ lib32disabled=yes
 disable_parallel_build=yes
 build_options="readline"
 build_options_default="readline"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686-musl) broken="*** - MULTIPLE-VALUE-SETQ: variable EXTRA-FILE-TYPES has no value";;
diff --git a/srcpkgs/cln/template b/srcpkgs/cln/template
index fc771b0f9adf..173890a0b830 100644
--- a/srcpkgs/cln/template
+++ b/srcpkgs/cln/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://www.ginac.de/CLN/"
 distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
 checksum=f492530e8879bda529009b6033e1923c8f4aae843149fc28c667c20b094d984a
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 arm*|aarch64*) CPPFLAGS="-DNO_ASM";;
diff --git a/srcpkgs/clog/template b/srcpkgs/clog/template
index b255ad949bc7..2195202ec954 100644
--- a/srcpkgs/clog/template
+++ b/srcpkgs/clog/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://taskwarrior.org/docs/clog/"
 distfiles="http://gothenburgbitfactory.org/download/clog-${version}.tar.gz"
 checksum=fed44a8d398790ab0cf426c1b006e7246e20f3fcd56c0ec4132d24b05d5d2018
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/cloog/template b/srcpkgs/cloog/template
index 18a84032fdd4..d65b97fcf48b 100644
--- a/srcpkgs/cloog/template
+++ b/srcpkgs/cloog/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.bastoul.net/cloog/"
 distfiles="https://github.com/periscop/cloog/releases/download/cloog-${version}/cloog-${version}.tar.gz"
 checksum=835c49951ff57be71dcceb6234d19d2cc22a3a5df84aea0a9d9760d92166fc72
+patch_args=-Np0
 
 cloog-devel_package() {
 	depends="${makedepends} cloog>=${version}_${revision}"
diff --git a/srcpkgs/clucene/template b/srcpkgs/clucene/template
index fe045cb36356..67d9d9641281 100644
--- a/srcpkgs/clucene/template
+++ b/srcpkgs/clucene/template
@@ -15,6 +15,7 @@ license="LGPL-2+/ASL-2.0"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-core-${version}.tar.gz"
 checksum=ddfdc433dd8ad31b5c5819cc4404a8d2127472a3b720d3e744e8c51d79732eab
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	# threading segfaults on musl
diff --git a/srcpkgs/clutter/template b/srcpkgs/clutter/template
index 461e2fe07978..44b3ab7c88de 100644
--- a/srcpkgs/clutter/template
+++ b/srcpkgs/clutter/template
@@ -18,6 +18,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.clutter-project.org"
 distfiles="${GNOME_SITE}/clutter/${version%.*}/clutter-${version}.tar.xz"
 checksum=8b48fac159843f556d0a6be3dbfc6b083fc6d9c58a20a49a6b4919ab4263c4e6
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/cmocka/template b/srcpkgs/cmocka/template
index ea0384420a33..dfe97283fad1 100644
--- a/srcpkgs/cmocka/template
+++ b/srcpkgs/cmocka/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://cmocka.org/"
 distfiles="https://cmocka.org/files/${version%.*}/cmocka-${version}.tar.xz"
 checksum=f0ccd8242d55e2fd74b16ba518359151f6f8383ff8aef4976e48393f77bba8b6
+patch_args=-Np0
 
 cmocka-devel_package() {
 	depends="cmocka-${version}_${revision}"
diff --git a/srcpkgs/cmus/template b/srcpkgs/cmus/template
index fd8e518e2af6..891beaef9a5e 100644
--- a/srcpkgs/cmus/template
+++ b/srcpkgs/cmus/template
@@ -19,6 +19,7 @@ checksum=6fb799cae60db9324f03922bbb2e322107fd386ab429c0271996985294e2ef44
 build_options="elogind"
 build_options_default="elogind"
 desc_option_elogind="Support MPRIS interface via elogind"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/codeblocks/template b/srcpkgs/codeblocks/template
index 33b9b9a77853..c1f7945b39c2 100644
--- a/srcpkgs/codeblocks/template
+++ b/srcpkgs/codeblocks/template
@@ -14,6 +14,7 @@ license="GPL-3.0-only"
 homepage="http://www.codeblocks.org"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/Sources/${version}/${pkgname}-${version}.tar.xz"
 checksum=15eeb3e28aea054e1f38b0c7f4671b4d4d1116fd05f63c07aa95a91db89eaac5
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" wxWidgets-devel tinyxml-devel"
diff --git a/srcpkgs/codecrypt/template b/srcpkgs/codecrypt/template
index cd326930709d..51c0dcbbd0b8 100644
--- a/srcpkgs/codecrypt/template
+++ b/srcpkgs/codecrypt/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-or-later"
 homepage="https://e-x-a.org/codecrypt"
 distfiles="https://github.com/exaexa/codecrypt/archive/v${version}.tar.gz"
 checksum=25f11bc361b4f8aca7245698334b5715b7d594d708a75e8cdb2aa732dc46eb96
+patch_args=-Np0
 
 LDFLAGS="-lpthread"
 
diff --git a/srcpkgs/codelite/template b/srcpkgs/codelite/template
index cedc1e11c247..db21463032db 100644
--- a/srcpkgs/codelite/template
+++ b/srcpkgs/codelite/template
@@ -20,6 +20,7 @@ distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz"
 checksum=f2653fa42d6214999718236998cb223e6de00a498c0cfde795e901be693fb9ac
 nocross=yes
 python_version=2 #unverified
+patch_args=-Np0
 
 build_options="hunspell lldb mysql sftp"
 build_options_default="hunspell sftp"
diff --git a/srcpkgs/coin3/template b/srcpkgs/coin3/template
index 2130c0b8b263..3ed1add5ffa6 100644
--- a/srcpkgs/coin3/template
+++ b/srcpkgs/coin3/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="https://coin3d.github.io/"
 distfiles="https://github.com/coin3d/coin/archive/Coin-${version}.tar.gz"
 checksum=b00d2a8e9d962397cf9bf0d9baa81bcecfbd16eef675a98c792f5cf49eb6e805
+patch_args=-Np0
 
 CFLAGS=-DNDEBUG
 CXXFLAGS=-DNDEBUG
diff --git a/srcpkgs/collectd/template b/srcpkgs/collectd/template
index 28fa815e85a9..b9fa1053465d 100644
--- a/srcpkgs/collectd/template
+++ b/srcpkgs/collectd/template
@@ -23,6 +23,7 @@ homepage="https://collectd.org"
 distfiles="https://collectd.org/files/${pkgname}-${version}.tar.bz2"
 checksum=5bae043042c19c31f77eb8464e56a01a5454e0b39fa07cf7ad0f1bfc9c3a09d6
 LDFLAGS="-lgcrypt"
+patch_args=-Np0
 
 build_options="rrdtool perl notify prometheus"
 desc_option_rrdtool="Enable support for RRDTool"
diff --git a/srcpkgs/colord/template b/srcpkgs/colord/template
index 98739d4802bf..14bc56ad3856 100644
--- a/srcpkgs/colord/template
+++ b/srcpkgs/colord/template
@@ -17,6 +17,7 @@ license="GPL-2.0-only"
 homepage="https://www.freedesktop.org/software/colord"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
 checksum=b774ea443d239f4a2ee1853bd678426e669ddeda413dcb71cea1638c4d6c5e17
+patch_args=-Np0
 
 system_accounts="colord"
 colord_homedir="/var/lib/colord"
diff --git a/srcpkgs/commoncpp2/template b/srcpkgs/commoncpp2/template
index 181a6a9e07bf..ddbd6ba58363 100644
--- a/srcpkgs/commoncpp2/template
+++ b/srcpkgs/commoncpp2/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage='http://www.gnu.org/software/commoncpp/'
 distfiles="${GNU_SITE}/commoncpp/$pkgname-${version}.tar.gz"
 checksum="53ced4aff74e28a1d8018eb2b4974519028db3c12471ab6dff1c873578c9af4e"
+patch_args=-Np0
 
 commoncpp2-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/connman-ncurses/template b/srcpkgs/connman-ncurses/template
index 5fd4b33b08fc..0d2f48a12e24 100644
--- a/srcpkgs/connman-ncurses/template
+++ b/srcpkgs/connman-ncurses/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/eurogiciel-oss/connman-json-client"
 distfiles="https://github.com/eurogiciel-oss/connman-json-client/archive/v${version}.tar.gz"
 checksum=724604787b51cd3bd2ba5d2291f5f2efe0558a1ec78d92d3c92ebc78f6c63219
+patch_args=-Np0
 
 pre_configure() {
 	mkdir -p m4
diff --git a/srcpkgs/containers.image/template b/srcpkgs/containers.image/template
index f587e0ef3640..d292c68747b7 100644
--- a/srcpkgs/containers.image/template
+++ b/srcpkgs/containers.image/template
@@ -11,6 +11,7 @@ license="Apache-2.0"
 homepage="https://github.com/containers/image"
 distfiles="https://github.com/containers/image/archive/v${version}.tar.gz"
 checksum=99440d59728ed741e6171046cf3a6a820c2e3414cd9c17ee640efd289a015c3f
+patch_args=-Np0
 
 do_build() {
 	mkdir -p build
diff --git a/srcpkgs/coreboot-utils/template b/srcpkgs/coreboot-utils/template
index 4eec377ecea6..3f161fe47556 100644
--- a/srcpkgs/coreboot-utils/template
+++ b/srcpkgs/coreboot-utils/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://coreboot.org"
 distfiles="https://coreboot.org/releases/coreboot-${version}.tar.xz"
 checksum=4779da645a25ddebc78f1bd2bd0b740fb1e6479572648d4650042a2b9502856a
+patch_args=-Np0
 
 do_build() {
 	for util in cbfstool cbmem ectool ifdtool inteltool intelmetool \
diff --git a/srcpkgs/coreutils/template b/srcpkgs/coreutils/template
index b9148c854960..fd25f8220a78 100644
--- a/srcpkgs/coreutils/template
+++ b/srcpkgs/coreutils/template
@@ -11,6 +11,7 @@ homepage="https://www.gnu.org/software/coreutils"
 changelog="https://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob_plain;f=NEWS;hb=HEAD"
 distfiles="${GNU_SITE}/coreutils/coreutils-${version}.tar.xz"
 checksum=4458d8de7849df44ccab15e16b1548b285224dbba5f08fac070c1c0e0bcc4cfa
+patch_args=-Np0
 
 replaces="chroot-coreutils>=0 coreutils-doc>=0 b2sum>=0"
 
diff --git a/srcpkgs/coturn/template b/srcpkgs/coturn/template
index edfb526f4967..1f662c41f17b 100644
--- a/srcpkgs/coturn/template
+++ b/srcpkgs/coturn/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/coturn/coturn"
 distfiles="https://github.com/coturn/coturn/archive/${version}.tar.gz"
 checksum=4ff1f8c041ac71445018d81321d4b66e5dce4f171ef73a348d858dc9a0cc1cce
+patch_args=-Np0
 
 post_patch() {
 	# LibreSSL does not support FIPS mode
diff --git a/srcpkgs/cpuburn/template b/srcpkgs/cpuburn/template
index a215520fb764..735ecbcba22b 100644
--- a/srcpkgs/cpuburn/template
+++ b/srcpkgs/cpuburn/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="https://launchpad.net/ubuntu/+source/cpuburn/"
 distfiles="https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${version}.orig.tar.gz"
 checksum=eb191ce9bfbf453d30c218c3419573df102a3588f96c4a43686c84bb9da4bed6
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/cpulimit/template b/srcpkgs/cpulimit/template
index 9fbf6eccf66c..f1a756a81a70 100644
--- a/srcpkgs/cpulimit/template
+++ b/srcpkgs/cpulimit/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/opsengine/cpulimit"
 distfiles="https://github.com/opsengine/${pkgname}/archive/v${version}.tar.gz"
 checksum=64312f9ac569ddcadb615593cd002c94b76e93a0d4625d3ce1abb49e08e2c2da
+patch_args=-Np0
 
 pre_build() {
 	export CFLAGS="$CFLAGS $LDFLAGS"
diff --git a/srcpkgs/criu/template b/srcpkgs/criu/template
index c9f68933e756..2c9eda89e078 100644
--- a/srcpkgs/criu/template
+++ b/srcpkgs/criu/template
@@ -18,6 +18,7 @@ homepage="http://criu.org/"
 distfiles="https://download.openvz.org/criu/criu-${version}.tar.bz2"
 checksum=f63f30188b84e9a611429f732381f27e37c60cde0afc9821600f8597d21e39cb
 nocross="fails to run protobuf internals"
+patch_args=-Np0
 
 do_install() {
 	make DESTDIR=${DESTDIR} PREFIX=/usr LOGROTATEDIR=/etc/logrotate.d \
diff --git a/srcpkgs/crossguid/template b/srcpkgs/crossguid/template
index c846590103fa..acec95753554 100644
--- a/srcpkgs/crossguid/template
+++ b/srcpkgs/crossguid/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://github.com/graeme-hill/crossguid"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=48321928473c682b0cdc7e17bbd3390f79f4b98ab22fef3b81a852dda81fd195
+patch_args=-Np0
 
 do_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/crypto++/template b/srcpkgs/crypto++/template
index b524377319ea..ecc5291e1b3f 100644
--- a/srcpkgs/crypto++/template
+++ b/srcpkgs/crypto++/template
@@ -14,6 +14,7 @@ license="BSL-1.0"
 homepage="http://www.cryptopp.com/"
 distfiles="https://github.com/weidai11/cryptopp/archive/CRYPTOPP_${version//./_}.tar.gz"
 checksum=63304c6f943f435a4e385273e15abb69cff3b85a44663150bf5a6069b84abd43
+patch_args=-Np0
 
 CXXFLAGS="-DNDEBUG -fPIC"
 
diff --git a/srcpkgs/csound/template b/srcpkgs/csound/template
index f02f97bc6325..d38bf3627200 100644
--- a/srcpkgs/csound/template
+++ b/srcpkgs/csound/template
@@ -18,6 +18,7 @@ license="LGPL-2.1-or-later"
 homepage="https://csound.com/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=d47ed0fb70c752cb06ee2655ee9f010d8d1e369fc73d09d2ac2bc1b3060bf724
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 CXXFLAGS="-Wno-error -fcommon"
diff --git a/srcpkgs/csync2/template b/srcpkgs/csync2/template
index f8738551c270..1b16f75c10ee 100644
--- a/srcpkgs/csync2/template
+++ b/srcpkgs/csync2/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://oss.linbit.com/csync2/"
 distfiles="https://github.com/LINBIT/csync2/archive/csync2-$version.tar.gz"
 checksum=a1c6b0364eb9f19986a92fccd369bae29aa5aa55300e0664dadaf80d80de23ff
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ctags/template b/srcpkgs/ctags/template
index 56b3c3dfdfa8..2395dacd8208 100644
--- a/srcpkgs/ctags/template
+++ b/srcpkgs/ctags/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://ctags.io/"
 distfiles="https://github.com/universal-ctags/ctags/archive/p${version}.tar.gz"
 checksum=26d9efe481a57e81195878cdb0baca730a3c4d234b9a7c4f6bf2c8def42bf42b
+patch_args=-Np0
 
 do_configure() {
 	./autogen.sh
diff --git a/srcpkgs/cubieboard2-uboot/template b/srcpkgs/cubieboard2-uboot/template
index 23f63f574f00..8861e5c7b174 100644
--- a/srcpkgs/cubieboard2-uboot/template
+++ b/srcpkgs/cubieboard2-uboot/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="http://www.denx.de/wiki/U-Boot/WebHome"
 distfiles="ftp://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2"
 checksum=45813e6565dcc0436abe6752624324cdbf5f3ac106570d76d32b46ec529bcdc8
+patch_args=-Np0
 
 archs="armv7l*"
 
diff --git a/srcpkgs/cuetools/template b/srcpkgs/cuetools/template
index 7e039c051c73..8eb6785e684e 100644
--- a/srcpkgs/cuetools/template
+++ b/srcpkgs/cuetools/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/svend/cuetools"
 distfiles="https://github.com/svend/${pkgname}/archive/${version}.tar.gz"
 checksum=24a2420f100c69a6539a9feeb4130d19532f9f8a0428a8b9b289c6da761eb107
+patch_args=-Np0
 
 pre_configure() {
 	aclocal
diff --git a/srcpkgs/cups-pdf/template b/srcpkgs/cups-pdf/template
index 897437df779b..b8339fc1bf21 100644
--- a/srcpkgs/cups-pdf/template
+++ b/srcpkgs/cups-pdf/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.cups-pdf.de/"
 distfiles="https://www.cups-pdf.de/src/${pkgname}_${version}.tar.gz"
 checksum=738669edff7f1469fe5e411202d87f93ba25b45f332a623fb607d49c59aa9531
+patch_args=-Np0
 
 do_build() {
 	$CC $CFLAGS -o $pkgname src/cups-pdf.c -lcups ${LDFLAGS}
diff --git a/srcpkgs/cups/template b/srcpkgs/cups/template
index 66204733fa86..9520c2240a0a 100644
--- a/srcpkgs/cups/template
+++ b/srcpkgs/cups/template
@@ -17,6 +17,7 @@ license="Apache-2.0"
 homepage="https://github.com/OpenPrinting/cups"
 distfiles="https://github.com/OpenPrinting/cups/releases/download/v${version}/cups-${version}-source.tar.gz"
 checksum=deb3575bbe79c0ae963402787f265bfcf8d804a71fc2c94318a74efec86f96df
+patch_args=-Np0
 
 conf_files="/etc/pam.d/cups /etc/cups/*.conf /etc/xinetd.d/cups-lpd"
 make_dirs="
diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index e138e37605db..adb5f59e0aad 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -14,6 +14,7 @@ license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
 checksum=7e1e408f269a604418f37575ba8ef5f69323bebc4dd7f3091c1c2e9b000ffcbf
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/cutemarked/template b/srcpkgs/cutemarked/template
index 39f15d81ea08..ddf409fb9a76 100644
--- a/srcpkgs/cutemarked/template
+++ b/srcpkgs/cutemarked/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://cloose.github.io/CuteMarkEd/"
 distfiles="https://github.com/cloose/${pkgname}/archive/v${version}.tar.gz"
 checksum=78a41808c2f0452375810abdff76eeaaee012f8d1368a2b8772ec6b4d2ceeec8
+patch_args=-Np0
 
 pre_build() {
 	lrelease app/app.pro
diff --git a/srcpkgs/cvsps2/template b/srcpkgs/cvsps2/template
index 1bf720a7774c..b80618d32173 100644
--- a/srcpkgs/cvsps2/template
+++ b/srcpkgs/cvsps2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://cvsps.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/cvsps/cvsps-${version}.tar.gz"
 checksum=91d3198b33463861a581686d5fcf99a5c484e7c4d819384c04fda9cafec1075a
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/linux/__GLIBC__/g' cbtcommon/text_util.c
diff --git a/srcpkgs/daemontools/template b/srcpkgs/daemontools/template
index 5999e2e426ac..f3efebc6eeec 100644
--- a/srcpkgs/daemontools/template
+++ b/srcpkgs/daemontools/template
@@ -12,6 +12,7 @@ homepage="http://cr.yp.to/daemontools.html"
 distfiles="http://cr.yp.to/daemontools/${pkgname}-${version}.tar.gz http://smarden.org/pape/djb/manpages/daemontools-0.76-man-20020131.tar.gz"
 checksum="a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f
  1b4d77afe0878a0df587672531a3f7bbe0feb7ad0e9acf50395426e3c434600a"
+patch_args=-Np0
 
 post_install() {
 	for m in $XBPS_BUILDDIR/daemontools-man/*.8; do
diff --git a/srcpkgs/dante/template b/srcpkgs/dante/template
index 17fe0f69ae60..62b5f04f9a47 100644
--- a/srcpkgs/dante/template
+++ b/srcpkgs/dante/template
@@ -10,6 +10,7 @@ license="MIT-CMU"
 homepage="http://www.inet.no/dante/index.html"
 distfiles="http://www.inet.no/dante/files/dante-${version}.tar.gz"
 checksum=4c97cff23e5c9b00ca1ec8a95ab22972813921d7fbf60fc453e3e06382fc38a7
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
 	configure_args="--with-libc=libc.so.6"
diff --git a/srcpkgs/dar/template b/srcpkgs/dar/template
index c289909e8122..ec40334f51f9 100644
--- a/srcpkgs/dar/template
+++ b/srcpkgs/dar/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://dar.linux.free.fr/"
 distfiles="${SOURCEFORGE_SITE}/dar/dar-${version}.tar.gz"
 checksum=3fea9ff9e55fb9827e17a080de7d1a2605b82c2320c0dec969071efefdbfd097
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --with-gpgme-prefix=${XBPS_CROSS_BASE}/usr
diff --git a/srcpkgs/darkplaces/template b/srcpkgs/darkplaces/template
index 9e282a061057..cb5f7671d680 100644
--- a/srcpkgs/darkplaces/template
+++ b/srcpkgs/darkplaces/template
@@ -12,6 +12,7 @@ license="GPL-2"
 homepage="http://icculus.org/twilight/darkplaces/"
 distfiles="http://icculus.org/twilight/$pkgname/files/darkplacesengine${version}.zip"
 checksum=69e5a50991884196e403bd6aab4a33bba553a934a167be366672ab4e223b06c9
+patch_args=-Np0
 
 post_extract() {
 	# Extract the real source code.
diff --git a/srcpkgs/darktable/template b/srcpkgs/darktable/template
index 24f17d36dda8..6b3d09a1c0a8 100644
--- a/srcpkgs/darktable/template
+++ b/srcpkgs/darktable/template
@@ -23,6 +23,7 @@ homepage="http://www.darktable.org/"
 changelog="https://github.com/darktable-org/darktable/releases"
 distfiles="https://github.com/darktable-org/darktable/releases/download/release-${version}/darktable-${version}.tar.xz"
 checksum=7fc3f851da9bcd7c5053ecd09f21aa3eb6103be98a6c58f52010b6f22174941e
+patch_args=-Np0
 
 build_options="gmic"
 
diff --git a/srcpkgs/dash/template b/srcpkgs/dash/template
index d966b55956b7..34375cdca66f 100644
--- a/srcpkgs/dash/template
+++ b/srcpkgs/dash/template
@@ -11,6 +11,7 @@ homepage="http://gondor.apana.org.au/~herbert/dash/"
 distfiles="http://gondor.apana.org.au/~herbert/dash/files/$pkgname-$version.tar.gz"
 checksum=4e15b7ba5363bcc2a443549910cdc15b5ad601df8196b5f294c712eff037e08d
 register_shell="/usr/bin/sh /usr/bin/dash /bin/sh /bin/dash"
+patch_args=-Np0
 
 alternatives="
  sh:sh:/usr/bin/dash
diff --git a/srcpkgs/davfs2/template b/srcpkgs/davfs2/template
index 01eb6336fc4f..0b38a2b6f8c4 100644
--- a/srcpkgs/davfs2/template
+++ b/srcpkgs/davfs2/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://savannah.nongnu.org/projects/davfs2"
 distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=2e6b675685bd917772be60f0999ae098c80f79ff20dc131e8fec4547cbb63b50
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index 2d340913b04b..217e0eb01397 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,7 @@ license="BSD-4-Clause"
 homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.html"
 distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
 checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+patch_args=-Np0
 
 post_install() {
 	chmod 755 ${DESTDIR}/usr/bin/*
diff --git a/srcpkgs/dbus-glib/template b/srcpkgs/dbus-glib/template
index ee905b75bfe6..3a273bea56b5 100644
--- a/srcpkgs/dbus-glib/template
+++ b/srcpkgs/dbus-glib/template
@@ -13,6 +13,7 @@ license="GPL-2"
 homepage="http://www.freedesktop.org/wiki/Software/DBusBindings"
 distfiles="http://dbus.freedesktop.org/releases/$pkgname/$pkgname-$version.tar.gz"
 checksum=7ce4760cf66c69148f6bd6c92feaabb8812dee30846b24cd0f7395c436d7e825
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --with-dbus-binding-tool=dbus-binding-tool"
diff --git a/srcpkgs/dcraw/template b/srcpkgs/dcraw/template
index 67cb2f426ef1..e05e4f27e3b7 100644
--- a/srcpkgs/dcraw/template
+++ b/srcpkgs/dcraw/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.dechifro.org/dcraw/"
 distfiles="https://www.dechifro.org/dcraw/archive/${pkgname}-${version}.tar.gz"
 checksum=2890c3da2642cd44c5f3bfed2c9b2c1db83da5cec09cc17e0fa72e17541fb4b9
+patch_args=-Np0
 
 do_build() {
 	$CC $CFLAGS $LDFLAGS \
diff --git a/srcpkgs/dcron/template b/srcpkgs/dcron/template
index eb975fd13a30..e7333970c76f 100644
--- a/srcpkgs/dcron/template
+++ b/srcpkgs/dcron/template
@@ -11,6 +11,7 @@ changelog="https://raw.githubusercontent.com/dubiousjim/dcron/v${version}/CHANGE
 distfiles="https://github.com/dubiousjim/dcron/archive/v${version}.tar.gz"
 checksum=7c047194b9339b781971b000bf5512c11e856d20a14fe5323d5a1823f04c2a3f
 provides="cron-daemon-0_1"
+patch_args=-Np0
 
 alternatives="
  crond:crond:/etc/sv/dcron
diff --git a/srcpkgs/deadbeef-fb/template b/srcpkgs/deadbeef-fb/template
index c62ae6fc7b40..ae67fbb103f4 100644
--- a/srcpkgs/deadbeef-fb/template
+++ b/srcpkgs/deadbeef-fb/template
@@ -17,6 +17,7 @@ distfiles="https://gitlab.com/zykure/${pkgname}/repository/${_commit}/archive.ta
 checksum=19a0c2ea3743926e71f9b20f616ff5bdbfd9839a553b33cc192dfed7bed3cb1d
 build_options="gtk3"
 build_options_default="gtk3"
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/deadbeef/template b/srcpkgs/deadbeef/template
index 5666c1d97c92..a070c45c9a26 100644
--- a/srcpkgs/deadbeef/template
+++ b/srcpkgs/deadbeef/template
@@ -26,6 +26,7 @@ checksum="cbfe873d5bd84b70011dd6131b249fea8c89318c37411696a890c55029ac3e27
  c5eeb3fa116d51d251fe7c7e5c44798680f6478c43a1fffdcb28c4caf1c68286
  35b58679dbfec2c3a2688b1896afb0fb73b5184ac05d5bdbb787a86b5c00430d"
 LDFLAGS+=" -Wl,-z,stack-size=1048576"
+patch_args=-Np0
 
 # The soundtouchup plugin was made default in 1.8.4 and fails to build on i686.
 # Fixing that might be a good maintainer task.
diff --git a/srcpkgs/debug-me/template b/srcpkgs/debug-me/template
index 3df514e0be48..e6f9059f38c9 100644
--- a/srcpkgs/debug-me/template
+++ b/srcpkgs/debug-me/template
@@ -12,6 +12,7 @@ distfiles="https://git.joeyh.name/index.cgi/${pkgname}.git/snapshot/${pkgname}-$
 checksum=9497dc9b85a58e5c499ea25fa1bed9f4fd6cdd2f57564f52a0e4152ad4fdc102
 nocross=yes # Can't yet cross compile Haskell
 nopie_files="/usr/bin/debug-me"
+patch_args=-Np0
 
 post_install() {
 	vlicense AGPL
diff --git a/srcpkgs/desmume/template b/srcpkgs/desmume/template
index 3afaa5027f74..db37ee4a51b5 100644
--- a/srcpkgs/desmume/template
+++ b/srcpkgs/desmume/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.desmume.org"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=3ab34ba6cc009566245025c1dd94bf449b6a1b416d24387cb42e183c78e38896
+patch_args=-Np0
 
 post_extract() {
 	# git eats CRLFs, so the patch has wrong line ending. Instead
diff --git a/srcpkgs/devil/template b/srcpkgs/devil/template
index 1dffc7bdd52c..1a76819b665a 100644
--- a/srcpkgs/devil/template
+++ b/srcpkgs/devil/template
@@ -16,6 +16,7 @@ distfiles="${SOURCEFORGE_SITE}/openil/DevIL-${version}.tar.gz"
 checksum=0075973ee7dd89f0507873e2580ac78336452d29d34a07134b208f44e2feb709
 # The examples subpkg is gone
 replaces="devil-examples<1.8.0"
+patch_args=-Np0
 
 devil-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/dhcp/template b/srcpkgs/dhcp/template
index 2db18dcc60b0..a466f6607a2e 100644
--- a/srcpkgs/dhcp/template
+++ b/srcpkgs/dhcp/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="https://www.isc.org/downloads/dhcp"
 distfiles="http://ftp.isc.org/isc/dhcp/${version/P/-P}/dhcp-${version/P/-P}.tar.gz"
 checksum=b05e04337539545a8faa0d6ac518defc61a07e5aec66a857f455e7f218c85a1a
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/dhcpcd/template b/srcpkgs/dhcpcd/template
index e651bd019067..dbd6f288fbb7 100644
--- a/srcpkgs/dhcpcd/template
+++ b/srcpkgs/dhcpcd/template
@@ -17,6 +17,7 @@ distfiles="https://roy.marples.name/downloads/dhcpcd/dhcpcd-${version}.tar.xz"
 checksum=41a69297f380bf15ee8f94f73154f8c2bca7157a087c0d5aca8de000ba1d4513
 lib32disabled=yes
 conf_files=/etc/dhcpcd.conf
+patch_args=-Np0
 
 system_accounts="_dhcpcd"
 _dhcpcd_homedir="/var/db/dhcpcd"
diff --git a/srcpkgs/dia/template b/srcpkgs/dia/template
index 45f48aab4dcf..62af8fcba806 100644
--- a/srcpkgs/dia/template
+++ b/srcpkgs/dia/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Dia"
 distfiles="${GNOME_SITE}/dia/${version%.*}/dia-${version}.tar.xz"
 checksum=22914e48ef48f894bb5143c5efc3d01ab96e0a0cde80de11058d3b4301377d34
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/diod/template b/srcpkgs/diod/template
index de62d6c62b71..548e1f9f0540 100644
--- a/srcpkgs/diod/template
+++ b/srcpkgs/diod/template
@@ -12,6 +12,7 @@ license="GPL-2"
 homepage="https://github.com/chaos/diod"
 distfiles="https://github.com/chaos/diod/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=f41d2b91c1a712132f5457d9d1c3caca985f069bdc8ef27bf4c148ac1d9f8c9f
+patch_args=-Np0
 
 post_install() {
 	vsv diod
diff --git a/srcpkgs/discord-ptb/template b/srcpkgs/discord-ptb/template
index b1467a7dc267..35bd7f20fa24 100644
--- a/srcpkgs/discord-ptb/template
+++ b/srcpkgs/discord-ptb/template
@@ -16,6 +16,7 @@ _license_checksum=9abbd207c86f76a59c0017c131dc7a30089c40b4dacb54a0f339272468344e
 nopie=yes
 restricted=yes
 repository=nonfree
+patch_args=-Np0
 
 post_extract() {
 	$XBPS_FETCH_CMD -o eula https://discord.com/terms; cat eula |
diff --git a/srcpkgs/discord/template b/srcpkgs/discord/template
index fc6a70079d8b..17f259b82067 100644
--- a/srcpkgs/discord/template
+++ b/srcpkgs/discord/template
@@ -14,6 +14,7 @@ checksum=adede954e9c696d96e254759b539527a24ab1d42f0d548c5c4309d1a3fc3c25e
 repository=nonfree
 restricted=yes
 nopie=yes
+patch_args=-Np0
 
 do_install() {
 	local package_location="usr/lib/$pkgname" item
diff --git a/srcpkgs/discount/template b/srcpkgs/discount/template
index d47f46518415..3bee85895390 100644
--- a/srcpkgs/discount/template
+++ b/srcpkgs/discount/template
@@ -12,6 +12,7 @@ homepage="http://www.pell.portland.or.us/~orc/Code/discount"
 distfiles="https://github.com/Orc/discount/archive/v${version}.tar.gz"
 checksum=72c1325ddfc40871d6810f1e272cf2d45b361f26357eb38f170fd04d737bb9f2
 disable_parallel_build=yes
+patch_args=-Np0
 
 do_install() {
 	make DESTDIR=${DESTDIR} install install.man
diff --git a/srcpkgs/dispcalGUI/template b/srcpkgs/dispcalGUI/template
index 1bb51316a5d1..6e86a157729e 100644
--- a/srcpkgs/dispcalGUI/template
+++ b/srcpkgs/dispcalGUI/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://displaycal.net/"
 distfiles="${SOURCEFORGE_SITE}/dispcalgui/${_name}-${version}.tar.gz"
 checksum=7c34dfbd9f66f24f1d4c88de4a5a0de688aad719f095874b6259637d30893bea
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's|MimeType=model/vrml;x-world/x-vrml;|MimeType=model/vrml;|' misc/displaycal-vrml-to-x3d-converter.desktop
diff --git a/srcpkgs/djview/template b/srcpkgs/djview/template
index 76a0d1cc4103..bade9c6f96bc 100644
--- a/srcpkgs/djview/template
+++ b/srcpkgs/djview/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://djvu.sourceforge.net/djview4.html"
 distfiles="${SOURCEFORGE_SITE}/djvu/${pkgname}-${version}.tar.gz"
 checksum=5673c6a8b7e195b91a1720b24091915b8145de34879db1158bc936b100eaf3e3
+patch_args=-Np0
 
 post_extract() {
 	vsed -i -e '/Exec/s/djview4/djview/' \
diff --git a/srcpkgs/dma/template b/srcpkgs/dma/template
index 71892496013f..5ec809adcf71 100644
--- a/srcpkgs/dma/template
+++ b/srcpkgs/dma/template
@@ -13,6 +13,7 @@ homepage="https://github.com/corecode/dma"
 distfiles="https://github.com/corecode/dma/archive/v${version}.tar.gz"
 checksum=9d4b903f2b750d888f51d668d08d2ea18404dedb0a52cffeb3c81376023c1946
 system_accounts="mail"
+patch_args=-Np0
 
 provides="smtp-server-0_1 smtp-forwarder-0_1"
 replaces="smtp-server>=0 smtp-forwarder>=0"
diff --git a/srcpkgs/dmd-bootstrap/template b/srcpkgs/dmd-bootstrap/template
index 029b0024faea..1a7c483982f1 100644
--- a/srcpkgs/dmd-bootstrap/template
+++ b/srcpkgs/dmd-bootstrap/template
@@ -21,6 +21,7 @@ checksum="
  7f4d84f2b5252c0cc33bffbb4de8aab9321df844b8512e27e90267cbb9bc7422
  57306f80a63b83b755043d05e85e83cf3178701c92d295c97d1a5a8be8ffce19"
 provides="d-compiler-${version}_${revision}"
+patch_args=-Np0
 
 post_extract() {
 	rm -rf dmd druntime phobos
diff --git a/srcpkgs/dmd2.081/template b/srcpkgs/dmd2.081/template
index 79aad0940085..f33ef534d0e7 100644
--- a/srcpkgs/dmd2.081/template
+++ b/srcpkgs/dmd2.081/template
@@ -24,6 +24,7 @@ provides="d-compiler-${version}_${revision}"
 conflicts="dmd-bootstrap"
 nopie=yes
 LDFLAGS="-lpthread"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _archbits=64;;
diff --git a/srcpkgs/dmd2.091/template b/srcpkgs/dmd2.091/template
index 72521df7cd3f..13e976b57a41 100644
--- a/srcpkgs/dmd2.091/template
+++ b/srcpkgs/dmd2.091/template
@@ -26,6 +26,7 @@ nopie=yes
 nocross=yes
 disable_parallel_build=yes
 LDFLAGS="-lpthread"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _archbits=64;;
diff --git a/srcpkgs/dmraid/template b/srcpkgs/dmraid/template
index 420749bc8aa6..5e51fa6f224b 100644
--- a/srcpkgs/dmraid/template
+++ b/srcpkgs/dmraid/template
@@ -17,6 +17,7 @@ distfiles="${homepage}/src/dmraid-${_distver}-${_patchver}.tar.bz2"
 checksum=93421bd169d71ff5e7d2db95b62b030bfa205a12010b6468dcdef80337d6fbd8
 disable_parallel_build=yes
 lib32disabled=yes
+patch_args=-Np0
 
 dmraid-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/dmtx-utils/template b/srcpkgs/dmtx-utils/template
index b251f0a2061b..a38d7cfcb776 100644
--- a/srcpkgs/dmtx-utils/template
+++ b/srcpkgs/dmtx-utils/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/dmtx/dmtx-utils"
 distfiles="https://github.com/dmtx/dmtx-utils/archive/v${version}/dmtx-utils-${version}.tar.gz"
 checksum=0d396ec14f32a8cf9e08369a4122a16aa2e5fa1675e02218f16f1ab777ea2a28
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/docbook-xsl-ns/template b/srcpkgs/docbook-xsl-ns/template
index 04b3c274e510..1b88e629d0a7 100644
--- a/srcpkgs/docbook-xsl-ns/template
+++ b/srcpkgs/docbook-xsl-ns/template
@@ -13,6 +13,7 @@ homepage="https://docbook.org/"
 distfiles="https://github.com/docbook/xslt10-stylesheets/releases/download/release/${version}/${wrksrc}.tar.bz2"
 checksum=316524ea444e53208a2fb90eeb676af755da96e1417835ba5f5eb719c81fa371
 xml_entries="nextCatalog /usr/share/xsl-ns/docbook/catalog.xml --"
+patch_args=-Np0
 
 do_install() {
 	local xslmods="assembly common eclipse epub epub3 fo highlighting html \
diff --git a/srcpkgs/docbook-xsl/template b/srcpkgs/docbook-xsl/template
index 5cf9b0d5fc98..260eee70d6f0 100644
--- a/srcpkgs/docbook-xsl/template
+++ b/srcpkgs/docbook-xsl/template
@@ -13,6 +13,7 @@ homepage="https://docbook.org/"
 distfiles="https://github.com/docbook/xslt10-stylesheets/releases/download/release/${version}/${wrksrc}.tar.bz2"
 checksum=ee8b9eca0b7a8f89075832a2da7534bce8c5478fc8fc2676f512d5d87d832102
 xml_entries="nextCatalog /usr/share/xsl/docbook/catalog.xml --"
+patch_args=-Np0
 
 do_install() {
 	local xslmods="assembly common eclipse epub epub3 fo highlighting html \
diff --git a/srcpkgs/dolphin-emu/template b/srcpkgs/dolphin-emu/template
index 729f66512d42..fdd4a636e7a5 100644
--- a/srcpkgs/dolphin-emu/template
+++ b/srcpkgs/dolphin-emu/template
@@ -22,6 +22,7 @@ homepage="http://dolphin-emu.org"
 distfiles="https://github.com/dolphin-emu/dolphin/archive/${_commit}.tar.gz"
 checksum=a7ce8390993b3309108dea8f23976b343d2d7cd527f3ded9ef4c2a0462c7f338
 nopie=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|aarch64*) ;;
diff --git a/srcpkgs/dovecot/template b/srcpkgs/dovecot/template
index 0222fd25026c..fddc5c1649db 100644
--- a/srcpkgs/dovecot/template
+++ b/srcpkgs/dovecot/template
@@ -21,6 +21,7 @@ homepage="https://dovecot.org/"
 distfiles="${homepage}/releases/2.3/${pkgname}-${version}.tar.gz"
 checksum=c8b3d7f3af1e558a3ff0f970309d4013a4d3ce136f8c02a53a3b05f345b9a34a
 keep_libtool_archives=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	_tsize=${XBPS_TARGET_WORDSIZE}
diff --git a/srcpkgs/doxygen/template b/srcpkgs/doxygen/template
index 051c1568bbb2..f86d771cb360 100644
--- a/srcpkgs/doxygen/template
+++ b/srcpkgs/doxygen/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.doxygen.org/"
 distfiles="http://doxygen.nl/files/doxygen-${version}.src.tar.gz"
 checksum=67aeae1be4e1565519898f46f1f7092f1973cce8a767e93101ee0111717091d1
+patch_args=-Np0
 
 build_options="wizard"
 desc_option_wizard="build Qt5 GUI configuration tool, doxywizard"
diff --git a/srcpkgs/dpdk/template b/srcpkgs/dpdk/template
index 0f74b4c99d64..acd23532f88c 100644
--- a/srcpkgs/dpdk/template
+++ b/srcpkgs/dpdk/template
@@ -18,6 +18,7 @@ distfiles="https://github.com/DPDK/${pkgname}/archive/v${version}.tar.gz"
 checksum=1ceff1a6f4f8d5f6f62c1682097249227ac5225ccd9638e0af09f5411c681038
 # import py3compat
 python_version=3
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	armv7l*) configure_args+=" -Dmachine=armv7-a";;
diff --git a/srcpkgs/dracut-crypt-ssh/template b/srcpkgs/dracut-crypt-ssh/template
index 1425d223052d..4a13f8ac5c1f 100644
--- a/srcpkgs/dracut-crypt-ssh/template
+++ b/srcpkgs/dracut-crypt-ssh/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/dracut-crypt-ssh/dracut-crypt-ssh"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=c50b57b16d4aea3707e1f3e86777fafdb1b3551f2f4b6c4de5576eeb3b2f6bbc
+patch_args=-Np0
 
 pre_configure() {
 	sed -i '111s/^/#/' configure
diff --git a/srcpkgs/dracut/template b/srcpkgs/dracut/template
index c8db2195c8a0..240e6661f2bf 100644
--- a/srcpkgs/dracut/template
+++ b/srcpkgs/dracut/template
@@ -17,6 +17,7 @@ checksum=d5a1b47cdb07919d8225d5b5f538e6ae604988f3df0afbde99a8dc775277b726
 subpackages="dracut-network"
 # Checks require distfiles come from a git repository
 make_check=no
+patch_args=-Np0
 
 make_dirs="
  /etc/dracut.conf.d 0755 root root
diff --git a/srcpkgs/drawterm/template b/srcpkgs/drawterm/template
index b871806e44e2..50dcbd25c798 100644
--- a/srcpkgs/drawterm/template
+++ b/srcpkgs/drawterm/template
@@ -11,6 +11,7 @@ license="LPL-1.02"
 homepage="http://drawterm.9front.org/"
 distfiles="https://code.9front.org/hg/${pkgname}/archive/${_hghash}.tar.gz"
 checksum=5740acc4f7eb8f0ea0524839847d993b7865d240070da69f7a28ca3b7aef6813
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	armv5*) CFLAGS+=" -DARMv5" ;;
diff --git a/srcpkgs/drbd-utils/template b/srcpkgs/drbd-utils/template
index 10574a2bee11..2b0963b34c1f 100644
--- a/srcpkgs/drbd-utils/template
+++ b/srcpkgs/drbd-utils/template
@@ -28,6 +28,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.drbd.org"
 distfiles="https://www.linbit.com/downloads/drbd/utils/${pkgname}-${version}.tar.gz"
 checksum=1102e2a2001a45685c2f4ce5cb14e5a8a099044f53389d38480b3a88f5db3fd1
+patch_args=-Np0
 
 # XXX mirror which is reachable from musl builders
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/dstat/template b/srcpkgs/dstat/template
index 9e9d9d3217ac..d23277b42bd1 100644
--- a/srcpkgs/dstat/template
+++ b/srcpkgs/dstat/template
@@ -11,6 +11,7 @@ homepage="http://dag.wiee.rs/home-made/dstat/"
 distfiles="https://github.com/dagwieers/dstat/archive/v${version}.tar.gz"
 checksum=4fbd58f3461c86d09a3ab97472aa204de37aa33d31a0493a3e5ed86a2045abea
 python_version="3"
+patch_args=-Np0
 
 do_install() {
 	make install DESTDIR=$DESTDIR
diff --git a/srcpkgs/dua-cli/template b/srcpkgs/dua-cli/template
index 4215cb087738..ef71afecf4d8 100644
--- a/srcpkgs/dua-cli/template
+++ b/srcpkgs/dua-cli/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/Byron/dua-cli"
 distfiles="https://github.com/Byron/dua-cli/archive/v${version}.tar.gz"
 checksum=2af2408eecca4a1a04d0d395322f110b97e49d5366eb435e2e0e36b8b92684bb
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/dumpet/template b/srcpkgs/dumpet/template
index 35204d8aa5e2..866d90e01bcc 100644
--- a/srcpkgs/dumpet/template
+++ b/srcpkgs/dumpet/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://tracker.debian.org/pkg/dumpet"
 distfiles="http://http.debian.net/debian/pool/main/d/dumpet/dumpet_${version}.orig.tar.bz2"
 checksum=2cc1fa3a1b06f885e4524d1be80bdacc5b6a55057d0577262f2f5186b49a4da3
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC CFLAGS="$CFLAGS -I${XBPS_CROSS_BASE}/usr/include/libxml2" \
diff --git a/srcpkgs/dunelegacy/template b/srcpkgs/dunelegacy/template
index b9373d6d47d0..2f87366e852f 100644
--- a/srcpkgs/dunelegacy/template
+++ b/srcpkgs/dunelegacy/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://dunelegacy.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}-src.tar.bz2"
 checksum=4740df9e94712b34f5d6fa1ca3c24658c4808b40431aa156ed66c318be9f4de8
+patch_args=-Np0
 
 post_install() {
 	vinstall dunelegacy.desktop 644 usr/share/applications
diff --git a/srcpkgs/duplicity/template b/srcpkgs/duplicity/template
index 85bfe1316380..5ca7c963de67 100644
--- a/srcpkgs/duplicity/template
+++ b/srcpkgs/duplicity/template
@@ -13,6 +13,7 @@ homepage="http://duplicity.nongnu.org/"
 changelog="http://duplicity.nongnu.org/vers8/CHANGELOG.md"
 distfiles="http://launchpad.net/duplicity/${version%.*}-series/${version}/+download/duplicity-${version}.tar.gz"
 checksum=2643fea0f52920a0fb114069c78389f9621f1c24db7f26bda77bbc239b01ae53
+patch_args=-Np0
 
 do_check() {
 	# Disable as tests don't work
diff --git a/srcpkgs/dust3d/template b/srcpkgs/dust3d/template
index 9ad934499983..ae6182905ced 100644
--- a/srcpkgs/dust3d/template
+++ b/srcpkgs/dust3d/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://dust3d.org/"
 distfiles="https://github.com/huxingyi/dust3d/archive/${_version}.tar.gz"
 checksum=7c29e1153e6b568459ab8a8fadbec3398a43b5d60f295018c3f0cdcad2d2b4b1
+patch_args=-Np0
 
 do_install() {
 	vbin dust3d
diff --git a/srcpkgs/dvd+rw-tools/template b/srcpkgs/dvd+rw-tools/template
index b3c996b8fc2f..29fac22fb794 100644
--- a/srcpkgs/dvd+rw-tools/template
+++ b/srcpkgs/dvd+rw-tools/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://fy.chalmers.se/~appro/linux/DVD+RW/"
 distfiles="http://fy.chalmers.se/~appro/linux/DVD+RW/tools/${pkgname}-${version}.tar.gz"
 checksum=f8d60f822e914128bcbc5f64fbe3ed131cbff9045dca7e12c5b77b26edde72ca
+patch_args=-Np0
 
 do_install() {
 	vbin growisofs
diff --git a/srcpkgs/dvdauthor/template b/srcpkgs/dvdauthor/template
index c4a81cd4aafe..499be371af64 100644
--- a/srcpkgs/dvdauthor/template
+++ b/srcpkgs/dvdauthor/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://dvdauthor.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/dvdauthor/dvdauthor-${version}.tar.gz"
 checksum="3020a92de9f78eb36f48b6f22d5a001c47107826634a785a62dfcd080f612eb7"
+patch_args=-Np0
 
 build_options="NTSC PAL"
 build_options_default="PAL"
diff --git a/srcpkgs/e2fsprogs/template b/srcpkgs/e2fsprogs/template
index ada38513b984..3ba60e34d293 100644
--- a/srcpkgs/e2fsprogs/template
+++ b/srcpkgs/e2fsprogs/template
@@ -19,6 +19,7 @@ homepage="http://e2fsprogs.sourceforge.net/"
 distfiles="${KERNEL_SITE}/kernel/people/tytso/e2fsprogs/v${version}/e2fsprogs-${version}.tar.xz"
 checksum=23aa093295c94e71ef1be490c4004871c5b01d216a8cb4d111fa6c0aac354168
 conf_files="/etc/mke2fs.conf /etc/e2scrub.conf"
+patch_args=-Np0
 
 do_check() {
 	ln -sfv /tools/lib/lib{blk,uu}id.so.1 lib
diff --git a/srcpkgs/eb/template b/srcpkgs/eb/template
index 9e71add969a7..6a2c71df08e9 100644
--- a/srcpkgs/eb/template
+++ b/srcpkgs/eb/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/2ion/eb"
 distfiles="https://github.com/2ion/eb/archive/${version}.tar.gz"
 checksum=16274f4d5ec34cc37ed308927390a1d0d09e0e6a2b35fbff7d17aacca0524a37
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/eboard/template b/srcpkgs/eboard/template
index 187fdd3651bf..c6d7fa2a681b 100644
--- a/srcpkgs/eboard/template
+++ b/srcpkgs/eboard/template
@@ -12,6 +12,7 @@ homepage="http://www.bergo.eng.br/eboard"
 distfiles="https://github.com/fbergo/eboard/archive/v${version}.tar.gz"
 checksum=2a1ba23a27c94ee4ec167bb31ab7dd6eedf148e139c9a96e8cb5ac36ec8423c1
 broken="ELF in /usr/share"
+patch_args=-Np0
 
 pre_install() {
 	mkdir -p "${DESTDIR}/usr/share/eboard"
diff --git a/srcpkgs/ecl/template b/srcpkgs/ecl/template
index a4e160c15bed..06d2acb9333d 100644
--- a/srcpkgs/ecl/template
+++ b/srcpkgs/ecl/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="https://common-lisp.net/project/ecl/"
 distfiles="https://common-lisp.net/project/ecl/static/files/release/ecl-${version}.tgz"
 checksum=76a585c616e8fa83a6b7209325a309da5bc0ca68e0658f396f49955638111254
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# Depend on system ecl
diff --git a/srcpkgs/ecryptfs-utils/template b/srcpkgs/ecryptfs-utils/template
index 6bdc07b97c32..72e1050a2516 100644
--- a/srcpkgs/ecryptfs-utils/template
+++ b/srcpkgs/ecryptfs-utils/template
@@ -17,6 +17,7 @@ homepage="http://ecryptfs.org/"
 distfiles="http://launchpad.net/ecryptfs/trunk/${version}/+download/${pkgname}_${version}.orig.tar.gz"
 checksum=112cb3e37e81a1ecd8e39516725dec0ce55c5f3df6284e0f4cc0f118750a987f
 lib32disabled=yes
+patch_args=-Np0
 
 CPPFLAGS="-D_FILE_OFFSET_BITS=64 -I${XBPS_CROSS_BASE}/usr/include/python2.7"
 
diff --git a/srcpkgs/efibootmgr/template b/srcpkgs/efibootmgr/template
index bd2e88bbbeac..7acb1f7500b6 100644
--- a/srcpkgs/efibootmgr/template
+++ b/srcpkgs/efibootmgr/template
@@ -11,6 +11,7 @@ homepage="https://github.com/rhinstaller/efibootmgr"
 distfiles="https://github.com/rhinstaller/efibootmgr/releases/download/${version}/${pkgname}-${version}.tar.bz2"
 distfiles="https://github.com/rhboot/efibootmgr/archive/${version}.tar.gz"
 checksum=22a95ebe0d5c9fb2915b3a100450f8f37484d1dbb8b296f55b343cc84f10397d
+patch_args=-Np0
 
 conf_files="/etc/default/efibootmgr-kernel-hook"
 
diff --git a/srcpkgs/efl/template b/srcpkgs/efl/template
index 8786d5d94edf..498040008735 100644
--- a/srcpkgs/efl/template
+++ b/srcpkgs/efl/template
@@ -56,6 +56,7 @@ changelog="https://git.enlightenment.org/core/efl.git/plain/NEWS"
 distfiles="https://download.enlightenment.org/rel/libs/efl/efl-${version}.tar.xz"
 checksum=351ca0211ca000234527a503585f039f985607ec9439e34b49d8b8bbf35a7e6b
 make_check=extended
+patch_args=-Np0
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -Dbuild-tests=true"
diff --git a/srcpkgs/electron10/template b/srcpkgs/electron10/template
index 0f2c83f6f483..9d6d3d0ef702 100644
--- a/srcpkgs/electron10/template
+++ b/srcpkgs/electron10/template
@@ -33,6 +33,7 @@ distfiles="https://github.com/electron/electron/archive/v$version.tar.gz>electro
 checksum="d75b78107656ef854cc99a967b225eeb1e5989c0a1307d9efad3f8039d387cd8
  e018547e54566410fb365d9f3dae10037c30fca5debe6ba8baceef3ad3b03d28
  dcd0a1e619ff326399ca8fd87f61c255f4d1e9bff47860064993f01e4ff37fe1"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*-musl) makedepends+=" libucontext-devel" ;;
diff --git a/srcpkgs/electron12/template b/srcpkgs/electron12/template
index 51c50b0f74ac..3f236d8decdb 100644
--- a/srcpkgs/electron12/template
+++ b/srcpkgs/electron12/template
@@ -34,6 +34,7 @@ distfiles="https://github.com/electron/electron/archive/v$version.tar.gz>electro
 checksum="1b4073baa3e93bb410591688b7ca6e59201ae9c8cf18f05e5a05ecfd7ffebfc8
  1a75ea6aeb98f2d3b6feae1fbf5692679e93d5b7631bc7c762dd873499deda5b
  bcdf869b0743405515ee897b1047b5e851a717e426b4974d26537c9b10dfd53a"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*-musl) makedepends+=" libucontext-devel" ;;
diff --git a/srcpkgs/elogind/template b/srcpkgs/elogind/template
index 8e9fb0ef6c81..bf02b6d0f530 100644
--- a/srcpkgs/elogind/template
+++ b/srcpkgs/elogind/template
@@ -22,6 +22,7 @@ checksum=dd2fcf22a89a078cad22e633d2f14a4cc9f4a9c8bae25c0e39fc4aec3e273bc9
 conf_files="/etc/elogind/*.conf"
 # tests fail differently due to containerization and kernel features
 make_check=ci-skip
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" -Dutmp=false"
diff --git a/srcpkgs/emerald/template b/srcpkgs/emerald/template
index 736828d1e670..e486c3a5757c 100644
--- a/srcpkgs/emerald/template
+++ b/srcpkgs/emerald/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/compiz-reloaded"
 distfiles="https://github.com/compiz-reloaded/emerald/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=53112b557c0d726ad75450b69df1649412ab5fcdf6c0827e383889f58bf437b1
+patch_args=-Np0
 
 pre_configure() {
 	mkdir -p m4
diff --git a/srcpkgs/endless-sky-gl21/template b/srcpkgs/endless-sky-gl21/template
index 5bb8355dc570..fe920ce65569 100644
--- a/srcpkgs/endless-sky-gl21/template
+++ b/srcpkgs/endless-sky-gl21/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/SolraBizna/endless-sky"
 distfiles="https://github.com/SolraBizna/endless-sky/archive/${_commit}.tar.gz"
 checksum=46918d0cc35aaeb1219194099223e3338245aa04aa3f29fd76e3376bf5779376
+patch_args=-Np0
 
 endless-sky-gl21-data_package() {
 	short_desc+=" - data files"
diff --git a/srcpkgs/engrampa/template b/srcpkgs/engrampa/template
index ac402d6fb4a9..3bf7459fc214 100644
--- a/srcpkgs/engrampa/template
+++ b/srcpkgs/engrampa/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=ee280d288c974732ec7bc2d1c3e18fa563b33a30f3e4cb3e976ebc71be6c4674
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/enigma/template b/srcpkgs/enigma/template
index d04fa5112492..861fec84d449 100644
--- a/srcpkgs/enigma/template
+++ b/srcpkgs/enigma/template
@@ -12,6 +12,7 @@ homepage="http://www.nongnu.org/enigma/"
 distfiles="${SOURCEFORGE_SITE}/enigma-game/Release%20${version}/${pkgname}-${version}.tar.gz"
 checksum=d872cf067d8eb560d3bb1cb17245814bc56ac3953ae1f12e2229c8eb6f82ce01
 replaces="enigma-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/SDL"
 
diff --git a/srcpkgs/enlightenment/template b/srcpkgs/enlightenment/template
index db9c886dc920..2ffabb259e5d 100644
--- a/srcpkgs/enlightenment/template
+++ b/srcpkgs/enlightenment/template
@@ -20,6 +20,7 @@ checksum=be18e2f18d6c0b058f633e769863d3cbc4c07b629058ae670dec74cd7906dff1
 lib32disabled=yes
 build_options="wayland"
 build_options_default="wayland"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" -a "$build_option_wayland" ]; then
 	hostmakedepends+=" wayland-devel"
diff --git a/srcpkgs/entr/template b/srcpkgs/entr/template
index fa608a4d0ddd..0e8f027eabe5 100644
--- a/srcpkgs/entr/template
+++ b/srcpkgs/entr/template
@@ -10,6 +10,7 @@ homepage="http://entrproject.org"
 changelog="https://raw.githubusercontent.com/eradman/entr/master/NEWS"
 distfiles="$homepage/code/$pkgname-$version.tar.gz"
 checksum=e256a4d2fbe46f6132460833ba447e65d7f35ba9d0b265e7c4150397cc4405a2
+patch_args=-Np0
 
 post_extract() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/enyo-doom/template b/srcpkgs/enyo-doom/template
index 9e900f2799a0..d529a514908e 100644
--- a/srcpkgs/enyo-doom/template
+++ b/srcpkgs/enyo-doom/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.com/sdcofer70/enyo-doom"
 distfiles="https://gitlab.com/sdcofer70/enyo-doom/-/archive/${version}/enyo-doom-${version}.tar.bz2"
 checksum=03d490081753dfd1d40b7cc8142b8f0e7642bad6f3d724f9ba9cfad0253f1a34
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/epdfview/template b/srcpkgs/epdfview/template
index 2c6b5774b49d..06d6a4fd4420 100644
--- a/srcpkgs/epdfview/template
+++ b/srcpkgs/epdfview/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://freshmeat.sourceforge.net/projects/epdfview"
 distfiles="http://anduin.linuxfromscratch.org/BLFS/epdfview/epdfview-${version}.tar.bz2"
 checksum=948648ae7c9d7b3b408d738bd4f48d87375b1196cae1129d6b846a8de0f2f8f0
+patch_args=-Np0
 
 post_install() {
 	for f in 24 32 48; do
diff --git a/srcpkgs/espeakup/template b/srcpkgs/espeakup/template
index 6cbc9d0da552..569162c6857e 100644
--- a/srcpkgs/espeakup/template
+++ b/srcpkgs/espeakup/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/williamh/espeakup"
 distfiles="https://github.com/williamh/espeakup/archive/v${version}.tar.gz"
 checksum="4de284e30b6bdb0f9dee9c8ea02d13a3d20a61415b812338446b8b381e997ef4"
+patch_args=-Np0
 
 post_install() {
 	vsv espeakup
diff --git a/srcpkgs/eukleides/template b/srcpkgs/eukleides/template
index a955ef5bc911..992cfa8e25b6 100644
--- a/srcpkgs/eukleides/template
+++ b/srcpkgs/eukleides/template
@@ -12,6 +12,7 @@ homepage="http://www.eukleides.org/"
 distfiles="http://www.eukleides.org/files/${pkgname}-${version}.tar.bz2"
 checksum=18c489460cb2cb98f4ea9c0187519ef77b4422117fd43bcd4e4836580ef40c69
 disable_parallel_build=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/evemu/template b/srcpkgs/evemu/template
index e65f2f63ac98..bc53c54383e9 100644
--- a/srcpkgs/evemu/template
+++ b/srcpkgs/evemu/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-only, MIT"
 homepage="https://freedesktop.org/wiki/Evemu/"
 distfiles=${FREEDESKTOP_SITE}/evemu/evemu-$version.tar.xz
 checksum=78c9400d55eeeb5ab75161360543f9376438c4da4934cb34cdda5b46021ae379
+patch_args=-Np0
 
 post_install() {
 	sed -n '/Copyright/,/IN THE SOFTWARE/p' src/evemu.c >LICENSE
diff --git a/srcpkgs/evolution-data-server/template b/srcpkgs/evolution-data-server/template
index 136c47804c04..b4cc9ccbab4b 100644
--- a/srcpkgs/evolution-data-server/template
+++ b/srcpkgs/evolution-data-server/template
@@ -20,6 +20,7 @@ homepage="https://wiki.gnome.org/Apps/Evolution"
 changelog="https://raw.githubusercontent.com/GNOME/evolution-data-server/gnome-3-38/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=ec82951639f32a5cece80a8b0b9aa3f66b7d318e3ee2c1c35234f2e2bde8a418
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/evolution/template b/srcpkgs/evolution/template
index 1b3b6fa7e9f4..84071a14f9af 100644
--- a/srcpkgs/evolution/template
+++ b/srcpkgs/evolution/template
@@ -22,6 +22,7 @@ distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=9b4c31352332fb9dc0ff23625ba1552c13808f1c9ba019496b750be87e07a5fd
 shlib_provides="libevolution-calendar.so libevolution-util.so libemail-engine.so
  libevolution-mail.so libevolution-shell.so libevolution-mail-formatter.so"
+patch_args=-Np0
 
 evolution-devel_package() {
 	depends="webkit2gtk-devel gtk+3-devel libglib-devel evolution-data-server-devel
diff --git a/srcpkgs/evtest/template b/srcpkgs/evtest/template
index 1feed55a9d6c..ee6bca695ac8 100644
--- a/srcpkgs/evtest/template
+++ b/srcpkgs/evtest/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://cgit.freedesktop.org/evtest/"
 distfiles="https://cgit.freedesktop.org/evtest/snapshot/evtest-${version}.tar.xz"
 checksum=e49f1f160b30c8f7c2a4caef5ab655f1caf816483d19fdedd6db2d251d7ab80e
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ex-vi/template b/srcpkgs/ex-vi/template
index ea54bb437895..84e0dbe713d1 100644
--- a/srcpkgs/ex-vi/template
+++ b/srcpkgs/ex-vi/template
@@ -15,6 +15,7 @@ distfiles="${SOURCEFORGE_SITE}/$pkgname/ex-${version}.tar.bz2"
 checksum=da4be7cf67e94572463b19e56850aa36dc4e39eb0d933d3688fe8574bb632409
 CFLAGS=-I.
 disable_parallel_build=yes
+patch_args=-Np0
 
 alternatives="
  vi:ex:/usr/bin/ex-ex
diff --git a/srcpkgs/exfat-dkms/template b/srcpkgs/exfat-dkms/template
index f0d28ef17dfb..1f590f1e8c90 100644
--- a/srcpkgs/exfat-dkms/template
+++ b/srcpkgs/exfat-dkms/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/dorimanx/exfat-nofuse"
 distfiles="https://github.com/dorimanx/exfat-nofuse/archive/${_commit}.tar.gz"
 checksum=b88a98f0a7e1b987465f5ccfcafb384b293506c7fec9d3b91b803e0fe5b16e0a
+patch_args=-Np0
 
 dkms_modules="exfat ${version}"
 depends="dkms"
diff --git a/srcpkgs/exo/template b/srcpkgs/exo/template
index 65ff908fb98b..e872f31c77b8 100644
--- a/srcpkgs/exo/template
+++ b/srcpkgs/exo/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://xfce.org/"
 distfiles="https://archive.xfce.org/src/xfce/exo/${version%.*}/exo-${version}.tar.bz2"
 checksum=4e89f5536afbf1cb9191cceb720fb2764df1a4fae3459512b7320841ab5a9e9d
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/expect/template b/srcpkgs/expect/template
index 2d0bdbd4e44f..59a7d2c99aa9 100644
--- a/srcpkgs/expect/template
+++ b/srcpkgs/expect/template
@@ -14,6 +14,7 @@ license="Public Domain"
 homepage="http://www.nist.gov/el/msid/expect.cfm"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/Expect/${version}/${pkgname}${version}.tar.gz"
 checksum=49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34
+patch_args=-Np0
 
 alternatives="
  mkpasswd:mkpasswd:/usr/bin/expect-mkpasswd
diff --git a/srcpkgs/extra-cmake-modules/template b/srcpkgs/extra-cmake-modules/template
index 1723115fb094..ffc5946416c3 100644
--- a/srcpkgs/extra-cmake-modules/template
+++ b/srcpkgs/extra-cmake-modules/template
@@ -13,6 +13,7 @@ homepage="https://invent.kde.org/frameworks/extra-cmake-modules"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=5972ec6d78c3e95ab9cbecdb0661c158570e868466357c5cec2b63a4251ecce4
 python_version=3
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING-CMAKE-SCRIPTS
diff --git a/srcpkgs/faad2/template b/srcpkgs/faad2/template
index 33158709e655..e2e9b2ff1243 100644
--- a/srcpkgs/faad2/template
+++ b/srcpkgs/faad2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.audiocoding.com/"
 distfiles="https://github.com/knik0/faad2/archive/${version//./_}.tar.gz"
 checksum=0c6d9636c96f95c7d736f097d418829ced8ec6dbd899cc6cc82b728480a84bfb
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -vfi
diff --git a/srcpkgs/fake-hwclock/template b/srcpkgs/fake-hwclock/template
index 5e69b6e020e8..0a90feae5d28 100644
--- a/srcpkgs/fake-hwclock/template
+++ b/srcpkgs/fake-hwclock/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="https://tracker.debian.org/pkg/fake-hwclock"
 distfiles="${DEBIAN_SITE}/main/f/${pkgname}/${pkgname}_${version}.tar.xz"
 checksum=02a825f7460ab06b370c203250606c67b0effffa1645a4a4f7ff3928eec4957e
+patch_args=-Np0
 
 conf_files="/etc/default/fake-hwclock"
 
diff --git a/srcpkgs/fakeroot/template b/srcpkgs/fakeroot/template
index f9d2cf9bb085..cae58c1efc56 100644
--- a/srcpkgs/fakeroot/template
+++ b/srcpkgs/fakeroot/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://salsa.debian.org/clint/fakeroot"
 distfiles="${DEBIAN_SITE}/main/f/fakeroot/${pkgname}_${version}.orig.tar.gz"
 checksum=8e903683357f7f5bcc31b879fd743391ad47691d4be33d24a76be3b6c21e956c
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/falkon/template b/srcpkgs/falkon/template
index 1a5eb3cd60bc..4727e1fb6cc2 100644
--- a/srcpkgs/falkon/template
+++ b/srcpkgs/falkon/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/KDE/falkon"
 distfiles="${KDE_SITE}/falkon/${version%.*}/falkon-${version}.tar.xz"
 checksum=ce743cd80c0e2d525a784e29c9b487f73480119b0567f9ce8ef1f44cca527587
+patch_args=-Np0
 
 LDFLAGS="-Wl,--no-fatal-warnings"
 
diff --git a/srcpkgs/farstream/template b/srcpkgs/farstream/template
index 6162c2966a56..470b3cb4f761 100644
--- a/srcpkgs/farstream/template
+++ b/srcpkgs/farstream/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.freedesktop.org/wiki/Software/Farstream"
 distfiles="${FREEDESKTOP_SITE}/farstream/releases/$pkgname/$pkgname-$version.tar.gz"
 checksum=cb7d112433cf7c2e37a8ec918fb24f0ea5cb293cfa1002488e431de26482f47b
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/fastd/template b/srcpkgs/fastd/template
index d07de67b11dc..e03c1838342b 100644
--- a/srcpkgs/fastd/template
+++ b/srcpkgs/fastd/template
@@ -17,6 +17,7 @@ conf_files="
  /etc/fastd/fastd.conf"
 make_dirs="/etc/fastd/peers	755	root 	root"
 CFLAGS="-I$XBPS_CROSS_BASE/usr/include/sodium"
+patch_args=-Np0
 
 pre_configure() {
 	# remove ssse3 requirement to support older AMD CPUs.
diff --git a/srcpkgs/faust/template b/srcpkgs/faust/template
index 03b44b2f2580..bac06eafa812 100644
--- a/srcpkgs/faust/template
+++ b/srcpkgs/faust/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://faust.grame.fr/"
 distfiles=https://github.com/grame-cncm/faust/releases/download/${version}/${pkgname}-${version}.tar.gz
 checksum="6cf64b8ee92c2db74d7d83d726b0ecb6f7e141deeadf4cd40c60e467893e0bfc"
+patch_args=-Np0
 
 # Android stuffs, used by the 'faust2android' script.
 nostrip_files="libsndfile.so "
diff --git a/srcpkgs/fbida/template b/srcpkgs/fbida/template
index 347632343733..46290f5cb5d4 100644
--- a/srcpkgs/fbida/template
+++ b/srcpkgs/fbida/template
@@ -18,6 +18,7 @@ checksum=95b7c01556cb6ef9819f358b314ddfeb8a4cbe862b521a3ed62f03d163154438
 depends="fbida-exiftran-${version}_${revision} fbida-fbi-${version}_${revision}
  fbida-fbpdf-${version}_${revision} $(vopt_if ida fbida-ida-${version}_${revision})"
 nocross="Requires cairo-gl.pc for the target which Void does not have"
+patch_args=-Np0
 
 build_options="ida"
 desc_option_ida="Build ida motif application (needs motif-devel)"
diff --git a/srcpkgs/fbreader/template b/srcpkgs/fbreader/template
index 0ffe6f5aeeab..1dcbe6f1c552 100644
--- a/srcpkgs/fbreader/template
+++ b/srcpkgs/fbreader/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.fbreader.org/"
 distfiles="http://www.fbreader.org/files/desktop/${pkgname}-sources-${version}.tgz"
 checksum=3d7c31d5ea314589d2a963290ad16f4d3d631a41e802b8b39f8be0c9f71eb8e9
+patch_args=-Np0
 
 do_build() {
 	sed -e "s:-llinebreak:-lunibreak:" -i makefiles/config.mk zlibrary/text/Makefile
diff --git a/srcpkgs/fbterm/template b/srcpkgs/fbterm/template
index f97ecc509dc7..47a4ba3ff5bd 100644
--- a/srcpkgs/fbterm/template
+++ b/srcpkgs/fbterm/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/izmntuk/fbterm"
 distfiles="https://github.com/izmntuk/${pkgname}/archive/v${version%.*}.tar.gz"
 checksum=68e9742b23d6f143d809a5930f5f22c7e55d7c14a4ab2c8a842e0b5c27b1f863
+patch_args=-Np0
 
 post_configure() {
 	sed -i "s,tic,& -o $DESTDIR/usr/share/terminfo," terminfo/Makefile
diff --git a/srcpkgs/fbv/template b/srcpkgs/fbv/template
index 0df248768ceb..da3387dc2b63 100644
--- a/srcpkgs/fbv/template
+++ b/srcpkgs/fbv/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.eclis.ch/fbv/"
 distfiles="http://s-tech.elsat.net.pl/fbv/fbv-${version}.tar.gz"
 checksum=9b55b9dafd5eb01562060d860e267e309a1876e8ba5ce4d3303484b94129ab3c
+patch_args=-Np0
 
 do_configure() {
 	sed -i '/^CFLAGS/d' Makefile
diff --git a/srcpkgs/fbxkb/template b/srcpkgs/fbxkb/template
index 1356d32df971..123e36a95f25 100644
--- a/srcpkgs/fbxkb/template
+++ b/srcpkgs/fbxkb/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://fbxkb.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tgz"
 checksum="fcbaf4ed9a70f58ea1316b19da74e2ca8b3fb0e2de5a73c849317589ce840ef2"
+patch_args=-Np0
 
 pre_build() {
 # Substitute compiler,
diff --git a/srcpkgs/fcitx-anthy/template b/srcpkgs/fcitx-anthy/template
index 02150ea5ca5d..42a048057b17 100644
--- a/srcpkgs/fcitx-anthy/template
+++ b/srcpkgs/fcitx-anthy/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://fcitx-im.org/"
 distfiles="https://github.com/fcitx/fcitx-anthy/archive/${version}.tar.gz"
 checksum=dcb561138508757f37da8a85bdf296368b592649b15ab76e8706db47cc25402a
+patch_args=-Np0
 
 CXXFLAGS='-D_GNU_SOURCE'
 
diff --git a/srcpkgs/fcitx/template b/srcpkgs/fcitx/template
index 00675b1fedc0..d562bf7c9434 100644
--- a/srcpkgs/fcitx/template
+++ b/srcpkgs/fcitx/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, MIT"
 homepage="https://fcitx-im.org/"
 distfiles="http://download.fcitx-im.org/fcitx/fcitx-${version}_dict.tar.xz"
 checksum=bc3515cba0561546fe02dae81391d4a03e0e79a2d668aa794cd3a377284033c6
+patch_args=-Np0
 
 hostmakedepends="pkg-config doxygen extra-cmake-modules glib-devel"
 makedepends="iso-codes gettext-devel enchant-devel libxml2-devel
diff --git a/srcpkgs/fcron/template b/srcpkgs/fcron/template
index 11efd44b0bbd..ffb03fb0fceb 100644
--- a/srcpkgs/fcron/template
+++ b/srcpkgs/fcron/template
@@ -31,6 +31,7 @@ license="GPL-2.0-or-later"
 homepage="http://fcron.free.fr"
 distfiles="$homepage/archives/$pkgname-$version.src.tar.gz"
 checksum=9aead33a0926e2eec123698c502114c6d67b483fe1ec232969fae6809b0bab60
+patch_args=-Np0
 
 alternatives="
  crond:crond:/etc/sv/fcron
diff --git a/srcpkgs/ferm/template b/srcpkgs/ferm/template
index 3b623d0dd0cc..0183d4c4bee6 100644
--- a/srcpkgs/ferm/template
+++ b/srcpkgs/ferm/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://ferm.foo-projects.org/"
 distfiles="http://ferm.foo-projects.org/download/${version:0:3}/ferm-${version}.tar.xz"
 checksum=689541465e7c073cbd604c9cd18f113c31c0b41bb12614726a59b17e44058885
+patch_args=-Np0
 
 do_install() {
 	make install PREFIX=${DESTDIR}/usr
diff --git a/srcpkgs/ffmpeg/template b/srcpkgs/ffmpeg/template
index e6667478fe13..50ab8e58c2b5 100644
--- a/srcpkgs/ffmpeg/template
+++ b/srcpkgs/ffmpeg/template
@@ -10,6 +10,7 @@ homepage="https://www.ffmpeg.org"
 changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="${homepage}/releases/ffmpeg-${version}.tar.xz"
 checksum=46e4e64f1dd0233cbc0934b9f1c0da676008cad34725113fb7f802cfa84ccddb
+patch_args=-Np0
 
 hostmakedepends="pkg-config perl yasm"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
diff --git a/srcpkgs/fig2dev/template b/srcpkgs/fig2dev/template
index 87bdbd3d8ad6..95003a4f225b 100644
--- a/srcpkgs/fig2dev/template
+++ b/srcpkgs/fig2dev/template
@@ -13,6 +13,7 @@ homepage="http://www.xfig.org/"
 distfiles="${SOURCEFORGE_SITE}/mcj/${pkgname}-${version}.tar.xz"
 checksum=6336ac492d0f71dfb7a1dd8f4d78eae17aa57a34f743d4e5ba9814991c2da7ae
 replaces="transfig>=0"
+patch_args=-Np0
 
 post_install() {
 	sed '/^$/q' <fig2dev/fig2dev.c >LICENSE
diff --git a/srcpkgs/filezilla/template b/srcpkgs/filezilla/template
index b115f782ed4c..00f456085434 100644
--- a/srcpkgs/filezilla/template
+++ b/srcpkgs/filezilla/template
@@ -16,6 +16,7 @@ homepage="https://filezilla-project.org"
 changelog="https://svn.filezilla-project.org/filezilla/FileZilla3/trunk/NEWS?view=co"
 distfiles="https://download.filezilla-project.org/client/FileZilla_${version}_src.tar.bz2"
 checksum=703a199c13bb681d6eb0e3fe6e1cc9d0b690016acdd47b26bd12a2a95ff4aa6a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" wxWidgets-gtk3-devel xdg-utils"
diff --git a/srcpkgs/fingerprint-gui/template b/srcpkgs/fingerprint-gui/template
index 08d226569eb8..52f7084d1d9a 100644
--- a/srcpkgs/fingerprint-gui/template
+++ b/srcpkgs/fingerprint-gui/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.ullrich-online.cc/fingerprint/"
 distfiles="https://github.com/maksbotan/${pkgname}/archive/v${version}-qt5.tar.gz"
 checksum=a28d43e7e505f8ed15c8360bd91603eaf3206c225a542d0116669caafd89154c
+patch_args=-Np0
 
 # build system deals poorly with cross headers so include
 # them manually
diff --git a/srcpkgs/firefox-esr/template b/srcpkgs/firefox-esr/template
index e4ea57638c2c..38251ae0a73c 100644
--- a/srcpkgs/firefox-esr/template
+++ b/srcpkgs/firefox-esr/template
@@ -25,6 +25,7 @@ distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${versi
 checksum=979141a6d94bbe303815e9cd1ab1d23b5ce2f9c77d9d5486871eaecf0ea2df40
 lib32disabled=yes
 conflicts="firefox>=0"
+patch_args=-Np0
 
 build_options="alsa jack dbus pulseaudio xscreensaver sndio wayland"
 build_options_default="alsa jack dbus pulseaudio xscreensaver sndio wayland"
diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template
index 3ce8a92ecbb0..01dfcc17657c 100644
--- a/srcpkgs/firefox/template
+++ b/srcpkgs/firefox/template
@@ -12,6 +12,7 @@ license="MPL-2.0, GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.mozilla.org/firefox/"
 distfiles="${MOZILLA_SITE}/${pkgname}/releases/${version}/source/${pkgname}-${version}.source.tar.xz"
 checksum=db43d7d5796455051a5b847f6daa3423393803c9288c8b6d7f1186f5e2e0a90a
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/firejail/template b/srcpkgs/firejail/template
index 6b6a27403ec4..ab0544ef2e04 100644
--- a/srcpkgs/firejail/template
+++ b/srcpkgs/firejail/template
@@ -14,5 +14,6 @@ changelog="https://github.com/netblue30/firejail/raw/master/RELNOTES"
 distfiles="https://github.com/netblue30/firejail/archive/${version}.tar.gz"
 checksum=17a20c4c9f114aa8fdab467cecb60309f599ad08b4bbb3e751c992d98a95ac18
 conf_files="/etc/firejail/* /etc/apparmor.d/local/firejail-default"
+patch_args=-Np0
 
 nocross=yes
diff --git a/srcpkgs/flatpak-builder/template b/srcpkgs/flatpak-builder/template
index 208481c58b25..6435f58c3f6e 100644
--- a/srcpkgs/flatpak-builder/template
+++ b/srcpkgs/flatpak-builder/template
@@ -14,6 +14,7 @@ distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.xz
 checksum=4780c1b8e0838ffb64e9639bd7801417964fd818c7c6d5e9afca4d5511ded2c8
 # Tests expects a Debian derivate hosts to build a flatpak container from.
 make_check=no
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" flatpak-devel"
diff --git a/srcpkgs/flatpak/template b/srcpkgs/flatpak/template
index da8807535ee1..d3bfe4578455 100644
--- a/srcpkgs/flatpak/template
+++ b/srcpkgs/flatpak/template
@@ -23,6 +23,7 @@ homepage="https://flatpak.org/"
 changelog="https://github.com/flatpak/flatpak/raw/master/NEWS"
 distfiles="https://github.com/flatpak/flatpak/releases/download/${version}/flatpak-${version}.tar.xz"
 checksum=db152739d072f8ff299e4e888d8963a1b4538da7b10e0b86525be438f2e1dde4
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/flex/template b/srcpkgs/flex/template
index f07dee0ee482..60b111758bdc 100644
--- a/srcpkgs/flex/template
+++ b/srcpkgs/flex/template
@@ -13,6 +13,7 @@ license="custom:flex"
 homepage="https://github.com/westes/flex"
 distfiles="https://github.com/westes/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995
+patch_args=-Np0
 
 # Required to enable the definition of reallocarray() in stdlib.h
 CFLAGS="-D_GNU_SOURCE"
diff --git a/srcpkgs/flightgear/template b/srcpkgs/flightgear/template
index e5528205b9e0..ac8cb4c9032c 100644
--- a/srcpkgs/flightgear/template
+++ b/srcpkgs/flightgear/template
@@ -22,6 +22,7 @@ checksum="
  1f07e8ef2c558dae3b9738e313b57e711d38e569f85d49fc2c5ae647e3949a17
  2196f4ffcdeaae3a8b0a2b6ebf62a456bfd0198abb6c0619f763204d89804a03"
 python_version=2
+patch_args=-Np0
 
 nocross=https://build.voidlinux.org/builders/armv7l-musl_builder/builds/4773/steps/shell_3/logs/stdio
 
diff --git a/srcpkgs/flowcanvas/template b/srcpkgs/flowcanvas/template
index 4b61be701061..10fd327e1c95 100644
--- a/srcpkgs/flowcanvas/template
+++ b/srcpkgs/flowcanvas/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://drobilla.net/software/flowcanvas/"
 distfiles="http://download.drobilla.net/${pkgname}-${version}.tar.bz2"
 checksum=047928d858fd1e9296a9984de7468c86bbe23fc42e286691b8f273541402c596
+patch_args=-Np0
 
 CXXFLAGS="-std=c++11"
 
diff --git a/srcpkgs/foobillard++/template b/srcpkgs/foobillard++/template
index d92355a8cabe..185f4f62b16a 100644
--- a/srcpkgs/foobillard++/template
+++ b/srcpkgs/foobillard++/template
@@ -19,6 +19,7 @@ CFLAGS="-fgnu89-inline"
 # flags from freetype-config and sdl-config
 CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/freetype2"
 CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/SDL -D_GNU_SOURCE=1"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/foomatic-db-engine/template b/srcpkgs/foomatic-db-engine/template
index dc1a21716e5a..909ca2605b93 100644
--- a/srcpkgs/foomatic-db-engine/template
+++ b/srcpkgs/foomatic-db-engine/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.openprinting.org/"
 distfiles="https://www.openprinting.org/download/foomatic/$pkgname-$version.tar.gz"
 checksum=b5c89027aa26967d2e6db62e2af7db0c4039d2480d4fbf2476a6ddcf609a5faf
+patch_args=-Np0
 
 post_configure() {
 	# Compiling and linking in one step requires $(LDFLAGS)
diff --git a/srcpkgs/foremost/template b/srcpkgs/foremost/template
index cb463049d370..91e336667023 100644
--- a/srcpkgs/foremost/template
+++ b/srcpkgs/foremost/template
@@ -9,6 +9,7 @@ license="Public Domain"
 homepage="http://foremost.sourceforge.net/"
 distfiles="http://foremost.sourceforge.net/pkg/foremost-${version}.tar.gz"
 checksum=502054ef212e3d90b292e99c7f7ac91f89f024720cd5a7e7680c3d1901ef5f34
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/fossil/template b/srcpkgs/fossil/template
index 0e8afbbdadf4..6773f5d85441 100644
--- a/srcpkgs/fossil/template
+++ b/srcpkgs/fossil/template
@@ -13,6 +13,7 @@ homepage="https://www.fossil-scm.org"
 changelog="https://www.fossil-scm.org/home/doc/trunk/www/changes.wiki"
 distfiles="https://www.fossil-scm.org/index.html/uv/fossil-src-${version}.tar.gz"
 checksum=80d27923c663b2a2c710f8ae8cd549862e04f8c04285706274c34ae3c8ca17d1
+patch_args=-Np0
 
 post_extract() {
 	vsed -i 's/test_system_sqlite$/# &/' auto.def  # failing on cross
diff --git a/srcpkgs/fotoxx/template b/srcpkgs/fotoxx/template
index a3c968fcdef0..d954ae814495 100644
--- a/srcpkgs/fotoxx/template
+++ b/srcpkgs/fotoxx/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.kornelix.net/fotoxx/fotoxx.html"
 distfiles="https://www.kornelix.net/downloads/downloads/fotoxx-${version}.tar.gz"
 checksum=0c16597053ce8e186fb8163839f4f4ed44548bf00e43e88951f4346a9dbbb620
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/champlain-0.12"
 
diff --git a/srcpkgs/fpc/template b/srcpkgs/fpc/template
index 7967b25165b1..c867802cf756 100644
--- a/srcpkgs/fpc/template
+++ b/srcpkgs/fpc/template
@@ -40,6 +40,7 @@ esac
 nocross=yes
 nopie=yes
 noverifyrdeps=yes
+patch_args=-Np0
 
 post_extract() {
 	# extract recursive tar files or otherwise post-process.
diff --git a/srcpkgs/fprint_demo/template b/srcpkgs/fprint_demo/template
index 723fa68f3f7d..8e08614dbf43 100644
--- a/srcpkgs/fprint_demo/template
+++ b/srcpkgs/fprint_demo/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.freedesktop.org/wiki/Software/fprint/fprint_demo/"
 distfiles="https://github.com/dsd/${pkgname}/archive/v${version}.tar.gz"
 checksum=6f54f43e0a015cd83504a2c726a59154c5aee83e229e8494d54e592624ee3ad5
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/frame/template b/srcpkgs/frame/template
index faf98cc44932..d43faff47cc3 100644
--- a/srcpkgs/frame/template
+++ b/srcpkgs/frame/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-only"
 homepage="https://launchpad.net/frame"
 distfiles="https://launchpad.net/${pkgname}/trunk/v${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=cfb9ab52cdccd926f1822a457264d0014c7eb9f4600a72626063dd073b26256f
+patch_args=-Np0
 
 frame-devel_package() {
 	depends="frame>=${version}_${revision}"
diff --git a/srcpkgs/freecad/template b/srcpkgs/freecad/template
index a11272680797..86abc16ea9e9 100644
--- a/srcpkgs/freecad/template
+++ b/srcpkgs/freecad/template
@@ -4,6 +4,7 @@ version=0.19.2
 revision=1
 wrksrc="FreeCAD-${version}"
 build_style=cmake
+patch_args=-Np0
 
 _inst_prefix=/usr/lib/${pkgname}
 configure_args="
diff --git a/srcpkgs/freeciv/template b/srcpkgs/freeciv/template
index cb6434529441..2dbb80c62a52 100644
--- a/srcpkgs/freeciv/template
+++ b/srcpkgs/freeciv/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://freeciv.org/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=6181ef3d3c76264383aabbe0eaf1550d8a65ca42639e6c17cc2938165e176c8f
+patch_args=-Np0
 
 subpackages="freeciv-gtk2 freeciv-gtk3 freeciv-sdl freeciv-xaw"
 if [ -z "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/freedroidClassic/template b/srcpkgs/freedroidClassic/template
index fe8b987c8ac7..a386f4e0ae04 100644
--- a/srcpkgs/freedroidClassic/template
+++ b/srcpkgs/freedroidClassic/template
@@ -13,6 +13,7 @@ license="GPL-2"
 homepage="http://freedroid.org"
 distfiles="http://sourceforge.net/projects/freedroid/files/${pkgname}/FreedroidClassic-${version}/freedroid-${version}.tar.gz"
 checksum=0934bd29fb2ad0367ea3bdfdce47537179f9af6aa960cbcc897c40da2e1a0ee3
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/freeimage/template b/srcpkgs/freeimage/template
index c45052a67b17..49167a736380 100644
--- a/srcpkgs/freeimage/template
+++ b/srcpkgs/freeimage/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later, FreeImage"
 homepage="http://freeimage.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/freeimage/Source%20Distribution/FreeImage${version//./}.zip"
 checksum=f41379682f9ada94ea7b34fe86bf9ee00935a3147be41b6569c9605a53e438fd
+patch_args=-Np0
 
 CFLAGS="-fPIC -DPIC -fexceptions -fvisibility=hidden -DPNG_POWERPC_VSX_OPT=0"
 CXXFLAGS="${CFLAGS} -Wno-ctor-dtor-privacy"
diff --git a/srcpkgs/freeipmi/template b/srcpkgs/freeipmi/template
index e6818b20f15c..0a0b14774420 100644
--- a/srcpkgs/freeipmi/template
+++ b/srcpkgs/freeipmi/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/freeipmi/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=cfa30179b44c582e73cf92c2ad0e54fe49f9fd87f7a0889be9dc2db5802e6aab
+patch_args=-Np0
 
 conf_files="/etc/freeipmi/*.conf"
 make_dirs="/var/cache/ipmiseld 0755 root root"
diff --git a/srcpkgs/freeorion/template b/srcpkgs/freeorion/template
index 37bfc09176c4..32ccda483397 100644
--- a/srcpkgs/freeorion/template
+++ b/srcpkgs/freeorion/template
@@ -16,6 +16,7 @@ homepage="https://freeorion.org/index.php/Main_Page"
 changelog="https://raw.githubusercontent.com/freeorion/freeorion/master/ChangeLog.md"
 distfiles="https://github.com/freeorion/freeorion/releases/download/v${version}/FreeOrion_v${_release}_Source.tar.gz"
 checksum=e72ab42cba1ee8842507340931ef389e64011e040a4adc74add5f4997bbcba8b
+patch_args=-Np0
 
 post_extract() {
 	_build_no=${_release/*_/}
diff --git a/srcpkgs/freeplane/template b/srcpkgs/freeplane/template
index 52a4365845f2..2d92e1536f59 100644
--- a/srcpkgs/freeplane/template
+++ b/srcpkgs/freeplane/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://freeplane.sourceforge.net/"
 distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname%20stable/${pkgname}_src-$version.tar.gz"
 checksum=7cb3abeda6a073262b63603852d3f3fe2cdb34e917435e9648209efa9c3b1e21
+patch_args=-Np0
 
 make_dirs="
 /usr/share/freeplane/fwdir/condperm/ 755 root root
diff --git a/srcpkgs/freetds/template b/srcpkgs/freetds/template
index c1e2b541a6b8..bc88622a836a 100644
--- a/srcpkgs/freetds/template
+++ b/srcpkgs/freetds/template
@@ -13,6 +13,7 @@ license="LGPL-2.0-or-later"
 homepage="https://www.freetds.org/"
 distfiles="https://www.freetds.org/files/stable/freetds-${version}.tar.gz"
 checksum=a2134ff1852003c0aeed82bd5f7842233ff287c3a14252b84d2653983aff7da1
+patch_args=-Np0
 
 conf_files="/etc/freetds/freetds.conf
  /etc/freetds/locales.conf
diff --git a/srcpkgs/freetype/template b/srcpkgs/freetype/template
index ba4c6ad900c4..b41edae73a6f 100644
--- a/srcpkgs/freetype/template
+++ b/srcpkgs/freetype/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, FTL"
 homepage="https://www.freetype.org/"
 distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=86a854d8905b19698bbc8f23b860bc104246ce4854dcea8e3b0fb21284f75784
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e "s/%PKG_CONFIG%/pkg-config/" builds/unix/freetype-config.in
diff --git a/srcpkgs/freshplayerplugin/template b/srcpkgs/freshplayerplugin/template
index a6205c0ba98d..7730d4954be2 100644
--- a/srcpkgs/freshplayerplugin/template
+++ b/srcpkgs/freshplayerplugin/template
@@ -13,6 +13,7 @@ homepage="https://github.com/i-rinat/freshplayerplugin"
 changelog="https://raw.githubusercontent.com/i-rinat/freshplayerplugin/master/ChangeLog"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=4fa4fe07e812f6e10784ff984e1389b9b444ca44b84101999c6fad8f55db59d9
+patch_args=-Np0
 
 do_install() {
 	vinstall build/libfreshwrapper-flashplayer.so 755 usr/lib/mozilla/plugins
diff --git a/srcpkgs/fs-utils/template b/srcpkgs/fs-utils/template
index 91a0d1dcc0d6..cc8fe606ab0a 100644
--- a/srcpkgs/fs-utils/template
+++ b/srcpkgs/fs-utils/template
@@ -15,6 +15,7 @@ distfiles="$homepage/archive/v$version.tar.gz
 checksum="0f63aa92f673f290d4bca9009ca6f213e70ac70519c5cdac3fa64acf5afa5bae
  228892fd0f669ee3051aee19f8660e4719bee9bd70c1b02adcaee518d4155866"
 skip_extraction="LICENSE"
+patch_args=-Np0
 
 post_install() {
 	vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/LICENSE
diff --git a/srcpkgs/fuse/template b/srcpkgs/fuse/template
index 10061307b416..812f9dfc16d1 100644
--- a/srcpkgs/fuse/template
+++ b/srcpkgs/fuse/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://github.com/libfuse/libfuse"
 distfiles="${homepage}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=d0e69d5d608cc22ff4843791ad097f554dd32540ddc9bed7638cc6fea7c1b4b5
+patch_args=-Np0
 
 post_install() {
 	# remove obsolete rules file provided by udev.
diff --git a/srcpkgs/gamin/template b/srcpkgs/gamin/template
index 3ed85f0bb6f3..bc4b244b5757 100644
--- a/srcpkgs/gamin/template
+++ b/srcpkgs/gamin/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.gnome.org/~veillard/gamin/"
 distfiles="$GNOME_SITE/gamin/0.1/gamin-${version}.tar.bz2"
 checksum=a59948b20ce2f14136c013f155abb8c8d51db2ea167c063ff33461e453fec10a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gammu/template b/srcpkgs/gammu/template
index bb5d54bcfe90..71ebeecdab9f 100644
--- a/srcpkgs/gammu/template
+++ b/srcpkgs/gammu/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://wammu.eu"
 distfiles="https://dl.cihar.com/gammu/releases/gammu-${version}.tar.bz2"
 checksum=6197f8b4d35746d31567e61880121def676f225eba05276648410eaa6ce60c9f
+patch_args=-Np0
 
 gammu-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/gatling/template b/srcpkgs/gatling/template
index 9993c3a0cd69..15aefdfd53d9 100644
--- a/srcpkgs/gatling/template
+++ b/srcpkgs/gatling/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.fefe.de/gatling"
 distfiles="https://www.fefe.de/gatling/$pkgname-$version.tar.xz"
 checksum=5f96438ee201d7f1f6c2e0849ff273b196bdc7493f29a719ce8ed08c8be6365b
+patch_args=-Np0
 
 CFLAGS="-std=c99 -I${XBPS_CROSS_BASE}/usr/include/libowfat -fcommon"
 
diff --git a/srcpkgs/gavl/template b/srcpkgs/gavl/template
index 0f5f50d93565..8abcc051e743 100644
--- a/srcpkgs/gavl/template
+++ b/srcpkgs/gavl/template
@@ -11,6 +11,7 @@ homepage="http://gmerlin.sourceforge.net/gavl.html"
 distfiles="${SOURCEFORGE_SITE}/gmerlin/gavl/${version}/gavl-${version}.tar.gz"
 checksum=51aaac41391a915bd9bad07710957424b046410a276e7deaff24a870929d33ce
 CFLAGS="-lm"
+patch_args=-Np0
 
 gavl-devel_package() {
 	depends="gavl>=${version}_${revision}"
diff --git a/srcpkgs/gbdfed/template b/srcpkgs/gbdfed/template
index 788a9abab08b..55de7fabe98c 100644
--- a/srcpkgs/gbdfed/template
+++ b/srcpkgs/gbdfed/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause, MIT"
 homepage="http://sofia.nmsu.edu/~mleisher/Software/gbdfed/"
 distfiles="https://src.fedoraproject.org/repo/pkgs/gbdfed/gbdfed-${version}.tar.bz2/2a2e1cbfe8566db6d302f0b9ab79b8dd/gbdfed-${version}.tar.bz2"
 checksum=5db25d4ce688dcb188dee056e58614a94a5e4fce4b6066fbb310951ab999093c
+patch_args=-Np0
 
 post_install() {
 	sed '/^$/q' <gbdfed.c >LICENSE
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 07ceeccc93d4..ade2f5007df0 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -2,6 +2,7 @@
 archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 _majorver=10.2
+patch_args=-Np0
 
 pkgname=gcc-multilib
 version=${_majorver}.1pre1
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index ba7084934857..4de5faa93f5a 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -8,6 +8,7 @@ _gmp_version=6.2.0
 _mpfr_version=4.1.0
 _mpc_version=1.1.0
 _isl_version=0.21
+patch_args=-Np0
 
 pkgname=gcc
 # we are using a 10-stable git snapshot alpine is using in order
diff --git a/srcpkgs/gcolor2/template b/srcpkgs/gcolor2/template
index 4aec89567aa9..7a3eaeb093a9 100644
--- a/srcpkgs/gcolor2/template
+++ b/srcpkgs/gcolor2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://gcolor2.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=89bd6c6d27ba5a679ec60057de8497855072f520515b490e5986fc3509774f23
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gdm/template b/srcpkgs/gdm/template
index c76e13c2de12..371445e58e2d 100644
--- a/srcpkgs/gdm/template
+++ b/srcpkgs/gdm/template
@@ -24,6 +24,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Projects/GDM"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=5ed74b739d3a232ffb1e4a132bcf965bdfe955d995b528773588775b02f2950e
+patch_args=-Np0
 
 conf_files="
 	/etc/gdm/custom.conf
diff --git a/srcpkgs/gdmap/template b/srcpkgs/gdmap/template
index 47b0105feb38..7b321c76487c 100644
--- a/srcpkgs/gdmap/template
+++ b/srcpkgs/gdmap/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://gdmap.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=a200c98004b349443f853bf611e49941403fce46f2335850913f85c710a2285b
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/geary/template b/srcpkgs/geary/template
index a74b1ff16cd2..17c2c0af3176 100644
--- a/srcpkgs/geary/template
+++ b/srcpkgs/geary/template
@@ -20,6 +20,7 @@ homepage="https://wiki.gnome.org/Apps/Geary"
 _series=${version%.${version#*.*.}}
 distfiles="${GNOME_SITE}/${pkgname}/${_series}/geary-${version}.tar.xz"
 checksum=e72e212798536657d5100e1e1a4a67f3836d6f0235340aae53e576f2a774e812
+patch_args=-Np0
 
 post_patch() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/geda/template b/srcpkgs/geda/template
index 6626bc91fd94..32afaf0681bb 100644
--- a/srcpkgs/geda/template
+++ b/srcpkgs/geda/template
@@ -18,6 +18,7 @@ distfiles="http://ftp.geda-project.org/geda-gaf/stable/v${version%.*}/${version}
 checksum=e862ab241528538fa3bee2739261f568011102b60c5e39a2f0358663c042c8a4
 python_version=2
 replaces="geda-data>=0"
+patch_args=-Np0
 
 CFLAGS="-Wno-deprecated-declarations -fcommon -Wno-unused-function"
 
diff --git a/srcpkgs/geis/template b/srcpkgs/geis/template
index ddad320d93a7..3f3b40e52315 100644
--- a/srcpkgs/geis/template
+++ b/srcpkgs/geis/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="https://launchpad.net/geis"
 distfiles="https://launchpad.net/geis/trunk/$version/+download/geis-$version.tar.xz"
 checksum=8a60f5683852094038904e690d23cc5a90a980fc52da67f0f28890baa25c70eb
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	configure_args+=" --enable-integration-tests=no"
diff --git a/srcpkgs/geos/template b/srcpkgs/geos/template
index efc698ab3dc8..bd7f56da854c 100644
--- a/srcpkgs/geos/template
+++ b/srcpkgs/geos/template
@@ -9,6 +9,7 @@ license="LGPL-2.1-or-later"
 homepage="https://trac.osgeo.org/geos"
 distfiles="https://download.osgeo.org/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=7e630507dcac9dc07565d249a26f06a15c9f5b0c52dd29129a0e3d381d7e382a
+patch_args=-Np0
 
 geos-devel_package() {
 	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
diff --git a/srcpkgs/gfm/template b/srcpkgs/gfm/template
index a21661053740..950339e880e7 100644
--- a/srcpkgs/gfm/template
+++ b/srcpkgs/gfm/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.ticalc.org"
 distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${_tilpver}/${pkgname}-${version}.tar.bz2"
 checksum=09031ac0abf686b6a8bc9935f331ef460415783a1057f11b0af993526b52017f
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" gettext-devel"
diff --git a/srcpkgs/giac/template b/srcpkgs/giac/template
index ca95534498f2..1e87c15d2b3f 100644
--- a/srcpkgs/giac/template
+++ b/srcpkgs/giac/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
 distfiles="https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_${version%.*}-${version##*.}.tar.gz"
 checksum=bbd6f0aafe373de3c9ed53d21878224e847359fdd9a7cdf9e9096e7c960f10b4
+patch_args=-Np0
 
 # need more than 4*65536 stack, see try_parse() in gen.cc line 11812
 LDFLAGS="-Wl,-z,stack-size=2097152"
diff --git a/srcpkgs/giflib/template b/srcpkgs/giflib/template
index 4f01f28e079e..9f3d399c6a5e 100644
--- a/srcpkgs/giflib/template
+++ b/srcpkgs/giflib/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://sourceforge.net/projects/giflib/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=31da5562f44c5f15d63340a09a4fd62b48c45620cd302f77a6d9acf0077879bd
+patch_args=-Np0
 
 CFLAGS="-fPIC"
 
diff --git a/srcpkgs/giggle/template b/srcpkgs/giggle/template
index 8240dd9afcd1..91eee3d7d911 100644
--- a/srcpkgs/giggle/template
+++ b/srcpkgs/giggle/template
@@ -14,6 +14,7 @@ homepage="https://wiki.gnome.org/Apps/giggle"
 distfiles="${GNOME_SITE}/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
 checksum=ae2e2237fa0d0999d99d0a0ee9b7ec147e80bd2472d59a045b2b01eb02261f59
 lib32disabled=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index 999c9a6f46f0..45a894853d35 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -23,6 +23,7 @@ checksum=bd1bb762368c0dd3175cf05006812dd676949c3707e21f4e6857435cb435989e
 python_version=2
 lib32disabled=yes
 no_generic_pkgconfig_link=yes
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 autoreconf -fi
diff --git a/srcpkgs/git-annex/template b/srcpkgs/git-annex/template
index cdcd6bb0f83c..25f8338e6833 100644
--- a/srcpkgs/git-annex/template
+++ b/srcpkgs/git-annex/template
@@ -15,6 +15,7 @@ distfiles="https://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-
 checksum=17109144b2aadfab79fa0e193df3e0c02fd80f738a5ed6eccb0d11692bedb01d
 nopie_files="/usr/bin/git-annex"
 nocross=yes
+patch_args=-Np0
 
 # These install steps are pulled from the install target in the
 # git-annex Makefile. The target can't be called directly because it is
diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template
index f375d2dcfa17..eae2e61b6819 100644
--- a/srcpkgs/gitea/template
+++ b/srcpkgs/gitea/template
@@ -33,6 +33,7 @@ homepage="https://gitea.io"
 changelog="https://github.com/go-gitea/gitea/blob/master/CHANGELOG.md"
 distfiles="https://github.com/go-gitea/gitea/releases/download/v${version}/gitea-src-${version}.tar.gz"
 checksum=d04bca934feba35600aaf739c82b7cbe7d8b911a086d7ac54f0710b689a85ac3
+patch_args=-Np0
 
 system_accounts="_gitea"
 _gitea_homedir="/var/lib/gitea"
diff --git a/srcpkgs/gitg/template b/srcpkgs/gitg/template
index e309a6a1462f..87376f22160e 100644
--- a/srcpkgs/gitg/template
+++ b/srcpkgs/gitg/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Gitg"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=24a4aabf8a42aa2e783e1fb5996ebb3c2a82a01b9689269f1329517ef124ef5a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -Dexe_wrapper=qemu-${XBPS_TARGET_QEMU_MACHINE}-static"
diff --git a/srcpkgs/gkrellm/template b/srcpkgs/gkrellm/template
index f2c1721ac5ee..59a20ddb0b90 100644
--- a/srcpkgs/gkrellm/template
+++ b/srcpkgs/gkrellm/template
@@ -11,6 +11,7 @@ license="GPL-3.0.or-later"
 homepage="http://gkrellm.srcbox.net"
 distfiles="${homepage}/releases/gkrellm-${version}.tar.bz2"
 checksum=1ee0643ed9ed99f88c1504c89d9ccb20780cf29319c904b68e80a8e7c8678c06
+patch_args=-Np0
 
 do_install() {
 	make PREFIX=/usr DESTDIR=${DESTDIR} STRIP= install
diff --git a/srcpkgs/glances/template b/srcpkgs/glances/template
index 29bc7790e11d..daf47f64f7a3 100644
--- a/srcpkgs/glances/template
+++ b/srcpkgs/glances/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-or-later"
 homepage="https://github.com/nicolargo/glances"
 distfiles="https://github.com/nicolargo/glances/archive/v${version}.tar.gz"
 checksum=5839a110af35af35b7a1d30c15e59c59359480c2eaec852d30480c96b8cf8d76
+patch_args=-Np0
 
 post_install() {
 	vsconf conf/glances.conf
diff --git a/srcpkgs/glib/template b/srcpkgs/glib/template
index 855a55856b31..9538134e3b36 100644
--- a/srcpkgs/glib/template
+++ b/srcpkgs/glib/template
@@ -17,6 +17,7 @@ homepage="https://wiki.gnome.org/Projects/GLib"
 changelog="https://gitlab.gnome.org/GNOME/glib/raw/master/NEWS"
 distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz"
 checksum=ecc7798a9cc034eabdfd7f246e6dd461cdbf1175fcc2e9867cc7da7b7309e0fb
+patch_args=-Np0
 
 build_options="gtk_doc"
 desc_option_gtk_doc="Build GTK API docs"
diff --git a/srcpkgs/gloox/template b/srcpkgs/gloox/template
index 0099876f5b22..f56bd1621233 100644
--- a/srcpkgs/gloox/template
+++ b/srcpkgs/gloox/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://camaya.net/gloox"
 distfiles="https://camaya.net/download/gloox-${version}.tar.bz2"
 checksum=4ade1b14848ccfcd89a505a4fff05116c24f13cef8d02fab0ade2717117ec964
+patch_args=-Np0
 
 gloox-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/glusterfs/template b/srcpkgs/glusterfs/template
index 93fd87eeda76..ec10ef21466f 100644
--- a/srcpkgs/glusterfs/template
+++ b/srcpkgs/glusterfs/template
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later, LGPL-3.0-only"
 homepage="https://www.gluster.org/"
 distfiles="https://download.gluster.org/pub/gluster/glusterfs/${version%.*}/${version}/${pkgname}-${version}.tar.gz"
 checksum=6f29ae4ab2c270ade0cd14a3f733d7d33fda78e79e81b148cd50711f65069d87
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) broken="not yet supported";;
diff --git a/srcpkgs/glyr/template b/srcpkgs/glyr/template
index 30dbe4e87f8e..6055834d3fb9 100644
--- a/srcpkgs/glyr/template
+++ b/srcpkgs/glyr/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-or-later"
 homepage="https://github.com/sahib/glyr"
 distfiles="https://github.com/sahib/glyr/archive/${version}.tar.gz"
 checksum=77e8da60221c8d27612e4a36482069f26f8ed74a1b2768ebc373c8144ca806e8
+patch_args=-Np0
 
 glyr-devel_package() {
 	depends="glyr>=${version}_${revision}"
diff --git a/srcpkgs/gmrun/template b/srcpkgs/gmrun/template
index b3565fa4929e..4e6727f20d06 100644
--- a/srcpkgs/gmrun/template
+++ b/srcpkgs/gmrun/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://sf.net/projects/gmrun"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=17297bce53249ccc7145931db22251b47f77ac355f78cf8abf1e87ae16341fa0
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/gnome-authenticator/template b/srcpkgs/gnome-authenticator/template
index e1bd1ee9e443..ceca3efe8578 100644
--- a/srcpkgs/gnome-authenticator/template
+++ b/srcpkgs/gnome-authenticator/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.gnome.org/World/Authenticator"
 distfiles="${homepage}/-/archive/${version}/Authenticator-${version}.tar.gz"
 checksum="d7250fbef1de2dcb599a55ff3d40dcc6ed5618fe89d50ec795281d8ba3123d5b"
+patch_args=-Np0
 
 post_patch() {
 	find src/Authenticator/widgets -type f -exec \
diff --git a/srcpkgs/gnome-desktop/template b/srcpkgs/gnome-desktop/template
index b92478185d66..72565e7b28e8 100644
--- a/srcpkgs/gnome-desktop/template
+++ b/srcpkgs/gnome-desktop/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://gitlab.gnome.org/GNOME/gnome-desktop"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=02dd6e5860e90395b5d88745ee30239a919285afbb7a22cf17e3be25e9abfbf6
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/gnome-keyring/template b/srcpkgs/gnome-keyring/template
index b8defd1997dd..6ec17559c86f 100644
--- a/srcpkgs/gnome-keyring/template
+++ b/srcpkgs/gnome-keyring/template
@@ -17,6 +17,7 @@ homepage="https://www.gnome.org"
 distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
 checksum=a3d24db08ee2fdf240fbbf0971a98c8ee295aa0e1a774537f4ea938038a3b931
 lib32disabled=yes
+patch_args=-Np0
 
 do_check() {
 	# Requires X11 server
diff --git a/srcpkgs/gnome-latex/template b/srcpkgs/gnome-latex/template
index 4739891c8ff2..f1c5f3c7c3c4 100644
--- a/srcpkgs/gnome-latex/template
+++ b/srcpkgs/gnome-latex/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Apps/GNOME-LaTeX"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=a82a9fc6f056929ea18d6dffd121e71b2c21768808c86ef1f34da0f86e220d77
+patch_args=-Np0
 
 # for 00-port-to-tepl-6.patch
 hostmakedepends+=" automake gettext-devel-tools libtool"
diff --git a/srcpkgs/gnome-photos/template b/srcpkgs/gnome-photos/template
index fee19723ed89..57280f653793 100644
--- a/srcpkgs/gnome-photos/template
+++ b/srcpkgs/gnome-photos/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Photos"
 distfiles="${GNOME_SITE}/gnome-photos/${version%.*}/gnome-photos-${version}.tar.xz"
 checksum=e02d73e138af8b2868b5cad7faa1bdd278aeade3b6c3c92836511a4e6f3af1af
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/gnome-screensaver/template b/srcpkgs/gnome-screensaver/template
index 1a23f6dcfb06..d0a3a8968ce8 100644
--- a/srcpkgs/gnome-screensaver/template
+++ b/srcpkgs/gnome-screensaver/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Projects/GnomeScreensaver"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=f39b78d4f7fed748c7f0a31d694112fb907c6d3c4e63db22eb858df07e962cd0
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/gnome-session/template b/srcpkgs/gnome-session/template
index e5bc350e66fd..ff7a0d03e67c 100644
--- a/srcpkgs/gnome-session/template
+++ b/srcpkgs/gnome-session/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://gitlab.gnome.org/GNOME/gnome-session"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*.*}/${pkgname}-${version}.tar.xz"
 checksum=9c787829ee32e13e1508b9aee2b1d9ba42a02c48e6c8094e34f3e7f92af4df82
+patch_args=-Np0
 
 post_install() {
 	rm -rf ${DESTDIR}/tmp
diff --git a/srcpkgs/gnome-settings-daemon/template b/srcpkgs/gnome-settings-daemon/template
index 081c88ebfd73..f6d6acf73f2d 100644
--- a/srcpkgs/gnome-settings-daemon/template
+++ b/srcpkgs/gnome-settings-daemon/template
@@ -20,6 +20,7 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.gnome.org/GNOME/gnome-settings-daemon"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*.*}/${pkgname}-${version}.tar.xz"
 checksum=37dfac1b69a53e2e499228420259d6e134c1c06b74530af88fa855bda1187b21
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" polkit"
diff --git a/srcpkgs/gnome-terminal/template b/srcpkgs/gnome-terminal/template
index 4a397445dd1a..89ddda4dfea8 100644
--- a/srcpkgs/gnome-terminal/template
+++ b/srcpkgs/gnome-terminal/template
@@ -15,6 +15,7 @@ homepage="https://wiki.gnome.org/Apps/Terminal"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=4c79af8ffe8bd3a5daca1911ea2c0acd6872860a1dd5d7eea219f4ab4ae556ac
 lib32disabled=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --disable-search-provider"
diff --git a/srcpkgs/gnu-efi-libs/template b/srcpkgs/gnu-efi-libs/template
index 0b8c679b5225..e85a677cbae1 100644
--- a/srcpkgs/gnu-efi-libs/template
+++ b/srcpkgs/gnu-efi-libs/template
@@ -12,6 +12,7 @@ homepage="https://sourceforge.net/projects/gnu-efi/"
 distfiles="${SOURCEFORGE_SITE}/gnu-efi/gnu-efi-${version}.tar.bz2"
 checksum=0196f2e1fd3c334b66e610a608a0e59233474c7a01bec7bc53989639aa327669
 nostrip=yes
+patch_args=-Np0
 
 # If we are cross-building we need to pass the cross-compilation triplet
 # to the CROSS_COMPILE environment variable so the build system uses
diff --git a/srcpkgs/gnucash/template b/srcpkgs/gnucash/template
index fa8bd17d09ad..084157bb4735 100644
--- a/srcpkgs/gnucash/template
+++ b/srcpkgs/gnucash/template
@@ -18,6 +18,7 @@ homepage="http://www.gnucash.org"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 #distfiles="https://sources.voidlinux.org/gnucash-${version}/gnucash-${version}.tar.bz2"
 checksum=bc1f48a8453488a2e9f6b83b68613aa55caebe4d2983460bdac7e084b46cffdc
+patch_args=-Np0
 
 pycompile_dirs="usr/share/gnucash/python"
 conf_files="/etc/gnucash/environment"
diff --git a/srcpkgs/gnupg2/template b/srcpkgs/gnupg2/template
index 36fba35e68bb..0d7118e83c3a 100644
--- a/srcpkgs/gnupg2/template
+++ b/srcpkgs/gnupg2/template
@@ -22,6 +22,7 @@ distfiles="https://gnupg.org/ftp/gcrypt/gnupg/gnupg-${version}.tar.bz2"
 checksum=6ff891fc7583a9c3fb9f097ee0d1de0a12469d4b53997e7ba5064950637dfaec
 build_options="ldap"
 build_options_default="ldap"
+patch_args=-Np0
 
 post_patch() {
 	# On at least aarch64, configure sets this even though it doesn't exist
diff --git a/srcpkgs/gnuradio-nrsc5/template b/srcpkgs/gnuradio-nrsc5/template
index 6299e7c90b02..0f7ad2134ac2 100644
--- a/srcpkgs/gnuradio-nrsc5/template
+++ b/srcpkgs/gnuradio-nrsc5/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/argilo/gr-nrsc5/"
 distfiles="https://github.com/argilo/gr-nrsc5/archive/v${version}.tar.gz"
 checksum=d736c4cb1104254d07296d2a61880e07149c9bfd1a49aed504215672d4e09485
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/gnustep-base/template b/srcpkgs/gnustep-base/template
index 483dd8011bee..aaf01eaaf64e 100644
--- a/srcpkgs/gnustep-base/template
+++ b/srcpkgs/gnustep-base/template
@@ -13,6 +13,7 @@ homepage="http://www.gnustep.org/"
 distfiles="http://ftp.gnustep.org/pub/gnustep/core/gnustep-base-${version}.tar.gz"
 checksum=c7d7c6e64ac5f5d0a4d5c4369170fc24ed503209e91935eb0e2979d1601039ed
 make_check=extended
+patch_args=-Np0
 
 nocross="objc doesn't get cross build at present within gcc"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/gnustep-make/template b/srcpkgs/gnustep-make/template
index e77d199252d0..4c6407db9f5b 100644
--- a/srcpkgs/gnustep-make/template
+++ b/srcpkgs/gnustep-make/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnustep.org"
 distfiles="http://ftp.gnustep.org/pub/gnustep/core/${pkgname}-${version}.tar.gz"
 checksum=a0b066c11257879c7c85311dea69c67f6dc741ef339db6514f85b64992c40d2a
+patch_args=-Np0
 
 post_install() {
 	sed -i 's,/builddir/.xbps-gnustep-make/wrappers,/usr/bin,g' ${DESTDIR}/usr/share/GNUstep/Makefiles/config.make
diff --git a/srcpkgs/gnutls/template b/srcpkgs/gnutls/template
index 3f02c29d3b27..fc1a507c8b14 100644
--- a/srcpkgs/gnutls/template
+++ b/srcpkgs/gnutls/template
@@ -22,6 +22,7 @@ license="GPL-3.0-only, LGPL-2.1-or-later"
 homepage="https://gnutls.org"
 distfiles="https://www.gnupg.org/ftp/gcrypt/gnutls/v${version%.*}/gnutls-${version}.tar.xz"
 checksum=1b79b381ac283d8b054368b335c408fedcb9b7144e0c07f531e3537d4328f3b3
+patch_args=-Np0
 
 pre_check() {
 	# same as $PASS in tests/cert-tests/certtool
diff --git a/srcpkgs/goaccess/template b/srcpkgs/goaccess/template
index ce6231cc0253..2dec69e429b9 100644
--- a/srcpkgs/goaccess/template
+++ b/srcpkgs/goaccess/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://goaccess.io"
 distfiles="http://tar.goaccess.io/goaccess-${version}.tar.gz"
 checksum=c4820e781f75d9446f6b1be5fc8d11c6ec94a47fa8dd523001698c589f46c1ba
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/godot/template b/srcpkgs/godot/template
index aa63677d6d8c..134880e902c0 100644
--- a/srcpkgs/godot/template
+++ b/srcpkgs/godot/template
@@ -29,6 +29,7 @@ homepage="https://www.godotengine.org/"
 distfiles="https://github.com/godotengine/${pkgname}/archive/${version}-stable.tar.gz"
 checksum=595ff16eaef3d0b6c030575f4b7fcae8b805e407b90a2f71af3e4142362c1794
 nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/6342/steps/shell_3/logs/stdio
+patch_args=-Np0
 
 CFLAGS+=" -fPIE -fPIC"
 LDFLAGS+=" -pie"
diff --git a/srcpkgs/gogglesmm/template b/srcpkgs/gogglesmm/template
index 29579786726d..0b4c48ad6b25 100644
--- a/srcpkgs/gogglesmm/template
+++ b/srcpkgs/gogglesmm/template
@@ -17,6 +17,7 @@ distfiles="https://github.com/gogglesmm/gogglesmm/archive/${version}.tar.gz"
 checksum=f068667e0a825ac792eda344cbe94c29fe8668ddbdd269c094e5bf168acd2380
 python_version=2 #unverified
 nocross="Tries to execute compiled code"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) broken="PTHREAD_RWLOCK_PREFER_WRITER_NP usage" ;;
diff --git a/srcpkgs/goldendict/template b/srcpkgs/goldendict/template
index 7553e408d1a7..c987fefdac41 100644
--- a/srcpkgs/goldendict/template
+++ b/srcpkgs/goldendict/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="http://goldendict.org/"
 distfiles="https://github.com/goldendict/goldendict/archive/${version/RC/-RC}.tar.gz"
 checksum=bccee0a3d3902f8fa31e439e220a405065fff774e5f8c581be2b0743d3f83fde
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated"
 
diff --git a/srcpkgs/gosu/template b/srcpkgs/gosu/template
index 1dffcc0a7665..9bc74859e375 100644
--- a/srcpkgs/gosu/template
+++ b/srcpkgs/gosu/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://www.libgosu.org"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=4dbc4998e2c630ee7758544de4286c70c68e639524b6088ccdc7b5487c928695
+patch_args=-Np0
 
 CXXFLAGS+=" -D_GLIBCXX_USE_C99_STDIO=1"
 
diff --git a/srcpkgs/goxel/template b/srcpkgs/goxel/template
index e731c606727d..ee3c31ace469 100644
--- a/srcpkgs/goxel/template
+++ b/srcpkgs/goxel/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://guillaumechereau.github.io/goxel/"
 distfiles="https://github.com/guillaumechereau/goxel/archive/v${version}.tar.gz"
 checksum=dfb91e62bdd5332e3938923db924bae43f12eaa181040d16e4cc7082316adf1c
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/gpart/template b/srcpkgs/gpart/template
index d222fbf9a784..3c7332430024 100644
--- a/srcpkgs/gpart/template
+++ b/srcpkgs/gpart/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/baruch/gpart"
 distfiles="https://github.com/baruch/gpart/archive/${version}.tar.gz"
 checksum=ec56d12ec9ffdb9877c12692ea6e51620b1ae44473d3d253b27fc31ed9ebb4dd
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gperftools/template b/srcpkgs/gperftools/template
index de7e9423d343..859e6a4e874e 100644
--- a/srcpkgs/gperftools/template
+++ b/srcpkgs/gperftools/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/gperftools/gperftools"
 distfiles="${homepage}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=240deacdd628b6459671b83eb0c4db8e97baadf659f25b92e9a078d536bd513e
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	# needed by some newly enabled code
diff --git a/srcpkgs/gpgme/template b/srcpkgs/gpgme/template
index 072da12708d4..62f7384c0bf9 100644
--- a/srcpkgs/gpgme/template
+++ b/srcpkgs/gpgme/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.gnupg.org/software/gpgme/index.html"
 distfiles="https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-${version}.tar.bz2"
 checksum=eebc3c1b27f1c8979896ff361ba9bb4778b508b2496c2fc10e3775a40b1de1ad
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" ac_cv_sys_file_offset_bits=no"
diff --git a/srcpkgs/gpick/template b/srcpkgs/gpick/template
index b30108334144..aad5569a3320 100644
--- a/srcpkgs/gpick/template
+++ b/srcpkgs/gpick/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/thezbyg/gpick"
 distfiles="https://github.com/thezbyg/gpick/archive/${pkgname}-${version}.tar.gz"
 checksum=7d02be171cc88c44ad3e3572c0922bbabedc9d542b989f324fca9d5db3161e9c
+patch_args=-Np0
 
 post_install() {
 	rm -rf ${DESTDIR}/usr/share/doc
diff --git a/srcpkgs/gpm/template b/srcpkgs/gpm/template
index 360f58668c53..534422693feb 100644
--- a/srcpkgs/gpm/template
+++ b/srcpkgs/gpm/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.nico.schottelius.org/software/gpm/"
 distfiles="http://www.nico.schottelius.org/software/gpm/archives/gpm-${version}.tar.lzma"
 checksum=a955053b36556ffa7c628ce18fd6de7d625966573fa412fb08869533d8f7385c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gpsbabel/template b/srcpkgs/gpsbabel/template
index 24c0a420e09d..12305e0fe6e3 100644
--- a/srcpkgs/gpsbabel/template
+++ b/srcpkgs/gpsbabel/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.gpsbabel.org/"
 distfiles="https://github.com/gpsbabel/${pkgname}/archive/${pkgname}_${version//./_}.tar.gz"
 checksum=30b186631fb43db576b8177385ed5c31a5a15c02a6bc07bae1e0d7af9058a797
+patch_args=-Np0
 
 replaces="gpsbabel-gui>=0"
 
diff --git a/srcpkgs/gpsd/template b/srcpkgs/gpsd/template
index 4198bf214936..6d76d3417361 100644
--- a/srcpkgs/gpsd/template
+++ b/srcpkgs/gpsd/template
@@ -18,6 +18,7 @@ distfiles="http://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-${version}
 checksum=3998a5cbb728e97f896f46c3c83301b1e6c5d859393e58c2fad8c5426774d571
 python_version=3	# Must be same version as scons
 system_accounts="gpsd"
+patch_args=-Np0
 
 subpackages="gpsd-devel gpsd-qt gpsd-qt-devel"
 if [ -z "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/grpc/template b/srcpkgs/grpc/template
index 60677cf4f68b..d0763bb7db4b 100644
--- a/srcpkgs/grpc/template
+++ b/srcpkgs/grpc/template
@@ -20,6 +20,7 @@ distfiles="${homepage}/archive/v${version}/${pkgname}-${version}.tar.gz
  https://github.com/abseil/abseil-cpp/archive/${_abseilver}/abseil-cpp-${_abseilver}.tar.gz"
 checksum="abd9e52c69000f2c051761cfa1f12d52d8b7647b6c66828a91d462e796f2aede
  35f22ef5cb286f09954b7cc4c85b5a3f6221c9d4df6b8c4a1e9d399555b366ee"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# need host grpc_cpp_plugin
diff --git a/srcpkgs/grub-customizer/template b/srcpkgs/grub-customizer/template
index 67f3cfb3e7ee..f0ead5f9e0ed 100644
--- a/srcpkgs/grub-customizer/template
+++ b/srcpkgs/grub-customizer/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://launchpad.net/grub-customizer/"
 distfiles="https://launchpad.net/${pkgname}/${version%.*}/${version}/+download/${pkgname}_${version}.tar.gz"
 checksum=532f793eea4c6ee6cde4bc987966fa1924946c1da5e3c7b4d4a97f2689661ee0
+patch_args=-Np0
 
 pre_configure() {
 	# Modify desktop file for Void Linux
diff --git a/srcpkgs/gscan2pdf/template b/srcpkgs/gscan2pdf/template
index 9c137da14b8b..28cb1dd90131 100644
--- a/srcpkgs/gscan2pdf/template
+++ b/srcpkgs/gscan2pdf/template
@@ -18,6 +18,7 @@ homepage="http://gscan2pdf.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=e5c10a9e695674308d29fe8661c5bb7230e25dfbc098716c26a3188ef1e54074
 nocross=yes
+patch_args=-Np0
 
 do_check() {
 	# Tests require a Display server
diff --git a/srcpkgs/gscope3/template b/srcpkgs/gscope3/template
index ff6db18c2d4a..2a2d58f2f6f1 100644
--- a/srcpkgs/gscope3/template
+++ b/srcpkgs/gscope3/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://github.com/tefletch/gscope"
 distfiles="https://github.com/tefletch/gscope/archive/${_release}.tar.gz"
 checksum=06d0fd4351b4f8dc1850c81b07c112b0974bfb140f9fe56f8af6f865be3e0a2a
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gsl/template b/srcpkgs/gsl/template
index 1d6677032a30..c11a13e203bf 100644
--- a/srcpkgs/gsl/template
+++ b/srcpkgs/gsl/template
@@ -9,6 +9,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/gsl/gsl.html"
 distfiles="${GNU_SITE}/gsl/${pkgname}-${version}.tar.gz"
 checksum=b782339fc7a38fe17689cb39966c4d821236c28018b6593ddb6fd59ee40786a8
+patch_args=-Np0
 
 gsl-devel_package() {
 	depends="gsl>=${version}_${revision}"
diff --git a/srcpkgs/gsoap/template b/srcpkgs/gsoap/template
index c0cf0340566b..132f058dfe9a 100644
--- a/srcpkgs/gsoap/template
+++ b/srcpkgs/gsoap/template
@@ -14,6 +14,7 @@ homepage="http://www.cs.fsu.edu/~engelen/soap.html"
 distfiles="${SOURCEFORGE_SITE}/gsoap2/gsoap_${version}.zip"
 checksum=2ca21b5ab2b40d899566c559f71a1d51ed7eac3f00160ab78060027a3ee6488f
 disable_parallel_build=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 7b97a3e3184b..0cf2cdc941f9 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -37,6 +37,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://gstreamer.freedesktop.org"
 distfiles="${homepage}/src/${pkgname/1/}/${pkgname/1/}-${version}.tar.xz"
 checksum=74e806bc5595b18c70e9ca93571e27e79dfb808e5d2e7967afa952b52e99c85f
+patch_args=-Np0
 
 build_options="gir gme"
 build_options_default="gir"
diff --git a/srcpkgs/gst-plugins-base1/template b/srcpkgs/gst-plugins-base1/template
index 050521f071c3..ca6cdbf62db9 100644
--- a/srcpkgs/gst-plugins-base1/template
+++ b/srcpkgs/gst-plugins-base1/template
@@ -23,6 +23,7 @@ license="GPL-2.0-or-later, LGPL-2.0-or-later"
 homepage="https://gstreamer.freedesktop.org"
 distfiles="${homepage}/src/${pkgname/1/}/${pkgname/1/}-${version}.tar.xz"
 checksum=29e53229a84d01d722f6f6db13087231cdf6113dd85c25746b9b58c3d68e8323
+patch_args=-Np0
 
 build_options="cdparanoia gir sndio"
 build_options_default="cdparanoia gir"
diff --git a/srcpkgs/gst123/template b/srcpkgs/gst123/template
index f3a2d41316b2..fa17cc86b1f3 100644
--- a/srcpkgs/gst123/template
+++ b/srcpkgs/gst123/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://space.twc.de/~stefan/gst123.php/"
 distfiles="http://space.twc.de/~stefan/gst123/gst123-$version.tar.bz2"
 checksum=c7b4729773f66cc679e94df76bcc6a95a2222192730f906e527e72624f084a7d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gstreamermm/template b/srcpkgs/gstreamermm/template
index 863e982f34ea..54bec6d8dc2d 100644
--- a/srcpkgs/gstreamermm/template
+++ b/srcpkgs/gstreamermm/template
@@ -12,6 +12,7 @@ homepage="https://gstreamer.freedesktop.org/bindings/cplusplus.html"
 license="GPL-2, GPL-2.1"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=be58fe9ef7d7e392568ec85e80a84f4730adbf91fb0355ff7d7c616675ea8d60
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/gthumb/template b/srcpkgs/gthumb/template
index ed6afee1b837..e383495da80a 100644
--- a/srcpkgs/gthumb/template
+++ b/srcpkgs/gthumb/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://live.gnome.org/gthumb"
 distfiles="${GNOME_SITE}/gthumb/${version%.*}/gthumb-${version}.tar.xz"
 checksum=fdeae42818378f9b3cab00604eeeb5b7c0a7a5ecfe69de08b993867746435c93
+patch_args=-Np0
 
 LDFLAGS="-fPIC"
 
diff --git a/srcpkgs/gtk-sharp/template b/srcpkgs/gtk-sharp/template
index f3125a457881..d20183b8daad 100644
--- a/srcpkgs/gtk-sharp/template
+++ b/srcpkgs/gtk-sharp/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 short_desc="Graphical User Interface Toolkit for mono and .Net (Gtk#)"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=6440f571416267ae0cb5698071d087b31e3084693fa2c829b1db37ca7ea2c3a2
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	_have_mdoc="no"
diff --git a/srcpkgs/gtk-sharp2/template b/srcpkgs/gtk-sharp2/template
index 3137a6310b25..07e49e956fe7 100644
--- a/srcpkgs/gtk-sharp2/template
+++ b/srcpkgs/gtk-sharp2/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-only"
 homepage="https://www.mono-project.com/docs/gui/gtksharp/"
 distfiles="https://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-${version}.tar.gz"
 checksum=02680578e4535441064aac21d33315daa009d742cab8098ac8b2749d86fffb6a
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	_have_mdoc="no"
diff --git a/srcpkgs/gtk-theme-config/template b/srcpkgs/gtk-theme-config/template
index 6dd97132c14c..66ce7d1851fb 100644
--- a/srcpkgs/gtk-theme-config/template
+++ b/srcpkgs/gtk-theme-config/template
@@ -13,6 +13,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/satya164/gtk-theme-config"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=174aac3ea43966168d120dbd9e0f23d7900d095ee1b0cf32472d59b0fdea8448
+patch_args=-Np0
 
 pre_build() {
 	local _p _cflags _ldflags
diff --git a/srcpkgs/gtkglext/template b/srcpkgs/gtkglext/template
index 737a97415982..640d422140c7 100644
--- a/srcpkgs/gtkglext/template
+++ b/srcpkgs/gtkglext/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://projects.gnome.org/gtkglext"
 distfiles="${SOURCEFORGE_SITE}/gtkglext/gtkglext/${version}/gtkglext-${version}.tar.gz"
 checksum=e5073f3c6b816e7fa67d359d9745a5bb5de94a628ac85f624c992925a46844f9
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gtkpod/template b/srcpkgs/gtkpod/template
index bfcb41e62193..5cb367989c0b 100644
--- a/srcpkgs/gtkpod/template
+++ b/srcpkgs/gtkpod/template
@@ -16,6 +16,7 @@ distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=a57dc8ae9138e0cb4cee98691e7a95001130c9ea7823e6a75cc72503facd3a76
 # Line 55: print in python 2 style
 python_version=2
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gtkspell/template b/srcpkgs/gtkspell/template
index bf480eaae320..3b95f95dfed3 100644
--- a/srcpkgs/gtkspell/template
+++ b/srcpkgs/gtkspell/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://gtkspell.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=8fc7dc560167b2cb7193e76aca625a152dc19b0ebf49816b78539cbb90d80d02
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' \
diff --git a/srcpkgs/gtypist/template b/srcpkgs/gtypist/template
index d4bf9dc41846..f9e1bd306359 100644
--- a/srcpkgs/gtypist/template
+++ b/srcpkgs/gtypist/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.gnu.org/software/gtypist/"
 distfiles="$GNU_SITE/gtypist/gtypist-${version}.tar.xz"
 checksum="c13af40b12479f8219ffa6c66020618c0ce305ad305590fde02d2c20eb9cf977"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf
diff --git a/srcpkgs/guake/template b/srcpkgs/guake/template
index 9fbc1895da95..c31b734bc58a 100644
--- a/srcpkgs/guake/template
+++ b/srcpkgs/guake/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://guake-project.org/"
 distfiles="${PYPI_SITE}/g/guake/guake-${version}.tar.gz"
 checksum=31fd7d6f62aa0a5e0121e240682e6a9e5ce61cdb266f9438987837f52d552e47
+patch_args=-Np0
 
 pre_build() {
 	GUAKE_SCHEMA_DIR="/usr/share/glib-2.0/schemas"
diff --git a/srcpkgs/guile/template b/srcpkgs/guile/template
index f9ce43c06709..60eaa34eb6eb 100644
--- a/srcpkgs/guile/template
+++ b/srcpkgs/guile/template
@@ -14,6 +14,7 @@ homepage="http://www.gnu.org/software/guile"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=44b4c5fbbe257ccdebea18420212c9b3e90c3c86a54920d8554039fc6769a007
 subpackages="libguile guile-devel"
+patch_args=-Np0
 
 if [ "$XBPS_ENDIAN" != "$XBPS_TARGET_ENDIAN" ]; then
 	broken="opposite-endian host generates broken files"
diff --git a/srcpkgs/guile1.8/template b/srcpkgs/guile1.8/template
index 2f575000cbfe..47192116554f 100644
--- a/srcpkgs/guile1.8/template
+++ b/srcpkgs/guile1.8/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="https://www.gnu.org/software/guile/guile.html"
 distfiles="${GNU_SITE}/${pkgname/1.8/}/${pkgname/1.8/}-${version}.tar.gz"
 checksum=c3471fed2e72e5b04ad133bbaaf16369e8360283679bcf19800bc1b381024050
+patch_args=-Np0
 
 post_install() {
 	# conflicts with guile-2.0
diff --git a/srcpkgs/guitarix2/template b/srcpkgs/guitarix2/template
index 2d066a454c33..8435021d0db0 100644
--- a/srcpkgs/guitarix2/template
+++ b/srcpkgs/guitarix2/template
@@ -19,6 +19,7 @@ license="GPL-3.0-or-later"
 homepage="http://guitarix.org"
 distfiles="${SOURCEFORGE_SITE}/guitarix/guitarix/guitarix2-${version}.tar.xz"
 checksum=797e46e07148fba89e46fac4efe73a5b3a98f070bca85db3d143de781b142c80
+patch_args=-Np0
 
 build_options="avahi bluez"
 desc_option_avahi="Build with avahi support"
diff --git a/srcpkgs/gummiboot/template b/srcpkgs/gummiboot/template
index 68e6f5be926c..966eae785ea9 100644
--- a/srcpkgs/gummiboot/template
+++ b/srcpkgs/gummiboot/template
@@ -15,6 +15,7 @@ license="LGPL-2.0-or-later"
 homepage="https://pkgs.alpinelinux.org/package/edge/main/x86/gummiboot"
 distfiles="https://dev.alpinelinux.org/archive/gummiboot/gummiboot-${version}.tar.gz"
 checksum=2b649a6eb22007cd34bb355ba4ca6c1a8058e115c13048985f09a0f11f3d5295
+patch_args=-Np0
 
 CFLAGS="-std=gnu89"
 
diff --git a/srcpkgs/gupnp-igd/template b/srcpkgs/gupnp-igd/template
index 314a36472b85..416943f715b6 100644
--- a/srcpkgs/gupnp-igd/template
+++ b/srcpkgs/gupnp-igd/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="http://gupnp.org"
 distfiles="${GNOME_SITE}/${pkgname}/0.2/${pkgname}-${version}.tar.xz"
 checksum=8b4a1aa38bacbcac2c1755153147ead7ee9af7d4d1f544b6577cfc35e10e3b20
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/guvcview/template b/srcpkgs/guvcview/template
index 447b27aecf50..be0eba3ceed4 100644
--- a/srcpkgs/guvcview/template
+++ b/srcpkgs/guvcview/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="http://guvcview.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-src-${version}.tar.gz"
 checksum=95381cef5ee139e15f90b79d1425cc22bbaae43f87452cdce6674636aff37e85
+patch_args=-Np0
 
 post_extract() {
 	sed '31a#include <locale.h>' -i  guvcview/guvcview.c
diff --git a/srcpkgs/gwenhywfar/template b/srcpkgs/gwenhywfar/template
index c6e01f4bea86..fb27f03a88fd 100644
--- a/srcpkgs/gwenhywfar/template
+++ b/srcpkgs/gwenhywfar/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/aqbanking/gwenhywfar"
 distfiles="https://github.com/aqbanking/gwenhywfar/archive/${version}.tar.gz"
 checksum=9f2876770824a283d02fd730bb1f7a98970fa6f20121f4af433d6698831c3a84
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/gxemul/template b/srcpkgs/gxemul/template
index dabacd79492b..ea1ffa47d802 100644
--- a/srcpkgs/gxemul/template
+++ b/srcpkgs/gxemul/template
@@ -11,6 +11,7 @@ changelog="http://gavare.se/gxemul/gxemul-stable/HISTORY.html"
 distfiles="http://gavare.se/gxemul/src/gxemul-${version}.tar.gz"
 checksum=a703ac7965feb3c701c7677d78c353f0efa1af4d36a9508fb045eb63dd571547
 nocross="./_testpri: cannot execute binary file: Exec format error"
+patch_args=-Np0
 
 do_configure() {
 	PREFIX=/usr MANDIR=${DESTDIR}/usr/share/man ./configure
diff --git a/srcpkgs/gzdoom/template b/srcpkgs/gzdoom/template
index ce1204db0d01..1ecb236fea60 100644
--- a/srcpkgs/gzdoom/template
+++ b/srcpkgs/gzdoom/template
@@ -22,6 +22,7 @@ checksum="21eb1a221dae532a6c29f243584be3d5454f8eb4da85a67e405115f89666611d
  e0b85ca089a3714968f56acc9525f352dbec14f15e88e0aef1cdece64c4f3cbf"
 skip_extraction="${pkgname}_${version}_amd64.deb"
 nocross=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" musl-fts-devel libexecinfo-devel"
diff --git a/srcpkgs/h2o/template b/srcpkgs/h2o/template
index 3b300024f05c..054560ce7e78 100644
--- a/srcpkgs/h2o/template
+++ b/srcpkgs/h2o/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://h2o.examp1e.net/"
 distfiles="https://github.com/h2o/h2o/archive/v${version}.tar.gz"
 checksum=f8cbc1b530d85ff098f6efc2c3fdbc5e29baffb30614caac59d5c710f7bda201
+patch_args=-Np0
 
 system_accounts="h2o"
 
diff --git a/srcpkgs/halibut/template b/srcpkgs/halibut/template
index e428d771ea86..9ffa4c05c386 100644
--- a/srcpkgs/halibut/template
+++ b/srcpkgs/halibut/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://www.chiark.greenend.org.uk/~sgtatham/halibut/"
 distfiles="http://www.chiark.greenend.org.uk/~sgtatham/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=1aedfb6240f27190c36a390fcac9ce732edbdbaa31c85ee675b994e2b083163f
+patch_args=-Np0
 
 CFLAGS='-I../charset -I../build -fcommon'
 
diff --git a/srcpkgs/hamlib/template b/srcpkgs/hamlib/template
index 086b6c614c1f..bd96ed226bbc 100644
--- a/srcpkgs/hamlib/template
+++ b/srcpkgs/hamlib/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later, GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/hamlib/"
 distfiles="${SOURCEFORGE_SITE}/hamlib/${version}/${pkgname}-${version}.tar.gz"
 checksum=e200b22f307e9a0c826187c2b08fe81c7d0283cf07056e6db3463d1481580fd5
+patch_args=-Np0
 
 pre_configure() {
 	CFLAGS+=" -DNO_POSIX_2008_LOCALE -D_GNU_SOURCE"
diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index 6992bc520ed3..e1bf58b62889 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -24,6 +24,7 @@ homepage="https://handbrake.fr/"
 distfiles="https://github.com/HandBrake/HandBrake/releases/download/${version}/HandBrake-${version}-source.tar.bz2"
 checksum=218a37d95f48b5e7cf285363d3ab16c314d97627a7a710cab3758902ae877f85
 nocross=yes
+patch_args=-Np0
 
 build_options="fdk_aac nvenc"
 
diff --git a/srcpkgs/hardinfo/template b/srcpkgs/hardinfo/template
index 6c2745d675c3..a8c28a32a11e 100644
--- a/srcpkgs/hardinfo/template
+++ b/srcpkgs/hardinfo/template
@@ -13,6 +13,7 @@ homepage="http://sourceforge.net/projects/hardinfo.berlios/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}.berlios/${pkgname}-${version}.tar.bz2"
 checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a
 lib32disabled=yes
+patch_args=-Np0
 
 post_patch() {
 	local _arch
diff --git a/srcpkgs/heaptrack/template b/srcpkgs/heaptrack/template
index f4f4c35044f7..347ce6b4be41 100644
--- a/srcpkgs/heaptrack/template
+++ b/srcpkgs/heaptrack/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/KDE/heaptrack"
 distfiles="https://github.com/KDE/heaptrack/archive/v${version}.tar.gz"
 checksum=f299a4846b80e607a412f439e17cddae13f0529701ffdb05eaa7ba878865717e
+patch_args=-Np0
 
 heaptrack-gui_package() {
 	short_desc+=" - GUI"
diff --git a/srcpkgs/hedgewars/template b/srcpkgs/hedgewars/template
index 7060dbc37d95..0dc528ff7ce0 100644
--- a/srcpkgs/hedgewars/template
+++ b/srcpkgs/hedgewars/template
@@ -21,6 +21,7 @@ nopie_files="/usr/bin/hwengine"
 nocross="Needs investigation: fails to link hwengine"
 replaces="hedgewars-data>=0"
 export CMAKE_GENERATOR="Unix Makefiles"
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	x86_64*|ppc64le|ppc64)
diff --git a/srcpkgs/hexchat/template b/srcpkgs/hexchat/template
index 90b8de48193a..580dbd4a5eb5 100644
--- a/srcpkgs/hexchat/template
+++ b/srcpkgs/hexchat/template
@@ -20,6 +20,7 @@ distfiles="https://dl.hexchat.net/hexchat/${pkgname}-${version}.tar.xz"
 checksum=901a9d13db5a4da69b827f6093306bbd16863dc49016f7668bd3e4506512e882
 build_options="LuaJIT"
 lib32disabled=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	arm*-musl) : "LuaJIT is broken for musl cross arches" ;;
diff --git a/srcpkgs/hexer/template b/srcpkgs/hexer/template
index 2c2b7486a8d8..89b88a46a13e 100644
--- a/srcpkgs/hexer/template
+++ b/srcpkgs/hexer/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://devel.ringlet.net/editors/hexer/"
 distfiles="https://devel.ringlet.net/files/editors/hexer/hexer-${version}.tar.xz"
 checksum=e6b84ace5283825943f88ce7ec4ae836ec15ba41978b3a858d6d478cfe09ff94
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYRIGHT
diff --git a/srcpkgs/heyu/template b/srcpkgs/heyu/template
index 93b3ad7cc582..0bd88177c04d 100644
--- a/srcpkgs/heyu/template
+++ b/srcpkgs/heyu/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.heyu.org"
 distfiles="https://github.com/HeyuX10Automation/heyu/archive/v${version}.tar.gz"
 checksum=621a20f45eef62070b3f95ad17ecbc3e7e1f7352d25dac86093ff6938b606baa
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/hfsprogs/template b/srcpkgs/hfsprogs/template
index f1e0c690511d..12b6d3a31265 100644
--- a/srcpkgs/hfsprogs/template
+++ b/srcpkgs/hfsprogs/template
@@ -14,6 +14,7 @@ license="APSL-2.0"
 homepage="https://www.opensource.apple.com/"
 distfiles="https://src.fedoraproject.org/repo/pkgs/hfsplus-tools/diskdev_cmds-${version}.tar.gz/${_md5sum}/diskdev_cmds-${version}.tar.gz"
 checksum=b01b203a97f9a3bf36a027c13ddfc59292730552e62722d690d33bd5c24f5497
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/higan/template b/srcpkgs/higan/template
index 500c11f64aa4..c744321efe45 100644
--- a/srcpkgs/higan/template
+++ b/srcpkgs/higan/template
@@ -17,6 +17,7 @@ license="GPL-3.0-or-later, ISC"
 homepage="https://byuu.org/emulation/higan/"
 distfiles="https://byuu.org/download/higan/higan_v${version}-source.zip"
 checksum=1b70d85454aaae557fd5ba5aaed9add8cb8c939f2b7a07a6d3734f971bb07ab7
+patch_args=-Np0
 
 build_options="icarus"
 build_options_default="icarus"
diff --git a/srcpkgs/hiredis/template b/srcpkgs/hiredis/template
index 05e5d6cf565f..c4cca466c023 100644
--- a/srcpkgs/hiredis/template
+++ b/srcpkgs/hiredis/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/redis/hiredis"
 distfiles="https://github.com/redis/hiredis/archive/v${version}.tar.gz"
 checksum=2a0b5fe5119ec973a0c1966bfc4bd7ed39dbce1cb6d749064af9121fe971936f
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/hitch/template b/srcpkgs/hitch/template
index 805170a687f6..bf3889702cef 100644
--- a/srcpkgs/hitch/template
+++ b/srcpkgs/hitch/template
@@ -14,6 +14,7 @@ homepage="https://hitch-tls.org/"
 distfiles="https://hitch-tls.org/source/hitch-${version}.tar.gz"
 checksum=c97ef8f1e115156640c40dfdfe9662d5f6d57a796fccad3bbad198ec797ce5c4
 system_accounts="_hitch"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e "s/grep -Pq/grep -q/" -e 's/\\t/\t/' \
diff --git a/srcpkgs/hlint/template b/srcpkgs/hlint/template
index 16fbb03ce2b9..7a68e466759f 100644
--- a/srcpkgs/hlint/template
+++ b/srcpkgs/hlint/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/ndmitchell/${pkgname}/archive/v${version}.tar.gz"
 checksum=207539d3627efd3caed9e6fd3b1aeb8f1eb64553f1f9f166090adbf2fb71e172
 nocross=yes # Can't yet cross compile Haskell
 nopie_files="/usr/bin/hlint"
+patch_args=-Np0
 
 post_install() {
 	rm -f ${DESTDIR}/usr/bin/engine
diff --git a/srcpkgs/hosts-update/template b/srcpkgs/hosts-update/template
index 5d872b4f4e89..eaf1d2f63a30 100644
--- a/srcpkgs/hosts-update/template
+++ b/srcpkgs/hosts-update/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://github.com/graysky2/hosts-update"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum="9a0fdb028beaf9fa4c2ec5f1a0030fcfe1a996ea42b874b944ec07885ca0f2ba"
+patch_args=-Np0
 
 post_install() {
 	vlicense MIT
diff --git a/srcpkgs/hplip/template b/srcpkgs/hplip/template
index 397508c55a3f..3dc5da2ca413 100644
--- a/srcpkgs/hplip/template
+++ b/srcpkgs/hplip/template
@@ -33,6 +33,7 @@ homepage="https://developers.hp.com/hp-linux-imaging-and-printing"
 distfiles="${SOURCEFORGE_SITE}/hplip/hplip/${version}/hplip-${version}.tar.gz"
 checksum=36251189aa9cc349f6a3eacbb7ac3c4fd26fc9f087c9f75cee051010c85d2ddf
 conflicts="hplip-gui"
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libusb-1.0 -I${XBPS_CROSS_BASE}/${py3_inc}"
 
diff --git a/srcpkgs/hstr/template b/srcpkgs/hstr/template
index ee259a9eac03..443d455e8610 100644
--- a/srcpkgs/hstr/template
+++ b/srcpkgs/hstr/template
@@ -12,6 +12,7 @@ homepage="https://github.com/dvorka/hstr"
 changelog="https://raw.githubusercontent.com/dvorka/hstr/master/Changelog"
 distfiles="https://github.com/dvorka/hstr/archive/${version}.tar.gz"
 checksum=c7e7408671757b3f4be9c5a59b4e2d56e7a7b601ace2a94eb6b2b61f20ee890b
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i 's|ncursesw/curses.h|curses.h|g' src/include/hstr.h
diff --git a/srcpkgs/ht/template b/srcpkgs/ht/template
index 2506a2c97206..7535d6cca893 100644
--- a/srcpkgs/ht/template
+++ b/srcpkgs/ht/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://hte.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/hte/ht-source/${pkgname}-${version}.tar.bz2"
 checksum=31f5e8e2ca7f85d40bb18ef518bf1a105a6f602918a0755bc649f3f407b75d70
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/http-parser/template b/srcpkgs/http-parser/template
index a372064d4a79..67cf7f77d6c2 100644
--- a/srcpkgs/http-parser/template
+++ b/srcpkgs/http-parser/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/nodejs/http-parser"
 distfiles="${homepage}/archive/${_githash}.tar.gz"
 checksum=765a21444322ea2476ca1e3cfeb74d280eeb37f4713cf52d2bf398dabf6e4128
+patch_args=-Np0
 
 pre_install() {
 	vmkdir usr/lib/pkgconfig
diff --git a/srcpkgs/httpdirfs/template b/srcpkgs/httpdirfs/template
index 0028d235c5db..6b99f599778f 100644
--- a/srcpkgs/httpdirfs/template
+++ b/srcpkgs/httpdirfs/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/fangfufu/httpdirfs"
 distfiles="https://github.com/fangfufu/httpdirfs/archive/${version}.tar.gz"
 checksum=05be4d83434eaea002f550b77aed6c05ff135927662d53a6e2b224e766a50a9a
+patch_args=-Np0
 
 CFLAGS="-D_FILE_OFFSET_BITS=64"
 
diff --git a/srcpkgs/hugin/template b/srcpkgs/hugin/template
index 451e75fe6825..e3b975ff5298 100644
--- a/srcpkgs/hugin/template
+++ b/srcpkgs/hugin/template
@@ -19,6 +19,7 @@ homepage="http://hugin.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${pkgname}-${version%.*}/${pkgname}-${version}.tar.bz2"
 checksum=283e7601259a7914cb075333424410928a439dc5f84216f33e2fe55501fbcacb
 python_version=3
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" python3"
diff --git a/srcpkgs/hunspell/template b/srcpkgs/hunspell/template
index 929f4b1893e7..04144a0ade22 100644
--- a/srcpkgs/hunspell/template
+++ b/srcpkgs/hunspell/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1"
 homepage="https://hunspell.github.io/"
 distfiles="https://github.com/hunspell/hunspell/archive/v${version}.tar.gz"
 checksum=bb27b86eb910a8285407cf3ca33b62643a02798cf2eef468c0a74f6c3ee6bc8a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/i3status/template b/srcpkgs/i3status/template
index 5ef9f206834f..5edaa41782d5 100644
--- a/srcpkgs/i3status/template
+++ b/srcpkgs/i3status/template
@@ -16,6 +16,7 @@ homepage="https://www.i3wm.org/i3status/"
 distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
 checksum=ce89c9ff8565f62e88299f1a611229afdfc356b4e97368a5f8c4f06ad2fa1466
 conf_files="/etc/i3status.conf"
+patch_args=-Np0
 
 build_options="pulseaudio"
 build_options_default="pulseaudio"
diff --git a/srcpkgs/ibus-anthy/template b/srcpkgs/ibus-anthy/template
index 9b96fa820633..8e3bb449acd4 100644
--- a/srcpkgs/ibus-anthy/template
+++ b/srcpkgs/ibus-anthy/template
@@ -15,6 +15,7 @@ homepage="https://github.com/ibus/ibus/wiki"
 distfiles="https://github.com/ibus/${pkgname}/archive/${version}.tar.gz"
 checksum=57d42a302be72409708274aa680c6d7515077766853a2b9193b9974c9c6eeaf6
 make_check=extended
+patch_args=-Np0
 
 post_patch() {
 	2to3 -w gir/test.py
diff --git a/srcpkgs/ibus-avro/template b/srcpkgs/ibus-avro/template
index 22b51f29ee94..5067e69d7619 100644
--- a/srcpkgs/ibus-avro/template
+++ b/srcpkgs/ibus-avro/template
@@ -13,6 +13,7 @@ license="MPL-1.1"
 homepage="https://linux.omicronlab.com"
 distfiles="https://github.com/sarim/${pkgname}/archive/${version}.tar.gz"
 checksum=9d00f12f2d01916e56533fd0267173b644a57161770b60a0f4d9daa61fe8bd1a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -vfi
diff --git a/srcpkgs/id3lib/template b/srcpkgs/id3lib/template
index 44cb7f55f1dd..7452bae122e9 100644
--- a/srcpkgs/id3lib/template
+++ b/srcpkgs/id3lib/template
@@ -11,6 +11,7 @@ license="LGPL-2.0-or-later"
 homepage="http://id3lib.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=2749cc3c0cd7280b299518b1ddf5a5bcfe2d1100614519b68702230e26c7d079
+patch_args=-Np0
 
 pre_configure() {
 	libtoolize -fc
diff --git a/srcpkgs/ifupdown/template b/srcpkgs/ifupdown/template
index 584d52eea19b..fd60247ccc7f 100644
--- a/srcpkgs/ifupdown/template
+++ b/srcpkgs/ifupdown/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://tracker.debian.org/pkg/ifupdown"
 distfiles="http://http.debian.net/debian/pool/main/i/ifupdown/ifupdown_${version}.tar.xz"
 checksum=d754426562a63b7d0cf06e8b00abe353fe9fd7ac5aabe3745f6d4e294ca233a8
+patch_args=-Np0
 
 make_dirs="/etc/network/interfaces.d 0755 root root
  /etc/network/if-pre-up.d 0755 root root
diff --git a/srcpkgs/igt-gpu-tools/template b/srcpkgs/igt-gpu-tools/template
index 3b222ecd18d8..0bcf2cfe2c7f 100644
--- a/srcpkgs/igt-gpu-tools/template
+++ b/srcpkgs/igt-gpu-tools/template
@@ -17,6 +17,7 @@ distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.xz"
 checksum=40454d8f0484ea2477862007398a08eef78a6c252c4defce1c934548593fdd11
 # tests don't behave in containers
 make_check=ci-skip
+patch_args=-Np0
 
 lib32disabled=yes
 archs="i686* x86_64*"
diff --git a/srcpkgs/ilmbase/template b/srcpkgs/ilmbase/template
index 1dd24b5335f5..ca4c57337f15 100644
--- a/srcpkgs/ilmbase/template
+++ b/srcpkgs/ilmbase/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://www.openexr.com/"
 distfiles="https://github.com/openexr/openexr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=8e5bfd89f4ae1221f84216a163003edddf0d37b8aac4ee42b46edb55544599b9
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/imagescan/template b/srcpkgs/imagescan/template
index 0a0cb5e2b3f8..2deac5f8b877 100644
--- a/srcpkgs/imagescan/template
+++ b/srcpkgs/imagescan/template
@@ -18,6 +18,7 @@ homepage="https://gitlab.com/utsushi/imagescan/"
 distfiles="http://support.epson.net/linux/src/scanner/imagescanv3/debian/${pkgname}_${version}.orig.tar.gz"
 checksum=9440b103b8218863ab08e891d2a9dc9ef52db51485e11017d52fb2036e279477
 mutable_files="/etc/sane.d/dll.d/utsushi"
+patch_args=-Np0
 
 CFLAGS="-Wno-error"
 CXXFLAGS="-Wno-error"
diff --git a/srcpkgs/imgbrd-grabber/template b/srcpkgs/imgbrd-grabber/template
index d1e0ef6a5177..50232eb2998f 100644
--- a/srcpkgs/imgbrd-grabber/template
+++ b/srcpkgs/imgbrd-grabber/template
@@ -14,6 +14,7 @@ homepage="https://bionus.github.io/imgbrd-grabber"
 changelog="https://github.com/Bionus/imgbrd-grabber/releases"
 distfiles="https://github.com/Bionus/imgbrd-grabber/archive/v${version}.tar.gz"
 checksum=4ecb247f92fb4ba7c3245439bcd221e8c64dd037c1761065a663adb6b4571740
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake"
diff --git a/srcpkgs/imwheel/template b/srcpkgs/imwheel/template
index 85496586c7d9..5da49f1e4ff5 100644
--- a/srcpkgs/imwheel/template
+++ b/srcpkgs/imwheel/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="http://imwheel.sourceforge.net/"
 distfiles="https://sourceforge.net/projects/${pkgname}/files/${pkgname}-source/${version}pre12/${pkgname}-${version}pre12.tar.gz"
 checksum=2320ed019c95ca4d922968e1e1cbf0c075a914e865e3965d2bd694ca3d57cfe3
+patch_args=-Np0
 
 pre_configure() {
 	mv configure.{in,ac}
diff --git a/srcpkgs/indent/template b/srcpkgs/indent/template
index 3616080326f3..522b94c0e68d 100644
--- a/srcpkgs/indent/template
+++ b/srcpkgs/indent/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/s/indent/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=e77d68c0211515459b8812118d606812e300097cfac0b4e9fb3472664263bb8b
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's#^docdir = .*$#docdir = @docdir@#' doc/Makefile.in
diff --git a/srcpkgs/injeqt/template b/srcpkgs/injeqt/template
index 3efad365a492..3159202729e0 100644
--- a/srcpkgs/injeqt/template
+++ b/srcpkgs/injeqt/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/vogel/injeqt/"
 distfiles="https://github.com/vogel/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=77540cedb0b26affe993dd18124d796059e34c80a51d9ae6433fdff1860db135
+patch_args=-Np0
 
 CXXFLAGS="-fno-lifetime-dse -Wno-error=cast-align"
 
diff --git a/srcpkgs/input-utils/template b/srcpkgs/input-utils/template
index 35b48c548e26..319161f0e5db 100644
--- a/srcpkgs/input-utils/template
+++ b/srcpkgs/input-utils/template
@@ -10,6 +10,7 @@ license="GPL-2"
 distfiles="https://www.kraxel.org/releases/input/input-${version}.tar.gz"
 checksum=9142c34d508f2da4cd53d6348fee77e30b69c35c8dabfadfc5a6db09c4bd8087
 wrksrc="input-${version}"
+patch_args=-Np0
 
 do_install() {
 	vman lsinput.man lsinput.8
diff --git a/srcpkgs/inspectrum/template b/srcpkgs/inspectrum/template
index 83ba7b100956..232164d753f2 100644
--- a/srcpkgs/inspectrum/template
+++ b/srcpkgs/inspectrum/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/miek/inspectrum"
 distfiles="https://github.com/miek/inspectrum/archive/v${version}.tar.gz"
 checksum=7be5be96f50b0cea5b3dd647f06cc00adfa805a395484aa2ab84cf3e49b7227b
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-qmake qt5-host-tools"
diff --git a/srcpkgs/invada-studio-plugins-lv2/template b/srcpkgs/invada-studio-plugins-lv2/template
index 6bd6ddf74a5b..ee7f7a8ffe23 100644
--- a/srcpkgs/invada-studio-plugins-lv2/template
+++ b/srcpkgs/invada-studio-plugins-lv2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://launchpad.net/invada-studio/"
 distfiles="https://launchpad.net/invada-studio/lv2/1.2/+download/${pkgname}_${version}-nopkg.tgz"
 checksum=c6cac7c32effc6b3052e3b017133244f385ef8e053147859d88eae6facaf7d12
+patch_args=-Np0
 
 post_patch() {
 	find . -name Makefile -exec \
diff --git a/srcpkgs/io.elementary.calendar/template b/srcpkgs/io.elementary.calendar/template
index 7ff446f97d15..936700ba2cd8 100644
--- a/srcpkgs/io.elementary.calendar/template
+++ b/srcpkgs/io.elementary.calendar/template
@@ -17,6 +17,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/elementary/calendar"
 distfiles="${homepage}/archive/${_git_commit}.tar.gz"
 checksum=3be3851baeed67144e5cbed209b2c1b982fe9830db13372e3051423295dee345
+patch_args=-Np0
 
 libio.elementary.calendar_package() {
 	short_desc+=" - library"
diff --git a/srcpkgs/io.elementary.code/template b/srcpkgs/io.elementary.code/template
index 8d43ad4130d2..c29de4c8c0ba 100644
--- a/srcpkgs/io.elementary.code/template
+++ b/srcpkgs/io.elementary.code/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/elementary/code"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=d84b38193b72cd93995aae604358c83c5b6976d8472ce985027b947cfed990bf
+patch_args=-Np0
 
 libio.elementary.code_package() {
 	short_desc+=" - library"
diff --git a/srcpkgs/io.elementary.music/template b/srcpkgs/io.elementary.music/template
index de6ae0f94d90..a4e05603f35b 100644
--- a/srcpkgs/io.elementary.music/template
+++ b/srcpkgs/io.elementary.music/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/elementary/music"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=ed7cba3b07189273890b321b21cda198f18b102e4466eb7207c0b5f27b31dfc9
+patch_args=-Np0
 
 libio.elementary.music_package() {
 	short_desc+=" - library"
diff --git a/srcpkgs/iotop/template b/srcpkgs/iotop/template
index 84a9f7886162..8af2af900ba0 100644
--- a/srcpkgs/iotop/template
+++ b/srcpkgs/iotop/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://guichaz.free.fr/iotop"
 distfiles="http://guichaz.free.fr/iotop/files/iotop-${version}.tar.bz2"
 checksum=3adea2a24eda49bbbaeb4e6ed2042355b441dbd7161e883067a02bfc8dcef75b
+patch_args=-Np0
 
 post_install() {
 	chmod 644 ${DESTDIR}/usr/share/man/man8/iotop.8
diff --git a/srcpkgs/iouyap/template b/srcpkgs/iouyap/template
index 09cd966c6e12..a7ddbbccf8c0 100644
--- a/srcpkgs/iouyap/template
+++ b/srcpkgs/iouyap/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="https://github.com/GNS3/iouyap"
 distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
 checksum=181850a4ce73a4d4035f9eb39b2656ae31d360f18b577ee65f5149132da3eccf
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/ipmitool/template b/srcpkgs/ipmitool/template
index eab8e525c878..7d48962c2230 100644
--- a/srcpkgs/ipmitool/template
+++ b/srcpkgs/ipmitool/template
@@ -10,6 +10,7 @@ license="BSD"
 homepage="http://ipmitool.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=0c1ba3b1555edefb7c32ae8cd6a3e04322056bc087918f07189eeedfc8b81e01
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/ipp-usb/template b/srcpkgs/ipp-usb/template
index 98b472d15998..79f18ba1d540 100644
--- a/srcpkgs/ipp-usb/template
+++ b/srcpkgs/ipp-usb/template
@@ -14,6 +14,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/OpenPrinting/ipp-usb"
 distfiles="https://github.com/OpenPrinting/ipp-usb/archive/$version.tar.gz"
 checksum=06855b4da0bcaad430a42534c117a3f3224c4f6b0f6321da898e3422ae97ae15
+patch_args=-Np0
 
 post_install() {
 	vsv ipp-usb
diff --git a/srcpkgs/ippusbxd/template b/srcpkgs/ippusbxd/template
index e81064e8b91d..0cf0278b951a 100644
--- a/srcpkgs/ippusbxd/template
+++ b/srcpkgs/ippusbxd/template
@@ -14,6 +14,7 @@ homepage="https://github.com/OpenPrinting/ippusbxd"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=996a572c8f6d1426a58ad3b95c21fea7f5b64d5db34a825c543d7869b3c77891
 conf_files="/etc/apparmor.d/usr.sbin.ippusbxd"
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/iptables/template b/srcpkgs/iptables/template
index 0d0ed43206db..3b0269d22f1e 100644
--- a/srcpkgs/iptables/template
+++ b/srcpkgs/iptables/template
@@ -20,6 +20,7 @@ alternatives="
  iptables:iptables:/usr/bin/xtables-legacy-multi
  iptables:iptables-restore:/usr/bin/xtables-legacy-multi
  iptables:iptables-save:/usr/bin/xtables-legacy-multi"
+patch_args=-Np0
 
 pre_build() {
 	rm include/linux/types.h
diff --git a/srcpkgs/iscan/template b/srcpkgs/iscan/template
index 18c0d969766c..c39d09a19fa1 100644
--- a/srcpkgs/iscan/template
+++ b/srcpkgs/iscan/template
@@ -17,6 +17,7 @@ distfiles="http://support.epson.net/linux/src/scanner/iscan/${pkgname}_${version
 checksum=597b9913de42d7a27f95bc82e533cbe778121ba13e3a03bc037f8d09a43447d5
 repository=nonfree
 LDFLAGS="-ldl -lpng16"
+patch_args=-Np0
 
 post_configure() {
 	# fix wrongly created link
diff --git a/srcpkgs/iucode-tool/template b/srcpkgs/iucode-tool/template
index d28c10461053..99a6f0f6b952 100644
--- a/srcpkgs/iucode-tool/template
+++ b/srcpkgs/iucode-tool/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://gitlab.com/iucode-tool/iucode-tool/wikis/home"
 distfiles="https://gitlab.com/iucode-tool/releases/raw/latest/iucode-tool_${version}.tar.xz"
 checksum=12b88efa4d0d95af08db05a50b3dcb217c0eb2bfc67b483779e33d498ddb2f95
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends="argp-standalone" ;;
diff --git a/srcpkgs/iverilog/template b/srcpkgs/iverilog/template
index b0f12c03fa84..1159f49d35d0 100644
--- a/srcpkgs/iverilog/template
+++ b/srcpkgs/iverilog/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://iverilog.icarus.com/"
 distfiles="https://github.com/steveicarus/iverilog/archive/v${version/./_}.tar.gz"
 checksum=6327fb900e66b46803d928b7ca439409a0dc32731d82143b20387be0833f1c95
+patch_args=-Np0
 
 nocross="draw_tt.exe: cannot execute binary file: Exec format error"
 
diff --git a/srcpkgs/iwd/template b/srcpkgs/iwd/template
index 3a1c0fc23121..c6b0f6fc503e 100644
--- a/srcpkgs/iwd/template
+++ b/srcpkgs/iwd/template
@@ -21,6 +21,7 @@ make_dirs="/var/lib/iwd 0600 root root
  /etc/iwd 755 root root"
 # tests depend on kernel features
 make_check=extended
+patch_args=-Np0
 
 do_check() {
 	dbus-run-session make check
diff --git a/srcpkgs/j/template b/srcpkgs/j/template
index c9b0c669497c..c1681088ec1a 100644
--- a/srcpkgs/j/template
+++ b/srcpkgs/j/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://jsoftware.com/"
 distfiles="https://github.com/jsoftware/jsource/archive/j${_vrel}.tar.gz"
 checksum=6b1cdcc1a0c3d955e400cf676f115de51ef9d1da495d08721ee999f48f6f9209
+patch_args=-Np0
 
 _jsz="j${XBPS_TARGET_WORDSIZE}"
 _jtype="release"
diff --git a/srcpkgs/jack/template b/srcpkgs/jack/template
index 092d7292d343..5ab29e6a32b8 100644
--- a/srcpkgs/jack/template
+++ b/srcpkgs/jack/template
@@ -17,6 +17,7 @@ homepage="https://jackaudio.org/"
 distfiles="https://github.com/jackaudio/jack2/archive/v${version}.tar.gz"
 checksum=5a1d64118034d58529d68a9af42710f9d4843536257c496118065ea3d3e4ae2c
 python_version=3
+patch_args=-Np0
 
 # Package build options
 build_options="ffado zalsa"
diff --git a/srcpkgs/janet/template b/srcpkgs/janet/template
index d3c71796a070..5805a21c0115 100644
--- a/srcpkgs/janet/template
+++ b/srcpkgs/janet/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://janet-lang.org/"
 distfiles="https://github.com/janet-lang/janet/archive/v${version}.tar.gz"
 checksum=ed9350ad7f0270e67f18a78dae4910b9534f19cd3f20f7183b757171e8cc79a5
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/jbig2dec/template b/srcpkgs/jbig2dec/template
index d0c23438982d..3ccef4e8ea2d 100644
--- a/srcpkgs/jbig2dec/template
+++ b/srcpkgs/jbig2dec/template
@@ -13,6 +13,7 @@ license="AGPL-3.0-or-later"
 homepage="https://www.jbig2dec.com"
 distfiles="https://github.com/ArtifexSoftware/jbig2dec/archive/${version}.tar.gz"
 checksum=e81b787ad0b147a437a52d9ce7de1a8f429655e8aa030383b6b2dd8919373717
+patch_args=-Np0
 
 pre_configure() {
 	sed -i '$ d' autogen.sh
diff --git a/srcpkgs/jedit/template b/srcpkgs/jedit/template
index cf7ac8cdd201..9c5c764194bb 100644
--- a/srcpkgs/jedit/template
+++ b/srcpkgs/jedit/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://jedit.org"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${version}/${pkgname}${version}source.tar.bz2"
 checksum=76c16ae0168d9b64ecddd8bf08aa49ab352adb2c9687191bc71895a96a8dfe1d
+patch_args=-Np0
 
 post_patch() {
 	# skip junit stuff, fails in chroot
diff --git a/srcpkgs/jfsutils/template b/srcpkgs/jfsutils/template
index 22f153adb299..98d7a0c90fda 100644
--- a/srcpkgs/jfsutils/template
+++ b/srcpkgs/jfsutils/template
@@ -10,5 +10,6 @@ license="GPL-2.0-or-later"
 homepage="http://jfs.sourceforge.net"
 distfiles="http://jfs.sourceforge.net/project/pub/${pkgname}-${version}.tar.gz"
 checksum=244a15f64015ce3ea17e49bdf6e1a0fb4f9af92b82fa9e05aa64cb30b5f07a4d
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/jsonnet/template b/srcpkgs/jsonnet/template
index b09df3187a0e..1f0d020e16ed 100644
--- a/srcpkgs/jsonnet/template
+++ b/srcpkgs/jsonnet/template
@@ -9,6 +9,7 @@ license="Apache-2.0"
 homepage="https://github.com/google/jsonnet"
 distfiles="https://github.com/google/jsonnet/archive/v${version}.tar.gz"
 checksum=076b52edf888c01097010ad4299e3b2e7a72b60a41abbc65af364af1ed3c8dbe
+patch_args=-Np0
 
 CXXFLAGS="-fPIC -Iinclude -Ithird_party/json -Ithird_party/md5"
 
diff --git a/srcpkgs/jwm/template b/srcpkgs/jwm/template
index 96efe18d60cc..08c2501eecfe 100644
--- a/srcpkgs/jwm/template
+++ b/srcpkgs/jwm/template
@@ -15,6 +15,7 @@ conf_files="/etc/system.jwmrc"
 homepage="http://joewing.net/projects/jwm"
 distfiles="http://joewing.net/projects/jwm/releases/jwm-$version.tar.xz"
 checksum=745d2f5df3a4ce9ecc8e75445edb3fbe31dd46c0c26d129cc14de7ad8b665326
+patch_args=-Np0
 
 post_install() {
 	vinstall ${FILESDIR}/jwm.desktop 644 usr/share/xsessions
diff --git a/srcpkgs/jxrlib/template b/srcpkgs/jxrlib/template
index 48f02dceab61..c9ed1e4c14aa 100644
--- a/srcpkgs/jxrlib/template
+++ b/srcpkgs/jxrlib/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/glencoesoftware/jxrlib"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=d1fbc5759a665949e7cb82de03c3258788bd07323f195a9e8ea9322504627cc3
+patch_args=-Np0
 
 jxrlib-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/kanshi/template b/srcpkgs/kanshi/template
index e6fe40f4a697..d9e4c799e616 100644
--- a/srcpkgs/kanshi/template
+++ b/srcpkgs/kanshi/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/emersion/kanshi"
 distfiles="https://github.com/emersion/kanshi/archive/v${version}.tar.gz"
 checksum=f7e782d2b49380aed370213b8d74af9fe806d9dc94b3c19179475f4b18e26566
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/katarakt/template b/srcpkgs/katarakt/template
index 13fc25ba6626..05c85364c95d 100644
--- a/srcpkgs/katarakt/template
+++ b/srcpkgs/katarakt/template
@@ -13,6 +13,7 @@ homepage="https://wwwcip.cs.fau.de/~go18gomu/katarakt"
 #distfiles="https://wwwcip.cs.fau.de/~go18gomu/katarakt/tarballs/katarakt-${version}.tar.xz"
 distfiles="https://gitlab.cs.fau.de/Qui_Sum/katarakt/-/archive/v${version}/katarakt-v${version}.tar.gz"
 checksum=f60b3b7477975301a6c6657eb0a24d5cc28d321cca70e9746d4d1ea91e239c46
+patch_args=-Np0
 
 post_build() {
 	make doc
diff --git a/srcpkgs/kauth/template b/srcpkgs/kauth/template
index 2ba239bf8e09..d69da9d53d72 100644
--- a/srcpkgs/kauth/template
+++ b/srcpkgs/kauth/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kauth"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=00aac14b7a28040a7598ed661254fb4b8c20b0708fc3379461caff7bc8ff9104
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" kcoreaddons qt5-host-tools qt5-qmake qt5-tools-devel polkit-qt5-devel"
diff --git a/srcpkgs/kbd/template b/srcpkgs/kbd/template
index 10b5c5dba294..0b0457f171dd 100644
--- a/srcpkgs/kbd/template
+++ b/srcpkgs/kbd/template
@@ -13,6 +13,7 @@ homepage="http://www.kbd-project.org/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=55f0740458cfd3a84e775e50d7e8b92dc01846db1edad8e2411ccc293ece9b9f
 replaces="kbd-data>=0"
+patch_args=-Np0
 
 post_patch() {
 	# Rename keymap files with the same names
diff --git a/srcpkgs/kcgi/template b/srcpkgs/kcgi/template
index 021c97022dc8..7a5b093157b6 100644
--- a/srcpkgs/kcgi/template
+++ b/srcpkgs/kcgi/template
@@ -16,6 +16,7 @@ homepage="http://kristaps.bsd.lv/kcgi/"
 changelog="https://kristaps.bsd.lv/kcgi/archive.html"
 distfiles="http://kristaps.bsd.lv/kcgi/snapshots/kcgi-${version}.tgz"
 checksum=06ed033de3723651d76e2fac1c2442aaa3a28ac231cbfda4142dfb8782cab363
+patch_args=-Np0
 
 seccomp_audit_get_suffix() {
 	case "$1" in
diff --git a/srcpkgs/kconfig/template b/srcpkgs/kconfig/template
index adc2fc3be0da..e56f6a58ff56 100644
--- a/srcpkgs/kconfig/template
+++ b/srcpkgs/kconfig/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-only, LGPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kconfig"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=234fc902d8a005291488def0a6a4b9d8b8500102e05aa2d1cfa3d5b6bb830a89
+patch_args=-Np0
 
 kconfig-devel_package() {
 	short_desc+=" - development"
diff --git a/srcpkgs/kcoreaddons/template b/srcpkgs/kcoreaddons/template
index 634dcec5c336..9403c06a9a64 100644
--- a/srcpkgs/kcoreaddons/template
+++ b/srcpkgs/kcoreaddons/template
@@ -13,6 +13,7 @@ license="LGPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kcoreaddons"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=12077aac579065ca5ca877aee3bbdce65c52b6d0e9ef8b1fc0e127dd2e7f6843
+patch_args=-Np0
 
 post_install() {
 	vsed -e 's;${_IMPORT_PREFIX};/usr;g' \
diff --git a/srcpkgs/kdb/template b/srcpkgs/kdb/template
index 0bc353bd7085..e28e194c4d55 100644
--- a/srcpkgs/kdb/template
+++ b/srcpkgs/kdb/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-or-later"
 homepage="http://www.kexi-project.org/"
 distfiles="${KDE_SITE}/kdb/src/kdb-${version}.tar.xz"
 checksum=8f8983bc8d143832dc14bc2003ba6af1af27688e477c0c791fd61445464f2069
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-qmake qt5-host-tools python3"
diff --git a/srcpkgs/kdelibs4support/template b/srcpkgs/kdelibs4support/template
index 306a952779ad..2841c1dcefcd 100644
--- a/srcpkgs/kdelibs4support/template
+++ b/srcpkgs/kdelibs4support/template
@@ -17,6 +17,7 @@ license="LGPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kdelibs4support"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/portingAids/${pkgname}-${version}.tar.xz"
 checksum=2f82f9241a1ceb08f4da7e9056612003b18d85879aff808f21d750b52edf4fe1
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# gettaddrinfo runtime test is always fine (can't be achieved in crossbuild)
diff --git a/srcpkgs/kdesignerplugin/template b/srcpkgs/kdesignerplugin/template
index 193e3fdc8320..8787bf11ced2 100644
--- a/srcpkgs/kdesignerplugin/template
+++ b/srcpkgs/kdesignerplugin/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://invent.kde.org/frameworks/kdesignerplugin"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/portingAids/${pkgname}-${version}.tar.xz"
 checksum=4556c3001f6558cf8ecaf9ce98b60bc130099b0af5d35be48561405b778d6f79
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake qt5-tools python kgendesignerplugin kdoctools"
diff --git a/srcpkgs/kdevelop-python/template b/srcpkgs/kdevelop-python/template
index 6d2f53fd0e60..d245fc817f01 100644
--- a/srcpkgs/kdevelop-python/template
+++ b/srcpkgs/kdevelop-python/template
@@ -18,6 +18,7 @@ homepage="https://www.kdevelop.org/"
 distfiles="${KDE_SITE}/kdevelop/${version}/src/kdev-python-${version}.tar.xz"
 checksum=20f9b771b961262ded986a4f32b8d259ad9f7bc48bb29eac0a5d5853be1d917f
 python_version=3
+patch_args=-Np0
 
 post_install() {
 	# don't install this python2 script: generates documentation_files, useless at runtime
diff --git a/srcpkgs/kdevelop/template b/srcpkgs/kdevelop/template
index 3adc84273607..60f85a97b137 100644
--- a/srcpkgs/kdevelop/template
+++ b/srcpkgs/kdevelop/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.kdevelop.org/"
 distfiles="${KDE_SITE}/${pkgname}/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=0f86bc3fe53f761c1e3e3f7544577a0c41433be8bff310cf2e729f76f4363bf6
+patch_args=-Np0
 
 build_options="webengine"
 desc_option_webengine="Use Qt5 WebEngine for documentation"
diff --git a/srcpkgs/kdoctools/template b/srcpkgs/kdoctools/template
index 12febaa475fc..6f9f52862b08 100644
--- a/srcpkgs/kdoctools/template
+++ b/srcpkgs/kdoctools/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kdoctools"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=414fbb92521734664535b475bf1ea2b941c3d4bdde14c06fd243a2968d1531db
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake python kdoctools-devel"
diff --git a/srcpkgs/kea/template b/srcpkgs/kea/template
index dc0bcc5de3fc..bad3cab44ea2 100644
--- a/srcpkgs/kea/template
+++ b/srcpkgs/kea/template
@@ -21,6 +21,7 @@ license="MPL-2.0, Apache-2.0"
 homepage="https://kea.isc.org"
 distfiles="http://ftp.isc.org/isc/kea/${version/.P/-P}/kea-${version/.P/-P}.tar.gz"
 checksum=324a06f488645bee587e49a45d491b525f53417c56b219f1cb37461fdefd9d91
+patch_args=-Np0
 
 build_options="botan mysql pgsql"
 desc_option_botan="With Botan SSL support"
diff --git a/srcpkgs/kernel-libc-headers/template b/srcpkgs/kernel-libc-headers/template
index ff67067469e9..a21b03bc0ddc 100644
--- a/srcpkgs/kernel-libc-headers/template
+++ b/srcpkgs/kernel-libc-headers/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://www.kernel.org"
 distfiles="$KERNEL_SITE/kernel/v${version%%.*}.x/linux-${version}.tar.xz"
 checksum=904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+patch_args=-Np0
 
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="perl"
diff --git a/srcpkgs/kexec-tools/template b/srcpkgs/kexec-tools/template
index 06f6f4527138..dccec75fe3be 100644
--- a/srcpkgs/kexec-tools/template
+++ b/srcpkgs/kexec-tools/template
@@ -13,6 +13,7 @@ homepage="http://kernel.org/pub/linux/utils/kernel/kexec/"
 distfiles="${KERNEL_SITE}/utils/kernel/kexec/${pkgname}-${version}.tar.xz"
 checksum=96c97f49ed86049f8b72722cb53e7fe3693e5a4f31e78a3a6249e3d18dac49c2
 skip_extraction="${pkgname}-${version}.tar.xz"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/kexi/template b/srcpkgs/kexi/template
index 28d4a358ac65..640f5158ffcd 100644
--- a/srcpkgs/kexi/template
+++ b/srcpkgs/kexi/template
@@ -14,6 +14,7 @@ homepage="http://www.kexi-project.org/"
 distfiles="${KDE_SITE}/kexi/src/kexi-${version}.tar.xz"
 checksum=7a813f9ea815a09c1e733d0e7dc879c64eee85f075389e87e6aab99cf0c1c1ff
 replaces="calligra-kexi>=0"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ];then
 	hostmakedepends+=" qt5-qmake qt5-host-tools python3 kcoreaddons"
diff --git a/srcpkgs/keyutils/template b/srcpkgs/keyutils/template
index 2da74bdcd24b..2b0044799be1 100644
--- a/srcpkgs/keyutils/template
+++ b/srcpkgs/keyutils/template
@@ -9,6 +9,7 @@ homepage="https://www.kernel.org"
 distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/${pkgname}-${version}.tar.gz"
 checksum=a61d5706136ae4c05bd48f86186bcfdbd88dd8bd5107e3e195c924cfc1b39bb4
 conf_files="/etc/request-key.conf"
+patch_args=-Np0
 
 pre_build() {
 	# Fix musl build - doesn't hurt glibc either
diff --git a/srcpkgs/kicad/template b/srcpkgs/kicad/template
index c56f7422dbed..18f1c310daab 100644
--- a/srcpkgs/kicad/template
+++ b/srcpkgs/kicad/template
@@ -22,6 +22,7 @@ homepage="http://kicad-pcb.org"
 distfiles="https://gitlab.com/kicad/code/${pkgname}/-/archive/${version}/kicad-${version}.tar.gz"
 checksum=296341f30ada2c7f4a1c54720eab425835a93349527d4bf08f73f280d19695ed
 python_version=3
+patch_args=-Np0
 
 build_options="spice occt"
 build_options_default="spice occt"
diff --git a/srcpkgs/kid3/template b/srcpkgs/kid3/template
index e916cbabed1e..e743ffff1536 100644
--- a/srcpkgs/kid3/template
+++ b/srcpkgs/kid3/template
@@ -20,6 +20,7 @@ license="GPL-2.0-only"
 homepage="https://kid3.kde.org"
 distfiles="${SOURCEFORGE_SITE}/kid3/kid3-${version}.tar.gz"
 checksum=71ef8c58227302737ebbed3b7f476f9f48e76ea894952d916dc33d9c08f96e08
+patch_args=-Np0
 
 build_options="KDE mp3 mp4 flac vorbis taglib chromaprint"
 build_options_default="mp3 mp4 flac vorbis taglib chromaprint"
diff --git a/srcpkgs/kinit/template b/srcpkgs/kinit/template
index 0bc5c5dc295e..483a88c80473 100644
--- a/srcpkgs/kinit/template
+++ b/srcpkgs/kinit/template
@@ -13,6 +13,7 @@ license="LGPL-2.0-only"
 homepage="https://invent.kde.org/frameworks/kinit"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=8b1b9d34fe4a4345381ac954888190e65f28ffe8211c7c0a16376996a79dc168
+patch_args=-Np0
 
 kinit-devel_package() {
 	short_desc+=" - development"
diff --git a/srcpkgs/kio/template b/srcpkgs/kio/template
index 1a1751c72191..1b03e77eac62 100644
--- a/srcpkgs/kio/template
+++ b/srcpkgs/kio/template
@@ -16,6 +16,7 @@ license="LGPL-2.0-or-later"
 homepage="https://invent.kde.org/frameworks/kio"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=cb970d0550054fd0bb0957de010b9ea73b2d89e8df725c0d8344320e82473144
+patch_args=-Np0
 
 CXXFLAGS+=" -fpermissive"
 
diff --git a/srcpkgs/kmod/template b/srcpkgs/kmod/template
index e9b8c26161e8..9266a17dc233 100644
--- a/srcpkgs/kmod/template
+++ b/srcpkgs/kmod/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git"
 distfiles="${KERNEL_SITE}/utils/kernel/kmod/kmod-${version}.tar.xz"
 checksum=c1d3fbf16ca24b95f334c1de1b46f17bbe5a10b0e81e72668bdc922ebffbbc0c
+patch_args=-Np0
 
 post_install() {
 	vinstall ${FILESDIR}/depmod-search.conf 644 usr/lib/depmod.d search.conf
diff --git a/srcpkgs/kmscon/template b/srcpkgs/kmscon/template
index 0683ed5d0ce7..0e9b90b7d65d 100644
--- a/srcpkgs/kmscon/template
+++ b/srcpkgs/kmscon/template
@@ -15,6 +15,7 @@ homepage="http://www.freedesktop.org/wiki/Software/kmscon"
 distfiles="${FREEDESKTOP_SITE}/kmscon/releases/kmscon-${version}.tar.xz"
 checksum=0ab01c1cdc4fbd692ce765e80478bc2d9663a7c55a5c75cc7ac421366ee6ae2b
 lib32disabled=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc*) broken="ftbfs";;
diff --git a/srcpkgs/kobodeluxe/template b/srcpkgs/kobodeluxe/template
index 94e3e8329728..689d2f17965c 100644
--- a/srcpkgs/kobodeluxe/template
+++ b/srcpkgs/kobodeluxe/template
@@ -14,6 +14,7 @@ homepage="http://olofson.net/kobodl"
 distfiles="${homepage}/download/KoboDeluxe-${version}.tar.bz2"
 checksum=0f7b910a399d985437564af8c5d81d6dcf22b96b26b01488d72baa6a6fdb5c2c
 replaces="kobodeluxe-data>=0"
+patch_args=-Np0
 
 post_extract() {
 	bsdtar xf icons.tar.gz
diff --git a/srcpkgs/kodi-addon-inputstream-adaptive/template b/srcpkgs/kodi-addon-inputstream-adaptive/template
index 579f39bfb0e4..21bd7af334f6 100644
--- a/srcpkgs/kodi-addon-inputstream-adaptive/template
+++ b/srcpkgs/kodi-addon-inputstream-adaptive/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/peak3d/inputstream.adaptive"
 distfiles="https://github.com/peak3d/inputstream.adaptive/archive/${version}-${_kodi_release}.tar.gz"
 checksum=353207f5f98bf81ce8d79cec903c28da8c0227d7c7a632692c910d81e59c2dbe
+patch_args=-Np0
 
 if [ -n "${CROSS_BUILD}" ]; then
 	configure_args+=" -DCMAKE_MODULE_PATH=${XBPS_CROSS_BASE}/usr/share/kodi/cmake"
diff --git a/srcpkgs/kore/template b/srcpkgs/kore/template
index 6c6e2d1378c2..adccefbc13df 100644
--- a/srcpkgs/kore/template
+++ b/srcpkgs/kore/template
@@ -16,6 +16,7 @@ homepage="https://kore.io"
 distfiles="https://kore.io/releases/kore-${version}.tar.gz"
 checksum=b7d73b005fde0ea01c356a54e4bbd8a209a4dff9cf315802a127ce7267efbe61
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/krita/template b/srcpkgs/krita/template
index e909366f539d..f04f7a5bb8b3 100644
--- a/srcpkgs/krita/template
+++ b/srcpkgs/krita/template
@@ -23,6 +23,7 @@ distfiles="${KDE_SITE}/krita/${version}/krita-${version}.tar.gz"
 checksum=4bfd7280870d1060a00d1123d836fc1a5b5bf8a028676679f0268cd5e7fb7568
 python_version=3
 replaces="calligra-krita>=0"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) makedepends+=" vc";;
diff --git a/srcpkgs/kscreenlocker/template b/srcpkgs/kscreenlocker/template
index 36df46f2420e..19becb55ca02 100644
--- a/srcpkgs/kscreenlocker/template
+++ b/srcpkgs/kscreenlocker/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://invent.kde.org/plasma/kscreenlocker"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=9803b976b6cc14fa5216de17481609ebf46d28c314284d9e74e8f9b181cb9bba
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" wayland-devel"
diff --git a/srcpkgs/kvirc/template b/srcpkgs/kvirc/template
index 41255b18e928..801cc846a309 100644
--- a/srcpkgs/kvirc/template
+++ b/srcpkgs/kvirc/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.kvirc.net"
 distfiles="ftp://ftp.kvirc.net/pub/kvirc/${version}/source/KVIrc-${version}.tar.bz2"
 checksum=76cd4cdcaca5e4056f086cdcbb6122c2ca7e331d6e66c7ebc57d32565f626a65
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ];then
 	hostmakedepends+=" qt5-qmake qt5-host-tools"
diff --git a/srcpkgs/kwallet-cli/template b/srcpkgs/kwallet-cli/template
index 4e27ae4f5913..ddeacf49443f 100644
--- a/srcpkgs/kwallet-cli/template
+++ b/srcpkgs/kwallet-cli/template
@@ -14,6 +14,7 @@ license="custom:MirOS, LGPL-3.0-or-later"
 homepage="https://www.mirbsd.org/kwalletcli.htm"
 distfiles="http://www.mirbsd.org/MirOS/dist/hosted/kwalletcli/kwalletcli-${version}.tar.gz"
 checksum=f228e5b179f6eb92289b9635382e676990dd58cd193ce42b61d3150c8a06b12d
+patch_args=-Np0
 
 post_patch() {
 	vsed -i GNUmakefile -e "s|-I/usr/include|-I${XBPS_CROSS_BASE}/usr/include|g"
diff --git a/srcpkgs/ladish/template b/srcpkgs/ladish/template
index f0b36f188b2b..7824e497f211 100644
--- a/srcpkgs/ladish/template
+++ b/srcpkgs/ladish/template
@@ -17,6 +17,7 @@ homepage="http://ladish.org"
 distfiles="${DEBIAN_SITE}/main/l/ladish/ladish_1+dfsg0.orig.tar.bz2"
 checksum=39b09d5a4c2f2d65d37374eb8b53f35039f2229d96ea6ddef7b1ce154403383a
 python_version=2
+patch_args=-Np0
 
 CXXFLAGS=-std=c++11
 
diff --git a/srcpkgs/laditools/template b/srcpkgs/laditools/template
index 596f955b9d0c..d5c06f7015d4 100644
--- a/srcpkgs/laditools/template
+++ b/srcpkgs/laditools/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/alessio/laditools"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=ca99f4b6e17b7333ed87dd12a2d91da4d486e53d89dd2677edfa29170ec6efe5
+patch_args=-Np0
 
 post_install() {
 	# remove wmladi, we do not have wmdocklib.
diff --git a/srcpkgs/ladspa-sdk/template b/srcpkgs/ladspa-sdk/template
index 175f3cb2c405..4b3730a98f66 100644
--- a/srcpkgs/ladspa-sdk/template
+++ b/srcpkgs/ladspa-sdk/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.ladspa.org/"
 distfiles="http://www.ladspa.org/download/ladspa_sdk_${version}.tgz"
 checksum=4229959b09d20c88c8c86f4aa76427843011705df22d9c28b38359fd1829fded
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC CPP=$CXX LD=$LD -C src
diff --git a/srcpkgs/lapack/template b/srcpkgs/lapack/template
index 3ca60272736d..525d64b965c0 100644
--- a/srcpkgs/lapack/template
+++ b/srcpkgs/lapack/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://www.netlib.org/lapack/"
 distfiles="https://github.com/Reference-LAPACK/lapack/archive/v${version}.tar.gz"
 checksum=106087f1bb5f46afdfba7f569d0cbe23dacb9a07cd24733765a0e89dbe1ad573
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/latencytop/template b/srcpkgs/latencytop/template
index 67071c436a8a..0442408311b1 100644
--- a/srcpkgs/latencytop/template
+++ b/srcpkgs/latencytop/template
@@ -11,6 +11,7 @@ license="GPL-2"
 homepage="http://www.latencytop.org"
 distfiles="${DEBIAN_SITE}/main/l/$pkgname/${pkgname}_${version}.orig.tar.gz"
 checksum=9e7f72fbea7bd918e71212a1eabaad8488d2c602205d2e3c95d62cd57e9203ef
+patch_args=-Np0
 
 pre_build() {
 	export CFLAGS="$CFLAGS $LDFLAGS"
diff --git a/srcpkgs/ldapvi/template b/srcpkgs/ldapvi/template
index 1dda3c2ae6e8..3c5f6bae167e 100644
--- a/srcpkgs/ldapvi/template
+++ b/srcpkgs/ldapvi/template
@@ -12,6 +12,7 @@ homepage="http://www.lichteblau.com/ldapvi/"
 short_desc="An interactive LDAP client for Unix terminals"
 distfiles="http://www.lichteblau.com/download/ldapvi-${version}.tar.gz"
 checksum=6f62e92d20ff2ac0d06125024a914b8622e5b8a0a0c2d390bf3e7990cbd2e153
+patch_args=-Np0
 
 do_install() {
 	vbin ldapvi
diff --git a/srcpkgs/ldb/template b/srcpkgs/ldb/template
index ada2f2052210..356615c375e3 100644
--- a/srcpkgs/ldb/template
+++ b/srcpkgs/ldb/template
@@ -19,6 +19,7 @@ license="LGPL-3.0-or-later"
 homepage="https://www.samba.org/ldb/"
 distfiles="https://www.samba.org/ftp/pub/ldb/ldb-${version}.tar.gz"
 checksum=134bb51769709af59f30bf468e454d1377a8096acd4e80dcb42fd264f558bd5f
+patch_args=-Np0
 
 # workaround for cmocka's broken uintptr_t definition on musl
 if [ "$XBPS_TARGET_WORDSIZE" = "64" -a "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/ledger/template b/srcpkgs/ledger/template
index c94b72709dea..e1bd5419f0fa 100644
--- a/srcpkgs/ledger/template
+++ b/srcpkgs/ledger/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="https://www.ledger-cli.org/"
 distfiles="https://github.com/ledger/${pkgname}/archive/v${version}.tar.gz"
 checksum=92bf09bc385b171987f456fe3ee9fa998ed5e40b97b3acdd562b663aa364384a
+patch_args=-Np0
 
 post_install() {
 	rm -Rf ${DESTDIR}/usr/local
diff --git a/srcpkgs/lfe/template b/srcpkgs/lfe/template
index 31f33e64eeaf..b57f4ad541a8 100644
--- a/srcpkgs/lfe/template
+++ b/srcpkgs/lfe/template
@@ -10,6 +10,7 @@ license="Apache-2.0"
 homepage="http://lfe.io/"
 distfiles="https://github.com/rvirding/lfe/archive/v${version}.tar.gz"
 checksum=04634f2c700ecedb55f4369962837792669e6be809dba90d81974198fc2b7b72
+patch_args=-Np0
 
 do_build() {
 	make
diff --git a/srcpkgs/liba52/template b/srcpkgs/liba52/template
index f94b04c876d1..3c850ca622e0 100644
--- a/srcpkgs/liba52/template
+++ b/srcpkgs/liba52/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://liba52.sourceforge.net/"
 distfiles="http://liba52.sourceforge.net/files/a52dec-${version}.tar.gz"
 checksum=a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33
+patch_args=-Np0
 
 pre_configure() {
 	./bootstrap
diff --git a/srcpkgs/libabigail/template b/srcpkgs/libabigail/template
index ed30ffd85c54..03906b43ac00 100644
--- a/srcpkgs/libabigail/template
+++ b/srcpkgs/libabigail/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-or-later"
 homepage="https://www.sourceware.org/libabigail/"
 distfiles="http://mirrors.kernel.org/sourceware/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=86347c9f0a8666f263fd63f8c3fe4c4f9cb1bdb3ec4260ecbaf117d137e89787
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" musl-fts-devel"; LDFLAGS="-lfts" ;;
diff --git a/srcpkgs/libabw/template b/srcpkgs/libabw/template
index e617508a0b3d..3e0b95197ef1 100644
--- a/srcpkgs/libabw/template
+++ b/srcpkgs/libabw/template
@@ -11,6 +11,7 @@ distfiles="http://dev-www.libreoffice.org/src/${pkgname}/${pkgname}-${version}.t
 makedepends="librevenge-devel boost-devel libxml2-devel"
 hostmakedepends="automake libtool pkg-config perl gperf"
 checksum=e763a9dc21c3d2667402d66e202e3f8ef4db51b34b79ef41f56cacb86dcd6eed
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated-copy"
 
diff --git a/srcpkgs/libaccounts-qt5/template b/srcpkgs/libaccounts-qt5/template
index 73c98fb72bd4..98e0b0374d5b 100644
--- a/srcpkgs/libaccounts-qt5/template
+++ b/srcpkgs/libaccounts-qt5/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-only"
 homepage="https://gitlab.com/accounts-sso/libaccounts-qt"
 distfiles="${homepage}/repository/archive.tar.gz?ref=VERSION_${version}>${pkgname}-${version}.tar.gz"
 checksum=286eb02f936853e32e610003a2a332a12524050d226707e7630b6a29bd3bdf66
+patch_args=-Np0
 
 libaccounts-qt5-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libarchive/template b/srcpkgs/libarchive/template
index 605cac399d34..ea4b7e8f63e5 100644
--- a/srcpkgs/libarchive/template
+++ b/srcpkgs/libarchive/template
@@ -18,6 +18,7 @@ license="BSD-2-Clause"
 homepage="http://www.libarchive.org/"
 distfiles="https://github.com/libarchive/libarchive/releases/download/${version}/libarchive-${version}.tar.gz"
 checksum=9015d109ec00bb9ae1a384b172bf2fc1dff41e2c66e5a9eeddf933af9db37f5a
+patch_args=-Np0
 
 build_options="acl expat lzo lz4 ssl zstd"
 build_options_default="acl ssl lz4 zstd"
diff --git a/srcpkgs/libatasmart/template b/srcpkgs/libatasmart/template
index 7714dcbfe394..b79bd8661ae8 100644
--- a/srcpkgs/libatasmart/template
+++ b/srcpkgs/libatasmart/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://0pointer.de/blog/projects/being-smart.html"
 distfiles="http://0pointer.de/public/$pkgname-$version.tar.xz"
 checksum=61f0ea345f63d28ab2ff0dc352c22271661b66bf09642db3a4049ac9dbdb0f8d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libax25/template b/srcpkgs/libax25/template
index e4de77e6b59a..868268ce4abb 100644
--- a/srcpkgs/libax25/template
+++ b/srcpkgs/libax25/template
@@ -13,6 +13,7 @@ license="LGPL-2"
 homepage="http://www.linux-ax25.org/wiki/Libax25"
 distfiles="http://www.linux-ax25.org/pub/libax25/${wrksrc}.tar.gz"
 checksum=051bd736c3f3f3b242b3efea91af37f2e8d5afaebb5fe6e1df050bb1f6aeb986
+patch_args=-Np0
 
 libax25-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libbsd/template b/srcpkgs/libbsd/template
index aa36c7f4e0cc..28d3bc622698 100644
--- a/srcpkgs/libbsd/template
+++ b/srcpkgs/libbsd/template
@@ -10,6 +10,7 @@ license="ISC, MIT, Beerware, BSD-2-Clause, BSD-3-Clause, BSD-4-Clause"
 homepage="https://libbsd.freedesktop.org/"
 distfiles="https://libbsd.freedesktop.org/releases/libbsd-${version}.tar.xz"
 checksum=ff95cf8184151dacae4247832f8d4ea8800fa127dbd15033ecfe839f285b42a1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libcanberra/template b/srcpkgs/libcanberra/template
index de049b68e088..f853fb7e03ab 100644
--- a/srcpkgs/libcanberra/template
+++ b/srcpkgs/libcanberra/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="http://0pointer.de/lennart/projects/libcanberra/"
 distfiles="http://pkgs.fedoraproject.org/repo/pkgs/libcanberra/libcanberra-${version}.tar.xz/34cb7e4430afaf6f447c4ebdb9b42072/libcanberra-${version}.tar.xz"
 checksum=c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -if
diff --git a/srcpkgs/libcap-ng/template b/srcpkgs/libcap-ng/template
index 99eab8e614fc..7ea192957fb8 100644
--- a/srcpkgs/libcap-ng/template
+++ b/srcpkgs/libcap-ng/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://people.redhat.com/sgrubb/libcap-ng/"
 distfiles="http://people.redhat.com/sgrubb/$pkgname/$pkgname-$version.tar.gz"
 checksum=52c083b77c2b0d8449dee141f9c3eba76e6d4c5ad44ef05df25891126cb85ae9
+patch_args=-Np0
 
 subpackages="libcap-ng-devel libcap-ng-progs"
 
diff --git a/srcpkgs/libcap/template b/srcpkgs/libcap/template
index ad68fc72aed6..cadc03d056e2 100644
--- a/srcpkgs/libcap/template
+++ b/srcpkgs/libcap/template
@@ -15,6 +15,7 @@ homepage="http://sites.google.com/site/fullycapable/"
 changelog="https://sites.google.com/site/fullycapable/release-notes-for-libcap"
 distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/${pkgname}-${version}.tar.xz"
 checksum=47a57b8bd238b84c93c921a9b4ff82337551dbcb0cca071316aadf3e23b19261
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
diff --git a/srcpkgs/libcec/template b/srcpkgs/libcec/template
index bf232fb89eb8..c203167ef915 100644
--- a/srcpkgs/libcec/template
+++ b/srcpkgs/libcec/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Pulse-Eight/libcec"
 distfiles="https://github.com/Pulse-Eight/libcec/archive/libcec-${version}.tar.gz"
 checksum=090696d7a4fb772d7acebbb06f91ab92e025531c7c91824046b9e4e71ecb3377
+patch_args=-Np0
 
 build_options="rpi"
 
diff --git a/srcpkgs/libcgroup/template b/srcpkgs/libcgroup/template
index c9c19120e597..13b1318383bc 100644
--- a/srcpkgs/libcgroup/template
+++ b/srcpkgs/libcgroup/template
@@ -12,6 +12,7 @@ license="LGPL-2.1"
 homepage="http://libcg.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/libcg/${pkgname}-${version}.tar.bz2"
 checksum=e4e38bdc7ef70645ce33740ddcca051248d56b53283c0dc6d404e17706f6fb51
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	# Add musl-fts implementation
diff --git a/srcpkgs/libcmis/template b/srcpkgs/libcmis/template
index fac133d5e4d9..9e2aa911954b 100644
--- a/srcpkgs/libcmis/template
+++ b/srcpkgs/libcmis/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1"
 homepage="https://github.com/tdf/libcmis"
 distfiles="https://github.com/tdf/libcmis/releases/download/v${version}/libcmis-${version}.tar.gz"
 checksum=ed6f681a48abbf3c2324564b17a180d21fa9503230e8708825e1ad80daee4f81
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated"
 
diff --git a/srcpkgs/libcprops/template b/srcpkgs/libcprops/template
index 3460841477a1..2dc95f4e8a82 100644
--- a/srcpkgs/libcprops/template
+++ b/srcpkgs/libcprops/template
@@ -12,6 +12,7 @@ license="LGPL-2.1"
 distfiles="${SOURCEFORGE_SITE}/cprops/${pkgname}-${version}.tar.bz2"
 checksum=3737772d2718a2c550adf4ca92cc492e613aa9200aae2bbaaf128d90f4ef67f2
 nocross="autotools TRY_RUN checking for PTHREAD_MUTEX_RECURSIVE"
+patch_args=-Np0
 
 libcprops-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libdaemon/template b/srcpkgs/libdaemon/template
index 07fe35eaeeac..6d2bf5364075 100644
--- a/srcpkgs/libdaemon/template
+++ b/srcpkgs/libdaemon/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://0pointer.de/lennart/projects/$pkgname"
 distfiles="http://pkgs.fedoraproject.org/repo/pkgs/libdaemon/libdaemon-${version}.tar.gz/509dc27107c21bcd9fbf2f95f5669563/libdaemon-${version}.tar.gz"
 checksum=fd23eb5f6f986dcc7e708307355ba3289abe03cc381fc47a80bca4a50aa6b834
+patch_args=-Np0
 
 libdaemon-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libdbus-c++/template b/srcpkgs/libdbus-c++/template
index 29b4a109863d..91724cfdee6b 100644
--- a/srcpkgs/libdbus-c++/template
+++ b/srcpkgs/libdbus-c++/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="http://dbus-cplusplus.sourceforge.net/"
 distfiles="https://github.com/pkgw/dbus-cplusplus/releases/download/v${version}/libdbus-c---${version}.tar.gz"
 checksum=4f140668f2529ecbdce99afbb89f8a977aa47a36248d5f4943b3660316752ee8
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" libdbus-c++-devel dbus-devel glib-devel"
diff --git a/srcpkgs/libdill/template b/srcpkgs/libdill/template
index c641f17afb7f..38ba343f1e83 100644
--- a/srcpkgs/libdill/template
+++ b/srcpkgs/libdill/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://libdill.org/"
 distfiles="https://github.com/sustrik/libdill/archive/${version}.tar.gz"
 checksum=ebba0e5b433ec123b74a57d49b89dfa673aa258e03e6a452959e556b4c4529b9
+patch_args=-Np0
 
 pre_configure() {
 	export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=?/}"
diff --git a/srcpkgs/libdrm/template b/srcpkgs/libdrm/template
index ef96bcf5d129..21988cf5fc65 100644
--- a/srcpkgs/libdrm/template
+++ b/srcpkgs/libdrm/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://dri.freedesktop.org/"
 distfiles="https://gitlab.freedesktop.org/mesa/drm/-/archive/libdrm-${version}/drm-libdrm-${version}.tar.gz"
 checksum=0ba5017cafd4b7ac885356403c20105d40efcd11271ebf75727c1a5599e4ed53
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	aarch64*) configure_args+=" -Dvc4=true";;
diff --git a/srcpkgs/libesmtp/template b/srcpkgs/libesmtp/template
index 6719b024796c..0b88cd4b5035 100644
--- a/srcpkgs/libesmtp/template
+++ b/srcpkgs/libesmtp/template
@@ -12,6 +12,7 @@ homepage="http://brianstafford.info/libesmtp/"
 distfiles="https://sources.voidlinux.org/libesmtp-1.0.6/libesmtp-1.0.6.tar.bz2"
 #distfiles="http://brianstafford.info/libesmtp/libesmtp-${version}.tar.bz2"
 checksum=d0a61a5c52d99fa7ce7d00ed0a07e341dbda67101dbed1ab0cdae3f37db4eb0b
+patch_args=-Np0
 
 libesmtp-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libetpan/template b/srcpkgs/libetpan/template
index fb6c96eb33f2..9363e7ae26b1 100644
--- a/srcpkgs/libetpan/template
+++ b/srcpkgs/libetpan/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="http://www.etpan.org/libetpan.html"
 distfiles="https://github.com/dinhviethoa/libetpan/archive/${version}.tar.gz"
 checksum=591f97d5102f600e668502fe1dd5a341e910a840d8ea62e689a3a79d8bfbac87
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/libevdevPlus/template b/srcpkgs/libevdevPlus/template
index cf693a6e776c..dec92cb4bfd3 100644
--- a/srcpkgs/libevdevPlus/template
+++ b/srcpkgs/libevdevPlus/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/YukiWorkshop/libevdevPlus"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=c941b6b45f784c1e6c6f316f59256fabd604ac392db405cf7fd99de2686aaab0
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libexecinfo/template b/srcpkgs/libexecinfo/template
index dde582069514..5fe7d6fa72a2 100644
--- a/srcpkgs/libexecinfo/template
+++ b/srcpkgs/libexecinfo/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://www.freshports.org/devel/libexecinfo"
 distfiles="http://distcache.freebsd.org/local-distfiles/itetcu/libexecinfo-${version}.tar.bz2"
 checksum=c9a21913e7fdac8ef6b33250b167aa1fc0a7b8a175145e26913a4c19d8a59b1f
+patch_args=-Np0
 
 do_install() {
 	vsed -e "/Version:/s@version@${version}@" -i libexecinfo.pc
diff --git a/srcpkgs/libfetch/template b/srcpkgs/libfetch/template
index 5522f74d617f..dc3eaad7a71b 100644
--- a/srcpkgs/libfetch/template
+++ b/srcpkgs/libfetch/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="https://www.NetBSD.org"
 distfiles="https://alpha.de.repo.voidlinux.org/distfiles/libfetch-${version}.tar.xz"
 checksum=4e6d4541f213c9ab42ea94d49c2573f0a6f54b04f14668530960f1424b04f722
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC
diff --git a/srcpkgs/libffado/template b/srcpkgs/libffado/template
index cadd335b30e3..837d5443d972 100644
--- a/srcpkgs/libffado/template
+++ b/srcpkgs/libffado/template
@@ -20,6 +20,7 @@ license="GPL-2.0-only, GPL-3.0-only"
 homepage="http://www.ffado.org"
 distfiles="http://www.ffado.org/files/libffado-${version}.tgz"
 checksum=a47178cdc8c0c91e91edbaabe23d19ca12a752cbcf81c27314adb27cc00d60f0
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	makedepends+=" argp-standalone" ;;
diff --git a/srcpkgs/libffi/template b/srcpkgs/libffi/template
index d79ef2afe2d8..13469f65f514 100644
--- a/srcpkgs/libffi/template
+++ b/srcpkgs/libffi/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://sourceware.org/libffi"
 distfiles="ftp://sourceware.org/pub/$pkgname/$pkgname-$version.tar.gz"
 checksum=72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libfprint/template b/srcpkgs/libfprint/template
index 9f32d0bea086..eef79d8277ce 100644
--- a/srcpkgs/libfprint/template
+++ b/srcpkgs/libfprint/template
@@ -17,6 +17,7 @@ homepage="http://www.freedesktop.org/wiki/Software/fprint/"
 changelog="https://gitlab.freedesktop.org/libfprint/libfprint/raw/master/NEWS"
 distfiles="https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/v$version/libfprint-v$version.tar.bz2"
 checksum=d11acf183820812fd6a8cd808d58bbf197554bcc0f9119d4c873092ecd94ee29
+patch_args=-Np0
 
 libfprint-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libfprint0/template b/srcpkgs/libfprint0/template
index 2d31deb97f4b..9f12b576fe62 100644
--- a/srcpkgs/libfprint0/template
+++ b/srcpkgs/libfprint0/template
@@ -17,6 +17,7 @@ distfiles="https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/V_${vers
 checksum=22777a1d202ef912395b94842ae6b531338c8d48a8a813616e846b1bc96c5ad9
 provides="libfprint-${version}_${revision}"
 replaces="libfprint<=${version}_1"
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/lib/udev/rules.d
diff --git a/srcpkgs/libfreehand/template b/srcpkgs/libfreehand/template
index 10282b4bd0d4..c94cd8c453e0 100644
--- a/srcpkgs/libfreehand/template
+++ b/srcpkgs/libfreehand/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand"
 distfiles="http://dev-www.libreoffice.org/src/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=0e422d1564a6dbf22a9af598535425271e583514c0f7ba7d9091676420de34ac
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated-copy"
 
diff --git a/srcpkgs/libgadu/template b/srcpkgs/libgadu/template
index 3775a273ca97..c90ab53f9559 100644
--- a/srcpkgs/libgadu/template
+++ b/srcpkgs/libgadu/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-only"
 homepage="https://www.wasilczyk.pl/en/projects/libgadu/"
 distfiles="https://github.com/wojtekka/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=f53e703d7ad93ce222dbf7fc0cec77f62813af38817a3678e799e91f1c69c94d
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/libgdal/template b/srcpkgs/libgdal/template
index 72c96ff67605..246109c38cf6 100644
--- a/srcpkgs/libgdal/template
+++ b/srcpkgs/libgdal/template
@@ -17,6 +17,7 @@ homepage="http://www.gdal.org/"
 distfiles="http://download.osgeo.org/gdal/${version}/gdal-${version}.tar.xz"
 checksum=5569a4daa1abcbba47a9d535172fc335194d9214fdb96cd0f139bb57329ae277
 subpackages="libgdal-devel libgdal-tools"
+patch_args=-Np0
 
 if [ -z "$CROSS_BUILD" ]; then
 	makedepends+=" hdf5-devel"
diff --git a/srcpkgs/libgfshare/template b/srcpkgs/libgfshare/template
index db6177570707..74c7044cd865 100644
--- a/srcpkgs/libgfshare/template
+++ b/srcpkgs/libgfshare/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://git.gitano.org.uk/libgfshare.git"
 distfiles="http://www.digital-scurf.org/files/libgfshare/libgfshare-${version}.tar.bz2"
 checksum=86f602860133c828356b7cf7b8c319ba9b27adf70a624fe32275ba1ed268331f
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libgit2-glib/template b/srcpkgs/libgit2-glib/template
index 00e6439339ba..21f2430ff936 100644
--- a/srcpkgs/libgit2-glib/template
+++ b/srcpkgs/libgit2-glib/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/GNOME/libgit2-glib"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=22dccc7aa9ff6f29edf50352b17d58c3f9289ba1cfa7952f70d7feb48676f10c
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/libglade/template b/srcpkgs/libglade/template
index f9bbef8cfbe3..5057e12b4d5d 100644
--- a/srcpkgs/libglade/template
+++ b/srcpkgs/libglade/template
@@ -14,6 +14,7 @@ homepage="http://www.jamesh.id.au/software/libglade/"
 distfiles="${GNOME_SITE}/$pkgname/2.6/$pkgname-$version.tar.bz2"
 checksum=64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec
 python_version=2 #unverified
+patch_args=-Np0
 
 # Register DTDs with xmlcatmgr.
 xml_entries="system http://glade.gnome.org/glade-2.0.dtd /usr/share/xml/libglade/glade-2.0.dtd"
diff --git a/srcpkgs/libglvnd/template b/srcpkgs/libglvnd/template
index 2f6448cc9780..e97629209e6f 100644
--- a/srcpkgs/libglvnd/template
+++ b/srcpkgs/libglvnd/template
@@ -13,6 +13,7 @@ license="custom:MIT-alike"
 homepage="https://gitlab.freedesktop.org/glvnd/libglvnd"
 distfiles="https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/v${version}/libglvnd-v${version}.tar.gz"
 checksum=6332c27f4c792b09a3eb1d7ae18c2d6ff6a0acaf3a746489caf859e659fca2f7
+patch_args=-Np0
 
 provides="libGL-7.11_1 libEGL-7.11_1 libGLES-7.11_1"
 replaces="libGL>=0 libEGL>=0 libGLES>=0"
diff --git a/srcpkgs/libgme/template b/srcpkgs/libgme/template
index 30394ff33815..338848b520ba 100644
--- a/srcpkgs/libgme/template
+++ b/srcpkgs/libgme/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://bitbucket.org/mpyne/game-music-emu/wiki/Home"
 distfiles="https://bitbucket.org/mpyne/game-music-emu/downloads/game-music-emu-${version}.tar.xz"
 checksum=aba34e53ef0ec6a34b58b84e28bf8cfbccee6585cebca25333604c35db3e051d
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	CXXFLAGS="-DMSB_FIRST=1"
diff --git a/srcpkgs/libgpod/template b/srcpkgs/libgpod/template
index 8e547f1f9ebd..89f4bfd7fc37 100644
--- a/srcpkgs/libgpod/template
+++ b/srcpkgs/libgpod/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-only"
 homepage="http://www.gtkpod.org/libgpod/"
 distfiles="${SOURCEFORGE_SITE}/gtkpod/$pkgname-$version.tar.bz2"
 checksum=638a7959d04e95f1e62abad02bd33702e4e8dfef98485ac7d9d50395c37e955d
+patch_args=-Np0
 
 post_patch() {
 	vsed -i configure.ac -e '/PKG_CHECK_MODULES/s/libplist\b/libplist-2.0/g'
diff --git a/srcpkgs/libgsm/template b/srcpkgs/libgsm/template
index 1d7cc0a0dc20..55da1bc0275f 100644
--- a/srcpkgs/libgsm/template
+++ b/srcpkgs/libgsm/template
@@ -9,6 +9,7 @@ short_desc="GSM 06.10 lossy speech compression"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="custom"
 checksum=04f68087c3348bf156b78d59f4d8aff545da7f6e14f33be8f47d33f4efae2a10
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC LD=$CC AR=$AR CCFLAGS="$CFLAGS -c -DNeedFunctionPrototypes=1"
diff --git a/srcpkgs/libguestfs/template b/srcpkgs/libguestfs/template
index 81afe313d203..4f0b0283a00c 100644
--- a/srcpkgs/libguestfs/template
+++ b/srcpkgs/libguestfs/template
@@ -23,6 +23,7 @@ license=" GPL-2.0-or-later"
 homepage="http://libguestfs.org"
 distfiles="http://libguestfs.org/download/${_version_short}-stable/${pkgname}-${version}.tar.gz"
 checksum=72b7dcdd32da1c17c932cf5a0a70b3bd68bc93e94828ad66a539f2e616adb025
+patch_args=-Np0
 
 conf_files="etc/libguestfs-tools.conf
  etc/xdg/virt-builder/repos.d/libguestfs.conf
diff --git a/srcpkgs/libieee1284/template b/srcpkgs/libieee1284/template
index 885772156e50..d24ad9c78059 100644
--- a/srcpkgs/libieee1284/template
+++ b/srcpkgs/libieee1284/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://cyberelk.net/tim/libieee1284"
 distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.bz2"
 checksum=7730de107782e5d2b071bdcb5b06a44da74856f00ef4a9be85d1ba4806a38f1a
+patch_args=-Np0
 
 libieee1284-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libimobiledevice/template b/srcpkgs/libimobiledevice/template
index a8bb2d08e09a..19285ba975f8 100644
--- a/srcpkgs/libimobiledevice/template
+++ b/srcpkgs/libimobiledevice/template
@@ -13,6 +13,7 @@ homepage="https://libimobiledevice.org"
 changelog="https://raw.githubusercontent.com/libimobiledevice/libimobiledevice/master/NEWS"
 distfiles="https://github.com/libimobiledevice/libimobiledevice/archive/${version}.tar.gz"
 checksum=acbfb73eabee162e64c0d9de207d71c0a5f47c40cd5ad32a5097f734328ce10a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args="ac_cv_sys_file_offset_bits=yes ac_cv_sys_large_file=yes"
diff --git a/srcpkgs/libindicator/template b/srcpkgs/libindicator/template
index 1ad0e5f9c6e7..abe8951a83ad 100644
--- a/srcpkgs/libindicator/template
+++ b/srcpkgs/libindicator/template
@@ -12,6 +12,7 @@ license="GPL-3"
 homepage="https://launchpad.net/libindicator"
 distfiles="https://launchpad.net/libindicator/${version%.*}/${version}/+download/libindicator-${version}.tar.gz"
 checksum=b2d2e44c10313d5c9cd60db455d520f80b36dc39562df079a3f29495e8f9447f
+patch_args=-Np0
 
 CFLAGS="-Wno-deprecated-declarations"
 # Avoid errors for macros deprecated since glib-2.58 */
diff --git a/srcpkgs/libiodbc/template b/srcpkgs/libiodbc/template
index 85f0286a90bf..fec82642e70a 100644
--- a/srcpkgs/libiodbc/template
+++ b/srcpkgs/libiodbc/template
@@ -12,6 +12,7 @@ license="LGPL-2.1"
 homepage="http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/"
 distfiles="${SOURCEFORGE_SITE}/iodbc/${pkgname}-${version}.tar.gz"
 checksum=51c5ff3a7d9a54202486cb77a3514e0e379a135beefcd5d12b96d1901f9dfb62
+patch_args=-Np0
 
 post_install() {
 	rm -rf ${DESTDIR}/usr/share/libiodbc
diff --git a/srcpkgs/libixion/template b/srcpkgs/libixion/template
index 60a21b07ac94..52f55031e1a4 100644
--- a/srcpkgs/libixion/template
+++ b/srcpkgs/libixion/template
@@ -12,6 +12,7 @@ homepage="https://gitlab.com/ixion/ixion/"
 distfiles="http://kohei.us/files/ixion/src/${pkgname}-${version}.tar.xz"
 checksum=426c643b3c346d546027c0226619abb2e59848e94470b9b5aa6365e26125089f
 replaces="libixion11>=0"
+patch_args=-Np0
 
 libixion-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libmad/template b/srcpkgs/libmad/template
index b61acb3d8f4b..02d40edf5aa1 100644
--- a/srcpkgs/libmad/template
+++ b/srcpkgs/libmad/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.underbit.com/products/mad/"
 distfiles="${SOURCEFORGE_SITE}/mad/$pkgname-$version.tar.gz"
 checksum=bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690
+patch_args=-Np0
 
 pre_configure() {
 	sed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.ac
diff --git a/srcpkgs/libmemcached/template b/srcpkgs/libmemcached/template
index c39630b669cd..7365c00db928 100644
--- a/srcpkgs/libmemcached/template
+++ b/srcpkgs/libmemcached/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://libmemcached.org/libMemcached.html"
 distfiles="http://launchpad.net/${pkgname}/1.0/${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=e22c0bb032fde08f53de9ffbc5a128233041d9f33b5de022c0978a2149885f82
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libmill/template b/srcpkgs/libmill/template
index 5bde0ee21208..5df89def696b 100644
--- a/srcpkgs/libmill/template
+++ b/srcpkgs/libmill/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://libmill.org/"
 distfiles="https://github.com/sustrik/libmill/archive/${version}.tar.gz"
 checksum=ff6903cd05f45c4cc050921d03201a93d2723ab59c480eb924f8f1ca8c6f0614
+patch_args=-Np0
 
 pre_configure() {
 	export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=?/}"
diff --git a/srcpkgs/libmilter/template b/srcpkgs/libmilter/template
index f51b61430ced..d5ca00bb6afb 100644
--- a/srcpkgs/libmilter/template
+++ b/srcpkgs/libmilter/template
@@ -12,6 +12,7 @@ license="Sendmail"
 homepage="https://www.milter.org/developers/api/"
 distfiles="ftp://ftp.mirrorservice.org/sites/ftp.sendmail.org/pub/${_pkgname}/${_pkgname}.${_version}.tar.gz"
 checksum=24f94b5fd76705f15897a78932a5f2439a32b1a2fdc35769bb1a5f5d9b4db439
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/libmirage/template b/srcpkgs/libmirage/template
index 283a27e223ca..c3c66f1cf3be 100644
--- a/srcpkgs/libmirage/template
+++ b/srcpkgs/libmirage/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://cdemu.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/cdemu/libmirage-${version}.tar.xz"
 checksum=d50d97e15f180f99fddcdf388b0d9fec073fb8fe080ba6c69cd3674214141139
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/libmowgli/template b/srcpkgs/libmowgli/template
index cf17648a4b75..80f8da745be8 100644
--- a/srcpkgs/libmowgli/template
+++ b/srcpkgs/libmowgli/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/atheme/libmowgli-2"
 distfiles="https://github.com/atheme/libmowgli-2/archive/v${version}.tar.gz"
 checksum=b7faab2fb9f46366a52b51443054a2ed4ecdd04774c65754bf807c5e9bdda477
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libmp4v2/template b/srcpkgs/libmp4v2/template
index 674b6ee304ad..ef8115e38575 100644
--- a/srcpkgs/libmp4v2/template
+++ b/srcpkgs/libmp4v2/template
@@ -11,6 +11,7 @@ homepage="http://code.google.com/p/mp4v2/"
 license="MPL-1.1"
 distfiles="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/${wrksrc}.tar.bz2"
 checksum=0319b9a60b667cf10ee0ec7505eb7bdc0a2e21ca7a93db96ec5bd758e3428338
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/libmpd/template b/srcpkgs/libmpd/template
index 608057b0232a..65647c6d7061 100644
--- a/srcpkgs/libmpd/template
+++ b/srcpkgs/libmpd/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://gmpc.wikia.com/wiki/Gnome_Music_Player_Client"
 distfiles="http://download.sarine.nl/Programs/gmpc/${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=fe20326b0d10641f71c4673fae637bf9222a96e1712f71f170fca2fc34bf7a83
+patch_args=-Np0
 
 libmpd-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libmspub/template b/srcpkgs/libmspub/template
index 5c96ba407069..c74bfdaf9b9c 100644
--- a/srcpkgs/libmspub/template
+++ b/srcpkgs/libmspub/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://cgit.freedesktop.org/libreoffice/libmspub/commit/"
 distfiles="https://dev-www.libreoffice.org/src/${pkgname}-${version}.tar.xz"
 checksum=ef36c1a1aabb2ba3b0bedaaafe717bf4480be2ba8de6f3894be5fd3702b013ba
+patch_args=-Np0
 
 libmspub-devel_package() {
 	depends="libmspub>=${version}_${revision} $makedepends"
diff --git a/srcpkgs/libmygpo-qt/template b/srcpkgs/libmygpo-qt/template
index 1014491ae241..676772f69a4d 100644
--- a/srcpkgs/libmygpo-qt/template
+++ b/srcpkgs/libmygpo-qt/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/gpodder/libmygpo-qt"
 distfiles="https://github.com/gpodder/libmygpo-qt/archive/${version}.tar.gz"
 checksum=2eab976efbbdd39bae1b436e7dcd2ddffd35241432094f29b69308840a938459
+patch_args=-Np0
 
 libmygpo-qt-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libmygui/template b/srcpkgs/libmygui/template
index 902ad67b0d58..30627cf63f85 100644
--- a/srcpkgs/libmygui/template
+++ b/srcpkgs/libmygui/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://mygui.info"
 distfiles="https://github.com/MyGUI/mygui/archive/MyGUI${version}.tar.gz"
 checksum=d1d5f294670ae71f7200ed4b30859018281d8cfd45d6a38d18b97a4aba604c42
+patch_args=-Np0
 
 libmygui-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libnet/template b/srcpkgs/libnet/template
index d38ed97b349e..5454c3b9258f 100644
--- a/srcpkgs/libnet/template
+++ b/srcpkgs/libnet/template
@@ -9,6 +9,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/sam-github/libnet"
 distfiles="https://github.com/sam-github/libnet/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=caa4868157d9e5f32e9c7eac9461efeff30cb28357f7f6bf07e73933fb4edaa7
+patch_args=-Np0
 
 libnet-devel_package() {
 	depends="${sourcepkg}-${version}_${revision}"
diff --git a/srcpkgs/libnetfilter_log/template b/srcpkgs/libnetfilter_log/template
index f2b85ead2ee6..d926f53b2784 100644
--- a/srcpkgs/libnetfilter_log/template
+++ b/srcpkgs/libnetfilter_log/template
@@ -11,6 +11,7 @@ homepage="http://www.netfilter.org/projects/libnetfilter_log/index.html"
 short_desc="A userspace library providing interface to packets that have been logged by the kernel packet filter"
 distfiles="http://www.netfilter.org/projects/${pkgname}/files/${pkgname}-${version}.tar.bz2"
 checksum=74e0fe75753dba3ac114531b5e73240452c789a3f3adccf5c51217da1d933b21
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's/u_int\([0-9]*\)_t/uint\1_t/' utils/* src/* include/libnetfilter_log/*
diff --git a/srcpkgs/libnfc/template b/srcpkgs/libnfc/template
index 7737dad56902..96841d882d66 100644
--- a/srcpkgs/libnfc/template
+++ b/srcpkgs/libnfc/template
@@ -13,6 +13,7 @@ homepage="http://nfc-tools.org/"
 distfiles="https://github.com/nfc-tools/libnfc/archive/libnfc-${version}.tar.gz"
 checksum=0ab7d9b41442e7edc2af7c54630396edc73ce51128aa28a5c6e4135dc5595495
 CFLAGS="-D_GNU_SOURCE"
+patch_args=-Np0
 
 pre_configure() {
 	sed -i "s|MODE=\"0664\", GROUP=\"plugdev\"|TAG+=\"uaccess\"|g" contrib/udev/93-pn53x.rules
diff --git a/srcpkgs/libnfs/template b/srcpkgs/libnfs/template
index f1e27dd15f57..792a882d68c5 100644
--- a/srcpkgs/libnfs/template
+++ b/srcpkgs/libnfs/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/sahlberg/libnfs"
 distfiles="https://github.com/sahlberg/libnfs/archive/${pkgname}-${version}.tar.gz"
 checksum=6ee77e9fe220e2d3e3b1f53cfea04fb319828cc7dbb97dd9df09e46e901d797d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libnih/template b/srcpkgs/libnih/template
index 52ebfddc9b7a..ae28525b1897 100644
--- a/srcpkgs/libnih/template
+++ b/srcpkgs/libnih/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/keybuk/${pkgname}"
 distfiles="${homepage}/archive/${_commit}.tar.gz"
 checksum=bd1ce78c9e4808fd02e06edaf581eb2b70fa43d7baae051848dfdbaf5b4d1a1c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libnl/template b/srcpkgs/libnl/template
index ab8c03352d7d..6b2f6cbe3941 100644
--- a/srcpkgs/libnl/template
+++ b/srcpkgs/libnl/template
@@ -9,6 +9,7 @@ license="LGPL-2.1-only"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="http://www.infradead.org/~tgr/libnl/files/libnl-${version}.tar.gz"
 checksum=4f80c21fe5bbcdde6e72b59b4f98306063a41421f909887c34e58d93e746d063
+patch_args=-Np0
 
 libnl-devel_package() {
 	depends="libnl>=${version}_${revision}"
diff --git a/srcpkgs/libogre/template b/srcpkgs/libogre/template
index df60f7b4f542..e36217268348 100644
--- a/srcpkgs/libogre/template
+++ b/srcpkgs/libogre/template
@@ -17,6 +17,7 @@ license="MIT"
 homepage="http://www.ogre3d.org"
 distfiles="https://github.com/OGRECave/ogre/archive/v$version.tar.gz"
 checksum=028e7d0bbfce8fd254e1102666b07b7cbb9379321e88885d82feee5e061342aa
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
diff --git a/srcpkgs/libomxil-bellagio/template b/srcpkgs/libomxil-bellagio/template
index 6b120a2a87c4..c6f3c9e38cc9 100644
--- a/srcpkgs/libomxil-bellagio/template
+++ b/srcpkgs/libomxil-bellagio/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="http://omxil.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/omxil/omxil/Bellagio%20${version}/${pkgname}-${version}.tar.gz"
 checksum=593c0729c8ef8c1467b3bfefcf355ec19a46dd92e31bfc280e17d96b0934d74c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libopenglrecorder/template b/srcpkgs/libopenglrecorder/template
index b0b06ee3797e..241bc09971cd 100644
--- a/srcpkgs/libopenglrecorder/template
+++ b/srcpkgs/libopenglrecorder/template
@@ -11,6 +11,7 @@ license="3-clause-BSD"
 homepage="https://github.com/Benau/libopenglrecorder"
 distfiles="https://github.com/Benau/libopenglrecorder/archive/v${version}.tar.gz"
 checksum=a90a99c23f868636f77003a8dc6ffe6c3699fc2759c47df5dbd44ff8b42d2e4f
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libopenshot-audio/template b/srcpkgs/libopenshot-audio/template
index 56c330eafcf1..6df0d294f841 100644
--- a/srcpkgs/libopenshot-audio/template
+++ b/srcpkgs/libopenshot-audio/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/OpenShot/libopenshot-audio"
 distfiles="https://github.com/OpenShot/libopenshot-audio/archive/v${version}.tar.gz"
 checksum=937ff4f1c2dfb8ab5d56ad85beacaa29dfd5a79af0d9cf647386034fe9882309
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/libosinfo/template b/srcpkgs/libosinfo/template
index e9210c52f08f..52283fceeca6 100644
--- a/srcpkgs/libosinfo/template
+++ b/srcpkgs/libosinfo/template
@@ -20,6 +20,7 @@ homepage="https://libosinfo.org/"
 changelog="https://gitlab.com/libosinfo/libosinfo/raw/master/NEWS"
 distfiles="https://gitlab.com/libosinfo/libosinfo/-/archive/v${version}/libosinfo-v${version}.tar.gz"
 checksum=7270d7a54f4ea46b21163aa1704caf69a5e8ed980434dac6b9951588cae62ea7
+patch_args=-Np0
 
 build_options="gtk_doc gir vala"
 desc_option_gtk_doc="Build GTK API docs"
diff --git a/srcpkgs/libostree/template b/srcpkgs/libostree/template
index 96ce2464312d..bb03d1c7c31d 100644
--- a/srcpkgs/libostree/template
+++ b/srcpkgs/libostree/template
@@ -20,6 +20,7 @@ homepage="https://ostree.readthedocs.io/en/latest/"
 changelog="https://github.com/ostreedev/ostree/releases"
 distfiles="https://github.com/ostreedev/ostree/releases/download/v${version}/libostree-${version}.tar.xz"
 checksum=854008e7c71d44f6b3670f0e9b8500db0f08ff8b297d0b30a7cb9a66f34c5d7c
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/libowfat/template b/srcpkgs/libowfat/template
index 95c7e9a812bf..3ab028281e03 100644
--- a/srcpkgs/libowfat/template
+++ b/srcpkgs/libowfat/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="https://www.fefe.de/libowfat/"
 distfiles="https://www.fefe.de/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=f4b9b3d9922dc25bc93adedf9e9ff8ddbebaf623f14c8e7a5f2301bfef7998c1
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libportal/template b/srcpkgs/libportal/template
index 48211c3767e1..9dee4f8c0d2c 100644
--- a/srcpkgs/libportal/template
+++ b/srcpkgs/libportal/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-or-later"
 homepage="https://github.com/flatpak/libportal"
 distfiles="https://github.com/flatpak/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.xz"
 checksum=fd35d66357169e63e33ef46c43fdf22ddc07dbd960ec3462b58ca9ef15a65bd7
+patch_args=-Np0
 
 build_options="gtk_doc"
 
diff --git a/srcpkgs/libproxy/template b/srcpkgs/libproxy/template
index d6103007032e..c678d6e8383e 100644
--- a/srcpkgs/libproxy/template
+++ b/srcpkgs/libproxy/template
@@ -13,6 +13,7 @@ homepage="http://github.com/libproxy/libproxy"
 license="LGPL-2.1"
 distfiles="https://github.com/libproxy/libproxy/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=18f58b0a0043b6881774187427ead158d310127fc46a1c668ad6d207fb28b4e0
+patch_args=-Np0
 
 libproxy-devel_package() {
 	depends="libproxy>=${version}_${revision}"
diff --git a/srcpkgs/libpurple-steam/template b/srcpkgs/libpurple-steam/template
index 06c8cc833682..844f7e3b7137 100644
--- a/srcpkgs/libpurple-steam/template
+++ b/srcpkgs/libpurple-steam/template
@@ -1,4 +1,5 @@
 # Template file for 'libpurple-steam'
+patch_args=-Np0
 
 pkgname="libpurple-steam"
 version="1.6.1"
diff --git a/srcpkgs/libratbag/template b/srcpkgs/libratbag/template
index 370d670157f6..b1acd757fa33 100644
--- a/srcpkgs/libratbag/template
+++ b/srcpkgs/libratbag/template
@@ -16,6 +16,7 @@ license="MIT"
 homepage="https://github.com/libratbag/libratbag"
 distfiles="https://github.com/libratbag/libratbag/archive/v${version}.tar.gz"
 checksum=9e6ad8d54daef8cc0f44784bdde9bf5a3879d8a66d11e0b990b87266f81f7329
+patch_args=-Np0
 
 post_install() {
 	vsv ratbagd
diff --git a/srcpkgs/libreadline8/template b/srcpkgs/libreadline8/template
index dbac03c6764b..44245746df7e 100644
--- a/srcpkgs/libreadline8/template
+++ b/srcpkgs/libreadline8/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://tiswww.cwru.edu/php/chet/readline/rltop.html"
 distfiles="${GNU_SITE}/readline/readline-${_dist_ver}.tar.gz"
 checksum=f8ceb4ee131e3232226a17f51b164afc46cd0b9e6cef344be87c65962cb82b02
+patch_args=-Np0
 
 post_patch() {
 	cd ${wrksrc}
diff --git a/srcpkgs/libreoffice/template b/srcpkgs/libreoffice/template
index f08066f12966..2c19e2ec70dc 100644
--- a/srcpkgs/libreoffice/template
+++ b/srcpkgs/libreoffice/template
@@ -5,6 +5,7 @@ revision=1
 build_style=meta
 make_build_target="build-nocheck"
 nocross="Several dependencies are nocross=yes"
+patch_args=-Np0
 
 hostmakedepends="automake flex git gperf hyphen icu libtool openldap which gettext xz
  perl-Archive-Zip pkg-config qt5-qmake sane ucpp unzip wget zip python3-setuptools
diff --git a/srcpkgs/libretro-mupen64plus-rpi/template b/srcpkgs/libretro-mupen64plus-rpi/template
index 47752ab573e9..2bf1f3af3e60 100644
--- a/srcpkgs/libretro-mupen64plus-rpi/template
+++ b/srcpkgs/libretro-mupen64plus-rpi/template
@@ -14,6 +14,7 @@ homepage="http://www.libretro.com/"
 distfiles="https://github.com/libretro/mupen64plus-libretro/archive/${_gitrev}.tar.gz"
 checksum=947abfb1d5ff34d6b22fecfb2df02bd3759fde3f4a0e5d238f65ec7e97d964d4
 conflicts="ĺibretro-mupen64plus>=0"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libretro-mupen64plus/template b/srcpkgs/libretro-mupen64plus/template
index 81adcec5d655..66259516c750 100644
--- a/srcpkgs/libretro-mupen64plus/template
+++ b/srcpkgs/libretro-mupen64plus/template
@@ -13,6 +13,7 @@ homepage="http://www.libretro.com/"
 distfiles="https://github.com/libretro/mupen64plus-libretro/archive/${_gitrev}.tar.gz"
 checksum=947abfb1d5ff34d6b22fecfb2df02bd3759fde3f4a0e5d238f65ec7e97d964d4
 conflicts="ĺibretro-mupen64plus-rpi>=0"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*) hostmakedepends+=" nasm";;
diff --git a/srcpkgs/librtas/template b/srcpkgs/librtas/template
index 65951b25fe13..f7d9c0411d49 100644
--- a/srcpkgs/librtas/template
+++ b/srcpkgs/librtas/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/ibm-power-utilities/librtas"
 distfiles="https://github.com/ibm-power-utilities/librtas/archive/v${version}.tar.gz"
 checksum=b47b2a6f140347ac265e2c66ddf68293f6cdcc7c0c9a78c6e21ff52846465415
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/libscrypt/template b/srcpkgs/libscrypt/template
index f3777bab08e8..debdb6e9c44b 100644
--- a/srcpkgs/libscrypt/template
+++ b/srcpkgs/libscrypt/template
@@ -9,6 +9,7 @@ license="2-clause-BSD"
 homepage="https://github.com/technion/"
 distfiles="https://github.com/technion/${pkgname}/archive/v${version}.tar.gz"
 checksum=68e377e79745c10d489b759b970e52d819dbb80dd8ca61f8c975185df3f457d3
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libsearpc/template b/srcpkgs/libsearpc/template
index 22fbb7987d06..8d527de8c27c 100644
--- a/srcpkgs/libsearpc/template
+++ b/srcpkgs/libsearpc/template
@@ -17,6 +17,7 @@ homepage="https://seafile.com"
 distfiles="https://github.com/haiwen/libsearpc/archive/${_gitrev}.tar.gz"
 checksum=2a58894cefbc1d7398581fc58103261688c93a9cf63f11afc5e92142ed948c00
 python_version=3
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/libselinux/template b/srcpkgs/libselinux/template
index fdd8d639932e..ec31b411ef3f 100644
--- a/srcpkgs/libselinux/template
+++ b/srcpkgs/libselinux/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://www.nsa.gov/what-we-do/research/selinux/"
 distfiles="https://github.com/SELinuxProject/selinux/releases/download/20191204/${pkgname}-${version}.tar.gz"
 checksum=2ea2b30f671dae9d6b1391cbe8fb2ce5d36a3ee4fb1cd3c32f0d933c31b82433
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" musl-fts-devel"
diff --git a/srcpkgs/libsigrokdecode/template b/srcpkgs/libsigrokdecode/template
index 8be3b7363730..a06923caeec7 100644
--- a/srcpkgs/libsigrokdecode/template
+++ b/srcpkgs/libsigrokdecode/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://sigrok.org/"
 distfiles="https://sigrok.org/download/source/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c50814aa6743cd8c4e88c84a0cdd8889d883c3be122289be90c63d7d67883fc0
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf
diff --git a/srcpkgs/libsigsegv/template b/srcpkgs/libsigsegv/template
index 13352c58bc46..977989a1db50 100644
--- a/srcpkgs/libsigsegv/template
+++ b/srcpkgs/libsigsegv/template
@@ -10,6 +10,7 @@ homepage="https://www.gnu.org/software/libsigsegv/"
 distfiles="https://ftpmirror.gnu.org/libsigsegv/libsigsegv-${version}.tar.gz"
 checksum=3ae1af359eebaa4ffc5896a1aee3568c052c99879316a1ab57f8fe1789c390b6
 configure_args="--enable-shared"
+patch_args=-Np0
 
 post_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/libsmbios/template b/srcpkgs/libsmbios/template
index 998437288504..fbd3633b480c 100644
--- a/srcpkgs/libsmbios/template
+++ b/srcpkgs/libsmbios/template
@@ -16,6 +16,7 @@ checksum=36c36a0f6b59190d6b4fef11696886e4511091929a5eb7ae7cf5fea0c32d3f58
 # explicitly list the subpackages to make sure they are installed in the
 # right order:
 subpackages="libsmbios-devel python3-libsmbios libsmbios-utils"
+patch_args=-Np0
 
 archs="i686* x86_64*"
 
diff --git a/srcpkgs/libspnav/template b/srcpkgs/libspnav/template
index df35072b2404..af3966aa1fd7 100644
--- a/srcpkgs/libspnav/template
+++ b/srcpkgs/libspnav/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://spacenav.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/spacenav/${pkgname}-${version}.tar.gz"
 checksum=7ae4d7bb7f6a5dda28b487891e01accc856311440f582299760dace6ee5f1f93
+patch_args=-Np0
 
 do_build() {
 	make CC="${CC}" AR="${AR}"
diff --git a/srcpkgs/libssh/template b/srcpkgs/libssh/template
index 9b57379bfc88..9c3194a779cf 100644
--- a/srcpkgs/libssh/template
+++ b/srcpkgs/libssh/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://www.libssh.org/"
 distfiles="https://git.libssh.org/projects/libssh.git/snapshot/${pkgname}-${version}.tar.gz"
 checksum=df65d6054554e8ff5458628808ce8d68b928175f4fefa1c833582b9568491e64
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args="-DHAVE_GLOB=0" ;;
diff --git a/srcpkgs/libtecla/template b/srcpkgs/libtecla/template
index 7055a50a638a..ee59c9c33667 100644
--- a/srcpkgs/libtecla/template
+++ b/srcpkgs/libtecla/template
@@ -11,6 +11,7 @@ license="MIT/X11"
 homepage="http://www.astro.caltech.edu/~mcs/tecla"
 distfiles="${homepage}/${pkgname}-${version}.tar.gz"
 checksum=f2757cc55040859fcf8f59a0b7b26e0184a22bece44ed9568a4534a478c1ee1a
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.TERMS LICENSE
diff --git a/srcpkgs/libticables2/template b/srcpkgs/libticables2/template
index 17f06ace976a..947288493728 100644
--- a/srcpkgs/libticables2/template
+++ b/srcpkgs/libticables2/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.ticalc.org"
 distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${_tilpver}/${pkgname}-${version}.tar.bz2"
 checksum=0c6fb6516e72ccab081ddb3aecceff694ed93aec689ddd2edba9c7c7406c4522
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" gettext-devel"
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index b9972df70341..1eafc55f90bb 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.gnu.org/software/libtool"
 distfiles="${GNU_SITE}/libtool/$pkgname-$version.tar.xz"
 checksum=7c87a8c2c8c0fc9cd5019e402bed4292462d00a718a7cd5f11218153bf28b26f
+patch_args=-Np0
 
 pre_configure() {
 	touch aclocal.m4 libltdl/aclocal.m4 Makefile.am libltdl/Makefile.am Makefile.in libltdl/Makefile.in
diff --git a/srcpkgs/libtorrent/template b/srcpkgs/libtorrent/template
index cadf0f5bb1dc..c358b89ebffe 100644
--- a/srcpkgs/libtorrent/template
+++ b/srcpkgs/libtorrent/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/rakshasa/libtorrent"
 distfiles="https://github.com/rakshasa/libtorrent/archive/v${version}.tar.gz"
 checksum=0f6c2e7ffd3a1723ab47fdac785ec40f85c0a5b5a42c1d002272205b988be722
+patch_args=-Np0
 
 # https://github.com/rakshasa/rtorrent/issues/156
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/libu2f-host/template b/srcpkgs/libu2f-host/template
index c2cd5b754dca..e8a14e5d4f39 100644
--- a/srcpkgs/libu2f-host/template
+++ b/srcpkgs/libu2f-host/template
@@ -15,6 +15,7 @@ homepage="https://developers.yubico.com/libu2f-host/"
 #changelog="https://raw.githubusercontent.com/Yubico/libu2f-host/master/NEWS"
 distfiles="https://github.com/Yubico/libu2f-host/archive/libu2f-host-${version}.tar.gz"
 checksum=45937c6c04349f865d9f047d3a68cc50ea24e9085d18ac2c7d31fa38eb749303
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libu2f-server/template b/srcpkgs/libu2f-server/template
index 661fc934531f..334b9bbe754a 100644
--- a/srcpkgs/libu2f-server/template
+++ b/srcpkgs/libu2f-server/template
@@ -12,6 +12,7 @@ license="BSD"
 homepage="https://developers.yubico.com/libu2f-server/"
 distfiles="https://github.com/Yubico/libu2f-server/archive/libu2f-server-${version}.tar.gz"
 checksum=6551109e692c9c4fea61e99f1cd8377e8e54e3033e421cc191da6d673311c860
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libucl/template b/srcpkgs/libucl/template
index 04b2608684d2..d5440d9b9606 100644
--- a/srcpkgs/libucl/template
+++ b/srcpkgs/libucl/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/vstakhov/libucl"
 distfiles="https://github.com/vstakhov/libucl/archive/${version}.tar.gz"
 checksum=a6397e179672f0e8171a0f9a2cfc37e01432b357fd748b13f4394436689d24ef
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/libuninum/template b/srcpkgs/libuninum/template
index e66a1df67ece..d2278fa24568 100644
--- a/srcpkgs/libuninum/template
+++ b/srcpkgs/libuninum/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-only"
 homepage="http://billposer.org/Software/libuninum.html"
 distfiles="http://billposer.org/Software/Downloads/libuninum-${version}.tar.bz2"
 checksum=e704983c3c00e9b76bd836b8b83ce31bfe4eb1752eee8be123cf97c1275076ea
+patch_args=-Np0
 
 libuninum-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libunique/template b/srcpkgs/libunique/template
index db488533acbf..316b811bfb7e 100644
--- a/srcpkgs/libunique/template
+++ b/srcpkgs/libunique/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Attic/LibUnique"
 distfiles="${GNOME_SITE}/${pkgname}/3.0/${pkgname}-${version}.tar.bz2"
 checksum=50269a87c7aabf1e25f01b3bbb280133138ffd7b6776289894c614a4b6ca968d
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/libunwind/template b/srcpkgs/libunwind/template
index d4819ce54acd..808d89e49847 100644
--- a/srcpkgs/libunwind/template
+++ b/srcpkgs/libunwind/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://www.nongnu.org/libunwind/"
 distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version/rc/-rc}.tar.gz"
 checksum=90337653d92d4a13de590781371c604f9031cdb50520366aa1e3a91e1efb1017
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libusb-compat/template b/srcpkgs/libusb-compat/template
index 016d5753f1d6..05585a0ad57a 100644
--- a/srcpkgs/libusb-compat/template
+++ b/srcpkgs/libusb-compat/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="http://libusb.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/libusb/$pkgname-$version.tar.bz2"
 checksum=404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a
+patch_args=-Np0
 
 libusb-compat-devel_package() {
 	depends="libusb-devel ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libusb/template b/srcpkgs/libusb/template
index 8c5ff6054eed..6ec291f0778d 100644
--- a/srcpkgs/libusb/template
+++ b/srcpkgs/libusb/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://libusb.info"
 distfiles="https://github.com/libusb/libusb/releases/download/v${version}/libusb-${version}.tar.bz2"
 checksum=7efd2685f7b327326dcfb85cee426d9b871fd70e22caa15bb68d595ce2a2b12a
+patch_args=-Np0
 
 libusb-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libusbmuxd/template b/srcpkgs/libusbmuxd/template
index e3ae03e51b9c..192aa8b4a0dc 100644
--- a/srcpkgs/libusbmuxd/template
+++ b/srcpkgs/libusbmuxd/template
@@ -12,6 +12,7 @@ homepage="https://libimobiledevice.org"
 changelog="https://raw.githubusercontent.com/libimobiledevice/libusbmuxd/master/NEWS"
 distfiles="https://github.com/libimobiledevice/libusbmuxd/archive/${version}.tar.gz"
 checksum=8ae3e1d9340177f8f3a785be276435869363de79f491d05d8a84a59efc8a8fdc
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libuv/template b/srcpkgs/libuv/template
index 76a36863f4b9..24938fe4bc0e 100644
--- a/srcpkgs/libuv/template
+++ b/srcpkgs/libuv/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/libuv/libuv/archive/v${version}.tar.gz"
 checksum=6cfeb5f4bab271462b4a2cc77d4ecec847fdbdc26b72019c27ae21509e6f94fa
 # the tests fail when run as root and as such break in the CI containers
 make_check="extended"
+patch_args=-Np0
 
 LDFLAGS="-pthread"
 
diff --git a/srcpkgs/libvdpau/template b/srcpkgs/libvdpau/template
index 8b1c817cfd07..81fa6d314465 100644
--- a/srcpkgs/libvdpau/template
+++ b/srcpkgs/libvdpau/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://freedesktop.org/wiki/Software/VDPAU/"
 distfiles="https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/${version}/libvdpau-${version}.tar.gz"
 checksum=240dd8f9ec08de707529917677827ba12e13b9fc299eeb3af13ea05e7fc74aba
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libvidstab/template b/srcpkgs/libvidstab/template
index 6d28468873b5..acd85fc894a0 100644
--- a/srcpkgs/libvidstab/template
+++ b/srcpkgs/libvidstab/template
@@ -11,6 +11,7 @@ license="GPL-2"
 homepage="http://public.hronopik.de/vid.stab/"
 distfiles="https://github.com/georgmartius/vid.stab/archive/v${version}.tar.gz"
 checksum=14d2a053e56edad4f397be0cb3ef8eb1ec3150404ce99a426c4eb641861dc0bb
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e 's/include (FindSSE)//' CMakeLists.txt
diff --git a/srcpkgs/libvirt-glib/template b/srcpkgs/libvirt-glib/template
index 032188df7f73..568e921d9902 100644
--- a/srcpkgs/libvirt-glib/template
+++ b/srcpkgs/libvirt-glib/template
@@ -16,6 +16,7 @@ homepage="https://libvirt.org"
 distfiles="http://libvirt.org/sources/glib/${pkgname}-${version}.tar.xz"
 checksum=8423f7069daa476307321d1c11e2ecc285340cd32ca9fc05207762843edeacbd
 replaces="libvirt-glib-python>=0"
+patch_args=-Np0
 
 build_options="doc gir vala"
 build_options_default="gir vala"
diff --git a/srcpkgs/libwmf/template b/srcpkgs/libwmf/template
index 938d07c5e6b4..c427559b43c9 100644
--- a/srcpkgs/libwmf/template
+++ b/srcpkgs/libwmf/template
@@ -17,6 +17,7 @@ homepage="http://wvware.sourceforge.net/libwmf.html"
 license="LGPL-2.1"
 distfiles="${SOURCEFORGE_SITE}/wvware/${pkgname}-${version}.tar.gz"
 checksum=5b345c69220545d003ad52bfd035d5d6f4f075e65204114a9e875e84895a7cf8
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libxdg-basedir/template b/srcpkgs/libxdg-basedir/template
index f9cc8880c438..f572dd6294c7 100644
--- a/srcpkgs/libxdg-basedir/template
+++ b/srcpkgs/libxdg-basedir/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/devnev/libxdg-basedir"
 distfiles="https://github.com/devnev/libxdg-basedir/archive/libxdg-basedir-${version}.tar.gz"
 checksum=1c2b0032a539033313b5be2e48ddd0ae94c84faf21d93956d53562eef4614868
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libxkbcommon/template b/srcpkgs/libxkbcommon/template
index 3cfefeb295d2..26668752a01f 100644
--- a/srcpkgs/libxkbcommon/template
+++ b/srcpkgs/libxkbcommon/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="https://xkbcommon.org/"
 distfiles="https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-${version}.tar.gz"
 checksum=e1b79838256549d72f42c824f720b4f14603374cfbe5587942e35a0cbb13ff9e
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libxml2-python/template b/srcpkgs/libxml2-python/template
index 4208519dac3e..dca8e06333d5 100644
--- a/srcpkgs/libxml2-python/template
+++ b/srcpkgs/libxml2-python/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.xmlsoft.org/"
 distfiles="http://xmlsoft.org/sources/libxml2-${version}.tar.gz"
 checksum=aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f
+patch_args=-Np0
 
 post_patch() {
 	if [ "${CROSS_BUILD}" ]; then
diff --git a/srcpkgs/libxml2/template b/srcpkgs/libxml2/template
index c334f505ed0c..b45761f66b27 100644
--- a/srcpkgs/libxml2/template
+++ b/srcpkgs/libxml2/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="http://www.xmlsoft.org/"
 distfiles="http://xmlsoft.org/sources/${pkgname}-${version}.tar.gz"
 checksum=aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libxo/template b/srcpkgs/libxo/template
index fb0ae8cb85ca..0990f737af5b 100644
--- a/srcpkgs/libxo/template
+++ b/srcpkgs/libxo/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="https://juniper.github.io/libxo/libxo-manual.html"
 distfiles="https://github.com/Juniper/libxo/releases/download/${version}/libxo-${version}.tar.gz"
 checksum=aa842d9374bc0c640d9526abdeb6f1dc75c1a14e892eafd3c9e0ee2e8dfc1c43
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	*-musl)
diff --git a/srcpkgs/libzim/template b/srcpkgs/libzim/template
index fe3c53109803..bac5a114bbea 100644
--- a/srcpkgs/libzim/template
+++ b/srcpkgs/libzim/template
@@ -15,6 +15,7 @@ changelog="https://github.com/openzim/libzim/blob/${version}/ChangeLog"
 distfiles="https://github.com/openzim/libzim/archive/${version}.tar.gz"
 checksum=984d2f3881c507c9f0212dc2bc1b808d25cdeef6a62043f9211fcb78a231a986
 replaces="libzim-tools>=0"
+patch_args=-Np0
 
 build_options="xapian zlib zstd"
 build_options_default="xapian zlib zstd"
diff --git a/srcpkgs/lightdm-webkit2-greeter/template b/srcpkgs/lightdm-webkit2-greeter/template
index da5786768de8..376d8eb4c661 100644
--- a/srcpkgs/lightdm-webkit2-greeter/template
+++ b/srcpkgs/lightdm-webkit2-greeter/template
@@ -15,6 +15,7 @@ homepage="https://github.com/Antergos/web-greeter"
 distfiles="https://github.com/Antergos/web-greeter/archive/${version}.tar.gz"
 checksum=f3223db35d0efaae76b2157f312dd10979c133f5a85add8fc75fd66ecb3186e3
 conf_files="/etc/lightdm/lightdm-webkit2-greeter.conf"
+patch_args=-Np0
 
 post_extract() {
 	mv themes/antergos themes/void
diff --git a/srcpkgs/lightdm/template b/srcpkgs/lightdm/template
index b2fed5ac3c6a..cf14f96c4bf0 100644
--- a/srcpkgs/lightdm/template
+++ b/srcpkgs/lightdm/template
@@ -14,6 +14,7 @@ homepage="https://github.com/CanonicalLtd/lightdm"
 changelog="https://raw.githubusercontent.com/CanonicalLtd/lightdm/master/NEWS"
 distfiles="https://github.com/CanonicalLtd/lightdm/releases/download/${version}/lightdm-${version}.tar.xz"
 checksum=a118779650a3a5b20f05d53c4f9e377b484fbc1810a6b0914a60840d9a581f95
+patch_args=-Np0
 
 hostmakedepends="pkg-config intltool itstool $(vopt_if gir 'gobject-introspection vala')"
 makedepends="dbus-glib-devel libxklavier-devel libxml2-devel
diff --git a/srcpkgs/lighttpd/template b/srcpkgs/lighttpd/template
index 7ae82aecfc33..d52c74622bc0 100644
--- a/srcpkgs/lighttpd/template
+++ b/srcpkgs/lighttpd/template
@@ -21,6 +21,7 @@ license="BSD-3-Clause"
 homepage="https://lighttpd.net"
 distfiles="https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${version}.tar.xz"
 checksum=fb953db273daef08edb6e202556cae8a3d07eed6081c96bd9903db957d1084d5
+patch_args=-Np0
 
 conf_files="/etc/lighttpd/lighttpd.conf"
 system_accounts="_${pkgname}"
diff --git a/srcpkgs/lightzone/template b/srcpkgs/lightzone/template
index 13242f01cc77..ca214c932783 100644
--- a/srcpkgs/lightzone/template
+++ b/srcpkgs/lightzone/template
@@ -19,6 +19,7 @@ skip_extraction="ivy-${_ivy_version}.jar"
 # JNI binaries are not PIE
 nopie=yes
 replaces="lightzone-bin>=0"
+patch_args=-Np0
 
 do_build() {
 	mkdir -p lightcrafts/lib
diff --git a/srcpkgs/lilo/template b/srcpkgs/lilo/template
index f42a9eb5f5ba..bc8f1699d587 100644
--- a/srcpkgs/lilo/template
+++ b/srcpkgs/lilo/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://www.joonet.de/lilo"
 distfiles="${DEBIAN_SITE}/main/l/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=e158f19de4560c935ebe0507c21b79bff17618b9230d8076fe8c5fff9fdbd5b1
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/lilyterm/template b/srcpkgs/lilyterm/template
index 31bc2ad9dc05..deadaa80f37e 100644
--- a/srcpkgs/lilyterm/template
+++ b/srcpkgs/lilyterm/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/Tetralet/LilyTerm/archive/$_githash.tar.gz"
 conf_files="/etc/lilyterm.conf"
 checksum=e777122cb4db0c75b893368aa5a3ae7de1bdfe27e1efb8fad8f9c19acb0a802e
 CFLAGS="-Wno-deprecated-declarations"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e '/LDFLAGS.*BINARY/s/$/ -lX11/' \
diff --git a/srcpkgs/linphone-desktop/template b/srcpkgs/linphone-desktop/template
index 3991291c0b7f..5526b11c727b 100644
--- a/srcpkgs/linphone-desktop/template
+++ b/srcpkgs/linphone-desktop/template
@@ -19,6 +19,7 @@ checksum=a9c520851ec40ebd6bc28b5ebc0e4d2b5f62ef3b53e5d60bb241c0b2bd56ad62
 replaces="linphone-gui>=0"
 CFLAGS="-DLINPHONE_QT_GIT_VERSION=\\\"$version\\\""
 CXXFLAGS="-DLINPHONE_QT_GIT_VERSION=\\\"$version\\\""
+patch_args=-Np0
 
 linphone-gui_package() {
 	short_desc+=" - (transitional dummy package)"
diff --git a/srcpkgs/linssid/template b/srcpkgs/linssid/template
index 3347f193c3e7..6cfe9177df4c 100644
--- a/srcpkgs/linssid/template
+++ b/srcpkgs/linssid/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="https://sourceforge.net/projects/linssid/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=57301ee93f708f2512316668bf4e718502f37f21a5e93b68fc604a9032e3e49c
+patch_args=-Np0
 
 pre_configure() {
 	sed -e "s%/usr/include%${XBPS_CROSS_BASE}&%g" -i linssid-app/linssid-app.pro
diff --git a/srcpkgs/linux-tools/template b/srcpkgs/linux-tools/template
index f28f2b17ac19..a57726ab0076 100644
--- a/srcpkgs/linux-tools/template
+++ b/srcpkgs/linux-tools/template
@@ -18,6 +18,7 @@ homepage="https://www.kernel.org"
 distfiles="${KERNEL_SITE}/kernel/v5.x/linux-${version}.tar.xz"
 checksum=904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
 python_version=3
+patch_args=-Np0
 
 subpackages="cpupower freefall libcpupower libcpupower-devel libusbip libusbip-devel perf tmon usbip"
 
diff --git a/srcpkgs/linux-vt-setcolors/template b/srcpkgs/linux-vt-setcolors/template
index fa3f7681b75b..e46c87d3c50a 100644
--- a/srcpkgs/linux-vt-setcolors/template
+++ b/srcpkgs/linux-vt-setcolors/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/EvanPurkhiser/linux-vt-setcolors"
 distfiles="https://github.com/EvanPurkhiser/linux-vt-setcolors/archive/v${version}.tar.gz"
 checksum=ccad9aac5732faab749e8f6f6b40746ce44afec5633374aa77c8e3ac2a8eef42
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/linux4.4/template b/srcpkgs/linux4.4/template
index db6cf3d38e5f..152619d3ebf2 100644
--- a/srcpkgs/linux4.4/template
+++ b/srcpkgs/linux4.4/template
@@ -13,6 +13,7 @@ checksum="401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2
  7fe0edc77e6ba8d41035488402a2f05c58a64c101cb5556ea0f6e229dc306eed"
 skip_extraction="patch-${version}.xz"
 python_version=2 #unverified
+patch_args=-Np0
 
 nocross=yes
 nodebug=yes
diff --git a/srcpkgs/liquid-dsp/template b/srcpkgs/liquid-dsp/template
index 432adac62cf7..aec6f7222b9b 100644
--- a/srcpkgs/liquid-dsp/template
+++ b/srcpkgs/liquid-dsp/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://liquidsdr.org/"
 distfiles="https://github.com/jgaeddert/liquid-dsp/archive/v${version}.tar.gz"
 checksum=e3f66ce72a3b5d74eea5ccffb049c62c422c91b0ab92d6dbbef21af3c3bfec73
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/liquidwar/template b/srcpkgs/liquidwar/template
index 69bc87d1b1a7..5ef7aa9a4964 100644
--- a/srcpkgs/liquidwar/template
+++ b/srcpkgs/liquidwar/template
@@ -15,6 +15,7 @@ homepage="http://www.ufoot.org/liquidwar"
 distfiles="http://www.ufoot.org/download/${pkgname}/v5/${version}/${pkgname}-${version}.tar.gz"
 checksum=dad0aa84dd416cad055421ed9b40df39efae78d3df759c0583c64c54f7f2ff5f
 nocross="run build artifarts"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/litecoin/template b/srcpkgs/litecoin/template
index fc91bb89f120..3837c269d323 100644
--- a/srcpkgs/litecoin/template
+++ b/srcpkgs/litecoin/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.litecoin.org/"
 distfiles="https://github.com/litecoin-project/litecoin/archive/v${version}.tar.gz"
 checksum=2d67cba11adc5890b9698ccddeb68dd3c2ff6af19bf3ed0f1c719348b914042f
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools protobuf"
diff --git a/srcpkgs/llvm11/template b/srcpkgs/llvm11/template
index 6204f1e8e369..98b0af1bd19c 100644
--- a/srcpkgs/llvm11/template
+++ b/srcpkgs/llvm11/template
@@ -26,6 +26,7 @@ checksum="
  913f68c898dfb4a03b397c5e11c6a2f39d0f22ed7665c9cefa87a34423a72469"
 lib32disabled=yes
 python_version=3
+patch_args=-Np0
 
 post_patch() {
 	# patches
diff --git a/srcpkgs/llvm12/template b/srcpkgs/llvm12/template
index 38937f68564f..c4ed10574d23 100644
--- a/srcpkgs/llvm12/template
+++ b/srcpkgs/llvm12/template
@@ -56,6 +56,7 @@ checksum="
  eb1b7022a247332114985ed155a8fb632c28ce7c35a476e2c0caf865150f167d"
 lib32disabled=yes
 python_version=3
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" -DLIBCXX_HAS_MUSL_LIBC=YES"
diff --git a/srcpkgs/lmdb/template b/srcpkgs/lmdb/template
index 14509699fc5e..f2900a390a98 100644
--- a/srcpkgs/lmdb/template
+++ b/srcpkgs/lmdb/template
@@ -9,6 +9,7 @@ license="OLDAP-2.8"
 homepage="http://symas.com/mdb/"
 distfiles="https://github.com/LMDB/lmdb/archive/LMDB_${version}.tar.gz"
 checksum=22054926b426c66d8f2bc22071365df6e35f3aacf19ad943bc6167d4cae3bebb
+patch_args=-Np0
 
 do_build() {
 	cd libraries/liblmdb
diff --git a/srcpkgs/lmms/template b/srcpkgs/lmms/template
index 15b67a8f222c..a07507954e9a 100644
--- a/srcpkgs/lmms/template
+++ b/srcpkgs/lmms/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later"
 homepage="https://lmms.io/"
 distfiles="https://github.com/LMMS/lmms/releases/download/v${version}/lmms_${version}.tar.xz"
 checksum=b185507fb64ecfd8e31145135b58ab244b637f9efc09c4176caf70aa3cbaae1e
+patch_args=-Np0
 
 build_options="sndio"
 build_options_default="sndio"
diff --git a/srcpkgs/log4cxx/template b/srcpkgs/log4cxx/template
index 269147155f8e..2e64c18f71b2 100644
--- a/srcpkgs/log4cxx/template
+++ b/srcpkgs/log4cxx/template
@@ -11,6 +11,7 @@ homepage="https://logging.apache.org/log4cxx/"
 distfiles="http://apache.osuosl.org/logging/log4cxx/${version}/apache-log4cxx-${version}.tar.gz"
 checksum=0de0396220a9566a580166e66b39674cb40efd2176f52ad2c65486c99c920c8c
 wrksrc="apache-${pkgname}-${version}"
+patch_args=-Np0
 
 log4cxx-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/loksh/template b/srcpkgs/loksh/template
index 327ac3a7583d..54c65566e151 100644
--- a/srcpkgs/loksh/template
+++ b/srcpkgs/loksh/template
@@ -12,6 +12,7 @@ homepage="https://github.com/dimkr/loksh"
 distfiles="https://github.com/dimkr/loksh/releases/download/${version}/loksh-${version}.tar.xz"
 checksum=1633048cd5f1270c5fa28ab49d9cb9f7e8305ab6880601b0c15b88ecb92450f9
 register_shell="/bin/loksh"
+patch_args=-Np0
 
 alternatives="
  ksh:ksh:/usr/bin/loksh
diff --git a/srcpkgs/loudmouth/template b/srcpkgs/loudmouth/template
index 4178683d5de9..6dedbb71f7c0 100644
--- a/srcpkgs/loudmouth/template
+++ b/srcpkgs/loudmouth/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/mcabber/loudmouth"
 distfiles="https://github.com/mcabber/${pkgname}/archive/${version}.tar.gz"
 checksum=12972fcffd9bbcc4a3b2b9fbf4b0e549f7b4caf0f11c8d2af2059087ce4e8792
+patch_args=-Np0
 
 CFLAGS+=" -Wno-deprecated-declarations"
 
diff --git a/srcpkgs/lshw/template b/srcpkgs/lshw/template
index 6ba1bb44a956..88a5887251ba 100644
--- a/srcpkgs/lshw/template
+++ b/srcpkgs/lshw/template
@@ -16,6 +16,7 @@ license="GPL-2.0-only"
 homepage="https://ezix.org/project/wiki/HardwareLiSter"
 distfiles="https://ezix.org/software/files/lshw-${version}.tar.gz"
 checksum=9bb347ac87142339a366a1759ac845e3dbb337ec000aa1b99b50ac6758a80f80
+patch_args=-Np0
 
 post_patch() {
 	vsed -i src/Makefile src/gui/Makefile \
diff --git a/srcpkgs/ltrace/template b/srcpkgs/ltrace/template
index a26e64e3c797..4a44438964b1 100644
--- a/srcpkgs/ltrace/template
+++ b/srcpkgs/ltrace/template
@@ -13,6 +13,7 @@ homepage="http://ltrace.org"
 license="GPL-2"
 distfiles="https://github.com/dkogan/ltrace/archive/${_githash}.tar.gz"
 checksum=4aecf69e4a33331aed1e50ce4907e73a98cbccc4835febc3473863474304d547
+patch_args=-Np0
 
 CFLAGS="-Wno-error -D_GNU_SOURCE"
 
diff --git a/srcpkgs/lttng-tools/template b/srcpkgs/lttng-tools/template
index 96d4061584e3..b1ed6c1ad5ad 100644
--- a/srcpkgs/lttng-tools/template
+++ b/srcpkgs/lttng-tools/template
@@ -15,6 +15,7 @@ checksum=d729f8c2373a41194f171aeb0da0a9bb35ac181f31afa7e260786d19a500dea1
 # tests timeout
 make_check=no
 system_groups="tracing"
+patch_args=-Np0
 
 lttng-tools-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 63a505b4ecf4..58efbb3ff67b 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://w3.impa.br/~diego/software/luasocket/"
 distfiles="http://luaforge.net/frs/download.php/2664/luasocket-${version}.tar.gz"
 checksum=4fd9c775cfd98841299851e29b30176caf289370fea1ff1e00bb67c2d6842ca6
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC LD=$CC LUAINC=-I${XBPS_CROSS_BASE}/usr/include/lua5.1 ${makejobs}
diff --git a/srcpkgs/lua51/template b/srcpkgs/lua51/template
index 7aad299f0757..d57fdad05f18 100644
--- a/srcpkgs/lua51/template
+++ b/srcpkgs/lua51/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-$version.tar.gz"
 checksum=2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.1
diff --git a/srcpkgs/lua52/template b/srcpkgs/lua52/template
index f53cb345ebca..a8406f18d627 100644
--- a/srcpkgs/lua52/template
+++ b/srcpkgs/lua52/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-$version.tar.gz"
 checksum=b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.2
diff --git a/srcpkgs/lua53/template b/srcpkgs/lua53/template
index 7a923690a566..ac63a8bc1592 100644
--- a/srcpkgs/lua53/template
+++ b/srcpkgs/lua53/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-${version}.tar.gz"
 checksum=0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.3
diff --git a/srcpkgs/lua54-lgi/template b/srcpkgs/lua54-lgi/template
index abae56cc4310..9be201629b8d 100644
--- a/srcpkgs/lua54-lgi/template
+++ b/srcpkgs/lua54-lgi/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://github.com/pavouk/lgi"
 distfiles="https://github.com/pavouk/lgi/archive/$version.tar.gz"
 checksum=cfc4105482b4730b3a40097c9d9e7e35c46df2fb255370bdeb2f45a886548c4f
+patch_args=-Np0
 
 # requires X11
 do_check() {
diff --git a/srcpkgs/lua54-lualdap/template b/srcpkgs/lua54-lualdap/template
index 386222ce0c6d..d5379fc6e586 100644
--- a/srcpkgs/lua54-lualdap/template
+++ b/srcpkgs/lua54-lualdap/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/lualdap/lualdap"
 distfiles="https://github.com/lualdap/lualdap/archive/v${version}.tar.gz"
 checksum=3e028faa6a5798cf2f3d50b9853b9b3fb6eb562b62010747bd5b6f50b57bb1cc
+patch_args=-Np0
 
 post_patch() {
 	cd ${wrksrc}
diff --git a/srcpkgs/lua54/template b/srcpkgs/lua54/template
index 1abbe11246f1..1b4696399797 100644
--- a/srcpkgs/lua54/template
+++ b/srcpkgs/lua54/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-${version}.tar.gz"
 checksum=f8612276169e3bfcbcfb8f226195bfc6e466fe13042f1076cbde92b7ec96bbfb
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.4
diff --git a/srcpkgs/luakit/template b/srcpkgs/luakit/template
index 4fa00bb75712..aa089acc9dea 100644
--- a/srcpkgs/luakit/template
+++ b/srcpkgs/luakit/template
@@ -14,6 +14,7 @@ homepage="https://luakit.github.io/"
 changelog="https://github.com/luakit/luakit/blob/develop/CHANGELOG.md"
 distfiles="https://github.com/luakit/luakit/archive/${version}.tar.gz"
 checksum=c7026b4f0bdfa44f43798b80f87548d3e7ad56f5b923fc43b9c712bf18496095
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/lumina/template b/srcpkgs/lumina/template
index ed7ef97adfba..b2451f5dc92b 100644
--- a/srcpkgs/lumina/template
+++ b/srcpkgs/lumina/template
@@ -16,6 +16,7 @@ homepage="https://github.com/lumina-desktop/lumina"
 distfiles="https://github.com/lumina-desktop/lumina/archive/v${version}.tar.gz"
 checksum=f3512fca4d05e3cf3a6ac106f0f16c9618bda9fa546f1d23ffb0eab9a5ce7c8a
 replaces="lumina-git>=0"
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/lvm2/template b/srcpkgs/lvm2/template
index b7d287577c32..b04e9a0d46a1 100644
--- a/srcpkgs/lvm2/template
+++ b/srcpkgs/lvm2/template
@@ -24,6 +24,7 @@ conf_files="/etc/lvm/*.conf /etc/lvm/profile/*"
 make_dirs="
  /etc/lvm/archive 0755 root root
  /etc/lvm/backup 0755 root root"
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	*-musl) configure_args+=" --enable-static_link";;
diff --git a/srcpkgs/lwipv6/template b/srcpkgs/lwipv6/template
index 66ce29f506e4..441fe3e7e9da 100644
--- a/srcpkgs/lwipv6/template
+++ b/srcpkgs/lwipv6/template
@@ -11,6 +11,7 @@ homepage="http://wiki.v2.cs.unibo.it/wiki/index.php/LWIPV6"
 distfiles="${SOURCEFORGE_SITE}/view-os/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
 checksum=4ad9415c0bf9a2aca0aa858ac1601c20d7c04b5d051d000d4a03eb1eeb0ed05a
 CPPFLAGS='-DGNU_SOURCE -D__USE_MISC -D__caddr_t=caddr_t'
+patch_args=-Np0
 
 lwipv6-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/lxappearance/template b/srcpkgs/lxappearance/template
index 7fcaad225f8d..f1475690dc04 100644
--- a/srcpkgs/lxappearance/template
+++ b/srcpkgs/lxappearance/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=7222d858b8fef4b7967c42142d61e82ded6dd42dc5ef1d59caad775795928b38
+patch_args=-Np0
 
 build_options="gtk3 dbus"
 build_options_default="dbus gtk3"
diff --git a/srcpkgs/lxdm/template b/srcpkgs/lxdm/template
index 55ae9b5356eb..86684d3b5162 100644
--- a/srcpkgs/lxdm/template
+++ b/srcpkgs/lxdm/template
@@ -23,6 +23,7 @@ license="GPL-3.0-or-later"
 homepage="https://lxde.org"
 distfiles="${SOURCEFORGE_SITE}/lxdm/lxdm-${version}.tar.xz"
 checksum=4891efee81c72a400cc6703e40aa76f3f3853833d048b72ec805da0f93567f2f
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/lxpanel/template b/srcpkgs/lxpanel/template
index 6dff9ac554f9..3f3f3f2f98b0 100644
--- a/srcpkgs/lxpanel/template
+++ b/srcpkgs/lxpanel/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=1e318f57d7e36b61c23a504d03d2430c78dad142c1804451061f1b3ea5441ee8
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/lzf/template b/srcpkgs/lzf/template
index 1d4e437dc1d4..b8457facdcea 100644
--- a/srcpkgs/lzf/template
+++ b/srcpkgs/lzf/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="http://software.schmorp.de/pkg/liblzf.html"
 distfiles="http://dist.schmorp.de/liblzf/lib${pkgname}-${version}.tar.gz"
 checksum=9c5de01f7b9ccae40c3f619d26a7abec9986c06c36d260c179cedd04b89fb46a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/mDNSResponder/template b/srcpkgs/mDNSResponder/template
index c0425e7b34ee..9af08f79dff5 100644
--- a/srcpkgs/mDNSResponder/template
+++ b/srcpkgs/mDNSResponder/template
@@ -9,6 +9,7 @@ license="Apache-2.0, BSD-3-Clause"
 homepage="https://opensource.apple.com/"
 distfiles="https://opensource.apple.com/tarballs/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=097662447e1535573484697861d9f50eceaf2c52ec2742e451ee6ffe9bbf3e75
+patch_args=-Np0
 
 conf_files="/etc/nss_mdns.conf"
 conflicts="nss-mdns>=0"
diff --git a/srcpkgs/mairix/template b/srcpkgs/mairix/template
index 49f73671bcba..f0e7fdcce13b 100644
--- a/srcpkgs/mairix/template
+++ b/srcpkgs/mairix/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/vandry/mairix"
 distfiles="https://github.com/vandry/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=a0702e079c768b6fbe25687ebcbabe7965eb493d269a105998c7c1c2caef4a57
+patch_args=-Np0
 
 pre_build() {
 	make -C dfasyn CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS"
diff --git a/srcpkgs/makedumpfile/template b/srcpkgs/makedumpfile/template
index d23444187c90..cef2f4d14dab 100644
--- a/srcpkgs/makedumpfile/template
+++ b/srcpkgs/makedumpfile/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/makedumpfile/makedumpfile"
 distfiles="${homepage}/archive/refs/tags/${version}.tar.gz"
 checksum=393ea8f22393c059ad21de9b1c3f45d9d0d8dbeb0ccb1417815b835d03f7c350
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/makeself/template b/srcpkgs/makeself/template
index 4c498dce7734..68b71aa77a57 100644
--- a/srcpkgs/makeself/template
+++ b/srcpkgs/makeself/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="http://makeself.io"
 distfiles="https://github.com/megastep/makeself/archive/release-$version.tar.gz"
 checksum=8789312db5e93fc471a1e4fb88ec13227ef63a9c7aad297f3bbf35f9511f8d62
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/share/man/man1
diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template
index b13571dd4cd3..6317423767e2 100644
--- a/srcpkgs/mame/template
+++ b/srcpkgs/mame/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/mamedev/mame/archive/mame${version}.tar.gz"
 checksum=414921771ada0804a8c7f3540e33338e8495e16a3bca78a5a2b355abafa51e6a
 nodebug=yes
 replaces="sdlmame>=0 sdlmess>=0"
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.3 -I${XBPS_CROSS_BASE}/usr/include/libutf8proc"
 CXXFLAGS="$CFLAGS"
diff --git a/srcpkgs/man-db/template b/srcpkgs/man-db/template
index c8b873771d27..80bfd7964ff0 100644
--- a/srcpkgs/man-db/template
+++ b/srcpkgs/man-db/template
@@ -26,6 +26,7 @@ lib32disabled=yes
 system_accounts="_man"
 _man_homedir="/var/cache/man"
 make_dirs="/var/cache/man 0755 _man _man"
+patch_args=-Np0
 
 # among others, requires the _man user to be available in the masterdir
 make_check=no
diff --git a/srcpkgs/marble5/template b/srcpkgs/marble5/template
index 3efa3591ea58..5baadb8e3540 100644
--- a/srcpkgs/marble5/template
+++ b/srcpkgs/marble5/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later, GFDL-1.2-only"
 homepage="https://marble.kde.org"
 distfiles="${KDE_SITE}/release-service/${version}/src/marble-${version}.tar.xz"
 checksum=66e1fe73e248ba18245e2a1e234eecf49d531569b5080e19a4ca9dddbbbd0545
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e 's/-Wcast-align//'
diff --git a/srcpkgs/marco/template b/srcpkgs/marco/template
index 5abb62b91fec..3b36a8befada 100644
--- a/srcpkgs/marco/template
+++ b/srcpkgs/marco/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=498350cb12fc4d9c7c4a0355102c17b50043fbab258d11ad41b7d698b4f042a7
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/mariadb/template b/srcpkgs/mariadb/template
index a6176b43963e..5682c0078b72 100644
--- a/srcpkgs/mariadb/template
+++ b/srcpkgs/mariadb/template
@@ -35,6 +35,7 @@ system_accounts="mysql"
 mysql_homedir="/var/lib/mysql"
 make_dirs="/var/lib/mysql 0700 mysql mysql
  /usr/lib/mysql/plugin/auth_pam_tool_dir 0700 mysql root"
+patch_args=-Np0
 
 post_patch() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/masterpassword-cli/template b/srcpkgs/masterpassword-cli/template
index 8732491bfc55..8ce664513e5d 100644
--- a/srcpkgs/masterpassword-cli/template
+++ b/srcpkgs/masterpassword-cli/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/Lyndir/MasterPassword/archive/${version}-cli-3.tar
 checksum=35dc64bc74c04b534824c21da96e4a10fc7978da376fcc036d7ec08fd800ab7a
 # Apache-1.0 is incompatible with GPL-3+
 restricted=yes
+patch_args=-Np0
 
 pre_configure() {
 	echo "${version}-cli" > ${wrksrc}/${build_wrksrc}/VERSION
diff --git a/srcpkgs/mate-utils/template b/srcpkgs/mate-utils/template
index 855db8054d4d..ed900b594412 100644
--- a/srcpkgs/mate-utils/template
+++ b/srcpkgs/mate-utils/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=219673047fe2a14eb9c8bc23a5fb7c99d45e7acad4c05b4bf59a3d244cb026ac
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/matio/template b/srcpkgs/matio/template
index d22e883530b0..58930bee51e2 100644
--- a/srcpkgs/matio/template
+++ b/srcpkgs/matio/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/tbeu/matio"
 distfiles="https://github.com/tbeu/matio/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=5e455527d370ab297c4abe5a2ab4d599c93ac7c1a0c85d841cc5c22f8221c400
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" ac_cv_va_copy=C99"
diff --git a/srcpkgs/maturin/template b/srcpkgs/maturin/template
index 7ce8d5bd64c6..9cae482efdfd 100644
--- a/srcpkgs/maturin/template
+++ b/srcpkgs/maturin/template
@@ -18,6 +18,7 @@ distfiles="${homepage}/archive/v${version}.tar.gz
  https://github.com/bytecodealliance/target-lexicon/archive/v0.12.0.tar.gz"
 checksum="e6a9a67cc62ffe248654e60e7ec211bf23319c4c936ad87022f7a1fd0997430d
  18fead54e5dfa2cb0fa8af3db3c2765ca1c003b20cd4eca7be0553b30ce229de"
+patch_args=-Np0
 
 post_extract() {
 	mv ../target-lexicon* target-lexicon
diff --git a/srcpkgs/mc/template b/srcpkgs/mc/template
index ebf5141eb482..bea3ca89dd57 100644
--- a/srcpkgs/mc/template
+++ b/srcpkgs/mc/template
@@ -14,6 +14,7 @@ distfiles="https://www.midnight-commander.org/downloads/mc-${version}.tar.xz"
 #distfiles="http://fossies.org/linux/misc/mc-${version}.tar.gz"
 checksum=c6deadc50595f2d9a22dc6c299a9f28b393e358346ebf6ca444a8469dc166c27
 python_version=2
+patch_args=-Np0
 
 conf_files="
  /etc/mc/filehighlight.ini
diff --git a/srcpkgs/mcpp/template b/srcpkgs/mcpp/template
index 7a358883d06b..edccf45fe0b1 100644
--- a/srcpkgs/mcpp/template
+++ b/srcpkgs/mcpp/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://mcpp.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/mcpp/mcpp-${version}.tar.gz"
 checksum=3b9b4421888519876c4fc68ade324a3bbd81ceeb7092ecdbbc2055099fcb8864
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/mdadm/template b/srcpkgs/mdadm/template
index f776b6dc9d36..30aeed30ee96 100644
--- a/srcpkgs/mdadm/template
+++ b/srcpkgs/mdadm/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="https://git.kernel.org/cgit/utils/mdadm/mdadm.git/log/"
 distfiles="${KERNEL_SITE}/utils/raid/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=ab7688842908d3583a704d491956f31324c3a5fc9f6a04653cb75d19f1934f4a
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's,^install : mdadm mdmon,install: ,g' Makefile
diff --git a/srcpkgs/mdocml/template b/srcpkgs/mdocml/template
index 2332eb13dfc9..d19966633ba1 100644
--- a/srcpkgs/mdocml/template
+++ b/srcpkgs/mdocml/template
@@ -17,6 +17,7 @@ homepage="http://mandoc.bsd.lv"
 distfiles="http://mandoc.bsd.lv/snapshots/mandoc-${version}.tar.gz"
 checksum=8219b42cb56fc07b2aa660574e6211ac38eefdbf21f41b698d3348793ba5d8f7
 provides="man-0_1"
+patch_args=-Np0
 
 alternatives="
  man:man:/usr/bin/mandoc
diff --git a/srcpkgs/mediastreamer/template b/srcpkgs/mediastreamer/template
index 884237ddf436..ccf8e43ffb44 100644
--- a/srcpkgs/mediastreamer/template
+++ b/srcpkgs/mediastreamer/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.linphone.org/technical-corner/mediastreamer2"
 distfiles="https://gitlab.linphone.org/BC/public/mediastreamer2/-/archive/${version}/mediastreamer2-${version}.tar.gz"
 checksum=4f67262621a93349651cfb0b51a2157623bf7758126d070e1c122bff58c7d5b4
+patch_args=-Np0
 
 mediastreamer-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/mednafen/template b/srcpkgs/mednafen/template
index e56addb35013..aed46822a2b7 100644
--- a/srcpkgs/mednafen/template
+++ b/srcpkgs/mednafen/template
@@ -15,6 +15,7 @@ homepage="https://mednafen.github.io/"
 distfiles="https://mednafen.github.io/releases/files/mednafen-${version}.tar.xz"
 checksum=842907c25c4292c9ba497c9cb9229c7d10e04e22cb4740d154ab690e6587fdf4
 nopie=yes
+patch_args=-Np0
 
 build_options="altivec"
 desc_option_altivec="Enable AltiVec support on PowerPC"
diff --git a/srcpkgs/memtest86+/template b/srcpkgs/memtest86+/template
index c4850769d62e..04792c5dc082 100644
--- a/srcpkgs/memtest86+/template
+++ b/srcpkgs/memtest86+/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.memtest.org"
 distfiles="http://www.memtest.org/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=142127b7953fbd829b1057fb64a78d3340c2b771484230a7347e94530a0d9039
+patch_args=-Np0
 
 nostrip=yes
 noverifyrdeps=yes
diff --git a/srcpkgs/mergerfs/template b/srcpkgs/mergerfs/template
index db4399c448e6..d7226ee6103b 100644
--- a/srcpkgs/mergerfs/template
+++ b/srcpkgs/mergerfs/template
@@ -12,6 +12,7 @@ license="ISC"
 homepage="https://github.com/trapexit/mergerfs"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=8857d2058c38251bff539c77b6c90472ab139bda96265ce09485c3689d11a4ac
+patch_args=-Np0
 
 pre_build() {
 	# we build from source, spoof release tarball
diff --git a/srcpkgs/merkaartor/template b/srcpkgs/merkaartor/template
index 17c8d5dc361d..d917aef6ad94 100644
--- a/srcpkgs/merkaartor/template
+++ b/srcpkgs/merkaartor/template
@@ -13,5 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://merkaartor.be"
 distfiles="https://github.com/openstreetmap/merkaartor/archive/${version}.tar.gz"
 checksum=16e790507a5bb54e4b3c09ea063ebb095a4b014ce8ba937b771706d4c940976a
+patch_args=-Np0
 
 CXXFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template
index 414c918c7baf..1d5391040f4d 100644
--- a/srcpkgs/mesa/template
+++ b/srcpkgs/mesa/template
@@ -24,6 +24,7 @@ homepage="https://www.mesa3d.org/"
 changelog="https://docs.mesa3d.org/relnotes/${version}.html"
 distfiles="https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz"
 checksum=565c6f4bd2d5747b919454fc1d439963024fc78ca56fd05158c3b2cde2f6912b
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" -Duse-elf-tls=false"
diff --git a/srcpkgs/meson/template b/srcpkgs/meson/template
index ee2cab625cbd..4561095b9074 100644
--- a/srcpkgs/meson/template
+++ b/srcpkgs/meson/template
@@ -16,6 +16,7 @@ homepage="https://mesonbuild.com"
 changelog="https://github.com/mesonbuild/meson/blob/master/docs/markdown/Release-notes-for-${version%.*}.0.md"
 distfiles="https://github.com/mesonbuild/meson/releases/download/$version/$pkgname-$version.tar.gz"
 checksum=3cb8bdb91383f7f8da642f916e4c44066a29262caa499341e2880f010edb87f4
+patch_args=-Np0
 
 # XXX: sanitizers aren't available on musl
 if [ "$XBPS_TARGET_LIBC" = glibc ]; then
diff --git a/srcpkgs/mg/template b/srcpkgs/mg/template
index 8bb7fd00185e..3414fa23e102 100644
--- a/srcpkgs/mg/template
+++ b/srcpkgs/mg/template
@@ -10,6 +10,7 @@ license="Public Domain"
 homepage="https://github.com/hboetes/mg"
 distfiles="https://github.com/hboetes/mg/archive/${version}.tar.gz"
 checksum=6820e76a0e27d9a744624d421b3b30b0030140c2a817df1310b25c3abe397106
+patch_args=-Np0
 
 CFLAGS="-DTCSASOFT=0"
 
diff --git a/srcpkgs/mhddfs/template b/srcpkgs/mhddfs/template
index b60fcb06a7bf..5dfe2cc2c7f4 100644
--- a/srcpkgs/mhddfs/template
+++ b/srcpkgs/mhddfs/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://mhddfs.uvw.ru/"
 distfiles="http://mhddfs.uvw.ru/downloads/${pkgname}_${version}.tar.gz"
 checksum=702fc5486460c1828898426b1935179ce60bc1ed16fc8bc575c9ec1d12acef91
+patch_args=-Np0
 
 pre_build() {
 	sed -i 's|^CFLAGS[[:blank:]]*=|override CFLAGS +=|g' Makefile
diff --git a/srcpkgs/milkytracker/template b/srcpkgs/milkytracker/template
index 9f5cffd61301..767cc2590664 100644
--- a/srcpkgs/milkytracker/template
+++ b/srcpkgs/milkytracker/template
@@ -13,6 +13,7 @@ license="GPL-3.0-only"
 homepage="http://milkytracker.titandemo.org/"
 distfiles="https://github.com/milkytracker/MilkyTracker/archive/v${version}.tar.gz"
 checksum=6bcb6e74ee333e831137435a25c0f2f3da6e1462864deec9e693ef7d23a16023
+patch_args=-Np0
 
 post_install() {
 	vinstall resources/milkytracker.desktop 644 usr/share/applications
diff --git a/srcpkgs/mimic/template b/srcpkgs/mimic/template
index ed11690e5bdc..3424c48ed870 100644
--- a/srcpkgs/mimic/template
+++ b/srcpkgs/mimic/template
@@ -14,6 +14,7 @@ homepage="https://github.com/MycroftAI/mimic"
 changelog="https://github.com/MycroftAI/mimic1/releases"
 distfiles="https://github.com/MycroftAI/mimic/archive/${version}.tar.gz"
 checksum=9041f5c7d3720899c90c890ada179c92c3b542b90bb655c247e4a4835df79249
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/minicom/template b/srcpkgs/minicom/template
index 8671f508256a..49a229db2575 100644
--- a/srcpkgs/minicom/template
+++ b/srcpkgs/minicom/template
@@ -10,5 +10,6 @@ license="GPL-2.0-or-later"
 homepage="https://tracker.debian.org/pkg/minicom"
 distfiles="https://deb.debian.org/debian/pool/main/m/minicom/minicom_${version}.orig.tar.gz"
 checksum=532f836b7a677eb0cb1dca8d70302b73729c3d30df26d58368d712e5cca041f1
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/minidlna/template b/srcpkgs/minidlna/template
index b112fb56efcc..aeb1f2f1b542 100644
--- a/srcpkgs/minidlna/template
+++ b/srcpkgs/minidlna/template
@@ -21,6 +21,7 @@ homepage="https://minidlna.sourceforge.net/"
 changelog="https://sourceforge.net/projects/minidlna/files/minidlna/${version}/README/view"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=47d9b06b4c48801a4c1112ec23d24782728b5495e95ec2195bbe5c81bc2d3c63
+patch_args=-Np0
 
 system_accounts="minidlna"
 minidlna_homedir="/var/lib/minidlna"
diff --git a/srcpkgs/minijail/template b/srcpkgs/minijail/template
index e3debe82a66e..d0ac4d9d5acb 100644
--- a/srcpkgs/minijail/template
+++ b/srcpkgs/minijail/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://android.googlesource.com/platform/external/minijail"
 distfiles="https://github.com/google/minijail/archive/linux-v${version}.tar.gz"
 checksum=1efb6224465cf8a5bb7a69659b35482e69786fce572f29125201e9a0e793bdd6
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	broken="bpf.h:110:2: error: #error Unsupported endianness"
diff --git a/srcpkgs/minisat/template b/srcpkgs/minisat/template
index e462c8ba34a6..29246f9a7a05 100644
--- a/srcpkgs/minisat/template
+++ b/srcpkgs/minisat/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://minisat.se/MiniSat.html"
 distfiles="http://minisat.se/downloads/minisat-2.2.0.tar.gz"
 checksum=92957d851cdc3baddfe07b5fc80ed5a0237c489d0c52ae72f62844b3b46d7808
+patch_args=-Np0
 
 do_install() {
 	vbin minisat_release minisat
diff --git a/srcpkgs/minissdpd/template b/srcpkgs/minissdpd/template
index b0d56f0058df..f5d497d014d2 100644
--- a/srcpkgs/minissdpd/template
+++ b/srcpkgs/minissdpd/template
@@ -10,6 +10,7 @@ license="3-clause-BSD"
 homepage="http://miniupnp.free.fr/minissdpd.html"
 distfiles="http://miniupnp.free.fr/files/minissdpd-${version}.tar.gz"
 checksum=dfd637b185731e1acb412a86faa9718eb93c04ca08280541a6d22d14d1fb890f
+patch_args=-Np0
 
 CFLAGS="-D_GNU_SOURCE"
 
diff --git a/srcpkgs/mit-krb5/template b/srcpkgs/mit-krb5/template
index fa18e58b7333..deabac5065f6 100644
--- a/srcpkgs/mit-krb5/template
+++ b/srcpkgs/mit-krb5/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://web.mit.edu/kerberos"
 distfiles="${homepage}/dist/krb5/${version%.*}/krb5-${version}.tar.gz"
 checksum=e61783c292b5efd9afb45c555a80dd267ac67eebabca42185362bee6c4fbd719
+patch_args=-Np0
 
 post_patch() {
 	vsed -e "/LDFLAGS=/d" -i src/build-tools/krb5-config.in
diff --git a/srcpkgs/mit-scheme-c/template b/srcpkgs/mit-scheme-c/template
index 92f3b637912a..e2a461e18e86 100644
--- a/srcpkgs/mit-scheme-c/template
+++ b/srcpkgs/mit-scheme-c/template
@@ -14,6 +14,7 @@ alternatives="
  scheme:scheme.1:/usr/share/man/man1/mit-scheme.1
 "
 nocross="Tries to build parts of the package with itself"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/mlocate/template b/srcpkgs/mlocate/template
index 9571f8c387d1..310ecb315e16 100644
--- a/srcpkgs/mlocate/template
+++ b/srcpkgs/mlocate/template
@@ -14,6 +14,7 @@ homepage="https://pagure.io/mlocate"
 distfiles="https://releases.pagure.org/mlocate/${pkgname}-${version}.tar.xz"
 checksum=3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e
 system_accounts="_mlocate"
+patch_args=-Np0
 
 alternatives="
  locate:locate:/usr/bin/mlocate
diff --git a/srcpkgs/mmv/template b/srcpkgs/mmv/template
index 1afd253685d5..4269d4aa9e4a 100644
--- a/srcpkgs/mmv/template
+++ b/srcpkgs/mmv/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://packages.debian.org/unstable/utils/mmv"
 distfiles="http://mirrors.kernel.org/gentoo/distfiles/${pkgname}_${version}.orig.tar.gz"
 checksum=0399c027ea1e51fd607266c1e33573866d4db89f64a74be8b4a1d2d1ff1fdeef
+patch_args=-Np0
 
 do_install() {
 	local l
diff --git a/srcpkgs/moc/template b/srcpkgs/moc/template
index c42be650a1d2..824b1aaccaaa 100644
--- a/srcpkgs/moc/template
+++ b/srcpkgs/moc/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://moc.daper.net"
 distfiles="http://ftp.daper.net/pub/soft/${pkgname}/stable/${pkgname}-${version}.tar.bz2"
 checksum=f3a68115602a4788b7cfa9bbe9397a9d5e24c68cb61a57695d1c2c3ecf49db08
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e "s|^ac_cpp='\$CPP |&-P |g" configure
diff --git a/srcpkgs/mod_wsgi/template b/srcpkgs/mod_wsgi/template
index 28872edf8d52..1ee69220f24f 100644
--- a/srcpkgs/mod_wsgi/template
+++ b/srcpkgs/mod_wsgi/template
@@ -13,6 +13,7 @@ changelog="https://modwsgi.readthedocs.io/en/latest/release-notes/version-${vers
 distfiles="https://github.com/GrahamDumpleton/${pkgname}/archive/${version}.tar.gz"
 checksum=2674e506719afe60fbc0547c832e8948d6caa2e054d40d336309993e6e867d35
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/mog/template b/srcpkgs/mog/template
index 88421ccef317..83afd02b478c 100644
--- a/srcpkgs/mog/template
+++ b/srcpkgs/mog/template
@@ -14,6 +14,7 @@ homepage="http://www.braingames.getput.com/mog/"
 distfiles="http://urchlay.naptime.net/~urchlay/src/mog.src_${version}-${_build}.tgz"
 checksum=707bbc1b167a55989916f803dbe55c288652fb54df6194be029c41be99e9ec3a
 broken="ELF in /usr/share"
+patch_args=-Np0
 
 CFLAGS="-g3 -O3 -Wno-write-strings -I${XBPS_CROSS_BASE}/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
 
diff --git a/srcpkgs/mon/template b/srcpkgs/mon/template
index 4ab9fc3bd8e2..9cb300f5a44a 100644
--- a/srcpkgs/mon/template
+++ b/srcpkgs/mon/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/tj/mon"
 distfiles="https://github.com/tj/mon/archive/${version}.tar.gz"
 checksum=978711a1d37ede3fc5a05c778a2365ee234b196a44b6c0c69078a6c459e686ac
+patch_args=-Np0
 
 CFLAGS="-Ideps -std=c99 -D_GNU_SOURCE"
 
diff --git a/srcpkgs/monero/template b/srcpkgs/monero/template
index 3617a446f098..5cfbb8da8823 100644
--- a/srcpkgs/monero/template
+++ b/srcpkgs/monero/template
@@ -29,6 +29,7 @@ checksum="5e9bd2e565a57b4ae9f0d851704725b2e0b18c4a94051e56d5deae4e74727496
  b973b9d8269ec4d97c3c3443f0dad96d09f72b1b30e616e0947557adbdbb03f7"
 skip_extraction="v${_randomx_version}.tar.gz ${_rapidjson_gitrev}.tar.gz ${_supercop_gitrev}.tar.gz"
 system_accounts="monero"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DTHREADS_PTHREAD_ARG=OFF"
diff --git a/srcpkgs/mongoose/template b/srcpkgs/mongoose/template
index eddadc647333..46fe4d3f99eb 100644
--- a/srcpkgs/mongoose/template
+++ b/srcpkgs/mongoose/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://cesanta.com/"
 distfiles="https://github.com/cesanta/mongoose/archive/${version}.tar.gz"
 checksum=f5c10346abc9c72f7cac7885d853ca064fb09aad57580433941a8fd7a3543769
+patch_args=-Np0
 
 mongoose-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/monit/template b/srcpkgs/monit/template
index e401ff3d8733..4062b351f9fa 100644
--- a/srcpkgs/monit/template
+++ b/srcpkgs/monit/template
@@ -17,6 +17,7 @@ homepage="https://mmonit.com/monit/"
 changelog="https://mmonit.com/monit/changes/"
 distfiles="https://mmonit.com/monit/dist/${pkgname}-${version}.tar.gz"
 checksum=9fc6287fd9570b25a85c5d5bf988ee8bd4c54d0e9e01ff04cc4b9398a159849c
+patch_args=-Np0
 
 pre_configure() {
 	./bootstrap
diff --git a/srcpkgs/mono/template b/srcpkgs/mono/template
index 3846d0a93e1e..599fabf094ad 100644
--- a/srcpkgs/mono/template
+++ b/srcpkgs/mono/template
@@ -15,6 +15,7 @@ distfiles="https://download.mono-project.com/sources/mono/${pkgname}-${version}.
 checksum=29c277660fc5e7513107aee1cbf8c5057c9370a4cdfeda2fc781be6986d89d23
 lib32disabled=yes
 python_version="3"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args+=" --disable-boehm --without-sigaltstack" ;;
diff --git a/srcpkgs/moon-buggy/template b/srcpkgs/moon-buggy/template
index 1ebb56ce31ff..1a8017da0314 100644
--- a/srcpkgs/moon-buggy/template
+++ b/srcpkgs/moon-buggy/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.seehuhn.de/pages/moon-buggy"
 distfiles="http://m.seehuhn.de/programs/$pkgname-$version.tar.gz"
 checksum=352dc16ccae4c66f1e87ab071e6a4ebeb94ff4e4f744ce1b12a769d02fe5d23f
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/key_name/Key_Name/g' keyboard.c
diff --git a/srcpkgs/moosefs/template b/srcpkgs/moosefs/template
index adc8125a13e6..fbf55ca74ac1 100644
--- a/srcpkgs/moosefs/template
+++ b/srcpkgs/moosefs/template
@@ -15,6 +15,7 @@ distfiles="http://ppa.moosefs.com/src/moosefs-${version}-1.tar.gz"
 checksum=f88cc0142b5fe8a6a4c3fcb2ae58053fcb98787848cf09286a57718a982093a9
 python_version=2 #unverified
 system_accounts="_mfs"
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's,AC_RUN_IFELSE,AC_LINK_IFELSE,g' configure.ac
diff --git a/srcpkgs/mosh/template b/srcpkgs/mosh/template
index a4641f66bb3e..a9030ce5cb51 100644
--- a/srcpkgs/mosh/template
+++ b/srcpkgs/mosh/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://mosh.org/"
 distfiles="https://mosh.org/mosh-${version}.tar.gz"
 checksum=da600573dfa827d88ce114e0fed30210689381bbdcff543c931e4d6a2e851216
+patch_args=-Np0
 
 pre_configure() {
 	# make local.test always succeed. It fails due to missing X server in chroot.
diff --git a/srcpkgs/mosquitto/template b/srcpkgs/mosquitto/template
index 53ab96eca22e..16723f0ce554 100644
--- a/srcpkgs/mosquitto/template
+++ b/srcpkgs/mosquitto/template
@@ -16,6 +16,7 @@ distfiles="${homepage}/files/source/${pkgname}-${version}.tar.gz"
 checksum=1b8553ef64a1cf5e4f4cfbe098330ae612adccd3d37f35b2db6f6fab501b01d4
 # CUnit dependency is missing
 make_check=no
+patch_args=-Np0
 
 system_accounts="_mosquitto"
 _mosquitto_homedir="/var/lib/mosquitto"
diff --git a/srcpkgs/mp3check/template b/srcpkgs/mp3check/template
index 6d25f52387fc..09d6a945c800 100644
--- a/srcpkgs/mp3check/template
+++ b/srcpkgs/mp3check/template
@@ -8,6 +8,7 @@ license="GPL-2.0-only"
 homepage="https://code.google.com/p/mp3check/"
 distfiles="${DEBIAN_SITE}/main/m/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=27d976ad8495671e9b9ce3c02e70cb834d962b6fdf1a7d437bb0e85454acdd0e
+patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
diff --git a/srcpkgs/mp3val/template b/srcpkgs/mp3val/template
index 31c307f1ebbf..14e61a3c6fb8 100644
--- a/srcpkgs/mp3val/template
+++ b/srcpkgs/mp3val/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://mp3val.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/mp3val/mp3val-${version}-src.tar.gz"
 checksum=95a16efe3c352bb31d23d68ee5cb8bb8ebd9868d3dcf0d84c96864f80c31c39f
+patch_args=-Np0
 
 do_install() {
 	vbin mp3val
diff --git a/srcpkgs/mpg123/template b/srcpkgs/mpg123/template
index a08cb80f0969..4278b201e604 100644
--- a/srcpkgs/mpg123/template
+++ b/srcpkgs/mpg123/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://www.mpg123.org/"
 distfiles="${SOURCEFORGE_SITE}/mpg123/mpg123-${version}.tar.bz2"
 checksum=e49466853685026da5d113dc7ff026b1b2ad0b57d78df693a446add9db88a7d5
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	# No LFS required with musl
diff --git a/srcpkgs/mplayer/template b/srcpkgs/mplayer/template
index 6bf5f3d1b08d..981c97328805 100644
--- a/srcpkgs/mplayer/template
+++ b/srcpkgs/mplayer/template
@@ -22,6 +22,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.mplayerhq.hu/"
 distfiles="http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-${version}.tar.xz"
 checksum=82596ed558478d28248c7bc3828eb09e6948c099bbd76bb7ee745a0e3275b548
+patch_args=-Np0
 
 nocross=yes
 
diff --git a/srcpkgs/mrxvt/template b/srcpkgs/mrxvt/template
index 5d82c85d31f6..eb206d20ab9c 100644
--- a/srcpkgs/mrxvt/template
+++ b/srcpkgs/mrxvt/template
@@ -12,5 +12,6 @@ license="GPL-2.0-or-later"
 homepage="http://materm.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/materm/mrxvt-${version}.tar.gz"
 checksum=f403ad5a908fcd38a55ed0a7e1b85584cb77be8781199653a39b8af1a9ad10d7
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/msg2/template b/srcpkgs/msg2/template
index 473b3c4ec4d2..624f86b14c31 100644
--- a/srcpkgs/msg2/template
+++ b/srcpkgs/msg2/template
@@ -9,6 +9,7 @@ license="GPL-3.0-or-later"
 homepage="https://roboticoverlords.org/msg2/"
 distfiles="https://roboticoverlords.org/msg2/msg2-${version}.tar.xz"
 checksum=4834104465f62f0ecec7615e75ca2e50a5e42218854da8f6b022a120937702ac
+patch_args=-Np0
 
 post_install() {
 	vman msg2.1
diff --git a/srcpkgs/msp430-toolchain/template b/srcpkgs/msp430-toolchain/template
index 10f8d6b7fe45..acfabb65b166 100644
--- a/srcpkgs/msp430-toolchain/template
+++ b/srcpkgs/msp430-toolchain/template
@@ -16,6 +16,7 @@ checksum="d2110ec64e8a055ff89b7eef8217b3c233c30e370e2cb43e1ad835dad5907d1c
  1e2a0903e6b02d5e8aac2a7297ec0685e95a980b13b937b5c7f24f4cf6015407"
 nocross=yes
 nostrip=yes
+patch_args=-Np0
 
 _prefix=/usr/msp430
 _target=msp430-none-elf
diff --git a/srcpkgs/mumble/template b/srcpkgs/mumble/template
index d578a511d47e..7cb13105213d 100644
--- a/srcpkgs/mumble/template
+++ b/srcpkgs/mumble/template
@@ -20,6 +20,7 @@ license="BSD-3-Clause"
 homepage="http://mumble.sourceforge.net/"
 distfiles="https://github.com/mumble-voip/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=615f4ebfc3385d945163f369efd3e910c8b6d0f025797a7eed541515fccb6093
+patch_args=-Np0
 
 build_options="jack portaudio"
 build_options_default="jack portaudio"
diff --git a/srcpkgs/mupen64plus/template b/srcpkgs/mupen64plus/template
index 4984a7f4a777..747fd4d99531 100644
--- a/srcpkgs/mupen64plus/template
+++ b/srcpkgs/mupen64plus/template
@@ -15,6 +15,7 @@ distfiles="https://github.com/mupen64plus/mupen64plus-core/releases/download/${v
 checksum=d5243ddc00388ee2e538b3826a78a719dec2bd5da54ac6f3344fed861fb141a8
 nopie=yes
 nocross=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/musikcube/template b/srcpkgs/musikcube/template
index c786f86bef31..9ee39183a36f 100644
--- a/srcpkgs/musikcube/template
+++ b/srcpkgs/musikcube/template
@@ -17,6 +17,7 @@ license="BSD-3-Clause"
 homepage="https://musikcube.com/"
 distfiles="https://github.com/clangen/musikcube/archive/${version}.tar.gz"
 checksum=81922ec6e86c06061dc009be3ec7c4bc8e8fd5ed3bb92231dabede8bbccaf723
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/mutter/template b/srcpkgs/mutter/template
index fb42f099faaa..49595b486e5d 100644
--- a/srcpkgs/mutter/template
+++ b/srcpkgs/mutter/template
@@ -1,5 +1,6 @@
 # Template file for 'mutter'
 reverts="40.2_1"
+patch_args=-Np0
 
 pkgname=mutter
 version=40.1
diff --git a/srcpkgs/mysql++/template b/srcpkgs/mysql++/template
index 6dc18a421034..278fd00b049c 100644
--- a/srcpkgs/mysql++/template
+++ b/srcpkgs/mysql++/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://tangentsoft.net/mysqlpp"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.gz"
 checksum=b780beeb3a9cd9ce6a9043028527484df8e822c58c5274d4d67ec5ba2fc0a778
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	configure_args="--exec_prefix=${XBPS_CROSS_BASE} --with-mysql-include=${XBPS_CROSS_BASE}/usr/include/mysql"
diff --git a/srcpkgs/nagstamon/template b/srcpkgs/nagstamon/template
index a3e92bfa761d..50e74fb4a478 100644
--- a/srcpkgs/nagstamon/template
+++ b/srcpkgs/nagstamon/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://nagstamon.ifw-dresden.de"
 distfiles="https://nagstamon.ifw-dresden.de/files/stable/Nagstamon-${version}.tar.gz"
 checksum=7a9611f40b08269bba4100ab2598ee089c7d0ebc6c4e9d7132689342f71150ec
+patch_args=-Np0
 
 post_patch() {
 	# This relies on /etc/os-release, which doesn't exist without
diff --git a/srcpkgs/namecoin/template b/srcpkgs/namecoin/template
index e4cfb3777b71..991026db606d 100644
--- a/srcpkgs/namecoin/template
+++ b/srcpkgs/namecoin/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="https://namecoin.org"
 distfiles="https://github.com/namecoin/namecoin-core/archive/nc${version}.tar.gz"
 checksum=7117a0a0b8f48d49e4abf3577660f8a4eb9a4dea753281d19d9470725fc75d8e
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/navit/template b/srcpkgs/navit/template
index 449ef1ca16d3..4ae5fbeaf5eb 100644
--- a/srcpkgs/navit/template
+++ b/srcpkgs/navit/template
@@ -16,6 +16,7 @@ license="GPL-2.0-only, LGPL-2.0-only"
 homepage="http://www.navit-project.org/"
 distfiles="https://github.com/navit-gps/navit/archive/v${version}.tar.gz"
 checksum=728d9dcad00e97769f6cd85bfad5518b0edf62ef75d60543fa4c48c1c3ab1243
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e 's/\(GET_FILENAME_COMPONENT (LIB_DIR ${LIBDIR}\) NAME/\1 DIRECTORY/' CMakeLists.txt
diff --git a/srcpkgs/nemiver/template b/srcpkgs/nemiver/template
index 947ef8352a17..122758b92660 100644
--- a/srcpkgs/nemiver/template
+++ b/srcpkgs/nemiver/template
@@ -17,6 +17,7 @@ homepage="https://wiki.gnome.org/Apps/Nemiver"
 distfiles="https://download.gnome.org/sources/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=85ab8cf6c4f83262f441cb0952a6147d075c3c53d0687389a3555e946b694ef2
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	cp data/nemiver.appdata.xml data/nemiver.appdata.xml.in
diff --git a/srcpkgs/net-snmp/template b/srcpkgs/net-snmp/template
index 0b91683e00a8..6dad6b0f7cc6 100644
--- a/srcpkgs/net-snmp/template
+++ b/srcpkgs/net-snmp/template
@@ -11,6 +11,7 @@ license="Net-SNMP"
 homepage="http://www.net-snmp.org/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=eb7fd4a44de6cddbffd9a92a85ad1309e5c1054fb9d5a7dd93079c8953f48c3f
+patch_args=-Np0
 
 LDFLAGS="-lpthread"
 
diff --git a/srcpkgs/netcat/template b/srcpkgs/netcat/template
index c588fc5ab7b4..2905db892d0d 100644
--- a/srcpkgs/netcat/template
+++ b/srcpkgs/netcat/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://netcat.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=30719c9a4ffbcf15676b8f528233ccc54ee6cba96cb4590975f5fd60c68a066f
+patch_args=-Np0
 
 alternatives="
  nc:nc:/usr/bin/gnetcat
diff --git a/srcpkgs/nethack/template b/srcpkgs/nethack/template
index e39eafb0b5c2..65c414f3620f 100644
--- a/srcpkgs/nethack/template
+++ b/srcpkgs/nethack/template
@@ -16,6 +16,7 @@ distfiles="https://www.nethack.org/download/${version}/nethack-${version//./}-sr
 checksum=cfde0c3ab6dd7c22ae82e1e5a59ab80152304eb23fb06e3129439271e5643ed2
 nocross=yes
 system_accounts="$pkgname"
+patch_args=-Np0
 
 do_configure() {
 	sh sys/unix/setup.sh sys/unix/hints/linux
diff --git a/srcpkgs/netpgp/template b/srcpkgs/netpgp/template
index 2bc40e253d09..30b5c9a4acbd 100644
--- a/srcpkgs/netpgp/template
+++ b/srcpkgs/netpgp/template
@@ -11,6 +11,7 @@ license="3-clause-BSD"
 homepage="http://www.netbsd.org"
 distfiles="ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/LOCAL_PORTS/netpgp-${version}.tar.gz"
 checksum=fbe403f037376a40afd19bc8a1786b55b67cf8092a723ef36a61d99260b66dbf
+patch_args=-Np0
 
 CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=cpp -Wno-format-truncation -Wno-stringop-truncation -Wno-stringop-overflow -Wno-error=format-overflow"
 
diff --git a/srcpkgs/netpgpverify/template b/srcpkgs/netpgpverify/template
index 03531032da54..e554b5bcce13 100644
--- a/srcpkgs/netpgpverify/template
+++ b/srcpkgs/netpgpverify/template
@@ -10,6 +10,7 @@ license="2-clause-BSD"
 homepage="http://www.netpgp.com"
 distfiles="http://www.netpgp.com/src/${pkgname}-${version}.tar.gz"
 checksum=1eedf30b35cacbf8f39b80fbc4ea6129ba8c7815b0ad7f3d1ae05e521f684b00
+patch_args=-Np0
 
 post_extract() {
 	sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' Makefile.in
diff --git a/srcpkgs/nettle/template b/srcpkgs/nettle/template
index 25eca0dcab04..3880c5167455 100644
--- a/srcpkgs/nettle/template
+++ b/srcpkgs/nettle/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://www.lysator.liu.se/~nisse/nettle/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=661f5eb03f048a3b924c3a8ad2515d4068e40f67e774e8a26827658007e3bcf0
+patch_args=-Np0
 
 nettle-devel_package() {
 	depends="gmp-devel ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/network-ups-tools/template b/srcpkgs/network-ups-tools/template
index 0f4f1ce5a3b4..b775d578f493 100644
--- a/srcpkgs/network-ups-tools/template
+++ b/srcpkgs/network-ups-tools/template
@@ -27,6 +27,7 @@ homepage="http://www.networkupstools.org/"
 distfiles="${homepage}source/${version%.*}/nut-${version}.tar.gz"
 checksum=980e82918c52d364605c0703a5dcf01f74ad2ef06e3d365949e43b7d406d25a7
 system_accounts="nut"
+patch_args=-Np0
 
 nopie=yes
 build_options="cgi"
diff --git a/srcpkgs/newlisp/template b/srcpkgs/newlisp/template
index d6459caa41c5..37e9c03cc423 100644
--- a/srcpkgs/newlisp/template
+++ b/srcpkgs/newlisp/template
@@ -9,6 +9,7 @@ license="GPL-3.0-only, GFDL-1.2-only, Zlib, $pkgname, BSD-3-Clause"
 homepage="http://www.newlisp.org"
 distfiles="$homepage/downloads/$pkgname-$version.tgz"
 checksum=dc2d0ff651c2b275bc4af3af8ba59851a6fb6e1eaddc20ae75fb60b1e90126ec
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/nextcloud-client/template b/srcpkgs/nextcloud-client/template
index ec201254d5ad..ebce167c2699 100644
--- a/srcpkgs/nextcloud-client/template
+++ b/srcpkgs/nextcloud-client/template
@@ -20,6 +20,7 @@ license="GPL-2.0-or-later"
 homepage="https://nextcloud.com/clients/"
 distfiles="https://github.com/nextcloud/desktop/archive/v${version}.tar.gz"
 checksum=f2d387d35276ea6e6da3ae339ede3d89be81dd4af735739ec280709008eb6645
+patch_args=-Np0
 
 build_options="dolphin"
 desc_option_dolphin="Build KDE dolphin support"
diff --git a/srcpkgs/nfs4-acl-tools/template b/srcpkgs/nfs4-acl-tools/template
index defeeccdfbfc..3ac57c339637 100644
--- a/srcpkgs/nfs4-acl-tools/template
+++ b/srcpkgs/nfs4-acl-tools/template
@@ -14,6 +14,7 @@ homepage="http://linux-nfs.org/wiki/index.php/Main_Page"
 distfiles="http://linux-nfs.org/~bfields/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=1b929f15b7b8d1701a416a0888df61a2a173b50eeaa9fed4f28543ffe8989503
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/nginx/template b/srcpkgs/nginx/template
index cd0b19da95c6..281ebf038e0d 100644
--- a/srcpkgs/nginx/template
+++ b/srcpkgs/nginx/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="https://nginx.org"
 distfiles="https://nginx.org/download/nginx-${version}.tar.gz"
 checksum=4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+patch_args=-Np0
 
 # NOTE:
 # On update, the pregenerated header file for ARM may need synchronization.
diff --git a/srcpkgs/ngspice/template b/srcpkgs/ngspice/template
index 05beffd8f841..8e7bde57e3da 100644
--- a/srcpkgs/ngspice/template
+++ b/srcpkgs/ngspice/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="http://ngspice.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/ngspice/ng-spice-rework/${version}/${pkgname}-${version}.tar.gz"
 checksum=b99db66cc1c57c44e9af1ef6ccb1dcbc8ae1df3e35acf570af578f606f8541f1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/nitroshare/template b/srcpkgs/nitroshare/template
index dc541b408d77..cfab290eea9d 100644
--- a/srcpkgs/nitroshare/template
+++ b/srcpkgs/nitroshare/template
@@ -17,6 +17,7 @@ homepage="http://nitroshare.net"
 distfiles="https://github.com/nitroshare/nitroshare-desktop/archive/${version}.tar.gz"
 checksum=29874e5909c29211a3c9e13f8c0f49b901ec2996e5d60d80af80d2fb80c3d7ec
 python_version=2 #unverified
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools"
diff --git a/srcpkgs/nmon/template b/srcpkgs/nmon/template
index 76f09917adea..1857023f5402 100644
--- a/srcpkgs/nmon/template
+++ b/srcpkgs/nmon/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://nmon.sourceforge.net/pmwiki.php?n=Main.HomePage"
 distfiles="${SOURCEFORGE_SITE}/nmon/files/lmon${version}.c"
 checksum=2bed4d45fdfdf1d1387ec91e139c04975d5f838e3e0d53c0fe2d803a707e5fc1
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/nocache/template b/srcpkgs/nocache/template
index 1c4198631e74..f48b963e9279 100644
--- a/srcpkgs/nocache/template
+++ b/srcpkgs/nocache/template
@@ -9,6 +9,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/Feh/nocache"
 distfiles="https://github.com/Feh/nocache/archive/v${version}.tar.gz"
 checksum=e5441b27f60e1af5551b76fe0c8a9da17b8c31675794d9d49bf59c7c47fbb9b9
+patch_args=-Np0
 
 pre_build() {
 	sed -i -e '/#include <error.h>/d' cachedel.c cachestats.c
diff --git a/srcpkgs/nodejs-lts-10/template b/srcpkgs/nodejs-lts-10/template
index 300667cb9782..864b387e62e5 100644
--- a/srcpkgs/nodejs-lts-10/template
+++ b/srcpkgs/nodejs-lts-10/template
@@ -21,6 +21,7 @@ homepage="https://nodejs.org/"
 distfiles="${homepage}/download/release/v${version}/node-v${version}.tar.xz"
 checksum=158273af66f891b2fca90aec7336c42f7574f467affad02c14e80ca163cb3acc
 python_version=3
+patch_args=-Np0
 
 build_options="ssl libuv http_parser icu nghttp2 cares"
 desc_option_ssl="Enable shared openssl"
diff --git a/srcpkgs/nodejs-lts/template b/srcpkgs/nodejs-lts/template
index d3912ae2cf05..4f7524766d88 100644
--- a/srcpkgs/nodejs-lts/template
+++ b/srcpkgs/nodejs-lts/template
@@ -20,6 +20,7 @@ homepage="https://nodejs.org/"
 distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz"
 checksum=36e862555bebc04b13f7afebf4472c4dd7ebf4c891f9d6746ec545a4f099d05e
 python_version=3
+patch_args=-Np0
 
 build_options="ssl libuv http_parser icu nghttp2 cares"
 desc_option_ssl="Enable shared openssl"
diff --git a/srcpkgs/nodejs/template b/srcpkgs/nodejs/template
index bcfaaa73ac4c..c8d7b6324ba3 100644
--- a/srcpkgs/nodejs/template
+++ b/srcpkgs/nodejs/template
@@ -20,6 +20,7 @@ homepage="https://nodejs.org/"
 distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz"
 checksum=f6b904b06951de4c52089dd4456155d853e835b0dc4640f75458c6eb49f9e8ce
 python_version=3
+patch_args=-Np0
 
 build_options="ssl libuv http_parser icu nghttp2 cares"
 desc_option_ssl="Enable shared openssl"
diff --git a/srcpkgs/noip2/template b/srcpkgs/noip2/template
index 9d930a41b73e..b6e7636edcfa 100644
--- a/srcpkgs/noip2/template
+++ b/srcpkgs/noip2/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.noip.com"
 distfiles="https://www.noip.com/client/linux/noip-duc-linux.tar.gz"
 checksum=82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC PREFIX=/usr LIBS="$CFLAGS $LDFLAGS"
diff --git a/srcpkgs/notepadqq/template b/srcpkgs/notepadqq/template
index 194588600db8..85e8349e031b 100644
--- a/srcpkgs/notepadqq/template
+++ b/srcpkgs/notepadqq/template
@@ -12,6 +12,7 @@ homepage="https://notepadqq.com"
 license="GPL-3.0-or-later"
 distfiles="https://github.com/notepadqq/notepadqq/archive/v${version}.tar.gz"
 checksum=13fba9abd84c59de27fbe92f74e2763b57588fcf9c88af10ec67313b0abbc9d0
+patch_args=-Np0
 
 post_install() {
 	# no need for upstream's weird magic, leads to segfaults anyway
diff --git a/srcpkgs/notes-up/template b/srcpkgs/notes-up/template
index 8fcacc6f4d99..22f5e8b400b7 100644
--- a/srcpkgs/notes-up/template
+++ b/srcpkgs/notes-up/template
@@ -17,6 +17,7 @@ distfiles="https://github.com/Philip-Scott/Notes-up/archive/${version}.tar.gz"
 checksum=35eb1df71034a118e66e6e00f5394c68423cfba7ceac035bde156d77da933b17
 build_options="pantheon"
 desc_option_pantheon="build with Contractor support"
+patch_args=-Np0
 
 post_install() {
 	ln -s com.github.philip-scott.notes-up ${DESTDIR}/usr/bin/notes-up
diff --git a/srcpkgs/nrpe/template b/srcpkgs/nrpe/template
index 6a598b0909ee..fd07a1845533 100644
--- a/srcpkgs/nrpe/template
+++ b/srcpkgs/nrpe/template
@@ -21,6 +21,7 @@ changelog="https://github.com/NagiosEnterprises/nrpe/blob/master/CHANGELOG.md"
 distfiles="https://github.com/NagiosEnterprises/${pkgname}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=f907ba15381adfc6eef211508abd027f8e1973116080faa4534a1191211c0340
 system_accounts="_nagios"
+patch_args=-Np0
 
 post_install() {
 	vsv nrpe
diff --git a/srcpkgs/nsjail/template b/srcpkgs/nsjail/template
index acff592d2eee..8a883f9d1d6f 100644
--- a/srcpkgs/nsjail/template
+++ b/srcpkgs/nsjail/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/google/nsjail/archive/${version}.tar.gz
  https://github.com/google/kafel/archive/8e69b8efae415cde3debffbb1e379d9e7a16835a.tar.gz"
 checksum="cfa66d3ed136b2e221752287b95e544915e8a6760aa866f023b604d14a374919
  4a6c9a1a70ed99bbed767adc106081b017a3090307ea88cc7e329b82daa1373b"
+patch_args=-Np0
 
 archs="aarch64* armv5tel* armv6l* armv7l* x86_64*"
 
diff --git a/srcpkgs/nspr/template b/srcpkgs/nspr/template
index 2873d90183a6..f9f4c941d124 100644
--- a/srcpkgs/nspr/template
+++ b/srcpkgs/nspr/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="http://www.mozilla.org/projects/nspr/"
 distfiles="${MOZILLA_SITE}/nspr/releases/v${version}/src/${pkgname}-${version}.tar.gz"
 checksum=5729da87d5fbf1584b72840751e0c6f329b5d541850cacd1b61652c95015abc8
+patch_args=-Np0
 
 do_configure() {
 	CFLAGS="$CFLAGS -D_PR_POLL_AVAILABLE -D_PR_HAVE_OFF64_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP -D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO -D_PR_INET6_PROBE"
diff --git a/srcpkgs/nss/template b/srcpkgs/nss/template
index 24da85cec752..1ae8f62b0b9d 100644
--- a/srcpkgs/nss/template
+++ b/srcpkgs/nss/template
@@ -1,4 +1,5 @@
 # Template file for 'nss'
+patch_args=-Np0
 
 _nsprver=4.30
 
diff --git a/srcpkgs/ntp/template b/srcpkgs/ntp/template
index fa88f33f92b7..523c61db5c09 100644
--- a/srcpkgs/ntp/template
+++ b/srcpkgs/ntp/template
@@ -13,6 +13,7 @@ license="NTP"
 homepage="http://www.ntp.org/"
 distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${version}.tar.gz"
 checksum=f65840deab68614d5d7ceb2d0bb9304ff70dcdedd09abb79754a87536b849c19
+patch_args=-Np0
 
 make_dirs="/var/db/ntpd 0755 ntpd ntpd"
 conf_files="/etc/ntp.conf"
diff --git a/srcpkgs/numactl/template b/srcpkgs/numactl/template
index ca5ecf3b3f10..ca70de19109a 100644
--- a/srcpkgs/numactl/template
+++ b/srcpkgs/numactl/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-only"
 homepage="https://github.com/numactl/numactl"
 distfiles="https://github.com/numactl/numactl/archive/v${version}.tar.gz"
 checksum=1ee27abd07ff6ba140aaf9bc6379b37825e54496e01d6f7343330cf1a4487035
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
 	# XXX
diff --git a/srcpkgs/nvme-cli/template b/srcpkgs/nvme-cli/template
index 0da50f2663ef..35301436ec7d 100644
--- a/srcpkgs/nvme-cli/template
+++ b/srcpkgs/nvme-cli/template
@@ -15,6 +15,7 @@ homepage="http://nvmexpress.org"
 distfiles="https://github.com/linux-nvme/nvme-cli/archive/v${version}.tar.gz"
 checksum=03f4875f3e68d326b0280e16df2f027ca6b086cfa148c34e8569df61319b4b85
 conf_files="/etc/nvme/*.conf"
+patch_args=-Np0
 
 post_install() {
 	# these files are touch'd by install, remove so they aren't registered
diff --git a/srcpkgs/nwipe/template b/srcpkgs/nwipe/template
index e3cbc2b3b653..5b88dfcd2d9a 100644
--- a/srcpkgs/nwipe/template
+++ b/srcpkgs/nwipe/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/martijnvanbrummelen/nwipe"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=85faaa9c65557a6be187f0176c5b778e8cd080e1cd9b8a7168a8a9b8e410d46d
+patch_args=-Np0
 
 CFLAGS="-D_FILE_OFFSET_BITS=64"
 
diff --git a/srcpkgs/nx-libs/template b/srcpkgs/nx-libs/template
index f604983c82c9..108696f69aa7 100644
--- a/srcpkgs/nx-libs/template
+++ b/srcpkgs/nx-libs/template
@@ -22,6 +22,7 @@ checksum=3ce7ca4e6b57b3a2d7588b2d0f4009036d2566a8925ca2c62f08a8dc0df50357
 python_version=3
 nocross="imake attempts to run target executables on host"
 conf_files="/etc/nxagent/*"
+patch_args=-Np0
 
 post_patch() {
 	# Replace hard-coded /usr/local ProjectRoot
diff --git a/srcpkgs/obexftp/template b/srcpkgs/obexftp/template
index 9e4123be13c6..457386c803dd 100644
--- a/srcpkgs/obexftp/template
+++ b/srcpkgs/obexftp/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp"
 distfiles="${SOURCEFORGE_SITE}/openobex/${pkgname}-${version}-Source.tar.gz"
 checksum=d40fb48e0a0eea997b3e582774b29f793919a625d54b87182e31a3f3d1c989a3
+patch_args=-Np0
 
 post_install() {
 	# Do not require 'bluetooth', does not exist.
diff --git a/srcpkgs/occt/template b/srcpkgs/occt/template
index 9298edc76e08..c72fcd384402 100644
--- a/srcpkgs/occt/template
+++ b/srcpkgs/occt/template
@@ -19,6 +19,7 @@ homepage="https://www.opencascade.com"
 distfiles="https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/${_gittag};sf=tgz>occt-${_gittag}.tar.gz"
 checksum=e00fedc221560fda31653c23a8f3d0eda78095c87519f338d4f4088e2ee9a9c0
 conflicts="oce>=0"
+patch_args=-Np0
 
 post_install() {
 	rm ${PKGDESTDIR}/usr/share/doc/opencascade/*_LGPL_*.txt
diff --git a/srcpkgs/odroid-u2-kernel/template b/srcpkgs/odroid-u2-kernel/template
index 748f904ee1de..4369f4c8a95e 100644
--- a/srcpkgs/odroid-u2-kernel/template
+++ b/srcpkgs/odroid-u2-kernel/template
@@ -3,6 +3,7 @@
 # Latest commit as of 20140809
 _githash="0c5ca23376fdddc43a08e5709e4d4bf18bc747f0"
 _gitshort="${_githash:0:7}"
+patch_args=-Np0
 
 pkgname=odroid-u2-kernel
 version=3.8.13.28
diff --git a/srcpkgs/ofono/template b/srcpkgs/ofono/template
index 248e58d9502d..78f80264583a 100644
--- a/srcpkgs/ofono/template
+++ b/srcpkgs/ofono/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://01.org/ofono"
 distfiles="${KERNEL_SITE}/network/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=a15c5d28096c10eb30e47a68b6dc2e7c4a5a99d7f4cfedf0b69624f33d859e9b
+patch_args=-Np0
 
 post_install() {
 	vsv ofonod
diff --git a/srcpkgs/ogmrip/template b/srcpkgs/ogmrip/template
index 1905d67b6abc..7a6bc318a04b 100644
--- a/srcpkgs/ogmrip/template
+++ b/srcpkgs/ogmrip/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="http://ogmrip.sourceforge.net/en/index.html"
 distfiles="${SOURCEFORGE_SITE}/ogmrip/ogmrip/${version%.*}/${version}/ogmrip-${version}.tar.gz"
 checksum=4e2e9778ac4da9fe1ab159e3dc6d4367b7a9dbd8f3501df99733ecedb25b02ff
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's/enchant >=/enchant-2 >=/' configure
diff --git a/srcpkgs/ogmtools/template b/srcpkgs/ogmtools/template
index 29c7e04d6ea3..5dc3772bd7e1 100644
--- a/srcpkgs/ogmtools/template
+++ b/srcpkgs/ogmtools/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="http://www.bunkus.org/videotools/ogmtools/"
 distfiles="http://www.bunkus.org/videotools/ogmtools/ogmtools-${version}.tar.bz2"
 checksum=c8d61d1dbceb981dc7399c1a85e43b509fd3d071fb8d3ca89ea9385e6e40fdea
+patch_args=-Np0
 
 CFLAGS="-I./avilib"
 CXXFLAGS="${CFLAGS}"
diff --git a/srcpkgs/oksh/template b/srcpkgs/oksh/template
index 84e6085f54f0..932eac8c8205 100644
--- a/srcpkgs/oksh/template
+++ b/srcpkgs/oksh/template
@@ -11,6 +11,7 @@ homepage="https://github.com/ibara/oksh"
 distfiles="https://github.com/ibara/oksh/releases/download/oksh-${version}/oksh-${version}.tar.gz"
 checksum=c08d97b2ac9ee5d88e9e508d27c75502b2d06c20d4c5ab87b496cb3b9951bd35
 register_shell="/bin/oksh"
+patch_args=-Np0
 
 alternatives="
  ksh:ksh:/usr/bin/oksh
diff --git a/srcpkgs/okteta/template b/srcpkgs/okteta/template
index 7d3878ca031a..f767b376f4f2 100644
--- a/srcpkgs/okteta/template
+++ b/srcpkgs/okteta/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://apps.kde.org/okteta/"
 distfiles="${KDE_SITE}/okteta/${version}/src/okteta-${version}.tar.xz"
 checksum=c569cd5b55503e46df1a5b5c9162b08888c426aa52c6f3f2f926c658bee0144c
+patch_args=-Np0
 
 okteta-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/okular/template b/srcpkgs/okular/template
index 44c3b7e82b70..7fcc1686d39f 100644
--- a/srcpkgs/okular/template
+++ b/srcpkgs/okular/template
@@ -17,6 +17,7 @@ license="GPL-2.0-only"
 homepage="https://kde.org/applications/en/graphics/org.kde.okular"
 distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=330dbe847409bfc544093ac703754fb5f43398ea3dbea88b976dc393d3bda65c
+patch_args=-Np0
 
 do_check() {
 	cd build
diff --git a/srcpkgs/olsrd/template b/srcpkgs/olsrd/template
index 314527b83433..fe19e2a1a809 100644
--- a/srcpkgs/olsrd/template
+++ b/srcpkgs/olsrd/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://www.olsr.org/"
 distfiles="https://github.com/OLSR/olsrd/archive/v${version}.tar.gz"
 checksum=9baf2e4993dbb53babf18eea9e81a2e92ce79686632711a16a5b4f7776e94451
+patch_args=-Np0
 
 conf_files="/etc/olsrd.conf"
 
diff --git a/srcpkgs/omxplayer/template b/srcpkgs/omxplayer/template
index f20b056f406f..c6742b439a4d 100644
--- a/srcpkgs/omxplayer/template
+++ b/srcpkgs/omxplayer/template
@@ -6,6 +6,7 @@ short_desc="Commandline OMX player for the Raspberry Pi"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2"
 homepage="https://github.com/popcornmix/omxplayer"
+patch_args=-Np0
 
 _commit="f06235cc9690a6d58187514452df8cf8fcdaacec"
 wrksrc="omxplayer-$_commit"
diff --git a/srcpkgs/open-iscsi/template b/srcpkgs/open-iscsi/template
index 7cd8308b0498..e772af1da0e9 100644
--- a/srcpkgs/open-iscsi/template
+++ b/srcpkgs/open-iscsi/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.open-iscsi.com/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=5410474b23552016220d04aa181903cb50ae988f29e99cb03f3e2de86a109be4
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) CFLAGS+="-D_LINUX_IF_ETHER_H -Wno-error=format -Wno-error=cpp";;
diff --git a/srcpkgs/open-vm-tools/template b/srcpkgs/open-vm-tools/template
index c452f7365ac3..b965024f763b 100644
--- a/srcpkgs/open-vm-tools/template
+++ b/srcpkgs/open-vm-tools/template
@@ -20,6 +20,7 @@ homepage="https://github.com/vmware/open-vm-tools"
 changelog="https://github.com/vmware/open-vm-tools/blob/master/open-vm-tools/ChangeLog"
 distfiles="https://github.com/vmware/open-vm-tools/archive/stable-${version}.tar.gz"
 checksum=7c31bb8ef70a0e32b81cde6550cae390a53108e4abb28bb539b0ab5b9e4fc188
+patch_args=-Np0
 
 build_options="pam x11"
 build_options_default="pam x11"
diff --git a/srcpkgs/openbabel/template b/srcpkgs/openbabel/template
index 83eef561f8a4..9e16fb318d30 100644
--- a/srcpkgs/openbabel/template
+++ b/srcpkgs/openbabel/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="http://openbabel.org"
 distfiles="https://github.com/openbabel/openbabel/archive/openbabel-${_ver}.tar.gz"
 checksum=594c7f8a83f3502381469d643f7b185882da1dd4bc2280c16502ef980af2a776
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" python"
diff --git a/srcpkgs/openblas/template b/srcpkgs/openblas/template
index 58a75941be47..2e3773fc1073 100644
--- a/srcpkgs/openblas/template
+++ b/srcpkgs/openblas/template
@@ -14,6 +14,7 @@ homepage="https://www.openblas.net/"
 changelog="https://raw.githubusercontent.com/xianyi/OpenBLAS/v${version}/Changelog.txt"
 distfiles="https://github.com/xianyi/OpenBLAS/archive/v${version}.tar.gz"
 checksum=79197543b17cc314b7e43f7a33148c308b0807cd6381ee77f77e15acf3e6459e
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	armv5*) make_build_args+=" TARGET=ARMV5" ;;
diff --git a/srcpkgs/openbox/template b/srcpkgs/openbox/template
index fb62d8d4fedb..346329d63bc2 100644
--- a/srcpkgs/openbox/template
+++ b/srcpkgs/openbox/template
@@ -20,6 +20,7 @@ homepage="http://www.openbox.org"
 distfiles="http://openbox.org/dist/openbox/openbox-$version.tar.xz"
 checksum=abe75855cc5616554ffd47134ad15291fe37ebbebf1a80b69cbde9d670f0e26d
 python_version=2 #unverified
+patch_args=-Np0
 
 # Package build options
 build_options="svg"
diff --git a/srcpkgs/openbsd-file/template b/srcpkgs/openbsd-file/template
index 839afee47d07..0556a0f33b35 100644
--- a/srcpkgs/openbsd-file/template
+++ b/srcpkgs/openbsd-file/template
@@ -12,6 +12,7 @@ license="ISC"
 homepage="https://github.com/brynet/file/"
 distfiles="https://github.com/brynet/file/archive/v${version}.tar.gz"
 checksum=f6bf601f513bd83038e343bbd93b7982f373669a2ffa76dc52d48fa7251515b2
+patch_args=-Np0
 
 system_accounts="_file"
 
diff --git a/srcpkgs/opencollada/template b/srcpkgs/opencollada/template
index 6041120059b1..3bc1f23010f4 100644
--- a/srcpkgs/opencollada/template
+++ b/srcpkgs/opencollada/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/KhronosGroup/OpenCOLLADA"
 distfiles="https://github.com/KhronosGroup/OpenCOLLADA/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=d9db0c0a518aa6ac0359626f222707c6ca1b63a83cbf229d97a5999c9cde347b
+patch_args=-Np0
 
 CXXFLAGS="-fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
 if [ -n "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/opencolorio/template b/srcpkgs/opencolorio/template
index 179736598588..c444616b8c64 100644
--- a/srcpkgs/opencolorio/template
+++ b/srcpkgs/opencolorio/template
@@ -19,6 +19,7 @@ homepage="http://opencolorio.org"
 changelog="https://raw.githubusercontent.com/imageworks/OpenColorIO/master/ChangeLog"
 distfiles="https://github.com/imageworks/OpenColorIO/archive/v${version}.tar.gz"
 checksum=c9b5b9def907e1dafb29e37336b702fff22cc6306d445a13b1621b8a754c14c8
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/opencv/template b/srcpkgs/opencv/template
index 4ebf6fe915ed..a484fbc92560 100644
--- a/srcpkgs/opencv/template
+++ b/srcpkgs/opencv/template
@@ -18,6 +18,7 @@ license="BSD-3-Clause"
 homepage="https://opencv.org"
 distfiles="https://github.com/opencv/${pkgname}/archive/${version}.tar.gz"
 checksum=1ed6f5b02a7baf14daca04817566e7c98ec668cec381e0edf534fa49f10f58a2
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/opencv4/template b/srcpkgs/opencv4/template
index f15c5f1ec2f1..02a8e293b97b 100644
--- a/srcpkgs/opencv4/template
+++ b/srcpkgs/opencv4/template
@@ -24,6 +24,7 @@ distfiles="https://github.com/opencv/opencv/archive/${version}.tar.gz
 	https://github.com/opencv/opencv_contrib/archive/${version}.tar.gz>contrib.tar.gz"
 checksum="68bc40cbf47fdb8ee73dfaf0d9c6494cd095cf6294d99de445ab64cf853d278a
 	acb8e89c9e7d1174e63e40532125b60d248b00e517255a98a419d415228c6a55"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/opendkim/template b/srcpkgs/opendkim/template
index c9d0abfda66c..cccc65ca3f3b 100644
--- a/srcpkgs/opendkim/template
+++ b/srcpkgs/opendkim/template
@@ -13,6 +13,7 @@ homepage="http://www.opendkim.org"
 distfiles="${SOURCEFORGE_SITE}/project/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=43a0ba57bf942095fe159d0748d8933c6b1dd1117caf0273fa9a0003215e681b
 python_version=2 #unverified
+patch_args=-Np0
 
 pre_configure() {
 	 autoreconf -fi
diff --git a/srcpkgs/openexr/template b/srcpkgs/openexr/template
index 3f1b59753c1b..f99fd2d8ab51 100644
--- a/srcpkgs/openexr/template
+++ b/srcpkgs/openexr/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://www.openexr.com/"
 distfiles="https://github.com/openexr/openexr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=3ebbe9a8e67edb4a25890b98c598e9fe23b10f96d1416d6a3ff0732e99d001c1
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/openjade/template b/srcpkgs/openjade/template
index 5d27cec3f6cb..401ab09110bb 100644
--- a/srcpkgs/openjade/template
+++ b/srcpkgs/openjade/template
@@ -19,6 +19,7 @@ homepage="http://openjade.sourceforge.net/"
 license="MIT"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-$version.tar.gz"
 checksum=1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1
+patch_args=-Np0
 
 CXXFLAGS="-fno-lifetime-dse"
 
diff --git a/srcpkgs/openjpeg2/template b/srcpkgs/openjpeg2/template
index 4e6f16ac7ced..dae52dc78195 100644
--- a/srcpkgs/openjpeg2/template
+++ b/srcpkgs/openjpeg2/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="http://www.openjpeg.org/"
 distfiles="https://github.com/uclouvain/openjpeg/archive/v${version}.tar.gz"
 checksum=8702ba68b442657f11aaeb2b338443ca8d5fb95b0d845757968a7be31ef7f16d
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/openlierox/template b/srcpkgs/openlierox/template
index 7ae0e22f2d3d..343b26f494f7 100644
--- a/srcpkgs/openlierox/template
+++ b/srcpkgs/openlierox/template
@@ -17,6 +17,7 @@ distfiles="${SOURCEFORGE_SITE}/openlierox/OpenLieroX_${version/.rc/_rc}.src.tar.
 checksum=3e029aba20f22d902027293e1f1a196e2f1794455cb2483d099709d7fb6c5fbb
 python_version=2
 replaces="openlierox-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libxml2"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/openmpi/template b/srcpkgs/openmpi/template
index ce8585fa6835..0881292b2772 100644
--- a/srcpkgs/openmpi/template
+++ b/srcpkgs/openmpi/template
@@ -19,6 +19,7 @@ distfiles="${homepage}/software/ompi/v${version%.*}/downloads/${pkgname}-${versi
 checksum=e24f7a778bd11a71ad0c14587a7f5b00e68a71aa5623e2157bafee3d44c07cda
 nocross="configure attempts to run target binaries"
 lib32disabled=yes
+patch_args=-Np0
 
 post_extract() {
 	vsed -e 's,sys/unistd.h,unistd.h,g' -i opal/include/opal/sys/cma.h
diff --git a/srcpkgs/openntpd/template b/srcpkgs/openntpd/template
index 34bb4ed3a5eb..e8c003ec9fd8 100644
--- a/srcpkgs/openntpd/template
+++ b/srcpkgs/openntpd/template
@@ -13,6 +13,7 @@ license="ISC"
 homepage="http://openntpd.org/"
 distfiles="http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/${pkgname}-${version}.tar.gz"
 checksum=7b02691524197e01ba6b1b4b7595b33956e657ba6d5c4cf2fc20ea3f4914c13a
+patch_args=-Np0
 
 conf_files="/etc/ntpd.conf"
 provides="ntp-daemon-0_1"
diff --git a/srcpkgs/opensm/template b/srcpkgs/opensm/template
index 101bf3a27ce2..62b6cf0ea3aa 100644
--- a/srcpkgs/opensm/template
+++ b/srcpkgs/opensm/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/linux-rdma/opensm"
 distfiles="https://github.com/linux-rdma/opensm/releases/download/${version}/opensm-${version}.tar.gz"
 checksum=1e0dc56a5cf5f8e5cd68bd534591405a5f5f1975ace40509f61a43cc2fe74ca7
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/opensmtpd-extras/template b/srcpkgs/opensmtpd-extras/template
index f022e13ed9cb..b8b0a4b5a0a8 100644
--- a/srcpkgs/opensmtpd-extras/template
+++ b/srcpkgs/opensmtpd-extras/template
@@ -16,6 +16,7 @@ license="ISC"
 homepage="https://www.opensmtpd.org"
 distfiles="https://www.opensmtpd.org/archives/${pkgname}-${version}.tar.gz"
 checksum=126b023602e8bb222bf24543a056ee0a548343dc86d184669ff9d82dfca1fbdf
+patch_args=-Np0
 
 CFLAGS="-D_DEFAULT_SOURCE"
 
diff --git a/srcpkgs/opensmtpd/template b/srcpkgs/opensmtpd/template
index ab0b2e6a10ab..5dfe9d09b811 100644
--- a/srcpkgs/opensmtpd/template
+++ b/srcpkgs/opensmtpd/template
@@ -26,6 +26,7 @@ checksum=51bf05312fe56764748faab9e63170bfbb7c7d84a37c4117b62b2681eb3a4d17
 provides="smtp-forwarder-0_1 smtp-server-0_1"
 replaces="smtp-forwarder>=0 smtp-server>=0"
 system_accounts="_smtpd _smtpq"
+patch_args=-Np0
 
 CFLAGS=-D_DEFAULT_SOURCE
 
diff --git a/srcpkgs/opensonic/template b/srcpkgs/opensonic/template
index 4dff7f06bd79..5b438426d12c 100644
--- a/srcpkgs/opensonic/template
+++ b/srcpkgs/opensonic/template
@@ -17,6 +17,7 @@ distfiles="${SOURCEFORGE_SITE}/opensnc/opensnc-src-${version}.tar.gz
  https://github.com/t6/loggcompat/archive/${_loggcompat_ver}.tar.gz"
 checksum="3a4c3fa9538ee27c04b5ea848c9ad0a83f335471936d4617a18d3648c42588e9
  481fe569959eefa92d0babeca27709b2efcf7a815cd5c49596b6c0403db76a4e"
+patch_args=-Np0
 
 replaces="opensonic-data>=0"
 CFLAGS="-I./../loggcompat-${_loggcompat_ver}"
diff --git a/srcpkgs/openssh/template b/srcpkgs/openssh/template
index 95c8b31073b3..fdd089dab38a 100644
--- a/srcpkgs/openssh/template
+++ b/srcpkgs/openssh/template
@@ -26,6 +26,7 @@ distfiles="https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/${pkgname}-${ver
 checksum=c3e6e4da1621762c850d03b47eed1e48dff4cc9608ddeb547202a234df8ed7ae
 conf_files="/etc/ssh/moduli /etc/ssh/ssh_config /etc/ssh/sshd_config /etc/pam.d/sshd"
 make_dirs="/var/chroot/ssh 0755 root root"
+patch_args=-Np0
 
 # Package build options
 build_options="fido2 gssapi ldns ssl"
diff --git a/srcpkgs/openssl/template b/srcpkgs/openssl/template
index 01dfd74de14d..007e2fc5b3e2 100644
--- a/srcpkgs/openssl/template
+++ b/srcpkgs/openssl/template
@@ -20,6 +20,7 @@ distfiles="https://www.openssl.org/source/openssl-${version}.tar.gz"
 checksum=892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5
 conf_files="/etc/ssl/openssl.cnf"
 replaces="libressl>=0"
+patch_args=-Np0
 
 build_options=asm
 
diff --git a/srcpkgs/opensurge/template b/srcpkgs/opensurge/template
index f39fb0028075..90714ddef502 100644
--- a/srcpkgs/opensurge/template
+++ b/srcpkgs/opensurge/template
@@ -12,6 +12,7 @@ homepage="https://opensurge2d.org/"
 distfiles="https://github.com/alemart/opensurge/archive/v${version}.tar.gz"
 checksum=27764a82d97b54026c90044fbc31ea4a61f7836568020b869e63376322a155af
 replaces="opensurge-data>=0"
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e 's/GAME_BINDIR "games"/GAME_BINDIR "bin"/'
diff --git a/srcpkgs/opkg/template b/srcpkgs/opkg/template
index 33b8bdd334fe..04d4362ae15f 100644
--- a/srcpkgs/opkg/template
+++ b/srcpkgs/opkg/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://code.google.com/p/opkg/"
 distfiles="https://downloads.yoctoproject.org/releases/opkg/opkg-${version}.tar.gz"
 checksum=a1214a75fa34fb9228db8da47308e0e711b1c93fd8938cf164c10fd28eb50f1e
+patch_args=-Np0
 
 build_options="gpg lz4 ssl"
 build_options_default="ssl"
diff --git a/srcpkgs/oprofile/template b/srcpkgs/oprofile/template
index 6625c363438a..da5caf24f4c3 100644
--- a/srcpkgs/oprofile/template
+++ b/srcpkgs/oprofile/template
@@ -15,6 +15,7 @@ license="GPL-2.0-only"
 homepage="http://oprofile.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=7ba06f99d7c188389d20d1d5e53ee690c7733f87aa9af62bd664fa0ca235a412
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc*) makedepends+=" papi-devel";;
diff --git a/srcpkgs/oragono/template b/srcpkgs/oragono/template
index 33a91197e97c..d3e884253354 100644
--- a/srcpkgs/oragono/template
+++ b/srcpkgs/oragono/template
@@ -16,6 +16,7 @@ system_accounts="_oragono"
 _oragono_homedir="/var/lib/oragono"
 make_dirs="
  /var/lib/oragono 0755 _oragono _oragono"
+patch_args=-Np0
 
  post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/orion/template b/srcpkgs/orion/template
index d69f2ff04dd4..29feec2b0bd0 100644
--- a/srcpkgs/orion/template
+++ b/srcpkgs/orion/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/alamminsalo/orion"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=19d9c170d0bcf21d47947704d8c8e927cff5140f94cb840b51d2b8574b0149fb
+patch_args=-Np0
 
 do_install() {
 	vbin orion
diff --git a/srcpkgs/os-prober/template b/srcpkgs/os-prober/template
index f22ca4e63e9b..3cd0dcc7a0a3 100644
--- a/srcpkgs/os-prober/template
+++ b/srcpkgs/os-prober/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://packages.debian.org/sid/os-prober"
 distfiles="${DEBIAN_SITE}/main/o/${pkgname}/${pkgname}_${version}.tar.xz"
 checksum=6e909f511035698145ba01ad63fd53fce6ee24529c76e2698e346bbac49950e9
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) _ARCH="x86";;
diff --git a/srcpkgs/osg/template b/srcpkgs/osg/template
index 08bf6d4b6591..c01c0e253576 100644
--- a/srcpkgs/osg/template
+++ b/srcpkgs/osg/template
@@ -23,6 +23,7 @@ license="OSGPL-2.0-or-later"
 homepage="http://www.openscenegraph.org"
 distfiles="https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-${version}.tar.gz"
 checksum=930eb46f05781a76883ec16c5f49cfb29a059421db131005d75bec4d78401fd5
+patch_args=-Np0
 
 # Append CFLAGS and CXXFLAGS to set work around code which gcc6 would
 # otherwise regard as out-of-specification and allow it to produce a
diff --git a/srcpkgs/osmid/template b/srcpkgs/osmid/template
index f89e27caedc4..2482ca254713 100644
--- a/srcpkgs/osmid/template
+++ b/srcpkgs/osmid/template
@@ -11,6 +11,7 @@ license="MIT, ISC, GPL-3.0-or-later"
 homepage="https://github.com/llloret/osmid/"
 distfiles="https://github.com/llloret/osmid/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=774d6c2c7ba81d1ab9d4e7ee031ce15a1506f19ee940166d277dbdee98f87b50
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" libexecinfo-devel" ;;
diff --git a/srcpkgs/otfcc/template b/srcpkgs/otfcc/template
index b19fbcb5220d..38ec8833f280 100644
--- a/srcpkgs/otfcc/template
+++ b/srcpkgs/otfcc/template
@@ -11,6 +11,7 @@ license="Apache-2.0"
 homepage="https://github.com/caryll/otfcc"
 distfiles="https://github.com/caryll/otfcc/archive/v${version}.tar.gz"
 checksum=d9c74825ddac700eb429de31de7cb0a249636f47c6a4cc64eaa102a40966cf00
+patch_args=-Np0
 
 # Yes, there are architectures besides x86 and x64 :-P
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/otpw/template b/srcpkgs/otpw/template
index 03c9c86d6a19..2f86ba39e087 100644
--- a/srcpkgs/otpw/template
+++ b/srcpkgs/otpw/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="http://www.cl.cam.ac.uk/~mgk25/otpw.html"
 distfiles="https://www.cl.cam.ac.uk/%7Emgk25/download/otpw-${version}.tar.gz"
 checksum=98aca38a61c7713677b96f24426ca7053480c0fd077d91b1e99bc9f92ccb832a
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC LD=$LD CFLAGS="$CFLAGS -fPIC" LDFLAGS="$LDFLAGS" ${makejobs}
diff --git a/srcpkgs/owncloudclient/template b/srcpkgs/owncloudclient/template
index 2146b9110d17..cf7871bd6477 100644
--- a/srcpkgs/owncloudclient/template
+++ b/srcpkgs/owncloudclient/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.owncloud.org"
 distfiles="https://github.com/owncloud/client/archive/v${version}.tar.gz"
 checksum=aafc6044a4c6727ad747195cb90a6be8c3a5b28de50df97fa961b6b551fe6d89
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-tools-devel"
diff --git a/srcpkgs/p7zip/template b/srcpkgs/p7zip/template
index 642e24adaf52..192db3c04f6b 100644
--- a/srcpkgs/p7zip/template
+++ b/srcpkgs/p7zip/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://p7zip.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}_src_all.tar.bz2"
 checksum=5eb20ac0e2944f6cb9c2d51dd6c4518941c185347d4089ea89087ffdd6e2341f
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/pa-applet/template b/srcpkgs/pa-applet/template
index e190ff2d99ad..c4586b7be4f1 100644
--- a/srcpkgs/pa-applet/template
+++ b/srcpkgs/pa-applet/template
@@ -13,6 +13,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/fernandotcl/pa-applet"
 distfiles="$homepage/archive/$_commit.tar.gz"
 checksum=db30c04a6954e1d138c6bc80739dae80d667a0af151b015db503e48fb30b0b7a
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e 's| -Werror||' src/Makefile.am
diff --git a/srcpkgs/pacman/template b/srcpkgs/pacman/template
index d23aba0468bf..c676fb361132 100644
--- a/srcpkgs/pacman/template
+++ b/srcpkgs/pacman/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.archlinux.org/pacman/"
 distfiles="https://sources.archlinux.org/other/pacman/pacman-${version}.tar.gz"
 checksum=bb201a9f2fb53c28d011f661d50028efce6eef2c1d2a36728bdd0130189349a0
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	do_check() {
diff --git a/srcpkgs/pahole/template b/srcpkgs/pahole/template
index d3b720d72f24..ee34924e70c7 100644
--- a/srcpkgs/pahole/template
+++ b/srcpkgs/pahole/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://git.kernel.org/?p=devel/pahole/pahole.git;a=summary"
 distfiles="https://fedorapeople.org/~acme/dwarves/dwarves-${version}.tar.xz"
 checksum=33a8bed6c0e1a5889578e01d1afed3f752353dc087d8bda36d258fe83e42a476
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	*-musl) makedepends+=" musl-obstack-devel argp-standalone"
diff --git a/srcpkgs/pam-mount/template b/srcpkgs/pam-mount/template
index 0a8e38d9de8c..235c7025df49 100644
--- a/srcpkgs/pam-mount/template
+++ b/srcpkgs/pam-mount/template
@@ -16,6 +16,7 @@ homepage="http://pam-mount.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pam-mount/pam_mount/${version}/pam_mount-${version}.tar.xz"
 checksum=ae0207ea6c96189414f906a7b0880abc7751a98e26b3d0375c9afab3722471e7
 conf_files="/etc/security/pam_mount.conf.xml"
+patch_args=-Np0
 
 libpam-mount_package() {
 	short_desc+=" - runtime library"
diff --git a/srcpkgs/pam-u2f/template b/srcpkgs/pam-u2f/template
index 7c1b5034a28d..02fb19f2b41d 100644
--- a/srcpkgs/pam-u2f/template
+++ b/srcpkgs/pam-u2f/template
@@ -14,6 +14,7 @@ homepage="https://developers.yubico.com/pam-u2f/"
 #changelog="https://raw.githubusercontent.com/Yubico/pam-u2f/master/NEWS"
 distfiles="https://developers.yubico.com/pam-u2f/Releases/pam_u2f-${version}.tar.gz"
 checksum=0dc3bf96ebb69c6e398b5f8991493b37a8ce1af792948af71e694f695d5edc05
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/pam_ssh/template b/srcpkgs/pam_ssh/template
index eba01a0fa450..b2d2ae5f4483 100644
--- a/srcpkgs/pam_ssh/template
+++ b/srcpkgs/pam_ssh/template
@@ -14,6 +14,7 @@ license="BSD-2-Clause"
 homepage="http://pam-ssh.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pam-ssh/${pkgname}-${version}.tar.xz"
 checksum=0c456f6a5c9e47ce6825ac50d467e7a797e14239b2b9a72bfeb2df0100f4af31
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/pam_ssh_agent_auth/template b/srcpkgs/pam_ssh_agent_auth/template
index 507448245108..05c7a4f346c1 100644
--- a/srcpkgs/pam_ssh_agent_auth/template
+++ b/srcpkgs/pam_ssh_agent_auth/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://pamsshagentauth.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pamsshagentauth/${pkgname}-${version}.tar.bz2"
 checksum=3c53d358d6eaed1b211239df017c27c6f9970995d14102ae67bae16d4f47a763
+patch_args=-Np0
 
 post_extract() {
 	vsed -e '/^AR=/d' -i Makefile.in -i openbsd-compat/Makefile.in
diff --git a/srcpkgs/papi/template b/srcpkgs/papi/template
index f8010c4b1591..c8d6d1e79fbf 100644
--- a/srcpkgs/papi/template
+++ b/srcpkgs/papi/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://icl.cs.utk.edu/papi/"
 distfiles="http://icl.utk.edu/projects/papi/downloads/papi-${version}.tar.gz"
 checksum=d1a3bb848e292c805bc9f29e09c27870e2ff4cda6c2fba3b7da8b4bba6547589
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	_ARCH="${XBPS_TARGET_MACHINE%-musl}"
diff --git a/srcpkgs/par/template b/srcpkgs/par/template
index 54747129b79a..0f8b5c52e165 100644
--- a/srcpkgs/par/template
+++ b/srcpkgs/par/template
@@ -12,6 +12,7 @@ distfiles="http://www.nicemice.net/par/Par152-autoconf.tar.gz
  http://www.nicemice.net/par/Par152.tar.gz"
 checksum="034fb943236523629eefee0a33fc6afb5b881648a2fc5c6bef7fd1b89ce44d34
  33dcdae905f4b4267b4dc1f3efb032d79705ca8d2122e17efdecfd8162067082"
+patch_args=-Np0
 
 do_install() {
 	vbin par
diff --git a/srcpkgs/par2cmdline/template b/srcpkgs/par2cmdline/template
index 548de4363a7c..10e1b5c63f40 100644
--- a/srcpkgs/par2cmdline/template
+++ b/srcpkgs/par2cmdline/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Parchive/par2cmdline"
 distfiles="https://github.com/Parchive/par2cmdline/archive/v${version}.tar.gz"
 checksum=529f85857ec44e501cd8d95b0c8caf47477d7daa5bfb989e422c800bb71b689a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/paraview/template b/srcpkgs/paraview/template
index 20a7f5589677..875b5d1f176b 100644
--- a/srcpkgs/paraview/template
+++ b/srcpkgs/paraview/template
@@ -34,6 +34,7 @@ license="BSD-3-Clause"
 homepage="https://www.paraview.org"
 distfiles="https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${version:0:3}&type=source&os=Sources&downloadFile=ParaView-v${version}.tar.xz>paraview-${version}.tar.xz"
 checksum=7653950392a0d7c0287c26f1d3a25cdbaa11baa7524b0af0e6a1a0d7d487d034
+patch_args=-Np0
 
 CFLAGS="-DYYERROR_VERBOSE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DGNU_SOURCE -fcommon"
 CXXFLAGS="${CFLAGS}"
diff --git a/srcpkgs/parcellite/template b/srcpkgs/parcellite/template
index 98f7b661cd74..cb4de9fe6082 100644
--- a/srcpkgs/parcellite/template
+++ b/srcpkgs/parcellite/template
@@ -12,5 +12,6 @@ license="GPL-3.0-or-later"
 homepage="http://parcellite.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/parcellite/${version}/parcellite-${version}.tar.gz"
 checksum=aba1c7c56c7607e219ce9855723eefa552c5376982891aefbfb5a2d3297ef046
+patch_args=-Np0
 
 export LIBS=-lgio-2.0
diff --git a/srcpkgs/partclone/template b/srcpkgs/partclone/template
index 4813a8a250dd..5140c3dcf878 100644
--- a/srcpkgs/partclone/template
+++ b/srcpkgs/partclone/template
@@ -16,6 +16,7 @@ homepage="http://www.partclone.org/"
 distfiles="https://github.com/Thomas-Tsai/${pkgname}/archive/${version}.tar.gz"
 checksum=ef1391db3801e4b3ef82fc9417f1d7f0542b7229b3394120072b2dfeae0bbbb0
 CFLAGS="-DBTRFS_DISABLE_BACKTRACE"
+patch_args=-Np0
 
 pre_configure() {
 	./autogen
diff --git a/srcpkgs/passwordsafe/template b/srcpkgs/passwordsafe/template
index c4eab0c120ec..7d07f7849bea 100644
--- a/srcpkgs/passwordsafe/template
+++ b/srcpkgs/passwordsafe/template
@@ -16,6 +16,7 @@ license="Artistic-2.0"
 homepage="https://pwsafe.org"
 distfiles="https://github.com/pwsafe/pwsafe/archive/${version}.tar.gz"
 checksum=8962edf57b7f901d9ed23496c8ec387a4f186855976e8ac98f2dd55560c82ebe
+patch_args=-Np0
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -DNO_GTEST=OFF"
diff --git a/srcpkgs/pax/template b/srcpkgs/pax/template
index 0612a94cfebe..5a678b9e614f 100644
--- a/srcpkgs/pax/template
+++ b/srcpkgs/pax/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://www.mirbsd.org/MirOS/dist/mir/cpio/"
 distfiles="https://www.mirbsd.org/MirOS/dist/mir/cpio/paxmirabilis-${version}.cpio.gz"
 checksum=fe3f99c28ba7a46c4bce0b329da3742908b87fe8fbe17f0db1f99a1bd053d46b
+patch_args=-Np0
 
 alternatives="
  pax:pax:/usr/bin/paxmirabilis
diff --git a/srcpkgs/pcaudiolib/template b/srcpkgs/pcaudiolib/template
index 7f40e0388e16..54a1bf27c10f 100644
--- a/srcpkgs/pcaudiolib/template
+++ b/srcpkgs/pcaudiolib/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/espeak-ng/pcaudiolib"
 distfiles="https://github.com/espeak-ng/pcaudiolib/archive/${version}.tar.gz"
 checksum=699a5a347b1e12dc5b122e192e19f4db01621826bf41b9ebefb1cbc63ae2180b
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/pcc/template b/srcpkgs/pcc/template
index 84b020278d6d..e770914485c4 100644
--- a/srcpkgs/pcc/template
+++ b/srcpkgs/pcc/template
@@ -19,6 +19,7 @@ distfiles="
 checksum="a114dfca04b8b0559ea5d67b87d2d0fcb2bae2b4d9b9ba16ebc27960b921c812
  e810aa4d6683e769f490f734b13a296b33c2511ddba646bc526eb85532f1a23a"
 nocross=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/pchar/template b/srcpkgs/pchar/template
index da229e4e94c8..8186eb4aac29 100644
--- a/srcpkgs/pchar/template
+++ b/srcpkgs/pchar/template
@@ -9,6 +9,7 @@ license="custom"
 homepage="http://www.kitchenlab.org/www/bmah/Software/pchar/"
 distfiles="http://www.kitchenlab.org/www/bmah/Software/pchar/${pkgname}-${version}.tar.gz"
 checksum=7019297084f1000557a019501532ecae67772851717329cc02227f5c17e36d27
+patch_args=-Np0
 
 do_install() {
 	vbin pchar
diff --git a/srcpkgs/pcsclite/template b/srcpkgs/pcsclite/template
index ad9e221bfbc7..9363f84af591 100644
--- a/srcpkgs/pcsclite/template
+++ b/srcpkgs/pcsclite/template
@@ -14,6 +14,7 @@ license="BSD-2-Clause"
 homepage="https://salsa.debian.org/debian/pcsc-lite"
 distfiles="https://salsa.debian.org/debian/pcsc-lite/-/archive/upstream/${version}/pcsc-lite-upstream-${version}.tar.gz"
 checksum=686fbd1c29e282388111f01b6fdfa4fe6b8349908236645b869115b21e4f73e8
+patch_args=-Np0
 
 post_install() {
 	vsv pcscd
diff --git a/srcpkgs/pcsx2/template b/srcpkgs/pcsx2/template
index 59f8dfcdce71..9fef26e81efb 100644
--- a/srcpkgs/pcsx2/template
+++ b/srcpkgs/pcsx2/template
@@ -2,6 +2,7 @@
 archs="i686*"
 lib32mode="full"
 nopie=yes
+patch_args=-Np0
 
 pkgname=pcsx2
 version=1.6.0
diff --git a/srcpkgs/pd/template b/srcpkgs/pd/template
index 544afccd5410..df8bcc64fb11 100644
--- a/srcpkgs/pd/template
+++ b/srcpkgs/pd/template
@@ -15,6 +15,7 @@ license="BSD-3-Clause"
 homepage="https://puredata.info"
 distfiles="http://msp.ucsd.edu/Software/pd-$_ver.src.tar.gz"
 checksum=52591f18316e9f2471ca21c3d6b41c56336e0615ec40a093232e95cc230bfcc1
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/pdsh/template b/srcpkgs/pdsh/template
index e03e90656ad0..21d327d84a38 100644
--- a/srcpkgs/pdsh/template
+++ b/srcpkgs/pdsh/template
@@ -26,6 +26,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/chaos/pdsh"
 distfiles="https://github.com/chaos/pdsh/archive/pdsh-${version}.tar.gz"
 checksum=36e1b3c734ae9b4baf054c656b9735206cc56b290d2c0ec4f7825cdd9f7dff54
+patch_args=-Np0
 
 build_options="rsh exec ssh mrsh xcpu netgroup readline"
 build_options_default="rsh exec ssh mrsh readline"
diff --git a/srcpkgs/perl-Text-BibTeX/template b/srcpkgs/perl-Text-BibTeX/template
index bf385a1c465e..af0285bd8a2a 100644
--- a/srcpkgs/perl-Text-BibTeX/template
+++ b/srcpkgs/perl-Text-BibTeX/template
@@ -13,6 +13,7 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/Text-BibTeX/"
 distfiles="${CPAN_SITE}/Text/${pkgname/perl-/}-${version}.tar.gz"
 checksum=b014586e68bdbcafb0a2cfa0401eb0a04ea5de8c4d5bc36dd0f7faeab6acf42c
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	_perlprefix=${XBPS_STATEDIR}/perlprefix-${XBPS_TARGET_MACHINE}
diff --git a/srcpkgs/perl-Tk/template b/srcpkgs/perl-Tk/template
index 3515340159f4..6c2dbb6e2690 100644
--- a/srcpkgs/perl-Tk/template
+++ b/srcpkgs/perl-Tk/template
@@ -14,6 +14,7 @@ homepage="https://metacpan.org/release/Tk"
 license="Artistic-1.0-Perl, GPL-1.0-or-later"
 distfiles="${CPAN_SITE}/Tk/Tk-${version}.tar.gz"
 checksum=4d2b80291ba6de34d8ec886a085a6dbd2b790b926035a087e99025614c5ffdd4
+patch_args=-Np0
 
 post_configure() {
 	sed -i 's,X11/Xproto.h,,; s,X11/Xutil.h,,' pTk/Makefile
diff --git a/srcpkgs/perl-WWW-Curl/template b/srcpkgs/perl-WWW-Curl/template
index 5ff52959bfb0..e3e11f40736e 100644
--- a/srcpkgs/perl-WWW-Curl/template
+++ b/srcpkgs/perl-WWW-Curl/template
@@ -13,6 +13,7 @@ homepage="https://metacpan.org/release/WWW-Curl"
 license="MIT"
 distfiles="${CPAN_SITE}/WWW/WWW-Curl-$version.tar.gz"
 checksum=52ffab110e32348d775f241c973eb56f96b08eedbc110d77d257cdb0a24ab7ba
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/perl/template b/srcpkgs/perl/template
index 29da654b2f30..c5929e12b783 100644
--- a/srcpkgs/perl/template
+++ b/srcpkgs/perl/template
@@ -16,6 +16,7 @@ distfiles="https://www.cpan.org/src/5.0/perl-${version}.tar.gz
  https://github.com/arsv/perl-cross/releases/download/${_perl_cross_version}/perl-cross-${_perl_cross_version}.tar.gz"
 checksum="03b693901cd8ae807231b1787798cf1f2e0b8a56218d07b7da44f784a7caeb2c
  91c66f6b2b99fccfd4fee14660b677380b0c98f9456359e91449798c2ad2ef25"
+patch_args=-Np0
 
 # Before updating this package to a new major version, run ${FILESDIR}/provides.pl
 # against ${wrksrc} to find the list of built in packages.
diff --git a/srcpkgs/pgadmin3/template b/srcpkgs/pgadmin3/template
index ad2465b3413c..c4fc9f3c2aab 100644
--- a/srcpkgs/pgadmin3/template
+++ b/srcpkgs/pgadmin3/template
@@ -13,6 +13,7 @@ homepage="http://www.pgadmin.org"
 distfiles="https://ftp.postgresql.org/pub/pgadmin/pgadmin3/v${version}/src/pgadmin3-${version}.tar.gz"
 checksum=9b68b0e3d3f0a261344fb8196825967d1e7acaca1d8cc82c42e12368ca5844ac
 nocross=yes
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/php/template b/srcpkgs/php/template
index bdc35ee2d846..4d5649ef85ba 100644
--- a/srcpkgs/php/template
+++ b/srcpkgs/php/template
@@ -14,6 +14,7 @@ license="PHP-3.01"
 homepage="https://www.php.net"
 distfiles="http://www.php.net/distributions/php-${version}.tar.xz"
 checksum=f9f3c37969fcd9006c1dbb1dd76ab53f28c698a1646fa2dde8547c3f45e02886
+patch_args=-Np0
 
 conf_files="/etc/php/php.ini"
 
diff --git a/srcpkgs/pidgin-libnotify/template b/srcpkgs/pidgin-libnotify/template
index 5a627f323836..670f6336a6d6 100644
--- a/srcpkgs/pidgin-libnotify/template
+++ b/srcpkgs/pidgin-libnotify/template
@@ -14,6 +14,7 @@ homepage="http://gaim-libnotify.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/gaim-libnotify/${pkgname}-${version}.tar.gz"
 checksum=74f4a9f20e0a483df39974178f1f2380786176189512bcd438e4ada280ec3abe
 lib32disabled=yes
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/pidgin/template b/srcpkgs/pidgin/template
index a2668cf685eb..fb6513a00455 100644
--- a/srcpkgs/pidgin/template
+++ b/srcpkgs/pidgin/template
@@ -18,6 +18,7 @@ distfiles="${SOURCEFORGE_SITE}/pidgin/pidgin-${version}.tar.bz2"
 checksum=2747150c6f711146bddd333c496870bfd55058bab22ffb7e4eb784018ec46d8f
 python_version=2 #unverified
 lib32disabled=yes
+patch_args=-Np0
 
 hostmakedepends="pkg-config intltool automake libtool gettext gettext-devel glib-devel"
 makedepends="libglib-devel gtk+-devel libXext-devel
diff --git a/srcpkgs/pijul/template b/srcpkgs/pijul/template
index 40df186b9387..ad8534111db3 100644
--- a/srcpkgs/pijul/template
+++ b/srcpkgs/pijul/template
@@ -14,6 +14,7 @@ distfiles="https://crates.io/api/v1/crates/pijul/${version}/download>pijul-${ver
  https://gitlab.com/sequoia-pgp/sequoia/-/archive/v${_sequoia_ver}/sequoia-v${_sequoia_ver}.tar.gz"
 checksum="f92a3f4063e780ca45c161ceb0f42baf34dfeddf3359ebf6c2e0442d9abb5889
  71823c88b9666611f3cfa6b1d923bd66fda92fa6a53368b195bd2f962fdf7f4b"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	export HOST_CC="$BUILD_CC"
diff --git a/srcpkgs/pilot-link/template b/srcpkgs/pilot-link/template
index 5b83232cef8c..e42936b5e2d3 100644
--- a/srcpkgs/pilot-link/template
+++ b/srcpkgs/pilot-link/template
@@ -18,6 +18,7 @@ homepage="http://www.pilot-link.org/"
 #distfiles="http://downloads.pilot-link.org/${pkgname}-${version}.tar.bz2"
 distfiles="https://mirrors.slackware.com/slackware/slackware-14.1/source/l/pilot-link/pilot-link-${version}.tar.bz2"
 checksum=d3f99ec04016b38995fb370265200254710318105c792c017d3aaccfb97a84b2
+patch_args=-Np0
 
 # Avoid error because of deprecation
 CFLAGS="-Wno-deprecated-declarations"
diff --git a/srcpkgs/pinebookpro-uboot/template b/srcpkgs/pinebookpro-uboot/template
index db629c4a8e53..ce053ca69d80 100644
--- a/srcpkgs/pinebookpro-uboot/template
+++ b/srcpkgs/pinebookpro-uboot/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only, BSD-3-Clause"
 homepage="https://www.denx.de/wiki/U-Boot/"
 distfiles="https://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2"
 checksum=0d481bbdc05c0ee74908ec2f56a6daa53166cc6a78a0e4fac2ac5d025770a622
+patch_args=-Np0
 
 do_configure() {
 	unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
diff --git a/srcpkgs/pingus/template b/srcpkgs/pingus/template
index 8e126cf7466e..a4f8d003f7f7 100644
--- a/srcpkgs/pingus/template
+++ b/srcpkgs/pingus/template
@@ -14,6 +14,7 @@ homepage="https://pingus.seul.org/"
 distfiles="https://gitlab.com/pingus/pingus/-/archive/v${version}/pingus-v${version}.tar.gz"
 checksum=31cb2c0ecddd49dbe03535648e8c7c2971da469c52af52cdf9dc2459798342c8
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	# XXX: defining CXXFLAGS breaks dependency detection.
diff --git a/srcpkgs/pioneer/template b/srcpkgs/pioneer/template
index 40812890ec7a..c4b81ba6968d 100644
--- a/srcpkgs/pioneer/template
+++ b/srcpkgs/pioneer/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://pioneerspacesim.net"
 distfiles="https://github.com/pioneerspacesim/pioneer/archive/${version}.tar.gz"
 checksum=fcbc57374123b44161e9d15d97bd950255f654a222840894f50bfc2be716ea68
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" pioneer-modelcompiler"
diff --git a/srcpkgs/pipenightdreams/template b/srcpkgs/pipenightdreams/template
index baf9b32f95d1..a8de6c96d19a 100644
--- a/srcpkgs/pipenightdreams/template
+++ b/srcpkgs/pipenightdreams/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.libsdl.org/projects/pipenightdreams"
 distfiles="${homepage}/packages/${pkgname}-${version}.tar.bz2"
 checksum=302f8ce6e0eb32ebd779700527095cf086c2c7132d47095bae9a43c346245541
+patch_args=-Np0
 
 pre_configure() {
 	find . -type f -exec sed -i "{}" -e "s;/games/;/;g" \;
diff --git a/srcpkgs/pipewire/template b/srcpkgs/pipewire/template
index 43e3c1cfc9b4..ac6ce7fffd6f 100644
--- a/srcpkgs/pipewire/template
+++ b/srcpkgs/pipewire/template
@@ -19,6 +19,7 @@ homepage="https://pipewire.org/"
 changelog="https://gitlab.freedesktop.org/pipewire/pipewire/-/raw/master/NEWS"
 distfiles="https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/${version}/pipewire-${version}.tar.gz"
 checksum=1d9271e121a5049aef379e9bb7c50524faa6f971e668806637d7b9df1b7cab88
+patch_args=-Np0
 
 build_options="sdl2"
 
diff --git a/srcpkgs/pjproject/template b/srcpkgs/pjproject/template
index c94ead90e9de..041dd40b5047 100644
--- a/srcpkgs/pjproject/template
+++ b/srcpkgs/pjproject/template
@@ -24,6 +24,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.pjsip.org/pjsua.htm"
 distfiles="http://www.pjsip.org/release/${version}/${pkgname}-${version}.tar.bz2"
 checksum=503d0bd7f9f13dc1492ac9b71b761b1089851fbb608b9a13996edc3c42006f79
+patch_args=-Np0
 
 pre_configure() {
 	export LD="${CC}"
diff --git a/srcpkgs/plasma-framework/template b/srcpkgs/plasma-framework/template
index 8dd0abc2a5a8..8888c18fdcaa 100644
--- a/srcpkgs/plasma-framework/template
+++ b/srcpkgs/plasma-framework/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/plasma-framework"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=f128726985a21b895591bf694520dac3580e539d517c6e80230fc80166f8b9a1
+patch_args=-Np0
 
 plasma-framework-devel_package() {
 	short_desc+=" - development"
diff --git a/srcpkgs/plasma-workspace/template b/srcpkgs/plasma-workspace/template
index 049bc5c1f28e..fe6fdbf28433 100644
--- a/srcpkgs/plasma-workspace/template
+++ b/srcpkgs/plasma-workspace/template
@@ -24,6 +24,7 @@ license="GPL-2.0-or-later, GFDL-1.2-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/plasma/plasma-workspace"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=61ad5adab412c935ae156c4de3f38d1e2640752c95100ad6996b9e51e8539725
+patch_args=-Np0
 
 build_options="pipewire"
 build_options_default="pipewire"
diff --git a/srcpkgs/plex-media-player/template b/srcpkgs/plex-media-player/template
index 830d09f8579d..e2b23f24dfe6 100644
--- a/srcpkgs/plex-media-player/template
+++ b/srcpkgs/plex-media-player/template
@@ -38,6 +38,7 @@ skip_extraction="buildid-${_buildid_version}.cmake
  web-client-desktop-${_clientdesktop_version}.tar.xz.sha1
  web-client-tv-${_clienttv_version}.tar.xz
  web-client-tv-${_clienttv_version}.tar.xz.sha1"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-devel qt5-host-tools"
diff --git a/srcpkgs/plib/template b/srcpkgs/plib/template
index cde1e8335d24..c212ec3dd700 100644
--- a/srcpkgs/plib/template
+++ b/srcpkgs/plib/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-or-later"
 homepage="http://plib.sourceforge.net"
 distfiles="http://plib.sourceforge.net/dist/plib-${version}.tar.gz"
 checksum=485b22bf6fdc0da067e34ead5e26f002b76326f6371e2ae006415dea6a380a32
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/plocate/template b/srcpkgs/plocate/template
index 58252651243d..fa184f7b94c5 100644
--- a/srcpkgs/plocate/template
+++ b/srcpkgs/plocate/template
@@ -15,6 +15,7 @@ homepage="https://plocate.sesse.net/"
 changelog="https://git.sesse.net/?p=plocate;a=blob_plain;f=NEWS;hb=HEAD"
 distfiles="https://plocate.sesse.net/download/plocate-${version}.tar.gz"
 checksum=13002f065c28a93623a03d44c911a44f1659e8b1841aad80fd8a566a1200f43c
+patch_args=-Np0
 
 system_accounts="_plocate"
 
diff --git a/srcpkgs/plotutils/template b/srcpkgs/plotutils/template
index 6b64353081be..b047906f96cd 100644
--- a/srcpkgs/plotutils/template
+++ b/srcpkgs/plotutils/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="http://directory.fsf.org/wiki/Plotutils"
 distfiles="${GNU_SITE}/plotutils/plotutils-${version}.tar.gz"
 checksum=4f4222820f97ca08c7ea707e4c53e5a3556af4d8f1ab51e0da6ff1627ff433ab
+patch_args=-Np0
 
 plotutils-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/plume-creator/template b/srcpkgs/plume-creator/template
index 3c415a06cdd8..86bd3b86ee41 100644
--- a/srcpkgs/plume-creator/template
+++ b/srcpkgs/plume-creator/template
@@ -20,6 +20,7 @@ distfiles="
 checksum="
  f88f9524184bcf60dae855d6ad37899aefa39de0edd56098e93ce3b97b679e0c
  7d473ee7283bc311c7d4dd3311d1e7726df7d45fa0123894265f355b436298e1"
+patch_args=-Np0
 
 post_extract() {
 	mv -f ${wrksrc}/../debian ${wrksrc}/
diff --git a/srcpkgs/plymouth/template b/srcpkgs/plymouth/template
index 17f801fc5315..9b15ecb110a5 100644
--- a/srcpkgs/plymouth/template
+++ b/srcpkgs/plymouth/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.freedesktop.org/wiki/Software/Plymouth/"
 distfiles="${FREEDESKTOP_SITE}/plymouth/releases/$pkgname-$version.tar.xz"
 checksum=ecae257f351d098340542a5bc06de029404c24dcee87e6ebb2abd5ef117fce86
+patch_args=-Np0
 
 build_options="gtk3 pango"
 build_options_default="gtk3 pango"
diff --git a/srcpkgs/pmount/template b/srcpkgs/pmount/template
index 8a826f4e0fe6..f4bb5a0939f8 100644
--- a/srcpkgs/pmount/template
+++ b/srcpkgs/pmount/template
@@ -12,6 +12,7 @@ homepage="http://pmount.alioth.debian.org/"
 distfiles="${DEBIAN_SITE}/main/p/${pkgname}/${pkgname}_${version}.orig.tar.bz2"
 checksum=db38fc290b710e8e9e9d442da2fb627d41e13b3ee80326c15cc2595ba00ea036
 conf_files="/etc/pmount.allow"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/png++/template b/srcpkgs/png++/template
index b156d6063088..01788d947b49 100644
--- a/srcpkgs/png++/template
+++ b/srcpkgs/png++/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://www.nongnu.org/pngpp"
 distfiles="${NONGNU_SITE}/pngpp/${pkgname}-${version}.tar.gz"
 checksum=998af216ab16ebb88543fbaa2dbb9175855e944775b66f2996fc945c8444eee1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/polkit-qt5/template b/srcpkgs/polkit-qt5/template
index 7edc26624f5c..b4fdd7b240ab 100644
--- a/srcpkgs/polkit-qt5/template
+++ b/srcpkgs/polkit-qt5/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://projects.kde.org/projects/kdesupport/polkit-qt-1"
 distfiles="${KDE_SITE}/polkit-qt-1/polkit-qt-1-${version}.tar.xz"
 checksum=5b866a2954ef10ffb66156e2fe8ad0321b5528a8df2e4a91b02f5041ce5563a7
+patch_args=-Np0
 
 polkit-qt5-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/polkit/template b/srcpkgs/polkit/template
index 01d31d7dc6ae..0fc0d667eb22 100644
--- a/srcpkgs/polkit/template
+++ b/srcpkgs/polkit/template
@@ -22,6 +22,7 @@ checksum=6d54e984e7072339f0d3147179e16e34e5fe0705158f259a765d772dcf78956b
 system_accounts="polkitd"
 #replaces="polkit-elogind>=0"
 #provides="polkit-elogind-${version}_${revision}"
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/polygen/template b/srcpkgs/polygen/template
index 22811a9f7b99..20c1f27c3037 100644
--- a/srcpkgs/polygen/template
+++ b/srcpkgs/polygen/template
@@ -12,6 +12,7 @@ homepage="http://www.polygen.org"
 distfiles="${DEBIAN_SITE}/main/p/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=60dbcec8aedcbb2545202ad97d41e592f232b8fc842ea25a7998c88a385148d5
 nocross=yes
+patch_args=-Np0
 
 do_check() {
 	:
diff --git a/srcpkgs/portaudio/template b/srcpkgs/portaudio/template
index 7032f8da9d41..eaaacb9b299f 100644
--- a/srcpkgs/portaudio/template
+++ b/srcpkgs/portaudio/template
@@ -14,6 +14,7 @@ homepage="http://www.portaudio.com"
 distfiles="http://www.${pkgname}.com/archives/pa_stable_v${version%.*}_${version#*.}.tgz"
 checksum=f5a21d7dcd6ee84397446fa1fa1a0675bb2e8a4a6dceb4305a8404698d8d1513
 disable_parallel_build=yes
+patch_args=-Np0
 
 # sndio disabled by default: non-upstream patch
 build_options="sndio"
diff --git a/srcpkgs/portmidi/template b/srcpkgs/portmidi/template
index e3afd5cd8314..88906d95e148 100644
--- a/srcpkgs/portmidi/template
+++ b/srcpkgs/portmidi/template
@@ -17,6 +17,7 @@ license="MIT"
 homepage="http://portmedia.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/portmedia/${pkgname}/${version}/${pkgname}-src-${version}.zip"
 checksum=08e9a892bd80bdb1115213fb72dc29a7bf2ff108b378180586aa65f3cfd42e0f
+patch_args=-Np0
 
 post_install() {
 	ln -s libportmidi.so ${DESTDIR}/usr/lib/libporttime.so
diff --git a/srcpkgs/postfix/template b/srcpkgs/postfix/template
index 80d321fb726c..7eef653977d5 100644
--- a/srcpkgs/postfix/template
+++ b/srcpkgs/postfix/template
@@ -11,6 +11,7 @@ license="IPL-1.0, EPL-2.0"
 homepage="http://www.postfix.org/"
 distfiles="http://ftp.porcupine.org/mirrors/postfix-release/official/${pkgname}-${version}.tar.gz"
 checksum=20a805625601e7b95989220832c8fa14ce374f0711da054188f8cec6a92fd71c
+patch_args=-Np0
 
 system_accounts="postfix"
 postfix_homedir="/var/spool/postfix"
diff --git a/srcpkgs/postgresql/template b/srcpkgs/postgresql/template
index 3167e0657fed..f638aa7642e9 100644
--- a/srcpkgs/postgresql/template
+++ b/srcpkgs/postgresql/template
@@ -22,6 +22,7 @@ distfiles="https://ftp.postgresql.org/pub/source/v${version}/${pkgname}-${versio
 checksum=3d32cd101025a0556813397c69feff3df3d63736adb8adeaf365c522f39f2930
 # initdb fails on github actions, works locally with xbps-uunshare
 make_check=ci-skip
+patch_args=-Np0
 
 conf_files="
 	/etc/default/${pkgname}
diff --git a/srcpkgs/postgresql12/template b/srcpkgs/postgresql12/template
index 02b9e6b1f794..5450b7828739 100644
--- a/srcpkgs/postgresql12/template
+++ b/srcpkgs/postgresql12/template
@@ -23,6 +23,7 @@ homepage="https://www.postgresql.org"
 changelog="https://www.postgresql.org/docs/current/release-${version//./-}.html"
 distfiles="https://ftp.postgresql.org/pub/source/v${version}/postgresql-${version}.tar.bz2"
 checksum=8490741f47c88edc8b6624af009ce19fda4dc9b31c4469ce2551d84075d5d995
+patch_args=-Np0
 
 conf_files="
  /${_prefix}/etc/default/postgresql
diff --git a/srcpkgs/postgresql13/template b/srcpkgs/postgresql13/template
index be54f0bafe4c..1757cac0a3a5 100644
--- a/srcpkgs/postgresql13/template
+++ b/srcpkgs/postgresql13/template
@@ -23,6 +23,7 @@ homepage="https://www.postgresql.org"
 changelog="https://www.postgresql.org/docs/current/release-${version//./-}.html"
 distfiles="https://ftp.postgresql.org/pub/source/v${version}/postgresql-${version}.tar.bz2"
 checksum=3cd9454fa8c7a6255b6743b767700925ead1b9ab0d7a0f9dcb1151010f8eb4a1
+patch_args=-Np0
 
 conf_files="
  /${_prefix}/etc/default/postgresql
diff --git a/srcpkgs/povray/template b/srcpkgs/povray/template
index 30a2baab2039..20f0417c2681 100644
--- a/srcpkgs/povray/template
+++ b/srcpkgs/povray/template
@@ -20,6 +20,7 @@ checksum=53d11ebd2972fc452af168a00eb83aefb61387662c10784e81b63e44aa575de4
 nocross="Builds fail on ARM architectures
  Logs are at https://travis-ci.org/void-linux/void-packages/builds/412583835."
 LDFLAGS+=" -Wl,-z,stack-size=1048576"
+patch_args=-Np0
 
 pre_configure() {
 	cd $wrksrc/unix
diff --git a/srcpkgs/powerpc-utils/template b/srcpkgs/powerpc-utils/template
index e975d94658a0..f33782a127da 100644
--- a/srcpkgs/powerpc-utils/template
+++ b/srcpkgs/powerpc-utils/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/ibm-power-utilities/powerpc-utils"
 distfiles="https://github.com/ibm-power-utilities/powerpc-utils/archive/v${version}.tar.gz"
 checksum=bb48758bca3b9d056141b522e700218ee4e814b517aadf5a01f53b970ad1d3c3
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --with-librtas ac_cv_lib_rtasevent_parse_rtas_event=yes"
diff --git a/srcpkgs/ppp/template b/srcpkgs/ppp/template
index 8f597b56516f..c59d266437f4 100644
--- a/srcpkgs/ppp/template
+++ b/srcpkgs/ppp/template
@@ -25,6 +25,7 @@ conf_files="
  /etc/ppp/options
  /etc/ppp/chap-secrets
  /etc/ppp/pap-secrets"
+patch_args=-Np0
 
 do_configure() {
 	./configure --prefix=/usr --cc="${CC}" --cflags="${CFLAGS}"
diff --git a/srcpkgs/pps-tools/template b/srcpkgs/pps-tools/template
index 2227ed811c0d..459a701ff5da 100644
--- a/srcpkgs/pps-tools/template
+++ b/srcpkgs/pps-tools/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://linuxpps.org/"
 distfiles="https://github.com/ago/pps-tools/archive/v${version}.tar.gz"
 checksum=1a7efd66152e5439b69143f1f380b40ac5decbbbef516b37a017410b8ba7dff4
+patch_args=-Np0
 
 pps-tools-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/ppsspp/template b/srcpkgs/ppsspp/template
index eaf14bc7cf14..eee3c9fe1a1a 100644
--- a/srcpkgs/ppsspp/template
+++ b/srcpkgs/ppsspp/template
@@ -36,6 +36,7 @@ checksum="503f046fa68e4be24d08822b0aa2280e653ad513d9a12c77a59809467b95c516
  f8a03906135fb6f2932b80b7ef5991f39ccac46b36ec3690776fb38c69775c3d
  20fe5dbd7a64f7a8fdbaeb81f8dd485df61121c5054e0f7f917c6193f209ff2e
  6819f0984fa647f69a74831a2333859a07099f64098ce58c35d8604d19532d3d"
+patch_args=-Np0
 
 # ppsspp always tries to compile x86 unittest
 # https://gist.github.com/Johnnynator/e18d59274451cff890b7235009d2e93d
diff --git a/srcpkgs/pptpclient/template b/srcpkgs/pptpclient/template
index 3761f308658d..4b75b7dd481b 100644
--- a/srcpkgs/pptpclient/template
+++ b/srcpkgs/pptpclient/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://pptpclient.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pptpclient/files/pptp-${version}.tar.gz"
 checksum=82492db8e487ce73b182ee7f444251d20c44f5c26d6e96c553ec7093aefb5af4
+patch_args=-Np0
 
 pre_build() {
 	sed -i Makefile \
diff --git a/srcpkgs/projectlibre/template b/srcpkgs/projectlibre/template
index 4f6d94cef759..9bac53e4496b 100644
--- a/srcpkgs/projectlibre/template
+++ b/srcpkgs/projectlibre/template
@@ -9,6 +9,7 @@ license="CPAL-1.0"
 homepage="https://www.projectlibre.com/"
 distfiles="${SOURCEFORGE_SITE}/projectlibre/${version}/projectlibre-${version}.tar.gz"
 checksum=58160173ecb384d988a398b7fe5400fc9667209aab2dedc21f5445f4f88f09c4
+patch_args=-Np0
 
 do_install() {
 	_dest="usr/share/projectlibre"
diff --git a/srcpkgs/proot/template b/srcpkgs/proot/template
index bf03af65a909..de493094767c 100644
--- a/srcpkgs/proot/template
+++ b/srcpkgs/proot/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://proot-me.github.io"
 distfiles="https://github.com/proot-me/PRoot/archive/v${version}.tar.gz"
 checksum=ce0a3baca8312613bd10f65bb436a3aaa28e1034f498a22c35ad0693600e01dd
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/protobuf-c/template b/srcpkgs/protobuf-c/template
index ab3915524c66..cb483c410441 100644
--- a/srcpkgs/protobuf-c/template
+++ b/srcpkgs/protobuf-c/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/protobuf-c/protobuf-c"
 distfiles="${homepage}/releases/download/v${version}/protobuf-c-${version}.tar.gz"
 checksum=22956606ef50c60de1fabc13a78fbc50830a0447d780467d3c519f84ad527e78
+patch_args=-Np0
 
 # buildprocess calls compiler while building, disable it on cross build
 build_options="protoc"
diff --git a/srcpkgs/prototype/template b/srcpkgs/prototype/template
index 03d8f26c39be..653e15089878 100644
--- a/srcpkgs/prototype/template
+++ b/srcpkgs/prototype/template
@@ -9,6 +9,7 @@ license="Public Domain"
 homepage="https://github.com/ptitSeb/prototype"
 distfiles="https://github.com/ptitSeb/prototype/archive/v${version}.tar.gz"
 checksum=400f8a5c727c9feaa6b48b65c23c312db41dd238af9526659bf3342346c05af6
+patch_args=-Np0
 
 CXXFLAGS="-Wno-write-strings"
 
diff --git a/srcpkgs/psensor/template b/srcpkgs/psensor/template
index 00cf7ba46a69..b4841eed5884 100644
--- a/srcpkgs/psensor/template
+++ b/srcpkgs/psensor/template
@@ -16,6 +16,7 @@ changelog="https://gitlab.com/jeanfi/psensor/-/raw/master/NEWS"
 distfiles="https://wpitchoune.net/${pkgname}/files/${pkgname}-${version}.tar.gz"
 checksum=084f785d169f533d3010e50c5933436ed427afc70d41740b762f1db5034833ab
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ -z "$CROSS_BUILD" ]; then
 	hostmakedepends+=" help2man"
diff --git a/srcpkgs/ptii/template b/srcpkgs/ptii/template
index 572d59daad4d..a0c21edea43c 100644
--- a/srcpkgs/ptii/template
+++ b/srcpkgs/ptii/template
@@ -10,5 +10,6 @@ license="WTFPL"
 homepage="http://git.z3bra.org/cgit.cgi/ptii/"
 distfiles="https://sources.voidlinux.de/ptii-${version}/ptii-${version}.tar.bz2"
 checksum=2f130417251938c9947293f4df07b6db37909e03d4f600e0af025d1ae6a02d26
+patch_args=-Np0
 
 LDFLAGS="-lpthread"
diff --git a/srcpkgs/pugixml/template b/srcpkgs/pugixml/template
index 45d0d36a67b7..c34c9d86dde8 100644
--- a/srcpkgs/pugixml/template
+++ b/srcpkgs/pugixml/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://pugixml.org/"
 distfiles="http://github.com/zeux/pugixml/releases/download/v${version}/pugixml-${version}.tar.gz"
 checksum=8ddf57b65fb860416979a3f0640c2ad45ddddbbafa82508ef0a0af3ce7061716
+patch_args=-Np0
 
 post_install() {
 	tail -22 readme.txt > LICENSE
diff --git a/srcpkgs/pulseview/template b/srcpkgs/pulseview/template
index 83ce80bc39d9..b6e099c7b684 100644
--- a/srcpkgs/pulseview/template
+++ b/srcpkgs/pulseview/template
@@ -15,5 +15,6 @@ license="GPL-3"
 homepage="https://sigrok.org/"
 distfiles="https://sigrok.org/download/source/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=f042f77a3e1b35bf30666330e36ec38fab8d248c3693c37b7e35d401c3bfabcb
+patch_args=-Np0
 
 CXXFLAGS+=" -fext-numeric-literals"
diff --git a/srcpkgs/putty/template b/srcpkgs/putty/template
index e4efe58debd4..c87cbf5b6098 100644
--- a/srcpkgs/putty/template
+++ b/srcpkgs/putty/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://www.chiark.greenend.org.uk/~sgtatham/putty/"
 distfiles="http://the.earth.li/~sgtatham/putty/latest/putty-${version}.tar.gz"
 checksum=d3173b037eddbe9349abe978101277b4ba9f9959e25dedd44f87e7b85cc8f9f5
+patch_args=-Np0
 
 CFLAGS="-Wno-error"
 
diff --git a/srcpkgs/pvoc/template b/srcpkgs/pvoc/template
index da23784124aa..7d27e4d71084 100644
--- a/srcpkgs/pvoc/template
+++ b/srcpkgs/pvoc/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://quitte.de/dsp/pvoc.html"
 distfiles="http://quitte.de/dsp/pvoc_${version}.tar.gz"
 checksum=d519d416049143cb2c4775feae639021b5693f39e27e99b1f036392580baa32d
+patch_args=-Np0
 
 pre_build() {
 	sed -i "s@-O6.\+@${CFLAGS}@" Makefile
diff --git a/srcpkgs/pwnat/template b/srcpkgs/pwnat/template
index a1e9f92078dc..2fe12805a70a 100644
--- a/srcpkgs/pwnat/template
+++ b/srcpkgs/pwnat/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="http://samy.pl/pwnat/"
 distfiles="https://github.com/samyk/pwnat/archive/${_githash}.tar.gz"
 checksum=365da981ba1a39d7e3c8427fbcd9e7fcd3dd16cd30ae7e3b0aca50511fd8e1b1
+patch_args=-Np0
 
 do_configure() {
 	sed -i 's#sys/unistd.h#unistd.h#' $(find -name '*.[ch]')
diff --git a/srcpkgs/pygtk/template b/srcpkgs/pygtk/template
index 41554b81763a..ca12604df127 100644
--- a/srcpkgs/pygtk/template
+++ b/srcpkgs/pygtk/template
@@ -20,6 +20,7 @@ distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.bz2"
 checksum=cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5363e0f82c896e649f206912
 lib32disabled=yes
 python_version=2
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/pymol/template b/srcpkgs/pymol/template
index dfb9441f22a1..fe0fb1faa350 100644
--- a/srcpkgs/pymol/template
+++ b/srcpkgs/pymol/template
@@ -17,6 +17,7 @@ distfiles="https://github.com/schrodinger/pymol-open-source/archive/v${version}.
 checksum="5ede4ce2e8f53713c5ee64f5905b2d29bf01e4391da7e536ce8909d6b9116581
  0ea81faaf336becc669a193777d0dca55475d303d1236b57df25cf67ff7c2bcd"
 skip_extraction="${pkgname}.png"
+patch_args=-Np0
 
 export PREFIX_PATH="${XBPS_CROSS_BASE}/usr"
 # PREFIX_PATH isn't used for the py3 include path
diff --git a/srcpkgs/pyside2-tools/template b/srcpkgs/pyside2-tools/template
index 35d353aba95d..b7559676933a 100644
--- a/srcpkgs/pyside2-tools/template
+++ b/srcpkgs/pyside2-tools/template
@@ -17,6 +17,7 @@ homepage="https://wiki.qt.io/Qt_for_Python/Shiboken"
 distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
 checksum=b306504b0b8037079a8eab772ee774b9e877a2d84bab2dbefbe4fa6f83941418
 python_version=3
+patch_args=-Np0
 
 if [ ${CROSS_BUILD} ]; then
 	hostmakedepends+=" qt5-qmake qt5-host-tools"
diff --git a/srcpkgs/python-M2Crypto/template b/srcpkgs/python-M2Crypto/template
index 4c684d18f576..ac5752871e29 100644
--- a/srcpkgs/python-M2Crypto/template
+++ b/srcpkgs/python-M2Crypto/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://gitlab.com/m2crypto/m2crypto/"
 distfiles="${PYPI_SITE}/M/M2Crypto/M2Crypto-${version}.tar.gz"
 checksum=4c6ad45ffb88670c590233683074f2440d96aaccb05b831371869fc387cbd127
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENCE
diff --git a/srcpkgs/python-coverage/template b/srcpkgs/python-coverage/template
index 332e7baa3b7a..99b9a3c07ea3 100644
--- a/srcpkgs/python-coverage/template
+++ b/srcpkgs/python-coverage/template
@@ -14,6 +14,7 @@ homepage="https://bitbucket.org/ned/coveragepy"
 distfiles="${PYPI_SITE}/c/coverage/coverage-${version}.tar.gz"
 checksum=77afca04240c40450c331fa796b3eab6f1e15c5ecf8bf2b8bee9706cd5452fef
 alternatives="coverage:coverage:/usr/bin/coverage2"
+patch_args=-Np0
 
 python3-coverage_package() {
 	depends="python3-setuptools"
diff --git a/srcpkgs/python-docutils/template b/srcpkgs/python-docutils/template
index 02232f31a266..f2843fc47cf8 100644
--- a/srcpkgs/python-docutils/template
+++ b/srcpkgs/python-docutils/template
@@ -14,6 +14,7 @@ homepage="http://docutils.sourceforge.net"
 distfiles="${PYPI_SITE}/d/docutils/docutils-${version}.tar.gz"
 checksum=c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc
 checkdepends+="$depends python3-Pygments"
+patch_args=-Np0
 
 alternatives="
  docutils:rst2html:/usr/bin/rst2html.py2
diff --git a/srcpkgs/python-evdev/template b/srcpkgs/python-evdev/template
index ded33276800d..40b60c094724 100644
--- a/srcpkgs/python-evdev/template
+++ b/srcpkgs/python-evdev/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/gvalkov/python-evdev"
 distfiles="https://github.com/gvalkov/python-evdev/archive/v${version}.tar.gz"
 checksum=f788584510620251c6a6c68802935b71c4b474df99b87ee223e18b84dd1719a6
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python-nose/template b/srcpkgs/python-nose/template
index 95f3607a40aa..e0ee55d59fe8 100644
--- a/srcpkgs/python-nose/template
+++ b/srcpkgs/python-nose/template
@@ -15,6 +15,7 @@ homepage="https://github.com/nose-devs/nose"
 distfiles="${PYPI_SITE}/n/nose/nose-${version}.tar.gz"
 checksum=f1bffef9cbc82628f6e7d7b40d7e255aefaa1adb6a1b1d26c69a8b79e6208a98
 alternatives="nose:nosetests:/usr/bin/nosetests2"
+patch_args=-Np0
 
 python3-nose_package() {
 	pycompile_module="nose"
diff --git a/srcpkgs/python-pip/template b/srcpkgs/python-pip/template
index 096aa7b63b22..aca1c8836df7 100644
--- a/srcpkgs/python-pip/template
+++ b/srcpkgs/python-pip/template
@@ -13,6 +13,7 @@ homepage="https://pip.pypa.io/"
 changelog="https://raw.githubusercontent.com/pypa/pip/master/NEWS.rst"
 distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
 checksum=6773934e5f5fc3eaa8c5a44949b5b924fc122daa0a8aa9f80c835b4ca2a543fc
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/python-requests/template b/srcpkgs/python-requests/template
index bde0b03b9ef9..406e20f881ba 100644
--- a/srcpkgs/python-requests/template
+++ b/srcpkgs/python-requests/template
@@ -13,6 +13,7 @@ homepage="https://python-requests.org/"
 changelog="https://raw.githubusercontent.com/psf/requests/master/HISTORY.md"
 distfiles="${PYPI_SITE}/r/requests/requests-${version}.tar.gz"
 checksum=27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804
+patch_args=-Np0
 
 post_patch() {
 	vsed -i '/certifi/d' setup.py
diff --git a/srcpkgs/python/template b/srcpkgs/python/template
index fc52e87228ea..1412f66d4d62 100644
--- a/srcpkgs/python/template
+++ b/srcpkgs/python/template
@@ -17,6 +17,7 @@ license="Python-2.0"
 homepage="https://www.python.org"
 distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"
 checksum=b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43
+patch_args=-Np0
 
 alternatives="
  python:idle:/usr/bin/idle2.7
diff --git a/srcpkgs/python3-PyBrowserID/template b/srcpkgs/python3-PyBrowserID/template
index a8cdd9230d3c..f8b86f119e25 100644
--- a/srcpkgs/python3-PyBrowserID/template
+++ b/srcpkgs/python3-PyBrowserID/template
@@ -14,6 +14,7 @@ license="MPL-2.0"
 homepage="https://github.com/mozilla/PyBrowserID"
 distfiles="${PYPI_SITE}/P/PyBrowserID/PyBrowserID-${version}.tar.gz"
 checksum=6c227669e87cc25796ae76f6a0ef65025528c8ad82d352679fa9a3e5663a71e3
+patch_args=-Np0
 
 do_check() {
 	# needs network access (persona.org has been shut down anyway)
diff --git a/srcpkgs/python3-PyQt5/template b/srcpkgs/python3-PyQt5/template
index a704d41698bc..4b36464197e8 100644
--- a/srcpkgs/python3-PyQt5/template
+++ b/srcpkgs/python3-PyQt5/template
@@ -23,6 +23,7 @@ checksum=2a69597e0dd11caabe75fae133feca66387819fc9bc050f547e5551bce97e5be
 lib32disabled=yes
 CFLAGS=-I$XBPS_CROSS_BASE/usr/include/python$py3_ver
 CXXFLAGS="$CFLAGS"
+patch_args=-Np0
 
 export INCPATH=$XBPS_CROSS_BASE/usr/include/python$py3_ver
 
diff --git a/srcpkgs/python3-aiohttp/template b/srcpkgs/python3-aiohttp/template
index d8b4761c8b9b..65465ff7b6ad 100644
--- a/srcpkgs/python3-aiohttp/template
+++ b/srcpkgs/python3-aiohttp/template
@@ -14,6 +14,7 @@ license="Apache-2.0"
 homepage="https://aiohttp.readthedocs.io/"
 distfiles="${PYPI_SITE}/a/aiohttp/aiohttp-${version}.tar.gz"
 checksum=5d84ecc73141d0a0d61ece0742bb7ff5751b0657dab8405f899d3ceb104cc7de
+patch_args=-Np0
 
 post_patch() {
 	# use system http-parser
diff --git a/srcpkgs/python3-boltons/template b/srcpkgs/python3-boltons/template
index a4c71fb7713d..c08065036300 100644
--- a/srcpkgs/python3-boltons/template
+++ b/srcpkgs/python3-boltons/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/mahmoud/boltons"
 distfiles="https://github.com/mahmoud/boltons/archive/${version}.tar.gz"
 checksum=f5b63fba62bed021c5086e43b4cfdaf6c8396a3ae1ccdcb549b4eb2f36f8a794
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-cli_helpers/template b/srcpkgs/python3-cli_helpers/template
index 91e22d2471c2..ab7008da0cc9 100644
--- a/srcpkgs/python3-cli_helpers/template
+++ b/srcpkgs/python3-cli_helpers/template
@@ -15,6 +15,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/dbcli/cli_helpers"
 distfiles="${PYPI_SITE}/c/cli_helpers/cli_helpers-${version}.tar.gz"
 checksum=98db22eaa86827d99ee6af9f5f3923142d04df256425204530842b032849a165
+patch_args=-Np0
 
 do_check() {
 	python3 -m pytest
diff --git a/srcpkgs/python3-curtsies/template b/srcpkgs/python3-curtsies/template
index 0d03da5b9b3d..aa224291ddba 100644
--- a/srcpkgs/python3-curtsies/template
+++ b/srcpkgs/python3-curtsies/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/thomasballinger/curtsies"
 distfiles="${PYPI_SITE}/c/curtsies/curtsies-${version}.tar.gz"
 checksum=89c802ec051d01dec6fc983e9856a3706e4ea8265d2940b1f6d504a9e26ed3a9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-entrypoints/template b/srcpkgs/python3-entrypoints/template
index eb3318811dc6..89093839963c 100644
--- a/srcpkgs/python3-entrypoints/template
+++ b/srcpkgs/python3-entrypoints/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/takluyver/entrypoints"
 distfiles="https://github.com/takluyver/entrypoints/archive/${version}.tar.gz"
 checksum=f26eddc371e37d8e9f6663b77524d6731567f005bd1e4ac950c0e33c48fbc065
+patch_args=-Np0
 
 pre_build() {
 	vsed -i "s|@VERSION@|${version}|" setup.py
diff --git a/srcpkgs/python3-gevent/template b/srcpkgs/python3-gevent/template
index 4ec0c1ce42ea..e1ba65252141 100644
--- a/srcpkgs/python3-gevent/template
+++ b/srcpkgs/python3-gevent/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.gevent.org/"
 distfiles="https://github.com/gevent/gevent/archive/${version}.tar.gz"
 checksum=1fc6579fee04c0bc348cb1dcbc10f822129e6af7dcf2c52c24f1497cea3bd45c
+patch_args=-Np0
 
 post_extract() {
 	# purge bundled dependencies
diff --git a/srcpkgs/python3-gitchangelog/template b/srcpkgs/python3-gitchangelog/template
index 348dc2c83b6d..8c3a5cfb5aa9 100644
--- a/srcpkgs/python3-gitchangelog/template
+++ b/srcpkgs/python3-gitchangelog/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/vaab/gitchangelog"
 distfiles="${PYPI_SITE}/g/gitchangelog/gitchangelog-${version}.tar.gz"
 checksum=3d8d6a730450fbd5b0a9bc58d0dd3e269c967d7eb4fece0c5cff4372a3f77421
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-grpcio/template b/srcpkgs/python3-grpcio/template
index d96e11f9c149..654abdcfada3 100644
--- a/srcpkgs/python3-grpcio/template
+++ b/srcpkgs/python3-grpcio/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://grpc.io"
 distfiles="${PYPI_SITE}/g/grpcio/grpcio-${version}.tar.gz"
 checksum=abbf9c8c3df4d5233d5888c6cfa85c1bb68a6923749bd4dd1abc6e1e93986f17
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/python3-mygpoclient/template b/srcpkgs/python3-mygpoclient/template
index 6ed17293703c..5aa34ad58d15 100644
--- a/srcpkgs/python3-mygpoclient/template
+++ b/srcpkgs/python3-mygpoclient/template
@@ -13,6 +13,7 @@ homepage="https://github.com/gpodder/mygpoclient"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=65fcb3ab220a2ba2d32a77f969b423a2f663413b6c485b7b02e5a955b28e68d2
 conflicts="python-mygpoclient>=0"
+patch_args=-Np0
 
 pre_build() {
 	vsed -i '/share\/man\/man1/d' setup.py
diff --git a/srcpkgs/python3-nose2/template b/srcpkgs/python3-nose2/template
index d1f95c3e3736..ac13621690a6 100644
--- a/srcpkgs/python3-nose2/template
+++ b/srcpkgs/python3-nose2/template
@@ -13,6 +13,7 @@ homepage="https://github.com/nose-devs/nose2"
 distfiles="${PYPI_SITE}/n/nose2/nose2-${version}.tar.gz"
 checksum=9052f2b46807b63d9bdf68e0768da1f8386368889b50043fd5d0889c470258f3
 conflicts="python-nose2>=0"
+patch_args=-Np0
 
 post_install() {
 	vlicense license.txt
diff --git a/srcpkgs/python3-pdfminer.six/template b/srcpkgs/python3-pdfminer.six/template
index 753dbfb9b816..bb75c36e196b 100644
--- a/srcpkgs/python3-pdfminer.six/template
+++ b/srcpkgs/python3-pdfminer.six/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/pdfminer/pdfminer.six"
 distfiles="${homepage}/archive/refs/tags/${version}.tar.gz"
 checksum=0e9c8b0a9c40c2aee044c3091ad6b18b5e6279722e64b6b975f8aedc26bf8e38
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-pikepdf/template b/srcpkgs/python3-pikepdf/template
index c2ff79e138fa..21329296c6cd 100644
--- a/srcpkgs/python3-pikepdf/template
+++ b/srcpkgs/python3-pikepdf/template
@@ -14,6 +14,7 @@ license="MPL-2.0"
 homepage="https://github.com/pikepdf/pikepdf"
 distfiles="${PYPI_SITE}/p/pikepdf/pikepdf-${version}.tar.gz"
 checksum=5ff35499b1ae7b181277f78ce5b1bcc8d3009182bb389917791c5dc811fcc8e4
+patch_args=-Np0
 
 pre_build() {
 	vsed -e '/setuptools_scm_git_archive/d' -i setup.py
diff --git a/srcpkgs/python3-pip/template b/srcpkgs/python3-pip/template
index 4dbc22b73b49..b30bc6334120 100644
--- a/srcpkgs/python3-pip/template
+++ b/srcpkgs/python3-pip/template
@@ -15,6 +15,7 @@ distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
 checksum=eb5df6b9ab0af50fe1098a52fd439b04730b6e066887ff7497357b9ebd19f79b
 # Tests have unpackaged dependencies
 make_check=no
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/python3-pwntools/template b/srcpkgs/python3-pwntools/template
index 76ec9944221e..753c28f1c68d 100644
--- a/srcpkgs/python3-pwntools/template
+++ b/srcpkgs/python3-pwntools/template
@@ -17,6 +17,7 @@ license="MIT, BSD-2-Clause"
 homepage="https://github.com/Gallopsled/pwntools"
 distfiles="${PYPI_SITE}/p/pwntools/pwntools-${version}.tar.gz"
 checksum=97f945aed7ffa9d3e87f8759df83a5eac6dc2112907f35d0aee66a9bf62fd8eb
+patch_args=-Np0
 
 post_install() {
 	rm -f ${DESTDIR}/usr/lib/python*/site-packages/*.md
diff --git a/srcpkgs/python3-pylibgen/template b/srcpkgs/python3-pylibgen/template
index 4d77619ae935..d59a68eca8ae 100644
--- a/srcpkgs/python3-pylibgen/template
+++ b/srcpkgs/python3-pylibgen/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/JoshuaRLi/pylibgen"
 distfiles="${PYPI_SITE}/p/pylibgen/pylibgen-${version}.tar.gz"
 checksum=87b28a27fa7c1912e2b38020262dd6086b292d670b0c08d76baecbcd7678b9ee
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-pyside2/template b/srcpkgs/python3-pyside2/template
index 6040ef39243c..c0387c4d6d04 100644
--- a/srcpkgs/python3-pyside2/template
+++ b/srcpkgs/python3-pyside2/template
@@ -25,6 +25,7 @@ license="LGPL-3.0-or-later"
 homepage="https://wiki.qt.io/Qt_for_Python"
 distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
 checksum=b306504b0b8037079a8eab772ee774b9e877a2d84bab2dbefbe4fa6f83941418
+patch_args=-Np0
 
 build_options="webengine"
 desc_option_webengine="Build Qt5 WebEngine bindings"
diff --git a/srcpkgs/python3-repoze.sphinx.autointerface/template b/srcpkgs/python3-repoze.sphinx.autointerface/template
index 18141a5bd46a..9feb6d5a2739 100644
--- a/srcpkgs/python3-repoze.sphinx.autointerface/template
+++ b/srcpkgs/python3-repoze.sphinx.autointerface/template
@@ -13,6 +13,7 @@ license="BSD-4-Clause"
 homepage="https://github.com/repoze/repoze.sphinx.autointerface/"
 distfiles="${PYPI_SITE}/r/repoze.sphinx.autointerface/repoze.sphinx.autointerface-${version}.tar.gz"
 checksum=8ef0383276ab722efb1e4a6523726262058dfd82615ccf7e5004aee3fe8ecc23
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/python3-telegram/template b/srcpkgs/python3-telegram/template
index 13cc66ab33c7..a865f4799086 100644
--- a/srcpkgs/python3-telegram/template
+++ b/srcpkgs/python3-telegram/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/alexander-akhmetov/python-telegram"
 distfiles="https://github.com/alexander-akhmetov/python-telegram/archive/${version}.tar.gz"
 checksum=11b0a2387bae642eb7f134fe35b9ef67b8183aa961412bcdfa86ff404beed897
+patch_args=-Np0
 
 post_extract() {
 	rm -r telegram/lib
diff --git a/srcpkgs/python3/template b/srcpkgs/python3/template
index 40c6cc1ef8e5..6bcb10bfc66d 100644
--- a/srcpkgs/python3/template
+++ b/srcpkgs/python3/template
@@ -18,6 +18,7 @@ license="Python-2.0"
 homepage="https://www.python.org"
 distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"
 checksum=0c5a140665436ec3dbfbb79e2dfb6d192655f26ef4a29aeffcb6d1820d716d83
+patch_args=-Np0
 
 alternatives="
  python:idle:/usr/bin/idle${version%.*}
diff --git a/srcpkgs/qca-qt5/template b/srcpkgs/qca-qt5/template
index 9e1cd59b8395..a9effca5f71d 100644
--- a/srcpkgs/qca-qt5/template
+++ b/srcpkgs/qca-qt5/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="https://userbase.kde.org/QCA"
 distfiles="${KDE_SITE}/qca/${version}/qca-${version}.tar.xz"
 checksum=c13851109abefc4623370989fae3a745bf6b1acb3c2a13a8958539823e974e4b
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/qdirstat/template b/srcpkgs/qdirstat/template
index efed1890b409..05e775e52c3a 100644
--- a/srcpkgs/qdirstat/template
+++ b/srcpkgs/qdirstat/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/shundhammer/qdirstat"
 distfiles="https://github.com/shundhammer/qdirstat/archive/${version}.tar.gz"
 checksum=fb40181972092d80994d3d04802c43298b70a21f1e636d5490a2bfbd1cb407d9
+patch_args=-Np0
 
 post_install() {
 	vman man/qdirstat.1
diff --git a/srcpkgs/qingy/template b/srcpkgs/qingy/template
index 02c89bd1ccae..207775603de2 100644
--- a/srcpkgs/qingy/template
+++ b/srcpkgs/qingy/template
@@ -15,6 +15,7 @@ homepage="http://qingy.sourceforge.net"
 #distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 distfiles="https://sources.voidlinux.org/qingy-1.0.0/qingy-1.0.0.tar.bz2"
 checksum=de4b4b398d5ba81ab2544729864676a04ddc6ae818b357ee09a8770293740cd3
+patch_args=-Np0
 
 make_dirs="/var/lib/misc 0755 root root"
 
diff --git a/srcpkgs/qmmp/template b/srcpkgs/qmmp/template
index d8b8ec1d0d7a..c27e8e39090b 100644
--- a/srcpkgs/qmmp/template
+++ b/srcpkgs/qmmp/template
@@ -21,6 +21,7 @@ license="GPL-3.0-or-later"
 homepage="http://qmmp.ylsoftware.com"
 distfiles="http://qmmp.ylsoftware.com/files/${pkgname}-${version}.tar.bz2"
 checksum=f513774357836ad4983fa216c84cf5db634284faebec48c461733838917fd664
+patch_args=-Np0
 
 qmmp-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/qpdfview/template b/srcpkgs/qpdfview/template
index 19cb2bb34ad9..4aa5122a1934 100644
--- a/srcpkgs/qpdfview/template
+++ b/srcpkgs/qpdfview/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://launchpad.net/qpdfview"
 distfiles="https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-${version}.tar.gz"
 checksum=cc642e7fa74029373ca9b9fbc29adc4883f8b455130a78ad54746d6844a0396c
+patch_args=-Np0
 
 pre_configure() {
 	lrelease qpdfview.pro
diff --git a/srcpkgs/qscintilla-qt5/template b/srcpkgs/qscintilla-qt5/template
index 5bc6c8530757..1d68d8f70320 100644
--- a/srcpkgs/qscintilla-qt5/template
+++ b/srcpkgs/qscintilla-qt5/template
@@ -13,6 +13,7 @@ license="GPL-3.0-only"
 homepage="https://www.riverbankcomputing.com/software/qscintilla/intro"
 distfiles="https://www.riverbankcomputing.com/static/Downloads/QScintilla/${version}/QScintilla_gpl-${version}.tar.gz"
 checksum=029bdc476a069fda2cea3cd937ba19cc7fa614fb90578caef98ed703b658f4a1
+patch_args=-Np0
 
 qscintilla-qt5-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/qsstv/template b/srcpkgs/qsstv/template
index 73c1080fcadc..8230401d9197 100644
--- a/srcpkgs/qsstv/template
+++ b/srcpkgs/qsstv/template
@@ -14,6 +14,7 @@ homepage="http://users.telenet.be/on4qz/qsstv/"
 changelog="http://users.telenet.be/on4qz/qsstv/manual/changelog.html"
 distfiles="http://users.telenet.be/on4qz/qsstv/downloads/qsstv_${version}.tar.gz"
 checksum=177e286090c71f8a033646b39c3b6abe212cc06718c1ecc9ddc7024198cb7e40
+patch_args=-Np0
 
 post_install() {
 	vinstall icons/qsstv.png 644 usr/share/pixmaps
diff --git a/srcpkgs/qt5-fsarchiver/template b/srcpkgs/qt5-fsarchiver/template
index 46c87a9e7bdd..4eea7d4c7ec8 100644
--- a/srcpkgs/qt5-fsarchiver/template
+++ b/srcpkgs/qt5-fsarchiver/template
@@ -15,6 +15,7 @@ license="GPL-2.0-only"
 homepage="https://sourceforge.net/projects/qt4-fsarchiver"
 distfiles="${SOURCEFORGE_SITE}/qt4-fsarchiver/${pkgname}-${_realversion}.tar.gz"
 checksum=b32e02c9e1fc8038482752f5620d88b103b700ed29314bd55dcf6486f5c6f175
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/qt5-styleplugins/template b/srcpkgs/qt5-styleplugins/template
index 4399c87d86cd..33c7271cd772 100644
--- a/srcpkgs/qt5-styleplugins/template
+++ b/srcpkgs/qt5-styleplugins/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only, LGPL-3.0-only"
 homepage="https://github.com/qt/qtstyleplugins"
 distfiles="https://github.com/qt/qtstyleplugins/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=29ec24fa8df64be161ad06d0e5af3ba1a20bfe265004f5fe4ab9f5f3abf9a5ba
+patch_args=-Np0
 
 # Cross builds fail with -fuse-ld=gold
 LDFLAGS="-Wl,-fuse-ld=bfd"
diff --git a/srcpkgs/qt5-webkit/template b/srcpkgs/qt5-webkit/template
index b2e7813cc45e..353a7e6609be 100644
--- a/srcpkgs/qt5-webkit/template
+++ b/srcpkgs/qt5-webkit/template
@@ -25,6 +25,7 @@ license="LGPL-2.1-or-later"
 homepage="https://www.qt.io/"
 distfiles="https://download.qt.io/snapshots/ci/qtwebkit/${_v}/${_snap}/src/submodules/qtwebkit-opensource-src-${_v}.tar.xz"
 checksum=9a6ed083154c7ec850081102b299afa928ca7e48bbdf2b5f3ae152425e46eb17
+patch_args=-Np0
 
 CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
 CXXFLAGS="-fpermissive -Wno-class-memaccess -Wno-redundant-move -Wno-deprecated-copy"
diff --git a/srcpkgs/qt5/template b/srcpkgs/qt5/template
index a88df53ca345..1e05f7e7ff60 100644
--- a/srcpkgs/qt5/template
+++ b/srcpkgs/qt5/template
@@ -32,6 +32,7 @@ python_version=2 #unverified
 replaces="qt5-doc<5.6.0 qt5-quick1<5.6.0 qt5-quick1-devel<5.6.0 qt5-webkit<5.6.0 qt5-webkit-devel<5.6.0
  qt5-enginio<5.7.1 qt5-enginio-devel<5.7.1 qt5-plugin-gtk<5.7.1 qt5-canvas3d<5.13.0"
 lib32mode=full
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated-declarations -Wno-class-memaccess -Wno-packed-not-aligned"
 # Required for musl libc
diff --git a/srcpkgs/qt5pas/template b/srcpkgs/qt5pas/template
index 93113c717035..56747994f4a3 100644
--- a/srcpkgs/qt5pas/template
+++ b/srcpkgs/qt5pas/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-or-later"
 homepage="https://svn.freepascal.org/svn/lazarus/trunk/lcl/interfaces/qt5/cbindings"
 distfiles="${DEBIAN_SITE}/main/libq/libqtpas/libqtpas_${version}.orig.tar.xz"
 checksum=fcc5f695d60d5f72bf501b2fa779e8a1a2636c8d991270b5b3fef3d0e990365c
+patch_args=-Np0
 
 post_install() {
 	vinstall qt5.pas 0644 usr/share/pascal/qt5
diff --git a/srcpkgs/qt6-base/template b/srcpkgs/qt6-base/template
index bb043213a360..a78f77930893 100644
--- a/srcpkgs/qt6-base/template
+++ b/srcpkgs/qt6-base/template
@@ -30,6 +30,7 @@ homepage="https://www.qt.io"
 distfiles="https://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qtbase-everywhere-src-${version}.tar.xz"
 checksum=21a8aa9f07170e047270c668c8b037536f40226db7adbc529a0b41c3a3cb3ff2
 python_version=3
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# QtSetup fails native builds if this is set
diff --git a/srcpkgs/qtav/template b/srcpkgs/qtav/template
index 0d85ec076482..b59c58a6f191 100644
--- a/srcpkgs/qtav/template
+++ b/srcpkgs/qtav/template
@@ -17,6 +17,7 @@ homepage="http://www.qtav.org"
 changelog="https://raw.githubusercontent.com/wang-bin/QtAV/master/Changelog"
 distfiles="https://github.com/wang-bin/QtAV/archive/v${version}.tar.gz"
 checksum=a493d54d105b32c526f05188e4d7a8cf3508ecac697aae088721ffad20982288
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/bin
diff --git a/srcpkgs/qtcreator/template b/srcpkgs/qtcreator/template
index e46558070581..0439190aee41 100644
--- a/srcpkgs/qtcreator/template
+++ b/srcpkgs/qtcreator/template
@@ -19,6 +19,7 @@ distfiles="https://download.qt.io/official_releases/qtcreator/${version%.*}/${ve
 checksum=5ca9457987e7af0af929c310cc995496388076b6a0b9c429828c60bf0eec1b4d
 replaces="qtcreator-data>=0"
 python_version=3
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" libexecinfo-devel"
diff --git a/srcpkgs/qtikz/template b/srcpkgs/qtikz/template
index 5ec999d3aae5..53aab78b8713 100644
--- a/srcpkgs/qtikz/template
+++ b/srcpkgs/qtikz/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.hackenberger.at/blog/ktikz-editor-for-the-tikz-language/"
 distfiles="https://github.com/fhackenberger/ktikz/archive/${version}.tar.gz"
 checksum=03f6ee335ca1abb23216870a6df71406ab44a4899875d4695b8594cfb789a127
+patch_args=-Np0
 
 post_patch() {
 	vsed -e '/include.*QPainter/a #include <QtGui/QPainterPath>' \
diff --git a/srcpkgs/qtkeychain-qt5/template b/srcpkgs/qtkeychain-qt5/template
index 4e4c982850a1..8b32a4cb72f8 100644
--- a/srcpkgs/qtkeychain-qt5/template
+++ b/srcpkgs/qtkeychain-qt5/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/frankosterfeld/qtkeychain"
 distfiles="https://github.com/frankosterfeld/${pkgname%-*}/archive/v${version}.tar.gz"
 checksum=77fc6841c1743d9e6bd499989481cd9239c21bc9bf0760d41a4f4068d2f0a49d
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-tools-devel"
diff --git a/srcpkgs/qtpass/template b/srcpkgs/qtpass/template
index cce56db19867..728711eeeef5 100644
--- a/srcpkgs/qtpass/template
+++ b/srcpkgs/qtpass/template
@@ -14,6 +14,7 @@ homepage="https://qtpass.org/"
 changelog="https://raw.githubusercontent.com/IJHack/QtPass/master/CHANGELOG.md"
 distfiles="https://github.com/IJHack/${pkgname}/archive/v${version}.tar.gz"
 checksum=7a68e1afe68462c878c212a79c40ade5ba14b72710c5e62450cf54c7b5621254
+patch_args=-Np0
 
 do_install() {
 	vbin main/qtpass
diff --git a/srcpkgs/quassel/template b/srcpkgs/quassel/template
index 47d529f56b8b..dae691d27457 100644
--- a/srcpkgs/quassel/template
+++ b/srcpkgs/quassel/template
@@ -18,6 +18,7 @@ license="GPL-2.0-only, GPL-3.0-only"
 homepage="https://www.quassel-irc.org"
 distfiles="https://quassel-irc.org/pub/quassel-${version}.tar.bz2"
 checksum=48efee9778743b1db9f44efb91d1c913104db01190c57f2ff57483c39a97e855
+patch_args=-Np0
 
 build_options="ldap"
 
diff --git a/srcpkgs/quickjs/template b/srcpkgs/quickjs/template
index a1c9f8d1c36a..42de1ba7fd9c 100644
--- a/srcpkgs/quickjs/template
+++ b/srcpkgs/quickjs/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://bellard.org/quickjs/"
 distfiles="https://bellard.org/quickjs/quickjs-${version//./-}.tar.xz"
 checksum=a45bface4c3379538dea8533878d694e289330488ea7028b105f72572fe7fe1a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args+=" CROSS_PREFIX=${XBPS_CROSS_TRIPLET}-"
diff --git a/srcpkgs/quota/template b/srcpkgs/quota/template
index 2751287061fd..9d103e08c4b3 100644
--- a/srcpkgs/quota/template
+++ b/srcpkgs/quota/template
@@ -13,6 +13,7 @@ license="GPL-2"
 homepage="https://sourceforge.net/projects/linuxquota/"
 distfiles="${SOURCEFORGE_SITE}/linuxquota/quota-tools/${pkgname}-${version}.tar.gz"
 checksum=2f3e03039f378d4f0d97acdb49daf581dcaad64d2e1ddf129495fd579fbd268d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/qv4l2/template b/srcpkgs/qv4l2/template
index 292be169c208..585527fe4716 100644
--- a/srcpkgs/qv4l2/template
+++ b/srcpkgs/qv4l2/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://linuxtv.org/"
 distfiles="https://linuxtv.org/downloads/v4l-utils/v4l-utils-${version}.tar.bz2"
 checksum=6cb60d822eeed20486a03cc23e0fc65956fbc1e85e0c1a7477f68bbd9802880d
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/rabbitmq-c/template b/srcpkgs/rabbitmq-c/template
index 95ad7a333435..ea3f0aaa3f5a 100644
--- a/srcpkgs/rabbitmq-c/template
+++ b/srcpkgs/rabbitmq-c/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/alanxz/rabbitmq-c"
 distfiles="https://github.com/alanxz/${pkgname}/archive/v${version}.tar.gz"
 checksum=6455efbaebad8891c59f274a852b75b5cc51f4d669dfc78d2ae7e6cc97fcd8c0
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE-MIT LICENSE
diff --git a/srcpkgs/racket/template b/srcpkgs/racket/template
index 1fee0a65e39d..0e0a4335986b 100644
--- a/srcpkgs/racket/template
+++ b/srcpkgs/racket/template
@@ -16,6 +16,7 @@ distfiles="http://mirror.racket-lang.org/installers/${version}/${pkgname}-${vers
 checksum=5578942066a9405fdbcad9522d08685356693f4ddd5dbe92b5273557a112b73e
 nostrip=yes
 nocross=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --enable-racket=/usr/bin/racket"
diff --git a/srcpkgs/radare2/template b/srcpkgs/radare2/template
index 39818e99e7f2..fc79ad2b3c12 100644
--- a/srcpkgs/radare2/template
+++ b/srcpkgs/radare2/template
@@ -13,6 +13,7 @@ license="LGPL-3.0-only"
 homepage="http://www.radare.org"
 distfiles="https://github.com/radareorg/radare2/archive/${version}.tar.gz"
 checksum=517dd80ebd0569f31498887338eacb92e8cf054bc4625eef8ffe9ea174c1adae
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) CFLAGS="-Os";;
diff --git a/srcpkgs/rakarrack/template b/srcpkgs/rakarrack/template
index 0d4dcc83496c..9c94f004ff2c 100644
--- a/srcpkgs/rakarrack/template
+++ b/srcpkgs/rakarrack/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://rakarrack.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=7696d27a4814b140fe651d137612ddfa1f167858eccc119e278c14dbee30eee6
+patch_args=-Np0
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/rapidjson/template b/srcpkgs/rapidjson/template
index 99d92702cc9d..2591e261b370 100644
--- a/srcpkgs/rapidjson/template
+++ b/srcpkgs/rapidjson/template
@@ -9,6 +9,7 @@ license="BSD-3-Clause, MIT"
 homepage="https://github.com/miloyip/rapidjson"
 distfiles="https://github.com/miloyip/${pkgname}/archive/v${version}.tar.gz"
 checksum=bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e
+patch_args=-Np0
 
 # class-memaccess is required by https://github.com/Tencent/rapidjson/issues/1700
 CXXFLAGS="-Wno-type-limits -Wno-error=class-memaccess -DNDEBUG"
diff --git a/srcpkgs/raptor/template b/srcpkgs/raptor/template
index 5408f6b745fb..7f0b9ad13f81 100644
--- a/srcpkgs/raptor/template
+++ b/srcpkgs/raptor/template
@@ -13,6 +13,7 @@ license="LGPL-2.1"
 homepage="http://librdf.org/raptor"
 distfiles="http://librdf.org/dist/source/raptor2-${version}.tar.gz"
 checksum=ada7f0ba54787b33485d090d3d2680533520cd4426d2f7fb4782dd4a6a1480ed
+patch_args=-Np0
 
 libraptor_package() {
 	short_desc+=" - Runtime libraries"
diff --git a/srcpkgs/rdedup/template b/srcpkgs/rdedup/template
index c392e3c0e2fc..f7b9d6760a01 100644
--- a/srcpkgs/rdedup/template
+++ b/srcpkgs/rdedup/template
@@ -12,6 +12,7 @@ license="MPL-2.0"
 homepage="https://github.com/dpc/rdedup"
 distfiles="https://github.com/dpc/rdedup/archive/rdedup-v${version}.tar.gz"
 checksum=5e7c09c40897cd2f2635e8c213c2ff0f5c4d7ceccbd22980cd4cb0a16f3dfc28
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	export HOST_CC="$BUILD_CC"
diff --git a/srcpkgs/rdis-git/template b/srcpkgs/rdis-git/template
index 5aaa5d669b7a..4d754dd49627 100644
--- a/srcpkgs/rdis-git/template
+++ b/srcpkgs/rdis-git/template
@@ -8,6 +8,7 @@ short_desc="A binary analysis tool for Linux"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3"
 homepage="https://github.com/endeav0r/rdis"
+patch_args=-Np0
 
 do_fetch() {
 	git clone git://github.com/endeav0r/rdis.git $wrksrc
diff --git a/srcpkgs/re/template b/srcpkgs/re/template
index 726ba0360748..a1dd9a76a8f4 100644
--- a/srcpkgs/re/template
+++ b/srcpkgs/re/template
@@ -16,6 +16,7 @@ homepage="https://github.com/baresip/re/"
 distfiles="https://github.com/baresip/re/archive/v${version}.tar.gz"
 checksum=43aa439b96aff75fe5768b9f9d49dea97042e42e7647df47b345465763e2f7ed
 shlib_provides="libre.so"
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	i686*) arch="i686";;
diff --git a/srcpkgs/redis/template b/srcpkgs/redis/template
index 974305ff1f0f..27d4568d1a79 100644
--- a/srcpkgs/redis/template
+++ b/srcpkgs/redis/template
@@ -11,6 +11,7 @@ homepage="https://redis.io"
 changelog="https://raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTES"
 distfiles="http://download.redis.io/releases/${pkgname}-${version}.tar.gz"
 checksum=dc2bdcf81c620e9f09cfd12e85d3bc631c897b2db7a55218fd8a65eaa37f86dd
+patch_args=-Np0
 
 system_accounts="redis"
 redis_homedir="/var/lib/redis"
diff --git a/srcpkgs/redo/template b/srcpkgs/redo/template
index b8af94ccc102..e3e8315d91f6 100644
--- a/srcpkgs/redo/template
+++ b/srcpkgs/redo/template
@@ -10,6 +10,7 @@ license="ISC"
 homepage="http://jdebp.info/Softwares/redo/"
 distfiles="http://jdebp.info/Repository/freebsd/redo-${version}.tar.gz"
 checksum=5ff21779993418cf16f5632c593e30d9a2780bfc38cef9de9ab9427154736d36
+patch_args=-Np0
 
 do_configure() {
 	./package/prepare
diff --git a/srcpkgs/refind/template b/srcpkgs/refind/template
index 49d462907523..7115017b0881 100644
--- a/srcpkgs/refind/template
+++ b/srcpkgs/refind/template
@@ -13,6 +13,7 @@ distfiles="${SOURCEFORGE_SITE}/refind/refind-src-${version}.tar.gz"
 checksum=dd58944854a42df5a2a943f15e5dcfd995808f28580df96ad39d68fb1e48c970
 python_version=2
 conf_files="/etc/default/refind-kernel-hook.conf"
+patch_args=-Np0
 
 post_extract() {
 	vsed -e 's|RefindDir=\"\$ThisDir/refind\"|RefindDir="/usr/share/refind"|g' \
diff --git a/srcpkgs/reiserfsprogs/template b/srcpkgs/reiserfsprogs/template
index d98433876b42..9350966ac543 100644
--- a/srcpkgs/reiserfsprogs/template
+++ b/srcpkgs/reiserfsprogs/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/"
 distfiles="${KERNEL_SITE}/kernel/people/jeffm/${pkgname}/v${version}/${pkgname}-${version}.tar.xz"
 checksum=0e95b67fa7746a3c2d59145e9b9c2feb4a6be52853e83b497b182eae508e62e3
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)
diff --git a/srcpkgs/renderdoc/template b/srcpkgs/renderdoc/template
index 4615d45c52c9..6fe21f63ea27 100644
--- a/srcpkgs/renderdoc/template
+++ b/srcpkgs/renderdoc/template
@@ -16,6 +16,7 @@ license="MIT"
 homepage="https://github.com/baldurk/renderdoc"
 distfiles="https://github.com/baldurk/${pkgname}/archive/v${version}.tar.gz"
 checksum=4dece1b4cb859a76533b28fcd50e17321acfaa81c3435500a006c4a5ba15fddb
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" libexecinfo-devel"
diff --git a/srcpkgs/residualvm/template b/srcpkgs/residualvm/template
index b0abb4052a9c..621b40a27528 100644
--- a/srcpkgs/residualvm/template
+++ b/srcpkgs/residualvm/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later, BSD-3-Clause, IS
 homepage="https://www.residualvm.org/"
 distfiles="https://www.residualvm.org/downloads/release/${version}/residualvm-${version}-sources.tar.bz2"
 checksum=f50c83bbc55a8121eefc279e83982b6ec590e608e145b7f750006619dd0bf9e9
+patch_args=-Np0
 
 build_options="sndio"
 build_options_default="sndio"
diff --git a/srcpkgs/resvg/template b/srcpkgs/resvg/template
index c48e52ae2f2e..5befcd0e4c3b 100644
--- a/srcpkgs/resvg/template
+++ b/srcpkgs/resvg/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="https://github.com/RazrFalcon/resvg"
 distfiles="https://github.com/RazrFalcon/resvg/releases/download/v${version}/resvg-${version}.tar.xz"
 checksum=7206f79f67b4c8610353134c375ed3ff9c5eb63b16fae267b94730c23ebe4ee1
+patch_args=-Np0
 
 do_build() {
 	for dir in capi tools/{render,u}svg; do
diff --git a/srcpkgs/retroshare/template b/srcpkgs/retroshare/template
index e65594a4b16e..3c0685fc053e 100644
--- a/srcpkgs/retroshare/template
+++ b/srcpkgs/retroshare/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later, AGPL-3.0-or-later"
 homepage="https://retroshare.cc"
 distfiles="https://github.com/RetroShare/RetroShare/archive/v${version}.tar.gz"
 checksum=901a1d1f282e04118fbe0e24190355b4a8f355a806cc5448738b1d691b46f5d5
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/rhythmbox/template b/srcpkgs/rhythmbox/template
index 1d229ee9428c..eb666718af6c 100644
--- a/srcpkgs/rhythmbox/template
+++ b/srcpkgs/rhythmbox/template
@@ -22,6 +22,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.rhythmbox.org"
 distfiles="${GNOME_SITE}/${pkgname}/${version::3}/${pkgname}-${version}.tar.xz"
 checksum=ee0eb0d7d7bdf696ac9471b19ff3bea3240d63b6cb8a134bf632054af8665d90
+patch_args=-Np0
 
 python_version=3
 pycompile_dirs="/usr/lib/rhythmbox/plugins /usr/lib/rhythmbox/sample-plugins"
diff --git a/srcpkgs/rinse/template b/srcpkgs/rinse/template
index 27d6d0acd2fb..54d42aaa68c0 100644
--- a/srcpkgs/rinse/template
+++ b/srcpkgs/rinse/template
@@ -15,6 +15,7 @@ homepage="https://salsa.debian.org/debian/rinse"
 changelog="https://salsa.debian.org/debian/rinse/raw/master/debian/changelog"
 distfiles="https://salsa.debian.org/debian/rinse/-/archive/${version}/rinse-${version}.tar.gz"
 checksum=ebe2384f2aa4565c5f29882b177f7afd4c7cdbca9de9525618c6040e63a76d23
+patch_args=-Np0
 
 
 conf_files="/etc/rinse/rinse.conf"
diff --git a/srcpkgs/rix/template b/srcpkgs/rix/template
index 23d16e5e2da2..9c1f78cbbe05 100644
--- a/srcpkgs/rix/template
+++ b/srcpkgs/rix/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="https://github.com/riolet/rix"
 distfiles="https://github.com/riolet/rix/archive/v${version}.tar.gz"
 checksum=8727fee17cbbecec3ca8083fac80db3a2ed234c8128ec8df5cc56293e1dbb09c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/rmilter/template b/srcpkgs/rmilter/template
index 0c2e00b5169d..cf0ebd53e35b 100644
--- a/srcpkgs/rmilter/template
+++ b/srcpkgs/rmilter/template
@@ -17,6 +17,7 @@ checksum=ea80563fa7636afed0b5fd9a29aa2300f15793ed85788e4ce69c187d341a7d54
 system_accounts="rmilter"
 rmilter_pgroup="_rmilter"
 rmilter_homedir="/var/lib/rmilter"
+patch_args=-Np0
 
 post_install() {
 	vdoc rmilter.conf.sample
diff --git a/srcpkgs/rmlint/template b/srcpkgs/rmlint/template
index 52b0a13cfad5..5cd23e3659e0 100644
--- a/srcpkgs/rmlint/template
+++ b/srcpkgs/rmlint/template
@@ -12,6 +12,7 @@ homepage="http://rmlint.rtfd.org/"
 changelog="https://raw.githubusercontent.com/sahib/rmlint/master/CHANGELOG.md"
 distfiles="https://github.com/sahib/${pkgname}/archive/v${version}.tar.gz"
 checksum=10e72ba4dd9672d1b6519c0c94eae647c5069c7d11f1409a46e7011dd0c6b883
+patch_args=-Np0
 
 do_install() {
 	scons install --prefix=${DESTDIR}/usr
diff --git a/srcpkgs/rpcbind/template b/srcpkgs/rpcbind/template
index 2909a0827fb8..48adb776b709 100644
--- a/srcpkgs/rpcbind/template
+++ b/srcpkgs/rpcbind/template
@@ -14,6 +14,7 @@ homepage="https://rpcbind.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=5613746489cae5ae23a443bb85c05a11741a5f12c8f55d2bb5e83b9defeee8de
 system_accounts="rpc"
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/rpi-imager/template b/srcpkgs/rpi-imager/template
index e48f0312e162..133b762f6e8d 100644
--- a/srcpkgs/rpi-imager/template
+++ b/srcpkgs/rpi-imager/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://github.com/raspberrypi/rpi-imager"
 distfiles="https://github.com/raspberrypi/rpi-imager/archive/${version}.tar.gz"
 checksum="166d4926ab5a21f9a83096eff67a9a72f1a7f55702a36cb448cccf5f3b075509"
+patch_args=-Np0
 
 pre_configure() {
 	ln -sf /bin/true $XBPS_WRAPPERDIR/lsblk
diff --git a/srcpkgs/rpm/template b/srcpkgs/rpm/template
index 9f6f522b9a3b..dc4101698780 100644
--- a/srcpkgs/rpm/template
+++ b/srcpkgs/rpm/template
@@ -18,6 +18,7 @@ distfiles="http://ftp.rpm.org/releases/rpm-4.16.x/rpm-${version}.tar.bz2"
 checksum=513dc7f972b6e7ccfc9fc7f9c01d5310cc56ee853892e4314fa2cad71478e21d
 python_version=3
 conflicts="rpmextract>=0" # Both provide rpm2cpio
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
 CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/nss"
diff --git a/srcpkgs/rspamd/template b/srcpkgs/rspamd/template
index 7398b753622e..dca49ec662f1 100644
--- a/srcpkgs/rspamd/template
+++ b/srcpkgs/rspamd/template
@@ -19,6 +19,7 @@ checksum=e4720c1f45defd07dd17b9563d0ddc480c70beadbc1a833235c077960092e030
 system_accounts="rspamd"
 rspamd_homedir=/var/lib/rspamd
 conf_files="/etc/rspamd/*.conf /etc/rspamd/*.inc /etc/rspamd/modules.d/*.conf"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	aarch64*|arm*) configure_args+=" -DHAS_C11_ATOMICS_EXITCODE=0
diff --git a/srcpkgs/rsstail/template b/srcpkgs/rsstail/template
index 40a3d84ed70b..1cfc4cdff308 100644
--- a/srcpkgs/rsstail/template
+++ b/srcpkgs/rsstail/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://www.vanheusden.com/rsstail/"
 distfiles="http://www.vanheusden.com/${pkgname}/${pkgname}-${version}.tgz"
 checksum=42cb452178b21c15c470bafbe5b8b5339a7fb5b980bf8d93d36af89864776e71
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/bin
diff --git a/srcpkgs/rstudio/template b/srcpkgs/rstudio/template
index 904bec8ca964..c8c5627d9b00 100644
--- a/srcpkgs/rstudio/template
+++ b/srcpkgs/rstudio/template
@@ -29,6 +29,7 @@ checksum="af8dc5e71ee934043856938af2e2065d1f1efef08aba37962ed03f6ccb8201bb
  0b7af89fdadb4ec51cdb400ace94637d6fe9ffa401b168e2c3d372392a00a0a7"
 skip_extraction="core-dictionaries.zip
  gwt-${_gwt_version}.zip"
+patch_args=-Np0
 
 LDFLAGS="-Wl,-z,stack-size=2097152"
 
diff --git a/srcpkgs/rsyslog/template b/srcpkgs/rsyslog/template
index 33c55076e9be..8c5b041d218c 100644
--- a/srcpkgs/rsyslog/template
+++ b/srcpkgs/rsyslog/template
@@ -23,6 +23,7 @@ conf_files="/etc/rsyslog.conf"
 make_dirs="/etc/rsyslog.d 0755 root root"
 lib32disabled=yes
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/rtl8812au-dkms/template b/srcpkgs/rtl8812au-dkms/template
index 0dedc560b81a..062aa1bebe2e 100644
--- a/srcpkgs/rtl8812au-dkms/template
+++ b/srcpkgs/rtl8812au-dkms/template
@@ -13,6 +13,7 @@ homepage="http://www.dlink.com"
 distfiles="https://github.com/gordboy/rtl8812au-${_modver}/archive/${_gitrev}.tar.gz"
 checksum=72b04bb7e1ef01eae653222d6f75f71163f7442fa142198605ed495f30341bd9
 dkms_modules="rtl8812au ${_modver}"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _karch="x86_64";;
diff --git a/srcpkgs/rtl8822bu-dkms/template b/srcpkgs/rtl8822bu-dkms/template
index 548d0b6299cd..d994f402b2d9 100644
--- a/srcpkgs/rtl8822bu-dkms/template
+++ b/srcpkgs/rtl8822bu-dkms/template
@@ -12,6 +12,7 @@ homepage="https://www.tp-link.com"
 distfiles="https://github.com/EntropicEffect/rtl8822bu/archive/${_gitrev}.tar.gz"
 checksum=fb2dbcd0385d558af6c74571aaac9020d7cbb9e56cc4780299bd420559f29bb1
 dkms_modules="88x2bu ${version}"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _karch="x86_64";;
diff --git a/srcpkgs/rtmpdump/template b/srcpkgs/rtmpdump/template
index 911122cc807a..aa3efa2397c7 100644
--- a/srcpkgs/rtmpdump/template
+++ b/srcpkgs/rtmpdump/template
@@ -11,6 +11,7 @@ license="GPL-2, LGPL-2.1"
 homepage="http://rtmpdump.mplayerhq.hu/"
 distfiles="https://alpha.de.repo.voidlinux.org/distfiles/${pkgname}-${version%.*}_p${_patchlevel}.tar.gz"
 checksum=d6da3b683f1045f02d94a81b0c583318dba021f69bdab970c5d5d73e8c38860f
+patch_args=-Np0
 
 CFLAGS="-Wno-unused-const-variable -Wno-unused-but-set-variable"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/rtorrent/template b/srcpkgs/rtorrent/template
index 7d44897de237..c3278dc21049 100644
--- a/srcpkgs/rtorrent/template
+++ b/srcpkgs/rtorrent/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/rakshasa/rtorrent"
 distfiles="https://github.com/rakshasa/${pkgname}/archive/v${version}.tar.gz"
 checksum=bc889ce1dde475ec56aa72ae996912ff58723226a4f4256fef4f1f8636d991d4
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/rubberband/template b/srcpkgs/rubberband/template
index 0c1f15270aa0..fabb288f308b 100644
--- a/srcpkgs/rubberband/template
+++ b/srcpkgs/rubberband/template
@@ -13,6 +13,7 @@ homepage="https://breakfastquay.com/rubberband/"
 changelog="https://breakfastquay.com/news.html"
 distfiles="https://breakfastquay.com/files/releases/rubberband-${version}.tar.bz2"
 checksum=4f5b9509364ea876b4052fc390c079a3ad4ab63a2683aad09662fb905c2dc026
+patch_args=-Np0
 
 librubberband_package() {
 	short_desc+=" - Runtime libraries"
diff --git a/srcpkgs/ruby/template b/srcpkgs/ruby/template
index 29c1c2eac3c3..ad72d57520c9 100644
--- a/srcpkgs/ruby/template
+++ b/srcpkgs/ruby/template
@@ -1,5 +1,6 @@
 # Template file for 'ruby'
 _ruby_abiver=2.7.0
+patch_args=-Np0
 
 pkgname=ruby
 version=2.7.3
diff --git a/srcpkgs/ruler/template b/srcpkgs/ruler/template
index 0884fc46578f..7cac86683e03 100644
--- a/srcpkgs/ruler/template
+++ b/srcpkgs/ruler/template
@@ -11,6 +11,7 @@ license="ISC"
 homepage="https://github.com/tudurom/ruler"
 distfiles="https://github.com/tudurom/ruler/archive/v${version}.tar.gz"
 checksum=5355e19530bb158b504cca6ba18cc402585e9bdb488e01a2ee76492bc70923c7
+patch_args=-Np0
 
 LDFLAGS="-lxcb -lxcb-ewmh -lxcb-icccm -lwm"
 
diff --git a/srcpkgs/run-mailcap/template b/srcpkgs/run-mailcap/template
index 8eb80e3b58ed..5a88b519eadf 100644
--- a/srcpkgs/run-mailcap/template
+++ b/srcpkgs/run-mailcap/template
@@ -10,6 +10,7 @@ license="custom:ad-hoc, custom:Bellcore"
 homepage="http://packages.ubuntu.com/disco/mime-support"
 distfiles="${UBUNTU_SITE}/main/m/mime-support/mime-support_${version}ubuntu1.tar.xz"
 checksum=5007d2ebc25935bfca6d4bdac0efdfc089a38c1be49d19f0422559f666e4f2c4
+patch_args=-Np0
 
 do_install() {
 	local _aliases="see edit compose print"
diff --git a/srcpkgs/runit/template b/srcpkgs/runit/template
index 081d5fe2c732..68b400c1ef5c 100644
--- a/srcpkgs/runit/template
+++ b/srcpkgs/runit/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://smarden.org/runit/"
 distfiles="http://smarden.org/runit/runit-$version.tar.gz"
 checksum=6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18
+patch_args=-Np0
 
 build_options="static"
 
diff --git a/srcpkgs/rustup/template b/srcpkgs/rustup/template
index e4f985f74ec4..2be276c712b2 100644
--- a/srcpkgs/rustup/template
+++ b/srcpkgs/rustup/template
@@ -15,6 +15,7 @@ license="Apache-2.0, MIT"
 homepage="https://www.rustup.rs"
 distfiles="https://github.com/rust-lang/${pkgname}/archive/${version}.tar.gz"
 checksum=0203231bfe405ee1c7d5e7e1c013b9b8a2dc87fbd8474e77f500331d8c26365f
+patch_args=-Np0
 
 post_build() {
 	RUSTUP="target/${RUST_TARGET}/release/rustup-init"
diff --git a/srcpkgs/rxvt-unicode/template b/srcpkgs/rxvt-unicode/template
index c89633c12deb..8ae30a72963e 100644
--- a/srcpkgs/rxvt-unicode/template
+++ b/srcpkgs/rxvt-unicode/template
@@ -26,6 +26,7 @@ license="GPL-3.0-or-later"
 homepage="http://software.schmorp.de/pkg/rxvt-unicode.html"
 distfiles="http://dist.schmorp.de/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=643116b9a25d29ad29f4890131796d42e6d2d21312282a613ef66c80c5b8c98b
+patch_args=-Np0
 
 # Package build options
 build_options="gdk_pixbuf perl startup_notification unicode3"
diff --git a/srcpkgs/s3cmd/template b/srcpkgs/s3cmd/template
index 40cd669dc978..3571621f48c3 100644
--- a/srcpkgs/s3cmd/template
+++ b/srcpkgs/s3cmd/template
@@ -12,6 +12,7 @@ changelog="https://github.com/s3tools/s3cmd/raw/master/NEWS"
 homepage="http://s3tools.org/s3cmd"
 distfiles="https://github.com/s3tools/${pkgname}/archive/v${version}.tar.gz"
 checksum=2293f775fde77201bf8e489f20516fd594168c77897168f129e5c1a2b33b7e37
+patch_args=-Np0
 
 pre_install() {
 	export S3CMD_INSTPATH_DOC="share/doc"
diff --git a/srcpkgs/samba/template b/srcpkgs/samba/template
index 90be22e57059..8195f38fbf01 100644
--- a/srcpkgs/samba/template
+++ b/srcpkgs/samba/template
@@ -32,6 +32,7 @@ lib32disabled=yes
 conf_files="/etc/pam.d/samba /etc/samba/smb.conf"
 make_dirs="/etc/samba/private 0750 root root"
 subpackages="smbclient samba-ctdb samba-cups samba-devel samba-libs samba-python3"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/sandboxfs/template b/srcpkgs/sandboxfs/template
index 9ab7a626b206..979a457e1056 100644
--- a/srcpkgs/sandboxfs/template
+++ b/srcpkgs/sandboxfs/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="https://github.com/bazelbuild/sandboxfs"
 distfiles="https://github.com/bazelbuild/sandboxfs/archive/sandboxfs-${version}.tar.gz"
 checksum=bff68e7d33ae56a3f34a79a74b2576599f5ccc381a237bbc10b5a3c3ea106b60
+patch_args=-Np0
 
 post_install() {
 	vman man/sandboxfs.1
diff --git a/srcpkgs/sane/template b/srcpkgs/sane/template
index 35dac1cc846a..8a68e3b65a15 100644
--- a/srcpkgs/sane/template
+++ b/srcpkgs/sane/template
@@ -21,6 +21,7 @@ homepage="http://www.sane-project.org/"
 distfiles="https://gitlab.com/sane-project/backends/uploads/${_gitlab_release_hash}/sane-backends-${version}.tar.gz"
 checksum=4a3b10fcb398ed854777d979498645edfe66fcac2f2fd2b9117a79ff45e2a5aa
 noshlibprovides="avoid false detection of device drivers"
+patch_args=-Np0
 
 build_options="snmp"
 
diff --git a/srcpkgs/sauerbraten/template b/srcpkgs/sauerbraten/template
index 587cc3da5903..102bb584421b 100644
--- a/srcpkgs/sauerbraten/template
+++ b/srcpkgs/sauerbraten/template
@@ -13,6 +13,7 @@ license="Zlib"
 homepage="http://sauerbraten.org"
 distfiles="${SOURCEFORGE_SITE}/sauerbraten/sauerbraten_${version//./_}_collect_edition_linux.tar.bz2"
 checksum=45c20521e3e56374490b2d9112a211538e801cf0161197f35476b30b7b58a78e
+patch_args=-Np0
 
 restricted="Very large - not worth storing on current Void infrastructure"
 
diff --git a/srcpkgs/sbcl/template b/srcpkgs/sbcl/template
index 4fc8a569b50e..8e52f31ee67c 100644
--- a/srcpkgs/sbcl/template
+++ b/srcpkgs/sbcl/template
@@ -15,6 +15,7 @@ distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-source.tar.bz2"
 checksum=965807ecd65a9590d68a0ed408b544e7e49a1f6e337ebd2b25e34788bcc8a8c5
 nocross=yes
 nopie=yes
+patch_args=-Np0
 
 _bootstrap_lisp="bash ../sbcl-*-linux/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/sc3-plugins/template b/srcpkgs/sc3-plugins/template
index 8511caea26e0..a26e459fc3af 100644
--- a/srcpkgs/sc3-plugins/template
+++ b/srcpkgs/sc3-plugins/template
@@ -19,6 +19,7 @@ distfiles="https://github.com/supercollider/sc3-plugins/archive/Version-${versio
 checksum="b8144231ea1bfc1c9d8aa6780c7e963dfb642868794abbfd8ccab418ffbbdfbe
  9b2035a3a7942c61cbe89b00c35c7e16ac281c06786fe1c30dfd333194be499a
  df9f280daaad56fdadb5fa75d492ee6a06762a41d7346aa473aa49c1ac9ec9c8"
+patch_args=-Np0
 
 post_extract() {
 	rm -rf external_libraries/nova-simd
diff --git a/srcpkgs/scanmem/template b/srcpkgs/scanmem/template
index d694f33d3725..5e715569c8a2 100644
--- a/srcpkgs/scanmem/template
+++ b/srcpkgs/scanmem/template
@@ -13,6 +13,7 @@ homepage="https://github.com/scanmem/scanmem"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=f02054b91322cf41517506158fcb74554e9fc6644e696f8aa25e5acf162d374b
 CFLAGS="-D__NEED_pid_t"
+patch_args=-Np0
 
 nocross="checking for /proc/self/maps... configure: error"
 
diff --git a/srcpkgs/schroot/template b/srcpkgs/schroot/template
index 85416dee5e9c..d30517ec6415 100644
--- a/srcpkgs/schroot/template
+++ b/srcpkgs/schroot/template
@@ -55,6 +55,7 @@ checksum="
 3ce8dfd9cb97b099e4b6d4ccec421d6cc8c9ef84574681e928a12badb5643d0b
 56bc82fc8ae7f6ca7eef506ccc1dca1211b2c84d83efc50d24670b8bdb9ea8bb"
 nocross=yes
+patch_args=-Np0
 
 pre_configure() {
 	cat ../debian/patches/series | while read p; do
diff --git a/srcpkgs/screen/template b/srcpkgs/screen/template
index 613696d9f373..f6288cc075bf 100644
--- a/srcpkgs/screen/template
+++ b/srcpkgs/screen/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/s/screen/"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=6e11b13d8489925fde25dfb0935bf6ed71f9eb47eff233a181e078fde5655aa1
+patch_args=-Np0
 
 post_install() {
 	vinstall etc/etcscreenrc 0644 etc screenrc
diff --git a/srcpkgs/scrotty/template b/srcpkgs/scrotty/template
index 13b03a1d1567..69270af50e20 100644
--- a/srcpkgs/scrotty/template
+++ b/srcpkgs/scrotty/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/maandree/scrotty"
 distfiles="https://github.com/maandree/scrotty/archive/${version}.tar.gz"
 checksum=466528d6ecf0138f57c40541258389686e22771c28d40f28c00825faaeaab1a3
+patch_args=-Np0
 
 pre_configure() {
 	export EXTRA_CFLAGS="$CFLAGS"
diff --git a/srcpkgs/scummvm/template b/srcpkgs/scummvm/template
index 0cec3ab176d7..aa52ba65d1e0 100644
--- a/srcpkgs/scummvm/template
+++ b/srcpkgs/scummvm/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.scummvm.org/"
 distfiles="https://downloads.scummvm.org/frs/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
 checksum=1469657e593bd8acbcfac0b839b086f640ebf120633e93f116cab652b5b27387
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*);;
diff --git a/srcpkgs/sddm/template b/srcpkgs/sddm/template
index 2a87381c8e8a..6d58d2e52e02 100644
--- a/srcpkgs/sddm/template
+++ b/srcpkgs/sddm/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later, CC-BY-3.0"
 homepage="http://github.com/sddm/sddm"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=e76da1f13d5ad5e0179e3fec57543126044339405ef19c397e105e0807bd4e41
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" sddm qt5-host-tools qt5-qmake qt5-tools"
diff --git a/srcpkgs/seafile-client-qt/template b/srcpkgs/seafile-client-qt/template
index 76b9a41fe45a..1f9b122cce2f 100644
--- a/srcpkgs/seafile-client-qt/template
+++ b/srcpkgs/seafile-client-qt/template
@@ -15,6 +15,7 @@ license="Apache-2.0"
 homepage="https://seafile.com"
 distfiles="https://github.com/haiwen/seafile-client/archive/v${version}.tar.gz"
 checksum=a6be7e55236cd4fb6028259ab5f35163ce044811f45b6008f280d42f5cee9f8d
+patch_args=-Np0
 
 build_options="shibboleth"
 desc_option_shibboleth="Build with Shibboleth support"
diff --git a/srcpkgs/seexpr-krita/template b/srcpkgs/seexpr-krita/template
index efb21e6f6508..0aaba2375734 100644
--- a/srcpkgs/seexpr-krita/template
+++ b/srcpkgs/seexpr-krita/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://krita.org"
 distfiles="${KDE_SITE}/kseexpr/${version%.*}/kseexpr-${version}.tar.gz"
 checksum=13b8455883001668f5d79c5734821c1ad2a0fbc91d019af085bb7e31cf6ce926
+patch_args=-Np0
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -DBUILD_TESTS=ON"
diff --git a/srcpkgs/serf/template b/srcpkgs/serf/template
index a9ac8a6d35e4..b27fd1e4b009 100644
--- a/srcpkgs/serf/template
+++ b/srcpkgs/serf/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="http://serf.apache.org"
 distfiles="https://archive.apache.org/dist/serf/serf-${version}.tar.bz2"
 checksum=549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args+=" APR=${XBPS_WRAPPERDIR}/apr-1-config"
diff --git a/srcpkgs/shaderc/template b/srcpkgs/shaderc/template
index 7382d081551c..d0d810161d23 100644
--- a/srcpkgs/shaderc/template
+++ b/srcpkgs/shaderc/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="https://github.com/google/shaderc"
 distfiles="https://github.com/google/shaderc/archive/v${version}.tar.gz"
 checksum=e02e2a9d4c3960bc629ca8cdcf83d295bec9c80ed08a8c5062e4e294022605ec
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/glslang"
 
diff --git a/srcpkgs/shadow/template b/srcpkgs/shadow/template
index f01181a49bd6..556e2ce263f1 100644
--- a/srcpkgs/shadow/template
+++ b/srcpkgs/shadow/template
@@ -17,6 +17,7 @@ homepage="https://github.com/shadow-maint/shadow"
 distfiles="${homepage}/releases/download/${version}/shadow-${version}.tar.xz"
 checksum=a3ad4630bdc41372f02a647278a8c3514844295d36eefe68ece6c3a641c1ae62
 conf_files="/etc/pam.d/* /etc/default/* /etc/login.defs"
+patch_args=-Np0
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/shapelib/template b/srcpkgs/shapelib/template
index 67a6f9c0dc7d..230bf6980f77 100644
--- a/srcpkgs/shapelib/template
+++ b/srcpkgs/shapelib/template
@@ -9,6 +9,7 @@ license="LGPL-2.0-only"
 homepage="http://shapelib.maptools.org/"
 distfiles="http://download.osgeo.org/shapelib/shapelib-${version}.tar.gz"
 checksum=1fc0a480982caef9e7b9423070b47750ba34cd0ba82668f2e638fab1d07adae1
+patch_args=-Np0
 
 shapelib-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/shiboken2/template b/srcpkgs/shiboken2/template
index ed06a780e1a9..5cdf26b88421 100644
--- a/srcpkgs/shiboken2/template
+++ b/srcpkgs/shiboken2/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.qt.io/Qt_for_Python/Shiboken"
 distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
 checksum=b306504b0b8037079a8eab772ee774b9e877a2d84bab2dbefbe4fa6f83941418
+patch_args=-Np0
 
 python_version=3
 export CLANG_INSTALL_DIR=${XBPS_CROSS_BASE}/usr
diff --git a/srcpkgs/shmux/template b/srcpkgs/shmux/template
index 3f353a0df33b..d3c039b4f128 100644
--- a/srcpkgs/shmux/template
+++ b/srcpkgs/shmux/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/shmux/shmux"
 distfiles="https://github.com/shmux/shmux/archive/v${version}.tar.gz"
 checksum=c9f8863e2550e23e633cf5fc7a9c4c52d287059f424ef78aba6ecd98390fb9ab
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/shotwell/template b/srcpkgs/shotwell/template
index b0c1878e31bb..1076b974de75 100644
--- a/srcpkgs/shotwell/template
+++ b/srcpkgs/shotwell/template
@@ -17,6 +17,7 @@ homepage="https://wiki.gnome.org/Apps/Shotwell"
 distfiles="${GNOME_SITE}/shotwell/${version%.*}/shotwell-${version}.tar.xz"
 checksum=8de36f20488f4fb7d090194c8af46cd3661bcc81a3d65f980cb17667ed826af2
 lib32disabled=yes
+patch_args=-Np0
 
 post_extract() {
 	# because shotwell intelligently forces fatal warnings even for
diff --git a/srcpkgs/signond/template b/srcpkgs/signond/template
index 183c3b9481e7..585a4f7e28b7 100644
--- a/srcpkgs/signond/template
+++ b/srcpkgs/signond/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://gitlab.com/accounts-sso/signond"
 distfiles="https://gitlab.com/accounts-sso/signond/repository/archive.tar.gz?ref=VERSION_${version}>signond-${version}.tar.gz"
 checksum=a9cd90cf3e8b1a8bdbe5acf46c797a817092e77946c69fc3ed3a76930f3a76aa
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 8e9f28786b9e..fb99e1fcd88d 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.sile-typesetter.org/"
 distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
 checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
diff --git a/srcpkgs/silly/template b/srcpkgs/silly/template
index 432cefdabc93..8fa0632c361c 100644
--- a/srcpkgs/silly/template
+++ b/srcpkgs/silly/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://sourceforge.net/projects/crayzedsgui/"
 distfiles="${SOURCEFORGE_SITE}/project/crayzedsgui/${pkgname^^}/${version}/${pkgname^^}-${version}.tar.gz"
 checksum=afa064f70433008ec9837fb601c8d73e73db07856e4566f8bee010758c5304ac
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/simgear/template b/srcpkgs/simgear/template
index 4a15e27896ef..58f19d499e50 100644
--- a/srcpkgs/simgear/template
+++ b/srcpkgs/simgear/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.flightgear.org/"
 distfiles="$SOURCEFORGE_SITE/project/flightgear/release-${version%.*}/${pkgname}-${version}.tar.bz2"
 checksum=66da2c4f68058f6854206f2dd9c03c9223851ade24a50216e88b4e50598c13d1
+patch_args=-Np0
 
 # Suppress warnings regarding auto_ptr
 CXXFLAGS="-Wno-deprecated-declarations"
diff --git a/srcpkgs/simutron/template b/srcpkgs/simutron/template
index cdcf68c2a435..15a6accf2010 100644
--- a/srcpkgs/simutron/template
+++ b/srcpkgs/simutron/template
@@ -13,6 +13,7 @@ maintainer="Artur Sinila <opensource@logarithmus.dev>"
 license="GPL-3.0-only"
 homepage="https://sourceforge.net/projects/simutron/"
 nostrip_files="LCD20x4Test.elf"
+patch_args=-Np0
 
 do_fetch() {
 	svn checkout "https://svn.code.sf.net/p/${pkgname}/code/branches/RB-${_version}-${_rev}" "$wrksrc"
diff --git a/srcpkgs/sisl/template b/srcpkgs/sisl/template
index 1fdf40b02dbf..0457d6e17fe2 100644
--- a/srcpkgs/sisl/template
+++ b/srcpkgs/sisl/template
@@ -10,6 +10,7 @@ license="AGPL-3.0-only"
 homepage="https://github.com/SINTEF-Geometry/SISL"
 distfiles="$homepage/archive/SISL-$version.tar.gz"
 checksum=b207fe6b4b20775e3064168633256fddd475ff98573408f6f5088a938c086f86
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/skroll/template b/srcpkgs/skroll/template
index e01de5aa0647..9263b38cd5c0 100644
--- a/srcpkgs/skroll/template
+++ b/srcpkgs/skroll/template
@@ -10,6 +10,7 @@ license="WTFPL"
 homepage="http://git.z3bra.org/skroll/log.html"
 distfiles="http://dl.z3bra.org/releases/${pkgname}-${version}.tar.bz2"
 checksum=32221fef51f6814a7bf3cf4207b8a2466624544a2fd1e5b110ee2af3580d2959
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/slcp/template b/srcpkgs/slcp/template
index 1873bcc6f233..614c5844ad11 100644
--- a/srcpkgs/slcp/template
+++ b/srcpkgs/slcp/template
@@ -10,6 +10,7 @@ license="Beerware"
 homepage="https://github.com/schachmat/slcp"
 distfiles="https://github.com/schachmat/slcp/archive/${version}.tar.gz"
 checksum=a26e56832e37dbf1c7b776ddb137e422c987c19330575708a5945697e08e7cfe
+patch_args=-Np0
 
 pre_build() {
 	sed -i 's|^CFLAGS =|override CFLAGS +=|g' config.mk
diff --git a/srcpkgs/sleuthkit/template b/srcpkgs/sleuthkit/template
index f7d3ebf142f5..c61696b35270 100644
--- a/srcpkgs/sleuthkit/template
+++ b/srcpkgs/sleuthkit/template
@@ -15,6 +15,7 @@ homepage="https://www.sleuthkit.org/"
 changelog="https://github.com/sleuthkit/sleuthkit/releases"
 distfiles="https://github.com/sleuthkit/sleuthkit/archive/sleuthkit-${version}.tar.gz"
 checksum=da9a336c37e03b78bd912acf243953254a3215f0b3646f9d2c526f4b502e6f11
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's:sys/fcntl.h:fcntl.h:g' tsk/fs/tsk_fs_i.h
diff --git a/srcpkgs/slim/template b/srcpkgs/slim/template
index b7382cac3085..43d025a1e9b5 100644
--- a/srcpkgs/slim/template
+++ b/srcpkgs/slim/template
@@ -15,6 +15,7 @@ homepage="http://sourceforge.net/projects/slim.berlios/"
 distfiles="${SOURCEFORGE_SITE}/slim.berlios/slim-${version}.tar.gz"
 checksum=21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df
 lib32disabled=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) CXXFLAGS="-DNEEDS_BASENAME";;
diff --git a/srcpkgs/sloccount/template b/srcpkgs/sloccount/template
index f33b58e0aea4..861d5883cb80 100644
--- a/srcpkgs/sloccount/template
+++ b/srcpkgs/sloccount/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://dwheeler.com/sloccount/"
 distfiles="https://dwheeler.com/sloccount/sloccount-${version}.tar.gz"
 checksum=fa7fa2bbf2f627dd2d0fdb958bd8ec4527231254c120a8b4322405d8a4e3d12b
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/bin
diff --git a/srcpkgs/slurm-wlm/template b/srcpkgs/slurm-wlm/template
index e01f3912697f..420663fbb7ee 100644
--- a/srcpkgs/slurm-wlm/template
+++ b/srcpkgs/slurm-wlm/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="http://slurm.schedmd.com/slurm.html"
 distfiles="https://github.com/SchedMD/slurm/archive/slurm-${_distver}.tar.gz"
 checksum=e53e67bd0bb4c37a9c481998764a746467a96bc41d6527569080514f36452c07
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/smpeg/template b/srcpkgs/smpeg/template
index 9a958bd1bbae..e8dfe2e4452f 100644
--- a/srcpkgs/smpeg/template
+++ b/srcpkgs/smpeg/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-only"
 homepage="https://icculus.org/smpeg/"
 distfiles="ftp://slackware.oregonstate.edu/.1/vectorlinux/VL64-7.0/source/sourceVL/smpeg/${version}/src/smpeg-${version}.tar.gz"
 checksum=1839c12e88d5dbbc767a7b94eeab2aa3efe4f0eebb7eb7c7240270ba93689a2b
+patch_args=-Np0
 
 post_install() {
 	# Remove unused stuff
diff --git a/srcpkgs/smpeg2/template b/srcpkgs/smpeg2/template
index 5c87e4416dae..5afde1920c59 100644
--- a/srcpkgs/smpeg2/template
+++ b/srcpkgs/smpeg2/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="https://icculus.org/smpeg/"
 distfiles="https://www.libsdl.org/projects/smpeg/release/smpeg2-${version}.tar.gz"
 checksum=979a65b211744a44fa641a9b6e4d64e64a12ff703ae776bafe3c4c4cd85494b3
+patch_args=-Np0
 
 # Package build options
 build_options="rpi"
diff --git a/srcpkgs/snapper/template b/srcpkgs/snapper/template
index bd58ab951c24..a2dd275709e7 100644
--- a/srcpkgs/snapper/template
+++ b/srcpkgs/snapper/template
@@ -19,6 +19,7 @@ homepage="http://snapper.io"
 distfiles="https://github.com/openSUSE/snapper/archive/v${version}.tar.gz"
 checksum=ca7b17d0213aa5281ff08d968b4e029b78bb3870eb79fd7bc7f879b17f5c969e
 lib32disabled=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]
 then
diff --git a/srcpkgs/snappy/template b/srcpkgs/snappy/template
index 7e9e5214fb7d..36d572f0da93 100644
--- a/srcpkgs/snappy/template
+++ b/srcpkgs/snappy/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://google.github.io/snappy"
 distfiles="https://github.com/google/snappy/archive/${version}.tar.gz"
 checksum=75c1fbb3d618dd3a0483bff0e26d0a92b495bbe5059c8b4f1c962b478b6e06e7
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/socat/template b/srcpkgs/socat/template
index d4e0f0a9bbdb..bbbe7dccb42c 100644
--- a/srcpkgs/socat/template
+++ b/srcpkgs/socat/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.dest-unreach.org/socat/"
 distfiles="http://www.dest-unreach.org/socat/download/socat-${version}.tar.bz2"
 checksum=3faca25614e89123dff5045680549ecef519d02e331aaf3c4f5a8f6837c675e9
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) CFLAGS="-D_LINUX_IF_ETHER_H";;
diff --git a/srcpkgs/socklog/template b/srcpkgs/socklog/template
index 3df32c8ebeb5..0d77880ebb04 100644
--- a/srcpkgs/socklog/template
+++ b/srcpkgs/socklog/template
@@ -9,6 +9,7 @@ license="custom"
 homepage="http://smarden.org/socklog/"
 distfiles="http://smarden.org/socklog/socklog-${version}.tar.gz"
 checksum=aa869a787ee004da4e5509b5a0031bcc17a4ab4ac650c2ce8d4e488123acb455
+patch_args=-Np0
 
 build_options="static"
 
diff --git a/srcpkgs/sombok/template b/srcpkgs/sombok/template
index 622a1e6fc961..3c6fcaff53d1 100644
--- a/srcpkgs/sombok/template
+++ b/srcpkgs/sombok/template
@@ -12,6 +12,7 @@ license="Artistic, GPL-1"
 homepage="https://github.com/hatukanezumi/sombok"
 distfiles="https://github.com/hatukanezumi/${pkgname}/archive/${pkgname}-${version}.tar.gz"
 checksum=14d9dcd3621bf9d591a7158aeac99b4d4a60296558173be51d57b54b8f9d70a2
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -i
diff --git a/srcpkgs/sonic-visualiser/template b/srcpkgs/sonic-visualiser/template
index 4daa56060eea..583e5d4d3fe3 100644
--- a/srcpkgs/sonic-visualiser/template
+++ b/srcpkgs/sonic-visualiser/template
@@ -16,6 +16,7 @@ homepage="https://www.sonicvisualiser.org/"
 changelog="https://code.soundsoftware.ac.uk/projects/sonic-visualiser/repository/entry/CHANGELOG"
 distfiles="https://code.soundsoftware.ac.uk/attachments/download/2755/${pkgname}-${version}.tar.gz"
 checksum=38e91a4035962ad177905a9f1249136fe88d4b596fd9b8f40c82b60dadca5bf3
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/sopwith/template b/srcpkgs/sopwith/template
index aa160fdbb870..2c0b91f10be4 100644
--- a/srcpkgs/sopwith/template
+++ b/srcpkgs/sopwith/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://sdl-sopwith.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/sdl-sopwith/sdl_sopwith/${version}/sopwith-${version}.tar.gz"
 checksum=a5ecb795a7aeff6be3ebfb99f1c6218054b73048786809f8468a92c952c17bd0
+patch_args=-Np0
 
 pre_configure() {
 	mv configure.{in,ac}
diff --git a/srcpkgs/soundmodem/template b/srcpkgs/soundmodem/template
index 91ae349d3c1a..f38d83b2f88d 100644
--- a/srcpkgs/soundmodem/template
+++ b/srcpkgs/soundmodem/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://soundmodem.vk4msl.yi.org/"
 distfiles="http://soundmodem.vk4msl.yi.org/soundmodem-${version}.tar.gz"
 checksum=f033c1716df1378cda646dbb1c48ea9fb9a068772c6686f2ca411bfa64245c1c
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/spacefm/template b/srcpkgs/spacefm/template
index f89a4cd5ad5c..cb2b3b59b9d0 100644
--- a/srcpkgs/spacefm/template
+++ b/srcpkgs/spacefm/template
@@ -15,6 +15,7 @@ homepage="http://ignorantguru.github.io/spacefm/"
 distfiles="https://github.com/IgnorantGuru/spacefm/archive/${version}.tar.gz"
 checksum=fedea9fcad776e0af4b8d90c5a1c86684a9c96ef1cdd4e959530ce93bdebe7c9
 conf_files="/etc/spacefm/spacefm.conf"
+patch_args=-Np0
 
 build_options="gtk3"
 build_options_default="gtk3"
diff --git a/srcpkgs/spamassassin/template b/srcpkgs/spamassassin/template
index d778f76ba3eb..f36e91661fac 100644
--- a/srcpkgs/spamassassin/template
+++ b/srcpkgs/spamassassin/template
@@ -25,6 +25,7 @@ conf_files="
  /etc/mail/spamassassin/v320.pre
  /etc/mail/spamassassin/init.pre
  /etc/mail/spamassassin/local.cf"
+patch_args=-Np0
 
 post_install() {
 	vinstall $FILESDIR/sa-update 755 /etc/cron.weekly
diff --git a/srcpkgs/spampd/template b/srcpkgs/spampd/template
index 4380aae4f8bc..f64c6dccde75 100644
--- a/srcpkgs/spampd/template
+++ b/srcpkgs/spampd/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/downloads/mpaperno/$pkgname/$pkgname-$version.tar.
 checksum=c980e55f46c7757fd45294e5268766253123490d0158d2ee36ad5700ddf823bb
 system_accounts="_spampd"
 _spampd_homedir="/var/lib/spampd"
+patch_args=-Np0
 
 pre_install() {
 	sed -i '/INSTALL.* \(spampd.default\|spampd-init.sh\) /d' Makefile
diff --git a/srcpkgs/speech-dispatcher/template b/srcpkgs/speech-dispatcher/template
index 810692a434b1..fac86abc1d75 100644
--- a/srcpkgs/speech-dispatcher/template
+++ b/srcpkgs/speech-dispatcher/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, GFDL-1.2-or-later"
 homepage="http://devel.freebsoft.org/speechd"
 distfiles="https://github.com/brailcom/speechd/archive/${version}.tar.gz"
 checksum=0c702d4acc4920818db3daa28ecf14004123b64514b4575c138874618835104c
+patch_args=-Np0
 
 conf_files="
  /etc/speech-dispatcher/clients/*.conf
diff --git a/srcpkgs/speed-dreams/template b/srcpkgs/speed-dreams/template
index fadabc891c88..47786d859bbb 100644
--- a/srcpkgs/speed-dreams/template
+++ b/srcpkgs/speed-dreams/template
@@ -29,6 +29,7 @@ replaces="speed-dreams-data>=0"
 CFLAGS=-fpermissive
 CXXFLAGS=-fpermissive
 lib32disabled=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	broken="Segmentation fault"
diff --git a/srcpkgs/spice-gtk/template b/srcpkgs/spice-gtk/template
index 7218e837891f..613328430c20 100644
--- a/srcpkgs/spice-gtk/template
+++ b/srcpkgs/spice-gtk/template
@@ -22,6 +22,7 @@ license="LGPL-2.1-or-later"
 homepage="https://spice-space.org"
 distfiles="https://spice-space.org/download/gtk/${pkgname}-${version}.tar.xz"
 checksum=23acbee197eaaec9bce6e6bfd885bd8f79708332639243ff04833020865713cd
+patch_args=-Np0
 
 CFLAGS="-Wno-error -Wno-error=unused-but-set-variable"
 
diff --git a/srcpkgs/spim/template b/srcpkgs/spim/template
index 347ff447611b..aada991a2d50 100644
--- a/srcpkgs/spim/template
+++ b/srcpkgs/spim/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="http://spimsimulator.sourceforge.net/"
 distfiles="http://pages.cs.wisc.edu/~larus/SPIM/spim-${version}.tar.gz"
 checksum="6f205776cb9fa112729507008843b289012190ed3131cbd426c610a58387ee4b"
+patch_args=-Np0
 
 pre_configure() {
 	sed '/Copyright (c) 1990-2010, James R. Larus./,+26!d' README > LICENSE
diff --git a/srcpkgs/splix/template b/srcpkgs/splix/template
index 366aab114bce..47c4ef173356 100644
--- a/srcpkgs/splix/template
+++ b/srcpkgs/splix/template
@@ -11,6 +11,7 @@ homepage="http://splix.ap2c.org"
 distfiles="${DEBIAN_SITE}/main/s/$pkgname/${pkgname}_$version.orig.tar.gz"
 checksum="578a81bd5b1b97756a539c3bb6339fd109d54419887a73e705941da8aa7fac52"
 CXXFLAGS="-fno-strict-aliasing"
+patch_args=-Np0
 
 do_build() {
 	vsed -i rules.mk \
diff --git a/srcpkgs/spreed-webrtc/template b/srcpkgs/spreed-webrtc/template
index 7baa339cc7e5..4480b5dabec9 100644
--- a/srcpkgs/spreed-webrtc/template
+++ b/srcpkgs/spreed-webrtc/template
@@ -13,6 +13,7 @@ license="AGPL-3.0-or-later"
 homepage="https://github.com/strukturag/spreed-webrtc"
 distfiles="https://github.com/strukturag/spreed-webrtc/archive/v${version}.tar.gz"
 checksum=d05b820fe3883840eadf8b96bda663397991849d9bda4750fc7c4e642c9c3268
+patch_args=-Np0
 
 system_accounts="_spreed_webrtc"
 
diff --git a/srcpkgs/sqmail/template b/srcpkgs/sqmail/template
index 78c0af18eadb..ac118d931dfd 100644
--- a/srcpkgs/sqmail/template
+++ b/srcpkgs/sqmail/template
@@ -16,6 +16,7 @@ nocross="custom build system"
 provides="smtp-server-0_1"
 replaces="smtp-server>=0"
 conf_files="/etc/sv/*/run /etc/sv/*/log/run"
+patch_args=-Np0
 
 system_groups="_nofiles:798 _sqmail:799"
 
diff --git a/srcpkgs/squashfs-tools/template b/srcpkgs/squashfs-tools/template
index d49d6c5602a8..f66e2db53916 100644
--- a/srcpkgs/squashfs-tools/template
+++ b/srcpkgs/squashfs-tools/template
@@ -12,6 +12,7 @@ short_desc="Tool to create and append to squashfs filesystems"
 maintainer="Duncaen <duncaen@voidlinux.org>"
 distfiles="${SOURCEFORGE_SITE}/squashfs/squashfs${version}.tar.gz"
 checksum=a981b3f3f2054b5a2e658851a3c06a2460ad04a9a8a645e0afe063a63fdbb07e
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/srb2/template b/srcpkgs/srb2/template
index 08a2bff0886c..de8c22c3a5b6 100644
--- a/srcpkgs/srb2/template
+++ b/srcpkgs/srb2/template
@@ -19,6 +19,7 @@ distfiles="https://github.com/STJr/SRB2/archive/SRB2_release_${version}.tar.gz
 checksum="5f7eeb08e90323e28cdcb02ad25c904eef25ce75316720609b995a1e4ffd154a
  48cf787a70f44b31fa7a56db4053a404a7103a494f1e09fd2bbfd563672a3534"
 restricted=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*) makedepends+=" nasm" ;;
diff --git a/srcpkgs/ssoma/template b/srcpkgs/ssoma/template
index 9fbee6bead10..7de2723c4bc9 100644
--- a/srcpkgs/ssoma/template
+++ b/srcpkgs/ssoma/template
@@ -14,6 +14,7 @@ license="AGPL-3.0-or-later"
 homepage="https://ssoma.public-inbox.org/"
 distfiles="https://ssoma.public-inbox.org/files/${pkgname}-${version}.tar.gz"
 checksum=7455bafb344aaa8eeac78ae5efcca2384d11baface1194c35bafd30353168faf
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/sssd/template b/srcpkgs/sssd/template
index 61ead1c9e44e..758022a785c1 100644
--- a/srcpkgs/sssd/template
+++ b/srcpkgs/sssd/template
@@ -32,6 +32,7 @@ python_version=3
 nocross="configure attempts to run compiled output"
 # These modules in /usr/lib/sssd are required by sssd-python3
 shlib_provides="libsss_util.so libsss_crypt.so libsss_debug.so"
+patch_args=-Np0
 
 do_check() {
 	export CK_TIMEOUT_MULTIPLIER=10
diff --git a/srcpkgs/stack/template b/srcpkgs/stack/template
index 257aba10e50d..7a4ddad1a029 100644
--- a/srcpkgs/stack/template
+++ b/srcpkgs/stack/template
@@ -17,6 +17,7 @@ checksum="f29d63b91ff2bddd130b29ddee90a1f450706271a13d5d80b653b50379ffa076
 skip_extraction="cabal.config-${_stackage}"
 nocross=yes
 nopie_files="/usr/bin/stack"
+patch_args=-Np0
 
 do_build() {
 	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/cabal.config-${_stackage} cabal.config
diff --git a/srcpkgs/starplot/template b/srcpkgs/starplot/template
index ccc2232d4608..0c5bbe729448 100644
--- a/srcpkgs/starplot/template
+++ b/srcpkgs/starplot/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://starplot.org/"
 distfiles="${homepage}downloads/${pkgname}-${version}.tar.gz"
 checksum=e320f141b736b3a6468e7d0c08a93961db6615e9eb4d533d554eea31c3fa845a
+patch_args=-Np0
 
 pre_build() {
 	sed -i 's/_STRINGS_H/V_STRINGS_H/' src/classes/strings.h
diff --git a/srcpkgs/stepmania/template b/srcpkgs/stepmania/template
index 07afdba93ce6..0da6a45d7751 100644
--- a/srcpkgs/stepmania/template
+++ b/srcpkgs/stepmania/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.stepmania.com/"
 distfiles="https://github.com/stepmania/stepmania/archive/v${version}.tar.gz"
 checksum=df79bcadd69d4ed60cf560d45386ec275181343495ffd744c3ff8f73c83d4755
+patch_args=-Np0
 
 # Upstream has stated that only x86 hardware can meed the performance
 # constraints and that musl is not supported due to interop issues
diff --git a/srcpkgs/stfl/template b/srcpkgs/stfl/template
index 0d970c9d2c26..f38cd252e8ac 100644
--- a/srcpkgs/stfl/template
+++ b/srcpkgs/stfl/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.clifford.at/stfl/"
 distfiles="http://www.clifford.at/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=d4a7aa181a475aaf8a8914a8ccb2a7ff28919d4c8c0f8a061e17a0c36869c090
+patch_args=-Np0
 
 post_install() {
 	ln -sf libstfl.so.${version} ${DESTDIR}/usr/lib/libstfl.so.0
diff --git a/srcpkgs/stk/template b/srcpkgs/stk/template
index 42b5918ced65..d0eecb39a8f2 100644
--- a/srcpkgs/stk/template
+++ b/srcpkgs/stk/template
@@ -16,6 +16,7 @@ license="custom:MIT-like"
 homepage="https://ccrma.stanford.edu/software/stk/"
 distfiles="https://github.com/thestk/stk/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=8e0c362dd82421bae8f3e789d238a1c27aeac1a2697d7830eb51abc90fc17281
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 autoreconf -fi
diff --git a/srcpkgs/stlink/template b/srcpkgs/stlink/template
index 06f39a7cf256..e6b504938b54 100644
--- a/srcpkgs/stlink/template
+++ b/srcpkgs/stlink/template
@@ -14,6 +14,7 @@ homepage="https://github.com/texane/stlink"
 changelog="https://raw.githubusercontent.com/texane/stlink/master/CHANGELOG.md"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=ca9a640f84c3e2c9873bd51759594bc05c00cdf6e1f21b434ae2c0e7985433d8
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.md LICENSE
diff --git a/srcpkgs/stockfish/template b/srcpkgs/stockfish/template
index 1749c9c3692d..24ccc14fa432 100644
--- a/srcpkgs/stockfish/template
+++ b/srcpkgs/stockfish/template
@@ -18,6 +18,7 @@ distfiles="https://github.com/official-stockfish/Stockfish/archive/sf_${version}
 checksum="15d14721b3be17c597535bdbb44fb951a1ee948312d90fbf55fa0e52b8b81d62
  62ef826d1a6d11b9e814188025aa02a60815c037292e0ef9bbb9bf4f724e5e63"
 skip_extraction="${_net_file}"
+patch_args=-Np0
 
 LDFLAGS+="-lpthread -Wl,-z,stack-size=2097152"
 
diff --git a/srcpkgs/strawberry/template b/srcpkgs/strawberry/template
index 35828b1e3c24..1d51eaf7fc2a 100644
--- a/srcpkgs/strawberry/template
+++ b/srcpkgs/strawberry/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.strawberrymusicplayer.org/"
 distfiles="https://files.strawberrymusicplayer.org/${pkgname}-${version}.tar.xz"
 checksum=0fe9c38c4d1e2f10c1130dbd87ea6e740bef729fe78820a84ffabe524a80c83e
+patch_args=-Np0
 
 build_options="qt6"
 build_options_default=""
diff --git a/srcpkgs/subversion-kwallet-auth/template b/srcpkgs/subversion-kwallet-auth/template
index 12210f250d51..00ad190384b9 100644
--- a/srcpkgs/subversion-kwallet-auth/template
+++ b/srcpkgs/subversion-kwallet-auth/template
@@ -24,6 +24,7 @@ changelog="https://subversion.apache.org/docs/release-notes/${version%.*}.html"
 distfiles="http://apache.uvigo.es/subversion/subversion-${version}.tar.bz2"
 checksum=2c5da93c255d2e5569fa91d92457fdb65396b0666fad4fd59b22e154d986e1a9
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	# Based on native build values
diff --git a/srcpkgs/subversion/template b/srcpkgs/subversion/template
index e10c80ec8b18..70b4cedbfa6a 100644
--- a/srcpkgs/subversion/template
+++ b/srcpkgs/subversion/template
@@ -22,6 +22,7 @@ homepage="http://subversion.apache.org/"
 changelog="https://subversion.apache.org/docs/release-notes/${version%.*}.html"
 distfiles="http://apache.uvigo.es/subversion/subversion-${version}.tar.bz2"
 checksum=2c5da93c255d2e5569fa91d92457fdb65396b0666fad4fd59b22e154d986e1a9
+patch_args=-Np0
 
 pre_configure() {
 	# Based on native build values
diff --git a/srcpkgs/sudo/template b/srcpkgs/sudo/template
index f70418dd6b75..cae14ef1cf4b 100644
--- a/srcpkgs/sudo/template
+++ b/srcpkgs/sudo/template
@@ -18,6 +18,7 @@ distfiles="https://www.sudo.ws/dist/sudo-${version}.tar.gz"
 checksum=2bbe7c2d6699b84d950ef9a43f09d4d967b8bc244b73bc095c4202068ddbe549
 conf_files="/etc/pam.d/sudo /etc/sudoers"
 lib32disabled=yes
+patch_args=-Np0
 
 post_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/sudoku/template b/srcpkgs/sudoku/template
index 606bdd9557c6..a863e9f84bdf 100644
--- a/srcpkgs/sudoku/template
+++ b/srcpkgs/sudoku/template
@@ -10,6 +10,7 @@ license="Public Domain"
 homepage="https://github.com/cinemast/sudoku"
 distfiles="https://github.com/cinemast/sudoku/archive/v${version}.tar.gz"
 checksum=3ce6d9b237546d4ac7cdb7a6bb0e47d5c99e696a710b8935bce40dc706d32ff2
+patch_args=-Np0
 
 do_install() {
 	vbin sudoku
diff --git a/srcpkgs/sunxi-tools/template b/srcpkgs/sunxi-tools/template
index f4f547c7947d..e88e962b5939 100644
--- a/srcpkgs/sunxi-tools/template
+++ b/srcpkgs/sunxi-tools/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/linux-sunxi/sunxi-tools"
 distfiles="$homepage/archive/$_commit.tar.gz"
 checksum=93922d654df5153d468b0f7900f96fe858fe457894ff2dd0f5dfb5c94b65475b
+patch_args=-Np0
 
 CFLAGS="-std=c99 -I./include"
 
diff --git a/srcpkgs/supercollider/template b/srcpkgs/supercollider/template
index c7a878f91c09..421b50cf8aac 100644
--- a/srcpkgs/supercollider/template
+++ b/srcpkgs/supercollider/template
@@ -18,6 +18,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/supercollider/supercollider"
 distfiles="https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source.tar.bz2"
 checksum=2dd2f8179a55de4735ac940e2e2d0df4e68cc3a33172628e4dd99ae89c74856b
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/supertux2/template b/srcpkgs/supertux2/template
index 4c39b458dad4..75b6b37e3dbd 100644
--- a/srcpkgs/supertux2/template
+++ b/srcpkgs/supertux2/template
@@ -20,5 +20,6 @@ homepage="https://supertux.github.io/"
 distfiles="https://github.com/SuperTux/supertux/releases/download/v${version}/SuperTux-v${version}-Source.tar.gz"
 checksum=26a9e56ea2d284148849f3239177d777dda5b675a10ab2d76ee65854c91ff598
 replaces="supertux2-data>=0"
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
diff --git a/srcpkgs/supertuxkart/template b/srcpkgs/supertuxkart/template
index 519bc615782d..aa4734caa91f 100644
--- a/srcpkgs/supertuxkart/template
+++ b/srcpkgs/supertuxkart/template
@@ -17,6 +17,7 @@ license="GPL-3.0-or-later"
 homepage="https://supertuxkart.net"
 distfiles="https://github.com/${pkgname}/stk-code/releases/download/${version}/SuperTuxKart-${version}-src.tar.xz"
 checksum=052edf0afdbeb99583fe8676fb0ab80ecb6103fb88b7540f858d1b5fa1297d37
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/sutils/template b/srcpkgs/sutils/template
index 640b14ce66d8..6ecc796f206f 100644
--- a/srcpkgs/sutils/template
+++ b/srcpkgs/sutils/template
@@ -10,6 +10,7 @@ license="Unlicense"
 homepage="https://github.com/baskerville/sutils/"
 distfiles="https://github.com/baskerville/sutils/archive/${version}.tar.gz"
 checksum=da8cccace32094430be572cf59d85256023edf9107b12c926c7beb29586c56a3
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/sway/template b/srcpkgs/sway/template
index 4a77658518e8..dd8800028931 100644
--- a/srcpkgs/sway/template
+++ b/srcpkgs/sway/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="https://swaywm.org"
 distfiles="https://github.com/swaywm/${pkgname}/archive/${version}.tar.gz"
 checksum=9ecfd2f38239f7e90922a13cd348fc95fc059e8fa0e4b75b8ffcc7b61685a5fb
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/swiften/template b/srcpkgs/swiften/template
index 969ef1eb5d78..f549e1abcb42 100644
--- a/srcpkgs/swiften/template
+++ b/srcpkgs/swiften/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="http://swift.im/"
 distfiles="http://swift.im/git/swift/snapshot/swift-${version}.tar.bz2"
 checksum=6a3f93e807afb51f1b8ab6ec8fef379dfcc50ba71fef6abeee7c123348da66b0
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/sword/template b/srcpkgs/sword/template
index 13240a993160..15a4213b6d54 100644
--- a/srcpkgs/sword/template
+++ b/srcpkgs/sword/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="https://crosswire.org/sword/index.jsp"
 distfiles="https://crosswire.org/ftpmirror/pub/sword/source/v1.8/sword-${version}.tar.gz"
 checksum=ce9aa8f721a737f406115d35ff438bd07c829fce1605f0d6dcdabc4318bc5e93
+patch_args=-Np0
 
 CXXFLAGS=' -DU_USING_ICU_NAMESPACE=1'
 
diff --git a/srcpkgs/sxiv/template b/srcpkgs/sxiv/template
index 3baaa111f613..f5a5adc2b264 100644
--- a/srcpkgs/sxiv/template
+++ b/srcpkgs/sxiv/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/muennich/sxiv"
 distfiles="https://github.com/muennich/sxiv/archive/v${version}.tar.gz"
 checksum=a382ad57734243818e828ba161fc0357b48d8f3a7f8c29cac183492b46b58949
+patch_args=-Np0
 
 pre_build() {
 	[ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h ||:
diff --git a/srcpkgs/sylpheed/template b/srcpkgs/sylpheed/template
index 5df8312b53dc..a37c3ced4ec8 100644
--- a/srcpkgs/sylpheed/template
+++ b/srcpkgs/sylpheed/template
@@ -13,6 +13,7 @@ homepage="http://sylpheed.sraoss.jp"
 distfiles="http://sylpheed.sraoss.jp/sylpheed/v${version%.*}/$pkgname-$version.tar.bz2"
 checksum=eb23e6bda2c02095dfb0130668cf7c75d1f256904e3a7337815b4da5cb72eb04
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	aclocal -I ac
diff --git a/srcpkgs/synergy/template b/srcpkgs/synergy/template
index 0c4f3b4f130a..79bcf7db11fb 100644
--- a/srcpkgs/synergy/template
+++ b/srcpkgs/synergy/template
@@ -15,6 +15,7 @@ license="GPL-2.0-only"
 homepage="http://synergy-foss.org/"
 distfiles="https://github.com/symless/synergy-core/archive/v${version}-stable.tar.gz"
 checksum=a57989dd2d3ae30657f2b95cba3cae112c189f9bbbc3d1b25b3874859afeb94d
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/share/examples/${pkgname}
diff --git a/srcpkgs/synfigstudio/template b/srcpkgs/synfigstudio/template
index 3e40a99fb28c..a04916c78689 100644
--- a/srcpkgs/synfigstudio/template
+++ b/srcpkgs/synfigstudio/template
@@ -14,6 +14,7 @@ distfiles="https://github.com/synfig/synfig/releases/download/v${version}/synfig
 checksum=af9a9b0064064907ae24a693b607dcba633a8a2cd45fa1357f61c035efd6020e
 python_version=3
 CXXFLAGS="-Wno-deprecated-copy -DHAVE_LOCALE_H=1"
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	# uses synfig to create some icons
diff --git a/srcpkgs/sysbench/template b/srcpkgs/sysbench/template
index e2fe7be0cc8b..88a162b2dc8b 100644
--- a/srcpkgs/sysbench/template
+++ b/srcpkgs/sysbench/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/akopytov/sysbench"
 distfiles="https://github.com/akopytov/sysbench/archive/${version}.tar.gz"
 checksum=e8ee79b1f399b2d167e6a90de52ccc90e52408f7ade1b9b7135727efe181347f
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/sysdig/template b/srcpkgs/sysdig/template
index 8932775a781f..712895300344 100644
--- a/srcpkgs/sysdig/template
+++ b/srcpkgs/sysdig/template
@@ -23,6 +23,7 @@ checksum=b9d05854493d245a7a7e75f77fc654508f720aab5e5e8a3a932bd8eb54e49bda
 disable_parallel_build=yes
 dkms_modules="sysdig ${version}"
 nocross=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args+=" -DMUSL_OPTIMIZED_BUILD=On"
diff --git a/srcpkgs/sysexxer-ng/template b/srcpkgs/sysexxer-ng/template
index 18b2a6e776a6..e09476331dfc 100644
--- a/srcpkgs/sysexxer-ng/template
+++ b/srcpkgs/sysexxer-ng/template
@@ -11,6 +11,7 @@ license="BSL-1.0"
 homepage="https://github.com/linuxmao-org/sysexxer-ng"
 distfiles="${homepage}/releases/download/v${version}/sysexxer-ng-${version}.tar.gz"
 checksum=66e2eb66b7ab34b8287bba3230009a311b7db1870c47911049666c523fced5a9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/sysprof/template b/srcpkgs/sysprof/template
index eae51ea7356b..39ea0ae1b9c4 100644
--- a/srcpkgs/sysprof/template
+++ b/srcpkgs/sysprof/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="http://sysprof.com/"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=8bcd728dc2f74e6f589410370dfb1b8801468bb3cc1803aa240735a7cff241ce
+patch_args=-Np0
 
 # for ITS rules
 if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/taskd/template b/srcpkgs/taskd/template
index 414501166719..8ab72bc17ef5 100644
--- a/srcpkgs/taskd/template
+++ b/srcpkgs/taskd/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://taskwarrior.org"
 distfiles="http://taskwarrior.org/download/${pkgname}-${version}.tar.gz"
 checksum=7b8488e687971ae56729ff4e2e5209ff8806cf8cd57718bfd7e521be130621b4
+patch_args=-Np0
 
 system_accounts="taskd"
 taskd_homedir="/var/lib/taskd"
diff --git a/srcpkgs/tbb/template b/srcpkgs/tbb/template
index aeef6ebdd061..17fad3bc5e3a 100644
--- a/srcpkgs/tbb/template
+++ b/srcpkgs/tbb/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://www.threadingbuildingblocks.org"
 distfiles="https://github.com/oneapi-src/oneTBB/archive/${_ver}.tar.gz"
 checksum=2103cc6238c935664f87680618f6684d57501d4a2fa8ea8f6c97ad6ff7dc722a
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*)
diff --git a/srcpkgs/tc-play/template b/srcpkgs/tc-play/template
index 0f49755ebaf9..85cd91f5d7d5 100644
--- a/srcpkgs/tc-play/template
+++ b/srcpkgs/tc-play/template
@@ -14,6 +14,7 @@ license="BSD-2-clause"
 homepage="https://github.com/bwalex/tc-play"
 distfiles="https://github.com/bwalex/${pkgname}/archive/v${version}.tar.gz"
 checksum=ad53cd814a23b4f61a1b2b6dc2539624ffb550504c400c45cbd8cd1da4c7d90a
+patch_args=-Np0
 
 pre_build() {
 	sed -i Makefile.classic -e"s; -o tcplay; ${LDFLAGS}&;"
diff --git a/srcpkgs/tcl/template b/srcpkgs/tcl/template
index d36663d8b1fa..e20273428365 100644
--- a/srcpkgs/tcl/template
+++ b/srcpkgs/tcl/template
@@ -16,6 +16,7 @@ license="TCL"
 homepage="http://www.tcl.tk"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}${version}-src.tar.gz"
 checksum=8c0486668586672c5693d7d95817cb05a18c5ecca2f40e2836b9578064088258
+patch_args=-Np0
 
 shlib_provides="libtcl${version%.*}.so"
 
diff --git a/srcpkgs/tcpdump/template b/srcpkgs/tcpdump/template
index 1956a1ce16b3..724a066b8a22 100644
--- a/srcpkgs/tcpdump/template
+++ b/srcpkgs/tcpdump/template
@@ -12,6 +12,7 @@ homepage="https://www.tcpdump.org"
 changelog="https://www.tcpdump.org/tcpdump-changes.txt"
 distfiles="https://www.tcpdump.org/release/${pkgname}-${version}.tar.gz"
 checksum=79b36985fb2703146618d87c4acde3e068b91c553fb93f021a337f175fd10ebe
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/teensy_loader_cli/template b/srcpkgs/teensy_loader_cli/template
index 267415fa1561..a02e5ea78fed 100644
--- a/srcpkgs/teensy_loader_cli/template
+++ b/srcpkgs/teensy_loader_cli/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://www.pjrc.com/teensy/loader_cli.html"
 distfiles="https://github.com/PaulStoffregen/teensy_loader_cli/archive/${version}.tar.gz"
 checksum=5c36fe45b9a3a71ac38848b076cd692bf7ca8826a69941c249daac3a1d95e388
+patch_args=-Np0
 
 do_install() {
 	vbin teensy_loader_cli
diff --git a/srcpkgs/teeworlds/template b/srcpkgs/teeworlds/template
index 268c85e43ac8..69c907e600c3 100644
--- a/srcpkgs/teeworlds/template
+++ b/srcpkgs/teeworlds/template
@@ -10,6 +10,7 @@ license="custom"
 homepage="https://www.teeworlds.com"
 distfiles="https://github.com/teeworlds/teeworlds/archive/${version}.tar.gz"
 checksum=6e67846b38750d2a372d7835fa3775db016458a20a85aa52f1c758102ddd4abe
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686) _ARCH=x86;;
diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template
index 30a1d2ec6eec..f0026056b7dd 100644
--- a/srcpkgs/telegram-desktop/template
+++ b/srcpkgs/telegram-desktop/template
@@ -26,6 +26,7 @@ homepage="https://desktop.telegram.org/"
 changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
 distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
 checksum=97526f0b4adf04cf86b605ae84f3efaacf58eb8f828bab8f4fe752a4fac62fb2
+patch_args=-Np0
 
 build_options="spellcheck"
 build_options_default="spellcheck"
diff --git a/srcpkgs/telepathy-mission-control/template b/srcpkgs/telepathy-mission-control/template
index f539aa07f1c8..a2c3275fcf6b 100644
--- a/srcpkgs/telepathy-mission-control/template
+++ b/srcpkgs/telepathy-mission-control/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="http://telepathy.freedesktop.org"
 distfiles="${homepage}/releases/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=4c6b433b8b9079fd7df3e29aefcad6755a2081a9a634ffb6b33936c7d0d8bd03
+patch_args=-Np0
 
 telepathy-mission-control-devel_package() {
 	depends="telepathy-glib-devel>=0.22 ${sourcepkg}>=${version}"
diff --git a/srcpkgs/tepl/template b/srcpkgs/tepl/template
index 2213a79cc0f1..ec5879500caf 100644
--- a/srcpkgs/tepl/template
+++ b/srcpkgs/tepl/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Projects/Tepl"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=a86397a895dca9c0de7a5ccb063bda8f7ef691cccb950ce2cfdee367903e7a63
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/terminal_markdown_viewer/template b/srcpkgs/terminal_markdown_viewer/template
index b13f8ac93fbf..0093b049b9ab 100644
--- a/srcpkgs/terminal_markdown_viewer/template
+++ b/srcpkgs/terminal_markdown_viewer/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/axiros/terminal_markdown_viewer"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=58dbdf8c051a2d7f8c00e4dc13c655c335cbc2bc96851dd0388d73a21c4507b6
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/tesseract-ocr/template b/srcpkgs/tesseract-ocr/template
index 7ed37c53c848..c6c574f4c483 100644
--- a/srcpkgs/tesseract-ocr/template
+++ b/srcpkgs/tesseract-ocr/template
@@ -18,6 +18,7 @@ distfiles="
  https://github.com/tesseract-ocr/tessdata/archive/${_tessdataver}.tar.gz>tessdata-${_tessdataver}.tar.gz"
 checksum="2a66ff0d8595bff8f04032165e6c936389b1e5727c3ce5a27b3e059d218db1cb
  38c637d3a1763f6c3d32e8f1d979f045668676ec5feb8ee1869ee77cedd31b08"
+patch_args=-Np0
 
 build_options="openmp"
 build_options_default="openmp"
diff --git a/srcpkgs/tesseract/template b/srcpkgs/tesseract/template
index 5eca40635fd4..e073eee88791 100644
--- a/srcpkgs/tesseract/template
+++ b/srcpkgs/tesseract/template
@@ -12,6 +12,7 @@ license="zlib"
 homepage="http://tesseract.gg/"
 distfiles="http://download.tuxfamily.org/tesseract/tesseract_2014_05_12_first_edition_linux.tar.xz"
 checksum=8d6e07dd154a40a3f593e52289335c036f06cf90a0ebc400c4650adb3395a0f4
+patch_args=-Np0
 
 pre_build() {
 	for dim in 16 32 48 64 128 256 512; do
diff --git a/srcpkgs/tevent/template b/srcpkgs/tevent/template
index 731d707efaaa..86bbe45ef744 100644
--- a/srcpkgs/tevent/template
+++ b/srcpkgs/tevent/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://tevent.samba.org"
 distfiles="https://ftp.samba.org/pub/tevent/tevent-${version}.tar.gz"
 checksum=f8427822e5b2878fb8b28d6f50d96848734f3f3130612fb574fdd2d2148a6696
+patch_args=-Np0
 
 export PYTHON_CONFIG="${XBPS_CROSS_BASE}/usr/bin/python3-config"
 
diff --git a/srcpkgs/texi2mdoc/template b/srcpkgs/texi2mdoc/template
index 1d3eceaee503..d6b6bd659a8d 100644
--- a/srcpkgs/texi2mdoc/template
+++ b/srcpkgs/texi2mdoc/template
@@ -9,6 +9,7 @@ license="ISC"
 homepage="http://mdocml.bsd.lv/texi2mdoc"
 distfiles="http://mdocml.bsd.lv/texi2mdoc/snapshots/${pkgname}-${version}.tgz"
 checksum=7a45fd87c27cc8970a18db9ddddb2f09f18b8dd5152bf0ca377c3a5e7d304bfe
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/texlab/template b/srcpkgs/texlab/template
index c61ac718f0ac..33cffac2c276 100644
--- a/srcpkgs/texlab/template
+++ b/srcpkgs/texlab/template
@@ -11,6 +11,7 @@ distfiles="https://github.com/latex-lsp/${pkgname}/archive/v${version}.tar.gz
  https://github.com/salsa-rs/salsa/archive/v0.13.2.tar.gz"
 checksum="04978b118b455607b5debd0a886f0728ca6c498289d2a0c60d8f83b316dc5ebc
  2e33e20d22692f6bcd4d638392b9c2cfb716bcd28998e809db0dd88be4f70a31"
+patch_args=-Np0
 
 post_extract() {
 	mv ../salsa-* salsa
diff --git a/srcpkgs/texlive/template b/srcpkgs/texlive/template
index b9a19c12a347..bbbf04254bf3 100644
--- a/srcpkgs/texlive/template
+++ b/srcpkgs/texlive/template
@@ -81,6 +81,7 @@ checksum=e32f3d08cbbbcf21d8d3f96f2143b64a1f5e4cb01b06b761d6249c8785249078
 python_version=3
 # Virtual package cares only about year part of version
 provides="tex-${version%${version#????}}_1"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ] ; then
 	# Tangle is required for cross compile
diff --git a/srcpkgs/texstudio/template b/srcpkgs/texstudio/template
index 9ae4a1805c9a..b6462e019170 100644
--- a/srcpkgs/texstudio/template
+++ b/srcpkgs/texstudio/template
@@ -18,6 +18,7 @@ homepage="https://texstudio.org/"
 changelog="https://raw.githubusercontent.com/texstudio-org/texstudio/master/utilities/manual/CHANGELOG.txt"
 distfiles="https://github.com/texstudio-org/texstudio/archive/${version}.tar.gz"
 checksum=7251f8e6f2b17395c428e9ff13bfc2c58e5f07ec09aae1036ab912dcf89f6fad
+patch_args=-Np0
 
 build_options="phonon poppler"
 desc_option_phonon="build with phonon (=media support for pdf preview)"
diff --git a/srcpkgs/textosaurus/template b/srcpkgs/textosaurus/template
index 5223d1f5566d..bc317d479553 100644
--- a/srcpkgs/textosaurus/template
+++ b/srcpkgs/textosaurus/template
@@ -16,6 +16,7 @@ distfiles="${homepage}/archive/${version}.tar.gz
  https://github.com/martinrotter/scintilla/archive/${_scommit}.tar.gz"
 checksum="82093b6c8725d104498ce4a66e4cf5a3aa1f057b34600bd5d67413dce9bff2cf
  fad739e3493dea0f7435114ac936dc255d3b1471bd61c7e7349845ab626b95d9"
+patch_args=-Np0
 
 post_extract() {
 	cp -Trp ${XBPS_BUILDDIR}/scintilla-${_scommit} ${wrksrc}/src/libtextosaurus/3rd-party/scintilla
diff --git a/srcpkgs/texworks/template b/srcpkgs/texworks/template
index 87ca84049343..92402d6d98ee 100644
--- a/srcpkgs/texworks/template
+++ b/srcpkgs/texworks/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.tug.org/texworks"
 distfiles="https://github.com/texworks/texworks/archive/release-${version}.tar.gz"
 checksum=b4695539b9666935d2c467cc618c7d79c174e2ec728e31f72df8534862a5c290
+patch_args=-Np0
 
 do_check() {
 	: # requires xserver
diff --git a/srcpkgs/tgt/template b/srcpkgs/tgt/template
index c5a638e6e3a5..90a37ec9d1ae 100644
--- a/srcpkgs/tgt/template
+++ b/srcpkgs/tgt/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="http://stgt.sourceforge.net/"
 distfiles="https://github.com/fujita/tgt/archive/v${version}.tar.gz"
 checksum=e2255482f1a2797c115a6d545c37428b10a4ba6276a2af787da5378fa4e34e75
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/CFLAGS/MYCFLAGS/; s/\$(MYCFLAGS)/& $(CFLAGS) -Wno-error=stringop-truncation/g' usr/Makefile
diff --git a/srcpkgs/thingylaunch/template b/srcpkgs/thingylaunch/template
index 5e862376125b..6db8f5ef127a 100644
--- a/srcpkgs/thingylaunch/template
+++ b/srcpkgs/thingylaunch/template
@@ -12,6 +12,7 @@ license="BSD"
 homepage="https://gahr.ch/thingylaunch/"
 distfiles="https://github.com/gahr/${pkgname}/archive/${version}.tar.gz"
 checksum=4d9cc6b826bddb3d02836f721316bfc24c2b31f75c9c2d5077ae162eb3d60b60
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYRIGHT
diff --git a/srcpkgs/thunderbird/template b/srcpkgs/thunderbird/template
index 72155ef786e4..4d152829f945 100644
--- a/srcpkgs/thunderbird/template
+++ b/srcpkgs/thunderbird/template
@@ -12,6 +12,7 @@ license="MPL-2.0, GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.thunderbird.net/"
 distfiles="${MOZILLA_SITE}/${pkgname}/releases/${version}/source/${pkgname}-${version}.source.tar.xz"
 checksum=ad070eb27ed5087819b62495e8f96ec0c8d8827598c415648c69ef989c634676
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/tickr/template b/srcpkgs/tickr/template
index 285e2419fccf..5bd58b02022f 100644
--- a/srcpkgs/tickr/template
+++ b/srcpkgs/tickr/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.open-tickr.net/"
 distfiles="https://www.open-tickr.net/src/${pkgname}-${version}.tar.gz"
 checksum=37dd2d970cd9bf9b0ebc5e6cbf6605ea460008f577a43a7500e506e9dffcd802
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	arm*|ppc64|ppc) configure_args+=" LIBS=-lm" ;;
diff --git a/srcpkgs/tidy5/template b/srcpkgs/tidy5/template
index 616b746d8cd1..eecaf052f7d3 100644
--- a/srcpkgs/tidy5/template
+++ b/srcpkgs/tidy5/template
@@ -14,6 +14,7 @@ license="W3C"
 homepage="http://www.htacg.org/${_reponame}/"
 distfiles="https://github.com/htacg/${_reponame}/archive/${version}.tar.gz"
 checksum=5caa2c769204f506e24ea4986a45abe23f71d14f0fe968314f20065f342ffdba
+patch_args=-Np0
 
 provides="tidy-${version}_${revision}"
 replaces="tidy>0"
diff --git a/srcpkgs/tilp2/template b/srcpkgs/tilp2/template
index 276c85e6e74b..a8c9e0851d4b 100644
--- a/srcpkgs/tilp2/template
+++ b/srcpkgs/tilp2/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.ticalc.org"
 distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${version}/${pkgname}-${version}.tar.bz2"
 checksum=7b3ab363eeb52504d6ef5811c5d264f8016060bb7bd427be5a064c2ed7384e47
+patch_args=-Np0
 
 pre_configure() {
 	mkdir -p m4
diff --git a/srcpkgs/tinyxml/template b/srcpkgs/tinyxml/template
index 29c19bb162d8..291c14f84dd5 100644
--- a/srcpkgs/tinyxml/template
+++ b/srcpkgs/tinyxml/template
@@ -9,6 +9,7 @@ homepage="http://www.grinninglizard.com/tinyxml/"
 license="zlib"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_2_6_2.tar.gz"
 checksum=15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593
+patch_args=-Np0
 
 do_build() {
 	# Fix Makefile
diff --git a/srcpkgs/tlsh/template b/srcpkgs/tlsh/template
index 4ee1ccdc728a..a173f36f8225 100644
--- a/srcpkgs/tlsh/template
+++ b/srcpkgs/tlsh/template
@@ -11,6 +11,7 @@ license="Apache-2.0, BSD-3-Clause"
 homepage="https://github.com/trendmicro/tlsh"
 distfiles="https://github.com/trendmicro/tlsh/archive/${version}.tar.gz"
 checksum=a8a7972d8bafb5fd66bd597b72037356dd9882e71a7e9b5f37281751a99ce686
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i src/CMakeLists.txt -e 's/set(TLSH_SHARED_LIBRARY 0)/set(TLSH_SHARED_LIBRARY 1)/'
diff --git a/srcpkgs/tmines/template b/srcpkgs/tmines/template
index 7669477aea95..8a8a4f4a12af 100644
--- a/srcpkgs/tmines/template
+++ b/srcpkgs/tmines/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://github.com/tropf/tmines"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=7b5037c7cedd6c744ec63d10fa59b415e5e3654e52b0cfda561ac545af8576cf
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone";;
diff --git a/srcpkgs/tnftp/template b/srcpkgs/tnftp/template
index c0b75c164f25..362abdd4718c 100644
--- a/srcpkgs/tnftp/template
+++ b/srcpkgs/tnftp/template
@@ -11,6 +11,7 @@ license="BSD"
 homepage="http://netbsd.gw.com/cgi-bin/man-cgi?ftp"
 distfiles="ftp://ftp.netbsd.org/pub/NetBSD/misc/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=ba4a92b693d04179664524eef0801c8eed4447941c9855f377f98f119f221c03
+patch_args=-Np0
 
 alternatives="
  ftp:ftp:/usr/bin/${pkgname}
diff --git a/srcpkgs/tomahawk/template b/srcpkgs/tomahawk/template
index 0edbacc5f8ad..23cdba671dd8 100644
--- a/srcpkgs/tomahawk/template
+++ b/srcpkgs/tomahawk/template
@@ -31,6 +31,7 @@ desc_option_hatchet="Enable support for http://hatchet.is"
 desc_option_kde="Enable support for KDE"
 desc_option_xmpp="Enable support for XMPP"
 build_options_default="xmpp upower"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake"
diff --git a/srcpkgs/tor/template b/srcpkgs/tor/template
index 42370ea8ba21..eb10de66fa9f 100644
--- a/srcpkgs/tor/template
+++ b/srcpkgs/tor/template
@@ -15,6 +15,7 @@ homepage="https://www.torproject.org/"
 changelog="https://gitweb.torproject.org/tor.git/plain/ReleaseNotes"
 distfiles="https://dist.torproject.org/tor-${version}.tar.gz"
 checksum=57ded091e8bcdcebb0013fe7ef4a4439827cb169358c7874fd05fa00d813e227
+patch_args=-Np0
 
 conf_files="/etc/tor/torrc"
 system_accounts="tor"
diff --git a/srcpkgs/torbrowser-launcher/template b/srcpkgs/torbrowser-launcher/template
index 2d8ce5bf282e..9634f108bb05 100644
--- a/srcpkgs/torbrowser-launcher/template
+++ b/srcpkgs/torbrowser-launcher/template
@@ -14,6 +14,7 @@ homepage="https://github.com/micahflee/torbrowser-launcher"
 changelog="https://raw.githubusercontent.com/micahflee/torbrowser-launcher/master/CHANGELOG.md"
 distfiles="https://github.com/micahflee/torbrowser-launcher/archive/v${version}.tar.gz"
 checksum=58b17bd5a9a6f35fe78d83e69fdf77919ffa8c2492b1add1d47aed6237794f93
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/touchegg/template b/srcpkgs/touchegg/template
index 538277a2c683..a09ec9637486 100644
--- a/srcpkgs/touchegg/template
+++ b/srcpkgs/touchegg/template
@@ -13,6 +13,7 @@ homepage="https://github.com/JoseExposito/touchegg"
 distfiles="https://github.com/JoseExposito/touchegg/archive/${version}.tar.gz"
 checksum=efff0f2011078cea15f2f130d1501714f8e3f82b7e883e81eccf956ac7966d0e
 system_accounts="_touchegg"
+patch_args=-Np0
 
 post_install() {
 	# we don't want the package being installed to mean it should be autostarted
diff --git a/srcpkgs/trace-cmd/template b/srcpkgs/trace-cmd/template
index 34f9bcb40d42..4410e51bca9c 100644
--- a/srcpkgs/trace-cmd/template
+++ b/srcpkgs/trace-cmd/template
@@ -16,6 +16,7 @@ homepage="http://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git/"
 distfiles="http://git.kernel.org/cgit/linux/kernel/git/rostedt/${pkgname}.git/snapshot/${pkgname}-v${version}.tar.gz"
 checksum=9404fc3cf540ea795304608068c9db6cdb38b90584c7f3c43249785913d54b38
 disable_parallel_build=yes
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/share/bash-completion/completions
diff --git a/srcpkgs/traceroute/template b/srcpkgs/traceroute/template
index f92c929c300f..4a65dc7fb2e2 100644
--- a/srcpkgs/traceroute/template
+++ b/srcpkgs/traceroute/template
@@ -8,6 +8,7 @@ license="GPL-2"
 homepage="http://traceroute.sourceforge.net"
 distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz"
 checksum=3669d22a34d3f38ed50caba18cd525ba55c5c00d5465f2d20d7472e5d81603b6
+patch_args=-Np0
 
 alternatives="
  traceroute:traceroute:/usr/bin/linux-traceroute
diff --git a/srcpkgs/tracker/template b/srcpkgs/tracker/template
index 810675677fe5..c99b997dd55f 100644
--- a/srcpkgs/tracker/template
+++ b/srcpkgs/tracker/template
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later"
 homepage="https://live.gnome.org/Tracker"
 distfiles="${GNOME_SITE}/tracker/${version%.*}/tracker-${version}.tar.xz"
 checksum=bd1eb4122135296fa7b57b1c3fa0ed602cf7d06c0b8e534d0bd17ff5f97feef2
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" dbus"
diff --git a/srcpkgs/tracker3-miners/template b/srcpkgs/tracker3-miners/template
index 6ea8e49a1a51..47a75439b428 100644
--- a/srcpkgs/tracker3-miners/template
+++ b/srcpkgs/tracker3-miners/template
@@ -27,6 +27,7 @@ license="GPL-2.0-or-later"
 homepage="https://developer.gnome.org/libtracker-miner/stable"
 distfiles="${GNOME_SITE}/tracker-miners/${version%.*}/tracker-miners-${version}.tar.xz"
 checksum=c9be14871b1398e6e656a354a8f8f59e69e93169017f2b28308ef439324fd12b
+patch_args=-Np0
 
 # relies on unsupported ops in chroot
 do_check() {
diff --git a/srcpkgs/transcode/template b/srcpkgs/transcode/template
index 775cd09fc4e3..518a9c20c1ab 100644
--- a/srcpkgs/transcode/template
+++ b/srcpkgs/transcode/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://bitbucket.org/mojaves/transcode-tcforge"
 distfiles="https://bitbucket.org/mojaves/transcode-tcforge/get/release-1_1_7.tar.bz2"
 checksum=4693e3f4226f48fb37c8ae9609601724e8a276ca09f8686ddb43f8a255d994fe
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/transmission/template b/srcpkgs/transmission/template
index 5a61a0a2bdd3..794d5c49fff4 100644
--- a/srcpkgs/transmission/template
+++ b/srcpkgs/transmission/template
@@ -14,6 +14,7 @@ license="MIT, GPL-2.0-or-later"
 homepage="https://www.transmissionbt.com"
 distfiles="https://github.com/transmission/transmission-releases/raw/master/${pkgname}-${version}.tar.xz"
 checksum=9144652fe742f7f7dd6657716e378da60b751aaeda8bef8344b3eefc4db255f2
+patch_args=-Np0
 
 # Create transmission system user/group
 system_accounts="transmission"
diff --git a/srcpkgs/treesheets/template b/srcpkgs/treesheets/template
index 4cd41afbd932..fa39eb3426d0 100644
--- a/srcpkgs/treesheets/template
+++ b/srcpkgs/treesheets/template
@@ -11,6 +11,7 @@ license="Zlib"
 homepage="http://strlen.com/treesheets/"
 distfiles="https://github.com/aardappel/treesheets/archive/v${version}.tar.gz"
 checksum=84eb82f122bc7be3ded399d2511536128911477a4a69c51b26b856de2160405f
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/lib/${pkgname}
diff --git a/srcpkgs/trinity/template b/srcpkgs/trinity/template
index a7a561e89cb8..77017a15a956 100644
--- a/srcpkgs/trinity/template
+++ b/srcpkgs/trinity/template
@@ -10,6 +10,7 @@ homepage="https://github.com/kernelslacker/trinity"
 distfiles="https://github.com/kernelslacker/trinity/archive/v${version}.tar.gz"
 checksum=9abd6cea3f6bd3b36794e038317d5ed6001dc52ad3b1cd7071f6cc7c5baecd3c
 nocross="Mis-use of memfd_create declaration"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/trojita/template b/srcpkgs/trojita/template
index 8a291182b516..e12ea1749665 100644
--- a/srcpkgs/trojita/template
+++ b/srcpkgs/trojita/template
@@ -14,6 +14,7 @@ license="GPL-2,GPL-3"
 homepage="http://trojita.flaska.net/"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=e08da881721cafa00ecd772eaef6b99fd37d068cb703eeb532de0ed1ea0136d9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/trousers/template b/srcpkgs/trousers/template
index 5d962adec91a..2f8044e52f45 100644
--- a/srcpkgs/trousers/template
+++ b/srcpkgs/trousers/template
@@ -15,6 +15,7 @@ homepage="http://trousers.sourceforge.net/"
 # distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 distfiles="https://sources.voidlinux.org/trousers-${version}/trousers-${version}.tar.gz"
 checksum=ce50713a261d14b735ec9ccd97609f0ad5ce69540af560e8c3ce9eb5f2d28f47
+patch_args=-Np0
 
 make_dirs="/var/lib/tpm 0700 tss tss"
 
diff --git a/srcpkgs/tsocks/template b/srcpkgs/tsocks/template
index e1a8ff7ff7c2..e24ac3e48325 100644
--- a/srcpkgs/tsocks/template
+++ b/srcpkgs/tsocks/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://tsocks.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/tsocks/tsocks-$version.tar.gz"
 checksum=849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b347
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ttyrec/template b/srcpkgs/ttyrec/template
index cff70746cc57..144b33595d6f 100644
--- a/srcpkgs/ttyrec/template
+++ b/srcpkgs/ttyrec/template
@@ -8,6 +8,7 @@ license="BSD-4-Clause-UC"
 homepage="http://0xcc.net/ttyrec"
 distfiles="http://0xcc.net/ttyrec/${pkgname}-${version}.tar.gz"
 checksum=ef5e9bf276b65bb831f9c2554cd8784bd5b4ee65353808f82b7e2aef851587ec
+patch_args=-Np0
 
 do_build() {
 	sed -i 's/\$(CFLAGS)/$(LDFLAGS)/' Makefile
diff --git a/srcpkgs/tup/template b/srcpkgs/tup/template
index bb07b10f5826..afd6a942f1be 100644
--- a/srcpkgs/tup/template
+++ b/srcpkgs/tup/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://gittup.org/tup/index.html"
 distfiles="https://github.com/gittup/${pkgname}/archive/v${version}.tar.gz"
 checksum=9b0951afaa749186eb55d88860405b2f6b3d88632d1b5df1ec4a0bf973d8d326
+patch_args=-Np0
 
 do_configure() {
 	sed -i "s/git describe/echo ${version}/" src/tup/link.sh
diff --git a/srcpkgs/turbovnc/template b/srcpkgs/turbovnc/template
index 8bb508ee94a2..77a81c1d8c16 100644
--- a/srcpkgs/turbovnc/template
+++ b/srcpkgs/turbovnc/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://turbovnc.org"
 distfiles="${SOURCEFORGE_SITE}/turbovnc/${pkgname}-${version}.tar.gz"
 checksum=71ff553dbad24f8339e168fe90e09bc2b13c21e453f28276d0e5c9c408bd9de2
+patch_args=-Np0
 
 conf_files="/etc/*.conf"
 archs="i686* x86_64* ppc64*"
diff --git a/srcpkgs/txr/template b/srcpkgs/txr/template
index bcbe6d85b0d7..5ebfdb697ebf 100644
--- a/srcpkgs/txr/template
+++ b/srcpkgs/txr/template
@@ -15,6 +15,7 @@ changelog="http://www.kylheku.com/cgit/txr/tree/RELNOTES"
 distfiles="http://www.kylheku.com/cgit/txr/snapshot/${pkgname}-${version}.tar.bz2"
 checksum=58e3e19bb7f3f9a440761f046fdacbc4d619b11c494a4ed9f8ad25c7a2974ddc
 nopie=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" txr"
diff --git a/srcpkgs/typespeed/template b/srcpkgs/typespeed/template
index 52d5bf5291a1..a2570048b47e 100644
--- a/srcpkgs/typespeed/template
+++ b/srcpkgs/typespeed/template
@@ -12,6 +12,7 @@ homepage="http://typespeed.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum="5c860385ceed8a60f13217cc0192c4c2b4705c3e80f9866f7d72ff306eb72961"
 mutable_files="/var/games/typespeed.score"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/u2f-hidraw-policy/template b/srcpkgs/u2f-hidraw-policy/template
index 26250c88a571..dc013c10cd8c 100644
--- a/srcpkgs/u2f-hidraw-policy/template
+++ b/srcpkgs/u2f-hidraw-policy/template
@@ -11,6 +11,7 @@ license="LGPL-2.0-or-later"
 homepage="https://github.com/amluto/u2f-hidraw-policy"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=50e327a9df3dd3db3b292af41fb119cc4c8d9bc29abddfb442e972053bf5e6d1
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr
diff --git a/srcpkgs/u9fs/template b/srcpkgs/u9fs/template
index 79decd0299d0..adeadd264e52 100644
--- a/srcpkgs/u9fs/template
+++ b/srcpkgs/u9fs/template
@@ -12,6 +12,7 @@ license="custom:MIT-like"
 homepage="https://bitbucket.org/plan9-from-bell-labs/u9fs"
 distfiles="https://bitbucket.org/plan9-from-bell-labs/u9fs/get/${_commit}.tar.gz"
 checksum=201619c1c29bad1c9ed1bc886afe7b4965cfd0781b2296c9de87db10ba71615d
+patch_args=-Np0
 
 do_install() {
 	vbin u9fs
diff --git a/srcpkgs/ucspi-ssl/template b/srcpkgs/ucspi-ssl/template
index 1f2c6c36793c..c90b0c6c2378 100644
--- a/srcpkgs/ucspi-ssl/template
+++ b/srcpkgs/ucspi-ssl/template
@@ -17,6 +17,7 @@ distfiles="http://www.fehcom.de/ipnet/ucspi-ssl/ucspi-ssl-${version}.tgz"
 checksum=e7fcd4ceec351a0f36b7d27188758709a6c095460ed4dce434e0c5d463c4c4ea
 # ad hoc build system breaks parallel build and cross-compilation
 disable_parallel_build="ad hoc build system breaks parallel build"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/udptunnel/template b/srcpkgs/udptunnel/template
index dfc7ee1fe5ed..79c54ae0ad68 100644
--- a/srcpkgs/udptunnel/template
+++ b/srcpkgs/udptunnel/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="http://www.cs.columbia.edu/~lennox/udptunnel/"
 distfiles="http://www.cs.columbia.edu/~lennox/udptunnel/udptunnel-${version}.tar.gz"
 checksum=45c0e12045735bc55734076ebbdc7622c746d1fe4e6f7267fa122e2421754670
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -vfi
diff --git a/srcpkgs/ufoai/template b/srcpkgs/ufoai/template
index 3b36cf0d6db1..41c4c4998898 100644
--- a/srcpkgs/ufoai/template
+++ b/srcpkgs/ufoai/template
@@ -22,6 +22,7 @@ checksum="0c7cc3bc9efeb276f71cbe6ee8ff7c76f98d183de79f1a069fa63059cf182a8f
 replaces="ufoai-data>=0"
 ignore_elf_dirs="/usr/share/ufoai"
 broken="game doesn't work"
+patch_args=-Np0
 
 # suppress a lot of warnings
 CXXFLAGS="-Wno-cast-align -Wno-cast-qual -Wno-inline"
diff --git a/srcpkgs/ufraw/template b/srcpkgs/ufraw/template
index 476435c6abab..8cec750cdaa4 100644
--- a/srcpkgs/ufraw/template
+++ b/srcpkgs/ufraw/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://ufraw.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/ufraw/ufraw/ufraw-${version}/ufraw-${version}.tar.gz"
 checksum=f7abd28ce587db2a74b4c54149bd8a2523a7ddc09bedf4f923246ff0ae09a25e
+patch_args=-Np0
 
 build_options="extras"
 
diff --git a/srcpkgs/uftrace/template b/srcpkgs/uftrace/template
index 9f4f44d47652..ed711e2f1c06 100644
--- a/srcpkgs/uftrace/template
+++ b/srcpkgs/uftrace/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/namhyung/uftrace"
 distfiles="https://github.com/namhyung/uftrace/archive/v${version}.tar.gz"
 checksum=b8b56d540ea95c3eafe56440d6a998e0a140d53ca2584916b6ca82702795bbd9
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone"; export LDFLAGS=-largp;;
diff --git a/srcpkgs/uim/template b/srcpkgs/uim/template
index 1a782b680f78..6ea0e07ba05f 100644
--- a/srcpkgs/uim/template
+++ b/srcpkgs/uim/template
@@ -17,6 +17,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/uim/uim/wiki"
 distfiles="https://github.com/uim/uim/releases/download/${version}/uim-${version}.tar.bz2"
 checksum=34599bbcc4e5ab87832370763e38be5100984a64237555e9234a1ea225a0fadc
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/ulauncher/template b/srcpkgs/ulauncher/template
index 78888538e064..be7bdd1bdfc0 100644
--- a/srcpkgs/ulauncher/template
+++ b/srcpkgs/ulauncher/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://ulauncher.io/"
 distfiles="https://github.com/Ulauncher/Ulauncher/releases/download/${version}/${pkgname}_${version}.tar.gz"
 checksum=c4433bb06d0d456a2e0eee8dc4d03de164f273290484f2380728c3936ca31e3a
+patch_args=-Np0
 
 pre_build() {
 	export DISPLAY=
diff --git a/srcpkgs/ulogd/template b/srcpkgs/ulogd/template
index 55e9ae34a0e1..98a990f5af42 100644
--- a/srcpkgs/ulogd/template
+++ b/srcpkgs/ulogd/template
@@ -15,6 +15,7 @@ distfiles="${homepage}/files/${pkgname}-${version}.tar.bz2"
 checksum=990a05494d9c16029ba0a83f3b7294fc05c756546b8d60d1c1572dc25249a92b
 CFLAGS="-D_GNU_SOURCE"
 system_accounts="_ulogd"
+patch_args=-Np0
 
 post_install() {
 	vinstall ulogd.conf 644 etc
diff --git a/srcpkgs/unison/template b/srcpkgs/unison/template
index c3cb8e454c85..a9f349f00f76 100644
--- a/srcpkgs/unison/template
+++ b/srcpkgs/unison/template
@@ -10,6 +10,7 @@ homepage="http://www.cis.upenn.edu/~bcpierce/unison/"
 distfiles="https://github.com/bcpierce00/unison/archive/v${version}.tar.gz"
 checksum=0c287d17f52729440b2bdc28edf4d19b2d5ea5869983d78e780d501c5866914b
 nocross="OCaml does not cross compile"
+patch_args=-Np0
 
 do_build() {
 	CFLAGS= make ${makejobs} UISTYLE=text DEBUGGING=false THREADS=true
diff --git a/srcpkgs/unknown-horizons/template b/srcpkgs/unknown-horizons/template
index 56404addb864..fa7dc8ad7edc 100644
--- a/srcpkgs/unknown-horizons/template
+++ b/srcpkgs/unknown-horizons/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later, MIT, BSD-3-Clause, CC-BY-SY-3.0"
 homepage="http://unknown-horizons.org"
 distfiles="https://github.com/unknown-horizons/unknown-horizons/archive/${version}.tar.gz"
 checksum=a417fd3d342212fd190e4f21be82ef13c10e1ed7c288fbbe46e46200cf3de4d8
+patch_args=-Np0
 
 pre_install() {
 	python3 horizons/engine/generate_atlases.py 2048
diff --git a/srcpkgs/urbanterror/template b/srcpkgs/urbanterror/template
index 947a12cf2d8f..27453d5f8e57 100644
--- a/srcpkgs/urbanterror/template
+++ b/srcpkgs/urbanterror/template
@@ -12,6 +12,7 @@ homepage="https://github.com/Barbatos/ioq3-for-UrbanTerror-4"
 distfiles="https://github.com/Barbatos/ioq3-for-UrbanTerror-4/archive/release-${version}.tar.gz"
 checksum=ce9d09a8ad149f8a1d36a85a586e1dd8ec9b8dcb3e5e9e82ec2a33017655bf43
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/urlview/template b/srcpkgs/urlview/template
index 7fdbb3119577..5144c2ea8b4d 100644
--- a/srcpkgs/urlview/template
+++ b/srcpkgs/urlview/template
@@ -12,6 +12,7 @@ license="GPL-2.0"
 homepage="https://github.com/sigpipe/urlview"
 distfiles="https://gnupg.org/ftp/mutt/contrib/$pkgname-$version.tar.gz"
 checksum=74d18026e84e3cd70a3fdd1a7247a68031b0c1c1c6d761d64b7063ff71091cc3
+patch_args=-Np0
 
 pre_configure() {
 	sed -i '/install-data-local/,/^$/d' Makefile.am
diff --git a/srcpkgs/usbguard/template b/srcpkgs/usbguard/template
index c2c6829a13ad..54ad0e6e9df9 100644
--- a/srcpkgs/usbguard/template
+++ b/srcpkgs/usbguard/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://usbguard.github.io"
 distfiles="https://github.com/USBGuard/usbguard/releases/download/usbguard-$version/usbguard-$version.tar.gz"
 checksum=5617986cd5dd1a2d311041648a1977d836cf4e33a4121d7f82599f21496abc42
+patch_args=-Np0
 
 post_install() {
 	vsv usbguard
diff --git a/srcpkgs/uwm/template b/srcpkgs/uwm/template
index 071a909fa447..f7fc99bf8be3 100644
--- a/srcpkgs/uwm/template
+++ b/srcpkgs/uwm/template
@@ -10,5 +10,6 @@ license="GPL-2.0-only"
 homepage="http://udeproject.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/project/udeproject/UWM/uwm-${version}%20stable/uwm-${version}.tar.gz"
 checksum=dd056857c98b75c9203861917db33bcaf87ba074bdd204cf732ce4cb777cb408
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/uwsgi/template b/srcpkgs/uwsgi/template
index 507987723d7b..30dc164b3334 100644
--- a/srcpkgs/uwsgi/template
+++ b/srcpkgs/uwsgi/template
@@ -10,6 +10,7 @@ license="GPL-2.0-linking-exception"
 homepage="http://projects.unbit.it/uwsgi"
 distfiles="https://github.com/unbit/uwsgi/archive/${version}.tar.gz"
 checksum=bf17cdbb9bd8bcb7c1633e34d9d7308cb4cc19eb0ff2d61057f840c1ba1fc41b
+patch_args=-Np0
 
 _libdir=usr/lib/uwsgi
 
diff --git a/srcpkgs/v4l-utils/template b/srcpkgs/v4l-utils/template
index 6ef76bb1e90d..590f2509212c 100644
--- a/srcpkgs/v4l-utils/template
+++ b/srcpkgs/v4l-utils/template
@@ -14,6 +14,7 @@ homepage="http://freshmeat.net/projects/libv4l"
 distfiles="http://linuxtv.org/downloads/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=956118713f7ccb405c55c7088a6a2490c32d54300dd9a30d8d5008c28d3726f7
 conf_files="/etc/rc_maps.cfg"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone"
diff --git a/srcpkgs/vala-panel/template b/srcpkgs/vala-panel/template
index 81ab10b9d2f0..de9a03c14052 100644
--- a/srcpkgs/vala-panel/template
+++ b/srcpkgs/vala-panel/template
@@ -13,6 +13,7 @@ license="LGPL-3.0-or-later"
 homepage="https://gitlab.com/vala-panel-project/vala-panel"
 distfiles="https://gitlab.com/vala-panel-project/vala-panel/uploads/$_glhash/vala-panel-${version}.tar.xz"
 checksum=ee3a9e000133da43b218ecd1738463c2de3f45783a5a09a11b9c263df4e233d1
+patch_args=-Np0
 
 # Package build options
 build_options="wayland"
diff --git a/srcpkgs/vanitygen/template b/srcpkgs/vanitygen/template
index 8fb4fa5ca443..e9baabe67a3e 100644
--- a/srcpkgs/vanitygen/template
+++ b/srcpkgs/vanitygen/template
@@ -11,6 +11,7 @@ homepage="https://github.com/exploitagency/vanitygen-plus"
 changelog="https://raw.githubusercontent.com/exploitagency/vanitygen-plus/master/CHANGELOG"
 distfiles="https://github.com/exploitagency/vanitygen-plus/archive/PLUS${version}.tar.gz"
 checksum=976a9afe2a4470551a8b6b0da97101a3a2e6c54c5a26dc870ae755bb2d8c7041
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC CFLAGS="$CFLAGS $LDFLAGS" ${makejobs}
diff --git a/srcpkgs/vapoursynth-editor/template b/srcpkgs/vapoursynth-editor/template
index 19903b77a6e3..0dc9f4bf80b5 100644
--- a/srcpkgs/vapoursynth-editor/template
+++ b/srcpkgs/vapoursynth-editor/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://bitbucket.org/mystery_keeper/vapoursynth-editor"
 distfiles="${homepage}/get/r${version}.tar.gz"
 checksum=41e09a6c1411536f7a223a16263145b31de4715189cfe2ebe62b4ad69d6ec342
+patch_args=-Np0
 
 pre_configure() {
 	mv pro/pro.pro .
diff --git a/srcpkgs/varnish/template b/srcpkgs/varnish/template
index fff05f21f786..8181268d7077 100644
--- a/srcpkgs/varnish/template
+++ b/srcpkgs/varnish/template
@@ -13,6 +13,7 @@ homepage="https://varnish-cache.org/"
 distfiles="https://varnish-cache.org/_downloads/${pkgname}-${version}.tgz"
 checksum=d5ff82f2041276dfaeb9a652a88b6d7287cfcf7ca345bb02c438fb65d2bca2e5
 lib32disabled=yes
+patch_args=-Np0
 
 build_options="pcrejit"
 
diff --git a/srcpkgs/vboot-utils/template b/srcpkgs/vboot-utils/template
index 591697d20cf4..14117b36c4f3 100644
--- a/srcpkgs/vboot-utils/template
+++ b/srcpkgs/vboot-utils/template
@@ -18,6 +18,7 @@ checksum=@3d8edd7e3a1672b29f02d93c4cf89f19ad7477694968b0653aa968783c8ba3e6
 # 2crypto specifies a section for some variables, which lead to text relocations in the binary
 # let's play it safe and disable PIE
 nopie=yes
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	x86_64*) _arch=x86_64 ;;
diff --git a/srcpkgs/vde2/template b/srcpkgs/vde2/template
index 5d0efce366ab..e502920a93d9 100644
--- a/srcpkgs/vde2/template
+++ b/srcpkgs/vde2/template
@@ -19,6 +19,7 @@ license="GPL-2, LGPL-2.1, BSD"
 homepage="http://sourceforge.net/projects/vde/"
 distfiles="${SOURCEFORGE_SITE}/vde/vde2-$version.tar.bz2"
 checksum=cbea9b7e03097f87a6b5e98b07890d2275848f1fe4b9fcda77b8994148bc9542
+patch_args=-Np0
 
 lib32disabled=yes
 disable_parallel_build=yes
diff --git a/srcpkgs/vdirsyncer/template b/srcpkgs/vdirsyncer/template
index 906b77950d36..f1e783316597 100644
--- a/srcpkgs/vdirsyncer/template
+++ b/srcpkgs/vdirsyncer/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://vdirsyncer.pimutils.org/"
 distfiles="${PYPI_SITE}/v/vdirsyncer/vdirsyncer-${version}.tar.gz"
 checksum=bfdb422f52e1d4d60bd0635d203fb59fa7f613397d079661eb48e79464ba13c5
+patch_args=-Np0
 
 pre_build() {
 	sed -i setup.py \
diff --git a/srcpkgs/vdrift/template b/srcpkgs/vdrift/template
index cc586376b4e6..c1c1989627eb 100644
--- a/srcpkgs/vdrift/template
+++ b/srcpkgs/vdrift/template
@@ -17,6 +17,7 @@ homepage="http://vdrift.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version//./-}.tar.bz2"
 checksum=458d45d59075c2ce943ec6bc271a5bd0eb6bc6ed123670b65038703345020be3
 python_version=2
+patch_args=-Np0
 
 post_install() {
 	# install .desktop file
diff --git a/srcpkgs/virglrenderer/template b/srcpkgs/virglrenderer/template
index 00a371c32a5e..8bfba79b29a6 100644
--- a/srcpkgs/virglrenderer/template
+++ b/srcpkgs/virglrenderer/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://gitlab.freedesktop.org/virgl/virglrenderer"
 distfiles="https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/virglrenderer-${version}/virglrenderer-virglrenderer-${version}.tar.gz"
 checksum=9fa93095cd9a3e5b13c740e5e3b656a989356732bdaf3e22acb7c38a1f1f4411
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/virtualbox-ose/template b/srcpkgs/virtualbox-ose/template
index b686236e1b0e..e95fd8cfbe64 100644
--- a/srcpkgs/virtualbox-ose/template
+++ b/srcpkgs/virtualbox-ose/template
@@ -10,6 +10,7 @@ homepage="https://www.virtualbox.org"
 changelog="https://www.virtualbox.org/wiki/Changelog"
 distfiles="http://download.virtualbox.org/virtualbox/${version}/VirtualBox-${version}.tar.bz2"
 checksum=e690c91974a2e7a5aca2c0939ad514382f9a2136797a5e0b96aab778e42bc8a7
+patch_args=-Np0
 
 nopie=yes
 lib32disabled=yes
diff --git a/srcpkgs/virtuoso/template b/srcpkgs/virtuoso/template
index 01de503942c0..7a7460e35af0 100644
--- a/srcpkgs/virtuoso/template
+++ b/srcpkgs/virtuoso/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/openlink/virtuoso-opensource/archive/v${version}.t
 checksum=3e4807e94098b8265f8cf00867d1215bb1e9d0d274878e59a420742d2de471c2
 # cannot execute binary file: Exec format error
 nocross="https://build.voidlinux.org/builders/armv6l_builder/builds/29187/steps/shell_3/logs/stdio"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" libexecinfo-devel"; LDFLAGS+=" -lexecinfo";;
diff --git a/srcpkgs/visitors/template b/srcpkgs/visitors/template
index 39f09c00fd28..b35eff508246 100644
--- a/srcpkgs/visitors/template
+++ b/srcpkgs/visitors/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://www.hping.org/visitors/"
 distfiles="http://www.hping.org/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=d2149e33ffe96b1f52b0587cff65973b0bc0b24ec43cdf072a782c1bd52148ab
+patch_args=-Np0
 
 do_install() {
 	vbin visitors
diff --git a/srcpkgs/vitetris/template b/srcpkgs/vitetris/template
index 833a3cb491ee..9fd22cf800dd 100644
--- a/srcpkgs/vitetris/template
+++ b/srcpkgs/vitetris/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="http://www.victornils.net/tetris/"
 distfiles="https://github.com/vicgeralds/vitetris/archive/v${version}.tar.gz"
 checksum=699443df03c8d4bf2051838c1015da72039bbbdd0ab0eede891c59c840bdf58d
+patch_args=-Np0
 
 post_install() {
 	sed -i 's/Exec=tetris/Exec=vitetris/' $DESTDIR/usr/share/applications/vitetris.desktop
diff --git a/srcpkgs/vlc/template b/srcpkgs/vlc/template
index c2cc1a43d314..09366bf5226c 100644
--- a/srcpkgs/vlc/template
+++ b/srcpkgs/vlc/template
@@ -18,6 +18,7 @@ homepage="https://www.videolan.org/vlc/"
 changelog="https://www.videolan.org/developers/vlc-branch/NEWS"
 distfiles="https://download.videolan.org/pub/videolan/vlc/${version}/vlc-${version}.tar.xz"
 checksum=7b9635061ae14dfdf71623a7fd479b4f0d6929de75ff3c23d39b6b4b65b31b56
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/voltron/template b/srcpkgs/voltron/template
index 310e41474fb2..4e465b5bc59e 100644
--- a/srcpkgs/voltron/template
+++ b/srcpkgs/voltron/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/snare/voltron"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=2919dabe5ebc05672dcedf400754e3fbce8c3b9f8608a64cea205591f3b47f63
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/volumeicon/template b/srcpkgs/volumeicon/template
index d92993ab771b..fedb3a7ed59b 100644
--- a/srcpkgs/volumeicon/template
+++ b/srcpkgs/volumeicon/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only, ISC, MIT"
 homepage="http://softwarebakery.com/maato/volumeicon.html"
 distfiles="http://softwarebakery.com/maato/files/volumeicon/volumeicon-${version}.tar.gz"
 checksum=24b8c1d0a81d708b201ce6e67301fc175d65588d892d01859f667b8db8a05da0
+patch_args=-Np0
 
 post_patch() {
 	sed -ne '/Copyright/,/IN THE SOFTWARE/s/ [*] *//p' src/bind.c >LICENSE.MIT
diff --git a/srcpkgs/vpcs/template b/srcpkgs/vpcs/template
index 34b4c0ddd86b..22871df35850 100644
--- a/srcpkgs/vpcs/template
+++ b/srcpkgs/vpcs/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="https://sourceforge.net/projects/vpcs"
 distfiles="${SOURCEFORGE_SITE}/project/vpcs/${version}/${pkgname}-${version}-src.tbz"
 checksum=dca602d0571ba852c916632c4c0060aa9557dd744059c0f7368860cfa8b3c993
+patch_args=-Np0
 
 archs="i686* x86_64*"
 
diff --git a/srcpkgs/vpn-ws/template b/srcpkgs/vpn-ws/template
index 498ca5775a82..673af28f5f35 100644
--- a/srcpkgs/vpn-ws/template
+++ b/srcpkgs/vpn-ws/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/unbit/vpn-ws"
 distfiles="https://github.com/unbit/vpn-ws/archive/v${version}.tar.gz"
 checksum=f35d16d192ef333390ccc7d342df4392676a86502fa087f310eab9758afd565a
+patch_args=-Np0
 
 CFLAGS+=" -Wno-stringop-truncation -fcommon"
 
diff --git a/srcpkgs/vsftpd/template b/srcpkgs/vsftpd/template
index 2e177d8b8987..a6def875a1a7 100644
--- a/srcpkgs/vsftpd/template
+++ b/srcpkgs/vsftpd/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://security.appspot.com/vsftpd.html"
 distfiles="https://security.appspot.com/downloads/${pkgname}-${version}.tar.gz"
 checksum=6b9421bd27e8a6cdeed5b31154f294a20b003a11a26c09500715a0a6b1b86a26
+patch_args=-Np0
 
 system_accounts="ftp"
 ftp_pgroup=nogroup
diff --git a/srcpkgs/vte3/template b/srcpkgs/vte3/template
index 346ebf038640..e15615e6d642 100644
--- a/srcpkgs/vte3/template
+++ b/srcpkgs/vte3/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later, LGPL-2.1-or-later, LGPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Terminal/VTE"
 distfiles="${GNOME_SITE}/vte/${version%.*}/vte-${version}.tar.xz"
 checksum=12fb41a9ff8e03c5f1711b46560910a4b9b3102aec3e9e7609ceef4dfa98aa2a
+patch_args=-Np0
 
 # Suppress warnings as errors for NULL format strings (musl libc)
 CXXFLAGS="-Wno-error=format="
diff --git a/srcpkgs/w_scan/template b/srcpkgs/w_scan/template
index eae95b0654ee..b4e2774eb925 100644
--- a/srcpkgs/w_scan/template
+++ b/srcpkgs/w_scan/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://wirbel.htpc-forum.de/w_scan/index2.html"
 distfiles="http://wirbel.htpc-forum.de/w_scan/w_scan-${version}.tar.bz2"
 checksum="38e0f38a7bf06cff6d6ea01652ad4ee60da2cb0e937360468f936da785b46ffe"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/waifu2x-converter-cpp/template b/srcpkgs/waifu2x-converter-cpp/template
index 4030c6f0da06..269cdd6c82c4 100644
--- a/srcpkgs/waifu2x-converter-cpp/template
+++ b/srcpkgs/waifu2x-converter-cpp/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/DeadSix27/waifu2x-converter-cpp"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=e10bd5c64015553d1340988cf886aa51ed3cf4108f1a3ba864b3ea818426de7d
+patch_args=-Np0
 
 # silly workaround to prevent vector/bool/etc from being defined
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/webkit2gtk/template b/srcpkgs/webkit2gtk/template
index ae7e80744d0b..6eb2f5a8f471 100644
--- a/srcpkgs/webkit2gtk/template
+++ b/srcpkgs/webkit2gtk/template
@@ -38,6 +38,7 @@ homepage="https://webkitgtk.org/"
 distfiles="${homepage}/releases/webkitgtk-${version}.tar.xz"
 checksum=136117317f70f66486f71b8edf5e46f8776403c5d8a296e914b11a36ef836917
 make_check=no
+patch_args=-Np0
 
 build_options="gir wayland x11 bubblewrap jit sampling_profiler minibrowser
  clang lto"
diff --git a/srcpkgs/wicd/template b/srcpkgs/wicd/template
index d4fe01b557d5..b8ecfc8f106d 100644
--- a/srcpkgs/wicd/template
+++ b/srcpkgs/wicd/template
@@ -15,6 +15,7 @@ homepage="http://wicd.sourceforge.net"
 distfiles="http://launchpad.net/wicd/1.7/${version}/+download/wicd-${version}.tar.gz"
 checksum=67989614004773db349791c37675efb914d084bdb221356a05e4369c35e7eb62
 python_version=2
+patch_args=-Np0
 
 do_build() {
 	python2 setup.py configure --verbose --no-install-init \
diff --git a/srcpkgs/widelands/template b/srcpkgs/widelands/template
index d0402050262e..7326e3f0cf45 100644
--- a/srcpkgs/widelands/template
+++ b/srcpkgs/widelands/template
@@ -17,6 +17,7 @@ homepage="http://www.widelands.org/"
 distfiles="https://github.com/widelands/widelands/archive/build${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=601e0e4c6f91b3fb0ece2cd1b83ecfb02344a1b9194fbb70ef3f70e06994e357
 replaces="widelands-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-DU_USING_ICU_NAMESPACE=1"
 
diff --git a/srcpkgs/wildmidi/template b/srcpkgs/wildmidi/template
index 634ad5bc88a5..b12ae74cd617 100644
--- a/srcpkgs/wildmidi/template
+++ b/srcpkgs/wildmidi/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later, LGPL-3.0-only"
 homepage="https://www.mindwerks.net/projects/wildmidi"
 distfiles="https://github.com/Mindwerks/${pkgname}/archive/${pkgname}-${version}.tar.gz"
 checksum=6f267c8d331e9859906837e2c197093fddec31829d2ebf7b958cf6b7ae935430
+patch_args=-Np0
 
 post_install() {
 	vsconf ${FILESDIR}/wildmidi.cfg
diff --git a/srcpkgs/wine/template b/srcpkgs/wine/template
index 68e6045d5a2b..1d45aeb5459b 100644
--- a/srcpkgs/wine/template
+++ b/srcpkgs/wine/template
@@ -15,6 +15,7 @@ distfiles="https://dl.winehq.org/wine/source/${version%.*}.x/wine-${_pkgver}.tar
  https://github.com/wine-staging/wine-staging/archive/v${_pkgver}.tar.gz"
 checksum="58ede148482d49188262d5a2d0c9d700a74c69c51ccaa11c5adf63d3f314419f
  fe3fbea8b31eab63c5aec0418041e012dc3f7fc7951b8df97e42d542041f01df"
+patch_args=-Np0
 
 build_options="mingw staging"
 build_options_default="mingw"
diff --git a/srcpkgs/wineasio/template b/srcpkgs/wineasio/template
index bc529e72b3cc..b64054e6cc62 100644
--- a/srcpkgs/wineasio/template
+++ b/srcpkgs/wineasio/template
@@ -18,6 +18,7 @@ distfiles="${SOURCEFORGE_SITE}/wineasio/${pkgname}-${version}.tar.gz
 	https://www.steinberg.net/sdk_downloads/asiosdk2.3.zip"
 checksum="9fbc2d10a4cec307dc0558bed82b887c864424d16da40a80f1d80f907d92af0b
 	69225020e9144af568784c6076b55939a55369edaf0ffcdf4d5e5b5898f31b9b"
+patch_args=-Np0
 
 pre_configure() {
 	cp -v ../ASIOSDK2.3/common/asio.h asio.h
diff --git a/srcpkgs/winusb/template b/srcpkgs/winusb/template
index 64ec8fce12b0..5d97248df431 100644
--- a/srcpkgs/winusb/template
+++ b/srcpkgs/winusb/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="http://en.congelli.eu/prog_info_winusb.html"
 distfiles="http://ponce.cc/slackware/sources/repo/${pkgname}-${version}.tar.gz"
 checksum=7bd8d2e63651134bd4173dcf358708fb9e6de1677c088e67d45995a1d5066bc9
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	x86_64*) depends+=" grub-x86_64-efi"; makedepends+=" grub-x86_64-efi" ;;
diff --git a/srcpkgs/wireshark/template b/srcpkgs/wireshark/template
index 78a97130f689..9b54aab6a0da 100644
--- a/srcpkgs/wireshark/template
+++ b/srcpkgs/wireshark/template
@@ -19,6 +19,7 @@ homepage="https://www.wireshark.org"
 distfiles="https://www.wireshark.org/download/src/${pkgname}-${version}.tar.xz"
 checksum=de1aafd100a1e1207c850d180e97dd91ab8da0f5eb6beec545f725cdb145d333
 system_groups="wireshark"
+patch_args=-Np0
 
 CFLAGS="-DNDEBUG -I${XBPS_CROSS_BASE}/usr/include/lua5.2"
 CXXFLAGS="-DNDEBUG -I${XBPS_CROSS_BASE}/usr/include/lua5.2"
diff --git a/srcpkgs/wm2/template b/srcpkgs/wm2/template
index 5109f3154942..835883ad15a4 100644
--- a/srcpkgs/wm2/template
+++ b/srcpkgs/wm2/template
@@ -10,6 +10,7 @@ license="BSD"
 homepage="http://www.all-day-breakfast.com/wm2"
 distfiles="http://www.all-day-breakfast.com/wm2/wm2-${version}.tar.gz"
 checksum=a6c3352390f958c5033408ce73e1abd9677372a7c8c5949e39a62fda433b054d
+patch_args=-Np0
 
 do_install() {
 	vbin wm2
diff --git a/srcpkgs/woff2/template b/srcpkgs/woff2/template
index 9af0c9f84283..a7f78a7002c7 100644
--- a/srcpkgs/woff2/template
+++ b/srcpkgs/woff2/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/google/woff2"
 distfiles="https://github.com/google/woff2/archive/v${version}.tar.gz"
 checksum=add272bb09e6384a4833ffca4896350fdb16e0ca22df68c0384773c67a175594
+patch_args=-Np0
 
 libwoff2common1.0.2_package() {
 	short_desc+=" - common library"
diff --git a/srcpkgs/wordgrinder/template b/srcpkgs/wordgrinder/template
index f742e039123b..521b18d044d1 100644
--- a/srcpkgs/wordgrinder/template
+++ b/srcpkgs/wordgrinder/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://cowlark.com/wordgrinder"
 distfiles="https://github.com/davidgiven/wordgrinder/archive/${version}.tar.gz"
 checksum=856cbed2b4ccd5127f61c4997a30e642d414247970f69932f25b4b5a81b18d3f
+patch_args=-Np0
 
 do_configure() {
 	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig:${XBPS_CROSS_BASE}/usr/share/pkgconfig
diff --git a/srcpkgs/workrave/template b/srcpkgs/workrave/template
index 151ffd7e38a0..7ba6ba02ebbc 100644
--- a/srcpkgs/workrave/template
+++ b/srcpkgs/workrave/template
@@ -18,6 +18,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.workrave.org/"
 distfiles="https://github.com/rcaelers/${pkgname}/archive/v${_realversion}.tar.gz"
 checksum=b9c8d1aaae16ca55c98d361a392f879a306a4ecf6db28663a7e96d0c205dabc0
+patch_args=-Np0
 
 build_options="pulseaudio"
 
diff --git a/srcpkgs/wtype/template b/srcpkgs/wtype/template
index 962c7cf82bec..6cb9a5bf481a 100644
--- a/srcpkgs/wtype/template
+++ b/srcpkgs/wtype/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/atx/wtype"
 distfiles="https://github.com/atx/${pkgname}/archive/v${version}.tar.gz"
 checksum=35615e61e57576a240d10308f9101ceb2ec7b3554fac60119b1416b84c1694b2
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/wvstreams/template b/srcpkgs/wvstreams/template
index 068c21944270..ace63917d2bc 100644
--- a/srcpkgs/wvstreams/template
+++ b/srcpkgs/wvstreams/template
@@ -13,6 +13,7 @@ checksum=8403f5fbf83aa9ac0c6ce15d97fd85607488152aa84e007b7d0621b8ebc07633
 configure_args="--sbindir=/usr/bin --without-dbus --without-tcl --without-qt"
 conf_files="/etc/uniconf.conf"
 replaces="uniconf>=0"
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/wxPython4/template b/srcpkgs/wxPython4/template
index 1f32be9131ce..aa2e9c4db957 100644
--- a/srcpkgs/wxPython4/template
+++ b/srcpkgs/wxPython4/template
@@ -16,6 +16,7 @@ license="custom:wxWindows"
 homepage="http://www.wxpython.org/"
 distfiles="${PYPI_SITE}/w/wxPython/wxPython-${version}.tar.gz"
 checksum=3be608bfdede3063678cc703453850ab0a018b82bafd5ee057302250b18f0233
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc} -I${XBPS_CROSS_BASE}/usr/include"
diff --git a/srcpkgs/wxWidgets-gtk3/template b/srcpkgs/wxWidgets-gtk3/template
index fe6dc777392b..fab25e0be351 100644
--- a/srcpkgs/wxWidgets-gtk3/template
+++ b/srcpkgs/wxWidgets-gtk3/template
@@ -15,6 +15,7 @@ license="custom:wxWindows"
 homepage="https://www.wxwidgets.org"
 distfiles="https://github.com/wxWidgets/wxWidgets/releases/download/v${version}/wxWidgets-${version}.tar.bz2"
 checksum=440f6e73cf5afb2cbf9af10cec8da6cdd3d3998d527598a53db87099524ac807
+patch_args=-Np0
 
 post_install() {
 	local _config="gtk3-unicode-3.0"
diff --git a/srcpkgs/wxWidgets/template b/srcpkgs/wxWidgets/template
index c7e8f9f3a381..1f220c311482 100644
--- a/srcpkgs/wxWidgets/template
+++ b/srcpkgs/wxWidgets/template
@@ -16,6 +16,7 @@ license="wxWindows"
 homepage="https://www.wxwidgets.org/"
 distfiles="https://github.com/wxWidgets/wxWidgets/releases/download/v${version}/wxWidgets-${version}.tar.bz2"
 checksum=440f6e73cf5afb2cbf9af10cec8da6cdd3d3998d527598a53db87099524ac807
+patch_args=-Np0
 
 post_install() {
 	local _config="gtk2-unicode-3.0"
diff --git a/srcpkgs/x11vnc/template b/srcpkgs/x11vnc/template
index 4b8ff04a9ebe..fabffd609621 100644
--- a/srcpkgs/x11vnc/template
+++ b/srcpkgs/x11vnc/template
@@ -13,6 +13,7 @@ homepage="http://www.karlrunge.com/x11vnc/"
 changelog="https://raw.githubusercontent.com/LibVNC/x11vnc/master/NEWS"
 distfiles="https://github.com/LibVNC/${pkgname}/archive/${version}.tar.gz"
 checksum=885e5b5f5f25eec6f9e4a1e8be3d0ac71a686331ee1cfb442dba391111bd32bd
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template
index 2b858bad487f..974fad438b4c 100644
--- a/srcpkgs/x265/template
+++ b/srcpkgs/x265/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://x265.org/"
 distfiles="https://bitbucket.org/multicoreware/x265_git/get/${version}.tar.gz"
 checksum=7f2771799bea0f53b5ab47603d5bea46ea2a221e047a7ff398115e9976fd5f86
+patch_args=-Np0
 
 build_options="altivec assembly"
 
diff --git a/srcpkgs/x42-plugins/template b/srcpkgs/x42-plugins/template
index 432739cded19..e8aa6531adf5 100644
--- a/srcpkgs/x42-plugins/template
+++ b/srcpkgs/x42-plugins/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://x42-plugins.com"
 distfiles="https://gareus.org/misc/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=4423ea27ccc3f6e93a687d344a8ad5177b830d2bac25be8c36ae12ed0e3092e4
+patch_args=-Np0
 
 pre_build() {
 	export OPTIMIZATIONS="-fomit-frame-pointer -O3 -fno-finite-math-only -DNDEBUG"
diff --git a/srcpkgs/xapian-core/template b/srcpkgs/xapian-core/template
index 369cccb082f0..9473eb738d20 100644
--- a/srcpkgs/xapian-core/template
+++ b/srcpkgs/xapian-core/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.xapian.org/"
 distfiles="https://oligarchy.co.uk/xapian/${version}/${pkgname}-${version}.tar.xz"
 checksum=196ddbb4ad10450100f0991a599e4ed944cbad92e4a6fe813be6dce160244b77
+patch_args=-Np0
 
 # xapian-config needs the .la
 keep_libtool_archives=yes
diff --git a/srcpkgs/xar/template b/srcpkgs/xar/template
index 79117d197a99..4e3ca4b5477b 100644
--- a/srcpkgs/xar/template
+++ b/srcpkgs/xar/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/mackyle/xar"
 distfiles="https://github.com/downloads/mackyle/xar/${pkgname}-${version}.tar.gz"
 checksum=ee46089968457cf710b8cf1bdeb98b7ef232eb8a4cdeb34502e1f16ef4d2153e
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 *-musl)
diff --git a/srcpkgs/xautolock/template b/srcpkgs/xautolock/template
index 673e57c9a787..676b1c5161eb 100644
--- a/srcpkgs/xautolock/template
+++ b/srcpkgs/xautolock/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="http://www.ibiblio.org/pub/Linux/X11/screensavers/"
 distfiles="${homepage}/${pkgname}-${version}.tgz"
 checksum=11f0275175634e6db756e96f5713ec91b8b1c41f8663df54e8a5d27dc71c4da2
+patch_args=-Np0
 
 do_build() {
 	CC=cc xmkmf
diff --git a/srcpkgs/xava/template b/srcpkgs/xava/template
index fa16f119e240..e4e7faa656ac 100644
--- a/srcpkgs/xava/template
+++ b/srcpkgs/xava/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/nikp123/xava"
 distfiles="https://github.com/nikp123/xava/archive/${version}.tar.gz"
 checksum=b38b810e4bfd71aff44f223b444ae4f158eb8d6428c5e9d42697343ccb5a19f9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/xboxdrv/template b/srcpkgs/xboxdrv/template
index 2b4905d88909..4f22555872a9 100644
--- a/srcpkgs/xboxdrv/template
+++ b/srcpkgs/xboxdrv/template
@@ -13,6 +13,7 @@ homepage="https://xboxdrv.gitlab.io/"
 distfiles="https://xboxdrv.gitlab.io/xboxdrv-linux-${version}.tar.bz2"
 checksum=f4fb8c09c0ce3841798f129ae4c2caf3f6db9786d78ad941994e425e3ffc168a
 python_version=3
+patch_args=-Np0
 
 do_install() {
 	make PREFIX=/usr DESTDIR=${DESTDIR} install
diff --git a/srcpkgs/xcolorsel/template b/srcpkgs/xcolorsel/template
index f3efb02dc904..d6551e23f241 100644
--- a/srcpkgs/xcolorsel/template
+++ b/srcpkgs/xcolorsel/template
@@ -16,6 +16,7 @@ homepage="http://packages.debian.org/stable/x11/xcolorsel"
 distfiles="${DEBIAN_SITE}/main/x/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=ba0813af427dfab7dfbd9eaadbedd217d432f8141179ac43bb39393b1424f7a2
 nocross=yes
+patch_args=-Np0
 
 do_configure() {
 	xmkmf -a -DHasSELinux=0 -DUseConfDirForAppDefaults=0
diff --git a/srcpkgs/xdg-utils/template b/srcpkgs/xdg-utils/template
index d4094a292126..fe7a9b7deb5a 100644
--- a/srcpkgs/xdg-utils/template
+++ b/srcpkgs/xdg-utils/template
@@ -13,6 +13,7 @@ homepage="https://www.freedesktop.org/wiki/Software/xdg-utils/"
 #changelog="https://cgit.freedesktop.org/xdg/xdg-utils/plain/ChangeLog"
 distfiles="https://portland.freedesktop.org/download/${pkgname}-${version}.tar.gz"
 checksum=d798b08af8a8e2063ddde6c9fa3398ca81484f27dec642c5627ffcaa0d4051d9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/xerces-c/template b/srcpkgs/xerces-c/template
index 56f12c4aab08..ba0edf7c4a63 100644
--- a/srcpkgs/xerces-c/template
+++ b/srcpkgs/xerces-c/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="http://xerces.apache.org/xerces-c/"
 distfiles="http://archive.apache.org/dist/xerces/c/3/sources/${pkgname}-${version}.tar.bz2"
 checksum=45c2329e684405f2b8854ecbddfb8d5b055cdf0fe4d35736cc352c504989bbb6
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/xf86-input-mtrack/template b/srcpkgs/xf86-input-mtrack/template
index 0f78142030d3..852900101d59 100644
--- a/srcpkgs/xf86-input-mtrack/template
+++ b/srcpkgs/xf86-input-mtrack/template
@@ -13,6 +13,7 @@ homepage="http://xorg.freedesktop.org/"
 distfiles="https://github.com/p2rkw/${pkgname}/archive/v${version}.tar.gz"
 checksum=a976723720028832afd45bfcaab479f60833ff6f1c780be727d1791675dc14c4
 lib32disabled=yes
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xf86-input-synaptics/template b/srcpkgs/xf86-input-synaptics/template
index 1c9f2be0a939..6d118bbe21ee 100644
--- a/srcpkgs/xf86-input-synaptics/template
+++ b/srcpkgs/xf86-input-synaptics/template
@@ -14,6 +14,7 @@ homepage="http://www.x.org/"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=7af83526eff1c76e8b9e1553b34245c203d029028d8044dd9dcf71eef1001576
 lib32disabled=yes
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xf86-video-ati/template b/srcpkgs/xf86-video-ati/template
index fe251dff4b37..a2715dcd5125 100644
--- a/srcpkgs/xf86-video-ati/template
+++ b/srcpkgs/xf86-video-ati/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://wiki.freedesktop.org/xorg"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=659f5a1629eea5f5334d9b39b18e6807a63aa1efa33c1236d9cc53acbb223c49
+patch_args=-Np0
 
 lib32disabled=yes
 CFLAGS="-fcommon"
diff --git a/srcpkgs/xf86-video-cirrus/template b/srcpkgs/xf86-video-cirrus/template
index f4f7c3a2f0a1..6c73923696f9 100644
--- a/srcpkgs/xf86-video-cirrus/template
+++ b/srcpkgs/xf86-video-cirrus/template
@@ -13,6 +13,7 @@ license="MIT"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=edc87b20a55259126b5239b5c1ef913419eab7ded0ed12ae9ae989460d7351ab
+patch_args=-Np0
 
 LDFLAGS="-Wl,-z,lazy"
 CFLAGS="-fcommon -Wno-pointer-arith -Wno-discarded-qualifiers -Wno-unused-label"
diff --git a/srcpkgs/xf86-video-fbdev/template b/srcpkgs/xf86-video-fbdev/template
index eafde10f3eab..297c1b4ca92a 100644
--- a/srcpkgs/xf86-video-fbdev/template
+++ b/srcpkgs/xf86-video-fbdev/template
@@ -13,6 +13,7 @@ homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=dcc3d85f378022180e437a9ec00a59b6cb7680ff79c40394d695060af2374699
 lib32disabled=yes
+patch_args=-Np0
 
 CFLAGS="-I$XBPS_CROSS_BASE/usr/include/xorg"
 LDFLAGS="-Wl,-z,lazy"
diff --git a/srcpkgs/xf86-video-fbturbo-sunxi/template b/srcpkgs/xf86-video-fbturbo-sunxi/template
index 3da5f84a572c..386a536c824d 100644
--- a/srcpkgs/xf86-video-fbturbo-sunxi/template
+++ b/srcpkgs/xf86-video-fbturbo-sunxi/template
@@ -13,6 +13,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://github.com/ssvb/xf86-video-fbturbo"
 distfiles="https://github.com/ssvb/xf86-video-fbturbo/archive/${version}.tar.gz"
 checksum=10411686de0a9d8b2cde300b0d68e9f1d22e3611470d357ef3afc337f123ca0f
+patch_args=-Np0
 
 archs="armv7l"
 conflicts="xf86-video-fbturbo>=0"
diff --git a/srcpkgs/xf86-video-fbturbo/template b/srcpkgs/xf86-video-fbturbo/template
index acfbff8c05d3..2b6784ccb160 100644
--- a/srcpkgs/xf86-video-fbturbo/template
+++ b/srcpkgs/xf86-video-fbturbo/template
@@ -9,6 +9,7 @@ license="MIT, GPL-2.0-or-later"
 homepage="http://github.com/ssvb/xf86-video-fbturbo"
 distfiles="https://github.com/ssvb/xf86-video-fbturbo/archive/${version}.tar.gz"
 checksum=10411686de0a9d8b2cde300b0d68e9f1d22e3611470d357ef3afc337f123ca0f
+patch_args=-Np0
 
 archs="armv6l* armv7l* aarch64*"
 hostmakedepends="pkg-config xorg-server-devel"
diff --git a/srcpkgs/xf86-video-intel/template b/srcpkgs/xf86-video-intel/template
index 2b589d009897..77eb791f02dc 100644
--- a/srcpkgs/xf86-video-intel/template
+++ b/srcpkgs/xf86-video-intel/template
@@ -18,6 +18,7 @@ homepage="https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/"
 distfiles="${homepage}/-/archive/master/xf86-video-intel-${_commit}.tar.gz"
 checksum=3cdcf2f84bddf9e9174a8413d8fc855dae893dbc53889329978dec62ee8f6e62
 lib32disabled=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 LDFLAGS="-Wl,-z,lazy"
diff --git a/srcpkgs/xf86-video-mach64/template b/srcpkgs/xf86-video-mach64/template
index 51fb61f466c1..a084652f48cf 100644
--- a/srcpkgs/xf86-video-mach64/template
+++ b/srcpkgs/xf86-video-mach64/template
@@ -16,6 +16,7 @@ lib32disabled=yes
 # fails at XORG_DRIVER_CHECK_EXT even though xorg-util-macros is on host
 nocross=yes
 LDFLAGS="-Wl,-z,lazy"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -if
diff --git a/srcpkgs/xf86-video-mga/template b/srcpkgs/xf86-video-mga/template
index 39edac52798d..41a806554577 100644
--- a/srcpkgs/xf86-video-mga/template
+++ b/srcpkgs/xf86-video-mga/template
@@ -13,6 +13,7 @@ homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=268946e1a13e9d80e4f724a0740df9e6e8c8bad37697fcbf456924e9fdbb5d79
 lib32disabled=yes
+patch_args=-Np0
 
 LDFLAGS="-Wl,-z,lazy"
 CFLAGS="-fcommon"
diff --git a/srcpkgs/xf86-video-r128/template b/srcpkgs/xf86-video-r128/template
index 4dbe1529aa5c..b05086aa3c59 100644
--- a/srcpkgs/xf86-video-r128/template
+++ b/srcpkgs/xf86-video-r128/template
@@ -14,6 +14,7 @@ distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=801c86882cbd2bbb3084d471dcc5cfee2c1754dcbfb4dc446676d58a6bd9e057
 lib32disabled=yes
 LDFLAGS="-Wl,-z,lazy"
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xf86-video-vmware/template b/srcpkgs/xf86-video-vmware/template
index 1da7f33d8ef1..12fad896b329 100644
--- a/srcpkgs/xf86-video-vmware/template
+++ b/srcpkgs/xf86-video-vmware/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/driver/$pkgname-$version.tar.bz2"
 checksum=47971924659e51666a757269ad941a059ef5afe7a47b5101c174a6022ac4066c
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/xfig/template b/srcpkgs/xfig/template
index 4c316f35b32d..e12459c56858 100644
--- a/srcpkgs/xfig/template
+++ b/srcpkgs/xfig/template
@@ -13,6 +13,7 @@ license="MIT-like"
 homepage="http://mcj.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/mcj/${pkgname}-${version}.tar.xz"
 checksum=ba43c0ea85b230d3efa5a951a3239e206d0b033d044c590a56208f875f888578
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/spell/aspell/' app-defaults/Fig.in
diff --git a/srcpkgs/xfsprogs/template b/srcpkgs/xfsprogs/template
index e00f8a5d34e0..f33cde7cc8c5 100644
--- a/srcpkgs/xfsprogs/template
+++ b/srcpkgs/xfsprogs/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://xfs.org/index.php/Main_Page"
 distfiles="${KERNEL_SITE}/utils/fs/xfs/xfsprogs/xfsprogs-${version}.tar.xz"
 checksum=bec44445cf18f49e63971d4f27dc4e90a17b118b852714a1104b621ea30e3507
+patch_args=-Np0
 
 post_extract() {
 	sed -i '1i#include <signal.h>' include/linux.h
diff --git a/srcpkgs/xinetd/template b/srcpkgs/xinetd/template
index dbdd441c063c..9456dbfdfcd9 100644
--- a/srcpkgs/xinetd/template
+++ b/srcpkgs/xinetd/template
@@ -11,6 +11,7 @@ license="xinetd"
 homepage="http://www.xinetd.org/"
 distfiles="http://ponce.cc/slackware/sources/repo/xinetd-${version}.tar.gz"
 checksum=bf4e060411c75605e4dcbdf2ac57c6bd9e1904470a2f91e01ba31b50a80a5be3
+patch_args=-Np0
 
 conf_files="/etc/xinetd.conf /etc/xinetd.d/servers /etc/xinetd.d/services"
 
diff --git a/srcpkgs/xinit/template b/srcpkgs/xinit/template
index be836ebc94ad..2bb4c8e43527 100644
--- a/srcpkgs/xinit/template
+++ b/srcpkgs/xinit/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://xorgwiki.freedesktop.org/xorg"
 distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.bz2"
 checksum=de9b8f617b68a70f6caf87da01fcf0ebd2b75690cdcba9c921d0ef54fa54abb9
+patch_args=-Np0
 
 conf_files="
 	/etc/X11/xinit/xinitrc
diff --git a/srcpkgs/xload/template b/srcpkgs/xload/template
index 74cbd8bbf5ed..62f070c1f25c 100644
--- a/srcpkgs/xload/template
+++ b/srcpkgs/xload/template
@@ -11,6 +11,7 @@ license="X11, MIT"
 homepage="http://www.x.org/archive/X11R6.8.1/doc/xload.1.html"
 distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.bz2"
 checksum=f34e4803871d771325cfe52bebd98cc5b6040d3f065184ec73de436f9a375907
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xlunch/template b/srcpkgs/xlunch/template
index 8c8eafcb029b..54335a705a6e 100644
--- a/srcpkgs/xlunch/template
+++ b/srcpkgs/xlunch/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://xlunch.org/"
 distfiles="https://github.com/Tomas-M/xlunch/archive/v${version}.tar.gz"
 checksum=08728beba2a86b1e8f0cccf14903b7e6625e099425b6a254418c75636f2515e6
+patch_args=-Np0
 
 do_install() {
 	vbin xlunch
diff --git a/srcpkgs/xnp2/template b/srcpkgs/xnp2/template
index 1070cad41c20..21ad123a5010 100644
--- a/srcpkgs/xnp2/template
+++ b/srcpkgs/xnp2/template
@@ -13,6 +13,7 @@ license="BSD"
 homepage="https://www.nonakap.org/np2"
 distfiles="https://www.nonakap.org/np2/release/xnp2-${version}.tar.bz2"
 checksum=e0b8c93f54682a4b3373907fd9ffe78094f95f7430dffc5038eccbcc4c3f78fd
+patch_args=-Np0
 
 do_install() {
 	vbin xnp2
diff --git a/srcpkgs/xonotic/template b/srcpkgs/xonotic/template
index 977c8cdce6e4..9622079c8c31 100644
--- a/srcpkgs/xonotic/template
+++ b/srcpkgs/xonotic/template
@@ -14,6 +14,7 @@ homepage="http://xonotic.org"
 distfiles="http://dl.xonotic.org/xonotic-${version}-source.zip"
 checksum=5e6916f1e6e9e22285bb71ddd075189102857383e74ed0b0a3d27cef08e0bd2b
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	local target
diff --git a/srcpkgs/xorg-cf-files/template b/srcpkgs/xorg-cf-files/template
index aea5c85748e2..d5d53e6296f6 100644
--- a/srcpkgs/xorg-cf-files/template
+++ b/srcpkgs/xorg-cf-files/template
@@ -10,6 +10,7 @@ license="X11"
 homepage="http://xorg.freedesktop.org/"
 distfiles="${XORG_SITE}/util/${pkgname}-${version}.tar.bz2"
 checksum=4dcf5a9dbe3c6ecb9d2dd05e629b3d373eae9ba12d13942df87107fdc1b3934d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/xorg-server/template b/srcpkgs/xorg-server/template
index 852c3ab2f573..a223cb08947d 100644
--- a/srcpkgs/xorg-server/template
+++ b/srcpkgs/xorg-server/template
@@ -31,6 +31,7 @@ provides="xserver-abi-extension-10_1 xserver-abi-input-24_1
  xserver-abi-video-24_1 xf86-video-modesetting-1_1"
 replaces="xf86-video-modesetting>=0 glamor-egl>=0"
 conf_files="/etc/X11/Xwrapper.config"
+patch_args=-Np0
 
 build_options="elogind"
 desc_option_elogind="Rootless Xorg support with elogind"
diff --git a/srcpkgs/xosview/template b/srcpkgs/xosview/template
index 3d6c3ab6c1f9..1c4b34de9d1c 100644
--- a/srcpkgs/xosview/template
+++ b/srcpkgs/xosview/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.pogo.org.uk/~mark/xosview"
 distfiles="http://www.pogo.org.uk/~mark/xosview/releases/xosview-${version}.tar.gz"
 checksum=901b75af2676b11b28b88f0c79c5bd0f4f01de4790c0c5385edf6d71aee1f83a
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	# does not have asm/io.h
diff --git a/srcpkgs/xplanet/template b/srcpkgs/xplanet/template
index 4650dd2556ca..abb07cf7fa58 100644
--- a/srcpkgs/xplanet/template
+++ b/srcpkgs/xplanet/template
@@ -12,6 +12,7 @@ license="GPL-2"
 homepage="http://xplanet.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4380d570a8bf27b81fb629c97a636c1673407f4ac4989ce931720078a90aece7
+patch_args=-Np0
 
 pre_configure() {
 	# make it build with giflib-5.1.0
diff --git a/srcpkgs/xrick/template b/srcpkgs/xrick/template
index 42b8a0febe94..628972531f22 100644
--- a/srcpkgs/xrick/template
+++ b/srcpkgs/xrick/template
@@ -12,6 +12,7 @@ restricted=yes
 homepage="http://www.bigorno.net/xrick/"
 distfiles="https://www.bigorno.net/xrick/xrick-${version}.tgz"
 checksum=aa8542120bec97a730258027a294bd16196eb8b3d66134483d085f698588fc2b
+patch_args=-Np0
 
 CFLAGS=-fcommon
 
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 863e61dd58c7..b84bedbe6d72 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.xsane.org"
 distfiles="${DEBIAN_SITE}/main/x/xsane/xsane_${version}.orig.tar.gz"
 checksum=5782d23e67dc961c81eef13a87b17eb0144cae3d1ffc5cf7e0322da751482b4b
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=.*/DATADIRNAME=share/' \
diff --git a/srcpkgs/xsettingsd/template b/srcpkgs/xsettingsd/template
index e2754ef00999..deb1a1228579 100644
--- a/srcpkgs/xsettingsd/template
+++ b/srcpkgs/xsettingsd/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/derat/xsettingsd"
 distfiles="https://github.com/derat/xsettingsd/archive/v${version}.tar.gz"
 checksum=69b5d1987608d1b5f2a0085f2f88cc55936a99b92279118e655d665ebb5e50d3
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xst/template b/srcpkgs/xst/template
index 8600c680ae36..5fded5ad0a2c 100644
--- a/srcpkgs/xst/template
+++ b/srcpkgs/xst/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/gnotclub/xst"
 distfiles="https://github.com/gnotclub/xst/archive/v${version}.tar.gz"
 checksum=cbeb2da6c289415d1168559c6f58b4ce47fd266edefbabc38fd59e8b7c87226d
+patch_args=-Np0
 
 do_install() {
 	vbin xst
diff --git a/srcpkgs/xstarter/template b/srcpkgs/xstarter/template
index 4363d36e3c39..5e49b3e3f73d 100644
--- a/srcpkgs/xstarter/template
+++ b/srcpkgs/xstarter/template
@@ -12,6 +12,7 @@ homepage="https://xstarter.org"
 changelog="https://raw.githubusercontent.com/lchsk/xstarter/master/CHANGELOG"
 distfiles="https://github.com/lchsk/xstarter/archive/v${version}.tar.gz"
 checksum=cb82bf837a2693cbbad468812d517256e079d6aae56dde770d473b245603030a
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e's;-Wall;-fcommon &;'
diff --git a/srcpkgs/xterm/template b/srcpkgs/xterm/template
index cde36bc4e134..92d4c5866d0c 100644
--- a/srcpkgs/xterm/template
+++ b/srcpkgs/xterm/template
@@ -21,6 +21,7 @@ homepage="http://invisible-island.net/xterm/"
 changelog="http://invisible-island.net/xterm/xterm.log.html"
 distfiles="https://invisible-mirror.net/archives/xterm/xterm-${version}.tgz"
 checksum=2ff5169930b6b49ef0bafb5e1331c94f1a98c310442bba7798add821c76ae712
+patch_args=-Np0
 
 post_install() {
 	for f in {u,}xterm.desktop; do
diff --git a/srcpkgs/xye/template b/srcpkgs/xye/template
index d36a89c9ad29..7d9472e29e6e 100644
--- a/srcpkgs/xye/template
+++ b/srcpkgs/xye/template
@@ -11,6 +11,7 @@ homepage="http://xye.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=5d7c04f37d6b4a1821594512c7ddbc8189f968e08ecfd5af55231302f2f917d8
 replaces="xye-data>=0"
+patch_args=-Np0
 
 post_install() {
 	vdoc ReadMe.html
diff --git a/srcpkgs/yabar/template b/srcpkgs/yabar/template
index 8bb8d1cd5795..c8dd3ff8ae73 100644
--- a/srcpkgs/yabar/template
+++ b/srcpkgs/yabar/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/geommer/yabar"
 distfiles="https://github.com/geommer/${pkgname}/archive/${version}.tar.gz"
 checksum=f8cc613413328af78944ccb8063a5ba8e6be11797a883c419876e973e102fed0
+patch_args=-Np0
 
 post_install() {
 	vdoc README.md
diff --git a/srcpkgs/yarn-bin/template b/srcpkgs/yarn-bin/template
index 111cdd494574..948d9c8d6c65 100644
--- a/srcpkgs/yarn-bin/template
+++ b/srcpkgs/yarn-bin/template
@@ -10,6 +10,7 @@ homepage="https://yarnpkg.com/"
 distfiles="https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz"
 checksum=7e433d4a77e2c79e6a7ae4866782608a8e8bcad3ec6783580577c59538381a6e
 conflicts="yarn>=0"
+patch_args=-Np0
 
 do_extract() {
 	bsdtar xfz ${XBPS_SRCDISTDIR}/${pkgname}-${version}/yarn-v${version}.tar.gz --strip-components=1 -C ${wrksrc}
diff --git a/srcpkgs/yarn/template b/srcpkgs/yarn/template
index aa9f68e53c4c..4b699e2cf02f 100644
--- a/srcpkgs/yarn/template
+++ b/srcpkgs/yarn/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="https://yarnpkg.com/"
 distfiles="https://github.com/yarnpkg/${pkgname}/archive/v${version}.tar.gz"
 checksum=66153f5fdd3078ce320c775990e4b4f03d5b596186f0e1fbceb34225abe3cd3e
+patch_args=-Np0
 
 conflicts="yarn-bin>=0"
 
diff --git a/srcpkgs/yeahconsole/template b/srcpkgs/yeahconsole/template
index ef7d82067398..997c438199a2 100644
--- a/srcpkgs/yeahconsole/template
+++ b/srcpkgs/yeahconsole/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="http://phrat.de/yeahtools.html"
 distfiles="http://phrat.de/yeahconsole-${version}.tar.gz"
 checksum=fcf3481f78a263a70f1cb5163630fc22e78bb0915013eb05689c6f4aeb0583ef
+patch_args=-Np0
 
 do_install() {
 	vbin yeahconsole
diff --git a/srcpkgs/yeahwm/template b/srcpkgs/yeahwm/template
index 3574b02200e6..0a241f71ee91 100644
--- a/srcpkgs/yeahwm/template
+++ b/srcpkgs/yeahwm/template
@@ -11,6 +11,7 @@ license="Public Domain"
 homepage="http://phrat.de"
 distfiles="http://phrat.de/${pkgname}_${version}.tar.gz"
 checksum=c92ce98848c8b88d9b67c128e30710944c04a6454310254535c102b2b6fcee05
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/yersinia/template b/srcpkgs/yersinia/template
index f9d57cfe9ffd..84c3b898a958 100644
--- a/srcpkgs/yersinia/template
+++ b/srcpkgs/yersinia/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/tomac/yersinia"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=964f528dbffd904376ab7986e69b1e8639591c929e2f39186ac9ebf2d3bc761f
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ${makedepends}"
diff --git a/srcpkgs/ympd/template b/srcpkgs/ympd/template
index 450c079b2ca3..3cea700b1264 100644
--- a/srcpkgs/ympd/template
+++ b/srcpkgs/ympd/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://www.ympd.org"
 distfiles="https://github.com/notandy/ympd/archive/v${version}.tar.gz"
 checksum=d9f68920cd93d1cfa971e1d7b9162a2b1724909bc9753c1338cecb3688d234d5
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e"s;-std=gnu99 -Wall;& -fcommon;"
diff --git a/srcpkgs/yoshimi/template b/srcpkgs/yoshimi/template
index b836098f1c82..33bc95745815 100644
--- a/srcpkgs/yoshimi/template
+++ b/srcpkgs/yoshimi/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://yoshimi.github.io/"
 distfiles="https://github.com/Yoshimi/$pkgname/archive/$version.tar.gz"
 checksum=b80a8b49bdf0e1f6c382627afc46c82d03219b7e45cdecd933e6fc046a939967
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone";;
diff --git a/srcpkgs/yosys/template b/srcpkgs/yosys/template
index 72e7da38f402..de5ad13629ca 100644
--- a/srcpkgs/yosys/template
+++ b/srcpkgs/yosys/template
@@ -16,6 +16,7 @@ license="ISC, MIT"
 homepage="http://www.clifford.at/yosys/about.html"
 distfiles="https://github.com/cliffordwolf/yosys/archive/yosys-${version}.tar.gz"
 checksum=f2e31371f9cf1b36cb4f57b23fd6eb849adc7d935dcf49f3c905aa5136382c2f
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's,-I[$](PREFIX)/include,,' \
diff --git a/srcpkgs/z3/template b/srcpkgs/z3/template
index 789712fa6450..0bf58a1ce64e 100644
--- a/srcpkgs/z3/template
+++ b/srcpkgs/z3/template
@@ -16,6 +16,7 @@ license="MIT"
 homepage="https://github.com/Z3Prover/z3"
 distfiles="https://github.com/Z3Prover/z3/archive/z3-${version}.tar.gz"
 checksum=99e912b9af76a17f8827f89afcf4da117736f3877a8bbdd737c548c6541009d7
+patch_args=-Np0
 
 build_options="ocaml"
 desc_option_ocaml="Enable support for OCaml bindings"
diff --git a/srcpkgs/z80ex/template b/srcpkgs/z80ex/template
index 5437f53d33d5..d71d6304ee1a 100644
--- a/srcpkgs/z80ex/template
+++ b/srcpkgs/z80ex/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="https://sourceforge.net/projects/z80ex/"
 distfiles="${SOURCEFORGE_SITE}/project/z80ex/z80ex/${version}/z80ex-${version}.tar.gz"
 checksum=6f5e521d068a614b41e10180ad4ae45b1bc258ec28c962543feb9078856c2530
+patch_args=-Np0
 
 z80ex-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/zabbix/template b/srcpkgs/zabbix/template
index 5db05d0d5d45..9cc6ed5f43a0 100644
--- a/srcpkgs/zabbix/template
+++ b/srcpkgs/zabbix/template
@@ -23,6 +23,7 @@ conf_files="/etc/zabbix_server.conf"
 system_accounts="_zabbix_server"
 system_groups="_zabbix_server"
 make_dirs="/var/log/zabbix-server 0750 _zabbix_server _zabbix_server"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# configure scripts is bad at checking, problably runs code instead of
diff --git a/srcpkgs/zbar/template b/srcpkgs/zbar/template
index f64d87fcfe81..6bd2833da871 100644
--- a/srcpkgs/zbar/template
+++ b/srcpkgs/zbar/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="https://git.linuxtv.org/zbar.git/"
 distfiles="https://linuxtv.org/downloads/zbar/${pkgname}-${version}.tar.bz2"
 checksum=dad260b47ef887a639e840a89e5e6e132217b6bba2a8473565d1f459bcb97c1f
+patch_args=-Np0
 
 build_options="qt"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/zeal/template b/srcpkgs/zeal/template
index 9db6b15584d6..16905d094d3e 100644
--- a/srcpkgs/zeal/template
+++ b/srcpkgs/zeal/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://zealdocs.org/"
 distfiles="https://github.com/zealdocs/zeal/archive/v${version}.tar.gz"
 checksum=095c08f9903071849d5c79878abd48237ce1615f16d324afff1873ab6b5f0026
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake"
diff --git a/srcpkgs/zeek/template b/srcpkgs/zeek/template
index e071ae02cb68..2e5267e20f59 100644
--- a/srcpkgs/zeek/template
+++ b/srcpkgs/zeek/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="https://www.zeek.org"
 distfiles="https://old.zeek.org/downloads/zeek-${version}.tar.gz"
 checksum=659a890f433cb730519966bdc41f1a03fb67e27e94b5d52ad9ee890022a12c3a
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-fts-devel musl-legacy-compat"
diff --git a/srcpkgs/zerofree/template b/srcpkgs/zerofree/template
index 82d05a933846..4bbff91d1d86 100644
--- a/srcpkgs/zerofree/template
+++ b/srcpkgs/zerofree/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://frippery.org/uml/index.html"
 distfiles="https://frippery.org/uml/${pkgname}-${version}.tgz"
 checksum=956bc861b55ba0a2b7593c58d32339dab1a0e7da6ea2b813d27c80f08b723867
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's|\(-lext2fs\)|$(LDFLAGS) \1|' Makefile
diff --git a/srcpkgs/zfs/template b/srcpkgs/zfs/template
index 40d6bcd78509..bd20fd9b8ed0 100644
--- a/srcpkgs/zfs/template
+++ b/srcpkgs/zfs/template
@@ -19,6 +19,7 @@ checksum=7d1344c5433b91823f02c2e40b33d181fa6faf286bea5591f4b1965f23d45f6c
 # dkms must be before initramfs-regenerate to build modules before images
 triggers="dkms initramfs-regenerate"
 dkms_modules="zfs ${version}"
+patch_args=-Np0
 
 replaces="spl<=0.7.13_1" # Because SPL was merged into zfs in 0.8.0
 
diff --git a/srcpkgs/zimg/template b/srcpkgs/zimg/template
index a0b0ff763198..1dc610bf781f 100644
--- a/srcpkgs/zimg/template
+++ b/srcpkgs/zimg/template
@@ -11,6 +11,7 @@ license="WTFPL"
 homepage="https://github.com/sekrit-twc/zimg"
 distfiles="https://github.com/sekrit-twc/zimg/archive/release-${version}.tar.gz"
 checksum=a15c0483fbe945ffe695a1a989bc43b3381c8bf33e2d1760464ec21d32cdf30b
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/zinnia/template b/srcpkgs/zinnia/template
index fc0f6a2a5a6b..2dc564a9a281 100644
--- a/srcpkgs/zinnia/template
+++ b/srcpkgs/zinnia/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="https://taku910.github.io/zinnia/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.gz"
 checksum=ece3af93f937282971634fd81d3e997f848e8cfa958220e26a4564ca064ac20b
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/zip/template b/srcpkgs/zip/template
index 94cb4c961033..720fa31b6b64 100644
--- a/srcpkgs/zip/template
+++ b/srcpkgs/zip/template
@@ -9,6 +9,7 @@ license="Info-ZIP"
 homepage="http://infozip.sf.net/"
 distfiles="${SOURCEFORGE_SITE}/infozip/zip30.tar.gz"
 checksum=f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
+patch_args=-Np0
 
 do_build() {
 	sed -e "s|generic CC=gcc CPP=\"gcc -E\"|zips CC=$CC CPP=\"$CPP -E\" CFLAGS=\"-DLARGE_FILE_SUPPORT $CFLAGS \${CFLAGS_NOOPT}\" LFLAGS2=\"$LDFLAGS\"|g" -i unix/Makefile
diff --git a/srcpkgs/zlib/template b/srcpkgs/zlib/template
index a6462e5616a2..b7519dafd23f 100644
--- a/srcpkgs/zlib/template
+++ b/srcpkgs/zlib/template
@@ -10,6 +10,7 @@ license="Zlib"
 homepage="http://www.zlib.net"
 distfiles="$homepage/$pkgname-$version.tar.gz"
 checksum=c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
+patch_args=-Np0
 
 do_configure() {
 	LDFLAGS= LDSHAREDLIBC= ./configure --prefix=/usr --shared
diff --git a/srcpkgs/zsnes/template b/srcpkgs/zsnes/template
index df49c9c7d3e7..1d961f28744b 100644
--- a/srcpkgs/zsnes/template
+++ b/srcpkgs/zsnes/template
@@ -5,6 +5,7 @@ archs="i686"
 lib32mode="full"
 wrksrc="zsnes_1_51"
 build_wrksrc="src"
+patch_args=-Np0
 
 pkgname=zsnes
 version=1.51
diff --git a/srcpkgs/zulucrypt/template b/srcpkgs/zulucrypt/template
index cc596dc63dc2..7a197d0af329 100644
--- a/srcpkgs/zulucrypt/template
+++ b/srcpkgs/zulucrypt/template
@@ -21,6 +21,7 @@ homepage="https://mhogomchungu.github.io/zuluCrypt"
 changelog="https://raw.githubusercontent.com/mhogomchungu/zuluCrypt/master/changelog"
 distfiles="https://github.com/mhogomchungu/zuluCrypt/archive/${version}.tar.gz"
 checksum=f1bc599446e6dc82c6af16672fcbd4a88679d3b3dba2cfa3921ac514cb211add
+patch_args=-Np0
 
 #https://github.com/mhogomchungu/zuluCrypt/blob/e138cc4459545b2e0f729814791a045c31b63014/BUILD_INSTRUCTIONS
 build_options="udev kde gnome pwquality polkit homemount"
diff --git a/srcpkgs/zutils/template b/srcpkgs/zutils/template
index 8549ede01b59..9ad5a4b3aae6 100644
--- a/srcpkgs/zutils/template
+++ b/srcpkgs/zutils/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.nongnu.org/zutils/zutils.html"
 distfiles="http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${version}.tar.lz"
 checksum=0dd44138292d5757648037195b6945c3df70b316221b4285520ad38f2eaeb195
+patch_args=-Np0
 
 post_install() {
 	cd ${DESTDIR}/usr/bin
diff --git a/srcpkgs/zynaddsubfx/template b/srcpkgs/zynaddsubfx/template
index 844d14016a06..42b639e637de 100644
--- a/srcpkgs/zynaddsubfx/template
+++ b/srcpkgs/zynaddsubfx/template
@@ -15,6 +15,7 @@ homepage="http://zynaddsubfx.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
 checksum=7447322268114a1e0ac5f281ac37a09a78e761a7be61999caf79100049789f63
 replaces="zynaddsubfx-data>=0"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	armv5*) configure_args+=" -DSUPPORT_NEON=NO";;

From cc3a25e6e29f2b101e6c9fd73637dec6d30be514 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:33:02 +0700
Subject: [PATCH 4/6] srcpkgs: add patch_args=-Np0 en-mass

Generated with:

        git ls-files 'srcpkgs/**/patches/*' |
        cut -d/ -f2 | uniq |
        xargs printf 'srcpkgs/%s/template\n'  |
        xargs grep -L 'patch_args=' |
        xargs sed -i '$a patch_args=-Np0"
---
 srcpkgs/64tass/template                     | 1 +
 srcpkgs/EmptyEpsilon/template               | 1 +
 srcpkgs/FreeDoko/template                   | 1 +
 srcpkgs/SoapyUHD/template                   | 1 +
 srcpkgs/Terminal/template                   | 1 +
 srcpkgs/a2jmidid/template                   | 1 +
 srcpkgs/apvlv/template                      | 1 +
 srcpkgs/auto-auto-complete/template         | 1 +
 srcpkgs/azpainter/template                  | 1 +
 srcpkgs/balsa/template                      | 1 +
 srcpkgs/batctl14/template                   | 1 +
 srcpkgs/biosdisk/template                   | 1 +
 srcpkgs/birdtray/template                   | 1 +
 srcpkgs/bitwise/template                    | 1 +
 srcpkgs/bti/template                        | 1 +
 srcpkgs/bzflag/template                     | 1 +
 srcpkgs/cantata/template                    | 1 +
 srcpkgs/cinnamon-session/template           | 1 +
 srcpkgs/clazy/template                      | 1 +
 srcpkgs/curlftpfs/template                  | 1 +
 srcpkgs/cutecom/template                    | 1 +
 srcpkgs/cvs/template                        | 1 +
 srcpkgs/darkice/template                    | 1 +
 srcpkgs/ddd/template                        | 1 +
 srcpkgs/dhewm3/template                     | 1 +
 srcpkgs/dialogbox/template                  | 1 +
 srcpkgs/dillo/template                      | 1 +
 srcpkgs/dislocker/template                  | 1 +
 srcpkgs/dmg2img/template                    | 1 +
 srcpkgs/dvdbackup/template                  | 1 +
 srcpkgs/edb-debugger/template               | 1 +
 srcpkgs/endless-sky/template                | 1 +
 srcpkgs/eolie/template                      | 1 +
 srcpkgs/epson-inkjet-printer-escpr/template | 1 +
 srcpkgs/exfat-utils/template                | 1 +
 srcpkgs/extundelete/template                | 1 +
 srcpkgs/fastjar/template                    | 1 +
 srcpkgs/fceux/template                      | 1 +
 srcpkgs/fifengine/template                  | 1 +
 srcpkgs/filelight/template                  | 1 +
 srcpkgs/fuse-emulator/template              | 1 +
 srcpkgs/gcal/template                       | 1 +
 srcpkgs/gftp/template                       | 1 +
 srcpkgs/gfuzz/template                      | 1 +
 srcpkgs/git-mediate/template                | 1 +
 srcpkgs/gltron/template                     | 1 +
 srcpkgs/gnome-recipes/template              | 1 +
 srcpkgs/gnupod/template                     | 1 +
 srcpkgs/gupnp-tools/template                | 1 +
 srcpkgs/helm/template                       | 1 +
 srcpkgs/html-xml-utils/template             | 1 +
 srcpkgs/hxtools/template                    | 1 +
 srcpkgs/icecast/template                    | 1 +
 srcpkgs/imagewriter/template                | 1 +
 srcpkgs/img2pdf/template                    | 1 +
 srcpkgs/intel-undervolt/template            | 1 +
 srcpkgs/intltool/template                   | 1 +
 srcpkgs/io.elementary.photos/template       | 1 +
 srcpkgs/ipv6calc/template                   | 1 +
 srcpkgs/itstool/template                    | 1 +
 srcpkgs/iwgtk/template                      | 1 +
 srcpkgs/jigdo/template                      | 1 +
 srcpkgs/k3b/template                        | 1 +
 srcpkgs/kcm-wacomtablet/template            | 1 +
 srcpkgs/kcov/template                       | 1 +
 srcpkgs/keditbookmarks/template             | 1 +
 srcpkgs/kig/template                        | 1 +
 srcpkgs/krusader/template                   | 1 +
 srcpkgs/ksysguard/template                  | 1 +
 srcpkgs/lbreakouthd/template                | 1 +
 srcpkgs/lbzip2/template                     | 1 +
 srcpkgs/lcov/template                       | 1 +
 srcpkgs/libeatmydata/template               | 1 +
 srcpkgs/libva-vdpau-driver/template         | 1 +
 srcpkgs/libwm/template                      | 1 +
 srcpkgs/lltag/template                      | 1 +
 srcpkgs/lrzsz/template                      | 1 +
 srcpkgs/macchanger/template                 | 1 +
 srcpkgs/mate-power-manager/template         | 1 +
 srcpkgs/mcomix/template                     | 1 +
 srcpkgs/mftrace/template                    | 1 +
 srcpkgs/nm-tray/template                    | 1 +
 srcpkgs/nootka/template                     | 1 +
 srcpkgs/olive/template                      | 1 +
 srcpkgs/pam_rundir/template                 | 1 +
 srcpkgs/pdfgrep/template                    | 1 +
 srcpkgs/pdfsandwich/template                | 1 +
 srcpkgs/pekwm/template                      | 1 +
 srcpkgs/perl-Authen-SASL/template           | 1 +
 srcpkgs/perl-Crypt-DH/template              | 1 +
 srcpkgs/perl-Crypt-Rijndael/template        | 1 +
 srcpkgs/perl-Fuse/template                  | 1 +
 srcpkgs/perl-OpenGL/template                | 1 +
 srcpkgs/perl-XML-LibXSLT/template           | 1 +
 srcpkgs/perl-XML-SAX/template               | 1 +
 srcpkgs/pidgin-gpg/template                 | 1 +
 srcpkgs/pidgin-sipe/template                | 1 +
 srcpkgs/plasma-desktop/template             | 1 +
 srcpkgs/pokoy/template                      | 1 +
 srcpkgs/polkit-kde-agent/template           | 1 +
 srcpkgs/posixovl/template                   | 1 +
 srcpkgs/powertop/template                   | 1 +
 srcpkgs/python3-orocos-kdl/template         | 1 +
 srcpkgs/python3-pykeepass/template          | 1 +
 srcpkgs/python3-transifex-client/template   | 1 +
 srcpkgs/python3-yara/template               | 1 +
 srcpkgs/qmltermwidget/template              | 1 +
 srcpkgs/qomui/template                      | 1 +
 srcpkgs/qtcurve/template                    | 1 +
 srcpkgs/qtfm/template                       | 1 +
 srcpkgs/recoll/template                     | 1 +
 srcpkgs/recordmydesktop/template            | 1 +
 srcpkgs/rofs-filtered/template              | 1 +
 srcpkgs/sasm/template                       | 1 +
 srcpkgs/scribus/template                    | 1 +
 srcpkgs/seahorse-nautilus/template          | 1 +
 srcpkgs/seq2gif/template                    | 1 +
 srcpkgs/sgfutils/template                   | 1 +
 srcpkgs/sidplayfp/template                  | 1 +
 srcpkgs/smbnetfs/template                   | 1 +
 srcpkgs/solvespace/template                 | 1 +
 srcpkgs/sonata/template                     | 1 +
 srcpkgs/stellarium/template                 | 1 +
 srcpkgs/streamripper/template               | 1 +
 srcpkgs/stress-ng/template                  | 1 +
 srcpkgs/swell-foop/template                 | 1 +
 srcpkgs/switchboard-plug-printers/template  | 1 +
 srcpkgs/telepathy-haze/template             | 1 +
 srcpkgs/tellico/template                    | 1 +
 srcpkgs/texmaker/template                   | 1 +
 srcpkgs/tmfs/template                       | 1 +
 srcpkgs/trackballs/template                 | 1 +
 srcpkgs/tremc/template                      | 1 +
 srcpkgs/ttfautohint/template                | 1 +
 srcpkgs/tworld/template                     | 1 +
 srcpkgs/ucl/template                        | 1 +
 srcpkgs/uhubctl/template                    | 1 +
 srcpkgs/usb-modeswitch-data/template        | 1 +
 srcpkgs/usb-modeswitch/template             | 1 +
 srcpkgs/valabind/template                   | 1 +
 srcpkgs/vba-m/template                      | 1 +
 srcpkgs/wdisplays/template                  | 1 +
 srcpkgs/wfuzz/template                      | 1 +
 srcpkgs/whysynth/template                   | 1 +
 srcpkgs/wmctrl/template                     | 1 +
 srcpkgs/wofi/template                       | 1 +
 srcpkgs/wvdial/template                     | 1 +
 srcpkgs/xbindkeys/template                  | 1 +
 srcpkgs/xdg-dbus-proxy/template             | 1 +
 srcpkgs/xfce4-power-manager/template        | 1 +
 srcpkgs/xkblayout-state/template            | 1 +
 srcpkgs/xnots/template                      | 1 +
 srcpkgs/xsel/template                       | 1 +
 srcpkgs/xseticon/template                   | 1 +
 srcpkgs/yabause-gtk/template                | 1 +
 srcpkgs/zaz/template                        | 1 +
 srcpkgs/zbackup/template                    | 1 +
 157 files changed, 157 insertions(+)

diff --git a/srcpkgs/64tass/template b/srcpkgs/64tass/template
index ae06411d48bc..5cb4cefd8189 100644
--- a/srcpkgs/64tass/template
+++ b/srcpkgs/64tass/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="http://tass64.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/tass64/64tass-${version}-src.zip"
 checksum=067d0a54cb3c473b26aa5d69ea3f1f956be7cccc9044f1117fc20cb84aa63880
+patch_args=-Np0
diff --git a/srcpkgs/EmptyEpsilon/template b/srcpkgs/EmptyEpsilon/template
index f191433eec50..c9ba6f8595b5 100644
--- a/srcpkgs/EmptyEpsilon/template
+++ b/srcpkgs/EmptyEpsilon/template
@@ -22,3 +22,4 @@ distfiles="https://github.com/daid/EmptyEpsilon/archive/EE-${version}.tar.gz
  https://github.com/daid/SeriousProton/archive/EE-${version}.tar.gz>SP-${version}.tar.gz"
 checksum="c1c4f11fefe1afac6076c795e8785c7507a297ba3f7f2be9ed30c97b1e93cb24
  62ab03dc904bd10f017fff338e55ec97c86f0bc3903a18d6c44285b86776a2d7"
+patch_args=-Np0
diff --git a/srcpkgs/FreeDoko/template b/srcpkgs/FreeDoko/template
index 6ec209a18922..80746fe5d893 100644
--- a/srcpkgs/FreeDoko/template
+++ b/srcpkgs/FreeDoko/template
@@ -13,3 +13,4 @@ homepage="http://free-doko.sourceforge.net/en/FreeDoko.html"
 license="GPL-2.0-or-later"
 distfiles="${SOURCEFORGE_SITE}/free-doko/FreeDoko_${version}.src.zip"
 checksum=5b9ca3ad915f36dba17a4bd22b3d7d68ac2526cf125d045a819aa8d4a2cceb4c
+patch_args=-Np0
diff --git a/srcpkgs/SoapyUHD/template b/srcpkgs/SoapyUHD/template
index 90f51db7b9c6..5549897fda77 100644
--- a/srcpkgs/SoapyUHD/template
+++ b/srcpkgs/SoapyUHD/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/pothosware/SoapyUHD"
 distfiles="${homepage}/archive/soapy-uhd-${version}.tar.gz"
 checksum=0ac7fd0967e6922f16d1ba1a7ecb72f1fbcc14dd80e5134af9a5c9b86c1bccb8
+patch_args=-Np0
diff --git a/srcpkgs/Terminal/template b/srcpkgs/Terminal/template
index 9cd7970fcc2e..d2fddec6eb3d 100644
--- a/srcpkgs/Terminal/template
+++ b/srcpkgs/Terminal/template
@@ -15,3 +15,4 @@ homepage="http://gap.nongnu.org/terminal/"
 distfiles="${NONGNU_SITE}/gap/${pkgname}-${version}.tar.gz"
 checksum=27f81bbecdbd10cde8c080012cde4973bec20e551c58c29f353733cf03c220e9
 nocross="objc doesn't get cross build at present within gcc (see gnustep-base)"
+patch_args=-Np0
diff --git a/srcpkgs/a2jmidid/template b/srcpkgs/a2jmidid/template
index b39aa31eef1c..eca329aec5f1 100644
--- a/srcpkgs/a2jmidid/template
+++ b/srcpkgs/a2jmidid/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/linuxaudio/a2jmidid/"
 distfiles="https://github.com/linuxaudio/a2jmidid/archive/${version}.tar.gz"
 checksum=2828d283e0c9a65f0683881f09676c8c35c45c97a8a56cf77b43b4ef0231df06
+patch_args=-Np0
diff --git a/srcpkgs/apvlv/template b/srcpkgs/apvlv/template
index 8d343dbe3358..8cd23927d55a 100644
--- a/srcpkgs/apvlv/template
+++ b/srcpkgs/apvlv/template
@@ -14,3 +14,4 @@ homepage="http://naihe2010.github.io/apvlv/"
 distfiles="https://github.com/naihe2010/apvlv/archive/v${version}.tar.gz"
 checksum=a4a2f42a7e42715a21d2356def3ed93c180c6ae41128580addee42835e5374c2
 replaces="apvlv-git>=0"
+patch_args=-Np0
diff --git a/srcpkgs/auto-auto-complete/template b/srcpkgs/auto-auto-complete/template
index 065d615c2b59..24a3eb40df42 100644
--- a/srcpkgs/auto-auto-complete/template
+++ b/srcpkgs/auto-auto-complete/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/maandree/auto-auto-complete"
 distfiles="https://github.com/maandree/${pkgname}/archive/${version}.tar.gz"
 checksum=5e54025c6ef65dfff5ba976d23eb778a0936b0678763ebcd78359d460300301e
+patch_args=-Np0
diff --git a/srcpkgs/azpainter/template b/srcpkgs/azpainter/template
index 05bd1be32771..b47d36fbe7ac 100644
--- a/srcpkgs/azpainter/template
+++ b/srcpkgs/azpainter/template
@@ -13,3 +13,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/Symbian9/azpainter"
 distfiles="https://github.com/Symbian9/azpainter/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=85f3f935e76b420f2e5e272514368fdfbe4c25c01daa1e161ac28a6e1edb0d2c
+patch_args=-Np0
diff --git a/srcpkgs/balsa/template b/srcpkgs/balsa/template
index 255ae0f226a5..5d3f410bf0b3 100644
--- a/srcpkgs/balsa/template
+++ b/srcpkgs/balsa/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://pawsa.fedorapeople.org/balsa/"
 distfiles="https://pawsa.fedorapeople.org/balsa/balsa-${version}.tar.bz2"
 checksum=6441772cb5e1870f10c358c21f7e709da8cc0bfa6cc005ec744b9f1b00ea7df6
+patch_args=-Np0
diff --git a/srcpkgs/batctl14/template b/srcpkgs/batctl14/template
index 4ca1b15ed0ea..9fc5556c20f2 100644
--- a/srcpkgs/batctl14/template
+++ b/srcpkgs/batctl14/template
@@ -14,3 +14,4 @@ homepage="http://www.open-mesh.net/"
 distfiles="http://downloads.open-mesh.net/batman/releases/batman-adv-${version}/batctl-${version}.tar.gz"
 checksum=4deae3b6664d0d13acf7a8ece74175a31a72fe58fb15cb9112a9a2014b32cb4c
 conflicts="batctl>=0"
+patch_args=-Np0
diff --git a/srcpkgs/biosdisk/template b/srcpkgs/biosdisk/template
index ccbc76f4e55a..ea5ad3aebcab 100644
--- a/srcpkgs/biosdisk/template
+++ b/srcpkgs/biosdisk/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/dell/biosdisk"
 distfiles="https://github.com/dell/biosdisk/archive/${version}.tar.gz"
 checksum=e89cf680914ab3d5bbb549c124c6c29594ef495880befc0d059ec8a3aaf1e3e7
+patch_args=-Np0
diff --git a/srcpkgs/birdtray/template b/srcpkgs/birdtray/template
index 8695820eccec..acf7c1d9c19c 100644
--- a/srcpkgs/birdtray/template
+++ b/srcpkgs/birdtray/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/gyunaev/birdtray"
 distfiles="https://github.com/gyunaev/birdtray/archive/v${version}.tar.gz"
 checksum=672256bfadbde2841dcd6bad00662aeba825a4f041fa9a1980763f9eb29294d0
+patch_args=-Np0
diff --git a/srcpkgs/bitwise/template b/srcpkgs/bitwise/template
index 16b8b2a23fe4..9e3fe3fa18c7 100644
--- a/srcpkgs/bitwise/template
+++ b/srcpkgs/bitwise/template
@@ -12,3 +12,4 @@ license="GPL-3.0-only"
 homepage="https://github.com/mellowcandle/bitwise"
 distfiles="${homepage}/releases/download/v${version}/bitwise-v${version}.tar.gz"
 checksum=d3d43cef47bf8f49e85f7ed381c3eaf1df921ca51805e0962f1a97a517e1d1d2
+patch_args=-Np0
diff --git a/srcpkgs/bti/template b/srcpkgs/bti/template
index a914e9e75d60..82d1af711e15 100644
--- a/srcpkgs/bti/template
+++ b/srcpkgs/bti/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://gregkh.github.com/bti/"
 distfiles="https://www.kernel.org/pub/software/web/bti/bti-${version}.tar.xz"
 checksum=8b4a1a11f529f83956468acadaea9d11db4f03e82afe07fecb84b2d00e9eae83
+patch_args=-Np0
diff --git a/srcpkgs/bzflag/template b/srcpkgs/bzflag/template
index d58270495975..e7315f51646a 100644
--- a/srcpkgs/bzflag/template
+++ b/srcpkgs/bzflag/template
@@ -12,3 +12,4 @@ homepage="https://www.bzflag.org"
 changelog="https://raw.githubusercontent.com/BZFlag-Dev/bzflag/2.4/ChangeLog"
 distfiles="https://download.bzflag.org/bzflag/source/${version}/bzflag-${version}.tar.bz2"
 checksum=9e64653302b657bd8b5f96fe1150a9ff80a1d53a6d7e8a35138c6b1b02006a4d
+patch_args=-Np0
diff --git a/srcpkgs/cantata/template b/srcpkgs/cantata/template
index 8ce1d756ace9..428ce3175cf6 100644
--- a/srcpkgs/cantata/template
+++ b/srcpkgs/cantata/template
@@ -17,3 +17,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/cdrummond/cantata"
 distfiles="https://github.com/CDrummond/cantata/releases/download/v${version}/${pkgname}-${version}.tar.bz2"
 checksum=3ed25d0c838720af7ed08b89a30f3e05d6952d40a5f520f29b3558b2eacdec82
+patch_args=-Np0
diff --git a/srcpkgs/cinnamon-session/template b/srcpkgs/cinnamon-session/template
index c27272b802a3..fa112215531a 100644
--- a/srcpkgs/cinnamon-session/template
+++ b/srcpkgs/cinnamon-session/template
@@ -17,3 +17,4 @@ license="GPL-2.0-or-later, LGPL-2.0-or-later"
 homepage="https://linuxmint-developer-guide.readthedocs.io/en/latest/cinnamon.html#cinnamon-session"
 distfiles="https://github.com/linuxmint/${pkgname}/archive/${version}.tar.gz"
 checksum=66301a1eb748f646c419ced76f3388d8d6af0436716c737842cd85f359bd38d4
+patch_args=-Np0
diff --git a/srcpkgs/clazy/template b/srcpkgs/clazy/template
index 2c958d5d481f..92023b704232 100644
--- a/srcpkgs/clazy/template
+++ b/srcpkgs/clazy/template
@@ -12,3 +12,4 @@ homepage="https://apps.kde.org/en/clazy"
 distfiles="${KDE_SITE}/clazy/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=4c6c2e473e6aa011cc5fab120ebcffec3fc11a9cc677e21ad8c3ea676eb076f8
 nocross="Clang cannot be installed as makedep"
+patch_args=-Np0
diff --git a/srcpkgs/curlftpfs/template b/srcpkgs/curlftpfs/template
index c1f06571aa24..aaabe2018457 100644
--- a/srcpkgs/curlftpfs/template
+++ b/srcpkgs/curlftpfs/template
@@ -11,3 +11,4 @@ homepage="http://curlftpfs.sourceforge.net/"
 license="GPL-2"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4eb44739c7078ba0edde177bdd266c4cfb7c621075f47f64c85a06b12b3c6958
+patch_args=-Np0
diff --git a/srcpkgs/cutecom/template b/srcpkgs/cutecom/template
index 4aad5728d348..e5cd27e3ea63 100644
--- a/srcpkgs/cutecom/template
+++ b/srcpkgs/cutecom/template
@@ -12,3 +12,4 @@ license="GPL-3.0-only"
 homepage="https://gitlab.com/cutecom/cutecom/"
 distfiles="https://gitlab.com/cutecom/cutecom/-/archive/v${version}/cutecom-v${version}.tar.gz"
 checksum=4b2591daa983b31716091bd1602988b5a06a19c1a3402150826fc36233edbedd
+patch_args=-Np0
diff --git a/srcpkgs/cvs/template b/srcpkgs/cvs/template
index c37384b54302..25d4446d64d7 100644
--- a/srcpkgs/cvs/template
+++ b/srcpkgs/cvs/template
@@ -14,3 +14,4 @@ homepage="http://www.nongnu.org/cvs/"
 license="GPL-1, LGPL-2"
 distfiles="http://ftp.gnu.org/non-gnu/cvs/source/feature/$version/cvs-$version.tar.bz2"
 checksum=78853613b9a6873a30e1cc2417f738c330e75f887afdaf7b3d0800cb19ca515e
+patch_args=-Np0
diff --git a/srcpkgs/darkice/template b/srcpkgs/darkice/template
index b61c6d8c7f8a..d6afbebc3446 100644
--- a/srcpkgs/darkice/template
+++ b/srcpkgs/darkice/template
@@ -21,3 +21,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.darkice.org"
 distfiles="${SOURCEFORGE_SITE}/project/darkice/darkice/${version}/darkice-${version}.tar.gz"
 checksum=2c0d0faaa627c0273b2ce8b38775a73ef97e34ef866862a398f660ad8f6e9de6
+patch_args=-Np0
diff --git a/srcpkgs/ddd/template b/srcpkgs/ddd/template
index 24f44a9abc23..71dc933f1045 100644
--- a/srcpkgs/ddd/template
+++ b/srcpkgs/ddd/template
@@ -10,3 +10,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/ddd"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=3ad6cd67d7f4b1d6b2d38537261564a0d26aaed077bf25c51efc1474d0e8b65c
+patch_args=-Np0
diff --git a/srcpkgs/dhewm3/template b/srcpkgs/dhewm3/template
index 5509900e8c0b..f2cfd2c0f79c 100644
--- a/srcpkgs/dhewm3/template
+++ b/srcpkgs/dhewm3/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://dhewm3.org/"
 distfiles="https://github.com/dhewm/dhewm3/releases/download/${version}/dhewm3-${version}-src.tar.xz"
 checksum=31671f35fb6f83272dfa2a27c0dad6183bc228f1f1a448ef925052cf4dcf4b68
+patch_args=-Np0
diff --git a/srcpkgs/dialogbox/template b/srcpkgs/dialogbox/template
index 31d985e61769..f213a4c2d3a0 100644
--- a/srcpkgs/dialogbox/template
+++ b/srcpkgs/dialogbox/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/martynets/dialogbox"
 distfiles="https://github.com/martynets/dialogbox/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=554e59712a616772cff5734206e2a223171ad57c0e922421d8383a763b11640e
+patch_args=-Np0
diff --git a/srcpkgs/dillo/template b/srcpkgs/dillo/template
index d2bdc4bf77e8..16a821062d9f 100644
--- a/srcpkgs/dillo/template
+++ b/srcpkgs/dillo/template
@@ -15,3 +15,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.dillo.org/download/"
 distfiles="http://www.dillo.org/download/${pkgname}-${version}.tar.bz2"
 checksum=db1be16c1c5842ebe07b419aa7c6ef11a45603a75df2877f99635f4f8345148b
+patch_args=-Np0
diff --git a/srcpkgs/dislocker/template b/srcpkgs/dislocker/template
index a5580034c6fd..97b42c35a35e 100644
--- a/srcpkgs/dislocker/template
+++ b/srcpkgs/dislocker/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Aorimn/dislocker"
 distfiles="https://github.com/Aorimn/${pkgname}/archive/v${version}.tar.gz"
 checksum=8d5275577c44f2bd87f6e05dd61971a71c0e56a9cbedf000bd38deadd8b6c1e6
+patch_args=-Np0
diff --git a/srcpkgs/dmg2img/template b/srcpkgs/dmg2img/template
index a14781b0c3b1..bfe2c851b263 100644
--- a/srcpkgs/dmg2img/template
+++ b/srcpkgs/dmg2img/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://vu1tur.eu.org/dmg2img"
 distfiles="http://vu1tur.eu.org/tools/dmg2img-${version}.tar.gz"
 checksum=02aea6d05c5b810074913b954296ddffaa43497ed720ac0a671da4791ec4d018
+patch_args=-Np0
diff --git a/srcpkgs/dvdbackup/template b/srcpkgs/dvdbackup/template
index 0d823b6f97ef..11d83f016517 100644
--- a/srcpkgs/dvdbackup/template
+++ b/srcpkgs/dvdbackup/template
@@ -10,3 +10,4 @@ license="GPL-3.0-or-later"
 homepage="http://dvdbackup.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/dvdbackup/dvdbackup-${version}.tar.xz"
 checksum=ef8c56fbb82b15b7eef00d2d3118c8253f9770009ed7bb2a5d4849acf88183e6
+patch_args=-Np0
diff --git a/srcpkgs/edb-debugger/template b/srcpkgs/edb-debugger/template
index e2d24e173f10..1f78ae3755d5 100644
--- a/srcpkgs/edb-debugger/template
+++ b/srcpkgs/edb-debugger/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/eteran/edb-debugger"
 distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tgz"
 checksum=86df4a0940a39c1480a6fc789f167f94e87a7a330f2d8163fe871f42c754afe8
+patch_args=-Np0
diff --git a/srcpkgs/endless-sky/template b/srcpkgs/endless-sky/template
index 00583361ce76..1cd6906a89b3 100644
--- a/srcpkgs/endless-sky/template
+++ b/srcpkgs/endless-sky/template
@@ -12,3 +12,4 @@ homepage="http://endless-sky.github.io/"
 distfiles="https://github.com/endless-sky/endless-sky/archive/v${version}.tar.gz"
 checksum=001c8a28bbec7491f2725fbaa52b1ade813d33cec2d16521f241c80d04685b9d
 replaces="endless-sky-data>=0"
+patch_args=-Np0
diff --git a/srcpkgs/eolie/template b/srcpkgs/eolie/template
index 4249e3426296..8dfb6676db8e 100644
--- a/srcpkgs/eolie/template
+++ b/srcpkgs/eolie/template
@@ -15,3 +15,4 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Eolie"
 distfiles="https://gitlab.gnome.org/World/eolie/uploads/${_eolie_hash}/eolie-${version}.tar.xz"
 checksum=9da359895306cf5929a01acb60d1506afb0a04ddbbd0d80ae1d0ba831e34671b
+patch_args=-Np0
diff --git a/srcpkgs/epson-inkjet-printer-escpr/template b/srcpkgs/epson-inkjet-printer-escpr/template
index dda44942fff6..fb4053ab40a7 100644
--- a/srcpkgs/epson-inkjet-printer-escpr/template
+++ b/srcpkgs/epson-inkjet-printer-escpr/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
 distfiles="https://download3.ebz.epson.net/dsc/f/03/00/10/49/18/f3016be6120a7271a6d9cb64872f817bce1920b8/${pkgname}-${version}-1lsb3.2.tar.gz"
 checksum=8d964368a1395a8902b8637e3dc176d6793f0afdfe3f21e95509f29894700d4e
+patch_args=-Np0
diff --git a/srcpkgs/exfat-utils/template b/srcpkgs/exfat-utils/template
index 6c62704fa511..6ca86c434c4c 100644
--- a/srcpkgs/exfat-utils/template
+++ b/srcpkgs/exfat-utils/template
@@ -9,3 +9,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/relan/exfat"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=dfebd07a7b907e2d603d3a9626e6440bd43ec6c4e8c07ccfc57ce9502b724835
+patch_args=-Np0
diff --git a/srcpkgs/extundelete/template b/srcpkgs/extundelete/template
index 3ae6119c38dc..87b9c1fdf9b7 100644
--- a/srcpkgs/extundelete/template
+++ b/srcpkgs/extundelete/template
@@ -10,3 +10,4 @@ license="GPL-2.0-only"
 homepage="http://extundelete.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=a1f9dd61247056d36401ce5d6785e74d08a184340eebd3865c345ddaa93f19f4
+patch_args=-Np0
diff --git a/srcpkgs/fastjar/template b/srcpkgs/fastjar/template
index 6eab069f60ef..f3a6c5fb87c0 100644
--- a/srcpkgs/fastjar/template
+++ b/srcpkgs/fastjar/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://savannah.nongnu.org/projects/fastjar"
 distfiles="http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=f156abc5de8658f22ee8f08d7a72c88f9409ebd8c7933e9466b0842afeb2f145
+patch_args=-Np0
diff --git a/srcpkgs/fceux/template b/srcpkgs/fceux/template
index 5ecaa9c7e08f..10c3b17d433b 100644
--- a/srcpkgs/fceux/template
+++ b/srcpkgs/fceux/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://fceux.com/web/home.html"
 distfiles="https://github.com/TASVideos/fceux/archive/fceux-${version}.tar.gz"
 checksum=0d3b02b3f15032f7675acb95423fd81fae286615313dfbc58cdd4de2bce17f6e
+patch_args=-Np0
diff --git a/srcpkgs/fifengine/template b/srcpkgs/fifengine/template
index 6a2cc79a4487..d3bf756eabe7 100644
--- a/srcpkgs/fifengine/template
+++ b/srcpkgs/fifengine/template
@@ -14,3 +14,4 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/fifengine/fifengine"
 distfiles="https://github.com/fifengine/fifengine/archive/${version}.tar.gz"
 checksum=e882b55befa36ae2f1a89ada16af0f814a1b78f7cbe6021ec5b1605604cf8ff8
+patch_args=-Np0
diff --git a/srcpkgs/filelight/template b/srcpkgs/filelight/template
index 35cd560b1f96..197232071e80 100644
--- a/srcpkgs/filelight/template
+++ b/srcpkgs/filelight/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://utils.kde.org/projects/filelight/"
 distfiles="${KDE_SITE}/release-service/${version}/src/filelight-${version}.tar.xz"
 checksum=618f91b9da8eebbb6b96e3d74d9e89a7c088ca08b1682ff6c4e65b53a3da5d20
+patch_args=-Np0
diff --git a/srcpkgs/fuse-emulator/template b/srcpkgs/fuse-emulator/template
index e1159f258700..957c8796eb0e 100644
--- a/srcpkgs/fuse-emulator/template
+++ b/srcpkgs/fuse-emulator/template
@@ -14,3 +14,4 @@ license="GPL-2.0-or-later"
 homepage="http://fuse-emulator.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/fuse-emulator/fuse-${version}.tar.gz"
 checksum=f0e2583f2642cdc3b2a737910d24e289d46e4f7e151805e3b0827024b2b45e4d
+patch_args=-Np0
diff --git a/srcpkgs/gcal/template b/srcpkgs/gcal/template
index 3c535d1c099c..7107cee8ef52 100644
--- a/srcpkgs/gcal/template
+++ b/srcpkgs/gcal/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/gcal/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=91b56c40b93eee9bda27ec63e95a6316d848e3ee047b5880ed71e5e8e60f61ab
+patch_args=-Np0
diff --git a/srcpkgs/gftp/template b/srcpkgs/gftp/template
index 0820b29da2d3..30a3556d628e 100644
--- a/srcpkgs/gftp/template
+++ b/srcpkgs/gftp/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.gftp.org"
 distfiles="https://sources.voidlinux.org/gftp-${version}/gftp-${version}.tar.bz2"
 checksum=5306a46be96d6f4d23906cb1836fb3d732039621a6c7fcfa921acc21ac110bfd
+patch_args=-Np0
diff --git a/srcpkgs/gfuzz/template b/srcpkgs/gfuzz/template
index 3925f06c9500..31faee7c4a90 100644
--- a/srcpkgs/gfuzz/template
+++ b/srcpkgs/gfuzz/template
@@ -12,3 +12,4 @@ license="Apache-2.0"
 homepage="https://github.com/braaaax/gfz"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=8b6a3df0c385fe993ead673df53daa290943220f2cde73e6b1c706ef94aa4e5f
+patch_args=-Np0
diff --git a/srcpkgs/git-mediate/template b/srcpkgs/git-mediate/template
index aa3979d3435a..7923a1743d95 100644
--- a/srcpkgs/git-mediate/template
+++ b/srcpkgs/git-mediate/template
@@ -13,3 +13,4 @@ distfiles="https://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-
 checksum=81220f7e20a3913bc147b69681666ad22e60e5b759a1becad78ee28dcad8013d
 nocross=yes
 nopie_files="/usr/bin/git-mediate"
+patch_args=-Np0
diff --git a/srcpkgs/gltron/template b/srcpkgs/gltron/template
index 1239a1742e5d..4aad84aeb45e 100644
--- a/srcpkgs/gltron/template
+++ b/srcpkgs/gltron/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://gltron.org/"
 distfiles="${SOURCEFORGE_SITE}/gltron/gltron-${version}-source.tar.gz"
 checksum="e0c8ebb41a18a1f8d7302a9c2cb466f5b1dd63e9a9966c769075e6b6bdad8bb0"
+patch_args=-Np0
diff --git a/srcpkgs/gnome-recipes/template b/srcpkgs/gnome-recipes/template
index 30f81ab265b6..847e736a4844 100644
--- a/srcpkgs/gnome-recipes/template
+++ b/srcpkgs/gnome-recipes/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Recipes"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=1be9d2fcb7404a97aa029d2409880643f15071c37039247a6a4320e7478cd5fb
+patch_args=-Np0
diff --git a/srcpkgs/gnupod/template b/srcpkgs/gnupod/template
index 09c35988a9d8..6515b87aa61b 100644
--- a/srcpkgs/gnupod/template
+++ b/srcpkgs/gnupod/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/gnupod/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tgz"
 checksum=bd566295a2e14352e6d05f5c816cab36b0e80d3ab36d29c4bbb45c581d3f3c31
+patch_args=-Np0
diff --git a/srcpkgs/gupnp-tools/template b/srcpkgs/gupnp-tools/template
index 09507922f46c..6c02534f0453 100644
--- a/srcpkgs/gupnp-tools/template
+++ b/srcpkgs/gupnp-tools/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://gupnp.org/"
 distfiles="${GNOME_SITE}/gupnp-tools/${version%.*}/gupnp-tools-${version}.tar.xz"
 checksum=41da7ff5ba8e2425adcb64ca5e04c81f57ca20ec6fdb84923939fdad42c6a18d
+patch_args=-Np0
diff --git a/srcpkgs/helm/template b/srcpkgs/helm/template
index e7d7b59c10b2..57ad3b36321a 100644
--- a/srcpkgs/helm/template
+++ b/srcpkgs/helm/template
@@ -13,3 +13,4 @@ homepage="http://tytel.org/helm"
 distfiles="https://github.com/mtytel/helm/archive/v${version}.tar.gz"
 checksum=4004c11fd1d773cc2a12adb5336873bc86c5ecbd370b8da2820fed6ef5ec58ad
 nocross="./lv2_ttl_generator: ./lv2_ttl_generator: cannot execute binary file"
+patch_args=-Np0
diff --git a/srcpkgs/html-xml-utils/template b/srcpkgs/html-xml-utils/template
index a2f0a8d6f528..ab69c1e16d33 100644
--- a/srcpkgs/html-xml-utils/template
+++ b/srcpkgs/html-xml-utils/template
@@ -10,3 +10,4 @@ license="W3C"
 homepage="https://www.w3.org/Tools/HTML-XML-utils/README"
 distfiles="https://www.w3.org/Tools/HTML-XML-utils/${pkgname}-${version}.tar.gz"
 checksum=d86ac96ea660316bef814c17b2a96d54cdf91c69e59614459865c2bfdaee433f
+patch_args=-Np0
diff --git a/srcpkgs/hxtools/template b/srcpkgs/hxtools/template
index 87be5bb16f1a..33a37ff0b971 100644
--- a/srcpkgs/hxtools/template
+++ b/srcpkgs/hxtools/template
@@ -12,3 +12,4 @@ homepage="http://inai.de/projects/hxtools"
 distfiles="http://inai.de/files/hxtools/hxtools-${version}.tar.xz"
 checksum=45ceee8db0b9b926712b336ebb91c572f2247cec64862f6171fc416db4e9e12f
 conflicts="bsd-games>=0"
+patch_args=-Np0
diff --git a/srcpkgs/icecast/template b/srcpkgs/icecast/template
index 920d6ffe9d31..b3fed3c37602 100644
--- a/srcpkgs/icecast/template
+++ b/srcpkgs/icecast/template
@@ -13,3 +13,4 @@ homepage="http://www.icecast.org/"
 distfiles="http://downloads.xiph.org/releases/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=49b5979f9f614140b6a38046154203ee28218d8fc549888596a683ad604e4d44
 conf_files="/etc/icecast.xml"
+patch_args=-Np0
diff --git a/srcpkgs/imagewriter/template b/srcpkgs/imagewriter/template
index cd4d3c9af695..197bc5476340 100644
--- a/srcpkgs/imagewriter/template
+++ b/srcpkgs/imagewriter/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/openSUSE/imagewriter"
 distfiles="https://github.com/openSUSE/imagewriter/archive/${_commit}.tar.gz"
 checksum=7761ee45b16b5841c6b62b091c7f9d0b8c64b14b79d77e9909ca813e1dc9885d
+patch_args=-Np0
diff --git a/srcpkgs/img2pdf/template b/srcpkgs/img2pdf/template
index 206bf3cbccc6..9b7cae086496 100644
--- a/srcpkgs/img2pdf/template
+++ b/srcpkgs/img2pdf/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.mister-muffin.de/josch/img2pdf"
 distfiles="${PYPI_SITE}/i/img2pdf/img2pdf-${version}.tar.gz"
 checksum=38a1229ca84b211d7782d1d65ad7251a9781bf24f6f6497c738c755fcfed5552
+patch_args=-Np0
diff --git a/srcpkgs/intel-undervolt/template b/srcpkgs/intel-undervolt/template
index d631eb2222a8..e9d1bf651d07 100644
--- a/srcpkgs/intel-undervolt/template
+++ b/srcpkgs/intel-undervolt/template
@@ -10,3 +10,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/kitsunyan/intel-undervolt"
 distfiles="https://github.com/kitsunyan/intel-undervolt/archive/${version}.tar.gz"
 checksum=29a7ebaee4830d65d0b5cefa6d497887d4f23f34659876dfe944f3a020cf33ff
+patch_args=-Np0
diff --git a/srcpkgs/intltool/template b/srcpkgs/intltool/template
index cfba730f2e67..b3b26d28aded 100644
--- a/srcpkgs/intltool/template
+++ b/srcpkgs/intltool/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://edge.launchpad.net/intltool"
 distfiles="http://launchpad.net/intltool/trunk/$version/+download/$pkgname-$version.tar.gz"
 checksum=67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd
+patch_args=-Np0
diff --git a/srcpkgs/io.elementary.photos/template b/srcpkgs/io.elementary.photos/template
index 81c1734164ba..a07e9b5a4912 100644
--- a/srcpkgs/io.elementary.photos/template
+++ b/srcpkgs/io.elementary.photos/template
@@ -20,3 +20,4 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/elementary/photos"
 distfiles="https://github.com/elementary/photos/archive/${version}.tar.gz"
 checksum=9f6ad409d053e3239b9ec7fc59429afe9ce89e40878697a73c2c3f215556a074
+patch_args=-Np0
diff --git a/srcpkgs/ipv6calc/template b/srcpkgs/ipv6calc/template
index fdeb909b06e9..7873da6a9847 100644
--- a/srcpkgs/ipv6calc/template
+++ b/srcpkgs/ipv6calc/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://www.deepspace6.net/projects/ipv6calc.html"
 distfiles="https://github.com/pbiering/ipv6calc/archive/${version}.tar.gz"
 checksum=db690da55a31db063f87af7731cf5c913d8622057fc6c9f66f879725b1540496
+patch_args=-Np0
diff --git a/srcpkgs/itstool/template b/srcpkgs/itstool/template
index 5618fa120fff..d83b9b2fe397 100644
--- a/srcpkgs/itstool/template
+++ b/srcpkgs/itstool/template
@@ -13,3 +13,4 @@ license="GPL-3.0-or-later"
 homepage="http://itstool.org/"
 distfiles="http://files.itstool.org/itstool/${pkgname}-${version}.tar.bz2"
 checksum=6233cc22726a9a5a83664bf67d1af79549a298c23185d926c3677afa917b92a9
+patch_args=-Np0
diff --git a/srcpkgs/iwgtk/template b/srcpkgs/iwgtk/template
index a9b23b80f0ca..a4461b5602a9 100644
--- a/srcpkgs/iwgtk/template
+++ b/srcpkgs/iwgtk/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/J-Lentz/iwgtk/"
 distfiles="https://github.com/J-Lentz/iwgtk/archive/refs/tags/v${version}.tar.gz"
 checksum=71bb85546a55bf710052d4947f6be5f5a01033d04d2d14a85a7e734dd570657d
+patch_args=-Np0
diff --git a/srcpkgs/jigdo/template b/srcpkgs/jigdo/template
index 16edbc817c8a..aff25631a6ff 100644
--- a/srcpkgs/jigdo/template
+++ b/srcpkgs/jigdo/template
@@ -12,3 +12,4 @@ license="GPL-2"
 homepage="http://atterer.org/jigdo/"
 distfiles="http://atterer.org/sites/atterer/files/2009-08/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum="875c069abad67ce67d032a9479228acdb37c8162236c0e768369505f264827f0"
+patch_args=-Np0
diff --git a/srcpkgs/k3b/template b/srcpkgs/k3b/template
index f02f12356d52..3ff3d73d1304 100644
--- a/srcpkgs/k3b/template
+++ b/srcpkgs/k3b/template
@@ -16,3 +16,4 @@ license="GPL-2.0-or-later"
 homepage="https://kde.org/applications/en/multimedia/org.kde.k3b"
 distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=986c5073c944dbda5b49e3c1a2fbf340fb1c6af941e80b6a0020fadd1be9034b
+patch_args=-Np0
diff --git a/srcpkgs/kcm-wacomtablet/template b/srcpkgs/kcm-wacomtablet/template
index 0e1234c6218b..926fc17457fe 100644
--- a/srcpkgs/kcm-wacomtablet/template
+++ b/srcpkgs/kcm-wacomtablet/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://invent.kde.org/system/wacomtablet"
 distfiles="${KDE_SITE}/wacomtablet/${version}/wacomtablet-${version}.tar.xz"
 checksum=c80ce63a41f6fcbb50ac4c2130ed2f8273c4b744e62e33d4b714bf83e8e5f7a4
+patch_args=-Np0
diff --git a/srcpkgs/kcov/template b/srcpkgs/kcov/template
index cb361bd65b1a..038549b26466 100644
--- a/srcpkgs/kcov/template
+++ b/srcpkgs/kcov/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://simonkagstrom.github.io/kcov/index.html"
 distfiles="https://github.com/SimonKagstrom/kcov/archive/v${version}.tar.gz"
 checksum=b37af60d81a9b1e3b140f9473bdcb7975af12040feb24cc666f9bb2bb0be68b4
+patch_args=-Np0
diff --git a/srcpkgs/keditbookmarks/template b/srcpkgs/keditbookmarks/template
index 51fe33866304..efc8fcb830e9 100644
--- a/srcpkgs/keditbookmarks/template
+++ b/srcpkgs/keditbookmarks/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later, GFDL-1.2-only"
 homepage="https://www.kde.org/"
 distfiles="${KDE_SITE}/release-service/${version}/src/keditbookmarks-${version}.tar.xz"
 checksum=a57eec8ff05b6a6fea5367b489f67d8de7483aaede4c39692c347da15ba9eec3
+patch_args=-Np0
diff --git a/srcpkgs/kig/template b/srcpkgs/kig/template
index 1431f85bde84..82957d1c25c8 100644
--- a/srcpkgs/kig/template
+++ b/srcpkgs/kig/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://www.kde.org/applications/education/kig/"
 distfiles="${KDE_SITE}/release-service/${version}/src/kig-${version}.tar.xz"
 checksum=5939d298b40d265f1ddef4bd81540b1a26204d858f85db5847cc102366a5ce58
+patch_args=-Np0
diff --git a/srcpkgs/krusader/template b/srcpkgs/krusader/template
index dbc7743a0dd8..93f8662bf8d5 100644
--- a/srcpkgs/krusader/template
+++ b/srcpkgs/krusader/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.krusader.org/"
 distfiles="${KDE_SITE}/krusader/${version}/krusader-${version}.tar.xz"
 checksum=41a39a43b3c42dd1d1ecaea86df30caff6a061fecc1d66f60859b2a3ca976109
+patch_args=-Np0
diff --git a/srcpkgs/ksysguard/template b/srcpkgs/ksysguard/template
index c276f9d7bbbc..23288bfb15fe 100644
--- a/srcpkgs/ksysguard/template
+++ b/srcpkgs/ksysguard/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later, GFDL-1.2-only"
 homepage="https://invent.kde.org/plasma/ksysguard"
 distfiles="${KDE_SITE}/ksysguard/${version}/${pkgname}-${version}.tar.xz"
 checksum=0f9c624e5fbb2aee906d8d9563c5a7eb09eaf38bc8e4382c072f9e6d8854622d
+patch_args=-Np0
diff --git a/srcpkgs/lbreakouthd/template b/srcpkgs/lbreakouthd/template
index 1f9accfb4ab9..c0025345fa9b 100644
--- a/srcpkgs/lbreakouthd/template
+++ b/srcpkgs/lbreakouthd/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://lgames.sourceforge.net/LBreakoutHD/"
 distfiles="${SOURCEFORGE_SITE}/lgames/$pkgname-$version.tar.gz"
 checksum=df5f8ad88bcf20bd34e1dfd77697b49a168d83ad43d8fdf5a3fee1fe272e15bd
+patch_args=-Np0
diff --git a/srcpkgs/lbzip2/template b/srcpkgs/lbzip2/template
index c6973fe171b5..3ac6ff9ec10a 100644
--- a/srcpkgs/lbzip2/template
+++ b/srcpkgs/lbzip2/template
@@ -9,3 +9,4 @@ license="GPL-3.0-or-later"
 homepage="http://lbzip2.org/"
 distfiles="http://archive.lbzip2.org/lbzip2-${version}.tar.gz"
 checksum=46c75ee93cc95eedc6005625442b2b8e59a2bef3ba80987d0491f055185650e9
+patch_args=-Np0
diff --git a/srcpkgs/lcov/template b/srcpkgs/lcov/template
index 2d23c19f0cc3..787296423df5 100644
--- a/srcpkgs/lcov/template
+++ b/srcpkgs/lcov/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://ltp.sourceforge.net/coverage/lcov.php"
 distfiles="https://github.com/linux-test-project/${pkgname}/archive/v${version}.tar.gz"
 checksum=d88b0718f59815862785ac379aed56974b9edd8037567347ae70081cd4a3542a
+patch_args=-Np0
diff --git a/srcpkgs/libeatmydata/template b/srcpkgs/libeatmydata/template
index 3334ca236d94..7470acc97fdd 100644
--- a/srcpkgs/libeatmydata/template
+++ b/srcpkgs/libeatmydata/template
@@ -9,3 +9,4 @@ license="GPL-3.0-only"
 homepage="http://www.flamingspork.com/projects/libeatmydata/"
 distfiles="http://www.flamingspork.com/projects/libeatmydata/${pkgname}-${version}.tar.gz"
 checksum=bdd2d068b6b27cf47cd22aa4c5da43b3d4a05944cfe0ad1b0d843d360ed3a8dd
+patch_args=-Np0
diff --git a/srcpkgs/libva-vdpau-driver/template b/srcpkgs/libva-vdpau-driver/template
index 391ba5296f4e..82104939cfdf 100644
--- a/srcpkgs/libva-vdpau-driver/template
+++ b/srcpkgs/libva-vdpau-driver/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="http://freedesktop.org/wiki/Software/vaapi"
 distfiles="${FREEDESKTOP_SITE}/vaapi/releases/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=155c1982f0ac3f5435ba20b221bcaa11be212c37db548cd1f2a030ffa17e9bb9
+patch_args=-Np0
diff --git a/srcpkgs/libwm/template b/srcpkgs/libwm/template
index df29afde53aa..e88e7eb4a5ed 100644
--- a/srcpkgs/libwm/template
+++ b/srcpkgs/libwm/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/wmutils/libwm"
 distfiles="https://github.com/wmutils/libwm/archive/v${version}.tar.gz"
 checksum=db80ef40d6b105f046c1d0bc138470b3e23e7bd1000afc3163d9e62f403f0f6a
+patch_args=-Np0
diff --git a/srcpkgs/lltag/template b/srcpkgs/lltag/template
index c540ae3ddef8..565369c9a986 100644
--- a/srcpkgs/lltag/template
+++ b/srcpkgs/lltag/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="http://bgoglin.free.fr/lltag/"
 distfiles="https://github.com/bgoglin/lltag/archive/lltag-${version}.tar.gz"
 checksum=e24c88866d89f90c11bcf89d9d1b4e8af78f486f1f7454a28210b10b8af17252
+patch_args=-Np0
diff --git a/srcpkgs/lrzsz/template b/srcpkgs/lrzsz/template
index e90aaeba3a21..98b4e7fb1c30 100644
--- a/srcpkgs/lrzsz/template
+++ b/srcpkgs/lrzsz/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://ohse.de/uwe/software/lrzsz.html"
 distfiles="http://ohse.de/uwe/releases/$pkgname-$version.tar.gz"
 checksum=c28b36b14bddb014d9e9c97c52459852f97bd405f89113f30bee45ed92728ff1
+patch_args=-Np0
diff --git a/srcpkgs/macchanger/template b/srcpkgs/macchanger/template
index 9af205a0d0f4..3d4402e208bf 100644
--- a/srcpkgs/macchanger/template
+++ b/srcpkgs/macchanger/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/macchanger"
 distfiles="https://github.com/alobbs/macchanger/archive/${version}.tar.gz"
 checksum=1d75c07a626321e07b48a5fe2dbefbdb98c3038bb8230923ba8d32bda5726e4f
+patch_args=-Np0
diff --git a/srcpkgs/mate-power-manager/template b/srcpkgs/mate-power-manager/template
index 4f2f7d77c8f1..c1afcc458a43 100644
--- a/srcpkgs/mate-power-manager/template
+++ b/srcpkgs/mate-power-manager/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=d24b9fce23b086817d5494f7e65e58f18367af6eb5d0d4ade45de5396e20d13a
+patch_args=-Np0
diff --git a/srcpkgs/mcomix/template b/srcpkgs/mcomix/template
index c413e5e00288..5557136c1ace 100644
--- a/srcpkgs/mcomix/template
+++ b/srcpkgs/mcomix/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="http://sourceforge.net/projects/mcomix/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/MComix-${version}/${pkgname}-${version}.tar.bz2"
 checksum=7e43159dc585bc9bc31970a44bd2b4e42c303660c4c8cf7f0eda413a6f72fa3b
+patch_args=-Np0
diff --git a/srcpkgs/mftrace/template b/srcpkgs/mftrace/template
index 10f2c1ecfdc1..09ee52a11a3e 100644
--- a/srcpkgs/mftrace/template
+++ b/srcpkgs/mftrace/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://lilypond.org/mftrace"
 distfiles="http://lilypond.org/downloads/sources/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=626b7a9945a768c086195ba392632a68d6af5ea24ef525dcd0a4a8b199ea5f6f
+patch_args=-Np0
diff --git a/srcpkgs/nm-tray/template b/srcpkgs/nm-tray/template
index b2a3e85cf57e..2acc4a68f434 100644
--- a/srcpkgs/nm-tray/template
+++ b/srcpkgs/nm-tray/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/palinek/nm-tray"
 distfiles="https://github.com/palinek/nm-tray/archive/${version}.tar.gz"
 checksum=1611c053582189091efa74c2f26277afc872a57cfd4ec9e54463f68c25ad284b
+patch_args=-Np0
diff --git a/srcpkgs/nootka/template b/srcpkgs/nootka/template
index 8726ab984e8c..3ee39181a314 100644
--- a/srcpkgs/nootka/template
+++ b/srcpkgs/nootka/template
@@ -12,3 +12,4 @@ license="GPL-3.0-only"
 homepage="https://nootka.sourceforge.io"
 distfiles="${SOURCEFORGE_SITE}/nootka/Nootka-${version}/nootka-${version}-source.tar.bz2"
 checksum=1d85a2970ddb51117b0a98df4d84ca9e9498fbd1d2b1c55bfa62931333a73cf9
+patch_args=-Np0
diff --git a/srcpkgs/olive/template b/srcpkgs/olive/template
index 11468a8b04cf..c001284d41d0 100644
--- a/srcpkgs/olive/template
+++ b/srcpkgs/olive/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://www.olivevideoeditor.org"
 distfiles="https://github.com/olive-editor/olive/archive/${version}.tar.gz"
 checksum=cb9a5b109e67a47f03448633cbc7a257aa8e6c3c76a59c1fada77fd3d97875c1
+patch_args=-Np0
diff --git a/srcpkgs/pam_rundir/template b/srcpkgs/pam_rundir/template
index f08238ddb5fd..578d660bf4c1 100644
--- a/srcpkgs/pam_rundir/template
+++ b/srcpkgs/pam_rundir/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://jjacky.com/pam_rundir"
 distfiles="https://jjacky.com/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c779b699ed23777a3bdba87b7f67ed395fe957f3c96138faee45f87a27bcc020
+patch_args=-Np0
diff --git a/srcpkgs/pdfgrep/template b/srcpkgs/pdfgrep/template
index 20fe67c72035..b7270c1af890 100644
--- a/srcpkgs/pdfgrep/template
+++ b/srcpkgs/pdfgrep/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://pdfgrep.org"
 distfiles="https://pdfgrep.org/download/pdfgrep-${version}.tar.gz"
 checksum=0ef3dca1d749323f08112ffe68e6f4eb7bc25f56f90a2e933db477261b082aba
+patch_args=-Np0
diff --git a/srcpkgs/pdfsandwich/template b/srcpkgs/pdfsandwich/template
index 67c1a011ba78..37d4290fef56 100644
--- a/srcpkgs/pdfsandwich/template
+++ b/srcpkgs/pdfsandwich/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://www.tobias-elze.de/pdfsandwich/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=9795ffea84b9b6b501f38d49a4620cf0469ddf15aac31bac6dbdc9ec1716fa39
+patch_args=-Np0
diff --git a/srcpkgs/pekwm/template b/srcpkgs/pekwm/template
index 367691f8cb7d..908b9f20e31c 100644
--- a/srcpkgs/pekwm/template
+++ b/srcpkgs/pekwm/template
@@ -15,3 +15,4 @@ homepage="https://www.pekwm.se/"
 distfiles="https://github.com/pekdon/pekwm/archive/release-${version}.tar.gz"
 checksum=e04e14ab7b212ec7c3a36e4c24b6228383df4ca3768f9fea7ba22dcd107d5d5a
 conf_files="/etc/pekwm/*"
+patch_args=-Np0
diff --git a/srcpkgs/perl-Authen-SASL/template b/srcpkgs/perl-Authen-SASL/template
index c9aea8eb9587..66b079daaa30 100644
--- a/srcpkgs/perl-Authen-SASL/template
+++ b/srcpkgs/perl-Authen-SASL/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/Authen-SASL"
 distfiles="${CPAN_SITE}/Authen/${pkgname/perl-/}-${version}.tar.gz"
 checksum=6614fa7518f094f853741b63c73f3627168c5d3aca89b1d02b1016dc32854e09
+patch_args=-Np0
diff --git a/srcpkgs/perl-Crypt-DH/template b/srcpkgs/perl-Crypt-DH/template
index 95fe7e66836a..d4fc6f20a4c5 100644
--- a/srcpkgs/perl-Crypt-DH/template
+++ b/srcpkgs/perl-Crypt-DH/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/Crypt-DH"
 distfiles="${CPAN_SITE}/Crypt/Crypt-DH-${version}.tar.gz"
 checksum=c88cf3423b01e6782e8986d7fe5304436ab84b0925c4498c6fdfa17ef9a37f5f
+patch_args=-Np0
diff --git a/srcpkgs/perl-Crypt-Rijndael/template b/srcpkgs/perl-Crypt-Rijndael/template
index 5154d035b35c..a2c97d0d4ce9 100644
--- a/srcpkgs/perl-Crypt-Rijndael/template
+++ b/srcpkgs/perl-Crypt-Rijndael/template
@@ -13,3 +13,4 @@ license="LGPL-2.0-or-later"
 homepage="https://metacpan.org/release/Crypt-Rijndael"
 distfiles="${CPAN_SITE}/Crypt/Crypt-Rijndael-${version}.tar.gz"
 checksum=6451c3dffe8703523be2bb08d1adca97e77df2a8a4dd46944d18a99330b7850e
+patch_args=-Np0
diff --git a/srcpkgs/perl-Fuse/template b/srcpkgs/perl-Fuse/template
index 9793fbb001fb..3fb06c90e33b 100644
--- a/srcpkgs/perl-Fuse/template
+++ b/srcpkgs/perl-Fuse/template
@@ -13,3 +13,4 @@ license="LGPL-2.1-only"
 homepage="https://metacpan.org/release/Fuse"
 distfiles="${CPAN_SITE}/Fuse/Fuse-$version.tar.gz"
 checksum=30a939fe5816b00ba9cabb6cd811f894e6a74361ce29d786ae1811b0021d7aa1
+patch_args=-Np0
diff --git a/srcpkgs/perl-OpenGL/template b/srcpkgs/perl-OpenGL/template
index 31c5362852db..3628d85f23e0 100644
--- a/srcpkgs/perl-OpenGL/template
+++ b/srcpkgs/perl-OpenGL/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/OpenGL"
 distfiles="${CPAN_SITE}/OpenGL/${pkgname#perl-}-${version}.tar.gz"
 checksum=b20e2af4404b4901ab35bba6ad5e3a8aa60bff72413c99288f01018c4cf874e0
+patch_args=-Np0
diff --git a/srcpkgs/perl-XML-LibXSLT/template b/srcpkgs/perl-XML-LibXSLT/template
index 24fa3f44b1b5..2b6eecc07722 100644
--- a/srcpkgs/perl-XML-LibXSLT/template
+++ b/srcpkgs/perl-XML-LibXSLT/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/XML-LibXSLT/"
 distfiles="${CPAN_SITE}/XML/${pkgname/perl-/}-${version}.tar.gz"
 checksum=127e17a877fb61e47b9e8b87bf8daad31339a62a00121f9751d522b438b0f7f0
+patch_args=-Np0
diff --git a/srcpkgs/perl-XML-SAX/template b/srcpkgs/perl-XML-SAX/template
index d72f1eac7e8f..445c4c6e20ff 100644
--- a/srcpkgs/perl-XML-SAX/template
+++ b/srcpkgs/perl-XML-SAX/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/XML-SAX"
 distfiles="${CPAN_SITE}/XML/XML-SAX-${version}.tar.gz"
 checksum=4506c387043aa6a77b455f00f57409f3720aa7e553495ab2535263b4ed1ea12a
+patch_args=-Np0
diff --git a/srcpkgs/pidgin-gpg/template b/srcpkgs/pidgin-gpg/template
index 2442f04ea12f..b67e21ce24f0 100644
--- a/srcpkgs/pidgin-gpg/template
+++ b/srcpkgs/pidgin-gpg/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://github.com/segler-alex/Pidgin-GPG"
 distfiles="http://github.com/downloads/segler-alex/Pidgin-GPG/${pkgname}-${version}.tar.gz"
 checksum=736681cb25da31eb8ced96055d4150d649fe6ef6e523b6f65846c3446ac09a96
+patch_args=-Np0
diff --git a/srcpkgs/pidgin-sipe/template b/srcpkgs/pidgin-sipe/template
index 9ea248618f43..d9bead87f864 100644
--- a/srcpkgs/pidgin-sipe/template
+++ b/srcpkgs/pidgin-sipe/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="http://sipe.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/sipe/sipe/${pkgname}-${version}.tar.xz"
 checksum=738b121b11f2b3f1744150c00cb381222eb6cf67161a7742797eb4f03e64a2ba
+patch_args=-Np0
diff --git a/srcpkgs/plasma-desktop/template b/srcpkgs/plasma-desktop/template
index 4ec04abb501c..eeaf614bca95 100644
--- a/srcpkgs/plasma-desktop/template
+++ b/srcpkgs/plasma-desktop/template
@@ -21,3 +21,4 @@ distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=9be7d61a042b5d74c1a65ecc8101c81390d45c2fec766b5115d5924b5dac0972
 replaces="user-manager>=0"
 python_version=3
+patch_args=-Np0
diff --git a/srcpkgs/pokoy/template b/srcpkgs/pokoy/template
index 490067f7d9ff..f66ffc35c3fd 100644
--- a/srcpkgs/pokoy/template
+++ b/srcpkgs/pokoy/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://github.com/ttygde/pokoy"
 distfiles="https://github.com/ttygde/pokoy/archive/v${version}.tar.gz"
 checksum=ae3ee5935e503d1f48f7fc8e4df2071e9d4586a52dfe778ef643deb28ca6a22f
+patch_args=-Np0
diff --git a/srcpkgs/polkit-kde-agent/template b/srcpkgs/polkit-kde-agent/template
index a9182b185f1a..2d383314caa9 100644
--- a/srcpkgs/polkit-kde-agent/template
+++ b/srcpkgs/polkit-kde-agent/template
@@ -14,3 +14,4 @@ license="GPL-2.0-or-later"
 homepage="https://commits.kde.org/polkit-kde-agent"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-1-${version}.tar.xz"
 checksum=de9a6f1bdf434d013a8d6f0c1498257bc4a48349e652375b4dd036eb161214ee
+patch_args=-Np0
diff --git a/srcpkgs/posixovl/template b/srcpkgs/posixovl/template
index 1146191fcf82..221b61c832b3 100644
--- a/srcpkgs/posixovl/template
+++ b/srcpkgs/posixovl/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/posixovl/"
 distfiles="${SOURCEFORGE_SITE}/posixovl/files/${pkgname}-${version}.tar.xz"
 checksum=a827798b02c0f27b37d8a10502e76c21adac43b887a49e7234e8d27668f62e72
+patch_args=-Np0
diff --git a/srcpkgs/powertop/template b/srcpkgs/powertop/template
index d0841935e7f4..2c9c25319c65 100644
--- a/srcpkgs/powertop/template
+++ b/srcpkgs/powertop/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://01.org/powertop/"
 distfiles="https://01.org/sites/default/files/downloads/powertop-${version}.tar.gz"
 checksum=a65f992ca4a419bc73b623651060eb9fc00c5a86fa03556358cd9db011ef3178
+patch_args=-Np0
diff --git a/srcpkgs/python3-orocos-kdl/template b/srcpkgs/python3-orocos-kdl/template
index 281ea8978c5f..d27ab90a9b7a 100644
--- a/srcpkgs/python3-orocos-kdl/template
+++ b/srcpkgs/python3-orocos-kdl/template
@@ -15,3 +15,4 @@ license="LGPL-2.1-only"
 homepage="http://www.orocos.org/kdl"
 distfiles="https://github.com/orocos/orocos_kinematics_dynamics/archive/v${version}.tar.gz"
 checksum=05b93e759923684dc07433ccae1e476d158d89b3c2be5079c20062406da7b4dd
+patch_args=-Np0
diff --git a/srcpkgs/python3-pykeepass/template b/srcpkgs/python3-pykeepass/template
index dc3fe59fa411..7223950538bc 100644
--- a/srcpkgs/python3-pykeepass/template
+++ b/srcpkgs/python3-pykeepass/template
@@ -15,3 +15,4 @@ homepage="https://github.com/libkeepass/pykeepass"
 changelog="https://raw.githubusercontent.com/libkeepass/pykeepass/master/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/p/pykeepass/pykeepass-${version}.tar.gz"
 checksum=b3e07eb2dd3aeb1dfa1a2d2d17be77066ee560c1e770f1c72d7ea5608117d284
+patch_args=-Np0
diff --git a/srcpkgs/python3-transifex-client/template b/srcpkgs/python3-transifex-client/template
index e34c310c0a85..c71fd7a32338 100644
--- a/srcpkgs/python3-transifex-client/template
+++ b/srcpkgs/python3-transifex-client/template
@@ -13,3 +13,4 @@ license="GPL-2.0-only"
 homepage="https://www.transifex.com"
 distfiles="https://github.com/transifex/transifex-client/archive/${version}.tar.gz"
 checksum=460f3a829e57b8025280e03a6ad497a87beba142adb2e1579678227f49d4a9ab
+patch_args=-Np0
diff --git a/srcpkgs/python3-yara/template b/srcpkgs/python3-yara/template
index d3c42f7fa06f..359edc090a5b 100644
--- a/srcpkgs/python3-yara/template
+++ b/srcpkgs/python3-yara/template
@@ -13,3 +13,4 @@ license="Apache-2.0"
 homepage="http://virustotal.github.io/yara/"
 distfiles="https://github.com/VirusTotal/yara-python/archive/v${version}.tar.gz"
 checksum=4bc1a69bc9c5f70419806e15a05123a7879456b52a9c50832c34c22eecb4de81
+patch_args=-Np0
diff --git a/srcpkgs/qmltermwidget/template b/srcpkgs/qmltermwidget/template
index 8a5b2fa230eb..a770f2f1fd29 100644
--- a/srcpkgs/qmltermwidget/template
+++ b/srcpkgs/qmltermwidget/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Swordfish90/qmltermwidget"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=23e19eedb59d6fe3e37ecc06872f54befd94384946926e009c42c4b39914cfe2
+patch_args=-Np0
diff --git a/srcpkgs/qomui/template b/srcpkgs/qomui/template
index b74138381bef..73235d778f87 100644
--- a/srcpkgs/qomui/template
+++ b/srcpkgs/qomui/template
@@ -15,3 +15,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/corrad1nho/qomui"
 distfiles="https://github.com/corrad1nho/qomui/archive/v${version}.tar.gz"
 checksum=78187864a4368fed06f6e58c4d411053a1d1193d625ee79be0a57bf0938b1d0b
+patch_args=-Np0
diff --git a/srcpkgs/qtcurve/template b/srcpkgs/qtcurve/template
index 19a4d792d66f..7f98001a6e91 100644
--- a/srcpkgs/qtcurve/template
+++ b/srcpkgs/qtcurve/template
@@ -16,3 +16,4 @@ homepage="https://quickgit.kde.org/?p=qtcurve.git"
 distfiles="https://github.com/KDE/qtcurve/archive/${version}.tar.gz"
 checksum=fbfdafdac90d4c540dd55a4accfecfc3a17c1f532c5241e28003348beafaca15
 nocross="tries to execute a helper binary compiled for target on the host"
+patch_args=-Np0
diff --git a/srcpkgs/qtfm/template b/srcpkgs/qtfm/template
index f2c8e889e6c3..5013481bb259 100644
--- a/srcpkgs/qtfm/template
+++ b/srcpkgs/qtfm/template
@@ -14,3 +14,4 @@ homepage="https://github.com/rodlie/qtfm"
 changelog="https://raw.githubusercontent.com/rodlie/qtfm/master/ChangeLog"
 distfiles="https://github.com/rodlie/qtfm/archive/${version}.tar.gz"
 checksum=b9c707443e20644f6e5f0393ce5158843724ac08f92cf8d7ea8e1109957b5c00
+patch_args=-Np0
diff --git a/srcpkgs/recoll/template b/srcpkgs/recoll/template
index 8c5de6966a46..1f83b2715db2 100644
--- a/srcpkgs/recoll/template
+++ b/srcpkgs/recoll/template
@@ -16,3 +16,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.lesbonscomptes.com/recoll/"
 distfiles="https://www.lesbonscomptes.com/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=17a8e684a8d5560dc7b44cd4b2962cb46476a75bdc107f622051235076d11885
+patch_args=-Np0
diff --git a/srcpkgs/recordmydesktop/template b/srcpkgs/recordmydesktop/template
index eb509e5efd4a..b460f1355e4a 100644
--- a/srcpkgs/recordmydesktop/template
+++ b/srcpkgs/recordmydesktop/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://recordmydesktop.sourceforge.net/about.php"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=33a2e208186ae78e2db2a27b0f5047b50fb7819c47fe15483b0765200b9d738c
+patch_args=-Np0
diff --git a/srcpkgs/rofs-filtered/template b/srcpkgs/rofs-filtered/template
index 2bb8a2304312..3ad1be74b367 100644
--- a/srcpkgs/rofs-filtered/template
+++ b/srcpkgs/rofs-filtered/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/gburca/rofs-filtered"
 distfiles="https://github.com/gburca/rofs-filtered/archive/rel-${version}.tar.gz"
 checksum=d66066dfd0274a2fb7b71dd929445377dd23100b9fa43e3888dbe3fc7e8228e8
+patch_args=-Np0
diff --git a/srcpkgs/sasm/template b/srcpkgs/sasm/template
index 3c624065b5de..a3a705648cdf 100644
--- a/srcpkgs/sasm/template
+++ b/srcpkgs/sasm/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="http://dman95.github.io/SASM/"
 distfiles="https://github.com/Dman95/SASM/archive/v${version}.tar.gz"
 checksum=2c551d4a04f2e11f000eb1716885a646110305f8f2892d1a7761c0d4670d19a0
+patch_args=-Np0
diff --git a/srcpkgs/scribus/template b/srcpkgs/scribus/template
index 0898252efc43..00685dfba6a0 100644
--- a/srcpkgs/scribus/template
+++ b/srcpkgs/scribus/template
@@ -19,3 +19,4 @@ homepage="https://scribus.net"
 distfiles="$SOURCEFORGE_SITE/scribus/scribus-devel/${version}/scribus-${version}.tar.xz"
 checksum=318316b2cfc7a76191d3e0d3f8c2265147daea0570162028e243c292d826f8ce
 python_version=3
+patch_args=-Np0
diff --git a/srcpkgs/seahorse-nautilus/template b/srcpkgs/seahorse-nautilus/template
index 04424cc4acdb..c468cc13836f 100644
--- a/srcpkgs/seahorse-nautilus/template
+++ b/srcpkgs/seahorse-nautilus/template
@@ -15,3 +15,4 @@ homepage="http://www.gnome.org/projects/seahorse/"
 distfiles="${GNOME_SITE}/seahorse-nautilus/${version%.*}/seahorse-nautilus-${version}.tar.xz"
 checksum=eacaf33bba920cf117641393a6eef483dbc075009349082e77d22f79afbd823a
 lib32disabled=yes
+patch_args=-Np0
diff --git a/srcpkgs/seq2gif/template b/srcpkgs/seq2gif/template
index 8146d539a284..63ba990a96cf 100644
--- a/srcpkgs/seq2gif/template
+++ b/srcpkgs/seq2gif/template
@@ -9,3 +9,4 @@ license="GPL-3.0-or-later"
 homepage="http://saitoha.github.io/seq2gif/"
 distfiles="https://github.com/saitoha/seq2gif/archive/v${version}.tar.gz"
 checksum=738805bf8eb7ee5171ded7f43326cca7caecb77031283720f97253c234261f29
+patch_args=-Np0
diff --git a/srcpkgs/sgfutils/template b/srcpkgs/sgfutils/template
index 67980c8d32fb..1ad41f0ea177 100644
--- a/srcpkgs/sgfutils/template
+++ b/srcpkgs/sgfutils/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.cwi.nl/~aeb/go/sgfutils/html/"
 distfiles="https://homepages.cwi.nl/~aeb/go/${pkgname}/${pkgname}.tgz"
 checksum=4b26b321fbe255722f1d7e57233614da89a4da5bab031ae4ef7118ae3c7436a2
+patch_args=-Np0
diff --git a/srcpkgs/sidplayfp/template b/srcpkgs/sidplayfp/template
index c98648586c91..f63c893694a0 100644
--- a/srcpkgs/sidplayfp/template
+++ b/srcpkgs/sidplayfp/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/sidplay-residfp/"
 distfiles="${SOURCEFORGE_SITE}/sidplay-residfp/${pkgname}/${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=1c9dd519c39f7c811c33a7b8f516f33c36b36d29af6075316a7ec7320f9d9155
+patch_args=-Np0
diff --git a/srcpkgs/smbnetfs/template b/srcpkgs/smbnetfs/template
index 12806eaaa37d..bc89fbc198b1 100644
--- a/srcpkgs/smbnetfs/template
+++ b/srcpkgs/smbnetfs/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="http://smbnetfs.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=eac37b9769fbe9c3f4baf3eb64c61a6b59ad4f2aa05dfddcba5a1ac4adf4d560
+patch_args=-Np0
diff --git a/srcpkgs/solvespace/template b/srcpkgs/solvespace/template
index 377c0e4cbd15..c191a028aedc 100644
--- a/srcpkgs/solvespace/template
+++ b/srcpkgs/solvespace/template
@@ -13,3 +13,4 @@ homepage="https://solvespace.com/index.pl"
 distfiles="https://github.com/solvespace/solvespace/releases/download/v${version}/solvespace-source.tar.gz"
 checksum=0be0b2100c0b01eddded2a4dc60455d61cf67816189905af0e73082bfef96000
 nocross="https://travis-ci.org/bobertlo/void-packages/jobs/487251265"
+patch_args=-Np0
diff --git a/srcpkgs/sonata/template b/srcpkgs/sonata/template
index f4456abd175d..ea07e0620a62 100644
--- a/srcpkgs/sonata/template
+++ b/srcpkgs/sonata/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.nongnu.org/sonata/"
 distfiles="https://github.com/multani/sonata/archive/v${version}.tar.gz"
 checksum=401f6b796ca3cc176813b9f1639741a3fd226499c7ab25bbc740778ebb15f81d
+patch_args=-Np0
diff --git a/srcpkgs/stellarium/template b/srcpkgs/stellarium/template
index 188f87a3d397..f7f61f7f2e90 100644
--- a/srcpkgs/stellarium/template
+++ b/srcpkgs/stellarium/template
@@ -14,3 +14,4 @@ homepage="https://stellarium.org/"
 distfiles="https://github.com/Stellarium/stellarium/releases/download/v${version}/stellarium-${version}.tar.gz"
 checksum=977fcd6776a47d34b1646727853d15968a1410c34c8ba1b3e5cfbf24b5126f13
 replaces="stellarium-data>=0"
+patch_args=-Np0
diff --git a/srcpkgs/streamripper/template b/srcpkgs/streamripper/template
index 8530d816be12..d08ed26d3a49 100644
--- a/srcpkgs/streamripper/template
+++ b/srcpkgs/streamripper/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://streamripper.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=c1d75f2e9c7b38fd4695be66eff4533395248132f3cc61f375196403c4d8de42
+patch_args=-Np0
diff --git a/srcpkgs/stress-ng/template b/srcpkgs/stress-ng/template
index 97cfd9cf39c8..5610d73a24ce 100644
--- a/srcpkgs/stress-ng/template
+++ b/srcpkgs/stress-ng/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://kernel.ubuntu.com/~cking/stress-ng/"
 distfiles="http://kernel.ubuntu.com/~cking/tarballs/stress-ng/${pkgname}-${version}.tar.xz"
 checksum=bd167b6559fa8a28680371b1defd3ffe2344eb550129d58dd7d5e2d568f2786e
+patch_args=-Np0
diff --git a/srcpkgs/swell-foop/template b/srcpkgs/swell-foop/template
index afb8dd466c3e..45a2532e3c19 100644
--- a/srcpkgs/swell-foop/template
+++ b/srcpkgs/swell-foop/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Swell%20Foop"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=61c6b6ff9047c00bdc0dbe11a880058a5462921c702123a2d6d1a652bbbe6280
+patch_args=-Np0
diff --git a/srcpkgs/switchboard-plug-printers/template b/srcpkgs/switchboard-plug-printers/template
index caecd10c886c..76c235fbda57 100644
--- a/srcpkgs/switchboard-plug-printers/template
+++ b/srcpkgs/switchboard-plug-printers/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/elementary/${pkgname}"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=fe2c748e3737c3304ea8613d43d5ba8596f95499a65b8d13f93c4f702901f442
+patch_args=-Np0
diff --git a/srcpkgs/telepathy-haze/template b/srcpkgs/telepathy-haze/template
index 60b65b83eced..36f0c56c702f 100644
--- a/srcpkgs/telepathy-haze/template
+++ b/srcpkgs/telepathy-haze/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://telepathy.freedesktop.org"
 distfiles="${homepage}/releases/$pkgname/$pkgname-$version.tar.gz"
 checksum=3e76049c05f2cd5900c5c0c1cfebdf7ae79eec987a599f1090946673c5b8f9c9
+patch_args=-Np0
diff --git a/srcpkgs/tellico/template b/srcpkgs/tellico/template
index d20e33769d9a..aaf6a88cb14b 100644
--- a/srcpkgs/tellico/template
+++ b/srcpkgs/tellico/template
@@ -27,3 +27,4 @@ desc_option_xmp="Support for reading PDF/XMP metadata"
 desc_option_yaz="Support for searching z39.50 databases"
 desc_option_cddb="Support for CDDB searches"
 desc_option_scanner="Support for adding scanned images to a collection"
+patch_args=-Np0
diff --git a/srcpkgs/texmaker/template b/srcpkgs/texmaker/template
index bd07f0b84ce0..91035c31d4b9 100644
--- a/srcpkgs/texmaker/template
+++ b/srcpkgs/texmaker/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://www.xm1math.net/texmaker/index.html"
 distfiles="http://www.xm1math.net/$pkgname/$pkgname-$version.tar.bz2"
 checksum=1de3ab3f6d6bee37a7d0b528ca1cbb7ce8e7aef5ec6a4405aff2caf9d12bd0e2
+patch_args=-Np0
diff --git a/srcpkgs/tmfs/template b/srcpkgs/tmfs/template
index 1dbed3e0eb72..65c541ebb044 100644
--- a/srcpkgs/tmfs/template
+++ b/srcpkgs/tmfs/template
@@ -14,3 +14,4 @@ checksum="897ad09e21ddd8e912dc1baba4466d8a65a09b3abdeb31e4640c2d770915f2f4"
 post_install() {
 	vlicense LICENSE
 }
+patch_args=-Np0
diff --git a/srcpkgs/trackballs/template b/srcpkgs/trackballs/template
index 4fe2df36d959..8f52f522c4ca 100644
--- a/srcpkgs/trackballs/template
+++ b/srcpkgs/trackballs/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://trackballs.github.io/"
 distfiles="https://github.com/trackballs/trackballs/archive/v${version}.tar.gz"
 checksum=fd4c3e4860db8ca6e8e7ad870a5973d51323a77ed8d7b40d859d9b277c53fc02
+patch_args=-Np0
diff --git a/srcpkgs/tremc/template b/srcpkgs/tremc/template
index 227ca61dc2c5..ca00423bc7b0 100644
--- a/srcpkgs/tremc/template
+++ b/srcpkgs/tremc/template
@@ -10,3 +10,4 @@ license="GPL-3.0-only"
 homepage="https://github.com/tremc/tremc"
 distfiles="https://github.com/tremc/tremc/archive/${version}.tar.gz"
 checksum=ea31ff593c64bbf2c471f6c45ef09129e1e9cb55e8f8bd90e2916976a7053c61
+patch_args=-Np0
diff --git a/srcpkgs/ttfautohint/template b/srcpkgs/ttfautohint/template
index 6096ec06eb44..ee71bc04a032 100644
--- a/srcpkgs/ttfautohint/template
+++ b/srcpkgs/ttfautohint/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://www.freetype.org/ttfautohint/"
 distfiles="http://download.savannah.gnu.org/releases/freetype/ttfautohint-${version}.tar.gz"
 checksum=87bb4932571ad57536a7cc20b31fd15bc68cb5429977eb43d903fa61617cf87e
+patch_args=-Np0
diff --git a/srcpkgs/tworld/template b/srcpkgs/tworld/template
index bc9f0faeb8fc..53238ac4dcd9 100644
--- a/srcpkgs/tworld/template
+++ b/srcpkgs/tworld/template
@@ -10,3 +10,4 @@ license="GPL-2.0-only"
 homepage="http://www.muppetlabs.com/~breadbox/software/tworld/"
 distfiles="http://www.muppetlabs.com/~breadbox/pub/software/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=472fce08de124d965cccb20070b0be2b8b4c5ad717fc5ece32828baacd46d861
+patch_args=-Np0
diff --git a/srcpkgs/ucl/template b/srcpkgs/ucl/template
index fa5dc492fae7..3c62edf1d412 100644
--- a/srcpkgs/ucl/template
+++ b/srcpkgs/ucl/template
@@ -10,3 +10,4 @@ homepage="http://www.oberhumer.com/opensource/ucl/"
 distfiles="http://www.oberhumer.com/opensource/ucl/download/ucl-${version}.tar.gz"
 checksum=b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348
 conflicts="libucl-devel>=0"
+patch_args=-Np0
diff --git a/srcpkgs/uhubctl/template b/srcpkgs/uhubctl/template
index 748b10a9b32a..7b8416384177 100644
--- a/srcpkgs/uhubctl/template
+++ b/srcpkgs/uhubctl/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://github.com/mvp/uhubctl"
 distfiles="https://github.com/mvp/uhubctl/archive/v${version}.tar.gz"
 checksum=227fdd541067b84eaa0e15cdc171458a56de7591f7a1deaff3e6d42d2809450b
+patch_args=-Np0
diff --git a/srcpkgs/usb-modeswitch-data/template b/srcpkgs/usb-modeswitch-data/template
index 6412b7035a85..4da5049e3ced 100644
--- a/srcpkgs/usb-modeswitch-data/template
+++ b/srcpkgs/usb-modeswitch-data/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://www.draisberghof.de/usb_modeswitch/"
 distfiles="http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${version}.tar.bz2"
 checksum=3f039b60791c21c7cb15c7986cac89650f076dc274798fa242231b910785eaf9
+patch_args=-Np0
diff --git a/srcpkgs/usb-modeswitch/template b/srcpkgs/usb-modeswitch/template
index 475c1695fab1..f38c8b46cdb8 100644
--- a/srcpkgs/usb-modeswitch/template
+++ b/srcpkgs/usb-modeswitch/template
@@ -14,3 +14,4 @@ license="GPL-2"
 homepage="http://www.draisberghof.de/usb_modeswitch/"
 distfiles="http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-${version}.tar.bz2"
 checksum=c215236e6bada6e659fc195a31d611ea298a4bdb4d57a0d68c553b56585f8ba3
+patch_args=-Np0
diff --git a/srcpkgs/valabind/template b/srcpkgs/valabind/template
index d2af2f9be152..c29263464e53 100644
--- a/srcpkgs/valabind/template
+++ b/srcpkgs/valabind/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://radare.org/r/"
 distfiles="https://github.com/radare/valabind/archive/${version}.tar.gz"
 checksum=643c1ddc85e31de975df361a20e3f39d385f5ced0e50483c6e96b33bb3d32261
+patch_args=-Np0
diff --git a/srcpkgs/vba-m/template b/srcpkgs/vba-m/template
index 8e6447f5c6f5..270df8dee158 100644
--- a/srcpkgs/vba-m/template
+++ b/srcpkgs/vba-m/template
@@ -16,3 +16,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/visualboyadvance-m/visualboyadvance-m/"
 distfiles="https://github.com/visualboyadvance-m/visualboyadvance-m/archive/v${version}.tar.gz"
 checksum=8342e017212842de66b0d86bc7610c82349af2d4e59951d969a33fff956c39ba
+patch_args=-Np0
diff --git a/srcpkgs/wdisplays/template b/srcpkgs/wdisplays/template
index 6378c2a118c1..fc2ff5f563d9 100644
--- a/srcpkgs/wdisplays/template
+++ b/srcpkgs/wdisplays/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://cyclopsian.github.io/wdisplays/"
 distfiles="https://github.com/cyclopsian/wdisplays/archive/${version}.tar.gz"
 checksum=fa34d5bdfd87d833e18a89b2acacc27833d7297374719773a705f2d3e89cdddf
+patch_args=-Np0
diff --git a/srcpkgs/wfuzz/template b/srcpkgs/wfuzz/template
index f0f7b1b0fe0a..b27ec12f675e 100644
--- a/srcpkgs/wfuzz/template
+++ b/srcpkgs/wfuzz/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://wfuzz.org"
 distfiles="https://github.com/xmendez/wfuzz/archive/v${version}.tar.gz"
 checksum=60798e56274a377f8770d162935a040d4d6e27919bfbb46cf13a7a0a34896be9
+patch_args=-Np0
diff --git a/srcpkgs/whysynth/template b/srcpkgs/whysynth/template
index 2c2631da2509..95813353f234 100644
--- a/srcpkgs/whysynth/template
+++ b/srcpkgs/whysynth/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://smbolton.com/whysynth.html"
 distfiles="http://smbolton.com/whysynth/whysynth-${version}.tar.bz2"
 checksum=a602d685a6bf48b01a82e1c077a50fe3d115805865ecfe49f531d8bd20b00b0b
+patch_args=-Np0
diff --git a/srcpkgs/wmctrl/template b/srcpkgs/wmctrl/template
index 774c4ca6f200..2f989ed2e8ee 100644
--- a/srcpkgs/wmctrl/template
+++ b/srcpkgs/wmctrl/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://sites.google.com/site/tstyblo/wmctrl/"
 distfiles="https://sites.google.com/site/tstyblo/wmctrl/wmctrl-${version}.tar.gz"
 checksum=d78a1efdb62f18674298ad039c5cbdb1edb6e8e149bb3a8e3a01a4750aa3cca9
+patch_args=-Np0
diff --git a/srcpkgs/wofi/template b/srcpkgs/wofi/template
index 5fe2c5b63ed2..8ecf7d5985c5 100644
--- a/srcpkgs/wofi/template
+++ b/srcpkgs/wofi/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://hg.sr.ht/~scoopta/wofi"
 distfiles="https://hg.sr.ht/~scoopta/wofi/archive/v${version}.tar.gz"
 checksum=@fee85efc35e97946d3a94562775b902982c4ab1f521208308ecc4bb41547a5e3
+patch_args=-Np0
diff --git a/srcpkgs/wvdial/template b/srcpkgs/wvdial/template
index 3813dea5f5ef..1b5b82c4d16b 100644
--- a/srcpkgs/wvdial/template
+++ b/srcpkgs/wvdial/template
@@ -13,3 +13,4 @@ homepage="https://code.google.com/p/wvstreams/"
 distfiles="${DEBIAN_SITE}/main/w/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=5753d2005115aa4e365a1638f4eb6c076d4e2deafa46c3de38964918e7f62709
 conf_files="/etc/ppp/peers/wvdial /etc/ppp/peers/wvdial-pipe"
+patch_args=-Np0
diff --git a/srcpkgs/xbindkeys/template b/srcpkgs/xbindkeys/template
index 54486843942a..ea2d1e8b3037 100644
--- a/srcpkgs/xbindkeys/template
+++ b/srcpkgs/xbindkeys/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://www.nongnu.org/xbindkeys/xbindkeys.html"
 distfiles="http://www.nongnu.org/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=a29b86a8ec91d4abc83b420e547da27470847d0efe808aa6e75147aa0adb82f2
+patch_args=-Np0
diff --git a/srcpkgs/xdg-dbus-proxy/template b/srcpkgs/xdg-dbus-proxy/template
index 3d01f5e60b1b..805d7404ab4c 100644
--- a/srcpkgs/xdg-dbus-proxy/template
+++ b/srcpkgs/xdg-dbus-proxy/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/flatpak/xdg-dbus-proxy"
 distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.xz"
 checksum=1749d6f9f46dcc9edc87725641cf56cf91dcad1b01707891ea0850c1000c520f
+patch_args=-Np0
diff --git a/srcpkgs/xfce4-power-manager/template b/srcpkgs/xfce4-power-manager/template
index edc9a58e27b9..84d7d1514098 100644
--- a/srcpkgs/xfce4-power-manager/template
+++ b/srcpkgs/xfce4-power-manager/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://xfce.org/"
 distfiles="https://archive.xfce.org/src/xfce/$pkgname/${version%.*}/$pkgname-$version.tar.bz2"
 checksum=eb9c587c01b502fa45a32e7fc2aba98fa6d8391475133883654f77e562c43bf3
+patch_args=-Np0
diff --git a/srcpkgs/xkblayout-state/template b/srcpkgs/xkblayout-state/template
index e3b1f4131db9..78407cc1ba56 100644
--- a/srcpkgs/xkblayout-state/template
+++ b/srcpkgs/xkblayout-state/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/nonpop/xkblayout-state"
 distfiles="https://github.com/nonpop/xkblayout-state/archive/v${version}.tar.gz"
 checksum=ddf2de9949edbea2cb25933c22a6b76d4f868ee3012120216555ac96e9b536d4
+patch_args=-Np0
diff --git a/srcpkgs/xnots/template b/srcpkgs/xnots/template
index c08b06c26d6f..05a565630c8a 100644
--- a/srcpkgs/xnots/template
+++ b/srcpkgs/xnots/template
@@ -14,3 +14,4 @@ license="GPL-2.0-only"
 homepage="http://xnots.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/project/${pkgname}/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=80bbab0334880f79aa12cf17ebffc5730a85dc537e8e6208169720656ecd72ca
+patch_args=-Np0
diff --git a/srcpkgs/xsel/template b/srcpkgs/xsel/template
index edc001dba405..4121c1140936 100644
--- a/srcpkgs/xsel/template
+++ b/srcpkgs/xsel/template
@@ -10,3 +10,4 @@ license="custom"
 homepage="http://www.vergenet.net/~conrad/software/xsel/"
 distfiles="http://www.vergenet.net/~conrad/software/xsel/download/xsel-${version}.tar.gz"
 checksum=b927ce08dc82f4c30140223959b90cf65e1076f000ce95e520419ec32f5b141c
+patch_args=-Np0
diff --git a/srcpkgs/xseticon/template b/srcpkgs/xseticon/template
index 130726aa45c3..d3655f7d0c0f 100644
--- a/srcpkgs/xseticon/template
+++ b/srcpkgs/xseticon/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/xeyownt/xseticon"
 distfiles="https://github.com/xeyownt/xseticon/archive/${version}.tar.gz"
 checksum=d34c349ff09ea42393fb3bac3fd2be0e7b9a244388e2f4b32cc92636967a4a2c
+patch_args=-Np0
diff --git a/srcpkgs/yabause-gtk/template b/srcpkgs/yabause-gtk/template
index 2b85120a5a7f..fab9fa26cb84 100644
--- a/srcpkgs/yabause-gtk/template
+++ b/srcpkgs/yabause-gtk/template
@@ -17,3 +17,4 @@ checksum=4334c43fe0f3ff297bac8e91f4e059fe5fd276291faff2489e37b5b3a4ccc2b2
 nopie=yes
 # Would need m68kmake built for the host
 nocross=yes
+patch_args=-Np0
diff --git a/srcpkgs/zaz/template b/srcpkgs/zaz/template
index c99dbca901dd..e9bf8c19bc9d 100644
--- a/srcpkgs/zaz/template
+++ b/srcpkgs/zaz/template
@@ -13,3 +13,4 @@ homepage="http://zaz.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=e332cc1a6559e18a2b632940c53d20e2f2d2b583ba9dc1fd02a586437f9f0397
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/freetype2"
+patch_args=-Np0
diff --git a/srcpkgs/zbackup/template b/srcpkgs/zbackup/template
index c69c8e711cfd..997fc5b349f9 100644
--- a/srcpkgs/zbackup/template
+++ b/srcpkgs/zbackup/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://zbackup.org/"
 distfiles="https://github.com/zbackup/zbackup/archive/${version}.tar.gz"
 checksum=efccccd2a045da91576c591968374379da1dc4ca2e3dec4d3f8f12628fa29a85
+patch_args=-Np0

From 0f5d2447ee2b7e8ff926a4d36bf964f17328cedb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:38:20 +0700
Subject: [PATCH 5/6] do-patch: switch default patch_args to -Np1

All templates that require -Np0 have patch_args appended.
Let's flip the switch.
---
 Manual.md                           | 4 ++--
 common/hooks/do-patch/00-patches.sh | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Manual.md b/Manual.md
index 238db04f04b3..dc20f1e0db00 100644
--- a/Manual.md
+++ b/Manual.md
@@ -601,7 +601,7 @@ current directory with respect to the install.
 
 - `patch_args` The arguments to be passed in to the `patch(1)` command when applying
 patches to the package sources during `do_patch()`. Patches are stored in
-`srcpkgs/<pkgname>/patches` and must be in `-p0` format. By default set to `-Np0`.
+`srcpkgs/<pkgname>/patches` and must be in `-p0` format. By default set to `-Np1`.
 
 - `disable_parallel_build` If set the package won't be built in parallel
 and `XBPS_MAKEJOBS` has no effect.
@@ -874,7 +874,7 @@ been found or to fix compilation with new software.
 
 To handle this, xbps-src has patching functionality. It will look for all files
 that match the glob `srcpkgs/$pkgname/patches/*.{diff,patch}` and will
-automatically apply all files it finds using `patch(1)` with `-Np0`. This happens
+automatically apply all files it finds using `patch(1)` with `-Np1`. This happens
 during the `do_patch()` phase. The variable `PATCHESDIR` is
 available in the template, pointing to the `patches` directory.
 
diff --git a/common/hooks/do-patch/00-patches.sh b/common/hooks/do-patch/00-patches.sh
index 64e934c39818..f8ce2d37fee5 100644
--- a/common/hooks/do-patch/00-patches.sh
+++ b/common/hooks/do-patch/00-patches.sh
@@ -3,7 +3,7 @@
 _process_patch() {
 	local _args= _patch= i=$1
 
-	_args="-Np0"
+	_args="-Np1"
 	_patch=${i##*/}
 
 	if [ -f $PATCHESDIR/${_patch}.args ]; then

From 6cadb4ecf254e8bf750e02500f53121c0566f1e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 08:20:04 +0700
Subject: [PATCH 6/6] srcpkgs: remove patch_args=-Np1 en-mass

	git grep -l '^patch_args=.*p1' 'srcpkgs/*/template'  |
	xargs -r sed -i '/^patch_args=/d'
---
 srcpkgs/EternalTerminal/template         | 1 -
 srcpkgs/Ice/template                     | 1 -
 srcpkgs/Marker/template                  | 1 -
 srcpkgs/NetworkManager/template          | 1 -
 srcpkgs/OTPClient/template               | 1 -
 srcpkgs/RyzenAdj/template                | 1 -
 srcpkgs/VirtualGL/template               | 1 -
 srcpkgs/abiword/template                 | 1 -
 srcpkgs/acfgfs/template                  | 1 -
 srcpkgs/acr/template                     | 1 -
 srcpkgs/alot/template                    | 1 -
 srcpkgs/alsa-lib/template                | 1 -
 srcpkgs/alure/template                   | 1 -
 srcpkgs/apparmor/template                | 1 -
 srcpkgs/arcan/template                   | 1 -
 srcpkgs/atril/template                   | 1 -
 srcpkgs/audit/template                   | 1 -
 srcpkgs/babeld/template                  | 1 -
 srcpkgs/bibletime/template               | 1 -
 srcpkgs/binutils/template                | 1 -
 srcpkgs/blender/template                 | 1 -
 srcpkgs/blobby2/template                 | 1 -
 srcpkgs/bluez/template                   | 1 -
 srcpkgs/bolt/template                    | 1 -
 srcpkgs/brotli/template                  | 1 -
 srcpkgs/bsd-games/template               | 1 -
 srcpkgs/cairo-dock-plugins/template      | 1 -
 srcpkgs/cairo/template                   | 1 -
 srcpkgs/caribou/template                 | 1 -
 srcpkgs/catimg/template                  | 1 -
 srcpkgs/cheese/template                  | 1 -
 srcpkgs/chuck/template                   | 1 -
 srcpkgs/clockspeed/template              | 1 -
 srcpkgs/cmake/template                   | 1 -
 srcpkgs/crex/template                    | 1 -
 srcpkgs/cryfs/template                   | 1 -
 srcpkgs/curl/template                    | 1 -
 srcpkgs/cyrus-sasl/template              | 1 -
 srcpkgs/dbus-elogind/template            | 1 -
 srcpkgs/ddgtk/template                   | 1 -
 srcpkgs/deluge/template                  | 1 -
 srcpkgs/diffr/template                   | 1 -
 srcpkgs/docbook2x/template               | 1 -
 srcpkgs/efitools/template                | 1 -
 srcpkgs/efivar/template                  | 1 -
 srcpkgs/electrum-ltc/template            | 1 -
 srcpkgs/embree/template                  | 1 -
 srcpkgs/empathy/template                 | 1 -
 srcpkgs/enchant/template                 | 1 -
 srcpkgs/ettercap/template                | 1 -
 srcpkgs/exempi/template                  | 1 -
 srcpkgs/ext4magic/template               | 1 -
 srcpkgs/fbset/template                   | 1 -
 srcpkgs/fcitx5-anthy/template            | 1 -
 srcpkgs/fcitx5-qt/template               | 1 -
 srcpkgs/fcitx5/template                  | 1 -
 srcpkgs/firebird3/template               | 1 -
 srcpkgs/flac/template                    | 1 -
 srcpkgs/flann/template                   | 1 -
 srcpkgs/fonttosfnt/template              | 1 -
 srcpkgs/fortune-mod/template             | 1 -
 srcpkgs/fwupd/template                   | 1 -
 srcpkgs/gcc6/template                    | 1 -
 srcpkgs/gdb/template                     | 1 -
 srcpkgs/geeqie/template                  | 1 -
 srcpkgs/gettext/template                 | 1 -
 srcpkgs/ghc/template                     | 1 -
 srcpkgs/ghdl/template                    | 1 -
 srcpkgs/ghostscript/template             | 1 -
 srcpkgs/gjs/template                     | 1 -
 srcpkgs/glibc/template                   | 1 -
 srcpkgs/glm/template                     | 1 -
 srcpkgs/glu/template                     | 1 -
 srcpkgs/gnac/template                    | 1 -
 srcpkgs/gnome-builder/template           | 1 -
 srcpkgs/gnome-doc-utils/template         | 1 -
 srcpkgs/gnome-panel/template             | 1 -
 srcpkgs/gnome-todo/template              | 1 -
 srcpkgs/gobject-introspection/template   | 1 -
 srcpkgs/gpicview/template                | 1 -
 srcpkgs/graphene/template                | 1 -
 srcpkgs/growlight/template               | 1 -
 srcpkgs/grub-btrfs/template              | 1 -
 srcpkgs/grub/template                    | 1 -
 srcpkgs/gsimplecal-gtk2/template         | 1 -
 srcpkgs/gtk-doc/template                 | 1 -
 srcpkgs/hostapd/template                 | 1 -
 srcpkgs/ifstatus/template                | 1 -
 srcpkgs/iio-sensor-proxy/template        | 1 -
 srcpkgs/incron/template                  | 1 -
 srcpkgs/inkscape/template                | 1 -
 srcpkgs/interbench/template              | 1 -
 srcpkgs/ispc/template                    | 1 -
 srcpkgs/jasper/template                  | 1 -
 srcpkgs/json-c/template                  | 1 -
 srcpkgs/judy/template                    | 1 -
 srcpkgs/julia/template                   | 1 -
 srcpkgs/kakasi/template                  | 1 -
 srcpkgs/kitty/template                   | 1 -
 srcpkgs/kmymoney/template                | 1 -
 srcpkgs/kodi-rpi/template                | 1 -
 srcpkgs/kodi/template                    | 1 -
 srcpkgs/kreport/template                 | 1 -
 srcpkgs/kwin/template                    | 1 -
 srcpkgs/libbaseencode/template           | 1 -
 srcpkgs/libcotp/template                 | 1 -
 srcpkgs/libextractor/template            | 1 -
 srcpkgs/libfcitx-qt5/template            | 1 -
 srcpkgs/libgcrypt/template               | 1 -
 srcpkgs/libgpg-error/template            | 1 -
 srcpkgs/libhugetlbfs/template            | 1 -
 srcpkgs/libical/template                 | 1 -
 srcpkgs/libid3tag/template               | 1 -
 srcpkgs/libknet1/template                | 1 -
 srcpkgs/libode/template                  | 1 -
 srcpkgs/libogdf/template                 | 1 -
 srcpkgs/libopenshot/template             | 1 -
 srcpkgs/libpgf/template                  | 1 -
 srcpkgs/libsasl/template                 | 1 -
 srcpkgs/libtar/template                  | 1 -
 srcpkgs/libtls/template                  | 1 -
 srcpkgs/libtomcrypt/template             | 1 -
 srcpkgs/libunique1/template              | 1 -
 srcpkgs/libvorbis/template               | 1 -
 srcpkgs/lightdm-gtk-greeter/template     | 1 -
 srcpkgs/linux-driver-management/template | 1 -
 srcpkgs/linux4.14/template               | 1 -
 srcpkgs/linux4.19/template               | 1 -
 srcpkgs/linux4.9/template                | 1 -
 srcpkgs/linux5.10/template               | 1 -
 srcpkgs/linux5.11/template               | 1 -
 srcpkgs/linux5.12/template               | 1 -
 srcpkgs/linux5.4/template                | 1 -
 srcpkgs/loudgain/template                | 1 -
 srcpkgs/lxde-common/template             | 1 -
 srcpkgs/lxlauncher/template              | 1 -
 srcpkgs/lxsession/template               | 1 -
 srcpkgs/m4/template                      | 1 -
 srcpkgs/mac-fdisk/template               | 1 -
 srcpkgs/mailx/template                   | 1 -
 srcpkgs/make/template                    | 1 -
 srcpkgs/mbuffer/template                 | 1 -
 srcpkgs/mellowplayer/template            | 1 -
 srcpkgs/mkinitcpio-nfs-utils/template    | 1 -
 srcpkgs/mkinitcpio/template              | 1 -
 srcpkgs/motif/template                   | 1 -
 srcpkgs/mouseemu/template                | 1 -
 srcpkgs/mozjs78/template                 | 1 -
 srcpkgs/mupdf/template                   | 1 -
 srcpkgs/musl/template                    | 1 -
 srcpkgs/ndppd/template                   | 1 -
 srcpkgs/network-manager-applet/template  | 1 -
 srcpkgs/nfs-utils/template               | 1 -
 srcpkgs/nomad/template                   | 1 -
 srcpkgs/notmuch/template                 | 1 -
 srcpkgs/numix-themes/template            | 1 -
 srcpkgs/nvi/template                     | 1 -
 srcpkgs/ocaml/template                   | 1 -
 srcpkgs/onboard/template                 | 1 -
 srcpkgs/openjdk10-bootstrap/template     | 1 -
 srcpkgs/openjdk7-bootstrap/template      | 1 -
 srcpkgs/openjdk8/template                | 1 -
 srcpkgs/openjdk9-bootstrap/template      | 1 -
 srcpkgs/orientdb/template                | 1 -
 srcpkgs/p11-kit/template                 | 1 -
 srcpkgs/parallel-rust/template           | 1 -
 srcpkgs/patch/template                   | 1 -
 srcpkgs/pavucontrol/template             | 1 -
 srcpkgs/pbbuttonsd/template              | 1 -
 srcpkgs/pcsxr/template                   | 1 -
 srcpkgs/pinebookpro-kernel/template      | 1 -
 srcpkgs/pinephone-kernel/template        | 1 -
 srcpkgs/ponysay/template                 | 1 -
 srcpkgs/poppler-qt5/template             | 1 -
 srcpkgs/poppler/template                 | 1 -
 srcpkgs/procmail/template                | 1 -
 srcpkgs/psutils/template                 | 1 -
 srcpkgs/python-notify/template           | 1 -
 srcpkgs/qemu/template                    | 1 -
 srcpkgs/qt5-webengine/template           | 1 -
 srcpkgs/rdup/template                    | 1 -
 srcpkgs/recode/template                  | 1 -
 srcpkgs/rng-tools/template               | 1 -
 srcpkgs/rust/template                    | 1 -
 srcpkgs/sakura/template                  | 1 -
 srcpkgs/sbc/template                     | 1 -
 srcpkgs/sbsigntool/template              | 1 -
 srcpkgs/sharutils/template               | 1 -
 srcpkgs/spdlog/template                  | 1 -
 srcpkgs/stegsnow/template                | 1 -
 srcpkgs/sun7i-kernel/template            | 1 -
 srcpkgs/syslinux/template                | 1 -
 srcpkgs/tilix/template                   | 1 -
 srcpkgs/tmux/template                    | 1 -
 srcpkgs/ucspi-tcp/template               | 1 -
 srcpkgs/unixbench/template               | 1 -
 srcpkgs/unzip/template                   | 1 -
 srcpkgs/util-linux/template              | 1 -
 srcpkgs/utox/template                    | 1 -
 srcpkgs/valgrind/template                | 1 -
 srcpkgs/viking/template                  | 1 -
 srcpkgs/vscode/template                  | 1 -
 srcpkgs/vtk/template                     | 1 -
 srcpkgs/wayfire-plugins-extra/template   | 1 -
 srcpkgs/webrtc-audio-processing/template | 1 -
 srcpkgs/whipper/template                 | 1 -
 srcpkgs/wireplumber/template             | 1 -
 srcpkgs/wlsunset/template                | 1 -
 srcpkgs/wpa_supplicant/template          | 1 -
 srcpkgs/wrk/template                     | 1 -
 srcpkgs/x2goserver/template              | 1 -
 srcpkgs/xbps/template                    | 1 -
 srcpkgs/xdgmenumaker/template            | 1 -
 srcpkgs/xen/template                     | 1 -
 srcpkgs/xpdf/template                    | 1 -
 srcpkgs/xzoom/template                   | 1 -
 srcpkgs/yaboot/template                  | 1 -
 srcpkgs/zeroc-mcpp/template              | 1 -
 srcpkgs/zziplib/template                 | 1 -
 219 files changed, 219 deletions(-)

diff --git a/srcpkgs/EternalTerminal/template b/srcpkgs/EternalTerminal/template
index e2555e2f8642..f4f2b4720362 100644
--- a/srcpkgs/EternalTerminal/template
+++ b/srcpkgs/EternalTerminal/template
@@ -13,7 +13,6 @@ homepage="https://eternalterminal.dev/"
 distfiles="https://github.com/MisterTea/EternalTerminal/archive/et-v${version}.tar.gz"
 checksum=728c3a444d666897c710e33fe473d8d289263a59574451b13aa53ec3c6ac88b3
 system_accounts="_eternal"
-patch_args=-Np1
 
 LDFLAGS="-lgflags"
 
diff --git a/srcpkgs/Ice/template b/srcpkgs/Ice/template
index 6c3e6971874d..f85b38df28d6 100644
--- a/srcpkgs/Ice/template
+++ b/srcpkgs/Ice/template
@@ -15,7 +15,6 @@ license="GPL-2.0-only, custom:ICE"
 homepage="https://www.zeroc.com"
 distfiles="https://github.com/zeroc-ice/ice/archive/v${version}.tar.gz"
 checksum=36bf45591a95e6ee7216153d45d8eca05ff00c1da35608f0c400e6ddc8049da9
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	# Cross build requires the host's slice2cpp
diff --git a/srcpkgs/Marker/template b/srcpkgs/Marker/template
index 2c57664b3c68..be02723dc4ed 100644
--- a/srcpkgs/Marker/template
+++ b/srcpkgs/Marker/template
@@ -14,7 +14,6 @@ license="GPL-3.0-or-later, ISC"
 homepage="https://fabiocolacio.github.io/Marker/"
 distfiles="https://github.com/fabiocolacio/Marker/releases/download/${version}/marker.zip"
 checksum=ca493e7e94f171c15f7ffc9f697ce265d3b4fdb20fae157601d091d89dd6fb40
-patch_args="-Np1"
 
 post_extract() {
 	# don't include bundled mathjax
diff --git a/srcpkgs/NetworkManager/template b/srcpkgs/NetworkManager/template
index 2f159a9f55c4..7af0685be910 100644
--- a/srcpkgs/NetworkManager/template
+++ b/srcpkgs/NetworkManager/template
@@ -46,7 +46,6 @@ make_dirs="
  /etc/NetworkManager/VPN 0755 root root
  /var/lib/NetworkManager 0755 root root
 "
-patch_args=-Np1
 
 # Package build options
 build_options="gir elogind"
diff --git a/srcpkgs/OTPClient/template b/srcpkgs/OTPClient/template
index bea17c56a1e4..28de82117c9a 100644
--- a/srcpkgs/OTPClient/template
+++ b/srcpkgs/OTPClient/template
@@ -12,4 +12,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/paolostivanin/OTPClient"
 distfiles="https://github.com/paolostivanin/OTPClient/archive/v${version}.tar.gz"
 checksum=5b976782906f15e2a4e001d73909a05f6146010cea83d78e3ad5c850f4049da4
-patch_args=-Np1
diff --git a/srcpkgs/RyzenAdj/template b/srcpkgs/RyzenAdj/template
index 1ceb4fec1e4a..ccea4932b6f2 100644
--- a/srcpkgs/RyzenAdj/template
+++ b/srcpkgs/RyzenAdj/template
@@ -11,7 +11,6 @@ license="LGPL-3.0-only"
 homepage="https://github.com/FlyGoat/RyzenAdj"
 distfiles="https://github.com/FlyGoat/RyzenAdj/archive/v${version}.tar.gz"
 checksum=fff8a08e657ba35f919bd564fbe2e15e7c615ac6e2a357ffcc3472069e8081f6
-patch_args=-Np1
 
 do_install() {
 	vbin build/ryzenadj
diff --git a/srcpkgs/VirtualGL/template b/srcpkgs/VirtualGL/template
index bf25920d2cb7..58ff1859ea80 100644
--- a/srcpkgs/VirtualGL/template
+++ b/srcpkgs/VirtualGL/template
@@ -14,7 +14,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.virtualgl.org/"
 distfiles="${SOURCEFORGE_SITE}/virtualgl/${version}/${pkgname}-${version}.tar.gz"
 checksum=79dff857862890215794509ac65826005625925d03bf0874a486d695aae6f859
-patch_args="-Np1"
 
 archs="i686* x86_64*"
 
diff --git a/srcpkgs/abiword/template b/srcpkgs/abiword/template
index 0f48222f8180..782d023e01dc 100644
--- a/srcpkgs/abiword/template
+++ b/srcpkgs/abiword/template
@@ -18,7 +18,6 @@ license="GPL-2.0-or-later"
 homepage="http://www.abisource.com/"
 distfiles="${homepage}/downloads/${pkgname}/${version}/source/${pkgname}-${version}.tar.gz"
 checksum=e93096cb192e5bc19d62e180fc5eda643206465315a710113ae5036bc2a1a5d7
-patch_args=-Np1
 
 build_options="goffice"
 build_options_default="goffice"
diff --git a/srcpkgs/acfgfs/template b/srcpkgs/acfgfs/template
index b66760cb1ea4..0e1ced9d4f06 100644
--- a/srcpkgs/acfgfs/template
+++ b/srcpkgs/acfgfs/template
@@ -14,7 +14,6 @@ license="BSD-3-Clause"
 homepage="https://arcan-fe.com"
 distfiles="https://github.com/letoram/arcan/archive/${version}.tar.gz"
 checksum=7ae00a9dee79f9b58ac2bacbf532ff0631280297cfde30e8996382a3f42a52ed
-patch_args="-Np1"
 
 case "${XBPS_TARGET_MACHINE}" in
 	i686|armv6l|armv7l|ppc)
diff --git a/srcpkgs/acr/template b/srcpkgs/acr/template
index 88d79a1a6706..0574ea512016 100644
--- a/srcpkgs/acr/template
+++ b/srcpkgs/acr/template
@@ -11,4 +11,3 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/radare/acr"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=88bb2e4cb35b18370675710806c4ef03ef81a6ed521b939e272267754e8484c1
-patch_args=-Np1
diff --git a/srcpkgs/alot/template b/srcpkgs/alot/template
index 314bbe011aad..831b24deb8b4 100644
--- a/srcpkgs/alot/template
+++ b/srcpkgs/alot/template
@@ -13,7 +13,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/pazz/alot"
 distfiles="https://github.com/pazz/${pkgname}/archive/${version}.tar.gz"
 checksum=ee2c1ab1b43d022a8fe2078820ed57d8d72aec260a7d750776dac4ee841d1de4
-patch_args="-Np1"
 
 do_check() {
 	pytest3 -k 'not test_no_spawn_no_stdin_attached'
diff --git a/srcpkgs/alsa-lib/template b/srcpkgs/alsa-lib/template
index 7a6a58a8c5ea..454ede71606e 100644
--- a/srcpkgs/alsa-lib/template
+++ b/srcpkgs/alsa-lib/template
@@ -10,7 +10,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.alsa-project.org"
 distfiles="https://www.alsa-project.org/files/pub/lib/${pkgname}-${version}.tar.bz2"
 checksum=f7554be1a56cdff468b58fc1c29b95b64864c590038dd309c7a978c7116908f7
-patch_args="-Np1"
 
 alsa-lib-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/alure/template b/srcpkgs/alure/template
index 0acf8c80fd3d..04e40e3c8b20 100644
--- a/srcpkgs/alure/template
+++ b/srcpkgs/alure/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="https://github.com/kcat/alure"
 distfiles="${DEBIAN_SITE}/main/a/alure/alure_${version}.orig.tar.bz2"
 checksum=465e6adae68927be3a023903764662d64404e40c4c152d160e3a8838b1d70f71
-patch_args=-Np1
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/apparmor/template b/srcpkgs/apparmor/template
index 0d8c1ec7087e..2431832981c7 100644
--- a/srcpkgs/apparmor/template
+++ b/srcpkgs/apparmor/template
@@ -18,7 +18,6 @@ homepage="https://gitlab.com/apparmor/apparmor"
 changelog="https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_${version}"
 distfiles="https://gitlab.com/apparmor/apparmor/-/archive/v${version}/apparmor-v${version}.tar.gz"
 checksum=5f9afc157c5e2610737186a31fc9bd6a1d339a2ee85ac4f2667dce59cf60f1c7
-patch_args="-Np1"
 
 if [ -z "$CROSS_BUILD" ]; then
 	configure_args="--with-perl --with-python"
diff --git a/srcpkgs/arcan/template b/srcpkgs/arcan/template
index 7788f50d3329..f436db94479c 100644
--- a/srcpkgs/arcan/template
+++ b/srcpkgs/arcan/template
@@ -26,7 +26,6 @@ distfiles="https://github.com/letoram/${pkgname}/archive/${version}.tar.gz
  https://github.com/letoram/openal/archive/${_versionOpenal}.tar.gz>openal_arcan.${_versionOpenal}.tar.gz"
 checksum="7ae00a9dee79f9b58ac2bacbf532ff0631280297cfde30e8996382a3f42a52ed
  3a50a87c05b67c466a868cc77f8dc7f9cfc9466aeeafcd823daca0d108c504da"
-patch_args="-Np1"
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/atril/template b/srcpkgs/atril/template
index b26399624b01..97602c4b1b0b 100644
--- a/srcpkgs/atril/template
+++ b/srcpkgs/atril/template
@@ -20,7 +20,6 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=b48372a89813f31d2635de02d9e92ba38e794daddf625f06d80c3793248bde1a
-patch_args=-Np1
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/audit/template b/srcpkgs/audit/template
index fcd5de93732d..a093bfac8333 100644
--- a/srcpkgs/audit/template
+++ b/srcpkgs/audit/template
@@ -16,7 +16,6 @@ homepage="https://people.redhat.com/sgrubb/audit"
 changelog="https://raw.githubusercontent.com/linux-audit/audit-userspace/master/ChangeLog"
 distfiles="${homepage}/${pkgname}-${version}.tar.gz"
 checksum=994c4250d8fd43f3087a3c2ce73461832e30f1e9b278bf5bb03c3e07091155a5
-patch_args=-Np1
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args+=" --disable-zos-remote" ;;
diff --git a/srcpkgs/babeld/template b/srcpkgs/babeld/template
index c8a90adea73b..5a46f57aafaf 100644
--- a/srcpkgs/babeld/template
+++ b/srcpkgs/babeld/template
@@ -10,7 +10,6 @@ license="MIT"
 homepage="https://www.irif.fr/~jch/software/babel/"
 distfiles="https://github.com/jech/babeld/archive/babeld-${version}.tar.gz"
 checksum=d44a0ca3cf67595e1ed67ca219c975c3c011c6046028be75df254715c4611d31
-patch_args="-Np1"
 
 pre_build() {
 	echo ${version}-${revision} > version
diff --git a/srcpkgs/bibletime/template b/srcpkgs/bibletime/template
index bc005197cdb3..559755a9dd6f 100644
--- a/srcpkgs/bibletime/template
+++ b/srcpkgs/bibletime/template
@@ -18,7 +18,6 @@ license="GPL-2.0-or-later"
 homepage="http://bibletime.info"
 distfiles="https://github.com/bibletime/bibletime/releases/download/v${version}/bibletime-${version}.tar.xz"
 checksum=d6beef62ad44b255e3dc4c5e89214bf01a0e85c9136073b0be12fca3d2b22622
-patch_args=-Np1
 
 pre_build() {
 	. /etc/profile.d/10_openjdk11.sh
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 7a7966f440aa..6270f8618c87 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=3ced91db9bf01182b7e420eab68039f2083aed0a214c0424e257eae3ddee8607
-patch_args="-Np1"
 
 subpackages="binutils-doc"
 if [ "$CHROOT_READY" ]; then
diff --git a/srcpkgs/blender/template b/srcpkgs/blender/template
index 810c98ee7705..af946c2b7999 100644
--- a/srcpkgs/blender/template
+++ b/srcpkgs/blender/template
@@ -31,7 +31,6 @@ python_version=3
 CXXFLAGS="-DNDEBUG"
 CFLAGS="$CXXFLAGS"
 LDFLAGS="-Wl,-z,stack-size=2097152"
-patch_args="-Np1"
 # Blender tests are executed against a system installation of blender. This
 # is currently not supported by xbps-src.
 make_check=no
diff --git a/srcpkgs/blobby2/template b/srcpkgs/blobby2/template
index b47972ab884a..c8b9c65046c9 100644
--- a/srcpkgs/blobby2/template
+++ b/srcpkgs/blobby2/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://blobbyvolley.de"
 distfiles="${SOURCEFORGE_SITE}/blobby/${pkgname}-linux-${version}.tar.gz"
 checksum=ba7a049e298aaa2014c1e1ac1faf3b0256b4c66266cd4db06e7939e8695bf5e2
-patch_args="-Np1"
 
 post_install() {
 	vinstall ${FILESDIR}/blobby.desktop 644 usr/share/applications
diff --git a/srcpkgs/bluez/template b/srcpkgs/bluez/template
index e6ef1b9b6b0e..09bac4ff5eca 100644
--- a/srcpkgs/bluez/template
+++ b/srcpkgs/bluez/template
@@ -18,7 +18,6 @@ distfiles="${KERNEL_SITE}/bluetooth/$pkgname-$version.tar.xz"
 checksum=046b95b386d0bfb2a16311fe799d517ee7735045512d89902c4ed701db477316
 conf_files="/etc/bluetooth/main.conf"
 system_groups="bluetooth"
-patch_args="-Np1"
 
 build_options="mesh nfc experimental"
 
diff --git a/srcpkgs/bolt/template b/srcpkgs/bolt/template
index 20bccb2c3e09..02535303419d 100644
--- a/srcpkgs/bolt/template
+++ b/srcpkgs/bolt/template
@@ -14,7 +14,6 @@ license="LGPL-2.1-or-later"
 homepage="https://gitlab.freedesktop.org/bolt/bolt"
 distfiles="https://gitlab.freedesktop.org/bolt/bolt/-/archive/${version}/bolt-${version}.tar.gz"
 checksum=f938db68df79d0ada135a055fd01204f6f3436e17e962dfb8dc6699de77e1895
-patch_args="-Np1"
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/brotli/template b/srcpkgs/brotli/template
index 12b80d767fda..4e2b48ea88b5 100644
--- a/srcpkgs/brotli/template
+++ b/srcpkgs/brotli/template
@@ -9,7 +9,6 @@ license="MIT"
 homepage="https://github.com/google/brotli"
 distfiles="https://github.com/google/${pkgname}/archive/v${version}.tar.gz"
 checksum=f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46
-patch_args="-p1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/bsd-games/template b/srcpkgs/bsd-games/template
index 6a641a540bb9..600599b2b74c 100644
--- a/srcpkgs/bsd-games/template
+++ b/srcpkgs/bsd-games/template
@@ -35,7 +35,6 @@ mutable_files="/var/games/bsdgames/atc_score
  /var/games/bsdgames/phantasia/monsters
  /var/games/bsdgames/hack/record
  /var/games/bsdgames/hack/perm"
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	local _file _var
diff --git a/srcpkgs/cairo-dock-plugins/template b/srcpkgs/cairo-dock-plugins/template
index 38295ded98c2..32457494a085 100644
--- a/srcpkgs/cairo-dock-plugins/template
+++ b/srcpkgs/cairo-dock-plugins/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://launchpad.net/cairo-dock"
 distfiles="http://launchpad.net/cairo-dock-plug-ins/${version%.?}/${version}/+download/cairo-dock-plug-ins-${version}.tar.gz"
 checksum=e09b8e600398749d1f74b26e645b477a1844a3eea02fcadd6877935da3f8639e
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" python3-devel vala-devel"
diff --git a/srcpkgs/cairo/template b/srcpkgs/cairo/template
index 1e996086f45a..3af5d9914cb2 100644
--- a/srcpkgs/cairo/template
+++ b/srcpkgs/cairo/template
@@ -16,7 +16,6 @@ license="LGPL-2.1-or-later, MPL-1.1"
 homepage="https://cairographics.org"
 distfiles="https://cairographics.org/releases/cairo-${version}.tar.xz"
 checksum=5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331
-patch_args="-Np1"
 
 # Package build options
 build_options="gles2 opengl"
diff --git a/srcpkgs/caribou/template b/srcpkgs/caribou/template
index bf135b75f8b0..15bc2ccae74e 100644
--- a/srcpkgs/caribou/template
+++ b/srcpkgs/caribou/template
@@ -18,7 +18,6 @@ homepage="https://wiki.gnome.org/Projects/Caribou"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=9c43d9f4bd30f4fea7f780d4e8b14f7589107c52e9cb6bd202bd0d1c2064de55
 lib32disabled=yes
-patch_args=-Np1
 
 libcaribou_package() {
 	lib32disabled=yes
diff --git a/srcpkgs/catimg/template b/srcpkgs/catimg/template
index 6fbc5f1d9140..0392d3cfb598 100644
--- a/srcpkgs/catimg/template
+++ b/srcpkgs/catimg/template
@@ -9,7 +9,6 @@ license="MIT"
 homepage="https://github.com/posva/catimg"
 distfiles="https://github.com/posva/catimg/archive/${version}.tar.gz"
 checksum=3a6450316ff62fb07c3facb47ea208bf98f62abd02783e88c56f2a6508035139
-patch_args=-Np1
 CFLAGS="-fcommon"
 
 post_install() {
diff --git a/srcpkgs/cheese/template b/srcpkgs/cheese/template
index e23855c1ed2b..5717d1a4c80c 100644
--- a/srcpkgs/cheese/template
+++ b/srcpkgs/cheese/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Cheese"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=88d2732b421b903110a2628db25c0d61e219c42bdfb5971151033fba95a8d16f
-patch_args="-Np1"
 
 build_options="gir gtk_doc"
 build_options_default="gir"
diff --git a/srcpkgs/chuck/template b/srcpkgs/chuck/template
index 904b5e393b7d..acf5648af53b 100644
--- a/srcpkgs/chuck/template
+++ b/srcpkgs/chuck/template
@@ -16,7 +16,6 @@ changelog="https://chuck.cs.princeton.edu/release/VERSIONS"
 distfiles="http://chuck.cs.princeton.edu/release/files/$pkgname-$version.tgz"
 checksum=11a20c34b385e132bf43d5ae6a562c652f631828cc6b1562a4c029bc9a850ed4
 
-patch_args="-Np1"
 
 post_extract() {
 	# use CC, CXX and LD from environment
diff --git a/srcpkgs/clockspeed/template b/srcpkgs/clockspeed/template
index 04477817415e..685fb3a491e2 100644
--- a/srcpkgs/clockspeed/template
+++ b/srcpkgs/clockspeed/template
@@ -19,7 +19,6 @@ clocksd_groups="nogroup"
 clocksd_homedir="/var/lib/${pkgname}"
 clocksd_descr="User for clockspeed adjustments"
 conf_files="/etc/${pkgname}/${pkgname}.conf"
-patch_args="-p1"
 
 make_dirs="/var/lib/clockspeed/adjust 644 clocksd root"
 
diff --git a/srcpkgs/cmake/template b/srcpkgs/cmake/template
index e9ee3debf3c0..5d3308f93b5d 100644
--- a/srcpkgs/cmake/template
+++ b/srcpkgs/cmake/template
@@ -17,7 +17,6 @@ homepage="https://www.cmake.org"
 distfiles="https://www.cmake.org/files/v${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=4d008ac3461e271fcfac26a05936f77fc7ab64402156fb371d41284851a651b8
 replaces="cmake-bootstrap>=0"
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	build_style=cmake
diff --git a/srcpkgs/crex/template b/srcpkgs/crex/template
index 2f455a0b0c72..d2bc1e536bf8 100644
--- a/srcpkgs/crex/template
+++ b/srcpkgs/crex/template
@@ -9,7 +9,6 @@ license="MIT"
 homepage="https://github.com/octobanana/crex"
 distfiles="https://github.com/octobanana/crex/archive/${version}.tar.gz"
 checksum=c6a166b7a1e696a7babeaf7c5728eece1624704a18357f827129fc95ef2ecc56
-patch_args=-Np1
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/cryfs/template b/srcpkgs/cryfs/template
index 80938f905686..87912c2b7fe7 100644
--- a/srcpkgs/cryfs/template
+++ b/srcpkgs/cryfs/template
@@ -17,7 +17,6 @@ homepage="https://www.cryfs.org"
 changelog="https://github.com/cryfs/cryfs/raw/master/ChangeLog.txt"
 distfiles="https://github.com/cryfs/cryfs/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=004c7fdf537062e197aaa0bcdafd2682904a279802441bb6063cb72c1fba52d2
-patch_args=-Np1
 
 if [ "${XBPS_CHECK_PKGS}" ]; then
 	configure_args+=" -DBUILD_TESTING=on"
diff --git a/srcpkgs/curl/template b/srcpkgs/curl/template
index 8f9026309bfe..d1531465db05 100644
--- a/srcpkgs/curl/template
+++ b/srcpkgs/curl/template
@@ -25,7 +25,6 @@ homepage="https://curl.haxx.se"
 changelog="https://curl.haxx.se/changes.html#${version//./_}"
 distfiles="${homepage}/download/${pkgname}-${version}.tar.bz2"
 checksum=6c0c28868cb82593859fc43b9c8fdb769314c855c05cf1b56b023acf855df8ea
-patch_args="-Np1"
 build_options="gnutls gssapi ldap rtmp ssh ssl zstd"
 build_options_default="ssh ssl zstd"
 vopt_conflict ssl gnutls
diff --git a/srcpkgs/cyrus-sasl/template b/srcpkgs/cyrus-sasl/template
index 5bfe46557991..32bcc8ebc6ba 100644
--- a/srcpkgs/cyrus-sasl/template
+++ b/srcpkgs/cyrus-sasl/template
@@ -22,7 +22,6 @@ license="BSD-3-Clause-Attribution"
 homepage="https://www.cyrusimap.org/sasl/"
 distfiles="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-${version}/cyrus-sasl-${version}.tar.gz"
 checksum=26866b1549b00ffd020f188a43c258017fa1c382b3ddadd8201536f72efb05d5
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/dbus-elogind/template b/srcpkgs/dbus-elogind/template
index e527e8260851..7e92ccf7cd2b 100644
--- a/srcpkgs/dbus-elogind/template
+++ b/srcpkgs/dbus-elogind/template
@@ -24,7 +24,6 @@ checksum=f77620140ecb4cdc67f37fb444f8a6bea70b5b6461f12f1cbe2cec60fa7de5fe
 conf_files="/etc/dbus-1/*.conf"
 replaces="dbus>=0"
 provides="dbus-${version}_${revision}"
-patch_args="-Np1"
 
 # Create dbus:22 system account.
 system_accounts="dbus:22"
diff --git a/srcpkgs/ddgtk/template b/srcpkgs/ddgtk/template
index d5f27bb40934..5d45aeb4a8b9 100644
--- a/srcpkgs/ddgtk/template
+++ b/srcpkgs/ddgtk/template
@@ -11,4 +11,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/gort818/ddgtk"
 distfiles="https://github.com/gort818/ddgtk/archive/${version}.tar.gz"
 checksum=0386336681b24d648cdce3daa0c2b83c77a69773296e97a8427b67cbd27531ed
-patch_args="-Np1"
diff --git a/srcpkgs/deluge/template b/srcpkgs/deluge/template
index e54a8d571817..283fcd62d7fd 100644
--- a/srcpkgs/deluge/template
+++ b/srcpkgs/deluge/template
@@ -15,7 +15,6 @@ license="GPL-3.0-or-later"
 homepage="https://deluge-torrent.org/"
 distfiles="https://ftp.osuosl.org/pub/deluge/source/2.0/deluge-${version}.tar.xz"
 checksum=7e7ae8e6ca2a2bf0d487227cecf81e27332f0b92b567cc2bda38e47d859da891
-patch_args="-Np1"
 
 system_accounts="deluge"
 deluge_homedir="/var/lib/deluge"
diff --git a/srcpkgs/diffr/template b/srcpkgs/diffr/template
index 0bff9a8bfd08..f1e8f096375b 100644
--- a/srcpkgs/diffr/template
+++ b/srcpkgs/diffr/template
@@ -10,7 +10,6 @@ homepage="https://github.com/mookid/diffr"
 changelog="https://github.com/mookid/diffr/raw/master/CHANGELOG.md"
 distfiles="https://github.com/mookid/diffr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=2613b57778df4466a20349ef10b9e022d0017b4aee9a47fb07e78779f444f8cb
-patch_args="-Np1"
 
 do_install() {
 	vbin "target/${RUST_TARGET}/release/diffr"
diff --git a/srcpkgs/docbook2x/template b/srcpkgs/docbook2x/template
index 92233feb030a..b9cfbe848d7f 100644
--- a/srcpkgs/docbook2x/template
+++ b/srcpkgs/docbook2x/template
@@ -2,7 +2,6 @@
 pkgname=docbook2x
 version=0.8.8
 revision=5
-patch_args="-Np1"
 wrksrc="docbook2X-${version}"
 build_style=gnu-configure
 configure_args="--without-resolver-jars --without-saxon-jars --without-xalan-jars"
diff --git a/srcpkgs/efitools/template b/srcpkgs/efitools/template
index 83dc738ccbee..5d26a4208de0 100644
--- a/srcpkgs/efitools/template
+++ b/srcpkgs/efitools/template
@@ -12,7 +12,6 @@ license="GPL-2.0-only"
 homepage="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git"
 distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snapshot/${pkgname}-${version}.tar.gz"
 checksum=0f315b36e7d1ba74bfc97ab9f304f0a3072c47578bbe5e42594acae381f9acfe
-patch_args="-Nup1"
 
 post_patch() {
 	case "${XBPS_TARGET_MACHINE}" in
diff --git a/srcpkgs/efivar/template b/srcpkgs/efivar/template
index ef311f9b3998..39be825fab29 100644
--- a/srcpkgs/efivar/template
+++ b/srcpkgs/efivar/template
@@ -2,7 +2,6 @@
 pkgname=efivar
 version=37
 revision=1
-patch_args="-Np1"
 build_style=gnu-makefile
 hostmakedepends="pkg-config"
 short_desc="Tools to manipulate EFI variables"
diff --git a/srcpkgs/electrum-ltc/template b/srcpkgs/electrum-ltc/template
index a9a629a057e8..d62c43b5fa14 100644
--- a/srcpkgs/electrum-ltc/template
+++ b/srcpkgs/electrum-ltc/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="https://electrum-ltc.org/"
 distfiles="https://github.com/pooler/electrum-ltc/archive/${version}.tar.gz"
 checksum="6f4049abacfdb125b968e841ec9bc01e386e475f3fac8534103ffea1257b0f0f"
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENCE
diff --git a/srcpkgs/embree/template b/srcpkgs/embree/template
index 849ec3c26c1d..575b9bcb401c 100644
--- a/srcpkgs/embree/template
+++ b/srcpkgs/embree/template
@@ -14,7 +14,6 @@ license="Apache-2.0"
 homepage="https://embree.github.io/"
 distfiles="https://github.com/$pkgname/$pkgname/archive/v$version.tar.gz"
 checksum=c0694f287fa1fbb382aba3a895702e248d92f7e89c0e5f64aefee965482ec04c
-patch_args=-Np1
 
 embree-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/empathy/template b/srcpkgs/empathy/template
index 1c70413842b3..dcbd10cc0c1d 100644
--- a/srcpkgs/empathy/template
+++ b/srcpkgs/empathy/template
@@ -25,7 +25,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://live.gnome.org/Empathy"
 distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
 checksum=7d86942ce97edd10ade0e6ae6a210d35e4d627fe4d223377d71fd1840bc6e3a3
-patch_args=-Np1
 disable_parallel_build=yes
 # Disable checks, the only work with an irc server in place.
 make_check=no
diff --git a/srcpkgs/enchant/template b/srcpkgs/enchant/template
index bc7ca9e5239d..69458ae39180 100644
--- a/srcpkgs/enchant/template
+++ b/srcpkgs/enchant/template
@@ -13,7 +13,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.abisource.com/projects/enchant/"
 distfiles="http://www.abisource.com/downloads/enchant/${version}/enchant-${version}.tar.gz"
 checksum=2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ettercap/template b/srcpkgs/ettercap/template
index 611b4e9aded7..ce206d8bdaf0 100644
--- a/srcpkgs/ettercap/template
+++ b/srcpkgs/ettercap/template
@@ -15,7 +15,6 @@ homepage="http://ettercap.github.com/ettercap/"
 distfiles="https://github.com/Ettercap/ettercap/archive/v${version}.tar.gz"
 checksum=d0c3ef88dfc284b61d3d5b64d946c1160fd04276b448519c1ae4438a9cdffaf3
 lib32disabled=yes
-patch_args=-Np1
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/exempi/template b/srcpkgs/exempi/template
index 3925ca272300..14753617953a 100644
--- a/srcpkgs/exempi/template
+++ b/srcpkgs/exempi/template
@@ -2,7 +2,6 @@
 pkgname=exempi
 version=2.5.0
 revision=1
-patch_args="-Np1"
 build_style=gnu-configure
 configure_args="--with-boost=${XBPS_CROSS_BASE}/usr --disable-static --disable-unittest"
 makedepends="zlib-devel expat-devel boost-devel"
diff --git a/srcpkgs/ext4magic/template b/srcpkgs/ext4magic/template
index 0d7ed70cf107..fe570a962647 100644
--- a/srcpkgs/ext4magic/template
+++ b/srcpkgs/ext4magic/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="http://sourceforge.net/projects/ext4magic/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=8d9c6a594f212aecf4eb5410d277caeaea3adc03d35378257dfd017ef20ea115
-patch_args="-Np1"
 
 CFLAGS='-DHAVE_SYS_TYPES_H'
 post_extract() {
diff --git a/srcpkgs/fbset/template b/srcpkgs/fbset/template
index 22c51fae0eb7..67a18dee57be 100644
--- a/srcpkgs/fbset/template
+++ b/srcpkgs/fbset/template
@@ -11,7 +11,6 @@ license="GPL-2.0-only"
 homepage="http://users.telenet.be/geertu/Linux/fbdev/"
 distfiles="${DEBIAN_SITE}/main/f/fbset/fbset_${version}.orig.tar.gz"
 checksum=517fa062d7b2d367f931a1c6ebb2bef84907077f0ce3f0c899e34490bbea9338
-patch_args="-Np1"
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/fcitx5-anthy/template b/srcpkgs/fcitx5-anthy/template
index d0f9ab1d735c..5ec150b4ce75 100644
--- a/srcpkgs/fcitx5-anthy/template
+++ b/srcpkgs/fcitx5-anthy/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="https://fcitx-im.org/wiki/Fcitx"
 distfiles="https://download.fcitx-im.org/fcitx5/fcitx5-anthy/fcitx5-anthy-${version}.tar.xz"
 checksum=22364003e737cbe4ea6eaa83d9d274a8df8e38dea61d8f4576560ee7d5eaf44d
-patch_args=-Np1
 
 fcitx5-anthy-icons_package() {
 	short_desc+=" - icons"
diff --git a/srcpkgs/fcitx5-qt/template b/srcpkgs/fcitx5-qt/template
index 0d3dd57ed9b4..73796e6e8762 100644
--- a/srcpkgs/fcitx5-qt/template
+++ b/srcpkgs/fcitx5-qt/template
@@ -16,7 +16,6 @@ homepage="https://fcitx-im.org/wiki/Fcitx"
 distfiles="https://download.fcitx-im.org/fcitx5/fcitx5-qt/fcitx5-qt-${version}.tar.xz"
 checksum=c954d20bc4e332c0977639dc579bd641a6860926bfd0efe62bc13ee02b43e872
 lib32disabled=yes
-patch_args=-Np1
 
 if [ "$XBPS_TARGET_NOATOMIC8" ]; then
 	configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
diff --git a/srcpkgs/fcitx5/template b/srcpkgs/fcitx5/template
index db13f6ba807c..daedc89f5b3e 100644
--- a/srcpkgs/fcitx5/template
+++ b/srcpkgs/fcitx5/template
@@ -23,7 +23,6 @@ distfiles="https://download.fcitx-im.org/fcitx5/fcitx5/fcitx5-${version}.tar.xz
  https://download.fcitx-im.org/data/en_dict-${_en_dict_ver}.tar.gz"
 checksum="0ecf6cc763952ff3cbe6bd47d6e40f3f7987a4973547251af3cd1482f33c516f
  c44a5d7847925eea9e4d2d04748d442cd28dd9299a0b572ef7d91eac4f5a6ceb"
-patch_args=-Np1
 skip_extraction=en_dict-${_en_dict_ver}.tar.gz
 lib32disabled=yes
 
diff --git a/srcpkgs/firebird3/template b/srcpkgs/firebird3/template
index a84cc7ef9234..5675ac663073 100644
--- a/srcpkgs/firebird3/template
+++ b/srcpkgs/firebird3/template
@@ -36,7 +36,6 @@ homepage="https://www.firebirdsql.org/en/start/"
 distfiles="https://github.com/FirebirdSQL/firebird/releases/download/R${_uver%_*}/Firebird-${version}-${_build}.tar.bz2"
 checksum=34c1d2a29bbaf288e682cd1b5f8083f2baf73f351062245ace0bee35a3f7d35f
 replaces="firebird>=0"
-patch_args="-Np1"
 nocross="Fails to build gpre_boot for host but builds for target"
 
 CFLAGS="-fno-strict-aliasing"
diff --git a/srcpkgs/flac/template b/srcpkgs/flac/template
index 8166b9f00655..78d111c2e244 100644
--- a/srcpkgs/flac/template
+++ b/srcpkgs/flac/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause, GPL-2.0-or-later"
 homepage="http://flac.sourceforge.net/"
 distfiles="https://downloads.xiph.org/releases/flac/flac-${version}.tar.xz"
 checksum=213e82bd716c9de6db2f98bcadbc4c24c7e2efe8c75939a1a84e28539c4e1748
-patch_args="-Np1"
 # the tests fail when run as root and as such break in the CI containers
 make_check=ci-skip
 
diff --git a/srcpkgs/flann/template b/srcpkgs/flann/template
index 055c935a0cbb..af43cccd7808 100644
--- a/srcpkgs/flann/template
+++ b/srcpkgs/flann/template
@@ -2,7 +2,6 @@
 pkgname=flann
 version=1.9.1
 revision=4
-patch_args="-Np1"
 build_style=cmake
 makedepends="gtest-devel hdf5-devel"
 short_desc="Fast library for approximate nearest neighbors"
diff --git a/srcpkgs/fonttosfnt/template b/srcpkgs/fonttosfnt/template
index 1a85e32029eb..643173ceb6c1 100644
--- a/srcpkgs/fonttosfnt/template
+++ b/srcpkgs/fonttosfnt/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.bz2"
 checksum=1a1bb4ef25856dea7de3d491ae7231493225b400bee0f6a1f949017ffd203a64
-patch_args="-Np1"
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/fortune-mod/template b/srcpkgs/fortune-mod/template
index 27824c3617e3..59f0aa805009 100644
--- a/srcpkgs/fortune-mod/template
+++ b/srcpkgs/fortune-mod/template
@@ -10,7 +10,6 @@ license="BSD-4-Clause-UC"
 homepage="http://www.redellipse.net/code/fortune"
 distfiles="${DEBIAN_SITE}/main/f/fortune-mod/${pkgname}_${version}.orig.tar.gz"
 checksum=fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" fortune-mod"
diff --git a/srcpkgs/fwupd/template b/srcpkgs/fwupd/template
index b0828273d2f0..6e6612d9bfd9 100644
--- a/srcpkgs/fwupd/template
+++ b/srcpkgs/fwupd/template
@@ -29,7 +29,6 @@ homepage="https://github.com/hughsie/fwupd"
 distfiles="https://github.com/hughsie/fwupd/archive/${version}.tar.gz"
 checksum=4abecf930f02fc5b165831682f3915cc7f0e82e73be2e187e761220ae275a1a3
 replaces="fwupdate>=0"
-patch_args=-Np1
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|i686*)
diff --git a/srcpkgs/gcc6/template b/srcpkgs/gcc6/template
index 352ae9bbff52..88d4f729675b 100644
--- a/srcpkgs/gcc6/template
+++ b/srcpkgs/gcc6/template
@@ -25,7 +25,6 @@ checksum="
 skip_extraction="ecj-4.9.jar"
 nopie=yes
 lib32disabled=yes
-patch_args="-Np1"
 nocross=yes
 python_version=2 #unverified
 
diff --git a/srcpkgs/gdb/template b/srcpkgs/gdb/template
index 9648e927efad..56c0e01630b5 100644
--- a/srcpkgs/gdb/template
+++ b/srcpkgs/gdb/template
@@ -21,7 +21,6 @@ homepage="https://www.gnu.org/software/gdb/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=aaa1223d534c9b700a8bec952d9748ee1977513f178727e1bee520ee000b4f29
 python_version=3
-patch_args="-Np1"
 
 if [ "${CROSS_BUILD}" ]; then
 	# Make python3.x detection work in cross builds
diff --git a/srcpkgs/geeqie/template b/srcpkgs/geeqie/template
index d7fa37a384d3..f3ac2cd2859a 100644
--- a/srcpkgs/geeqie/template
+++ b/srcpkgs/geeqie/template
@@ -15,7 +15,6 @@ homepage="http://www.geeqie.org"
 changelog="http://www.geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=blob_plain;f=NEWS;hb=HEAD"
 distfiles="http://www.geeqie.org/geeqie-${version}.tar.xz"
 checksum="48f8a4474454d182353100e43878754b76227f3b8f30cfc258afc9d90a4e1920"
-patch_args="-Np1"
 
 CFLAGS="-Wno-error -fcommon"
 
diff --git a/srcpkgs/gettext/template b/srcpkgs/gettext/template
index 3c8250b976be..3cece9b46621 100644
--- a/srcpkgs/gettext/template
+++ b/srcpkgs/gettext/template
@@ -22,7 +22,6 @@ homepage="https://www.gnu.org/software/gettext/"
 changelog="https://git.savannah.gnu.org/cgit/gettext.git/plain/NEWS"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c77d0da3102aec9c07f43671e60611ebff89a996ef159497ce8e59d075786b12
-patch_args=-Np1
 
 subpackages="gettext-devel-examples gettext-devel gettext-devel-tools"
 unset _intl_lib
diff --git a/srcpkgs/ghc/template b/srcpkgs/ghc/template
index 0b1440b2f6d9..082c56f70358 100644
--- a/srcpkgs/ghc/template
+++ b/srcpkgs/ghc/template
@@ -15,7 +15,6 @@ license="BSD-3-Clause"
 homepage="http://www.haskell.org/ghc/"
 distfiles="http://www.haskell.org/ghc/dist/${version%[!0-9]}/${pkgname}-${version%[!0-9]}-src.tar.xz"
 checksum=f0505e38b2235ff9f1090b51f44d6c8efd371068e5a6bb42a2a6d8b67b5ffc2d
-patch_args="-Np1"
 nocross=yes # this is conditionally unset for cross bindist
 nodebug=yes # work around assembler error "Fatal error: duplicate .debug_line sections"
 _bindir="/usr/lib/${pkgname}-${version}/bin"
diff --git a/srcpkgs/ghdl/template b/srcpkgs/ghdl/template
index 1b6f0d50e327..e756d8c3cd87 100644
--- a/srcpkgs/ghdl/template
+++ b/srcpkgs/ghdl/template
@@ -18,7 +18,6 @@ homepage="https://github.com/ghdl/ghdl"
 distfiles="https://github.com/ghdl/ghdl/archive/v${version}.tar.gz"
 checksum=cb424766fbe831ff41bec84016a6af0406d735c272b0b639d507c3503df30495
 nocross=yes
-patch_args="-Np1"
 make_check=extended
 
 build_options="llvm mcode"
diff --git a/srcpkgs/ghostscript/template b/srcpkgs/ghostscript/template
index 1d7aed4dc834..5f1b5b7b64e3 100644
--- a/srcpkgs/ghostscript/template
+++ b/srcpkgs/ghostscript/template
@@ -12,7 +12,6 @@ license="AGPL-3.0-or-later, CPL-1.0"
 homepage="https://www.ghostscript.com/"
 distfiles="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${version//./}/ghostscript-${version}.tar.xz"
 checksum=c2b7b43cde600f4e70efb2cd95865f6d884a67315c3de235914697d8ccde6e3b
-patch_args="-Np1"
 
 build_options="cups"
 build_options_default="cups"
diff --git a/srcpkgs/gjs/template b/srcpkgs/gjs/template
index 27e376b4d092..4d73ae96b599 100644
--- a/srcpkgs/gjs/template
+++ b/srcpkgs/gjs/template
@@ -15,7 +15,6 @@ homepage="https://wiki.gnome.org/action/show/Projects/Gjs"
 changelog="https://gitlab.gnome.org/GNOME/gjs/blob/gnome-3-30/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=2ffa3ec2041104fcf9ab5dcc8f7cd9caa062278590318ffef9541956af5b4c70
-patch_args="-Np1"
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index b361bb98a1ea..c62a4d2aedf1 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -9,7 +9,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
 homepage="http://www.gnu.org/software/libc"
 distfiles="${GNU_SITE}/glibc/glibc-${version}.tar.xz"
 checksum=1627ea54f5a1a8467032563393e0901077626dc66f37f10ee6363bb722222836
-patch_args="-Np1"
 # Do not strip these files, objcopy errors out.
 nostrip_files="
 	XBS5_ILP32_OFFBIG
diff --git a/srcpkgs/glm/template b/srcpkgs/glm/template
index 47369d94e0da..f40f6fcf8fae 100644
--- a/srcpkgs/glm/template
+++ b/srcpkgs/glm/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="http://glm.g-truc.net"
 distfiles="https://github.com/g-truc/glm/releases/download/${version}/glm-${version}.zip"
 checksum=37e2a3d62ea3322e43593c34bae29f57e3e251ea89f4067506c94043769ade4c
-patch_args="-Np1"
 
 # No longer has install target
 # Install manually
diff --git a/srcpkgs/glu/template b/srcpkgs/glu/template
index b655d49fe569..49d8c41d9488 100644
--- a/srcpkgs/glu/template
+++ b/srcpkgs/glu/template
@@ -13,7 +13,6 @@ homepage="http://cgit.freedesktop.org/mesa/glu/"
 distfiles="https://mesa.freedesktop.org/archive/glu/glu-${version}.tar.gz"
 checksum=f6f484cfcd51e489afe88031afdea1e173aa652697e4c19ddbcb8260579a10f7
 replaces="libGLU<9.0"
-patch_args="-Np1"
 
 glu-devel_package() {
 	depends="MesaLib-devel>=9.0 glu>=${version}_${revision}"
diff --git a/srcpkgs/gnac/template b/srcpkgs/gnac/template
index 489783bdd850..ad01a1e97f91 100644
--- a/srcpkgs/gnac/template
+++ b/srcpkgs/gnac/template
@@ -18,7 +18,6 @@ license="GPL-3.0-or-later"
 homepage="http://gnac.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=8f9c4731bbc40fde57c311a2a7fabe4e3200198abfe7415c659b98a2d54869da
-patch_args="-Np1"
 CFLAGS="-fPIC -fcommon"
 
 pre_configure() {
diff --git a/srcpkgs/gnome-builder/template b/srcpkgs/gnome-builder/template
index a9011a5c7f80..ad0cc8cc6f20 100644
--- a/srcpkgs/gnome-builder/template
+++ b/srcpkgs/gnome-builder/template
@@ -21,7 +21,6 @@ homepage="https://wiki.gnome.org/Apps/Builder"
 changelog="https://gitlab.gnome.org/GNOME/gnome-builder/raw/gnome-builder-3-40/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=b2844cfde821311939fb6ed3b18a49cd331413aea720393091583ab6a99e719a
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)
diff --git a/srcpkgs/gnome-doc-utils/template b/srcpkgs/gnome-doc-utils/template
index f846f0e61253..8c55060aa4ae 100644
--- a/srcpkgs/gnome-doc-utils/template
+++ b/srcpkgs/gnome-doc-utils/template
@@ -15,7 +15,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Projects/GnomeDocUtils"
 distfiles="${GNOME_SITE}/${pkgname}/0.20/${pkgname}-${version}.tar.xz"
 checksum=cb0639ffa9550b6ddf3b62f3b1add92fb92ab4690d351f2353cffe668be8c4a6
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/gnome-panel/template b/srcpkgs/gnome-panel/template
index 315d4fc1f468..109489d8bba7 100644
--- a/srcpkgs/gnome-panel/template
+++ b/srcpkgs/gnome-panel/template
@@ -15,7 +15,6 @@ license="GPL-2.0-or-later, GFDL-1.1-or-later, LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Projects/GnomePanel"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=9f135075edc666cf2b9ca91de35c6703e2b1771c10a7707414fb656c28a59b3b
-patch_args="-Np1"
 
 gnome-panel-devel_package() {
 	depends="glib-devel gtk+3-devel ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/gnome-todo/template b/srcpkgs/gnome-todo/template
index 56bd6a405af2..5fe6d1d7bc84 100644
--- a/srcpkgs/gnome-todo/template
+++ b/srcpkgs/gnome-todo/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Todo"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=c7571fc040d8901dd0e528282ef0655687f23f29d304057c72548ab3e2c2cf23
-patch_args="-Np1"
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/gobject-introspection/template b/srcpkgs/gobject-introspection/template
index c6e616dd862f..6f8bffd88d22 100644
--- a/srcpkgs/gobject-introspection/template
+++ b/srcpkgs/gobject-introspection/template
@@ -15,7 +15,6 @@ homepage="https://wiki.gnome.org/Projects/GObjectIntrospection"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=d229242481a201b84a0c66716de1752bca41db4133672cfcfb37c93eb6e54a27
 python_version=3
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" gobject-introspection qemu-user-static prelink-cross"
diff --git a/srcpkgs/gpicview/template b/srcpkgs/gpicview/template
index 24ae856fa344..19de5b5cb1e8 100644
--- a/srcpkgs/gpicview/template
+++ b/srcpkgs/gpicview/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=38466058e53702450e5899193c4b264339959b563dd5cd81f6f690de32d82942
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/graphene/template b/srcpkgs/graphene/template
index 83bb559df998..40920cb1f5b7 100644
--- a/srcpkgs/graphene/template
+++ b/srcpkgs/graphene/template
@@ -14,7 +14,6 @@ license="MIT"
 homepage="https://github.com/ebassi/graphene"
 distfiles="${GNOME_SITE}/graphene/${version%.*}/graphene-${version}.tar.xz"
 checksum=80ae57723e4608e6875626a88aaa6f56dd25df75024bd16e9d77e718c3560b25
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) configure_args+=" -Dsse2=true" ;;
diff --git a/srcpkgs/growlight/template b/srcpkgs/growlight/template
index 863c318d4081..cc8ac363ec6f 100644
--- a/srcpkgs/growlight/template
+++ b/srcpkgs/growlight/template
@@ -15,7 +15,6 @@ license="GPL-3.0-or-later"
 homepage="https://nick-black.com/dankwiki/index.php/Growlight"
 distfiles="https://github.com/dankamongmen/growlight/archive/v${version}.tar.gz"
 checksum=ef26904412ff6134018c350fe9e1f943d37fb82a623d06327195f9bd2b939408
-patch_args=-Np1
 
 build_options="man zfs"
 
diff --git a/srcpkgs/grub-btrfs/template b/srcpkgs/grub-btrfs/template
index 2527806d6999..0e646c9c3f82 100644
--- a/srcpkgs/grub-btrfs/template
+++ b/srcpkgs/grub-btrfs/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/Antynea/grub-btrfs"
 distfiles="https://github.com/Antynea/grub-btrfs/archive/v${version}.tar.gz"
 checksum=62461133c697643e98a608239773f500edee3e4055c5729fef6639d1cd610243
-patch_args=-Np1
 
 post_install() {
 	rm -rf -- "${DESTDIR}"/usr/lib/systemd
diff --git a/srcpkgs/grub/template b/srcpkgs/grub/template
index 11cbdc495f67..69cea9ae19a3 100644
--- a/srcpkgs/grub/template
+++ b/srcpkgs/grub/template
@@ -16,7 +16,6 @@ checksum=e5292496995ad42dabe843a0192cf2a2c502e7ffcc7479398232b10a472df77d
 
 archs="i686* x86_64* aarch64* ppc ppc-musl ppc64*"
 nopie=yes
-patch_args=-Np1
 
 subpackages="grub-utils"
 # _SUPPLEMENTARY_BUILDS is a list of <TARGET>-<PLATFORN> version of grub to build
diff --git a/srcpkgs/gsimplecal-gtk2/template b/srcpkgs/gsimplecal-gtk2/template
index c7339f62d60e..73cf3bd39b88 100644
--- a/srcpkgs/gsimplecal-gtk2/template
+++ b/srcpkgs/gsimplecal-gtk2/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause"
 homepage="http://dmedvinsky.github.io/gsimplecal/"
 distfiles="https://github.com/dmedvinsky/${pkgname%-*}/archive/v${version}.tar.gz"
 checksum="660cac7333d3507203a008e142e2b8f5dfcf0735b6ccabdd8d3d902b5d2c40e9"
-patch_args=-Np1
 
 replaces="gsimplecal-gtk3>=0"
 
diff --git a/srcpkgs/gtk-doc/template b/srcpkgs/gtk-doc/template
index 9f3384a60472..ab149d7f33d5 100644
--- a/srcpkgs/gtk-doc/template
+++ b/srcpkgs/gtk-doc/template
@@ -17,4 +17,3 @@ homepage="http://www.gtk.org/gtk-doc/"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=d5e3b3f837174d246fa8482455740627efec1e5210aa15d0c7989ca68f72bb51
 python_version=3
-patch_args="-Np1"
diff --git a/srcpkgs/hostapd/template b/srcpkgs/hostapd/template
index 20e16a32fc0f..87cf12033e40 100644
--- a/srcpkgs/hostapd/template
+++ b/srcpkgs/hostapd/template
@@ -12,7 +12,6 @@ license="BSD-3-Clause"
 homepage="http://w1.fi/hostapd/"
 distfiles="http://w1.fi/releases/${pkgname}-${version}.tar.gz"
 checksum=881d7d6a90b2428479288d64233151448f8990ab4958e0ecaca7eeb3c9db2bd7
-patch_args=-Np1
 
 do_configure() {
 	cp -f ${FILESDIR}/config .config
diff --git a/srcpkgs/ifstatus/template b/srcpkgs/ifstatus/template
index f1e9d9f4d802..2515a71d669a 100644
--- a/srcpkgs/ifstatus/template
+++ b/srcpkgs/ifstatus/template
@@ -4,7 +4,6 @@ version=2.0.0
 revision=1
 wrksrc=ifstatus-v${version}
 build_style=gnu-makefile
-patch_args="-Np1"
 hostmakedepends="pkg-config"
 makedepends="ncurses-devel"
 short_desc="Display network traffic on console"
diff --git a/srcpkgs/iio-sensor-proxy/template b/srcpkgs/iio-sensor-proxy/template
index e8cff0494b99..a47ca09e8b2d 100644
--- a/srcpkgs/iio-sensor-proxy/template
+++ b/srcpkgs/iio-sensor-proxy/template
@@ -11,7 +11,6 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.freedesktop.org/hadess/iio-sensor-proxy"
 distfiles="${homepage}/-/archive/${version}/${pkgname}-${version}.tar.gz"
 checksum=77f6009050afcabdf324b187992c33c6f1d937fc9e2c18ec76d9120fa107f3ba
-patch_args="-Np1"
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/incron/template b/srcpkgs/incron/template
index cd7e3f34eaed..22082e501061 100644
--- a/srcpkgs/incron/template
+++ b/srcpkgs/incron/template
@@ -8,7 +8,6 @@ license="X11"
 homepage="https://github.com/ar-/incron"
 distfiles="https://github.com/ar-/incron/archive/${version}.tar.gz"
 checksum=cce80bd723bafce59f35464f2f851d02707e32efa102e2b941ed0e42bdd38f91
-patch_args="-Np1"
 
 make_dirs="/var/spool/incron 0755 root root
  /etc/incron.d 0755 root root"
diff --git a/srcpkgs/inkscape/template b/srcpkgs/inkscape/template
index 6e97a43a4ed5..84d99227e745 100644
--- a/srcpkgs/inkscape/template
+++ b/srcpkgs/inkscape/template
@@ -23,7 +23,6 @@ homepage="http://inkscape.org/"
 distfiles="https://media.inkscape.org/dl/resources/file/inkscape-${version}.tar.xz"
 checksum=71e6e8ce3fdf702f59dbc4a276665eb982eb7822b029bbdbeced2df4301795e6
 python_version=3
-patch_args=-Np1
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/interbench/template b/srcpkgs/interbench/template
index 26a7f9e41d27..ae38e3ca9561 100644
--- a/srcpkgs/interbench/template
+++ b/srcpkgs/interbench/template
@@ -10,7 +10,6 @@ homepage="http://users.on.net/~ckolivas/interbench"
 distfiles="http://ck.kolivas.org/apps/interbench/$pkgname-$version.tar.bz2"
 checksum=89d438b28aef22d26e79812762a57a9f9344a8dd8826edebfe60dad48ee1c784
 
-patch_args="-p1"
 
 pre_build() {
 	cp $FILESDIR/Makefile .
diff --git a/srcpkgs/ispc/template b/srcpkgs/ispc/template
index 585115923c0d..9c3acb42a9cf 100644
--- a/srcpkgs/ispc/template
+++ b/srcpkgs/ispc/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause"
 homepage="https://ispc.github.io"
 distfiles="https://github.com/ispc/ispc/archive/v${version}.tar.gz"
 checksum=2658ff00dc045ac9fcefbf6bd26dffaf723b059a942a27df91bbb61bc503a285
-patch_args="-p1"
 nocross=yes
 nopie=yes
 
diff --git a/srcpkgs/jasper/template b/srcpkgs/jasper/template
index ae02985e45d0..588dc517f017 100644
--- a/srcpkgs/jasper/template
+++ b/srcpkgs/jasper/template
@@ -12,7 +12,6 @@ license="JasPer-2.0"
 homepage="http://www.ece.uvic.ca/~mdadams/jasper"
 distfiles="https://github.com/mdadams/jasper/archive/version-${version}.tar.gz"
 checksum=f5bc48e2884bcabd2aca1737baff4ca962ec665b6eb673966ced1f7adea07edb
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/json-c/template b/srcpkgs/json-c/template
index 02e4d9d75ca0..daafc44f97ac 100644
--- a/srcpkgs/json-c/template
+++ b/srcpkgs/json-c/template
@@ -12,7 +12,6 @@ license="MIT"
 homepage="https://json-c.github.io/json-c"
 distfiles="https://s3.amazonaws.com/json-c_releases/releases/${pkgname}-${version}.tar.gz"
 checksum=b8d80a1ddb718b3ba7492916237bbf86609e9709fb007e7f7d4322f02341a4c6
-patch_args="-Np1"
 
 CFLAGS="-Wno-error"
 
diff --git a/srcpkgs/judy/template b/srcpkgs/judy/template
index 15bdb3548fa4..899c7a7622c6 100644
--- a/srcpkgs/judy/template
+++ b/srcpkgs/judy/template
@@ -11,7 +11,6 @@ homepage="http://judy.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/judy/Judy-${version}.tar.gz"
 checksum=d2704089f85fdb6f2cd7e77be21170ced4b4375c03ef1ad4cf1075bd414a63eb
 disable_parallel_build=yes
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 post_extract() {
diff --git a/srcpkgs/julia/template b/srcpkgs/julia/template
index 414e261e1c67..0e766ca53906 100644
--- a/srcpkgs/julia/template
+++ b/srcpkgs/julia/template
@@ -30,7 +30,6 @@ license="MIT"
 homepage="https://julialang.org"
 distfiles="https://github.com/JuliaLang/julia/releases/download/v${version}/julia-${version}-full.tar.gz"
 checksum=71d8e40611361370654e8934c407b2dec04944cf3917c5ecb6482d6b85ed767f
-patch_args=-Np1
 nocross="build system is a mess"
 # Targets for the vendored symlinks mentioned above
 shlib_requires="libgit2.so.1.0 libcurl.so.4 libmpfr.so.6 libgmp.so.10
diff --git a/srcpkgs/kakasi/template b/srcpkgs/kakasi/template
index 1a4bc42eb4f4..ad0fcbcc8fac 100644
--- a/srcpkgs/kakasi/template
+++ b/srcpkgs/kakasi/template
@@ -10,7 +10,6 @@ license="GPL-2.0-or-later"
 homepage="http://kakasi.namazu.org/"
 distfiles="http://kakasi.namazu.org/stable/kakasi-${version}.tar.gz"
 checksum=004276fd5619c003f514822d82d14ae83cd45fb9338e0cb56a44974b44961893
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" kakasi"
diff --git a/srcpkgs/kitty/template b/srcpkgs/kitty/template
index 5a8dcc8b4fb8..6ad4cffa0777 100644
--- a/srcpkgs/kitty/template
+++ b/srcpkgs/kitty/template
@@ -14,7 +14,6 @@ homepage="https://sw.kovidgoyal.net/kitty/"
 changelog="https://sw.kovidgoyal.net/kitty/changelog.html"
 distfiles="https://github.com/kovidgoyal/kitty/releases/download/v${version}/kitty-${version}.tar.xz"
 checksum=43596a1c5645fe476e96e748bb3b44afd680d84b4af409cd36b33de19b31933d
-patch_args="-Np1"
 python_version=3
 LDFLAGS+=" -Wl,-z,stack-size=2097152"
 
diff --git a/srcpkgs/kmymoney/template b/srcpkgs/kmymoney/template
index 3b7e889f93a8..7a95dd99ae13 100644
--- a/srcpkgs/kmymoney/template
+++ b/srcpkgs/kmymoney/template
@@ -19,7 +19,6 @@ license="GPL-2.0-or-later"
 homepage="https://kmymoney.org"
 distfiles="${KDE_SITE}/kmymoney/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=df7b9f78e8596f99d28295ca738708f0655ee057789dfd921c7b1bab96578298
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DENABLE_LIBICAL=0"
diff --git a/srcpkgs/kodi-rpi/template b/srcpkgs/kodi-rpi/template
index fc0fbd05ffba..d92a4f6217d8 100644
--- a/srcpkgs/kodi-rpi/template
+++ b/srcpkgs/kodi-rpi/template
@@ -13,7 +13,6 @@ distfiles="https://github.com/xbmc/xbmc/archive/${version}-${_codename}.tar.gz"
 checksum=6deb28f725880b1ab6c5920b55ef1190a79b0684ffb30b6e13b199d23a0af296
 LDFLAGS+=" -Wl,-z,stack-size=1048576"
 python_version=2
-patch_args="-Np1"
 
 nopie=yes
 archs="armv6l* armv7l*"
diff --git a/srcpkgs/kodi/template b/srcpkgs/kodi/template
index c64d926eb010..8f10f4f04887 100644
--- a/srcpkgs/kodi/template
+++ b/srcpkgs/kodi/template
@@ -33,7 +33,6 @@ checksum+=" 071e414e61b795f2ff9015b21a85fc009dde967f27780d23092643916538a57a"
 skip_extraction="crossguid-8f399e8bd4.tar.gz libdvdcss-1.4.2-Leia-Beta-5.tar.gz
  libdvdread-6.0.0-Leia-Alpha-3.tar.gz libdvdnav-6.0.0-Leia-Alpha-3.tar.gz"
 python_version=3
-patch_args="-Np1"
 LDFLAGS="-Wl,-z,stack-size=1048576"
 
 if [ "$XBPS_WORDSIZE" = 32 ]; then
diff --git a/srcpkgs/kreport/template b/srcpkgs/kreport/template
index 2dade86a8f47..af0a9d8509b0 100644
--- a/srcpkgs/kreport/template
+++ b/srcpkgs/kreport/template
@@ -12,7 +12,6 @@ license="LGPL-2.0-or-later"
 homepage="https://community.kde.org/KReport"
 distfiles="${KDE_SITE}/kreport/src/kreport-${version}.tar.xz"
 checksum=22716d719654e8f887fe4d33654e252ddf3d3d818c44e15a8af0e6f2e7d6ccd7
-patch_args=-Np1
 
 kreport-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision} kproperty-devel qt5-declarative-devel"
diff --git a/srcpkgs/kwin/template b/srcpkgs/kwin/template
index 7cb252b2d00b..23cf78df1ff1 100644
--- a/srcpkgs/kwin/template
+++ b/srcpkgs/kwin/template
@@ -19,7 +19,6 @@ license="GPL-2.0-or-later"
 homepage="https://invent.kde.org/plasma/kwin"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=5506ee878e151734893bbcc0a70d6499c894b8986488c9c57285de1deb422850
-patch_args=-Np1
 
 build_options="pipewire"
 build_options_default="pipewire"
diff --git a/srcpkgs/libbaseencode/template b/srcpkgs/libbaseencode/template
index d5929ad7bb51..1c9299b1beae 100644
--- a/srcpkgs/libbaseencode/template
+++ b/srcpkgs/libbaseencode/template
@@ -9,7 +9,6 @@ license="Apache-2.0"
 homepage="https://github.com/paolostivanin/libbaseencode"
 distfiles="https://github.com/paolostivanin/libbaseencode/archive/v${version}.tar.gz"
 checksum=a183d7cf30d931b2a078d6f0ef64616b71ab26f9258e5f4e191778c7ace7175d
-patch_args=-Np1
 
 libbaseencode-devel_package() {
 	depends="libbaseencode-${version}_${revision}"
diff --git a/srcpkgs/libcotp/template b/srcpkgs/libcotp/template
index 88337290d1e8..9e147ff7deb6 100644
--- a/srcpkgs/libcotp/template
+++ b/srcpkgs/libcotp/template
@@ -11,7 +11,6 @@ license="Apache-2.0"
 homepage="https://github.com/paolostivanin/libcotp"
 distfiles="https://github.com/paolostivanin/libcotp/archive/v${version}.tar.gz"
 checksum=25b45ffa4aece5cc689503ebea7356a2f760c194f0c41805934495d2fe7165b1
-patch_args=-Np1
 
 libcotp-devel_package() {
 	depends="libcotp-${version}_${revision}"
diff --git a/srcpkgs/libextractor/template b/srcpkgs/libextractor/template
index 884dbd8c09e8..29d5b8df01f8 100644
--- a/srcpkgs/libextractor/template
+++ b/srcpkgs/libextractor/template
@@ -14,7 +14,6 @@ license="GPL-3.0-or-later"
 homepage="https://www.gnu.org/software/libextractor/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=16f633ab8746a38547c4a1da3f4591192b0825ad83c4336f0575b85843d8bd8f
-patch_args="-Np1"
 
 post_install() {
 	sed -i "s|\(-specs=.*hardened-ld\)||g" ${DESTDIR}/usr/lib/pkgconfig/libextractor.pc
diff --git a/srcpkgs/libfcitx-qt5/template b/srcpkgs/libfcitx-qt5/template
index 057259b40232..c519a3b617bc 100644
--- a/srcpkgs/libfcitx-qt5/template
+++ b/srcpkgs/libfcitx-qt5/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
 homepage="https://fcitx-im.org/"
 distfiles="http://download.fcitx-im.org/fcitx-qt5/fcitx-qt5-${version}.tar.xz"
 checksum=e5c3ccdf406c19bde48ab5f59ac208967c3ca4f520626cdb66baf63f6160d946
-patch_args=-Np1
 
 post_install() {
 	vlicense COPYING.BSD
diff --git a/srcpkgs/libgcrypt/template b/srcpkgs/libgcrypt/template
index 3a6032d6cc6c..e466a315e7f3 100644
--- a/srcpkgs/libgcrypt/template
+++ b/srcpkgs/libgcrypt/template
@@ -11,7 +11,6 @@ license="LGPL-2.1-or-later"
 homepage="https://www.gnupg.org"
 distfiles="https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${version}.tar.bz2"
 checksum=97ebe4f94e2f7e35b752194ce15a0f3c66324e0ff6af26659bbfb5ff2ec328fd
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" ac_cv_sys_symbol_underscore=no"
diff --git a/srcpkgs/libgpg-error/template b/srcpkgs/libgpg-error/template
index 309860f3f5a7..98a7c475d1d3 100644
--- a/srcpkgs/libgpg-error/template
+++ b/srcpkgs/libgpg-error/template
@@ -9,7 +9,6 @@ license="LGPL-2.1-or-later, GPL-2.0-or-later"
 homepage="https://www.gnupg.org"
 distfiles="https://www.gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=fc07e70f6c615f8c4f590a8e37a9b8dd2e2ca1e9408f8e60459c67452b925e23
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends="qemu-user-static"
diff --git a/srcpkgs/libhugetlbfs/template b/srcpkgs/libhugetlbfs/template
index 33a645b07753..3a9de8e8d2cd 100644
--- a/srcpkgs/libhugetlbfs/template
+++ b/srcpkgs/libhugetlbfs/template
@@ -13,7 +13,6 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/libhugetlbfs/libhugetlbfs"
 distfiles="https://github.com/${pkgname}/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=b70672f1e807c61b7eb3adf41c1903b42917951f2e7f8aef6821841700c04479
-patch_args="-Np1"
 CFLAGS="-fPIC"
 
 do_check() {
diff --git a/srcpkgs/libical/template b/srcpkgs/libical/template
index 2d97ec032b62..a167a7b4f2e3 100644
--- a/srcpkgs/libical/template
+++ b/srcpkgs/libical/template
@@ -15,7 +15,6 @@ license="LGPL-2.1-only, MPL-2.0"
 homepage="http://libical.github.io/libical/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=09fecacaf75ba5a242159e3a9758a5446b5ce4d0ab684f98a7040864e1d1286f
-patch_args="-Np1"
 disable_parallel_build=yes
 
 build_options="gir"
diff --git a/srcpkgs/libid3tag/template b/srcpkgs/libid3tag/template
index 6ffa35b9387d..bd946e222c28 100644
--- a/srcpkgs/libid3tag/template
+++ b/srcpkgs/libid3tag/template
@@ -2,7 +2,6 @@
 pkgname=libid3tag
 version=0.15.1b
 revision=8
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="pkg-config gperf"
 makedepends="zlib-devel"
diff --git a/srcpkgs/libknet1/template b/srcpkgs/libknet1/template
index bdd6d2b14db1..d261c8c36c9d 100644
--- a/srcpkgs/libknet1/template
+++ b/srcpkgs/libknet1/template
@@ -17,7 +17,6 @@ homepage="https://www.kronosnet.org"
 distfiles="https://kronosnet.org/releases/kronosnet-${version}.tar.bz2"
 checksum=c2ee20a9b5b0791ed5379b38b0b51d549603933925a839f045455553f03e6114
 
-patch_args='-Np1'
 
 CFLAGS="-Wno-format-truncation"
 
diff --git a/srcpkgs/libode/template b/srcpkgs/libode/template
index a899f1024e4a..f6c855cbce75 100644
--- a/srcpkgs/libode/template
+++ b/srcpkgs/libode/template
@@ -12,7 +12,6 @@ license="LGPL-2/BSD"
 homepage="http://www.ode.org"
 distfiles="https://bitbucket.org/odedevs/ode/downloads/ode-${version}.tar.gz"
 checksum=4ba3b76f9c1314160de483b3db92b0569242a07452cbb25b368e75deb3cabf27
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libogdf/template b/srcpkgs/libogdf/template
index 5ca0549acc51..49090dc3a93c 100644
--- a/srcpkgs/libogdf/template
+++ b/srcpkgs/libogdf/template
@@ -15,7 +15,6 @@ homepage="https://ogdf.uos.de/"
 distfiles="https://ogdf.uos.de/wp-content/uploads/2019/04/ogdf-snapshot-${version//./-}.zip"
 checksum=347c3fa8dcdbb094f9c43008cbc2934bc5a64a532af4d3fe360a5fa54488440f
 nocross="can't find cpuid.h headers"
-patch_args=-Np1
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	broken="Non optional usage of broken mallinfo"
diff --git a/srcpkgs/libopenshot/template b/srcpkgs/libopenshot/template
index 7a3a5a2cfd9d..595ff6f7edcc 100644
--- a/srcpkgs/libopenshot/template
+++ b/srcpkgs/libopenshot/template
@@ -16,7 +16,6 @@ license="LGPL-3.0-or-later"
 homepage="https://github.com/OpenShot/libopenshot"
 distfiles="https://github.com/OpenShot/libopenshot/archive/v${version}.tar.gz"
 checksum=8ae7d226fbd2efbc84da4f7d9d8c7f3cc9616e4de46e1233e3b0a84ac0a429bc
-patch_args="-Np1"
 # FIXME: tests segfault
 make_check=extended
 
diff --git a/srcpkgs/libpgf/template b/srcpkgs/libpgf/template
index bf71a8d2fff9..54383332b2cb 100644
--- a/srcpkgs/libpgf/template
+++ b/srcpkgs/libpgf/template
@@ -2,7 +2,6 @@
 pkgname=libpgf
 version=6.14.12
 revision=3
-patch_args="-Np1"
 wrksrc="$pkgname"
 build_style=gnu-configure
 hostmakedepends="automake libtool"
diff --git a/srcpkgs/libsasl/template b/srcpkgs/libsasl/template
index c0d20324790b..b9dbe7bc2f86 100644
--- a/srcpkgs/libsasl/template
+++ b/srcpkgs/libsasl/template
@@ -17,7 +17,6 @@ license="BSD-3-Clause-Attribution"
 homepage="https://www.cyrusimap.org/sasl/"
 distfiles="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-${version}/cyrus-sasl-${version}.tar.gz"
 checksum=26866b1549b00ffd020f188a43c258017fa1c382b3ddadd8201536f72efb05d5
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libtar/template b/srcpkgs/libtar/template
index 1ba6d6a29050..84280b727ef9 100644
--- a/srcpkgs/libtar/template
+++ b/srcpkgs/libtar/template
@@ -3,7 +3,6 @@ pkgname=libtar
 version=1.2.20
 revision=3
 wrksrc="$pkgname"
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="automake libtool pkg-config"
 makedepends="zlib-devel"
diff --git a/srcpkgs/libtls/template b/srcpkgs/libtls/template
index a163b69eee98..5ab8c6c84e26 100644
--- a/srcpkgs/libtls/template
+++ b/srcpkgs/libtls/template
@@ -21,7 +21,6 @@ build_options="asm"
 desc_option_asm="Use platform assembly for faster crypto"
 
 build_options_default="asm"
-patch_args=-Np1
 
 if [ "$build_option_asm" ]; then
 	distfiles+=" https://github.com/q66/libressl-portable-asm/archive/v${_lssl_asm_ver}.tar.gz"
diff --git a/srcpkgs/libtomcrypt/template b/srcpkgs/libtomcrypt/template
index 63635e14c995..4475f1d5b33e 100644
--- a/srcpkgs/libtomcrypt/template
+++ b/srcpkgs/libtomcrypt/template
@@ -11,7 +11,6 @@ homepage="http://www.libtom.net/?page=features&newsitems=5&whatfile=crypt"
 distfiles="https://github.com/libtom/libtomcrypt/releases/download/v${version}/crypt-${version}.tar.xz"
 checksum=96ad4c3b8336050993c5bc2cf6c057484f2b0f9f763448151567fbab5e767b84
 
-patch_args="-Np1"
 CFLAGS="-DGMP_DESC -DLTM_DESC -DUSE_LTM"
 
 do_build() {
diff --git a/srcpkgs/libunique1/template b/srcpkgs/libunique1/template
index 7b3e81316b59..f73931b0c72b 100644
--- a/srcpkgs/libunique1/template
+++ b/srcpkgs/libunique1/template
@@ -14,7 +14,6 @@ license="LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Attic/LibUnique"
 distfiles="${GNOME_SITE}/libunique/1.1/libunique-${version}.tar.bz2"
 checksum=e5c8041cef8e33c55732f06a292381cb345db946cf792a4ae18aa5c66cdd4fbb
-patch_args="-Np1"
 
 CFLAGS="-Wno-deprecated-declarations"
 
diff --git a/srcpkgs/libvorbis/template b/srcpkgs/libvorbis/template
index e962ccbf512a..252ab68c7f94 100644
--- a/srcpkgs/libvorbis/template
+++ b/srcpkgs/libvorbis/template
@@ -2,7 +2,6 @@
 pkgname=libvorbis
 version=1.3.7
 revision=1
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="pkg-config"
 makedepends="libogg-devel"
diff --git a/srcpkgs/lightdm-gtk-greeter/template b/srcpkgs/lightdm-gtk-greeter/template
index 66651a7af8ad..c2c37197fe8c 100644
--- a/srcpkgs/lightdm-gtk-greeter/template
+++ b/srcpkgs/lightdm-gtk-greeter/template
@@ -16,7 +16,6 @@ homepage="https://launchpad.net/lightdm-gtk-greeter"
 distfiles="${homepage}/${version%.*}/${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=22386e787dc64ac372c63cf2cdce47bfa1c791d1cf8b5d3df68df24ecfbf7d68
 conflicts="lightdm-gtk3-greeter>=0"
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/linux-driver-management/template b/srcpkgs/linux-driver-management/template
index 2d8f51fa078c..0a8859cb73b4 100644
--- a/srcpkgs/linux-driver-management/template
+++ b/srcpkgs/linux-driver-management/template
@@ -17,7 +17,6 @@ license="LGPL-2.1-only"
 homepage="https://github.com/solus-project/linux-driver-management"
 distfiles="https://github.com/solus-project/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=968ef61fbb7e26b89ef9456f03cf31c616bdc8fc69531fcfd9f90ae0f4ff147b
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	# host needs glib-mkenums
diff --git a/srcpkgs/linux4.14/template b/srcpkgs/linux4.14/template
index be7732d07bc3..9d9d56af8c3f 100644
--- a/srcpkgs/linux4.14/template
+++ b/srcpkgs/linux4.14/template
@@ -13,7 +13,6 @@ checksum="f81d59477e90a130857ce18dc02f4fbe5725854911db1e7ba770c7cd350f96a7
  b9afed9ae1f63b67fa01d17b3146f23a2ab5ef8ce458f3aec4d0b174553d0c52"
 skip_extraction="patch-${version}.xz"
 python_version=2 #unverified
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/linux4.19/template b/srcpkgs/linux4.19/template
index 3bbe09617546..5792f6904911 100644
--- a/srcpkgs/linux4.19/template
+++ b/srcpkgs/linux4.19/template
@@ -10,7 +10,6 @@ homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${version}.tar.xz"
 checksum=aaaebdccf599f77148fe170642fa7dc2452cf994b5cbbb4d39cab9e7f4058896
 python_version=3
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/linux4.9/template b/srcpkgs/linux4.9/template
index 553f87b04f6a..bad95d88f072 100644
--- a/srcpkgs/linux4.9/template
+++ b/srcpkgs/linux4.9/template
@@ -13,7 +13,6 @@ checksum="029098dcffab74875e086ae970e3828456838da6e0ba22ce3f64ef764f3d7f1a
  f808e190ab3d4b254b22c8b93936747c135a47c1a66d657af0e494bfbc125ca5"
 python_version=2 #unverified
 skip_extraction="patch-${version}.xz"
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/linux5.10/template b/srcpkgs/linux5.10/template
index 5a6b35e18c74..b63592c5880b 100644
--- a/srcpkgs/linux5.10/template
+++ b/srcpkgs/linux5.10/template
@@ -10,7 +10,6 @@ homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${version}.tar.xz"
 checksum=77beefa59c854ce1e8353db947a71a8a91f2a907aed45c1335ac1f209983c767
 python_version=3
-patch_args="-Np1"
 
 # XXX Restrict archs until a proper <arch>-dotconfig is available in FILESDIR.
 archs="x86_64* i686* ppc* aarch64*"
diff --git a/srcpkgs/linux5.11/template b/srcpkgs/linux5.11/template
index ab3f6f627750..3d6e5facc176 100644
--- a/srcpkgs/linux5.11/template
+++ b/srcpkgs/linux5.11/template
@@ -13,7 +13,6 @@ checksum="04f07b54f0d40adfab02ee6cbd2a942c96728d87c1ef9e120d0cb9ba3fe067b4
  07aac31956d3f483a91506524befd45962f3bbfda2f8d43cf90713caf872d9ba"
 skip_extraction="patch-${version}.xz"
 python_version=3
-patch_args="-Np1"
 
 # XXX Restrict archs until a proper <arch>-dotconfig is available in FILESDIR.
 archs="x86_64* i686* aarch64* ppc*"
diff --git a/srcpkgs/linux5.12/template b/srcpkgs/linux5.12/template
index 5276698b36a0..06ead94605c9 100644
--- a/srcpkgs/linux5.12/template
+++ b/srcpkgs/linux5.12/template
@@ -13,7 +13,6 @@ checksum="7d0df6f2bf2384d68d0bd8e1fe3e071d64364dcdc6002e7b5c87c92d48fac366
  034eb39ad49f3a26fc1b4ef799ef481ce35fe03e2b24131e9cd3d2805a99ad19"
 skip_extraction="patch-${version}.xz"
 python_version=3
-patch_args="-Np1"
 
 # XXX Restrict archs until a proper <arch>-dotconfig is available in FILESDIR.
 archs="x86_64* i686* aarch64* ppc*"
diff --git a/srcpkgs/linux5.4/template b/srcpkgs/linux5.4/template
index 40fe79b4abca..1adba525e68d 100644
--- a/srcpkgs/linux5.4/template
+++ b/srcpkgs/linux5.4/template
@@ -10,7 +10,6 @@ homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${version}.tar.xz"
 checksum=17ee750a4aeb1c883d721e730d1f7e2855124585e2f47766864a1359a7ebe33c
 python_version=3
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/loudgain/template b/srcpkgs/loudgain/template
index 00b2d20d27d6..da4f2d56e94c 100644
--- a/srcpkgs/loudgain/template
+++ b/srcpkgs/loudgain/template
@@ -11,7 +11,6 @@ license="BSD-2-Clause"
 homepage="https://github.com/Moonbase59/loudgain"
 distfiles="https://github.com/Moonbase59/loudgain/archive/v${version}.tar.gz"
 checksum=1137c193ad941b366e87c5d84ccc95a7aa8571affc060db0bd1cf72c489aeaee
-patch_args=-Np1
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/lxde-common/template b/srcpkgs/lxde-common/template
index df521545d44e..f7521d1b9030 100644
--- a/srcpkgs/lxde-common/template
+++ b/srcpkgs/lxde-common/template
@@ -12,4 +12,3 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=1cd9bc900960c995d48ffbbdc86ecffda7c806168c67aaa50c53113794234856
-patch_args="-Np1"
diff --git a/srcpkgs/lxlauncher/template b/srcpkgs/lxlauncher/template
index 5b91dc9c7202..917049e5da74 100644
--- a/srcpkgs/lxlauncher/template
+++ b/srcpkgs/lxlauncher/template
@@ -16,7 +16,6 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=cd14b59cf337e7ba0d67efc95cd79859ab5f0f85af5a84c7aff771f868c3dca7
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/lxsession/template b/srcpkgs/lxsession/template
index bf5ad1543557..8fe456a1d43e 100644
--- a/srcpkgs/lxsession/template
+++ b/srcpkgs/lxsession/template
@@ -14,7 +14,6 @@ homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/$pkgname-$version.tar.xz"
 checksum=e43e0d9c033095559ab57c8821c2b84fea58009d267db1324d32dca8bd4dbb46
 replaces="lxpolkit>=0"
-patch_args="-Np1"
 
 pre_build() {
 	rm *.stamp
diff --git a/srcpkgs/m4/template b/srcpkgs/m4/template
index ad0d585a2649..78f3dae6184a 100644
--- a/srcpkgs/m4/template
+++ b/srcpkgs/m4/template
@@ -2,7 +2,6 @@
 pkgname=m4
 version=1.4.18
 revision=2
-patch_args="-Np1"
 bootstrap=yes
 replaces="chroot-m4>=0"
 build_style=gnu-configure
diff --git a/srcpkgs/mac-fdisk/template b/srcpkgs/mac-fdisk/template
index e49accf70f02..954609a0a23a 100644
--- a/srcpkgs/mac-fdisk/template
+++ b/srcpkgs/mac-fdisk/template
@@ -10,7 +10,6 @@ license="GPL-2.0-or-later"
 homepage="https://packages.debian.org/sid/mac-fdisk"
 distfiles="http://deb.debian.org/debian/pool/main/m/mac-fdisk/mac-fdisk_${version}.orig.tar.gz"
 checksum=7059fc4ba41ca2ef857e1092e9c56e910f27693d407b5c3d78f7102ad0c56a66
-patch_args="-Np1"
 
 CFLAGS="-D_GNU_SOURCE"
 
diff --git a/srcpkgs/mailx/template b/srcpkgs/mailx/template
index 63ec23e72e07..af0f33598b10 100644
--- a/srcpkgs/mailx/template
+++ b/srcpkgs/mailx/template
@@ -2,7 +2,6 @@
 pkgname=mailx
 version=12.5
 revision=25
-patch_args="-Np1"
 wrksrc="mailx-${version}"
 makedepends="openssl-devel mit-krb5-devel"
 conf_files="/etc/mailx.rc"
diff --git a/srcpkgs/make/template b/srcpkgs/make/template
index 0aebcbc70be6..9a980aa10dde 100644
--- a/srcpkgs/make/template
+++ b/srcpkgs/make/template
@@ -15,4 +15,3 @@ homepage="http://www.gnu.org/software/make"
 distfiles="${GNU_SITE}/make/${pkgname}-${version}.tar.lz"
 checksum=de1a441c4edf952521db30bfca80baae86a0ff1acd0a00402999344f04c45e82
 build_options=guile
-patch_args="-Np1"
diff --git a/srcpkgs/mbuffer/template b/srcpkgs/mbuffer/template
index 97e0daac30e8..b1b30619272f 100644
--- a/srcpkgs/mbuffer/template
+++ b/srcpkgs/mbuffer/template
@@ -11,5 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://www.maier-komor.de/mbuffer.html"
 distfiles="https://www.maier-komor.de/software/mbuffer/mbuffer-${version}.tgz"
 checksum=51b5b8d8488991a55fe1dfce90130f9e47bc1ce286ba03b4f628c04b784fdc5d
-patch_args=-Np1
 conf_files="/etc/mbuffer.rc"
diff --git a/srcpkgs/mellowplayer/template b/srcpkgs/mellowplayer/template
index 3bd4a704985a..3afe098a08f4 100644
--- a/srcpkgs/mellowplayer/template
+++ b/srcpkgs/mellowplayer/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://colinduquesnoy.gitlab.io/MellowPlayer/"
 distfiles="https://gitlab.com/ColinDuquesnoy/MellowPlayer/-/archive/${version}/MellowPlayer-${version}.tar.bz2"
 checksum=7571588a704d0e76e65764f7a7725cf2b22125e06d930f236d19f75c1ecf559d
-patch_args=-Np1
 
 if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
 	broken="webengine can be built only if word size matches"
diff --git a/srcpkgs/mkinitcpio-nfs-utils/template b/srcpkgs/mkinitcpio-nfs-utils/template
index d8f23343ad6a..f40c42735fd6 100644
--- a/srcpkgs/mkinitcpio-nfs-utils/template
+++ b/srcpkgs/mkinitcpio-nfs-utils/template
@@ -18,7 +18,6 @@ case "$XBPS_TARGET_MACHINE" in
 	;;
 esac
 
-patch_args="-Np1"
 
 post_extract() {
 	sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' */Makefile
diff --git a/srcpkgs/mkinitcpio/template b/srcpkgs/mkinitcpio/template
index 04277348348d..d3f89d781382 100644
--- a/srcpkgs/mkinitcpio/template
+++ b/srcpkgs/mkinitcpio/template
@@ -13,7 +13,6 @@ homepage="https://git.archlinux.org/mkinitcpio.git"
 distfiles="https://sources.archlinux.org/other/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c7725035a06d2ab6ef6e97601b69859d6061aec95c4551e2a1ad2e27d307258f
 conf_files="/etc/mkinitcpio.conf"
-patch_args="-Np1"
 replaces="mkinitcpio-udev>=0"
 
 pre_check() {
diff --git a/srcpkgs/motif/template b/srcpkgs/motif/template
index 56f330f259ab..6e38db0a9516 100644
--- a/srcpkgs/motif/template
+++ b/srcpkgs/motif/template
@@ -14,7 +14,6 @@ homepage="https://sourceforge.net/projects/motif/"
 distfiles="${SOURCEFORGE_SITE}/motif/Motif%20${version}%20Source%20Code/motif-${version}.tar.gz"
 checksum=859b723666eeac7df018209d66045c9853b50b4218cecadb794e2359619ebce7
 replaces="lesstif>=0"
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" $makedepends"
diff --git a/srcpkgs/mouseemu/template b/srcpkgs/mouseemu/template
index 1519c7b7ef6a..7a64d63acd85 100644
--- a/srcpkgs/mouseemu/template
+++ b/srcpkgs/mouseemu/template
@@ -11,7 +11,6 @@ homepage="http://geekounet.org/powerbook/"
 distfiles="http://deb.debian.org/debian/pool/main/m/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=bbef220a814931f8ee482c82dfd63ad0a8ec895fc7df7bac1a1ada880d59af59
 conf_files="/etc/sv/mouseemu/conf"
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|i686*) depends+=" dmidecode";;
diff --git a/srcpkgs/mozjs78/template b/srcpkgs/mozjs78/template
index ee443e7a64c8..87e90b422b4e 100644
--- a/srcpkgs/mozjs78/template
+++ b/srcpkgs/mozjs78/template
@@ -17,7 +17,6 @@ license="MPL-2.0"
 homepage="https://www.mozilla.org/firefox/"
 distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.xz"
 checksum=8e03ac1dfc5ac804c8b13a529414a9387e0425e545bb2f4462d74c3175e64864
-patch_args="-Np1"
 
 CXXFLAGS="-Wno-class-memaccess"
 LDFLAGS="-Wl,-z,stack-size=1048576"
diff --git a/srcpkgs/mupdf/template b/srcpkgs/mupdf/template
index 1279d8c680d4..de89007c8f06 100644
--- a/srcpkgs/mupdf/template
+++ b/srcpkgs/mupdf/template
@@ -16,7 +16,6 @@ license="AGPL-3.0-only"
 homepage="https://mupdf.com"
 distfiles="https://mupdf.com/downloads/archive/${pkgname}-${version}-source.tar.gz"
 checksum=8860ea6d01fc3c360ba5e0fa9fede241c6fbb2a73f5215b17a105de409a19266
-patch_args="-Np1"
 
 pre_build() {
 	# libmupdf-{threads,pkcs7}.a are required by fbpdf
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index eaa3dc12e8e5..337a3082faa9 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="http://www.musl-libc.org/"
 distfiles="http://www.musl-libc.org/releases/musl-${version}.tar.gz"
 checksum=1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
-patch_args=-Np1
 
 nostrip_files="libc.so"
 shlib_provides="libc.so"
diff --git a/srcpkgs/ndppd/template b/srcpkgs/ndppd/template
index 48f78c040ab2..e9cbba36942a 100644
--- a/srcpkgs/ndppd/template
+++ b/srcpkgs/ndppd/template
@@ -9,7 +9,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/DanielAdolfsson/ndppd"
 distfiles="https://github.com/DanielAdolfsson/ndppd/archive/${version}.tar.gz"
 checksum=ee934167f8357f0bd0015e201a77fbe4d028c59e89dc98113805c6855e1c3992
-patch_args="-Np1"
 
 do_install() {
 	vbin ndppd
diff --git a/srcpkgs/network-manager-applet/template b/srcpkgs/network-manager-applet/template
index 0f041aa80b27..e9bb40aa3e6f 100644
--- a/srcpkgs/network-manager-applet/template
+++ b/srcpkgs/network-manager-applet/template
@@ -17,5 +17,4 @@ homepage="https://wiki.gnome.org/Projects/NetworkManager"
 changelog="https://raw.githubusercontent.com/NetworkManager/network-manager-applet/master/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=c70d80b48d40a9cb99ec967cc4389f67e7f0301528a69d481572041331a646be
-patch_args=-Np1
 lib32disabled=yes
diff --git a/srcpkgs/nfs-utils/template b/srcpkgs/nfs-utils/template
index 4b5dc97ea19c..10e72d3054c8 100644
--- a/srcpkgs/nfs-utils/template
+++ b/srcpkgs/nfs-utils/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.linux-nfs.org/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
 checksum=51997d94e4c8bcef5456dd36a9ccc38e231207c4e9b6a9a2c108841e6aebe3dd
-patch_args="-Np1"
 replaces="rpcgen>=0"
 
 hostmakedepends="pkg-config libtirpc-devel rpcsvc-proto"
diff --git a/srcpkgs/nomad/template b/srcpkgs/nomad/template
index 8ebd079f55e2..989de0f270be 100644
--- a/srcpkgs/nomad/template
+++ b/srcpkgs/nomad/template
@@ -14,7 +14,6 @@ license="MPL-2.0"
 homepage="https://www.nomadproject.io/"
 distfiles="https://github.com/hashicorp/nomad/archive/v${version}.tar.gz"
 checksum=441d2f50a29568451cb16301a2208c9b744a480ded8c624e789983ee42ed3ea9
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) go_build_tags+=" nonvidia" ;;
diff --git a/srcpkgs/notmuch/template b/srcpkgs/notmuch/template
index d96cd07da6a3..0b176d22ebd9 100644
--- a/srcpkgs/notmuch/template
+++ b/srcpkgs/notmuch/template
@@ -21,7 +21,6 @@ skip_extraction="database-v1.tar.xz"
 # gpgme is optional dependency
 conflicts="gpgme<1.14.0_1"
 subpackages="libnotmuch libnotmuch-devel notmuch-mutt notmuch-python3"
-patch_args=-Np1
 
 if [ ! "$CROSS_BUILD" ]; then
 	hostmakedepends+=" desktop-file-utils"
diff --git a/srcpkgs/numix-themes/template b/srcpkgs/numix-themes/template
index 0e5b7b436c75..76814bab7d9e 100644
--- a/srcpkgs/numix-themes/template
+++ b/srcpkgs/numix-themes/template
@@ -12,4 +12,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/numixproject/numix-gtk-theme"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=2b997ad3eee0b802d0dd49dd772127fd3c337cca32d8863efd4897928e38879a
-patch_args=-Np1
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index a24dde6ca225..edc737186f93 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -2,7 +2,6 @@
 pkgname=nvi
 version=1.81.6
 revision=16
-patch_args="-Np1"
 build_style=gnu-configure
 build_wrksrc=dist
 makedepends="ncurses-devel db-devel"
diff --git a/srcpkgs/ocaml/template b/srcpkgs/ocaml/template
index c941d4b33684..0b760f5ffa5a 100644
--- a/srcpkgs/ocaml/template
+++ b/srcpkgs/ocaml/template
@@ -13,7 +13,6 @@ homepage="http://ocaml.org/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=cd3cd55d465028b161c8c33bafc14ee6ae1d91b5efe51098350f8e8a5f454baf
 nocross=yes
-patch_args="-Np1"
 
 export ASPP="cc -c"
 
diff --git a/srcpkgs/onboard/template b/srcpkgs/onboard/template
index 681de6199e0d..38b447de275e 100644
--- a/srcpkgs/onboard/template
+++ b/srcpkgs/onboard/template
@@ -14,4 +14,3 @@ license="GPL-3.0-or-later"
 homepage="https://launchpad.net/onboard"
 distfiles="https://launchpad.net/${pkgname}/${version%.*}/${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=01cae1ac5b1ef1ab985bd2d2d79ded6fc99ee04b1535cc1bb191e43a231a3865
-patch_args="-Np1"
diff --git a/srcpkgs/openjdk10-bootstrap/template b/srcpkgs/openjdk10-bootstrap/template
index 9695f1f1f431..92d066bb200b 100644
--- a/srcpkgs/openjdk10-bootstrap/template
+++ b/srcpkgs/openjdk10-bootstrap/template
@@ -51,7 +51,6 @@ if [ -n "$_use_zero" ]; then
 fi
 
 shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
-patch_args="-Np1"
 nocross=yes
 
 if [ -n "$XBPS_DEBUG_PKGS" ]; then
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index f273380c0ebb..b084713ea889 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -83,7 +83,6 @@ skip_extraction="
  hotspot-${_drops_ver}.tar.bz2"
 
 shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
-patch_args="-Np1"
 nocross=yes
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 478986b3ca6b..a6d99811d672 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -80,7 +80,6 @@ else
 fi
 
 provides="java-environment-${version}_1"
-patch_args="-Np1"
 
 if [ -n "$XBPS_DEBUG_PKGS" ]; then
 	configure_args+=" --with-native-debug-symbols=internal"
diff --git a/srcpkgs/openjdk9-bootstrap/template b/srcpkgs/openjdk9-bootstrap/template
index 7fc5dc69376f..bf2654033377 100644
--- a/srcpkgs/openjdk9-bootstrap/template
+++ b/srcpkgs/openjdk9-bootstrap/template
@@ -67,7 +67,6 @@ fi
 
 lib32disabled=yes
 shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
-patch_args="-Np1"
 nocross=yes
 
 if [ -n "$XBPS_DEBUG_PKGS" ]; then
diff --git a/srcpkgs/orientdb/template b/srcpkgs/orientdb/template
index c7c49f59af5b..5db277ac3232 100644
--- a/srcpkgs/orientdb/template
+++ b/srcpkgs/orientdb/template
@@ -11,7 +11,6 @@ license="Apache-2.0"
 homepage="https://orientdb.org"
 distfiles="https://s3.us-east-2.amazonaws.com/orientdb3/releases/${version}/orientdb-${version}.tar.gz"
 checksum=73830279a5587de17ea4f5864598a0829bb03212d6cd36d185fe126a46086236
-patch_args="-Np1"
 system_accounts="orientdb"
 
 do_install() {
diff --git a/srcpkgs/p11-kit/template b/srcpkgs/p11-kit/template
index 9947a2ec6567..cc0b11eb720f 100644
--- a/srcpkgs/p11-kit/template
+++ b/srcpkgs/p11-kit/template
@@ -14,7 +14,6 @@ license="BSD-3-Clause"
 homepage="https://github.com/p11-glue/p11-kit"
 distfiles="${homepage}/releases/download/${version}/p11-kit-${version}.tar.xz"
 checksum=8a8f40153dd5a3f8e7c03e641f8db400133fb2a6a9ab2aee1b6d0cb0495ec6b6
-patch_args=-Np1
 conf_files="/etc/pkcs11/pkcs11.conf"
 
 if [ "$XBPS_CHECK_PKGS" ]; then
diff --git a/srcpkgs/parallel-rust/template b/srcpkgs/parallel-rust/template
index f6a1df6cfd4f..d2a746db9108 100644
--- a/srcpkgs/parallel-rust/template
+++ b/srcpkgs/parallel-rust/template
@@ -3,7 +3,6 @@ pkgname=parallel-rust
 version=0.11.3
 revision=2
 wrksrc="parallel-${version}"
-patch_args="-Np1"
 build_style=cargo
 short_desc="Inspired by GNU Parallel, a command-line CPU load balancer written in Rust"
 maintainer="lemmi <lemmi@nerd2nerd.org>"
diff --git a/srcpkgs/patch/template b/srcpkgs/patch/template
index 54bfe06dada4..c850a4f74a71 100644
--- a/srcpkgs/patch/template
+++ b/srcpkgs/patch/template
@@ -11,7 +11,6 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/patch/patch.html"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=ac610bda97abe0d9f6b7c963255a11dcb196c25e337c61f94e4778d632f1d8fd
-patch_args="-Np1"
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	export ac_cv_lib_error_at_line=no
diff --git a/srcpkgs/pavucontrol/template b/srcpkgs/pavucontrol/template
index b80f1b85a7d2..1fd6de3d37cc 100644
--- a/srcpkgs/pavucontrol/template
+++ b/srcpkgs/pavucontrol/template
@@ -11,4 +11,3 @@ license="GPL-2.0-or-later"
 homepage="https://freedesktop.org/software/pulseaudio/pavucontrol/"
 distfiles="${homepage}/${pkgname}-${version}.tar.xz"
 checksum=8fc45bac9722aefa6f022999cbb76242d143c31b314e2dbb38f034f4069d14e2
-patch_args=-Np1
diff --git a/srcpkgs/pbbuttonsd/template b/srcpkgs/pbbuttonsd/template
index 2826198c71fa..242e9a49d4dc 100644
--- a/srcpkgs/pbbuttonsd/template
+++ b/srcpkgs/pbbuttonsd/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.berlios.de/software/pbbuttons"
 distfiles="${SOURCEFORGE_SITE}/pbbuttons/pbbuttonsd-${version}.tar.gz"
 checksum=254cc391bcb0a4a58a62224b4cca2b29fdf9ca174c1dc18ab0784f1a86465ed1
-patch_args="-Np1"
 
 post_extract() {
 	# fix cross builds (small build-only tool built with this)
diff --git a/srcpkgs/pcsxr/template b/srcpkgs/pcsxr/template
index 37bd5f2fe7f4..e95d3eb66634 100644
--- a/srcpkgs/pcsxr/template
+++ b/srcpkgs/pcsxr/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="http://pcsxr.codeplex.com/"
 distfiles="http://deb.debian.org/debian/pool/main/p/pcsxr/pcsxr_${version}.orig.tar.xz"
 checksum=8a366b68a7c236443aa75b422bea84b5115f8d8c23e5a78fd6951e643e90f660
-patch_args="-Np1"
 lib32disabled=yes
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/pinebookpro-kernel/template b/srcpkgs/pinebookpro-kernel/template
index 5908c8021ce4..09e202b279f2 100644
--- a/srcpkgs/pinebookpro-kernel/template
+++ b/srcpkgs/pinebookpro-kernel/template
@@ -10,7 +10,6 @@ license="GPL-2.0-only"
 homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${version}.tar.xz"
 checksum=ac37a19d45b77a87e58e3aae8b127a6e7eb85ed7467fc8e58474b387bfd498fd
-patch_args="-Np1"
 python_version=3
 
 nodebug=yes  # -dbg package is generated below manually
diff --git a/srcpkgs/pinephone-kernel/template b/srcpkgs/pinephone-kernel/template
index 73631552a9ba..0361e3edca81 100644
--- a/srcpkgs/pinephone-kernel/template
+++ b/srcpkgs/pinephone-kernel/template
@@ -11,7 +11,6 @@ homepage="https://www.kernel.org"
 distfiles="https://github.com/megous/linux/archive/${_tag}.tar.gz"
 checksum=7ef48ee91f6b6cfdc74f3dc73753903748bcda3282f1ac6e2ff33d392f6c30ca
 python_version=3
-patch_args="-Np1"
 
 archs="aarch64*"
 
diff --git a/srcpkgs/ponysay/template b/srcpkgs/ponysay/template
index 5fd3af284d2d..d2e146943e58 100644
--- a/srcpkgs/ponysay/template
+++ b/srcpkgs/ponysay/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="https://erkin.github.com/ponysay/"
 distfiles="https://github.com/erkin/${pkgname}/archive/${version}.tar.gz"
 checksum=c382d7f299fa63667d1a4469e1ffbf10b6813dcd29e861de6be55e56dc52b28a
-patch_args="-Np1"
 
 do_install() {
 	python3 setup.py --prefix=/usr --dest-dir=$DESTDIR \
diff --git a/srcpkgs/poppler-qt5/template b/srcpkgs/poppler-qt5/template
index 4fb165ecc22b..c130ecc74f79 100644
--- a/srcpkgs/poppler-qt5/template
+++ b/srcpkgs/poppler-qt5/template
@@ -21,7 +21,6 @@ distfiles="${homepage}/poppler-${version}.tar.xz"
 checksum=dafd537b680fad1215bc40fc53d1f38e8449d7c185bc60d5a89e1d26c90dbd8c
 # fails to find a bunch of files
 make_check=no
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DTHREADS_PTHREAD_ARG=2"
diff --git a/srcpkgs/poppler/template b/srcpkgs/poppler/template
index 72a961b24615..e78dc76cfaa8 100644
--- a/srcpkgs/poppler/template
+++ b/srcpkgs/poppler/template
@@ -19,7 +19,6 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://poppler.freedesktop.org"
 distfiles="${homepage}/${pkgname}-${version}.tar.xz"
 checksum=dafd537b680fad1215bc40fc53d1f38e8449d7c185bc60d5a89e1d26c90dbd8c
-patch_args=-Np1
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/procmail/template b/srcpkgs/procmail/template
index 4518f5caac58..12271d5f0a2d 100644
--- a/srcpkgs/procmail/template
+++ b/srcpkgs/procmail/template
@@ -10,7 +10,6 @@ license="GPL-2.0-or-later, Artistic-1.0-cl8"
 homepage="http://www.procmail.org"
 distfiles="https://fossies.org/linux/misc/old/procmail-${version}.tar.gz"
 checksum=087c75b34dd33d8b9df5afe9e42801c9395f4bf373a784d9bc97153b0062e117
-patch_args="-Np1"
 nocross="./autoconf: line 1396: ./_autotst: No such file or directory"
 
 post_extract() {
diff --git a/srcpkgs/psutils/template b/srcpkgs/psutils/template
index d377334ebb6a..0e47c23d0c25 100644
--- a/srcpkgs/psutils/template
+++ b/srcpkgs/psutils/template
@@ -12,7 +12,6 @@ homepage="http://knackered.org/angus/psutils/"
 wrksrc="psutils"
 distfiles="ftp://ftp.knackered.org/pub/psutils/${pkgname}-${version}.tar.gz"
 checksum="3853eb79584ba8fbe27a815425b65a9f7f15b258e0d43a05a856bdb75d588ae4"
-patch_args="-Np1"
 
 pre_configure() {
 	# install in /usr instead of /usr/local
diff --git a/srcpkgs/python-notify/template b/srcpkgs/python-notify/template
index 7bfe11b2da90..9bc07c76324e 100644
--- a/srcpkgs/python-notify/template
+++ b/srcpkgs/python-notify/template
@@ -15,7 +15,6 @@ homepage="http://www.galago-project.org/"
 distfiles="http://www.galago-project.org/files/releases/source/notify-python/notify-python-${version}.tar.gz"
 checksum=8c5ee28017fdc5b110c31cb76503e535e15e0c60b9a1f1e95ff6c018dd806022
 replaces="notify-python>=0"
-patch_args="-Np1"
 lib32disabled=yes
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/qemu/template b/srcpkgs/qemu/template
index 0a08ed821536..0fadb41f609c 100644
--- a/srcpkgs/qemu/template
+++ b/srcpkgs/qemu/template
@@ -30,7 +30,6 @@ nostrip_files="hppa-firmware.img openbios-ppc openbios-sparc32 openbios-sparc64
  opensbi-riscv64-generic-fw_dynamic.elf"
 # FIXME
 make_check=extended
-patch_args=-Np1
 
 build_options="gtk3 opengl sdl2 spice virgl smartcard numa iscsi"
 build_options_default="opengl gtk3 virgl sdl2 numa iscsi"
diff --git a/srcpkgs/qt5-webengine/template b/srcpkgs/qt5-webengine/template
index d9819ea7d71e..0819b3790345 100644
--- a/srcpkgs/qt5-webengine/template
+++ b/srcpkgs/qt5-webengine/template
@@ -33,7 +33,6 @@ distfiles="https://github.com/qt/qtwebengine/archive/${_commit}.tar.gz
  https://github.com/qt/qtwebengine-chromium/archive/${_chromium_commit}.tar.gz"
 checksum="cea995e14c599c0c46b53b9938fd16f2360b639bf77e88a28ea26f518bb7b578
  fa0cab27cc32284f5af227a3dabde05ed6755f06641db6a6ca1c66848b10f715"
-patch_args="-Np1"
 
 no_generic_pkgconfig_link=yes
 build_options="sndio pipewire"
diff --git a/srcpkgs/rdup/template b/srcpkgs/rdup/template
index a73f90839ef9..74936336c70a 100644
--- a/srcpkgs/rdup/template
+++ b/srcpkgs/rdup/template
@@ -13,7 +13,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/miekg/rdup"
 distfiles="https://github.com/miekg/rdup/archive/${version}.tar.gz"
 checksum=787b8c37e88be810a710210a9d9f6966b544b1389a738aadba3903c71e0c29cb
-patch_args="-Np1"
 
 post_patch() {
 	vsed -e 's/-Werror//' -i GNUmakefile.in
diff --git a/srcpkgs/recode/template b/srcpkgs/recode/template
index bba0c7862d47..531df1dedd33 100644
--- a/srcpkgs/recode/template
+++ b/srcpkgs/recode/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="http://recode.progiciels-bpi.ca/"
 distfiles="${DEBIAN_SITE}/main/r/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=e3e6a4f3f8e5c6052ab70155990c074d87aa0b614fc1be31d194750d1d962fcf
-patch_args="-Np1"
 
 pre_configure() {
 	vsed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.in
diff --git a/srcpkgs/rng-tools/template b/srcpkgs/rng-tools/template
index a6e67902ba89..9519739f2b48 100644
--- a/srcpkgs/rng-tools/template
+++ b/srcpkgs/rng-tools/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/nhorman/rng-tools"
 distfiles="https://github.com/nhorman/rng-tools/archive/v${version}.tar.gz"
 checksum=6fd5b52a700edec85eb1043970e22e8e2ad06a4b43851f35d33d90e09570e9d3
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	makedepends+=" argp-standalone" ;;
diff --git a/srcpkgs/rust/template b/srcpkgs/rust/template
index 6bb928e14783..92ed8935ab09 100644
--- a/srcpkgs/rust/template
+++ b/srcpkgs/rust/template
@@ -22,7 +22,6 @@ homepage="https://www.rust-lang.org/"
 distfiles="https://static.rust-lang.org/dist/rustc-${version}-src.tar.gz"
 checksum="0e763e6db47d5d6f91583284d2f989eacc49b84794d1443355b85c58d67ae43b"
 lib32disabled=yes
-patch_args="-Np1"
 
 build_options="bindist"
 desc_option_bindist="Generate tarballs for bootstrap"
diff --git a/srcpkgs/sakura/template b/srcpkgs/sakura/template
index 299dae396cce..04e5883e0909 100644
--- a/srcpkgs/sakura/template
+++ b/srcpkgs/sakura/template
@@ -12,4 +12,3 @@ license="GPL-2.0-only"
 homepage="https://launchpad.net/sakura"
 distfiles="https://launchpad.net/sakura/trunk/${version}/+download/sakura-${version}.tar.bz2"
 checksum=9ddfe8919ae0e11673ca22879ae324565d0987b14e948e1d2badff538fe1b5b9
-patch_args="-Np1"
diff --git a/srcpkgs/sbc/template b/srcpkgs/sbc/template
index 7645ce469d68..6fdca20e3e9c 100644
--- a/srcpkgs/sbc/template
+++ b/srcpkgs/sbc/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://www.bluez.org/"
 distfiles="${KERNEL_SITE}/bluetooth/${pkgname}-${version}.tar.xz"
 checksum=0cbad69823a99e8421fe0700e8cf9eeb8fa0c1ad28e8dbc2182b3353507931d2
-patch_args="-Np1"
 
 sbc-devel_package() {
 	depends="sbc>=${version}_${revision}"
diff --git a/srcpkgs/sbsigntool/template b/srcpkgs/sbsigntool/template
index 6e6c32ddf3e7..80d0f63781fa 100644
--- a/srcpkgs/sbsigntool/template
+++ b/srcpkgs/sbsigntool/template
@@ -19,7 +19,6 @@ distfiles="$homepage/snapshot/sbsigntools-$version.tar.gz
  $DEBIAN_SITE/main/s/sbsigntool/sbsigntool_0.9.2.orig.tar.gz"
 checksum="eddb7d21263ee2b07be8f0ed93b6ba021c3f943964730b2d86f44736fa1924d5
  1dc1e1de5f2dda50dbd2e6a83355fe7ae38ca0f79daeb404026421af70606653"
-patch_args="-Np1"
 skip_extraction="sbsigntool_0.9.2.orig.tar.gz"
 conf_files="/etc/default/sbsigntool-kernel-hook"
 
diff --git a/srcpkgs/sharutils/template b/srcpkgs/sharutils/template
index 26ff6c074408..e5195a44999f 100644
--- a/srcpkgs/sharutils/template
+++ b/srcpkgs/sharutils/template
@@ -2,7 +2,6 @@
 pkgname=sharutils
 version=4.15.2
 revision=2
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="perl"
 short_desc="Makes so-called shell archives out of many files"
diff --git a/srcpkgs/spdlog/template b/srcpkgs/spdlog/template
index ecf3e97a14ce..184a4d891698 100644
--- a/srcpkgs/spdlog/template
+++ b/srcpkgs/spdlog/template
@@ -14,7 +14,6 @@ license="MIT"
 homepage="https://github.com/gabime/spdlog"
 distfiles="https://github.com/gabime/spdlog/archive/v${version}.tar.gz"
 checksum=e20e6bd8f57e866eaf25a5417f0a38a116e537f1a77ac7b5409ca2b180cec0d5
-patch_args=-Np1
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -DSPDLOG_BUILD_TESTS_HO=ON"
diff --git a/srcpkgs/stegsnow/template b/srcpkgs/stegsnow/template
index 97251c1c7a58..f5cc9a5a3697 100644
--- a/srcpkgs/stegsnow/template
+++ b/srcpkgs/stegsnow/template
@@ -3,7 +3,6 @@ pkgname=stegsnow
 version=20130616
 revision=1
 wrksrc="snow-${version}"
-patch_args="-Np1"
 build_style=gnu-makefile
 short_desc="Whitespace steganography"
 maintainer="Orphaned <orphan@voidlinux.org>"
diff --git a/srcpkgs/sun7i-kernel/template b/srcpkgs/sun7i-kernel/template
index 3d7ae0956875..560ec8ad3732 100644
--- a/srcpkgs/sun7i-kernel/template
+++ b/srcpkgs/sun7i-kernel/template
@@ -32,7 +32,6 @@ archs="armv7l*"
 hostmakedepends="perl python kmod uboot-mkimage openssl bc"
 makedepends="ncurses-devel"
 triggers="kernel-hooks"
-patch_args=-Np1
 python_version=2
 # These files could be modified when an external module is built.
 mutable_files="
diff --git a/srcpkgs/syslinux/template b/srcpkgs/syslinux/template
index 2c8cfb05553e..b45c35819552 100644
--- a/srcpkgs/syslinux/template
+++ b/srcpkgs/syslinux/template
@@ -2,7 +2,6 @@
 pkgname=syslinux
 version=6.03
 revision=7
-patch_args="-Np1"
 hostmakedepends="perl python nasm"
 makedepends="gnu-efi-libs libuuid-devel"
 short_desc="Boot loader for the Linux operating system"
diff --git a/srcpkgs/tilix/template b/srcpkgs/tilix/template
index 952643b213fc..f53d8f86fd87 100644
--- a/srcpkgs/tilix/template
+++ b/srcpkgs/tilix/template
@@ -15,7 +15,6 @@ license="MPL-2.0"
 homepage="https://gnunn1.github.io/tilix-web/"
 distfiles="https://github.com/gnunn1/${pkgname}/archive/${version}.tar.gz"
 checksum=2a9482770391d11d5edc8351d426c700c2cc6c194a30391ef2ae25bb7095b59b
-patch_args=-Np1
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/tmux/template b/srcpkgs/tmux/template
index b0f2178d49ec..25a22045bb72 100644
--- a/srcpkgs/tmux/template
+++ b/srcpkgs/tmux/template
@@ -13,7 +13,6 @@ homepage="https://tmux.github.io"
 changelog="https://raw.githubusercontent.com/tmux/tmux/master/CHANGES"
 distfiles="https://github.com/tmux/tmux/releases/download/${version}/tmux-${version}.tar.gz"
 checksum=664d345338c11cbe429d7ff939b92a5191e231a7c1ef42f381cebacb1e08a399
-patch_args=-Np1
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ucspi-tcp/template b/srcpkgs/ucspi-tcp/template
index f4ef8b1df9db..9012d8a20a20 100644
--- a/srcpkgs/ucspi-tcp/template
+++ b/srcpkgs/ucspi-tcp/template
@@ -9,7 +9,6 @@ license="Public Domain"
 homepage="http://cr.yp.to/ucspi-tcp.html"
 distfiles="http://cr.yp.to/ucspi-tcp/ucspi-tcp-${version}.tar.gz"
 checksum=4a0615cab74886f5b4f7e8fd32933a07b955536a3476d74ea087a3ea66a23e9c
-patch_args="-Np1"
 make_check=no # checks are only designed to check if an installation worked
 
 do_install() {
diff --git a/srcpkgs/unixbench/template b/srcpkgs/unixbench/template
index 039da3c88615..fa652eb2d999 100644
--- a/srcpkgs/unixbench/template
+++ b/srcpkgs/unixbench/template
@@ -13,7 +13,6 @@ license="GPL-2.0-only"
 homepage="https://github.com/kdlucas/byte-unixbench"
 distfiles="$homepage/archive/$_commit.tar.gz"
 checksum=48e6ed4e705c86e5481ddf0c0d5ef2850f84a0da7050d438dbfe1052c81fd93f
-patch_args="-p1"
 
 do_build() {
 	export CFLAGS=$CFLAGS
diff --git a/srcpkgs/unzip/template b/srcpkgs/unzip/template
index 84796994944f..e0831b589d7f 100644
--- a/srcpkgs/unzip/template
+++ b/srcpkgs/unzip/template
@@ -10,7 +10,6 @@ license="Info-ZIP"
 homepage="http://infozip.sf.net/"
 distfiles="${SOURCEFORGE_SITE}/infozip/${pkgname}60.tar.gz"
 checksum=036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
-patch_args="-Np1"
 
 do_build() {
 	CFLAGS+=" -D_FILE_OFFSET_BITS=64 -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT \
diff --git a/srcpkgs/util-linux/template b/srcpkgs/util-linux/template
index fbd3f00e6f80..4fb8292531ba 100644
--- a/srcpkgs/util-linux/template
+++ b/srcpkgs/util-linux/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/utils/util-linux/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/v${version%.${version#*.*.}}/${pkgname}-${version}.tar.xz"
 checksum=f7516ba9d8689343594356f0e5e1a5f0da34adfbc89023437735872bb5024c5f
-patch_args=-Np1
 
 # Create uuidd system account for uuidd.
 system_accounts="_uuidd"
diff --git a/srcpkgs/utox/template b/srcpkgs/utox/template
index 39e0a28eb624..8bb66365933a 100644
--- a/srcpkgs/utox/template
+++ b/srcpkgs/utox/template
@@ -15,7 +15,6 @@ license="MIT"
 homepage="https://github.com/uTox/uTox/"
 distfiles="https://github.com/uTox/uTox/releases/download/v${version}/uTox-${version}-full.tar.gz"
 checksum=fc883483d86b1830674f3b08515daa27ae54ab47646c7edc48a067e8d1e8c114
-patch_args="-Np1"
 nocross=yes
 
 post_install() {
diff --git a/srcpkgs/valgrind/template b/srcpkgs/valgrind/template
index 6010f29ca56f..71f90795aa96 100644
--- a/srcpkgs/valgrind/template
+++ b/srcpkgs/valgrind/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://valgrind.org/"
 distfiles="https://sourceware.org/pub/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=c91f3a2f7b02db0f3bc99479861656154d241d2fdb265614ba918cc6720a33ca
-patch_args="-Np1"
 
 CFLAGS="-fno-stack-protector"
 CXXFLAGS="-fno-stack-protector"
diff --git a/srcpkgs/viking/template b/srcpkgs/viking/template
index 6f7a469c2042..b02ad7498482 100644
--- a/srcpkgs/viking/template
+++ b/srcpkgs/viking/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/viking"
 distfiles="${SOURCEFORGE_SITE}/viking/viking-${version}.tar.bz2"
 checksum=855cbccd5f17ef0dc6d7e2d080a4b20383a079dfb882edd04dba602297030fa8
-patch_args="-Np1"
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/vscode/template b/srcpkgs/vscode/template
index 11b5f3eea411..9d225f9ea1cf 100644
--- a/srcpkgs/vscode/template
+++ b/srcpkgs/vscode/template
@@ -12,7 +12,6 @@ license="MIT"
 homepage="https://code.visualstudio.com/"
 distfiles="https://github.com/Microsoft/vscode/archive/${version}.tar.gz"
 checksum=36d3062740125ea4477ba671c53c27293660a1ae61d712d936af12c7f89ab17e
-patch_args="-Np1"
 
 if [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
 	broken="FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory"
diff --git a/srcpkgs/vtk/template b/srcpkgs/vtk/template
index edaf9dfc827a..4c1710087f83 100644
--- a/srcpkgs/vtk/template
+++ b/srcpkgs/vtk/template
@@ -24,7 +24,6 @@ license="BSD-3-Clause"
 homepage="https://www.vtk.org"
 distfiles="https://www.vtk.org/files/release/${version:0:3}/VTK-${version}.tar.gz"
 checksum=1b39a5e191c282861e7af4101eaa8585969a2de05f5646c9199a161213a622c7
-patch_args=-Np1
 nocross="hdf5 is nocross"
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/wayfire-plugins-extra/template b/srcpkgs/wayfire-plugins-extra/template
index e53f0536c99c..71e8bddcf947 100644
--- a/srcpkgs/wayfire-plugins-extra/template
+++ b/srcpkgs/wayfire-plugins-extra/template
@@ -12,7 +12,6 @@ license="MIT"
 homepage="https://wayfire.org/"
 distfiles="https://github.com/WayfireWM/wayfire-plugins-extra/archive/v${version}.tar.gz"
 checksum=e6377e7f2cd6b0a19fe0a256c819f801ee1d963524ed4e4930b702474bc04287
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/webrtc-audio-processing/template b/srcpkgs/webrtc-audio-processing/template
index e85bb18e1f68..30a420b28f57 100644
--- a/srcpkgs/webrtc-audio-processing/template
+++ b/srcpkgs/webrtc-audio-processing/template
@@ -10,7 +10,6 @@ license="BSD-3-Clause"
 homepage="http://freedesktop.org/software/pulseaudio/webrtc-audio-processing"
 distfiles="${homepage}/${pkgname}-${version}.tar.xz"
 checksum=a0fdd938fd85272d67e81572c5a4d9e200a0c104753cb3c209ded175ce3c5dbf
-patch_args="-p1"
 
 case "$XBPS_TARGET_MACHINE" in
 	# Disable neon for the arm* architectures
diff --git a/srcpkgs/whipper/template b/srcpkgs/whipper/template
index 8826ee845ab9..f25ab359c284 100644
--- a/srcpkgs/whipper/template
+++ b/srcpkgs/whipper/template
@@ -15,7 +15,6 @@ homepage="https://github.com/whipper-team/whipper"
 distfiles="https://github.com/whipper-team/whipper/archive/v${version}.tar.gz"
 checksum=3caceeec7ca73c8b73147884b0f8eeacbe66af52900021b564118b88d23afbd2
 
-patch_args="-Np1"
 
 pre_build() {
 # Temporary workaround for https://github.com/whipper-team/whipper/issues/428
diff --git a/srcpkgs/wireplumber/template b/srcpkgs/wireplumber/template
index cf138e7d9e8b..9c8d44ab18e7 100644
--- a/srcpkgs/wireplumber/template
+++ b/srcpkgs/wireplumber/template
@@ -14,7 +14,6 @@ license="MIT"
 homepage="https://pipewire.pages.freedesktop.org/wireplumber"
 distfiles="https://gitlab.freedesktop.org/pipewire/wireplumber/-/archive/$version/wireplumber-$version.tar.gz"
 checksum=980a10986fea1ca7ff7daad41f467028db494741235697d4a09767236947d047
-patch_args=-Np1
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/wlsunset/template b/srcpkgs/wlsunset/template
index 5ec0aa3d8c45..984ee8cbfc67 100644
--- a/srcpkgs/wlsunset/template
+++ b/srcpkgs/wlsunset/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="https://sr.ht/~kennylevinsen/wlsunset/"
 distfiles="https://git.sr.ht/~kennylevinsen/wlsunset/archive/${version}.tar.gz"
 checksum=88bce695722a09d79545f14d404cc0659f7176bb08d5db5f4f23228b6ba8bb03
-patch_args=-Np1
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/wpa_supplicant/template b/srcpkgs/wpa_supplicant/template
index 064fd6f71f5d..d5f2a277cca8 100644
--- a/srcpkgs/wpa_supplicant/template
+++ b/srcpkgs/wpa_supplicant/template
@@ -9,7 +9,6 @@ license="BSD-3-Clause"
 homepage="http://w1.fi/wpa_supplicant/"
 distfiles="http://w1.fi/releases/${pkgname}-${version}.tar.gz"
 checksum=fcbdee7b4a64bea8177973299c8c824419c413ec2e3a95db63dd6a5dc3541f17
-patch_args="-Np1"
 
 hostmakedepends="pkg-config"
 makedepends="libnl3-devel openssl-devel $(vopt_if dbus dbus-devel) $(vopt_if readline readline-devel)"
diff --git a/srcpkgs/wrk/template b/srcpkgs/wrk/template
index b2deb5e0ffb8..2e85b6a8a510 100644
--- a/srcpkgs/wrk/template
+++ b/srcpkgs/wrk/template
@@ -12,7 +12,6 @@ license="Apache-2.0"
 homepage="https://github.com/wg/wrk"
 distfiles="https://github.com/wg/wrk/archive/${version}.tar.gz"
 checksum=6fa1020494de8c337913fd139d7aa1acb9a020de6f7eb9190753aa4b1e74271e
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*) ;;
diff --git a/srcpkgs/x2goserver/template b/srcpkgs/x2goserver/template
index 2774f84e960e..89fe76a4e8a1 100644
--- a/srcpkgs/x2goserver/template
+++ b/srcpkgs/x2goserver/template
@@ -19,7 +19,6 @@ checksum=6776aaa354f5a44e349f0b3c176d4988c88a618c2edf46c98a37ae89c069dcd0
 system_groups="x2gouser"
 system_accounts="x2gouser"
 x2gouser_homedir="/var/lib/x2go"
-patch_args="-Np1"
 conf_files="
  /etc/x2go/desktopsharing/*
  /etc/x2go/x2gosql/*
diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template
index c6af59bd635a..8f986d22f9f3 100644
--- a/srcpkgs/xbps/template
+++ b/srcpkgs/xbps/template
@@ -11,7 +11,6 @@ homepage="https://github.com/void-linux/xbps"
 changelog="https://github.com/void-linux/xbps/blob/master/NEWS"
 distfiles="https://github.com/void-linux/xbps/archive/${version}.tar.gz"
 checksum=0cbd8d5f23a62047c75974bca21da9f004a94efffd7f37c68562a8dbc869fb2a
-patch_args=-Np1
 
 hostmakedepends="pkgconf"
 checkdepends="kyua"
diff --git a/srcpkgs/xdgmenumaker/template b/srcpkgs/xdgmenumaker/template
index d79c6c0929a4..a71ccd9b3759 100644
--- a/srcpkgs/xdgmenumaker/template
+++ b/srcpkgs/xdgmenumaker/template
@@ -11,7 +11,6 @@ homepage="https://github.com/gapan/xdgmenumaker"
 distfiles="https://github.com/gapan/${pkgname}/archive/${version}.tar.gz"
 checksum=46192e7e4e25b024c0516d83e8fc2c503dd1ac8e5f8c1998d3e9e4b3cbf8919b
 python_version=3
-patch_args="-Np1"
 
 pre_install() {
 	# Install pre-generated man page
diff --git a/srcpkgs/xen/template b/srcpkgs/xen/template
index 092460ea73e5..d916f29ac384 100644
--- a/srcpkgs/xen/template
+++ b/srcpkgs/xen/template
@@ -27,7 +27,6 @@ checksum="cf0d7316ad674491f49b7ef0518cb1d906a2e3bfad639deef0ef2343b119ac0c
  4850691d6f196eaf4d6210f2de01383251b3ea1b928141da9ce28c0b06a90938"
 skip_extraction="${_git_tag_ipxe}.tar.gz"
 nopie=yes
-patch_args='-Np1'
 ignore_elf_dirs="/usr/share/xen/qemu /usr/share/qemu-xen/qemu"
 nostrip_files="
  hppa-firmware.img
diff --git a/srcpkgs/xpdf/template b/srcpkgs/xpdf/template
index 4f3c4f0ac66a..3c66f615f115 100644
--- a/srcpkgs/xpdf/template
+++ b/srcpkgs/xpdf/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="http://www.xpdfreader.com/"
 distfiles="https://dl.xpdfreader.com/xpdf-${version}.tar.gz"
 checksum=0fe4274374c330feaadcebb7bd7700cb91203e153b26aa95952f02bf130be846
-patch_args="-Np1"
 
 post_extract() {
 	sed -i 's:/usr/share/fonts/type1/gsfonts:/usr/share/fonts/Type1:' xpdf/GlobalParams.cc
diff --git a/srcpkgs/xzoom/template b/srcpkgs/xzoom/template
index ea5accf37d78..fd5c19eb6bed 100644
--- a/srcpkgs/xzoom/template
+++ b/srcpkgs/xzoom/template
@@ -10,7 +10,6 @@ license="Custom"
 homepage="http://sunsite.unc.edu/pub/linux/libs/X/"
 distfiles="http://webdiis.unizar.es/pub/unix/X11/${pkgname}-${version}.tgz"
 checksum=b26bfd692d3e1d30e8d524d4018fc3f0fe847983a2778a4a2496784bfc2df44b
-patch_args="-Np1"
 
 do_build() {
 	CC=cc xmkmf
diff --git a/srcpkgs/yaboot/template b/srcpkgs/yaboot/template
index bab154d8c93d..8d2adf264b73 100644
--- a/srcpkgs/yaboot/template
+++ b/srcpkgs/yaboot/template
@@ -15,7 +15,6 @@ distfiles="https://cdimage.debian.org/cdimage/cd-sources/yaboot_${version}.orig.
  http://ftp.be.debian.org/pub/linux/kernel/people/tytso/e2fsprogs/e2fsprogs-${_e2fsprogs_ver}.tar.gz"
 checksum="2fb738d8fd48b94ab2534a4fdf63738ad02c1a30f4b2add91f837baff8fa2aa1
  3f8ac1fedd7c4bec480afcbe4acabdd4ac59ec0446a0fd50c8975cd0aad7b176"
-patch_args="-Np1"
 # Don't want stripped yaboot bits to leak into -dbg
 nostrip_files=yaboot
 
diff --git a/srcpkgs/zeroc-mcpp/template b/srcpkgs/zeroc-mcpp/template
index 497813ba0e04..db9b9cc8e12b 100644
--- a/srcpkgs/zeroc-mcpp/template
+++ b/srcpkgs/zeroc-mcpp/template
@@ -14,7 +14,6 @@ distfiles="https://github.com/zeroc-ice/mcpp/archive/v${version}.tar.gz"
 checksum=1a426cf2d513ffd66634384d5445dcce1aac83be1789a56044013eab8ca8ffff
 nostrip=yes
 conflicts=mcpp-devel
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/zziplib/template b/srcpkgs/zziplib/template
index 2026f3e4a521..ab5af234af62 100644
--- a/srcpkgs/zziplib/template
+++ b/srcpkgs/zziplib/template
@@ -12,7 +12,6 @@ homepage="https://github.com/gdraheim/zziplib"
 changelog="https://raw.githubusercontent.com/gdraheim/zziplib/master/ChangeLog"
 distfiles="https://github.com/gdraheim/zziplib/archive/v${version}.tar.gz"
 checksum=93ef44bf1f1ea24fc66080426a469df82fa631d13ca3b2e4abaeab89538518dc
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DZZIPTEST=OFF"

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [RFC] switch patch_args to -Np1
  2021-06-18  1:38 [PR PATCH] [RFC] switch patch_args to -Np1 sgn
@ 2021-06-18  2:41 ` q66
  2021-06-18  3:57 ` sgn
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: q66 @ 2021-06-18  2:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 216 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/31550#issuecomment-863712053

Comment:
we should not do it this way, we should instead patch all the patches as needed

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [RFC] switch patch_args to -Np1
  2021-06-18  1:38 [PR PATCH] [RFC] switch patch_args to -Np1 sgn
  2021-06-18  2:41 ` q66
@ 2021-06-18  3:57 ` sgn
  2021-06-18  4:13 ` Vaelatern
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: sgn @ 2021-06-18  3:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 389 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/31550#issuecomment-863736246

Comment:
> we should not do it this way, we should instead patch all the patches as needed

Yes, but I would like to do it step by step in order to limit the # of changes in each step. I.e. the next change will be patching the patch for packages start with "a".

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [RFC] switch patch_args to -Np1
  2021-06-18  1:38 [PR PATCH] [RFC] switch patch_args to -Np1 sgn
  2021-06-18  2:41 ` q66
  2021-06-18  3:57 ` sgn
@ 2021-06-18  4:13 ` Vaelatern
  2021-06-18  7:27 ` sgn
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Vaelatern @ 2021-06-18  4:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

New comment by Vaelatern on void-packages repository

https://github.com/void-linux/void-packages/pull/31550#issuecomment-863741423

Comment:
I think q66 is right, we should alter patches on a per-template basis when the template comes up again.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [RFC] switch patch_args to -Np1
  2021-06-18  1:38 [PR PATCH] [RFC] switch patch_args to -Np1 sgn
                   ` (2 preceding siblings ...)
  2021-06-18  4:13 ` Vaelatern
@ 2021-06-18  7:27 ` sgn
  2021-06-18 11:30 ` [PR PATCH] [Updated] " sgn
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: sgn @ 2021-06-18  7:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/31550#issuecomment-863822818

Comment:
> I think q66 is right, we should alter patches on a per-template basis when the template comes up again.

I think q66 meant to alter all patches in one pass?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] [RFC] switch patch_args to -Np1
  2021-06-18  1:38 [PR PATCH] [RFC] switch patch_args to -Np1 sgn
                   ` (3 preceding siblings ...)
  2021-06-18  7:27 ` sgn
@ 2021-06-18 11:30 ` sgn
  2021-06-18 11:33 ` sgn
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: sgn @ 2021-06-18 11:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 383 bytes --]

There is an updated pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages patch-args-Np1
https://github.com/void-linux/void-packages/pull/31550

[RFC] switch patch_args to -Np1
[ci skip]

Being suggested on IRC @void-linux/pkg-committers 

A patch file from https://github.com/void-linux/void-packages/pull/31550.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-patch-args-Np1-31550.patch --]
[-- Type: text/x-diff, Size: 1174104 bytes --]

From 6ca29cb8f814d664172d579c5ee61aef820134fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:09:47 +0700
Subject: [PATCH 1/8] grub: unify patch_args to -Np1

---
 .../0004-add-GRUB_COLOR_variables.patch       |  8 +++----
 .../grub-install-pvxen-paths.patch.args       |  1 -
 .../grub/patches/ieee1275-clear-reset.patch   |  4 ++--
 .../patches/install_powerpc_machtypes.patch   | 24 +++++++++----------
 srcpkgs/grub/patches/os-prober-osx86.patch    |  4 ++--
 .../grub/patches/ppc64el-disable-vsx.patch    |  4 ++--
 srcpkgs/grub/template                         |  1 +
 7 files changed, 23 insertions(+), 23 deletions(-)
 delete mode 100644 srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args

diff --git a/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch b/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch
index f899717c4d99..c113a81d5754 100644
--- a/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch
+++ b/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch
@@ -1,7 +1,7 @@
 diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
 index 3390ba9..c416489 100644
---- util/grub-mkconfig.in
-+++ util/grub-mkconfig.in
+--- a/util/grub-mkconfig.in
++++ b/util/grub-mkconfig.in
 @@ -218,6 +218,8 @@ export GRUB_DEFAULT \
    GRUB_THEME \
    GRUB_GFXPAYLOAD_LINUX \
@@ -13,8 +13,8 @@ index 3390ba9..c416489 100644
    GRUB_ENABLE_CRYPTODISK \
 diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in
 index d2e7252..8259f45 100644
---- util/grub.d/00_header.in
-+++ util/grub.d/00_header.in
+--- a/util/grub.d/00_header.in
++++ b/util/grub.d/00_header.in
 @@ -125,6 +125,14 @@ cat <<EOF
  
  EOF
diff --git a/srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args b/srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args
deleted file mode 100644
index 2eba1cb3c5ce..000000000000
--- a/srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args
+++ /dev/null
@@ -1 +0,0 @@
--Np1
diff --git a/srcpkgs/grub/patches/ieee1275-clear-reset.patch b/srcpkgs/grub/patches/ieee1275-clear-reset.patch
index 96b9bd63f125..18ff7733bdb1 100644
--- a/srcpkgs/grub/patches/ieee1275-clear-reset.patch
+++ b/srcpkgs/grub/patches/ieee1275-clear-reset.patch
@@ -19,8 +19,8 @@ Patch-Name: ieee1275-clear-reset.patch
 
 diff --git a/grub-core/term/terminfo.c b/grub-core/term/terminfo.c
 index f0d3e3deb..7cb7909c8 100644
---- grub-core/term/terminfo.c
-+++ grub-core/term/terminfo.c
+--- a/grub-core/term/terminfo.c
++++ b/grub-core/term/terminfo.c
 @@ -151,7 +151,7 @@ grub_terminfo_set_current (struct grub_term_output *term,
        /* Clear the screen.  Using serial console, screen(1) only recognizes the
         * ANSI escape sequence.  Using video console, Apple Open Firmware
diff --git a/srcpkgs/grub/patches/install_powerpc_machtypes.patch b/srcpkgs/grub/patches/install_powerpc_machtypes.patch
index ce5e36cb4a57..209b726c77ee 100644
--- a/srcpkgs/grub/patches/install_powerpc_machtypes.patch
+++ b/srcpkgs/grub/patches/install_powerpc_machtypes.patch
@@ -26,8 +26,8 @@ Patch-Name: install_powerpc_machtypes.patch
 
 diff --git a/grub-core/osdep/basic/platform.c b/grub-core/osdep/basic/platform.c
 index 4b5502aeb..2ab907976 100644
---- grub-core/osdep/basic/platform.c
-+++ grub-core/osdep/basic/platform.c
+--- a/grub-core/osdep/basic/platform.c
++++ b/grub-core/osdep/basic/platform.c
 @@ -24,3 +24,8 @@ grub_install_get_default_x86_platform (void)
    return "i386-pc";
  }
@@ -39,8 +39,8 @@ index 4b5502aeb..2ab907976 100644
 +}
 diff --git a/grub-core/osdep/linux/platform.c b/grub-core/osdep/linux/platform.c
 index 35f1bcc0e..9805c36d4 100644
---- grub-core/osdep/linux/platform.c
-+++ grub-core/osdep/linux/platform.c
+--- a/grub-core/osdep/linux/platform.c
++++ b/grub-core/osdep/linux/platform.c
 @@ -23,6 +23,7 @@
  #include <grub/emu/misc.h>
  #include <sys/types.h>
@@ -126,8 +126,8 @@ index 35f1bcc0e..9805c36d4 100644
 +}
 diff --git a/grub-core/osdep/unix/platform.c b/grub-core/osdep/unix/platform.c
 index a3fcfcaca..28cb37e15 100644
---- grub-core/osdep/unix/platform.c
-+++ grub-core/osdep/unix/platform.c
+--- a/grub-core/osdep/unix/platform.c
++++ b/grub-core/osdep/unix/platform.c
 @@ -212,13 +212,29 @@ grub_install_register_ieee1275 (int is_prep, const char *install_device,
    else
      boot_device = get_ofpathname (install_device);
@@ -166,8 +166,8 @@ index a3fcfcaca..28cb37e15 100644
    free (boot_device);
 diff --git a/grub-core/osdep/windows/platform.c b/grub-core/osdep/windows/platform.c
 index 912269191..c30025b13 100644
---- grub-core/osdep/windows/platform.c
-+++ grub-core/osdep/windows/platform.c
+--- a/grub-core/osdep/windows/platform.c
++++ b/grub-core/osdep/windows/platform.c
 @@ -128,6 +128,12 @@ grub_install_get_default_x86_platform (void)
      return "i386-efi";
  }
@@ -183,8 +183,8 @@ index 912269191..c30025b13 100644
  {
 diff --git a/include/grub/util/install.h b/include/grub/util/install.h
 index 5ca4811cd..9f517a1bb 100644
---- include/grub/util/install.h
-+++ include/grub/util/install.h
+--- a/include/grub/util/install.h
++++ b/include/grub/util/install.h
 @@ -206,6 +206,9 @@ grub_install_create_envblk_file (const char *name);
  const char *
  grub_install_get_default_x86_platform (void);
@@ -197,8 +197,8 @@ index 5ca4811cd..9f517a1bb 100644
  			   const char *efifile_path,
 diff --git a/util/grub-install.c b/util/grub-install.c
 index e1a0202da..70b22eec4 100644
---- util/grub-install.c
-+++ util/grub-install.c
+--- a/util/grub-install.c
++++ b/util/grub-install.c
 @@ -1155,7 +1155,18 @@ main (int argc, char *argv[])
  
    if (platform == GRUB_INSTALL_PLATFORM_POWERPC_IEEE1275)
diff --git a/srcpkgs/grub/patches/os-prober-osx86.patch b/srcpkgs/grub/patches/os-prober-osx86.patch
index 5fabbeb6d993..5226a6def3b2 100644
--- a/srcpkgs/grub/patches/os-prober-osx86.patch
+++ b/srcpkgs/grub/patches/os-prober-osx86.patch
@@ -1,7 +1,7 @@
 Patches OS X detection out of os-prober hook on non-x86 architectures. The
 menu entries generated for those are invalid for non-x86 Mac stuff.
---- util/grub.d/30_os-prober.in
-+++ util/grub.d/30_os-prober.in
+--- a/util/grub.d/30_os-prober.in
++++ b/util/grub.d/30_os-prober.in
 @@ -42,6 +42,11 @@ if [ -z "${OSPROBED}" ] ; then
  fi
  
diff --git a/srcpkgs/grub/patches/ppc64el-disable-vsx.patch b/srcpkgs/grub/patches/ppc64el-disable-vsx.patch
index 1f4c40181521..67744dd23beb 100644
--- a/srcpkgs/grub/patches/ppc64el-disable-vsx.patch
+++ b/srcpkgs/grub/patches/ppc64el-disable-vsx.patch
@@ -22,8 +22,8 @@ Patch-Name: ppc64el-disable-vsx.patch
 
 diff --git a/grub-core/kern/powerpc/ieee1275/startup.S b/grub-core/kern/powerpc/ieee1275/startup.S
 index 21c884b43..de9a9601a 100644
---- grub-core/kern/powerpc/ieee1275/startup.S
-+++ grub-core/kern/powerpc/ieee1275/startup.S
+--- a/grub-core/kern/powerpc/ieee1275/startup.S
++++ b/grub-core/kern/powerpc/ieee1275/startup.S
 @@ -20,6 +20,8 @@
  #include <grub/symbol.h>
  #include <grub/offsets.h>
diff --git a/srcpkgs/grub/template b/srcpkgs/grub/template
index 69cea9ae19a3..11cbdc495f67 100644
--- a/srcpkgs/grub/template
+++ b/srcpkgs/grub/template
@@ -16,6 +16,7 @@ checksum=e5292496995ad42dabe843a0192cf2a2c502e7ffcc7479398232b10a472df77d
 
 archs="i686* x86_64* aarch64* ppc ppc-musl ppc64*"
 nopie=yes
+patch_args=-Np1
 
 subpackages="grub-utils"
 # _SUPPLEMENTARY_BUILDS is a list of <TARGET>-<PLATFORN> version of grub to build

From c0e63bdd7ea0582973f15e23c21446de82409080 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 08:31:53 +0700
Subject: [PATCH 2/8] srcpkgs: adjust patch_args to -Np1 for patches being
 symlinked

---
 srcpkgs/cmake/patches/musl-test.patch          |  4 ++--
 srcpkgs/cmake/patches/test-none.patch          |  4 ++--
 srcpkgs/cmake/template                         |  1 +
 srcpkgs/gsimplecal-gtk2/patches/musl.patch     |  4 ++--
 srcpkgs/gsimplecal-gtk2/template               |  1 +
 ...list_unlink_in_pthread_exit_after_all.patch |  4 ++--
 ...threads_minus_1_as_relaxed_atomic_for.patch | 12 ++++++------
 ...down_size_of_some_libc_struct_members.patch |  4 ++--
 ...ipping_for_processes_that_return_to_s.patch | 16 ++++++++--------
 srcpkgs/musl/patches/CVE-2020-28928.patch      |  4 ++--
 srcpkgs/musl/patches/aarch64-fregs.patch       |  8 ++++----
 srcpkgs/musl/patches/epoll_cp.patch            |  4 ++--
 srcpkgs/musl/patches/isascii.patch             |  4 ++--
 srcpkgs/musl/patches/mo_lookup.patch           |  4 ++--
 srcpkgs/musl/patches/ppc-pt_regs.patch         |  8 ++++----
 srcpkgs/musl/patches/ppc64-fpregset_t.patch    |  4 ++--
 srcpkgs/musl/patches/ppcle.patch               |  4 ++--
 srcpkgs/musl/patches/reallocarray.patch        |  6 +++---
 srcpkgs/musl/template                          |  1 +
 ...al.c-define-__SIGRTMIN-MAX-for-non-GN.patch |  4 ++--
 .../patches/fix-softfloat-fesetround.patch     |  4 ++--
 srcpkgs/qemu/patches/mmap-mremap-efault.patch  |  4 ++--
 srcpkgs/qemu/patches/musl-9p-limits_h.patch    |  4 ++--
 .../qemu/patches/musl-fix-SIOCGSTAMPNS.patch   |  4 ++--
 .../musl-fix-sigevent-and-sigval_t.patch       |  4 ++--
 .../qemu/patches/musl-initialize-msghdr.patch  |  4 ++--
 srcpkgs/qemu/patches/musl-ppc.patch            | 12 ++++++------
 srcpkgs/qemu/patches/time64.patch              |  8 ++++----
 srcpkgs/qemu/patches/xxx-ppcle.patch           | 18 +++++++++---------
 srcpkgs/qemu/template                          |  1 +
 srcpkgs/util-linux/patches/fix-musl.patch      |  4 ++--
 srcpkgs/util-linux/template                    |  1 +
 srcpkgs/xbps/patches/cflags.patch              |  4 ++--
 srcpkgs/xbps/template                          |  1 +
 34 files changed, 90 insertions(+), 84 deletions(-)

diff --git a/srcpkgs/cmake/patches/musl-test.patch b/srcpkgs/cmake/patches/musl-test.patch
index 4da8c2f9cfc6..0329b5efd2f5 100644
--- a/srcpkgs/cmake/patches/musl-test.patch
+++ b/srcpkgs/cmake/patches/musl-test.patch
@@ -1,5 +1,5 @@
---- Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake.orig	2020-12-05 13:27:21.098078774 +0700
-+++ Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake	2020-12-05 13:29:19.931553018 +0700
+--- a/Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake.orig	2020-12-05 13:27:21.098078774 +0700
++++ b/Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake	2020-12-05 13:29:19.931553018 +0700
 @@ -33,9 +33,9 @@
    [[librunpath_parent_unresolved\.so]]
    [[librunpath_unresolved\.so]]
diff --git a/srcpkgs/cmake/patches/test-none.patch b/srcpkgs/cmake/patches/test-none.patch
index 3a5540551525..e0b6886bb0a2 100644
--- a/srcpkgs/cmake/patches/test-none.patch
+++ b/srcpkgs/cmake/patches/test-none.patch
@@ -24,8 +24,8 @@ Let's define them when non main stream like None is specified as CMAKE_BUILD_TY
 
 diff --git Tests/ConfigSources/CMakeLists.txt Tests/ConfigSources/CMakeLists.txt
 index a3d98f685f..f83759ca10 100644
---- Tests/ConfigSources/CMakeLists.txt
-+++ Tests/ConfigSources/CMakeLists.txt
+--- a/Tests/ConfigSources/CMakeLists.txt
++++ b/Tests/ConfigSources/CMakeLists.txt
 @@ -74,10 +74,10 @@ add_custom_command(APPEND
    VERBATIM
    )
diff --git a/srcpkgs/cmake/template b/srcpkgs/cmake/template
index 5d3308f93b5d..e9ee3debf3c0 100644
--- a/srcpkgs/cmake/template
+++ b/srcpkgs/cmake/template
@@ -17,6 +17,7 @@ homepage="https://www.cmake.org"
 distfiles="https://www.cmake.org/files/v${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=4d008ac3461e271fcfac26a05936f77fc7ab64402156fb371d41284851a651b8
 replaces="cmake-bootstrap>=0"
+patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	build_style=cmake
diff --git a/srcpkgs/gsimplecal-gtk2/patches/musl.patch b/srcpkgs/gsimplecal-gtk2/patches/musl.patch
index 2295d20b338d..eef2a786bb73 100644
--- a/srcpkgs/gsimplecal-gtk2/patches/musl.patch
+++ b/srcpkgs/gsimplecal-gtk2/patches/musl.patch
@@ -1,5 +1,5 @@
---- src/Unique.cpp.orig	2016-04-24 08:08:43.921536576 +0200
-+++ src/Unique.cpp	2016-04-24 08:09:18.615896283 +0200
+--- a/src/Unique.cpp.orig	2016-04-24 08:08:43.921536576 +0200
++++ b/src/Unique.cpp	2016-04-24 08:09:18.615896283 +0200
 @@ -1,10 +1,16 @@
 +#ifdef HAVE_CONFIG_H
 +#include "config.h"
diff --git a/srcpkgs/gsimplecal-gtk2/template b/srcpkgs/gsimplecal-gtk2/template
index 73cf3bd39b88..c7339f62d60e 100644
--- a/srcpkgs/gsimplecal-gtk2/template
+++ b/srcpkgs/gsimplecal-gtk2/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="http://dmedvinsky.github.io/gsimplecal/"
 distfiles="https://github.com/dmedvinsky/${pkgname%-*}/archive/v${version}.tar.gz"
 checksum="660cac7333d3507203a008e142e2b8f5dfcf0735b6ccabdd8d3d902b5d2c40e9"
+patch_args=-Np1
 
 replaces="gsimplecal-gtk3>=0"
 
diff --git a/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch b/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch
index e774afcd52e4..7c1a55bc85e3 100644
--- a/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch
+++ b/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch
@@ -16,8 +16,8 @@ __dl_thread_cleanup.
 
 diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c
 index 5f491092..6a3b0c21 100644
---- src/thread/pthread_create.c
-+++ src/thread/pthread_create.c
+--- a/src/thread/pthread_create.c
++++ b/src/thread/pthread_create.c
 @@ -90,14 +90,7 @@ _Noreturn void __pthread_exit(void *result)
  		exit(0);
  	}
diff --git a/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch b/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch
index 850c43c3cc78..e060762e99a6 100644
--- a/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch
+++ b/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch
@@ -36,8 +36,8 @@ needs to be taken to produce a safe design.
 
 diff --git a/src/internal/libc.h b/src/internal/libc.h
 index ac97dc7e..c0614852 100644
---- src/internal/libc.h
-+++ src/internal/libc.h
+--- a/src/internal/libc.h
++++ b/src/internal/libc.h
 @@ -21,7 +21,7 @@ struct __libc {
  	int can_do_threads;
  	int threaded;
@@ -49,8 +49,8 @@ index ac97dc7e..c0614852 100644
  	size_t tls_size, tls_align, tls_cnt;
 diff --git a/src/malloc/malloc.c b/src/malloc/malloc.c
 index 96982596..2553a62e 100644
---- src/malloc/malloc.c
-+++ src/malloc/malloc.c
+--- a/src/malloc/malloc.c
++++ b/src/malloc/malloc.c
 @@ -26,7 +26,7 @@ int __malloc_replaced;
  
  static inline void lock(volatile int *lk)
@@ -62,8 +62,8 @@ index 96982596..2553a62e 100644
  
 diff --git a/src/thread/__lock.c b/src/thread/__lock.c
 index 45557c88..5b9b144e 100644
---- src/thread/__lock.c
-+++ src/thread/__lock.c
+--- a/src/thread/__lock.c
++++ b/src/thread/__lock.c
 @@ -18,7 +18,7 @@
  
  void __lock(volatile int *l)
diff --git a/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch b/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch
index 60dcac24bda6..540c5d950195 100644
--- a/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch
+++ b/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch
@@ -10,8 +10,8 @@ these are all flags that can be single-byte values.
 
 diff --git a/src/internal/libc.h b/src/internal/libc.h
 index c0614852..d47f58e0 100644
---- src/internal/libc.h
-+++ src/internal/libc.h
+--- a/src/internal/libc.h
++++ b/src/internal/libc.h
 @@ -18,9 +18,9 @@ struct tls_module {
  };
  
diff --git a/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch b/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch
index 09847c32b6a8..e703c1f403c5 100644
--- a/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch
+++ b/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch
@@ -19,8 +19,8 @@ memory load after the lock is taken.
 
 diff --git a/src/internal/libc.h b/src/internal/libc.h
 index d47f58e0..619bba86 100644
---- src/internal/libc.h
-+++ src/internal/libc.h
+--- a/src/internal/libc.h
++++ b/src/internal/libc.h
 @@ -21,6 +21,7 @@ struct __libc {
  	char can_do_threads;
  	char threaded;
@@ -31,8 +31,8 @@ index d47f58e0..619bba86 100644
  	struct tls_module *tls_head;
 diff --git a/src/malloc/malloc.c b/src/malloc/malloc.c
 index 2553a62e..a803d4c9 100644
---- src/malloc/malloc.c
-+++ src/malloc/malloc.c
+--- a/src/malloc/malloc.c
++++ b/src/malloc/malloc.c
 @@ -26,8 +26,11 @@ int __malloc_replaced;
  
  static inline void lock(volatile int *lk)
@@ -48,8 +48,8 @@ index 2553a62e..a803d4c9 100644
  static inline void unlock(volatile int *lk)
 diff --git a/src/thread/__lock.c b/src/thread/__lock.c
 index 5b9b144e..60eece49 100644
---- src/thread/__lock.c
-+++ src/thread/__lock.c
+--- a/src/thread/__lock.c
++++ b/src/thread/__lock.c
 @@ -18,9 +18,11 @@
  
  void __lock(volatile int *l)
@@ -65,8 +65,8 @@ index 5b9b144e..60eece49 100644
  	for (unsigned i = 0; i < 10; ++i) {
 diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c
 index 6a3b0c21..6bdfb44f 100644
---- src/thread/pthread_create.c
-+++ src/thread/pthread_create.c
+--- a/src/thread/pthread_create.c
++++ b/src/thread/pthread_create.c
 @@ -118,8 +118,8 @@ _Noreturn void __pthread_exit(void *result)
  	 * until the lock is released, which only happens after SYS_exit
  	 * has been called, via the exit futex address pointing at the lock.
diff --git a/srcpkgs/musl/patches/CVE-2020-28928.patch b/srcpkgs/musl/patches/CVE-2020-28928.patch
index 9075ae1f8977..b3ff3b4ee08f 100644
--- a/srcpkgs/musl/patches/CVE-2020-28928.patch
+++ b/srcpkgs/musl/patches/CVE-2020-28928.patch
@@ -1,5 +1,5 @@
---- src/multibyte/wcsnrtombs.c
-+++ src/multibyte/wcsnrtombs.c
+--- a/src/multibyte/wcsnrtombs.c
++++ b/src/multibyte/wcsnrtombs.c
 @@ -1,41 +1,33 @@
  #include <wchar.h>
 +#include <limits.h>
diff --git a/srcpkgs/musl/patches/aarch64-fregs.patch b/srcpkgs/musl/patches/aarch64-fregs.patch
index 9c89de447320..024eed11a8e5 100644
--- a/srcpkgs/musl/patches/aarch64-fregs.patch
+++ b/srcpkgs/musl/patches/aarch64-fregs.patch
@@ -2,8 +2,8 @@ Use types compatible with glibc/kernel headers.
 
 diff --git a/arch/aarch64/bits/signal.h b/arch/aarch64/bits/signal.h
 index b71261f5..5098c734 100644
---- arch/aarch64/bits/signal.h
-+++ arch/aarch64/bits/signal.h
+--- a/arch/aarch64/bits/signal.h
++++ b/arch/aarch64/bits/signal.h
 @@ -11,7 +11,7 @@ typedef unsigned long greg_t;
  typedef unsigned long gregset_t[34];
  
@@ -24,8 +24,8 @@ index b71261f5..5098c734 100644
  	struct _aarch64_ctx head;
 diff --git a/arch/aarch64/bits/user.h b/arch/aarch64/bits/user.h
 index d12cdf7f..8a1002aa 100644
---- arch/aarch64/bits/user.h
-+++ arch/aarch64/bits/user.h
+--- a/arch/aarch64/bits/user.h
++++ b/arch/aarch64/bits/user.h
 @@ -6,7 +6,7 @@ struct user_regs_struct {
  };
  
diff --git a/srcpkgs/musl/patches/epoll_cp.patch b/srcpkgs/musl/patches/epoll_cp.patch
index 429aff70b137..92f47551ad8e 100644
--- a/srcpkgs/musl/patches/epoll_cp.patch
+++ b/srcpkgs/musl/patches/epoll_cp.patch
@@ -12,8 +12,8 @@ cancellation points should be done.
 
 diff --git src/linux/epoll.c src/linux/epoll.c
 index deff5b10..93baa814 100644
---- src/linux/epoll.c
-+++ src/linux/epoll.c
+--- a/src/linux/epoll.c
++++ b/src/linux/epoll.c
 @@ -24,9 +24,9 @@ int epoll_ctl(int fd, int op, int fd2, struct epoll_event *ev)
  
  int epoll_pwait(int fd, struct epoll_event *ev, int cnt, int to, const sigset_t *sigs)
diff --git a/srcpkgs/musl/patches/isascii.patch b/srcpkgs/musl/patches/isascii.patch
index 372ab1f44ab2..6719d2ee188f 100644
--- a/srcpkgs/musl/patches/isascii.patch
+++ b/srcpkgs/musl/patches/isascii.patch
@@ -7,8 +7,8 @@ analogous to commit a60457c84a4b59ab564d7f4abb660a70283ba98d.
 
 diff --git include/ctype.h include/ctype.h
 index 7936536f..32bcef4d 100644
---- include/ctype.h
-+++ include/ctype.h
+--- a/include/ctype.h
++++ b/include/ctype.h
 @@ -64,7 +64,9 @@ int   isascii(int);
  int   toascii(int);
  #define _tolower(a) ((a)|0x20)
diff --git a/srcpkgs/musl/patches/mo_lookup.patch b/srcpkgs/musl/patches/mo_lookup.patch
index c23eaf33bc37..ae86e33c9c70 100644
--- a/srcpkgs/musl/patches/mo_lookup.patch
+++ b/srcpkgs/musl/patches/mo_lookup.patch
@@ -6,8 +6,8 @@ and probably others.
 
 	--xtraeme
 
---- src/locale/__mo_lookup.c.orig	2019-06-26 09:55:36.843012674 +0200
-+++ src/locale/__mo_lookup.c	2019-06-26 09:56:11.529443955 +0200
+--- a/src/locale/__mo_lookup.c.orig	2019-06-26 09:55:36.843012674 +0200
++++ b/src/locale/__mo_lookup.c	2019-06-26 09:56:11.529443955 +0200
 @@ -13,7 +13,7 @@ const char *__mo_lookup(const void *p, s
  	uint32_t b = 0, n = swapc(mo[2], sw);
  	uint32_t o = swapc(mo[3], sw);
diff --git a/srcpkgs/musl/patches/ppc-pt_regs.patch b/srcpkgs/musl/patches/ppc-pt_regs.patch
index 93ab51e25c06..45815321bf0f 100644
--- a/srcpkgs/musl/patches/ppc-pt_regs.patch
+++ b/srcpkgs/musl/patches/ppc-pt_regs.patch
@@ -12,8 +12,8 @@ Date:   Sat Oct 19 15:53:43 2019 -0400
 
 diff --git a/arch/powerpc/bits/signal.h b/arch/powerpc/bits/signal.h
 index 06efb11c..c1bf3caf 100644
---- arch/powerpc/bits/signal.h
-+++ arch/powerpc/bits/signal.h
+--- a/arch/powerpc/bits/signal.h
++++ b/arch/powerpc/bits/signal.h
 @@ -28,7 +28,7 @@ struct sigcontext {
  	int signal;
  	unsigned long handler;
@@ -25,8 +25,8 @@ index 06efb11c..c1bf3caf 100644
  typedef struct {
 diff --git a/arch/powerpc64/bits/signal.h b/arch/powerpc64/bits/signal.h
 index 4dec22a5..d5493b18 100644
---- arch/powerpc64/bits/signal.h
-+++ arch/powerpc64/bits/signal.h
+--- a/arch/powerpc64/bits/signal.h
++++ b/arch/powerpc64/bits/signal.h
 @@ -32,7 +32,7 @@ typedef struct sigcontext {
  	int _pad0;
  	unsigned long handler;
diff --git a/srcpkgs/musl/patches/ppc64-fpregset_t.patch b/srcpkgs/musl/patches/ppc64-fpregset_t.patch
index 40c2a066acab..12617ba0ef7d 100644
--- a/srcpkgs/musl/patches/ppc64-fpregset_t.patch
+++ b/srcpkgs/musl/patches/ppc64-fpregset_t.patch
@@ -14,8 +14,8 @@ Date:   Sat Oct 19 15:39:45 2019 -0400
 
 diff --git a/arch/powerpc64/bits/signal.h b/arch/powerpc64/bits/signal.h
 index 2cc0604c..4dec22a5 100644
---- arch/powerpc64/bits/signal.h
-+++ arch/powerpc64/bits/signal.h
+--- a/arch/powerpc64/bits/signal.h
++++ b/arch/powerpc64/bits/signal.h
 @@ -9,11 +9,7 @@
  #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  
diff --git a/srcpkgs/musl/patches/ppcle.patch b/srcpkgs/musl/patches/ppcle.patch
index 568dcce2de82..7d49338a5a0f 100644
--- a/srcpkgs/musl/patches/ppcle.patch
+++ b/srcpkgs/musl/patches/ppcle.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] add ppc32 le subarch
 
 diff --git configure configure
 index 8680128..f1ca58e 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -645,6 +645,7 @@ fi
  if test "$ARCH" = "powerpc" ; then
  trycppif "__NO_FPRS__ && !_SOFT_FLOAT" "$t" && fail \
diff --git a/srcpkgs/musl/patches/reallocarray.patch b/srcpkgs/musl/patches/reallocarray.patch
index 6d5faf32ccf5..cfaab330e89a 100644
--- a/srcpkgs/musl/patches/reallocarray.patch
+++ b/srcpkgs/musl/patches/reallocarray.patch
@@ -11,8 +11,8 @@ while glibc 2.29 allows its usage in _DEFAULT_SOURCE.
 
 diff --git a/include/stdlib.h b/include/stdlib.h
 index 194c2033..b54a051f 100644
---- include/stdlib.h
-+++ include/stdlib.h
+--- a/include/stdlib.h
++++ b/include/stdlib.h
 @@ -145,6 +145,7 @@ int getloadavg(double *, int);
  int clearenv(void);
  #define WCOREDUMP(s) ((s) & 0x80)
@@ -25,7 +25,7 @@ diff --git a/src/malloc/reallocarray.c b/src/malloc/reallocarray.c
 new file mode 100644
 index 00000000..4a6ebe46
 --- /dev/null
-+++ src/malloc/reallocarray.c
++++ b/src/malloc/reallocarray.c
 @@ -0,0 +1,13 @@
 +#define _BSD_SOURCE
 +#include <errno.h>
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 337a3082faa9..eaa3dc12e8e5 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://www.musl-libc.org/"
 distfiles="http://www.musl-libc.org/releases/musl-${version}.tar.gz"
 checksum=1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
+patch_args=-Np1
 
 nostrip_files="libc.so"
 shlib_provides="libc.so"
diff --git a/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch b/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
index 9da918e4345f..528b5d5d8bf6 100644
--- a/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
+++ b/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
@@ -16,8 +16,8 @@ Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
 
 diff --git a/linux-user/signal.c b/linux-user/signal.c
 index 5ca6d62b15..e917c16d91 100644
---- linux-user/signal.c
-+++ linux-user/signal.c
+--- a/linux-user/signal.c
++++ b/linux-user/signal.c
 @@ -25,6 +25,13 @@
  #include "trace.h"
  #include "signal-common.h"
diff --git a/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch b/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch
index 009c3eab1b51..ecdd049f7921 100644
--- a/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch
+++ b/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch
@@ -2,8 +2,8 @@ Source: @pullmoll
 Upstream: no
 Reason: Target architectures with soft float do not define these constants.
 
---- tests/fp/fp-bench.c	2020-12-08 17:59:44.000000000 +0100
-+++ tests/fp/fp-bench.c	2020-12-12 20:38:40.702235420 +0100
+--- a/tests/fp/fp-bench.c	2020-12-08 17:59:44.000000000 +0100
++++ b/tests/fp/fp-bench.c	2020-12-12 20:38:40.702235420 +0100
 @@ -485,16 +485,32 @@
  
      switch (rounding) {
diff --git a/srcpkgs/qemu/patches/mmap-mremap-efault.patch b/srcpkgs/qemu/patches/mmap-mremap-efault.patch
index be58a46df664..5a70e9658b30 100644
--- a/srcpkgs/qemu/patches/mmap-mremap-efault.patch
+++ b/srcpkgs/qemu/patches/mmap-mremap-efault.patch
@@ -8,8 +8,8 @@ Also speed up the loop when checking for increasing the mappings size to go
 in steps of TARGET_PAGE_SIZE and OR-in a check for the very last byte of the range.
 diff --git linux-user/mmap.c linux-user/mmap.c
 index 7e3b245..1e8d0f1 100644
---- linux-user/mmap.c
-+++ linux-user/mmap.c
+--- a/linux-user/mmap.c
++++ b/linux-user/mmap.c
 @@ -738,7 +738,7 @@ abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size,
           !guest_range_valid_untagged(new_addr, new_size)) ||
          ((flags & MREMAP_MAYMOVE) == 0 &&
diff --git a/srcpkgs/qemu/patches/musl-9p-limits_h.patch b/srcpkgs/qemu/patches/musl-9p-limits_h.patch
index fca3207c84a4..ee0f89886352 100644
--- a/srcpkgs/qemu/patches/musl-9p-limits_h.patch
+++ b/srcpkgs/qemu/patches/musl-9p-limits_h.patch
@@ -1,5 +1,5 @@
---- hw/9pfs/9p.c.orig	2016-12-21 15:53:59.997900753 +0100
-+++ hw/9pfs/9p.c	2016-12-21 15:54:03.006935717 +0100
+--- a/hw/9pfs/9p.c.orig	2016-12-21 15:53:59.997900753 +0100
++++ b/hw/9pfs/9p.c	2016-12-21 15:54:03.006935717 +0100
 @@ -11,6 +11,7 @@
   *
   */
diff --git a/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch b/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch
index 1b00c27e70a4..e0b76c4d3c25 100644
--- a/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch
+++ b/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch
@@ -1,5 +1,5 @@
---- linux-user/syscall.c.orig	2017-04-25 23:46:47.896819860 +0200
-+++ linux-user/syscall.c	2017-04-26 08:43:48.821452132 +0200
+--- a/linux-user/syscall.c.orig	2017-04-25 23:46:47.896819860 +0200
++++ b/linux-user/syscall.c	2017-04-26 08:43:48.821452132 +0200
 @@ -34,6 +34,7 @@
  #include <sys/resource.h>
  #include <sys/swap.h>
diff --git a/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch b/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch
index 11497d5fc900..c51fca6cf432 100644
--- a/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch
+++ b/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch
@@ -1,5 +1,5 @@
---- linux-user/syscall.c.orig    2015-04-10 07:10:06.305662505 +0000
-+++ linux-user/syscall.c 2015-04-10 07:36:53.801871968 +0000
+--- a/linux-user/syscall.c.orig    2015-04-10 07:10:06.305662505 +0000
++++ b/linux-user/syscall.c 2015-04-10 07:36:53.801871968 +0000
 @@ -5020,9 +5020,20 @@
      return 0;
  }
diff --git a/srcpkgs/qemu/patches/musl-initialize-msghdr.patch b/srcpkgs/qemu/patches/musl-initialize-msghdr.patch
index c195f0c0b1f4..6d96b3511daf 100644
--- a/srcpkgs/qemu/patches/musl-initialize-msghdr.patch
+++ b/srcpkgs/qemu/patches/musl-initialize-msghdr.patch
@@ -2,8 +2,8 @@ Source: https://github.com/void-linux/void-packages/issues/23557
 
 diff --git linux-user/syscall.c linux-user/syscall.c
 index 945fc25..8d8b68a 100644
---- linux-user/syscall.c
-+++ linux-user/syscall.c
+--- a/linux-user/syscall.c
++++ b/linux-user/syscall.c
 @@ -3071,7 +3071,7 @@ static abi_long do_sendrecvmsg_locked(int fd, struct target_msghdr *msgp,
                                        int flags, int send)
  {
diff --git a/srcpkgs/qemu/patches/musl-ppc.patch b/srcpkgs/qemu/patches/musl-ppc.patch
index 6f066c0b30eb..744efe6a4980 100644
--- a/srcpkgs/qemu/patches/musl-ppc.patch
+++ b/srcpkgs/qemu/patches/musl-ppc.patch
@@ -1,5 +1,5 @@
---- accel/tcg/user-exec.c
-+++ accel/tcg/user-exec.c
+--- a/accel/tcg/user-exec.c
++++ b/accel/tcg/user-exec.c
 @@ -286,6 +286,7 @@ int cpu_signal_handler(int host_signum, void *pinfo,
   */
  #ifdef linux
@@ -44,8 +44,8 @@
  #endif /* linux */
  
  #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
---- linux-user/host/ppc64/hostdep.h
-+++ linux-user/host/ppc64/hostdep.h
+--- a/linux-user/host/ppc64/hostdep.h
++++ b/linux-user/host/ppc64/hostdep.h
 @@ -27,7 +27,11 @@ extern char safe_syscall_end[];
  static inline void rewind_if_in_safe_syscall(void *puc)
  {
@@ -58,8 +58,8 @@
  
      if (*pcreg > (uintptr_t)safe_syscall_start
          && *pcreg < (uintptr_t)safe_syscall_end) {
---- util/mmap-alloc.c
-+++ util/mmap-alloc.c
+--- a/util/mmap-alloc.c
++++ b/util/mmap-alloc.c
 @@ -25,6 +25,10 @@
  
  #ifdef CONFIG_LINUX
diff --git a/srcpkgs/qemu/patches/time64.patch b/srcpkgs/qemu/patches/time64.patch
index 7f74ed356934..28be93004891 100644
--- a/srcpkgs/qemu/patches/time64.patch
+++ b/srcpkgs/qemu/patches/time64.patch
@@ -1,5 +1,5 @@
---- contrib/vhost-user-input/main.c	2020-12-08 17:59:44.000000000 +0100
-+++ contrib/vhost-user-input/main.c	2020-12-12 20:59:04.316996648 +0100
+--- a/contrib/vhost-user-input/main.c	2020-12-08 17:59:44.000000000 +0100
++++ b/contrib/vhost-user-input/main.c	2020-12-12 20:59:04.316996648 +0100
 @@ -114,14 +114,17 @@
  
  static void vi_handle_status(VuInput *vi, virtio_input_event *event)
@@ -19,8 +19,8 @@
      evdev.type = le16toh(event->type);
      evdev.code = le16toh(event->code);
      evdev.value = le32toh(event->value);
---- hw/input/virtio-input-host.c	2020-12-08 17:59:44.000000000 +0100
-+++ hw/input/virtio-input-host.c	2020-12-12 21:33:44.750471890 +0100
+--- a/hw/input/virtio-input-host.c	2020-12-08 17:59:44.000000000 +0100
++++ b/hw/input/virtio-input-host.c	2020-12-12 21:33:44.750471890 +0100
 @@ -192,14 +192,17 @@
                                              virtio_input_event *event)
  {
diff --git a/srcpkgs/qemu/patches/xxx-ppcle.patch b/srcpkgs/qemu/patches/xxx-ppcle.patch
index 99396bff9dd5..c5325c9ca70e 100644
--- a/srcpkgs/qemu/patches/xxx-ppcle.patch
+++ b/srcpkgs/qemu/patches/xxx-ppcle.patch
@@ -14,8 +14,8 @@ Subject: [PATCH] support ppcle architecture
 
 diff --git configure configure
 index 18c26e0..03d3e18 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -653,7 +653,11 @@ elif check_define _ARCH_PPC ; then
        cpu="ppc64"
      fi
@@ -62,7 +62,7 @@ diff --git default-configs/targets/ppcle-linux-user.mak default-configs/targets/
 new file mode 100644
 index 0000000..2259243
 --- /dev/null
-+++ default-configs/targets/ppcle-linux-user.mak
++++ b/default-configs/targets/ppcle-linux-user.mak
 @@ -0,0 +1,4 @@
 +TARGET_ARCH=ppc
 +TARGET_SYSTBL_ABI=common,nospu,32
@@ -70,8 +70,8 @@ index 0000000..2259243
 +TARGET_XML_FILES= gdb-xml/power-core.xml gdb-xml/power-fpu.xml gdb-xml/power-altivec.xml gdb-xml/power-spe.xml
 diff --git linux-user/ppc/target_syscall.h linux-user/ppc/target_syscall.h
 index b9c4b81..cf26497 100644
---- linux-user/ppc/target_syscall.h
-+++ linux-user/ppc/target_syscall.h
+--- a/linux-user/ppc/target_syscall.h
++++ b/linux-user/ppc/target_syscall.h
 @@ -65,7 +65,11 @@ struct target_revectored_struct {
  #define UNAME_MACHINE "ppc64le"
  #endif
@@ -86,8 +86,8 @@ index b9c4b81..cf26497 100644
  
 diff --git scripts/qemu-binfmt-conf.sh scripts/qemu-binfmt-conf.sh
 index 9f1580a..393943f 100755
---- scripts/qemu-binfmt-conf.sh
-+++ scripts/qemu-binfmt-conf.sh
+--- a/scripts/qemu-binfmt-conf.sh
++++ b/scripts/qemu-binfmt-conf.sh
 @@ -46,6 +46,10 @@ ppc_magic='\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x
  ppc_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff'
  ppc_family=ppc
@@ -110,8 +110,8 @@ index 9f1580a..393943f 100755
      arm|armel|armhf|arm64|armv[4-9]*l|aarch64)
 diff --git tests/tcg/configure.sh tests/tcg/configure.sh
 index e1b70e2..e07f5fe 100755
---- tests/tcg/configure.sh
-+++ tests/tcg/configure.sh
+--- a/tests/tcg/configure.sh
++++ b/tests/tcg/configure.sh
 @@ -59,6 +59,8 @@ fi
  : $(cross_cc_mips="mips-linux-gnu-gcc")
  : ${cross_cc_ppc="powerpc-linux-gnu-gcc"}
diff --git a/srcpkgs/qemu/template b/srcpkgs/qemu/template
index 0fadb41f609c..0a08ed821536 100644
--- a/srcpkgs/qemu/template
+++ b/srcpkgs/qemu/template
@@ -30,6 +30,7 @@ nostrip_files="hppa-firmware.img openbios-ppc openbios-sparc32 openbios-sparc64
  opensbi-riscv64-generic-fw_dynamic.elf"
 # FIXME
 make_check=extended
+patch_args=-Np1
 
 build_options="gtk3 opengl sdl2 spice virgl smartcard numa iscsi"
 build_options_default="opengl gtk3 virgl sdl2 numa iscsi"
diff --git a/srcpkgs/util-linux/patches/fix-musl.patch b/srcpkgs/util-linux/patches/fix-musl.patch
index e426672183d1..8d1eeb9d2740 100644
--- a/srcpkgs/util-linux/patches/fix-musl.patch
+++ b/srcpkgs/util-linux/patches/fix-musl.patch
@@ -1,7 +1,7 @@
 Define __SWORD_TYPE for musl.
 
---- sys-utils/switch_root.c.orig	2014-09-20 21:33:27.551345526 +0200
-+++ sys-utils/switch_root.c	2014-09-20 21:34:17.958584374 +0200
+--- a/sys-utils/switch_root.c.orig	2014-09-20 21:33:27.551345526 +0200
++++ b/sys-utils/switch_root.c	2014-09-20 21:34:17.958584374 +0200
 @@ -47,6 +47,15 @@
  #define MNT_DETACH       0x00000002	/* Just detach from the tree */
  #endif
diff --git a/srcpkgs/util-linux/template b/srcpkgs/util-linux/template
index 4fb8292531ba..fbd3f00e6f80 100644
--- a/srcpkgs/util-linux/template
+++ b/srcpkgs/util-linux/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/utils/util-linux/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/v${version%.${version#*.*.}}/${pkgname}-${version}.tar.xz"
 checksum=f7516ba9d8689343594356f0e5e1a5f0da34adfbc89023437735872bb5024c5f
+patch_args=-Np1
 
 # Create uuidd system account for uuidd.
 system_accounts="_uuidd"
diff --git a/srcpkgs/xbps/patches/cflags.patch b/srcpkgs/xbps/patches/cflags.patch
index 8e576f2a887d..bf95fea3bebe 100644
--- a/srcpkgs/xbps/patches/cflags.patch
+++ b/srcpkgs/xbps/patches/cflags.patch
@@ -4,8 +4,8 @@ when using strong stack protector)
 
 diff --git lib/Makefile lib/Makefile
 index 65342ef..847bfdd 100644
---- lib/Makefile
-+++ lib/Makefile
+--- a/lib/Makefile
++++ b/lib/Makefile
 @@ -78,7 +78,7 @@ $(OBJS): %.o: %.c
  
  libxbps.so: $(LIBFETCH_OBJS) $(LIBPROP_OBJS) $(OBJS)
diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template
index 8f986d22f9f3..c6af59bd635a 100644
--- a/srcpkgs/xbps/template
+++ b/srcpkgs/xbps/template
@@ -11,6 +11,7 @@ homepage="https://github.com/void-linux/xbps"
 changelog="https://github.com/void-linux/xbps/blob/master/NEWS"
 distfiles="https://github.com/void-linux/xbps/archive/${version}.tar.gz"
 checksum=0cbd8d5f23a62047c75974bca21da9f004a94efffd7f37c68562a8dbc869fb2a
+patch_args=-Np1
 
 hostmakedepends="pkgconf"
 checkdepends="kyua"

From 1dad7a5b2a3483159bf2e1ad4e360dc0abcd77f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:28:34 +0700
Subject: [PATCH 3/8] srcpkgs: add patch_args=-Np0 en-mass

Generated with:

	git ls-files 'srcpkgs/**/patches/*' |
	cut -d/ -f2 | uniq |
	xargs printf 'srcpkgs/%s/template\n'  |
	xargs grep -L 'patch_args=' |
	xargs sed -i "$(printf '1,/^$/{/^$/i\\\npatch_args=-Np0\n}\n')"
---
 srcpkgs/0ad/template                                 | 1 +
 srcpkgs/66-tools/template                            | 1 +
 srcpkgs/7kaa/template                                | 1 +
 srcpkgs/9base/template                               | 1 +
 srcpkgs/9mount/template                              | 1 +
 srcpkgs/Aegisub/template                             | 1 +
 srcpkgs/Brainfunk/template                           | 1 +
 srcpkgs/CPU-X/template                               | 1 +
 srcpkgs/Carla/template                               | 1 +
 srcpkgs/Cataclysm-DDA/template                       | 1 +
 srcpkgs/Chipmunk2D/template                          | 1 +
 srcpkgs/Clight/template                              | 1 +
 srcpkgs/Clp/template                                 | 1 +
 srcpkgs/CoinMP/template                              | 1 +
 srcpkgs/CubicSDR/template                            | 1 +
 srcpkgs/DarkRadiant/template                         | 1 +
 srcpkgs/Fritzing/template                            | 1 +
 srcpkgs/GConf/template                               | 1 +
 srcpkgs/Gauche/template                              | 1 +
 srcpkgs/GraphicsMagick/template                      | 1 +
 srcpkgs/Haru/template                                | 1 +
 srcpkgs/LibreCAD/template                            | 1 +
 srcpkgs/LuaJIT/template                              | 1 +
 srcpkgs/MEGAcmd/template                             | 1 +
 srcpkgs/Maelstrom/template                           | 1 +
 srcpkgs/MonkeysAudio/template                        | 1 +
 srcpkgs/ORBit2/template                              | 1 +
 srcpkgs/OpenCPN/template                             | 1 +
 srcpkgs/OpenXcom/template                            | 1 +
 srcpkgs/PAmix/template                               | 1 +
 srcpkgs/PrusaSlicer/template                         | 1 +
 srcpkgs/QLC+/template                                | 1 +
 srcpkgs/SDL/template                                 | 1 +
 srcpkgs/SDL2/template                                | 1 +
 srcpkgs/SLADE/template                               | 1 +
 srcpkgs/SMC/template                                 | 1 +
 srcpkgs/Signal-Desktop/template                      | 1 +
 srcpkgs/TSC/template                                 | 1 +
 srcpkgs/VeraCrypt/template                           | 1 +
 srcpkgs/XyGrib/template                              | 1 +
 srcpkgs/ZMusic/template                              | 1 +
 srcpkgs/a2ps/template                                | 1 +
 srcpkgs/abduco/template                              | 1 +
 srcpkgs/abook/template                               | 1 +
 srcpkgs/accountsservice/template                     | 1 +
 srcpkgs/acct/template                                | 1 +
 srcpkgs/acpi_call-dkms/template                      | 1 +
 srcpkgs/acpid/template                               | 1 +
 srcpkgs/actiona/template                             | 1 +
 srcpkgs/afterstep/template                           | 1 +
 srcpkgs/agg/template                                 | 1 +
 srcpkgs/allegro4/template                            | 1 +
 srcpkgs/allegro5/template                            | 1 +
 srcpkgs/alsa-firmware/template                       | 1 +
 srcpkgs/alsa-tools/template                          | 1 +
 srcpkgs/amdvlk/template                              | 1 +
 srcpkgs/angrysearch/template                         | 1 +
 srcpkgs/anjuta/template                              | 1 +
 srcpkgs/anki/template                                | 1 +
 srcpkgs/antimicrox/template                          | 1 +
 srcpkgs/antiword/template                            | 1 +
 srcpkgs/apache/template                              | 1 +
 srcpkgs/apl/template                                 | 1 +
 srcpkgs/appstream-glib/template                      | 1 +
 srcpkgs/apr/template                                 | 1 +
 srcpkgs/aqbanking/template                           | 1 +
 srcpkgs/aqemu/template                               | 1 +
 srcpkgs/ardour/template                              | 1 +
 srcpkgs/arduino/template                             | 1 +
 srcpkgs/argon2/template                              | 1 +
 srcpkgs/argyllcms/template                           | 1 +
 srcpkgs/ark/template                                 | 1 +
 srcpkgs/armadillo/template                           | 1 +
 srcpkgs/artyfx/template                              | 1 +
 srcpkgs/asignify/template                            | 1 +
 srcpkgs/assimp/template                              | 1 +
 srcpkgs/astroid/template                             | 1 +
 srcpkgs/astyle/template                              | 1 +
 srcpkgs/at/template                                  | 1 +
 srcpkgs/aterm/template                               | 1 +
 srcpkgs/atomicparsley/template                       | 1 +
 srcpkgs/atop/template                                | 1 +
 srcpkgs/attic/template                               | 1 +
 srcpkgs/attract/template                             | 1 +
 srcpkgs/aubio/template                               | 1 +
 srcpkgs/audacity/template                            | 1 +
 srcpkgs/audiofile/template                           | 1 +
 srcpkgs/autoconf/template                            | 1 +
 srcpkgs/autoconf213/template                         | 1 +
 srcpkgs/autofs/template                              | 1 +
 srcpkgs/autogen/template                             | 1 +
 srcpkgs/avidemux/template                            | 1 +
 srcpkgs/avr-binutils/template                        | 1 +
 srcpkgs/bacula-common/template                       | 1 +
 srcpkgs/bananapi-uboot/template                      | 1 +
 srcpkgs/basu/template                                | 1 +
 srcpkgs/batman-adv14/template                        | 1 +
 srcpkgs/bbkeys/template                              | 1 +
 srcpkgs/bbswitch/template                            | 1 +
 srcpkgs/bc/template                                  | 1 +
 srcpkgs/bcc/template                                 | 1 +
 srcpkgs/bctoolbox/template                           | 1 +
 srcpkgs/beep/template                                | 1 +
 srcpkgs/beets/template                               | 1 +
 srcpkgs/beignet/template                             | 1 +
 srcpkgs/belle-sip/template                           | 1 +
 srcpkgs/berkeley-abc/template                        | 1 +
 srcpkgs/berry/template                               | 1 +
 srcpkgs/biew/template                                | 1 +
 srcpkgs/bin86/template                               | 1 +
 srcpkgs/binwalk/template                             | 1 +
 srcpkgs/bird/template                                | 1 +
 srcpkgs/bish/template                                | 1 +
 srcpkgs/bitchx/template                              | 1 +
 srcpkgs/bitfighter/template                          | 1 +
 srcpkgs/blackboxwm/template                          | 1 +
 srcpkgs/bmon/template                                | 1 +
 srcpkgs/boinc/template                               | 1 +
 srcpkgs/bomi/template                                | 1 +
 srcpkgs/bonnie++/template                            | 1 +
 srcpkgs/boomerang/template                           | 1 +
 srcpkgs/boost/template                               | 1 +
 srcpkgs/bootchart2/template                          | 1 +
 srcpkgs/botan/template                               | 1 +
 srcpkgs/bridge-utils/template                        | 1 +
 srcpkgs/brltty/template                              | 1 +
 srcpkgs/broadcom-wl-dkms/template                    | 1 +
 srcpkgs/browsh/template                              | 1 +
 srcpkgs/bsdiff/template                              | 1 +
 srcpkgs/bsdunzip/template                            | 1 +
 srcpkgs/bubblewrap/template                          | 1 +
 srcpkgs/buffer/template                              | 1 +
 srcpkgs/buildbot/template                            | 1 +
 srcpkgs/buku/template                                | 1 +
 srcpkgs/bullet/template                              | 1 +
 srcpkgs/bumblebee/template                           | 1 +
 srcpkgs/bup/template                                 | 1 +
 srcpkgs/burp2-server/template                        | 1 +
 srcpkgs/busybox/template                             | 1 +
 srcpkgs/bzip2/template                               | 1 +
 srcpkgs/c-blosc/template                             | 1 +
 srcpkgs/c-client/template                            | 1 +
 srcpkgs/ca-certificates/template                     | 1 +
 srcpkgs/cabal-install/template                       | 1 +
 srcpkgs/cackey/template                              | 1 +
 srcpkgs/cadence/template                             | 1 +
 srcpkgs/calc/template                                | 1 +
 srcpkgs/caps/template                                | 1 +
 srcpkgs/cargo/template                               | 1 +
 srcpkgs/catch2/template                              | 1 +
 srcpkgs/catdoc/template                              | 1 +
 srcpkgs/cbang/template                               | 1 +
 srcpkgs/ccextractor/template                         | 1 +
 srcpkgs/ccl/template                                 | 1 +
 srcpkgs/cclive/template                              | 1 +
 srcpkgs/ccsm/template                                | 1 +
 srcpkgs/cdb/template                                 | 1 +
 srcpkgs/cdecl/template                               | 1 +
 srcpkgs/cdm/template                                 | 1 +
 srcpkgs/cdparanoia/template                          | 1 +
 srcpkgs/cegui/template                               | 1 +
 srcpkgs/cegui07/template                             | 1 +
 srcpkgs/celestia-glut/template                       | 1 +
 srcpkgs/celestia-gtk/template                        | 1 +
 srcpkgs/chafa/template                               | 1 +
 srcpkgs/chatterino2/template                         | 1 +
 srcpkgs/chatty/template                              | 1 +
 srcpkgs/chkrootkit/template                          | 1 +
 srcpkgs/chmlib/template                              | 1 +
 srcpkgs/choosenim/template                           | 1 +
 srcpkgs/choqok/template                              | 1 +
 srcpkgs/chromium/template                            | 1 +
 srcpkgs/ck/template                                  | 1 +
 srcpkgs/ckmame/template                              | 1 +
 srcpkgs/clementine/template                          | 1 +
 srcpkgs/cli-visualizer/template                      | 1 +
 srcpkgs/clib/template                                | 1 +
 srcpkgs/clisp/template                               | 1 +
 srcpkgs/cln/template                                 | 1 +
 srcpkgs/clog/template                                | 1 +
 srcpkgs/cloog/template                               | 1 +
 srcpkgs/clucene/template                             | 1 +
 srcpkgs/clutter/template                             | 1 +
 srcpkgs/cmocka/template                              | 1 +
 srcpkgs/cmus/template                                | 1 +
 srcpkgs/codeblocks/template                          | 1 +
 srcpkgs/codecrypt/template                           | 1 +
 srcpkgs/codelite/template                            | 1 +
 srcpkgs/coin3/template                               | 1 +
 srcpkgs/collectd/template                            | 1 +
 srcpkgs/colord/template                              | 1 +
 srcpkgs/commoncpp2/template                          | 1 +
 srcpkgs/connman-ncurses/template                     | 1 +
 srcpkgs/containers.image/template                    | 1 +
 srcpkgs/coreboot-utils/template                      | 1 +
 srcpkgs/coreutils/template                           | 1 +
 srcpkgs/coturn/template                              | 1 +
 srcpkgs/cpuburn/template                             | 1 +
 srcpkgs/cpulimit/template                            | 1 +
 srcpkgs/criu/template                                | 1 +
 srcpkgs/crossguid/template                           | 1 +
 srcpkgs/crypto++/template                            | 1 +
 srcpkgs/csound/template                              | 1 +
 srcpkgs/csync2/template                              | 1 +
 srcpkgs/ctags/template                               | 1 +
 srcpkgs/cubieboard2-uboot/template                   | 1 +
 srcpkgs/cuetools/template                            | 1 +
 srcpkgs/cups-pdf/template                            | 1 +
 srcpkgs/cups/template                                | 1 +
 srcpkgs/cura-engine/template                         | 1 +
 srcpkgs/cutemarked/template                          | 1 +
 srcpkgs/cvsps2/template                              | 1 +
 srcpkgs/daemontools/template                         | 1 +
 srcpkgs/dante/template                               | 1 +
 srcpkgs/dar/template                                 | 1 +
 srcpkgs/darkplaces/template                          | 1 +
 srcpkgs/darktable/template                           | 1 +
 srcpkgs/dash/template                                | 1 +
 srcpkgs/davfs2/template                              | 1 +
 srcpkgs/db/template                                  | 1 +
 srcpkgs/dbus-glib/template                           | 1 +
 srcpkgs/dcraw/template                               | 1 +
 srcpkgs/dcron/template                               | 1 +
 srcpkgs/deadbeef-fb/template                         | 1 +
 srcpkgs/deadbeef/template                            | 1 +
 srcpkgs/debug-me/template                            | 1 +
 srcpkgs/desmume/template                             | 1 +
 srcpkgs/devil/template                               | 1 +
 srcpkgs/dhcp/template                                | 1 +
 srcpkgs/dhcpcd/template                              | 1 +
 srcpkgs/dia/template                                 | 1 +
 srcpkgs/diod/template                                | 1 +
 srcpkgs/discord-ptb/template                         | 1 +
 srcpkgs/discord/template                             | 1 +
 srcpkgs/discount/template                            | 1 +
 srcpkgs/dispcalGUI/template                          | 1 +
 srcpkgs/djview/template                              | 1 +
 srcpkgs/dma/template                                 | 1 +
 srcpkgs/dmd-bootstrap/template                       | 1 +
 srcpkgs/dmd2.081/template                            | 1 +
 srcpkgs/dmd2.091/template                            | 1 +
 srcpkgs/dmraid/template                              | 1 +
 srcpkgs/dmtx-utils/template                          | 1 +
 srcpkgs/docbook-xsl-ns/template                      | 1 +
 srcpkgs/docbook-xsl/template                         | 1 +
 srcpkgs/dolphin-emu/template                         | 1 +
 srcpkgs/dovecot/template                             | 1 +
 srcpkgs/doxygen/template                             | 1 +
 srcpkgs/dpdk/template                                | 1 +
 srcpkgs/dracut-crypt-ssh/template                    | 1 +
 srcpkgs/dracut/template                              | 1 +
 srcpkgs/drawterm/template                            | 1 +
 srcpkgs/drbd-utils/template                          | 1 +
 srcpkgs/dstat/template                               | 1 +
 srcpkgs/dua-cli/template                             | 1 +
 srcpkgs/dumpet/template                              | 1 +
 srcpkgs/dunelegacy/template                          | 1 +
 srcpkgs/duplicity/template                           | 1 +
 srcpkgs/dust3d/template                              | 1 +
 srcpkgs/dvd+rw-tools/template                        | 1 +
 srcpkgs/dvdauthor/template                           | 1 +
 srcpkgs/e2fsprogs/template                           | 1 +
 srcpkgs/eb/template                                  | 1 +
 srcpkgs/eboard/template                              | 1 +
 srcpkgs/ecl/template                                 | 1 +
 srcpkgs/ecryptfs-utils/template                      | 1 +
 srcpkgs/efibootmgr/template                          | 1 +
 srcpkgs/efl/template                                 | 1 +
 srcpkgs/electron10/template                          | 1 +
 srcpkgs/electron12/template                          | 1 +
 srcpkgs/elogind/template                             | 1 +
 srcpkgs/emerald/template                             | 1 +
 srcpkgs/endless-sky-gl21/template                    | 1 +
 srcpkgs/engrampa/template                            | 1 +
 srcpkgs/enigma/template                              | 1 +
 srcpkgs/enlightenment/template                       | 1 +
 srcpkgs/entr/template                                | 1 +
 srcpkgs/enyo-doom/template                           | 1 +
 srcpkgs/epdfview/template                            | 1 +
 srcpkgs/espeakup/template                            | 1 +
 srcpkgs/eukleides/template                           | 1 +
 srcpkgs/evemu/template                               | 1 +
 srcpkgs/evolution-data-server/template               | 1 +
 srcpkgs/evolution/template                           | 1 +
 srcpkgs/evtest/template                              | 1 +
 srcpkgs/ex-vi/template                               | 1 +
 srcpkgs/exfat-dkms/template                          | 1 +
 srcpkgs/exo/template                                 | 1 +
 srcpkgs/expect/template                              | 1 +
 srcpkgs/extra-cmake-modules/template                 | 1 +
 srcpkgs/faad2/template                               | 1 +
 srcpkgs/fake-hwclock/template                        | 1 +
 srcpkgs/fakeroot/template                            | 1 +
 srcpkgs/falkon/template                              | 1 +
 srcpkgs/farstream/template                           | 1 +
 srcpkgs/fastd/template                               | 1 +
 srcpkgs/faust/template                               | 1 +
 srcpkgs/fbida/template                               | 1 +
 srcpkgs/fbreader/template                            | 1 +
 srcpkgs/fbterm/template                              | 1 +
 srcpkgs/fbv/template                                 | 1 +
 srcpkgs/fbxkb/template                               | 1 +
 srcpkgs/fcitx-anthy/template                         | 1 +
 srcpkgs/fcitx/template                               | 1 +
 srcpkgs/fcron/template                               | 1 +
 srcpkgs/ferm/template                                | 1 +
 srcpkgs/ffmpeg/template                              | 1 +
 srcpkgs/fig2dev/template                             | 1 +
 srcpkgs/filezilla/template                           | 1 +
 srcpkgs/fingerprint-gui/template                     | 1 +
 srcpkgs/firefox-esr/template                         | 1 +
 srcpkgs/firefox/template                             | 1 +
 srcpkgs/firejail/template                            | 1 +
 srcpkgs/flatpak-builder/template                     | 1 +
 srcpkgs/flatpak/template                             | 1 +
 srcpkgs/flex/template                                | 1 +
 srcpkgs/flightgear/template                          | 1 +
 srcpkgs/flowcanvas/template                          | 1 +
 srcpkgs/foobillard++/template                        | 1 +
 srcpkgs/foomatic-db-engine/template                  | 1 +
 srcpkgs/foremost/template                            | 1 +
 srcpkgs/fossil/template                              | 1 +
 srcpkgs/fotoxx/template                              | 1 +
 srcpkgs/fpc/template                                 | 1 +
 srcpkgs/fprint_demo/template                         | 1 +
 srcpkgs/frame/template                               | 1 +
 srcpkgs/freecad/template                             | 1 +
 srcpkgs/freeciv/template                             | 1 +
 srcpkgs/freedroidClassic/template                    | 1 +
 srcpkgs/freeimage/template                           | 1 +
 srcpkgs/freeipmi/template                            | 1 +
 srcpkgs/freeorion/template                           | 1 +
 srcpkgs/freeplane/template                           | 1 +
 srcpkgs/freetds/template                             | 1 +
 srcpkgs/freetype/template                            | 1 +
 srcpkgs/freshplayerplugin/template                   | 1 +
 srcpkgs/fs-utils/template                            | 1 +
 srcpkgs/fuse/template                                | 1 +
 srcpkgs/gamin/template                               | 1 +
 srcpkgs/gammu/template                               | 1 +
 srcpkgs/gatling/template                             | 1 +
 srcpkgs/gavl/template                                | 1 +
 srcpkgs/gbdfed/template                              | 1 +
 srcpkgs/gcc-multilib/template                        | 1 +
 srcpkgs/gcc/template                                 | 1 +
 srcpkgs/gcolor2/template                             | 1 +
 srcpkgs/gdm/template                                 | 1 +
 srcpkgs/gdmap/template                               | 1 +
 srcpkgs/geary/template                               | 1 +
 srcpkgs/geda/template                                | 1 +
 srcpkgs/geis/template                                | 1 +
 srcpkgs/geos/template                                | 1 +
 srcpkgs/gfm/template                                 | 1 +
 srcpkgs/giac/template                                | 1 +
 srcpkgs/giflib/template                              | 1 +
 srcpkgs/giggle/template                              | 1 +
 srcpkgs/gimp/template                                | 1 +
 srcpkgs/git-annex/template                           | 1 +
 srcpkgs/gitea/template                               | 1 +
 srcpkgs/gitg/template                                | 1 +
 srcpkgs/gkrellm/template                             | 1 +
 srcpkgs/glances/template                             | 1 +
 srcpkgs/glib/template                                | 1 +
 srcpkgs/gloox/template                               | 1 +
 srcpkgs/glusterfs/template                           | 1 +
 srcpkgs/glyr/template                                | 1 +
 srcpkgs/gmrun/template                               | 1 +
 srcpkgs/gnome-authenticator/template                 | 1 +
 srcpkgs/gnome-desktop/template                       | 1 +
 srcpkgs/gnome-keyring/template                       | 1 +
 srcpkgs/gnome-latex/template                         | 1 +
 srcpkgs/gnome-photos/template                        | 1 +
 srcpkgs/gnome-screensaver/template                   | 1 +
 srcpkgs/gnome-session/template                       | 1 +
 srcpkgs/gnome-settings-daemon/template               | 1 +
 srcpkgs/gnome-terminal/template                      | 1 +
 srcpkgs/gnu-efi-libs/template                        | 1 +
 srcpkgs/gnucash/template                             | 1 +
 srcpkgs/gnupg2/template                              | 1 +
 srcpkgs/gnuradio-nrsc5/template                      | 1 +
 srcpkgs/gnustep-base/template                        | 1 +
 srcpkgs/gnustep-make/template                        | 1 +
 srcpkgs/gnutls/template                              | 1 +
 srcpkgs/goaccess/template                            | 1 +
 srcpkgs/godot/template                               | 1 +
 srcpkgs/gogglesmm/template                           | 1 +
 srcpkgs/goldendict/template                          | 1 +
 srcpkgs/gosu/template                                | 1 +
 srcpkgs/goxel/template                               | 1 +
 srcpkgs/gpart/template                               | 1 +
 srcpkgs/gperftools/template                          | 1 +
 srcpkgs/gpgme/template                               | 1 +
 srcpkgs/gpick/template                               | 1 +
 srcpkgs/gpm/template                                 | 1 +
 srcpkgs/gpsbabel/template                            | 1 +
 srcpkgs/gpsd/template                                | 1 +
 srcpkgs/grpc/template                                | 1 +
 srcpkgs/grub-customizer/template                     | 1 +
 srcpkgs/gscan2pdf/template                           | 1 +
 srcpkgs/gscope3/template                             | 1 +
 srcpkgs/gsl/template                                 | 1 +
 srcpkgs/gsoap/template                               | 1 +
 srcpkgs/gst-plugins-bad1/template                    | 1 +
 srcpkgs/gst-plugins-base1/template                   | 1 +
 srcpkgs/gst123/template                              | 1 +
 srcpkgs/gstreamermm/template                         | 1 +
 srcpkgs/gthumb/template                              | 1 +
 srcpkgs/gtk-sharp/template                           | 1 +
 srcpkgs/gtk-sharp2/template                          | 1 +
 srcpkgs/gtk-theme-config/template                    | 1 +
 srcpkgs/gtkglext/template                            | 1 +
 srcpkgs/gtkpod/template                              | 1 +
 srcpkgs/gtkspell/template                            | 1 +
 srcpkgs/gtypist/template                             | 1 +
 srcpkgs/guake/template                               | 1 +
 srcpkgs/guile/template                               | 1 +
 srcpkgs/guile1.8/template                            | 1 +
 srcpkgs/guitarix2/template                           | 1 +
 srcpkgs/gummiboot/template                           | 1 +
 srcpkgs/gupnp-igd/template                           | 1 +
 srcpkgs/guvcview/template                            | 1 +
 srcpkgs/gwenhywfar/template                          | 1 +
 srcpkgs/gxemul/template                              | 1 +
 srcpkgs/gzdoom/template                              | 1 +
 srcpkgs/h2o/template                                 | 1 +
 srcpkgs/halibut/template                             | 1 +
 srcpkgs/hamlib/template                              | 1 +
 srcpkgs/handbrake/template                           | 1 +
 srcpkgs/hardinfo/template                            | 1 +
 srcpkgs/heaptrack/template                           | 1 +
 srcpkgs/hedgewars/template                           | 1 +
 srcpkgs/hexchat/template                             | 1 +
 srcpkgs/hexer/template                               | 1 +
 srcpkgs/heyu/template                                | 1 +
 srcpkgs/hfsprogs/template                            | 1 +
 srcpkgs/higan/template                               | 1 +
 srcpkgs/hiredis/template                             | 1 +
 srcpkgs/hitch/template                               | 1 +
 srcpkgs/hlint/template                               | 1 +
 srcpkgs/hosts-update/template                        | 1 +
 srcpkgs/hplip/template                               | 1 +
 srcpkgs/hstr/template                                | 1 +
 srcpkgs/ht/template                                  | 1 +
 srcpkgs/http-parser/template                         | 1 +
 srcpkgs/httpdirfs/template                           | 1 +
 srcpkgs/hugin/template                               | 1 +
 srcpkgs/hunspell/template                            | 1 +
 srcpkgs/i3status/template                            | 1 +
 srcpkgs/ibus-anthy/template                          | 1 +
 srcpkgs/ibus-avro/template                           | 1 +
 srcpkgs/id3lib/template                              | 1 +
 srcpkgs/ifupdown/template                            | 1 +
 srcpkgs/igt-gpu-tools/template                       | 1 +
 srcpkgs/ilmbase/template                             | 1 +
 srcpkgs/imagescan/template                           | 1 +
 srcpkgs/imgbrd-grabber/template                      | 1 +
 srcpkgs/imwheel/template                             | 1 +
 srcpkgs/indent/template                              | 1 +
 srcpkgs/injeqt/template                              | 1 +
 srcpkgs/input-utils/template                         | 1 +
 srcpkgs/inspectrum/template                          | 1 +
 srcpkgs/invada-studio-plugins-lv2/template           | 1 +
 srcpkgs/io.elementary.calendar/template              | 1 +
 srcpkgs/io.elementary.code/template                  | 1 +
 srcpkgs/io.elementary.music/template                 | 1 +
 srcpkgs/iotop/template                               | 1 +
 srcpkgs/iouyap/template                              | 1 +
 srcpkgs/ipmitool/template                            | 1 +
 srcpkgs/ipp-usb/template                             | 1 +
 srcpkgs/ippusbxd/template                            | 1 +
 srcpkgs/iptables/template                            | 1 +
 srcpkgs/iscan/template                               | 1 +
 srcpkgs/iucode-tool/template                         | 1 +
 srcpkgs/iverilog/template                            | 1 +
 srcpkgs/iwd/template                                 | 1 +
 srcpkgs/j/template                                   | 1 +
 srcpkgs/jack/template                                | 1 +
 srcpkgs/janet/template                               | 1 +
 srcpkgs/jbig2dec/template                            | 1 +
 srcpkgs/jedit/template                               | 1 +
 srcpkgs/jfsutils/template                            | 1 +
 srcpkgs/jsonnet/template                             | 1 +
 srcpkgs/jwm/template                                 | 1 +
 srcpkgs/jxrlib/template                              | 1 +
 srcpkgs/kanshi/template                              | 1 +
 srcpkgs/katarakt/template                            | 1 +
 srcpkgs/kauth/template                               | 1 +
 srcpkgs/kbd/template                                 | 1 +
 srcpkgs/kcgi/template                                | 1 +
 srcpkgs/kconfig/template                             | 1 +
 srcpkgs/kcoreaddons/template                         | 1 +
 srcpkgs/kdb/template                                 | 1 +
 srcpkgs/kdelibs4support/template                     | 1 +
 srcpkgs/kdesignerplugin/template                     | 1 +
 srcpkgs/kdevelop-python/template                     | 1 +
 srcpkgs/kdevelop/template                            | 1 +
 srcpkgs/kdoctools/template                           | 1 +
 srcpkgs/kea/template                                 | 1 +
 srcpkgs/kernel-libc-headers/template                 | 1 +
 srcpkgs/kexec-tools/template                         | 1 +
 srcpkgs/kexi/template                                | 1 +
 srcpkgs/keyutils/template                            | 1 +
 srcpkgs/kicad/template                               | 1 +
 srcpkgs/kid3/template                                | 1 +
 srcpkgs/kinit/template                               | 1 +
 srcpkgs/kio/template                                 | 1 +
 srcpkgs/kmod/template                                | 1 +
 srcpkgs/kmscon/template                              | 1 +
 srcpkgs/kobodeluxe/template                          | 1 +
 srcpkgs/kodi-addon-inputstream-adaptive/template     | 1 +
 srcpkgs/kore/template                                | 1 +
 srcpkgs/krita/template                               | 1 +
 srcpkgs/kscreenlocker/template                       | 1 +
 srcpkgs/kvirc/template                               | 1 +
 srcpkgs/kwallet-cli/template                         | 1 +
 srcpkgs/ladish/template                              | 1 +
 srcpkgs/laditools/template                           | 1 +
 srcpkgs/ladspa-sdk/template                          | 1 +
 srcpkgs/lapack/template                              | 1 +
 srcpkgs/latencytop/template                          | 1 +
 srcpkgs/ldapvi/template                              | 1 +
 srcpkgs/ldb/template                                 | 1 +
 srcpkgs/ledger/template                              | 1 +
 srcpkgs/lfe/template                                 | 1 +
 srcpkgs/liba52/template                              | 1 +
 srcpkgs/libabigail/template                          | 1 +
 srcpkgs/libabw/template                              | 1 +
 srcpkgs/libaccounts-qt5/template                     | 1 +
 srcpkgs/libarchive/template                          | 1 +
 srcpkgs/libatasmart/template                         | 1 +
 srcpkgs/libax25/template                             | 1 +
 srcpkgs/libbsd/template                              | 1 +
 srcpkgs/libcanberra/template                         | 1 +
 srcpkgs/libcap-ng/template                           | 1 +
 srcpkgs/libcap/template                              | 1 +
 srcpkgs/libcec/template                              | 1 +
 srcpkgs/libcgroup/template                           | 1 +
 srcpkgs/libcmis/template                             | 1 +
 srcpkgs/libcprops/template                           | 1 +
 srcpkgs/libdaemon/template                           | 1 +
 srcpkgs/libdbus-c++/template                         | 1 +
 srcpkgs/libdill/template                             | 1 +
 srcpkgs/libdrm/template                              | 1 +
 srcpkgs/libesmtp/template                            | 1 +
 srcpkgs/libetpan/template                            | 1 +
 srcpkgs/libevdevPlus/template                        | 1 +
 srcpkgs/libexecinfo/template                         | 1 +
 srcpkgs/libfetch/template                            | 1 +
 srcpkgs/libffado/template                            | 1 +
 srcpkgs/libffi/template                              | 1 +
 srcpkgs/libfprint/template                           | 1 +
 srcpkgs/libfprint0/template                          | 1 +
 srcpkgs/libfreehand/template                         | 1 +
 srcpkgs/libgadu/template                             | 1 +
 srcpkgs/libgdal/template                             | 1 +
 srcpkgs/libgfshare/template                          | 1 +
 srcpkgs/libgit2-glib/template                        | 1 +
 srcpkgs/libglade/template                            | 1 +
 srcpkgs/libglvnd/template                            | 1 +
 srcpkgs/libgme/template                              | 1 +
 srcpkgs/libgpod/template                             | 1 +
 srcpkgs/libgsm/template                              | 1 +
 srcpkgs/libguestfs/template                          | 1 +
 srcpkgs/libieee1284/template                         | 1 +
 srcpkgs/libimobiledevice/template                    | 1 +
 srcpkgs/libindicator/template                        | 1 +
 srcpkgs/libiodbc/template                            | 1 +
 srcpkgs/libixion/template                            | 1 +
 srcpkgs/libmad/template                              | 1 +
 srcpkgs/libmemcached/template                        | 1 +
 srcpkgs/libmill/template                             | 1 +
 srcpkgs/libmilter/template                           | 1 +
 srcpkgs/libmirage/template                           | 1 +
 srcpkgs/libmowgli/template                           | 1 +
 srcpkgs/libmp4v2/template                            | 1 +
 srcpkgs/libmpd/template                              | 1 +
 srcpkgs/libmspub/template                            | 1 +
 srcpkgs/libmygpo-qt/template                         | 1 +
 srcpkgs/libmygui/template                            | 1 +
 srcpkgs/libnet/template                              | 1 +
 srcpkgs/libnetfilter_log/template                    | 1 +
 srcpkgs/libnfc/template                              | 1 +
 srcpkgs/libnfs/template                              | 1 +
 srcpkgs/libnih/template                              | 1 +
 srcpkgs/libnl/template                               | 1 +
 srcpkgs/libogre/template                             | 1 +
 srcpkgs/libomxil-bellagio/template                   | 1 +
 srcpkgs/libopenglrecorder/template                   | 1 +
 srcpkgs/libopenshot-audio/template                   | 1 +
 srcpkgs/libosinfo/template                           | 1 +
 srcpkgs/libostree/template                           | 1 +
 srcpkgs/libowfat/template                            | 1 +
 srcpkgs/libportal/template                           | 1 +
 srcpkgs/libproxy/template                            | 1 +
 srcpkgs/libpurple-steam/template                     | 1 +
 srcpkgs/libratbag/template                           | 1 +
 srcpkgs/libreadline8/template                        | 1 +
 srcpkgs/libreoffice/template                         | 1 +
 srcpkgs/libretro-mupen64plus-rpi/template            | 1 +
 srcpkgs/libretro-mupen64plus/template                | 1 +
 srcpkgs/librtas/template                             | 1 +
 srcpkgs/libscrypt/template                           | 1 +
 srcpkgs/libsearpc/template                           | 1 +
 srcpkgs/libselinux/template                          | 1 +
 srcpkgs/libsigrokdecode/template                     | 1 +
 srcpkgs/libsigsegv/template                          | 1 +
 srcpkgs/libsmbios/template                           | 1 +
 srcpkgs/libspnav/template                            | 1 +
 srcpkgs/libssh/template                              | 1 +
 srcpkgs/libtecla/template                            | 1 +
 srcpkgs/libticables2/template                        | 1 +
 srcpkgs/libtool/template                             | 1 +
 srcpkgs/libtorrent/template                          | 1 +
 srcpkgs/libu2f-host/template                         | 1 +
 srcpkgs/libu2f-server/template                       | 1 +
 srcpkgs/libucl/template                              | 1 +
 srcpkgs/libuninum/template                           | 1 +
 srcpkgs/libunique/template                           | 1 +
 srcpkgs/libunwind/template                           | 1 +
 srcpkgs/libusb-compat/template                       | 1 +
 srcpkgs/libusb/template                              | 1 +
 srcpkgs/libusbmuxd/template                          | 1 +
 srcpkgs/libuv/template                               | 1 +
 srcpkgs/libvdpau/template                            | 1 +
 srcpkgs/libvidstab/template                          | 1 +
 srcpkgs/libvirt-glib/template                        | 1 +
 srcpkgs/libwmf/template                              | 1 +
 srcpkgs/libxdg-basedir/template                      | 1 +
 srcpkgs/libxkbcommon/template                        | 1 +
 srcpkgs/libxml2-python/template                      | 1 +
 srcpkgs/libxml2/template                             | 1 +
 srcpkgs/libxo/template                               | 1 +
 srcpkgs/libzim/template                              | 1 +
 srcpkgs/lightdm-webkit2-greeter/template             | 1 +
 srcpkgs/lightdm/template                             | 1 +
 srcpkgs/lighttpd/template                            | 1 +
 srcpkgs/lightzone/template                           | 1 +
 srcpkgs/lilo/template                                | 1 +
 srcpkgs/lilyterm/template                            | 1 +
 srcpkgs/linphone-desktop/template                    | 1 +
 srcpkgs/linssid/template                             | 1 +
 srcpkgs/linux-tools/template                         | 1 +
 srcpkgs/linux-vt-setcolors/template                  | 1 +
 srcpkgs/linux4.4/template                            | 1 +
 srcpkgs/liquid-dsp/template                          | 1 +
 srcpkgs/liquidwar/template                           | 1 +
 srcpkgs/litecoin/template                            | 1 +
 srcpkgs/llvm11/template                              | 1 +
 srcpkgs/llvm12/template                              | 1 +
 srcpkgs/lmdb/template                                | 1 +
 srcpkgs/lmms/template                                | 1 +
 srcpkgs/log4cxx/template                             | 1 +
 srcpkgs/loksh/template                               | 1 +
 srcpkgs/loudmouth/template                           | 1 +
 srcpkgs/lshw/template                                | 1 +
 srcpkgs/ltrace/template                              | 1 +
 srcpkgs/lttng-tools/template                         | 1 +
 srcpkgs/lua51-luasocket/template                     | 1 +
 srcpkgs/lua51/template                               | 1 +
 srcpkgs/lua52/template                               | 1 +
 srcpkgs/lua53/template                               | 1 +
 srcpkgs/lua54-lgi/template                           | 1 +
 srcpkgs/lua54-lualdap/template                       | 1 +
 srcpkgs/lua54/template                               | 1 +
 srcpkgs/luakit/template                              | 1 +
 srcpkgs/lumina/template                              | 1 +
 srcpkgs/lvm2/template                                | 1 +
 srcpkgs/lwipv6/template                              | 1 +
 srcpkgs/lxappearance/template                        | 1 +
 srcpkgs/lxdm/template                                | 1 +
 srcpkgs/lxpanel/template                             | 1 +
 srcpkgs/lzf/template                                 | 1 +
 srcpkgs/mDNSResponder/template                       | 1 +
 srcpkgs/mairix/template                              | 1 +
 srcpkgs/makedumpfile/template                        | 1 +
 srcpkgs/makeself/template                            | 1 +
 srcpkgs/mame/template                                | 1 +
 srcpkgs/man-db/template                              | 1 +
 srcpkgs/marble5/template                             | 1 +
 srcpkgs/marco/template                               | 1 +
 srcpkgs/mariadb/template                             | 1 +
 srcpkgs/masterpassword-cli/template                  | 1 +
 srcpkgs/mate-utils/template                          | 1 +
 srcpkgs/matio/template                               | 1 +
 srcpkgs/maturin/template                             | 1 +
 srcpkgs/mc/template                                  | 1 +
 srcpkgs/mcpp/template                                | 1 +
 srcpkgs/mdadm/template                               | 1 +
 srcpkgs/mdocml/template                              | 1 +
 srcpkgs/mediastreamer/template                       | 1 +
 srcpkgs/mednafen/template                            | 1 +
 srcpkgs/memtest86+/template                          | 1 +
 srcpkgs/mergerfs/template                            | 1 +
 srcpkgs/merkaartor/template                          | 1 +
 srcpkgs/mesa/template                                | 1 +
 srcpkgs/meson/template                               | 1 +
 srcpkgs/mg/template                                  | 1 +
 srcpkgs/mhddfs/template                              | 1 +
 srcpkgs/milkytracker/template                        | 1 +
 srcpkgs/mimic/template                               | 1 +
 srcpkgs/minicom/template                             | 1 +
 srcpkgs/minidlna/template                            | 1 +
 srcpkgs/minijail/template                            | 1 +
 srcpkgs/minisat/template                             | 1 +
 srcpkgs/minissdpd/template                           | 1 +
 srcpkgs/mit-krb5/template                            | 1 +
 srcpkgs/mit-scheme-c/template                        | 1 +
 srcpkgs/mlocate/template                             | 1 +
 srcpkgs/mmv/template                                 | 1 +
 srcpkgs/moc/template                                 | 1 +
 srcpkgs/mod_wsgi/template                            | 1 +
 srcpkgs/mog/template                                 | 1 +
 srcpkgs/mon/template                                 | 1 +
 srcpkgs/monero/template                              | 1 +
 srcpkgs/mongoose/template                            | 1 +
 srcpkgs/monit/template                               | 1 +
 srcpkgs/mono/template                                | 1 +
 srcpkgs/moon-buggy/template                          | 1 +
 srcpkgs/moosefs/template                             | 1 +
 srcpkgs/mosh/template                                | 1 +
 srcpkgs/mosquitto/template                           | 1 +
 srcpkgs/mp3check/template                            | 1 +
 srcpkgs/mp3val/template                              | 1 +
 srcpkgs/mpg123/template                              | 1 +
 srcpkgs/mplayer/template                             | 1 +
 srcpkgs/mrxvt/template                               | 1 +
 srcpkgs/msg2/template                                | 1 +
 srcpkgs/msp430-toolchain/template                    | 1 +
 srcpkgs/mumble/template                              | 1 +
 srcpkgs/mupen64plus/template                         | 1 +
 srcpkgs/musikcube/template                           | 1 +
 srcpkgs/mutter/template                              | 1 +
 srcpkgs/mysql++/template                             | 1 +
 srcpkgs/nagstamon/template                           | 1 +
 srcpkgs/namecoin/template                            | 1 +
 srcpkgs/navit/template                               | 1 +
 srcpkgs/nemiver/template                             | 1 +
 srcpkgs/net-snmp/template                            | 1 +
 srcpkgs/netcat/template                              | 1 +
 srcpkgs/nethack/template                             | 1 +
 srcpkgs/netpgp/template                              | 1 +
 srcpkgs/netpgpverify/template                        | 1 +
 srcpkgs/nettle/template                              | 1 +
 srcpkgs/network-ups-tools/template                   | 1 +
 srcpkgs/newlisp/template                             | 1 +
 srcpkgs/nextcloud-client/template                    | 1 +
 srcpkgs/nfs4-acl-tools/template                      | 1 +
 srcpkgs/nginx/template                               | 1 +
 srcpkgs/ngspice/template                             | 1 +
 srcpkgs/nitroshare/template                          | 1 +
 srcpkgs/nmon/template                                | 1 +
 srcpkgs/nocache/template                             | 1 +
 srcpkgs/nodejs-lts-10/template                       | 1 +
 srcpkgs/nodejs-lts/template                          | 1 +
 srcpkgs/nodejs/template                              | 1 +
 srcpkgs/noip2/template                               | 1 +
 srcpkgs/notepadqq/template                           | 1 +
 srcpkgs/notes-up/template                            | 1 +
 srcpkgs/nrpe/template                                | 1 +
 srcpkgs/nsjail/template                              | 1 +
 srcpkgs/nspr/template                                | 1 +
 srcpkgs/nss/template                                 | 1 +
 srcpkgs/ntp/template                                 | 1 +
 srcpkgs/numactl/template                             | 1 +
 srcpkgs/nvme-cli/template                            | 1 +
 srcpkgs/nwipe/template                               | 1 +
 srcpkgs/nx-libs/template                             | 1 +
 srcpkgs/obexftp/template                             | 1 +
 srcpkgs/occt/template                                | 1 +
 srcpkgs/odroid-u2-kernel/template                    | 1 +
 srcpkgs/ofono/template                               | 1 +
 srcpkgs/ogmrip/template                              | 1 +
 srcpkgs/ogmtools/template                            | 1 +
 srcpkgs/oksh/template                                | 1 +
 srcpkgs/okteta/template                              | 1 +
 srcpkgs/okular/template                              | 1 +
 srcpkgs/olsrd/template                               | 1 +
 srcpkgs/omxplayer/template                           | 1 +
 srcpkgs/open-iscsi/template                          | 1 +
 srcpkgs/open-vm-tools/template                       | 1 +
 srcpkgs/openbabel/template                           | 1 +
 srcpkgs/openblas/template                            | 1 +
 srcpkgs/openbox/template                             | 1 +
 srcpkgs/openbsd-file/template                        | 1 +
 srcpkgs/opencollada/template                         | 1 +
 srcpkgs/opencolorio/template                         | 1 +
 srcpkgs/opencv/template                              | 1 +
 srcpkgs/opencv4/template                             | 1 +
 srcpkgs/opendkim/template                            | 1 +
 srcpkgs/openexr/template                             | 1 +
 srcpkgs/openjade/template                            | 1 +
 srcpkgs/openjpeg2/template                           | 1 +
 srcpkgs/openlierox/template                          | 1 +
 srcpkgs/openmpi/template                             | 1 +
 srcpkgs/openntpd/template                            | 1 +
 srcpkgs/opensm/template                              | 1 +
 srcpkgs/opensmtpd-extras/template                    | 1 +
 srcpkgs/opensmtpd/template                           | 1 +
 srcpkgs/opensonic/template                           | 1 +
 srcpkgs/openssh/template                             | 1 +
 srcpkgs/openssl/template                             | 1 +
 srcpkgs/opensurge/template                           | 1 +
 srcpkgs/opkg/template                                | 1 +
 srcpkgs/oprofile/template                            | 1 +
 srcpkgs/oragono/template                             | 1 +
 srcpkgs/orion/template                               | 1 +
 srcpkgs/os-prober/template                           | 1 +
 srcpkgs/osg/template                                 | 1 +
 srcpkgs/osmid/template                               | 1 +
 srcpkgs/otfcc/template                               | 1 +
 srcpkgs/otpw/template                                | 1 +
 srcpkgs/owncloudclient/template                      | 1 +
 srcpkgs/p7zip/template                               | 1 +
 srcpkgs/pa-applet/template                           | 1 +
 srcpkgs/pacman/template                              | 1 +
 srcpkgs/pahole/template                              | 1 +
 srcpkgs/pam-mount/template                           | 1 +
 srcpkgs/pam-u2f/template                             | 1 +
 srcpkgs/pam_ssh/template                             | 1 +
 srcpkgs/pam_ssh_agent_auth/template                  | 1 +
 srcpkgs/papi/template                                | 1 +
 srcpkgs/par/template                                 | 1 +
 srcpkgs/par2cmdline/template                         | 1 +
 srcpkgs/paraview/template                            | 1 +
 srcpkgs/parcellite/template                          | 1 +
 srcpkgs/partclone/template                           | 1 +
 srcpkgs/passwordsafe/template                        | 1 +
 srcpkgs/pax/template                                 | 1 +
 srcpkgs/pcaudiolib/template                          | 1 +
 srcpkgs/pcc/template                                 | 1 +
 srcpkgs/pchar/template                               | 1 +
 srcpkgs/pcsclite/template                            | 1 +
 srcpkgs/pcsx2/template                               | 1 +
 srcpkgs/pd/template                                  | 1 +
 srcpkgs/pdsh/template                                | 1 +
 srcpkgs/perl-Text-BibTeX/template                    | 1 +
 srcpkgs/perl-Tk/template                             | 1 +
 srcpkgs/perl-WWW-Curl/template                       | 1 +
 srcpkgs/perl/template                                | 1 +
 srcpkgs/pgadmin3/template                            | 1 +
 srcpkgs/php/template                                 | 1 +
 srcpkgs/pidgin-libnotify/template                    | 1 +
 srcpkgs/pidgin/template                              | 1 +
 srcpkgs/pijul/template                               | 1 +
 srcpkgs/pilot-link/template                          | 1 +
 srcpkgs/pinebookpro-uboot/template                   | 1 +
 srcpkgs/pingus/template                              | 1 +
 srcpkgs/pioneer/template                             | 1 +
 srcpkgs/pipenightdreams/template                     | 1 +
 srcpkgs/pipewire/template                            | 1 +
 srcpkgs/pjproject/template                           | 1 +
 srcpkgs/plasma-framework/template                    | 1 +
 srcpkgs/plasma-workspace/template                    | 1 +
 srcpkgs/plex-media-player/template                   | 1 +
 srcpkgs/plib/template                                | 1 +
 srcpkgs/plocate/template                             | 1 +
 srcpkgs/plotutils/template                           | 1 +
 srcpkgs/plume-creator/template                       | 1 +
 srcpkgs/plymouth/template                            | 1 +
 srcpkgs/pmount/template                              | 1 +
 srcpkgs/png++/template                               | 1 +
 srcpkgs/polkit-qt5/template                          | 1 +
 srcpkgs/polkit/template                              | 1 +
 srcpkgs/polygen/template                             | 1 +
 srcpkgs/portaudio/template                           | 1 +
 srcpkgs/portmidi/template                            | 1 +
 srcpkgs/postfix/template                             | 1 +
 srcpkgs/postgresql/template                          | 1 +
 srcpkgs/postgresql12/template                        | 1 +
 srcpkgs/postgresql13/template                        | 1 +
 srcpkgs/povray/template                              | 1 +
 srcpkgs/powerpc-utils/template                       | 1 +
 srcpkgs/ppp/template                                 | 1 +
 srcpkgs/pps-tools/template                           | 1 +
 srcpkgs/ppsspp/template                              | 1 +
 srcpkgs/pptpclient/template                          | 1 +
 srcpkgs/projectlibre/template                        | 1 +
 srcpkgs/proot/template                               | 1 +
 srcpkgs/protobuf-c/template                          | 1 +
 srcpkgs/prototype/template                           | 1 +
 srcpkgs/psensor/template                             | 1 +
 srcpkgs/ptii/template                                | 1 +
 srcpkgs/pugixml/template                             | 1 +
 srcpkgs/pulseview/template                           | 1 +
 srcpkgs/putty/template                               | 1 +
 srcpkgs/pvoc/template                                | 1 +
 srcpkgs/pwnat/template                               | 1 +
 srcpkgs/pygtk/template                               | 1 +
 srcpkgs/pymol/template                               | 1 +
 srcpkgs/pyside2-tools/template                       | 1 +
 srcpkgs/python-M2Crypto/template                     | 1 +
 srcpkgs/python-coverage/template                     | 1 +
 srcpkgs/python-docutils/template                     | 1 +
 srcpkgs/python-evdev/template                        | 1 +
 srcpkgs/python-nose/template                         | 1 +
 srcpkgs/python-pip/template                          | 1 +
 srcpkgs/python-requests/template                     | 1 +
 srcpkgs/python/template                              | 1 +
 srcpkgs/python3-PyBrowserID/template                 | 1 +
 srcpkgs/python3-PyQt5/template                       | 1 +
 srcpkgs/python3-aiohttp/template                     | 1 +
 srcpkgs/python3-boltons/template                     | 1 +
 srcpkgs/python3-cli_helpers/template                 | 1 +
 srcpkgs/python3-curtsies/template                    | 1 +
 srcpkgs/python3-entrypoints/template                 | 1 +
 srcpkgs/python3-gevent/template                      | 1 +
 srcpkgs/python3-gitchangelog/template                | 1 +
 srcpkgs/python3-grpcio/template                      | 1 +
 srcpkgs/python3-mygpoclient/template                 | 1 +
 srcpkgs/python3-nose2/template                       | 1 +
 srcpkgs/python3-pdfminer.six/template                | 1 +
 srcpkgs/python3-pikepdf/template                     | 1 +
 srcpkgs/python3-pip/template                         | 1 +
 srcpkgs/python3-pwntools/template                    | 1 +
 srcpkgs/python3-pylibgen/template                    | 1 +
 srcpkgs/python3-pyside2/template                     | 1 +
 srcpkgs/python3-repoze.sphinx.autointerface/template | 1 +
 srcpkgs/python3-telegram/template                    | 1 +
 srcpkgs/python3/template                             | 1 +
 srcpkgs/qca-qt5/template                             | 1 +
 srcpkgs/qdirstat/template                            | 1 +
 srcpkgs/qingy/template                               | 1 +
 srcpkgs/qmmp/template                                | 1 +
 srcpkgs/qpdfview/template                            | 1 +
 srcpkgs/qscintilla-qt5/template                      | 1 +
 srcpkgs/qsstv/template                               | 1 +
 srcpkgs/qt5-fsarchiver/template                      | 1 +
 srcpkgs/qt5-styleplugins/template                    | 1 +
 srcpkgs/qt5-webkit/template                          | 1 +
 srcpkgs/qt5/template                                 | 1 +
 srcpkgs/qt5pas/template                              | 1 +
 srcpkgs/qt6-base/template                            | 1 +
 srcpkgs/qtav/template                                | 1 +
 srcpkgs/qtcreator/template                           | 1 +
 srcpkgs/qtikz/template                               | 1 +
 srcpkgs/qtkeychain-qt5/template                      | 1 +
 srcpkgs/qtpass/template                              | 1 +
 srcpkgs/quassel/template                             | 1 +
 srcpkgs/quickjs/template                             | 1 +
 srcpkgs/quota/template                               | 1 +
 srcpkgs/qv4l2/template                               | 1 +
 srcpkgs/rabbitmq-c/template                          | 1 +
 srcpkgs/racket/template                              | 1 +
 srcpkgs/radare2/template                             | 1 +
 srcpkgs/rakarrack/template                           | 1 +
 srcpkgs/rapidjson/template                           | 1 +
 srcpkgs/raptor/template                              | 1 +
 srcpkgs/rdedup/template                              | 1 +
 srcpkgs/rdis-git/template                            | 1 +
 srcpkgs/re/template                                  | 1 +
 srcpkgs/redis/template                               | 1 +
 srcpkgs/redo/template                                | 1 +
 srcpkgs/refind/template                              | 1 +
 srcpkgs/reiserfsprogs/template                       | 1 +
 srcpkgs/renderdoc/template                           | 1 +
 srcpkgs/residualvm/template                          | 1 +
 srcpkgs/resvg/template                               | 1 +
 srcpkgs/retroshare/template                          | 1 +
 srcpkgs/rhythmbox/template                           | 1 +
 srcpkgs/rinse/template                               | 1 +
 srcpkgs/rix/template                                 | 1 +
 srcpkgs/rmilter/template                             | 1 +
 srcpkgs/rmlint/template                              | 1 +
 srcpkgs/rpcbind/template                             | 1 +
 srcpkgs/rpi-imager/template                          | 1 +
 srcpkgs/rpm/template                                 | 1 +
 srcpkgs/rspamd/template                              | 1 +
 srcpkgs/rsstail/template                             | 1 +
 srcpkgs/rstudio/template                             | 1 +
 srcpkgs/rsyslog/template                             | 1 +
 srcpkgs/rtl8812au-dkms/template                      | 1 +
 srcpkgs/rtl8822bu-dkms/template                      | 1 +
 srcpkgs/rtmpdump/template                            | 1 +
 srcpkgs/rtorrent/template                            | 1 +
 srcpkgs/rubberband/template                          | 1 +
 srcpkgs/ruby/template                                | 1 +
 srcpkgs/ruler/template                               | 1 +
 srcpkgs/run-mailcap/template                         | 1 +
 srcpkgs/runit/template                               | 1 +
 srcpkgs/rustup/template                              | 1 +
 srcpkgs/rxvt-unicode/template                        | 1 +
 srcpkgs/s3cmd/template                               | 1 +
 srcpkgs/samba/template                               | 1 +
 srcpkgs/sandboxfs/template                           | 1 +
 srcpkgs/sane/template                                | 1 +
 srcpkgs/sauerbraten/template                         | 1 +
 srcpkgs/sbcl/template                                | 1 +
 srcpkgs/sc3-plugins/template                         | 1 +
 srcpkgs/scanmem/template                             | 1 +
 srcpkgs/schroot/template                             | 1 +
 srcpkgs/screen/template                              | 1 +
 srcpkgs/scrotty/template                             | 1 +
 srcpkgs/scummvm/template                             | 1 +
 srcpkgs/sddm/template                                | 1 +
 srcpkgs/seafile-client-qt/template                   | 1 +
 srcpkgs/seexpr-krita/template                        | 1 +
 srcpkgs/serf/template                                | 1 +
 srcpkgs/shaderc/template                             | 1 +
 srcpkgs/shadow/template                              | 1 +
 srcpkgs/shapelib/template                            | 1 +
 srcpkgs/shiboken2/template                           | 1 +
 srcpkgs/shmux/template                               | 1 +
 srcpkgs/shotwell/template                            | 1 +
 srcpkgs/signond/template                             | 1 +
 srcpkgs/sile/template                                | 1 +
 srcpkgs/silly/template                               | 1 +
 srcpkgs/simgear/template                             | 1 +
 srcpkgs/simutron/template                            | 1 +
 srcpkgs/sisl/template                                | 1 +
 srcpkgs/skroll/template                              | 1 +
 srcpkgs/slcp/template                                | 1 +
 srcpkgs/sleuthkit/template                           | 1 +
 srcpkgs/slim/template                                | 1 +
 srcpkgs/sloccount/template                           | 1 +
 srcpkgs/slurm-wlm/template                           | 1 +
 srcpkgs/smpeg/template                               | 1 +
 srcpkgs/smpeg2/template                              | 1 +
 srcpkgs/snapper/template                             | 1 +
 srcpkgs/snappy/template                              | 1 +
 srcpkgs/socat/template                               | 1 +
 srcpkgs/socklog/template                             | 1 +
 srcpkgs/sombok/template                              | 1 +
 srcpkgs/sonic-visualiser/template                    | 1 +
 srcpkgs/sopwith/template                             | 1 +
 srcpkgs/soundmodem/template                          | 1 +
 srcpkgs/spacefm/template                             | 1 +
 srcpkgs/spamassassin/template                        | 1 +
 srcpkgs/spampd/template                              | 1 +
 srcpkgs/speech-dispatcher/template                   | 1 +
 srcpkgs/speed-dreams/template                        | 1 +
 srcpkgs/spice-gtk/template                           | 1 +
 srcpkgs/spim/template                                | 1 +
 srcpkgs/splix/template                               | 1 +
 srcpkgs/spreed-webrtc/template                       | 1 +
 srcpkgs/sqmail/template                              | 1 +
 srcpkgs/squashfs-tools/template                      | 1 +
 srcpkgs/srb2/template                                | 1 +
 srcpkgs/ssoma/template                               | 1 +
 srcpkgs/sssd/template                                | 1 +
 srcpkgs/stack/template                               | 1 +
 srcpkgs/starplot/template                            | 1 +
 srcpkgs/stepmania/template                           | 1 +
 srcpkgs/stfl/template                                | 1 +
 srcpkgs/stk/template                                 | 1 +
 srcpkgs/stlink/template                              | 1 +
 srcpkgs/stockfish/template                           | 1 +
 srcpkgs/strawberry/template                          | 1 +
 srcpkgs/subversion-kwallet-auth/template             | 1 +
 srcpkgs/subversion/template                          | 1 +
 srcpkgs/sudo/template                                | 1 +
 srcpkgs/sudoku/template                              | 1 +
 srcpkgs/sunxi-tools/template                         | 1 +
 srcpkgs/supercollider/template                       | 1 +
 srcpkgs/supertux2/template                           | 1 +
 srcpkgs/supertuxkart/template                        | 1 +
 srcpkgs/sutils/template                              | 1 +
 srcpkgs/sway/template                                | 1 +
 srcpkgs/swiften/template                             | 1 +
 srcpkgs/sword/template                               | 1 +
 srcpkgs/sxiv/template                                | 1 +
 srcpkgs/sylpheed/template                            | 1 +
 srcpkgs/synergy/template                             | 1 +
 srcpkgs/synfigstudio/template                        | 1 +
 srcpkgs/sysbench/template                            | 1 +
 srcpkgs/sysdig/template                              | 1 +
 srcpkgs/sysexxer-ng/template                         | 1 +
 srcpkgs/sysprof/template                             | 1 +
 srcpkgs/taskd/template                               | 1 +
 srcpkgs/tbb/template                                 | 1 +
 srcpkgs/tc-play/template                             | 1 +
 srcpkgs/tcl/template                                 | 1 +
 srcpkgs/tcpdump/template                             | 1 +
 srcpkgs/teensy_loader_cli/template                   | 1 +
 srcpkgs/teeworlds/template                           | 1 +
 srcpkgs/telegram-desktop/template                    | 1 +
 srcpkgs/telepathy-mission-control/template           | 1 +
 srcpkgs/tepl/template                                | 1 +
 srcpkgs/terminal_markdown_viewer/template            | 1 +
 srcpkgs/tesseract-ocr/template                       | 1 +
 srcpkgs/tesseract/template                           | 1 +
 srcpkgs/tevent/template                              | 1 +
 srcpkgs/texi2mdoc/template                           | 1 +
 srcpkgs/texlab/template                              | 1 +
 srcpkgs/texlive/template                             | 1 +
 srcpkgs/texstudio/template                           | 1 +
 srcpkgs/textosaurus/template                         | 1 +
 srcpkgs/texworks/template                            | 1 +
 srcpkgs/tgt/template                                 | 1 +
 srcpkgs/thingylaunch/template                        | 1 +
 srcpkgs/thunderbird/template                         | 1 +
 srcpkgs/tickr/template                               | 1 +
 srcpkgs/tidy5/template                               | 1 +
 srcpkgs/tilp2/template                               | 1 +
 srcpkgs/tinyxml/template                             | 1 +
 srcpkgs/tlsh/template                                | 1 +
 srcpkgs/tmines/template                              | 1 +
 srcpkgs/tnftp/template                               | 1 +
 srcpkgs/tomahawk/template                            | 1 +
 srcpkgs/tor/template                                 | 1 +
 srcpkgs/torbrowser-launcher/template                 | 1 +
 srcpkgs/touchegg/template                            | 1 +
 srcpkgs/trace-cmd/template                           | 1 +
 srcpkgs/traceroute/template                          | 1 +
 srcpkgs/tracker/template                             | 1 +
 srcpkgs/tracker3-miners/template                     | 1 +
 srcpkgs/transcode/template                           | 1 +
 srcpkgs/transmission/template                        | 1 +
 srcpkgs/treesheets/template                          | 1 +
 srcpkgs/trinity/template                             | 1 +
 srcpkgs/trojita/template                             | 1 +
 srcpkgs/trousers/template                            | 1 +
 srcpkgs/tsocks/template                              | 1 +
 srcpkgs/ttyrec/template                              | 1 +
 srcpkgs/tup/template                                 | 1 +
 srcpkgs/turbovnc/template                            | 1 +
 srcpkgs/txr/template                                 | 1 +
 srcpkgs/typespeed/template                           | 1 +
 srcpkgs/u2f-hidraw-policy/template                   | 1 +
 srcpkgs/u9fs/template                                | 1 +
 srcpkgs/ucspi-ssl/template                           | 1 +
 srcpkgs/udptunnel/template                           | 1 +
 srcpkgs/ufoai/template                               | 1 +
 srcpkgs/ufraw/template                               | 1 +
 srcpkgs/uftrace/template                             | 1 +
 srcpkgs/uim/template                                 | 1 +
 srcpkgs/ulauncher/template                           | 1 +
 srcpkgs/ulogd/template                               | 1 +
 srcpkgs/unison/template                              | 1 +
 srcpkgs/unknown-horizons/template                    | 1 +
 srcpkgs/urbanterror/template                         | 1 +
 srcpkgs/urlview/template                             | 1 +
 srcpkgs/usbguard/template                            | 1 +
 srcpkgs/uwm/template                                 | 1 +
 srcpkgs/uwsgi/template                               | 1 +
 srcpkgs/v4l-utils/template                           | 1 +
 srcpkgs/vala-panel/template                          | 1 +
 srcpkgs/vanitygen/template                           | 1 +
 srcpkgs/vapoursynth-editor/template                  | 1 +
 srcpkgs/varnish/template                             | 1 +
 srcpkgs/vboot-utils/template                         | 1 +
 srcpkgs/vde2/template                                | 1 +
 srcpkgs/vdirsyncer/template                          | 1 +
 srcpkgs/vdrift/template                              | 1 +
 srcpkgs/virglrenderer/template                       | 1 +
 srcpkgs/virtualbox-ose/template                      | 1 +
 srcpkgs/virtuoso/template                            | 1 +
 srcpkgs/visitors/template                            | 1 +
 srcpkgs/vitetris/template                            | 1 +
 srcpkgs/vlc/template                                 | 1 +
 srcpkgs/voltron/template                             | 1 +
 srcpkgs/volumeicon/template                          | 1 +
 srcpkgs/vpcs/template                                | 1 +
 srcpkgs/vpn-ws/template                              | 1 +
 srcpkgs/vsftpd/template                              | 1 +
 srcpkgs/vte3/template                                | 1 +
 srcpkgs/w_scan/template                              | 1 +
 srcpkgs/waifu2x-converter-cpp/template               | 1 +
 srcpkgs/webkit2gtk/template                          | 1 +
 srcpkgs/wicd/template                                | 1 +
 srcpkgs/widelands/template                           | 1 +
 srcpkgs/wildmidi/template                            | 1 +
 srcpkgs/wine/template                                | 1 +
 srcpkgs/wineasio/template                            | 1 +
 srcpkgs/winusb/template                              | 1 +
 srcpkgs/wireshark/template                           | 1 +
 srcpkgs/wm2/template                                 | 1 +
 srcpkgs/woff2/template                               | 1 +
 srcpkgs/wordgrinder/template                         | 1 +
 srcpkgs/workrave/template                            | 1 +
 srcpkgs/wtype/template                               | 1 +
 srcpkgs/wvstreams/template                           | 1 +
 srcpkgs/wxPython4/template                           | 1 +
 srcpkgs/wxWidgets-gtk3/template                      | 1 +
 srcpkgs/wxWidgets/template                           | 1 +
 srcpkgs/x11vnc/template                              | 1 +
 srcpkgs/x265/template                                | 1 +
 srcpkgs/x42-plugins/template                         | 1 +
 srcpkgs/xapian-core/template                         | 1 +
 srcpkgs/xar/template                                 | 1 +
 srcpkgs/xautolock/template                           | 1 +
 srcpkgs/xava/template                                | 1 +
 srcpkgs/xboxdrv/template                             | 1 +
 srcpkgs/xcolorsel/template                           | 1 +
 srcpkgs/xdg-utils/template                           | 1 +
 srcpkgs/xerces-c/template                            | 1 +
 srcpkgs/xf86-input-mtrack/template                   | 1 +
 srcpkgs/xf86-input-synaptics/template                | 1 +
 srcpkgs/xf86-video-ati/template                      | 1 +
 srcpkgs/xf86-video-cirrus/template                   | 1 +
 srcpkgs/xf86-video-fbdev/template                    | 1 +
 srcpkgs/xf86-video-fbturbo-sunxi/template            | 1 +
 srcpkgs/xf86-video-fbturbo/template                  | 1 +
 srcpkgs/xf86-video-intel/template                    | 1 +
 srcpkgs/xf86-video-mach64/template                   | 1 +
 srcpkgs/xf86-video-mga/template                      | 1 +
 srcpkgs/xf86-video-r128/template                     | 1 +
 srcpkgs/xf86-video-vmware/template                   | 1 +
 srcpkgs/xfig/template                                | 1 +
 srcpkgs/xfsprogs/template                            | 1 +
 srcpkgs/xinetd/template                              | 1 +
 srcpkgs/xinit/template                               | 1 +
 srcpkgs/xload/template                               | 1 +
 srcpkgs/xlunch/template                              | 1 +
 srcpkgs/xnp2/template                                | 1 +
 srcpkgs/xonotic/template                             | 1 +
 srcpkgs/xorg-cf-files/template                       | 1 +
 srcpkgs/xorg-server/template                         | 1 +
 srcpkgs/xosview/template                             | 1 +
 srcpkgs/xplanet/template                             | 1 +
 srcpkgs/xrick/template                               | 1 +
 srcpkgs/xsane/template                               | 1 +
 srcpkgs/xsettingsd/template                          | 1 +
 srcpkgs/xst/template                                 | 1 +
 srcpkgs/xstarter/template                            | 1 +
 srcpkgs/xterm/template                               | 1 +
 srcpkgs/xye/template                                 | 1 +
 srcpkgs/yabar/template                               | 1 +
 srcpkgs/yarn-bin/template                            | 1 +
 srcpkgs/yarn/template                                | 1 +
 srcpkgs/yeahconsole/template                         | 1 +
 srcpkgs/yeahwm/template                              | 1 +
 srcpkgs/yersinia/template                            | 1 +
 srcpkgs/ympd/template                                | 1 +
 srcpkgs/yoshimi/template                             | 1 +
 srcpkgs/yosys/template                               | 1 +
 srcpkgs/z3/template                                  | 1 +
 srcpkgs/z80ex/template                               | 1 +
 srcpkgs/zabbix/template                              | 1 +
 srcpkgs/zbar/template                                | 1 +
 srcpkgs/zeal/template                                | 1 +
 srcpkgs/zeek/template                                | 1 +
 srcpkgs/zerofree/template                            | 1 +
 srcpkgs/zfs/template                                 | 1 +
 srcpkgs/zimg/template                                | 1 +
 srcpkgs/zinnia/template                              | 1 +
 srcpkgs/zip/template                                 | 1 +
 srcpkgs/zlib/template                                | 1 +
 srcpkgs/zsnes/template                               | 1 +
 srcpkgs/zulucrypt/template                           | 1 +
 srcpkgs/zutils/template                              | 1 +
 srcpkgs/zynaddsubfx/template                         | 1 +
 1241 files changed, 1241 insertions(+)

diff --git a/srcpkgs/0ad/template b/srcpkgs/0ad/template
index d6bbdb483101..183936084930 100644
--- a/srcpkgs/0ad/template
+++ b/srcpkgs/0ad/template
@@ -17,6 +17,7 @@ distfiles="https://releases.wildfiregames.com/${pkgname}-${version}-alpha-unix-b
 checksum=325c23c9b6bfc16eb636af6a7a7bdaadbf19214b6eed0422d74cc0090bf137a8
 nocross="uses bundled third-party libraries that do not cross-compile"
 lib32disabled=yes
+patch_args=-Np0
 
 CXXFLAGS="-fpermissive"
 # Use BFD linker to avoid erroneous detection of llvm pr8927 with *-musl
diff --git a/srcpkgs/66-tools/template b/srcpkgs/66-tools/template
index b9c5e7c66a79..ca916507c9a6 100644
--- a/srcpkgs/66-tools/template
+++ b/srcpkgs/66-tools/template
@@ -17,6 +17,7 @@ homepage="http://web.obarun.org/software/index.html"
 changelog="https://framagit.org/Obarun/66-tools/-/raw/master/doc/upgrade.md"
 distfiles="https://framagit.org/Obarun/66-tools/-/archive/v${version}/66-tools-v${version}.tar.gz"
 checksum=c8cbe0d6c104e4d87d588d5980201770a6fd2fad11f99ff138a37ff918d68491
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/7kaa/template b/srcpkgs/7kaa/template
index 7aa6e152c8f1..b776195a806b 100644
--- a/srcpkgs/7kaa/template
+++ b/srcpkgs/7kaa/template
@@ -15,6 +15,7 @@ distfiles="https://github.com/the3dfxdude/7kaa/releases/download/v${version}/${p
 checksum="f0265c077025d77b435f1c10b8ba178bdb16329e51ab735330ebaa71a104fbf8
  b0d767b6e25719a14f5f34a93744a8022d7bc24af66275bee54dfc788695c1c3"
 replaces="7kaa-data>=0"
+patch_args=-Np0
 
 post_extract() {
 	mv ../7kaa-music .
diff --git a/srcpkgs/9base/template b/srcpkgs/9base/template
index e7cee72701f8..74ed0a369e03 100644
--- a/srcpkgs/9base/template
+++ b/srcpkgs/9base/template
@@ -17,6 +17,7 @@ distfiles="https://alpha.de.repo.voidlinux.org/distfiles/9base-${_githash}.tar.g
 checksum=b315509470c25db88595bd0e9478428dea54d7836fe2ba9d07279ae9496366fb
 conflicts="plan9port"
 provides="plan9port-20160418_4"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/9mount/template b/srcpkgs/9mount/template
index 5b1160ad2049..6cf8f4e2fc9c 100644
--- a/srcpkgs/9mount/template
+++ b/srcpkgs/9mount/template
@@ -10,6 +10,7 @@ license="ISC"
 homepage="http://sqweek.net/code/9mount/"
 distfiles="http://sqweek.net/9p/$pkgname-$version.tar.gz"
 checksum=820d80b9b478d05ecb022ad658477b37cfc2414a8669c3af17d192a522064c17
+patch_args=-Np0
 
 pre_build() {
 	sed -i '/chown/d' Makefile
diff --git a/srcpkgs/Aegisub/template b/srcpkgs/Aegisub/template
index 2ddf6c24ee6e..8dcd52f2a62c 100644
--- a/srcpkgs/Aegisub/template
+++ b/srcpkgs/Aegisub/template
@@ -17,6 +17,7 @@ license="BSD-3-Clause, MIT"
 homepage="http://www.aegisub.org"
 distfiles="https://github.com/Aegisub/Aegisub/archive/v${version}.tar.gz"
 checksum=62757dd491455268a240f983b59734a801cc2e899039a7493deeaf5e24a61dcd
+patch_args=-Np0
 
 build_options="fftw openal portaudio"
 build_options_default="fftw"
diff --git a/srcpkgs/Brainfunk/template b/srcpkgs/Brainfunk/template
index 309179b0715a..389100d545c3 100644
--- a/srcpkgs/Brainfunk/template
+++ b/srcpkgs/Brainfunk/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/GReaperEx/Brainfunk"
 distfiles="${homepage}/archive/v${version}-beta.tar.gz"
 checksum=6b48bd1fbe0dbce20f3e8af5c799023ea820ddc45aca8fac0ccecfa2de359ee2
+patch_args=-Np0
 
 do_install() {
 	vbin bfk
diff --git a/srcpkgs/CPU-X/template b/srcpkgs/CPU-X/template
index 0947bcfef816..f99e7a8e62a2 100644
--- a/srcpkgs/CPU-X/template
+++ b/srcpkgs/CPU-X/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://x0rg.github.io/CPU-X/"
 distfiles="https://github.com/X0rg/CPU-X/archive/v${version}.tar.gz"
 checksum=c41fbb3000e3e6f79e5228aa0237fde4f98b11df8ccb4c9a46f7e63a4a7011bf
+patch_args=-Np0
 
 build_options="gtk3"
 build_options_default="gtk3"
diff --git a/srcpkgs/Carla/template b/srcpkgs/Carla/template
index 701fd0ea30f7..bc39346ecec8 100644
--- a/srcpkgs/Carla/template
+++ b/srcpkgs/Carla/template
@@ -18,6 +18,7 @@ homepage="https://kxstudio.linuxaudio.org/Applications:Carla"
 distfiles="https://github.com/falkTX/Carla/archive/v${version}.tar.gz"
 checksum=a82ce08f3a82db9d878c8cb7e7e2f3b80834bf21801c6ec4ed95c0cfee25b963
 python_version=3
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	x86_64* | i686*);;
diff --git a/srcpkgs/Cataclysm-DDA/template b/srcpkgs/Cataclysm-DDA/template
index bbe66b9f29b9..8e57303fe874 100644
--- a/srcpkgs/Cataclysm-DDA/template
+++ b/srcpkgs/Cataclysm-DDA/template
@@ -15,6 +15,7 @@ license="CC-BY-SA-3.0, CC-BY-3.0"
 homepage="https://cataclysmdda.org/"
 distfiles="https://github.com/CleverRaven/Cataclysm-DDA/archive/${version}.tar.gz"
 checksum=b0af9a9292929e17332edcea770bca9a91f1d08ea47726d78a47e09281a42fa3
+patch_args=-Np0
 
 build_options="tiles backtrace"
 build_options_default="tiles"
diff --git a/srcpkgs/Chipmunk2D/template b/srcpkgs/Chipmunk2D/template
index 142051ec0a4a..1f4180bda367 100644
--- a/srcpkgs/Chipmunk2D/template
+++ b/srcpkgs/Chipmunk2D/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://chipmunk-physics.net/"
 distfiles="https://github.com/slembcke/Chipmunk2D/archive/Chipmunk-${version}.tar.gz"
 checksum=6b6d8d5d910c4442fb9c8c4c46a178126d8c21d075cdb3ce439a7f8d8757b0ca
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/Clight/template b/srcpkgs/Clight/template
index cff8201154a1..70d18bd53b78 100644
--- a/srcpkgs/Clight/template
+++ b/srcpkgs/Clight/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/FedeDP/Clight"
 distfiles="https://github.com/FedeDP/Clight/archive/${version}.tar.gz"
 checksum=2ce204edd58284c178b99e2ffec0105fc8e78d8a076350f64424b66c9878e91e
+patch_args=-Np0
 
 post_install() {
 	vcompletion Extra/completions/_clight zsh
diff --git a/srcpkgs/Clp/template b/srcpkgs/Clp/template
index 5b2af733ca37..fe3a9f916b18 100644
--- a/srcpkgs/Clp/template
+++ b/srcpkgs/Clp/template
@@ -10,6 +10,7 @@ license="EPL-1.0"
 homepage="http://projects.coin-or.org/Clp"
 distfiles="https://www.coin-or.org/Tarballs/${pkgname}/${pkgname}-${version}.tgz"
 checksum=a13bf54291ad503cf76f5f93f2643d2add4faa5d0e60ff2db902ef715c094573
+patch_args=-Np0
 
 libClp-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/CoinMP/template b/srcpkgs/CoinMP/template
index 995353eee428..a889ea92d33b 100644
--- a/srcpkgs/CoinMP/template
+++ b/srcpkgs/CoinMP/template
@@ -10,6 +10,7 @@ license="CPL-1.0"
 homepage="https://projects.coin-or.org/CoinMP"
 distfiles="http://www.coin-or.org/download/source/${pkgname}/${pkgname}-${version}.tgz"
 checksum=3459fb0ccbdd39342744684338984ac4cc153fb0434f4cae8cf74bd67490a38d
+patch_args=-Np0
 
 post_configure() {
 	# remove erroneous cross base prefix from include paths
diff --git a/srcpkgs/CubicSDR/template b/srcpkgs/CubicSDR/template
index f2eb67e7f9b5..fbc8339d6da0 100644
--- a/srcpkgs/CubicSDR/template
+++ b/srcpkgs/CubicSDR/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://cubicsdr.com"
 distfiles="https://github.com/cjcliffe/CubicSDR/archive/${version}.tar.gz"
 checksum=5cb44c110fcbbb70a468b7fa402cf35f84d8901b3dd42d471a90ac3f5db00f4d
+patch_args=-Np0
 
 build_options="alsa pulseaudio jack"
 build_options_default="alsa pulseaudio"
diff --git a/srcpkgs/DarkRadiant/template b/srcpkgs/DarkRadiant/template
index 1d47801303d3..e5a0057af193 100644
--- a/srcpkgs/DarkRadiant/template
+++ b/srcpkgs/DarkRadiant/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/codereader/DarkRadiant/"
 distfiles="https://github.com/codereader/DarkRadiant/archive/${version}.tar.gz"
 checksum=8c5dc0f7d160dea7e9c735f9739e36462dd8c8719a3022156f9584250fc3b867
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/lib/wx/include/gtk3-unicode-3.0"
 
diff --git a/srcpkgs/Fritzing/template b/srcpkgs/Fritzing/template
index d97ab1654a52..4dd6b0cb08f9 100644
--- a/srcpkgs/Fritzing/template
+++ b/srcpkgs/Fritzing/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/${pkgname}/${pkgname}-app/archive/${version}.tar.g
  https://github.com/${pkgname}/${pkgname}-parts/archive/${_partshash}.tar.gz>fritzing-parts-${_partshash}.tar.gz"
 checksum="2475a95aad2c1536eef3fdb72665c5c16590644b45bd110a0cde223c916625b8
  2d5882f0180d04c582ef418fd286bf1d04142409d316a4cd5c9ce3e2d91434dd"
+patch_args=-Np0
 
 post_extract() {
 	# looks for libgit2 and boost in the source tree
diff --git a/srcpkgs/GConf/template b/srcpkgs/GConf/template
index 4365c11e5844..51c792007cb0 100644
--- a/srcpkgs/GConf/template
+++ b/srcpkgs/GConf/template
@@ -22,6 +22,7 @@ make_dirs="/usr/share/gconf/schemas 0755 root root
  /etc/gconf/gconf.xml.defaults 0755 root root
  /etc/gconf/gconf.xml.mandatory 0755 root root
  /etc/gconf/gconf.xml.system 0755 root root"
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/Gauche/template b/srcpkgs/Gauche/template
index 74beafdc6863..f40f1d382f95 100644
--- a/srcpkgs/Gauche/template
+++ b/srcpkgs/Gauche/template
@@ -15,6 +15,7 @@ alternatives="
  scheme:scheme:/usr/bin/gauche
  scheme:scheme.1:/usr/share/man/man1/gauche.1
 "
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	# Gauche needs itself to bootstrap for cross compilation.
diff --git a/srcpkgs/GraphicsMagick/template b/srcpkgs/GraphicsMagick/template
index 35f5269eac7c..68825a0d4a7e 100644
--- a/srcpkgs/GraphicsMagick/template
+++ b/srcpkgs/GraphicsMagick/template
@@ -21,6 +21,7 @@ changelog="http://www.graphicsmagick.org/NEWS.html"
 distfiles="${SOURCEFORGE_SITE}/graphicsmagick/graphicsmagick/${version}/${pkgname}-${version}.tar.gz"
 checksum=1e6723c48c4abbb31197fadf8396b2d579d97e197123edc70a4f057f0533d563
 keep_libtool_archives=yes
+patch_args=-Np0
 
 post_install() {
 	vlicense Copyright.txt LICENSE
diff --git a/srcpkgs/Haru/template b/srcpkgs/Haru/template
index d1207b72b881..439b4f934042 100644
--- a/srcpkgs/Haru/template
+++ b/srcpkgs/Haru/template
@@ -12,6 +12,7 @@ license="Zlib"
 homepage="http://libharu.org/"
 distfiles="https://github.com/libharu/libharu/archive/RELEASE_${version//./_}.tar.gz"
 checksum=8f9e68cc5d5f7d53d1bc61a1ed876add1faf4f91070dbc360d8b259f46d9a4d2
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args="--with-zlib=${XBPS_CROSS_BASE}/usr"
diff --git a/srcpkgs/LibreCAD/template b/srcpkgs/LibreCAD/template
index 3a5224f907ee..da6fd2e7239a 100644
--- a/srcpkgs/LibreCAD/template
+++ b/srcpkgs/LibreCAD/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://librecad.org"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=74c4ede409b13d0365c65c0cd52dba04f1049530f6df706dc905443d5e60db06
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	configure_args+=" BOOST_DIR=${XBPS_CROSS_BASE}/usr"
diff --git a/srcpkgs/LuaJIT/template b/srcpkgs/LuaJIT/template
index 9fbc72cbe4e7..e270384ecd37 100644
--- a/srcpkgs/LuaJIT/template
+++ b/srcpkgs/LuaJIT/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://www.luajit.org"
 distfiles="http://luajit.org/download/${pkgname}-${_dist_version}.tar.gz"
 checksum=1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3
+patch_args=-Np0
 
 build_options="lua52compat"
 
diff --git a/srcpkgs/MEGAcmd/template b/srcpkgs/MEGAcmd/template
index eb94684afcf6..893d78c880cc 100644
--- a/srcpkgs/MEGAcmd/template
+++ b/srcpkgs/MEGAcmd/template
@@ -14,6 +14,7 @@ homepage="https://github.com/meganz/MEGAcmd"
 distfiles="https://github.com/meganz/MEGAcmd/archive/${version}_Linux.tar.gz"
 checksum=2a3626a9f1d22303fe2123f984a8ecf3779d6d59ac6c67c1bf43c2423dcb832d
 replaces="megacmd>=0"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args="--with-libtool-sysroot=${XBPS_CROSS_BASE}"
diff --git a/srcpkgs/Maelstrom/template b/srcpkgs/Maelstrom/template
index 7c4be8c13b2a..ea3d28d0c4f4 100644
--- a/srcpkgs/Maelstrom/template
+++ b/srcpkgs/Maelstrom/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.libsdl.org/projects/Maelstrom/"
 distfiles="${homepage}/src/${pkgname}-${version}.tar.gz"
 checksum=93680322f4b04d4727ea8e0b461f259b604dc69e7465cb91d2b9aad378a9a036
+patch_args=-Np0
 
 CXXFLAGS="-Wno-error -Wno-write-strings -Wno-unused-result"
 
diff --git a/srcpkgs/MonkeysAudio/template b/srcpkgs/MonkeysAudio/template
index 6b9f47eda5e6..202b419fa843 100644
--- a/srcpkgs/MonkeysAudio/template
+++ b/srcpkgs/MonkeysAudio/template
@@ -14,6 +14,7 @@ distfiles="https://monkeysaudio.com/files/MAC_SDK_${version//./}.zip
 checksum="0000cbfad5f008014bf3d963b72039c518a1e93ded55b23da715d912c830623e
  7d60dabaf760f32180e272b5955d5f1a2febcf9930eff13e49a1934a286a5819"
 skip_extraction="license.html"
+patch_args=-Np0
 
 do_build() {
 	cp -p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/license.html ${wrksrc}
diff --git a/srcpkgs/ORBit2/template b/srcpkgs/ORBit2/template
index 10e7f52924b6..34ac1a00a447 100644
--- a/srcpkgs/ORBit2/template
+++ b/srcpkgs/ORBit2/template
@@ -13,6 +13,7 @@ homepage="http://projects.gnome.org/ORBit2/"
 distfiles="http://ftp.acc.umu.se/pub/gnome/sources/${pkgname}/2.14/${pkgname}-${version}.tar.bz2"
 checksum=55c900a905482992730f575f3eef34d50bda717c197c97c08fa5a6eafd857550
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ORBit2"
diff --git a/srcpkgs/OpenCPN/template b/srcpkgs/OpenCPN/template
index ee67dbaff01c..63796b6f17db 100644
--- a/srcpkgs/OpenCPN/template
+++ b/srcpkgs/OpenCPN/template
@@ -20,6 +20,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.0-or-later, MIT, WxWindows-e
 homepage="https://opencpn.org/"
 distfiles="https://github.com/OpenCPN/OpenCPN/archive/v${version}.tar.gz"
 checksum=f6ec38989bc38f5a7f63234c5e0230adeb73f5626b4e3d3dfa680f0c240badc7
+patch_args=-Np0
 
 build_options="lzma libarchive exif crashreport"
 build_options_default="lzma libarchive exif"
diff --git a/srcpkgs/OpenXcom/template b/srcpkgs/OpenXcom/template
index f44cc1e9d916..fc79fbb7e1f7 100644
--- a/srcpkgs/OpenXcom/template
+++ b/srcpkgs/OpenXcom/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="http://openxcom.org/"
 distfiles="https://github.com/SupSuper/${pkgname}/archive/v${version}.tar.gz"
 checksum=45acb280010a01d60506b1c5f2951ae501c012cc6161aac470bd15c1e6981246
+patch_args=-Np0
 
 pre_configure() {
 	aclocal --install -Im4
diff --git a/srcpkgs/PAmix/template b/srcpkgs/PAmix/template
index dc087f8c7f07..fece21ed427a 100644
--- a/srcpkgs/PAmix/template
+++ b/srcpkgs/PAmix/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/patroclos/PAmix"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=b63522889d70920d64229c66e2ab6929950476538443af297f6b242f7e9dc406
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	*-musl) broken="Parts of ncurses, not available on musl";;
diff --git a/srcpkgs/PrusaSlicer/template b/srcpkgs/PrusaSlicer/template
index dd0e76cb8017..9a073edcf573 100644
--- a/srcpkgs/PrusaSlicer/template
+++ b/srcpkgs/PrusaSlicer/template
@@ -18,6 +18,7 @@ homepage="https://www.prusa3d.com/prusaslicer/"
 distfiles="https://github.com/prusa3d/Prusaslicer/archive/version_${version}.tar.gz"
 checksum=cd3bac5e29b5441fc4690f28cd7b1064e97dc00207bbdc88f7bd7832308d6ca5
 nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/25230/steps/shell_3/logs/stdio"
+patch_args=-Np0
 
 Slic3rPE_package() {
 	build_style=meta
diff --git a/srcpkgs/QLC+/template b/srcpkgs/QLC+/template
index 38322eb305cc..8da1cc17f80c 100644
--- a/srcpkgs/QLC+/template
+++ b/srcpkgs/QLC+/template
@@ -14,6 +14,7 @@ license="Apache-2.0"
 homepage="https://www.qlcplus.org/"
 distfiles="https://github.com/mcallegari/qlcplus/archive/QLC+_$version.tar.gz"
 checksum=cefb5e84dee04b3567733fcaf4f8125069eec859b506e790ba8a9d921f1e75cc
+patch_args=-Np0
 
 pre_build() {
 	vsed -i 's/QMAKE_CXXFLAGS/#QMAKE_CXXFLAGS/' variables.pri
diff --git a/srcpkgs/SDL/template b/srcpkgs/SDL/template
index d55ee7ab382e..03c5de1df7df 100644
--- a/srcpkgs/SDL/template
+++ b/srcpkgs/SDL/template
@@ -19,6 +19,7 @@ license="LGPL-2.1-only"
 homepage="http://www.libsdl.org/"
 distfiles="http://www.libsdl.org/release/SDL-${version}.tar.gz"
 checksum=d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00
+patch_args=-Np0
 
 # Package build options
 build_options="x11 opengl aalib pulseaudio"
diff --git a/srcpkgs/SDL2/template b/srcpkgs/SDL2/template
index 9013c2e73e21..7bc1e95d78b1 100644
--- a/srcpkgs/SDL2/template
+++ b/srcpkgs/SDL2/template
@@ -15,6 +15,7 @@ license="Zlib"
 homepage="http://www.libsdl.org/"
 distfiles="http://www.libsdl.org/release/${pkgname}-${version}.tar.gz"
 checksum=d8215b571a581be1332d2106f8036fcb03d12a70bae01e20f424976d275432bc
+patch_args=-Np0
 
 # Package build options
 build_options="gles opengl pulseaudio sndio vulkan wayland x11"
diff --git a/srcpkgs/SLADE/template b/srcpkgs/SLADE/template
index 030aac7a61b2..1557b2429b3c 100644
--- a/srcpkgs/SLADE/template
+++ b/srcpkgs/SLADE/template
@@ -15,6 +15,7 @@ homepage="https://github.com/sirjuddington/SLADE"
 changelog="https://github.com/sirjuddington/SLADE/releases/tag/${version}"
 distfiles="https://github.com/sirjuddington/SLADE/archive/${version}.tar.gz"
 checksum=7dc8a0089855f6321d2ec185fa5c97fcb7cc54857033aa3adec9a5ec8226ed60
+patch_args=-Np0
 
 pre_configure() {
 	case $XBPS_TARGET_MACHINE in
diff --git a/srcpkgs/SMC/template b/srcpkgs/SMC/template
index d67469fc18a8..15f8f14acef5 100644
--- a/srcpkgs/SMC/template
+++ b/srcpkgs/SMC/template
@@ -18,6 +18,7 @@ checksum="
  b4194e70d3f1de3da884dd1a11e4f5cec25a205f66a3b85cc9fc1c86289b237d
  c5bb2e1830c7cbe499c93851f5a02b2b900b4730d2c7a133a44a7b43a297dab8"
 replaces="SMC-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-fpermissive -std=c++11"
 LDFLAGS="-Wl,--no-as-needed -lX11 -lboost_system"
diff --git a/srcpkgs/Signal-Desktop/template b/srcpkgs/Signal-Desktop/template
index 8999b6e483ff..7fa1635eefff 100644
--- a/srcpkgs/Signal-Desktop/template
+++ b/srcpkgs/Signal-Desktop/template
@@ -14,6 +14,7 @@ homepage="https://github.com/signalapp/Signal-Desktop"
 distfiles="https://github.com/signalapp/Signal-Desktop/archive/v${version}.tar.gz"
 checksum=f9f55c0195579b43712bf370b753337432eda4bcf89809d1c8f3deb0b4ee4400
 nostrip_files="signal-desktop"
+patch_args=-Np0
 
 pre_build() {
 	vsed -e 's/"node": "/&>=/' -i package.json
diff --git a/srcpkgs/TSC/template b/srcpkgs/TSC/template
index 71534315cf7c..66ebf5dd530a 100644
--- a/srcpkgs/TSC/template
+++ b/srcpkgs/TSC/template
@@ -19,6 +19,7 @@ homepage="https://www.secretchronicles.org/"
 distfiles="https://ftp.secretchronicles.org/releases/${pkgname}-${version}.tar.gz"
 checksum=6a16765b4951e3d5d1ea2b84e6da8f67b0271460f0c570b53ccdab80d7396261
 replaces="TSC-data"
+patch_args=-Np0
 
 if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
 	broken="The host ($XBPS_WORDSIZE) and target ($XBPS_TARGET_WORDSIZE) word sizes need to be the same for cross building."
diff --git a/srcpkgs/VeraCrypt/template b/srcpkgs/VeraCrypt/template
index 2b4dd9fcc7e5..c95a8fa6b25d 100644
--- a/srcpkgs/VeraCrypt/template
+++ b/srcpkgs/VeraCrypt/template
@@ -16,6 +16,7 @@ license="Apache-2.0, custom:TrueCrypt-3.0"
 homepage="https://www.veracrypt.fr"
 distfiles="https://www.veracrypt.fr/code/VeraCrypt/snapshot/VeraCrypt-VeraCrypt_${_realversion}.tar.gz"
 checksum=cbdecffdfc258dccca6de1b79759e673dee3329280849b10d8253e802d45b41e
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) ;;
diff --git a/srcpkgs/XyGrib/template b/srcpkgs/XyGrib/template
index e4aa3a2e0265..ccad1528e349 100644
--- a/srcpkgs/XyGrib/template
+++ b/srcpkgs/XyGrib/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://opengribs.org/"
 distfiles="https://github.com/opengribs/XyGrib/archive/v${version}.tar.gz"
 checksum=2dc6099293ae6f7a4bfbfc0cab590cf7ad48241d608e6d7a76e35961b9fc2157
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args="LINK=${XBPS_CROSS_TRIPLET}-c++"
diff --git a/srcpkgs/ZMusic/template b/srcpkgs/ZMusic/template
index 23e805e3c99c..002c59fdc493 100644
--- a/srcpkgs/ZMusic/template
+++ b/srcpkgs/ZMusic/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/coelckers/ZMusic"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=73082f661b7b0bb33348d1d186c132deec9132a1613480348a00172b49c9fd68
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" musl-fts-devel"
diff --git a/srcpkgs/a2ps/template b/srcpkgs/a2ps/template
index 9335f38e08e0..5497ec5a574e 100644
--- a/srcpkgs/a2ps/template
+++ b/srcpkgs/a2ps/template
@@ -14,6 +14,7 @@ homepage="http://www.gnu.org/software/a2ps/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4
 conf_files="/etc/a2ps/a2ps.cfg /etc/a2ps/a2ps-site.cfg"
+patch_args=-Np0
 
 LDFLAGS="-lm"
 
diff --git a/srcpkgs/abduco/template b/srcpkgs/abduco/template
index 21fa18ce85ae..6aa3a516c5e2 100644
--- a/srcpkgs/abduco/template
+++ b/srcpkgs/abduco/template
@@ -10,6 +10,7 @@ license="ISC"
 homepage="http://www.brain-dump.org/projects/abduco/"
 distfiles="http://www.brain-dump.org/projects/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c90909e13fa95770b5afc3b59f311b3d3d2fdfae23f9569fa4f96a3e192a35f4
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/abook/template b/srcpkgs/abook/template
index 9538e8d1f4da..c22614dedfb8 100644
--- a/srcpkgs/abook/template
+++ b/srcpkgs/abook/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://abook.sourceforge.net/"
 distfiles="http://abook.sourceforge.net/devel/${pkgname}-${version}.tar.gz"
 checksum=f0a90df8694fb34685ecdd45d97db28b88046c15c95e7b0700596028bd8bc0f9
+patch_args=-Np0
 
 post_extract() {
 	autoreconf --install
diff --git a/srcpkgs/accountsservice/template b/srcpkgs/accountsservice/template
index c00a4077d8f7..84c28f82c875 100644
--- a/srcpkgs/accountsservice/template
+++ b/srcpkgs/accountsservice/template
@@ -17,6 +17,7 @@ checksum=ff2b2419a7e06bd9cb335ffe391c7409b49a0f0130b890bd54692a3986699c9b
 make_dirs="
  /var/lib/AccountsService/users 755 root root
  /var/lib/AccountsService/icons 755 root root"
+patch_args=-Np0
 
 # Package build options
 build_options="elogind gir"
diff --git a/srcpkgs/acct/template b/srcpkgs/acct/template
index 860bb6b28ccf..b3ac5cc05599 100644
--- a/srcpkgs/acct/template
+++ b/srcpkgs/acct/template
@@ -9,6 +9,7 @@ license="GPL-3.0-or-later"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4c15bf2b58b16378bcc83f70e77d4d40ab0b194acf2ebeefdb507f151faa663f
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	post_extract() {
diff --git a/srcpkgs/acpi_call-dkms/template b/srcpkgs/acpi_call-dkms/template
index 2a24e481538f..752770b0da9d 100644
--- a/srcpkgs/acpi_call-dkms/template
+++ b/srcpkgs/acpi_call-dkms/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/damadmai/acpi_call"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=c48a0a8768d657a8da7b59d7dbf6276554313fa6a0cb012fa4cf85a77e55f44b
+patch_args=-Np0
 
 dkms_modules="acpi_call ${version}"
 depends="dkms"
diff --git a/srcpkgs/acpid/template b/srcpkgs/acpid/template
index 8312d0e4e15a..df44a949213a 100644
--- a/srcpkgs/acpid/template
+++ b/srcpkgs/acpid/template
@@ -10,6 +10,7 @@ homepage="https://sourceforge.net/projects/acpid2/"
 distfiles="${SOURCEFORGE_SITE}/acpid2/acpid-${version}.tar.xz"
 checksum=f2d2d30b3edc3234bd82f6f7186699a6aa3c85c8d20bc4e30e9b3c68a1ed157e
 conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"
+patch_args=-Np0
 
 post_install() {
 	vinstall ${FILESDIR}/handler.sh 755 etc/acpi
diff --git a/srcpkgs/actiona/template b/srcpkgs/actiona/template
index 6ce3ccdc6b41..9b66b6e673a2 100644
--- a/srcpkgs/actiona/template
+++ b/srcpkgs/actiona/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://actiona.tools/"
 distfiles="https://github.com/Jmgr/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=447065e380f8f37db4c8af01df8e1b9d7189cd256205f758845b71d8de6f37ea
+patch_args=-Np0
 
 post_build() {
 	lrelease-qt5 locale/*.ts
diff --git a/srcpkgs/afterstep/template b/srcpkgs/afterstep/template
index ba9c15546dea..f5b99af26493 100644
--- a/srcpkgs/afterstep/template
+++ b/srcpkgs/afterstep/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://www.afterstep.org/"
 distfiles="https://github.com/sashavasko/${pkgname}-devel/archive/${version}.tar.gz"
 checksum=7a82d06a9ce432ef3b0856ff39f6da416aa8cbc249dbb2ff3c1cdcb02e2ca46d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi libAfterBase
diff --git a/srcpkgs/agg/template b/srcpkgs/agg/template
index a313e19cb1f9..5cdbcaa17b47 100644
--- a/srcpkgs/agg/template
+++ b/srcpkgs/agg/template
@@ -13,6 +13,7 @@ homepage="http://www.antigrain.com/"
 license="GPL-2.0-or-later"
 distfiles="http://www.antigrain.com/agg-${version}.tar.gz"
 checksum=ab1edc54cc32ba51a62ff120d501eecd55fceeedf869b9354e7e13812289911f
+patch_args=-Np0
 
 pre_configure() {
 	sed -e '/AM_C_PROTOTYPES/d' -i configure.in
diff --git a/srcpkgs/allegro4/template b/srcpkgs/allegro4/template
index f8901c34cecc..99b570dcb675 100644
--- a/srcpkgs/allegro4/template
+++ b/srcpkgs/allegro4/template
@@ -17,6 +17,7 @@ homepage="http://alleg.sourceforge.net/"
 homepage="https://liballeg.org"
 distfiles="https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz"
 checksum=ec19dbc9a021244582b4819b3583ee594b50141f9fcf6944a4ed8069cbf8d4d4
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/allegro5/template b/srcpkgs/allegro5/template
index f55a7eb6c144..d96d1b779231 100644
--- a/srcpkgs/allegro5/template
+++ b/srcpkgs/allegro5/template
@@ -17,6 +17,7 @@ license="Allegro License (MIT alike)"
 homepage="https://liballeg.org/"
 distfiles="https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz"
 checksum=5de8189ec051e1865f359654f86ec68e2a12a94edd00ad06d1106caa5ff27763
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/alsa-firmware/template b/srcpkgs/alsa-firmware/template
index b85bc791275d..8ded0831aa1c 100644
--- a/srcpkgs/alsa-firmware/template
+++ b/srcpkgs/alsa-firmware/template
@@ -12,6 +12,7 @@ distfiles="https://www.alsa-project.org/files/pub/firmware/${pkgname}-${version}
 checksum=b67b6d7d08bcfc247ef6ff0ab88a99c188305a3cf57ae2dfd0bcd9a5b36cd5bb
 nostrip=yes
 ignore_elf_files="/usr/share/alsa/firmware/mixartloader/miXart8.elf"
+patch_args=-Np0
 
 pre_configure() {
 	export CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" LDFLAGS="${BUILD_LDFLAGS}"
diff --git a/srcpkgs/alsa-tools/template b/srcpkgs/alsa-tools/template
index 1078472c79ae..e96cc23f1547 100644
--- a/srcpkgs/alsa-tools/template
+++ b/srcpkgs/alsa-tools/template
@@ -12,6 +12,7 @@ homepage="http://alsa-project.org"
 distfiles="https://www.alsa-project.org/files/pub/tools/alsa-tools-${version}.tar.bz2"
 checksum=bfd3c7aae1289269605d3da02279159b10e3dabdd31e658cbceaa30170957349
 python_version=3
+patch_args=-Np0
 
 _tools="
 	as10k1 echomixer envy24control hdajackretask hdajacksensetest hda-verb hdspconf
diff --git a/srcpkgs/amdvlk/template b/srcpkgs/amdvlk/template
index 1182a174b558..6a29a3bc9290 100644
--- a/srcpkgs/amdvlk/template
+++ b/srcpkgs/amdvlk/template
@@ -42,6 +42,7 @@ checksum="ec17d7f7c7af5adaa2fee7744321da3665be215105df7c3fc72bfeff2575a509
  186060fbcf87165224ba7df0e1858b66ebc42cf190c481aef1df8d89ebab7abd"
 nocross=yes
 lib32files="/usr/share/vulkan/icd.d/amd_icd32.json"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*) nodebug=yes;;
diff --git a/srcpkgs/angrysearch/template b/srcpkgs/angrysearch/template
index 96b6b6604ba8..bf03527607a7 100644
--- a/srcpkgs/angrysearch/template
+++ b/srcpkgs/angrysearch/template
@@ -13,6 +13,7 @@ homepage="https://github.com/dotheevo/angrysearch/"
 distfiles="http://github.com/dotheevo/${pkgname}/archive/v${version}.tar.gz"
 checksum=9a550649c3efafb26660860758f2e75702ce96a0a0c50dc34ced2967b51a843f
 python_version=3
+patch_args=-Np0
 
 do_install() {
 	vinstall angrysearch.desktop 644 "usr/share/applications"
diff --git a/srcpkgs/anjuta/template b/srcpkgs/anjuta/template
index b46d58aeafe3..e861c17df632 100644
--- a/srcpkgs/anjuta/template
+++ b/srcpkgs/anjuta/template
@@ -22,6 +22,7 @@ license="GPL-2.0-or-later"
 homepage="https://projects.gnome.org/anjuta"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=42a93130ed3ee02d064a7094e94e1ffae2032b3f35a87bf441e37fc3bb3a148f
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/anki/template b/srcpkgs/anki/template
index 55976fbd26eb..731999e63600 100644
--- a/srcpkgs/anki/template
+++ b/srcpkgs/anki/template
@@ -13,6 +13,7 @@ homepage="https://apps.ankiweb.net"
 changelog="https://apps.ankiweb.net/docs/changes.html"
 distfiles="https://apps.ankiweb.net/downloads/archive/anki-$version-source.tgz"
 checksum=5a53760164c77d619f55107a13099cffe620566a7f610b61b6c4b52487f3bb89
+patch_args=-Np0
 
 python_version=3
 
diff --git a/srcpkgs/antimicrox/template b/srcpkgs/antimicrox/template
index 6a77e8e3a09b..1e4a1d081868 100644
--- a/srcpkgs/antimicrox/template
+++ b/srcpkgs/antimicrox/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/AntiMicroX/antimicrox"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=53c6b0e6c8ea8c3a5527b56e1ad052eae983ba36abfc090769c6164bc5f342dd
+patch_args=-Np0
 
 libantimicrox_package() {
 	short_desc+=" - libraries"
diff --git a/srcpkgs/antiword/template b/srcpkgs/antiword/template
index a4dfb6ceb229..c33563fa0c9a 100644
--- a/srcpkgs/antiword/template
+++ b/srcpkgs/antiword/template
@@ -12,6 +12,7 @@ distfiles="http://www.winfield.demon.nl/linux/antiword-${version}.tar.gz
  http://sources.debian.net/data/main/a/antiword/0.37-10/debian/patches/docx.patch"
 checksum="8e2c000fcbc6d641b0e6ff95e13c846da3ff31097801e86702124a206888f5ac
  0ca787f8e31a2e05e6c0ff73406d9a7f0355fe27238a0cde3ed7cf6d3418c8aa"
+patch_args=-Np0
 
 do_build() {
 	# debian patch for better docx handling
diff --git a/srcpkgs/apache/template b/srcpkgs/apache/template
index 3c92ff8fc988..24fa60ac48a6 100644
--- a/srcpkgs/apache/template
+++ b/srcpkgs/apache/template
@@ -37,6 +37,7 @@ homepage="http://httpd.apache.org/"
 changelog="http://www.apache.org/dist/httpd/CHANGES_2.4"
 distfiles="https://archive.apache.org/dist/httpd/httpd-${version}.tar.bz2"
 checksum=1bc826e7b2e88108c7e4bf43c026636f77a41d849cfb667aa7b5c0b86dbf966c
+patch_args=-Np0
 
 system_accounts="_${pkgname}"
 _apache_homedir="/srv/www/$pkgname"
diff --git a/srcpkgs/apl/template b/srcpkgs/apl/template
index 88b8d32b6720..06472f651624 100644
--- a/srcpkgs/apl/template
+++ b/srcpkgs/apl/template
@@ -14,6 +14,7 @@ distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=144f4c858a0d430ce8f28be90a35920dd8e0951e56976cb80b55053fa0d8bbcb
 nocross="execs target binary: ./Gtk_server --ev1 > Gtk_events1.asciidoc"
 CXXFLAGS="-Wno-format-truncation -Wno-class-memaccess -Wno-maybe-uninitialized -Wno-restrict -Wno-cpp"
+patch_args=-Np0
 
 post_install() {
 	vdoc support-files/Dyalog-Keyboard/apl.xkb
diff --git a/srcpkgs/appstream-glib/template b/srcpkgs/appstream-glib/template
index 5eaf493d53f6..36c6fffca5d1 100644
--- a/srcpkgs/appstream-glib/template
+++ b/srcpkgs/appstream-glib/template
@@ -16,6 +16,7 @@ homepage="https://people.freedesktop.org/~hughsient/appstream-glib/"
 changelog="https://raw.githubusercontent.com/hughsie/appstream-glib/master/NEWS"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
 checksum=ca1ed22e3bde3912cb903aaa7de085d55771da454f1c0573fd9608e1de9c4002
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/apr/template b/srcpkgs/apr/template
index f2dc1241668a..1fa0399f64b6 100644
--- a/srcpkgs/apr/template
+++ b/srcpkgs/apr/template
@@ -11,6 +11,7 @@ license="Apache-2.0"
 homepage="http://apr.apache.org/"
 distfiles="http://www.apache.org/dist/apr/apr-${version}.tar.bz2"
 checksum=e2e148f0b2e99b8e5c6caa09f6d4fb4dd3e83f744aa72a952f94f5a14436f7ea
+patch_args=-Np0
 
 # Do not redefine struct iovec in include/apr_want.h
 CFLAGS="-DAPR_IOVEC_DEFINED=1"
diff --git a/srcpkgs/aqbanking/template b/srcpkgs/aqbanking/template
index ea55a80935d7..9f509f325469 100644
--- a/srcpkgs/aqbanking/template
+++ b/srcpkgs/aqbanking/template
@@ -12,6 +12,7 @@ homepage="http://www.aquamaniac.de/aqbanking"
 distfiles="https://www.aquamaniac.de/rdm/attachments/download/372/${pkgname}-${version}.tar.gz"
 checksum=a0e85da2072c927bc32cfd808caaccfdabe34725e75618b08d8049306d8355cc
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
diff --git a/srcpkgs/aqemu/template b/srcpkgs/aqemu/template
index eea61aa562bc..0ada7d5bc748 100644
--- a/srcpkgs/aqemu/template
+++ b/srcpkgs/aqemu/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://aqemu.sourceforge.net"
 distfiles="https://github.com/TBK/aqemu/archive/v${version}.tar.gz"
 checksum=576ae78de936518a1de057355ffc192b59e42be934f0111122b2c5fcafe318a7
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/ardour/template b/srcpkgs/ardour/template
index ae133e67b141..14e6810a0ac5 100644
--- a/srcpkgs/ardour/template
+++ b/srcpkgs/ardour/template
@@ -18,6 +18,7 @@ short_desc="Professional-grade digital audio workstation"
 maintainer="tibequadorian <tibequadorian@posteo.de>"
 license="GPL-2.0-or-later"
 homepage="http://ardour.org"
+patch_args=-Np0
 
 CXXFLAGS="-fpermissive"
 
diff --git a/srcpkgs/arduino/template b/srcpkgs/arduino/template
index d352962e73d3..5d6531ec93fc 100644
--- a/srcpkgs/arduino/template
+++ b/srcpkgs/arduino/template
@@ -19,6 +19,7 @@ checksum="2a2a7bf0a93d36dff2e27f50e490529f10ff73337d6a0b7b222fa6b1a529c9f7
  6c3ab029e0e4a75e2e603d449014374aa8269218fdd03a4aaa46ab743b1912fd"
 nostrip=yes
 nocross="cross build lacks essential libraries"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	broken="downloads multiple binaries linked to glibc; segfaults with gcompat"
diff --git a/srcpkgs/argon2/template b/srcpkgs/argon2/template
index 7cc1bb0617eb..04bdaf7a1419 100644
--- a/srcpkgs/argon2/template
+++ b/srcpkgs/argon2/template
@@ -14,6 +14,7 @@ license="CC0-1.0, Apache-2.0"
 homepage="https://github.com/P-H-C/phc-winner-argon2"
 distfiles="https://github.com/P-H-C/phc-winner-argon2/archive/${version}.tar.gz"
 checksum=daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c
+patch_args=-Np0
 
 libargon2_package() {
 	short_desc="Password hashing library"
diff --git a/srcpkgs/argyllcms/template b/srcpkgs/argyllcms/template
index 5fb8294254f7..33d0d14436cc 100644
--- a/srcpkgs/argyllcms/template
+++ b/srcpkgs/argyllcms/template
@@ -12,6 +12,7 @@ license="AGPL-3.0-or-later, GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://www.argyllcms.com/"
 distfiles="https://www.argyllcms.com/Argyll_V${version}_src.zip"
 checksum=be378ca836b17b8684db05e9feaab138d711835ef00a04a76ac0ceacd386a3e3
+patch_args=-Np0
 
 # Build system look only under / for headers and libraries. Breaks cross.
 nocross=yes
diff --git a/srcpkgs/ark/template b/srcpkgs/ark/template
index dfa7870ed4ca..22022fc8a649 100644
--- a/srcpkgs/ark/template
+++ b/srcpkgs/ark/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://kde.org/applications/en/utilities/org.kde.ark"
 distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=09e0294c36a881585183bf165020ef832bfbbd181547ea26eb78268aab46a768
+patch_args=-Np0
 
 do_check() {
 	cd build
diff --git a/srcpkgs/armadillo/template b/srcpkgs/armadillo/template
index 9407c3aa8b48..52e72128108d 100644
--- a/srcpkgs/armadillo/template
+++ b/srcpkgs/armadillo/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="http://arma.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/arma/${pkgname}-${version}.tar.xz"
 checksum=d78658c9442addf7f718eb05881150ee3ec25604d06dd3af4942422b3ce26d05
+patch_args=-Np0
 
 build_options="hdf5"
 desc_option_hdf5="HDF5 support"
diff --git a/srcpkgs/artyfx/template b/srcpkgs/artyfx/template
index f06781b63736..279fa42510d9 100644
--- a/srcpkgs/artyfx/template
+++ b/srcpkgs/artyfx/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://openavproductions.com/artyfx/"
 distfiles="https://github.com/openAVproductions/openAV-ArtyFX/archive/release-$version.tar.gz"
 checksum=a2a8d02b47bea44d0053cd4f8c6411f68a6fe9b9e4348a4139cd9bfd70105c00
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	armv7*)
diff --git a/srcpkgs/asignify/template b/srcpkgs/asignify/template
index 24b6f55108ea..a6bc88da22d8 100644
--- a/srcpkgs/asignify/template
+++ b/srcpkgs/asignify/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/vstakhov/asignify"
 distfiles="https://github.com/vstakhov/asignify/archive/${version}.tar.gz"
 checksum=81272713900b51049633139549181fa23e56eeb580e0ea0325546d2fe7ca503d
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/assimp/template b/srcpkgs/assimp/template
index 7d45161ede5d..39b1cb64289c 100644
--- a/srcpkgs/assimp/template
+++ b/srcpkgs/assimp/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="http://assimp.sourceforge.net/"
 distfiles="https://github.com/assimp/assimp/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=11310ec1f2ad2cd46b95ba88faca8f7aaa1efe9aa12605c55e3de2b977b3dbfc
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/astroid/template b/srcpkgs/astroid/template
index e37e50c628fe..b1c72bcbe608 100644
--- a/srcpkgs/astroid/template
+++ b/srcpkgs/astroid/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="http://astroidmail.github.io/"
 distfiles="https://github.com/astroidmail/astroid/archive/v${version}.tar.gz"
 checksum=8581bbdbc71bd00d4cdd473cfad8bc604628bb15616fe5eab5c623461f686c65
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qemu-user-static prelink-cross"
diff --git a/srcpkgs/astyle/template b/srcpkgs/astyle/template
index 860e5840811c..d6e09e75d70d 100644
--- a/srcpkgs/astyle/template
+++ b/srcpkgs/astyle/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://astyle.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${version}_linux.tar.gz"
 checksum=cbcc4cf996294534bb56f025d6f199ebfde81aa4c271ccbd5ee1c1a3192745d7
+patch_args=-Np0
 
 do_install() {
 	vbin bin/astyle
diff --git a/srcpkgs/at/template b/srcpkgs/at/template
index 772c4582b3e7..563b741d6af8 100644
--- a/srcpkgs/at/template
+++ b/srcpkgs/at/template
@@ -16,6 +16,7 @@ homepage="http://packages.qa.debian.org/a/at.html"
 distfiles="${DEBIAN_SITE}/main/a/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=2211da14914fde1f9cc83592838fb6385a32fb11fcecb7816c77700df6559088
 disable_parallel_build=yes
+patch_args=-Np0
 
 conf_files="/etc/at.deny"
 system_accounts="at"
diff --git a/srcpkgs/aterm/template b/srcpkgs/aterm/template
index cf474ff86dec..6608120fc2d9 100644
--- a/srcpkgs/aterm/template
+++ b/srcpkgs/aterm/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.afterstep.org/aterm.php"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=a161c3b2d9c7149130a41963899993af21eae92e8e362f4b5b3c7c4cb16760ce
+patch_args=-Np0
 
 pre_build() {
 	sed -i '/INSTALL_PROGRAM/s,-c -s,-c ,g' src/Makefile
diff --git a/srcpkgs/atomicparsley/template b/srcpkgs/atomicparsley/template
index b82abf7d377c..4f6d6cc2d8f2 100644
--- a/srcpkgs/atomicparsley/template
+++ b/srcpkgs/atomicparsley/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://bitbucket.org/wez/atomicparsley/"
 distfiles="https://bitbucket.org/wez/atomicparsley/get/${version}.tar.gz"
 checksum=8ba4e3e21d7a9239932e2a6f34842194d8f9eba84ce9eb83fb35369f5f3f05ab
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/atop/template b/srcpkgs/atop/template
index 8c981e657879..8ba868d263e3 100644
--- a/srcpkgs/atop/template
+++ b/srcpkgs/atop/template
@@ -12,6 +12,7 @@ homepage="https://www.atoptool.nl/"
 distfiles="https://www.atoptool.nl/download/atop-${version}.tar.gz"
 checksum=4b911057ce50463b6e8b3016c5963d48535c0cddeebc6eda817e292b22f93f33
 python_version=2 #unverified
+patch_args=-Np0
 
 make_dirs="/var/log/atop 755 root root"
 
diff --git a/srcpkgs/attic/template b/srcpkgs/attic/template
index 153c0341edcb..3e7feff29c04 100644
--- a/srcpkgs/attic/template
+++ b/srcpkgs/attic/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://attic-backup.org/"
 distfiles="${PYPI_SITE}/A/Attic/Attic-${version}.tar.gz"
 checksum=6650cd28072101c2e05941e77b93a62f91da6179785e4e4b4880916c469bba2c
+patch_args=-Np0
 
 pre_build() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/attract/template b/srcpkgs/attract/template
index ceff4287193d..dd2419954f94 100644
--- a/srcpkgs/attract/template
+++ b/srcpkgs/attract/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="http://attractmode.org/"
 distfiles="https://github.com/mickelson/attract/archive/v${version}.tar.gz"
 checksum=4c17641ce0a0b9ff77da5e75f0cb26cc48e4c6295ef57d86a37db18b2bd9fbe9
+patch_args=-Np0
 
 CFLAGS="-std=gnu++11 \
 	-I extlibs/audio/include \
diff --git a/srcpkgs/aubio/template b/srcpkgs/aubio/template
index eaab3e9fdb72..c903e81ed8d5 100644
--- a/srcpkgs/aubio/template
+++ b/srcpkgs/aubio/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="http://aubio.org"
 distfiles="${homepage}/pub/${pkgname}-${version}.tar.bz2"
 checksum=d48282ae4dab83b3dc94c16cf011bcb63835c1c02b515490e1883049c3d1f3da
+patch_args=-Np0
 
 libaubio_package() {
 	short_desc+=" - Runtime libraries"
diff --git a/srcpkgs/audacity/template b/srcpkgs/audacity/template
index c91520872ce5..4ed153f8b74c 100644
--- a/srcpkgs/audacity/template
+++ b/srcpkgs/audacity/template
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.audacityteam.org"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/Audacity-${version}.tar.gz"
 checksum=50240f07471373a7e5c2df65cc26eeeaaced9a0850ad1f95cb795f171ea3009f
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) ;;
diff --git a/srcpkgs/audiofile/template b/srcpkgs/audiofile/template
index a4eef3f40260..7779d5ec2034 100644
--- a/srcpkgs/audiofile/template
+++ b/srcpkgs/audiofile/template
@@ -13,6 +13,7 @@ homepage="http://audiofile.68k.org"
 distfiles="http://github.com/mpruett/audiofile/archive/audiofile-${version}.tar.gz"
 checksum=52125fee6c7454d743acdc27ebda194c6b5c7b9111426c7d5fdea0754cd366cc
 disable_parallel_build=1
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/autoconf/template b/srcpkgs/autoconf/template
index 260e8c753f07..a3018bf709b9 100644
--- a/srcpkgs/autoconf/template
+++ b/srcpkgs/autoconf/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/autoconf"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=64ebcec9f8ac5b2487125a86a7760d2591ac9e1d3dbd59489633f9de62a57684
+patch_args=-Np0
 
 pre_check() {
 	# Disable failing test by adding
diff --git a/srcpkgs/autoconf213/template b/srcpkgs/autoconf213/template
index 31f07cb74c00..ebbcb4df4549 100644
--- a/srcpkgs/autoconf213/template
+++ b/srcpkgs/autoconf213/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.gnu.org/software/autoconf"
 distfiles="${GNU_SITE}/autoconf/autoconf-$version.tar.gz"
 checksum=f0611136bee505811e9ca11ca7ac188ef5323a8e2ef19cffd3edb3cf08fd791e
+patch_args=-Np0
 
 post_install() {
 	# Avoid conflict with other versions.
diff --git a/srcpkgs/autofs/template b/srcpkgs/autofs/template
index b306368242d3..bd2ab2792540 100644
--- a/srcpkgs/autofs/template
+++ b/srcpkgs/autofs/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/daemons/autofs"
 distfiles="${KERNEL_SITE}/daemons/autofs/v5/autofs-${version}.tar.xz"
 checksum=a36b268611b79b07051749870ba540b139938efc84bc0293244c483e94f9ced7
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/gssglue -I${XBPS_CROSS_BASE}/usr/include/tirpc"
 
diff --git a/srcpkgs/autogen/template b/srcpkgs/autogen/template
index cfc9d20c9df8..3b6d72d5090d 100644
--- a/srcpkgs/autogen/template
+++ b/srcpkgs/autogen/template
@@ -17,6 +17,7 @@ replaces="autogen-docs>=0 autogen-devel>=0"
 _libopts=libopts-42.1.17.tar.gz
 CFLAGS="-Wno-error=format-truncation -Wno-error=format-overflow
 	-Wno-error=unused-parameter"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" autogen guile-devel"
diff --git a/srcpkgs/avidemux/template b/srcpkgs/avidemux/template
index e62a3bc2c436..abedf3e2bc0c 100644
--- a/srcpkgs/avidemux/template
+++ b/srcpkgs/avidemux/template
@@ -19,6 +19,7 @@ homepage="http://avidemux.sourceforge.net/"
 changelog="http://avidemux.sourceforge.net/news.html"
 distfiles="${SOURCEFORGE_SITE}/avidemux/avidemux/${version}/${pkgname}_${version}.tar.gz"
 checksum=9a88741f3535443d4bde35d4207ca2ff96d3b136db2e7232cb50dd6b4eb293cf
+patch_args=-Np0
 
 do_configure() {
 	MAKEFLAGS=${makejobs} \
diff --git a/srcpkgs/avr-binutils/template b/srcpkgs/avr-binutils/template
index 7d3a15725c57..d00bec12e17a 100644
--- a/srcpkgs/avr-binutils/template
+++ b/srcpkgs/avr-binutils/template
@@ -14,6 +14,7 @@ license="GPL-3.0-only"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="$GNU_SITE/binutils/binutils-$version.tar.xz"
 checksum=0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04
+patch_args=-Np0
 
 post_install() {
 	rm -rf "$DESTDIR"/usr/share/info \
diff --git a/srcpkgs/bacula-common/template b/srcpkgs/bacula-common/template
index 04b89e171ad8..9facbbf2efe2 100644
--- a/srcpkgs/bacula-common/template
+++ b/srcpkgs/bacula-common/template
@@ -17,6 +17,7 @@ distfiles="${SOURCEFORGE_SITE}/bacula/bacula-${version}.tar.gz"
 checksum=a40d04d2c48135972cecb6578405e835c4b9d798c0950017de0fad40ca94e8a0
 alternatives="bacula-db-backend:/usr/lib/libbaccats-${version}.so:/usr/lib/libbaccats-sqlite3-${version}.so"
 shlib_provides="libbaccats-${version}.so"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/bananapi-uboot/template b/srcpkgs/bananapi-uboot/template
index fabedf3d5978..80acf0c6e8fd 100644
--- a/srcpkgs/bananapi-uboot/template
+++ b/srcpkgs/bananapi-uboot/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/hardkernel/u-boot"
 distfiles="https://github.com/Bananian/u-boot-bananapi/archive/bananian-v${version}.tar.gz"
 checksum=8be162b0b8e85d3fbc2e14af3b71c4a204f4a9c63f6f13275f86629624c1d6a6
+patch_args=-Np0
 
 conf_files="/boot/uEnv.txt"
 archs="armv7l*"
diff --git a/srcpkgs/basu/template b/srcpkgs/basu/template
index 1a3614b781c3..0244cc11cc20 100644
--- a/srcpkgs/basu/template
+++ b/srcpkgs/basu/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/emersion/basu"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=e2fda9b69fc6c4530173fcf8db94c29aa5f3ed932d948cc6a31892623cde5e4b
+patch_args=-Np0
 
 basu-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/batman-adv14/template b/srcpkgs/batman-adv14/template
index 8fb35827056a..a1776f121092 100644
--- a/srcpkgs/batman-adv14/template
+++ b/srcpkgs/batman-adv14/template
@@ -11,6 +11,7 @@ distfiles="http://downloads.open-mesh.org/batman/releases/batman-adv-${version}/
 checksum=a9b1b7542c94cc6bf7c97b7b0d02bf071b5632a64480ae419358b9cb9cab6870
 provides="batman-adv-${version}_${revision}"
 conflicts="batman-adv>=0"
+patch_args=-Np0
 
 dkms_modules="batman-adv14 ${version}"
 depends="dkms"
diff --git a/srcpkgs/bbkeys/template b/srcpkgs/bbkeys/template
index a9a52c11007a..40ae05dec712 100644
--- a/srcpkgs/bbkeys/template
+++ b/srcpkgs/bbkeys/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/bbidulock/bbkeys"
 distfiles="${homepage}/releases/download/rel-${version//.}/bbkeys-${version}.tar.lz"
 checksum=ece0113b2cc6367e2cad95f59cf43d7576b5a1a7eb8a9e3f10ce9814db67b95c
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/bbswitch/template b/srcpkgs/bbswitch/template
index 4dc9d3235e60..049ba73bc327 100644
--- a/srcpkgs/bbswitch/template
+++ b/srcpkgs/bbswitch/template
@@ -11,6 +11,7 @@ homepage="http://github.com/Bumblebee-Project/bbswitch"
 distfiles="https://github.com/Bumblebee-Project/bbswitch/archive/v$version.tar.gz"
 checksum=76cabd3f734fb4fe6ebfe3ec9814138d0d6f47d47238521ecbd6a986b60d1477
 dkms_modules="${pkgname} ${version}"
+patch_args=-Np0
 
 do_install() {
 	vinstall Makefile 644 usr/src/${pkgname}-${version}
diff --git a/srcpkgs/bc/template b/srcpkgs/bc/template
index c6ca1b7d899a..bff25a4c64e9 100644
--- a/srcpkgs/bc/template
+++ b/srcpkgs/bc/template
@@ -18,6 +18,7 @@ alternatives="
  dc:dc:/usr/bin/gnu-dc
  dc:dc.1:/usr/share/man/man1/gnu-dc.1"
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" bc"
diff --git a/srcpkgs/bcc/template b/srcpkgs/bcc/template
index cbdb9de0abcf..091ad9473a2d 100644
--- a/srcpkgs/bcc/template
+++ b/srcpkgs/bcc/template
@@ -15,6 +15,7 @@ homepage="https://github.com/iovisor/bcc"
 distfiles="https://github.com/iovisor/bcc/releases/download/v${version}/bcc-src-with-submodule.tar.gz"
 checksum=93edc925675262aa509f5eaf146f2fc7dfa3e01d1b0336a5de01ee6d72fa493b
 python_version="3"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/bctoolbox/template b/srcpkgs/bctoolbox/template
index 4de00e55e201..f308b6874143 100644
--- a/srcpkgs/bctoolbox/template
+++ b/srcpkgs/bctoolbox/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="https://gitlab.linphone.org/BC/public/bctoolbox"
 distfiles="https://gitlab.linphone.org/BC/public/bctoolbox/-/archive/${version}/bctoolbox-${version}.tar.gz"
 checksum=1364d5f42b5514546b9c6654c227804ff92cf9cf13fdc7cb6ca666e3bb5a7987
+patch_args=-Np0
 
 bctoolbox-devel_package() {
 	depends="bctoolbox-${version}_${revision}"
diff --git a/srcpkgs/beep/template b/srcpkgs/beep/template
index 0f3c10d9781f..3be4bf6147f3 100644
--- a/srcpkgs/beep/template
+++ b/srcpkgs/beep/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.johnath.com/beep/"
 distfiles="http://www.johnath.com/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=59acef7a987de5557cefd1a904666cc2691f132929af39e65450b182a581ec2d
+patch_args=-Np0
 
 post_extract() {
 	rm -f Makefile
diff --git a/srcpkgs/beets/template b/srcpkgs/beets/template
index 8dfb44bf88ad..60e86df7539f 100644
--- a/srcpkgs/beets/template
+++ b/srcpkgs/beets/template
@@ -17,6 +17,7 @@ license="MIT"
 homepage="http://beets.radbox.org/"
 distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=d29b432cab0c80947b5229f548762948c4dd4a430e5d02760bfeb95da3cc8054
+patch_args=-Np0
 
 post_install() {
 	vman man/beet.1
diff --git a/srcpkgs/beignet/template b/srcpkgs/beignet/template
index 29a1ef99dbda..dbe0d1888c67 100644
--- a/srcpkgs/beignet/template
+++ b/srcpkgs/beignet/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.freedesktop.org/wiki/Software/Beignet/"
 distfiles="https://01.org/sites/default/files/${pkgname}-${version}-source.tar.gz"
 checksum=c555edba149de23243965a703f39f79fa06f15bcff5a3762b5544b0925010b43
+patch_args=-Np0
 
 post_install() {
 	# remove CL headers, we do use opencl-headers instead.
diff --git a/srcpkgs/belle-sip/template b/srcpkgs/belle-sip/template
index 6351feba635d..9f9c297d3589 100644
--- a/srcpkgs/belle-sip/template
+++ b/srcpkgs/belle-sip/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.linphone.org"
 distfiles="https://gitlab.linphone.org/BC/public/belle-sip/-/archive/${version}/belle-sip-${version}.tar.gz"
 checksum=4f9218b0bbf55c2f68d70a0e83779e591ef9fe97f1caf7550768ea192ee34cee
+patch_args=-Np0
 
 belle-sip-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/berkeley-abc/template b/srcpkgs/berkeley-abc/template
index f5aeb2a1e4fd..280c3e0bce2c 100644
--- a/srcpkgs/berkeley-abc/template
+++ b/srcpkgs/berkeley-abc/template
@@ -15,6 +15,7 @@ license="custom:University-of-California, BSD-4-Clause, MIT, BSD-2-Clause"
 homepage="http://www.eecs.berkeley.edu/~alanmi/abc/"
 distfiles="https://github.com/berkeley-abc/abc/archive/$_gitrev.tar.gz"
 checksum=52f1e9bf62c1e0d3b3cbe145f61b409a725e73fe606ba010efcbb2701a14171b
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e '/^CC *:=/d' -e '/^CXX *:=/d' -e '/^AR *:=/d' \
diff --git a/srcpkgs/berry/template b/srcpkgs/berry/template
index 05256589af24..a9fb2bf94342 100644
--- a/srcpkgs/berry/template
+++ b/srcpkgs/berry/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/JLErvin/berry"
 distfiles="https://github.com/JLErvin/berry/archive/${version}.tar.gz"
 checksum=1d6de883a0cd96ceb167c5ad2e855b0b15fa84872d41a22e05d0fdf0cf4be6b8
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/biew/template b/srcpkgs/biew/template
index 73a17e44c8d6..06db316d4c6a 100644
--- a/srcpkgs/biew/template
+++ b/srcpkgs/biew/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://beye.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/beye/${pkgname}/${version}/${pkgname}-${_shortversion}-src.tar.bz2"
 checksum=2e85f03c908dd6ec832461fbfbc79169a33f4caccf48c8fe60cbd29f5fb06d17
+patch_args=-Np0
 
 pre_configure() {
 	configure_args+=" --target-arch=generic --ld=$CC"
diff --git a/srcpkgs/bin86/template b/srcpkgs/bin86/template
index 8d711210193e..fd37d2a267d3 100644
--- a/srcpkgs/bin86/template
+++ b/srcpkgs/bin86/template
@@ -9,6 +9,7 @@ license="GPL-2"
 distfiles="http://v3.sk/~lkundrak/dev86/bin86-${version}.tar.gz"
 checksum=021e37cde3a20632c4c9000993cb4aa9f58cb82b1d3c26b9aeb62d6566925738
 archs="i686* x86_64*"
+patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" PREFIX=/usr
diff --git a/srcpkgs/binwalk/template b/srcpkgs/binwalk/template
index 6c61fff87aeb..cec10ddb7e74 100644
--- a/srcpkgs/binwalk/template
+++ b/srcpkgs/binwalk/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/ReFirmLabs/binwalk"
 distfiles="https://github.com/ReFirmLabs/binwalk/archive/v${version}.tar.gz"
 checksum=7ec9d8fcb8686f4060d37e1096669e3ed8ce1194c91ad80199622448bcc01b19
+patch_args=-Np0
 
 post_extract() {
 	vsed -i -e 's;/etc/bash_completion.d/%s;%s.bash;' setup.py
diff --git a/srcpkgs/bird/template b/srcpkgs/bird/template
index bc40598b0360..493605a5ceb1 100644
--- a/srcpkgs/bird/template
+++ b/srcpkgs/bird/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://bird.network.cz"
 distfiles="https://gitlab.labs.nic.cz/labs/bird/-/archive/v${version}/bird-v${version}.tar.gz"
 checksum=4d0eeea762dcd4422e1e276e2ed123cfed630cf1cce017b50463d79fcf2fff0c
+patch_args=-Np0
 
 conf_files="/etc/bird.conf"
 system_accounts="_bird"
diff --git a/srcpkgs/bish/template b/srcpkgs/bish/template
index 2355c664a428..f5140a9ac2d6 100644
--- a/srcpkgs/bish/template
+++ b/srcpkgs/bish/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/tdenniston/bish"
 distfiles="https://github.com/tdenniston/bish/archive/v${version}.tar.gz"
 checksum=796d1efcbc9e8c7ea604881860aa8d857aad089c4eeb766283c21c210687942b
+patch_args=-Np0
 
 do_install() {
 	vbin bish
diff --git a/srcpkgs/bitchx/template b/srcpkgs/bitchx/template
index 450fde27deed..f5de7ac86973 100644
--- a/srcpkgs/bitchx/template
+++ b/srcpkgs/bitchx/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://bitchx.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=2d270500dd42b5e2b191980d584f6587ca8a0dbda26b35ce7fadb519f53c83e2
+patch_args=-Np0
 
 disable_parallel_build=yes
 
diff --git a/srcpkgs/bitfighter/template b/srcpkgs/bitfighter/template
index c3b2cc22a265..58e033107399 100644
--- a/srcpkgs/bitfighter/template
+++ b/srcpkgs/bitfighter/template
@@ -20,6 +20,7 @@ checksum="cd47c453d9e6875ded627b987a645e2ff2c757363f394b152f62d868e1d81427
  d628a2b0af024a965b92877f321f2174d6309b7ce9236775af3bd86a67fcc72b"
 python_version=2
 replaces="bitfighter-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/blackboxwm/template b/srcpkgs/blackboxwm/template
index 10ad09eac501..05fffcbf3af0 100644
--- a/srcpkgs/blackboxwm/template
+++ b/srcpkgs/blackboxwm/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/bbidulock/blackboxwm"
 distfiles="${homepage}/releases/download/${version}/blackbox-${version}.tar.lz"
 checksum=e4f814fb02f6a977e9aab1c60192087597b79b0a56cc4a14e8a962b7d45d82d1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/bmon/template b/srcpkgs/bmon/template
index 67b13cb31a54..64f426cc2eca 100644
--- a/srcpkgs/bmon/template
+++ b/srcpkgs/bmon/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause, MIT"
 homepage="http://github.com/tgraf/bmon/"
 distfiles="http://github.com/tgraf/${pkgname}/archive/v${version}.tar.gz"
 checksum=d5e503ff6b116c681ebf4d10e238604dde836dceb9c0008eb92416a96c87ca40
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/boinc/template b/srcpkgs/boinc/template
index 1eba13495c2a..944fdaf172d3 100644
--- a/srcpkgs/boinc/template
+++ b/srcpkgs/boinc/template
@@ -21,6 +21,7 @@ system_accounts="boinc"
 boinc_homedir="/var/lib/boinc"
 boinc_shell="/bin/bash"
 conflicts="boinc-nox>=0"
+patch_args=-Np0
 
 CXXFLAGS="-Wno-redundant-decls"
 
diff --git a/srcpkgs/bomi/template b/srcpkgs/bomi/template
index 4cab853148a5..f66197af1d88 100644
--- a/srcpkgs/bomi/template
+++ b/srcpkgs/bomi/template
@@ -21,6 +21,7 @@ changelog="https://raw.githubusercontent.com/xylosper/bomi/master/CHANGES.txt"
 distfiles="https://github.com/xylosper/bomi/archive/v${version}.tar.gz"
 checksum=c76ac45733cdafa7003bbc178e5a90a683df9aec30cd85f188bb17c7af9e282e
 nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/1382/steps/shell_3/logs/stdio
+patch_args=-Np0
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/bonnie++/template b/srcpkgs/bonnie++/template
index 8fa4be8c3d62..5c1be95b51f3 100644
--- a/srcpkgs/bonnie++/template
+++ b/srcpkgs/bonnie++/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="http://www.coker.com.au/bonnie++/"
 distfiles="http://www.coker.com.au/bonnie++/bonnie++-${version}.tgz"
 checksum=6e0bcbc08b78856fd998dd7bcb352d4615a99c26c2dc83d5b8345b102bad0b04
+patch_args=-Np0
 
 post_extract() {
 	sed -i  -e 's/sbin/bin/g' \
diff --git a/srcpkgs/boomerang/template b/srcpkgs/boomerang/template
index 904e0e8571ff..00b49809a562 100644
--- a/srcpkgs/boomerang/template
+++ b/srcpkgs/boomerang/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/BoomerangDecompiler/boomerang"
 distfiles="https://github.com/BoomerangDecompiler/boomerang/archive/v${version}.tar.gz"
 checksum=1d2c9c2f5de1a3e1d5fe3879e82bca268d1c49e6ba3d0a7848695f18c594384d
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*) ;;
diff --git a/srcpkgs/boost/template b/srcpkgs/boost/template
index 5b559e932d18..23f6a6acc51c 100644
--- a/srcpkgs/boost/template
+++ b/srcpkgs/boost/template
@@ -12,6 +12,7 @@ homepage="http://www.boost.org/"
 distfiles="https://dl.bintray.com/boostorg/release/${version}/source/boost_${version//./_}.tar.bz2"
 checksum=59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417cc660722
 python_version=3
+patch_args=-Np0
 
 CXXFLAGS="-std=c++14"
 
diff --git a/srcpkgs/bootchart2/template b/srcpkgs/bootchart2/template
index 62cd9d2116a3..e63b864e5e44 100644
--- a/srcpkgs/bootchart2/template
+++ b/srcpkgs/bootchart2/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/xrmx/bootchart/archive/${version}.tar.gz"
 checksum=cec7871c3dba47a1165873b0acde30a82221fde1d3a942da5e7dd09b513d2017
 make_dirs="/usr/lib/bootchart/tmpfs 0755 root root"
 conflicts="bootchart>=0"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's,\$(EARLY_PREFIX)/sbin/,/usr/bin/,' Makefile
diff --git a/srcpkgs/botan/template b/srcpkgs/botan/template
index d2e6ffb9ccda..5e9e3c803e32 100644
--- a/srcpkgs/botan/template
+++ b/srcpkgs/botan/template
@@ -14,6 +14,7 @@ homepage="https://botan.randombit.net/"
 distfiles="https://botan.randombit.net/releases/Botan-${version}.tar.xz"
 checksum=92ed6ebc918d86bd1b04221ca518af4cf29cc326c4760740bd2d22e61cea2628
 python_version=3
+patch_args=-Np0
 
 LDFLAGS="-pthread"
 CXXFLAGS="-O3"
diff --git a/srcpkgs/bridge-utils/template b/srcpkgs/bridge-utils/template
index 08827cd6ad58..e50ac51ba446 100644
--- a/srcpkgs/bridge-utils/template
+++ b/srcpkgs/bridge-utils/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge"
 distfiles="${KERNEL_SITE}/utils/net/bridge-utils/bridge-utils-${version}.tar.xz"
 checksum=cc67efb5d5fb8928a6569b3fade2b4042ec17da04678dab127d96b46489e26c8
+patch_args=-Np0
 
 pre_configure() {
 	sed "s/u_int\([0-9]*\)_t/uint\1_t/" -i libbridge/libbridge.h
diff --git a/srcpkgs/brltty/template b/srcpkgs/brltty/template
index 53e15ed6ff03..b9c6ba6ec6bf 100644
--- a/srcpkgs/brltty/template
+++ b/srcpkgs/brltty/template
@@ -14,6 +14,7 @@ homepage="http://mielke.cc/brltty/"
 distfiles="http://mielke.cc/brltty/archive/brltty-${version}.tar.xz"
 checksum=4a28e3f1879aee9082f9ce4100fd4053be47add7f8ab0f2af6d6a20590934b62
 python_version=3
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) configure_args="${configure_args} --with-ports-package=glibc";;
diff --git a/srcpkgs/broadcom-wl-dkms/template b/srcpkgs/broadcom-wl-dkms/template
index 55bc9c0e1d36..a31c8c385c7c 100644
--- a/srcpkgs/broadcom-wl-dkms/template
+++ b/srcpkgs/broadcom-wl-dkms/template
@@ -1,4 +1,5 @@
 # Template file for 'broadcom-wl-dkms'
+patch_args=-Np0
 
 pkgname=broadcom-wl-dkms
 version=6.30.223.271
diff --git a/srcpkgs/browsh/template b/srcpkgs/browsh/template
index 856fefd13d78..67675e7dcab0 100644
--- a/srcpkgs/browsh/template
+++ b/srcpkgs/browsh/template
@@ -17,6 +17,7 @@ distfiles="https://$go_import_path/archive/v$version.tar.gz
 checksum="965ce2d94d1d9e4b92411d344421c0bea40994527cafd694c5a6e8e206681ede
  b410527a69dba88a30d8a6d341a20eb5cb1f84b684e9bc8bb6bc88a2930e0eea"
 skip_extraction="browsh.xpi"
+patch_args=-Np0
 
 pre_build() {
 	_prefix="$XBPS_SRCDISTDIR/$pkgname-$version"
diff --git a/srcpkgs/bsdiff/template b/srcpkgs/bsdiff/template
index d1396b8c707c..5f038e447a77 100644
--- a/srcpkgs/bsdiff/template
+++ b/srcpkgs/bsdiff/template
@@ -10,6 +10,7 @@ homepage="http://www.daemonology.net/bsdiff"
 distfiles="${DEBIAN_SITE}/main/b/bsdiff/bsdiff_${version}.orig.tar.gz"
 #distfiles="${homepage}/${pkgname}-${version}.tar.gz"
 checksum=18821588b2dc5bf159aa37d3bcb7b885d85ffd1e19f23a0c57a58723fea85f48
+patch_args=-Np0
 
 do_build() {
 	for i in diff patch; do
diff --git a/srcpkgs/bsdunzip/template b/srcpkgs/bsdunzip/template
index e6ac1e4a369f..922b71d2b7de 100644
--- a/srcpkgs/bsdunzip/template
+++ b/srcpkgs/bsdunzip/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause, ISC"
 homepage="https://github.com/somasis/bsdunzip"
 distfiles="https://github.com/somasis/bsdunzip/archive/${version}.tar.gz"
 checksum=06c52c77fa518732665aa2daa73f364cd2470a5d47a83c9c79f86f207cf3ecc1
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/bubblewrap/template b/srcpkgs/bubblewrap/template
index 4df1dac59395..c8d5dda04338 100644
--- a/srcpkgs/bubblewrap/template
+++ b/srcpkgs/bubblewrap/template
@@ -11,6 +11,7 @@ license="LGPL-2.0-or-later"
 homepage="https://github.com/containers/bubblewrap"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=b9c69b9b1c61a608f34325c8e1a495229bacf6e4a07cbb0c80cf7a814d7ccc03
+patch_args=-Np0
 
 post_install() {
 	if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/buffer/template b/srcpkgs/buffer/template
index df0fb0c0c640..e1c05e510af0 100644
--- a/srcpkgs/buffer/template
+++ b/srcpkgs/buffer/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/scotte/buffer"
 distfiles="https://github.com/scotte/buffer/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=14a881fcd070b1dcd8ec91d8d036f22094c22ac3769c274f0d7d6799038a73c3
+patch_args=-Np0
 
 pre_build() {
 	sed -i Makefile \
diff --git a/srcpkgs/buildbot/template b/srcpkgs/buildbot/template
index ae905fc67ab8..bec731f4e532 100644
--- a/srcpkgs/buildbot/template
+++ b/srcpkgs/buildbot/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://buildbot.net/"
 distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=331efd07bd7522c222a8fb258801e8d78332c88d778ee76416b9e1028676e964
+patch_args=-Np0
 
 pre_install() {
 	sed -i 's,#!/usr/bin/env jython,#!/usr/bin/python2,' contrib/run_maxq.py
diff --git a/srcpkgs/buku/template b/srcpkgs/buku/template
index b2c1962d9195..2785910412d1 100644
--- a/srcpkgs/buku/template
+++ b/srcpkgs/buku/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/jarun/Buku"
 distfiles="https://github.com/jarun/Buku/archive/v${version}.tar.gz"
 checksum=2e1968016d3856184db8ac49cdc92a6c70869f62846185f28c8c60ead0c42888
+patch_args=-Np0
 
 do_install() {
 	vbin buku
diff --git a/srcpkgs/bullet/template b/srcpkgs/bullet/template
index 9dabf7d89292..3f2af8aafdfd 100644
--- a/srcpkgs/bullet/template
+++ b/srcpkgs/bullet/template
@@ -15,6 +15,7 @@ homepage="http://www.bulletphysics.com/Bullet/"
 distfiles="https://github.com/bulletphysics/bullet3/archive/${version}.tar.gz"
 checksum=baa642c906576d4d98d041d0acb80d85dd6eff6e3c16a009b1abf1ccd2bc0a61
 shlib_provides="libOpenGLWindow.so libgwen.so"
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/bumblebee/template b/srcpkgs/bumblebee/template
index c54ea65d32c5..93aa7c8e3bf9 100644
--- a/srcpkgs/bumblebee/template
+++ b/srcpkgs/bumblebee/template
@@ -24,6 +24,7 @@ homepage="http://www.bumblebee-project.org/"
 distfiles="http://www.bumblebee-project.org/${pkgname}-${version}.tar.gz"
 checksum=1018703b07e2f607a4641249d69478ce076ae5a1e9dd6cff5694d394fa7ee30e
 system_groups="bumblebee"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/bup/template b/srcpkgs/bup/template
index b40c3cddbf68..5028dce8364d 100644
--- a/srcpkgs/bup/template
+++ b/srcpkgs/bup/template
@@ -14,6 +14,7 @@ distfiles="https://github.com/bup/bup/archive/${version}.tar.gz"
 checksum=a894cfa96c44b9ef48003b2c2104dc5fa6361dd2f4d519261a93178984a51259
 python_version=3
 nocross=yes
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's#^PREFIX=.*#PREFIX=/usr#' Makefile
diff --git a/srcpkgs/burp2-server/template b/srcpkgs/burp2-server/template
index f3d95a8f1523..c9d602c51242 100644
--- a/srcpkgs/burp2-server/template
+++ b/srcpkgs/burp2-server/template
@@ -1,5 +1,6 @@
 # Template file for 'burp2-server'
 _desc="Network-based backup and restore program"
+patch_args=-Np0
 
 pkgname=burp2-server
 version=2.4.0
diff --git a/srcpkgs/busybox/template b/srcpkgs/busybox/template
index 07377569ba5f..b580ccc52e9b 100644
--- a/srcpkgs/busybox/template
+++ b/srcpkgs/busybox/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://www.busybox.net"
 distfiles="${homepage}/downloads/busybox-${version}.tar.bz2"
 checksum=9d57c4bd33974140fd4111260468af22856f12f5b5ef7c70c8d9b75c712a0dee
+patch_args=-Np0
 
 _alternatives_core="
  ash:ash:/usr/bin/busybox
diff --git a/srcpkgs/bzip2/template b/srcpkgs/bzip2/template
index c39a9427efb1..d51b4a9e6efd 100644
--- a/srcpkgs/bzip2/template
+++ b/srcpkgs/bzip2/template
@@ -10,6 +10,7 @@ homepage="https://sourceware.org/bzip2/"
 changelog="https://sourceware.org/bzip2/CHANGES"
 distfiles="https://sourceware.org/pub/bzip2/bzip2-${version}.tar.gz"
 checksum=ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269
+patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CFLAGS="$CFLAGS -fPIC $LDFLAGS" LDFLAGS="$LDFLAGS" -f Makefile-libbz2_so
diff --git a/srcpkgs/c-blosc/template b/srcpkgs/c-blosc/template
index a488bfbf05d7..b272c4a370c0 100644
--- a/srcpkgs/c-blosc/template
+++ b/srcpkgs/c-blosc/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause, MIT"
 homepage="https://www.blosc.org"
 distfiles="https://github.com/Blosc/c-blosc/archive/v${version}.tar.gz"
 checksum=42c4d3fcce52af9f8e2078f8f57681bfc711706a3330cb72b9b39e05ae18a413
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSES/BLOSC.txt
diff --git a/srcpkgs/c-client/template b/srcpkgs/c-client/template
index bf65dc7277be..83210555d177 100644
--- a/srcpkgs/c-client/template
+++ b/srcpkgs/c-client/template
@@ -11,6 +11,7 @@ homepage="http://www.washington.edu/imap"
 distfiles="http://ftp.ntua.gr/pub/net/mail/imap/imap-${version}.tar.gz"
 checksum=53e15a2b5c1bc80161d42e9f69792a3fa18332b7b771910131004eb520004a28
 nocross=yes
+patch_args=-Np0
 
 do_configure() {
 	sed \
diff --git a/srcpkgs/ca-certificates/template b/srcpkgs/ca-certificates/template
index 854e76a613cd..cd82c7f4c9bc 100644
--- a/srcpkgs/ca-certificates/template
+++ b/srcpkgs/ca-certificates/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later, MPL-2.0"
 homepage="https://tracker.debian.org/pkg/ca-certificates"
 distfiles="${DEBIAN_SITE}/main/c/${pkgname}/${pkgname}_${version}.tar.xz"
 checksum=daa3afae563711c30a0586ddae4336e8e3974c2b627faaca404c4e0141b64665
+patch_args=-Np0
 
 post_extract() {
 	$BUILD_CC $BUILD_CFLAGS ${FILESDIR}/certdata2pem.c -o ${wrksrc}/mozilla/certdata2pem
diff --git a/srcpkgs/cabal-install/template b/srcpkgs/cabal-install/template
index 2c15789b1f9d..1db0f1c792e6 100644
--- a/srcpkgs/cabal-install/template
+++ b/srcpkgs/cabal-install/template
@@ -13,6 +13,7 @@ distfiles="https://hackage.haskell.org/packages/archive/${pkgname}/${version}/${
 checksum=a0555e895aaf17ca08453fde8b19af96725da8398e027aa43a49c1658a600cb0
 nopie_files="/usr/bin/cabal"
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	PREFIX=$PWD/build sh bootstrap.sh --jobs ${XBPS_MAKEJOBS} --user
diff --git a/srcpkgs/cackey/template b/srcpkgs/cackey/template
index 468dcd1c7b1b..6358543e178f 100644
--- a/srcpkgs/cackey/template
+++ b/srcpkgs/cackey/template
@@ -13,6 +13,7 @@ homepage="http://www.rkeene.org/projects/info/wiki/161"
 distfiles="http://cackey.rkeene.org/download/$version/cackey-$version.tar.gz"
 checksum=e2074055bab8eb1c277bfa3355767c50f792d5b87bf41f9c0d1af0e77f311583
 CPPFLAGS="-I$XBPS_CROSS_BASE/usr/include/PCSC"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/cadence/template b/srcpkgs/cadence/template
index b429ab1f0fcb..283dc9312e0b 100644
--- a/srcpkgs/cadence/template
+++ b/srcpkgs/cadence/template
@@ -16,6 +16,7 @@ license="GPL-2.0-only"
 homepage="http://kxstudio.linuxaudio.org/Applications:Cadence"
 distfiles="https://github.com/falkTX/Cadence/archive/v${version}.tar.gz"
 checksum=e530787ded0d53a3004c7a8260114ddb970c2aea43875d62eccd599ac96e1fd1
+patch_args=-Np0
 
 post_extract() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/calc/template b/srcpkgs/calc/template
index bc2087ca2bd3..d5c191ab4da4 100644
--- a/srcpkgs/calc/template
+++ b/srcpkgs/calc/template
@@ -11,6 +11,7 @@ homepage="http://www.isthe.com/chongo/tech/comp/calc/index.html"
 distfiles="http://www.isthe.com/chongo/src/calc/calc-${version}.tar.bz2"
 checksum=eb1dc5dd680019e30264109167e20539fe9ac869049d8b1639781a51d1dea84c
 disable_parallel_build=yes
+patch_args=-Np0
 
 post_extract() {
 	case $XBPS_TARGET_MACHINE in
diff --git a/srcpkgs/caps/template b/srcpkgs/caps/template
index 5555e35858a2..853aec8890bf 100644
--- a/srcpkgs/caps/template
+++ b/srcpkgs/caps/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://quitte.de/dsp/caps.html"
 distfiles="http://quitte.de/dsp/${pkgname}_${version}.tar.bz2"
 checksum=e7496c5bce05abebe3dcb635926153bbb58a9337a6e423f048d3b61d8a4f98c9
+patch_args=-Np0
 
 pre_build() {
 	make_build_args="CC=${CXX} LD=${LD}"
diff --git a/srcpkgs/cargo/template b/srcpkgs/cargo/template
index 9c9781d1fc47..654bdfe4a906 100644
--- a/srcpkgs/cargo/template
+++ b/srcpkgs/cargo/template
@@ -14,6 +14,7 @@ homepage="https://crates.io/"
 distfiles="https://github.com/rust-lang/cargo/archive/${version}.tar.gz"
 checksum=59ba1ce05becb4a5e0772d334d75f9dce3d5487ca288ac986e786241bb1cbac5
 replaces="cargo-tree>=0"
+patch_args=-Np0
 
 build_options="static bindist"
 desc_option_bindist="Generate a tarball for bootstrap"
diff --git a/srcpkgs/catch2/template b/srcpkgs/catch2/template
index 23e59016d313..09607734bc90 100644
--- a/srcpkgs/catch2/template
+++ b/srcpkgs/catch2/template
@@ -15,6 +15,7 @@ license="BSL-1.0"
 homepage="https://github.com/catchorg/Catch2"
 distfiles="https://github.com/catchorg/Catch2/archive/v${version}/${pkgname}-v${version}.tar.gz"
 checksum=e7eb70b3d0ac2ed7dcf14563ad808740c29e628edde99e973adad373a2b5e4df
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/catdoc/template b/srcpkgs/catdoc/template
index ff26dbc5f7be..06522d692116 100644
--- a/srcpkgs/catdoc/template
+++ b/srcpkgs/catdoc/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://www.wagner.pp.ru/~vitus/software/catdoc/"
 distfiles="http://ftp.wagner.pp.ru/pub/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=514a84180352b6bf367c1d2499819dfa82b60d8c45777432fa643a5ed7d80796
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/share/man/man1
diff --git a/srcpkgs/cbang/template b/srcpkgs/cbang/template
index 63388b2aa828..739b521d98c3 100644
--- a/srcpkgs/cbang/template
+++ b/srcpkgs/cbang/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://github.com/CauldronDevelopmentLLC/cbang"
 distfiles="https://github.com/CauldronDevelopmentLLC/cbang/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=8aa5efacf419b712b5bd0172c9d56301bdcbd477cb590ceec25c3595a192e9c0
+patch_args=-Np0
 
 pre_build() {
 	make_build_args+=" prefix=$DESTDIR/usr"
diff --git a/srcpkgs/ccextractor/template b/srcpkgs/ccextractor/template
index fe27e68b04f5..9bdd5e05fc3f 100644
--- a/srcpkgs/ccextractor/template
+++ b/srcpkgs/ccextractor/template
@@ -15,6 +15,7 @@ changelog="https://raw.githubusercontent.com/CCExtractor/ccextractor/master/docs
 distfiles="https://github.com/CCExtractor/${pkgname}/archive/v${version}.tar.gz"
 checksum=bbe8d95347d0cf31bd26489b733fd959a7b98c681f14c59309bff54713fd539d
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/tesseract -DPNG_POWERPC_VSX_OPT=0 -fcommon"
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e "s/tesseract --version/tesseract-ocr --version/g" configure.ac
diff --git a/srcpkgs/ccl/template b/srcpkgs/ccl/template
index 5972ddeb0ce6..d6a2bc83ee74 100644
--- a/srcpkgs/ccl/template
+++ b/srcpkgs/ccl/template
@@ -21,6 +21,7 @@ nopie=1
 nostrip=1
 disable_parallel_build=1
 python_version=3
+patch_args=-Np0
 
 case $XBPS_MACHINE in
 	x86_64*) _arch=64 ;;
diff --git a/srcpkgs/cclive/template b/srcpkgs/cclive/template
index c43dbb94209c..d221a95f2520 100644
--- a/srcpkgs/cclive/template
+++ b/srcpkgs/cclive/template
@@ -12,6 +12,7 @@ homepage="http://cclive.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=2edeaf5d76455723577e0b593f0322a97f1e0c8b0cffcc70eca8b5d17374a495
 CPPFLAGS="-P"
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/ccsm/template b/srcpkgs/ccsm/template
index 7f27e3317fc4..168445d7ec45 100644
--- a/srcpkgs/ccsm/template
+++ b/srcpkgs/ccsm/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/compiz-reloaded"
 distfiles="https://github.com/compiz-reloaded/ccsm/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=99192a021631cc5a82131fbc03d2f1b7e587892878902113d9bde57a6b00bfa4
+patch_args=-Np0
 
 if [ -z "$CROSS_BUILD" ]; then
 	makedepends+=" python-gobject-devel"
diff --git a/srcpkgs/cdb/template b/srcpkgs/cdb/template
index c95afff379bb..410f978ee7f9 100644
--- a/srcpkgs/cdb/template
+++ b/srcpkgs/cdb/template
@@ -9,6 +9,7 @@ license="Public Domain"
 homepage="http://cr.yp.to/cdb.html"
 distfiles="http://cr.yp.to/cdb/cdb-${version}.tar.gz"
 checksum="1919577799a50c080a8a05a1cbfa5fa7e7abc823d8d7df2eeb181e624b7952c5"
+patch_args=-Np0
 
 alternatives="
  cdb:cdbdump:/usr/bin/cdb-dump
diff --git a/srcpkgs/cdecl/template b/srcpkgs/cdecl/template
index e120ca3af500..6de896357130 100644
--- a/srcpkgs/cdecl/template
+++ b/srcpkgs/cdecl/template
@@ -14,6 +14,7 @@ homepage="http://cdecl.org/"
 distfiles="${homepage}files/${wrksrc}.tar.gz"
 checksum=9ee6402be7e4f5bb5e6ee60c6b9ea3862935bf070e6cecd0ab0842305406f3ac
 CFLAGS="-DUSE_READLINE"
+patch_args=-Np0
 
 pre_build() {
 	flex -l -o cdlex.c cdlex.l
diff --git a/srcpkgs/cdm/template b/srcpkgs/cdm/template
index f1fb8b2f646c..5f8a016741b4 100644
--- a/srcpkgs/cdm/template
+++ b/srcpkgs/cdm/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/evertiro/cdm"
 distfiles="https://github.com/evertiro/cdm/archive/${version}.tar.gz"
 checksum=530042165ce65cdff3ec62ba9f077d0e8c6744c13f5d449d84fe2506a79d2e56
+patch_args=-Np0
 
 do_install() {
 	sed -i 's| /| $PKGDESTDIR/|g' install.sh
diff --git a/srcpkgs/cdparanoia/template b/srcpkgs/cdparanoia/template
index 3cf09587f215..956184ded118 100644
--- a/srcpkgs/cdparanoia/template
+++ b/srcpkgs/cdparanoia/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.xiph.org/paranoia/"
 distfiles="http://downloads.xiph.org/releases/$pkgname/$pkgname-III-$version.src.tgz"
 checksum=005db45ef4ee017f5c32ec124f913a0546e77014266c6a1c50df902a55fe64df
+patch_args=-Np0
 
 CFLAGS="-Du_int16_t=uint16_t -Du_int32_t=uint32_t"
 disable_parallel_build=yes
diff --git a/srcpkgs/cegui/template b/srcpkgs/cegui/template
index 070fa66aff81..14cd66cd83fb 100644
--- a/srcpkgs/cegui/template
+++ b/srcpkgs/cegui/template
@@ -23,6 +23,7 @@ homepage="http://cegui.org.uk/"
 distfiles="https://github.com/cegui/cegui/archive/${_githash}.tar.gz"
 checksum=70156257313b81d068d6592887157dd16b91d7bc0dfdcba02a96ed371d329e64
 replaces="cegui-data>=0 cegui-sample>=0"
+patch_args=-Np0
 
 build_options="gtk irrlicht ogre python"
 desc_option_irrlicht="Enable support for Irrlicht"
diff --git a/srcpkgs/cegui07/template b/srcpkgs/cegui07/template
index 3fa7f80a2ea7..352613cf01d5 100644
--- a/srcpkgs/cegui07/template
+++ b/srcpkgs/cegui07/template
@@ -20,6 +20,7 @@ license="MIT"
 homepage="http://cegui.org.uk/"
 distfiles="${SOURCEFORGE_SITE}/crayzedsgui/CEGUI%20Mk-2/${version}/CEGUI-${version}.tar.gz"
 checksum=7c3b264def08b46de749c2acaba363e907479d924612436f3bd09da2e474bb8c
+patch_args=-Np0
 
 build_options="irrlicht python"
 desc_option_irrlicht="Enable support for Irrlicht"
diff --git a/srcpkgs/celestia-glut/template b/srcpkgs/celestia-glut/template
index 2ee6f0cd64fd..22f9e62c648f 100644
--- a/srcpkgs/celestia-glut/template
+++ b/srcpkgs/celestia-glut/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="https://celestia.space"
 distfiles="${SOURCEFORGE_SITE}/celestia/celestia-${version}.tar.gz"
 checksum="d35570ccb9440fc0bd3e73eb9b4c3e8a4c25f3ae444a13d1175053fa16dc34c4"
+patch_args=-Np0
 
 provides="celestia-${version}_${revision}"
 replaces="celestia>=0"
diff --git a/srcpkgs/celestia-gtk/template b/srcpkgs/celestia-gtk/template
index 85e1c6ee1ed8..b0001ac504be 100644
--- a/srcpkgs/celestia-gtk/template
+++ b/srcpkgs/celestia-gtk/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="https://celestia.space"
 distfiles="${SOURCEFORGE_SITE}/celestia/celestia-${version}.tar.gz"
 checksum="d35570ccb9440fc0bd3e73eb9b4c3e8a4c25f3ae444a13d1175053fa16dc34c4"
+patch_args=-Np0
 
 provides="celestia-${version}_${revision}"
 replaces="celestia>=0"
diff --git a/srcpkgs/chafa/template b/srcpkgs/chafa/template
index 1b07026b9ea4..b6c87f0e2757 100644
--- a/srcpkgs/chafa/template
+++ b/srcpkgs/chafa/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-or-later"
 homepage="https://hpjansson.org/chafa/"
 distfiles="https://hpjansson.org/chafa/releases/chafa-${version}.tar.xz"
 checksum=0706e101a6e0e806335aeb57445e2f6beffe0be29a761f561979e81691c2c681
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|i686*) ;;
diff --git a/srcpkgs/chatterino2/template b/srcpkgs/chatterino2/template
index f69730b3a9fe..642d3147fdd2 100644
--- a/srcpkgs/chatterino2/template
+++ b/srcpkgs/chatterino2/template
@@ -29,6 +29,7 @@ e8755e68ff6fc39b4338d424ee9aed2ed5a8eab6eb37af69de2ff21b8dc94e66
 f387cc7eaf27dec462bc85a212619f8086167cf0b47e11825b8580d35a740dfe
 5a5cd8338fcb0a14a4bbe0840f83505d0444a9000956145e85e5550feeb744b0
 eb492b89e67f4ec632bd43f2701d53e355f1d1afbec3cd3af5891c1a6aaaa454"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/chatty/template b/srcpkgs/chatty/template
index a13ad9765b5a..c4ab65395aa6 100644
--- a/srcpkgs/chatty/template
+++ b/srcpkgs/chatty/template
@@ -10,6 +10,7 @@ license="GPL-3.0-only"
 homepage="http://chatty.github.io/"
 distfiles="https://github.com/chatty/chatty/archive/v${version}.tar.gz"
 checksum=2eed3a4ed4f1ea58d89e535182bd32771522e4bccb5aa3bf4329aec9d7ab554c
+patch_args=-Np0
 
 do_build() {
 	gradle shadowJar
diff --git a/srcpkgs/chkrootkit/template b/srcpkgs/chkrootkit/template
index 01558c933f81..1f614156b116 100644
--- a/srcpkgs/chkrootkit/template
+++ b/srcpkgs/chkrootkit/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://www.chkrootkit.org"
 distfiles="ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit-${version}.tar.gz"
 checksum=7262dae33b338976828b5d156b70d159e0043c0db43ada8dee66c97387cf45b5
+patch_args=-Np0
 
 CFLAGS="-fPIC"
 LDFLAGS="-fPIC"
diff --git a/srcpkgs/chmlib/template b/srcpkgs/chmlib/template
index a573c27d1499..44f3de8568b4 100644
--- a/srcpkgs/chmlib/template
+++ b/srcpkgs/chmlib/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.jedrea.com/chmlib/"
 distfiles="http://www.jedrea.com/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=3449d64b0cf71578b2c7e3ddc048d4af3661f44a83941ea074a7813f3a59ffa3
+patch_args=-Np0
 
 libchmlib_package() {
 	short_desc="Library for dealing with Microsoft ITSS/CHM format files"
diff --git a/srcpkgs/choosenim/template b/srcpkgs/choosenim/template
index e2fb62b08d8a..eb5ee1d0fed6 100644
--- a/srcpkgs/choosenim/template
+++ b/srcpkgs/choosenim/template
@@ -13,6 +13,7 @@ distfiles="${homepage}/archive/v${version}.tar.gz>choosenim-${version}.tar.gz
  https://github.com/genotrance/nimarchive/archive/v0.5.4.tar.gz>nimarchive-0.5.4.tar.gz"
 checksum="0e78a59cfb3cf7926f8dff3a4215949ccfaecd6c6dddc3b2e062098b5da03edb
  c38e8c66c2eac2bc021d450f2b60d0e45c5355df963d0133930448639c0bd8d4"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc-musl) broken="ftbfs" ;;
diff --git a/srcpkgs/choqok/template b/srcpkgs/choqok/template
index 75a2c16f63e0..df6cbfc32b23 100644
--- a/srcpkgs/choqok/template
+++ b/srcpkgs/choqok/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="http://choqok.kde.org/"
 distfiles="${KDE_SITE}/${pkgname}/${version%.*}/src/${pkgname}-${version}.tar.xz"
 checksum=26600d95f152c3e04881efb7fb3eb07b5c52fa6ffee838690f28b45defb4a47e
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" kcoreaddons kdoctools ${makedepends}"
diff --git a/srcpkgs/chromium/template b/srcpkgs/chromium/template
index 2c1bb5d7a35c..cbc7e092ac87 100644
--- a/srcpkgs/chromium/template
+++ b/srcpkgs/chromium/template
@@ -11,6 +11,7 @@ homepage="https://www.chromium.org/"
 distfiles="https://commondatastorage.googleapis.com/chromium-browser-official/${pkgname}-${version}.tar.xz"
 checksum=45d5a43ef798d20313c78fa8a075be0c22055e39c8481eb53eabda81df901b31
 nocross=yes
+patch_args=-Np0
 
 lib32disabled=yes
 nodebug=yes
diff --git a/srcpkgs/ck/template b/srcpkgs/ck/template
index f67b160c87c7..4cfe121c7fe6 100644
--- a/srcpkgs/ck/template
+++ b/srcpkgs/ck/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://concurrencykit.org/"
 distfiles="https://github.com/concurrencykit/ck/archive/${version}.tar.gz"
 checksum=e730cb448fb0ecf9d19bf4c7efe9efc3c04dd9127311d87d8f91484742b0da24
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/ckmame/template b/srcpkgs/ckmame/template
index 1b88f6a965cb..3889029f0c9f 100644
--- a/srcpkgs/ckmame/template
+++ b/srcpkgs/ckmame/template
@@ -14,6 +14,7 @@ license="BSD-3-clause"
 homepage="https://nih.at/ckmame/"
 distfiles="https://github.com/nih-at/ckmame/archive/rel-${version//./-}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=9fc5dcf1d2dd75351b2cdf43ce10fecda7d97c8c1a8dd0fe1f653229bb316130
+patch_args=-Np0
 
 post_install() {
 	vlicense ${wrksrc}/LICENSE
diff --git a/srcpkgs/clementine/template b/srcpkgs/clementine/template
index 40a6ac8c70a1..c150fcf650fc 100644
--- a/srcpkgs/clementine/template
+++ b/srcpkgs/clementine/template
@@ -22,6 +22,7 @@ homepage="https://www.clementine-player.org/"
 distfiles="https://github.com/clementine-player/Clementine/releases/download/${_fullver}/${pkgname}-${_fullver}.tar.xz"
 checksum=e1fa2482b81336282a36a5451a0217c274e5b45aa3eeed83fe3fd29a5df59397
 build_options="spotify"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64 | i686 | armv7l)
diff --git a/srcpkgs/cli-visualizer/template b/srcpkgs/cli-visualizer/template
index e758562274e3..d95ce4d4b367 100644
--- a/srcpkgs/cli-visualizer/template
+++ b/srcpkgs/cli-visualizer/template
@@ -13,6 +13,7 @@ distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=927e4c18403c7a40397e8698ffefd1b37250be20fa0ec55fda9a82cf9cc8ba51
 build_options="pulseaudio"
 build_options_default="pulseaudio"
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/clib/template b/srcpkgs/clib/template
index 6e3bf69b149d..f4802d32a731 100644
--- a/srcpkgs/clib/template
+++ b/srcpkgs/clib/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/clibs/clib"
 distfiles="https://github.com/clibs/clib/archive/${version}.tar.gz"
 checksum=74643374883651a272ed8ac8e8a6789c0b4a4b13e20a9d45798fd770821e620d
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/clisp/template b/srcpkgs/clisp/template
index ee0941a3d581..f062b8a1244b 100644
--- a/srcpkgs/clisp/template
+++ b/srcpkgs/clisp/template
@@ -21,6 +21,7 @@ lib32disabled=yes
 disable_parallel_build=yes
 build_options="readline"
 build_options_default="readline"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686-musl) broken="*** - MULTIPLE-VALUE-SETQ: variable EXTRA-FILE-TYPES has no value";;
diff --git a/srcpkgs/cln/template b/srcpkgs/cln/template
index fc771b0f9adf..173890a0b830 100644
--- a/srcpkgs/cln/template
+++ b/srcpkgs/cln/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://www.ginac.de/CLN/"
 distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
 checksum=f492530e8879bda529009b6033e1923c8f4aae843149fc28c667c20b094d984a
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 arm*|aarch64*) CPPFLAGS="-DNO_ASM";;
diff --git a/srcpkgs/clog/template b/srcpkgs/clog/template
index b255ad949bc7..2195202ec954 100644
--- a/srcpkgs/clog/template
+++ b/srcpkgs/clog/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://taskwarrior.org/docs/clog/"
 distfiles="http://gothenburgbitfactory.org/download/clog-${version}.tar.gz"
 checksum=fed44a8d398790ab0cf426c1b006e7246e20f3fcd56c0ec4132d24b05d5d2018
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/cloog/template b/srcpkgs/cloog/template
index 18a84032fdd4..d65b97fcf48b 100644
--- a/srcpkgs/cloog/template
+++ b/srcpkgs/cloog/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.bastoul.net/cloog/"
 distfiles="https://github.com/periscop/cloog/releases/download/cloog-${version}/cloog-${version}.tar.gz"
 checksum=835c49951ff57be71dcceb6234d19d2cc22a3a5df84aea0a9d9760d92166fc72
+patch_args=-Np0
 
 cloog-devel_package() {
 	depends="${makedepends} cloog>=${version}_${revision}"
diff --git a/srcpkgs/clucene/template b/srcpkgs/clucene/template
index fe045cb36356..67d9d9641281 100644
--- a/srcpkgs/clucene/template
+++ b/srcpkgs/clucene/template
@@ -15,6 +15,7 @@ license="LGPL-2+/ASL-2.0"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-core-${version}.tar.gz"
 checksum=ddfdc433dd8ad31b5c5819cc4404a8d2127472a3b720d3e744e8c51d79732eab
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	# threading segfaults on musl
diff --git a/srcpkgs/clutter/template b/srcpkgs/clutter/template
index 461e2fe07978..44b3ab7c88de 100644
--- a/srcpkgs/clutter/template
+++ b/srcpkgs/clutter/template
@@ -18,6 +18,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.clutter-project.org"
 distfiles="${GNOME_SITE}/clutter/${version%.*}/clutter-${version}.tar.xz"
 checksum=8b48fac159843f556d0a6be3dbfc6b083fc6d9c58a20a49a6b4919ab4263c4e6
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/cmocka/template b/srcpkgs/cmocka/template
index ea0384420a33..dfe97283fad1 100644
--- a/srcpkgs/cmocka/template
+++ b/srcpkgs/cmocka/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://cmocka.org/"
 distfiles="https://cmocka.org/files/${version%.*}/cmocka-${version}.tar.xz"
 checksum=f0ccd8242d55e2fd74b16ba518359151f6f8383ff8aef4976e48393f77bba8b6
+patch_args=-Np0
 
 cmocka-devel_package() {
 	depends="cmocka-${version}_${revision}"
diff --git a/srcpkgs/cmus/template b/srcpkgs/cmus/template
index fd8e518e2af6..891beaef9a5e 100644
--- a/srcpkgs/cmus/template
+++ b/srcpkgs/cmus/template
@@ -19,6 +19,7 @@ checksum=6fb799cae60db9324f03922bbb2e322107fd386ab429c0271996985294e2ef44
 build_options="elogind"
 build_options_default="elogind"
 desc_option_elogind="Support MPRIS interface via elogind"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/codeblocks/template b/srcpkgs/codeblocks/template
index 33b9b9a77853..c1f7945b39c2 100644
--- a/srcpkgs/codeblocks/template
+++ b/srcpkgs/codeblocks/template
@@ -14,6 +14,7 @@ license="GPL-3.0-only"
 homepage="http://www.codeblocks.org"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/Sources/${version}/${pkgname}-${version}.tar.xz"
 checksum=15eeb3e28aea054e1f38b0c7f4671b4d4d1116fd05f63c07aa95a91db89eaac5
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" wxWidgets-devel tinyxml-devel"
diff --git a/srcpkgs/codecrypt/template b/srcpkgs/codecrypt/template
index cd326930709d..51c0dcbbd0b8 100644
--- a/srcpkgs/codecrypt/template
+++ b/srcpkgs/codecrypt/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-or-later"
 homepage="https://e-x-a.org/codecrypt"
 distfiles="https://github.com/exaexa/codecrypt/archive/v${version}.tar.gz"
 checksum=25f11bc361b4f8aca7245698334b5715b7d594d708a75e8cdb2aa732dc46eb96
+patch_args=-Np0
 
 LDFLAGS="-lpthread"
 
diff --git a/srcpkgs/codelite/template b/srcpkgs/codelite/template
index cedc1e11c247..db21463032db 100644
--- a/srcpkgs/codelite/template
+++ b/srcpkgs/codelite/template
@@ -20,6 +20,7 @@ distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz"
 checksum=f2653fa42d6214999718236998cb223e6de00a498c0cfde795e901be693fb9ac
 nocross=yes
 python_version=2 #unverified
+patch_args=-Np0
 
 build_options="hunspell lldb mysql sftp"
 build_options_default="hunspell sftp"
diff --git a/srcpkgs/coin3/template b/srcpkgs/coin3/template
index 2130c0b8b263..3ed1add5ffa6 100644
--- a/srcpkgs/coin3/template
+++ b/srcpkgs/coin3/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="https://coin3d.github.io/"
 distfiles="https://github.com/coin3d/coin/archive/Coin-${version}.tar.gz"
 checksum=b00d2a8e9d962397cf9bf0d9baa81bcecfbd16eef675a98c792f5cf49eb6e805
+patch_args=-Np0
 
 CFLAGS=-DNDEBUG
 CXXFLAGS=-DNDEBUG
diff --git a/srcpkgs/collectd/template b/srcpkgs/collectd/template
index 28fa815e85a9..b9fa1053465d 100644
--- a/srcpkgs/collectd/template
+++ b/srcpkgs/collectd/template
@@ -23,6 +23,7 @@ homepage="https://collectd.org"
 distfiles="https://collectd.org/files/${pkgname}-${version}.tar.bz2"
 checksum=5bae043042c19c31f77eb8464e56a01a5454e0b39fa07cf7ad0f1bfc9c3a09d6
 LDFLAGS="-lgcrypt"
+patch_args=-Np0
 
 build_options="rrdtool perl notify prometheus"
 desc_option_rrdtool="Enable support for RRDTool"
diff --git a/srcpkgs/colord/template b/srcpkgs/colord/template
index 98739d4802bf..14bc56ad3856 100644
--- a/srcpkgs/colord/template
+++ b/srcpkgs/colord/template
@@ -17,6 +17,7 @@ license="GPL-2.0-only"
 homepage="https://www.freedesktop.org/software/colord"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
 checksum=b774ea443d239f4a2ee1853bd678426e669ddeda413dcb71cea1638c4d6c5e17
+patch_args=-Np0
 
 system_accounts="colord"
 colord_homedir="/var/lib/colord"
diff --git a/srcpkgs/commoncpp2/template b/srcpkgs/commoncpp2/template
index 181a6a9e07bf..ddbd6ba58363 100644
--- a/srcpkgs/commoncpp2/template
+++ b/srcpkgs/commoncpp2/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage='http://www.gnu.org/software/commoncpp/'
 distfiles="${GNU_SITE}/commoncpp/$pkgname-${version}.tar.gz"
 checksum="53ced4aff74e28a1d8018eb2b4974519028db3c12471ab6dff1c873578c9af4e"
+patch_args=-Np0
 
 commoncpp2-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/connman-ncurses/template b/srcpkgs/connman-ncurses/template
index 5fd4b33b08fc..0d2f48a12e24 100644
--- a/srcpkgs/connman-ncurses/template
+++ b/srcpkgs/connman-ncurses/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/eurogiciel-oss/connman-json-client"
 distfiles="https://github.com/eurogiciel-oss/connman-json-client/archive/v${version}.tar.gz"
 checksum=724604787b51cd3bd2ba5d2291f5f2efe0558a1ec78d92d3c92ebc78f6c63219
+patch_args=-Np0
 
 pre_configure() {
 	mkdir -p m4
diff --git a/srcpkgs/containers.image/template b/srcpkgs/containers.image/template
index f587e0ef3640..d292c68747b7 100644
--- a/srcpkgs/containers.image/template
+++ b/srcpkgs/containers.image/template
@@ -11,6 +11,7 @@ license="Apache-2.0"
 homepage="https://github.com/containers/image"
 distfiles="https://github.com/containers/image/archive/v${version}.tar.gz"
 checksum=99440d59728ed741e6171046cf3a6a820c2e3414cd9c17ee640efd289a015c3f
+patch_args=-Np0
 
 do_build() {
 	mkdir -p build
diff --git a/srcpkgs/coreboot-utils/template b/srcpkgs/coreboot-utils/template
index 4eec377ecea6..3f161fe47556 100644
--- a/srcpkgs/coreboot-utils/template
+++ b/srcpkgs/coreboot-utils/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://coreboot.org"
 distfiles="https://coreboot.org/releases/coreboot-${version}.tar.xz"
 checksum=4779da645a25ddebc78f1bd2bd0b740fb1e6479572648d4650042a2b9502856a
+patch_args=-Np0
 
 do_build() {
 	for util in cbfstool cbmem ectool ifdtool inteltool intelmetool \
diff --git a/srcpkgs/coreutils/template b/srcpkgs/coreutils/template
index b9148c854960..fd25f8220a78 100644
--- a/srcpkgs/coreutils/template
+++ b/srcpkgs/coreutils/template
@@ -11,6 +11,7 @@ homepage="https://www.gnu.org/software/coreutils"
 changelog="https://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob_plain;f=NEWS;hb=HEAD"
 distfiles="${GNU_SITE}/coreutils/coreutils-${version}.tar.xz"
 checksum=4458d8de7849df44ccab15e16b1548b285224dbba5f08fac070c1c0e0bcc4cfa
+patch_args=-Np0
 
 replaces="chroot-coreutils>=0 coreutils-doc>=0 b2sum>=0"
 
diff --git a/srcpkgs/coturn/template b/srcpkgs/coturn/template
index edfb526f4967..1f662c41f17b 100644
--- a/srcpkgs/coturn/template
+++ b/srcpkgs/coturn/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/coturn/coturn"
 distfiles="https://github.com/coturn/coturn/archive/${version}.tar.gz"
 checksum=4ff1f8c041ac71445018d81321d4b66e5dce4f171ef73a348d858dc9a0cc1cce
+patch_args=-Np0
 
 post_patch() {
 	# LibreSSL does not support FIPS mode
diff --git a/srcpkgs/cpuburn/template b/srcpkgs/cpuburn/template
index a215520fb764..735ecbcba22b 100644
--- a/srcpkgs/cpuburn/template
+++ b/srcpkgs/cpuburn/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="https://launchpad.net/ubuntu/+source/cpuburn/"
 distfiles="https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${version}.orig.tar.gz"
 checksum=eb191ce9bfbf453d30c218c3419573df102a3588f96c4a43686c84bb9da4bed6
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/cpulimit/template b/srcpkgs/cpulimit/template
index 9fbf6eccf66c..f1a756a81a70 100644
--- a/srcpkgs/cpulimit/template
+++ b/srcpkgs/cpulimit/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/opsengine/cpulimit"
 distfiles="https://github.com/opsengine/${pkgname}/archive/v${version}.tar.gz"
 checksum=64312f9ac569ddcadb615593cd002c94b76e93a0d4625d3ce1abb49e08e2c2da
+patch_args=-Np0
 
 pre_build() {
 	export CFLAGS="$CFLAGS $LDFLAGS"
diff --git a/srcpkgs/criu/template b/srcpkgs/criu/template
index c9f68933e756..2c9eda89e078 100644
--- a/srcpkgs/criu/template
+++ b/srcpkgs/criu/template
@@ -18,6 +18,7 @@ homepage="http://criu.org/"
 distfiles="https://download.openvz.org/criu/criu-${version}.tar.bz2"
 checksum=f63f30188b84e9a611429f732381f27e37c60cde0afc9821600f8597d21e39cb
 nocross="fails to run protobuf internals"
+patch_args=-Np0
 
 do_install() {
 	make DESTDIR=${DESTDIR} PREFIX=/usr LOGROTATEDIR=/etc/logrotate.d \
diff --git a/srcpkgs/crossguid/template b/srcpkgs/crossguid/template
index c846590103fa..acec95753554 100644
--- a/srcpkgs/crossguid/template
+++ b/srcpkgs/crossguid/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://github.com/graeme-hill/crossguid"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=48321928473c682b0cdc7e17bbd3390f79f4b98ab22fef3b81a852dda81fd195
+patch_args=-Np0
 
 do_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/crypto++/template b/srcpkgs/crypto++/template
index b524377319ea..ecc5291e1b3f 100644
--- a/srcpkgs/crypto++/template
+++ b/srcpkgs/crypto++/template
@@ -14,6 +14,7 @@ license="BSL-1.0"
 homepage="http://www.cryptopp.com/"
 distfiles="https://github.com/weidai11/cryptopp/archive/CRYPTOPP_${version//./_}.tar.gz"
 checksum=63304c6f943f435a4e385273e15abb69cff3b85a44663150bf5a6069b84abd43
+patch_args=-Np0
 
 CXXFLAGS="-DNDEBUG -fPIC"
 
diff --git a/srcpkgs/csound/template b/srcpkgs/csound/template
index f02f97bc6325..d38bf3627200 100644
--- a/srcpkgs/csound/template
+++ b/srcpkgs/csound/template
@@ -18,6 +18,7 @@ license="LGPL-2.1-or-later"
 homepage="https://csound.com/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=d47ed0fb70c752cb06ee2655ee9f010d8d1e369fc73d09d2ac2bc1b3060bf724
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 CXXFLAGS="-Wno-error -fcommon"
diff --git a/srcpkgs/csync2/template b/srcpkgs/csync2/template
index f8738551c270..1b16f75c10ee 100644
--- a/srcpkgs/csync2/template
+++ b/srcpkgs/csync2/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://oss.linbit.com/csync2/"
 distfiles="https://github.com/LINBIT/csync2/archive/csync2-$version.tar.gz"
 checksum=a1c6b0364eb9f19986a92fccd369bae29aa5aa55300e0664dadaf80d80de23ff
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ctags/template b/srcpkgs/ctags/template
index 56b3c3dfdfa8..2395dacd8208 100644
--- a/srcpkgs/ctags/template
+++ b/srcpkgs/ctags/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://ctags.io/"
 distfiles="https://github.com/universal-ctags/ctags/archive/p${version}.tar.gz"
 checksum=26d9efe481a57e81195878cdb0baca730a3c4d234b9a7c4f6bf2c8def42bf42b
+patch_args=-Np0
 
 do_configure() {
 	./autogen.sh
diff --git a/srcpkgs/cubieboard2-uboot/template b/srcpkgs/cubieboard2-uboot/template
index 23f63f574f00..8861e5c7b174 100644
--- a/srcpkgs/cubieboard2-uboot/template
+++ b/srcpkgs/cubieboard2-uboot/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="http://www.denx.de/wiki/U-Boot/WebHome"
 distfiles="ftp://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2"
 checksum=45813e6565dcc0436abe6752624324cdbf5f3ac106570d76d32b46ec529bcdc8
+patch_args=-Np0
 
 archs="armv7l*"
 
diff --git a/srcpkgs/cuetools/template b/srcpkgs/cuetools/template
index 7e039c051c73..8eb6785e684e 100644
--- a/srcpkgs/cuetools/template
+++ b/srcpkgs/cuetools/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/svend/cuetools"
 distfiles="https://github.com/svend/${pkgname}/archive/${version}.tar.gz"
 checksum=24a2420f100c69a6539a9feeb4130d19532f9f8a0428a8b9b289c6da761eb107
+patch_args=-Np0
 
 pre_configure() {
 	aclocal
diff --git a/srcpkgs/cups-pdf/template b/srcpkgs/cups-pdf/template
index 897437df779b..b8339fc1bf21 100644
--- a/srcpkgs/cups-pdf/template
+++ b/srcpkgs/cups-pdf/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.cups-pdf.de/"
 distfiles="https://www.cups-pdf.de/src/${pkgname}_${version}.tar.gz"
 checksum=738669edff7f1469fe5e411202d87f93ba25b45f332a623fb607d49c59aa9531
+patch_args=-Np0
 
 do_build() {
 	$CC $CFLAGS -o $pkgname src/cups-pdf.c -lcups ${LDFLAGS}
diff --git a/srcpkgs/cups/template b/srcpkgs/cups/template
index 66204733fa86..9520c2240a0a 100644
--- a/srcpkgs/cups/template
+++ b/srcpkgs/cups/template
@@ -17,6 +17,7 @@ license="Apache-2.0"
 homepage="https://github.com/OpenPrinting/cups"
 distfiles="https://github.com/OpenPrinting/cups/releases/download/v${version}/cups-${version}-source.tar.gz"
 checksum=deb3575bbe79c0ae963402787f265bfcf8d804a71fc2c94318a74efec86f96df
+patch_args=-Np0
 
 conf_files="/etc/pam.d/cups /etc/cups/*.conf /etc/xinetd.d/cups-lpd"
 make_dirs="
diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index e138e37605db..adb5f59e0aad 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -14,6 +14,7 @@ license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
 checksum=7e1e408f269a604418f37575ba8ef5f69323bebc4dd7f3091c1c2e9b000ffcbf
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/cutemarked/template b/srcpkgs/cutemarked/template
index 39f15d81ea08..ddf409fb9a76 100644
--- a/srcpkgs/cutemarked/template
+++ b/srcpkgs/cutemarked/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://cloose.github.io/CuteMarkEd/"
 distfiles="https://github.com/cloose/${pkgname}/archive/v${version}.tar.gz"
 checksum=78a41808c2f0452375810abdff76eeaaee012f8d1368a2b8772ec6b4d2ceeec8
+patch_args=-Np0
 
 pre_build() {
 	lrelease app/app.pro
diff --git a/srcpkgs/cvsps2/template b/srcpkgs/cvsps2/template
index 1bf720a7774c..b80618d32173 100644
--- a/srcpkgs/cvsps2/template
+++ b/srcpkgs/cvsps2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://cvsps.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/cvsps/cvsps-${version}.tar.gz"
 checksum=91d3198b33463861a581686d5fcf99a5c484e7c4d819384c04fda9cafec1075a
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/linux/__GLIBC__/g' cbtcommon/text_util.c
diff --git a/srcpkgs/daemontools/template b/srcpkgs/daemontools/template
index 5999e2e426ac..f3efebc6eeec 100644
--- a/srcpkgs/daemontools/template
+++ b/srcpkgs/daemontools/template
@@ -12,6 +12,7 @@ homepage="http://cr.yp.to/daemontools.html"
 distfiles="http://cr.yp.to/daemontools/${pkgname}-${version}.tar.gz http://smarden.org/pape/djb/manpages/daemontools-0.76-man-20020131.tar.gz"
 checksum="a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f
  1b4d77afe0878a0df587672531a3f7bbe0feb7ad0e9acf50395426e3c434600a"
+patch_args=-Np0
 
 post_install() {
 	for m in $XBPS_BUILDDIR/daemontools-man/*.8; do
diff --git a/srcpkgs/dante/template b/srcpkgs/dante/template
index 17fe0f69ae60..62b5f04f9a47 100644
--- a/srcpkgs/dante/template
+++ b/srcpkgs/dante/template
@@ -10,6 +10,7 @@ license="MIT-CMU"
 homepage="http://www.inet.no/dante/index.html"
 distfiles="http://www.inet.no/dante/files/dante-${version}.tar.gz"
 checksum=4c97cff23e5c9b00ca1ec8a95ab22972813921d7fbf60fc453e3e06382fc38a7
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
 	configure_args="--with-libc=libc.so.6"
diff --git a/srcpkgs/dar/template b/srcpkgs/dar/template
index c289909e8122..ec40334f51f9 100644
--- a/srcpkgs/dar/template
+++ b/srcpkgs/dar/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://dar.linux.free.fr/"
 distfiles="${SOURCEFORGE_SITE}/dar/dar-${version}.tar.gz"
 checksum=3fea9ff9e55fb9827e17a080de7d1a2605b82c2320c0dec969071efefdbfd097
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --with-gpgme-prefix=${XBPS_CROSS_BASE}/usr
diff --git a/srcpkgs/darkplaces/template b/srcpkgs/darkplaces/template
index 9e282a061057..cb5f7671d680 100644
--- a/srcpkgs/darkplaces/template
+++ b/srcpkgs/darkplaces/template
@@ -12,6 +12,7 @@ license="GPL-2"
 homepage="http://icculus.org/twilight/darkplaces/"
 distfiles="http://icculus.org/twilight/$pkgname/files/darkplacesengine${version}.zip"
 checksum=69e5a50991884196e403bd6aab4a33bba553a934a167be366672ab4e223b06c9
+patch_args=-Np0
 
 post_extract() {
 	# Extract the real source code.
diff --git a/srcpkgs/darktable/template b/srcpkgs/darktable/template
index 24f17d36dda8..6b3d09a1c0a8 100644
--- a/srcpkgs/darktable/template
+++ b/srcpkgs/darktable/template
@@ -23,6 +23,7 @@ homepage="http://www.darktable.org/"
 changelog="https://github.com/darktable-org/darktable/releases"
 distfiles="https://github.com/darktable-org/darktable/releases/download/release-${version}/darktable-${version}.tar.xz"
 checksum=7fc3f851da9bcd7c5053ecd09f21aa3eb6103be98a6c58f52010b6f22174941e
+patch_args=-Np0
 
 build_options="gmic"
 
diff --git a/srcpkgs/dash/template b/srcpkgs/dash/template
index d966b55956b7..34375cdca66f 100644
--- a/srcpkgs/dash/template
+++ b/srcpkgs/dash/template
@@ -11,6 +11,7 @@ homepage="http://gondor.apana.org.au/~herbert/dash/"
 distfiles="http://gondor.apana.org.au/~herbert/dash/files/$pkgname-$version.tar.gz"
 checksum=4e15b7ba5363bcc2a443549910cdc15b5ad601df8196b5f294c712eff037e08d
 register_shell="/usr/bin/sh /usr/bin/dash /bin/sh /bin/dash"
+patch_args=-Np0
 
 alternatives="
  sh:sh:/usr/bin/dash
diff --git a/srcpkgs/davfs2/template b/srcpkgs/davfs2/template
index 01eb6336fc4f..0b38a2b6f8c4 100644
--- a/srcpkgs/davfs2/template
+++ b/srcpkgs/davfs2/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://savannah.nongnu.org/projects/davfs2"
 distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=2e6b675685bd917772be60f0999ae098c80f79ff20dc131e8fec4547cbb63b50
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index 2d340913b04b..217e0eb01397 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,7 @@ license="BSD-4-Clause"
 homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.html"
 distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
 checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+patch_args=-Np0
 
 post_install() {
 	chmod 755 ${DESTDIR}/usr/bin/*
diff --git a/srcpkgs/dbus-glib/template b/srcpkgs/dbus-glib/template
index ee905b75bfe6..3a273bea56b5 100644
--- a/srcpkgs/dbus-glib/template
+++ b/srcpkgs/dbus-glib/template
@@ -13,6 +13,7 @@ license="GPL-2"
 homepage="http://www.freedesktop.org/wiki/Software/DBusBindings"
 distfiles="http://dbus.freedesktop.org/releases/$pkgname/$pkgname-$version.tar.gz"
 checksum=7ce4760cf66c69148f6bd6c92feaabb8812dee30846b24cd0f7395c436d7e825
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --with-dbus-binding-tool=dbus-binding-tool"
diff --git a/srcpkgs/dcraw/template b/srcpkgs/dcraw/template
index 67cb2f426ef1..e05e4f27e3b7 100644
--- a/srcpkgs/dcraw/template
+++ b/srcpkgs/dcraw/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.dechifro.org/dcraw/"
 distfiles="https://www.dechifro.org/dcraw/archive/${pkgname}-${version}.tar.gz"
 checksum=2890c3da2642cd44c5f3bfed2c9b2c1db83da5cec09cc17e0fa72e17541fb4b9
+patch_args=-Np0
 
 do_build() {
 	$CC $CFLAGS $LDFLAGS \
diff --git a/srcpkgs/dcron/template b/srcpkgs/dcron/template
index eb975fd13a30..e7333970c76f 100644
--- a/srcpkgs/dcron/template
+++ b/srcpkgs/dcron/template
@@ -11,6 +11,7 @@ changelog="https://raw.githubusercontent.com/dubiousjim/dcron/v${version}/CHANGE
 distfiles="https://github.com/dubiousjim/dcron/archive/v${version}.tar.gz"
 checksum=7c047194b9339b781971b000bf5512c11e856d20a14fe5323d5a1823f04c2a3f
 provides="cron-daemon-0_1"
+patch_args=-Np0
 
 alternatives="
  crond:crond:/etc/sv/dcron
diff --git a/srcpkgs/deadbeef-fb/template b/srcpkgs/deadbeef-fb/template
index c62ae6fc7b40..ae67fbb103f4 100644
--- a/srcpkgs/deadbeef-fb/template
+++ b/srcpkgs/deadbeef-fb/template
@@ -17,6 +17,7 @@ distfiles="https://gitlab.com/zykure/${pkgname}/repository/${_commit}/archive.ta
 checksum=19a0c2ea3743926e71f9b20f616ff5bdbfd9839a553b33cc192dfed7bed3cb1d
 build_options="gtk3"
 build_options_default="gtk3"
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/deadbeef/template b/srcpkgs/deadbeef/template
index 5666c1d97c92..a070c45c9a26 100644
--- a/srcpkgs/deadbeef/template
+++ b/srcpkgs/deadbeef/template
@@ -26,6 +26,7 @@ checksum="cbfe873d5bd84b70011dd6131b249fea8c89318c37411696a890c55029ac3e27
  c5eeb3fa116d51d251fe7c7e5c44798680f6478c43a1fffdcb28c4caf1c68286
  35b58679dbfec2c3a2688b1896afb0fb73b5184ac05d5bdbb787a86b5c00430d"
 LDFLAGS+=" -Wl,-z,stack-size=1048576"
+patch_args=-Np0
 
 # The soundtouchup plugin was made default in 1.8.4 and fails to build on i686.
 # Fixing that might be a good maintainer task.
diff --git a/srcpkgs/debug-me/template b/srcpkgs/debug-me/template
index 3df514e0be48..e6f9059f38c9 100644
--- a/srcpkgs/debug-me/template
+++ b/srcpkgs/debug-me/template
@@ -12,6 +12,7 @@ distfiles="https://git.joeyh.name/index.cgi/${pkgname}.git/snapshot/${pkgname}-$
 checksum=9497dc9b85a58e5c499ea25fa1bed9f4fd6cdd2f57564f52a0e4152ad4fdc102
 nocross=yes # Can't yet cross compile Haskell
 nopie_files="/usr/bin/debug-me"
+patch_args=-Np0
 
 post_install() {
 	vlicense AGPL
diff --git a/srcpkgs/desmume/template b/srcpkgs/desmume/template
index 3afaa5027f74..db37ee4a51b5 100644
--- a/srcpkgs/desmume/template
+++ b/srcpkgs/desmume/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.desmume.org"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=3ab34ba6cc009566245025c1dd94bf449b6a1b416d24387cb42e183c78e38896
+patch_args=-Np0
 
 post_extract() {
 	# git eats CRLFs, so the patch has wrong line ending. Instead
diff --git a/srcpkgs/devil/template b/srcpkgs/devil/template
index 1dffc7bdd52c..1a76819b665a 100644
--- a/srcpkgs/devil/template
+++ b/srcpkgs/devil/template
@@ -16,6 +16,7 @@ distfiles="${SOURCEFORGE_SITE}/openil/DevIL-${version}.tar.gz"
 checksum=0075973ee7dd89f0507873e2580ac78336452d29d34a07134b208f44e2feb709
 # The examples subpkg is gone
 replaces="devil-examples<1.8.0"
+patch_args=-Np0
 
 devil-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/dhcp/template b/srcpkgs/dhcp/template
index 2db18dcc60b0..a466f6607a2e 100644
--- a/srcpkgs/dhcp/template
+++ b/srcpkgs/dhcp/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="https://www.isc.org/downloads/dhcp"
 distfiles="http://ftp.isc.org/isc/dhcp/${version/P/-P}/dhcp-${version/P/-P}.tar.gz"
 checksum=b05e04337539545a8faa0d6ac518defc61a07e5aec66a857f455e7f218c85a1a
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/dhcpcd/template b/srcpkgs/dhcpcd/template
index e651bd019067..dbd6f288fbb7 100644
--- a/srcpkgs/dhcpcd/template
+++ b/srcpkgs/dhcpcd/template
@@ -17,6 +17,7 @@ distfiles="https://roy.marples.name/downloads/dhcpcd/dhcpcd-${version}.tar.xz"
 checksum=41a69297f380bf15ee8f94f73154f8c2bca7157a087c0d5aca8de000ba1d4513
 lib32disabled=yes
 conf_files=/etc/dhcpcd.conf
+patch_args=-Np0
 
 system_accounts="_dhcpcd"
 _dhcpcd_homedir="/var/db/dhcpcd"
diff --git a/srcpkgs/dia/template b/srcpkgs/dia/template
index 45f48aab4dcf..62af8fcba806 100644
--- a/srcpkgs/dia/template
+++ b/srcpkgs/dia/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Dia"
 distfiles="${GNOME_SITE}/dia/${version%.*}/dia-${version}.tar.xz"
 checksum=22914e48ef48f894bb5143c5efc3d01ab96e0a0cde80de11058d3b4301377d34
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/diod/template b/srcpkgs/diod/template
index de62d6c62b71..548e1f9f0540 100644
--- a/srcpkgs/diod/template
+++ b/srcpkgs/diod/template
@@ -12,6 +12,7 @@ license="GPL-2"
 homepage="https://github.com/chaos/diod"
 distfiles="https://github.com/chaos/diod/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=f41d2b91c1a712132f5457d9d1c3caca985f069bdc8ef27bf4c148ac1d9f8c9f
+patch_args=-Np0
 
 post_install() {
 	vsv diod
diff --git a/srcpkgs/discord-ptb/template b/srcpkgs/discord-ptb/template
index b1467a7dc267..35bd7f20fa24 100644
--- a/srcpkgs/discord-ptb/template
+++ b/srcpkgs/discord-ptb/template
@@ -16,6 +16,7 @@ _license_checksum=9abbd207c86f76a59c0017c131dc7a30089c40b4dacb54a0f339272468344e
 nopie=yes
 restricted=yes
 repository=nonfree
+patch_args=-Np0
 
 post_extract() {
 	$XBPS_FETCH_CMD -o eula https://discord.com/terms; cat eula |
diff --git a/srcpkgs/discord/template b/srcpkgs/discord/template
index fc6a70079d8b..17f259b82067 100644
--- a/srcpkgs/discord/template
+++ b/srcpkgs/discord/template
@@ -14,6 +14,7 @@ checksum=adede954e9c696d96e254759b539527a24ab1d42f0d548c5c4309d1a3fc3c25e
 repository=nonfree
 restricted=yes
 nopie=yes
+patch_args=-Np0
 
 do_install() {
 	local package_location="usr/lib/$pkgname" item
diff --git a/srcpkgs/discount/template b/srcpkgs/discount/template
index d47f46518415..3bee85895390 100644
--- a/srcpkgs/discount/template
+++ b/srcpkgs/discount/template
@@ -12,6 +12,7 @@ homepage="http://www.pell.portland.or.us/~orc/Code/discount"
 distfiles="https://github.com/Orc/discount/archive/v${version}.tar.gz"
 checksum=72c1325ddfc40871d6810f1e272cf2d45b361f26357eb38f170fd04d737bb9f2
 disable_parallel_build=yes
+patch_args=-Np0
 
 do_install() {
 	make DESTDIR=${DESTDIR} install install.man
diff --git a/srcpkgs/dispcalGUI/template b/srcpkgs/dispcalGUI/template
index 1bb51316a5d1..6e86a157729e 100644
--- a/srcpkgs/dispcalGUI/template
+++ b/srcpkgs/dispcalGUI/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://displaycal.net/"
 distfiles="${SOURCEFORGE_SITE}/dispcalgui/${_name}-${version}.tar.gz"
 checksum=7c34dfbd9f66f24f1d4c88de4a5a0de688aad719f095874b6259637d30893bea
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's|MimeType=model/vrml;x-world/x-vrml;|MimeType=model/vrml;|' misc/displaycal-vrml-to-x3d-converter.desktop
diff --git a/srcpkgs/djview/template b/srcpkgs/djview/template
index 76a0d1cc4103..bade9c6f96bc 100644
--- a/srcpkgs/djview/template
+++ b/srcpkgs/djview/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://djvu.sourceforge.net/djview4.html"
 distfiles="${SOURCEFORGE_SITE}/djvu/${pkgname}-${version}.tar.gz"
 checksum=5673c6a8b7e195b91a1720b24091915b8145de34879db1158bc936b100eaf3e3
+patch_args=-Np0
 
 post_extract() {
 	vsed -i -e '/Exec/s/djview4/djview/' \
diff --git a/srcpkgs/dma/template b/srcpkgs/dma/template
index 71892496013f..5ec809adcf71 100644
--- a/srcpkgs/dma/template
+++ b/srcpkgs/dma/template
@@ -13,6 +13,7 @@ homepage="https://github.com/corecode/dma"
 distfiles="https://github.com/corecode/dma/archive/v${version}.tar.gz"
 checksum=9d4b903f2b750d888f51d668d08d2ea18404dedb0a52cffeb3c81376023c1946
 system_accounts="mail"
+patch_args=-Np0
 
 provides="smtp-server-0_1 smtp-forwarder-0_1"
 replaces="smtp-server>=0 smtp-forwarder>=0"
diff --git a/srcpkgs/dmd-bootstrap/template b/srcpkgs/dmd-bootstrap/template
index 029b0024faea..1a7c483982f1 100644
--- a/srcpkgs/dmd-bootstrap/template
+++ b/srcpkgs/dmd-bootstrap/template
@@ -21,6 +21,7 @@ checksum="
  7f4d84f2b5252c0cc33bffbb4de8aab9321df844b8512e27e90267cbb9bc7422
  57306f80a63b83b755043d05e85e83cf3178701c92d295c97d1a5a8be8ffce19"
 provides="d-compiler-${version}_${revision}"
+patch_args=-Np0
 
 post_extract() {
 	rm -rf dmd druntime phobos
diff --git a/srcpkgs/dmd2.081/template b/srcpkgs/dmd2.081/template
index 79aad0940085..f33ef534d0e7 100644
--- a/srcpkgs/dmd2.081/template
+++ b/srcpkgs/dmd2.081/template
@@ -24,6 +24,7 @@ provides="d-compiler-${version}_${revision}"
 conflicts="dmd-bootstrap"
 nopie=yes
 LDFLAGS="-lpthread"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _archbits=64;;
diff --git a/srcpkgs/dmd2.091/template b/srcpkgs/dmd2.091/template
index 72521df7cd3f..13e976b57a41 100644
--- a/srcpkgs/dmd2.091/template
+++ b/srcpkgs/dmd2.091/template
@@ -26,6 +26,7 @@ nopie=yes
 nocross=yes
 disable_parallel_build=yes
 LDFLAGS="-lpthread"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _archbits=64;;
diff --git a/srcpkgs/dmraid/template b/srcpkgs/dmraid/template
index 420749bc8aa6..5e51fa6f224b 100644
--- a/srcpkgs/dmraid/template
+++ b/srcpkgs/dmraid/template
@@ -17,6 +17,7 @@ distfiles="${homepage}/src/dmraid-${_distver}-${_patchver}.tar.bz2"
 checksum=93421bd169d71ff5e7d2db95b62b030bfa205a12010b6468dcdef80337d6fbd8
 disable_parallel_build=yes
 lib32disabled=yes
+patch_args=-Np0
 
 dmraid-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/dmtx-utils/template b/srcpkgs/dmtx-utils/template
index b251f0a2061b..a38d7cfcb776 100644
--- a/srcpkgs/dmtx-utils/template
+++ b/srcpkgs/dmtx-utils/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/dmtx/dmtx-utils"
 distfiles="https://github.com/dmtx/dmtx-utils/archive/v${version}/dmtx-utils-${version}.tar.gz"
 checksum=0d396ec14f32a8cf9e08369a4122a16aa2e5fa1675e02218f16f1ab777ea2a28
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/docbook-xsl-ns/template b/srcpkgs/docbook-xsl-ns/template
index 04b3c274e510..1b88e629d0a7 100644
--- a/srcpkgs/docbook-xsl-ns/template
+++ b/srcpkgs/docbook-xsl-ns/template
@@ -13,6 +13,7 @@ homepage="https://docbook.org/"
 distfiles="https://github.com/docbook/xslt10-stylesheets/releases/download/release/${version}/${wrksrc}.tar.bz2"
 checksum=316524ea444e53208a2fb90eeb676af755da96e1417835ba5f5eb719c81fa371
 xml_entries="nextCatalog /usr/share/xsl-ns/docbook/catalog.xml --"
+patch_args=-Np0
 
 do_install() {
 	local xslmods="assembly common eclipse epub epub3 fo highlighting html \
diff --git a/srcpkgs/docbook-xsl/template b/srcpkgs/docbook-xsl/template
index 5cf9b0d5fc98..260eee70d6f0 100644
--- a/srcpkgs/docbook-xsl/template
+++ b/srcpkgs/docbook-xsl/template
@@ -13,6 +13,7 @@ homepage="https://docbook.org/"
 distfiles="https://github.com/docbook/xslt10-stylesheets/releases/download/release/${version}/${wrksrc}.tar.bz2"
 checksum=ee8b9eca0b7a8f89075832a2da7534bce8c5478fc8fc2676f512d5d87d832102
 xml_entries="nextCatalog /usr/share/xsl/docbook/catalog.xml --"
+patch_args=-Np0
 
 do_install() {
 	local xslmods="assembly common eclipse epub epub3 fo highlighting html \
diff --git a/srcpkgs/dolphin-emu/template b/srcpkgs/dolphin-emu/template
index 729f66512d42..fdd4a636e7a5 100644
--- a/srcpkgs/dolphin-emu/template
+++ b/srcpkgs/dolphin-emu/template
@@ -22,6 +22,7 @@ homepage="http://dolphin-emu.org"
 distfiles="https://github.com/dolphin-emu/dolphin/archive/${_commit}.tar.gz"
 checksum=a7ce8390993b3309108dea8f23976b343d2d7cd527f3ded9ef4c2a0462c7f338
 nopie=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|aarch64*) ;;
diff --git a/srcpkgs/dovecot/template b/srcpkgs/dovecot/template
index 0222fd25026c..fddc5c1649db 100644
--- a/srcpkgs/dovecot/template
+++ b/srcpkgs/dovecot/template
@@ -21,6 +21,7 @@ homepage="https://dovecot.org/"
 distfiles="${homepage}/releases/2.3/${pkgname}-${version}.tar.gz"
 checksum=c8b3d7f3af1e558a3ff0f970309d4013a4d3ce136f8c02a53a3b05f345b9a34a
 keep_libtool_archives=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	_tsize=${XBPS_TARGET_WORDSIZE}
diff --git a/srcpkgs/doxygen/template b/srcpkgs/doxygen/template
index 051c1568bbb2..f86d771cb360 100644
--- a/srcpkgs/doxygen/template
+++ b/srcpkgs/doxygen/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.doxygen.org/"
 distfiles="http://doxygen.nl/files/doxygen-${version}.src.tar.gz"
 checksum=67aeae1be4e1565519898f46f1f7092f1973cce8a767e93101ee0111717091d1
+patch_args=-Np0
 
 build_options="wizard"
 desc_option_wizard="build Qt5 GUI configuration tool, doxywizard"
diff --git a/srcpkgs/dpdk/template b/srcpkgs/dpdk/template
index 0f74b4c99d64..acd23532f88c 100644
--- a/srcpkgs/dpdk/template
+++ b/srcpkgs/dpdk/template
@@ -18,6 +18,7 @@ distfiles="https://github.com/DPDK/${pkgname}/archive/v${version}.tar.gz"
 checksum=1ceff1a6f4f8d5f6f62c1682097249227ac5225ccd9638e0af09f5411c681038
 # import py3compat
 python_version=3
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	armv7l*) configure_args+=" -Dmachine=armv7-a";;
diff --git a/srcpkgs/dracut-crypt-ssh/template b/srcpkgs/dracut-crypt-ssh/template
index 1425d223052d..4a13f8ac5c1f 100644
--- a/srcpkgs/dracut-crypt-ssh/template
+++ b/srcpkgs/dracut-crypt-ssh/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/dracut-crypt-ssh/dracut-crypt-ssh"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=c50b57b16d4aea3707e1f3e86777fafdb1b3551f2f4b6c4de5576eeb3b2f6bbc
+patch_args=-Np0
 
 pre_configure() {
 	sed -i '111s/^/#/' configure
diff --git a/srcpkgs/dracut/template b/srcpkgs/dracut/template
index c8db2195c8a0..240e6661f2bf 100644
--- a/srcpkgs/dracut/template
+++ b/srcpkgs/dracut/template
@@ -17,6 +17,7 @@ checksum=d5a1b47cdb07919d8225d5b5f538e6ae604988f3df0afbde99a8dc775277b726
 subpackages="dracut-network"
 # Checks require distfiles come from a git repository
 make_check=no
+patch_args=-Np0
 
 make_dirs="
  /etc/dracut.conf.d 0755 root root
diff --git a/srcpkgs/drawterm/template b/srcpkgs/drawterm/template
index b871806e44e2..50dcbd25c798 100644
--- a/srcpkgs/drawterm/template
+++ b/srcpkgs/drawterm/template
@@ -11,6 +11,7 @@ license="LPL-1.02"
 homepage="http://drawterm.9front.org/"
 distfiles="https://code.9front.org/hg/${pkgname}/archive/${_hghash}.tar.gz"
 checksum=5740acc4f7eb8f0ea0524839847d993b7865d240070da69f7a28ca3b7aef6813
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	armv5*) CFLAGS+=" -DARMv5" ;;
diff --git a/srcpkgs/drbd-utils/template b/srcpkgs/drbd-utils/template
index 10574a2bee11..2b0963b34c1f 100644
--- a/srcpkgs/drbd-utils/template
+++ b/srcpkgs/drbd-utils/template
@@ -28,6 +28,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.drbd.org"
 distfiles="https://www.linbit.com/downloads/drbd/utils/${pkgname}-${version}.tar.gz"
 checksum=1102e2a2001a45685c2f4ce5cb14e5a8a099044f53389d38480b3a88f5db3fd1
+patch_args=-Np0
 
 # XXX mirror which is reachable from musl builders
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/dstat/template b/srcpkgs/dstat/template
index 9e9d9d3217ac..d23277b42bd1 100644
--- a/srcpkgs/dstat/template
+++ b/srcpkgs/dstat/template
@@ -11,6 +11,7 @@ homepage="http://dag.wiee.rs/home-made/dstat/"
 distfiles="https://github.com/dagwieers/dstat/archive/v${version}.tar.gz"
 checksum=4fbd58f3461c86d09a3ab97472aa204de37aa33d31a0493a3e5ed86a2045abea
 python_version="3"
+patch_args=-Np0
 
 do_install() {
 	make install DESTDIR=$DESTDIR
diff --git a/srcpkgs/dua-cli/template b/srcpkgs/dua-cli/template
index 4215cb087738..ef71afecf4d8 100644
--- a/srcpkgs/dua-cli/template
+++ b/srcpkgs/dua-cli/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/Byron/dua-cli"
 distfiles="https://github.com/Byron/dua-cli/archive/v${version}.tar.gz"
 checksum=2af2408eecca4a1a04d0d395322f110b97e49d5366eb435e2e0e36b8b92684bb
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/dumpet/template b/srcpkgs/dumpet/template
index 35204d8aa5e2..866d90e01bcc 100644
--- a/srcpkgs/dumpet/template
+++ b/srcpkgs/dumpet/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://tracker.debian.org/pkg/dumpet"
 distfiles="http://http.debian.net/debian/pool/main/d/dumpet/dumpet_${version}.orig.tar.bz2"
 checksum=2cc1fa3a1b06f885e4524d1be80bdacc5b6a55057d0577262f2f5186b49a4da3
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC CFLAGS="$CFLAGS -I${XBPS_CROSS_BASE}/usr/include/libxml2" \
diff --git a/srcpkgs/dunelegacy/template b/srcpkgs/dunelegacy/template
index b9373d6d47d0..2f87366e852f 100644
--- a/srcpkgs/dunelegacy/template
+++ b/srcpkgs/dunelegacy/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://dunelegacy.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}-src.tar.bz2"
 checksum=4740df9e94712b34f5d6fa1ca3c24658c4808b40431aa156ed66c318be9f4de8
+patch_args=-Np0
 
 post_install() {
 	vinstall dunelegacy.desktop 644 usr/share/applications
diff --git a/srcpkgs/duplicity/template b/srcpkgs/duplicity/template
index 85bfe1316380..5ca7c963de67 100644
--- a/srcpkgs/duplicity/template
+++ b/srcpkgs/duplicity/template
@@ -13,6 +13,7 @@ homepage="http://duplicity.nongnu.org/"
 changelog="http://duplicity.nongnu.org/vers8/CHANGELOG.md"
 distfiles="http://launchpad.net/duplicity/${version%.*}-series/${version}/+download/duplicity-${version}.tar.gz"
 checksum=2643fea0f52920a0fb114069c78389f9621f1c24db7f26bda77bbc239b01ae53
+patch_args=-Np0
 
 do_check() {
 	# Disable as tests don't work
diff --git a/srcpkgs/dust3d/template b/srcpkgs/dust3d/template
index 9ad934499983..ae6182905ced 100644
--- a/srcpkgs/dust3d/template
+++ b/srcpkgs/dust3d/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://dust3d.org/"
 distfiles="https://github.com/huxingyi/dust3d/archive/${_version}.tar.gz"
 checksum=7c29e1153e6b568459ab8a8fadbec3398a43b5d60f295018c3f0cdcad2d2b4b1
+patch_args=-Np0
 
 do_install() {
 	vbin dust3d
diff --git a/srcpkgs/dvd+rw-tools/template b/srcpkgs/dvd+rw-tools/template
index b3c996b8fc2f..29fac22fb794 100644
--- a/srcpkgs/dvd+rw-tools/template
+++ b/srcpkgs/dvd+rw-tools/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://fy.chalmers.se/~appro/linux/DVD+RW/"
 distfiles="http://fy.chalmers.se/~appro/linux/DVD+RW/tools/${pkgname}-${version}.tar.gz"
 checksum=f8d60f822e914128bcbc5f64fbe3ed131cbff9045dca7e12c5b77b26edde72ca
+patch_args=-Np0
 
 do_install() {
 	vbin growisofs
diff --git a/srcpkgs/dvdauthor/template b/srcpkgs/dvdauthor/template
index c4a81cd4aafe..499be371af64 100644
--- a/srcpkgs/dvdauthor/template
+++ b/srcpkgs/dvdauthor/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://dvdauthor.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/dvdauthor/dvdauthor-${version}.tar.gz"
 checksum="3020a92de9f78eb36f48b6f22d5a001c47107826634a785a62dfcd080f612eb7"
+patch_args=-Np0
 
 build_options="NTSC PAL"
 build_options_default="PAL"
diff --git a/srcpkgs/e2fsprogs/template b/srcpkgs/e2fsprogs/template
index ada38513b984..3ba60e34d293 100644
--- a/srcpkgs/e2fsprogs/template
+++ b/srcpkgs/e2fsprogs/template
@@ -19,6 +19,7 @@ homepage="http://e2fsprogs.sourceforge.net/"
 distfiles="${KERNEL_SITE}/kernel/people/tytso/e2fsprogs/v${version}/e2fsprogs-${version}.tar.xz"
 checksum=23aa093295c94e71ef1be490c4004871c5b01d216a8cb4d111fa6c0aac354168
 conf_files="/etc/mke2fs.conf /etc/e2scrub.conf"
+patch_args=-Np0
 
 do_check() {
 	ln -sfv /tools/lib/lib{blk,uu}id.so.1 lib
diff --git a/srcpkgs/eb/template b/srcpkgs/eb/template
index 9e71add969a7..6a2c71df08e9 100644
--- a/srcpkgs/eb/template
+++ b/srcpkgs/eb/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/2ion/eb"
 distfiles="https://github.com/2ion/eb/archive/${version}.tar.gz"
 checksum=16274f4d5ec34cc37ed308927390a1d0d09e0e6a2b35fbff7d17aacca0524a37
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/eboard/template b/srcpkgs/eboard/template
index 187fdd3651bf..c6d7fa2a681b 100644
--- a/srcpkgs/eboard/template
+++ b/srcpkgs/eboard/template
@@ -12,6 +12,7 @@ homepage="http://www.bergo.eng.br/eboard"
 distfiles="https://github.com/fbergo/eboard/archive/v${version}.tar.gz"
 checksum=2a1ba23a27c94ee4ec167bb31ab7dd6eedf148e139c9a96e8cb5ac36ec8423c1
 broken="ELF in /usr/share"
+patch_args=-Np0
 
 pre_install() {
 	mkdir -p "${DESTDIR}/usr/share/eboard"
diff --git a/srcpkgs/ecl/template b/srcpkgs/ecl/template
index a4e160c15bed..06d2acb9333d 100644
--- a/srcpkgs/ecl/template
+++ b/srcpkgs/ecl/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="https://common-lisp.net/project/ecl/"
 distfiles="https://common-lisp.net/project/ecl/static/files/release/ecl-${version}.tgz"
 checksum=76a585c616e8fa83a6b7209325a309da5bc0ca68e0658f396f49955638111254
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# Depend on system ecl
diff --git a/srcpkgs/ecryptfs-utils/template b/srcpkgs/ecryptfs-utils/template
index 6bdc07b97c32..72e1050a2516 100644
--- a/srcpkgs/ecryptfs-utils/template
+++ b/srcpkgs/ecryptfs-utils/template
@@ -17,6 +17,7 @@ homepage="http://ecryptfs.org/"
 distfiles="http://launchpad.net/ecryptfs/trunk/${version}/+download/${pkgname}_${version}.orig.tar.gz"
 checksum=112cb3e37e81a1ecd8e39516725dec0ce55c5f3df6284e0f4cc0f118750a987f
 lib32disabled=yes
+patch_args=-Np0
 
 CPPFLAGS="-D_FILE_OFFSET_BITS=64 -I${XBPS_CROSS_BASE}/usr/include/python2.7"
 
diff --git a/srcpkgs/efibootmgr/template b/srcpkgs/efibootmgr/template
index bd2e88bbbeac..7acb1f7500b6 100644
--- a/srcpkgs/efibootmgr/template
+++ b/srcpkgs/efibootmgr/template
@@ -11,6 +11,7 @@ homepage="https://github.com/rhinstaller/efibootmgr"
 distfiles="https://github.com/rhinstaller/efibootmgr/releases/download/${version}/${pkgname}-${version}.tar.bz2"
 distfiles="https://github.com/rhboot/efibootmgr/archive/${version}.tar.gz"
 checksum=22a95ebe0d5c9fb2915b3a100450f8f37484d1dbb8b296f55b343cc84f10397d
+patch_args=-Np0
 
 conf_files="/etc/default/efibootmgr-kernel-hook"
 
diff --git a/srcpkgs/efl/template b/srcpkgs/efl/template
index 8786d5d94edf..498040008735 100644
--- a/srcpkgs/efl/template
+++ b/srcpkgs/efl/template
@@ -56,6 +56,7 @@ changelog="https://git.enlightenment.org/core/efl.git/plain/NEWS"
 distfiles="https://download.enlightenment.org/rel/libs/efl/efl-${version}.tar.xz"
 checksum=351ca0211ca000234527a503585f039f985607ec9439e34b49d8b8bbf35a7e6b
 make_check=extended
+patch_args=-Np0
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -Dbuild-tests=true"
diff --git a/srcpkgs/electron10/template b/srcpkgs/electron10/template
index 0f2c83f6f483..9d6d3d0ef702 100644
--- a/srcpkgs/electron10/template
+++ b/srcpkgs/electron10/template
@@ -33,6 +33,7 @@ distfiles="https://github.com/electron/electron/archive/v$version.tar.gz>electro
 checksum="d75b78107656ef854cc99a967b225eeb1e5989c0a1307d9efad3f8039d387cd8
  e018547e54566410fb365d9f3dae10037c30fca5debe6ba8baceef3ad3b03d28
  dcd0a1e619ff326399ca8fd87f61c255f4d1e9bff47860064993f01e4ff37fe1"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*-musl) makedepends+=" libucontext-devel" ;;
diff --git a/srcpkgs/electron12/template b/srcpkgs/electron12/template
index 51c50b0f74ac..3f236d8decdb 100644
--- a/srcpkgs/electron12/template
+++ b/srcpkgs/electron12/template
@@ -34,6 +34,7 @@ distfiles="https://github.com/electron/electron/archive/v$version.tar.gz>electro
 checksum="1b4073baa3e93bb410591688b7ca6e59201ae9c8cf18f05e5a05ecfd7ffebfc8
  1a75ea6aeb98f2d3b6feae1fbf5692679e93d5b7631bc7c762dd873499deda5b
  bcdf869b0743405515ee897b1047b5e851a717e426b4974d26537c9b10dfd53a"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*-musl) makedepends+=" libucontext-devel" ;;
diff --git a/srcpkgs/elogind/template b/srcpkgs/elogind/template
index 8e9fb0ef6c81..bf02b6d0f530 100644
--- a/srcpkgs/elogind/template
+++ b/srcpkgs/elogind/template
@@ -22,6 +22,7 @@ checksum=dd2fcf22a89a078cad22e633d2f14a4cc9f4a9c8bae25c0e39fc4aec3e273bc9
 conf_files="/etc/elogind/*.conf"
 # tests fail differently due to containerization and kernel features
 make_check=ci-skip
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" -Dutmp=false"
diff --git a/srcpkgs/emerald/template b/srcpkgs/emerald/template
index 736828d1e670..e486c3a5757c 100644
--- a/srcpkgs/emerald/template
+++ b/srcpkgs/emerald/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/compiz-reloaded"
 distfiles="https://github.com/compiz-reloaded/emerald/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=53112b557c0d726ad75450b69df1649412ab5fcdf6c0827e383889f58bf437b1
+patch_args=-Np0
 
 pre_configure() {
 	mkdir -p m4
diff --git a/srcpkgs/endless-sky-gl21/template b/srcpkgs/endless-sky-gl21/template
index 5bb8355dc570..fe920ce65569 100644
--- a/srcpkgs/endless-sky-gl21/template
+++ b/srcpkgs/endless-sky-gl21/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/SolraBizna/endless-sky"
 distfiles="https://github.com/SolraBizna/endless-sky/archive/${_commit}.tar.gz"
 checksum=46918d0cc35aaeb1219194099223e3338245aa04aa3f29fd76e3376bf5779376
+patch_args=-Np0
 
 endless-sky-gl21-data_package() {
 	short_desc+=" - data files"
diff --git a/srcpkgs/engrampa/template b/srcpkgs/engrampa/template
index ac402d6fb4a9..3bf7459fc214 100644
--- a/srcpkgs/engrampa/template
+++ b/srcpkgs/engrampa/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=ee280d288c974732ec7bc2d1c3e18fa563b33a30f3e4cb3e976ebc71be6c4674
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/enigma/template b/srcpkgs/enigma/template
index d04fa5112492..861fec84d449 100644
--- a/srcpkgs/enigma/template
+++ b/srcpkgs/enigma/template
@@ -12,6 +12,7 @@ homepage="http://www.nongnu.org/enigma/"
 distfiles="${SOURCEFORGE_SITE}/enigma-game/Release%20${version}/${pkgname}-${version}.tar.gz"
 checksum=d872cf067d8eb560d3bb1cb17245814bc56ac3953ae1f12e2229c8eb6f82ce01
 replaces="enigma-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/SDL"
 
diff --git a/srcpkgs/enlightenment/template b/srcpkgs/enlightenment/template
index db9c886dc920..2ffabb259e5d 100644
--- a/srcpkgs/enlightenment/template
+++ b/srcpkgs/enlightenment/template
@@ -20,6 +20,7 @@ checksum=be18e2f18d6c0b058f633e769863d3cbc4c07b629058ae670dec74cd7906dff1
 lib32disabled=yes
 build_options="wayland"
 build_options_default="wayland"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" -a "$build_option_wayland" ]; then
 	hostmakedepends+=" wayland-devel"
diff --git a/srcpkgs/entr/template b/srcpkgs/entr/template
index fa608a4d0ddd..0e8f027eabe5 100644
--- a/srcpkgs/entr/template
+++ b/srcpkgs/entr/template
@@ -10,6 +10,7 @@ homepage="http://entrproject.org"
 changelog="https://raw.githubusercontent.com/eradman/entr/master/NEWS"
 distfiles="$homepage/code/$pkgname-$version.tar.gz"
 checksum=e256a4d2fbe46f6132460833ba447e65d7f35ba9d0b265e7c4150397cc4405a2
+patch_args=-Np0
 
 post_extract() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/enyo-doom/template b/srcpkgs/enyo-doom/template
index 9e900f2799a0..d529a514908e 100644
--- a/srcpkgs/enyo-doom/template
+++ b/srcpkgs/enyo-doom/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.com/sdcofer70/enyo-doom"
 distfiles="https://gitlab.com/sdcofer70/enyo-doom/-/archive/${version}/enyo-doom-${version}.tar.bz2"
 checksum=03d490081753dfd1d40b7cc8142b8f0e7642bad6f3d724f9ba9cfad0253f1a34
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/epdfview/template b/srcpkgs/epdfview/template
index 2c6b5774b49d..06d6a4fd4420 100644
--- a/srcpkgs/epdfview/template
+++ b/srcpkgs/epdfview/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://freshmeat.sourceforge.net/projects/epdfview"
 distfiles="http://anduin.linuxfromscratch.org/BLFS/epdfview/epdfview-${version}.tar.bz2"
 checksum=948648ae7c9d7b3b408d738bd4f48d87375b1196cae1129d6b846a8de0f2f8f0
+patch_args=-Np0
 
 post_install() {
 	for f in 24 32 48; do
diff --git a/srcpkgs/espeakup/template b/srcpkgs/espeakup/template
index 6cbc9d0da552..569162c6857e 100644
--- a/srcpkgs/espeakup/template
+++ b/srcpkgs/espeakup/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/williamh/espeakup"
 distfiles="https://github.com/williamh/espeakup/archive/v${version}.tar.gz"
 checksum="4de284e30b6bdb0f9dee9c8ea02d13a3d20a61415b812338446b8b381e997ef4"
+patch_args=-Np0
 
 post_install() {
 	vsv espeakup
diff --git a/srcpkgs/eukleides/template b/srcpkgs/eukleides/template
index a955ef5bc911..992cfa8e25b6 100644
--- a/srcpkgs/eukleides/template
+++ b/srcpkgs/eukleides/template
@@ -12,6 +12,7 @@ homepage="http://www.eukleides.org/"
 distfiles="http://www.eukleides.org/files/${pkgname}-${version}.tar.bz2"
 checksum=18c489460cb2cb98f4ea9c0187519ef77b4422117fd43bcd4e4836580ef40c69
 disable_parallel_build=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/evemu/template b/srcpkgs/evemu/template
index e65f2f63ac98..bc53c54383e9 100644
--- a/srcpkgs/evemu/template
+++ b/srcpkgs/evemu/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-only, MIT"
 homepage="https://freedesktop.org/wiki/Evemu/"
 distfiles=${FREEDESKTOP_SITE}/evemu/evemu-$version.tar.xz
 checksum=78c9400d55eeeb5ab75161360543f9376438c4da4934cb34cdda5b46021ae379
+patch_args=-Np0
 
 post_install() {
 	sed -n '/Copyright/,/IN THE SOFTWARE/p' src/evemu.c >LICENSE
diff --git a/srcpkgs/evolution-data-server/template b/srcpkgs/evolution-data-server/template
index 136c47804c04..b4cc9ccbab4b 100644
--- a/srcpkgs/evolution-data-server/template
+++ b/srcpkgs/evolution-data-server/template
@@ -20,6 +20,7 @@ homepage="https://wiki.gnome.org/Apps/Evolution"
 changelog="https://raw.githubusercontent.com/GNOME/evolution-data-server/gnome-3-38/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=ec82951639f32a5cece80a8b0b9aa3f66b7d318e3ee2c1c35234f2e2bde8a418
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/evolution/template b/srcpkgs/evolution/template
index 1b3b6fa7e9f4..84071a14f9af 100644
--- a/srcpkgs/evolution/template
+++ b/srcpkgs/evolution/template
@@ -22,6 +22,7 @@ distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=9b4c31352332fb9dc0ff23625ba1552c13808f1c9ba019496b750be87e07a5fd
 shlib_provides="libevolution-calendar.so libevolution-util.so libemail-engine.so
  libevolution-mail.so libevolution-shell.so libevolution-mail-formatter.so"
+patch_args=-Np0
 
 evolution-devel_package() {
 	depends="webkit2gtk-devel gtk+3-devel libglib-devel evolution-data-server-devel
diff --git a/srcpkgs/evtest/template b/srcpkgs/evtest/template
index 1feed55a9d6c..ee6bca695ac8 100644
--- a/srcpkgs/evtest/template
+++ b/srcpkgs/evtest/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://cgit.freedesktop.org/evtest/"
 distfiles="https://cgit.freedesktop.org/evtest/snapshot/evtest-${version}.tar.xz"
 checksum=e49f1f160b30c8f7c2a4caef5ab655f1caf816483d19fdedd6db2d251d7ab80e
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ex-vi/template b/srcpkgs/ex-vi/template
index ea54bb437895..84e0dbe713d1 100644
--- a/srcpkgs/ex-vi/template
+++ b/srcpkgs/ex-vi/template
@@ -15,6 +15,7 @@ distfiles="${SOURCEFORGE_SITE}/$pkgname/ex-${version}.tar.bz2"
 checksum=da4be7cf67e94572463b19e56850aa36dc4e39eb0d933d3688fe8574bb632409
 CFLAGS=-I.
 disable_parallel_build=yes
+patch_args=-Np0
 
 alternatives="
  vi:ex:/usr/bin/ex-ex
diff --git a/srcpkgs/exfat-dkms/template b/srcpkgs/exfat-dkms/template
index f0d28ef17dfb..1f590f1e8c90 100644
--- a/srcpkgs/exfat-dkms/template
+++ b/srcpkgs/exfat-dkms/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/dorimanx/exfat-nofuse"
 distfiles="https://github.com/dorimanx/exfat-nofuse/archive/${_commit}.tar.gz"
 checksum=b88a98f0a7e1b987465f5ccfcafb384b293506c7fec9d3b91b803e0fe5b16e0a
+patch_args=-Np0
 
 dkms_modules="exfat ${version}"
 depends="dkms"
diff --git a/srcpkgs/exo/template b/srcpkgs/exo/template
index 65ff908fb98b..e872f31c77b8 100644
--- a/srcpkgs/exo/template
+++ b/srcpkgs/exo/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://xfce.org/"
 distfiles="https://archive.xfce.org/src/xfce/exo/${version%.*}/exo-${version}.tar.bz2"
 checksum=4e89f5536afbf1cb9191cceb720fb2764df1a4fae3459512b7320841ab5a9e9d
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/expect/template b/srcpkgs/expect/template
index 2d0bdbd4e44f..59a7d2c99aa9 100644
--- a/srcpkgs/expect/template
+++ b/srcpkgs/expect/template
@@ -14,6 +14,7 @@ license="Public Domain"
 homepage="http://www.nist.gov/el/msid/expect.cfm"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/Expect/${version}/${pkgname}${version}.tar.gz"
 checksum=49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34
+patch_args=-Np0
 
 alternatives="
  mkpasswd:mkpasswd:/usr/bin/expect-mkpasswd
diff --git a/srcpkgs/extra-cmake-modules/template b/srcpkgs/extra-cmake-modules/template
index 1723115fb094..ffc5946416c3 100644
--- a/srcpkgs/extra-cmake-modules/template
+++ b/srcpkgs/extra-cmake-modules/template
@@ -13,6 +13,7 @@ homepage="https://invent.kde.org/frameworks/extra-cmake-modules"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=5972ec6d78c3e95ab9cbecdb0661c158570e868466357c5cec2b63a4251ecce4
 python_version=3
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING-CMAKE-SCRIPTS
diff --git a/srcpkgs/faad2/template b/srcpkgs/faad2/template
index 33158709e655..e2e9b2ff1243 100644
--- a/srcpkgs/faad2/template
+++ b/srcpkgs/faad2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.audiocoding.com/"
 distfiles="https://github.com/knik0/faad2/archive/${version//./_}.tar.gz"
 checksum=0c6d9636c96f95c7d736f097d418829ced8ec6dbd899cc6cc82b728480a84bfb
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -vfi
diff --git a/srcpkgs/fake-hwclock/template b/srcpkgs/fake-hwclock/template
index 5e69b6e020e8..0a90feae5d28 100644
--- a/srcpkgs/fake-hwclock/template
+++ b/srcpkgs/fake-hwclock/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="https://tracker.debian.org/pkg/fake-hwclock"
 distfiles="${DEBIAN_SITE}/main/f/${pkgname}/${pkgname}_${version}.tar.xz"
 checksum=02a825f7460ab06b370c203250606c67b0effffa1645a4a4f7ff3928eec4957e
+patch_args=-Np0
 
 conf_files="/etc/default/fake-hwclock"
 
diff --git a/srcpkgs/fakeroot/template b/srcpkgs/fakeroot/template
index f9d2cf9bb085..cae58c1efc56 100644
--- a/srcpkgs/fakeroot/template
+++ b/srcpkgs/fakeroot/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://salsa.debian.org/clint/fakeroot"
 distfiles="${DEBIAN_SITE}/main/f/fakeroot/${pkgname}_${version}.orig.tar.gz"
 checksum=8e903683357f7f5bcc31b879fd743391ad47691d4be33d24a76be3b6c21e956c
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/falkon/template b/srcpkgs/falkon/template
index 1a5eb3cd60bc..4727e1fb6cc2 100644
--- a/srcpkgs/falkon/template
+++ b/srcpkgs/falkon/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/KDE/falkon"
 distfiles="${KDE_SITE}/falkon/${version%.*}/falkon-${version}.tar.xz"
 checksum=ce743cd80c0e2d525a784e29c9b487f73480119b0567f9ce8ef1f44cca527587
+patch_args=-Np0
 
 LDFLAGS="-Wl,--no-fatal-warnings"
 
diff --git a/srcpkgs/farstream/template b/srcpkgs/farstream/template
index 6162c2966a56..470b3cb4f761 100644
--- a/srcpkgs/farstream/template
+++ b/srcpkgs/farstream/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.freedesktop.org/wiki/Software/Farstream"
 distfiles="${FREEDESKTOP_SITE}/farstream/releases/$pkgname/$pkgname-$version.tar.gz"
 checksum=cb7d112433cf7c2e37a8ec918fb24f0ea5cb293cfa1002488e431de26482f47b
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/fastd/template b/srcpkgs/fastd/template
index d07de67b11dc..e03c1838342b 100644
--- a/srcpkgs/fastd/template
+++ b/srcpkgs/fastd/template
@@ -17,6 +17,7 @@ conf_files="
  /etc/fastd/fastd.conf"
 make_dirs="/etc/fastd/peers	755	root 	root"
 CFLAGS="-I$XBPS_CROSS_BASE/usr/include/sodium"
+patch_args=-Np0
 
 pre_configure() {
 	# remove ssse3 requirement to support older AMD CPUs.
diff --git a/srcpkgs/faust/template b/srcpkgs/faust/template
index 03b44b2f2580..bac06eafa812 100644
--- a/srcpkgs/faust/template
+++ b/srcpkgs/faust/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://faust.grame.fr/"
 distfiles=https://github.com/grame-cncm/faust/releases/download/${version}/${pkgname}-${version}.tar.gz
 checksum="6cf64b8ee92c2db74d7d83d726b0ecb6f7e141deeadf4cd40c60e467893e0bfc"
+patch_args=-Np0
 
 # Android stuffs, used by the 'faust2android' script.
 nostrip_files="libsndfile.so "
diff --git a/srcpkgs/fbida/template b/srcpkgs/fbida/template
index 347632343733..46290f5cb5d4 100644
--- a/srcpkgs/fbida/template
+++ b/srcpkgs/fbida/template
@@ -18,6 +18,7 @@ checksum=95b7c01556cb6ef9819f358b314ddfeb8a4cbe862b521a3ed62f03d163154438
 depends="fbida-exiftran-${version}_${revision} fbida-fbi-${version}_${revision}
  fbida-fbpdf-${version}_${revision} $(vopt_if ida fbida-ida-${version}_${revision})"
 nocross="Requires cairo-gl.pc for the target which Void does not have"
+patch_args=-Np0
 
 build_options="ida"
 desc_option_ida="Build ida motif application (needs motif-devel)"
diff --git a/srcpkgs/fbreader/template b/srcpkgs/fbreader/template
index 0ffe6f5aeeab..1dcbe6f1c552 100644
--- a/srcpkgs/fbreader/template
+++ b/srcpkgs/fbreader/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.fbreader.org/"
 distfiles="http://www.fbreader.org/files/desktop/${pkgname}-sources-${version}.tgz"
 checksum=3d7c31d5ea314589d2a963290ad16f4d3d631a41e802b8b39f8be0c9f71eb8e9
+patch_args=-Np0
 
 do_build() {
 	sed -e "s:-llinebreak:-lunibreak:" -i makefiles/config.mk zlibrary/text/Makefile
diff --git a/srcpkgs/fbterm/template b/srcpkgs/fbterm/template
index f97ecc509dc7..47a4ba3ff5bd 100644
--- a/srcpkgs/fbterm/template
+++ b/srcpkgs/fbterm/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/izmntuk/fbterm"
 distfiles="https://github.com/izmntuk/${pkgname}/archive/v${version%.*}.tar.gz"
 checksum=68e9742b23d6f143d809a5930f5f22c7e55d7c14a4ab2c8a842e0b5c27b1f863
+patch_args=-Np0
 
 post_configure() {
 	sed -i "s,tic,& -o $DESTDIR/usr/share/terminfo," terminfo/Makefile
diff --git a/srcpkgs/fbv/template b/srcpkgs/fbv/template
index 0df248768ceb..da3387dc2b63 100644
--- a/srcpkgs/fbv/template
+++ b/srcpkgs/fbv/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.eclis.ch/fbv/"
 distfiles="http://s-tech.elsat.net.pl/fbv/fbv-${version}.tar.gz"
 checksum=9b55b9dafd5eb01562060d860e267e309a1876e8ba5ce4d3303484b94129ab3c
+patch_args=-Np0
 
 do_configure() {
 	sed -i '/^CFLAGS/d' Makefile
diff --git a/srcpkgs/fbxkb/template b/srcpkgs/fbxkb/template
index 1356d32df971..123e36a95f25 100644
--- a/srcpkgs/fbxkb/template
+++ b/srcpkgs/fbxkb/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://fbxkb.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tgz"
 checksum="fcbaf4ed9a70f58ea1316b19da74e2ca8b3fb0e2de5a73c849317589ce840ef2"
+patch_args=-Np0
 
 pre_build() {
 # Substitute compiler,
diff --git a/srcpkgs/fcitx-anthy/template b/srcpkgs/fcitx-anthy/template
index 02150ea5ca5d..42a048057b17 100644
--- a/srcpkgs/fcitx-anthy/template
+++ b/srcpkgs/fcitx-anthy/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://fcitx-im.org/"
 distfiles="https://github.com/fcitx/fcitx-anthy/archive/${version}.tar.gz"
 checksum=dcb561138508757f37da8a85bdf296368b592649b15ab76e8706db47cc25402a
+patch_args=-Np0
 
 CXXFLAGS='-D_GNU_SOURCE'
 
diff --git a/srcpkgs/fcitx/template b/srcpkgs/fcitx/template
index 00675b1fedc0..d562bf7c9434 100644
--- a/srcpkgs/fcitx/template
+++ b/srcpkgs/fcitx/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, MIT"
 homepage="https://fcitx-im.org/"
 distfiles="http://download.fcitx-im.org/fcitx/fcitx-${version}_dict.tar.xz"
 checksum=bc3515cba0561546fe02dae81391d4a03e0e79a2d668aa794cd3a377284033c6
+patch_args=-Np0
 
 hostmakedepends="pkg-config doxygen extra-cmake-modules glib-devel"
 makedepends="iso-codes gettext-devel enchant-devel libxml2-devel
diff --git a/srcpkgs/fcron/template b/srcpkgs/fcron/template
index 11efd44b0bbd..ffb03fb0fceb 100644
--- a/srcpkgs/fcron/template
+++ b/srcpkgs/fcron/template
@@ -31,6 +31,7 @@ license="GPL-2.0-or-later"
 homepage="http://fcron.free.fr"
 distfiles="$homepage/archives/$pkgname-$version.src.tar.gz"
 checksum=9aead33a0926e2eec123698c502114c6d67b483fe1ec232969fae6809b0bab60
+patch_args=-Np0
 
 alternatives="
  crond:crond:/etc/sv/fcron
diff --git a/srcpkgs/ferm/template b/srcpkgs/ferm/template
index 3b623d0dd0cc..0183d4c4bee6 100644
--- a/srcpkgs/ferm/template
+++ b/srcpkgs/ferm/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://ferm.foo-projects.org/"
 distfiles="http://ferm.foo-projects.org/download/${version:0:3}/ferm-${version}.tar.xz"
 checksum=689541465e7c073cbd604c9cd18f113c31c0b41bb12614726a59b17e44058885
+patch_args=-Np0
 
 do_install() {
 	make install PREFIX=${DESTDIR}/usr
diff --git a/srcpkgs/ffmpeg/template b/srcpkgs/ffmpeg/template
index e6667478fe13..50ab8e58c2b5 100644
--- a/srcpkgs/ffmpeg/template
+++ b/srcpkgs/ffmpeg/template
@@ -10,6 +10,7 @@ homepage="https://www.ffmpeg.org"
 changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="${homepage}/releases/ffmpeg-${version}.tar.xz"
 checksum=46e4e64f1dd0233cbc0934b9f1c0da676008cad34725113fb7f802cfa84ccddb
+patch_args=-Np0
 
 hostmakedepends="pkg-config perl yasm"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
diff --git a/srcpkgs/fig2dev/template b/srcpkgs/fig2dev/template
index 87bdbd3d8ad6..95003a4f225b 100644
--- a/srcpkgs/fig2dev/template
+++ b/srcpkgs/fig2dev/template
@@ -13,6 +13,7 @@ homepage="http://www.xfig.org/"
 distfiles="${SOURCEFORGE_SITE}/mcj/${pkgname}-${version}.tar.xz"
 checksum=6336ac492d0f71dfb7a1dd8f4d78eae17aa57a34f743d4e5ba9814991c2da7ae
 replaces="transfig>=0"
+patch_args=-Np0
 
 post_install() {
 	sed '/^$/q' <fig2dev/fig2dev.c >LICENSE
diff --git a/srcpkgs/filezilla/template b/srcpkgs/filezilla/template
index b115f782ed4c..00f456085434 100644
--- a/srcpkgs/filezilla/template
+++ b/srcpkgs/filezilla/template
@@ -16,6 +16,7 @@ homepage="https://filezilla-project.org"
 changelog="https://svn.filezilla-project.org/filezilla/FileZilla3/trunk/NEWS?view=co"
 distfiles="https://download.filezilla-project.org/client/FileZilla_${version}_src.tar.bz2"
 checksum=703a199c13bb681d6eb0e3fe6e1cc9d0b690016acdd47b26bd12a2a95ff4aa6a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" wxWidgets-gtk3-devel xdg-utils"
diff --git a/srcpkgs/fingerprint-gui/template b/srcpkgs/fingerprint-gui/template
index 08d226569eb8..52f7084d1d9a 100644
--- a/srcpkgs/fingerprint-gui/template
+++ b/srcpkgs/fingerprint-gui/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.ullrich-online.cc/fingerprint/"
 distfiles="https://github.com/maksbotan/${pkgname}/archive/v${version}-qt5.tar.gz"
 checksum=a28d43e7e505f8ed15c8360bd91603eaf3206c225a542d0116669caafd89154c
+patch_args=-Np0
 
 # build system deals poorly with cross headers so include
 # them manually
diff --git a/srcpkgs/firefox-esr/template b/srcpkgs/firefox-esr/template
index e4ea57638c2c..38251ae0a73c 100644
--- a/srcpkgs/firefox-esr/template
+++ b/srcpkgs/firefox-esr/template
@@ -25,6 +25,7 @@ distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${versi
 checksum=979141a6d94bbe303815e9cd1ab1d23b5ce2f9c77d9d5486871eaecf0ea2df40
 lib32disabled=yes
 conflicts="firefox>=0"
+patch_args=-Np0
 
 build_options="alsa jack dbus pulseaudio xscreensaver sndio wayland"
 build_options_default="alsa jack dbus pulseaudio xscreensaver sndio wayland"
diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template
index 3ce8a92ecbb0..01dfcc17657c 100644
--- a/srcpkgs/firefox/template
+++ b/srcpkgs/firefox/template
@@ -12,6 +12,7 @@ license="MPL-2.0, GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.mozilla.org/firefox/"
 distfiles="${MOZILLA_SITE}/${pkgname}/releases/${version}/source/${pkgname}-${version}.source.tar.xz"
 checksum=db43d7d5796455051a5b847f6daa3423393803c9288c8b6d7f1186f5e2e0a90a
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/firejail/template b/srcpkgs/firejail/template
index 6b6a27403ec4..ab0544ef2e04 100644
--- a/srcpkgs/firejail/template
+++ b/srcpkgs/firejail/template
@@ -14,5 +14,6 @@ changelog="https://github.com/netblue30/firejail/raw/master/RELNOTES"
 distfiles="https://github.com/netblue30/firejail/archive/${version}.tar.gz"
 checksum=17a20c4c9f114aa8fdab467cecb60309f599ad08b4bbb3e751c992d98a95ac18
 conf_files="/etc/firejail/* /etc/apparmor.d/local/firejail-default"
+patch_args=-Np0
 
 nocross=yes
diff --git a/srcpkgs/flatpak-builder/template b/srcpkgs/flatpak-builder/template
index 208481c58b25..6435f58c3f6e 100644
--- a/srcpkgs/flatpak-builder/template
+++ b/srcpkgs/flatpak-builder/template
@@ -14,6 +14,7 @@ distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.xz
 checksum=4780c1b8e0838ffb64e9639bd7801417964fd818c7c6d5e9afca4d5511ded2c8
 # Tests expects a Debian derivate hosts to build a flatpak container from.
 make_check=no
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" flatpak-devel"
diff --git a/srcpkgs/flatpak/template b/srcpkgs/flatpak/template
index da8807535ee1..d3bfe4578455 100644
--- a/srcpkgs/flatpak/template
+++ b/srcpkgs/flatpak/template
@@ -23,6 +23,7 @@ homepage="https://flatpak.org/"
 changelog="https://github.com/flatpak/flatpak/raw/master/NEWS"
 distfiles="https://github.com/flatpak/flatpak/releases/download/${version}/flatpak-${version}.tar.xz"
 checksum=db152739d072f8ff299e4e888d8963a1b4538da7b10e0b86525be438f2e1dde4
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/flex/template b/srcpkgs/flex/template
index f07dee0ee482..60b111758bdc 100644
--- a/srcpkgs/flex/template
+++ b/srcpkgs/flex/template
@@ -13,6 +13,7 @@ license="custom:flex"
 homepage="https://github.com/westes/flex"
 distfiles="https://github.com/westes/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995
+patch_args=-Np0
 
 # Required to enable the definition of reallocarray() in stdlib.h
 CFLAGS="-D_GNU_SOURCE"
diff --git a/srcpkgs/flightgear/template b/srcpkgs/flightgear/template
index e5528205b9e0..ac8cb4c9032c 100644
--- a/srcpkgs/flightgear/template
+++ b/srcpkgs/flightgear/template
@@ -22,6 +22,7 @@ checksum="
  1f07e8ef2c558dae3b9738e313b57e711d38e569f85d49fc2c5ae647e3949a17
  2196f4ffcdeaae3a8b0a2b6ebf62a456bfd0198abb6c0619f763204d89804a03"
 python_version=2
+patch_args=-Np0
 
 nocross=https://build.voidlinux.org/builders/armv7l-musl_builder/builds/4773/steps/shell_3/logs/stdio
 
diff --git a/srcpkgs/flowcanvas/template b/srcpkgs/flowcanvas/template
index 4b61be701061..10fd327e1c95 100644
--- a/srcpkgs/flowcanvas/template
+++ b/srcpkgs/flowcanvas/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://drobilla.net/software/flowcanvas/"
 distfiles="http://download.drobilla.net/${pkgname}-${version}.tar.bz2"
 checksum=047928d858fd1e9296a9984de7468c86bbe23fc42e286691b8f273541402c596
+patch_args=-Np0
 
 CXXFLAGS="-std=c++11"
 
diff --git a/srcpkgs/foobillard++/template b/srcpkgs/foobillard++/template
index d92355a8cabe..185f4f62b16a 100644
--- a/srcpkgs/foobillard++/template
+++ b/srcpkgs/foobillard++/template
@@ -19,6 +19,7 @@ CFLAGS="-fgnu89-inline"
 # flags from freetype-config and sdl-config
 CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/freetype2"
 CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/SDL -D_GNU_SOURCE=1"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/foomatic-db-engine/template b/srcpkgs/foomatic-db-engine/template
index dc1a21716e5a..909ca2605b93 100644
--- a/srcpkgs/foomatic-db-engine/template
+++ b/srcpkgs/foomatic-db-engine/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.openprinting.org/"
 distfiles="https://www.openprinting.org/download/foomatic/$pkgname-$version.tar.gz"
 checksum=b5c89027aa26967d2e6db62e2af7db0c4039d2480d4fbf2476a6ddcf609a5faf
+patch_args=-Np0
 
 post_configure() {
 	# Compiling and linking in one step requires $(LDFLAGS)
diff --git a/srcpkgs/foremost/template b/srcpkgs/foremost/template
index cb463049d370..91e336667023 100644
--- a/srcpkgs/foremost/template
+++ b/srcpkgs/foremost/template
@@ -9,6 +9,7 @@ license="Public Domain"
 homepage="http://foremost.sourceforge.net/"
 distfiles="http://foremost.sourceforge.net/pkg/foremost-${version}.tar.gz"
 checksum=502054ef212e3d90b292e99c7f7ac91f89f024720cd5a7e7680c3d1901ef5f34
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/fossil/template b/srcpkgs/fossil/template
index 0e8afbbdadf4..6773f5d85441 100644
--- a/srcpkgs/fossil/template
+++ b/srcpkgs/fossil/template
@@ -13,6 +13,7 @@ homepage="https://www.fossil-scm.org"
 changelog="https://www.fossil-scm.org/home/doc/trunk/www/changes.wiki"
 distfiles="https://www.fossil-scm.org/index.html/uv/fossil-src-${version}.tar.gz"
 checksum=80d27923c663b2a2c710f8ae8cd549862e04f8c04285706274c34ae3c8ca17d1
+patch_args=-Np0
 
 post_extract() {
 	vsed -i 's/test_system_sqlite$/# &/' auto.def  # failing on cross
diff --git a/srcpkgs/fotoxx/template b/srcpkgs/fotoxx/template
index a3c968fcdef0..d954ae814495 100644
--- a/srcpkgs/fotoxx/template
+++ b/srcpkgs/fotoxx/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.kornelix.net/fotoxx/fotoxx.html"
 distfiles="https://www.kornelix.net/downloads/downloads/fotoxx-${version}.tar.gz"
 checksum=0c16597053ce8e186fb8163839f4f4ed44548bf00e43e88951f4346a9dbbb620
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/champlain-0.12"
 
diff --git a/srcpkgs/fpc/template b/srcpkgs/fpc/template
index 7967b25165b1..c867802cf756 100644
--- a/srcpkgs/fpc/template
+++ b/srcpkgs/fpc/template
@@ -40,6 +40,7 @@ esac
 nocross=yes
 nopie=yes
 noverifyrdeps=yes
+patch_args=-Np0
 
 post_extract() {
 	# extract recursive tar files or otherwise post-process.
diff --git a/srcpkgs/fprint_demo/template b/srcpkgs/fprint_demo/template
index 723fa68f3f7d..8e08614dbf43 100644
--- a/srcpkgs/fprint_demo/template
+++ b/srcpkgs/fprint_demo/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.freedesktop.org/wiki/Software/fprint/fprint_demo/"
 distfiles="https://github.com/dsd/${pkgname}/archive/v${version}.tar.gz"
 checksum=6f54f43e0a015cd83504a2c726a59154c5aee83e229e8494d54e592624ee3ad5
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/frame/template b/srcpkgs/frame/template
index faf98cc44932..d43faff47cc3 100644
--- a/srcpkgs/frame/template
+++ b/srcpkgs/frame/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-only"
 homepage="https://launchpad.net/frame"
 distfiles="https://launchpad.net/${pkgname}/trunk/v${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=cfb9ab52cdccd926f1822a457264d0014c7eb9f4600a72626063dd073b26256f
+patch_args=-Np0
 
 frame-devel_package() {
 	depends="frame>=${version}_${revision}"
diff --git a/srcpkgs/freecad/template b/srcpkgs/freecad/template
index a11272680797..86abc16ea9e9 100644
--- a/srcpkgs/freecad/template
+++ b/srcpkgs/freecad/template
@@ -4,6 +4,7 @@ version=0.19.2
 revision=1
 wrksrc="FreeCAD-${version}"
 build_style=cmake
+patch_args=-Np0
 
 _inst_prefix=/usr/lib/${pkgname}
 configure_args="
diff --git a/srcpkgs/freeciv/template b/srcpkgs/freeciv/template
index cb6434529441..2dbb80c62a52 100644
--- a/srcpkgs/freeciv/template
+++ b/srcpkgs/freeciv/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://freeciv.org/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=6181ef3d3c76264383aabbe0eaf1550d8a65ca42639e6c17cc2938165e176c8f
+patch_args=-Np0
 
 subpackages="freeciv-gtk2 freeciv-gtk3 freeciv-sdl freeciv-xaw"
 if [ -z "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/freedroidClassic/template b/srcpkgs/freedroidClassic/template
index fe8b987c8ac7..a386f4e0ae04 100644
--- a/srcpkgs/freedroidClassic/template
+++ b/srcpkgs/freedroidClassic/template
@@ -13,6 +13,7 @@ license="GPL-2"
 homepage="http://freedroid.org"
 distfiles="http://sourceforge.net/projects/freedroid/files/${pkgname}/FreedroidClassic-${version}/freedroid-${version}.tar.gz"
 checksum=0934bd29fb2ad0367ea3bdfdce47537179f9af6aa960cbcc897c40da2e1a0ee3
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/freeimage/template b/srcpkgs/freeimage/template
index c45052a67b17..49167a736380 100644
--- a/srcpkgs/freeimage/template
+++ b/srcpkgs/freeimage/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later, FreeImage"
 homepage="http://freeimage.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/freeimage/Source%20Distribution/FreeImage${version//./}.zip"
 checksum=f41379682f9ada94ea7b34fe86bf9ee00935a3147be41b6569c9605a53e438fd
+patch_args=-Np0
 
 CFLAGS="-fPIC -DPIC -fexceptions -fvisibility=hidden -DPNG_POWERPC_VSX_OPT=0"
 CXXFLAGS="${CFLAGS} -Wno-ctor-dtor-privacy"
diff --git a/srcpkgs/freeipmi/template b/srcpkgs/freeipmi/template
index e6818b20f15c..0a0b14774420 100644
--- a/srcpkgs/freeipmi/template
+++ b/srcpkgs/freeipmi/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/freeipmi/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=cfa30179b44c582e73cf92c2ad0e54fe49f9fd87f7a0889be9dc2db5802e6aab
+patch_args=-Np0
 
 conf_files="/etc/freeipmi/*.conf"
 make_dirs="/var/cache/ipmiseld 0755 root root"
diff --git a/srcpkgs/freeorion/template b/srcpkgs/freeorion/template
index 37bfc09176c4..32ccda483397 100644
--- a/srcpkgs/freeorion/template
+++ b/srcpkgs/freeorion/template
@@ -16,6 +16,7 @@ homepage="https://freeorion.org/index.php/Main_Page"
 changelog="https://raw.githubusercontent.com/freeorion/freeorion/master/ChangeLog.md"
 distfiles="https://github.com/freeorion/freeorion/releases/download/v${version}/FreeOrion_v${_release}_Source.tar.gz"
 checksum=e72ab42cba1ee8842507340931ef389e64011e040a4adc74add5f4997bbcba8b
+patch_args=-Np0
 
 post_extract() {
 	_build_no=${_release/*_/}
diff --git a/srcpkgs/freeplane/template b/srcpkgs/freeplane/template
index 52a4365845f2..2d92e1536f59 100644
--- a/srcpkgs/freeplane/template
+++ b/srcpkgs/freeplane/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://freeplane.sourceforge.net/"
 distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname%20stable/${pkgname}_src-$version.tar.gz"
 checksum=7cb3abeda6a073262b63603852d3f3fe2cdb34e917435e9648209efa9c3b1e21
+patch_args=-Np0
 
 make_dirs="
 /usr/share/freeplane/fwdir/condperm/ 755 root root
diff --git a/srcpkgs/freetds/template b/srcpkgs/freetds/template
index c1e2b541a6b8..bc88622a836a 100644
--- a/srcpkgs/freetds/template
+++ b/srcpkgs/freetds/template
@@ -13,6 +13,7 @@ license="LGPL-2.0-or-later"
 homepage="https://www.freetds.org/"
 distfiles="https://www.freetds.org/files/stable/freetds-${version}.tar.gz"
 checksum=a2134ff1852003c0aeed82bd5f7842233ff287c3a14252b84d2653983aff7da1
+patch_args=-Np0
 
 conf_files="/etc/freetds/freetds.conf
  /etc/freetds/locales.conf
diff --git a/srcpkgs/freetype/template b/srcpkgs/freetype/template
index ba4c6ad900c4..b41edae73a6f 100644
--- a/srcpkgs/freetype/template
+++ b/srcpkgs/freetype/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, FTL"
 homepage="https://www.freetype.org/"
 distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=86a854d8905b19698bbc8f23b860bc104246ce4854dcea8e3b0fb21284f75784
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e "s/%PKG_CONFIG%/pkg-config/" builds/unix/freetype-config.in
diff --git a/srcpkgs/freshplayerplugin/template b/srcpkgs/freshplayerplugin/template
index a6205c0ba98d..7730d4954be2 100644
--- a/srcpkgs/freshplayerplugin/template
+++ b/srcpkgs/freshplayerplugin/template
@@ -13,6 +13,7 @@ homepage="https://github.com/i-rinat/freshplayerplugin"
 changelog="https://raw.githubusercontent.com/i-rinat/freshplayerplugin/master/ChangeLog"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=4fa4fe07e812f6e10784ff984e1389b9b444ca44b84101999c6fad8f55db59d9
+patch_args=-Np0
 
 do_install() {
 	vinstall build/libfreshwrapper-flashplayer.so 755 usr/lib/mozilla/plugins
diff --git a/srcpkgs/fs-utils/template b/srcpkgs/fs-utils/template
index 91a0d1dcc0d6..cc8fe606ab0a 100644
--- a/srcpkgs/fs-utils/template
+++ b/srcpkgs/fs-utils/template
@@ -15,6 +15,7 @@ distfiles="$homepage/archive/v$version.tar.gz
 checksum="0f63aa92f673f290d4bca9009ca6f213e70ac70519c5cdac3fa64acf5afa5bae
  228892fd0f669ee3051aee19f8660e4719bee9bd70c1b02adcaee518d4155866"
 skip_extraction="LICENSE"
+patch_args=-Np0
 
 post_install() {
 	vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/LICENSE
diff --git a/srcpkgs/fuse/template b/srcpkgs/fuse/template
index 10061307b416..812f9dfc16d1 100644
--- a/srcpkgs/fuse/template
+++ b/srcpkgs/fuse/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://github.com/libfuse/libfuse"
 distfiles="${homepage}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=d0e69d5d608cc22ff4843791ad097f554dd32540ddc9bed7638cc6fea7c1b4b5
+patch_args=-Np0
 
 post_install() {
 	# remove obsolete rules file provided by udev.
diff --git a/srcpkgs/gamin/template b/srcpkgs/gamin/template
index 3ed85f0bb6f3..bc4b244b5757 100644
--- a/srcpkgs/gamin/template
+++ b/srcpkgs/gamin/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.gnome.org/~veillard/gamin/"
 distfiles="$GNOME_SITE/gamin/0.1/gamin-${version}.tar.bz2"
 checksum=a59948b20ce2f14136c013f155abb8c8d51db2ea167c063ff33461e453fec10a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gammu/template b/srcpkgs/gammu/template
index bb5d54bcfe90..71ebeecdab9f 100644
--- a/srcpkgs/gammu/template
+++ b/srcpkgs/gammu/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://wammu.eu"
 distfiles="https://dl.cihar.com/gammu/releases/gammu-${version}.tar.bz2"
 checksum=6197f8b4d35746d31567e61880121def676f225eba05276648410eaa6ce60c9f
+patch_args=-Np0
 
 gammu-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/gatling/template b/srcpkgs/gatling/template
index 9993c3a0cd69..15aefdfd53d9 100644
--- a/srcpkgs/gatling/template
+++ b/srcpkgs/gatling/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.fefe.de/gatling"
 distfiles="https://www.fefe.de/gatling/$pkgname-$version.tar.xz"
 checksum=5f96438ee201d7f1f6c2e0849ff273b196bdc7493f29a719ce8ed08c8be6365b
+patch_args=-Np0
 
 CFLAGS="-std=c99 -I${XBPS_CROSS_BASE}/usr/include/libowfat -fcommon"
 
diff --git a/srcpkgs/gavl/template b/srcpkgs/gavl/template
index 0f5f50d93565..8abcc051e743 100644
--- a/srcpkgs/gavl/template
+++ b/srcpkgs/gavl/template
@@ -11,6 +11,7 @@ homepage="http://gmerlin.sourceforge.net/gavl.html"
 distfiles="${SOURCEFORGE_SITE}/gmerlin/gavl/${version}/gavl-${version}.tar.gz"
 checksum=51aaac41391a915bd9bad07710957424b046410a276e7deaff24a870929d33ce
 CFLAGS="-lm"
+patch_args=-Np0
 
 gavl-devel_package() {
 	depends="gavl>=${version}_${revision}"
diff --git a/srcpkgs/gbdfed/template b/srcpkgs/gbdfed/template
index 788a9abab08b..55de7fabe98c 100644
--- a/srcpkgs/gbdfed/template
+++ b/srcpkgs/gbdfed/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause, MIT"
 homepage="http://sofia.nmsu.edu/~mleisher/Software/gbdfed/"
 distfiles="https://src.fedoraproject.org/repo/pkgs/gbdfed/gbdfed-${version}.tar.bz2/2a2e1cbfe8566db6d302f0b9ab79b8dd/gbdfed-${version}.tar.bz2"
 checksum=5db25d4ce688dcb188dee056e58614a94a5e4fce4b6066fbb310951ab999093c
+patch_args=-Np0
 
 post_install() {
 	sed '/^$/q' <gbdfed.c >LICENSE
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 07ceeccc93d4..ade2f5007df0 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -2,6 +2,7 @@
 archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 _majorver=10.2
+patch_args=-Np0
 
 pkgname=gcc-multilib
 version=${_majorver}.1pre1
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index ba7084934857..4de5faa93f5a 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -8,6 +8,7 @@ _gmp_version=6.2.0
 _mpfr_version=4.1.0
 _mpc_version=1.1.0
 _isl_version=0.21
+patch_args=-Np0
 
 pkgname=gcc
 # we are using a 10-stable git snapshot alpine is using in order
diff --git a/srcpkgs/gcolor2/template b/srcpkgs/gcolor2/template
index 4aec89567aa9..7a3eaeb093a9 100644
--- a/srcpkgs/gcolor2/template
+++ b/srcpkgs/gcolor2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://gcolor2.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=89bd6c6d27ba5a679ec60057de8497855072f520515b490e5986fc3509774f23
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gdm/template b/srcpkgs/gdm/template
index c76e13c2de12..371445e58e2d 100644
--- a/srcpkgs/gdm/template
+++ b/srcpkgs/gdm/template
@@ -24,6 +24,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Projects/GDM"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=5ed74b739d3a232ffb1e4a132bcf965bdfe955d995b528773588775b02f2950e
+patch_args=-Np0
 
 conf_files="
 	/etc/gdm/custom.conf
diff --git a/srcpkgs/gdmap/template b/srcpkgs/gdmap/template
index 47b0105feb38..7b321c76487c 100644
--- a/srcpkgs/gdmap/template
+++ b/srcpkgs/gdmap/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://gdmap.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=a200c98004b349443f853bf611e49941403fce46f2335850913f85c710a2285b
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/geary/template b/srcpkgs/geary/template
index a74b1ff16cd2..17c2c0af3176 100644
--- a/srcpkgs/geary/template
+++ b/srcpkgs/geary/template
@@ -20,6 +20,7 @@ homepage="https://wiki.gnome.org/Apps/Geary"
 _series=${version%.${version#*.*.}}
 distfiles="${GNOME_SITE}/${pkgname}/${_series}/geary-${version}.tar.xz"
 checksum=e72e212798536657d5100e1e1a4a67f3836d6f0235340aae53e576f2a774e812
+patch_args=-Np0
 
 post_patch() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/geda/template b/srcpkgs/geda/template
index 6626bc91fd94..32afaf0681bb 100644
--- a/srcpkgs/geda/template
+++ b/srcpkgs/geda/template
@@ -18,6 +18,7 @@ distfiles="http://ftp.geda-project.org/geda-gaf/stable/v${version%.*}/${version}
 checksum=e862ab241528538fa3bee2739261f568011102b60c5e39a2f0358663c042c8a4
 python_version=2
 replaces="geda-data>=0"
+patch_args=-Np0
 
 CFLAGS="-Wno-deprecated-declarations -fcommon -Wno-unused-function"
 
diff --git a/srcpkgs/geis/template b/srcpkgs/geis/template
index ddad320d93a7..3f3b40e52315 100644
--- a/srcpkgs/geis/template
+++ b/srcpkgs/geis/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="https://launchpad.net/geis"
 distfiles="https://launchpad.net/geis/trunk/$version/+download/geis-$version.tar.xz"
 checksum=8a60f5683852094038904e690d23cc5a90a980fc52da67f0f28890baa25c70eb
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	configure_args+=" --enable-integration-tests=no"
diff --git a/srcpkgs/geos/template b/srcpkgs/geos/template
index efc698ab3dc8..bd7f56da854c 100644
--- a/srcpkgs/geos/template
+++ b/srcpkgs/geos/template
@@ -9,6 +9,7 @@ license="LGPL-2.1-or-later"
 homepage="https://trac.osgeo.org/geos"
 distfiles="https://download.osgeo.org/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=7e630507dcac9dc07565d249a26f06a15c9f5b0c52dd29129a0e3d381d7e382a
+patch_args=-Np0
 
 geos-devel_package() {
 	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
diff --git a/srcpkgs/gfm/template b/srcpkgs/gfm/template
index a21661053740..950339e880e7 100644
--- a/srcpkgs/gfm/template
+++ b/srcpkgs/gfm/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.ticalc.org"
 distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${_tilpver}/${pkgname}-${version}.tar.bz2"
 checksum=09031ac0abf686b6a8bc9935f331ef460415783a1057f11b0af993526b52017f
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" gettext-devel"
diff --git a/srcpkgs/giac/template b/srcpkgs/giac/template
index ca95534498f2..1e87c15d2b3f 100644
--- a/srcpkgs/giac/template
+++ b/srcpkgs/giac/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
 distfiles="https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_${version%.*}-${version##*.}.tar.gz"
 checksum=bbd6f0aafe373de3c9ed53d21878224e847359fdd9a7cdf9e9096e7c960f10b4
+patch_args=-Np0
 
 # need more than 4*65536 stack, see try_parse() in gen.cc line 11812
 LDFLAGS="-Wl,-z,stack-size=2097152"
diff --git a/srcpkgs/giflib/template b/srcpkgs/giflib/template
index 4f01f28e079e..9f3d399c6a5e 100644
--- a/srcpkgs/giflib/template
+++ b/srcpkgs/giflib/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://sourceforge.net/projects/giflib/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=31da5562f44c5f15d63340a09a4fd62b48c45620cd302f77a6d9acf0077879bd
+patch_args=-Np0
 
 CFLAGS="-fPIC"
 
diff --git a/srcpkgs/giggle/template b/srcpkgs/giggle/template
index 8240dd9afcd1..91eee3d7d911 100644
--- a/srcpkgs/giggle/template
+++ b/srcpkgs/giggle/template
@@ -14,6 +14,7 @@ homepage="https://wiki.gnome.org/Apps/giggle"
 distfiles="${GNOME_SITE}/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
 checksum=ae2e2237fa0d0999d99d0a0ee9b7ec147e80bd2472d59a045b2b01eb02261f59
 lib32disabled=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index 999c9a6f46f0..45a894853d35 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -23,6 +23,7 @@ checksum=bd1bb762368c0dd3175cf05006812dd676949c3707e21f4e6857435cb435989e
 python_version=2
 lib32disabled=yes
 no_generic_pkgconfig_link=yes
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 autoreconf -fi
diff --git a/srcpkgs/git-annex/template b/srcpkgs/git-annex/template
index cdcd6bb0f83c..25f8338e6833 100644
--- a/srcpkgs/git-annex/template
+++ b/srcpkgs/git-annex/template
@@ -15,6 +15,7 @@ distfiles="https://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-
 checksum=17109144b2aadfab79fa0e193df3e0c02fd80f738a5ed6eccb0d11692bedb01d
 nopie_files="/usr/bin/git-annex"
 nocross=yes
+patch_args=-Np0
 
 # These install steps are pulled from the install target in the
 # git-annex Makefile. The target can't be called directly because it is
diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template
index f375d2dcfa17..eae2e61b6819 100644
--- a/srcpkgs/gitea/template
+++ b/srcpkgs/gitea/template
@@ -33,6 +33,7 @@ homepage="https://gitea.io"
 changelog="https://github.com/go-gitea/gitea/blob/master/CHANGELOG.md"
 distfiles="https://github.com/go-gitea/gitea/releases/download/v${version}/gitea-src-${version}.tar.gz"
 checksum=d04bca934feba35600aaf739c82b7cbe7d8b911a086d7ac54f0710b689a85ac3
+patch_args=-Np0
 
 system_accounts="_gitea"
 _gitea_homedir="/var/lib/gitea"
diff --git a/srcpkgs/gitg/template b/srcpkgs/gitg/template
index e309a6a1462f..87376f22160e 100644
--- a/srcpkgs/gitg/template
+++ b/srcpkgs/gitg/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Gitg"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=24a4aabf8a42aa2e783e1fb5996ebb3c2a82a01b9689269f1329517ef124ef5a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -Dexe_wrapper=qemu-${XBPS_TARGET_QEMU_MACHINE}-static"
diff --git a/srcpkgs/gkrellm/template b/srcpkgs/gkrellm/template
index f2c1721ac5ee..59a20ddb0b90 100644
--- a/srcpkgs/gkrellm/template
+++ b/srcpkgs/gkrellm/template
@@ -11,6 +11,7 @@ license="GPL-3.0.or-later"
 homepage="http://gkrellm.srcbox.net"
 distfiles="${homepage}/releases/gkrellm-${version}.tar.bz2"
 checksum=1ee0643ed9ed99f88c1504c89d9ccb20780cf29319c904b68e80a8e7c8678c06
+patch_args=-Np0
 
 do_install() {
 	make PREFIX=/usr DESTDIR=${DESTDIR} STRIP= install
diff --git a/srcpkgs/glances/template b/srcpkgs/glances/template
index 29bc7790e11d..daf47f64f7a3 100644
--- a/srcpkgs/glances/template
+++ b/srcpkgs/glances/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-or-later"
 homepage="https://github.com/nicolargo/glances"
 distfiles="https://github.com/nicolargo/glances/archive/v${version}.tar.gz"
 checksum=5839a110af35af35b7a1d30c15e59c59359480c2eaec852d30480c96b8cf8d76
+patch_args=-Np0
 
 post_install() {
 	vsconf conf/glances.conf
diff --git a/srcpkgs/glib/template b/srcpkgs/glib/template
index 855a55856b31..9538134e3b36 100644
--- a/srcpkgs/glib/template
+++ b/srcpkgs/glib/template
@@ -17,6 +17,7 @@ homepage="https://wiki.gnome.org/Projects/GLib"
 changelog="https://gitlab.gnome.org/GNOME/glib/raw/master/NEWS"
 distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz"
 checksum=ecc7798a9cc034eabdfd7f246e6dd461cdbf1175fcc2e9867cc7da7b7309e0fb
+patch_args=-Np0
 
 build_options="gtk_doc"
 desc_option_gtk_doc="Build GTK API docs"
diff --git a/srcpkgs/gloox/template b/srcpkgs/gloox/template
index 0099876f5b22..f56bd1621233 100644
--- a/srcpkgs/gloox/template
+++ b/srcpkgs/gloox/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://camaya.net/gloox"
 distfiles="https://camaya.net/download/gloox-${version}.tar.bz2"
 checksum=4ade1b14848ccfcd89a505a4fff05116c24f13cef8d02fab0ade2717117ec964
+patch_args=-Np0
 
 gloox-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/glusterfs/template b/srcpkgs/glusterfs/template
index 93fd87eeda76..ec10ef21466f 100644
--- a/srcpkgs/glusterfs/template
+++ b/srcpkgs/glusterfs/template
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later, LGPL-3.0-only"
 homepage="https://www.gluster.org/"
 distfiles="https://download.gluster.org/pub/gluster/glusterfs/${version%.*}/${version}/${pkgname}-${version}.tar.gz"
 checksum=6f29ae4ab2c270ade0cd14a3f733d7d33fda78e79e81b148cd50711f65069d87
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) broken="not yet supported";;
diff --git a/srcpkgs/glyr/template b/srcpkgs/glyr/template
index 30dbe4e87f8e..6055834d3fb9 100644
--- a/srcpkgs/glyr/template
+++ b/srcpkgs/glyr/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-or-later"
 homepage="https://github.com/sahib/glyr"
 distfiles="https://github.com/sahib/glyr/archive/${version}.tar.gz"
 checksum=77e8da60221c8d27612e4a36482069f26f8ed74a1b2768ebc373c8144ca806e8
+patch_args=-Np0
 
 glyr-devel_package() {
 	depends="glyr>=${version}_${revision}"
diff --git a/srcpkgs/gmrun/template b/srcpkgs/gmrun/template
index b3565fa4929e..4e6727f20d06 100644
--- a/srcpkgs/gmrun/template
+++ b/srcpkgs/gmrun/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://sf.net/projects/gmrun"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=17297bce53249ccc7145931db22251b47f77ac355f78cf8abf1e87ae16341fa0
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/gnome-authenticator/template b/srcpkgs/gnome-authenticator/template
index e1bd1ee9e443..ceca3efe8578 100644
--- a/srcpkgs/gnome-authenticator/template
+++ b/srcpkgs/gnome-authenticator/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.gnome.org/World/Authenticator"
 distfiles="${homepage}/-/archive/${version}/Authenticator-${version}.tar.gz"
 checksum="d7250fbef1de2dcb599a55ff3d40dcc6ed5618fe89d50ec795281d8ba3123d5b"
+patch_args=-Np0
 
 post_patch() {
 	find src/Authenticator/widgets -type f -exec \
diff --git a/srcpkgs/gnome-desktop/template b/srcpkgs/gnome-desktop/template
index b92478185d66..72565e7b28e8 100644
--- a/srcpkgs/gnome-desktop/template
+++ b/srcpkgs/gnome-desktop/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://gitlab.gnome.org/GNOME/gnome-desktop"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=02dd6e5860e90395b5d88745ee30239a919285afbb7a22cf17e3be25e9abfbf6
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/gnome-keyring/template b/srcpkgs/gnome-keyring/template
index b8defd1997dd..6ec17559c86f 100644
--- a/srcpkgs/gnome-keyring/template
+++ b/srcpkgs/gnome-keyring/template
@@ -17,6 +17,7 @@ homepage="https://www.gnome.org"
 distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
 checksum=a3d24db08ee2fdf240fbbf0971a98c8ee295aa0e1a774537f4ea938038a3b931
 lib32disabled=yes
+patch_args=-Np0
 
 do_check() {
 	# Requires X11 server
diff --git a/srcpkgs/gnome-latex/template b/srcpkgs/gnome-latex/template
index 4739891c8ff2..f1c5f3c7c3c4 100644
--- a/srcpkgs/gnome-latex/template
+++ b/srcpkgs/gnome-latex/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Apps/GNOME-LaTeX"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=a82a9fc6f056929ea18d6dffd121e71b2c21768808c86ef1f34da0f86e220d77
+patch_args=-Np0
 
 # for 00-port-to-tepl-6.patch
 hostmakedepends+=" automake gettext-devel-tools libtool"
diff --git a/srcpkgs/gnome-photos/template b/srcpkgs/gnome-photos/template
index fee19723ed89..57280f653793 100644
--- a/srcpkgs/gnome-photos/template
+++ b/srcpkgs/gnome-photos/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Photos"
 distfiles="${GNOME_SITE}/gnome-photos/${version%.*}/gnome-photos-${version}.tar.xz"
 checksum=e02d73e138af8b2868b5cad7faa1bdd278aeade3b6c3c92836511a4e6f3af1af
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/gnome-screensaver/template b/srcpkgs/gnome-screensaver/template
index 1a23f6dcfb06..d0a3a8968ce8 100644
--- a/srcpkgs/gnome-screensaver/template
+++ b/srcpkgs/gnome-screensaver/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Projects/GnomeScreensaver"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=f39b78d4f7fed748c7f0a31d694112fb907c6d3c4e63db22eb858df07e962cd0
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/gnome-session/template b/srcpkgs/gnome-session/template
index e5bc350e66fd..ff7a0d03e67c 100644
--- a/srcpkgs/gnome-session/template
+++ b/srcpkgs/gnome-session/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://gitlab.gnome.org/GNOME/gnome-session"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*.*}/${pkgname}-${version}.tar.xz"
 checksum=9c787829ee32e13e1508b9aee2b1d9ba42a02c48e6c8094e34f3e7f92af4df82
+patch_args=-Np0
 
 post_install() {
 	rm -rf ${DESTDIR}/tmp
diff --git a/srcpkgs/gnome-settings-daemon/template b/srcpkgs/gnome-settings-daemon/template
index 081c88ebfd73..f6d6acf73f2d 100644
--- a/srcpkgs/gnome-settings-daemon/template
+++ b/srcpkgs/gnome-settings-daemon/template
@@ -20,6 +20,7 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.gnome.org/GNOME/gnome-settings-daemon"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*.*}/${pkgname}-${version}.tar.xz"
 checksum=37dfac1b69a53e2e499228420259d6e134c1c06b74530af88fa855bda1187b21
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" polkit"
diff --git a/srcpkgs/gnome-terminal/template b/srcpkgs/gnome-terminal/template
index 4a397445dd1a..89ddda4dfea8 100644
--- a/srcpkgs/gnome-terminal/template
+++ b/srcpkgs/gnome-terminal/template
@@ -15,6 +15,7 @@ homepage="https://wiki.gnome.org/Apps/Terminal"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=4c79af8ffe8bd3a5daca1911ea2c0acd6872860a1dd5d7eea219f4ab4ae556ac
 lib32disabled=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --disable-search-provider"
diff --git a/srcpkgs/gnu-efi-libs/template b/srcpkgs/gnu-efi-libs/template
index 0b8c679b5225..e85a677cbae1 100644
--- a/srcpkgs/gnu-efi-libs/template
+++ b/srcpkgs/gnu-efi-libs/template
@@ -12,6 +12,7 @@ homepage="https://sourceforge.net/projects/gnu-efi/"
 distfiles="${SOURCEFORGE_SITE}/gnu-efi/gnu-efi-${version}.tar.bz2"
 checksum=0196f2e1fd3c334b66e610a608a0e59233474c7a01bec7bc53989639aa327669
 nostrip=yes
+patch_args=-Np0
 
 # If we are cross-building we need to pass the cross-compilation triplet
 # to the CROSS_COMPILE environment variable so the build system uses
diff --git a/srcpkgs/gnucash/template b/srcpkgs/gnucash/template
index fa8bd17d09ad..084157bb4735 100644
--- a/srcpkgs/gnucash/template
+++ b/srcpkgs/gnucash/template
@@ -18,6 +18,7 @@ homepage="http://www.gnucash.org"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 #distfiles="https://sources.voidlinux.org/gnucash-${version}/gnucash-${version}.tar.bz2"
 checksum=bc1f48a8453488a2e9f6b83b68613aa55caebe4d2983460bdac7e084b46cffdc
+patch_args=-Np0
 
 pycompile_dirs="usr/share/gnucash/python"
 conf_files="/etc/gnucash/environment"
diff --git a/srcpkgs/gnupg2/template b/srcpkgs/gnupg2/template
index 36fba35e68bb..0d7118e83c3a 100644
--- a/srcpkgs/gnupg2/template
+++ b/srcpkgs/gnupg2/template
@@ -22,6 +22,7 @@ distfiles="https://gnupg.org/ftp/gcrypt/gnupg/gnupg-${version}.tar.bz2"
 checksum=6ff891fc7583a9c3fb9f097ee0d1de0a12469d4b53997e7ba5064950637dfaec
 build_options="ldap"
 build_options_default="ldap"
+patch_args=-Np0
 
 post_patch() {
 	# On at least aarch64, configure sets this even though it doesn't exist
diff --git a/srcpkgs/gnuradio-nrsc5/template b/srcpkgs/gnuradio-nrsc5/template
index 6299e7c90b02..0f7ad2134ac2 100644
--- a/srcpkgs/gnuradio-nrsc5/template
+++ b/srcpkgs/gnuradio-nrsc5/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/argilo/gr-nrsc5/"
 distfiles="https://github.com/argilo/gr-nrsc5/archive/v${version}.tar.gz"
 checksum=d736c4cb1104254d07296d2a61880e07149c9bfd1a49aed504215672d4e09485
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/gnustep-base/template b/srcpkgs/gnustep-base/template
index 483dd8011bee..aaf01eaaf64e 100644
--- a/srcpkgs/gnustep-base/template
+++ b/srcpkgs/gnustep-base/template
@@ -13,6 +13,7 @@ homepage="http://www.gnustep.org/"
 distfiles="http://ftp.gnustep.org/pub/gnustep/core/gnustep-base-${version}.tar.gz"
 checksum=c7d7c6e64ac5f5d0a4d5c4369170fc24ed503209e91935eb0e2979d1601039ed
 make_check=extended
+patch_args=-Np0
 
 nocross="objc doesn't get cross build at present within gcc"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/gnustep-make/template b/srcpkgs/gnustep-make/template
index e77d199252d0..4c6407db9f5b 100644
--- a/srcpkgs/gnustep-make/template
+++ b/srcpkgs/gnustep-make/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnustep.org"
 distfiles="http://ftp.gnustep.org/pub/gnustep/core/${pkgname}-${version}.tar.gz"
 checksum=a0b066c11257879c7c85311dea69c67f6dc741ef339db6514f85b64992c40d2a
+patch_args=-Np0
 
 post_install() {
 	sed -i 's,/builddir/.xbps-gnustep-make/wrappers,/usr/bin,g' ${DESTDIR}/usr/share/GNUstep/Makefiles/config.make
diff --git a/srcpkgs/gnutls/template b/srcpkgs/gnutls/template
index 3f02c29d3b27..fc1a507c8b14 100644
--- a/srcpkgs/gnutls/template
+++ b/srcpkgs/gnutls/template
@@ -22,6 +22,7 @@ license="GPL-3.0-only, LGPL-2.1-or-later"
 homepage="https://gnutls.org"
 distfiles="https://www.gnupg.org/ftp/gcrypt/gnutls/v${version%.*}/gnutls-${version}.tar.xz"
 checksum=1b79b381ac283d8b054368b335c408fedcb9b7144e0c07f531e3537d4328f3b3
+patch_args=-Np0
 
 pre_check() {
 	# same as $PASS in tests/cert-tests/certtool
diff --git a/srcpkgs/goaccess/template b/srcpkgs/goaccess/template
index ce6231cc0253..2dec69e429b9 100644
--- a/srcpkgs/goaccess/template
+++ b/srcpkgs/goaccess/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://goaccess.io"
 distfiles="http://tar.goaccess.io/goaccess-${version}.tar.gz"
 checksum=c4820e781f75d9446f6b1be5fc8d11c6ec94a47fa8dd523001698c589f46c1ba
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/godot/template b/srcpkgs/godot/template
index aa63677d6d8c..134880e902c0 100644
--- a/srcpkgs/godot/template
+++ b/srcpkgs/godot/template
@@ -29,6 +29,7 @@ homepage="https://www.godotengine.org/"
 distfiles="https://github.com/godotengine/${pkgname}/archive/${version}-stable.tar.gz"
 checksum=595ff16eaef3d0b6c030575f4b7fcae8b805e407b90a2f71af3e4142362c1794
 nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/6342/steps/shell_3/logs/stdio
+patch_args=-Np0
 
 CFLAGS+=" -fPIE -fPIC"
 LDFLAGS+=" -pie"
diff --git a/srcpkgs/gogglesmm/template b/srcpkgs/gogglesmm/template
index 29579786726d..0b4c48ad6b25 100644
--- a/srcpkgs/gogglesmm/template
+++ b/srcpkgs/gogglesmm/template
@@ -17,6 +17,7 @@ distfiles="https://github.com/gogglesmm/gogglesmm/archive/${version}.tar.gz"
 checksum=f068667e0a825ac792eda344cbe94c29fe8668ddbdd269c094e5bf168acd2380
 python_version=2 #unverified
 nocross="Tries to execute compiled code"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) broken="PTHREAD_RWLOCK_PREFER_WRITER_NP usage" ;;
diff --git a/srcpkgs/goldendict/template b/srcpkgs/goldendict/template
index 7553e408d1a7..c987fefdac41 100644
--- a/srcpkgs/goldendict/template
+++ b/srcpkgs/goldendict/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="http://goldendict.org/"
 distfiles="https://github.com/goldendict/goldendict/archive/${version/RC/-RC}.tar.gz"
 checksum=bccee0a3d3902f8fa31e439e220a405065fff774e5f8c581be2b0743d3f83fde
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated"
 
diff --git a/srcpkgs/gosu/template b/srcpkgs/gosu/template
index 1dffcc0a7665..9bc74859e375 100644
--- a/srcpkgs/gosu/template
+++ b/srcpkgs/gosu/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://www.libgosu.org"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=4dbc4998e2c630ee7758544de4286c70c68e639524b6088ccdc7b5487c928695
+patch_args=-Np0
 
 CXXFLAGS+=" -D_GLIBCXX_USE_C99_STDIO=1"
 
diff --git a/srcpkgs/goxel/template b/srcpkgs/goxel/template
index e731c606727d..ee3c31ace469 100644
--- a/srcpkgs/goxel/template
+++ b/srcpkgs/goxel/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://guillaumechereau.github.io/goxel/"
 distfiles="https://github.com/guillaumechereau/goxel/archive/v${version}.tar.gz"
 checksum=dfb91e62bdd5332e3938923db924bae43f12eaa181040d16e4cc7082316adf1c
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/gpart/template b/srcpkgs/gpart/template
index d222fbf9a784..3c7332430024 100644
--- a/srcpkgs/gpart/template
+++ b/srcpkgs/gpart/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/baruch/gpart"
 distfiles="https://github.com/baruch/gpart/archive/${version}.tar.gz"
 checksum=ec56d12ec9ffdb9877c12692ea6e51620b1ae44473d3d253b27fc31ed9ebb4dd
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gperftools/template b/srcpkgs/gperftools/template
index de7e9423d343..859e6a4e874e 100644
--- a/srcpkgs/gperftools/template
+++ b/srcpkgs/gperftools/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/gperftools/gperftools"
 distfiles="${homepage}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=240deacdd628b6459671b83eb0c4db8e97baadf659f25b92e9a078d536bd513e
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	# needed by some newly enabled code
diff --git a/srcpkgs/gpgme/template b/srcpkgs/gpgme/template
index 072da12708d4..62f7384c0bf9 100644
--- a/srcpkgs/gpgme/template
+++ b/srcpkgs/gpgme/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.gnupg.org/software/gpgme/index.html"
 distfiles="https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-${version}.tar.bz2"
 checksum=eebc3c1b27f1c8979896ff361ba9bb4778b508b2496c2fc10e3775a40b1de1ad
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" ac_cv_sys_file_offset_bits=no"
diff --git a/srcpkgs/gpick/template b/srcpkgs/gpick/template
index b30108334144..aad5569a3320 100644
--- a/srcpkgs/gpick/template
+++ b/srcpkgs/gpick/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/thezbyg/gpick"
 distfiles="https://github.com/thezbyg/gpick/archive/${pkgname}-${version}.tar.gz"
 checksum=7d02be171cc88c44ad3e3572c0922bbabedc9d542b989f324fca9d5db3161e9c
+patch_args=-Np0
 
 post_install() {
 	rm -rf ${DESTDIR}/usr/share/doc
diff --git a/srcpkgs/gpm/template b/srcpkgs/gpm/template
index 360f58668c53..534422693feb 100644
--- a/srcpkgs/gpm/template
+++ b/srcpkgs/gpm/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.nico.schottelius.org/software/gpm/"
 distfiles="http://www.nico.schottelius.org/software/gpm/archives/gpm-${version}.tar.lzma"
 checksum=a955053b36556ffa7c628ce18fd6de7d625966573fa412fb08869533d8f7385c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gpsbabel/template b/srcpkgs/gpsbabel/template
index 24c0a420e09d..12305e0fe6e3 100644
--- a/srcpkgs/gpsbabel/template
+++ b/srcpkgs/gpsbabel/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.gpsbabel.org/"
 distfiles="https://github.com/gpsbabel/${pkgname}/archive/${pkgname}_${version//./_}.tar.gz"
 checksum=30b186631fb43db576b8177385ed5c31a5a15c02a6bc07bae1e0d7af9058a797
+patch_args=-Np0
 
 replaces="gpsbabel-gui>=0"
 
diff --git a/srcpkgs/gpsd/template b/srcpkgs/gpsd/template
index 4198bf214936..6d76d3417361 100644
--- a/srcpkgs/gpsd/template
+++ b/srcpkgs/gpsd/template
@@ -18,6 +18,7 @@ distfiles="http://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-${version}
 checksum=3998a5cbb728e97f896f46c3c83301b1e6c5d859393e58c2fad8c5426774d571
 python_version=3	# Must be same version as scons
 system_accounts="gpsd"
+patch_args=-Np0
 
 subpackages="gpsd-devel gpsd-qt gpsd-qt-devel"
 if [ -z "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/grpc/template b/srcpkgs/grpc/template
index 60677cf4f68b..d0763bb7db4b 100644
--- a/srcpkgs/grpc/template
+++ b/srcpkgs/grpc/template
@@ -20,6 +20,7 @@ distfiles="${homepage}/archive/v${version}/${pkgname}-${version}.tar.gz
  https://github.com/abseil/abseil-cpp/archive/${_abseilver}/abseil-cpp-${_abseilver}.tar.gz"
 checksum="abd9e52c69000f2c051761cfa1f12d52d8b7647b6c66828a91d462e796f2aede
  35f22ef5cb286f09954b7cc4c85b5a3f6221c9d4df6b8c4a1e9d399555b366ee"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# need host grpc_cpp_plugin
diff --git a/srcpkgs/grub-customizer/template b/srcpkgs/grub-customizer/template
index 67f3cfb3e7ee..f0ead5f9e0ed 100644
--- a/srcpkgs/grub-customizer/template
+++ b/srcpkgs/grub-customizer/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://launchpad.net/grub-customizer/"
 distfiles="https://launchpad.net/${pkgname}/${version%.*}/${version}/+download/${pkgname}_${version}.tar.gz"
 checksum=532f793eea4c6ee6cde4bc987966fa1924946c1da5e3c7b4d4a97f2689661ee0
+patch_args=-Np0
 
 pre_configure() {
 	# Modify desktop file for Void Linux
diff --git a/srcpkgs/gscan2pdf/template b/srcpkgs/gscan2pdf/template
index 9c137da14b8b..28cb1dd90131 100644
--- a/srcpkgs/gscan2pdf/template
+++ b/srcpkgs/gscan2pdf/template
@@ -18,6 +18,7 @@ homepage="http://gscan2pdf.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=e5c10a9e695674308d29fe8661c5bb7230e25dfbc098716c26a3188ef1e54074
 nocross=yes
+patch_args=-Np0
 
 do_check() {
 	# Tests require a Display server
diff --git a/srcpkgs/gscope3/template b/srcpkgs/gscope3/template
index ff6db18c2d4a..2a2d58f2f6f1 100644
--- a/srcpkgs/gscope3/template
+++ b/srcpkgs/gscope3/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://github.com/tefletch/gscope"
 distfiles="https://github.com/tefletch/gscope/archive/${_release}.tar.gz"
 checksum=06d0fd4351b4f8dc1850c81b07c112b0974bfb140f9fe56f8af6f865be3e0a2a
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gsl/template b/srcpkgs/gsl/template
index 1d6677032a30..c11a13e203bf 100644
--- a/srcpkgs/gsl/template
+++ b/srcpkgs/gsl/template
@@ -9,6 +9,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/gsl/gsl.html"
 distfiles="${GNU_SITE}/gsl/${pkgname}-${version}.tar.gz"
 checksum=b782339fc7a38fe17689cb39966c4d821236c28018b6593ddb6fd59ee40786a8
+patch_args=-Np0
 
 gsl-devel_package() {
 	depends="gsl>=${version}_${revision}"
diff --git a/srcpkgs/gsoap/template b/srcpkgs/gsoap/template
index c0cf0340566b..132f058dfe9a 100644
--- a/srcpkgs/gsoap/template
+++ b/srcpkgs/gsoap/template
@@ -14,6 +14,7 @@ homepage="http://www.cs.fsu.edu/~engelen/soap.html"
 distfiles="${SOURCEFORGE_SITE}/gsoap2/gsoap_${version}.zip"
 checksum=2ca21b5ab2b40d899566c559f71a1d51ed7eac3f00160ab78060027a3ee6488f
 disable_parallel_build=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 7b97a3e3184b..0cf2cdc941f9 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -37,6 +37,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://gstreamer.freedesktop.org"
 distfiles="${homepage}/src/${pkgname/1/}/${pkgname/1/}-${version}.tar.xz"
 checksum=74e806bc5595b18c70e9ca93571e27e79dfb808e5d2e7967afa952b52e99c85f
+patch_args=-Np0
 
 build_options="gir gme"
 build_options_default="gir"
diff --git a/srcpkgs/gst-plugins-base1/template b/srcpkgs/gst-plugins-base1/template
index 050521f071c3..ca6cdbf62db9 100644
--- a/srcpkgs/gst-plugins-base1/template
+++ b/srcpkgs/gst-plugins-base1/template
@@ -23,6 +23,7 @@ license="GPL-2.0-or-later, LGPL-2.0-or-later"
 homepage="https://gstreamer.freedesktop.org"
 distfiles="${homepage}/src/${pkgname/1/}/${pkgname/1/}-${version}.tar.xz"
 checksum=29e53229a84d01d722f6f6db13087231cdf6113dd85c25746b9b58c3d68e8323
+patch_args=-Np0
 
 build_options="cdparanoia gir sndio"
 build_options_default="cdparanoia gir"
diff --git a/srcpkgs/gst123/template b/srcpkgs/gst123/template
index f3a2d41316b2..fa17cc86b1f3 100644
--- a/srcpkgs/gst123/template
+++ b/srcpkgs/gst123/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://space.twc.de/~stefan/gst123.php/"
 distfiles="http://space.twc.de/~stefan/gst123/gst123-$version.tar.bz2"
 checksum=c7b4729773f66cc679e94df76bcc6a95a2222192730f906e527e72624f084a7d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gstreamermm/template b/srcpkgs/gstreamermm/template
index 863e982f34ea..54bec6d8dc2d 100644
--- a/srcpkgs/gstreamermm/template
+++ b/srcpkgs/gstreamermm/template
@@ -12,6 +12,7 @@ homepage="https://gstreamer.freedesktop.org/bindings/cplusplus.html"
 license="GPL-2, GPL-2.1"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=be58fe9ef7d7e392568ec85e80a84f4730adbf91fb0355ff7d7c616675ea8d60
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/gthumb/template b/srcpkgs/gthumb/template
index ed6afee1b837..e383495da80a 100644
--- a/srcpkgs/gthumb/template
+++ b/srcpkgs/gthumb/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://live.gnome.org/gthumb"
 distfiles="${GNOME_SITE}/gthumb/${version%.*}/gthumb-${version}.tar.xz"
 checksum=fdeae42818378f9b3cab00604eeeb5b7c0a7a5ecfe69de08b993867746435c93
+patch_args=-Np0
 
 LDFLAGS="-fPIC"
 
diff --git a/srcpkgs/gtk-sharp/template b/srcpkgs/gtk-sharp/template
index f3125a457881..d20183b8daad 100644
--- a/srcpkgs/gtk-sharp/template
+++ b/srcpkgs/gtk-sharp/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 short_desc="Graphical User Interface Toolkit for mono and .Net (Gtk#)"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=6440f571416267ae0cb5698071d087b31e3084693fa2c829b1db37ca7ea2c3a2
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	_have_mdoc="no"
diff --git a/srcpkgs/gtk-sharp2/template b/srcpkgs/gtk-sharp2/template
index 3137a6310b25..07e49e956fe7 100644
--- a/srcpkgs/gtk-sharp2/template
+++ b/srcpkgs/gtk-sharp2/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-only"
 homepage="https://www.mono-project.com/docs/gui/gtksharp/"
 distfiles="https://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-${version}.tar.gz"
 checksum=02680578e4535441064aac21d33315daa009d742cab8098ac8b2749d86fffb6a
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	_have_mdoc="no"
diff --git a/srcpkgs/gtk-theme-config/template b/srcpkgs/gtk-theme-config/template
index 6dd97132c14c..66ce7d1851fb 100644
--- a/srcpkgs/gtk-theme-config/template
+++ b/srcpkgs/gtk-theme-config/template
@@ -13,6 +13,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/satya164/gtk-theme-config"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=174aac3ea43966168d120dbd9e0f23d7900d095ee1b0cf32472d59b0fdea8448
+patch_args=-Np0
 
 pre_build() {
 	local _p _cflags _ldflags
diff --git a/srcpkgs/gtkglext/template b/srcpkgs/gtkglext/template
index 737a97415982..640d422140c7 100644
--- a/srcpkgs/gtkglext/template
+++ b/srcpkgs/gtkglext/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://projects.gnome.org/gtkglext"
 distfiles="${SOURCEFORGE_SITE}/gtkglext/gtkglext/${version}/gtkglext-${version}.tar.gz"
 checksum=e5073f3c6b816e7fa67d359d9745a5bb5de94a628ac85f624c992925a46844f9
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gtkpod/template b/srcpkgs/gtkpod/template
index bfcb41e62193..5cb367989c0b 100644
--- a/srcpkgs/gtkpod/template
+++ b/srcpkgs/gtkpod/template
@@ -16,6 +16,7 @@ distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=a57dc8ae9138e0cb4cee98691e7a95001130c9ea7823e6a75cc72503facd3a76
 # Line 55: print in python 2 style
 python_version=2
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gtkspell/template b/srcpkgs/gtkspell/template
index bf480eaae320..3b95f95dfed3 100644
--- a/srcpkgs/gtkspell/template
+++ b/srcpkgs/gtkspell/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://gtkspell.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=8fc7dc560167b2cb7193e76aca625a152dc19b0ebf49816b78539cbb90d80d02
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' \
diff --git a/srcpkgs/gtypist/template b/srcpkgs/gtypist/template
index d4bf9dc41846..f9e1bd306359 100644
--- a/srcpkgs/gtypist/template
+++ b/srcpkgs/gtypist/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.gnu.org/software/gtypist/"
 distfiles="$GNU_SITE/gtypist/gtypist-${version}.tar.xz"
 checksum="c13af40b12479f8219ffa6c66020618c0ce305ad305590fde02d2c20eb9cf977"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf
diff --git a/srcpkgs/guake/template b/srcpkgs/guake/template
index 9fbc1895da95..c31b734bc58a 100644
--- a/srcpkgs/guake/template
+++ b/srcpkgs/guake/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://guake-project.org/"
 distfiles="${PYPI_SITE}/g/guake/guake-${version}.tar.gz"
 checksum=31fd7d6f62aa0a5e0121e240682e6a9e5ce61cdb266f9438987837f52d552e47
+patch_args=-Np0
 
 pre_build() {
 	GUAKE_SCHEMA_DIR="/usr/share/glib-2.0/schemas"
diff --git a/srcpkgs/guile/template b/srcpkgs/guile/template
index f9ce43c06709..60eaa34eb6eb 100644
--- a/srcpkgs/guile/template
+++ b/srcpkgs/guile/template
@@ -14,6 +14,7 @@ homepage="http://www.gnu.org/software/guile"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=44b4c5fbbe257ccdebea18420212c9b3e90c3c86a54920d8554039fc6769a007
 subpackages="libguile guile-devel"
+patch_args=-Np0
 
 if [ "$XBPS_ENDIAN" != "$XBPS_TARGET_ENDIAN" ]; then
 	broken="opposite-endian host generates broken files"
diff --git a/srcpkgs/guile1.8/template b/srcpkgs/guile1.8/template
index 2f575000cbfe..47192116554f 100644
--- a/srcpkgs/guile1.8/template
+++ b/srcpkgs/guile1.8/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="https://www.gnu.org/software/guile/guile.html"
 distfiles="${GNU_SITE}/${pkgname/1.8/}/${pkgname/1.8/}-${version}.tar.gz"
 checksum=c3471fed2e72e5b04ad133bbaaf16369e8360283679bcf19800bc1b381024050
+patch_args=-Np0
 
 post_install() {
 	# conflicts with guile-2.0
diff --git a/srcpkgs/guitarix2/template b/srcpkgs/guitarix2/template
index 2d066a454c33..8435021d0db0 100644
--- a/srcpkgs/guitarix2/template
+++ b/srcpkgs/guitarix2/template
@@ -19,6 +19,7 @@ license="GPL-3.0-or-later"
 homepage="http://guitarix.org"
 distfiles="${SOURCEFORGE_SITE}/guitarix/guitarix/guitarix2-${version}.tar.xz"
 checksum=797e46e07148fba89e46fac4efe73a5b3a98f070bca85db3d143de781b142c80
+patch_args=-Np0
 
 build_options="avahi bluez"
 desc_option_avahi="Build with avahi support"
diff --git a/srcpkgs/gummiboot/template b/srcpkgs/gummiboot/template
index 68e6f5be926c..966eae785ea9 100644
--- a/srcpkgs/gummiboot/template
+++ b/srcpkgs/gummiboot/template
@@ -15,6 +15,7 @@ license="LGPL-2.0-or-later"
 homepage="https://pkgs.alpinelinux.org/package/edge/main/x86/gummiboot"
 distfiles="https://dev.alpinelinux.org/archive/gummiboot/gummiboot-${version}.tar.gz"
 checksum=2b649a6eb22007cd34bb355ba4ca6c1a8058e115c13048985f09a0f11f3d5295
+patch_args=-Np0
 
 CFLAGS="-std=gnu89"
 
diff --git a/srcpkgs/gupnp-igd/template b/srcpkgs/gupnp-igd/template
index 314a36472b85..416943f715b6 100644
--- a/srcpkgs/gupnp-igd/template
+++ b/srcpkgs/gupnp-igd/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="http://gupnp.org"
 distfiles="${GNOME_SITE}/${pkgname}/0.2/${pkgname}-${version}.tar.xz"
 checksum=8b4a1aa38bacbcac2c1755153147ead7ee9af7d4d1f544b6577cfc35e10e3b20
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/guvcview/template b/srcpkgs/guvcview/template
index 447b27aecf50..be0eba3ceed4 100644
--- a/srcpkgs/guvcview/template
+++ b/srcpkgs/guvcview/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="http://guvcview.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-src-${version}.tar.gz"
 checksum=95381cef5ee139e15f90b79d1425cc22bbaae43f87452cdce6674636aff37e85
+patch_args=-Np0
 
 post_extract() {
 	sed '31a#include <locale.h>' -i  guvcview/guvcview.c
diff --git a/srcpkgs/gwenhywfar/template b/srcpkgs/gwenhywfar/template
index c6e01f4bea86..fb27f03a88fd 100644
--- a/srcpkgs/gwenhywfar/template
+++ b/srcpkgs/gwenhywfar/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/aqbanking/gwenhywfar"
 distfiles="https://github.com/aqbanking/gwenhywfar/archive/${version}.tar.gz"
 checksum=9f2876770824a283d02fd730bb1f7a98970fa6f20121f4af433d6698831c3a84
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/gxemul/template b/srcpkgs/gxemul/template
index dabacd79492b..ea1ffa47d802 100644
--- a/srcpkgs/gxemul/template
+++ b/srcpkgs/gxemul/template
@@ -11,6 +11,7 @@ changelog="http://gavare.se/gxemul/gxemul-stable/HISTORY.html"
 distfiles="http://gavare.se/gxemul/src/gxemul-${version}.tar.gz"
 checksum=a703ac7965feb3c701c7677d78c353f0efa1af4d36a9508fb045eb63dd571547
 nocross="./_testpri: cannot execute binary file: Exec format error"
+patch_args=-Np0
 
 do_configure() {
 	PREFIX=/usr MANDIR=${DESTDIR}/usr/share/man ./configure
diff --git a/srcpkgs/gzdoom/template b/srcpkgs/gzdoom/template
index ce1204db0d01..1ecb236fea60 100644
--- a/srcpkgs/gzdoom/template
+++ b/srcpkgs/gzdoom/template
@@ -22,6 +22,7 @@ checksum="21eb1a221dae532a6c29f243584be3d5454f8eb4da85a67e405115f89666611d
  e0b85ca089a3714968f56acc9525f352dbec14f15e88e0aef1cdece64c4f3cbf"
 skip_extraction="${pkgname}_${version}_amd64.deb"
 nocross=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" musl-fts-devel libexecinfo-devel"
diff --git a/srcpkgs/h2o/template b/srcpkgs/h2o/template
index 3b300024f05c..054560ce7e78 100644
--- a/srcpkgs/h2o/template
+++ b/srcpkgs/h2o/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://h2o.examp1e.net/"
 distfiles="https://github.com/h2o/h2o/archive/v${version}.tar.gz"
 checksum=f8cbc1b530d85ff098f6efc2c3fdbc5e29baffb30614caac59d5c710f7bda201
+patch_args=-Np0
 
 system_accounts="h2o"
 
diff --git a/srcpkgs/halibut/template b/srcpkgs/halibut/template
index e428d771ea86..9ffa4c05c386 100644
--- a/srcpkgs/halibut/template
+++ b/srcpkgs/halibut/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://www.chiark.greenend.org.uk/~sgtatham/halibut/"
 distfiles="http://www.chiark.greenend.org.uk/~sgtatham/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=1aedfb6240f27190c36a390fcac9ce732edbdbaa31c85ee675b994e2b083163f
+patch_args=-Np0
 
 CFLAGS='-I../charset -I../build -fcommon'
 
diff --git a/srcpkgs/hamlib/template b/srcpkgs/hamlib/template
index 086b6c614c1f..bd96ed226bbc 100644
--- a/srcpkgs/hamlib/template
+++ b/srcpkgs/hamlib/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later, GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/hamlib/"
 distfiles="${SOURCEFORGE_SITE}/hamlib/${version}/${pkgname}-${version}.tar.gz"
 checksum=e200b22f307e9a0c826187c2b08fe81c7d0283cf07056e6db3463d1481580fd5
+patch_args=-Np0
 
 pre_configure() {
 	CFLAGS+=" -DNO_POSIX_2008_LOCALE -D_GNU_SOURCE"
diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index 6992bc520ed3..e1bf58b62889 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -24,6 +24,7 @@ homepage="https://handbrake.fr/"
 distfiles="https://github.com/HandBrake/HandBrake/releases/download/${version}/HandBrake-${version}-source.tar.bz2"
 checksum=218a37d95f48b5e7cf285363d3ab16c314d97627a7a710cab3758902ae877f85
 nocross=yes
+patch_args=-Np0
 
 build_options="fdk_aac nvenc"
 
diff --git a/srcpkgs/hardinfo/template b/srcpkgs/hardinfo/template
index 6c2745d675c3..a8c28a32a11e 100644
--- a/srcpkgs/hardinfo/template
+++ b/srcpkgs/hardinfo/template
@@ -13,6 +13,7 @@ homepage="http://sourceforge.net/projects/hardinfo.berlios/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}.berlios/${pkgname}-${version}.tar.bz2"
 checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a
 lib32disabled=yes
+patch_args=-Np0
 
 post_patch() {
 	local _arch
diff --git a/srcpkgs/heaptrack/template b/srcpkgs/heaptrack/template
index f4f4c35044f7..347ce6b4be41 100644
--- a/srcpkgs/heaptrack/template
+++ b/srcpkgs/heaptrack/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/KDE/heaptrack"
 distfiles="https://github.com/KDE/heaptrack/archive/v${version}.tar.gz"
 checksum=f299a4846b80e607a412f439e17cddae13f0529701ffdb05eaa7ba878865717e
+patch_args=-Np0
 
 heaptrack-gui_package() {
 	short_desc+=" - GUI"
diff --git a/srcpkgs/hedgewars/template b/srcpkgs/hedgewars/template
index 7060dbc37d95..0dc528ff7ce0 100644
--- a/srcpkgs/hedgewars/template
+++ b/srcpkgs/hedgewars/template
@@ -21,6 +21,7 @@ nopie_files="/usr/bin/hwengine"
 nocross="Needs investigation: fails to link hwengine"
 replaces="hedgewars-data>=0"
 export CMAKE_GENERATOR="Unix Makefiles"
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	x86_64*|ppc64le|ppc64)
diff --git a/srcpkgs/hexchat/template b/srcpkgs/hexchat/template
index 90b8de48193a..580dbd4a5eb5 100644
--- a/srcpkgs/hexchat/template
+++ b/srcpkgs/hexchat/template
@@ -20,6 +20,7 @@ distfiles="https://dl.hexchat.net/hexchat/${pkgname}-${version}.tar.xz"
 checksum=901a9d13db5a4da69b827f6093306bbd16863dc49016f7668bd3e4506512e882
 build_options="LuaJIT"
 lib32disabled=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	arm*-musl) : "LuaJIT is broken for musl cross arches" ;;
diff --git a/srcpkgs/hexer/template b/srcpkgs/hexer/template
index 2c2b7486a8d8..89b88a46a13e 100644
--- a/srcpkgs/hexer/template
+++ b/srcpkgs/hexer/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://devel.ringlet.net/editors/hexer/"
 distfiles="https://devel.ringlet.net/files/editors/hexer/hexer-${version}.tar.xz"
 checksum=e6b84ace5283825943f88ce7ec4ae836ec15ba41978b3a858d6d478cfe09ff94
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYRIGHT
diff --git a/srcpkgs/heyu/template b/srcpkgs/heyu/template
index 93b3ad7cc582..0bd88177c04d 100644
--- a/srcpkgs/heyu/template
+++ b/srcpkgs/heyu/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.heyu.org"
 distfiles="https://github.com/HeyuX10Automation/heyu/archive/v${version}.tar.gz"
 checksum=621a20f45eef62070b3f95ad17ecbc3e7e1f7352d25dac86093ff6938b606baa
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/hfsprogs/template b/srcpkgs/hfsprogs/template
index f1e0c690511d..12b6d3a31265 100644
--- a/srcpkgs/hfsprogs/template
+++ b/srcpkgs/hfsprogs/template
@@ -14,6 +14,7 @@ license="APSL-2.0"
 homepage="https://www.opensource.apple.com/"
 distfiles="https://src.fedoraproject.org/repo/pkgs/hfsplus-tools/diskdev_cmds-${version}.tar.gz/${_md5sum}/diskdev_cmds-${version}.tar.gz"
 checksum=b01b203a97f9a3bf36a027c13ddfc59292730552e62722d690d33bd5c24f5497
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/higan/template b/srcpkgs/higan/template
index 500c11f64aa4..c744321efe45 100644
--- a/srcpkgs/higan/template
+++ b/srcpkgs/higan/template
@@ -17,6 +17,7 @@ license="GPL-3.0-or-later, ISC"
 homepage="https://byuu.org/emulation/higan/"
 distfiles="https://byuu.org/download/higan/higan_v${version}-source.zip"
 checksum=1b70d85454aaae557fd5ba5aaed9add8cb8c939f2b7a07a6d3734f971bb07ab7
+patch_args=-Np0
 
 build_options="icarus"
 build_options_default="icarus"
diff --git a/srcpkgs/hiredis/template b/srcpkgs/hiredis/template
index 05e5d6cf565f..c4cca466c023 100644
--- a/srcpkgs/hiredis/template
+++ b/srcpkgs/hiredis/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/redis/hiredis"
 distfiles="https://github.com/redis/hiredis/archive/v${version}.tar.gz"
 checksum=2a0b5fe5119ec973a0c1966bfc4bd7ed39dbce1cb6d749064af9121fe971936f
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/hitch/template b/srcpkgs/hitch/template
index 805170a687f6..bf3889702cef 100644
--- a/srcpkgs/hitch/template
+++ b/srcpkgs/hitch/template
@@ -14,6 +14,7 @@ homepage="https://hitch-tls.org/"
 distfiles="https://hitch-tls.org/source/hitch-${version}.tar.gz"
 checksum=c97ef8f1e115156640c40dfdfe9662d5f6d57a796fccad3bbad198ec797ce5c4
 system_accounts="_hitch"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e "s/grep -Pq/grep -q/" -e 's/\\t/\t/' \
diff --git a/srcpkgs/hlint/template b/srcpkgs/hlint/template
index 16fbb03ce2b9..7a68e466759f 100644
--- a/srcpkgs/hlint/template
+++ b/srcpkgs/hlint/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/ndmitchell/${pkgname}/archive/v${version}.tar.gz"
 checksum=207539d3627efd3caed9e6fd3b1aeb8f1eb64553f1f9f166090adbf2fb71e172
 nocross=yes # Can't yet cross compile Haskell
 nopie_files="/usr/bin/hlint"
+patch_args=-Np0
 
 post_install() {
 	rm -f ${DESTDIR}/usr/bin/engine
diff --git a/srcpkgs/hosts-update/template b/srcpkgs/hosts-update/template
index 5d872b4f4e89..eaf1d2f63a30 100644
--- a/srcpkgs/hosts-update/template
+++ b/srcpkgs/hosts-update/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://github.com/graysky2/hosts-update"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum="9a0fdb028beaf9fa4c2ec5f1a0030fcfe1a996ea42b874b944ec07885ca0f2ba"
+patch_args=-Np0
 
 post_install() {
 	vlicense MIT
diff --git a/srcpkgs/hplip/template b/srcpkgs/hplip/template
index 397508c55a3f..3dc5da2ca413 100644
--- a/srcpkgs/hplip/template
+++ b/srcpkgs/hplip/template
@@ -33,6 +33,7 @@ homepage="https://developers.hp.com/hp-linux-imaging-and-printing"
 distfiles="${SOURCEFORGE_SITE}/hplip/hplip/${version}/hplip-${version}.tar.gz"
 checksum=36251189aa9cc349f6a3eacbb7ac3c4fd26fc9f087c9f75cee051010c85d2ddf
 conflicts="hplip-gui"
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libusb-1.0 -I${XBPS_CROSS_BASE}/${py3_inc}"
 
diff --git a/srcpkgs/hstr/template b/srcpkgs/hstr/template
index ee259a9eac03..443d455e8610 100644
--- a/srcpkgs/hstr/template
+++ b/srcpkgs/hstr/template
@@ -12,6 +12,7 @@ homepage="https://github.com/dvorka/hstr"
 changelog="https://raw.githubusercontent.com/dvorka/hstr/master/Changelog"
 distfiles="https://github.com/dvorka/hstr/archive/${version}.tar.gz"
 checksum=c7e7408671757b3f4be9c5a59b4e2d56e7a7b601ace2a94eb6b2b61f20ee890b
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i 's|ncursesw/curses.h|curses.h|g' src/include/hstr.h
diff --git a/srcpkgs/ht/template b/srcpkgs/ht/template
index 2506a2c97206..7535d6cca893 100644
--- a/srcpkgs/ht/template
+++ b/srcpkgs/ht/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://hte.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/hte/ht-source/${pkgname}-${version}.tar.bz2"
 checksum=31f5e8e2ca7f85d40bb18ef518bf1a105a6f602918a0755bc649f3f407b75d70
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/http-parser/template b/srcpkgs/http-parser/template
index a372064d4a79..67cf7f77d6c2 100644
--- a/srcpkgs/http-parser/template
+++ b/srcpkgs/http-parser/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/nodejs/http-parser"
 distfiles="${homepage}/archive/${_githash}.tar.gz"
 checksum=765a21444322ea2476ca1e3cfeb74d280eeb37f4713cf52d2bf398dabf6e4128
+patch_args=-Np0
 
 pre_install() {
 	vmkdir usr/lib/pkgconfig
diff --git a/srcpkgs/httpdirfs/template b/srcpkgs/httpdirfs/template
index 0028d235c5db..6b99f599778f 100644
--- a/srcpkgs/httpdirfs/template
+++ b/srcpkgs/httpdirfs/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/fangfufu/httpdirfs"
 distfiles="https://github.com/fangfufu/httpdirfs/archive/${version}.tar.gz"
 checksum=05be4d83434eaea002f550b77aed6c05ff135927662d53a6e2b224e766a50a9a
+patch_args=-Np0
 
 CFLAGS="-D_FILE_OFFSET_BITS=64"
 
diff --git a/srcpkgs/hugin/template b/srcpkgs/hugin/template
index 451e75fe6825..e3b975ff5298 100644
--- a/srcpkgs/hugin/template
+++ b/srcpkgs/hugin/template
@@ -19,6 +19,7 @@ homepage="http://hugin.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${pkgname}-${version%.*}/${pkgname}-${version}.tar.bz2"
 checksum=283e7601259a7914cb075333424410928a439dc5f84216f33e2fe55501fbcacb
 python_version=3
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" python3"
diff --git a/srcpkgs/hunspell/template b/srcpkgs/hunspell/template
index 929f4b1893e7..04144a0ade22 100644
--- a/srcpkgs/hunspell/template
+++ b/srcpkgs/hunspell/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1"
 homepage="https://hunspell.github.io/"
 distfiles="https://github.com/hunspell/hunspell/archive/v${version}.tar.gz"
 checksum=bb27b86eb910a8285407cf3ca33b62643a02798cf2eef468c0a74f6c3ee6bc8a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/i3status/template b/srcpkgs/i3status/template
index 5ef9f206834f..5edaa41782d5 100644
--- a/srcpkgs/i3status/template
+++ b/srcpkgs/i3status/template
@@ -16,6 +16,7 @@ homepage="https://www.i3wm.org/i3status/"
 distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
 checksum=ce89c9ff8565f62e88299f1a611229afdfc356b4e97368a5f8c4f06ad2fa1466
 conf_files="/etc/i3status.conf"
+patch_args=-Np0
 
 build_options="pulseaudio"
 build_options_default="pulseaudio"
diff --git a/srcpkgs/ibus-anthy/template b/srcpkgs/ibus-anthy/template
index 9b96fa820633..8e3bb449acd4 100644
--- a/srcpkgs/ibus-anthy/template
+++ b/srcpkgs/ibus-anthy/template
@@ -15,6 +15,7 @@ homepage="https://github.com/ibus/ibus/wiki"
 distfiles="https://github.com/ibus/${pkgname}/archive/${version}.tar.gz"
 checksum=57d42a302be72409708274aa680c6d7515077766853a2b9193b9974c9c6eeaf6
 make_check=extended
+patch_args=-Np0
 
 post_patch() {
 	2to3 -w gir/test.py
diff --git a/srcpkgs/ibus-avro/template b/srcpkgs/ibus-avro/template
index 22b51f29ee94..5067e69d7619 100644
--- a/srcpkgs/ibus-avro/template
+++ b/srcpkgs/ibus-avro/template
@@ -13,6 +13,7 @@ license="MPL-1.1"
 homepage="https://linux.omicronlab.com"
 distfiles="https://github.com/sarim/${pkgname}/archive/${version}.tar.gz"
 checksum=9d00f12f2d01916e56533fd0267173b644a57161770b60a0f4d9daa61fe8bd1a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -vfi
diff --git a/srcpkgs/id3lib/template b/srcpkgs/id3lib/template
index 44cb7f55f1dd..7452bae122e9 100644
--- a/srcpkgs/id3lib/template
+++ b/srcpkgs/id3lib/template
@@ -11,6 +11,7 @@ license="LGPL-2.0-or-later"
 homepage="http://id3lib.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=2749cc3c0cd7280b299518b1ddf5a5bcfe2d1100614519b68702230e26c7d079
+patch_args=-Np0
 
 pre_configure() {
 	libtoolize -fc
diff --git a/srcpkgs/ifupdown/template b/srcpkgs/ifupdown/template
index 584d52eea19b..fd60247ccc7f 100644
--- a/srcpkgs/ifupdown/template
+++ b/srcpkgs/ifupdown/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://tracker.debian.org/pkg/ifupdown"
 distfiles="http://http.debian.net/debian/pool/main/i/ifupdown/ifupdown_${version}.tar.xz"
 checksum=d754426562a63b7d0cf06e8b00abe353fe9fd7ac5aabe3745f6d4e294ca233a8
+patch_args=-Np0
 
 make_dirs="/etc/network/interfaces.d 0755 root root
  /etc/network/if-pre-up.d 0755 root root
diff --git a/srcpkgs/igt-gpu-tools/template b/srcpkgs/igt-gpu-tools/template
index 3b222ecd18d8..0bcf2cfe2c7f 100644
--- a/srcpkgs/igt-gpu-tools/template
+++ b/srcpkgs/igt-gpu-tools/template
@@ -17,6 +17,7 @@ distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.xz"
 checksum=40454d8f0484ea2477862007398a08eef78a6c252c4defce1c934548593fdd11
 # tests don't behave in containers
 make_check=ci-skip
+patch_args=-Np0
 
 lib32disabled=yes
 archs="i686* x86_64*"
diff --git a/srcpkgs/ilmbase/template b/srcpkgs/ilmbase/template
index 1dd24b5335f5..ca4c57337f15 100644
--- a/srcpkgs/ilmbase/template
+++ b/srcpkgs/ilmbase/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://www.openexr.com/"
 distfiles="https://github.com/openexr/openexr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=8e5bfd89f4ae1221f84216a163003edddf0d37b8aac4ee42b46edb55544599b9
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/imagescan/template b/srcpkgs/imagescan/template
index 0a0cb5e2b3f8..2deac5f8b877 100644
--- a/srcpkgs/imagescan/template
+++ b/srcpkgs/imagescan/template
@@ -18,6 +18,7 @@ homepage="https://gitlab.com/utsushi/imagescan/"
 distfiles="http://support.epson.net/linux/src/scanner/imagescanv3/debian/${pkgname}_${version}.orig.tar.gz"
 checksum=9440b103b8218863ab08e891d2a9dc9ef52db51485e11017d52fb2036e279477
 mutable_files="/etc/sane.d/dll.d/utsushi"
+patch_args=-Np0
 
 CFLAGS="-Wno-error"
 CXXFLAGS="-Wno-error"
diff --git a/srcpkgs/imgbrd-grabber/template b/srcpkgs/imgbrd-grabber/template
index d1e0ef6a5177..50232eb2998f 100644
--- a/srcpkgs/imgbrd-grabber/template
+++ b/srcpkgs/imgbrd-grabber/template
@@ -14,6 +14,7 @@ homepage="https://bionus.github.io/imgbrd-grabber"
 changelog="https://github.com/Bionus/imgbrd-grabber/releases"
 distfiles="https://github.com/Bionus/imgbrd-grabber/archive/v${version}.tar.gz"
 checksum=4ecb247f92fb4ba7c3245439bcd221e8c64dd037c1761065a663adb6b4571740
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake"
diff --git a/srcpkgs/imwheel/template b/srcpkgs/imwheel/template
index 85496586c7d9..5da49f1e4ff5 100644
--- a/srcpkgs/imwheel/template
+++ b/srcpkgs/imwheel/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="http://imwheel.sourceforge.net/"
 distfiles="https://sourceforge.net/projects/${pkgname}/files/${pkgname}-source/${version}pre12/${pkgname}-${version}pre12.tar.gz"
 checksum=2320ed019c95ca4d922968e1e1cbf0c075a914e865e3965d2bd694ca3d57cfe3
+patch_args=-Np0
 
 pre_configure() {
 	mv configure.{in,ac}
diff --git a/srcpkgs/indent/template b/srcpkgs/indent/template
index 3616080326f3..522b94c0e68d 100644
--- a/srcpkgs/indent/template
+++ b/srcpkgs/indent/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/s/indent/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=e77d68c0211515459b8812118d606812e300097cfac0b4e9fb3472664263bb8b
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's#^docdir = .*$#docdir = @docdir@#' doc/Makefile.in
diff --git a/srcpkgs/injeqt/template b/srcpkgs/injeqt/template
index 3efad365a492..3159202729e0 100644
--- a/srcpkgs/injeqt/template
+++ b/srcpkgs/injeqt/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/vogel/injeqt/"
 distfiles="https://github.com/vogel/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=77540cedb0b26affe993dd18124d796059e34c80a51d9ae6433fdff1860db135
+patch_args=-Np0
 
 CXXFLAGS="-fno-lifetime-dse -Wno-error=cast-align"
 
diff --git a/srcpkgs/input-utils/template b/srcpkgs/input-utils/template
index 35b48c548e26..319161f0e5db 100644
--- a/srcpkgs/input-utils/template
+++ b/srcpkgs/input-utils/template
@@ -10,6 +10,7 @@ license="GPL-2"
 distfiles="https://www.kraxel.org/releases/input/input-${version}.tar.gz"
 checksum=9142c34d508f2da4cd53d6348fee77e30b69c35c8dabfadfc5a6db09c4bd8087
 wrksrc="input-${version}"
+patch_args=-Np0
 
 do_install() {
 	vman lsinput.man lsinput.8
diff --git a/srcpkgs/inspectrum/template b/srcpkgs/inspectrum/template
index 83ba7b100956..232164d753f2 100644
--- a/srcpkgs/inspectrum/template
+++ b/srcpkgs/inspectrum/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/miek/inspectrum"
 distfiles="https://github.com/miek/inspectrum/archive/v${version}.tar.gz"
 checksum=7be5be96f50b0cea5b3dd647f06cc00adfa805a395484aa2ab84cf3e49b7227b
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-qmake qt5-host-tools"
diff --git a/srcpkgs/invada-studio-plugins-lv2/template b/srcpkgs/invada-studio-plugins-lv2/template
index 6bd6ddf74a5b..ee7f7a8ffe23 100644
--- a/srcpkgs/invada-studio-plugins-lv2/template
+++ b/srcpkgs/invada-studio-plugins-lv2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://launchpad.net/invada-studio/"
 distfiles="https://launchpad.net/invada-studio/lv2/1.2/+download/${pkgname}_${version}-nopkg.tgz"
 checksum=c6cac7c32effc6b3052e3b017133244f385ef8e053147859d88eae6facaf7d12
+patch_args=-Np0
 
 post_patch() {
 	find . -name Makefile -exec \
diff --git a/srcpkgs/io.elementary.calendar/template b/srcpkgs/io.elementary.calendar/template
index 7ff446f97d15..936700ba2cd8 100644
--- a/srcpkgs/io.elementary.calendar/template
+++ b/srcpkgs/io.elementary.calendar/template
@@ -17,6 +17,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/elementary/calendar"
 distfiles="${homepage}/archive/${_git_commit}.tar.gz"
 checksum=3be3851baeed67144e5cbed209b2c1b982fe9830db13372e3051423295dee345
+patch_args=-Np0
 
 libio.elementary.calendar_package() {
 	short_desc+=" - library"
diff --git a/srcpkgs/io.elementary.code/template b/srcpkgs/io.elementary.code/template
index 8d43ad4130d2..c29de4c8c0ba 100644
--- a/srcpkgs/io.elementary.code/template
+++ b/srcpkgs/io.elementary.code/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/elementary/code"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=d84b38193b72cd93995aae604358c83c5b6976d8472ce985027b947cfed990bf
+patch_args=-Np0
 
 libio.elementary.code_package() {
 	short_desc+=" - library"
diff --git a/srcpkgs/io.elementary.music/template b/srcpkgs/io.elementary.music/template
index de6ae0f94d90..a4e05603f35b 100644
--- a/srcpkgs/io.elementary.music/template
+++ b/srcpkgs/io.elementary.music/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/elementary/music"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=ed7cba3b07189273890b321b21cda198f18b102e4466eb7207c0b5f27b31dfc9
+patch_args=-Np0
 
 libio.elementary.music_package() {
 	short_desc+=" - library"
diff --git a/srcpkgs/iotop/template b/srcpkgs/iotop/template
index 84a9f7886162..8af2af900ba0 100644
--- a/srcpkgs/iotop/template
+++ b/srcpkgs/iotop/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://guichaz.free.fr/iotop"
 distfiles="http://guichaz.free.fr/iotop/files/iotop-${version}.tar.bz2"
 checksum=3adea2a24eda49bbbaeb4e6ed2042355b441dbd7161e883067a02bfc8dcef75b
+patch_args=-Np0
 
 post_install() {
 	chmod 644 ${DESTDIR}/usr/share/man/man8/iotop.8
diff --git a/srcpkgs/iouyap/template b/srcpkgs/iouyap/template
index 09cd966c6e12..a7ddbbccf8c0 100644
--- a/srcpkgs/iouyap/template
+++ b/srcpkgs/iouyap/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="https://github.com/GNS3/iouyap"
 distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
 checksum=181850a4ce73a4d4035f9eb39b2656ae31d360f18b577ee65f5149132da3eccf
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/ipmitool/template b/srcpkgs/ipmitool/template
index eab8e525c878..7d48962c2230 100644
--- a/srcpkgs/ipmitool/template
+++ b/srcpkgs/ipmitool/template
@@ -10,6 +10,7 @@ license="BSD"
 homepage="http://ipmitool.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=0c1ba3b1555edefb7c32ae8cd6a3e04322056bc087918f07189eeedfc8b81e01
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/ipp-usb/template b/srcpkgs/ipp-usb/template
index 98b472d15998..79f18ba1d540 100644
--- a/srcpkgs/ipp-usb/template
+++ b/srcpkgs/ipp-usb/template
@@ -14,6 +14,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/OpenPrinting/ipp-usb"
 distfiles="https://github.com/OpenPrinting/ipp-usb/archive/$version.tar.gz"
 checksum=06855b4da0bcaad430a42534c117a3f3224c4f6b0f6321da898e3422ae97ae15
+patch_args=-Np0
 
 post_install() {
 	vsv ipp-usb
diff --git a/srcpkgs/ippusbxd/template b/srcpkgs/ippusbxd/template
index e81064e8b91d..0cf0278b951a 100644
--- a/srcpkgs/ippusbxd/template
+++ b/srcpkgs/ippusbxd/template
@@ -14,6 +14,7 @@ homepage="https://github.com/OpenPrinting/ippusbxd"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=996a572c8f6d1426a58ad3b95c21fea7f5b64d5db34a825c543d7869b3c77891
 conf_files="/etc/apparmor.d/usr.sbin.ippusbxd"
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/iptables/template b/srcpkgs/iptables/template
index 0d0ed43206db..3b0269d22f1e 100644
--- a/srcpkgs/iptables/template
+++ b/srcpkgs/iptables/template
@@ -20,6 +20,7 @@ alternatives="
  iptables:iptables:/usr/bin/xtables-legacy-multi
  iptables:iptables-restore:/usr/bin/xtables-legacy-multi
  iptables:iptables-save:/usr/bin/xtables-legacy-multi"
+patch_args=-Np0
 
 pre_build() {
 	rm include/linux/types.h
diff --git a/srcpkgs/iscan/template b/srcpkgs/iscan/template
index 18c0d969766c..c39d09a19fa1 100644
--- a/srcpkgs/iscan/template
+++ b/srcpkgs/iscan/template
@@ -17,6 +17,7 @@ distfiles="http://support.epson.net/linux/src/scanner/iscan/${pkgname}_${version
 checksum=597b9913de42d7a27f95bc82e533cbe778121ba13e3a03bc037f8d09a43447d5
 repository=nonfree
 LDFLAGS="-ldl -lpng16"
+patch_args=-Np0
 
 post_configure() {
 	# fix wrongly created link
diff --git a/srcpkgs/iucode-tool/template b/srcpkgs/iucode-tool/template
index d28c10461053..99a6f0f6b952 100644
--- a/srcpkgs/iucode-tool/template
+++ b/srcpkgs/iucode-tool/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://gitlab.com/iucode-tool/iucode-tool/wikis/home"
 distfiles="https://gitlab.com/iucode-tool/releases/raw/latest/iucode-tool_${version}.tar.xz"
 checksum=12b88efa4d0d95af08db05a50b3dcb217c0eb2bfc67b483779e33d498ddb2f95
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends="argp-standalone" ;;
diff --git a/srcpkgs/iverilog/template b/srcpkgs/iverilog/template
index b0f12c03fa84..1159f49d35d0 100644
--- a/srcpkgs/iverilog/template
+++ b/srcpkgs/iverilog/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://iverilog.icarus.com/"
 distfiles="https://github.com/steveicarus/iverilog/archive/v${version/./_}.tar.gz"
 checksum=6327fb900e66b46803d928b7ca439409a0dc32731d82143b20387be0833f1c95
+patch_args=-Np0
 
 nocross="draw_tt.exe: cannot execute binary file: Exec format error"
 
diff --git a/srcpkgs/iwd/template b/srcpkgs/iwd/template
index 3a1c0fc23121..c6b0f6fc503e 100644
--- a/srcpkgs/iwd/template
+++ b/srcpkgs/iwd/template
@@ -21,6 +21,7 @@ make_dirs="/var/lib/iwd 0600 root root
  /etc/iwd 755 root root"
 # tests depend on kernel features
 make_check=extended
+patch_args=-Np0
 
 do_check() {
 	dbus-run-session make check
diff --git a/srcpkgs/j/template b/srcpkgs/j/template
index c9b0c669497c..c1681088ec1a 100644
--- a/srcpkgs/j/template
+++ b/srcpkgs/j/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://jsoftware.com/"
 distfiles="https://github.com/jsoftware/jsource/archive/j${_vrel}.tar.gz"
 checksum=6b1cdcc1a0c3d955e400cf676f115de51ef9d1da495d08721ee999f48f6f9209
+patch_args=-Np0
 
 _jsz="j${XBPS_TARGET_WORDSIZE}"
 _jtype="release"
diff --git a/srcpkgs/jack/template b/srcpkgs/jack/template
index 092d7292d343..5ab29e6a32b8 100644
--- a/srcpkgs/jack/template
+++ b/srcpkgs/jack/template
@@ -17,6 +17,7 @@ homepage="https://jackaudio.org/"
 distfiles="https://github.com/jackaudio/jack2/archive/v${version}.tar.gz"
 checksum=5a1d64118034d58529d68a9af42710f9d4843536257c496118065ea3d3e4ae2c
 python_version=3
+patch_args=-Np0
 
 # Package build options
 build_options="ffado zalsa"
diff --git a/srcpkgs/janet/template b/srcpkgs/janet/template
index d3c71796a070..5805a21c0115 100644
--- a/srcpkgs/janet/template
+++ b/srcpkgs/janet/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://janet-lang.org/"
 distfiles="https://github.com/janet-lang/janet/archive/v${version}.tar.gz"
 checksum=ed9350ad7f0270e67f18a78dae4910b9534f19cd3f20f7183b757171e8cc79a5
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/jbig2dec/template b/srcpkgs/jbig2dec/template
index d0c23438982d..3ccef4e8ea2d 100644
--- a/srcpkgs/jbig2dec/template
+++ b/srcpkgs/jbig2dec/template
@@ -13,6 +13,7 @@ license="AGPL-3.0-or-later"
 homepage="https://www.jbig2dec.com"
 distfiles="https://github.com/ArtifexSoftware/jbig2dec/archive/${version}.tar.gz"
 checksum=e81b787ad0b147a437a52d9ce7de1a8f429655e8aa030383b6b2dd8919373717
+patch_args=-Np0
 
 pre_configure() {
 	sed -i '$ d' autogen.sh
diff --git a/srcpkgs/jedit/template b/srcpkgs/jedit/template
index cf7ac8cdd201..9c5c764194bb 100644
--- a/srcpkgs/jedit/template
+++ b/srcpkgs/jedit/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://jedit.org"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${version}/${pkgname}${version}source.tar.bz2"
 checksum=76c16ae0168d9b64ecddd8bf08aa49ab352adb2c9687191bc71895a96a8dfe1d
+patch_args=-Np0
 
 post_patch() {
 	# skip junit stuff, fails in chroot
diff --git a/srcpkgs/jfsutils/template b/srcpkgs/jfsutils/template
index 22f153adb299..98d7a0c90fda 100644
--- a/srcpkgs/jfsutils/template
+++ b/srcpkgs/jfsutils/template
@@ -10,5 +10,6 @@ license="GPL-2.0-or-later"
 homepage="http://jfs.sourceforge.net"
 distfiles="http://jfs.sourceforge.net/project/pub/${pkgname}-${version}.tar.gz"
 checksum=244a15f64015ce3ea17e49bdf6e1a0fb4f9af92b82fa9e05aa64cb30b5f07a4d
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/jsonnet/template b/srcpkgs/jsonnet/template
index b09df3187a0e..1f0d020e16ed 100644
--- a/srcpkgs/jsonnet/template
+++ b/srcpkgs/jsonnet/template
@@ -9,6 +9,7 @@ license="Apache-2.0"
 homepage="https://github.com/google/jsonnet"
 distfiles="https://github.com/google/jsonnet/archive/v${version}.tar.gz"
 checksum=076b52edf888c01097010ad4299e3b2e7a72b60a41abbc65af364af1ed3c8dbe
+patch_args=-Np0
 
 CXXFLAGS="-fPIC -Iinclude -Ithird_party/json -Ithird_party/md5"
 
diff --git a/srcpkgs/jwm/template b/srcpkgs/jwm/template
index 96efe18d60cc..08c2501eecfe 100644
--- a/srcpkgs/jwm/template
+++ b/srcpkgs/jwm/template
@@ -15,6 +15,7 @@ conf_files="/etc/system.jwmrc"
 homepage="http://joewing.net/projects/jwm"
 distfiles="http://joewing.net/projects/jwm/releases/jwm-$version.tar.xz"
 checksum=745d2f5df3a4ce9ecc8e75445edb3fbe31dd46c0c26d129cc14de7ad8b665326
+patch_args=-Np0
 
 post_install() {
 	vinstall ${FILESDIR}/jwm.desktop 644 usr/share/xsessions
diff --git a/srcpkgs/jxrlib/template b/srcpkgs/jxrlib/template
index 48f02dceab61..c9ed1e4c14aa 100644
--- a/srcpkgs/jxrlib/template
+++ b/srcpkgs/jxrlib/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/glencoesoftware/jxrlib"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=d1fbc5759a665949e7cb82de03c3258788bd07323f195a9e8ea9322504627cc3
+patch_args=-Np0
 
 jxrlib-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/kanshi/template b/srcpkgs/kanshi/template
index e6fe40f4a697..d9e4c799e616 100644
--- a/srcpkgs/kanshi/template
+++ b/srcpkgs/kanshi/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/emersion/kanshi"
 distfiles="https://github.com/emersion/kanshi/archive/v${version}.tar.gz"
 checksum=f7e782d2b49380aed370213b8d74af9fe806d9dc94b3c19179475f4b18e26566
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/katarakt/template b/srcpkgs/katarakt/template
index 13fc25ba6626..05c85364c95d 100644
--- a/srcpkgs/katarakt/template
+++ b/srcpkgs/katarakt/template
@@ -13,6 +13,7 @@ homepage="https://wwwcip.cs.fau.de/~go18gomu/katarakt"
 #distfiles="https://wwwcip.cs.fau.de/~go18gomu/katarakt/tarballs/katarakt-${version}.tar.xz"
 distfiles="https://gitlab.cs.fau.de/Qui_Sum/katarakt/-/archive/v${version}/katarakt-v${version}.tar.gz"
 checksum=f60b3b7477975301a6c6657eb0a24d5cc28d321cca70e9746d4d1ea91e239c46
+patch_args=-Np0
 
 post_build() {
 	make doc
diff --git a/srcpkgs/kauth/template b/srcpkgs/kauth/template
index 2ba239bf8e09..d69da9d53d72 100644
--- a/srcpkgs/kauth/template
+++ b/srcpkgs/kauth/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kauth"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=00aac14b7a28040a7598ed661254fb4b8c20b0708fc3379461caff7bc8ff9104
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" kcoreaddons qt5-host-tools qt5-qmake qt5-tools-devel polkit-qt5-devel"
diff --git a/srcpkgs/kbd/template b/srcpkgs/kbd/template
index 10b5c5dba294..0b0457f171dd 100644
--- a/srcpkgs/kbd/template
+++ b/srcpkgs/kbd/template
@@ -13,6 +13,7 @@ homepage="http://www.kbd-project.org/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=55f0740458cfd3a84e775e50d7e8b92dc01846db1edad8e2411ccc293ece9b9f
 replaces="kbd-data>=0"
+patch_args=-Np0
 
 post_patch() {
 	# Rename keymap files with the same names
diff --git a/srcpkgs/kcgi/template b/srcpkgs/kcgi/template
index 021c97022dc8..7a5b093157b6 100644
--- a/srcpkgs/kcgi/template
+++ b/srcpkgs/kcgi/template
@@ -16,6 +16,7 @@ homepage="http://kristaps.bsd.lv/kcgi/"
 changelog="https://kristaps.bsd.lv/kcgi/archive.html"
 distfiles="http://kristaps.bsd.lv/kcgi/snapshots/kcgi-${version}.tgz"
 checksum=06ed033de3723651d76e2fac1c2442aaa3a28ac231cbfda4142dfb8782cab363
+patch_args=-Np0
 
 seccomp_audit_get_suffix() {
 	case "$1" in
diff --git a/srcpkgs/kconfig/template b/srcpkgs/kconfig/template
index adc2fc3be0da..e56f6a58ff56 100644
--- a/srcpkgs/kconfig/template
+++ b/srcpkgs/kconfig/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-only, LGPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kconfig"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=234fc902d8a005291488def0a6a4b9d8b8500102e05aa2d1cfa3d5b6bb830a89
+patch_args=-Np0
 
 kconfig-devel_package() {
 	short_desc+=" - development"
diff --git a/srcpkgs/kcoreaddons/template b/srcpkgs/kcoreaddons/template
index 634dcec5c336..9403c06a9a64 100644
--- a/srcpkgs/kcoreaddons/template
+++ b/srcpkgs/kcoreaddons/template
@@ -13,6 +13,7 @@ license="LGPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kcoreaddons"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=12077aac579065ca5ca877aee3bbdce65c52b6d0e9ef8b1fc0e127dd2e7f6843
+patch_args=-Np0
 
 post_install() {
 	vsed -e 's;${_IMPORT_PREFIX};/usr;g' \
diff --git a/srcpkgs/kdb/template b/srcpkgs/kdb/template
index 0bc353bd7085..e28e194c4d55 100644
--- a/srcpkgs/kdb/template
+++ b/srcpkgs/kdb/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-or-later"
 homepage="http://www.kexi-project.org/"
 distfiles="${KDE_SITE}/kdb/src/kdb-${version}.tar.xz"
 checksum=8f8983bc8d143832dc14bc2003ba6af1af27688e477c0c791fd61445464f2069
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-qmake qt5-host-tools python3"
diff --git a/srcpkgs/kdelibs4support/template b/srcpkgs/kdelibs4support/template
index 306a952779ad..2841c1dcefcd 100644
--- a/srcpkgs/kdelibs4support/template
+++ b/srcpkgs/kdelibs4support/template
@@ -17,6 +17,7 @@ license="LGPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kdelibs4support"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/portingAids/${pkgname}-${version}.tar.xz"
 checksum=2f82f9241a1ceb08f4da7e9056612003b18d85879aff808f21d750b52edf4fe1
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# gettaddrinfo runtime test is always fine (can't be achieved in crossbuild)
diff --git a/srcpkgs/kdesignerplugin/template b/srcpkgs/kdesignerplugin/template
index 193e3fdc8320..8787bf11ced2 100644
--- a/srcpkgs/kdesignerplugin/template
+++ b/srcpkgs/kdesignerplugin/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://invent.kde.org/frameworks/kdesignerplugin"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/portingAids/${pkgname}-${version}.tar.xz"
 checksum=4556c3001f6558cf8ecaf9ce98b60bc130099b0af5d35be48561405b778d6f79
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake qt5-tools python kgendesignerplugin kdoctools"
diff --git a/srcpkgs/kdevelop-python/template b/srcpkgs/kdevelop-python/template
index 6d2f53fd0e60..d245fc817f01 100644
--- a/srcpkgs/kdevelop-python/template
+++ b/srcpkgs/kdevelop-python/template
@@ -18,6 +18,7 @@ homepage="https://www.kdevelop.org/"
 distfiles="${KDE_SITE}/kdevelop/${version}/src/kdev-python-${version}.tar.xz"
 checksum=20f9b771b961262ded986a4f32b8d259ad9f7bc48bb29eac0a5d5853be1d917f
 python_version=3
+patch_args=-Np0
 
 post_install() {
 	# don't install this python2 script: generates documentation_files, useless at runtime
diff --git a/srcpkgs/kdevelop/template b/srcpkgs/kdevelop/template
index 3adc84273607..60f85a97b137 100644
--- a/srcpkgs/kdevelop/template
+++ b/srcpkgs/kdevelop/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.kdevelop.org/"
 distfiles="${KDE_SITE}/${pkgname}/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=0f86bc3fe53f761c1e3e3f7544577a0c41433be8bff310cf2e729f76f4363bf6
+patch_args=-Np0
 
 build_options="webengine"
 desc_option_webengine="Use Qt5 WebEngine for documentation"
diff --git a/srcpkgs/kdoctools/template b/srcpkgs/kdoctools/template
index 12febaa475fc..6f9f52862b08 100644
--- a/srcpkgs/kdoctools/template
+++ b/srcpkgs/kdoctools/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kdoctools"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=414fbb92521734664535b475bf1ea2b941c3d4bdde14c06fd243a2968d1531db
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake python kdoctools-devel"
diff --git a/srcpkgs/kea/template b/srcpkgs/kea/template
index dc0bcc5de3fc..bad3cab44ea2 100644
--- a/srcpkgs/kea/template
+++ b/srcpkgs/kea/template
@@ -21,6 +21,7 @@ license="MPL-2.0, Apache-2.0"
 homepage="https://kea.isc.org"
 distfiles="http://ftp.isc.org/isc/kea/${version/.P/-P}/kea-${version/.P/-P}.tar.gz"
 checksum=324a06f488645bee587e49a45d491b525f53417c56b219f1cb37461fdefd9d91
+patch_args=-Np0
 
 build_options="botan mysql pgsql"
 desc_option_botan="With Botan SSL support"
diff --git a/srcpkgs/kernel-libc-headers/template b/srcpkgs/kernel-libc-headers/template
index ff67067469e9..a21b03bc0ddc 100644
--- a/srcpkgs/kernel-libc-headers/template
+++ b/srcpkgs/kernel-libc-headers/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://www.kernel.org"
 distfiles="$KERNEL_SITE/kernel/v${version%%.*}.x/linux-${version}.tar.xz"
 checksum=904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+patch_args=-Np0
 
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="perl"
diff --git a/srcpkgs/kexec-tools/template b/srcpkgs/kexec-tools/template
index 06f6f4527138..dccec75fe3be 100644
--- a/srcpkgs/kexec-tools/template
+++ b/srcpkgs/kexec-tools/template
@@ -13,6 +13,7 @@ homepage="http://kernel.org/pub/linux/utils/kernel/kexec/"
 distfiles="${KERNEL_SITE}/utils/kernel/kexec/${pkgname}-${version}.tar.xz"
 checksum=96c97f49ed86049f8b72722cb53e7fe3693e5a4f31e78a3a6249e3d18dac49c2
 skip_extraction="${pkgname}-${version}.tar.xz"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/kexi/template b/srcpkgs/kexi/template
index 28d4a358ac65..640f5158ffcd 100644
--- a/srcpkgs/kexi/template
+++ b/srcpkgs/kexi/template
@@ -14,6 +14,7 @@ homepage="http://www.kexi-project.org/"
 distfiles="${KDE_SITE}/kexi/src/kexi-${version}.tar.xz"
 checksum=7a813f9ea815a09c1e733d0e7dc879c64eee85f075389e87e6aab99cf0c1c1ff
 replaces="calligra-kexi>=0"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ];then
 	hostmakedepends+=" qt5-qmake qt5-host-tools python3 kcoreaddons"
diff --git a/srcpkgs/keyutils/template b/srcpkgs/keyutils/template
index 2da74bdcd24b..2b0044799be1 100644
--- a/srcpkgs/keyutils/template
+++ b/srcpkgs/keyutils/template
@@ -9,6 +9,7 @@ homepage="https://www.kernel.org"
 distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/${pkgname}-${version}.tar.gz"
 checksum=a61d5706136ae4c05bd48f86186bcfdbd88dd8bd5107e3e195c924cfc1b39bb4
 conf_files="/etc/request-key.conf"
+patch_args=-Np0
 
 pre_build() {
 	# Fix musl build - doesn't hurt glibc either
diff --git a/srcpkgs/kicad/template b/srcpkgs/kicad/template
index c56f7422dbed..18f1c310daab 100644
--- a/srcpkgs/kicad/template
+++ b/srcpkgs/kicad/template
@@ -22,6 +22,7 @@ homepage="http://kicad-pcb.org"
 distfiles="https://gitlab.com/kicad/code/${pkgname}/-/archive/${version}/kicad-${version}.tar.gz"
 checksum=296341f30ada2c7f4a1c54720eab425835a93349527d4bf08f73f280d19695ed
 python_version=3
+patch_args=-Np0
 
 build_options="spice occt"
 build_options_default="spice occt"
diff --git a/srcpkgs/kid3/template b/srcpkgs/kid3/template
index e916cbabed1e..e743ffff1536 100644
--- a/srcpkgs/kid3/template
+++ b/srcpkgs/kid3/template
@@ -20,6 +20,7 @@ license="GPL-2.0-only"
 homepage="https://kid3.kde.org"
 distfiles="${SOURCEFORGE_SITE}/kid3/kid3-${version}.tar.gz"
 checksum=71ef8c58227302737ebbed3b7f476f9f48e76ea894952d916dc33d9c08f96e08
+patch_args=-Np0
 
 build_options="KDE mp3 mp4 flac vorbis taglib chromaprint"
 build_options_default="mp3 mp4 flac vorbis taglib chromaprint"
diff --git a/srcpkgs/kinit/template b/srcpkgs/kinit/template
index 0bc5c5dc295e..483a88c80473 100644
--- a/srcpkgs/kinit/template
+++ b/srcpkgs/kinit/template
@@ -13,6 +13,7 @@ license="LGPL-2.0-only"
 homepage="https://invent.kde.org/frameworks/kinit"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=8b1b9d34fe4a4345381ac954888190e65f28ffe8211c7c0a16376996a79dc168
+patch_args=-Np0
 
 kinit-devel_package() {
 	short_desc+=" - development"
diff --git a/srcpkgs/kio/template b/srcpkgs/kio/template
index 1a1751c72191..1b03e77eac62 100644
--- a/srcpkgs/kio/template
+++ b/srcpkgs/kio/template
@@ -16,6 +16,7 @@ license="LGPL-2.0-or-later"
 homepage="https://invent.kde.org/frameworks/kio"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=cb970d0550054fd0bb0957de010b9ea73b2d89e8df725c0d8344320e82473144
+patch_args=-Np0
 
 CXXFLAGS+=" -fpermissive"
 
diff --git a/srcpkgs/kmod/template b/srcpkgs/kmod/template
index e9b8c26161e8..9266a17dc233 100644
--- a/srcpkgs/kmod/template
+++ b/srcpkgs/kmod/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git"
 distfiles="${KERNEL_SITE}/utils/kernel/kmod/kmod-${version}.tar.xz"
 checksum=c1d3fbf16ca24b95f334c1de1b46f17bbe5a10b0e81e72668bdc922ebffbbc0c
+patch_args=-Np0
 
 post_install() {
 	vinstall ${FILESDIR}/depmod-search.conf 644 usr/lib/depmod.d search.conf
diff --git a/srcpkgs/kmscon/template b/srcpkgs/kmscon/template
index 0683ed5d0ce7..0e9b90b7d65d 100644
--- a/srcpkgs/kmscon/template
+++ b/srcpkgs/kmscon/template
@@ -15,6 +15,7 @@ homepage="http://www.freedesktop.org/wiki/Software/kmscon"
 distfiles="${FREEDESKTOP_SITE}/kmscon/releases/kmscon-${version}.tar.xz"
 checksum=0ab01c1cdc4fbd692ce765e80478bc2d9663a7c55a5c75cc7ac421366ee6ae2b
 lib32disabled=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc*) broken="ftbfs";;
diff --git a/srcpkgs/kobodeluxe/template b/srcpkgs/kobodeluxe/template
index 94e3e8329728..689d2f17965c 100644
--- a/srcpkgs/kobodeluxe/template
+++ b/srcpkgs/kobodeluxe/template
@@ -14,6 +14,7 @@ homepage="http://olofson.net/kobodl"
 distfiles="${homepage}/download/KoboDeluxe-${version}.tar.bz2"
 checksum=0f7b910a399d985437564af8c5d81d6dcf22b96b26b01488d72baa6a6fdb5c2c
 replaces="kobodeluxe-data>=0"
+patch_args=-Np0
 
 post_extract() {
 	bsdtar xf icons.tar.gz
diff --git a/srcpkgs/kodi-addon-inputstream-adaptive/template b/srcpkgs/kodi-addon-inputstream-adaptive/template
index 579f39bfb0e4..21bd7af334f6 100644
--- a/srcpkgs/kodi-addon-inputstream-adaptive/template
+++ b/srcpkgs/kodi-addon-inputstream-adaptive/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/peak3d/inputstream.adaptive"
 distfiles="https://github.com/peak3d/inputstream.adaptive/archive/${version}-${_kodi_release}.tar.gz"
 checksum=353207f5f98bf81ce8d79cec903c28da8c0227d7c7a632692c910d81e59c2dbe
+patch_args=-Np0
 
 if [ -n "${CROSS_BUILD}" ]; then
 	configure_args+=" -DCMAKE_MODULE_PATH=${XBPS_CROSS_BASE}/usr/share/kodi/cmake"
diff --git a/srcpkgs/kore/template b/srcpkgs/kore/template
index 6c6e2d1378c2..adccefbc13df 100644
--- a/srcpkgs/kore/template
+++ b/srcpkgs/kore/template
@@ -16,6 +16,7 @@ homepage="https://kore.io"
 distfiles="https://kore.io/releases/kore-${version}.tar.gz"
 checksum=b7d73b005fde0ea01c356a54e4bbd8a209a4dff9cf315802a127ce7267efbe61
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/krita/template b/srcpkgs/krita/template
index e909366f539d..f04f7a5bb8b3 100644
--- a/srcpkgs/krita/template
+++ b/srcpkgs/krita/template
@@ -23,6 +23,7 @@ distfiles="${KDE_SITE}/krita/${version}/krita-${version}.tar.gz"
 checksum=4bfd7280870d1060a00d1123d836fc1a5b5bf8a028676679f0268cd5e7fb7568
 python_version=3
 replaces="calligra-krita>=0"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) makedepends+=" vc";;
diff --git a/srcpkgs/kscreenlocker/template b/srcpkgs/kscreenlocker/template
index 36df46f2420e..19becb55ca02 100644
--- a/srcpkgs/kscreenlocker/template
+++ b/srcpkgs/kscreenlocker/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://invent.kde.org/plasma/kscreenlocker"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=9803b976b6cc14fa5216de17481609ebf46d28c314284d9e74e8f9b181cb9bba
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" wayland-devel"
diff --git a/srcpkgs/kvirc/template b/srcpkgs/kvirc/template
index 41255b18e928..801cc846a309 100644
--- a/srcpkgs/kvirc/template
+++ b/srcpkgs/kvirc/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.kvirc.net"
 distfiles="ftp://ftp.kvirc.net/pub/kvirc/${version}/source/KVIrc-${version}.tar.bz2"
 checksum=76cd4cdcaca5e4056f086cdcbb6122c2ca7e331d6e66c7ebc57d32565f626a65
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ];then
 	hostmakedepends+=" qt5-qmake qt5-host-tools"
diff --git a/srcpkgs/kwallet-cli/template b/srcpkgs/kwallet-cli/template
index 4e27ae4f5913..ddeacf49443f 100644
--- a/srcpkgs/kwallet-cli/template
+++ b/srcpkgs/kwallet-cli/template
@@ -14,6 +14,7 @@ license="custom:MirOS, LGPL-3.0-or-later"
 homepage="https://www.mirbsd.org/kwalletcli.htm"
 distfiles="http://www.mirbsd.org/MirOS/dist/hosted/kwalletcli/kwalletcli-${version}.tar.gz"
 checksum=f228e5b179f6eb92289b9635382e676990dd58cd193ce42b61d3150c8a06b12d
+patch_args=-Np0
 
 post_patch() {
 	vsed -i GNUmakefile -e "s|-I/usr/include|-I${XBPS_CROSS_BASE}/usr/include|g"
diff --git a/srcpkgs/ladish/template b/srcpkgs/ladish/template
index f0b36f188b2b..7824e497f211 100644
--- a/srcpkgs/ladish/template
+++ b/srcpkgs/ladish/template
@@ -17,6 +17,7 @@ homepage="http://ladish.org"
 distfiles="${DEBIAN_SITE}/main/l/ladish/ladish_1+dfsg0.orig.tar.bz2"
 checksum=39b09d5a4c2f2d65d37374eb8b53f35039f2229d96ea6ddef7b1ce154403383a
 python_version=2
+patch_args=-Np0
 
 CXXFLAGS=-std=c++11
 
diff --git a/srcpkgs/laditools/template b/srcpkgs/laditools/template
index 596f955b9d0c..d5c06f7015d4 100644
--- a/srcpkgs/laditools/template
+++ b/srcpkgs/laditools/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/alessio/laditools"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=ca99f4b6e17b7333ed87dd12a2d91da4d486e53d89dd2677edfa29170ec6efe5
+patch_args=-Np0
 
 post_install() {
 	# remove wmladi, we do not have wmdocklib.
diff --git a/srcpkgs/ladspa-sdk/template b/srcpkgs/ladspa-sdk/template
index 175f3cb2c405..4b3730a98f66 100644
--- a/srcpkgs/ladspa-sdk/template
+++ b/srcpkgs/ladspa-sdk/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.ladspa.org/"
 distfiles="http://www.ladspa.org/download/ladspa_sdk_${version}.tgz"
 checksum=4229959b09d20c88c8c86f4aa76427843011705df22d9c28b38359fd1829fded
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC CPP=$CXX LD=$LD -C src
diff --git a/srcpkgs/lapack/template b/srcpkgs/lapack/template
index 3ca60272736d..525d64b965c0 100644
--- a/srcpkgs/lapack/template
+++ b/srcpkgs/lapack/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://www.netlib.org/lapack/"
 distfiles="https://github.com/Reference-LAPACK/lapack/archive/v${version}.tar.gz"
 checksum=106087f1bb5f46afdfba7f569d0cbe23dacb9a07cd24733765a0e89dbe1ad573
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/latencytop/template b/srcpkgs/latencytop/template
index 67071c436a8a..0442408311b1 100644
--- a/srcpkgs/latencytop/template
+++ b/srcpkgs/latencytop/template
@@ -11,6 +11,7 @@ license="GPL-2"
 homepage="http://www.latencytop.org"
 distfiles="${DEBIAN_SITE}/main/l/$pkgname/${pkgname}_${version}.orig.tar.gz"
 checksum=9e7f72fbea7bd918e71212a1eabaad8488d2c602205d2e3c95d62cd57e9203ef
+patch_args=-Np0
 
 pre_build() {
 	export CFLAGS="$CFLAGS $LDFLAGS"
diff --git a/srcpkgs/ldapvi/template b/srcpkgs/ldapvi/template
index 1dda3c2ae6e8..3c5f6bae167e 100644
--- a/srcpkgs/ldapvi/template
+++ b/srcpkgs/ldapvi/template
@@ -12,6 +12,7 @@ homepage="http://www.lichteblau.com/ldapvi/"
 short_desc="An interactive LDAP client for Unix terminals"
 distfiles="http://www.lichteblau.com/download/ldapvi-${version}.tar.gz"
 checksum=6f62e92d20ff2ac0d06125024a914b8622e5b8a0a0c2d390bf3e7990cbd2e153
+patch_args=-Np0
 
 do_install() {
 	vbin ldapvi
diff --git a/srcpkgs/ldb/template b/srcpkgs/ldb/template
index ada2f2052210..356615c375e3 100644
--- a/srcpkgs/ldb/template
+++ b/srcpkgs/ldb/template
@@ -19,6 +19,7 @@ license="LGPL-3.0-or-later"
 homepage="https://www.samba.org/ldb/"
 distfiles="https://www.samba.org/ftp/pub/ldb/ldb-${version}.tar.gz"
 checksum=134bb51769709af59f30bf468e454d1377a8096acd4e80dcb42fd264f558bd5f
+patch_args=-Np0
 
 # workaround for cmocka's broken uintptr_t definition on musl
 if [ "$XBPS_TARGET_WORDSIZE" = "64" -a "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/ledger/template b/srcpkgs/ledger/template
index c94b72709dea..e1bd5419f0fa 100644
--- a/srcpkgs/ledger/template
+++ b/srcpkgs/ledger/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="https://www.ledger-cli.org/"
 distfiles="https://github.com/ledger/${pkgname}/archive/v${version}.tar.gz"
 checksum=92bf09bc385b171987f456fe3ee9fa998ed5e40b97b3acdd562b663aa364384a
+patch_args=-Np0
 
 post_install() {
 	rm -Rf ${DESTDIR}/usr/local
diff --git a/srcpkgs/lfe/template b/srcpkgs/lfe/template
index 31f33e64eeaf..b57f4ad541a8 100644
--- a/srcpkgs/lfe/template
+++ b/srcpkgs/lfe/template
@@ -10,6 +10,7 @@ license="Apache-2.0"
 homepage="http://lfe.io/"
 distfiles="https://github.com/rvirding/lfe/archive/v${version}.tar.gz"
 checksum=04634f2c700ecedb55f4369962837792669e6be809dba90d81974198fc2b7b72
+patch_args=-Np0
 
 do_build() {
 	make
diff --git a/srcpkgs/liba52/template b/srcpkgs/liba52/template
index f94b04c876d1..3c850ca622e0 100644
--- a/srcpkgs/liba52/template
+++ b/srcpkgs/liba52/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://liba52.sourceforge.net/"
 distfiles="http://liba52.sourceforge.net/files/a52dec-${version}.tar.gz"
 checksum=a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33
+patch_args=-Np0
 
 pre_configure() {
 	./bootstrap
diff --git a/srcpkgs/libabigail/template b/srcpkgs/libabigail/template
index ed30ffd85c54..03906b43ac00 100644
--- a/srcpkgs/libabigail/template
+++ b/srcpkgs/libabigail/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-or-later"
 homepage="https://www.sourceware.org/libabigail/"
 distfiles="http://mirrors.kernel.org/sourceware/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=86347c9f0a8666f263fd63f8c3fe4c4f9cb1bdb3ec4260ecbaf117d137e89787
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" musl-fts-devel"; LDFLAGS="-lfts" ;;
diff --git a/srcpkgs/libabw/template b/srcpkgs/libabw/template
index e617508a0b3d..3e0b95197ef1 100644
--- a/srcpkgs/libabw/template
+++ b/srcpkgs/libabw/template
@@ -11,6 +11,7 @@ distfiles="http://dev-www.libreoffice.org/src/${pkgname}/${pkgname}-${version}.t
 makedepends="librevenge-devel boost-devel libxml2-devel"
 hostmakedepends="automake libtool pkg-config perl gperf"
 checksum=e763a9dc21c3d2667402d66e202e3f8ef4db51b34b79ef41f56cacb86dcd6eed
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated-copy"
 
diff --git a/srcpkgs/libaccounts-qt5/template b/srcpkgs/libaccounts-qt5/template
index 73c98fb72bd4..98e0b0374d5b 100644
--- a/srcpkgs/libaccounts-qt5/template
+++ b/srcpkgs/libaccounts-qt5/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-only"
 homepage="https://gitlab.com/accounts-sso/libaccounts-qt"
 distfiles="${homepage}/repository/archive.tar.gz?ref=VERSION_${version}>${pkgname}-${version}.tar.gz"
 checksum=286eb02f936853e32e610003a2a332a12524050d226707e7630b6a29bd3bdf66
+patch_args=-Np0
 
 libaccounts-qt5-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libarchive/template b/srcpkgs/libarchive/template
index 605cac399d34..ea4b7e8f63e5 100644
--- a/srcpkgs/libarchive/template
+++ b/srcpkgs/libarchive/template
@@ -18,6 +18,7 @@ license="BSD-2-Clause"
 homepage="http://www.libarchive.org/"
 distfiles="https://github.com/libarchive/libarchive/releases/download/${version}/libarchive-${version}.tar.gz"
 checksum=9015d109ec00bb9ae1a384b172bf2fc1dff41e2c66e5a9eeddf933af9db37f5a
+patch_args=-Np0
 
 build_options="acl expat lzo lz4 ssl zstd"
 build_options_default="acl ssl lz4 zstd"
diff --git a/srcpkgs/libatasmart/template b/srcpkgs/libatasmart/template
index 7714dcbfe394..b79bd8661ae8 100644
--- a/srcpkgs/libatasmart/template
+++ b/srcpkgs/libatasmart/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://0pointer.de/blog/projects/being-smart.html"
 distfiles="http://0pointer.de/public/$pkgname-$version.tar.xz"
 checksum=61f0ea345f63d28ab2ff0dc352c22271661b66bf09642db3a4049ac9dbdb0f8d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libax25/template b/srcpkgs/libax25/template
index e4de77e6b59a..868268ce4abb 100644
--- a/srcpkgs/libax25/template
+++ b/srcpkgs/libax25/template
@@ -13,6 +13,7 @@ license="LGPL-2"
 homepage="http://www.linux-ax25.org/wiki/Libax25"
 distfiles="http://www.linux-ax25.org/pub/libax25/${wrksrc}.tar.gz"
 checksum=051bd736c3f3f3b242b3efea91af37f2e8d5afaebb5fe6e1df050bb1f6aeb986
+patch_args=-Np0
 
 libax25-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libbsd/template b/srcpkgs/libbsd/template
index aa36c7f4e0cc..28d3bc622698 100644
--- a/srcpkgs/libbsd/template
+++ b/srcpkgs/libbsd/template
@@ -10,6 +10,7 @@ license="ISC, MIT, Beerware, BSD-2-Clause, BSD-3-Clause, BSD-4-Clause"
 homepage="https://libbsd.freedesktop.org/"
 distfiles="https://libbsd.freedesktop.org/releases/libbsd-${version}.tar.xz"
 checksum=ff95cf8184151dacae4247832f8d4ea8800fa127dbd15033ecfe839f285b42a1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libcanberra/template b/srcpkgs/libcanberra/template
index de049b68e088..f853fb7e03ab 100644
--- a/srcpkgs/libcanberra/template
+++ b/srcpkgs/libcanberra/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="http://0pointer.de/lennart/projects/libcanberra/"
 distfiles="http://pkgs.fedoraproject.org/repo/pkgs/libcanberra/libcanberra-${version}.tar.xz/34cb7e4430afaf6f447c4ebdb9b42072/libcanberra-${version}.tar.xz"
 checksum=c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -if
diff --git a/srcpkgs/libcap-ng/template b/srcpkgs/libcap-ng/template
index 99eab8e614fc..7ea192957fb8 100644
--- a/srcpkgs/libcap-ng/template
+++ b/srcpkgs/libcap-ng/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://people.redhat.com/sgrubb/libcap-ng/"
 distfiles="http://people.redhat.com/sgrubb/$pkgname/$pkgname-$version.tar.gz"
 checksum=52c083b77c2b0d8449dee141f9c3eba76e6d4c5ad44ef05df25891126cb85ae9
+patch_args=-Np0
 
 subpackages="libcap-ng-devel libcap-ng-progs"
 
diff --git a/srcpkgs/libcap/template b/srcpkgs/libcap/template
index ad68fc72aed6..cadc03d056e2 100644
--- a/srcpkgs/libcap/template
+++ b/srcpkgs/libcap/template
@@ -15,6 +15,7 @@ homepage="http://sites.google.com/site/fullycapable/"
 changelog="https://sites.google.com/site/fullycapable/release-notes-for-libcap"
 distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/${pkgname}-${version}.tar.xz"
 checksum=47a57b8bd238b84c93c921a9b4ff82337551dbcb0cca071316aadf3e23b19261
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
diff --git a/srcpkgs/libcec/template b/srcpkgs/libcec/template
index bf232fb89eb8..c203167ef915 100644
--- a/srcpkgs/libcec/template
+++ b/srcpkgs/libcec/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Pulse-Eight/libcec"
 distfiles="https://github.com/Pulse-Eight/libcec/archive/libcec-${version}.tar.gz"
 checksum=090696d7a4fb772d7acebbb06f91ab92e025531c7c91824046b9e4e71ecb3377
+patch_args=-Np0
 
 build_options="rpi"
 
diff --git a/srcpkgs/libcgroup/template b/srcpkgs/libcgroup/template
index c9c19120e597..13b1318383bc 100644
--- a/srcpkgs/libcgroup/template
+++ b/srcpkgs/libcgroup/template
@@ -12,6 +12,7 @@ license="LGPL-2.1"
 homepage="http://libcg.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/libcg/${pkgname}-${version}.tar.bz2"
 checksum=e4e38bdc7ef70645ce33740ddcca051248d56b53283c0dc6d404e17706f6fb51
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	# Add musl-fts implementation
diff --git a/srcpkgs/libcmis/template b/srcpkgs/libcmis/template
index fac133d5e4d9..9e2aa911954b 100644
--- a/srcpkgs/libcmis/template
+++ b/srcpkgs/libcmis/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1"
 homepage="https://github.com/tdf/libcmis"
 distfiles="https://github.com/tdf/libcmis/releases/download/v${version}/libcmis-${version}.tar.gz"
 checksum=ed6f681a48abbf3c2324564b17a180d21fa9503230e8708825e1ad80daee4f81
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated"
 
diff --git a/srcpkgs/libcprops/template b/srcpkgs/libcprops/template
index 3460841477a1..2dc95f4e8a82 100644
--- a/srcpkgs/libcprops/template
+++ b/srcpkgs/libcprops/template
@@ -12,6 +12,7 @@ license="LGPL-2.1"
 distfiles="${SOURCEFORGE_SITE}/cprops/${pkgname}-${version}.tar.bz2"
 checksum=3737772d2718a2c550adf4ca92cc492e613aa9200aae2bbaaf128d90f4ef67f2
 nocross="autotools TRY_RUN checking for PTHREAD_MUTEX_RECURSIVE"
+patch_args=-Np0
 
 libcprops-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libdaemon/template b/srcpkgs/libdaemon/template
index 07fe35eaeeac..6d2bf5364075 100644
--- a/srcpkgs/libdaemon/template
+++ b/srcpkgs/libdaemon/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://0pointer.de/lennart/projects/$pkgname"
 distfiles="http://pkgs.fedoraproject.org/repo/pkgs/libdaemon/libdaemon-${version}.tar.gz/509dc27107c21bcd9fbf2f95f5669563/libdaemon-${version}.tar.gz"
 checksum=fd23eb5f6f986dcc7e708307355ba3289abe03cc381fc47a80bca4a50aa6b834
+patch_args=-Np0
 
 libdaemon-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libdbus-c++/template b/srcpkgs/libdbus-c++/template
index 29b4a109863d..91724cfdee6b 100644
--- a/srcpkgs/libdbus-c++/template
+++ b/srcpkgs/libdbus-c++/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="http://dbus-cplusplus.sourceforge.net/"
 distfiles="https://github.com/pkgw/dbus-cplusplus/releases/download/v${version}/libdbus-c---${version}.tar.gz"
 checksum=4f140668f2529ecbdce99afbb89f8a977aa47a36248d5f4943b3660316752ee8
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" libdbus-c++-devel dbus-devel glib-devel"
diff --git a/srcpkgs/libdill/template b/srcpkgs/libdill/template
index c641f17afb7f..38ba343f1e83 100644
--- a/srcpkgs/libdill/template
+++ b/srcpkgs/libdill/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://libdill.org/"
 distfiles="https://github.com/sustrik/libdill/archive/${version}.tar.gz"
 checksum=ebba0e5b433ec123b74a57d49b89dfa673aa258e03e6a452959e556b4c4529b9
+patch_args=-Np0
 
 pre_configure() {
 	export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=?/}"
diff --git a/srcpkgs/libdrm/template b/srcpkgs/libdrm/template
index ef96bcf5d129..21988cf5fc65 100644
--- a/srcpkgs/libdrm/template
+++ b/srcpkgs/libdrm/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://dri.freedesktop.org/"
 distfiles="https://gitlab.freedesktop.org/mesa/drm/-/archive/libdrm-${version}/drm-libdrm-${version}.tar.gz"
 checksum=0ba5017cafd4b7ac885356403c20105d40efcd11271ebf75727c1a5599e4ed53
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	aarch64*) configure_args+=" -Dvc4=true";;
diff --git a/srcpkgs/libesmtp/template b/srcpkgs/libesmtp/template
index 6719b024796c..0b88cd4b5035 100644
--- a/srcpkgs/libesmtp/template
+++ b/srcpkgs/libesmtp/template
@@ -12,6 +12,7 @@ homepage="http://brianstafford.info/libesmtp/"
 distfiles="https://sources.voidlinux.org/libesmtp-1.0.6/libesmtp-1.0.6.tar.bz2"
 #distfiles="http://brianstafford.info/libesmtp/libesmtp-${version}.tar.bz2"
 checksum=d0a61a5c52d99fa7ce7d00ed0a07e341dbda67101dbed1ab0cdae3f37db4eb0b
+patch_args=-Np0
 
 libesmtp-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libetpan/template b/srcpkgs/libetpan/template
index fb6c96eb33f2..9363e7ae26b1 100644
--- a/srcpkgs/libetpan/template
+++ b/srcpkgs/libetpan/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="http://www.etpan.org/libetpan.html"
 distfiles="https://github.com/dinhviethoa/libetpan/archive/${version}.tar.gz"
 checksum=591f97d5102f600e668502fe1dd5a341e910a840d8ea62e689a3a79d8bfbac87
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/libevdevPlus/template b/srcpkgs/libevdevPlus/template
index cf693a6e776c..dec92cb4bfd3 100644
--- a/srcpkgs/libevdevPlus/template
+++ b/srcpkgs/libevdevPlus/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/YukiWorkshop/libevdevPlus"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=c941b6b45f784c1e6c6f316f59256fabd604ac392db405cf7fd99de2686aaab0
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libexecinfo/template b/srcpkgs/libexecinfo/template
index dde582069514..5fe7d6fa72a2 100644
--- a/srcpkgs/libexecinfo/template
+++ b/srcpkgs/libexecinfo/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://www.freshports.org/devel/libexecinfo"
 distfiles="http://distcache.freebsd.org/local-distfiles/itetcu/libexecinfo-${version}.tar.bz2"
 checksum=c9a21913e7fdac8ef6b33250b167aa1fc0a7b8a175145e26913a4c19d8a59b1f
+patch_args=-Np0
 
 do_install() {
 	vsed -e "/Version:/s@version@${version}@" -i libexecinfo.pc
diff --git a/srcpkgs/libfetch/template b/srcpkgs/libfetch/template
index 5522f74d617f..dc3eaad7a71b 100644
--- a/srcpkgs/libfetch/template
+++ b/srcpkgs/libfetch/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="https://www.NetBSD.org"
 distfiles="https://alpha.de.repo.voidlinux.org/distfiles/libfetch-${version}.tar.xz"
 checksum=4e6d4541f213c9ab42ea94d49c2573f0a6f54b04f14668530960f1424b04f722
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC
diff --git a/srcpkgs/libffado/template b/srcpkgs/libffado/template
index cadd335b30e3..837d5443d972 100644
--- a/srcpkgs/libffado/template
+++ b/srcpkgs/libffado/template
@@ -20,6 +20,7 @@ license="GPL-2.0-only, GPL-3.0-only"
 homepage="http://www.ffado.org"
 distfiles="http://www.ffado.org/files/libffado-${version}.tgz"
 checksum=a47178cdc8c0c91e91edbaabe23d19ca12a752cbcf81c27314adb27cc00d60f0
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	makedepends+=" argp-standalone" ;;
diff --git a/srcpkgs/libffi/template b/srcpkgs/libffi/template
index d79ef2afe2d8..13469f65f514 100644
--- a/srcpkgs/libffi/template
+++ b/srcpkgs/libffi/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://sourceware.org/libffi"
 distfiles="ftp://sourceware.org/pub/$pkgname/$pkgname-$version.tar.gz"
 checksum=72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libfprint/template b/srcpkgs/libfprint/template
index 9f32d0bea086..eef79d8277ce 100644
--- a/srcpkgs/libfprint/template
+++ b/srcpkgs/libfprint/template
@@ -17,6 +17,7 @@ homepage="http://www.freedesktop.org/wiki/Software/fprint/"
 changelog="https://gitlab.freedesktop.org/libfprint/libfprint/raw/master/NEWS"
 distfiles="https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/v$version/libfprint-v$version.tar.bz2"
 checksum=d11acf183820812fd6a8cd808d58bbf197554bcc0f9119d4c873092ecd94ee29
+patch_args=-Np0
 
 libfprint-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libfprint0/template b/srcpkgs/libfprint0/template
index 2d31deb97f4b..9f12b576fe62 100644
--- a/srcpkgs/libfprint0/template
+++ b/srcpkgs/libfprint0/template
@@ -17,6 +17,7 @@ distfiles="https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/V_${vers
 checksum=22777a1d202ef912395b94842ae6b531338c8d48a8a813616e846b1bc96c5ad9
 provides="libfprint-${version}_${revision}"
 replaces="libfprint<=${version}_1"
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/lib/udev/rules.d
diff --git a/srcpkgs/libfreehand/template b/srcpkgs/libfreehand/template
index 10282b4bd0d4..c94cd8c453e0 100644
--- a/srcpkgs/libfreehand/template
+++ b/srcpkgs/libfreehand/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand"
 distfiles="http://dev-www.libreoffice.org/src/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=0e422d1564a6dbf22a9af598535425271e583514c0f7ba7d9091676420de34ac
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated-copy"
 
diff --git a/srcpkgs/libgadu/template b/srcpkgs/libgadu/template
index 3775a273ca97..c90ab53f9559 100644
--- a/srcpkgs/libgadu/template
+++ b/srcpkgs/libgadu/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-only"
 homepage="https://www.wasilczyk.pl/en/projects/libgadu/"
 distfiles="https://github.com/wojtekka/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=f53e703d7ad93ce222dbf7fc0cec77f62813af38817a3678e799e91f1c69c94d
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/libgdal/template b/srcpkgs/libgdal/template
index 72c96ff67605..246109c38cf6 100644
--- a/srcpkgs/libgdal/template
+++ b/srcpkgs/libgdal/template
@@ -17,6 +17,7 @@ homepage="http://www.gdal.org/"
 distfiles="http://download.osgeo.org/gdal/${version}/gdal-${version}.tar.xz"
 checksum=5569a4daa1abcbba47a9d535172fc335194d9214fdb96cd0f139bb57329ae277
 subpackages="libgdal-devel libgdal-tools"
+patch_args=-Np0
 
 if [ -z "$CROSS_BUILD" ]; then
 	makedepends+=" hdf5-devel"
diff --git a/srcpkgs/libgfshare/template b/srcpkgs/libgfshare/template
index db6177570707..74c7044cd865 100644
--- a/srcpkgs/libgfshare/template
+++ b/srcpkgs/libgfshare/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://git.gitano.org.uk/libgfshare.git"
 distfiles="http://www.digital-scurf.org/files/libgfshare/libgfshare-${version}.tar.bz2"
 checksum=86f602860133c828356b7cf7b8c319ba9b27adf70a624fe32275ba1ed268331f
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libgit2-glib/template b/srcpkgs/libgit2-glib/template
index 00e6439339ba..21f2430ff936 100644
--- a/srcpkgs/libgit2-glib/template
+++ b/srcpkgs/libgit2-glib/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/GNOME/libgit2-glib"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=22dccc7aa9ff6f29edf50352b17d58c3f9289ba1cfa7952f70d7feb48676f10c
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/libglade/template b/srcpkgs/libglade/template
index f9bbef8cfbe3..5057e12b4d5d 100644
--- a/srcpkgs/libglade/template
+++ b/srcpkgs/libglade/template
@@ -14,6 +14,7 @@ homepage="http://www.jamesh.id.au/software/libglade/"
 distfiles="${GNOME_SITE}/$pkgname/2.6/$pkgname-$version.tar.bz2"
 checksum=64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec
 python_version=2 #unverified
+patch_args=-Np0
 
 # Register DTDs with xmlcatmgr.
 xml_entries="system http://glade.gnome.org/glade-2.0.dtd /usr/share/xml/libglade/glade-2.0.dtd"
diff --git a/srcpkgs/libglvnd/template b/srcpkgs/libglvnd/template
index 2f6448cc9780..e97629209e6f 100644
--- a/srcpkgs/libglvnd/template
+++ b/srcpkgs/libglvnd/template
@@ -13,6 +13,7 @@ license="custom:MIT-alike"
 homepage="https://gitlab.freedesktop.org/glvnd/libglvnd"
 distfiles="https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/v${version}/libglvnd-v${version}.tar.gz"
 checksum=6332c27f4c792b09a3eb1d7ae18c2d6ff6a0acaf3a746489caf859e659fca2f7
+patch_args=-Np0
 
 provides="libGL-7.11_1 libEGL-7.11_1 libGLES-7.11_1"
 replaces="libGL>=0 libEGL>=0 libGLES>=0"
diff --git a/srcpkgs/libgme/template b/srcpkgs/libgme/template
index 30394ff33815..338848b520ba 100644
--- a/srcpkgs/libgme/template
+++ b/srcpkgs/libgme/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://bitbucket.org/mpyne/game-music-emu/wiki/Home"
 distfiles="https://bitbucket.org/mpyne/game-music-emu/downloads/game-music-emu-${version}.tar.xz"
 checksum=aba34e53ef0ec6a34b58b84e28bf8cfbccee6585cebca25333604c35db3e051d
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	CXXFLAGS="-DMSB_FIRST=1"
diff --git a/srcpkgs/libgpod/template b/srcpkgs/libgpod/template
index 8e547f1f9ebd..89f4bfd7fc37 100644
--- a/srcpkgs/libgpod/template
+++ b/srcpkgs/libgpod/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-only"
 homepage="http://www.gtkpod.org/libgpod/"
 distfiles="${SOURCEFORGE_SITE}/gtkpod/$pkgname-$version.tar.bz2"
 checksum=638a7959d04e95f1e62abad02bd33702e4e8dfef98485ac7d9d50395c37e955d
+patch_args=-Np0
 
 post_patch() {
 	vsed -i configure.ac -e '/PKG_CHECK_MODULES/s/libplist\b/libplist-2.0/g'
diff --git a/srcpkgs/libgsm/template b/srcpkgs/libgsm/template
index 1d7cc0a0dc20..55da1bc0275f 100644
--- a/srcpkgs/libgsm/template
+++ b/srcpkgs/libgsm/template
@@ -9,6 +9,7 @@ short_desc="GSM 06.10 lossy speech compression"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="custom"
 checksum=04f68087c3348bf156b78d59f4d8aff545da7f6e14f33be8f47d33f4efae2a10
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC LD=$CC AR=$AR CCFLAGS="$CFLAGS -c -DNeedFunctionPrototypes=1"
diff --git a/srcpkgs/libguestfs/template b/srcpkgs/libguestfs/template
index 81afe313d203..4f0b0283a00c 100644
--- a/srcpkgs/libguestfs/template
+++ b/srcpkgs/libguestfs/template
@@ -23,6 +23,7 @@ license=" GPL-2.0-or-later"
 homepage="http://libguestfs.org"
 distfiles="http://libguestfs.org/download/${_version_short}-stable/${pkgname}-${version}.tar.gz"
 checksum=72b7dcdd32da1c17c932cf5a0a70b3bd68bc93e94828ad66a539f2e616adb025
+patch_args=-Np0
 
 conf_files="etc/libguestfs-tools.conf
  etc/xdg/virt-builder/repos.d/libguestfs.conf
diff --git a/srcpkgs/libieee1284/template b/srcpkgs/libieee1284/template
index 885772156e50..d24ad9c78059 100644
--- a/srcpkgs/libieee1284/template
+++ b/srcpkgs/libieee1284/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://cyberelk.net/tim/libieee1284"
 distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.bz2"
 checksum=7730de107782e5d2b071bdcb5b06a44da74856f00ef4a9be85d1ba4806a38f1a
+patch_args=-Np0
 
 libieee1284-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libimobiledevice/template b/srcpkgs/libimobiledevice/template
index a8bb2d08e09a..19285ba975f8 100644
--- a/srcpkgs/libimobiledevice/template
+++ b/srcpkgs/libimobiledevice/template
@@ -13,6 +13,7 @@ homepage="https://libimobiledevice.org"
 changelog="https://raw.githubusercontent.com/libimobiledevice/libimobiledevice/master/NEWS"
 distfiles="https://github.com/libimobiledevice/libimobiledevice/archive/${version}.tar.gz"
 checksum=acbfb73eabee162e64c0d9de207d71c0a5f47c40cd5ad32a5097f734328ce10a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args="ac_cv_sys_file_offset_bits=yes ac_cv_sys_large_file=yes"
diff --git a/srcpkgs/libindicator/template b/srcpkgs/libindicator/template
index 1ad0e5f9c6e7..abe8951a83ad 100644
--- a/srcpkgs/libindicator/template
+++ b/srcpkgs/libindicator/template
@@ -12,6 +12,7 @@ license="GPL-3"
 homepage="https://launchpad.net/libindicator"
 distfiles="https://launchpad.net/libindicator/${version%.*}/${version}/+download/libindicator-${version}.tar.gz"
 checksum=b2d2e44c10313d5c9cd60db455d520f80b36dc39562df079a3f29495e8f9447f
+patch_args=-Np0
 
 CFLAGS="-Wno-deprecated-declarations"
 # Avoid errors for macros deprecated since glib-2.58 */
diff --git a/srcpkgs/libiodbc/template b/srcpkgs/libiodbc/template
index 85f0286a90bf..fec82642e70a 100644
--- a/srcpkgs/libiodbc/template
+++ b/srcpkgs/libiodbc/template
@@ -12,6 +12,7 @@ license="LGPL-2.1"
 homepage="http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/"
 distfiles="${SOURCEFORGE_SITE}/iodbc/${pkgname}-${version}.tar.gz"
 checksum=51c5ff3a7d9a54202486cb77a3514e0e379a135beefcd5d12b96d1901f9dfb62
+patch_args=-Np0
 
 post_install() {
 	rm -rf ${DESTDIR}/usr/share/libiodbc
diff --git a/srcpkgs/libixion/template b/srcpkgs/libixion/template
index 60a21b07ac94..52f55031e1a4 100644
--- a/srcpkgs/libixion/template
+++ b/srcpkgs/libixion/template
@@ -12,6 +12,7 @@ homepage="https://gitlab.com/ixion/ixion/"
 distfiles="http://kohei.us/files/ixion/src/${pkgname}-${version}.tar.xz"
 checksum=426c643b3c346d546027c0226619abb2e59848e94470b9b5aa6365e26125089f
 replaces="libixion11>=0"
+patch_args=-Np0
 
 libixion-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libmad/template b/srcpkgs/libmad/template
index b61acb3d8f4b..02d40edf5aa1 100644
--- a/srcpkgs/libmad/template
+++ b/srcpkgs/libmad/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.underbit.com/products/mad/"
 distfiles="${SOURCEFORGE_SITE}/mad/$pkgname-$version.tar.gz"
 checksum=bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690
+patch_args=-Np0
 
 pre_configure() {
 	sed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.ac
diff --git a/srcpkgs/libmemcached/template b/srcpkgs/libmemcached/template
index c39630b669cd..7365c00db928 100644
--- a/srcpkgs/libmemcached/template
+++ b/srcpkgs/libmemcached/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://libmemcached.org/libMemcached.html"
 distfiles="http://launchpad.net/${pkgname}/1.0/${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=e22c0bb032fde08f53de9ffbc5a128233041d9f33b5de022c0978a2149885f82
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libmill/template b/srcpkgs/libmill/template
index 5bde0ee21208..5df89def696b 100644
--- a/srcpkgs/libmill/template
+++ b/srcpkgs/libmill/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://libmill.org/"
 distfiles="https://github.com/sustrik/libmill/archive/${version}.tar.gz"
 checksum=ff6903cd05f45c4cc050921d03201a93d2723ab59c480eb924f8f1ca8c6f0614
+patch_args=-Np0
 
 pre_configure() {
 	export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=?/}"
diff --git a/srcpkgs/libmilter/template b/srcpkgs/libmilter/template
index f51b61430ced..d5ca00bb6afb 100644
--- a/srcpkgs/libmilter/template
+++ b/srcpkgs/libmilter/template
@@ -12,6 +12,7 @@ license="Sendmail"
 homepage="https://www.milter.org/developers/api/"
 distfiles="ftp://ftp.mirrorservice.org/sites/ftp.sendmail.org/pub/${_pkgname}/${_pkgname}.${_version}.tar.gz"
 checksum=24f94b5fd76705f15897a78932a5f2439a32b1a2fdc35769bb1a5f5d9b4db439
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/libmirage/template b/srcpkgs/libmirage/template
index 283a27e223ca..c3c66f1cf3be 100644
--- a/srcpkgs/libmirage/template
+++ b/srcpkgs/libmirage/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://cdemu.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/cdemu/libmirage-${version}.tar.xz"
 checksum=d50d97e15f180f99fddcdf388b0d9fec073fb8fe080ba6c69cd3674214141139
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/libmowgli/template b/srcpkgs/libmowgli/template
index cf17648a4b75..80f8da745be8 100644
--- a/srcpkgs/libmowgli/template
+++ b/srcpkgs/libmowgli/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/atheme/libmowgli-2"
 distfiles="https://github.com/atheme/libmowgli-2/archive/v${version}.tar.gz"
 checksum=b7faab2fb9f46366a52b51443054a2ed4ecdd04774c65754bf807c5e9bdda477
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libmp4v2/template b/srcpkgs/libmp4v2/template
index 674b6ee304ad..ef8115e38575 100644
--- a/srcpkgs/libmp4v2/template
+++ b/srcpkgs/libmp4v2/template
@@ -11,6 +11,7 @@ homepage="http://code.google.com/p/mp4v2/"
 license="MPL-1.1"
 distfiles="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/${wrksrc}.tar.bz2"
 checksum=0319b9a60b667cf10ee0ec7505eb7bdc0a2e21ca7a93db96ec5bd758e3428338
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/libmpd/template b/srcpkgs/libmpd/template
index 608057b0232a..65647c6d7061 100644
--- a/srcpkgs/libmpd/template
+++ b/srcpkgs/libmpd/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://gmpc.wikia.com/wiki/Gnome_Music_Player_Client"
 distfiles="http://download.sarine.nl/Programs/gmpc/${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=fe20326b0d10641f71c4673fae637bf9222a96e1712f71f170fca2fc34bf7a83
+patch_args=-Np0
 
 libmpd-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libmspub/template b/srcpkgs/libmspub/template
index 5c96ba407069..c74bfdaf9b9c 100644
--- a/srcpkgs/libmspub/template
+++ b/srcpkgs/libmspub/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://cgit.freedesktop.org/libreoffice/libmspub/commit/"
 distfiles="https://dev-www.libreoffice.org/src/${pkgname}-${version}.tar.xz"
 checksum=ef36c1a1aabb2ba3b0bedaaafe717bf4480be2ba8de6f3894be5fd3702b013ba
+patch_args=-Np0
 
 libmspub-devel_package() {
 	depends="libmspub>=${version}_${revision} $makedepends"
diff --git a/srcpkgs/libmygpo-qt/template b/srcpkgs/libmygpo-qt/template
index 1014491ae241..676772f69a4d 100644
--- a/srcpkgs/libmygpo-qt/template
+++ b/srcpkgs/libmygpo-qt/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/gpodder/libmygpo-qt"
 distfiles="https://github.com/gpodder/libmygpo-qt/archive/${version}.tar.gz"
 checksum=2eab976efbbdd39bae1b436e7dcd2ddffd35241432094f29b69308840a938459
+patch_args=-Np0
 
 libmygpo-qt-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libmygui/template b/srcpkgs/libmygui/template
index 902ad67b0d58..30627cf63f85 100644
--- a/srcpkgs/libmygui/template
+++ b/srcpkgs/libmygui/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://mygui.info"
 distfiles="https://github.com/MyGUI/mygui/archive/MyGUI${version}.tar.gz"
 checksum=d1d5f294670ae71f7200ed4b30859018281d8cfd45d6a38d18b97a4aba604c42
+patch_args=-Np0
 
 libmygui-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libnet/template b/srcpkgs/libnet/template
index d38ed97b349e..5454c3b9258f 100644
--- a/srcpkgs/libnet/template
+++ b/srcpkgs/libnet/template
@@ -9,6 +9,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/sam-github/libnet"
 distfiles="https://github.com/sam-github/libnet/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=caa4868157d9e5f32e9c7eac9461efeff30cb28357f7f6bf07e73933fb4edaa7
+patch_args=-Np0
 
 libnet-devel_package() {
 	depends="${sourcepkg}-${version}_${revision}"
diff --git a/srcpkgs/libnetfilter_log/template b/srcpkgs/libnetfilter_log/template
index f2b85ead2ee6..d926f53b2784 100644
--- a/srcpkgs/libnetfilter_log/template
+++ b/srcpkgs/libnetfilter_log/template
@@ -11,6 +11,7 @@ homepage="http://www.netfilter.org/projects/libnetfilter_log/index.html"
 short_desc="A userspace library providing interface to packets that have been logged by the kernel packet filter"
 distfiles="http://www.netfilter.org/projects/${pkgname}/files/${pkgname}-${version}.tar.bz2"
 checksum=74e0fe75753dba3ac114531b5e73240452c789a3f3adccf5c51217da1d933b21
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's/u_int\([0-9]*\)_t/uint\1_t/' utils/* src/* include/libnetfilter_log/*
diff --git a/srcpkgs/libnfc/template b/srcpkgs/libnfc/template
index 7737dad56902..96841d882d66 100644
--- a/srcpkgs/libnfc/template
+++ b/srcpkgs/libnfc/template
@@ -13,6 +13,7 @@ homepage="http://nfc-tools.org/"
 distfiles="https://github.com/nfc-tools/libnfc/archive/libnfc-${version}.tar.gz"
 checksum=0ab7d9b41442e7edc2af7c54630396edc73ce51128aa28a5c6e4135dc5595495
 CFLAGS="-D_GNU_SOURCE"
+patch_args=-Np0
 
 pre_configure() {
 	sed -i "s|MODE=\"0664\", GROUP=\"plugdev\"|TAG+=\"uaccess\"|g" contrib/udev/93-pn53x.rules
diff --git a/srcpkgs/libnfs/template b/srcpkgs/libnfs/template
index f1e27dd15f57..792a882d68c5 100644
--- a/srcpkgs/libnfs/template
+++ b/srcpkgs/libnfs/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/sahlberg/libnfs"
 distfiles="https://github.com/sahlberg/libnfs/archive/${pkgname}-${version}.tar.gz"
 checksum=6ee77e9fe220e2d3e3b1f53cfea04fb319828cc7dbb97dd9df09e46e901d797d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libnih/template b/srcpkgs/libnih/template
index 52ebfddc9b7a..ae28525b1897 100644
--- a/srcpkgs/libnih/template
+++ b/srcpkgs/libnih/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/keybuk/${pkgname}"
 distfiles="${homepage}/archive/${_commit}.tar.gz"
 checksum=bd1ce78c9e4808fd02e06edaf581eb2b70fa43d7baae051848dfdbaf5b4d1a1c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libnl/template b/srcpkgs/libnl/template
index ab8c03352d7d..6b2f6cbe3941 100644
--- a/srcpkgs/libnl/template
+++ b/srcpkgs/libnl/template
@@ -9,6 +9,7 @@ license="LGPL-2.1-only"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="http://www.infradead.org/~tgr/libnl/files/libnl-${version}.tar.gz"
 checksum=4f80c21fe5bbcdde6e72b59b4f98306063a41421f909887c34e58d93e746d063
+patch_args=-Np0
 
 libnl-devel_package() {
 	depends="libnl>=${version}_${revision}"
diff --git a/srcpkgs/libogre/template b/srcpkgs/libogre/template
index df60f7b4f542..e36217268348 100644
--- a/srcpkgs/libogre/template
+++ b/srcpkgs/libogre/template
@@ -17,6 +17,7 @@ license="MIT"
 homepage="http://www.ogre3d.org"
 distfiles="https://github.com/OGRECave/ogre/archive/v$version.tar.gz"
 checksum=028e7d0bbfce8fd254e1102666b07b7cbb9379321e88885d82feee5e061342aa
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
diff --git a/srcpkgs/libomxil-bellagio/template b/srcpkgs/libomxil-bellagio/template
index 6b120a2a87c4..c6f3c9e38cc9 100644
--- a/srcpkgs/libomxil-bellagio/template
+++ b/srcpkgs/libomxil-bellagio/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="http://omxil.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/omxil/omxil/Bellagio%20${version}/${pkgname}-${version}.tar.gz"
 checksum=593c0729c8ef8c1467b3bfefcf355ec19a46dd92e31bfc280e17d96b0934d74c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libopenglrecorder/template b/srcpkgs/libopenglrecorder/template
index b0b06ee3797e..241bc09971cd 100644
--- a/srcpkgs/libopenglrecorder/template
+++ b/srcpkgs/libopenglrecorder/template
@@ -11,6 +11,7 @@ license="3-clause-BSD"
 homepage="https://github.com/Benau/libopenglrecorder"
 distfiles="https://github.com/Benau/libopenglrecorder/archive/v${version}.tar.gz"
 checksum=a90a99c23f868636f77003a8dc6ffe6c3699fc2759c47df5dbd44ff8b42d2e4f
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libopenshot-audio/template b/srcpkgs/libopenshot-audio/template
index 56c330eafcf1..6df0d294f841 100644
--- a/srcpkgs/libopenshot-audio/template
+++ b/srcpkgs/libopenshot-audio/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/OpenShot/libopenshot-audio"
 distfiles="https://github.com/OpenShot/libopenshot-audio/archive/v${version}.tar.gz"
 checksum=937ff4f1c2dfb8ab5d56ad85beacaa29dfd5a79af0d9cf647386034fe9882309
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/libosinfo/template b/srcpkgs/libosinfo/template
index e9210c52f08f..52283fceeca6 100644
--- a/srcpkgs/libosinfo/template
+++ b/srcpkgs/libosinfo/template
@@ -20,6 +20,7 @@ homepage="https://libosinfo.org/"
 changelog="https://gitlab.com/libosinfo/libosinfo/raw/master/NEWS"
 distfiles="https://gitlab.com/libosinfo/libosinfo/-/archive/v${version}/libosinfo-v${version}.tar.gz"
 checksum=7270d7a54f4ea46b21163aa1704caf69a5e8ed980434dac6b9951588cae62ea7
+patch_args=-Np0
 
 build_options="gtk_doc gir vala"
 desc_option_gtk_doc="Build GTK API docs"
diff --git a/srcpkgs/libostree/template b/srcpkgs/libostree/template
index 96ce2464312d..bb03d1c7c31d 100644
--- a/srcpkgs/libostree/template
+++ b/srcpkgs/libostree/template
@@ -20,6 +20,7 @@ homepage="https://ostree.readthedocs.io/en/latest/"
 changelog="https://github.com/ostreedev/ostree/releases"
 distfiles="https://github.com/ostreedev/ostree/releases/download/v${version}/libostree-${version}.tar.xz"
 checksum=854008e7c71d44f6b3670f0e9b8500db0f08ff8b297d0b30a7cb9a66f34c5d7c
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/libowfat/template b/srcpkgs/libowfat/template
index 95c7e9a812bf..3ab028281e03 100644
--- a/srcpkgs/libowfat/template
+++ b/srcpkgs/libowfat/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="https://www.fefe.de/libowfat/"
 distfiles="https://www.fefe.de/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=f4b9b3d9922dc25bc93adedf9e9ff8ddbebaf623f14c8e7a5f2301bfef7998c1
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libportal/template b/srcpkgs/libportal/template
index 48211c3767e1..9dee4f8c0d2c 100644
--- a/srcpkgs/libportal/template
+++ b/srcpkgs/libportal/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-or-later"
 homepage="https://github.com/flatpak/libportal"
 distfiles="https://github.com/flatpak/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.xz"
 checksum=fd35d66357169e63e33ef46c43fdf22ddc07dbd960ec3462b58ca9ef15a65bd7
+patch_args=-Np0
 
 build_options="gtk_doc"
 
diff --git a/srcpkgs/libproxy/template b/srcpkgs/libproxy/template
index d6103007032e..c678d6e8383e 100644
--- a/srcpkgs/libproxy/template
+++ b/srcpkgs/libproxy/template
@@ -13,6 +13,7 @@ homepage="http://github.com/libproxy/libproxy"
 license="LGPL-2.1"
 distfiles="https://github.com/libproxy/libproxy/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=18f58b0a0043b6881774187427ead158d310127fc46a1c668ad6d207fb28b4e0
+patch_args=-Np0
 
 libproxy-devel_package() {
 	depends="libproxy>=${version}_${revision}"
diff --git a/srcpkgs/libpurple-steam/template b/srcpkgs/libpurple-steam/template
index 06c8cc833682..844f7e3b7137 100644
--- a/srcpkgs/libpurple-steam/template
+++ b/srcpkgs/libpurple-steam/template
@@ -1,4 +1,5 @@
 # Template file for 'libpurple-steam'
+patch_args=-Np0
 
 pkgname="libpurple-steam"
 version="1.6.1"
diff --git a/srcpkgs/libratbag/template b/srcpkgs/libratbag/template
index 370d670157f6..b1acd757fa33 100644
--- a/srcpkgs/libratbag/template
+++ b/srcpkgs/libratbag/template
@@ -16,6 +16,7 @@ license="MIT"
 homepage="https://github.com/libratbag/libratbag"
 distfiles="https://github.com/libratbag/libratbag/archive/v${version}.tar.gz"
 checksum=9e6ad8d54daef8cc0f44784bdde9bf5a3879d8a66d11e0b990b87266f81f7329
+patch_args=-Np0
 
 post_install() {
 	vsv ratbagd
diff --git a/srcpkgs/libreadline8/template b/srcpkgs/libreadline8/template
index dbac03c6764b..44245746df7e 100644
--- a/srcpkgs/libreadline8/template
+++ b/srcpkgs/libreadline8/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://tiswww.cwru.edu/php/chet/readline/rltop.html"
 distfiles="${GNU_SITE}/readline/readline-${_dist_ver}.tar.gz"
 checksum=f8ceb4ee131e3232226a17f51b164afc46cd0b9e6cef344be87c65962cb82b02
+patch_args=-Np0
 
 post_patch() {
 	cd ${wrksrc}
diff --git a/srcpkgs/libreoffice/template b/srcpkgs/libreoffice/template
index f08066f12966..2c19e2ec70dc 100644
--- a/srcpkgs/libreoffice/template
+++ b/srcpkgs/libreoffice/template
@@ -5,6 +5,7 @@ revision=1
 build_style=meta
 make_build_target="build-nocheck"
 nocross="Several dependencies are nocross=yes"
+patch_args=-Np0
 
 hostmakedepends="automake flex git gperf hyphen icu libtool openldap which gettext xz
  perl-Archive-Zip pkg-config qt5-qmake sane ucpp unzip wget zip python3-setuptools
diff --git a/srcpkgs/libretro-mupen64plus-rpi/template b/srcpkgs/libretro-mupen64plus-rpi/template
index 47752ab573e9..2bf1f3af3e60 100644
--- a/srcpkgs/libretro-mupen64plus-rpi/template
+++ b/srcpkgs/libretro-mupen64plus-rpi/template
@@ -14,6 +14,7 @@ homepage="http://www.libretro.com/"
 distfiles="https://github.com/libretro/mupen64plus-libretro/archive/${_gitrev}.tar.gz"
 checksum=947abfb1d5ff34d6b22fecfb2df02bd3759fde3f4a0e5d238f65ec7e97d964d4
 conflicts="ĺibretro-mupen64plus>=0"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libretro-mupen64plus/template b/srcpkgs/libretro-mupen64plus/template
index 81adcec5d655..66259516c750 100644
--- a/srcpkgs/libretro-mupen64plus/template
+++ b/srcpkgs/libretro-mupen64plus/template
@@ -13,6 +13,7 @@ homepage="http://www.libretro.com/"
 distfiles="https://github.com/libretro/mupen64plus-libretro/archive/${_gitrev}.tar.gz"
 checksum=947abfb1d5ff34d6b22fecfb2df02bd3759fde3f4a0e5d238f65ec7e97d964d4
 conflicts="ĺibretro-mupen64plus-rpi>=0"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*) hostmakedepends+=" nasm";;
diff --git a/srcpkgs/librtas/template b/srcpkgs/librtas/template
index 65951b25fe13..f7d9c0411d49 100644
--- a/srcpkgs/librtas/template
+++ b/srcpkgs/librtas/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/ibm-power-utilities/librtas"
 distfiles="https://github.com/ibm-power-utilities/librtas/archive/v${version}.tar.gz"
 checksum=b47b2a6f140347ac265e2c66ddf68293f6cdcc7c0c9a78c6e21ff52846465415
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/libscrypt/template b/srcpkgs/libscrypt/template
index f3777bab08e8..debdb6e9c44b 100644
--- a/srcpkgs/libscrypt/template
+++ b/srcpkgs/libscrypt/template
@@ -9,6 +9,7 @@ license="2-clause-BSD"
 homepage="https://github.com/technion/"
 distfiles="https://github.com/technion/${pkgname}/archive/v${version}.tar.gz"
 checksum=68e377e79745c10d489b759b970e52d819dbb80dd8ca61f8c975185df3f457d3
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libsearpc/template b/srcpkgs/libsearpc/template
index 22fbb7987d06..8d527de8c27c 100644
--- a/srcpkgs/libsearpc/template
+++ b/srcpkgs/libsearpc/template
@@ -17,6 +17,7 @@ homepage="https://seafile.com"
 distfiles="https://github.com/haiwen/libsearpc/archive/${_gitrev}.tar.gz"
 checksum=2a58894cefbc1d7398581fc58103261688c93a9cf63f11afc5e92142ed948c00
 python_version=3
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/libselinux/template b/srcpkgs/libselinux/template
index fdd8d639932e..ec31b411ef3f 100644
--- a/srcpkgs/libselinux/template
+++ b/srcpkgs/libselinux/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://www.nsa.gov/what-we-do/research/selinux/"
 distfiles="https://github.com/SELinuxProject/selinux/releases/download/20191204/${pkgname}-${version}.tar.gz"
 checksum=2ea2b30f671dae9d6b1391cbe8fb2ce5d36a3ee4fb1cd3c32f0d933c31b82433
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" musl-fts-devel"
diff --git a/srcpkgs/libsigrokdecode/template b/srcpkgs/libsigrokdecode/template
index 8be3b7363730..a06923caeec7 100644
--- a/srcpkgs/libsigrokdecode/template
+++ b/srcpkgs/libsigrokdecode/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://sigrok.org/"
 distfiles="https://sigrok.org/download/source/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c50814aa6743cd8c4e88c84a0cdd8889d883c3be122289be90c63d7d67883fc0
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf
diff --git a/srcpkgs/libsigsegv/template b/srcpkgs/libsigsegv/template
index 13352c58bc46..977989a1db50 100644
--- a/srcpkgs/libsigsegv/template
+++ b/srcpkgs/libsigsegv/template
@@ -10,6 +10,7 @@ homepage="https://www.gnu.org/software/libsigsegv/"
 distfiles="https://ftpmirror.gnu.org/libsigsegv/libsigsegv-${version}.tar.gz"
 checksum=3ae1af359eebaa4ffc5896a1aee3568c052c99879316a1ab57f8fe1789c390b6
 configure_args="--enable-shared"
+patch_args=-Np0
 
 post_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/libsmbios/template b/srcpkgs/libsmbios/template
index 998437288504..fbd3633b480c 100644
--- a/srcpkgs/libsmbios/template
+++ b/srcpkgs/libsmbios/template
@@ -16,6 +16,7 @@ checksum=36c36a0f6b59190d6b4fef11696886e4511091929a5eb7ae7cf5fea0c32d3f58
 # explicitly list the subpackages to make sure they are installed in the
 # right order:
 subpackages="libsmbios-devel python3-libsmbios libsmbios-utils"
+patch_args=-Np0
 
 archs="i686* x86_64*"
 
diff --git a/srcpkgs/libspnav/template b/srcpkgs/libspnav/template
index df35072b2404..af3966aa1fd7 100644
--- a/srcpkgs/libspnav/template
+++ b/srcpkgs/libspnav/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://spacenav.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/spacenav/${pkgname}-${version}.tar.gz"
 checksum=7ae4d7bb7f6a5dda28b487891e01accc856311440f582299760dace6ee5f1f93
+patch_args=-Np0
 
 do_build() {
 	make CC="${CC}" AR="${AR}"
diff --git a/srcpkgs/libssh/template b/srcpkgs/libssh/template
index 9b57379bfc88..9c3194a779cf 100644
--- a/srcpkgs/libssh/template
+++ b/srcpkgs/libssh/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://www.libssh.org/"
 distfiles="https://git.libssh.org/projects/libssh.git/snapshot/${pkgname}-${version}.tar.gz"
 checksum=df65d6054554e8ff5458628808ce8d68b928175f4fefa1c833582b9568491e64
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args="-DHAVE_GLOB=0" ;;
diff --git a/srcpkgs/libtecla/template b/srcpkgs/libtecla/template
index 7055a50a638a..ee59c9c33667 100644
--- a/srcpkgs/libtecla/template
+++ b/srcpkgs/libtecla/template
@@ -11,6 +11,7 @@ license="MIT/X11"
 homepage="http://www.astro.caltech.edu/~mcs/tecla"
 distfiles="${homepage}/${pkgname}-${version}.tar.gz"
 checksum=f2757cc55040859fcf8f59a0b7b26e0184a22bece44ed9568a4534a478c1ee1a
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.TERMS LICENSE
diff --git a/srcpkgs/libticables2/template b/srcpkgs/libticables2/template
index 17f06ace976a..947288493728 100644
--- a/srcpkgs/libticables2/template
+++ b/srcpkgs/libticables2/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.ticalc.org"
 distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${_tilpver}/${pkgname}-${version}.tar.bz2"
 checksum=0c6fb6516e72ccab081ddb3aecceff694ed93aec689ddd2edba9c7c7406c4522
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" gettext-devel"
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index b9972df70341..1eafc55f90bb 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.gnu.org/software/libtool"
 distfiles="${GNU_SITE}/libtool/$pkgname-$version.tar.xz"
 checksum=7c87a8c2c8c0fc9cd5019e402bed4292462d00a718a7cd5f11218153bf28b26f
+patch_args=-Np0
 
 pre_configure() {
 	touch aclocal.m4 libltdl/aclocal.m4 Makefile.am libltdl/Makefile.am Makefile.in libltdl/Makefile.in
diff --git a/srcpkgs/libtorrent/template b/srcpkgs/libtorrent/template
index cadf0f5bb1dc..c358b89ebffe 100644
--- a/srcpkgs/libtorrent/template
+++ b/srcpkgs/libtorrent/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/rakshasa/libtorrent"
 distfiles="https://github.com/rakshasa/libtorrent/archive/v${version}.tar.gz"
 checksum=0f6c2e7ffd3a1723ab47fdac785ec40f85c0a5b5a42c1d002272205b988be722
+patch_args=-Np0
 
 # https://github.com/rakshasa/rtorrent/issues/156
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/libu2f-host/template b/srcpkgs/libu2f-host/template
index c2cd5b754dca..e8a14e5d4f39 100644
--- a/srcpkgs/libu2f-host/template
+++ b/srcpkgs/libu2f-host/template
@@ -15,6 +15,7 @@ homepage="https://developers.yubico.com/libu2f-host/"
 #changelog="https://raw.githubusercontent.com/Yubico/libu2f-host/master/NEWS"
 distfiles="https://github.com/Yubico/libu2f-host/archive/libu2f-host-${version}.tar.gz"
 checksum=45937c6c04349f865d9f047d3a68cc50ea24e9085d18ac2c7d31fa38eb749303
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libu2f-server/template b/srcpkgs/libu2f-server/template
index 661fc934531f..334b9bbe754a 100644
--- a/srcpkgs/libu2f-server/template
+++ b/srcpkgs/libu2f-server/template
@@ -12,6 +12,7 @@ license="BSD"
 homepage="https://developers.yubico.com/libu2f-server/"
 distfiles="https://github.com/Yubico/libu2f-server/archive/libu2f-server-${version}.tar.gz"
 checksum=6551109e692c9c4fea61e99f1cd8377e8e54e3033e421cc191da6d673311c860
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libucl/template b/srcpkgs/libucl/template
index 04b2608684d2..d5440d9b9606 100644
--- a/srcpkgs/libucl/template
+++ b/srcpkgs/libucl/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/vstakhov/libucl"
 distfiles="https://github.com/vstakhov/libucl/archive/${version}.tar.gz"
 checksum=a6397e179672f0e8171a0f9a2cfc37e01432b357fd748b13f4394436689d24ef
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/libuninum/template b/srcpkgs/libuninum/template
index e66a1df67ece..d2278fa24568 100644
--- a/srcpkgs/libuninum/template
+++ b/srcpkgs/libuninum/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-only"
 homepage="http://billposer.org/Software/libuninum.html"
 distfiles="http://billposer.org/Software/Downloads/libuninum-${version}.tar.bz2"
 checksum=e704983c3c00e9b76bd836b8b83ce31bfe4eb1752eee8be123cf97c1275076ea
+patch_args=-Np0
 
 libuninum-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libunique/template b/srcpkgs/libunique/template
index db488533acbf..316b811bfb7e 100644
--- a/srcpkgs/libunique/template
+++ b/srcpkgs/libunique/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Attic/LibUnique"
 distfiles="${GNOME_SITE}/${pkgname}/3.0/${pkgname}-${version}.tar.bz2"
 checksum=50269a87c7aabf1e25f01b3bbb280133138ffd7b6776289894c614a4b6ca968d
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/libunwind/template b/srcpkgs/libunwind/template
index d4819ce54acd..808d89e49847 100644
--- a/srcpkgs/libunwind/template
+++ b/srcpkgs/libunwind/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://www.nongnu.org/libunwind/"
 distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version/rc/-rc}.tar.gz"
 checksum=90337653d92d4a13de590781371c604f9031cdb50520366aa1e3a91e1efb1017
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libusb-compat/template b/srcpkgs/libusb-compat/template
index 016d5753f1d6..05585a0ad57a 100644
--- a/srcpkgs/libusb-compat/template
+++ b/srcpkgs/libusb-compat/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="http://libusb.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/libusb/$pkgname-$version.tar.bz2"
 checksum=404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a
+patch_args=-Np0
 
 libusb-compat-devel_package() {
 	depends="libusb-devel ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libusb/template b/srcpkgs/libusb/template
index 8c5ff6054eed..6ec291f0778d 100644
--- a/srcpkgs/libusb/template
+++ b/srcpkgs/libusb/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://libusb.info"
 distfiles="https://github.com/libusb/libusb/releases/download/v${version}/libusb-${version}.tar.bz2"
 checksum=7efd2685f7b327326dcfb85cee426d9b871fd70e22caa15bb68d595ce2a2b12a
+patch_args=-Np0
 
 libusb-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libusbmuxd/template b/srcpkgs/libusbmuxd/template
index e3ae03e51b9c..192aa8b4a0dc 100644
--- a/srcpkgs/libusbmuxd/template
+++ b/srcpkgs/libusbmuxd/template
@@ -12,6 +12,7 @@ homepage="https://libimobiledevice.org"
 changelog="https://raw.githubusercontent.com/libimobiledevice/libusbmuxd/master/NEWS"
 distfiles="https://github.com/libimobiledevice/libusbmuxd/archive/${version}.tar.gz"
 checksum=8ae3e1d9340177f8f3a785be276435869363de79f491d05d8a84a59efc8a8fdc
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libuv/template b/srcpkgs/libuv/template
index 76a36863f4b9..24938fe4bc0e 100644
--- a/srcpkgs/libuv/template
+++ b/srcpkgs/libuv/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/libuv/libuv/archive/v${version}.tar.gz"
 checksum=6cfeb5f4bab271462b4a2cc77d4ecec847fdbdc26b72019c27ae21509e6f94fa
 # the tests fail when run as root and as such break in the CI containers
 make_check="extended"
+patch_args=-Np0
 
 LDFLAGS="-pthread"
 
diff --git a/srcpkgs/libvdpau/template b/srcpkgs/libvdpau/template
index 8b1c817cfd07..81fa6d314465 100644
--- a/srcpkgs/libvdpau/template
+++ b/srcpkgs/libvdpau/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://freedesktop.org/wiki/Software/VDPAU/"
 distfiles="https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/${version}/libvdpau-${version}.tar.gz"
 checksum=240dd8f9ec08de707529917677827ba12e13b9fc299eeb3af13ea05e7fc74aba
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libvidstab/template b/srcpkgs/libvidstab/template
index 6d28468873b5..acd85fc894a0 100644
--- a/srcpkgs/libvidstab/template
+++ b/srcpkgs/libvidstab/template
@@ -11,6 +11,7 @@ license="GPL-2"
 homepage="http://public.hronopik.de/vid.stab/"
 distfiles="https://github.com/georgmartius/vid.stab/archive/v${version}.tar.gz"
 checksum=14d2a053e56edad4f397be0cb3ef8eb1ec3150404ce99a426c4eb641861dc0bb
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e 's/include (FindSSE)//' CMakeLists.txt
diff --git a/srcpkgs/libvirt-glib/template b/srcpkgs/libvirt-glib/template
index 032188df7f73..568e921d9902 100644
--- a/srcpkgs/libvirt-glib/template
+++ b/srcpkgs/libvirt-glib/template
@@ -16,6 +16,7 @@ homepage="https://libvirt.org"
 distfiles="http://libvirt.org/sources/glib/${pkgname}-${version}.tar.xz"
 checksum=8423f7069daa476307321d1c11e2ecc285340cd32ca9fc05207762843edeacbd
 replaces="libvirt-glib-python>=0"
+patch_args=-Np0
 
 build_options="doc gir vala"
 build_options_default="gir vala"
diff --git a/srcpkgs/libwmf/template b/srcpkgs/libwmf/template
index 938d07c5e6b4..c427559b43c9 100644
--- a/srcpkgs/libwmf/template
+++ b/srcpkgs/libwmf/template
@@ -17,6 +17,7 @@ homepage="http://wvware.sourceforge.net/libwmf.html"
 license="LGPL-2.1"
 distfiles="${SOURCEFORGE_SITE}/wvware/${pkgname}-${version}.tar.gz"
 checksum=5b345c69220545d003ad52bfd035d5d6f4f075e65204114a9e875e84895a7cf8
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libxdg-basedir/template b/srcpkgs/libxdg-basedir/template
index f9cc8880c438..f572dd6294c7 100644
--- a/srcpkgs/libxdg-basedir/template
+++ b/srcpkgs/libxdg-basedir/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/devnev/libxdg-basedir"
 distfiles="https://github.com/devnev/libxdg-basedir/archive/libxdg-basedir-${version}.tar.gz"
 checksum=1c2b0032a539033313b5be2e48ddd0ae94c84faf21d93956d53562eef4614868
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libxkbcommon/template b/srcpkgs/libxkbcommon/template
index 3cfefeb295d2..26668752a01f 100644
--- a/srcpkgs/libxkbcommon/template
+++ b/srcpkgs/libxkbcommon/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="https://xkbcommon.org/"
 distfiles="https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-${version}.tar.gz"
 checksum=e1b79838256549d72f42c824f720b4f14603374cfbe5587942e35a0cbb13ff9e
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libxml2-python/template b/srcpkgs/libxml2-python/template
index 4208519dac3e..dca8e06333d5 100644
--- a/srcpkgs/libxml2-python/template
+++ b/srcpkgs/libxml2-python/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.xmlsoft.org/"
 distfiles="http://xmlsoft.org/sources/libxml2-${version}.tar.gz"
 checksum=aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f
+patch_args=-Np0
 
 post_patch() {
 	if [ "${CROSS_BUILD}" ]; then
diff --git a/srcpkgs/libxml2/template b/srcpkgs/libxml2/template
index c334f505ed0c..b45761f66b27 100644
--- a/srcpkgs/libxml2/template
+++ b/srcpkgs/libxml2/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="http://www.xmlsoft.org/"
 distfiles="http://xmlsoft.org/sources/${pkgname}-${version}.tar.gz"
 checksum=aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libxo/template b/srcpkgs/libxo/template
index fb0ae8cb85ca..0990f737af5b 100644
--- a/srcpkgs/libxo/template
+++ b/srcpkgs/libxo/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="https://juniper.github.io/libxo/libxo-manual.html"
 distfiles="https://github.com/Juniper/libxo/releases/download/${version}/libxo-${version}.tar.gz"
 checksum=aa842d9374bc0c640d9526abdeb6f1dc75c1a14e892eafd3c9e0ee2e8dfc1c43
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	*-musl)
diff --git a/srcpkgs/libzim/template b/srcpkgs/libzim/template
index fe3c53109803..bac5a114bbea 100644
--- a/srcpkgs/libzim/template
+++ b/srcpkgs/libzim/template
@@ -15,6 +15,7 @@ changelog="https://github.com/openzim/libzim/blob/${version}/ChangeLog"
 distfiles="https://github.com/openzim/libzim/archive/${version}.tar.gz"
 checksum=984d2f3881c507c9f0212dc2bc1b808d25cdeef6a62043f9211fcb78a231a986
 replaces="libzim-tools>=0"
+patch_args=-Np0
 
 build_options="xapian zlib zstd"
 build_options_default="xapian zlib zstd"
diff --git a/srcpkgs/lightdm-webkit2-greeter/template b/srcpkgs/lightdm-webkit2-greeter/template
index da5786768de8..376d8eb4c661 100644
--- a/srcpkgs/lightdm-webkit2-greeter/template
+++ b/srcpkgs/lightdm-webkit2-greeter/template
@@ -15,6 +15,7 @@ homepage="https://github.com/Antergos/web-greeter"
 distfiles="https://github.com/Antergos/web-greeter/archive/${version}.tar.gz"
 checksum=f3223db35d0efaae76b2157f312dd10979c133f5a85add8fc75fd66ecb3186e3
 conf_files="/etc/lightdm/lightdm-webkit2-greeter.conf"
+patch_args=-Np0
 
 post_extract() {
 	mv themes/antergos themes/void
diff --git a/srcpkgs/lightdm/template b/srcpkgs/lightdm/template
index b2fed5ac3c6a..cf14f96c4bf0 100644
--- a/srcpkgs/lightdm/template
+++ b/srcpkgs/lightdm/template
@@ -14,6 +14,7 @@ homepage="https://github.com/CanonicalLtd/lightdm"
 changelog="https://raw.githubusercontent.com/CanonicalLtd/lightdm/master/NEWS"
 distfiles="https://github.com/CanonicalLtd/lightdm/releases/download/${version}/lightdm-${version}.tar.xz"
 checksum=a118779650a3a5b20f05d53c4f9e377b484fbc1810a6b0914a60840d9a581f95
+patch_args=-Np0
 
 hostmakedepends="pkg-config intltool itstool $(vopt_if gir 'gobject-introspection vala')"
 makedepends="dbus-glib-devel libxklavier-devel libxml2-devel
diff --git a/srcpkgs/lighttpd/template b/srcpkgs/lighttpd/template
index 7ae82aecfc33..d52c74622bc0 100644
--- a/srcpkgs/lighttpd/template
+++ b/srcpkgs/lighttpd/template
@@ -21,6 +21,7 @@ license="BSD-3-Clause"
 homepage="https://lighttpd.net"
 distfiles="https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${version}.tar.xz"
 checksum=fb953db273daef08edb6e202556cae8a3d07eed6081c96bd9903db957d1084d5
+patch_args=-Np0
 
 conf_files="/etc/lighttpd/lighttpd.conf"
 system_accounts="_${pkgname}"
diff --git a/srcpkgs/lightzone/template b/srcpkgs/lightzone/template
index 13242f01cc77..ca214c932783 100644
--- a/srcpkgs/lightzone/template
+++ b/srcpkgs/lightzone/template
@@ -19,6 +19,7 @@ skip_extraction="ivy-${_ivy_version}.jar"
 # JNI binaries are not PIE
 nopie=yes
 replaces="lightzone-bin>=0"
+patch_args=-Np0
 
 do_build() {
 	mkdir -p lightcrafts/lib
diff --git a/srcpkgs/lilo/template b/srcpkgs/lilo/template
index f42a9eb5f5ba..bc8f1699d587 100644
--- a/srcpkgs/lilo/template
+++ b/srcpkgs/lilo/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://www.joonet.de/lilo"
 distfiles="${DEBIAN_SITE}/main/l/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=e158f19de4560c935ebe0507c21b79bff17618b9230d8076fe8c5fff9fdbd5b1
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/lilyterm/template b/srcpkgs/lilyterm/template
index 31bc2ad9dc05..deadaa80f37e 100644
--- a/srcpkgs/lilyterm/template
+++ b/srcpkgs/lilyterm/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/Tetralet/LilyTerm/archive/$_githash.tar.gz"
 conf_files="/etc/lilyterm.conf"
 checksum=e777122cb4db0c75b893368aa5a3ae7de1bdfe27e1efb8fad8f9c19acb0a802e
 CFLAGS="-Wno-deprecated-declarations"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e '/LDFLAGS.*BINARY/s/$/ -lX11/' \
diff --git a/srcpkgs/linphone-desktop/template b/srcpkgs/linphone-desktop/template
index 3991291c0b7f..5526b11c727b 100644
--- a/srcpkgs/linphone-desktop/template
+++ b/srcpkgs/linphone-desktop/template
@@ -19,6 +19,7 @@ checksum=a9c520851ec40ebd6bc28b5ebc0e4d2b5f62ef3b53e5d60bb241c0b2bd56ad62
 replaces="linphone-gui>=0"
 CFLAGS="-DLINPHONE_QT_GIT_VERSION=\\\"$version\\\""
 CXXFLAGS="-DLINPHONE_QT_GIT_VERSION=\\\"$version\\\""
+patch_args=-Np0
 
 linphone-gui_package() {
 	short_desc+=" - (transitional dummy package)"
diff --git a/srcpkgs/linssid/template b/srcpkgs/linssid/template
index 3347f193c3e7..6cfe9177df4c 100644
--- a/srcpkgs/linssid/template
+++ b/srcpkgs/linssid/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="https://sourceforge.net/projects/linssid/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=57301ee93f708f2512316668bf4e718502f37f21a5e93b68fc604a9032e3e49c
+patch_args=-Np0
 
 pre_configure() {
 	sed -e "s%/usr/include%${XBPS_CROSS_BASE}&%g" -i linssid-app/linssid-app.pro
diff --git a/srcpkgs/linux-tools/template b/srcpkgs/linux-tools/template
index f28f2b17ac19..a57726ab0076 100644
--- a/srcpkgs/linux-tools/template
+++ b/srcpkgs/linux-tools/template
@@ -18,6 +18,7 @@ homepage="https://www.kernel.org"
 distfiles="${KERNEL_SITE}/kernel/v5.x/linux-${version}.tar.xz"
 checksum=904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
 python_version=3
+patch_args=-Np0
 
 subpackages="cpupower freefall libcpupower libcpupower-devel libusbip libusbip-devel perf tmon usbip"
 
diff --git a/srcpkgs/linux-vt-setcolors/template b/srcpkgs/linux-vt-setcolors/template
index fa3f7681b75b..e46c87d3c50a 100644
--- a/srcpkgs/linux-vt-setcolors/template
+++ b/srcpkgs/linux-vt-setcolors/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/EvanPurkhiser/linux-vt-setcolors"
 distfiles="https://github.com/EvanPurkhiser/linux-vt-setcolors/archive/v${version}.tar.gz"
 checksum=ccad9aac5732faab749e8f6f6b40746ce44afec5633374aa77c8e3ac2a8eef42
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/linux4.4/template b/srcpkgs/linux4.4/template
index db6cf3d38e5f..152619d3ebf2 100644
--- a/srcpkgs/linux4.4/template
+++ b/srcpkgs/linux4.4/template
@@ -13,6 +13,7 @@ checksum="401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2
  7fe0edc77e6ba8d41035488402a2f05c58a64c101cb5556ea0f6e229dc306eed"
 skip_extraction="patch-${version}.xz"
 python_version=2 #unverified
+patch_args=-Np0
 
 nocross=yes
 nodebug=yes
diff --git a/srcpkgs/liquid-dsp/template b/srcpkgs/liquid-dsp/template
index 432adac62cf7..aec6f7222b9b 100644
--- a/srcpkgs/liquid-dsp/template
+++ b/srcpkgs/liquid-dsp/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://liquidsdr.org/"
 distfiles="https://github.com/jgaeddert/liquid-dsp/archive/v${version}.tar.gz"
 checksum=e3f66ce72a3b5d74eea5ccffb049c62c422c91b0ab92d6dbbef21af3c3bfec73
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/liquidwar/template b/srcpkgs/liquidwar/template
index 69bc87d1b1a7..5ef7aa9a4964 100644
--- a/srcpkgs/liquidwar/template
+++ b/srcpkgs/liquidwar/template
@@ -15,6 +15,7 @@ homepage="http://www.ufoot.org/liquidwar"
 distfiles="http://www.ufoot.org/download/${pkgname}/v5/${version}/${pkgname}-${version}.tar.gz"
 checksum=dad0aa84dd416cad055421ed9b40df39efae78d3df759c0583c64c54f7f2ff5f
 nocross="run build artifarts"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/litecoin/template b/srcpkgs/litecoin/template
index fc91bb89f120..3837c269d323 100644
--- a/srcpkgs/litecoin/template
+++ b/srcpkgs/litecoin/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.litecoin.org/"
 distfiles="https://github.com/litecoin-project/litecoin/archive/v${version}.tar.gz"
 checksum=2d67cba11adc5890b9698ccddeb68dd3c2ff6af19bf3ed0f1c719348b914042f
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools protobuf"
diff --git a/srcpkgs/llvm11/template b/srcpkgs/llvm11/template
index 6204f1e8e369..98b0af1bd19c 100644
--- a/srcpkgs/llvm11/template
+++ b/srcpkgs/llvm11/template
@@ -26,6 +26,7 @@ checksum="
  913f68c898dfb4a03b397c5e11c6a2f39d0f22ed7665c9cefa87a34423a72469"
 lib32disabled=yes
 python_version=3
+patch_args=-Np0
 
 post_patch() {
 	# patches
diff --git a/srcpkgs/llvm12/template b/srcpkgs/llvm12/template
index 38937f68564f..c4ed10574d23 100644
--- a/srcpkgs/llvm12/template
+++ b/srcpkgs/llvm12/template
@@ -56,6 +56,7 @@ checksum="
  eb1b7022a247332114985ed155a8fb632c28ce7c35a476e2c0caf865150f167d"
 lib32disabled=yes
 python_version=3
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" -DLIBCXX_HAS_MUSL_LIBC=YES"
diff --git a/srcpkgs/lmdb/template b/srcpkgs/lmdb/template
index 14509699fc5e..f2900a390a98 100644
--- a/srcpkgs/lmdb/template
+++ b/srcpkgs/lmdb/template
@@ -9,6 +9,7 @@ license="OLDAP-2.8"
 homepage="http://symas.com/mdb/"
 distfiles="https://github.com/LMDB/lmdb/archive/LMDB_${version}.tar.gz"
 checksum=22054926b426c66d8f2bc22071365df6e35f3aacf19ad943bc6167d4cae3bebb
+patch_args=-Np0
 
 do_build() {
 	cd libraries/liblmdb
diff --git a/srcpkgs/lmms/template b/srcpkgs/lmms/template
index 15b67a8f222c..a07507954e9a 100644
--- a/srcpkgs/lmms/template
+++ b/srcpkgs/lmms/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later"
 homepage="https://lmms.io/"
 distfiles="https://github.com/LMMS/lmms/releases/download/v${version}/lmms_${version}.tar.xz"
 checksum=b185507fb64ecfd8e31145135b58ab244b637f9efc09c4176caf70aa3cbaae1e
+patch_args=-Np0
 
 build_options="sndio"
 build_options_default="sndio"
diff --git a/srcpkgs/log4cxx/template b/srcpkgs/log4cxx/template
index 269147155f8e..2e64c18f71b2 100644
--- a/srcpkgs/log4cxx/template
+++ b/srcpkgs/log4cxx/template
@@ -11,6 +11,7 @@ homepage="https://logging.apache.org/log4cxx/"
 distfiles="http://apache.osuosl.org/logging/log4cxx/${version}/apache-log4cxx-${version}.tar.gz"
 checksum=0de0396220a9566a580166e66b39674cb40efd2176f52ad2c65486c99c920c8c
 wrksrc="apache-${pkgname}-${version}"
+patch_args=-Np0
 
 log4cxx-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/loksh/template b/srcpkgs/loksh/template
index 327ac3a7583d..54c65566e151 100644
--- a/srcpkgs/loksh/template
+++ b/srcpkgs/loksh/template
@@ -12,6 +12,7 @@ homepage="https://github.com/dimkr/loksh"
 distfiles="https://github.com/dimkr/loksh/releases/download/${version}/loksh-${version}.tar.xz"
 checksum=1633048cd5f1270c5fa28ab49d9cb9f7e8305ab6880601b0c15b88ecb92450f9
 register_shell="/bin/loksh"
+patch_args=-Np0
 
 alternatives="
  ksh:ksh:/usr/bin/loksh
diff --git a/srcpkgs/loudmouth/template b/srcpkgs/loudmouth/template
index 4178683d5de9..6dedbb71f7c0 100644
--- a/srcpkgs/loudmouth/template
+++ b/srcpkgs/loudmouth/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/mcabber/loudmouth"
 distfiles="https://github.com/mcabber/${pkgname}/archive/${version}.tar.gz"
 checksum=12972fcffd9bbcc4a3b2b9fbf4b0e549f7b4caf0f11c8d2af2059087ce4e8792
+patch_args=-Np0
 
 CFLAGS+=" -Wno-deprecated-declarations"
 
diff --git a/srcpkgs/lshw/template b/srcpkgs/lshw/template
index 6ba1bb44a956..88a5887251ba 100644
--- a/srcpkgs/lshw/template
+++ b/srcpkgs/lshw/template
@@ -16,6 +16,7 @@ license="GPL-2.0-only"
 homepage="https://ezix.org/project/wiki/HardwareLiSter"
 distfiles="https://ezix.org/software/files/lshw-${version}.tar.gz"
 checksum=9bb347ac87142339a366a1759ac845e3dbb337ec000aa1b99b50ac6758a80f80
+patch_args=-Np0
 
 post_patch() {
 	vsed -i src/Makefile src/gui/Makefile \
diff --git a/srcpkgs/ltrace/template b/srcpkgs/ltrace/template
index a26e64e3c797..4a44438964b1 100644
--- a/srcpkgs/ltrace/template
+++ b/srcpkgs/ltrace/template
@@ -13,6 +13,7 @@ homepage="http://ltrace.org"
 license="GPL-2"
 distfiles="https://github.com/dkogan/ltrace/archive/${_githash}.tar.gz"
 checksum=4aecf69e4a33331aed1e50ce4907e73a98cbccc4835febc3473863474304d547
+patch_args=-Np0
 
 CFLAGS="-Wno-error -D_GNU_SOURCE"
 
diff --git a/srcpkgs/lttng-tools/template b/srcpkgs/lttng-tools/template
index 96d4061584e3..b1ed6c1ad5ad 100644
--- a/srcpkgs/lttng-tools/template
+++ b/srcpkgs/lttng-tools/template
@@ -15,6 +15,7 @@ checksum=d729f8c2373a41194f171aeb0da0a9bb35ac181f31afa7e260786d19a500dea1
 # tests timeout
 make_check=no
 system_groups="tracing"
+patch_args=-Np0
 
 lttng-tools-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 63a505b4ecf4..58efbb3ff67b 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://w3.impa.br/~diego/software/luasocket/"
 distfiles="http://luaforge.net/frs/download.php/2664/luasocket-${version}.tar.gz"
 checksum=4fd9c775cfd98841299851e29b30176caf289370fea1ff1e00bb67c2d6842ca6
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC LD=$CC LUAINC=-I${XBPS_CROSS_BASE}/usr/include/lua5.1 ${makejobs}
diff --git a/srcpkgs/lua51/template b/srcpkgs/lua51/template
index 7aad299f0757..d57fdad05f18 100644
--- a/srcpkgs/lua51/template
+++ b/srcpkgs/lua51/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-$version.tar.gz"
 checksum=2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.1
diff --git a/srcpkgs/lua52/template b/srcpkgs/lua52/template
index f53cb345ebca..a8406f18d627 100644
--- a/srcpkgs/lua52/template
+++ b/srcpkgs/lua52/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-$version.tar.gz"
 checksum=b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.2
diff --git a/srcpkgs/lua53/template b/srcpkgs/lua53/template
index 7a923690a566..ac63a8bc1592 100644
--- a/srcpkgs/lua53/template
+++ b/srcpkgs/lua53/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-${version}.tar.gz"
 checksum=0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.3
diff --git a/srcpkgs/lua54-lgi/template b/srcpkgs/lua54-lgi/template
index abae56cc4310..9be201629b8d 100644
--- a/srcpkgs/lua54-lgi/template
+++ b/srcpkgs/lua54-lgi/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://github.com/pavouk/lgi"
 distfiles="https://github.com/pavouk/lgi/archive/$version.tar.gz"
 checksum=cfc4105482b4730b3a40097c9d9e7e35c46df2fb255370bdeb2f45a886548c4f
+patch_args=-Np0
 
 # requires X11
 do_check() {
diff --git a/srcpkgs/lua54-lualdap/template b/srcpkgs/lua54-lualdap/template
index 386222ce0c6d..d5379fc6e586 100644
--- a/srcpkgs/lua54-lualdap/template
+++ b/srcpkgs/lua54-lualdap/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/lualdap/lualdap"
 distfiles="https://github.com/lualdap/lualdap/archive/v${version}.tar.gz"
 checksum=3e028faa6a5798cf2f3d50b9853b9b3fb6eb562b62010747bd5b6f50b57bb1cc
+patch_args=-Np0
 
 post_patch() {
 	cd ${wrksrc}
diff --git a/srcpkgs/lua54/template b/srcpkgs/lua54/template
index 1abbe11246f1..1b4696399797 100644
--- a/srcpkgs/lua54/template
+++ b/srcpkgs/lua54/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-${version}.tar.gz"
 checksum=f8612276169e3bfcbcfb8f226195bfc6e466fe13042f1076cbde92b7ec96bbfb
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.4
diff --git a/srcpkgs/luakit/template b/srcpkgs/luakit/template
index 4fa00bb75712..aa089acc9dea 100644
--- a/srcpkgs/luakit/template
+++ b/srcpkgs/luakit/template
@@ -14,6 +14,7 @@ homepage="https://luakit.github.io/"
 changelog="https://github.com/luakit/luakit/blob/develop/CHANGELOG.md"
 distfiles="https://github.com/luakit/luakit/archive/${version}.tar.gz"
 checksum=c7026b4f0bdfa44f43798b80f87548d3e7ad56f5b923fc43b9c712bf18496095
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/lumina/template b/srcpkgs/lumina/template
index ed7ef97adfba..b2451f5dc92b 100644
--- a/srcpkgs/lumina/template
+++ b/srcpkgs/lumina/template
@@ -16,6 +16,7 @@ homepage="https://github.com/lumina-desktop/lumina"
 distfiles="https://github.com/lumina-desktop/lumina/archive/v${version}.tar.gz"
 checksum=f3512fca4d05e3cf3a6ac106f0f16c9618bda9fa546f1d23ffb0eab9a5ce7c8a
 replaces="lumina-git>=0"
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/lvm2/template b/srcpkgs/lvm2/template
index b7d287577c32..b04e9a0d46a1 100644
--- a/srcpkgs/lvm2/template
+++ b/srcpkgs/lvm2/template
@@ -24,6 +24,7 @@ conf_files="/etc/lvm/*.conf /etc/lvm/profile/*"
 make_dirs="
  /etc/lvm/archive 0755 root root
  /etc/lvm/backup 0755 root root"
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	*-musl) configure_args+=" --enable-static_link";;
diff --git a/srcpkgs/lwipv6/template b/srcpkgs/lwipv6/template
index 66ce29f506e4..441fe3e7e9da 100644
--- a/srcpkgs/lwipv6/template
+++ b/srcpkgs/lwipv6/template
@@ -11,6 +11,7 @@ homepage="http://wiki.v2.cs.unibo.it/wiki/index.php/LWIPV6"
 distfiles="${SOURCEFORGE_SITE}/view-os/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
 checksum=4ad9415c0bf9a2aca0aa858ac1601c20d7c04b5d051d000d4a03eb1eeb0ed05a
 CPPFLAGS='-DGNU_SOURCE -D__USE_MISC -D__caddr_t=caddr_t'
+patch_args=-Np0
 
 lwipv6-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/lxappearance/template b/srcpkgs/lxappearance/template
index 7fcaad225f8d..f1475690dc04 100644
--- a/srcpkgs/lxappearance/template
+++ b/srcpkgs/lxappearance/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=7222d858b8fef4b7967c42142d61e82ded6dd42dc5ef1d59caad775795928b38
+patch_args=-Np0
 
 build_options="gtk3 dbus"
 build_options_default="dbus gtk3"
diff --git a/srcpkgs/lxdm/template b/srcpkgs/lxdm/template
index 55ae9b5356eb..86684d3b5162 100644
--- a/srcpkgs/lxdm/template
+++ b/srcpkgs/lxdm/template
@@ -23,6 +23,7 @@ license="GPL-3.0-or-later"
 homepage="https://lxde.org"
 distfiles="${SOURCEFORGE_SITE}/lxdm/lxdm-${version}.tar.xz"
 checksum=4891efee81c72a400cc6703e40aa76f3f3853833d048b72ec805da0f93567f2f
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/lxpanel/template b/srcpkgs/lxpanel/template
index 6dff9ac554f9..3f3f3f2f98b0 100644
--- a/srcpkgs/lxpanel/template
+++ b/srcpkgs/lxpanel/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=1e318f57d7e36b61c23a504d03d2430c78dad142c1804451061f1b3ea5441ee8
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/lzf/template b/srcpkgs/lzf/template
index 1d4e437dc1d4..b8457facdcea 100644
--- a/srcpkgs/lzf/template
+++ b/srcpkgs/lzf/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="http://software.schmorp.de/pkg/liblzf.html"
 distfiles="http://dist.schmorp.de/liblzf/lib${pkgname}-${version}.tar.gz"
 checksum=9c5de01f7b9ccae40c3f619d26a7abec9986c06c36d260c179cedd04b89fb46a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/mDNSResponder/template b/srcpkgs/mDNSResponder/template
index c0425e7b34ee..9af08f79dff5 100644
--- a/srcpkgs/mDNSResponder/template
+++ b/srcpkgs/mDNSResponder/template
@@ -9,6 +9,7 @@ license="Apache-2.0, BSD-3-Clause"
 homepage="https://opensource.apple.com/"
 distfiles="https://opensource.apple.com/tarballs/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=097662447e1535573484697861d9f50eceaf2c52ec2742e451ee6ffe9bbf3e75
+patch_args=-Np0
 
 conf_files="/etc/nss_mdns.conf"
 conflicts="nss-mdns>=0"
diff --git a/srcpkgs/mairix/template b/srcpkgs/mairix/template
index 49f73671bcba..f0e7fdcce13b 100644
--- a/srcpkgs/mairix/template
+++ b/srcpkgs/mairix/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/vandry/mairix"
 distfiles="https://github.com/vandry/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=a0702e079c768b6fbe25687ebcbabe7965eb493d269a105998c7c1c2caef4a57
+patch_args=-Np0
 
 pre_build() {
 	make -C dfasyn CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS"
diff --git a/srcpkgs/makedumpfile/template b/srcpkgs/makedumpfile/template
index d23444187c90..cef2f4d14dab 100644
--- a/srcpkgs/makedumpfile/template
+++ b/srcpkgs/makedumpfile/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/makedumpfile/makedumpfile"
 distfiles="${homepage}/archive/refs/tags/${version}.tar.gz"
 checksum=393ea8f22393c059ad21de9b1c3f45d9d0d8dbeb0ccb1417815b835d03f7c350
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/makeself/template b/srcpkgs/makeself/template
index 4c498dce7734..68b71aa77a57 100644
--- a/srcpkgs/makeself/template
+++ b/srcpkgs/makeself/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="http://makeself.io"
 distfiles="https://github.com/megastep/makeself/archive/release-$version.tar.gz"
 checksum=8789312db5e93fc471a1e4fb88ec13227ef63a9c7aad297f3bbf35f9511f8d62
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/share/man/man1
diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template
index b13571dd4cd3..6317423767e2 100644
--- a/srcpkgs/mame/template
+++ b/srcpkgs/mame/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/mamedev/mame/archive/mame${version}.tar.gz"
 checksum=414921771ada0804a8c7f3540e33338e8495e16a3bca78a5a2b355abafa51e6a
 nodebug=yes
 replaces="sdlmame>=0 sdlmess>=0"
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.3 -I${XBPS_CROSS_BASE}/usr/include/libutf8proc"
 CXXFLAGS="$CFLAGS"
diff --git a/srcpkgs/man-db/template b/srcpkgs/man-db/template
index c8b873771d27..80bfd7964ff0 100644
--- a/srcpkgs/man-db/template
+++ b/srcpkgs/man-db/template
@@ -26,6 +26,7 @@ lib32disabled=yes
 system_accounts="_man"
 _man_homedir="/var/cache/man"
 make_dirs="/var/cache/man 0755 _man _man"
+patch_args=-Np0
 
 # among others, requires the _man user to be available in the masterdir
 make_check=no
diff --git a/srcpkgs/marble5/template b/srcpkgs/marble5/template
index 3efa3591ea58..5baadb8e3540 100644
--- a/srcpkgs/marble5/template
+++ b/srcpkgs/marble5/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later, GFDL-1.2-only"
 homepage="https://marble.kde.org"
 distfiles="${KDE_SITE}/release-service/${version}/src/marble-${version}.tar.xz"
 checksum=66e1fe73e248ba18245e2a1e234eecf49d531569b5080e19a4ca9dddbbbd0545
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e 's/-Wcast-align//'
diff --git a/srcpkgs/marco/template b/srcpkgs/marco/template
index 5abb62b91fec..3b36a8befada 100644
--- a/srcpkgs/marco/template
+++ b/srcpkgs/marco/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=498350cb12fc4d9c7c4a0355102c17b50043fbab258d11ad41b7d698b4f042a7
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/mariadb/template b/srcpkgs/mariadb/template
index a6176b43963e..5682c0078b72 100644
--- a/srcpkgs/mariadb/template
+++ b/srcpkgs/mariadb/template
@@ -35,6 +35,7 @@ system_accounts="mysql"
 mysql_homedir="/var/lib/mysql"
 make_dirs="/var/lib/mysql 0700 mysql mysql
  /usr/lib/mysql/plugin/auth_pam_tool_dir 0700 mysql root"
+patch_args=-Np0
 
 post_patch() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/masterpassword-cli/template b/srcpkgs/masterpassword-cli/template
index 8732491bfc55..8ce664513e5d 100644
--- a/srcpkgs/masterpassword-cli/template
+++ b/srcpkgs/masterpassword-cli/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/Lyndir/MasterPassword/archive/${version}-cli-3.tar
 checksum=35dc64bc74c04b534824c21da96e4a10fc7978da376fcc036d7ec08fd800ab7a
 # Apache-1.0 is incompatible with GPL-3+
 restricted=yes
+patch_args=-Np0
 
 pre_configure() {
 	echo "${version}-cli" > ${wrksrc}/${build_wrksrc}/VERSION
diff --git a/srcpkgs/mate-utils/template b/srcpkgs/mate-utils/template
index 855db8054d4d..ed900b594412 100644
--- a/srcpkgs/mate-utils/template
+++ b/srcpkgs/mate-utils/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=219673047fe2a14eb9c8bc23a5fb7c99d45e7acad4c05b4bf59a3d244cb026ac
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/matio/template b/srcpkgs/matio/template
index d22e883530b0..58930bee51e2 100644
--- a/srcpkgs/matio/template
+++ b/srcpkgs/matio/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/tbeu/matio"
 distfiles="https://github.com/tbeu/matio/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=5e455527d370ab297c4abe5a2ab4d599c93ac7c1a0c85d841cc5c22f8221c400
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" ac_cv_va_copy=C99"
diff --git a/srcpkgs/maturin/template b/srcpkgs/maturin/template
index 7ce8d5bd64c6..9cae482efdfd 100644
--- a/srcpkgs/maturin/template
+++ b/srcpkgs/maturin/template
@@ -18,6 +18,7 @@ distfiles="${homepage}/archive/v${version}.tar.gz
  https://github.com/bytecodealliance/target-lexicon/archive/v0.12.0.tar.gz"
 checksum="e6a9a67cc62ffe248654e60e7ec211bf23319c4c936ad87022f7a1fd0997430d
  18fead54e5dfa2cb0fa8af3db3c2765ca1c003b20cd4eca7be0553b30ce229de"
+patch_args=-Np0
 
 post_extract() {
 	mv ../target-lexicon* target-lexicon
diff --git a/srcpkgs/mc/template b/srcpkgs/mc/template
index ebf5141eb482..bea3ca89dd57 100644
--- a/srcpkgs/mc/template
+++ b/srcpkgs/mc/template
@@ -14,6 +14,7 @@ distfiles="https://www.midnight-commander.org/downloads/mc-${version}.tar.xz"
 #distfiles="http://fossies.org/linux/misc/mc-${version}.tar.gz"
 checksum=c6deadc50595f2d9a22dc6c299a9f28b393e358346ebf6ca444a8469dc166c27
 python_version=2
+patch_args=-Np0
 
 conf_files="
  /etc/mc/filehighlight.ini
diff --git a/srcpkgs/mcpp/template b/srcpkgs/mcpp/template
index 7a358883d06b..edccf45fe0b1 100644
--- a/srcpkgs/mcpp/template
+++ b/srcpkgs/mcpp/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://mcpp.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/mcpp/mcpp-${version}.tar.gz"
 checksum=3b9b4421888519876c4fc68ade324a3bbd81ceeb7092ecdbbc2055099fcb8864
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/mdadm/template b/srcpkgs/mdadm/template
index f776b6dc9d36..30aeed30ee96 100644
--- a/srcpkgs/mdadm/template
+++ b/srcpkgs/mdadm/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="https://git.kernel.org/cgit/utils/mdadm/mdadm.git/log/"
 distfiles="${KERNEL_SITE}/utils/raid/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=ab7688842908d3583a704d491956f31324c3a5fc9f6a04653cb75d19f1934f4a
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's,^install : mdadm mdmon,install: ,g' Makefile
diff --git a/srcpkgs/mdocml/template b/srcpkgs/mdocml/template
index 2332eb13dfc9..d19966633ba1 100644
--- a/srcpkgs/mdocml/template
+++ b/srcpkgs/mdocml/template
@@ -17,6 +17,7 @@ homepage="http://mandoc.bsd.lv"
 distfiles="http://mandoc.bsd.lv/snapshots/mandoc-${version}.tar.gz"
 checksum=8219b42cb56fc07b2aa660574e6211ac38eefdbf21f41b698d3348793ba5d8f7
 provides="man-0_1"
+patch_args=-Np0
 
 alternatives="
  man:man:/usr/bin/mandoc
diff --git a/srcpkgs/mediastreamer/template b/srcpkgs/mediastreamer/template
index 884237ddf436..ccf8e43ffb44 100644
--- a/srcpkgs/mediastreamer/template
+++ b/srcpkgs/mediastreamer/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.linphone.org/technical-corner/mediastreamer2"
 distfiles="https://gitlab.linphone.org/BC/public/mediastreamer2/-/archive/${version}/mediastreamer2-${version}.tar.gz"
 checksum=4f67262621a93349651cfb0b51a2157623bf7758126d070e1c122bff58c7d5b4
+patch_args=-Np0
 
 mediastreamer-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/mednafen/template b/srcpkgs/mednafen/template
index e56addb35013..aed46822a2b7 100644
--- a/srcpkgs/mednafen/template
+++ b/srcpkgs/mednafen/template
@@ -15,6 +15,7 @@ homepage="https://mednafen.github.io/"
 distfiles="https://mednafen.github.io/releases/files/mednafen-${version}.tar.xz"
 checksum=842907c25c4292c9ba497c9cb9229c7d10e04e22cb4740d154ab690e6587fdf4
 nopie=yes
+patch_args=-Np0
 
 build_options="altivec"
 desc_option_altivec="Enable AltiVec support on PowerPC"
diff --git a/srcpkgs/memtest86+/template b/srcpkgs/memtest86+/template
index c4850769d62e..04792c5dc082 100644
--- a/srcpkgs/memtest86+/template
+++ b/srcpkgs/memtest86+/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.memtest.org"
 distfiles="http://www.memtest.org/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=142127b7953fbd829b1057fb64a78d3340c2b771484230a7347e94530a0d9039
+patch_args=-Np0
 
 nostrip=yes
 noverifyrdeps=yes
diff --git a/srcpkgs/mergerfs/template b/srcpkgs/mergerfs/template
index db4399c448e6..d7226ee6103b 100644
--- a/srcpkgs/mergerfs/template
+++ b/srcpkgs/mergerfs/template
@@ -12,6 +12,7 @@ license="ISC"
 homepage="https://github.com/trapexit/mergerfs"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=8857d2058c38251bff539c77b6c90472ab139bda96265ce09485c3689d11a4ac
+patch_args=-Np0
 
 pre_build() {
 	# we build from source, spoof release tarball
diff --git a/srcpkgs/merkaartor/template b/srcpkgs/merkaartor/template
index 17c8d5dc361d..d917aef6ad94 100644
--- a/srcpkgs/merkaartor/template
+++ b/srcpkgs/merkaartor/template
@@ -13,5 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://merkaartor.be"
 distfiles="https://github.com/openstreetmap/merkaartor/archive/${version}.tar.gz"
 checksum=16e790507a5bb54e4b3c09ea063ebb095a4b014ce8ba937b771706d4c940976a
+patch_args=-Np0
 
 CXXFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template
index 414c918c7baf..1d5391040f4d 100644
--- a/srcpkgs/mesa/template
+++ b/srcpkgs/mesa/template
@@ -24,6 +24,7 @@ homepage="https://www.mesa3d.org/"
 changelog="https://docs.mesa3d.org/relnotes/${version}.html"
 distfiles="https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz"
 checksum=565c6f4bd2d5747b919454fc1d439963024fc78ca56fd05158c3b2cde2f6912b
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" -Duse-elf-tls=false"
diff --git a/srcpkgs/meson/template b/srcpkgs/meson/template
index ee2cab625cbd..4561095b9074 100644
--- a/srcpkgs/meson/template
+++ b/srcpkgs/meson/template
@@ -16,6 +16,7 @@ homepage="https://mesonbuild.com"
 changelog="https://github.com/mesonbuild/meson/blob/master/docs/markdown/Release-notes-for-${version%.*}.0.md"
 distfiles="https://github.com/mesonbuild/meson/releases/download/$version/$pkgname-$version.tar.gz"
 checksum=3cb8bdb91383f7f8da642f916e4c44066a29262caa499341e2880f010edb87f4
+patch_args=-Np0
 
 # XXX: sanitizers aren't available on musl
 if [ "$XBPS_TARGET_LIBC" = glibc ]; then
diff --git a/srcpkgs/mg/template b/srcpkgs/mg/template
index 8bb7fd00185e..3414fa23e102 100644
--- a/srcpkgs/mg/template
+++ b/srcpkgs/mg/template
@@ -10,6 +10,7 @@ license="Public Domain"
 homepage="https://github.com/hboetes/mg"
 distfiles="https://github.com/hboetes/mg/archive/${version}.tar.gz"
 checksum=6820e76a0e27d9a744624d421b3b30b0030140c2a817df1310b25c3abe397106
+patch_args=-Np0
 
 CFLAGS="-DTCSASOFT=0"
 
diff --git a/srcpkgs/mhddfs/template b/srcpkgs/mhddfs/template
index b60fcb06a7bf..5dfe2cc2c7f4 100644
--- a/srcpkgs/mhddfs/template
+++ b/srcpkgs/mhddfs/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://mhddfs.uvw.ru/"
 distfiles="http://mhddfs.uvw.ru/downloads/${pkgname}_${version}.tar.gz"
 checksum=702fc5486460c1828898426b1935179ce60bc1ed16fc8bc575c9ec1d12acef91
+patch_args=-Np0
 
 pre_build() {
 	sed -i 's|^CFLAGS[[:blank:]]*=|override CFLAGS +=|g' Makefile
diff --git a/srcpkgs/milkytracker/template b/srcpkgs/milkytracker/template
index 9f5cffd61301..767cc2590664 100644
--- a/srcpkgs/milkytracker/template
+++ b/srcpkgs/milkytracker/template
@@ -13,6 +13,7 @@ license="GPL-3.0-only"
 homepage="http://milkytracker.titandemo.org/"
 distfiles="https://github.com/milkytracker/MilkyTracker/archive/v${version}.tar.gz"
 checksum=6bcb6e74ee333e831137435a25c0f2f3da6e1462864deec9e693ef7d23a16023
+patch_args=-Np0
 
 post_install() {
 	vinstall resources/milkytracker.desktop 644 usr/share/applications
diff --git a/srcpkgs/mimic/template b/srcpkgs/mimic/template
index ed11690e5bdc..3424c48ed870 100644
--- a/srcpkgs/mimic/template
+++ b/srcpkgs/mimic/template
@@ -14,6 +14,7 @@ homepage="https://github.com/MycroftAI/mimic"
 changelog="https://github.com/MycroftAI/mimic1/releases"
 distfiles="https://github.com/MycroftAI/mimic/archive/${version}.tar.gz"
 checksum=9041f5c7d3720899c90c890ada179c92c3b542b90bb655c247e4a4835df79249
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/minicom/template b/srcpkgs/minicom/template
index 8671f508256a..49a229db2575 100644
--- a/srcpkgs/minicom/template
+++ b/srcpkgs/minicom/template
@@ -10,5 +10,6 @@ license="GPL-2.0-or-later"
 homepage="https://tracker.debian.org/pkg/minicom"
 distfiles="https://deb.debian.org/debian/pool/main/m/minicom/minicom_${version}.orig.tar.gz"
 checksum=532f836b7a677eb0cb1dca8d70302b73729c3d30df26d58368d712e5cca041f1
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/minidlna/template b/srcpkgs/minidlna/template
index b112fb56efcc..aeb1f2f1b542 100644
--- a/srcpkgs/minidlna/template
+++ b/srcpkgs/minidlna/template
@@ -21,6 +21,7 @@ homepage="https://minidlna.sourceforge.net/"
 changelog="https://sourceforge.net/projects/minidlna/files/minidlna/${version}/README/view"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=47d9b06b4c48801a4c1112ec23d24782728b5495e95ec2195bbe5c81bc2d3c63
+patch_args=-Np0
 
 system_accounts="minidlna"
 minidlna_homedir="/var/lib/minidlna"
diff --git a/srcpkgs/minijail/template b/srcpkgs/minijail/template
index e3debe82a66e..d0ac4d9d5acb 100644
--- a/srcpkgs/minijail/template
+++ b/srcpkgs/minijail/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://android.googlesource.com/platform/external/minijail"
 distfiles="https://github.com/google/minijail/archive/linux-v${version}.tar.gz"
 checksum=1efb6224465cf8a5bb7a69659b35482e69786fce572f29125201e9a0e793bdd6
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	broken="bpf.h:110:2: error: #error Unsupported endianness"
diff --git a/srcpkgs/minisat/template b/srcpkgs/minisat/template
index e462c8ba34a6..29246f9a7a05 100644
--- a/srcpkgs/minisat/template
+++ b/srcpkgs/minisat/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://minisat.se/MiniSat.html"
 distfiles="http://minisat.se/downloads/minisat-2.2.0.tar.gz"
 checksum=92957d851cdc3baddfe07b5fc80ed5a0237c489d0c52ae72f62844b3b46d7808
+patch_args=-Np0
 
 do_install() {
 	vbin minisat_release minisat
diff --git a/srcpkgs/minissdpd/template b/srcpkgs/minissdpd/template
index b0d56f0058df..f5d497d014d2 100644
--- a/srcpkgs/minissdpd/template
+++ b/srcpkgs/minissdpd/template
@@ -10,6 +10,7 @@ license="3-clause-BSD"
 homepage="http://miniupnp.free.fr/minissdpd.html"
 distfiles="http://miniupnp.free.fr/files/minissdpd-${version}.tar.gz"
 checksum=dfd637b185731e1acb412a86faa9718eb93c04ca08280541a6d22d14d1fb890f
+patch_args=-Np0
 
 CFLAGS="-D_GNU_SOURCE"
 
diff --git a/srcpkgs/mit-krb5/template b/srcpkgs/mit-krb5/template
index fa18e58b7333..deabac5065f6 100644
--- a/srcpkgs/mit-krb5/template
+++ b/srcpkgs/mit-krb5/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://web.mit.edu/kerberos"
 distfiles="${homepage}/dist/krb5/${version%.*}/krb5-${version}.tar.gz"
 checksum=e61783c292b5efd9afb45c555a80dd267ac67eebabca42185362bee6c4fbd719
+patch_args=-Np0
 
 post_patch() {
 	vsed -e "/LDFLAGS=/d" -i src/build-tools/krb5-config.in
diff --git a/srcpkgs/mit-scheme-c/template b/srcpkgs/mit-scheme-c/template
index 92f3b637912a..e2a461e18e86 100644
--- a/srcpkgs/mit-scheme-c/template
+++ b/srcpkgs/mit-scheme-c/template
@@ -14,6 +14,7 @@ alternatives="
  scheme:scheme.1:/usr/share/man/man1/mit-scheme.1
 "
 nocross="Tries to build parts of the package with itself"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/mlocate/template b/srcpkgs/mlocate/template
index 9571f8c387d1..310ecb315e16 100644
--- a/srcpkgs/mlocate/template
+++ b/srcpkgs/mlocate/template
@@ -14,6 +14,7 @@ homepage="https://pagure.io/mlocate"
 distfiles="https://releases.pagure.org/mlocate/${pkgname}-${version}.tar.xz"
 checksum=3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e
 system_accounts="_mlocate"
+patch_args=-Np0
 
 alternatives="
  locate:locate:/usr/bin/mlocate
diff --git a/srcpkgs/mmv/template b/srcpkgs/mmv/template
index 1afd253685d5..4269d4aa9e4a 100644
--- a/srcpkgs/mmv/template
+++ b/srcpkgs/mmv/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://packages.debian.org/unstable/utils/mmv"
 distfiles="http://mirrors.kernel.org/gentoo/distfiles/${pkgname}_${version}.orig.tar.gz"
 checksum=0399c027ea1e51fd607266c1e33573866d4db89f64a74be8b4a1d2d1ff1fdeef
+patch_args=-Np0
 
 do_install() {
 	local l
diff --git a/srcpkgs/moc/template b/srcpkgs/moc/template
index c42be650a1d2..824b1aaccaaa 100644
--- a/srcpkgs/moc/template
+++ b/srcpkgs/moc/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://moc.daper.net"
 distfiles="http://ftp.daper.net/pub/soft/${pkgname}/stable/${pkgname}-${version}.tar.bz2"
 checksum=f3a68115602a4788b7cfa9bbe9397a9d5e24c68cb61a57695d1c2c3ecf49db08
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e "s|^ac_cpp='\$CPP |&-P |g" configure
diff --git a/srcpkgs/mod_wsgi/template b/srcpkgs/mod_wsgi/template
index 28872edf8d52..1ee69220f24f 100644
--- a/srcpkgs/mod_wsgi/template
+++ b/srcpkgs/mod_wsgi/template
@@ -13,6 +13,7 @@ changelog="https://modwsgi.readthedocs.io/en/latest/release-notes/version-${vers
 distfiles="https://github.com/GrahamDumpleton/${pkgname}/archive/${version}.tar.gz"
 checksum=2674e506719afe60fbc0547c832e8948d6caa2e054d40d336309993e6e867d35
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/mog/template b/srcpkgs/mog/template
index 88421ccef317..83afd02b478c 100644
--- a/srcpkgs/mog/template
+++ b/srcpkgs/mog/template
@@ -14,6 +14,7 @@ homepage="http://www.braingames.getput.com/mog/"
 distfiles="http://urchlay.naptime.net/~urchlay/src/mog.src_${version}-${_build}.tgz"
 checksum=707bbc1b167a55989916f803dbe55c288652fb54df6194be029c41be99e9ec3a
 broken="ELF in /usr/share"
+patch_args=-Np0
 
 CFLAGS="-g3 -O3 -Wno-write-strings -I${XBPS_CROSS_BASE}/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
 
diff --git a/srcpkgs/mon/template b/srcpkgs/mon/template
index 4ab9fc3bd8e2..9cb300f5a44a 100644
--- a/srcpkgs/mon/template
+++ b/srcpkgs/mon/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/tj/mon"
 distfiles="https://github.com/tj/mon/archive/${version}.tar.gz"
 checksum=978711a1d37ede3fc5a05c778a2365ee234b196a44b6c0c69078a6c459e686ac
+patch_args=-Np0
 
 CFLAGS="-Ideps -std=c99 -D_GNU_SOURCE"
 
diff --git a/srcpkgs/monero/template b/srcpkgs/monero/template
index 3617a446f098..5cfbb8da8823 100644
--- a/srcpkgs/monero/template
+++ b/srcpkgs/monero/template
@@ -29,6 +29,7 @@ checksum="5e9bd2e565a57b4ae9f0d851704725b2e0b18c4a94051e56d5deae4e74727496
  b973b9d8269ec4d97c3c3443f0dad96d09f72b1b30e616e0947557adbdbb03f7"
 skip_extraction="v${_randomx_version}.tar.gz ${_rapidjson_gitrev}.tar.gz ${_supercop_gitrev}.tar.gz"
 system_accounts="monero"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DTHREADS_PTHREAD_ARG=OFF"
diff --git a/srcpkgs/mongoose/template b/srcpkgs/mongoose/template
index eddadc647333..46fe4d3f99eb 100644
--- a/srcpkgs/mongoose/template
+++ b/srcpkgs/mongoose/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://cesanta.com/"
 distfiles="https://github.com/cesanta/mongoose/archive/${version}.tar.gz"
 checksum=f5c10346abc9c72f7cac7885d853ca064fb09aad57580433941a8fd7a3543769
+patch_args=-Np0
 
 mongoose-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/monit/template b/srcpkgs/monit/template
index e401ff3d8733..4062b351f9fa 100644
--- a/srcpkgs/monit/template
+++ b/srcpkgs/monit/template
@@ -17,6 +17,7 @@ homepage="https://mmonit.com/monit/"
 changelog="https://mmonit.com/monit/changes/"
 distfiles="https://mmonit.com/monit/dist/${pkgname}-${version}.tar.gz"
 checksum=9fc6287fd9570b25a85c5d5bf988ee8bd4c54d0e9e01ff04cc4b9398a159849c
+patch_args=-Np0
 
 pre_configure() {
 	./bootstrap
diff --git a/srcpkgs/mono/template b/srcpkgs/mono/template
index 3846d0a93e1e..599fabf094ad 100644
--- a/srcpkgs/mono/template
+++ b/srcpkgs/mono/template
@@ -15,6 +15,7 @@ distfiles="https://download.mono-project.com/sources/mono/${pkgname}-${version}.
 checksum=29c277660fc5e7513107aee1cbf8c5057c9370a4cdfeda2fc781be6986d89d23
 lib32disabled=yes
 python_version="3"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args+=" --disable-boehm --without-sigaltstack" ;;
diff --git a/srcpkgs/moon-buggy/template b/srcpkgs/moon-buggy/template
index 1ebb56ce31ff..1a8017da0314 100644
--- a/srcpkgs/moon-buggy/template
+++ b/srcpkgs/moon-buggy/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.seehuhn.de/pages/moon-buggy"
 distfiles="http://m.seehuhn.de/programs/$pkgname-$version.tar.gz"
 checksum=352dc16ccae4c66f1e87ab071e6a4ebeb94ff4e4f744ce1b12a769d02fe5d23f
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/key_name/Key_Name/g' keyboard.c
diff --git a/srcpkgs/moosefs/template b/srcpkgs/moosefs/template
index adc8125a13e6..fbf55ca74ac1 100644
--- a/srcpkgs/moosefs/template
+++ b/srcpkgs/moosefs/template
@@ -15,6 +15,7 @@ distfiles="http://ppa.moosefs.com/src/moosefs-${version}-1.tar.gz"
 checksum=f88cc0142b5fe8a6a4c3fcb2ae58053fcb98787848cf09286a57718a982093a9
 python_version=2 #unverified
 system_accounts="_mfs"
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's,AC_RUN_IFELSE,AC_LINK_IFELSE,g' configure.ac
diff --git a/srcpkgs/mosh/template b/srcpkgs/mosh/template
index a4641f66bb3e..a9030ce5cb51 100644
--- a/srcpkgs/mosh/template
+++ b/srcpkgs/mosh/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://mosh.org/"
 distfiles="https://mosh.org/mosh-${version}.tar.gz"
 checksum=da600573dfa827d88ce114e0fed30210689381bbdcff543c931e4d6a2e851216
+patch_args=-Np0
 
 pre_configure() {
 	# make local.test always succeed. It fails due to missing X server in chroot.
diff --git a/srcpkgs/mosquitto/template b/srcpkgs/mosquitto/template
index 53ab96eca22e..16723f0ce554 100644
--- a/srcpkgs/mosquitto/template
+++ b/srcpkgs/mosquitto/template
@@ -16,6 +16,7 @@ distfiles="${homepage}/files/source/${pkgname}-${version}.tar.gz"
 checksum=1b8553ef64a1cf5e4f4cfbe098330ae612adccd3d37f35b2db6f6fab501b01d4
 # CUnit dependency is missing
 make_check=no
+patch_args=-Np0
 
 system_accounts="_mosquitto"
 _mosquitto_homedir="/var/lib/mosquitto"
diff --git a/srcpkgs/mp3check/template b/srcpkgs/mp3check/template
index 6d25f52387fc..09d6a945c800 100644
--- a/srcpkgs/mp3check/template
+++ b/srcpkgs/mp3check/template
@@ -8,6 +8,7 @@ license="GPL-2.0-only"
 homepage="https://code.google.com/p/mp3check/"
 distfiles="${DEBIAN_SITE}/main/m/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=27d976ad8495671e9b9ce3c02e70cb834d962b6fdf1a7d437bb0e85454acdd0e
+patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
diff --git a/srcpkgs/mp3val/template b/srcpkgs/mp3val/template
index 31c307f1ebbf..14e61a3c6fb8 100644
--- a/srcpkgs/mp3val/template
+++ b/srcpkgs/mp3val/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://mp3val.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/mp3val/mp3val-${version}-src.tar.gz"
 checksum=95a16efe3c352bb31d23d68ee5cb8bb8ebd9868d3dcf0d84c96864f80c31c39f
+patch_args=-Np0
 
 do_install() {
 	vbin mp3val
diff --git a/srcpkgs/mpg123/template b/srcpkgs/mpg123/template
index a08cb80f0969..4278b201e604 100644
--- a/srcpkgs/mpg123/template
+++ b/srcpkgs/mpg123/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://www.mpg123.org/"
 distfiles="${SOURCEFORGE_SITE}/mpg123/mpg123-${version}.tar.bz2"
 checksum=e49466853685026da5d113dc7ff026b1b2ad0b57d78df693a446add9db88a7d5
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	# No LFS required with musl
diff --git a/srcpkgs/mplayer/template b/srcpkgs/mplayer/template
index 6bf5f3d1b08d..981c97328805 100644
--- a/srcpkgs/mplayer/template
+++ b/srcpkgs/mplayer/template
@@ -22,6 +22,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.mplayerhq.hu/"
 distfiles="http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-${version}.tar.xz"
 checksum=82596ed558478d28248c7bc3828eb09e6948c099bbd76bb7ee745a0e3275b548
+patch_args=-Np0
 
 nocross=yes
 
diff --git a/srcpkgs/mrxvt/template b/srcpkgs/mrxvt/template
index 5d82c85d31f6..eb206d20ab9c 100644
--- a/srcpkgs/mrxvt/template
+++ b/srcpkgs/mrxvt/template
@@ -12,5 +12,6 @@ license="GPL-2.0-or-later"
 homepage="http://materm.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/materm/mrxvt-${version}.tar.gz"
 checksum=f403ad5a908fcd38a55ed0a7e1b85584cb77be8781199653a39b8af1a9ad10d7
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/msg2/template b/srcpkgs/msg2/template
index 473b3c4ec4d2..624f86b14c31 100644
--- a/srcpkgs/msg2/template
+++ b/srcpkgs/msg2/template
@@ -9,6 +9,7 @@ license="GPL-3.0-or-later"
 homepage="https://roboticoverlords.org/msg2/"
 distfiles="https://roboticoverlords.org/msg2/msg2-${version}.tar.xz"
 checksum=4834104465f62f0ecec7615e75ca2e50a5e42218854da8f6b022a120937702ac
+patch_args=-Np0
 
 post_install() {
 	vman msg2.1
diff --git a/srcpkgs/msp430-toolchain/template b/srcpkgs/msp430-toolchain/template
index 10f8d6b7fe45..acfabb65b166 100644
--- a/srcpkgs/msp430-toolchain/template
+++ b/srcpkgs/msp430-toolchain/template
@@ -16,6 +16,7 @@ checksum="d2110ec64e8a055ff89b7eef8217b3c233c30e370e2cb43e1ad835dad5907d1c
  1e2a0903e6b02d5e8aac2a7297ec0685e95a980b13b937b5c7f24f4cf6015407"
 nocross=yes
 nostrip=yes
+patch_args=-Np0
 
 _prefix=/usr/msp430
 _target=msp430-none-elf
diff --git a/srcpkgs/mumble/template b/srcpkgs/mumble/template
index d578a511d47e..7cb13105213d 100644
--- a/srcpkgs/mumble/template
+++ b/srcpkgs/mumble/template
@@ -20,6 +20,7 @@ license="BSD-3-Clause"
 homepage="http://mumble.sourceforge.net/"
 distfiles="https://github.com/mumble-voip/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=615f4ebfc3385d945163f369efd3e910c8b6d0f025797a7eed541515fccb6093
+patch_args=-Np0
 
 build_options="jack portaudio"
 build_options_default="jack portaudio"
diff --git a/srcpkgs/mupen64plus/template b/srcpkgs/mupen64plus/template
index 4984a7f4a777..747fd4d99531 100644
--- a/srcpkgs/mupen64plus/template
+++ b/srcpkgs/mupen64plus/template
@@ -15,6 +15,7 @@ distfiles="https://github.com/mupen64plus/mupen64plus-core/releases/download/${v
 checksum=d5243ddc00388ee2e538b3826a78a719dec2bd5da54ac6f3344fed861fb141a8
 nopie=yes
 nocross=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/musikcube/template b/srcpkgs/musikcube/template
index c786f86bef31..9ee39183a36f 100644
--- a/srcpkgs/musikcube/template
+++ b/srcpkgs/musikcube/template
@@ -17,6 +17,7 @@ license="BSD-3-Clause"
 homepage="https://musikcube.com/"
 distfiles="https://github.com/clangen/musikcube/archive/${version}.tar.gz"
 checksum=81922ec6e86c06061dc009be3ec7c4bc8e8fd5ed3bb92231dabede8bbccaf723
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/mutter/template b/srcpkgs/mutter/template
index fb42f099faaa..49595b486e5d 100644
--- a/srcpkgs/mutter/template
+++ b/srcpkgs/mutter/template
@@ -1,5 +1,6 @@
 # Template file for 'mutter'
 reverts="40.2_1"
+patch_args=-Np0
 
 pkgname=mutter
 version=40.1
diff --git a/srcpkgs/mysql++/template b/srcpkgs/mysql++/template
index 6dc18a421034..278fd00b049c 100644
--- a/srcpkgs/mysql++/template
+++ b/srcpkgs/mysql++/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://tangentsoft.net/mysqlpp"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.gz"
 checksum=b780beeb3a9cd9ce6a9043028527484df8e822c58c5274d4d67ec5ba2fc0a778
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	configure_args="--exec_prefix=${XBPS_CROSS_BASE} --with-mysql-include=${XBPS_CROSS_BASE}/usr/include/mysql"
diff --git a/srcpkgs/nagstamon/template b/srcpkgs/nagstamon/template
index a3e92bfa761d..50e74fb4a478 100644
--- a/srcpkgs/nagstamon/template
+++ b/srcpkgs/nagstamon/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://nagstamon.ifw-dresden.de"
 distfiles="https://nagstamon.ifw-dresden.de/files/stable/Nagstamon-${version}.tar.gz"
 checksum=7a9611f40b08269bba4100ab2598ee089c7d0ebc6c4e9d7132689342f71150ec
+patch_args=-Np0
 
 post_patch() {
 	# This relies on /etc/os-release, which doesn't exist without
diff --git a/srcpkgs/namecoin/template b/srcpkgs/namecoin/template
index e4cfb3777b71..991026db606d 100644
--- a/srcpkgs/namecoin/template
+++ b/srcpkgs/namecoin/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="https://namecoin.org"
 distfiles="https://github.com/namecoin/namecoin-core/archive/nc${version}.tar.gz"
 checksum=7117a0a0b8f48d49e4abf3577660f8a4eb9a4dea753281d19d9470725fc75d8e
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/navit/template b/srcpkgs/navit/template
index 449ef1ca16d3..4ae5fbeaf5eb 100644
--- a/srcpkgs/navit/template
+++ b/srcpkgs/navit/template
@@ -16,6 +16,7 @@ license="GPL-2.0-only, LGPL-2.0-only"
 homepage="http://www.navit-project.org/"
 distfiles="https://github.com/navit-gps/navit/archive/v${version}.tar.gz"
 checksum=728d9dcad00e97769f6cd85bfad5518b0edf62ef75d60543fa4c48c1c3ab1243
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e 's/\(GET_FILENAME_COMPONENT (LIB_DIR ${LIBDIR}\) NAME/\1 DIRECTORY/' CMakeLists.txt
diff --git a/srcpkgs/nemiver/template b/srcpkgs/nemiver/template
index 947ef8352a17..122758b92660 100644
--- a/srcpkgs/nemiver/template
+++ b/srcpkgs/nemiver/template
@@ -17,6 +17,7 @@ homepage="https://wiki.gnome.org/Apps/Nemiver"
 distfiles="https://download.gnome.org/sources/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=85ab8cf6c4f83262f441cb0952a6147d075c3c53d0687389a3555e946b694ef2
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	cp data/nemiver.appdata.xml data/nemiver.appdata.xml.in
diff --git a/srcpkgs/net-snmp/template b/srcpkgs/net-snmp/template
index 0b91683e00a8..6dad6b0f7cc6 100644
--- a/srcpkgs/net-snmp/template
+++ b/srcpkgs/net-snmp/template
@@ -11,6 +11,7 @@ license="Net-SNMP"
 homepage="http://www.net-snmp.org/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=eb7fd4a44de6cddbffd9a92a85ad1309e5c1054fb9d5a7dd93079c8953f48c3f
+patch_args=-Np0
 
 LDFLAGS="-lpthread"
 
diff --git a/srcpkgs/netcat/template b/srcpkgs/netcat/template
index c588fc5ab7b4..2905db892d0d 100644
--- a/srcpkgs/netcat/template
+++ b/srcpkgs/netcat/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://netcat.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=30719c9a4ffbcf15676b8f528233ccc54ee6cba96cb4590975f5fd60c68a066f
+patch_args=-Np0
 
 alternatives="
  nc:nc:/usr/bin/gnetcat
diff --git a/srcpkgs/nethack/template b/srcpkgs/nethack/template
index e39eafb0b5c2..65c414f3620f 100644
--- a/srcpkgs/nethack/template
+++ b/srcpkgs/nethack/template
@@ -16,6 +16,7 @@ distfiles="https://www.nethack.org/download/${version}/nethack-${version//./}-sr
 checksum=cfde0c3ab6dd7c22ae82e1e5a59ab80152304eb23fb06e3129439271e5643ed2
 nocross=yes
 system_accounts="$pkgname"
+patch_args=-Np0
 
 do_configure() {
 	sh sys/unix/setup.sh sys/unix/hints/linux
diff --git a/srcpkgs/netpgp/template b/srcpkgs/netpgp/template
index 2bc40e253d09..30b5c9a4acbd 100644
--- a/srcpkgs/netpgp/template
+++ b/srcpkgs/netpgp/template
@@ -11,6 +11,7 @@ license="3-clause-BSD"
 homepage="http://www.netbsd.org"
 distfiles="ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/LOCAL_PORTS/netpgp-${version}.tar.gz"
 checksum=fbe403f037376a40afd19bc8a1786b55b67cf8092a723ef36a61d99260b66dbf
+patch_args=-Np0
 
 CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=cpp -Wno-format-truncation -Wno-stringop-truncation -Wno-stringop-overflow -Wno-error=format-overflow"
 
diff --git a/srcpkgs/netpgpverify/template b/srcpkgs/netpgpverify/template
index 03531032da54..e554b5bcce13 100644
--- a/srcpkgs/netpgpverify/template
+++ b/srcpkgs/netpgpverify/template
@@ -10,6 +10,7 @@ license="2-clause-BSD"
 homepage="http://www.netpgp.com"
 distfiles="http://www.netpgp.com/src/${pkgname}-${version}.tar.gz"
 checksum=1eedf30b35cacbf8f39b80fbc4ea6129ba8c7815b0ad7f3d1ae05e521f684b00
+patch_args=-Np0
 
 post_extract() {
 	sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' Makefile.in
diff --git a/srcpkgs/nettle/template b/srcpkgs/nettle/template
index 25eca0dcab04..3880c5167455 100644
--- a/srcpkgs/nettle/template
+++ b/srcpkgs/nettle/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://www.lysator.liu.se/~nisse/nettle/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=661f5eb03f048a3b924c3a8ad2515d4068e40f67e774e8a26827658007e3bcf0
+patch_args=-Np0
 
 nettle-devel_package() {
 	depends="gmp-devel ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/network-ups-tools/template b/srcpkgs/network-ups-tools/template
index 0f4f1ce5a3b4..b775d578f493 100644
--- a/srcpkgs/network-ups-tools/template
+++ b/srcpkgs/network-ups-tools/template
@@ -27,6 +27,7 @@ homepage="http://www.networkupstools.org/"
 distfiles="${homepage}source/${version%.*}/nut-${version}.tar.gz"
 checksum=980e82918c52d364605c0703a5dcf01f74ad2ef06e3d365949e43b7d406d25a7
 system_accounts="nut"
+patch_args=-Np0
 
 nopie=yes
 build_options="cgi"
diff --git a/srcpkgs/newlisp/template b/srcpkgs/newlisp/template
index d6459caa41c5..37e9c03cc423 100644
--- a/srcpkgs/newlisp/template
+++ b/srcpkgs/newlisp/template
@@ -9,6 +9,7 @@ license="GPL-3.0-only, GFDL-1.2-only, Zlib, $pkgname, BSD-3-Clause"
 homepage="http://www.newlisp.org"
 distfiles="$homepage/downloads/$pkgname-$version.tgz"
 checksum=dc2d0ff651c2b275bc4af3af8ba59851a6fb6e1eaddc20ae75fb60b1e90126ec
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/nextcloud-client/template b/srcpkgs/nextcloud-client/template
index ec201254d5ad..ebce167c2699 100644
--- a/srcpkgs/nextcloud-client/template
+++ b/srcpkgs/nextcloud-client/template
@@ -20,6 +20,7 @@ license="GPL-2.0-or-later"
 homepage="https://nextcloud.com/clients/"
 distfiles="https://github.com/nextcloud/desktop/archive/v${version}.tar.gz"
 checksum=f2d387d35276ea6e6da3ae339ede3d89be81dd4af735739ec280709008eb6645
+patch_args=-Np0
 
 build_options="dolphin"
 desc_option_dolphin="Build KDE dolphin support"
diff --git a/srcpkgs/nfs4-acl-tools/template b/srcpkgs/nfs4-acl-tools/template
index defeeccdfbfc..3ac57c339637 100644
--- a/srcpkgs/nfs4-acl-tools/template
+++ b/srcpkgs/nfs4-acl-tools/template
@@ -14,6 +14,7 @@ homepage="http://linux-nfs.org/wiki/index.php/Main_Page"
 distfiles="http://linux-nfs.org/~bfields/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=1b929f15b7b8d1701a416a0888df61a2a173b50eeaa9fed4f28543ffe8989503
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/nginx/template b/srcpkgs/nginx/template
index cd0b19da95c6..281ebf038e0d 100644
--- a/srcpkgs/nginx/template
+++ b/srcpkgs/nginx/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="https://nginx.org"
 distfiles="https://nginx.org/download/nginx-${version}.tar.gz"
 checksum=4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+patch_args=-Np0
 
 # NOTE:
 # On update, the pregenerated header file for ARM may need synchronization.
diff --git a/srcpkgs/ngspice/template b/srcpkgs/ngspice/template
index 05beffd8f841..8e7bde57e3da 100644
--- a/srcpkgs/ngspice/template
+++ b/srcpkgs/ngspice/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="http://ngspice.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/ngspice/ng-spice-rework/${version}/${pkgname}-${version}.tar.gz"
 checksum=b99db66cc1c57c44e9af1ef6ccb1dcbc8ae1df3e35acf570af578f606f8541f1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/nitroshare/template b/srcpkgs/nitroshare/template
index dc541b408d77..cfab290eea9d 100644
--- a/srcpkgs/nitroshare/template
+++ b/srcpkgs/nitroshare/template
@@ -17,6 +17,7 @@ homepage="http://nitroshare.net"
 distfiles="https://github.com/nitroshare/nitroshare-desktop/archive/${version}.tar.gz"
 checksum=29874e5909c29211a3c9e13f8c0f49b901ec2996e5d60d80af80d2fb80c3d7ec
 python_version=2 #unverified
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools"
diff --git a/srcpkgs/nmon/template b/srcpkgs/nmon/template
index 76f09917adea..1857023f5402 100644
--- a/srcpkgs/nmon/template
+++ b/srcpkgs/nmon/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://nmon.sourceforge.net/pmwiki.php?n=Main.HomePage"
 distfiles="${SOURCEFORGE_SITE}/nmon/files/lmon${version}.c"
 checksum=2bed4d45fdfdf1d1387ec91e139c04975d5f838e3e0d53c0fe2d803a707e5fc1
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/nocache/template b/srcpkgs/nocache/template
index 1c4198631e74..f48b963e9279 100644
--- a/srcpkgs/nocache/template
+++ b/srcpkgs/nocache/template
@@ -9,6 +9,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/Feh/nocache"
 distfiles="https://github.com/Feh/nocache/archive/v${version}.tar.gz"
 checksum=e5441b27f60e1af5551b76fe0c8a9da17b8c31675794d9d49bf59c7c47fbb9b9
+patch_args=-Np0
 
 pre_build() {
 	sed -i -e '/#include <error.h>/d' cachedel.c cachestats.c
diff --git a/srcpkgs/nodejs-lts-10/template b/srcpkgs/nodejs-lts-10/template
index 300667cb9782..864b387e62e5 100644
--- a/srcpkgs/nodejs-lts-10/template
+++ b/srcpkgs/nodejs-lts-10/template
@@ -21,6 +21,7 @@ homepage="https://nodejs.org/"
 distfiles="${homepage}/download/release/v${version}/node-v${version}.tar.xz"
 checksum=158273af66f891b2fca90aec7336c42f7574f467affad02c14e80ca163cb3acc
 python_version=3
+patch_args=-Np0
 
 build_options="ssl libuv http_parser icu nghttp2 cares"
 desc_option_ssl="Enable shared openssl"
diff --git a/srcpkgs/nodejs-lts/template b/srcpkgs/nodejs-lts/template
index d3912ae2cf05..4f7524766d88 100644
--- a/srcpkgs/nodejs-lts/template
+++ b/srcpkgs/nodejs-lts/template
@@ -20,6 +20,7 @@ homepage="https://nodejs.org/"
 distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz"
 checksum=36e862555bebc04b13f7afebf4472c4dd7ebf4c891f9d6746ec545a4f099d05e
 python_version=3
+patch_args=-Np0
 
 build_options="ssl libuv http_parser icu nghttp2 cares"
 desc_option_ssl="Enable shared openssl"
diff --git a/srcpkgs/nodejs/template b/srcpkgs/nodejs/template
index bcfaaa73ac4c..c8d7b6324ba3 100644
--- a/srcpkgs/nodejs/template
+++ b/srcpkgs/nodejs/template
@@ -20,6 +20,7 @@ homepage="https://nodejs.org/"
 distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz"
 checksum=f6b904b06951de4c52089dd4456155d853e835b0dc4640f75458c6eb49f9e8ce
 python_version=3
+patch_args=-Np0
 
 build_options="ssl libuv http_parser icu nghttp2 cares"
 desc_option_ssl="Enable shared openssl"
diff --git a/srcpkgs/noip2/template b/srcpkgs/noip2/template
index 9d930a41b73e..b6e7636edcfa 100644
--- a/srcpkgs/noip2/template
+++ b/srcpkgs/noip2/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.noip.com"
 distfiles="https://www.noip.com/client/linux/noip-duc-linux.tar.gz"
 checksum=82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC PREFIX=/usr LIBS="$CFLAGS $LDFLAGS"
diff --git a/srcpkgs/notepadqq/template b/srcpkgs/notepadqq/template
index 194588600db8..85e8349e031b 100644
--- a/srcpkgs/notepadqq/template
+++ b/srcpkgs/notepadqq/template
@@ -12,6 +12,7 @@ homepage="https://notepadqq.com"
 license="GPL-3.0-or-later"
 distfiles="https://github.com/notepadqq/notepadqq/archive/v${version}.tar.gz"
 checksum=13fba9abd84c59de27fbe92f74e2763b57588fcf9c88af10ec67313b0abbc9d0
+patch_args=-Np0
 
 post_install() {
 	# no need for upstream's weird magic, leads to segfaults anyway
diff --git a/srcpkgs/notes-up/template b/srcpkgs/notes-up/template
index 8fcacc6f4d99..22f5e8b400b7 100644
--- a/srcpkgs/notes-up/template
+++ b/srcpkgs/notes-up/template
@@ -17,6 +17,7 @@ distfiles="https://github.com/Philip-Scott/Notes-up/archive/${version}.tar.gz"
 checksum=35eb1df71034a118e66e6e00f5394c68423cfba7ceac035bde156d77da933b17
 build_options="pantheon"
 desc_option_pantheon="build with Contractor support"
+patch_args=-Np0
 
 post_install() {
 	ln -s com.github.philip-scott.notes-up ${DESTDIR}/usr/bin/notes-up
diff --git a/srcpkgs/nrpe/template b/srcpkgs/nrpe/template
index 6a598b0909ee..fd07a1845533 100644
--- a/srcpkgs/nrpe/template
+++ b/srcpkgs/nrpe/template
@@ -21,6 +21,7 @@ changelog="https://github.com/NagiosEnterprises/nrpe/blob/master/CHANGELOG.md"
 distfiles="https://github.com/NagiosEnterprises/${pkgname}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=f907ba15381adfc6eef211508abd027f8e1973116080faa4534a1191211c0340
 system_accounts="_nagios"
+patch_args=-Np0
 
 post_install() {
 	vsv nrpe
diff --git a/srcpkgs/nsjail/template b/srcpkgs/nsjail/template
index acff592d2eee..8a883f9d1d6f 100644
--- a/srcpkgs/nsjail/template
+++ b/srcpkgs/nsjail/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/google/nsjail/archive/${version}.tar.gz
  https://github.com/google/kafel/archive/8e69b8efae415cde3debffbb1e379d9e7a16835a.tar.gz"
 checksum="cfa66d3ed136b2e221752287b95e544915e8a6760aa866f023b604d14a374919
  4a6c9a1a70ed99bbed767adc106081b017a3090307ea88cc7e329b82daa1373b"
+patch_args=-Np0
 
 archs="aarch64* armv5tel* armv6l* armv7l* x86_64*"
 
diff --git a/srcpkgs/nspr/template b/srcpkgs/nspr/template
index 2873d90183a6..f9f4c941d124 100644
--- a/srcpkgs/nspr/template
+++ b/srcpkgs/nspr/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="http://www.mozilla.org/projects/nspr/"
 distfiles="${MOZILLA_SITE}/nspr/releases/v${version}/src/${pkgname}-${version}.tar.gz"
 checksum=5729da87d5fbf1584b72840751e0c6f329b5d541850cacd1b61652c95015abc8
+patch_args=-Np0
 
 do_configure() {
 	CFLAGS="$CFLAGS -D_PR_POLL_AVAILABLE -D_PR_HAVE_OFF64_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP -D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO -D_PR_INET6_PROBE"
diff --git a/srcpkgs/nss/template b/srcpkgs/nss/template
index 24da85cec752..1ae8f62b0b9d 100644
--- a/srcpkgs/nss/template
+++ b/srcpkgs/nss/template
@@ -1,4 +1,5 @@
 # Template file for 'nss'
+patch_args=-Np0
 
 _nsprver=4.30
 
diff --git a/srcpkgs/ntp/template b/srcpkgs/ntp/template
index fa88f33f92b7..523c61db5c09 100644
--- a/srcpkgs/ntp/template
+++ b/srcpkgs/ntp/template
@@ -13,6 +13,7 @@ license="NTP"
 homepage="http://www.ntp.org/"
 distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${version}.tar.gz"
 checksum=f65840deab68614d5d7ceb2d0bb9304ff70dcdedd09abb79754a87536b849c19
+patch_args=-Np0
 
 make_dirs="/var/db/ntpd 0755 ntpd ntpd"
 conf_files="/etc/ntp.conf"
diff --git a/srcpkgs/numactl/template b/srcpkgs/numactl/template
index ca5ecf3b3f10..ca70de19109a 100644
--- a/srcpkgs/numactl/template
+++ b/srcpkgs/numactl/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-only"
 homepage="https://github.com/numactl/numactl"
 distfiles="https://github.com/numactl/numactl/archive/v${version}.tar.gz"
 checksum=1ee27abd07ff6ba140aaf9bc6379b37825e54496e01d6f7343330cf1a4487035
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
 	# XXX
diff --git a/srcpkgs/nvme-cli/template b/srcpkgs/nvme-cli/template
index 0da50f2663ef..35301436ec7d 100644
--- a/srcpkgs/nvme-cli/template
+++ b/srcpkgs/nvme-cli/template
@@ -15,6 +15,7 @@ homepage="http://nvmexpress.org"
 distfiles="https://github.com/linux-nvme/nvme-cli/archive/v${version}.tar.gz"
 checksum=03f4875f3e68d326b0280e16df2f027ca6b086cfa148c34e8569df61319b4b85
 conf_files="/etc/nvme/*.conf"
+patch_args=-Np0
 
 post_install() {
 	# these files are touch'd by install, remove so they aren't registered
diff --git a/srcpkgs/nwipe/template b/srcpkgs/nwipe/template
index e3cbc2b3b653..5b88dfcd2d9a 100644
--- a/srcpkgs/nwipe/template
+++ b/srcpkgs/nwipe/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/martijnvanbrummelen/nwipe"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=85faaa9c65557a6be187f0176c5b778e8cd080e1cd9b8a7168a8a9b8e410d46d
+patch_args=-Np0
 
 CFLAGS="-D_FILE_OFFSET_BITS=64"
 
diff --git a/srcpkgs/nx-libs/template b/srcpkgs/nx-libs/template
index f604983c82c9..108696f69aa7 100644
--- a/srcpkgs/nx-libs/template
+++ b/srcpkgs/nx-libs/template
@@ -22,6 +22,7 @@ checksum=3ce7ca4e6b57b3a2d7588b2d0f4009036d2566a8925ca2c62f08a8dc0df50357
 python_version=3
 nocross="imake attempts to run target executables on host"
 conf_files="/etc/nxagent/*"
+patch_args=-Np0
 
 post_patch() {
 	# Replace hard-coded /usr/local ProjectRoot
diff --git a/srcpkgs/obexftp/template b/srcpkgs/obexftp/template
index 9e4123be13c6..457386c803dd 100644
--- a/srcpkgs/obexftp/template
+++ b/srcpkgs/obexftp/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp"
 distfiles="${SOURCEFORGE_SITE}/openobex/${pkgname}-${version}-Source.tar.gz"
 checksum=d40fb48e0a0eea997b3e582774b29f793919a625d54b87182e31a3f3d1c989a3
+patch_args=-Np0
 
 post_install() {
 	# Do not require 'bluetooth', does not exist.
diff --git a/srcpkgs/occt/template b/srcpkgs/occt/template
index 9298edc76e08..c72fcd384402 100644
--- a/srcpkgs/occt/template
+++ b/srcpkgs/occt/template
@@ -19,6 +19,7 @@ homepage="https://www.opencascade.com"
 distfiles="https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/${_gittag};sf=tgz>occt-${_gittag}.tar.gz"
 checksum=e00fedc221560fda31653c23a8f3d0eda78095c87519f338d4f4088e2ee9a9c0
 conflicts="oce>=0"
+patch_args=-Np0
 
 post_install() {
 	rm ${PKGDESTDIR}/usr/share/doc/opencascade/*_LGPL_*.txt
diff --git a/srcpkgs/odroid-u2-kernel/template b/srcpkgs/odroid-u2-kernel/template
index 748f904ee1de..4369f4c8a95e 100644
--- a/srcpkgs/odroid-u2-kernel/template
+++ b/srcpkgs/odroid-u2-kernel/template
@@ -3,6 +3,7 @@
 # Latest commit as of 20140809
 _githash="0c5ca23376fdddc43a08e5709e4d4bf18bc747f0"
 _gitshort="${_githash:0:7}"
+patch_args=-Np0
 
 pkgname=odroid-u2-kernel
 version=3.8.13.28
diff --git a/srcpkgs/ofono/template b/srcpkgs/ofono/template
index 248e58d9502d..78f80264583a 100644
--- a/srcpkgs/ofono/template
+++ b/srcpkgs/ofono/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://01.org/ofono"
 distfiles="${KERNEL_SITE}/network/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=a15c5d28096c10eb30e47a68b6dc2e7c4a5a99d7f4cfedf0b69624f33d859e9b
+patch_args=-Np0
 
 post_install() {
 	vsv ofonod
diff --git a/srcpkgs/ogmrip/template b/srcpkgs/ogmrip/template
index 1905d67b6abc..7a6bc318a04b 100644
--- a/srcpkgs/ogmrip/template
+++ b/srcpkgs/ogmrip/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="http://ogmrip.sourceforge.net/en/index.html"
 distfiles="${SOURCEFORGE_SITE}/ogmrip/ogmrip/${version%.*}/${version}/ogmrip-${version}.tar.gz"
 checksum=4e2e9778ac4da9fe1ab159e3dc6d4367b7a9dbd8f3501df99733ecedb25b02ff
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's/enchant >=/enchant-2 >=/' configure
diff --git a/srcpkgs/ogmtools/template b/srcpkgs/ogmtools/template
index 29c7e04d6ea3..5dc3772bd7e1 100644
--- a/srcpkgs/ogmtools/template
+++ b/srcpkgs/ogmtools/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="http://www.bunkus.org/videotools/ogmtools/"
 distfiles="http://www.bunkus.org/videotools/ogmtools/ogmtools-${version}.tar.bz2"
 checksum=c8d61d1dbceb981dc7399c1a85e43b509fd3d071fb8d3ca89ea9385e6e40fdea
+patch_args=-Np0
 
 CFLAGS="-I./avilib"
 CXXFLAGS="${CFLAGS}"
diff --git a/srcpkgs/oksh/template b/srcpkgs/oksh/template
index 84e6085f54f0..932eac8c8205 100644
--- a/srcpkgs/oksh/template
+++ b/srcpkgs/oksh/template
@@ -11,6 +11,7 @@ homepage="https://github.com/ibara/oksh"
 distfiles="https://github.com/ibara/oksh/releases/download/oksh-${version}/oksh-${version}.tar.gz"
 checksum=c08d97b2ac9ee5d88e9e508d27c75502b2d06c20d4c5ab87b496cb3b9951bd35
 register_shell="/bin/oksh"
+patch_args=-Np0
 
 alternatives="
  ksh:ksh:/usr/bin/oksh
diff --git a/srcpkgs/okteta/template b/srcpkgs/okteta/template
index 7d3878ca031a..f767b376f4f2 100644
--- a/srcpkgs/okteta/template
+++ b/srcpkgs/okteta/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://apps.kde.org/okteta/"
 distfiles="${KDE_SITE}/okteta/${version}/src/okteta-${version}.tar.xz"
 checksum=c569cd5b55503e46df1a5b5c9162b08888c426aa52c6f3f2f926c658bee0144c
+patch_args=-Np0
 
 okteta-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/okular/template b/srcpkgs/okular/template
index 44c3b7e82b70..7fcc1686d39f 100644
--- a/srcpkgs/okular/template
+++ b/srcpkgs/okular/template
@@ -17,6 +17,7 @@ license="GPL-2.0-only"
 homepage="https://kde.org/applications/en/graphics/org.kde.okular"
 distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=330dbe847409bfc544093ac703754fb5f43398ea3dbea88b976dc393d3bda65c
+patch_args=-Np0
 
 do_check() {
 	cd build
diff --git a/srcpkgs/olsrd/template b/srcpkgs/olsrd/template
index 314527b83433..fe19e2a1a809 100644
--- a/srcpkgs/olsrd/template
+++ b/srcpkgs/olsrd/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://www.olsr.org/"
 distfiles="https://github.com/OLSR/olsrd/archive/v${version}.tar.gz"
 checksum=9baf2e4993dbb53babf18eea9e81a2e92ce79686632711a16a5b4f7776e94451
+patch_args=-Np0
 
 conf_files="/etc/olsrd.conf"
 
diff --git a/srcpkgs/omxplayer/template b/srcpkgs/omxplayer/template
index f20b056f406f..c6742b439a4d 100644
--- a/srcpkgs/omxplayer/template
+++ b/srcpkgs/omxplayer/template
@@ -6,6 +6,7 @@ short_desc="Commandline OMX player for the Raspberry Pi"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2"
 homepage="https://github.com/popcornmix/omxplayer"
+patch_args=-Np0
 
 _commit="f06235cc9690a6d58187514452df8cf8fcdaacec"
 wrksrc="omxplayer-$_commit"
diff --git a/srcpkgs/open-iscsi/template b/srcpkgs/open-iscsi/template
index 7cd8308b0498..e772af1da0e9 100644
--- a/srcpkgs/open-iscsi/template
+++ b/srcpkgs/open-iscsi/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.open-iscsi.com/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=5410474b23552016220d04aa181903cb50ae988f29e99cb03f3e2de86a109be4
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) CFLAGS+="-D_LINUX_IF_ETHER_H -Wno-error=format -Wno-error=cpp";;
diff --git a/srcpkgs/open-vm-tools/template b/srcpkgs/open-vm-tools/template
index c452f7365ac3..b965024f763b 100644
--- a/srcpkgs/open-vm-tools/template
+++ b/srcpkgs/open-vm-tools/template
@@ -20,6 +20,7 @@ homepage="https://github.com/vmware/open-vm-tools"
 changelog="https://github.com/vmware/open-vm-tools/blob/master/open-vm-tools/ChangeLog"
 distfiles="https://github.com/vmware/open-vm-tools/archive/stable-${version}.tar.gz"
 checksum=7c31bb8ef70a0e32b81cde6550cae390a53108e4abb28bb539b0ab5b9e4fc188
+patch_args=-Np0
 
 build_options="pam x11"
 build_options_default="pam x11"
diff --git a/srcpkgs/openbabel/template b/srcpkgs/openbabel/template
index 83eef561f8a4..9e16fb318d30 100644
--- a/srcpkgs/openbabel/template
+++ b/srcpkgs/openbabel/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="http://openbabel.org"
 distfiles="https://github.com/openbabel/openbabel/archive/openbabel-${_ver}.tar.gz"
 checksum=594c7f8a83f3502381469d643f7b185882da1dd4bc2280c16502ef980af2a776
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" python"
diff --git a/srcpkgs/openblas/template b/srcpkgs/openblas/template
index 58a75941be47..2e3773fc1073 100644
--- a/srcpkgs/openblas/template
+++ b/srcpkgs/openblas/template
@@ -14,6 +14,7 @@ homepage="https://www.openblas.net/"
 changelog="https://raw.githubusercontent.com/xianyi/OpenBLAS/v${version}/Changelog.txt"
 distfiles="https://github.com/xianyi/OpenBLAS/archive/v${version}.tar.gz"
 checksum=79197543b17cc314b7e43f7a33148c308b0807cd6381ee77f77e15acf3e6459e
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	armv5*) make_build_args+=" TARGET=ARMV5" ;;
diff --git a/srcpkgs/openbox/template b/srcpkgs/openbox/template
index fb62d8d4fedb..346329d63bc2 100644
--- a/srcpkgs/openbox/template
+++ b/srcpkgs/openbox/template
@@ -20,6 +20,7 @@ homepage="http://www.openbox.org"
 distfiles="http://openbox.org/dist/openbox/openbox-$version.tar.xz"
 checksum=abe75855cc5616554ffd47134ad15291fe37ebbebf1a80b69cbde9d670f0e26d
 python_version=2 #unverified
+patch_args=-Np0
 
 # Package build options
 build_options="svg"
diff --git a/srcpkgs/openbsd-file/template b/srcpkgs/openbsd-file/template
index 839afee47d07..0556a0f33b35 100644
--- a/srcpkgs/openbsd-file/template
+++ b/srcpkgs/openbsd-file/template
@@ -12,6 +12,7 @@ license="ISC"
 homepage="https://github.com/brynet/file/"
 distfiles="https://github.com/brynet/file/archive/v${version}.tar.gz"
 checksum=f6bf601f513bd83038e343bbd93b7982f373669a2ffa76dc52d48fa7251515b2
+patch_args=-Np0
 
 system_accounts="_file"
 
diff --git a/srcpkgs/opencollada/template b/srcpkgs/opencollada/template
index 6041120059b1..3bc1f23010f4 100644
--- a/srcpkgs/opencollada/template
+++ b/srcpkgs/opencollada/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/KhronosGroup/OpenCOLLADA"
 distfiles="https://github.com/KhronosGroup/OpenCOLLADA/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=d9db0c0a518aa6ac0359626f222707c6ca1b63a83cbf229d97a5999c9cde347b
+patch_args=-Np0
 
 CXXFLAGS="-fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
 if [ -n "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/opencolorio/template b/srcpkgs/opencolorio/template
index 179736598588..c444616b8c64 100644
--- a/srcpkgs/opencolorio/template
+++ b/srcpkgs/opencolorio/template
@@ -19,6 +19,7 @@ homepage="http://opencolorio.org"
 changelog="https://raw.githubusercontent.com/imageworks/OpenColorIO/master/ChangeLog"
 distfiles="https://github.com/imageworks/OpenColorIO/archive/v${version}.tar.gz"
 checksum=c9b5b9def907e1dafb29e37336b702fff22cc6306d445a13b1621b8a754c14c8
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/opencv/template b/srcpkgs/opencv/template
index 4ebf6fe915ed..a484fbc92560 100644
--- a/srcpkgs/opencv/template
+++ b/srcpkgs/opencv/template
@@ -18,6 +18,7 @@ license="BSD-3-Clause"
 homepage="https://opencv.org"
 distfiles="https://github.com/opencv/${pkgname}/archive/${version}.tar.gz"
 checksum=1ed6f5b02a7baf14daca04817566e7c98ec668cec381e0edf534fa49f10f58a2
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/opencv4/template b/srcpkgs/opencv4/template
index f15c5f1ec2f1..02a8e293b97b 100644
--- a/srcpkgs/opencv4/template
+++ b/srcpkgs/opencv4/template
@@ -24,6 +24,7 @@ distfiles="https://github.com/opencv/opencv/archive/${version}.tar.gz
 	https://github.com/opencv/opencv_contrib/archive/${version}.tar.gz>contrib.tar.gz"
 checksum="68bc40cbf47fdb8ee73dfaf0d9c6494cd095cf6294d99de445ab64cf853d278a
 	acb8e89c9e7d1174e63e40532125b60d248b00e517255a98a419d415228c6a55"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/opendkim/template b/srcpkgs/opendkim/template
index c9d0abfda66c..cccc65ca3f3b 100644
--- a/srcpkgs/opendkim/template
+++ b/srcpkgs/opendkim/template
@@ -13,6 +13,7 @@ homepage="http://www.opendkim.org"
 distfiles="${SOURCEFORGE_SITE}/project/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=43a0ba57bf942095fe159d0748d8933c6b1dd1117caf0273fa9a0003215e681b
 python_version=2 #unverified
+patch_args=-Np0
 
 pre_configure() {
 	 autoreconf -fi
diff --git a/srcpkgs/openexr/template b/srcpkgs/openexr/template
index 3f1b59753c1b..f99fd2d8ab51 100644
--- a/srcpkgs/openexr/template
+++ b/srcpkgs/openexr/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://www.openexr.com/"
 distfiles="https://github.com/openexr/openexr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=3ebbe9a8e67edb4a25890b98c598e9fe23b10f96d1416d6a3ff0732e99d001c1
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/openjade/template b/srcpkgs/openjade/template
index 5d27cec3f6cb..401ab09110bb 100644
--- a/srcpkgs/openjade/template
+++ b/srcpkgs/openjade/template
@@ -19,6 +19,7 @@ homepage="http://openjade.sourceforge.net/"
 license="MIT"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-$version.tar.gz"
 checksum=1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1
+patch_args=-Np0
 
 CXXFLAGS="-fno-lifetime-dse"
 
diff --git a/srcpkgs/openjpeg2/template b/srcpkgs/openjpeg2/template
index 4e6f16ac7ced..dae52dc78195 100644
--- a/srcpkgs/openjpeg2/template
+++ b/srcpkgs/openjpeg2/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="http://www.openjpeg.org/"
 distfiles="https://github.com/uclouvain/openjpeg/archive/v${version}.tar.gz"
 checksum=8702ba68b442657f11aaeb2b338443ca8d5fb95b0d845757968a7be31ef7f16d
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/openlierox/template b/srcpkgs/openlierox/template
index 7ae0e22f2d3d..343b26f494f7 100644
--- a/srcpkgs/openlierox/template
+++ b/srcpkgs/openlierox/template
@@ -17,6 +17,7 @@ distfiles="${SOURCEFORGE_SITE}/openlierox/OpenLieroX_${version/.rc/_rc}.src.tar.
 checksum=3e029aba20f22d902027293e1f1a196e2f1794455cb2483d099709d7fb6c5fbb
 python_version=2
 replaces="openlierox-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libxml2"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/openmpi/template b/srcpkgs/openmpi/template
index ce8585fa6835..0881292b2772 100644
--- a/srcpkgs/openmpi/template
+++ b/srcpkgs/openmpi/template
@@ -19,6 +19,7 @@ distfiles="${homepage}/software/ompi/v${version%.*}/downloads/${pkgname}-${versi
 checksum=e24f7a778bd11a71ad0c14587a7f5b00e68a71aa5623e2157bafee3d44c07cda
 nocross="configure attempts to run target binaries"
 lib32disabled=yes
+patch_args=-Np0
 
 post_extract() {
 	vsed -e 's,sys/unistd.h,unistd.h,g' -i opal/include/opal/sys/cma.h
diff --git a/srcpkgs/openntpd/template b/srcpkgs/openntpd/template
index 34bb4ed3a5eb..e8c003ec9fd8 100644
--- a/srcpkgs/openntpd/template
+++ b/srcpkgs/openntpd/template
@@ -13,6 +13,7 @@ license="ISC"
 homepage="http://openntpd.org/"
 distfiles="http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/${pkgname}-${version}.tar.gz"
 checksum=7b02691524197e01ba6b1b4b7595b33956e657ba6d5c4cf2fc20ea3f4914c13a
+patch_args=-Np0
 
 conf_files="/etc/ntpd.conf"
 provides="ntp-daemon-0_1"
diff --git a/srcpkgs/opensm/template b/srcpkgs/opensm/template
index 101bf3a27ce2..62b6cf0ea3aa 100644
--- a/srcpkgs/opensm/template
+++ b/srcpkgs/opensm/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/linux-rdma/opensm"
 distfiles="https://github.com/linux-rdma/opensm/releases/download/${version}/opensm-${version}.tar.gz"
 checksum=1e0dc56a5cf5f8e5cd68bd534591405a5f5f1975ace40509f61a43cc2fe74ca7
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/opensmtpd-extras/template b/srcpkgs/opensmtpd-extras/template
index f022e13ed9cb..b8b0a4b5a0a8 100644
--- a/srcpkgs/opensmtpd-extras/template
+++ b/srcpkgs/opensmtpd-extras/template
@@ -16,6 +16,7 @@ license="ISC"
 homepage="https://www.opensmtpd.org"
 distfiles="https://www.opensmtpd.org/archives/${pkgname}-${version}.tar.gz"
 checksum=126b023602e8bb222bf24543a056ee0a548343dc86d184669ff9d82dfca1fbdf
+patch_args=-Np0
 
 CFLAGS="-D_DEFAULT_SOURCE"
 
diff --git a/srcpkgs/opensmtpd/template b/srcpkgs/opensmtpd/template
index ab0b2e6a10ab..5dfe9d09b811 100644
--- a/srcpkgs/opensmtpd/template
+++ b/srcpkgs/opensmtpd/template
@@ -26,6 +26,7 @@ checksum=51bf05312fe56764748faab9e63170bfbb7c7d84a37c4117b62b2681eb3a4d17
 provides="smtp-forwarder-0_1 smtp-server-0_1"
 replaces="smtp-forwarder>=0 smtp-server>=0"
 system_accounts="_smtpd _smtpq"
+patch_args=-Np0
 
 CFLAGS=-D_DEFAULT_SOURCE
 
diff --git a/srcpkgs/opensonic/template b/srcpkgs/opensonic/template
index 4dff7f06bd79..5b438426d12c 100644
--- a/srcpkgs/opensonic/template
+++ b/srcpkgs/opensonic/template
@@ -17,6 +17,7 @@ distfiles="${SOURCEFORGE_SITE}/opensnc/opensnc-src-${version}.tar.gz
  https://github.com/t6/loggcompat/archive/${_loggcompat_ver}.tar.gz"
 checksum="3a4c3fa9538ee27c04b5ea848c9ad0a83f335471936d4617a18d3648c42588e9
  481fe569959eefa92d0babeca27709b2efcf7a815cd5c49596b6c0403db76a4e"
+patch_args=-Np0
 
 replaces="opensonic-data>=0"
 CFLAGS="-I./../loggcompat-${_loggcompat_ver}"
diff --git a/srcpkgs/openssh/template b/srcpkgs/openssh/template
index 95c8b31073b3..fdd089dab38a 100644
--- a/srcpkgs/openssh/template
+++ b/srcpkgs/openssh/template
@@ -26,6 +26,7 @@ distfiles="https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/${pkgname}-${ver
 checksum=c3e6e4da1621762c850d03b47eed1e48dff4cc9608ddeb547202a234df8ed7ae
 conf_files="/etc/ssh/moduli /etc/ssh/ssh_config /etc/ssh/sshd_config /etc/pam.d/sshd"
 make_dirs="/var/chroot/ssh 0755 root root"
+patch_args=-Np0
 
 # Package build options
 build_options="fido2 gssapi ldns ssl"
diff --git a/srcpkgs/openssl/template b/srcpkgs/openssl/template
index 01dfd74de14d..007e2fc5b3e2 100644
--- a/srcpkgs/openssl/template
+++ b/srcpkgs/openssl/template
@@ -20,6 +20,7 @@ distfiles="https://www.openssl.org/source/openssl-${version}.tar.gz"
 checksum=892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5
 conf_files="/etc/ssl/openssl.cnf"
 replaces="libressl>=0"
+patch_args=-Np0
 
 build_options=asm
 
diff --git a/srcpkgs/opensurge/template b/srcpkgs/opensurge/template
index f39fb0028075..90714ddef502 100644
--- a/srcpkgs/opensurge/template
+++ b/srcpkgs/opensurge/template
@@ -12,6 +12,7 @@ homepage="https://opensurge2d.org/"
 distfiles="https://github.com/alemart/opensurge/archive/v${version}.tar.gz"
 checksum=27764a82d97b54026c90044fbc31ea4a61f7836568020b869e63376322a155af
 replaces="opensurge-data>=0"
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e 's/GAME_BINDIR "games"/GAME_BINDIR "bin"/'
diff --git a/srcpkgs/opkg/template b/srcpkgs/opkg/template
index 33b8bdd334fe..04d4362ae15f 100644
--- a/srcpkgs/opkg/template
+++ b/srcpkgs/opkg/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://code.google.com/p/opkg/"
 distfiles="https://downloads.yoctoproject.org/releases/opkg/opkg-${version}.tar.gz"
 checksum=a1214a75fa34fb9228db8da47308e0e711b1c93fd8938cf164c10fd28eb50f1e
+patch_args=-Np0
 
 build_options="gpg lz4 ssl"
 build_options_default="ssl"
diff --git a/srcpkgs/oprofile/template b/srcpkgs/oprofile/template
index 6625c363438a..da5caf24f4c3 100644
--- a/srcpkgs/oprofile/template
+++ b/srcpkgs/oprofile/template
@@ -15,6 +15,7 @@ license="GPL-2.0-only"
 homepage="http://oprofile.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=7ba06f99d7c188389d20d1d5e53ee690c7733f87aa9af62bd664fa0ca235a412
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc*) makedepends+=" papi-devel";;
diff --git a/srcpkgs/oragono/template b/srcpkgs/oragono/template
index 33a91197e97c..d3e884253354 100644
--- a/srcpkgs/oragono/template
+++ b/srcpkgs/oragono/template
@@ -16,6 +16,7 @@ system_accounts="_oragono"
 _oragono_homedir="/var/lib/oragono"
 make_dirs="
  /var/lib/oragono 0755 _oragono _oragono"
+patch_args=-Np0
 
  post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/orion/template b/srcpkgs/orion/template
index d69f2ff04dd4..29feec2b0bd0 100644
--- a/srcpkgs/orion/template
+++ b/srcpkgs/orion/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/alamminsalo/orion"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=19d9c170d0bcf21d47947704d8c8e927cff5140f94cb840b51d2b8574b0149fb
+patch_args=-Np0
 
 do_install() {
 	vbin orion
diff --git a/srcpkgs/os-prober/template b/srcpkgs/os-prober/template
index f22ca4e63e9b..3cd0dcc7a0a3 100644
--- a/srcpkgs/os-prober/template
+++ b/srcpkgs/os-prober/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://packages.debian.org/sid/os-prober"
 distfiles="${DEBIAN_SITE}/main/o/${pkgname}/${pkgname}_${version}.tar.xz"
 checksum=6e909f511035698145ba01ad63fd53fce6ee24529c76e2698e346bbac49950e9
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) _ARCH="x86";;
diff --git a/srcpkgs/osg/template b/srcpkgs/osg/template
index 08bf6d4b6591..c01c0e253576 100644
--- a/srcpkgs/osg/template
+++ b/srcpkgs/osg/template
@@ -23,6 +23,7 @@ license="OSGPL-2.0-or-later"
 homepage="http://www.openscenegraph.org"
 distfiles="https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-${version}.tar.gz"
 checksum=930eb46f05781a76883ec16c5f49cfb29a059421db131005d75bec4d78401fd5
+patch_args=-Np0
 
 # Append CFLAGS and CXXFLAGS to set work around code which gcc6 would
 # otherwise regard as out-of-specification and allow it to produce a
diff --git a/srcpkgs/osmid/template b/srcpkgs/osmid/template
index f89e27caedc4..2482ca254713 100644
--- a/srcpkgs/osmid/template
+++ b/srcpkgs/osmid/template
@@ -11,6 +11,7 @@ license="MIT, ISC, GPL-3.0-or-later"
 homepage="https://github.com/llloret/osmid/"
 distfiles="https://github.com/llloret/osmid/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=774d6c2c7ba81d1ab9d4e7ee031ce15a1506f19ee940166d277dbdee98f87b50
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" libexecinfo-devel" ;;
diff --git a/srcpkgs/otfcc/template b/srcpkgs/otfcc/template
index b19fbcb5220d..38ec8833f280 100644
--- a/srcpkgs/otfcc/template
+++ b/srcpkgs/otfcc/template
@@ -11,6 +11,7 @@ license="Apache-2.0"
 homepage="https://github.com/caryll/otfcc"
 distfiles="https://github.com/caryll/otfcc/archive/v${version}.tar.gz"
 checksum=d9c74825ddac700eb429de31de7cb0a249636f47c6a4cc64eaa102a40966cf00
+patch_args=-Np0
 
 # Yes, there are architectures besides x86 and x64 :-P
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/otpw/template b/srcpkgs/otpw/template
index 03c9c86d6a19..2f86ba39e087 100644
--- a/srcpkgs/otpw/template
+++ b/srcpkgs/otpw/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="http://www.cl.cam.ac.uk/~mgk25/otpw.html"
 distfiles="https://www.cl.cam.ac.uk/%7Emgk25/download/otpw-${version}.tar.gz"
 checksum=98aca38a61c7713677b96f24426ca7053480c0fd077d91b1e99bc9f92ccb832a
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC LD=$LD CFLAGS="$CFLAGS -fPIC" LDFLAGS="$LDFLAGS" ${makejobs}
diff --git a/srcpkgs/owncloudclient/template b/srcpkgs/owncloudclient/template
index 2146b9110d17..cf7871bd6477 100644
--- a/srcpkgs/owncloudclient/template
+++ b/srcpkgs/owncloudclient/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.owncloud.org"
 distfiles="https://github.com/owncloud/client/archive/v${version}.tar.gz"
 checksum=aafc6044a4c6727ad747195cb90a6be8c3a5b28de50df97fa961b6b551fe6d89
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-tools-devel"
diff --git a/srcpkgs/p7zip/template b/srcpkgs/p7zip/template
index 642e24adaf52..192db3c04f6b 100644
--- a/srcpkgs/p7zip/template
+++ b/srcpkgs/p7zip/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://p7zip.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}_src_all.tar.bz2"
 checksum=5eb20ac0e2944f6cb9c2d51dd6c4518941c185347d4089ea89087ffdd6e2341f
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/pa-applet/template b/srcpkgs/pa-applet/template
index e190ff2d99ad..c4586b7be4f1 100644
--- a/srcpkgs/pa-applet/template
+++ b/srcpkgs/pa-applet/template
@@ -13,6 +13,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/fernandotcl/pa-applet"
 distfiles="$homepage/archive/$_commit.tar.gz"
 checksum=db30c04a6954e1d138c6bc80739dae80d667a0af151b015db503e48fb30b0b7a
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e 's| -Werror||' src/Makefile.am
diff --git a/srcpkgs/pacman/template b/srcpkgs/pacman/template
index d23aba0468bf..c676fb361132 100644
--- a/srcpkgs/pacman/template
+++ b/srcpkgs/pacman/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.archlinux.org/pacman/"
 distfiles="https://sources.archlinux.org/other/pacman/pacman-${version}.tar.gz"
 checksum=bb201a9f2fb53c28d011f661d50028efce6eef2c1d2a36728bdd0130189349a0
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	do_check() {
diff --git a/srcpkgs/pahole/template b/srcpkgs/pahole/template
index d3b720d72f24..ee34924e70c7 100644
--- a/srcpkgs/pahole/template
+++ b/srcpkgs/pahole/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://git.kernel.org/?p=devel/pahole/pahole.git;a=summary"
 distfiles="https://fedorapeople.org/~acme/dwarves/dwarves-${version}.tar.xz"
 checksum=33a8bed6c0e1a5889578e01d1afed3f752353dc087d8bda36d258fe83e42a476
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	*-musl) makedepends+=" musl-obstack-devel argp-standalone"
diff --git a/srcpkgs/pam-mount/template b/srcpkgs/pam-mount/template
index 0a8e38d9de8c..235c7025df49 100644
--- a/srcpkgs/pam-mount/template
+++ b/srcpkgs/pam-mount/template
@@ -16,6 +16,7 @@ homepage="http://pam-mount.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pam-mount/pam_mount/${version}/pam_mount-${version}.tar.xz"
 checksum=ae0207ea6c96189414f906a7b0880abc7751a98e26b3d0375c9afab3722471e7
 conf_files="/etc/security/pam_mount.conf.xml"
+patch_args=-Np0
 
 libpam-mount_package() {
 	short_desc+=" - runtime library"
diff --git a/srcpkgs/pam-u2f/template b/srcpkgs/pam-u2f/template
index 7c1b5034a28d..02fb19f2b41d 100644
--- a/srcpkgs/pam-u2f/template
+++ b/srcpkgs/pam-u2f/template
@@ -14,6 +14,7 @@ homepage="https://developers.yubico.com/pam-u2f/"
 #changelog="https://raw.githubusercontent.com/Yubico/pam-u2f/master/NEWS"
 distfiles="https://developers.yubico.com/pam-u2f/Releases/pam_u2f-${version}.tar.gz"
 checksum=0dc3bf96ebb69c6e398b5f8991493b37a8ce1af792948af71e694f695d5edc05
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/pam_ssh/template b/srcpkgs/pam_ssh/template
index eba01a0fa450..b2d2ae5f4483 100644
--- a/srcpkgs/pam_ssh/template
+++ b/srcpkgs/pam_ssh/template
@@ -14,6 +14,7 @@ license="BSD-2-Clause"
 homepage="http://pam-ssh.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pam-ssh/${pkgname}-${version}.tar.xz"
 checksum=0c456f6a5c9e47ce6825ac50d467e7a797e14239b2b9a72bfeb2df0100f4af31
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/pam_ssh_agent_auth/template b/srcpkgs/pam_ssh_agent_auth/template
index 507448245108..05c7a4f346c1 100644
--- a/srcpkgs/pam_ssh_agent_auth/template
+++ b/srcpkgs/pam_ssh_agent_auth/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://pamsshagentauth.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pamsshagentauth/${pkgname}-${version}.tar.bz2"
 checksum=3c53d358d6eaed1b211239df017c27c6f9970995d14102ae67bae16d4f47a763
+patch_args=-Np0
 
 post_extract() {
 	vsed -e '/^AR=/d' -i Makefile.in -i openbsd-compat/Makefile.in
diff --git a/srcpkgs/papi/template b/srcpkgs/papi/template
index f8010c4b1591..c8d6d1e79fbf 100644
--- a/srcpkgs/papi/template
+++ b/srcpkgs/papi/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://icl.cs.utk.edu/papi/"
 distfiles="http://icl.utk.edu/projects/papi/downloads/papi-${version}.tar.gz"
 checksum=d1a3bb848e292c805bc9f29e09c27870e2ff4cda6c2fba3b7da8b4bba6547589
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	_ARCH="${XBPS_TARGET_MACHINE%-musl}"
diff --git a/srcpkgs/par/template b/srcpkgs/par/template
index 54747129b79a..0f8b5c52e165 100644
--- a/srcpkgs/par/template
+++ b/srcpkgs/par/template
@@ -12,6 +12,7 @@ distfiles="http://www.nicemice.net/par/Par152-autoconf.tar.gz
  http://www.nicemice.net/par/Par152.tar.gz"
 checksum="034fb943236523629eefee0a33fc6afb5b881648a2fc5c6bef7fd1b89ce44d34
  33dcdae905f4b4267b4dc1f3efb032d79705ca8d2122e17efdecfd8162067082"
+patch_args=-Np0
 
 do_install() {
 	vbin par
diff --git a/srcpkgs/par2cmdline/template b/srcpkgs/par2cmdline/template
index 548de4363a7c..10e1b5c63f40 100644
--- a/srcpkgs/par2cmdline/template
+++ b/srcpkgs/par2cmdline/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Parchive/par2cmdline"
 distfiles="https://github.com/Parchive/par2cmdline/archive/v${version}.tar.gz"
 checksum=529f85857ec44e501cd8d95b0c8caf47477d7daa5bfb989e422c800bb71b689a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/paraview/template b/srcpkgs/paraview/template
index 20a7f5589677..875b5d1f176b 100644
--- a/srcpkgs/paraview/template
+++ b/srcpkgs/paraview/template
@@ -34,6 +34,7 @@ license="BSD-3-Clause"
 homepage="https://www.paraview.org"
 distfiles="https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${version:0:3}&type=source&os=Sources&downloadFile=ParaView-v${version}.tar.xz>paraview-${version}.tar.xz"
 checksum=7653950392a0d7c0287c26f1d3a25cdbaa11baa7524b0af0e6a1a0d7d487d034
+patch_args=-Np0
 
 CFLAGS="-DYYERROR_VERBOSE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DGNU_SOURCE -fcommon"
 CXXFLAGS="${CFLAGS}"
diff --git a/srcpkgs/parcellite/template b/srcpkgs/parcellite/template
index 98f7b661cd74..cb4de9fe6082 100644
--- a/srcpkgs/parcellite/template
+++ b/srcpkgs/parcellite/template
@@ -12,5 +12,6 @@ license="GPL-3.0-or-later"
 homepage="http://parcellite.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/parcellite/${version}/parcellite-${version}.tar.gz"
 checksum=aba1c7c56c7607e219ce9855723eefa552c5376982891aefbfb5a2d3297ef046
+patch_args=-Np0
 
 export LIBS=-lgio-2.0
diff --git a/srcpkgs/partclone/template b/srcpkgs/partclone/template
index 4813a8a250dd..5140c3dcf878 100644
--- a/srcpkgs/partclone/template
+++ b/srcpkgs/partclone/template
@@ -16,6 +16,7 @@ homepage="http://www.partclone.org/"
 distfiles="https://github.com/Thomas-Tsai/${pkgname}/archive/${version}.tar.gz"
 checksum=ef1391db3801e4b3ef82fc9417f1d7f0542b7229b3394120072b2dfeae0bbbb0
 CFLAGS="-DBTRFS_DISABLE_BACKTRACE"
+patch_args=-Np0
 
 pre_configure() {
 	./autogen
diff --git a/srcpkgs/passwordsafe/template b/srcpkgs/passwordsafe/template
index c4eab0c120ec..7d07f7849bea 100644
--- a/srcpkgs/passwordsafe/template
+++ b/srcpkgs/passwordsafe/template
@@ -16,6 +16,7 @@ license="Artistic-2.0"
 homepage="https://pwsafe.org"
 distfiles="https://github.com/pwsafe/pwsafe/archive/${version}.tar.gz"
 checksum=8962edf57b7f901d9ed23496c8ec387a4f186855976e8ac98f2dd55560c82ebe
+patch_args=-Np0
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -DNO_GTEST=OFF"
diff --git a/srcpkgs/pax/template b/srcpkgs/pax/template
index 0612a94cfebe..5a678b9e614f 100644
--- a/srcpkgs/pax/template
+++ b/srcpkgs/pax/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://www.mirbsd.org/MirOS/dist/mir/cpio/"
 distfiles="https://www.mirbsd.org/MirOS/dist/mir/cpio/paxmirabilis-${version}.cpio.gz"
 checksum=fe3f99c28ba7a46c4bce0b329da3742908b87fe8fbe17f0db1f99a1bd053d46b
+patch_args=-Np0
 
 alternatives="
  pax:pax:/usr/bin/paxmirabilis
diff --git a/srcpkgs/pcaudiolib/template b/srcpkgs/pcaudiolib/template
index 7f40e0388e16..54a1bf27c10f 100644
--- a/srcpkgs/pcaudiolib/template
+++ b/srcpkgs/pcaudiolib/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/espeak-ng/pcaudiolib"
 distfiles="https://github.com/espeak-ng/pcaudiolib/archive/${version}.tar.gz"
 checksum=699a5a347b1e12dc5b122e192e19f4db01621826bf41b9ebefb1cbc63ae2180b
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/pcc/template b/srcpkgs/pcc/template
index 84b020278d6d..e770914485c4 100644
--- a/srcpkgs/pcc/template
+++ b/srcpkgs/pcc/template
@@ -19,6 +19,7 @@ distfiles="
 checksum="a114dfca04b8b0559ea5d67b87d2d0fcb2bae2b4d9b9ba16ebc27960b921c812
  e810aa4d6683e769f490f734b13a296b33c2511ddba646bc526eb85532f1a23a"
 nocross=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/pchar/template b/srcpkgs/pchar/template
index da229e4e94c8..8186eb4aac29 100644
--- a/srcpkgs/pchar/template
+++ b/srcpkgs/pchar/template
@@ -9,6 +9,7 @@ license="custom"
 homepage="http://www.kitchenlab.org/www/bmah/Software/pchar/"
 distfiles="http://www.kitchenlab.org/www/bmah/Software/pchar/${pkgname}-${version}.tar.gz"
 checksum=7019297084f1000557a019501532ecae67772851717329cc02227f5c17e36d27
+patch_args=-Np0
 
 do_install() {
 	vbin pchar
diff --git a/srcpkgs/pcsclite/template b/srcpkgs/pcsclite/template
index ad9e221bfbc7..9363f84af591 100644
--- a/srcpkgs/pcsclite/template
+++ b/srcpkgs/pcsclite/template
@@ -14,6 +14,7 @@ license="BSD-2-Clause"
 homepage="https://salsa.debian.org/debian/pcsc-lite"
 distfiles="https://salsa.debian.org/debian/pcsc-lite/-/archive/upstream/${version}/pcsc-lite-upstream-${version}.tar.gz"
 checksum=686fbd1c29e282388111f01b6fdfa4fe6b8349908236645b869115b21e4f73e8
+patch_args=-Np0
 
 post_install() {
 	vsv pcscd
diff --git a/srcpkgs/pcsx2/template b/srcpkgs/pcsx2/template
index 59f8dfcdce71..9fef26e81efb 100644
--- a/srcpkgs/pcsx2/template
+++ b/srcpkgs/pcsx2/template
@@ -2,6 +2,7 @@
 archs="i686*"
 lib32mode="full"
 nopie=yes
+patch_args=-Np0
 
 pkgname=pcsx2
 version=1.6.0
diff --git a/srcpkgs/pd/template b/srcpkgs/pd/template
index 544afccd5410..df8bcc64fb11 100644
--- a/srcpkgs/pd/template
+++ b/srcpkgs/pd/template
@@ -15,6 +15,7 @@ license="BSD-3-Clause"
 homepage="https://puredata.info"
 distfiles="http://msp.ucsd.edu/Software/pd-$_ver.src.tar.gz"
 checksum=52591f18316e9f2471ca21c3d6b41c56336e0615ec40a093232e95cc230bfcc1
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/pdsh/template b/srcpkgs/pdsh/template
index e03e90656ad0..21d327d84a38 100644
--- a/srcpkgs/pdsh/template
+++ b/srcpkgs/pdsh/template
@@ -26,6 +26,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/chaos/pdsh"
 distfiles="https://github.com/chaos/pdsh/archive/pdsh-${version}.tar.gz"
 checksum=36e1b3c734ae9b4baf054c656b9735206cc56b290d2c0ec4f7825cdd9f7dff54
+patch_args=-Np0
 
 build_options="rsh exec ssh mrsh xcpu netgroup readline"
 build_options_default="rsh exec ssh mrsh readline"
diff --git a/srcpkgs/perl-Text-BibTeX/template b/srcpkgs/perl-Text-BibTeX/template
index bf385a1c465e..af0285bd8a2a 100644
--- a/srcpkgs/perl-Text-BibTeX/template
+++ b/srcpkgs/perl-Text-BibTeX/template
@@ -13,6 +13,7 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/Text-BibTeX/"
 distfiles="${CPAN_SITE}/Text/${pkgname/perl-/}-${version}.tar.gz"
 checksum=b014586e68bdbcafb0a2cfa0401eb0a04ea5de8c4d5bc36dd0f7faeab6acf42c
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	_perlprefix=${XBPS_STATEDIR}/perlprefix-${XBPS_TARGET_MACHINE}
diff --git a/srcpkgs/perl-Tk/template b/srcpkgs/perl-Tk/template
index 3515340159f4..6c2dbb6e2690 100644
--- a/srcpkgs/perl-Tk/template
+++ b/srcpkgs/perl-Tk/template
@@ -14,6 +14,7 @@ homepage="https://metacpan.org/release/Tk"
 license="Artistic-1.0-Perl, GPL-1.0-or-later"
 distfiles="${CPAN_SITE}/Tk/Tk-${version}.tar.gz"
 checksum=4d2b80291ba6de34d8ec886a085a6dbd2b790b926035a087e99025614c5ffdd4
+patch_args=-Np0
 
 post_configure() {
 	sed -i 's,X11/Xproto.h,,; s,X11/Xutil.h,,' pTk/Makefile
diff --git a/srcpkgs/perl-WWW-Curl/template b/srcpkgs/perl-WWW-Curl/template
index 5ff52959bfb0..e3e11f40736e 100644
--- a/srcpkgs/perl-WWW-Curl/template
+++ b/srcpkgs/perl-WWW-Curl/template
@@ -13,6 +13,7 @@ homepage="https://metacpan.org/release/WWW-Curl"
 license="MIT"
 distfiles="${CPAN_SITE}/WWW/WWW-Curl-$version.tar.gz"
 checksum=52ffab110e32348d775f241c973eb56f96b08eedbc110d77d257cdb0a24ab7ba
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/perl/template b/srcpkgs/perl/template
index 29da654b2f30..c5929e12b783 100644
--- a/srcpkgs/perl/template
+++ b/srcpkgs/perl/template
@@ -16,6 +16,7 @@ distfiles="https://www.cpan.org/src/5.0/perl-${version}.tar.gz
  https://github.com/arsv/perl-cross/releases/download/${_perl_cross_version}/perl-cross-${_perl_cross_version}.tar.gz"
 checksum="03b693901cd8ae807231b1787798cf1f2e0b8a56218d07b7da44f784a7caeb2c
  91c66f6b2b99fccfd4fee14660b677380b0c98f9456359e91449798c2ad2ef25"
+patch_args=-Np0
 
 # Before updating this package to a new major version, run ${FILESDIR}/provides.pl
 # against ${wrksrc} to find the list of built in packages.
diff --git a/srcpkgs/pgadmin3/template b/srcpkgs/pgadmin3/template
index ad2465b3413c..c4fc9f3c2aab 100644
--- a/srcpkgs/pgadmin3/template
+++ b/srcpkgs/pgadmin3/template
@@ -13,6 +13,7 @@ homepage="http://www.pgadmin.org"
 distfiles="https://ftp.postgresql.org/pub/pgadmin/pgadmin3/v${version}/src/pgadmin3-${version}.tar.gz"
 checksum=9b68b0e3d3f0a261344fb8196825967d1e7acaca1d8cc82c42e12368ca5844ac
 nocross=yes
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/php/template b/srcpkgs/php/template
index bdc35ee2d846..4d5649ef85ba 100644
--- a/srcpkgs/php/template
+++ b/srcpkgs/php/template
@@ -14,6 +14,7 @@ license="PHP-3.01"
 homepage="https://www.php.net"
 distfiles="http://www.php.net/distributions/php-${version}.tar.xz"
 checksum=f9f3c37969fcd9006c1dbb1dd76ab53f28c698a1646fa2dde8547c3f45e02886
+patch_args=-Np0
 
 conf_files="/etc/php/php.ini"
 
diff --git a/srcpkgs/pidgin-libnotify/template b/srcpkgs/pidgin-libnotify/template
index 5a627f323836..670f6336a6d6 100644
--- a/srcpkgs/pidgin-libnotify/template
+++ b/srcpkgs/pidgin-libnotify/template
@@ -14,6 +14,7 @@ homepage="http://gaim-libnotify.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/gaim-libnotify/${pkgname}-${version}.tar.gz"
 checksum=74f4a9f20e0a483df39974178f1f2380786176189512bcd438e4ada280ec3abe
 lib32disabled=yes
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/pidgin/template b/srcpkgs/pidgin/template
index a2668cf685eb..fb6513a00455 100644
--- a/srcpkgs/pidgin/template
+++ b/srcpkgs/pidgin/template
@@ -18,6 +18,7 @@ distfiles="${SOURCEFORGE_SITE}/pidgin/pidgin-${version}.tar.bz2"
 checksum=2747150c6f711146bddd333c496870bfd55058bab22ffb7e4eb784018ec46d8f
 python_version=2 #unverified
 lib32disabled=yes
+patch_args=-Np0
 
 hostmakedepends="pkg-config intltool automake libtool gettext gettext-devel glib-devel"
 makedepends="libglib-devel gtk+-devel libXext-devel
diff --git a/srcpkgs/pijul/template b/srcpkgs/pijul/template
index 40df186b9387..ad8534111db3 100644
--- a/srcpkgs/pijul/template
+++ b/srcpkgs/pijul/template
@@ -14,6 +14,7 @@ distfiles="https://crates.io/api/v1/crates/pijul/${version}/download>pijul-${ver
  https://gitlab.com/sequoia-pgp/sequoia/-/archive/v${_sequoia_ver}/sequoia-v${_sequoia_ver}.tar.gz"
 checksum="f92a3f4063e780ca45c161ceb0f42baf34dfeddf3359ebf6c2e0442d9abb5889
  71823c88b9666611f3cfa6b1d923bd66fda92fa6a53368b195bd2f962fdf7f4b"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	export HOST_CC="$BUILD_CC"
diff --git a/srcpkgs/pilot-link/template b/srcpkgs/pilot-link/template
index 5b83232cef8c..e42936b5e2d3 100644
--- a/srcpkgs/pilot-link/template
+++ b/srcpkgs/pilot-link/template
@@ -18,6 +18,7 @@ homepage="http://www.pilot-link.org/"
 #distfiles="http://downloads.pilot-link.org/${pkgname}-${version}.tar.bz2"
 distfiles="https://mirrors.slackware.com/slackware/slackware-14.1/source/l/pilot-link/pilot-link-${version}.tar.bz2"
 checksum=d3f99ec04016b38995fb370265200254710318105c792c017d3aaccfb97a84b2
+patch_args=-Np0
 
 # Avoid error because of deprecation
 CFLAGS="-Wno-deprecated-declarations"
diff --git a/srcpkgs/pinebookpro-uboot/template b/srcpkgs/pinebookpro-uboot/template
index db629c4a8e53..ce053ca69d80 100644
--- a/srcpkgs/pinebookpro-uboot/template
+++ b/srcpkgs/pinebookpro-uboot/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only, BSD-3-Clause"
 homepage="https://www.denx.de/wiki/U-Boot/"
 distfiles="https://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2"
 checksum=0d481bbdc05c0ee74908ec2f56a6daa53166cc6a78a0e4fac2ac5d025770a622
+patch_args=-Np0
 
 do_configure() {
 	unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
diff --git a/srcpkgs/pingus/template b/srcpkgs/pingus/template
index 8e126cf7466e..a4f8d003f7f7 100644
--- a/srcpkgs/pingus/template
+++ b/srcpkgs/pingus/template
@@ -14,6 +14,7 @@ homepage="https://pingus.seul.org/"
 distfiles="https://gitlab.com/pingus/pingus/-/archive/v${version}/pingus-v${version}.tar.gz"
 checksum=31cb2c0ecddd49dbe03535648e8c7c2971da469c52af52cdf9dc2459798342c8
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	# XXX: defining CXXFLAGS breaks dependency detection.
diff --git a/srcpkgs/pioneer/template b/srcpkgs/pioneer/template
index 40812890ec7a..c4b81ba6968d 100644
--- a/srcpkgs/pioneer/template
+++ b/srcpkgs/pioneer/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://pioneerspacesim.net"
 distfiles="https://github.com/pioneerspacesim/pioneer/archive/${version}.tar.gz"
 checksum=fcbc57374123b44161e9d15d97bd950255f654a222840894f50bfc2be716ea68
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" pioneer-modelcompiler"
diff --git a/srcpkgs/pipenightdreams/template b/srcpkgs/pipenightdreams/template
index baf9b32f95d1..a8de6c96d19a 100644
--- a/srcpkgs/pipenightdreams/template
+++ b/srcpkgs/pipenightdreams/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.libsdl.org/projects/pipenightdreams"
 distfiles="${homepage}/packages/${pkgname}-${version}.tar.bz2"
 checksum=302f8ce6e0eb32ebd779700527095cf086c2c7132d47095bae9a43c346245541
+patch_args=-Np0
 
 pre_configure() {
 	find . -type f -exec sed -i "{}" -e "s;/games/;/;g" \;
diff --git a/srcpkgs/pipewire/template b/srcpkgs/pipewire/template
index 43e3c1cfc9b4..ac6ce7fffd6f 100644
--- a/srcpkgs/pipewire/template
+++ b/srcpkgs/pipewire/template
@@ -19,6 +19,7 @@ homepage="https://pipewire.org/"
 changelog="https://gitlab.freedesktop.org/pipewire/pipewire/-/raw/master/NEWS"
 distfiles="https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/${version}/pipewire-${version}.tar.gz"
 checksum=1d9271e121a5049aef379e9bb7c50524faa6f971e668806637d7b9df1b7cab88
+patch_args=-Np0
 
 build_options="sdl2"
 
diff --git a/srcpkgs/pjproject/template b/srcpkgs/pjproject/template
index c94ead90e9de..041dd40b5047 100644
--- a/srcpkgs/pjproject/template
+++ b/srcpkgs/pjproject/template
@@ -24,6 +24,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.pjsip.org/pjsua.htm"
 distfiles="http://www.pjsip.org/release/${version}/${pkgname}-${version}.tar.bz2"
 checksum=503d0bd7f9f13dc1492ac9b71b761b1089851fbb608b9a13996edc3c42006f79
+patch_args=-Np0
 
 pre_configure() {
 	export LD="${CC}"
diff --git a/srcpkgs/plasma-framework/template b/srcpkgs/plasma-framework/template
index 8dd0abc2a5a8..8888c18fdcaa 100644
--- a/srcpkgs/plasma-framework/template
+++ b/srcpkgs/plasma-framework/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/plasma-framework"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=f128726985a21b895591bf694520dac3580e539d517c6e80230fc80166f8b9a1
+patch_args=-Np0
 
 plasma-framework-devel_package() {
 	short_desc+=" - development"
diff --git a/srcpkgs/plasma-workspace/template b/srcpkgs/plasma-workspace/template
index 049bc5c1f28e..fe6fdbf28433 100644
--- a/srcpkgs/plasma-workspace/template
+++ b/srcpkgs/plasma-workspace/template
@@ -24,6 +24,7 @@ license="GPL-2.0-or-later, GFDL-1.2-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/plasma/plasma-workspace"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=61ad5adab412c935ae156c4de3f38d1e2640752c95100ad6996b9e51e8539725
+patch_args=-Np0
 
 build_options="pipewire"
 build_options_default="pipewire"
diff --git a/srcpkgs/plex-media-player/template b/srcpkgs/plex-media-player/template
index 830d09f8579d..e2b23f24dfe6 100644
--- a/srcpkgs/plex-media-player/template
+++ b/srcpkgs/plex-media-player/template
@@ -38,6 +38,7 @@ skip_extraction="buildid-${_buildid_version}.cmake
  web-client-desktop-${_clientdesktop_version}.tar.xz.sha1
  web-client-tv-${_clienttv_version}.tar.xz
  web-client-tv-${_clienttv_version}.tar.xz.sha1"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-devel qt5-host-tools"
diff --git a/srcpkgs/plib/template b/srcpkgs/plib/template
index cde1e8335d24..c212ec3dd700 100644
--- a/srcpkgs/plib/template
+++ b/srcpkgs/plib/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-or-later"
 homepage="http://plib.sourceforge.net"
 distfiles="http://plib.sourceforge.net/dist/plib-${version}.tar.gz"
 checksum=485b22bf6fdc0da067e34ead5e26f002b76326f6371e2ae006415dea6a380a32
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/plocate/template b/srcpkgs/plocate/template
index 58252651243d..fa184f7b94c5 100644
--- a/srcpkgs/plocate/template
+++ b/srcpkgs/plocate/template
@@ -15,6 +15,7 @@ homepage="https://plocate.sesse.net/"
 changelog="https://git.sesse.net/?p=plocate;a=blob_plain;f=NEWS;hb=HEAD"
 distfiles="https://plocate.sesse.net/download/plocate-${version}.tar.gz"
 checksum=13002f065c28a93623a03d44c911a44f1659e8b1841aad80fd8a566a1200f43c
+patch_args=-Np0
 
 system_accounts="_plocate"
 
diff --git a/srcpkgs/plotutils/template b/srcpkgs/plotutils/template
index 6b64353081be..b047906f96cd 100644
--- a/srcpkgs/plotutils/template
+++ b/srcpkgs/plotutils/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="http://directory.fsf.org/wiki/Plotutils"
 distfiles="${GNU_SITE}/plotutils/plotutils-${version}.tar.gz"
 checksum=4f4222820f97ca08c7ea707e4c53e5a3556af4d8f1ab51e0da6ff1627ff433ab
+patch_args=-Np0
 
 plotutils-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/plume-creator/template b/srcpkgs/plume-creator/template
index 3c415a06cdd8..86bd3b86ee41 100644
--- a/srcpkgs/plume-creator/template
+++ b/srcpkgs/plume-creator/template
@@ -20,6 +20,7 @@ distfiles="
 checksum="
  f88f9524184bcf60dae855d6ad37899aefa39de0edd56098e93ce3b97b679e0c
  7d473ee7283bc311c7d4dd3311d1e7726df7d45fa0123894265f355b436298e1"
+patch_args=-Np0
 
 post_extract() {
 	mv -f ${wrksrc}/../debian ${wrksrc}/
diff --git a/srcpkgs/plymouth/template b/srcpkgs/plymouth/template
index 17f801fc5315..9b15ecb110a5 100644
--- a/srcpkgs/plymouth/template
+++ b/srcpkgs/plymouth/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.freedesktop.org/wiki/Software/Plymouth/"
 distfiles="${FREEDESKTOP_SITE}/plymouth/releases/$pkgname-$version.tar.xz"
 checksum=ecae257f351d098340542a5bc06de029404c24dcee87e6ebb2abd5ef117fce86
+patch_args=-Np0
 
 build_options="gtk3 pango"
 build_options_default="gtk3 pango"
diff --git a/srcpkgs/pmount/template b/srcpkgs/pmount/template
index 8a826f4e0fe6..f4bb5a0939f8 100644
--- a/srcpkgs/pmount/template
+++ b/srcpkgs/pmount/template
@@ -12,6 +12,7 @@ homepage="http://pmount.alioth.debian.org/"
 distfiles="${DEBIAN_SITE}/main/p/${pkgname}/${pkgname}_${version}.orig.tar.bz2"
 checksum=db38fc290b710e8e9e9d442da2fb627d41e13b3ee80326c15cc2595ba00ea036
 conf_files="/etc/pmount.allow"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/png++/template b/srcpkgs/png++/template
index b156d6063088..01788d947b49 100644
--- a/srcpkgs/png++/template
+++ b/srcpkgs/png++/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://www.nongnu.org/pngpp"
 distfiles="${NONGNU_SITE}/pngpp/${pkgname}-${version}.tar.gz"
 checksum=998af216ab16ebb88543fbaa2dbb9175855e944775b66f2996fc945c8444eee1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/polkit-qt5/template b/srcpkgs/polkit-qt5/template
index 7edc26624f5c..b4fdd7b240ab 100644
--- a/srcpkgs/polkit-qt5/template
+++ b/srcpkgs/polkit-qt5/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://projects.kde.org/projects/kdesupport/polkit-qt-1"
 distfiles="${KDE_SITE}/polkit-qt-1/polkit-qt-1-${version}.tar.xz"
 checksum=5b866a2954ef10ffb66156e2fe8ad0321b5528a8df2e4a91b02f5041ce5563a7
+patch_args=-Np0
 
 polkit-qt5-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/polkit/template b/srcpkgs/polkit/template
index 01d31d7dc6ae..0fc0d667eb22 100644
--- a/srcpkgs/polkit/template
+++ b/srcpkgs/polkit/template
@@ -22,6 +22,7 @@ checksum=6d54e984e7072339f0d3147179e16e34e5fe0705158f259a765d772dcf78956b
 system_accounts="polkitd"
 #replaces="polkit-elogind>=0"
 #provides="polkit-elogind-${version}_${revision}"
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/polygen/template b/srcpkgs/polygen/template
index 22811a9f7b99..20c1f27c3037 100644
--- a/srcpkgs/polygen/template
+++ b/srcpkgs/polygen/template
@@ -12,6 +12,7 @@ homepage="http://www.polygen.org"
 distfiles="${DEBIAN_SITE}/main/p/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=60dbcec8aedcbb2545202ad97d41e592f232b8fc842ea25a7998c88a385148d5
 nocross=yes
+patch_args=-Np0
 
 do_check() {
 	:
diff --git a/srcpkgs/portaudio/template b/srcpkgs/portaudio/template
index 7032f8da9d41..eaaacb9b299f 100644
--- a/srcpkgs/portaudio/template
+++ b/srcpkgs/portaudio/template
@@ -14,6 +14,7 @@ homepage="http://www.portaudio.com"
 distfiles="http://www.${pkgname}.com/archives/pa_stable_v${version%.*}_${version#*.}.tgz"
 checksum=f5a21d7dcd6ee84397446fa1fa1a0675bb2e8a4a6dceb4305a8404698d8d1513
 disable_parallel_build=yes
+patch_args=-Np0
 
 # sndio disabled by default: non-upstream patch
 build_options="sndio"
diff --git a/srcpkgs/portmidi/template b/srcpkgs/portmidi/template
index e3afd5cd8314..88906d95e148 100644
--- a/srcpkgs/portmidi/template
+++ b/srcpkgs/portmidi/template
@@ -17,6 +17,7 @@ license="MIT"
 homepage="http://portmedia.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/portmedia/${pkgname}/${version}/${pkgname}-src-${version}.zip"
 checksum=08e9a892bd80bdb1115213fb72dc29a7bf2ff108b378180586aa65f3cfd42e0f
+patch_args=-Np0
 
 post_install() {
 	ln -s libportmidi.so ${DESTDIR}/usr/lib/libporttime.so
diff --git a/srcpkgs/postfix/template b/srcpkgs/postfix/template
index 80d321fb726c..7eef653977d5 100644
--- a/srcpkgs/postfix/template
+++ b/srcpkgs/postfix/template
@@ -11,6 +11,7 @@ license="IPL-1.0, EPL-2.0"
 homepage="http://www.postfix.org/"
 distfiles="http://ftp.porcupine.org/mirrors/postfix-release/official/${pkgname}-${version}.tar.gz"
 checksum=20a805625601e7b95989220832c8fa14ce374f0711da054188f8cec6a92fd71c
+patch_args=-Np0
 
 system_accounts="postfix"
 postfix_homedir="/var/spool/postfix"
diff --git a/srcpkgs/postgresql/template b/srcpkgs/postgresql/template
index 3167e0657fed..f638aa7642e9 100644
--- a/srcpkgs/postgresql/template
+++ b/srcpkgs/postgresql/template
@@ -22,6 +22,7 @@ distfiles="https://ftp.postgresql.org/pub/source/v${version}/${pkgname}-${versio
 checksum=3d32cd101025a0556813397c69feff3df3d63736adb8adeaf365c522f39f2930
 # initdb fails on github actions, works locally with xbps-uunshare
 make_check=ci-skip
+patch_args=-Np0
 
 conf_files="
 	/etc/default/${pkgname}
diff --git a/srcpkgs/postgresql12/template b/srcpkgs/postgresql12/template
index 02b9e6b1f794..5450b7828739 100644
--- a/srcpkgs/postgresql12/template
+++ b/srcpkgs/postgresql12/template
@@ -23,6 +23,7 @@ homepage="https://www.postgresql.org"
 changelog="https://www.postgresql.org/docs/current/release-${version//./-}.html"
 distfiles="https://ftp.postgresql.org/pub/source/v${version}/postgresql-${version}.tar.bz2"
 checksum=8490741f47c88edc8b6624af009ce19fda4dc9b31c4469ce2551d84075d5d995
+patch_args=-Np0
 
 conf_files="
  /${_prefix}/etc/default/postgresql
diff --git a/srcpkgs/postgresql13/template b/srcpkgs/postgresql13/template
index be54f0bafe4c..1757cac0a3a5 100644
--- a/srcpkgs/postgresql13/template
+++ b/srcpkgs/postgresql13/template
@@ -23,6 +23,7 @@ homepage="https://www.postgresql.org"
 changelog="https://www.postgresql.org/docs/current/release-${version//./-}.html"
 distfiles="https://ftp.postgresql.org/pub/source/v${version}/postgresql-${version}.tar.bz2"
 checksum=3cd9454fa8c7a6255b6743b767700925ead1b9ab0d7a0f9dcb1151010f8eb4a1
+patch_args=-Np0
 
 conf_files="
  /${_prefix}/etc/default/postgresql
diff --git a/srcpkgs/povray/template b/srcpkgs/povray/template
index 30a2baab2039..20f0417c2681 100644
--- a/srcpkgs/povray/template
+++ b/srcpkgs/povray/template
@@ -20,6 +20,7 @@ checksum=53d11ebd2972fc452af168a00eb83aefb61387662c10784e81b63e44aa575de4
 nocross="Builds fail on ARM architectures
  Logs are at https://travis-ci.org/void-linux/void-packages/builds/412583835."
 LDFLAGS+=" -Wl,-z,stack-size=1048576"
+patch_args=-Np0
 
 pre_configure() {
 	cd $wrksrc/unix
diff --git a/srcpkgs/powerpc-utils/template b/srcpkgs/powerpc-utils/template
index e975d94658a0..f33782a127da 100644
--- a/srcpkgs/powerpc-utils/template
+++ b/srcpkgs/powerpc-utils/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/ibm-power-utilities/powerpc-utils"
 distfiles="https://github.com/ibm-power-utilities/powerpc-utils/archive/v${version}.tar.gz"
 checksum=bb48758bca3b9d056141b522e700218ee4e814b517aadf5a01f53b970ad1d3c3
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --with-librtas ac_cv_lib_rtasevent_parse_rtas_event=yes"
diff --git a/srcpkgs/ppp/template b/srcpkgs/ppp/template
index 8f597b56516f..c59d266437f4 100644
--- a/srcpkgs/ppp/template
+++ b/srcpkgs/ppp/template
@@ -25,6 +25,7 @@ conf_files="
  /etc/ppp/options
  /etc/ppp/chap-secrets
  /etc/ppp/pap-secrets"
+patch_args=-Np0
 
 do_configure() {
 	./configure --prefix=/usr --cc="${CC}" --cflags="${CFLAGS}"
diff --git a/srcpkgs/pps-tools/template b/srcpkgs/pps-tools/template
index 2227ed811c0d..459a701ff5da 100644
--- a/srcpkgs/pps-tools/template
+++ b/srcpkgs/pps-tools/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://linuxpps.org/"
 distfiles="https://github.com/ago/pps-tools/archive/v${version}.tar.gz"
 checksum=1a7efd66152e5439b69143f1f380b40ac5decbbbef516b37a017410b8ba7dff4
+patch_args=-Np0
 
 pps-tools-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/ppsspp/template b/srcpkgs/ppsspp/template
index eaf14bc7cf14..eee3c9fe1a1a 100644
--- a/srcpkgs/ppsspp/template
+++ b/srcpkgs/ppsspp/template
@@ -36,6 +36,7 @@ checksum="503f046fa68e4be24d08822b0aa2280e653ad513d9a12c77a59809467b95c516
  f8a03906135fb6f2932b80b7ef5991f39ccac46b36ec3690776fb38c69775c3d
  20fe5dbd7a64f7a8fdbaeb81f8dd485df61121c5054e0f7f917c6193f209ff2e
  6819f0984fa647f69a74831a2333859a07099f64098ce58c35d8604d19532d3d"
+patch_args=-Np0
 
 # ppsspp always tries to compile x86 unittest
 # https://gist.github.com/Johnnynator/e18d59274451cff890b7235009d2e93d
diff --git a/srcpkgs/pptpclient/template b/srcpkgs/pptpclient/template
index 3761f308658d..4b75b7dd481b 100644
--- a/srcpkgs/pptpclient/template
+++ b/srcpkgs/pptpclient/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://pptpclient.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pptpclient/files/pptp-${version}.tar.gz"
 checksum=82492db8e487ce73b182ee7f444251d20c44f5c26d6e96c553ec7093aefb5af4
+patch_args=-Np0
 
 pre_build() {
 	sed -i Makefile \
diff --git a/srcpkgs/projectlibre/template b/srcpkgs/projectlibre/template
index 4f6d94cef759..9bac53e4496b 100644
--- a/srcpkgs/projectlibre/template
+++ b/srcpkgs/projectlibre/template
@@ -9,6 +9,7 @@ license="CPAL-1.0"
 homepage="https://www.projectlibre.com/"
 distfiles="${SOURCEFORGE_SITE}/projectlibre/${version}/projectlibre-${version}.tar.gz"
 checksum=58160173ecb384d988a398b7fe5400fc9667209aab2dedc21f5445f4f88f09c4
+patch_args=-Np0
 
 do_install() {
 	_dest="usr/share/projectlibre"
diff --git a/srcpkgs/proot/template b/srcpkgs/proot/template
index bf03af65a909..de493094767c 100644
--- a/srcpkgs/proot/template
+++ b/srcpkgs/proot/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://proot-me.github.io"
 distfiles="https://github.com/proot-me/PRoot/archive/v${version}.tar.gz"
 checksum=ce0a3baca8312613bd10f65bb436a3aaa28e1034f498a22c35ad0693600e01dd
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/protobuf-c/template b/srcpkgs/protobuf-c/template
index ab3915524c66..cb483c410441 100644
--- a/srcpkgs/protobuf-c/template
+++ b/srcpkgs/protobuf-c/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/protobuf-c/protobuf-c"
 distfiles="${homepage}/releases/download/v${version}/protobuf-c-${version}.tar.gz"
 checksum=22956606ef50c60de1fabc13a78fbc50830a0447d780467d3c519f84ad527e78
+patch_args=-Np0
 
 # buildprocess calls compiler while building, disable it on cross build
 build_options="protoc"
diff --git a/srcpkgs/prototype/template b/srcpkgs/prototype/template
index 03d8f26c39be..653e15089878 100644
--- a/srcpkgs/prototype/template
+++ b/srcpkgs/prototype/template
@@ -9,6 +9,7 @@ license="Public Domain"
 homepage="https://github.com/ptitSeb/prototype"
 distfiles="https://github.com/ptitSeb/prototype/archive/v${version}.tar.gz"
 checksum=400f8a5c727c9feaa6b48b65c23c312db41dd238af9526659bf3342346c05af6
+patch_args=-Np0
 
 CXXFLAGS="-Wno-write-strings"
 
diff --git a/srcpkgs/psensor/template b/srcpkgs/psensor/template
index 00cf7ba46a69..b4841eed5884 100644
--- a/srcpkgs/psensor/template
+++ b/srcpkgs/psensor/template
@@ -16,6 +16,7 @@ changelog="https://gitlab.com/jeanfi/psensor/-/raw/master/NEWS"
 distfiles="https://wpitchoune.net/${pkgname}/files/${pkgname}-${version}.tar.gz"
 checksum=084f785d169f533d3010e50c5933436ed427afc70d41740b762f1db5034833ab
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ -z "$CROSS_BUILD" ]; then
 	hostmakedepends+=" help2man"
diff --git a/srcpkgs/ptii/template b/srcpkgs/ptii/template
index 572d59daad4d..a0c21edea43c 100644
--- a/srcpkgs/ptii/template
+++ b/srcpkgs/ptii/template
@@ -10,5 +10,6 @@ license="WTFPL"
 homepage="http://git.z3bra.org/cgit.cgi/ptii/"
 distfiles="https://sources.voidlinux.de/ptii-${version}/ptii-${version}.tar.bz2"
 checksum=2f130417251938c9947293f4df07b6db37909e03d4f600e0af025d1ae6a02d26
+patch_args=-Np0
 
 LDFLAGS="-lpthread"
diff --git a/srcpkgs/pugixml/template b/srcpkgs/pugixml/template
index 45d0d36a67b7..c34c9d86dde8 100644
--- a/srcpkgs/pugixml/template
+++ b/srcpkgs/pugixml/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://pugixml.org/"
 distfiles="http://github.com/zeux/pugixml/releases/download/v${version}/pugixml-${version}.tar.gz"
 checksum=8ddf57b65fb860416979a3f0640c2ad45ddddbbafa82508ef0a0af3ce7061716
+patch_args=-Np0
 
 post_install() {
 	tail -22 readme.txt > LICENSE
diff --git a/srcpkgs/pulseview/template b/srcpkgs/pulseview/template
index 83ce80bc39d9..b6e099c7b684 100644
--- a/srcpkgs/pulseview/template
+++ b/srcpkgs/pulseview/template
@@ -15,5 +15,6 @@ license="GPL-3"
 homepage="https://sigrok.org/"
 distfiles="https://sigrok.org/download/source/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=f042f77a3e1b35bf30666330e36ec38fab8d248c3693c37b7e35d401c3bfabcb
+patch_args=-Np0
 
 CXXFLAGS+=" -fext-numeric-literals"
diff --git a/srcpkgs/putty/template b/srcpkgs/putty/template
index e4efe58debd4..c87cbf5b6098 100644
--- a/srcpkgs/putty/template
+++ b/srcpkgs/putty/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://www.chiark.greenend.org.uk/~sgtatham/putty/"
 distfiles="http://the.earth.li/~sgtatham/putty/latest/putty-${version}.tar.gz"
 checksum=d3173b037eddbe9349abe978101277b4ba9f9959e25dedd44f87e7b85cc8f9f5
+patch_args=-Np0
 
 CFLAGS="-Wno-error"
 
diff --git a/srcpkgs/pvoc/template b/srcpkgs/pvoc/template
index da23784124aa..7d27e4d71084 100644
--- a/srcpkgs/pvoc/template
+++ b/srcpkgs/pvoc/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://quitte.de/dsp/pvoc.html"
 distfiles="http://quitte.de/dsp/pvoc_${version}.tar.gz"
 checksum=d519d416049143cb2c4775feae639021b5693f39e27e99b1f036392580baa32d
+patch_args=-Np0
 
 pre_build() {
 	sed -i "s@-O6.\+@${CFLAGS}@" Makefile
diff --git a/srcpkgs/pwnat/template b/srcpkgs/pwnat/template
index a1e9f92078dc..2fe12805a70a 100644
--- a/srcpkgs/pwnat/template
+++ b/srcpkgs/pwnat/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="http://samy.pl/pwnat/"
 distfiles="https://github.com/samyk/pwnat/archive/${_githash}.tar.gz"
 checksum=365da981ba1a39d7e3c8427fbcd9e7fcd3dd16cd30ae7e3b0aca50511fd8e1b1
+patch_args=-Np0
 
 do_configure() {
 	sed -i 's#sys/unistd.h#unistd.h#' $(find -name '*.[ch]')
diff --git a/srcpkgs/pygtk/template b/srcpkgs/pygtk/template
index 41554b81763a..ca12604df127 100644
--- a/srcpkgs/pygtk/template
+++ b/srcpkgs/pygtk/template
@@ -20,6 +20,7 @@ distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.bz2"
 checksum=cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5363e0f82c896e649f206912
 lib32disabled=yes
 python_version=2
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/pymol/template b/srcpkgs/pymol/template
index dfb9441f22a1..fe0fb1faa350 100644
--- a/srcpkgs/pymol/template
+++ b/srcpkgs/pymol/template
@@ -17,6 +17,7 @@ distfiles="https://github.com/schrodinger/pymol-open-source/archive/v${version}.
 checksum="5ede4ce2e8f53713c5ee64f5905b2d29bf01e4391da7e536ce8909d6b9116581
  0ea81faaf336becc669a193777d0dca55475d303d1236b57df25cf67ff7c2bcd"
 skip_extraction="${pkgname}.png"
+patch_args=-Np0
 
 export PREFIX_PATH="${XBPS_CROSS_BASE}/usr"
 # PREFIX_PATH isn't used for the py3 include path
diff --git a/srcpkgs/pyside2-tools/template b/srcpkgs/pyside2-tools/template
index 35d353aba95d..b7559676933a 100644
--- a/srcpkgs/pyside2-tools/template
+++ b/srcpkgs/pyside2-tools/template
@@ -17,6 +17,7 @@ homepage="https://wiki.qt.io/Qt_for_Python/Shiboken"
 distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
 checksum=b306504b0b8037079a8eab772ee774b9e877a2d84bab2dbefbe4fa6f83941418
 python_version=3
+patch_args=-Np0
 
 if [ ${CROSS_BUILD} ]; then
 	hostmakedepends+=" qt5-qmake qt5-host-tools"
diff --git a/srcpkgs/python-M2Crypto/template b/srcpkgs/python-M2Crypto/template
index 4c684d18f576..ac5752871e29 100644
--- a/srcpkgs/python-M2Crypto/template
+++ b/srcpkgs/python-M2Crypto/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://gitlab.com/m2crypto/m2crypto/"
 distfiles="${PYPI_SITE}/M/M2Crypto/M2Crypto-${version}.tar.gz"
 checksum=4c6ad45ffb88670c590233683074f2440d96aaccb05b831371869fc387cbd127
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENCE
diff --git a/srcpkgs/python-coverage/template b/srcpkgs/python-coverage/template
index 332e7baa3b7a..99b9a3c07ea3 100644
--- a/srcpkgs/python-coverage/template
+++ b/srcpkgs/python-coverage/template
@@ -14,6 +14,7 @@ homepage="https://bitbucket.org/ned/coveragepy"
 distfiles="${PYPI_SITE}/c/coverage/coverage-${version}.tar.gz"
 checksum=77afca04240c40450c331fa796b3eab6f1e15c5ecf8bf2b8bee9706cd5452fef
 alternatives="coverage:coverage:/usr/bin/coverage2"
+patch_args=-Np0
 
 python3-coverage_package() {
 	depends="python3-setuptools"
diff --git a/srcpkgs/python-docutils/template b/srcpkgs/python-docutils/template
index 02232f31a266..f2843fc47cf8 100644
--- a/srcpkgs/python-docutils/template
+++ b/srcpkgs/python-docutils/template
@@ -14,6 +14,7 @@ homepage="http://docutils.sourceforge.net"
 distfiles="${PYPI_SITE}/d/docutils/docutils-${version}.tar.gz"
 checksum=c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc
 checkdepends+="$depends python3-Pygments"
+patch_args=-Np0
 
 alternatives="
  docutils:rst2html:/usr/bin/rst2html.py2
diff --git a/srcpkgs/python-evdev/template b/srcpkgs/python-evdev/template
index ded33276800d..40b60c094724 100644
--- a/srcpkgs/python-evdev/template
+++ b/srcpkgs/python-evdev/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/gvalkov/python-evdev"
 distfiles="https://github.com/gvalkov/python-evdev/archive/v${version}.tar.gz"
 checksum=f788584510620251c6a6c68802935b71c4b474df99b87ee223e18b84dd1719a6
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python-nose/template b/srcpkgs/python-nose/template
index 95f3607a40aa..e0ee55d59fe8 100644
--- a/srcpkgs/python-nose/template
+++ b/srcpkgs/python-nose/template
@@ -15,6 +15,7 @@ homepage="https://github.com/nose-devs/nose"
 distfiles="${PYPI_SITE}/n/nose/nose-${version}.tar.gz"
 checksum=f1bffef9cbc82628f6e7d7b40d7e255aefaa1adb6a1b1d26c69a8b79e6208a98
 alternatives="nose:nosetests:/usr/bin/nosetests2"
+patch_args=-Np0
 
 python3-nose_package() {
 	pycompile_module="nose"
diff --git a/srcpkgs/python-pip/template b/srcpkgs/python-pip/template
index 096aa7b63b22..aca1c8836df7 100644
--- a/srcpkgs/python-pip/template
+++ b/srcpkgs/python-pip/template
@@ -13,6 +13,7 @@ homepage="https://pip.pypa.io/"
 changelog="https://raw.githubusercontent.com/pypa/pip/master/NEWS.rst"
 distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
 checksum=6773934e5f5fc3eaa8c5a44949b5b924fc122daa0a8aa9f80c835b4ca2a543fc
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/python-requests/template b/srcpkgs/python-requests/template
index bde0b03b9ef9..406e20f881ba 100644
--- a/srcpkgs/python-requests/template
+++ b/srcpkgs/python-requests/template
@@ -13,6 +13,7 @@ homepage="https://python-requests.org/"
 changelog="https://raw.githubusercontent.com/psf/requests/master/HISTORY.md"
 distfiles="${PYPI_SITE}/r/requests/requests-${version}.tar.gz"
 checksum=27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804
+patch_args=-Np0
 
 post_patch() {
 	vsed -i '/certifi/d' setup.py
diff --git a/srcpkgs/python/template b/srcpkgs/python/template
index fc52e87228ea..1412f66d4d62 100644
--- a/srcpkgs/python/template
+++ b/srcpkgs/python/template
@@ -17,6 +17,7 @@ license="Python-2.0"
 homepage="https://www.python.org"
 distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"
 checksum=b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43
+patch_args=-Np0
 
 alternatives="
  python:idle:/usr/bin/idle2.7
diff --git a/srcpkgs/python3-PyBrowserID/template b/srcpkgs/python3-PyBrowserID/template
index a8cdd9230d3c..f8b86f119e25 100644
--- a/srcpkgs/python3-PyBrowserID/template
+++ b/srcpkgs/python3-PyBrowserID/template
@@ -14,6 +14,7 @@ license="MPL-2.0"
 homepage="https://github.com/mozilla/PyBrowserID"
 distfiles="${PYPI_SITE}/P/PyBrowserID/PyBrowserID-${version}.tar.gz"
 checksum=6c227669e87cc25796ae76f6a0ef65025528c8ad82d352679fa9a3e5663a71e3
+patch_args=-Np0
 
 do_check() {
 	# needs network access (persona.org has been shut down anyway)
diff --git a/srcpkgs/python3-PyQt5/template b/srcpkgs/python3-PyQt5/template
index a704d41698bc..4b36464197e8 100644
--- a/srcpkgs/python3-PyQt5/template
+++ b/srcpkgs/python3-PyQt5/template
@@ -23,6 +23,7 @@ checksum=2a69597e0dd11caabe75fae133feca66387819fc9bc050f547e5551bce97e5be
 lib32disabled=yes
 CFLAGS=-I$XBPS_CROSS_BASE/usr/include/python$py3_ver
 CXXFLAGS="$CFLAGS"
+patch_args=-Np0
 
 export INCPATH=$XBPS_CROSS_BASE/usr/include/python$py3_ver
 
diff --git a/srcpkgs/python3-aiohttp/template b/srcpkgs/python3-aiohttp/template
index d8b4761c8b9b..65465ff7b6ad 100644
--- a/srcpkgs/python3-aiohttp/template
+++ b/srcpkgs/python3-aiohttp/template
@@ -14,6 +14,7 @@ license="Apache-2.0"
 homepage="https://aiohttp.readthedocs.io/"
 distfiles="${PYPI_SITE}/a/aiohttp/aiohttp-${version}.tar.gz"
 checksum=5d84ecc73141d0a0d61ece0742bb7ff5751b0657dab8405f899d3ceb104cc7de
+patch_args=-Np0
 
 post_patch() {
 	# use system http-parser
diff --git a/srcpkgs/python3-boltons/template b/srcpkgs/python3-boltons/template
index a4c71fb7713d..c08065036300 100644
--- a/srcpkgs/python3-boltons/template
+++ b/srcpkgs/python3-boltons/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/mahmoud/boltons"
 distfiles="https://github.com/mahmoud/boltons/archive/${version}.tar.gz"
 checksum=f5b63fba62bed021c5086e43b4cfdaf6c8396a3ae1ccdcb549b4eb2f36f8a794
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-cli_helpers/template b/srcpkgs/python3-cli_helpers/template
index 91e22d2471c2..ab7008da0cc9 100644
--- a/srcpkgs/python3-cli_helpers/template
+++ b/srcpkgs/python3-cli_helpers/template
@@ -15,6 +15,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/dbcli/cli_helpers"
 distfiles="${PYPI_SITE}/c/cli_helpers/cli_helpers-${version}.tar.gz"
 checksum=98db22eaa86827d99ee6af9f5f3923142d04df256425204530842b032849a165
+patch_args=-Np0
 
 do_check() {
 	python3 -m pytest
diff --git a/srcpkgs/python3-curtsies/template b/srcpkgs/python3-curtsies/template
index 0d03da5b9b3d..aa224291ddba 100644
--- a/srcpkgs/python3-curtsies/template
+++ b/srcpkgs/python3-curtsies/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/thomasballinger/curtsies"
 distfiles="${PYPI_SITE}/c/curtsies/curtsies-${version}.tar.gz"
 checksum=89c802ec051d01dec6fc983e9856a3706e4ea8265d2940b1f6d504a9e26ed3a9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-entrypoints/template b/srcpkgs/python3-entrypoints/template
index eb3318811dc6..89093839963c 100644
--- a/srcpkgs/python3-entrypoints/template
+++ b/srcpkgs/python3-entrypoints/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/takluyver/entrypoints"
 distfiles="https://github.com/takluyver/entrypoints/archive/${version}.tar.gz"
 checksum=f26eddc371e37d8e9f6663b77524d6731567f005bd1e4ac950c0e33c48fbc065
+patch_args=-Np0
 
 pre_build() {
 	vsed -i "s|@VERSION@|${version}|" setup.py
diff --git a/srcpkgs/python3-gevent/template b/srcpkgs/python3-gevent/template
index 4ec0c1ce42ea..e1ba65252141 100644
--- a/srcpkgs/python3-gevent/template
+++ b/srcpkgs/python3-gevent/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.gevent.org/"
 distfiles="https://github.com/gevent/gevent/archive/${version}.tar.gz"
 checksum=1fc6579fee04c0bc348cb1dcbc10f822129e6af7dcf2c52c24f1497cea3bd45c
+patch_args=-Np0
 
 post_extract() {
 	# purge bundled dependencies
diff --git a/srcpkgs/python3-gitchangelog/template b/srcpkgs/python3-gitchangelog/template
index 348dc2c83b6d..8c3a5cfb5aa9 100644
--- a/srcpkgs/python3-gitchangelog/template
+++ b/srcpkgs/python3-gitchangelog/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/vaab/gitchangelog"
 distfiles="${PYPI_SITE}/g/gitchangelog/gitchangelog-${version}.tar.gz"
 checksum=3d8d6a730450fbd5b0a9bc58d0dd3e269c967d7eb4fece0c5cff4372a3f77421
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-grpcio/template b/srcpkgs/python3-grpcio/template
index d96e11f9c149..654abdcfada3 100644
--- a/srcpkgs/python3-grpcio/template
+++ b/srcpkgs/python3-grpcio/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://grpc.io"
 distfiles="${PYPI_SITE}/g/grpcio/grpcio-${version}.tar.gz"
 checksum=abbf9c8c3df4d5233d5888c6cfa85c1bb68a6923749bd4dd1abc6e1e93986f17
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/python3-mygpoclient/template b/srcpkgs/python3-mygpoclient/template
index 6ed17293703c..5aa34ad58d15 100644
--- a/srcpkgs/python3-mygpoclient/template
+++ b/srcpkgs/python3-mygpoclient/template
@@ -13,6 +13,7 @@ homepage="https://github.com/gpodder/mygpoclient"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=65fcb3ab220a2ba2d32a77f969b423a2f663413b6c485b7b02e5a955b28e68d2
 conflicts="python-mygpoclient>=0"
+patch_args=-Np0
 
 pre_build() {
 	vsed -i '/share\/man\/man1/d' setup.py
diff --git a/srcpkgs/python3-nose2/template b/srcpkgs/python3-nose2/template
index d1f95c3e3736..ac13621690a6 100644
--- a/srcpkgs/python3-nose2/template
+++ b/srcpkgs/python3-nose2/template
@@ -13,6 +13,7 @@ homepage="https://github.com/nose-devs/nose2"
 distfiles="${PYPI_SITE}/n/nose2/nose2-${version}.tar.gz"
 checksum=9052f2b46807b63d9bdf68e0768da1f8386368889b50043fd5d0889c470258f3
 conflicts="python-nose2>=0"
+patch_args=-Np0
 
 post_install() {
 	vlicense license.txt
diff --git a/srcpkgs/python3-pdfminer.six/template b/srcpkgs/python3-pdfminer.six/template
index 753dbfb9b816..bb75c36e196b 100644
--- a/srcpkgs/python3-pdfminer.six/template
+++ b/srcpkgs/python3-pdfminer.six/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/pdfminer/pdfminer.six"
 distfiles="${homepage}/archive/refs/tags/${version}.tar.gz"
 checksum=0e9c8b0a9c40c2aee044c3091ad6b18b5e6279722e64b6b975f8aedc26bf8e38
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-pikepdf/template b/srcpkgs/python3-pikepdf/template
index c2ff79e138fa..21329296c6cd 100644
--- a/srcpkgs/python3-pikepdf/template
+++ b/srcpkgs/python3-pikepdf/template
@@ -14,6 +14,7 @@ license="MPL-2.0"
 homepage="https://github.com/pikepdf/pikepdf"
 distfiles="${PYPI_SITE}/p/pikepdf/pikepdf-${version}.tar.gz"
 checksum=5ff35499b1ae7b181277f78ce5b1bcc8d3009182bb389917791c5dc811fcc8e4
+patch_args=-Np0
 
 pre_build() {
 	vsed -e '/setuptools_scm_git_archive/d' -i setup.py
diff --git a/srcpkgs/python3-pip/template b/srcpkgs/python3-pip/template
index 4dbc22b73b49..b30bc6334120 100644
--- a/srcpkgs/python3-pip/template
+++ b/srcpkgs/python3-pip/template
@@ -15,6 +15,7 @@ distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
 checksum=eb5df6b9ab0af50fe1098a52fd439b04730b6e066887ff7497357b9ebd19f79b
 # Tests have unpackaged dependencies
 make_check=no
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/python3-pwntools/template b/srcpkgs/python3-pwntools/template
index 76ec9944221e..753c28f1c68d 100644
--- a/srcpkgs/python3-pwntools/template
+++ b/srcpkgs/python3-pwntools/template
@@ -17,6 +17,7 @@ license="MIT, BSD-2-Clause"
 homepage="https://github.com/Gallopsled/pwntools"
 distfiles="${PYPI_SITE}/p/pwntools/pwntools-${version}.tar.gz"
 checksum=97f945aed7ffa9d3e87f8759df83a5eac6dc2112907f35d0aee66a9bf62fd8eb
+patch_args=-Np0
 
 post_install() {
 	rm -f ${DESTDIR}/usr/lib/python*/site-packages/*.md
diff --git a/srcpkgs/python3-pylibgen/template b/srcpkgs/python3-pylibgen/template
index 4d77619ae935..d59a68eca8ae 100644
--- a/srcpkgs/python3-pylibgen/template
+++ b/srcpkgs/python3-pylibgen/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/JoshuaRLi/pylibgen"
 distfiles="${PYPI_SITE}/p/pylibgen/pylibgen-${version}.tar.gz"
 checksum=87b28a27fa7c1912e2b38020262dd6086b292d670b0c08d76baecbcd7678b9ee
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-pyside2/template b/srcpkgs/python3-pyside2/template
index 6040ef39243c..c0387c4d6d04 100644
--- a/srcpkgs/python3-pyside2/template
+++ b/srcpkgs/python3-pyside2/template
@@ -25,6 +25,7 @@ license="LGPL-3.0-or-later"
 homepage="https://wiki.qt.io/Qt_for_Python"
 distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
 checksum=b306504b0b8037079a8eab772ee774b9e877a2d84bab2dbefbe4fa6f83941418
+patch_args=-Np0
 
 build_options="webengine"
 desc_option_webengine="Build Qt5 WebEngine bindings"
diff --git a/srcpkgs/python3-repoze.sphinx.autointerface/template b/srcpkgs/python3-repoze.sphinx.autointerface/template
index 18141a5bd46a..9feb6d5a2739 100644
--- a/srcpkgs/python3-repoze.sphinx.autointerface/template
+++ b/srcpkgs/python3-repoze.sphinx.autointerface/template
@@ -13,6 +13,7 @@ license="BSD-4-Clause"
 homepage="https://github.com/repoze/repoze.sphinx.autointerface/"
 distfiles="${PYPI_SITE}/r/repoze.sphinx.autointerface/repoze.sphinx.autointerface-${version}.tar.gz"
 checksum=8ef0383276ab722efb1e4a6523726262058dfd82615ccf7e5004aee3fe8ecc23
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/python3-telegram/template b/srcpkgs/python3-telegram/template
index 13cc66ab33c7..a865f4799086 100644
--- a/srcpkgs/python3-telegram/template
+++ b/srcpkgs/python3-telegram/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/alexander-akhmetov/python-telegram"
 distfiles="https://github.com/alexander-akhmetov/python-telegram/archive/${version}.tar.gz"
 checksum=11b0a2387bae642eb7f134fe35b9ef67b8183aa961412bcdfa86ff404beed897
+patch_args=-Np0
 
 post_extract() {
 	rm -r telegram/lib
diff --git a/srcpkgs/python3/template b/srcpkgs/python3/template
index 40c6cc1ef8e5..6bcb10bfc66d 100644
--- a/srcpkgs/python3/template
+++ b/srcpkgs/python3/template
@@ -18,6 +18,7 @@ license="Python-2.0"
 homepage="https://www.python.org"
 distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"
 checksum=0c5a140665436ec3dbfbb79e2dfb6d192655f26ef4a29aeffcb6d1820d716d83
+patch_args=-Np0
 
 alternatives="
  python:idle:/usr/bin/idle${version%.*}
diff --git a/srcpkgs/qca-qt5/template b/srcpkgs/qca-qt5/template
index 9e1cd59b8395..a9effca5f71d 100644
--- a/srcpkgs/qca-qt5/template
+++ b/srcpkgs/qca-qt5/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="https://userbase.kde.org/QCA"
 distfiles="${KDE_SITE}/qca/${version}/qca-${version}.tar.xz"
 checksum=c13851109abefc4623370989fae3a745bf6b1acb3c2a13a8958539823e974e4b
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/qdirstat/template b/srcpkgs/qdirstat/template
index efed1890b409..05e775e52c3a 100644
--- a/srcpkgs/qdirstat/template
+++ b/srcpkgs/qdirstat/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/shundhammer/qdirstat"
 distfiles="https://github.com/shundhammer/qdirstat/archive/${version}.tar.gz"
 checksum=fb40181972092d80994d3d04802c43298b70a21f1e636d5490a2bfbd1cb407d9
+patch_args=-Np0
 
 post_install() {
 	vman man/qdirstat.1
diff --git a/srcpkgs/qingy/template b/srcpkgs/qingy/template
index 02c89bd1ccae..207775603de2 100644
--- a/srcpkgs/qingy/template
+++ b/srcpkgs/qingy/template
@@ -15,6 +15,7 @@ homepage="http://qingy.sourceforge.net"
 #distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 distfiles="https://sources.voidlinux.org/qingy-1.0.0/qingy-1.0.0.tar.bz2"
 checksum=de4b4b398d5ba81ab2544729864676a04ddc6ae818b357ee09a8770293740cd3
+patch_args=-Np0
 
 make_dirs="/var/lib/misc 0755 root root"
 
diff --git a/srcpkgs/qmmp/template b/srcpkgs/qmmp/template
index d8b8ec1d0d7a..c27e8e39090b 100644
--- a/srcpkgs/qmmp/template
+++ b/srcpkgs/qmmp/template
@@ -21,6 +21,7 @@ license="GPL-3.0-or-later"
 homepage="http://qmmp.ylsoftware.com"
 distfiles="http://qmmp.ylsoftware.com/files/${pkgname}-${version}.tar.bz2"
 checksum=f513774357836ad4983fa216c84cf5db634284faebec48c461733838917fd664
+patch_args=-Np0
 
 qmmp-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/qpdfview/template b/srcpkgs/qpdfview/template
index 19cb2bb34ad9..4aa5122a1934 100644
--- a/srcpkgs/qpdfview/template
+++ b/srcpkgs/qpdfview/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://launchpad.net/qpdfview"
 distfiles="https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-${version}.tar.gz"
 checksum=cc642e7fa74029373ca9b9fbc29adc4883f8b455130a78ad54746d6844a0396c
+patch_args=-Np0
 
 pre_configure() {
 	lrelease qpdfview.pro
diff --git a/srcpkgs/qscintilla-qt5/template b/srcpkgs/qscintilla-qt5/template
index 5bc6c8530757..1d68d8f70320 100644
--- a/srcpkgs/qscintilla-qt5/template
+++ b/srcpkgs/qscintilla-qt5/template
@@ -13,6 +13,7 @@ license="GPL-3.0-only"
 homepage="https://www.riverbankcomputing.com/software/qscintilla/intro"
 distfiles="https://www.riverbankcomputing.com/static/Downloads/QScintilla/${version}/QScintilla_gpl-${version}.tar.gz"
 checksum=029bdc476a069fda2cea3cd937ba19cc7fa614fb90578caef98ed703b658f4a1
+patch_args=-Np0
 
 qscintilla-qt5-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/qsstv/template b/srcpkgs/qsstv/template
index 73c1080fcadc..8230401d9197 100644
--- a/srcpkgs/qsstv/template
+++ b/srcpkgs/qsstv/template
@@ -14,6 +14,7 @@ homepage="http://users.telenet.be/on4qz/qsstv/"
 changelog="http://users.telenet.be/on4qz/qsstv/manual/changelog.html"
 distfiles="http://users.telenet.be/on4qz/qsstv/downloads/qsstv_${version}.tar.gz"
 checksum=177e286090c71f8a033646b39c3b6abe212cc06718c1ecc9ddc7024198cb7e40
+patch_args=-Np0
 
 post_install() {
 	vinstall icons/qsstv.png 644 usr/share/pixmaps
diff --git a/srcpkgs/qt5-fsarchiver/template b/srcpkgs/qt5-fsarchiver/template
index 46c87a9e7bdd..4eea7d4c7ec8 100644
--- a/srcpkgs/qt5-fsarchiver/template
+++ b/srcpkgs/qt5-fsarchiver/template
@@ -15,6 +15,7 @@ license="GPL-2.0-only"
 homepage="https://sourceforge.net/projects/qt4-fsarchiver"
 distfiles="${SOURCEFORGE_SITE}/qt4-fsarchiver/${pkgname}-${_realversion}.tar.gz"
 checksum=b32e02c9e1fc8038482752f5620d88b103b700ed29314bd55dcf6486f5c6f175
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/qt5-styleplugins/template b/srcpkgs/qt5-styleplugins/template
index 4399c87d86cd..33c7271cd772 100644
--- a/srcpkgs/qt5-styleplugins/template
+++ b/srcpkgs/qt5-styleplugins/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only, LGPL-3.0-only"
 homepage="https://github.com/qt/qtstyleplugins"
 distfiles="https://github.com/qt/qtstyleplugins/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=29ec24fa8df64be161ad06d0e5af3ba1a20bfe265004f5fe4ab9f5f3abf9a5ba
+patch_args=-Np0
 
 # Cross builds fail with -fuse-ld=gold
 LDFLAGS="-Wl,-fuse-ld=bfd"
diff --git a/srcpkgs/qt5-webkit/template b/srcpkgs/qt5-webkit/template
index b2e7813cc45e..353a7e6609be 100644
--- a/srcpkgs/qt5-webkit/template
+++ b/srcpkgs/qt5-webkit/template
@@ -25,6 +25,7 @@ license="LGPL-2.1-or-later"
 homepage="https://www.qt.io/"
 distfiles="https://download.qt.io/snapshots/ci/qtwebkit/${_v}/${_snap}/src/submodules/qtwebkit-opensource-src-${_v}.tar.xz"
 checksum=9a6ed083154c7ec850081102b299afa928ca7e48bbdf2b5f3ae152425e46eb17
+patch_args=-Np0
 
 CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
 CXXFLAGS="-fpermissive -Wno-class-memaccess -Wno-redundant-move -Wno-deprecated-copy"
diff --git a/srcpkgs/qt5/template b/srcpkgs/qt5/template
index a88df53ca345..1e05f7e7ff60 100644
--- a/srcpkgs/qt5/template
+++ b/srcpkgs/qt5/template
@@ -32,6 +32,7 @@ python_version=2 #unverified
 replaces="qt5-doc<5.6.0 qt5-quick1<5.6.0 qt5-quick1-devel<5.6.0 qt5-webkit<5.6.0 qt5-webkit-devel<5.6.0
  qt5-enginio<5.7.1 qt5-enginio-devel<5.7.1 qt5-plugin-gtk<5.7.1 qt5-canvas3d<5.13.0"
 lib32mode=full
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated-declarations -Wno-class-memaccess -Wno-packed-not-aligned"
 # Required for musl libc
diff --git a/srcpkgs/qt5pas/template b/srcpkgs/qt5pas/template
index 93113c717035..56747994f4a3 100644
--- a/srcpkgs/qt5pas/template
+++ b/srcpkgs/qt5pas/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-or-later"
 homepage="https://svn.freepascal.org/svn/lazarus/trunk/lcl/interfaces/qt5/cbindings"
 distfiles="${DEBIAN_SITE}/main/libq/libqtpas/libqtpas_${version}.orig.tar.xz"
 checksum=fcc5f695d60d5f72bf501b2fa779e8a1a2636c8d991270b5b3fef3d0e990365c
+patch_args=-Np0
 
 post_install() {
 	vinstall qt5.pas 0644 usr/share/pascal/qt5
diff --git a/srcpkgs/qt6-base/template b/srcpkgs/qt6-base/template
index bb043213a360..a78f77930893 100644
--- a/srcpkgs/qt6-base/template
+++ b/srcpkgs/qt6-base/template
@@ -30,6 +30,7 @@ homepage="https://www.qt.io"
 distfiles="https://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qtbase-everywhere-src-${version}.tar.xz"
 checksum=21a8aa9f07170e047270c668c8b037536f40226db7adbc529a0b41c3a3cb3ff2
 python_version=3
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# QtSetup fails native builds if this is set
diff --git a/srcpkgs/qtav/template b/srcpkgs/qtav/template
index 0d85ec076482..b59c58a6f191 100644
--- a/srcpkgs/qtav/template
+++ b/srcpkgs/qtav/template
@@ -17,6 +17,7 @@ homepage="http://www.qtav.org"
 changelog="https://raw.githubusercontent.com/wang-bin/QtAV/master/Changelog"
 distfiles="https://github.com/wang-bin/QtAV/archive/v${version}.tar.gz"
 checksum=a493d54d105b32c526f05188e4d7a8cf3508ecac697aae088721ffad20982288
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/bin
diff --git a/srcpkgs/qtcreator/template b/srcpkgs/qtcreator/template
index e46558070581..0439190aee41 100644
--- a/srcpkgs/qtcreator/template
+++ b/srcpkgs/qtcreator/template
@@ -19,6 +19,7 @@ distfiles="https://download.qt.io/official_releases/qtcreator/${version%.*}/${ve
 checksum=5ca9457987e7af0af929c310cc995496388076b6a0b9c429828c60bf0eec1b4d
 replaces="qtcreator-data>=0"
 python_version=3
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" libexecinfo-devel"
diff --git a/srcpkgs/qtikz/template b/srcpkgs/qtikz/template
index 5ec999d3aae5..53aab78b8713 100644
--- a/srcpkgs/qtikz/template
+++ b/srcpkgs/qtikz/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.hackenberger.at/blog/ktikz-editor-for-the-tikz-language/"
 distfiles="https://github.com/fhackenberger/ktikz/archive/${version}.tar.gz"
 checksum=03f6ee335ca1abb23216870a6df71406ab44a4899875d4695b8594cfb789a127
+patch_args=-Np0
 
 post_patch() {
 	vsed -e '/include.*QPainter/a #include <QtGui/QPainterPath>' \
diff --git a/srcpkgs/qtkeychain-qt5/template b/srcpkgs/qtkeychain-qt5/template
index 4e4c982850a1..8b32a4cb72f8 100644
--- a/srcpkgs/qtkeychain-qt5/template
+++ b/srcpkgs/qtkeychain-qt5/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/frankosterfeld/qtkeychain"
 distfiles="https://github.com/frankosterfeld/${pkgname%-*}/archive/v${version}.tar.gz"
 checksum=77fc6841c1743d9e6bd499989481cd9239c21bc9bf0760d41a4f4068d2f0a49d
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-tools-devel"
diff --git a/srcpkgs/qtpass/template b/srcpkgs/qtpass/template
index cce56db19867..728711eeeef5 100644
--- a/srcpkgs/qtpass/template
+++ b/srcpkgs/qtpass/template
@@ -14,6 +14,7 @@ homepage="https://qtpass.org/"
 changelog="https://raw.githubusercontent.com/IJHack/QtPass/master/CHANGELOG.md"
 distfiles="https://github.com/IJHack/${pkgname}/archive/v${version}.tar.gz"
 checksum=7a68e1afe68462c878c212a79c40ade5ba14b72710c5e62450cf54c7b5621254
+patch_args=-Np0
 
 do_install() {
 	vbin main/qtpass
diff --git a/srcpkgs/quassel/template b/srcpkgs/quassel/template
index 47d529f56b8b..dae691d27457 100644
--- a/srcpkgs/quassel/template
+++ b/srcpkgs/quassel/template
@@ -18,6 +18,7 @@ license="GPL-2.0-only, GPL-3.0-only"
 homepage="https://www.quassel-irc.org"
 distfiles="https://quassel-irc.org/pub/quassel-${version}.tar.bz2"
 checksum=48efee9778743b1db9f44efb91d1c913104db01190c57f2ff57483c39a97e855
+patch_args=-Np0
 
 build_options="ldap"
 
diff --git a/srcpkgs/quickjs/template b/srcpkgs/quickjs/template
index a1c9f8d1c36a..42de1ba7fd9c 100644
--- a/srcpkgs/quickjs/template
+++ b/srcpkgs/quickjs/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://bellard.org/quickjs/"
 distfiles="https://bellard.org/quickjs/quickjs-${version//./-}.tar.xz"
 checksum=a45bface4c3379538dea8533878d694e289330488ea7028b105f72572fe7fe1a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args+=" CROSS_PREFIX=${XBPS_CROSS_TRIPLET}-"
diff --git a/srcpkgs/quota/template b/srcpkgs/quota/template
index 2751287061fd..9d103e08c4b3 100644
--- a/srcpkgs/quota/template
+++ b/srcpkgs/quota/template
@@ -13,6 +13,7 @@ license="GPL-2"
 homepage="https://sourceforge.net/projects/linuxquota/"
 distfiles="${SOURCEFORGE_SITE}/linuxquota/quota-tools/${pkgname}-${version}.tar.gz"
 checksum=2f3e03039f378d4f0d97acdb49daf581dcaad64d2e1ddf129495fd579fbd268d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/qv4l2/template b/srcpkgs/qv4l2/template
index 292be169c208..585527fe4716 100644
--- a/srcpkgs/qv4l2/template
+++ b/srcpkgs/qv4l2/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://linuxtv.org/"
 distfiles="https://linuxtv.org/downloads/v4l-utils/v4l-utils-${version}.tar.bz2"
 checksum=6cb60d822eeed20486a03cc23e0fc65956fbc1e85e0c1a7477f68bbd9802880d
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/rabbitmq-c/template b/srcpkgs/rabbitmq-c/template
index 95ad7a333435..ea3f0aaa3f5a 100644
--- a/srcpkgs/rabbitmq-c/template
+++ b/srcpkgs/rabbitmq-c/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/alanxz/rabbitmq-c"
 distfiles="https://github.com/alanxz/${pkgname}/archive/v${version}.tar.gz"
 checksum=6455efbaebad8891c59f274a852b75b5cc51f4d669dfc78d2ae7e6cc97fcd8c0
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE-MIT LICENSE
diff --git a/srcpkgs/racket/template b/srcpkgs/racket/template
index 1fee0a65e39d..0e0a4335986b 100644
--- a/srcpkgs/racket/template
+++ b/srcpkgs/racket/template
@@ -16,6 +16,7 @@ distfiles="http://mirror.racket-lang.org/installers/${version}/${pkgname}-${vers
 checksum=5578942066a9405fdbcad9522d08685356693f4ddd5dbe92b5273557a112b73e
 nostrip=yes
 nocross=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --enable-racket=/usr/bin/racket"
diff --git a/srcpkgs/radare2/template b/srcpkgs/radare2/template
index 39818e99e7f2..fc79ad2b3c12 100644
--- a/srcpkgs/radare2/template
+++ b/srcpkgs/radare2/template
@@ -13,6 +13,7 @@ license="LGPL-3.0-only"
 homepage="http://www.radare.org"
 distfiles="https://github.com/radareorg/radare2/archive/${version}.tar.gz"
 checksum=517dd80ebd0569f31498887338eacb92e8cf054bc4625eef8ffe9ea174c1adae
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) CFLAGS="-Os";;
diff --git a/srcpkgs/rakarrack/template b/srcpkgs/rakarrack/template
index 0d4dcc83496c..9c94f004ff2c 100644
--- a/srcpkgs/rakarrack/template
+++ b/srcpkgs/rakarrack/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://rakarrack.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=7696d27a4814b140fe651d137612ddfa1f167858eccc119e278c14dbee30eee6
+patch_args=-Np0
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/rapidjson/template b/srcpkgs/rapidjson/template
index 99d92702cc9d..2591e261b370 100644
--- a/srcpkgs/rapidjson/template
+++ b/srcpkgs/rapidjson/template
@@ -9,6 +9,7 @@ license="BSD-3-Clause, MIT"
 homepage="https://github.com/miloyip/rapidjson"
 distfiles="https://github.com/miloyip/${pkgname}/archive/v${version}.tar.gz"
 checksum=bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e
+patch_args=-Np0
 
 # class-memaccess is required by https://github.com/Tencent/rapidjson/issues/1700
 CXXFLAGS="-Wno-type-limits -Wno-error=class-memaccess -DNDEBUG"
diff --git a/srcpkgs/raptor/template b/srcpkgs/raptor/template
index 5408f6b745fb..7f0b9ad13f81 100644
--- a/srcpkgs/raptor/template
+++ b/srcpkgs/raptor/template
@@ -13,6 +13,7 @@ license="LGPL-2.1"
 homepage="http://librdf.org/raptor"
 distfiles="http://librdf.org/dist/source/raptor2-${version}.tar.gz"
 checksum=ada7f0ba54787b33485d090d3d2680533520cd4426d2f7fb4782dd4a6a1480ed
+patch_args=-Np0
 
 libraptor_package() {
 	short_desc+=" - Runtime libraries"
diff --git a/srcpkgs/rdedup/template b/srcpkgs/rdedup/template
index c392e3c0e2fc..f7b9d6760a01 100644
--- a/srcpkgs/rdedup/template
+++ b/srcpkgs/rdedup/template
@@ -12,6 +12,7 @@ license="MPL-2.0"
 homepage="https://github.com/dpc/rdedup"
 distfiles="https://github.com/dpc/rdedup/archive/rdedup-v${version}.tar.gz"
 checksum=5e7c09c40897cd2f2635e8c213c2ff0f5c4d7ceccbd22980cd4cb0a16f3dfc28
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	export HOST_CC="$BUILD_CC"
diff --git a/srcpkgs/rdis-git/template b/srcpkgs/rdis-git/template
index 5aaa5d669b7a..4d754dd49627 100644
--- a/srcpkgs/rdis-git/template
+++ b/srcpkgs/rdis-git/template
@@ -8,6 +8,7 @@ short_desc="A binary analysis tool for Linux"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3"
 homepage="https://github.com/endeav0r/rdis"
+patch_args=-Np0
 
 do_fetch() {
 	git clone git://github.com/endeav0r/rdis.git $wrksrc
diff --git a/srcpkgs/re/template b/srcpkgs/re/template
index 726ba0360748..a1dd9a76a8f4 100644
--- a/srcpkgs/re/template
+++ b/srcpkgs/re/template
@@ -16,6 +16,7 @@ homepage="https://github.com/baresip/re/"
 distfiles="https://github.com/baresip/re/archive/v${version}.tar.gz"
 checksum=43aa439b96aff75fe5768b9f9d49dea97042e42e7647df47b345465763e2f7ed
 shlib_provides="libre.so"
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	i686*) arch="i686";;
diff --git a/srcpkgs/redis/template b/srcpkgs/redis/template
index 974305ff1f0f..27d4568d1a79 100644
--- a/srcpkgs/redis/template
+++ b/srcpkgs/redis/template
@@ -11,6 +11,7 @@ homepage="https://redis.io"
 changelog="https://raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTES"
 distfiles="http://download.redis.io/releases/${pkgname}-${version}.tar.gz"
 checksum=dc2bdcf81c620e9f09cfd12e85d3bc631c897b2db7a55218fd8a65eaa37f86dd
+patch_args=-Np0
 
 system_accounts="redis"
 redis_homedir="/var/lib/redis"
diff --git a/srcpkgs/redo/template b/srcpkgs/redo/template
index b8af94ccc102..e3e8315d91f6 100644
--- a/srcpkgs/redo/template
+++ b/srcpkgs/redo/template
@@ -10,6 +10,7 @@ license="ISC"
 homepage="http://jdebp.info/Softwares/redo/"
 distfiles="http://jdebp.info/Repository/freebsd/redo-${version}.tar.gz"
 checksum=5ff21779993418cf16f5632c593e30d9a2780bfc38cef9de9ab9427154736d36
+patch_args=-Np0
 
 do_configure() {
 	./package/prepare
diff --git a/srcpkgs/refind/template b/srcpkgs/refind/template
index 49d462907523..7115017b0881 100644
--- a/srcpkgs/refind/template
+++ b/srcpkgs/refind/template
@@ -13,6 +13,7 @@ distfiles="${SOURCEFORGE_SITE}/refind/refind-src-${version}.tar.gz"
 checksum=dd58944854a42df5a2a943f15e5dcfd995808f28580df96ad39d68fb1e48c970
 python_version=2
 conf_files="/etc/default/refind-kernel-hook.conf"
+patch_args=-Np0
 
 post_extract() {
 	vsed -e 's|RefindDir=\"\$ThisDir/refind\"|RefindDir="/usr/share/refind"|g' \
diff --git a/srcpkgs/reiserfsprogs/template b/srcpkgs/reiserfsprogs/template
index d98433876b42..9350966ac543 100644
--- a/srcpkgs/reiserfsprogs/template
+++ b/srcpkgs/reiserfsprogs/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/"
 distfiles="${KERNEL_SITE}/kernel/people/jeffm/${pkgname}/v${version}/${pkgname}-${version}.tar.xz"
 checksum=0e95b67fa7746a3c2d59145e9b9c2feb4a6be52853e83b497b182eae508e62e3
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)
diff --git a/srcpkgs/renderdoc/template b/srcpkgs/renderdoc/template
index 4615d45c52c9..6fe21f63ea27 100644
--- a/srcpkgs/renderdoc/template
+++ b/srcpkgs/renderdoc/template
@@ -16,6 +16,7 @@ license="MIT"
 homepage="https://github.com/baldurk/renderdoc"
 distfiles="https://github.com/baldurk/${pkgname}/archive/v${version}.tar.gz"
 checksum=4dece1b4cb859a76533b28fcd50e17321acfaa81c3435500a006c4a5ba15fddb
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" libexecinfo-devel"
diff --git a/srcpkgs/residualvm/template b/srcpkgs/residualvm/template
index b0abb4052a9c..621b40a27528 100644
--- a/srcpkgs/residualvm/template
+++ b/srcpkgs/residualvm/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later, BSD-3-Clause, IS
 homepage="https://www.residualvm.org/"
 distfiles="https://www.residualvm.org/downloads/release/${version}/residualvm-${version}-sources.tar.bz2"
 checksum=f50c83bbc55a8121eefc279e83982b6ec590e608e145b7f750006619dd0bf9e9
+patch_args=-Np0
 
 build_options="sndio"
 build_options_default="sndio"
diff --git a/srcpkgs/resvg/template b/srcpkgs/resvg/template
index c48e52ae2f2e..5befcd0e4c3b 100644
--- a/srcpkgs/resvg/template
+++ b/srcpkgs/resvg/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="https://github.com/RazrFalcon/resvg"
 distfiles="https://github.com/RazrFalcon/resvg/releases/download/v${version}/resvg-${version}.tar.xz"
 checksum=7206f79f67b4c8610353134c375ed3ff9c5eb63b16fae267b94730c23ebe4ee1
+patch_args=-Np0
 
 do_build() {
 	for dir in capi tools/{render,u}svg; do
diff --git a/srcpkgs/retroshare/template b/srcpkgs/retroshare/template
index e65594a4b16e..3c0685fc053e 100644
--- a/srcpkgs/retroshare/template
+++ b/srcpkgs/retroshare/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later, AGPL-3.0-or-later"
 homepage="https://retroshare.cc"
 distfiles="https://github.com/RetroShare/RetroShare/archive/v${version}.tar.gz"
 checksum=901a1d1f282e04118fbe0e24190355b4a8f355a806cc5448738b1d691b46f5d5
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/rhythmbox/template b/srcpkgs/rhythmbox/template
index 1d229ee9428c..eb666718af6c 100644
--- a/srcpkgs/rhythmbox/template
+++ b/srcpkgs/rhythmbox/template
@@ -22,6 +22,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.rhythmbox.org"
 distfiles="${GNOME_SITE}/${pkgname}/${version::3}/${pkgname}-${version}.tar.xz"
 checksum=ee0eb0d7d7bdf696ac9471b19ff3bea3240d63b6cb8a134bf632054af8665d90
+patch_args=-Np0
 
 python_version=3
 pycompile_dirs="/usr/lib/rhythmbox/plugins /usr/lib/rhythmbox/sample-plugins"
diff --git a/srcpkgs/rinse/template b/srcpkgs/rinse/template
index 27d6d0acd2fb..54d42aaa68c0 100644
--- a/srcpkgs/rinse/template
+++ b/srcpkgs/rinse/template
@@ -15,6 +15,7 @@ homepage="https://salsa.debian.org/debian/rinse"
 changelog="https://salsa.debian.org/debian/rinse/raw/master/debian/changelog"
 distfiles="https://salsa.debian.org/debian/rinse/-/archive/${version}/rinse-${version}.tar.gz"
 checksum=ebe2384f2aa4565c5f29882b177f7afd4c7cdbca9de9525618c6040e63a76d23
+patch_args=-Np0
 
 
 conf_files="/etc/rinse/rinse.conf"
diff --git a/srcpkgs/rix/template b/srcpkgs/rix/template
index 23d16e5e2da2..9c1f78cbbe05 100644
--- a/srcpkgs/rix/template
+++ b/srcpkgs/rix/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="https://github.com/riolet/rix"
 distfiles="https://github.com/riolet/rix/archive/v${version}.tar.gz"
 checksum=8727fee17cbbecec3ca8083fac80db3a2ed234c8128ec8df5cc56293e1dbb09c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/rmilter/template b/srcpkgs/rmilter/template
index 0c2e00b5169d..cf0ebd53e35b 100644
--- a/srcpkgs/rmilter/template
+++ b/srcpkgs/rmilter/template
@@ -17,6 +17,7 @@ checksum=ea80563fa7636afed0b5fd9a29aa2300f15793ed85788e4ce69c187d341a7d54
 system_accounts="rmilter"
 rmilter_pgroup="_rmilter"
 rmilter_homedir="/var/lib/rmilter"
+patch_args=-Np0
 
 post_install() {
 	vdoc rmilter.conf.sample
diff --git a/srcpkgs/rmlint/template b/srcpkgs/rmlint/template
index 52b0a13cfad5..5cd23e3659e0 100644
--- a/srcpkgs/rmlint/template
+++ b/srcpkgs/rmlint/template
@@ -12,6 +12,7 @@ homepage="http://rmlint.rtfd.org/"
 changelog="https://raw.githubusercontent.com/sahib/rmlint/master/CHANGELOG.md"
 distfiles="https://github.com/sahib/${pkgname}/archive/v${version}.tar.gz"
 checksum=10e72ba4dd9672d1b6519c0c94eae647c5069c7d11f1409a46e7011dd0c6b883
+patch_args=-Np0
 
 do_install() {
 	scons install --prefix=${DESTDIR}/usr
diff --git a/srcpkgs/rpcbind/template b/srcpkgs/rpcbind/template
index 2909a0827fb8..48adb776b709 100644
--- a/srcpkgs/rpcbind/template
+++ b/srcpkgs/rpcbind/template
@@ -14,6 +14,7 @@ homepage="https://rpcbind.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=5613746489cae5ae23a443bb85c05a11741a5f12c8f55d2bb5e83b9defeee8de
 system_accounts="rpc"
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/rpi-imager/template b/srcpkgs/rpi-imager/template
index e48f0312e162..133b762f6e8d 100644
--- a/srcpkgs/rpi-imager/template
+++ b/srcpkgs/rpi-imager/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://github.com/raspberrypi/rpi-imager"
 distfiles="https://github.com/raspberrypi/rpi-imager/archive/${version}.tar.gz"
 checksum="166d4926ab5a21f9a83096eff67a9a72f1a7f55702a36cb448cccf5f3b075509"
+patch_args=-Np0
 
 pre_configure() {
 	ln -sf /bin/true $XBPS_WRAPPERDIR/lsblk
diff --git a/srcpkgs/rpm/template b/srcpkgs/rpm/template
index 9f6f522b9a3b..dc4101698780 100644
--- a/srcpkgs/rpm/template
+++ b/srcpkgs/rpm/template
@@ -18,6 +18,7 @@ distfiles="http://ftp.rpm.org/releases/rpm-4.16.x/rpm-${version}.tar.bz2"
 checksum=513dc7f972b6e7ccfc9fc7f9c01d5310cc56ee853892e4314fa2cad71478e21d
 python_version=3
 conflicts="rpmextract>=0" # Both provide rpm2cpio
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
 CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/nss"
diff --git a/srcpkgs/rspamd/template b/srcpkgs/rspamd/template
index 7398b753622e..dca49ec662f1 100644
--- a/srcpkgs/rspamd/template
+++ b/srcpkgs/rspamd/template
@@ -19,6 +19,7 @@ checksum=e4720c1f45defd07dd17b9563d0ddc480c70beadbc1a833235c077960092e030
 system_accounts="rspamd"
 rspamd_homedir=/var/lib/rspamd
 conf_files="/etc/rspamd/*.conf /etc/rspamd/*.inc /etc/rspamd/modules.d/*.conf"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	aarch64*|arm*) configure_args+=" -DHAS_C11_ATOMICS_EXITCODE=0
diff --git a/srcpkgs/rsstail/template b/srcpkgs/rsstail/template
index 40a3d84ed70b..1cfc4cdff308 100644
--- a/srcpkgs/rsstail/template
+++ b/srcpkgs/rsstail/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://www.vanheusden.com/rsstail/"
 distfiles="http://www.vanheusden.com/${pkgname}/${pkgname}-${version}.tgz"
 checksum=42cb452178b21c15c470bafbe5b8b5339a7fb5b980bf8d93d36af89864776e71
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/bin
diff --git a/srcpkgs/rstudio/template b/srcpkgs/rstudio/template
index 904bec8ca964..c8c5627d9b00 100644
--- a/srcpkgs/rstudio/template
+++ b/srcpkgs/rstudio/template
@@ -29,6 +29,7 @@ checksum="af8dc5e71ee934043856938af2e2065d1f1efef08aba37962ed03f6ccb8201bb
  0b7af89fdadb4ec51cdb400ace94637d6fe9ffa401b168e2c3d372392a00a0a7"
 skip_extraction="core-dictionaries.zip
  gwt-${_gwt_version}.zip"
+patch_args=-Np0
 
 LDFLAGS="-Wl,-z,stack-size=2097152"
 
diff --git a/srcpkgs/rsyslog/template b/srcpkgs/rsyslog/template
index 33c55076e9be..8c5b041d218c 100644
--- a/srcpkgs/rsyslog/template
+++ b/srcpkgs/rsyslog/template
@@ -23,6 +23,7 @@ conf_files="/etc/rsyslog.conf"
 make_dirs="/etc/rsyslog.d 0755 root root"
 lib32disabled=yes
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/rtl8812au-dkms/template b/srcpkgs/rtl8812au-dkms/template
index 0dedc560b81a..062aa1bebe2e 100644
--- a/srcpkgs/rtl8812au-dkms/template
+++ b/srcpkgs/rtl8812au-dkms/template
@@ -13,6 +13,7 @@ homepage="http://www.dlink.com"
 distfiles="https://github.com/gordboy/rtl8812au-${_modver}/archive/${_gitrev}.tar.gz"
 checksum=72b04bb7e1ef01eae653222d6f75f71163f7442fa142198605ed495f30341bd9
 dkms_modules="rtl8812au ${_modver}"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _karch="x86_64";;
diff --git a/srcpkgs/rtl8822bu-dkms/template b/srcpkgs/rtl8822bu-dkms/template
index 548d0b6299cd..d994f402b2d9 100644
--- a/srcpkgs/rtl8822bu-dkms/template
+++ b/srcpkgs/rtl8822bu-dkms/template
@@ -12,6 +12,7 @@ homepage="https://www.tp-link.com"
 distfiles="https://github.com/EntropicEffect/rtl8822bu/archive/${_gitrev}.tar.gz"
 checksum=fb2dbcd0385d558af6c74571aaac9020d7cbb9e56cc4780299bd420559f29bb1
 dkms_modules="88x2bu ${version}"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _karch="x86_64";;
diff --git a/srcpkgs/rtmpdump/template b/srcpkgs/rtmpdump/template
index 911122cc807a..aa3efa2397c7 100644
--- a/srcpkgs/rtmpdump/template
+++ b/srcpkgs/rtmpdump/template
@@ -11,6 +11,7 @@ license="GPL-2, LGPL-2.1"
 homepage="http://rtmpdump.mplayerhq.hu/"
 distfiles="https://alpha.de.repo.voidlinux.org/distfiles/${pkgname}-${version%.*}_p${_patchlevel}.tar.gz"
 checksum=d6da3b683f1045f02d94a81b0c583318dba021f69bdab970c5d5d73e8c38860f
+patch_args=-Np0
 
 CFLAGS="-Wno-unused-const-variable -Wno-unused-but-set-variable"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/rtorrent/template b/srcpkgs/rtorrent/template
index 7d44897de237..c3278dc21049 100644
--- a/srcpkgs/rtorrent/template
+++ b/srcpkgs/rtorrent/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/rakshasa/rtorrent"
 distfiles="https://github.com/rakshasa/${pkgname}/archive/v${version}.tar.gz"
 checksum=bc889ce1dde475ec56aa72ae996912ff58723226a4f4256fef4f1f8636d991d4
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/rubberband/template b/srcpkgs/rubberband/template
index 0c1f15270aa0..fabb288f308b 100644
--- a/srcpkgs/rubberband/template
+++ b/srcpkgs/rubberband/template
@@ -13,6 +13,7 @@ homepage="https://breakfastquay.com/rubberband/"
 changelog="https://breakfastquay.com/news.html"
 distfiles="https://breakfastquay.com/files/releases/rubberband-${version}.tar.bz2"
 checksum=4f5b9509364ea876b4052fc390c079a3ad4ab63a2683aad09662fb905c2dc026
+patch_args=-Np0
 
 librubberband_package() {
 	short_desc+=" - Runtime libraries"
diff --git a/srcpkgs/ruby/template b/srcpkgs/ruby/template
index 29c1c2eac3c3..ad72d57520c9 100644
--- a/srcpkgs/ruby/template
+++ b/srcpkgs/ruby/template
@@ -1,5 +1,6 @@
 # Template file for 'ruby'
 _ruby_abiver=2.7.0
+patch_args=-Np0
 
 pkgname=ruby
 version=2.7.3
diff --git a/srcpkgs/ruler/template b/srcpkgs/ruler/template
index 0884fc46578f..7cac86683e03 100644
--- a/srcpkgs/ruler/template
+++ b/srcpkgs/ruler/template
@@ -11,6 +11,7 @@ license="ISC"
 homepage="https://github.com/tudurom/ruler"
 distfiles="https://github.com/tudurom/ruler/archive/v${version}.tar.gz"
 checksum=5355e19530bb158b504cca6ba18cc402585e9bdb488e01a2ee76492bc70923c7
+patch_args=-Np0
 
 LDFLAGS="-lxcb -lxcb-ewmh -lxcb-icccm -lwm"
 
diff --git a/srcpkgs/run-mailcap/template b/srcpkgs/run-mailcap/template
index 8eb80e3b58ed..5a88b519eadf 100644
--- a/srcpkgs/run-mailcap/template
+++ b/srcpkgs/run-mailcap/template
@@ -10,6 +10,7 @@ license="custom:ad-hoc, custom:Bellcore"
 homepage="http://packages.ubuntu.com/disco/mime-support"
 distfiles="${UBUNTU_SITE}/main/m/mime-support/mime-support_${version}ubuntu1.tar.xz"
 checksum=5007d2ebc25935bfca6d4bdac0efdfc089a38c1be49d19f0422559f666e4f2c4
+patch_args=-Np0
 
 do_install() {
 	local _aliases="see edit compose print"
diff --git a/srcpkgs/runit/template b/srcpkgs/runit/template
index 081d5fe2c732..68b400c1ef5c 100644
--- a/srcpkgs/runit/template
+++ b/srcpkgs/runit/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://smarden.org/runit/"
 distfiles="http://smarden.org/runit/runit-$version.tar.gz"
 checksum=6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18
+patch_args=-Np0
 
 build_options="static"
 
diff --git a/srcpkgs/rustup/template b/srcpkgs/rustup/template
index e4f985f74ec4..2be276c712b2 100644
--- a/srcpkgs/rustup/template
+++ b/srcpkgs/rustup/template
@@ -15,6 +15,7 @@ license="Apache-2.0, MIT"
 homepage="https://www.rustup.rs"
 distfiles="https://github.com/rust-lang/${pkgname}/archive/${version}.tar.gz"
 checksum=0203231bfe405ee1c7d5e7e1c013b9b8a2dc87fbd8474e77f500331d8c26365f
+patch_args=-Np0
 
 post_build() {
 	RUSTUP="target/${RUST_TARGET}/release/rustup-init"
diff --git a/srcpkgs/rxvt-unicode/template b/srcpkgs/rxvt-unicode/template
index c89633c12deb..8ae30a72963e 100644
--- a/srcpkgs/rxvt-unicode/template
+++ b/srcpkgs/rxvt-unicode/template
@@ -26,6 +26,7 @@ license="GPL-3.0-or-later"
 homepage="http://software.schmorp.de/pkg/rxvt-unicode.html"
 distfiles="http://dist.schmorp.de/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=643116b9a25d29ad29f4890131796d42e6d2d21312282a613ef66c80c5b8c98b
+patch_args=-Np0
 
 # Package build options
 build_options="gdk_pixbuf perl startup_notification unicode3"
diff --git a/srcpkgs/s3cmd/template b/srcpkgs/s3cmd/template
index 40cd669dc978..3571621f48c3 100644
--- a/srcpkgs/s3cmd/template
+++ b/srcpkgs/s3cmd/template
@@ -12,6 +12,7 @@ changelog="https://github.com/s3tools/s3cmd/raw/master/NEWS"
 homepage="http://s3tools.org/s3cmd"
 distfiles="https://github.com/s3tools/${pkgname}/archive/v${version}.tar.gz"
 checksum=2293f775fde77201bf8e489f20516fd594168c77897168f129e5c1a2b33b7e37
+patch_args=-Np0
 
 pre_install() {
 	export S3CMD_INSTPATH_DOC="share/doc"
diff --git a/srcpkgs/samba/template b/srcpkgs/samba/template
index 90be22e57059..8195f38fbf01 100644
--- a/srcpkgs/samba/template
+++ b/srcpkgs/samba/template
@@ -32,6 +32,7 @@ lib32disabled=yes
 conf_files="/etc/pam.d/samba /etc/samba/smb.conf"
 make_dirs="/etc/samba/private 0750 root root"
 subpackages="smbclient samba-ctdb samba-cups samba-devel samba-libs samba-python3"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/sandboxfs/template b/srcpkgs/sandboxfs/template
index 9ab7a626b206..979a457e1056 100644
--- a/srcpkgs/sandboxfs/template
+++ b/srcpkgs/sandboxfs/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="https://github.com/bazelbuild/sandboxfs"
 distfiles="https://github.com/bazelbuild/sandboxfs/archive/sandboxfs-${version}.tar.gz"
 checksum=bff68e7d33ae56a3f34a79a74b2576599f5ccc381a237bbc10b5a3c3ea106b60
+patch_args=-Np0
 
 post_install() {
 	vman man/sandboxfs.1
diff --git a/srcpkgs/sane/template b/srcpkgs/sane/template
index 35dac1cc846a..8a68e3b65a15 100644
--- a/srcpkgs/sane/template
+++ b/srcpkgs/sane/template
@@ -21,6 +21,7 @@ homepage="http://www.sane-project.org/"
 distfiles="https://gitlab.com/sane-project/backends/uploads/${_gitlab_release_hash}/sane-backends-${version}.tar.gz"
 checksum=4a3b10fcb398ed854777d979498645edfe66fcac2f2fd2b9117a79ff45e2a5aa
 noshlibprovides="avoid false detection of device drivers"
+patch_args=-Np0
 
 build_options="snmp"
 
diff --git a/srcpkgs/sauerbraten/template b/srcpkgs/sauerbraten/template
index 587cc3da5903..102bb584421b 100644
--- a/srcpkgs/sauerbraten/template
+++ b/srcpkgs/sauerbraten/template
@@ -13,6 +13,7 @@ license="Zlib"
 homepage="http://sauerbraten.org"
 distfiles="${SOURCEFORGE_SITE}/sauerbraten/sauerbraten_${version//./_}_collect_edition_linux.tar.bz2"
 checksum=45c20521e3e56374490b2d9112a211538e801cf0161197f35476b30b7b58a78e
+patch_args=-Np0
 
 restricted="Very large - not worth storing on current Void infrastructure"
 
diff --git a/srcpkgs/sbcl/template b/srcpkgs/sbcl/template
index 4fc8a569b50e..8e52f31ee67c 100644
--- a/srcpkgs/sbcl/template
+++ b/srcpkgs/sbcl/template
@@ -15,6 +15,7 @@ distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-source.tar.bz2"
 checksum=965807ecd65a9590d68a0ed408b544e7e49a1f6e337ebd2b25e34788bcc8a8c5
 nocross=yes
 nopie=yes
+patch_args=-Np0
 
 _bootstrap_lisp="bash ../sbcl-*-linux/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/sc3-plugins/template b/srcpkgs/sc3-plugins/template
index 8511caea26e0..a26e459fc3af 100644
--- a/srcpkgs/sc3-plugins/template
+++ b/srcpkgs/sc3-plugins/template
@@ -19,6 +19,7 @@ distfiles="https://github.com/supercollider/sc3-plugins/archive/Version-${versio
 checksum="b8144231ea1bfc1c9d8aa6780c7e963dfb642868794abbfd8ccab418ffbbdfbe
  9b2035a3a7942c61cbe89b00c35c7e16ac281c06786fe1c30dfd333194be499a
  df9f280daaad56fdadb5fa75d492ee6a06762a41d7346aa473aa49c1ac9ec9c8"
+patch_args=-Np0
 
 post_extract() {
 	rm -rf external_libraries/nova-simd
diff --git a/srcpkgs/scanmem/template b/srcpkgs/scanmem/template
index d694f33d3725..5e715569c8a2 100644
--- a/srcpkgs/scanmem/template
+++ b/srcpkgs/scanmem/template
@@ -13,6 +13,7 @@ homepage="https://github.com/scanmem/scanmem"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=f02054b91322cf41517506158fcb74554e9fc6644e696f8aa25e5acf162d374b
 CFLAGS="-D__NEED_pid_t"
+patch_args=-Np0
 
 nocross="checking for /proc/self/maps... configure: error"
 
diff --git a/srcpkgs/schroot/template b/srcpkgs/schroot/template
index 85416dee5e9c..d30517ec6415 100644
--- a/srcpkgs/schroot/template
+++ b/srcpkgs/schroot/template
@@ -55,6 +55,7 @@ checksum="
 3ce8dfd9cb97b099e4b6d4ccec421d6cc8c9ef84574681e928a12badb5643d0b
 56bc82fc8ae7f6ca7eef506ccc1dca1211b2c84d83efc50d24670b8bdb9ea8bb"
 nocross=yes
+patch_args=-Np0
 
 pre_configure() {
 	cat ../debian/patches/series | while read p; do
diff --git a/srcpkgs/screen/template b/srcpkgs/screen/template
index 613696d9f373..f6288cc075bf 100644
--- a/srcpkgs/screen/template
+++ b/srcpkgs/screen/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/s/screen/"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=6e11b13d8489925fde25dfb0935bf6ed71f9eb47eff233a181e078fde5655aa1
+patch_args=-Np0
 
 post_install() {
 	vinstall etc/etcscreenrc 0644 etc screenrc
diff --git a/srcpkgs/scrotty/template b/srcpkgs/scrotty/template
index 13b03a1d1567..69270af50e20 100644
--- a/srcpkgs/scrotty/template
+++ b/srcpkgs/scrotty/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/maandree/scrotty"
 distfiles="https://github.com/maandree/scrotty/archive/${version}.tar.gz"
 checksum=466528d6ecf0138f57c40541258389686e22771c28d40f28c00825faaeaab1a3
+patch_args=-Np0
 
 pre_configure() {
 	export EXTRA_CFLAGS="$CFLAGS"
diff --git a/srcpkgs/scummvm/template b/srcpkgs/scummvm/template
index 0cec3ab176d7..aa52ba65d1e0 100644
--- a/srcpkgs/scummvm/template
+++ b/srcpkgs/scummvm/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.scummvm.org/"
 distfiles="https://downloads.scummvm.org/frs/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
 checksum=1469657e593bd8acbcfac0b839b086f640ebf120633e93f116cab652b5b27387
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*);;
diff --git a/srcpkgs/sddm/template b/srcpkgs/sddm/template
index 2a87381c8e8a..6d58d2e52e02 100644
--- a/srcpkgs/sddm/template
+++ b/srcpkgs/sddm/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later, CC-BY-3.0"
 homepage="http://github.com/sddm/sddm"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=e76da1f13d5ad5e0179e3fec57543126044339405ef19c397e105e0807bd4e41
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" sddm qt5-host-tools qt5-qmake qt5-tools"
diff --git a/srcpkgs/seafile-client-qt/template b/srcpkgs/seafile-client-qt/template
index 76b9a41fe45a..1f9b122cce2f 100644
--- a/srcpkgs/seafile-client-qt/template
+++ b/srcpkgs/seafile-client-qt/template
@@ -15,6 +15,7 @@ license="Apache-2.0"
 homepage="https://seafile.com"
 distfiles="https://github.com/haiwen/seafile-client/archive/v${version}.tar.gz"
 checksum=a6be7e55236cd4fb6028259ab5f35163ce044811f45b6008f280d42f5cee9f8d
+patch_args=-Np0
 
 build_options="shibboleth"
 desc_option_shibboleth="Build with Shibboleth support"
diff --git a/srcpkgs/seexpr-krita/template b/srcpkgs/seexpr-krita/template
index efb21e6f6508..0aaba2375734 100644
--- a/srcpkgs/seexpr-krita/template
+++ b/srcpkgs/seexpr-krita/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://krita.org"
 distfiles="${KDE_SITE}/kseexpr/${version%.*}/kseexpr-${version}.tar.gz"
 checksum=13b8455883001668f5d79c5734821c1ad2a0fbc91d019af085bb7e31cf6ce926
+patch_args=-Np0
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -DBUILD_TESTS=ON"
diff --git a/srcpkgs/serf/template b/srcpkgs/serf/template
index a9ac8a6d35e4..b27fd1e4b009 100644
--- a/srcpkgs/serf/template
+++ b/srcpkgs/serf/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="http://serf.apache.org"
 distfiles="https://archive.apache.org/dist/serf/serf-${version}.tar.bz2"
 checksum=549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args+=" APR=${XBPS_WRAPPERDIR}/apr-1-config"
diff --git a/srcpkgs/shaderc/template b/srcpkgs/shaderc/template
index 7382d081551c..d0d810161d23 100644
--- a/srcpkgs/shaderc/template
+++ b/srcpkgs/shaderc/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="https://github.com/google/shaderc"
 distfiles="https://github.com/google/shaderc/archive/v${version}.tar.gz"
 checksum=e02e2a9d4c3960bc629ca8cdcf83d295bec9c80ed08a8c5062e4e294022605ec
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/glslang"
 
diff --git a/srcpkgs/shadow/template b/srcpkgs/shadow/template
index f01181a49bd6..556e2ce263f1 100644
--- a/srcpkgs/shadow/template
+++ b/srcpkgs/shadow/template
@@ -17,6 +17,7 @@ homepage="https://github.com/shadow-maint/shadow"
 distfiles="${homepage}/releases/download/${version}/shadow-${version}.tar.xz"
 checksum=a3ad4630bdc41372f02a647278a8c3514844295d36eefe68ece6c3a641c1ae62
 conf_files="/etc/pam.d/* /etc/default/* /etc/login.defs"
+patch_args=-Np0
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/shapelib/template b/srcpkgs/shapelib/template
index 67a6f9c0dc7d..230bf6980f77 100644
--- a/srcpkgs/shapelib/template
+++ b/srcpkgs/shapelib/template
@@ -9,6 +9,7 @@ license="LGPL-2.0-only"
 homepage="http://shapelib.maptools.org/"
 distfiles="http://download.osgeo.org/shapelib/shapelib-${version}.tar.gz"
 checksum=1fc0a480982caef9e7b9423070b47750ba34cd0ba82668f2e638fab1d07adae1
+patch_args=-Np0
 
 shapelib-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/shiboken2/template b/srcpkgs/shiboken2/template
index ed06a780e1a9..5cdf26b88421 100644
--- a/srcpkgs/shiboken2/template
+++ b/srcpkgs/shiboken2/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.qt.io/Qt_for_Python/Shiboken"
 distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
 checksum=b306504b0b8037079a8eab772ee774b9e877a2d84bab2dbefbe4fa6f83941418
+patch_args=-Np0
 
 python_version=3
 export CLANG_INSTALL_DIR=${XBPS_CROSS_BASE}/usr
diff --git a/srcpkgs/shmux/template b/srcpkgs/shmux/template
index 3f353a0df33b..d3c039b4f128 100644
--- a/srcpkgs/shmux/template
+++ b/srcpkgs/shmux/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/shmux/shmux"
 distfiles="https://github.com/shmux/shmux/archive/v${version}.tar.gz"
 checksum=c9f8863e2550e23e633cf5fc7a9c4c52d287059f424ef78aba6ecd98390fb9ab
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/shotwell/template b/srcpkgs/shotwell/template
index b0c1878e31bb..1076b974de75 100644
--- a/srcpkgs/shotwell/template
+++ b/srcpkgs/shotwell/template
@@ -17,6 +17,7 @@ homepage="https://wiki.gnome.org/Apps/Shotwell"
 distfiles="${GNOME_SITE}/shotwell/${version%.*}/shotwell-${version}.tar.xz"
 checksum=8de36f20488f4fb7d090194c8af46cd3661bcc81a3d65f980cb17667ed826af2
 lib32disabled=yes
+patch_args=-Np0
 
 post_extract() {
 	# because shotwell intelligently forces fatal warnings even for
diff --git a/srcpkgs/signond/template b/srcpkgs/signond/template
index 183c3b9481e7..585a4f7e28b7 100644
--- a/srcpkgs/signond/template
+++ b/srcpkgs/signond/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://gitlab.com/accounts-sso/signond"
 distfiles="https://gitlab.com/accounts-sso/signond/repository/archive.tar.gz?ref=VERSION_${version}>signond-${version}.tar.gz"
 checksum=a9cd90cf3e8b1a8bdbe5acf46c797a817092e77946c69fc3ed3a76930f3a76aa
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 8e9f28786b9e..fb99e1fcd88d 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.sile-typesetter.org/"
 distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
 checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
diff --git a/srcpkgs/silly/template b/srcpkgs/silly/template
index 432cefdabc93..8fa0632c361c 100644
--- a/srcpkgs/silly/template
+++ b/srcpkgs/silly/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://sourceforge.net/projects/crayzedsgui/"
 distfiles="${SOURCEFORGE_SITE}/project/crayzedsgui/${pkgname^^}/${version}/${pkgname^^}-${version}.tar.gz"
 checksum=afa064f70433008ec9837fb601c8d73e73db07856e4566f8bee010758c5304ac
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/simgear/template b/srcpkgs/simgear/template
index 4a15e27896ef..58f19d499e50 100644
--- a/srcpkgs/simgear/template
+++ b/srcpkgs/simgear/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.flightgear.org/"
 distfiles="$SOURCEFORGE_SITE/project/flightgear/release-${version%.*}/${pkgname}-${version}.tar.bz2"
 checksum=66da2c4f68058f6854206f2dd9c03c9223851ade24a50216e88b4e50598c13d1
+patch_args=-Np0
 
 # Suppress warnings regarding auto_ptr
 CXXFLAGS="-Wno-deprecated-declarations"
diff --git a/srcpkgs/simutron/template b/srcpkgs/simutron/template
index cdcf68c2a435..15a6accf2010 100644
--- a/srcpkgs/simutron/template
+++ b/srcpkgs/simutron/template
@@ -13,6 +13,7 @@ maintainer="Artur Sinila <opensource@logarithmus.dev>"
 license="GPL-3.0-only"
 homepage="https://sourceforge.net/projects/simutron/"
 nostrip_files="LCD20x4Test.elf"
+patch_args=-Np0
 
 do_fetch() {
 	svn checkout "https://svn.code.sf.net/p/${pkgname}/code/branches/RB-${_version}-${_rev}" "$wrksrc"
diff --git a/srcpkgs/sisl/template b/srcpkgs/sisl/template
index 1fdf40b02dbf..0457d6e17fe2 100644
--- a/srcpkgs/sisl/template
+++ b/srcpkgs/sisl/template
@@ -10,6 +10,7 @@ license="AGPL-3.0-only"
 homepage="https://github.com/SINTEF-Geometry/SISL"
 distfiles="$homepage/archive/SISL-$version.tar.gz"
 checksum=b207fe6b4b20775e3064168633256fddd475ff98573408f6f5088a938c086f86
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/skroll/template b/srcpkgs/skroll/template
index e01de5aa0647..9263b38cd5c0 100644
--- a/srcpkgs/skroll/template
+++ b/srcpkgs/skroll/template
@@ -10,6 +10,7 @@ license="WTFPL"
 homepage="http://git.z3bra.org/skroll/log.html"
 distfiles="http://dl.z3bra.org/releases/${pkgname}-${version}.tar.bz2"
 checksum=32221fef51f6814a7bf3cf4207b8a2466624544a2fd1e5b110ee2af3580d2959
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/slcp/template b/srcpkgs/slcp/template
index 1873bcc6f233..614c5844ad11 100644
--- a/srcpkgs/slcp/template
+++ b/srcpkgs/slcp/template
@@ -10,6 +10,7 @@ license="Beerware"
 homepage="https://github.com/schachmat/slcp"
 distfiles="https://github.com/schachmat/slcp/archive/${version}.tar.gz"
 checksum=a26e56832e37dbf1c7b776ddb137e422c987c19330575708a5945697e08e7cfe
+patch_args=-Np0
 
 pre_build() {
 	sed -i 's|^CFLAGS =|override CFLAGS +=|g' config.mk
diff --git a/srcpkgs/sleuthkit/template b/srcpkgs/sleuthkit/template
index f7d3ebf142f5..c61696b35270 100644
--- a/srcpkgs/sleuthkit/template
+++ b/srcpkgs/sleuthkit/template
@@ -15,6 +15,7 @@ homepage="https://www.sleuthkit.org/"
 changelog="https://github.com/sleuthkit/sleuthkit/releases"
 distfiles="https://github.com/sleuthkit/sleuthkit/archive/sleuthkit-${version}.tar.gz"
 checksum=da9a336c37e03b78bd912acf243953254a3215f0b3646f9d2c526f4b502e6f11
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's:sys/fcntl.h:fcntl.h:g' tsk/fs/tsk_fs_i.h
diff --git a/srcpkgs/slim/template b/srcpkgs/slim/template
index b7382cac3085..43d025a1e9b5 100644
--- a/srcpkgs/slim/template
+++ b/srcpkgs/slim/template
@@ -15,6 +15,7 @@ homepage="http://sourceforge.net/projects/slim.berlios/"
 distfiles="${SOURCEFORGE_SITE}/slim.berlios/slim-${version}.tar.gz"
 checksum=21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df
 lib32disabled=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) CXXFLAGS="-DNEEDS_BASENAME";;
diff --git a/srcpkgs/sloccount/template b/srcpkgs/sloccount/template
index f33b58e0aea4..861d5883cb80 100644
--- a/srcpkgs/sloccount/template
+++ b/srcpkgs/sloccount/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://dwheeler.com/sloccount/"
 distfiles="https://dwheeler.com/sloccount/sloccount-${version}.tar.gz"
 checksum=fa7fa2bbf2f627dd2d0fdb958bd8ec4527231254c120a8b4322405d8a4e3d12b
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/bin
diff --git a/srcpkgs/slurm-wlm/template b/srcpkgs/slurm-wlm/template
index e01f3912697f..420663fbb7ee 100644
--- a/srcpkgs/slurm-wlm/template
+++ b/srcpkgs/slurm-wlm/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="http://slurm.schedmd.com/slurm.html"
 distfiles="https://github.com/SchedMD/slurm/archive/slurm-${_distver}.tar.gz"
 checksum=e53e67bd0bb4c37a9c481998764a746467a96bc41d6527569080514f36452c07
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/smpeg/template b/srcpkgs/smpeg/template
index 9a958bd1bbae..e8dfe2e4452f 100644
--- a/srcpkgs/smpeg/template
+++ b/srcpkgs/smpeg/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-only"
 homepage="https://icculus.org/smpeg/"
 distfiles="ftp://slackware.oregonstate.edu/.1/vectorlinux/VL64-7.0/source/sourceVL/smpeg/${version}/src/smpeg-${version}.tar.gz"
 checksum=1839c12e88d5dbbc767a7b94eeab2aa3efe4f0eebb7eb7c7240270ba93689a2b
+patch_args=-Np0
 
 post_install() {
 	# Remove unused stuff
diff --git a/srcpkgs/smpeg2/template b/srcpkgs/smpeg2/template
index 5c87e4416dae..5afde1920c59 100644
--- a/srcpkgs/smpeg2/template
+++ b/srcpkgs/smpeg2/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="https://icculus.org/smpeg/"
 distfiles="https://www.libsdl.org/projects/smpeg/release/smpeg2-${version}.tar.gz"
 checksum=979a65b211744a44fa641a9b6e4d64e64a12ff703ae776bafe3c4c4cd85494b3
+patch_args=-Np0
 
 # Package build options
 build_options="rpi"
diff --git a/srcpkgs/snapper/template b/srcpkgs/snapper/template
index bd58ab951c24..a2dd275709e7 100644
--- a/srcpkgs/snapper/template
+++ b/srcpkgs/snapper/template
@@ -19,6 +19,7 @@ homepage="http://snapper.io"
 distfiles="https://github.com/openSUSE/snapper/archive/v${version}.tar.gz"
 checksum=ca7b17d0213aa5281ff08d968b4e029b78bb3870eb79fd7bc7f879b17f5c969e
 lib32disabled=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]
 then
diff --git a/srcpkgs/snappy/template b/srcpkgs/snappy/template
index 7e9e5214fb7d..36d572f0da93 100644
--- a/srcpkgs/snappy/template
+++ b/srcpkgs/snappy/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://google.github.io/snappy"
 distfiles="https://github.com/google/snappy/archive/${version}.tar.gz"
 checksum=75c1fbb3d618dd3a0483bff0e26d0a92b495bbe5059c8b4f1c962b478b6e06e7
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/socat/template b/srcpkgs/socat/template
index d4e0f0a9bbdb..bbbe7dccb42c 100644
--- a/srcpkgs/socat/template
+++ b/srcpkgs/socat/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.dest-unreach.org/socat/"
 distfiles="http://www.dest-unreach.org/socat/download/socat-${version}.tar.bz2"
 checksum=3faca25614e89123dff5045680549ecef519d02e331aaf3c4f5a8f6837c675e9
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) CFLAGS="-D_LINUX_IF_ETHER_H";;
diff --git a/srcpkgs/socklog/template b/srcpkgs/socklog/template
index 3df32c8ebeb5..0d77880ebb04 100644
--- a/srcpkgs/socklog/template
+++ b/srcpkgs/socklog/template
@@ -9,6 +9,7 @@ license="custom"
 homepage="http://smarden.org/socklog/"
 distfiles="http://smarden.org/socklog/socklog-${version}.tar.gz"
 checksum=aa869a787ee004da4e5509b5a0031bcc17a4ab4ac650c2ce8d4e488123acb455
+patch_args=-Np0
 
 build_options="static"
 
diff --git a/srcpkgs/sombok/template b/srcpkgs/sombok/template
index 622a1e6fc961..3c6fcaff53d1 100644
--- a/srcpkgs/sombok/template
+++ b/srcpkgs/sombok/template
@@ -12,6 +12,7 @@ license="Artistic, GPL-1"
 homepage="https://github.com/hatukanezumi/sombok"
 distfiles="https://github.com/hatukanezumi/${pkgname}/archive/${pkgname}-${version}.tar.gz"
 checksum=14d9dcd3621bf9d591a7158aeac99b4d4a60296558173be51d57b54b8f9d70a2
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -i
diff --git a/srcpkgs/sonic-visualiser/template b/srcpkgs/sonic-visualiser/template
index 4daa56060eea..583e5d4d3fe3 100644
--- a/srcpkgs/sonic-visualiser/template
+++ b/srcpkgs/sonic-visualiser/template
@@ -16,6 +16,7 @@ homepage="https://www.sonicvisualiser.org/"
 changelog="https://code.soundsoftware.ac.uk/projects/sonic-visualiser/repository/entry/CHANGELOG"
 distfiles="https://code.soundsoftware.ac.uk/attachments/download/2755/${pkgname}-${version}.tar.gz"
 checksum=38e91a4035962ad177905a9f1249136fe88d4b596fd9b8f40c82b60dadca5bf3
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/sopwith/template b/srcpkgs/sopwith/template
index aa160fdbb870..2c0b91f10be4 100644
--- a/srcpkgs/sopwith/template
+++ b/srcpkgs/sopwith/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://sdl-sopwith.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/sdl-sopwith/sdl_sopwith/${version}/sopwith-${version}.tar.gz"
 checksum=a5ecb795a7aeff6be3ebfb99f1c6218054b73048786809f8468a92c952c17bd0
+patch_args=-Np0
 
 pre_configure() {
 	mv configure.{in,ac}
diff --git a/srcpkgs/soundmodem/template b/srcpkgs/soundmodem/template
index 91ae349d3c1a..f38d83b2f88d 100644
--- a/srcpkgs/soundmodem/template
+++ b/srcpkgs/soundmodem/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://soundmodem.vk4msl.yi.org/"
 distfiles="http://soundmodem.vk4msl.yi.org/soundmodem-${version}.tar.gz"
 checksum=f033c1716df1378cda646dbb1c48ea9fb9a068772c6686f2ca411bfa64245c1c
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/spacefm/template b/srcpkgs/spacefm/template
index f89a4cd5ad5c..cb2b3b59b9d0 100644
--- a/srcpkgs/spacefm/template
+++ b/srcpkgs/spacefm/template
@@ -15,6 +15,7 @@ homepage="http://ignorantguru.github.io/spacefm/"
 distfiles="https://github.com/IgnorantGuru/spacefm/archive/${version}.tar.gz"
 checksum=fedea9fcad776e0af4b8d90c5a1c86684a9c96ef1cdd4e959530ce93bdebe7c9
 conf_files="/etc/spacefm/spacefm.conf"
+patch_args=-Np0
 
 build_options="gtk3"
 build_options_default="gtk3"
diff --git a/srcpkgs/spamassassin/template b/srcpkgs/spamassassin/template
index d778f76ba3eb..f36e91661fac 100644
--- a/srcpkgs/spamassassin/template
+++ b/srcpkgs/spamassassin/template
@@ -25,6 +25,7 @@ conf_files="
  /etc/mail/spamassassin/v320.pre
  /etc/mail/spamassassin/init.pre
  /etc/mail/spamassassin/local.cf"
+patch_args=-Np0
 
 post_install() {
 	vinstall $FILESDIR/sa-update 755 /etc/cron.weekly
diff --git a/srcpkgs/spampd/template b/srcpkgs/spampd/template
index 4380aae4f8bc..f64c6dccde75 100644
--- a/srcpkgs/spampd/template
+++ b/srcpkgs/spampd/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/downloads/mpaperno/$pkgname/$pkgname-$version.tar.
 checksum=c980e55f46c7757fd45294e5268766253123490d0158d2ee36ad5700ddf823bb
 system_accounts="_spampd"
 _spampd_homedir="/var/lib/spampd"
+patch_args=-Np0
 
 pre_install() {
 	sed -i '/INSTALL.* \(spampd.default\|spampd-init.sh\) /d' Makefile
diff --git a/srcpkgs/speech-dispatcher/template b/srcpkgs/speech-dispatcher/template
index 810692a434b1..fac86abc1d75 100644
--- a/srcpkgs/speech-dispatcher/template
+++ b/srcpkgs/speech-dispatcher/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, GFDL-1.2-or-later"
 homepage="http://devel.freebsoft.org/speechd"
 distfiles="https://github.com/brailcom/speechd/archive/${version}.tar.gz"
 checksum=0c702d4acc4920818db3daa28ecf14004123b64514b4575c138874618835104c
+patch_args=-Np0
 
 conf_files="
  /etc/speech-dispatcher/clients/*.conf
diff --git a/srcpkgs/speed-dreams/template b/srcpkgs/speed-dreams/template
index fadabc891c88..47786d859bbb 100644
--- a/srcpkgs/speed-dreams/template
+++ b/srcpkgs/speed-dreams/template
@@ -29,6 +29,7 @@ replaces="speed-dreams-data>=0"
 CFLAGS=-fpermissive
 CXXFLAGS=-fpermissive
 lib32disabled=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	broken="Segmentation fault"
diff --git a/srcpkgs/spice-gtk/template b/srcpkgs/spice-gtk/template
index 7218e837891f..613328430c20 100644
--- a/srcpkgs/spice-gtk/template
+++ b/srcpkgs/spice-gtk/template
@@ -22,6 +22,7 @@ license="LGPL-2.1-or-later"
 homepage="https://spice-space.org"
 distfiles="https://spice-space.org/download/gtk/${pkgname}-${version}.tar.xz"
 checksum=23acbee197eaaec9bce6e6bfd885bd8f79708332639243ff04833020865713cd
+patch_args=-Np0
 
 CFLAGS="-Wno-error -Wno-error=unused-but-set-variable"
 
diff --git a/srcpkgs/spim/template b/srcpkgs/spim/template
index 347ff447611b..aada991a2d50 100644
--- a/srcpkgs/spim/template
+++ b/srcpkgs/spim/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="http://spimsimulator.sourceforge.net/"
 distfiles="http://pages.cs.wisc.edu/~larus/SPIM/spim-${version}.tar.gz"
 checksum="6f205776cb9fa112729507008843b289012190ed3131cbd426c610a58387ee4b"
+patch_args=-Np0
 
 pre_configure() {
 	sed '/Copyright (c) 1990-2010, James R. Larus./,+26!d' README > LICENSE
diff --git a/srcpkgs/splix/template b/srcpkgs/splix/template
index 366aab114bce..47c4ef173356 100644
--- a/srcpkgs/splix/template
+++ b/srcpkgs/splix/template
@@ -11,6 +11,7 @@ homepage="http://splix.ap2c.org"
 distfiles="${DEBIAN_SITE}/main/s/$pkgname/${pkgname}_$version.orig.tar.gz"
 checksum="578a81bd5b1b97756a539c3bb6339fd109d54419887a73e705941da8aa7fac52"
 CXXFLAGS="-fno-strict-aliasing"
+patch_args=-Np0
 
 do_build() {
 	vsed -i rules.mk \
diff --git a/srcpkgs/spreed-webrtc/template b/srcpkgs/spreed-webrtc/template
index 7baa339cc7e5..4480b5dabec9 100644
--- a/srcpkgs/spreed-webrtc/template
+++ b/srcpkgs/spreed-webrtc/template
@@ -13,6 +13,7 @@ license="AGPL-3.0-or-later"
 homepage="https://github.com/strukturag/spreed-webrtc"
 distfiles="https://github.com/strukturag/spreed-webrtc/archive/v${version}.tar.gz"
 checksum=d05b820fe3883840eadf8b96bda663397991849d9bda4750fc7c4e642c9c3268
+patch_args=-Np0
 
 system_accounts="_spreed_webrtc"
 
diff --git a/srcpkgs/sqmail/template b/srcpkgs/sqmail/template
index 78c0af18eadb..ac118d931dfd 100644
--- a/srcpkgs/sqmail/template
+++ b/srcpkgs/sqmail/template
@@ -16,6 +16,7 @@ nocross="custom build system"
 provides="smtp-server-0_1"
 replaces="smtp-server>=0"
 conf_files="/etc/sv/*/run /etc/sv/*/log/run"
+patch_args=-Np0
 
 system_groups="_nofiles:798 _sqmail:799"
 
diff --git a/srcpkgs/squashfs-tools/template b/srcpkgs/squashfs-tools/template
index d49d6c5602a8..f66e2db53916 100644
--- a/srcpkgs/squashfs-tools/template
+++ b/srcpkgs/squashfs-tools/template
@@ -12,6 +12,7 @@ short_desc="Tool to create and append to squashfs filesystems"
 maintainer="Duncaen <duncaen@voidlinux.org>"
 distfiles="${SOURCEFORGE_SITE}/squashfs/squashfs${version}.tar.gz"
 checksum=a981b3f3f2054b5a2e658851a3c06a2460ad04a9a8a645e0afe063a63fdbb07e
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/srb2/template b/srcpkgs/srb2/template
index 08a2bff0886c..de8c22c3a5b6 100644
--- a/srcpkgs/srb2/template
+++ b/srcpkgs/srb2/template
@@ -19,6 +19,7 @@ distfiles="https://github.com/STJr/SRB2/archive/SRB2_release_${version}.tar.gz
 checksum="5f7eeb08e90323e28cdcb02ad25c904eef25ce75316720609b995a1e4ffd154a
  48cf787a70f44b31fa7a56db4053a404a7103a494f1e09fd2bbfd563672a3534"
 restricted=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*) makedepends+=" nasm" ;;
diff --git a/srcpkgs/ssoma/template b/srcpkgs/ssoma/template
index 9fbee6bead10..7de2723c4bc9 100644
--- a/srcpkgs/ssoma/template
+++ b/srcpkgs/ssoma/template
@@ -14,6 +14,7 @@ license="AGPL-3.0-or-later"
 homepage="https://ssoma.public-inbox.org/"
 distfiles="https://ssoma.public-inbox.org/files/${pkgname}-${version}.tar.gz"
 checksum=7455bafb344aaa8eeac78ae5efcca2384d11baface1194c35bafd30353168faf
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/sssd/template b/srcpkgs/sssd/template
index 61ead1c9e44e..758022a785c1 100644
--- a/srcpkgs/sssd/template
+++ b/srcpkgs/sssd/template
@@ -32,6 +32,7 @@ python_version=3
 nocross="configure attempts to run compiled output"
 # These modules in /usr/lib/sssd are required by sssd-python3
 shlib_provides="libsss_util.so libsss_crypt.so libsss_debug.so"
+patch_args=-Np0
 
 do_check() {
 	export CK_TIMEOUT_MULTIPLIER=10
diff --git a/srcpkgs/stack/template b/srcpkgs/stack/template
index 257aba10e50d..7a4ddad1a029 100644
--- a/srcpkgs/stack/template
+++ b/srcpkgs/stack/template
@@ -17,6 +17,7 @@ checksum="f29d63b91ff2bddd130b29ddee90a1f450706271a13d5d80b653b50379ffa076
 skip_extraction="cabal.config-${_stackage}"
 nocross=yes
 nopie_files="/usr/bin/stack"
+patch_args=-Np0
 
 do_build() {
 	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/cabal.config-${_stackage} cabal.config
diff --git a/srcpkgs/starplot/template b/srcpkgs/starplot/template
index ccc2232d4608..0c5bbe729448 100644
--- a/srcpkgs/starplot/template
+++ b/srcpkgs/starplot/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://starplot.org/"
 distfiles="${homepage}downloads/${pkgname}-${version}.tar.gz"
 checksum=e320f141b736b3a6468e7d0c08a93961db6615e9eb4d533d554eea31c3fa845a
+patch_args=-Np0
 
 pre_build() {
 	sed -i 's/_STRINGS_H/V_STRINGS_H/' src/classes/strings.h
diff --git a/srcpkgs/stepmania/template b/srcpkgs/stepmania/template
index 07afdba93ce6..0da6a45d7751 100644
--- a/srcpkgs/stepmania/template
+++ b/srcpkgs/stepmania/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.stepmania.com/"
 distfiles="https://github.com/stepmania/stepmania/archive/v${version}.tar.gz"
 checksum=df79bcadd69d4ed60cf560d45386ec275181343495ffd744c3ff8f73c83d4755
+patch_args=-Np0
 
 # Upstream has stated that only x86 hardware can meed the performance
 # constraints and that musl is not supported due to interop issues
diff --git a/srcpkgs/stfl/template b/srcpkgs/stfl/template
index 0d970c9d2c26..f38cd252e8ac 100644
--- a/srcpkgs/stfl/template
+++ b/srcpkgs/stfl/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.clifford.at/stfl/"
 distfiles="http://www.clifford.at/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=d4a7aa181a475aaf8a8914a8ccb2a7ff28919d4c8c0f8a061e17a0c36869c090
+patch_args=-Np0
 
 post_install() {
 	ln -sf libstfl.so.${version} ${DESTDIR}/usr/lib/libstfl.so.0
diff --git a/srcpkgs/stk/template b/srcpkgs/stk/template
index 42b5918ced65..d0eecb39a8f2 100644
--- a/srcpkgs/stk/template
+++ b/srcpkgs/stk/template
@@ -16,6 +16,7 @@ license="custom:MIT-like"
 homepage="https://ccrma.stanford.edu/software/stk/"
 distfiles="https://github.com/thestk/stk/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=8e0c362dd82421bae8f3e789d238a1c27aeac1a2697d7830eb51abc90fc17281
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 autoreconf -fi
diff --git a/srcpkgs/stlink/template b/srcpkgs/stlink/template
index 06f39a7cf256..e6b504938b54 100644
--- a/srcpkgs/stlink/template
+++ b/srcpkgs/stlink/template
@@ -14,6 +14,7 @@ homepage="https://github.com/texane/stlink"
 changelog="https://raw.githubusercontent.com/texane/stlink/master/CHANGELOG.md"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=ca9a640f84c3e2c9873bd51759594bc05c00cdf6e1f21b434ae2c0e7985433d8
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.md LICENSE
diff --git a/srcpkgs/stockfish/template b/srcpkgs/stockfish/template
index 1749c9c3692d..24ccc14fa432 100644
--- a/srcpkgs/stockfish/template
+++ b/srcpkgs/stockfish/template
@@ -18,6 +18,7 @@ distfiles="https://github.com/official-stockfish/Stockfish/archive/sf_${version}
 checksum="15d14721b3be17c597535bdbb44fb951a1ee948312d90fbf55fa0e52b8b81d62
  62ef826d1a6d11b9e814188025aa02a60815c037292e0ef9bbb9bf4f724e5e63"
 skip_extraction="${_net_file}"
+patch_args=-Np0
 
 LDFLAGS+="-lpthread -Wl,-z,stack-size=2097152"
 
diff --git a/srcpkgs/strawberry/template b/srcpkgs/strawberry/template
index 35828b1e3c24..1d51eaf7fc2a 100644
--- a/srcpkgs/strawberry/template
+++ b/srcpkgs/strawberry/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.strawberrymusicplayer.org/"
 distfiles="https://files.strawberrymusicplayer.org/${pkgname}-${version}.tar.xz"
 checksum=0fe9c38c4d1e2f10c1130dbd87ea6e740bef729fe78820a84ffabe524a80c83e
+patch_args=-Np0
 
 build_options="qt6"
 build_options_default=""
diff --git a/srcpkgs/subversion-kwallet-auth/template b/srcpkgs/subversion-kwallet-auth/template
index 12210f250d51..00ad190384b9 100644
--- a/srcpkgs/subversion-kwallet-auth/template
+++ b/srcpkgs/subversion-kwallet-auth/template
@@ -24,6 +24,7 @@ changelog="https://subversion.apache.org/docs/release-notes/${version%.*}.html"
 distfiles="http://apache.uvigo.es/subversion/subversion-${version}.tar.bz2"
 checksum=2c5da93c255d2e5569fa91d92457fdb65396b0666fad4fd59b22e154d986e1a9
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	# Based on native build values
diff --git a/srcpkgs/subversion/template b/srcpkgs/subversion/template
index e10c80ec8b18..70b4cedbfa6a 100644
--- a/srcpkgs/subversion/template
+++ b/srcpkgs/subversion/template
@@ -22,6 +22,7 @@ homepage="http://subversion.apache.org/"
 changelog="https://subversion.apache.org/docs/release-notes/${version%.*}.html"
 distfiles="http://apache.uvigo.es/subversion/subversion-${version}.tar.bz2"
 checksum=2c5da93c255d2e5569fa91d92457fdb65396b0666fad4fd59b22e154d986e1a9
+patch_args=-Np0
 
 pre_configure() {
 	# Based on native build values
diff --git a/srcpkgs/sudo/template b/srcpkgs/sudo/template
index f70418dd6b75..cae14ef1cf4b 100644
--- a/srcpkgs/sudo/template
+++ b/srcpkgs/sudo/template
@@ -18,6 +18,7 @@ distfiles="https://www.sudo.ws/dist/sudo-${version}.tar.gz"
 checksum=2bbe7c2d6699b84d950ef9a43f09d4d967b8bc244b73bc095c4202068ddbe549
 conf_files="/etc/pam.d/sudo /etc/sudoers"
 lib32disabled=yes
+patch_args=-Np0
 
 post_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/sudoku/template b/srcpkgs/sudoku/template
index 606bdd9557c6..a863e9f84bdf 100644
--- a/srcpkgs/sudoku/template
+++ b/srcpkgs/sudoku/template
@@ -10,6 +10,7 @@ license="Public Domain"
 homepage="https://github.com/cinemast/sudoku"
 distfiles="https://github.com/cinemast/sudoku/archive/v${version}.tar.gz"
 checksum=3ce6d9b237546d4ac7cdb7a6bb0e47d5c99e696a710b8935bce40dc706d32ff2
+patch_args=-Np0
 
 do_install() {
 	vbin sudoku
diff --git a/srcpkgs/sunxi-tools/template b/srcpkgs/sunxi-tools/template
index f4f547c7947d..e88e962b5939 100644
--- a/srcpkgs/sunxi-tools/template
+++ b/srcpkgs/sunxi-tools/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/linux-sunxi/sunxi-tools"
 distfiles="$homepage/archive/$_commit.tar.gz"
 checksum=93922d654df5153d468b0f7900f96fe858fe457894ff2dd0f5dfb5c94b65475b
+patch_args=-Np0
 
 CFLAGS="-std=c99 -I./include"
 
diff --git a/srcpkgs/supercollider/template b/srcpkgs/supercollider/template
index c7a878f91c09..421b50cf8aac 100644
--- a/srcpkgs/supercollider/template
+++ b/srcpkgs/supercollider/template
@@ -18,6 +18,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/supercollider/supercollider"
 distfiles="https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source.tar.bz2"
 checksum=2dd2f8179a55de4735ac940e2e2d0df4e68cc3a33172628e4dd99ae89c74856b
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/supertux2/template b/srcpkgs/supertux2/template
index 4c39b458dad4..75b6b37e3dbd 100644
--- a/srcpkgs/supertux2/template
+++ b/srcpkgs/supertux2/template
@@ -20,5 +20,6 @@ homepage="https://supertux.github.io/"
 distfiles="https://github.com/SuperTux/supertux/releases/download/v${version}/SuperTux-v${version}-Source.tar.gz"
 checksum=26a9e56ea2d284148849f3239177d777dda5b675a10ab2d76ee65854c91ff598
 replaces="supertux2-data>=0"
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
diff --git a/srcpkgs/supertuxkart/template b/srcpkgs/supertuxkart/template
index 519bc615782d..aa4734caa91f 100644
--- a/srcpkgs/supertuxkart/template
+++ b/srcpkgs/supertuxkart/template
@@ -17,6 +17,7 @@ license="GPL-3.0-or-later"
 homepage="https://supertuxkart.net"
 distfiles="https://github.com/${pkgname}/stk-code/releases/download/${version}/SuperTuxKart-${version}-src.tar.xz"
 checksum=052edf0afdbeb99583fe8676fb0ab80ecb6103fb88b7540f858d1b5fa1297d37
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/sutils/template b/srcpkgs/sutils/template
index 640b14ce66d8..6ecc796f206f 100644
--- a/srcpkgs/sutils/template
+++ b/srcpkgs/sutils/template
@@ -10,6 +10,7 @@ license="Unlicense"
 homepage="https://github.com/baskerville/sutils/"
 distfiles="https://github.com/baskerville/sutils/archive/${version}.tar.gz"
 checksum=da8cccace32094430be572cf59d85256023edf9107b12c926c7beb29586c56a3
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/sway/template b/srcpkgs/sway/template
index 4a77658518e8..dd8800028931 100644
--- a/srcpkgs/sway/template
+++ b/srcpkgs/sway/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="https://swaywm.org"
 distfiles="https://github.com/swaywm/${pkgname}/archive/${version}.tar.gz"
 checksum=9ecfd2f38239f7e90922a13cd348fc95fc059e8fa0e4b75b8ffcc7b61685a5fb
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/swiften/template b/srcpkgs/swiften/template
index 969ef1eb5d78..f549e1abcb42 100644
--- a/srcpkgs/swiften/template
+++ b/srcpkgs/swiften/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="http://swift.im/"
 distfiles="http://swift.im/git/swift/snapshot/swift-${version}.tar.bz2"
 checksum=6a3f93e807afb51f1b8ab6ec8fef379dfcc50ba71fef6abeee7c123348da66b0
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/sword/template b/srcpkgs/sword/template
index 13240a993160..15a4213b6d54 100644
--- a/srcpkgs/sword/template
+++ b/srcpkgs/sword/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="https://crosswire.org/sword/index.jsp"
 distfiles="https://crosswire.org/ftpmirror/pub/sword/source/v1.8/sword-${version}.tar.gz"
 checksum=ce9aa8f721a737f406115d35ff438bd07c829fce1605f0d6dcdabc4318bc5e93
+patch_args=-Np0
 
 CXXFLAGS=' -DU_USING_ICU_NAMESPACE=1'
 
diff --git a/srcpkgs/sxiv/template b/srcpkgs/sxiv/template
index 3baaa111f613..f5a5adc2b264 100644
--- a/srcpkgs/sxiv/template
+++ b/srcpkgs/sxiv/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/muennich/sxiv"
 distfiles="https://github.com/muennich/sxiv/archive/v${version}.tar.gz"
 checksum=a382ad57734243818e828ba161fc0357b48d8f3a7f8c29cac183492b46b58949
+patch_args=-Np0
 
 pre_build() {
 	[ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h ||:
diff --git a/srcpkgs/sylpheed/template b/srcpkgs/sylpheed/template
index 5df8312b53dc..a37c3ced4ec8 100644
--- a/srcpkgs/sylpheed/template
+++ b/srcpkgs/sylpheed/template
@@ -13,6 +13,7 @@ homepage="http://sylpheed.sraoss.jp"
 distfiles="http://sylpheed.sraoss.jp/sylpheed/v${version%.*}/$pkgname-$version.tar.bz2"
 checksum=eb23e6bda2c02095dfb0130668cf7c75d1f256904e3a7337815b4da5cb72eb04
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	aclocal -I ac
diff --git a/srcpkgs/synergy/template b/srcpkgs/synergy/template
index 0c4f3b4f130a..79bcf7db11fb 100644
--- a/srcpkgs/synergy/template
+++ b/srcpkgs/synergy/template
@@ -15,6 +15,7 @@ license="GPL-2.0-only"
 homepage="http://synergy-foss.org/"
 distfiles="https://github.com/symless/synergy-core/archive/v${version}-stable.tar.gz"
 checksum=a57989dd2d3ae30657f2b95cba3cae112c189f9bbbc3d1b25b3874859afeb94d
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/share/examples/${pkgname}
diff --git a/srcpkgs/synfigstudio/template b/srcpkgs/synfigstudio/template
index 3e40a99fb28c..a04916c78689 100644
--- a/srcpkgs/synfigstudio/template
+++ b/srcpkgs/synfigstudio/template
@@ -14,6 +14,7 @@ distfiles="https://github.com/synfig/synfig/releases/download/v${version}/synfig
 checksum=af9a9b0064064907ae24a693b607dcba633a8a2cd45fa1357f61c035efd6020e
 python_version=3
 CXXFLAGS="-Wno-deprecated-copy -DHAVE_LOCALE_H=1"
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	# uses synfig to create some icons
diff --git a/srcpkgs/sysbench/template b/srcpkgs/sysbench/template
index e2fe7be0cc8b..88a162b2dc8b 100644
--- a/srcpkgs/sysbench/template
+++ b/srcpkgs/sysbench/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/akopytov/sysbench"
 distfiles="https://github.com/akopytov/sysbench/archive/${version}.tar.gz"
 checksum=e8ee79b1f399b2d167e6a90de52ccc90e52408f7ade1b9b7135727efe181347f
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/sysdig/template b/srcpkgs/sysdig/template
index 8932775a781f..712895300344 100644
--- a/srcpkgs/sysdig/template
+++ b/srcpkgs/sysdig/template
@@ -23,6 +23,7 @@ checksum=b9d05854493d245a7a7e75f77fc654508f720aab5e5e8a3a932bd8eb54e49bda
 disable_parallel_build=yes
 dkms_modules="sysdig ${version}"
 nocross=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args+=" -DMUSL_OPTIMIZED_BUILD=On"
diff --git a/srcpkgs/sysexxer-ng/template b/srcpkgs/sysexxer-ng/template
index 18b2a6e776a6..e09476331dfc 100644
--- a/srcpkgs/sysexxer-ng/template
+++ b/srcpkgs/sysexxer-ng/template
@@ -11,6 +11,7 @@ license="BSL-1.0"
 homepage="https://github.com/linuxmao-org/sysexxer-ng"
 distfiles="${homepage}/releases/download/v${version}/sysexxer-ng-${version}.tar.gz"
 checksum=66e2eb66b7ab34b8287bba3230009a311b7db1870c47911049666c523fced5a9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/sysprof/template b/srcpkgs/sysprof/template
index eae51ea7356b..39ea0ae1b9c4 100644
--- a/srcpkgs/sysprof/template
+++ b/srcpkgs/sysprof/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="http://sysprof.com/"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=8bcd728dc2f74e6f589410370dfb1b8801468bb3cc1803aa240735a7cff241ce
+patch_args=-Np0
 
 # for ITS rules
 if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/taskd/template b/srcpkgs/taskd/template
index 414501166719..8ab72bc17ef5 100644
--- a/srcpkgs/taskd/template
+++ b/srcpkgs/taskd/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://taskwarrior.org"
 distfiles="http://taskwarrior.org/download/${pkgname}-${version}.tar.gz"
 checksum=7b8488e687971ae56729ff4e2e5209ff8806cf8cd57718bfd7e521be130621b4
+patch_args=-Np0
 
 system_accounts="taskd"
 taskd_homedir="/var/lib/taskd"
diff --git a/srcpkgs/tbb/template b/srcpkgs/tbb/template
index aeef6ebdd061..17fad3bc5e3a 100644
--- a/srcpkgs/tbb/template
+++ b/srcpkgs/tbb/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://www.threadingbuildingblocks.org"
 distfiles="https://github.com/oneapi-src/oneTBB/archive/${_ver}.tar.gz"
 checksum=2103cc6238c935664f87680618f6684d57501d4a2fa8ea8f6c97ad6ff7dc722a
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*)
diff --git a/srcpkgs/tc-play/template b/srcpkgs/tc-play/template
index 0f49755ebaf9..85cd91f5d7d5 100644
--- a/srcpkgs/tc-play/template
+++ b/srcpkgs/tc-play/template
@@ -14,6 +14,7 @@ license="BSD-2-clause"
 homepage="https://github.com/bwalex/tc-play"
 distfiles="https://github.com/bwalex/${pkgname}/archive/v${version}.tar.gz"
 checksum=ad53cd814a23b4f61a1b2b6dc2539624ffb550504c400c45cbd8cd1da4c7d90a
+patch_args=-Np0
 
 pre_build() {
 	sed -i Makefile.classic -e"s; -o tcplay; ${LDFLAGS}&;"
diff --git a/srcpkgs/tcl/template b/srcpkgs/tcl/template
index d36663d8b1fa..e20273428365 100644
--- a/srcpkgs/tcl/template
+++ b/srcpkgs/tcl/template
@@ -16,6 +16,7 @@ license="TCL"
 homepage="http://www.tcl.tk"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}${version}-src.tar.gz"
 checksum=8c0486668586672c5693d7d95817cb05a18c5ecca2f40e2836b9578064088258
+patch_args=-Np0
 
 shlib_provides="libtcl${version%.*}.so"
 
diff --git a/srcpkgs/tcpdump/template b/srcpkgs/tcpdump/template
index 1956a1ce16b3..724a066b8a22 100644
--- a/srcpkgs/tcpdump/template
+++ b/srcpkgs/tcpdump/template
@@ -12,6 +12,7 @@ homepage="https://www.tcpdump.org"
 changelog="https://www.tcpdump.org/tcpdump-changes.txt"
 distfiles="https://www.tcpdump.org/release/${pkgname}-${version}.tar.gz"
 checksum=79b36985fb2703146618d87c4acde3e068b91c553fb93f021a337f175fd10ebe
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/teensy_loader_cli/template b/srcpkgs/teensy_loader_cli/template
index 267415fa1561..a02e5ea78fed 100644
--- a/srcpkgs/teensy_loader_cli/template
+++ b/srcpkgs/teensy_loader_cli/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://www.pjrc.com/teensy/loader_cli.html"
 distfiles="https://github.com/PaulStoffregen/teensy_loader_cli/archive/${version}.tar.gz"
 checksum=5c36fe45b9a3a71ac38848b076cd692bf7ca8826a69941c249daac3a1d95e388
+patch_args=-Np0
 
 do_install() {
 	vbin teensy_loader_cli
diff --git a/srcpkgs/teeworlds/template b/srcpkgs/teeworlds/template
index 268c85e43ac8..69c907e600c3 100644
--- a/srcpkgs/teeworlds/template
+++ b/srcpkgs/teeworlds/template
@@ -10,6 +10,7 @@ license="custom"
 homepage="https://www.teeworlds.com"
 distfiles="https://github.com/teeworlds/teeworlds/archive/${version}.tar.gz"
 checksum=6e67846b38750d2a372d7835fa3775db016458a20a85aa52f1c758102ddd4abe
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686) _ARCH=x86;;
diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template
index 30a1d2ec6eec..f0026056b7dd 100644
--- a/srcpkgs/telegram-desktop/template
+++ b/srcpkgs/telegram-desktop/template
@@ -26,6 +26,7 @@ homepage="https://desktop.telegram.org/"
 changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
 distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
 checksum=97526f0b4adf04cf86b605ae84f3efaacf58eb8f828bab8f4fe752a4fac62fb2
+patch_args=-Np0
 
 build_options="spellcheck"
 build_options_default="spellcheck"
diff --git a/srcpkgs/telepathy-mission-control/template b/srcpkgs/telepathy-mission-control/template
index f539aa07f1c8..a2c3275fcf6b 100644
--- a/srcpkgs/telepathy-mission-control/template
+++ b/srcpkgs/telepathy-mission-control/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="http://telepathy.freedesktop.org"
 distfiles="${homepage}/releases/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=4c6b433b8b9079fd7df3e29aefcad6755a2081a9a634ffb6b33936c7d0d8bd03
+patch_args=-Np0
 
 telepathy-mission-control-devel_package() {
 	depends="telepathy-glib-devel>=0.22 ${sourcepkg}>=${version}"
diff --git a/srcpkgs/tepl/template b/srcpkgs/tepl/template
index 2213a79cc0f1..ec5879500caf 100644
--- a/srcpkgs/tepl/template
+++ b/srcpkgs/tepl/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Projects/Tepl"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=a86397a895dca9c0de7a5ccb063bda8f7ef691cccb950ce2cfdee367903e7a63
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/terminal_markdown_viewer/template b/srcpkgs/terminal_markdown_viewer/template
index b13f8ac93fbf..0093b049b9ab 100644
--- a/srcpkgs/terminal_markdown_viewer/template
+++ b/srcpkgs/terminal_markdown_viewer/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/axiros/terminal_markdown_viewer"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=58dbdf8c051a2d7f8c00e4dc13c655c335cbc2bc96851dd0388d73a21c4507b6
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/tesseract-ocr/template b/srcpkgs/tesseract-ocr/template
index 7ed37c53c848..c6c574f4c483 100644
--- a/srcpkgs/tesseract-ocr/template
+++ b/srcpkgs/tesseract-ocr/template
@@ -18,6 +18,7 @@ distfiles="
  https://github.com/tesseract-ocr/tessdata/archive/${_tessdataver}.tar.gz>tessdata-${_tessdataver}.tar.gz"
 checksum="2a66ff0d8595bff8f04032165e6c936389b1e5727c3ce5a27b3e059d218db1cb
  38c637d3a1763f6c3d32e8f1d979f045668676ec5feb8ee1869ee77cedd31b08"
+patch_args=-Np0
 
 build_options="openmp"
 build_options_default="openmp"
diff --git a/srcpkgs/tesseract/template b/srcpkgs/tesseract/template
index 5eca40635fd4..e073eee88791 100644
--- a/srcpkgs/tesseract/template
+++ b/srcpkgs/tesseract/template
@@ -12,6 +12,7 @@ license="zlib"
 homepage="http://tesseract.gg/"
 distfiles="http://download.tuxfamily.org/tesseract/tesseract_2014_05_12_first_edition_linux.tar.xz"
 checksum=8d6e07dd154a40a3f593e52289335c036f06cf90a0ebc400c4650adb3395a0f4
+patch_args=-Np0
 
 pre_build() {
 	for dim in 16 32 48 64 128 256 512; do
diff --git a/srcpkgs/tevent/template b/srcpkgs/tevent/template
index 731d707efaaa..86bbe45ef744 100644
--- a/srcpkgs/tevent/template
+++ b/srcpkgs/tevent/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://tevent.samba.org"
 distfiles="https://ftp.samba.org/pub/tevent/tevent-${version}.tar.gz"
 checksum=f8427822e5b2878fb8b28d6f50d96848734f3f3130612fb574fdd2d2148a6696
+patch_args=-Np0
 
 export PYTHON_CONFIG="${XBPS_CROSS_BASE}/usr/bin/python3-config"
 
diff --git a/srcpkgs/texi2mdoc/template b/srcpkgs/texi2mdoc/template
index 1d3eceaee503..d6b6bd659a8d 100644
--- a/srcpkgs/texi2mdoc/template
+++ b/srcpkgs/texi2mdoc/template
@@ -9,6 +9,7 @@ license="ISC"
 homepage="http://mdocml.bsd.lv/texi2mdoc"
 distfiles="http://mdocml.bsd.lv/texi2mdoc/snapshots/${pkgname}-${version}.tgz"
 checksum=7a45fd87c27cc8970a18db9ddddb2f09f18b8dd5152bf0ca377c3a5e7d304bfe
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/texlab/template b/srcpkgs/texlab/template
index c61ac718f0ac..33cffac2c276 100644
--- a/srcpkgs/texlab/template
+++ b/srcpkgs/texlab/template
@@ -11,6 +11,7 @@ distfiles="https://github.com/latex-lsp/${pkgname}/archive/v${version}.tar.gz
  https://github.com/salsa-rs/salsa/archive/v0.13.2.tar.gz"
 checksum="04978b118b455607b5debd0a886f0728ca6c498289d2a0c60d8f83b316dc5ebc
  2e33e20d22692f6bcd4d638392b9c2cfb716bcd28998e809db0dd88be4f70a31"
+patch_args=-Np0
 
 post_extract() {
 	mv ../salsa-* salsa
diff --git a/srcpkgs/texlive/template b/srcpkgs/texlive/template
index b9a19c12a347..bbbf04254bf3 100644
--- a/srcpkgs/texlive/template
+++ b/srcpkgs/texlive/template
@@ -81,6 +81,7 @@ checksum=e32f3d08cbbbcf21d8d3f96f2143b64a1f5e4cb01b06b761d6249c8785249078
 python_version=3
 # Virtual package cares only about year part of version
 provides="tex-${version%${version#????}}_1"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ] ; then
 	# Tangle is required for cross compile
diff --git a/srcpkgs/texstudio/template b/srcpkgs/texstudio/template
index 9ae4a1805c9a..b6462e019170 100644
--- a/srcpkgs/texstudio/template
+++ b/srcpkgs/texstudio/template
@@ -18,6 +18,7 @@ homepage="https://texstudio.org/"
 changelog="https://raw.githubusercontent.com/texstudio-org/texstudio/master/utilities/manual/CHANGELOG.txt"
 distfiles="https://github.com/texstudio-org/texstudio/archive/${version}.tar.gz"
 checksum=7251f8e6f2b17395c428e9ff13bfc2c58e5f07ec09aae1036ab912dcf89f6fad
+patch_args=-Np0
 
 build_options="phonon poppler"
 desc_option_phonon="build with phonon (=media support for pdf preview)"
diff --git a/srcpkgs/textosaurus/template b/srcpkgs/textosaurus/template
index 5223d1f5566d..bc317d479553 100644
--- a/srcpkgs/textosaurus/template
+++ b/srcpkgs/textosaurus/template
@@ -16,6 +16,7 @@ distfiles="${homepage}/archive/${version}.tar.gz
  https://github.com/martinrotter/scintilla/archive/${_scommit}.tar.gz"
 checksum="82093b6c8725d104498ce4a66e4cf5a3aa1f057b34600bd5d67413dce9bff2cf
  fad739e3493dea0f7435114ac936dc255d3b1471bd61c7e7349845ab626b95d9"
+patch_args=-Np0
 
 post_extract() {
 	cp -Trp ${XBPS_BUILDDIR}/scintilla-${_scommit} ${wrksrc}/src/libtextosaurus/3rd-party/scintilla
diff --git a/srcpkgs/texworks/template b/srcpkgs/texworks/template
index 87ca84049343..92402d6d98ee 100644
--- a/srcpkgs/texworks/template
+++ b/srcpkgs/texworks/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.tug.org/texworks"
 distfiles="https://github.com/texworks/texworks/archive/release-${version}.tar.gz"
 checksum=b4695539b9666935d2c467cc618c7d79c174e2ec728e31f72df8534862a5c290
+patch_args=-Np0
 
 do_check() {
 	: # requires xserver
diff --git a/srcpkgs/tgt/template b/srcpkgs/tgt/template
index c5a638e6e3a5..90a37ec9d1ae 100644
--- a/srcpkgs/tgt/template
+++ b/srcpkgs/tgt/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="http://stgt.sourceforge.net/"
 distfiles="https://github.com/fujita/tgt/archive/v${version}.tar.gz"
 checksum=e2255482f1a2797c115a6d545c37428b10a4ba6276a2af787da5378fa4e34e75
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/CFLAGS/MYCFLAGS/; s/\$(MYCFLAGS)/& $(CFLAGS) -Wno-error=stringop-truncation/g' usr/Makefile
diff --git a/srcpkgs/thingylaunch/template b/srcpkgs/thingylaunch/template
index 5e862376125b..6db8f5ef127a 100644
--- a/srcpkgs/thingylaunch/template
+++ b/srcpkgs/thingylaunch/template
@@ -12,6 +12,7 @@ license="BSD"
 homepage="https://gahr.ch/thingylaunch/"
 distfiles="https://github.com/gahr/${pkgname}/archive/${version}.tar.gz"
 checksum=4d9cc6b826bddb3d02836f721316bfc24c2b31f75c9c2d5077ae162eb3d60b60
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYRIGHT
diff --git a/srcpkgs/thunderbird/template b/srcpkgs/thunderbird/template
index 72155ef786e4..4d152829f945 100644
--- a/srcpkgs/thunderbird/template
+++ b/srcpkgs/thunderbird/template
@@ -12,6 +12,7 @@ license="MPL-2.0, GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.thunderbird.net/"
 distfiles="${MOZILLA_SITE}/${pkgname}/releases/${version}/source/${pkgname}-${version}.source.tar.xz"
 checksum=ad070eb27ed5087819b62495e8f96ec0c8d8827598c415648c69ef989c634676
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/tickr/template b/srcpkgs/tickr/template
index 285e2419fccf..5bd58b02022f 100644
--- a/srcpkgs/tickr/template
+++ b/srcpkgs/tickr/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.open-tickr.net/"
 distfiles="https://www.open-tickr.net/src/${pkgname}-${version}.tar.gz"
 checksum=37dd2d970cd9bf9b0ebc5e6cbf6605ea460008f577a43a7500e506e9dffcd802
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	arm*|ppc64|ppc) configure_args+=" LIBS=-lm" ;;
diff --git a/srcpkgs/tidy5/template b/srcpkgs/tidy5/template
index 616b746d8cd1..eecaf052f7d3 100644
--- a/srcpkgs/tidy5/template
+++ b/srcpkgs/tidy5/template
@@ -14,6 +14,7 @@ license="W3C"
 homepage="http://www.htacg.org/${_reponame}/"
 distfiles="https://github.com/htacg/${_reponame}/archive/${version}.tar.gz"
 checksum=5caa2c769204f506e24ea4986a45abe23f71d14f0fe968314f20065f342ffdba
+patch_args=-Np0
 
 provides="tidy-${version}_${revision}"
 replaces="tidy>0"
diff --git a/srcpkgs/tilp2/template b/srcpkgs/tilp2/template
index 276c85e6e74b..a8c9e0851d4b 100644
--- a/srcpkgs/tilp2/template
+++ b/srcpkgs/tilp2/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.ticalc.org"
 distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${version}/${pkgname}-${version}.tar.bz2"
 checksum=7b3ab363eeb52504d6ef5811c5d264f8016060bb7bd427be5a064c2ed7384e47
+patch_args=-Np0
 
 pre_configure() {
 	mkdir -p m4
diff --git a/srcpkgs/tinyxml/template b/srcpkgs/tinyxml/template
index 29c19bb162d8..291c14f84dd5 100644
--- a/srcpkgs/tinyxml/template
+++ b/srcpkgs/tinyxml/template
@@ -9,6 +9,7 @@ homepage="http://www.grinninglizard.com/tinyxml/"
 license="zlib"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_2_6_2.tar.gz"
 checksum=15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593
+patch_args=-Np0
 
 do_build() {
 	# Fix Makefile
diff --git a/srcpkgs/tlsh/template b/srcpkgs/tlsh/template
index 4ee1ccdc728a..a173f36f8225 100644
--- a/srcpkgs/tlsh/template
+++ b/srcpkgs/tlsh/template
@@ -11,6 +11,7 @@ license="Apache-2.0, BSD-3-Clause"
 homepage="https://github.com/trendmicro/tlsh"
 distfiles="https://github.com/trendmicro/tlsh/archive/${version}.tar.gz"
 checksum=a8a7972d8bafb5fd66bd597b72037356dd9882e71a7e9b5f37281751a99ce686
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i src/CMakeLists.txt -e 's/set(TLSH_SHARED_LIBRARY 0)/set(TLSH_SHARED_LIBRARY 1)/'
diff --git a/srcpkgs/tmines/template b/srcpkgs/tmines/template
index 7669477aea95..8a8a4f4a12af 100644
--- a/srcpkgs/tmines/template
+++ b/srcpkgs/tmines/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://github.com/tropf/tmines"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=7b5037c7cedd6c744ec63d10fa59b415e5e3654e52b0cfda561ac545af8576cf
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone";;
diff --git a/srcpkgs/tnftp/template b/srcpkgs/tnftp/template
index c0b75c164f25..362abdd4718c 100644
--- a/srcpkgs/tnftp/template
+++ b/srcpkgs/tnftp/template
@@ -11,6 +11,7 @@ license="BSD"
 homepage="http://netbsd.gw.com/cgi-bin/man-cgi?ftp"
 distfiles="ftp://ftp.netbsd.org/pub/NetBSD/misc/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=ba4a92b693d04179664524eef0801c8eed4447941c9855f377f98f119f221c03
+patch_args=-Np0
 
 alternatives="
  ftp:ftp:/usr/bin/${pkgname}
diff --git a/srcpkgs/tomahawk/template b/srcpkgs/tomahawk/template
index 0edbacc5f8ad..23cdba671dd8 100644
--- a/srcpkgs/tomahawk/template
+++ b/srcpkgs/tomahawk/template
@@ -31,6 +31,7 @@ desc_option_hatchet="Enable support for http://hatchet.is"
 desc_option_kde="Enable support for KDE"
 desc_option_xmpp="Enable support for XMPP"
 build_options_default="xmpp upower"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake"
diff --git a/srcpkgs/tor/template b/srcpkgs/tor/template
index 42370ea8ba21..eb10de66fa9f 100644
--- a/srcpkgs/tor/template
+++ b/srcpkgs/tor/template
@@ -15,6 +15,7 @@ homepage="https://www.torproject.org/"
 changelog="https://gitweb.torproject.org/tor.git/plain/ReleaseNotes"
 distfiles="https://dist.torproject.org/tor-${version}.tar.gz"
 checksum=57ded091e8bcdcebb0013fe7ef4a4439827cb169358c7874fd05fa00d813e227
+patch_args=-Np0
 
 conf_files="/etc/tor/torrc"
 system_accounts="tor"
diff --git a/srcpkgs/torbrowser-launcher/template b/srcpkgs/torbrowser-launcher/template
index 2d8ce5bf282e..9634f108bb05 100644
--- a/srcpkgs/torbrowser-launcher/template
+++ b/srcpkgs/torbrowser-launcher/template
@@ -14,6 +14,7 @@ homepage="https://github.com/micahflee/torbrowser-launcher"
 changelog="https://raw.githubusercontent.com/micahflee/torbrowser-launcher/master/CHANGELOG.md"
 distfiles="https://github.com/micahflee/torbrowser-launcher/archive/v${version}.tar.gz"
 checksum=58b17bd5a9a6f35fe78d83e69fdf77919ffa8c2492b1add1d47aed6237794f93
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/touchegg/template b/srcpkgs/touchegg/template
index 538277a2c683..a09ec9637486 100644
--- a/srcpkgs/touchegg/template
+++ b/srcpkgs/touchegg/template
@@ -13,6 +13,7 @@ homepage="https://github.com/JoseExposito/touchegg"
 distfiles="https://github.com/JoseExposito/touchegg/archive/${version}.tar.gz"
 checksum=efff0f2011078cea15f2f130d1501714f8e3f82b7e883e81eccf956ac7966d0e
 system_accounts="_touchegg"
+patch_args=-Np0
 
 post_install() {
 	# we don't want the package being installed to mean it should be autostarted
diff --git a/srcpkgs/trace-cmd/template b/srcpkgs/trace-cmd/template
index 34f9bcb40d42..4410e51bca9c 100644
--- a/srcpkgs/trace-cmd/template
+++ b/srcpkgs/trace-cmd/template
@@ -16,6 +16,7 @@ homepage="http://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git/"
 distfiles="http://git.kernel.org/cgit/linux/kernel/git/rostedt/${pkgname}.git/snapshot/${pkgname}-v${version}.tar.gz"
 checksum=9404fc3cf540ea795304608068c9db6cdb38b90584c7f3c43249785913d54b38
 disable_parallel_build=yes
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/share/bash-completion/completions
diff --git a/srcpkgs/traceroute/template b/srcpkgs/traceroute/template
index f92c929c300f..4a65dc7fb2e2 100644
--- a/srcpkgs/traceroute/template
+++ b/srcpkgs/traceroute/template
@@ -8,6 +8,7 @@ license="GPL-2"
 homepage="http://traceroute.sourceforge.net"
 distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz"
 checksum=3669d22a34d3f38ed50caba18cd525ba55c5c00d5465f2d20d7472e5d81603b6
+patch_args=-Np0
 
 alternatives="
  traceroute:traceroute:/usr/bin/linux-traceroute
diff --git a/srcpkgs/tracker/template b/srcpkgs/tracker/template
index 810675677fe5..c99b997dd55f 100644
--- a/srcpkgs/tracker/template
+++ b/srcpkgs/tracker/template
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later"
 homepage="https://live.gnome.org/Tracker"
 distfiles="${GNOME_SITE}/tracker/${version%.*}/tracker-${version}.tar.xz"
 checksum=bd1eb4122135296fa7b57b1c3fa0ed602cf7d06c0b8e534d0bd17ff5f97feef2
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" dbus"
diff --git a/srcpkgs/tracker3-miners/template b/srcpkgs/tracker3-miners/template
index 6ea8e49a1a51..47a75439b428 100644
--- a/srcpkgs/tracker3-miners/template
+++ b/srcpkgs/tracker3-miners/template
@@ -27,6 +27,7 @@ license="GPL-2.0-or-later"
 homepage="https://developer.gnome.org/libtracker-miner/stable"
 distfiles="${GNOME_SITE}/tracker-miners/${version%.*}/tracker-miners-${version}.tar.xz"
 checksum=c9be14871b1398e6e656a354a8f8f59e69e93169017f2b28308ef439324fd12b
+patch_args=-Np0
 
 # relies on unsupported ops in chroot
 do_check() {
diff --git a/srcpkgs/transcode/template b/srcpkgs/transcode/template
index 775cd09fc4e3..518a9c20c1ab 100644
--- a/srcpkgs/transcode/template
+++ b/srcpkgs/transcode/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://bitbucket.org/mojaves/transcode-tcforge"
 distfiles="https://bitbucket.org/mojaves/transcode-tcforge/get/release-1_1_7.tar.bz2"
 checksum=4693e3f4226f48fb37c8ae9609601724e8a276ca09f8686ddb43f8a255d994fe
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/transmission/template b/srcpkgs/transmission/template
index 5a61a0a2bdd3..794d5c49fff4 100644
--- a/srcpkgs/transmission/template
+++ b/srcpkgs/transmission/template
@@ -14,6 +14,7 @@ license="MIT, GPL-2.0-or-later"
 homepage="https://www.transmissionbt.com"
 distfiles="https://github.com/transmission/transmission-releases/raw/master/${pkgname}-${version}.tar.xz"
 checksum=9144652fe742f7f7dd6657716e378da60b751aaeda8bef8344b3eefc4db255f2
+patch_args=-Np0
 
 # Create transmission system user/group
 system_accounts="transmission"
diff --git a/srcpkgs/treesheets/template b/srcpkgs/treesheets/template
index 4cd41afbd932..fa39eb3426d0 100644
--- a/srcpkgs/treesheets/template
+++ b/srcpkgs/treesheets/template
@@ -11,6 +11,7 @@ license="Zlib"
 homepage="http://strlen.com/treesheets/"
 distfiles="https://github.com/aardappel/treesheets/archive/v${version}.tar.gz"
 checksum=84eb82f122bc7be3ded399d2511536128911477a4a69c51b26b856de2160405f
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/lib/${pkgname}
diff --git a/srcpkgs/trinity/template b/srcpkgs/trinity/template
index a7a561e89cb8..77017a15a956 100644
--- a/srcpkgs/trinity/template
+++ b/srcpkgs/trinity/template
@@ -10,6 +10,7 @@ homepage="https://github.com/kernelslacker/trinity"
 distfiles="https://github.com/kernelslacker/trinity/archive/v${version}.tar.gz"
 checksum=9abd6cea3f6bd3b36794e038317d5ed6001dc52ad3b1cd7071f6cc7c5baecd3c
 nocross="Mis-use of memfd_create declaration"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/trojita/template b/srcpkgs/trojita/template
index 8a291182b516..e12ea1749665 100644
--- a/srcpkgs/trojita/template
+++ b/srcpkgs/trojita/template
@@ -14,6 +14,7 @@ license="GPL-2,GPL-3"
 homepage="http://trojita.flaska.net/"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=e08da881721cafa00ecd772eaef6b99fd37d068cb703eeb532de0ed1ea0136d9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/trousers/template b/srcpkgs/trousers/template
index 5d962adec91a..2f8044e52f45 100644
--- a/srcpkgs/trousers/template
+++ b/srcpkgs/trousers/template
@@ -15,6 +15,7 @@ homepage="http://trousers.sourceforge.net/"
 # distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 distfiles="https://sources.voidlinux.org/trousers-${version}/trousers-${version}.tar.gz"
 checksum=ce50713a261d14b735ec9ccd97609f0ad5ce69540af560e8c3ce9eb5f2d28f47
+patch_args=-Np0
 
 make_dirs="/var/lib/tpm 0700 tss tss"
 
diff --git a/srcpkgs/tsocks/template b/srcpkgs/tsocks/template
index e1a8ff7ff7c2..e24ac3e48325 100644
--- a/srcpkgs/tsocks/template
+++ b/srcpkgs/tsocks/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://tsocks.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/tsocks/tsocks-$version.tar.gz"
 checksum=849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b347
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ttyrec/template b/srcpkgs/ttyrec/template
index cff70746cc57..144b33595d6f 100644
--- a/srcpkgs/ttyrec/template
+++ b/srcpkgs/ttyrec/template
@@ -8,6 +8,7 @@ license="BSD-4-Clause-UC"
 homepage="http://0xcc.net/ttyrec"
 distfiles="http://0xcc.net/ttyrec/${pkgname}-${version}.tar.gz"
 checksum=ef5e9bf276b65bb831f9c2554cd8784bd5b4ee65353808f82b7e2aef851587ec
+patch_args=-Np0
 
 do_build() {
 	sed -i 's/\$(CFLAGS)/$(LDFLAGS)/' Makefile
diff --git a/srcpkgs/tup/template b/srcpkgs/tup/template
index bb07b10f5826..afd6a942f1be 100644
--- a/srcpkgs/tup/template
+++ b/srcpkgs/tup/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://gittup.org/tup/index.html"
 distfiles="https://github.com/gittup/${pkgname}/archive/v${version}.tar.gz"
 checksum=9b0951afaa749186eb55d88860405b2f6b3d88632d1b5df1ec4a0bf973d8d326
+patch_args=-Np0
 
 do_configure() {
 	sed -i "s/git describe/echo ${version}/" src/tup/link.sh
diff --git a/srcpkgs/turbovnc/template b/srcpkgs/turbovnc/template
index 8bb508ee94a2..77a81c1d8c16 100644
--- a/srcpkgs/turbovnc/template
+++ b/srcpkgs/turbovnc/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://turbovnc.org"
 distfiles="${SOURCEFORGE_SITE}/turbovnc/${pkgname}-${version}.tar.gz"
 checksum=71ff553dbad24f8339e168fe90e09bc2b13c21e453f28276d0e5c9c408bd9de2
+patch_args=-Np0
 
 conf_files="/etc/*.conf"
 archs="i686* x86_64* ppc64*"
diff --git a/srcpkgs/txr/template b/srcpkgs/txr/template
index bcbe6d85b0d7..5ebfdb697ebf 100644
--- a/srcpkgs/txr/template
+++ b/srcpkgs/txr/template
@@ -15,6 +15,7 @@ changelog="http://www.kylheku.com/cgit/txr/tree/RELNOTES"
 distfiles="http://www.kylheku.com/cgit/txr/snapshot/${pkgname}-${version}.tar.bz2"
 checksum=58e3e19bb7f3f9a440761f046fdacbc4d619b11c494a4ed9f8ad25c7a2974ddc
 nopie=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" txr"
diff --git a/srcpkgs/typespeed/template b/srcpkgs/typespeed/template
index 52d5bf5291a1..a2570048b47e 100644
--- a/srcpkgs/typespeed/template
+++ b/srcpkgs/typespeed/template
@@ -12,6 +12,7 @@ homepage="http://typespeed.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum="5c860385ceed8a60f13217cc0192c4c2b4705c3e80f9866f7d72ff306eb72961"
 mutable_files="/var/games/typespeed.score"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/u2f-hidraw-policy/template b/srcpkgs/u2f-hidraw-policy/template
index 26250c88a571..dc013c10cd8c 100644
--- a/srcpkgs/u2f-hidraw-policy/template
+++ b/srcpkgs/u2f-hidraw-policy/template
@@ -11,6 +11,7 @@ license="LGPL-2.0-or-later"
 homepage="https://github.com/amluto/u2f-hidraw-policy"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=50e327a9df3dd3db3b292af41fb119cc4c8d9bc29abddfb442e972053bf5e6d1
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr
diff --git a/srcpkgs/u9fs/template b/srcpkgs/u9fs/template
index 79decd0299d0..adeadd264e52 100644
--- a/srcpkgs/u9fs/template
+++ b/srcpkgs/u9fs/template
@@ -12,6 +12,7 @@ license="custom:MIT-like"
 homepage="https://bitbucket.org/plan9-from-bell-labs/u9fs"
 distfiles="https://bitbucket.org/plan9-from-bell-labs/u9fs/get/${_commit}.tar.gz"
 checksum=201619c1c29bad1c9ed1bc886afe7b4965cfd0781b2296c9de87db10ba71615d
+patch_args=-Np0
 
 do_install() {
 	vbin u9fs
diff --git a/srcpkgs/ucspi-ssl/template b/srcpkgs/ucspi-ssl/template
index 1f2c6c36793c..c90b0c6c2378 100644
--- a/srcpkgs/ucspi-ssl/template
+++ b/srcpkgs/ucspi-ssl/template
@@ -17,6 +17,7 @@ distfiles="http://www.fehcom.de/ipnet/ucspi-ssl/ucspi-ssl-${version}.tgz"
 checksum=e7fcd4ceec351a0f36b7d27188758709a6c095460ed4dce434e0c5d463c4c4ea
 # ad hoc build system breaks parallel build and cross-compilation
 disable_parallel_build="ad hoc build system breaks parallel build"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/udptunnel/template b/srcpkgs/udptunnel/template
index dfc7ee1fe5ed..79c54ae0ad68 100644
--- a/srcpkgs/udptunnel/template
+++ b/srcpkgs/udptunnel/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="http://www.cs.columbia.edu/~lennox/udptunnel/"
 distfiles="http://www.cs.columbia.edu/~lennox/udptunnel/udptunnel-${version}.tar.gz"
 checksum=45c0e12045735bc55734076ebbdc7622c746d1fe4e6f7267fa122e2421754670
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -vfi
diff --git a/srcpkgs/ufoai/template b/srcpkgs/ufoai/template
index 3b36cf0d6db1..41c4c4998898 100644
--- a/srcpkgs/ufoai/template
+++ b/srcpkgs/ufoai/template
@@ -22,6 +22,7 @@ checksum="0c7cc3bc9efeb276f71cbe6ee8ff7c76f98d183de79f1a069fa63059cf182a8f
 replaces="ufoai-data>=0"
 ignore_elf_dirs="/usr/share/ufoai"
 broken="game doesn't work"
+patch_args=-Np0
 
 # suppress a lot of warnings
 CXXFLAGS="-Wno-cast-align -Wno-cast-qual -Wno-inline"
diff --git a/srcpkgs/ufraw/template b/srcpkgs/ufraw/template
index 476435c6abab..8cec750cdaa4 100644
--- a/srcpkgs/ufraw/template
+++ b/srcpkgs/ufraw/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://ufraw.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/ufraw/ufraw/ufraw-${version}/ufraw-${version}.tar.gz"
 checksum=f7abd28ce587db2a74b4c54149bd8a2523a7ddc09bedf4f923246ff0ae09a25e
+patch_args=-Np0
 
 build_options="extras"
 
diff --git a/srcpkgs/uftrace/template b/srcpkgs/uftrace/template
index 9f4f44d47652..ed711e2f1c06 100644
--- a/srcpkgs/uftrace/template
+++ b/srcpkgs/uftrace/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/namhyung/uftrace"
 distfiles="https://github.com/namhyung/uftrace/archive/v${version}.tar.gz"
 checksum=b8b56d540ea95c3eafe56440d6a998e0a140d53ca2584916b6ca82702795bbd9
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone"; export LDFLAGS=-largp;;
diff --git a/srcpkgs/uim/template b/srcpkgs/uim/template
index 1a782b680f78..6ea0e07ba05f 100644
--- a/srcpkgs/uim/template
+++ b/srcpkgs/uim/template
@@ -17,6 +17,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/uim/uim/wiki"
 distfiles="https://github.com/uim/uim/releases/download/${version}/uim-${version}.tar.bz2"
 checksum=34599bbcc4e5ab87832370763e38be5100984a64237555e9234a1ea225a0fadc
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/ulauncher/template b/srcpkgs/ulauncher/template
index 78888538e064..be7bdd1bdfc0 100644
--- a/srcpkgs/ulauncher/template
+++ b/srcpkgs/ulauncher/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://ulauncher.io/"
 distfiles="https://github.com/Ulauncher/Ulauncher/releases/download/${version}/${pkgname}_${version}.tar.gz"
 checksum=c4433bb06d0d456a2e0eee8dc4d03de164f273290484f2380728c3936ca31e3a
+patch_args=-Np0
 
 pre_build() {
 	export DISPLAY=
diff --git a/srcpkgs/ulogd/template b/srcpkgs/ulogd/template
index 55e9ae34a0e1..98a990f5af42 100644
--- a/srcpkgs/ulogd/template
+++ b/srcpkgs/ulogd/template
@@ -15,6 +15,7 @@ distfiles="${homepage}/files/${pkgname}-${version}.tar.bz2"
 checksum=990a05494d9c16029ba0a83f3b7294fc05c756546b8d60d1c1572dc25249a92b
 CFLAGS="-D_GNU_SOURCE"
 system_accounts="_ulogd"
+patch_args=-Np0
 
 post_install() {
 	vinstall ulogd.conf 644 etc
diff --git a/srcpkgs/unison/template b/srcpkgs/unison/template
index c3cb8e454c85..a9f349f00f76 100644
--- a/srcpkgs/unison/template
+++ b/srcpkgs/unison/template
@@ -10,6 +10,7 @@ homepage="http://www.cis.upenn.edu/~bcpierce/unison/"
 distfiles="https://github.com/bcpierce00/unison/archive/v${version}.tar.gz"
 checksum=0c287d17f52729440b2bdc28edf4d19b2d5ea5869983d78e780d501c5866914b
 nocross="OCaml does not cross compile"
+patch_args=-Np0
 
 do_build() {
 	CFLAGS= make ${makejobs} UISTYLE=text DEBUGGING=false THREADS=true
diff --git a/srcpkgs/unknown-horizons/template b/srcpkgs/unknown-horizons/template
index 56404addb864..fa7dc8ad7edc 100644
--- a/srcpkgs/unknown-horizons/template
+++ b/srcpkgs/unknown-horizons/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later, MIT, BSD-3-Clause, CC-BY-SY-3.0"
 homepage="http://unknown-horizons.org"
 distfiles="https://github.com/unknown-horizons/unknown-horizons/archive/${version}.tar.gz"
 checksum=a417fd3d342212fd190e4f21be82ef13c10e1ed7c288fbbe46e46200cf3de4d8
+patch_args=-Np0
 
 pre_install() {
 	python3 horizons/engine/generate_atlases.py 2048
diff --git a/srcpkgs/urbanterror/template b/srcpkgs/urbanterror/template
index 947a12cf2d8f..27453d5f8e57 100644
--- a/srcpkgs/urbanterror/template
+++ b/srcpkgs/urbanterror/template
@@ -12,6 +12,7 @@ homepage="https://github.com/Barbatos/ioq3-for-UrbanTerror-4"
 distfiles="https://github.com/Barbatos/ioq3-for-UrbanTerror-4/archive/release-${version}.tar.gz"
 checksum=ce9d09a8ad149f8a1d36a85a586e1dd8ec9b8dcb3e5e9e82ec2a33017655bf43
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/urlview/template b/srcpkgs/urlview/template
index 7fdbb3119577..5144c2ea8b4d 100644
--- a/srcpkgs/urlview/template
+++ b/srcpkgs/urlview/template
@@ -12,6 +12,7 @@ license="GPL-2.0"
 homepage="https://github.com/sigpipe/urlview"
 distfiles="https://gnupg.org/ftp/mutt/contrib/$pkgname-$version.tar.gz"
 checksum=74d18026e84e3cd70a3fdd1a7247a68031b0c1c1c6d761d64b7063ff71091cc3
+patch_args=-Np0
 
 pre_configure() {
 	sed -i '/install-data-local/,/^$/d' Makefile.am
diff --git a/srcpkgs/usbguard/template b/srcpkgs/usbguard/template
index c2c6829a13ad..54ad0e6e9df9 100644
--- a/srcpkgs/usbguard/template
+++ b/srcpkgs/usbguard/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://usbguard.github.io"
 distfiles="https://github.com/USBGuard/usbguard/releases/download/usbguard-$version/usbguard-$version.tar.gz"
 checksum=5617986cd5dd1a2d311041648a1977d836cf4e33a4121d7f82599f21496abc42
+patch_args=-Np0
 
 post_install() {
 	vsv usbguard
diff --git a/srcpkgs/uwm/template b/srcpkgs/uwm/template
index 071a909fa447..f7fc99bf8be3 100644
--- a/srcpkgs/uwm/template
+++ b/srcpkgs/uwm/template
@@ -10,5 +10,6 @@ license="GPL-2.0-only"
 homepage="http://udeproject.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/project/udeproject/UWM/uwm-${version}%20stable/uwm-${version}.tar.gz"
 checksum=dd056857c98b75c9203861917db33bcaf87ba074bdd204cf732ce4cb777cb408
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/uwsgi/template b/srcpkgs/uwsgi/template
index 507987723d7b..30dc164b3334 100644
--- a/srcpkgs/uwsgi/template
+++ b/srcpkgs/uwsgi/template
@@ -10,6 +10,7 @@ license="GPL-2.0-linking-exception"
 homepage="http://projects.unbit.it/uwsgi"
 distfiles="https://github.com/unbit/uwsgi/archive/${version}.tar.gz"
 checksum=bf17cdbb9bd8bcb7c1633e34d9d7308cb4cc19eb0ff2d61057f840c1ba1fc41b
+patch_args=-Np0
 
 _libdir=usr/lib/uwsgi
 
diff --git a/srcpkgs/v4l-utils/template b/srcpkgs/v4l-utils/template
index 6ef76bb1e90d..590f2509212c 100644
--- a/srcpkgs/v4l-utils/template
+++ b/srcpkgs/v4l-utils/template
@@ -14,6 +14,7 @@ homepage="http://freshmeat.net/projects/libv4l"
 distfiles="http://linuxtv.org/downloads/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=956118713f7ccb405c55c7088a6a2490c32d54300dd9a30d8d5008c28d3726f7
 conf_files="/etc/rc_maps.cfg"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone"
diff --git a/srcpkgs/vala-panel/template b/srcpkgs/vala-panel/template
index 81ab10b9d2f0..de9a03c14052 100644
--- a/srcpkgs/vala-panel/template
+++ b/srcpkgs/vala-panel/template
@@ -13,6 +13,7 @@ license="LGPL-3.0-or-later"
 homepage="https://gitlab.com/vala-panel-project/vala-panel"
 distfiles="https://gitlab.com/vala-panel-project/vala-panel/uploads/$_glhash/vala-panel-${version}.tar.xz"
 checksum=ee3a9e000133da43b218ecd1738463c2de3f45783a5a09a11b9c263df4e233d1
+patch_args=-Np0
 
 # Package build options
 build_options="wayland"
diff --git a/srcpkgs/vanitygen/template b/srcpkgs/vanitygen/template
index 8fb4fa5ca443..e9baabe67a3e 100644
--- a/srcpkgs/vanitygen/template
+++ b/srcpkgs/vanitygen/template
@@ -11,6 +11,7 @@ homepage="https://github.com/exploitagency/vanitygen-plus"
 changelog="https://raw.githubusercontent.com/exploitagency/vanitygen-plus/master/CHANGELOG"
 distfiles="https://github.com/exploitagency/vanitygen-plus/archive/PLUS${version}.tar.gz"
 checksum=976a9afe2a4470551a8b6b0da97101a3a2e6c54c5a26dc870ae755bb2d8c7041
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC CFLAGS="$CFLAGS $LDFLAGS" ${makejobs}
diff --git a/srcpkgs/vapoursynth-editor/template b/srcpkgs/vapoursynth-editor/template
index 19903b77a6e3..0dc9f4bf80b5 100644
--- a/srcpkgs/vapoursynth-editor/template
+++ b/srcpkgs/vapoursynth-editor/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://bitbucket.org/mystery_keeper/vapoursynth-editor"
 distfiles="${homepage}/get/r${version}.tar.gz"
 checksum=41e09a6c1411536f7a223a16263145b31de4715189cfe2ebe62b4ad69d6ec342
+patch_args=-Np0
 
 pre_configure() {
 	mv pro/pro.pro .
diff --git a/srcpkgs/varnish/template b/srcpkgs/varnish/template
index fff05f21f786..8181268d7077 100644
--- a/srcpkgs/varnish/template
+++ b/srcpkgs/varnish/template
@@ -13,6 +13,7 @@ homepage="https://varnish-cache.org/"
 distfiles="https://varnish-cache.org/_downloads/${pkgname}-${version}.tgz"
 checksum=d5ff82f2041276dfaeb9a652a88b6d7287cfcf7ca345bb02c438fb65d2bca2e5
 lib32disabled=yes
+patch_args=-Np0
 
 build_options="pcrejit"
 
diff --git a/srcpkgs/vboot-utils/template b/srcpkgs/vboot-utils/template
index 591697d20cf4..14117b36c4f3 100644
--- a/srcpkgs/vboot-utils/template
+++ b/srcpkgs/vboot-utils/template
@@ -18,6 +18,7 @@ checksum=@3d8edd7e3a1672b29f02d93c4cf89f19ad7477694968b0653aa968783c8ba3e6
 # 2crypto specifies a section for some variables, which lead to text relocations in the binary
 # let's play it safe and disable PIE
 nopie=yes
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	x86_64*) _arch=x86_64 ;;
diff --git a/srcpkgs/vde2/template b/srcpkgs/vde2/template
index 5d0efce366ab..e502920a93d9 100644
--- a/srcpkgs/vde2/template
+++ b/srcpkgs/vde2/template
@@ -19,6 +19,7 @@ license="GPL-2, LGPL-2.1, BSD"
 homepage="http://sourceforge.net/projects/vde/"
 distfiles="${SOURCEFORGE_SITE}/vde/vde2-$version.tar.bz2"
 checksum=cbea9b7e03097f87a6b5e98b07890d2275848f1fe4b9fcda77b8994148bc9542
+patch_args=-Np0
 
 lib32disabled=yes
 disable_parallel_build=yes
diff --git a/srcpkgs/vdirsyncer/template b/srcpkgs/vdirsyncer/template
index 906b77950d36..f1e783316597 100644
--- a/srcpkgs/vdirsyncer/template
+++ b/srcpkgs/vdirsyncer/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://vdirsyncer.pimutils.org/"
 distfiles="${PYPI_SITE}/v/vdirsyncer/vdirsyncer-${version}.tar.gz"
 checksum=bfdb422f52e1d4d60bd0635d203fb59fa7f613397d079661eb48e79464ba13c5
+patch_args=-Np0
 
 pre_build() {
 	sed -i setup.py \
diff --git a/srcpkgs/vdrift/template b/srcpkgs/vdrift/template
index cc586376b4e6..c1c1989627eb 100644
--- a/srcpkgs/vdrift/template
+++ b/srcpkgs/vdrift/template
@@ -17,6 +17,7 @@ homepage="http://vdrift.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version//./-}.tar.bz2"
 checksum=458d45d59075c2ce943ec6bc271a5bd0eb6bc6ed123670b65038703345020be3
 python_version=2
+patch_args=-Np0
 
 post_install() {
 	# install .desktop file
diff --git a/srcpkgs/virglrenderer/template b/srcpkgs/virglrenderer/template
index 00a371c32a5e..8bfba79b29a6 100644
--- a/srcpkgs/virglrenderer/template
+++ b/srcpkgs/virglrenderer/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://gitlab.freedesktop.org/virgl/virglrenderer"
 distfiles="https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/virglrenderer-${version}/virglrenderer-virglrenderer-${version}.tar.gz"
 checksum=9fa93095cd9a3e5b13c740e5e3b656a989356732bdaf3e22acb7c38a1f1f4411
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/virtualbox-ose/template b/srcpkgs/virtualbox-ose/template
index b686236e1b0e..e95fd8cfbe64 100644
--- a/srcpkgs/virtualbox-ose/template
+++ b/srcpkgs/virtualbox-ose/template
@@ -10,6 +10,7 @@ homepage="https://www.virtualbox.org"
 changelog="https://www.virtualbox.org/wiki/Changelog"
 distfiles="http://download.virtualbox.org/virtualbox/${version}/VirtualBox-${version}.tar.bz2"
 checksum=e690c91974a2e7a5aca2c0939ad514382f9a2136797a5e0b96aab778e42bc8a7
+patch_args=-Np0
 
 nopie=yes
 lib32disabled=yes
diff --git a/srcpkgs/virtuoso/template b/srcpkgs/virtuoso/template
index 01de503942c0..7a7460e35af0 100644
--- a/srcpkgs/virtuoso/template
+++ b/srcpkgs/virtuoso/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/openlink/virtuoso-opensource/archive/v${version}.t
 checksum=3e4807e94098b8265f8cf00867d1215bb1e9d0d274878e59a420742d2de471c2
 # cannot execute binary file: Exec format error
 nocross="https://build.voidlinux.org/builders/armv6l_builder/builds/29187/steps/shell_3/logs/stdio"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" libexecinfo-devel"; LDFLAGS+=" -lexecinfo";;
diff --git a/srcpkgs/visitors/template b/srcpkgs/visitors/template
index 39f09c00fd28..b35eff508246 100644
--- a/srcpkgs/visitors/template
+++ b/srcpkgs/visitors/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://www.hping.org/visitors/"
 distfiles="http://www.hping.org/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=d2149e33ffe96b1f52b0587cff65973b0bc0b24ec43cdf072a782c1bd52148ab
+patch_args=-Np0
 
 do_install() {
 	vbin visitors
diff --git a/srcpkgs/vitetris/template b/srcpkgs/vitetris/template
index 833a3cb491ee..9fd22cf800dd 100644
--- a/srcpkgs/vitetris/template
+++ b/srcpkgs/vitetris/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="http://www.victornils.net/tetris/"
 distfiles="https://github.com/vicgeralds/vitetris/archive/v${version}.tar.gz"
 checksum=699443df03c8d4bf2051838c1015da72039bbbdd0ab0eede891c59c840bdf58d
+patch_args=-Np0
 
 post_install() {
 	sed -i 's/Exec=tetris/Exec=vitetris/' $DESTDIR/usr/share/applications/vitetris.desktop
diff --git a/srcpkgs/vlc/template b/srcpkgs/vlc/template
index c2cc1a43d314..09366bf5226c 100644
--- a/srcpkgs/vlc/template
+++ b/srcpkgs/vlc/template
@@ -18,6 +18,7 @@ homepage="https://www.videolan.org/vlc/"
 changelog="https://www.videolan.org/developers/vlc-branch/NEWS"
 distfiles="https://download.videolan.org/pub/videolan/vlc/${version}/vlc-${version}.tar.xz"
 checksum=7b9635061ae14dfdf71623a7fd479b4f0d6929de75ff3c23d39b6b4b65b31b56
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/voltron/template b/srcpkgs/voltron/template
index 310e41474fb2..4e465b5bc59e 100644
--- a/srcpkgs/voltron/template
+++ b/srcpkgs/voltron/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/snare/voltron"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=2919dabe5ebc05672dcedf400754e3fbce8c3b9f8608a64cea205591f3b47f63
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/volumeicon/template b/srcpkgs/volumeicon/template
index d92993ab771b..fedb3a7ed59b 100644
--- a/srcpkgs/volumeicon/template
+++ b/srcpkgs/volumeicon/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only, ISC, MIT"
 homepage="http://softwarebakery.com/maato/volumeicon.html"
 distfiles="http://softwarebakery.com/maato/files/volumeicon/volumeicon-${version}.tar.gz"
 checksum=24b8c1d0a81d708b201ce6e67301fc175d65588d892d01859f667b8db8a05da0
+patch_args=-Np0
 
 post_patch() {
 	sed -ne '/Copyright/,/IN THE SOFTWARE/s/ [*] *//p' src/bind.c >LICENSE.MIT
diff --git a/srcpkgs/vpcs/template b/srcpkgs/vpcs/template
index 34b4c0ddd86b..22871df35850 100644
--- a/srcpkgs/vpcs/template
+++ b/srcpkgs/vpcs/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="https://sourceforge.net/projects/vpcs"
 distfiles="${SOURCEFORGE_SITE}/project/vpcs/${version}/${pkgname}-${version}-src.tbz"
 checksum=dca602d0571ba852c916632c4c0060aa9557dd744059c0f7368860cfa8b3c993
+patch_args=-Np0
 
 archs="i686* x86_64*"
 
diff --git a/srcpkgs/vpn-ws/template b/srcpkgs/vpn-ws/template
index 498ca5775a82..673af28f5f35 100644
--- a/srcpkgs/vpn-ws/template
+++ b/srcpkgs/vpn-ws/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/unbit/vpn-ws"
 distfiles="https://github.com/unbit/vpn-ws/archive/v${version}.tar.gz"
 checksum=f35d16d192ef333390ccc7d342df4392676a86502fa087f310eab9758afd565a
+patch_args=-Np0
 
 CFLAGS+=" -Wno-stringop-truncation -fcommon"
 
diff --git a/srcpkgs/vsftpd/template b/srcpkgs/vsftpd/template
index 2e177d8b8987..a6def875a1a7 100644
--- a/srcpkgs/vsftpd/template
+++ b/srcpkgs/vsftpd/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://security.appspot.com/vsftpd.html"
 distfiles="https://security.appspot.com/downloads/${pkgname}-${version}.tar.gz"
 checksum=6b9421bd27e8a6cdeed5b31154f294a20b003a11a26c09500715a0a6b1b86a26
+patch_args=-Np0
 
 system_accounts="ftp"
 ftp_pgroup=nogroup
diff --git a/srcpkgs/vte3/template b/srcpkgs/vte3/template
index 346ebf038640..e15615e6d642 100644
--- a/srcpkgs/vte3/template
+++ b/srcpkgs/vte3/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later, LGPL-2.1-or-later, LGPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Terminal/VTE"
 distfiles="${GNOME_SITE}/vte/${version%.*}/vte-${version}.tar.xz"
 checksum=12fb41a9ff8e03c5f1711b46560910a4b9b3102aec3e9e7609ceef4dfa98aa2a
+patch_args=-Np0
 
 # Suppress warnings as errors for NULL format strings (musl libc)
 CXXFLAGS="-Wno-error=format="
diff --git a/srcpkgs/w_scan/template b/srcpkgs/w_scan/template
index eae95b0654ee..b4e2774eb925 100644
--- a/srcpkgs/w_scan/template
+++ b/srcpkgs/w_scan/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://wirbel.htpc-forum.de/w_scan/index2.html"
 distfiles="http://wirbel.htpc-forum.de/w_scan/w_scan-${version}.tar.bz2"
 checksum="38e0f38a7bf06cff6d6ea01652ad4ee60da2cb0e937360468f936da785b46ffe"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/waifu2x-converter-cpp/template b/srcpkgs/waifu2x-converter-cpp/template
index 4030c6f0da06..269cdd6c82c4 100644
--- a/srcpkgs/waifu2x-converter-cpp/template
+++ b/srcpkgs/waifu2x-converter-cpp/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/DeadSix27/waifu2x-converter-cpp"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=e10bd5c64015553d1340988cf886aa51ed3cf4108f1a3ba864b3ea818426de7d
+patch_args=-Np0
 
 # silly workaround to prevent vector/bool/etc from being defined
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/webkit2gtk/template b/srcpkgs/webkit2gtk/template
index ae7e80744d0b..6eb2f5a8f471 100644
--- a/srcpkgs/webkit2gtk/template
+++ b/srcpkgs/webkit2gtk/template
@@ -38,6 +38,7 @@ homepage="https://webkitgtk.org/"
 distfiles="${homepage}/releases/webkitgtk-${version}.tar.xz"
 checksum=136117317f70f66486f71b8edf5e46f8776403c5d8a296e914b11a36ef836917
 make_check=no
+patch_args=-Np0
 
 build_options="gir wayland x11 bubblewrap jit sampling_profiler minibrowser
  clang lto"
diff --git a/srcpkgs/wicd/template b/srcpkgs/wicd/template
index d4fe01b557d5..b8ecfc8f106d 100644
--- a/srcpkgs/wicd/template
+++ b/srcpkgs/wicd/template
@@ -15,6 +15,7 @@ homepage="http://wicd.sourceforge.net"
 distfiles="http://launchpad.net/wicd/1.7/${version}/+download/wicd-${version}.tar.gz"
 checksum=67989614004773db349791c37675efb914d084bdb221356a05e4369c35e7eb62
 python_version=2
+patch_args=-Np0
 
 do_build() {
 	python2 setup.py configure --verbose --no-install-init \
diff --git a/srcpkgs/widelands/template b/srcpkgs/widelands/template
index d0402050262e..7326e3f0cf45 100644
--- a/srcpkgs/widelands/template
+++ b/srcpkgs/widelands/template
@@ -17,6 +17,7 @@ homepage="http://www.widelands.org/"
 distfiles="https://github.com/widelands/widelands/archive/build${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=601e0e4c6f91b3fb0ece2cd1b83ecfb02344a1b9194fbb70ef3f70e06994e357
 replaces="widelands-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-DU_USING_ICU_NAMESPACE=1"
 
diff --git a/srcpkgs/wildmidi/template b/srcpkgs/wildmidi/template
index 634ad5bc88a5..b12ae74cd617 100644
--- a/srcpkgs/wildmidi/template
+++ b/srcpkgs/wildmidi/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later, LGPL-3.0-only"
 homepage="https://www.mindwerks.net/projects/wildmidi"
 distfiles="https://github.com/Mindwerks/${pkgname}/archive/${pkgname}-${version}.tar.gz"
 checksum=6f267c8d331e9859906837e2c197093fddec31829d2ebf7b958cf6b7ae935430
+patch_args=-Np0
 
 post_install() {
 	vsconf ${FILESDIR}/wildmidi.cfg
diff --git a/srcpkgs/wine/template b/srcpkgs/wine/template
index 68e6045d5a2b..1d45aeb5459b 100644
--- a/srcpkgs/wine/template
+++ b/srcpkgs/wine/template
@@ -15,6 +15,7 @@ distfiles="https://dl.winehq.org/wine/source/${version%.*}.x/wine-${_pkgver}.tar
  https://github.com/wine-staging/wine-staging/archive/v${_pkgver}.tar.gz"
 checksum="58ede148482d49188262d5a2d0c9d700a74c69c51ccaa11c5adf63d3f314419f
  fe3fbea8b31eab63c5aec0418041e012dc3f7fc7951b8df97e42d542041f01df"
+patch_args=-Np0
 
 build_options="mingw staging"
 build_options_default="mingw"
diff --git a/srcpkgs/wineasio/template b/srcpkgs/wineasio/template
index bc529e72b3cc..b64054e6cc62 100644
--- a/srcpkgs/wineasio/template
+++ b/srcpkgs/wineasio/template
@@ -18,6 +18,7 @@ distfiles="${SOURCEFORGE_SITE}/wineasio/${pkgname}-${version}.tar.gz
 	https://www.steinberg.net/sdk_downloads/asiosdk2.3.zip"
 checksum="9fbc2d10a4cec307dc0558bed82b887c864424d16da40a80f1d80f907d92af0b
 	69225020e9144af568784c6076b55939a55369edaf0ffcdf4d5e5b5898f31b9b"
+patch_args=-Np0
 
 pre_configure() {
 	cp -v ../ASIOSDK2.3/common/asio.h asio.h
diff --git a/srcpkgs/winusb/template b/srcpkgs/winusb/template
index 64ec8fce12b0..5d97248df431 100644
--- a/srcpkgs/winusb/template
+++ b/srcpkgs/winusb/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="http://en.congelli.eu/prog_info_winusb.html"
 distfiles="http://ponce.cc/slackware/sources/repo/${pkgname}-${version}.tar.gz"
 checksum=7bd8d2e63651134bd4173dcf358708fb9e6de1677c088e67d45995a1d5066bc9
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	x86_64*) depends+=" grub-x86_64-efi"; makedepends+=" grub-x86_64-efi" ;;
diff --git a/srcpkgs/wireshark/template b/srcpkgs/wireshark/template
index 78a97130f689..9b54aab6a0da 100644
--- a/srcpkgs/wireshark/template
+++ b/srcpkgs/wireshark/template
@@ -19,6 +19,7 @@ homepage="https://www.wireshark.org"
 distfiles="https://www.wireshark.org/download/src/${pkgname}-${version}.tar.xz"
 checksum=de1aafd100a1e1207c850d180e97dd91ab8da0f5eb6beec545f725cdb145d333
 system_groups="wireshark"
+patch_args=-Np0
 
 CFLAGS="-DNDEBUG -I${XBPS_CROSS_BASE}/usr/include/lua5.2"
 CXXFLAGS="-DNDEBUG -I${XBPS_CROSS_BASE}/usr/include/lua5.2"
diff --git a/srcpkgs/wm2/template b/srcpkgs/wm2/template
index 5109f3154942..835883ad15a4 100644
--- a/srcpkgs/wm2/template
+++ b/srcpkgs/wm2/template
@@ -10,6 +10,7 @@ license="BSD"
 homepage="http://www.all-day-breakfast.com/wm2"
 distfiles="http://www.all-day-breakfast.com/wm2/wm2-${version}.tar.gz"
 checksum=a6c3352390f958c5033408ce73e1abd9677372a7c8c5949e39a62fda433b054d
+patch_args=-Np0
 
 do_install() {
 	vbin wm2
diff --git a/srcpkgs/woff2/template b/srcpkgs/woff2/template
index 9af0c9f84283..a7f78a7002c7 100644
--- a/srcpkgs/woff2/template
+++ b/srcpkgs/woff2/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/google/woff2"
 distfiles="https://github.com/google/woff2/archive/v${version}.tar.gz"
 checksum=add272bb09e6384a4833ffca4896350fdb16e0ca22df68c0384773c67a175594
+patch_args=-Np0
 
 libwoff2common1.0.2_package() {
 	short_desc+=" - common library"
diff --git a/srcpkgs/wordgrinder/template b/srcpkgs/wordgrinder/template
index f742e039123b..521b18d044d1 100644
--- a/srcpkgs/wordgrinder/template
+++ b/srcpkgs/wordgrinder/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://cowlark.com/wordgrinder"
 distfiles="https://github.com/davidgiven/wordgrinder/archive/${version}.tar.gz"
 checksum=856cbed2b4ccd5127f61c4997a30e642d414247970f69932f25b4b5a81b18d3f
+patch_args=-Np0
 
 do_configure() {
 	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig:${XBPS_CROSS_BASE}/usr/share/pkgconfig
diff --git a/srcpkgs/workrave/template b/srcpkgs/workrave/template
index 151ffd7e38a0..7ba6ba02ebbc 100644
--- a/srcpkgs/workrave/template
+++ b/srcpkgs/workrave/template
@@ -18,6 +18,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.workrave.org/"
 distfiles="https://github.com/rcaelers/${pkgname}/archive/v${_realversion}.tar.gz"
 checksum=b9c8d1aaae16ca55c98d361a392f879a306a4ecf6db28663a7e96d0c205dabc0
+patch_args=-Np0
 
 build_options="pulseaudio"
 
diff --git a/srcpkgs/wtype/template b/srcpkgs/wtype/template
index 962c7cf82bec..6cb9a5bf481a 100644
--- a/srcpkgs/wtype/template
+++ b/srcpkgs/wtype/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/atx/wtype"
 distfiles="https://github.com/atx/${pkgname}/archive/v${version}.tar.gz"
 checksum=35615e61e57576a240d10308f9101ceb2ec7b3554fac60119b1416b84c1694b2
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/wvstreams/template b/srcpkgs/wvstreams/template
index 068c21944270..ace63917d2bc 100644
--- a/srcpkgs/wvstreams/template
+++ b/srcpkgs/wvstreams/template
@@ -13,6 +13,7 @@ checksum=8403f5fbf83aa9ac0c6ce15d97fd85607488152aa84e007b7d0621b8ebc07633
 configure_args="--sbindir=/usr/bin --without-dbus --without-tcl --without-qt"
 conf_files="/etc/uniconf.conf"
 replaces="uniconf>=0"
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/wxPython4/template b/srcpkgs/wxPython4/template
index 1f32be9131ce..aa2e9c4db957 100644
--- a/srcpkgs/wxPython4/template
+++ b/srcpkgs/wxPython4/template
@@ -16,6 +16,7 @@ license="custom:wxWindows"
 homepage="http://www.wxpython.org/"
 distfiles="${PYPI_SITE}/w/wxPython/wxPython-${version}.tar.gz"
 checksum=3be608bfdede3063678cc703453850ab0a018b82bafd5ee057302250b18f0233
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc} -I${XBPS_CROSS_BASE}/usr/include"
diff --git a/srcpkgs/wxWidgets-gtk3/template b/srcpkgs/wxWidgets-gtk3/template
index fe6dc777392b..fab25e0be351 100644
--- a/srcpkgs/wxWidgets-gtk3/template
+++ b/srcpkgs/wxWidgets-gtk3/template
@@ -15,6 +15,7 @@ license="custom:wxWindows"
 homepage="https://www.wxwidgets.org"
 distfiles="https://github.com/wxWidgets/wxWidgets/releases/download/v${version}/wxWidgets-${version}.tar.bz2"
 checksum=440f6e73cf5afb2cbf9af10cec8da6cdd3d3998d527598a53db87099524ac807
+patch_args=-Np0
 
 post_install() {
 	local _config="gtk3-unicode-3.0"
diff --git a/srcpkgs/wxWidgets/template b/srcpkgs/wxWidgets/template
index c7e8f9f3a381..1f220c311482 100644
--- a/srcpkgs/wxWidgets/template
+++ b/srcpkgs/wxWidgets/template
@@ -16,6 +16,7 @@ license="wxWindows"
 homepage="https://www.wxwidgets.org/"
 distfiles="https://github.com/wxWidgets/wxWidgets/releases/download/v${version}/wxWidgets-${version}.tar.bz2"
 checksum=440f6e73cf5afb2cbf9af10cec8da6cdd3d3998d527598a53db87099524ac807
+patch_args=-Np0
 
 post_install() {
 	local _config="gtk2-unicode-3.0"
diff --git a/srcpkgs/x11vnc/template b/srcpkgs/x11vnc/template
index 4b8ff04a9ebe..fabffd609621 100644
--- a/srcpkgs/x11vnc/template
+++ b/srcpkgs/x11vnc/template
@@ -13,6 +13,7 @@ homepage="http://www.karlrunge.com/x11vnc/"
 changelog="https://raw.githubusercontent.com/LibVNC/x11vnc/master/NEWS"
 distfiles="https://github.com/LibVNC/${pkgname}/archive/${version}.tar.gz"
 checksum=885e5b5f5f25eec6f9e4a1e8be3d0ac71a686331ee1cfb442dba391111bd32bd
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template
index 2b858bad487f..974fad438b4c 100644
--- a/srcpkgs/x265/template
+++ b/srcpkgs/x265/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://x265.org/"
 distfiles="https://bitbucket.org/multicoreware/x265_git/get/${version}.tar.gz"
 checksum=7f2771799bea0f53b5ab47603d5bea46ea2a221e047a7ff398115e9976fd5f86
+patch_args=-Np0
 
 build_options="altivec assembly"
 
diff --git a/srcpkgs/x42-plugins/template b/srcpkgs/x42-plugins/template
index 432739cded19..e8aa6531adf5 100644
--- a/srcpkgs/x42-plugins/template
+++ b/srcpkgs/x42-plugins/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://x42-plugins.com"
 distfiles="https://gareus.org/misc/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=4423ea27ccc3f6e93a687d344a8ad5177b830d2bac25be8c36ae12ed0e3092e4
+patch_args=-Np0
 
 pre_build() {
 	export OPTIMIZATIONS="-fomit-frame-pointer -O3 -fno-finite-math-only -DNDEBUG"
diff --git a/srcpkgs/xapian-core/template b/srcpkgs/xapian-core/template
index 369cccb082f0..9473eb738d20 100644
--- a/srcpkgs/xapian-core/template
+++ b/srcpkgs/xapian-core/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.xapian.org/"
 distfiles="https://oligarchy.co.uk/xapian/${version}/${pkgname}-${version}.tar.xz"
 checksum=196ddbb4ad10450100f0991a599e4ed944cbad92e4a6fe813be6dce160244b77
+patch_args=-Np0
 
 # xapian-config needs the .la
 keep_libtool_archives=yes
diff --git a/srcpkgs/xar/template b/srcpkgs/xar/template
index 79117d197a99..4e3ca4b5477b 100644
--- a/srcpkgs/xar/template
+++ b/srcpkgs/xar/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/mackyle/xar"
 distfiles="https://github.com/downloads/mackyle/xar/${pkgname}-${version}.tar.gz"
 checksum=ee46089968457cf710b8cf1bdeb98b7ef232eb8a4cdeb34502e1f16ef4d2153e
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 *-musl)
diff --git a/srcpkgs/xautolock/template b/srcpkgs/xautolock/template
index 673e57c9a787..676b1c5161eb 100644
--- a/srcpkgs/xautolock/template
+++ b/srcpkgs/xautolock/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="http://www.ibiblio.org/pub/Linux/X11/screensavers/"
 distfiles="${homepage}/${pkgname}-${version}.tgz"
 checksum=11f0275175634e6db756e96f5713ec91b8b1c41f8663df54e8a5d27dc71c4da2
+patch_args=-Np0
 
 do_build() {
 	CC=cc xmkmf
diff --git a/srcpkgs/xava/template b/srcpkgs/xava/template
index fa16f119e240..e4e7faa656ac 100644
--- a/srcpkgs/xava/template
+++ b/srcpkgs/xava/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/nikp123/xava"
 distfiles="https://github.com/nikp123/xava/archive/${version}.tar.gz"
 checksum=b38b810e4bfd71aff44f223b444ae4f158eb8d6428c5e9d42697343ccb5a19f9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/xboxdrv/template b/srcpkgs/xboxdrv/template
index 2b4905d88909..4f22555872a9 100644
--- a/srcpkgs/xboxdrv/template
+++ b/srcpkgs/xboxdrv/template
@@ -13,6 +13,7 @@ homepage="https://xboxdrv.gitlab.io/"
 distfiles="https://xboxdrv.gitlab.io/xboxdrv-linux-${version}.tar.bz2"
 checksum=f4fb8c09c0ce3841798f129ae4c2caf3f6db9786d78ad941994e425e3ffc168a
 python_version=3
+patch_args=-Np0
 
 do_install() {
 	make PREFIX=/usr DESTDIR=${DESTDIR} install
diff --git a/srcpkgs/xcolorsel/template b/srcpkgs/xcolorsel/template
index f3efb02dc904..d6551e23f241 100644
--- a/srcpkgs/xcolorsel/template
+++ b/srcpkgs/xcolorsel/template
@@ -16,6 +16,7 @@ homepage="http://packages.debian.org/stable/x11/xcolorsel"
 distfiles="${DEBIAN_SITE}/main/x/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=ba0813af427dfab7dfbd9eaadbedd217d432f8141179ac43bb39393b1424f7a2
 nocross=yes
+patch_args=-Np0
 
 do_configure() {
 	xmkmf -a -DHasSELinux=0 -DUseConfDirForAppDefaults=0
diff --git a/srcpkgs/xdg-utils/template b/srcpkgs/xdg-utils/template
index d4094a292126..fe7a9b7deb5a 100644
--- a/srcpkgs/xdg-utils/template
+++ b/srcpkgs/xdg-utils/template
@@ -13,6 +13,7 @@ homepage="https://www.freedesktop.org/wiki/Software/xdg-utils/"
 #changelog="https://cgit.freedesktop.org/xdg/xdg-utils/plain/ChangeLog"
 distfiles="https://portland.freedesktop.org/download/${pkgname}-${version}.tar.gz"
 checksum=d798b08af8a8e2063ddde6c9fa3398ca81484f27dec642c5627ffcaa0d4051d9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/xerces-c/template b/srcpkgs/xerces-c/template
index 56f12c4aab08..ba0edf7c4a63 100644
--- a/srcpkgs/xerces-c/template
+++ b/srcpkgs/xerces-c/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="http://xerces.apache.org/xerces-c/"
 distfiles="http://archive.apache.org/dist/xerces/c/3/sources/${pkgname}-${version}.tar.bz2"
 checksum=45c2329e684405f2b8854ecbddfb8d5b055cdf0fe4d35736cc352c504989bbb6
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/xf86-input-mtrack/template b/srcpkgs/xf86-input-mtrack/template
index 0f78142030d3..852900101d59 100644
--- a/srcpkgs/xf86-input-mtrack/template
+++ b/srcpkgs/xf86-input-mtrack/template
@@ -13,6 +13,7 @@ homepage="http://xorg.freedesktop.org/"
 distfiles="https://github.com/p2rkw/${pkgname}/archive/v${version}.tar.gz"
 checksum=a976723720028832afd45bfcaab479f60833ff6f1c780be727d1791675dc14c4
 lib32disabled=yes
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xf86-input-synaptics/template b/srcpkgs/xf86-input-synaptics/template
index 1c9f2be0a939..6d118bbe21ee 100644
--- a/srcpkgs/xf86-input-synaptics/template
+++ b/srcpkgs/xf86-input-synaptics/template
@@ -14,6 +14,7 @@ homepage="http://www.x.org/"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=7af83526eff1c76e8b9e1553b34245c203d029028d8044dd9dcf71eef1001576
 lib32disabled=yes
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xf86-video-ati/template b/srcpkgs/xf86-video-ati/template
index fe251dff4b37..a2715dcd5125 100644
--- a/srcpkgs/xf86-video-ati/template
+++ b/srcpkgs/xf86-video-ati/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://wiki.freedesktop.org/xorg"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=659f5a1629eea5f5334d9b39b18e6807a63aa1efa33c1236d9cc53acbb223c49
+patch_args=-Np0
 
 lib32disabled=yes
 CFLAGS="-fcommon"
diff --git a/srcpkgs/xf86-video-cirrus/template b/srcpkgs/xf86-video-cirrus/template
index f4f7c3a2f0a1..6c73923696f9 100644
--- a/srcpkgs/xf86-video-cirrus/template
+++ b/srcpkgs/xf86-video-cirrus/template
@@ -13,6 +13,7 @@ license="MIT"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=edc87b20a55259126b5239b5c1ef913419eab7ded0ed12ae9ae989460d7351ab
+patch_args=-Np0
 
 LDFLAGS="-Wl,-z,lazy"
 CFLAGS="-fcommon -Wno-pointer-arith -Wno-discarded-qualifiers -Wno-unused-label"
diff --git a/srcpkgs/xf86-video-fbdev/template b/srcpkgs/xf86-video-fbdev/template
index eafde10f3eab..297c1b4ca92a 100644
--- a/srcpkgs/xf86-video-fbdev/template
+++ b/srcpkgs/xf86-video-fbdev/template
@@ -13,6 +13,7 @@ homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=dcc3d85f378022180e437a9ec00a59b6cb7680ff79c40394d695060af2374699
 lib32disabled=yes
+patch_args=-Np0
 
 CFLAGS="-I$XBPS_CROSS_BASE/usr/include/xorg"
 LDFLAGS="-Wl,-z,lazy"
diff --git a/srcpkgs/xf86-video-fbturbo-sunxi/template b/srcpkgs/xf86-video-fbturbo-sunxi/template
index 3da5f84a572c..386a536c824d 100644
--- a/srcpkgs/xf86-video-fbturbo-sunxi/template
+++ b/srcpkgs/xf86-video-fbturbo-sunxi/template
@@ -13,6 +13,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://github.com/ssvb/xf86-video-fbturbo"
 distfiles="https://github.com/ssvb/xf86-video-fbturbo/archive/${version}.tar.gz"
 checksum=10411686de0a9d8b2cde300b0d68e9f1d22e3611470d357ef3afc337f123ca0f
+patch_args=-Np0
 
 archs="armv7l"
 conflicts="xf86-video-fbturbo>=0"
diff --git a/srcpkgs/xf86-video-fbturbo/template b/srcpkgs/xf86-video-fbturbo/template
index acfbff8c05d3..2b6784ccb160 100644
--- a/srcpkgs/xf86-video-fbturbo/template
+++ b/srcpkgs/xf86-video-fbturbo/template
@@ -9,6 +9,7 @@ license="MIT, GPL-2.0-or-later"
 homepage="http://github.com/ssvb/xf86-video-fbturbo"
 distfiles="https://github.com/ssvb/xf86-video-fbturbo/archive/${version}.tar.gz"
 checksum=10411686de0a9d8b2cde300b0d68e9f1d22e3611470d357ef3afc337f123ca0f
+patch_args=-Np0
 
 archs="armv6l* armv7l* aarch64*"
 hostmakedepends="pkg-config xorg-server-devel"
diff --git a/srcpkgs/xf86-video-intel/template b/srcpkgs/xf86-video-intel/template
index 2b589d009897..77eb791f02dc 100644
--- a/srcpkgs/xf86-video-intel/template
+++ b/srcpkgs/xf86-video-intel/template
@@ -18,6 +18,7 @@ homepage="https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/"
 distfiles="${homepage}/-/archive/master/xf86-video-intel-${_commit}.tar.gz"
 checksum=3cdcf2f84bddf9e9174a8413d8fc855dae893dbc53889329978dec62ee8f6e62
 lib32disabled=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 LDFLAGS="-Wl,-z,lazy"
diff --git a/srcpkgs/xf86-video-mach64/template b/srcpkgs/xf86-video-mach64/template
index 51fb61f466c1..a084652f48cf 100644
--- a/srcpkgs/xf86-video-mach64/template
+++ b/srcpkgs/xf86-video-mach64/template
@@ -16,6 +16,7 @@ lib32disabled=yes
 # fails at XORG_DRIVER_CHECK_EXT even though xorg-util-macros is on host
 nocross=yes
 LDFLAGS="-Wl,-z,lazy"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -if
diff --git a/srcpkgs/xf86-video-mga/template b/srcpkgs/xf86-video-mga/template
index 39edac52798d..41a806554577 100644
--- a/srcpkgs/xf86-video-mga/template
+++ b/srcpkgs/xf86-video-mga/template
@@ -13,6 +13,7 @@ homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=268946e1a13e9d80e4f724a0740df9e6e8c8bad37697fcbf456924e9fdbb5d79
 lib32disabled=yes
+patch_args=-Np0
 
 LDFLAGS="-Wl,-z,lazy"
 CFLAGS="-fcommon"
diff --git a/srcpkgs/xf86-video-r128/template b/srcpkgs/xf86-video-r128/template
index 4dbe1529aa5c..b05086aa3c59 100644
--- a/srcpkgs/xf86-video-r128/template
+++ b/srcpkgs/xf86-video-r128/template
@@ -14,6 +14,7 @@ distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=801c86882cbd2bbb3084d471dcc5cfee2c1754dcbfb4dc446676d58a6bd9e057
 lib32disabled=yes
 LDFLAGS="-Wl,-z,lazy"
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xf86-video-vmware/template b/srcpkgs/xf86-video-vmware/template
index 1da7f33d8ef1..12fad896b329 100644
--- a/srcpkgs/xf86-video-vmware/template
+++ b/srcpkgs/xf86-video-vmware/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/driver/$pkgname-$version.tar.bz2"
 checksum=47971924659e51666a757269ad941a059ef5afe7a47b5101c174a6022ac4066c
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/xfig/template b/srcpkgs/xfig/template
index 4c316f35b32d..e12459c56858 100644
--- a/srcpkgs/xfig/template
+++ b/srcpkgs/xfig/template
@@ -13,6 +13,7 @@ license="MIT-like"
 homepage="http://mcj.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/mcj/${pkgname}-${version}.tar.xz"
 checksum=ba43c0ea85b230d3efa5a951a3239e206d0b033d044c590a56208f875f888578
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/spell/aspell/' app-defaults/Fig.in
diff --git a/srcpkgs/xfsprogs/template b/srcpkgs/xfsprogs/template
index e00f8a5d34e0..f33cde7cc8c5 100644
--- a/srcpkgs/xfsprogs/template
+++ b/srcpkgs/xfsprogs/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://xfs.org/index.php/Main_Page"
 distfiles="${KERNEL_SITE}/utils/fs/xfs/xfsprogs/xfsprogs-${version}.tar.xz"
 checksum=bec44445cf18f49e63971d4f27dc4e90a17b118b852714a1104b621ea30e3507
+patch_args=-Np0
 
 post_extract() {
 	sed -i '1i#include <signal.h>' include/linux.h
diff --git a/srcpkgs/xinetd/template b/srcpkgs/xinetd/template
index dbdd441c063c..9456dbfdfcd9 100644
--- a/srcpkgs/xinetd/template
+++ b/srcpkgs/xinetd/template
@@ -11,6 +11,7 @@ license="xinetd"
 homepage="http://www.xinetd.org/"
 distfiles="http://ponce.cc/slackware/sources/repo/xinetd-${version}.tar.gz"
 checksum=bf4e060411c75605e4dcbdf2ac57c6bd9e1904470a2f91e01ba31b50a80a5be3
+patch_args=-Np0
 
 conf_files="/etc/xinetd.conf /etc/xinetd.d/servers /etc/xinetd.d/services"
 
diff --git a/srcpkgs/xinit/template b/srcpkgs/xinit/template
index be836ebc94ad..2bb4c8e43527 100644
--- a/srcpkgs/xinit/template
+++ b/srcpkgs/xinit/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://xorgwiki.freedesktop.org/xorg"
 distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.bz2"
 checksum=de9b8f617b68a70f6caf87da01fcf0ebd2b75690cdcba9c921d0ef54fa54abb9
+patch_args=-Np0
 
 conf_files="
 	/etc/X11/xinit/xinitrc
diff --git a/srcpkgs/xload/template b/srcpkgs/xload/template
index 74cbd8bbf5ed..62f070c1f25c 100644
--- a/srcpkgs/xload/template
+++ b/srcpkgs/xload/template
@@ -11,6 +11,7 @@ license="X11, MIT"
 homepage="http://www.x.org/archive/X11R6.8.1/doc/xload.1.html"
 distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.bz2"
 checksum=f34e4803871d771325cfe52bebd98cc5b6040d3f065184ec73de436f9a375907
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xlunch/template b/srcpkgs/xlunch/template
index 8c8eafcb029b..54335a705a6e 100644
--- a/srcpkgs/xlunch/template
+++ b/srcpkgs/xlunch/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://xlunch.org/"
 distfiles="https://github.com/Tomas-M/xlunch/archive/v${version}.tar.gz"
 checksum=08728beba2a86b1e8f0cccf14903b7e6625e099425b6a254418c75636f2515e6
+patch_args=-Np0
 
 do_install() {
 	vbin xlunch
diff --git a/srcpkgs/xnp2/template b/srcpkgs/xnp2/template
index 1070cad41c20..21ad123a5010 100644
--- a/srcpkgs/xnp2/template
+++ b/srcpkgs/xnp2/template
@@ -13,6 +13,7 @@ license="BSD"
 homepage="https://www.nonakap.org/np2"
 distfiles="https://www.nonakap.org/np2/release/xnp2-${version}.tar.bz2"
 checksum=e0b8c93f54682a4b3373907fd9ffe78094f95f7430dffc5038eccbcc4c3f78fd
+patch_args=-Np0
 
 do_install() {
 	vbin xnp2
diff --git a/srcpkgs/xonotic/template b/srcpkgs/xonotic/template
index 977c8cdce6e4..9622079c8c31 100644
--- a/srcpkgs/xonotic/template
+++ b/srcpkgs/xonotic/template
@@ -14,6 +14,7 @@ homepage="http://xonotic.org"
 distfiles="http://dl.xonotic.org/xonotic-${version}-source.zip"
 checksum=5e6916f1e6e9e22285bb71ddd075189102857383e74ed0b0a3d27cef08e0bd2b
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	local target
diff --git a/srcpkgs/xorg-cf-files/template b/srcpkgs/xorg-cf-files/template
index aea5c85748e2..d5d53e6296f6 100644
--- a/srcpkgs/xorg-cf-files/template
+++ b/srcpkgs/xorg-cf-files/template
@@ -10,6 +10,7 @@ license="X11"
 homepage="http://xorg.freedesktop.org/"
 distfiles="${XORG_SITE}/util/${pkgname}-${version}.tar.bz2"
 checksum=4dcf5a9dbe3c6ecb9d2dd05e629b3d373eae9ba12d13942df87107fdc1b3934d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/xorg-server/template b/srcpkgs/xorg-server/template
index 852c3ab2f573..a223cb08947d 100644
--- a/srcpkgs/xorg-server/template
+++ b/srcpkgs/xorg-server/template
@@ -31,6 +31,7 @@ provides="xserver-abi-extension-10_1 xserver-abi-input-24_1
  xserver-abi-video-24_1 xf86-video-modesetting-1_1"
 replaces="xf86-video-modesetting>=0 glamor-egl>=0"
 conf_files="/etc/X11/Xwrapper.config"
+patch_args=-Np0
 
 build_options="elogind"
 desc_option_elogind="Rootless Xorg support with elogind"
diff --git a/srcpkgs/xosview/template b/srcpkgs/xosview/template
index 3d6c3ab6c1f9..1c4b34de9d1c 100644
--- a/srcpkgs/xosview/template
+++ b/srcpkgs/xosview/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.pogo.org.uk/~mark/xosview"
 distfiles="http://www.pogo.org.uk/~mark/xosview/releases/xosview-${version}.tar.gz"
 checksum=901b75af2676b11b28b88f0c79c5bd0f4f01de4790c0c5385edf6d71aee1f83a
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	# does not have asm/io.h
diff --git a/srcpkgs/xplanet/template b/srcpkgs/xplanet/template
index 4650dd2556ca..abb07cf7fa58 100644
--- a/srcpkgs/xplanet/template
+++ b/srcpkgs/xplanet/template
@@ -12,6 +12,7 @@ license="GPL-2"
 homepage="http://xplanet.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4380d570a8bf27b81fb629c97a636c1673407f4ac4989ce931720078a90aece7
+patch_args=-Np0
 
 pre_configure() {
 	# make it build with giflib-5.1.0
diff --git a/srcpkgs/xrick/template b/srcpkgs/xrick/template
index 42b8a0febe94..628972531f22 100644
--- a/srcpkgs/xrick/template
+++ b/srcpkgs/xrick/template
@@ -12,6 +12,7 @@ restricted=yes
 homepage="http://www.bigorno.net/xrick/"
 distfiles="https://www.bigorno.net/xrick/xrick-${version}.tgz"
 checksum=aa8542120bec97a730258027a294bd16196eb8b3d66134483d085f698588fc2b
+patch_args=-Np0
 
 CFLAGS=-fcommon
 
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 863e61dd58c7..b84bedbe6d72 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.xsane.org"
 distfiles="${DEBIAN_SITE}/main/x/xsane/xsane_${version}.orig.tar.gz"
 checksum=5782d23e67dc961c81eef13a87b17eb0144cae3d1ffc5cf7e0322da751482b4b
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=.*/DATADIRNAME=share/' \
diff --git a/srcpkgs/xsettingsd/template b/srcpkgs/xsettingsd/template
index e2754ef00999..deb1a1228579 100644
--- a/srcpkgs/xsettingsd/template
+++ b/srcpkgs/xsettingsd/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/derat/xsettingsd"
 distfiles="https://github.com/derat/xsettingsd/archive/v${version}.tar.gz"
 checksum=69b5d1987608d1b5f2a0085f2f88cc55936a99b92279118e655d665ebb5e50d3
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xst/template b/srcpkgs/xst/template
index 8600c680ae36..5fded5ad0a2c 100644
--- a/srcpkgs/xst/template
+++ b/srcpkgs/xst/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/gnotclub/xst"
 distfiles="https://github.com/gnotclub/xst/archive/v${version}.tar.gz"
 checksum=cbeb2da6c289415d1168559c6f58b4ce47fd266edefbabc38fd59e8b7c87226d
+patch_args=-Np0
 
 do_install() {
 	vbin xst
diff --git a/srcpkgs/xstarter/template b/srcpkgs/xstarter/template
index 4363d36e3c39..5e49b3e3f73d 100644
--- a/srcpkgs/xstarter/template
+++ b/srcpkgs/xstarter/template
@@ -12,6 +12,7 @@ homepage="https://xstarter.org"
 changelog="https://raw.githubusercontent.com/lchsk/xstarter/master/CHANGELOG"
 distfiles="https://github.com/lchsk/xstarter/archive/v${version}.tar.gz"
 checksum=cb82bf837a2693cbbad468812d517256e079d6aae56dde770d473b245603030a
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e's;-Wall;-fcommon &;'
diff --git a/srcpkgs/xterm/template b/srcpkgs/xterm/template
index cde36bc4e134..92d4c5866d0c 100644
--- a/srcpkgs/xterm/template
+++ b/srcpkgs/xterm/template
@@ -21,6 +21,7 @@ homepage="http://invisible-island.net/xterm/"
 changelog="http://invisible-island.net/xterm/xterm.log.html"
 distfiles="https://invisible-mirror.net/archives/xterm/xterm-${version}.tgz"
 checksum=2ff5169930b6b49ef0bafb5e1331c94f1a98c310442bba7798add821c76ae712
+patch_args=-Np0
 
 post_install() {
 	for f in {u,}xterm.desktop; do
diff --git a/srcpkgs/xye/template b/srcpkgs/xye/template
index d36a89c9ad29..7d9472e29e6e 100644
--- a/srcpkgs/xye/template
+++ b/srcpkgs/xye/template
@@ -11,6 +11,7 @@ homepage="http://xye.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=5d7c04f37d6b4a1821594512c7ddbc8189f968e08ecfd5af55231302f2f917d8
 replaces="xye-data>=0"
+patch_args=-Np0
 
 post_install() {
 	vdoc ReadMe.html
diff --git a/srcpkgs/yabar/template b/srcpkgs/yabar/template
index 8bb8d1cd5795..c8dd3ff8ae73 100644
--- a/srcpkgs/yabar/template
+++ b/srcpkgs/yabar/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/geommer/yabar"
 distfiles="https://github.com/geommer/${pkgname}/archive/${version}.tar.gz"
 checksum=f8cc613413328af78944ccb8063a5ba8e6be11797a883c419876e973e102fed0
+patch_args=-Np0
 
 post_install() {
 	vdoc README.md
diff --git a/srcpkgs/yarn-bin/template b/srcpkgs/yarn-bin/template
index 111cdd494574..948d9c8d6c65 100644
--- a/srcpkgs/yarn-bin/template
+++ b/srcpkgs/yarn-bin/template
@@ -10,6 +10,7 @@ homepage="https://yarnpkg.com/"
 distfiles="https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz"
 checksum=7e433d4a77e2c79e6a7ae4866782608a8e8bcad3ec6783580577c59538381a6e
 conflicts="yarn>=0"
+patch_args=-Np0
 
 do_extract() {
 	bsdtar xfz ${XBPS_SRCDISTDIR}/${pkgname}-${version}/yarn-v${version}.tar.gz --strip-components=1 -C ${wrksrc}
diff --git a/srcpkgs/yarn/template b/srcpkgs/yarn/template
index aa9f68e53c4c..4b699e2cf02f 100644
--- a/srcpkgs/yarn/template
+++ b/srcpkgs/yarn/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="https://yarnpkg.com/"
 distfiles="https://github.com/yarnpkg/${pkgname}/archive/v${version}.tar.gz"
 checksum=66153f5fdd3078ce320c775990e4b4f03d5b596186f0e1fbceb34225abe3cd3e
+patch_args=-Np0
 
 conflicts="yarn-bin>=0"
 
diff --git a/srcpkgs/yeahconsole/template b/srcpkgs/yeahconsole/template
index ef7d82067398..997c438199a2 100644
--- a/srcpkgs/yeahconsole/template
+++ b/srcpkgs/yeahconsole/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="http://phrat.de/yeahtools.html"
 distfiles="http://phrat.de/yeahconsole-${version}.tar.gz"
 checksum=fcf3481f78a263a70f1cb5163630fc22e78bb0915013eb05689c6f4aeb0583ef
+patch_args=-Np0
 
 do_install() {
 	vbin yeahconsole
diff --git a/srcpkgs/yeahwm/template b/srcpkgs/yeahwm/template
index 3574b02200e6..0a241f71ee91 100644
--- a/srcpkgs/yeahwm/template
+++ b/srcpkgs/yeahwm/template
@@ -11,6 +11,7 @@ license="Public Domain"
 homepage="http://phrat.de"
 distfiles="http://phrat.de/${pkgname}_${version}.tar.gz"
 checksum=c92ce98848c8b88d9b67c128e30710944c04a6454310254535c102b2b6fcee05
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/yersinia/template b/srcpkgs/yersinia/template
index f9d57cfe9ffd..84c3b898a958 100644
--- a/srcpkgs/yersinia/template
+++ b/srcpkgs/yersinia/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/tomac/yersinia"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=964f528dbffd904376ab7986e69b1e8639591c929e2f39186ac9ebf2d3bc761f
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ${makedepends}"
diff --git a/srcpkgs/ympd/template b/srcpkgs/ympd/template
index 450c079b2ca3..3cea700b1264 100644
--- a/srcpkgs/ympd/template
+++ b/srcpkgs/ympd/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://www.ympd.org"
 distfiles="https://github.com/notandy/ympd/archive/v${version}.tar.gz"
 checksum=d9f68920cd93d1cfa971e1d7b9162a2b1724909bc9753c1338cecb3688d234d5
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e"s;-std=gnu99 -Wall;& -fcommon;"
diff --git a/srcpkgs/yoshimi/template b/srcpkgs/yoshimi/template
index b836098f1c82..33bc95745815 100644
--- a/srcpkgs/yoshimi/template
+++ b/srcpkgs/yoshimi/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://yoshimi.github.io/"
 distfiles="https://github.com/Yoshimi/$pkgname/archive/$version.tar.gz"
 checksum=b80a8b49bdf0e1f6c382627afc46c82d03219b7e45cdecd933e6fc046a939967
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone";;
diff --git a/srcpkgs/yosys/template b/srcpkgs/yosys/template
index 72e7da38f402..de5ad13629ca 100644
--- a/srcpkgs/yosys/template
+++ b/srcpkgs/yosys/template
@@ -16,6 +16,7 @@ license="ISC, MIT"
 homepage="http://www.clifford.at/yosys/about.html"
 distfiles="https://github.com/cliffordwolf/yosys/archive/yosys-${version}.tar.gz"
 checksum=f2e31371f9cf1b36cb4f57b23fd6eb849adc7d935dcf49f3c905aa5136382c2f
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's,-I[$](PREFIX)/include,,' \
diff --git a/srcpkgs/z3/template b/srcpkgs/z3/template
index 789712fa6450..0bf58a1ce64e 100644
--- a/srcpkgs/z3/template
+++ b/srcpkgs/z3/template
@@ -16,6 +16,7 @@ license="MIT"
 homepage="https://github.com/Z3Prover/z3"
 distfiles="https://github.com/Z3Prover/z3/archive/z3-${version}.tar.gz"
 checksum=99e912b9af76a17f8827f89afcf4da117736f3877a8bbdd737c548c6541009d7
+patch_args=-Np0
 
 build_options="ocaml"
 desc_option_ocaml="Enable support for OCaml bindings"
diff --git a/srcpkgs/z80ex/template b/srcpkgs/z80ex/template
index 5437f53d33d5..d71d6304ee1a 100644
--- a/srcpkgs/z80ex/template
+++ b/srcpkgs/z80ex/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="https://sourceforge.net/projects/z80ex/"
 distfiles="${SOURCEFORGE_SITE}/project/z80ex/z80ex/${version}/z80ex-${version}.tar.gz"
 checksum=6f5e521d068a614b41e10180ad4ae45b1bc258ec28c962543feb9078856c2530
+patch_args=-Np0
 
 z80ex-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/zabbix/template b/srcpkgs/zabbix/template
index 5db05d0d5d45..9cc6ed5f43a0 100644
--- a/srcpkgs/zabbix/template
+++ b/srcpkgs/zabbix/template
@@ -23,6 +23,7 @@ conf_files="/etc/zabbix_server.conf"
 system_accounts="_zabbix_server"
 system_groups="_zabbix_server"
 make_dirs="/var/log/zabbix-server 0750 _zabbix_server _zabbix_server"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# configure scripts is bad at checking, problably runs code instead of
diff --git a/srcpkgs/zbar/template b/srcpkgs/zbar/template
index f64d87fcfe81..6bd2833da871 100644
--- a/srcpkgs/zbar/template
+++ b/srcpkgs/zbar/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="https://git.linuxtv.org/zbar.git/"
 distfiles="https://linuxtv.org/downloads/zbar/${pkgname}-${version}.tar.bz2"
 checksum=dad260b47ef887a639e840a89e5e6e132217b6bba2a8473565d1f459bcb97c1f
+patch_args=-Np0
 
 build_options="qt"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/zeal/template b/srcpkgs/zeal/template
index 9db6b15584d6..16905d094d3e 100644
--- a/srcpkgs/zeal/template
+++ b/srcpkgs/zeal/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://zealdocs.org/"
 distfiles="https://github.com/zealdocs/zeal/archive/v${version}.tar.gz"
 checksum=095c08f9903071849d5c79878abd48237ce1615f16d324afff1873ab6b5f0026
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake"
diff --git a/srcpkgs/zeek/template b/srcpkgs/zeek/template
index e071ae02cb68..2e5267e20f59 100644
--- a/srcpkgs/zeek/template
+++ b/srcpkgs/zeek/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="https://www.zeek.org"
 distfiles="https://old.zeek.org/downloads/zeek-${version}.tar.gz"
 checksum=659a890f433cb730519966bdc41f1a03fb67e27e94b5d52ad9ee890022a12c3a
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-fts-devel musl-legacy-compat"
diff --git a/srcpkgs/zerofree/template b/srcpkgs/zerofree/template
index 82d05a933846..4bbff91d1d86 100644
--- a/srcpkgs/zerofree/template
+++ b/srcpkgs/zerofree/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://frippery.org/uml/index.html"
 distfiles="https://frippery.org/uml/${pkgname}-${version}.tgz"
 checksum=956bc861b55ba0a2b7593c58d32339dab1a0e7da6ea2b813d27c80f08b723867
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's|\(-lext2fs\)|$(LDFLAGS) \1|' Makefile
diff --git a/srcpkgs/zfs/template b/srcpkgs/zfs/template
index 40d6bcd78509..bd20fd9b8ed0 100644
--- a/srcpkgs/zfs/template
+++ b/srcpkgs/zfs/template
@@ -19,6 +19,7 @@ checksum=7d1344c5433b91823f02c2e40b33d181fa6faf286bea5591f4b1965f23d45f6c
 # dkms must be before initramfs-regenerate to build modules before images
 triggers="dkms initramfs-regenerate"
 dkms_modules="zfs ${version}"
+patch_args=-Np0
 
 replaces="spl<=0.7.13_1" # Because SPL was merged into zfs in 0.8.0
 
diff --git a/srcpkgs/zimg/template b/srcpkgs/zimg/template
index a0b0ff763198..1dc610bf781f 100644
--- a/srcpkgs/zimg/template
+++ b/srcpkgs/zimg/template
@@ -11,6 +11,7 @@ license="WTFPL"
 homepage="https://github.com/sekrit-twc/zimg"
 distfiles="https://github.com/sekrit-twc/zimg/archive/release-${version}.tar.gz"
 checksum=a15c0483fbe945ffe695a1a989bc43b3381c8bf33e2d1760464ec21d32cdf30b
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/zinnia/template b/srcpkgs/zinnia/template
index fc0f6a2a5a6b..2dc564a9a281 100644
--- a/srcpkgs/zinnia/template
+++ b/srcpkgs/zinnia/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="https://taku910.github.io/zinnia/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.gz"
 checksum=ece3af93f937282971634fd81d3e997f848e8cfa958220e26a4564ca064ac20b
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/zip/template b/srcpkgs/zip/template
index 94cb4c961033..720fa31b6b64 100644
--- a/srcpkgs/zip/template
+++ b/srcpkgs/zip/template
@@ -9,6 +9,7 @@ license="Info-ZIP"
 homepage="http://infozip.sf.net/"
 distfiles="${SOURCEFORGE_SITE}/infozip/zip30.tar.gz"
 checksum=f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
+patch_args=-Np0
 
 do_build() {
 	sed -e "s|generic CC=gcc CPP=\"gcc -E\"|zips CC=$CC CPP=\"$CPP -E\" CFLAGS=\"-DLARGE_FILE_SUPPORT $CFLAGS \${CFLAGS_NOOPT}\" LFLAGS2=\"$LDFLAGS\"|g" -i unix/Makefile
diff --git a/srcpkgs/zlib/template b/srcpkgs/zlib/template
index a6462e5616a2..b7519dafd23f 100644
--- a/srcpkgs/zlib/template
+++ b/srcpkgs/zlib/template
@@ -10,6 +10,7 @@ license="Zlib"
 homepage="http://www.zlib.net"
 distfiles="$homepage/$pkgname-$version.tar.gz"
 checksum=c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
+patch_args=-Np0
 
 do_configure() {
 	LDFLAGS= LDSHAREDLIBC= ./configure --prefix=/usr --shared
diff --git a/srcpkgs/zsnes/template b/srcpkgs/zsnes/template
index df49c9c7d3e7..1d961f28744b 100644
--- a/srcpkgs/zsnes/template
+++ b/srcpkgs/zsnes/template
@@ -5,6 +5,7 @@ archs="i686"
 lib32mode="full"
 wrksrc="zsnes_1_51"
 build_wrksrc="src"
+patch_args=-Np0
 
 pkgname=zsnes
 version=1.51
diff --git a/srcpkgs/zulucrypt/template b/srcpkgs/zulucrypt/template
index cc596dc63dc2..7a197d0af329 100644
--- a/srcpkgs/zulucrypt/template
+++ b/srcpkgs/zulucrypt/template
@@ -21,6 +21,7 @@ homepage="https://mhogomchungu.github.io/zuluCrypt"
 changelog="https://raw.githubusercontent.com/mhogomchungu/zuluCrypt/master/changelog"
 distfiles="https://github.com/mhogomchungu/zuluCrypt/archive/${version}.tar.gz"
 checksum=f1bc599446e6dc82c6af16672fcbd4a88679d3b3dba2cfa3921ac514cb211add
+patch_args=-Np0
 
 #https://github.com/mhogomchungu/zuluCrypt/blob/e138cc4459545b2e0f729814791a045c31b63014/BUILD_INSTRUCTIONS
 build_options="udev kde gnome pwquality polkit homemount"
diff --git a/srcpkgs/zutils/template b/srcpkgs/zutils/template
index 8549ede01b59..9ad5a4b3aae6 100644
--- a/srcpkgs/zutils/template
+++ b/srcpkgs/zutils/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.nongnu.org/zutils/zutils.html"
 distfiles="http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${version}.tar.lz"
 checksum=0dd44138292d5757648037195b6945c3df70b316221b4285520ad38f2eaeb195
+patch_args=-Np0
 
 post_install() {
 	cd ${DESTDIR}/usr/bin
diff --git a/srcpkgs/zynaddsubfx/template b/srcpkgs/zynaddsubfx/template
index 844d14016a06..42b639e637de 100644
--- a/srcpkgs/zynaddsubfx/template
+++ b/srcpkgs/zynaddsubfx/template
@@ -15,6 +15,7 @@ homepage="http://zynaddsubfx.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
 checksum=7447322268114a1e0ac5f281ac37a09a78e761a7be61999caf79100049789f63
 replaces="zynaddsubfx-data>=0"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	armv5*) configure_args+=" -DSUPPORT_NEON=NO";;

From cc3a25e6e29f2b101e6c9fd73637dec6d30be514 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:33:02 +0700
Subject: [PATCH 4/8] srcpkgs: add patch_args=-Np0 en-mass

Generated with:

        git ls-files 'srcpkgs/**/patches/*' |
        cut -d/ -f2 | uniq |
        xargs printf 'srcpkgs/%s/template\n'  |
        xargs grep -L 'patch_args=' |
        xargs sed -i '$a patch_args=-Np0"
---
 srcpkgs/64tass/template                     | 1 +
 srcpkgs/EmptyEpsilon/template               | 1 +
 srcpkgs/FreeDoko/template                   | 1 +
 srcpkgs/SoapyUHD/template                   | 1 +
 srcpkgs/Terminal/template                   | 1 +
 srcpkgs/a2jmidid/template                   | 1 +
 srcpkgs/apvlv/template                      | 1 +
 srcpkgs/auto-auto-complete/template         | 1 +
 srcpkgs/azpainter/template                  | 1 +
 srcpkgs/balsa/template                      | 1 +
 srcpkgs/batctl14/template                   | 1 +
 srcpkgs/biosdisk/template                   | 1 +
 srcpkgs/birdtray/template                   | 1 +
 srcpkgs/bitwise/template                    | 1 +
 srcpkgs/bti/template                        | 1 +
 srcpkgs/bzflag/template                     | 1 +
 srcpkgs/cantata/template                    | 1 +
 srcpkgs/cinnamon-session/template           | 1 +
 srcpkgs/clazy/template                      | 1 +
 srcpkgs/curlftpfs/template                  | 1 +
 srcpkgs/cutecom/template                    | 1 +
 srcpkgs/cvs/template                        | 1 +
 srcpkgs/darkice/template                    | 1 +
 srcpkgs/ddd/template                        | 1 +
 srcpkgs/dhewm3/template                     | 1 +
 srcpkgs/dialogbox/template                  | 1 +
 srcpkgs/dillo/template                      | 1 +
 srcpkgs/dislocker/template                  | 1 +
 srcpkgs/dmg2img/template                    | 1 +
 srcpkgs/dvdbackup/template                  | 1 +
 srcpkgs/edb-debugger/template               | 1 +
 srcpkgs/endless-sky/template                | 1 +
 srcpkgs/eolie/template                      | 1 +
 srcpkgs/epson-inkjet-printer-escpr/template | 1 +
 srcpkgs/exfat-utils/template                | 1 +
 srcpkgs/extundelete/template                | 1 +
 srcpkgs/fastjar/template                    | 1 +
 srcpkgs/fceux/template                      | 1 +
 srcpkgs/fifengine/template                  | 1 +
 srcpkgs/filelight/template                  | 1 +
 srcpkgs/fuse-emulator/template              | 1 +
 srcpkgs/gcal/template                       | 1 +
 srcpkgs/gftp/template                       | 1 +
 srcpkgs/gfuzz/template                      | 1 +
 srcpkgs/git-mediate/template                | 1 +
 srcpkgs/gltron/template                     | 1 +
 srcpkgs/gnome-recipes/template              | 1 +
 srcpkgs/gnupod/template                     | 1 +
 srcpkgs/gupnp-tools/template                | 1 +
 srcpkgs/helm/template                       | 1 +
 srcpkgs/html-xml-utils/template             | 1 +
 srcpkgs/hxtools/template                    | 1 +
 srcpkgs/icecast/template                    | 1 +
 srcpkgs/imagewriter/template                | 1 +
 srcpkgs/img2pdf/template                    | 1 +
 srcpkgs/intel-undervolt/template            | 1 +
 srcpkgs/intltool/template                   | 1 +
 srcpkgs/io.elementary.photos/template       | 1 +
 srcpkgs/ipv6calc/template                   | 1 +
 srcpkgs/itstool/template                    | 1 +
 srcpkgs/iwgtk/template                      | 1 +
 srcpkgs/jigdo/template                      | 1 +
 srcpkgs/k3b/template                        | 1 +
 srcpkgs/kcm-wacomtablet/template            | 1 +
 srcpkgs/kcov/template                       | 1 +
 srcpkgs/keditbookmarks/template             | 1 +
 srcpkgs/kig/template                        | 1 +
 srcpkgs/krusader/template                   | 1 +
 srcpkgs/ksysguard/template                  | 1 +
 srcpkgs/lbreakouthd/template                | 1 +
 srcpkgs/lbzip2/template                     | 1 +
 srcpkgs/lcov/template                       | 1 +
 srcpkgs/libeatmydata/template               | 1 +
 srcpkgs/libva-vdpau-driver/template         | 1 +
 srcpkgs/libwm/template                      | 1 +
 srcpkgs/lltag/template                      | 1 +
 srcpkgs/lrzsz/template                      | 1 +
 srcpkgs/macchanger/template                 | 1 +
 srcpkgs/mate-power-manager/template         | 1 +
 srcpkgs/mcomix/template                     | 1 +
 srcpkgs/mftrace/template                    | 1 +
 srcpkgs/nm-tray/template                    | 1 +
 srcpkgs/nootka/template                     | 1 +
 srcpkgs/olive/template                      | 1 +
 srcpkgs/pam_rundir/template                 | 1 +
 srcpkgs/pdfgrep/template                    | 1 +
 srcpkgs/pdfsandwich/template                | 1 +
 srcpkgs/pekwm/template                      | 1 +
 srcpkgs/perl-Authen-SASL/template           | 1 +
 srcpkgs/perl-Crypt-DH/template              | 1 +
 srcpkgs/perl-Crypt-Rijndael/template        | 1 +
 srcpkgs/perl-Fuse/template                  | 1 +
 srcpkgs/perl-OpenGL/template                | 1 +
 srcpkgs/perl-XML-LibXSLT/template           | 1 +
 srcpkgs/perl-XML-SAX/template               | 1 +
 srcpkgs/pidgin-gpg/template                 | 1 +
 srcpkgs/pidgin-sipe/template                | 1 +
 srcpkgs/plasma-desktop/template             | 1 +
 srcpkgs/pokoy/template                      | 1 +
 srcpkgs/polkit-kde-agent/template           | 1 +
 srcpkgs/posixovl/template                   | 1 +
 srcpkgs/powertop/template                   | 1 +
 srcpkgs/python3-orocos-kdl/template         | 1 +
 srcpkgs/python3-pykeepass/template          | 1 +
 srcpkgs/python3-transifex-client/template   | 1 +
 srcpkgs/python3-yara/template               | 1 +
 srcpkgs/qmltermwidget/template              | 1 +
 srcpkgs/qomui/template                      | 1 +
 srcpkgs/qtcurve/template                    | 1 +
 srcpkgs/qtfm/template                       | 1 +
 srcpkgs/recoll/template                     | 1 +
 srcpkgs/recordmydesktop/template            | 1 +
 srcpkgs/rofs-filtered/template              | 1 +
 srcpkgs/sasm/template                       | 1 +
 srcpkgs/scribus/template                    | 1 +
 srcpkgs/seahorse-nautilus/template          | 1 +
 srcpkgs/seq2gif/template                    | 1 +
 srcpkgs/sgfutils/template                   | 1 +
 srcpkgs/sidplayfp/template                  | 1 +
 srcpkgs/smbnetfs/template                   | 1 +
 srcpkgs/solvespace/template                 | 1 +
 srcpkgs/sonata/template                     | 1 +
 srcpkgs/stellarium/template                 | 1 +
 srcpkgs/streamripper/template               | 1 +
 srcpkgs/stress-ng/template                  | 1 +
 srcpkgs/swell-foop/template                 | 1 +
 srcpkgs/switchboard-plug-printers/template  | 1 +
 srcpkgs/telepathy-haze/template             | 1 +
 srcpkgs/tellico/template                    | 1 +
 srcpkgs/texmaker/template                   | 1 +
 srcpkgs/tmfs/template                       | 1 +
 srcpkgs/trackballs/template                 | 1 +
 srcpkgs/tremc/template                      | 1 +
 srcpkgs/ttfautohint/template                | 1 +
 srcpkgs/tworld/template                     | 1 +
 srcpkgs/ucl/template                        | 1 +
 srcpkgs/uhubctl/template                    | 1 +
 srcpkgs/usb-modeswitch-data/template        | 1 +
 srcpkgs/usb-modeswitch/template             | 1 +
 srcpkgs/valabind/template                   | 1 +
 srcpkgs/vba-m/template                      | 1 +
 srcpkgs/wdisplays/template                  | 1 +
 srcpkgs/wfuzz/template                      | 1 +
 srcpkgs/whysynth/template                   | 1 +
 srcpkgs/wmctrl/template                     | 1 +
 srcpkgs/wofi/template                       | 1 +
 srcpkgs/wvdial/template                     | 1 +
 srcpkgs/xbindkeys/template                  | 1 +
 srcpkgs/xdg-dbus-proxy/template             | 1 +
 srcpkgs/xfce4-power-manager/template        | 1 +
 srcpkgs/xkblayout-state/template            | 1 +
 srcpkgs/xnots/template                      | 1 +
 srcpkgs/xsel/template                       | 1 +
 srcpkgs/xseticon/template                   | 1 +
 srcpkgs/yabause-gtk/template                | 1 +
 srcpkgs/zaz/template                        | 1 +
 srcpkgs/zbackup/template                    | 1 +
 157 files changed, 157 insertions(+)

diff --git a/srcpkgs/64tass/template b/srcpkgs/64tass/template
index ae06411d48bc..5cb4cefd8189 100644
--- a/srcpkgs/64tass/template
+++ b/srcpkgs/64tass/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="http://tass64.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/tass64/64tass-${version}-src.zip"
 checksum=067d0a54cb3c473b26aa5d69ea3f1f956be7cccc9044f1117fc20cb84aa63880
+patch_args=-Np0
diff --git a/srcpkgs/EmptyEpsilon/template b/srcpkgs/EmptyEpsilon/template
index f191433eec50..c9ba6f8595b5 100644
--- a/srcpkgs/EmptyEpsilon/template
+++ b/srcpkgs/EmptyEpsilon/template
@@ -22,3 +22,4 @@ distfiles="https://github.com/daid/EmptyEpsilon/archive/EE-${version}.tar.gz
  https://github.com/daid/SeriousProton/archive/EE-${version}.tar.gz>SP-${version}.tar.gz"
 checksum="c1c4f11fefe1afac6076c795e8785c7507a297ba3f7f2be9ed30c97b1e93cb24
  62ab03dc904bd10f017fff338e55ec97c86f0bc3903a18d6c44285b86776a2d7"
+patch_args=-Np0
diff --git a/srcpkgs/FreeDoko/template b/srcpkgs/FreeDoko/template
index 6ec209a18922..80746fe5d893 100644
--- a/srcpkgs/FreeDoko/template
+++ b/srcpkgs/FreeDoko/template
@@ -13,3 +13,4 @@ homepage="http://free-doko.sourceforge.net/en/FreeDoko.html"
 license="GPL-2.0-or-later"
 distfiles="${SOURCEFORGE_SITE}/free-doko/FreeDoko_${version}.src.zip"
 checksum=5b9ca3ad915f36dba17a4bd22b3d7d68ac2526cf125d045a819aa8d4a2cceb4c
+patch_args=-Np0
diff --git a/srcpkgs/SoapyUHD/template b/srcpkgs/SoapyUHD/template
index 90f51db7b9c6..5549897fda77 100644
--- a/srcpkgs/SoapyUHD/template
+++ b/srcpkgs/SoapyUHD/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/pothosware/SoapyUHD"
 distfiles="${homepage}/archive/soapy-uhd-${version}.tar.gz"
 checksum=0ac7fd0967e6922f16d1ba1a7ecb72f1fbcc14dd80e5134af9a5c9b86c1bccb8
+patch_args=-Np0
diff --git a/srcpkgs/Terminal/template b/srcpkgs/Terminal/template
index 9cd7970fcc2e..d2fddec6eb3d 100644
--- a/srcpkgs/Terminal/template
+++ b/srcpkgs/Terminal/template
@@ -15,3 +15,4 @@ homepage="http://gap.nongnu.org/terminal/"
 distfiles="${NONGNU_SITE}/gap/${pkgname}-${version}.tar.gz"
 checksum=27f81bbecdbd10cde8c080012cde4973bec20e551c58c29f353733cf03c220e9
 nocross="objc doesn't get cross build at present within gcc (see gnustep-base)"
+patch_args=-Np0
diff --git a/srcpkgs/a2jmidid/template b/srcpkgs/a2jmidid/template
index b39aa31eef1c..eca329aec5f1 100644
--- a/srcpkgs/a2jmidid/template
+++ b/srcpkgs/a2jmidid/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/linuxaudio/a2jmidid/"
 distfiles="https://github.com/linuxaudio/a2jmidid/archive/${version}.tar.gz"
 checksum=2828d283e0c9a65f0683881f09676c8c35c45c97a8a56cf77b43b4ef0231df06
+patch_args=-Np0
diff --git a/srcpkgs/apvlv/template b/srcpkgs/apvlv/template
index 8d343dbe3358..8cd23927d55a 100644
--- a/srcpkgs/apvlv/template
+++ b/srcpkgs/apvlv/template
@@ -14,3 +14,4 @@ homepage="http://naihe2010.github.io/apvlv/"
 distfiles="https://github.com/naihe2010/apvlv/archive/v${version}.tar.gz"
 checksum=a4a2f42a7e42715a21d2356def3ed93c180c6ae41128580addee42835e5374c2
 replaces="apvlv-git>=0"
+patch_args=-Np0
diff --git a/srcpkgs/auto-auto-complete/template b/srcpkgs/auto-auto-complete/template
index 065d615c2b59..24a3eb40df42 100644
--- a/srcpkgs/auto-auto-complete/template
+++ b/srcpkgs/auto-auto-complete/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/maandree/auto-auto-complete"
 distfiles="https://github.com/maandree/${pkgname}/archive/${version}.tar.gz"
 checksum=5e54025c6ef65dfff5ba976d23eb778a0936b0678763ebcd78359d460300301e
+patch_args=-Np0
diff --git a/srcpkgs/azpainter/template b/srcpkgs/azpainter/template
index 05bd1be32771..b47d36fbe7ac 100644
--- a/srcpkgs/azpainter/template
+++ b/srcpkgs/azpainter/template
@@ -13,3 +13,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/Symbian9/azpainter"
 distfiles="https://github.com/Symbian9/azpainter/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=85f3f935e76b420f2e5e272514368fdfbe4c25c01daa1e161ac28a6e1edb0d2c
+patch_args=-Np0
diff --git a/srcpkgs/balsa/template b/srcpkgs/balsa/template
index 255ae0f226a5..5d3f410bf0b3 100644
--- a/srcpkgs/balsa/template
+++ b/srcpkgs/balsa/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://pawsa.fedorapeople.org/balsa/"
 distfiles="https://pawsa.fedorapeople.org/balsa/balsa-${version}.tar.bz2"
 checksum=6441772cb5e1870f10c358c21f7e709da8cc0bfa6cc005ec744b9f1b00ea7df6
+patch_args=-Np0
diff --git a/srcpkgs/batctl14/template b/srcpkgs/batctl14/template
index 4ca1b15ed0ea..9fc5556c20f2 100644
--- a/srcpkgs/batctl14/template
+++ b/srcpkgs/batctl14/template
@@ -14,3 +14,4 @@ homepage="http://www.open-mesh.net/"
 distfiles="http://downloads.open-mesh.net/batman/releases/batman-adv-${version}/batctl-${version}.tar.gz"
 checksum=4deae3b6664d0d13acf7a8ece74175a31a72fe58fb15cb9112a9a2014b32cb4c
 conflicts="batctl>=0"
+patch_args=-Np0
diff --git a/srcpkgs/biosdisk/template b/srcpkgs/biosdisk/template
index ccbc76f4e55a..ea5ad3aebcab 100644
--- a/srcpkgs/biosdisk/template
+++ b/srcpkgs/biosdisk/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/dell/biosdisk"
 distfiles="https://github.com/dell/biosdisk/archive/${version}.tar.gz"
 checksum=e89cf680914ab3d5bbb549c124c6c29594ef495880befc0d059ec8a3aaf1e3e7
+patch_args=-Np0
diff --git a/srcpkgs/birdtray/template b/srcpkgs/birdtray/template
index 8695820eccec..acf7c1d9c19c 100644
--- a/srcpkgs/birdtray/template
+++ b/srcpkgs/birdtray/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/gyunaev/birdtray"
 distfiles="https://github.com/gyunaev/birdtray/archive/v${version}.tar.gz"
 checksum=672256bfadbde2841dcd6bad00662aeba825a4f041fa9a1980763f9eb29294d0
+patch_args=-Np0
diff --git a/srcpkgs/bitwise/template b/srcpkgs/bitwise/template
index 16b8b2a23fe4..9e3fe3fa18c7 100644
--- a/srcpkgs/bitwise/template
+++ b/srcpkgs/bitwise/template
@@ -12,3 +12,4 @@ license="GPL-3.0-only"
 homepage="https://github.com/mellowcandle/bitwise"
 distfiles="${homepage}/releases/download/v${version}/bitwise-v${version}.tar.gz"
 checksum=d3d43cef47bf8f49e85f7ed381c3eaf1df921ca51805e0962f1a97a517e1d1d2
+patch_args=-Np0
diff --git a/srcpkgs/bti/template b/srcpkgs/bti/template
index a914e9e75d60..82d1af711e15 100644
--- a/srcpkgs/bti/template
+++ b/srcpkgs/bti/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://gregkh.github.com/bti/"
 distfiles="https://www.kernel.org/pub/software/web/bti/bti-${version}.tar.xz"
 checksum=8b4a1a11f529f83956468acadaea9d11db4f03e82afe07fecb84b2d00e9eae83
+patch_args=-Np0
diff --git a/srcpkgs/bzflag/template b/srcpkgs/bzflag/template
index d58270495975..e7315f51646a 100644
--- a/srcpkgs/bzflag/template
+++ b/srcpkgs/bzflag/template
@@ -12,3 +12,4 @@ homepage="https://www.bzflag.org"
 changelog="https://raw.githubusercontent.com/BZFlag-Dev/bzflag/2.4/ChangeLog"
 distfiles="https://download.bzflag.org/bzflag/source/${version}/bzflag-${version}.tar.bz2"
 checksum=9e64653302b657bd8b5f96fe1150a9ff80a1d53a6d7e8a35138c6b1b02006a4d
+patch_args=-Np0
diff --git a/srcpkgs/cantata/template b/srcpkgs/cantata/template
index 8ce1d756ace9..428ce3175cf6 100644
--- a/srcpkgs/cantata/template
+++ b/srcpkgs/cantata/template
@@ -17,3 +17,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/cdrummond/cantata"
 distfiles="https://github.com/CDrummond/cantata/releases/download/v${version}/${pkgname}-${version}.tar.bz2"
 checksum=3ed25d0c838720af7ed08b89a30f3e05d6952d40a5f520f29b3558b2eacdec82
+patch_args=-Np0
diff --git a/srcpkgs/cinnamon-session/template b/srcpkgs/cinnamon-session/template
index c27272b802a3..fa112215531a 100644
--- a/srcpkgs/cinnamon-session/template
+++ b/srcpkgs/cinnamon-session/template
@@ -17,3 +17,4 @@ license="GPL-2.0-or-later, LGPL-2.0-or-later"
 homepage="https://linuxmint-developer-guide.readthedocs.io/en/latest/cinnamon.html#cinnamon-session"
 distfiles="https://github.com/linuxmint/${pkgname}/archive/${version}.tar.gz"
 checksum=66301a1eb748f646c419ced76f3388d8d6af0436716c737842cd85f359bd38d4
+patch_args=-Np0
diff --git a/srcpkgs/clazy/template b/srcpkgs/clazy/template
index 2c958d5d481f..92023b704232 100644
--- a/srcpkgs/clazy/template
+++ b/srcpkgs/clazy/template
@@ -12,3 +12,4 @@ homepage="https://apps.kde.org/en/clazy"
 distfiles="${KDE_SITE}/clazy/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=4c6c2e473e6aa011cc5fab120ebcffec3fc11a9cc677e21ad8c3ea676eb076f8
 nocross="Clang cannot be installed as makedep"
+patch_args=-Np0
diff --git a/srcpkgs/curlftpfs/template b/srcpkgs/curlftpfs/template
index c1f06571aa24..aaabe2018457 100644
--- a/srcpkgs/curlftpfs/template
+++ b/srcpkgs/curlftpfs/template
@@ -11,3 +11,4 @@ homepage="http://curlftpfs.sourceforge.net/"
 license="GPL-2"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4eb44739c7078ba0edde177bdd266c4cfb7c621075f47f64c85a06b12b3c6958
+patch_args=-Np0
diff --git a/srcpkgs/cutecom/template b/srcpkgs/cutecom/template
index 4aad5728d348..e5cd27e3ea63 100644
--- a/srcpkgs/cutecom/template
+++ b/srcpkgs/cutecom/template
@@ -12,3 +12,4 @@ license="GPL-3.0-only"
 homepage="https://gitlab.com/cutecom/cutecom/"
 distfiles="https://gitlab.com/cutecom/cutecom/-/archive/v${version}/cutecom-v${version}.tar.gz"
 checksum=4b2591daa983b31716091bd1602988b5a06a19c1a3402150826fc36233edbedd
+patch_args=-Np0
diff --git a/srcpkgs/cvs/template b/srcpkgs/cvs/template
index c37384b54302..25d4446d64d7 100644
--- a/srcpkgs/cvs/template
+++ b/srcpkgs/cvs/template
@@ -14,3 +14,4 @@ homepage="http://www.nongnu.org/cvs/"
 license="GPL-1, LGPL-2"
 distfiles="http://ftp.gnu.org/non-gnu/cvs/source/feature/$version/cvs-$version.tar.bz2"
 checksum=78853613b9a6873a30e1cc2417f738c330e75f887afdaf7b3d0800cb19ca515e
+patch_args=-Np0
diff --git a/srcpkgs/darkice/template b/srcpkgs/darkice/template
index b61c6d8c7f8a..d6afbebc3446 100644
--- a/srcpkgs/darkice/template
+++ b/srcpkgs/darkice/template
@@ -21,3 +21,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.darkice.org"
 distfiles="${SOURCEFORGE_SITE}/project/darkice/darkice/${version}/darkice-${version}.tar.gz"
 checksum=2c0d0faaa627c0273b2ce8b38775a73ef97e34ef866862a398f660ad8f6e9de6
+patch_args=-Np0
diff --git a/srcpkgs/ddd/template b/srcpkgs/ddd/template
index 24f44a9abc23..71dc933f1045 100644
--- a/srcpkgs/ddd/template
+++ b/srcpkgs/ddd/template
@@ -10,3 +10,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/ddd"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=3ad6cd67d7f4b1d6b2d38537261564a0d26aaed077bf25c51efc1474d0e8b65c
+patch_args=-Np0
diff --git a/srcpkgs/dhewm3/template b/srcpkgs/dhewm3/template
index 5509900e8c0b..f2cfd2c0f79c 100644
--- a/srcpkgs/dhewm3/template
+++ b/srcpkgs/dhewm3/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://dhewm3.org/"
 distfiles="https://github.com/dhewm/dhewm3/releases/download/${version}/dhewm3-${version}-src.tar.xz"
 checksum=31671f35fb6f83272dfa2a27c0dad6183bc228f1f1a448ef925052cf4dcf4b68
+patch_args=-Np0
diff --git a/srcpkgs/dialogbox/template b/srcpkgs/dialogbox/template
index 31d985e61769..f213a4c2d3a0 100644
--- a/srcpkgs/dialogbox/template
+++ b/srcpkgs/dialogbox/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/martynets/dialogbox"
 distfiles="https://github.com/martynets/dialogbox/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=554e59712a616772cff5734206e2a223171ad57c0e922421d8383a763b11640e
+patch_args=-Np0
diff --git a/srcpkgs/dillo/template b/srcpkgs/dillo/template
index d2bdc4bf77e8..16a821062d9f 100644
--- a/srcpkgs/dillo/template
+++ b/srcpkgs/dillo/template
@@ -15,3 +15,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.dillo.org/download/"
 distfiles="http://www.dillo.org/download/${pkgname}-${version}.tar.bz2"
 checksum=db1be16c1c5842ebe07b419aa7c6ef11a45603a75df2877f99635f4f8345148b
+patch_args=-Np0
diff --git a/srcpkgs/dislocker/template b/srcpkgs/dislocker/template
index a5580034c6fd..97b42c35a35e 100644
--- a/srcpkgs/dislocker/template
+++ b/srcpkgs/dislocker/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Aorimn/dislocker"
 distfiles="https://github.com/Aorimn/${pkgname}/archive/v${version}.tar.gz"
 checksum=8d5275577c44f2bd87f6e05dd61971a71c0e56a9cbedf000bd38deadd8b6c1e6
+patch_args=-Np0
diff --git a/srcpkgs/dmg2img/template b/srcpkgs/dmg2img/template
index a14781b0c3b1..bfe2c851b263 100644
--- a/srcpkgs/dmg2img/template
+++ b/srcpkgs/dmg2img/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://vu1tur.eu.org/dmg2img"
 distfiles="http://vu1tur.eu.org/tools/dmg2img-${version}.tar.gz"
 checksum=02aea6d05c5b810074913b954296ddffaa43497ed720ac0a671da4791ec4d018
+patch_args=-Np0
diff --git a/srcpkgs/dvdbackup/template b/srcpkgs/dvdbackup/template
index 0d823b6f97ef..11d83f016517 100644
--- a/srcpkgs/dvdbackup/template
+++ b/srcpkgs/dvdbackup/template
@@ -10,3 +10,4 @@ license="GPL-3.0-or-later"
 homepage="http://dvdbackup.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/dvdbackup/dvdbackup-${version}.tar.xz"
 checksum=ef8c56fbb82b15b7eef00d2d3118c8253f9770009ed7bb2a5d4849acf88183e6
+patch_args=-Np0
diff --git a/srcpkgs/edb-debugger/template b/srcpkgs/edb-debugger/template
index e2d24e173f10..1f78ae3755d5 100644
--- a/srcpkgs/edb-debugger/template
+++ b/srcpkgs/edb-debugger/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/eteran/edb-debugger"
 distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tgz"
 checksum=86df4a0940a39c1480a6fc789f167f94e87a7a330f2d8163fe871f42c754afe8
+patch_args=-Np0
diff --git a/srcpkgs/endless-sky/template b/srcpkgs/endless-sky/template
index 00583361ce76..1cd6906a89b3 100644
--- a/srcpkgs/endless-sky/template
+++ b/srcpkgs/endless-sky/template
@@ -12,3 +12,4 @@ homepage="http://endless-sky.github.io/"
 distfiles="https://github.com/endless-sky/endless-sky/archive/v${version}.tar.gz"
 checksum=001c8a28bbec7491f2725fbaa52b1ade813d33cec2d16521f241c80d04685b9d
 replaces="endless-sky-data>=0"
+patch_args=-Np0
diff --git a/srcpkgs/eolie/template b/srcpkgs/eolie/template
index 4249e3426296..8dfb6676db8e 100644
--- a/srcpkgs/eolie/template
+++ b/srcpkgs/eolie/template
@@ -15,3 +15,4 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Eolie"
 distfiles="https://gitlab.gnome.org/World/eolie/uploads/${_eolie_hash}/eolie-${version}.tar.xz"
 checksum=9da359895306cf5929a01acb60d1506afb0a04ddbbd0d80ae1d0ba831e34671b
+patch_args=-Np0
diff --git a/srcpkgs/epson-inkjet-printer-escpr/template b/srcpkgs/epson-inkjet-printer-escpr/template
index dda44942fff6..fb4053ab40a7 100644
--- a/srcpkgs/epson-inkjet-printer-escpr/template
+++ b/srcpkgs/epson-inkjet-printer-escpr/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
 distfiles="https://download3.ebz.epson.net/dsc/f/03/00/10/49/18/f3016be6120a7271a6d9cb64872f817bce1920b8/${pkgname}-${version}-1lsb3.2.tar.gz"
 checksum=8d964368a1395a8902b8637e3dc176d6793f0afdfe3f21e95509f29894700d4e
+patch_args=-Np0
diff --git a/srcpkgs/exfat-utils/template b/srcpkgs/exfat-utils/template
index 6c62704fa511..6ca86c434c4c 100644
--- a/srcpkgs/exfat-utils/template
+++ b/srcpkgs/exfat-utils/template
@@ -9,3 +9,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/relan/exfat"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=dfebd07a7b907e2d603d3a9626e6440bd43ec6c4e8c07ccfc57ce9502b724835
+patch_args=-Np0
diff --git a/srcpkgs/extundelete/template b/srcpkgs/extundelete/template
index 3ae6119c38dc..87b9c1fdf9b7 100644
--- a/srcpkgs/extundelete/template
+++ b/srcpkgs/extundelete/template
@@ -10,3 +10,4 @@ license="GPL-2.0-only"
 homepage="http://extundelete.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=a1f9dd61247056d36401ce5d6785e74d08a184340eebd3865c345ddaa93f19f4
+patch_args=-Np0
diff --git a/srcpkgs/fastjar/template b/srcpkgs/fastjar/template
index 6eab069f60ef..f3a6c5fb87c0 100644
--- a/srcpkgs/fastjar/template
+++ b/srcpkgs/fastjar/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://savannah.nongnu.org/projects/fastjar"
 distfiles="http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=f156abc5de8658f22ee8f08d7a72c88f9409ebd8c7933e9466b0842afeb2f145
+patch_args=-Np0
diff --git a/srcpkgs/fceux/template b/srcpkgs/fceux/template
index 5ecaa9c7e08f..10c3b17d433b 100644
--- a/srcpkgs/fceux/template
+++ b/srcpkgs/fceux/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://fceux.com/web/home.html"
 distfiles="https://github.com/TASVideos/fceux/archive/fceux-${version}.tar.gz"
 checksum=0d3b02b3f15032f7675acb95423fd81fae286615313dfbc58cdd4de2bce17f6e
+patch_args=-Np0
diff --git a/srcpkgs/fifengine/template b/srcpkgs/fifengine/template
index 6a2cc79a4487..d3bf756eabe7 100644
--- a/srcpkgs/fifengine/template
+++ b/srcpkgs/fifengine/template
@@ -14,3 +14,4 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/fifengine/fifengine"
 distfiles="https://github.com/fifengine/fifengine/archive/${version}.tar.gz"
 checksum=e882b55befa36ae2f1a89ada16af0f814a1b78f7cbe6021ec5b1605604cf8ff8
+patch_args=-Np0
diff --git a/srcpkgs/filelight/template b/srcpkgs/filelight/template
index 35cd560b1f96..197232071e80 100644
--- a/srcpkgs/filelight/template
+++ b/srcpkgs/filelight/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://utils.kde.org/projects/filelight/"
 distfiles="${KDE_SITE}/release-service/${version}/src/filelight-${version}.tar.xz"
 checksum=618f91b9da8eebbb6b96e3d74d9e89a7c088ca08b1682ff6c4e65b53a3da5d20
+patch_args=-Np0
diff --git a/srcpkgs/fuse-emulator/template b/srcpkgs/fuse-emulator/template
index e1159f258700..957c8796eb0e 100644
--- a/srcpkgs/fuse-emulator/template
+++ b/srcpkgs/fuse-emulator/template
@@ -14,3 +14,4 @@ license="GPL-2.0-or-later"
 homepage="http://fuse-emulator.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/fuse-emulator/fuse-${version}.tar.gz"
 checksum=f0e2583f2642cdc3b2a737910d24e289d46e4f7e151805e3b0827024b2b45e4d
+patch_args=-Np0
diff --git a/srcpkgs/gcal/template b/srcpkgs/gcal/template
index 3c535d1c099c..7107cee8ef52 100644
--- a/srcpkgs/gcal/template
+++ b/srcpkgs/gcal/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/gcal/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=91b56c40b93eee9bda27ec63e95a6316d848e3ee047b5880ed71e5e8e60f61ab
+patch_args=-Np0
diff --git a/srcpkgs/gftp/template b/srcpkgs/gftp/template
index 0820b29da2d3..30a3556d628e 100644
--- a/srcpkgs/gftp/template
+++ b/srcpkgs/gftp/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.gftp.org"
 distfiles="https://sources.voidlinux.org/gftp-${version}/gftp-${version}.tar.bz2"
 checksum=5306a46be96d6f4d23906cb1836fb3d732039621a6c7fcfa921acc21ac110bfd
+patch_args=-Np0
diff --git a/srcpkgs/gfuzz/template b/srcpkgs/gfuzz/template
index 3925f06c9500..31faee7c4a90 100644
--- a/srcpkgs/gfuzz/template
+++ b/srcpkgs/gfuzz/template
@@ -12,3 +12,4 @@ license="Apache-2.0"
 homepage="https://github.com/braaaax/gfz"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=8b6a3df0c385fe993ead673df53daa290943220f2cde73e6b1c706ef94aa4e5f
+patch_args=-Np0
diff --git a/srcpkgs/git-mediate/template b/srcpkgs/git-mediate/template
index aa3979d3435a..7923a1743d95 100644
--- a/srcpkgs/git-mediate/template
+++ b/srcpkgs/git-mediate/template
@@ -13,3 +13,4 @@ distfiles="https://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-
 checksum=81220f7e20a3913bc147b69681666ad22e60e5b759a1becad78ee28dcad8013d
 nocross=yes
 nopie_files="/usr/bin/git-mediate"
+patch_args=-Np0
diff --git a/srcpkgs/gltron/template b/srcpkgs/gltron/template
index 1239a1742e5d..4aad84aeb45e 100644
--- a/srcpkgs/gltron/template
+++ b/srcpkgs/gltron/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://gltron.org/"
 distfiles="${SOURCEFORGE_SITE}/gltron/gltron-${version}-source.tar.gz"
 checksum="e0c8ebb41a18a1f8d7302a9c2cb466f5b1dd63e9a9966c769075e6b6bdad8bb0"
+patch_args=-Np0
diff --git a/srcpkgs/gnome-recipes/template b/srcpkgs/gnome-recipes/template
index 30f81ab265b6..847e736a4844 100644
--- a/srcpkgs/gnome-recipes/template
+++ b/srcpkgs/gnome-recipes/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Recipes"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=1be9d2fcb7404a97aa029d2409880643f15071c37039247a6a4320e7478cd5fb
+patch_args=-Np0
diff --git a/srcpkgs/gnupod/template b/srcpkgs/gnupod/template
index 09c35988a9d8..6515b87aa61b 100644
--- a/srcpkgs/gnupod/template
+++ b/srcpkgs/gnupod/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/gnupod/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tgz"
 checksum=bd566295a2e14352e6d05f5c816cab36b0e80d3ab36d29c4bbb45c581d3f3c31
+patch_args=-Np0
diff --git a/srcpkgs/gupnp-tools/template b/srcpkgs/gupnp-tools/template
index 09507922f46c..6c02534f0453 100644
--- a/srcpkgs/gupnp-tools/template
+++ b/srcpkgs/gupnp-tools/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://gupnp.org/"
 distfiles="${GNOME_SITE}/gupnp-tools/${version%.*}/gupnp-tools-${version}.tar.xz"
 checksum=41da7ff5ba8e2425adcb64ca5e04c81f57ca20ec6fdb84923939fdad42c6a18d
+patch_args=-Np0
diff --git a/srcpkgs/helm/template b/srcpkgs/helm/template
index e7d7b59c10b2..57ad3b36321a 100644
--- a/srcpkgs/helm/template
+++ b/srcpkgs/helm/template
@@ -13,3 +13,4 @@ homepage="http://tytel.org/helm"
 distfiles="https://github.com/mtytel/helm/archive/v${version}.tar.gz"
 checksum=4004c11fd1d773cc2a12adb5336873bc86c5ecbd370b8da2820fed6ef5ec58ad
 nocross="./lv2_ttl_generator: ./lv2_ttl_generator: cannot execute binary file"
+patch_args=-Np0
diff --git a/srcpkgs/html-xml-utils/template b/srcpkgs/html-xml-utils/template
index a2f0a8d6f528..ab69c1e16d33 100644
--- a/srcpkgs/html-xml-utils/template
+++ b/srcpkgs/html-xml-utils/template
@@ -10,3 +10,4 @@ license="W3C"
 homepage="https://www.w3.org/Tools/HTML-XML-utils/README"
 distfiles="https://www.w3.org/Tools/HTML-XML-utils/${pkgname}-${version}.tar.gz"
 checksum=d86ac96ea660316bef814c17b2a96d54cdf91c69e59614459865c2bfdaee433f
+patch_args=-Np0
diff --git a/srcpkgs/hxtools/template b/srcpkgs/hxtools/template
index 87be5bb16f1a..33a37ff0b971 100644
--- a/srcpkgs/hxtools/template
+++ b/srcpkgs/hxtools/template
@@ -12,3 +12,4 @@ homepage="http://inai.de/projects/hxtools"
 distfiles="http://inai.de/files/hxtools/hxtools-${version}.tar.xz"
 checksum=45ceee8db0b9b926712b336ebb91c572f2247cec64862f6171fc416db4e9e12f
 conflicts="bsd-games>=0"
+patch_args=-Np0
diff --git a/srcpkgs/icecast/template b/srcpkgs/icecast/template
index 920d6ffe9d31..b3fed3c37602 100644
--- a/srcpkgs/icecast/template
+++ b/srcpkgs/icecast/template
@@ -13,3 +13,4 @@ homepage="http://www.icecast.org/"
 distfiles="http://downloads.xiph.org/releases/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=49b5979f9f614140b6a38046154203ee28218d8fc549888596a683ad604e4d44
 conf_files="/etc/icecast.xml"
+patch_args=-Np0
diff --git a/srcpkgs/imagewriter/template b/srcpkgs/imagewriter/template
index cd4d3c9af695..197bc5476340 100644
--- a/srcpkgs/imagewriter/template
+++ b/srcpkgs/imagewriter/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/openSUSE/imagewriter"
 distfiles="https://github.com/openSUSE/imagewriter/archive/${_commit}.tar.gz"
 checksum=7761ee45b16b5841c6b62b091c7f9d0b8c64b14b79d77e9909ca813e1dc9885d
+patch_args=-Np0
diff --git a/srcpkgs/img2pdf/template b/srcpkgs/img2pdf/template
index 206bf3cbccc6..9b7cae086496 100644
--- a/srcpkgs/img2pdf/template
+++ b/srcpkgs/img2pdf/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.mister-muffin.de/josch/img2pdf"
 distfiles="${PYPI_SITE}/i/img2pdf/img2pdf-${version}.tar.gz"
 checksum=38a1229ca84b211d7782d1d65ad7251a9781bf24f6f6497c738c755fcfed5552
+patch_args=-Np0
diff --git a/srcpkgs/intel-undervolt/template b/srcpkgs/intel-undervolt/template
index d631eb2222a8..e9d1bf651d07 100644
--- a/srcpkgs/intel-undervolt/template
+++ b/srcpkgs/intel-undervolt/template
@@ -10,3 +10,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/kitsunyan/intel-undervolt"
 distfiles="https://github.com/kitsunyan/intel-undervolt/archive/${version}.tar.gz"
 checksum=29a7ebaee4830d65d0b5cefa6d497887d4f23f34659876dfe944f3a020cf33ff
+patch_args=-Np0
diff --git a/srcpkgs/intltool/template b/srcpkgs/intltool/template
index cfba730f2e67..b3b26d28aded 100644
--- a/srcpkgs/intltool/template
+++ b/srcpkgs/intltool/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://edge.launchpad.net/intltool"
 distfiles="http://launchpad.net/intltool/trunk/$version/+download/$pkgname-$version.tar.gz"
 checksum=67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd
+patch_args=-Np0
diff --git a/srcpkgs/io.elementary.photos/template b/srcpkgs/io.elementary.photos/template
index 81c1734164ba..a07e9b5a4912 100644
--- a/srcpkgs/io.elementary.photos/template
+++ b/srcpkgs/io.elementary.photos/template
@@ -20,3 +20,4 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/elementary/photos"
 distfiles="https://github.com/elementary/photos/archive/${version}.tar.gz"
 checksum=9f6ad409d053e3239b9ec7fc59429afe9ce89e40878697a73c2c3f215556a074
+patch_args=-Np0
diff --git a/srcpkgs/ipv6calc/template b/srcpkgs/ipv6calc/template
index fdeb909b06e9..7873da6a9847 100644
--- a/srcpkgs/ipv6calc/template
+++ b/srcpkgs/ipv6calc/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://www.deepspace6.net/projects/ipv6calc.html"
 distfiles="https://github.com/pbiering/ipv6calc/archive/${version}.tar.gz"
 checksum=db690da55a31db063f87af7731cf5c913d8622057fc6c9f66f879725b1540496
+patch_args=-Np0
diff --git a/srcpkgs/itstool/template b/srcpkgs/itstool/template
index 5618fa120fff..d83b9b2fe397 100644
--- a/srcpkgs/itstool/template
+++ b/srcpkgs/itstool/template
@@ -13,3 +13,4 @@ license="GPL-3.0-or-later"
 homepage="http://itstool.org/"
 distfiles="http://files.itstool.org/itstool/${pkgname}-${version}.tar.bz2"
 checksum=6233cc22726a9a5a83664bf67d1af79549a298c23185d926c3677afa917b92a9
+patch_args=-Np0
diff --git a/srcpkgs/iwgtk/template b/srcpkgs/iwgtk/template
index a9b23b80f0ca..a4461b5602a9 100644
--- a/srcpkgs/iwgtk/template
+++ b/srcpkgs/iwgtk/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/J-Lentz/iwgtk/"
 distfiles="https://github.com/J-Lentz/iwgtk/archive/refs/tags/v${version}.tar.gz"
 checksum=71bb85546a55bf710052d4947f6be5f5a01033d04d2d14a85a7e734dd570657d
+patch_args=-Np0
diff --git a/srcpkgs/jigdo/template b/srcpkgs/jigdo/template
index 16edbc817c8a..aff25631a6ff 100644
--- a/srcpkgs/jigdo/template
+++ b/srcpkgs/jigdo/template
@@ -12,3 +12,4 @@ license="GPL-2"
 homepage="http://atterer.org/jigdo/"
 distfiles="http://atterer.org/sites/atterer/files/2009-08/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum="875c069abad67ce67d032a9479228acdb37c8162236c0e768369505f264827f0"
+patch_args=-Np0
diff --git a/srcpkgs/k3b/template b/srcpkgs/k3b/template
index f02f12356d52..3ff3d73d1304 100644
--- a/srcpkgs/k3b/template
+++ b/srcpkgs/k3b/template
@@ -16,3 +16,4 @@ license="GPL-2.0-or-later"
 homepage="https://kde.org/applications/en/multimedia/org.kde.k3b"
 distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=986c5073c944dbda5b49e3c1a2fbf340fb1c6af941e80b6a0020fadd1be9034b
+patch_args=-Np0
diff --git a/srcpkgs/kcm-wacomtablet/template b/srcpkgs/kcm-wacomtablet/template
index 0e1234c6218b..926fc17457fe 100644
--- a/srcpkgs/kcm-wacomtablet/template
+++ b/srcpkgs/kcm-wacomtablet/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://invent.kde.org/system/wacomtablet"
 distfiles="${KDE_SITE}/wacomtablet/${version}/wacomtablet-${version}.tar.xz"
 checksum=c80ce63a41f6fcbb50ac4c2130ed2f8273c4b744e62e33d4b714bf83e8e5f7a4
+patch_args=-Np0
diff --git a/srcpkgs/kcov/template b/srcpkgs/kcov/template
index cb361bd65b1a..038549b26466 100644
--- a/srcpkgs/kcov/template
+++ b/srcpkgs/kcov/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://simonkagstrom.github.io/kcov/index.html"
 distfiles="https://github.com/SimonKagstrom/kcov/archive/v${version}.tar.gz"
 checksum=b37af60d81a9b1e3b140f9473bdcb7975af12040feb24cc666f9bb2bb0be68b4
+patch_args=-Np0
diff --git a/srcpkgs/keditbookmarks/template b/srcpkgs/keditbookmarks/template
index 51fe33866304..efc8fcb830e9 100644
--- a/srcpkgs/keditbookmarks/template
+++ b/srcpkgs/keditbookmarks/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later, GFDL-1.2-only"
 homepage="https://www.kde.org/"
 distfiles="${KDE_SITE}/release-service/${version}/src/keditbookmarks-${version}.tar.xz"
 checksum=a57eec8ff05b6a6fea5367b489f67d8de7483aaede4c39692c347da15ba9eec3
+patch_args=-Np0
diff --git a/srcpkgs/kig/template b/srcpkgs/kig/template
index 1431f85bde84..82957d1c25c8 100644
--- a/srcpkgs/kig/template
+++ b/srcpkgs/kig/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://www.kde.org/applications/education/kig/"
 distfiles="${KDE_SITE}/release-service/${version}/src/kig-${version}.tar.xz"
 checksum=5939d298b40d265f1ddef4bd81540b1a26204d858f85db5847cc102366a5ce58
+patch_args=-Np0
diff --git a/srcpkgs/krusader/template b/srcpkgs/krusader/template
index dbc7743a0dd8..93f8662bf8d5 100644
--- a/srcpkgs/krusader/template
+++ b/srcpkgs/krusader/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.krusader.org/"
 distfiles="${KDE_SITE}/krusader/${version}/krusader-${version}.tar.xz"
 checksum=41a39a43b3c42dd1d1ecaea86df30caff6a061fecc1d66f60859b2a3ca976109
+patch_args=-Np0
diff --git a/srcpkgs/ksysguard/template b/srcpkgs/ksysguard/template
index c276f9d7bbbc..23288bfb15fe 100644
--- a/srcpkgs/ksysguard/template
+++ b/srcpkgs/ksysguard/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later, GFDL-1.2-only"
 homepage="https://invent.kde.org/plasma/ksysguard"
 distfiles="${KDE_SITE}/ksysguard/${version}/${pkgname}-${version}.tar.xz"
 checksum=0f9c624e5fbb2aee906d8d9563c5a7eb09eaf38bc8e4382c072f9e6d8854622d
+patch_args=-Np0
diff --git a/srcpkgs/lbreakouthd/template b/srcpkgs/lbreakouthd/template
index 1f9accfb4ab9..c0025345fa9b 100644
--- a/srcpkgs/lbreakouthd/template
+++ b/srcpkgs/lbreakouthd/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://lgames.sourceforge.net/LBreakoutHD/"
 distfiles="${SOURCEFORGE_SITE}/lgames/$pkgname-$version.tar.gz"
 checksum=df5f8ad88bcf20bd34e1dfd77697b49a168d83ad43d8fdf5a3fee1fe272e15bd
+patch_args=-Np0
diff --git a/srcpkgs/lbzip2/template b/srcpkgs/lbzip2/template
index c6973fe171b5..3ac6ff9ec10a 100644
--- a/srcpkgs/lbzip2/template
+++ b/srcpkgs/lbzip2/template
@@ -9,3 +9,4 @@ license="GPL-3.0-or-later"
 homepage="http://lbzip2.org/"
 distfiles="http://archive.lbzip2.org/lbzip2-${version}.tar.gz"
 checksum=46c75ee93cc95eedc6005625442b2b8e59a2bef3ba80987d0491f055185650e9
+patch_args=-Np0
diff --git a/srcpkgs/lcov/template b/srcpkgs/lcov/template
index 2d23c19f0cc3..787296423df5 100644
--- a/srcpkgs/lcov/template
+++ b/srcpkgs/lcov/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://ltp.sourceforge.net/coverage/lcov.php"
 distfiles="https://github.com/linux-test-project/${pkgname}/archive/v${version}.tar.gz"
 checksum=d88b0718f59815862785ac379aed56974b9edd8037567347ae70081cd4a3542a
+patch_args=-Np0
diff --git a/srcpkgs/libeatmydata/template b/srcpkgs/libeatmydata/template
index 3334ca236d94..7470acc97fdd 100644
--- a/srcpkgs/libeatmydata/template
+++ b/srcpkgs/libeatmydata/template
@@ -9,3 +9,4 @@ license="GPL-3.0-only"
 homepage="http://www.flamingspork.com/projects/libeatmydata/"
 distfiles="http://www.flamingspork.com/projects/libeatmydata/${pkgname}-${version}.tar.gz"
 checksum=bdd2d068b6b27cf47cd22aa4c5da43b3d4a05944cfe0ad1b0d843d360ed3a8dd
+patch_args=-Np0
diff --git a/srcpkgs/libva-vdpau-driver/template b/srcpkgs/libva-vdpau-driver/template
index 391ba5296f4e..82104939cfdf 100644
--- a/srcpkgs/libva-vdpau-driver/template
+++ b/srcpkgs/libva-vdpau-driver/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="http://freedesktop.org/wiki/Software/vaapi"
 distfiles="${FREEDESKTOP_SITE}/vaapi/releases/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=155c1982f0ac3f5435ba20b221bcaa11be212c37db548cd1f2a030ffa17e9bb9
+patch_args=-Np0
diff --git a/srcpkgs/libwm/template b/srcpkgs/libwm/template
index df29afde53aa..e88e7eb4a5ed 100644
--- a/srcpkgs/libwm/template
+++ b/srcpkgs/libwm/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/wmutils/libwm"
 distfiles="https://github.com/wmutils/libwm/archive/v${version}.tar.gz"
 checksum=db80ef40d6b105f046c1d0bc138470b3e23e7bd1000afc3163d9e62f403f0f6a
+patch_args=-Np0
diff --git a/srcpkgs/lltag/template b/srcpkgs/lltag/template
index c540ae3ddef8..565369c9a986 100644
--- a/srcpkgs/lltag/template
+++ b/srcpkgs/lltag/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="http://bgoglin.free.fr/lltag/"
 distfiles="https://github.com/bgoglin/lltag/archive/lltag-${version}.tar.gz"
 checksum=e24c88866d89f90c11bcf89d9d1b4e8af78f486f1f7454a28210b10b8af17252
+patch_args=-Np0
diff --git a/srcpkgs/lrzsz/template b/srcpkgs/lrzsz/template
index e90aaeba3a21..98b4e7fb1c30 100644
--- a/srcpkgs/lrzsz/template
+++ b/srcpkgs/lrzsz/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://ohse.de/uwe/software/lrzsz.html"
 distfiles="http://ohse.de/uwe/releases/$pkgname-$version.tar.gz"
 checksum=c28b36b14bddb014d9e9c97c52459852f97bd405f89113f30bee45ed92728ff1
+patch_args=-Np0
diff --git a/srcpkgs/macchanger/template b/srcpkgs/macchanger/template
index 9af205a0d0f4..3d4402e208bf 100644
--- a/srcpkgs/macchanger/template
+++ b/srcpkgs/macchanger/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/macchanger"
 distfiles="https://github.com/alobbs/macchanger/archive/${version}.tar.gz"
 checksum=1d75c07a626321e07b48a5fe2dbefbdb98c3038bb8230923ba8d32bda5726e4f
+patch_args=-Np0
diff --git a/srcpkgs/mate-power-manager/template b/srcpkgs/mate-power-manager/template
index 4f2f7d77c8f1..c1afcc458a43 100644
--- a/srcpkgs/mate-power-manager/template
+++ b/srcpkgs/mate-power-manager/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=d24b9fce23b086817d5494f7e65e58f18367af6eb5d0d4ade45de5396e20d13a
+patch_args=-Np0
diff --git a/srcpkgs/mcomix/template b/srcpkgs/mcomix/template
index c413e5e00288..5557136c1ace 100644
--- a/srcpkgs/mcomix/template
+++ b/srcpkgs/mcomix/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="http://sourceforge.net/projects/mcomix/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/MComix-${version}/${pkgname}-${version}.tar.bz2"
 checksum=7e43159dc585bc9bc31970a44bd2b4e42c303660c4c8cf7f0eda413a6f72fa3b
+patch_args=-Np0
diff --git a/srcpkgs/mftrace/template b/srcpkgs/mftrace/template
index 10f2c1ecfdc1..09ee52a11a3e 100644
--- a/srcpkgs/mftrace/template
+++ b/srcpkgs/mftrace/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://lilypond.org/mftrace"
 distfiles="http://lilypond.org/downloads/sources/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=626b7a9945a768c086195ba392632a68d6af5ea24ef525dcd0a4a8b199ea5f6f
+patch_args=-Np0
diff --git a/srcpkgs/nm-tray/template b/srcpkgs/nm-tray/template
index b2a3e85cf57e..2acc4a68f434 100644
--- a/srcpkgs/nm-tray/template
+++ b/srcpkgs/nm-tray/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/palinek/nm-tray"
 distfiles="https://github.com/palinek/nm-tray/archive/${version}.tar.gz"
 checksum=1611c053582189091efa74c2f26277afc872a57cfd4ec9e54463f68c25ad284b
+patch_args=-Np0
diff --git a/srcpkgs/nootka/template b/srcpkgs/nootka/template
index 8726ab984e8c..3ee39181a314 100644
--- a/srcpkgs/nootka/template
+++ b/srcpkgs/nootka/template
@@ -12,3 +12,4 @@ license="GPL-3.0-only"
 homepage="https://nootka.sourceforge.io"
 distfiles="${SOURCEFORGE_SITE}/nootka/Nootka-${version}/nootka-${version}-source.tar.bz2"
 checksum=1d85a2970ddb51117b0a98df4d84ca9e9498fbd1d2b1c55bfa62931333a73cf9
+patch_args=-Np0
diff --git a/srcpkgs/olive/template b/srcpkgs/olive/template
index 11468a8b04cf..c001284d41d0 100644
--- a/srcpkgs/olive/template
+++ b/srcpkgs/olive/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://www.olivevideoeditor.org"
 distfiles="https://github.com/olive-editor/olive/archive/${version}.tar.gz"
 checksum=cb9a5b109e67a47f03448633cbc7a257aa8e6c3c76a59c1fada77fd3d97875c1
+patch_args=-Np0
diff --git a/srcpkgs/pam_rundir/template b/srcpkgs/pam_rundir/template
index f08238ddb5fd..578d660bf4c1 100644
--- a/srcpkgs/pam_rundir/template
+++ b/srcpkgs/pam_rundir/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://jjacky.com/pam_rundir"
 distfiles="https://jjacky.com/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c779b699ed23777a3bdba87b7f67ed395fe957f3c96138faee45f87a27bcc020
+patch_args=-Np0
diff --git a/srcpkgs/pdfgrep/template b/srcpkgs/pdfgrep/template
index 20fe67c72035..b7270c1af890 100644
--- a/srcpkgs/pdfgrep/template
+++ b/srcpkgs/pdfgrep/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://pdfgrep.org"
 distfiles="https://pdfgrep.org/download/pdfgrep-${version}.tar.gz"
 checksum=0ef3dca1d749323f08112ffe68e6f4eb7bc25f56f90a2e933db477261b082aba
+patch_args=-Np0
diff --git a/srcpkgs/pdfsandwich/template b/srcpkgs/pdfsandwich/template
index 67c1a011ba78..37d4290fef56 100644
--- a/srcpkgs/pdfsandwich/template
+++ b/srcpkgs/pdfsandwich/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://www.tobias-elze.de/pdfsandwich/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=9795ffea84b9b6b501f38d49a4620cf0469ddf15aac31bac6dbdc9ec1716fa39
+patch_args=-Np0
diff --git a/srcpkgs/pekwm/template b/srcpkgs/pekwm/template
index 367691f8cb7d..908b9f20e31c 100644
--- a/srcpkgs/pekwm/template
+++ b/srcpkgs/pekwm/template
@@ -15,3 +15,4 @@ homepage="https://www.pekwm.se/"
 distfiles="https://github.com/pekdon/pekwm/archive/release-${version}.tar.gz"
 checksum=e04e14ab7b212ec7c3a36e4c24b6228383df4ca3768f9fea7ba22dcd107d5d5a
 conf_files="/etc/pekwm/*"
+patch_args=-Np0
diff --git a/srcpkgs/perl-Authen-SASL/template b/srcpkgs/perl-Authen-SASL/template
index c9aea8eb9587..66b079daaa30 100644
--- a/srcpkgs/perl-Authen-SASL/template
+++ b/srcpkgs/perl-Authen-SASL/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/Authen-SASL"
 distfiles="${CPAN_SITE}/Authen/${pkgname/perl-/}-${version}.tar.gz"
 checksum=6614fa7518f094f853741b63c73f3627168c5d3aca89b1d02b1016dc32854e09
+patch_args=-Np0
diff --git a/srcpkgs/perl-Crypt-DH/template b/srcpkgs/perl-Crypt-DH/template
index 95fe7e66836a..d4fc6f20a4c5 100644
--- a/srcpkgs/perl-Crypt-DH/template
+++ b/srcpkgs/perl-Crypt-DH/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/Crypt-DH"
 distfiles="${CPAN_SITE}/Crypt/Crypt-DH-${version}.tar.gz"
 checksum=c88cf3423b01e6782e8986d7fe5304436ab84b0925c4498c6fdfa17ef9a37f5f
+patch_args=-Np0
diff --git a/srcpkgs/perl-Crypt-Rijndael/template b/srcpkgs/perl-Crypt-Rijndael/template
index 5154d035b35c..a2c97d0d4ce9 100644
--- a/srcpkgs/perl-Crypt-Rijndael/template
+++ b/srcpkgs/perl-Crypt-Rijndael/template
@@ -13,3 +13,4 @@ license="LGPL-2.0-or-later"
 homepage="https://metacpan.org/release/Crypt-Rijndael"
 distfiles="${CPAN_SITE}/Crypt/Crypt-Rijndael-${version}.tar.gz"
 checksum=6451c3dffe8703523be2bb08d1adca97e77df2a8a4dd46944d18a99330b7850e
+patch_args=-Np0
diff --git a/srcpkgs/perl-Fuse/template b/srcpkgs/perl-Fuse/template
index 9793fbb001fb..3fb06c90e33b 100644
--- a/srcpkgs/perl-Fuse/template
+++ b/srcpkgs/perl-Fuse/template
@@ -13,3 +13,4 @@ license="LGPL-2.1-only"
 homepage="https://metacpan.org/release/Fuse"
 distfiles="${CPAN_SITE}/Fuse/Fuse-$version.tar.gz"
 checksum=30a939fe5816b00ba9cabb6cd811f894e6a74361ce29d786ae1811b0021d7aa1
+patch_args=-Np0
diff --git a/srcpkgs/perl-OpenGL/template b/srcpkgs/perl-OpenGL/template
index 31c5362852db..3628d85f23e0 100644
--- a/srcpkgs/perl-OpenGL/template
+++ b/srcpkgs/perl-OpenGL/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/OpenGL"
 distfiles="${CPAN_SITE}/OpenGL/${pkgname#perl-}-${version}.tar.gz"
 checksum=b20e2af4404b4901ab35bba6ad5e3a8aa60bff72413c99288f01018c4cf874e0
+patch_args=-Np0
diff --git a/srcpkgs/perl-XML-LibXSLT/template b/srcpkgs/perl-XML-LibXSLT/template
index 24fa3f44b1b5..2b6eecc07722 100644
--- a/srcpkgs/perl-XML-LibXSLT/template
+++ b/srcpkgs/perl-XML-LibXSLT/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/XML-LibXSLT/"
 distfiles="${CPAN_SITE}/XML/${pkgname/perl-/}-${version}.tar.gz"
 checksum=127e17a877fb61e47b9e8b87bf8daad31339a62a00121f9751d522b438b0f7f0
+patch_args=-Np0
diff --git a/srcpkgs/perl-XML-SAX/template b/srcpkgs/perl-XML-SAX/template
index d72f1eac7e8f..445c4c6e20ff 100644
--- a/srcpkgs/perl-XML-SAX/template
+++ b/srcpkgs/perl-XML-SAX/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/XML-SAX"
 distfiles="${CPAN_SITE}/XML/XML-SAX-${version}.tar.gz"
 checksum=4506c387043aa6a77b455f00f57409f3720aa7e553495ab2535263b4ed1ea12a
+patch_args=-Np0
diff --git a/srcpkgs/pidgin-gpg/template b/srcpkgs/pidgin-gpg/template
index 2442f04ea12f..b67e21ce24f0 100644
--- a/srcpkgs/pidgin-gpg/template
+++ b/srcpkgs/pidgin-gpg/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://github.com/segler-alex/Pidgin-GPG"
 distfiles="http://github.com/downloads/segler-alex/Pidgin-GPG/${pkgname}-${version}.tar.gz"
 checksum=736681cb25da31eb8ced96055d4150d649fe6ef6e523b6f65846c3446ac09a96
+patch_args=-Np0
diff --git a/srcpkgs/pidgin-sipe/template b/srcpkgs/pidgin-sipe/template
index 9ea248618f43..d9bead87f864 100644
--- a/srcpkgs/pidgin-sipe/template
+++ b/srcpkgs/pidgin-sipe/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="http://sipe.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/sipe/sipe/${pkgname}-${version}.tar.xz"
 checksum=738b121b11f2b3f1744150c00cb381222eb6cf67161a7742797eb4f03e64a2ba
+patch_args=-Np0
diff --git a/srcpkgs/plasma-desktop/template b/srcpkgs/plasma-desktop/template
index 4ec04abb501c..eeaf614bca95 100644
--- a/srcpkgs/plasma-desktop/template
+++ b/srcpkgs/plasma-desktop/template
@@ -21,3 +21,4 @@ distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=9be7d61a042b5d74c1a65ecc8101c81390d45c2fec766b5115d5924b5dac0972
 replaces="user-manager>=0"
 python_version=3
+patch_args=-Np0
diff --git a/srcpkgs/pokoy/template b/srcpkgs/pokoy/template
index 490067f7d9ff..f66ffc35c3fd 100644
--- a/srcpkgs/pokoy/template
+++ b/srcpkgs/pokoy/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://github.com/ttygde/pokoy"
 distfiles="https://github.com/ttygde/pokoy/archive/v${version}.tar.gz"
 checksum=ae3ee5935e503d1f48f7fc8e4df2071e9d4586a52dfe778ef643deb28ca6a22f
+patch_args=-Np0
diff --git a/srcpkgs/polkit-kde-agent/template b/srcpkgs/polkit-kde-agent/template
index a9182b185f1a..2d383314caa9 100644
--- a/srcpkgs/polkit-kde-agent/template
+++ b/srcpkgs/polkit-kde-agent/template
@@ -14,3 +14,4 @@ license="GPL-2.0-or-later"
 homepage="https://commits.kde.org/polkit-kde-agent"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-1-${version}.tar.xz"
 checksum=de9a6f1bdf434d013a8d6f0c1498257bc4a48349e652375b4dd036eb161214ee
+patch_args=-Np0
diff --git a/srcpkgs/posixovl/template b/srcpkgs/posixovl/template
index 1146191fcf82..221b61c832b3 100644
--- a/srcpkgs/posixovl/template
+++ b/srcpkgs/posixovl/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/posixovl/"
 distfiles="${SOURCEFORGE_SITE}/posixovl/files/${pkgname}-${version}.tar.xz"
 checksum=a827798b02c0f27b37d8a10502e76c21adac43b887a49e7234e8d27668f62e72
+patch_args=-Np0
diff --git a/srcpkgs/powertop/template b/srcpkgs/powertop/template
index d0841935e7f4..2c9c25319c65 100644
--- a/srcpkgs/powertop/template
+++ b/srcpkgs/powertop/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://01.org/powertop/"
 distfiles="https://01.org/sites/default/files/downloads/powertop-${version}.tar.gz"
 checksum=a65f992ca4a419bc73b623651060eb9fc00c5a86fa03556358cd9db011ef3178
+patch_args=-Np0
diff --git a/srcpkgs/python3-orocos-kdl/template b/srcpkgs/python3-orocos-kdl/template
index 281ea8978c5f..d27ab90a9b7a 100644
--- a/srcpkgs/python3-orocos-kdl/template
+++ b/srcpkgs/python3-orocos-kdl/template
@@ -15,3 +15,4 @@ license="LGPL-2.1-only"
 homepage="http://www.orocos.org/kdl"
 distfiles="https://github.com/orocos/orocos_kinematics_dynamics/archive/v${version}.tar.gz"
 checksum=05b93e759923684dc07433ccae1e476d158d89b3c2be5079c20062406da7b4dd
+patch_args=-Np0
diff --git a/srcpkgs/python3-pykeepass/template b/srcpkgs/python3-pykeepass/template
index dc3fe59fa411..7223950538bc 100644
--- a/srcpkgs/python3-pykeepass/template
+++ b/srcpkgs/python3-pykeepass/template
@@ -15,3 +15,4 @@ homepage="https://github.com/libkeepass/pykeepass"
 changelog="https://raw.githubusercontent.com/libkeepass/pykeepass/master/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/p/pykeepass/pykeepass-${version}.tar.gz"
 checksum=b3e07eb2dd3aeb1dfa1a2d2d17be77066ee560c1e770f1c72d7ea5608117d284
+patch_args=-Np0
diff --git a/srcpkgs/python3-transifex-client/template b/srcpkgs/python3-transifex-client/template
index e34c310c0a85..c71fd7a32338 100644
--- a/srcpkgs/python3-transifex-client/template
+++ b/srcpkgs/python3-transifex-client/template
@@ -13,3 +13,4 @@ license="GPL-2.0-only"
 homepage="https://www.transifex.com"
 distfiles="https://github.com/transifex/transifex-client/archive/${version}.tar.gz"
 checksum=460f3a829e57b8025280e03a6ad497a87beba142adb2e1579678227f49d4a9ab
+patch_args=-Np0
diff --git a/srcpkgs/python3-yara/template b/srcpkgs/python3-yara/template
index d3c42f7fa06f..359edc090a5b 100644
--- a/srcpkgs/python3-yara/template
+++ b/srcpkgs/python3-yara/template
@@ -13,3 +13,4 @@ license="Apache-2.0"
 homepage="http://virustotal.github.io/yara/"
 distfiles="https://github.com/VirusTotal/yara-python/archive/v${version}.tar.gz"
 checksum=4bc1a69bc9c5f70419806e15a05123a7879456b52a9c50832c34c22eecb4de81
+patch_args=-Np0
diff --git a/srcpkgs/qmltermwidget/template b/srcpkgs/qmltermwidget/template
index 8a5b2fa230eb..a770f2f1fd29 100644
--- a/srcpkgs/qmltermwidget/template
+++ b/srcpkgs/qmltermwidget/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Swordfish90/qmltermwidget"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=23e19eedb59d6fe3e37ecc06872f54befd94384946926e009c42c4b39914cfe2
+patch_args=-Np0
diff --git a/srcpkgs/qomui/template b/srcpkgs/qomui/template
index b74138381bef..73235d778f87 100644
--- a/srcpkgs/qomui/template
+++ b/srcpkgs/qomui/template
@@ -15,3 +15,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/corrad1nho/qomui"
 distfiles="https://github.com/corrad1nho/qomui/archive/v${version}.tar.gz"
 checksum=78187864a4368fed06f6e58c4d411053a1d1193d625ee79be0a57bf0938b1d0b
+patch_args=-Np0
diff --git a/srcpkgs/qtcurve/template b/srcpkgs/qtcurve/template
index 19a4d792d66f..7f98001a6e91 100644
--- a/srcpkgs/qtcurve/template
+++ b/srcpkgs/qtcurve/template
@@ -16,3 +16,4 @@ homepage="https://quickgit.kde.org/?p=qtcurve.git"
 distfiles="https://github.com/KDE/qtcurve/archive/${version}.tar.gz"
 checksum=fbfdafdac90d4c540dd55a4accfecfc3a17c1f532c5241e28003348beafaca15
 nocross="tries to execute a helper binary compiled for target on the host"
+patch_args=-Np0
diff --git a/srcpkgs/qtfm/template b/srcpkgs/qtfm/template
index f2c8e889e6c3..5013481bb259 100644
--- a/srcpkgs/qtfm/template
+++ b/srcpkgs/qtfm/template
@@ -14,3 +14,4 @@ homepage="https://github.com/rodlie/qtfm"
 changelog="https://raw.githubusercontent.com/rodlie/qtfm/master/ChangeLog"
 distfiles="https://github.com/rodlie/qtfm/archive/${version}.tar.gz"
 checksum=b9c707443e20644f6e5f0393ce5158843724ac08f92cf8d7ea8e1109957b5c00
+patch_args=-Np0
diff --git a/srcpkgs/recoll/template b/srcpkgs/recoll/template
index 8c5de6966a46..1f83b2715db2 100644
--- a/srcpkgs/recoll/template
+++ b/srcpkgs/recoll/template
@@ -16,3 +16,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.lesbonscomptes.com/recoll/"
 distfiles="https://www.lesbonscomptes.com/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=17a8e684a8d5560dc7b44cd4b2962cb46476a75bdc107f622051235076d11885
+patch_args=-Np0
diff --git a/srcpkgs/recordmydesktop/template b/srcpkgs/recordmydesktop/template
index eb509e5efd4a..b460f1355e4a 100644
--- a/srcpkgs/recordmydesktop/template
+++ b/srcpkgs/recordmydesktop/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://recordmydesktop.sourceforge.net/about.php"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=33a2e208186ae78e2db2a27b0f5047b50fb7819c47fe15483b0765200b9d738c
+patch_args=-Np0
diff --git a/srcpkgs/rofs-filtered/template b/srcpkgs/rofs-filtered/template
index 2bb8a2304312..3ad1be74b367 100644
--- a/srcpkgs/rofs-filtered/template
+++ b/srcpkgs/rofs-filtered/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/gburca/rofs-filtered"
 distfiles="https://github.com/gburca/rofs-filtered/archive/rel-${version}.tar.gz"
 checksum=d66066dfd0274a2fb7b71dd929445377dd23100b9fa43e3888dbe3fc7e8228e8
+patch_args=-Np0
diff --git a/srcpkgs/sasm/template b/srcpkgs/sasm/template
index 3c624065b5de..a3a705648cdf 100644
--- a/srcpkgs/sasm/template
+++ b/srcpkgs/sasm/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="http://dman95.github.io/SASM/"
 distfiles="https://github.com/Dman95/SASM/archive/v${version}.tar.gz"
 checksum=2c551d4a04f2e11f000eb1716885a646110305f8f2892d1a7761c0d4670d19a0
+patch_args=-Np0
diff --git a/srcpkgs/scribus/template b/srcpkgs/scribus/template
index 0898252efc43..00685dfba6a0 100644
--- a/srcpkgs/scribus/template
+++ b/srcpkgs/scribus/template
@@ -19,3 +19,4 @@ homepage="https://scribus.net"
 distfiles="$SOURCEFORGE_SITE/scribus/scribus-devel/${version}/scribus-${version}.tar.xz"
 checksum=318316b2cfc7a76191d3e0d3f8c2265147daea0570162028e243c292d826f8ce
 python_version=3
+patch_args=-Np0
diff --git a/srcpkgs/seahorse-nautilus/template b/srcpkgs/seahorse-nautilus/template
index 04424cc4acdb..c468cc13836f 100644
--- a/srcpkgs/seahorse-nautilus/template
+++ b/srcpkgs/seahorse-nautilus/template
@@ -15,3 +15,4 @@ homepage="http://www.gnome.org/projects/seahorse/"
 distfiles="${GNOME_SITE}/seahorse-nautilus/${version%.*}/seahorse-nautilus-${version}.tar.xz"
 checksum=eacaf33bba920cf117641393a6eef483dbc075009349082e77d22f79afbd823a
 lib32disabled=yes
+patch_args=-Np0
diff --git a/srcpkgs/seq2gif/template b/srcpkgs/seq2gif/template
index 8146d539a284..63ba990a96cf 100644
--- a/srcpkgs/seq2gif/template
+++ b/srcpkgs/seq2gif/template
@@ -9,3 +9,4 @@ license="GPL-3.0-or-later"
 homepage="http://saitoha.github.io/seq2gif/"
 distfiles="https://github.com/saitoha/seq2gif/archive/v${version}.tar.gz"
 checksum=738805bf8eb7ee5171ded7f43326cca7caecb77031283720f97253c234261f29
+patch_args=-Np0
diff --git a/srcpkgs/sgfutils/template b/srcpkgs/sgfutils/template
index 67980c8d32fb..1ad41f0ea177 100644
--- a/srcpkgs/sgfutils/template
+++ b/srcpkgs/sgfutils/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.cwi.nl/~aeb/go/sgfutils/html/"
 distfiles="https://homepages.cwi.nl/~aeb/go/${pkgname}/${pkgname}.tgz"
 checksum=4b26b321fbe255722f1d7e57233614da89a4da5bab031ae4ef7118ae3c7436a2
+patch_args=-Np0
diff --git a/srcpkgs/sidplayfp/template b/srcpkgs/sidplayfp/template
index c98648586c91..f63c893694a0 100644
--- a/srcpkgs/sidplayfp/template
+++ b/srcpkgs/sidplayfp/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/sidplay-residfp/"
 distfiles="${SOURCEFORGE_SITE}/sidplay-residfp/${pkgname}/${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=1c9dd519c39f7c811c33a7b8f516f33c36b36d29af6075316a7ec7320f9d9155
+patch_args=-Np0
diff --git a/srcpkgs/smbnetfs/template b/srcpkgs/smbnetfs/template
index 12806eaaa37d..bc89fbc198b1 100644
--- a/srcpkgs/smbnetfs/template
+++ b/srcpkgs/smbnetfs/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="http://smbnetfs.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=eac37b9769fbe9c3f4baf3eb64c61a6b59ad4f2aa05dfddcba5a1ac4adf4d560
+patch_args=-Np0
diff --git a/srcpkgs/solvespace/template b/srcpkgs/solvespace/template
index 377c0e4cbd15..c191a028aedc 100644
--- a/srcpkgs/solvespace/template
+++ b/srcpkgs/solvespace/template
@@ -13,3 +13,4 @@ homepage="https://solvespace.com/index.pl"
 distfiles="https://github.com/solvespace/solvespace/releases/download/v${version}/solvespace-source.tar.gz"
 checksum=0be0b2100c0b01eddded2a4dc60455d61cf67816189905af0e73082bfef96000
 nocross="https://travis-ci.org/bobertlo/void-packages/jobs/487251265"
+patch_args=-Np0
diff --git a/srcpkgs/sonata/template b/srcpkgs/sonata/template
index f4456abd175d..ea07e0620a62 100644
--- a/srcpkgs/sonata/template
+++ b/srcpkgs/sonata/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.nongnu.org/sonata/"
 distfiles="https://github.com/multani/sonata/archive/v${version}.tar.gz"
 checksum=401f6b796ca3cc176813b9f1639741a3fd226499c7ab25bbc740778ebb15f81d
+patch_args=-Np0
diff --git a/srcpkgs/stellarium/template b/srcpkgs/stellarium/template
index 188f87a3d397..f7f61f7f2e90 100644
--- a/srcpkgs/stellarium/template
+++ b/srcpkgs/stellarium/template
@@ -14,3 +14,4 @@ homepage="https://stellarium.org/"
 distfiles="https://github.com/Stellarium/stellarium/releases/download/v${version}/stellarium-${version}.tar.gz"
 checksum=977fcd6776a47d34b1646727853d15968a1410c34c8ba1b3e5cfbf24b5126f13
 replaces="stellarium-data>=0"
+patch_args=-Np0
diff --git a/srcpkgs/streamripper/template b/srcpkgs/streamripper/template
index 8530d816be12..d08ed26d3a49 100644
--- a/srcpkgs/streamripper/template
+++ b/srcpkgs/streamripper/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://streamripper.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=c1d75f2e9c7b38fd4695be66eff4533395248132f3cc61f375196403c4d8de42
+patch_args=-Np0
diff --git a/srcpkgs/stress-ng/template b/srcpkgs/stress-ng/template
index 97cfd9cf39c8..5610d73a24ce 100644
--- a/srcpkgs/stress-ng/template
+++ b/srcpkgs/stress-ng/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://kernel.ubuntu.com/~cking/stress-ng/"
 distfiles="http://kernel.ubuntu.com/~cking/tarballs/stress-ng/${pkgname}-${version}.tar.xz"
 checksum=bd167b6559fa8a28680371b1defd3ffe2344eb550129d58dd7d5e2d568f2786e
+patch_args=-Np0
diff --git a/srcpkgs/swell-foop/template b/srcpkgs/swell-foop/template
index afb8dd466c3e..45a2532e3c19 100644
--- a/srcpkgs/swell-foop/template
+++ b/srcpkgs/swell-foop/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Swell%20Foop"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=61c6b6ff9047c00bdc0dbe11a880058a5462921c702123a2d6d1a652bbbe6280
+patch_args=-Np0
diff --git a/srcpkgs/switchboard-plug-printers/template b/srcpkgs/switchboard-plug-printers/template
index caecd10c886c..76c235fbda57 100644
--- a/srcpkgs/switchboard-plug-printers/template
+++ b/srcpkgs/switchboard-plug-printers/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/elementary/${pkgname}"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=fe2c748e3737c3304ea8613d43d5ba8596f95499a65b8d13f93c4f702901f442
+patch_args=-Np0
diff --git a/srcpkgs/telepathy-haze/template b/srcpkgs/telepathy-haze/template
index 60b65b83eced..36f0c56c702f 100644
--- a/srcpkgs/telepathy-haze/template
+++ b/srcpkgs/telepathy-haze/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://telepathy.freedesktop.org"
 distfiles="${homepage}/releases/$pkgname/$pkgname-$version.tar.gz"
 checksum=3e76049c05f2cd5900c5c0c1cfebdf7ae79eec987a599f1090946673c5b8f9c9
+patch_args=-Np0
diff --git a/srcpkgs/tellico/template b/srcpkgs/tellico/template
index d20e33769d9a..aaf6a88cb14b 100644
--- a/srcpkgs/tellico/template
+++ b/srcpkgs/tellico/template
@@ -27,3 +27,4 @@ desc_option_xmp="Support for reading PDF/XMP metadata"
 desc_option_yaz="Support for searching z39.50 databases"
 desc_option_cddb="Support for CDDB searches"
 desc_option_scanner="Support for adding scanned images to a collection"
+patch_args=-Np0
diff --git a/srcpkgs/texmaker/template b/srcpkgs/texmaker/template
index bd07f0b84ce0..91035c31d4b9 100644
--- a/srcpkgs/texmaker/template
+++ b/srcpkgs/texmaker/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://www.xm1math.net/texmaker/index.html"
 distfiles="http://www.xm1math.net/$pkgname/$pkgname-$version.tar.bz2"
 checksum=1de3ab3f6d6bee37a7d0b528ca1cbb7ce8e7aef5ec6a4405aff2caf9d12bd0e2
+patch_args=-Np0
diff --git a/srcpkgs/tmfs/template b/srcpkgs/tmfs/template
index 1dbed3e0eb72..65c541ebb044 100644
--- a/srcpkgs/tmfs/template
+++ b/srcpkgs/tmfs/template
@@ -14,3 +14,4 @@ checksum="897ad09e21ddd8e912dc1baba4466d8a65a09b3abdeb31e4640c2d770915f2f4"
 post_install() {
 	vlicense LICENSE
 }
+patch_args=-Np0
diff --git a/srcpkgs/trackballs/template b/srcpkgs/trackballs/template
index 4fe2df36d959..8f52f522c4ca 100644
--- a/srcpkgs/trackballs/template
+++ b/srcpkgs/trackballs/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://trackballs.github.io/"
 distfiles="https://github.com/trackballs/trackballs/archive/v${version}.tar.gz"
 checksum=fd4c3e4860db8ca6e8e7ad870a5973d51323a77ed8d7b40d859d9b277c53fc02
+patch_args=-Np0
diff --git a/srcpkgs/tremc/template b/srcpkgs/tremc/template
index 227ca61dc2c5..ca00423bc7b0 100644
--- a/srcpkgs/tremc/template
+++ b/srcpkgs/tremc/template
@@ -10,3 +10,4 @@ license="GPL-3.0-only"
 homepage="https://github.com/tremc/tremc"
 distfiles="https://github.com/tremc/tremc/archive/${version}.tar.gz"
 checksum=ea31ff593c64bbf2c471f6c45ef09129e1e9cb55e8f8bd90e2916976a7053c61
+patch_args=-Np0
diff --git a/srcpkgs/ttfautohint/template b/srcpkgs/ttfautohint/template
index 6096ec06eb44..ee71bc04a032 100644
--- a/srcpkgs/ttfautohint/template
+++ b/srcpkgs/ttfautohint/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://www.freetype.org/ttfautohint/"
 distfiles="http://download.savannah.gnu.org/releases/freetype/ttfautohint-${version}.tar.gz"
 checksum=87bb4932571ad57536a7cc20b31fd15bc68cb5429977eb43d903fa61617cf87e
+patch_args=-Np0
diff --git a/srcpkgs/tworld/template b/srcpkgs/tworld/template
index bc9f0faeb8fc..53238ac4dcd9 100644
--- a/srcpkgs/tworld/template
+++ b/srcpkgs/tworld/template
@@ -10,3 +10,4 @@ license="GPL-2.0-only"
 homepage="http://www.muppetlabs.com/~breadbox/software/tworld/"
 distfiles="http://www.muppetlabs.com/~breadbox/pub/software/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=472fce08de124d965cccb20070b0be2b8b4c5ad717fc5ece32828baacd46d861
+patch_args=-Np0
diff --git a/srcpkgs/ucl/template b/srcpkgs/ucl/template
index fa5dc492fae7..3c62edf1d412 100644
--- a/srcpkgs/ucl/template
+++ b/srcpkgs/ucl/template
@@ -10,3 +10,4 @@ homepage="http://www.oberhumer.com/opensource/ucl/"
 distfiles="http://www.oberhumer.com/opensource/ucl/download/ucl-${version}.tar.gz"
 checksum=b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348
 conflicts="libucl-devel>=0"
+patch_args=-Np0
diff --git a/srcpkgs/uhubctl/template b/srcpkgs/uhubctl/template
index 748b10a9b32a..7b8416384177 100644
--- a/srcpkgs/uhubctl/template
+++ b/srcpkgs/uhubctl/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://github.com/mvp/uhubctl"
 distfiles="https://github.com/mvp/uhubctl/archive/v${version}.tar.gz"
 checksum=227fdd541067b84eaa0e15cdc171458a56de7591f7a1deaff3e6d42d2809450b
+patch_args=-Np0
diff --git a/srcpkgs/usb-modeswitch-data/template b/srcpkgs/usb-modeswitch-data/template
index 6412b7035a85..4da5049e3ced 100644
--- a/srcpkgs/usb-modeswitch-data/template
+++ b/srcpkgs/usb-modeswitch-data/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://www.draisberghof.de/usb_modeswitch/"
 distfiles="http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${version}.tar.bz2"
 checksum=3f039b60791c21c7cb15c7986cac89650f076dc274798fa242231b910785eaf9
+patch_args=-Np0
diff --git a/srcpkgs/usb-modeswitch/template b/srcpkgs/usb-modeswitch/template
index 475c1695fab1..f38c8b46cdb8 100644
--- a/srcpkgs/usb-modeswitch/template
+++ b/srcpkgs/usb-modeswitch/template
@@ -14,3 +14,4 @@ license="GPL-2"
 homepage="http://www.draisberghof.de/usb_modeswitch/"
 distfiles="http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-${version}.tar.bz2"
 checksum=c215236e6bada6e659fc195a31d611ea298a4bdb4d57a0d68c553b56585f8ba3
+patch_args=-Np0
diff --git a/srcpkgs/valabind/template b/srcpkgs/valabind/template
index d2af2f9be152..c29263464e53 100644
--- a/srcpkgs/valabind/template
+++ b/srcpkgs/valabind/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://radare.org/r/"
 distfiles="https://github.com/radare/valabind/archive/${version}.tar.gz"
 checksum=643c1ddc85e31de975df361a20e3f39d385f5ced0e50483c6e96b33bb3d32261
+patch_args=-Np0
diff --git a/srcpkgs/vba-m/template b/srcpkgs/vba-m/template
index 8e6447f5c6f5..270df8dee158 100644
--- a/srcpkgs/vba-m/template
+++ b/srcpkgs/vba-m/template
@@ -16,3 +16,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/visualboyadvance-m/visualboyadvance-m/"
 distfiles="https://github.com/visualboyadvance-m/visualboyadvance-m/archive/v${version}.tar.gz"
 checksum=8342e017212842de66b0d86bc7610c82349af2d4e59951d969a33fff956c39ba
+patch_args=-Np0
diff --git a/srcpkgs/wdisplays/template b/srcpkgs/wdisplays/template
index 6378c2a118c1..fc2ff5f563d9 100644
--- a/srcpkgs/wdisplays/template
+++ b/srcpkgs/wdisplays/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://cyclopsian.github.io/wdisplays/"
 distfiles="https://github.com/cyclopsian/wdisplays/archive/${version}.tar.gz"
 checksum=fa34d5bdfd87d833e18a89b2acacc27833d7297374719773a705f2d3e89cdddf
+patch_args=-Np0
diff --git a/srcpkgs/wfuzz/template b/srcpkgs/wfuzz/template
index f0f7b1b0fe0a..b27ec12f675e 100644
--- a/srcpkgs/wfuzz/template
+++ b/srcpkgs/wfuzz/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://wfuzz.org"
 distfiles="https://github.com/xmendez/wfuzz/archive/v${version}.tar.gz"
 checksum=60798e56274a377f8770d162935a040d4d6e27919bfbb46cf13a7a0a34896be9
+patch_args=-Np0
diff --git a/srcpkgs/whysynth/template b/srcpkgs/whysynth/template
index 2c2631da2509..95813353f234 100644
--- a/srcpkgs/whysynth/template
+++ b/srcpkgs/whysynth/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://smbolton.com/whysynth.html"
 distfiles="http://smbolton.com/whysynth/whysynth-${version}.tar.bz2"
 checksum=a602d685a6bf48b01a82e1c077a50fe3d115805865ecfe49f531d8bd20b00b0b
+patch_args=-Np0
diff --git a/srcpkgs/wmctrl/template b/srcpkgs/wmctrl/template
index 774c4ca6f200..2f989ed2e8ee 100644
--- a/srcpkgs/wmctrl/template
+++ b/srcpkgs/wmctrl/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://sites.google.com/site/tstyblo/wmctrl/"
 distfiles="https://sites.google.com/site/tstyblo/wmctrl/wmctrl-${version}.tar.gz"
 checksum=d78a1efdb62f18674298ad039c5cbdb1edb6e8e149bb3a8e3a01a4750aa3cca9
+patch_args=-Np0
diff --git a/srcpkgs/wofi/template b/srcpkgs/wofi/template
index 5fe2c5b63ed2..8ecf7d5985c5 100644
--- a/srcpkgs/wofi/template
+++ b/srcpkgs/wofi/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://hg.sr.ht/~scoopta/wofi"
 distfiles="https://hg.sr.ht/~scoopta/wofi/archive/v${version}.tar.gz"
 checksum=@fee85efc35e97946d3a94562775b902982c4ab1f521208308ecc4bb41547a5e3
+patch_args=-Np0
diff --git a/srcpkgs/wvdial/template b/srcpkgs/wvdial/template
index 3813dea5f5ef..1b5b82c4d16b 100644
--- a/srcpkgs/wvdial/template
+++ b/srcpkgs/wvdial/template
@@ -13,3 +13,4 @@ homepage="https://code.google.com/p/wvstreams/"
 distfiles="${DEBIAN_SITE}/main/w/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=5753d2005115aa4e365a1638f4eb6c076d4e2deafa46c3de38964918e7f62709
 conf_files="/etc/ppp/peers/wvdial /etc/ppp/peers/wvdial-pipe"
+patch_args=-Np0
diff --git a/srcpkgs/xbindkeys/template b/srcpkgs/xbindkeys/template
index 54486843942a..ea2d1e8b3037 100644
--- a/srcpkgs/xbindkeys/template
+++ b/srcpkgs/xbindkeys/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://www.nongnu.org/xbindkeys/xbindkeys.html"
 distfiles="http://www.nongnu.org/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=a29b86a8ec91d4abc83b420e547da27470847d0efe808aa6e75147aa0adb82f2
+patch_args=-Np0
diff --git a/srcpkgs/xdg-dbus-proxy/template b/srcpkgs/xdg-dbus-proxy/template
index 3d01f5e60b1b..805d7404ab4c 100644
--- a/srcpkgs/xdg-dbus-proxy/template
+++ b/srcpkgs/xdg-dbus-proxy/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/flatpak/xdg-dbus-proxy"
 distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.xz"
 checksum=1749d6f9f46dcc9edc87725641cf56cf91dcad1b01707891ea0850c1000c520f
+patch_args=-Np0
diff --git a/srcpkgs/xfce4-power-manager/template b/srcpkgs/xfce4-power-manager/template
index edc9a58e27b9..84d7d1514098 100644
--- a/srcpkgs/xfce4-power-manager/template
+++ b/srcpkgs/xfce4-power-manager/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://xfce.org/"
 distfiles="https://archive.xfce.org/src/xfce/$pkgname/${version%.*}/$pkgname-$version.tar.bz2"
 checksum=eb9c587c01b502fa45a32e7fc2aba98fa6d8391475133883654f77e562c43bf3
+patch_args=-Np0
diff --git a/srcpkgs/xkblayout-state/template b/srcpkgs/xkblayout-state/template
index e3b1f4131db9..78407cc1ba56 100644
--- a/srcpkgs/xkblayout-state/template
+++ b/srcpkgs/xkblayout-state/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/nonpop/xkblayout-state"
 distfiles="https://github.com/nonpop/xkblayout-state/archive/v${version}.tar.gz"
 checksum=ddf2de9949edbea2cb25933c22a6b76d4f868ee3012120216555ac96e9b536d4
+patch_args=-Np0
diff --git a/srcpkgs/xnots/template b/srcpkgs/xnots/template
index c08b06c26d6f..05a565630c8a 100644
--- a/srcpkgs/xnots/template
+++ b/srcpkgs/xnots/template
@@ -14,3 +14,4 @@ license="GPL-2.0-only"
 homepage="http://xnots.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/project/${pkgname}/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=80bbab0334880f79aa12cf17ebffc5730a85dc537e8e6208169720656ecd72ca
+patch_args=-Np0
diff --git a/srcpkgs/xsel/template b/srcpkgs/xsel/template
index edc001dba405..4121c1140936 100644
--- a/srcpkgs/xsel/template
+++ b/srcpkgs/xsel/template
@@ -10,3 +10,4 @@ license="custom"
 homepage="http://www.vergenet.net/~conrad/software/xsel/"
 distfiles="http://www.vergenet.net/~conrad/software/xsel/download/xsel-${version}.tar.gz"
 checksum=b927ce08dc82f4c30140223959b90cf65e1076f000ce95e520419ec32f5b141c
+patch_args=-Np0
diff --git a/srcpkgs/xseticon/template b/srcpkgs/xseticon/template
index 130726aa45c3..d3655f7d0c0f 100644
--- a/srcpkgs/xseticon/template
+++ b/srcpkgs/xseticon/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/xeyownt/xseticon"
 distfiles="https://github.com/xeyownt/xseticon/archive/${version}.tar.gz"
 checksum=d34c349ff09ea42393fb3bac3fd2be0e7b9a244388e2f4b32cc92636967a4a2c
+patch_args=-Np0
diff --git a/srcpkgs/yabause-gtk/template b/srcpkgs/yabause-gtk/template
index 2b85120a5a7f..fab9fa26cb84 100644
--- a/srcpkgs/yabause-gtk/template
+++ b/srcpkgs/yabause-gtk/template
@@ -17,3 +17,4 @@ checksum=4334c43fe0f3ff297bac8e91f4e059fe5fd276291faff2489e37b5b3a4ccc2b2
 nopie=yes
 # Would need m68kmake built for the host
 nocross=yes
+patch_args=-Np0
diff --git a/srcpkgs/zaz/template b/srcpkgs/zaz/template
index c99dbca901dd..e9bf8c19bc9d 100644
--- a/srcpkgs/zaz/template
+++ b/srcpkgs/zaz/template
@@ -13,3 +13,4 @@ homepage="http://zaz.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=e332cc1a6559e18a2b632940c53d20e2f2d2b583ba9dc1fd02a586437f9f0397
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/freetype2"
+patch_args=-Np0
diff --git a/srcpkgs/zbackup/template b/srcpkgs/zbackup/template
index c69c8e711cfd..997fc5b349f9 100644
--- a/srcpkgs/zbackup/template
+++ b/srcpkgs/zbackup/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://zbackup.org/"
 distfiles="https://github.com/zbackup/zbackup/archive/${version}.tar.gz"
 checksum=efccccd2a045da91576c591968374379da1dc4ca2e3dec4d3f8f12628fa29a85
+patch_args=-Np0

From 0f5d2447ee2b7e8ff926a4d36bf964f17328cedb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:38:20 +0700
Subject: [PATCH 5/8] do-patch: switch default patch_args to -Np1

All templates that require -Np0 have patch_args appended.
Let's flip the switch.
---
 Manual.md                           | 4 ++--
 common/hooks/do-patch/00-patches.sh | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Manual.md b/Manual.md
index 238db04f04b3..dc20f1e0db00 100644
--- a/Manual.md
+++ b/Manual.md
@@ -601,7 +601,7 @@ current directory with respect to the install.
 
 - `patch_args` The arguments to be passed in to the `patch(1)` command when applying
 patches to the package sources during `do_patch()`. Patches are stored in
-`srcpkgs/<pkgname>/patches` and must be in `-p0` format. By default set to `-Np0`.
+`srcpkgs/<pkgname>/patches` and must be in `-p0` format. By default set to `-Np1`.
 
 - `disable_parallel_build` If set the package won't be built in parallel
 and `XBPS_MAKEJOBS` has no effect.
@@ -874,7 +874,7 @@ been found or to fix compilation with new software.
 
 To handle this, xbps-src has patching functionality. It will look for all files
 that match the glob `srcpkgs/$pkgname/patches/*.{diff,patch}` and will
-automatically apply all files it finds using `patch(1)` with `-Np0`. This happens
+automatically apply all files it finds using `patch(1)` with `-Np1`. This happens
 during the `do_patch()` phase. The variable `PATCHESDIR` is
 available in the template, pointing to the `patches` directory.
 
diff --git a/common/hooks/do-patch/00-patches.sh b/common/hooks/do-patch/00-patches.sh
index 64e934c39818..f8ce2d37fee5 100644
--- a/common/hooks/do-patch/00-patches.sh
+++ b/common/hooks/do-patch/00-patches.sh
@@ -3,7 +3,7 @@
 _process_patch() {
 	local _args= _patch= i=$1
 
-	_args="-Np0"
+	_args="-Np1"
 	_patch=${i##*/}
 
 	if [ -f $PATCHESDIR/${_patch}.args ]; then

From 6cadb4ecf254e8bf750e02500f53121c0566f1e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 08:20:04 +0700
Subject: [PATCH 6/8] srcpkgs: remove patch_args=-Np1 en-mass

	git grep -l '^patch_args=.*p1' 'srcpkgs/*/template'  |
	xargs -r sed -i '/^patch_args=/d'
---
 srcpkgs/EternalTerminal/template         | 1 -
 srcpkgs/Ice/template                     | 1 -
 srcpkgs/Marker/template                  | 1 -
 srcpkgs/NetworkManager/template          | 1 -
 srcpkgs/OTPClient/template               | 1 -
 srcpkgs/RyzenAdj/template                | 1 -
 srcpkgs/VirtualGL/template               | 1 -
 srcpkgs/abiword/template                 | 1 -
 srcpkgs/acfgfs/template                  | 1 -
 srcpkgs/acr/template                     | 1 -
 srcpkgs/alot/template                    | 1 -
 srcpkgs/alsa-lib/template                | 1 -
 srcpkgs/alure/template                   | 1 -
 srcpkgs/apparmor/template                | 1 -
 srcpkgs/arcan/template                   | 1 -
 srcpkgs/atril/template                   | 1 -
 srcpkgs/audit/template                   | 1 -
 srcpkgs/babeld/template                  | 1 -
 srcpkgs/bibletime/template               | 1 -
 srcpkgs/binutils/template                | 1 -
 srcpkgs/blender/template                 | 1 -
 srcpkgs/blobby2/template                 | 1 -
 srcpkgs/bluez/template                   | 1 -
 srcpkgs/bolt/template                    | 1 -
 srcpkgs/brotli/template                  | 1 -
 srcpkgs/bsd-games/template               | 1 -
 srcpkgs/cairo-dock-plugins/template      | 1 -
 srcpkgs/cairo/template                   | 1 -
 srcpkgs/caribou/template                 | 1 -
 srcpkgs/catimg/template                  | 1 -
 srcpkgs/cheese/template                  | 1 -
 srcpkgs/chuck/template                   | 1 -
 srcpkgs/clockspeed/template              | 1 -
 srcpkgs/cmake/template                   | 1 -
 srcpkgs/crex/template                    | 1 -
 srcpkgs/cryfs/template                   | 1 -
 srcpkgs/curl/template                    | 1 -
 srcpkgs/cyrus-sasl/template              | 1 -
 srcpkgs/dbus-elogind/template            | 1 -
 srcpkgs/ddgtk/template                   | 1 -
 srcpkgs/deluge/template                  | 1 -
 srcpkgs/diffr/template                   | 1 -
 srcpkgs/docbook2x/template               | 1 -
 srcpkgs/efitools/template                | 1 -
 srcpkgs/efivar/template                  | 1 -
 srcpkgs/electrum-ltc/template            | 1 -
 srcpkgs/embree/template                  | 1 -
 srcpkgs/empathy/template                 | 1 -
 srcpkgs/enchant/template                 | 1 -
 srcpkgs/ettercap/template                | 1 -
 srcpkgs/exempi/template                  | 1 -
 srcpkgs/ext4magic/template               | 1 -
 srcpkgs/fbset/template                   | 1 -
 srcpkgs/fcitx5-anthy/template            | 1 -
 srcpkgs/fcitx5-qt/template               | 1 -
 srcpkgs/fcitx5/template                  | 1 -
 srcpkgs/firebird3/template               | 1 -
 srcpkgs/flac/template                    | 1 -
 srcpkgs/flann/template                   | 1 -
 srcpkgs/fonttosfnt/template              | 1 -
 srcpkgs/fortune-mod/template             | 1 -
 srcpkgs/fwupd/template                   | 1 -
 srcpkgs/gcc6/template                    | 1 -
 srcpkgs/gdb/template                     | 1 -
 srcpkgs/geeqie/template                  | 1 -
 srcpkgs/gettext/template                 | 1 -
 srcpkgs/ghc/template                     | 1 -
 srcpkgs/ghdl/template                    | 1 -
 srcpkgs/ghostscript/template             | 1 -
 srcpkgs/gjs/template                     | 1 -
 srcpkgs/glibc/template                   | 1 -
 srcpkgs/glm/template                     | 1 -
 srcpkgs/glu/template                     | 1 -
 srcpkgs/gnac/template                    | 1 -
 srcpkgs/gnome-builder/template           | 1 -
 srcpkgs/gnome-doc-utils/template         | 1 -
 srcpkgs/gnome-panel/template             | 1 -
 srcpkgs/gnome-todo/template              | 1 -
 srcpkgs/gobject-introspection/template   | 1 -
 srcpkgs/gpicview/template                | 1 -
 srcpkgs/graphene/template                | 1 -
 srcpkgs/growlight/template               | 1 -
 srcpkgs/grub-btrfs/template              | 1 -
 srcpkgs/grub/template                    | 1 -
 srcpkgs/gsimplecal-gtk2/template         | 1 -
 srcpkgs/gtk-doc/template                 | 1 -
 srcpkgs/hostapd/template                 | 1 -
 srcpkgs/ifstatus/template                | 1 -
 srcpkgs/iio-sensor-proxy/template        | 1 -
 srcpkgs/incron/template                  | 1 -
 srcpkgs/inkscape/template                | 1 -
 srcpkgs/interbench/template              | 1 -
 srcpkgs/ispc/template                    | 1 -
 srcpkgs/jasper/template                  | 1 -
 srcpkgs/json-c/template                  | 1 -
 srcpkgs/judy/template                    | 1 -
 srcpkgs/julia/template                   | 1 -
 srcpkgs/kakasi/template                  | 1 -
 srcpkgs/kitty/template                   | 1 -
 srcpkgs/kmymoney/template                | 1 -
 srcpkgs/kodi-rpi/template                | 1 -
 srcpkgs/kodi/template                    | 1 -
 srcpkgs/kreport/template                 | 1 -
 srcpkgs/kwin/template                    | 1 -
 srcpkgs/libbaseencode/template           | 1 -
 srcpkgs/libcotp/template                 | 1 -
 srcpkgs/libextractor/template            | 1 -
 srcpkgs/libfcitx-qt5/template            | 1 -
 srcpkgs/libgcrypt/template               | 1 -
 srcpkgs/libgpg-error/template            | 1 -
 srcpkgs/libhugetlbfs/template            | 1 -
 srcpkgs/libical/template                 | 1 -
 srcpkgs/libid3tag/template               | 1 -
 srcpkgs/libknet1/template                | 1 -
 srcpkgs/libode/template                  | 1 -
 srcpkgs/libogdf/template                 | 1 -
 srcpkgs/libopenshot/template             | 1 -
 srcpkgs/libpgf/template                  | 1 -
 srcpkgs/libsasl/template                 | 1 -
 srcpkgs/libtar/template                  | 1 -
 srcpkgs/libtls/template                  | 1 -
 srcpkgs/libtomcrypt/template             | 1 -
 srcpkgs/libunique1/template              | 1 -
 srcpkgs/libvorbis/template               | 1 -
 srcpkgs/lightdm-gtk-greeter/template     | 1 -
 srcpkgs/linux-driver-management/template | 1 -
 srcpkgs/linux4.14/template               | 1 -
 srcpkgs/linux4.19/template               | 1 -
 srcpkgs/linux4.9/template                | 1 -
 srcpkgs/linux5.10/template               | 1 -
 srcpkgs/linux5.11/template               | 1 -
 srcpkgs/linux5.12/template               | 1 -
 srcpkgs/linux5.4/template                | 1 -
 srcpkgs/loudgain/template                | 1 -
 srcpkgs/lxde-common/template             | 1 -
 srcpkgs/lxlauncher/template              | 1 -
 srcpkgs/lxsession/template               | 1 -
 srcpkgs/m4/template                      | 1 -
 srcpkgs/mac-fdisk/template               | 1 -
 srcpkgs/mailx/template                   | 1 -
 srcpkgs/make/template                    | 1 -
 srcpkgs/mbuffer/template                 | 1 -
 srcpkgs/mellowplayer/template            | 1 -
 srcpkgs/mkinitcpio-nfs-utils/template    | 1 -
 srcpkgs/mkinitcpio/template              | 1 -
 srcpkgs/motif/template                   | 1 -
 srcpkgs/mouseemu/template                | 1 -
 srcpkgs/mozjs78/template                 | 1 -
 srcpkgs/mupdf/template                   | 1 -
 srcpkgs/musl/template                    | 1 -
 srcpkgs/ndppd/template                   | 1 -
 srcpkgs/network-manager-applet/template  | 1 -
 srcpkgs/nfs-utils/template               | 1 -
 srcpkgs/nomad/template                   | 1 -
 srcpkgs/notmuch/template                 | 1 -
 srcpkgs/numix-themes/template            | 1 -
 srcpkgs/nvi/template                     | 1 -
 srcpkgs/ocaml/template                   | 1 -
 srcpkgs/onboard/template                 | 1 -
 srcpkgs/openjdk10-bootstrap/template     | 1 -
 srcpkgs/openjdk7-bootstrap/template      | 1 -
 srcpkgs/openjdk8/template                | 1 -
 srcpkgs/openjdk9-bootstrap/template      | 1 -
 srcpkgs/orientdb/template                | 1 -
 srcpkgs/p11-kit/template                 | 1 -
 srcpkgs/parallel-rust/template           | 1 -
 srcpkgs/patch/template                   | 1 -
 srcpkgs/pavucontrol/template             | 1 -
 srcpkgs/pbbuttonsd/template              | 1 -
 srcpkgs/pcsxr/template                   | 1 -
 srcpkgs/pinebookpro-kernel/template      | 1 -
 srcpkgs/pinephone-kernel/template        | 1 -
 srcpkgs/ponysay/template                 | 1 -
 srcpkgs/poppler-qt5/template             | 1 -
 srcpkgs/poppler/template                 | 1 -
 srcpkgs/procmail/template                | 1 -
 srcpkgs/psutils/template                 | 1 -
 srcpkgs/python-notify/template           | 1 -
 srcpkgs/qemu/template                    | 1 -
 srcpkgs/qt5-webengine/template           | 1 -
 srcpkgs/rdup/template                    | 1 -
 srcpkgs/recode/template                  | 1 -
 srcpkgs/rng-tools/template               | 1 -
 srcpkgs/rust/template                    | 1 -
 srcpkgs/sakura/template                  | 1 -
 srcpkgs/sbc/template                     | 1 -
 srcpkgs/sbsigntool/template              | 1 -
 srcpkgs/sharutils/template               | 1 -
 srcpkgs/spdlog/template                  | 1 -
 srcpkgs/stegsnow/template                | 1 -
 srcpkgs/sun7i-kernel/template            | 1 -
 srcpkgs/syslinux/template                | 1 -
 srcpkgs/tilix/template                   | 1 -
 srcpkgs/tmux/template                    | 1 -
 srcpkgs/ucspi-tcp/template               | 1 -
 srcpkgs/unixbench/template               | 1 -
 srcpkgs/unzip/template                   | 1 -
 srcpkgs/util-linux/template              | 1 -
 srcpkgs/utox/template                    | 1 -
 srcpkgs/valgrind/template                | 1 -
 srcpkgs/viking/template                  | 1 -
 srcpkgs/vscode/template                  | 1 -
 srcpkgs/vtk/template                     | 1 -
 srcpkgs/wayfire-plugins-extra/template   | 1 -
 srcpkgs/webrtc-audio-processing/template | 1 -
 srcpkgs/whipper/template                 | 1 -
 srcpkgs/wireplumber/template             | 1 -
 srcpkgs/wlsunset/template                | 1 -
 srcpkgs/wpa_supplicant/template          | 1 -
 srcpkgs/wrk/template                     | 1 -
 srcpkgs/x2goserver/template              | 1 -
 srcpkgs/xbps/template                    | 1 -
 srcpkgs/xdgmenumaker/template            | 1 -
 srcpkgs/xen/template                     | 1 -
 srcpkgs/xpdf/template                    | 1 -
 srcpkgs/xzoom/template                   | 1 -
 srcpkgs/yaboot/template                  | 1 -
 srcpkgs/zeroc-mcpp/template              | 1 -
 srcpkgs/zziplib/template                 | 1 -
 219 files changed, 219 deletions(-)

diff --git a/srcpkgs/EternalTerminal/template b/srcpkgs/EternalTerminal/template
index e2555e2f8642..f4f2b4720362 100644
--- a/srcpkgs/EternalTerminal/template
+++ b/srcpkgs/EternalTerminal/template
@@ -13,7 +13,6 @@ homepage="https://eternalterminal.dev/"
 distfiles="https://github.com/MisterTea/EternalTerminal/archive/et-v${version}.tar.gz"
 checksum=728c3a444d666897c710e33fe473d8d289263a59574451b13aa53ec3c6ac88b3
 system_accounts="_eternal"
-patch_args=-Np1
 
 LDFLAGS="-lgflags"
 
diff --git a/srcpkgs/Ice/template b/srcpkgs/Ice/template
index 6c3e6971874d..f85b38df28d6 100644
--- a/srcpkgs/Ice/template
+++ b/srcpkgs/Ice/template
@@ -15,7 +15,6 @@ license="GPL-2.0-only, custom:ICE"
 homepage="https://www.zeroc.com"
 distfiles="https://github.com/zeroc-ice/ice/archive/v${version}.tar.gz"
 checksum=36bf45591a95e6ee7216153d45d8eca05ff00c1da35608f0c400e6ddc8049da9
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	# Cross build requires the host's slice2cpp
diff --git a/srcpkgs/Marker/template b/srcpkgs/Marker/template
index 2c57664b3c68..be02723dc4ed 100644
--- a/srcpkgs/Marker/template
+++ b/srcpkgs/Marker/template
@@ -14,7 +14,6 @@ license="GPL-3.0-or-later, ISC"
 homepage="https://fabiocolacio.github.io/Marker/"
 distfiles="https://github.com/fabiocolacio/Marker/releases/download/${version}/marker.zip"
 checksum=ca493e7e94f171c15f7ffc9f697ce265d3b4fdb20fae157601d091d89dd6fb40
-patch_args="-Np1"
 
 post_extract() {
 	# don't include bundled mathjax
diff --git a/srcpkgs/NetworkManager/template b/srcpkgs/NetworkManager/template
index 2f159a9f55c4..7af0685be910 100644
--- a/srcpkgs/NetworkManager/template
+++ b/srcpkgs/NetworkManager/template
@@ -46,7 +46,6 @@ make_dirs="
  /etc/NetworkManager/VPN 0755 root root
  /var/lib/NetworkManager 0755 root root
 "
-patch_args=-Np1
 
 # Package build options
 build_options="gir elogind"
diff --git a/srcpkgs/OTPClient/template b/srcpkgs/OTPClient/template
index bea17c56a1e4..28de82117c9a 100644
--- a/srcpkgs/OTPClient/template
+++ b/srcpkgs/OTPClient/template
@@ -12,4 +12,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/paolostivanin/OTPClient"
 distfiles="https://github.com/paolostivanin/OTPClient/archive/v${version}.tar.gz"
 checksum=5b976782906f15e2a4e001d73909a05f6146010cea83d78e3ad5c850f4049da4
-patch_args=-Np1
diff --git a/srcpkgs/RyzenAdj/template b/srcpkgs/RyzenAdj/template
index 1ceb4fec1e4a..ccea4932b6f2 100644
--- a/srcpkgs/RyzenAdj/template
+++ b/srcpkgs/RyzenAdj/template
@@ -11,7 +11,6 @@ license="LGPL-3.0-only"
 homepage="https://github.com/FlyGoat/RyzenAdj"
 distfiles="https://github.com/FlyGoat/RyzenAdj/archive/v${version}.tar.gz"
 checksum=fff8a08e657ba35f919bd564fbe2e15e7c615ac6e2a357ffcc3472069e8081f6
-patch_args=-Np1
 
 do_install() {
 	vbin build/ryzenadj
diff --git a/srcpkgs/VirtualGL/template b/srcpkgs/VirtualGL/template
index bf25920d2cb7..58ff1859ea80 100644
--- a/srcpkgs/VirtualGL/template
+++ b/srcpkgs/VirtualGL/template
@@ -14,7 +14,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.virtualgl.org/"
 distfiles="${SOURCEFORGE_SITE}/virtualgl/${version}/${pkgname}-${version}.tar.gz"
 checksum=79dff857862890215794509ac65826005625925d03bf0874a486d695aae6f859
-patch_args="-Np1"
 
 archs="i686* x86_64*"
 
diff --git a/srcpkgs/abiword/template b/srcpkgs/abiword/template
index 0f48222f8180..782d023e01dc 100644
--- a/srcpkgs/abiword/template
+++ b/srcpkgs/abiword/template
@@ -18,7 +18,6 @@ license="GPL-2.0-or-later"
 homepage="http://www.abisource.com/"
 distfiles="${homepage}/downloads/${pkgname}/${version}/source/${pkgname}-${version}.tar.gz"
 checksum=e93096cb192e5bc19d62e180fc5eda643206465315a710113ae5036bc2a1a5d7
-patch_args=-Np1
 
 build_options="goffice"
 build_options_default="goffice"
diff --git a/srcpkgs/acfgfs/template b/srcpkgs/acfgfs/template
index b66760cb1ea4..0e1ced9d4f06 100644
--- a/srcpkgs/acfgfs/template
+++ b/srcpkgs/acfgfs/template
@@ -14,7 +14,6 @@ license="BSD-3-Clause"
 homepage="https://arcan-fe.com"
 distfiles="https://github.com/letoram/arcan/archive/${version}.tar.gz"
 checksum=7ae00a9dee79f9b58ac2bacbf532ff0631280297cfde30e8996382a3f42a52ed
-patch_args="-Np1"
 
 case "${XBPS_TARGET_MACHINE}" in
 	i686|armv6l|armv7l|ppc)
diff --git a/srcpkgs/acr/template b/srcpkgs/acr/template
index 88d79a1a6706..0574ea512016 100644
--- a/srcpkgs/acr/template
+++ b/srcpkgs/acr/template
@@ -11,4 +11,3 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/radare/acr"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=88bb2e4cb35b18370675710806c4ef03ef81a6ed521b939e272267754e8484c1
-patch_args=-Np1
diff --git a/srcpkgs/alot/template b/srcpkgs/alot/template
index 314bbe011aad..831b24deb8b4 100644
--- a/srcpkgs/alot/template
+++ b/srcpkgs/alot/template
@@ -13,7 +13,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/pazz/alot"
 distfiles="https://github.com/pazz/${pkgname}/archive/${version}.tar.gz"
 checksum=ee2c1ab1b43d022a8fe2078820ed57d8d72aec260a7d750776dac4ee841d1de4
-patch_args="-Np1"
 
 do_check() {
 	pytest3 -k 'not test_no_spawn_no_stdin_attached'
diff --git a/srcpkgs/alsa-lib/template b/srcpkgs/alsa-lib/template
index 7a6a58a8c5ea..454ede71606e 100644
--- a/srcpkgs/alsa-lib/template
+++ b/srcpkgs/alsa-lib/template
@@ -10,7 +10,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.alsa-project.org"
 distfiles="https://www.alsa-project.org/files/pub/lib/${pkgname}-${version}.tar.bz2"
 checksum=f7554be1a56cdff468b58fc1c29b95b64864c590038dd309c7a978c7116908f7
-patch_args="-Np1"
 
 alsa-lib-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/alure/template b/srcpkgs/alure/template
index 0acf8c80fd3d..04e40e3c8b20 100644
--- a/srcpkgs/alure/template
+++ b/srcpkgs/alure/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="https://github.com/kcat/alure"
 distfiles="${DEBIAN_SITE}/main/a/alure/alure_${version}.orig.tar.bz2"
 checksum=465e6adae68927be3a023903764662d64404e40c4c152d160e3a8838b1d70f71
-patch_args=-Np1
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/apparmor/template b/srcpkgs/apparmor/template
index 0d8c1ec7087e..2431832981c7 100644
--- a/srcpkgs/apparmor/template
+++ b/srcpkgs/apparmor/template
@@ -18,7 +18,6 @@ homepage="https://gitlab.com/apparmor/apparmor"
 changelog="https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_${version}"
 distfiles="https://gitlab.com/apparmor/apparmor/-/archive/v${version}/apparmor-v${version}.tar.gz"
 checksum=5f9afc157c5e2610737186a31fc9bd6a1d339a2ee85ac4f2667dce59cf60f1c7
-patch_args="-Np1"
 
 if [ -z "$CROSS_BUILD" ]; then
 	configure_args="--with-perl --with-python"
diff --git a/srcpkgs/arcan/template b/srcpkgs/arcan/template
index 7788f50d3329..f436db94479c 100644
--- a/srcpkgs/arcan/template
+++ b/srcpkgs/arcan/template
@@ -26,7 +26,6 @@ distfiles="https://github.com/letoram/${pkgname}/archive/${version}.tar.gz
  https://github.com/letoram/openal/archive/${_versionOpenal}.tar.gz>openal_arcan.${_versionOpenal}.tar.gz"
 checksum="7ae00a9dee79f9b58ac2bacbf532ff0631280297cfde30e8996382a3f42a52ed
  3a50a87c05b67c466a868cc77f8dc7f9cfc9466aeeafcd823daca0d108c504da"
-patch_args="-Np1"
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/atril/template b/srcpkgs/atril/template
index b26399624b01..97602c4b1b0b 100644
--- a/srcpkgs/atril/template
+++ b/srcpkgs/atril/template
@@ -20,7 +20,6 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=b48372a89813f31d2635de02d9e92ba38e794daddf625f06d80c3793248bde1a
-patch_args=-Np1
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/audit/template b/srcpkgs/audit/template
index fcd5de93732d..a093bfac8333 100644
--- a/srcpkgs/audit/template
+++ b/srcpkgs/audit/template
@@ -16,7 +16,6 @@ homepage="https://people.redhat.com/sgrubb/audit"
 changelog="https://raw.githubusercontent.com/linux-audit/audit-userspace/master/ChangeLog"
 distfiles="${homepage}/${pkgname}-${version}.tar.gz"
 checksum=994c4250d8fd43f3087a3c2ce73461832e30f1e9b278bf5bb03c3e07091155a5
-patch_args=-Np1
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args+=" --disable-zos-remote" ;;
diff --git a/srcpkgs/babeld/template b/srcpkgs/babeld/template
index c8a90adea73b..5a46f57aafaf 100644
--- a/srcpkgs/babeld/template
+++ b/srcpkgs/babeld/template
@@ -10,7 +10,6 @@ license="MIT"
 homepage="https://www.irif.fr/~jch/software/babel/"
 distfiles="https://github.com/jech/babeld/archive/babeld-${version}.tar.gz"
 checksum=d44a0ca3cf67595e1ed67ca219c975c3c011c6046028be75df254715c4611d31
-patch_args="-Np1"
 
 pre_build() {
 	echo ${version}-${revision} > version
diff --git a/srcpkgs/bibletime/template b/srcpkgs/bibletime/template
index bc005197cdb3..559755a9dd6f 100644
--- a/srcpkgs/bibletime/template
+++ b/srcpkgs/bibletime/template
@@ -18,7 +18,6 @@ license="GPL-2.0-or-later"
 homepage="http://bibletime.info"
 distfiles="https://github.com/bibletime/bibletime/releases/download/v${version}/bibletime-${version}.tar.xz"
 checksum=d6beef62ad44b255e3dc4c5e89214bf01a0e85c9136073b0be12fca3d2b22622
-patch_args=-Np1
 
 pre_build() {
 	. /etc/profile.d/10_openjdk11.sh
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 7a7966f440aa..6270f8618c87 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=3ced91db9bf01182b7e420eab68039f2083aed0a214c0424e257eae3ddee8607
-patch_args="-Np1"
 
 subpackages="binutils-doc"
 if [ "$CHROOT_READY" ]; then
diff --git a/srcpkgs/blender/template b/srcpkgs/blender/template
index 810c98ee7705..af946c2b7999 100644
--- a/srcpkgs/blender/template
+++ b/srcpkgs/blender/template
@@ -31,7 +31,6 @@ python_version=3
 CXXFLAGS="-DNDEBUG"
 CFLAGS="$CXXFLAGS"
 LDFLAGS="-Wl,-z,stack-size=2097152"
-patch_args="-Np1"
 # Blender tests are executed against a system installation of blender. This
 # is currently not supported by xbps-src.
 make_check=no
diff --git a/srcpkgs/blobby2/template b/srcpkgs/blobby2/template
index b47972ab884a..c8b9c65046c9 100644
--- a/srcpkgs/blobby2/template
+++ b/srcpkgs/blobby2/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://blobbyvolley.de"
 distfiles="${SOURCEFORGE_SITE}/blobby/${pkgname}-linux-${version}.tar.gz"
 checksum=ba7a049e298aaa2014c1e1ac1faf3b0256b4c66266cd4db06e7939e8695bf5e2
-patch_args="-Np1"
 
 post_install() {
 	vinstall ${FILESDIR}/blobby.desktop 644 usr/share/applications
diff --git a/srcpkgs/bluez/template b/srcpkgs/bluez/template
index e6ef1b9b6b0e..09bac4ff5eca 100644
--- a/srcpkgs/bluez/template
+++ b/srcpkgs/bluez/template
@@ -18,7 +18,6 @@ distfiles="${KERNEL_SITE}/bluetooth/$pkgname-$version.tar.xz"
 checksum=046b95b386d0bfb2a16311fe799d517ee7735045512d89902c4ed701db477316
 conf_files="/etc/bluetooth/main.conf"
 system_groups="bluetooth"
-patch_args="-Np1"
 
 build_options="mesh nfc experimental"
 
diff --git a/srcpkgs/bolt/template b/srcpkgs/bolt/template
index 20bccb2c3e09..02535303419d 100644
--- a/srcpkgs/bolt/template
+++ b/srcpkgs/bolt/template
@@ -14,7 +14,6 @@ license="LGPL-2.1-or-later"
 homepage="https://gitlab.freedesktop.org/bolt/bolt"
 distfiles="https://gitlab.freedesktop.org/bolt/bolt/-/archive/${version}/bolt-${version}.tar.gz"
 checksum=f938db68df79d0ada135a055fd01204f6f3436e17e962dfb8dc6699de77e1895
-patch_args="-Np1"
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/brotli/template b/srcpkgs/brotli/template
index 12b80d767fda..4e2b48ea88b5 100644
--- a/srcpkgs/brotli/template
+++ b/srcpkgs/brotli/template
@@ -9,7 +9,6 @@ license="MIT"
 homepage="https://github.com/google/brotli"
 distfiles="https://github.com/google/${pkgname}/archive/v${version}.tar.gz"
 checksum=f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46
-patch_args="-p1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/bsd-games/template b/srcpkgs/bsd-games/template
index 6a641a540bb9..600599b2b74c 100644
--- a/srcpkgs/bsd-games/template
+++ b/srcpkgs/bsd-games/template
@@ -35,7 +35,6 @@ mutable_files="/var/games/bsdgames/atc_score
  /var/games/bsdgames/phantasia/monsters
  /var/games/bsdgames/hack/record
  /var/games/bsdgames/hack/perm"
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	local _file _var
diff --git a/srcpkgs/cairo-dock-plugins/template b/srcpkgs/cairo-dock-plugins/template
index 38295ded98c2..32457494a085 100644
--- a/srcpkgs/cairo-dock-plugins/template
+++ b/srcpkgs/cairo-dock-plugins/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://launchpad.net/cairo-dock"
 distfiles="http://launchpad.net/cairo-dock-plug-ins/${version%.?}/${version}/+download/cairo-dock-plug-ins-${version}.tar.gz"
 checksum=e09b8e600398749d1f74b26e645b477a1844a3eea02fcadd6877935da3f8639e
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" python3-devel vala-devel"
diff --git a/srcpkgs/cairo/template b/srcpkgs/cairo/template
index 1e996086f45a..3af5d9914cb2 100644
--- a/srcpkgs/cairo/template
+++ b/srcpkgs/cairo/template
@@ -16,7 +16,6 @@ license="LGPL-2.1-or-later, MPL-1.1"
 homepage="https://cairographics.org"
 distfiles="https://cairographics.org/releases/cairo-${version}.tar.xz"
 checksum=5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331
-patch_args="-Np1"
 
 # Package build options
 build_options="gles2 opengl"
diff --git a/srcpkgs/caribou/template b/srcpkgs/caribou/template
index bf135b75f8b0..15bc2ccae74e 100644
--- a/srcpkgs/caribou/template
+++ b/srcpkgs/caribou/template
@@ -18,7 +18,6 @@ homepage="https://wiki.gnome.org/Projects/Caribou"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=9c43d9f4bd30f4fea7f780d4e8b14f7589107c52e9cb6bd202bd0d1c2064de55
 lib32disabled=yes
-patch_args=-Np1
 
 libcaribou_package() {
 	lib32disabled=yes
diff --git a/srcpkgs/catimg/template b/srcpkgs/catimg/template
index 6fbc5f1d9140..0392d3cfb598 100644
--- a/srcpkgs/catimg/template
+++ b/srcpkgs/catimg/template
@@ -9,7 +9,6 @@ license="MIT"
 homepage="https://github.com/posva/catimg"
 distfiles="https://github.com/posva/catimg/archive/${version}.tar.gz"
 checksum=3a6450316ff62fb07c3facb47ea208bf98f62abd02783e88c56f2a6508035139
-patch_args=-Np1
 CFLAGS="-fcommon"
 
 post_install() {
diff --git a/srcpkgs/cheese/template b/srcpkgs/cheese/template
index e23855c1ed2b..5717d1a4c80c 100644
--- a/srcpkgs/cheese/template
+++ b/srcpkgs/cheese/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Cheese"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=88d2732b421b903110a2628db25c0d61e219c42bdfb5971151033fba95a8d16f
-patch_args="-Np1"
 
 build_options="gir gtk_doc"
 build_options_default="gir"
diff --git a/srcpkgs/chuck/template b/srcpkgs/chuck/template
index 904b5e393b7d..acf5648af53b 100644
--- a/srcpkgs/chuck/template
+++ b/srcpkgs/chuck/template
@@ -16,7 +16,6 @@ changelog="https://chuck.cs.princeton.edu/release/VERSIONS"
 distfiles="http://chuck.cs.princeton.edu/release/files/$pkgname-$version.tgz"
 checksum=11a20c34b385e132bf43d5ae6a562c652f631828cc6b1562a4c029bc9a850ed4
 
-patch_args="-Np1"
 
 post_extract() {
 	# use CC, CXX and LD from environment
diff --git a/srcpkgs/clockspeed/template b/srcpkgs/clockspeed/template
index 04477817415e..685fb3a491e2 100644
--- a/srcpkgs/clockspeed/template
+++ b/srcpkgs/clockspeed/template
@@ -19,7 +19,6 @@ clocksd_groups="nogroup"
 clocksd_homedir="/var/lib/${pkgname}"
 clocksd_descr="User for clockspeed adjustments"
 conf_files="/etc/${pkgname}/${pkgname}.conf"
-patch_args="-p1"
 
 make_dirs="/var/lib/clockspeed/adjust 644 clocksd root"
 
diff --git a/srcpkgs/cmake/template b/srcpkgs/cmake/template
index e9ee3debf3c0..5d3308f93b5d 100644
--- a/srcpkgs/cmake/template
+++ b/srcpkgs/cmake/template
@@ -17,7 +17,6 @@ homepage="https://www.cmake.org"
 distfiles="https://www.cmake.org/files/v${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=4d008ac3461e271fcfac26a05936f77fc7ab64402156fb371d41284851a651b8
 replaces="cmake-bootstrap>=0"
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	build_style=cmake
diff --git a/srcpkgs/crex/template b/srcpkgs/crex/template
index 2f455a0b0c72..d2bc1e536bf8 100644
--- a/srcpkgs/crex/template
+++ b/srcpkgs/crex/template
@@ -9,7 +9,6 @@ license="MIT"
 homepage="https://github.com/octobanana/crex"
 distfiles="https://github.com/octobanana/crex/archive/${version}.tar.gz"
 checksum=c6a166b7a1e696a7babeaf7c5728eece1624704a18357f827129fc95ef2ecc56
-patch_args=-Np1
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/cryfs/template b/srcpkgs/cryfs/template
index 80938f905686..87912c2b7fe7 100644
--- a/srcpkgs/cryfs/template
+++ b/srcpkgs/cryfs/template
@@ -17,7 +17,6 @@ homepage="https://www.cryfs.org"
 changelog="https://github.com/cryfs/cryfs/raw/master/ChangeLog.txt"
 distfiles="https://github.com/cryfs/cryfs/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=004c7fdf537062e197aaa0bcdafd2682904a279802441bb6063cb72c1fba52d2
-patch_args=-Np1
 
 if [ "${XBPS_CHECK_PKGS}" ]; then
 	configure_args+=" -DBUILD_TESTING=on"
diff --git a/srcpkgs/curl/template b/srcpkgs/curl/template
index 8f9026309bfe..d1531465db05 100644
--- a/srcpkgs/curl/template
+++ b/srcpkgs/curl/template
@@ -25,7 +25,6 @@ homepage="https://curl.haxx.se"
 changelog="https://curl.haxx.se/changes.html#${version//./_}"
 distfiles="${homepage}/download/${pkgname}-${version}.tar.bz2"
 checksum=6c0c28868cb82593859fc43b9c8fdb769314c855c05cf1b56b023acf855df8ea
-patch_args="-Np1"
 build_options="gnutls gssapi ldap rtmp ssh ssl zstd"
 build_options_default="ssh ssl zstd"
 vopt_conflict ssl gnutls
diff --git a/srcpkgs/cyrus-sasl/template b/srcpkgs/cyrus-sasl/template
index 5bfe46557991..32bcc8ebc6ba 100644
--- a/srcpkgs/cyrus-sasl/template
+++ b/srcpkgs/cyrus-sasl/template
@@ -22,7 +22,6 @@ license="BSD-3-Clause-Attribution"
 homepage="https://www.cyrusimap.org/sasl/"
 distfiles="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-${version}/cyrus-sasl-${version}.tar.gz"
 checksum=26866b1549b00ffd020f188a43c258017fa1c382b3ddadd8201536f72efb05d5
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/dbus-elogind/template b/srcpkgs/dbus-elogind/template
index e527e8260851..7e92ccf7cd2b 100644
--- a/srcpkgs/dbus-elogind/template
+++ b/srcpkgs/dbus-elogind/template
@@ -24,7 +24,6 @@ checksum=f77620140ecb4cdc67f37fb444f8a6bea70b5b6461f12f1cbe2cec60fa7de5fe
 conf_files="/etc/dbus-1/*.conf"
 replaces="dbus>=0"
 provides="dbus-${version}_${revision}"
-patch_args="-Np1"
 
 # Create dbus:22 system account.
 system_accounts="dbus:22"
diff --git a/srcpkgs/ddgtk/template b/srcpkgs/ddgtk/template
index d5f27bb40934..5d45aeb4a8b9 100644
--- a/srcpkgs/ddgtk/template
+++ b/srcpkgs/ddgtk/template
@@ -11,4 +11,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/gort818/ddgtk"
 distfiles="https://github.com/gort818/ddgtk/archive/${version}.tar.gz"
 checksum=0386336681b24d648cdce3daa0c2b83c77a69773296e97a8427b67cbd27531ed
-patch_args="-Np1"
diff --git a/srcpkgs/deluge/template b/srcpkgs/deluge/template
index e54a8d571817..283fcd62d7fd 100644
--- a/srcpkgs/deluge/template
+++ b/srcpkgs/deluge/template
@@ -15,7 +15,6 @@ license="GPL-3.0-or-later"
 homepage="https://deluge-torrent.org/"
 distfiles="https://ftp.osuosl.org/pub/deluge/source/2.0/deluge-${version}.tar.xz"
 checksum=7e7ae8e6ca2a2bf0d487227cecf81e27332f0b92b567cc2bda38e47d859da891
-patch_args="-Np1"
 
 system_accounts="deluge"
 deluge_homedir="/var/lib/deluge"
diff --git a/srcpkgs/diffr/template b/srcpkgs/diffr/template
index 0bff9a8bfd08..f1e8f096375b 100644
--- a/srcpkgs/diffr/template
+++ b/srcpkgs/diffr/template
@@ -10,7 +10,6 @@ homepage="https://github.com/mookid/diffr"
 changelog="https://github.com/mookid/diffr/raw/master/CHANGELOG.md"
 distfiles="https://github.com/mookid/diffr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=2613b57778df4466a20349ef10b9e022d0017b4aee9a47fb07e78779f444f8cb
-patch_args="-Np1"
 
 do_install() {
 	vbin "target/${RUST_TARGET}/release/diffr"
diff --git a/srcpkgs/docbook2x/template b/srcpkgs/docbook2x/template
index 92233feb030a..b9cfbe848d7f 100644
--- a/srcpkgs/docbook2x/template
+++ b/srcpkgs/docbook2x/template
@@ -2,7 +2,6 @@
 pkgname=docbook2x
 version=0.8.8
 revision=5
-patch_args="-Np1"
 wrksrc="docbook2X-${version}"
 build_style=gnu-configure
 configure_args="--without-resolver-jars --without-saxon-jars --without-xalan-jars"
diff --git a/srcpkgs/efitools/template b/srcpkgs/efitools/template
index 83dc738ccbee..5d26a4208de0 100644
--- a/srcpkgs/efitools/template
+++ b/srcpkgs/efitools/template
@@ -12,7 +12,6 @@ license="GPL-2.0-only"
 homepage="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git"
 distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snapshot/${pkgname}-${version}.tar.gz"
 checksum=0f315b36e7d1ba74bfc97ab9f304f0a3072c47578bbe5e42594acae381f9acfe
-patch_args="-Nup1"
 
 post_patch() {
 	case "${XBPS_TARGET_MACHINE}" in
diff --git a/srcpkgs/efivar/template b/srcpkgs/efivar/template
index ef311f9b3998..39be825fab29 100644
--- a/srcpkgs/efivar/template
+++ b/srcpkgs/efivar/template
@@ -2,7 +2,6 @@
 pkgname=efivar
 version=37
 revision=1
-patch_args="-Np1"
 build_style=gnu-makefile
 hostmakedepends="pkg-config"
 short_desc="Tools to manipulate EFI variables"
diff --git a/srcpkgs/electrum-ltc/template b/srcpkgs/electrum-ltc/template
index a9a629a057e8..d62c43b5fa14 100644
--- a/srcpkgs/electrum-ltc/template
+++ b/srcpkgs/electrum-ltc/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="https://electrum-ltc.org/"
 distfiles="https://github.com/pooler/electrum-ltc/archive/${version}.tar.gz"
 checksum="6f4049abacfdb125b968e841ec9bc01e386e475f3fac8534103ffea1257b0f0f"
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENCE
diff --git a/srcpkgs/embree/template b/srcpkgs/embree/template
index 849ec3c26c1d..575b9bcb401c 100644
--- a/srcpkgs/embree/template
+++ b/srcpkgs/embree/template
@@ -14,7 +14,6 @@ license="Apache-2.0"
 homepage="https://embree.github.io/"
 distfiles="https://github.com/$pkgname/$pkgname/archive/v$version.tar.gz"
 checksum=c0694f287fa1fbb382aba3a895702e248d92f7e89c0e5f64aefee965482ec04c
-patch_args=-Np1
 
 embree-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/empathy/template b/srcpkgs/empathy/template
index 1c70413842b3..dcbd10cc0c1d 100644
--- a/srcpkgs/empathy/template
+++ b/srcpkgs/empathy/template
@@ -25,7 +25,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://live.gnome.org/Empathy"
 distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
 checksum=7d86942ce97edd10ade0e6ae6a210d35e4d627fe4d223377d71fd1840bc6e3a3
-patch_args=-Np1
 disable_parallel_build=yes
 # Disable checks, the only work with an irc server in place.
 make_check=no
diff --git a/srcpkgs/enchant/template b/srcpkgs/enchant/template
index bc7ca9e5239d..69458ae39180 100644
--- a/srcpkgs/enchant/template
+++ b/srcpkgs/enchant/template
@@ -13,7 +13,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.abisource.com/projects/enchant/"
 distfiles="http://www.abisource.com/downloads/enchant/${version}/enchant-${version}.tar.gz"
 checksum=2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ettercap/template b/srcpkgs/ettercap/template
index 611b4e9aded7..ce206d8bdaf0 100644
--- a/srcpkgs/ettercap/template
+++ b/srcpkgs/ettercap/template
@@ -15,7 +15,6 @@ homepage="http://ettercap.github.com/ettercap/"
 distfiles="https://github.com/Ettercap/ettercap/archive/v${version}.tar.gz"
 checksum=d0c3ef88dfc284b61d3d5b64d946c1160fd04276b448519c1ae4438a9cdffaf3
 lib32disabled=yes
-patch_args=-Np1
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/exempi/template b/srcpkgs/exempi/template
index 3925ca272300..14753617953a 100644
--- a/srcpkgs/exempi/template
+++ b/srcpkgs/exempi/template
@@ -2,7 +2,6 @@
 pkgname=exempi
 version=2.5.0
 revision=1
-patch_args="-Np1"
 build_style=gnu-configure
 configure_args="--with-boost=${XBPS_CROSS_BASE}/usr --disable-static --disable-unittest"
 makedepends="zlib-devel expat-devel boost-devel"
diff --git a/srcpkgs/ext4magic/template b/srcpkgs/ext4magic/template
index 0d7ed70cf107..fe570a962647 100644
--- a/srcpkgs/ext4magic/template
+++ b/srcpkgs/ext4magic/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="http://sourceforge.net/projects/ext4magic/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=8d9c6a594f212aecf4eb5410d277caeaea3adc03d35378257dfd017ef20ea115
-patch_args="-Np1"
 
 CFLAGS='-DHAVE_SYS_TYPES_H'
 post_extract() {
diff --git a/srcpkgs/fbset/template b/srcpkgs/fbset/template
index 22c51fae0eb7..67a18dee57be 100644
--- a/srcpkgs/fbset/template
+++ b/srcpkgs/fbset/template
@@ -11,7 +11,6 @@ license="GPL-2.0-only"
 homepage="http://users.telenet.be/geertu/Linux/fbdev/"
 distfiles="${DEBIAN_SITE}/main/f/fbset/fbset_${version}.orig.tar.gz"
 checksum=517fa062d7b2d367f931a1c6ebb2bef84907077f0ce3f0c899e34490bbea9338
-patch_args="-Np1"
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/fcitx5-anthy/template b/srcpkgs/fcitx5-anthy/template
index d0f9ab1d735c..5ec150b4ce75 100644
--- a/srcpkgs/fcitx5-anthy/template
+++ b/srcpkgs/fcitx5-anthy/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="https://fcitx-im.org/wiki/Fcitx"
 distfiles="https://download.fcitx-im.org/fcitx5/fcitx5-anthy/fcitx5-anthy-${version}.tar.xz"
 checksum=22364003e737cbe4ea6eaa83d9d274a8df8e38dea61d8f4576560ee7d5eaf44d
-patch_args=-Np1
 
 fcitx5-anthy-icons_package() {
 	short_desc+=" - icons"
diff --git a/srcpkgs/fcitx5-qt/template b/srcpkgs/fcitx5-qt/template
index 0d3dd57ed9b4..73796e6e8762 100644
--- a/srcpkgs/fcitx5-qt/template
+++ b/srcpkgs/fcitx5-qt/template
@@ -16,7 +16,6 @@ homepage="https://fcitx-im.org/wiki/Fcitx"
 distfiles="https://download.fcitx-im.org/fcitx5/fcitx5-qt/fcitx5-qt-${version}.tar.xz"
 checksum=c954d20bc4e332c0977639dc579bd641a6860926bfd0efe62bc13ee02b43e872
 lib32disabled=yes
-patch_args=-Np1
 
 if [ "$XBPS_TARGET_NOATOMIC8" ]; then
 	configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
diff --git a/srcpkgs/fcitx5/template b/srcpkgs/fcitx5/template
index db13f6ba807c..daedc89f5b3e 100644
--- a/srcpkgs/fcitx5/template
+++ b/srcpkgs/fcitx5/template
@@ -23,7 +23,6 @@ distfiles="https://download.fcitx-im.org/fcitx5/fcitx5/fcitx5-${version}.tar.xz
  https://download.fcitx-im.org/data/en_dict-${_en_dict_ver}.tar.gz"
 checksum="0ecf6cc763952ff3cbe6bd47d6e40f3f7987a4973547251af3cd1482f33c516f
  c44a5d7847925eea9e4d2d04748d442cd28dd9299a0b572ef7d91eac4f5a6ceb"
-patch_args=-Np1
 skip_extraction=en_dict-${_en_dict_ver}.tar.gz
 lib32disabled=yes
 
diff --git a/srcpkgs/firebird3/template b/srcpkgs/firebird3/template
index a84cc7ef9234..5675ac663073 100644
--- a/srcpkgs/firebird3/template
+++ b/srcpkgs/firebird3/template
@@ -36,7 +36,6 @@ homepage="https://www.firebirdsql.org/en/start/"
 distfiles="https://github.com/FirebirdSQL/firebird/releases/download/R${_uver%_*}/Firebird-${version}-${_build}.tar.bz2"
 checksum=34c1d2a29bbaf288e682cd1b5f8083f2baf73f351062245ace0bee35a3f7d35f
 replaces="firebird>=0"
-patch_args="-Np1"
 nocross="Fails to build gpre_boot for host but builds for target"
 
 CFLAGS="-fno-strict-aliasing"
diff --git a/srcpkgs/flac/template b/srcpkgs/flac/template
index 8166b9f00655..78d111c2e244 100644
--- a/srcpkgs/flac/template
+++ b/srcpkgs/flac/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause, GPL-2.0-or-later"
 homepage="http://flac.sourceforge.net/"
 distfiles="https://downloads.xiph.org/releases/flac/flac-${version}.tar.xz"
 checksum=213e82bd716c9de6db2f98bcadbc4c24c7e2efe8c75939a1a84e28539c4e1748
-patch_args="-Np1"
 # the tests fail when run as root and as such break in the CI containers
 make_check=ci-skip
 
diff --git a/srcpkgs/flann/template b/srcpkgs/flann/template
index 055c935a0cbb..af43cccd7808 100644
--- a/srcpkgs/flann/template
+++ b/srcpkgs/flann/template
@@ -2,7 +2,6 @@
 pkgname=flann
 version=1.9.1
 revision=4
-patch_args="-Np1"
 build_style=cmake
 makedepends="gtest-devel hdf5-devel"
 short_desc="Fast library for approximate nearest neighbors"
diff --git a/srcpkgs/fonttosfnt/template b/srcpkgs/fonttosfnt/template
index 1a85e32029eb..643173ceb6c1 100644
--- a/srcpkgs/fonttosfnt/template
+++ b/srcpkgs/fonttosfnt/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.bz2"
 checksum=1a1bb4ef25856dea7de3d491ae7231493225b400bee0f6a1f949017ffd203a64
-patch_args="-Np1"
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/fortune-mod/template b/srcpkgs/fortune-mod/template
index 27824c3617e3..59f0aa805009 100644
--- a/srcpkgs/fortune-mod/template
+++ b/srcpkgs/fortune-mod/template
@@ -10,7 +10,6 @@ license="BSD-4-Clause-UC"
 homepage="http://www.redellipse.net/code/fortune"
 distfiles="${DEBIAN_SITE}/main/f/fortune-mod/${pkgname}_${version}.orig.tar.gz"
 checksum=fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" fortune-mod"
diff --git a/srcpkgs/fwupd/template b/srcpkgs/fwupd/template
index b0828273d2f0..6e6612d9bfd9 100644
--- a/srcpkgs/fwupd/template
+++ b/srcpkgs/fwupd/template
@@ -29,7 +29,6 @@ homepage="https://github.com/hughsie/fwupd"
 distfiles="https://github.com/hughsie/fwupd/archive/${version}.tar.gz"
 checksum=4abecf930f02fc5b165831682f3915cc7f0e82e73be2e187e761220ae275a1a3
 replaces="fwupdate>=0"
-patch_args=-Np1
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|i686*)
diff --git a/srcpkgs/gcc6/template b/srcpkgs/gcc6/template
index 352ae9bbff52..88d4f729675b 100644
--- a/srcpkgs/gcc6/template
+++ b/srcpkgs/gcc6/template
@@ -25,7 +25,6 @@ checksum="
 skip_extraction="ecj-4.9.jar"
 nopie=yes
 lib32disabled=yes
-patch_args="-Np1"
 nocross=yes
 python_version=2 #unverified
 
diff --git a/srcpkgs/gdb/template b/srcpkgs/gdb/template
index 9648e927efad..56c0e01630b5 100644
--- a/srcpkgs/gdb/template
+++ b/srcpkgs/gdb/template
@@ -21,7 +21,6 @@ homepage="https://www.gnu.org/software/gdb/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=aaa1223d534c9b700a8bec952d9748ee1977513f178727e1bee520ee000b4f29
 python_version=3
-patch_args="-Np1"
 
 if [ "${CROSS_BUILD}" ]; then
 	# Make python3.x detection work in cross builds
diff --git a/srcpkgs/geeqie/template b/srcpkgs/geeqie/template
index d7fa37a384d3..f3ac2cd2859a 100644
--- a/srcpkgs/geeqie/template
+++ b/srcpkgs/geeqie/template
@@ -15,7 +15,6 @@ homepage="http://www.geeqie.org"
 changelog="http://www.geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=blob_plain;f=NEWS;hb=HEAD"
 distfiles="http://www.geeqie.org/geeqie-${version}.tar.xz"
 checksum="48f8a4474454d182353100e43878754b76227f3b8f30cfc258afc9d90a4e1920"
-patch_args="-Np1"
 
 CFLAGS="-Wno-error -fcommon"
 
diff --git a/srcpkgs/gettext/template b/srcpkgs/gettext/template
index 3c8250b976be..3cece9b46621 100644
--- a/srcpkgs/gettext/template
+++ b/srcpkgs/gettext/template
@@ -22,7 +22,6 @@ homepage="https://www.gnu.org/software/gettext/"
 changelog="https://git.savannah.gnu.org/cgit/gettext.git/plain/NEWS"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c77d0da3102aec9c07f43671e60611ebff89a996ef159497ce8e59d075786b12
-patch_args=-Np1
 
 subpackages="gettext-devel-examples gettext-devel gettext-devel-tools"
 unset _intl_lib
diff --git a/srcpkgs/ghc/template b/srcpkgs/ghc/template
index 0b1440b2f6d9..082c56f70358 100644
--- a/srcpkgs/ghc/template
+++ b/srcpkgs/ghc/template
@@ -15,7 +15,6 @@ license="BSD-3-Clause"
 homepage="http://www.haskell.org/ghc/"
 distfiles="http://www.haskell.org/ghc/dist/${version%[!0-9]}/${pkgname}-${version%[!0-9]}-src.tar.xz"
 checksum=f0505e38b2235ff9f1090b51f44d6c8efd371068e5a6bb42a2a6d8b67b5ffc2d
-patch_args="-Np1"
 nocross=yes # this is conditionally unset for cross bindist
 nodebug=yes # work around assembler error "Fatal error: duplicate .debug_line sections"
 _bindir="/usr/lib/${pkgname}-${version}/bin"
diff --git a/srcpkgs/ghdl/template b/srcpkgs/ghdl/template
index 1b6f0d50e327..e756d8c3cd87 100644
--- a/srcpkgs/ghdl/template
+++ b/srcpkgs/ghdl/template
@@ -18,7 +18,6 @@ homepage="https://github.com/ghdl/ghdl"
 distfiles="https://github.com/ghdl/ghdl/archive/v${version}.tar.gz"
 checksum=cb424766fbe831ff41bec84016a6af0406d735c272b0b639d507c3503df30495
 nocross=yes
-patch_args="-Np1"
 make_check=extended
 
 build_options="llvm mcode"
diff --git a/srcpkgs/ghostscript/template b/srcpkgs/ghostscript/template
index 1d7aed4dc834..5f1b5b7b64e3 100644
--- a/srcpkgs/ghostscript/template
+++ b/srcpkgs/ghostscript/template
@@ -12,7 +12,6 @@ license="AGPL-3.0-or-later, CPL-1.0"
 homepage="https://www.ghostscript.com/"
 distfiles="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${version//./}/ghostscript-${version}.tar.xz"
 checksum=c2b7b43cde600f4e70efb2cd95865f6d884a67315c3de235914697d8ccde6e3b
-patch_args="-Np1"
 
 build_options="cups"
 build_options_default="cups"
diff --git a/srcpkgs/gjs/template b/srcpkgs/gjs/template
index 27e376b4d092..4d73ae96b599 100644
--- a/srcpkgs/gjs/template
+++ b/srcpkgs/gjs/template
@@ -15,7 +15,6 @@ homepage="https://wiki.gnome.org/action/show/Projects/Gjs"
 changelog="https://gitlab.gnome.org/GNOME/gjs/blob/gnome-3-30/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=2ffa3ec2041104fcf9ab5dcc8f7cd9caa062278590318ffef9541956af5b4c70
-patch_args="-Np1"
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index b361bb98a1ea..c62a4d2aedf1 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -9,7 +9,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
 homepage="http://www.gnu.org/software/libc"
 distfiles="${GNU_SITE}/glibc/glibc-${version}.tar.xz"
 checksum=1627ea54f5a1a8467032563393e0901077626dc66f37f10ee6363bb722222836
-patch_args="-Np1"
 # Do not strip these files, objcopy errors out.
 nostrip_files="
 	XBS5_ILP32_OFFBIG
diff --git a/srcpkgs/glm/template b/srcpkgs/glm/template
index 47369d94e0da..f40f6fcf8fae 100644
--- a/srcpkgs/glm/template
+++ b/srcpkgs/glm/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="http://glm.g-truc.net"
 distfiles="https://github.com/g-truc/glm/releases/download/${version}/glm-${version}.zip"
 checksum=37e2a3d62ea3322e43593c34bae29f57e3e251ea89f4067506c94043769ade4c
-patch_args="-Np1"
 
 # No longer has install target
 # Install manually
diff --git a/srcpkgs/glu/template b/srcpkgs/glu/template
index b655d49fe569..49d8c41d9488 100644
--- a/srcpkgs/glu/template
+++ b/srcpkgs/glu/template
@@ -13,7 +13,6 @@ homepage="http://cgit.freedesktop.org/mesa/glu/"
 distfiles="https://mesa.freedesktop.org/archive/glu/glu-${version}.tar.gz"
 checksum=f6f484cfcd51e489afe88031afdea1e173aa652697e4c19ddbcb8260579a10f7
 replaces="libGLU<9.0"
-patch_args="-Np1"
 
 glu-devel_package() {
 	depends="MesaLib-devel>=9.0 glu>=${version}_${revision}"
diff --git a/srcpkgs/gnac/template b/srcpkgs/gnac/template
index 489783bdd850..ad01a1e97f91 100644
--- a/srcpkgs/gnac/template
+++ b/srcpkgs/gnac/template
@@ -18,7 +18,6 @@ license="GPL-3.0-or-later"
 homepage="http://gnac.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=8f9c4731bbc40fde57c311a2a7fabe4e3200198abfe7415c659b98a2d54869da
-patch_args="-Np1"
 CFLAGS="-fPIC -fcommon"
 
 pre_configure() {
diff --git a/srcpkgs/gnome-builder/template b/srcpkgs/gnome-builder/template
index a9011a5c7f80..ad0cc8cc6f20 100644
--- a/srcpkgs/gnome-builder/template
+++ b/srcpkgs/gnome-builder/template
@@ -21,7 +21,6 @@ homepage="https://wiki.gnome.org/Apps/Builder"
 changelog="https://gitlab.gnome.org/GNOME/gnome-builder/raw/gnome-builder-3-40/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=b2844cfde821311939fb6ed3b18a49cd331413aea720393091583ab6a99e719a
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)
diff --git a/srcpkgs/gnome-doc-utils/template b/srcpkgs/gnome-doc-utils/template
index f846f0e61253..8c55060aa4ae 100644
--- a/srcpkgs/gnome-doc-utils/template
+++ b/srcpkgs/gnome-doc-utils/template
@@ -15,7 +15,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Projects/GnomeDocUtils"
 distfiles="${GNOME_SITE}/${pkgname}/0.20/${pkgname}-${version}.tar.xz"
 checksum=cb0639ffa9550b6ddf3b62f3b1add92fb92ab4690d351f2353cffe668be8c4a6
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/gnome-panel/template b/srcpkgs/gnome-panel/template
index 315d4fc1f468..109489d8bba7 100644
--- a/srcpkgs/gnome-panel/template
+++ b/srcpkgs/gnome-panel/template
@@ -15,7 +15,6 @@ license="GPL-2.0-or-later, GFDL-1.1-or-later, LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Projects/GnomePanel"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=9f135075edc666cf2b9ca91de35c6703e2b1771c10a7707414fb656c28a59b3b
-patch_args="-Np1"
 
 gnome-panel-devel_package() {
 	depends="glib-devel gtk+3-devel ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/gnome-todo/template b/srcpkgs/gnome-todo/template
index 56bd6a405af2..5fe6d1d7bc84 100644
--- a/srcpkgs/gnome-todo/template
+++ b/srcpkgs/gnome-todo/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Todo"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=c7571fc040d8901dd0e528282ef0655687f23f29d304057c72548ab3e2c2cf23
-patch_args="-Np1"
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/gobject-introspection/template b/srcpkgs/gobject-introspection/template
index c6e616dd862f..6f8bffd88d22 100644
--- a/srcpkgs/gobject-introspection/template
+++ b/srcpkgs/gobject-introspection/template
@@ -15,7 +15,6 @@ homepage="https://wiki.gnome.org/Projects/GObjectIntrospection"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=d229242481a201b84a0c66716de1752bca41db4133672cfcfb37c93eb6e54a27
 python_version=3
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" gobject-introspection qemu-user-static prelink-cross"
diff --git a/srcpkgs/gpicview/template b/srcpkgs/gpicview/template
index 24ae856fa344..19de5b5cb1e8 100644
--- a/srcpkgs/gpicview/template
+++ b/srcpkgs/gpicview/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=38466058e53702450e5899193c4b264339959b563dd5cd81f6f690de32d82942
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/graphene/template b/srcpkgs/graphene/template
index 83bb559df998..40920cb1f5b7 100644
--- a/srcpkgs/graphene/template
+++ b/srcpkgs/graphene/template
@@ -14,7 +14,6 @@ license="MIT"
 homepage="https://github.com/ebassi/graphene"
 distfiles="${GNOME_SITE}/graphene/${version%.*}/graphene-${version}.tar.xz"
 checksum=80ae57723e4608e6875626a88aaa6f56dd25df75024bd16e9d77e718c3560b25
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) configure_args+=" -Dsse2=true" ;;
diff --git a/srcpkgs/growlight/template b/srcpkgs/growlight/template
index 863c318d4081..cc8ac363ec6f 100644
--- a/srcpkgs/growlight/template
+++ b/srcpkgs/growlight/template
@@ -15,7 +15,6 @@ license="GPL-3.0-or-later"
 homepage="https://nick-black.com/dankwiki/index.php/Growlight"
 distfiles="https://github.com/dankamongmen/growlight/archive/v${version}.tar.gz"
 checksum=ef26904412ff6134018c350fe9e1f943d37fb82a623d06327195f9bd2b939408
-patch_args=-Np1
 
 build_options="man zfs"
 
diff --git a/srcpkgs/grub-btrfs/template b/srcpkgs/grub-btrfs/template
index 2527806d6999..0e646c9c3f82 100644
--- a/srcpkgs/grub-btrfs/template
+++ b/srcpkgs/grub-btrfs/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/Antynea/grub-btrfs"
 distfiles="https://github.com/Antynea/grub-btrfs/archive/v${version}.tar.gz"
 checksum=62461133c697643e98a608239773f500edee3e4055c5729fef6639d1cd610243
-patch_args=-Np1
 
 post_install() {
 	rm -rf -- "${DESTDIR}"/usr/lib/systemd
diff --git a/srcpkgs/grub/template b/srcpkgs/grub/template
index 11cbdc495f67..69cea9ae19a3 100644
--- a/srcpkgs/grub/template
+++ b/srcpkgs/grub/template
@@ -16,7 +16,6 @@ checksum=e5292496995ad42dabe843a0192cf2a2c502e7ffcc7479398232b10a472df77d
 
 archs="i686* x86_64* aarch64* ppc ppc-musl ppc64*"
 nopie=yes
-patch_args=-Np1
 
 subpackages="grub-utils"
 # _SUPPLEMENTARY_BUILDS is a list of <TARGET>-<PLATFORN> version of grub to build
diff --git a/srcpkgs/gsimplecal-gtk2/template b/srcpkgs/gsimplecal-gtk2/template
index c7339f62d60e..73cf3bd39b88 100644
--- a/srcpkgs/gsimplecal-gtk2/template
+++ b/srcpkgs/gsimplecal-gtk2/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause"
 homepage="http://dmedvinsky.github.io/gsimplecal/"
 distfiles="https://github.com/dmedvinsky/${pkgname%-*}/archive/v${version}.tar.gz"
 checksum="660cac7333d3507203a008e142e2b8f5dfcf0735b6ccabdd8d3d902b5d2c40e9"
-patch_args=-Np1
 
 replaces="gsimplecal-gtk3>=0"
 
diff --git a/srcpkgs/gtk-doc/template b/srcpkgs/gtk-doc/template
index 9f3384a60472..ab149d7f33d5 100644
--- a/srcpkgs/gtk-doc/template
+++ b/srcpkgs/gtk-doc/template
@@ -17,4 +17,3 @@ homepage="http://www.gtk.org/gtk-doc/"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=d5e3b3f837174d246fa8482455740627efec1e5210aa15d0c7989ca68f72bb51
 python_version=3
-patch_args="-Np1"
diff --git a/srcpkgs/hostapd/template b/srcpkgs/hostapd/template
index 20e16a32fc0f..87cf12033e40 100644
--- a/srcpkgs/hostapd/template
+++ b/srcpkgs/hostapd/template
@@ -12,7 +12,6 @@ license="BSD-3-Clause"
 homepage="http://w1.fi/hostapd/"
 distfiles="http://w1.fi/releases/${pkgname}-${version}.tar.gz"
 checksum=881d7d6a90b2428479288d64233151448f8990ab4958e0ecaca7eeb3c9db2bd7
-patch_args=-Np1
 
 do_configure() {
 	cp -f ${FILESDIR}/config .config
diff --git a/srcpkgs/ifstatus/template b/srcpkgs/ifstatus/template
index f1e9d9f4d802..2515a71d669a 100644
--- a/srcpkgs/ifstatus/template
+++ b/srcpkgs/ifstatus/template
@@ -4,7 +4,6 @@ version=2.0.0
 revision=1
 wrksrc=ifstatus-v${version}
 build_style=gnu-makefile
-patch_args="-Np1"
 hostmakedepends="pkg-config"
 makedepends="ncurses-devel"
 short_desc="Display network traffic on console"
diff --git a/srcpkgs/iio-sensor-proxy/template b/srcpkgs/iio-sensor-proxy/template
index e8cff0494b99..a47ca09e8b2d 100644
--- a/srcpkgs/iio-sensor-proxy/template
+++ b/srcpkgs/iio-sensor-proxy/template
@@ -11,7 +11,6 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.freedesktop.org/hadess/iio-sensor-proxy"
 distfiles="${homepage}/-/archive/${version}/${pkgname}-${version}.tar.gz"
 checksum=77f6009050afcabdf324b187992c33c6f1d937fc9e2c18ec76d9120fa107f3ba
-patch_args="-Np1"
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/incron/template b/srcpkgs/incron/template
index cd7e3f34eaed..22082e501061 100644
--- a/srcpkgs/incron/template
+++ b/srcpkgs/incron/template
@@ -8,7 +8,6 @@ license="X11"
 homepage="https://github.com/ar-/incron"
 distfiles="https://github.com/ar-/incron/archive/${version}.tar.gz"
 checksum=cce80bd723bafce59f35464f2f851d02707e32efa102e2b941ed0e42bdd38f91
-patch_args="-Np1"
 
 make_dirs="/var/spool/incron 0755 root root
  /etc/incron.d 0755 root root"
diff --git a/srcpkgs/inkscape/template b/srcpkgs/inkscape/template
index 6e97a43a4ed5..84d99227e745 100644
--- a/srcpkgs/inkscape/template
+++ b/srcpkgs/inkscape/template
@@ -23,7 +23,6 @@ homepage="http://inkscape.org/"
 distfiles="https://media.inkscape.org/dl/resources/file/inkscape-${version}.tar.xz"
 checksum=71e6e8ce3fdf702f59dbc4a276665eb982eb7822b029bbdbeced2df4301795e6
 python_version=3
-patch_args=-Np1
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/interbench/template b/srcpkgs/interbench/template
index 26a7f9e41d27..ae38e3ca9561 100644
--- a/srcpkgs/interbench/template
+++ b/srcpkgs/interbench/template
@@ -10,7 +10,6 @@ homepage="http://users.on.net/~ckolivas/interbench"
 distfiles="http://ck.kolivas.org/apps/interbench/$pkgname-$version.tar.bz2"
 checksum=89d438b28aef22d26e79812762a57a9f9344a8dd8826edebfe60dad48ee1c784
 
-patch_args="-p1"
 
 pre_build() {
 	cp $FILESDIR/Makefile .
diff --git a/srcpkgs/ispc/template b/srcpkgs/ispc/template
index 585115923c0d..9c3acb42a9cf 100644
--- a/srcpkgs/ispc/template
+++ b/srcpkgs/ispc/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause"
 homepage="https://ispc.github.io"
 distfiles="https://github.com/ispc/ispc/archive/v${version}.tar.gz"
 checksum=2658ff00dc045ac9fcefbf6bd26dffaf723b059a942a27df91bbb61bc503a285
-patch_args="-p1"
 nocross=yes
 nopie=yes
 
diff --git a/srcpkgs/jasper/template b/srcpkgs/jasper/template
index ae02985e45d0..588dc517f017 100644
--- a/srcpkgs/jasper/template
+++ b/srcpkgs/jasper/template
@@ -12,7 +12,6 @@ license="JasPer-2.0"
 homepage="http://www.ece.uvic.ca/~mdadams/jasper"
 distfiles="https://github.com/mdadams/jasper/archive/version-${version}.tar.gz"
 checksum=f5bc48e2884bcabd2aca1737baff4ca962ec665b6eb673966ced1f7adea07edb
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/json-c/template b/srcpkgs/json-c/template
index 02e4d9d75ca0..daafc44f97ac 100644
--- a/srcpkgs/json-c/template
+++ b/srcpkgs/json-c/template
@@ -12,7 +12,6 @@ license="MIT"
 homepage="https://json-c.github.io/json-c"
 distfiles="https://s3.amazonaws.com/json-c_releases/releases/${pkgname}-${version}.tar.gz"
 checksum=b8d80a1ddb718b3ba7492916237bbf86609e9709fb007e7f7d4322f02341a4c6
-patch_args="-Np1"
 
 CFLAGS="-Wno-error"
 
diff --git a/srcpkgs/judy/template b/srcpkgs/judy/template
index 15bdb3548fa4..899c7a7622c6 100644
--- a/srcpkgs/judy/template
+++ b/srcpkgs/judy/template
@@ -11,7 +11,6 @@ homepage="http://judy.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/judy/Judy-${version}.tar.gz"
 checksum=d2704089f85fdb6f2cd7e77be21170ced4b4375c03ef1ad4cf1075bd414a63eb
 disable_parallel_build=yes
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 post_extract() {
diff --git a/srcpkgs/julia/template b/srcpkgs/julia/template
index 414e261e1c67..0e766ca53906 100644
--- a/srcpkgs/julia/template
+++ b/srcpkgs/julia/template
@@ -30,7 +30,6 @@ license="MIT"
 homepage="https://julialang.org"
 distfiles="https://github.com/JuliaLang/julia/releases/download/v${version}/julia-${version}-full.tar.gz"
 checksum=71d8e40611361370654e8934c407b2dec04944cf3917c5ecb6482d6b85ed767f
-patch_args=-Np1
 nocross="build system is a mess"
 # Targets for the vendored symlinks mentioned above
 shlib_requires="libgit2.so.1.0 libcurl.so.4 libmpfr.so.6 libgmp.so.10
diff --git a/srcpkgs/kakasi/template b/srcpkgs/kakasi/template
index 1a4bc42eb4f4..ad0fcbcc8fac 100644
--- a/srcpkgs/kakasi/template
+++ b/srcpkgs/kakasi/template
@@ -10,7 +10,6 @@ license="GPL-2.0-or-later"
 homepage="http://kakasi.namazu.org/"
 distfiles="http://kakasi.namazu.org/stable/kakasi-${version}.tar.gz"
 checksum=004276fd5619c003f514822d82d14ae83cd45fb9338e0cb56a44974b44961893
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" kakasi"
diff --git a/srcpkgs/kitty/template b/srcpkgs/kitty/template
index 5a8dcc8b4fb8..6ad4cffa0777 100644
--- a/srcpkgs/kitty/template
+++ b/srcpkgs/kitty/template
@@ -14,7 +14,6 @@ homepage="https://sw.kovidgoyal.net/kitty/"
 changelog="https://sw.kovidgoyal.net/kitty/changelog.html"
 distfiles="https://github.com/kovidgoyal/kitty/releases/download/v${version}/kitty-${version}.tar.xz"
 checksum=43596a1c5645fe476e96e748bb3b44afd680d84b4af409cd36b33de19b31933d
-patch_args="-Np1"
 python_version=3
 LDFLAGS+=" -Wl,-z,stack-size=2097152"
 
diff --git a/srcpkgs/kmymoney/template b/srcpkgs/kmymoney/template
index 3b7e889f93a8..7a95dd99ae13 100644
--- a/srcpkgs/kmymoney/template
+++ b/srcpkgs/kmymoney/template
@@ -19,7 +19,6 @@ license="GPL-2.0-or-later"
 homepage="https://kmymoney.org"
 distfiles="${KDE_SITE}/kmymoney/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=df7b9f78e8596f99d28295ca738708f0655ee057789dfd921c7b1bab96578298
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DENABLE_LIBICAL=0"
diff --git a/srcpkgs/kodi-rpi/template b/srcpkgs/kodi-rpi/template
index fc0fbd05ffba..d92a4f6217d8 100644
--- a/srcpkgs/kodi-rpi/template
+++ b/srcpkgs/kodi-rpi/template
@@ -13,7 +13,6 @@ distfiles="https://github.com/xbmc/xbmc/archive/${version}-${_codename}.tar.gz"
 checksum=6deb28f725880b1ab6c5920b55ef1190a79b0684ffb30b6e13b199d23a0af296
 LDFLAGS+=" -Wl,-z,stack-size=1048576"
 python_version=2
-patch_args="-Np1"
 
 nopie=yes
 archs="armv6l* armv7l*"
diff --git a/srcpkgs/kodi/template b/srcpkgs/kodi/template
index c64d926eb010..8f10f4f04887 100644
--- a/srcpkgs/kodi/template
+++ b/srcpkgs/kodi/template
@@ -33,7 +33,6 @@ checksum+=" 071e414e61b795f2ff9015b21a85fc009dde967f27780d23092643916538a57a"
 skip_extraction="crossguid-8f399e8bd4.tar.gz libdvdcss-1.4.2-Leia-Beta-5.tar.gz
  libdvdread-6.0.0-Leia-Alpha-3.tar.gz libdvdnav-6.0.0-Leia-Alpha-3.tar.gz"
 python_version=3
-patch_args="-Np1"
 LDFLAGS="-Wl,-z,stack-size=1048576"
 
 if [ "$XBPS_WORDSIZE" = 32 ]; then
diff --git a/srcpkgs/kreport/template b/srcpkgs/kreport/template
index 2dade86a8f47..af0a9d8509b0 100644
--- a/srcpkgs/kreport/template
+++ b/srcpkgs/kreport/template
@@ -12,7 +12,6 @@ license="LGPL-2.0-or-later"
 homepage="https://community.kde.org/KReport"
 distfiles="${KDE_SITE}/kreport/src/kreport-${version}.tar.xz"
 checksum=22716d719654e8f887fe4d33654e252ddf3d3d818c44e15a8af0e6f2e7d6ccd7
-patch_args=-Np1
 
 kreport-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision} kproperty-devel qt5-declarative-devel"
diff --git a/srcpkgs/kwin/template b/srcpkgs/kwin/template
index 7cb252b2d00b..23cf78df1ff1 100644
--- a/srcpkgs/kwin/template
+++ b/srcpkgs/kwin/template
@@ -19,7 +19,6 @@ license="GPL-2.0-or-later"
 homepage="https://invent.kde.org/plasma/kwin"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=5506ee878e151734893bbcc0a70d6499c894b8986488c9c57285de1deb422850
-patch_args=-Np1
 
 build_options="pipewire"
 build_options_default="pipewire"
diff --git a/srcpkgs/libbaseencode/template b/srcpkgs/libbaseencode/template
index d5929ad7bb51..1c9299b1beae 100644
--- a/srcpkgs/libbaseencode/template
+++ b/srcpkgs/libbaseencode/template
@@ -9,7 +9,6 @@ license="Apache-2.0"
 homepage="https://github.com/paolostivanin/libbaseencode"
 distfiles="https://github.com/paolostivanin/libbaseencode/archive/v${version}.tar.gz"
 checksum=a183d7cf30d931b2a078d6f0ef64616b71ab26f9258e5f4e191778c7ace7175d
-patch_args=-Np1
 
 libbaseencode-devel_package() {
 	depends="libbaseencode-${version}_${revision}"
diff --git a/srcpkgs/libcotp/template b/srcpkgs/libcotp/template
index 88337290d1e8..9e147ff7deb6 100644
--- a/srcpkgs/libcotp/template
+++ b/srcpkgs/libcotp/template
@@ -11,7 +11,6 @@ license="Apache-2.0"
 homepage="https://github.com/paolostivanin/libcotp"
 distfiles="https://github.com/paolostivanin/libcotp/archive/v${version}.tar.gz"
 checksum=25b45ffa4aece5cc689503ebea7356a2f760c194f0c41805934495d2fe7165b1
-patch_args=-Np1
 
 libcotp-devel_package() {
 	depends="libcotp-${version}_${revision}"
diff --git a/srcpkgs/libextractor/template b/srcpkgs/libextractor/template
index 884dbd8c09e8..29d5b8df01f8 100644
--- a/srcpkgs/libextractor/template
+++ b/srcpkgs/libextractor/template
@@ -14,7 +14,6 @@ license="GPL-3.0-or-later"
 homepage="https://www.gnu.org/software/libextractor/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=16f633ab8746a38547c4a1da3f4591192b0825ad83c4336f0575b85843d8bd8f
-patch_args="-Np1"
 
 post_install() {
 	sed -i "s|\(-specs=.*hardened-ld\)||g" ${DESTDIR}/usr/lib/pkgconfig/libextractor.pc
diff --git a/srcpkgs/libfcitx-qt5/template b/srcpkgs/libfcitx-qt5/template
index 057259b40232..c519a3b617bc 100644
--- a/srcpkgs/libfcitx-qt5/template
+++ b/srcpkgs/libfcitx-qt5/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
 homepage="https://fcitx-im.org/"
 distfiles="http://download.fcitx-im.org/fcitx-qt5/fcitx-qt5-${version}.tar.xz"
 checksum=e5c3ccdf406c19bde48ab5f59ac208967c3ca4f520626cdb66baf63f6160d946
-patch_args=-Np1
 
 post_install() {
 	vlicense COPYING.BSD
diff --git a/srcpkgs/libgcrypt/template b/srcpkgs/libgcrypt/template
index 3a6032d6cc6c..e466a315e7f3 100644
--- a/srcpkgs/libgcrypt/template
+++ b/srcpkgs/libgcrypt/template
@@ -11,7 +11,6 @@ license="LGPL-2.1-or-later"
 homepage="https://www.gnupg.org"
 distfiles="https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${version}.tar.bz2"
 checksum=97ebe4f94e2f7e35b752194ce15a0f3c66324e0ff6af26659bbfb5ff2ec328fd
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" ac_cv_sys_symbol_underscore=no"
diff --git a/srcpkgs/libgpg-error/template b/srcpkgs/libgpg-error/template
index 309860f3f5a7..98a7c475d1d3 100644
--- a/srcpkgs/libgpg-error/template
+++ b/srcpkgs/libgpg-error/template
@@ -9,7 +9,6 @@ license="LGPL-2.1-or-later, GPL-2.0-or-later"
 homepage="https://www.gnupg.org"
 distfiles="https://www.gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=fc07e70f6c615f8c4f590a8e37a9b8dd2e2ca1e9408f8e60459c67452b925e23
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends="qemu-user-static"
diff --git a/srcpkgs/libhugetlbfs/template b/srcpkgs/libhugetlbfs/template
index 33a645b07753..3a9de8e8d2cd 100644
--- a/srcpkgs/libhugetlbfs/template
+++ b/srcpkgs/libhugetlbfs/template
@@ -13,7 +13,6 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/libhugetlbfs/libhugetlbfs"
 distfiles="https://github.com/${pkgname}/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=b70672f1e807c61b7eb3adf41c1903b42917951f2e7f8aef6821841700c04479
-patch_args="-Np1"
 CFLAGS="-fPIC"
 
 do_check() {
diff --git a/srcpkgs/libical/template b/srcpkgs/libical/template
index 2d97ec032b62..a167a7b4f2e3 100644
--- a/srcpkgs/libical/template
+++ b/srcpkgs/libical/template
@@ -15,7 +15,6 @@ license="LGPL-2.1-only, MPL-2.0"
 homepage="http://libical.github.io/libical/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=09fecacaf75ba5a242159e3a9758a5446b5ce4d0ab684f98a7040864e1d1286f
-patch_args="-Np1"
 disable_parallel_build=yes
 
 build_options="gir"
diff --git a/srcpkgs/libid3tag/template b/srcpkgs/libid3tag/template
index 6ffa35b9387d..bd946e222c28 100644
--- a/srcpkgs/libid3tag/template
+++ b/srcpkgs/libid3tag/template
@@ -2,7 +2,6 @@
 pkgname=libid3tag
 version=0.15.1b
 revision=8
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="pkg-config gperf"
 makedepends="zlib-devel"
diff --git a/srcpkgs/libknet1/template b/srcpkgs/libknet1/template
index bdd6d2b14db1..d261c8c36c9d 100644
--- a/srcpkgs/libknet1/template
+++ b/srcpkgs/libknet1/template
@@ -17,7 +17,6 @@ homepage="https://www.kronosnet.org"
 distfiles="https://kronosnet.org/releases/kronosnet-${version}.tar.bz2"
 checksum=c2ee20a9b5b0791ed5379b38b0b51d549603933925a839f045455553f03e6114
 
-patch_args='-Np1'
 
 CFLAGS="-Wno-format-truncation"
 
diff --git a/srcpkgs/libode/template b/srcpkgs/libode/template
index a899f1024e4a..f6c855cbce75 100644
--- a/srcpkgs/libode/template
+++ b/srcpkgs/libode/template
@@ -12,7 +12,6 @@ license="LGPL-2/BSD"
 homepage="http://www.ode.org"
 distfiles="https://bitbucket.org/odedevs/ode/downloads/ode-${version}.tar.gz"
 checksum=4ba3b76f9c1314160de483b3db92b0569242a07452cbb25b368e75deb3cabf27
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libogdf/template b/srcpkgs/libogdf/template
index 5ca0549acc51..49090dc3a93c 100644
--- a/srcpkgs/libogdf/template
+++ b/srcpkgs/libogdf/template
@@ -15,7 +15,6 @@ homepage="https://ogdf.uos.de/"
 distfiles="https://ogdf.uos.de/wp-content/uploads/2019/04/ogdf-snapshot-${version//./-}.zip"
 checksum=347c3fa8dcdbb094f9c43008cbc2934bc5a64a532af4d3fe360a5fa54488440f
 nocross="can't find cpuid.h headers"
-patch_args=-Np1
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	broken="Non optional usage of broken mallinfo"
diff --git a/srcpkgs/libopenshot/template b/srcpkgs/libopenshot/template
index 7a3a5a2cfd9d..595ff6f7edcc 100644
--- a/srcpkgs/libopenshot/template
+++ b/srcpkgs/libopenshot/template
@@ -16,7 +16,6 @@ license="LGPL-3.0-or-later"
 homepage="https://github.com/OpenShot/libopenshot"
 distfiles="https://github.com/OpenShot/libopenshot/archive/v${version}.tar.gz"
 checksum=8ae7d226fbd2efbc84da4f7d9d8c7f3cc9616e4de46e1233e3b0a84ac0a429bc
-patch_args="-Np1"
 # FIXME: tests segfault
 make_check=extended
 
diff --git a/srcpkgs/libpgf/template b/srcpkgs/libpgf/template
index bf71a8d2fff9..54383332b2cb 100644
--- a/srcpkgs/libpgf/template
+++ b/srcpkgs/libpgf/template
@@ -2,7 +2,6 @@
 pkgname=libpgf
 version=6.14.12
 revision=3
-patch_args="-Np1"
 wrksrc="$pkgname"
 build_style=gnu-configure
 hostmakedepends="automake libtool"
diff --git a/srcpkgs/libsasl/template b/srcpkgs/libsasl/template
index c0d20324790b..b9dbe7bc2f86 100644
--- a/srcpkgs/libsasl/template
+++ b/srcpkgs/libsasl/template
@@ -17,7 +17,6 @@ license="BSD-3-Clause-Attribution"
 homepage="https://www.cyrusimap.org/sasl/"
 distfiles="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-${version}/cyrus-sasl-${version}.tar.gz"
 checksum=26866b1549b00ffd020f188a43c258017fa1c382b3ddadd8201536f72efb05d5
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libtar/template b/srcpkgs/libtar/template
index 1ba6d6a29050..84280b727ef9 100644
--- a/srcpkgs/libtar/template
+++ b/srcpkgs/libtar/template
@@ -3,7 +3,6 @@ pkgname=libtar
 version=1.2.20
 revision=3
 wrksrc="$pkgname"
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="automake libtool pkg-config"
 makedepends="zlib-devel"
diff --git a/srcpkgs/libtls/template b/srcpkgs/libtls/template
index a163b69eee98..5ab8c6c84e26 100644
--- a/srcpkgs/libtls/template
+++ b/srcpkgs/libtls/template
@@ -21,7 +21,6 @@ build_options="asm"
 desc_option_asm="Use platform assembly for faster crypto"
 
 build_options_default="asm"
-patch_args=-Np1
 
 if [ "$build_option_asm" ]; then
 	distfiles+=" https://github.com/q66/libressl-portable-asm/archive/v${_lssl_asm_ver}.tar.gz"
diff --git a/srcpkgs/libtomcrypt/template b/srcpkgs/libtomcrypt/template
index 63635e14c995..4475f1d5b33e 100644
--- a/srcpkgs/libtomcrypt/template
+++ b/srcpkgs/libtomcrypt/template
@@ -11,7 +11,6 @@ homepage="http://www.libtom.net/?page=features&newsitems=5&whatfile=crypt"
 distfiles="https://github.com/libtom/libtomcrypt/releases/download/v${version}/crypt-${version}.tar.xz"
 checksum=96ad4c3b8336050993c5bc2cf6c057484f2b0f9f763448151567fbab5e767b84
 
-patch_args="-Np1"
 CFLAGS="-DGMP_DESC -DLTM_DESC -DUSE_LTM"
 
 do_build() {
diff --git a/srcpkgs/libunique1/template b/srcpkgs/libunique1/template
index 7b3e81316b59..f73931b0c72b 100644
--- a/srcpkgs/libunique1/template
+++ b/srcpkgs/libunique1/template
@@ -14,7 +14,6 @@ license="LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Attic/LibUnique"
 distfiles="${GNOME_SITE}/libunique/1.1/libunique-${version}.tar.bz2"
 checksum=e5c8041cef8e33c55732f06a292381cb345db946cf792a4ae18aa5c66cdd4fbb
-patch_args="-Np1"
 
 CFLAGS="-Wno-deprecated-declarations"
 
diff --git a/srcpkgs/libvorbis/template b/srcpkgs/libvorbis/template
index e962ccbf512a..252ab68c7f94 100644
--- a/srcpkgs/libvorbis/template
+++ b/srcpkgs/libvorbis/template
@@ -2,7 +2,6 @@
 pkgname=libvorbis
 version=1.3.7
 revision=1
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="pkg-config"
 makedepends="libogg-devel"
diff --git a/srcpkgs/lightdm-gtk-greeter/template b/srcpkgs/lightdm-gtk-greeter/template
index 66651a7af8ad..c2c37197fe8c 100644
--- a/srcpkgs/lightdm-gtk-greeter/template
+++ b/srcpkgs/lightdm-gtk-greeter/template
@@ -16,7 +16,6 @@ homepage="https://launchpad.net/lightdm-gtk-greeter"
 distfiles="${homepage}/${version%.*}/${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=22386e787dc64ac372c63cf2cdce47bfa1c791d1cf8b5d3df68df24ecfbf7d68
 conflicts="lightdm-gtk3-greeter>=0"
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/linux-driver-management/template b/srcpkgs/linux-driver-management/template
index 2d8f51fa078c..0a8859cb73b4 100644
--- a/srcpkgs/linux-driver-management/template
+++ b/srcpkgs/linux-driver-management/template
@@ -17,7 +17,6 @@ license="LGPL-2.1-only"
 homepage="https://github.com/solus-project/linux-driver-management"
 distfiles="https://github.com/solus-project/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=968ef61fbb7e26b89ef9456f03cf31c616bdc8fc69531fcfd9f90ae0f4ff147b
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	# host needs glib-mkenums
diff --git a/srcpkgs/linux4.14/template b/srcpkgs/linux4.14/template
index be7732d07bc3..9d9d56af8c3f 100644
--- a/srcpkgs/linux4.14/template
+++ b/srcpkgs/linux4.14/template
@@ -13,7 +13,6 @@ checksum="f81d59477e90a130857ce18dc02f4fbe5725854911db1e7ba770c7cd350f96a7
  b9afed9ae1f63b67fa01d17b3146f23a2ab5ef8ce458f3aec4d0b174553d0c52"
 skip_extraction="patch-${version}.xz"
 python_version=2 #unverified
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/linux4.19/template b/srcpkgs/linux4.19/template
index 3bbe09617546..5792f6904911 100644
--- a/srcpkgs/linux4.19/template
+++ b/srcpkgs/linux4.19/template
@@ -10,7 +10,6 @@ homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${version}.tar.xz"
 checksum=aaaebdccf599f77148fe170642fa7dc2452cf994b5cbbb4d39cab9e7f4058896
 python_version=3
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/linux4.9/template b/srcpkgs/linux4.9/template
index 553f87b04f6a..bad95d88f072 100644
--- a/srcpkgs/linux4.9/template
+++ b/srcpkgs/linux4.9/template
@@ -13,7 +13,6 @@ checksum="029098dcffab74875e086ae970e3828456838da6e0ba22ce3f64ef764f3d7f1a
  f808e190ab3d4b254b22c8b93936747c135a47c1a66d657af0e494bfbc125ca5"
 python_version=2 #unverified
 skip_extraction="patch-${version}.xz"
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/linux5.10/template b/srcpkgs/linux5.10/template
index 5a6b35e18c74..b63592c5880b 100644
--- a/srcpkgs/linux5.10/template
+++ b/srcpkgs/linux5.10/template
@@ -10,7 +10,6 @@ homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${version}.tar.xz"
 checksum=77beefa59c854ce1e8353db947a71a8a91f2a907aed45c1335ac1f209983c767
 python_version=3
-patch_args="-Np1"
 
 # XXX Restrict archs until a proper <arch>-dotconfig is available in FILESDIR.
 archs="x86_64* i686* ppc* aarch64*"
diff --git a/srcpkgs/linux5.11/template b/srcpkgs/linux5.11/template
index ab3f6f627750..3d6e5facc176 100644
--- a/srcpkgs/linux5.11/template
+++ b/srcpkgs/linux5.11/template
@@ -13,7 +13,6 @@ checksum="04f07b54f0d40adfab02ee6cbd2a942c96728d87c1ef9e120d0cb9ba3fe067b4
  07aac31956d3f483a91506524befd45962f3bbfda2f8d43cf90713caf872d9ba"
 skip_extraction="patch-${version}.xz"
 python_version=3
-patch_args="-Np1"
 
 # XXX Restrict archs until a proper <arch>-dotconfig is available in FILESDIR.
 archs="x86_64* i686* aarch64* ppc*"
diff --git a/srcpkgs/linux5.12/template b/srcpkgs/linux5.12/template
index 5276698b36a0..06ead94605c9 100644
--- a/srcpkgs/linux5.12/template
+++ b/srcpkgs/linux5.12/template
@@ -13,7 +13,6 @@ checksum="7d0df6f2bf2384d68d0bd8e1fe3e071d64364dcdc6002e7b5c87c92d48fac366
  034eb39ad49f3a26fc1b4ef799ef481ce35fe03e2b24131e9cd3d2805a99ad19"
 skip_extraction="patch-${version}.xz"
 python_version=3
-patch_args="-Np1"
 
 # XXX Restrict archs until a proper <arch>-dotconfig is available in FILESDIR.
 archs="x86_64* i686* aarch64* ppc*"
diff --git a/srcpkgs/linux5.4/template b/srcpkgs/linux5.4/template
index 40fe79b4abca..1adba525e68d 100644
--- a/srcpkgs/linux5.4/template
+++ b/srcpkgs/linux5.4/template
@@ -10,7 +10,6 @@ homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${version}.tar.xz"
 checksum=17ee750a4aeb1c883d721e730d1f7e2855124585e2f47766864a1359a7ebe33c
 python_version=3
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/loudgain/template b/srcpkgs/loudgain/template
index 00b2d20d27d6..da4f2d56e94c 100644
--- a/srcpkgs/loudgain/template
+++ b/srcpkgs/loudgain/template
@@ -11,7 +11,6 @@ license="BSD-2-Clause"
 homepage="https://github.com/Moonbase59/loudgain"
 distfiles="https://github.com/Moonbase59/loudgain/archive/v${version}.tar.gz"
 checksum=1137c193ad941b366e87c5d84ccc95a7aa8571affc060db0bd1cf72c489aeaee
-patch_args=-Np1
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/lxde-common/template b/srcpkgs/lxde-common/template
index df521545d44e..f7521d1b9030 100644
--- a/srcpkgs/lxde-common/template
+++ b/srcpkgs/lxde-common/template
@@ -12,4 +12,3 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=1cd9bc900960c995d48ffbbdc86ecffda7c806168c67aaa50c53113794234856
-patch_args="-Np1"
diff --git a/srcpkgs/lxlauncher/template b/srcpkgs/lxlauncher/template
index 5b91dc9c7202..917049e5da74 100644
--- a/srcpkgs/lxlauncher/template
+++ b/srcpkgs/lxlauncher/template
@@ -16,7 +16,6 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=cd14b59cf337e7ba0d67efc95cd79859ab5f0f85af5a84c7aff771f868c3dca7
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/lxsession/template b/srcpkgs/lxsession/template
index bf5ad1543557..8fe456a1d43e 100644
--- a/srcpkgs/lxsession/template
+++ b/srcpkgs/lxsession/template
@@ -14,7 +14,6 @@ homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/$pkgname-$version.tar.xz"
 checksum=e43e0d9c033095559ab57c8821c2b84fea58009d267db1324d32dca8bd4dbb46
 replaces="lxpolkit>=0"
-patch_args="-Np1"
 
 pre_build() {
 	rm *.stamp
diff --git a/srcpkgs/m4/template b/srcpkgs/m4/template
index ad0d585a2649..78f3dae6184a 100644
--- a/srcpkgs/m4/template
+++ b/srcpkgs/m4/template
@@ -2,7 +2,6 @@
 pkgname=m4
 version=1.4.18
 revision=2
-patch_args="-Np1"
 bootstrap=yes
 replaces="chroot-m4>=0"
 build_style=gnu-configure
diff --git a/srcpkgs/mac-fdisk/template b/srcpkgs/mac-fdisk/template
index e49accf70f02..954609a0a23a 100644
--- a/srcpkgs/mac-fdisk/template
+++ b/srcpkgs/mac-fdisk/template
@@ -10,7 +10,6 @@ license="GPL-2.0-or-later"
 homepage="https://packages.debian.org/sid/mac-fdisk"
 distfiles="http://deb.debian.org/debian/pool/main/m/mac-fdisk/mac-fdisk_${version}.orig.tar.gz"
 checksum=7059fc4ba41ca2ef857e1092e9c56e910f27693d407b5c3d78f7102ad0c56a66
-patch_args="-Np1"
 
 CFLAGS="-D_GNU_SOURCE"
 
diff --git a/srcpkgs/mailx/template b/srcpkgs/mailx/template
index 63ec23e72e07..af0f33598b10 100644
--- a/srcpkgs/mailx/template
+++ b/srcpkgs/mailx/template
@@ -2,7 +2,6 @@
 pkgname=mailx
 version=12.5
 revision=25
-patch_args="-Np1"
 wrksrc="mailx-${version}"
 makedepends="openssl-devel mit-krb5-devel"
 conf_files="/etc/mailx.rc"
diff --git a/srcpkgs/make/template b/srcpkgs/make/template
index 0aebcbc70be6..9a980aa10dde 100644
--- a/srcpkgs/make/template
+++ b/srcpkgs/make/template
@@ -15,4 +15,3 @@ homepage="http://www.gnu.org/software/make"
 distfiles="${GNU_SITE}/make/${pkgname}-${version}.tar.lz"
 checksum=de1a441c4edf952521db30bfca80baae86a0ff1acd0a00402999344f04c45e82
 build_options=guile
-patch_args="-Np1"
diff --git a/srcpkgs/mbuffer/template b/srcpkgs/mbuffer/template
index 97e0daac30e8..b1b30619272f 100644
--- a/srcpkgs/mbuffer/template
+++ b/srcpkgs/mbuffer/template
@@ -11,5 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://www.maier-komor.de/mbuffer.html"
 distfiles="https://www.maier-komor.de/software/mbuffer/mbuffer-${version}.tgz"
 checksum=51b5b8d8488991a55fe1dfce90130f9e47bc1ce286ba03b4f628c04b784fdc5d
-patch_args=-Np1
 conf_files="/etc/mbuffer.rc"
diff --git a/srcpkgs/mellowplayer/template b/srcpkgs/mellowplayer/template
index 3bd4a704985a..3afe098a08f4 100644
--- a/srcpkgs/mellowplayer/template
+++ b/srcpkgs/mellowplayer/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://colinduquesnoy.gitlab.io/MellowPlayer/"
 distfiles="https://gitlab.com/ColinDuquesnoy/MellowPlayer/-/archive/${version}/MellowPlayer-${version}.tar.bz2"
 checksum=7571588a704d0e76e65764f7a7725cf2b22125e06d930f236d19f75c1ecf559d
-patch_args=-Np1
 
 if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
 	broken="webengine can be built only if word size matches"
diff --git a/srcpkgs/mkinitcpio-nfs-utils/template b/srcpkgs/mkinitcpio-nfs-utils/template
index d8f23343ad6a..f40c42735fd6 100644
--- a/srcpkgs/mkinitcpio-nfs-utils/template
+++ b/srcpkgs/mkinitcpio-nfs-utils/template
@@ -18,7 +18,6 @@ case "$XBPS_TARGET_MACHINE" in
 	;;
 esac
 
-patch_args="-Np1"
 
 post_extract() {
 	sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' */Makefile
diff --git a/srcpkgs/mkinitcpio/template b/srcpkgs/mkinitcpio/template
index 04277348348d..d3f89d781382 100644
--- a/srcpkgs/mkinitcpio/template
+++ b/srcpkgs/mkinitcpio/template
@@ -13,7 +13,6 @@ homepage="https://git.archlinux.org/mkinitcpio.git"
 distfiles="https://sources.archlinux.org/other/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c7725035a06d2ab6ef6e97601b69859d6061aec95c4551e2a1ad2e27d307258f
 conf_files="/etc/mkinitcpio.conf"
-patch_args="-Np1"
 replaces="mkinitcpio-udev>=0"
 
 pre_check() {
diff --git a/srcpkgs/motif/template b/srcpkgs/motif/template
index 56f330f259ab..6e38db0a9516 100644
--- a/srcpkgs/motif/template
+++ b/srcpkgs/motif/template
@@ -14,7 +14,6 @@ homepage="https://sourceforge.net/projects/motif/"
 distfiles="${SOURCEFORGE_SITE}/motif/Motif%20${version}%20Source%20Code/motif-${version}.tar.gz"
 checksum=859b723666eeac7df018209d66045c9853b50b4218cecadb794e2359619ebce7
 replaces="lesstif>=0"
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" $makedepends"
diff --git a/srcpkgs/mouseemu/template b/srcpkgs/mouseemu/template
index 1519c7b7ef6a..7a64d63acd85 100644
--- a/srcpkgs/mouseemu/template
+++ b/srcpkgs/mouseemu/template
@@ -11,7 +11,6 @@ homepage="http://geekounet.org/powerbook/"
 distfiles="http://deb.debian.org/debian/pool/main/m/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=bbef220a814931f8ee482c82dfd63ad0a8ec895fc7df7bac1a1ada880d59af59
 conf_files="/etc/sv/mouseemu/conf"
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|i686*) depends+=" dmidecode";;
diff --git a/srcpkgs/mozjs78/template b/srcpkgs/mozjs78/template
index ee443e7a64c8..87e90b422b4e 100644
--- a/srcpkgs/mozjs78/template
+++ b/srcpkgs/mozjs78/template
@@ -17,7 +17,6 @@ license="MPL-2.0"
 homepage="https://www.mozilla.org/firefox/"
 distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.xz"
 checksum=8e03ac1dfc5ac804c8b13a529414a9387e0425e545bb2f4462d74c3175e64864
-patch_args="-Np1"
 
 CXXFLAGS="-Wno-class-memaccess"
 LDFLAGS="-Wl,-z,stack-size=1048576"
diff --git a/srcpkgs/mupdf/template b/srcpkgs/mupdf/template
index 1279d8c680d4..de89007c8f06 100644
--- a/srcpkgs/mupdf/template
+++ b/srcpkgs/mupdf/template
@@ -16,7 +16,6 @@ license="AGPL-3.0-only"
 homepage="https://mupdf.com"
 distfiles="https://mupdf.com/downloads/archive/${pkgname}-${version}-source.tar.gz"
 checksum=8860ea6d01fc3c360ba5e0fa9fede241c6fbb2a73f5215b17a105de409a19266
-patch_args="-Np1"
 
 pre_build() {
 	# libmupdf-{threads,pkcs7}.a are required by fbpdf
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index eaa3dc12e8e5..337a3082faa9 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="http://www.musl-libc.org/"
 distfiles="http://www.musl-libc.org/releases/musl-${version}.tar.gz"
 checksum=1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
-patch_args=-Np1
 
 nostrip_files="libc.so"
 shlib_provides="libc.so"
diff --git a/srcpkgs/ndppd/template b/srcpkgs/ndppd/template
index 48f78c040ab2..e9cbba36942a 100644
--- a/srcpkgs/ndppd/template
+++ b/srcpkgs/ndppd/template
@@ -9,7 +9,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/DanielAdolfsson/ndppd"
 distfiles="https://github.com/DanielAdolfsson/ndppd/archive/${version}.tar.gz"
 checksum=ee934167f8357f0bd0015e201a77fbe4d028c59e89dc98113805c6855e1c3992
-patch_args="-Np1"
 
 do_install() {
 	vbin ndppd
diff --git a/srcpkgs/network-manager-applet/template b/srcpkgs/network-manager-applet/template
index 0f041aa80b27..e9bb40aa3e6f 100644
--- a/srcpkgs/network-manager-applet/template
+++ b/srcpkgs/network-manager-applet/template
@@ -17,5 +17,4 @@ homepage="https://wiki.gnome.org/Projects/NetworkManager"
 changelog="https://raw.githubusercontent.com/NetworkManager/network-manager-applet/master/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=c70d80b48d40a9cb99ec967cc4389f67e7f0301528a69d481572041331a646be
-patch_args=-Np1
 lib32disabled=yes
diff --git a/srcpkgs/nfs-utils/template b/srcpkgs/nfs-utils/template
index 4b5dc97ea19c..10e72d3054c8 100644
--- a/srcpkgs/nfs-utils/template
+++ b/srcpkgs/nfs-utils/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.linux-nfs.org/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
 checksum=51997d94e4c8bcef5456dd36a9ccc38e231207c4e9b6a9a2c108841e6aebe3dd
-patch_args="-Np1"
 replaces="rpcgen>=0"
 
 hostmakedepends="pkg-config libtirpc-devel rpcsvc-proto"
diff --git a/srcpkgs/nomad/template b/srcpkgs/nomad/template
index 8ebd079f55e2..989de0f270be 100644
--- a/srcpkgs/nomad/template
+++ b/srcpkgs/nomad/template
@@ -14,7 +14,6 @@ license="MPL-2.0"
 homepage="https://www.nomadproject.io/"
 distfiles="https://github.com/hashicorp/nomad/archive/v${version}.tar.gz"
 checksum=441d2f50a29568451cb16301a2208c9b744a480ded8c624e789983ee42ed3ea9
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) go_build_tags+=" nonvidia" ;;
diff --git a/srcpkgs/notmuch/template b/srcpkgs/notmuch/template
index d96cd07da6a3..0b176d22ebd9 100644
--- a/srcpkgs/notmuch/template
+++ b/srcpkgs/notmuch/template
@@ -21,7 +21,6 @@ skip_extraction="database-v1.tar.xz"
 # gpgme is optional dependency
 conflicts="gpgme<1.14.0_1"
 subpackages="libnotmuch libnotmuch-devel notmuch-mutt notmuch-python3"
-patch_args=-Np1
 
 if [ ! "$CROSS_BUILD" ]; then
 	hostmakedepends+=" desktop-file-utils"
diff --git a/srcpkgs/numix-themes/template b/srcpkgs/numix-themes/template
index 0e5b7b436c75..76814bab7d9e 100644
--- a/srcpkgs/numix-themes/template
+++ b/srcpkgs/numix-themes/template
@@ -12,4 +12,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/numixproject/numix-gtk-theme"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=2b997ad3eee0b802d0dd49dd772127fd3c337cca32d8863efd4897928e38879a
-patch_args=-Np1
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index a24dde6ca225..edc737186f93 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -2,7 +2,6 @@
 pkgname=nvi
 version=1.81.6
 revision=16
-patch_args="-Np1"
 build_style=gnu-configure
 build_wrksrc=dist
 makedepends="ncurses-devel db-devel"
diff --git a/srcpkgs/ocaml/template b/srcpkgs/ocaml/template
index c941d4b33684..0b760f5ffa5a 100644
--- a/srcpkgs/ocaml/template
+++ b/srcpkgs/ocaml/template
@@ -13,7 +13,6 @@ homepage="http://ocaml.org/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=cd3cd55d465028b161c8c33bafc14ee6ae1d91b5efe51098350f8e8a5f454baf
 nocross=yes
-patch_args="-Np1"
 
 export ASPP="cc -c"
 
diff --git a/srcpkgs/onboard/template b/srcpkgs/onboard/template
index 681de6199e0d..38b447de275e 100644
--- a/srcpkgs/onboard/template
+++ b/srcpkgs/onboard/template
@@ -14,4 +14,3 @@ license="GPL-3.0-or-later"
 homepage="https://launchpad.net/onboard"
 distfiles="https://launchpad.net/${pkgname}/${version%.*}/${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=01cae1ac5b1ef1ab985bd2d2d79ded6fc99ee04b1535cc1bb191e43a231a3865
-patch_args="-Np1"
diff --git a/srcpkgs/openjdk10-bootstrap/template b/srcpkgs/openjdk10-bootstrap/template
index 9695f1f1f431..92d066bb200b 100644
--- a/srcpkgs/openjdk10-bootstrap/template
+++ b/srcpkgs/openjdk10-bootstrap/template
@@ -51,7 +51,6 @@ if [ -n "$_use_zero" ]; then
 fi
 
 shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
-patch_args="-Np1"
 nocross=yes
 
 if [ -n "$XBPS_DEBUG_PKGS" ]; then
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index f273380c0ebb..b084713ea889 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -83,7 +83,6 @@ skip_extraction="
  hotspot-${_drops_ver}.tar.bz2"
 
 shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
-patch_args="-Np1"
 nocross=yes
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 478986b3ca6b..a6d99811d672 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -80,7 +80,6 @@ else
 fi
 
 provides="java-environment-${version}_1"
-patch_args="-Np1"
 
 if [ -n "$XBPS_DEBUG_PKGS" ]; then
 	configure_args+=" --with-native-debug-symbols=internal"
diff --git a/srcpkgs/openjdk9-bootstrap/template b/srcpkgs/openjdk9-bootstrap/template
index 7fc5dc69376f..bf2654033377 100644
--- a/srcpkgs/openjdk9-bootstrap/template
+++ b/srcpkgs/openjdk9-bootstrap/template
@@ -67,7 +67,6 @@ fi
 
 lib32disabled=yes
 shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
-patch_args="-Np1"
 nocross=yes
 
 if [ -n "$XBPS_DEBUG_PKGS" ]; then
diff --git a/srcpkgs/orientdb/template b/srcpkgs/orientdb/template
index c7c49f59af5b..5db277ac3232 100644
--- a/srcpkgs/orientdb/template
+++ b/srcpkgs/orientdb/template
@@ -11,7 +11,6 @@ license="Apache-2.0"
 homepage="https://orientdb.org"
 distfiles="https://s3.us-east-2.amazonaws.com/orientdb3/releases/${version}/orientdb-${version}.tar.gz"
 checksum=73830279a5587de17ea4f5864598a0829bb03212d6cd36d185fe126a46086236
-patch_args="-Np1"
 system_accounts="orientdb"
 
 do_install() {
diff --git a/srcpkgs/p11-kit/template b/srcpkgs/p11-kit/template
index 9947a2ec6567..cc0b11eb720f 100644
--- a/srcpkgs/p11-kit/template
+++ b/srcpkgs/p11-kit/template
@@ -14,7 +14,6 @@ license="BSD-3-Clause"
 homepage="https://github.com/p11-glue/p11-kit"
 distfiles="${homepage}/releases/download/${version}/p11-kit-${version}.tar.xz"
 checksum=8a8f40153dd5a3f8e7c03e641f8db400133fb2a6a9ab2aee1b6d0cb0495ec6b6
-patch_args=-Np1
 conf_files="/etc/pkcs11/pkcs11.conf"
 
 if [ "$XBPS_CHECK_PKGS" ]; then
diff --git a/srcpkgs/parallel-rust/template b/srcpkgs/parallel-rust/template
index f6a1df6cfd4f..d2a746db9108 100644
--- a/srcpkgs/parallel-rust/template
+++ b/srcpkgs/parallel-rust/template
@@ -3,7 +3,6 @@ pkgname=parallel-rust
 version=0.11.3
 revision=2
 wrksrc="parallel-${version}"
-patch_args="-Np1"
 build_style=cargo
 short_desc="Inspired by GNU Parallel, a command-line CPU load balancer written in Rust"
 maintainer="lemmi <lemmi@nerd2nerd.org>"
diff --git a/srcpkgs/patch/template b/srcpkgs/patch/template
index 54bfe06dada4..c850a4f74a71 100644
--- a/srcpkgs/patch/template
+++ b/srcpkgs/patch/template
@@ -11,7 +11,6 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/patch/patch.html"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=ac610bda97abe0d9f6b7c963255a11dcb196c25e337c61f94e4778d632f1d8fd
-patch_args="-Np1"
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	export ac_cv_lib_error_at_line=no
diff --git a/srcpkgs/pavucontrol/template b/srcpkgs/pavucontrol/template
index b80f1b85a7d2..1fd6de3d37cc 100644
--- a/srcpkgs/pavucontrol/template
+++ b/srcpkgs/pavucontrol/template
@@ -11,4 +11,3 @@ license="GPL-2.0-or-later"
 homepage="https://freedesktop.org/software/pulseaudio/pavucontrol/"
 distfiles="${homepage}/${pkgname}-${version}.tar.xz"
 checksum=8fc45bac9722aefa6f022999cbb76242d143c31b314e2dbb38f034f4069d14e2
-patch_args=-Np1
diff --git a/srcpkgs/pbbuttonsd/template b/srcpkgs/pbbuttonsd/template
index 2826198c71fa..242e9a49d4dc 100644
--- a/srcpkgs/pbbuttonsd/template
+++ b/srcpkgs/pbbuttonsd/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.berlios.de/software/pbbuttons"
 distfiles="${SOURCEFORGE_SITE}/pbbuttons/pbbuttonsd-${version}.tar.gz"
 checksum=254cc391bcb0a4a58a62224b4cca2b29fdf9ca174c1dc18ab0784f1a86465ed1
-patch_args="-Np1"
 
 post_extract() {
 	# fix cross builds (small build-only tool built with this)
diff --git a/srcpkgs/pcsxr/template b/srcpkgs/pcsxr/template
index 37bd5f2fe7f4..e95d3eb66634 100644
--- a/srcpkgs/pcsxr/template
+++ b/srcpkgs/pcsxr/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="http://pcsxr.codeplex.com/"
 distfiles="http://deb.debian.org/debian/pool/main/p/pcsxr/pcsxr_${version}.orig.tar.xz"
 checksum=8a366b68a7c236443aa75b422bea84b5115f8d8c23e5a78fd6951e643e90f660
-patch_args="-Np1"
 lib32disabled=yes
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/pinebookpro-kernel/template b/srcpkgs/pinebookpro-kernel/template
index 5908c8021ce4..09e202b279f2 100644
--- a/srcpkgs/pinebookpro-kernel/template
+++ b/srcpkgs/pinebookpro-kernel/template
@@ -10,7 +10,6 @@ license="GPL-2.0-only"
 homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${version}.tar.xz"
 checksum=ac37a19d45b77a87e58e3aae8b127a6e7eb85ed7467fc8e58474b387bfd498fd
-patch_args="-Np1"
 python_version=3
 
 nodebug=yes  # -dbg package is generated below manually
diff --git a/srcpkgs/pinephone-kernel/template b/srcpkgs/pinephone-kernel/template
index 73631552a9ba..0361e3edca81 100644
--- a/srcpkgs/pinephone-kernel/template
+++ b/srcpkgs/pinephone-kernel/template
@@ -11,7 +11,6 @@ homepage="https://www.kernel.org"
 distfiles="https://github.com/megous/linux/archive/${_tag}.tar.gz"
 checksum=7ef48ee91f6b6cfdc74f3dc73753903748bcda3282f1ac6e2ff33d392f6c30ca
 python_version=3
-patch_args="-Np1"
 
 archs="aarch64*"
 
diff --git a/srcpkgs/ponysay/template b/srcpkgs/ponysay/template
index 5fd3af284d2d..d2e146943e58 100644
--- a/srcpkgs/ponysay/template
+++ b/srcpkgs/ponysay/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="https://erkin.github.com/ponysay/"
 distfiles="https://github.com/erkin/${pkgname}/archive/${version}.tar.gz"
 checksum=c382d7f299fa63667d1a4469e1ffbf10b6813dcd29e861de6be55e56dc52b28a
-patch_args="-Np1"
 
 do_install() {
 	python3 setup.py --prefix=/usr --dest-dir=$DESTDIR \
diff --git a/srcpkgs/poppler-qt5/template b/srcpkgs/poppler-qt5/template
index 4fb165ecc22b..c130ecc74f79 100644
--- a/srcpkgs/poppler-qt5/template
+++ b/srcpkgs/poppler-qt5/template
@@ -21,7 +21,6 @@ distfiles="${homepage}/poppler-${version}.tar.xz"
 checksum=dafd537b680fad1215bc40fc53d1f38e8449d7c185bc60d5a89e1d26c90dbd8c
 # fails to find a bunch of files
 make_check=no
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DTHREADS_PTHREAD_ARG=2"
diff --git a/srcpkgs/poppler/template b/srcpkgs/poppler/template
index 72a961b24615..e78dc76cfaa8 100644
--- a/srcpkgs/poppler/template
+++ b/srcpkgs/poppler/template
@@ -19,7 +19,6 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://poppler.freedesktop.org"
 distfiles="${homepage}/${pkgname}-${version}.tar.xz"
 checksum=dafd537b680fad1215bc40fc53d1f38e8449d7c185bc60d5a89e1d26c90dbd8c
-patch_args=-Np1
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/procmail/template b/srcpkgs/procmail/template
index 4518f5caac58..12271d5f0a2d 100644
--- a/srcpkgs/procmail/template
+++ b/srcpkgs/procmail/template
@@ -10,7 +10,6 @@ license="GPL-2.0-or-later, Artistic-1.0-cl8"
 homepage="http://www.procmail.org"
 distfiles="https://fossies.org/linux/misc/old/procmail-${version}.tar.gz"
 checksum=087c75b34dd33d8b9df5afe9e42801c9395f4bf373a784d9bc97153b0062e117
-patch_args="-Np1"
 nocross="./autoconf: line 1396: ./_autotst: No such file or directory"
 
 post_extract() {
diff --git a/srcpkgs/psutils/template b/srcpkgs/psutils/template
index d377334ebb6a..0e47c23d0c25 100644
--- a/srcpkgs/psutils/template
+++ b/srcpkgs/psutils/template
@@ -12,7 +12,6 @@ homepage="http://knackered.org/angus/psutils/"
 wrksrc="psutils"
 distfiles="ftp://ftp.knackered.org/pub/psutils/${pkgname}-${version}.tar.gz"
 checksum="3853eb79584ba8fbe27a815425b65a9f7f15b258e0d43a05a856bdb75d588ae4"
-patch_args="-Np1"
 
 pre_configure() {
 	# install in /usr instead of /usr/local
diff --git a/srcpkgs/python-notify/template b/srcpkgs/python-notify/template
index 7bfe11b2da90..9bc07c76324e 100644
--- a/srcpkgs/python-notify/template
+++ b/srcpkgs/python-notify/template
@@ -15,7 +15,6 @@ homepage="http://www.galago-project.org/"
 distfiles="http://www.galago-project.org/files/releases/source/notify-python/notify-python-${version}.tar.gz"
 checksum=8c5ee28017fdc5b110c31cb76503e535e15e0c60b9a1f1e95ff6c018dd806022
 replaces="notify-python>=0"
-patch_args="-Np1"
 lib32disabled=yes
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/qemu/template b/srcpkgs/qemu/template
index 0a08ed821536..0fadb41f609c 100644
--- a/srcpkgs/qemu/template
+++ b/srcpkgs/qemu/template
@@ -30,7 +30,6 @@ nostrip_files="hppa-firmware.img openbios-ppc openbios-sparc32 openbios-sparc64
  opensbi-riscv64-generic-fw_dynamic.elf"
 # FIXME
 make_check=extended
-patch_args=-Np1
 
 build_options="gtk3 opengl sdl2 spice virgl smartcard numa iscsi"
 build_options_default="opengl gtk3 virgl sdl2 numa iscsi"
diff --git a/srcpkgs/qt5-webengine/template b/srcpkgs/qt5-webengine/template
index d9819ea7d71e..0819b3790345 100644
--- a/srcpkgs/qt5-webengine/template
+++ b/srcpkgs/qt5-webengine/template
@@ -33,7 +33,6 @@ distfiles="https://github.com/qt/qtwebengine/archive/${_commit}.tar.gz
  https://github.com/qt/qtwebengine-chromium/archive/${_chromium_commit}.tar.gz"
 checksum="cea995e14c599c0c46b53b9938fd16f2360b639bf77e88a28ea26f518bb7b578
  fa0cab27cc32284f5af227a3dabde05ed6755f06641db6a6ca1c66848b10f715"
-patch_args="-Np1"
 
 no_generic_pkgconfig_link=yes
 build_options="sndio pipewire"
diff --git a/srcpkgs/rdup/template b/srcpkgs/rdup/template
index a73f90839ef9..74936336c70a 100644
--- a/srcpkgs/rdup/template
+++ b/srcpkgs/rdup/template
@@ -13,7 +13,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/miekg/rdup"
 distfiles="https://github.com/miekg/rdup/archive/${version}.tar.gz"
 checksum=787b8c37e88be810a710210a9d9f6966b544b1389a738aadba3903c71e0c29cb
-patch_args="-Np1"
 
 post_patch() {
 	vsed -e 's/-Werror//' -i GNUmakefile.in
diff --git a/srcpkgs/recode/template b/srcpkgs/recode/template
index bba0c7862d47..531df1dedd33 100644
--- a/srcpkgs/recode/template
+++ b/srcpkgs/recode/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="http://recode.progiciels-bpi.ca/"
 distfiles="${DEBIAN_SITE}/main/r/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=e3e6a4f3f8e5c6052ab70155990c074d87aa0b614fc1be31d194750d1d962fcf
-patch_args="-Np1"
 
 pre_configure() {
 	vsed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.in
diff --git a/srcpkgs/rng-tools/template b/srcpkgs/rng-tools/template
index a6e67902ba89..9519739f2b48 100644
--- a/srcpkgs/rng-tools/template
+++ b/srcpkgs/rng-tools/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/nhorman/rng-tools"
 distfiles="https://github.com/nhorman/rng-tools/archive/v${version}.tar.gz"
 checksum=6fd5b52a700edec85eb1043970e22e8e2ad06a4b43851f35d33d90e09570e9d3
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	makedepends+=" argp-standalone" ;;
diff --git a/srcpkgs/rust/template b/srcpkgs/rust/template
index 6bb928e14783..92ed8935ab09 100644
--- a/srcpkgs/rust/template
+++ b/srcpkgs/rust/template
@@ -22,7 +22,6 @@ homepage="https://www.rust-lang.org/"
 distfiles="https://static.rust-lang.org/dist/rustc-${version}-src.tar.gz"
 checksum="0e763e6db47d5d6f91583284d2f989eacc49b84794d1443355b85c58d67ae43b"
 lib32disabled=yes
-patch_args="-Np1"
 
 build_options="bindist"
 desc_option_bindist="Generate tarballs for bootstrap"
diff --git a/srcpkgs/sakura/template b/srcpkgs/sakura/template
index 299dae396cce..04e5883e0909 100644
--- a/srcpkgs/sakura/template
+++ b/srcpkgs/sakura/template
@@ -12,4 +12,3 @@ license="GPL-2.0-only"
 homepage="https://launchpad.net/sakura"
 distfiles="https://launchpad.net/sakura/trunk/${version}/+download/sakura-${version}.tar.bz2"
 checksum=9ddfe8919ae0e11673ca22879ae324565d0987b14e948e1d2badff538fe1b5b9
-patch_args="-Np1"
diff --git a/srcpkgs/sbc/template b/srcpkgs/sbc/template
index 7645ce469d68..6fdca20e3e9c 100644
--- a/srcpkgs/sbc/template
+++ b/srcpkgs/sbc/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://www.bluez.org/"
 distfiles="${KERNEL_SITE}/bluetooth/${pkgname}-${version}.tar.xz"
 checksum=0cbad69823a99e8421fe0700e8cf9eeb8fa0c1ad28e8dbc2182b3353507931d2
-patch_args="-Np1"
 
 sbc-devel_package() {
 	depends="sbc>=${version}_${revision}"
diff --git a/srcpkgs/sbsigntool/template b/srcpkgs/sbsigntool/template
index 6e6c32ddf3e7..80d0f63781fa 100644
--- a/srcpkgs/sbsigntool/template
+++ b/srcpkgs/sbsigntool/template
@@ -19,7 +19,6 @@ distfiles="$homepage/snapshot/sbsigntools-$version.tar.gz
  $DEBIAN_SITE/main/s/sbsigntool/sbsigntool_0.9.2.orig.tar.gz"
 checksum="eddb7d21263ee2b07be8f0ed93b6ba021c3f943964730b2d86f44736fa1924d5
  1dc1e1de5f2dda50dbd2e6a83355fe7ae38ca0f79daeb404026421af70606653"
-patch_args="-Np1"
 skip_extraction="sbsigntool_0.9.2.orig.tar.gz"
 conf_files="/etc/default/sbsigntool-kernel-hook"
 
diff --git a/srcpkgs/sharutils/template b/srcpkgs/sharutils/template
index 26ff6c074408..e5195a44999f 100644
--- a/srcpkgs/sharutils/template
+++ b/srcpkgs/sharutils/template
@@ -2,7 +2,6 @@
 pkgname=sharutils
 version=4.15.2
 revision=2
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="perl"
 short_desc="Makes so-called shell archives out of many files"
diff --git a/srcpkgs/spdlog/template b/srcpkgs/spdlog/template
index ecf3e97a14ce..184a4d891698 100644
--- a/srcpkgs/spdlog/template
+++ b/srcpkgs/spdlog/template
@@ -14,7 +14,6 @@ license="MIT"
 homepage="https://github.com/gabime/spdlog"
 distfiles="https://github.com/gabime/spdlog/archive/v${version}.tar.gz"
 checksum=e20e6bd8f57e866eaf25a5417f0a38a116e537f1a77ac7b5409ca2b180cec0d5
-patch_args=-Np1
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -DSPDLOG_BUILD_TESTS_HO=ON"
diff --git a/srcpkgs/stegsnow/template b/srcpkgs/stegsnow/template
index 97251c1c7a58..f5cc9a5a3697 100644
--- a/srcpkgs/stegsnow/template
+++ b/srcpkgs/stegsnow/template
@@ -3,7 +3,6 @@ pkgname=stegsnow
 version=20130616
 revision=1
 wrksrc="snow-${version}"
-patch_args="-Np1"
 build_style=gnu-makefile
 short_desc="Whitespace steganography"
 maintainer="Orphaned <orphan@voidlinux.org>"
diff --git a/srcpkgs/sun7i-kernel/template b/srcpkgs/sun7i-kernel/template
index 3d7ae0956875..560ec8ad3732 100644
--- a/srcpkgs/sun7i-kernel/template
+++ b/srcpkgs/sun7i-kernel/template
@@ -32,7 +32,6 @@ archs="armv7l*"
 hostmakedepends="perl python kmod uboot-mkimage openssl bc"
 makedepends="ncurses-devel"
 triggers="kernel-hooks"
-patch_args=-Np1
 python_version=2
 # These files could be modified when an external module is built.
 mutable_files="
diff --git a/srcpkgs/syslinux/template b/srcpkgs/syslinux/template
index 2c8cfb05553e..b45c35819552 100644
--- a/srcpkgs/syslinux/template
+++ b/srcpkgs/syslinux/template
@@ -2,7 +2,6 @@
 pkgname=syslinux
 version=6.03
 revision=7
-patch_args="-Np1"
 hostmakedepends="perl python nasm"
 makedepends="gnu-efi-libs libuuid-devel"
 short_desc="Boot loader for the Linux operating system"
diff --git a/srcpkgs/tilix/template b/srcpkgs/tilix/template
index 952643b213fc..f53d8f86fd87 100644
--- a/srcpkgs/tilix/template
+++ b/srcpkgs/tilix/template
@@ -15,7 +15,6 @@ license="MPL-2.0"
 homepage="https://gnunn1.github.io/tilix-web/"
 distfiles="https://github.com/gnunn1/${pkgname}/archive/${version}.tar.gz"
 checksum=2a9482770391d11d5edc8351d426c700c2cc6c194a30391ef2ae25bb7095b59b
-patch_args=-Np1
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/tmux/template b/srcpkgs/tmux/template
index b0f2178d49ec..25a22045bb72 100644
--- a/srcpkgs/tmux/template
+++ b/srcpkgs/tmux/template
@@ -13,7 +13,6 @@ homepage="https://tmux.github.io"
 changelog="https://raw.githubusercontent.com/tmux/tmux/master/CHANGES"
 distfiles="https://github.com/tmux/tmux/releases/download/${version}/tmux-${version}.tar.gz"
 checksum=664d345338c11cbe429d7ff939b92a5191e231a7c1ef42f381cebacb1e08a399
-patch_args=-Np1
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ucspi-tcp/template b/srcpkgs/ucspi-tcp/template
index f4ef8b1df9db..9012d8a20a20 100644
--- a/srcpkgs/ucspi-tcp/template
+++ b/srcpkgs/ucspi-tcp/template
@@ -9,7 +9,6 @@ license="Public Domain"
 homepage="http://cr.yp.to/ucspi-tcp.html"
 distfiles="http://cr.yp.to/ucspi-tcp/ucspi-tcp-${version}.tar.gz"
 checksum=4a0615cab74886f5b4f7e8fd32933a07b955536a3476d74ea087a3ea66a23e9c
-patch_args="-Np1"
 make_check=no # checks are only designed to check if an installation worked
 
 do_install() {
diff --git a/srcpkgs/unixbench/template b/srcpkgs/unixbench/template
index 039da3c88615..fa652eb2d999 100644
--- a/srcpkgs/unixbench/template
+++ b/srcpkgs/unixbench/template
@@ -13,7 +13,6 @@ license="GPL-2.0-only"
 homepage="https://github.com/kdlucas/byte-unixbench"
 distfiles="$homepage/archive/$_commit.tar.gz"
 checksum=48e6ed4e705c86e5481ddf0c0d5ef2850f84a0da7050d438dbfe1052c81fd93f
-patch_args="-p1"
 
 do_build() {
 	export CFLAGS=$CFLAGS
diff --git a/srcpkgs/unzip/template b/srcpkgs/unzip/template
index 84796994944f..e0831b589d7f 100644
--- a/srcpkgs/unzip/template
+++ b/srcpkgs/unzip/template
@@ -10,7 +10,6 @@ license="Info-ZIP"
 homepage="http://infozip.sf.net/"
 distfiles="${SOURCEFORGE_SITE}/infozip/${pkgname}60.tar.gz"
 checksum=036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
-patch_args="-Np1"
 
 do_build() {
 	CFLAGS+=" -D_FILE_OFFSET_BITS=64 -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT \
diff --git a/srcpkgs/util-linux/template b/srcpkgs/util-linux/template
index fbd3f00e6f80..4fb8292531ba 100644
--- a/srcpkgs/util-linux/template
+++ b/srcpkgs/util-linux/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/utils/util-linux/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/v${version%.${version#*.*.}}/${pkgname}-${version}.tar.xz"
 checksum=f7516ba9d8689343594356f0e5e1a5f0da34adfbc89023437735872bb5024c5f
-patch_args=-Np1
 
 # Create uuidd system account for uuidd.
 system_accounts="_uuidd"
diff --git a/srcpkgs/utox/template b/srcpkgs/utox/template
index 39e0a28eb624..8bb66365933a 100644
--- a/srcpkgs/utox/template
+++ b/srcpkgs/utox/template
@@ -15,7 +15,6 @@ license="MIT"
 homepage="https://github.com/uTox/uTox/"
 distfiles="https://github.com/uTox/uTox/releases/download/v${version}/uTox-${version}-full.tar.gz"
 checksum=fc883483d86b1830674f3b08515daa27ae54ab47646c7edc48a067e8d1e8c114
-patch_args="-Np1"
 nocross=yes
 
 post_install() {
diff --git a/srcpkgs/valgrind/template b/srcpkgs/valgrind/template
index 6010f29ca56f..71f90795aa96 100644
--- a/srcpkgs/valgrind/template
+++ b/srcpkgs/valgrind/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://valgrind.org/"
 distfiles="https://sourceware.org/pub/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=c91f3a2f7b02db0f3bc99479861656154d241d2fdb265614ba918cc6720a33ca
-patch_args="-Np1"
 
 CFLAGS="-fno-stack-protector"
 CXXFLAGS="-fno-stack-protector"
diff --git a/srcpkgs/viking/template b/srcpkgs/viking/template
index 6f7a469c2042..b02ad7498482 100644
--- a/srcpkgs/viking/template
+++ b/srcpkgs/viking/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/viking"
 distfiles="${SOURCEFORGE_SITE}/viking/viking-${version}.tar.bz2"
 checksum=855cbccd5f17ef0dc6d7e2d080a4b20383a079dfb882edd04dba602297030fa8
-patch_args="-Np1"
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/vscode/template b/srcpkgs/vscode/template
index 11b5f3eea411..9d225f9ea1cf 100644
--- a/srcpkgs/vscode/template
+++ b/srcpkgs/vscode/template
@@ -12,7 +12,6 @@ license="MIT"
 homepage="https://code.visualstudio.com/"
 distfiles="https://github.com/Microsoft/vscode/archive/${version}.tar.gz"
 checksum=36d3062740125ea4477ba671c53c27293660a1ae61d712d936af12c7f89ab17e
-patch_args="-Np1"
 
 if [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
 	broken="FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory"
diff --git a/srcpkgs/vtk/template b/srcpkgs/vtk/template
index edaf9dfc827a..4c1710087f83 100644
--- a/srcpkgs/vtk/template
+++ b/srcpkgs/vtk/template
@@ -24,7 +24,6 @@ license="BSD-3-Clause"
 homepage="https://www.vtk.org"
 distfiles="https://www.vtk.org/files/release/${version:0:3}/VTK-${version}.tar.gz"
 checksum=1b39a5e191c282861e7af4101eaa8585969a2de05f5646c9199a161213a622c7
-patch_args=-Np1
 nocross="hdf5 is nocross"
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/wayfire-plugins-extra/template b/srcpkgs/wayfire-plugins-extra/template
index e53f0536c99c..71e8bddcf947 100644
--- a/srcpkgs/wayfire-plugins-extra/template
+++ b/srcpkgs/wayfire-plugins-extra/template
@@ -12,7 +12,6 @@ license="MIT"
 homepage="https://wayfire.org/"
 distfiles="https://github.com/WayfireWM/wayfire-plugins-extra/archive/v${version}.tar.gz"
 checksum=e6377e7f2cd6b0a19fe0a256c819f801ee1d963524ed4e4930b702474bc04287
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/webrtc-audio-processing/template b/srcpkgs/webrtc-audio-processing/template
index e85bb18e1f68..30a420b28f57 100644
--- a/srcpkgs/webrtc-audio-processing/template
+++ b/srcpkgs/webrtc-audio-processing/template
@@ -10,7 +10,6 @@ license="BSD-3-Clause"
 homepage="http://freedesktop.org/software/pulseaudio/webrtc-audio-processing"
 distfiles="${homepage}/${pkgname}-${version}.tar.xz"
 checksum=a0fdd938fd85272d67e81572c5a4d9e200a0c104753cb3c209ded175ce3c5dbf
-patch_args="-p1"
 
 case "$XBPS_TARGET_MACHINE" in
 	# Disable neon for the arm* architectures
diff --git a/srcpkgs/whipper/template b/srcpkgs/whipper/template
index 8826ee845ab9..f25ab359c284 100644
--- a/srcpkgs/whipper/template
+++ b/srcpkgs/whipper/template
@@ -15,7 +15,6 @@ homepage="https://github.com/whipper-team/whipper"
 distfiles="https://github.com/whipper-team/whipper/archive/v${version}.tar.gz"
 checksum=3caceeec7ca73c8b73147884b0f8eeacbe66af52900021b564118b88d23afbd2
 
-patch_args="-Np1"
 
 pre_build() {
 # Temporary workaround for https://github.com/whipper-team/whipper/issues/428
diff --git a/srcpkgs/wireplumber/template b/srcpkgs/wireplumber/template
index cf138e7d9e8b..9c8d44ab18e7 100644
--- a/srcpkgs/wireplumber/template
+++ b/srcpkgs/wireplumber/template
@@ -14,7 +14,6 @@ license="MIT"
 homepage="https://pipewire.pages.freedesktop.org/wireplumber"
 distfiles="https://gitlab.freedesktop.org/pipewire/wireplumber/-/archive/$version/wireplumber-$version.tar.gz"
 checksum=980a10986fea1ca7ff7daad41f467028db494741235697d4a09767236947d047
-patch_args=-Np1
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/wlsunset/template b/srcpkgs/wlsunset/template
index 5ec0aa3d8c45..984ee8cbfc67 100644
--- a/srcpkgs/wlsunset/template
+++ b/srcpkgs/wlsunset/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="https://sr.ht/~kennylevinsen/wlsunset/"
 distfiles="https://git.sr.ht/~kennylevinsen/wlsunset/archive/${version}.tar.gz"
 checksum=88bce695722a09d79545f14d404cc0659f7176bb08d5db5f4f23228b6ba8bb03
-patch_args=-Np1
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/wpa_supplicant/template b/srcpkgs/wpa_supplicant/template
index 064fd6f71f5d..d5f2a277cca8 100644
--- a/srcpkgs/wpa_supplicant/template
+++ b/srcpkgs/wpa_supplicant/template
@@ -9,7 +9,6 @@ license="BSD-3-Clause"
 homepage="http://w1.fi/wpa_supplicant/"
 distfiles="http://w1.fi/releases/${pkgname}-${version}.tar.gz"
 checksum=fcbdee7b4a64bea8177973299c8c824419c413ec2e3a95db63dd6a5dc3541f17
-patch_args="-Np1"
 
 hostmakedepends="pkg-config"
 makedepends="libnl3-devel openssl-devel $(vopt_if dbus dbus-devel) $(vopt_if readline readline-devel)"
diff --git a/srcpkgs/wrk/template b/srcpkgs/wrk/template
index b2deb5e0ffb8..2e85b6a8a510 100644
--- a/srcpkgs/wrk/template
+++ b/srcpkgs/wrk/template
@@ -12,7 +12,6 @@ license="Apache-2.0"
 homepage="https://github.com/wg/wrk"
 distfiles="https://github.com/wg/wrk/archive/${version}.tar.gz"
 checksum=6fa1020494de8c337913fd139d7aa1acb9a020de6f7eb9190753aa4b1e74271e
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*) ;;
diff --git a/srcpkgs/x2goserver/template b/srcpkgs/x2goserver/template
index 2774f84e960e..89fe76a4e8a1 100644
--- a/srcpkgs/x2goserver/template
+++ b/srcpkgs/x2goserver/template
@@ -19,7 +19,6 @@ checksum=6776aaa354f5a44e349f0b3c176d4988c88a618c2edf46c98a37ae89c069dcd0
 system_groups="x2gouser"
 system_accounts="x2gouser"
 x2gouser_homedir="/var/lib/x2go"
-patch_args="-Np1"
 conf_files="
  /etc/x2go/desktopsharing/*
  /etc/x2go/x2gosql/*
diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template
index c6af59bd635a..8f986d22f9f3 100644
--- a/srcpkgs/xbps/template
+++ b/srcpkgs/xbps/template
@@ -11,7 +11,6 @@ homepage="https://github.com/void-linux/xbps"
 changelog="https://github.com/void-linux/xbps/blob/master/NEWS"
 distfiles="https://github.com/void-linux/xbps/archive/${version}.tar.gz"
 checksum=0cbd8d5f23a62047c75974bca21da9f004a94efffd7f37c68562a8dbc869fb2a
-patch_args=-Np1
 
 hostmakedepends="pkgconf"
 checkdepends="kyua"
diff --git a/srcpkgs/xdgmenumaker/template b/srcpkgs/xdgmenumaker/template
index d79c6c0929a4..a71ccd9b3759 100644
--- a/srcpkgs/xdgmenumaker/template
+++ b/srcpkgs/xdgmenumaker/template
@@ -11,7 +11,6 @@ homepage="https://github.com/gapan/xdgmenumaker"
 distfiles="https://github.com/gapan/${pkgname}/archive/${version}.tar.gz"
 checksum=46192e7e4e25b024c0516d83e8fc2c503dd1ac8e5f8c1998d3e9e4b3cbf8919b
 python_version=3
-patch_args="-Np1"
 
 pre_install() {
 	# Install pre-generated man page
diff --git a/srcpkgs/xen/template b/srcpkgs/xen/template
index 092460ea73e5..d916f29ac384 100644
--- a/srcpkgs/xen/template
+++ b/srcpkgs/xen/template
@@ -27,7 +27,6 @@ checksum="cf0d7316ad674491f49b7ef0518cb1d906a2e3bfad639deef0ef2343b119ac0c
  4850691d6f196eaf4d6210f2de01383251b3ea1b928141da9ce28c0b06a90938"
 skip_extraction="${_git_tag_ipxe}.tar.gz"
 nopie=yes
-patch_args='-Np1'
 ignore_elf_dirs="/usr/share/xen/qemu /usr/share/qemu-xen/qemu"
 nostrip_files="
  hppa-firmware.img
diff --git a/srcpkgs/xpdf/template b/srcpkgs/xpdf/template
index 4f3c4f0ac66a..3c66f615f115 100644
--- a/srcpkgs/xpdf/template
+++ b/srcpkgs/xpdf/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="http://www.xpdfreader.com/"
 distfiles="https://dl.xpdfreader.com/xpdf-${version}.tar.gz"
 checksum=0fe4274374c330feaadcebb7bd7700cb91203e153b26aa95952f02bf130be846
-patch_args="-Np1"
 
 post_extract() {
 	sed -i 's:/usr/share/fonts/type1/gsfonts:/usr/share/fonts/Type1:' xpdf/GlobalParams.cc
diff --git a/srcpkgs/xzoom/template b/srcpkgs/xzoom/template
index ea5accf37d78..fd5c19eb6bed 100644
--- a/srcpkgs/xzoom/template
+++ b/srcpkgs/xzoom/template
@@ -10,7 +10,6 @@ license="Custom"
 homepage="http://sunsite.unc.edu/pub/linux/libs/X/"
 distfiles="http://webdiis.unizar.es/pub/unix/X11/${pkgname}-${version}.tgz"
 checksum=b26bfd692d3e1d30e8d524d4018fc3f0fe847983a2778a4a2496784bfc2df44b
-patch_args="-Np1"
 
 do_build() {
 	CC=cc xmkmf
diff --git a/srcpkgs/yaboot/template b/srcpkgs/yaboot/template
index bab154d8c93d..8d2adf264b73 100644
--- a/srcpkgs/yaboot/template
+++ b/srcpkgs/yaboot/template
@@ -15,7 +15,6 @@ distfiles="https://cdimage.debian.org/cdimage/cd-sources/yaboot_${version}.orig.
  http://ftp.be.debian.org/pub/linux/kernel/people/tytso/e2fsprogs/e2fsprogs-${_e2fsprogs_ver}.tar.gz"
 checksum="2fb738d8fd48b94ab2534a4fdf63738ad02c1a30f4b2add91f837baff8fa2aa1
  3f8ac1fedd7c4bec480afcbe4acabdd4ac59ec0446a0fd50c8975cd0aad7b176"
-patch_args="-Np1"
 # Don't want stripped yaboot bits to leak into -dbg
 nostrip_files=yaboot
 
diff --git a/srcpkgs/zeroc-mcpp/template b/srcpkgs/zeroc-mcpp/template
index 497813ba0e04..db9b9cc8e12b 100644
--- a/srcpkgs/zeroc-mcpp/template
+++ b/srcpkgs/zeroc-mcpp/template
@@ -14,7 +14,6 @@ distfiles="https://github.com/zeroc-ice/mcpp/archive/v${version}.tar.gz"
 checksum=1a426cf2d513ffd66634384d5445dcce1aac83be1789a56044013eab8ca8ffff
 nostrip=yes
 conflicts=mcpp-devel
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/zziplib/template b/srcpkgs/zziplib/template
index 2026f3e4a521..ab5af234af62 100644
--- a/srcpkgs/zziplib/template
+++ b/srcpkgs/zziplib/template
@@ -12,7 +12,6 @@ homepage="https://github.com/gdraheim/zziplib"
 changelog="https://raw.githubusercontent.com/gdraheim/zziplib/master/ChangeLog"
 distfiles="https://github.com/gdraheim/zziplib/archive/v${version}.tar.gz"
 checksum=93ef44bf1f1ea24fc66080426a469df82fa631d13ca3b2e4abaeab89538518dc
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DZZIPTEST=OFF"

From 1efc0178667c193926c124ecc68defa7cff8ce95 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 18:28:11 +0700
Subject: [PATCH 7/8] srcpkgs/a*: convert patches to -Np1

```sh

git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,/^--- /dev/null,b
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s/\(.orig\)*	.*//
			}
			/^+++ /{
				s,\(^+++ \)\(./\)*,\1a/,
				s/	.*//
			}
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
---
 .../a2jmidid/patches/musl-no-execinfo.patch   |  4 +-
 srcpkgs/a2jmidid/patches/musl-ppc.patch       |  4 +-
 srcpkgs/a2jmidid/template                     |  1 -
 srcpkgs/a2ps/patches/CVE-2001-1593.diff       |  8 +--
 srcpkgs/a2ps/patches/CVE-2014-0466.diff       |  8 +--
 srcpkgs/a2ps/template                         |  1 -
 ...e-integer-types-in-protocol-messages.patch | 16 +++---
 ...0002-Fix-length-of-MSG_RESIZE-packet.patch |  4 +-
 ...SIZ-to-guarantee-system-independent-.patch |  4 +-
 ...Correct-EOF-handling-on-client-stdin.patch |  4 +-
 srcpkgs/abduco/template                       |  1 -
 srcpkgs/abook/patches/inline.patch            |  4 +-
 srcpkgs/abook/template                        |  1 -
 .../patches/musl-fgetspent_r.patch            |  4 +-
 .../accountsservice/patches/musl-wtmp.patch   |  4 +-
 srcpkgs/accountsservice/template              |  1 -
 srcpkgs/acct/patches/cross.patch              |  4 +-
 srcpkgs/acct/template                         |  1 -
 .../acpi_call-dkms/patches/linux4.12.patch    |  4 +-
 srcpkgs/acpi_call-dkms/patches/linux5.6.patch |  4 +-
 srcpkgs/acpi_call-dkms/template               |  1 -
 .../patches/disable-logging-to-console.patch  |  4 +-
 srcpkgs/acpid/patches/portability.patch       | 16 +++---
 srcpkgs/acpid/template                        |  1 -
 .../actiona/patches/bytearray-constdata.patch |  4 +-
 srcpkgs/actiona/patches/no-updater.patch      |  4 +-
 .../patches/socket-include-order.patch        |  4 +-
 .../actiona/patches/use-lrelease-qt5.patch    |  4 +-
 srcpkgs/actiona/template                      |  1 -
 .../patches/39-Fix-parallel-builds.patch      |  4 +-
 .../patches/40-Fix-few-gcc-warnings.patch     | 24 ++++-----
 .../patches/43-Fix-gcc-warning.patch          |  4 +-
 .../patches/44-Fix-build-with-gcc-5.patch     | 52 +++++++++----------
 .../45-Fix-libAfterBase-Makefile.patch        |  4 +-
 .../patches/50-cross-safe-min-max.patch       |  4 +-
 .../51-configure-pass-cross-alias-down.patch  |  4 +-
 .../patches/52-libafterimage-cross.patch      |  4 +-
 srcpkgs/afterstep/template                    |  1 -
 srcpkgs/agg/patches/agg-2.4-depends.patch     | 16 +++---
 srcpkgs/agg/patches/agg-2.5-pkgconfig.patch   |  4 +-
 srcpkgs/agg/patches/gcc82.patch               |  4 +-
 srcpkgs/agg/template                          |  1 -
 .../allegro4/patches/mesa10-uncompat.patch    |  4 +-
 srcpkgs/allegro4/template                     |  1 -
 srcpkgs/allegro5/patches/time64.patch         |  4 +-
 srcpkgs/allegro5/template                     |  1 -
 srcpkgs/alsa-firmware/patches/musl.patch      | 20 +++----
 srcpkgs/alsa-firmware/template                |  1 -
 .../patches/musl-__sighandler_t.patch         |  4 +-
 srcpkgs/alsa-tools/template                   |  1 -
 .../patches/cmake-build-type-none.patch       | 16 +++---
 srcpkgs/amdvlk/patches/musl.patch             |  4 +-
 srcpkgs/amdvlk/template                       |  1 -
 .../angrysearch/patches/00-fiximport.patch    |  4 +-
 srcpkgs/angrysearch/template                  |  1 -
 srcpkgs/anjuta/patches/fix-unistd_h.patch     |  4 +-
 srcpkgs/anjuta/patches/python.patch           |  4 +-
 srcpkgs/anjuta/patches/vala.patch             |  4 +-
 srcpkgs/anjuta/patches/vala048.patch          |  4 +-
 srcpkgs/anjuta/template                       |  1 -
 srcpkgs/anki/patches/fix_mpv_args.patch       |  8 +--
 srcpkgs/anki/template                         |  1 -
 srcpkgs/antimicrox/patches/time64.patch       |  4 +-
 srcpkgs/antimicrox/template                   |  1 -
 .../10_fix_buffer_overflow_wordole_c.patch    |  4 +-
 srcpkgs/antiword/template                     |  1 -
 srcpkgs/apache/patches/libressl.patch         |  4 +-
 srcpkgs/apache/template                       |  1 -
 srcpkgs/apl/patches/musl.patch                |  4 +-
 srcpkgs/apl/patches/ppc.patch                 |  4 +-
 srcpkgs/apl/template                          |  1 -
 ...hive_entry_h-order-on-client-as-util.patch |  4 +-
 ...h-order-on-libappstream-glib-as-util.patch |  4 +-
 srcpkgs/appstream-glib/template               |  1 -
 srcpkgs/apr/patches/atomic64.patch            |  4 +-
 srcpkgs/apr/template                          |  1 -
 srcpkgs/apvlv/patches/cxxflags_from_env.patch |  4 +-
 srcpkgs/apvlv/template                        |  1 -
 srcpkgs/aqbanking/patches/cmake-prefix.patch  |  4 +-
 srcpkgs/aqbanking/template                    |  1 -
 srcpkgs/aqemu/patches/stdexcept.patch         |  4 +-
 srcpkgs/aqemu/template                        |  1 -
 srcpkgs/ardour/patches/6.0-fix-build.patch    |  4 +-
 srcpkgs/ardour/patches/6.0-fix-runtime.patch  |  4 +-
 .../ardour/patches/use-bundled-qm-dsp.patch   |  8 +--
 srcpkgs/ardour/template                       |  1 -
 srcpkgs/arduino/patches/astyle_fix.patch      |  8 +--
 .../patches/disable-dependency-build.patch    |  4 +-
 srcpkgs/arduino/template                      |  1 -
 srcpkgs/argon2/patches/explicit-bzero.patch   |  4 +-
 srcpkgs/argon2/patches/libdir.patch           |  4 +-
 srcpkgs/argon2/template                       |  1 -
 .../patches/fix-gcc6-attribute_numsup_h.patch |  4 +-
 srcpkgs/argyllcms/template                    |  1 -
 srcpkgs/ark/patches/disable-xar-test.patch    |  8 +--
 srcpkgs/ark/template                          |  1 -
 .../patches/9.700.2--include_dirs.patch       |  4 +-
 srcpkgs/armadillo/template                    |  1 -
 .../artyfx/patches/fix-avtk-cmake-sse.patch   |  4 +-
 srcpkgs/artyfx/patches/fix-lv2-1.18.patch     |  4 +-
 .../artyfx/patches/respect-our-cflags.patch   |  4 +-
 srcpkgs/artyfx/template                       |  1 -
 srcpkgs/asignify/patches/musl.patch           |  4 +-
 srcpkgs/asignify/template                     |  1 -
 srcpkgs/assimp/patches/musl.patch             |  4 +-
 srcpkgs/assimp/template                       |  1 -
 srcpkgs/astroid/patches/cross.patch           |  4 +-
 srcpkgs/astroid/template                      |  1 -
 srcpkgs/astyle/patches/musl.patch             |  4 +-
 srcpkgs/astyle/template                       |  1 -
 srcpkgs/at/patches/isleap.patch               |  4 +-
 srcpkgs/at/template                           |  1 -
 srcpkgs/aterm/patches/fix-pty-musl.patch      |  4 +-
 srcpkgs/aterm/template                        |  1 -
 .../atomicparsley/patches/musl-fpos_t.patch   |  4 +-
 srcpkgs/atomicparsley/template                |  1 -
 srcpkgs/atop/patches/atop-bb-compat.patch     |  4 +-
 srcpkgs/atop/patches/fix-cflags.patch         |  4 +-
 srcpkgs/atop/patches/musl-fix-includes.patch  |  8 +--
 srcpkgs/atop/template                         |  1 -
 srcpkgs/attic/patches/openssl.diff            |  4 +-
 srcpkgs/attic/template                        |  1 -
 srcpkgs/attract/patches/Makefile.patch        |  4 +-
 srcpkgs/attract/patches/fix-musl.patch        |  4 +-
 srcpkgs/attract/template                      |  1 -
 srcpkgs/aubio/patches/disable-tests.patch     |  4 +-
 srcpkgs/aubio/template                        |  1 -
 srcpkgs/audacity/patches/configure.patch      |  4 +-
 srcpkgs/audacity/template                     |  1 -
 .../audiofile/patches/004-CVE-2017-6829.patch |  4 +-
 ...017-6833-CVE-2017-6835-CVE-2017-6837.patch |  4 +-
 .../audiofile/patches/006-CVE-2017-6839.patch |  8 +--
 ...017-6834-CVE-2017-6836-CVE-2017-6838.patch |  4 +-
 .../audiofile/patches/009-CVE-2017-6831.patch |  4 +-
 .../patches/fix-gcc6-shift_left.patch         |  4 +-
 srcpkgs/audiofile/template                    |  1 -
 .../patches/fish-completion-vendor.patch      |  4 +-
 srcpkgs/auto-auto-complete/template           |  1 -
 .../patches/fix-perl-5.22-autoscan.patch      |  4 +-
 srcpkgs/autoconf/template                     |  1 -
 srcpkgs/autoconf213/patches/patch-aa.diff     |  4 +-
 srcpkgs/autoconf213/patches/patch-ab.diff     |  4 +-
 srcpkgs/autoconf213/patches/patch-ac.diff     |  4 +-
 srcpkgs/autoconf213/template                  |  1 -
 srcpkgs/autofs/patches/musl.patch             | 16 +++---
 srcpkgs/autofs/template                       |  1 -
 .../patches/autogen-5.18.16-rpath.patch       | 24 ++++-----
 srcpkgs/autogen/patches/build-aux.patch       |  8 +--
 srcpkgs/autogen/patches/configure.patch       |  4 +-
 srcpkgs/autogen/template                      |  1 -
 srcpkgs/avidemux/patches/musl-execinfo.patch  |  4 +-
 srcpkgs/avidemux/patches/musl-memcpy.patch    |  4 +-
 srcpkgs/avidemux/patches/use-realpath.patch   |  4 +-
 srcpkgs/avidemux/template                     |  1 -
 srcpkgs/avr-binutils/patches/avr-size.patch   |  4 +-
 srcpkgs/avr-binutils/template                 |  1 -
 .../patches/0001-fix-configure-error.patch    |  8 +--
 .../patches/fix-compiler-environment.patch    |  4 +-
 srcpkgs/azpainter/template                    |  1 -
 159 files changed, 308 insertions(+), 364 deletions(-)

diff --git a/srcpkgs/a2jmidid/patches/musl-no-execinfo.patch b/srcpkgs/a2jmidid/patches/musl-no-execinfo.patch
index 3cdbbc1be97c..3ca9e0928df6 100644
--- a/srcpkgs/a2jmidid/patches/musl-no-execinfo.patch
+++ b/srcpkgs/a2jmidid/patches/musl-no-execinfo.patch
@@ -1,5 +1,5 @@
---- sigsegv.c.orig	2016-06-06 15:56:47.355074711 +0200
-+++ sigsegv.c	2016-06-06 15:55:40.740071274 +0200
+--- a/sigsegv.c
++++ a/sigsegv.c
 @@ -28,7 +28,9 @@
  #include <signal.h>
  #include <ucontext.h>
diff --git a/srcpkgs/a2jmidid/patches/musl-ppc.patch b/srcpkgs/a2jmidid/patches/musl-ppc.patch
index c16523512ef9..506a656b8f21 100644
--- a/srcpkgs/a2jmidid/patches/musl-ppc.patch
+++ b/srcpkgs/a2jmidid/patches/musl-ppc.patch
@@ -1,8 +1,8 @@
 This fixes build on ppc32/musl but also fixes incorrect usage of uc_regs
 on glibc (uc_regs is an mcontext_t pointer, you can't index it directly)
 
---- sigsegv.c
-+++ sigsegv.c
+--- a/sigsegv.c
++++ a/sigsegv.c
 @@ -97,7 +97,11 @@ static void signal_segv(int signum, siginfo_t* info, void*ptr) {
      for(i = 0; i < NGREG; i++)
          a2j_error("reg[%02d]       = 0x" REGFORMAT, i,
diff --git a/srcpkgs/a2jmidid/template b/srcpkgs/a2jmidid/template
index eca329aec5f1..b39aa31eef1c 100644
--- a/srcpkgs/a2jmidid/template
+++ b/srcpkgs/a2jmidid/template
@@ -11,4 +11,3 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/linuxaudio/a2jmidid/"
 distfiles="https://github.com/linuxaudio/a2jmidid/archive/${version}.tar.gz"
 checksum=2828d283e0c9a65f0683881f09676c8c35c45c97a8a56cf77b43b4ef0231df06
-patch_args=-Np0
diff --git a/srcpkgs/a2ps/patches/CVE-2001-1593.diff b/srcpkgs/a2ps/patches/CVE-2001-1593.diff
index 85c95e10d898..3eeccc396531 100644
--- a/srcpkgs/a2ps/patches/CVE-2001-1593.diff
+++ b/srcpkgs/a2ps/patches/CVE-2001-1593.diff
@@ -1,7 +1,7 @@
 Index: b/lib/routines.c
 ===================================================================
---- lib/routines.c
-+++ lib/routines.c
+--- a/lib/routines.c
++++ a/lib/routines.c
 @@ -242,3 +242,50 @@
    /* Don't complain if you can't unlink.  Who cares of a tmp file? */
    unlink (filename);
@@ -55,8 +55,8 @@ Index: b/lib/routines.c
 +}
 Index: b/lib/routines.h
 ===================================================================
---- lib/routines.h
-+++ lib/routines.h
+--- a/lib/routines.h
++++ a/lib/routines.h
 @@ -255,7 +255,8 @@
  /* If _STR_ is not defined, give it a tempname in _TMPDIR_ */
  #define tempname_ensure(Str)				\
diff --git a/srcpkgs/a2ps/patches/CVE-2014-0466.diff b/srcpkgs/a2ps/patches/CVE-2014-0466.diff
index ce9f2542b5c3..a2219b5895b1 100644
--- a/srcpkgs/a2ps/patches/CVE-2014-0466.diff
+++ b/srcpkgs/a2ps/patches/CVE-2014-0466.diff
@@ -6,8 +6,8 @@ Bug-Debian: http://bugs.debian.org/742902
 Author: Salvatore Bonaccorso <carnil@debian.org>
 Last-Update: 2014-03-28
 
---- contrib/fixps.in
-+++ contrib/fixps.in
+--- a/contrib/fixps.in
++++ a/contrib/fixps.in
 @@ -389,7 +389,7 @@
    	eval "$command" ;;
        gs)
@@ -17,8 +17,8 @@ Last-Update: 2014-03-28
      esac
    )
  fi
---- contrib/fixps.m4
-+++ contrib/fixps.m4
+--- a/contrib/fixps.m4
++++ a/contrib/fixps.m4
 @@ -307,7 +307,7 @@
    	eval "$command" ;;
        gs)
diff --git a/srcpkgs/a2ps/template b/srcpkgs/a2ps/template
index 5497ec5a574e..9335f38e08e0 100644
--- a/srcpkgs/a2ps/template
+++ b/srcpkgs/a2ps/template
@@ -14,7 +14,6 @@ homepage="http://www.gnu.org/software/a2ps/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4
 conf_files="/etc/a2ps/a2ps.cfg /etc/a2ps/a2ps-site.cfg"
-patch_args=-Np0
 
 LDFLAGS="-lm"
 
diff --git a/srcpkgs/abduco/patches/0001-Use-fixed-size-integer-types-in-protocol-messages.patch b/srcpkgs/abduco/patches/0001-Use-fixed-size-integer-types-in-protocol-messages.patch
index ad4476863e00..2bd5035a7dc6 100644
--- a/srcpkgs/abduco/patches/0001-Use-fixed-size-integer-types-in-protocol-messages.patch
+++ b/srcpkgs/abduco/patches/0001-Use-fixed-size-integer-types-in-protocol-messages.patch
@@ -19,8 +19,8 @@ as client and server (anything else is unsupported anyway!).
 
 diff --git abduco.c abduco.c
 index 3c60a36..1bd6304 100644
---- abduco.c
-+++ abduco.c
+--- a/abduco.c
++++ a/abduco.c
 @@ -15,6 +15,7 @@
   */
  #include <errno.h>
@@ -51,8 +51,8 @@ index 3c60a36..1bd6304 100644
  
 diff --git client.c client.c
 index 744f061..2c2192b 100644
---- client.c
-+++ client.c
+--- a/client.c
++++ a/client.c
 @@ -78,7 +78,7 @@ static int client_mainloop(void) {
  			if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) != -1) {
  				Packet pkt = {
@@ -64,8 +64,8 @@ index 744f061..2c2192b 100644
  				if (client_send_packet(&pkt))
 diff --git debug.c debug.c
 index b5748ab..e904e33 100644
---- debug.c
-+++ debug.c
+--- a/debug.c
++++ a/debug.c
 @@ -29,7 +29,7 @@ static void print_packet(const char *prefix, Packet *pkt) {
  		fwrite(pkt->u.msg, pkt->len, 1, stderr);
  		break;
@@ -86,8 +86,8 @@ index b5748ab..e904e33 100644
  	fprintf(stderr, "\n");
 diff --git server.c server.c
 index 78ccbe2..6f62cfb 100644
---- server.c
-+++ server.c
+--- a/server.c
++++ a/server.c
 @@ -224,7 +224,10 @@ static void server_mainloop(void) {
  				case MSG_REDRAW:
  					if (!(c->flags & CLIENT_READONLY) && (client_packet.type == MSG_REDRAW || c == server.clients)) {
diff --git a/srcpkgs/abduco/patches/0002-Fix-length-of-MSG_RESIZE-packet.patch b/srcpkgs/abduco/patches/0002-Fix-length-of-MSG_RESIZE-packet.patch
index 1e7dde3c4c68..603d0f27006e 100644
--- a/srcpkgs/abduco/patches/0002-Fix-length-of-MSG_RESIZE-packet.patch
+++ b/srcpkgs/abduco/patches/0002-Fix-length-of-MSG_RESIZE-packet.patch
@@ -10,8 +10,8 @@ We no longer send the complete struct winsize.
 
 diff --git client.c client.c
 index 2c2192b..f26bc8f 100644
---- client.c
-+++ client.c
+--- a/client.c
++++ a/client.c
 @@ -79,7 +79,7 @@ static int client_mainloop(void) {
  				Packet pkt = {
  					.type = MSG_RESIZE,
diff --git a/srcpkgs/abduco/patches/0003-Avoid-use-of-BUFSIZ-to-guarantee-system-independent-.patch b/srcpkgs/abduco/patches/0003-Avoid-use-of-BUFSIZ-to-guarantee-system-independent-.patch
index 3bf277098ec2..e80770548568 100644
--- a/srcpkgs/abduco/patches/0003-Avoid-use-of-BUFSIZ-to-guarantee-system-independent-.patch
+++ b/srcpkgs/abduco/patches/0003-Avoid-use-of-BUFSIZ-to-guarantee-system-independent-.patch
@@ -10,8 +10,8 @@ Subject: [PATCH 3/4] Avoid use of BUFSIZ to guarantee system independent
 
 diff --git abduco.c abduco.c
 index 1bd6304..335907d 100644
---- abduco.c
-+++ abduco.c
+--- a/abduco.c
++++ a/abduco.c
 @@ -75,7 +75,7 @@ typedef struct {
  	uint32_t type;
  	uint32_t len;
diff --git a/srcpkgs/abduco/patches/0004-Correct-EOF-handling-on-client-stdin.patch b/srcpkgs/abduco/patches/0004-Correct-EOF-handling-on-client-stdin.patch
index 75ba5c44c30b..79bbf44ee072 100644
--- a/srcpkgs/abduco/patches/0004-Correct-EOF-handling-on-client-stdin.patch
+++ b/srcpkgs/abduco/patches/0004-Correct-EOF-handling-on-client-stdin.patch
@@ -11,8 +11,8 @@ of #15.
 
 diff --git client.c client.c
 index f26bc8f..6cf70c7 100644
---- client.c
-+++ client.c
+--- a/client.c
++++ a/client.c
 @@ -129,6 +129,9 @@ static int client_mainloop(void) {
  				} else if (!(client.flags & CLIENT_READONLY)) {
  					client_send_packet(&pkt);
diff --git a/srcpkgs/abduco/template b/srcpkgs/abduco/template
index 6aa3a516c5e2..21fa18ce85ae 100644
--- a/srcpkgs/abduco/template
+++ b/srcpkgs/abduco/template
@@ -10,7 +10,6 @@ license="ISC"
 homepage="http://www.brain-dump.org/projects/abduco/"
 distfiles="http://www.brain-dump.org/projects/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c90909e13fa95770b5afc3b59f311b3d3d2fdfae23f9569fa4f96a3e192a35f4
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/abook/patches/inline.patch b/srcpkgs/abook/patches/inline.patch
index d437fde6ccb8..fadd36ba2a5c 100644
--- a/srcpkgs/abook/patches/inline.patch
+++ b/srcpkgs/abook/patches/inline.patch
@@ -1,6 +1,6 @@
 diff -ur database.h database.h
---- database.h	2015-10-04 10:38:25.000000000 +0800
-+++ database.h	2018-02-15 21:11:46.311673251 +0800
+--- a/database.h
++++ a/database.h
 @@ -61,7 +61,7 @@
  /*
   * Field operations
diff --git a/srcpkgs/abook/template b/srcpkgs/abook/template
index c22614dedfb8..9538e8d1f4da 100644
--- a/srcpkgs/abook/template
+++ b/srcpkgs/abook/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="http://abook.sourceforge.net/"
 distfiles="http://abook.sourceforge.net/devel/${pkgname}-${version}.tar.gz"
 checksum=f0a90df8694fb34685ecdd45d97db28b88046c15c95e7b0700596028bd8bc0f9
-patch_args=-Np0
 
 post_extract() {
 	autoreconf --install
diff --git a/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch b/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch
index da1b68f93aa0..b8d383d2765f 100644
--- a/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch
+++ b/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch
@@ -1,7 +1,7 @@
 diff --git a/src/daemon.c b/src/daemon.c
 index 312394a..e7b3c58 100644
---- src/daemon.c
-+++ src/daemon.c
+--- a/src/daemon.c
++++ a/src/daemon.c
 @@ -140,6 +140,28 @@ error_get_type (void)
  #define MAX_LOCAL_USERS 50
  #endif
diff --git a/srcpkgs/accountsservice/patches/musl-wtmp.patch b/srcpkgs/accountsservice/patches/musl-wtmp.patch
index ea95f4e40d2b..2252290830a2 100644
--- a/srcpkgs/accountsservice/patches/musl-wtmp.patch
+++ b/srcpkgs/accountsservice/patches/musl-wtmp.patch
@@ -1,7 +1,7 @@
 Reason: fix build on musl
 Tidy up and send upstream soon...
---- meson.build
-+++ meson.build
+--- a/meson.build
++++ a/meson.build
 @@ -82,8 +82,7 @@ if cc.has_header_symbol('utmpx.h', 'WTMPX_FILENAME', prefix: '#define _GNU_SOURC
  elif cc.has_header_symbol('paths.h', '_PATH_WTMPX')
    config_h.set('PATH_WTMP', '_PATH_WTMPX')
diff --git a/srcpkgs/accountsservice/template b/srcpkgs/accountsservice/template
index 84c28f82c875..c00a4077d8f7 100644
--- a/srcpkgs/accountsservice/template
+++ b/srcpkgs/accountsservice/template
@@ -17,7 +17,6 @@ checksum=ff2b2419a7e06bd9cb335ffe391c7409b49a0f0130b890bd54692a3986699c9b
 make_dirs="
  /var/lib/AccountsService/users 755 root root
  /var/lib/AccountsService/icons 755 root root"
-patch_args=-Np0
 
 # Package build options
 build_options="elogind gir"
diff --git a/srcpkgs/acct/patches/cross.patch b/srcpkgs/acct/patches/cross.patch
index 826dd6af77f7..668e2b8c4962 100644
--- a/srcpkgs/acct/patches/cross.patch
+++ b/srcpkgs/acct/patches/cross.patch
@@ -1,5 +1,5 @@
---- configure.orig	2017-07-02 17:54:06.000000000 +0200
-+++ configure	2018-09-05 19:44:40.854646115 +0200
+--- a/configure
++++ a/configure
 @@ -29608,7 +29608,7 @@
  
  fi
diff --git a/srcpkgs/acct/template b/srcpkgs/acct/template
index b3ac5cc05599..860bb6b28ccf 100644
--- a/srcpkgs/acct/template
+++ b/srcpkgs/acct/template
@@ -9,7 +9,6 @@ license="GPL-3.0-or-later"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4c15bf2b58b16378bcc83f70e77d4d40ab0b194acf2ebeefdb507f151faa663f
-patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	post_extract() {
diff --git a/srcpkgs/acpi_call-dkms/patches/linux4.12.patch b/srcpkgs/acpi_call-dkms/patches/linux4.12.patch
index 10fe2e5e3862..bbfbf1817307 100644
--- a/srcpkgs/acpi_call-dkms/patches/linux4.12.patch
+++ b/srcpkgs/acpi_call-dkms/patches/linux4.12.patch
@@ -1,5 +1,5 @@
---- acpi_call.c.orig	2017-01-03 17:17:55.000000000 +0000
-+++ acpi_call.c	2017-07-15 00:28:28.259960007 +0000
+--- a/acpi_call.c
++++ a/acpi_call.c
 @@ -7,7 +7,7 @@
  #include <linux/version.h>
  #include <linux/proc_fs.h>
diff --git a/srcpkgs/acpi_call-dkms/patches/linux5.6.patch b/srcpkgs/acpi_call-dkms/patches/linux5.6.patch
index 507d74326063..47a32fce1270 100644
--- a/srcpkgs/acpi_call-dkms/patches/linux5.6.patch
+++ b/srcpkgs/acpi_call-dkms/patches/linux5.6.patch
@@ -1,5 +1,5 @@
---- acpi_call.c.orig	2017-01-03 18:17:55.000000000 +0100
-+++ acpi_call.c	2020-03-31 10:35:40.493575868 +0200
+--- a/acpi_call.c
++++ a/acpi_call.c
 @@ -347,11 +347,18 @@
      return ret;
  }
diff --git a/srcpkgs/acpi_call-dkms/template b/srcpkgs/acpi_call-dkms/template
index 752770b0da9d..2a24e481538f 100644
--- a/srcpkgs/acpi_call-dkms/template
+++ b/srcpkgs/acpi_call-dkms/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/damadmai/acpi_call"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=c48a0a8768d657a8da7b59d7dbf6276554313fa6a0cb012fa4cf85a77e55f44b
-patch_args=-Np0
 
 dkms_modules="acpi_call ${version}"
 depends="dkms"
diff --git a/srcpkgs/acpid/patches/disable-logging-to-console.patch b/srcpkgs/acpid/patches/disable-logging-to-console.patch
index 32acb35d8367..7a20f1798fb2 100644
--- a/srcpkgs/acpid/patches/disable-logging-to-console.patch
+++ b/srcpkgs/acpid/patches/disable-logging-to-console.patch
@@ -1,5 +1,5 @@
---- acpid.c
-+++ acpid.c
+--- a/acpid.c
++++ a/acpid.c
 @@ -389,7 +389,7 @@ open_log(void)
  	int log_opts;
  
diff --git a/srcpkgs/acpid/patches/portability.patch b/srcpkgs/acpid/patches/portability.patch
index 03bdcbaee33d..70eb4eed2084 100644
--- a/srcpkgs/acpid/patches/portability.patch
+++ b/srcpkgs/acpid/patches/portability.patch
@@ -3,8 +3,8 @@ Portability fixes:
 - Do not use isfdtype()... rather use fstat(2).
 - Define TEMP_FAILURE_RETRY if needed.
 
---- acpid.h	2014-02-26 01:36:58.788146100 +0100
-+++ acpid.h	2014-12-28 06:58:18.252702509 +0100
+--- a/acpid.h
++++ a/acpid.h
 @@ -39,6 +39,15 @@
  
  #define PACKAGE 		"acpid"
@@ -21,8 +21,8 @@ Portability fixes:
  /*
   * acpid.c
   */
---- kacpimon/libnetlink.c	2013-02-24 14:20:06.624844873 +0100
-+++ kacpimon/libnetlink.c	2014-12-28 06:59:50.283706615 +0100
+--- a/kacpimon/libnetlink.c
++++ a/kacpimon/libnetlink.c
 @@ -24,6 +24,7 @@
  #include <time.h>
  #include <sys/uio.h>
@@ -31,8 +31,8 @@ Portability fixes:
  #include "libnetlink.h"
  
  void rtnl_close(struct rtnl_handle *rth)
---- libnetlink.c	2012-07-15 00:29:38.168312376 +0200
-+++ libnetlink.c	2014-12-28 06:59:17.379705147 +0100
+--- a/libnetlink.c
++++ a/libnetlink.c
 @@ -24,6 +24,7 @@
  #include <time.h>
  #include <sys/uio.h>
@@ -41,8 +41,8 @@ Portability fixes:
  #include "libnetlink.h"
  
  void rtnl_close(struct rtnl_handle *rth)
---- sock.c	2013-08-15 01:30:44.655673004 +0200
-+++ sock.c	2014-12-28 07:11:31.198737890 +0100
+--- a/sock.c
++++ a/sock.c
 @@ -53,7 +54,12 @@ int non_root_clients;
  int
  is_socket(int fd)
diff --git a/srcpkgs/acpid/template b/srcpkgs/acpid/template
index df44a949213a..8312d0e4e15a 100644
--- a/srcpkgs/acpid/template
+++ b/srcpkgs/acpid/template
@@ -10,7 +10,6 @@ homepage="https://sourceforge.net/projects/acpid2/"
 distfiles="${SOURCEFORGE_SITE}/acpid2/acpid-${version}.tar.xz"
 checksum=f2d2d30b3edc3234bd82f6f7186699a6aa3c85c8d20bc4e30e9b3c68a1ed157e
 conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"
-patch_args=-Np0
 
 post_install() {
 	vinstall ${FILESDIR}/handler.sh 755 etc/acpi
diff --git a/srcpkgs/actiona/patches/bytearray-constdata.patch b/srcpkgs/actiona/patches/bytearray-constdata.patch
index 0432bea0ce55..59b0a5452d8b 100644
--- a/srcpkgs/actiona/patches/bytearray-constdata.patch
+++ b/srcpkgs/actiona/patches/bytearray-constdata.patch
@@ -1,5 +1,5 @@
---- actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp	2018-07-17 20:29:12.000000000 +0200
-+++ actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp	2018-07-28 13:26:14.340872982 +0200
+--- a/actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp
++++ a/actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp
 @@ -98,7 +98,7 @@
      }
  #else
diff --git a/srcpkgs/actiona/patches/no-updater.patch b/srcpkgs/actiona/patches/no-updater.patch
index 6cb9a6956577..4bf6efa3bd88 100644
--- a/srcpkgs/actiona/patches/no-updater.patch
+++ b/srcpkgs/actiona/patches/no-updater.patch
@@ -1,5 +1,5 @@
---- actiona.pro	2015-06-22 17:22:46.000000000 +0200
-+++ actiona.pro	2015-10-08 12:08:09.582973444 +0200
+--- a/actiona.pro
++++ a/actiona.pro
 @@ -1,5 +1,6 @@
  TEMPLATE = subdirs
  CONFIG = ordered
diff --git a/srcpkgs/actiona/patches/socket-include-order.patch b/srcpkgs/actiona/patches/socket-include-order.patch
index bb8aac11a402..0d913dd3850a 100644
--- a/srcpkgs/actiona/patches/socket-include-order.patch
+++ b/srcpkgs/actiona/patches/socket-include-order.patch
@@ -1,5 +1,5 @@
---- actions/actionpacksystem/systeminfo/linux/qnetworkinfo_linux.cpp	2018-07-17 20:29:12.000000000 +0200
-+++ actions/actionpacksystem/systeminfo/linux/qnetworkinfo_linux.cpp	2018-07-27 20:12:49.889568736 +0200
+--- a/actions/actionpacksystem/systeminfo/linux/qnetworkinfo_linux.cpp
++++ a/actions/actionpacksystem/systeminfo/linux/qnetworkinfo_linux.cpp
 @@ -62,11 +62,11 @@
  #endif // QT_NO_UDEV
  
diff --git a/srcpkgs/actiona/patches/use-lrelease-qt5.patch b/srcpkgs/actiona/patches/use-lrelease-qt5.patch
index 5123691334d6..d1fe85f6dfd9 100644
--- a/srcpkgs/actiona/patches/use-lrelease-qt5.patch
+++ b/srcpkgs/actiona/patches/use-lrelease-qt5.patch
@@ -1,5 +1,5 @@
---- actiona.pro	2020-05-07 12:41:07.738401940 +0200
-+++ actiona.pro	2020-05-07 12:47:22.744386988 +0200
+--- a/actiona.pro
++++ a/actiona.pro
 @@ -15,7 +15,7 @@
  
  isEmpty(QMAKE_LRELEASE) {
diff --git a/srcpkgs/actiona/template b/srcpkgs/actiona/template
index 9b66b6e673a2..6ce3ccdc6b41 100644
--- a/srcpkgs/actiona/template
+++ b/srcpkgs/actiona/template
@@ -14,7 +14,6 @@ license="GPL-3.0-or-later"
 homepage="https://actiona.tools/"
 distfiles="https://github.com/Jmgr/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=447065e380f8f37db4c8af01df8e1b9d7189cd256205f758845b71d8de6f37ea
-patch_args=-Np0
 
 post_build() {
 	lrelease-qt5 locale/*.ts
diff --git a/srcpkgs/afterstep/patches/39-Fix-parallel-builds.patch b/srcpkgs/afterstep/patches/39-Fix-parallel-builds.patch
index 5a7ea3bd9c2d..23a4eddfaec0 100644
--- a/srcpkgs/afterstep/patches/39-Fix-parallel-builds.patch
+++ b/srcpkgs/afterstep/patches/39-Fix-parallel-builds.patch
@@ -15,8 +15,8 @@ https://buildd.debian.org/status/fetch.php?pkg=afterstep&arch=amd64&ver=2.2.12-1
 
 diff --git a/libAfterConf/Makefile.in b/libAfterConf/Makefile.in
 index fa049a3..686a958 100644
---- libAfterConf/Makefile.in
-+++ libAfterConf/Makefile.in
+--- a/libAfterConf/Makefile.in
++++ a/libAfterConf/Makefile.in
 @@ -52,7 +52,7 @@ make_standard_categories:	make_standard_categories.o
  PrintDesktopEntries.o:	DesktopEntry.c
  		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) -DPRINT_DESKTOP_ENTRIES $(INCLUDES) $(EXTRA_INCLUDES) -c DesktopEntry.c -o PrintDesktopEntries.o
diff --git a/srcpkgs/afterstep/patches/40-Fix-few-gcc-warnings.patch b/srcpkgs/afterstep/patches/40-Fix-few-gcc-warnings.patch
index a7e1e3cde21b..c33795073496 100644
--- a/srcpkgs/afterstep/patches/40-Fix-few-gcc-warnings.patch
+++ b/srcpkgs/afterstep/patches/40-Fix-few-gcc-warnings.patch
@@ -13,8 +13,8 @@ Subject: 40 Fix few gcc warnings
 
 diff --git a/libAfterImage/import.c b/libAfterImage/import.c
 index f2c7ad1..c80b9c3 100644
---- libAfterImage/import.c
-+++ libAfterImage/import.c
+--- a/libAfterImage/import.c
++++ a/libAfterImage/import.c
 @@ -585,7 +585,7 @@ get_thumbnail_asimage( ASImageManager* imageman, const char *file, int thumb_wid
  
  	if (imageman && file)
@@ -53,8 +53,8 @@ index f2c7ad1..c80b9c3 100644
  	
 diff --git a/libAfterImage/ungif.c b/libAfterImage/ungif.c
 index cb9c628..faa1da7 100644
---- libAfterImage/ungif.c
-+++ libAfterImage/ungif.c
+--- a/libAfterImage/ungif.c
++++ a/libAfterImage/ungif.c
 @@ -153,7 +153,8 @@ get_gif_image_desc( GifFileType *gif, SavedImage *im )
  		{
  			im->ImageDesc.ColorMap = MakeMapObject(gif->Image.ColorMap->ColorCount, NULL);
@@ -67,8 +67,8 @@ index cb9c628..faa1da7 100644
   		}
 diff --git a/src/ASDocGen/ASDocGen.c b/src/ASDocGen/ASDocGen.c
 index f8d38e9..bed04b8 100644
---- src/ASDocGen/ASDocGen.c
-+++ src/ASDocGen/ASDocGen.c
+--- a/src/ASDocGen/ASDocGen.c
++++ a/src/ASDocGen/ASDocGen.c
 @@ -880,7 +880,7 @@ gen_glossary( const char *dest_dir, const char *file, ASDocType doc_type )
  	LOCAL_DEBUG_OUT( "Glossary has %ld items", Glossary->items_num);
  	if( (doc_type == DocType_HTML	|| doc_type == DocType_PHP ) && Glossary->items_num > 0 )
@@ -107,8 +107,8 @@ index f8d38e9..bed04b8 100644
  		
 diff --git a/src/ASMount/main.c b/src/ASMount/main.c
 index 9a42b49..ae22ad5 100644
---- src/ASMount/main.c
-+++ src/ASMount/main.c
+--- a/src/ASMount/main.c
++++ a/src/ASMount/main.c
 @@ -1238,7 +1238,9 @@ void init_ASMount(ASFlagType flags, const char *cmd)
  	reloadButtons();
  	AppState.volumes = create_asbidirlist (ASVolume_destroy);
@@ -131,8 +131,8 @@ index 9a42b49..ae22ad5 100644
  #else	
 diff --git a/src/afterstep/cover.c b/src/afterstep/cover.c
 index 5455c48..11a76a4 100644
---- src/afterstep/cover.c
-+++ src/afterstep/cover.c
+--- a/src/afterstep/cover.c
++++ a/src/afterstep/cover.c
 @@ -101,7 +101,7 @@ void do_anim_shape_blocks (void *vdata)
  #ifdef SHAPE
  	struct ASDeskAniBlocks *data = (struct ASDeskAniBlocks *)vdata;
@@ -154,8 +154,8 @@ index 5455c48..11a76a4 100644
  			continue;
 diff --git a/src/afterstep/dbus.c b/src/afterstep/dbus.c
 index d7594d9..d311094 100644
---- src/afterstep/dbus.c
-+++ src/afterstep/dbus.c
+--- a/src/afterstep/dbus.c
++++ a/src/afterstep/dbus.c
 @@ -240,11 +240,13 @@ Bool get_gnome_autosave ()
  {
  	Bool autosave = False;
diff --git a/srcpkgs/afterstep/patches/43-Fix-gcc-warning.patch b/srcpkgs/afterstep/patches/43-Fix-gcc-warning.patch
index 59f82b5c0ec9..0dbe6a770b27 100644
--- a/srcpkgs/afterstep/patches/43-Fix-gcc-warning.patch
+++ b/srcpkgs/afterstep/patches/43-Fix-gcc-warning.patch
@@ -9,8 +9,8 @@ Fix "undefined behaviour" warning
 
 diff --git a/libAfterConf/Database.c b/libAfterConf/Database.c
 index c10df0d..1cfc7f9 100644
---- libAfterConf/Database.c
-+++ libAfterConf/Database.c
+--- a/libAfterConf/Database.c
++++ a/libAfterConf/Database.c
 @@ -578,7 +578,8 @@ void delete_name_list (name_list ** head)
  		style_delete (*head, head);
  }
diff --git a/srcpkgs/afterstep/patches/44-Fix-build-with-gcc-5.patch b/srcpkgs/afterstep/patches/44-Fix-build-with-gcc-5.patch
index be01406c1982..233d2e8ae93d 100644
--- a/srcpkgs/afterstep/patches/44-Fix-build-with-gcc-5.patch
+++ b/srcpkgs/afterstep/patches/44-Fix-build-with-gcc-5.patch
@@ -25,8 +25,8 @@ Bug-Debian: https://bugs.debian.org/777768
 
 diff --git a/libAfterBase/asvector.h b/libAfterBase/asvector.h
 index 242bbb8..ec83231 100644
---- libAfterBase/asvector.h
-+++ libAfterBase/asvector.h
+--- a/libAfterBase/asvector.h
++++ a/libAfterBase/asvector.h
 @@ -38,7 +38,7 @@ ASVector *append_vector( ASVector *v, void * data, size_t size );
  /* returns index on success, -1 on failure */
  int vector_insert_elem( ASVector *v, void *data, size_t size, void *sibling, int before );
@@ -38,8 +38,8 @@ index 242bbb8..ec83231 100644
  int vector_remove_elem( ASVector *v, void *data );
 diff --git a/libAfterBase/output.h b/libAfterBase/output.h
 index fd186a7..ef21919 100644
---- libAfterBase/output.h
-+++ libAfterBase/output.h
+--- a/libAfterBase/output.h
++++ a/libAfterBase/output.h
 @@ -56,7 +56,7 @@ Bool show_debug( const char *file, const char *func, int line, const char *msg_f
  
  
@@ -51,8 +51,8 @@ index fd186a7..ef21919 100644
   * your compiler . Thanks!!! */
 diff --git a/libAfterBase/parse.h b/libAfterBase/parse.h
 index 193fbba..e4db499 100644
---- libAfterBase/parse.h
-+++ libAfterBase/parse.h
+--- a/libAfterBase/parse.h
++++ a/libAfterBase/parse.h
 @@ -73,7 +73,7 @@ format_geometry ( int x, int y, unsigned int width, unsigned int height, int fla
  
  double parse_math(const char* str, char** endptr, double size);
@@ -64,8 +64,8 @@ index 193fbba..e4db499 100644
  char *hex_to_buffer(void *data, size_t bytes, char* buffer);
 diff --git a/libAfterConf/Feel.c b/libAfterConf/Feel.c
 index 0f2224b..787964d 100644
---- libAfterConf/Feel.c
-+++ libAfterConf/Feel.c
+--- a/libAfterConf/Feel.c
++++ a/libAfterConf/Feel.c
 @@ -29,6 +29,8 @@
  
  #include "afterconf.h"
@@ -77,8 +77,8 @@ index 0f2224b..787964d 100644
  	{ASA_Virtual, WINDOWBOX_Virtual_ID, 0}
 diff --git a/libAfterStep/colorscheme.c b/libAfterStep/colorscheme.c
 index 6cdeb56..5b93107 100644
---- libAfterStep/colorscheme.c
-+++ libAfterStep/colorscheme.c
+--- a/libAfterStep/colorscheme.c
++++ a/libAfterStep/colorscheme.c
 @@ -162,7 +162,7 @@ static inline ARGB32 MAKE_ARGB32_SHADE100 (CARD32 a, int s100)
  	return MAKE_ARGB32_GREY8 (a, s8);
  }
@@ -90,8 +90,8 @@ index 6cdeb56..5b93107 100644
  {
 diff --git a/libAfterStep/event.c b/libAfterStep/event.c
 index a27759b..8c7a449 100644
---- libAfterStep/event.c
-+++ libAfterStep/event.c
+--- a/libAfterStep/event.c
++++ a/libAfterStep/event.c
 @@ -202,7 +202,7 @@ void sync_event_queue (Bool forget)
  /****************************************************************************
   * Records the time of the last processed event. Used in XSetInputFocus
@@ -103,8 +103,8 @@ index a27759b..8c7a449 100644
  		register Time *ptime =
 diff --git a/libAfterStep/functions.h b/libAfterStep/functions.h
 index fb565f1..a50f4e3 100644
---- libAfterStep/functions.h
-+++ libAfterStep/functions.h
+--- a/libAfterStep/functions.h
++++ a/libAfterStep/functions.h
 @@ -314,7 +314,7 @@ FunctionCode change_func_code (const char *func_name, FunctionCode new_code);
  void init_func_data (FunctionData * data);
  void copy_func_data (FunctionData * dst, FunctionData * src);
@@ -116,8 +116,8 @@ index fb565f1..a50f4e3 100644
  void destroy_func_data( FunctionData **pdata );
 diff --git a/libAfterStep/mylook.h b/libAfterStep/mylook.h
 index 7bff0b8..a002aa8 100644
---- libAfterStep/mylook.h
-+++ libAfterStep/mylook.h
+--- a/libAfterStep/mylook.h
++++ a/libAfterStep/mylook.h
 @@ -397,7 +397,7 @@ void myback_delete( MyBackground **myback, ASImageManager *imman );
  MyDesktopConfig *create_mydeskconfig( int desk, char *data );
  void init_deskconfigs_list( MyLook *look );
@@ -142,8 +142,8 @@ index 7bff0b8..a002aa8 100644
  
 diff --git a/libAfterStep/session.h b/libAfterStep/session.h
 index 536e225..73945d8 100644
---- libAfterStep/session.h
-+++ libAfterStep/session.h
+--- a/libAfterStep/session.h
++++ a/libAfterStep/session.h
 @@ -49,7 +49,7 @@ void 	   destroy_assession (ASSession * session);
  void       update_default_session ( ASSession *session, int func);
  
@@ -155,8 +155,8 @@ index 536e225..73945d8 100644
  void 	   change_desk_session (ASSession * session, int desk, const char *new_val, int function);
 diff --git a/src/WinList2/WinList.c b/src/WinList2/WinList.c
 index 6db35ac..6c98f38 100644
---- src/WinList2/WinList.c
-+++ src/WinList2/WinList.c
+--- a/src/WinList2/WinList.c
++++ a/src/WinList2/WinList.c
 @@ -976,7 +976,7 @@ moveresize_main_canvas( int width, int height )
  void
  postponed_rearrange_winlist( void *vdata )
@@ -168,8 +168,8 @@ index 6db35ac..6c98f38 100644
  
 diff --git a/src/afterstep/asinternals.h b/src/afterstep/asinternals.h
 index 81b3249..9f75fd8 100644
---- src/afterstep/asinternals.h
-+++ src/afterstep/asinternals.h
+--- a/src/afterstep/asinternals.h
++++ a/src/afterstep/asinternals.h
 @@ -575,6 +575,7 @@ void asdbus_shutdown();
  void asdbus_process_messages ();
  
@@ -202,8 +202,8 @@ index 81b3249..9f75fd8 100644
  				int pointer_mode, int keyboard_mode, Window confine_to, Cursor cursor);
 diff --git a/src/afterstep/events.c b/src/afterstep/events.c
 index 5588ffb..19e5441 100644
---- src/afterstep/events.c
-+++ src/afterstep/events.c
+--- a/src/afterstep/events.c
++++ a/src/afterstep/events.c
 @@ -46,6 +46,7 @@
  #include "../../libAfterStep/moveresize.h"
  
@@ -214,8 +214,8 @@ index 5588ffb..19e5441 100644
  # include <sys/shm.h>
 diff --git a/src/afterstep/menuitem.c b/src/afterstep/menuitem.c
 index 1adcb65..8a35186 100644
---- src/afterstep/menuitem.c
-+++ src/afterstep/menuitem.c
+--- a/src/afterstep/menuitem.c
++++ a/src/afterstep/menuitem.c
 @@ -55,6 +55,8 @@
  
  #include "dirtree.h"
diff --git a/srcpkgs/afterstep/patches/45-Fix-libAfterBase-Makefile.patch b/srcpkgs/afterstep/patches/45-Fix-libAfterBase-Makefile.patch
index 110ec8ae82bd..5a0781a84397 100644
--- a/srcpkgs/afterstep/patches/45-Fix-libAfterBase-Makefile.patch
+++ b/srcpkgs/afterstep/patches/45-Fix-libAfterBase-Makefile.patch
@@ -11,8 +11,8 @@ by libAfterImage.
 
 diff --git a/libAfterBase/Makefile.in b/libAfterBase/Makefile.in
 index 41f53c6..3dc63b7 100644
---- libAfterBase/Makefile.in
-+++ libAfterBase/Makefile.in
+--- a/libAfterBase/Makefile.in
++++ a/libAfterBase/Makefile.in
 @@ -137,7 +137,6 @@ install.script:
  install.dyn:
  		@( echo "$(INSTALL_LIB) $(LIB_SHARED).$(LIBVER) $(LIBDIR)"; \
diff --git a/srcpkgs/afterstep/patches/50-cross-safe-min-max.patch b/srcpkgs/afterstep/patches/50-cross-safe-min-max.patch
index 71872c7763b4..e75896ae4ea1 100644
--- a/srcpkgs/afterstep/patches/50-cross-safe-min-max.patch
+++ b/srcpkgs/afterstep/patches/50-cross-safe-min-max.patch
@@ -1,7 +1,7 @@
 diff --git libAfterBase/configure.in libAfterBase/configure.in
 index 4bc2232..f250692 100644
---- libAfterBase/configure.in
-+++ libAfterBase/configure.in
+--- a/libAfterBase/configure.in
++++ a/libAfterBase/configure.in
 @@ -228,12 +228,7 @@ if test "x$enable_xlocale" = "xyes"; then
  fi
  
diff --git a/srcpkgs/afterstep/patches/51-configure-pass-cross-alias-down.patch b/srcpkgs/afterstep/patches/51-configure-pass-cross-alias-down.patch
index cc3f0f28db33..706878625b45 100644
--- a/srcpkgs/afterstep/patches/51-configure-pass-cross-alias-down.patch
+++ b/srcpkgs/afterstep/patches/51-configure-pass-cross-alias-down.patch
@@ -1,7 +1,7 @@
 diff --git configure configure
 index bc9a30e..95e7b3a 100755
---- configure
-+++ configure
+--- a/configure
++++ a/configure
 @@ -6254,6 +6254,8 @@ FROM_AFTERSTEP_CONFIGURE=yes
  export FROM_AFTERSTEP_CONFIGURE
  
diff --git a/srcpkgs/afterstep/patches/52-libafterimage-cross.patch b/srcpkgs/afterstep/patches/52-libafterimage-cross.patch
index 316d32216100..f3d2fdb59dd4 100644
--- a/srcpkgs/afterstep/patches/52-libafterimage-cross.patch
+++ b/srcpkgs/afterstep/patches/52-libafterimage-cross.patch
@@ -1,7 +1,7 @@
 diff --git libAfterImage/configure.in libAfterImage/configure.in
 index ca49a50..780e0ff 100644
---- libAfterImage/configure.in
-+++ libAfterImage/configure.in
+--- a/libAfterImage/configure.in
++++ a/libAfterImage/configure.in
 @@ -590,21 +590,21 @@ else
  					  )
  	  if test "x$have_ft2build" = "xno" ; then
diff --git a/srcpkgs/afterstep/template b/srcpkgs/afterstep/template
index f5b99af26493..ba9c15546dea 100644
--- a/srcpkgs/afterstep/template
+++ b/srcpkgs/afterstep/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="http://www.afterstep.org/"
 distfiles="https://github.com/sashavasko/${pkgname}-devel/archive/${version}.tar.gz"
 checksum=7a82d06a9ce432ef3b0856ff39f6da416aa8cbc249dbb2ff3c1cdcb02e2ca46d
-patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi libAfterBase
diff --git a/srcpkgs/agg/patches/agg-2.4-depends.patch b/srcpkgs/agg/patches/agg-2.4-depends.patch
index 8db32441ab36..a1bac3e1f9e6 100644
--- a/srcpkgs/agg/patches/agg-2.4-depends.patch
+++ b/srcpkgs/agg/patches/agg-2.4-depends.patch
@@ -1,5 +1,5 @@
---- font_freetype/Makefile.am	2005-10-18 11:45:40.000000000 +0100
-+++ font_freetype/Makefile.am	2006-07-10 15:11:55.000000000 +0100
+--- a/font_freetype/Makefile.am
++++ a/font_freetype/Makefile.am
 @@ -4,8 +4,9 @@
  agginclude_HEADERS = agg_font_freetype.h
  lib_LTLIBRARIES = libaggfontfreetype.la
@@ -11,8 +11,8 @@
 +libaggfontfreetype_la_LIBADD = ../src/libagg.la @FREETYPE_LIBS@
  endif
  
---- src/platform/sdl/Makefile.am	2005-10-17 23:49:35.000000000 +0100
-+++ src/platform/sdl/Makefile.am	2006-07-10 15:11:55.000000000 +0100
+--- a/src/platform/sdl/Makefile.am
++++ a/src/platform/sdl/Makefile.am
 @@ -5,6 +5,6 @@
  libaggplatformsdl_la_LDFLAGS = -version-info @AGG_LIB_VERSION@
  libaggplatformsdl_la_SOURCES = agg_platform_support.cpp
@@ -21,8 +21,8 @@
 +libaggplatformsdl_la_LIBADD = ../../libagg.la @SDL_LIBS@
  endif
  
---- configure.in	2006-10-09 05:06:36.000000000 +0100
-+++ configure.in	2007-01-07 14:07:39.000000000 +0000
+--- a/configure.in
++++ a/configure.in
 @@ -122,7 +122,8 @@
  fi
  AM_CONDITIONAL(ENABLE_X11,[test x$no_x = x -a xno != x$enable_platform -a x$win32_host != xyes])
@@ -33,8 +33,8 @@
  dnl ###############################################
  
  dnl Settung up library version
---- src/platform/X11/Makefile.am	2006-12-11 00:59:45.000000000 +0000
-+++ src/platform/X11/Makefile.am	2007-01-07 14:07:39.000000000 +0000
+--- a/src/platform/X11/Makefile.am
++++ a/src/platform/X11/Makefile.am
 @@ -1,8 +1,8 @@
  if ENABLE_X11
  lib_LTLIBRARIES = libaggplatformX11.la
diff --git a/srcpkgs/agg/patches/agg-2.5-pkgconfig.patch b/srcpkgs/agg/patches/agg-2.5-pkgconfig.patch
index 431bed6c7a12..bb8fe984399a 100644
--- a/srcpkgs/agg/patches/agg-2.5-pkgconfig.patch
+++ b/srcpkgs/agg/patches/agg-2.5-pkgconfig.patch
@@ -1,5 +1,5 @@
---- libagg.pc.in.orig	2007-01-07 13:58:28.000000000 +0000
-+++ libagg.pc.in	2007-01-07 14:02:40.000000000 +0000
+--- a/libagg.pc.in
++++ a/libagg.pc.in
 @@ -6,5 +6,6 @@
  Name: libagg
  Description: Anti Grain Geometry - A High Quality Rendering Engine for C++
diff --git a/srcpkgs/agg/patches/gcc82.patch b/srcpkgs/agg/patches/gcc82.patch
index eb535ff03181..7e907e45858a 100644
--- a/srcpkgs/agg/patches/gcc82.patch
+++ b/srcpkgs/agg/patches/gcc82.patch
@@ -1,5 +1,5 @@
---- include/agg_renderer_outline_aa.h	2006-10-09 06:07:08.000000000 +0200
-+++ include/agg_renderer_outline_aa.h	2018-08-22 11:06:28.038930861 +0200
+--- a/include/agg_renderer_outline_aa.h
++++ a/include/agg_renderer_outline_aa.h
 @@ -1375,7 +1375,7 @@
          //---------------------------------------------------------------------
          void profile(const line_profile_aa& prof) { m_profile = &prof; }
diff --git a/srcpkgs/agg/template b/srcpkgs/agg/template
index 5cdbcaa17b47..a313e19cb1f9 100644
--- a/srcpkgs/agg/template
+++ b/srcpkgs/agg/template
@@ -13,7 +13,6 @@ homepage="http://www.antigrain.com/"
 license="GPL-2.0-or-later"
 distfiles="http://www.antigrain.com/agg-${version}.tar.gz"
 checksum=ab1edc54cc32ba51a62ff120d501eecd55fceeedf869b9354e7e13812289911f
-patch_args=-Np0
 
 pre_configure() {
 	sed -e '/AM_C_PROTOTYPES/d' -i configure.in
diff --git a/srcpkgs/allegro4/patches/mesa10-uncompat.patch b/srcpkgs/allegro4/patches/mesa10-uncompat.patch
index ae1aa4440ef5..cc9951b3f0f6 100644
--- a/srcpkgs/allegro4/patches/mesa10-uncompat.patch
+++ b/srcpkgs/allegro4/patches/mesa10-uncompat.patch
@@ -7,8 +7,8 @@ once mesa-10 contains the above commit.
 
 	-- xtraeme
 
---- addons/allegrogl/include/allegrogl/GLext/glx_ext_api.h.orig	2014-01-05 09:08:26.796542194 +0100
-+++ addons/allegrogl/include/allegrogl/GLext/glx_ext_api.h	2014-01-05 09:08:46.115682136 +0100
+--- a/addons/allegrogl/include/allegrogl/GLext/glx_ext_api.h
++++ a/addons/allegrogl/include/allegrogl/GLext/glx_ext_api.h
 @@ -59,8 +59,8 @@ AGL_API(void, DestroyGLXVideoSourceSGIX,
  /* GLX_EXT_import_context */
  AGL_API(Display *, GetCurrentDisplayEXT, (void))
diff --git a/srcpkgs/allegro4/template b/srcpkgs/allegro4/template
index 99b570dcb675..f8901c34cecc 100644
--- a/srcpkgs/allegro4/template
+++ b/srcpkgs/allegro4/template
@@ -17,7 +17,6 @@ homepage="http://alleg.sourceforge.net/"
 homepage="https://liballeg.org"
 distfiles="https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz"
 checksum=ec19dbc9a021244582b4819b3583ee594b50141f9fcf6944a4ed8069cbf8d4d4
-patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/allegro5/patches/time64.patch b/srcpkgs/allegro5/patches/time64.patch
index 93b0491c6132..769550307d3d 100644
--- a/srcpkgs/allegro5/patches/time64.patch
+++ b/srcpkgs/allegro5/patches/time64.patch
@@ -1,5 +1,5 @@
---- src/linux/lhaptic.c	2015-06-01 21:58:12.000000000 +0200
-+++ src/linux/lhaptic.c	2020-12-06 09:50:58.475010832 +0100
+--- a/src/linux/lhaptic.c
++++ a/src/linux/lhaptic.c
 @@ -57,6 +57,7 @@
  
  
diff --git a/srcpkgs/allegro5/template b/srcpkgs/allegro5/template
index d96d1b779231..f55a7eb6c144 100644
--- a/srcpkgs/allegro5/template
+++ b/srcpkgs/allegro5/template
@@ -17,7 +17,6 @@ license="Allegro License (MIT alike)"
 homepage="https://liballeg.org/"
 distfiles="https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz"
 checksum=5de8189ec051e1865f359654f86ec68e2a12a94edd00ad06d1106caa5ff27763
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/alsa-firmware/patches/musl.patch b/srcpkgs/alsa-firmware/patches/musl.patch
index f2c1ac2c5384..e237c8e05b5b 100644
--- a/srcpkgs/alsa-firmware/patches/musl.patch
+++ b/srcpkgs/alsa-firmware/patches/musl.patch
@@ -1,5 +1,5 @@
---- hdsploader/multiface_firmware_rev11.dat.orig
-+++ hdsploader/multiface_firmware_rev11.dat
+--- a/hdsploader/multiface_firmware_rev11.dat.orig
++++ a/hdsploader/multiface_firmware_rev11.dat
 @@ -1,5 +1,5 @@
  /* stored in little-endian */
 -static u_int32_t multiface_firmware_rev11[24413] = {
@@ -7,8 +7,8 @@
  0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
  0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
  0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
---- hdsploader/digiface_firmware_rev11.dat.orig
-+++ hdsploader/digiface_firmware_rev11.dat
+--- a/hdsploader/digiface_firmware_rev11.dat.orig
++++ a/hdsploader/digiface_firmware_rev11.dat
 @@ -1,5 +1,5 @@
  /* stored in little-endian */
 -static u_int32_t digiface_firmware_rev11[24413] = {
@@ -16,8 +16,8 @@
  0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
  0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
  0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
---- hdsploader/digiface_firmware.dat.orig
-+++ hdsploader/digiface_firmware.dat
+--- a/hdsploader/digiface_firmware.dat.orig
++++ a/hdsploader/digiface_firmware.dat
 @@ -1,5 +1,5 @@
  /* stored in little-endian */
 -static u_int32_t digiface_firmware[24413] = {
@@ -25,8 +25,8 @@
  0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
  0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
  0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
---- hdsploader/tobin.c.orig
-+++ hdsploader/tobin.c
+--- a/hdsploader/tobin.c.orig
++++ a/hdsploader/tobin.c
 @@ -1,5 +1,6 @@
  #include <stdio.h>
  #include <stdlib.h>
@@ -43,8 +43,8 @@
  {
  	FILE *out;
  	
---- hdsploader/multiface_firmware.dat.orig
-+++ hdsploader/multiface_firmware.dat
+--- a/hdsploader/multiface_firmware.dat.orig
++++ a/hdsploader/multiface_firmware.dat
 @@ -1,5 +1,5 @@
  /* stored in little-endian */
 -static u_int32_t multiface_firmware[24413] = {
diff --git a/srcpkgs/alsa-firmware/template b/srcpkgs/alsa-firmware/template
index 8ded0831aa1c..b85bc791275d 100644
--- a/srcpkgs/alsa-firmware/template
+++ b/srcpkgs/alsa-firmware/template
@@ -12,7 +12,6 @@ distfiles="https://www.alsa-project.org/files/pub/firmware/${pkgname}-${version}
 checksum=b67b6d7d08bcfc247ef6ff0ab88a99c188305a3cf57ae2dfd0bcd9a5b36cd5bb
 nostrip=yes
 ignore_elf_files="/usr/share/alsa/firmware/mixartloader/miXart8.elf"
-patch_args=-Np0
 
 pre_configure() {
 	export CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" LDFLAGS="${BUILD_LDFLAGS}"
diff --git a/srcpkgs/alsa-tools/patches/musl-__sighandler_t.patch b/srcpkgs/alsa-tools/patches/musl-__sighandler_t.patch
index 7231d2e59ba7..fee7b27c02f4 100644
--- a/srcpkgs/alsa-tools/patches/musl-__sighandler_t.patch
+++ b/srcpkgs/alsa-tools/patches/musl-__sighandler_t.patch
@@ -1,5 +1,5 @@
---- ./ld10k1/src/ld10k1_fnc1.c.orig	2015-09-10 22:54:40.229499746 -0400
-+++ ./ld10k1/src/ld10k1_fnc1.c	2015-09-10 23:09:37.236472375 -0400
+--- a/ld10k1/src/ld10k1_fnc1.c
++++ a/ld10k1/src/ld10k1_fnc1.c
 @@ -23,6 +23,10 @@
  #include "config.h"
  #endif
diff --git a/srcpkgs/alsa-tools/template b/srcpkgs/alsa-tools/template
index e96cc23f1547..1078472c79ae 100644
--- a/srcpkgs/alsa-tools/template
+++ b/srcpkgs/alsa-tools/template
@@ -12,7 +12,6 @@ homepage="http://alsa-project.org"
 distfiles="https://www.alsa-project.org/files/pub/tools/alsa-tools-${version}.tar.bz2"
 checksum=bfd3c7aae1289269605d3da02279159b10e3dabdd31e658cbceaa30170957349
 python_version=3
-patch_args=-Np0
 
 _tools="
 	as10k1 echomixer envy24control hdajackretask hdajacksensetest hda-verb hdspconf
diff --git a/srcpkgs/amdvlk/patches/cmake-build-type-none.patch b/srcpkgs/amdvlk/patches/cmake-build-type-none.patch
index 897bbe44b142..3d6c9d35965f 100644
--- a/srcpkgs/amdvlk/patches/cmake-build-type-none.patch
+++ b/srcpkgs/amdvlk/patches/cmake-build-type-none.patch
@@ -1,7 +1,7 @@
 Index: llvm-project/llvm/CMakeLists.txt
 ===================================================================
---- llvm-project/llvm/CMakeLists.txt.orig
-+++ llvm-project/llvm/CMakeLists.txt
+--- a/llvm-project/llvm/CMakeLists.txt.orig
++++ a/llvm-project/llvm/CMakeLists.txt
 @@ -251,11 +251,6 @@ endif()
  
  string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
@@ -16,8 +16,8 @@ Index: llvm-project/llvm/CMakeLists.txt
  set(LLVM_TOOLS_INSTALL_DIR "bin" CACHE STRING "Path for binary subdirectory (defaults to 'bin')")
 Index: pal/cmake/Modules/AmdCmakeHelper.cmake
 ===================================================================
---- pal/cmake/Modules/AmdCmakeHelper.cmake.orig
-+++ pal/cmake/Modules/AmdCmakeHelper.cmake
+--- a/pal/cmake/Modules/AmdCmakeHelper.cmake.orig
++++ a/pal/cmake/Modules/AmdCmakeHelper.cmake
 @@ -37,11 +37,6 @@ if (CMAKE_CONFIGURATION_TYPES)
  else()
      string(TOUPPER "${CMAKE_BUILD_TYPE}" capital_CMAKE_BUILD_TYPE)
@@ -32,8 +32,8 @@ Index: pal/cmake/Modules/AmdCmakeHelper.cmake
          set(CMAKE_BUILD_TYPE_RELEASE OFF)
 Index: xgl/CMakeLists.txt
 ===================================================================
---- xgl/CMakeLists.txt.orig
-+++ xgl/CMakeLists.txt
+--- a/xgl/CMakeLists.txt.orig
++++ a/xgl/CMakeLists.txt
 @@ -181,11 +181,6 @@ if (CMAKE_CONFIGURATION_TYPES)
  else()
      string(TOUPPER "${CMAKE_BUILD_TYPE}" capital_CMAKE_BUILD_TYPE)
@@ -46,8 +46,8 @@ Index: xgl/CMakeLists.txt
      if(capital_CMAKE_BUILD_TYPE STREQUAL "DEBUG")
          set(CMAKE_BUILD_TYPE_DEBUG ON)
          set(CMAKE_BUILD_TYPE_RELEASE OFF)
---- xgl/cmake/Modules/AmdCmakeHelper.cmake	2021-04-07 06:57:17.000000000 +0200
-+++ -	2021-04-26 14:11:03.415683706 +0200
+--- a/xgl/cmake/Modules/AmdCmakeHelper.cmake
++++ a/-
 @@ -35,11 +35,6 @@
  else()
      string(TOUPPER "${CMAKE_BUILD_TYPE}" capital_CMAKE_BUILD_TYPE)
diff --git a/srcpkgs/amdvlk/patches/musl.patch b/srcpkgs/amdvlk/patches/musl.patch
index 266bde5a8043..9ef7085c71a4 100644
--- a/srcpkgs/amdvlk/patches/musl.patch
+++ b/srcpkgs/amdvlk/patches/musl.patch
@@ -1,5 +1,5 @@
---- pal/shared/gpuopen/src/posix/ddPosixSocket.cpp	2019-10-18 11:06:42.000000000 +0200
-+++ -	2019-10-29 20:15:35.614608453 +0100
+--- a/pal/shared/gpuopen/src/posix/ddPosixSocket.cpp
++++ a/-
 @@ -34,7 +34,7 @@
  #include <sys/types.h>
  #include <sys/socket.h>
diff --git a/srcpkgs/amdvlk/template b/srcpkgs/amdvlk/template
index 6a29a3bc9290..1182a174b558 100644
--- a/srcpkgs/amdvlk/template
+++ b/srcpkgs/amdvlk/template
@@ -42,7 +42,6 @@ checksum="ec17d7f7c7af5adaa2fee7744321da3665be215105df7c3fc72bfeff2575a509
  186060fbcf87165224ba7df0e1858b66ebc42cf190c481aef1df8d89ebab7abd"
 nocross=yes
 lib32files="/usr/share/vulkan/icd.d/amd_icd32.json"
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*) nodebug=yes;;
diff --git a/srcpkgs/angrysearch/patches/00-fiximport.patch b/srcpkgs/angrysearch/patches/00-fiximport.patch
index 7ea7efc0af25..f24258dc65a5 100644
--- a/srcpkgs/angrysearch/patches/00-fiximport.patch
+++ b/srcpkgs/angrysearch/patches/00-fiximport.patch
@@ -1,7 +1,7 @@
 diff --git angrysearch.py angrysearch.py
 index 33c181d..ef9d5a2 100644
---- angrysearch.py
-+++ angrysearch.py
+--- a/angrysearch.py
++++ a/angrysearch.py
 @@ -18,6 +18,8 @@ import subprocess
  import sys
  import time
diff --git a/srcpkgs/angrysearch/template b/srcpkgs/angrysearch/template
index bf03527607a7..96b6b6604ba8 100644
--- a/srcpkgs/angrysearch/template
+++ b/srcpkgs/angrysearch/template
@@ -13,7 +13,6 @@ homepage="https://github.com/dotheevo/angrysearch/"
 distfiles="http://github.com/dotheevo/${pkgname}/archive/v${version}.tar.gz"
 checksum=9a550649c3efafb26660860758f2e75702ce96a0a0c50dc34ced2967b51a843f
 python_version=3
-patch_args=-Np0
 
 do_install() {
 	vinstall angrysearch.desktop 644 "usr/share/applications"
diff --git a/srcpkgs/anjuta/patches/fix-unistd_h.patch b/srcpkgs/anjuta/patches/fix-unistd_h.patch
index a4ca4fcec13a..c5b84bf951fa 100644
--- a/srcpkgs/anjuta/patches/fix-unistd_h.patch
+++ b/srcpkgs/anjuta/patches/fix-unistd_h.patch
@@ -1,7 +1,7 @@
 Fix wrong include for musl libc.
 
---- launcher/anjuta-launcher.c	2014-10-17 21:35:31.000000000 +0200
-+++ launcher/anjuta-launcher.c	2015-09-09 22:09:06.719400546 +0200
+--- a/launcher/anjuta-launcher.c
++++ a/launcher/anjuta-launcher.c
 @@ -22,7 +22,7 @@
  #endif
  
diff --git a/srcpkgs/anjuta/patches/python.patch b/srcpkgs/anjuta/patches/python.patch
index e18651257272..89aa81042cda 100644
--- a/srcpkgs/anjuta/patches/python.patch
+++ b/srcpkgs/anjuta/patches/python.patch
@@ -1,5 +1,5 @@
---- configure.ac.orig	2020-07-04 20:59:04.718066026 +0700
-+++ configure.ac	2020-07-04 20:59:54.542554633 +0700
+--- a/configure.ac
++++ a/configure.ac
 @@ -370,7 +370,7 @@
  	[have_python="no"])
  
diff --git a/srcpkgs/anjuta/patches/vala.patch b/srcpkgs/anjuta/patches/vala.patch
index 178ed45b5ab4..ba167e3a075d 100644
--- a/srcpkgs/anjuta/patches/vala.patch
+++ b/srcpkgs/anjuta/patches/vala.patch
@@ -1,5 +1,5 @@
---- configure.ac.orig	2020-07-04 20:32:36.223805943 +0700
-+++ configure.ac	2020-07-04 20:33:01.432033914 +0700
+--- a/configure.ac
++++ a/configure.ac
 @@ -338,7 +338,7 @@
  else
          AC_MSG_RESULT(no)
diff --git a/srcpkgs/anjuta/patches/vala048.patch b/srcpkgs/anjuta/patches/vala048.patch
index f9e11ba07b9f..ff7d25c24022 100644
--- a/srcpkgs/anjuta/patches/vala048.patch
+++ b/srcpkgs/anjuta/patches/vala048.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] language-support-vala: Support for vala 0.48 API
 
 diff --git a/plugins/language-support-vala/plugin.vala b/plugins/language-support-vala/plugin.vala
 index 13d35fec4..718d74cc8 100644
---- plugins/language-support-vala/plugin.vala
-+++ plugins/language-support-vala/plugin.vala
+--- a/plugins/language-support-vala/plugin.vala
++++ a/plugins/language-support-vala/plugin.vala
 @@ -414,11 +414,19 @@ public class ValaPlugin : Plugin, IAnjuta.Preferences {
  			builder.append_printf ("%s sender", widget.get_full_name ());
  
diff --git a/srcpkgs/anjuta/template b/srcpkgs/anjuta/template
index e861c17df632..b46d58aeafe3 100644
--- a/srcpkgs/anjuta/template
+++ b/srcpkgs/anjuta/template
@@ -22,7 +22,6 @@ license="GPL-2.0-or-later"
 homepage="https://projects.gnome.org/anjuta"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=42a93130ed3ee02d064a7094e94e1ffae2032b3f35a87bf441e37fc3bb3a148f
-patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/anki/patches/fix_mpv_args.patch b/srcpkgs/anki/patches/fix_mpv_args.patch
index 96dec5eceaf0..3b4047ac406f 100644
--- a/srcpkgs/anki/patches/fix_mpv_args.patch
+++ b/srcpkgs/anki/patches/fix_mpv_args.patch
@@ -1,5 +1,5 @@
---- ./anki/mpv.py
-+++ ./anki/mpv.py
+--- a/anki/mpv.py
++++ a/anki/mpv.py
 @@ -104,9 +104,9 @@
          """
          self.argv = [self.executable]
@@ -13,8 +13,8 @@
      def _start_process(self):
          """Start the mpv process.
 
---- ./anki/sound.py
-+++ ./anki/sound.py
+--- a/anki/sound.py
++++ a/anki/sound.py
 @@ -123,10 +123,7 @@
  
  def setMpvConfigBase(base):
diff --git a/srcpkgs/anki/template b/srcpkgs/anki/template
index 731999e63600..55976fbd26eb 100644
--- a/srcpkgs/anki/template
+++ b/srcpkgs/anki/template
@@ -13,7 +13,6 @@ homepage="https://apps.ankiweb.net"
 changelog="https://apps.ankiweb.net/docs/changes.html"
 distfiles="https://apps.ankiweb.net/downloads/archive/anki-$version-source.tgz"
 checksum=5a53760164c77d619f55107a13099cffe620566a7f610b61b6c4b52487f3bb89
-patch_args=-Np0
 
 python_version=3
 
diff --git a/srcpkgs/antimicrox/patches/time64.patch b/srcpkgs/antimicrox/patches/time64.patch
index 8d98f948e5ed..1235063b72bd 100644
--- a/srcpkgs/antimicrox/patches/time64.patch
+++ b/srcpkgs/antimicrox/patches/time64.patch
@@ -1,5 +1,5 @@
---- src/eventhandlers/uinputeventhandler.cpp	2020-10-02 09:51:36.000000000 +0200
-+++ src/eventhandlers/uinputeventhandler.cpp	2020-12-06 10:17:47.922175141 +0100
+--- a/src/eventhandlers/uinputeventhandler.cpp
++++ a/src/eventhandlers/uinputeventhandler.cpp
 @@ -498,9 +498,12 @@
  {
      struct input_event ev;
diff --git a/srcpkgs/antimicrox/template b/srcpkgs/antimicrox/template
index 1e4a1d081868..6a77e8e3a09b 100644
--- a/srcpkgs/antimicrox/template
+++ b/srcpkgs/antimicrox/template
@@ -13,7 +13,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/AntiMicroX/antimicrox"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=53c6b0e6c8ea8c3a5527b56e1ad052eae983ba36abfc090769c6164bc5f342dd
-patch_args=-Np0
 
 libantimicrox_package() {
 	short_desc+=" - libraries"
diff --git a/srcpkgs/antiword/patches/10_fix_buffer_overflow_wordole_c.patch b/srcpkgs/antiword/patches/10_fix_buffer_overflow_wordole_c.patch
index 61edb553ee42..fa4f82b7fd12 100644
--- a/srcpkgs/antiword/patches/10_fix_buffer_overflow_wordole_c.patch
+++ b/srcpkgs/antiword/patches/10_fix_buffer_overflow_wordole_c.patch
@@ -3,8 +3,8 @@ Author: <eriks@debian.org>
 Bug-Debian: http://bugs.debian.org/407015
 Last-Update: 2009-06-03
 
---- antiword-0.37/wordole.c	2005-08-26 21:49:57.000000000 +0200
-+++ antiword-0.37/wordole.c	2009-06-03 22:31:15.948014682 +0200
+--- a/antiword-0.37/wordole.c
++++ a/antiword-0.37/wordole.c
 @@ -259,6 +259,10 @@
  		}
  		tNameSize = (size_t)usGetWord(0x40, aucBytes);
diff --git a/srcpkgs/antiword/template b/srcpkgs/antiword/template
index c33563fa0c9a..a4dfb6ceb229 100644
--- a/srcpkgs/antiword/template
+++ b/srcpkgs/antiword/template
@@ -12,7 +12,6 @@ distfiles="http://www.winfield.demon.nl/linux/antiword-${version}.tar.gz
  http://sources.debian.net/data/main/a/antiword/0.37-10/debian/patches/docx.patch"
 checksum="8e2c000fcbc6d641b0e6ff95e13c846da3ff31097801e86702124a206888f5ac
  0ca787f8e31a2e05e6c0ff73406d9a7f0355fe27238a0cde3ed7cf6d3418c8aa"
-patch_args=-Np0
 
 do_build() {
 	# debian patch for better docx handling
diff --git a/srcpkgs/apache/patches/libressl.patch b/srcpkgs/apache/patches/libressl.patch
index 7729a1e674bd..a2f4d91a2545 100644
--- a/srcpkgs/apache/patches/libressl.patch
+++ b/srcpkgs/apache/patches/libressl.patch
@@ -1,5 +1,5 @@
---- modules/ssl/ssl_engine_init.c.orig  2018-10-30 16:25:09.084840429 +0100
-+++ modules/ssl/ssl_engine_init.c       2018-10-30 16:25:55.019411636 +0100
+--- a/modules/ssl/ssl_engine_init.c.orig  2018-10-30 16:25:09.084840429 +0100
++++ a/modules/ssl/ssl_engine_init.c       2018-10-30 16:25:55.019411636 +0100
 @@ -1492,7 +1492,7 @@
      X509_STORE_CTX *sctx;
      X509_STORE *store = SSL_CTX_get_cert_store(mctx->ssl_ctx);
diff --git a/srcpkgs/apache/template b/srcpkgs/apache/template
index 24fa60ac48a6..3c92ff8fc988 100644
--- a/srcpkgs/apache/template
+++ b/srcpkgs/apache/template
@@ -37,7 +37,6 @@ homepage="http://httpd.apache.org/"
 changelog="http://www.apache.org/dist/httpd/CHANGES_2.4"
 distfiles="https://archive.apache.org/dist/httpd/httpd-${version}.tar.bz2"
 checksum=1bc826e7b2e88108c7e4bf43c026636f77a41d849cfb667aa7b5c0b86dbf966c
-patch_args=-Np0
 
 system_accounts="_${pkgname}"
 _apache_homedir="/srv/www/$pkgname"
diff --git a/srcpkgs/apl/patches/musl.patch b/srcpkgs/apl/patches/musl.patch
index 76df82d020b8..7c074115cb1d 100644
--- a/srcpkgs/apl/patches/musl.patch
+++ b/srcpkgs/apl/patches/musl.patch
@@ -1,5 +1,5 @@
---- src/Error.hh.orig	2019-06-24 11:12:35.825267571 +0200
-+++ src/Error.hh	2019-06-24 11:12:46.505396162 +0200
+--- a/src/Error.hh
++++ a/src/Error.hh
 @@ -26,6 +26,8 @@
  #include "ErrorCode.hh"
  #include "UCS_string.hh"
diff --git a/srcpkgs/apl/patches/ppc.patch b/srcpkgs/apl/patches/ppc.patch
index 1b373e13cdd0..0dd1a0d18ede 100644
--- a/srcpkgs/apl/patches/ppc.patch
+++ b/srcpkgs/apl/patches/ppc.patch
@@ -8,8 +8,8 @@ Tokenizer.cc:769:4: error: floating constant exceeds range of 'long double' [-We
     exp_0_9(1E30)
     ^~~~~~~
 
---- src/Tokenizer.cc
-+++ src/Tokenizer.cc
+--- a/src/Tokenizer.cc
++++ a/src/Tokenizer.cc
 @@ -755,10 +755,10 @@
         MAX_TOKENIZE_DIGITS = MAX_TOKENIZE_DIGITS_1 - 1   // excl. rounding digit
       };
diff --git a/srcpkgs/apl/template b/srcpkgs/apl/template
index 06472f651624..88b8d32b6720 100644
--- a/srcpkgs/apl/template
+++ b/srcpkgs/apl/template
@@ -14,7 +14,6 @@ distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=144f4c858a0d430ce8f28be90a35920dd8e0951e56976cb80b55053fa0d8bbcb
 nocross="execs target binary: ./Gtk_server --ev1 > Gtk_events1.asciidoc"
 CXXFLAGS="-Wno-format-truncation -Wno-class-memaccess -Wno-maybe-uninitialized -Wno-restrict -Wno-cpp"
-patch_args=-Np0
 
 post_install() {
 	vdoc support-files/Dyalog-Keyboard/apl.xkb
diff --git a/srcpkgs/appstream-glib/patches/0001-flip-archive_h-and-archive_entry_h-order-on-client-as-util.patch b/srcpkgs/appstream-glib/patches/0001-flip-archive_h-and-archive_entry_h-order-on-client-as-util.patch
index 5535c39ceff3..90f20aac10c7 100644
--- a/srcpkgs/appstream-glib/patches/0001-flip-archive_h-and-archive_entry_h-order-on-client-as-util.patch
+++ b/srcpkgs/appstream-glib/patches/0001-flip-archive_h-and-archive_entry_h-order-on-client-as-util.patch
@@ -1,7 +1,7 @@
 They are in the wrong order.
 
---- client/as-util.c
-+++ client/as-util.c
+--- a/client/as-util.c
++++ a/client/as-util.c
 @@ -27,8 +27,8 @@
  #include <gio/gio.h>
  
diff --git a/srcpkgs/appstream-glib/patches/0002-flip-archive_h-and-archive_entry_h-order-on-libappstream-glib-as-util.patch b/srcpkgs/appstream-glib/patches/0002-flip-archive_h-and-archive_entry_h-order-on-libappstream-glib-as-util.patch
index 8c5f70c480f3..0e076ec94e58 100644
--- a/srcpkgs/appstream-glib/patches/0002-flip-archive_h-and-archive_entry_h-order-on-libappstream-glib-as-util.patch
+++ b/srcpkgs/appstream-glib/patches/0002-flip-archive_h-and-archive_entry_h-order-on-libappstream-glib-as-util.patch
@@ -1,7 +1,7 @@
 They are in the wrong order.
 
---- libappstream-glib/as-utils.c
-+++ libappstream-glib/as-utils.c
+--- a/libappstream-glib/as-utils.c
++++ a/libappstream-glib/as-utils.c
 @@ -34,8 +34,8 @@
  
  #include <fnmatch.h>
diff --git a/srcpkgs/appstream-glib/template b/srcpkgs/appstream-glib/template
index 36c6fffca5d1..5eaf493d53f6 100644
--- a/srcpkgs/appstream-glib/template
+++ b/srcpkgs/appstream-glib/template
@@ -16,7 +16,6 @@ homepage="https://people.freedesktop.org/~hughsient/appstream-glib/"
 changelog="https://raw.githubusercontent.com/hughsie/appstream-glib/master/NEWS"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
 checksum=ca1ed22e3bde3912cb903aaa7de085d55771da454f1c0573fd9608e1de9c4002
-patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/apr/patches/atomic64.patch b/srcpkgs/apr/patches/atomic64.patch
index afd06447e015..f466cd8a7e9f 100644
--- a/srcpkgs/apr/patches/atomic64.patch
+++ b/srcpkgs/apr/patches/atomic64.patch
@@ -9,8 +9,8 @@ Date:   Fri Jan 10 13:04:37 2020 +0100
 
 diff --git atomic/unix/builtins64.c atomic/unix/builtins64.c
 index 4a4b685..90b5c5e 100644
---- atomic/unix/builtins64.c
-+++ atomic/unix/builtins64.c
+--- a/atomic/unix/builtins64.c
++++ a/atomic/unix/builtins64.c
 @@ -30,35 +30,34 @@ APR_DECLARE(void) apr_atomic_set64(volatile apr_uint64_t *mem, apr_uint64_t val)
  
  APR_DECLARE(apr_uint64_t) apr_atomic_add64(volatile apr_uint64_t *mem, apr_uint64_t val)
diff --git a/srcpkgs/apr/template b/srcpkgs/apr/template
index 1fa0399f64b6..f2dc1241668a 100644
--- a/srcpkgs/apr/template
+++ b/srcpkgs/apr/template
@@ -11,7 +11,6 @@ license="Apache-2.0"
 homepage="http://apr.apache.org/"
 distfiles="http://www.apache.org/dist/apr/apr-${version}.tar.bz2"
 checksum=e2e148f0b2e99b8e5c6caa09f6d4fb4dd3e83f744aa72a952f94f5a14436f7ea
-patch_args=-Np0
 
 # Do not redefine struct iovec in include/apr_want.h
 CFLAGS="-DAPR_IOVEC_DEFINED=1"
diff --git a/srcpkgs/apvlv/patches/cxxflags_from_env.patch b/srcpkgs/apvlv/patches/cxxflags_from_env.patch
index 45889baa52e3..6b72bdb6cb1c 100644
--- a/srcpkgs/apvlv/patches/cxxflags_from_env.patch
+++ b/srcpkgs/apvlv/patches/cxxflags_from_env.patch
@@ -1,5 +1,5 @@
---- src/CMakeLists.txt.orig	2016-09-14 01:48:05.822928918 +0200
-+++ src/CMakeLists.txt	2016-09-14 01:48:54.906931451 +0200
+--- a/src/CMakeLists.txt
++++ a/src/CMakeLists.txt
 @@ -1,7 +1,7 @@
  IF (WIN32)
    ADD_DEFINITIONS (-D_CRT_SECURE_NO_WARNINGS)
diff --git a/srcpkgs/apvlv/template b/srcpkgs/apvlv/template
index 8cd23927d55a..8d343dbe3358 100644
--- a/srcpkgs/apvlv/template
+++ b/srcpkgs/apvlv/template
@@ -14,4 +14,3 @@ homepage="http://naihe2010.github.io/apvlv/"
 distfiles="https://github.com/naihe2010/apvlv/archive/v${version}.tar.gz"
 checksum=a4a2f42a7e42715a21d2356def3ed93c180c6ae41128580addee42835e5374c2
 replaces="apvlv-git>=0"
-patch_args=-Np0
diff --git a/srcpkgs/aqbanking/patches/cmake-prefix.patch b/srcpkgs/aqbanking/patches/cmake-prefix.patch
index a181d75530c2..b362e1735ae3 100644
--- a/srcpkgs/aqbanking/patches/cmake-prefix.patch
+++ b/srcpkgs/aqbanking/patches/cmake-prefix.patch
@@ -1,5 +1,5 @@
---- aqbanking-config.cmake.in	2018-01-10 16:09:39.079835643 +0100
-+++ aqbanking-config.cmake.in	2018-01-10 16:11:18.140403253 +0100
+--- a/aqbanking-config.cmake.in
++++ a/aqbanking-config.cmake.in
 @@ -19,7 +19,18 @@
  include(CMakeFindDependencyMacro)
  find_dependency(gwenhywfar "@GWENHYWFAR_MINIMUM_VERSION@")
diff --git a/srcpkgs/aqbanking/template b/srcpkgs/aqbanking/template
index 9f509f325469..ea55a80935d7 100644
--- a/srcpkgs/aqbanking/template
+++ b/srcpkgs/aqbanking/template
@@ -12,7 +12,6 @@ homepage="http://www.aquamaniac.de/aqbanking"
 distfiles="https://www.aquamaniac.de/rdm/attachments/download/372/${pkgname}-${version}.tar.gz"
 checksum=a0e85da2072c927bc32cfd808caaccfdabe34725e75618b08d8049306d8355cc
 disable_parallel_build=yes
-patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
diff --git a/srcpkgs/aqemu/patches/stdexcept.patch b/srcpkgs/aqemu/patches/stdexcept.patch
index 70c87ccd073c..9d96db674481 100644
--- a/srcpkgs/aqemu/patches/stdexcept.patch
+++ b/srcpkgs/aqemu/patches/stdexcept.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] stdexcept
 
 diff --git src/docopt/docopt_value.h src/docopt/docopt_value.h
 index ddb8a8e..99aa545 100644
---- src/docopt/docopt_value.h
-+++ src/docopt/docopt_value.h
+--- a/src/docopt/docopt_value.h
++++ a/src/docopt/docopt_value.h
 @@ -13,7 +13,7 @@
  #include <iosfwd>
  #include <string>
diff --git a/srcpkgs/aqemu/template b/srcpkgs/aqemu/template
index 0ada7d5bc748..eea61aa562bc 100644
--- a/srcpkgs/aqemu/template
+++ b/srcpkgs/aqemu/template
@@ -12,7 +12,6 @@ license="GPL-2.0-only"
 homepage="http://aqemu.sourceforge.net"
 distfiles="https://github.com/TBK/aqemu/archive/v${version}.tar.gz"
 checksum=576ae78de936518a1de057355ffc192b59e42be934f0111122b2c5fcafe318a7
-patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/ardour/patches/6.0-fix-build.patch b/srcpkgs/ardour/patches/6.0-fix-build.patch
index 8228287d253d..4620d5cf72aa 100644
--- a/srcpkgs/ardour/patches/6.0-fix-build.patch
+++ b/srcpkgs/ardour/patches/6.0-fix-build.patch
@@ -1,7 +1,7 @@
 diff --git libs/ardour/wscript libs/ardour/wscript
 index 49cea6a..a7f8e84 100644
---- libs/ardour/wscript
-+++ libs/ardour/wscript
+--- a/libs/ardour/wscript
++++ a/libs/ardour/wscript
 @@ -384,7 +384,7 @@ def build(bld):
  
      # remove '${DEFINES_ST:DEFINES}' from run_str.
diff --git a/srcpkgs/ardour/patches/6.0-fix-runtime.patch b/srcpkgs/ardour/patches/6.0-fix-runtime.patch
index 1f438ca84e7e..d0122784f19c 100644
--- a/srcpkgs/ardour/patches/6.0-fix-runtime.patch
+++ b/srcpkgs/ardour/patches/6.0-fix-runtime.patch
@@ -1,5 +1,5 @@
---- libs/pbd/pbd/pthread_utils.h.orig	2020-09-18 22:30:18.353441907 +0700
-+++ libs/pbd/pbd/pthread_utils.h	2020-09-18 22:37:07.059363532 +0700
+--- a/libs/pbd/pbd/pthread_utils.h
++++ a/libs/pbd/pbd/pthread_utils.h
 @@ -49,7 +49,7 @@
  #include "pbd/signals.h"
  
diff --git a/srcpkgs/ardour/patches/use-bundled-qm-dsp.patch b/srcpkgs/ardour/patches/use-bundled-qm-dsp.patch
index 86dca8dc5e7f..587169ee5341 100644
--- a/srcpkgs/ardour/patches/use-bundled-qm-dsp.patch
+++ b/srcpkgs/ardour/patches/use-bundled-qm-dsp.patch
@@ -10,8 +10,8 @@ Subject: [PATCH] use bundled qm-dsp
 
 diff --git libs/qm-dsp/wscript libs/qm-dsp/wscript
 index 92dc9502b1..dbbff16722 100644
---- libs/qm-dsp/wscript
-+++ libs/qm-dsp/wscript
+--- a/libs/qm-dsp/wscript
++++ a/libs/qm-dsp/wscript
 @@ -23,17 +23,10 @@ def options(opt):
      autowaf.set_options(opt)
  
@@ -34,8 +34,8 @@ index 92dc9502b1..dbbff16722 100644
      obj.source = '''
 diff --git wscript wscript
 index 4b5acb0ad7..c0358af37e 100644
---- wscript
-+++ wscript
+--- a/wscript
++++ a/wscript
 @@ -991,8 +991,6 @@ def configure(conf):
  
      if Options.options.use_external_libs:
diff --git a/srcpkgs/ardour/template b/srcpkgs/ardour/template
index 14e6810a0ac5..ae133e67b141 100644
--- a/srcpkgs/ardour/template
+++ b/srcpkgs/ardour/template
@@ -18,7 +18,6 @@ short_desc="Professional-grade digital audio workstation"
 maintainer="tibequadorian <tibequadorian@posteo.de>"
 license="GPL-2.0-or-later"
 homepage="http://ardour.org"
-patch_args=-Np0
 
 CXXFLAGS="-fpermissive"
 
diff --git a/srcpkgs/arduino/patches/astyle_fix.patch b/srcpkgs/arduino/patches/astyle_fix.patch
index 7b07f5744208..7e632a9212f8 100644
--- a/srcpkgs/arduino/patches/astyle_fix.patch
+++ b/srcpkgs/arduino/patches/astyle_fix.patch
@@ -1,5 +1,5 @@
---- astyle/src/astyle_main.cpp	2017-05-30 20:26:37.000000000 -0400
-+++ astyle/src/astyle_main.cpp	2019-09-11 20:38:02.155936887 -0400
+--- a/astyle/src/astyle_main.cpp
++++ a/astyle/src/astyle_main.cpp
 @@ -3749,7 +3749,7 @@
  // called by a java program to get the version number
  // the function name is constructed from method names in the calling java program
@@ -18,8 +18,8 @@
                                                  jobject obj,
                                                  jstring textInJava,
                                                  jstring optionsJava)
---- astyle/src/astyle_main.h	2017-05-30 20:26:37.000000000 -0400
-+++ astyle/src/astyle_main.h	2019-09-11 20:39:15.953536523 -0400
+--- a/astyle/src/astyle_main.h
++++ a/astyle/src/astyle_main.h
 @@ -406,9 +406,9 @@
  char* STDCALL javaMemoryAlloc(unsigned long memoryNeeded);
  // the following function names are constructed from method names in the calling java program
diff --git a/srcpkgs/arduino/patches/disable-dependency-build.patch b/srcpkgs/arduino/patches/disable-dependency-build.patch
index 6a7144c906c4..e9f8a5592ac2 100644
--- a/srcpkgs/arduino/patches/disable-dependency-build.patch
+++ b/srcpkgs/arduino/patches/disable-dependency-build.patch
@@ -1,5 +1,5 @@
---- Arduino-1.8.13/build/build.xml.orig	2020-12-27 20:34:41.813419495 +0100
-+++ Arduino-1.8.13/build/build.xml	2020-12-27 20:32:58.075425211 +0100
+--- a/Arduino-1.8.13/build/build.xml
++++ a/Arduino-1.8.13/build/build.xml
 @@ -345,7 +345,7 @@
  
      <!-- figure out the IDE version number in base.java -->
diff --git a/srcpkgs/arduino/template b/srcpkgs/arduino/template
index 5d6531ec93fc..d352962e73d3 100644
--- a/srcpkgs/arduino/template
+++ b/srcpkgs/arduino/template
@@ -19,7 +19,6 @@ checksum="2a2a7bf0a93d36dff2e27f50e490529f10ff73337d6a0b7b222fa6b1a529c9f7
  6c3ab029e0e4a75e2e603d449014374aa8269218fdd03a4aaa46ab743b1912fd"
 nostrip=yes
 nocross="cross build lacks essential libraries"
-patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	broken="downloads multiple binaries linked to glibc; segfaults with gcompat"
diff --git a/srcpkgs/argon2/patches/explicit-bzero.patch b/srcpkgs/argon2/patches/explicit-bzero.patch
index 57762d70a11f..9456c66ee8ad 100644
--- a/srcpkgs/argon2/patches/explicit-bzero.patch
+++ b/srcpkgs/argon2/patches/explicit-bzero.patch
@@ -1,7 +1,7 @@
 # reason: use explizit_bzero on musl too!
 
---- src/core.c
-+++ src/core.c
+--- a/src/core.c
++++ a/src/core.c
 @@ -27,6 +27,7 @@
  
  /* for explicit_bzero() on glibc */
diff --git a/srcpkgs/argon2/patches/libdir.patch b/srcpkgs/argon2/patches/libdir.patch
index 31b86db3eb8d..7660e2922952 100644
--- a/srcpkgs/argon2/patches/libdir.patch
+++ b/srcpkgs/argon2/patches/libdir.patch
@@ -2,8 +2,8 @@
 #   upstream believes Ubuntu/Debian are the only ones
 #   to report "$(uname -s)-$(uname -m)" as Linux-x86_64 ...
 
---- Makefile
-+++ Makefile
+--- a/Makefile
++++ a/Makefile
 @@ -138,14 +138,6 @@
  LIBRARY_REL ?= lib
  PKGCONFIG_REL ?= libdata
diff --git a/srcpkgs/argon2/template b/srcpkgs/argon2/template
index 04bdaf7a1419..7cc1bb0617eb 100644
--- a/srcpkgs/argon2/template
+++ b/srcpkgs/argon2/template
@@ -14,7 +14,6 @@ license="CC0-1.0, Apache-2.0"
 homepage="https://github.com/P-H-C/phc-winner-argon2"
 distfiles="https://github.com/P-H-C/phc-winner-argon2/archive/${version}.tar.gz"
 checksum=daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c
-patch_args=-Np0
 
 libargon2_package() {
 	short_desc="Password hashing library"
diff --git a/srcpkgs/argyllcms/patches/fix-gcc6-attribute_numsup_h.patch b/srcpkgs/argyllcms/patches/fix-gcc6-attribute_numsup_h.patch
index a60961ebff58..557e3154261d 100644
--- a/srcpkgs/argyllcms/patches/fix-gcc6-attribute_numsup_h.patch
+++ b/srcpkgs/argyllcms/patches/fix-gcc6-attribute_numsup_h.patch
@@ -1,6 +1,6 @@
 
---- numlib/numsup.h	2015-10-26 05:17:33.000000000 +0100
-+++ numlib/numsup.h	2016-10-04 10:10:28.732000000 +0200
+--- a/numlib/numsup.h
++++ a/numlib/numsup.h
 @@ -324,7 +324,7 @@
  #define error_program g_log->tag
  extern void set_exe_path(char *arg0);
diff --git a/srcpkgs/argyllcms/template b/srcpkgs/argyllcms/template
index 33d0d14436cc..5fb8294254f7 100644
--- a/srcpkgs/argyllcms/template
+++ b/srcpkgs/argyllcms/template
@@ -12,7 +12,6 @@ license="AGPL-3.0-or-later, GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://www.argyllcms.com/"
 distfiles="https://www.argyllcms.com/Argyll_V${version}_src.zip"
 checksum=be378ca836b17b8684db05e9feaab138d711835ef00a04a76ac0ceacd386a3e3
-patch_args=-Np0
 
 # Build system look only under / for headers and libraries. Breaks cross.
 nocross=yes
diff --git a/srcpkgs/ark/patches/disable-xar-test.patch b/srcpkgs/ark/patches/disable-xar-test.patch
index e74584e7b1ff..054ab2348086 100644
--- a/srcpkgs/ark/patches/disable-xar-test.patch
+++ b/srcpkgs/ark/patches/disable-xar-test.patch
@@ -6,8 +6,8 @@ Subject: [PATCH] disable xar test
 
 diff --git autotests/kerfuffle/extracttest.cpp autotests/kerfuffle/extracttest.cpp
 index 9178611..c1d3f13 100644
---- autotests/kerfuffle/extracttest.cpp
-+++ autotests/kerfuffle/extracttest.cpp
+--- a/autotests/kerfuffle/extracttest.cpp
++++ a/autotests/kerfuffle/extracttest.cpp
 @@ -350,23 +350,6 @@ void ExtractTest::testExtraction_data()
          qDebug() << "lz4 executable not found in path. Skipping lz4 test.";
      }
@@ -34,8 +34,8 @@ index 9178611..c1d3f13 100644
              << archivePath
 diff --git autotests/kerfuffle/loadtest.cpp autotests/kerfuffle/loadtest.cpp
 index 8c5f52d..cbb47cf 100644
---- autotests/kerfuffle/loadtest.cpp
-+++ autotests/kerfuffle/loadtest.cpp
+--- a/autotests/kerfuffle/loadtest.cpp
++++ a/autotests/kerfuffle/loadtest.cpp
 @@ -181,13 +181,6 @@ void LoadTest::testProperties_data()
          qDebug() << "lz4 executable not found in path. Skipping lz4 test.";
      }
diff --git a/srcpkgs/ark/template b/srcpkgs/ark/template
index 22022fc8a649..dfa7870ed4ca 100644
--- a/srcpkgs/ark/template
+++ b/srcpkgs/ark/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://kde.org/applications/en/utilities/org.kde.ark"
 distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=09e0294c36a881585183bf165020ef832bfbbd181547ea26eb78268aab46a768
-patch_args=-Np0
 
 do_check() {
 	cd build
diff --git a/srcpkgs/armadillo/patches/9.700.2--include_dirs.patch b/srcpkgs/armadillo/patches/9.700.2--include_dirs.patch
index f6dea58c7c52..0e03091a4c7e 100644
--- a/srcpkgs/armadillo/patches/9.700.2--include_dirs.patch
+++ b/srcpkgs/armadillo/patches/9.700.2--include_dirs.patch
@@ -6,8 +6,8 @@ Subject: [PATCH] Absolute paths can't match both cross and native use
 
 diff --git include/armadillo_bits/config.hpp.cmake include/armadillo_bits/config.hpp.cmake
 index be42243..a285e35 100644
---- include/armadillo_bits/config.hpp.cmake
-+++ include/armadillo_bits/config.hpp.cmake
+--- a/include/armadillo_bits/config.hpp.cmake
++++ a/include/armadillo_bits/config.hpp.cmake
 @@ -50,7 +50,7 @@
  #endif
  
diff --git a/srcpkgs/armadillo/template b/srcpkgs/armadillo/template
index 52e72128108d..9407c3aa8b48 100644
--- a/srcpkgs/armadillo/template
+++ b/srcpkgs/armadillo/template
@@ -12,7 +12,6 @@ license="Apache-2.0"
 homepage="http://arma.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/arma/${pkgname}-${version}.tar.xz"
 checksum=d78658c9442addf7f718eb05881150ee3ec25604d06dd3af4942422b3ce26d05
-patch_args=-Np0
 
 build_options="hdf5"
 desc_option_hdf5="HDF5 support"
diff --git a/srcpkgs/artyfx/patches/fix-avtk-cmake-sse.patch b/srcpkgs/artyfx/patches/fix-avtk-cmake-sse.patch
index 47ef4dd9b84e..20044fcf02fe 100644
--- a/srcpkgs/artyfx/patches/fix-avtk-cmake-sse.patch
+++ b/srcpkgs/artyfx/patches/fix-avtk-cmake-sse.patch
@@ -1,5 +1,5 @@
---- src/avtk/CMakeLists.txt	2016-12-24 19:36:45.000000000 +0000
-+++ src/avtk/CMakeLists.txt	2019-03-09 11:20:24.063980037 +0000
+--- a/src/avtk/CMakeLists.txt
++++ a/src/avtk/CMakeLists.txt
 @@ -55,8 +55,13 @@
  link_directories   ( ${X11_LIBRARY_DIRS} )
  
diff --git a/srcpkgs/artyfx/patches/fix-lv2-1.18.patch b/srcpkgs/artyfx/patches/fix-lv2-1.18.patch
index adf23e20fb08..fef9ed6a7012 100644
--- a/srcpkgs/artyfx/patches/fix-lv2-1.18.patch
+++ b/srcpkgs/artyfx/patches/fix-lv2-1.18.patch
@@ -1,5 +1,5 @@
---- src/ui/lv2_ui.cxx	2016-12-24 20:36:45.000000000 +0100
-+++ src/ui/lv2_ui.cxx	2020-12-25 22:17:21.206336431 +0100
+--- a/src/ui/lv2_ui.cxx
++++ a/src/ui/lv2_ui.cxx
 @@ -33,7 +33,7 @@
  #include "whaaa.hxx"
  
diff --git a/srcpkgs/artyfx/patches/respect-our-cflags.patch b/srcpkgs/artyfx/patches/respect-our-cflags.patch
index 7a32fd9df73b..58e3584c19f7 100644
--- a/srcpkgs/artyfx/patches/respect-our-cflags.patch
+++ b/srcpkgs/artyfx/patches/respect-our-cflags.patch
@@ -1,7 +1,7 @@
 Index: CMakeLists.txt
 ===================================================================
---- CMakeLists.txt.orig
-+++ CMakeLists.txt
+--- a/CMakeLists.txt.orig
++++ a/CMakeLists.txt
 @@ -24,17 +24,17 @@ pkg_check_modules(SND sndfile REQUIRED)
  include_directories( ${SND_INCLUDE_DIRS}  )
  #target_link_libraries( avtkDemo ${CAIRO_LIBRARIES}  )
diff --git a/srcpkgs/artyfx/template b/srcpkgs/artyfx/template
index 279fa42510d9..f06781b63736 100644
--- a/srcpkgs/artyfx/template
+++ b/srcpkgs/artyfx/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="http://openavproductions.com/artyfx/"
 distfiles="https://github.com/openAVproductions/openAV-ArtyFX/archive/release-$version.tar.gz"
 checksum=a2a8d02b47bea44d0053cd4f8c6411f68a6fe9b9e4348a4139cd9bfd70105c00
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	armv7*)
diff --git a/srcpkgs/asignify/patches/musl.patch b/srcpkgs/asignify/patches/musl.patch
index f5967ae87ba8..c563e7b7ff3e 100644
--- a/srcpkgs/asignify/patches/musl.patch
+++ b/srcpkgs/asignify/patches/musl.patch
@@ -1,5 +1,5 @@
---- libasignify/sha2.h.orig	2015-06-13 11:00:00.647603180 +0200
-+++ libasignify/sha2.h	2015-06-13 11:00:43.070069529 +0200
+--- a/libasignify/sha2.h
++++ a/libasignify/sha2.h
 @@ -59,7 +59,11 @@ typedef struct _SHA2_CTX {
  	uint8_t	buffer[SHA512_BLOCK_LENGTH];
  } SHA2_CTX;
diff --git a/srcpkgs/asignify/template b/srcpkgs/asignify/template
index a6bc88da22d8..24b6f55108ea 100644
--- a/srcpkgs/asignify/template
+++ b/srcpkgs/asignify/template
@@ -10,7 +10,6 @@ license="BSD-2-Clause"
 homepage="https://github.com/vstakhov/asignify"
 distfiles="https://github.com/vstakhov/asignify/archive/${version}.tar.gz"
 checksum=81272713900b51049633139549181fa23e56eeb580e0ea0325546d2fe7ca503d
-patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/assimp/patches/musl.patch b/srcpkgs/assimp/patches/musl.patch
index f2cf5b1a5e9f..ab012089f9b6 100644
--- a/srcpkgs/assimp/patches/musl.patch
+++ b/srcpkgs/assimp/patches/musl.patch
@@ -1,5 +1,5 @@
---- contrib/zip/src/zip.h	2019-09-24 19:28:59.000000000 +0200
-+++ -	2019-09-29 00:15:02.408202128 +0200
+--- a/contrib/zip/src/zip.h
++++ a/-
 @@ -20,7 +20,7 @@
  #endif
  
diff --git a/srcpkgs/assimp/template b/srcpkgs/assimp/template
index 39b1cb64289c..7d45161ede5d 100644
--- a/srcpkgs/assimp/template
+++ b/srcpkgs/assimp/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause"
 homepage="http://assimp.sourceforge.net/"
 distfiles="https://github.com/assimp/assimp/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=11310ec1f2ad2cd46b95ba88faca8f7aaa1efe9aa12605c55e3de2b977b3dbfc
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/astroid/patches/cross.patch b/srcpkgs/astroid/patches/cross.patch
index 106aa2f143ca..3eeed55dbebe 100644
--- a/srcpkgs/astroid/patches/cross.patch
+++ b/srcpkgs/astroid/patches/cross.patch
@@ -1,5 +1,5 @@
---- cmake/FindNotmuch.cmake.orig	2019-12-07 15:36:42.495906856 +0700
-+++ cmake/FindNotmuch.cmake	2019-12-07 15:37:24.330785115 +0700
+--- a/cmake/FindNotmuch.cmake
++++ a/cmake/FindNotmuch.cmake
 @@ -68,24 +68,4 @@
  check_symbol_exists (notmuch_database_index_file notmuch.h Notmuch_INDEX_FILE_API)
  
diff --git a/srcpkgs/astroid/template b/srcpkgs/astroid/template
index b1c72bcbe608..e37e50c628fe 100644
--- a/srcpkgs/astroid/template
+++ b/srcpkgs/astroid/template
@@ -13,7 +13,6 @@ license="GPL-3.0-or-later"
 homepage="http://astroidmail.github.io/"
 distfiles="https://github.com/astroidmail/astroid/archive/v${version}.tar.gz"
 checksum=8581bbdbc71bd00d4cdd473cfad8bc604628bb15616fe5eab5c623461f686c65
-patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qemu-user-static prelink-cross"
diff --git a/srcpkgs/astyle/patches/musl.patch b/srcpkgs/astyle/patches/musl.patch
index cff5b81f1533..3aa4f78e9be2 100644
--- a/srcpkgs/astyle/patches/musl.patch
+++ b/srcpkgs/astyle/patches/musl.patch
@@ -1,5 +1,5 @@
---- src/astyle_main.cpp	2018-01-11 18:18:19.000000000 +0100
-+++ src/astyle_main.cpp	2018-01-12 13:30:53.272485434 +0100
+--- a/src/astyle_main.cpp
++++ a/src/astyle_main.cpp
 @@ -35,6 +35,7 @@
  
  #include "astyle_main.h"
diff --git a/srcpkgs/astyle/template b/srcpkgs/astyle/template
index d6e09e75d70d..860e5840811c 100644
--- a/srcpkgs/astyle/template
+++ b/srcpkgs/astyle/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="http://astyle.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${version}_linux.tar.gz"
 checksum=cbcc4cf996294534bb56f025d6f199ebfde81aa4c271ccbd5ee1c1a3192745d7
-patch_args=-Np0
 
 do_install() {
 	vbin bin/astyle
diff --git a/srcpkgs/at/patches/isleap.patch b/srcpkgs/at/patches/isleap.patch
index 726e23f50344..929736926e33 100644
--- a/srcpkgs/at/patches/isleap.patch
+++ b/srcpkgs/at/patches/isleap.patch
@@ -1,5 +1,5 @@
---- parsetime.y.orig	2015-05-11 15:16:53.018305563 +0200
-+++ parsetime.y	2015-05-11 15:17:22.820153470 +0200
+--- a/parsetime.y
++++ a/parsetime.y
 @@ -6,6 +6,10 @@
  #include "parsetime.h"
  #include "panic.h"
diff --git a/srcpkgs/at/template b/srcpkgs/at/template
index 563b741d6af8..772c4582b3e7 100644
--- a/srcpkgs/at/template
+++ b/srcpkgs/at/template
@@ -16,7 +16,6 @@ homepage="http://packages.qa.debian.org/a/at.html"
 distfiles="${DEBIAN_SITE}/main/a/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=2211da14914fde1f9cc83592838fb6385a32fb11fcecb7816c77700df6559088
 disable_parallel_build=yes
-patch_args=-Np0
 
 conf_files="/etc/at.deny"
 system_accounts="at"
diff --git a/srcpkgs/aterm/patches/fix-pty-musl.patch b/srcpkgs/aterm/patches/fix-pty-musl.patch
index 4c6005504297..ee22a65eefc3 100644
--- a/srcpkgs/aterm/patches/fix-pty-musl.patch
+++ b/srcpkgs/aterm/patches/fix-pty-musl.patch
@@ -1,5 +1,5 @@
---- src/command.c.orig	2016-03-05 22:06:06.710989576 +0000
-+++ src/command.c	2016-03-05 22:06:36.743614116 +0000
+--- a/src/command.c
++++ a/src/command.c
 @@ -556,7 +556,7 @@
      ptydev = ttydev = _getpty(&fd, O_RDWR | O_NDELAY, 0622, 0);
      if (ptydev == NULL)
diff --git a/srcpkgs/aterm/template b/srcpkgs/aterm/template
index 6608120fc2d9..cf474ff86dec 100644
--- a/srcpkgs/aterm/template
+++ b/srcpkgs/aterm/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="http://www.afterstep.org/aterm.php"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=a161c3b2d9c7149130a41963899993af21eae92e8e362f4b5b3c7c4cb16760ce
-patch_args=-Np0
 
 pre_build() {
 	sed -i '/INSTALL_PROGRAM/s,-c -s,-c ,g' src/Makefile
diff --git a/srcpkgs/atomicparsley/patches/musl-fpos_t.patch b/srcpkgs/atomicparsley/patches/musl-fpos_t.patch
index b9a56fdca0e0..edd28b94221d 100644
--- a/srcpkgs/atomicparsley/patches/musl-fpos_t.patch
+++ b/srcpkgs/atomicparsley/patches/musl-fpos_t.patch
@@ -1,5 +1,5 @@
---- src/parsley.cpp
-+++ src/parsley.cpp
+--- a/src/parsley.cpp
++++ a/src/parsley.cpp
 @@ -4585,10 +4585,11 @@
  #if defined(_MSC_VER)
  			fpos_t file_offset = dest_position + file_pos;
diff --git a/srcpkgs/atomicparsley/template b/srcpkgs/atomicparsley/template
index 4f6d6cc2d8f2..b82abf7d377c 100644
--- a/srcpkgs/atomicparsley/template
+++ b/srcpkgs/atomicparsley/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="https://bitbucket.org/wez/atomicparsley/"
 distfiles="https://bitbucket.org/wez/atomicparsley/get/${version}.tar.gz"
 checksum=8ba4e3e21d7a9239932e2a6f34842194d8f9eba84ce9eb83fb35369f5f3f05ab
-patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/atop/patches/atop-bb-compat.patch b/srcpkgs/atop/patches/atop-bb-compat.patch
index 5173ba56f874..86d0f601b47c 100644
--- a/srcpkgs/atop/patches/atop-bb-compat.patch
+++ b/srcpkgs/atop/patches/atop-bb-compat.patch
@@ -1,7 +1,7 @@
 diff --git atop.daily atop.daily
 index c72214c..ac4b3b7 100755
---- atop.daily
-+++ atop.daily
+--- a/atop.daily
++++ a/atop.daily
 @@ -1,4 +1,4 @@
 -#!/bin/bash
 +#!/bin/sh
diff --git a/srcpkgs/atop/patches/fix-cflags.patch b/srcpkgs/atop/patches/fix-cflags.patch
index bf26f434cdc7..80b52a943ada 100644
--- a/srcpkgs/atop/patches/fix-cflags.patch
+++ b/srcpkgs/atop/patches/fix-cflags.patch
@@ -1,5 +1,5 @@
---- Makefile.orig	2016-02-26 23:20:11.536799936 +0100
-+++ Makefile	2016-02-26 23:20:19.545799337 +0100
+--- a/Makefile
++++ a/Makefile
 @@ -39,7 +39,7 @@ atopacctd:	atopacctd.o netlink.o
  		$(CC) atopacctd.o netlink.o -o atopacctd $(LDFLAGS)
  
diff --git a/srcpkgs/atop/patches/musl-fix-includes.patch b/srcpkgs/atop/patches/musl-fix-includes.patch
index ae1cff096630..49c04e502efb 100644
--- a/srcpkgs/atop/patches/musl-fix-includes.patch
+++ b/srcpkgs/atop/patches/musl-fix-includes.patch
@@ -1,5 +1,5 @@
---- deviate.c.orig
-+++ deviate.c
+--- a/deviate.c.orig
++++ a/deviate.c
 @@ -178,6 +178,7 @@
  #include <stdio.h>
  #include <errno.h>
@@ -8,8 +8,8 @@
  #include <unistd.h>
  #include <limits.h>
  #include <memory.h>
---- procdbase.c.orig
-+++ procdbase.c
+--- a/procdbase.c.orig
++++ a/procdbase.c
 @@ -67,7 +67,7 @@
  #include <fcntl.h>
  #include <unistd.h>
diff --git a/srcpkgs/atop/template b/srcpkgs/atop/template
index 8ba868d263e3..8c981e657879 100644
--- a/srcpkgs/atop/template
+++ b/srcpkgs/atop/template
@@ -12,7 +12,6 @@ homepage="https://www.atoptool.nl/"
 distfiles="https://www.atoptool.nl/download/atop-${version}.tar.gz"
 checksum=4b911057ce50463b6e8b3016c5963d48535c0cddeebc6eda817e292b22f93f33
 python_version=2 #unverified
-patch_args=-Np0
 
 make_dirs="/var/log/atop 755 root root"
 
diff --git a/srcpkgs/attic/patches/openssl.diff b/srcpkgs/attic/patches/openssl.diff
index c289a1dc267c..7af88a52deb7 100644
--- a/srcpkgs/attic/patches/openssl.diff
+++ b/srcpkgs/attic/patches/openssl.diff
@@ -1,5 +1,5 @@
---- attic/crypto.pyx
-+++ attic/crypto.pyx
+--- a/attic/crypto.pyx
++++ a/attic/crypto.pyx
 @@ -23,8 +23,9 @@ cdef extern from "openssl/evp.h":
          pass
      const EVP_MD *EVP_sha256()
diff --git a/srcpkgs/attic/template b/srcpkgs/attic/template
index 3e7feff29c04..153c0341edcb 100644
--- a/srcpkgs/attic/template
+++ b/srcpkgs/attic/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause"
 homepage="https://attic-backup.org/"
 distfiles="${PYPI_SITE}/A/Attic/Attic-${version}.tar.gz"
 checksum=6650cd28072101c2e05941e77b93a62f91da6179785e4e4b4880916c469bba2c
-patch_args=-Np0
 
 pre_build() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/attract/patches/Makefile.patch b/srcpkgs/attract/patches/Makefile.patch
index b530db21dc5e..674de9175195 100644
--- a/srcpkgs/attract/patches/Makefile.patch
+++ b/srcpkgs/attract/patches/Makefile.patch
@@ -1,5 +1,5 @@
---- Makefile	2016-12-06 21:40:22.715155552 +0100
-+++ Makefile	2016-12-06 21:41:39.523155740 +0100
+--- a/Makefile
++++ a/Makefile
 @@ -50,12 +50,8 @@
  
  FE_VERSION=v2.2.0
diff --git a/srcpkgs/attract/patches/fix-musl.patch b/srcpkgs/attract/patches/fix-musl.patch
index c6bb5eacd8ba..7dce42c7e553 100644
--- a/srcpkgs/attract/patches/fix-musl.patch
+++ b/srcpkgs/attract/patches/fix-musl.patch
@@ -1,5 +1,5 @@
---- extlibs/gameswf/base/utility.cpp	2016-11-08 08:06:21.000000000 +0100
-+++ extlibs/gameswf/base/utility.cpp	2016-12-06 22:03:53.042131946 +0100
+--- a/extlibs/gameswf/base/utility.cpp
++++ a/extlibs/gameswf/base/utility.cpp
 @@ -41,7 +41,7 @@
  {
  
diff --git a/srcpkgs/attract/template b/srcpkgs/attract/template
index dd2419954f94..ceff4287193d 100644
--- a/srcpkgs/attract/template
+++ b/srcpkgs/attract/template
@@ -14,7 +14,6 @@ license="GPL-3.0-or-later"
 homepage="http://attractmode.org/"
 distfiles="https://github.com/mickelson/attract/archive/v${version}.tar.gz"
 checksum=4c17641ce0a0b9ff77da5e75f0cb26cc48e4c6295ef57d86a37db18b2bd9fbe9
-patch_args=-Np0
 
 CFLAGS="-std=gnu++11 \
 	-I extlibs/audio/include \
diff --git a/srcpkgs/aubio/patches/disable-tests.patch b/srcpkgs/aubio/patches/disable-tests.patch
index 1502fa79a048..29a8aef66538 100644
--- a/srcpkgs/aubio/patches/disable-tests.patch
+++ b/srcpkgs/aubio/patches/disable-tests.patch
@@ -2,8 +2,8 @@ breaks cross-compilation
 
 diff --git a/wscript b/wscript
 index c08298c..1443ae2 100644
---- wscript
-+++ wscript
+--- a/wscript
++++ a/wscript
 @@ -494,8 +494,6 @@ def build(bld):
              bld.options.testcmd = 'node %s'
          if bld.options.enable_examples:
diff --git a/srcpkgs/aubio/template b/srcpkgs/aubio/template
index c903e81ed8d5..eaab3e9fdb72 100644
--- a/srcpkgs/aubio/template
+++ b/srcpkgs/aubio/template
@@ -12,7 +12,6 @@ license="GPL-3.0-or-later"
 homepage="http://aubio.org"
 distfiles="${homepage}/pub/${pkgname}-${version}.tar.bz2"
 checksum=d48282ae4dab83b3dc94c16cf011bcb63835c1c02b515490e1883049c3d1f3da
-patch_args=-Np0
 
 libaubio_package() {
 	short_desc+=" - Runtime libraries"
diff --git a/srcpkgs/audacity/patches/configure.patch b/srcpkgs/audacity/patches/configure.patch
index 3b9c576c3f29..58e865af0774 100644
--- a/srcpkgs/audacity/patches/configure.patch
+++ b/srcpkgs/audacity/patches/configure.patch
@@ -1,8 +1,8 @@
 configure uses AC_CHECK_FILE to test for file existence which is
 cross incompatible. Changed it to simple if/else statements.
 
---- configure.orig	2017-10-26 19:44:39.000000000 +0200
-+++ configure	2017-11-09 21:23:45.099433701 +0100
+--- a/configure
++++ a/configure
 @@ -20200,29 +20200,11 @@
     fi
  
diff --git a/srcpkgs/audacity/template b/srcpkgs/audacity/template
index 4ed153f8b74c..c91520872ce5 100644
--- a/srcpkgs/audacity/template
+++ b/srcpkgs/audacity/template
@@ -18,7 +18,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.audacityteam.org"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/Audacity-${version}.tar.gz"
 checksum=50240f07471373a7e5c2df65cc26eeeaaced9a0850ad1f95cb795f171ea3009f
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) ;;
diff --git a/srcpkgs/audiofile/patches/004-CVE-2017-6829.patch b/srcpkgs/audiofile/patches/004-CVE-2017-6829.patch
index 91330ba1bb69..153bce3af544 100644
--- a/srcpkgs/audiofile/patches/004-CVE-2017-6829.patch
+++ b/srcpkgs/audiofile/patches/004-CVE-2017-6829.patch
@@ -11,8 +11,8 @@ and https://blogs.gentoo.org/ago/2017/02/20/audiofile-global-buffer-overflow-in-
 
 diff --git a/libaudiofile/modules/IMA.cpp b/libaudiofile/modules/IMA.cpp
 index 7476d44..df4aad6 100644
---- libaudiofile/modules/IMA.cpp
-+++ libaudiofile/modules/IMA.cpp
+--- a/libaudiofile/modules/IMA.cpp
++++ a/libaudiofile/modules/IMA.cpp
 @@ -169,7 +169,7 @@ int IMA::decodeBlockWAVE(const uint8_t *encoded, int16_t *decoded)
  		if (encoded[1] & 0x80)
  			m_adpcmState[c].previousValue -= 0x10000;
diff --git a/srcpkgs/audiofile/patches/005-CVE-2017-6827-CVE-2017-6828-CVE-2017-6832-CVE-2017-6833-CVE-2017-6835-CVE-2017-6837.patch b/srcpkgs/audiofile/patches/005-CVE-2017-6827-CVE-2017-6828-CVE-2017-6832-CVE-2017-6833-CVE-2017-6835-CVE-2017-6837.patch
index 6914a46802e8..9f3ab6351562 100644
--- a/srcpkgs/audiofile/patches/005-CVE-2017-6827-CVE-2017-6828-CVE-2017-6832-CVE-2017-6833-CVE-2017-6835-CVE-2017-6837.patch
+++ b/srcpkgs/audiofile/patches/005-CVE-2017-6827-CVE-2017-6828-CVE-2017-6832-CVE-2017-6833-CVE-2017-6835-CVE-2017-6837.patch
@@ -13,8 +13,8 @@ This fixes the 00191-audiofile-indexoob issue in #41
 
 diff --git a/libaudiofile/WAVE.cpp b/libaudiofile/WAVE.cpp
 index 9dd8511..0fc48e8 100644
---- libaudiofile/WAVE.cpp
-+++ libaudiofile/WAVE.cpp
+--- a/libaudiofile/WAVE.cpp
++++ a/libaudiofile/WAVE.cpp
 @@ -281,6 +281,12 @@ status WAVEFile::parseFormat(const Tag &id, uint32_t size)
  
  			/* numCoefficients should be at least 7. */
diff --git a/srcpkgs/audiofile/patches/006-CVE-2017-6839.patch b/srcpkgs/audiofile/patches/006-CVE-2017-6839.patch
index f0e1bc56372b..ca8cee6cbf68 100644
--- a/srcpkgs/audiofile/patches/006-CVE-2017-6839.patch
+++ b/srcpkgs/audiofile/patches/006-CVE-2017-6839.patch
@@ -14,8 +14,8 @@ This fixes the 00193-audiofile-signintoverflow-MSADPCM case of #41
 
 diff --git a/libaudiofile/modules/BlockCodec.cpp b/libaudiofile/modules/BlockCodec.cpp
 index 45925e8..4731be1 100644
---- libaudiofile/modules/BlockCodec.cpp
-+++ libaudiofile/modules/BlockCodec.cpp
+--- a/libaudiofile/modules/BlockCodec.cpp
++++ a/libaudiofile/modules/BlockCodec.cpp
 @@ -52,8 +52,9 @@ void BlockCodec::runPull()
  	// Decompress into m_outChunk.
  	for (int i=0; i<blocksRead; i++)
@@ -30,8 +30,8 @@ index 45925e8..4731be1 100644
  	}
 diff --git a/libaudiofile/modules/MSADPCM.cpp b/libaudiofile/modules/MSADPCM.cpp
 index 8ea3c85..ef9c38c 100644
---- libaudiofile/modules/MSADPCM.cpp
-+++ libaudiofile/modules/MSADPCM.cpp
+--- a/libaudiofile/modules/MSADPCM.cpp
++++ a/libaudiofile/modules/MSADPCM.cpp
 @@ -101,24 +101,60 @@ static const int16_t adaptationTable[] =
  	768, 614, 512, 409, 307, 230, 230, 230
  };
diff --git a/srcpkgs/audiofile/patches/007-CVE-2017-6830-CVE-2017-6834-CVE-2017-6836-CVE-2017-6838.patch b/srcpkgs/audiofile/patches/007-CVE-2017-6830-CVE-2017-6834-CVE-2017-6836-CVE-2017-6838.patch
index ba24efa05fd1..25eb58db6cd2 100644
--- a/srcpkgs/audiofile/patches/007-CVE-2017-6830-CVE-2017-6834-CVE-2017-6836-CVE-2017-6838.patch
+++ b/srcpkgs/audiofile/patches/007-CVE-2017-6830-CVE-2017-6834-CVE-2017-6836-CVE-2017-6838.patch
@@ -14,8 +14,8 @@ in #41
 
 diff --git a/sfcommands/sfconvert.c b/sfcommands/sfconvert.c
 index 80a1bc4..970a3e4 100644
---- sfcommands/sfconvert.c
-+++ sfcommands/sfconvert.c
+--- a/sfcommands/sfconvert.c
++++ a/sfcommands/sfconvert.c
 @@ -45,6 +45,33 @@ void printusage (void);
  void usageerror (void);
  bool copyaudiodata (AFfilehandle infile, AFfilehandle outfile, int trackid);
diff --git a/srcpkgs/audiofile/patches/009-CVE-2017-6831.patch b/srcpkgs/audiofile/patches/009-CVE-2017-6831.patch
index d0cdff4999a8..21436a2ac9ee 100644
--- a/srcpkgs/audiofile/patches/009-CVE-2017-6831.patch
+++ b/srcpkgs/audiofile/patches/009-CVE-2017-6831.patch
@@ -16,8 +16,8 @@ https://blogs.gentoo.org/ago/2017/02/20/audiofile-heap-based-buffer-overflow-in-
 
 diff --git a/libaudiofile/WAVE.cpp b/libaudiofile/WAVE.cpp
 index 0fc48e8..d04b796 100644
---- libaudiofile/WAVE.cpp
-+++ libaudiofile/WAVE.cpp
+--- a/libaudiofile/WAVE.cpp
++++ a/libaudiofile/WAVE.cpp
 @@ -332,6 +332,7 @@ status WAVEFile::parseFormat(const Tag &id, uint32_t size)
  			{
  				_af_error(AF_BAD_NOT_IMPLEMENTED,
diff --git a/srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch b/srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch
index 77ec7675cdb5..08aa01862f97 100644
--- a/srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch
+++ b/srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch
@@ -1,5 +1,5 @@
---- libaudiofile/modules/SimpleModule.h	2013-03-07 08:14:57.000000000 +0100
-+++ libaudiofile/modules/SimpleModule.h	2016-09-27 13:49:59.329194632 +0200
+--- a/libaudiofile/modules/SimpleModule.h
++++ a/libaudiofile/modules/SimpleModule.h
 @@ -123,7 +123,7 @@
  	typedef typename IntTypes<Format>::UnsignedType UnsignedType;
  
diff --git a/srcpkgs/audiofile/template b/srcpkgs/audiofile/template
index 7779d5ec2034..a4eef3f40260 100644
--- a/srcpkgs/audiofile/template
+++ b/srcpkgs/audiofile/template
@@ -13,7 +13,6 @@ homepage="http://audiofile.68k.org"
 distfiles="http://github.com/mpruett/audiofile/archive/audiofile-${version}.tar.gz"
 checksum=52125fee6c7454d743acdc27ebda194c6b5c7b9111426c7d5fdea0754cd366cc
 disable_parallel_build=1
-patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/auto-auto-complete/patches/fish-completion-vendor.patch b/srcpkgs/auto-auto-complete/patches/fish-completion-vendor.patch
index 0d24ff97ae05..bc3e0c83a9a1 100644
--- a/srcpkgs/auto-auto-complete/patches/fish-completion-vendor.patch
+++ b/srcpkgs/auto-auto-complete/patches/fish-completion-vendor.patch
@@ -19,8 +19,8 @@ This isn't an issue here (yet) but it conforms to the docs.
 
 diff --git a/Makefile b/Makefile
 index d7e331d..6506628 100644
---- Makefile
-+++ Makefile
+--- a/Makefile
++++ a/Makefile
 @@ -188,8 +188,8 @@ install-zsh: bin/auto-auto-complete.zsh
  
  .PHONY: install-fish
diff --git a/srcpkgs/auto-auto-complete/template b/srcpkgs/auto-auto-complete/template
index 24a3eb40df42..065d615c2b59 100644
--- a/srcpkgs/auto-auto-complete/template
+++ b/srcpkgs/auto-auto-complete/template
@@ -11,4 +11,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/maandree/auto-auto-complete"
 distfiles="https://github.com/maandree/${pkgname}/archive/${version}.tar.gz"
 checksum=5e54025c6ef65dfff5ba976d23eb778a0936b0678763ebcd78359d460300301e
-patch_args=-Np0
diff --git a/srcpkgs/autoconf/patches/fix-perl-5.22-autoscan.patch b/srcpkgs/autoconf/patches/fix-perl-5.22-autoscan.patch
index ca1703bcf12d..29cb6c5bed26 100644
--- a/srcpkgs/autoconf/patches/fix-perl-5.22-autoscan.patch
+++ b/srcpkgs/autoconf/patches/fix-perl-5.22-autoscan.patch
@@ -10,8 +10,8 @@ feature that is deprecated in Perl 5.17.  Reported by Ray Lauff in
  bin/autoscan.in | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
---- bin/autoscan.in
-+++ bin/autoscan.in
+--- a/bin/autoscan.in
++++ a/bin/autoscan.in
 @@ -358,7 +358,7 @@ sub scan_sh_file ($)
      {
        # Strip out comments and variable references.
diff --git a/srcpkgs/autoconf/template b/srcpkgs/autoconf/template
index a3018bf709b9..260e8c753f07 100644
--- a/srcpkgs/autoconf/template
+++ b/srcpkgs/autoconf/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/autoconf"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=64ebcec9f8ac5b2487125a86a7760d2591ac9e1d3dbd59489633f9de62a57684
-patch_args=-Np0
 
 pre_check() {
 	# Disable failing test by adding
diff --git a/srcpkgs/autoconf213/patches/patch-aa.diff b/srcpkgs/autoconf213/patches/patch-aa.diff
index 4fcbe3ba7bfb..ef2706d23368 100644
--- a/srcpkgs/autoconf213/patches/patch-aa.diff
+++ b/srcpkgs/autoconf213/patches/patch-aa.diff
@@ -1,7 +1,7 @@
 $NetBSD: patch-aa,v 1.2 2006/11/02 18:17:22 joerg Exp $
 
---- Makefile.in.orig	1999-01-05 13:27:16.000000000 +0000
-+++ Makefile.in
+--- a/Makefile.in
++++ a/Makefile.in
 @@ -137,36 +137,32 @@ installcheck: all install
  	cd testsuite && ${MAKE} AUTOCONF=${bindir}/autoconf $@
  
diff --git a/srcpkgs/autoconf213/patches/patch-ab.diff b/srcpkgs/autoconf213/patches/patch-ab.diff
index 3ed6ee487050..2bb108bea24c 100644
--- a/srcpkgs/autoconf213/patches/patch-ab.diff
+++ b/srcpkgs/autoconf213/patches/patch-ab.diff
@@ -1,7 +1,7 @@
 $NetBSD: patch-ab,v 1.1.1.1 2002/10/03 19:25:04 wiz Exp $
 
---- autoconf.texi.orig	Tue Jan  5 14:28:37 1999
-+++ autoconf.texi
+--- a/autoconf.texi
++++ a/autoconf.texi
 @@ -4,6 +4,7 @@
  @settitle Autoconf
  @c For double-sided printing, uncomment:
diff --git a/srcpkgs/autoconf213/patches/patch-ac.diff b/srcpkgs/autoconf213/patches/patch-ac.diff
index 6b5f4f1e6ab0..c68625c423ba 100644
--- a/srcpkgs/autoconf213/patches/patch-ac.diff
+++ b/srcpkgs/autoconf213/patches/patch-ac.diff
@@ -1,7 +1,7 @@
 $NetBSD: patch-ac,v 1.1.1.1 2002/10/03 19:25:04 wiz Exp $
 
---- autoreconf.sh.orig	Tue Jan  5 14:28:40 1999
-+++ autoreconf.sh
+--- a/autoreconf.sh
++++ a/autoreconf.sh
 @@ -143,7 +143,7 @@ while read dir; do
  	:
       else
diff --git a/srcpkgs/autoconf213/template b/srcpkgs/autoconf213/template
index ebbcb4df4549..31f07cb74c00 100644
--- a/srcpkgs/autoconf213/template
+++ b/srcpkgs/autoconf213/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://www.gnu.org/software/autoconf"
 distfiles="${GNU_SITE}/autoconf/autoconf-$version.tar.gz"
 checksum=f0611136bee505811e9ca11ca7ac188ef5323a8e2ef19cffd3edb3cf08fd791e
-patch_args=-Np0
 
 post_install() {
 	# Avoid conflict with other versions.
diff --git a/srcpkgs/autofs/patches/musl.patch b/srcpkgs/autofs/patches/musl.patch
index 5825d646a843..c8b5e8ce462b 100644
--- a/srcpkgs/autofs/patches/musl.patch
+++ b/srcpkgs/autofs/patches/musl.patch
@@ -1,5 +1,5 @@
---- lib/nss_parse.y.orig	2016-01-10 10:07:26.854512310 +0100
-+++ lib/nss_parse.y	2016-01-10 10:07:53.134783321 +0100
+--- a/lib/nss_parse.y
++++ a/lib/nss_parse.y
 @@ -28,6 +28,10 @@
  #include "nsswitch.h"
  #include "nss_parse.tab.h"
@@ -11,8 +11,8 @@
  static pthread_mutex_t parse_mutex = PTHREAD_MUTEX_INITIALIZER;
  
  static struct list_head *nss_list;
---- daemon/automount.c.orig	2016-01-10 10:10:23.680333952 +0100
-+++ daemon/automount.c	2016-01-10 10:10:35.599456586 +0100
+--- a/daemon/automount.c
++++ a/daemon/automount.c
 @@ -37,6 +37,14 @@
  #include <sys/vfs.h>
  #include <sys/utsname.h>
@@ -28,8 +28,8 @@
  #include "automount.h"
  #if defined(LIBXML2_WORKAROUND) || defined(TIRPC_WORKAROUND)
  #include <dlfcn.h>
---- lib/log.c.orig     2019-03-30 10:49:52.965336128 +0100
-+++ lib/log.c  2019-03-30 10:50:43.232710045 +0100
+--- a/lib/log.c.orig     2019-03-30 10:49:52.965336128 +0100
++++ a/lib/log.c  2019-03-30 10:50:43.232710045 +0100
 @@ -38,7 +38,11 @@ static char *prepare_attempt_prefix(cons
        char buffer[ATTEMPT_ID_SIZE + 1];
        char *prefixed_msg = NULL;
@@ -43,8 +43,8 @@
        if (attempt_id) {
                int len = sizeof(buffer) + 1 + strlen(msg) + 1;
  
---- include/hash.h.orig	2021-01-31 09:22:19.668222263 +0100
-+++ include/hash.h	2021-01-31 09:22:41.390327622 +0100
+--- a/include/hash.h
++++ a/include/hash.h
 @@ -5,6 +5,11 @@
  
  #include <sys/types.h>
diff --git a/srcpkgs/autofs/template b/srcpkgs/autofs/template
index bd2ab2792540..b306368242d3 100644
--- a/srcpkgs/autofs/template
+++ b/srcpkgs/autofs/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/daemons/autofs"
 distfiles="${KERNEL_SITE}/daemons/autofs/v5/autofs-${version}.tar.xz"
 checksum=a36b268611b79b07051749870ba540b139938efc84bc0293244c483e94f9ced7
-patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/gssglue -I${XBPS_CROSS_BASE}/usr/include/tirpc"
 
diff --git a/srcpkgs/autogen/patches/autogen-5.18.16-rpath.patch b/srcpkgs/autogen/patches/autogen-5.18.16-rpath.patch
index 27c9c33cbe75..a5b76be88669 100644
--- a/srcpkgs/autogen/patches/autogen-5.18.16-rpath.patch
+++ b/srcpkgs/autogen/patches/autogen-5.18.16-rpath.patch
@@ -1,5 +1,5 @@
---- agen5/Makefile.am
-+++ agen5/Makefile.am
+--- a/agen5/Makefile.am
++++ a/agen5/Makefile.am
 @@ -63,7 +63,7 @@ SNV_LIB         = $(top_builddir)/snprintfv/libsnprintfv.la
  nodist_autogen_SOURCES = ag.c
  autogen_SOURCES = $(gen_csrc)
@@ -9,8 +9,8 @@
  autogen_CFLAGS  = $(GUILE_CFLAGS)
  stamp_script    = $(srcdir)/mk-stamps.sh
 
---- agen5/Makefile.in
-+++ agen5/Makefile.in
+--- a/agen5/Makefile.in
++++ a/agen5/Makefile.in
 @@ -482,7 +482,7 @@ SNV_LIB = $(top_builddir)/snprintfv/libsnprintfv.la
  nodist_autogen_SOURCES = ag.c
  autogen_SOURCES = $(gen_csrc)
@@ -20,8 +20,8 @@
  autogen_CFLAGS = $(GUILE_CFLAGS)
  stamp_script = $(srcdir)/mk-stamps.sh
  AM_YFLAGS = -d
---- columns/Makefile.am
-+++ columns/Makefile.am
+--- a/columns/Makefile.am
++++ a/columns/Makefile.am
 @@ -20,7 +20,7 @@
  ## with this program.  If not, see <http://www.gnu.org/licenses/>.
  
@@ -31,8 +31,8 @@
  csrc            = opts.h columns.c opts.c
  nodist_columns_SOURCES = cols.c
  
---- columns/Makefile.in
-+++ columns/Makefile.in
+--- a/columns/Makefile.in
++++ a/columns/Makefile.in
 @@ -389,7 +389,7 @@ target_vendor = @target_vendor@
  top_build_prefix = @top_build_prefix@
  top_builddir = @top_builddir@
@@ -42,8 +42,8 @@
  csrc = opts.h columns.c opts.c
  nodist_columns_SOURCES = cols.c
  LO_LIB = $(top_builddir)/autoopts/libopts.la
---- getdefs/Makefile.am
-+++ getdefs/Makefile.am
+--- a/getdefs/Makefile.am
++++ a/getdefs/Makefile.am
 @@ -23,7 +23,7 @@
  TARG = getdefs
  
@@ -53,8 +53,8 @@
  gdsrcs          = getdefs.h proto.h gdemit.c gdinit.c getdefs.c
  getdefs_SOURCES = proto.h
  BUILT_SOURCES   = gd.c
---- getdefs/Makefile.in
-+++ getdefs/Makefile.in
+--- a/getdefs/Makefile.in
++++ a/getdefs/Makefile.in
 @@ -434,7 +434,7 @@ top_build_prefix = @top_build_prefix@
  top_builddir = @top_builddir@
  top_srcdir = @top_srcdir@
diff --git a/srcpkgs/autogen/patches/build-aux.patch b/srcpkgs/autogen/patches/build-aux.patch
index 9e5ac52deef2..d51a5a636989 100644
--- a/srcpkgs/autogen/patches/build-aux.patch
+++ b/srcpkgs/autogen/patches/build-aux.patch
@@ -1,7 +1,7 @@
 diff --git build-aux/run-ag.sh build-aux/run-ag.sh
 index 6ee7b85..f604462 100755
---- build-aux/run-ag.sh
-+++ build-aux/run-ag.sh
+--- a/build-aux/run-ag.sh
++++ a/build-aux/run-ag.sh
 @@ -25,7 +25,7 @@
  # any containing directory must be created. The target is created with a
  # very old time stamp.
@@ -13,8 +13,8 @@ index 6ee7b85..f604462 100755
    test -x "$exe" && return 0
 diff --git getdefs/Makefile.in getdefs/Makefile.in
 index 058d0a6..7a17783 100644
---- getdefs/Makefile.in
-+++ getdefs/Makefile.in
+--- a/getdefs/Makefile.in
++++ a/getdefs/Makefile.in
 @@ -275,7 +275,7 @@ AG_STATIC_AUTOGEN = @AG_STATIC_AUTOGEN@
  AG_TIMEOUT = @AG_TIMEOUT@
  AG_VERSION = @AG_VERSION@
diff --git a/srcpkgs/autogen/patches/configure.patch b/srcpkgs/autogen/patches/configure.patch
index bb9ece30ce55..a427c76e1f4b 100644
--- a/srcpkgs/autogen/patches/configure.patch
+++ b/srcpkgs/autogen/patches/configure.patch
@@ -1,7 +1,7 @@
 diff --git configure configure
 index f149ede..e75e3f0 100755
---- configure
-+++ configure
+--- a/configure
++++ a/configure
 @@ -17324,7 +17324,7 @@ $as_echo_n "checking whether strcspn matches prototype and works... " >&6; }
    $as_echo_n "(cached) " >&6
  else
diff --git a/srcpkgs/autogen/template b/srcpkgs/autogen/template
index 3b6d72d5090d..cfc9d20c9df8 100644
--- a/srcpkgs/autogen/template
+++ b/srcpkgs/autogen/template
@@ -17,7 +17,6 @@ replaces="autogen-docs>=0 autogen-devel>=0"
 _libopts=libopts-42.1.17.tar.gz
 CFLAGS="-Wno-error=format-truncation -Wno-error=format-overflow
 	-Wno-error=unused-parameter"
-patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" autogen guile-devel"
diff --git a/srcpkgs/avidemux/patches/musl-execinfo.patch b/srcpkgs/avidemux/patches/musl-execinfo.patch
index 352f73520ab1..23505c2dfc53 100644
--- a/srcpkgs/avidemux/patches/musl-execinfo.patch
+++ b/srcpkgs/avidemux/patches/musl-execinfo.patch
@@ -1,5 +1,5 @@
---- avidemux_core/ADM_core/src/ADM_crashdump_unix.cpp	2016-03-05 09:22:54.000000000 +0100
-+++ avidemux_core/ADM_core/src/ADM_crashdump_unix.cpp	2016-03-08 03:06:07.328943375 +0100
+--- a/avidemux_core/ADM_core/src/ADM_crashdump_unix.cpp
++++ a/avidemux_core/ADM_core/src/ADM_crashdump_unix.cpp
 @@ -30,7 +30,7 @@
  #define	_ELF64
  #endif
diff --git a/srcpkgs/avidemux/patches/musl-memcpy.patch b/srcpkgs/avidemux/patches/musl-memcpy.patch
index c4b082fc4f1a..ae003233ef33 100644
--- a/srcpkgs/avidemux/patches/musl-memcpy.patch
+++ b/srcpkgs/avidemux/patches/musl-memcpy.patch
@@ -1,5 +1,5 @@
---- avidemux_core/ADM_core/include/ADM_assert.h	2015-06-10 07:42:47.000000000 +0200
-+++ avidemux_core/ADM_core/include/ADM_assert.h	2015-09-28 08:08:55.729367070 +0200
+--- a/avidemux_core/ADM_core/include/ADM_assert.h
++++ a/avidemux_core/ADM_core/include/ADM_assert.h
 @@ -69,7 +69,7 @@
  
  #define ADM_dealloc(x) ADM_dezalloc( (void *)x)
diff --git a/srcpkgs/avidemux/patches/use-realpath.patch b/srcpkgs/avidemux/patches/use-realpath.patch
index ed32ae325e29..26b33f6a76d5 100644
--- a/srcpkgs/avidemux/patches/use-realpath.patch
+++ b/srcpkgs/avidemux/patches/use-realpath.patch
@@ -1,5 +1,5 @@
---- avidemux_core/ADM_core/src/ADM_folder_linux.cpp	2016-11-19 08:58:39.000000000 +0100
-+++ avidemux_core/ADM_core/src/ADM_folder_linux.cpp	2016-11-21 07:05:07.700699647 +0100
+--- a/avidemux_core/ADM_core/src/ADM_folder_linux.cpp
++++ a/avidemux_core/ADM_core/src/ADM_folder_linux.cpp
 @@ -39,7 +39,7 @@
  static std::string canonize(const std::string &in)
  {
diff --git a/srcpkgs/avidemux/template b/srcpkgs/avidemux/template
index abedf3e2bc0c..e62a3bc2c436 100644
--- a/srcpkgs/avidemux/template
+++ b/srcpkgs/avidemux/template
@@ -19,7 +19,6 @@ homepage="http://avidemux.sourceforge.net/"
 changelog="http://avidemux.sourceforge.net/news.html"
 distfiles="${SOURCEFORGE_SITE}/avidemux/avidemux/${version}/${pkgname}_${version}.tar.gz"
 checksum=9a88741f3535443d4bde35d4207ca2ff96d3b136db2e7232cb50dd6b4eb293cf
-patch_args=-Np0
 
 do_configure() {
 	MAKEFLAGS=${makejobs} \
diff --git a/srcpkgs/avr-binutils/patches/avr-size.patch b/srcpkgs/avr-binutils/patches/avr-size.patch
index e9065e9ec556..2f3e7264ffd1 100644
--- a/srcpkgs/avr-binutils/patches/avr-size.patch
+++ b/srcpkgs/avr-binutils/patches/avr-size.patch
@@ -1,7 +1,7 @@
 AVR specific only
 ===========================================================
---- binutils/size.c	2007-08-06 13:56:14.000000000 -0600
-+++ binutils/size.c	2007-09-13 09:13:10.281250000 -0600
+--- a/binutils/size.c
++++ a/binutils/size.c
 @@ -36,10 +36,31 @@
  #include "getopt.h"
  #include "bucomm.h"
diff --git a/srcpkgs/avr-binutils/template b/srcpkgs/avr-binutils/template
index d00bec12e17a..7d3a15725c57 100644
--- a/srcpkgs/avr-binutils/template
+++ b/srcpkgs/avr-binutils/template
@@ -14,7 +14,6 @@ license="GPL-3.0-only"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="$GNU_SITE/binutils/binutils-$version.tar.xz"
 checksum=0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04
-patch_args=-Np0
 
 post_install() {
 	rm -rf "$DESTDIR"/usr/share/info \
diff --git a/srcpkgs/azpainter/patches/0001-fix-configure-error.patch b/srcpkgs/azpainter/patches/0001-fix-configure-error.patch
index 00ecc7e64ef9..665a9f0ccfbe 100644
--- a/srcpkgs/azpainter/patches/0001-fix-configure-error.patch
+++ b/srcpkgs/azpainter/patches/0001-fix-configure-error.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] fix configure error
 
 diff --git configure configure
 index cb9a9f6..06e65e0 100755
---- configure
-+++ configure
+--- a/configure
++++ a/configure
 @@ -203,9 +203,6 @@ for opt;do
  		cf_check_lib=no ;;
  	*=*)
@@ -26,8 +26,8 @@ index cb9a9f6..06e65e0 100755
 
 diff --git configure configure
 index 06e65e0..b10aed0 100755
---- configure
-+++ configure
+--- a/configure
++++ a/configure
 @@ -201,8 +201,6 @@ for opt;do
  		cf_docdir=$tmp1 ;;
  	--no-check-lib)
diff --git a/srcpkgs/azpainter/patches/fix-compiler-environment.patch b/srcpkgs/azpainter/patches/fix-compiler-environment.patch
index 86418e450b80..fd6cec2c25ce 100644
--- a/srcpkgs/azpainter/patches/fix-compiler-environment.patch
+++ b/srcpkgs/azpainter/patches/fix-compiler-environment.patch
@@ -1,5 +1,5 @@
---- configure
-+++ configure
+--- a/configure
++++ a/configure
 @@ -150,10 +150,11 @@ fc_check_command_err sed
  #-------------
  # option
diff --git a/srcpkgs/azpainter/template b/srcpkgs/azpainter/template
index b47d36fbe7ac..05bd1be32771 100644
--- a/srcpkgs/azpainter/template
+++ b/srcpkgs/azpainter/template
@@ -13,4 +13,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/Symbian9/azpainter"
 distfiles="https://github.com/Symbian9/azpainter/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=85f3f935e76b420f2e5e272514368fdfbe4c25c01daa1e161ac28a6e1edb0d2c
-patch_args=-Np0

From 46923acb7adbdc97ce57f6bf97c2f8be1600bc84 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 18:28:11 +0700
Subject: [PATCH 8/8] srcpkgs/b*: convert patches to -Np1

```sh

git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,/^--- /dev/null,b
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s/\(.orig\)*	.*//
			}
			/^+++ /{
				s,\(^+++ \)\(./\)*,\1a/,
				s/	.*//
			}
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
---
 srcpkgs/bacula-common/patches/fix-cross.patch |  4 +-
 srcpkgs/bacula-common/patches/fix-musl.patch  |  4 +-
 srcpkgs/bacula-common/template                |  1 -
 srcpkgs/balsa/patches/portability.patch       |  4 +-
 srcpkgs/balsa/template                        |  1 -
 srcpkgs/bananapi-uboot/patches/musl.patch     | 12 +--
 .../no-inline-show_boot_progress.patch        |  4 +-
 .../patches/no-inline-weak.patch              |  4 +-
 .../patches/static-inline.patch               |  4 +-
 srcpkgs/bananapi-uboot/template               |  1 -
 srcpkgs/basu/patches/uid-nobody.patch         |  4 +-
 srcpkgs/basu/template                         |  1 -
 srcpkgs/batctl14/patches/musl.patch           | 16 ++--
 srcpkgs/batctl14/template                     |  1 -
 .../batman-adv14/patches/0001-fix-build.diff  | 88 +++++++++----------
 srcpkgs/batman-adv14/template                 |  1 -
 srcpkgs/bbkeys/patches/fix-cross.patch        |  8 +-
 srcpkgs/bbkeys/template                       |  1 -
 ...s-structure-for-kernel-version-5.6.0.patch |  4 +-
 .../0002-Add-missing-proc_fs.h-header.patch   |  4 +-
 srcpkgs/bbswitch/template                     |  1 -
 srcpkgs/bc/patches/read.patch                 |  4 +-
 srcpkgs/bc/template                           |  1 -
 srcpkgs/bcc/patches/musl.patch                | 20 ++---
 srcpkgs/bcc/template                          |  1 -
 .../bctoolbox/patches/cmake-bcunit-fix.patch  |  4 +-
 srcpkgs/bctoolbox/template                    |  1 -
 srcpkgs/beep/patches/CVE-2018-0492.patch      |  4 +-
 srcpkgs/beep/template                         |  1 -
 srcpkgs/beets/patches/python-3.8.patch        |  4 +-
 srcpkgs/beets/template                        |  1 -
 srcpkgs/beignet/patches/cl_uint.patch         |  8 +-
 ...419a0008e38ef2d9d255d9e9c74e9fba084b.patch | 24 ++---
 srcpkgs/beignet/patches/llvm06.patch          |  8 +-
 srcpkgs/beignet/patches/llvm08.patch          |  8 +-
 srcpkgs/beignet/patches/llvm09.patch          | 20 ++---
 srcpkgs/beignet/patches/llvm10.patch          | 44 +++++-----
 srcpkgs/beignet/patches/llvm11.patch          | 44 +++++-----
 srcpkgs/beignet/patches/llvm12.patch          | 20 ++---
 srcpkgs/beignet/patches/musl.patch            |  4 +-
 srcpkgs/beignet/template                      |  1 -
 srcpkgs/belle-sip/patches/musl.patch          |  4 +-
 srcpkgs/belle-sip/template                    |  1 -
 .../patches/remove_bzlib_convenience.patch    | 12 +--
 .../patches/remove_zlib_convenience.patch     | 16 ++--
 .../patches/reproducibility.patch             |  8 +-
 srcpkgs/berkeley-abc/template                 |  1 -
 srcpkgs/berry/patches/fix-cross.patch         |  4 +-
 srcpkgs/berry/template                        |  1 -
 srcpkgs/biew/patches/bool.patch               |  4 +-
 srcpkgs/biew/template                         |  1 -
 srcpkgs/bin86/patches/fix_x86_64.diff         |  4 +-
 srcpkgs/bin86/template                        |  1 -
 .../binwalk/patches/fallback-version.patch    |  4 +-
 srcpkgs/binwalk/template                      |  1 -
 srcpkgs/biosdisk/patches/fix-sbin.patch       |  4 +-
 srcpkgs/biosdisk/template                     |  1 -
 srcpkgs/bird/patches/fix-tests-musl.patch     |  4 +-
 srcpkgs/bird/template                         |  1 -
 srcpkgs/birdtray/patches/QPainterPath.patch   |  4 +-
 srcpkgs/birdtray/template                     |  1 -
 srcpkgs/bish/patches/fix-ldflags.patch        |  4 +-
 srcpkgs/bish/template                         |  1 -
 .../patches/bitchx-1.2.1-security.patch       |  8 +-
 srcpkgs/bitchx/patches/openssl-1.1.patch      |  8 +-
 srcpkgs/bitchx/template                       |  1 -
 srcpkgs/bitfighter/patches/cmake.patch        | 36 ++++----
 srcpkgs/bitfighter/template                   |  1 -
 .../bitwise/patches/tests-use-bcunit.patch    |  8 +-
 srcpkgs/bitwise/template                      |  1 -
 srcpkgs/blackboxwm/patches/time64.patch       |  4 +-
 srcpkgs/blackboxwm/template                   |  1 -
 srcpkgs/bmon/patches/Add_CTRL-N_CTRL-P.patch  |  4 +-
 srcpkgs/bmon/patches/out_curses.patch         |  4 +-
 srcpkgs/bmon/template                         |  1 -
 srcpkgs/boinc/patches/arm-not-android.patch   | 12 +--
 .../boinc/patches/boinc-am_conditional.patch  |  4 +-
 srcpkgs/boinc/template                        |  1 -
 srcpkgs/bomi/patches/ffmpeg3.x.patch          | 12 +--
 srcpkgs/bomi/patches/ffmpeg4.patch            | 32 +++----
 srcpkgs/bomi/patches/fix-cxx14.patch          | 24 ++---
 srcpkgs/bomi/patches/fix-sysctl_h.patch       |  8 +-
 srcpkgs/bomi/template                         |  1 -
 srcpkgs/bonnie++/patches/configure.patch      |  4 +-
 srcpkgs/bonnie++/template                     |  1 -
 .../patches/dont_include_toolchain-file.patch |  4 +-
 srcpkgs/boomerang/patches/fix-cflags.patch    |  4 +-
 .../boomerang/patches/include-stdint.patch    |  4 +-
 srcpkgs/boomerang/template                    |  1 -
 srcpkgs/boost/patches/mips.patch              |  4 +-
 srcpkgs/boost/patches/musl-memset.patch       |  4 +-
 srcpkgs/boost/template                        |  1 -
 srcpkgs/bootchart2/patches/python-3.9.patch   |  8 +-
 .../bootchart2/patches/rdinit-fix-panic.patch |  4 +-
 srcpkgs/bootchart2/template                   |  1 -
 .../patches/botan_types_include_climits.patch |  4 +-
 srcpkgs/botan/template                        |  1 -
 srcpkgs/bridge-utils/patches/cflags.patch     |  4 +-
 srcpkgs/bridge-utils/patches/fix-musl.patch   |  4 +-
 srcpkgs/bridge-utils/template                 |  1 -
 srcpkgs/brltty/patches/crosspython.patch      |  4 +-
 srcpkgs/brltty/patches/time64.patch           |  4 +-
 srcpkgs/brltty/template                       |  1 -
 .../patches/001-null-pointer-fix.patch        |  4 +-
 .../broadcom-wl-dkms/patches/gcc-4.9.patch    |  4 +-
 .../broadcom-wl-dkms/patches/linux-4.11.patch |  8 +-
 .../broadcom-wl-dkms/patches/linux-4.12.patch |  4 +-
 .../broadcom-wl-dkms/patches/linux-4.15.patch |  4 +-
 .../broadcom-wl-dkms/patches/linux-4.3.patch  |  4 +-
 .../broadcom-wl-dkms/patches/linux-4.7.patch  |  8 +-
 .../broadcom-wl-dkms/patches/linux-4.8.patch  |  4 +-
 .../broadcom-wl-dkms/patches/linux-5.1.patch  |  8 +-
 .../broadcom-wl-dkms/patches/linux-5.10.patch | 20 ++---
 .../broadcom-wl-dkms/patches/linux-5.6.patch  |  8 +-
 srcpkgs/broadcom-wl-dkms/template             |  1 -
 srcpkgs/browsh/patches/go-bindata.patch       |  4 +-
 srcpkgs/browsh/patches/modules.patch          | 16 ++--
 srcpkgs/browsh/template                       |  1 -
 srcpkgs/bsdiff/patches/CVE-2014-9862.diff     |  4 +-
 srcpkgs/bsdiff/template                       |  1 -
 srcpkgs/bsdunzip/patches/add-license.patch    |  4 +-
 srcpkgs/bsdunzip/template                     |  1 -
 ...dc6022f67a4e1f49397b8bf519b2a34f74c9.patch |  4 +-
 srcpkgs/bti/template                          |  1 -
 .../fix-TEMP_FAILTURE_RETRY-musl.patch        |  4 +-
 .../patches/realpath-workaround.patch         |  8 +-
 srcpkgs/bubblewrap/template                   |  1 -
 srcpkgs/buffer/patches/musl-sem.patch         |  4 +-
 srcpkgs/buffer/template                       |  1 -
 srcpkgs/buildbot/patches/terse-irc.patch      |  4 +-
 srcpkgs/buildbot/template                     |  1 -
 .../patches/0001-Use-system-cacerts.patch     |  4 +-
 srcpkgs/buku/template                         |  1 -
 srcpkgs/bullet/patches/disableExample.patch   |  4 +-
 srcpkgs/bullet/patches/musl.patch             | 12 +--
 srcpkgs/bullet/template                       |  1 -
 .../patches/10-modprobe-replace-rmmod.patch   |  4 +-
 .../20-better-module-load-unload.patch        | 72 +++++++--------
 srcpkgs/bumblebee/template                    |  1 -
 srcpkgs/bup/patches/disable-git-call.patch    |  4 +-
 srcpkgs/bup/template                          |  1 -
 .../patches/tests-disable-failing.patch       |  4 +-
 srcpkgs/burp2-server/template                 |  1 -
 ...ss_gunzip-Fix-DoS-if-gzip-is-corrupt.patch |  4 +-
 .../patches/testsuite-fix-date-works.patch    |  4 +-
 srcpkgs/busybox/template                      |  1 -
 srcpkgs/bzflag/patches/NetHandler-musl.patch  |  4 +-
 srcpkgs/bzflag/patches/bzfs-musl.patch        |  4 +-
 srcpkgs/bzflag/template                       |  1 -
 srcpkgs/bzip2/patches/soname.patch            |  8 +-
 srcpkgs/bzip2/template                        |  1 -
 151 files changed, 462 insertions(+), 516 deletions(-)

diff --git a/srcpkgs/bacula-common/patches/fix-cross.patch b/srcpkgs/bacula-common/patches/fix-cross.patch
index f7e6f861708b..4e898fecce99 100644
--- a/srcpkgs/bacula-common/patches/fix-cross.patch
+++ b/srcpkgs/bacula-common/patches/fix-cross.patch
@@ -1,5 +1,5 @@
---- configure	2016-09-29 15:59:30.000000000 +0200
-+++ configure	2017-02-14 01:48:10.874916913 +0100
+--- a/configure
++++ a/configure
 @@ -23873,6 +23873,14 @@
                   POSTGRESQL_LIBDIR=/usr/lib/postgresql
                fi
diff --git a/srcpkgs/bacula-common/patches/fix-musl.patch b/srcpkgs/bacula-common/patches/fix-musl.patch
index 4710bc9435a8..8f9708e63ea2 100644
--- a/srcpkgs/bacula-common/patches/fix-musl.patch
+++ b/srcpkgs/bacula-common/patches/fix-musl.patch
@@ -1,5 +1,5 @@
---- src/findlib/fstype.c	2016-09-29 15:59:30.000000000 +0200
-+++ src/findlib/fstype.c	2017-02-19 19:24:02.050639457 +0100
+--- a/src/findlib/fstype.c
++++ a/src/findlib/fstype.c
 @@ -162,6 +162,9 @@
  
  #include <sys/vfs.h>
diff --git a/srcpkgs/bacula-common/template b/srcpkgs/bacula-common/template
index 9facbbf2efe2..04b89e171ad8 100644
--- a/srcpkgs/bacula-common/template
+++ b/srcpkgs/bacula-common/template
@@ -17,7 +17,6 @@ distfiles="${SOURCEFORGE_SITE}/bacula/bacula-${version}.tar.gz"
 checksum=a40d04d2c48135972cecb6578405e835c4b9d798c0950017de0fad40ca94e8a0
 alternatives="bacula-db-backend:/usr/lib/libbaccats-${version}.so:/usr/lib/libbaccats-sqlite3-${version}.so"
 shlib_provides="libbaccats-${version}.so"
-patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/balsa/patches/portability.patch b/srcpkgs/balsa/patches/portability.patch
index 9add8f86d3ad..23112a53cc02 100644
--- a/srcpkgs/balsa/patches/portability.patch
+++ b/srcpkgs/balsa/patches/portability.patch
@@ -1,5 +1,5 @@
---- libbalsa/misc.c.orig	2015-05-31 10:17:19.494312782 +0200
-+++ libbalsa/misc.c	2015-05-31 10:17:27.054393821 +0200
+--- a/libbalsa/misc.c
++++ a/libbalsa/misc.c
 @@ -34,6 +34,7 @@
  #include <stdio.h>
  #include <stdlib.h>
diff --git a/srcpkgs/balsa/template b/srcpkgs/balsa/template
index 5d3f410bf0b3..255ae0f226a5 100644
--- a/srcpkgs/balsa/template
+++ b/srcpkgs/balsa/template
@@ -15,4 +15,3 @@ license="GPL-2.0-or-later"
 homepage="https://pawsa.fedorapeople.org/balsa/"
 distfiles="https://pawsa.fedorapeople.org/balsa/balsa-${version}.tar.bz2"
 checksum=6441772cb5e1870f10c358c21f7e709da8cc0bfa6cc005ec744b9f1b00ea7df6
-patch_args=-Np0
diff --git a/srcpkgs/bananapi-uboot/patches/musl.patch b/srcpkgs/bananapi-uboot/patches/musl.patch
index 3efa59142c56..4bd21863274e 100644
--- a/srcpkgs/bananapi-uboot/patches/musl.patch
+++ b/srcpkgs/bananapi-uboot/patches/musl.patch
@@ -1,5 +1,5 @@
---- include/image.h	2014-08-19 08:42:46.000000000 +0200
-+++ include/image.h	2020-09-15 10:43:48.410147914 +0200
+--- a/include/image.h
++++ a/include/image.h
 @@ -19,6 +19,11 @@
  #include "compiler.h"
  #include <asm/byteorder.h>
@@ -12,8 +12,8 @@
  /* Define this to avoid #ifdefs later on */
  struct lmb;
  
---- tools/mkimage.h	2014-08-19 08:42:46.000000000 +0200
-+++ tools/mkimage.h	2020-09-15 10:46:44.221140904 +0200
+--- a/tools/mkimage.h
++++ a/tools/mkimage.h
 @@ -22,6 +22,11 @@
  #include "fdt_host.h"
  #include "imagetool.h"
@@ -26,8 +26,8 @@
  #undef MKIMAGE_DEBUG
  
  #ifdef MKIMAGE_DEBUG
---- tools/proftool.c	2014-08-19 08:42:46.000000000 +0200
-+++ tools/proftool.c	2020-09-15 10:48:28.212136757 +0200
+--- a/tools/proftool.c
++++ a/tools/proftool.c
 @@ -20,6 +20,11 @@
  #include <compiler.h>
  #include <trace.h>
diff --git a/srcpkgs/bananapi-uboot/patches/no-inline-show_boot_progress.patch b/srcpkgs/bananapi-uboot/patches/no-inline-show_boot_progress.patch
index fd56762f7063..bfa0b0dc96fb 100644
--- a/srcpkgs/bananapi-uboot/patches/no-inline-show_boot_progress.patch
+++ b/srcpkgs/bananapi-uboot/patches/no-inline-show_boot_progress.patch
@@ -1,5 +1,5 @@
---- common/main.c	2014-08-19 08:42:46.000000000 +0200
-+++ common/main.c	2020-09-15 09:39:04.675302769 +0200
+--- a/common/main.c
++++ a/common/main.c
 @@ -27,7 +27,7 @@
  /*
   * Board-specific Platform code can reimplement show_boot_progress () if needed
diff --git a/srcpkgs/bananapi-uboot/patches/no-inline-weak.patch b/srcpkgs/bananapi-uboot/patches/no-inline-weak.patch
index c18d52171baa..db6eda4df44a 100644
--- a/srcpkgs/bananapi-uboot/patches/no-inline-weak.patch
+++ b/srcpkgs/bananapi-uboot/patches/no-inline-weak.patch
@@ -1,5 +1,5 @@
---- common/board_f.c	2014-08-19 08:42:46.000000000 +0200
-+++ common/board_f.c	2020-09-15 09:40:56.739298301 +0200
+--- a/common/board_f.c
++++ a/common/board_f.c
 @@ -78,24 +78,24 @@
   ************************************************************************
   * May be supplied by boards if desired
diff --git a/srcpkgs/bananapi-uboot/patches/static-inline.patch b/srcpkgs/bananapi-uboot/patches/static-inline.patch
index 40546d7ed643..e54ea38fe8de 100644
--- a/srcpkgs/bananapi-uboot/patches/static-inline.patch
+++ b/srcpkgs/bananapi-uboot/patches/static-inline.patch
@@ -1,5 +1,5 @@
---- arch/arm/include/asm/io.h	2014-08-19 08:42:46.000000000 +0200
-+++ arch/arm/include/asm/io.h	2020-09-15 09:36:28.791308985 +0200
+--- a/arch/arm/include/asm/io.h
++++ a/arch/arm/include/asm/io.h
 @@ -75,7 +75,7 @@
  #define __arch_putw(v,a)		(*(volatile unsigned short *)(a) = (v))
  #define __arch_putl(v,a)		(*(volatile unsigned int *)(a) = (v))
diff --git a/srcpkgs/bananapi-uboot/template b/srcpkgs/bananapi-uboot/template
index 80acf0c6e8fd..fabedf3d5978 100644
--- a/srcpkgs/bananapi-uboot/template
+++ b/srcpkgs/bananapi-uboot/template
@@ -10,7 +10,6 @@ license="GPL-2.0-only"
 homepage="https://github.com/hardkernel/u-boot"
 distfiles="https://github.com/Bananian/u-boot-bananapi/archive/bananian-v${version}.tar.gz"
 checksum=8be162b0b8e85d3fbc2e14af3b71c4a204f4a9c63f6f13275f86629624c1d6a6
-patch_args=-Np0
 
 conf_files="/boot/uEnv.txt"
 archs="armv7l*"
diff --git a/srcpkgs/basu/patches/uid-nobody.patch b/srcpkgs/basu/patches/uid-nobody.patch
index 27524c0f474d..c17146973739 100644
--- a/srcpkgs/basu/patches/uid-nobody.patch
+++ b/srcpkgs/basu/patches/uid-nobody.patch
@@ -1,5 +1,5 @@
---- src/basic/user-util.h
-+++ src/basic/user-util.h
+--- a/src/basic/user-util.h
++++ a/src/basic/user-util.h
 @@ -17,7 +17,7 @@ char* uid_to_name(uid_t uid);
  
  #define UID_INVALID ((uid_t) -1)
diff --git a/srcpkgs/basu/template b/srcpkgs/basu/template
index 0244cc11cc20..1a3614b781c3 100644
--- a/srcpkgs/basu/template
+++ b/srcpkgs/basu/template
@@ -11,7 +11,6 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/emersion/basu"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=e2fda9b69fc6c4530173fcf8db94c29aa5f3ed932d948cc6a31892623cde5e4b
-patch_args=-Np0
 
 basu-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/batctl14/patches/musl.patch b/srcpkgs/batctl14/patches/musl.patch
index caca06495029..a50b04003f2f 100644
--- a/srcpkgs/batctl14/patches/musl.patch
+++ b/srcpkgs/batctl14/patches/musl.patch
@@ -1,7 +1,7 @@
 Use POSIX instead of Linux fields. Glibc has both, musl only has POSIX.
 
---- ioctl.c
-+++ ioctl.c
+--- a/ioctl.c
++++ a/ioctl.c
 @@ -25,6 +25,7 @@
  #include <stdlib.h>
  #include <string.h>
@@ -10,8 +10,8 @@ Use POSIX instead of Linux fields. Glibc has both, musl only has POSIX.
  #include <sys/ioctl.h>
  #include <sys/socket.h>
  #include <linux/if.h>
---- ping.c
-+++ ping.c
+--- a/ping.c
++++ a/ping.c
 @@ -30,6 +30,7 @@
  #include <fcntl.h>
  #include <string.h>
@@ -20,8 +20,8 @@ Use POSIX instead of Linux fields. Glibc has both, musl only has POSIX.
  
  #include "main.h"
  #include "ping.h"
---- tcpdump.c
-+++ tcpdump.c
+--- a/tcpdump.c
++++ a/tcpdump.c
 @@ -36,6 +36,7 @@
  #include <netinet/udp.h>
  #include <netinet/ip_icmp.h>
@@ -82,8 +82,8 @@ Use POSIX instead of Linux fields. Glibc has both, musl only has POSIX.
  				(size_t)buff_len - (iphdr->ihl * 4) - sizeof(struct udphdr));
  			break;
  		}
---- traceroute.c
-+++ traceroute.c
+--- a/traceroute.c
++++ a/traceroute.c
 @@ -28,6 +28,7 @@
  #include <unistd.h>
  #include <fcntl.h>
diff --git a/srcpkgs/batctl14/template b/srcpkgs/batctl14/template
index 9fc5556c20f2..4ca1b15ed0ea 100644
--- a/srcpkgs/batctl14/template
+++ b/srcpkgs/batctl14/template
@@ -14,4 +14,3 @@ homepage="http://www.open-mesh.net/"
 distfiles="http://downloads.open-mesh.net/batman/releases/batman-adv-${version}/batctl-${version}.tar.gz"
 checksum=4deae3b6664d0d13acf7a8ece74175a31a72fe58fb15cb9112a9a2014b32cb4c
 conflicts="batctl>=0"
-patch_args=-Np0
diff --git a/srcpkgs/batman-adv14/patches/0001-fix-build.diff b/srcpkgs/batman-adv14/patches/0001-fix-build.diff
index ee8fc175a5ab..4f8344a7c171 100644
--- a/srcpkgs/batman-adv14/patches/0001-fix-build.diff
+++ b/srcpkgs/batman-adv14/patches/0001-fix-build.diff
@@ -1,7 +1,7 @@
 diff --git a/Makefile.kbuild b/Makefile.kbuild
 index 489bb36..8ddbfe6 100644
---- Makefile.kbuild
-+++ Makefile.kbuild
+--- a/Makefile.kbuild
++++ a/Makefile.kbuild
 @@ -38,4 +38,3 @@ batman-adv-y += soft-interface.o
  batman-adv-y += sysfs.o
  batman-adv-y += translation-table.o
@@ -9,8 +9,8 @@ index 489bb36..8ddbfe6 100644
 -batman-adv-y += vis.o
 diff --git a/README b/README
 index c1d8204..4c20e91 100644
---- README
-+++ README
+--- a/README
++++ a/README
 @@ -1,3 +1,34 @@
 +BATMAN-ADV-LEGACY
 +-----------------
@@ -68,8 +68,8 @@ index c1d8204..4c20e91 100644
 +Matthias Schiffer <mschiffer@universe-factory.net>
 diff --git a/bat_iv_ogm.c b/bat_iv_ogm.c
 index 2031071..6407369 100644
---- bat_iv_ogm.c
-+++ bat_iv_ogm.c
+--- a/bat_iv_ogm.c
++++ a/bat_iv_ogm.c
 @@ -687,11 +687,10 @@ static void batadv_iv_ogm_schedule(struct batadv_hard_iface *hard_iface)
  	struct batadv_ogm_packet *batadv_ogm_packet;
  	struct batadv_hard_iface *primary_if;
@@ -97,8 +97,8 @@ index 2031071..6407369 100644
  	    atomic_read(&bat_priv->gw_mode) == BATADV_GW_MODE_SERVER) {
 diff --git a/compat.h b/compat.h
 index 3e11f89..0f07edb 100644
---- compat.h
-+++ compat.h
+--- a/compat.h
++++ a/compat.h
 @@ -258,7 +258,6 @@ static int batadv_interface_set_mac_addr(struct net_device *dev, void *p) \
  }\
  static int __batadv_interface_set_mac_addr(x, y)
@@ -176,8 +176,8 @@ index 3e11f89..0f07edb 100644
  #endif /* _NET_BATMAN_ADV_COMPAT_H_ */
 diff --git a/debugfs.c b/debugfs.c
 index f186a55..049a7a2 100644
---- debugfs.c
-+++ debugfs.c
+--- a/debugfs.c
++++ a/debugfs.c
 @@ -28,7 +28,6 @@
  #include "gateway_common.h"
  #include "gateway_client.h"
@@ -217,8 +217,8 @@ index f186a55..049a7a2 100644
  #endif
 diff --git a/gateway_client.c b/gateway_client.c
 index 7614af3..6958356 100644
---- gateway_client.c
-+++ gateway_client.c
+--- a/gateway_client.c
++++ a/gateway_client.c
 @@ -115,16 +115,12 @@ batadv_gw_get_best_gw_node(struct batadv_priv *bat_priv)
  {
  	struct batadv_neigh_node *router;
@@ -278,8 +278,8 @@ index 7614af3..6958356 100644
  	if (curr_gw)
 diff --git a/gateway_common.c b/gateway_common.c
 index 84bb2b1..bb3f667 100644
---- gateway_common.c
-+++ gateway_common.c
+--- a/gateway_common.c
++++ a/gateway_common.c
 @@ -87,10 +87,10 @@ static bool batadv_parse_gw_bandwidth(struct net_device *net_dev, char *buff,
  	if (strlen(buff) > 4) {
  		tmp_ptr = buff + strlen(buff) - 4;
@@ -308,8 +308,8 @@ index 84bb2b1..bb3f667 100644
  		}
 diff --git a/gen-compat-autoconf.sh b/gen-compat-autoconf.sh
 index 78573e4..c5a3f5d 100755
---- gen-compat-autoconf.sh
-+++ gen-compat-autoconf.sh
+--- a/gen-compat-autoconf.sh
++++ a/gen-compat-autoconf.sh
 @@ -5,7 +5,8 @@ set -e
  TARGET=${1:="compat-autoconf.h"}
  TMP="${TARGET}.tmp"
@@ -322,8 +322,8 @@ index 78573e4..c5a3f5d 100755
  	KEY="${1}"
 diff --git a/hard-interface.c b/hard-interface.c
 index c478e6b..5948c80 100644
---- hard-interface.c
-+++ hard-interface.c
+--- a/hard-interface.c
++++ a/hard-interface.c
 @@ -83,19 +83,18 @@ static bool batadv_is_on_batman_iface(const struct net_device *net_dev)
  		return true;
  
@@ -391,8 +391,8 @@ index c478e6b..5948c80 100644
  
 diff --git a/main.c b/main.c
 index c8e0671..a718d07 100644
---- main.c
-+++ main.c
+--- a/main.c
++++ a/main.c
 @@ -32,7 +32,6 @@
  #include "gateway_client.h"
  #include "bridge_loop_avoidance.h"
@@ -432,8 +432,8 @@ index c8e0671..a718d07 100644
  	batadv_dat_free(bat_priv);
 diff --git a/main.h b/main.h
 index 2c0c14d..06e8971 100644
---- main.h
-+++ main.h
+--- a/main.h
++++ a/main.h
 @@ -86,8 +86,6 @@
  /* numbers of originator to contact for any PUT/GET DHT operation */
  #define BATADV_DAT_CANDIDATES_NUM 3
@@ -479,8 +479,8 @@ index 2c0c14d..06e8971 100644
  		struct net_device *_netdev = (net_dev);                 \
 diff --git a/originator.c b/originator.c
 index f50553a..af1b427 100644
---- originator.c
-+++ originator.c
+--- a/originator.c
++++ a/originator.c
 @@ -147,8 +147,6 @@ static void batadv_orig_node_free_rcu(struct rcu_head *rcu)
  	batadv_nc_purge_orig(orig_node->bat_priv, orig_node, NULL);
  
@@ -510,8 +510,8 @@ index f50553a..af1b427 100644
  			}
 diff --git a/packet.h b/packet.h
 index a51ccfc..d12da01 100644
---- packet.h
-+++ packet.h
+--- a/packet.h
++++ a/packet.h
 @@ -53,7 +53,6 @@ enum batadv_subtype {
  enum batadv_iv_flags {
  	BATADV_NOT_BEST_NEXT_HOP   = BIT(3),
@@ -544,8 +544,8 @@ index a51ccfc..d12da01 100644
  	uint8_t  prev_sender[ETH_ALEN];
 diff --git a/routing.c b/routing.c
 index 2f0bd3f..f69a32c 100644
---- routing.c
-+++ routing.c
+--- a/routing.c
++++ a/routing.c
 @@ -25,7 +25,6 @@
  #include "icmp_socket.h"
  #include "translation-table.h"
@@ -695,8 +695,8 @@ index 2f0bd3f..f69a32c 100644
  }
 diff --git a/send.c b/send.c
 index e9ff8d8..fd42c65 100644
---- send.c
-+++ send.c
+--- a/send.c
++++ a/send.c
 @@ -24,11 +24,11 @@
  #include "translation-table.h"
  #include "soft-interface.h"
@@ -741,8 +741,8 @@ index e9ff8d8..fd42c65 100644
  		if (skb1)
 diff --git a/soft-interface.c b/soft-interface.c
 index 33b6144..3e3f81c 100644
---- soft-interface.c
-+++ soft-interface.c
+--- a/soft-interface.c
++++ a/soft-interface.c
 @@ -162,7 +162,7 @@ static int batadv_interface_tx(struct sk_buff *skb,
  	if (atomic_read(&bat_priv->mesh_state) != BATADV_MESH_ACTIVE)
  		goto dropped;
@@ -792,8 +792,8 @@ index 33b6144..3e3f81c 100644
  
 diff --git a/sysfs-class-net-batman-adv b/sysfs-class-net-batman-adv
 index bdc0070..88f6f70 100644
---- sysfs-class-net-batman-adv
-+++ sysfs-class-net-batman-adv
+--- a/sysfs-class-net-batman-adv
++++ a/sysfs-class-net-batman-adv
 @@ -13,3 +13,13 @@ Description:
                  displays the batman mesh interface this <iface>
                  currently is associated with.
@@ -810,8 +810,8 @@ index bdc0070..88f6f70 100644
 +                break your mesh network, use at your own risk!
 diff --git a/sysfs.c b/sysfs.c
 index 929e304..944209a 100644
---- sysfs.c
-+++ sysfs.c
+--- a/sysfs.c
++++ a/sysfs.c
 @@ -25,7 +25,6 @@
  #include "hard-interface.h"
  #include "gateway_common.h"
@@ -998,8 +998,8 @@ index 929e304..944209a 100644
  
 diff --git a/translation-table.c b/translation-table.c
 index 429aeef..9a8aab6 100644
---- translation-table.c
-+++ translation-table.c
+--- a/translation-table.c
++++ a/translation-table.c
 @@ -1487,6 +1487,19 @@ static uint16_t batadv_tt_local_crc(struct batadv_priv *bat_priv)
  	return total;
  }
@@ -1076,8 +1076,8 @@ index 429aeef..9a8aab6 100644
  
 diff --git a/types.h b/types.h
 index b2c94e1..b4d38e4 100644
---- types.h
-+++ types.h
+--- a/types.h
++++ a/types.h
 @@ -85,6 +85,7 @@ struct batadv_hard_iface {
  	struct rcu_head rcu;
  	struct batadv_hard_iface_bat_iv bat_iv;
@@ -1227,8 +1227,8 @@ index b2c94e1..b4d38e4 100644
 diff --git a/vis.c b/vis.c
 deleted file mode 100644
 index 4983340..0000000
---- vis.c
-+++ /dev/null
+--- a/vis.c
++++ a//dev/null
 @@ -1,936 +0,0 @@
 -/* Copyright (C) 2008-2013 B.A.T.M.A.N. contributors:
 - *
@@ -2169,8 +2169,8 @@ index 4983340..0000000
 diff --git a/vis.h b/vis.h
 deleted file mode 100644
 index ad92b0e..0000000
---- vis.h
-+++ /dev/null
+--- a/vis.h
++++ a//dev/null
 @@ -1,36 +0,0 @@
 -/* Copyright (C) 2008-2013 B.A.T.M.A.N. contributors:
 - *
diff --git a/srcpkgs/batman-adv14/template b/srcpkgs/batman-adv14/template
index a1776f121092..8fb35827056a 100644
--- a/srcpkgs/batman-adv14/template
+++ b/srcpkgs/batman-adv14/template
@@ -11,7 +11,6 @@ distfiles="http://downloads.open-mesh.org/batman/releases/batman-adv-${version}/
 checksum=a9b1b7542c94cc6bf7c97b7b0d02bf071b5632a64480ae419358b9cb9cab6870
 provides="batman-adv-${version}_${revision}"
 conflicts="batman-adv>=0"
-patch_args=-Np0
 
 dkms_modules="batman-adv14 ${version}"
 depends="dkms"
diff --git a/srcpkgs/bbkeys/patches/fix-cross.patch b/srcpkgs/bbkeys/patches/fix-cross.patch
index 48dcdac17ac9..1cbe8f7b0e02 100644
--- a/srcpkgs/bbkeys/patches/fix-cross.patch
+++ b/srcpkgs/bbkeys/patches/fix-cross.patch
@@ -1,5 +1,5 @@
---- src/Makefile.in.orig
-+++ src/Makefile.in
+--- a/src/Makefile.in.orig
++++ a/src/Makefile.in
 @@ -108,7 +108,6 @@
  	Netclient.$(OBJEXT) ScreenHandler.$(OBJEXT) window.$(OBJEXT) \
  	WindowlistMenu.$(OBJEXT)
@@ -26,8 +26,8 @@
  	@rm -f bbkeys$(EXEEXT)
  	$(AM_V_CXXLD)$(CXXLINK) $(bbkeys_OBJECTS) $(bbkeys_LDADD) $(LIBS)
  
---- src/Makefile.am.orig
-+++ src/Makefile.am
+--- a/src/Makefile.am.orig
++++ a/src/Makefile.am
 @@ -31,6 +31,5 @@
  	window.hh \
  	WindowlistMenu.cpp \
diff --git a/srcpkgs/bbkeys/template b/srcpkgs/bbkeys/template
index 40ae05dec712..a9a52c11007a 100644
--- a/srcpkgs/bbkeys/template
+++ b/srcpkgs/bbkeys/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="https://github.com/bbidulock/bbkeys"
 distfiles="${homepage}/releases/download/rel-${version//.}/bbkeys-${version}.tar.lz"
 checksum=ece0113b2cc6367e2cad95f59cf43d7576b5a1a7eb8a9e3f10ce9814db67b95c
-patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/bbswitch/patches/0001-Use-proc_ops-structure-for-kernel-version-5.6.0.patch b/srcpkgs/bbswitch/patches/0001-Use-proc_ops-structure-for-kernel-version-5.6.0.patch
index 6c758c00aa90..88513ed3b097 100644
--- a/srcpkgs/bbswitch/patches/0001-Use-proc_ops-structure-for-kernel-version-5.6.0.patch
+++ b/srcpkgs/bbswitch/patches/0001-Use-proc_ops-structure-for-kernel-version-5.6.0.patch
@@ -15,8 +15,8 @@ https://github.com/torvalds/linux/commit/d56c0d45f0e27f814e87a1676b6bdccccbc252e
 
 diff --git bbswitch.c bbswitch.c
 index 228d722..4ce9aae 100644
---- bbswitch.c
-+++ bbswitch.c
+--- a/bbswitch.c
++++ a/bbswitch.c
 @@ -35,6 +35,7 @@
  #include <linux/suspend.h>
  #include <linux/seq_file.h>
diff --git a/srcpkgs/bbswitch/patches/0002-Add-missing-proc_fs.h-header.patch b/srcpkgs/bbswitch/patches/0002-Add-missing-proc_fs.h-header.patch
index 4a51358ec062..2886a4f6b4b4 100644
--- a/srcpkgs/bbswitch/patches/0002-Add-missing-proc_fs.h-header.patch
+++ b/srcpkgs/bbswitch/patches/0002-Add-missing-proc_fs.h-header.patch
@@ -13,8 +13,8 @@ Required for 'struct proc_ops' since v5.7-rc1 with commit df23e2be3d24
 
 diff --git bbswitch.c bbswitch.c
 index 4ce9aae..c0c6713 100644
---- bbswitch.c
-+++ bbswitch.c
+--- a/bbswitch.c
++++ a/bbswitch.c
 @@ -35,6 +35,7 @@
  #include <linux/suspend.h>
  #include <linux/seq_file.h>
diff --git a/srcpkgs/bbswitch/template b/srcpkgs/bbswitch/template
index 049ba73bc327..4dc9d3235e60 100644
--- a/srcpkgs/bbswitch/template
+++ b/srcpkgs/bbswitch/template
@@ -11,7 +11,6 @@ homepage="http://github.com/Bumblebee-Project/bbswitch"
 distfiles="https://github.com/Bumblebee-Project/bbswitch/archive/v$version.tar.gz"
 checksum=76cabd3f734fb4fe6ebfe3ec9814138d0d6f47d47238521ecbd6a986b60d1477
 dkms_modules="${pkgname} ${version}"
-patch_args=-Np0
 
 do_install() {
 	vinstall Makefile 644 usr/src/${pkgname}-${version}
diff --git a/srcpkgs/bc/patches/read.patch b/srcpkgs/bc/patches/read.patch
index f45a2b0d2b7b..c0be9ffce713 100644
--- a/srcpkgs/bc/patches/read.patch
+++ b/srcpkgs/bc/patches/read.patch
@@ -1,5 +1,5 @@
---- bc/execute.c
-+++ bc/execute.c
+--- a/bc/execute.c
++++ a/bc/execute.c
 @@ -638,19 +638,19 @@ push_constant (int (*in_char)(VOID), int conv_base)
        }
  
diff --git a/srcpkgs/bc/template b/srcpkgs/bc/template
index bff25a4c64e9..c6ca1b7d899a 100644
--- a/srcpkgs/bc/template
+++ b/srcpkgs/bc/template
@@ -18,7 +18,6 @@ alternatives="
  dc:dc:/usr/bin/gnu-dc
  dc:dc.1:/usr/share/man/man1/gnu-dc.1"
 disable_parallel_build=yes
-patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" bc"
diff --git a/srcpkgs/bcc/patches/musl.patch b/srcpkgs/bcc/patches/musl.patch
index bc7ac1e77261..4a0c4dd89964 100644
--- a/srcpkgs/bcc/patches/musl.patch
+++ b/srcpkgs/bcc/patches/musl.patch
@@ -1,5 +1,5 @@
---- src/cc/api/BPFTable.cc.orig
-+++ src/cc/api/BPFTable.cc
+--- a/src/cc/api/BPFTable.cc.orig
++++ a/src/cc/api/BPFTable.cc
 @@ -14,6 +14,7 @@
   * limitations under the License.
   */
@@ -8,8 +8,8 @@
  #include <fcntl.h>
  #include <linux/elf.h>
  #include <linux/perf_event.h>
---- src/cc/api/BPF.cc.orig
-+++ src/cc/api/BPF.cc
+--- a/src/cc/api/BPF.cc.orig
++++ a/src/cc/api/BPF.cc
 @@ -14,6 +14,7 @@
   * limitations under the License.
   */
@@ -18,8 +18,8 @@
  #include <linux/bpf.h>
  #include <linux/perf_event.h>
  #include <unistd.h>
---- src/cc/perf_reader.c.orig
-+++ src/cc/perf_reader.c
+--- a/src/cc/perf_reader.c.orig
++++ a/src/cc/perf_reader.c
 @@ -14,6 +14,7 @@
   * limitations under the License.
   */
@@ -28,8 +28,8 @@
  #include <inttypes.h>
  #include <poll.h>
  #include <stdio.h>
---- src/cc/libbpf/src/libbpf.c.orig
-+++ src/cc/libbpf/src/libbpf.c
+--- a/src/cc/libbpf/src/libbpf.c.orig
++++ a/src/cc/libbpf/src/libbpf.c
 @@ -12,6 +12,7 @@
  #ifndef _GNU_SOURCE
  #define _GNU_SOURCE
@@ -38,8 +38,8 @@
  #include <stdlib.h>
  #include <stdio.h>
  #include <stdarg.h>
---- src/cc/libbpf.c.orig
-+++ src/cc/libbpf.c
+--- a/src/cc/libbpf.c.orig
++++ a/src/cc/libbpf.c
 @@ -17,6 +17,7 @@
  #define _GNU_SOURCE
  #endif
diff --git a/srcpkgs/bcc/template b/srcpkgs/bcc/template
index 091ad9473a2d..cbdb9de0abcf 100644
--- a/srcpkgs/bcc/template
+++ b/srcpkgs/bcc/template
@@ -15,7 +15,6 @@ homepage="https://github.com/iovisor/bcc"
 distfiles="https://github.com/iovisor/bcc/releases/download/v${version}/bcc-src-with-submodule.tar.gz"
 checksum=93edc925675262aa509f5eaf146f2fc7dfa3e01d1b0336a5de01ee6d72fa493b
 python_version="3"
-patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/bctoolbox/patches/cmake-bcunit-fix.patch b/srcpkgs/bctoolbox/patches/cmake-bcunit-fix.patch
index 2a67c9a4c111..6f3d585e6c6c 100644
--- a/srcpkgs/bctoolbox/patches/cmake-bcunit-fix.patch
+++ b/srcpkgs/bctoolbox/patches/cmake-bcunit-fix.patch
@@ -1,7 +1,7 @@
 diff --git CMakeLists.txt CMakeLists.txt
 index 6828b3f..b41262f 100644
---- CMakeLists.txt
-+++ CMakeLists.txt
+--- a/CMakeLists.txt
++++ a/CMakeLists.txt
 @@ -106,14 +106,9 @@ if(POLARSSL_FOUND)
  endif()
  
diff --git a/srcpkgs/bctoolbox/template b/srcpkgs/bctoolbox/template
index f308b6874143..4de00e55e201 100644
--- a/srcpkgs/bctoolbox/template
+++ b/srcpkgs/bctoolbox/template
@@ -12,7 +12,6 @@ license="GPL-2.0-only"
 homepage="https://gitlab.linphone.org/BC/public/bctoolbox"
 distfiles="https://gitlab.linphone.org/BC/public/bctoolbox/-/archive/${version}/bctoolbox-${version}.tar.gz"
 checksum=1364d5f42b5514546b9c6654c227804ff92cf9cf13fdc7cb6ca666e3bb5a7987
-patch_args=-Np0
 
 bctoolbox-devel_package() {
 	depends="bctoolbox-${version}_${revision}"
diff --git a/srcpkgs/beep/patches/CVE-2018-0492.patch b/srcpkgs/beep/patches/CVE-2018-0492.patch
index fd0a771d53f9..77d9f53192a3 100644
--- a/srcpkgs/beep/patches/CVE-2018-0492.patch
+++ b/srcpkgs/beep/patches/CVE-2018-0492.patch
@@ -1,5 +1,5 @@
---- beep.c
-+++ beep.c
+--- a/beep.c
++++ a/beep.c
 @@ -109,6 +109,7 @@ void do_beep(int freq) {
       /* BEEP_TYPE_EVDEV */
       struct input_event e;
diff --git a/srcpkgs/beep/template b/srcpkgs/beep/template
index 3be4bf6147f3..0f3c10d9781f 100644
--- a/srcpkgs/beep/template
+++ b/srcpkgs/beep/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="http://www.johnath.com/beep/"
 distfiles="http://www.johnath.com/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=59acef7a987de5557cefd1a904666cc2691f132929af39e65450b182a581ec2d
-patch_args=-Np0
 
 post_extract() {
 	rm -f Makefile
diff --git a/srcpkgs/beets/patches/python-3.8.patch b/srcpkgs/beets/patches/python-3.8.patch
index 423f25985b20..65fc4a108eec 100644
--- a/srcpkgs/beets/patches/python-3.8.patch
+++ b/srcpkgs/beets/patches/python-3.8.patch
@@ -13,8 +13,8 @@ In fact, our generation of some Literals has been invalid since Python
 
 diff --git beets/util/functemplate.py beets/util/functemplate.py
 index af22b79082..266534a9b4 100644
---- beets/util/functemplate.py
-+++ beets/util/functemplate.py
+--- a/beets/util/functemplate.py
++++ a/beets/util/functemplate.py
 @@ -73,15 +73,26 @@ def ex_literal(val):
      """An int, float, long, bool, string, or None literal with the given
      value.
diff --git a/srcpkgs/beets/template b/srcpkgs/beets/template
index 60e86df7539f..8dfb44bf88ad 100644
--- a/srcpkgs/beets/template
+++ b/srcpkgs/beets/template
@@ -17,7 +17,6 @@ license="MIT"
 homepage="http://beets.radbox.org/"
 distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=d29b432cab0c80947b5229f548762948c4dd4a430e5d02760bfeb95da3cc8054
-patch_args=-Np0
 
 post_install() {
 	vman man/beet.1
diff --git a/srcpkgs/beignet/patches/cl_uint.patch b/srcpkgs/beignet/patches/cl_uint.patch
index 27f247cf009c..1e3c11916ced 100644
--- a/srcpkgs/beignet/patches/cl_uint.patch
+++ b/srcpkgs/beignet/patches/cl_uint.patch
@@ -1,5 +1,5 @@
---- src/cl_api_kernel.c	2017-09-22 10:05:22.000000000 +0200
-+++ src/cl_api_kernel.c	2020-03-24 18:27:40.186485887 +0100
+--- a/src/cl_api_kernel.c
++++ a/src/cl_api_kernel.c
 @@ -151,7 +151,7 @@
          fixed_local_sz[0] = 16;
          fixed_local_sz[1] = 1;
@@ -9,8 +9,8 @@
          size_t realGroupSize = 1;
          for (i = 0; i < work_dim; i++) {
            for (j = maxDimSize; j > 1; j--) {
---- src/cl_enqueue.c	2017-09-22 10:05:22.000000000 +0200
-+++ src/cl_enqueue.c	2020-03-24 18:30:12.031479833 +0100
+--- a/src/cl_enqueue.c
++++ a/src/cl_enqueue.c
 @@ -494,7 +494,7 @@
  cl_int cl_enqueue_svm_free(enqueue_data *data, cl_int status) {
    int i;
diff --git a/srcpkgs/beignet/patches/e1b2419a0008e38ef2d9d255d9e9c74e9fba084b.patch b/srcpkgs/beignet/patches/e1b2419a0008e38ef2d9d255d9e9c74e9fba084b.patch
index 36cdef7208ca..a71c4d8f489b 100644
--- a/srcpkgs/beignet/patches/e1b2419a0008e38ef2d9d255d9e9c74e9fba084b.patch
+++ b/srcpkgs/beignet/patches/e1b2419a0008e38ef2d9d255d9e9c74e9fba084b.patch
@@ -26,8 +26,8 @@ Reviewed-by: Yang Rong <rong.r.yang@intel.com>
 
 diff --git a/CMake/FindLLVM.cmake b/CMake/FindLLVM.cmake
 index 5457f24..f882589 100644
---- CMake/FindLLVM.cmake
-+++ CMake/FindLLVM.cmake
+--- a/CMake/FindLLVM.cmake
++++ a/CMake/FindLLVM.cmake
 @@ -113,10 +113,10 @@ macro(add_one_lib name)
  endmacro()
  
@@ -42,8 +42,8 @@ index 5457f24..f882589 100644
  add_one_lib("clangStaticAnalyzerCheckers")
 diff --git a/backend/src/backend/gen_program.cpp b/backend/src/backend/gen_program.cpp
 index 274c99c..4159234 100644
---- backend/src/backend/gen_program.cpp
-+++ backend/src/backend/gen_program.cpp
+--- a/backend/src/backend/gen_program.cpp
++++ a/backend/src/backend/gen_program.cpp
 @@ -454,7 +454,11 @@ namespace gbe {
  #ifdef GBE_COMPILER_AVAILABLE
        std::string str;
@@ -70,8 +70,8 @@ index 274c99c..4159234 100644
        if (LLVMLinkModules(wrap(dst), wrap(src), LLVMLinkerPreserveSource_Removed, &errMsg)) {
 diff --git a/backend/src/backend/program.cpp b/backend/src/backend/program.cpp
 index c37c595..b36f7b4 100644
---- backend/src/backend/program.cpp
-+++ backend/src/backend/program.cpp
+--- a/backend/src/backend/program.cpp
++++ a/backend/src/backend/program.cpp
 @@ -794,7 +794,11 @@ namespace gbe {
        llvm::raw_fd_ostream ostream (dumpSPIRBinaryName.c_str(),
                                      err, llvm::sys::fs::F_None);
@@ -86,8 +86,8 @@ index c37c595..b36f7b4 100644
      return true;
 diff --git a/backend/src/llvm/ExpandLargeIntegers.cpp b/backend/src/llvm/ExpandLargeIntegers.cpp
 index 8515dc1..4aec44e 100644
---- backend/src/llvm/ExpandLargeIntegers.cpp
-+++ backend/src/llvm/ExpandLargeIntegers.cpp
+--- a/backend/src/llvm/ExpandLargeIntegers.cpp
++++ a/backend/src/llvm/ExpandLargeIntegers.cpp
 @@ -99,8 +99,8 @@ using namespace llvm;
  
  #ifdef DEBUG
@@ -100,8 +100,8 @@ index 8515dc1..4aec44e 100644
  static const unsigned kChunkBytes = kChunkBits / CHAR_BIT;
 diff --git a/backend/src/llvm/llvm_bitcode_link.cpp b/backend/src/llvm/llvm_bitcode_link.cpp
 index ef56e4c..4c3e20e 100644
---- backend/src/llvm/llvm_bitcode_link.cpp
-+++ backend/src/llvm/llvm_bitcode_link.cpp
+--- a/backend/src/llvm/llvm_bitcode_link.cpp
++++ a/backend/src/llvm/llvm_bitcode_link.cpp
 @@ -340,7 +340,11 @@ namespace gbe
      /* We use beignet's bitcode as dst because it will have a lot of
         lazy functions which will not be loaded. */
@@ -116,8 +116,8 @@ index ef56e4c..4c3e20e 100644
      char* errorMsg;
 diff --git a/backend/src/llvm/llvm_includes.hpp b/backend/src/llvm/llvm_includes.hpp
 index 184553a..ffccf02 100644
---- backend/src/llvm/llvm_includes.hpp
-+++ backend/src/llvm/llvm_includes.hpp
+--- a/backend/src/llvm/llvm_includes.hpp
++++ a/backend/src/llvm/llvm_includes.hpp
 @@ -89,6 +89,10 @@
  #include "llvm/CodeGen/IntrinsicLowering.h"
  
diff --git a/srcpkgs/beignet/patches/llvm06.patch b/srcpkgs/beignet/patches/llvm06.patch
index ebd142ac098a..920dc1de9bc1 100644
--- a/srcpkgs/beignet/patches/llvm06.patch
+++ b/srcpkgs/beignet/patches/llvm06.patch
@@ -2,8 +2,8 @@ Source: Arch Linux
 Upstream: unknown
 Reason: fixes llvm6 compilation
 
---- backend/src/llvm/llvm_to_gen.cpp	2017-10-24 09:04:48.000000000 +0300
-+++ backend/src/llvm/llvm_to_gen.cpp	2018-03-16 16:08:54.669963824 +0200
+--- a/backend/src/llvm/llvm_to_gen.cpp
++++ a/backend/src/llvm/llvm_to_gen.cpp
 @@ -322,7 +322,11 @@ namespace gbe
      DataLayout DL(&mod);
      
@@ -16,8 +16,8 @@ Reason: fixes llvm6 compilation
  
  #if LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 37
      mod.setDataLayout(DL);
---- backend/src/llvm/llvm_unroll.cpp	2017-10-24 09:04:48.000000000 +0300
-+++ backend/src/llvm/llvm_unroll.cpp	2018-03-16 16:09:47.736403557 +0200
+--- a/backend/src/llvm/llvm_unroll.cpp
++++ a/backend/src/llvm/llvm_unroll.cpp
 @@ -205,7 +205,9 @@ namespace gbe {
            if (parentTripCount != 0 && currTripCount * parentTripCount > 32) {
              //Don't change the unrollID if doesn't force unroll.
diff --git a/srcpkgs/beignet/patches/llvm08.patch b/srcpkgs/beignet/patches/llvm08.patch
index 15128d1a1151..c288f6b350d6 100644
--- a/srcpkgs/beignet/patches/llvm08.patch
+++ b/srcpkgs/beignet/patches/llvm08.patch
@@ -19,8 +19,8 @@ backend/src/llvm/llvm_gen_backend.cpp:3083:5: error:
     TerminatorInst *term = bb->getTerminator();
     ^
 
---- backend/src/CMakeLists.txt.orig	2017-09-22 08:05:22 UTC
-+++ backend/src/CMakeLists.txt
+--- a/backend/src/CMakeLists.txt
++++ a/backend/src/CMakeLists.txt
 @@ -168,6 +168,7 @@ add_dependencies(gbe beignet_bitcode)
  endif (NOT (USE_STANDALONE_GBE_COMPILER STREQUAL "true"))
  
@@ -29,8 +29,8 @@ backend/src/llvm/llvm_gen_backend.cpp:3083:5: error:
  
  if (LLVM_VERSION_NODOT VERSION_EQUAL 34)
    find_library(TERMINFO NAMES tinfo ncurses)
---- backend/src/llvm/llvm_gen_backend.cpp.orig	2017-10-24 06:04:48 UTC
-+++ backend/src/llvm/llvm_gen_backend.cpp
+--- a/backend/src/llvm/llvm_gen_backend.cpp
++++ a/backend/src/llvm/llvm_gen_backend.cpp
 @@ -3073,14 +3073,22 @@ namespace gbe
  
  
diff --git a/srcpkgs/beignet/patches/llvm09.patch b/srcpkgs/beignet/patches/llvm09.patch
index bff503800b01..61aa2afb32ee 100644
--- a/srcpkgs/beignet/patches/llvm09.patch
+++ b/srcpkgs/beignet/patches/llvm09.patch
@@ -3,8 +3,8 @@ Source: FreeBSD + q66
 Mostly FreeBSD other than FindLLVM.cmake changes.
 Linking against clang-cpp does not work for us.
 
---- CMake/FindLLVM.cmake
-+++ CMake/FindLLVM.cmake
+--- a/CMake/FindLLVM.cmake
++++ a/CMake/FindLLVM.cmake
 @@ -140,6 +140,7 @@ add_one_lib("clangStaticAnalyzerCore")
  add_one_lib("clangAnalysis")
  add_one_lib("clangEdit")
@@ -13,8 +13,8 @@ Linking against clang-cpp does not work for us.
  add_one_lib("clangParse")
  add_one_lib("clangSema")
  add_one_lib("clangLex")
---- backend/src/llvm/llvm_intrinsic_lowering.cpp.orig	2017-10-24 06:04:48 UTC
-+++ backend/src/llvm/llvm_intrinsic_lowering.cpp
+--- a/backend/src/llvm/llvm_intrinsic_lowering.cpp
++++ a/backend/src/llvm/llvm_intrinsic_lowering.cpp
 @@ -77,7 +77,11 @@ namespace gbe {
          std::vector<Type *> ParamTys;
          for (Value** I = ArgBegin; I != ArgEnd; ++I)
@@ -27,8 +27,8 @@ Linking against clang-cpp does not work for us.
                                          FunctionType::get(RetTy, ParamTys, false));
  
          IRBuilder<> Builder(CI->getParent(), BasicBlock::iterator(CI));
---- backend/src/llvm/llvm_sampler_fix.cpp.orig	2017-10-24 06:04:48 UTC
-+++ backend/src/llvm/llvm_sampler_fix.cpp
+--- a/backend/src/llvm/llvm_sampler_fix.cpp
++++ a/backend/src/llvm/llvm_sampler_fix.cpp
 @@ -82,7 +82,11 @@ namespace gbe {
  #if LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 40
            Module *M = I->getParent()->getParent()->getParent();
@@ -53,8 +53,8 @@ Linking against clang-cpp does not work for us.
  #else
            Value* samplerCvt = M->getOrInsertFunction("__gen_ocl_sampler_to_int", i32Ty, I->getOperand(0)->getType(), nullptr);
  #endif
---- backend/src/llvm/llvm_profiling.cpp.orig	2017-10-24 06:04:48 UTC
-+++ backend/src/llvm/llvm_profiling.cpp
+--- a/backend/src/llvm/llvm_profiling.cpp
++++ a/backend/src/llvm/llvm_profiling.cpp
 @@ -163,10 +163,18 @@ namespace gbe
        // __gen_ocl_store_timestamp(int nth, int type);
        Value *Args[2] = {ConstantInt::get(intTy, pointNum++), ConstantInt::get(intTy, profilingType)};
@@ -93,8 +93,8 @@ Linking against clang-cpp does not work for us.
              ArrayRef<Value*>(Args2));
  #else
      builder->CreateCall(cast<llvm::Function>(module->getOrInsertFunction(
---- backend/src/llvm/llvm_device_enqueue.cpp.orig	2017-10-24 06:04:48 UTC
-+++ backend/src/llvm/llvm_device_enqueue.cpp
+--- a/backend/src/llvm/llvm_device_enqueue.cpp
++++ a/backend/src/llvm/llvm_device_enqueue.cpp
 @@ -398,8 +398,13 @@ namespace gbe {
                std::vector<Type *> ParamTys;
                for (Value** iter = args.begin(); iter != args.end(); ++iter)
diff --git a/srcpkgs/beignet/patches/llvm10.patch b/srcpkgs/beignet/patches/llvm10.patch
index 9a6cc5a8e8f8..6d1cf0f6769e 100644
--- a/srcpkgs/beignet/patches/llvm10.patch
+++ b/srcpkgs/beignet/patches/llvm10.patch
@@ -1,7 +1,7 @@
 diff --git CMake/FindLLVM.cmake CMake/FindLLVM.cmake
 index 0a59e47..6e90923 100644
---- CMake/FindLLVM.cmake
-+++ CMake/FindLLVM.cmake
+--- a/CMake/FindLLVM.cmake
++++ a/CMake/FindLLVM.cmake
 @@ -104,28 +104,16 @@ string(REGEX REPLACE " *\n" "" LLVM_SYSTEM_LIBS ${LLVM_SYSTEM_LIBS_ORIG})
  endif (LLVM_SYSTEM_LIBS_ORIG)
  endif (LLVM_VERSION_NODOT VERSION_GREATER 34)
@@ -38,8 +38,8 @@ index 0a59e47..6e90923 100644
 +add_one_lib("clang-cpp")
 diff --git CMakeLists.txt CMakeLists.txt
 index c11acbb..08f427d 100644
---- CMakeLists.txt
-+++ CMakeLists.txt
+--- a/CMakeLists.txt
++++ a/CMakeLists.txt
 @@ -79,7 +79,7 @@ elseif (COMPILER STREQUAL "CLANG")
  elseif (COMPILER STREQUAL "ICC")
    set (CMAKE_C_CXX_FLAGS "${CMAKE_C_CXX_FLAGS}  -wd2928 -Wall -fPIC -fstrict-aliasing -fp-model fast -msse4.1 -Wl,-E")
@@ -51,8 +51,8 @@ index c11acbb..08f427d 100644
  set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -DGBE_DEBUG=1")
 diff --git backend/src/backend/program.cpp backend/src/backend/program.cpp
 index b36f7b4..e666031 100644
---- backend/src/backend/program.cpp
-+++ backend/src/backend/program.cpp
+--- a/backend/src/backend/program.cpp
++++ a/backend/src/backend/program.cpp
 @@ -694,9 +694,9 @@ namespace gbe {
  #endif
                  );
@@ -77,8 +77,8 @@ index b36f7b4..e666031 100644
  #endif
 diff --git backend/src/llvm/llvm_gen_backend.cpp backend/src/llvm/llvm_gen_backend.cpp
 index c6fc30d..82441d8 100644
---- backend/src/llvm/llvm_gen_backend.cpp
-+++ backend/src/llvm/llvm_gen_backend.cpp
+--- a/backend/src/llvm/llvm_gen_backend.cpp
++++ a/backend/src/llvm/llvm_gen_backend.cpp
 @@ -575,10 +575,12 @@ namespace gbe
          has_errors(false),
          legacyMode(true)
@@ -94,8 +94,8 @@ index c6fc30d..82441d8 100644
      }
 diff --git backend/src/llvm/llvm_gen_backend.hpp backend/src/llvm/llvm_gen_backend.hpp
 index b4715b1..8e74f7a 100644
---- backend/src/llvm/llvm_gen_backend.hpp
-+++ backend/src/llvm/llvm_gen_backend.hpp
+--- a/backend/src/llvm/llvm_gen_backend.hpp
++++ a/backend/src/llvm/llvm_gen_backend.hpp
 @@ -130,10 +130,10 @@ namespace gbe
    llvm::FunctionPass *createGenPass(ir::Unit &unit);
  
@@ -120,8 +120,8 @@ index b4715b1..8e74f7a 100644
    llvm::FunctionPass* createPrintfParserPass(ir::Unit &unit);
 diff --git backend/src/llvm/llvm_intrinsic_lowering.cpp backend/src/llvm/llvm_intrinsic_lowering.cpp
 index 94f0ce6..b5539e9 100644
---- backend/src/llvm/llvm_intrinsic_lowering.cpp
-+++ backend/src/llvm/llvm_intrinsic_lowering.cpp
+--- a/backend/src/llvm/llvm_intrinsic_lowering.cpp
++++ a/backend/src/llvm/llvm_intrinsic_lowering.cpp
 @@ -29,12 +29,12 @@
  using namespace llvm;
  
@@ -168,8 +168,8 @@ index 94f0ce6..b5539e9 100644
  } // end namespace
 diff --git backend/src/llvm/llvm_loadstore_optimization.cpp backend/src/llvm/llvm_loadstore_optimization.cpp
 index 5aa38be..e314302 100644
---- backend/src/llvm/llvm_loadstore_optimization.cpp
-+++ backend/src/llvm/llvm_loadstore_optimization.cpp
+--- a/backend/src/llvm/llvm_loadstore_optimization.cpp
++++ a/backend/src/llvm/llvm_loadstore_optimization.cpp
 @@ -26,13 +26,13 @@
  
  using namespace llvm;
@@ -237,8 +237,8 @@ index 5aa38be..e314302 100644
  };
 diff --git backend/src/llvm/llvm_passes.cpp backend/src/llvm/llvm_passes.cpp
 index 10752a3..b8f2282 100644
---- backend/src/llvm/llvm_passes.cpp
-+++ backend/src/llvm/llvm_passes.cpp
+--- a/backend/src/llvm/llvm_passes.cpp
++++ a/backend/src/llvm/llvm_passes.cpp
 @@ -37,7 +37,7 @@
  #include "sys/map.hpp"
  
@@ -298,8 +298,8 @@ index 10752a3..b8f2282 100644
  } /* namespace gbe */
 diff --git backend/src/llvm/llvm_sampler_fix.cpp backend/src/llvm/llvm_sampler_fix.cpp
 index 2a097c8..863be6d 100644
---- backend/src/llvm/llvm_sampler_fix.cpp
-+++ backend/src/llvm/llvm_sampler_fix.cpp
+--- a/backend/src/llvm/llvm_sampler_fix.cpp
++++ a/backend/src/llvm/llvm_sampler_fix.cpp
 @@ -33,10 +33,12 @@ namespace gbe {
    class SamplerFix : public FunctionPass {
    public:
@@ -315,8 +315,8 @@ index 2a097c8..863be6d 100644
  
 diff --git backend/src/llvm/llvm_scalarize.cpp backend/src/llvm/llvm_scalarize.cpp
 index e9a2a66..e9d2ee4 100644
---- backend/src/llvm/llvm_scalarize.cpp
-+++ backend/src/llvm/llvm_scalarize.cpp
+--- a/backend/src/llvm/llvm_scalarize.cpp
++++ a/backend/src/llvm/llvm_scalarize.cpp
 @@ -96,10 +96,12 @@ namespace gbe {
  
      Scalarize() : FunctionPass(ID)
@@ -332,8 +332,8 @@ index e9a2a66..e9d2ee4 100644
  
 diff --git utests/CMakeLists.txt utests/CMakeLists.txt
 index 300d87a..64179c7 100644
---- utests/CMakeLists.txt
-+++ utests/CMakeLists.txt
+--- a/utests/CMakeLists.txt
++++ a/utests/CMakeLists.txt
 @@ -26,8 +26,8 @@ if (NOT NOT_BUILD_STAND_ALONE_UTEST)
    # Threads
    Find_Package(Threads)
diff --git a/srcpkgs/beignet/patches/llvm11.patch b/srcpkgs/beignet/patches/llvm11.patch
index 9f3282676986..c9a3e7f5ef21 100644
--- a/srcpkgs/beignet/patches/llvm11.patch
+++ b/srcpkgs/beignet/patches/llvm11.patch
@@ -7,8 +7,8 @@ There were a few changes required for LLVM 11:
 * CallInst::getCalledValue() was renamed to CallInst::getCalledOperand()
 * Implicit conversion from MaybeAlign to Align was removed, so MaybeAlign::valueOrOne was used instead.
 
---- backend/src/llvm/StripAttributes.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/StripAttributes.cpp	2020-11-09 19:04:19.641897141 +0100
+--- a/backend/src/llvm/StripAttributes.cpp
++++ a/backend/src/llvm/StripAttributes.cpp
 @@ -107,9 +107,8 @@
         BB != E; ++BB) {
      for (BasicBlock::iterator Inst = BB->begin(), E = BB->end();
@@ -21,8 +21,8 @@ There were a few changes required for LLVM 11:
      }
    }
 
---- backend/src/llvm/llvm_bitcode_link.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_bitcode_link.cpp	2020-11-09 17:04:09.633753428 +0100
+--- a/backend/src/llvm/llvm_bitcode_link.cpp
++++ a/backend/src/llvm/llvm_bitcode_link.cpp
 @@ -98,7 +98,7 @@
          if (callFunc && callFunc->getIntrinsicID() != 0)
            continue;
@@ -32,8 +32,8 @@ There were a few changes required for LLVM 11:
 
          if (!MFS.insert(fnName).second) {
            continue;
---- backend/src/llvm/llvm_device_enqueue.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_device_enqueue.cpp	2020-11-09 19:01:49.201915008 +0100
+--- a/backend/src/llvm/llvm_device_enqueue.cpp
++++ a/backend/src/llvm/llvm_device_enqueue.cpp
 @@ -45,7 +45,7 @@
        return NULL;
 
@@ -119,8 +119,8 @@ There were a few changes required for LLVM 11:
                  }
                }
              } else if(isa<AllocaInst>(block)) {
---- backend/src/llvm/llvm_gen_backend.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_gen_backend.cpp	2020-11-09 18:33:50.919114327 +0100
+--- a/backend/src/llvm/llvm_gen_backend.cpp
++++ a/backend/src/llvm/llvm_gen_backend.cpp
 @@ -376,7 +376,7 @@
            GBE_ASSERT(index == 0);
            return this->_newScalar(value, key, type, index, uniform);
@@ -725,8 +725,8 @@ There were a few changes required for LLVM 11:
            case GEN_OCL_GET_PIPE:
            case GEN_OCL_MAKE_RID:
            case GEN_OCL_GET_RID:
---- backend/src/llvm/llvm_includes.hpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_includes.hpp	2020-11-09 19:00:09.955926795 +0100
+--- a/backend/src/llvm/llvm_includes.hpp
++++ a/backend/src/llvm/llvm_includes.hpp
 @@ -103,7 +103,6 @@
 
  #if LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 35
@@ -735,8 +735,8 @@ There were a few changes required for LLVM 11:
  #include "llvm/IR/CFG.h"
  #include "llvm/IR/InstVisitor.h"
  #include "llvm/IR/IRPrintingPasses.h"
---- backend/src/llvm/llvm_loadstore_optimization.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_loadstore_optimization.cpp	2020-11-09 19:10:37.141852308 +0100
+--- a/backend/src/llvm/llvm_loadstore_optimization.cpp
++++ a/backend/src/llvm/llvm_loadstore_optimization.cpp
 @@ -160,7 +160,7 @@
      Value *vecPtr = Builder.CreateBitCast(ld->getPointerOperand(),
                                          PointerType::get(vecTy, addrSpace));
@@ -755,8 +755,8 @@ There were a few changes required for LLVM 11:
    }
 
    // Find the safe iterator we can point to. If reorder happens, we need to
---- backend/src/llvm/llvm_passes.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_passes.cpp	2020-11-09 18:48:55.997006837 +0100
+--- a/backend/src/llvm/llvm_passes.cpp
++++ a/backend/src/llvm/llvm_passes.cpp
 @@ -87,14 +87,14 @@
    }
 
@@ -800,8 +800,8 @@ There were a few changes required for LLVM 11:
      GBE_ASSERT(elementType);
      return elementType;
    }
---- backend/src/llvm/llvm_printf_parser.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_printf_parser.cpp	2020-11-09 18:57:52.618943105 +0100
+--- a/backend/src/llvm/llvm_printf_parser.cpp
++++ a/backend/src/llvm/llvm_printf_parser.cpp
 @@ -323,8 +323,7 @@
 
    bool PrintfParser::parseOnePrintfInstruction(CallInst * call)
@@ -856,8 +856,8 @@ There were a few changes required for LLVM 11:
          bool sign = false;
 
          if (vec_num != slot.state.vector_n) {
---- backend/src/llvm/llvm_profiling.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_profiling.cpp	2020-11-09 18:59:50.120929150 +0100
+--- a/backend/src/llvm/llvm_profiling.cpp
++++ a/backend/src/llvm/llvm_profiling.cpp
 @@ -35,7 +35,6 @@
  #include "llvm/IR/IRBuilder.h"
 
@@ -866,8 +866,8 @@ There were a few changes required for LLVM 11:
  #include "llvm/IR/CFG.h"
  #else
  #include "llvm/Support/CallSite.h"
---- backend/src/llvm/llvm_sampler_fix.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_sampler_fix.cpp	2020-11-09 17:01:09.407774832 +0100
+--- a/backend/src/llvm/llvm_sampler_fix.cpp
++++ a/backend/src/llvm/llvm_sampler_fix.cpp
 @@ -45,8 +45,8 @@
      bool visitCallInst(CallInst *I) {
        if(!I)
@@ -897,8 +897,8 @@ There were a few changes required for LLVM 11:
          {
            const ConstantInt *ci = dyn_cast<ConstantInt>(init->getOperand(0));
            uint32_t samplerInt = ci->getZExtValue();
---- backend/src/llvm/llvm_scalarize.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_scalarize.cpp	2020-11-09 18:51:16.888990104 +0100
+--- a/backend/src/llvm/llvm_scalarize.cpp
++++ a/backend/src/llvm/llvm_scalarize.cpp
 @@ -178,7 +178,7 @@
        if(!type)
          return type;
diff --git a/srcpkgs/beignet/patches/llvm12.patch b/srcpkgs/beignet/patches/llvm12.patch
index a773b4488d91..dcb7105cf943 100644
--- a/srcpkgs/beignet/patches/llvm12.patch
+++ b/srcpkgs/beignet/patches/llvm12.patch
@@ -1,7 +1,7 @@
 diff --git backend/src/llvm/ExpandLargeIntegers.cpp backend/src/llvm/ExpandLargeIntegers.cpp
 index 8515dc13..27080380 100644
---- backend/src/llvm/ExpandLargeIntegers.cpp
-+++ backend/src/llvm/ExpandLargeIntegers.cpp
+--- a/backend/src/llvm/ExpandLargeIntegers.cpp
++++ a/backend/src/llvm/ExpandLargeIntegers.cpp
 @@ -328,7 +328,7 @@ static Value *buildVectorOrScalar(ConversionState &State, IRBuilder<> &IRB, Smal
      // splited, that's why these temporary values should be erased.
      bool KeepInsert = isLegalBitSize(ElemTy->getPrimitiveSizeInBits() * ElemNo);
@@ -31,8 +31,8 @@ index 8515dc13..27080380 100644
        }
 diff --git backend/src/llvm/llvm_gen_backend.cpp backend/src/llvm/llvm_gen_backend.cpp
 index c93d89cc..64d5b0e5 100644
---- backend/src/llvm/llvm_gen_backend.cpp
-+++ backend/src/llvm/llvm_gen_backend.cpp
+--- a/backend/src/llvm/llvm_gen_backend.cpp
++++ a/backend/src/llvm/llvm_gen_backend.cpp
 @@ -304,7 +304,7 @@ namespace gbe
        TYPESIZEVEC(long,8)
        TYPESIZEVEC(unsigned long,8)
@@ -44,8 +44,8 @@ index c93d89cc..64d5b0e5 100644
        }
 diff --git backend/src/llvm/llvm_loadstore_optimization.cpp backend/src/llvm/llvm_loadstore_optimization.cpp
 index 5aa38bef..6b5c1bad 100644
---- backend/src/llvm/llvm_loadstore_optimization.cpp
-+++ backend/src/llvm/llvm_loadstore_optimization.cpp
+--- a/backend/src/llvm/llvm_loadstore_optimization.cpp
++++ a/backend/src/llvm/llvm_loadstore_optimization.cpp
 @@ -152,7 +152,7 @@ namespace gbe {
      unsigned addrSpace = ld->getPointerAddressSpace();
      // insert before first load
@@ -66,8 +66,8 @@ index 5aa38bef..6b5c1bad 100644
        parent = Builder.CreateInsertElement(parent, values[i], ConstantInt::get(IntegerType::get(st->getContext(), 32), i));
 diff --git backend/src/llvm/llvm_printf_parser.cpp backend/src/llvm/llvm_printf_parser.cpp
 index 6bb7c52a..af459cd2 100644
---- backend/src/llvm/llvm_printf_parser.cpp
-+++ backend/src/llvm/llvm_printf_parser.cpp
+--- a/backend/src/llvm/llvm_printf_parser.cpp
++++ a/backend/src/llvm/llvm_printf_parser.cpp
 @@ -630,7 +630,7 @@ error:
              if (elt_type != elt_dst_type) {
                Value *II = NULL;
@@ -88,8 +88,8 @@ index 6bb7c52a..af459cd2 100644
                  Value* cvt  = builder->CreateFPCast(org, Type::getFloatTy(module->getContext()));
 diff --git backend/src/llvm/llvm_to_gen.cpp backend/src/llvm/llvm_to_gen.cpp
 index 7f7deffe..9e8ccc67 100644
---- backend/src/llvm/llvm_to_gen.cpp
-+++ backend/src/llvm/llvm_to_gen.cpp
+--- a/backend/src/llvm/llvm_to_gen.cpp
++++ a/backend/src/llvm/llvm_to_gen.cpp
 @@ -358,7 +358,7 @@ namespace gbe
      passes.add(createScalarReplAggregatesPass(64, true, -1, -1, 64));
  #endif
diff --git a/srcpkgs/beignet/patches/musl.patch b/srcpkgs/beignet/patches/musl.patch
index b6c9c68d5004..1b726498983c 100644
--- a/srcpkgs/beignet/patches/musl.patch
+++ b/srcpkgs/beignet/patches/musl.patch
@@ -1,5 +1,5 @@
---- backend/src/backend/gen/gen_mesa_disasm.c
-+++ backend/src/backend/gen/gen_mesa_disasm.c
+--- a/backend/src/backend/gen/gen_mesa_disasm.c
++++ a/backend/src/backend/gen/gen_mesa_disasm.c
 @@ -1137,7 +1137,7 @@ static uint32_t __conv_half_to_float(uint16_t h)
        // Adjust mantissa so it's normalized (and keep
        // track of exponent adjustment)
diff --git a/srcpkgs/beignet/template b/srcpkgs/beignet/template
index dbe0d1888c67..29a1ef99dbda 100644
--- a/srcpkgs/beignet/template
+++ b/srcpkgs/beignet/template
@@ -14,7 +14,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.freedesktop.org/wiki/Software/Beignet/"
 distfiles="https://01.org/sites/default/files/${pkgname}-${version}-source.tar.gz"
 checksum=c555edba149de23243965a703f39f79fa06f15bcff5a3762b5544b0925010b43
-patch_args=-Np0
 
 post_install() {
 	# remove CL headers, we do use opencl-headers instead.
diff --git a/srcpkgs/belle-sip/patches/musl.patch b/srcpkgs/belle-sip/patches/musl.patch
index 2bbbddb198b1..47be34502f83 100644
--- a/srcpkgs/belle-sip/patches/musl.patch
+++ b/srcpkgs/belle-sip/patches/musl.patch
@@ -1,5 +1,5 @@
---- src/belle_sip_resolver.c	2018-02-21 17:30:40.474348393 +0100
-+++ -	2018-02-21 17:32:31.892044464 +0100
+--- a/src/belle_sip_resolver.c
++++ a/-
 @@ -459,7 +459,11 @@
  }
  
diff --git a/srcpkgs/belle-sip/template b/srcpkgs/belle-sip/template
index 9f9c297d3589..6351feba635d 100644
--- a/srcpkgs/belle-sip/template
+++ b/srcpkgs/belle-sip/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.linphone.org"
 distfiles="https://gitlab.linphone.org/BC/public/belle-sip/-/archive/${version}/belle-sip-${version}.tar.gz"
 checksum=4f9218b0bbf55c2f68d70a0e83779e591ef9fe97f1caf7550768ea192ee34cee
-patch_args=-Np0
 
 belle-sip-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/berkeley-abc/patches/remove_bzlib_convenience.patch b/srcpkgs/berkeley-abc/patches/remove_bzlib_convenience.patch
index 00bf278ce703..e6c6ba8989f4 100644
--- a/srcpkgs/berkeley-abc/patches/remove_bzlib_convenience.patch
+++ b/srcpkgs/berkeley-abc/patches/remove_bzlib_convenience.patch
@@ -14,8 +14,8 @@ Forwarded: doesn't make sense upstream
 
 diff --git Makefile Makefile
 index e0e8b8f..36b0f89 100644
---- Makefile
-+++ Makefile
+--- a/Makefile
++++ a/Makefile
 @@ -20,7 +20,7 @@ MODULES := \
  	src/map/mapper src/map/mio src/map/super src/map/if \
  	src/map/amap src/map/cov src/map/scl src/map/mpm \
@@ -36,8 +36,8 @@ index e0e8b8f..36b0f89 100644
     $(info $(MSG_PREFIX)Using explicit -lstdc++)
 diff --git src/base/io/ioReadAiger.c src/base/io/ioReadAiger.c
 index f87d971..4f0f6a3 100644
---- src/base/io/ioReadAiger.c
-+++ src/base/io/ioReadAiger.c
+--- a/src/base/io/ioReadAiger.c
++++ a/src/base/io/ioReadAiger.c
 @@ -26,7 +26,7 @@
  #include <string.h>
  #include <assert.h>
@@ -49,8 +49,8 @@ index f87d971..4f0f6a3 100644
  
 diff --git src/base/io/ioWriteAiger.c src/base/io/ioWriteAiger.c
 index 0a68c7e..f0744c6 100644
---- src/base/io/ioWriteAiger.c
-+++ src/base/io/ioWriteAiger.c
+--- a/src/base/io/ioWriteAiger.c
++++ a/src/base/io/ioWriteAiger.c
 @@ -26,7 +26,7 @@
  #include <string.h>
  #include <assert.h>
diff --git a/srcpkgs/berkeley-abc/patches/remove_zlib_convenience.patch b/srcpkgs/berkeley-abc/patches/remove_zlib_convenience.patch
index d869703569fb..c0dadae97115 100644
--- a/srcpkgs/berkeley-abc/patches/remove_zlib_convenience.patch
+++ b/srcpkgs/berkeley-abc/patches/remove_zlib_convenience.patch
@@ -15,8 +15,8 @@ Forwarded: doesn't make sense upstream
 
 diff --git Makefile Makefile
 index 36b0f89..68651d2 100644
---- Makefile
-+++ Makefile
+--- a/Makefile
++++ a/Makefile
 @@ -20,7 +20,7 @@ MODULES := \
  	src/map/mapper src/map/mio src/map/super src/map/if \
  	src/map/amap src/map/cov src/map/scl src/map/mpm \
@@ -36,8 +36,8 @@ index 36b0f89..68651d2 100644
     LIBS += -lstdc++
 diff --git src/base/io/ioReadAiger.c src/base/io/ioReadAiger.c
 index 4f0f6a3..e174ff6 100644
---- src/base/io/ioReadAiger.c
-+++ src/base/io/ioReadAiger.c
+--- a/src/base/io/ioReadAiger.c
++++ a/src/base/io/ioReadAiger.c
 @@ -27,7 +27,7 @@
  #include <assert.h>
  
@@ -49,8 +49,8 @@ index 4f0f6a3..e174ff6 100644
  ABC_NAMESPACE_IMPL_START
 diff --git src/base/io/ioWriteAiger.c src/base/io/ioWriteAiger.c
 index f0744c6..d265104 100644
---- src/base/io/ioWriteAiger.c
-+++ src/base/io/ioWriteAiger.c
+--- a/src/base/io/ioWriteAiger.c
++++ a/src/base/io/ioWriteAiger.c
 @@ -27,7 +27,7 @@
  #include <assert.h>
  
@@ -62,8 +62,8 @@ index f0744c6..d265104 100644
  
 diff --git src/sat/cnf/cnfMan.c src/sat/cnf/cnfMan.c
 index 5a125ec..54c582f 100644
---- src/sat/cnf/cnfMan.c
-+++ src/sat/cnf/cnfMan.c
+--- a/src/sat/cnf/cnfMan.c
++++ a/src/sat/cnf/cnfMan.c
 @@ -21,7 +21,7 @@
  #include "cnf.h"
  #include "sat/bsat/satSolver.h"
diff --git a/srcpkgs/berkeley-abc/patches/reproducibility.patch b/srcpkgs/berkeley-abc/patches/reproducibility.patch
index c807519fa423..ccc00bdc7805 100644
--- a/srcpkgs/berkeley-abc/patches/reproducibility.patch
+++ b/srcpkgs/berkeley-abc/patches/reproducibility.patch
@@ -11,8 +11,8 @@ Otherwise the debian package checking complains...
 
 diff --git src/base/cmd/cmdUtils.c src/base/cmd/cmdUtils.c
 index 3409543..9b7223f 100644
---- src/base/cmd/cmdUtils.c
-+++ src/base/cmd/cmdUtils.c
+--- a/src/base/cmd/cmdUtils.c
++++ a/src/base/cmd/cmdUtils.c
 @@ -589,7 +589,7 @@ void CmdCommandPrint( Abc_Frame_t * pAbc, int fPrintAll, int fDetails )
      nColumns = 79 / (LenghtMax + 2);
  
@@ -24,8 +24,8 @@ index 3409543..9b7223f 100644
      sGroupCur = NULL;
 diff --git src/base/main/mainUtils.c src/base/main/mainUtils.c
 index d1fe1d2..3668f3b 100644
---- src/base/main/mainUtils.c
-+++ src/base/main/mainUtils.c
+--- a/src/base/main/mainUtils.c
++++ a/src/base/main/mainUtils.c
 @@ -52,7 +52,7 @@ static char * DateReadFromDateString( char * datestr );
  char * Abc_UtilsGetVersion( Abc_Frame_t * pAbc )
  {
diff --git a/srcpkgs/berkeley-abc/template b/srcpkgs/berkeley-abc/template
index 280c3e0bce2c..f5aeb2a1e4fd 100644
--- a/srcpkgs/berkeley-abc/template
+++ b/srcpkgs/berkeley-abc/template
@@ -15,7 +15,6 @@ license="custom:University-of-California, BSD-4-Clause, MIT, BSD-2-Clause"
 homepage="http://www.eecs.berkeley.edu/~alanmi/abc/"
 distfiles="https://github.com/berkeley-abc/abc/archive/$_gitrev.tar.gz"
 checksum=52f1e9bf62c1e0d3b3cbe145f61b409a725e73fe606ba010efcbb2701a14171b
-patch_args=-Np0
 
 post_patch() {
 	vsed -i -e '/^CC *:=/d' -e '/^CXX *:=/d' -e '/^AR *:=/d' \
diff --git a/srcpkgs/berry/patches/fix-cross.patch b/srcpkgs/berry/patches/fix-cross.patch
index 2b069971ae53..afe5f3cd3f3d 100644
--- a/srcpkgs/berry/patches/fix-cross.patch
+++ b/srcpkgs/berry/patches/fix-cross.patch
@@ -1,5 +1,5 @@
---- config.mk.orig
-+++ config.mk
+--- a/config.mk.orig
++++ a/config.mk
 @@ -9,11 +9,11 @@
  # Customize below to fit your system
  
diff --git a/srcpkgs/berry/template b/srcpkgs/berry/template
index a9fb2bf94342..05256589af24 100644
--- a/srcpkgs/berry/template
+++ b/srcpkgs/berry/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="https://github.com/JLErvin/berry"
 distfiles="https://github.com/JLErvin/berry/archive/${version}.tar.gz"
 checksum=1d6de883a0cd96ceb167c5ad2e855b0b15fa84872d41a22e05d0fdf0cf4be6b8
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/biew/patches/bool.patch b/srcpkgs/biew/patches/bool.patch
index 707af17de4aa..57a675af202b 100644
--- a/srcpkgs/biew/patches/bool.patch
+++ b/srcpkgs/biew/patches/bool.patch
@@ -2,8 +2,8 @@ The two underscores in the front violate namespace and
 break build at least on some systems, as __bool might be
 a builtin type name.
 
---- plugins/bin/ne.c
-+++ plugins/bin/ne.c
+--- a/plugins/bin/ne.c
++++ a/plugins/bin/ne.c
 @@ -465,16 +465,16 @@ static void __FASTCALL__ ShowProcListNE( int modno )
  {
   BGLOBAL handle;
diff --git a/srcpkgs/biew/template b/srcpkgs/biew/template
index 06db316d4c6a..73a17e44c8d6 100644
--- a/srcpkgs/biew/template
+++ b/srcpkgs/biew/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="http://beye.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/beye/${pkgname}/${version}/${pkgname}-${_shortversion}-src.tar.bz2"
 checksum=2e85f03c908dd6ec832461fbfbc79169a33f4caccf48c8fe60cbd29f5fb06d17
-patch_args=-Np0
 
 pre_configure() {
 	configure_args+=" --target-arch=generic --ld=$CC"
diff --git a/srcpkgs/bin86/patches/fix_x86_64.diff b/srcpkgs/bin86/patches/fix_x86_64.diff
index f8efc33d2ba7..8f89a7bbacde 100644
--- a/srcpkgs/bin86/patches/fix_x86_64.diff
+++ b/srcpkgs/bin86/patches/fix_x86_64.diff
@@ -1,5 +1,5 @@
---- ld/x86_aout.h    2005-11-07 20:07:31.506442000 +0100
-+++ ld/x86_aout.h 2020-02-07 20:07:41.106982496 +0100
+--- a/ld/x86_aout.h    2005-11-07 20:07:31.506442000 +0100
++++ a/ld/x86_aout.h 2020-02-07 20:07:41.106982496 +0100
 @@ -12,6 +12,9 @@
  #if defined(i386) || defined(__BCC__) || defined(MSDOS)
  typedef long Long;
diff --git a/srcpkgs/bin86/template b/srcpkgs/bin86/template
index fd37d2a267d3..8d711210193e 100644
--- a/srcpkgs/bin86/template
+++ b/srcpkgs/bin86/template
@@ -9,7 +9,6 @@ license="GPL-2"
 distfiles="http://v3.sk/~lkundrak/dev86/bin86-${version}.tar.gz"
 checksum=021e37cde3a20632c4c9000993cb4aa9f58cb82b1d3c26b9aeb62d6566925738
 archs="i686* x86_64*"
-patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" PREFIX=/usr
diff --git a/srcpkgs/binwalk/patches/fallback-version.patch b/srcpkgs/binwalk/patches/fallback-version.patch
index b319bfebb5e0..aa03de8a57bb 100644
--- a/srcpkgs/binwalk/patches/fallback-version.patch
+++ b/srcpkgs/binwalk/patches/fallback-version.patch
@@ -1,5 +1,5 @@
---- src/binwalk/core/version.py.orig
-+++ src/binwalk/core/version.py
+--- a/src/binwalk/core/version.py.orig
++++ a/src/binwalk/core/version.py
 @@ -1,6 +1,10 @@
  try:
      from importlib import metadata
diff --git a/srcpkgs/binwalk/template b/srcpkgs/binwalk/template
index cec10ddb7e74..6c61fff87aeb 100644
--- a/srcpkgs/binwalk/template
+++ b/srcpkgs/binwalk/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="https://github.com/ReFirmLabs/binwalk"
 distfiles="https://github.com/ReFirmLabs/binwalk/archive/v${version}.tar.gz"
 checksum=7ec9d8fcb8686f4060d37e1096669e3ed8ce1194c91ad80199622448bcc01b19
-patch_args=-Np0
 
 post_extract() {
 	vsed -i -e 's;/etc/bash_completion.d/%s;%s.bash;' setup.py
diff --git a/srcpkgs/biosdisk/patches/fix-sbin.patch b/srcpkgs/biosdisk/patches/fix-sbin.patch
index 5914863cbbe7..3adbe79efb76 100644
--- a/srcpkgs/biosdisk/patches/fix-sbin.patch
+++ b/srcpkgs/biosdisk/patches/fix-sbin.patch
@@ -1,5 +1,5 @@
---- Makefile.orig
-+++ Makefile
+--- a/Makefile.orig
++++ a/Makefile
 @@ -3,7 +3,7 @@
  DESTDIR =
  prefix ?= /usr/
diff --git a/srcpkgs/biosdisk/template b/srcpkgs/biosdisk/template
index ea5ad3aebcab..ccbc76f4e55a 100644
--- a/srcpkgs/biosdisk/template
+++ b/srcpkgs/biosdisk/template
@@ -10,4 +10,3 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/dell/biosdisk"
 distfiles="https://github.com/dell/biosdisk/archive/${version}.tar.gz"
 checksum=e89cf680914ab3d5bbb549c124c6c29594ef495880befc0d059ec8a3aaf1e3e7
-patch_args=-Np0
diff --git a/srcpkgs/bird/patches/fix-tests-musl.patch b/srcpkgs/bird/patches/fix-tests-musl.patch
index 2bac77b009d1..a40a00a0906f 100644
--- a/srcpkgs/bird/patches/fix-tests-musl.patch
+++ b/srcpkgs/bird/patches/fix-tests-musl.patch
@@ -1,5 +1,5 @@
---- lib/printf_test.c
-+++ lib/printf_test.c
+--- a/lib/printf_test.c
++++ a/lib/printf_test.c
 @@ -22,6 +22,7 @@ static int
  t_simple(void)
  {
diff --git a/srcpkgs/bird/template b/srcpkgs/bird/template
index 493605a5ceb1..bc40598b0360 100644
--- a/srcpkgs/bird/template
+++ b/srcpkgs/bird/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="https://bird.network.cz"
 distfiles="https://gitlab.labs.nic.cz/labs/bird/-/archive/v${version}/bird-v${version}.tar.gz"
 checksum=4d0eeea762dcd4422e1e276e2ed123cfed630cf1cce017b50463d79fcf2fff0c
-patch_args=-Np0
 
 conf_files="/etc/bird.conf"
 system_accounts="_bird"
diff --git a/srcpkgs/birdtray/patches/QPainterPath.patch b/srcpkgs/birdtray/patches/QPainterPath.patch
index c73ef6e6da5d..54db6caee2fe 100644
--- a/srcpkgs/birdtray/patches/QPainterPath.patch
+++ b/srcpkgs/birdtray/patches/QPainterPath.patch
@@ -1,5 +1,5 @@
---- src/trayicon.cpp	2020-04-29 13:40:12.000000000 +0200
-+++ src/trayicon.cpp	2020-08-31 20:47:56.018726289 +0200
+--- a/src/trayicon.cpp
++++ a/src/trayicon.cpp
 @@ -1,6 +1,7 @@
  #include <QMenu>
  #include <QTimer>
diff --git a/srcpkgs/birdtray/template b/srcpkgs/birdtray/template
index acf7c1d9c19c..8695820eccec 100644
--- a/srcpkgs/birdtray/template
+++ b/srcpkgs/birdtray/template
@@ -11,4 +11,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/gyunaev/birdtray"
 distfiles="https://github.com/gyunaev/birdtray/archive/v${version}.tar.gz"
 checksum=672256bfadbde2841dcd6bad00662aeba825a4f041fa9a1980763f9eb29294d0
-patch_args=-Np0
diff --git a/srcpkgs/bish/patches/fix-ldflags.patch b/srcpkgs/bish/patches/fix-ldflags.patch
index a3d8bc6c620d..ae1ce647cfb7 100644
--- a/srcpkgs/bish/patches/fix-ldflags.patch
+++ b/srcpkgs/bish/patches/fix-ldflags.patch
@@ -1,5 +1,5 @@
---- Makefile.orig	2016-05-24 14:29:52.349935460 +0200
-+++ Makefile	2016-05-24 14:30:01.190934798 +0200
+--- a/Makefile
++++ a/Makefile
 @@ -29,7 +29,7 @@ $(OBJ)/libbish.a: $(OBJECTS)
  	ranlib $@
  
diff --git a/srcpkgs/bish/template b/srcpkgs/bish/template
index f5140a9ac2d6..2355c664a428 100644
--- a/srcpkgs/bish/template
+++ b/srcpkgs/bish/template
@@ -9,7 +9,6 @@ license="MIT"
 homepage="https://github.com/tdenniston/bish"
 distfiles="https://github.com/tdenniston/bish/archive/v${version}.tar.gz"
 checksum=796d1efcbc9e8c7ea604881860aa8d857aad089c4eeb766283c21c210687942b
-patch_args=-Np0
 
 do_install() {
 	vbin bish
diff --git a/srcpkgs/bitchx/patches/bitchx-1.2.1-security.patch b/srcpkgs/bitchx/patches/bitchx-1.2.1-security.patch
index 4964db9c8476..fc6ff5288222 100644
--- a/srcpkgs/bitchx/patches/bitchx-1.2.1-security.patch
+++ b/srcpkgs/bitchx/patches/bitchx-1.2.1-security.patch
@@ -1,7 +1,7 @@
 diff --git include/dcc.h include/dcc.h
 index 9cc1e7c..3e4f12d 100644
---- include/dcc.h
-+++ include/dcc.h
+--- a/include/dcc.h
++++ a/include/dcc.h
 @@ -97,6 +97,7 @@
  #define DCC_OFFER      0x00040000
  #define DCC_DELETE     0x00080000
@@ -12,8 +12,8 @@ index 9cc1e7c..3e4f12d 100644
  #define DCC_CNCT_PEND  0x00200000
 diff --git source/dcc.c source/dcc.c
 index d0706f8..b158189 100644
---- source/dcc.c
-+++ source/dcc.c
+--- a/source/dcc.c
++++ a/source/dcc.c
 @@ -1415,6 +1415,7 @@ UserList *ul = NULL;
  			if (autoresume && stat(fullname, &sb) != -1) {
  				n->transfer_orders.byteoffset = sb.st_size;
diff --git a/srcpkgs/bitchx/patches/openssl-1.1.patch b/srcpkgs/bitchx/patches/openssl-1.1.patch
index f062675dc67e..091e34377ea7 100644
--- a/srcpkgs/bitchx/patches/openssl-1.1.patch
+++ b/srcpkgs/bitchx/patches/openssl-1.1.patch
@@ -10,8 +10,8 @@ Date:   Fri Mar 17 00:38:46 2017 +1100
 
 diff --git configure configure
 index d435491..f4af7bb 100755
---- configure
-+++ configure
+--- a/configure
++++ a/configure
 @@ -10630,9 +10630,9 @@ esac
  case "$with_ssl" in
      yes|check)
@@ -76,8 +76,8 @@ index d435491..f4af7bb 100755
  echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
 diff --git configure.in configure.in
 index 63d133f..3694a7f 100644
---- configure.in
-+++ configure.in
+--- a/configure.in
++++ a/configure.in
 @@ -562,8 +562,8 @@ case "$with_ssl" in
  esac
  case "$with_ssl" in
diff --git a/srcpkgs/bitchx/template b/srcpkgs/bitchx/template
index f5de7ac86973..450fde27deed 100644
--- a/srcpkgs/bitchx/template
+++ b/srcpkgs/bitchx/template
@@ -11,7 +11,6 @@ license="BSD-3-Clause"
 homepage="http://bitchx.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=2d270500dd42b5e2b191980d584f6587ca8a0dbda26b35ce7fadb519f53c83e2
-patch_args=-Np0
 
 disable_parallel_build=yes
 
diff --git a/srcpkgs/bitfighter/patches/cmake.patch b/srcpkgs/bitfighter/patches/cmake.patch
index 217ba740763a..befd5872599f 100644
--- a/srcpkgs/bitfighter/patches/cmake.patch
+++ b/srcpkgs/bitfighter/patches/cmake.patch
@@ -1,5 +1,5 @@
---- cmake/Platform/Linux.cmake.orig	2018-12-20 21:54:40.020718363 -0700
-+++ cmake/Platform/Linux.cmake	2018-12-20 21:54:49.064912089 -0700
+--- a/cmake/Platform/Linux.cmake
++++ a/cmake/Platform/Linux.cmake
 @@ -99,7 +99,7 @@ function(BF_PLATFORM_INSTALL targetName)
  
  	if(INSTALL_NOTIFIER)
@@ -9,8 +9,8 @@
  		# Modify python script to use proper path to the system-installed icon
  		install(CODE "execute_process(COMMAND sed -i -e \"s@redship48.png@bitfighter.png@\" -e \"s@^ICON_BASE =.*@ICON_BASE = \\\"${CMAKE_DESKTOP_DATA_PATH}/pixmaps/\\\"@\" ${CMAKE_SOURCE_DIR}/notifier/bitfighter_notifier.py)")
  		install(PROGRAMS ${CMAKE_SOURCE_DIR}/notifier/bitfighter_notifier.py DESTINATION ${CMAKE_BIN_PATH} RENAME bitfighter_notifier)
---- zap/bitfighterd.cmake.orig	2018-12-20 21:19:40.666559517 -0700
-+++ zap/bitfighterd.cmake	2018-12-20 21:19:44.866653338 -0700
+--- a/zap/bitfighterd.cmake
++++ a/zap/bitfighterd.cmake
 @@ -11,13 +11,13 @@ add_executable(bitfighterd
  add_dependencies(bitfighterd
  	tnl
@@ -26,8 +26,8 @@
  )
  
  set_target_properties(bitfighterd
---- ./zap/bitfighter_client.cmake.orig	2018-12-16 09:12:56.168753252 -0700
-+++ ./zap/bitfighter_client.cmake	2018-12-20 21:02:50.936433248 -0700
+--- a/zap/bitfighter_client.cmake
++++ a/zap/bitfighter_client.cmake
 @@ -11,13 +11,23 @@ add_library(bitfighter_client OBJECT
  	${OTHER_HEADERS}
  )
@@ -54,8 +54,8 @@
  )
  
  if(USE_GLES)
---- ./master/CMakeLists.txt.orig	2018-12-20 21:10:17.222088600 -0700
-+++ ./master/CMakeLists.txt	2018-12-20 21:13:57.550931398 -0700
+--- a/master/CMakeLists.txt
++++ a/master/CMakeLists.txt
 @@ -41,7 +41,11 @@ else()
  endif()
  
@@ -69,8 +69,8 @@
  
  set(MASTER_LIBS 
  	tnl
---- ./CMakeLists.txt.orig	2018-12-12 15:40:38.904058738 -0700
-+++ ./CMakeLists.txt	2018-12-20 21:09:57.017647629 -0700
+--- a/CMakeLists.txt
++++ a/CMakeLists.txt
 @@ -1,17 +1,6 @@
  project (bitfighter)
  cmake_minimum_required (VERSION 3.1.0)
@@ -90,8 +90,8 @@
  #
  # CMake options
 
---- zap/bitfighter_client.cmake	2019-01-07 02:43:43.453459870 +0100
-+++ -	2019-01-07 02:54:56.118124604 +0100
+--- a/zap/bitfighter_client.cmake
++++ a/-
 @@ -20,12 +20,13 @@
  if(NOT TOMCRYPT_FOUND)
  	list(APPEND CLIENT_EXTRA_DEPS tomcrypt)
@@ -108,8 +108,8 @@
  	poly2tri
  	${CLIENT_EXTRA_DEPS}
  )
---- zap/bitfighterd.cmake	2019-01-07 02:57:05.348462052 +0100
-+++ -	2019-01-07 02:59:39.300598740 +0100
+--- a/zap/bitfighterd.cmake
++++ a/-
 @@ -11,12 +11,12 @@
  add_dependencies(bitfighterd
  	tnl
@@ -124,8 +124,8 @@
  	${TOMCRYPT__LIBRARIES}
  )
  
---- zap/bitfighter_client.cmake	2019-01-07 03:03:15.449271742 +0100
-+++ -	2019-01-07 03:05:39.233731581 +0100
+--- a/zap/bitfighter_client.cmake
++++ a/-
 @@ -25,7 +25,6 @@
  endif()
  
@@ -134,8 +134,8 @@
  	tnl
  	poly2tri
  	${CLIENT_EXTRA_DEPS}
---- zap/bitfighterd.cmake	2019-01-07 03:03:15.456271777 +0100
-+++ -	2019-01-07 03:05:59.095945997 +0100
+--- a/zap/bitfighterd.cmake
++++ a/-
 @@ -10,12 +10,12 @@
  
  add_dependencies(bitfighterd
diff --git a/srcpkgs/bitfighter/template b/srcpkgs/bitfighter/template
index 58e033107399..c3b2cc22a265 100644
--- a/srcpkgs/bitfighter/template
+++ b/srcpkgs/bitfighter/template
@@ -20,7 +20,6 @@ checksum="cd47c453d9e6875ded627b987a645e2ff2c757363f394b152f62d868e1d81427
  d628a2b0af024a965b92877f321f2174d6309b7ce9236775af3bd86a67fcc72b"
 python_version=2
 replaces="bitfighter-data>=0"
-patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/bitwise/patches/tests-use-bcunit.patch b/srcpkgs/bitwise/patches/tests-use-bcunit.patch
index 154d098e7d6e..fade97c4b401 100644
--- a/srcpkgs/bitwise/patches/tests-use-bcunit.patch
+++ b/srcpkgs/bitwise/patches/tests-use-bcunit.patch
@@ -1,6 +1,6 @@
 diff '--color=auto' -ruN bitwise-v0.42/Makefile.in bitwise-v0.42_new/Makefile.in
---- Makefile.in	2021-04-16 17:21:30.000000000 +0200
-+++ Makefile.in	2021-04-17 09:36:46.661320033 +0200
+--- a/Makefile.in
++++ a/Makefile.in
 @@ -518,7 +518,7 @@
  								   src/misc.c \
                                     tests/test-shunting-yard.c
@@ -11,8 +11,8 @@ diff '--color=auto' -ruN bitwise-v0.42/Makefile.in bitwise-v0.42_new/Makefile.in
  all: all-am
  
 diff '--color=auto' -ruN bitwise-v0.42/tests/test-shunting-yard.c bitwise-v0.42_new/tests/test-shunting-yard.c
---- tests/test-shunting-yard.c	2021-04-16 17:17:19.000000000 +0200
-+++ tests/test-shunting-yard.c	2021-04-17 09:36:46.660320033 +0200
+--- a/tests/test-shunting-yard.c
++++ a/tests/test-shunting-yard.c
 @@ -7,7 +7,7 @@
  
  #include "../inc/shunting-yard.h"
diff --git a/srcpkgs/bitwise/template b/srcpkgs/bitwise/template
index 9e3fe3fa18c7..16b8b2a23fe4 100644
--- a/srcpkgs/bitwise/template
+++ b/srcpkgs/bitwise/template
@@ -12,4 +12,3 @@ license="GPL-3.0-only"
 homepage="https://github.com/mellowcandle/bitwise"
 distfiles="${homepage}/releases/download/v${version}/bitwise-v${version}.tar.gz"
 checksum=d3d43cef47bf8f49e85f7ed381c3eaf1df921ca51805e0962f1a97a517e1d1d2
-patch_args=-Np0
diff --git a/srcpkgs/blackboxwm/patches/time64.patch b/srcpkgs/blackboxwm/patches/time64.patch
index 9bbcf04b7427..a4edb1e5099c 100644
--- a/srcpkgs/blackboxwm/patches/time64.patch
+++ b/srcpkgs/blackboxwm/patches/time64.patch
@@ -1,5 +1,5 @@
---- src/Toolbar.cc	2020-12-13 23:57:20.285876509 +0100
-+++ src/Toolbar.cc	2020-12-13 23:58:32.570856812 +0100
+--- a/src/Toolbar.cc
++++ a/src/Toolbar.cc
 @@ -44,7 +44,7 @@
  {
    timeval now;
diff --git a/srcpkgs/blackboxwm/template b/srcpkgs/blackboxwm/template
index 05fffcbf3af0..10ad09eac501 100644
--- a/srcpkgs/blackboxwm/template
+++ b/srcpkgs/blackboxwm/template
@@ -12,7 +12,6 @@ license="MIT"
 homepage="https://github.com/bbidulock/blackboxwm"
 distfiles="${homepage}/releases/download/${version}/blackbox-${version}.tar.lz"
 checksum=e4f814fb02f6a977e9aab1c60192087597b79b0a56cc4a14e8a962b7d45d82d1
-patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/bmon/patches/Add_CTRL-N_CTRL-P.patch b/srcpkgs/bmon/patches/Add_CTRL-N_CTRL-P.patch
index c89f6242a631..f122805bd900 100644
--- a/srcpkgs/bmon/patches/Add_CTRL-N_CTRL-P.patch
+++ b/srcpkgs/bmon/patches/Add_CTRL-N_CTRL-P.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] curses: Add CTRL-N/CTRL-P for next/previous element
 
 diff --git src/out_curses.c src/out_curses.c
 index 51b6391..330e8f6 100644
---- src/out_curses.c
-+++ src/out_curses.c
+--- a/src/out_curses.c
++++ a/src/out_curses.c
 @@ -45,6 +45,8 @@ enum {
  	KEY_TOGGLE_DETAILS	= 'd',
  	KEY_TOGGLE_INFO		= 'i',
diff --git a/srcpkgs/bmon/patches/out_curses.patch b/srcpkgs/bmon/patches/out_curses.patch
index 4cdf1355807f..9fca273c2d62 100644
--- a/srcpkgs/bmon/patches/out_curses.patch
+++ b/srcpkgs/bmon/patches/out_curses.patch
@@ -16,8 +16,8 @@ Signed-off-by: Nachiketa Prachanda <nchkta@gmail.com>
 
 diff --git src/out_curses.c src/out_curses.c
 index 6d70ae3..e5317de 100644
---- src/out_curses.c
-+++ src/out_curses.c
+--- a/src/out_curses.c
++++ a/src/out_curses.c
 @@ -147,22 +147,24 @@ static char *float2str(double value, int width, int prec, char *buf, size_t len)
  static void put_line(const char *fmt, ...)
  {
diff --git a/srcpkgs/bmon/template b/srcpkgs/bmon/template
index 64f426cc2eca..67b13cb31a54 100644
--- a/srcpkgs/bmon/template
+++ b/srcpkgs/bmon/template
@@ -11,7 +11,6 @@ license="BSD-2-Clause, MIT"
 homepage="http://github.com/tgraf/bmon/"
 distfiles="http://github.com/tgraf/${pkgname}/archive/v${version}.tar.gz"
 checksum=d5e503ff6b116c681ebf4d10e238604dde836dceb9c0008eb92416a96c87ca40
-patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/boinc/patches/arm-not-android.patch b/srcpkgs/boinc/patches/arm-not-android.patch
index d04f8f780a84..16ce0eb57c3b 100644
--- a/srcpkgs/boinc/patches/arm-not-android.patch
+++ b/srcpkgs/boinc/patches/arm-not-android.patch
@@ -1,5 +1,5 @@
---- client/Makefile.am	2020-05-31 01:43:58.000000000 -0400
-+++ client/Makefile.am	2020-06-06 11:31:53.051972845 -0400
+--- a/client/Makefile.am
++++ a/client/Makefile.am
 @@ -113,6 +113,7 @@
  
  boinc_clientdir = $(bindir)
@@ -16,8 +16,8 @@
  
  switcher_SOURCES = switcher.cpp
  switcher_LDFLAGS = $(AM_LDFLAGS) -L../lib
---- client/whetstone.cpp	2018-01-14 11:07:52.000000000 +0100
-+++ client/whetstone.cpp	2018-02-26 20:49:52.185904752 +0100
+--- a/client/whetstone.cpp
++++ a/client/whetstone.cpp
 @@ -290,6 +290,8 @@
      return 0;
  }
@@ -27,8 +27,8 @@
    }
  #endif // namespace closure
 +#endif
---- configure.ac	2020-05-31 01:43:58.000000000 -0400
-+++ configure.ac	2020-06-06 11:41:14.259984481 -0400
+--- a/configure.ac
++++ a/configure.ac
 @@ -1051,6 +1051,7 @@
  dnl or OS2
  AM_CONDITIONAL(OS_OS2, [echo $host_os | grep '^os2' > /dev/null])
diff --git a/srcpkgs/boinc/patches/boinc-am_conditional.patch b/srcpkgs/boinc/patches/boinc-am_conditional.patch
index a9f47e59702e..0938d8b5b794 100644
--- a/srcpkgs/boinc/patches/boinc-am_conditional.patch
+++ b/srcpkgs/boinc/patches/boinc-am_conditional.patch
@@ -1,7 +1,7 @@
 Add objective c++ program and check for gtk2
 
---- configure.ac
-+++ configure.ac
+--- a/configure.ac
++++ a/configure.ac
 @@ -39,6 +39,7 @@ AC_PROG_CC
  AC_PROG_CXX
  AC_PROG_F77
diff --git a/srcpkgs/boinc/template b/srcpkgs/boinc/template
index 944fdaf172d3..1eba13495c2a 100644
--- a/srcpkgs/boinc/template
+++ b/srcpkgs/boinc/template
@@ -21,7 +21,6 @@ system_accounts="boinc"
 boinc_homedir="/var/lib/boinc"
 boinc_shell="/bin/bash"
 conflicts="boinc-nox>=0"
-patch_args=-Np0
 
 CXXFLAGS="-Wno-redundant-decls"
 
diff --git a/srcpkgs/bomi/patches/ffmpeg3.x.patch b/srcpkgs/bomi/patches/ffmpeg3.x.patch
index 561c6262e40f..c8db8a386ba4 100644
--- a/srcpkgs/bomi/patches/ffmpeg3.x.patch
+++ b/srcpkgs/bomi/patches/ffmpeg3.x.patch
@@ -1,7 +1,7 @@
 libavutil/audioconvert.h is gone in ffmpeg3.x
 
---- src/mpv/audio/filter/af_lavcac3enc.c	2015-05-20 11:31:58.000000000 +0200
-+++ src/mpv/audio/filter/af_lavcac3enc.c	2016-09-22 19:52:47.730132367 +0200
+--- a/src/mpv/audio/filter/af_lavcac3enc.c
++++ a/src/mpv/audio/filter/af_lavcac3enc.c
 @@ -26,7 +26,6 @@
  #include <assert.h>
  
@@ -10,8 +10,8 @@ libavutil/audioconvert.h is gone in ffmpeg3.x
  #include <libavutil/intreadwrite.h>
  #include <libavutil/common.h>
  #include <libavutil/bswap.h>
---- src/mpv/audio/out/ao_lavc.c	2015-05-20 11:31:58.000000000 +0200
-+++ src/mpv/audio/out/ao_lavc.c	2016-09-22 19:54:50.291163189 +0200
+--- a/src/mpv/audio/out/ao_lavc.c
++++ a/src/mpv/audio/out/ao_lavc.c
 @@ -25,7 +25,6 @@
  #include <limits.h>
  
@@ -20,8 +20,8 @@ libavutil/audioconvert.h is gone in ffmpeg3.x
  
  #include "config.h"
  #include "options/options.h"
---- src/mpv/audio/filter/af_lavrresample.c	2015-05-20 11:31:58.000000000 +0200
-+++ src/mpv/audio/filter/af_lavrresample.c	2016-09-22 19:57:13.539200765 +0200
+--- a/src/mpv/audio/filter/af_lavrresample.c
++++ a/src/mpv/audio/filter/af_lavrresample.c
 @@ -28,7 +28,6 @@
  #include <assert.h>
  
diff --git a/srcpkgs/bomi/patches/ffmpeg4.patch b/srcpkgs/bomi/patches/ffmpeg4.patch
index 1ce9ea97b4b8..a06e2af20525 100644
--- a/srcpkgs/bomi/patches/ffmpeg4.patch
+++ b/srcpkgs/bomi/patches/ffmpeg4.patch
@@ -2,8 +2,8 @@ source: https://github.com/d-s-x/bomi/commit/c1473b38bf92e9ac858fd58588a9d45fe71
 
 diff --git a/src/bomi/video/ffmpegfilters.hpp b/src/bomi/video/ffmpegfilters.hpp
 index 77b1df41c5..5365525c48 100644
---- src/bomi/video/ffmpegfilters.hpp
-+++ src/bomi/video/ffmpegfilters.hpp
+--- a/src/bomi/video/ffmpegfilters.hpp
++++ a/src/bomi/video/ffmpegfilters.hpp
 @@ -6,7 +6,7 @@
  extern "C" {
  #include <video/mp_image_pool.h>
@@ -15,8 +15,8 @@ index 77b1df41c5..5365525c48 100644
  #include "enum/deintmethod.hpp"
 diff --git a/src/mpv/audio/out/ao_lavc.c b/src/mpv/audio/out/ao_lavc.c
 index b322982566..d1991e1d37 100644
---- src/mpv/audio/out/ao_lavc.c
-+++ src/mpv/audio/out/ao_lavc.c
+--- a/src/mpv/audio/out/ao_lavc.c
++++ a/src/mpv/audio/out/ao_lavc.c
 @@ -156,8 +156,8 @@ static int init(struct ao *ao)
          ac->buffer_size =
              ac->aframesize * ac->sample_size * ao->channels.num * 2 + 200;
@@ -30,8 +30,8 @@ index b322982566..d1991e1d37 100644
      // enough frames for at least 0.25 seconds
 diff --git a/src/mpv/common/av_common.c b/src/mpv/common/av_common.c
 index 05c694702d..fb6206bc01 100644
---- src/mpv/common/av_common.c
-+++ src/mpv/common/av_common.c
+--- a/src/mpv/common/av_common.c
++++ a/src/mpv/common/av_common.c
 @@ -36,7 +36,7 @@ int mp_lavc_set_extradata(AVCodecContext *avctx, void *ptr, int size)
      if (size) {
          av_free(avctx->extradata);
@@ -52,8 +52,8 @@ index 05c694702d..fb6206bc01 100644
  // We merely pass-through our PTS/DTS as an int64_t; libavcodec won't use it.
 diff --git a/src/mpv/common/encode_lavc.c b/src/mpv/common/encode_lavc.c
 index 2a01bee380..9c97c97a88 100644
---- src/mpv/common/encode_lavc.c
-+++ src/mpv/common/encode_lavc.c
+--- a/src/mpv/common/encode_lavc.c
++++ a/src/mpv/common/encode_lavc.c
 @@ -476,7 +476,7 @@ static void encode_2pass_prepare(struct encode_lavc_context *ctx,
              if (!(*bytebuf = stream_open(buf, ctx->global))) {
                  MP_WARN(ctx, "%s: could not open '%s', "
@@ -83,8 +83,8 @@ index 2a01bee380..9c97c97a88 100644
                         "           ********************************************\n"
 diff --git a/src/mpv/demux/demux_lavf.c b/src/mpv/demux/demux_lavf.c
 index 943fb1d8af..6f438249ad 100644
---- src/mpv/demux/demux_lavf.c
-+++ src/mpv/demux/demux_lavf.c
+--- a/src/mpv/demux/demux_lavf.c
++++ a/src/mpv/demux/demux_lavf.c
 @@ -318,7 +318,7 @@ static int lavf_check_file(demuxer_t *demuxer, enum demux_check check)
          // Disable file-extension matching with normal checks
          .filename = check <= DEMUX_CHECK_REQUEST ? priv->filename : "",
@@ -96,8 +96,8 @@ index 943fb1d8af..6f438249ad 100644
          return -1;
 diff --git a/src/mpv/demux/packet.c b/src/mpv/demux/packet.c
 index 22b111b0ce..62cd90ef7e 100644
---- src/mpv/demux/packet.c
-+++ src/mpv/demux/packet.c
+--- a/src/mpv/demux/packet.c
++++ a/src/mpv/demux/packet.c
 @@ -92,7 +92,7 @@ void demux_packet_shorten(struct demux_packet *dp, size_t len)
  {
      assert(len <= dp->len);
@@ -109,8 +109,8 @@ index 22b111b0ce..62cd90ef7e 100644
  void free_demux_packet(struct demux_packet *dp)
 diff --git a/src/mpv/video/decode/vd_lavc.c b/src/mpv/video/decode/vd_lavc.c
 index ffd56350b6..2589faf4ec 100644
---- src/mpv/video/decode/vd_lavc.c
-+++ src/mpv/video/decode/vd_lavc.c
+--- a/src/mpv/video/decode/vd_lavc.c
++++ a/src/mpv/video/decode/vd_lavc.c
 @@ -377,15 +377,15 @@ static void init_avctx(struct dec_video *vd, const char *decoder,
          mp_set_avcodec_threads(vd->log, avctx, lavc_param->threads);
      }
@@ -135,8 +135,8 @@ index ffd56350b6..2589faf4ec 100644
  
 diff --git a/src/mpv/video/out/vo_lavc.c b/src/mpv/video/out/vo_lavc.c
 index 3a6903b7fd..895e0952a5 100644
---- src/mpv/video/out/vo_lavc.c
-+++ src/mpv/video/out/vo_lavc.c
+--- a/src/mpv/video/out/vo_lavc.c
++++ a/src/mpv/video/out/vo_lavc.c
 @@ -166,8 +166,8 @@ static int reconfig(struct vo *vo, struct mp_image_params *params, int flags)
          goto error;
  
diff --git a/srcpkgs/bomi/patches/fix-cxx14.patch b/srcpkgs/bomi/patches/fix-cxx14.patch
index ea01ffbc57bc..b945def640c9 100644
--- a/srcpkgs/bomi/patches/fix-cxx14.patch
+++ b/srcpkgs/bomi/patches/fix-cxx14.patch
@@ -1,5 +1,5 @@
---- src/bomi/bomi.pro	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/bomi.pro	2016-09-22 20:03:57.452315214 +0200
+--- a/src/bomi/bomi.pro
++++ a/src/bomi/bomi.pro
 @@ -19,6 +19,7 @@
  }
  
@@ -8,8 +8,8 @@
  
  contains(QMAKE_CXX, clang++) {
  QMAKE_CXXFLAGS += -Wno-missing-braces
---- src/bomi/misc/filenamegenerator.cpp	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/misc/filenamegenerator.cpp	2016-09-22 20:06:10.523355518 +0200
+--- a/src/bomi/misc/filenamegenerator.cpp
++++ a/src/bomi/misc/filenamegenerator.cpp
 @@ -51,8 +51,8 @@
          };
          get[u"%MEDIA_DISPLAY_NAME%"_q] = [] (const FileNameGenerator *g) { return g->mediaName; };
@@ -21,8 +21,8 @@
          return get;
      }();
      auto ret = func.value(ph);
---- src/bomi/misc/filenamegenerator.hpp	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/misc/filenamegenerator.hpp	2016-09-22 20:07:13.762375106 +0200
+--- a/src/bomi/misc/filenamegenerator.hpp
++++ a/src/bomi/misc/filenamegenerator.hpp
 @@ -11,7 +11,7 @@
      QTime start, end;
      QString mediaName;
@@ -32,8 +32,8 @@
  };
  
  #endif // FILENAMEGENERATOR_HPP
---- src/bomi/player/mainwindow_p.cpp	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/player/mainwindow_p.cpp	2016-09-22 20:08:20.590396090 +0200
+--- a/src/bomi/player/mainwindow_p.cpp
++++ a/src/bomi/player/mainwindow_p.cpp
 @@ -910,7 +910,7 @@
      g.dateTime = QDateTime::currentDateTime();
      g.start = QTime::fromMSecsSinceStartOfDay(e.time());
@@ -43,8 +43,8 @@
      g.mrl = e.mrl();
      g.mediaName = e.media()->name();
      return g;
---- src/bomi/player/mainwindow_p.hpp	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/player/mainwindow_p.hpp	2016-09-22 20:09:18.003414361 +0200
+--- a/src/bomi/player/mainwindow_p.hpp
++++ a/src/bomi/player/mainwindow_p.hpp
 @@ -101,7 +101,7 @@
  
      struct {
@@ -54,8 +54,8 @@
          QMap<QString, std::function<QString(void)>> get;
      } ph;
      QTimer waiter, hider, dialogWorkaround;
---- src/bomi/dialog/encoderdialog.cpp	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/dialog/encoderdialog.cpp	2016-09-22 20:05:18.684339670 +0200
+--- a/src/bomi/dialog/encoderdialog.cpp
++++ a/src/bomi/dialog/encoderdialog.cpp
 @@ -255,7 +255,7 @@
  {
      if (d->size.isEmpty())
diff --git a/srcpkgs/bomi/patches/fix-sysctl_h.patch b/srcpkgs/bomi/patches/fix-sysctl_h.patch
index 48bb772114b8..af3280f4b301 100644
--- a/srcpkgs/bomi/patches/fix-sysctl_h.patch
+++ b/srcpkgs/bomi/patches/fix-sysctl_h.patch
@@ -1,5 +1,5 @@
---- src/bomi/os/mac.mm	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/os/mac.mm	2021-01-16 10:51:12.701668482 +0100
+--- a/src/bomi/os/mac.mm
++++ a/src/bomi/os/mac.mm
 @@ -274,7 +274,7 @@
  
  
@@ -9,8 +9,8 @@
  #include <mach/mach_host.h>
  #include <mach/task.h>
  #include <libproc.h>
---- src/bomi/os/x11.cpp	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/os/x11.cpp	2021-01-16 10:51:04.559292267 +0100
+--- a/src/bomi/os/x11.cpp
++++ a/src/bomi/os/x11.cpp
 @@ -15,7 +15,7 @@
  #include <fcntl.h>
  #include <time.h>
diff --git a/srcpkgs/bomi/template b/srcpkgs/bomi/template
index f66197af1d88..4cab853148a5 100644
--- a/srcpkgs/bomi/template
+++ b/srcpkgs/bomi/template
@@ -21,7 +21,6 @@ changelog="https://raw.githubusercontent.com/xylosper/bomi/master/CHANGES.txt"
 distfiles="https://github.com/xylosper/bomi/archive/v${version}.tar.gz"
 checksum=c76ac45733cdafa7003bbc178e5a90a683df9aec30cd85f188bb17c7af9e282e
 nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/1382/steps/shell_3/logs/stdio
-patch_args=-Np0
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/bonnie++/patches/configure.patch b/srcpkgs/bonnie++/patches/configure.patch
index 91bb9c1bb61c..6449a23e6b2f 100644
--- a/srcpkgs/bonnie++/patches/configure.patch
+++ b/srcpkgs/bonnie++/patches/configure.patch
@@ -1,7 +1,7 @@
 diff --git configure configure
 index 4495abe..951dd7e 100755
---- configure
-+++ configure
+--- a/configure
++++ a/configure
 @@ -2664,7 +2664,7 @@ $as_echo "$ac_try_echo"; } >&5
      else
  	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
diff --git a/srcpkgs/bonnie++/template b/srcpkgs/bonnie++/template
index 5c1be95b51f3..8fa4be8c3d62 100644
--- a/srcpkgs/bonnie++/template
+++ b/srcpkgs/bonnie++/template
@@ -9,7 +9,6 @@ license="GPL-2.0-only"
 homepage="http://www.coker.com.au/bonnie++/"
 distfiles="http://www.coker.com.au/bonnie++/bonnie++-${version}.tgz"
 checksum=6e0bcbc08b78856fd998dd7bcb352d4615a99c26c2dc83d5b8345b102bad0b04
-patch_args=-Np0
 
 post_extract() {
 	sed -i  -e 's/sbin/bin/g' \
diff --git a/srcpkgs/boomerang/patches/dont_include_toolchain-file.patch b/srcpkgs/boomerang/patches/dont_include_toolchain-file.patch
index 3a0bb2eacb32..0e5d54b05a65 100644
--- a/srcpkgs/boomerang/patches/dont_include_toolchain-file.patch
+++ b/srcpkgs/boomerang/patches/dont_include_toolchain-file.patch
@@ -1,5 +1,5 @@
---- CMakeLists.txt
-+++ CMakeLists.txt
+--- a/CMakeLists.txt
++++ a/CMakeLists.txt
 @@ -16,9 +16,6 @@
      set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" CACHE STRING "")
  endif (DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
diff --git a/srcpkgs/boomerang/patches/fix-cflags.patch b/srcpkgs/boomerang/patches/fix-cflags.patch
index eb59766c1c5b..fef1737d288b 100644
--- a/srcpkgs/boomerang/patches/fix-cflags.patch
+++ b/srcpkgs/boomerang/patches/fix-cflags.patch
@@ -1,7 +1,7 @@
 Index: cmake-scripts/boomerang-flags.cmake
 ===================================================================
---- cmake-scripts/boomerang-flags.cmake
-+++ cmake-scripts/boomerang-flags.cmake
+--- a/cmake-scripts/boomerang-flags.cmake
++++ a/cmake-scripts/boomerang-flags.cmake
 @@ -104,16 +104,6 @@ endif ()
  
  
diff --git a/srcpkgs/boomerang/patches/include-stdint.patch b/srcpkgs/boomerang/patches/include-stdint.patch
index 025d00c5dea1..66e687bc847b 100644
--- a/srcpkgs/boomerang/patches/include-stdint.patch
+++ b/srcpkgs/boomerang/patches/include-stdint.patch
@@ -1,5 +1,5 @@
---- src/boomerang-plugins/codegen/c/ControlFlowAnalyzer.h
-+++ src/boomerang-plugins/codegen/c/ControlFlowAnalyzer.h
+--- a/src/boomerang-plugins/codegen/c/ControlFlowAnalyzer.h
++++ a/src/boomerang-plugins/codegen/c/ControlFlowAnalyzer.h
 @@ -9,7 +9,7 @@
  #pragma endregion License
  #pragma once
diff --git a/srcpkgs/boomerang/template b/srcpkgs/boomerang/template
index 00b49809a562..904e0e8571ff 100644
--- a/srcpkgs/boomerang/template
+++ b/srcpkgs/boomerang/template
@@ -14,7 +14,6 @@ license="BSD-3-Clause"
 homepage="https://github.com/BoomerangDecompiler/boomerang"
 distfiles="https://github.com/BoomerangDecompiler/boomerang/archive/v${version}.tar.gz"
 checksum=1d2c9c2f5de1a3e1d5fe3879e82bca268d1c49e6ba3d0a7848695f18c594384d
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*) ;;
diff --git a/srcpkgs/boost/patches/mips.patch b/srcpkgs/boost/patches/mips.patch
index 502ae1cf597a..ec3189354687 100644
--- a/srcpkgs/boost/patches/mips.patch
+++ b/srcpkgs/boost/patches/mips.patch
@@ -1,5 +1,5 @@
---- boost/fiber/detail/cpu_relax.hpp	2017-09-02 11:56:11.000000000 +0200
-+++ boost/fiber/detail/cpu_relax.hpp	2017-11-09 17:25:40.258995963 +0100
+--- a/boost/fiber/detail/cpu_relax.hpp
++++ a/boost/fiber/detail/cpu_relax.hpp
 @@ -48,7 +48,7 @@
  #  define cpu_relax() asm volatile ("nop" ::: "memory");
  # endif
diff --git a/srcpkgs/boost/patches/musl-memset.patch b/srcpkgs/boost/patches/musl-memset.patch
index b7e2baa12c9d..6a895783e79d 100644
--- a/srcpkgs/boost/patches/musl-memset.patch
+++ b/srcpkgs/boost/patches/musl-memset.patch
@@ -1,5 +1,5 @@
---- libs/fiber/src/numa/linux/pin_thread.cpp.orig	2017-09-02 09:56:11.000000000 +0000
-+++ libs/fiber/src/numa/linux/pin_thread.cpp	2017-09-17 10:31:55.644242100 +0000
+--- a/libs/fiber/src/numa/linux/pin_thread.cpp
++++ a/libs/fiber/src/numa/linux/pin_thread.cpp
 @@ -9,6 +9,7 @@
  extern "C" {
  #include <pthread.h>
diff --git a/srcpkgs/boost/template b/srcpkgs/boost/template
index 23f6a6acc51c..5b559e932d18 100644
--- a/srcpkgs/boost/template
+++ b/srcpkgs/boost/template
@@ -12,7 +12,6 @@ homepage="http://www.boost.org/"
 distfiles="https://dl.bintray.com/boostorg/release/${version}/source/boost_${version//./_}.tar.bz2"
 checksum=59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417cc660722
 python_version=3
-patch_args=-Np0
 
 CXXFLAGS="-std=c++14"
 
diff --git a/srcpkgs/bootchart2/patches/python-3.9.patch b/srcpkgs/bootchart2/patches/python-3.9.patch
index 617e2e1586b4..dfadb50a835f 100644
--- a/srcpkgs/bootchart2/patches/python-3.9.patch
+++ b/srcpkgs/bootchart2/patches/python-3.9.patch
@@ -1,7 +1,7 @@
 Index: pybootchartgui/draw.py
 ===================================================================
---- pybootchartgui/draw.py.orig
-+++ pybootchartgui/draw.py
+--- a/pybootchartgui/draw.py.orig
++++ a/pybootchartgui/draw.py
 @@ -508,7 +508,7 @@ def draw_processes_recursively(ctx, proc
  		cmdString = proc.cmd
  	else:
@@ -22,8 +22,8 @@ Index: pybootchartgui/draw.py
  			v = 1.0
 Index: pybootchartgui/parsing.py
 ===================================================================
---- pybootchartgui/parsing.py.orig
-+++ pybootchartgui/parsing.py
+--- a/pybootchartgui/parsing.py.orig
++++ a/pybootchartgui/parsing.py
 @@ -98,7 +98,7 @@ class Trace:
      def compile(self, writer):
  
diff --git a/srcpkgs/bootchart2/patches/rdinit-fix-panic.patch b/srcpkgs/bootchart2/patches/rdinit-fix-panic.patch
index 2027d5d5b035..0520c1136a2d 100644
--- a/srcpkgs/bootchart2/patches/rdinit-fix-panic.patch
+++ b/srcpkgs/bootchart2/patches/rdinit-fix-panic.patch
@@ -1,5 +1,5 @@
---- bootchartd.in.orig	2021-01-24 15:52:43.339735933 +0700
-+++ bootchartd.in	2021-01-24 15:53:30.256889311 +0700
+--- a/bootchartd.in
++++ a/bootchartd.in
 @@ -32,6 +32,7 @@
  # some initrds don't have usleep etc.
  USLEEP="$COLLECTOR_BIN --usleep"
diff --git a/srcpkgs/bootchart2/template b/srcpkgs/bootchart2/template
index e63b864e5e44..62cd9d2116a3 100644
--- a/srcpkgs/bootchart2/template
+++ b/srcpkgs/bootchart2/template
@@ -16,7 +16,6 @@ distfiles="https://github.com/xrmx/bootchart/archive/${version}.tar.gz"
 checksum=cec7871c3dba47a1165873b0acde30a82221fde1d3a942da5e7dd09b513d2017
 make_dirs="/usr/lib/bootchart/tmpfs 0755 root root"
 conflicts="bootchart>=0"
-patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's,\$(EARLY_PREFIX)/sbin/,/usr/bin/,' Makefile
diff --git a/srcpkgs/botan/patches/botan_types_include_climits.patch b/srcpkgs/botan/patches/botan_types_include_climits.patch
index 1bc10aa8ff31..eb64aa4736fd 100644
--- a/srcpkgs/botan/patches/botan_types_include_climits.patch
+++ b/srcpkgs/botan/patches/botan_types_include_climits.patch
@@ -1,5 +1,5 @@
---- src/lib/utils/types.h.orig	2017-10-13 08:08:04.055686756 +0000
-+++ src/lib/utils/types.h	2017-10-13 08:08:46.043688922 +0000
+--- a/src/lib/utils/types.h
++++ a/src/lib/utils/types.h
 @@ -12,6 +12,7 @@
  
  #include <botan/build.h> // IWYU pragma: export
diff --git a/srcpkgs/botan/template b/srcpkgs/botan/template
index 5e9e3c803e32..d2e6ffb9ccda 100644
--- a/srcpkgs/botan/template
+++ b/srcpkgs/botan/template
@@ -14,7 +14,6 @@ homepage="https://botan.randombit.net/"
 distfiles="https://botan.randombit.net/releases/Botan-${version}.tar.xz"
 checksum=92ed6ebc918d86bd1b04221ca518af4cf29cc326c4760740bd2d22e61cea2628
 python_version=3
-patch_args=-Np0
 
 LDFLAGS="-pthread"
 CXXFLAGS="-O3"
diff --git a/srcpkgs/bridge-utils/patches/cflags.patch b/srcpkgs/bridge-utils/patches/cflags.patch
index 15b200bbfb2f..8937b629c04c 100644
--- a/srcpkgs/bridge-utils/patches/cflags.patch
+++ b/srcpkgs/bridge-utils/patches/cflags.patch
@@ -1,5 +1,5 @@
---- libbridge/Makefile.in.orig
-+++ libbridge/Makefile.in
+--- a/libbridge/Makefile.in.orig
++++ a/libbridge/Makefile.in
 @@ -5,7 +5,7 @@
  RANLIB=@RANLIB@
  
diff --git a/srcpkgs/bridge-utils/patches/fix-musl.patch b/srcpkgs/bridge-utils/patches/fix-musl.patch
index bed389d113ca..1773d3c4b850 100644
--- a/srcpkgs/bridge-utils/patches/fix-musl.patch
+++ b/srcpkgs/bridge-utils/patches/fix-musl.patch
@@ -1,5 +1,5 @@
---- libbridge/libbridge.h.orig	2015-12-30 17:26:10.283593908 +0100
-+++ libbridge/libbridge.h	2015-12-30 17:26:21.535594424 +0100
+--- a/libbridge/libbridge.h
++++ a/libbridge/libbridge.h
 @@ -23,6 +23,7 @@
  #include <netinet/in.h>
  #include <linux/if.h>
diff --git a/srcpkgs/bridge-utils/template b/srcpkgs/bridge-utils/template
index e50ac51ba446..08827cd6ad58 100644
--- a/srcpkgs/bridge-utils/template
+++ b/srcpkgs/bridge-utils/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge"
 distfiles="${KERNEL_SITE}/utils/net/bridge-utils/bridge-utils-${version}.tar.xz"
 checksum=cc67efb5d5fb8928a6569b3fade2b4042ec17da04678dab127d96b46489e26c8
-patch_args=-Np0
 
 pre_configure() {
 	sed "s/u_int\([0-9]*\)_t/uint\1_t/" -i libbridge/libbridge.h
diff --git a/srcpkgs/brltty/patches/crosspython.patch b/srcpkgs/brltty/patches/crosspython.patch
index da3ee93a2b61..4f852b935b11 100644
--- a/srcpkgs/brltty/patches/crosspython.patch
+++ b/srcpkgs/brltty/patches/crosspython.patch
@@ -1,6 +1,6 @@
 diff -Naur brltty-5.5/Bindings/Python/Makefile.in brltty-5.5.new/Bindings/Python/Makefile.in
---- Bindings/Python/Makefile.in	2017-04-18 15:35:13.000000000 -0700
-+++ Bindings/Python/Makefile.in	2017-04-23 17:36:27.797793633 -0700
+--- a/Bindings/Python/Makefile.in
++++ a/Bindings/Python/Makefile.in
 @@ -1,3 +1,6 @@
 +export LDFLAGS= @LDFLAGS@ @PYTHON_LIBS@
 +export CFLAGS= @CFLAGS@ @PYTHON_CPPFLAGS@
diff --git a/srcpkgs/brltty/patches/time64.patch b/srcpkgs/brltty/patches/time64.patch
index 7efc1c7e54ad..cfb34d268126 100644
--- a/srcpkgs/brltty/patches/time64.patch
+++ b/srcpkgs/brltty/patches/time64.patch
@@ -1,5 +1,5 @@
---- Programs/system_linux.c	2020-04-05 12:35:34.000000000 +0200
-+++ Programs/system_linux.c	2020-12-03 14:12:42.292642038 +0100
+--- a/Programs/system_linux.c
++++ a/Programs/system_linux.c
 @@ -957,9 +957,12 @@
  writeInputEvent (UinputObject *uinput, uint16_t type, uint16_t code, int32_t value) {
  #ifdef HAVE_LINUX_UINPUT_H
diff --git a/srcpkgs/brltty/template b/srcpkgs/brltty/template
index b9c6ba6ec6bf..53e15ed6ff03 100644
--- a/srcpkgs/brltty/template
+++ b/srcpkgs/brltty/template
@@ -14,7 +14,6 @@ homepage="http://mielke.cc/brltty/"
 distfiles="http://mielke.cc/brltty/archive/brltty-${version}.tar.xz"
 checksum=4a28e3f1879aee9082f9ce4100fd4053be47add7f8ab0f2af6d6a20590934b62
 python_version=3
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) configure_args="${configure_args} --with-ports-package=glibc";;
diff --git a/srcpkgs/broadcom-wl-dkms/patches/001-null-pointer-fix.patch b/srcpkgs/broadcom-wl-dkms/patches/001-null-pointer-fix.patch
index 1028097dc4a8..73b120be4a26 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/001-null-pointer-fix.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/001-null-pointer-fix.patch
@@ -10,8 +10,8 @@ Last-Update: 2015-08-18
 
 diff --git a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
 index 860b935..295156f 100644
---- src/wl/sys/wl_linux.c
-+++ src/wl/sys/wl_linux.c
+--- a/src/wl/sys/wl_linux.c
++++ a/src/wl/sys/wl_linux.c
 @@ -2157,8 +2157,8 @@ wl_start(struct sk_buff *skb, struct net_device *dev)
  	wlif = WL_DEV_IF(dev);
  	wl = WL_INFO(dev);
diff --git a/srcpkgs/broadcom-wl-dkms/patches/gcc-4.9.patch b/srcpkgs/broadcom-wl-dkms/patches/gcc-4.9.patch
index 6b58d1f600e8..852097926875 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/gcc-4.9.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/gcc-4.9.patch
@@ -1,7 +1,7 @@
 https://github.com/voidlinux/xbps-packages/issues/412
 
---- Makefile.orig	2014-05-21 12:47:46.915833131 +0200
-+++ Makefile	2014-05-21 12:48:54.027409879 +0200
+--- a/Makefile
++++ a/Makefile
 @@ -126,6 +126,8 @@ EXTRA_CFLAGS       += -I$(src)/src/wl/sy
  EXTRA_CFLAGS       += -I$(src)/src/shared/bcmwifi/include
  #EXTRA_CFLAGS       += -DBCMDBG_ASSERT
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-4.11.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-4.11.patch
index c618e8a28d24..afecaac68fed 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-4.11.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-4.11.patch
@@ -1,7 +1,7 @@
 diff --git a/src/wl/sys/wl_cfg80211_hybrid.c b/src/wl/sys/wl_cfg80211_hybrid.c
 index a9671e2..da36405 100644
---- src/wl/sys/wl_cfg80211_hybrid.c
-+++ src/wl/sys/wl_cfg80211_hybrid.c
+--- a/src/wl/sys/wl_cfg80211_hybrid.c
++++ a/src/wl/sys/wl_cfg80211_hybrid.c
 @@ -30,6 +30,9 @@
  #include <linux/kthread.h>
  #include <linux/netdevice.h>
@@ -14,8 +14,8 @@ index a9671e2..da36405 100644
  #include <net/rtnetlink.h>
 diff --git a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
 index 489c9f5..f8278ad 100644
---- src/wl/sys/wl_linux.c
-+++ src/wl/sys/wl_linux.c
+--- a/src/wl/sys/wl_linux.c
++++ a/src/wl/sys/wl_linux.c
 @@ -117,6 +117,9 @@ int wl_found = 0;
  
  typedef struct priv_link {
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-4.12.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-4.12.patch
index 40c379d0cec9..c2c5e5c8ebba 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-4.12.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-4.12.patch
@@ -1,6 +1,6 @@
 diff -ru work.orig/src/wl/sys/wl_cfg80211_hybrid.c work.patched/src/wl/sys/wl_cfg80211_hybrid.c
---- src/wl/sys/wl_cfg80211_hybrid.c	2017-06-10 15:50:27.328823384 -0700
-+++ src/wl/sys/wl_cfg80211_hybrid.c	2017-06-10 15:52:40.540809187 -0700
+--- a/src/wl/sys/wl_cfg80211_hybrid.c
++++ a/src/wl/sys/wl_cfg80211_hybrid.c
 @@ -52,8 +52,13 @@
  u32 wl_dbg_level = WL_DBG_ERR;
  #endif
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-4.15.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-4.15.patch
index 51c78b059162..7466e8ad2098 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-4.15.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-4.15.patch
@@ -1,5 +1,5 @@
---- src/wl/sys/wl_linux.c     2018-01-31 11:33:26.000000000 +0100 
-+++ src/wl/sys/wl_linux.c     2018-01-31 15:27:18.000000000 +0100 
+--- a/src/wl/sys/wl_linux.c     2018-01-31 11:33:26.000000000 +0100 
++++ a/src/wl/sys/wl_linux.c     2018-01-31 15:27:18.000000000 +0100 
 @@ -93,7 +93,11 @@ 
   
  #include <wlc_wowl.h> 
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch
index 7373023db370..1cf75292ff47 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch
@@ -1,6 +1,6 @@
 diff -ru a/src/shared/linux_osl.c b/src/shared/linux_osl.c
---- src/shared/linux_osl.c	2015-09-18 15:47:30.000000000 -0700
-+++ src/shared/linux_osl.c	2015-11-14 15:38:10.484563014 -0800
+--- a/src/shared/linux_osl.c
++++ a/src/shared/linux_osl.c
 @@ -932,7 +932,11 @@
  	uint cycles;
  
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-4.7.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-4.7.patch
index df7c6962f37a..5fd37658d51c 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-4.7.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-4.7.patch
@@ -10,8 +10,8 @@ makes heavy use of that enum. The simple fix is to re-create the values.
 This patch came from the folks at Manjaro.
 https://github.com/manjaro/packages-extra/blob/master/broadcom-wl-dkms/linux-47.patch
 
---- src/wl/sys/wl_linux.h   2016-06-04 15:24:22.915341000 +0200
-+++ src/wl/sys/wl_linux.h   2016-06-04 15:29:36.236136244 +0200
+--- a/src/wl/sys/wl_linux.h   2016-06-04 15:24:22.915341000 +0200
++++ a/src/wl/sys/wl_linux.h   2016-06-04 15:29:36.236136244 +0200
 @@ -18,6 +18,13 @@
   * $Id: wl_linux.h 369548 2012-11-19 09:01:01Z $
   */
@@ -26,8 +26,8 @@ https://github.com/manjaro/packages-extra/blob/master/broadcom-wl-dkms/linux-47.
  #ifndef _wl_linux_h_
  #define _wl_linux_h_
 
---- src/wl/sys/wl_cfg80211_hybrid.h 2016-06-04 15:34:41.123022255 +0200
-+++ src/wl/sys/wl_cfg80211_hybrid.h 2016-06-04 15:37:25.391772105 +0200
+--- a/src/wl/sys/wl_cfg80211_hybrid.h 2016-06-04 15:34:41.123022255 +0200
++++ a/src/wl/sys/wl_cfg80211_hybrid.h 2016-06-04 15:37:25.391772105 +0200
 @@ -19,6 +19,13 @@
   * $Id: wl_cfg80211.h,v 1.1.8.1 2011-01-26 00:57:46 $
   */
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-4.8.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-4.8.patch
index 185376b9080b..93ce9a9aacf1 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-4.8.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-4.8.patch
@@ -1,7 +1,7 @@
 Reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839629
 
---- src/wl/sys/wl_cfg80211_hybrid.c	2016-10-03 10:53:55.588036464 +0200
-+++ src/wl/sys/wl_cfg80211_hybrid.c	2016-10-03 10:54:11.911695944 +0200
+--- a/src/wl/sys/wl_cfg80211_hybrid.c
++++ a/src/wl/sys/wl_cfg80211_hybrid.c
 @@ -2386,8 +2386,15 @@
  	s32 err = 0;
  
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-5.1.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-5.1.patch
index 3c87fbe6ad57..07a0df05bae5 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-5.1.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-5.1.patch
@@ -1,5 +1,5 @@
---- src/wl/sys/wl_cfg80211_hybrid.c
-+++ src/wl/sys/wl_cfg80211_hybrid.c
+--- a/src/wl/sys/wl_cfg80211_hybrid.c
++++ a/src/wl/sys/wl_cfg80211_hybrid.c
 @@ -43,6 +43,9 @@
  #define EVENT_FLAGS(e) dtoh16((e)->flags)
  #define EVENT_STATUS(e) dtoh32((e)->status)
@@ -10,8 +10,8 @@
  #ifdef BCMDBG
  u32 wl_dbg_level = WL_DBG_ERR | WL_DBG_INFO;
  #else
---- src/wl/sys/wl_iw.c
-+++ src/wl/sys/wl_iw.c
+--- a/src/wl/sys/wl_iw.c
++++ a/src/wl/sys/wl_iw.c
 @@ -61,6 +61,9 @@ typedef struct priv_link {
  	wl_iw_t *wliw;
  } priv_link_t;
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-5.10.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-5.10.patch
index b3b136f55869..63cd3275b118 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-5.10.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-5.10.patch
@@ -26,8 +26,8 @@ Signed-off-by: Joan Bruguera <joanbrugueram@gmail.com>
  5 files changed, 42 insertions(+), 51 deletions(-)
 
 diff -u -r src/wl/sys/wl_cfg80211_hybrid.c src/wl/sys/wl_cfg80211_hybrid.c
---- src/wl/sys/wl_cfg80211_hybrid.c	2021-01-25 08:55:05.625224400 -0800
-+++ src/wl/sys/wl_cfg80211_hybrid.c	2021-01-25 08:58:30.000982902 -0800
+--- a/src/wl/sys/wl_cfg80211_hybrid.c
++++ a/src/wl/sys/wl_cfg80211_hybrid.c
 @@ -41,6 +41,7 @@
  #include <wlioctl.h>
  #include <proto/802.11.h>
@@ -69,8 +69,8 @@ diff -u -r src/wl/sys/wl_cfg80211_hybrid.c src/wl/sys/wl_cfg80211_hybrid.c
  
  static s32
 diff -u -r src/wl/sys/wl_iw.c src/wl/sys/wl_iw.c
---- src/wl/sys/wl_iw.c	2021-01-25 09:00:13.163543809 -0800
-+++ src/wl/sys/wl_iw.c	2021-01-25 09:02:04.218646005 -0800
+--- a/src/wl/sys/wl_iw.c
++++ a/src/wl/sys/wl_iw.c
 @@ -37,6 +37,7 @@
  
  #include <wl_dbg.h>
@@ -111,8 +111,8 @@ diff -u -r src/wl/sys/wl_iw.c src/wl/sys/wl_iw.c
  
  static int
 diff -u -r src/wl/sys/wl_linux.c src/wl/sys/wl_linux.c
---- src/wl/sys/wl_linux.c	2021-01-25 09:02:08.055475147 -0800
-+++ src/wl/sys/wl_linux.c	2021-01-25 09:06:11.894764339 -0800
+--- a/src/wl/sys/wl_linux.c
++++ a/src/wl/sys/wl_linux.c
 @@ -1650,10 +1650,7 @@
  		goto done2;
  	}
@@ -175,8 +175,8 @@ diff -u -r src/wl/sys/wl_linux.c src/wl/sys/wl_linux.c
  }
  
 diff -u -r src/wl/sys/wl_linux.h src/wl/sys/wl_linux.h
---- src/wl/sys/wl_linux.h	2021-01-25 09:06:15.188672391 -0800
-+++ src/wl/sys/wl_linux.h	2021-01-25 09:07:49.457810535 -0800
+--- a/src/wl/sys/wl_linux.h
++++ a/src/wl/sys/wl_linux.h
 @@ -29,6 +29,7 @@
  #define _wl_linux_h_
  
@@ -194,8 +194,8 @@ diff -u -r src/wl/sys/wl_linux.h src/wl/sys/wl_linux.h
  
  #endif 
 diff -u -r src/wl/sys/wlc_pub.h src/wl/sys/wlc_pub.h
---- src/wl/sys/wlc_pub.h	2021-01-25 09:07:54.543645032 -0800
-+++ src/wl/sys/wlc_pub.h	2021-01-25 09:08:10.772110464 -0800
+--- a/src/wl/sys/wlc_pub.h
++++ a/src/wl/sys/wlc_pub.h
 @@ -24,6 +24,7 @@
  
  #include <wlc_types.h>
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-5.6.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-5.6.patch
index e97819c80e67..0ffba57dba5a 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-5.6.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-5.6.patch
@@ -1,7 +1,7 @@
 diff --git src/shared/linux_osl.c src/shared/linux_osl.c
 index 6157d18..8237ec7 100644
---- src/shared/linux_osl.c
-+++ src/shared/linux_osl.c
+--- a/src/shared/linux_osl.c
++++ a/src/shared/linux_osl.c
 @@ -942,7 +942,7 @@ osl_getcycles(void)
  void *
  osl_reg_map(uint32 pa, uint size)
@@ -13,8 +13,8 @@ index 6157d18..8237ec7 100644
  void
 diff --git src/wl/sys/wl_linux.c src/wl/sys/wl_linux.c
 index 0d05100..2ed1f0d 100644
---- src/wl/sys/wl_linux.c
-+++ src/wl/sys/wl_linux.c
+--- a/src/wl/sys/wl_linux.c
++++ a/src/wl/sys/wl_linux.c
 @@ -582,7 +582,7 @@ wl_attach(uint16 vendor, uint16 device, ulong regs,
  	}
  	wl->bcm_bustype = bustype;
diff --git a/srcpkgs/broadcom-wl-dkms/template b/srcpkgs/broadcom-wl-dkms/template
index a31c8c385c7c..55bc9c0e1d36 100644
--- a/srcpkgs/broadcom-wl-dkms/template
+++ b/srcpkgs/broadcom-wl-dkms/template
@@ -1,5 +1,4 @@
 # Template file for 'broadcom-wl-dkms'
-patch_args=-Np0
 
 pkgname=broadcom-wl-dkms
 version=6.30.223.271
diff --git a/srcpkgs/browsh/patches/go-bindata.patch b/srcpkgs/browsh/patches/go-bindata.patch
index 08b9763ccc3c..3ae2b2a61b1c 100644
--- a/srcpkgs/browsh/patches/go-bindata.patch
+++ b/srcpkgs/browsh/patches/go-bindata.patch
@@ -5,8 +5,8 @@ end with one.
 ---
 diff --git interfacer/src/browsh/firefox.go interfacer/src/browsh/firefox.go
 index 00a9d72..2620522 100644
---- interfacer/src/browsh/firefox.go
-+++ interfacer/src/browsh/firefox.go
+--- a/interfacer/src/browsh/firefox.go
++++ a/interfacer/src/browsh/firefox.go
 @@ -227,7 +227,7 @@ func firefoxMarionette() {
  // Install the Browsh extension that was bundled with `go-bindata` under
  // `webextension.go`.
diff --git a/srcpkgs/browsh/patches/modules.patch b/srcpkgs/browsh/patches/modules.patch
index 8eb89a51c826..476624145028 100644
--- a/srcpkgs/browsh/patches/modules.patch
+++ b/srcpkgs/browsh/patches/modules.patch
@@ -3,8 +3,8 @@ Patch from: https://github.com/browsh-org/browsh/commit/84f5382eda69e206c49bfaa7
 diff --git interfacer/cmd/browsh/main.go b/interfacer/cmd/browsh/main.go
 new file mode 100644
 index 0000000..c6693f4
---- /dev/null
-+++ interfacer/cmd/browsh/main.go
+--- a//dev/null
++++ a/interfacer/cmd/browsh/main.go
 @@ -0,0 +1,7 @@
 +package main
 +
@@ -16,8 +16,8 @@ index 0000000..c6693f4
 diff --git interfacer/go.mod b/interfacer/go.mod
 new file mode 100644
 index 0000000..0c92241
---- /dev/null
-+++ interfacer/go.mod
+--- a//dev/null
++++ a/interfacer/go.mod
 @@ -0,0 +1,34 @@
 +module github.com/browsh-org/browsh/interfacer
 +
@@ -56,8 +56,8 @@ index 0000000..0c92241
 diff --git interfacer/go.sum b/interfacer/go.sum
 new file mode 100644
 index 0000000..b1fe86f
---- /dev/null
-+++ interfacer/go.sum
+--- a//dev/null
++++ a/interfacer/go.sum
 @@ -0,0 +1,176 @@
 +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
 +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
@@ -238,8 +238,8 @@ index 0000000..b1fe86f
 diff --git interfacer/src/main.go b/interfacer/src/main.go
 deleted file mode 100644
 index 08e2bf5..0000000
---- interfacer/src/main.go
-+++ /dev/null
+--- a/interfacer/src/main.go
++++ a//dev/null
 @@ -1,7 +0,0 @@
 -package main
 -
diff --git a/srcpkgs/browsh/template b/srcpkgs/browsh/template
index 67675e7dcab0..856fefd13d78 100644
--- a/srcpkgs/browsh/template
+++ b/srcpkgs/browsh/template
@@ -17,7 +17,6 @@ distfiles="https://$go_import_path/archive/v$version.tar.gz
 checksum="965ce2d94d1d9e4b92411d344421c0bea40994527cafd694c5a6e8e206681ede
  b410527a69dba88a30d8a6d341a20eb5cb1f84b684e9bc8bb6bc88a2930e0eea"
 skip_extraction="browsh.xpi"
-patch_args=-Np0
 
 pre_build() {
 	_prefix="$XBPS_SRCDISTDIR/$pkgname-$version"
diff --git a/srcpkgs/bsdiff/patches/CVE-2014-9862.diff b/srcpkgs/bsdiff/patches/CVE-2014-9862.diff
index eb2710d8afbc..83ba92f86f46 100644
--- a/srcpkgs/bsdiff/patches/CVE-2014-9862.diff
+++ b/srcpkgs/bsdiff/patches/CVE-2014-9862.diff
@@ -1,5 +1,5 @@
---- bspatch.c.orig
-+++ bspatch.c
+--- a/bspatch.c.orig
++++ a/bspatch.c
 @@ -164,6 +164,10 @@
  		}
  
diff --git a/srcpkgs/bsdiff/template b/srcpkgs/bsdiff/template
index 5f038e447a77..d1396b8c707c 100644
--- a/srcpkgs/bsdiff/template
+++ b/srcpkgs/bsdiff/template
@@ -10,7 +10,6 @@ homepage="http://www.daemonology.net/bsdiff"
 distfiles="${DEBIAN_SITE}/main/b/bsdiff/bsdiff_${version}.orig.tar.gz"
 #distfiles="${homepage}/${pkgname}-${version}.tar.gz"
 checksum=18821588b2dc5bf159aa37d3bcb7b885d85ffd1e19f23a0c57a58723fea85f48
-patch_args=-Np0
 
 do_build() {
 	for i in diff patch; do
diff --git a/srcpkgs/bsdunzip/patches/add-license.patch b/srcpkgs/bsdunzip/patches/add-license.patch
index c235b57181c7..b2986c25b94a 100644
--- a/srcpkgs/bsdunzip/patches/add-license.patch
+++ b/srcpkgs/bsdunzip/patches/add-license.patch
@@ -8,8 +8,8 @@ Subject: [PATCH] Add LICENSE (closes #1)
  1 file changed, 24 insertions(+)
  create mode 100644 LICENSE
 
---- /dev/null
-+++ LICENSE
+--- a//dev/null
++++ a/LICENSE
 @@ -0,0 +1,24 @@
 +This license file only applies to the Makefile and README.md within the root
 +of this repository. I claim no copyright on `/usr.bin/unzip`, or any files
diff --git a/srcpkgs/bsdunzip/template b/srcpkgs/bsdunzip/template
index 922b71d2b7de..e6ac1e4a369f 100644
--- a/srcpkgs/bsdunzip/template
+++ b/srcpkgs/bsdunzip/template
@@ -10,7 +10,6 @@ license="BSD-2-Clause, ISC"
 homepage="https://github.com/somasis/bsdunzip"
 distfiles="https://github.com/somasis/bsdunzip/archive/${version}.tar.gz"
 checksum=06c52c77fa518732665aa2daa73f364cd2470a5d47a83c9c79f86f207cf3ecc1
-patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/bti/patches/0db8dc6022f67a4e1f49397b8bf519b2a34f74c9.patch b/srcpkgs/bti/patches/0db8dc6022f67a4e1f49397b8bf519b2a34f74c9.patch
index fcecd4e22037..0be5ddca1a3d 100644
--- a/srcpkgs/bti/patches/0db8dc6022f67a4e1f49397b8bf519b2a34f74c9.patch
+++ b/srcpkgs/bti/patches/0db8dc6022f67a4e1f49397b8bf519b2a34f74c9.patch
@@ -11,8 +11,8 @@ macro calls with a != NULL statement.
 
 diff --git a/bti.c b/bti.c
 index 7f485a8..9b68e17 100644
---- bti.c
-+++ bti.c
+--- a/bti.c
++++ a/bti.c
 @@ -451,7 +451,7 @@ static void parse_timeline(char *document, struct session *session)
  	struct json_object *val;				\
  	struct lh_entry *entry;					\
diff --git a/srcpkgs/bti/template b/srcpkgs/bti/template
index 82d1af711e15..a914e9e75d60 100644
--- a/srcpkgs/bti/template
+++ b/srcpkgs/bti/template
@@ -12,4 +12,3 @@ license="GPL-2.0-only"
 homepage="http://gregkh.github.com/bti/"
 distfiles="https://www.kernel.org/pub/software/web/bti/bti-${version}.tar.xz"
 checksum=8b4a1a11f529f83956468acadaea9d11db4f03e82afe07fecb84b2d00e9eae83
-patch_args=-Np0
diff --git a/srcpkgs/bubblewrap/patches/fix-TEMP_FAILTURE_RETRY-musl.patch b/srcpkgs/bubblewrap/patches/fix-TEMP_FAILTURE_RETRY-musl.patch
index 5781d7e7934c..ca28e8485eda 100644
--- a/srcpkgs/bubblewrap/patches/fix-TEMP_FAILTURE_RETRY-musl.patch
+++ b/srcpkgs/bubblewrap/patches/fix-TEMP_FAILTURE_RETRY-musl.patch
@@ -1,5 +1,5 @@
---- bubblewrap.c
-+++ bubblewrap.c
+--- a/bubblewrap.c
++++ a/bubblewrap.c
 @@ -42,6 +42,16 @@
  #define CLONE_NEWCGROUP 0x02000000 /* New cgroup namespace */
  #endif
diff --git a/srcpkgs/bubblewrap/patches/realpath-workaround.patch b/srcpkgs/bubblewrap/patches/realpath-workaround.patch
index 6976590a1f29..0567337c27a3 100644
--- a/srcpkgs/bubblewrap/patches/realpath-workaround.patch
+++ b/srcpkgs/bubblewrap/patches/realpath-workaround.patch
@@ -1,5 +1,5 @@
---- /dev/null	2020-10-18 09:26:32.312745755 +0200
-+++ LICENSE.realpath	2020-10-18 11:09:14.119929076 +0200
+--- a//dev/null
++++ a/LICENSE.realpath
 @@ -0,0 +1,29 @@
 +Copyright (c) 1989, 1991, 1993, 1995
 +     The Regents of the University of California.  All rights reserved.
@@ -30,8 +30,8 @@
 +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 +SUCH DAMAGE.
---- bind-mount.c	2018-09-26 14:55:17.000000000 +0200
-+++ bind-mount.c	2020-10-18 11:08:37.822931452 +0200
+--- a/bind-mount.c
++++ a/bind-mount.c
 @@ -22,6 +22,198 @@
  
  #include "utils.h"
diff --git a/srcpkgs/bubblewrap/template b/srcpkgs/bubblewrap/template
index c8d5dda04338..4df1dac59395 100644
--- a/srcpkgs/bubblewrap/template
+++ b/srcpkgs/bubblewrap/template
@@ -11,7 +11,6 @@ license="LGPL-2.0-or-later"
 homepage="https://github.com/containers/bubblewrap"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=b9c69b9b1c61a608f34325c8e1a495229bacf6e4a07cbb0c80cf7a814d7ccc03
-patch_args=-Np0
 
 post_install() {
 	if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/buffer/patches/musl-sem.patch b/srcpkgs/buffer/patches/musl-sem.patch
index d8a8d203f718..7011070d593f 100644
--- a/srcpkgs/buffer/patches/musl-sem.patch
+++ b/srcpkgs/buffer/patches/musl-sem.patch
@@ -1,7 +1,7 @@
 The union semun is not defined in musl libc's sys/sem.h
 
---- sem.c	2014-11-26 23:41:09.000000000 +0100
-+++ sem.c	2016-08-12 10:14:48.225963726 +0200
+--- a/sem.c
++++ a/sem.c
 @@ -42,7 +42,7 @@
   *
   * mbuck@debian.org, 1999/08/29
diff --git a/srcpkgs/buffer/template b/srcpkgs/buffer/template
index e1c05e510af0..df0fb0c0c640 100644
--- a/srcpkgs/buffer/template
+++ b/srcpkgs/buffer/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/scotte/buffer"
 distfiles="https://github.com/scotte/buffer/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=14a881fcd070b1dcd8ec91d8d036f22094c22ac3769c274f0d7d6799038a73c3
-patch_args=-Np0
 
 pre_build() {
 	sed -i Makefile \
diff --git a/srcpkgs/buildbot/patches/terse-irc.patch b/srcpkgs/buildbot/patches/terse-irc.patch
index 5036cd9ebfe9..61f161e25e63 100644
--- a/srcpkgs/buildbot/patches/terse-irc.patch
+++ b/srcpkgs/buildbot/patches/terse-irc.patch
@@ -1,5 +1,5 @@
---- buildbot/status/words.py.orig
-+++ buildbot/status/words.py
+--- a/buildbot/status/words.py.orig
++++ a/buildbot/status/words.py
 @@ -439,9 +439,9 @@
          self.send(r)
  
diff --git a/srcpkgs/buildbot/template b/srcpkgs/buildbot/template
index bec731f4e532..ae905fc67ab8 100644
--- a/srcpkgs/buildbot/template
+++ b/srcpkgs/buildbot/template
@@ -13,7 +13,6 @@ license="GPL-2.0-only"
 homepage="https://buildbot.net/"
 distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=331efd07bd7522c222a8fb258801e8d78332c88d778ee76416b9e1028676e964
-patch_args=-Np0
 
 pre_install() {
 	sed -i 's,#!/usr/bin/env jython,#!/usr/bin/python2,' contrib/run_maxq.py
diff --git a/srcpkgs/buku/patches/0001-Use-system-cacerts.patch b/srcpkgs/buku/patches/0001-Use-system-cacerts.patch
index b72aa9d7cd25..b06dc2e0ea77 100644
--- a/srcpkgs/buku/patches/0001-Use-system-cacerts.patch
+++ b/srcpkgs/buku/patches/0001-Use-system-cacerts.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] Use system cacerts
 
 diff --git buku buku
 index 936988a..079d3d2 100755
---- buku
-+++ buku
+--- a/buku
++++ a/buku
 @@ -45,7 +45,6 @@ import threading
  import time
  from typing import Any, Dict, Iterable, List, Optional, Tuple
diff --git a/srcpkgs/buku/template b/srcpkgs/buku/template
index 2785910412d1..b2c1962d9195 100644
--- a/srcpkgs/buku/template
+++ b/srcpkgs/buku/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/jarun/Buku"
 distfiles="https://github.com/jarun/Buku/archive/v${version}.tar.gz"
 checksum=2e1968016d3856184db8ac49cdc92a6c70869f62846185f28c8c60ead0c42888
-patch_args=-Np0
 
 do_install() {
 	vbin buku
diff --git a/srcpkgs/bullet/patches/disableExample.patch b/srcpkgs/bullet/patches/disableExample.patch
index a2fa26efd51c..623d072bf3b4 100644
--- a/srcpkgs/bullet/patches/disableExample.patch
+++ b/srcpkgs/bullet/patches/disableExample.patch
@@ -1,5 +1,5 @@
---- examples/CMakeLists.txt	2020-10-07 20:28:14.000000000 +0200
-+++ -	2020-10-10 21:40:10.823966203 +0200
+--- a/examples/CMakeLists.txt
++++ a/-
 @@ -1,6 +1,6 @@
  SUBDIRS( HelloWorld BasicDemo)
  IF(BUILD_BULLET3)
diff --git a/srcpkgs/bullet/patches/musl.patch b/srcpkgs/bullet/patches/musl.patch
index b11ce61278cb..d0f0eb65953c 100644
--- a/srcpkgs/bullet/patches/musl.patch
+++ b/srcpkgs/bullet/patches/musl.patch
@@ -1,5 +1,5 @@
---- examples/ThirdPartyLibs/Gwen/Gwen.cpp.orig	2015-08-05 11:31:24.936137203 +0200
-+++ examples/ThirdPartyLibs/Gwen/Gwen.cpp	2015-08-05 11:31:33.447238474 +0200
+--- a/examples/ThirdPartyLibs/Gwen/Gwen.cpp
++++ a/examples/ThirdPartyLibs/Gwen/Gwen.cpp
 @@ -5,6 +5,7 @@
  */
  
@@ -8,15 +8,15 @@
  #include "Gwen/Gwen.h"
  
  
---- examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp.orig	2015-08-05 11:34:15.185162987 +0200
-+++ examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp	2015-08-05 11:34:24.896278540 +0200
+--- a/examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp
++++ a/examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp
 @@ -1,3 +1,4 @@
 +#include <stdio.h>
  #include "GwenParameterInterface.h"
  #include "gwenInternalData.h"
  
---- Extras/VHACD/inc/vhacdMutex.h	2021-05-07 20:04:02.000000000 +0200
-+++ -	2021-05-26 20:28:52.836634329 +0200
+--- a/Extras/VHACD/inc/vhacdMutex.h
++++ a/-
 @@ -69,7 +69,7 @@
  #include <pthread.h>
  #endif
diff --git a/srcpkgs/bullet/template b/srcpkgs/bullet/template
index 3f2af8aafdfd..9dabf7d89292 100644
--- a/srcpkgs/bullet/template
+++ b/srcpkgs/bullet/template
@@ -15,7 +15,6 @@ homepage="http://www.bulletphysics.com/Bullet/"
 distfiles="https://github.com/bulletphysics/bullet3/archive/${version}.tar.gz"
 checksum=baa642c906576d4d98d041d0acb80d85dd6eff6e3c16a009b1abf1ccd2bc0a61
 shlib_provides="libOpenGLWindow.so libgwen.so"
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/bumblebee/patches/10-modprobe-replace-rmmod.patch b/srcpkgs/bumblebee/patches/10-modprobe-replace-rmmod.patch
index 78684128f82b..7133bebc2398 100644
--- a/srcpkgs/bumblebee/patches/10-modprobe-replace-rmmod.patch
+++ b/srcpkgs/bumblebee/patches/10-modprobe-replace-rmmod.patch
@@ -4,8 +4,8 @@ Reason: Required for "20-better-module-load-unload.patch" to be successfully app
 
 diff --git src/module.c src/module.c
 index f7b99fa..f6d7144 100644
---- src/module.c
-+++ src/module.c
+--- a/src/module.c
++++ a/src/module.c
 @@ -96,7 +96,8 @@ int module_unload(char *driver) {
      int retries = 30;
      bb_log(LOG_INFO, "Unloading %s driver\n", driver);
diff --git a/srcpkgs/bumblebee/patches/20-better-module-load-unload.patch b/srcpkgs/bumblebee/patches/20-better-module-load-unload.patch
index 7e90dcd716ba..c6caa749c6ad 100644
--- a/srcpkgs/bumblebee/patches/20-better-module-load-unload.patch
+++ b/srcpkgs/bumblebee/patches/20-better-module-load-unload.patch
@@ -4,8 +4,8 @@ Reason: Replaces modprobe with libkmod2, and adds recursive module unloading for
 
 diff --git Makefile.am Makefile.am
 index e690362..732e303 100644
---- Makefile.am
-+++ Makefile.am
+--- a/Makefile.am
++++ a/Makefile.am
 @@ -10,7 +10,7 @@ AM_CPPFLAGS = ${regular_CPPFLAGS} \
  		-DCONF_XORG='"$(bumblebeedconfdir)/xorg.conf.DRIVER"' \
  		-DCONF_XORG_DIR='"$(bumblebeedconfdir)/xorg.conf.d"'
@@ -32,8 +32,8 @@ index e690362..732e303 100644
  bumblebeedconf_DATA = conf/bumblebee.conf conf/xorg.conf.nouveau conf/xorg.conf.nvidia
 diff --git README.markdown README.markdown
 index b534a6c..5c2baa5 100644
---- README.markdown
-+++ README.markdown
+--- a/README.markdown
++++ a/README.markdown
 @@ -19,6 +19,7 @@ The following packages are dependencies for the build process:
  - pkg-config
  - glib-2.0 and development headers
@@ -44,8 +44,8 @@ index b534a6c..5c2baa5 100644
  
 diff --git configure.ac configure.ac
 index 8dd831a..067c1f8 100644
---- configure.ac
-+++ configure.ac
+--- a/configure.ac
++++ a/configure.ac
 @@ -122,6 +122,7 @@ AC_SUBST([regular_CFLAGS])
  # Checks for header files.
  PKG_CHECK_MODULES([x11], [x11])
@@ -56,8 +56,8 @@ index 8dd831a..067c1f8 100644
  		PKG_CHECK_EXISTS([libbsd = 0.2.0], [AC_DEFINE(HAVE_LIBBSD_020)])
 diff --git src/bbconfig.h src/bbconfig.h
 index 5596b64..c6ebb28 100644
---- src/bbconfig.h
-+++ src/bbconfig.h
+--- a/src/bbconfig.h
++++ a/src/bbconfig.h
 @@ -26,6 +26,7 @@
  #include <unistd.h> //for pid_t
  #include <limits.h> //for CHAR_MAX
@@ -76,8 +76,8 @@ index 5596b64..c6ebb28 100644
  /* Structure containing the configuration. */
 diff --git src/bumblebeed.c src/bumblebeed.c
 index a911da9..ef4a568 100644
---- src/bumblebeed.c
-+++ src/bumblebeed.c
+--- a/src/bumblebeed.c
++++ a/src/bumblebeed.c
 @@ -34,6 +34,7 @@
  #include <string.h>
  #include <errno.h>
@@ -113,8 +113,8 @@ index a911da9..ef4a568 100644
  }
 diff --git src/module.c src/module.c
 index f6d7144..aed2729 100644
---- src/module.c
-+++ src/module.c
+--- a/src/module.c
++++ a/src/module.c
 @@ -24,91 +24,151 @@
  #include <ctype.h>
  #include <stdlib.h>
@@ -351,8 +351,8 @@ index f6d7144..aed2729 100644
 
 diff --git Makefile.am Makefile.am
 index 732e303..abcb4e9 100644
---- Makefile.am
-+++ Makefile.am
+--- a/Makefile.am
++++ a/Makefile.am
 @@ -49,7 +49,7 @@ sbin_PROGRAMS = bin/bumblebeed
  bin_PROGRAMS = bin/optirun
  
@@ -364,8 +364,8 @@ index 732e303..abcb4e9 100644
  	src/bbsocket.c src/module.c src/bbsecondary.c src/switch/switching.c \
 diff --git src/optirun.c src/optirun.c
 index a4607ea..643222c 100644
---- src/optirun.c
-+++ src/optirun.c
+--- a/src/optirun.c
++++ a/src/optirun.c
 @@ -37,7 +37,6 @@
  #include "bbsocketclient.h"
  #include "bblogger.h"
@@ -377,8 +377,8 @@ index a4607ea..643222c 100644
 
 diff --git src/bumblebeed.c src/bumblebeed.c
 index ef4a568..ac7a02d 100644
---- src/bumblebeed.c
-+++ src/bumblebeed.c
+--- a/src/bumblebeed.c
++++ a/src/bumblebeed.c
 @@ -503,8 +503,7 @@ int main(int argc, char* argv[]) {
    config_dump();
  
@@ -392,8 +392,8 @@ index ef4a568..ac7a02d 100644
 
 diff --git src/bumblebeed.c src/bumblebeed.c
 index ac7a02d..688972d 100644
---- src/bumblebeed.c
-+++ src/bumblebeed.c
+--- a/src/bumblebeed.c
++++ a/src/bumblebeed.c
 @@ -461,6 +461,7 @@ int main(int argc, char* argv[]) {
    /* first load the config to make the logging verbosity level available */
    init_config();
@@ -413,8 +413,8 @@ index ac7a02d..688972d 100644
 
 diff --git src/module.c src/module.c
 index aed2729..08f6f4a 100644
---- src/module.c
-+++ src/module.c
+--- a/src/module.c
++++ a/src/module.c
 @@ -45,8 +45,9 @@ int module_is_loaded(char *driver) {
  
    err = kmod_module_new_from_name(bb_status.kmod_ctx, driver, &mod);
@@ -430,8 +430,8 @@ index aed2729..08f6f4a 100644
 
 diff --git src/module.c src/module.c
 index 08f6f4a..6a197dc 100644
---- src/module.c
-+++ src/module.c
+--- a/src/module.c
++++ a/src/module.c
 @@ -189,9 +189,10 @@ int module_is_available(char *module_name) {
    if(err < 0) {
      bb_log(LOG_DEBUG, "kmod_module_new_from_lookup(%s) failed (err: %d).\n",
@@ -447,8 +447,8 @@ index 08f6f4a..6a197dc 100644
 
 diff --git src/bumblebeed.c src/bumblebeed.c
 index 688972d..b1458ab 100644
---- src/bumblebeed.c
-+++ src/bumblebeed.c
+--- a/src/bumblebeed.c
++++ a/src/bumblebeed.c
 @@ -490,6 +490,14 @@ int main(int argc, char* argv[]) {
  
    free(pci_id_igd);
@@ -482,8 +482,8 @@ index 688972d..b1458ab 100644
 
 diff --git src/module.c src/module.c
 index 6a197dc..cdc4a9b 100644
---- src/module.c
-+++ src/module.c
+--- a/src/module.c
++++ a/src/module.c
 @@ -81,7 +81,7 @@ int module_load(char *module_name, char *driver) {
      }
  
@@ -496,8 +496,8 @@ index 6a197dc..cdc4a9b 100644
 
 diff --git src/bblogger.c src/bblogger.c
 index 804e5b8..caff8a8 100644
---- src/bblogger.c
-+++ src/bblogger.c
+--- a/src/bblogger.c
++++ a/src/bblogger.c
 @@ -228,7 +228,7 @@ void check_xorg_pipe(void){
          /* line / buffer is full, process the remaining buffer the next round */
          repeat = 1;
@@ -516,8 +516,8 @@ index 804e5b8..caff8a8 100644
  }/* check_xorg_pipe */
 diff --git src/module.c src/module.c
 index cdc4a9b..c378bd7 100644
---- src/module.c
-+++ src/module.c
+--- a/src/module.c
++++ a/src/module.c
 @@ -44,7 +44,7 @@ int module_is_loaded(char *driver) {
    struct kmod_module *mod;
  
@@ -591,8 +591,8 @@ index cdc4a9b..c378bd7 100644
 
 diff --git src/bbconfig.c src/bbconfig.c
 index 1dff5e0..af38098 100644
---- src/bbconfig.c
-+++ src/bbconfig.c
+--- a/src/bbconfig.c
++++ a/src/bbconfig.c
 @@ -251,12 +251,6 @@ Bumblebee homepage: <http://Bumblebee-Project.org/>\n", out);
   */
  static int bbconfig_parse_common(int opt, char *value) {
@@ -621,8 +621,8 @@ index 1dff5e0..af38098 100644
            break;
 diff --git src/bumblebeed.c src/bumblebeed.c
 index b1458ab..6e0ade5 100644
---- src/bumblebeed.c
-+++ src/bumblebeed.c
+--- a/src/bumblebeed.c
++++ a/src/bumblebeed.c
 @@ -461,7 +461,6 @@ int main(int argc, char* argv[]) {
    /* first load the config to make the logging verbosity level available */
    init_config();
diff --git a/srcpkgs/bumblebee/template b/srcpkgs/bumblebee/template
index 93aa7c8e3bf9..c54ea65d32c5 100644
--- a/srcpkgs/bumblebee/template
+++ b/srcpkgs/bumblebee/template
@@ -24,7 +24,6 @@ homepage="http://www.bumblebee-project.org/"
 distfiles="http://www.bumblebee-project.org/${pkgname}-${version}.tar.gz"
 checksum=1018703b07e2f607a4641249d69478ce076ae5a1e9dd6cff5694d394fa7ee30e
 system_groups="bumblebee"
-patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/bup/patches/disable-git-call.patch b/srcpkgs/bup/patches/disable-git-call.patch
index 3abedea5aba0..ec1a0f7881a5 100644
--- a/srcpkgs/bup/patches/disable-git-call.patch
+++ b/srcpkgs/bup/patches/disable-git-call.patch
@@ -1,5 +1,5 @@
---- Makefile.orig	2016-05-25 16:57:27.966465927 +0200
-+++ Makefile	2016-05-25 16:57:32.091465618 +0200
+--- a/Makefile
++++ a/Makefile
 @@ -39,8 +39,8 @@ else
    test_tmp := $(CURDIR)/test/tmp
  endif
diff --git a/srcpkgs/bup/template b/srcpkgs/bup/template
index 5028dce8364d..b40c3cddbf68 100644
--- a/srcpkgs/bup/template
+++ b/srcpkgs/bup/template
@@ -14,7 +14,6 @@ distfiles="https://github.com/bup/bup/archive/${version}.tar.gz"
 checksum=a894cfa96c44b9ef48003b2c2104dc5fa6361dd2f4d519261a93178984a51259
 python_version=3
 nocross=yes
-patch_args=-Np0
 
 pre_configure() {
 	sed -i 's#^PREFIX=.*#PREFIX=/usr#' Makefile
diff --git a/srcpkgs/burp2-server/patches/tests-disable-failing.patch b/srcpkgs/burp2-server/patches/tests-disable-failing.patch
index 1d62cee74a2d..11a5c6444d7e 100644
--- a/srcpkgs/burp2-server/patches/tests-disable-failing.patch
+++ b/srcpkgs/burp2-server/patches/tests-disable-failing.patch
@@ -1,7 +1,7 @@
 disable failing tests (3 of 395), probably because of chroot.
 
---- utest/main.c.ORIG	2021-05-02 05:04:07.000000000 +0200
-+++ utest/main.c	2021-05-09 23:36:25.321692936 +0200
+--- a/utest/main.c.ORIG
++++ a/utest/main.c
 @@ -28,14 +28,12 @@
  	srunner_add_suite(sr, suite_base64());
  #ifdef HAVE_ACL
diff --git a/srcpkgs/burp2-server/template b/srcpkgs/burp2-server/template
index c9d602c51242..f3d95a8f1523 100644
--- a/srcpkgs/burp2-server/template
+++ b/srcpkgs/burp2-server/template
@@ -1,6 +1,5 @@
 # Template file for 'burp2-server'
 _desc="Network-based backup and restore program"
-patch_args=-Np0
 
 pkgname=burp2-server
 version=2.4.0
diff --git a/srcpkgs/busybox/patches/decompress_gunzip-Fix-DoS-if-gzip-is-corrupt.patch b/srcpkgs/busybox/patches/decompress_gunzip-Fix-DoS-if-gzip-is-corrupt.patch
index fe973506737d..b7321f36ec04 100644
--- a/srcpkgs/busybox/patches/decompress_gunzip-Fix-DoS-if-gzip-is-corrupt.patch
+++ b/srcpkgs/busybox/patches/decompress_gunzip-Fix-DoS-if-gzip-is-corrupt.patch
@@ -20,8 +20,8 @@ Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
 
 diff --git archival/libarchive/decompress_gunzip.c archival/libarchive/decompress_gunzip.c
 index 03049cc9b..e0520190a 100644
---- archival/libarchive/decompress_gunzip.c
-+++ archival/libarchive/decompress_gunzip.c
+--- a/archival/libarchive/decompress_gunzip.c
++++ a/archival/libarchive/decompress_gunzip.c
 @@ -220,10 +220,20 @@ static const uint8_t border[] ALIGN1 = {
   * each table.
   * t: table to free
diff --git a/srcpkgs/busybox/patches/testsuite-fix-date-works.patch b/srcpkgs/busybox/patches/testsuite-fix-date-works.patch
index bf70ff8f0564..fe342fd0c36b 100644
--- a/srcpkgs/busybox/patches/testsuite-fix-date-works.patch
+++ b/srcpkgs/busybox/patches/testsuite-fix-date-works.patch
@@ -1,7 +1,7 @@
 The format for the `date` command has changed and this test wasn't updated with it.
 
---- testsuite/date/date-works
-+++ testsuite/date/date-works
+--- a/testsuite/date/date-works
++++ a/testsuite/date/date-works
 @@ -1,6 +1,6 @@
  dt=`busybox date`
  # Expected format: Fri Apr 25 03:47:55 CEST 2008
diff --git a/srcpkgs/busybox/template b/srcpkgs/busybox/template
index b580ccc52e9b..07377569ba5f 100644
--- a/srcpkgs/busybox/template
+++ b/srcpkgs/busybox/template
@@ -10,7 +10,6 @@ license="GPL-2.0-only"
 homepage="https://www.busybox.net"
 distfiles="${homepage}/downloads/busybox-${version}.tar.bz2"
 checksum=9d57c4bd33974140fd4111260468af22856f12f5b5ef7c70c8d9b75c712a0dee
-patch_args=-Np0
 
 _alternatives_core="
  ash:ash:/usr/bin/busybox
diff --git a/srcpkgs/bzflag/patches/NetHandler-musl.patch b/srcpkgs/bzflag/patches/NetHandler-musl.patch
index f843ef9df51a..1726dacc1b90 100644
--- a/srcpkgs/bzflag/patches/NetHandler-musl.patch
+++ b/srcpkgs/bzflag/patches/NetHandler-musl.patch
@@ -1,5 +1,5 @@
---- src/game/NetHandler.cxx-orig	2018-01-22 12:28:31.043278572 -0600
-+++ src/game/NetHandler.cxx	2018-01-22 12:28:07.889568033 -0600
+--- a/src/game/NetHandler.cxx
++++ a/src/game/NetHandler.cxx
 @@ -135,7 +135,7 @@
    uint16_t code;
    while (true) {
diff --git a/srcpkgs/bzflag/patches/bzfs-musl.patch b/srcpkgs/bzflag/patches/bzfs-musl.patch
index dc322dda8ad9..0373789a7a0a 100644
--- a/srcpkgs/bzflag/patches/bzfs-musl.patch
+++ b/srcpkgs/bzflag/patches/bzfs-musl.patch
@@ -1,5 +1,5 @@
---- src/bzfs/bzfs.cxx.orig	2018-09-27 08:34:45.781489776 +0200
-+++ src/bzfs/bzfs.cxx	2018-09-27 08:35:47.688492106 +0200
+--- a/src/bzfs/bzfs.cxx
++++ a/src/bzfs/bzfs.cxx
 @@ -1312,7 +1312,7 @@
      // accept incoming connection on our well known port
      struct sockaddr_in clientAddr;
diff --git a/srcpkgs/bzflag/template b/srcpkgs/bzflag/template
index e7315f51646a..d58270495975 100644
--- a/srcpkgs/bzflag/template
+++ b/srcpkgs/bzflag/template
@@ -12,4 +12,3 @@ homepage="https://www.bzflag.org"
 changelog="https://raw.githubusercontent.com/BZFlag-Dev/bzflag/2.4/ChangeLog"
 distfiles="https://download.bzflag.org/bzflag/source/${version}/bzflag-${version}.tar.bz2"
 checksum=9e64653302b657bd8b5f96fe1150a9ff80a1d53a6d7e8a35138c6b1b02006a4d
-patch_args=-Np0
diff --git a/srcpkgs/bzip2/patches/soname.patch b/srcpkgs/bzip2/patches/soname.patch
index 48440d5b8027..ff2aa351cabe 100644
--- a/srcpkgs/bzip2/patches/soname.patch
+++ b/srcpkgs/bzip2/patches/soname.patch
@@ -1,5 +1,5 @@
---- Makefile-libbz2_so.orig	2019-07-17 21:09:34.798780817 +0200
-+++ Makefile-libbz2_so	2019-07-17 21:09:47.306781668 +0200
+--- a/Makefile-libbz2_so
++++ a/Makefile-libbz2_so
 @@ -22,9 +22,9 @@
  
  
@@ -25,8 +25,8 @@
  
  clean: 
  	rm -f $(OBJS) bzip2.o libbz2.so.1.0.8 libbz2.so.1.0 bzip2-shared
---- Makefile.orig	2019-07-17 21:15:28.649804898 +0200
-+++ Makefile	2019-07-17 21:16:14.981808051 +0200
+--- a/Makefile
++++ a/Makefile
 @@ -15,13 +15,13 @@
  SHELL=/bin/sh
  
diff --git a/srcpkgs/bzip2/template b/srcpkgs/bzip2/template
index d51b4a9e6efd..c39a9427efb1 100644
--- a/srcpkgs/bzip2/template
+++ b/srcpkgs/bzip2/template
@@ -10,7 +10,6 @@ homepage="https://sourceware.org/bzip2/"
 changelog="https://sourceware.org/bzip2/CHANGES"
 distfiles="https://sourceware.org/pub/bzip2/bzip2-${version}.tar.gz"
 checksum=ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269
-patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CFLAGS="$CFLAGS -fPIC $LDFLAGS" LDFLAGS="$LDFLAGS" -f Makefile-libbz2_so

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] [RFC] switch patch_args to -Np1
  2021-06-18  1:38 [PR PATCH] [RFC] switch patch_args to -Np1 sgn
                   ` (4 preceding siblings ...)
  2021-06-18 11:30 ` [PR PATCH] [Updated] " sgn
@ 2021-06-18 11:33 ` sgn
  2021-06-18 11:39 ` q66
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: sgn @ 2021-06-18 11:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 383 bytes --]

There is an updated pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages patch-args-Np1
https://github.com/void-linux/void-packages/pull/31550

[RFC] switch patch_args to -Np1
[ci skip]

Being suggested on IRC @void-linux/pkg-committers 

A patch file from https://github.com/void-linux/void-packages/pull/31550.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-patch-args-Np1-31550.patch --]
[-- Type: text/x-diff, Size: 1432058 bytes --]

From 6ca29cb8f814d664172d579c5ee61aef820134fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:09:47 +0700
Subject: [PATCH 1/9] grub: unify patch_args to -Np1

---
 .../0004-add-GRUB_COLOR_variables.patch       |  8 +++----
 .../grub-install-pvxen-paths.patch.args       |  1 -
 .../grub/patches/ieee1275-clear-reset.patch   |  4 ++--
 .../patches/install_powerpc_machtypes.patch   | 24 +++++++++----------
 srcpkgs/grub/patches/os-prober-osx86.patch    |  4 ++--
 .../grub/patches/ppc64el-disable-vsx.patch    |  4 ++--
 srcpkgs/grub/template                         |  1 +
 7 files changed, 23 insertions(+), 23 deletions(-)
 delete mode 100644 srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args

diff --git a/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch b/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch
index f899717c4d99..c113a81d5754 100644
--- a/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch
+++ b/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch
@@ -1,7 +1,7 @@
 diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
 index 3390ba9..c416489 100644
---- util/grub-mkconfig.in
-+++ util/grub-mkconfig.in
+--- a/util/grub-mkconfig.in
++++ b/util/grub-mkconfig.in
 @@ -218,6 +218,8 @@ export GRUB_DEFAULT \
    GRUB_THEME \
    GRUB_GFXPAYLOAD_LINUX \
@@ -13,8 +13,8 @@ index 3390ba9..c416489 100644
    GRUB_ENABLE_CRYPTODISK \
 diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in
 index d2e7252..8259f45 100644
---- util/grub.d/00_header.in
-+++ util/grub.d/00_header.in
+--- a/util/grub.d/00_header.in
++++ b/util/grub.d/00_header.in
 @@ -125,6 +125,14 @@ cat <<EOF
  
  EOF
diff --git a/srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args b/srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args
deleted file mode 100644
index 2eba1cb3c5ce..000000000000
--- a/srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args
+++ /dev/null
@@ -1 +0,0 @@
--Np1
diff --git a/srcpkgs/grub/patches/ieee1275-clear-reset.patch b/srcpkgs/grub/patches/ieee1275-clear-reset.patch
index 96b9bd63f125..18ff7733bdb1 100644
--- a/srcpkgs/grub/patches/ieee1275-clear-reset.patch
+++ b/srcpkgs/grub/patches/ieee1275-clear-reset.patch
@@ -19,8 +19,8 @@ Patch-Name: ieee1275-clear-reset.patch
 
 diff --git a/grub-core/term/terminfo.c b/grub-core/term/terminfo.c
 index f0d3e3deb..7cb7909c8 100644
---- grub-core/term/terminfo.c
-+++ grub-core/term/terminfo.c
+--- a/grub-core/term/terminfo.c
++++ b/grub-core/term/terminfo.c
 @@ -151,7 +151,7 @@ grub_terminfo_set_current (struct grub_term_output *term,
        /* Clear the screen.  Using serial console, screen(1) only recognizes the
         * ANSI escape sequence.  Using video console, Apple Open Firmware
diff --git a/srcpkgs/grub/patches/install_powerpc_machtypes.patch b/srcpkgs/grub/patches/install_powerpc_machtypes.patch
index ce5e36cb4a57..209b726c77ee 100644
--- a/srcpkgs/grub/patches/install_powerpc_machtypes.patch
+++ b/srcpkgs/grub/patches/install_powerpc_machtypes.patch
@@ -26,8 +26,8 @@ Patch-Name: install_powerpc_machtypes.patch
 
 diff --git a/grub-core/osdep/basic/platform.c b/grub-core/osdep/basic/platform.c
 index 4b5502aeb..2ab907976 100644
---- grub-core/osdep/basic/platform.c
-+++ grub-core/osdep/basic/platform.c
+--- a/grub-core/osdep/basic/platform.c
++++ b/grub-core/osdep/basic/platform.c
 @@ -24,3 +24,8 @@ grub_install_get_default_x86_platform (void)
    return "i386-pc";
  }
@@ -39,8 +39,8 @@ index 4b5502aeb..2ab907976 100644
 +}
 diff --git a/grub-core/osdep/linux/platform.c b/grub-core/osdep/linux/platform.c
 index 35f1bcc0e..9805c36d4 100644
---- grub-core/osdep/linux/platform.c
-+++ grub-core/osdep/linux/platform.c
+--- a/grub-core/osdep/linux/platform.c
++++ b/grub-core/osdep/linux/platform.c
 @@ -23,6 +23,7 @@
  #include <grub/emu/misc.h>
  #include <sys/types.h>
@@ -126,8 +126,8 @@ index 35f1bcc0e..9805c36d4 100644
 +}
 diff --git a/grub-core/osdep/unix/platform.c b/grub-core/osdep/unix/platform.c
 index a3fcfcaca..28cb37e15 100644
---- grub-core/osdep/unix/platform.c
-+++ grub-core/osdep/unix/platform.c
+--- a/grub-core/osdep/unix/platform.c
++++ b/grub-core/osdep/unix/platform.c
 @@ -212,13 +212,29 @@ grub_install_register_ieee1275 (int is_prep, const char *install_device,
    else
      boot_device = get_ofpathname (install_device);
@@ -166,8 +166,8 @@ index a3fcfcaca..28cb37e15 100644
    free (boot_device);
 diff --git a/grub-core/osdep/windows/platform.c b/grub-core/osdep/windows/platform.c
 index 912269191..c30025b13 100644
---- grub-core/osdep/windows/platform.c
-+++ grub-core/osdep/windows/platform.c
+--- a/grub-core/osdep/windows/platform.c
++++ b/grub-core/osdep/windows/platform.c
 @@ -128,6 +128,12 @@ grub_install_get_default_x86_platform (void)
      return "i386-efi";
  }
@@ -183,8 +183,8 @@ index 912269191..c30025b13 100644
  {
 diff --git a/include/grub/util/install.h b/include/grub/util/install.h
 index 5ca4811cd..9f517a1bb 100644
---- include/grub/util/install.h
-+++ include/grub/util/install.h
+--- a/include/grub/util/install.h
++++ b/include/grub/util/install.h
 @@ -206,6 +206,9 @@ grub_install_create_envblk_file (const char *name);
  const char *
  grub_install_get_default_x86_platform (void);
@@ -197,8 +197,8 @@ index 5ca4811cd..9f517a1bb 100644
  			   const char *efifile_path,
 diff --git a/util/grub-install.c b/util/grub-install.c
 index e1a0202da..70b22eec4 100644
---- util/grub-install.c
-+++ util/grub-install.c
+--- a/util/grub-install.c
++++ b/util/grub-install.c
 @@ -1155,7 +1155,18 @@ main (int argc, char *argv[])
  
    if (platform == GRUB_INSTALL_PLATFORM_POWERPC_IEEE1275)
diff --git a/srcpkgs/grub/patches/os-prober-osx86.patch b/srcpkgs/grub/patches/os-prober-osx86.patch
index 5fabbeb6d993..5226a6def3b2 100644
--- a/srcpkgs/grub/patches/os-prober-osx86.patch
+++ b/srcpkgs/grub/patches/os-prober-osx86.patch
@@ -1,7 +1,7 @@
 Patches OS X detection out of os-prober hook on non-x86 architectures. The
 menu entries generated for those are invalid for non-x86 Mac stuff.
---- util/grub.d/30_os-prober.in
-+++ util/grub.d/30_os-prober.in
+--- a/util/grub.d/30_os-prober.in
++++ b/util/grub.d/30_os-prober.in
 @@ -42,6 +42,11 @@ if [ -z "${OSPROBED}" ] ; then
  fi
  
diff --git a/srcpkgs/grub/patches/ppc64el-disable-vsx.patch b/srcpkgs/grub/patches/ppc64el-disable-vsx.patch
index 1f4c40181521..67744dd23beb 100644
--- a/srcpkgs/grub/patches/ppc64el-disable-vsx.patch
+++ b/srcpkgs/grub/patches/ppc64el-disable-vsx.patch
@@ -22,8 +22,8 @@ Patch-Name: ppc64el-disable-vsx.patch
 
 diff --git a/grub-core/kern/powerpc/ieee1275/startup.S b/grub-core/kern/powerpc/ieee1275/startup.S
 index 21c884b43..de9a9601a 100644
---- grub-core/kern/powerpc/ieee1275/startup.S
-+++ grub-core/kern/powerpc/ieee1275/startup.S
+--- a/grub-core/kern/powerpc/ieee1275/startup.S
++++ b/grub-core/kern/powerpc/ieee1275/startup.S
 @@ -20,6 +20,8 @@
  #include <grub/symbol.h>
  #include <grub/offsets.h>
diff --git a/srcpkgs/grub/template b/srcpkgs/grub/template
index 69cea9ae19a3..11cbdc495f67 100644
--- a/srcpkgs/grub/template
+++ b/srcpkgs/grub/template
@@ -16,6 +16,7 @@ checksum=e5292496995ad42dabe843a0192cf2a2c502e7ffcc7479398232b10a472df77d
 
 archs="i686* x86_64* aarch64* ppc ppc-musl ppc64*"
 nopie=yes
+patch_args=-Np1
 
 subpackages="grub-utils"
 # _SUPPLEMENTARY_BUILDS is a list of <TARGET>-<PLATFORN> version of grub to build

From c0e63bdd7ea0582973f15e23c21446de82409080 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 08:31:53 +0700
Subject: [PATCH 2/9] srcpkgs: adjust patch_args to -Np1 for patches being
 symlinked

---
 srcpkgs/cmake/patches/musl-test.patch          |  4 ++--
 srcpkgs/cmake/patches/test-none.patch          |  4 ++--
 srcpkgs/cmake/template                         |  1 +
 srcpkgs/gsimplecal-gtk2/patches/musl.patch     |  4 ++--
 srcpkgs/gsimplecal-gtk2/template               |  1 +
 ...list_unlink_in_pthread_exit_after_all.patch |  4 ++--
 ...threads_minus_1_as_relaxed_atomic_for.patch | 12 ++++++------
 ...down_size_of_some_libc_struct_members.patch |  4 ++--
 ...ipping_for_processes_that_return_to_s.patch | 16 ++++++++--------
 srcpkgs/musl/patches/CVE-2020-28928.patch      |  4 ++--
 srcpkgs/musl/patches/aarch64-fregs.patch       |  8 ++++----
 srcpkgs/musl/patches/epoll_cp.patch            |  4 ++--
 srcpkgs/musl/patches/isascii.patch             |  4 ++--
 srcpkgs/musl/patches/mo_lookup.patch           |  4 ++--
 srcpkgs/musl/patches/ppc-pt_regs.patch         |  8 ++++----
 srcpkgs/musl/patches/ppc64-fpregset_t.patch    |  4 ++--
 srcpkgs/musl/patches/ppcle.patch               |  4 ++--
 srcpkgs/musl/patches/reallocarray.patch        |  6 +++---
 srcpkgs/musl/template                          |  1 +
 ...al.c-define-__SIGRTMIN-MAX-for-non-GN.patch |  4 ++--
 .../patches/fix-softfloat-fesetround.patch     |  4 ++--
 srcpkgs/qemu/patches/mmap-mremap-efault.patch  |  4 ++--
 srcpkgs/qemu/patches/musl-9p-limits_h.patch    |  4 ++--
 .../qemu/patches/musl-fix-SIOCGSTAMPNS.patch   |  4 ++--
 .../musl-fix-sigevent-and-sigval_t.patch       |  4 ++--
 .../qemu/patches/musl-initialize-msghdr.patch  |  4 ++--
 srcpkgs/qemu/patches/musl-ppc.patch            | 12 ++++++------
 srcpkgs/qemu/patches/time64.patch              |  8 ++++----
 srcpkgs/qemu/patches/xxx-ppcle.patch           | 18 +++++++++---------
 srcpkgs/qemu/template                          |  1 +
 srcpkgs/util-linux/patches/fix-musl.patch      |  4 ++--
 srcpkgs/util-linux/template                    |  1 +
 srcpkgs/xbps/patches/cflags.patch              |  4 ++--
 srcpkgs/xbps/template                          |  1 +
 34 files changed, 90 insertions(+), 84 deletions(-)

diff --git a/srcpkgs/cmake/patches/musl-test.patch b/srcpkgs/cmake/patches/musl-test.patch
index 4da8c2f9cfc6..0329b5efd2f5 100644
--- a/srcpkgs/cmake/patches/musl-test.patch
+++ b/srcpkgs/cmake/patches/musl-test.patch
@@ -1,5 +1,5 @@
---- Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake.orig	2020-12-05 13:27:21.098078774 +0700
-+++ Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake	2020-12-05 13:29:19.931553018 +0700
+--- a/Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake.orig	2020-12-05 13:27:21.098078774 +0700
++++ b/Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake	2020-12-05 13:29:19.931553018 +0700
 @@ -33,9 +33,9 @@
    [[librunpath_parent_unresolved\.so]]
    [[librunpath_unresolved\.so]]
diff --git a/srcpkgs/cmake/patches/test-none.patch b/srcpkgs/cmake/patches/test-none.patch
index 3a5540551525..e0b6886bb0a2 100644
--- a/srcpkgs/cmake/patches/test-none.patch
+++ b/srcpkgs/cmake/patches/test-none.patch
@@ -24,8 +24,8 @@ Let's define them when non main stream like None is specified as CMAKE_BUILD_TY
 
 diff --git Tests/ConfigSources/CMakeLists.txt Tests/ConfigSources/CMakeLists.txt
 index a3d98f685f..f83759ca10 100644
---- Tests/ConfigSources/CMakeLists.txt
-+++ Tests/ConfigSources/CMakeLists.txt
+--- a/Tests/ConfigSources/CMakeLists.txt
++++ b/Tests/ConfigSources/CMakeLists.txt
 @@ -74,10 +74,10 @@ add_custom_command(APPEND
    VERBATIM
    )
diff --git a/srcpkgs/cmake/template b/srcpkgs/cmake/template
index 5d3308f93b5d..e9ee3debf3c0 100644
--- a/srcpkgs/cmake/template
+++ b/srcpkgs/cmake/template
@@ -17,6 +17,7 @@ homepage="https://www.cmake.org"
 distfiles="https://www.cmake.org/files/v${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=4d008ac3461e271fcfac26a05936f77fc7ab64402156fb371d41284851a651b8
 replaces="cmake-bootstrap>=0"
+patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	build_style=cmake
diff --git a/srcpkgs/gsimplecal-gtk2/patches/musl.patch b/srcpkgs/gsimplecal-gtk2/patches/musl.patch
index 2295d20b338d..eef2a786bb73 100644
--- a/srcpkgs/gsimplecal-gtk2/patches/musl.patch
+++ b/srcpkgs/gsimplecal-gtk2/patches/musl.patch
@@ -1,5 +1,5 @@
---- src/Unique.cpp.orig	2016-04-24 08:08:43.921536576 +0200
-+++ src/Unique.cpp	2016-04-24 08:09:18.615896283 +0200
+--- a/src/Unique.cpp.orig	2016-04-24 08:08:43.921536576 +0200
++++ b/src/Unique.cpp	2016-04-24 08:09:18.615896283 +0200
 @@ -1,10 +1,16 @@
 +#ifdef HAVE_CONFIG_H
 +#include "config.h"
diff --git a/srcpkgs/gsimplecal-gtk2/template b/srcpkgs/gsimplecal-gtk2/template
index 73cf3bd39b88..c7339f62d60e 100644
--- a/srcpkgs/gsimplecal-gtk2/template
+++ b/srcpkgs/gsimplecal-gtk2/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="http://dmedvinsky.github.io/gsimplecal/"
 distfiles="https://github.com/dmedvinsky/${pkgname%-*}/archive/v${version}.tar.gz"
 checksum="660cac7333d3507203a008e142e2b8f5dfcf0735b6ccabdd8d3d902b5d2c40e9"
+patch_args=-Np1
 
 replaces="gsimplecal-gtk3>=0"
 
diff --git a/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch b/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch
index e774afcd52e4..7c1a55bc85e3 100644
--- a/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch
+++ b/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch
@@ -16,8 +16,8 @@ __dl_thread_cleanup.
 
 diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c
 index 5f491092..6a3b0c21 100644
---- src/thread/pthread_create.c
-+++ src/thread/pthread_create.c
+--- a/src/thread/pthread_create.c
++++ b/src/thread/pthread_create.c
 @@ -90,14 +90,7 @@ _Noreturn void __pthread_exit(void *result)
  		exit(0);
  	}
diff --git a/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch b/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch
index 850c43c3cc78..e060762e99a6 100644
--- a/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch
+++ b/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch
@@ -36,8 +36,8 @@ needs to be taken to produce a safe design.
 
 diff --git a/src/internal/libc.h b/src/internal/libc.h
 index ac97dc7e..c0614852 100644
---- src/internal/libc.h
-+++ src/internal/libc.h
+--- a/src/internal/libc.h
++++ b/src/internal/libc.h
 @@ -21,7 +21,7 @@ struct __libc {
  	int can_do_threads;
  	int threaded;
@@ -49,8 +49,8 @@ index ac97dc7e..c0614852 100644
  	size_t tls_size, tls_align, tls_cnt;
 diff --git a/src/malloc/malloc.c b/src/malloc/malloc.c
 index 96982596..2553a62e 100644
---- src/malloc/malloc.c
-+++ src/malloc/malloc.c
+--- a/src/malloc/malloc.c
++++ b/src/malloc/malloc.c
 @@ -26,7 +26,7 @@ int __malloc_replaced;
  
  static inline void lock(volatile int *lk)
@@ -62,8 +62,8 @@ index 96982596..2553a62e 100644
  
 diff --git a/src/thread/__lock.c b/src/thread/__lock.c
 index 45557c88..5b9b144e 100644
---- src/thread/__lock.c
-+++ src/thread/__lock.c
+--- a/src/thread/__lock.c
++++ b/src/thread/__lock.c
 @@ -18,7 +18,7 @@
  
  void __lock(volatile int *l)
diff --git a/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch b/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch
index 60dcac24bda6..540c5d950195 100644
--- a/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch
+++ b/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch
@@ -10,8 +10,8 @@ these are all flags that can be single-byte values.
 
 diff --git a/src/internal/libc.h b/src/internal/libc.h
 index c0614852..d47f58e0 100644
---- src/internal/libc.h
-+++ src/internal/libc.h
+--- a/src/internal/libc.h
++++ b/src/internal/libc.h
 @@ -18,9 +18,9 @@ struct tls_module {
  };
  
diff --git a/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch b/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch
index 09847c32b6a8..e703c1f403c5 100644
--- a/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch
+++ b/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch
@@ -19,8 +19,8 @@ memory load after the lock is taken.
 
 diff --git a/src/internal/libc.h b/src/internal/libc.h
 index d47f58e0..619bba86 100644
---- src/internal/libc.h
-+++ src/internal/libc.h
+--- a/src/internal/libc.h
++++ b/src/internal/libc.h
 @@ -21,6 +21,7 @@ struct __libc {
  	char can_do_threads;
  	char threaded;
@@ -31,8 +31,8 @@ index d47f58e0..619bba86 100644
  	struct tls_module *tls_head;
 diff --git a/src/malloc/malloc.c b/src/malloc/malloc.c
 index 2553a62e..a803d4c9 100644
---- src/malloc/malloc.c
-+++ src/malloc/malloc.c
+--- a/src/malloc/malloc.c
++++ b/src/malloc/malloc.c
 @@ -26,8 +26,11 @@ int __malloc_replaced;
  
  static inline void lock(volatile int *lk)
@@ -48,8 +48,8 @@ index 2553a62e..a803d4c9 100644
  static inline void unlock(volatile int *lk)
 diff --git a/src/thread/__lock.c b/src/thread/__lock.c
 index 5b9b144e..60eece49 100644
---- src/thread/__lock.c
-+++ src/thread/__lock.c
+--- a/src/thread/__lock.c
++++ b/src/thread/__lock.c
 @@ -18,9 +18,11 @@
  
  void __lock(volatile int *l)
@@ -65,8 +65,8 @@ index 5b9b144e..60eece49 100644
  	for (unsigned i = 0; i < 10; ++i) {
 diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c
 index 6a3b0c21..6bdfb44f 100644
---- src/thread/pthread_create.c
-+++ src/thread/pthread_create.c
+--- a/src/thread/pthread_create.c
++++ b/src/thread/pthread_create.c
 @@ -118,8 +118,8 @@ _Noreturn void __pthread_exit(void *result)
  	 * until the lock is released, which only happens after SYS_exit
  	 * has been called, via the exit futex address pointing at the lock.
diff --git a/srcpkgs/musl/patches/CVE-2020-28928.patch b/srcpkgs/musl/patches/CVE-2020-28928.patch
index 9075ae1f8977..b3ff3b4ee08f 100644
--- a/srcpkgs/musl/patches/CVE-2020-28928.patch
+++ b/srcpkgs/musl/patches/CVE-2020-28928.patch
@@ -1,5 +1,5 @@
---- src/multibyte/wcsnrtombs.c
-+++ src/multibyte/wcsnrtombs.c
+--- a/src/multibyte/wcsnrtombs.c
++++ b/src/multibyte/wcsnrtombs.c
 @@ -1,41 +1,33 @@
  #include <wchar.h>
 +#include <limits.h>
diff --git a/srcpkgs/musl/patches/aarch64-fregs.patch b/srcpkgs/musl/patches/aarch64-fregs.patch
index 9c89de447320..024eed11a8e5 100644
--- a/srcpkgs/musl/patches/aarch64-fregs.patch
+++ b/srcpkgs/musl/patches/aarch64-fregs.patch
@@ -2,8 +2,8 @@ Use types compatible with glibc/kernel headers.
 
 diff --git a/arch/aarch64/bits/signal.h b/arch/aarch64/bits/signal.h
 index b71261f5..5098c734 100644
---- arch/aarch64/bits/signal.h
-+++ arch/aarch64/bits/signal.h
+--- a/arch/aarch64/bits/signal.h
++++ b/arch/aarch64/bits/signal.h
 @@ -11,7 +11,7 @@ typedef unsigned long greg_t;
  typedef unsigned long gregset_t[34];
  
@@ -24,8 +24,8 @@ index b71261f5..5098c734 100644
  	struct _aarch64_ctx head;
 diff --git a/arch/aarch64/bits/user.h b/arch/aarch64/bits/user.h
 index d12cdf7f..8a1002aa 100644
---- arch/aarch64/bits/user.h
-+++ arch/aarch64/bits/user.h
+--- a/arch/aarch64/bits/user.h
++++ b/arch/aarch64/bits/user.h
 @@ -6,7 +6,7 @@ struct user_regs_struct {
  };
  
diff --git a/srcpkgs/musl/patches/epoll_cp.patch b/srcpkgs/musl/patches/epoll_cp.patch
index 429aff70b137..92f47551ad8e 100644
--- a/srcpkgs/musl/patches/epoll_cp.patch
+++ b/srcpkgs/musl/patches/epoll_cp.patch
@@ -12,8 +12,8 @@ cancellation points should be done.
 
 diff --git src/linux/epoll.c src/linux/epoll.c
 index deff5b10..93baa814 100644
---- src/linux/epoll.c
-+++ src/linux/epoll.c
+--- a/src/linux/epoll.c
++++ b/src/linux/epoll.c
 @@ -24,9 +24,9 @@ int epoll_ctl(int fd, int op, int fd2, struct epoll_event *ev)
  
  int epoll_pwait(int fd, struct epoll_event *ev, int cnt, int to, const sigset_t *sigs)
diff --git a/srcpkgs/musl/patches/isascii.patch b/srcpkgs/musl/patches/isascii.patch
index 372ab1f44ab2..6719d2ee188f 100644
--- a/srcpkgs/musl/patches/isascii.patch
+++ b/srcpkgs/musl/patches/isascii.patch
@@ -7,8 +7,8 @@ analogous to commit a60457c84a4b59ab564d7f4abb660a70283ba98d.
 
 diff --git include/ctype.h include/ctype.h
 index 7936536f..32bcef4d 100644
---- include/ctype.h
-+++ include/ctype.h
+--- a/include/ctype.h
++++ b/include/ctype.h
 @@ -64,7 +64,9 @@ int   isascii(int);
  int   toascii(int);
  #define _tolower(a) ((a)|0x20)
diff --git a/srcpkgs/musl/patches/mo_lookup.patch b/srcpkgs/musl/patches/mo_lookup.patch
index c23eaf33bc37..ae86e33c9c70 100644
--- a/srcpkgs/musl/patches/mo_lookup.patch
+++ b/srcpkgs/musl/patches/mo_lookup.patch
@@ -6,8 +6,8 @@ and probably others.
 
 	--xtraeme
 
---- src/locale/__mo_lookup.c.orig	2019-06-26 09:55:36.843012674 +0200
-+++ src/locale/__mo_lookup.c	2019-06-26 09:56:11.529443955 +0200
+--- a/src/locale/__mo_lookup.c.orig	2019-06-26 09:55:36.843012674 +0200
++++ b/src/locale/__mo_lookup.c	2019-06-26 09:56:11.529443955 +0200
 @@ -13,7 +13,7 @@ const char *__mo_lookup(const void *p, s
  	uint32_t b = 0, n = swapc(mo[2], sw);
  	uint32_t o = swapc(mo[3], sw);
diff --git a/srcpkgs/musl/patches/ppc-pt_regs.patch b/srcpkgs/musl/patches/ppc-pt_regs.patch
index 93ab51e25c06..45815321bf0f 100644
--- a/srcpkgs/musl/patches/ppc-pt_regs.patch
+++ b/srcpkgs/musl/patches/ppc-pt_regs.patch
@@ -12,8 +12,8 @@ Date:   Sat Oct 19 15:53:43 2019 -0400
 
 diff --git a/arch/powerpc/bits/signal.h b/arch/powerpc/bits/signal.h
 index 06efb11c..c1bf3caf 100644
---- arch/powerpc/bits/signal.h
-+++ arch/powerpc/bits/signal.h
+--- a/arch/powerpc/bits/signal.h
++++ b/arch/powerpc/bits/signal.h
 @@ -28,7 +28,7 @@ struct sigcontext {
  	int signal;
  	unsigned long handler;
@@ -25,8 +25,8 @@ index 06efb11c..c1bf3caf 100644
  typedef struct {
 diff --git a/arch/powerpc64/bits/signal.h b/arch/powerpc64/bits/signal.h
 index 4dec22a5..d5493b18 100644
---- arch/powerpc64/bits/signal.h
-+++ arch/powerpc64/bits/signal.h
+--- a/arch/powerpc64/bits/signal.h
++++ b/arch/powerpc64/bits/signal.h
 @@ -32,7 +32,7 @@ typedef struct sigcontext {
  	int _pad0;
  	unsigned long handler;
diff --git a/srcpkgs/musl/patches/ppc64-fpregset_t.patch b/srcpkgs/musl/patches/ppc64-fpregset_t.patch
index 40c2a066acab..12617ba0ef7d 100644
--- a/srcpkgs/musl/patches/ppc64-fpregset_t.patch
+++ b/srcpkgs/musl/patches/ppc64-fpregset_t.patch
@@ -14,8 +14,8 @@ Date:   Sat Oct 19 15:39:45 2019 -0400
 
 diff --git a/arch/powerpc64/bits/signal.h b/arch/powerpc64/bits/signal.h
 index 2cc0604c..4dec22a5 100644
---- arch/powerpc64/bits/signal.h
-+++ arch/powerpc64/bits/signal.h
+--- a/arch/powerpc64/bits/signal.h
++++ b/arch/powerpc64/bits/signal.h
 @@ -9,11 +9,7 @@
  #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  
diff --git a/srcpkgs/musl/patches/ppcle.patch b/srcpkgs/musl/patches/ppcle.patch
index 568dcce2de82..7d49338a5a0f 100644
--- a/srcpkgs/musl/patches/ppcle.patch
+++ b/srcpkgs/musl/patches/ppcle.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] add ppc32 le subarch
 
 diff --git configure configure
 index 8680128..f1ca58e 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -645,6 +645,7 @@ fi
  if test "$ARCH" = "powerpc" ; then
  trycppif "__NO_FPRS__ && !_SOFT_FLOAT" "$t" && fail \
diff --git a/srcpkgs/musl/patches/reallocarray.patch b/srcpkgs/musl/patches/reallocarray.patch
index 6d5faf32ccf5..cfaab330e89a 100644
--- a/srcpkgs/musl/patches/reallocarray.patch
+++ b/srcpkgs/musl/patches/reallocarray.patch
@@ -11,8 +11,8 @@ while glibc 2.29 allows its usage in _DEFAULT_SOURCE.
 
 diff --git a/include/stdlib.h b/include/stdlib.h
 index 194c2033..b54a051f 100644
---- include/stdlib.h
-+++ include/stdlib.h
+--- a/include/stdlib.h
++++ b/include/stdlib.h
 @@ -145,6 +145,7 @@ int getloadavg(double *, int);
  int clearenv(void);
  #define WCOREDUMP(s) ((s) & 0x80)
@@ -25,7 +25,7 @@ diff --git a/src/malloc/reallocarray.c b/src/malloc/reallocarray.c
 new file mode 100644
 index 00000000..4a6ebe46
 --- /dev/null
-+++ src/malloc/reallocarray.c
++++ b/src/malloc/reallocarray.c
 @@ -0,0 +1,13 @@
 +#define _BSD_SOURCE
 +#include <errno.h>
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 337a3082faa9..eaa3dc12e8e5 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://www.musl-libc.org/"
 distfiles="http://www.musl-libc.org/releases/musl-${version}.tar.gz"
 checksum=1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
+patch_args=-Np1
 
 nostrip_files="libc.so"
 shlib_provides="libc.so"
diff --git a/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch b/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
index 9da918e4345f..528b5d5d8bf6 100644
--- a/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
+++ b/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
@@ -16,8 +16,8 @@ Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
 
 diff --git a/linux-user/signal.c b/linux-user/signal.c
 index 5ca6d62b15..e917c16d91 100644
---- linux-user/signal.c
-+++ linux-user/signal.c
+--- a/linux-user/signal.c
++++ b/linux-user/signal.c
 @@ -25,6 +25,13 @@
  #include "trace.h"
  #include "signal-common.h"
diff --git a/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch b/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch
index 009c3eab1b51..ecdd049f7921 100644
--- a/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch
+++ b/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch
@@ -2,8 +2,8 @@ Source: @pullmoll
 Upstream: no
 Reason: Target architectures with soft float do not define these constants.
 
---- tests/fp/fp-bench.c	2020-12-08 17:59:44.000000000 +0100
-+++ tests/fp/fp-bench.c	2020-12-12 20:38:40.702235420 +0100
+--- a/tests/fp/fp-bench.c	2020-12-08 17:59:44.000000000 +0100
++++ b/tests/fp/fp-bench.c	2020-12-12 20:38:40.702235420 +0100
 @@ -485,16 +485,32 @@
  
      switch (rounding) {
diff --git a/srcpkgs/qemu/patches/mmap-mremap-efault.patch b/srcpkgs/qemu/patches/mmap-mremap-efault.patch
index be58a46df664..5a70e9658b30 100644
--- a/srcpkgs/qemu/patches/mmap-mremap-efault.patch
+++ b/srcpkgs/qemu/patches/mmap-mremap-efault.patch
@@ -8,8 +8,8 @@ Also speed up the loop when checking for increasing the mappings size to go
 in steps of TARGET_PAGE_SIZE and OR-in a check for the very last byte of the range.
 diff --git linux-user/mmap.c linux-user/mmap.c
 index 7e3b245..1e8d0f1 100644
---- linux-user/mmap.c
-+++ linux-user/mmap.c
+--- a/linux-user/mmap.c
++++ b/linux-user/mmap.c
 @@ -738,7 +738,7 @@ abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size,
           !guest_range_valid_untagged(new_addr, new_size)) ||
          ((flags & MREMAP_MAYMOVE) == 0 &&
diff --git a/srcpkgs/qemu/patches/musl-9p-limits_h.patch b/srcpkgs/qemu/patches/musl-9p-limits_h.patch
index fca3207c84a4..ee0f89886352 100644
--- a/srcpkgs/qemu/patches/musl-9p-limits_h.patch
+++ b/srcpkgs/qemu/patches/musl-9p-limits_h.patch
@@ -1,5 +1,5 @@
---- hw/9pfs/9p.c.orig	2016-12-21 15:53:59.997900753 +0100
-+++ hw/9pfs/9p.c	2016-12-21 15:54:03.006935717 +0100
+--- a/hw/9pfs/9p.c.orig	2016-12-21 15:53:59.997900753 +0100
++++ b/hw/9pfs/9p.c	2016-12-21 15:54:03.006935717 +0100
 @@ -11,6 +11,7 @@
   *
   */
diff --git a/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch b/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch
index 1b00c27e70a4..e0b76c4d3c25 100644
--- a/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch
+++ b/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch
@@ -1,5 +1,5 @@
---- linux-user/syscall.c.orig	2017-04-25 23:46:47.896819860 +0200
-+++ linux-user/syscall.c	2017-04-26 08:43:48.821452132 +0200
+--- a/linux-user/syscall.c.orig	2017-04-25 23:46:47.896819860 +0200
++++ b/linux-user/syscall.c	2017-04-26 08:43:48.821452132 +0200
 @@ -34,6 +34,7 @@
  #include <sys/resource.h>
  #include <sys/swap.h>
diff --git a/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch b/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch
index 11497d5fc900..c51fca6cf432 100644
--- a/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch
+++ b/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch
@@ -1,5 +1,5 @@
---- linux-user/syscall.c.orig    2015-04-10 07:10:06.305662505 +0000
-+++ linux-user/syscall.c 2015-04-10 07:36:53.801871968 +0000
+--- a/linux-user/syscall.c.orig    2015-04-10 07:10:06.305662505 +0000
++++ b/linux-user/syscall.c 2015-04-10 07:36:53.801871968 +0000
 @@ -5020,9 +5020,20 @@
      return 0;
  }
diff --git a/srcpkgs/qemu/patches/musl-initialize-msghdr.patch b/srcpkgs/qemu/patches/musl-initialize-msghdr.patch
index c195f0c0b1f4..6d96b3511daf 100644
--- a/srcpkgs/qemu/patches/musl-initialize-msghdr.patch
+++ b/srcpkgs/qemu/patches/musl-initialize-msghdr.patch
@@ -2,8 +2,8 @@ Source: https://github.com/void-linux/void-packages/issues/23557
 
 diff --git linux-user/syscall.c linux-user/syscall.c
 index 945fc25..8d8b68a 100644
---- linux-user/syscall.c
-+++ linux-user/syscall.c
+--- a/linux-user/syscall.c
++++ b/linux-user/syscall.c
 @@ -3071,7 +3071,7 @@ static abi_long do_sendrecvmsg_locked(int fd, struct target_msghdr *msgp,
                                        int flags, int send)
  {
diff --git a/srcpkgs/qemu/patches/musl-ppc.patch b/srcpkgs/qemu/patches/musl-ppc.patch
index 6f066c0b30eb..744efe6a4980 100644
--- a/srcpkgs/qemu/patches/musl-ppc.patch
+++ b/srcpkgs/qemu/patches/musl-ppc.patch
@@ -1,5 +1,5 @@
---- accel/tcg/user-exec.c
-+++ accel/tcg/user-exec.c
+--- a/accel/tcg/user-exec.c
++++ b/accel/tcg/user-exec.c
 @@ -286,6 +286,7 @@ int cpu_signal_handler(int host_signum, void *pinfo,
   */
  #ifdef linux
@@ -44,8 +44,8 @@
  #endif /* linux */
  
  #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
---- linux-user/host/ppc64/hostdep.h
-+++ linux-user/host/ppc64/hostdep.h
+--- a/linux-user/host/ppc64/hostdep.h
++++ b/linux-user/host/ppc64/hostdep.h
 @@ -27,7 +27,11 @@ extern char safe_syscall_end[];
  static inline void rewind_if_in_safe_syscall(void *puc)
  {
@@ -58,8 +58,8 @@
  
      if (*pcreg > (uintptr_t)safe_syscall_start
          && *pcreg < (uintptr_t)safe_syscall_end) {
---- util/mmap-alloc.c
-+++ util/mmap-alloc.c
+--- a/util/mmap-alloc.c
++++ b/util/mmap-alloc.c
 @@ -25,6 +25,10 @@
  
  #ifdef CONFIG_LINUX
diff --git a/srcpkgs/qemu/patches/time64.patch b/srcpkgs/qemu/patches/time64.patch
index 7f74ed356934..28be93004891 100644
--- a/srcpkgs/qemu/patches/time64.patch
+++ b/srcpkgs/qemu/patches/time64.patch
@@ -1,5 +1,5 @@
---- contrib/vhost-user-input/main.c	2020-12-08 17:59:44.000000000 +0100
-+++ contrib/vhost-user-input/main.c	2020-12-12 20:59:04.316996648 +0100
+--- a/contrib/vhost-user-input/main.c	2020-12-08 17:59:44.000000000 +0100
++++ b/contrib/vhost-user-input/main.c	2020-12-12 20:59:04.316996648 +0100
 @@ -114,14 +114,17 @@
  
  static void vi_handle_status(VuInput *vi, virtio_input_event *event)
@@ -19,8 +19,8 @@
      evdev.type = le16toh(event->type);
      evdev.code = le16toh(event->code);
      evdev.value = le32toh(event->value);
---- hw/input/virtio-input-host.c	2020-12-08 17:59:44.000000000 +0100
-+++ hw/input/virtio-input-host.c	2020-12-12 21:33:44.750471890 +0100
+--- a/hw/input/virtio-input-host.c	2020-12-08 17:59:44.000000000 +0100
++++ b/hw/input/virtio-input-host.c	2020-12-12 21:33:44.750471890 +0100
 @@ -192,14 +192,17 @@
                                              virtio_input_event *event)
  {
diff --git a/srcpkgs/qemu/patches/xxx-ppcle.patch b/srcpkgs/qemu/patches/xxx-ppcle.patch
index 99396bff9dd5..c5325c9ca70e 100644
--- a/srcpkgs/qemu/patches/xxx-ppcle.patch
+++ b/srcpkgs/qemu/patches/xxx-ppcle.patch
@@ -14,8 +14,8 @@ Subject: [PATCH] support ppcle architecture
 
 diff --git configure configure
 index 18c26e0..03d3e18 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -653,7 +653,11 @@ elif check_define _ARCH_PPC ; then
        cpu="ppc64"
      fi
@@ -62,7 +62,7 @@ diff --git default-configs/targets/ppcle-linux-user.mak default-configs/targets/
 new file mode 100644
 index 0000000..2259243
 --- /dev/null
-+++ default-configs/targets/ppcle-linux-user.mak
++++ b/default-configs/targets/ppcle-linux-user.mak
 @@ -0,0 +1,4 @@
 +TARGET_ARCH=ppc
 +TARGET_SYSTBL_ABI=common,nospu,32
@@ -70,8 +70,8 @@ index 0000000..2259243
 +TARGET_XML_FILES= gdb-xml/power-core.xml gdb-xml/power-fpu.xml gdb-xml/power-altivec.xml gdb-xml/power-spe.xml
 diff --git linux-user/ppc/target_syscall.h linux-user/ppc/target_syscall.h
 index b9c4b81..cf26497 100644
---- linux-user/ppc/target_syscall.h
-+++ linux-user/ppc/target_syscall.h
+--- a/linux-user/ppc/target_syscall.h
++++ b/linux-user/ppc/target_syscall.h
 @@ -65,7 +65,11 @@ struct target_revectored_struct {
  #define UNAME_MACHINE "ppc64le"
  #endif
@@ -86,8 +86,8 @@ index b9c4b81..cf26497 100644
  
 diff --git scripts/qemu-binfmt-conf.sh scripts/qemu-binfmt-conf.sh
 index 9f1580a..393943f 100755
---- scripts/qemu-binfmt-conf.sh
-+++ scripts/qemu-binfmt-conf.sh
+--- a/scripts/qemu-binfmt-conf.sh
++++ b/scripts/qemu-binfmt-conf.sh
 @@ -46,6 +46,10 @@ ppc_magic='\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x
  ppc_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff'
  ppc_family=ppc
@@ -110,8 +110,8 @@ index 9f1580a..393943f 100755
      arm|armel|armhf|arm64|armv[4-9]*l|aarch64)
 diff --git tests/tcg/configure.sh tests/tcg/configure.sh
 index e1b70e2..e07f5fe 100755
---- tests/tcg/configure.sh
-+++ tests/tcg/configure.sh
+--- a/tests/tcg/configure.sh
++++ b/tests/tcg/configure.sh
 @@ -59,6 +59,8 @@ fi
  : $(cross_cc_mips="mips-linux-gnu-gcc")
  : ${cross_cc_ppc="powerpc-linux-gnu-gcc"}
diff --git a/srcpkgs/qemu/template b/srcpkgs/qemu/template
index 0fadb41f609c..0a08ed821536 100644
--- a/srcpkgs/qemu/template
+++ b/srcpkgs/qemu/template
@@ -30,6 +30,7 @@ nostrip_files="hppa-firmware.img openbios-ppc openbios-sparc32 openbios-sparc64
  opensbi-riscv64-generic-fw_dynamic.elf"
 # FIXME
 make_check=extended
+patch_args=-Np1
 
 build_options="gtk3 opengl sdl2 spice virgl smartcard numa iscsi"
 build_options_default="opengl gtk3 virgl sdl2 numa iscsi"
diff --git a/srcpkgs/util-linux/patches/fix-musl.patch b/srcpkgs/util-linux/patches/fix-musl.patch
index e426672183d1..8d1eeb9d2740 100644
--- a/srcpkgs/util-linux/patches/fix-musl.patch
+++ b/srcpkgs/util-linux/patches/fix-musl.patch
@@ -1,7 +1,7 @@
 Define __SWORD_TYPE for musl.
 
---- sys-utils/switch_root.c.orig	2014-09-20 21:33:27.551345526 +0200
-+++ sys-utils/switch_root.c	2014-09-20 21:34:17.958584374 +0200
+--- a/sys-utils/switch_root.c.orig	2014-09-20 21:33:27.551345526 +0200
++++ b/sys-utils/switch_root.c	2014-09-20 21:34:17.958584374 +0200
 @@ -47,6 +47,15 @@
  #define MNT_DETACH       0x00000002	/* Just detach from the tree */
  #endif
diff --git a/srcpkgs/util-linux/template b/srcpkgs/util-linux/template
index 4fb8292531ba..fbd3f00e6f80 100644
--- a/srcpkgs/util-linux/template
+++ b/srcpkgs/util-linux/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/utils/util-linux/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/v${version%.${version#*.*.}}/${pkgname}-${version}.tar.xz"
 checksum=f7516ba9d8689343594356f0e5e1a5f0da34adfbc89023437735872bb5024c5f
+patch_args=-Np1
 
 # Create uuidd system account for uuidd.
 system_accounts="_uuidd"
diff --git a/srcpkgs/xbps/patches/cflags.patch b/srcpkgs/xbps/patches/cflags.patch
index 8e576f2a887d..bf95fea3bebe 100644
--- a/srcpkgs/xbps/patches/cflags.patch
+++ b/srcpkgs/xbps/patches/cflags.patch
@@ -4,8 +4,8 @@ when using strong stack protector)
 
 diff --git lib/Makefile lib/Makefile
 index 65342ef..847bfdd 100644
---- lib/Makefile
-+++ lib/Makefile
+--- a/lib/Makefile
++++ b/lib/Makefile
 @@ -78,7 +78,7 @@ $(OBJS): %.o: %.c
  
  libxbps.so: $(LIBFETCH_OBJS) $(LIBPROP_OBJS) $(OBJS)
diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template
index 8f986d22f9f3..c6af59bd635a 100644
--- a/srcpkgs/xbps/template
+++ b/srcpkgs/xbps/template
@@ -11,6 +11,7 @@ homepage="https://github.com/void-linux/xbps"
 changelog="https://github.com/void-linux/xbps/blob/master/NEWS"
 distfiles="https://github.com/void-linux/xbps/archive/${version}.tar.gz"
 checksum=0cbd8d5f23a62047c75974bca21da9f004a94efffd7f37c68562a8dbc869fb2a
+patch_args=-Np1
 
 hostmakedepends="pkgconf"
 checkdepends="kyua"

From 1dad7a5b2a3483159bf2e1ad4e360dc0abcd77f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:28:34 +0700
Subject: [PATCH 3/9] srcpkgs: add patch_args=-Np0 en-mass

Generated with:

	git ls-files 'srcpkgs/**/patches/*' |
	cut -d/ -f2 | uniq |
	xargs printf 'srcpkgs/%s/template\n'  |
	xargs grep -L 'patch_args=' |
	xargs sed -i "$(printf '1,/^$/{/^$/i\\\npatch_args=-Np0\n}\n')"
---
 srcpkgs/0ad/template                                 | 1 +
 srcpkgs/66-tools/template                            | 1 +
 srcpkgs/7kaa/template                                | 1 +
 srcpkgs/9base/template                               | 1 +
 srcpkgs/9mount/template                              | 1 +
 srcpkgs/Aegisub/template                             | 1 +
 srcpkgs/Brainfunk/template                           | 1 +
 srcpkgs/CPU-X/template                               | 1 +
 srcpkgs/Carla/template                               | 1 +
 srcpkgs/Cataclysm-DDA/template                       | 1 +
 srcpkgs/Chipmunk2D/template                          | 1 +
 srcpkgs/Clight/template                              | 1 +
 srcpkgs/Clp/template                                 | 1 +
 srcpkgs/CoinMP/template                              | 1 +
 srcpkgs/CubicSDR/template                            | 1 +
 srcpkgs/DarkRadiant/template                         | 1 +
 srcpkgs/Fritzing/template                            | 1 +
 srcpkgs/GConf/template                               | 1 +
 srcpkgs/Gauche/template                              | 1 +
 srcpkgs/GraphicsMagick/template                      | 1 +
 srcpkgs/Haru/template                                | 1 +
 srcpkgs/LibreCAD/template                            | 1 +
 srcpkgs/LuaJIT/template                              | 1 +
 srcpkgs/MEGAcmd/template                             | 1 +
 srcpkgs/Maelstrom/template                           | 1 +
 srcpkgs/MonkeysAudio/template                        | 1 +
 srcpkgs/ORBit2/template                              | 1 +
 srcpkgs/OpenCPN/template                             | 1 +
 srcpkgs/OpenXcom/template                            | 1 +
 srcpkgs/PAmix/template                               | 1 +
 srcpkgs/PrusaSlicer/template                         | 1 +
 srcpkgs/QLC+/template                                | 1 +
 srcpkgs/SDL/template                                 | 1 +
 srcpkgs/SDL2/template                                | 1 +
 srcpkgs/SLADE/template                               | 1 +
 srcpkgs/SMC/template                                 | 1 +
 srcpkgs/Signal-Desktop/template                      | 1 +
 srcpkgs/TSC/template                                 | 1 +
 srcpkgs/VeraCrypt/template                           | 1 +
 srcpkgs/XyGrib/template                              | 1 +
 srcpkgs/ZMusic/template                              | 1 +
 srcpkgs/a2ps/template                                | 1 +
 srcpkgs/abduco/template                              | 1 +
 srcpkgs/abook/template                               | 1 +
 srcpkgs/accountsservice/template                     | 1 +
 srcpkgs/acct/template                                | 1 +
 srcpkgs/acpi_call-dkms/template                      | 1 +
 srcpkgs/acpid/template                               | 1 +
 srcpkgs/actiona/template                             | 1 +
 srcpkgs/afterstep/template                           | 1 +
 srcpkgs/agg/template                                 | 1 +
 srcpkgs/allegro4/template                            | 1 +
 srcpkgs/allegro5/template                            | 1 +
 srcpkgs/alsa-firmware/template                       | 1 +
 srcpkgs/alsa-tools/template                          | 1 +
 srcpkgs/amdvlk/template                              | 1 +
 srcpkgs/angrysearch/template                         | 1 +
 srcpkgs/anjuta/template                              | 1 +
 srcpkgs/anki/template                                | 1 +
 srcpkgs/antimicrox/template                          | 1 +
 srcpkgs/antiword/template                            | 1 +
 srcpkgs/apache/template                              | 1 +
 srcpkgs/apl/template                                 | 1 +
 srcpkgs/appstream-glib/template                      | 1 +
 srcpkgs/apr/template                                 | 1 +
 srcpkgs/aqbanking/template                           | 1 +
 srcpkgs/aqemu/template                               | 1 +
 srcpkgs/ardour/template                              | 1 +
 srcpkgs/arduino/template                             | 1 +
 srcpkgs/argon2/template                              | 1 +
 srcpkgs/argyllcms/template                           | 1 +
 srcpkgs/ark/template                                 | 1 +
 srcpkgs/armadillo/template                           | 1 +
 srcpkgs/artyfx/template                              | 1 +
 srcpkgs/asignify/template                            | 1 +
 srcpkgs/assimp/template                              | 1 +
 srcpkgs/astroid/template                             | 1 +
 srcpkgs/astyle/template                              | 1 +
 srcpkgs/at/template                                  | 1 +
 srcpkgs/aterm/template                               | 1 +
 srcpkgs/atomicparsley/template                       | 1 +
 srcpkgs/atop/template                                | 1 +
 srcpkgs/attic/template                               | 1 +
 srcpkgs/attract/template                             | 1 +
 srcpkgs/aubio/template                               | 1 +
 srcpkgs/audacity/template                            | 1 +
 srcpkgs/audiofile/template                           | 1 +
 srcpkgs/autoconf/template                            | 1 +
 srcpkgs/autoconf213/template                         | 1 +
 srcpkgs/autofs/template                              | 1 +
 srcpkgs/autogen/template                             | 1 +
 srcpkgs/avidemux/template                            | 1 +
 srcpkgs/avr-binutils/template                        | 1 +
 srcpkgs/bacula-common/template                       | 1 +
 srcpkgs/bananapi-uboot/template                      | 1 +
 srcpkgs/basu/template                                | 1 +
 srcpkgs/batman-adv14/template                        | 1 +
 srcpkgs/bbkeys/template                              | 1 +
 srcpkgs/bbswitch/template                            | 1 +
 srcpkgs/bc/template                                  | 1 +
 srcpkgs/bcc/template                                 | 1 +
 srcpkgs/bctoolbox/template                           | 1 +
 srcpkgs/beep/template                                | 1 +
 srcpkgs/beets/template                               | 1 +
 srcpkgs/beignet/template                             | 1 +
 srcpkgs/belle-sip/template                           | 1 +
 srcpkgs/berkeley-abc/template                        | 1 +
 srcpkgs/berry/template                               | 1 +
 srcpkgs/biew/template                                | 1 +
 srcpkgs/bin86/template                               | 1 +
 srcpkgs/binwalk/template                             | 1 +
 srcpkgs/bird/template                                | 1 +
 srcpkgs/bish/template                                | 1 +
 srcpkgs/bitchx/template                              | 1 +
 srcpkgs/bitfighter/template                          | 1 +
 srcpkgs/blackboxwm/template                          | 1 +
 srcpkgs/bmon/template                                | 1 +
 srcpkgs/boinc/template                               | 1 +
 srcpkgs/bomi/template                                | 1 +
 srcpkgs/bonnie++/template                            | 1 +
 srcpkgs/boomerang/template                           | 1 +
 srcpkgs/boost/template                               | 1 +
 srcpkgs/bootchart2/template                          | 1 +
 srcpkgs/botan/template                               | 1 +
 srcpkgs/bridge-utils/template                        | 1 +
 srcpkgs/brltty/template                              | 1 +
 srcpkgs/broadcom-wl-dkms/template                    | 1 +
 srcpkgs/browsh/template                              | 1 +
 srcpkgs/bsdiff/template                              | 1 +
 srcpkgs/bsdunzip/template                            | 1 +
 srcpkgs/bubblewrap/template                          | 1 +
 srcpkgs/buffer/template                              | 1 +
 srcpkgs/buildbot/template                            | 1 +
 srcpkgs/buku/template                                | 1 +
 srcpkgs/bullet/template                              | 1 +
 srcpkgs/bumblebee/template                           | 1 +
 srcpkgs/bup/template                                 | 1 +
 srcpkgs/burp2-server/template                        | 1 +
 srcpkgs/busybox/template                             | 1 +
 srcpkgs/bzip2/template                               | 1 +
 srcpkgs/c-blosc/template                             | 1 +
 srcpkgs/c-client/template                            | 1 +
 srcpkgs/ca-certificates/template                     | 1 +
 srcpkgs/cabal-install/template                       | 1 +
 srcpkgs/cackey/template                              | 1 +
 srcpkgs/cadence/template                             | 1 +
 srcpkgs/calc/template                                | 1 +
 srcpkgs/caps/template                                | 1 +
 srcpkgs/cargo/template                               | 1 +
 srcpkgs/catch2/template                              | 1 +
 srcpkgs/catdoc/template                              | 1 +
 srcpkgs/cbang/template                               | 1 +
 srcpkgs/ccextractor/template                         | 1 +
 srcpkgs/ccl/template                                 | 1 +
 srcpkgs/cclive/template                              | 1 +
 srcpkgs/ccsm/template                                | 1 +
 srcpkgs/cdb/template                                 | 1 +
 srcpkgs/cdecl/template                               | 1 +
 srcpkgs/cdm/template                                 | 1 +
 srcpkgs/cdparanoia/template                          | 1 +
 srcpkgs/cegui/template                               | 1 +
 srcpkgs/cegui07/template                             | 1 +
 srcpkgs/celestia-glut/template                       | 1 +
 srcpkgs/celestia-gtk/template                        | 1 +
 srcpkgs/chafa/template                               | 1 +
 srcpkgs/chatterino2/template                         | 1 +
 srcpkgs/chatty/template                              | 1 +
 srcpkgs/chkrootkit/template                          | 1 +
 srcpkgs/chmlib/template                              | 1 +
 srcpkgs/choosenim/template                           | 1 +
 srcpkgs/choqok/template                              | 1 +
 srcpkgs/chromium/template                            | 1 +
 srcpkgs/ck/template                                  | 1 +
 srcpkgs/ckmame/template                              | 1 +
 srcpkgs/clementine/template                          | 1 +
 srcpkgs/cli-visualizer/template                      | 1 +
 srcpkgs/clib/template                                | 1 +
 srcpkgs/clisp/template                               | 1 +
 srcpkgs/cln/template                                 | 1 +
 srcpkgs/clog/template                                | 1 +
 srcpkgs/cloog/template                               | 1 +
 srcpkgs/clucene/template                             | 1 +
 srcpkgs/clutter/template                             | 1 +
 srcpkgs/cmocka/template                              | 1 +
 srcpkgs/cmus/template                                | 1 +
 srcpkgs/codeblocks/template                          | 1 +
 srcpkgs/codecrypt/template                           | 1 +
 srcpkgs/codelite/template                            | 1 +
 srcpkgs/coin3/template                               | 1 +
 srcpkgs/collectd/template                            | 1 +
 srcpkgs/colord/template                              | 1 +
 srcpkgs/commoncpp2/template                          | 1 +
 srcpkgs/connman-ncurses/template                     | 1 +
 srcpkgs/containers.image/template                    | 1 +
 srcpkgs/coreboot-utils/template                      | 1 +
 srcpkgs/coreutils/template                           | 1 +
 srcpkgs/coturn/template                              | 1 +
 srcpkgs/cpuburn/template                             | 1 +
 srcpkgs/cpulimit/template                            | 1 +
 srcpkgs/criu/template                                | 1 +
 srcpkgs/crossguid/template                           | 1 +
 srcpkgs/crypto++/template                            | 1 +
 srcpkgs/csound/template                              | 1 +
 srcpkgs/csync2/template                              | 1 +
 srcpkgs/ctags/template                               | 1 +
 srcpkgs/cubieboard2-uboot/template                   | 1 +
 srcpkgs/cuetools/template                            | 1 +
 srcpkgs/cups-pdf/template                            | 1 +
 srcpkgs/cups/template                                | 1 +
 srcpkgs/cura-engine/template                         | 1 +
 srcpkgs/cutemarked/template                          | 1 +
 srcpkgs/cvsps2/template                              | 1 +
 srcpkgs/daemontools/template                         | 1 +
 srcpkgs/dante/template                               | 1 +
 srcpkgs/dar/template                                 | 1 +
 srcpkgs/darkplaces/template                          | 1 +
 srcpkgs/darktable/template                           | 1 +
 srcpkgs/dash/template                                | 1 +
 srcpkgs/davfs2/template                              | 1 +
 srcpkgs/db/template                                  | 1 +
 srcpkgs/dbus-glib/template                           | 1 +
 srcpkgs/dcraw/template                               | 1 +
 srcpkgs/dcron/template                               | 1 +
 srcpkgs/deadbeef-fb/template                         | 1 +
 srcpkgs/deadbeef/template                            | 1 +
 srcpkgs/debug-me/template                            | 1 +
 srcpkgs/desmume/template                             | 1 +
 srcpkgs/devil/template                               | 1 +
 srcpkgs/dhcp/template                                | 1 +
 srcpkgs/dhcpcd/template                              | 1 +
 srcpkgs/dia/template                                 | 1 +
 srcpkgs/diod/template                                | 1 +
 srcpkgs/discord-ptb/template                         | 1 +
 srcpkgs/discord/template                             | 1 +
 srcpkgs/discount/template                            | 1 +
 srcpkgs/dispcalGUI/template                          | 1 +
 srcpkgs/djview/template                              | 1 +
 srcpkgs/dma/template                                 | 1 +
 srcpkgs/dmd-bootstrap/template                       | 1 +
 srcpkgs/dmd2.081/template                            | 1 +
 srcpkgs/dmd2.091/template                            | 1 +
 srcpkgs/dmraid/template                              | 1 +
 srcpkgs/dmtx-utils/template                          | 1 +
 srcpkgs/docbook-xsl-ns/template                      | 1 +
 srcpkgs/docbook-xsl/template                         | 1 +
 srcpkgs/dolphin-emu/template                         | 1 +
 srcpkgs/dovecot/template                             | 1 +
 srcpkgs/doxygen/template                             | 1 +
 srcpkgs/dpdk/template                                | 1 +
 srcpkgs/dracut-crypt-ssh/template                    | 1 +
 srcpkgs/dracut/template                              | 1 +
 srcpkgs/drawterm/template                            | 1 +
 srcpkgs/drbd-utils/template                          | 1 +
 srcpkgs/dstat/template                               | 1 +
 srcpkgs/dua-cli/template                             | 1 +
 srcpkgs/dumpet/template                              | 1 +
 srcpkgs/dunelegacy/template                          | 1 +
 srcpkgs/duplicity/template                           | 1 +
 srcpkgs/dust3d/template                              | 1 +
 srcpkgs/dvd+rw-tools/template                        | 1 +
 srcpkgs/dvdauthor/template                           | 1 +
 srcpkgs/e2fsprogs/template                           | 1 +
 srcpkgs/eb/template                                  | 1 +
 srcpkgs/eboard/template                              | 1 +
 srcpkgs/ecl/template                                 | 1 +
 srcpkgs/ecryptfs-utils/template                      | 1 +
 srcpkgs/efibootmgr/template                          | 1 +
 srcpkgs/efl/template                                 | 1 +
 srcpkgs/electron10/template                          | 1 +
 srcpkgs/electron12/template                          | 1 +
 srcpkgs/elogind/template                             | 1 +
 srcpkgs/emerald/template                             | 1 +
 srcpkgs/endless-sky-gl21/template                    | 1 +
 srcpkgs/engrampa/template                            | 1 +
 srcpkgs/enigma/template                              | 1 +
 srcpkgs/enlightenment/template                       | 1 +
 srcpkgs/entr/template                                | 1 +
 srcpkgs/enyo-doom/template                           | 1 +
 srcpkgs/epdfview/template                            | 1 +
 srcpkgs/espeakup/template                            | 1 +
 srcpkgs/eukleides/template                           | 1 +
 srcpkgs/evemu/template                               | 1 +
 srcpkgs/evolution-data-server/template               | 1 +
 srcpkgs/evolution/template                           | 1 +
 srcpkgs/evtest/template                              | 1 +
 srcpkgs/ex-vi/template                               | 1 +
 srcpkgs/exfat-dkms/template                          | 1 +
 srcpkgs/exo/template                                 | 1 +
 srcpkgs/expect/template                              | 1 +
 srcpkgs/extra-cmake-modules/template                 | 1 +
 srcpkgs/faad2/template                               | 1 +
 srcpkgs/fake-hwclock/template                        | 1 +
 srcpkgs/fakeroot/template                            | 1 +
 srcpkgs/falkon/template                              | 1 +
 srcpkgs/farstream/template                           | 1 +
 srcpkgs/fastd/template                               | 1 +
 srcpkgs/faust/template                               | 1 +
 srcpkgs/fbida/template                               | 1 +
 srcpkgs/fbreader/template                            | 1 +
 srcpkgs/fbterm/template                              | 1 +
 srcpkgs/fbv/template                                 | 1 +
 srcpkgs/fbxkb/template                               | 1 +
 srcpkgs/fcitx-anthy/template                         | 1 +
 srcpkgs/fcitx/template                               | 1 +
 srcpkgs/fcron/template                               | 1 +
 srcpkgs/ferm/template                                | 1 +
 srcpkgs/ffmpeg/template                              | 1 +
 srcpkgs/fig2dev/template                             | 1 +
 srcpkgs/filezilla/template                           | 1 +
 srcpkgs/fingerprint-gui/template                     | 1 +
 srcpkgs/firefox-esr/template                         | 1 +
 srcpkgs/firefox/template                             | 1 +
 srcpkgs/firejail/template                            | 1 +
 srcpkgs/flatpak-builder/template                     | 1 +
 srcpkgs/flatpak/template                             | 1 +
 srcpkgs/flex/template                                | 1 +
 srcpkgs/flightgear/template                          | 1 +
 srcpkgs/flowcanvas/template                          | 1 +
 srcpkgs/foobillard++/template                        | 1 +
 srcpkgs/foomatic-db-engine/template                  | 1 +
 srcpkgs/foremost/template                            | 1 +
 srcpkgs/fossil/template                              | 1 +
 srcpkgs/fotoxx/template                              | 1 +
 srcpkgs/fpc/template                                 | 1 +
 srcpkgs/fprint_demo/template                         | 1 +
 srcpkgs/frame/template                               | 1 +
 srcpkgs/freecad/template                             | 1 +
 srcpkgs/freeciv/template                             | 1 +
 srcpkgs/freedroidClassic/template                    | 1 +
 srcpkgs/freeimage/template                           | 1 +
 srcpkgs/freeipmi/template                            | 1 +
 srcpkgs/freeorion/template                           | 1 +
 srcpkgs/freeplane/template                           | 1 +
 srcpkgs/freetds/template                             | 1 +
 srcpkgs/freetype/template                            | 1 +
 srcpkgs/freshplayerplugin/template                   | 1 +
 srcpkgs/fs-utils/template                            | 1 +
 srcpkgs/fuse/template                                | 1 +
 srcpkgs/gamin/template                               | 1 +
 srcpkgs/gammu/template                               | 1 +
 srcpkgs/gatling/template                             | 1 +
 srcpkgs/gavl/template                                | 1 +
 srcpkgs/gbdfed/template                              | 1 +
 srcpkgs/gcc-multilib/template                        | 1 +
 srcpkgs/gcc/template                                 | 1 +
 srcpkgs/gcolor2/template                             | 1 +
 srcpkgs/gdm/template                                 | 1 +
 srcpkgs/gdmap/template                               | 1 +
 srcpkgs/geary/template                               | 1 +
 srcpkgs/geda/template                                | 1 +
 srcpkgs/geis/template                                | 1 +
 srcpkgs/geos/template                                | 1 +
 srcpkgs/gfm/template                                 | 1 +
 srcpkgs/giac/template                                | 1 +
 srcpkgs/giflib/template                              | 1 +
 srcpkgs/giggle/template                              | 1 +
 srcpkgs/gimp/template                                | 1 +
 srcpkgs/git-annex/template                           | 1 +
 srcpkgs/gitea/template                               | 1 +
 srcpkgs/gitg/template                                | 1 +
 srcpkgs/gkrellm/template                             | 1 +
 srcpkgs/glances/template                             | 1 +
 srcpkgs/glib/template                                | 1 +
 srcpkgs/gloox/template                               | 1 +
 srcpkgs/glusterfs/template                           | 1 +
 srcpkgs/glyr/template                                | 1 +
 srcpkgs/gmrun/template                               | 1 +
 srcpkgs/gnome-authenticator/template                 | 1 +
 srcpkgs/gnome-desktop/template                       | 1 +
 srcpkgs/gnome-keyring/template                       | 1 +
 srcpkgs/gnome-latex/template                         | 1 +
 srcpkgs/gnome-photos/template                        | 1 +
 srcpkgs/gnome-screensaver/template                   | 1 +
 srcpkgs/gnome-session/template                       | 1 +
 srcpkgs/gnome-settings-daemon/template               | 1 +
 srcpkgs/gnome-terminal/template                      | 1 +
 srcpkgs/gnu-efi-libs/template                        | 1 +
 srcpkgs/gnucash/template                             | 1 +
 srcpkgs/gnupg2/template                              | 1 +
 srcpkgs/gnuradio-nrsc5/template                      | 1 +
 srcpkgs/gnustep-base/template                        | 1 +
 srcpkgs/gnustep-make/template                        | 1 +
 srcpkgs/gnutls/template                              | 1 +
 srcpkgs/goaccess/template                            | 1 +
 srcpkgs/godot/template                               | 1 +
 srcpkgs/gogglesmm/template                           | 1 +
 srcpkgs/goldendict/template                          | 1 +
 srcpkgs/gosu/template                                | 1 +
 srcpkgs/goxel/template                               | 1 +
 srcpkgs/gpart/template                               | 1 +
 srcpkgs/gperftools/template                          | 1 +
 srcpkgs/gpgme/template                               | 1 +
 srcpkgs/gpick/template                               | 1 +
 srcpkgs/gpm/template                                 | 1 +
 srcpkgs/gpsbabel/template                            | 1 +
 srcpkgs/gpsd/template                                | 1 +
 srcpkgs/grpc/template                                | 1 +
 srcpkgs/grub-customizer/template                     | 1 +
 srcpkgs/gscan2pdf/template                           | 1 +
 srcpkgs/gscope3/template                             | 1 +
 srcpkgs/gsl/template                                 | 1 +
 srcpkgs/gsoap/template                               | 1 +
 srcpkgs/gst-plugins-bad1/template                    | 1 +
 srcpkgs/gst-plugins-base1/template                   | 1 +
 srcpkgs/gst123/template                              | 1 +
 srcpkgs/gstreamermm/template                         | 1 +
 srcpkgs/gthumb/template                              | 1 +
 srcpkgs/gtk-sharp/template                           | 1 +
 srcpkgs/gtk-sharp2/template                          | 1 +
 srcpkgs/gtk-theme-config/template                    | 1 +
 srcpkgs/gtkglext/template                            | 1 +
 srcpkgs/gtkpod/template                              | 1 +
 srcpkgs/gtkspell/template                            | 1 +
 srcpkgs/gtypist/template                             | 1 +
 srcpkgs/guake/template                               | 1 +
 srcpkgs/guile/template                               | 1 +
 srcpkgs/guile1.8/template                            | 1 +
 srcpkgs/guitarix2/template                           | 1 +
 srcpkgs/gummiboot/template                           | 1 +
 srcpkgs/gupnp-igd/template                           | 1 +
 srcpkgs/guvcview/template                            | 1 +
 srcpkgs/gwenhywfar/template                          | 1 +
 srcpkgs/gxemul/template                              | 1 +
 srcpkgs/gzdoom/template                              | 1 +
 srcpkgs/h2o/template                                 | 1 +
 srcpkgs/halibut/template                             | 1 +
 srcpkgs/hamlib/template                              | 1 +
 srcpkgs/handbrake/template                           | 1 +
 srcpkgs/hardinfo/template                            | 1 +
 srcpkgs/heaptrack/template                           | 1 +
 srcpkgs/hedgewars/template                           | 1 +
 srcpkgs/hexchat/template                             | 1 +
 srcpkgs/hexer/template                               | 1 +
 srcpkgs/heyu/template                                | 1 +
 srcpkgs/hfsprogs/template                            | 1 +
 srcpkgs/higan/template                               | 1 +
 srcpkgs/hiredis/template                             | 1 +
 srcpkgs/hitch/template                               | 1 +
 srcpkgs/hlint/template                               | 1 +
 srcpkgs/hosts-update/template                        | 1 +
 srcpkgs/hplip/template                               | 1 +
 srcpkgs/hstr/template                                | 1 +
 srcpkgs/ht/template                                  | 1 +
 srcpkgs/http-parser/template                         | 1 +
 srcpkgs/httpdirfs/template                           | 1 +
 srcpkgs/hugin/template                               | 1 +
 srcpkgs/hunspell/template                            | 1 +
 srcpkgs/i3status/template                            | 1 +
 srcpkgs/ibus-anthy/template                          | 1 +
 srcpkgs/ibus-avro/template                           | 1 +
 srcpkgs/id3lib/template                              | 1 +
 srcpkgs/ifupdown/template                            | 1 +
 srcpkgs/igt-gpu-tools/template                       | 1 +
 srcpkgs/ilmbase/template                             | 1 +
 srcpkgs/imagescan/template                           | 1 +
 srcpkgs/imgbrd-grabber/template                      | 1 +
 srcpkgs/imwheel/template                             | 1 +
 srcpkgs/indent/template                              | 1 +
 srcpkgs/injeqt/template                              | 1 +
 srcpkgs/input-utils/template                         | 1 +
 srcpkgs/inspectrum/template                          | 1 +
 srcpkgs/invada-studio-plugins-lv2/template           | 1 +
 srcpkgs/io.elementary.calendar/template              | 1 +
 srcpkgs/io.elementary.code/template                  | 1 +
 srcpkgs/io.elementary.music/template                 | 1 +
 srcpkgs/iotop/template                               | 1 +
 srcpkgs/iouyap/template                              | 1 +
 srcpkgs/ipmitool/template                            | 1 +
 srcpkgs/ipp-usb/template                             | 1 +
 srcpkgs/ippusbxd/template                            | 1 +
 srcpkgs/iptables/template                            | 1 +
 srcpkgs/iscan/template                               | 1 +
 srcpkgs/iucode-tool/template                         | 1 +
 srcpkgs/iverilog/template                            | 1 +
 srcpkgs/iwd/template                                 | 1 +
 srcpkgs/j/template                                   | 1 +
 srcpkgs/jack/template                                | 1 +
 srcpkgs/janet/template                               | 1 +
 srcpkgs/jbig2dec/template                            | 1 +
 srcpkgs/jedit/template                               | 1 +
 srcpkgs/jfsutils/template                            | 1 +
 srcpkgs/jsonnet/template                             | 1 +
 srcpkgs/jwm/template                                 | 1 +
 srcpkgs/jxrlib/template                              | 1 +
 srcpkgs/kanshi/template                              | 1 +
 srcpkgs/katarakt/template                            | 1 +
 srcpkgs/kauth/template                               | 1 +
 srcpkgs/kbd/template                                 | 1 +
 srcpkgs/kcgi/template                                | 1 +
 srcpkgs/kconfig/template                             | 1 +
 srcpkgs/kcoreaddons/template                         | 1 +
 srcpkgs/kdb/template                                 | 1 +
 srcpkgs/kdelibs4support/template                     | 1 +
 srcpkgs/kdesignerplugin/template                     | 1 +
 srcpkgs/kdevelop-python/template                     | 1 +
 srcpkgs/kdevelop/template                            | 1 +
 srcpkgs/kdoctools/template                           | 1 +
 srcpkgs/kea/template                                 | 1 +
 srcpkgs/kernel-libc-headers/template                 | 1 +
 srcpkgs/kexec-tools/template                         | 1 +
 srcpkgs/kexi/template                                | 1 +
 srcpkgs/keyutils/template                            | 1 +
 srcpkgs/kicad/template                               | 1 +
 srcpkgs/kid3/template                                | 1 +
 srcpkgs/kinit/template                               | 1 +
 srcpkgs/kio/template                                 | 1 +
 srcpkgs/kmod/template                                | 1 +
 srcpkgs/kmscon/template                              | 1 +
 srcpkgs/kobodeluxe/template                          | 1 +
 srcpkgs/kodi-addon-inputstream-adaptive/template     | 1 +
 srcpkgs/kore/template                                | 1 +
 srcpkgs/krita/template                               | 1 +
 srcpkgs/kscreenlocker/template                       | 1 +
 srcpkgs/kvirc/template                               | 1 +
 srcpkgs/kwallet-cli/template                         | 1 +
 srcpkgs/ladish/template                              | 1 +
 srcpkgs/laditools/template                           | 1 +
 srcpkgs/ladspa-sdk/template                          | 1 +
 srcpkgs/lapack/template                              | 1 +
 srcpkgs/latencytop/template                          | 1 +
 srcpkgs/ldapvi/template                              | 1 +
 srcpkgs/ldb/template                                 | 1 +
 srcpkgs/ledger/template                              | 1 +
 srcpkgs/lfe/template                                 | 1 +
 srcpkgs/liba52/template                              | 1 +
 srcpkgs/libabigail/template                          | 1 +
 srcpkgs/libabw/template                              | 1 +
 srcpkgs/libaccounts-qt5/template                     | 1 +
 srcpkgs/libarchive/template                          | 1 +
 srcpkgs/libatasmart/template                         | 1 +
 srcpkgs/libax25/template                             | 1 +
 srcpkgs/libbsd/template                              | 1 +
 srcpkgs/libcanberra/template                         | 1 +
 srcpkgs/libcap-ng/template                           | 1 +
 srcpkgs/libcap/template                              | 1 +
 srcpkgs/libcec/template                              | 1 +
 srcpkgs/libcgroup/template                           | 1 +
 srcpkgs/libcmis/template                             | 1 +
 srcpkgs/libcprops/template                           | 1 +
 srcpkgs/libdaemon/template                           | 1 +
 srcpkgs/libdbus-c++/template                         | 1 +
 srcpkgs/libdill/template                             | 1 +
 srcpkgs/libdrm/template                              | 1 +
 srcpkgs/libesmtp/template                            | 1 +
 srcpkgs/libetpan/template                            | 1 +
 srcpkgs/libevdevPlus/template                        | 1 +
 srcpkgs/libexecinfo/template                         | 1 +
 srcpkgs/libfetch/template                            | 1 +
 srcpkgs/libffado/template                            | 1 +
 srcpkgs/libffi/template                              | 1 +
 srcpkgs/libfprint/template                           | 1 +
 srcpkgs/libfprint0/template                          | 1 +
 srcpkgs/libfreehand/template                         | 1 +
 srcpkgs/libgadu/template                             | 1 +
 srcpkgs/libgdal/template                             | 1 +
 srcpkgs/libgfshare/template                          | 1 +
 srcpkgs/libgit2-glib/template                        | 1 +
 srcpkgs/libglade/template                            | 1 +
 srcpkgs/libglvnd/template                            | 1 +
 srcpkgs/libgme/template                              | 1 +
 srcpkgs/libgpod/template                             | 1 +
 srcpkgs/libgsm/template                              | 1 +
 srcpkgs/libguestfs/template                          | 1 +
 srcpkgs/libieee1284/template                         | 1 +
 srcpkgs/libimobiledevice/template                    | 1 +
 srcpkgs/libindicator/template                        | 1 +
 srcpkgs/libiodbc/template                            | 1 +
 srcpkgs/libixion/template                            | 1 +
 srcpkgs/libmad/template                              | 1 +
 srcpkgs/libmemcached/template                        | 1 +
 srcpkgs/libmill/template                             | 1 +
 srcpkgs/libmilter/template                           | 1 +
 srcpkgs/libmirage/template                           | 1 +
 srcpkgs/libmowgli/template                           | 1 +
 srcpkgs/libmp4v2/template                            | 1 +
 srcpkgs/libmpd/template                              | 1 +
 srcpkgs/libmspub/template                            | 1 +
 srcpkgs/libmygpo-qt/template                         | 1 +
 srcpkgs/libmygui/template                            | 1 +
 srcpkgs/libnet/template                              | 1 +
 srcpkgs/libnetfilter_log/template                    | 1 +
 srcpkgs/libnfc/template                              | 1 +
 srcpkgs/libnfs/template                              | 1 +
 srcpkgs/libnih/template                              | 1 +
 srcpkgs/libnl/template                               | 1 +
 srcpkgs/libogre/template                             | 1 +
 srcpkgs/libomxil-bellagio/template                   | 1 +
 srcpkgs/libopenglrecorder/template                   | 1 +
 srcpkgs/libopenshot-audio/template                   | 1 +
 srcpkgs/libosinfo/template                           | 1 +
 srcpkgs/libostree/template                           | 1 +
 srcpkgs/libowfat/template                            | 1 +
 srcpkgs/libportal/template                           | 1 +
 srcpkgs/libproxy/template                            | 1 +
 srcpkgs/libpurple-steam/template                     | 1 +
 srcpkgs/libratbag/template                           | 1 +
 srcpkgs/libreadline8/template                        | 1 +
 srcpkgs/libreoffice/template                         | 1 +
 srcpkgs/libretro-mupen64plus-rpi/template            | 1 +
 srcpkgs/libretro-mupen64plus/template                | 1 +
 srcpkgs/librtas/template                             | 1 +
 srcpkgs/libscrypt/template                           | 1 +
 srcpkgs/libsearpc/template                           | 1 +
 srcpkgs/libselinux/template                          | 1 +
 srcpkgs/libsigrokdecode/template                     | 1 +
 srcpkgs/libsigsegv/template                          | 1 +
 srcpkgs/libsmbios/template                           | 1 +
 srcpkgs/libspnav/template                            | 1 +
 srcpkgs/libssh/template                              | 1 +
 srcpkgs/libtecla/template                            | 1 +
 srcpkgs/libticables2/template                        | 1 +
 srcpkgs/libtool/template                             | 1 +
 srcpkgs/libtorrent/template                          | 1 +
 srcpkgs/libu2f-host/template                         | 1 +
 srcpkgs/libu2f-server/template                       | 1 +
 srcpkgs/libucl/template                              | 1 +
 srcpkgs/libuninum/template                           | 1 +
 srcpkgs/libunique/template                           | 1 +
 srcpkgs/libunwind/template                           | 1 +
 srcpkgs/libusb-compat/template                       | 1 +
 srcpkgs/libusb/template                              | 1 +
 srcpkgs/libusbmuxd/template                          | 1 +
 srcpkgs/libuv/template                               | 1 +
 srcpkgs/libvdpau/template                            | 1 +
 srcpkgs/libvidstab/template                          | 1 +
 srcpkgs/libvirt-glib/template                        | 1 +
 srcpkgs/libwmf/template                              | 1 +
 srcpkgs/libxdg-basedir/template                      | 1 +
 srcpkgs/libxkbcommon/template                        | 1 +
 srcpkgs/libxml2-python/template                      | 1 +
 srcpkgs/libxml2/template                             | 1 +
 srcpkgs/libxo/template                               | 1 +
 srcpkgs/libzim/template                              | 1 +
 srcpkgs/lightdm-webkit2-greeter/template             | 1 +
 srcpkgs/lightdm/template                             | 1 +
 srcpkgs/lighttpd/template                            | 1 +
 srcpkgs/lightzone/template                           | 1 +
 srcpkgs/lilo/template                                | 1 +
 srcpkgs/lilyterm/template                            | 1 +
 srcpkgs/linphone-desktop/template                    | 1 +
 srcpkgs/linssid/template                             | 1 +
 srcpkgs/linux-tools/template                         | 1 +
 srcpkgs/linux-vt-setcolors/template                  | 1 +
 srcpkgs/linux4.4/template                            | 1 +
 srcpkgs/liquid-dsp/template                          | 1 +
 srcpkgs/liquidwar/template                           | 1 +
 srcpkgs/litecoin/template                            | 1 +
 srcpkgs/llvm11/template                              | 1 +
 srcpkgs/llvm12/template                              | 1 +
 srcpkgs/lmdb/template                                | 1 +
 srcpkgs/lmms/template                                | 1 +
 srcpkgs/log4cxx/template                             | 1 +
 srcpkgs/loksh/template                               | 1 +
 srcpkgs/loudmouth/template                           | 1 +
 srcpkgs/lshw/template                                | 1 +
 srcpkgs/ltrace/template                              | 1 +
 srcpkgs/lttng-tools/template                         | 1 +
 srcpkgs/lua51-luasocket/template                     | 1 +
 srcpkgs/lua51/template                               | 1 +
 srcpkgs/lua52/template                               | 1 +
 srcpkgs/lua53/template                               | 1 +
 srcpkgs/lua54-lgi/template                           | 1 +
 srcpkgs/lua54-lualdap/template                       | 1 +
 srcpkgs/lua54/template                               | 1 +
 srcpkgs/luakit/template                              | 1 +
 srcpkgs/lumina/template                              | 1 +
 srcpkgs/lvm2/template                                | 1 +
 srcpkgs/lwipv6/template                              | 1 +
 srcpkgs/lxappearance/template                        | 1 +
 srcpkgs/lxdm/template                                | 1 +
 srcpkgs/lxpanel/template                             | 1 +
 srcpkgs/lzf/template                                 | 1 +
 srcpkgs/mDNSResponder/template                       | 1 +
 srcpkgs/mairix/template                              | 1 +
 srcpkgs/makedumpfile/template                        | 1 +
 srcpkgs/makeself/template                            | 1 +
 srcpkgs/mame/template                                | 1 +
 srcpkgs/man-db/template                              | 1 +
 srcpkgs/marble5/template                             | 1 +
 srcpkgs/marco/template                               | 1 +
 srcpkgs/mariadb/template                             | 1 +
 srcpkgs/masterpassword-cli/template                  | 1 +
 srcpkgs/mate-utils/template                          | 1 +
 srcpkgs/matio/template                               | 1 +
 srcpkgs/maturin/template                             | 1 +
 srcpkgs/mc/template                                  | 1 +
 srcpkgs/mcpp/template                                | 1 +
 srcpkgs/mdadm/template                               | 1 +
 srcpkgs/mdocml/template                              | 1 +
 srcpkgs/mediastreamer/template                       | 1 +
 srcpkgs/mednafen/template                            | 1 +
 srcpkgs/memtest86+/template                          | 1 +
 srcpkgs/mergerfs/template                            | 1 +
 srcpkgs/merkaartor/template                          | 1 +
 srcpkgs/mesa/template                                | 1 +
 srcpkgs/meson/template                               | 1 +
 srcpkgs/mg/template                                  | 1 +
 srcpkgs/mhddfs/template                              | 1 +
 srcpkgs/milkytracker/template                        | 1 +
 srcpkgs/mimic/template                               | 1 +
 srcpkgs/minicom/template                             | 1 +
 srcpkgs/minidlna/template                            | 1 +
 srcpkgs/minijail/template                            | 1 +
 srcpkgs/minisat/template                             | 1 +
 srcpkgs/minissdpd/template                           | 1 +
 srcpkgs/mit-krb5/template                            | 1 +
 srcpkgs/mit-scheme-c/template                        | 1 +
 srcpkgs/mlocate/template                             | 1 +
 srcpkgs/mmv/template                                 | 1 +
 srcpkgs/moc/template                                 | 1 +
 srcpkgs/mod_wsgi/template                            | 1 +
 srcpkgs/mog/template                                 | 1 +
 srcpkgs/mon/template                                 | 1 +
 srcpkgs/monero/template                              | 1 +
 srcpkgs/mongoose/template                            | 1 +
 srcpkgs/monit/template                               | 1 +
 srcpkgs/mono/template                                | 1 +
 srcpkgs/moon-buggy/template                          | 1 +
 srcpkgs/moosefs/template                             | 1 +
 srcpkgs/mosh/template                                | 1 +
 srcpkgs/mosquitto/template                           | 1 +
 srcpkgs/mp3check/template                            | 1 +
 srcpkgs/mp3val/template                              | 1 +
 srcpkgs/mpg123/template                              | 1 +
 srcpkgs/mplayer/template                             | 1 +
 srcpkgs/mrxvt/template                               | 1 +
 srcpkgs/msg2/template                                | 1 +
 srcpkgs/msp430-toolchain/template                    | 1 +
 srcpkgs/mumble/template                              | 1 +
 srcpkgs/mupen64plus/template                         | 1 +
 srcpkgs/musikcube/template                           | 1 +
 srcpkgs/mutter/template                              | 1 +
 srcpkgs/mysql++/template                             | 1 +
 srcpkgs/nagstamon/template                           | 1 +
 srcpkgs/namecoin/template                            | 1 +
 srcpkgs/navit/template                               | 1 +
 srcpkgs/nemiver/template                             | 1 +
 srcpkgs/net-snmp/template                            | 1 +
 srcpkgs/netcat/template                              | 1 +
 srcpkgs/nethack/template                             | 1 +
 srcpkgs/netpgp/template                              | 1 +
 srcpkgs/netpgpverify/template                        | 1 +
 srcpkgs/nettle/template                              | 1 +
 srcpkgs/network-ups-tools/template                   | 1 +
 srcpkgs/newlisp/template                             | 1 +
 srcpkgs/nextcloud-client/template                    | 1 +
 srcpkgs/nfs4-acl-tools/template                      | 1 +
 srcpkgs/nginx/template                               | 1 +
 srcpkgs/ngspice/template                             | 1 +
 srcpkgs/nitroshare/template                          | 1 +
 srcpkgs/nmon/template                                | 1 +
 srcpkgs/nocache/template                             | 1 +
 srcpkgs/nodejs-lts-10/template                       | 1 +
 srcpkgs/nodejs-lts/template                          | 1 +
 srcpkgs/nodejs/template                              | 1 +
 srcpkgs/noip2/template                               | 1 +
 srcpkgs/notepadqq/template                           | 1 +
 srcpkgs/notes-up/template                            | 1 +
 srcpkgs/nrpe/template                                | 1 +
 srcpkgs/nsjail/template                              | 1 +
 srcpkgs/nspr/template                                | 1 +
 srcpkgs/nss/template                                 | 1 +
 srcpkgs/ntp/template                                 | 1 +
 srcpkgs/numactl/template                             | 1 +
 srcpkgs/nvme-cli/template                            | 1 +
 srcpkgs/nwipe/template                               | 1 +
 srcpkgs/nx-libs/template                             | 1 +
 srcpkgs/obexftp/template                             | 1 +
 srcpkgs/occt/template                                | 1 +
 srcpkgs/odroid-u2-kernel/template                    | 1 +
 srcpkgs/ofono/template                               | 1 +
 srcpkgs/ogmrip/template                              | 1 +
 srcpkgs/ogmtools/template                            | 1 +
 srcpkgs/oksh/template                                | 1 +
 srcpkgs/okteta/template                              | 1 +
 srcpkgs/okular/template                              | 1 +
 srcpkgs/olsrd/template                               | 1 +
 srcpkgs/omxplayer/template                           | 1 +
 srcpkgs/open-iscsi/template                          | 1 +
 srcpkgs/open-vm-tools/template                       | 1 +
 srcpkgs/openbabel/template                           | 1 +
 srcpkgs/openblas/template                            | 1 +
 srcpkgs/openbox/template                             | 1 +
 srcpkgs/openbsd-file/template                        | 1 +
 srcpkgs/opencollada/template                         | 1 +
 srcpkgs/opencolorio/template                         | 1 +
 srcpkgs/opencv/template                              | 1 +
 srcpkgs/opencv4/template                             | 1 +
 srcpkgs/opendkim/template                            | 1 +
 srcpkgs/openexr/template                             | 1 +
 srcpkgs/openjade/template                            | 1 +
 srcpkgs/openjpeg2/template                           | 1 +
 srcpkgs/openlierox/template                          | 1 +
 srcpkgs/openmpi/template                             | 1 +
 srcpkgs/openntpd/template                            | 1 +
 srcpkgs/opensm/template                              | 1 +
 srcpkgs/opensmtpd-extras/template                    | 1 +
 srcpkgs/opensmtpd/template                           | 1 +
 srcpkgs/opensonic/template                           | 1 +
 srcpkgs/openssh/template                             | 1 +
 srcpkgs/openssl/template                             | 1 +
 srcpkgs/opensurge/template                           | 1 +
 srcpkgs/opkg/template                                | 1 +
 srcpkgs/oprofile/template                            | 1 +
 srcpkgs/oragono/template                             | 1 +
 srcpkgs/orion/template                               | 1 +
 srcpkgs/os-prober/template                           | 1 +
 srcpkgs/osg/template                                 | 1 +
 srcpkgs/osmid/template                               | 1 +
 srcpkgs/otfcc/template                               | 1 +
 srcpkgs/otpw/template                                | 1 +
 srcpkgs/owncloudclient/template                      | 1 +
 srcpkgs/p7zip/template                               | 1 +
 srcpkgs/pa-applet/template                           | 1 +
 srcpkgs/pacman/template                              | 1 +
 srcpkgs/pahole/template                              | 1 +
 srcpkgs/pam-mount/template                           | 1 +
 srcpkgs/pam-u2f/template                             | 1 +
 srcpkgs/pam_ssh/template                             | 1 +
 srcpkgs/pam_ssh_agent_auth/template                  | 1 +
 srcpkgs/papi/template                                | 1 +
 srcpkgs/par/template                                 | 1 +
 srcpkgs/par2cmdline/template                         | 1 +
 srcpkgs/paraview/template                            | 1 +
 srcpkgs/parcellite/template                          | 1 +
 srcpkgs/partclone/template                           | 1 +
 srcpkgs/passwordsafe/template                        | 1 +
 srcpkgs/pax/template                                 | 1 +
 srcpkgs/pcaudiolib/template                          | 1 +
 srcpkgs/pcc/template                                 | 1 +
 srcpkgs/pchar/template                               | 1 +
 srcpkgs/pcsclite/template                            | 1 +
 srcpkgs/pcsx2/template                               | 1 +
 srcpkgs/pd/template                                  | 1 +
 srcpkgs/pdsh/template                                | 1 +
 srcpkgs/perl-Text-BibTeX/template                    | 1 +
 srcpkgs/perl-Tk/template                             | 1 +
 srcpkgs/perl-WWW-Curl/template                       | 1 +
 srcpkgs/perl/template                                | 1 +
 srcpkgs/pgadmin3/template                            | 1 +
 srcpkgs/php/template                                 | 1 +
 srcpkgs/pidgin-libnotify/template                    | 1 +
 srcpkgs/pidgin/template                              | 1 +
 srcpkgs/pijul/template                               | 1 +
 srcpkgs/pilot-link/template                          | 1 +
 srcpkgs/pinebookpro-uboot/template                   | 1 +
 srcpkgs/pingus/template                              | 1 +
 srcpkgs/pioneer/template                             | 1 +
 srcpkgs/pipenightdreams/template                     | 1 +
 srcpkgs/pipewire/template                            | 1 +
 srcpkgs/pjproject/template                           | 1 +
 srcpkgs/plasma-framework/template                    | 1 +
 srcpkgs/plasma-workspace/template                    | 1 +
 srcpkgs/plex-media-player/template                   | 1 +
 srcpkgs/plib/template                                | 1 +
 srcpkgs/plocate/template                             | 1 +
 srcpkgs/plotutils/template                           | 1 +
 srcpkgs/plume-creator/template                       | 1 +
 srcpkgs/plymouth/template                            | 1 +
 srcpkgs/pmount/template                              | 1 +
 srcpkgs/png++/template                               | 1 +
 srcpkgs/polkit-qt5/template                          | 1 +
 srcpkgs/polkit/template                              | 1 +
 srcpkgs/polygen/template                             | 1 +
 srcpkgs/portaudio/template                           | 1 +
 srcpkgs/portmidi/template                            | 1 +
 srcpkgs/postfix/template                             | 1 +
 srcpkgs/postgresql/template                          | 1 +
 srcpkgs/postgresql12/template                        | 1 +
 srcpkgs/postgresql13/template                        | 1 +
 srcpkgs/povray/template                              | 1 +
 srcpkgs/powerpc-utils/template                       | 1 +
 srcpkgs/ppp/template                                 | 1 +
 srcpkgs/pps-tools/template                           | 1 +
 srcpkgs/ppsspp/template                              | 1 +
 srcpkgs/pptpclient/template                          | 1 +
 srcpkgs/projectlibre/template                        | 1 +
 srcpkgs/proot/template                               | 1 +
 srcpkgs/protobuf-c/template                          | 1 +
 srcpkgs/prototype/template                           | 1 +
 srcpkgs/psensor/template                             | 1 +
 srcpkgs/ptii/template                                | 1 +
 srcpkgs/pugixml/template                             | 1 +
 srcpkgs/pulseview/template                           | 1 +
 srcpkgs/putty/template                               | 1 +
 srcpkgs/pvoc/template                                | 1 +
 srcpkgs/pwnat/template                               | 1 +
 srcpkgs/pygtk/template                               | 1 +
 srcpkgs/pymol/template                               | 1 +
 srcpkgs/pyside2-tools/template                       | 1 +
 srcpkgs/python-M2Crypto/template                     | 1 +
 srcpkgs/python-coverage/template                     | 1 +
 srcpkgs/python-docutils/template                     | 1 +
 srcpkgs/python-evdev/template                        | 1 +
 srcpkgs/python-nose/template                         | 1 +
 srcpkgs/python-pip/template                          | 1 +
 srcpkgs/python-requests/template                     | 1 +
 srcpkgs/python/template                              | 1 +
 srcpkgs/python3-PyBrowserID/template                 | 1 +
 srcpkgs/python3-PyQt5/template                       | 1 +
 srcpkgs/python3-aiohttp/template                     | 1 +
 srcpkgs/python3-boltons/template                     | 1 +
 srcpkgs/python3-cli_helpers/template                 | 1 +
 srcpkgs/python3-curtsies/template                    | 1 +
 srcpkgs/python3-entrypoints/template                 | 1 +
 srcpkgs/python3-gevent/template                      | 1 +
 srcpkgs/python3-gitchangelog/template                | 1 +
 srcpkgs/python3-grpcio/template                      | 1 +
 srcpkgs/python3-mygpoclient/template                 | 1 +
 srcpkgs/python3-nose2/template                       | 1 +
 srcpkgs/python3-pdfminer.six/template                | 1 +
 srcpkgs/python3-pikepdf/template                     | 1 +
 srcpkgs/python3-pip/template                         | 1 +
 srcpkgs/python3-pwntools/template                    | 1 +
 srcpkgs/python3-pylibgen/template                    | 1 +
 srcpkgs/python3-pyside2/template                     | 1 +
 srcpkgs/python3-repoze.sphinx.autointerface/template | 1 +
 srcpkgs/python3-telegram/template                    | 1 +
 srcpkgs/python3/template                             | 1 +
 srcpkgs/qca-qt5/template                             | 1 +
 srcpkgs/qdirstat/template                            | 1 +
 srcpkgs/qingy/template                               | 1 +
 srcpkgs/qmmp/template                                | 1 +
 srcpkgs/qpdfview/template                            | 1 +
 srcpkgs/qscintilla-qt5/template                      | 1 +
 srcpkgs/qsstv/template                               | 1 +
 srcpkgs/qt5-fsarchiver/template                      | 1 +
 srcpkgs/qt5-styleplugins/template                    | 1 +
 srcpkgs/qt5-webkit/template                          | 1 +
 srcpkgs/qt5/template                                 | 1 +
 srcpkgs/qt5pas/template                              | 1 +
 srcpkgs/qt6-base/template                            | 1 +
 srcpkgs/qtav/template                                | 1 +
 srcpkgs/qtcreator/template                           | 1 +
 srcpkgs/qtikz/template                               | 1 +
 srcpkgs/qtkeychain-qt5/template                      | 1 +
 srcpkgs/qtpass/template                              | 1 +
 srcpkgs/quassel/template                             | 1 +
 srcpkgs/quickjs/template                             | 1 +
 srcpkgs/quota/template                               | 1 +
 srcpkgs/qv4l2/template                               | 1 +
 srcpkgs/rabbitmq-c/template                          | 1 +
 srcpkgs/racket/template                              | 1 +
 srcpkgs/radare2/template                             | 1 +
 srcpkgs/rakarrack/template                           | 1 +
 srcpkgs/rapidjson/template                           | 1 +
 srcpkgs/raptor/template                              | 1 +
 srcpkgs/rdedup/template                              | 1 +
 srcpkgs/rdis-git/template                            | 1 +
 srcpkgs/re/template                                  | 1 +
 srcpkgs/redis/template                               | 1 +
 srcpkgs/redo/template                                | 1 +
 srcpkgs/refind/template                              | 1 +
 srcpkgs/reiserfsprogs/template                       | 1 +
 srcpkgs/renderdoc/template                           | 1 +
 srcpkgs/residualvm/template                          | 1 +
 srcpkgs/resvg/template                               | 1 +
 srcpkgs/retroshare/template                          | 1 +
 srcpkgs/rhythmbox/template                           | 1 +
 srcpkgs/rinse/template                               | 1 +
 srcpkgs/rix/template                                 | 1 +
 srcpkgs/rmilter/template                             | 1 +
 srcpkgs/rmlint/template                              | 1 +
 srcpkgs/rpcbind/template                             | 1 +
 srcpkgs/rpi-imager/template                          | 1 +
 srcpkgs/rpm/template                                 | 1 +
 srcpkgs/rspamd/template                              | 1 +
 srcpkgs/rsstail/template                             | 1 +
 srcpkgs/rstudio/template                             | 1 +
 srcpkgs/rsyslog/template                             | 1 +
 srcpkgs/rtl8812au-dkms/template                      | 1 +
 srcpkgs/rtl8822bu-dkms/template                      | 1 +
 srcpkgs/rtmpdump/template                            | 1 +
 srcpkgs/rtorrent/template                            | 1 +
 srcpkgs/rubberband/template                          | 1 +
 srcpkgs/ruby/template                                | 1 +
 srcpkgs/ruler/template                               | 1 +
 srcpkgs/run-mailcap/template                         | 1 +
 srcpkgs/runit/template                               | 1 +
 srcpkgs/rustup/template                              | 1 +
 srcpkgs/rxvt-unicode/template                        | 1 +
 srcpkgs/s3cmd/template                               | 1 +
 srcpkgs/samba/template                               | 1 +
 srcpkgs/sandboxfs/template                           | 1 +
 srcpkgs/sane/template                                | 1 +
 srcpkgs/sauerbraten/template                         | 1 +
 srcpkgs/sbcl/template                                | 1 +
 srcpkgs/sc3-plugins/template                         | 1 +
 srcpkgs/scanmem/template                             | 1 +
 srcpkgs/schroot/template                             | 1 +
 srcpkgs/screen/template                              | 1 +
 srcpkgs/scrotty/template                             | 1 +
 srcpkgs/scummvm/template                             | 1 +
 srcpkgs/sddm/template                                | 1 +
 srcpkgs/seafile-client-qt/template                   | 1 +
 srcpkgs/seexpr-krita/template                        | 1 +
 srcpkgs/serf/template                                | 1 +
 srcpkgs/shaderc/template                             | 1 +
 srcpkgs/shadow/template                              | 1 +
 srcpkgs/shapelib/template                            | 1 +
 srcpkgs/shiboken2/template                           | 1 +
 srcpkgs/shmux/template                               | 1 +
 srcpkgs/shotwell/template                            | 1 +
 srcpkgs/signond/template                             | 1 +
 srcpkgs/sile/template                                | 1 +
 srcpkgs/silly/template                               | 1 +
 srcpkgs/simgear/template                             | 1 +
 srcpkgs/simutron/template                            | 1 +
 srcpkgs/sisl/template                                | 1 +
 srcpkgs/skroll/template                              | 1 +
 srcpkgs/slcp/template                                | 1 +
 srcpkgs/sleuthkit/template                           | 1 +
 srcpkgs/slim/template                                | 1 +
 srcpkgs/sloccount/template                           | 1 +
 srcpkgs/slurm-wlm/template                           | 1 +
 srcpkgs/smpeg/template                               | 1 +
 srcpkgs/smpeg2/template                              | 1 +
 srcpkgs/snapper/template                             | 1 +
 srcpkgs/snappy/template                              | 1 +
 srcpkgs/socat/template                               | 1 +
 srcpkgs/socklog/template                             | 1 +
 srcpkgs/sombok/template                              | 1 +
 srcpkgs/sonic-visualiser/template                    | 1 +
 srcpkgs/sopwith/template                             | 1 +
 srcpkgs/soundmodem/template                          | 1 +
 srcpkgs/spacefm/template                             | 1 +
 srcpkgs/spamassassin/template                        | 1 +
 srcpkgs/spampd/template                              | 1 +
 srcpkgs/speech-dispatcher/template                   | 1 +
 srcpkgs/speed-dreams/template                        | 1 +
 srcpkgs/spice-gtk/template                           | 1 +
 srcpkgs/spim/template                                | 1 +
 srcpkgs/splix/template                               | 1 +
 srcpkgs/spreed-webrtc/template                       | 1 +
 srcpkgs/sqmail/template                              | 1 +
 srcpkgs/squashfs-tools/template                      | 1 +
 srcpkgs/srb2/template                                | 1 +
 srcpkgs/ssoma/template                               | 1 +
 srcpkgs/sssd/template                                | 1 +
 srcpkgs/stack/template                               | 1 +
 srcpkgs/starplot/template                            | 1 +
 srcpkgs/stepmania/template                           | 1 +
 srcpkgs/stfl/template                                | 1 +
 srcpkgs/stk/template                                 | 1 +
 srcpkgs/stlink/template                              | 1 +
 srcpkgs/stockfish/template                           | 1 +
 srcpkgs/strawberry/template                          | 1 +
 srcpkgs/subversion-kwallet-auth/template             | 1 +
 srcpkgs/subversion/template                          | 1 +
 srcpkgs/sudo/template                                | 1 +
 srcpkgs/sudoku/template                              | 1 +
 srcpkgs/sunxi-tools/template                         | 1 +
 srcpkgs/supercollider/template                       | 1 +
 srcpkgs/supertux2/template                           | 1 +
 srcpkgs/supertuxkart/template                        | 1 +
 srcpkgs/sutils/template                              | 1 +
 srcpkgs/sway/template                                | 1 +
 srcpkgs/swiften/template                             | 1 +
 srcpkgs/sword/template                               | 1 +
 srcpkgs/sxiv/template                                | 1 +
 srcpkgs/sylpheed/template                            | 1 +
 srcpkgs/synergy/template                             | 1 +
 srcpkgs/synfigstudio/template                        | 1 +
 srcpkgs/sysbench/template                            | 1 +
 srcpkgs/sysdig/template                              | 1 +
 srcpkgs/sysexxer-ng/template                         | 1 +
 srcpkgs/sysprof/template                             | 1 +
 srcpkgs/taskd/template                               | 1 +
 srcpkgs/tbb/template                                 | 1 +
 srcpkgs/tc-play/template                             | 1 +
 srcpkgs/tcl/template                                 | 1 +
 srcpkgs/tcpdump/template                             | 1 +
 srcpkgs/teensy_loader_cli/template                   | 1 +
 srcpkgs/teeworlds/template                           | 1 +
 srcpkgs/telegram-desktop/template                    | 1 +
 srcpkgs/telepathy-mission-control/template           | 1 +
 srcpkgs/tepl/template                                | 1 +
 srcpkgs/terminal_markdown_viewer/template            | 1 +
 srcpkgs/tesseract-ocr/template                       | 1 +
 srcpkgs/tesseract/template                           | 1 +
 srcpkgs/tevent/template                              | 1 +
 srcpkgs/texi2mdoc/template                           | 1 +
 srcpkgs/texlab/template                              | 1 +
 srcpkgs/texlive/template                             | 1 +
 srcpkgs/texstudio/template                           | 1 +
 srcpkgs/textosaurus/template                         | 1 +
 srcpkgs/texworks/template                            | 1 +
 srcpkgs/tgt/template                                 | 1 +
 srcpkgs/thingylaunch/template                        | 1 +
 srcpkgs/thunderbird/template                         | 1 +
 srcpkgs/tickr/template                               | 1 +
 srcpkgs/tidy5/template                               | 1 +
 srcpkgs/tilp2/template                               | 1 +
 srcpkgs/tinyxml/template                             | 1 +
 srcpkgs/tlsh/template                                | 1 +
 srcpkgs/tmines/template                              | 1 +
 srcpkgs/tnftp/template                               | 1 +
 srcpkgs/tomahawk/template                            | 1 +
 srcpkgs/tor/template                                 | 1 +
 srcpkgs/torbrowser-launcher/template                 | 1 +
 srcpkgs/touchegg/template                            | 1 +
 srcpkgs/trace-cmd/template                           | 1 +
 srcpkgs/traceroute/template                          | 1 +
 srcpkgs/tracker/template                             | 1 +
 srcpkgs/tracker3-miners/template                     | 1 +
 srcpkgs/transcode/template                           | 1 +
 srcpkgs/transmission/template                        | 1 +
 srcpkgs/treesheets/template                          | 1 +
 srcpkgs/trinity/template                             | 1 +
 srcpkgs/trojita/template                             | 1 +
 srcpkgs/trousers/template                            | 1 +
 srcpkgs/tsocks/template                              | 1 +
 srcpkgs/ttyrec/template                              | 1 +
 srcpkgs/tup/template                                 | 1 +
 srcpkgs/turbovnc/template                            | 1 +
 srcpkgs/txr/template                                 | 1 +
 srcpkgs/typespeed/template                           | 1 +
 srcpkgs/u2f-hidraw-policy/template                   | 1 +
 srcpkgs/u9fs/template                                | 1 +
 srcpkgs/ucspi-ssl/template                           | 1 +
 srcpkgs/udptunnel/template                           | 1 +
 srcpkgs/ufoai/template                               | 1 +
 srcpkgs/ufraw/template                               | 1 +
 srcpkgs/uftrace/template                             | 1 +
 srcpkgs/uim/template                                 | 1 +
 srcpkgs/ulauncher/template                           | 1 +
 srcpkgs/ulogd/template                               | 1 +
 srcpkgs/unison/template                              | 1 +
 srcpkgs/unknown-horizons/template                    | 1 +
 srcpkgs/urbanterror/template                         | 1 +
 srcpkgs/urlview/template                             | 1 +
 srcpkgs/usbguard/template                            | 1 +
 srcpkgs/uwm/template                                 | 1 +
 srcpkgs/uwsgi/template                               | 1 +
 srcpkgs/v4l-utils/template                           | 1 +
 srcpkgs/vala-panel/template                          | 1 +
 srcpkgs/vanitygen/template                           | 1 +
 srcpkgs/vapoursynth-editor/template                  | 1 +
 srcpkgs/varnish/template                             | 1 +
 srcpkgs/vboot-utils/template                         | 1 +
 srcpkgs/vde2/template                                | 1 +
 srcpkgs/vdirsyncer/template                          | 1 +
 srcpkgs/vdrift/template                              | 1 +
 srcpkgs/virglrenderer/template                       | 1 +
 srcpkgs/virtualbox-ose/template                      | 1 +
 srcpkgs/virtuoso/template                            | 1 +
 srcpkgs/visitors/template                            | 1 +
 srcpkgs/vitetris/template                            | 1 +
 srcpkgs/vlc/template                                 | 1 +
 srcpkgs/voltron/template                             | 1 +
 srcpkgs/volumeicon/template                          | 1 +
 srcpkgs/vpcs/template                                | 1 +
 srcpkgs/vpn-ws/template                              | 1 +
 srcpkgs/vsftpd/template                              | 1 +
 srcpkgs/vte3/template                                | 1 +
 srcpkgs/w_scan/template                              | 1 +
 srcpkgs/waifu2x-converter-cpp/template               | 1 +
 srcpkgs/webkit2gtk/template                          | 1 +
 srcpkgs/wicd/template                                | 1 +
 srcpkgs/widelands/template                           | 1 +
 srcpkgs/wildmidi/template                            | 1 +
 srcpkgs/wine/template                                | 1 +
 srcpkgs/wineasio/template                            | 1 +
 srcpkgs/winusb/template                              | 1 +
 srcpkgs/wireshark/template                           | 1 +
 srcpkgs/wm2/template                                 | 1 +
 srcpkgs/woff2/template                               | 1 +
 srcpkgs/wordgrinder/template                         | 1 +
 srcpkgs/workrave/template                            | 1 +
 srcpkgs/wtype/template                               | 1 +
 srcpkgs/wvstreams/template                           | 1 +
 srcpkgs/wxPython4/template                           | 1 +
 srcpkgs/wxWidgets-gtk3/template                      | 1 +
 srcpkgs/wxWidgets/template                           | 1 +
 srcpkgs/x11vnc/template                              | 1 +
 srcpkgs/x265/template                                | 1 +
 srcpkgs/x42-plugins/template                         | 1 +
 srcpkgs/xapian-core/template                         | 1 +
 srcpkgs/xar/template                                 | 1 +
 srcpkgs/xautolock/template                           | 1 +
 srcpkgs/xava/template                                | 1 +
 srcpkgs/xboxdrv/template                             | 1 +
 srcpkgs/xcolorsel/template                           | 1 +
 srcpkgs/xdg-utils/template                           | 1 +
 srcpkgs/xerces-c/template                            | 1 +
 srcpkgs/xf86-input-mtrack/template                   | 1 +
 srcpkgs/xf86-input-synaptics/template                | 1 +
 srcpkgs/xf86-video-ati/template                      | 1 +
 srcpkgs/xf86-video-cirrus/template                   | 1 +
 srcpkgs/xf86-video-fbdev/template                    | 1 +
 srcpkgs/xf86-video-fbturbo-sunxi/template            | 1 +
 srcpkgs/xf86-video-fbturbo/template                  | 1 +
 srcpkgs/xf86-video-intel/template                    | 1 +
 srcpkgs/xf86-video-mach64/template                   | 1 +
 srcpkgs/xf86-video-mga/template                      | 1 +
 srcpkgs/xf86-video-r128/template                     | 1 +
 srcpkgs/xf86-video-vmware/template                   | 1 +
 srcpkgs/xfig/template                                | 1 +
 srcpkgs/xfsprogs/template                            | 1 +
 srcpkgs/xinetd/template                              | 1 +
 srcpkgs/xinit/template                               | 1 +
 srcpkgs/xload/template                               | 1 +
 srcpkgs/xlunch/template                              | 1 +
 srcpkgs/xnp2/template                                | 1 +
 srcpkgs/xonotic/template                             | 1 +
 srcpkgs/xorg-cf-files/template                       | 1 +
 srcpkgs/xorg-server/template                         | 1 +
 srcpkgs/xosview/template                             | 1 +
 srcpkgs/xplanet/template                             | 1 +
 srcpkgs/xrick/template                               | 1 +
 srcpkgs/xsane/template                               | 1 +
 srcpkgs/xsettingsd/template                          | 1 +
 srcpkgs/xst/template                                 | 1 +
 srcpkgs/xstarter/template                            | 1 +
 srcpkgs/xterm/template                               | 1 +
 srcpkgs/xye/template                                 | 1 +
 srcpkgs/yabar/template                               | 1 +
 srcpkgs/yarn-bin/template                            | 1 +
 srcpkgs/yarn/template                                | 1 +
 srcpkgs/yeahconsole/template                         | 1 +
 srcpkgs/yeahwm/template                              | 1 +
 srcpkgs/yersinia/template                            | 1 +
 srcpkgs/ympd/template                                | 1 +
 srcpkgs/yoshimi/template                             | 1 +
 srcpkgs/yosys/template                               | 1 +
 srcpkgs/z3/template                                  | 1 +
 srcpkgs/z80ex/template                               | 1 +
 srcpkgs/zabbix/template                              | 1 +
 srcpkgs/zbar/template                                | 1 +
 srcpkgs/zeal/template                                | 1 +
 srcpkgs/zeek/template                                | 1 +
 srcpkgs/zerofree/template                            | 1 +
 srcpkgs/zfs/template                                 | 1 +
 srcpkgs/zimg/template                                | 1 +
 srcpkgs/zinnia/template                              | 1 +
 srcpkgs/zip/template                                 | 1 +
 srcpkgs/zlib/template                                | 1 +
 srcpkgs/zsnes/template                               | 1 +
 srcpkgs/zulucrypt/template                           | 1 +
 srcpkgs/zutils/template                              | 1 +
 srcpkgs/zynaddsubfx/template                         | 1 +
 1241 files changed, 1241 insertions(+)

diff --git a/srcpkgs/0ad/template b/srcpkgs/0ad/template
index d6bbdb483101..183936084930 100644
--- a/srcpkgs/0ad/template
+++ b/srcpkgs/0ad/template
@@ -17,6 +17,7 @@ distfiles="https://releases.wildfiregames.com/${pkgname}-${version}-alpha-unix-b
 checksum=325c23c9b6bfc16eb636af6a7a7bdaadbf19214b6eed0422d74cc0090bf137a8
 nocross="uses bundled third-party libraries that do not cross-compile"
 lib32disabled=yes
+patch_args=-Np0
 
 CXXFLAGS="-fpermissive"
 # Use BFD linker to avoid erroneous detection of llvm pr8927 with *-musl
diff --git a/srcpkgs/66-tools/template b/srcpkgs/66-tools/template
index b9c5e7c66a79..ca916507c9a6 100644
--- a/srcpkgs/66-tools/template
+++ b/srcpkgs/66-tools/template
@@ -17,6 +17,7 @@ homepage="http://web.obarun.org/software/index.html"
 changelog="https://framagit.org/Obarun/66-tools/-/raw/master/doc/upgrade.md"
 distfiles="https://framagit.org/Obarun/66-tools/-/archive/v${version}/66-tools-v${version}.tar.gz"
 checksum=c8cbe0d6c104e4d87d588d5980201770a6fd2fad11f99ff138a37ff918d68491
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/7kaa/template b/srcpkgs/7kaa/template
index 7aa6e152c8f1..b776195a806b 100644
--- a/srcpkgs/7kaa/template
+++ b/srcpkgs/7kaa/template
@@ -15,6 +15,7 @@ distfiles="https://github.com/the3dfxdude/7kaa/releases/download/v${version}/${p
 checksum="f0265c077025d77b435f1c10b8ba178bdb16329e51ab735330ebaa71a104fbf8
  b0d767b6e25719a14f5f34a93744a8022d7bc24af66275bee54dfc788695c1c3"
 replaces="7kaa-data>=0"
+patch_args=-Np0
 
 post_extract() {
 	mv ../7kaa-music .
diff --git a/srcpkgs/9base/template b/srcpkgs/9base/template
index e7cee72701f8..74ed0a369e03 100644
--- a/srcpkgs/9base/template
+++ b/srcpkgs/9base/template
@@ -17,6 +17,7 @@ distfiles="https://alpha.de.repo.voidlinux.org/distfiles/9base-${_githash}.tar.g
 checksum=b315509470c25db88595bd0e9478428dea54d7836fe2ba9d07279ae9496366fb
 conflicts="plan9port"
 provides="plan9port-20160418_4"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/9mount/template b/srcpkgs/9mount/template
index 5b1160ad2049..6cf8f4e2fc9c 100644
--- a/srcpkgs/9mount/template
+++ b/srcpkgs/9mount/template
@@ -10,6 +10,7 @@ license="ISC"
 homepage="http://sqweek.net/code/9mount/"
 distfiles="http://sqweek.net/9p/$pkgname-$version.tar.gz"
 checksum=820d80b9b478d05ecb022ad658477b37cfc2414a8669c3af17d192a522064c17
+patch_args=-Np0
 
 pre_build() {
 	sed -i '/chown/d' Makefile
diff --git a/srcpkgs/Aegisub/template b/srcpkgs/Aegisub/template
index 2ddf6c24ee6e..8dcd52f2a62c 100644
--- a/srcpkgs/Aegisub/template
+++ b/srcpkgs/Aegisub/template
@@ -17,6 +17,7 @@ license="BSD-3-Clause, MIT"
 homepage="http://www.aegisub.org"
 distfiles="https://github.com/Aegisub/Aegisub/archive/v${version}.tar.gz"
 checksum=62757dd491455268a240f983b59734a801cc2e899039a7493deeaf5e24a61dcd
+patch_args=-Np0
 
 build_options="fftw openal portaudio"
 build_options_default="fftw"
diff --git a/srcpkgs/Brainfunk/template b/srcpkgs/Brainfunk/template
index 309179b0715a..389100d545c3 100644
--- a/srcpkgs/Brainfunk/template
+++ b/srcpkgs/Brainfunk/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/GReaperEx/Brainfunk"
 distfiles="${homepage}/archive/v${version}-beta.tar.gz"
 checksum=6b48bd1fbe0dbce20f3e8af5c799023ea820ddc45aca8fac0ccecfa2de359ee2
+patch_args=-Np0
 
 do_install() {
 	vbin bfk
diff --git a/srcpkgs/CPU-X/template b/srcpkgs/CPU-X/template
index 0947bcfef816..f99e7a8e62a2 100644
--- a/srcpkgs/CPU-X/template
+++ b/srcpkgs/CPU-X/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://x0rg.github.io/CPU-X/"
 distfiles="https://github.com/X0rg/CPU-X/archive/v${version}.tar.gz"
 checksum=c41fbb3000e3e6f79e5228aa0237fde4f98b11df8ccb4c9a46f7e63a4a7011bf
+patch_args=-Np0
 
 build_options="gtk3"
 build_options_default="gtk3"
diff --git a/srcpkgs/Carla/template b/srcpkgs/Carla/template
index 701fd0ea30f7..bc39346ecec8 100644
--- a/srcpkgs/Carla/template
+++ b/srcpkgs/Carla/template
@@ -18,6 +18,7 @@ homepage="https://kxstudio.linuxaudio.org/Applications:Carla"
 distfiles="https://github.com/falkTX/Carla/archive/v${version}.tar.gz"
 checksum=a82ce08f3a82db9d878c8cb7e7e2f3b80834bf21801c6ec4ed95c0cfee25b963
 python_version=3
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	x86_64* | i686*);;
diff --git a/srcpkgs/Cataclysm-DDA/template b/srcpkgs/Cataclysm-DDA/template
index bbe66b9f29b9..8e57303fe874 100644
--- a/srcpkgs/Cataclysm-DDA/template
+++ b/srcpkgs/Cataclysm-DDA/template
@@ -15,6 +15,7 @@ license="CC-BY-SA-3.0, CC-BY-3.0"
 homepage="https://cataclysmdda.org/"
 distfiles="https://github.com/CleverRaven/Cataclysm-DDA/archive/${version}.tar.gz"
 checksum=b0af9a9292929e17332edcea770bca9a91f1d08ea47726d78a47e09281a42fa3
+patch_args=-Np0
 
 build_options="tiles backtrace"
 build_options_default="tiles"
diff --git a/srcpkgs/Chipmunk2D/template b/srcpkgs/Chipmunk2D/template
index 142051ec0a4a..1f4180bda367 100644
--- a/srcpkgs/Chipmunk2D/template
+++ b/srcpkgs/Chipmunk2D/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://chipmunk-physics.net/"
 distfiles="https://github.com/slembcke/Chipmunk2D/archive/Chipmunk-${version}.tar.gz"
 checksum=6b6d8d5d910c4442fb9c8c4c46a178126d8c21d075cdb3ce439a7f8d8757b0ca
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/Clight/template b/srcpkgs/Clight/template
index cff8201154a1..70d18bd53b78 100644
--- a/srcpkgs/Clight/template
+++ b/srcpkgs/Clight/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/FedeDP/Clight"
 distfiles="https://github.com/FedeDP/Clight/archive/${version}.tar.gz"
 checksum=2ce204edd58284c178b99e2ffec0105fc8e78d8a076350f64424b66c9878e91e
+patch_args=-Np0
 
 post_install() {
 	vcompletion Extra/completions/_clight zsh
diff --git a/srcpkgs/Clp/template b/srcpkgs/Clp/template
index 5b2af733ca37..fe3a9f916b18 100644
--- a/srcpkgs/Clp/template
+++ b/srcpkgs/Clp/template
@@ -10,6 +10,7 @@ license="EPL-1.0"
 homepage="http://projects.coin-or.org/Clp"
 distfiles="https://www.coin-or.org/Tarballs/${pkgname}/${pkgname}-${version}.tgz"
 checksum=a13bf54291ad503cf76f5f93f2643d2add4faa5d0e60ff2db902ef715c094573
+patch_args=-Np0
 
 libClp-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/CoinMP/template b/srcpkgs/CoinMP/template
index 995353eee428..a889ea92d33b 100644
--- a/srcpkgs/CoinMP/template
+++ b/srcpkgs/CoinMP/template
@@ -10,6 +10,7 @@ license="CPL-1.0"
 homepage="https://projects.coin-or.org/CoinMP"
 distfiles="http://www.coin-or.org/download/source/${pkgname}/${pkgname}-${version}.tgz"
 checksum=3459fb0ccbdd39342744684338984ac4cc153fb0434f4cae8cf74bd67490a38d
+patch_args=-Np0
 
 post_configure() {
 	# remove erroneous cross base prefix from include paths
diff --git a/srcpkgs/CubicSDR/template b/srcpkgs/CubicSDR/template
index f2eb67e7f9b5..fbc8339d6da0 100644
--- a/srcpkgs/CubicSDR/template
+++ b/srcpkgs/CubicSDR/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://cubicsdr.com"
 distfiles="https://github.com/cjcliffe/CubicSDR/archive/${version}.tar.gz"
 checksum=5cb44c110fcbbb70a468b7fa402cf35f84d8901b3dd42d471a90ac3f5db00f4d
+patch_args=-Np0
 
 build_options="alsa pulseaudio jack"
 build_options_default="alsa pulseaudio"
diff --git a/srcpkgs/DarkRadiant/template b/srcpkgs/DarkRadiant/template
index 1d47801303d3..e5a0057af193 100644
--- a/srcpkgs/DarkRadiant/template
+++ b/srcpkgs/DarkRadiant/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/codereader/DarkRadiant/"
 distfiles="https://github.com/codereader/DarkRadiant/archive/${version}.tar.gz"
 checksum=8c5dc0f7d160dea7e9c735f9739e36462dd8c8719a3022156f9584250fc3b867
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/lib/wx/include/gtk3-unicode-3.0"
 
diff --git a/srcpkgs/Fritzing/template b/srcpkgs/Fritzing/template
index d97ab1654a52..4dd6b0cb08f9 100644
--- a/srcpkgs/Fritzing/template
+++ b/srcpkgs/Fritzing/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/${pkgname}/${pkgname}-app/archive/${version}.tar.g
  https://github.com/${pkgname}/${pkgname}-parts/archive/${_partshash}.tar.gz>fritzing-parts-${_partshash}.tar.gz"
 checksum="2475a95aad2c1536eef3fdb72665c5c16590644b45bd110a0cde223c916625b8
  2d5882f0180d04c582ef418fd286bf1d04142409d316a4cd5c9ce3e2d91434dd"
+patch_args=-Np0
 
 post_extract() {
 	# looks for libgit2 and boost in the source tree
diff --git a/srcpkgs/GConf/template b/srcpkgs/GConf/template
index 4365c11e5844..51c792007cb0 100644
--- a/srcpkgs/GConf/template
+++ b/srcpkgs/GConf/template
@@ -22,6 +22,7 @@ make_dirs="/usr/share/gconf/schemas 0755 root root
  /etc/gconf/gconf.xml.defaults 0755 root root
  /etc/gconf/gconf.xml.mandatory 0755 root root
  /etc/gconf/gconf.xml.system 0755 root root"
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/Gauche/template b/srcpkgs/Gauche/template
index 74beafdc6863..f40f1d382f95 100644
--- a/srcpkgs/Gauche/template
+++ b/srcpkgs/Gauche/template
@@ -15,6 +15,7 @@ alternatives="
  scheme:scheme:/usr/bin/gauche
  scheme:scheme.1:/usr/share/man/man1/gauche.1
 "
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	# Gauche needs itself to bootstrap for cross compilation.
diff --git a/srcpkgs/GraphicsMagick/template b/srcpkgs/GraphicsMagick/template
index 35f5269eac7c..68825a0d4a7e 100644
--- a/srcpkgs/GraphicsMagick/template
+++ b/srcpkgs/GraphicsMagick/template
@@ -21,6 +21,7 @@ changelog="http://www.graphicsmagick.org/NEWS.html"
 distfiles="${SOURCEFORGE_SITE}/graphicsmagick/graphicsmagick/${version}/${pkgname}-${version}.tar.gz"
 checksum=1e6723c48c4abbb31197fadf8396b2d579d97e197123edc70a4f057f0533d563
 keep_libtool_archives=yes
+patch_args=-Np0
 
 post_install() {
 	vlicense Copyright.txt LICENSE
diff --git a/srcpkgs/Haru/template b/srcpkgs/Haru/template
index d1207b72b881..439b4f934042 100644
--- a/srcpkgs/Haru/template
+++ b/srcpkgs/Haru/template
@@ -12,6 +12,7 @@ license="Zlib"
 homepage="http://libharu.org/"
 distfiles="https://github.com/libharu/libharu/archive/RELEASE_${version//./_}.tar.gz"
 checksum=8f9e68cc5d5f7d53d1bc61a1ed876add1faf4f91070dbc360d8b259f46d9a4d2
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args="--with-zlib=${XBPS_CROSS_BASE}/usr"
diff --git a/srcpkgs/LibreCAD/template b/srcpkgs/LibreCAD/template
index 3a5224f907ee..da6fd2e7239a 100644
--- a/srcpkgs/LibreCAD/template
+++ b/srcpkgs/LibreCAD/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://librecad.org"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=74c4ede409b13d0365c65c0cd52dba04f1049530f6df706dc905443d5e60db06
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	configure_args+=" BOOST_DIR=${XBPS_CROSS_BASE}/usr"
diff --git a/srcpkgs/LuaJIT/template b/srcpkgs/LuaJIT/template
index 9fbc72cbe4e7..e270384ecd37 100644
--- a/srcpkgs/LuaJIT/template
+++ b/srcpkgs/LuaJIT/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://www.luajit.org"
 distfiles="http://luajit.org/download/${pkgname}-${_dist_version}.tar.gz"
 checksum=1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3
+patch_args=-Np0
 
 build_options="lua52compat"
 
diff --git a/srcpkgs/MEGAcmd/template b/srcpkgs/MEGAcmd/template
index eb94684afcf6..893d78c880cc 100644
--- a/srcpkgs/MEGAcmd/template
+++ b/srcpkgs/MEGAcmd/template
@@ -14,6 +14,7 @@ homepage="https://github.com/meganz/MEGAcmd"
 distfiles="https://github.com/meganz/MEGAcmd/archive/${version}_Linux.tar.gz"
 checksum=2a3626a9f1d22303fe2123f984a8ecf3779d6d59ac6c67c1bf43c2423dcb832d
 replaces="megacmd>=0"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args="--with-libtool-sysroot=${XBPS_CROSS_BASE}"
diff --git a/srcpkgs/Maelstrom/template b/srcpkgs/Maelstrom/template
index 7c4be8c13b2a..ea3d28d0c4f4 100644
--- a/srcpkgs/Maelstrom/template
+++ b/srcpkgs/Maelstrom/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.libsdl.org/projects/Maelstrom/"
 distfiles="${homepage}/src/${pkgname}-${version}.tar.gz"
 checksum=93680322f4b04d4727ea8e0b461f259b604dc69e7465cb91d2b9aad378a9a036
+patch_args=-Np0
 
 CXXFLAGS="-Wno-error -Wno-write-strings -Wno-unused-result"
 
diff --git a/srcpkgs/MonkeysAudio/template b/srcpkgs/MonkeysAudio/template
index 6b9f47eda5e6..202b419fa843 100644
--- a/srcpkgs/MonkeysAudio/template
+++ b/srcpkgs/MonkeysAudio/template
@@ -14,6 +14,7 @@ distfiles="https://monkeysaudio.com/files/MAC_SDK_${version//./}.zip
 checksum="0000cbfad5f008014bf3d963b72039c518a1e93ded55b23da715d912c830623e
  7d60dabaf760f32180e272b5955d5f1a2febcf9930eff13e49a1934a286a5819"
 skip_extraction="license.html"
+patch_args=-Np0
 
 do_build() {
 	cp -p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/license.html ${wrksrc}
diff --git a/srcpkgs/ORBit2/template b/srcpkgs/ORBit2/template
index 10e7f52924b6..34ac1a00a447 100644
--- a/srcpkgs/ORBit2/template
+++ b/srcpkgs/ORBit2/template
@@ -13,6 +13,7 @@ homepage="http://projects.gnome.org/ORBit2/"
 distfiles="http://ftp.acc.umu.se/pub/gnome/sources/${pkgname}/2.14/${pkgname}-${version}.tar.bz2"
 checksum=55c900a905482992730f575f3eef34d50bda717c197c97c08fa5a6eafd857550
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ORBit2"
diff --git a/srcpkgs/OpenCPN/template b/srcpkgs/OpenCPN/template
index ee67dbaff01c..63796b6f17db 100644
--- a/srcpkgs/OpenCPN/template
+++ b/srcpkgs/OpenCPN/template
@@ -20,6 +20,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.0-or-later, MIT, WxWindows-e
 homepage="https://opencpn.org/"
 distfiles="https://github.com/OpenCPN/OpenCPN/archive/v${version}.tar.gz"
 checksum=f6ec38989bc38f5a7f63234c5e0230adeb73f5626b4e3d3dfa680f0c240badc7
+patch_args=-Np0
 
 build_options="lzma libarchive exif crashreport"
 build_options_default="lzma libarchive exif"
diff --git a/srcpkgs/OpenXcom/template b/srcpkgs/OpenXcom/template
index f44cc1e9d916..fc79fbb7e1f7 100644
--- a/srcpkgs/OpenXcom/template
+++ b/srcpkgs/OpenXcom/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="http://openxcom.org/"
 distfiles="https://github.com/SupSuper/${pkgname}/archive/v${version}.tar.gz"
 checksum=45acb280010a01d60506b1c5f2951ae501c012cc6161aac470bd15c1e6981246
+patch_args=-Np0
 
 pre_configure() {
 	aclocal --install -Im4
diff --git a/srcpkgs/PAmix/template b/srcpkgs/PAmix/template
index dc087f8c7f07..fece21ed427a 100644
--- a/srcpkgs/PAmix/template
+++ b/srcpkgs/PAmix/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/patroclos/PAmix"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=b63522889d70920d64229c66e2ab6929950476538443af297f6b242f7e9dc406
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	*-musl) broken="Parts of ncurses, not available on musl";;
diff --git a/srcpkgs/PrusaSlicer/template b/srcpkgs/PrusaSlicer/template
index dd0e76cb8017..9a073edcf573 100644
--- a/srcpkgs/PrusaSlicer/template
+++ b/srcpkgs/PrusaSlicer/template
@@ -18,6 +18,7 @@ homepage="https://www.prusa3d.com/prusaslicer/"
 distfiles="https://github.com/prusa3d/Prusaslicer/archive/version_${version}.tar.gz"
 checksum=cd3bac5e29b5441fc4690f28cd7b1064e97dc00207bbdc88f7bd7832308d6ca5
 nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/25230/steps/shell_3/logs/stdio"
+patch_args=-Np0
 
 Slic3rPE_package() {
 	build_style=meta
diff --git a/srcpkgs/QLC+/template b/srcpkgs/QLC+/template
index 38322eb305cc..8da1cc17f80c 100644
--- a/srcpkgs/QLC+/template
+++ b/srcpkgs/QLC+/template
@@ -14,6 +14,7 @@ license="Apache-2.0"
 homepage="https://www.qlcplus.org/"
 distfiles="https://github.com/mcallegari/qlcplus/archive/QLC+_$version.tar.gz"
 checksum=cefb5e84dee04b3567733fcaf4f8125069eec859b506e790ba8a9d921f1e75cc
+patch_args=-Np0
 
 pre_build() {
 	vsed -i 's/QMAKE_CXXFLAGS/#QMAKE_CXXFLAGS/' variables.pri
diff --git a/srcpkgs/SDL/template b/srcpkgs/SDL/template
index d55ee7ab382e..03c5de1df7df 100644
--- a/srcpkgs/SDL/template
+++ b/srcpkgs/SDL/template
@@ -19,6 +19,7 @@ license="LGPL-2.1-only"
 homepage="http://www.libsdl.org/"
 distfiles="http://www.libsdl.org/release/SDL-${version}.tar.gz"
 checksum=d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00
+patch_args=-Np0
 
 # Package build options
 build_options="x11 opengl aalib pulseaudio"
diff --git a/srcpkgs/SDL2/template b/srcpkgs/SDL2/template
index 9013c2e73e21..7bc1e95d78b1 100644
--- a/srcpkgs/SDL2/template
+++ b/srcpkgs/SDL2/template
@@ -15,6 +15,7 @@ license="Zlib"
 homepage="http://www.libsdl.org/"
 distfiles="http://www.libsdl.org/release/${pkgname}-${version}.tar.gz"
 checksum=d8215b571a581be1332d2106f8036fcb03d12a70bae01e20f424976d275432bc
+patch_args=-Np0
 
 # Package build options
 build_options="gles opengl pulseaudio sndio vulkan wayland x11"
diff --git a/srcpkgs/SLADE/template b/srcpkgs/SLADE/template
index 030aac7a61b2..1557b2429b3c 100644
--- a/srcpkgs/SLADE/template
+++ b/srcpkgs/SLADE/template
@@ -15,6 +15,7 @@ homepage="https://github.com/sirjuddington/SLADE"
 changelog="https://github.com/sirjuddington/SLADE/releases/tag/${version}"
 distfiles="https://github.com/sirjuddington/SLADE/archive/${version}.tar.gz"
 checksum=7dc8a0089855f6321d2ec185fa5c97fcb7cc54857033aa3adec9a5ec8226ed60
+patch_args=-Np0
 
 pre_configure() {
 	case $XBPS_TARGET_MACHINE in
diff --git a/srcpkgs/SMC/template b/srcpkgs/SMC/template
index d67469fc18a8..15f8f14acef5 100644
--- a/srcpkgs/SMC/template
+++ b/srcpkgs/SMC/template
@@ -18,6 +18,7 @@ checksum="
  b4194e70d3f1de3da884dd1a11e4f5cec25a205f66a3b85cc9fc1c86289b237d
  c5bb2e1830c7cbe499c93851f5a02b2b900b4730d2c7a133a44a7b43a297dab8"
 replaces="SMC-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-fpermissive -std=c++11"
 LDFLAGS="-Wl,--no-as-needed -lX11 -lboost_system"
diff --git a/srcpkgs/Signal-Desktop/template b/srcpkgs/Signal-Desktop/template
index 8999b6e483ff..7fa1635eefff 100644
--- a/srcpkgs/Signal-Desktop/template
+++ b/srcpkgs/Signal-Desktop/template
@@ -14,6 +14,7 @@ homepage="https://github.com/signalapp/Signal-Desktop"
 distfiles="https://github.com/signalapp/Signal-Desktop/archive/v${version}.tar.gz"
 checksum=f9f55c0195579b43712bf370b753337432eda4bcf89809d1c8f3deb0b4ee4400
 nostrip_files="signal-desktop"
+patch_args=-Np0
 
 pre_build() {
 	vsed -e 's/"node": "/&>=/' -i package.json
diff --git a/srcpkgs/TSC/template b/srcpkgs/TSC/template
index 71534315cf7c..66ebf5dd530a 100644
--- a/srcpkgs/TSC/template
+++ b/srcpkgs/TSC/template
@@ -19,6 +19,7 @@ homepage="https://www.secretchronicles.org/"
 distfiles="https://ftp.secretchronicles.org/releases/${pkgname}-${version}.tar.gz"
 checksum=6a16765b4951e3d5d1ea2b84e6da8f67b0271460f0c570b53ccdab80d7396261
 replaces="TSC-data"
+patch_args=-Np0
 
 if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
 	broken="The host ($XBPS_WORDSIZE) and target ($XBPS_TARGET_WORDSIZE) word sizes need to be the same for cross building."
diff --git a/srcpkgs/VeraCrypt/template b/srcpkgs/VeraCrypt/template
index 2b4dd9fcc7e5..c95a8fa6b25d 100644
--- a/srcpkgs/VeraCrypt/template
+++ b/srcpkgs/VeraCrypt/template
@@ -16,6 +16,7 @@ license="Apache-2.0, custom:TrueCrypt-3.0"
 homepage="https://www.veracrypt.fr"
 distfiles="https://www.veracrypt.fr/code/VeraCrypt/snapshot/VeraCrypt-VeraCrypt_${_realversion}.tar.gz"
 checksum=cbdecffdfc258dccca6de1b79759e673dee3329280849b10d8253e802d45b41e
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) ;;
diff --git a/srcpkgs/XyGrib/template b/srcpkgs/XyGrib/template
index e4aa3a2e0265..ccad1528e349 100644
--- a/srcpkgs/XyGrib/template
+++ b/srcpkgs/XyGrib/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://opengribs.org/"
 distfiles="https://github.com/opengribs/XyGrib/archive/v${version}.tar.gz"
 checksum=2dc6099293ae6f7a4bfbfc0cab590cf7ad48241d608e6d7a76e35961b9fc2157
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args="LINK=${XBPS_CROSS_TRIPLET}-c++"
diff --git a/srcpkgs/ZMusic/template b/srcpkgs/ZMusic/template
index 23e805e3c99c..002c59fdc493 100644
--- a/srcpkgs/ZMusic/template
+++ b/srcpkgs/ZMusic/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/coelckers/ZMusic"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=73082f661b7b0bb33348d1d186c132deec9132a1613480348a00172b49c9fd68
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" musl-fts-devel"
diff --git a/srcpkgs/a2ps/template b/srcpkgs/a2ps/template
index 9335f38e08e0..5497ec5a574e 100644
--- a/srcpkgs/a2ps/template
+++ b/srcpkgs/a2ps/template
@@ -14,6 +14,7 @@ homepage="http://www.gnu.org/software/a2ps/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4
 conf_files="/etc/a2ps/a2ps.cfg /etc/a2ps/a2ps-site.cfg"
+patch_args=-Np0
 
 LDFLAGS="-lm"
 
diff --git a/srcpkgs/abduco/template b/srcpkgs/abduco/template
index 21fa18ce85ae..6aa3a516c5e2 100644
--- a/srcpkgs/abduco/template
+++ b/srcpkgs/abduco/template
@@ -10,6 +10,7 @@ license="ISC"
 homepage="http://www.brain-dump.org/projects/abduco/"
 distfiles="http://www.brain-dump.org/projects/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c90909e13fa95770b5afc3b59f311b3d3d2fdfae23f9569fa4f96a3e192a35f4
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/abook/template b/srcpkgs/abook/template
index 9538e8d1f4da..c22614dedfb8 100644
--- a/srcpkgs/abook/template
+++ b/srcpkgs/abook/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://abook.sourceforge.net/"
 distfiles="http://abook.sourceforge.net/devel/${pkgname}-${version}.tar.gz"
 checksum=f0a90df8694fb34685ecdd45d97db28b88046c15c95e7b0700596028bd8bc0f9
+patch_args=-Np0
 
 post_extract() {
 	autoreconf --install
diff --git a/srcpkgs/accountsservice/template b/srcpkgs/accountsservice/template
index c00a4077d8f7..84c28f82c875 100644
--- a/srcpkgs/accountsservice/template
+++ b/srcpkgs/accountsservice/template
@@ -17,6 +17,7 @@ checksum=ff2b2419a7e06bd9cb335ffe391c7409b49a0f0130b890bd54692a3986699c9b
 make_dirs="
  /var/lib/AccountsService/users 755 root root
  /var/lib/AccountsService/icons 755 root root"
+patch_args=-Np0
 
 # Package build options
 build_options="elogind gir"
diff --git a/srcpkgs/acct/template b/srcpkgs/acct/template
index 860bb6b28ccf..b3ac5cc05599 100644
--- a/srcpkgs/acct/template
+++ b/srcpkgs/acct/template
@@ -9,6 +9,7 @@ license="GPL-3.0-or-later"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4c15bf2b58b16378bcc83f70e77d4d40ab0b194acf2ebeefdb507f151faa663f
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	post_extract() {
diff --git a/srcpkgs/acpi_call-dkms/template b/srcpkgs/acpi_call-dkms/template
index 2a24e481538f..752770b0da9d 100644
--- a/srcpkgs/acpi_call-dkms/template
+++ b/srcpkgs/acpi_call-dkms/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/damadmai/acpi_call"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=c48a0a8768d657a8da7b59d7dbf6276554313fa6a0cb012fa4cf85a77e55f44b
+patch_args=-Np0
 
 dkms_modules="acpi_call ${version}"
 depends="dkms"
diff --git a/srcpkgs/acpid/template b/srcpkgs/acpid/template
index 8312d0e4e15a..df44a949213a 100644
--- a/srcpkgs/acpid/template
+++ b/srcpkgs/acpid/template
@@ -10,6 +10,7 @@ homepage="https://sourceforge.net/projects/acpid2/"
 distfiles="${SOURCEFORGE_SITE}/acpid2/acpid-${version}.tar.xz"
 checksum=f2d2d30b3edc3234bd82f6f7186699a6aa3c85c8d20bc4e30e9b3c68a1ed157e
 conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"
+patch_args=-Np0
 
 post_install() {
 	vinstall ${FILESDIR}/handler.sh 755 etc/acpi
diff --git a/srcpkgs/actiona/template b/srcpkgs/actiona/template
index 6ce3ccdc6b41..9b66b6e673a2 100644
--- a/srcpkgs/actiona/template
+++ b/srcpkgs/actiona/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://actiona.tools/"
 distfiles="https://github.com/Jmgr/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=447065e380f8f37db4c8af01df8e1b9d7189cd256205f758845b71d8de6f37ea
+patch_args=-Np0
 
 post_build() {
 	lrelease-qt5 locale/*.ts
diff --git a/srcpkgs/afterstep/template b/srcpkgs/afterstep/template
index ba9c15546dea..f5b99af26493 100644
--- a/srcpkgs/afterstep/template
+++ b/srcpkgs/afterstep/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://www.afterstep.org/"
 distfiles="https://github.com/sashavasko/${pkgname}-devel/archive/${version}.tar.gz"
 checksum=7a82d06a9ce432ef3b0856ff39f6da416aa8cbc249dbb2ff3c1cdcb02e2ca46d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi libAfterBase
diff --git a/srcpkgs/agg/template b/srcpkgs/agg/template
index a313e19cb1f9..5cdbcaa17b47 100644
--- a/srcpkgs/agg/template
+++ b/srcpkgs/agg/template
@@ -13,6 +13,7 @@ homepage="http://www.antigrain.com/"
 license="GPL-2.0-or-later"
 distfiles="http://www.antigrain.com/agg-${version}.tar.gz"
 checksum=ab1edc54cc32ba51a62ff120d501eecd55fceeedf869b9354e7e13812289911f
+patch_args=-Np0
 
 pre_configure() {
 	sed -e '/AM_C_PROTOTYPES/d' -i configure.in
diff --git a/srcpkgs/allegro4/template b/srcpkgs/allegro4/template
index f8901c34cecc..99b570dcb675 100644
--- a/srcpkgs/allegro4/template
+++ b/srcpkgs/allegro4/template
@@ -17,6 +17,7 @@ homepage="http://alleg.sourceforge.net/"
 homepage="https://liballeg.org"
 distfiles="https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz"
 checksum=ec19dbc9a021244582b4819b3583ee594b50141f9fcf6944a4ed8069cbf8d4d4
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/allegro5/template b/srcpkgs/allegro5/template
index f55a7eb6c144..d96d1b779231 100644
--- a/srcpkgs/allegro5/template
+++ b/srcpkgs/allegro5/template
@@ -17,6 +17,7 @@ license="Allegro License (MIT alike)"
 homepage="https://liballeg.org/"
 distfiles="https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz"
 checksum=5de8189ec051e1865f359654f86ec68e2a12a94edd00ad06d1106caa5ff27763
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/alsa-firmware/template b/srcpkgs/alsa-firmware/template
index b85bc791275d..8ded0831aa1c 100644
--- a/srcpkgs/alsa-firmware/template
+++ b/srcpkgs/alsa-firmware/template
@@ -12,6 +12,7 @@ distfiles="https://www.alsa-project.org/files/pub/firmware/${pkgname}-${version}
 checksum=b67b6d7d08bcfc247ef6ff0ab88a99c188305a3cf57ae2dfd0bcd9a5b36cd5bb
 nostrip=yes
 ignore_elf_files="/usr/share/alsa/firmware/mixartloader/miXart8.elf"
+patch_args=-Np0
 
 pre_configure() {
 	export CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" LDFLAGS="${BUILD_LDFLAGS}"
diff --git a/srcpkgs/alsa-tools/template b/srcpkgs/alsa-tools/template
index 1078472c79ae..e96cc23f1547 100644
--- a/srcpkgs/alsa-tools/template
+++ b/srcpkgs/alsa-tools/template
@@ -12,6 +12,7 @@ homepage="http://alsa-project.org"
 distfiles="https://www.alsa-project.org/files/pub/tools/alsa-tools-${version}.tar.bz2"
 checksum=bfd3c7aae1289269605d3da02279159b10e3dabdd31e658cbceaa30170957349
 python_version=3
+patch_args=-Np0
 
 _tools="
 	as10k1 echomixer envy24control hdajackretask hdajacksensetest hda-verb hdspconf
diff --git a/srcpkgs/amdvlk/template b/srcpkgs/amdvlk/template
index 1182a174b558..6a29a3bc9290 100644
--- a/srcpkgs/amdvlk/template
+++ b/srcpkgs/amdvlk/template
@@ -42,6 +42,7 @@ checksum="ec17d7f7c7af5adaa2fee7744321da3665be215105df7c3fc72bfeff2575a509
  186060fbcf87165224ba7df0e1858b66ebc42cf190c481aef1df8d89ebab7abd"
 nocross=yes
 lib32files="/usr/share/vulkan/icd.d/amd_icd32.json"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*) nodebug=yes;;
diff --git a/srcpkgs/angrysearch/template b/srcpkgs/angrysearch/template
index 96b6b6604ba8..bf03527607a7 100644
--- a/srcpkgs/angrysearch/template
+++ b/srcpkgs/angrysearch/template
@@ -13,6 +13,7 @@ homepage="https://github.com/dotheevo/angrysearch/"
 distfiles="http://github.com/dotheevo/${pkgname}/archive/v${version}.tar.gz"
 checksum=9a550649c3efafb26660860758f2e75702ce96a0a0c50dc34ced2967b51a843f
 python_version=3
+patch_args=-Np0
 
 do_install() {
 	vinstall angrysearch.desktop 644 "usr/share/applications"
diff --git a/srcpkgs/anjuta/template b/srcpkgs/anjuta/template
index b46d58aeafe3..e861c17df632 100644
--- a/srcpkgs/anjuta/template
+++ b/srcpkgs/anjuta/template
@@ -22,6 +22,7 @@ license="GPL-2.0-or-later"
 homepage="https://projects.gnome.org/anjuta"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=42a93130ed3ee02d064a7094e94e1ffae2032b3f35a87bf441e37fc3bb3a148f
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/anki/template b/srcpkgs/anki/template
index 55976fbd26eb..731999e63600 100644
--- a/srcpkgs/anki/template
+++ b/srcpkgs/anki/template
@@ -13,6 +13,7 @@ homepage="https://apps.ankiweb.net"
 changelog="https://apps.ankiweb.net/docs/changes.html"
 distfiles="https://apps.ankiweb.net/downloads/archive/anki-$version-source.tgz"
 checksum=5a53760164c77d619f55107a13099cffe620566a7f610b61b6c4b52487f3bb89
+patch_args=-Np0
 
 python_version=3
 
diff --git a/srcpkgs/antimicrox/template b/srcpkgs/antimicrox/template
index 6a77e8e3a09b..1e4a1d081868 100644
--- a/srcpkgs/antimicrox/template
+++ b/srcpkgs/antimicrox/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/AntiMicroX/antimicrox"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=53c6b0e6c8ea8c3a5527b56e1ad052eae983ba36abfc090769c6164bc5f342dd
+patch_args=-Np0
 
 libantimicrox_package() {
 	short_desc+=" - libraries"
diff --git a/srcpkgs/antiword/template b/srcpkgs/antiword/template
index a4dfb6ceb229..c33563fa0c9a 100644
--- a/srcpkgs/antiword/template
+++ b/srcpkgs/antiword/template
@@ -12,6 +12,7 @@ distfiles="http://www.winfield.demon.nl/linux/antiword-${version}.tar.gz
  http://sources.debian.net/data/main/a/antiword/0.37-10/debian/patches/docx.patch"
 checksum="8e2c000fcbc6d641b0e6ff95e13c846da3ff31097801e86702124a206888f5ac
  0ca787f8e31a2e05e6c0ff73406d9a7f0355fe27238a0cde3ed7cf6d3418c8aa"
+patch_args=-Np0
 
 do_build() {
 	# debian patch for better docx handling
diff --git a/srcpkgs/apache/template b/srcpkgs/apache/template
index 3c92ff8fc988..24fa60ac48a6 100644
--- a/srcpkgs/apache/template
+++ b/srcpkgs/apache/template
@@ -37,6 +37,7 @@ homepage="http://httpd.apache.org/"
 changelog="http://www.apache.org/dist/httpd/CHANGES_2.4"
 distfiles="https://archive.apache.org/dist/httpd/httpd-${version}.tar.bz2"
 checksum=1bc826e7b2e88108c7e4bf43c026636f77a41d849cfb667aa7b5c0b86dbf966c
+patch_args=-Np0
 
 system_accounts="_${pkgname}"
 _apache_homedir="/srv/www/$pkgname"
diff --git a/srcpkgs/apl/template b/srcpkgs/apl/template
index 88b8d32b6720..06472f651624 100644
--- a/srcpkgs/apl/template
+++ b/srcpkgs/apl/template
@@ -14,6 +14,7 @@ distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=144f4c858a0d430ce8f28be90a35920dd8e0951e56976cb80b55053fa0d8bbcb
 nocross="execs target binary: ./Gtk_server --ev1 > Gtk_events1.asciidoc"
 CXXFLAGS="-Wno-format-truncation -Wno-class-memaccess -Wno-maybe-uninitialized -Wno-restrict -Wno-cpp"
+patch_args=-Np0
 
 post_install() {
 	vdoc support-files/Dyalog-Keyboard/apl.xkb
diff --git a/srcpkgs/appstream-glib/template b/srcpkgs/appstream-glib/template
index 5eaf493d53f6..36c6fffca5d1 100644
--- a/srcpkgs/appstream-glib/template
+++ b/srcpkgs/appstream-glib/template
@@ -16,6 +16,7 @@ homepage="https://people.freedesktop.org/~hughsient/appstream-glib/"
 changelog="https://raw.githubusercontent.com/hughsie/appstream-glib/master/NEWS"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
 checksum=ca1ed22e3bde3912cb903aaa7de085d55771da454f1c0573fd9608e1de9c4002
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/apr/template b/srcpkgs/apr/template
index f2dc1241668a..1fa0399f64b6 100644
--- a/srcpkgs/apr/template
+++ b/srcpkgs/apr/template
@@ -11,6 +11,7 @@ license="Apache-2.0"
 homepage="http://apr.apache.org/"
 distfiles="http://www.apache.org/dist/apr/apr-${version}.tar.bz2"
 checksum=e2e148f0b2e99b8e5c6caa09f6d4fb4dd3e83f744aa72a952f94f5a14436f7ea
+patch_args=-Np0
 
 # Do not redefine struct iovec in include/apr_want.h
 CFLAGS="-DAPR_IOVEC_DEFINED=1"
diff --git a/srcpkgs/aqbanking/template b/srcpkgs/aqbanking/template
index ea55a80935d7..9f509f325469 100644
--- a/srcpkgs/aqbanking/template
+++ b/srcpkgs/aqbanking/template
@@ -12,6 +12,7 @@ homepage="http://www.aquamaniac.de/aqbanking"
 distfiles="https://www.aquamaniac.de/rdm/attachments/download/372/${pkgname}-${version}.tar.gz"
 checksum=a0e85da2072c927bc32cfd808caaccfdabe34725e75618b08d8049306d8355cc
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
diff --git a/srcpkgs/aqemu/template b/srcpkgs/aqemu/template
index eea61aa562bc..0ada7d5bc748 100644
--- a/srcpkgs/aqemu/template
+++ b/srcpkgs/aqemu/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://aqemu.sourceforge.net"
 distfiles="https://github.com/TBK/aqemu/archive/v${version}.tar.gz"
 checksum=576ae78de936518a1de057355ffc192b59e42be934f0111122b2c5fcafe318a7
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/ardour/template b/srcpkgs/ardour/template
index ae133e67b141..14e6810a0ac5 100644
--- a/srcpkgs/ardour/template
+++ b/srcpkgs/ardour/template
@@ -18,6 +18,7 @@ short_desc="Professional-grade digital audio workstation"
 maintainer="tibequadorian <tibequadorian@posteo.de>"
 license="GPL-2.0-or-later"
 homepage="http://ardour.org"
+patch_args=-Np0
 
 CXXFLAGS="-fpermissive"
 
diff --git a/srcpkgs/arduino/template b/srcpkgs/arduino/template
index d352962e73d3..5d6531ec93fc 100644
--- a/srcpkgs/arduino/template
+++ b/srcpkgs/arduino/template
@@ -19,6 +19,7 @@ checksum="2a2a7bf0a93d36dff2e27f50e490529f10ff73337d6a0b7b222fa6b1a529c9f7
  6c3ab029e0e4a75e2e603d449014374aa8269218fdd03a4aaa46ab743b1912fd"
 nostrip=yes
 nocross="cross build lacks essential libraries"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	broken="downloads multiple binaries linked to glibc; segfaults with gcompat"
diff --git a/srcpkgs/argon2/template b/srcpkgs/argon2/template
index 7cc1bb0617eb..04bdaf7a1419 100644
--- a/srcpkgs/argon2/template
+++ b/srcpkgs/argon2/template
@@ -14,6 +14,7 @@ license="CC0-1.0, Apache-2.0"
 homepage="https://github.com/P-H-C/phc-winner-argon2"
 distfiles="https://github.com/P-H-C/phc-winner-argon2/archive/${version}.tar.gz"
 checksum=daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c
+patch_args=-Np0
 
 libargon2_package() {
 	short_desc="Password hashing library"
diff --git a/srcpkgs/argyllcms/template b/srcpkgs/argyllcms/template
index 5fb8294254f7..33d0d14436cc 100644
--- a/srcpkgs/argyllcms/template
+++ b/srcpkgs/argyllcms/template
@@ -12,6 +12,7 @@ license="AGPL-3.0-or-later, GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://www.argyllcms.com/"
 distfiles="https://www.argyllcms.com/Argyll_V${version}_src.zip"
 checksum=be378ca836b17b8684db05e9feaab138d711835ef00a04a76ac0ceacd386a3e3
+patch_args=-Np0
 
 # Build system look only under / for headers and libraries. Breaks cross.
 nocross=yes
diff --git a/srcpkgs/ark/template b/srcpkgs/ark/template
index dfa7870ed4ca..22022fc8a649 100644
--- a/srcpkgs/ark/template
+++ b/srcpkgs/ark/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://kde.org/applications/en/utilities/org.kde.ark"
 distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=09e0294c36a881585183bf165020ef832bfbbd181547ea26eb78268aab46a768
+patch_args=-Np0
 
 do_check() {
 	cd build
diff --git a/srcpkgs/armadillo/template b/srcpkgs/armadillo/template
index 9407c3aa8b48..52e72128108d 100644
--- a/srcpkgs/armadillo/template
+++ b/srcpkgs/armadillo/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="http://arma.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/arma/${pkgname}-${version}.tar.xz"
 checksum=d78658c9442addf7f718eb05881150ee3ec25604d06dd3af4942422b3ce26d05
+patch_args=-Np0
 
 build_options="hdf5"
 desc_option_hdf5="HDF5 support"
diff --git a/srcpkgs/artyfx/template b/srcpkgs/artyfx/template
index f06781b63736..279fa42510d9 100644
--- a/srcpkgs/artyfx/template
+++ b/srcpkgs/artyfx/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://openavproductions.com/artyfx/"
 distfiles="https://github.com/openAVproductions/openAV-ArtyFX/archive/release-$version.tar.gz"
 checksum=a2a8d02b47bea44d0053cd4f8c6411f68a6fe9b9e4348a4139cd9bfd70105c00
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	armv7*)
diff --git a/srcpkgs/asignify/template b/srcpkgs/asignify/template
index 24b6f55108ea..a6bc88da22d8 100644
--- a/srcpkgs/asignify/template
+++ b/srcpkgs/asignify/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/vstakhov/asignify"
 distfiles="https://github.com/vstakhov/asignify/archive/${version}.tar.gz"
 checksum=81272713900b51049633139549181fa23e56eeb580e0ea0325546d2fe7ca503d
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/assimp/template b/srcpkgs/assimp/template
index 7d45161ede5d..39b1cb64289c 100644
--- a/srcpkgs/assimp/template
+++ b/srcpkgs/assimp/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="http://assimp.sourceforge.net/"
 distfiles="https://github.com/assimp/assimp/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=11310ec1f2ad2cd46b95ba88faca8f7aaa1efe9aa12605c55e3de2b977b3dbfc
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/astroid/template b/srcpkgs/astroid/template
index e37e50c628fe..b1c72bcbe608 100644
--- a/srcpkgs/astroid/template
+++ b/srcpkgs/astroid/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="http://astroidmail.github.io/"
 distfiles="https://github.com/astroidmail/astroid/archive/v${version}.tar.gz"
 checksum=8581bbdbc71bd00d4cdd473cfad8bc604628bb15616fe5eab5c623461f686c65
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qemu-user-static prelink-cross"
diff --git a/srcpkgs/astyle/template b/srcpkgs/astyle/template
index 860e5840811c..d6e09e75d70d 100644
--- a/srcpkgs/astyle/template
+++ b/srcpkgs/astyle/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://astyle.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${version}_linux.tar.gz"
 checksum=cbcc4cf996294534bb56f025d6f199ebfde81aa4c271ccbd5ee1c1a3192745d7
+patch_args=-Np0
 
 do_install() {
 	vbin bin/astyle
diff --git a/srcpkgs/at/template b/srcpkgs/at/template
index 772c4582b3e7..563b741d6af8 100644
--- a/srcpkgs/at/template
+++ b/srcpkgs/at/template
@@ -16,6 +16,7 @@ homepage="http://packages.qa.debian.org/a/at.html"
 distfiles="${DEBIAN_SITE}/main/a/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=2211da14914fde1f9cc83592838fb6385a32fb11fcecb7816c77700df6559088
 disable_parallel_build=yes
+patch_args=-Np0
 
 conf_files="/etc/at.deny"
 system_accounts="at"
diff --git a/srcpkgs/aterm/template b/srcpkgs/aterm/template
index cf474ff86dec..6608120fc2d9 100644
--- a/srcpkgs/aterm/template
+++ b/srcpkgs/aterm/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.afterstep.org/aterm.php"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=a161c3b2d9c7149130a41963899993af21eae92e8e362f4b5b3c7c4cb16760ce
+patch_args=-Np0
 
 pre_build() {
 	sed -i '/INSTALL_PROGRAM/s,-c -s,-c ,g' src/Makefile
diff --git a/srcpkgs/atomicparsley/template b/srcpkgs/atomicparsley/template
index b82abf7d377c..4f6d6cc2d8f2 100644
--- a/srcpkgs/atomicparsley/template
+++ b/srcpkgs/atomicparsley/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://bitbucket.org/wez/atomicparsley/"
 distfiles="https://bitbucket.org/wez/atomicparsley/get/${version}.tar.gz"
 checksum=8ba4e3e21d7a9239932e2a6f34842194d8f9eba84ce9eb83fb35369f5f3f05ab
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/atop/template b/srcpkgs/atop/template
index 8c981e657879..8ba868d263e3 100644
--- a/srcpkgs/atop/template
+++ b/srcpkgs/atop/template
@@ -12,6 +12,7 @@ homepage="https://www.atoptool.nl/"
 distfiles="https://www.atoptool.nl/download/atop-${version}.tar.gz"
 checksum=4b911057ce50463b6e8b3016c5963d48535c0cddeebc6eda817e292b22f93f33
 python_version=2 #unverified
+patch_args=-Np0
 
 make_dirs="/var/log/atop 755 root root"
 
diff --git a/srcpkgs/attic/template b/srcpkgs/attic/template
index 153c0341edcb..3e7feff29c04 100644
--- a/srcpkgs/attic/template
+++ b/srcpkgs/attic/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://attic-backup.org/"
 distfiles="${PYPI_SITE}/A/Attic/Attic-${version}.tar.gz"
 checksum=6650cd28072101c2e05941e77b93a62f91da6179785e4e4b4880916c469bba2c
+patch_args=-Np0
 
 pre_build() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/attract/template b/srcpkgs/attract/template
index ceff4287193d..dd2419954f94 100644
--- a/srcpkgs/attract/template
+++ b/srcpkgs/attract/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="http://attractmode.org/"
 distfiles="https://github.com/mickelson/attract/archive/v${version}.tar.gz"
 checksum=4c17641ce0a0b9ff77da5e75f0cb26cc48e4c6295ef57d86a37db18b2bd9fbe9
+patch_args=-Np0
 
 CFLAGS="-std=gnu++11 \
 	-I extlibs/audio/include \
diff --git a/srcpkgs/aubio/template b/srcpkgs/aubio/template
index eaab3e9fdb72..c903e81ed8d5 100644
--- a/srcpkgs/aubio/template
+++ b/srcpkgs/aubio/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="http://aubio.org"
 distfiles="${homepage}/pub/${pkgname}-${version}.tar.bz2"
 checksum=d48282ae4dab83b3dc94c16cf011bcb63835c1c02b515490e1883049c3d1f3da
+patch_args=-Np0
 
 libaubio_package() {
 	short_desc+=" - Runtime libraries"
diff --git a/srcpkgs/audacity/template b/srcpkgs/audacity/template
index c91520872ce5..4ed153f8b74c 100644
--- a/srcpkgs/audacity/template
+++ b/srcpkgs/audacity/template
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.audacityteam.org"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/Audacity-${version}.tar.gz"
 checksum=50240f07471373a7e5c2df65cc26eeeaaced9a0850ad1f95cb795f171ea3009f
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) ;;
diff --git a/srcpkgs/audiofile/template b/srcpkgs/audiofile/template
index a4eef3f40260..7779d5ec2034 100644
--- a/srcpkgs/audiofile/template
+++ b/srcpkgs/audiofile/template
@@ -13,6 +13,7 @@ homepage="http://audiofile.68k.org"
 distfiles="http://github.com/mpruett/audiofile/archive/audiofile-${version}.tar.gz"
 checksum=52125fee6c7454d743acdc27ebda194c6b5c7b9111426c7d5fdea0754cd366cc
 disable_parallel_build=1
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/autoconf/template b/srcpkgs/autoconf/template
index 260e8c753f07..a3018bf709b9 100644
--- a/srcpkgs/autoconf/template
+++ b/srcpkgs/autoconf/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/autoconf"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=64ebcec9f8ac5b2487125a86a7760d2591ac9e1d3dbd59489633f9de62a57684
+patch_args=-Np0
 
 pre_check() {
 	# Disable failing test by adding
diff --git a/srcpkgs/autoconf213/template b/srcpkgs/autoconf213/template
index 31f07cb74c00..ebbcb4df4549 100644
--- a/srcpkgs/autoconf213/template
+++ b/srcpkgs/autoconf213/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.gnu.org/software/autoconf"
 distfiles="${GNU_SITE}/autoconf/autoconf-$version.tar.gz"
 checksum=f0611136bee505811e9ca11ca7ac188ef5323a8e2ef19cffd3edb3cf08fd791e
+patch_args=-Np0
 
 post_install() {
 	# Avoid conflict with other versions.
diff --git a/srcpkgs/autofs/template b/srcpkgs/autofs/template
index b306368242d3..bd2ab2792540 100644
--- a/srcpkgs/autofs/template
+++ b/srcpkgs/autofs/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/daemons/autofs"
 distfiles="${KERNEL_SITE}/daemons/autofs/v5/autofs-${version}.tar.xz"
 checksum=a36b268611b79b07051749870ba540b139938efc84bc0293244c483e94f9ced7
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/gssglue -I${XBPS_CROSS_BASE}/usr/include/tirpc"
 
diff --git a/srcpkgs/autogen/template b/srcpkgs/autogen/template
index cfc9d20c9df8..3b6d72d5090d 100644
--- a/srcpkgs/autogen/template
+++ b/srcpkgs/autogen/template
@@ -17,6 +17,7 @@ replaces="autogen-docs>=0 autogen-devel>=0"
 _libopts=libopts-42.1.17.tar.gz
 CFLAGS="-Wno-error=format-truncation -Wno-error=format-overflow
 	-Wno-error=unused-parameter"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" autogen guile-devel"
diff --git a/srcpkgs/avidemux/template b/srcpkgs/avidemux/template
index e62a3bc2c436..abedf3e2bc0c 100644
--- a/srcpkgs/avidemux/template
+++ b/srcpkgs/avidemux/template
@@ -19,6 +19,7 @@ homepage="http://avidemux.sourceforge.net/"
 changelog="http://avidemux.sourceforge.net/news.html"
 distfiles="${SOURCEFORGE_SITE}/avidemux/avidemux/${version}/${pkgname}_${version}.tar.gz"
 checksum=9a88741f3535443d4bde35d4207ca2ff96d3b136db2e7232cb50dd6b4eb293cf
+patch_args=-Np0
 
 do_configure() {
 	MAKEFLAGS=${makejobs} \
diff --git a/srcpkgs/avr-binutils/template b/srcpkgs/avr-binutils/template
index 7d3a15725c57..d00bec12e17a 100644
--- a/srcpkgs/avr-binutils/template
+++ b/srcpkgs/avr-binutils/template
@@ -14,6 +14,7 @@ license="GPL-3.0-only"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="$GNU_SITE/binutils/binutils-$version.tar.xz"
 checksum=0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04
+patch_args=-Np0
 
 post_install() {
 	rm -rf "$DESTDIR"/usr/share/info \
diff --git a/srcpkgs/bacula-common/template b/srcpkgs/bacula-common/template
index 04b89e171ad8..9facbbf2efe2 100644
--- a/srcpkgs/bacula-common/template
+++ b/srcpkgs/bacula-common/template
@@ -17,6 +17,7 @@ distfiles="${SOURCEFORGE_SITE}/bacula/bacula-${version}.tar.gz"
 checksum=a40d04d2c48135972cecb6578405e835c4b9d798c0950017de0fad40ca94e8a0
 alternatives="bacula-db-backend:/usr/lib/libbaccats-${version}.so:/usr/lib/libbaccats-sqlite3-${version}.so"
 shlib_provides="libbaccats-${version}.so"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/bananapi-uboot/template b/srcpkgs/bananapi-uboot/template
index fabedf3d5978..80acf0c6e8fd 100644
--- a/srcpkgs/bananapi-uboot/template
+++ b/srcpkgs/bananapi-uboot/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/hardkernel/u-boot"
 distfiles="https://github.com/Bananian/u-boot-bananapi/archive/bananian-v${version}.tar.gz"
 checksum=8be162b0b8e85d3fbc2e14af3b71c4a204f4a9c63f6f13275f86629624c1d6a6
+patch_args=-Np0
 
 conf_files="/boot/uEnv.txt"
 archs="armv7l*"
diff --git a/srcpkgs/basu/template b/srcpkgs/basu/template
index 1a3614b781c3..0244cc11cc20 100644
--- a/srcpkgs/basu/template
+++ b/srcpkgs/basu/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/emersion/basu"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=e2fda9b69fc6c4530173fcf8db94c29aa5f3ed932d948cc6a31892623cde5e4b
+patch_args=-Np0
 
 basu-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/batman-adv14/template b/srcpkgs/batman-adv14/template
index 8fb35827056a..a1776f121092 100644
--- a/srcpkgs/batman-adv14/template
+++ b/srcpkgs/batman-adv14/template
@@ -11,6 +11,7 @@ distfiles="http://downloads.open-mesh.org/batman/releases/batman-adv-${version}/
 checksum=a9b1b7542c94cc6bf7c97b7b0d02bf071b5632a64480ae419358b9cb9cab6870
 provides="batman-adv-${version}_${revision}"
 conflicts="batman-adv>=0"
+patch_args=-Np0
 
 dkms_modules="batman-adv14 ${version}"
 depends="dkms"
diff --git a/srcpkgs/bbkeys/template b/srcpkgs/bbkeys/template
index a9a52c11007a..40ae05dec712 100644
--- a/srcpkgs/bbkeys/template
+++ b/srcpkgs/bbkeys/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/bbidulock/bbkeys"
 distfiles="${homepage}/releases/download/rel-${version//.}/bbkeys-${version}.tar.lz"
 checksum=ece0113b2cc6367e2cad95f59cf43d7576b5a1a7eb8a9e3f10ce9814db67b95c
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/bbswitch/template b/srcpkgs/bbswitch/template
index 4dc9d3235e60..049ba73bc327 100644
--- a/srcpkgs/bbswitch/template
+++ b/srcpkgs/bbswitch/template
@@ -11,6 +11,7 @@ homepage="http://github.com/Bumblebee-Project/bbswitch"
 distfiles="https://github.com/Bumblebee-Project/bbswitch/archive/v$version.tar.gz"
 checksum=76cabd3f734fb4fe6ebfe3ec9814138d0d6f47d47238521ecbd6a986b60d1477
 dkms_modules="${pkgname} ${version}"
+patch_args=-Np0
 
 do_install() {
 	vinstall Makefile 644 usr/src/${pkgname}-${version}
diff --git a/srcpkgs/bc/template b/srcpkgs/bc/template
index c6ca1b7d899a..bff25a4c64e9 100644
--- a/srcpkgs/bc/template
+++ b/srcpkgs/bc/template
@@ -18,6 +18,7 @@ alternatives="
  dc:dc:/usr/bin/gnu-dc
  dc:dc.1:/usr/share/man/man1/gnu-dc.1"
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" bc"
diff --git a/srcpkgs/bcc/template b/srcpkgs/bcc/template
index cbdb9de0abcf..091ad9473a2d 100644
--- a/srcpkgs/bcc/template
+++ b/srcpkgs/bcc/template
@@ -15,6 +15,7 @@ homepage="https://github.com/iovisor/bcc"
 distfiles="https://github.com/iovisor/bcc/releases/download/v${version}/bcc-src-with-submodule.tar.gz"
 checksum=93edc925675262aa509f5eaf146f2fc7dfa3e01d1b0336a5de01ee6d72fa493b
 python_version="3"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/bctoolbox/template b/srcpkgs/bctoolbox/template
index 4de00e55e201..f308b6874143 100644
--- a/srcpkgs/bctoolbox/template
+++ b/srcpkgs/bctoolbox/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="https://gitlab.linphone.org/BC/public/bctoolbox"
 distfiles="https://gitlab.linphone.org/BC/public/bctoolbox/-/archive/${version}/bctoolbox-${version}.tar.gz"
 checksum=1364d5f42b5514546b9c6654c227804ff92cf9cf13fdc7cb6ca666e3bb5a7987
+patch_args=-Np0
 
 bctoolbox-devel_package() {
 	depends="bctoolbox-${version}_${revision}"
diff --git a/srcpkgs/beep/template b/srcpkgs/beep/template
index 0f3c10d9781f..3be4bf6147f3 100644
--- a/srcpkgs/beep/template
+++ b/srcpkgs/beep/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.johnath.com/beep/"
 distfiles="http://www.johnath.com/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=59acef7a987de5557cefd1a904666cc2691f132929af39e65450b182a581ec2d
+patch_args=-Np0
 
 post_extract() {
 	rm -f Makefile
diff --git a/srcpkgs/beets/template b/srcpkgs/beets/template
index 8dfb44bf88ad..60e86df7539f 100644
--- a/srcpkgs/beets/template
+++ b/srcpkgs/beets/template
@@ -17,6 +17,7 @@ license="MIT"
 homepage="http://beets.radbox.org/"
 distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=d29b432cab0c80947b5229f548762948c4dd4a430e5d02760bfeb95da3cc8054
+patch_args=-Np0
 
 post_install() {
 	vman man/beet.1
diff --git a/srcpkgs/beignet/template b/srcpkgs/beignet/template
index 29a1ef99dbda..dbe0d1888c67 100644
--- a/srcpkgs/beignet/template
+++ b/srcpkgs/beignet/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.freedesktop.org/wiki/Software/Beignet/"
 distfiles="https://01.org/sites/default/files/${pkgname}-${version}-source.tar.gz"
 checksum=c555edba149de23243965a703f39f79fa06f15bcff5a3762b5544b0925010b43
+patch_args=-Np0
 
 post_install() {
 	# remove CL headers, we do use opencl-headers instead.
diff --git a/srcpkgs/belle-sip/template b/srcpkgs/belle-sip/template
index 6351feba635d..9f9c297d3589 100644
--- a/srcpkgs/belle-sip/template
+++ b/srcpkgs/belle-sip/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.linphone.org"
 distfiles="https://gitlab.linphone.org/BC/public/belle-sip/-/archive/${version}/belle-sip-${version}.tar.gz"
 checksum=4f9218b0bbf55c2f68d70a0e83779e591ef9fe97f1caf7550768ea192ee34cee
+patch_args=-Np0
 
 belle-sip-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/berkeley-abc/template b/srcpkgs/berkeley-abc/template
index f5aeb2a1e4fd..280c3e0bce2c 100644
--- a/srcpkgs/berkeley-abc/template
+++ b/srcpkgs/berkeley-abc/template
@@ -15,6 +15,7 @@ license="custom:University-of-California, BSD-4-Clause, MIT, BSD-2-Clause"
 homepage="http://www.eecs.berkeley.edu/~alanmi/abc/"
 distfiles="https://github.com/berkeley-abc/abc/archive/$_gitrev.tar.gz"
 checksum=52f1e9bf62c1e0d3b3cbe145f61b409a725e73fe606ba010efcbb2701a14171b
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e '/^CC *:=/d' -e '/^CXX *:=/d' -e '/^AR *:=/d' \
diff --git a/srcpkgs/berry/template b/srcpkgs/berry/template
index 05256589af24..a9fb2bf94342 100644
--- a/srcpkgs/berry/template
+++ b/srcpkgs/berry/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/JLErvin/berry"
 distfiles="https://github.com/JLErvin/berry/archive/${version}.tar.gz"
 checksum=1d6de883a0cd96ceb167c5ad2e855b0b15fa84872d41a22e05d0fdf0cf4be6b8
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/biew/template b/srcpkgs/biew/template
index 73a17e44c8d6..06db316d4c6a 100644
--- a/srcpkgs/biew/template
+++ b/srcpkgs/biew/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://beye.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/beye/${pkgname}/${version}/${pkgname}-${_shortversion}-src.tar.bz2"
 checksum=2e85f03c908dd6ec832461fbfbc79169a33f4caccf48c8fe60cbd29f5fb06d17
+patch_args=-Np0
 
 pre_configure() {
 	configure_args+=" --target-arch=generic --ld=$CC"
diff --git a/srcpkgs/bin86/template b/srcpkgs/bin86/template
index 8d711210193e..fd37d2a267d3 100644
--- a/srcpkgs/bin86/template
+++ b/srcpkgs/bin86/template
@@ -9,6 +9,7 @@ license="GPL-2"
 distfiles="http://v3.sk/~lkundrak/dev86/bin86-${version}.tar.gz"
 checksum=021e37cde3a20632c4c9000993cb4aa9f58cb82b1d3c26b9aeb62d6566925738
 archs="i686* x86_64*"
+patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" PREFIX=/usr
diff --git a/srcpkgs/binwalk/template b/srcpkgs/binwalk/template
index 6c61fff87aeb..cec10ddb7e74 100644
--- a/srcpkgs/binwalk/template
+++ b/srcpkgs/binwalk/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/ReFirmLabs/binwalk"
 distfiles="https://github.com/ReFirmLabs/binwalk/archive/v${version}.tar.gz"
 checksum=7ec9d8fcb8686f4060d37e1096669e3ed8ce1194c91ad80199622448bcc01b19
+patch_args=-Np0
 
 post_extract() {
 	vsed -i -e 's;/etc/bash_completion.d/%s;%s.bash;' setup.py
diff --git a/srcpkgs/bird/template b/srcpkgs/bird/template
index bc40598b0360..493605a5ceb1 100644
--- a/srcpkgs/bird/template
+++ b/srcpkgs/bird/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://bird.network.cz"
 distfiles="https://gitlab.labs.nic.cz/labs/bird/-/archive/v${version}/bird-v${version}.tar.gz"
 checksum=4d0eeea762dcd4422e1e276e2ed123cfed630cf1cce017b50463d79fcf2fff0c
+patch_args=-Np0
 
 conf_files="/etc/bird.conf"
 system_accounts="_bird"
diff --git a/srcpkgs/bish/template b/srcpkgs/bish/template
index 2355c664a428..f5140a9ac2d6 100644
--- a/srcpkgs/bish/template
+++ b/srcpkgs/bish/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/tdenniston/bish"
 distfiles="https://github.com/tdenniston/bish/archive/v${version}.tar.gz"
 checksum=796d1efcbc9e8c7ea604881860aa8d857aad089c4eeb766283c21c210687942b
+patch_args=-Np0
 
 do_install() {
 	vbin bish
diff --git a/srcpkgs/bitchx/template b/srcpkgs/bitchx/template
index 450fde27deed..f5de7ac86973 100644
--- a/srcpkgs/bitchx/template
+++ b/srcpkgs/bitchx/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://bitchx.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=2d270500dd42b5e2b191980d584f6587ca8a0dbda26b35ce7fadb519f53c83e2
+patch_args=-Np0
 
 disable_parallel_build=yes
 
diff --git a/srcpkgs/bitfighter/template b/srcpkgs/bitfighter/template
index c3b2cc22a265..58e033107399 100644
--- a/srcpkgs/bitfighter/template
+++ b/srcpkgs/bitfighter/template
@@ -20,6 +20,7 @@ checksum="cd47c453d9e6875ded627b987a645e2ff2c757363f394b152f62d868e1d81427
  d628a2b0af024a965b92877f321f2174d6309b7ce9236775af3bd86a67fcc72b"
 python_version=2
 replaces="bitfighter-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/blackboxwm/template b/srcpkgs/blackboxwm/template
index 10ad09eac501..05fffcbf3af0 100644
--- a/srcpkgs/blackboxwm/template
+++ b/srcpkgs/blackboxwm/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/bbidulock/blackboxwm"
 distfiles="${homepage}/releases/download/${version}/blackbox-${version}.tar.lz"
 checksum=e4f814fb02f6a977e9aab1c60192087597b79b0a56cc4a14e8a962b7d45d82d1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/bmon/template b/srcpkgs/bmon/template
index 67b13cb31a54..64f426cc2eca 100644
--- a/srcpkgs/bmon/template
+++ b/srcpkgs/bmon/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause, MIT"
 homepage="http://github.com/tgraf/bmon/"
 distfiles="http://github.com/tgraf/${pkgname}/archive/v${version}.tar.gz"
 checksum=d5e503ff6b116c681ebf4d10e238604dde836dceb9c0008eb92416a96c87ca40
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/boinc/template b/srcpkgs/boinc/template
index 1eba13495c2a..944fdaf172d3 100644
--- a/srcpkgs/boinc/template
+++ b/srcpkgs/boinc/template
@@ -21,6 +21,7 @@ system_accounts="boinc"
 boinc_homedir="/var/lib/boinc"
 boinc_shell="/bin/bash"
 conflicts="boinc-nox>=0"
+patch_args=-Np0
 
 CXXFLAGS="-Wno-redundant-decls"
 
diff --git a/srcpkgs/bomi/template b/srcpkgs/bomi/template
index 4cab853148a5..f66197af1d88 100644
--- a/srcpkgs/bomi/template
+++ b/srcpkgs/bomi/template
@@ -21,6 +21,7 @@ changelog="https://raw.githubusercontent.com/xylosper/bomi/master/CHANGES.txt"
 distfiles="https://github.com/xylosper/bomi/archive/v${version}.tar.gz"
 checksum=c76ac45733cdafa7003bbc178e5a90a683df9aec30cd85f188bb17c7af9e282e
 nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/1382/steps/shell_3/logs/stdio
+patch_args=-Np0
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/bonnie++/template b/srcpkgs/bonnie++/template
index 8fa4be8c3d62..5c1be95b51f3 100644
--- a/srcpkgs/bonnie++/template
+++ b/srcpkgs/bonnie++/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="http://www.coker.com.au/bonnie++/"
 distfiles="http://www.coker.com.au/bonnie++/bonnie++-${version}.tgz"
 checksum=6e0bcbc08b78856fd998dd7bcb352d4615a99c26c2dc83d5b8345b102bad0b04
+patch_args=-Np0
 
 post_extract() {
 	sed -i  -e 's/sbin/bin/g' \
diff --git a/srcpkgs/boomerang/template b/srcpkgs/boomerang/template
index 904e0e8571ff..00b49809a562 100644
--- a/srcpkgs/boomerang/template
+++ b/srcpkgs/boomerang/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/BoomerangDecompiler/boomerang"
 distfiles="https://github.com/BoomerangDecompiler/boomerang/archive/v${version}.tar.gz"
 checksum=1d2c9c2f5de1a3e1d5fe3879e82bca268d1c49e6ba3d0a7848695f18c594384d
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*) ;;
diff --git a/srcpkgs/boost/template b/srcpkgs/boost/template
index 5b559e932d18..23f6a6acc51c 100644
--- a/srcpkgs/boost/template
+++ b/srcpkgs/boost/template
@@ -12,6 +12,7 @@ homepage="http://www.boost.org/"
 distfiles="https://dl.bintray.com/boostorg/release/${version}/source/boost_${version//./_}.tar.bz2"
 checksum=59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417cc660722
 python_version=3
+patch_args=-Np0
 
 CXXFLAGS="-std=c++14"
 
diff --git a/srcpkgs/bootchart2/template b/srcpkgs/bootchart2/template
index 62cd9d2116a3..e63b864e5e44 100644
--- a/srcpkgs/bootchart2/template
+++ b/srcpkgs/bootchart2/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/xrmx/bootchart/archive/${version}.tar.gz"
 checksum=cec7871c3dba47a1165873b0acde30a82221fde1d3a942da5e7dd09b513d2017
 make_dirs="/usr/lib/bootchart/tmpfs 0755 root root"
 conflicts="bootchart>=0"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's,\$(EARLY_PREFIX)/sbin/,/usr/bin/,' Makefile
diff --git a/srcpkgs/botan/template b/srcpkgs/botan/template
index d2e6ffb9ccda..5e9e3c803e32 100644
--- a/srcpkgs/botan/template
+++ b/srcpkgs/botan/template
@@ -14,6 +14,7 @@ homepage="https://botan.randombit.net/"
 distfiles="https://botan.randombit.net/releases/Botan-${version}.tar.xz"
 checksum=92ed6ebc918d86bd1b04221ca518af4cf29cc326c4760740bd2d22e61cea2628
 python_version=3
+patch_args=-Np0
 
 LDFLAGS="-pthread"
 CXXFLAGS="-O3"
diff --git a/srcpkgs/bridge-utils/template b/srcpkgs/bridge-utils/template
index 08827cd6ad58..e50ac51ba446 100644
--- a/srcpkgs/bridge-utils/template
+++ b/srcpkgs/bridge-utils/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge"
 distfiles="${KERNEL_SITE}/utils/net/bridge-utils/bridge-utils-${version}.tar.xz"
 checksum=cc67efb5d5fb8928a6569b3fade2b4042ec17da04678dab127d96b46489e26c8
+patch_args=-Np0
 
 pre_configure() {
 	sed "s/u_int\([0-9]*\)_t/uint\1_t/" -i libbridge/libbridge.h
diff --git a/srcpkgs/brltty/template b/srcpkgs/brltty/template
index 53e15ed6ff03..b9c6ba6ec6bf 100644
--- a/srcpkgs/brltty/template
+++ b/srcpkgs/brltty/template
@@ -14,6 +14,7 @@ homepage="http://mielke.cc/brltty/"
 distfiles="http://mielke.cc/brltty/archive/brltty-${version}.tar.xz"
 checksum=4a28e3f1879aee9082f9ce4100fd4053be47add7f8ab0f2af6d6a20590934b62
 python_version=3
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) configure_args="${configure_args} --with-ports-package=glibc";;
diff --git a/srcpkgs/broadcom-wl-dkms/template b/srcpkgs/broadcom-wl-dkms/template
index 55bc9c0e1d36..a31c8c385c7c 100644
--- a/srcpkgs/broadcom-wl-dkms/template
+++ b/srcpkgs/broadcom-wl-dkms/template
@@ -1,4 +1,5 @@
 # Template file for 'broadcom-wl-dkms'
+patch_args=-Np0
 
 pkgname=broadcom-wl-dkms
 version=6.30.223.271
diff --git a/srcpkgs/browsh/template b/srcpkgs/browsh/template
index 856fefd13d78..67675e7dcab0 100644
--- a/srcpkgs/browsh/template
+++ b/srcpkgs/browsh/template
@@ -17,6 +17,7 @@ distfiles="https://$go_import_path/archive/v$version.tar.gz
 checksum="965ce2d94d1d9e4b92411d344421c0bea40994527cafd694c5a6e8e206681ede
  b410527a69dba88a30d8a6d341a20eb5cb1f84b684e9bc8bb6bc88a2930e0eea"
 skip_extraction="browsh.xpi"
+patch_args=-Np0
 
 pre_build() {
 	_prefix="$XBPS_SRCDISTDIR/$pkgname-$version"
diff --git a/srcpkgs/bsdiff/template b/srcpkgs/bsdiff/template
index d1396b8c707c..5f038e447a77 100644
--- a/srcpkgs/bsdiff/template
+++ b/srcpkgs/bsdiff/template
@@ -10,6 +10,7 @@ homepage="http://www.daemonology.net/bsdiff"
 distfiles="${DEBIAN_SITE}/main/b/bsdiff/bsdiff_${version}.orig.tar.gz"
 #distfiles="${homepage}/${pkgname}-${version}.tar.gz"
 checksum=18821588b2dc5bf159aa37d3bcb7b885d85ffd1e19f23a0c57a58723fea85f48
+patch_args=-Np0
 
 do_build() {
 	for i in diff patch; do
diff --git a/srcpkgs/bsdunzip/template b/srcpkgs/bsdunzip/template
index e6ac1e4a369f..922b71d2b7de 100644
--- a/srcpkgs/bsdunzip/template
+++ b/srcpkgs/bsdunzip/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause, ISC"
 homepage="https://github.com/somasis/bsdunzip"
 distfiles="https://github.com/somasis/bsdunzip/archive/${version}.tar.gz"
 checksum=06c52c77fa518732665aa2daa73f364cd2470a5d47a83c9c79f86f207cf3ecc1
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/bubblewrap/template b/srcpkgs/bubblewrap/template
index 4df1dac59395..c8d5dda04338 100644
--- a/srcpkgs/bubblewrap/template
+++ b/srcpkgs/bubblewrap/template
@@ -11,6 +11,7 @@ license="LGPL-2.0-or-later"
 homepage="https://github.com/containers/bubblewrap"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=b9c69b9b1c61a608f34325c8e1a495229bacf6e4a07cbb0c80cf7a814d7ccc03
+patch_args=-Np0
 
 post_install() {
 	if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/buffer/template b/srcpkgs/buffer/template
index df0fb0c0c640..e1c05e510af0 100644
--- a/srcpkgs/buffer/template
+++ b/srcpkgs/buffer/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/scotte/buffer"
 distfiles="https://github.com/scotte/buffer/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=14a881fcd070b1dcd8ec91d8d036f22094c22ac3769c274f0d7d6799038a73c3
+patch_args=-Np0
 
 pre_build() {
 	sed -i Makefile \
diff --git a/srcpkgs/buildbot/template b/srcpkgs/buildbot/template
index ae905fc67ab8..bec731f4e532 100644
--- a/srcpkgs/buildbot/template
+++ b/srcpkgs/buildbot/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://buildbot.net/"
 distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=331efd07bd7522c222a8fb258801e8d78332c88d778ee76416b9e1028676e964
+patch_args=-Np0
 
 pre_install() {
 	sed -i 's,#!/usr/bin/env jython,#!/usr/bin/python2,' contrib/run_maxq.py
diff --git a/srcpkgs/buku/template b/srcpkgs/buku/template
index b2c1962d9195..2785910412d1 100644
--- a/srcpkgs/buku/template
+++ b/srcpkgs/buku/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/jarun/Buku"
 distfiles="https://github.com/jarun/Buku/archive/v${version}.tar.gz"
 checksum=2e1968016d3856184db8ac49cdc92a6c70869f62846185f28c8c60ead0c42888
+patch_args=-Np0
 
 do_install() {
 	vbin buku
diff --git a/srcpkgs/bullet/template b/srcpkgs/bullet/template
index 9dabf7d89292..3f2af8aafdfd 100644
--- a/srcpkgs/bullet/template
+++ b/srcpkgs/bullet/template
@@ -15,6 +15,7 @@ homepage="http://www.bulletphysics.com/Bullet/"
 distfiles="https://github.com/bulletphysics/bullet3/archive/${version}.tar.gz"
 checksum=baa642c906576d4d98d041d0acb80d85dd6eff6e3c16a009b1abf1ccd2bc0a61
 shlib_provides="libOpenGLWindow.so libgwen.so"
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/bumblebee/template b/srcpkgs/bumblebee/template
index c54ea65d32c5..93aa7c8e3bf9 100644
--- a/srcpkgs/bumblebee/template
+++ b/srcpkgs/bumblebee/template
@@ -24,6 +24,7 @@ homepage="http://www.bumblebee-project.org/"
 distfiles="http://www.bumblebee-project.org/${pkgname}-${version}.tar.gz"
 checksum=1018703b07e2f607a4641249d69478ce076ae5a1e9dd6cff5694d394fa7ee30e
 system_groups="bumblebee"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/bup/template b/srcpkgs/bup/template
index b40c3cddbf68..5028dce8364d 100644
--- a/srcpkgs/bup/template
+++ b/srcpkgs/bup/template
@@ -14,6 +14,7 @@ distfiles="https://github.com/bup/bup/archive/${version}.tar.gz"
 checksum=a894cfa96c44b9ef48003b2c2104dc5fa6361dd2f4d519261a93178984a51259
 python_version=3
 nocross=yes
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's#^PREFIX=.*#PREFIX=/usr#' Makefile
diff --git a/srcpkgs/burp2-server/template b/srcpkgs/burp2-server/template
index f3d95a8f1523..c9d602c51242 100644
--- a/srcpkgs/burp2-server/template
+++ b/srcpkgs/burp2-server/template
@@ -1,5 +1,6 @@
 # Template file for 'burp2-server'
 _desc="Network-based backup and restore program"
+patch_args=-Np0
 
 pkgname=burp2-server
 version=2.4.0
diff --git a/srcpkgs/busybox/template b/srcpkgs/busybox/template
index 07377569ba5f..b580ccc52e9b 100644
--- a/srcpkgs/busybox/template
+++ b/srcpkgs/busybox/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://www.busybox.net"
 distfiles="${homepage}/downloads/busybox-${version}.tar.bz2"
 checksum=9d57c4bd33974140fd4111260468af22856f12f5b5ef7c70c8d9b75c712a0dee
+patch_args=-Np0
 
 _alternatives_core="
  ash:ash:/usr/bin/busybox
diff --git a/srcpkgs/bzip2/template b/srcpkgs/bzip2/template
index c39a9427efb1..d51b4a9e6efd 100644
--- a/srcpkgs/bzip2/template
+++ b/srcpkgs/bzip2/template
@@ -10,6 +10,7 @@ homepage="https://sourceware.org/bzip2/"
 changelog="https://sourceware.org/bzip2/CHANGES"
 distfiles="https://sourceware.org/pub/bzip2/bzip2-${version}.tar.gz"
 checksum=ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269
+patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CFLAGS="$CFLAGS -fPIC $LDFLAGS" LDFLAGS="$LDFLAGS" -f Makefile-libbz2_so
diff --git a/srcpkgs/c-blosc/template b/srcpkgs/c-blosc/template
index a488bfbf05d7..b272c4a370c0 100644
--- a/srcpkgs/c-blosc/template
+++ b/srcpkgs/c-blosc/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause, MIT"
 homepage="https://www.blosc.org"
 distfiles="https://github.com/Blosc/c-blosc/archive/v${version}.tar.gz"
 checksum=42c4d3fcce52af9f8e2078f8f57681bfc711706a3330cb72b9b39e05ae18a413
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSES/BLOSC.txt
diff --git a/srcpkgs/c-client/template b/srcpkgs/c-client/template
index bf65dc7277be..83210555d177 100644
--- a/srcpkgs/c-client/template
+++ b/srcpkgs/c-client/template
@@ -11,6 +11,7 @@ homepage="http://www.washington.edu/imap"
 distfiles="http://ftp.ntua.gr/pub/net/mail/imap/imap-${version}.tar.gz"
 checksum=53e15a2b5c1bc80161d42e9f69792a3fa18332b7b771910131004eb520004a28
 nocross=yes
+patch_args=-Np0
 
 do_configure() {
 	sed \
diff --git a/srcpkgs/ca-certificates/template b/srcpkgs/ca-certificates/template
index 854e76a613cd..cd82c7f4c9bc 100644
--- a/srcpkgs/ca-certificates/template
+++ b/srcpkgs/ca-certificates/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later, MPL-2.0"
 homepage="https://tracker.debian.org/pkg/ca-certificates"
 distfiles="${DEBIAN_SITE}/main/c/${pkgname}/${pkgname}_${version}.tar.xz"
 checksum=daa3afae563711c30a0586ddae4336e8e3974c2b627faaca404c4e0141b64665
+patch_args=-Np0
 
 post_extract() {
 	$BUILD_CC $BUILD_CFLAGS ${FILESDIR}/certdata2pem.c -o ${wrksrc}/mozilla/certdata2pem
diff --git a/srcpkgs/cabal-install/template b/srcpkgs/cabal-install/template
index 2c15789b1f9d..1db0f1c792e6 100644
--- a/srcpkgs/cabal-install/template
+++ b/srcpkgs/cabal-install/template
@@ -13,6 +13,7 @@ distfiles="https://hackage.haskell.org/packages/archive/${pkgname}/${version}/${
 checksum=a0555e895aaf17ca08453fde8b19af96725da8398e027aa43a49c1658a600cb0
 nopie_files="/usr/bin/cabal"
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	PREFIX=$PWD/build sh bootstrap.sh --jobs ${XBPS_MAKEJOBS} --user
diff --git a/srcpkgs/cackey/template b/srcpkgs/cackey/template
index 468dcd1c7b1b..6358543e178f 100644
--- a/srcpkgs/cackey/template
+++ b/srcpkgs/cackey/template
@@ -13,6 +13,7 @@ homepage="http://www.rkeene.org/projects/info/wiki/161"
 distfiles="http://cackey.rkeene.org/download/$version/cackey-$version.tar.gz"
 checksum=e2074055bab8eb1c277bfa3355767c50f792d5b87bf41f9c0d1af0e77f311583
 CPPFLAGS="-I$XBPS_CROSS_BASE/usr/include/PCSC"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/cadence/template b/srcpkgs/cadence/template
index b429ab1f0fcb..283dc9312e0b 100644
--- a/srcpkgs/cadence/template
+++ b/srcpkgs/cadence/template
@@ -16,6 +16,7 @@ license="GPL-2.0-only"
 homepage="http://kxstudio.linuxaudio.org/Applications:Cadence"
 distfiles="https://github.com/falkTX/Cadence/archive/v${version}.tar.gz"
 checksum=e530787ded0d53a3004c7a8260114ddb970c2aea43875d62eccd599ac96e1fd1
+patch_args=-Np0
 
 post_extract() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/calc/template b/srcpkgs/calc/template
index bc2087ca2bd3..d5c191ab4da4 100644
--- a/srcpkgs/calc/template
+++ b/srcpkgs/calc/template
@@ -11,6 +11,7 @@ homepage="http://www.isthe.com/chongo/tech/comp/calc/index.html"
 distfiles="http://www.isthe.com/chongo/src/calc/calc-${version}.tar.bz2"
 checksum=eb1dc5dd680019e30264109167e20539fe9ac869049d8b1639781a51d1dea84c
 disable_parallel_build=yes
+patch_args=-Np0
 
 post_extract() {
 	case $XBPS_TARGET_MACHINE in
diff --git a/srcpkgs/caps/template b/srcpkgs/caps/template
index 5555e35858a2..853aec8890bf 100644
--- a/srcpkgs/caps/template
+++ b/srcpkgs/caps/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://quitte.de/dsp/caps.html"
 distfiles="http://quitte.de/dsp/${pkgname}_${version}.tar.bz2"
 checksum=e7496c5bce05abebe3dcb635926153bbb58a9337a6e423f048d3b61d8a4f98c9
+patch_args=-Np0
 
 pre_build() {
 	make_build_args="CC=${CXX} LD=${LD}"
diff --git a/srcpkgs/cargo/template b/srcpkgs/cargo/template
index 9c9781d1fc47..654bdfe4a906 100644
--- a/srcpkgs/cargo/template
+++ b/srcpkgs/cargo/template
@@ -14,6 +14,7 @@ homepage="https://crates.io/"
 distfiles="https://github.com/rust-lang/cargo/archive/${version}.tar.gz"
 checksum=59ba1ce05becb4a5e0772d334d75f9dce3d5487ca288ac986e786241bb1cbac5
 replaces="cargo-tree>=0"
+patch_args=-Np0
 
 build_options="static bindist"
 desc_option_bindist="Generate a tarball for bootstrap"
diff --git a/srcpkgs/catch2/template b/srcpkgs/catch2/template
index 23e59016d313..09607734bc90 100644
--- a/srcpkgs/catch2/template
+++ b/srcpkgs/catch2/template
@@ -15,6 +15,7 @@ license="BSL-1.0"
 homepage="https://github.com/catchorg/Catch2"
 distfiles="https://github.com/catchorg/Catch2/archive/v${version}/${pkgname}-v${version}.tar.gz"
 checksum=e7eb70b3d0ac2ed7dcf14563ad808740c29e628edde99e973adad373a2b5e4df
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/catdoc/template b/srcpkgs/catdoc/template
index ff26dbc5f7be..06522d692116 100644
--- a/srcpkgs/catdoc/template
+++ b/srcpkgs/catdoc/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://www.wagner.pp.ru/~vitus/software/catdoc/"
 distfiles="http://ftp.wagner.pp.ru/pub/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=514a84180352b6bf367c1d2499819dfa82b60d8c45777432fa643a5ed7d80796
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/share/man/man1
diff --git a/srcpkgs/cbang/template b/srcpkgs/cbang/template
index 63388b2aa828..739b521d98c3 100644
--- a/srcpkgs/cbang/template
+++ b/srcpkgs/cbang/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://github.com/CauldronDevelopmentLLC/cbang"
 distfiles="https://github.com/CauldronDevelopmentLLC/cbang/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=8aa5efacf419b712b5bd0172c9d56301bdcbd477cb590ceec25c3595a192e9c0
+patch_args=-Np0
 
 pre_build() {
 	make_build_args+=" prefix=$DESTDIR/usr"
diff --git a/srcpkgs/ccextractor/template b/srcpkgs/ccextractor/template
index fe27e68b04f5..9bdd5e05fc3f 100644
--- a/srcpkgs/ccextractor/template
+++ b/srcpkgs/ccextractor/template
@@ -15,6 +15,7 @@ changelog="https://raw.githubusercontent.com/CCExtractor/ccextractor/master/docs
 distfiles="https://github.com/CCExtractor/${pkgname}/archive/v${version}.tar.gz"
 checksum=bbe8d95347d0cf31bd26489b733fd959a7b98c681f14c59309bff54713fd539d
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/tesseract -DPNG_POWERPC_VSX_OPT=0 -fcommon"
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e "s/tesseract --version/tesseract-ocr --version/g" configure.ac
diff --git a/srcpkgs/ccl/template b/srcpkgs/ccl/template
index 5972ddeb0ce6..d6a2bc83ee74 100644
--- a/srcpkgs/ccl/template
+++ b/srcpkgs/ccl/template
@@ -21,6 +21,7 @@ nopie=1
 nostrip=1
 disable_parallel_build=1
 python_version=3
+patch_args=-Np0
 
 case $XBPS_MACHINE in
 	x86_64*) _arch=64 ;;
diff --git a/srcpkgs/cclive/template b/srcpkgs/cclive/template
index c43dbb94209c..d221a95f2520 100644
--- a/srcpkgs/cclive/template
+++ b/srcpkgs/cclive/template
@@ -12,6 +12,7 @@ homepage="http://cclive.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=2edeaf5d76455723577e0b593f0322a97f1e0c8b0cffcc70eca8b5d17374a495
 CPPFLAGS="-P"
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/ccsm/template b/srcpkgs/ccsm/template
index 7f27e3317fc4..168445d7ec45 100644
--- a/srcpkgs/ccsm/template
+++ b/srcpkgs/ccsm/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/compiz-reloaded"
 distfiles="https://github.com/compiz-reloaded/ccsm/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=99192a021631cc5a82131fbc03d2f1b7e587892878902113d9bde57a6b00bfa4
+patch_args=-Np0
 
 if [ -z "$CROSS_BUILD" ]; then
 	makedepends+=" python-gobject-devel"
diff --git a/srcpkgs/cdb/template b/srcpkgs/cdb/template
index c95afff379bb..410f978ee7f9 100644
--- a/srcpkgs/cdb/template
+++ b/srcpkgs/cdb/template
@@ -9,6 +9,7 @@ license="Public Domain"
 homepage="http://cr.yp.to/cdb.html"
 distfiles="http://cr.yp.to/cdb/cdb-${version}.tar.gz"
 checksum="1919577799a50c080a8a05a1cbfa5fa7e7abc823d8d7df2eeb181e624b7952c5"
+patch_args=-Np0
 
 alternatives="
  cdb:cdbdump:/usr/bin/cdb-dump
diff --git a/srcpkgs/cdecl/template b/srcpkgs/cdecl/template
index e120ca3af500..6de896357130 100644
--- a/srcpkgs/cdecl/template
+++ b/srcpkgs/cdecl/template
@@ -14,6 +14,7 @@ homepage="http://cdecl.org/"
 distfiles="${homepage}files/${wrksrc}.tar.gz"
 checksum=9ee6402be7e4f5bb5e6ee60c6b9ea3862935bf070e6cecd0ab0842305406f3ac
 CFLAGS="-DUSE_READLINE"
+patch_args=-Np0
 
 pre_build() {
 	flex -l -o cdlex.c cdlex.l
diff --git a/srcpkgs/cdm/template b/srcpkgs/cdm/template
index f1fb8b2f646c..5f8a016741b4 100644
--- a/srcpkgs/cdm/template
+++ b/srcpkgs/cdm/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/evertiro/cdm"
 distfiles="https://github.com/evertiro/cdm/archive/${version}.tar.gz"
 checksum=530042165ce65cdff3ec62ba9f077d0e8c6744c13f5d449d84fe2506a79d2e56
+patch_args=-Np0
 
 do_install() {
 	sed -i 's| /| $PKGDESTDIR/|g' install.sh
diff --git a/srcpkgs/cdparanoia/template b/srcpkgs/cdparanoia/template
index 3cf09587f215..956184ded118 100644
--- a/srcpkgs/cdparanoia/template
+++ b/srcpkgs/cdparanoia/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.xiph.org/paranoia/"
 distfiles="http://downloads.xiph.org/releases/$pkgname/$pkgname-III-$version.src.tgz"
 checksum=005db45ef4ee017f5c32ec124f913a0546e77014266c6a1c50df902a55fe64df
+patch_args=-Np0
 
 CFLAGS="-Du_int16_t=uint16_t -Du_int32_t=uint32_t"
 disable_parallel_build=yes
diff --git a/srcpkgs/cegui/template b/srcpkgs/cegui/template
index 070fa66aff81..14cd66cd83fb 100644
--- a/srcpkgs/cegui/template
+++ b/srcpkgs/cegui/template
@@ -23,6 +23,7 @@ homepage="http://cegui.org.uk/"
 distfiles="https://github.com/cegui/cegui/archive/${_githash}.tar.gz"
 checksum=70156257313b81d068d6592887157dd16b91d7bc0dfdcba02a96ed371d329e64
 replaces="cegui-data>=0 cegui-sample>=0"
+patch_args=-Np0
 
 build_options="gtk irrlicht ogre python"
 desc_option_irrlicht="Enable support for Irrlicht"
diff --git a/srcpkgs/cegui07/template b/srcpkgs/cegui07/template
index 3fa7f80a2ea7..352613cf01d5 100644
--- a/srcpkgs/cegui07/template
+++ b/srcpkgs/cegui07/template
@@ -20,6 +20,7 @@ license="MIT"
 homepage="http://cegui.org.uk/"
 distfiles="${SOURCEFORGE_SITE}/crayzedsgui/CEGUI%20Mk-2/${version}/CEGUI-${version}.tar.gz"
 checksum=7c3b264def08b46de749c2acaba363e907479d924612436f3bd09da2e474bb8c
+patch_args=-Np0
 
 build_options="irrlicht python"
 desc_option_irrlicht="Enable support for Irrlicht"
diff --git a/srcpkgs/celestia-glut/template b/srcpkgs/celestia-glut/template
index 2ee6f0cd64fd..22f9e62c648f 100644
--- a/srcpkgs/celestia-glut/template
+++ b/srcpkgs/celestia-glut/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="https://celestia.space"
 distfiles="${SOURCEFORGE_SITE}/celestia/celestia-${version}.tar.gz"
 checksum="d35570ccb9440fc0bd3e73eb9b4c3e8a4c25f3ae444a13d1175053fa16dc34c4"
+patch_args=-Np0
 
 provides="celestia-${version}_${revision}"
 replaces="celestia>=0"
diff --git a/srcpkgs/celestia-gtk/template b/srcpkgs/celestia-gtk/template
index 85e1c6ee1ed8..b0001ac504be 100644
--- a/srcpkgs/celestia-gtk/template
+++ b/srcpkgs/celestia-gtk/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="https://celestia.space"
 distfiles="${SOURCEFORGE_SITE}/celestia/celestia-${version}.tar.gz"
 checksum="d35570ccb9440fc0bd3e73eb9b4c3e8a4c25f3ae444a13d1175053fa16dc34c4"
+patch_args=-Np0
 
 provides="celestia-${version}_${revision}"
 replaces="celestia>=0"
diff --git a/srcpkgs/chafa/template b/srcpkgs/chafa/template
index 1b07026b9ea4..b6c87f0e2757 100644
--- a/srcpkgs/chafa/template
+++ b/srcpkgs/chafa/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-or-later"
 homepage="https://hpjansson.org/chafa/"
 distfiles="https://hpjansson.org/chafa/releases/chafa-${version}.tar.xz"
 checksum=0706e101a6e0e806335aeb57445e2f6beffe0be29a761f561979e81691c2c681
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|i686*) ;;
diff --git a/srcpkgs/chatterino2/template b/srcpkgs/chatterino2/template
index f69730b3a9fe..642d3147fdd2 100644
--- a/srcpkgs/chatterino2/template
+++ b/srcpkgs/chatterino2/template
@@ -29,6 +29,7 @@ e8755e68ff6fc39b4338d424ee9aed2ed5a8eab6eb37af69de2ff21b8dc94e66
 f387cc7eaf27dec462bc85a212619f8086167cf0b47e11825b8580d35a740dfe
 5a5cd8338fcb0a14a4bbe0840f83505d0444a9000956145e85e5550feeb744b0
 eb492b89e67f4ec632bd43f2701d53e355f1d1afbec3cd3af5891c1a6aaaa454"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/chatty/template b/srcpkgs/chatty/template
index a13ad9765b5a..c4ab65395aa6 100644
--- a/srcpkgs/chatty/template
+++ b/srcpkgs/chatty/template
@@ -10,6 +10,7 @@ license="GPL-3.0-only"
 homepage="http://chatty.github.io/"
 distfiles="https://github.com/chatty/chatty/archive/v${version}.tar.gz"
 checksum=2eed3a4ed4f1ea58d89e535182bd32771522e4bccb5aa3bf4329aec9d7ab554c
+patch_args=-Np0
 
 do_build() {
 	gradle shadowJar
diff --git a/srcpkgs/chkrootkit/template b/srcpkgs/chkrootkit/template
index 01558c933f81..1f614156b116 100644
--- a/srcpkgs/chkrootkit/template
+++ b/srcpkgs/chkrootkit/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://www.chkrootkit.org"
 distfiles="ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit-${version}.tar.gz"
 checksum=7262dae33b338976828b5d156b70d159e0043c0db43ada8dee66c97387cf45b5
+patch_args=-Np0
 
 CFLAGS="-fPIC"
 LDFLAGS="-fPIC"
diff --git a/srcpkgs/chmlib/template b/srcpkgs/chmlib/template
index a573c27d1499..44f3de8568b4 100644
--- a/srcpkgs/chmlib/template
+++ b/srcpkgs/chmlib/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.jedrea.com/chmlib/"
 distfiles="http://www.jedrea.com/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=3449d64b0cf71578b2c7e3ddc048d4af3661f44a83941ea074a7813f3a59ffa3
+patch_args=-Np0
 
 libchmlib_package() {
 	short_desc="Library for dealing with Microsoft ITSS/CHM format files"
diff --git a/srcpkgs/choosenim/template b/srcpkgs/choosenim/template
index e2fb62b08d8a..eb5ee1d0fed6 100644
--- a/srcpkgs/choosenim/template
+++ b/srcpkgs/choosenim/template
@@ -13,6 +13,7 @@ distfiles="${homepage}/archive/v${version}.tar.gz>choosenim-${version}.tar.gz
  https://github.com/genotrance/nimarchive/archive/v0.5.4.tar.gz>nimarchive-0.5.4.tar.gz"
 checksum="0e78a59cfb3cf7926f8dff3a4215949ccfaecd6c6dddc3b2e062098b5da03edb
  c38e8c66c2eac2bc021d450f2b60d0e45c5355df963d0133930448639c0bd8d4"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc-musl) broken="ftbfs" ;;
diff --git a/srcpkgs/choqok/template b/srcpkgs/choqok/template
index 75a2c16f63e0..df6cbfc32b23 100644
--- a/srcpkgs/choqok/template
+++ b/srcpkgs/choqok/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="http://choqok.kde.org/"
 distfiles="${KDE_SITE}/${pkgname}/${version%.*}/src/${pkgname}-${version}.tar.xz"
 checksum=26600d95f152c3e04881efb7fb3eb07b5c52fa6ffee838690f28b45defb4a47e
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" kcoreaddons kdoctools ${makedepends}"
diff --git a/srcpkgs/chromium/template b/srcpkgs/chromium/template
index 2c1bb5d7a35c..cbc7e092ac87 100644
--- a/srcpkgs/chromium/template
+++ b/srcpkgs/chromium/template
@@ -11,6 +11,7 @@ homepage="https://www.chromium.org/"
 distfiles="https://commondatastorage.googleapis.com/chromium-browser-official/${pkgname}-${version}.tar.xz"
 checksum=45d5a43ef798d20313c78fa8a075be0c22055e39c8481eb53eabda81df901b31
 nocross=yes
+patch_args=-Np0
 
 lib32disabled=yes
 nodebug=yes
diff --git a/srcpkgs/ck/template b/srcpkgs/ck/template
index f67b160c87c7..4cfe121c7fe6 100644
--- a/srcpkgs/ck/template
+++ b/srcpkgs/ck/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://concurrencykit.org/"
 distfiles="https://github.com/concurrencykit/ck/archive/${version}.tar.gz"
 checksum=e730cb448fb0ecf9d19bf4c7efe9efc3c04dd9127311d87d8f91484742b0da24
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/ckmame/template b/srcpkgs/ckmame/template
index 1b88f6a965cb..3889029f0c9f 100644
--- a/srcpkgs/ckmame/template
+++ b/srcpkgs/ckmame/template
@@ -14,6 +14,7 @@ license="BSD-3-clause"
 homepage="https://nih.at/ckmame/"
 distfiles="https://github.com/nih-at/ckmame/archive/rel-${version//./-}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=9fc5dcf1d2dd75351b2cdf43ce10fecda7d97c8c1a8dd0fe1f653229bb316130
+patch_args=-Np0
 
 post_install() {
 	vlicense ${wrksrc}/LICENSE
diff --git a/srcpkgs/clementine/template b/srcpkgs/clementine/template
index 40a6ac8c70a1..c150fcf650fc 100644
--- a/srcpkgs/clementine/template
+++ b/srcpkgs/clementine/template
@@ -22,6 +22,7 @@ homepage="https://www.clementine-player.org/"
 distfiles="https://github.com/clementine-player/Clementine/releases/download/${_fullver}/${pkgname}-${_fullver}.tar.xz"
 checksum=e1fa2482b81336282a36a5451a0217c274e5b45aa3eeed83fe3fd29a5df59397
 build_options="spotify"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64 | i686 | armv7l)
diff --git a/srcpkgs/cli-visualizer/template b/srcpkgs/cli-visualizer/template
index e758562274e3..d95ce4d4b367 100644
--- a/srcpkgs/cli-visualizer/template
+++ b/srcpkgs/cli-visualizer/template
@@ -13,6 +13,7 @@ distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=927e4c18403c7a40397e8698ffefd1b37250be20fa0ec55fda9a82cf9cc8ba51
 build_options="pulseaudio"
 build_options_default="pulseaudio"
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/clib/template b/srcpkgs/clib/template
index 6e3bf69b149d..f4802d32a731 100644
--- a/srcpkgs/clib/template
+++ b/srcpkgs/clib/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/clibs/clib"
 distfiles="https://github.com/clibs/clib/archive/${version}.tar.gz"
 checksum=74643374883651a272ed8ac8e8a6789c0b4a4b13e20a9d45798fd770821e620d
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/clisp/template b/srcpkgs/clisp/template
index ee0941a3d581..f062b8a1244b 100644
--- a/srcpkgs/clisp/template
+++ b/srcpkgs/clisp/template
@@ -21,6 +21,7 @@ lib32disabled=yes
 disable_parallel_build=yes
 build_options="readline"
 build_options_default="readline"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686-musl) broken="*** - MULTIPLE-VALUE-SETQ: variable EXTRA-FILE-TYPES has no value";;
diff --git a/srcpkgs/cln/template b/srcpkgs/cln/template
index fc771b0f9adf..173890a0b830 100644
--- a/srcpkgs/cln/template
+++ b/srcpkgs/cln/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://www.ginac.de/CLN/"
 distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
 checksum=f492530e8879bda529009b6033e1923c8f4aae843149fc28c667c20b094d984a
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 arm*|aarch64*) CPPFLAGS="-DNO_ASM";;
diff --git a/srcpkgs/clog/template b/srcpkgs/clog/template
index b255ad949bc7..2195202ec954 100644
--- a/srcpkgs/clog/template
+++ b/srcpkgs/clog/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://taskwarrior.org/docs/clog/"
 distfiles="http://gothenburgbitfactory.org/download/clog-${version}.tar.gz"
 checksum=fed44a8d398790ab0cf426c1b006e7246e20f3fcd56c0ec4132d24b05d5d2018
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/cloog/template b/srcpkgs/cloog/template
index 18a84032fdd4..d65b97fcf48b 100644
--- a/srcpkgs/cloog/template
+++ b/srcpkgs/cloog/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.bastoul.net/cloog/"
 distfiles="https://github.com/periscop/cloog/releases/download/cloog-${version}/cloog-${version}.tar.gz"
 checksum=835c49951ff57be71dcceb6234d19d2cc22a3a5df84aea0a9d9760d92166fc72
+patch_args=-Np0
 
 cloog-devel_package() {
 	depends="${makedepends} cloog>=${version}_${revision}"
diff --git a/srcpkgs/clucene/template b/srcpkgs/clucene/template
index fe045cb36356..67d9d9641281 100644
--- a/srcpkgs/clucene/template
+++ b/srcpkgs/clucene/template
@@ -15,6 +15,7 @@ license="LGPL-2+/ASL-2.0"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-core-${version}.tar.gz"
 checksum=ddfdc433dd8ad31b5c5819cc4404a8d2127472a3b720d3e744e8c51d79732eab
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	# threading segfaults on musl
diff --git a/srcpkgs/clutter/template b/srcpkgs/clutter/template
index 461e2fe07978..44b3ab7c88de 100644
--- a/srcpkgs/clutter/template
+++ b/srcpkgs/clutter/template
@@ -18,6 +18,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.clutter-project.org"
 distfiles="${GNOME_SITE}/clutter/${version%.*}/clutter-${version}.tar.xz"
 checksum=8b48fac159843f556d0a6be3dbfc6b083fc6d9c58a20a49a6b4919ab4263c4e6
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/cmocka/template b/srcpkgs/cmocka/template
index ea0384420a33..dfe97283fad1 100644
--- a/srcpkgs/cmocka/template
+++ b/srcpkgs/cmocka/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://cmocka.org/"
 distfiles="https://cmocka.org/files/${version%.*}/cmocka-${version}.tar.xz"
 checksum=f0ccd8242d55e2fd74b16ba518359151f6f8383ff8aef4976e48393f77bba8b6
+patch_args=-Np0
 
 cmocka-devel_package() {
 	depends="cmocka-${version}_${revision}"
diff --git a/srcpkgs/cmus/template b/srcpkgs/cmus/template
index fd8e518e2af6..891beaef9a5e 100644
--- a/srcpkgs/cmus/template
+++ b/srcpkgs/cmus/template
@@ -19,6 +19,7 @@ checksum=6fb799cae60db9324f03922bbb2e322107fd386ab429c0271996985294e2ef44
 build_options="elogind"
 build_options_default="elogind"
 desc_option_elogind="Support MPRIS interface via elogind"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/codeblocks/template b/srcpkgs/codeblocks/template
index 33b9b9a77853..c1f7945b39c2 100644
--- a/srcpkgs/codeblocks/template
+++ b/srcpkgs/codeblocks/template
@@ -14,6 +14,7 @@ license="GPL-3.0-only"
 homepage="http://www.codeblocks.org"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/Sources/${version}/${pkgname}-${version}.tar.xz"
 checksum=15eeb3e28aea054e1f38b0c7f4671b4d4d1116fd05f63c07aa95a91db89eaac5
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" wxWidgets-devel tinyxml-devel"
diff --git a/srcpkgs/codecrypt/template b/srcpkgs/codecrypt/template
index cd326930709d..51c0dcbbd0b8 100644
--- a/srcpkgs/codecrypt/template
+++ b/srcpkgs/codecrypt/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-or-later"
 homepage="https://e-x-a.org/codecrypt"
 distfiles="https://github.com/exaexa/codecrypt/archive/v${version}.tar.gz"
 checksum=25f11bc361b4f8aca7245698334b5715b7d594d708a75e8cdb2aa732dc46eb96
+patch_args=-Np0
 
 LDFLAGS="-lpthread"
 
diff --git a/srcpkgs/codelite/template b/srcpkgs/codelite/template
index cedc1e11c247..db21463032db 100644
--- a/srcpkgs/codelite/template
+++ b/srcpkgs/codelite/template
@@ -20,6 +20,7 @@ distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz"
 checksum=f2653fa42d6214999718236998cb223e6de00a498c0cfde795e901be693fb9ac
 nocross=yes
 python_version=2 #unverified
+patch_args=-Np0
 
 build_options="hunspell lldb mysql sftp"
 build_options_default="hunspell sftp"
diff --git a/srcpkgs/coin3/template b/srcpkgs/coin3/template
index 2130c0b8b263..3ed1add5ffa6 100644
--- a/srcpkgs/coin3/template
+++ b/srcpkgs/coin3/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="https://coin3d.github.io/"
 distfiles="https://github.com/coin3d/coin/archive/Coin-${version}.tar.gz"
 checksum=b00d2a8e9d962397cf9bf0d9baa81bcecfbd16eef675a98c792f5cf49eb6e805
+patch_args=-Np0
 
 CFLAGS=-DNDEBUG
 CXXFLAGS=-DNDEBUG
diff --git a/srcpkgs/collectd/template b/srcpkgs/collectd/template
index 28fa815e85a9..b9fa1053465d 100644
--- a/srcpkgs/collectd/template
+++ b/srcpkgs/collectd/template
@@ -23,6 +23,7 @@ homepage="https://collectd.org"
 distfiles="https://collectd.org/files/${pkgname}-${version}.tar.bz2"
 checksum=5bae043042c19c31f77eb8464e56a01a5454e0b39fa07cf7ad0f1bfc9c3a09d6
 LDFLAGS="-lgcrypt"
+patch_args=-Np0
 
 build_options="rrdtool perl notify prometheus"
 desc_option_rrdtool="Enable support for RRDTool"
diff --git a/srcpkgs/colord/template b/srcpkgs/colord/template
index 98739d4802bf..14bc56ad3856 100644
--- a/srcpkgs/colord/template
+++ b/srcpkgs/colord/template
@@ -17,6 +17,7 @@ license="GPL-2.0-only"
 homepage="https://www.freedesktop.org/software/colord"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
 checksum=b774ea443d239f4a2ee1853bd678426e669ddeda413dcb71cea1638c4d6c5e17
+patch_args=-Np0
 
 system_accounts="colord"
 colord_homedir="/var/lib/colord"
diff --git a/srcpkgs/commoncpp2/template b/srcpkgs/commoncpp2/template
index 181a6a9e07bf..ddbd6ba58363 100644
--- a/srcpkgs/commoncpp2/template
+++ b/srcpkgs/commoncpp2/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage='http://www.gnu.org/software/commoncpp/'
 distfiles="${GNU_SITE}/commoncpp/$pkgname-${version}.tar.gz"
 checksum="53ced4aff74e28a1d8018eb2b4974519028db3c12471ab6dff1c873578c9af4e"
+patch_args=-Np0
 
 commoncpp2-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/connman-ncurses/template b/srcpkgs/connman-ncurses/template
index 5fd4b33b08fc..0d2f48a12e24 100644
--- a/srcpkgs/connman-ncurses/template
+++ b/srcpkgs/connman-ncurses/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/eurogiciel-oss/connman-json-client"
 distfiles="https://github.com/eurogiciel-oss/connman-json-client/archive/v${version}.tar.gz"
 checksum=724604787b51cd3bd2ba5d2291f5f2efe0558a1ec78d92d3c92ebc78f6c63219
+patch_args=-Np0
 
 pre_configure() {
 	mkdir -p m4
diff --git a/srcpkgs/containers.image/template b/srcpkgs/containers.image/template
index f587e0ef3640..d292c68747b7 100644
--- a/srcpkgs/containers.image/template
+++ b/srcpkgs/containers.image/template
@@ -11,6 +11,7 @@ license="Apache-2.0"
 homepage="https://github.com/containers/image"
 distfiles="https://github.com/containers/image/archive/v${version}.tar.gz"
 checksum=99440d59728ed741e6171046cf3a6a820c2e3414cd9c17ee640efd289a015c3f
+patch_args=-Np0
 
 do_build() {
 	mkdir -p build
diff --git a/srcpkgs/coreboot-utils/template b/srcpkgs/coreboot-utils/template
index 4eec377ecea6..3f161fe47556 100644
--- a/srcpkgs/coreboot-utils/template
+++ b/srcpkgs/coreboot-utils/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://coreboot.org"
 distfiles="https://coreboot.org/releases/coreboot-${version}.tar.xz"
 checksum=4779da645a25ddebc78f1bd2bd0b740fb1e6479572648d4650042a2b9502856a
+patch_args=-Np0
 
 do_build() {
 	for util in cbfstool cbmem ectool ifdtool inteltool intelmetool \
diff --git a/srcpkgs/coreutils/template b/srcpkgs/coreutils/template
index b9148c854960..fd25f8220a78 100644
--- a/srcpkgs/coreutils/template
+++ b/srcpkgs/coreutils/template
@@ -11,6 +11,7 @@ homepage="https://www.gnu.org/software/coreutils"
 changelog="https://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob_plain;f=NEWS;hb=HEAD"
 distfiles="${GNU_SITE}/coreutils/coreutils-${version}.tar.xz"
 checksum=4458d8de7849df44ccab15e16b1548b285224dbba5f08fac070c1c0e0bcc4cfa
+patch_args=-Np0
 
 replaces="chroot-coreutils>=0 coreutils-doc>=0 b2sum>=0"
 
diff --git a/srcpkgs/coturn/template b/srcpkgs/coturn/template
index edfb526f4967..1f662c41f17b 100644
--- a/srcpkgs/coturn/template
+++ b/srcpkgs/coturn/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/coturn/coturn"
 distfiles="https://github.com/coturn/coturn/archive/${version}.tar.gz"
 checksum=4ff1f8c041ac71445018d81321d4b66e5dce4f171ef73a348d858dc9a0cc1cce
+patch_args=-Np0
 
 post_patch() {
 	# LibreSSL does not support FIPS mode
diff --git a/srcpkgs/cpuburn/template b/srcpkgs/cpuburn/template
index a215520fb764..735ecbcba22b 100644
--- a/srcpkgs/cpuburn/template
+++ b/srcpkgs/cpuburn/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="https://launchpad.net/ubuntu/+source/cpuburn/"
 distfiles="https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${version}.orig.tar.gz"
 checksum=eb191ce9bfbf453d30c218c3419573df102a3588f96c4a43686c84bb9da4bed6
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/cpulimit/template b/srcpkgs/cpulimit/template
index 9fbf6eccf66c..f1a756a81a70 100644
--- a/srcpkgs/cpulimit/template
+++ b/srcpkgs/cpulimit/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/opsengine/cpulimit"
 distfiles="https://github.com/opsengine/${pkgname}/archive/v${version}.tar.gz"
 checksum=64312f9ac569ddcadb615593cd002c94b76e93a0d4625d3ce1abb49e08e2c2da
+patch_args=-Np0
 
 pre_build() {
 	export CFLAGS="$CFLAGS $LDFLAGS"
diff --git a/srcpkgs/criu/template b/srcpkgs/criu/template
index c9f68933e756..2c9eda89e078 100644
--- a/srcpkgs/criu/template
+++ b/srcpkgs/criu/template
@@ -18,6 +18,7 @@ homepage="http://criu.org/"
 distfiles="https://download.openvz.org/criu/criu-${version}.tar.bz2"
 checksum=f63f30188b84e9a611429f732381f27e37c60cde0afc9821600f8597d21e39cb
 nocross="fails to run protobuf internals"
+patch_args=-Np0
 
 do_install() {
 	make DESTDIR=${DESTDIR} PREFIX=/usr LOGROTATEDIR=/etc/logrotate.d \
diff --git a/srcpkgs/crossguid/template b/srcpkgs/crossguid/template
index c846590103fa..acec95753554 100644
--- a/srcpkgs/crossguid/template
+++ b/srcpkgs/crossguid/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://github.com/graeme-hill/crossguid"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=48321928473c682b0cdc7e17bbd3390f79f4b98ab22fef3b81a852dda81fd195
+patch_args=-Np0
 
 do_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/crypto++/template b/srcpkgs/crypto++/template
index b524377319ea..ecc5291e1b3f 100644
--- a/srcpkgs/crypto++/template
+++ b/srcpkgs/crypto++/template
@@ -14,6 +14,7 @@ license="BSL-1.0"
 homepage="http://www.cryptopp.com/"
 distfiles="https://github.com/weidai11/cryptopp/archive/CRYPTOPP_${version//./_}.tar.gz"
 checksum=63304c6f943f435a4e385273e15abb69cff3b85a44663150bf5a6069b84abd43
+patch_args=-Np0
 
 CXXFLAGS="-DNDEBUG -fPIC"
 
diff --git a/srcpkgs/csound/template b/srcpkgs/csound/template
index f02f97bc6325..d38bf3627200 100644
--- a/srcpkgs/csound/template
+++ b/srcpkgs/csound/template
@@ -18,6 +18,7 @@ license="LGPL-2.1-or-later"
 homepage="https://csound.com/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=d47ed0fb70c752cb06ee2655ee9f010d8d1e369fc73d09d2ac2bc1b3060bf724
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 CXXFLAGS="-Wno-error -fcommon"
diff --git a/srcpkgs/csync2/template b/srcpkgs/csync2/template
index f8738551c270..1b16f75c10ee 100644
--- a/srcpkgs/csync2/template
+++ b/srcpkgs/csync2/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://oss.linbit.com/csync2/"
 distfiles="https://github.com/LINBIT/csync2/archive/csync2-$version.tar.gz"
 checksum=a1c6b0364eb9f19986a92fccd369bae29aa5aa55300e0664dadaf80d80de23ff
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ctags/template b/srcpkgs/ctags/template
index 56b3c3dfdfa8..2395dacd8208 100644
--- a/srcpkgs/ctags/template
+++ b/srcpkgs/ctags/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://ctags.io/"
 distfiles="https://github.com/universal-ctags/ctags/archive/p${version}.tar.gz"
 checksum=26d9efe481a57e81195878cdb0baca730a3c4d234b9a7c4f6bf2c8def42bf42b
+patch_args=-Np0
 
 do_configure() {
 	./autogen.sh
diff --git a/srcpkgs/cubieboard2-uboot/template b/srcpkgs/cubieboard2-uboot/template
index 23f63f574f00..8861e5c7b174 100644
--- a/srcpkgs/cubieboard2-uboot/template
+++ b/srcpkgs/cubieboard2-uboot/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="http://www.denx.de/wiki/U-Boot/WebHome"
 distfiles="ftp://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2"
 checksum=45813e6565dcc0436abe6752624324cdbf5f3ac106570d76d32b46ec529bcdc8
+patch_args=-Np0
 
 archs="armv7l*"
 
diff --git a/srcpkgs/cuetools/template b/srcpkgs/cuetools/template
index 7e039c051c73..8eb6785e684e 100644
--- a/srcpkgs/cuetools/template
+++ b/srcpkgs/cuetools/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/svend/cuetools"
 distfiles="https://github.com/svend/${pkgname}/archive/${version}.tar.gz"
 checksum=24a2420f100c69a6539a9feeb4130d19532f9f8a0428a8b9b289c6da761eb107
+patch_args=-Np0
 
 pre_configure() {
 	aclocal
diff --git a/srcpkgs/cups-pdf/template b/srcpkgs/cups-pdf/template
index 897437df779b..b8339fc1bf21 100644
--- a/srcpkgs/cups-pdf/template
+++ b/srcpkgs/cups-pdf/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.cups-pdf.de/"
 distfiles="https://www.cups-pdf.de/src/${pkgname}_${version}.tar.gz"
 checksum=738669edff7f1469fe5e411202d87f93ba25b45f332a623fb607d49c59aa9531
+patch_args=-Np0
 
 do_build() {
 	$CC $CFLAGS -o $pkgname src/cups-pdf.c -lcups ${LDFLAGS}
diff --git a/srcpkgs/cups/template b/srcpkgs/cups/template
index 66204733fa86..9520c2240a0a 100644
--- a/srcpkgs/cups/template
+++ b/srcpkgs/cups/template
@@ -17,6 +17,7 @@ license="Apache-2.0"
 homepage="https://github.com/OpenPrinting/cups"
 distfiles="https://github.com/OpenPrinting/cups/releases/download/v${version}/cups-${version}-source.tar.gz"
 checksum=deb3575bbe79c0ae963402787f265bfcf8d804a71fc2c94318a74efec86f96df
+patch_args=-Np0
 
 conf_files="/etc/pam.d/cups /etc/cups/*.conf /etc/xinetd.d/cups-lpd"
 make_dirs="
diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index e138e37605db..adb5f59e0aad 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -14,6 +14,7 @@ license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
 checksum=7e1e408f269a604418f37575ba8ef5f69323bebc4dd7f3091c1c2e9b000ffcbf
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/cutemarked/template b/srcpkgs/cutemarked/template
index 39f15d81ea08..ddf409fb9a76 100644
--- a/srcpkgs/cutemarked/template
+++ b/srcpkgs/cutemarked/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://cloose.github.io/CuteMarkEd/"
 distfiles="https://github.com/cloose/${pkgname}/archive/v${version}.tar.gz"
 checksum=78a41808c2f0452375810abdff76eeaaee012f8d1368a2b8772ec6b4d2ceeec8
+patch_args=-Np0
 
 pre_build() {
 	lrelease app/app.pro
diff --git a/srcpkgs/cvsps2/template b/srcpkgs/cvsps2/template
index 1bf720a7774c..b80618d32173 100644
--- a/srcpkgs/cvsps2/template
+++ b/srcpkgs/cvsps2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://cvsps.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/cvsps/cvsps-${version}.tar.gz"
 checksum=91d3198b33463861a581686d5fcf99a5c484e7c4d819384c04fda9cafec1075a
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/linux/__GLIBC__/g' cbtcommon/text_util.c
diff --git a/srcpkgs/daemontools/template b/srcpkgs/daemontools/template
index 5999e2e426ac..f3efebc6eeec 100644
--- a/srcpkgs/daemontools/template
+++ b/srcpkgs/daemontools/template
@@ -12,6 +12,7 @@ homepage="http://cr.yp.to/daemontools.html"
 distfiles="http://cr.yp.to/daemontools/${pkgname}-${version}.tar.gz http://smarden.org/pape/djb/manpages/daemontools-0.76-man-20020131.tar.gz"
 checksum="a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f
  1b4d77afe0878a0df587672531a3f7bbe0feb7ad0e9acf50395426e3c434600a"
+patch_args=-Np0
 
 post_install() {
 	for m in $XBPS_BUILDDIR/daemontools-man/*.8; do
diff --git a/srcpkgs/dante/template b/srcpkgs/dante/template
index 17fe0f69ae60..62b5f04f9a47 100644
--- a/srcpkgs/dante/template
+++ b/srcpkgs/dante/template
@@ -10,6 +10,7 @@ license="MIT-CMU"
 homepage="http://www.inet.no/dante/index.html"
 distfiles="http://www.inet.no/dante/files/dante-${version}.tar.gz"
 checksum=4c97cff23e5c9b00ca1ec8a95ab22972813921d7fbf60fc453e3e06382fc38a7
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
 	configure_args="--with-libc=libc.so.6"
diff --git a/srcpkgs/dar/template b/srcpkgs/dar/template
index c289909e8122..ec40334f51f9 100644
--- a/srcpkgs/dar/template
+++ b/srcpkgs/dar/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://dar.linux.free.fr/"
 distfiles="${SOURCEFORGE_SITE}/dar/dar-${version}.tar.gz"
 checksum=3fea9ff9e55fb9827e17a080de7d1a2605b82c2320c0dec969071efefdbfd097
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --with-gpgme-prefix=${XBPS_CROSS_BASE}/usr
diff --git a/srcpkgs/darkplaces/template b/srcpkgs/darkplaces/template
index 9e282a061057..cb5f7671d680 100644
--- a/srcpkgs/darkplaces/template
+++ b/srcpkgs/darkplaces/template
@@ -12,6 +12,7 @@ license="GPL-2"
 homepage="http://icculus.org/twilight/darkplaces/"
 distfiles="http://icculus.org/twilight/$pkgname/files/darkplacesengine${version}.zip"
 checksum=69e5a50991884196e403bd6aab4a33bba553a934a167be366672ab4e223b06c9
+patch_args=-Np0
 
 post_extract() {
 	# Extract the real source code.
diff --git a/srcpkgs/darktable/template b/srcpkgs/darktable/template
index 24f17d36dda8..6b3d09a1c0a8 100644
--- a/srcpkgs/darktable/template
+++ b/srcpkgs/darktable/template
@@ -23,6 +23,7 @@ homepage="http://www.darktable.org/"
 changelog="https://github.com/darktable-org/darktable/releases"
 distfiles="https://github.com/darktable-org/darktable/releases/download/release-${version}/darktable-${version}.tar.xz"
 checksum=7fc3f851da9bcd7c5053ecd09f21aa3eb6103be98a6c58f52010b6f22174941e
+patch_args=-Np0
 
 build_options="gmic"
 
diff --git a/srcpkgs/dash/template b/srcpkgs/dash/template
index d966b55956b7..34375cdca66f 100644
--- a/srcpkgs/dash/template
+++ b/srcpkgs/dash/template
@@ -11,6 +11,7 @@ homepage="http://gondor.apana.org.au/~herbert/dash/"
 distfiles="http://gondor.apana.org.au/~herbert/dash/files/$pkgname-$version.tar.gz"
 checksum=4e15b7ba5363bcc2a443549910cdc15b5ad601df8196b5f294c712eff037e08d
 register_shell="/usr/bin/sh /usr/bin/dash /bin/sh /bin/dash"
+patch_args=-Np0
 
 alternatives="
  sh:sh:/usr/bin/dash
diff --git a/srcpkgs/davfs2/template b/srcpkgs/davfs2/template
index 01eb6336fc4f..0b38a2b6f8c4 100644
--- a/srcpkgs/davfs2/template
+++ b/srcpkgs/davfs2/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://savannah.nongnu.org/projects/davfs2"
 distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=2e6b675685bd917772be60f0999ae098c80f79ff20dc131e8fec4547cbb63b50
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index 2d340913b04b..217e0eb01397 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,7 @@ license="BSD-4-Clause"
 homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.html"
 distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
 checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+patch_args=-Np0
 
 post_install() {
 	chmod 755 ${DESTDIR}/usr/bin/*
diff --git a/srcpkgs/dbus-glib/template b/srcpkgs/dbus-glib/template
index ee905b75bfe6..3a273bea56b5 100644
--- a/srcpkgs/dbus-glib/template
+++ b/srcpkgs/dbus-glib/template
@@ -13,6 +13,7 @@ license="GPL-2"
 homepage="http://www.freedesktop.org/wiki/Software/DBusBindings"
 distfiles="http://dbus.freedesktop.org/releases/$pkgname/$pkgname-$version.tar.gz"
 checksum=7ce4760cf66c69148f6bd6c92feaabb8812dee30846b24cd0f7395c436d7e825
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --with-dbus-binding-tool=dbus-binding-tool"
diff --git a/srcpkgs/dcraw/template b/srcpkgs/dcraw/template
index 67cb2f426ef1..e05e4f27e3b7 100644
--- a/srcpkgs/dcraw/template
+++ b/srcpkgs/dcraw/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.dechifro.org/dcraw/"
 distfiles="https://www.dechifro.org/dcraw/archive/${pkgname}-${version}.tar.gz"
 checksum=2890c3da2642cd44c5f3bfed2c9b2c1db83da5cec09cc17e0fa72e17541fb4b9
+patch_args=-Np0
 
 do_build() {
 	$CC $CFLAGS $LDFLAGS \
diff --git a/srcpkgs/dcron/template b/srcpkgs/dcron/template
index eb975fd13a30..e7333970c76f 100644
--- a/srcpkgs/dcron/template
+++ b/srcpkgs/dcron/template
@@ -11,6 +11,7 @@ changelog="https://raw.githubusercontent.com/dubiousjim/dcron/v${version}/CHANGE
 distfiles="https://github.com/dubiousjim/dcron/archive/v${version}.tar.gz"
 checksum=7c047194b9339b781971b000bf5512c11e856d20a14fe5323d5a1823f04c2a3f
 provides="cron-daemon-0_1"
+patch_args=-Np0
 
 alternatives="
  crond:crond:/etc/sv/dcron
diff --git a/srcpkgs/deadbeef-fb/template b/srcpkgs/deadbeef-fb/template
index c62ae6fc7b40..ae67fbb103f4 100644
--- a/srcpkgs/deadbeef-fb/template
+++ b/srcpkgs/deadbeef-fb/template
@@ -17,6 +17,7 @@ distfiles="https://gitlab.com/zykure/${pkgname}/repository/${_commit}/archive.ta
 checksum=19a0c2ea3743926e71f9b20f616ff5bdbfd9839a553b33cc192dfed7bed3cb1d
 build_options="gtk3"
 build_options_default="gtk3"
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/deadbeef/template b/srcpkgs/deadbeef/template
index 5666c1d97c92..a070c45c9a26 100644
--- a/srcpkgs/deadbeef/template
+++ b/srcpkgs/deadbeef/template
@@ -26,6 +26,7 @@ checksum="cbfe873d5bd84b70011dd6131b249fea8c89318c37411696a890c55029ac3e27
  c5eeb3fa116d51d251fe7c7e5c44798680f6478c43a1fffdcb28c4caf1c68286
  35b58679dbfec2c3a2688b1896afb0fb73b5184ac05d5bdbb787a86b5c00430d"
 LDFLAGS+=" -Wl,-z,stack-size=1048576"
+patch_args=-Np0
 
 # The soundtouchup plugin was made default in 1.8.4 and fails to build on i686.
 # Fixing that might be a good maintainer task.
diff --git a/srcpkgs/debug-me/template b/srcpkgs/debug-me/template
index 3df514e0be48..e6f9059f38c9 100644
--- a/srcpkgs/debug-me/template
+++ b/srcpkgs/debug-me/template
@@ -12,6 +12,7 @@ distfiles="https://git.joeyh.name/index.cgi/${pkgname}.git/snapshot/${pkgname}-$
 checksum=9497dc9b85a58e5c499ea25fa1bed9f4fd6cdd2f57564f52a0e4152ad4fdc102
 nocross=yes # Can't yet cross compile Haskell
 nopie_files="/usr/bin/debug-me"
+patch_args=-Np0
 
 post_install() {
 	vlicense AGPL
diff --git a/srcpkgs/desmume/template b/srcpkgs/desmume/template
index 3afaa5027f74..db37ee4a51b5 100644
--- a/srcpkgs/desmume/template
+++ b/srcpkgs/desmume/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.desmume.org"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=3ab34ba6cc009566245025c1dd94bf449b6a1b416d24387cb42e183c78e38896
+patch_args=-Np0
 
 post_extract() {
 	# git eats CRLFs, so the patch has wrong line ending. Instead
diff --git a/srcpkgs/devil/template b/srcpkgs/devil/template
index 1dffc7bdd52c..1a76819b665a 100644
--- a/srcpkgs/devil/template
+++ b/srcpkgs/devil/template
@@ -16,6 +16,7 @@ distfiles="${SOURCEFORGE_SITE}/openil/DevIL-${version}.tar.gz"
 checksum=0075973ee7dd89f0507873e2580ac78336452d29d34a07134b208f44e2feb709
 # The examples subpkg is gone
 replaces="devil-examples<1.8.0"
+patch_args=-Np0
 
 devil-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/dhcp/template b/srcpkgs/dhcp/template
index 2db18dcc60b0..a466f6607a2e 100644
--- a/srcpkgs/dhcp/template
+++ b/srcpkgs/dhcp/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="https://www.isc.org/downloads/dhcp"
 distfiles="http://ftp.isc.org/isc/dhcp/${version/P/-P}/dhcp-${version/P/-P}.tar.gz"
 checksum=b05e04337539545a8faa0d6ac518defc61a07e5aec66a857f455e7f218c85a1a
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/dhcpcd/template b/srcpkgs/dhcpcd/template
index e651bd019067..dbd6f288fbb7 100644
--- a/srcpkgs/dhcpcd/template
+++ b/srcpkgs/dhcpcd/template
@@ -17,6 +17,7 @@ distfiles="https://roy.marples.name/downloads/dhcpcd/dhcpcd-${version}.tar.xz"
 checksum=41a69297f380bf15ee8f94f73154f8c2bca7157a087c0d5aca8de000ba1d4513
 lib32disabled=yes
 conf_files=/etc/dhcpcd.conf
+patch_args=-Np0
 
 system_accounts="_dhcpcd"
 _dhcpcd_homedir="/var/db/dhcpcd"
diff --git a/srcpkgs/dia/template b/srcpkgs/dia/template
index 45f48aab4dcf..62af8fcba806 100644
--- a/srcpkgs/dia/template
+++ b/srcpkgs/dia/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Dia"
 distfiles="${GNOME_SITE}/dia/${version%.*}/dia-${version}.tar.xz"
 checksum=22914e48ef48f894bb5143c5efc3d01ab96e0a0cde80de11058d3b4301377d34
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/diod/template b/srcpkgs/diod/template
index de62d6c62b71..548e1f9f0540 100644
--- a/srcpkgs/diod/template
+++ b/srcpkgs/diod/template
@@ -12,6 +12,7 @@ license="GPL-2"
 homepage="https://github.com/chaos/diod"
 distfiles="https://github.com/chaos/diod/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=f41d2b91c1a712132f5457d9d1c3caca985f069bdc8ef27bf4c148ac1d9f8c9f
+patch_args=-Np0
 
 post_install() {
 	vsv diod
diff --git a/srcpkgs/discord-ptb/template b/srcpkgs/discord-ptb/template
index b1467a7dc267..35bd7f20fa24 100644
--- a/srcpkgs/discord-ptb/template
+++ b/srcpkgs/discord-ptb/template
@@ -16,6 +16,7 @@ _license_checksum=9abbd207c86f76a59c0017c131dc7a30089c40b4dacb54a0f339272468344e
 nopie=yes
 restricted=yes
 repository=nonfree
+patch_args=-Np0
 
 post_extract() {
 	$XBPS_FETCH_CMD -o eula https://discord.com/terms; cat eula |
diff --git a/srcpkgs/discord/template b/srcpkgs/discord/template
index fc6a70079d8b..17f259b82067 100644
--- a/srcpkgs/discord/template
+++ b/srcpkgs/discord/template
@@ -14,6 +14,7 @@ checksum=adede954e9c696d96e254759b539527a24ab1d42f0d548c5c4309d1a3fc3c25e
 repository=nonfree
 restricted=yes
 nopie=yes
+patch_args=-Np0
 
 do_install() {
 	local package_location="usr/lib/$pkgname" item
diff --git a/srcpkgs/discount/template b/srcpkgs/discount/template
index d47f46518415..3bee85895390 100644
--- a/srcpkgs/discount/template
+++ b/srcpkgs/discount/template
@@ -12,6 +12,7 @@ homepage="http://www.pell.portland.or.us/~orc/Code/discount"
 distfiles="https://github.com/Orc/discount/archive/v${version}.tar.gz"
 checksum=72c1325ddfc40871d6810f1e272cf2d45b361f26357eb38f170fd04d737bb9f2
 disable_parallel_build=yes
+patch_args=-Np0
 
 do_install() {
 	make DESTDIR=${DESTDIR} install install.man
diff --git a/srcpkgs/dispcalGUI/template b/srcpkgs/dispcalGUI/template
index 1bb51316a5d1..6e86a157729e 100644
--- a/srcpkgs/dispcalGUI/template
+++ b/srcpkgs/dispcalGUI/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://displaycal.net/"
 distfiles="${SOURCEFORGE_SITE}/dispcalgui/${_name}-${version}.tar.gz"
 checksum=7c34dfbd9f66f24f1d4c88de4a5a0de688aad719f095874b6259637d30893bea
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's|MimeType=model/vrml;x-world/x-vrml;|MimeType=model/vrml;|' misc/displaycal-vrml-to-x3d-converter.desktop
diff --git a/srcpkgs/djview/template b/srcpkgs/djview/template
index 76a0d1cc4103..bade9c6f96bc 100644
--- a/srcpkgs/djview/template
+++ b/srcpkgs/djview/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://djvu.sourceforge.net/djview4.html"
 distfiles="${SOURCEFORGE_SITE}/djvu/${pkgname}-${version}.tar.gz"
 checksum=5673c6a8b7e195b91a1720b24091915b8145de34879db1158bc936b100eaf3e3
+patch_args=-Np0
 
 post_extract() {
 	vsed -i -e '/Exec/s/djview4/djview/' \
diff --git a/srcpkgs/dma/template b/srcpkgs/dma/template
index 71892496013f..5ec809adcf71 100644
--- a/srcpkgs/dma/template
+++ b/srcpkgs/dma/template
@@ -13,6 +13,7 @@ homepage="https://github.com/corecode/dma"
 distfiles="https://github.com/corecode/dma/archive/v${version}.tar.gz"
 checksum=9d4b903f2b750d888f51d668d08d2ea18404dedb0a52cffeb3c81376023c1946
 system_accounts="mail"
+patch_args=-Np0
 
 provides="smtp-server-0_1 smtp-forwarder-0_1"
 replaces="smtp-server>=0 smtp-forwarder>=0"
diff --git a/srcpkgs/dmd-bootstrap/template b/srcpkgs/dmd-bootstrap/template
index 029b0024faea..1a7c483982f1 100644
--- a/srcpkgs/dmd-bootstrap/template
+++ b/srcpkgs/dmd-bootstrap/template
@@ -21,6 +21,7 @@ checksum="
  7f4d84f2b5252c0cc33bffbb4de8aab9321df844b8512e27e90267cbb9bc7422
  57306f80a63b83b755043d05e85e83cf3178701c92d295c97d1a5a8be8ffce19"
 provides="d-compiler-${version}_${revision}"
+patch_args=-Np0
 
 post_extract() {
 	rm -rf dmd druntime phobos
diff --git a/srcpkgs/dmd2.081/template b/srcpkgs/dmd2.081/template
index 79aad0940085..f33ef534d0e7 100644
--- a/srcpkgs/dmd2.081/template
+++ b/srcpkgs/dmd2.081/template
@@ -24,6 +24,7 @@ provides="d-compiler-${version}_${revision}"
 conflicts="dmd-bootstrap"
 nopie=yes
 LDFLAGS="-lpthread"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _archbits=64;;
diff --git a/srcpkgs/dmd2.091/template b/srcpkgs/dmd2.091/template
index 72521df7cd3f..13e976b57a41 100644
--- a/srcpkgs/dmd2.091/template
+++ b/srcpkgs/dmd2.091/template
@@ -26,6 +26,7 @@ nopie=yes
 nocross=yes
 disable_parallel_build=yes
 LDFLAGS="-lpthread"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _archbits=64;;
diff --git a/srcpkgs/dmraid/template b/srcpkgs/dmraid/template
index 420749bc8aa6..5e51fa6f224b 100644
--- a/srcpkgs/dmraid/template
+++ b/srcpkgs/dmraid/template
@@ -17,6 +17,7 @@ distfiles="${homepage}/src/dmraid-${_distver}-${_patchver}.tar.bz2"
 checksum=93421bd169d71ff5e7d2db95b62b030bfa205a12010b6468dcdef80337d6fbd8
 disable_parallel_build=yes
 lib32disabled=yes
+patch_args=-Np0
 
 dmraid-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/dmtx-utils/template b/srcpkgs/dmtx-utils/template
index b251f0a2061b..a38d7cfcb776 100644
--- a/srcpkgs/dmtx-utils/template
+++ b/srcpkgs/dmtx-utils/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/dmtx/dmtx-utils"
 distfiles="https://github.com/dmtx/dmtx-utils/archive/v${version}/dmtx-utils-${version}.tar.gz"
 checksum=0d396ec14f32a8cf9e08369a4122a16aa2e5fa1675e02218f16f1ab777ea2a28
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/docbook-xsl-ns/template b/srcpkgs/docbook-xsl-ns/template
index 04b3c274e510..1b88e629d0a7 100644
--- a/srcpkgs/docbook-xsl-ns/template
+++ b/srcpkgs/docbook-xsl-ns/template
@@ -13,6 +13,7 @@ homepage="https://docbook.org/"
 distfiles="https://github.com/docbook/xslt10-stylesheets/releases/download/release/${version}/${wrksrc}.tar.bz2"
 checksum=316524ea444e53208a2fb90eeb676af755da96e1417835ba5f5eb719c81fa371
 xml_entries="nextCatalog /usr/share/xsl-ns/docbook/catalog.xml --"
+patch_args=-Np0
 
 do_install() {
 	local xslmods="assembly common eclipse epub epub3 fo highlighting html \
diff --git a/srcpkgs/docbook-xsl/template b/srcpkgs/docbook-xsl/template
index 5cf9b0d5fc98..260eee70d6f0 100644
--- a/srcpkgs/docbook-xsl/template
+++ b/srcpkgs/docbook-xsl/template
@@ -13,6 +13,7 @@ homepage="https://docbook.org/"
 distfiles="https://github.com/docbook/xslt10-stylesheets/releases/download/release/${version}/${wrksrc}.tar.bz2"
 checksum=ee8b9eca0b7a8f89075832a2da7534bce8c5478fc8fc2676f512d5d87d832102
 xml_entries="nextCatalog /usr/share/xsl/docbook/catalog.xml --"
+patch_args=-Np0
 
 do_install() {
 	local xslmods="assembly common eclipse epub epub3 fo highlighting html \
diff --git a/srcpkgs/dolphin-emu/template b/srcpkgs/dolphin-emu/template
index 729f66512d42..fdd4a636e7a5 100644
--- a/srcpkgs/dolphin-emu/template
+++ b/srcpkgs/dolphin-emu/template
@@ -22,6 +22,7 @@ homepage="http://dolphin-emu.org"
 distfiles="https://github.com/dolphin-emu/dolphin/archive/${_commit}.tar.gz"
 checksum=a7ce8390993b3309108dea8f23976b343d2d7cd527f3ded9ef4c2a0462c7f338
 nopie=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|aarch64*) ;;
diff --git a/srcpkgs/dovecot/template b/srcpkgs/dovecot/template
index 0222fd25026c..fddc5c1649db 100644
--- a/srcpkgs/dovecot/template
+++ b/srcpkgs/dovecot/template
@@ -21,6 +21,7 @@ homepage="https://dovecot.org/"
 distfiles="${homepage}/releases/2.3/${pkgname}-${version}.tar.gz"
 checksum=c8b3d7f3af1e558a3ff0f970309d4013a4d3ce136f8c02a53a3b05f345b9a34a
 keep_libtool_archives=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	_tsize=${XBPS_TARGET_WORDSIZE}
diff --git a/srcpkgs/doxygen/template b/srcpkgs/doxygen/template
index 051c1568bbb2..f86d771cb360 100644
--- a/srcpkgs/doxygen/template
+++ b/srcpkgs/doxygen/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.doxygen.org/"
 distfiles="http://doxygen.nl/files/doxygen-${version}.src.tar.gz"
 checksum=67aeae1be4e1565519898f46f1f7092f1973cce8a767e93101ee0111717091d1
+patch_args=-Np0
 
 build_options="wizard"
 desc_option_wizard="build Qt5 GUI configuration tool, doxywizard"
diff --git a/srcpkgs/dpdk/template b/srcpkgs/dpdk/template
index 0f74b4c99d64..acd23532f88c 100644
--- a/srcpkgs/dpdk/template
+++ b/srcpkgs/dpdk/template
@@ -18,6 +18,7 @@ distfiles="https://github.com/DPDK/${pkgname}/archive/v${version}.tar.gz"
 checksum=1ceff1a6f4f8d5f6f62c1682097249227ac5225ccd9638e0af09f5411c681038
 # import py3compat
 python_version=3
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	armv7l*) configure_args+=" -Dmachine=armv7-a";;
diff --git a/srcpkgs/dracut-crypt-ssh/template b/srcpkgs/dracut-crypt-ssh/template
index 1425d223052d..4a13f8ac5c1f 100644
--- a/srcpkgs/dracut-crypt-ssh/template
+++ b/srcpkgs/dracut-crypt-ssh/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/dracut-crypt-ssh/dracut-crypt-ssh"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=c50b57b16d4aea3707e1f3e86777fafdb1b3551f2f4b6c4de5576eeb3b2f6bbc
+patch_args=-Np0
 
 pre_configure() {
 	sed -i '111s/^/#/' configure
diff --git a/srcpkgs/dracut/template b/srcpkgs/dracut/template
index c8db2195c8a0..240e6661f2bf 100644
--- a/srcpkgs/dracut/template
+++ b/srcpkgs/dracut/template
@@ -17,6 +17,7 @@ checksum=d5a1b47cdb07919d8225d5b5f538e6ae604988f3df0afbde99a8dc775277b726
 subpackages="dracut-network"
 # Checks require distfiles come from a git repository
 make_check=no
+patch_args=-Np0
 
 make_dirs="
  /etc/dracut.conf.d 0755 root root
diff --git a/srcpkgs/drawterm/template b/srcpkgs/drawterm/template
index b871806e44e2..50dcbd25c798 100644
--- a/srcpkgs/drawterm/template
+++ b/srcpkgs/drawterm/template
@@ -11,6 +11,7 @@ license="LPL-1.02"
 homepage="http://drawterm.9front.org/"
 distfiles="https://code.9front.org/hg/${pkgname}/archive/${_hghash}.tar.gz"
 checksum=5740acc4f7eb8f0ea0524839847d993b7865d240070da69f7a28ca3b7aef6813
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	armv5*) CFLAGS+=" -DARMv5" ;;
diff --git a/srcpkgs/drbd-utils/template b/srcpkgs/drbd-utils/template
index 10574a2bee11..2b0963b34c1f 100644
--- a/srcpkgs/drbd-utils/template
+++ b/srcpkgs/drbd-utils/template
@@ -28,6 +28,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.drbd.org"
 distfiles="https://www.linbit.com/downloads/drbd/utils/${pkgname}-${version}.tar.gz"
 checksum=1102e2a2001a45685c2f4ce5cb14e5a8a099044f53389d38480b3a88f5db3fd1
+patch_args=-Np0
 
 # XXX mirror which is reachable from musl builders
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/dstat/template b/srcpkgs/dstat/template
index 9e9d9d3217ac..d23277b42bd1 100644
--- a/srcpkgs/dstat/template
+++ b/srcpkgs/dstat/template
@@ -11,6 +11,7 @@ homepage="http://dag.wiee.rs/home-made/dstat/"
 distfiles="https://github.com/dagwieers/dstat/archive/v${version}.tar.gz"
 checksum=4fbd58f3461c86d09a3ab97472aa204de37aa33d31a0493a3e5ed86a2045abea
 python_version="3"
+patch_args=-Np0
 
 do_install() {
 	make install DESTDIR=$DESTDIR
diff --git a/srcpkgs/dua-cli/template b/srcpkgs/dua-cli/template
index 4215cb087738..ef71afecf4d8 100644
--- a/srcpkgs/dua-cli/template
+++ b/srcpkgs/dua-cli/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/Byron/dua-cli"
 distfiles="https://github.com/Byron/dua-cli/archive/v${version}.tar.gz"
 checksum=2af2408eecca4a1a04d0d395322f110b97e49d5366eb435e2e0e36b8b92684bb
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/dumpet/template b/srcpkgs/dumpet/template
index 35204d8aa5e2..866d90e01bcc 100644
--- a/srcpkgs/dumpet/template
+++ b/srcpkgs/dumpet/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://tracker.debian.org/pkg/dumpet"
 distfiles="http://http.debian.net/debian/pool/main/d/dumpet/dumpet_${version}.orig.tar.bz2"
 checksum=2cc1fa3a1b06f885e4524d1be80bdacc5b6a55057d0577262f2f5186b49a4da3
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC CFLAGS="$CFLAGS -I${XBPS_CROSS_BASE}/usr/include/libxml2" \
diff --git a/srcpkgs/dunelegacy/template b/srcpkgs/dunelegacy/template
index b9373d6d47d0..2f87366e852f 100644
--- a/srcpkgs/dunelegacy/template
+++ b/srcpkgs/dunelegacy/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://dunelegacy.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}-src.tar.bz2"
 checksum=4740df9e94712b34f5d6fa1ca3c24658c4808b40431aa156ed66c318be9f4de8
+patch_args=-Np0
 
 post_install() {
 	vinstall dunelegacy.desktop 644 usr/share/applications
diff --git a/srcpkgs/duplicity/template b/srcpkgs/duplicity/template
index 85bfe1316380..5ca7c963de67 100644
--- a/srcpkgs/duplicity/template
+++ b/srcpkgs/duplicity/template
@@ -13,6 +13,7 @@ homepage="http://duplicity.nongnu.org/"
 changelog="http://duplicity.nongnu.org/vers8/CHANGELOG.md"
 distfiles="http://launchpad.net/duplicity/${version%.*}-series/${version}/+download/duplicity-${version}.tar.gz"
 checksum=2643fea0f52920a0fb114069c78389f9621f1c24db7f26bda77bbc239b01ae53
+patch_args=-Np0
 
 do_check() {
 	# Disable as tests don't work
diff --git a/srcpkgs/dust3d/template b/srcpkgs/dust3d/template
index 9ad934499983..ae6182905ced 100644
--- a/srcpkgs/dust3d/template
+++ b/srcpkgs/dust3d/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://dust3d.org/"
 distfiles="https://github.com/huxingyi/dust3d/archive/${_version}.tar.gz"
 checksum=7c29e1153e6b568459ab8a8fadbec3398a43b5d60f295018c3f0cdcad2d2b4b1
+patch_args=-Np0
 
 do_install() {
 	vbin dust3d
diff --git a/srcpkgs/dvd+rw-tools/template b/srcpkgs/dvd+rw-tools/template
index b3c996b8fc2f..29fac22fb794 100644
--- a/srcpkgs/dvd+rw-tools/template
+++ b/srcpkgs/dvd+rw-tools/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://fy.chalmers.se/~appro/linux/DVD+RW/"
 distfiles="http://fy.chalmers.se/~appro/linux/DVD+RW/tools/${pkgname}-${version}.tar.gz"
 checksum=f8d60f822e914128bcbc5f64fbe3ed131cbff9045dca7e12c5b77b26edde72ca
+patch_args=-Np0
 
 do_install() {
 	vbin growisofs
diff --git a/srcpkgs/dvdauthor/template b/srcpkgs/dvdauthor/template
index c4a81cd4aafe..499be371af64 100644
--- a/srcpkgs/dvdauthor/template
+++ b/srcpkgs/dvdauthor/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://dvdauthor.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/dvdauthor/dvdauthor-${version}.tar.gz"
 checksum="3020a92de9f78eb36f48b6f22d5a001c47107826634a785a62dfcd080f612eb7"
+patch_args=-Np0
 
 build_options="NTSC PAL"
 build_options_default="PAL"
diff --git a/srcpkgs/e2fsprogs/template b/srcpkgs/e2fsprogs/template
index ada38513b984..3ba60e34d293 100644
--- a/srcpkgs/e2fsprogs/template
+++ b/srcpkgs/e2fsprogs/template
@@ -19,6 +19,7 @@ homepage="http://e2fsprogs.sourceforge.net/"
 distfiles="${KERNEL_SITE}/kernel/people/tytso/e2fsprogs/v${version}/e2fsprogs-${version}.tar.xz"
 checksum=23aa093295c94e71ef1be490c4004871c5b01d216a8cb4d111fa6c0aac354168
 conf_files="/etc/mke2fs.conf /etc/e2scrub.conf"
+patch_args=-Np0
 
 do_check() {
 	ln -sfv /tools/lib/lib{blk,uu}id.so.1 lib
diff --git a/srcpkgs/eb/template b/srcpkgs/eb/template
index 9e71add969a7..6a2c71df08e9 100644
--- a/srcpkgs/eb/template
+++ b/srcpkgs/eb/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/2ion/eb"
 distfiles="https://github.com/2ion/eb/archive/${version}.tar.gz"
 checksum=16274f4d5ec34cc37ed308927390a1d0d09e0e6a2b35fbff7d17aacca0524a37
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/eboard/template b/srcpkgs/eboard/template
index 187fdd3651bf..c6d7fa2a681b 100644
--- a/srcpkgs/eboard/template
+++ b/srcpkgs/eboard/template
@@ -12,6 +12,7 @@ homepage="http://www.bergo.eng.br/eboard"
 distfiles="https://github.com/fbergo/eboard/archive/v${version}.tar.gz"
 checksum=2a1ba23a27c94ee4ec167bb31ab7dd6eedf148e139c9a96e8cb5ac36ec8423c1
 broken="ELF in /usr/share"
+patch_args=-Np0
 
 pre_install() {
 	mkdir -p "${DESTDIR}/usr/share/eboard"
diff --git a/srcpkgs/ecl/template b/srcpkgs/ecl/template
index a4e160c15bed..06d2acb9333d 100644
--- a/srcpkgs/ecl/template
+++ b/srcpkgs/ecl/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="https://common-lisp.net/project/ecl/"
 distfiles="https://common-lisp.net/project/ecl/static/files/release/ecl-${version}.tgz"
 checksum=76a585c616e8fa83a6b7209325a309da5bc0ca68e0658f396f49955638111254
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# Depend on system ecl
diff --git a/srcpkgs/ecryptfs-utils/template b/srcpkgs/ecryptfs-utils/template
index 6bdc07b97c32..72e1050a2516 100644
--- a/srcpkgs/ecryptfs-utils/template
+++ b/srcpkgs/ecryptfs-utils/template
@@ -17,6 +17,7 @@ homepage="http://ecryptfs.org/"
 distfiles="http://launchpad.net/ecryptfs/trunk/${version}/+download/${pkgname}_${version}.orig.tar.gz"
 checksum=112cb3e37e81a1ecd8e39516725dec0ce55c5f3df6284e0f4cc0f118750a987f
 lib32disabled=yes
+patch_args=-Np0
 
 CPPFLAGS="-D_FILE_OFFSET_BITS=64 -I${XBPS_CROSS_BASE}/usr/include/python2.7"
 
diff --git a/srcpkgs/efibootmgr/template b/srcpkgs/efibootmgr/template
index bd2e88bbbeac..7acb1f7500b6 100644
--- a/srcpkgs/efibootmgr/template
+++ b/srcpkgs/efibootmgr/template
@@ -11,6 +11,7 @@ homepage="https://github.com/rhinstaller/efibootmgr"
 distfiles="https://github.com/rhinstaller/efibootmgr/releases/download/${version}/${pkgname}-${version}.tar.bz2"
 distfiles="https://github.com/rhboot/efibootmgr/archive/${version}.tar.gz"
 checksum=22a95ebe0d5c9fb2915b3a100450f8f37484d1dbb8b296f55b343cc84f10397d
+patch_args=-Np0
 
 conf_files="/etc/default/efibootmgr-kernel-hook"
 
diff --git a/srcpkgs/efl/template b/srcpkgs/efl/template
index 8786d5d94edf..498040008735 100644
--- a/srcpkgs/efl/template
+++ b/srcpkgs/efl/template
@@ -56,6 +56,7 @@ changelog="https://git.enlightenment.org/core/efl.git/plain/NEWS"
 distfiles="https://download.enlightenment.org/rel/libs/efl/efl-${version}.tar.xz"
 checksum=351ca0211ca000234527a503585f039f985607ec9439e34b49d8b8bbf35a7e6b
 make_check=extended
+patch_args=-Np0
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -Dbuild-tests=true"
diff --git a/srcpkgs/electron10/template b/srcpkgs/electron10/template
index 0f2c83f6f483..9d6d3d0ef702 100644
--- a/srcpkgs/electron10/template
+++ b/srcpkgs/electron10/template
@@ -33,6 +33,7 @@ distfiles="https://github.com/electron/electron/archive/v$version.tar.gz>electro
 checksum="d75b78107656ef854cc99a967b225eeb1e5989c0a1307d9efad3f8039d387cd8
  e018547e54566410fb365d9f3dae10037c30fca5debe6ba8baceef3ad3b03d28
  dcd0a1e619ff326399ca8fd87f61c255f4d1e9bff47860064993f01e4ff37fe1"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*-musl) makedepends+=" libucontext-devel" ;;
diff --git a/srcpkgs/electron12/template b/srcpkgs/electron12/template
index 51c50b0f74ac..3f236d8decdb 100644
--- a/srcpkgs/electron12/template
+++ b/srcpkgs/electron12/template
@@ -34,6 +34,7 @@ distfiles="https://github.com/electron/electron/archive/v$version.tar.gz>electro
 checksum="1b4073baa3e93bb410591688b7ca6e59201ae9c8cf18f05e5a05ecfd7ffebfc8
  1a75ea6aeb98f2d3b6feae1fbf5692679e93d5b7631bc7c762dd873499deda5b
  bcdf869b0743405515ee897b1047b5e851a717e426b4974d26537c9b10dfd53a"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*-musl) makedepends+=" libucontext-devel" ;;
diff --git a/srcpkgs/elogind/template b/srcpkgs/elogind/template
index 8e9fb0ef6c81..bf02b6d0f530 100644
--- a/srcpkgs/elogind/template
+++ b/srcpkgs/elogind/template
@@ -22,6 +22,7 @@ checksum=dd2fcf22a89a078cad22e633d2f14a4cc9f4a9c8bae25c0e39fc4aec3e273bc9
 conf_files="/etc/elogind/*.conf"
 # tests fail differently due to containerization and kernel features
 make_check=ci-skip
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" -Dutmp=false"
diff --git a/srcpkgs/emerald/template b/srcpkgs/emerald/template
index 736828d1e670..e486c3a5757c 100644
--- a/srcpkgs/emerald/template
+++ b/srcpkgs/emerald/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/compiz-reloaded"
 distfiles="https://github.com/compiz-reloaded/emerald/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=53112b557c0d726ad75450b69df1649412ab5fcdf6c0827e383889f58bf437b1
+patch_args=-Np0
 
 pre_configure() {
 	mkdir -p m4
diff --git a/srcpkgs/endless-sky-gl21/template b/srcpkgs/endless-sky-gl21/template
index 5bb8355dc570..fe920ce65569 100644
--- a/srcpkgs/endless-sky-gl21/template
+++ b/srcpkgs/endless-sky-gl21/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/SolraBizna/endless-sky"
 distfiles="https://github.com/SolraBizna/endless-sky/archive/${_commit}.tar.gz"
 checksum=46918d0cc35aaeb1219194099223e3338245aa04aa3f29fd76e3376bf5779376
+patch_args=-Np0
 
 endless-sky-gl21-data_package() {
 	short_desc+=" - data files"
diff --git a/srcpkgs/engrampa/template b/srcpkgs/engrampa/template
index ac402d6fb4a9..3bf7459fc214 100644
--- a/srcpkgs/engrampa/template
+++ b/srcpkgs/engrampa/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=ee280d288c974732ec7bc2d1c3e18fa563b33a30f3e4cb3e976ebc71be6c4674
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/enigma/template b/srcpkgs/enigma/template
index d04fa5112492..861fec84d449 100644
--- a/srcpkgs/enigma/template
+++ b/srcpkgs/enigma/template
@@ -12,6 +12,7 @@ homepage="http://www.nongnu.org/enigma/"
 distfiles="${SOURCEFORGE_SITE}/enigma-game/Release%20${version}/${pkgname}-${version}.tar.gz"
 checksum=d872cf067d8eb560d3bb1cb17245814bc56ac3953ae1f12e2229c8eb6f82ce01
 replaces="enigma-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/SDL"
 
diff --git a/srcpkgs/enlightenment/template b/srcpkgs/enlightenment/template
index db9c886dc920..2ffabb259e5d 100644
--- a/srcpkgs/enlightenment/template
+++ b/srcpkgs/enlightenment/template
@@ -20,6 +20,7 @@ checksum=be18e2f18d6c0b058f633e769863d3cbc4c07b629058ae670dec74cd7906dff1
 lib32disabled=yes
 build_options="wayland"
 build_options_default="wayland"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" -a "$build_option_wayland" ]; then
 	hostmakedepends+=" wayland-devel"
diff --git a/srcpkgs/entr/template b/srcpkgs/entr/template
index fa608a4d0ddd..0e8f027eabe5 100644
--- a/srcpkgs/entr/template
+++ b/srcpkgs/entr/template
@@ -10,6 +10,7 @@ homepage="http://entrproject.org"
 changelog="https://raw.githubusercontent.com/eradman/entr/master/NEWS"
 distfiles="$homepage/code/$pkgname-$version.tar.gz"
 checksum=e256a4d2fbe46f6132460833ba447e65d7f35ba9d0b265e7c4150397cc4405a2
+patch_args=-Np0
 
 post_extract() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/enyo-doom/template b/srcpkgs/enyo-doom/template
index 9e900f2799a0..d529a514908e 100644
--- a/srcpkgs/enyo-doom/template
+++ b/srcpkgs/enyo-doom/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.com/sdcofer70/enyo-doom"
 distfiles="https://gitlab.com/sdcofer70/enyo-doom/-/archive/${version}/enyo-doom-${version}.tar.bz2"
 checksum=03d490081753dfd1d40b7cc8142b8f0e7642bad6f3d724f9ba9cfad0253f1a34
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/epdfview/template b/srcpkgs/epdfview/template
index 2c6b5774b49d..06d6a4fd4420 100644
--- a/srcpkgs/epdfview/template
+++ b/srcpkgs/epdfview/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://freshmeat.sourceforge.net/projects/epdfview"
 distfiles="http://anduin.linuxfromscratch.org/BLFS/epdfview/epdfview-${version}.tar.bz2"
 checksum=948648ae7c9d7b3b408d738bd4f48d87375b1196cae1129d6b846a8de0f2f8f0
+patch_args=-Np0
 
 post_install() {
 	for f in 24 32 48; do
diff --git a/srcpkgs/espeakup/template b/srcpkgs/espeakup/template
index 6cbc9d0da552..569162c6857e 100644
--- a/srcpkgs/espeakup/template
+++ b/srcpkgs/espeakup/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/williamh/espeakup"
 distfiles="https://github.com/williamh/espeakup/archive/v${version}.tar.gz"
 checksum="4de284e30b6bdb0f9dee9c8ea02d13a3d20a61415b812338446b8b381e997ef4"
+patch_args=-Np0
 
 post_install() {
 	vsv espeakup
diff --git a/srcpkgs/eukleides/template b/srcpkgs/eukleides/template
index a955ef5bc911..992cfa8e25b6 100644
--- a/srcpkgs/eukleides/template
+++ b/srcpkgs/eukleides/template
@@ -12,6 +12,7 @@ homepage="http://www.eukleides.org/"
 distfiles="http://www.eukleides.org/files/${pkgname}-${version}.tar.bz2"
 checksum=18c489460cb2cb98f4ea9c0187519ef77b4422117fd43bcd4e4836580ef40c69
 disable_parallel_build=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/evemu/template b/srcpkgs/evemu/template
index e65f2f63ac98..bc53c54383e9 100644
--- a/srcpkgs/evemu/template
+++ b/srcpkgs/evemu/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-only, MIT"
 homepage="https://freedesktop.org/wiki/Evemu/"
 distfiles=${FREEDESKTOP_SITE}/evemu/evemu-$version.tar.xz
 checksum=78c9400d55eeeb5ab75161360543f9376438c4da4934cb34cdda5b46021ae379
+patch_args=-Np0
 
 post_install() {
 	sed -n '/Copyright/,/IN THE SOFTWARE/p' src/evemu.c >LICENSE
diff --git a/srcpkgs/evolution-data-server/template b/srcpkgs/evolution-data-server/template
index 136c47804c04..b4cc9ccbab4b 100644
--- a/srcpkgs/evolution-data-server/template
+++ b/srcpkgs/evolution-data-server/template
@@ -20,6 +20,7 @@ homepage="https://wiki.gnome.org/Apps/Evolution"
 changelog="https://raw.githubusercontent.com/GNOME/evolution-data-server/gnome-3-38/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=ec82951639f32a5cece80a8b0b9aa3f66b7d318e3ee2c1c35234f2e2bde8a418
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/evolution/template b/srcpkgs/evolution/template
index 1b3b6fa7e9f4..84071a14f9af 100644
--- a/srcpkgs/evolution/template
+++ b/srcpkgs/evolution/template
@@ -22,6 +22,7 @@ distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=9b4c31352332fb9dc0ff23625ba1552c13808f1c9ba019496b750be87e07a5fd
 shlib_provides="libevolution-calendar.so libevolution-util.so libemail-engine.so
  libevolution-mail.so libevolution-shell.so libevolution-mail-formatter.so"
+patch_args=-Np0
 
 evolution-devel_package() {
 	depends="webkit2gtk-devel gtk+3-devel libglib-devel evolution-data-server-devel
diff --git a/srcpkgs/evtest/template b/srcpkgs/evtest/template
index 1feed55a9d6c..ee6bca695ac8 100644
--- a/srcpkgs/evtest/template
+++ b/srcpkgs/evtest/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://cgit.freedesktop.org/evtest/"
 distfiles="https://cgit.freedesktop.org/evtest/snapshot/evtest-${version}.tar.xz"
 checksum=e49f1f160b30c8f7c2a4caef5ab655f1caf816483d19fdedd6db2d251d7ab80e
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ex-vi/template b/srcpkgs/ex-vi/template
index ea54bb437895..84e0dbe713d1 100644
--- a/srcpkgs/ex-vi/template
+++ b/srcpkgs/ex-vi/template
@@ -15,6 +15,7 @@ distfiles="${SOURCEFORGE_SITE}/$pkgname/ex-${version}.tar.bz2"
 checksum=da4be7cf67e94572463b19e56850aa36dc4e39eb0d933d3688fe8574bb632409
 CFLAGS=-I.
 disable_parallel_build=yes
+patch_args=-Np0
 
 alternatives="
  vi:ex:/usr/bin/ex-ex
diff --git a/srcpkgs/exfat-dkms/template b/srcpkgs/exfat-dkms/template
index f0d28ef17dfb..1f590f1e8c90 100644
--- a/srcpkgs/exfat-dkms/template
+++ b/srcpkgs/exfat-dkms/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/dorimanx/exfat-nofuse"
 distfiles="https://github.com/dorimanx/exfat-nofuse/archive/${_commit}.tar.gz"
 checksum=b88a98f0a7e1b987465f5ccfcafb384b293506c7fec9d3b91b803e0fe5b16e0a
+patch_args=-Np0
 
 dkms_modules="exfat ${version}"
 depends="dkms"
diff --git a/srcpkgs/exo/template b/srcpkgs/exo/template
index 65ff908fb98b..e872f31c77b8 100644
--- a/srcpkgs/exo/template
+++ b/srcpkgs/exo/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://xfce.org/"
 distfiles="https://archive.xfce.org/src/xfce/exo/${version%.*}/exo-${version}.tar.bz2"
 checksum=4e89f5536afbf1cb9191cceb720fb2764df1a4fae3459512b7320841ab5a9e9d
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/expect/template b/srcpkgs/expect/template
index 2d0bdbd4e44f..59a7d2c99aa9 100644
--- a/srcpkgs/expect/template
+++ b/srcpkgs/expect/template
@@ -14,6 +14,7 @@ license="Public Domain"
 homepage="http://www.nist.gov/el/msid/expect.cfm"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/Expect/${version}/${pkgname}${version}.tar.gz"
 checksum=49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34
+patch_args=-Np0
 
 alternatives="
  mkpasswd:mkpasswd:/usr/bin/expect-mkpasswd
diff --git a/srcpkgs/extra-cmake-modules/template b/srcpkgs/extra-cmake-modules/template
index 1723115fb094..ffc5946416c3 100644
--- a/srcpkgs/extra-cmake-modules/template
+++ b/srcpkgs/extra-cmake-modules/template
@@ -13,6 +13,7 @@ homepage="https://invent.kde.org/frameworks/extra-cmake-modules"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=5972ec6d78c3e95ab9cbecdb0661c158570e868466357c5cec2b63a4251ecce4
 python_version=3
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING-CMAKE-SCRIPTS
diff --git a/srcpkgs/faad2/template b/srcpkgs/faad2/template
index 33158709e655..e2e9b2ff1243 100644
--- a/srcpkgs/faad2/template
+++ b/srcpkgs/faad2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.audiocoding.com/"
 distfiles="https://github.com/knik0/faad2/archive/${version//./_}.tar.gz"
 checksum=0c6d9636c96f95c7d736f097d418829ced8ec6dbd899cc6cc82b728480a84bfb
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -vfi
diff --git a/srcpkgs/fake-hwclock/template b/srcpkgs/fake-hwclock/template
index 5e69b6e020e8..0a90feae5d28 100644
--- a/srcpkgs/fake-hwclock/template
+++ b/srcpkgs/fake-hwclock/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="https://tracker.debian.org/pkg/fake-hwclock"
 distfiles="${DEBIAN_SITE}/main/f/${pkgname}/${pkgname}_${version}.tar.xz"
 checksum=02a825f7460ab06b370c203250606c67b0effffa1645a4a4f7ff3928eec4957e
+patch_args=-Np0
 
 conf_files="/etc/default/fake-hwclock"
 
diff --git a/srcpkgs/fakeroot/template b/srcpkgs/fakeroot/template
index f9d2cf9bb085..cae58c1efc56 100644
--- a/srcpkgs/fakeroot/template
+++ b/srcpkgs/fakeroot/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://salsa.debian.org/clint/fakeroot"
 distfiles="${DEBIAN_SITE}/main/f/fakeroot/${pkgname}_${version}.orig.tar.gz"
 checksum=8e903683357f7f5bcc31b879fd743391ad47691d4be33d24a76be3b6c21e956c
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/falkon/template b/srcpkgs/falkon/template
index 1a5eb3cd60bc..4727e1fb6cc2 100644
--- a/srcpkgs/falkon/template
+++ b/srcpkgs/falkon/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/KDE/falkon"
 distfiles="${KDE_SITE}/falkon/${version%.*}/falkon-${version}.tar.xz"
 checksum=ce743cd80c0e2d525a784e29c9b487f73480119b0567f9ce8ef1f44cca527587
+patch_args=-Np0
 
 LDFLAGS="-Wl,--no-fatal-warnings"
 
diff --git a/srcpkgs/farstream/template b/srcpkgs/farstream/template
index 6162c2966a56..470b3cb4f761 100644
--- a/srcpkgs/farstream/template
+++ b/srcpkgs/farstream/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.freedesktop.org/wiki/Software/Farstream"
 distfiles="${FREEDESKTOP_SITE}/farstream/releases/$pkgname/$pkgname-$version.tar.gz"
 checksum=cb7d112433cf7c2e37a8ec918fb24f0ea5cb293cfa1002488e431de26482f47b
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/fastd/template b/srcpkgs/fastd/template
index d07de67b11dc..e03c1838342b 100644
--- a/srcpkgs/fastd/template
+++ b/srcpkgs/fastd/template
@@ -17,6 +17,7 @@ conf_files="
  /etc/fastd/fastd.conf"
 make_dirs="/etc/fastd/peers	755	root 	root"
 CFLAGS="-I$XBPS_CROSS_BASE/usr/include/sodium"
+patch_args=-Np0
 
 pre_configure() {
 	# remove ssse3 requirement to support older AMD CPUs.
diff --git a/srcpkgs/faust/template b/srcpkgs/faust/template
index 03b44b2f2580..bac06eafa812 100644
--- a/srcpkgs/faust/template
+++ b/srcpkgs/faust/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://faust.grame.fr/"
 distfiles=https://github.com/grame-cncm/faust/releases/download/${version}/${pkgname}-${version}.tar.gz
 checksum="6cf64b8ee92c2db74d7d83d726b0ecb6f7e141deeadf4cd40c60e467893e0bfc"
+patch_args=-Np0
 
 # Android stuffs, used by the 'faust2android' script.
 nostrip_files="libsndfile.so "
diff --git a/srcpkgs/fbida/template b/srcpkgs/fbida/template
index 347632343733..46290f5cb5d4 100644
--- a/srcpkgs/fbida/template
+++ b/srcpkgs/fbida/template
@@ -18,6 +18,7 @@ checksum=95b7c01556cb6ef9819f358b314ddfeb8a4cbe862b521a3ed62f03d163154438
 depends="fbida-exiftran-${version}_${revision} fbida-fbi-${version}_${revision}
  fbida-fbpdf-${version}_${revision} $(vopt_if ida fbida-ida-${version}_${revision})"
 nocross="Requires cairo-gl.pc for the target which Void does not have"
+patch_args=-Np0
 
 build_options="ida"
 desc_option_ida="Build ida motif application (needs motif-devel)"
diff --git a/srcpkgs/fbreader/template b/srcpkgs/fbreader/template
index 0ffe6f5aeeab..1dcbe6f1c552 100644
--- a/srcpkgs/fbreader/template
+++ b/srcpkgs/fbreader/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.fbreader.org/"
 distfiles="http://www.fbreader.org/files/desktop/${pkgname}-sources-${version}.tgz"
 checksum=3d7c31d5ea314589d2a963290ad16f4d3d631a41e802b8b39f8be0c9f71eb8e9
+patch_args=-Np0
 
 do_build() {
 	sed -e "s:-llinebreak:-lunibreak:" -i makefiles/config.mk zlibrary/text/Makefile
diff --git a/srcpkgs/fbterm/template b/srcpkgs/fbterm/template
index f97ecc509dc7..47a4ba3ff5bd 100644
--- a/srcpkgs/fbterm/template
+++ b/srcpkgs/fbterm/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/izmntuk/fbterm"
 distfiles="https://github.com/izmntuk/${pkgname}/archive/v${version%.*}.tar.gz"
 checksum=68e9742b23d6f143d809a5930f5f22c7e55d7c14a4ab2c8a842e0b5c27b1f863
+patch_args=-Np0
 
 post_configure() {
 	sed -i "s,tic,& -o $DESTDIR/usr/share/terminfo," terminfo/Makefile
diff --git a/srcpkgs/fbv/template b/srcpkgs/fbv/template
index 0df248768ceb..da3387dc2b63 100644
--- a/srcpkgs/fbv/template
+++ b/srcpkgs/fbv/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.eclis.ch/fbv/"
 distfiles="http://s-tech.elsat.net.pl/fbv/fbv-${version}.tar.gz"
 checksum=9b55b9dafd5eb01562060d860e267e309a1876e8ba5ce4d3303484b94129ab3c
+patch_args=-Np0
 
 do_configure() {
 	sed -i '/^CFLAGS/d' Makefile
diff --git a/srcpkgs/fbxkb/template b/srcpkgs/fbxkb/template
index 1356d32df971..123e36a95f25 100644
--- a/srcpkgs/fbxkb/template
+++ b/srcpkgs/fbxkb/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://fbxkb.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tgz"
 checksum="fcbaf4ed9a70f58ea1316b19da74e2ca8b3fb0e2de5a73c849317589ce840ef2"
+patch_args=-Np0
 
 pre_build() {
 # Substitute compiler,
diff --git a/srcpkgs/fcitx-anthy/template b/srcpkgs/fcitx-anthy/template
index 02150ea5ca5d..42a048057b17 100644
--- a/srcpkgs/fcitx-anthy/template
+++ b/srcpkgs/fcitx-anthy/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://fcitx-im.org/"
 distfiles="https://github.com/fcitx/fcitx-anthy/archive/${version}.tar.gz"
 checksum=dcb561138508757f37da8a85bdf296368b592649b15ab76e8706db47cc25402a
+patch_args=-Np0
 
 CXXFLAGS='-D_GNU_SOURCE'
 
diff --git a/srcpkgs/fcitx/template b/srcpkgs/fcitx/template
index 00675b1fedc0..d562bf7c9434 100644
--- a/srcpkgs/fcitx/template
+++ b/srcpkgs/fcitx/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, MIT"
 homepage="https://fcitx-im.org/"
 distfiles="http://download.fcitx-im.org/fcitx/fcitx-${version}_dict.tar.xz"
 checksum=bc3515cba0561546fe02dae81391d4a03e0e79a2d668aa794cd3a377284033c6
+patch_args=-Np0
 
 hostmakedepends="pkg-config doxygen extra-cmake-modules glib-devel"
 makedepends="iso-codes gettext-devel enchant-devel libxml2-devel
diff --git a/srcpkgs/fcron/template b/srcpkgs/fcron/template
index 11efd44b0bbd..ffb03fb0fceb 100644
--- a/srcpkgs/fcron/template
+++ b/srcpkgs/fcron/template
@@ -31,6 +31,7 @@ license="GPL-2.0-or-later"
 homepage="http://fcron.free.fr"
 distfiles="$homepage/archives/$pkgname-$version.src.tar.gz"
 checksum=9aead33a0926e2eec123698c502114c6d67b483fe1ec232969fae6809b0bab60
+patch_args=-Np0
 
 alternatives="
  crond:crond:/etc/sv/fcron
diff --git a/srcpkgs/ferm/template b/srcpkgs/ferm/template
index 3b623d0dd0cc..0183d4c4bee6 100644
--- a/srcpkgs/ferm/template
+++ b/srcpkgs/ferm/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://ferm.foo-projects.org/"
 distfiles="http://ferm.foo-projects.org/download/${version:0:3}/ferm-${version}.tar.xz"
 checksum=689541465e7c073cbd604c9cd18f113c31c0b41bb12614726a59b17e44058885
+patch_args=-Np0
 
 do_install() {
 	make install PREFIX=${DESTDIR}/usr
diff --git a/srcpkgs/ffmpeg/template b/srcpkgs/ffmpeg/template
index e6667478fe13..50ab8e58c2b5 100644
--- a/srcpkgs/ffmpeg/template
+++ b/srcpkgs/ffmpeg/template
@@ -10,6 +10,7 @@ homepage="https://www.ffmpeg.org"
 changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="${homepage}/releases/ffmpeg-${version}.tar.xz"
 checksum=46e4e64f1dd0233cbc0934b9f1c0da676008cad34725113fb7f802cfa84ccddb
+patch_args=-Np0
 
 hostmakedepends="pkg-config perl yasm"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
diff --git a/srcpkgs/fig2dev/template b/srcpkgs/fig2dev/template
index 87bdbd3d8ad6..95003a4f225b 100644
--- a/srcpkgs/fig2dev/template
+++ b/srcpkgs/fig2dev/template
@@ -13,6 +13,7 @@ homepage="http://www.xfig.org/"
 distfiles="${SOURCEFORGE_SITE}/mcj/${pkgname}-${version}.tar.xz"
 checksum=6336ac492d0f71dfb7a1dd8f4d78eae17aa57a34f743d4e5ba9814991c2da7ae
 replaces="transfig>=0"
+patch_args=-Np0
 
 post_install() {
 	sed '/^$/q' <fig2dev/fig2dev.c >LICENSE
diff --git a/srcpkgs/filezilla/template b/srcpkgs/filezilla/template
index b115f782ed4c..00f456085434 100644
--- a/srcpkgs/filezilla/template
+++ b/srcpkgs/filezilla/template
@@ -16,6 +16,7 @@ homepage="https://filezilla-project.org"
 changelog="https://svn.filezilla-project.org/filezilla/FileZilla3/trunk/NEWS?view=co"
 distfiles="https://download.filezilla-project.org/client/FileZilla_${version}_src.tar.bz2"
 checksum=703a199c13bb681d6eb0e3fe6e1cc9d0b690016acdd47b26bd12a2a95ff4aa6a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" wxWidgets-gtk3-devel xdg-utils"
diff --git a/srcpkgs/fingerprint-gui/template b/srcpkgs/fingerprint-gui/template
index 08d226569eb8..52f7084d1d9a 100644
--- a/srcpkgs/fingerprint-gui/template
+++ b/srcpkgs/fingerprint-gui/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.ullrich-online.cc/fingerprint/"
 distfiles="https://github.com/maksbotan/${pkgname}/archive/v${version}-qt5.tar.gz"
 checksum=a28d43e7e505f8ed15c8360bd91603eaf3206c225a542d0116669caafd89154c
+patch_args=-Np0
 
 # build system deals poorly with cross headers so include
 # them manually
diff --git a/srcpkgs/firefox-esr/template b/srcpkgs/firefox-esr/template
index e4ea57638c2c..38251ae0a73c 100644
--- a/srcpkgs/firefox-esr/template
+++ b/srcpkgs/firefox-esr/template
@@ -25,6 +25,7 @@ distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${versi
 checksum=979141a6d94bbe303815e9cd1ab1d23b5ce2f9c77d9d5486871eaecf0ea2df40
 lib32disabled=yes
 conflicts="firefox>=0"
+patch_args=-Np0
 
 build_options="alsa jack dbus pulseaudio xscreensaver sndio wayland"
 build_options_default="alsa jack dbus pulseaudio xscreensaver sndio wayland"
diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template
index 3ce8a92ecbb0..01dfcc17657c 100644
--- a/srcpkgs/firefox/template
+++ b/srcpkgs/firefox/template
@@ -12,6 +12,7 @@ license="MPL-2.0, GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.mozilla.org/firefox/"
 distfiles="${MOZILLA_SITE}/${pkgname}/releases/${version}/source/${pkgname}-${version}.source.tar.xz"
 checksum=db43d7d5796455051a5b847f6daa3423393803c9288c8b6d7f1186f5e2e0a90a
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/firejail/template b/srcpkgs/firejail/template
index 6b6a27403ec4..ab0544ef2e04 100644
--- a/srcpkgs/firejail/template
+++ b/srcpkgs/firejail/template
@@ -14,5 +14,6 @@ changelog="https://github.com/netblue30/firejail/raw/master/RELNOTES"
 distfiles="https://github.com/netblue30/firejail/archive/${version}.tar.gz"
 checksum=17a20c4c9f114aa8fdab467cecb60309f599ad08b4bbb3e751c992d98a95ac18
 conf_files="/etc/firejail/* /etc/apparmor.d/local/firejail-default"
+patch_args=-Np0
 
 nocross=yes
diff --git a/srcpkgs/flatpak-builder/template b/srcpkgs/flatpak-builder/template
index 208481c58b25..6435f58c3f6e 100644
--- a/srcpkgs/flatpak-builder/template
+++ b/srcpkgs/flatpak-builder/template
@@ -14,6 +14,7 @@ distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.xz
 checksum=4780c1b8e0838ffb64e9639bd7801417964fd818c7c6d5e9afca4d5511ded2c8
 # Tests expects a Debian derivate hosts to build a flatpak container from.
 make_check=no
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" flatpak-devel"
diff --git a/srcpkgs/flatpak/template b/srcpkgs/flatpak/template
index da8807535ee1..d3bfe4578455 100644
--- a/srcpkgs/flatpak/template
+++ b/srcpkgs/flatpak/template
@@ -23,6 +23,7 @@ homepage="https://flatpak.org/"
 changelog="https://github.com/flatpak/flatpak/raw/master/NEWS"
 distfiles="https://github.com/flatpak/flatpak/releases/download/${version}/flatpak-${version}.tar.xz"
 checksum=db152739d072f8ff299e4e888d8963a1b4538da7b10e0b86525be438f2e1dde4
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/flex/template b/srcpkgs/flex/template
index f07dee0ee482..60b111758bdc 100644
--- a/srcpkgs/flex/template
+++ b/srcpkgs/flex/template
@@ -13,6 +13,7 @@ license="custom:flex"
 homepage="https://github.com/westes/flex"
 distfiles="https://github.com/westes/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995
+patch_args=-Np0
 
 # Required to enable the definition of reallocarray() in stdlib.h
 CFLAGS="-D_GNU_SOURCE"
diff --git a/srcpkgs/flightgear/template b/srcpkgs/flightgear/template
index e5528205b9e0..ac8cb4c9032c 100644
--- a/srcpkgs/flightgear/template
+++ b/srcpkgs/flightgear/template
@@ -22,6 +22,7 @@ checksum="
  1f07e8ef2c558dae3b9738e313b57e711d38e569f85d49fc2c5ae647e3949a17
  2196f4ffcdeaae3a8b0a2b6ebf62a456bfd0198abb6c0619f763204d89804a03"
 python_version=2
+patch_args=-Np0
 
 nocross=https://build.voidlinux.org/builders/armv7l-musl_builder/builds/4773/steps/shell_3/logs/stdio
 
diff --git a/srcpkgs/flowcanvas/template b/srcpkgs/flowcanvas/template
index 4b61be701061..10fd327e1c95 100644
--- a/srcpkgs/flowcanvas/template
+++ b/srcpkgs/flowcanvas/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://drobilla.net/software/flowcanvas/"
 distfiles="http://download.drobilla.net/${pkgname}-${version}.tar.bz2"
 checksum=047928d858fd1e9296a9984de7468c86bbe23fc42e286691b8f273541402c596
+patch_args=-Np0
 
 CXXFLAGS="-std=c++11"
 
diff --git a/srcpkgs/foobillard++/template b/srcpkgs/foobillard++/template
index d92355a8cabe..185f4f62b16a 100644
--- a/srcpkgs/foobillard++/template
+++ b/srcpkgs/foobillard++/template
@@ -19,6 +19,7 @@ CFLAGS="-fgnu89-inline"
 # flags from freetype-config and sdl-config
 CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/freetype2"
 CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/SDL -D_GNU_SOURCE=1"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/foomatic-db-engine/template b/srcpkgs/foomatic-db-engine/template
index dc1a21716e5a..909ca2605b93 100644
--- a/srcpkgs/foomatic-db-engine/template
+++ b/srcpkgs/foomatic-db-engine/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.openprinting.org/"
 distfiles="https://www.openprinting.org/download/foomatic/$pkgname-$version.tar.gz"
 checksum=b5c89027aa26967d2e6db62e2af7db0c4039d2480d4fbf2476a6ddcf609a5faf
+patch_args=-Np0
 
 post_configure() {
 	# Compiling and linking in one step requires $(LDFLAGS)
diff --git a/srcpkgs/foremost/template b/srcpkgs/foremost/template
index cb463049d370..91e336667023 100644
--- a/srcpkgs/foremost/template
+++ b/srcpkgs/foremost/template
@@ -9,6 +9,7 @@ license="Public Domain"
 homepage="http://foremost.sourceforge.net/"
 distfiles="http://foremost.sourceforge.net/pkg/foremost-${version}.tar.gz"
 checksum=502054ef212e3d90b292e99c7f7ac91f89f024720cd5a7e7680c3d1901ef5f34
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/fossil/template b/srcpkgs/fossil/template
index 0e8afbbdadf4..6773f5d85441 100644
--- a/srcpkgs/fossil/template
+++ b/srcpkgs/fossil/template
@@ -13,6 +13,7 @@ homepage="https://www.fossil-scm.org"
 changelog="https://www.fossil-scm.org/home/doc/trunk/www/changes.wiki"
 distfiles="https://www.fossil-scm.org/index.html/uv/fossil-src-${version}.tar.gz"
 checksum=80d27923c663b2a2c710f8ae8cd549862e04f8c04285706274c34ae3c8ca17d1
+patch_args=-Np0
 
 post_extract() {
 	vsed -i 's/test_system_sqlite$/# &/' auto.def  # failing on cross
diff --git a/srcpkgs/fotoxx/template b/srcpkgs/fotoxx/template
index a3c968fcdef0..d954ae814495 100644
--- a/srcpkgs/fotoxx/template
+++ b/srcpkgs/fotoxx/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.kornelix.net/fotoxx/fotoxx.html"
 distfiles="https://www.kornelix.net/downloads/downloads/fotoxx-${version}.tar.gz"
 checksum=0c16597053ce8e186fb8163839f4f4ed44548bf00e43e88951f4346a9dbbb620
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/champlain-0.12"
 
diff --git a/srcpkgs/fpc/template b/srcpkgs/fpc/template
index 7967b25165b1..c867802cf756 100644
--- a/srcpkgs/fpc/template
+++ b/srcpkgs/fpc/template
@@ -40,6 +40,7 @@ esac
 nocross=yes
 nopie=yes
 noverifyrdeps=yes
+patch_args=-Np0
 
 post_extract() {
 	# extract recursive tar files or otherwise post-process.
diff --git a/srcpkgs/fprint_demo/template b/srcpkgs/fprint_demo/template
index 723fa68f3f7d..8e08614dbf43 100644
--- a/srcpkgs/fprint_demo/template
+++ b/srcpkgs/fprint_demo/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.freedesktop.org/wiki/Software/fprint/fprint_demo/"
 distfiles="https://github.com/dsd/${pkgname}/archive/v${version}.tar.gz"
 checksum=6f54f43e0a015cd83504a2c726a59154c5aee83e229e8494d54e592624ee3ad5
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/frame/template b/srcpkgs/frame/template
index faf98cc44932..d43faff47cc3 100644
--- a/srcpkgs/frame/template
+++ b/srcpkgs/frame/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-only"
 homepage="https://launchpad.net/frame"
 distfiles="https://launchpad.net/${pkgname}/trunk/v${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=cfb9ab52cdccd926f1822a457264d0014c7eb9f4600a72626063dd073b26256f
+patch_args=-Np0
 
 frame-devel_package() {
 	depends="frame>=${version}_${revision}"
diff --git a/srcpkgs/freecad/template b/srcpkgs/freecad/template
index a11272680797..86abc16ea9e9 100644
--- a/srcpkgs/freecad/template
+++ b/srcpkgs/freecad/template
@@ -4,6 +4,7 @@ version=0.19.2
 revision=1
 wrksrc="FreeCAD-${version}"
 build_style=cmake
+patch_args=-Np0
 
 _inst_prefix=/usr/lib/${pkgname}
 configure_args="
diff --git a/srcpkgs/freeciv/template b/srcpkgs/freeciv/template
index cb6434529441..2dbb80c62a52 100644
--- a/srcpkgs/freeciv/template
+++ b/srcpkgs/freeciv/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://freeciv.org/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=6181ef3d3c76264383aabbe0eaf1550d8a65ca42639e6c17cc2938165e176c8f
+patch_args=-Np0
 
 subpackages="freeciv-gtk2 freeciv-gtk3 freeciv-sdl freeciv-xaw"
 if [ -z "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/freedroidClassic/template b/srcpkgs/freedroidClassic/template
index fe8b987c8ac7..a386f4e0ae04 100644
--- a/srcpkgs/freedroidClassic/template
+++ b/srcpkgs/freedroidClassic/template
@@ -13,6 +13,7 @@ license="GPL-2"
 homepage="http://freedroid.org"
 distfiles="http://sourceforge.net/projects/freedroid/files/${pkgname}/FreedroidClassic-${version}/freedroid-${version}.tar.gz"
 checksum=0934bd29fb2ad0367ea3bdfdce47537179f9af6aa960cbcc897c40da2e1a0ee3
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/freeimage/template b/srcpkgs/freeimage/template
index c45052a67b17..49167a736380 100644
--- a/srcpkgs/freeimage/template
+++ b/srcpkgs/freeimage/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later, FreeImage"
 homepage="http://freeimage.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/freeimage/Source%20Distribution/FreeImage${version//./}.zip"
 checksum=f41379682f9ada94ea7b34fe86bf9ee00935a3147be41b6569c9605a53e438fd
+patch_args=-Np0
 
 CFLAGS="-fPIC -DPIC -fexceptions -fvisibility=hidden -DPNG_POWERPC_VSX_OPT=0"
 CXXFLAGS="${CFLAGS} -Wno-ctor-dtor-privacy"
diff --git a/srcpkgs/freeipmi/template b/srcpkgs/freeipmi/template
index e6818b20f15c..0a0b14774420 100644
--- a/srcpkgs/freeipmi/template
+++ b/srcpkgs/freeipmi/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/freeipmi/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=cfa30179b44c582e73cf92c2ad0e54fe49f9fd87f7a0889be9dc2db5802e6aab
+patch_args=-Np0
 
 conf_files="/etc/freeipmi/*.conf"
 make_dirs="/var/cache/ipmiseld 0755 root root"
diff --git a/srcpkgs/freeorion/template b/srcpkgs/freeorion/template
index 37bfc09176c4..32ccda483397 100644
--- a/srcpkgs/freeorion/template
+++ b/srcpkgs/freeorion/template
@@ -16,6 +16,7 @@ homepage="https://freeorion.org/index.php/Main_Page"
 changelog="https://raw.githubusercontent.com/freeorion/freeorion/master/ChangeLog.md"
 distfiles="https://github.com/freeorion/freeorion/releases/download/v${version}/FreeOrion_v${_release}_Source.tar.gz"
 checksum=e72ab42cba1ee8842507340931ef389e64011e040a4adc74add5f4997bbcba8b
+patch_args=-Np0
 
 post_extract() {
 	_build_no=${_release/*_/}
diff --git a/srcpkgs/freeplane/template b/srcpkgs/freeplane/template
index 52a4365845f2..2d92e1536f59 100644
--- a/srcpkgs/freeplane/template
+++ b/srcpkgs/freeplane/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://freeplane.sourceforge.net/"
 distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname%20stable/${pkgname}_src-$version.tar.gz"
 checksum=7cb3abeda6a073262b63603852d3f3fe2cdb34e917435e9648209efa9c3b1e21
+patch_args=-Np0
 
 make_dirs="
 /usr/share/freeplane/fwdir/condperm/ 755 root root
diff --git a/srcpkgs/freetds/template b/srcpkgs/freetds/template
index c1e2b541a6b8..bc88622a836a 100644
--- a/srcpkgs/freetds/template
+++ b/srcpkgs/freetds/template
@@ -13,6 +13,7 @@ license="LGPL-2.0-or-later"
 homepage="https://www.freetds.org/"
 distfiles="https://www.freetds.org/files/stable/freetds-${version}.tar.gz"
 checksum=a2134ff1852003c0aeed82bd5f7842233ff287c3a14252b84d2653983aff7da1
+patch_args=-Np0
 
 conf_files="/etc/freetds/freetds.conf
  /etc/freetds/locales.conf
diff --git a/srcpkgs/freetype/template b/srcpkgs/freetype/template
index ba4c6ad900c4..b41edae73a6f 100644
--- a/srcpkgs/freetype/template
+++ b/srcpkgs/freetype/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, FTL"
 homepage="https://www.freetype.org/"
 distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=86a854d8905b19698bbc8f23b860bc104246ce4854dcea8e3b0fb21284f75784
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e "s/%PKG_CONFIG%/pkg-config/" builds/unix/freetype-config.in
diff --git a/srcpkgs/freshplayerplugin/template b/srcpkgs/freshplayerplugin/template
index a6205c0ba98d..7730d4954be2 100644
--- a/srcpkgs/freshplayerplugin/template
+++ b/srcpkgs/freshplayerplugin/template
@@ -13,6 +13,7 @@ homepage="https://github.com/i-rinat/freshplayerplugin"
 changelog="https://raw.githubusercontent.com/i-rinat/freshplayerplugin/master/ChangeLog"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=4fa4fe07e812f6e10784ff984e1389b9b444ca44b84101999c6fad8f55db59d9
+patch_args=-Np0
 
 do_install() {
 	vinstall build/libfreshwrapper-flashplayer.so 755 usr/lib/mozilla/plugins
diff --git a/srcpkgs/fs-utils/template b/srcpkgs/fs-utils/template
index 91a0d1dcc0d6..cc8fe606ab0a 100644
--- a/srcpkgs/fs-utils/template
+++ b/srcpkgs/fs-utils/template
@@ -15,6 +15,7 @@ distfiles="$homepage/archive/v$version.tar.gz
 checksum="0f63aa92f673f290d4bca9009ca6f213e70ac70519c5cdac3fa64acf5afa5bae
  228892fd0f669ee3051aee19f8660e4719bee9bd70c1b02adcaee518d4155866"
 skip_extraction="LICENSE"
+patch_args=-Np0
 
 post_install() {
 	vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/LICENSE
diff --git a/srcpkgs/fuse/template b/srcpkgs/fuse/template
index 10061307b416..812f9dfc16d1 100644
--- a/srcpkgs/fuse/template
+++ b/srcpkgs/fuse/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://github.com/libfuse/libfuse"
 distfiles="${homepage}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=d0e69d5d608cc22ff4843791ad097f554dd32540ddc9bed7638cc6fea7c1b4b5
+patch_args=-Np0
 
 post_install() {
 	# remove obsolete rules file provided by udev.
diff --git a/srcpkgs/gamin/template b/srcpkgs/gamin/template
index 3ed85f0bb6f3..bc4b244b5757 100644
--- a/srcpkgs/gamin/template
+++ b/srcpkgs/gamin/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.gnome.org/~veillard/gamin/"
 distfiles="$GNOME_SITE/gamin/0.1/gamin-${version}.tar.bz2"
 checksum=a59948b20ce2f14136c013f155abb8c8d51db2ea167c063ff33461e453fec10a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gammu/template b/srcpkgs/gammu/template
index bb5d54bcfe90..71ebeecdab9f 100644
--- a/srcpkgs/gammu/template
+++ b/srcpkgs/gammu/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://wammu.eu"
 distfiles="https://dl.cihar.com/gammu/releases/gammu-${version}.tar.bz2"
 checksum=6197f8b4d35746d31567e61880121def676f225eba05276648410eaa6ce60c9f
+patch_args=-Np0
 
 gammu-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/gatling/template b/srcpkgs/gatling/template
index 9993c3a0cd69..15aefdfd53d9 100644
--- a/srcpkgs/gatling/template
+++ b/srcpkgs/gatling/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.fefe.de/gatling"
 distfiles="https://www.fefe.de/gatling/$pkgname-$version.tar.xz"
 checksum=5f96438ee201d7f1f6c2e0849ff273b196bdc7493f29a719ce8ed08c8be6365b
+patch_args=-Np0
 
 CFLAGS="-std=c99 -I${XBPS_CROSS_BASE}/usr/include/libowfat -fcommon"
 
diff --git a/srcpkgs/gavl/template b/srcpkgs/gavl/template
index 0f5f50d93565..8abcc051e743 100644
--- a/srcpkgs/gavl/template
+++ b/srcpkgs/gavl/template
@@ -11,6 +11,7 @@ homepage="http://gmerlin.sourceforge.net/gavl.html"
 distfiles="${SOURCEFORGE_SITE}/gmerlin/gavl/${version}/gavl-${version}.tar.gz"
 checksum=51aaac41391a915bd9bad07710957424b046410a276e7deaff24a870929d33ce
 CFLAGS="-lm"
+patch_args=-Np0
 
 gavl-devel_package() {
 	depends="gavl>=${version}_${revision}"
diff --git a/srcpkgs/gbdfed/template b/srcpkgs/gbdfed/template
index 788a9abab08b..55de7fabe98c 100644
--- a/srcpkgs/gbdfed/template
+++ b/srcpkgs/gbdfed/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause, MIT"
 homepage="http://sofia.nmsu.edu/~mleisher/Software/gbdfed/"
 distfiles="https://src.fedoraproject.org/repo/pkgs/gbdfed/gbdfed-${version}.tar.bz2/2a2e1cbfe8566db6d302f0b9ab79b8dd/gbdfed-${version}.tar.bz2"
 checksum=5db25d4ce688dcb188dee056e58614a94a5e4fce4b6066fbb310951ab999093c
+patch_args=-Np0
 
 post_install() {
 	sed '/^$/q' <gbdfed.c >LICENSE
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 07ceeccc93d4..ade2f5007df0 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -2,6 +2,7 @@
 archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 _majorver=10.2
+patch_args=-Np0
 
 pkgname=gcc-multilib
 version=${_majorver}.1pre1
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index ba7084934857..4de5faa93f5a 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -8,6 +8,7 @@ _gmp_version=6.2.0
 _mpfr_version=4.1.0
 _mpc_version=1.1.0
 _isl_version=0.21
+patch_args=-Np0
 
 pkgname=gcc
 # we are using a 10-stable git snapshot alpine is using in order
diff --git a/srcpkgs/gcolor2/template b/srcpkgs/gcolor2/template
index 4aec89567aa9..7a3eaeb093a9 100644
--- a/srcpkgs/gcolor2/template
+++ b/srcpkgs/gcolor2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://gcolor2.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=89bd6c6d27ba5a679ec60057de8497855072f520515b490e5986fc3509774f23
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gdm/template b/srcpkgs/gdm/template
index c76e13c2de12..371445e58e2d 100644
--- a/srcpkgs/gdm/template
+++ b/srcpkgs/gdm/template
@@ -24,6 +24,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Projects/GDM"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=5ed74b739d3a232ffb1e4a132bcf965bdfe955d995b528773588775b02f2950e
+patch_args=-Np0
 
 conf_files="
 	/etc/gdm/custom.conf
diff --git a/srcpkgs/gdmap/template b/srcpkgs/gdmap/template
index 47b0105feb38..7b321c76487c 100644
--- a/srcpkgs/gdmap/template
+++ b/srcpkgs/gdmap/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://gdmap.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=a200c98004b349443f853bf611e49941403fce46f2335850913f85c710a2285b
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/geary/template b/srcpkgs/geary/template
index a74b1ff16cd2..17c2c0af3176 100644
--- a/srcpkgs/geary/template
+++ b/srcpkgs/geary/template
@@ -20,6 +20,7 @@ homepage="https://wiki.gnome.org/Apps/Geary"
 _series=${version%.${version#*.*.}}
 distfiles="${GNOME_SITE}/${pkgname}/${_series}/geary-${version}.tar.xz"
 checksum=e72e212798536657d5100e1e1a4a67f3836d6f0235340aae53e576f2a774e812
+patch_args=-Np0
 
 post_patch() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/geda/template b/srcpkgs/geda/template
index 6626bc91fd94..32afaf0681bb 100644
--- a/srcpkgs/geda/template
+++ b/srcpkgs/geda/template
@@ -18,6 +18,7 @@ distfiles="http://ftp.geda-project.org/geda-gaf/stable/v${version%.*}/${version}
 checksum=e862ab241528538fa3bee2739261f568011102b60c5e39a2f0358663c042c8a4
 python_version=2
 replaces="geda-data>=0"
+patch_args=-Np0
 
 CFLAGS="-Wno-deprecated-declarations -fcommon -Wno-unused-function"
 
diff --git a/srcpkgs/geis/template b/srcpkgs/geis/template
index ddad320d93a7..3f3b40e52315 100644
--- a/srcpkgs/geis/template
+++ b/srcpkgs/geis/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="https://launchpad.net/geis"
 distfiles="https://launchpad.net/geis/trunk/$version/+download/geis-$version.tar.xz"
 checksum=8a60f5683852094038904e690d23cc5a90a980fc52da67f0f28890baa25c70eb
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	configure_args+=" --enable-integration-tests=no"
diff --git a/srcpkgs/geos/template b/srcpkgs/geos/template
index efc698ab3dc8..bd7f56da854c 100644
--- a/srcpkgs/geos/template
+++ b/srcpkgs/geos/template
@@ -9,6 +9,7 @@ license="LGPL-2.1-or-later"
 homepage="https://trac.osgeo.org/geos"
 distfiles="https://download.osgeo.org/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=7e630507dcac9dc07565d249a26f06a15c9f5b0c52dd29129a0e3d381d7e382a
+patch_args=-Np0
 
 geos-devel_package() {
 	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
diff --git a/srcpkgs/gfm/template b/srcpkgs/gfm/template
index a21661053740..950339e880e7 100644
--- a/srcpkgs/gfm/template
+++ b/srcpkgs/gfm/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.ticalc.org"
 distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${_tilpver}/${pkgname}-${version}.tar.bz2"
 checksum=09031ac0abf686b6a8bc9935f331ef460415783a1057f11b0af993526b52017f
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" gettext-devel"
diff --git a/srcpkgs/giac/template b/srcpkgs/giac/template
index ca95534498f2..1e87c15d2b3f 100644
--- a/srcpkgs/giac/template
+++ b/srcpkgs/giac/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
 distfiles="https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_${version%.*}-${version##*.}.tar.gz"
 checksum=bbd6f0aafe373de3c9ed53d21878224e847359fdd9a7cdf9e9096e7c960f10b4
+patch_args=-Np0
 
 # need more than 4*65536 stack, see try_parse() in gen.cc line 11812
 LDFLAGS="-Wl,-z,stack-size=2097152"
diff --git a/srcpkgs/giflib/template b/srcpkgs/giflib/template
index 4f01f28e079e..9f3d399c6a5e 100644
--- a/srcpkgs/giflib/template
+++ b/srcpkgs/giflib/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://sourceforge.net/projects/giflib/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=31da5562f44c5f15d63340a09a4fd62b48c45620cd302f77a6d9acf0077879bd
+patch_args=-Np0
 
 CFLAGS="-fPIC"
 
diff --git a/srcpkgs/giggle/template b/srcpkgs/giggle/template
index 8240dd9afcd1..91eee3d7d911 100644
--- a/srcpkgs/giggle/template
+++ b/srcpkgs/giggle/template
@@ -14,6 +14,7 @@ homepage="https://wiki.gnome.org/Apps/giggle"
 distfiles="${GNOME_SITE}/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
 checksum=ae2e2237fa0d0999d99d0a0ee9b7ec147e80bd2472d59a045b2b01eb02261f59
 lib32disabled=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index 999c9a6f46f0..45a894853d35 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -23,6 +23,7 @@ checksum=bd1bb762368c0dd3175cf05006812dd676949c3707e21f4e6857435cb435989e
 python_version=2
 lib32disabled=yes
 no_generic_pkgconfig_link=yes
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 autoreconf -fi
diff --git a/srcpkgs/git-annex/template b/srcpkgs/git-annex/template
index cdcd6bb0f83c..25f8338e6833 100644
--- a/srcpkgs/git-annex/template
+++ b/srcpkgs/git-annex/template
@@ -15,6 +15,7 @@ distfiles="https://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-
 checksum=17109144b2aadfab79fa0e193df3e0c02fd80f738a5ed6eccb0d11692bedb01d
 nopie_files="/usr/bin/git-annex"
 nocross=yes
+patch_args=-Np0
 
 # These install steps are pulled from the install target in the
 # git-annex Makefile. The target can't be called directly because it is
diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template
index f375d2dcfa17..eae2e61b6819 100644
--- a/srcpkgs/gitea/template
+++ b/srcpkgs/gitea/template
@@ -33,6 +33,7 @@ homepage="https://gitea.io"
 changelog="https://github.com/go-gitea/gitea/blob/master/CHANGELOG.md"
 distfiles="https://github.com/go-gitea/gitea/releases/download/v${version}/gitea-src-${version}.tar.gz"
 checksum=d04bca934feba35600aaf739c82b7cbe7d8b911a086d7ac54f0710b689a85ac3
+patch_args=-Np0
 
 system_accounts="_gitea"
 _gitea_homedir="/var/lib/gitea"
diff --git a/srcpkgs/gitg/template b/srcpkgs/gitg/template
index e309a6a1462f..87376f22160e 100644
--- a/srcpkgs/gitg/template
+++ b/srcpkgs/gitg/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Gitg"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=24a4aabf8a42aa2e783e1fb5996ebb3c2a82a01b9689269f1329517ef124ef5a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -Dexe_wrapper=qemu-${XBPS_TARGET_QEMU_MACHINE}-static"
diff --git a/srcpkgs/gkrellm/template b/srcpkgs/gkrellm/template
index f2c1721ac5ee..59a20ddb0b90 100644
--- a/srcpkgs/gkrellm/template
+++ b/srcpkgs/gkrellm/template
@@ -11,6 +11,7 @@ license="GPL-3.0.or-later"
 homepage="http://gkrellm.srcbox.net"
 distfiles="${homepage}/releases/gkrellm-${version}.tar.bz2"
 checksum=1ee0643ed9ed99f88c1504c89d9ccb20780cf29319c904b68e80a8e7c8678c06
+patch_args=-Np0
 
 do_install() {
 	make PREFIX=/usr DESTDIR=${DESTDIR} STRIP= install
diff --git a/srcpkgs/glances/template b/srcpkgs/glances/template
index 29bc7790e11d..daf47f64f7a3 100644
--- a/srcpkgs/glances/template
+++ b/srcpkgs/glances/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-or-later"
 homepage="https://github.com/nicolargo/glances"
 distfiles="https://github.com/nicolargo/glances/archive/v${version}.tar.gz"
 checksum=5839a110af35af35b7a1d30c15e59c59359480c2eaec852d30480c96b8cf8d76
+patch_args=-Np0
 
 post_install() {
 	vsconf conf/glances.conf
diff --git a/srcpkgs/glib/template b/srcpkgs/glib/template
index 855a55856b31..9538134e3b36 100644
--- a/srcpkgs/glib/template
+++ b/srcpkgs/glib/template
@@ -17,6 +17,7 @@ homepage="https://wiki.gnome.org/Projects/GLib"
 changelog="https://gitlab.gnome.org/GNOME/glib/raw/master/NEWS"
 distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz"
 checksum=ecc7798a9cc034eabdfd7f246e6dd461cdbf1175fcc2e9867cc7da7b7309e0fb
+patch_args=-Np0
 
 build_options="gtk_doc"
 desc_option_gtk_doc="Build GTK API docs"
diff --git a/srcpkgs/gloox/template b/srcpkgs/gloox/template
index 0099876f5b22..f56bd1621233 100644
--- a/srcpkgs/gloox/template
+++ b/srcpkgs/gloox/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://camaya.net/gloox"
 distfiles="https://camaya.net/download/gloox-${version}.tar.bz2"
 checksum=4ade1b14848ccfcd89a505a4fff05116c24f13cef8d02fab0ade2717117ec964
+patch_args=-Np0
 
 gloox-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/glusterfs/template b/srcpkgs/glusterfs/template
index 93fd87eeda76..ec10ef21466f 100644
--- a/srcpkgs/glusterfs/template
+++ b/srcpkgs/glusterfs/template
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later, LGPL-3.0-only"
 homepage="https://www.gluster.org/"
 distfiles="https://download.gluster.org/pub/gluster/glusterfs/${version%.*}/${version}/${pkgname}-${version}.tar.gz"
 checksum=6f29ae4ab2c270ade0cd14a3f733d7d33fda78e79e81b148cd50711f65069d87
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) broken="not yet supported";;
diff --git a/srcpkgs/glyr/template b/srcpkgs/glyr/template
index 30dbe4e87f8e..6055834d3fb9 100644
--- a/srcpkgs/glyr/template
+++ b/srcpkgs/glyr/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-or-later"
 homepage="https://github.com/sahib/glyr"
 distfiles="https://github.com/sahib/glyr/archive/${version}.tar.gz"
 checksum=77e8da60221c8d27612e4a36482069f26f8ed74a1b2768ebc373c8144ca806e8
+patch_args=-Np0
 
 glyr-devel_package() {
 	depends="glyr>=${version}_${revision}"
diff --git a/srcpkgs/gmrun/template b/srcpkgs/gmrun/template
index b3565fa4929e..4e6727f20d06 100644
--- a/srcpkgs/gmrun/template
+++ b/srcpkgs/gmrun/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://sf.net/projects/gmrun"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=17297bce53249ccc7145931db22251b47f77ac355f78cf8abf1e87ae16341fa0
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/gnome-authenticator/template b/srcpkgs/gnome-authenticator/template
index e1bd1ee9e443..ceca3efe8578 100644
--- a/srcpkgs/gnome-authenticator/template
+++ b/srcpkgs/gnome-authenticator/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.gnome.org/World/Authenticator"
 distfiles="${homepage}/-/archive/${version}/Authenticator-${version}.tar.gz"
 checksum="d7250fbef1de2dcb599a55ff3d40dcc6ed5618fe89d50ec795281d8ba3123d5b"
+patch_args=-Np0
 
 post_patch() {
 	find src/Authenticator/widgets -type f -exec \
diff --git a/srcpkgs/gnome-desktop/template b/srcpkgs/gnome-desktop/template
index b92478185d66..72565e7b28e8 100644
--- a/srcpkgs/gnome-desktop/template
+++ b/srcpkgs/gnome-desktop/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://gitlab.gnome.org/GNOME/gnome-desktop"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=02dd6e5860e90395b5d88745ee30239a919285afbb7a22cf17e3be25e9abfbf6
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/gnome-keyring/template b/srcpkgs/gnome-keyring/template
index b8defd1997dd..6ec17559c86f 100644
--- a/srcpkgs/gnome-keyring/template
+++ b/srcpkgs/gnome-keyring/template
@@ -17,6 +17,7 @@ homepage="https://www.gnome.org"
 distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
 checksum=a3d24db08ee2fdf240fbbf0971a98c8ee295aa0e1a774537f4ea938038a3b931
 lib32disabled=yes
+patch_args=-Np0
 
 do_check() {
 	# Requires X11 server
diff --git a/srcpkgs/gnome-latex/template b/srcpkgs/gnome-latex/template
index 4739891c8ff2..f1c5f3c7c3c4 100644
--- a/srcpkgs/gnome-latex/template
+++ b/srcpkgs/gnome-latex/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Apps/GNOME-LaTeX"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=a82a9fc6f056929ea18d6dffd121e71b2c21768808c86ef1f34da0f86e220d77
+patch_args=-Np0
 
 # for 00-port-to-tepl-6.patch
 hostmakedepends+=" automake gettext-devel-tools libtool"
diff --git a/srcpkgs/gnome-photos/template b/srcpkgs/gnome-photos/template
index fee19723ed89..57280f653793 100644
--- a/srcpkgs/gnome-photos/template
+++ b/srcpkgs/gnome-photos/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Photos"
 distfiles="${GNOME_SITE}/gnome-photos/${version%.*}/gnome-photos-${version}.tar.xz"
 checksum=e02d73e138af8b2868b5cad7faa1bdd278aeade3b6c3c92836511a4e6f3af1af
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/gnome-screensaver/template b/srcpkgs/gnome-screensaver/template
index 1a23f6dcfb06..d0a3a8968ce8 100644
--- a/srcpkgs/gnome-screensaver/template
+++ b/srcpkgs/gnome-screensaver/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Projects/GnomeScreensaver"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=f39b78d4f7fed748c7f0a31d694112fb907c6d3c4e63db22eb858df07e962cd0
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/gnome-session/template b/srcpkgs/gnome-session/template
index e5bc350e66fd..ff7a0d03e67c 100644
--- a/srcpkgs/gnome-session/template
+++ b/srcpkgs/gnome-session/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://gitlab.gnome.org/GNOME/gnome-session"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*.*}/${pkgname}-${version}.tar.xz"
 checksum=9c787829ee32e13e1508b9aee2b1d9ba42a02c48e6c8094e34f3e7f92af4df82
+patch_args=-Np0
 
 post_install() {
 	rm -rf ${DESTDIR}/tmp
diff --git a/srcpkgs/gnome-settings-daemon/template b/srcpkgs/gnome-settings-daemon/template
index 081c88ebfd73..f6d6acf73f2d 100644
--- a/srcpkgs/gnome-settings-daemon/template
+++ b/srcpkgs/gnome-settings-daemon/template
@@ -20,6 +20,7 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.gnome.org/GNOME/gnome-settings-daemon"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*.*}/${pkgname}-${version}.tar.xz"
 checksum=37dfac1b69a53e2e499228420259d6e134c1c06b74530af88fa855bda1187b21
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" polkit"
diff --git a/srcpkgs/gnome-terminal/template b/srcpkgs/gnome-terminal/template
index 4a397445dd1a..89ddda4dfea8 100644
--- a/srcpkgs/gnome-terminal/template
+++ b/srcpkgs/gnome-terminal/template
@@ -15,6 +15,7 @@ homepage="https://wiki.gnome.org/Apps/Terminal"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=4c79af8ffe8bd3a5daca1911ea2c0acd6872860a1dd5d7eea219f4ab4ae556ac
 lib32disabled=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --disable-search-provider"
diff --git a/srcpkgs/gnu-efi-libs/template b/srcpkgs/gnu-efi-libs/template
index 0b8c679b5225..e85a677cbae1 100644
--- a/srcpkgs/gnu-efi-libs/template
+++ b/srcpkgs/gnu-efi-libs/template
@@ -12,6 +12,7 @@ homepage="https://sourceforge.net/projects/gnu-efi/"
 distfiles="${SOURCEFORGE_SITE}/gnu-efi/gnu-efi-${version}.tar.bz2"
 checksum=0196f2e1fd3c334b66e610a608a0e59233474c7a01bec7bc53989639aa327669
 nostrip=yes
+patch_args=-Np0
 
 # If we are cross-building we need to pass the cross-compilation triplet
 # to the CROSS_COMPILE environment variable so the build system uses
diff --git a/srcpkgs/gnucash/template b/srcpkgs/gnucash/template
index fa8bd17d09ad..084157bb4735 100644
--- a/srcpkgs/gnucash/template
+++ b/srcpkgs/gnucash/template
@@ -18,6 +18,7 @@ homepage="http://www.gnucash.org"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 #distfiles="https://sources.voidlinux.org/gnucash-${version}/gnucash-${version}.tar.bz2"
 checksum=bc1f48a8453488a2e9f6b83b68613aa55caebe4d2983460bdac7e084b46cffdc
+patch_args=-Np0
 
 pycompile_dirs="usr/share/gnucash/python"
 conf_files="/etc/gnucash/environment"
diff --git a/srcpkgs/gnupg2/template b/srcpkgs/gnupg2/template
index 36fba35e68bb..0d7118e83c3a 100644
--- a/srcpkgs/gnupg2/template
+++ b/srcpkgs/gnupg2/template
@@ -22,6 +22,7 @@ distfiles="https://gnupg.org/ftp/gcrypt/gnupg/gnupg-${version}.tar.bz2"
 checksum=6ff891fc7583a9c3fb9f097ee0d1de0a12469d4b53997e7ba5064950637dfaec
 build_options="ldap"
 build_options_default="ldap"
+patch_args=-Np0
 
 post_patch() {
 	# On at least aarch64, configure sets this even though it doesn't exist
diff --git a/srcpkgs/gnuradio-nrsc5/template b/srcpkgs/gnuradio-nrsc5/template
index 6299e7c90b02..0f7ad2134ac2 100644
--- a/srcpkgs/gnuradio-nrsc5/template
+++ b/srcpkgs/gnuradio-nrsc5/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/argilo/gr-nrsc5/"
 distfiles="https://github.com/argilo/gr-nrsc5/archive/v${version}.tar.gz"
 checksum=d736c4cb1104254d07296d2a61880e07149c9bfd1a49aed504215672d4e09485
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/gnustep-base/template b/srcpkgs/gnustep-base/template
index 483dd8011bee..aaf01eaaf64e 100644
--- a/srcpkgs/gnustep-base/template
+++ b/srcpkgs/gnustep-base/template
@@ -13,6 +13,7 @@ homepage="http://www.gnustep.org/"
 distfiles="http://ftp.gnustep.org/pub/gnustep/core/gnustep-base-${version}.tar.gz"
 checksum=c7d7c6e64ac5f5d0a4d5c4369170fc24ed503209e91935eb0e2979d1601039ed
 make_check=extended
+patch_args=-Np0
 
 nocross="objc doesn't get cross build at present within gcc"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/gnustep-make/template b/srcpkgs/gnustep-make/template
index e77d199252d0..4c6407db9f5b 100644
--- a/srcpkgs/gnustep-make/template
+++ b/srcpkgs/gnustep-make/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnustep.org"
 distfiles="http://ftp.gnustep.org/pub/gnustep/core/${pkgname}-${version}.tar.gz"
 checksum=a0b066c11257879c7c85311dea69c67f6dc741ef339db6514f85b64992c40d2a
+patch_args=-Np0
 
 post_install() {
 	sed -i 's,/builddir/.xbps-gnustep-make/wrappers,/usr/bin,g' ${DESTDIR}/usr/share/GNUstep/Makefiles/config.make
diff --git a/srcpkgs/gnutls/template b/srcpkgs/gnutls/template
index 3f02c29d3b27..fc1a507c8b14 100644
--- a/srcpkgs/gnutls/template
+++ b/srcpkgs/gnutls/template
@@ -22,6 +22,7 @@ license="GPL-3.0-only, LGPL-2.1-or-later"
 homepage="https://gnutls.org"
 distfiles="https://www.gnupg.org/ftp/gcrypt/gnutls/v${version%.*}/gnutls-${version}.tar.xz"
 checksum=1b79b381ac283d8b054368b335c408fedcb9b7144e0c07f531e3537d4328f3b3
+patch_args=-Np0
 
 pre_check() {
 	# same as $PASS in tests/cert-tests/certtool
diff --git a/srcpkgs/goaccess/template b/srcpkgs/goaccess/template
index ce6231cc0253..2dec69e429b9 100644
--- a/srcpkgs/goaccess/template
+++ b/srcpkgs/goaccess/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://goaccess.io"
 distfiles="http://tar.goaccess.io/goaccess-${version}.tar.gz"
 checksum=c4820e781f75d9446f6b1be5fc8d11c6ec94a47fa8dd523001698c589f46c1ba
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/godot/template b/srcpkgs/godot/template
index aa63677d6d8c..134880e902c0 100644
--- a/srcpkgs/godot/template
+++ b/srcpkgs/godot/template
@@ -29,6 +29,7 @@ homepage="https://www.godotengine.org/"
 distfiles="https://github.com/godotengine/${pkgname}/archive/${version}-stable.tar.gz"
 checksum=595ff16eaef3d0b6c030575f4b7fcae8b805e407b90a2f71af3e4142362c1794
 nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/6342/steps/shell_3/logs/stdio
+patch_args=-Np0
 
 CFLAGS+=" -fPIE -fPIC"
 LDFLAGS+=" -pie"
diff --git a/srcpkgs/gogglesmm/template b/srcpkgs/gogglesmm/template
index 29579786726d..0b4c48ad6b25 100644
--- a/srcpkgs/gogglesmm/template
+++ b/srcpkgs/gogglesmm/template
@@ -17,6 +17,7 @@ distfiles="https://github.com/gogglesmm/gogglesmm/archive/${version}.tar.gz"
 checksum=f068667e0a825ac792eda344cbe94c29fe8668ddbdd269c094e5bf168acd2380
 python_version=2 #unverified
 nocross="Tries to execute compiled code"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) broken="PTHREAD_RWLOCK_PREFER_WRITER_NP usage" ;;
diff --git a/srcpkgs/goldendict/template b/srcpkgs/goldendict/template
index 7553e408d1a7..c987fefdac41 100644
--- a/srcpkgs/goldendict/template
+++ b/srcpkgs/goldendict/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="http://goldendict.org/"
 distfiles="https://github.com/goldendict/goldendict/archive/${version/RC/-RC}.tar.gz"
 checksum=bccee0a3d3902f8fa31e439e220a405065fff774e5f8c581be2b0743d3f83fde
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated"
 
diff --git a/srcpkgs/gosu/template b/srcpkgs/gosu/template
index 1dffcc0a7665..9bc74859e375 100644
--- a/srcpkgs/gosu/template
+++ b/srcpkgs/gosu/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://www.libgosu.org"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=4dbc4998e2c630ee7758544de4286c70c68e639524b6088ccdc7b5487c928695
+patch_args=-Np0
 
 CXXFLAGS+=" -D_GLIBCXX_USE_C99_STDIO=1"
 
diff --git a/srcpkgs/goxel/template b/srcpkgs/goxel/template
index e731c606727d..ee3c31ace469 100644
--- a/srcpkgs/goxel/template
+++ b/srcpkgs/goxel/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://guillaumechereau.github.io/goxel/"
 distfiles="https://github.com/guillaumechereau/goxel/archive/v${version}.tar.gz"
 checksum=dfb91e62bdd5332e3938923db924bae43f12eaa181040d16e4cc7082316adf1c
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/gpart/template b/srcpkgs/gpart/template
index d222fbf9a784..3c7332430024 100644
--- a/srcpkgs/gpart/template
+++ b/srcpkgs/gpart/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/baruch/gpart"
 distfiles="https://github.com/baruch/gpart/archive/${version}.tar.gz"
 checksum=ec56d12ec9ffdb9877c12692ea6e51620b1ae44473d3d253b27fc31ed9ebb4dd
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gperftools/template b/srcpkgs/gperftools/template
index de7e9423d343..859e6a4e874e 100644
--- a/srcpkgs/gperftools/template
+++ b/srcpkgs/gperftools/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/gperftools/gperftools"
 distfiles="${homepage}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=240deacdd628b6459671b83eb0c4db8e97baadf659f25b92e9a078d536bd513e
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	# needed by some newly enabled code
diff --git a/srcpkgs/gpgme/template b/srcpkgs/gpgme/template
index 072da12708d4..62f7384c0bf9 100644
--- a/srcpkgs/gpgme/template
+++ b/srcpkgs/gpgme/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.gnupg.org/software/gpgme/index.html"
 distfiles="https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-${version}.tar.bz2"
 checksum=eebc3c1b27f1c8979896ff361ba9bb4778b508b2496c2fc10e3775a40b1de1ad
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" ac_cv_sys_file_offset_bits=no"
diff --git a/srcpkgs/gpick/template b/srcpkgs/gpick/template
index b30108334144..aad5569a3320 100644
--- a/srcpkgs/gpick/template
+++ b/srcpkgs/gpick/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/thezbyg/gpick"
 distfiles="https://github.com/thezbyg/gpick/archive/${pkgname}-${version}.tar.gz"
 checksum=7d02be171cc88c44ad3e3572c0922bbabedc9d542b989f324fca9d5db3161e9c
+patch_args=-Np0
 
 post_install() {
 	rm -rf ${DESTDIR}/usr/share/doc
diff --git a/srcpkgs/gpm/template b/srcpkgs/gpm/template
index 360f58668c53..534422693feb 100644
--- a/srcpkgs/gpm/template
+++ b/srcpkgs/gpm/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.nico.schottelius.org/software/gpm/"
 distfiles="http://www.nico.schottelius.org/software/gpm/archives/gpm-${version}.tar.lzma"
 checksum=a955053b36556ffa7c628ce18fd6de7d625966573fa412fb08869533d8f7385c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gpsbabel/template b/srcpkgs/gpsbabel/template
index 24c0a420e09d..12305e0fe6e3 100644
--- a/srcpkgs/gpsbabel/template
+++ b/srcpkgs/gpsbabel/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.gpsbabel.org/"
 distfiles="https://github.com/gpsbabel/${pkgname}/archive/${pkgname}_${version//./_}.tar.gz"
 checksum=30b186631fb43db576b8177385ed5c31a5a15c02a6bc07bae1e0d7af9058a797
+patch_args=-Np0
 
 replaces="gpsbabel-gui>=0"
 
diff --git a/srcpkgs/gpsd/template b/srcpkgs/gpsd/template
index 4198bf214936..6d76d3417361 100644
--- a/srcpkgs/gpsd/template
+++ b/srcpkgs/gpsd/template
@@ -18,6 +18,7 @@ distfiles="http://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-${version}
 checksum=3998a5cbb728e97f896f46c3c83301b1e6c5d859393e58c2fad8c5426774d571
 python_version=3	# Must be same version as scons
 system_accounts="gpsd"
+patch_args=-Np0
 
 subpackages="gpsd-devel gpsd-qt gpsd-qt-devel"
 if [ -z "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/grpc/template b/srcpkgs/grpc/template
index 60677cf4f68b..d0763bb7db4b 100644
--- a/srcpkgs/grpc/template
+++ b/srcpkgs/grpc/template
@@ -20,6 +20,7 @@ distfiles="${homepage}/archive/v${version}/${pkgname}-${version}.tar.gz
  https://github.com/abseil/abseil-cpp/archive/${_abseilver}/abseil-cpp-${_abseilver}.tar.gz"
 checksum="abd9e52c69000f2c051761cfa1f12d52d8b7647b6c66828a91d462e796f2aede
  35f22ef5cb286f09954b7cc4c85b5a3f6221c9d4df6b8c4a1e9d399555b366ee"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# need host grpc_cpp_plugin
diff --git a/srcpkgs/grub-customizer/template b/srcpkgs/grub-customizer/template
index 67f3cfb3e7ee..f0ead5f9e0ed 100644
--- a/srcpkgs/grub-customizer/template
+++ b/srcpkgs/grub-customizer/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://launchpad.net/grub-customizer/"
 distfiles="https://launchpad.net/${pkgname}/${version%.*}/${version}/+download/${pkgname}_${version}.tar.gz"
 checksum=532f793eea4c6ee6cde4bc987966fa1924946c1da5e3c7b4d4a97f2689661ee0
+patch_args=-Np0
 
 pre_configure() {
 	# Modify desktop file for Void Linux
diff --git a/srcpkgs/gscan2pdf/template b/srcpkgs/gscan2pdf/template
index 9c137da14b8b..28cb1dd90131 100644
--- a/srcpkgs/gscan2pdf/template
+++ b/srcpkgs/gscan2pdf/template
@@ -18,6 +18,7 @@ homepage="http://gscan2pdf.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=e5c10a9e695674308d29fe8661c5bb7230e25dfbc098716c26a3188ef1e54074
 nocross=yes
+patch_args=-Np0
 
 do_check() {
 	# Tests require a Display server
diff --git a/srcpkgs/gscope3/template b/srcpkgs/gscope3/template
index ff6db18c2d4a..2a2d58f2f6f1 100644
--- a/srcpkgs/gscope3/template
+++ b/srcpkgs/gscope3/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://github.com/tefletch/gscope"
 distfiles="https://github.com/tefletch/gscope/archive/${_release}.tar.gz"
 checksum=06d0fd4351b4f8dc1850c81b07c112b0974bfb140f9fe56f8af6f865be3e0a2a
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gsl/template b/srcpkgs/gsl/template
index 1d6677032a30..c11a13e203bf 100644
--- a/srcpkgs/gsl/template
+++ b/srcpkgs/gsl/template
@@ -9,6 +9,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/gsl/gsl.html"
 distfiles="${GNU_SITE}/gsl/${pkgname}-${version}.tar.gz"
 checksum=b782339fc7a38fe17689cb39966c4d821236c28018b6593ddb6fd59ee40786a8
+patch_args=-Np0
 
 gsl-devel_package() {
 	depends="gsl>=${version}_${revision}"
diff --git a/srcpkgs/gsoap/template b/srcpkgs/gsoap/template
index c0cf0340566b..132f058dfe9a 100644
--- a/srcpkgs/gsoap/template
+++ b/srcpkgs/gsoap/template
@@ -14,6 +14,7 @@ homepage="http://www.cs.fsu.edu/~engelen/soap.html"
 distfiles="${SOURCEFORGE_SITE}/gsoap2/gsoap_${version}.zip"
 checksum=2ca21b5ab2b40d899566c559f71a1d51ed7eac3f00160ab78060027a3ee6488f
 disable_parallel_build=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 7b97a3e3184b..0cf2cdc941f9 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -37,6 +37,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://gstreamer.freedesktop.org"
 distfiles="${homepage}/src/${pkgname/1/}/${pkgname/1/}-${version}.tar.xz"
 checksum=74e806bc5595b18c70e9ca93571e27e79dfb808e5d2e7967afa952b52e99c85f
+patch_args=-Np0
 
 build_options="gir gme"
 build_options_default="gir"
diff --git a/srcpkgs/gst-plugins-base1/template b/srcpkgs/gst-plugins-base1/template
index 050521f071c3..ca6cdbf62db9 100644
--- a/srcpkgs/gst-plugins-base1/template
+++ b/srcpkgs/gst-plugins-base1/template
@@ -23,6 +23,7 @@ license="GPL-2.0-or-later, LGPL-2.0-or-later"
 homepage="https://gstreamer.freedesktop.org"
 distfiles="${homepage}/src/${pkgname/1/}/${pkgname/1/}-${version}.tar.xz"
 checksum=29e53229a84d01d722f6f6db13087231cdf6113dd85c25746b9b58c3d68e8323
+patch_args=-Np0
 
 build_options="cdparanoia gir sndio"
 build_options_default="cdparanoia gir"
diff --git a/srcpkgs/gst123/template b/srcpkgs/gst123/template
index f3a2d41316b2..fa17cc86b1f3 100644
--- a/srcpkgs/gst123/template
+++ b/srcpkgs/gst123/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://space.twc.de/~stefan/gst123.php/"
 distfiles="http://space.twc.de/~stefan/gst123/gst123-$version.tar.bz2"
 checksum=c7b4729773f66cc679e94df76bcc6a95a2222192730f906e527e72624f084a7d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gstreamermm/template b/srcpkgs/gstreamermm/template
index 863e982f34ea..54bec6d8dc2d 100644
--- a/srcpkgs/gstreamermm/template
+++ b/srcpkgs/gstreamermm/template
@@ -12,6 +12,7 @@ homepage="https://gstreamer.freedesktop.org/bindings/cplusplus.html"
 license="GPL-2, GPL-2.1"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=be58fe9ef7d7e392568ec85e80a84f4730adbf91fb0355ff7d7c616675ea8d60
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/gthumb/template b/srcpkgs/gthumb/template
index ed6afee1b837..e383495da80a 100644
--- a/srcpkgs/gthumb/template
+++ b/srcpkgs/gthumb/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://live.gnome.org/gthumb"
 distfiles="${GNOME_SITE}/gthumb/${version%.*}/gthumb-${version}.tar.xz"
 checksum=fdeae42818378f9b3cab00604eeeb5b7c0a7a5ecfe69de08b993867746435c93
+patch_args=-Np0
 
 LDFLAGS="-fPIC"
 
diff --git a/srcpkgs/gtk-sharp/template b/srcpkgs/gtk-sharp/template
index f3125a457881..d20183b8daad 100644
--- a/srcpkgs/gtk-sharp/template
+++ b/srcpkgs/gtk-sharp/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 short_desc="Graphical User Interface Toolkit for mono and .Net (Gtk#)"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=6440f571416267ae0cb5698071d087b31e3084693fa2c829b1db37ca7ea2c3a2
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	_have_mdoc="no"
diff --git a/srcpkgs/gtk-sharp2/template b/srcpkgs/gtk-sharp2/template
index 3137a6310b25..07e49e956fe7 100644
--- a/srcpkgs/gtk-sharp2/template
+++ b/srcpkgs/gtk-sharp2/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-only"
 homepage="https://www.mono-project.com/docs/gui/gtksharp/"
 distfiles="https://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-${version}.tar.gz"
 checksum=02680578e4535441064aac21d33315daa009d742cab8098ac8b2749d86fffb6a
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	_have_mdoc="no"
diff --git a/srcpkgs/gtk-theme-config/template b/srcpkgs/gtk-theme-config/template
index 6dd97132c14c..66ce7d1851fb 100644
--- a/srcpkgs/gtk-theme-config/template
+++ b/srcpkgs/gtk-theme-config/template
@@ -13,6 +13,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/satya164/gtk-theme-config"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=174aac3ea43966168d120dbd9e0f23d7900d095ee1b0cf32472d59b0fdea8448
+patch_args=-Np0
 
 pre_build() {
 	local _p _cflags _ldflags
diff --git a/srcpkgs/gtkglext/template b/srcpkgs/gtkglext/template
index 737a97415982..640d422140c7 100644
--- a/srcpkgs/gtkglext/template
+++ b/srcpkgs/gtkglext/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://projects.gnome.org/gtkglext"
 distfiles="${SOURCEFORGE_SITE}/gtkglext/gtkglext/${version}/gtkglext-${version}.tar.gz"
 checksum=e5073f3c6b816e7fa67d359d9745a5bb5de94a628ac85f624c992925a46844f9
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gtkpod/template b/srcpkgs/gtkpod/template
index bfcb41e62193..5cb367989c0b 100644
--- a/srcpkgs/gtkpod/template
+++ b/srcpkgs/gtkpod/template
@@ -16,6 +16,7 @@ distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=a57dc8ae9138e0cb4cee98691e7a95001130c9ea7823e6a75cc72503facd3a76
 # Line 55: print in python 2 style
 python_version=2
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gtkspell/template b/srcpkgs/gtkspell/template
index bf480eaae320..3b95f95dfed3 100644
--- a/srcpkgs/gtkspell/template
+++ b/srcpkgs/gtkspell/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://gtkspell.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=8fc7dc560167b2cb7193e76aca625a152dc19b0ebf49816b78539cbb90d80d02
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' \
diff --git a/srcpkgs/gtypist/template b/srcpkgs/gtypist/template
index d4bf9dc41846..f9e1bd306359 100644
--- a/srcpkgs/gtypist/template
+++ b/srcpkgs/gtypist/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.gnu.org/software/gtypist/"
 distfiles="$GNU_SITE/gtypist/gtypist-${version}.tar.xz"
 checksum="c13af40b12479f8219ffa6c66020618c0ce305ad305590fde02d2c20eb9cf977"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf
diff --git a/srcpkgs/guake/template b/srcpkgs/guake/template
index 9fbc1895da95..c31b734bc58a 100644
--- a/srcpkgs/guake/template
+++ b/srcpkgs/guake/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://guake-project.org/"
 distfiles="${PYPI_SITE}/g/guake/guake-${version}.tar.gz"
 checksum=31fd7d6f62aa0a5e0121e240682e6a9e5ce61cdb266f9438987837f52d552e47
+patch_args=-Np0
 
 pre_build() {
 	GUAKE_SCHEMA_DIR="/usr/share/glib-2.0/schemas"
diff --git a/srcpkgs/guile/template b/srcpkgs/guile/template
index f9ce43c06709..60eaa34eb6eb 100644
--- a/srcpkgs/guile/template
+++ b/srcpkgs/guile/template
@@ -14,6 +14,7 @@ homepage="http://www.gnu.org/software/guile"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=44b4c5fbbe257ccdebea18420212c9b3e90c3c86a54920d8554039fc6769a007
 subpackages="libguile guile-devel"
+patch_args=-Np0
 
 if [ "$XBPS_ENDIAN" != "$XBPS_TARGET_ENDIAN" ]; then
 	broken="opposite-endian host generates broken files"
diff --git a/srcpkgs/guile1.8/template b/srcpkgs/guile1.8/template
index 2f575000cbfe..47192116554f 100644
--- a/srcpkgs/guile1.8/template
+++ b/srcpkgs/guile1.8/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="https://www.gnu.org/software/guile/guile.html"
 distfiles="${GNU_SITE}/${pkgname/1.8/}/${pkgname/1.8/}-${version}.tar.gz"
 checksum=c3471fed2e72e5b04ad133bbaaf16369e8360283679bcf19800bc1b381024050
+patch_args=-Np0
 
 post_install() {
 	# conflicts with guile-2.0
diff --git a/srcpkgs/guitarix2/template b/srcpkgs/guitarix2/template
index 2d066a454c33..8435021d0db0 100644
--- a/srcpkgs/guitarix2/template
+++ b/srcpkgs/guitarix2/template
@@ -19,6 +19,7 @@ license="GPL-3.0-or-later"
 homepage="http://guitarix.org"
 distfiles="${SOURCEFORGE_SITE}/guitarix/guitarix/guitarix2-${version}.tar.xz"
 checksum=797e46e07148fba89e46fac4efe73a5b3a98f070bca85db3d143de781b142c80
+patch_args=-Np0
 
 build_options="avahi bluez"
 desc_option_avahi="Build with avahi support"
diff --git a/srcpkgs/gummiboot/template b/srcpkgs/gummiboot/template
index 68e6f5be926c..966eae785ea9 100644
--- a/srcpkgs/gummiboot/template
+++ b/srcpkgs/gummiboot/template
@@ -15,6 +15,7 @@ license="LGPL-2.0-or-later"
 homepage="https://pkgs.alpinelinux.org/package/edge/main/x86/gummiboot"
 distfiles="https://dev.alpinelinux.org/archive/gummiboot/gummiboot-${version}.tar.gz"
 checksum=2b649a6eb22007cd34bb355ba4ca6c1a8058e115c13048985f09a0f11f3d5295
+patch_args=-Np0
 
 CFLAGS="-std=gnu89"
 
diff --git a/srcpkgs/gupnp-igd/template b/srcpkgs/gupnp-igd/template
index 314a36472b85..416943f715b6 100644
--- a/srcpkgs/gupnp-igd/template
+++ b/srcpkgs/gupnp-igd/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="http://gupnp.org"
 distfiles="${GNOME_SITE}/${pkgname}/0.2/${pkgname}-${version}.tar.xz"
 checksum=8b4a1aa38bacbcac2c1755153147ead7ee9af7d4d1f544b6577cfc35e10e3b20
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/guvcview/template b/srcpkgs/guvcview/template
index 447b27aecf50..be0eba3ceed4 100644
--- a/srcpkgs/guvcview/template
+++ b/srcpkgs/guvcview/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="http://guvcview.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-src-${version}.tar.gz"
 checksum=95381cef5ee139e15f90b79d1425cc22bbaae43f87452cdce6674636aff37e85
+patch_args=-Np0
 
 post_extract() {
 	sed '31a#include <locale.h>' -i  guvcview/guvcview.c
diff --git a/srcpkgs/gwenhywfar/template b/srcpkgs/gwenhywfar/template
index c6e01f4bea86..fb27f03a88fd 100644
--- a/srcpkgs/gwenhywfar/template
+++ b/srcpkgs/gwenhywfar/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/aqbanking/gwenhywfar"
 distfiles="https://github.com/aqbanking/gwenhywfar/archive/${version}.tar.gz"
 checksum=9f2876770824a283d02fd730bb1f7a98970fa6f20121f4af433d6698831c3a84
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/gxemul/template b/srcpkgs/gxemul/template
index dabacd79492b..ea1ffa47d802 100644
--- a/srcpkgs/gxemul/template
+++ b/srcpkgs/gxemul/template
@@ -11,6 +11,7 @@ changelog="http://gavare.se/gxemul/gxemul-stable/HISTORY.html"
 distfiles="http://gavare.se/gxemul/src/gxemul-${version}.tar.gz"
 checksum=a703ac7965feb3c701c7677d78c353f0efa1af4d36a9508fb045eb63dd571547
 nocross="./_testpri: cannot execute binary file: Exec format error"
+patch_args=-Np0
 
 do_configure() {
 	PREFIX=/usr MANDIR=${DESTDIR}/usr/share/man ./configure
diff --git a/srcpkgs/gzdoom/template b/srcpkgs/gzdoom/template
index ce1204db0d01..1ecb236fea60 100644
--- a/srcpkgs/gzdoom/template
+++ b/srcpkgs/gzdoom/template
@@ -22,6 +22,7 @@ checksum="21eb1a221dae532a6c29f243584be3d5454f8eb4da85a67e405115f89666611d
  e0b85ca089a3714968f56acc9525f352dbec14f15e88e0aef1cdece64c4f3cbf"
 skip_extraction="${pkgname}_${version}_amd64.deb"
 nocross=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" musl-fts-devel libexecinfo-devel"
diff --git a/srcpkgs/h2o/template b/srcpkgs/h2o/template
index 3b300024f05c..054560ce7e78 100644
--- a/srcpkgs/h2o/template
+++ b/srcpkgs/h2o/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://h2o.examp1e.net/"
 distfiles="https://github.com/h2o/h2o/archive/v${version}.tar.gz"
 checksum=f8cbc1b530d85ff098f6efc2c3fdbc5e29baffb30614caac59d5c710f7bda201
+patch_args=-Np0
 
 system_accounts="h2o"
 
diff --git a/srcpkgs/halibut/template b/srcpkgs/halibut/template
index e428d771ea86..9ffa4c05c386 100644
--- a/srcpkgs/halibut/template
+++ b/srcpkgs/halibut/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://www.chiark.greenend.org.uk/~sgtatham/halibut/"
 distfiles="http://www.chiark.greenend.org.uk/~sgtatham/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=1aedfb6240f27190c36a390fcac9ce732edbdbaa31c85ee675b994e2b083163f
+patch_args=-Np0
 
 CFLAGS='-I../charset -I../build -fcommon'
 
diff --git a/srcpkgs/hamlib/template b/srcpkgs/hamlib/template
index 086b6c614c1f..bd96ed226bbc 100644
--- a/srcpkgs/hamlib/template
+++ b/srcpkgs/hamlib/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later, GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/hamlib/"
 distfiles="${SOURCEFORGE_SITE}/hamlib/${version}/${pkgname}-${version}.tar.gz"
 checksum=e200b22f307e9a0c826187c2b08fe81c7d0283cf07056e6db3463d1481580fd5
+patch_args=-Np0
 
 pre_configure() {
 	CFLAGS+=" -DNO_POSIX_2008_LOCALE -D_GNU_SOURCE"
diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index 6992bc520ed3..e1bf58b62889 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -24,6 +24,7 @@ homepage="https://handbrake.fr/"
 distfiles="https://github.com/HandBrake/HandBrake/releases/download/${version}/HandBrake-${version}-source.tar.bz2"
 checksum=218a37d95f48b5e7cf285363d3ab16c314d97627a7a710cab3758902ae877f85
 nocross=yes
+patch_args=-Np0
 
 build_options="fdk_aac nvenc"
 
diff --git a/srcpkgs/hardinfo/template b/srcpkgs/hardinfo/template
index 6c2745d675c3..a8c28a32a11e 100644
--- a/srcpkgs/hardinfo/template
+++ b/srcpkgs/hardinfo/template
@@ -13,6 +13,7 @@ homepage="http://sourceforge.net/projects/hardinfo.berlios/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}.berlios/${pkgname}-${version}.tar.bz2"
 checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a
 lib32disabled=yes
+patch_args=-Np0
 
 post_patch() {
 	local _arch
diff --git a/srcpkgs/heaptrack/template b/srcpkgs/heaptrack/template
index f4f4c35044f7..347ce6b4be41 100644
--- a/srcpkgs/heaptrack/template
+++ b/srcpkgs/heaptrack/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/KDE/heaptrack"
 distfiles="https://github.com/KDE/heaptrack/archive/v${version}.tar.gz"
 checksum=f299a4846b80e607a412f439e17cddae13f0529701ffdb05eaa7ba878865717e
+patch_args=-Np0
 
 heaptrack-gui_package() {
 	short_desc+=" - GUI"
diff --git a/srcpkgs/hedgewars/template b/srcpkgs/hedgewars/template
index 7060dbc37d95..0dc528ff7ce0 100644
--- a/srcpkgs/hedgewars/template
+++ b/srcpkgs/hedgewars/template
@@ -21,6 +21,7 @@ nopie_files="/usr/bin/hwengine"
 nocross="Needs investigation: fails to link hwengine"
 replaces="hedgewars-data>=0"
 export CMAKE_GENERATOR="Unix Makefiles"
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	x86_64*|ppc64le|ppc64)
diff --git a/srcpkgs/hexchat/template b/srcpkgs/hexchat/template
index 90b8de48193a..580dbd4a5eb5 100644
--- a/srcpkgs/hexchat/template
+++ b/srcpkgs/hexchat/template
@@ -20,6 +20,7 @@ distfiles="https://dl.hexchat.net/hexchat/${pkgname}-${version}.tar.xz"
 checksum=901a9d13db5a4da69b827f6093306bbd16863dc49016f7668bd3e4506512e882
 build_options="LuaJIT"
 lib32disabled=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	arm*-musl) : "LuaJIT is broken for musl cross arches" ;;
diff --git a/srcpkgs/hexer/template b/srcpkgs/hexer/template
index 2c2b7486a8d8..89b88a46a13e 100644
--- a/srcpkgs/hexer/template
+++ b/srcpkgs/hexer/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://devel.ringlet.net/editors/hexer/"
 distfiles="https://devel.ringlet.net/files/editors/hexer/hexer-${version}.tar.xz"
 checksum=e6b84ace5283825943f88ce7ec4ae836ec15ba41978b3a858d6d478cfe09ff94
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYRIGHT
diff --git a/srcpkgs/heyu/template b/srcpkgs/heyu/template
index 93b3ad7cc582..0bd88177c04d 100644
--- a/srcpkgs/heyu/template
+++ b/srcpkgs/heyu/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.heyu.org"
 distfiles="https://github.com/HeyuX10Automation/heyu/archive/v${version}.tar.gz"
 checksum=621a20f45eef62070b3f95ad17ecbc3e7e1f7352d25dac86093ff6938b606baa
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/hfsprogs/template b/srcpkgs/hfsprogs/template
index f1e0c690511d..12b6d3a31265 100644
--- a/srcpkgs/hfsprogs/template
+++ b/srcpkgs/hfsprogs/template
@@ -14,6 +14,7 @@ license="APSL-2.0"
 homepage="https://www.opensource.apple.com/"
 distfiles="https://src.fedoraproject.org/repo/pkgs/hfsplus-tools/diskdev_cmds-${version}.tar.gz/${_md5sum}/diskdev_cmds-${version}.tar.gz"
 checksum=b01b203a97f9a3bf36a027c13ddfc59292730552e62722d690d33bd5c24f5497
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/higan/template b/srcpkgs/higan/template
index 500c11f64aa4..c744321efe45 100644
--- a/srcpkgs/higan/template
+++ b/srcpkgs/higan/template
@@ -17,6 +17,7 @@ license="GPL-3.0-or-later, ISC"
 homepage="https://byuu.org/emulation/higan/"
 distfiles="https://byuu.org/download/higan/higan_v${version}-source.zip"
 checksum=1b70d85454aaae557fd5ba5aaed9add8cb8c939f2b7a07a6d3734f971bb07ab7
+patch_args=-Np0
 
 build_options="icarus"
 build_options_default="icarus"
diff --git a/srcpkgs/hiredis/template b/srcpkgs/hiredis/template
index 05e5d6cf565f..c4cca466c023 100644
--- a/srcpkgs/hiredis/template
+++ b/srcpkgs/hiredis/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/redis/hiredis"
 distfiles="https://github.com/redis/hiredis/archive/v${version}.tar.gz"
 checksum=2a0b5fe5119ec973a0c1966bfc4bd7ed39dbce1cb6d749064af9121fe971936f
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/hitch/template b/srcpkgs/hitch/template
index 805170a687f6..bf3889702cef 100644
--- a/srcpkgs/hitch/template
+++ b/srcpkgs/hitch/template
@@ -14,6 +14,7 @@ homepage="https://hitch-tls.org/"
 distfiles="https://hitch-tls.org/source/hitch-${version}.tar.gz"
 checksum=c97ef8f1e115156640c40dfdfe9662d5f6d57a796fccad3bbad198ec797ce5c4
 system_accounts="_hitch"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e "s/grep -Pq/grep -q/" -e 's/\\t/\t/' \
diff --git a/srcpkgs/hlint/template b/srcpkgs/hlint/template
index 16fbb03ce2b9..7a68e466759f 100644
--- a/srcpkgs/hlint/template
+++ b/srcpkgs/hlint/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/ndmitchell/${pkgname}/archive/v${version}.tar.gz"
 checksum=207539d3627efd3caed9e6fd3b1aeb8f1eb64553f1f9f166090adbf2fb71e172
 nocross=yes # Can't yet cross compile Haskell
 nopie_files="/usr/bin/hlint"
+patch_args=-Np0
 
 post_install() {
 	rm -f ${DESTDIR}/usr/bin/engine
diff --git a/srcpkgs/hosts-update/template b/srcpkgs/hosts-update/template
index 5d872b4f4e89..eaf1d2f63a30 100644
--- a/srcpkgs/hosts-update/template
+++ b/srcpkgs/hosts-update/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://github.com/graysky2/hosts-update"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum="9a0fdb028beaf9fa4c2ec5f1a0030fcfe1a996ea42b874b944ec07885ca0f2ba"
+patch_args=-Np0
 
 post_install() {
 	vlicense MIT
diff --git a/srcpkgs/hplip/template b/srcpkgs/hplip/template
index 397508c55a3f..3dc5da2ca413 100644
--- a/srcpkgs/hplip/template
+++ b/srcpkgs/hplip/template
@@ -33,6 +33,7 @@ homepage="https://developers.hp.com/hp-linux-imaging-and-printing"
 distfiles="${SOURCEFORGE_SITE}/hplip/hplip/${version}/hplip-${version}.tar.gz"
 checksum=36251189aa9cc349f6a3eacbb7ac3c4fd26fc9f087c9f75cee051010c85d2ddf
 conflicts="hplip-gui"
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libusb-1.0 -I${XBPS_CROSS_BASE}/${py3_inc}"
 
diff --git a/srcpkgs/hstr/template b/srcpkgs/hstr/template
index ee259a9eac03..443d455e8610 100644
--- a/srcpkgs/hstr/template
+++ b/srcpkgs/hstr/template
@@ -12,6 +12,7 @@ homepage="https://github.com/dvorka/hstr"
 changelog="https://raw.githubusercontent.com/dvorka/hstr/master/Changelog"
 distfiles="https://github.com/dvorka/hstr/archive/${version}.tar.gz"
 checksum=c7e7408671757b3f4be9c5a59b4e2d56e7a7b601ace2a94eb6b2b61f20ee890b
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i 's|ncursesw/curses.h|curses.h|g' src/include/hstr.h
diff --git a/srcpkgs/ht/template b/srcpkgs/ht/template
index 2506a2c97206..7535d6cca893 100644
--- a/srcpkgs/ht/template
+++ b/srcpkgs/ht/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://hte.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/hte/ht-source/${pkgname}-${version}.tar.bz2"
 checksum=31f5e8e2ca7f85d40bb18ef518bf1a105a6f602918a0755bc649f3f407b75d70
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/http-parser/template b/srcpkgs/http-parser/template
index a372064d4a79..67cf7f77d6c2 100644
--- a/srcpkgs/http-parser/template
+++ b/srcpkgs/http-parser/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/nodejs/http-parser"
 distfiles="${homepage}/archive/${_githash}.tar.gz"
 checksum=765a21444322ea2476ca1e3cfeb74d280eeb37f4713cf52d2bf398dabf6e4128
+patch_args=-Np0
 
 pre_install() {
 	vmkdir usr/lib/pkgconfig
diff --git a/srcpkgs/httpdirfs/template b/srcpkgs/httpdirfs/template
index 0028d235c5db..6b99f599778f 100644
--- a/srcpkgs/httpdirfs/template
+++ b/srcpkgs/httpdirfs/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/fangfufu/httpdirfs"
 distfiles="https://github.com/fangfufu/httpdirfs/archive/${version}.tar.gz"
 checksum=05be4d83434eaea002f550b77aed6c05ff135927662d53a6e2b224e766a50a9a
+patch_args=-Np0
 
 CFLAGS="-D_FILE_OFFSET_BITS=64"
 
diff --git a/srcpkgs/hugin/template b/srcpkgs/hugin/template
index 451e75fe6825..e3b975ff5298 100644
--- a/srcpkgs/hugin/template
+++ b/srcpkgs/hugin/template
@@ -19,6 +19,7 @@ homepage="http://hugin.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${pkgname}-${version%.*}/${pkgname}-${version}.tar.bz2"
 checksum=283e7601259a7914cb075333424410928a439dc5f84216f33e2fe55501fbcacb
 python_version=3
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" python3"
diff --git a/srcpkgs/hunspell/template b/srcpkgs/hunspell/template
index 929f4b1893e7..04144a0ade22 100644
--- a/srcpkgs/hunspell/template
+++ b/srcpkgs/hunspell/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1"
 homepage="https://hunspell.github.io/"
 distfiles="https://github.com/hunspell/hunspell/archive/v${version}.tar.gz"
 checksum=bb27b86eb910a8285407cf3ca33b62643a02798cf2eef468c0a74f6c3ee6bc8a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/i3status/template b/srcpkgs/i3status/template
index 5ef9f206834f..5edaa41782d5 100644
--- a/srcpkgs/i3status/template
+++ b/srcpkgs/i3status/template
@@ -16,6 +16,7 @@ homepage="https://www.i3wm.org/i3status/"
 distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
 checksum=ce89c9ff8565f62e88299f1a611229afdfc356b4e97368a5f8c4f06ad2fa1466
 conf_files="/etc/i3status.conf"
+patch_args=-Np0
 
 build_options="pulseaudio"
 build_options_default="pulseaudio"
diff --git a/srcpkgs/ibus-anthy/template b/srcpkgs/ibus-anthy/template
index 9b96fa820633..8e3bb449acd4 100644
--- a/srcpkgs/ibus-anthy/template
+++ b/srcpkgs/ibus-anthy/template
@@ -15,6 +15,7 @@ homepage="https://github.com/ibus/ibus/wiki"
 distfiles="https://github.com/ibus/${pkgname}/archive/${version}.tar.gz"
 checksum=57d42a302be72409708274aa680c6d7515077766853a2b9193b9974c9c6eeaf6
 make_check=extended
+patch_args=-Np0
 
 post_patch() {
 	2to3 -w gir/test.py
diff --git a/srcpkgs/ibus-avro/template b/srcpkgs/ibus-avro/template
index 22b51f29ee94..5067e69d7619 100644
--- a/srcpkgs/ibus-avro/template
+++ b/srcpkgs/ibus-avro/template
@@ -13,6 +13,7 @@ license="MPL-1.1"
 homepage="https://linux.omicronlab.com"
 distfiles="https://github.com/sarim/${pkgname}/archive/${version}.tar.gz"
 checksum=9d00f12f2d01916e56533fd0267173b644a57161770b60a0f4d9daa61fe8bd1a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -vfi
diff --git a/srcpkgs/id3lib/template b/srcpkgs/id3lib/template
index 44cb7f55f1dd..7452bae122e9 100644
--- a/srcpkgs/id3lib/template
+++ b/srcpkgs/id3lib/template
@@ -11,6 +11,7 @@ license="LGPL-2.0-or-later"
 homepage="http://id3lib.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=2749cc3c0cd7280b299518b1ddf5a5bcfe2d1100614519b68702230e26c7d079
+patch_args=-Np0
 
 pre_configure() {
 	libtoolize -fc
diff --git a/srcpkgs/ifupdown/template b/srcpkgs/ifupdown/template
index 584d52eea19b..fd60247ccc7f 100644
--- a/srcpkgs/ifupdown/template
+++ b/srcpkgs/ifupdown/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://tracker.debian.org/pkg/ifupdown"
 distfiles="http://http.debian.net/debian/pool/main/i/ifupdown/ifupdown_${version}.tar.xz"
 checksum=d754426562a63b7d0cf06e8b00abe353fe9fd7ac5aabe3745f6d4e294ca233a8
+patch_args=-Np0
 
 make_dirs="/etc/network/interfaces.d 0755 root root
  /etc/network/if-pre-up.d 0755 root root
diff --git a/srcpkgs/igt-gpu-tools/template b/srcpkgs/igt-gpu-tools/template
index 3b222ecd18d8..0bcf2cfe2c7f 100644
--- a/srcpkgs/igt-gpu-tools/template
+++ b/srcpkgs/igt-gpu-tools/template
@@ -17,6 +17,7 @@ distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.xz"
 checksum=40454d8f0484ea2477862007398a08eef78a6c252c4defce1c934548593fdd11
 # tests don't behave in containers
 make_check=ci-skip
+patch_args=-Np0
 
 lib32disabled=yes
 archs="i686* x86_64*"
diff --git a/srcpkgs/ilmbase/template b/srcpkgs/ilmbase/template
index 1dd24b5335f5..ca4c57337f15 100644
--- a/srcpkgs/ilmbase/template
+++ b/srcpkgs/ilmbase/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://www.openexr.com/"
 distfiles="https://github.com/openexr/openexr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=8e5bfd89f4ae1221f84216a163003edddf0d37b8aac4ee42b46edb55544599b9
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/imagescan/template b/srcpkgs/imagescan/template
index 0a0cb5e2b3f8..2deac5f8b877 100644
--- a/srcpkgs/imagescan/template
+++ b/srcpkgs/imagescan/template
@@ -18,6 +18,7 @@ homepage="https://gitlab.com/utsushi/imagescan/"
 distfiles="http://support.epson.net/linux/src/scanner/imagescanv3/debian/${pkgname}_${version}.orig.tar.gz"
 checksum=9440b103b8218863ab08e891d2a9dc9ef52db51485e11017d52fb2036e279477
 mutable_files="/etc/sane.d/dll.d/utsushi"
+patch_args=-Np0
 
 CFLAGS="-Wno-error"
 CXXFLAGS="-Wno-error"
diff --git a/srcpkgs/imgbrd-grabber/template b/srcpkgs/imgbrd-grabber/template
index d1e0ef6a5177..50232eb2998f 100644
--- a/srcpkgs/imgbrd-grabber/template
+++ b/srcpkgs/imgbrd-grabber/template
@@ -14,6 +14,7 @@ homepage="https://bionus.github.io/imgbrd-grabber"
 changelog="https://github.com/Bionus/imgbrd-grabber/releases"
 distfiles="https://github.com/Bionus/imgbrd-grabber/archive/v${version}.tar.gz"
 checksum=4ecb247f92fb4ba7c3245439bcd221e8c64dd037c1761065a663adb6b4571740
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake"
diff --git a/srcpkgs/imwheel/template b/srcpkgs/imwheel/template
index 85496586c7d9..5da49f1e4ff5 100644
--- a/srcpkgs/imwheel/template
+++ b/srcpkgs/imwheel/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="http://imwheel.sourceforge.net/"
 distfiles="https://sourceforge.net/projects/${pkgname}/files/${pkgname}-source/${version}pre12/${pkgname}-${version}pre12.tar.gz"
 checksum=2320ed019c95ca4d922968e1e1cbf0c075a914e865e3965d2bd694ca3d57cfe3
+patch_args=-Np0
 
 pre_configure() {
 	mv configure.{in,ac}
diff --git a/srcpkgs/indent/template b/srcpkgs/indent/template
index 3616080326f3..522b94c0e68d 100644
--- a/srcpkgs/indent/template
+++ b/srcpkgs/indent/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/s/indent/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=e77d68c0211515459b8812118d606812e300097cfac0b4e9fb3472664263bb8b
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's#^docdir = .*$#docdir = @docdir@#' doc/Makefile.in
diff --git a/srcpkgs/injeqt/template b/srcpkgs/injeqt/template
index 3efad365a492..3159202729e0 100644
--- a/srcpkgs/injeqt/template
+++ b/srcpkgs/injeqt/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/vogel/injeqt/"
 distfiles="https://github.com/vogel/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=77540cedb0b26affe993dd18124d796059e34c80a51d9ae6433fdff1860db135
+patch_args=-Np0
 
 CXXFLAGS="-fno-lifetime-dse -Wno-error=cast-align"
 
diff --git a/srcpkgs/input-utils/template b/srcpkgs/input-utils/template
index 35b48c548e26..319161f0e5db 100644
--- a/srcpkgs/input-utils/template
+++ b/srcpkgs/input-utils/template
@@ -10,6 +10,7 @@ license="GPL-2"
 distfiles="https://www.kraxel.org/releases/input/input-${version}.tar.gz"
 checksum=9142c34d508f2da4cd53d6348fee77e30b69c35c8dabfadfc5a6db09c4bd8087
 wrksrc="input-${version}"
+patch_args=-Np0
 
 do_install() {
 	vman lsinput.man lsinput.8
diff --git a/srcpkgs/inspectrum/template b/srcpkgs/inspectrum/template
index 83ba7b100956..232164d753f2 100644
--- a/srcpkgs/inspectrum/template
+++ b/srcpkgs/inspectrum/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/miek/inspectrum"
 distfiles="https://github.com/miek/inspectrum/archive/v${version}.tar.gz"
 checksum=7be5be96f50b0cea5b3dd647f06cc00adfa805a395484aa2ab84cf3e49b7227b
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-qmake qt5-host-tools"
diff --git a/srcpkgs/invada-studio-plugins-lv2/template b/srcpkgs/invada-studio-plugins-lv2/template
index 6bd6ddf74a5b..ee7f7a8ffe23 100644
--- a/srcpkgs/invada-studio-plugins-lv2/template
+++ b/srcpkgs/invada-studio-plugins-lv2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://launchpad.net/invada-studio/"
 distfiles="https://launchpad.net/invada-studio/lv2/1.2/+download/${pkgname}_${version}-nopkg.tgz"
 checksum=c6cac7c32effc6b3052e3b017133244f385ef8e053147859d88eae6facaf7d12
+patch_args=-Np0
 
 post_patch() {
 	find . -name Makefile -exec \
diff --git a/srcpkgs/io.elementary.calendar/template b/srcpkgs/io.elementary.calendar/template
index 7ff446f97d15..936700ba2cd8 100644
--- a/srcpkgs/io.elementary.calendar/template
+++ b/srcpkgs/io.elementary.calendar/template
@@ -17,6 +17,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/elementary/calendar"
 distfiles="${homepage}/archive/${_git_commit}.tar.gz"
 checksum=3be3851baeed67144e5cbed209b2c1b982fe9830db13372e3051423295dee345
+patch_args=-Np0
 
 libio.elementary.calendar_package() {
 	short_desc+=" - library"
diff --git a/srcpkgs/io.elementary.code/template b/srcpkgs/io.elementary.code/template
index 8d43ad4130d2..c29de4c8c0ba 100644
--- a/srcpkgs/io.elementary.code/template
+++ b/srcpkgs/io.elementary.code/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/elementary/code"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=d84b38193b72cd93995aae604358c83c5b6976d8472ce985027b947cfed990bf
+patch_args=-Np0
 
 libio.elementary.code_package() {
 	short_desc+=" - library"
diff --git a/srcpkgs/io.elementary.music/template b/srcpkgs/io.elementary.music/template
index de6ae0f94d90..a4e05603f35b 100644
--- a/srcpkgs/io.elementary.music/template
+++ b/srcpkgs/io.elementary.music/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/elementary/music"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=ed7cba3b07189273890b321b21cda198f18b102e4466eb7207c0b5f27b31dfc9
+patch_args=-Np0
 
 libio.elementary.music_package() {
 	short_desc+=" - library"
diff --git a/srcpkgs/iotop/template b/srcpkgs/iotop/template
index 84a9f7886162..8af2af900ba0 100644
--- a/srcpkgs/iotop/template
+++ b/srcpkgs/iotop/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://guichaz.free.fr/iotop"
 distfiles="http://guichaz.free.fr/iotop/files/iotop-${version}.tar.bz2"
 checksum=3adea2a24eda49bbbaeb4e6ed2042355b441dbd7161e883067a02bfc8dcef75b
+patch_args=-Np0
 
 post_install() {
 	chmod 644 ${DESTDIR}/usr/share/man/man8/iotop.8
diff --git a/srcpkgs/iouyap/template b/srcpkgs/iouyap/template
index 09cd966c6e12..a7ddbbccf8c0 100644
--- a/srcpkgs/iouyap/template
+++ b/srcpkgs/iouyap/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="https://github.com/GNS3/iouyap"
 distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
 checksum=181850a4ce73a4d4035f9eb39b2656ae31d360f18b577ee65f5149132da3eccf
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/ipmitool/template b/srcpkgs/ipmitool/template
index eab8e525c878..7d48962c2230 100644
--- a/srcpkgs/ipmitool/template
+++ b/srcpkgs/ipmitool/template
@@ -10,6 +10,7 @@ license="BSD"
 homepage="http://ipmitool.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=0c1ba3b1555edefb7c32ae8cd6a3e04322056bc087918f07189eeedfc8b81e01
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/ipp-usb/template b/srcpkgs/ipp-usb/template
index 98b472d15998..79f18ba1d540 100644
--- a/srcpkgs/ipp-usb/template
+++ b/srcpkgs/ipp-usb/template
@@ -14,6 +14,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/OpenPrinting/ipp-usb"
 distfiles="https://github.com/OpenPrinting/ipp-usb/archive/$version.tar.gz"
 checksum=06855b4da0bcaad430a42534c117a3f3224c4f6b0f6321da898e3422ae97ae15
+patch_args=-Np0
 
 post_install() {
 	vsv ipp-usb
diff --git a/srcpkgs/ippusbxd/template b/srcpkgs/ippusbxd/template
index e81064e8b91d..0cf0278b951a 100644
--- a/srcpkgs/ippusbxd/template
+++ b/srcpkgs/ippusbxd/template
@@ -14,6 +14,7 @@ homepage="https://github.com/OpenPrinting/ippusbxd"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=996a572c8f6d1426a58ad3b95c21fea7f5b64d5db34a825c543d7869b3c77891
 conf_files="/etc/apparmor.d/usr.sbin.ippusbxd"
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/iptables/template b/srcpkgs/iptables/template
index 0d0ed43206db..3b0269d22f1e 100644
--- a/srcpkgs/iptables/template
+++ b/srcpkgs/iptables/template
@@ -20,6 +20,7 @@ alternatives="
  iptables:iptables:/usr/bin/xtables-legacy-multi
  iptables:iptables-restore:/usr/bin/xtables-legacy-multi
  iptables:iptables-save:/usr/bin/xtables-legacy-multi"
+patch_args=-Np0
 
 pre_build() {
 	rm include/linux/types.h
diff --git a/srcpkgs/iscan/template b/srcpkgs/iscan/template
index 18c0d969766c..c39d09a19fa1 100644
--- a/srcpkgs/iscan/template
+++ b/srcpkgs/iscan/template
@@ -17,6 +17,7 @@ distfiles="http://support.epson.net/linux/src/scanner/iscan/${pkgname}_${version
 checksum=597b9913de42d7a27f95bc82e533cbe778121ba13e3a03bc037f8d09a43447d5
 repository=nonfree
 LDFLAGS="-ldl -lpng16"
+patch_args=-Np0
 
 post_configure() {
 	# fix wrongly created link
diff --git a/srcpkgs/iucode-tool/template b/srcpkgs/iucode-tool/template
index d28c10461053..99a6f0f6b952 100644
--- a/srcpkgs/iucode-tool/template
+++ b/srcpkgs/iucode-tool/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://gitlab.com/iucode-tool/iucode-tool/wikis/home"
 distfiles="https://gitlab.com/iucode-tool/releases/raw/latest/iucode-tool_${version}.tar.xz"
 checksum=12b88efa4d0d95af08db05a50b3dcb217c0eb2bfc67b483779e33d498ddb2f95
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends="argp-standalone" ;;
diff --git a/srcpkgs/iverilog/template b/srcpkgs/iverilog/template
index b0f12c03fa84..1159f49d35d0 100644
--- a/srcpkgs/iverilog/template
+++ b/srcpkgs/iverilog/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://iverilog.icarus.com/"
 distfiles="https://github.com/steveicarus/iverilog/archive/v${version/./_}.tar.gz"
 checksum=6327fb900e66b46803d928b7ca439409a0dc32731d82143b20387be0833f1c95
+patch_args=-Np0
 
 nocross="draw_tt.exe: cannot execute binary file: Exec format error"
 
diff --git a/srcpkgs/iwd/template b/srcpkgs/iwd/template
index 3a1c0fc23121..c6b0f6fc503e 100644
--- a/srcpkgs/iwd/template
+++ b/srcpkgs/iwd/template
@@ -21,6 +21,7 @@ make_dirs="/var/lib/iwd 0600 root root
  /etc/iwd 755 root root"
 # tests depend on kernel features
 make_check=extended
+patch_args=-Np0
 
 do_check() {
 	dbus-run-session make check
diff --git a/srcpkgs/j/template b/srcpkgs/j/template
index c9b0c669497c..c1681088ec1a 100644
--- a/srcpkgs/j/template
+++ b/srcpkgs/j/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://jsoftware.com/"
 distfiles="https://github.com/jsoftware/jsource/archive/j${_vrel}.tar.gz"
 checksum=6b1cdcc1a0c3d955e400cf676f115de51ef9d1da495d08721ee999f48f6f9209
+patch_args=-Np0
 
 _jsz="j${XBPS_TARGET_WORDSIZE}"
 _jtype="release"
diff --git a/srcpkgs/jack/template b/srcpkgs/jack/template
index 092d7292d343..5ab29e6a32b8 100644
--- a/srcpkgs/jack/template
+++ b/srcpkgs/jack/template
@@ -17,6 +17,7 @@ homepage="https://jackaudio.org/"
 distfiles="https://github.com/jackaudio/jack2/archive/v${version}.tar.gz"
 checksum=5a1d64118034d58529d68a9af42710f9d4843536257c496118065ea3d3e4ae2c
 python_version=3
+patch_args=-Np0
 
 # Package build options
 build_options="ffado zalsa"
diff --git a/srcpkgs/janet/template b/srcpkgs/janet/template
index d3c71796a070..5805a21c0115 100644
--- a/srcpkgs/janet/template
+++ b/srcpkgs/janet/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://janet-lang.org/"
 distfiles="https://github.com/janet-lang/janet/archive/v${version}.tar.gz"
 checksum=ed9350ad7f0270e67f18a78dae4910b9534f19cd3f20f7183b757171e8cc79a5
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/jbig2dec/template b/srcpkgs/jbig2dec/template
index d0c23438982d..3ccef4e8ea2d 100644
--- a/srcpkgs/jbig2dec/template
+++ b/srcpkgs/jbig2dec/template
@@ -13,6 +13,7 @@ license="AGPL-3.0-or-later"
 homepage="https://www.jbig2dec.com"
 distfiles="https://github.com/ArtifexSoftware/jbig2dec/archive/${version}.tar.gz"
 checksum=e81b787ad0b147a437a52d9ce7de1a8f429655e8aa030383b6b2dd8919373717
+patch_args=-Np0
 
 pre_configure() {
 	sed -i '$ d' autogen.sh
diff --git a/srcpkgs/jedit/template b/srcpkgs/jedit/template
index cf7ac8cdd201..9c5c764194bb 100644
--- a/srcpkgs/jedit/template
+++ b/srcpkgs/jedit/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://jedit.org"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${version}/${pkgname}${version}source.tar.bz2"
 checksum=76c16ae0168d9b64ecddd8bf08aa49ab352adb2c9687191bc71895a96a8dfe1d
+patch_args=-Np0
 
 post_patch() {
 	# skip junit stuff, fails in chroot
diff --git a/srcpkgs/jfsutils/template b/srcpkgs/jfsutils/template
index 22f153adb299..98d7a0c90fda 100644
--- a/srcpkgs/jfsutils/template
+++ b/srcpkgs/jfsutils/template
@@ -10,5 +10,6 @@ license="GPL-2.0-or-later"
 homepage="http://jfs.sourceforge.net"
 distfiles="http://jfs.sourceforge.net/project/pub/${pkgname}-${version}.tar.gz"
 checksum=244a15f64015ce3ea17e49bdf6e1a0fb4f9af92b82fa9e05aa64cb30b5f07a4d
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/jsonnet/template b/srcpkgs/jsonnet/template
index b09df3187a0e..1f0d020e16ed 100644
--- a/srcpkgs/jsonnet/template
+++ b/srcpkgs/jsonnet/template
@@ -9,6 +9,7 @@ license="Apache-2.0"
 homepage="https://github.com/google/jsonnet"
 distfiles="https://github.com/google/jsonnet/archive/v${version}.tar.gz"
 checksum=076b52edf888c01097010ad4299e3b2e7a72b60a41abbc65af364af1ed3c8dbe
+patch_args=-Np0
 
 CXXFLAGS="-fPIC -Iinclude -Ithird_party/json -Ithird_party/md5"
 
diff --git a/srcpkgs/jwm/template b/srcpkgs/jwm/template
index 96efe18d60cc..08c2501eecfe 100644
--- a/srcpkgs/jwm/template
+++ b/srcpkgs/jwm/template
@@ -15,6 +15,7 @@ conf_files="/etc/system.jwmrc"
 homepage="http://joewing.net/projects/jwm"
 distfiles="http://joewing.net/projects/jwm/releases/jwm-$version.tar.xz"
 checksum=745d2f5df3a4ce9ecc8e75445edb3fbe31dd46c0c26d129cc14de7ad8b665326
+patch_args=-Np0
 
 post_install() {
 	vinstall ${FILESDIR}/jwm.desktop 644 usr/share/xsessions
diff --git a/srcpkgs/jxrlib/template b/srcpkgs/jxrlib/template
index 48f02dceab61..c9ed1e4c14aa 100644
--- a/srcpkgs/jxrlib/template
+++ b/srcpkgs/jxrlib/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/glencoesoftware/jxrlib"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=d1fbc5759a665949e7cb82de03c3258788bd07323f195a9e8ea9322504627cc3
+patch_args=-Np0
 
 jxrlib-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/kanshi/template b/srcpkgs/kanshi/template
index e6fe40f4a697..d9e4c799e616 100644
--- a/srcpkgs/kanshi/template
+++ b/srcpkgs/kanshi/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/emersion/kanshi"
 distfiles="https://github.com/emersion/kanshi/archive/v${version}.tar.gz"
 checksum=f7e782d2b49380aed370213b8d74af9fe806d9dc94b3c19179475f4b18e26566
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/katarakt/template b/srcpkgs/katarakt/template
index 13fc25ba6626..05c85364c95d 100644
--- a/srcpkgs/katarakt/template
+++ b/srcpkgs/katarakt/template
@@ -13,6 +13,7 @@ homepage="https://wwwcip.cs.fau.de/~go18gomu/katarakt"
 #distfiles="https://wwwcip.cs.fau.de/~go18gomu/katarakt/tarballs/katarakt-${version}.tar.xz"
 distfiles="https://gitlab.cs.fau.de/Qui_Sum/katarakt/-/archive/v${version}/katarakt-v${version}.tar.gz"
 checksum=f60b3b7477975301a6c6657eb0a24d5cc28d321cca70e9746d4d1ea91e239c46
+patch_args=-Np0
 
 post_build() {
 	make doc
diff --git a/srcpkgs/kauth/template b/srcpkgs/kauth/template
index 2ba239bf8e09..d69da9d53d72 100644
--- a/srcpkgs/kauth/template
+++ b/srcpkgs/kauth/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kauth"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=00aac14b7a28040a7598ed661254fb4b8c20b0708fc3379461caff7bc8ff9104
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" kcoreaddons qt5-host-tools qt5-qmake qt5-tools-devel polkit-qt5-devel"
diff --git a/srcpkgs/kbd/template b/srcpkgs/kbd/template
index 10b5c5dba294..0b0457f171dd 100644
--- a/srcpkgs/kbd/template
+++ b/srcpkgs/kbd/template
@@ -13,6 +13,7 @@ homepage="http://www.kbd-project.org/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=55f0740458cfd3a84e775e50d7e8b92dc01846db1edad8e2411ccc293ece9b9f
 replaces="kbd-data>=0"
+patch_args=-Np0
 
 post_patch() {
 	# Rename keymap files with the same names
diff --git a/srcpkgs/kcgi/template b/srcpkgs/kcgi/template
index 021c97022dc8..7a5b093157b6 100644
--- a/srcpkgs/kcgi/template
+++ b/srcpkgs/kcgi/template
@@ -16,6 +16,7 @@ homepage="http://kristaps.bsd.lv/kcgi/"
 changelog="https://kristaps.bsd.lv/kcgi/archive.html"
 distfiles="http://kristaps.bsd.lv/kcgi/snapshots/kcgi-${version}.tgz"
 checksum=06ed033de3723651d76e2fac1c2442aaa3a28ac231cbfda4142dfb8782cab363
+patch_args=-Np0
 
 seccomp_audit_get_suffix() {
 	case "$1" in
diff --git a/srcpkgs/kconfig/template b/srcpkgs/kconfig/template
index adc2fc3be0da..e56f6a58ff56 100644
--- a/srcpkgs/kconfig/template
+++ b/srcpkgs/kconfig/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-only, LGPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kconfig"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=234fc902d8a005291488def0a6a4b9d8b8500102e05aa2d1cfa3d5b6bb830a89
+patch_args=-Np0
 
 kconfig-devel_package() {
 	short_desc+=" - development"
diff --git a/srcpkgs/kcoreaddons/template b/srcpkgs/kcoreaddons/template
index 634dcec5c336..9403c06a9a64 100644
--- a/srcpkgs/kcoreaddons/template
+++ b/srcpkgs/kcoreaddons/template
@@ -13,6 +13,7 @@ license="LGPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kcoreaddons"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=12077aac579065ca5ca877aee3bbdce65c52b6d0e9ef8b1fc0e127dd2e7f6843
+patch_args=-Np0
 
 post_install() {
 	vsed -e 's;${_IMPORT_PREFIX};/usr;g' \
diff --git a/srcpkgs/kdb/template b/srcpkgs/kdb/template
index 0bc353bd7085..e28e194c4d55 100644
--- a/srcpkgs/kdb/template
+++ b/srcpkgs/kdb/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-or-later"
 homepage="http://www.kexi-project.org/"
 distfiles="${KDE_SITE}/kdb/src/kdb-${version}.tar.xz"
 checksum=8f8983bc8d143832dc14bc2003ba6af1af27688e477c0c791fd61445464f2069
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-qmake qt5-host-tools python3"
diff --git a/srcpkgs/kdelibs4support/template b/srcpkgs/kdelibs4support/template
index 306a952779ad..2841c1dcefcd 100644
--- a/srcpkgs/kdelibs4support/template
+++ b/srcpkgs/kdelibs4support/template
@@ -17,6 +17,7 @@ license="LGPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kdelibs4support"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/portingAids/${pkgname}-${version}.tar.xz"
 checksum=2f82f9241a1ceb08f4da7e9056612003b18d85879aff808f21d750b52edf4fe1
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# gettaddrinfo runtime test is always fine (can't be achieved in crossbuild)
diff --git a/srcpkgs/kdesignerplugin/template b/srcpkgs/kdesignerplugin/template
index 193e3fdc8320..8787bf11ced2 100644
--- a/srcpkgs/kdesignerplugin/template
+++ b/srcpkgs/kdesignerplugin/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://invent.kde.org/frameworks/kdesignerplugin"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/portingAids/${pkgname}-${version}.tar.xz"
 checksum=4556c3001f6558cf8ecaf9ce98b60bc130099b0af5d35be48561405b778d6f79
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake qt5-tools python kgendesignerplugin kdoctools"
diff --git a/srcpkgs/kdevelop-python/template b/srcpkgs/kdevelop-python/template
index 6d2f53fd0e60..d245fc817f01 100644
--- a/srcpkgs/kdevelop-python/template
+++ b/srcpkgs/kdevelop-python/template
@@ -18,6 +18,7 @@ homepage="https://www.kdevelop.org/"
 distfiles="${KDE_SITE}/kdevelop/${version}/src/kdev-python-${version}.tar.xz"
 checksum=20f9b771b961262ded986a4f32b8d259ad9f7bc48bb29eac0a5d5853be1d917f
 python_version=3
+patch_args=-Np0
 
 post_install() {
 	# don't install this python2 script: generates documentation_files, useless at runtime
diff --git a/srcpkgs/kdevelop/template b/srcpkgs/kdevelop/template
index 3adc84273607..60f85a97b137 100644
--- a/srcpkgs/kdevelop/template
+++ b/srcpkgs/kdevelop/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.kdevelop.org/"
 distfiles="${KDE_SITE}/${pkgname}/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=0f86bc3fe53f761c1e3e3f7544577a0c41433be8bff310cf2e729f76f4363bf6
+patch_args=-Np0
 
 build_options="webengine"
 desc_option_webengine="Use Qt5 WebEngine for documentation"
diff --git a/srcpkgs/kdoctools/template b/srcpkgs/kdoctools/template
index 12febaa475fc..6f9f52862b08 100644
--- a/srcpkgs/kdoctools/template
+++ b/srcpkgs/kdoctools/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kdoctools"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=414fbb92521734664535b475bf1ea2b941c3d4bdde14c06fd243a2968d1531db
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake python kdoctools-devel"
diff --git a/srcpkgs/kea/template b/srcpkgs/kea/template
index dc0bcc5de3fc..bad3cab44ea2 100644
--- a/srcpkgs/kea/template
+++ b/srcpkgs/kea/template
@@ -21,6 +21,7 @@ license="MPL-2.0, Apache-2.0"
 homepage="https://kea.isc.org"
 distfiles="http://ftp.isc.org/isc/kea/${version/.P/-P}/kea-${version/.P/-P}.tar.gz"
 checksum=324a06f488645bee587e49a45d491b525f53417c56b219f1cb37461fdefd9d91
+patch_args=-Np0
 
 build_options="botan mysql pgsql"
 desc_option_botan="With Botan SSL support"
diff --git a/srcpkgs/kernel-libc-headers/template b/srcpkgs/kernel-libc-headers/template
index ff67067469e9..a21b03bc0ddc 100644
--- a/srcpkgs/kernel-libc-headers/template
+++ b/srcpkgs/kernel-libc-headers/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://www.kernel.org"
 distfiles="$KERNEL_SITE/kernel/v${version%%.*}.x/linux-${version}.tar.xz"
 checksum=904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+patch_args=-Np0
 
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="perl"
diff --git a/srcpkgs/kexec-tools/template b/srcpkgs/kexec-tools/template
index 06f6f4527138..dccec75fe3be 100644
--- a/srcpkgs/kexec-tools/template
+++ b/srcpkgs/kexec-tools/template
@@ -13,6 +13,7 @@ homepage="http://kernel.org/pub/linux/utils/kernel/kexec/"
 distfiles="${KERNEL_SITE}/utils/kernel/kexec/${pkgname}-${version}.tar.xz"
 checksum=96c97f49ed86049f8b72722cb53e7fe3693e5a4f31e78a3a6249e3d18dac49c2
 skip_extraction="${pkgname}-${version}.tar.xz"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/kexi/template b/srcpkgs/kexi/template
index 28d4a358ac65..640f5158ffcd 100644
--- a/srcpkgs/kexi/template
+++ b/srcpkgs/kexi/template
@@ -14,6 +14,7 @@ homepage="http://www.kexi-project.org/"
 distfiles="${KDE_SITE}/kexi/src/kexi-${version}.tar.xz"
 checksum=7a813f9ea815a09c1e733d0e7dc879c64eee85f075389e87e6aab99cf0c1c1ff
 replaces="calligra-kexi>=0"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ];then
 	hostmakedepends+=" qt5-qmake qt5-host-tools python3 kcoreaddons"
diff --git a/srcpkgs/keyutils/template b/srcpkgs/keyutils/template
index 2da74bdcd24b..2b0044799be1 100644
--- a/srcpkgs/keyutils/template
+++ b/srcpkgs/keyutils/template
@@ -9,6 +9,7 @@ homepage="https://www.kernel.org"
 distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/${pkgname}-${version}.tar.gz"
 checksum=a61d5706136ae4c05bd48f86186bcfdbd88dd8bd5107e3e195c924cfc1b39bb4
 conf_files="/etc/request-key.conf"
+patch_args=-Np0
 
 pre_build() {
 	# Fix musl build - doesn't hurt glibc either
diff --git a/srcpkgs/kicad/template b/srcpkgs/kicad/template
index c56f7422dbed..18f1c310daab 100644
--- a/srcpkgs/kicad/template
+++ b/srcpkgs/kicad/template
@@ -22,6 +22,7 @@ homepage="http://kicad-pcb.org"
 distfiles="https://gitlab.com/kicad/code/${pkgname}/-/archive/${version}/kicad-${version}.tar.gz"
 checksum=296341f30ada2c7f4a1c54720eab425835a93349527d4bf08f73f280d19695ed
 python_version=3
+patch_args=-Np0
 
 build_options="spice occt"
 build_options_default="spice occt"
diff --git a/srcpkgs/kid3/template b/srcpkgs/kid3/template
index e916cbabed1e..e743ffff1536 100644
--- a/srcpkgs/kid3/template
+++ b/srcpkgs/kid3/template
@@ -20,6 +20,7 @@ license="GPL-2.0-only"
 homepage="https://kid3.kde.org"
 distfiles="${SOURCEFORGE_SITE}/kid3/kid3-${version}.tar.gz"
 checksum=71ef8c58227302737ebbed3b7f476f9f48e76ea894952d916dc33d9c08f96e08
+patch_args=-Np0
 
 build_options="KDE mp3 mp4 flac vorbis taglib chromaprint"
 build_options_default="mp3 mp4 flac vorbis taglib chromaprint"
diff --git a/srcpkgs/kinit/template b/srcpkgs/kinit/template
index 0bc5c5dc295e..483a88c80473 100644
--- a/srcpkgs/kinit/template
+++ b/srcpkgs/kinit/template
@@ -13,6 +13,7 @@ license="LGPL-2.0-only"
 homepage="https://invent.kde.org/frameworks/kinit"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=8b1b9d34fe4a4345381ac954888190e65f28ffe8211c7c0a16376996a79dc168
+patch_args=-Np0
 
 kinit-devel_package() {
 	short_desc+=" - development"
diff --git a/srcpkgs/kio/template b/srcpkgs/kio/template
index 1a1751c72191..1b03e77eac62 100644
--- a/srcpkgs/kio/template
+++ b/srcpkgs/kio/template
@@ -16,6 +16,7 @@ license="LGPL-2.0-or-later"
 homepage="https://invent.kde.org/frameworks/kio"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=cb970d0550054fd0bb0957de010b9ea73b2d89e8df725c0d8344320e82473144
+patch_args=-Np0
 
 CXXFLAGS+=" -fpermissive"
 
diff --git a/srcpkgs/kmod/template b/srcpkgs/kmod/template
index e9b8c26161e8..9266a17dc233 100644
--- a/srcpkgs/kmod/template
+++ b/srcpkgs/kmod/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git"
 distfiles="${KERNEL_SITE}/utils/kernel/kmod/kmod-${version}.tar.xz"
 checksum=c1d3fbf16ca24b95f334c1de1b46f17bbe5a10b0e81e72668bdc922ebffbbc0c
+patch_args=-Np0
 
 post_install() {
 	vinstall ${FILESDIR}/depmod-search.conf 644 usr/lib/depmod.d search.conf
diff --git a/srcpkgs/kmscon/template b/srcpkgs/kmscon/template
index 0683ed5d0ce7..0e9b90b7d65d 100644
--- a/srcpkgs/kmscon/template
+++ b/srcpkgs/kmscon/template
@@ -15,6 +15,7 @@ homepage="http://www.freedesktop.org/wiki/Software/kmscon"
 distfiles="${FREEDESKTOP_SITE}/kmscon/releases/kmscon-${version}.tar.xz"
 checksum=0ab01c1cdc4fbd692ce765e80478bc2d9663a7c55a5c75cc7ac421366ee6ae2b
 lib32disabled=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc*) broken="ftbfs";;
diff --git a/srcpkgs/kobodeluxe/template b/srcpkgs/kobodeluxe/template
index 94e3e8329728..689d2f17965c 100644
--- a/srcpkgs/kobodeluxe/template
+++ b/srcpkgs/kobodeluxe/template
@@ -14,6 +14,7 @@ homepage="http://olofson.net/kobodl"
 distfiles="${homepage}/download/KoboDeluxe-${version}.tar.bz2"
 checksum=0f7b910a399d985437564af8c5d81d6dcf22b96b26b01488d72baa6a6fdb5c2c
 replaces="kobodeluxe-data>=0"
+patch_args=-Np0
 
 post_extract() {
 	bsdtar xf icons.tar.gz
diff --git a/srcpkgs/kodi-addon-inputstream-adaptive/template b/srcpkgs/kodi-addon-inputstream-adaptive/template
index 579f39bfb0e4..21bd7af334f6 100644
--- a/srcpkgs/kodi-addon-inputstream-adaptive/template
+++ b/srcpkgs/kodi-addon-inputstream-adaptive/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/peak3d/inputstream.adaptive"
 distfiles="https://github.com/peak3d/inputstream.adaptive/archive/${version}-${_kodi_release}.tar.gz"
 checksum=353207f5f98bf81ce8d79cec903c28da8c0227d7c7a632692c910d81e59c2dbe
+patch_args=-Np0
 
 if [ -n "${CROSS_BUILD}" ]; then
 	configure_args+=" -DCMAKE_MODULE_PATH=${XBPS_CROSS_BASE}/usr/share/kodi/cmake"
diff --git a/srcpkgs/kore/template b/srcpkgs/kore/template
index 6c6e2d1378c2..adccefbc13df 100644
--- a/srcpkgs/kore/template
+++ b/srcpkgs/kore/template
@@ -16,6 +16,7 @@ homepage="https://kore.io"
 distfiles="https://kore.io/releases/kore-${version}.tar.gz"
 checksum=b7d73b005fde0ea01c356a54e4bbd8a209a4dff9cf315802a127ce7267efbe61
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/krita/template b/srcpkgs/krita/template
index e909366f539d..f04f7a5bb8b3 100644
--- a/srcpkgs/krita/template
+++ b/srcpkgs/krita/template
@@ -23,6 +23,7 @@ distfiles="${KDE_SITE}/krita/${version}/krita-${version}.tar.gz"
 checksum=4bfd7280870d1060a00d1123d836fc1a5b5bf8a028676679f0268cd5e7fb7568
 python_version=3
 replaces="calligra-krita>=0"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) makedepends+=" vc";;
diff --git a/srcpkgs/kscreenlocker/template b/srcpkgs/kscreenlocker/template
index 36df46f2420e..19becb55ca02 100644
--- a/srcpkgs/kscreenlocker/template
+++ b/srcpkgs/kscreenlocker/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://invent.kde.org/plasma/kscreenlocker"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=9803b976b6cc14fa5216de17481609ebf46d28c314284d9e74e8f9b181cb9bba
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" wayland-devel"
diff --git a/srcpkgs/kvirc/template b/srcpkgs/kvirc/template
index 41255b18e928..801cc846a309 100644
--- a/srcpkgs/kvirc/template
+++ b/srcpkgs/kvirc/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.kvirc.net"
 distfiles="ftp://ftp.kvirc.net/pub/kvirc/${version}/source/KVIrc-${version}.tar.bz2"
 checksum=76cd4cdcaca5e4056f086cdcbb6122c2ca7e331d6e66c7ebc57d32565f626a65
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ];then
 	hostmakedepends+=" qt5-qmake qt5-host-tools"
diff --git a/srcpkgs/kwallet-cli/template b/srcpkgs/kwallet-cli/template
index 4e27ae4f5913..ddeacf49443f 100644
--- a/srcpkgs/kwallet-cli/template
+++ b/srcpkgs/kwallet-cli/template
@@ -14,6 +14,7 @@ license="custom:MirOS, LGPL-3.0-or-later"
 homepage="https://www.mirbsd.org/kwalletcli.htm"
 distfiles="http://www.mirbsd.org/MirOS/dist/hosted/kwalletcli/kwalletcli-${version}.tar.gz"
 checksum=f228e5b179f6eb92289b9635382e676990dd58cd193ce42b61d3150c8a06b12d
+patch_args=-Np0
 
 post_patch() {
 	vsed -i GNUmakefile -e "s|-I/usr/include|-I${XBPS_CROSS_BASE}/usr/include|g"
diff --git a/srcpkgs/ladish/template b/srcpkgs/ladish/template
index f0b36f188b2b..7824e497f211 100644
--- a/srcpkgs/ladish/template
+++ b/srcpkgs/ladish/template
@@ -17,6 +17,7 @@ homepage="http://ladish.org"
 distfiles="${DEBIAN_SITE}/main/l/ladish/ladish_1+dfsg0.orig.tar.bz2"
 checksum=39b09d5a4c2f2d65d37374eb8b53f35039f2229d96ea6ddef7b1ce154403383a
 python_version=2
+patch_args=-Np0
 
 CXXFLAGS=-std=c++11
 
diff --git a/srcpkgs/laditools/template b/srcpkgs/laditools/template
index 596f955b9d0c..d5c06f7015d4 100644
--- a/srcpkgs/laditools/template
+++ b/srcpkgs/laditools/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/alessio/laditools"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=ca99f4b6e17b7333ed87dd12a2d91da4d486e53d89dd2677edfa29170ec6efe5
+patch_args=-Np0
 
 post_install() {
 	# remove wmladi, we do not have wmdocklib.
diff --git a/srcpkgs/ladspa-sdk/template b/srcpkgs/ladspa-sdk/template
index 175f3cb2c405..4b3730a98f66 100644
--- a/srcpkgs/ladspa-sdk/template
+++ b/srcpkgs/ladspa-sdk/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.ladspa.org/"
 distfiles="http://www.ladspa.org/download/ladspa_sdk_${version}.tgz"
 checksum=4229959b09d20c88c8c86f4aa76427843011705df22d9c28b38359fd1829fded
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC CPP=$CXX LD=$LD -C src
diff --git a/srcpkgs/lapack/template b/srcpkgs/lapack/template
index 3ca60272736d..525d64b965c0 100644
--- a/srcpkgs/lapack/template
+++ b/srcpkgs/lapack/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://www.netlib.org/lapack/"
 distfiles="https://github.com/Reference-LAPACK/lapack/archive/v${version}.tar.gz"
 checksum=106087f1bb5f46afdfba7f569d0cbe23dacb9a07cd24733765a0e89dbe1ad573
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/latencytop/template b/srcpkgs/latencytop/template
index 67071c436a8a..0442408311b1 100644
--- a/srcpkgs/latencytop/template
+++ b/srcpkgs/latencytop/template
@@ -11,6 +11,7 @@ license="GPL-2"
 homepage="http://www.latencytop.org"
 distfiles="${DEBIAN_SITE}/main/l/$pkgname/${pkgname}_${version}.orig.tar.gz"
 checksum=9e7f72fbea7bd918e71212a1eabaad8488d2c602205d2e3c95d62cd57e9203ef
+patch_args=-Np0
 
 pre_build() {
 	export CFLAGS="$CFLAGS $LDFLAGS"
diff --git a/srcpkgs/ldapvi/template b/srcpkgs/ldapvi/template
index 1dda3c2ae6e8..3c5f6bae167e 100644
--- a/srcpkgs/ldapvi/template
+++ b/srcpkgs/ldapvi/template
@@ -12,6 +12,7 @@ homepage="http://www.lichteblau.com/ldapvi/"
 short_desc="An interactive LDAP client for Unix terminals"
 distfiles="http://www.lichteblau.com/download/ldapvi-${version}.tar.gz"
 checksum=6f62e92d20ff2ac0d06125024a914b8622e5b8a0a0c2d390bf3e7990cbd2e153
+patch_args=-Np0
 
 do_install() {
 	vbin ldapvi
diff --git a/srcpkgs/ldb/template b/srcpkgs/ldb/template
index ada2f2052210..356615c375e3 100644
--- a/srcpkgs/ldb/template
+++ b/srcpkgs/ldb/template
@@ -19,6 +19,7 @@ license="LGPL-3.0-or-later"
 homepage="https://www.samba.org/ldb/"
 distfiles="https://www.samba.org/ftp/pub/ldb/ldb-${version}.tar.gz"
 checksum=134bb51769709af59f30bf468e454d1377a8096acd4e80dcb42fd264f558bd5f
+patch_args=-Np0
 
 # workaround for cmocka's broken uintptr_t definition on musl
 if [ "$XBPS_TARGET_WORDSIZE" = "64" -a "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/ledger/template b/srcpkgs/ledger/template
index c94b72709dea..e1bd5419f0fa 100644
--- a/srcpkgs/ledger/template
+++ b/srcpkgs/ledger/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="https://www.ledger-cli.org/"
 distfiles="https://github.com/ledger/${pkgname}/archive/v${version}.tar.gz"
 checksum=92bf09bc385b171987f456fe3ee9fa998ed5e40b97b3acdd562b663aa364384a
+patch_args=-Np0
 
 post_install() {
 	rm -Rf ${DESTDIR}/usr/local
diff --git a/srcpkgs/lfe/template b/srcpkgs/lfe/template
index 31f33e64eeaf..b57f4ad541a8 100644
--- a/srcpkgs/lfe/template
+++ b/srcpkgs/lfe/template
@@ -10,6 +10,7 @@ license="Apache-2.0"
 homepage="http://lfe.io/"
 distfiles="https://github.com/rvirding/lfe/archive/v${version}.tar.gz"
 checksum=04634f2c700ecedb55f4369962837792669e6be809dba90d81974198fc2b7b72
+patch_args=-Np0
 
 do_build() {
 	make
diff --git a/srcpkgs/liba52/template b/srcpkgs/liba52/template
index f94b04c876d1..3c850ca622e0 100644
--- a/srcpkgs/liba52/template
+++ b/srcpkgs/liba52/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://liba52.sourceforge.net/"
 distfiles="http://liba52.sourceforge.net/files/a52dec-${version}.tar.gz"
 checksum=a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33
+patch_args=-Np0
 
 pre_configure() {
 	./bootstrap
diff --git a/srcpkgs/libabigail/template b/srcpkgs/libabigail/template
index ed30ffd85c54..03906b43ac00 100644
--- a/srcpkgs/libabigail/template
+++ b/srcpkgs/libabigail/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-or-later"
 homepage="https://www.sourceware.org/libabigail/"
 distfiles="http://mirrors.kernel.org/sourceware/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=86347c9f0a8666f263fd63f8c3fe4c4f9cb1bdb3ec4260ecbaf117d137e89787
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" musl-fts-devel"; LDFLAGS="-lfts" ;;
diff --git a/srcpkgs/libabw/template b/srcpkgs/libabw/template
index e617508a0b3d..3e0b95197ef1 100644
--- a/srcpkgs/libabw/template
+++ b/srcpkgs/libabw/template
@@ -11,6 +11,7 @@ distfiles="http://dev-www.libreoffice.org/src/${pkgname}/${pkgname}-${version}.t
 makedepends="librevenge-devel boost-devel libxml2-devel"
 hostmakedepends="automake libtool pkg-config perl gperf"
 checksum=e763a9dc21c3d2667402d66e202e3f8ef4db51b34b79ef41f56cacb86dcd6eed
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated-copy"
 
diff --git a/srcpkgs/libaccounts-qt5/template b/srcpkgs/libaccounts-qt5/template
index 73c98fb72bd4..98e0b0374d5b 100644
--- a/srcpkgs/libaccounts-qt5/template
+++ b/srcpkgs/libaccounts-qt5/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-only"
 homepage="https://gitlab.com/accounts-sso/libaccounts-qt"
 distfiles="${homepage}/repository/archive.tar.gz?ref=VERSION_${version}>${pkgname}-${version}.tar.gz"
 checksum=286eb02f936853e32e610003a2a332a12524050d226707e7630b6a29bd3bdf66
+patch_args=-Np0
 
 libaccounts-qt5-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libarchive/template b/srcpkgs/libarchive/template
index 605cac399d34..ea4b7e8f63e5 100644
--- a/srcpkgs/libarchive/template
+++ b/srcpkgs/libarchive/template
@@ -18,6 +18,7 @@ license="BSD-2-Clause"
 homepage="http://www.libarchive.org/"
 distfiles="https://github.com/libarchive/libarchive/releases/download/${version}/libarchive-${version}.tar.gz"
 checksum=9015d109ec00bb9ae1a384b172bf2fc1dff41e2c66e5a9eeddf933af9db37f5a
+patch_args=-Np0
 
 build_options="acl expat lzo lz4 ssl zstd"
 build_options_default="acl ssl lz4 zstd"
diff --git a/srcpkgs/libatasmart/template b/srcpkgs/libatasmart/template
index 7714dcbfe394..b79bd8661ae8 100644
--- a/srcpkgs/libatasmart/template
+++ b/srcpkgs/libatasmart/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://0pointer.de/blog/projects/being-smart.html"
 distfiles="http://0pointer.de/public/$pkgname-$version.tar.xz"
 checksum=61f0ea345f63d28ab2ff0dc352c22271661b66bf09642db3a4049ac9dbdb0f8d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libax25/template b/srcpkgs/libax25/template
index e4de77e6b59a..868268ce4abb 100644
--- a/srcpkgs/libax25/template
+++ b/srcpkgs/libax25/template
@@ -13,6 +13,7 @@ license="LGPL-2"
 homepage="http://www.linux-ax25.org/wiki/Libax25"
 distfiles="http://www.linux-ax25.org/pub/libax25/${wrksrc}.tar.gz"
 checksum=051bd736c3f3f3b242b3efea91af37f2e8d5afaebb5fe6e1df050bb1f6aeb986
+patch_args=-Np0
 
 libax25-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libbsd/template b/srcpkgs/libbsd/template
index aa36c7f4e0cc..28d3bc622698 100644
--- a/srcpkgs/libbsd/template
+++ b/srcpkgs/libbsd/template
@@ -10,6 +10,7 @@ license="ISC, MIT, Beerware, BSD-2-Clause, BSD-3-Clause, BSD-4-Clause"
 homepage="https://libbsd.freedesktop.org/"
 distfiles="https://libbsd.freedesktop.org/releases/libbsd-${version}.tar.xz"
 checksum=ff95cf8184151dacae4247832f8d4ea8800fa127dbd15033ecfe839f285b42a1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libcanberra/template b/srcpkgs/libcanberra/template
index de049b68e088..f853fb7e03ab 100644
--- a/srcpkgs/libcanberra/template
+++ b/srcpkgs/libcanberra/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="http://0pointer.de/lennart/projects/libcanberra/"
 distfiles="http://pkgs.fedoraproject.org/repo/pkgs/libcanberra/libcanberra-${version}.tar.xz/34cb7e4430afaf6f447c4ebdb9b42072/libcanberra-${version}.tar.xz"
 checksum=c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -if
diff --git a/srcpkgs/libcap-ng/template b/srcpkgs/libcap-ng/template
index 99eab8e614fc..7ea192957fb8 100644
--- a/srcpkgs/libcap-ng/template
+++ b/srcpkgs/libcap-ng/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://people.redhat.com/sgrubb/libcap-ng/"
 distfiles="http://people.redhat.com/sgrubb/$pkgname/$pkgname-$version.tar.gz"
 checksum=52c083b77c2b0d8449dee141f9c3eba76e6d4c5ad44ef05df25891126cb85ae9
+patch_args=-Np0
 
 subpackages="libcap-ng-devel libcap-ng-progs"
 
diff --git a/srcpkgs/libcap/template b/srcpkgs/libcap/template
index ad68fc72aed6..cadc03d056e2 100644
--- a/srcpkgs/libcap/template
+++ b/srcpkgs/libcap/template
@@ -15,6 +15,7 @@ homepage="http://sites.google.com/site/fullycapable/"
 changelog="https://sites.google.com/site/fullycapable/release-notes-for-libcap"
 distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/${pkgname}-${version}.tar.xz"
 checksum=47a57b8bd238b84c93c921a9b4ff82337551dbcb0cca071316aadf3e23b19261
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
diff --git a/srcpkgs/libcec/template b/srcpkgs/libcec/template
index bf232fb89eb8..c203167ef915 100644
--- a/srcpkgs/libcec/template
+++ b/srcpkgs/libcec/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Pulse-Eight/libcec"
 distfiles="https://github.com/Pulse-Eight/libcec/archive/libcec-${version}.tar.gz"
 checksum=090696d7a4fb772d7acebbb06f91ab92e025531c7c91824046b9e4e71ecb3377
+patch_args=-Np0
 
 build_options="rpi"
 
diff --git a/srcpkgs/libcgroup/template b/srcpkgs/libcgroup/template
index c9c19120e597..13b1318383bc 100644
--- a/srcpkgs/libcgroup/template
+++ b/srcpkgs/libcgroup/template
@@ -12,6 +12,7 @@ license="LGPL-2.1"
 homepage="http://libcg.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/libcg/${pkgname}-${version}.tar.bz2"
 checksum=e4e38bdc7ef70645ce33740ddcca051248d56b53283c0dc6d404e17706f6fb51
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	# Add musl-fts implementation
diff --git a/srcpkgs/libcmis/template b/srcpkgs/libcmis/template
index fac133d5e4d9..9e2aa911954b 100644
--- a/srcpkgs/libcmis/template
+++ b/srcpkgs/libcmis/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1"
 homepage="https://github.com/tdf/libcmis"
 distfiles="https://github.com/tdf/libcmis/releases/download/v${version}/libcmis-${version}.tar.gz"
 checksum=ed6f681a48abbf3c2324564b17a180d21fa9503230e8708825e1ad80daee4f81
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated"
 
diff --git a/srcpkgs/libcprops/template b/srcpkgs/libcprops/template
index 3460841477a1..2dc95f4e8a82 100644
--- a/srcpkgs/libcprops/template
+++ b/srcpkgs/libcprops/template
@@ -12,6 +12,7 @@ license="LGPL-2.1"
 distfiles="${SOURCEFORGE_SITE}/cprops/${pkgname}-${version}.tar.bz2"
 checksum=3737772d2718a2c550adf4ca92cc492e613aa9200aae2bbaaf128d90f4ef67f2
 nocross="autotools TRY_RUN checking for PTHREAD_MUTEX_RECURSIVE"
+patch_args=-Np0
 
 libcprops-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libdaemon/template b/srcpkgs/libdaemon/template
index 07fe35eaeeac..6d2bf5364075 100644
--- a/srcpkgs/libdaemon/template
+++ b/srcpkgs/libdaemon/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://0pointer.de/lennart/projects/$pkgname"
 distfiles="http://pkgs.fedoraproject.org/repo/pkgs/libdaemon/libdaemon-${version}.tar.gz/509dc27107c21bcd9fbf2f95f5669563/libdaemon-${version}.tar.gz"
 checksum=fd23eb5f6f986dcc7e708307355ba3289abe03cc381fc47a80bca4a50aa6b834
+patch_args=-Np0
 
 libdaemon-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libdbus-c++/template b/srcpkgs/libdbus-c++/template
index 29b4a109863d..91724cfdee6b 100644
--- a/srcpkgs/libdbus-c++/template
+++ b/srcpkgs/libdbus-c++/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="http://dbus-cplusplus.sourceforge.net/"
 distfiles="https://github.com/pkgw/dbus-cplusplus/releases/download/v${version}/libdbus-c---${version}.tar.gz"
 checksum=4f140668f2529ecbdce99afbb89f8a977aa47a36248d5f4943b3660316752ee8
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" libdbus-c++-devel dbus-devel glib-devel"
diff --git a/srcpkgs/libdill/template b/srcpkgs/libdill/template
index c641f17afb7f..38ba343f1e83 100644
--- a/srcpkgs/libdill/template
+++ b/srcpkgs/libdill/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://libdill.org/"
 distfiles="https://github.com/sustrik/libdill/archive/${version}.tar.gz"
 checksum=ebba0e5b433ec123b74a57d49b89dfa673aa258e03e6a452959e556b4c4529b9
+patch_args=-Np0
 
 pre_configure() {
 	export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=?/}"
diff --git a/srcpkgs/libdrm/template b/srcpkgs/libdrm/template
index ef96bcf5d129..21988cf5fc65 100644
--- a/srcpkgs/libdrm/template
+++ b/srcpkgs/libdrm/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://dri.freedesktop.org/"
 distfiles="https://gitlab.freedesktop.org/mesa/drm/-/archive/libdrm-${version}/drm-libdrm-${version}.tar.gz"
 checksum=0ba5017cafd4b7ac885356403c20105d40efcd11271ebf75727c1a5599e4ed53
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	aarch64*) configure_args+=" -Dvc4=true";;
diff --git a/srcpkgs/libesmtp/template b/srcpkgs/libesmtp/template
index 6719b024796c..0b88cd4b5035 100644
--- a/srcpkgs/libesmtp/template
+++ b/srcpkgs/libesmtp/template
@@ -12,6 +12,7 @@ homepage="http://brianstafford.info/libesmtp/"
 distfiles="https://sources.voidlinux.org/libesmtp-1.0.6/libesmtp-1.0.6.tar.bz2"
 #distfiles="http://brianstafford.info/libesmtp/libesmtp-${version}.tar.bz2"
 checksum=d0a61a5c52d99fa7ce7d00ed0a07e341dbda67101dbed1ab0cdae3f37db4eb0b
+patch_args=-Np0
 
 libesmtp-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libetpan/template b/srcpkgs/libetpan/template
index fb6c96eb33f2..9363e7ae26b1 100644
--- a/srcpkgs/libetpan/template
+++ b/srcpkgs/libetpan/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="http://www.etpan.org/libetpan.html"
 distfiles="https://github.com/dinhviethoa/libetpan/archive/${version}.tar.gz"
 checksum=591f97d5102f600e668502fe1dd5a341e910a840d8ea62e689a3a79d8bfbac87
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/libevdevPlus/template b/srcpkgs/libevdevPlus/template
index cf693a6e776c..dec92cb4bfd3 100644
--- a/srcpkgs/libevdevPlus/template
+++ b/srcpkgs/libevdevPlus/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/YukiWorkshop/libevdevPlus"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=c941b6b45f784c1e6c6f316f59256fabd604ac392db405cf7fd99de2686aaab0
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libexecinfo/template b/srcpkgs/libexecinfo/template
index dde582069514..5fe7d6fa72a2 100644
--- a/srcpkgs/libexecinfo/template
+++ b/srcpkgs/libexecinfo/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://www.freshports.org/devel/libexecinfo"
 distfiles="http://distcache.freebsd.org/local-distfiles/itetcu/libexecinfo-${version}.tar.bz2"
 checksum=c9a21913e7fdac8ef6b33250b167aa1fc0a7b8a175145e26913a4c19d8a59b1f
+patch_args=-Np0
 
 do_install() {
 	vsed -e "/Version:/s@version@${version}@" -i libexecinfo.pc
diff --git a/srcpkgs/libfetch/template b/srcpkgs/libfetch/template
index 5522f74d617f..dc3eaad7a71b 100644
--- a/srcpkgs/libfetch/template
+++ b/srcpkgs/libfetch/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="https://www.NetBSD.org"
 distfiles="https://alpha.de.repo.voidlinux.org/distfiles/libfetch-${version}.tar.xz"
 checksum=4e6d4541f213c9ab42ea94d49c2573f0a6f54b04f14668530960f1424b04f722
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC
diff --git a/srcpkgs/libffado/template b/srcpkgs/libffado/template
index cadd335b30e3..837d5443d972 100644
--- a/srcpkgs/libffado/template
+++ b/srcpkgs/libffado/template
@@ -20,6 +20,7 @@ license="GPL-2.0-only, GPL-3.0-only"
 homepage="http://www.ffado.org"
 distfiles="http://www.ffado.org/files/libffado-${version}.tgz"
 checksum=a47178cdc8c0c91e91edbaabe23d19ca12a752cbcf81c27314adb27cc00d60f0
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	makedepends+=" argp-standalone" ;;
diff --git a/srcpkgs/libffi/template b/srcpkgs/libffi/template
index d79ef2afe2d8..13469f65f514 100644
--- a/srcpkgs/libffi/template
+++ b/srcpkgs/libffi/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://sourceware.org/libffi"
 distfiles="ftp://sourceware.org/pub/$pkgname/$pkgname-$version.tar.gz"
 checksum=72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libfprint/template b/srcpkgs/libfprint/template
index 9f32d0bea086..eef79d8277ce 100644
--- a/srcpkgs/libfprint/template
+++ b/srcpkgs/libfprint/template
@@ -17,6 +17,7 @@ homepage="http://www.freedesktop.org/wiki/Software/fprint/"
 changelog="https://gitlab.freedesktop.org/libfprint/libfprint/raw/master/NEWS"
 distfiles="https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/v$version/libfprint-v$version.tar.bz2"
 checksum=d11acf183820812fd6a8cd808d58bbf197554bcc0f9119d4c873092ecd94ee29
+patch_args=-Np0
 
 libfprint-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libfprint0/template b/srcpkgs/libfprint0/template
index 2d31deb97f4b..9f12b576fe62 100644
--- a/srcpkgs/libfprint0/template
+++ b/srcpkgs/libfprint0/template
@@ -17,6 +17,7 @@ distfiles="https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/V_${vers
 checksum=22777a1d202ef912395b94842ae6b531338c8d48a8a813616e846b1bc96c5ad9
 provides="libfprint-${version}_${revision}"
 replaces="libfprint<=${version}_1"
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/lib/udev/rules.d
diff --git a/srcpkgs/libfreehand/template b/srcpkgs/libfreehand/template
index 10282b4bd0d4..c94cd8c453e0 100644
--- a/srcpkgs/libfreehand/template
+++ b/srcpkgs/libfreehand/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand"
 distfiles="http://dev-www.libreoffice.org/src/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=0e422d1564a6dbf22a9af598535425271e583514c0f7ba7d9091676420de34ac
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated-copy"
 
diff --git a/srcpkgs/libgadu/template b/srcpkgs/libgadu/template
index 3775a273ca97..c90ab53f9559 100644
--- a/srcpkgs/libgadu/template
+++ b/srcpkgs/libgadu/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-only"
 homepage="https://www.wasilczyk.pl/en/projects/libgadu/"
 distfiles="https://github.com/wojtekka/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=f53e703d7ad93ce222dbf7fc0cec77f62813af38817a3678e799e91f1c69c94d
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/libgdal/template b/srcpkgs/libgdal/template
index 72c96ff67605..246109c38cf6 100644
--- a/srcpkgs/libgdal/template
+++ b/srcpkgs/libgdal/template
@@ -17,6 +17,7 @@ homepage="http://www.gdal.org/"
 distfiles="http://download.osgeo.org/gdal/${version}/gdal-${version}.tar.xz"
 checksum=5569a4daa1abcbba47a9d535172fc335194d9214fdb96cd0f139bb57329ae277
 subpackages="libgdal-devel libgdal-tools"
+patch_args=-Np0
 
 if [ -z "$CROSS_BUILD" ]; then
 	makedepends+=" hdf5-devel"
diff --git a/srcpkgs/libgfshare/template b/srcpkgs/libgfshare/template
index db6177570707..74c7044cd865 100644
--- a/srcpkgs/libgfshare/template
+++ b/srcpkgs/libgfshare/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://git.gitano.org.uk/libgfshare.git"
 distfiles="http://www.digital-scurf.org/files/libgfshare/libgfshare-${version}.tar.bz2"
 checksum=86f602860133c828356b7cf7b8c319ba9b27adf70a624fe32275ba1ed268331f
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libgit2-glib/template b/srcpkgs/libgit2-glib/template
index 00e6439339ba..21f2430ff936 100644
--- a/srcpkgs/libgit2-glib/template
+++ b/srcpkgs/libgit2-glib/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/GNOME/libgit2-glib"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=22dccc7aa9ff6f29edf50352b17d58c3f9289ba1cfa7952f70d7feb48676f10c
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/libglade/template b/srcpkgs/libglade/template
index f9bbef8cfbe3..5057e12b4d5d 100644
--- a/srcpkgs/libglade/template
+++ b/srcpkgs/libglade/template
@@ -14,6 +14,7 @@ homepage="http://www.jamesh.id.au/software/libglade/"
 distfiles="${GNOME_SITE}/$pkgname/2.6/$pkgname-$version.tar.bz2"
 checksum=64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec
 python_version=2 #unverified
+patch_args=-Np0
 
 # Register DTDs with xmlcatmgr.
 xml_entries="system http://glade.gnome.org/glade-2.0.dtd /usr/share/xml/libglade/glade-2.0.dtd"
diff --git a/srcpkgs/libglvnd/template b/srcpkgs/libglvnd/template
index 2f6448cc9780..e97629209e6f 100644
--- a/srcpkgs/libglvnd/template
+++ b/srcpkgs/libglvnd/template
@@ -13,6 +13,7 @@ license="custom:MIT-alike"
 homepage="https://gitlab.freedesktop.org/glvnd/libglvnd"
 distfiles="https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/v${version}/libglvnd-v${version}.tar.gz"
 checksum=6332c27f4c792b09a3eb1d7ae18c2d6ff6a0acaf3a746489caf859e659fca2f7
+patch_args=-Np0
 
 provides="libGL-7.11_1 libEGL-7.11_1 libGLES-7.11_1"
 replaces="libGL>=0 libEGL>=0 libGLES>=0"
diff --git a/srcpkgs/libgme/template b/srcpkgs/libgme/template
index 30394ff33815..338848b520ba 100644
--- a/srcpkgs/libgme/template
+++ b/srcpkgs/libgme/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://bitbucket.org/mpyne/game-music-emu/wiki/Home"
 distfiles="https://bitbucket.org/mpyne/game-music-emu/downloads/game-music-emu-${version}.tar.xz"
 checksum=aba34e53ef0ec6a34b58b84e28bf8cfbccee6585cebca25333604c35db3e051d
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	CXXFLAGS="-DMSB_FIRST=1"
diff --git a/srcpkgs/libgpod/template b/srcpkgs/libgpod/template
index 8e547f1f9ebd..89f4bfd7fc37 100644
--- a/srcpkgs/libgpod/template
+++ b/srcpkgs/libgpod/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-only"
 homepage="http://www.gtkpod.org/libgpod/"
 distfiles="${SOURCEFORGE_SITE}/gtkpod/$pkgname-$version.tar.bz2"
 checksum=638a7959d04e95f1e62abad02bd33702e4e8dfef98485ac7d9d50395c37e955d
+patch_args=-Np0
 
 post_patch() {
 	vsed -i configure.ac -e '/PKG_CHECK_MODULES/s/libplist\b/libplist-2.0/g'
diff --git a/srcpkgs/libgsm/template b/srcpkgs/libgsm/template
index 1d7cc0a0dc20..55da1bc0275f 100644
--- a/srcpkgs/libgsm/template
+++ b/srcpkgs/libgsm/template
@@ -9,6 +9,7 @@ short_desc="GSM 06.10 lossy speech compression"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="custom"
 checksum=04f68087c3348bf156b78d59f4d8aff545da7f6e14f33be8f47d33f4efae2a10
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC LD=$CC AR=$AR CCFLAGS="$CFLAGS -c -DNeedFunctionPrototypes=1"
diff --git a/srcpkgs/libguestfs/template b/srcpkgs/libguestfs/template
index 81afe313d203..4f0b0283a00c 100644
--- a/srcpkgs/libguestfs/template
+++ b/srcpkgs/libguestfs/template
@@ -23,6 +23,7 @@ license=" GPL-2.0-or-later"
 homepage="http://libguestfs.org"
 distfiles="http://libguestfs.org/download/${_version_short}-stable/${pkgname}-${version}.tar.gz"
 checksum=72b7dcdd32da1c17c932cf5a0a70b3bd68bc93e94828ad66a539f2e616adb025
+patch_args=-Np0
 
 conf_files="etc/libguestfs-tools.conf
  etc/xdg/virt-builder/repos.d/libguestfs.conf
diff --git a/srcpkgs/libieee1284/template b/srcpkgs/libieee1284/template
index 885772156e50..d24ad9c78059 100644
--- a/srcpkgs/libieee1284/template
+++ b/srcpkgs/libieee1284/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://cyberelk.net/tim/libieee1284"
 distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.bz2"
 checksum=7730de107782e5d2b071bdcb5b06a44da74856f00ef4a9be85d1ba4806a38f1a
+patch_args=-Np0
 
 libieee1284-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libimobiledevice/template b/srcpkgs/libimobiledevice/template
index a8bb2d08e09a..19285ba975f8 100644
--- a/srcpkgs/libimobiledevice/template
+++ b/srcpkgs/libimobiledevice/template
@@ -13,6 +13,7 @@ homepage="https://libimobiledevice.org"
 changelog="https://raw.githubusercontent.com/libimobiledevice/libimobiledevice/master/NEWS"
 distfiles="https://github.com/libimobiledevice/libimobiledevice/archive/${version}.tar.gz"
 checksum=acbfb73eabee162e64c0d9de207d71c0a5f47c40cd5ad32a5097f734328ce10a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args="ac_cv_sys_file_offset_bits=yes ac_cv_sys_large_file=yes"
diff --git a/srcpkgs/libindicator/template b/srcpkgs/libindicator/template
index 1ad0e5f9c6e7..abe8951a83ad 100644
--- a/srcpkgs/libindicator/template
+++ b/srcpkgs/libindicator/template
@@ -12,6 +12,7 @@ license="GPL-3"
 homepage="https://launchpad.net/libindicator"
 distfiles="https://launchpad.net/libindicator/${version%.*}/${version}/+download/libindicator-${version}.tar.gz"
 checksum=b2d2e44c10313d5c9cd60db455d520f80b36dc39562df079a3f29495e8f9447f
+patch_args=-Np0
 
 CFLAGS="-Wno-deprecated-declarations"
 # Avoid errors for macros deprecated since glib-2.58 */
diff --git a/srcpkgs/libiodbc/template b/srcpkgs/libiodbc/template
index 85f0286a90bf..fec82642e70a 100644
--- a/srcpkgs/libiodbc/template
+++ b/srcpkgs/libiodbc/template
@@ -12,6 +12,7 @@ license="LGPL-2.1"
 homepage="http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/"
 distfiles="${SOURCEFORGE_SITE}/iodbc/${pkgname}-${version}.tar.gz"
 checksum=51c5ff3a7d9a54202486cb77a3514e0e379a135beefcd5d12b96d1901f9dfb62
+patch_args=-Np0
 
 post_install() {
 	rm -rf ${DESTDIR}/usr/share/libiodbc
diff --git a/srcpkgs/libixion/template b/srcpkgs/libixion/template
index 60a21b07ac94..52f55031e1a4 100644
--- a/srcpkgs/libixion/template
+++ b/srcpkgs/libixion/template
@@ -12,6 +12,7 @@ homepage="https://gitlab.com/ixion/ixion/"
 distfiles="http://kohei.us/files/ixion/src/${pkgname}-${version}.tar.xz"
 checksum=426c643b3c346d546027c0226619abb2e59848e94470b9b5aa6365e26125089f
 replaces="libixion11>=0"
+patch_args=-Np0
 
 libixion-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libmad/template b/srcpkgs/libmad/template
index b61acb3d8f4b..02d40edf5aa1 100644
--- a/srcpkgs/libmad/template
+++ b/srcpkgs/libmad/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.underbit.com/products/mad/"
 distfiles="${SOURCEFORGE_SITE}/mad/$pkgname-$version.tar.gz"
 checksum=bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690
+patch_args=-Np0
 
 pre_configure() {
 	sed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.ac
diff --git a/srcpkgs/libmemcached/template b/srcpkgs/libmemcached/template
index c39630b669cd..7365c00db928 100644
--- a/srcpkgs/libmemcached/template
+++ b/srcpkgs/libmemcached/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://libmemcached.org/libMemcached.html"
 distfiles="http://launchpad.net/${pkgname}/1.0/${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=e22c0bb032fde08f53de9ffbc5a128233041d9f33b5de022c0978a2149885f82
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libmill/template b/srcpkgs/libmill/template
index 5bde0ee21208..5df89def696b 100644
--- a/srcpkgs/libmill/template
+++ b/srcpkgs/libmill/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://libmill.org/"
 distfiles="https://github.com/sustrik/libmill/archive/${version}.tar.gz"
 checksum=ff6903cd05f45c4cc050921d03201a93d2723ab59c480eb924f8f1ca8c6f0614
+patch_args=-Np0
 
 pre_configure() {
 	export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=?/}"
diff --git a/srcpkgs/libmilter/template b/srcpkgs/libmilter/template
index f51b61430ced..d5ca00bb6afb 100644
--- a/srcpkgs/libmilter/template
+++ b/srcpkgs/libmilter/template
@@ -12,6 +12,7 @@ license="Sendmail"
 homepage="https://www.milter.org/developers/api/"
 distfiles="ftp://ftp.mirrorservice.org/sites/ftp.sendmail.org/pub/${_pkgname}/${_pkgname}.${_version}.tar.gz"
 checksum=24f94b5fd76705f15897a78932a5f2439a32b1a2fdc35769bb1a5f5d9b4db439
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/libmirage/template b/srcpkgs/libmirage/template
index 283a27e223ca..c3c66f1cf3be 100644
--- a/srcpkgs/libmirage/template
+++ b/srcpkgs/libmirage/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://cdemu.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/cdemu/libmirage-${version}.tar.xz"
 checksum=d50d97e15f180f99fddcdf388b0d9fec073fb8fe080ba6c69cd3674214141139
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/libmowgli/template b/srcpkgs/libmowgli/template
index cf17648a4b75..80f8da745be8 100644
--- a/srcpkgs/libmowgli/template
+++ b/srcpkgs/libmowgli/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/atheme/libmowgli-2"
 distfiles="https://github.com/atheme/libmowgli-2/archive/v${version}.tar.gz"
 checksum=b7faab2fb9f46366a52b51443054a2ed4ecdd04774c65754bf807c5e9bdda477
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libmp4v2/template b/srcpkgs/libmp4v2/template
index 674b6ee304ad..ef8115e38575 100644
--- a/srcpkgs/libmp4v2/template
+++ b/srcpkgs/libmp4v2/template
@@ -11,6 +11,7 @@ homepage="http://code.google.com/p/mp4v2/"
 license="MPL-1.1"
 distfiles="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/${wrksrc}.tar.bz2"
 checksum=0319b9a60b667cf10ee0ec7505eb7bdc0a2e21ca7a93db96ec5bd758e3428338
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/libmpd/template b/srcpkgs/libmpd/template
index 608057b0232a..65647c6d7061 100644
--- a/srcpkgs/libmpd/template
+++ b/srcpkgs/libmpd/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://gmpc.wikia.com/wiki/Gnome_Music_Player_Client"
 distfiles="http://download.sarine.nl/Programs/gmpc/${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=fe20326b0d10641f71c4673fae637bf9222a96e1712f71f170fca2fc34bf7a83
+patch_args=-Np0
 
 libmpd-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libmspub/template b/srcpkgs/libmspub/template
index 5c96ba407069..c74bfdaf9b9c 100644
--- a/srcpkgs/libmspub/template
+++ b/srcpkgs/libmspub/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://cgit.freedesktop.org/libreoffice/libmspub/commit/"
 distfiles="https://dev-www.libreoffice.org/src/${pkgname}-${version}.tar.xz"
 checksum=ef36c1a1aabb2ba3b0bedaaafe717bf4480be2ba8de6f3894be5fd3702b013ba
+patch_args=-Np0
 
 libmspub-devel_package() {
 	depends="libmspub>=${version}_${revision} $makedepends"
diff --git a/srcpkgs/libmygpo-qt/template b/srcpkgs/libmygpo-qt/template
index 1014491ae241..676772f69a4d 100644
--- a/srcpkgs/libmygpo-qt/template
+++ b/srcpkgs/libmygpo-qt/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/gpodder/libmygpo-qt"
 distfiles="https://github.com/gpodder/libmygpo-qt/archive/${version}.tar.gz"
 checksum=2eab976efbbdd39bae1b436e7dcd2ddffd35241432094f29b69308840a938459
+patch_args=-Np0
 
 libmygpo-qt-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libmygui/template b/srcpkgs/libmygui/template
index 902ad67b0d58..30627cf63f85 100644
--- a/srcpkgs/libmygui/template
+++ b/srcpkgs/libmygui/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://mygui.info"
 distfiles="https://github.com/MyGUI/mygui/archive/MyGUI${version}.tar.gz"
 checksum=d1d5f294670ae71f7200ed4b30859018281d8cfd45d6a38d18b97a4aba604c42
+patch_args=-Np0
 
 libmygui-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libnet/template b/srcpkgs/libnet/template
index d38ed97b349e..5454c3b9258f 100644
--- a/srcpkgs/libnet/template
+++ b/srcpkgs/libnet/template
@@ -9,6 +9,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/sam-github/libnet"
 distfiles="https://github.com/sam-github/libnet/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=caa4868157d9e5f32e9c7eac9461efeff30cb28357f7f6bf07e73933fb4edaa7
+patch_args=-Np0
 
 libnet-devel_package() {
 	depends="${sourcepkg}-${version}_${revision}"
diff --git a/srcpkgs/libnetfilter_log/template b/srcpkgs/libnetfilter_log/template
index f2b85ead2ee6..d926f53b2784 100644
--- a/srcpkgs/libnetfilter_log/template
+++ b/srcpkgs/libnetfilter_log/template
@@ -11,6 +11,7 @@ homepage="http://www.netfilter.org/projects/libnetfilter_log/index.html"
 short_desc="A userspace library providing interface to packets that have been logged by the kernel packet filter"
 distfiles="http://www.netfilter.org/projects/${pkgname}/files/${pkgname}-${version}.tar.bz2"
 checksum=74e0fe75753dba3ac114531b5e73240452c789a3f3adccf5c51217da1d933b21
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's/u_int\([0-9]*\)_t/uint\1_t/' utils/* src/* include/libnetfilter_log/*
diff --git a/srcpkgs/libnfc/template b/srcpkgs/libnfc/template
index 7737dad56902..96841d882d66 100644
--- a/srcpkgs/libnfc/template
+++ b/srcpkgs/libnfc/template
@@ -13,6 +13,7 @@ homepage="http://nfc-tools.org/"
 distfiles="https://github.com/nfc-tools/libnfc/archive/libnfc-${version}.tar.gz"
 checksum=0ab7d9b41442e7edc2af7c54630396edc73ce51128aa28a5c6e4135dc5595495
 CFLAGS="-D_GNU_SOURCE"
+patch_args=-Np0
 
 pre_configure() {
 	sed -i "s|MODE=\"0664\", GROUP=\"plugdev\"|TAG+=\"uaccess\"|g" contrib/udev/93-pn53x.rules
diff --git a/srcpkgs/libnfs/template b/srcpkgs/libnfs/template
index f1e27dd15f57..792a882d68c5 100644
--- a/srcpkgs/libnfs/template
+++ b/srcpkgs/libnfs/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/sahlberg/libnfs"
 distfiles="https://github.com/sahlberg/libnfs/archive/${pkgname}-${version}.tar.gz"
 checksum=6ee77e9fe220e2d3e3b1f53cfea04fb319828cc7dbb97dd9df09e46e901d797d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libnih/template b/srcpkgs/libnih/template
index 52ebfddc9b7a..ae28525b1897 100644
--- a/srcpkgs/libnih/template
+++ b/srcpkgs/libnih/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/keybuk/${pkgname}"
 distfiles="${homepage}/archive/${_commit}.tar.gz"
 checksum=bd1ce78c9e4808fd02e06edaf581eb2b70fa43d7baae051848dfdbaf5b4d1a1c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libnl/template b/srcpkgs/libnl/template
index ab8c03352d7d..6b2f6cbe3941 100644
--- a/srcpkgs/libnl/template
+++ b/srcpkgs/libnl/template
@@ -9,6 +9,7 @@ license="LGPL-2.1-only"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="http://www.infradead.org/~tgr/libnl/files/libnl-${version}.tar.gz"
 checksum=4f80c21fe5bbcdde6e72b59b4f98306063a41421f909887c34e58d93e746d063
+patch_args=-Np0
 
 libnl-devel_package() {
 	depends="libnl>=${version}_${revision}"
diff --git a/srcpkgs/libogre/template b/srcpkgs/libogre/template
index df60f7b4f542..e36217268348 100644
--- a/srcpkgs/libogre/template
+++ b/srcpkgs/libogre/template
@@ -17,6 +17,7 @@ license="MIT"
 homepage="http://www.ogre3d.org"
 distfiles="https://github.com/OGRECave/ogre/archive/v$version.tar.gz"
 checksum=028e7d0bbfce8fd254e1102666b07b7cbb9379321e88885d82feee5e061342aa
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
diff --git a/srcpkgs/libomxil-bellagio/template b/srcpkgs/libomxil-bellagio/template
index 6b120a2a87c4..c6f3c9e38cc9 100644
--- a/srcpkgs/libomxil-bellagio/template
+++ b/srcpkgs/libomxil-bellagio/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="http://omxil.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/omxil/omxil/Bellagio%20${version}/${pkgname}-${version}.tar.gz"
 checksum=593c0729c8ef8c1467b3bfefcf355ec19a46dd92e31bfc280e17d96b0934d74c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libopenglrecorder/template b/srcpkgs/libopenglrecorder/template
index b0b06ee3797e..241bc09971cd 100644
--- a/srcpkgs/libopenglrecorder/template
+++ b/srcpkgs/libopenglrecorder/template
@@ -11,6 +11,7 @@ license="3-clause-BSD"
 homepage="https://github.com/Benau/libopenglrecorder"
 distfiles="https://github.com/Benau/libopenglrecorder/archive/v${version}.tar.gz"
 checksum=a90a99c23f868636f77003a8dc6ffe6c3699fc2759c47df5dbd44ff8b42d2e4f
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libopenshot-audio/template b/srcpkgs/libopenshot-audio/template
index 56c330eafcf1..6df0d294f841 100644
--- a/srcpkgs/libopenshot-audio/template
+++ b/srcpkgs/libopenshot-audio/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/OpenShot/libopenshot-audio"
 distfiles="https://github.com/OpenShot/libopenshot-audio/archive/v${version}.tar.gz"
 checksum=937ff4f1c2dfb8ab5d56ad85beacaa29dfd5a79af0d9cf647386034fe9882309
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/libosinfo/template b/srcpkgs/libosinfo/template
index e9210c52f08f..52283fceeca6 100644
--- a/srcpkgs/libosinfo/template
+++ b/srcpkgs/libosinfo/template
@@ -20,6 +20,7 @@ homepage="https://libosinfo.org/"
 changelog="https://gitlab.com/libosinfo/libosinfo/raw/master/NEWS"
 distfiles="https://gitlab.com/libosinfo/libosinfo/-/archive/v${version}/libosinfo-v${version}.tar.gz"
 checksum=7270d7a54f4ea46b21163aa1704caf69a5e8ed980434dac6b9951588cae62ea7
+patch_args=-Np0
 
 build_options="gtk_doc gir vala"
 desc_option_gtk_doc="Build GTK API docs"
diff --git a/srcpkgs/libostree/template b/srcpkgs/libostree/template
index 96ce2464312d..bb03d1c7c31d 100644
--- a/srcpkgs/libostree/template
+++ b/srcpkgs/libostree/template
@@ -20,6 +20,7 @@ homepage="https://ostree.readthedocs.io/en/latest/"
 changelog="https://github.com/ostreedev/ostree/releases"
 distfiles="https://github.com/ostreedev/ostree/releases/download/v${version}/libostree-${version}.tar.xz"
 checksum=854008e7c71d44f6b3670f0e9b8500db0f08ff8b297d0b30a7cb9a66f34c5d7c
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/libowfat/template b/srcpkgs/libowfat/template
index 95c7e9a812bf..3ab028281e03 100644
--- a/srcpkgs/libowfat/template
+++ b/srcpkgs/libowfat/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="https://www.fefe.de/libowfat/"
 distfiles="https://www.fefe.de/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=f4b9b3d9922dc25bc93adedf9e9ff8ddbebaf623f14c8e7a5f2301bfef7998c1
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libportal/template b/srcpkgs/libportal/template
index 48211c3767e1..9dee4f8c0d2c 100644
--- a/srcpkgs/libportal/template
+++ b/srcpkgs/libportal/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-or-later"
 homepage="https://github.com/flatpak/libportal"
 distfiles="https://github.com/flatpak/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.xz"
 checksum=fd35d66357169e63e33ef46c43fdf22ddc07dbd960ec3462b58ca9ef15a65bd7
+patch_args=-Np0
 
 build_options="gtk_doc"
 
diff --git a/srcpkgs/libproxy/template b/srcpkgs/libproxy/template
index d6103007032e..c678d6e8383e 100644
--- a/srcpkgs/libproxy/template
+++ b/srcpkgs/libproxy/template
@@ -13,6 +13,7 @@ homepage="http://github.com/libproxy/libproxy"
 license="LGPL-2.1"
 distfiles="https://github.com/libproxy/libproxy/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=18f58b0a0043b6881774187427ead158d310127fc46a1c668ad6d207fb28b4e0
+patch_args=-Np0
 
 libproxy-devel_package() {
 	depends="libproxy>=${version}_${revision}"
diff --git a/srcpkgs/libpurple-steam/template b/srcpkgs/libpurple-steam/template
index 06c8cc833682..844f7e3b7137 100644
--- a/srcpkgs/libpurple-steam/template
+++ b/srcpkgs/libpurple-steam/template
@@ -1,4 +1,5 @@
 # Template file for 'libpurple-steam'
+patch_args=-Np0
 
 pkgname="libpurple-steam"
 version="1.6.1"
diff --git a/srcpkgs/libratbag/template b/srcpkgs/libratbag/template
index 370d670157f6..b1acd757fa33 100644
--- a/srcpkgs/libratbag/template
+++ b/srcpkgs/libratbag/template
@@ -16,6 +16,7 @@ license="MIT"
 homepage="https://github.com/libratbag/libratbag"
 distfiles="https://github.com/libratbag/libratbag/archive/v${version}.tar.gz"
 checksum=9e6ad8d54daef8cc0f44784bdde9bf5a3879d8a66d11e0b990b87266f81f7329
+patch_args=-Np0
 
 post_install() {
 	vsv ratbagd
diff --git a/srcpkgs/libreadline8/template b/srcpkgs/libreadline8/template
index dbac03c6764b..44245746df7e 100644
--- a/srcpkgs/libreadline8/template
+++ b/srcpkgs/libreadline8/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://tiswww.cwru.edu/php/chet/readline/rltop.html"
 distfiles="${GNU_SITE}/readline/readline-${_dist_ver}.tar.gz"
 checksum=f8ceb4ee131e3232226a17f51b164afc46cd0b9e6cef344be87c65962cb82b02
+patch_args=-Np0
 
 post_patch() {
 	cd ${wrksrc}
diff --git a/srcpkgs/libreoffice/template b/srcpkgs/libreoffice/template
index f08066f12966..2c19e2ec70dc 100644
--- a/srcpkgs/libreoffice/template
+++ b/srcpkgs/libreoffice/template
@@ -5,6 +5,7 @@ revision=1
 build_style=meta
 make_build_target="build-nocheck"
 nocross="Several dependencies are nocross=yes"
+patch_args=-Np0
 
 hostmakedepends="automake flex git gperf hyphen icu libtool openldap which gettext xz
  perl-Archive-Zip pkg-config qt5-qmake sane ucpp unzip wget zip python3-setuptools
diff --git a/srcpkgs/libretro-mupen64plus-rpi/template b/srcpkgs/libretro-mupen64plus-rpi/template
index 47752ab573e9..2bf1f3af3e60 100644
--- a/srcpkgs/libretro-mupen64plus-rpi/template
+++ b/srcpkgs/libretro-mupen64plus-rpi/template
@@ -14,6 +14,7 @@ homepage="http://www.libretro.com/"
 distfiles="https://github.com/libretro/mupen64plus-libretro/archive/${_gitrev}.tar.gz"
 checksum=947abfb1d5ff34d6b22fecfb2df02bd3759fde3f4a0e5d238f65ec7e97d964d4
 conflicts="ĺibretro-mupen64plus>=0"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libretro-mupen64plus/template b/srcpkgs/libretro-mupen64plus/template
index 81adcec5d655..66259516c750 100644
--- a/srcpkgs/libretro-mupen64plus/template
+++ b/srcpkgs/libretro-mupen64plus/template
@@ -13,6 +13,7 @@ homepage="http://www.libretro.com/"
 distfiles="https://github.com/libretro/mupen64plus-libretro/archive/${_gitrev}.tar.gz"
 checksum=947abfb1d5ff34d6b22fecfb2df02bd3759fde3f4a0e5d238f65ec7e97d964d4
 conflicts="ĺibretro-mupen64plus-rpi>=0"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*) hostmakedepends+=" nasm";;
diff --git a/srcpkgs/librtas/template b/srcpkgs/librtas/template
index 65951b25fe13..f7d9c0411d49 100644
--- a/srcpkgs/librtas/template
+++ b/srcpkgs/librtas/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/ibm-power-utilities/librtas"
 distfiles="https://github.com/ibm-power-utilities/librtas/archive/v${version}.tar.gz"
 checksum=b47b2a6f140347ac265e2c66ddf68293f6cdcc7c0c9a78c6e21ff52846465415
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/libscrypt/template b/srcpkgs/libscrypt/template
index f3777bab08e8..debdb6e9c44b 100644
--- a/srcpkgs/libscrypt/template
+++ b/srcpkgs/libscrypt/template
@@ -9,6 +9,7 @@ license="2-clause-BSD"
 homepage="https://github.com/technion/"
 distfiles="https://github.com/technion/${pkgname}/archive/v${version}.tar.gz"
 checksum=68e377e79745c10d489b759b970e52d819dbb80dd8ca61f8c975185df3f457d3
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libsearpc/template b/srcpkgs/libsearpc/template
index 22fbb7987d06..8d527de8c27c 100644
--- a/srcpkgs/libsearpc/template
+++ b/srcpkgs/libsearpc/template
@@ -17,6 +17,7 @@ homepage="https://seafile.com"
 distfiles="https://github.com/haiwen/libsearpc/archive/${_gitrev}.tar.gz"
 checksum=2a58894cefbc1d7398581fc58103261688c93a9cf63f11afc5e92142ed948c00
 python_version=3
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/libselinux/template b/srcpkgs/libselinux/template
index fdd8d639932e..ec31b411ef3f 100644
--- a/srcpkgs/libselinux/template
+++ b/srcpkgs/libselinux/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://www.nsa.gov/what-we-do/research/selinux/"
 distfiles="https://github.com/SELinuxProject/selinux/releases/download/20191204/${pkgname}-${version}.tar.gz"
 checksum=2ea2b30f671dae9d6b1391cbe8fb2ce5d36a3ee4fb1cd3c32f0d933c31b82433
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" musl-fts-devel"
diff --git a/srcpkgs/libsigrokdecode/template b/srcpkgs/libsigrokdecode/template
index 8be3b7363730..a06923caeec7 100644
--- a/srcpkgs/libsigrokdecode/template
+++ b/srcpkgs/libsigrokdecode/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://sigrok.org/"
 distfiles="https://sigrok.org/download/source/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c50814aa6743cd8c4e88c84a0cdd8889d883c3be122289be90c63d7d67883fc0
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf
diff --git a/srcpkgs/libsigsegv/template b/srcpkgs/libsigsegv/template
index 13352c58bc46..977989a1db50 100644
--- a/srcpkgs/libsigsegv/template
+++ b/srcpkgs/libsigsegv/template
@@ -10,6 +10,7 @@ homepage="https://www.gnu.org/software/libsigsegv/"
 distfiles="https://ftpmirror.gnu.org/libsigsegv/libsigsegv-${version}.tar.gz"
 checksum=3ae1af359eebaa4ffc5896a1aee3568c052c99879316a1ab57f8fe1789c390b6
 configure_args="--enable-shared"
+patch_args=-Np0
 
 post_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/libsmbios/template b/srcpkgs/libsmbios/template
index 998437288504..fbd3633b480c 100644
--- a/srcpkgs/libsmbios/template
+++ b/srcpkgs/libsmbios/template
@@ -16,6 +16,7 @@ checksum=36c36a0f6b59190d6b4fef11696886e4511091929a5eb7ae7cf5fea0c32d3f58
 # explicitly list the subpackages to make sure they are installed in the
 # right order:
 subpackages="libsmbios-devel python3-libsmbios libsmbios-utils"
+patch_args=-Np0
 
 archs="i686* x86_64*"
 
diff --git a/srcpkgs/libspnav/template b/srcpkgs/libspnav/template
index df35072b2404..af3966aa1fd7 100644
--- a/srcpkgs/libspnav/template
+++ b/srcpkgs/libspnav/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://spacenav.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/spacenav/${pkgname}-${version}.tar.gz"
 checksum=7ae4d7bb7f6a5dda28b487891e01accc856311440f582299760dace6ee5f1f93
+patch_args=-Np0
 
 do_build() {
 	make CC="${CC}" AR="${AR}"
diff --git a/srcpkgs/libssh/template b/srcpkgs/libssh/template
index 9b57379bfc88..9c3194a779cf 100644
--- a/srcpkgs/libssh/template
+++ b/srcpkgs/libssh/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://www.libssh.org/"
 distfiles="https://git.libssh.org/projects/libssh.git/snapshot/${pkgname}-${version}.tar.gz"
 checksum=df65d6054554e8ff5458628808ce8d68b928175f4fefa1c833582b9568491e64
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args="-DHAVE_GLOB=0" ;;
diff --git a/srcpkgs/libtecla/template b/srcpkgs/libtecla/template
index 7055a50a638a..ee59c9c33667 100644
--- a/srcpkgs/libtecla/template
+++ b/srcpkgs/libtecla/template
@@ -11,6 +11,7 @@ license="MIT/X11"
 homepage="http://www.astro.caltech.edu/~mcs/tecla"
 distfiles="${homepage}/${pkgname}-${version}.tar.gz"
 checksum=f2757cc55040859fcf8f59a0b7b26e0184a22bece44ed9568a4534a478c1ee1a
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.TERMS LICENSE
diff --git a/srcpkgs/libticables2/template b/srcpkgs/libticables2/template
index 17f06ace976a..947288493728 100644
--- a/srcpkgs/libticables2/template
+++ b/srcpkgs/libticables2/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.ticalc.org"
 distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${_tilpver}/${pkgname}-${version}.tar.bz2"
 checksum=0c6fb6516e72ccab081ddb3aecceff694ed93aec689ddd2edba9c7c7406c4522
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" gettext-devel"
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index b9972df70341..1eafc55f90bb 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.gnu.org/software/libtool"
 distfiles="${GNU_SITE}/libtool/$pkgname-$version.tar.xz"
 checksum=7c87a8c2c8c0fc9cd5019e402bed4292462d00a718a7cd5f11218153bf28b26f
+patch_args=-Np0
 
 pre_configure() {
 	touch aclocal.m4 libltdl/aclocal.m4 Makefile.am libltdl/Makefile.am Makefile.in libltdl/Makefile.in
diff --git a/srcpkgs/libtorrent/template b/srcpkgs/libtorrent/template
index cadf0f5bb1dc..c358b89ebffe 100644
--- a/srcpkgs/libtorrent/template
+++ b/srcpkgs/libtorrent/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/rakshasa/libtorrent"
 distfiles="https://github.com/rakshasa/libtorrent/archive/v${version}.tar.gz"
 checksum=0f6c2e7ffd3a1723ab47fdac785ec40f85c0a5b5a42c1d002272205b988be722
+patch_args=-Np0
 
 # https://github.com/rakshasa/rtorrent/issues/156
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/libu2f-host/template b/srcpkgs/libu2f-host/template
index c2cd5b754dca..e8a14e5d4f39 100644
--- a/srcpkgs/libu2f-host/template
+++ b/srcpkgs/libu2f-host/template
@@ -15,6 +15,7 @@ homepage="https://developers.yubico.com/libu2f-host/"
 #changelog="https://raw.githubusercontent.com/Yubico/libu2f-host/master/NEWS"
 distfiles="https://github.com/Yubico/libu2f-host/archive/libu2f-host-${version}.tar.gz"
 checksum=45937c6c04349f865d9f047d3a68cc50ea24e9085d18ac2c7d31fa38eb749303
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libu2f-server/template b/srcpkgs/libu2f-server/template
index 661fc934531f..334b9bbe754a 100644
--- a/srcpkgs/libu2f-server/template
+++ b/srcpkgs/libu2f-server/template
@@ -12,6 +12,7 @@ license="BSD"
 homepage="https://developers.yubico.com/libu2f-server/"
 distfiles="https://github.com/Yubico/libu2f-server/archive/libu2f-server-${version}.tar.gz"
 checksum=6551109e692c9c4fea61e99f1cd8377e8e54e3033e421cc191da6d673311c860
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libucl/template b/srcpkgs/libucl/template
index 04b2608684d2..d5440d9b9606 100644
--- a/srcpkgs/libucl/template
+++ b/srcpkgs/libucl/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/vstakhov/libucl"
 distfiles="https://github.com/vstakhov/libucl/archive/${version}.tar.gz"
 checksum=a6397e179672f0e8171a0f9a2cfc37e01432b357fd748b13f4394436689d24ef
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/libuninum/template b/srcpkgs/libuninum/template
index e66a1df67ece..d2278fa24568 100644
--- a/srcpkgs/libuninum/template
+++ b/srcpkgs/libuninum/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-only"
 homepage="http://billposer.org/Software/libuninum.html"
 distfiles="http://billposer.org/Software/Downloads/libuninum-${version}.tar.bz2"
 checksum=e704983c3c00e9b76bd836b8b83ce31bfe4eb1752eee8be123cf97c1275076ea
+patch_args=-Np0
 
 libuninum-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libunique/template b/srcpkgs/libunique/template
index db488533acbf..316b811bfb7e 100644
--- a/srcpkgs/libunique/template
+++ b/srcpkgs/libunique/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Attic/LibUnique"
 distfiles="${GNOME_SITE}/${pkgname}/3.0/${pkgname}-${version}.tar.bz2"
 checksum=50269a87c7aabf1e25f01b3bbb280133138ffd7b6776289894c614a4b6ca968d
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/libunwind/template b/srcpkgs/libunwind/template
index d4819ce54acd..808d89e49847 100644
--- a/srcpkgs/libunwind/template
+++ b/srcpkgs/libunwind/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://www.nongnu.org/libunwind/"
 distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version/rc/-rc}.tar.gz"
 checksum=90337653d92d4a13de590781371c604f9031cdb50520366aa1e3a91e1efb1017
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libusb-compat/template b/srcpkgs/libusb-compat/template
index 016d5753f1d6..05585a0ad57a 100644
--- a/srcpkgs/libusb-compat/template
+++ b/srcpkgs/libusb-compat/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="http://libusb.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/libusb/$pkgname-$version.tar.bz2"
 checksum=404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a
+patch_args=-Np0
 
 libusb-compat-devel_package() {
 	depends="libusb-devel ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libusb/template b/srcpkgs/libusb/template
index 8c5ff6054eed..6ec291f0778d 100644
--- a/srcpkgs/libusb/template
+++ b/srcpkgs/libusb/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://libusb.info"
 distfiles="https://github.com/libusb/libusb/releases/download/v${version}/libusb-${version}.tar.bz2"
 checksum=7efd2685f7b327326dcfb85cee426d9b871fd70e22caa15bb68d595ce2a2b12a
+patch_args=-Np0
 
 libusb-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libusbmuxd/template b/srcpkgs/libusbmuxd/template
index e3ae03e51b9c..192aa8b4a0dc 100644
--- a/srcpkgs/libusbmuxd/template
+++ b/srcpkgs/libusbmuxd/template
@@ -12,6 +12,7 @@ homepage="https://libimobiledevice.org"
 changelog="https://raw.githubusercontent.com/libimobiledevice/libusbmuxd/master/NEWS"
 distfiles="https://github.com/libimobiledevice/libusbmuxd/archive/${version}.tar.gz"
 checksum=8ae3e1d9340177f8f3a785be276435869363de79f491d05d8a84a59efc8a8fdc
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libuv/template b/srcpkgs/libuv/template
index 76a36863f4b9..24938fe4bc0e 100644
--- a/srcpkgs/libuv/template
+++ b/srcpkgs/libuv/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/libuv/libuv/archive/v${version}.tar.gz"
 checksum=6cfeb5f4bab271462b4a2cc77d4ecec847fdbdc26b72019c27ae21509e6f94fa
 # the tests fail when run as root and as such break in the CI containers
 make_check="extended"
+patch_args=-Np0
 
 LDFLAGS="-pthread"
 
diff --git a/srcpkgs/libvdpau/template b/srcpkgs/libvdpau/template
index 8b1c817cfd07..81fa6d314465 100644
--- a/srcpkgs/libvdpau/template
+++ b/srcpkgs/libvdpau/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://freedesktop.org/wiki/Software/VDPAU/"
 distfiles="https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/${version}/libvdpau-${version}.tar.gz"
 checksum=240dd8f9ec08de707529917677827ba12e13b9fc299eeb3af13ea05e7fc74aba
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libvidstab/template b/srcpkgs/libvidstab/template
index 6d28468873b5..acd85fc894a0 100644
--- a/srcpkgs/libvidstab/template
+++ b/srcpkgs/libvidstab/template
@@ -11,6 +11,7 @@ license="GPL-2"
 homepage="http://public.hronopik.de/vid.stab/"
 distfiles="https://github.com/georgmartius/vid.stab/archive/v${version}.tar.gz"
 checksum=14d2a053e56edad4f397be0cb3ef8eb1ec3150404ce99a426c4eb641861dc0bb
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e 's/include (FindSSE)//' CMakeLists.txt
diff --git a/srcpkgs/libvirt-glib/template b/srcpkgs/libvirt-glib/template
index 032188df7f73..568e921d9902 100644
--- a/srcpkgs/libvirt-glib/template
+++ b/srcpkgs/libvirt-glib/template
@@ -16,6 +16,7 @@ homepage="https://libvirt.org"
 distfiles="http://libvirt.org/sources/glib/${pkgname}-${version}.tar.xz"
 checksum=8423f7069daa476307321d1c11e2ecc285340cd32ca9fc05207762843edeacbd
 replaces="libvirt-glib-python>=0"
+patch_args=-Np0
 
 build_options="doc gir vala"
 build_options_default="gir vala"
diff --git a/srcpkgs/libwmf/template b/srcpkgs/libwmf/template
index 938d07c5e6b4..c427559b43c9 100644
--- a/srcpkgs/libwmf/template
+++ b/srcpkgs/libwmf/template
@@ -17,6 +17,7 @@ homepage="http://wvware.sourceforge.net/libwmf.html"
 license="LGPL-2.1"
 distfiles="${SOURCEFORGE_SITE}/wvware/${pkgname}-${version}.tar.gz"
 checksum=5b345c69220545d003ad52bfd035d5d6f4f075e65204114a9e875e84895a7cf8
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libxdg-basedir/template b/srcpkgs/libxdg-basedir/template
index f9cc8880c438..f572dd6294c7 100644
--- a/srcpkgs/libxdg-basedir/template
+++ b/srcpkgs/libxdg-basedir/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/devnev/libxdg-basedir"
 distfiles="https://github.com/devnev/libxdg-basedir/archive/libxdg-basedir-${version}.tar.gz"
 checksum=1c2b0032a539033313b5be2e48ddd0ae94c84faf21d93956d53562eef4614868
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libxkbcommon/template b/srcpkgs/libxkbcommon/template
index 3cfefeb295d2..26668752a01f 100644
--- a/srcpkgs/libxkbcommon/template
+++ b/srcpkgs/libxkbcommon/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="https://xkbcommon.org/"
 distfiles="https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-${version}.tar.gz"
 checksum=e1b79838256549d72f42c824f720b4f14603374cfbe5587942e35a0cbb13ff9e
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libxml2-python/template b/srcpkgs/libxml2-python/template
index 4208519dac3e..dca8e06333d5 100644
--- a/srcpkgs/libxml2-python/template
+++ b/srcpkgs/libxml2-python/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.xmlsoft.org/"
 distfiles="http://xmlsoft.org/sources/libxml2-${version}.tar.gz"
 checksum=aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f
+patch_args=-Np0
 
 post_patch() {
 	if [ "${CROSS_BUILD}" ]; then
diff --git a/srcpkgs/libxml2/template b/srcpkgs/libxml2/template
index c334f505ed0c..b45761f66b27 100644
--- a/srcpkgs/libxml2/template
+++ b/srcpkgs/libxml2/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="http://www.xmlsoft.org/"
 distfiles="http://xmlsoft.org/sources/${pkgname}-${version}.tar.gz"
 checksum=aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libxo/template b/srcpkgs/libxo/template
index fb0ae8cb85ca..0990f737af5b 100644
--- a/srcpkgs/libxo/template
+++ b/srcpkgs/libxo/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="https://juniper.github.io/libxo/libxo-manual.html"
 distfiles="https://github.com/Juniper/libxo/releases/download/${version}/libxo-${version}.tar.gz"
 checksum=aa842d9374bc0c640d9526abdeb6f1dc75c1a14e892eafd3c9e0ee2e8dfc1c43
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	*-musl)
diff --git a/srcpkgs/libzim/template b/srcpkgs/libzim/template
index fe3c53109803..bac5a114bbea 100644
--- a/srcpkgs/libzim/template
+++ b/srcpkgs/libzim/template
@@ -15,6 +15,7 @@ changelog="https://github.com/openzim/libzim/blob/${version}/ChangeLog"
 distfiles="https://github.com/openzim/libzim/archive/${version}.tar.gz"
 checksum=984d2f3881c507c9f0212dc2bc1b808d25cdeef6a62043f9211fcb78a231a986
 replaces="libzim-tools>=0"
+patch_args=-Np0
 
 build_options="xapian zlib zstd"
 build_options_default="xapian zlib zstd"
diff --git a/srcpkgs/lightdm-webkit2-greeter/template b/srcpkgs/lightdm-webkit2-greeter/template
index da5786768de8..376d8eb4c661 100644
--- a/srcpkgs/lightdm-webkit2-greeter/template
+++ b/srcpkgs/lightdm-webkit2-greeter/template
@@ -15,6 +15,7 @@ homepage="https://github.com/Antergos/web-greeter"
 distfiles="https://github.com/Antergos/web-greeter/archive/${version}.tar.gz"
 checksum=f3223db35d0efaae76b2157f312dd10979c133f5a85add8fc75fd66ecb3186e3
 conf_files="/etc/lightdm/lightdm-webkit2-greeter.conf"
+patch_args=-Np0
 
 post_extract() {
 	mv themes/antergos themes/void
diff --git a/srcpkgs/lightdm/template b/srcpkgs/lightdm/template
index b2fed5ac3c6a..cf14f96c4bf0 100644
--- a/srcpkgs/lightdm/template
+++ b/srcpkgs/lightdm/template
@@ -14,6 +14,7 @@ homepage="https://github.com/CanonicalLtd/lightdm"
 changelog="https://raw.githubusercontent.com/CanonicalLtd/lightdm/master/NEWS"
 distfiles="https://github.com/CanonicalLtd/lightdm/releases/download/${version}/lightdm-${version}.tar.xz"
 checksum=a118779650a3a5b20f05d53c4f9e377b484fbc1810a6b0914a60840d9a581f95
+patch_args=-Np0
 
 hostmakedepends="pkg-config intltool itstool $(vopt_if gir 'gobject-introspection vala')"
 makedepends="dbus-glib-devel libxklavier-devel libxml2-devel
diff --git a/srcpkgs/lighttpd/template b/srcpkgs/lighttpd/template
index 7ae82aecfc33..d52c74622bc0 100644
--- a/srcpkgs/lighttpd/template
+++ b/srcpkgs/lighttpd/template
@@ -21,6 +21,7 @@ license="BSD-3-Clause"
 homepage="https://lighttpd.net"
 distfiles="https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${version}.tar.xz"
 checksum=fb953db273daef08edb6e202556cae8a3d07eed6081c96bd9903db957d1084d5
+patch_args=-Np0
 
 conf_files="/etc/lighttpd/lighttpd.conf"
 system_accounts="_${pkgname}"
diff --git a/srcpkgs/lightzone/template b/srcpkgs/lightzone/template
index 13242f01cc77..ca214c932783 100644
--- a/srcpkgs/lightzone/template
+++ b/srcpkgs/lightzone/template
@@ -19,6 +19,7 @@ skip_extraction="ivy-${_ivy_version}.jar"
 # JNI binaries are not PIE
 nopie=yes
 replaces="lightzone-bin>=0"
+patch_args=-Np0
 
 do_build() {
 	mkdir -p lightcrafts/lib
diff --git a/srcpkgs/lilo/template b/srcpkgs/lilo/template
index f42a9eb5f5ba..bc8f1699d587 100644
--- a/srcpkgs/lilo/template
+++ b/srcpkgs/lilo/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://www.joonet.de/lilo"
 distfiles="${DEBIAN_SITE}/main/l/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=e158f19de4560c935ebe0507c21b79bff17618b9230d8076fe8c5fff9fdbd5b1
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/lilyterm/template b/srcpkgs/lilyterm/template
index 31bc2ad9dc05..deadaa80f37e 100644
--- a/srcpkgs/lilyterm/template
+++ b/srcpkgs/lilyterm/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/Tetralet/LilyTerm/archive/$_githash.tar.gz"
 conf_files="/etc/lilyterm.conf"
 checksum=e777122cb4db0c75b893368aa5a3ae7de1bdfe27e1efb8fad8f9c19acb0a802e
 CFLAGS="-Wno-deprecated-declarations"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e '/LDFLAGS.*BINARY/s/$/ -lX11/' \
diff --git a/srcpkgs/linphone-desktop/template b/srcpkgs/linphone-desktop/template
index 3991291c0b7f..5526b11c727b 100644
--- a/srcpkgs/linphone-desktop/template
+++ b/srcpkgs/linphone-desktop/template
@@ -19,6 +19,7 @@ checksum=a9c520851ec40ebd6bc28b5ebc0e4d2b5f62ef3b53e5d60bb241c0b2bd56ad62
 replaces="linphone-gui>=0"
 CFLAGS="-DLINPHONE_QT_GIT_VERSION=\\\"$version\\\""
 CXXFLAGS="-DLINPHONE_QT_GIT_VERSION=\\\"$version\\\""
+patch_args=-Np0
 
 linphone-gui_package() {
 	short_desc+=" - (transitional dummy package)"
diff --git a/srcpkgs/linssid/template b/srcpkgs/linssid/template
index 3347f193c3e7..6cfe9177df4c 100644
--- a/srcpkgs/linssid/template
+++ b/srcpkgs/linssid/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="https://sourceforge.net/projects/linssid/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=57301ee93f708f2512316668bf4e718502f37f21a5e93b68fc604a9032e3e49c
+patch_args=-Np0
 
 pre_configure() {
 	sed -e "s%/usr/include%${XBPS_CROSS_BASE}&%g" -i linssid-app/linssid-app.pro
diff --git a/srcpkgs/linux-tools/template b/srcpkgs/linux-tools/template
index f28f2b17ac19..a57726ab0076 100644
--- a/srcpkgs/linux-tools/template
+++ b/srcpkgs/linux-tools/template
@@ -18,6 +18,7 @@ homepage="https://www.kernel.org"
 distfiles="${KERNEL_SITE}/kernel/v5.x/linux-${version}.tar.xz"
 checksum=904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
 python_version=3
+patch_args=-Np0
 
 subpackages="cpupower freefall libcpupower libcpupower-devel libusbip libusbip-devel perf tmon usbip"
 
diff --git a/srcpkgs/linux-vt-setcolors/template b/srcpkgs/linux-vt-setcolors/template
index fa3f7681b75b..e46c87d3c50a 100644
--- a/srcpkgs/linux-vt-setcolors/template
+++ b/srcpkgs/linux-vt-setcolors/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/EvanPurkhiser/linux-vt-setcolors"
 distfiles="https://github.com/EvanPurkhiser/linux-vt-setcolors/archive/v${version}.tar.gz"
 checksum=ccad9aac5732faab749e8f6f6b40746ce44afec5633374aa77c8e3ac2a8eef42
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/linux4.4/template b/srcpkgs/linux4.4/template
index db6cf3d38e5f..152619d3ebf2 100644
--- a/srcpkgs/linux4.4/template
+++ b/srcpkgs/linux4.4/template
@@ -13,6 +13,7 @@ checksum="401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2
  7fe0edc77e6ba8d41035488402a2f05c58a64c101cb5556ea0f6e229dc306eed"
 skip_extraction="patch-${version}.xz"
 python_version=2 #unverified
+patch_args=-Np0
 
 nocross=yes
 nodebug=yes
diff --git a/srcpkgs/liquid-dsp/template b/srcpkgs/liquid-dsp/template
index 432adac62cf7..aec6f7222b9b 100644
--- a/srcpkgs/liquid-dsp/template
+++ b/srcpkgs/liquid-dsp/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://liquidsdr.org/"
 distfiles="https://github.com/jgaeddert/liquid-dsp/archive/v${version}.tar.gz"
 checksum=e3f66ce72a3b5d74eea5ccffb049c62c422c91b0ab92d6dbbef21af3c3bfec73
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/liquidwar/template b/srcpkgs/liquidwar/template
index 69bc87d1b1a7..5ef7aa9a4964 100644
--- a/srcpkgs/liquidwar/template
+++ b/srcpkgs/liquidwar/template
@@ -15,6 +15,7 @@ homepage="http://www.ufoot.org/liquidwar"
 distfiles="http://www.ufoot.org/download/${pkgname}/v5/${version}/${pkgname}-${version}.tar.gz"
 checksum=dad0aa84dd416cad055421ed9b40df39efae78d3df759c0583c64c54f7f2ff5f
 nocross="run build artifarts"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/litecoin/template b/srcpkgs/litecoin/template
index fc91bb89f120..3837c269d323 100644
--- a/srcpkgs/litecoin/template
+++ b/srcpkgs/litecoin/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.litecoin.org/"
 distfiles="https://github.com/litecoin-project/litecoin/archive/v${version}.tar.gz"
 checksum=2d67cba11adc5890b9698ccddeb68dd3c2ff6af19bf3ed0f1c719348b914042f
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools protobuf"
diff --git a/srcpkgs/llvm11/template b/srcpkgs/llvm11/template
index 6204f1e8e369..98b0af1bd19c 100644
--- a/srcpkgs/llvm11/template
+++ b/srcpkgs/llvm11/template
@@ -26,6 +26,7 @@ checksum="
  913f68c898dfb4a03b397c5e11c6a2f39d0f22ed7665c9cefa87a34423a72469"
 lib32disabled=yes
 python_version=3
+patch_args=-Np0
 
 post_patch() {
 	# patches
diff --git a/srcpkgs/llvm12/template b/srcpkgs/llvm12/template
index 38937f68564f..c4ed10574d23 100644
--- a/srcpkgs/llvm12/template
+++ b/srcpkgs/llvm12/template
@@ -56,6 +56,7 @@ checksum="
  eb1b7022a247332114985ed155a8fb632c28ce7c35a476e2c0caf865150f167d"
 lib32disabled=yes
 python_version=3
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" -DLIBCXX_HAS_MUSL_LIBC=YES"
diff --git a/srcpkgs/lmdb/template b/srcpkgs/lmdb/template
index 14509699fc5e..f2900a390a98 100644
--- a/srcpkgs/lmdb/template
+++ b/srcpkgs/lmdb/template
@@ -9,6 +9,7 @@ license="OLDAP-2.8"
 homepage="http://symas.com/mdb/"
 distfiles="https://github.com/LMDB/lmdb/archive/LMDB_${version}.tar.gz"
 checksum=22054926b426c66d8f2bc22071365df6e35f3aacf19ad943bc6167d4cae3bebb
+patch_args=-Np0
 
 do_build() {
 	cd libraries/liblmdb
diff --git a/srcpkgs/lmms/template b/srcpkgs/lmms/template
index 15b67a8f222c..a07507954e9a 100644
--- a/srcpkgs/lmms/template
+++ b/srcpkgs/lmms/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later"
 homepage="https://lmms.io/"
 distfiles="https://github.com/LMMS/lmms/releases/download/v${version}/lmms_${version}.tar.xz"
 checksum=b185507fb64ecfd8e31145135b58ab244b637f9efc09c4176caf70aa3cbaae1e
+patch_args=-Np0
 
 build_options="sndio"
 build_options_default="sndio"
diff --git a/srcpkgs/log4cxx/template b/srcpkgs/log4cxx/template
index 269147155f8e..2e64c18f71b2 100644
--- a/srcpkgs/log4cxx/template
+++ b/srcpkgs/log4cxx/template
@@ -11,6 +11,7 @@ homepage="https://logging.apache.org/log4cxx/"
 distfiles="http://apache.osuosl.org/logging/log4cxx/${version}/apache-log4cxx-${version}.tar.gz"
 checksum=0de0396220a9566a580166e66b39674cb40efd2176f52ad2c65486c99c920c8c
 wrksrc="apache-${pkgname}-${version}"
+patch_args=-Np0
 
 log4cxx-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/loksh/template b/srcpkgs/loksh/template
index 327ac3a7583d..54c65566e151 100644
--- a/srcpkgs/loksh/template
+++ b/srcpkgs/loksh/template
@@ -12,6 +12,7 @@ homepage="https://github.com/dimkr/loksh"
 distfiles="https://github.com/dimkr/loksh/releases/download/${version}/loksh-${version}.tar.xz"
 checksum=1633048cd5f1270c5fa28ab49d9cb9f7e8305ab6880601b0c15b88ecb92450f9
 register_shell="/bin/loksh"
+patch_args=-Np0
 
 alternatives="
  ksh:ksh:/usr/bin/loksh
diff --git a/srcpkgs/loudmouth/template b/srcpkgs/loudmouth/template
index 4178683d5de9..6dedbb71f7c0 100644
--- a/srcpkgs/loudmouth/template
+++ b/srcpkgs/loudmouth/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/mcabber/loudmouth"
 distfiles="https://github.com/mcabber/${pkgname}/archive/${version}.tar.gz"
 checksum=12972fcffd9bbcc4a3b2b9fbf4b0e549f7b4caf0f11c8d2af2059087ce4e8792
+patch_args=-Np0
 
 CFLAGS+=" -Wno-deprecated-declarations"
 
diff --git a/srcpkgs/lshw/template b/srcpkgs/lshw/template
index 6ba1bb44a956..88a5887251ba 100644
--- a/srcpkgs/lshw/template
+++ b/srcpkgs/lshw/template
@@ -16,6 +16,7 @@ license="GPL-2.0-only"
 homepage="https://ezix.org/project/wiki/HardwareLiSter"
 distfiles="https://ezix.org/software/files/lshw-${version}.tar.gz"
 checksum=9bb347ac87142339a366a1759ac845e3dbb337ec000aa1b99b50ac6758a80f80
+patch_args=-Np0
 
 post_patch() {
 	vsed -i src/Makefile src/gui/Makefile \
diff --git a/srcpkgs/ltrace/template b/srcpkgs/ltrace/template
index a26e64e3c797..4a44438964b1 100644
--- a/srcpkgs/ltrace/template
+++ b/srcpkgs/ltrace/template
@@ -13,6 +13,7 @@ homepage="http://ltrace.org"
 license="GPL-2"
 distfiles="https://github.com/dkogan/ltrace/archive/${_githash}.tar.gz"
 checksum=4aecf69e4a33331aed1e50ce4907e73a98cbccc4835febc3473863474304d547
+patch_args=-Np0
 
 CFLAGS="-Wno-error -D_GNU_SOURCE"
 
diff --git a/srcpkgs/lttng-tools/template b/srcpkgs/lttng-tools/template
index 96d4061584e3..b1ed6c1ad5ad 100644
--- a/srcpkgs/lttng-tools/template
+++ b/srcpkgs/lttng-tools/template
@@ -15,6 +15,7 @@ checksum=d729f8c2373a41194f171aeb0da0a9bb35ac181f31afa7e260786d19a500dea1
 # tests timeout
 make_check=no
 system_groups="tracing"
+patch_args=-Np0
 
 lttng-tools-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 63a505b4ecf4..58efbb3ff67b 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://w3.impa.br/~diego/software/luasocket/"
 distfiles="http://luaforge.net/frs/download.php/2664/luasocket-${version}.tar.gz"
 checksum=4fd9c775cfd98841299851e29b30176caf289370fea1ff1e00bb67c2d6842ca6
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC LD=$CC LUAINC=-I${XBPS_CROSS_BASE}/usr/include/lua5.1 ${makejobs}
diff --git a/srcpkgs/lua51/template b/srcpkgs/lua51/template
index 7aad299f0757..d57fdad05f18 100644
--- a/srcpkgs/lua51/template
+++ b/srcpkgs/lua51/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-$version.tar.gz"
 checksum=2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.1
diff --git a/srcpkgs/lua52/template b/srcpkgs/lua52/template
index f53cb345ebca..a8406f18d627 100644
--- a/srcpkgs/lua52/template
+++ b/srcpkgs/lua52/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-$version.tar.gz"
 checksum=b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.2
diff --git a/srcpkgs/lua53/template b/srcpkgs/lua53/template
index 7a923690a566..ac63a8bc1592 100644
--- a/srcpkgs/lua53/template
+++ b/srcpkgs/lua53/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-${version}.tar.gz"
 checksum=0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.3
diff --git a/srcpkgs/lua54-lgi/template b/srcpkgs/lua54-lgi/template
index abae56cc4310..9be201629b8d 100644
--- a/srcpkgs/lua54-lgi/template
+++ b/srcpkgs/lua54-lgi/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://github.com/pavouk/lgi"
 distfiles="https://github.com/pavouk/lgi/archive/$version.tar.gz"
 checksum=cfc4105482b4730b3a40097c9d9e7e35c46df2fb255370bdeb2f45a886548c4f
+patch_args=-Np0
 
 # requires X11
 do_check() {
diff --git a/srcpkgs/lua54-lualdap/template b/srcpkgs/lua54-lualdap/template
index 386222ce0c6d..d5379fc6e586 100644
--- a/srcpkgs/lua54-lualdap/template
+++ b/srcpkgs/lua54-lualdap/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/lualdap/lualdap"
 distfiles="https://github.com/lualdap/lualdap/archive/v${version}.tar.gz"
 checksum=3e028faa6a5798cf2f3d50b9853b9b3fb6eb562b62010747bd5b6f50b57bb1cc
+patch_args=-Np0
 
 post_patch() {
 	cd ${wrksrc}
diff --git a/srcpkgs/lua54/template b/srcpkgs/lua54/template
index 1abbe11246f1..1b4696399797 100644
--- a/srcpkgs/lua54/template
+++ b/srcpkgs/lua54/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-${version}.tar.gz"
 checksum=f8612276169e3bfcbcfb8f226195bfc6e466fe13042f1076cbde92b7ec96bbfb
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.4
diff --git a/srcpkgs/luakit/template b/srcpkgs/luakit/template
index 4fa00bb75712..aa089acc9dea 100644
--- a/srcpkgs/luakit/template
+++ b/srcpkgs/luakit/template
@@ -14,6 +14,7 @@ homepage="https://luakit.github.io/"
 changelog="https://github.com/luakit/luakit/blob/develop/CHANGELOG.md"
 distfiles="https://github.com/luakit/luakit/archive/${version}.tar.gz"
 checksum=c7026b4f0bdfa44f43798b80f87548d3e7ad56f5b923fc43b9c712bf18496095
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/lumina/template b/srcpkgs/lumina/template
index ed7ef97adfba..b2451f5dc92b 100644
--- a/srcpkgs/lumina/template
+++ b/srcpkgs/lumina/template
@@ -16,6 +16,7 @@ homepage="https://github.com/lumina-desktop/lumina"
 distfiles="https://github.com/lumina-desktop/lumina/archive/v${version}.tar.gz"
 checksum=f3512fca4d05e3cf3a6ac106f0f16c9618bda9fa546f1d23ffb0eab9a5ce7c8a
 replaces="lumina-git>=0"
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/lvm2/template b/srcpkgs/lvm2/template
index b7d287577c32..b04e9a0d46a1 100644
--- a/srcpkgs/lvm2/template
+++ b/srcpkgs/lvm2/template
@@ -24,6 +24,7 @@ conf_files="/etc/lvm/*.conf /etc/lvm/profile/*"
 make_dirs="
  /etc/lvm/archive 0755 root root
  /etc/lvm/backup 0755 root root"
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	*-musl) configure_args+=" --enable-static_link";;
diff --git a/srcpkgs/lwipv6/template b/srcpkgs/lwipv6/template
index 66ce29f506e4..441fe3e7e9da 100644
--- a/srcpkgs/lwipv6/template
+++ b/srcpkgs/lwipv6/template
@@ -11,6 +11,7 @@ homepage="http://wiki.v2.cs.unibo.it/wiki/index.php/LWIPV6"
 distfiles="${SOURCEFORGE_SITE}/view-os/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
 checksum=4ad9415c0bf9a2aca0aa858ac1601c20d7c04b5d051d000d4a03eb1eeb0ed05a
 CPPFLAGS='-DGNU_SOURCE -D__USE_MISC -D__caddr_t=caddr_t'
+patch_args=-Np0
 
 lwipv6-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/lxappearance/template b/srcpkgs/lxappearance/template
index 7fcaad225f8d..f1475690dc04 100644
--- a/srcpkgs/lxappearance/template
+++ b/srcpkgs/lxappearance/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=7222d858b8fef4b7967c42142d61e82ded6dd42dc5ef1d59caad775795928b38
+patch_args=-Np0
 
 build_options="gtk3 dbus"
 build_options_default="dbus gtk3"
diff --git a/srcpkgs/lxdm/template b/srcpkgs/lxdm/template
index 55ae9b5356eb..86684d3b5162 100644
--- a/srcpkgs/lxdm/template
+++ b/srcpkgs/lxdm/template
@@ -23,6 +23,7 @@ license="GPL-3.0-or-later"
 homepage="https://lxde.org"
 distfiles="${SOURCEFORGE_SITE}/lxdm/lxdm-${version}.tar.xz"
 checksum=4891efee81c72a400cc6703e40aa76f3f3853833d048b72ec805da0f93567f2f
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/lxpanel/template b/srcpkgs/lxpanel/template
index 6dff9ac554f9..3f3f3f2f98b0 100644
--- a/srcpkgs/lxpanel/template
+++ b/srcpkgs/lxpanel/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=1e318f57d7e36b61c23a504d03d2430c78dad142c1804451061f1b3ea5441ee8
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/lzf/template b/srcpkgs/lzf/template
index 1d4e437dc1d4..b8457facdcea 100644
--- a/srcpkgs/lzf/template
+++ b/srcpkgs/lzf/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="http://software.schmorp.de/pkg/liblzf.html"
 distfiles="http://dist.schmorp.de/liblzf/lib${pkgname}-${version}.tar.gz"
 checksum=9c5de01f7b9ccae40c3f619d26a7abec9986c06c36d260c179cedd04b89fb46a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/mDNSResponder/template b/srcpkgs/mDNSResponder/template
index c0425e7b34ee..9af08f79dff5 100644
--- a/srcpkgs/mDNSResponder/template
+++ b/srcpkgs/mDNSResponder/template
@@ -9,6 +9,7 @@ license="Apache-2.0, BSD-3-Clause"
 homepage="https://opensource.apple.com/"
 distfiles="https://opensource.apple.com/tarballs/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=097662447e1535573484697861d9f50eceaf2c52ec2742e451ee6ffe9bbf3e75
+patch_args=-Np0
 
 conf_files="/etc/nss_mdns.conf"
 conflicts="nss-mdns>=0"
diff --git a/srcpkgs/mairix/template b/srcpkgs/mairix/template
index 49f73671bcba..f0e7fdcce13b 100644
--- a/srcpkgs/mairix/template
+++ b/srcpkgs/mairix/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/vandry/mairix"
 distfiles="https://github.com/vandry/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=a0702e079c768b6fbe25687ebcbabe7965eb493d269a105998c7c1c2caef4a57
+patch_args=-Np0
 
 pre_build() {
 	make -C dfasyn CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS"
diff --git a/srcpkgs/makedumpfile/template b/srcpkgs/makedumpfile/template
index d23444187c90..cef2f4d14dab 100644
--- a/srcpkgs/makedumpfile/template
+++ b/srcpkgs/makedumpfile/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/makedumpfile/makedumpfile"
 distfiles="${homepage}/archive/refs/tags/${version}.tar.gz"
 checksum=393ea8f22393c059ad21de9b1c3f45d9d0d8dbeb0ccb1417815b835d03f7c350
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/makeself/template b/srcpkgs/makeself/template
index 4c498dce7734..68b71aa77a57 100644
--- a/srcpkgs/makeself/template
+++ b/srcpkgs/makeself/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="http://makeself.io"
 distfiles="https://github.com/megastep/makeself/archive/release-$version.tar.gz"
 checksum=8789312db5e93fc471a1e4fb88ec13227ef63a9c7aad297f3bbf35f9511f8d62
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/share/man/man1
diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template
index b13571dd4cd3..6317423767e2 100644
--- a/srcpkgs/mame/template
+++ b/srcpkgs/mame/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/mamedev/mame/archive/mame${version}.tar.gz"
 checksum=414921771ada0804a8c7f3540e33338e8495e16a3bca78a5a2b355abafa51e6a
 nodebug=yes
 replaces="sdlmame>=0 sdlmess>=0"
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.3 -I${XBPS_CROSS_BASE}/usr/include/libutf8proc"
 CXXFLAGS="$CFLAGS"
diff --git a/srcpkgs/man-db/template b/srcpkgs/man-db/template
index c8b873771d27..80bfd7964ff0 100644
--- a/srcpkgs/man-db/template
+++ b/srcpkgs/man-db/template
@@ -26,6 +26,7 @@ lib32disabled=yes
 system_accounts="_man"
 _man_homedir="/var/cache/man"
 make_dirs="/var/cache/man 0755 _man _man"
+patch_args=-Np0
 
 # among others, requires the _man user to be available in the masterdir
 make_check=no
diff --git a/srcpkgs/marble5/template b/srcpkgs/marble5/template
index 3efa3591ea58..5baadb8e3540 100644
--- a/srcpkgs/marble5/template
+++ b/srcpkgs/marble5/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later, GFDL-1.2-only"
 homepage="https://marble.kde.org"
 distfiles="${KDE_SITE}/release-service/${version}/src/marble-${version}.tar.xz"
 checksum=66e1fe73e248ba18245e2a1e234eecf49d531569b5080e19a4ca9dddbbbd0545
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e 's/-Wcast-align//'
diff --git a/srcpkgs/marco/template b/srcpkgs/marco/template
index 5abb62b91fec..3b36a8befada 100644
--- a/srcpkgs/marco/template
+++ b/srcpkgs/marco/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=498350cb12fc4d9c7c4a0355102c17b50043fbab258d11ad41b7d698b4f042a7
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/mariadb/template b/srcpkgs/mariadb/template
index a6176b43963e..5682c0078b72 100644
--- a/srcpkgs/mariadb/template
+++ b/srcpkgs/mariadb/template
@@ -35,6 +35,7 @@ system_accounts="mysql"
 mysql_homedir="/var/lib/mysql"
 make_dirs="/var/lib/mysql 0700 mysql mysql
  /usr/lib/mysql/plugin/auth_pam_tool_dir 0700 mysql root"
+patch_args=-Np0
 
 post_patch() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/masterpassword-cli/template b/srcpkgs/masterpassword-cli/template
index 8732491bfc55..8ce664513e5d 100644
--- a/srcpkgs/masterpassword-cli/template
+++ b/srcpkgs/masterpassword-cli/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/Lyndir/MasterPassword/archive/${version}-cli-3.tar
 checksum=35dc64bc74c04b534824c21da96e4a10fc7978da376fcc036d7ec08fd800ab7a
 # Apache-1.0 is incompatible with GPL-3+
 restricted=yes
+patch_args=-Np0
 
 pre_configure() {
 	echo "${version}-cli" > ${wrksrc}/${build_wrksrc}/VERSION
diff --git a/srcpkgs/mate-utils/template b/srcpkgs/mate-utils/template
index 855db8054d4d..ed900b594412 100644
--- a/srcpkgs/mate-utils/template
+++ b/srcpkgs/mate-utils/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=219673047fe2a14eb9c8bc23a5fb7c99d45e7acad4c05b4bf59a3d244cb026ac
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/matio/template b/srcpkgs/matio/template
index d22e883530b0..58930bee51e2 100644
--- a/srcpkgs/matio/template
+++ b/srcpkgs/matio/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/tbeu/matio"
 distfiles="https://github.com/tbeu/matio/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=5e455527d370ab297c4abe5a2ab4d599c93ac7c1a0c85d841cc5c22f8221c400
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" ac_cv_va_copy=C99"
diff --git a/srcpkgs/maturin/template b/srcpkgs/maturin/template
index 7ce8d5bd64c6..9cae482efdfd 100644
--- a/srcpkgs/maturin/template
+++ b/srcpkgs/maturin/template
@@ -18,6 +18,7 @@ distfiles="${homepage}/archive/v${version}.tar.gz
  https://github.com/bytecodealliance/target-lexicon/archive/v0.12.0.tar.gz"
 checksum="e6a9a67cc62ffe248654e60e7ec211bf23319c4c936ad87022f7a1fd0997430d
  18fead54e5dfa2cb0fa8af3db3c2765ca1c003b20cd4eca7be0553b30ce229de"
+patch_args=-Np0
 
 post_extract() {
 	mv ../target-lexicon* target-lexicon
diff --git a/srcpkgs/mc/template b/srcpkgs/mc/template
index ebf5141eb482..bea3ca89dd57 100644
--- a/srcpkgs/mc/template
+++ b/srcpkgs/mc/template
@@ -14,6 +14,7 @@ distfiles="https://www.midnight-commander.org/downloads/mc-${version}.tar.xz"
 #distfiles="http://fossies.org/linux/misc/mc-${version}.tar.gz"
 checksum=c6deadc50595f2d9a22dc6c299a9f28b393e358346ebf6ca444a8469dc166c27
 python_version=2
+patch_args=-Np0
 
 conf_files="
  /etc/mc/filehighlight.ini
diff --git a/srcpkgs/mcpp/template b/srcpkgs/mcpp/template
index 7a358883d06b..edccf45fe0b1 100644
--- a/srcpkgs/mcpp/template
+++ b/srcpkgs/mcpp/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://mcpp.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/mcpp/mcpp-${version}.tar.gz"
 checksum=3b9b4421888519876c4fc68ade324a3bbd81ceeb7092ecdbbc2055099fcb8864
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/mdadm/template b/srcpkgs/mdadm/template
index f776b6dc9d36..30aeed30ee96 100644
--- a/srcpkgs/mdadm/template
+++ b/srcpkgs/mdadm/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="https://git.kernel.org/cgit/utils/mdadm/mdadm.git/log/"
 distfiles="${KERNEL_SITE}/utils/raid/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=ab7688842908d3583a704d491956f31324c3a5fc9f6a04653cb75d19f1934f4a
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's,^install : mdadm mdmon,install: ,g' Makefile
diff --git a/srcpkgs/mdocml/template b/srcpkgs/mdocml/template
index 2332eb13dfc9..d19966633ba1 100644
--- a/srcpkgs/mdocml/template
+++ b/srcpkgs/mdocml/template
@@ -17,6 +17,7 @@ homepage="http://mandoc.bsd.lv"
 distfiles="http://mandoc.bsd.lv/snapshots/mandoc-${version}.tar.gz"
 checksum=8219b42cb56fc07b2aa660574e6211ac38eefdbf21f41b698d3348793ba5d8f7
 provides="man-0_1"
+patch_args=-Np0
 
 alternatives="
  man:man:/usr/bin/mandoc
diff --git a/srcpkgs/mediastreamer/template b/srcpkgs/mediastreamer/template
index 884237ddf436..ccf8e43ffb44 100644
--- a/srcpkgs/mediastreamer/template
+++ b/srcpkgs/mediastreamer/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.linphone.org/technical-corner/mediastreamer2"
 distfiles="https://gitlab.linphone.org/BC/public/mediastreamer2/-/archive/${version}/mediastreamer2-${version}.tar.gz"
 checksum=4f67262621a93349651cfb0b51a2157623bf7758126d070e1c122bff58c7d5b4
+patch_args=-Np0
 
 mediastreamer-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/mednafen/template b/srcpkgs/mednafen/template
index e56addb35013..aed46822a2b7 100644
--- a/srcpkgs/mednafen/template
+++ b/srcpkgs/mednafen/template
@@ -15,6 +15,7 @@ homepage="https://mednafen.github.io/"
 distfiles="https://mednafen.github.io/releases/files/mednafen-${version}.tar.xz"
 checksum=842907c25c4292c9ba497c9cb9229c7d10e04e22cb4740d154ab690e6587fdf4
 nopie=yes
+patch_args=-Np0
 
 build_options="altivec"
 desc_option_altivec="Enable AltiVec support on PowerPC"
diff --git a/srcpkgs/memtest86+/template b/srcpkgs/memtest86+/template
index c4850769d62e..04792c5dc082 100644
--- a/srcpkgs/memtest86+/template
+++ b/srcpkgs/memtest86+/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.memtest.org"
 distfiles="http://www.memtest.org/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=142127b7953fbd829b1057fb64a78d3340c2b771484230a7347e94530a0d9039
+patch_args=-Np0
 
 nostrip=yes
 noverifyrdeps=yes
diff --git a/srcpkgs/mergerfs/template b/srcpkgs/mergerfs/template
index db4399c448e6..d7226ee6103b 100644
--- a/srcpkgs/mergerfs/template
+++ b/srcpkgs/mergerfs/template
@@ -12,6 +12,7 @@ license="ISC"
 homepage="https://github.com/trapexit/mergerfs"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=8857d2058c38251bff539c77b6c90472ab139bda96265ce09485c3689d11a4ac
+patch_args=-Np0
 
 pre_build() {
 	# we build from source, spoof release tarball
diff --git a/srcpkgs/merkaartor/template b/srcpkgs/merkaartor/template
index 17c8d5dc361d..d917aef6ad94 100644
--- a/srcpkgs/merkaartor/template
+++ b/srcpkgs/merkaartor/template
@@ -13,5 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://merkaartor.be"
 distfiles="https://github.com/openstreetmap/merkaartor/archive/${version}.tar.gz"
 checksum=16e790507a5bb54e4b3c09ea063ebb095a4b014ce8ba937b771706d4c940976a
+patch_args=-Np0
 
 CXXFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template
index 414c918c7baf..1d5391040f4d 100644
--- a/srcpkgs/mesa/template
+++ b/srcpkgs/mesa/template
@@ -24,6 +24,7 @@ homepage="https://www.mesa3d.org/"
 changelog="https://docs.mesa3d.org/relnotes/${version}.html"
 distfiles="https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz"
 checksum=565c6f4bd2d5747b919454fc1d439963024fc78ca56fd05158c3b2cde2f6912b
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" -Duse-elf-tls=false"
diff --git a/srcpkgs/meson/template b/srcpkgs/meson/template
index ee2cab625cbd..4561095b9074 100644
--- a/srcpkgs/meson/template
+++ b/srcpkgs/meson/template
@@ -16,6 +16,7 @@ homepage="https://mesonbuild.com"
 changelog="https://github.com/mesonbuild/meson/blob/master/docs/markdown/Release-notes-for-${version%.*}.0.md"
 distfiles="https://github.com/mesonbuild/meson/releases/download/$version/$pkgname-$version.tar.gz"
 checksum=3cb8bdb91383f7f8da642f916e4c44066a29262caa499341e2880f010edb87f4
+patch_args=-Np0
 
 # XXX: sanitizers aren't available on musl
 if [ "$XBPS_TARGET_LIBC" = glibc ]; then
diff --git a/srcpkgs/mg/template b/srcpkgs/mg/template
index 8bb7fd00185e..3414fa23e102 100644
--- a/srcpkgs/mg/template
+++ b/srcpkgs/mg/template
@@ -10,6 +10,7 @@ license="Public Domain"
 homepage="https://github.com/hboetes/mg"
 distfiles="https://github.com/hboetes/mg/archive/${version}.tar.gz"
 checksum=6820e76a0e27d9a744624d421b3b30b0030140c2a817df1310b25c3abe397106
+patch_args=-Np0
 
 CFLAGS="-DTCSASOFT=0"
 
diff --git a/srcpkgs/mhddfs/template b/srcpkgs/mhddfs/template
index b60fcb06a7bf..5dfe2cc2c7f4 100644
--- a/srcpkgs/mhddfs/template
+++ b/srcpkgs/mhddfs/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://mhddfs.uvw.ru/"
 distfiles="http://mhddfs.uvw.ru/downloads/${pkgname}_${version}.tar.gz"
 checksum=702fc5486460c1828898426b1935179ce60bc1ed16fc8bc575c9ec1d12acef91
+patch_args=-Np0
 
 pre_build() {
 	sed -i 's|^CFLAGS[[:blank:]]*=|override CFLAGS +=|g' Makefile
diff --git a/srcpkgs/milkytracker/template b/srcpkgs/milkytracker/template
index 9f5cffd61301..767cc2590664 100644
--- a/srcpkgs/milkytracker/template
+++ b/srcpkgs/milkytracker/template
@@ -13,6 +13,7 @@ license="GPL-3.0-only"
 homepage="http://milkytracker.titandemo.org/"
 distfiles="https://github.com/milkytracker/MilkyTracker/archive/v${version}.tar.gz"
 checksum=6bcb6e74ee333e831137435a25c0f2f3da6e1462864deec9e693ef7d23a16023
+patch_args=-Np0
 
 post_install() {
 	vinstall resources/milkytracker.desktop 644 usr/share/applications
diff --git a/srcpkgs/mimic/template b/srcpkgs/mimic/template
index ed11690e5bdc..3424c48ed870 100644
--- a/srcpkgs/mimic/template
+++ b/srcpkgs/mimic/template
@@ -14,6 +14,7 @@ homepage="https://github.com/MycroftAI/mimic"
 changelog="https://github.com/MycroftAI/mimic1/releases"
 distfiles="https://github.com/MycroftAI/mimic/archive/${version}.tar.gz"
 checksum=9041f5c7d3720899c90c890ada179c92c3b542b90bb655c247e4a4835df79249
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/minicom/template b/srcpkgs/minicom/template
index 8671f508256a..49a229db2575 100644
--- a/srcpkgs/minicom/template
+++ b/srcpkgs/minicom/template
@@ -10,5 +10,6 @@ license="GPL-2.0-or-later"
 homepage="https://tracker.debian.org/pkg/minicom"
 distfiles="https://deb.debian.org/debian/pool/main/m/minicom/minicom_${version}.orig.tar.gz"
 checksum=532f836b7a677eb0cb1dca8d70302b73729c3d30df26d58368d712e5cca041f1
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/minidlna/template b/srcpkgs/minidlna/template
index b112fb56efcc..aeb1f2f1b542 100644
--- a/srcpkgs/minidlna/template
+++ b/srcpkgs/minidlna/template
@@ -21,6 +21,7 @@ homepage="https://minidlna.sourceforge.net/"
 changelog="https://sourceforge.net/projects/minidlna/files/minidlna/${version}/README/view"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=47d9b06b4c48801a4c1112ec23d24782728b5495e95ec2195bbe5c81bc2d3c63
+patch_args=-Np0
 
 system_accounts="minidlna"
 minidlna_homedir="/var/lib/minidlna"
diff --git a/srcpkgs/minijail/template b/srcpkgs/minijail/template
index e3debe82a66e..d0ac4d9d5acb 100644
--- a/srcpkgs/minijail/template
+++ b/srcpkgs/minijail/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://android.googlesource.com/platform/external/minijail"
 distfiles="https://github.com/google/minijail/archive/linux-v${version}.tar.gz"
 checksum=1efb6224465cf8a5bb7a69659b35482e69786fce572f29125201e9a0e793bdd6
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	broken="bpf.h:110:2: error: #error Unsupported endianness"
diff --git a/srcpkgs/minisat/template b/srcpkgs/minisat/template
index e462c8ba34a6..29246f9a7a05 100644
--- a/srcpkgs/minisat/template
+++ b/srcpkgs/minisat/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://minisat.se/MiniSat.html"
 distfiles="http://minisat.se/downloads/minisat-2.2.0.tar.gz"
 checksum=92957d851cdc3baddfe07b5fc80ed5a0237c489d0c52ae72f62844b3b46d7808
+patch_args=-Np0
 
 do_install() {
 	vbin minisat_release minisat
diff --git a/srcpkgs/minissdpd/template b/srcpkgs/minissdpd/template
index b0d56f0058df..f5d497d014d2 100644
--- a/srcpkgs/minissdpd/template
+++ b/srcpkgs/minissdpd/template
@@ -10,6 +10,7 @@ license="3-clause-BSD"
 homepage="http://miniupnp.free.fr/minissdpd.html"
 distfiles="http://miniupnp.free.fr/files/minissdpd-${version}.tar.gz"
 checksum=dfd637b185731e1acb412a86faa9718eb93c04ca08280541a6d22d14d1fb890f
+patch_args=-Np0
 
 CFLAGS="-D_GNU_SOURCE"
 
diff --git a/srcpkgs/mit-krb5/template b/srcpkgs/mit-krb5/template
index fa18e58b7333..deabac5065f6 100644
--- a/srcpkgs/mit-krb5/template
+++ b/srcpkgs/mit-krb5/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://web.mit.edu/kerberos"
 distfiles="${homepage}/dist/krb5/${version%.*}/krb5-${version}.tar.gz"
 checksum=e61783c292b5efd9afb45c555a80dd267ac67eebabca42185362bee6c4fbd719
+patch_args=-Np0
 
 post_patch() {
 	vsed -e "/LDFLAGS=/d" -i src/build-tools/krb5-config.in
diff --git a/srcpkgs/mit-scheme-c/template b/srcpkgs/mit-scheme-c/template
index 92f3b637912a..e2a461e18e86 100644
--- a/srcpkgs/mit-scheme-c/template
+++ b/srcpkgs/mit-scheme-c/template
@@ -14,6 +14,7 @@ alternatives="
  scheme:scheme.1:/usr/share/man/man1/mit-scheme.1
 "
 nocross="Tries to build parts of the package with itself"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/mlocate/template b/srcpkgs/mlocate/template
index 9571f8c387d1..310ecb315e16 100644
--- a/srcpkgs/mlocate/template
+++ b/srcpkgs/mlocate/template
@@ -14,6 +14,7 @@ homepage="https://pagure.io/mlocate"
 distfiles="https://releases.pagure.org/mlocate/${pkgname}-${version}.tar.xz"
 checksum=3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e
 system_accounts="_mlocate"
+patch_args=-Np0
 
 alternatives="
  locate:locate:/usr/bin/mlocate
diff --git a/srcpkgs/mmv/template b/srcpkgs/mmv/template
index 1afd253685d5..4269d4aa9e4a 100644
--- a/srcpkgs/mmv/template
+++ b/srcpkgs/mmv/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://packages.debian.org/unstable/utils/mmv"
 distfiles="http://mirrors.kernel.org/gentoo/distfiles/${pkgname}_${version}.orig.tar.gz"
 checksum=0399c027ea1e51fd607266c1e33573866d4db89f64a74be8b4a1d2d1ff1fdeef
+patch_args=-Np0
 
 do_install() {
 	local l
diff --git a/srcpkgs/moc/template b/srcpkgs/moc/template
index c42be650a1d2..824b1aaccaaa 100644
--- a/srcpkgs/moc/template
+++ b/srcpkgs/moc/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://moc.daper.net"
 distfiles="http://ftp.daper.net/pub/soft/${pkgname}/stable/${pkgname}-${version}.tar.bz2"
 checksum=f3a68115602a4788b7cfa9bbe9397a9d5e24c68cb61a57695d1c2c3ecf49db08
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e "s|^ac_cpp='\$CPP |&-P |g" configure
diff --git a/srcpkgs/mod_wsgi/template b/srcpkgs/mod_wsgi/template
index 28872edf8d52..1ee69220f24f 100644
--- a/srcpkgs/mod_wsgi/template
+++ b/srcpkgs/mod_wsgi/template
@@ -13,6 +13,7 @@ changelog="https://modwsgi.readthedocs.io/en/latest/release-notes/version-${vers
 distfiles="https://github.com/GrahamDumpleton/${pkgname}/archive/${version}.tar.gz"
 checksum=2674e506719afe60fbc0547c832e8948d6caa2e054d40d336309993e6e867d35
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/mog/template b/srcpkgs/mog/template
index 88421ccef317..83afd02b478c 100644
--- a/srcpkgs/mog/template
+++ b/srcpkgs/mog/template
@@ -14,6 +14,7 @@ homepage="http://www.braingames.getput.com/mog/"
 distfiles="http://urchlay.naptime.net/~urchlay/src/mog.src_${version}-${_build}.tgz"
 checksum=707bbc1b167a55989916f803dbe55c288652fb54df6194be029c41be99e9ec3a
 broken="ELF in /usr/share"
+patch_args=-Np0
 
 CFLAGS="-g3 -O3 -Wno-write-strings -I${XBPS_CROSS_BASE}/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
 
diff --git a/srcpkgs/mon/template b/srcpkgs/mon/template
index 4ab9fc3bd8e2..9cb300f5a44a 100644
--- a/srcpkgs/mon/template
+++ b/srcpkgs/mon/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/tj/mon"
 distfiles="https://github.com/tj/mon/archive/${version}.tar.gz"
 checksum=978711a1d37ede3fc5a05c778a2365ee234b196a44b6c0c69078a6c459e686ac
+patch_args=-Np0
 
 CFLAGS="-Ideps -std=c99 -D_GNU_SOURCE"
 
diff --git a/srcpkgs/monero/template b/srcpkgs/monero/template
index 3617a446f098..5cfbb8da8823 100644
--- a/srcpkgs/monero/template
+++ b/srcpkgs/monero/template
@@ -29,6 +29,7 @@ checksum="5e9bd2e565a57b4ae9f0d851704725b2e0b18c4a94051e56d5deae4e74727496
  b973b9d8269ec4d97c3c3443f0dad96d09f72b1b30e616e0947557adbdbb03f7"
 skip_extraction="v${_randomx_version}.tar.gz ${_rapidjson_gitrev}.tar.gz ${_supercop_gitrev}.tar.gz"
 system_accounts="monero"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DTHREADS_PTHREAD_ARG=OFF"
diff --git a/srcpkgs/mongoose/template b/srcpkgs/mongoose/template
index eddadc647333..46fe4d3f99eb 100644
--- a/srcpkgs/mongoose/template
+++ b/srcpkgs/mongoose/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://cesanta.com/"
 distfiles="https://github.com/cesanta/mongoose/archive/${version}.tar.gz"
 checksum=f5c10346abc9c72f7cac7885d853ca064fb09aad57580433941a8fd7a3543769
+patch_args=-Np0
 
 mongoose-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/monit/template b/srcpkgs/monit/template
index e401ff3d8733..4062b351f9fa 100644
--- a/srcpkgs/monit/template
+++ b/srcpkgs/monit/template
@@ -17,6 +17,7 @@ homepage="https://mmonit.com/monit/"
 changelog="https://mmonit.com/monit/changes/"
 distfiles="https://mmonit.com/monit/dist/${pkgname}-${version}.tar.gz"
 checksum=9fc6287fd9570b25a85c5d5bf988ee8bd4c54d0e9e01ff04cc4b9398a159849c
+patch_args=-Np0
 
 pre_configure() {
 	./bootstrap
diff --git a/srcpkgs/mono/template b/srcpkgs/mono/template
index 3846d0a93e1e..599fabf094ad 100644
--- a/srcpkgs/mono/template
+++ b/srcpkgs/mono/template
@@ -15,6 +15,7 @@ distfiles="https://download.mono-project.com/sources/mono/${pkgname}-${version}.
 checksum=29c277660fc5e7513107aee1cbf8c5057c9370a4cdfeda2fc781be6986d89d23
 lib32disabled=yes
 python_version="3"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args+=" --disable-boehm --without-sigaltstack" ;;
diff --git a/srcpkgs/moon-buggy/template b/srcpkgs/moon-buggy/template
index 1ebb56ce31ff..1a8017da0314 100644
--- a/srcpkgs/moon-buggy/template
+++ b/srcpkgs/moon-buggy/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.seehuhn.de/pages/moon-buggy"
 distfiles="http://m.seehuhn.de/programs/$pkgname-$version.tar.gz"
 checksum=352dc16ccae4c66f1e87ab071e6a4ebeb94ff4e4f744ce1b12a769d02fe5d23f
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/key_name/Key_Name/g' keyboard.c
diff --git a/srcpkgs/moosefs/template b/srcpkgs/moosefs/template
index adc8125a13e6..fbf55ca74ac1 100644
--- a/srcpkgs/moosefs/template
+++ b/srcpkgs/moosefs/template
@@ -15,6 +15,7 @@ distfiles="http://ppa.moosefs.com/src/moosefs-${version}-1.tar.gz"
 checksum=f88cc0142b5fe8a6a4c3fcb2ae58053fcb98787848cf09286a57718a982093a9
 python_version=2 #unverified
 system_accounts="_mfs"
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's,AC_RUN_IFELSE,AC_LINK_IFELSE,g' configure.ac
diff --git a/srcpkgs/mosh/template b/srcpkgs/mosh/template
index a4641f66bb3e..a9030ce5cb51 100644
--- a/srcpkgs/mosh/template
+++ b/srcpkgs/mosh/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://mosh.org/"
 distfiles="https://mosh.org/mosh-${version}.tar.gz"
 checksum=da600573dfa827d88ce114e0fed30210689381bbdcff543c931e4d6a2e851216
+patch_args=-Np0
 
 pre_configure() {
 	# make local.test always succeed. It fails due to missing X server in chroot.
diff --git a/srcpkgs/mosquitto/template b/srcpkgs/mosquitto/template
index 53ab96eca22e..16723f0ce554 100644
--- a/srcpkgs/mosquitto/template
+++ b/srcpkgs/mosquitto/template
@@ -16,6 +16,7 @@ distfiles="${homepage}/files/source/${pkgname}-${version}.tar.gz"
 checksum=1b8553ef64a1cf5e4f4cfbe098330ae612adccd3d37f35b2db6f6fab501b01d4
 # CUnit dependency is missing
 make_check=no
+patch_args=-Np0
 
 system_accounts="_mosquitto"
 _mosquitto_homedir="/var/lib/mosquitto"
diff --git a/srcpkgs/mp3check/template b/srcpkgs/mp3check/template
index 6d25f52387fc..09d6a945c800 100644
--- a/srcpkgs/mp3check/template
+++ b/srcpkgs/mp3check/template
@@ -8,6 +8,7 @@ license="GPL-2.0-only"
 homepage="https://code.google.com/p/mp3check/"
 distfiles="${DEBIAN_SITE}/main/m/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=27d976ad8495671e9b9ce3c02e70cb834d962b6fdf1a7d437bb0e85454acdd0e
+patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
diff --git a/srcpkgs/mp3val/template b/srcpkgs/mp3val/template
index 31c307f1ebbf..14e61a3c6fb8 100644
--- a/srcpkgs/mp3val/template
+++ b/srcpkgs/mp3val/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://mp3val.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/mp3val/mp3val-${version}-src.tar.gz"
 checksum=95a16efe3c352bb31d23d68ee5cb8bb8ebd9868d3dcf0d84c96864f80c31c39f
+patch_args=-Np0
 
 do_install() {
 	vbin mp3val
diff --git a/srcpkgs/mpg123/template b/srcpkgs/mpg123/template
index a08cb80f0969..4278b201e604 100644
--- a/srcpkgs/mpg123/template
+++ b/srcpkgs/mpg123/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://www.mpg123.org/"
 distfiles="${SOURCEFORGE_SITE}/mpg123/mpg123-${version}.tar.bz2"
 checksum=e49466853685026da5d113dc7ff026b1b2ad0b57d78df693a446add9db88a7d5
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	# No LFS required with musl
diff --git a/srcpkgs/mplayer/template b/srcpkgs/mplayer/template
index 6bf5f3d1b08d..981c97328805 100644
--- a/srcpkgs/mplayer/template
+++ b/srcpkgs/mplayer/template
@@ -22,6 +22,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.mplayerhq.hu/"
 distfiles="http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-${version}.tar.xz"
 checksum=82596ed558478d28248c7bc3828eb09e6948c099bbd76bb7ee745a0e3275b548
+patch_args=-Np0
 
 nocross=yes
 
diff --git a/srcpkgs/mrxvt/template b/srcpkgs/mrxvt/template
index 5d82c85d31f6..eb206d20ab9c 100644
--- a/srcpkgs/mrxvt/template
+++ b/srcpkgs/mrxvt/template
@@ -12,5 +12,6 @@ license="GPL-2.0-or-later"
 homepage="http://materm.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/materm/mrxvt-${version}.tar.gz"
 checksum=f403ad5a908fcd38a55ed0a7e1b85584cb77be8781199653a39b8af1a9ad10d7
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/msg2/template b/srcpkgs/msg2/template
index 473b3c4ec4d2..624f86b14c31 100644
--- a/srcpkgs/msg2/template
+++ b/srcpkgs/msg2/template
@@ -9,6 +9,7 @@ license="GPL-3.0-or-later"
 homepage="https://roboticoverlords.org/msg2/"
 distfiles="https://roboticoverlords.org/msg2/msg2-${version}.tar.xz"
 checksum=4834104465f62f0ecec7615e75ca2e50a5e42218854da8f6b022a120937702ac
+patch_args=-Np0
 
 post_install() {
 	vman msg2.1
diff --git a/srcpkgs/msp430-toolchain/template b/srcpkgs/msp430-toolchain/template
index 10f8d6b7fe45..acfabb65b166 100644
--- a/srcpkgs/msp430-toolchain/template
+++ b/srcpkgs/msp430-toolchain/template
@@ -16,6 +16,7 @@ checksum="d2110ec64e8a055ff89b7eef8217b3c233c30e370e2cb43e1ad835dad5907d1c
  1e2a0903e6b02d5e8aac2a7297ec0685e95a980b13b937b5c7f24f4cf6015407"
 nocross=yes
 nostrip=yes
+patch_args=-Np0
 
 _prefix=/usr/msp430
 _target=msp430-none-elf
diff --git a/srcpkgs/mumble/template b/srcpkgs/mumble/template
index d578a511d47e..7cb13105213d 100644
--- a/srcpkgs/mumble/template
+++ b/srcpkgs/mumble/template
@@ -20,6 +20,7 @@ license="BSD-3-Clause"
 homepage="http://mumble.sourceforge.net/"
 distfiles="https://github.com/mumble-voip/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=615f4ebfc3385d945163f369efd3e910c8b6d0f025797a7eed541515fccb6093
+patch_args=-Np0
 
 build_options="jack portaudio"
 build_options_default="jack portaudio"
diff --git a/srcpkgs/mupen64plus/template b/srcpkgs/mupen64plus/template
index 4984a7f4a777..747fd4d99531 100644
--- a/srcpkgs/mupen64plus/template
+++ b/srcpkgs/mupen64plus/template
@@ -15,6 +15,7 @@ distfiles="https://github.com/mupen64plus/mupen64plus-core/releases/download/${v
 checksum=d5243ddc00388ee2e538b3826a78a719dec2bd5da54ac6f3344fed861fb141a8
 nopie=yes
 nocross=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/musikcube/template b/srcpkgs/musikcube/template
index c786f86bef31..9ee39183a36f 100644
--- a/srcpkgs/musikcube/template
+++ b/srcpkgs/musikcube/template
@@ -17,6 +17,7 @@ license="BSD-3-Clause"
 homepage="https://musikcube.com/"
 distfiles="https://github.com/clangen/musikcube/archive/${version}.tar.gz"
 checksum=81922ec6e86c06061dc009be3ec7c4bc8e8fd5ed3bb92231dabede8bbccaf723
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/mutter/template b/srcpkgs/mutter/template
index fb42f099faaa..49595b486e5d 100644
--- a/srcpkgs/mutter/template
+++ b/srcpkgs/mutter/template
@@ -1,5 +1,6 @@
 # Template file for 'mutter'
 reverts="40.2_1"
+patch_args=-Np0
 
 pkgname=mutter
 version=40.1
diff --git a/srcpkgs/mysql++/template b/srcpkgs/mysql++/template
index 6dc18a421034..278fd00b049c 100644
--- a/srcpkgs/mysql++/template
+++ b/srcpkgs/mysql++/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://tangentsoft.net/mysqlpp"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.gz"
 checksum=b780beeb3a9cd9ce6a9043028527484df8e822c58c5274d4d67ec5ba2fc0a778
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	configure_args="--exec_prefix=${XBPS_CROSS_BASE} --with-mysql-include=${XBPS_CROSS_BASE}/usr/include/mysql"
diff --git a/srcpkgs/nagstamon/template b/srcpkgs/nagstamon/template
index a3e92bfa761d..50e74fb4a478 100644
--- a/srcpkgs/nagstamon/template
+++ b/srcpkgs/nagstamon/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://nagstamon.ifw-dresden.de"
 distfiles="https://nagstamon.ifw-dresden.de/files/stable/Nagstamon-${version}.tar.gz"
 checksum=7a9611f40b08269bba4100ab2598ee089c7d0ebc6c4e9d7132689342f71150ec
+patch_args=-Np0
 
 post_patch() {
 	# This relies on /etc/os-release, which doesn't exist without
diff --git a/srcpkgs/namecoin/template b/srcpkgs/namecoin/template
index e4cfb3777b71..991026db606d 100644
--- a/srcpkgs/namecoin/template
+++ b/srcpkgs/namecoin/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="https://namecoin.org"
 distfiles="https://github.com/namecoin/namecoin-core/archive/nc${version}.tar.gz"
 checksum=7117a0a0b8f48d49e4abf3577660f8a4eb9a4dea753281d19d9470725fc75d8e
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/navit/template b/srcpkgs/navit/template
index 449ef1ca16d3..4ae5fbeaf5eb 100644
--- a/srcpkgs/navit/template
+++ b/srcpkgs/navit/template
@@ -16,6 +16,7 @@ license="GPL-2.0-only, LGPL-2.0-only"
 homepage="http://www.navit-project.org/"
 distfiles="https://github.com/navit-gps/navit/archive/v${version}.tar.gz"
 checksum=728d9dcad00e97769f6cd85bfad5518b0edf62ef75d60543fa4c48c1c3ab1243
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e 's/\(GET_FILENAME_COMPONENT (LIB_DIR ${LIBDIR}\) NAME/\1 DIRECTORY/' CMakeLists.txt
diff --git a/srcpkgs/nemiver/template b/srcpkgs/nemiver/template
index 947ef8352a17..122758b92660 100644
--- a/srcpkgs/nemiver/template
+++ b/srcpkgs/nemiver/template
@@ -17,6 +17,7 @@ homepage="https://wiki.gnome.org/Apps/Nemiver"
 distfiles="https://download.gnome.org/sources/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=85ab8cf6c4f83262f441cb0952a6147d075c3c53d0687389a3555e946b694ef2
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	cp data/nemiver.appdata.xml data/nemiver.appdata.xml.in
diff --git a/srcpkgs/net-snmp/template b/srcpkgs/net-snmp/template
index 0b91683e00a8..6dad6b0f7cc6 100644
--- a/srcpkgs/net-snmp/template
+++ b/srcpkgs/net-snmp/template
@@ -11,6 +11,7 @@ license="Net-SNMP"
 homepage="http://www.net-snmp.org/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=eb7fd4a44de6cddbffd9a92a85ad1309e5c1054fb9d5a7dd93079c8953f48c3f
+patch_args=-Np0
 
 LDFLAGS="-lpthread"
 
diff --git a/srcpkgs/netcat/template b/srcpkgs/netcat/template
index c588fc5ab7b4..2905db892d0d 100644
--- a/srcpkgs/netcat/template
+++ b/srcpkgs/netcat/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://netcat.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=30719c9a4ffbcf15676b8f528233ccc54ee6cba96cb4590975f5fd60c68a066f
+patch_args=-Np0
 
 alternatives="
  nc:nc:/usr/bin/gnetcat
diff --git a/srcpkgs/nethack/template b/srcpkgs/nethack/template
index e39eafb0b5c2..65c414f3620f 100644
--- a/srcpkgs/nethack/template
+++ b/srcpkgs/nethack/template
@@ -16,6 +16,7 @@ distfiles="https://www.nethack.org/download/${version}/nethack-${version//./}-sr
 checksum=cfde0c3ab6dd7c22ae82e1e5a59ab80152304eb23fb06e3129439271e5643ed2
 nocross=yes
 system_accounts="$pkgname"
+patch_args=-Np0
 
 do_configure() {
 	sh sys/unix/setup.sh sys/unix/hints/linux
diff --git a/srcpkgs/netpgp/template b/srcpkgs/netpgp/template
index 2bc40e253d09..30b5c9a4acbd 100644
--- a/srcpkgs/netpgp/template
+++ b/srcpkgs/netpgp/template
@@ -11,6 +11,7 @@ license="3-clause-BSD"
 homepage="http://www.netbsd.org"
 distfiles="ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/LOCAL_PORTS/netpgp-${version}.tar.gz"
 checksum=fbe403f037376a40afd19bc8a1786b55b67cf8092a723ef36a61d99260b66dbf
+patch_args=-Np0
 
 CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=cpp -Wno-format-truncation -Wno-stringop-truncation -Wno-stringop-overflow -Wno-error=format-overflow"
 
diff --git a/srcpkgs/netpgpverify/template b/srcpkgs/netpgpverify/template
index 03531032da54..e554b5bcce13 100644
--- a/srcpkgs/netpgpverify/template
+++ b/srcpkgs/netpgpverify/template
@@ -10,6 +10,7 @@ license="2-clause-BSD"
 homepage="http://www.netpgp.com"
 distfiles="http://www.netpgp.com/src/${pkgname}-${version}.tar.gz"
 checksum=1eedf30b35cacbf8f39b80fbc4ea6129ba8c7815b0ad7f3d1ae05e521f684b00
+patch_args=-Np0
 
 post_extract() {
 	sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' Makefile.in
diff --git a/srcpkgs/nettle/template b/srcpkgs/nettle/template
index 25eca0dcab04..3880c5167455 100644
--- a/srcpkgs/nettle/template
+++ b/srcpkgs/nettle/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://www.lysator.liu.se/~nisse/nettle/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=661f5eb03f048a3b924c3a8ad2515d4068e40f67e774e8a26827658007e3bcf0
+patch_args=-Np0
 
 nettle-devel_package() {
 	depends="gmp-devel ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/network-ups-tools/template b/srcpkgs/network-ups-tools/template
index 0f4f1ce5a3b4..b775d578f493 100644
--- a/srcpkgs/network-ups-tools/template
+++ b/srcpkgs/network-ups-tools/template
@@ -27,6 +27,7 @@ homepage="http://www.networkupstools.org/"
 distfiles="${homepage}source/${version%.*}/nut-${version}.tar.gz"
 checksum=980e82918c52d364605c0703a5dcf01f74ad2ef06e3d365949e43b7d406d25a7
 system_accounts="nut"
+patch_args=-Np0
 
 nopie=yes
 build_options="cgi"
diff --git a/srcpkgs/newlisp/template b/srcpkgs/newlisp/template
index d6459caa41c5..37e9c03cc423 100644
--- a/srcpkgs/newlisp/template
+++ b/srcpkgs/newlisp/template
@@ -9,6 +9,7 @@ license="GPL-3.0-only, GFDL-1.2-only, Zlib, $pkgname, BSD-3-Clause"
 homepage="http://www.newlisp.org"
 distfiles="$homepage/downloads/$pkgname-$version.tgz"
 checksum=dc2d0ff651c2b275bc4af3af8ba59851a6fb6e1eaddc20ae75fb60b1e90126ec
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/nextcloud-client/template b/srcpkgs/nextcloud-client/template
index ec201254d5ad..ebce167c2699 100644
--- a/srcpkgs/nextcloud-client/template
+++ b/srcpkgs/nextcloud-client/template
@@ -20,6 +20,7 @@ license="GPL-2.0-or-later"
 homepage="https://nextcloud.com/clients/"
 distfiles="https://github.com/nextcloud/desktop/archive/v${version}.tar.gz"
 checksum=f2d387d35276ea6e6da3ae339ede3d89be81dd4af735739ec280709008eb6645
+patch_args=-Np0
 
 build_options="dolphin"
 desc_option_dolphin="Build KDE dolphin support"
diff --git a/srcpkgs/nfs4-acl-tools/template b/srcpkgs/nfs4-acl-tools/template
index defeeccdfbfc..3ac57c339637 100644
--- a/srcpkgs/nfs4-acl-tools/template
+++ b/srcpkgs/nfs4-acl-tools/template
@@ -14,6 +14,7 @@ homepage="http://linux-nfs.org/wiki/index.php/Main_Page"
 distfiles="http://linux-nfs.org/~bfields/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=1b929f15b7b8d1701a416a0888df61a2a173b50eeaa9fed4f28543ffe8989503
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/nginx/template b/srcpkgs/nginx/template
index cd0b19da95c6..281ebf038e0d 100644
--- a/srcpkgs/nginx/template
+++ b/srcpkgs/nginx/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="https://nginx.org"
 distfiles="https://nginx.org/download/nginx-${version}.tar.gz"
 checksum=4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+patch_args=-Np0
 
 # NOTE:
 # On update, the pregenerated header file for ARM may need synchronization.
diff --git a/srcpkgs/ngspice/template b/srcpkgs/ngspice/template
index 05beffd8f841..8e7bde57e3da 100644
--- a/srcpkgs/ngspice/template
+++ b/srcpkgs/ngspice/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="http://ngspice.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/ngspice/ng-spice-rework/${version}/${pkgname}-${version}.tar.gz"
 checksum=b99db66cc1c57c44e9af1ef6ccb1dcbc8ae1df3e35acf570af578f606f8541f1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/nitroshare/template b/srcpkgs/nitroshare/template
index dc541b408d77..cfab290eea9d 100644
--- a/srcpkgs/nitroshare/template
+++ b/srcpkgs/nitroshare/template
@@ -17,6 +17,7 @@ homepage="http://nitroshare.net"
 distfiles="https://github.com/nitroshare/nitroshare-desktop/archive/${version}.tar.gz"
 checksum=29874e5909c29211a3c9e13f8c0f49b901ec2996e5d60d80af80d2fb80c3d7ec
 python_version=2 #unverified
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools"
diff --git a/srcpkgs/nmon/template b/srcpkgs/nmon/template
index 76f09917adea..1857023f5402 100644
--- a/srcpkgs/nmon/template
+++ b/srcpkgs/nmon/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://nmon.sourceforge.net/pmwiki.php?n=Main.HomePage"
 distfiles="${SOURCEFORGE_SITE}/nmon/files/lmon${version}.c"
 checksum=2bed4d45fdfdf1d1387ec91e139c04975d5f838e3e0d53c0fe2d803a707e5fc1
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/nocache/template b/srcpkgs/nocache/template
index 1c4198631e74..f48b963e9279 100644
--- a/srcpkgs/nocache/template
+++ b/srcpkgs/nocache/template
@@ -9,6 +9,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/Feh/nocache"
 distfiles="https://github.com/Feh/nocache/archive/v${version}.tar.gz"
 checksum=e5441b27f60e1af5551b76fe0c8a9da17b8c31675794d9d49bf59c7c47fbb9b9
+patch_args=-Np0
 
 pre_build() {
 	sed -i -e '/#include <error.h>/d' cachedel.c cachestats.c
diff --git a/srcpkgs/nodejs-lts-10/template b/srcpkgs/nodejs-lts-10/template
index 300667cb9782..864b387e62e5 100644
--- a/srcpkgs/nodejs-lts-10/template
+++ b/srcpkgs/nodejs-lts-10/template
@@ -21,6 +21,7 @@ homepage="https://nodejs.org/"
 distfiles="${homepage}/download/release/v${version}/node-v${version}.tar.xz"
 checksum=158273af66f891b2fca90aec7336c42f7574f467affad02c14e80ca163cb3acc
 python_version=3
+patch_args=-Np0
 
 build_options="ssl libuv http_parser icu nghttp2 cares"
 desc_option_ssl="Enable shared openssl"
diff --git a/srcpkgs/nodejs-lts/template b/srcpkgs/nodejs-lts/template
index d3912ae2cf05..4f7524766d88 100644
--- a/srcpkgs/nodejs-lts/template
+++ b/srcpkgs/nodejs-lts/template
@@ -20,6 +20,7 @@ homepage="https://nodejs.org/"
 distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz"
 checksum=36e862555bebc04b13f7afebf4472c4dd7ebf4c891f9d6746ec545a4f099d05e
 python_version=3
+patch_args=-Np0
 
 build_options="ssl libuv http_parser icu nghttp2 cares"
 desc_option_ssl="Enable shared openssl"
diff --git a/srcpkgs/nodejs/template b/srcpkgs/nodejs/template
index bcfaaa73ac4c..c8d7b6324ba3 100644
--- a/srcpkgs/nodejs/template
+++ b/srcpkgs/nodejs/template
@@ -20,6 +20,7 @@ homepage="https://nodejs.org/"
 distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz"
 checksum=f6b904b06951de4c52089dd4456155d853e835b0dc4640f75458c6eb49f9e8ce
 python_version=3
+patch_args=-Np0
 
 build_options="ssl libuv http_parser icu nghttp2 cares"
 desc_option_ssl="Enable shared openssl"
diff --git a/srcpkgs/noip2/template b/srcpkgs/noip2/template
index 9d930a41b73e..b6e7636edcfa 100644
--- a/srcpkgs/noip2/template
+++ b/srcpkgs/noip2/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.noip.com"
 distfiles="https://www.noip.com/client/linux/noip-duc-linux.tar.gz"
 checksum=82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC PREFIX=/usr LIBS="$CFLAGS $LDFLAGS"
diff --git a/srcpkgs/notepadqq/template b/srcpkgs/notepadqq/template
index 194588600db8..85e8349e031b 100644
--- a/srcpkgs/notepadqq/template
+++ b/srcpkgs/notepadqq/template
@@ -12,6 +12,7 @@ homepage="https://notepadqq.com"
 license="GPL-3.0-or-later"
 distfiles="https://github.com/notepadqq/notepadqq/archive/v${version}.tar.gz"
 checksum=13fba9abd84c59de27fbe92f74e2763b57588fcf9c88af10ec67313b0abbc9d0
+patch_args=-Np0
 
 post_install() {
 	# no need for upstream's weird magic, leads to segfaults anyway
diff --git a/srcpkgs/notes-up/template b/srcpkgs/notes-up/template
index 8fcacc6f4d99..22f5e8b400b7 100644
--- a/srcpkgs/notes-up/template
+++ b/srcpkgs/notes-up/template
@@ -17,6 +17,7 @@ distfiles="https://github.com/Philip-Scott/Notes-up/archive/${version}.tar.gz"
 checksum=35eb1df71034a118e66e6e00f5394c68423cfba7ceac035bde156d77da933b17
 build_options="pantheon"
 desc_option_pantheon="build with Contractor support"
+patch_args=-Np0
 
 post_install() {
 	ln -s com.github.philip-scott.notes-up ${DESTDIR}/usr/bin/notes-up
diff --git a/srcpkgs/nrpe/template b/srcpkgs/nrpe/template
index 6a598b0909ee..fd07a1845533 100644
--- a/srcpkgs/nrpe/template
+++ b/srcpkgs/nrpe/template
@@ -21,6 +21,7 @@ changelog="https://github.com/NagiosEnterprises/nrpe/blob/master/CHANGELOG.md"
 distfiles="https://github.com/NagiosEnterprises/${pkgname}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=f907ba15381adfc6eef211508abd027f8e1973116080faa4534a1191211c0340
 system_accounts="_nagios"
+patch_args=-Np0
 
 post_install() {
 	vsv nrpe
diff --git a/srcpkgs/nsjail/template b/srcpkgs/nsjail/template
index acff592d2eee..8a883f9d1d6f 100644
--- a/srcpkgs/nsjail/template
+++ b/srcpkgs/nsjail/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/google/nsjail/archive/${version}.tar.gz
  https://github.com/google/kafel/archive/8e69b8efae415cde3debffbb1e379d9e7a16835a.tar.gz"
 checksum="cfa66d3ed136b2e221752287b95e544915e8a6760aa866f023b604d14a374919
  4a6c9a1a70ed99bbed767adc106081b017a3090307ea88cc7e329b82daa1373b"
+patch_args=-Np0
 
 archs="aarch64* armv5tel* armv6l* armv7l* x86_64*"
 
diff --git a/srcpkgs/nspr/template b/srcpkgs/nspr/template
index 2873d90183a6..f9f4c941d124 100644
--- a/srcpkgs/nspr/template
+++ b/srcpkgs/nspr/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="http://www.mozilla.org/projects/nspr/"
 distfiles="${MOZILLA_SITE}/nspr/releases/v${version}/src/${pkgname}-${version}.tar.gz"
 checksum=5729da87d5fbf1584b72840751e0c6f329b5d541850cacd1b61652c95015abc8
+patch_args=-Np0
 
 do_configure() {
 	CFLAGS="$CFLAGS -D_PR_POLL_AVAILABLE -D_PR_HAVE_OFF64_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP -D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO -D_PR_INET6_PROBE"
diff --git a/srcpkgs/nss/template b/srcpkgs/nss/template
index 24da85cec752..1ae8f62b0b9d 100644
--- a/srcpkgs/nss/template
+++ b/srcpkgs/nss/template
@@ -1,4 +1,5 @@
 # Template file for 'nss'
+patch_args=-Np0
 
 _nsprver=4.30
 
diff --git a/srcpkgs/ntp/template b/srcpkgs/ntp/template
index fa88f33f92b7..523c61db5c09 100644
--- a/srcpkgs/ntp/template
+++ b/srcpkgs/ntp/template
@@ -13,6 +13,7 @@ license="NTP"
 homepage="http://www.ntp.org/"
 distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${version}.tar.gz"
 checksum=f65840deab68614d5d7ceb2d0bb9304ff70dcdedd09abb79754a87536b849c19
+patch_args=-Np0
 
 make_dirs="/var/db/ntpd 0755 ntpd ntpd"
 conf_files="/etc/ntp.conf"
diff --git a/srcpkgs/numactl/template b/srcpkgs/numactl/template
index ca5ecf3b3f10..ca70de19109a 100644
--- a/srcpkgs/numactl/template
+++ b/srcpkgs/numactl/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-only"
 homepage="https://github.com/numactl/numactl"
 distfiles="https://github.com/numactl/numactl/archive/v${version}.tar.gz"
 checksum=1ee27abd07ff6ba140aaf9bc6379b37825e54496e01d6f7343330cf1a4487035
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
 	# XXX
diff --git a/srcpkgs/nvme-cli/template b/srcpkgs/nvme-cli/template
index 0da50f2663ef..35301436ec7d 100644
--- a/srcpkgs/nvme-cli/template
+++ b/srcpkgs/nvme-cli/template
@@ -15,6 +15,7 @@ homepage="http://nvmexpress.org"
 distfiles="https://github.com/linux-nvme/nvme-cli/archive/v${version}.tar.gz"
 checksum=03f4875f3e68d326b0280e16df2f027ca6b086cfa148c34e8569df61319b4b85
 conf_files="/etc/nvme/*.conf"
+patch_args=-Np0
 
 post_install() {
 	# these files are touch'd by install, remove so they aren't registered
diff --git a/srcpkgs/nwipe/template b/srcpkgs/nwipe/template
index e3cbc2b3b653..5b88dfcd2d9a 100644
--- a/srcpkgs/nwipe/template
+++ b/srcpkgs/nwipe/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/martijnvanbrummelen/nwipe"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=85faaa9c65557a6be187f0176c5b778e8cd080e1cd9b8a7168a8a9b8e410d46d
+patch_args=-Np0
 
 CFLAGS="-D_FILE_OFFSET_BITS=64"
 
diff --git a/srcpkgs/nx-libs/template b/srcpkgs/nx-libs/template
index f604983c82c9..108696f69aa7 100644
--- a/srcpkgs/nx-libs/template
+++ b/srcpkgs/nx-libs/template
@@ -22,6 +22,7 @@ checksum=3ce7ca4e6b57b3a2d7588b2d0f4009036d2566a8925ca2c62f08a8dc0df50357
 python_version=3
 nocross="imake attempts to run target executables on host"
 conf_files="/etc/nxagent/*"
+patch_args=-Np0
 
 post_patch() {
 	# Replace hard-coded /usr/local ProjectRoot
diff --git a/srcpkgs/obexftp/template b/srcpkgs/obexftp/template
index 9e4123be13c6..457386c803dd 100644
--- a/srcpkgs/obexftp/template
+++ b/srcpkgs/obexftp/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp"
 distfiles="${SOURCEFORGE_SITE}/openobex/${pkgname}-${version}-Source.tar.gz"
 checksum=d40fb48e0a0eea997b3e582774b29f793919a625d54b87182e31a3f3d1c989a3
+patch_args=-Np0
 
 post_install() {
 	# Do not require 'bluetooth', does not exist.
diff --git a/srcpkgs/occt/template b/srcpkgs/occt/template
index 9298edc76e08..c72fcd384402 100644
--- a/srcpkgs/occt/template
+++ b/srcpkgs/occt/template
@@ -19,6 +19,7 @@ homepage="https://www.opencascade.com"
 distfiles="https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/${_gittag};sf=tgz>occt-${_gittag}.tar.gz"
 checksum=e00fedc221560fda31653c23a8f3d0eda78095c87519f338d4f4088e2ee9a9c0
 conflicts="oce>=0"
+patch_args=-Np0
 
 post_install() {
 	rm ${PKGDESTDIR}/usr/share/doc/opencascade/*_LGPL_*.txt
diff --git a/srcpkgs/odroid-u2-kernel/template b/srcpkgs/odroid-u2-kernel/template
index 748f904ee1de..4369f4c8a95e 100644
--- a/srcpkgs/odroid-u2-kernel/template
+++ b/srcpkgs/odroid-u2-kernel/template
@@ -3,6 +3,7 @@
 # Latest commit as of 20140809
 _githash="0c5ca23376fdddc43a08e5709e4d4bf18bc747f0"
 _gitshort="${_githash:0:7}"
+patch_args=-Np0
 
 pkgname=odroid-u2-kernel
 version=3.8.13.28
diff --git a/srcpkgs/ofono/template b/srcpkgs/ofono/template
index 248e58d9502d..78f80264583a 100644
--- a/srcpkgs/ofono/template
+++ b/srcpkgs/ofono/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://01.org/ofono"
 distfiles="${KERNEL_SITE}/network/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=a15c5d28096c10eb30e47a68b6dc2e7c4a5a99d7f4cfedf0b69624f33d859e9b
+patch_args=-Np0
 
 post_install() {
 	vsv ofonod
diff --git a/srcpkgs/ogmrip/template b/srcpkgs/ogmrip/template
index 1905d67b6abc..7a6bc318a04b 100644
--- a/srcpkgs/ogmrip/template
+++ b/srcpkgs/ogmrip/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="http://ogmrip.sourceforge.net/en/index.html"
 distfiles="${SOURCEFORGE_SITE}/ogmrip/ogmrip/${version%.*}/${version}/ogmrip-${version}.tar.gz"
 checksum=4e2e9778ac4da9fe1ab159e3dc6d4367b7a9dbd8f3501df99733ecedb25b02ff
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's/enchant >=/enchant-2 >=/' configure
diff --git a/srcpkgs/ogmtools/template b/srcpkgs/ogmtools/template
index 29c7e04d6ea3..5dc3772bd7e1 100644
--- a/srcpkgs/ogmtools/template
+++ b/srcpkgs/ogmtools/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="http://www.bunkus.org/videotools/ogmtools/"
 distfiles="http://www.bunkus.org/videotools/ogmtools/ogmtools-${version}.tar.bz2"
 checksum=c8d61d1dbceb981dc7399c1a85e43b509fd3d071fb8d3ca89ea9385e6e40fdea
+patch_args=-Np0
 
 CFLAGS="-I./avilib"
 CXXFLAGS="${CFLAGS}"
diff --git a/srcpkgs/oksh/template b/srcpkgs/oksh/template
index 84e6085f54f0..932eac8c8205 100644
--- a/srcpkgs/oksh/template
+++ b/srcpkgs/oksh/template
@@ -11,6 +11,7 @@ homepage="https://github.com/ibara/oksh"
 distfiles="https://github.com/ibara/oksh/releases/download/oksh-${version}/oksh-${version}.tar.gz"
 checksum=c08d97b2ac9ee5d88e9e508d27c75502b2d06c20d4c5ab87b496cb3b9951bd35
 register_shell="/bin/oksh"
+patch_args=-Np0
 
 alternatives="
  ksh:ksh:/usr/bin/oksh
diff --git a/srcpkgs/okteta/template b/srcpkgs/okteta/template
index 7d3878ca031a..f767b376f4f2 100644
--- a/srcpkgs/okteta/template
+++ b/srcpkgs/okteta/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://apps.kde.org/okteta/"
 distfiles="${KDE_SITE}/okteta/${version}/src/okteta-${version}.tar.xz"
 checksum=c569cd5b55503e46df1a5b5c9162b08888c426aa52c6f3f2f926c658bee0144c
+patch_args=-Np0
 
 okteta-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/okular/template b/srcpkgs/okular/template
index 44c3b7e82b70..7fcc1686d39f 100644
--- a/srcpkgs/okular/template
+++ b/srcpkgs/okular/template
@@ -17,6 +17,7 @@ license="GPL-2.0-only"
 homepage="https://kde.org/applications/en/graphics/org.kde.okular"
 distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=330dbe847409bfc544093ac703754fb5f43398ea3dbea88b976dc393d3bda65c
+patch_args=-Np0
 
 do_check() {
 	cd build
diff --git a/srcpkgs/olsrd/template b/srcpkgs/olsrd/template
index 314527b83433..fe19e2a1a809 100644
--- a/srcpkgs/olsrd/template
+++ b/srcpkgs/olsrd/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://www.olsr.org/"
 distfiles="https://github.com/OLSR/olsrd/archive/v${version}.tar.gz"
 checksum=9baf2e4993dbb53babf18eea9e81a2e92ce79686632711a16a5b4f7776e94451
+patch_args=-Np0
 
 conf_files="/etc/olsrd.conf"
 
diff --git a/srcpkgs/omxplayer/template b/srcpkgs/omxplayer/template
index f20b056f406f..c6742b439a4d 100644
--- a/srcpkgs/omxplayer/template
+++ b/srcpkgs/omxplayer/template
@@ -6,6 +6,7 @@ short_desc="Commandline OMX player for the Raspberry Pi"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2"
 homepage="https://github.com/popcornmix/omxplayer"
+patch_args=-Np0
 
 _commit="f06235cc9690a6d58187514452df8cf8fcdaacec"
 wrksrc="omxplayer-$_commit"
diff --git a/srcpkgs/open-iscsi/template b/srcpkgs/open-iscsi/template
index 7cd8308b0498..e772af1da0e9 100644
--- a/srcpkgs/open-iscsi/template
+++ b/srcpkgs/open-iscsi/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.open-iscsi.com/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=5410474b23552016220d04aa181903cb50ae988f29e99cb03f3e2de86a109be4
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) CFLAGS+="-D_LINUX_IF_ETHER_H -Wno-error=format -Wno-error=cpp";;
diff --git a/srcpkgs/open-vm-tools/template b/srcpkgs/open-vm-tools/template
index c452f7365ac3..b965024f763b 100644
--- a/srcpkgs/open-vm-tools/template
+++ b/srcpkgs/open-vm-tools/template
@@ -20,6 +20,7 @@ homepage="https://github.com/vmware/open-vm-tools"
 changelog="https://github.com/vmware/open-vm-tools/blob/master/open-vm-tools/ChangeLog"
 distfiles="https://github.com/vmware/open-vm-tools/archive/stable-${version}.tar.gz"
 checksum=7c31bb8ef70a0e32b81cde6550cae390a53108e4abb28bb539b0ab5b9e4fc188
+patch_args=-Np0
 
 build_options="pam x11"
 build_options_default="pam x11"
diff --git a/srcpkgs/openbabel/template b/srcpkgs/openbabel/template
index 83eef561f8a4..9e16fb318d30 100644
--- a/srcpkgs/openbabel/template
+++ b/srcpkgs/openbabel/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="http://openbabel.org"
 distfiles="https://github.com/openbabel/openbabel/archive/openbabel-${_ver}.tar.gz"
 checksum=594c7f8a83f3502381469d643f7b185882da1dd4bc2280c16502ef980af2a776
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" python"
diff --git a/srcpkgs/openblas/template b/srcpkgs/openblas/template
index 58a75941be47..2e3773fc1073 100644
--- a/srcpkgs/openblas/template
+++ b/srcpkgs/openblas/template
@@ -14,6 +14,7 @@ homepage="https://www.openblas.net/"
 changelog="https://raw.githubusercontent.com/xianyi/OpenBLAS/v${version}/Changelog.txt"
 distfiles="https://github.com/xianyi/OpenBLAS/archive/v${version}.tar.gz"
 checksum=79197543b17cc314b7e43f7a33148c308b0807cd6381ee77f77e15acf3e6459e
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	armv5*) make_build_args+=" TARGET=ARMV5" ;;
diff --git a/srcpkgs/openbox/template b/srcpkgs/openbox/template
index fb62d8d4fedb..346329d63bc2 100644
--- a/srcpkgs/openbox/template
+++ b/srcpkgs/openbox/template
@@ -20,6 +20,7 @@ homepage="http://www.openbox.org"
 distfiles="http://openbox.org/dist/openbox/openbox-$version.tar.xz"
 checksum=abe75855cc5616554ffd47134ad15291fe37ebbebf1a80b69cbde9d670f0e26d
 python_version=2 #unverified
+patch_args=-Np0
 
 # Package build options
 build_options="svg"
diff --git a/srcpkgs/openbsd-file/template b/srcpkgs/openbsd-file/template
index 839afee47d07..0556a0f33b35 100644
--- a/srcpkgs/openbsd-file/template
+++ b/srcpkgs/openbsd-file/template
@@ -12,6 +12,7 @@ license="ISC"
 homepage="https://github.com/brynet/file/"
 distfiles="https://github.com/brynet/file/archive/v${version}.tar.gz"
 checksum=f6bf601f513bd83038e343bbd93b7982f373669a2ffa76dc52d48fa7251515b2
+patch_args=-Np0
 
 system_accounts="_file"
 
diff --git a/srcpkgs/opencollada/template b/srcpkgs/opencollada/template
index 6041120059b1..3bc1f23010f4 100644
--- a/srcpkgs/opencollada/template
+++ b/srcpkgs/opencollada/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/KhronosGroup/OpenCOLLADA"
 distfiles="https://github.com/KhronosGroup/OpenCOLLADA/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=d9db0c0a518aa6ac0359626f222707c6ca1b63a83cbf229d97a5999c9cde347b
+patch_args=-Np0
 
 CXXFLAGS="-fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
 if [ -n "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/opencolorio/template b/srcpkgs/opencolorio/template
index 179736598588..c444616b8c64 100644
--- a/srcpkgs/opencolorio/template
+++ b/srcpkgs/opencolorio/template
@@ -19,6 +19,7 @@ homepage="http://opencolorio.org"
 changelog="https://raw.githubusercontent.com/imageworks/OpenColorIO/master/ChangeLog"
 distfiles="https://github.com/imageworks/OpenColorIO/archive/v${version}.tar.gz"
 checksum=c9b5b9def907e1dafb29e37336b702fff22cc6306d445a13b1621b8a754c14c8
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/opencv/template b/srcpkgs/opencv/template
index 4ebf6fe915ed..a484fbc92560 100644
--- a/srcpkgs/opencv/template
+++ b/srcpkgs/opencv/template
@@ -18,6 +18,7 @@ license="BSD-3-Clause"
 homepage="https://opencv.org"
 distfiles="https://github.com/opencv/${pkgname}/archive/${version}.tar.gz"
 checksum=1ed6f5b02a7baf14daca04817566e7c98ec668cec381e0edf534fa49f10f58a2
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/opencv4/template b/srcpkgs/opencv4/template
index f15c5f1ec2f1..02a8e293b97b 100644
--- a/srcpkgs/opencv4/template
+++ b/srcpkgs/opencv4/template
@@ -24,6 +24,7 @@ distfiles="https://github.com/opencv/opencv/archive/${version}.tar.gz
 	https://github.com/opencv/opencv_contrib/archive/${version}.tar.gz>contrib.tar.gz"
 checksum="68bc40cbf47fdb8ee73dfaf0d9c6494cd095cf6294d99de445ab64cf853d278a
 	acb8e89c9e7d1174e63e40532125b60d248b00e517255a98a419d415228c6a55"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/opendkim/template b/srcpkgs/opendkim/template
index c9d0abfda66c..cccc65ca3f3b 100644
--- a/srcpkgs/opendkim/template
+++ b/srcpkgs/opendkim/template
@@ -13,6 +13,7 @@ homepage="http://www.opendkim.org"
 distfiles="${SOURCEFORGE_SITE}/project/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=43a0ba57bf942095fe159d0748d8933c6b1dd1117caf0273fa9a0003215e681b
 python_version=2 #unverified
+patch_args=-Np0
 
 pre_configure() {
 	 autoreconf -fi
diff --git a/srcpkgs/openexr/template b/srcpkgs/openexr/template
index 3f1b59753c1b..f99fd2d8ab51 100644
--- a/srcpkgs/openexr/template
+++ b/srcpkgs/openexr/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://www.openexr.com/"
 distfiles="https://github.com/openexr/openexr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=3ebbe9a8e67edb4a25890b98c598e9fe23b10f96d1416d6a3ff0732e99d001c1
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/openjade/template b/srcpkgs/openjade/template
index 5d27cec3f6cb..401ab09110bb 100644
--- a/srcpkgs/openjade/template
+++ b/srcpkgs/openjade/template
@@ -19,6 +19,7 @@ homepage="http://openjade.sourceforge.net/"
 license="MIT"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-$version.tar.gz"
 checksum=1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1
+patch_args=-Np0
 
 CXXFLAGS="-fno-lifetime-dse"
 
diff --git a/srcpkgs/openjpeg2/template b/srcpkgs/openjpeg2/template
index 4e6f16ac7ced..dae52dc78195 100644
--- a/srcpkgs/openjpeg2/template
+++ b/srcpkgs/openjpeg2/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="http://www.openjpeg.org/"
 distfiles="https://github.com/uclouvain/openjpeg/archive/v${version}.tar.gz"
 checksum=8702ba68b442657f11aaeb2b338443ca8d5fb95b0d845757968a7be31ef7f16d
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/openlierox/template b/srcpkgs/openlierox/template
index 7ae0e22f2d3d..343b26f494f7 100644
--- a/srcpkgs/openlierox/template
+++ b/srcpkgs/openlierox/template
@@ -17,6 +17,7 @@ distfiles="${SOURCEFORGE_SITE}/openlierox/OpenLieroX_${version/.rc/_rc}.src.tar.
 checksum=3e029aba20f22d902027293e1f1a196e2f1794455cb2483d099709d7fb6c5fbb
 python_version=2
 replaces="openlierox-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libxml2"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/openmpi/template b/srcpkgs/openmpi/template
index ce8585fa6835..0881292b2772 100644
--- a/srcpkgs/openmpi/template
+++ b/srcpkgs/openmpi/template
@@ -19,6 +19,7 @@ distfiles="${homepage}/software/ompi/v${version%.*}/downloads/${pkgname}-${versi
 checksum=e24f7a778bd11a71ad0c14587a7f5b00e68a71aa5623e2157bafee3d44c07cda
 nocross="configure attempts to run target binaries"
 lib32disabled=yes
+patch_args=-Np0
 
 post_extract() {
 	vsed -e 's,sys/unistd.h,unistd.h,g' -i opal/include/opal/sys/cma.h
diff --git a/srcpkgs/openntpd/template b/srcpkgs/openntpd/template
index 34bb4ed3a5eb..e8c003ec9fd8 100644
--- a/srcpkgs/openntpd/template
+++ b/srcpkgs/openntpd/template
@@ -13,6 +13,7 @@ license="ISC"
 homepage="http://openntpd.org/"
 distfiles="http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/${pkgname}-${version}.tar.gz"
 checksum=7b02691524197e01ba6b1b4b7595b33956e657ba6d5c4cf2fc20ea3f4914c13a
+patch_args=-Np0
 
 conf_files="/etc/ntpd.conf"
 provides="ntp-daemon-0_1"
diff --git a/srcpkgs/opensm/template b/srcpkgs/opensm/template
index 101bf3a27ce2..62b6cf0ea3aa 100644
--- a/srcpkgs/opensm/template
+++ b/srcpkgs/opensm/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/linux-rdma/opensm"
 distfiles="https://github.com/linux-rdma/opensm/releases/download/${version}/opensm-${version}.tar.gz"
 checksum=1e0dc56a5cf5f8e5cd68bd534591405a5f5f1975ace40509f61a43cc2fe74ca7
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/opensmtpd-extras/template b/srcpkgs/opensmtpd-extras/template
index f022e13ed9cb..b8b0a4b5a0a8 100644
--- a/srcpkgs/opensmtpd-extras/template
+++ b/srcpkgs/opensmtpd-extras/template
@@ -16,6 +16,7 @@ license="ISC"
 homepage="https://www.opensmtpd.org"
 distfiles="https://www.opensmtpd.org/archives/${pkgname}-${version}.tar.gz"
 checksum=126b023602e8bb222bf24543a056ee0a548343dc86d184669ff9d82dfca1fbdf
+patch_args=-Np0
 
 CFLAGS="-D_DEFAULT_SOURCE"
 
diff --git a/srcpkgs/opensmtpd/template b/srcpkgs/opensmtpd/template
index ab0b2e6a10ab..5dfe9d09b811 100644
--- a/srcpkgs/opensmtpd/template
+++ b/srcpkgs/opensmtpd/template
@@ -26,6 +26,7 @@ checksum=51bf05312fe56764748faab9e63170bfbb7c7d84a37c4117b62b2681eb3a4d17
 provides="smtp-forwarder-0_1 smtp-server-0_1"
 replaces="smtp-forwarder>=0 smtp-server>=0"
 system_accounts="_smtpd _smtpq"
+patch_args=-Np0
 
 CFLAGS=-D_DEFAULT_SOURCE
 
diff --git a/srcpkgs/opensonic/template b/srcpkgs/opensonic/template
index 4dff7f06bd79..5b438426d12c 100644
--- a/srcpkgs/opensonic/template
+++ b/srcpkgs/opensonic/template
@@ -17,6 +17,7 @@ distfiles="${SOURCEFORGE_SITE}/opensnc/opensnc-src-${version}.tar.gz
  https://github.com/t6/loggcompat/archive/${_loggcompat_ver}.tar.gz"
 checksum="3a4c3fa9538ee27c04b5ea848c9ad0a83f335471936d4617a18d3648c42588e9
  481fe569959eefa92d0babeca27709b2efcf7a815cd5c49596b6c0403db76a4e"
+patch_args=-Np0
 
 replaces="opensonic-data>=0"
 CFLAGS="-I./../loggcompat-${_loggcompat_ver}"
diff --git a/srcpkgs/openssh/template b/srcpkgs/openssh/template
index 95c8b31073b3..fdd089dab38a 100644
--- a/srcpkgs/openssh/template
+++ b/srcpkgs/openssh/template
@@ -26,6 +26,7 @@ distfiles="https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/${pkgname}-${ver
 checksum=c3e6e4da1621762c850d03b47eed1e48dff4cc9608ddeb547202a234df8ed7ae
 conf_files="/etc/ssh/moduli /etc/ssh/ssh_config /etc/ssh/sshd_config /etc/pam.d/sshd"
 make_dirs="/var/chroot/ssh 0755 root root"
+patch_args=-Np0
 
 # Package build options
 build_options="fido2 gssapi ldns ssl"
diff --git a/srcpkgs/openssl/template b/srcpkgs/openssl/template
index 01dfd74de14d..007e2fc5b3e2 100644
--- a/srcpkgs/openssl/template
+++ b/srcpkgs/openssl/template
@@ -20,6 +20,7 @@ distfiles="https://www.openssl.org/source/openssl-${version}.tar.gz"
 checksum=892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5
 conf_files="/etc/ssl/openssl.cnf"
 replaces="libressl>=0"
+patch_args=-Np0
 
 build_options=asm
 
diff --git a/srcpkgs/opensurge/template b/srcpkgs/opensurge/template
index f39fb0028075..90714ddef502 100644
--- a/srcpkgs/opensurge/template
+++ b/srcpkgs/opensurge/template
@@ -12,6 +12,7 @@ homepage="https://opensurge2d.org/"
 distfiles="https://github.com/alemart/opensurge/archive/v${version}.tar.gz"
 checksum=27764a82d97b54026c90044fbc31ea4a61f7836568020b869e63376322a155af
 replaces="opensurge-data>=0"
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e 's/GAME_BINDIR "games"/GAME_BINDIR "bin"/'
diff --git a/srcpkgs/opkg/template b/srcpkgs/opkg/template
index 33b8bdd334fe..04d4362ae15f 100644
--- a/srcpkgs/opkg/template
+++ b/srcpkgs/opkg/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://code.google.com/p/opkg/"
 distfiles="https://downloads.yoctoproject.org/releases/opkg/opkg-${version}.tar.gz"
 checksum=a1214a75fa34fb9228db8da47308e0e711b1c93fd8938cf164c10fd28eb50f1e
+patch_args=-Np0
 
 build_options="gpg lz4 ssl"
 build_options_default="ssl"
diff --git a/srcpkgs/oprofile/template b/srcpkgs/oprofile/template
index 6625c363438a..da5caf24f4c3 100644
--- a/srcpkgs/oprofile/template
+++ b/srcpkgs/oprofile/template
@@ -15,6 +15,7 @@ license="GPL-2.0-only"
 homepage="http://oprofile.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=7ba06f99d7c188389d20d1d5e53ee690c7733f87aa9af62bd664fa0ca235a412
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc*) makedepends+=" papi-devel";;
diff --git a/srcpkgs/oragono/template b/srcpkgs/oragono/template
index 33a91197e97c..d3e884253354 100644
--- a/srcpkgs/oragono/template
+++ b/srcpkgs/oragono/template
@@ -16,6 +16,7 @@ system_accounts="_oragono"
 _oragono_homedir="/var/lib/oragono"
 make_dirs="
  /var/lib/oragono 0755 _oragono _oragono"
+patch_args=-Np0
 
  post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/orion/template b/srcpkgs/orion/template
index d69f2ff04dd4..29feec2b0bd0 100644
--- a/srcpkgs/orion/template
+++ b/srcpkgs/orion/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/alamminsalo/orion"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=19d9c170d0bcf21d47947704d8c8e927cff5140f94cb840b51d2b8574b0149fb
+patch_args=-Np0
 
 do_install() {
 	vbin orion
diff --git a/srcpkgs/os-prober/template b/srcpkgs/os-prober/template
index f22ca4e63e9b..3cd0dcc7a0a3 100644
--- a/srcpkgs/os-prober/template
+++ b/srcpkgs/os-prober/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://packages.debian.org/sid/os-prober"
 distfiles="${DEBIAN_SITE}/main/o/${pkgname}/${pkgname}_${version}.tar.xz"
 checksum=6e909f511035698145ba01ad63fd53fce6ee24529c76e2698e346bbac49950e9
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) _ARCH="x86";;
diff --git a/srcpkgs/osg/template b/srcpkgs/osg/template
index 08bf6d4b6591..c01c0e253576 100644
--- a/srcpkgs/osg/template
+++ b/srcpkgs/osg/template
@@ -23,6 +23,7 @@ license="OSGPL-2.0-or-later"
 homepage="http://www.openscenegraph.org"
 distfiles="https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-${version}.tar.gz"
 checksum=930eb46f05781a76883ec16c5f49cfb29a059421db131005d75bec4d78401fd5
+patch_args=-Np0
 
 # Append CFLAGS and CXXFLAGS to set work around code which gcc6 would
 # otherwise regard as out-of-specification and allow it to produce a
diff --git a/srcpkgs/osmid/template b/srcpkgs/osmid/template
index f89e27caedc4..2482ca254713 100644
--- a/srcpkgs/osmid/template
+++ b/srcpkgs/osmid/template
@@ -11,6 +11,7 @@ license="MIT, ISC, GPL-3.0-or-later"
 homepage="https://github.com/llloret/osmid/"
 distfiles="https://github.com/llloret/osmid/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=774d6c2c7ba81d1ab9d4e7ee031ce15a1506f19ee940166d277dbdee98f87b50
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" libexecinfo-devel" ;;
diff --git a/srcpkgs/otfcc/template b/srcpkgs/otfcc/template
index b19fbcb5220d..38ec8833f280 100644
--- a/srcpkgs/otfcc/template
+++ b/srcpkgs/otfcc/template
@@ -11,6 +11,7 @@ license="Apache-2.0"
 homepage="https://github.com/caryll/otfcc"
 distfiles="https://github.com/caryll/otfcc/archive/v${version}.tar.gz"
 checksum=d9c74825ddac700eb429de31de7cb0a249636f47c6a4cc64eaa102a40966cf00
+patch_args=-Np0
 
 # Yes, there are architectures besides x86 and x64 :-P
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/otpw/template b/srcpkgs/otpw/template
index 03c9c86d6a19..2f86ba39e087 100644
--- a/srcpkgs/otpw/template
+++ b/srcpkgs/otpw/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="http://www.cl.cam.ac.uk/~mgk25/otpw.html"
 distfiles="https://www.cl.cam.ac.uk/%7Emgk25/download/otpw-${version}.tar.gz"
 checksum=98aca38a61c7713677b96f24426ca7053480c0fd077d91b1e99bc9f92ccb832a
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC LD=$LD CFLAGS="$CFLAGS -fPIC" LDFLAGS="$LDFLAGS" ${makejobs}
diff --git a/srcpkgs/owncloudclient/template b/srcpkgs/owncloudclient/template
index 2146b9110d17..cf7871bd6477 100644
--- a/srcpkgs/owncloudclient/template
+++ b/srcpkgs/owncloudclient/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.owncloud.org"
 distfiles="https://github.com/owncloud/client/archive/v${version}.tar.gz"
 checksum=aafc6044a4c6727ad747195cb90a6be8c3a5b28de50df97fa961b6b551fe6d89
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-tools-devel"
diff --git a/srcpkgs/p7zip/template b/srcpkgs/p7zip/template
index 642e24adaf52..192db3c04f6b 100644
--- a/srcpkgs/p7zip/template
+++ b/srcpkgs/p7zip/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://p7zip.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}_src_all.tar.bz2"
 checksum=5eb20ac0e2944f6cb9c2d51dd6c4518941c185347d4089ea89087ffdd6e2341f
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/pa-applet/template b/srcpkgs/pa-applet/template
index e190ff2d99ad..c4586b7be4f1 100644
--- a/srcpkgs/pa-applet/template
+++ b/srcpkgs/pa-applet/template
@@ -13,6 +13,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/fernandotcl/pa-applet"
 distfiles="$homepage/archive/$_commit.tar.gz"
 checksum=db30c04a6954e1d138c6bc80739dae80d667a0af151b015db503e48fb30b0b7a
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e 's| -Werror||' src/Makefile.am
diff --git a/srcpkgs/pacman/template b/srcpkgs/pacman/template
index d23aba0468bf..c676fb361132 100644
--- a/srcpkgs/pacman/template
+++ b/srcpkgs/pacman/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.archlinux.org/pacman/"
 distfiles="https://sources.archlinux.org/other/pacman/pacman-${version}.tar.gz"
 checksum=bb201a9f2fb53c28d011f661d50028efce6eef2c1d2a36728bdd0130189349a0
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	do_check() {
diff --git a/srcpkgs/pahole/template b/srcpkgs/pahole/template
index d3b720d72f24..ee34924e70c7 100644
--- a/srcpkgs/pahole/template
+++ b/srcpkgs/pahole/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://git.kernel.org/?p=devel/pahole/pahole.git;a=summary"
 distfiles="https://fedorapeople.org/~acme/dwarves/dwarves-${version}.tar.xz"
 checksum=33a8bed6c0e1a5889578e01d1afed3f752353dc087d8bda36d258fe83e42a476
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	*-musl) makedepends+=" musl-obstack-devel argp-standalone"
diff --git a/srcpkgs/pam-mount/template b/srcpkgs/pam-mount/template
index 0a8e38d9de8c..235c7025df49 100644
--- a/srcpkgs/pam-mount/template
+++ b/srcpkgs/pam-mount/template
@@ -16,6 +16,7 @@ homepage="http://pam-mount.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pam-mount/pam_mount/${version}/pam_mount-${version}.tar.xz"
 checksum=ae0207ea6c96189414f906a7b0880abc7751a98e26b3d0375c9afab3722471e7
 conf_files="/etc/security/pam_mount.conf.xml"
+patch_args=-Np0
 
 libpam-mount_package() {
 	short_desc+=" - runtime library"
diff --git a/srcpkgs/pam-u2f/template b/srcpkgs/pam-u2f/template
index 7c1b5034a28d..02fb19f2b41d 100644
--- a/srcpkgs/pam-u2f/template
+++ b/srcpkgs/pam-u2f/template
@@ -14,6 +14,7 @@ homepage="https://developers.yubico.com/pam-u2f/"
 #changelog="https://raw.githubusercontent.com/Yubico/pam-u2f/master/NEWS"
 distfiles="https://developers.yubico.com/pam-u2f/Releases/pam_u2f-${version}.tar.gz"
 checksum=0dc3bf96ebb69c6e398b5f8991493b37a8ce1af792948af71e694f695d5edc05
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/pam_ssh/template b/srcpkgs/pam_ssh/template
index eba01a0fa450..b2d2ae5f4483 100644
--- a/srcpkgs/pam_ssh/template
+++ b/srcpkgs/pam_ssh/template
@@ -14,6 +14,7 @@ license="BSD-2-Clause"
 homepage="http://pam-ssh.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pam-ssh/${pkgname}-${version}.tar.xz"
 checksum=0c456f6a5c9e47ce6825ac50d467e7a797e14239b2b9a72bfeb2df0100f4af31
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/pam_ssh_agent_auth/template b/srcpkgs/pam_ssh_agent_auth/template
index 507448245108..05c7a4f346c1 100644
--- a/srcpkgs/pam_ssh_agent_auth/template
+++ b/srcpkgs/pam_ssh_agent_auth/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://pamsshagentauth.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pamsshagentauth/${pkgname}-${version}.tar.bz2"
 checksum=3c53d358d6eaed1b211239df017c27c6f9970995d14102ae67bae16d4f47a763
+patch_args=-Np0
 
 post_extract() {
 	vsed -e '/^AR=/d' -i Makefile.in -i openbsd-compat/Makefile.in
diff --git a/srcpkgs/papi/template b/srcpkgs/papi/template
index f8010c4b1591..c8d6d1e79fbf 100644
--- a/srcpkgs/papi/template
+++ b/srcpkgs/papi/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://icl.cs.utk.edu/papi/"
 distfiles="http://icl.utk.edu/projects/papi/downloads/papi-${version}.tar.gz"
 checksum=d1a3bb848e292c805bc9f29e09c27870e2ff4cda6c2fba3b7da8b4bba6547589
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	_ARCH="${XBPS_TARGET_MACHINE%-musl}"
diff --git a/srcpkgs/par/template b/srcpkgs/par/template
index 54747129b79a..0f8b5c52e165 100644
--- a/srcpkgs/par/template
+++ b/srcpkgs/par/template
@@ -12,6 +12,7 @@ distfiles="http://www.nicemice.net/par/Par152-autoconf.tar.gz
  http://www.nicemice.net/par/Par152.tar.gz"
 checksum="034fb943236523629eefee0a33fc6afb5b881648a2fc5c6bef7fd1b89ce44d34
  33dcdae905f4b4267b4dc1f3efb032d79705ca8d2122e17efdecfd8162067082"
+patch_args=-Np0
 
 do_install() {
 	vbin par
diff --git a/srcpkgs/par2cmdline/template b/srcpkgs/par2cmdline/template
index 548de4363a7c..10e1b5c63f40 100644
--- a/srcpkgs/par2cmdline/template
+++ b/srcpkgs/par2cmdline/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Parchive/par2cmdline"
 distfiles="https://github.com/Parchive/par2cmdline/archive/v${version}.tar.gz"
 checksum=529f85857ec44e501cd8d95b0c8caf47477d7daa5bfb989e422c800bb71b689a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/paraview/template b/srcpkgs/paraview/template
index 20a7f5589677..875b5d1f176b 100644
--- a/srcpkgs/paraview/template
+++ b/srcpkgs/paraview/template
@@ -34,6 +34,7 @@ license="BSD-3-Clause"
 homepage="https://www.paraview.org"
 distfiles="https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${version:0:3}&type=source&os=Sources&downloadFile=ParaView-v${version}.tar.xz>paraview-${version}.tar.xz"
 checksum=7653950392a0d7c0287c26f1d3a25cdbaa11baa7524b0af0e6a1a0d7d487d034
+patch_args=-Np0
 
 CFLAGS="-DYYERROR_VERBOSE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DGNU_SOURCE -fcommon"
 CXXFLAGS="${CFLAGS}"
diff --git a/srcpkgs/parcellite/template b/srcpkgs/parcellite/template
index 98f7b661cd74..cb4de9fe6082 100644
--- a/srcpkgs/parcellite/template
+++ b/srcpkgs/parcellite/template
@@ -12,5 +12,6 @@ license="GPL-3.0-or-later"
 homepage="http://parcellite.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/parcellite/${version}/parcellite-${version}.tar.gz"
 checksum=aba1c7c56c7607e219ce9855723eefa552c5376982891aefbfb5a2d3297ef046
+patch_args=-Np0
 
 export LIBS=-lgio-2.0
diff --git a/srcpkgs/partclone/template b/srcpkgs/partclone/template
index 4813a8a250dd..5140c3dcf878 100644
--- a/srcpkgs/partclone/template
+++ b/srcpkgs/partclone/template
@@ -16,6 +16,7 @@ homepage="http://www.partclone.org/"
 distfiles="https://github.com/Thomas-Tsai/${pkgname}/archive/${version}.tar.gz"
 checksum=ef1391db3801e4b3ef82fc9417f1d7f0542b7229b3394120072b2dfeae0bbbb0
 CFLAGS="-DBTRFS_DISABLE_BACKTRACE"
+patch_args=-Np0
 
 pre_configure() {
 	./autogen
diff --git a/srcpkgs/passwordsafe/template b/srcpkgs/passwordsafe/template
index c4eab0c120ec..7d07f7849bea 100644
--- a/srcpkgs/passwordsafe/template
+++ b/srcpkgs/passwordsafe/template
@@ -16,6 +16,7 @@ license="Artistic-2.0"
 homepage="https://pwsafe.org"
 distfiles="https://github.com/pwsafe/pwsafe/archive/${version}.tar.gz"
 checksum=8962edf57b7f901d9ed23496c8ec387a4f186855976e8ac98f2dd55560c82ebe
+patch_args=-Np0
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -DNO_GTEST=OFF"
diff --git a/srcpkgs/pax/template b/srcpkgs/pax/template
index 0612a94cfebe..5a678b9e614f 100644
--- a/srcpkgs/pax/template
+++ b/srcpkgs/pax/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://www.mirbsd.org/MirOS/dist/mir/cpio/"
 distfiles="https://www.mirbsd.org/MirOS/dist/mir/cpio/paxmirabilis-${version}.cpio.gz"
 checksum=fe3f99c28ba7a46c4bce0b329da3742908b87fe8fbe17f0db1f99a1bd053d46b
+patch_args=-Np0
 
 alternatives="
  pax:pax:/usr/bin/paxmirabilis
diff --git a/srcpkgs/pcaudiolib/template b/srcpkgs/pcaudiolib/template
index 7f40e0388e16..54a1bf27c10f 100644
--- a/srcpkgs/pcaudiolib/template
+++ b/srcpkgs/pcaudiolib/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/espeak-ng/pcaudiolib"
 distfiles="https://github.com/espeak-ng/pcaudiolib/archive/${version}.tar.gz"
 checksum=699a5a347b1e12dc5b122e192e19f4db01621826bf41b9ebefb1cbc63ae2180b
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/pcc/template b/srcpkgs/pcc/template
index 84b020278d6d..e770914485c4 100644
--- a/srcpkgs/pcc/template
+++ b/srcpkgs/pcc/template
@@ -19,6 +19,7 @@ distfiles="
 checksum="a114dfca04b8b0559ea5d67b87d2d0fcb2bae2b4d9b9ba16ebc27960b921c812
  e810aa4d6683e769f490f734b13a296b33c2511ddba646bc526eb85532f1a23a"
 nocross=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/pchar/template b/srcpkgs/pchar/template
index da229e4e94c8..8186eb4aac29 100644
--- a/srcpkgs/pchar/template
+++ b/srcpkgs/pchar/template
@@ -9,6 +9,7 @@ license="custom"
 homepage="http://www.kitchenlab.org/www/bmah/Software/pchar/"
 distfiles="http://www.kitchenlab.org/www/bmah/Software/pchar/${pkgname}-${version}.tar.gz"
 checksum=7019297084f1000557a019501532ecae67772851717329cc02227f5c17e36d27
+patch_args=-Np0
 
 do_install() {
 	vbin pchar
diff --git a/srcpkgs/pcsclite/template b/srcpkgs/pcsclite/template
index ad9e221bfbc7..9363f84af591 100644
--- a/srcpkgs/pcsclite/template
+++ b/srcpkgs/pcsclite/template
@@ -14,6 +14,7 @@ license="BSD-2-Clause"
 homepage="https://salsa.debian.org/debian/pcsc-lite"
 distfiles="https://salsa.debian.org/debian/pcsc-lite/-/archive/upstream/${version}/pcsc-lite-upstream-${version}.tar.gz"
 checksum=686fbd1c29e282388111f01b6fdfa4fe6b8349908236645b869115b21e4f73e8
+patch_args=-Np0
 
 post_install() {
 	vsv pcscd
diff --git a/srcpkgs/pcsx2/template b/srcpkgs/pcsx2/template
index 59f8dfcdce71..9fef26e81efb 100644
--- a/srcpkgs/pcsx2/template
+++ b/srcpkgs/pcsx2/template
@@ -2,6 +2,7 @@
 archs="i686*"
 lib32mode="full"
 nopie=yes
+patch_args=-Np0
 
 pkgname=pcsx2
 version=1.6.0
diff --git a/srcpkgs/pd/template b/srcpkgs/pd/template
index 544afccd5410..df8bcc64fb11 100644
--- a/srcpkgs/pd/template
+++ b/srcpkgs/pd/template
@@ -15,6 +15,7 @@ license="BSD-3-Clause"
 homepage="https://puredata.info"
 distfiles="http://msp.ucsd.edu/Software/pd-$_ver.src.tar.gz"
 checksum=52591f18316e9f2471ca21c3d6b41c56336e0615ec40a093232e95cc230bfcc1
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/pdsh/template b/srcpkgs/pdsh/template
index e03e90656ad0..21d327d84a38 100644
--- a/srcpkgs/pdsh/template
+++ b/srcpkgs/pdsh/template
@@ -26,6 +26,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/chaos/pdsh"
 distfiles="https://github.com/chaos/pdsh/archive/pdsh-${version}.tar.gz"
 checksum=36e1b3c734ae9b4baf054c656b9735206cc56b290d2c0ec4f7825cdd9f7dff54
+patch_args=-Np0
 
 build_options="rsh exec ssh mrsh xcpu netgroup readline"
 build_options_default="rsh exec ssh mrsh readline"
diff --git a/srcpkgs/perl-Text-BibTeX/template b/srcpkgs/perl-Text-BibTeX/template
index bf385a1c465e..af0285bd8a2a 100644
--- a/srcpkgs/perl-Text-BibTeX/template
+++ b/srcpkgs/perl-Text-BibTeX/template
@@ -13,6 +13,7 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/Text-BibTeX/"
 distfiles="${CPAN_SITE}/Text/${pkgname/perl-/}-${version}.tar.gz"
 checksum=b014586e68bdbcafb0a2cfa0401eb0a04ea5de8c4d5bc36dd0f7faeab6acf42c
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	_perlprefix=${XBPS_STATEDIR}/perlprefix-${XBPS_TARGET_MACHINE}
diff --git a/srcpkgs/perl-Tk/template b/srcpkgs/perl-Tk/template
index 3515340159f4..6c2dbb6e2690 100644
--- a/srcpkgs/perl-Tk/template
+++ b/srcpkgs/perl-Tk/template
@@ -14,6 +14,7 @@ homepage="https://metacpan.org/release/Tk"
 license="Artistic-1.0-Perl, GPL-1.0-or-later"
 distfiles="${CPAN_SITE}/Tk/Tk-${version}.tar.gz"
 checksum=4d2b80291ba6de34d8ec886a085a6dbd2b790b926035a087e99025614c5ffdd4
+patch_args=-Np0
 
 post_configure() {
 	sed -i 's,X11/Xproto.h,,; s,X11/Xutil.h,,' pTk/Makefile
diff --git a/srcpkgs/perl-WWW-Curl/template b/srcpkgs/perl-WWW-Curl/template
index 5ff52959bfb0..e3e11f40736e 100644
--- a/srcpkgs/perl-WWW-Curl/template
+++ b/srcpkgs/perl-WWW-Curl/template
@@ -13,6 +13,7 @@ homepage="https://metacpan.org/release/WWW-Curl"
 license="MIT"
 distfiles="${CPAN_SITE}/WWW/WWW-Curl-$version.tar.gz"
 checksum=52ffab110e32348d775f241c973eb56f96b08eedbc110d77d257cdb0a24ab7ba
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/perl/template b/srcpkgs/perl/template
index 29da654b2f30..c5929e12b783 100644
--- a/srcpkgs/perl/template
+++ b/srcpkgs/perl/template
@@ -16,6 +16,7 @@ distfiles="https://www.cpan.org/src/5.0/perl-${version}.tar.gz
  https://github.com/arsv/perl-cross/releases/download/${_perl_cross_version}/perl-cross-${_perl_cross_version}.tar.gz"
 checksum="03b693901cd8ae807231b1787798cf1f2e0b8a56218d07b7da44f784a7caeb2c
  91c66f6b2b99fccfd4fee14660b677380b0c98f9456359e91449798c2ad2ef25"
+patch_args=-Np0
 
 # Before updating this package to a new major version, run ${FILESDIR}/provides.pl
 # against ${wrksrc} to find the list of built in packages.
diff --git a/srcpkgs/pgadmin3/template b/srcpkgs/pgadmin3/template
index ad2465b3413c..c4fc9f3c2aab 100644
--- a/srcpkgs/pgadmin3/template
+++ b/srcpkgs/pgadmin3/template
@@ -13,6 +13,7 @@ homepage="http://www.pgadmin.org"
 distfiles="https://ftp.postgresql.org/pub/pgadmin/pgadmin3/v${version}/src/pgadmin3-${version}.tar.gz"
 checksum=9b68b0e3d3f0a261344fb8196825967d1e7acaca1d8cc82c42e12368ca5844ac
 nocross=yes
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/php/template b/srcpkgs/php/template
index bdc35ee2d846..4d5649ef85ba 100644
--- a/srcpkgs/php/template
+++ b/srcpkgs/php/template
@@ -14,6 +14,7 @@ license="PHP-3.01"
 homepage="https://www.php.net"
 distfiles="http://www.php.net/distributions/php-${version}.tar.xz"
 checksum=f9f3c37969fcd9006c1dbb1dd76ab53f28c698a1646fa2dde8547c3f45e02886
+patch_args=-Np0
 
 conf_files="/etc/php/php.ini"
 
diff --git a/srcpkgs/pidgin-libnotify/template b/srcpkgs/pidgin-libnotify/template
index 5a627f323836..670f6336a6d6 100644
--- a/srcpkgs/pidgin-libnotify/template
+++ b/srcpkgs/pidgin-libnotify/template
@@ -14,6 +14,7 @@ homepage="http://gaim-libnotify.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/gaim-libnotify/${pkgname}-${version}.tar.gz"
 checksum=74f4a9f20e0a483df39974178f1f2380786176189512bcd438e4ada280ec3abe
 lib32disabled=yes
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/pidgin/template b/srcpkgs/pidgin/template
index a2668cf685eb..fb6513a00455 100644
--- a/srcpkgs/pidgin/template
+++ b/srcpkgs/pidgin/template
@@ -18,6 +18,7 @@ distfiles="${SOURCEFORGE_SITE}/pidgin/pidgin-${version}.tar.bz2"
 checksum=2747150c6f711146bddd333c496870bfd55058bab22ffb7e4eb784018ec46d8f
 python_version=2 #unverified
 lib32disabled=yes
+patch_args=-Np0
 
 hostmakedepends="pkg-config intltool automake libtool gettext gettext-devel glib-devel"
 makedepends="libglib-devel gtk+-devel libXext-devel
diff --git a/srcpkgs/pijul/template b/srcpkgs/pijul/template
index 40df186b9387..ad8534111db3 100644
--- a/srcpkgs/pijul/template
+++ b/srcpkgs/pijul/template
@@ -14,6 +14,7 @@ distfiles="https://crates.io/api/v1/crates/pijul/${version}/download>pijul-${ver
  https://gitlab.com/sequoia-pgp/sequoia/-/archive/v${_sequoia_ver}/sequoia-v${_sequoia_ver}.tar.gz"
 checksum="f92a3f4063e780ca45c161ceb0f42baf34dfeddf3359ebf6c2e0442d9abb5889
  71823c88b9666611f3cfa6b1d923bd66fda92fa6a53368b195bd2f962fdf7f4b"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	export HOST_CC="$BUILD_CC"
diff --git a/srcpkgs/pilot-link/template b/srcpkgs/pilot-link/template
index 5b83232cef8c..e42936b5e2d3 100644
--- a/srcpkgs/pilot-link/template
+++ b/srcpkgs/pilot-link/template
@@ -18,6 +18,7 @@ homepage="http://www.pilot-link.org/"
 #distfiles="http://downloads.pilot-link.org/${pkgname}-${version}.tar.bz2"
 distfiles="https://mirrors.slackware.com/slackware/slackware-14.1/source/l/pilot-link/pilot-link-${version}.tar.bz2"
 checksum=d3f99ec04016b38995fb370265200254710318105c792c017d3aaccfb97a84b2
+patch_args=-Np0
 
 # Avoid error because of deprecation
 CFLAGS="-Wno-deprecated-declarations"
diff --git a/srcpkgs/pinebookpro-uboot/template b/srcpkgs/pinebookpro-uboot/template
index db629c4a8e53..ce053ca69d80 100644
--- a/srcpkgs/pinebookpro-uboot/template
+++ b/srcpkgs/pinebookpro-uboot/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only, BSD-3-Clause"
 homepage="https://www.denx.de/wiki/U-Boot/"
 distfiles="https://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2"
 checksum=0d481bbdc05c0ee74908ec2f56a6daa53166cc6a78a0e4fac2ac5d025770a622
+patch_args=-Np0
 
 do_configure() {
 	unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
diff --git a/srcpkgs/pingus/template b/srcpkgs/pingus/template
index 8e126cf7466e..a4f8d003f7f7 100644
--- a/srcpkgs/pingus/template
+++ b/srcpkgs/pingus/template
@@ -14,6 +14,7 @@ homepage="https://pingus.seul.org/"
 distfiles="https://gitlab.com/pingus/pingus/-/archive/v${version}/pingus-v${version}.tar.gz"
 checksum=31cb2c0ecddd49dbe03535648e8c7c2971da469c52af52cdf9dc2459798342c8
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	# XXX: defining CXXFLAGS breaks dependency detection.
diff --git a/srcpkgs/pioneer/template b/srcpkgs/pioneer/template
index 40812890ec7a..c4b81ba6968d 100644
--- a/srcpkgs/pioneer/template
+++ b/srcpkgs/pioneer/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://pioneerspacesim.net"
 distfiles="https://github.com/pioneerspacesim/pioneer/archive/${version}.tar.gz"
 checksum=fcbc57374123b44161e9d15d97bd950255f654a222840894f50bfc2be716ea68
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" pioneer-modelcompiler"
diff --git a/srcpkgs/pipenightdreams/template b/srcpkgs/pipenightdreams/template
index baf9b32f95d1..a8de6c96d19a 100644
--- a/srcpkgs/pipenightdreams/template
+++ b/srcpkgs/pipenightdreams/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.libsdl.org/projects/pipenightdreams"
 distfiles="${homepage}/packages/${pkgname}-${version}.tar.bz2"
 checksum=302f8ce6e0eb32ebd779700527095cf086c2c7132d47095bae9a43c346245541
+patch_args=-Np0
 
 pre_configure() {
 	find . -type f -exec sed -i "{}" -e "s;/games/;/;g" \;
diff --git a/srcpkgs/pipewire/template b/srcpkgs/pipewire/template
index 43e3c1cfc9b4..ac6ce7fffd6f 100644
--- a/srcpkgs/pipewire/template
+++ b/srcpkgs/pipewire/template
@@ -19,6 +19,7 @@ homepage="https://pipewire.org/"
 changelog="https://gitlab.freedesktop.org/pipewire/pipewire/-/raw/master/NEWS"
 distfiles="https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/${version}/pipewire-${version}.tar.gz"
 checksum=1d9271e121a5049aef379e9bb7c50524faa6f971e668806637d7b9df1b7cab88
+patch_args=-Np0
 
 build_options="sdl2"
 
diff --git a/srcpkgs/pjproject/template b/srcpkgs/pjproject/template
index c94ead90e9de..041dd40b5047 100644
--- a/srcpkgs/pjproject/template
+++ b/srcpkgs/pjproject/template
@@ -24,6 +24,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.pjsip.org/pjsua.htm"
 distfiles="http://www.pjsip.org/release/${version}/${pkgname}-${version}.tar.bz2"
 checksum=503d0bd7f9f13dc1492ac9b71b761b1089851fbb608b9a13996edc3c42006f79
+patch_args=-Np0
 
 pre_configure() {
 	export LD="${CC}"
diff --git a/srcpkgs/plasma-framework/template b/srcpkgs/plasma-framework/template
index 8dd0abc2a5a8..8888c18fdcaa 100644
--- a/srcpkgs/plasma-framework/template
+++ b/srcpkgs/plasma-framework/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/plasma-framework"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=f128726985a21b895591bf694520dac3580e539d517c6e80230fc80166f8b9a1
+patch_args=-Np0
 
 plasma-framework-devel_package() {
 	short_desc+=" - development"
diff --git a/srcpkgs/plasma-workspace/template b/srcpkgs/plasma-workspace/template
index 049bc5c1f28e..fe6fdbf28433 100644
--- a/srcpkgs/plasma-workspace/template
+++ b/srcpkgs/plasma-workspace/template
@@ -24,6 +24,7 @@ license="GPL-2.0-or-later, GFDL-1.2-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/plasma/plasma-workspace"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=61ad5adab412c935ae156c4de3f38d1e2640752c95100ad6996b9e51e8539725
+patch_args=-Np0
 
 build_options="pipewire"
 build_options_default="pipewire"
diff --git a/srcpkgs/plex-media-player/template b/srcpkgs/plex-media-player/template
index 830d09f8579d..e2b23f24dfe6 100644
--- a/srcpkgs/plex-media-player/template
+++ b/srcpkgs/plex-media-player/template
@@ -38,6 +38,7 @@ skip_extraction="buildid-${_buildid_version}.cmake
  web-client-desktop-${_clientdesktop_version}.tar.xz.sha1
  web-client-tv-${_clienttv_version}.tar.xz
  web-client-tv-${_clienttv_version}.tar.xz.sha1"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-devel qt5-host-tools"
diff --git a/srcpkgs/plib/template b/srcpkgs/plib/template
index cde1e8335d24..c212ec3dd700 100644
--- a/srcpkgs/plib/template
+++ b/srcpkgs/plib/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-or-later"
 homepage="http://plib.sourceforge.net"
 distfiles="http://plib.sourceforge.net/dist/plib-${version}.tar.gz"
 checksum=485b22bf6fdc0da067e34ead5e26f002b76326f6371e2ae006415dea6a380a32
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/plocate/template b/srcpkgs/plocate/template
index 58252651243d..fa184f7b94c5 100644
--- a/srcpkgs/plocate/template
+++ b/srcpkgs/plocate/template
@@ -15,6 +15,7 @@ homepage="https://plocate.sesse.net/"
 changelog="https://git.sesse.net/?p=plocate;a=blob_plain;f=NEWS;hb=HEAD"
 distfiles="https://plocate.sesse.net/download/plocate-${version}.tar.gz"
 checksum=13002f065c28a93623a03d44c911a44f1659e8b1841aad80fd8a566a1200f43c
+patch_args=-Np0
 
 system_accounts="_plocate"
 
diff --git a/srcpkgs/plotutils/template b/srcpkgs/plotutils/template
index 6b64353081be..b047906f96cd 100644
--- a/srcpkgs/plotutils/template
+++ b/srcpkgs/plotutils/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="http://directory.fsf.org/wiki/Plotutils"
 distfiles="${GNU_SITE}/plotutils/plotutils-${version}.tar.gz"
 checksum=4f4222820f97ca08c7ea707e4c53e5a3556af4d8f1ab51e0da6ff1627ff433ab
+patch_args=-Np0
 
 plotutils-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/plume-creator/template b/srcpkgs/plume-creator/template
index 3c415a06cdd8..86bd3b86ee41 100644
--- a/srcpkgs/plume-creator/template
+++ b/srcpkgs/plume-creator/template
@@ -20,6 +20,7 @@ distfiles="
 checksum="
  f88f9524184bcf60dae855d6ad37899aefa39de0edd56098e93ce3b97b679e0c
  7d473ee7283bc311c7d4dd3311d1e7726df7d45fa0123894265f355b436298e1"
+patch_args=-Np0
 
 post_extract() {
 	mv -f ${wrksrc}/../debian ${wrksrc}/
diff --git a/srcpkgs/plymouth/template b/srcpkgs/plymouth/template
index 17f801fc5315..9b15ecb110a5 100644
--- a/srcpkgs/plymouth/template
+++ b/srcpkgs/plymouth/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.freedesktop.org/wiki/Software/Plymouth/"
 distfiles="${FREEDESKTOP_SITE}/plymouth/releases/$pkgname-$version.tar.xz"
 checksum=ecae257f351d098340542a5bc06de029404c24dcee87e6ebb2abd5ef117fce86
+patch_args=-Np0
 
 build_options="gtk3 pango"
 build_options_default="gtk3 pango"
diff --git a/srcpkgs/pmount/template b/srcpkgs/pmount/template
index 8a826f4e0fe6..f4bb5a0939f8 100644
--- a/srcpkgs/pmount/template
+++ b/srcpkgs/pmount/template
@@ -12,6 +12,7 @@ homepage="http://pmount.alioth.debian.org/"
 distfiles="${DEBIAN_SITE}/main/p/${pkgname}/${pkgname}_${version}.orig.tar.bz2"
 checksum=db38fc290b710e8e9e9d442da2fb627d41e13b3ee80326c15cc2595ba00ea036
 conf_files="/etc/pmount.allow"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/png++/template b/srcpkgs/png++/template
index b156d6063088..01788d947b49 100644
--- a/srcpkgs/png++/template
+++ b/srcpkgs/png++/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://www.nongnu.org/pngpp"
 distfiles="${NONGNU_SITE}/pngpp/${pkgname}-${version}.tar.gz"
 checksum=998af216ab16ebb88543fbaa2dbb9175855e944775b66f2996fc945c8444eee1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/polkit-qt5/template b/srcpkgs/polkit-qt5/template
index 7edc26624f5c..b4fdd7b240ab 100644
--- a/srcpkgs/polkit-qt5/template
+++ b/srcpkgs/polkit-qt5/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://projects.kde.org/projects/kdesupport/polkit-qt-1"
 distfiles="${KDE_SITE}/polkit-qt-1/polkit-qt-1-${version}.tar.xz"
 checksum=5b866a2954ef10ffb66156e2fe8ad0321b5528a8df2e4a91b02f5041ce5563a7
+patch_args=-Np0
 
 polkit-qt5-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/polkit/template b/srcpkgs/polkit/template
index 01d31d7dc6ae..0fc0d667eb22 100644
--- a/srcpkgs/polkit/template
+++ b/srcpkgs/polkit/template
@@ -22,6 +22,7 @@ checksum=6d54e984e7072339f0d3147179e16e34e5fe0705158f259a765d772dcf78956b
 system_accounts="polkitd"
 #replaces="polkit-elogind>=0"
 #provides="polkit-elogind-${version}_${revision}"
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/polygen/template b/srcpkgs/polygen/template
index 22811a9f7b99..20c1f27c3037 100644
--- a/srcpkgs/polygen/template
+++ b/srcpkgs/polygen/template
@@ -12,6 +12,7 @@ homepage="http://www.polygen.org"
 distfiles="${DEBIAN_SITE}/main/p/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=60dbcec8aedcbb2545202ad97d41e592f232b8fc842ea25a7998c88a385148d5
 nocross=yes
+patch_args=-Np0
 
 do_check() {
 	:
diff --git a/srcpkgs/portaudio/template b/srcpkgs/portaudio/template
index 7032f8da9d41..eaaacb9b299f 100644
--- a/srcpkgs/portaudio/template
+++ b/srcpkgs/portaudio/template
@@ -14,6 +14,7 @@ homepage="http://www.portaudio.com"
 distfiles="http://www.${pkgname}.com/archives/pa_stable_v${version%.*}_${version#*.}.tgz"
 checksum=f5a21d7dcd6ee84397446fa1fa1a0675bb2e8a4a6dceb4305a8404698d8d1513
 disable_parallel_build=yes
+patch_args=-Np0
 
 # sndio disabled by default: non-upstream patch
 build_options="sndio"
diff --git a/srcpkgs/portmidi/template b/srcpkgs/portmidi/template
index e3afd5cd8314..88906d95e148 100644
--- a/srcpkgs/portmidi/template
+++ b/srcpkgs/portmidi/template
@@ -17,6 +17,7 @@ license="MIT"
 homepage="http://portmedia.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/portmedia/${pkgname}/${version}/${pkgname}-src-${version}.zip"
 checksum=08e9a892bd80bdb1115213fb72dc29a7bf2ff108b378180586aa65f3cfd42e0f
+patch_args=-Np0
 
 post_install() {
 	ln -s libportmidi.so ${DESTDIR}/usr/lib/libporttime.so
diff --git a/srcpkgs/postfix/template b/srcpkgs/postfix/template
index 80d321fb726c..7eef653977d5 100644
--- a/srcpkgs/postfix/template
+++ b/srcpkgs/postfix/template
@@ -11,6 +11,7 @@ license="IPL-1.0, EPL-2.0"
 homepage="http://www.postfix.org/"
 distfiles="http://ftp.porcupine.org/mirrors/postfix-release/official/${pkgname}-${version}.tar.gz"
 checksum=20a805625601e7b95989220832c8fa14ce374f0711da054188f8cec6a92fd71c
+patch_args=-Np0
 
 system_accounts="postfix"
 postfix_homedir="/var/spool/postfix"
diff --git a/srcpkgs/postgresql/template b/srcpkgs/postgresql/template
index 3167e0657fed..f638aa7642e9 100644
--- a/srcpkgs/postgresql/template
+++ b/srcpkgs/postgresql/template
@@ -22,6 +22,7 @@ distfiles="https://ftp.postgresql.org/pub/source/v${version}/${pkgname}-${versio
 checksum=3d32cd101025a0556813397c69feff3df3d63736adb8adeaf365c522f39f2930
 # initdb fails on github actions, works locally with xbps-uunshare
 make_check=ci-skip
+patch_args=-Np0
 
 conf_files="
 	/etc/default/${pkgname}
diff --git a/srcpkgs/postgresql12/template b/srcpkgs/postgresql12/template
index 02b9e6b1f794..5450b7828739 100644
--- a/srcpkgs/postgresql12/template
+++ b/srcpkgs/postgresql12/template
@@ -23,6 +23,7 @@ homepage="https://www.postgresql.org"
 changelog="https://www.postgresql.org/docs/current/release-${version//./-}.html"
 distfiles="https://ftp.postgresql.org/pub/source/v${version}/postgresql-${version}.tar.bz2"
 checksum=8490741f47c88edc8b6624af009ce19fda4dc9b31c4469ce2551d84075d5d995
+patch_args=-Np0
 
 conf_files="
  /${_prefix}/etc/default/postgresql
diff --git a/srcpkgs/postgresql13/template b/srcpkgs/postgresql13/template
index be54f0bafe4c..1757cac0a3a5 100644
--- a/srcpkgs/postgresql13/template
+++ b/srcpkgs/postgresql13/template
@@ -23,6 +23,7 @@ homepage="https://www.postgresql.org"
 changelog="https://www.postgresql.org/docs/current/release-${version//./-}.html"
 distfiles="https://ftp.postgresql.org/pub/source/v${version}/postgresql-${version}.tar.bz2"
 checksum=3cd9454fa8c7a6255b6743b767700925ead1b9ab0d7a0f9dcb1151010f8eb4a1
+patch_args=-Np0
 
 conf_files="
  /${_prefix}/etc/default/postgresql
diff --git a/srcpkgs/povray/template b/srcpkgs/povray/template
index 30a2baab2039..20f0417c2681 100644
--- a/srcpkgs/povray/template
+++ b/srcpkgs/povray/template
@@ -20,6 +20,7 @@ checksum=53d11ebd2972fc452af168a00eb83aefb61387662c10784e81b63e44aa575de4
 nocross="Builds fail on ARM architectures
  Logs are at https://travis-ci.org/void-linux/void-packages/builds/412583835."
 LDFLAGS+=" -Wl,-z,stack-size=1048576"
+patch_args=-Np0
 
 pre_configure() {
 	cd $wrksrc/unix
diff --git a/srcpkgs/powerpc-utils/template b/srcpkgs/powerpc-utils/template
index e975d94658a0..f33782a127da 100644
--- a/srcpkgs/powerpc-utils/template
+++ b/srcpkgs/powerpc-utils/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/ibm-power-utilities/powerpc-utils"
 distfiles="https://github.com/ibm-power-utilities/powerpc-utils/archive/v${version}.tar.gz"
 checksum=bb48758bca3b9d056141b522e700218ee4e814b517aadf5a01f53b970ad1d3c3
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --with-librtas ac_cv_lib_rtasevent_parse_rtas_event=yes"
diff --git a/srcpkgs/ppp/template b/srcpkgs/ppp/template
index 8f597b56516f..c59d266437f4 100644
--- a/srcpkgs/ppp/template
+++ b/srcpkgs/ppp/template
@@ -25,6 +25,7 @@ conf_files="
  /etc/ppp/options
  /etc/ppp/chap-secrets
  /etc/ppp/pap-secrets"
+patch_args=-Np0
 
 do_configure() {
 	./configure --prefix=/usr --cc="${CC}" --cflags="${CFLAGS}"
diff --git a/srcpkgs/pps-tools/template b/srcpkgs/pps-tools/template
index 2227ed811c0d..459a701ff5da 100644
--- a/srcpkgs/pps-tools/template
+++ b/srcpkgs/pps-tools/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://linuxpps.org/"
 distfiles="https://github.com/ago/pps-tools/archive/v${version}.tar.gz"
 checksum=1a7efd66152e5439b69143f1f380b40ac5decbbbef516b37a017410b8ba7dff4
+patch_args=-Np0
 
 pps-tools-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/ppsspp/template b/srcpkgs/ppsspp/template
index eaf14bc7cf14..eee3c9fe1a1a 100644
--- a/srcpkgs/ppsspp/template
+++ b/srcpkgs/ppsspp/template
@@ -36,6 +36,7 @@ checksum="503f046fa68e4be24d08822b0aa2280e653ad513d9a12c77a59809467b95c516
  f8a03906135fb6f2932b80b7ef5991f39ccac46b36ec3690776fb38c69775c3d
  20fe5dbd7a64f7a8fdbaeb81f8dd485df61121c5054e0f7f917c6193f209ff2e
  6819f0984fa647f69a74831a2333859a07099f64098ce58c35d8604d19532d3d"
+patch_args=-Np0
 
 # ppsspp always tries to compile x86 unittest
 # https://gist.github.com/Johnnynator/e18d59274451cff890b7235009d2e93d
diff --git a/srcpkgs/pptpclient/template b/srcpkgs/pptpclient/template
index 3761f308658d..4b75b7dd481b 100644
--- a/srcpkgs/pptpclient/template
+++ b/srcpkgs/pptpclient/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://pptpclient.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pptpclient/files/pptp-${version}.tar.gz"
 checksum=82492db8e487ce73b182ee7f444251d20c44f5c26d6e96c553ec7093aefb5af4
+patch_args=-Np0
 
 pre_build() {
 	sed -i Makefile \
diff --git a/srcpkgs/projectlibre/template b/srcpkgs/projectlibre/template
index 4f6d94cef759..9bac53e4496b 100644
--- a/srcpkgs/projectlibre/template
+++ b/srcpkgs/projectlibre/template
@@ -9,6 +9,7 @@ license="CPAL-1.0"
 homepage="https://www.projectlibre.com/"
 distfiles="${SOURCEFORGE_SITE}/projectlibre/${version}/projectlibre-${version}.tar.gz"
 checksum=58160173ecb384d988a398b7fe5400fc9667209aab2dedc21f5445f4f88f09c4
+patch_args=-Np0
 
 do_install() {
 	_dest="usr/share/projectlibre"
diff --git a/srcpkgs/proot/template b/srcpkgs/proot/template
index bf03af65a909..de493094767c 100644
--- a/srcpkgs/proot/template
+++ b/srcpkgs/proot/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://proot-me.github.io"
 distfiles="https://github.com/proot-me/PRoot/archive/v${version}.tar.gz"
 checksum=ce0a3baca8312613bd10f65bb436a3aaa28e1034f498a22c35ad0693600e01dd
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/protobuf-c/template b/srcpkgs/protobuf-c/template
index ab3915524c66..cb483c410441 100644
--- a/srcpkgs/protobuf-c/template
+++ b/srcpkgs/protobuf-c/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/protobuf-c/protobuf-c"
 distfiles="${homepage}/releases/download/v${version}/protobuf-c-${version}.tar.gz"
 checksum=22956606ef50c60de1fabc13a78fbc50830a0447d780467d3c519f84ad527e78
+patch_args=-Np0
 
 # buildprocess calls compiler while building, disable it on cross build
 build_options="protoc"
diff --git a/srcpkgs/prototype/template b/srcpkgs/prototype/template
index 03d8f26c39be..653e15089878 100644
--- a/srcpkgs/prototype/template
+++ b/srcpkgs/prototype/template
@@ -9,6 +9,7 @@ license="Public Domain"
 homepage="https://github.com/ptitSeb/prototype"
 distfiles="https://github.com/ptitSeb/prototype/archive/v${version}.tar.gz"
 checksum=400f8a5c727c9feaa6b48b65c23c312db41dd238af9526659bf3342346c05af6
+patch_args=-Np0
 
 CXXFLAGS="-Wno-write-strings"
 
diff --git a/srcpkgs/psensor/template b/srcpkgs/psensor/template
index 00cf7ba46a69..b4841eed5884 100644
--- a/srcpkgs/psensor/template
+++ b/srcpkgs/psensor/template
@@ -16,6 +16,7 @@ changelog="https://gitlab.com/jeanfi/psensor/-/raw/master/NEWS"
 distfiles="https://wpitchoune.net/${pkgname}/files/${pkgname}-${version}.tar.gz"
 checksum=084f785d169f533d3010e50c5933436ed427afc70d41740b762f1db5034833ab
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ -z "$CROSS_BUILD" ]; then
 	hostmakedepends+=" help2man"
diff --git a/srcpkgs/ptii/template b/srcpkgs/ptii/template
index 572d59daad4d..a0c21edea43c 100644
--- a/srcpkgs/ptii/template
+++ b/srcpkgs/ptii/template
@@ -10,5 +10,6 @@ license="WTFPL"
 homepage="http://git.z3bra.org/cgit.cgi/ptii/"
 distfiles="https://sources.voidlinux.de/ptii-${version}/ptii-${version}.tar.bz2"
 checksum=2f130417251938c9947293f4df07b6db37909e03d4f600e0af025d1ae6a02d26
+patch_args=-Np0
 
 LDFLAGS="-lpthread"
diff --git a/srcpkgs/pugixml/template b/srcpkgs/pugixml/template
index 45d0d36a67b7..c34c9d86dde8 100644
--- a/srcpkgs/pugixml/template
+++ b/srcpkgs/pugixml/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://pugixml.org/"
 distfiles="http://github.com/zeux/pugixml/releases/download/v${version}/pugixml-${version}.tar.gz"
 checksum=8ddf57b65fb860416979a3f0640c2ad45ddddbbafa82508ef0a0af3ce7061716
+patch_args=-Np0
 
 post_install() {
 	tail -22 readme.txt > LICENSE
diff --git a/srcpkgs/pulseview/template b/srcpkgs/pulseview/template
index 83ce80bc39d9..b6e099c7b684 100644
--- a/srcpkgs/pulseview/template
+++ b/srcpkgs/pulseview/template
@@ -15,5 +15,6 @@ license="GPL-3"
 homepage="https://sigrok.org/"
 distfiles="https://sigrok.org/download/source/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=f042f77a3e1b35bf30666330e36ec38fab8d248c3693c37b7e35d401c3bfabcb
+patch_args=-Np0
 
 CXXFLAGS+=" -fext-numeric-literals"
diff --git a/srcpkgs/putty/template b/srcpkgs/putty/template
index e4efe58debd4..c87cbf5b6098 100644
--- a/srcpkgs/putty/template
+++ b/srcpkgs/putty/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://www.chiark.greenend.org.uk/~sgtatham/putty/"
 distfiles="http://the.earth.li/~sgtatham/putty/latest/putty-${version}.tar.gz"
 checksum=d3173b037eddbe9349abe978101277b4ba9f9959e25dedd44f87e7b85cc8f9f5
+patch_args=-Np0
 
 CFLAGS="-Wno-error"
 
diff --git a/srcpkgs/pvoc/template b/srcpkgs/pvoc/template
index da23784124aa..7d27e4d71084 100644
--- a/srcpkgs/pvoc/template
+++ b/srcpkgs/pvoc/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://quitte.de/dsp/pvoc.html"
 distfiles="http://quitte.de/dsp/pvoc_${version}.tar.gz"
 checksum=d519d416049143cb2c4775feae639021b5693f39e27e99b1f036392580baa32d
+patch_args=-Np0
 
 pre_build() {
 	sed -i "s@-O6.\+@${CFLAGS}@" Makefile
diff --git a/srcpkgs/pwnat/template b/srcpkgs/pwnat/template
index a1e9f92078dc..2fe12805a70a 100644
--- a/srcpkgs/pwnat/template
+++ b/srcpkgs/pwnat/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="http://samy.pl/pwnat/"
 distfiles="https://github.com/samyk/pwnat/archive/${_githash}.tar.gz"
 checksum=365da981ba1a39d7e3c8427fbcd9e7fcd3dd16cd30ae7e3b0aca50511fd8e1b1
+patch_args=-Np0
 
 do_configure() {
 	sed -i 's#sys/unistd.h#unistd.h#' $(find -name '*.[ch]')
diff --git a/srcpkgs/pygtk/template b/srcpkgs/pygtk/template
index 41554b81763a..ca12604df127 100644
--- a/srcpkgs/pygtk/template
+++ b/srcpkgs/pygtk/template
@@ -20,6 +20,7 @@ distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.bz2"
 checksum=cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5363e0f82c896e649f206912
 lib32disabled=yes
 python_version=2
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/pymol/template b/srcpkgs/pymol/template
index dfb9441f22a1..fe0fb1faa350 100644
--- a/srcpkgs/pymol/template
+++ b/srcpkgs/pymol/template
@@ -17,6 +17,7 @@ distfiles="https://github.com/schrodinger/pymol-open-source/archive/v${version}.
 checksum="5ede4ce2e8f53713c5ee64f5905b2d29bf01e4391da7e536ce8909d6b9116581
  0ea81faaf336becc669a193777d0dca55475d303d1236b57df25cf67ff7c2bcd"
 skip_extraction="${pkgname}.png"
+patch_args=-Np0
 
 export PREFIX_PATH="${XBPS_CROSS_BASE}/usr"
 # PREFIX_PATH isn't used for the py3 include path
diff --git a/srcpkgs/pyside2-tools/template b/srcpkgs/pyside2-tools/template
index 35d353aba95d..b7559676933a 100644
--- a/srcpkgs/pyside2-tools/template
+++ b/srcpkgs/pyside2-tools/template
@@ -17,6 +17,7 @@ homepage="https://wiki.qt.io/Qt_for_Python/Shiboken"
 distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
 checksum=b306504b0b8037079a8eab772ee774b9e877a2d84bab2dbefbe4fa6f83941418
 python_version=3
+patch_args=-Np0
 
 if [ ${CROSS_BUILD} ]; then
 	hostmakedepends+=" qt5-qmake qt5-host-tools"
diff --git a/srcpkgs/python-M2Crypto/template b/srcpkgs/python-M2Crypto/template
index 4c684d18f576..ac5752871e29 100644
--- a/srcpkgs/python-M2Crypto/template
+++ b/srcpkgs/python-M2Crypto/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://gitlab.com/m2crypto/m2crypto/"
 distfiles="${PYPI_SITE}/M/M2Crypto/M2Crypto-${version}.tar.gz"
 checksum=4c6ad45ffb88670c590233683074f2440d96aaccb05b831371869fc387cbd127
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENCE
diff --git a/srcpkgs/python-coverage/template b/srcpkgs/python-coverage/template
index 332e7baa3b7a..99b9a3c07ea3 100644
--- a/srcpkgs/python-coverage/template
+++ b/srcpkgs/python-coverage/template
@@ -14,6 +14,7 @@ homepage="https://bitbucket.org/ned/coveragepy"
 distfiles="${PYPI_SITE}/c/coverage/coverage-${version}.tar.gz"
 checksum=77afca04240c40450c331fa796b3eab6f1e15c5ecf8bf2b8bee9706cd5452fef
 alternatives="coverage:coverage:/usr/bin/coverage2"
+patch_args=-Np0
 
 python3-coverage_package() {
 	depends="python3-setuptools"
diff --git a/srcpkgs/python-docutils/template b/srcpkgs/python-docutils/template
index 02232f31a266..f2843fc47cf8 100644
--- a/srcpkgs/python-docutils/template
+++ b/srcpkgs/python-docutils/template
@@ -14,6 +14,7 @@ homepage="http://docutils.sourceforge.net"
 distfiles="${PYPI_SITE}/d/docutils/docutils-${version}.tar.gz"
 checksum=c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc
 checkdepends+="$depends python3-Pygments"
+patch_args=-Np0
 
 alternatives="
  docutils:rst2html:/usr/bin/rst2html.py2
diff --git a/srcpkgs/python-evdev/template b/srcpkgs/python-evdev/template
index ded33276800d..40b60c094724 100644
--- a/srcpkgs/python-evdev/template
+++ b/srcpkgs/python-evdev/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/gvalkov/python-evdev"
 distfiles="https://github.com/gvalkov/python-evdev/archive/v${version}.tar.gz"
 checksum=f788584510620251c6a6c68802935b71c4b474df99b87ee223e18b84dd1719a6
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python-nose/template b/srcpkgs/python-nose/template
index 95f3607a40aa..e0ee55d59fe8 100644
--- a/srcpkgs/python-nose/template
+++ b/srcpkgs/python-nose/template
@@ -15,6 +15,7 @@ homepage="https://github.com/nose-devs/nose"
 distfiles="${PYPI_SITE}/n/nose/nose-${version}.tar.gz"
 checksum=f1bffef9cbc82628f6e7d7b40d7e255aefaa1adb6a1b1d26c69a8b79e6208a98
 alternatives="nose:nosetests:/usr/bin/nosetests2"
+patch_args=-Np0
 
 python3-nose_package() {
 	pycompile_module="nose"
diff --git a/srcpkgs/python-pip/template b/srcpkgs/python-pip/template
index 096aa7b63b22..aca1c8836df7 100644
--- a/srcpkgs/python-pip/template
+++ b/srcpkgs/python-pip/template
@@ -13,6 +13,7 @@ homepage="https://pip.pypa.io/"
 changelog="https://raw.githubusercontent.com/pypa/pip/master/NEWS.rst"
 distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
 checksum=6773934e5f5fc3eaa8c5a44949b5b924fc122daa0a8aa9f80c835b4ca2a543fc
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/python-requests/template b/srcpkgs/python-requests/template
index bde0b03b9ef9..406e20f881ba 100644
--- a/srcpkgs/python-requests/template
+++ b/srcpkgs/python-requests/template
@@ -13,6 +13,7 @@ homepage="https://python-requests.org/"
 changelog="https://raw.githubusercontent.com/psf/requests/master/HISTORY.md"
 distfiles="${PYPI_SITE}/r/requests/requests-${version}.tar.gz"
 checksum=27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804
+patch_args=-Np0
 
 post_patch() {
 	vsed -i '/certifi/d' setup.py
diff --git a/srcpkgs/python/template b/srcpkgs/python/template
index fc52e87228ea..1412f66d4d62 100644
--- a/srcpkgs/python/template
+++ b/srcpkgs/python/template
@@ -17,6 +17,7 @@ license="Python-2.0"
 homepage="https://www.python.org"
 distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"
 checksum=b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43
+patch_args=-Np0
 
 alternatives="
  python:idle:/usr/bin/idle2.7
diff --git a/srcpkgs/python3-PyBrowserID/template b/srcpkgs/python3-PyBrowserID/template
index a8cdd9230d3c..f8b86f119e25 100644
--- a/srcpkgs/python3-PyBrowserID/template
+++ b/srcpkgs/python3-PyBrowserID/template
@@ -14,6 +14,7 @@ license="MPL-2.0"
 homepage="https://github.com/mozilla/PyBrowserID"
 distfiles="${PYPI_SITE}/P/PyBrowserID/PyBrowserID-${version}.tar.gz"
 checksum=6c227669e87cc25796ae76f6a0ef65025528c8ad82d352679fa9a3e5663a71e3
+patch_args=-Np0
 
 do_check() {
 	# needs network access (persona.org has been shut down anyway)
diff --git a/srcpkgs/python3-PyQt5/template b/srcpkgs/python3-PyQt5/template
index a704d41698bc..4b36464197e8 100644
--- a/srcpkgs/python3-PyQt5/template
+++ b/srcpkgs/python3-PyQt5/template
@@ -23,6 +23,7 @@ checksum=2a69597e0dd11caabe75fae133feca66387819fc9bc050f547e5551bce97e5be
 lib32disabled=yes
 CFLAGS=-I$XBPS_CROSS_BASE/usr/include/python$py3_ver
 CXXFLAGS="$CFLAGS"
+patch_args=-Np0
 
 export INCPATH=$XBPS_CROSS_BASE/usr/include/python$py3_ver
 
diff --git a/srcpkgs/python3-aiohttp/template b/srcpkgs/python3-aiohttp/template
index d8b4761c8b9b..65465ff7b6ad 100644
--- a/srcpkgs/python3-aiohttp/template
+++ b/srcpkgs/python3-aiohttp/template
@@ -14,6 +14,7 @@ license="Apache-2.0"
 homepage="https://aiohttp.readthedocs.io/"
 distfiles="${PYPI_SITE}/a/aiohttp/aiohttp-${version}.tar.gz"
 checksum=5d84ecc73141d0a0d61ece0742bb7ff5751b0657dab8405f899d3ceb104cc7de
+patch_args=-Np0
 
 post_patch() {
 	# use system http-parser
diff --git a/srcpkgs/python3-boltons/template b/srcpkgs/python3-boltons/template
index a4c71fb7713d..c08065036300 100644
--- a/srcpkgs/python3-boltons/template
+++ b/srcpkgs/python3-boltons/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/mahmoud/boltons"
 distfiles="https://github.com/mahmoud/boltons/archive/${version}.tar.gz"
 checksum=f5b63fba62bed021c5086e43b4cfdaf6c8396a3ae1ccdcb549b4eb2f36f8a794
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-cli_helpers/template b/srcpkgs/python3-cli_helpers/template
index 91e22d2471c2..ab7008da0cc9 100644
--- a/srcpkgs/python3-cli_helpers/template
+++ b/srcpkgs/python3-cli_helpers/template
@@ -15,6 +15,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/dbcli/cli_helpers"
 distfiles="${PYPI_SITE}/c/cli_helpers/cli_helpers-${version}.tar.gz"
 checksum=98db22eaa86827d99ee6af9f5f3923142d04df256425204530842b032849a165
+patch_args=-Np0
 
 do_check() {
 	python3 -m pytest
diff --git a/srcpkgs/python3-curtsies/template b/srcpkgs/python3-curtsies/template
index 0d03da5b9b3d..aa224291ddba 100644
--- a/srcpkgs/python3-curtsies/template
+++ b/srcpkgs/python3-curtsies/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/thomasballinger/curtsies"
 distfiles="${PYPI_SITE}/c/curtsies/curtsies-${version}.tar.gz"
 checksum=89c802ec051d01dec6fc983e9856a3706e4ea8265d2940b1f6d504a9e26ed3a9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-entrypoints/template b/srcpkgs/python3-entrypoints/template
index eb3318811dc6..89093839963c 100644
--- a/srcpkgs/python3-entrypoints/template
+++ b/srcpkgs/python3-entrypoints/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/takluyver/entrypoints"
 distfiles="https://github.com/takluyver/entrypoints/archive/${version}.tar.gz"
 checksum=f26eddc371e37d8e9f6663b77524d6731567f005bd1e4ac950c0e33c48fbc065
+patch_args=-Np0
 
 pre_build() {
 	vsed -i "s|@VERSION@|${version}|" setup.py
diff --git a/srcpkgs/python3-gevent/template b/srcpkgs/python3-gevent/template
index 4ec0c1ce42ea..e1ba65252141 100644
--- a/srcpkgs/python3-gevent/template
+++ b/srcpkgs/python3-gevent/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.gevent.org/"
 distfiles="https://github.com/gevent/gevent/archive/${version}.tar.gz"
 checksum=1fc6579fee04c0bc348cb1dcbc10f822129e6af7dcf2c52c24f1497cea3bd45c
+patch_args=-Np0
 
 post_extract() {
 	# purge bundled dependencies
diff --git a/srcpkgs/python3-gitchangelog/template b/srcpkgs/python3-gitchangelog/template
index 348dc2c83b6d..8c3a5cfb5aa9 100644
--- a/srcpkgs/python3-gitchangelog/template
+++ b/srcpkgs/python3-gitchangelog/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/vaab/gitchangelog"
 distfiles="${PYPI_SITE}/g/gitchangelog/gitchangelog-${version}.tar.gz"
 checksum=3d8d6a730450fbd5b0a9bc58d0dd3e269c967d7eb4fece0c5cff4372a3f77421
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-grpcio/template b/srcpkgs/python3-grpcio/template
index d96e11f9c149..654abdcfada3 100644
--- a/srcpkgs/python3-grpcio/template
+++ b/srcpkgs/python3-grpcio/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://grpc.io"
 distfiles="${PYPI_SITE}/g/grpcio/grpcio-${version}.tar.gz"
 checksum=abbf9c8c3df4d5233d5888c6cfa85c1bb68a6923749bd4dd1abc6e1e93986f17
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/python3-mygpoclient/template b/srcpkgs/python3-mygpoclient/template
index 6ed17293703c..5aa34ad58d15 100644
--- a/srcpkgs/python3-mygpoclient/template
+++ b/srcpkgs/python3-mygpoclient/template
@@ -13,6 +13,7 @@ homepage="https://github.com/gpodder/mygpoclient"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=65fcb3ab220a2ba2d32a77f969b423a2f663413b6c485b7b02e5a955b28e68d2
 conflicts="python-mygpoclient>=0"
+patch_args=-Np0
 
 pre_build() {
 	vsed -i '/share\/man\/man1/d' setup.py
diff --git a/srcpkgs/python3-nose2/template b/srcpkgs/python3-nose2/template
index d1f95c3e3736..ac13621690a6 100644
--- a/srcpkgs/python3-nose2/template
+++ b/srcpkgs/python3-nose2/template
@@ -13,6 +13,7 @@ homepage="https://github.com/nose-devs/nose2"
 distfiles="${PYPI_SITE}/n/nose2/nose2-${version}.tar.gz"
 checksum=9052f2b46807b63d9bdf68e0768da1f8386368889b50043fd5d0889c470258f3
 conflicts="python-nose2>=0"
+patch_args=-Np0
 
 post_install() {
 	vlicense license.txt
diff --git a/srcpkgs/python3-pdfminer.six/template b/srcpkgs/python3-pdfminer.six/template
index 753dbfb9b816..bb75c36e196b 100644
--- a/srcpkgs/python3-pdfminer.six/template
+++ b/srcpkgs/python3-pdfminer.six/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/pdfminer/pdfminer.six"
 distfiles="${homepage}/archive/refs/tags/${version}.tar.gz"
 checksum=0e9c8b0a9c40c2aee044c3091ad6b18b5e6279722e64b6b975f8aedc26bf8e38
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-pikepdf/template b/srcpkgs/python3-pikepdf/template
index c2ff79e138fa..21329296c6cd 100644
--- a/srcpkgs/python3-pikepdf/template
+++ b/srcpkgs/python3-pikepdf/template
@@ -14,6 +14,7 @@ license="MPL-2.0"
 homepage="https://github.com/pikepdf/pikepdf"
 distfiles="${PYPI_SITE}/p/pikepdf/pikepdf-${version}.tar.gz"
 checksum=5ff35499b1ae7b181277f78ce5b1bcc8d3009182bb389917791c5dc811fcc8e4
+patch_args=-Np0
 
 pre_build() {
 	vsed -e '/setuptools_scm_git_archive/d' -i setup.py
diff --git a/srcpkgs/python3-pip/template b/srcpkgs/python3-pip/template
index 4dbc22b73b49..b30bc6334120 100644
--- a/srcpkgs/python3-pip/template
+++ b/srcpkgs/python3-pip/template
@@ -15,6 +15,7 @@ distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
 checksum=eb5df6b9ab0af50fe1098a52fd439b04730b6e066887ff7497357b9ebd19f79b
 # Tests have unpackaged dependencies
 make_check=no
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/python3-pwntools/template b/srcpkgs/python3-pwntools/template
index 76ec9944221e..753c28f1c68d 100644
--- a/srcpkgs/python3-pwntools/template
+++ b/srcpkgs/python3-pwntools/template
@@ -17,6 +17,7 @@ license="MIT, BSD-2-Clause"
 homepage="https://github.com/Gallopsled/pwntools"
 distfiles="${PYPI_SITE}/p/pwntools/pwntools-${version}.tar.gz"
 checksum=97f945aed7ffa9d3e87f8759df83a5eac6dc2112907f35d0aee66a9bf62fd8eb
+patch_args=-Np0
 
 post_install() {
 	rm -f ${DESTDIR}/usr/lib/python*/site-packages/*.md
diff --git a/srcpkgs/python3-pylibgen/template b/srcpkgs/python3-pylibgen/template
index 4d77619ae935..d59a68eca8ae 100644
--- a/srcpkgs/python3-pylibgen/template
+++ b/srcpkgs/python3-pylibgen/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/JoshuaRLi/pylibgen"
 distfiles="${PYPI_SITE}/p/pylibgen/pylibgen-${version}.tar.gz"
 checksum=87b28a27fa7c1912e2b38020262dd6086b292d670b0c08d76baecbcd7678b9ee
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-pyside2/template b/srcpkgs/python3-pyside2/template
index 6040ef39243c..c0387c4d6d04 100644
--- a/srcpkgs/python3-pyside2/template
+++ b/srcpkgs/python3-pyside2/template
@@ -25,6 +25,7 @@ license="LGPL-3.0-or-later"
 homepage="https://wiki.qt.io/Qt_for_Python"
 distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
 checksum=b306504b0b8037079a8eab772ee774b9e877a2d84bab2dbefbe4fa6f83941418
+patch_args=-Np0
 
 build_options="webengine"
 desc_option_webengine="Build Qt5 WebEngine bindings"
diff --git a/srcpkgs/python3-repoze.sphinx.autointerface/template b/srcpkgs/python3-repoze.sphinx.autointerface/template
index 18141a5bd46a..9feb6d5a2739 100644
--- a/srcpkgs/python3-repoze.sphinx.autointerface/template
+++ b/srcpkgs/python3-repoze.sphinx.autointerface/template
@@ -13,6 +13,7 @@ license="BSD-4-Clause"
 homepage="https://github.com/repoze/repoze.sphinx.autointerface/"
 distfiles="${PYPI_SITE}/r/repoze.sphinx.autointerface/repoze.sphinx.autointerface-${version}.tar.gz"
 checksum=8ef0383276ab722efb1e4a6523726262058dfd82615ccf7e5004aee3fe8ecc23
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/python3-telegram/template b/srcpkgs/python3-telegram/template
index 13cc66ab33c7..a865f4799086 100644
--- a/srcpkgs/python3-telegram/template
+++ b/srcpkgs/python3-telegram/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/alexander-akhmetov/python-telegram"
 distfiles="https://github.com/alexander-akhmetov/python-telegram/archive/${version}.tar.gz"
 checksum=11b0a2387bae642eb7f134fe35b9ef67b8183aa961412bcdfa86ff404beed897
+patch_args=-Np0
 
 post_extract() {
 	rm -r telegram/lib
diff --git a/srcpkgs/python3/template b/srcpkgs/python3/template
index 40c6cc1ef8e5..6bcb10bfc66d 100644
--- a/srcpkgs/python3/template
+++ b/srcpkgs/python3/template
@@ -18,6 +18,7 @@ license="Python-2.0"
 homepage="https://www.python.org"
 distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"
 checksum=0c5a140665436ec3dbfbb79e2dfb6d192655f26ef4a29aeffcb6d1820d716d83
+patch_args=-Np0
 
 alternatives="
  python:idle:/usr/bin/idle${version%.*}
diff --git a/srcpkgs/qca-qt5/template b/srcpkgs/qca-qt5/template
index 9e1cd59b8395..a9effca5f71d 100644
--- a/srcpkgs/qca-qt5/template
+++ b/srcpkgs/qca-qt5/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="https://userbase.kde.org/QCA"
 distfiles="${KDE_SITE}/qca/${version}/qca-${version}.tar.xz"
 checksum=c13851109abefc4623370989fae3a745bf6b1acb3c2a13a8958539823e974e4b
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/qdirstat/template b/srcpkgs/qdirstat/template
index efed1890b409..05e775e52c3a 100644
--- a/srcpkgs/qdirstat/template
+++ b/srcpkgs/qdirstat/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/shundhammer/qdirstat"
 distfiles="https://github.com/shundhammer/qdirstat/archive/${version}.tar.gz"
 checksum=fb40181972092d80994d3d04802c43298b70a21f1e636d5490a2bfbd1cb407d9
+patch_args=-Np0
 
 post_install() {
 	vman man/qdirstat.1
diff --git a/srcpkgs/qingy/template b/srcpkgs/qingy/template
index 02c89bd1ccae..207775603de2 100644
--- a/srcpkgs/qingy/template
+++ b/srcpkgs/qingy/template
@@ -15,6 +15,7 @@ homepage="http://qingy.sourceforge.net"
 #distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 distfiles="https://sources.voidlinux.org/qingy-1.0.0/qingy-1.0.0.tar.bz2"
 checksum=de4b4b398d5ba81ab2544729864676a04ddc6ae818b357ee09a8770293740cd3
+patch_args=-Np0
 
 make_dirs="/var/lib/misc 0755 root root"
 
diff --git a/srcpkgs/qmmp/template b/srcpkgs/qmmp/template
index d8b8ec1d0d7a..c27e8e39090b 100644
--- a/srcpkgs/qmmp/template
+++ b/srcpkgs/qmmp/template
@@ -21,6 +21,7 @@ license="GPL-3.0-or-later"
 homepage="http://qmmp.ylsoftware.com"
 distfiles="http://qmmp.ylsoftware.com/files/${pkgname}-${version}.tar.bz2"
 checksum=f513774357836ad4983fa216c84cf5db634284faebec48c461733838917fd664
+patch_args=-Np0
 
 qmmp-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/qpdfview/template b/srcpkgs/qpdfview/template
index 19cb2bb34ad9..4aa5122a1934 100644
--- a/srcpkgs/qpdfview/template
+++ b/srcpkgs/qpdfview/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://launchpad.net/qpdfview"
 distfiles="https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-${version}.tar.gz"
 checksum=cc642e7fa74029373ca9b9fbc29adc4883f8b455130a78ad54746d6844a0396c
+patch_args=-Np0
 
 pre_configure() {
 	lrelease qpdfview.pro
diff --git a/srcpkgs/qscintilla-qt5/template b/srcpkgs/qscintilla-qt5/template
index 5bc6c8530757..1d68d8f70320 100644
--- a/srcpkgs/qscintilla-qt5/template
+++ b/srcpkgs/qscintilla-qt5/template
@@ -13,6 +13,7 @@ license="GPL-3.0-only"
 homepage="https://www.riverbankcomputing.com/software/qscintilla/intro"
 distfiles="https://www.riverbankcomputing.com/static/Downloads/QScintilla/${version}/QScintilla_gpl-${version}.tar.gz"
 checksum=029bdc476a069fda2cea3cd937ba19cc7fa614fb90578caef98ed703b658f4a1
+patch_args=-Np0
 
 qscintilla-qt5-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/qsstv/template b/srcpkgs/qsstv/template
index 73c1080fcadc..8230401d9197 100644
--- a/srcpkgs/qsstv/template
+++ b/srcpkgs/qsstv/template
@@ -14,6 +14,7 @@ homepage="http://users.telenet.be/on4qz/qsstv/"
 changelog="http://users.telenet.be/on4qz/qsstv/manual/changelog.html"
 distfiles="http://users.telenet.be/on4qz/qsstv/downloads/qsstv_${version}.tar.gz"
 checksum=177e286090c71f8a033646b39c3b6abe212cc06718c1ecc9ddc7024198cb7e40
+patch_args=-Np0
 
 post_install() {
 	vinstall icons/qsstv.png 644 usr/share/pixmaps
diff --git a/srcpkgs/qt5-fsarchiver/template b/srcpkgs/qt5-fsarchiver/template
index 46c87a9e7bdd..4eea7d4c7ec8 100644
--- a/srcpkgs/qt5-fsarchiver/template
+++ b/srcpkgs/qt5-fsarchiver/template
@@ -15,6 +15,7 @@ license="GPL-2.0-only"
 homepage="https://sourceforge.net/projects/qt4-fsarchiver"
 distfiles="${SOURCEFORGE_SITE}/qt4-fsarchiver/${pkgname}-${_realversion}.tar.gz"
 checksum=b32e02c9e1fc8038482752f5620d88b103b700ed29314bd55dcf6486f5c6f175
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/qt5-styleplugins/template b/srcpkgs/qt5-styleplugins/template
index 4399c87d86cd..33c7271cd772 100644
--- a/srcpkgs/qt5-styleplugins/template
+++ b/srcpkgs/qt5-styleplugins/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only, LGPL-3.0-only"
 homepage="https://github.com/qt/qtstyleplugins"
 distfiles="https://github.com/qt/qtstyleplugins/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=29ec24fa8df64be161ad06d0e5af3ba1a20bfe265004f5fe4ab9f5f3abf9a5ba
+patch_args=-Np0
 
 # Cross builds fail with -fuse-ld=gold
 LDFLAGS="-Wl,-fuse-ld=bfd"
diff --git a/srcpkgs/qt5-webkit/template b/srcpkgs/qt5-webkit/template
index b2e7813cc45e..353a7e6609be 100644
--- a/srcpkgs/qt5-webkit/template
+++ b/srcpkgs/qt5-webkit/template
@@ -25,6 +25,7 @@ license="LGPL-2.1-or-later"
 homepage="https://www.qt.io/"
 distfiles="https://download.qt.io/snapshots/ci/qtwebkit/${_v}/${_snap}/src/submodules/qtwebkit-opensource-src-${_v}.tar.xz"
 checksum=9a6ed083154c7ec850081102b299afa928ca7e48bbdf2b5f3ae152425e46eb17
+patch_args=-Np0
 
 CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
 CXXFLAGS="-fpermissive -Wno-class-memaccess -Wno-redundant-move -Wno-deprecated-copy"
diff --git a/srcpkgs/qt5/template b/srcpkgs/qt5/template
index a88df53ca345..1e05f7e7ff60 100644
--- a/srcpkgs/qt5/template
+++ b/srcpkgs/qt5/template
@@ -32,6 +32,7 @@ python_version=2 #unverified
 replaces="qt5-doc<5.6.0 qt5-quick1<5.6.0 qt5-quick1-devel<5.6.0 qt5-webkit<5.6.0 qt5-webkit-devel<5.6.0
  qt5-enginio<5.7.1 qt5-enginio-devel<5.7.1 qt5-plugin-gtk<5.7.1 qt5-canvas3d<5.13.0"
 lib32mode=full
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated-declarations -Wno-class-memaccess -Wno-packed-not-aligned"
 # Required for musl libc
diff --git a/srcpkgs/qt5pas/template b/srcpkgs/qt5pas/template
index 93113c717035..56747994f4a3 100644
--- a/srcpkgs/qt5pas/template
+++ b/srcpkgs/qt5pas/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-or-later"
 homepage="https://svn.freepascal.org/svn/lazarus/trunk/lcl/interfaces/qt5/cbindings"
 distfiles="${DEBIAN_SITE}/main/libq/libqtpas/libqtpas_${version}.orig.tar.xz"
 checksum=fcc5f695d60d5f72bf501b2fa779e8a1a2636c8d991270b5b3fef3d0e990365c
+patch_args=-Np0
 
 post_install() {
 	vinstall qt5.pas 0644 usr/share/pascal/qt5
diff --git a/srcpkgs/qt6-base/template b/srcpkgs/qt6-base/template
index bb043213a360..a78f77930893 100644
--- a/srcpkgs/qt6-base/template
+++ b/srcpkgs/qt6-base/template
@@ -30,6 +30,7 @@ homepage="https://www.qt.io"
 distfiles="https://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qtbase-everywhere-src-${version}.tar.xz"
 checksum=21a8aa9f07170e047270c668c8b037536f40226db7adbc529a0b41c3a3cb3ff2
 python_version=3
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# QtSetup fails native builds if this is set
diff --git a/srcpkgs/qtav/template b/srcpkgs/qtav/template
index 0d85ec076482..b59c58a6f191 100644
--- a/srcpkgs/qtav/template
+++ b/srcpkgs/qtav/template
@@ -17,6 +17,7 @@ homepage="http://www.qtav.org"
 changelog="https://raw.githubusercontent.com/wang-bin/QtAV/master/Changelog"
 distfiles="https://github.com/wang-bin/QtAV/archive/v${version}.tar.gz"
 checksum=a493d54d105b32c526f05188e4d7a8cf3508ecac697aae088721ffad20982288
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/bin
diff --git a/srcpkgs/qtcreator/template b/srcpkgs/qtcreator/template
index e46558070581..0439190aee41 100644
--- a/srcpkgs/qtcreator/template
+++ b/srcpkgs/qtcreator/template
@@ -19,6 +19,7 @@ distfiles="https://download.qt.io/official_releases/qtcreator/${version%.*}/${ve
 checksum=5ca9457987e7af0af929c310cc995496388076b6a0b9c429828c60bf0eec1b4d
 replaces="qtcreator-data>=0"
 python_version=3
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" libexecinfo-devel"
diff --git a/srcpkgs/qtikz/template b/srcpkgs/qtikz/template
index 5ec999d3aae5..53aab78b8713 100644
--- a/srcpkgs/qtikz/template
+++ b/srcpkgs/qtikz/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.hackenberger.at/blog/ktikz-editor-for-the-tikz-language/"
 distfiles="https://github.com/fhackenberger/ktikz/archive/${version}.tar.gz"
 checksum=03f6ee335ca1abb23216870a6df71406ab44a4899875d4695b8594cfb789a127
+patch_args=-Np0
 
 post_patch() {
 	vsed -e '/include.*QPainter/a #include <QtGui/QPainterPath>' \
diff --git a/srcpkgs/qtkeychain-qt5/template b/srcpkgs/qtkeychain-qt5/template
index 4e4c982850a1..8b32a4cb72f8 100644
--- a/srcpkgs/qtkeychain-qt5/template
+++ b/srcpkgs/qtkeychain-qt5/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/frankosterfeld/qtkeychain"
 distfiles="https://github.com/frankosterfeld/${pkgname%-*}/archive/v${version}.tar.gz"
 checksum=77fc6841c1743d9e6bd499989481cd9239c21bc9bf0760d41a4f4068d2f0a49d
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-tools-devel"
diff --git a/srcpkgs/qtpass/template b/srcpkgs/qtpass/template
index cce56db19867..728711eeeef5 100644
--- a/srcpkgs/qtpass/template
+++ b/srcpkgs/qtpass/template
@@ -14,6 +14,7 @@ homepage="https://qtpass.org/"
 changelog="https://raw.githubusercontent.com/IJHack/QtPass/master/CHANGELOG.md"
 distfiles="https://github.com/IJHack/${pkgname}/archive/v${version}.tar.gz"
 checksum=7a68e1afe68462c878c212a79c40ade5ba14b72710c5e62450cf54c7b5621254
+patch_args=-Np0
 
 do_install() {
 	vbin main/qtpass
diff --git a/srcpkgs/quassel/template b/srcpkgs/quassel/template
index 47d529f56b8b..dae691d27457 100644
--- a/srcpkgs/quassel/template
+++ b/srcpkgs/quassel/template
@@ -18,6 +18,7 @@ license="GPL-2.0-only, GPL-3.0-only"
 homepage="https://www.quassel-irc.org"
 distfiles="https://quassel-irc.org/pub/quassel-${version}.tar.bz2"
 checksum=48efee9778743b1db9f44efb91d1c913104db01190c57f2ff57483c39a97e855
+patch_args=-Np0
 
 build_options="ldap"
 
diff --git a/srcpkgs/quickjs/template b/srcpkgs/quickjs/template
index a1c9f8d1c36a..42de1ba7fd9c 100644
--- a/srcpkgs/quickjs/template
+++ b/srcpkgs/quickjs/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://bellard.org/quickjs/"
 distfiles="https://bellard.org/quickjs/quickjs-${version//./-}.tar.xz"
 checksum=a45bface4c3379538dea8533878d694e289330488ea7028b105f72572fe7fe1a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args+=" CROSS_PREFIX=${XBPS_CROSS_TRIPLET}-"
diff --git a/srcpkgs/quota/template b/srcpkgs/quota/template
index 2751287061fd..9d103e08c4b3 100644
--- a/srcpkgs/quota/template
+++ b/srcpkgs/quota/template
@@ -13,6 +13,7 @@ license="GPL-2"
 homepage="https://sourceforge.net/projects/linuxquota/"
 distfiles="${SOURCEFORGE_SITE}/linuxquota/quota-tools/${pkgname}-${version}.tar.gz"
 checksum=2f3e03039f378d4f0d97acdb49daf581dcaad64d2e1ddf129495fd579fbd268d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/qv4l2/template b/srcpkgs/qv4l2/template
index 292be169c208..585527fe4716 100644
--- a/srcpkgs/qv4l2/template
+++ b/srcpkgs/qv4l2/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://linuxtv.org/"
 distfiles="https://linuxtv.org/downloads/v4l-utils/v4l-utils-${version}.tar.bz2"
 checksum=6cb60d822eeed20486a03cc23e0fc65956fbc1e85e0c1a7477f68bbd9802880d
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/rabbitmq-c/template b/srcpkgs/rabbitmq-c/template
index 95ad7a333435..ea3f0aaa3f5a 100644
--- a/srcpkgs/rabbitmq-c/template
+++ b/srcpkgs/rabbitmq-c/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/alanxz/rabbitmq-c"
 distfiles="https://github.com/alanxz/${pkgname}/archive/v${version}.tar.gz"
 checksum=6455efbaebad8891c59f274a852b75b5cc51f4d669dfc78d2ae7e6cc97fcd8c0
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE-MIT LICENSE
diff --git a/srcpkgs/racket/template b/srcpkgs/racket/template
index 1fee0a65e39d..0e0a4335986b 100644
--- a/srcpkgs/racket/template
+++ b/srcpkgs/racket/template
@@ -16,6 +16,7 @@ distfiles="http://mirror.racket-lang.org/installers/${version}/${pkgname}-${vers
 checksum=5578942066a9405fdbcad9522d08685356693f4ddd5dbe92b5273557a112b73e
 nostrip=yes
 nocross=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --enable-racket=/usr/bin/racket"
diff --git a/srcpkgs/radare2/template b/srcpkgs/radare2/template
index 39818e99e7f2..fc79ad2b3c12 100644
--- a/srcpkgs/radare2/template
+++ b/srcpkgs/radare2/template
@@ -13,6 +13,7 @@ license="LGPL-3.0-only"
 homepage="http://www.radare.org"
 distfiles="https://github.com/radareorg/radare2/archive/${version}.tar.gz"
 checksum=517dd80ebd0569f31498887338eacb92e8cf054bc4625eef8ffe9ea174c1adae
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) CFLAGS="-Os";;
diff --git a/srcpkgs/rakarrack/template b/srcpkgs/rakarrack/template
index 0d4dcc83496c..9c94f004ff2c 100644
--- a/srcpkgs/rakarrack/template
+++ b/srcpkgs/rakarrack/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://rakarrack.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=7696d27a4814b140fe651d137612ddfa1f167858eccc119e278c14dbee30eee6
+patch_args=-Np0
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/rapidjson/template b/srcpkgs/rapidjson/template
index 99d92702cc9d..2591e261b370 100644
--- a/srcpkgs/rapidjson/template
+++ b/srcpkgs/rapidjson/template
@@ -9,6 +9,7 @@ license="BSD-3-Clause, MIT"
 homepage="https://github.com/miloyip/rapidjson"
 distfiles="https://github.com/miloyip/${pkgname}/archive/v${version}.tar.gz"
 checksum=bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e
+patch_args=-Np0
 
 # class-memaccess is required by https://github.com/Tencent/rapidjson/issues/1700
 CXXFLAGS="-Wno-type-limits -Wno-error=class-memaccess -DNDEBUG"
diff --git a/srcpkgs/raptor/template b/srcpkgs/raptor/template
index 5408f6b745fb..7f0b9ad13f81 100644
--- a/srcpkgs/raptor/template
+++ b/srcpkgs/raptor/template
@@ -13,6 +13,7 @@ license="LGPL-2.1"
 homepage="http://librdf.org/raptor"
 distfiles="http://librdf.org/dist/source/raptor2-${version}.tar.gz"
 checksum=ada7f0ba54787b33485d090d3d2680533520cd4426d2f7fb4782dd4a6a1480ed
+patch_args=-Np0
 
 libraptor_package() {
 	short_desc+=" - Runtime libraries"
diff --git a/srcpkgs/rdedup/template b/srcpkgs/rdedup/template
index c392e3c0e2fc..f7b9d6760a01 100644
--- a/srcpkgs/rdedup/template
+++ b/srcpkgs/rdedup/template
@@ -12,6 +12,7 @@ license="MPL-2.0"
 homepage="https://github.com/dpc/rdedup"
 distfiles="https://github.com/dpc/rdedup/archive/rdedup-v${version}.tar.gz"
 checksum=5e7c09c40897cd2f2635e8c213c2ff0f5c4d7ceccbd22980cd4cb0a16f3dfc28
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	export HOST_CC="$BUILD_CC"
diff --git a/srcpkgs/rdis-git/template b/srcpkgs/rdis-git/template
index 5aaa5d669b7a..4d754dd49627 100644
--- a/srcpkgs/rdis-git/template
+++ b/srcpkgs/rdis-git/template
@@ -8,6 +8,7 @@ short_desc="A binary analysis tool for Linux"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3"
 homepage="https://github.com/endeav0r/rdis"
+patch_args=-Np0
 
 do_fetch() {
 	git clone git://github.com/endeav0r/rdis.git $wrksrc
diff --git a/srcpkgs/re/template b/srcpkgs/re/template
index 726ba0360748..a1dd9a76a8f4 100644
--- a/srcpkgs/re/template
+++ b/srcpkgs/re/template
@@ -16,6 +16,7 @@ homepage="https://github.com/baresip/re/"
 distfiles="https://github.com/baresip/re/archive/v${version}.tar.gz"
 checksum=43aa439b96aff75fe5768b9f9d49dea97042e42e7647df47b345465763e2f7ed
 shlib_provides="libre.so"
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	i686*) arch="i686";;
diff --git a/srcpkgs/redis/template b/srcpkgs/redis/template
index 974305ff1f0f..27d4568d1a79 100644
--- a/srcpkgs/redis/template
+++ b/srcpkgs/redis/template
@@ -11,6 +11,7 @@ homepage="https://redis.io"
 changelog="https://raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTES"
 distfiles="http://download.redis.io/releases/${pkgname}-${version}.tar.gz"
 checksum=dc2bdcf81c620e9f09cfd12e85d3bc631c897b2db7a55218fd8a65eaa37f86dd
+patch_args=-Np0
 
 system_accounts="redis"
 redis_homedir="/var/lib/redis"
diff --git a/srcpkgs/redo/template b/srcpkgs/redo/template
index b8af94ccc102..e3e8315d91f6 100644
--- a/srcpkgs/redo/template
+++ b/srcpkgs/redo/template
@@ -10,6 +10,7 @@ license="ISC"
 homepage="http://jdebp.info/Softwares/redo/"
 distfiles="http://jdebp.info/Repository/freebsd/redo-${version}.tar.gz"
 checksum=5ff21779993418cf16f5632c593e30d9a2780bfc38cef9de9ab9427154736d36
+patch_args=-Np0
 
 do_configure() {
 	./package/prepare
diff --git a/srcpkgs/refind/template b/srcpkgs/refind/template
index 49d462907523..7115017b0881 100644
--- a/srcpkgs/refind/template
+++ b/srcpkgs/refind/template
@@ -13,6 +13,7 @@ distfiles="${SOURCEFORGE_SITE}/refind/refind-src-${version}.tar.gz"
 checksum=dd58944854a42df5a2a943f15e5dcfd995808f28580df96ad39d68fb1e48c970
 python_version=2
 conf_files="/etc/default/refind-kernel-hook.conf"
+patch_args=-Np0
 
 post_extract() {
 	vsed -e 's|RefindDir=\"\$ThisDir/refind\"|RefindDir="/usr/share/refind"|g' \
diff --git a/srcpkgs/reiserfsprogs/template b/srcpkgs/reiserfsprogs/template
index d98433876b42..9350966ac543 100644
--- a/srcpkgs/reiserfsprogs/template
+++ b/srcpkgs/reiserfsprogs/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/"
 distfiles="${KERNEL_SITE}/kernel/people/jeffm/${pkgname}/v${version}/${pkgname}-${version}.tar.xz"
 checksum=0e95b67fa7746a3c2d59145e9b9c2feb4a6be52853e83b497b182eae508e62e3
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)
diff --git a/srcpkgs/renderdoc/template b/srcpkgs/renderdoc/template
index 4615d45c52c9..6fe21f63ea27 100644
--- a/srcpkgs/renderdoc/template
+++ b/srcpkgs/renderdoc/template
@@ -16,6 +16,7 @@ license="MIT"
 homepage="https://github.com/baldurk/renderdoc"
 distfiles="https://github.com/baldurk/${pkgname}/archive/v${version}.tar.gz"
 checksum=4dece1b4cb859a76533b28fcd50e17321acfaa81c3435500a006c4a5ba15fddb
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" libexecinfo-devel"
diff --git a/srcpkgs/residualvm/template b/srcpkgs/residualvm/template
index b0abb4052a9c..621b40a27528 100644
--- a/srcpkgs/residualvm/template
+++ b/srcpkgs/residualvm/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later, BSD-3-Clause, IS
 homepage="https://www.residualvm.org/"
 distfiles="https://www.residualvm.org/downloads/release/${version}/residualvm-${version}-sources.tar.bz2"
 checksum=f50c83bbc55a8121eefc279e83982b6ec590e608e145b7f750006619dd0bf9e9
+patch_args=-Np0
 
 build_options="sndio"
 build_options_default="sndio"
diff --git a/srcpkgs/resvg/template b/srcpkgs/resvg/template
index c48e52ae2f2e..5befcd0e4c3b 100644
--- a/srcpkgs/resvg/template
+++ b/srcpkgs/resvg/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="https://github.com/RazrFalcon/resvg"
 distfiles="https://github.com/RazrFalcon/resvg/releases/download/v${version}/resvg-${version}.tar.xz"
 checksum=7206f79f67b4c8610353134c375ed3ff9c5eb63b16fae267b94730c23ebe4ee1
+patch_args=-Np0
 
 do_build() {
 	for dir in capi tools/{render,u}svg; do
diff --git a/srcpkgs/retroshare/template b/srcpkgs/retroshare/template
index e65594a4b16e..3c0685fc053e 100644
--- a/srcpkgs/retroshare/template
+++ b/srcpkgs/retroshare/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later, AGPL-3.0-or-later"
 homepage="https://retroshare.cc"
 distfiles="https://github.com/RetroShare/RetroShare/archive/v${version}.tar.gz"
 checksum=901a1d1f282e04118fbe0e24190355b4a8f355a806cc5448738b1d691b46f5d5
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/rhythmbox/template b/srcpkgs/rhythmbox/template
index 1d229ee9428c..eb666718af6c 100644
--- a/srcpkgs/rhythmbox/template
+++ b/srcpkgs/rhythmbox/template
@@ -22,6 +22,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.rhythmbox.org"
 distfiles="${GNOME_SITE}/${pkgname}/${version::3}/${pkgname}-${version}.tar.xz"
 checksum=ee0eb0d7d7bdf696ac9471b19ff3bea3240d63b6cb8a134bf632054af8665d90
+patch_args=-Np0
 
 python_version=3
 pycompile_dirs="/usr/lib/rhythmbox/plugins /usr/lib/rhythmbox/sample-plugins"
diff --git a/srcpkgs/rinse/template b/srcpkgs/rinse/template
index 27d6d0acd2fb..54d42aaa68c0 100644
--- a/srcpkgs/rinse/template
+++ b/srcpkgs/rinse/template
@@ -15,6 +15,7 @@ homepage="https://salsa.debian.org/debian/rinse"
 changelog="https://salsa.debian.org/debian/rinse/raw/master/debian/changelog"
 distfiles="https://salsa.debian.org/debian/rinse/-/archive/${version}/rinse-${version}.tar.gz"
 checksum=ebe2384f2aa4565c5f29882b177f7afd4c7cdbca9de9525618c6040e63a76d23
+patch_args=-Np0
 
 
 conf_files="/etc/rinse/rinse.conf"
diff --git a/srcpkgs/rix/template b/srcpkgs/rix/template
index 23d16e5e2da2..9c1f78cbbe05 100644
--- a/srcpkgs/rix/template
+++ b/srcpkgs/rix/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="https://github.com/riolet/rix"
 distfiles="https://github.com/riolet/rix/archive/v${version}.tar.gz"
 checksum=8727fee17cbbecec3ca8083fac80db3a2ed234c8128ec8df5cc56293e1dbb09c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/rmilter/template b/srcpkgs/rmilter/template
index 0c2e00b5169d..cf0ebd53e35b 100644
--- a/srcpkgs/rmilter/template
+++ b/srcpkgs/rmilter/template
@@ -17,6 +17,7 @@ checksum=ea80563fa7636afed0b5fd9a29aa2300f15793ed85788e4ce69c187d341a7d54
 system_accounts="rmilter"
 rmilter_pgroup="_rmilter"
 rmilter_homedir="/var/lib/rmilter"
+patch_args=-Np0
 
 post_install() {
 	vdoc rmilter.conf.sample
diff --git a/srcpkgs/rmlint/template b/srcpkgs/rmlint/template
index 52b0a13cfad5..5cd23e3659e0 100644
--- a/srcpkgs/rmlint/template
+++ b/srcpkgs/rmlint/template
@@ -12,6 +12,7 @@ homepage="http://rmlint.rtfd.org/"
 changelog="https://raw.githubusercontent.com/sahib/rmlint/master/CHANGELOG.md"
 distfiles="https://github.com/sahib/${pkgname}/archive/v${version}.tar.gz"
 checksum=10e72ba4dd9672d1b6519c0c94eae647c5069c7d11f1409a46e7011dd0c6b883
+patch_args=-Np0
 
 do_install() {
 	scons install --prefix=${DESTDIR}/usr
diff --git a/srcpkgs/rpcbind/template b/srcpkgs/rpcbind/template
index 2909a0827fb8..48adb776b709 100644
--- a/srcpkgs/rpcbind/template
+++ b/srcpkgs/rpcbind/template
@@ -14,6 +14,7 @@ homepage="https://rpcbind.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=5613746489cae5ae23a443bb85c05a11741a5f12c8f55d2bb5e83b9defeee8de
 system_accounts="rpc"
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/rpi-imager/template b/srcpkgs/rpi-imager/template
index e48f0312e162..133b762f6e8d 100644
--- a/srcpkgs/rpi-imager/template
+++ b/srcpkgs/rpi-imager/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://github.com/raspberrypi/rpi-imager"
 distfiles="https://github.com/raspberrypi/rpi-imager/archive/${version}.tar.gz"
 checksum="166d4926ab5a21f9a83096eff67a9a72f1a7f55702a36cb448cccf5f3b075509"
+patch_args=-Np0
 
 pre_configure() {
 	ln -sf /bin/true $XBPS_WRAPPERDIR/lsblk
diff --git a/srcpkgs/rpm/template b/srcpkgs/rpm/template
index 9f6f522b9a3b..dc4101698780 100644
--- a/srcpkgs/rpm/template
+++ b/srcpkgs/rpm/template
@@ -18,6 +18,7 @@ distfiles="http://ftp.rpm.org/releases/rpm-4.16.x/rpm-${version}.tar.bz2"
 checksum=513dc7f972b6e7ccfc9fc7f9c01d5310cc56ee853892e4314fa2cad71478e21d
 python_version=3
 conflicts="rpmextract>=0" # Both provide rpm2cpio
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
 CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/nss"
diff --git a/srcpkgs/rspamd/template b/srcpkgs/rspamd/template
index 7398b753622e..dca49ec662f1 100644
--- a/srcpkgs/rspamd/template
+++ b/srcpkgs/rspamd/template
@@ -19,6 +19,7 @@ checksum=e4720c1f45defd07dd17b9563d0ddc480c70beadbc1a833235c077960092e030
 system_accounts="rspamd"
 rspamd_homedir=/var/lib/rspamd
 conf_files="/etc/rspamd/*.conf /etc/rspamd/*.inc /etc/rspamd/modules.d/*.conf"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	aarch64*|arm*) configure_args+=" -DHAS_C11_ATOMICS_EXITCODE=0
diff --git a/srcpkgs/rsstail/template b/srcpkgs/rsstail/template
index 40a3d84ed70b..1cfc4cdff308 100644
--- a/srcpkgs/rsstail/template
+++ b/srcpkgs/rsstail/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://www.vanheusden.com/rsstail/"
 distfiles="http://www.vanheusden.com/${pkgname}/${pkgname}-${version}.tgz"
 checksum=42cb452178b21c15c470bafbe5b8b5339a7fb5b980bf8d93d36af89864776e71
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/bin
diff --git a/srcpkgs/rstudio/template b/srcpkgs/rstudio/template
index 904bec8ca964..c8c5627d9b00 100644
--- a/srcpkgs/rstudio/template
+++ b/srcpkgs/rstudio/template
@@ -29,6 +29,7 @@ checksum="af8dc5e71ee934043856938af2e2065d1f1efef08aba37962ed03f6ccb8201bb
  0b7af89fdadb4ec51cdb400ace94637d6fe9ffa401b168e2c3d372392a00a0a7"
 skip_extraction="core-dictionaries.zip
  gwt-${_gwt_version}.zip"
+patch_args=-Np0
 
 LDFLAGS="-Wl,-z,stack-size=2097152"
 
diff --git a/srcpkgs/rsyslog/template b/srcpkgs/rsyslog/template
index 33c55076e9be..8c5b041d218c 100644
--- a/srcpkgs/rsyslog/template
+++ b/srcpkgs/rsyslog/template
@@ -23,6 +23,7 @@ conf_files="/etc/rsyslog.conf"
 make_dirs="/etc/rsyslog.d 0755 root root"
 lib32disabled=yes
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/rtl8812au-dkms/template b/srcpkgs/rtl8812au-dkms/template
index 0dedc560b81a..062aa1bebe2e 100644
--- a/srcpkgs/rtl8812au-dkms/template
+++ b/srcpkgs/rtl8812au-dkms/template
@@ -13,6 +13,7 @@ homepage="http://www.dlink.com"
 distfiles="https://github.com/gordboy/rtl8812au-${_modver}/archive/${_gitrev}.tar.gz"
 checksum=72b04bb7e1ef01eae653222d6f75f71163f7442fa142198605ed495f30341bd9
 dkms_modules="rtl8812au ${_modver}"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _karch="x86_64";;
diff --git a/srcpkgs/rtl8822bu-dkms/template b/srcpkgs/rtl8822bu-dkms/template
index 548d0b6299cd..d994f402b2d9 100644
--- a/srcpkgs/rtl8822bu-dkms/template
+++ b/srcpkgs/rtl8822bu-dkms/template
@@ -12,6 +12,7 @@ homepage="https://www.tp-link.com"
 distfiles="https://github.com/EntropicEffect/rtl8822bu/archive/${_gitrev}.tar.gz"
 checksum=fb2dbcd0385d558af6c74571aaac9020d7cbb9e56cc4780299bd420559f29bb1
 dkms_modules="88x2bu ${version}"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _karch="x86_64";;
diff --git a/srcpkgs/rtmpdump/template b/srcpkgs/rtmpdump/template
index 911122cc807a..aa3efa2397c7 100644
--- a/srcpkgs/rtmpdump/template
+++ b/srcpkgs/rtmpdump/template
@@ -11,6 +11,7 @@ license="GPL-2, LGPL-2.1"
 homepage="http://rtmpdump.mplayerhq.hu/"
 distfiles="https://alpha.de.repo.voidlinux.org/distfiles/${pkgname}-${version%.*}_p${_patchlevel}.tar.gz"
 checksum=d6da3b683f1045f02d94a81b0c583318dba021f69bdab970c5d5d73e8c38860f
+patch_args=-Np0
 
 CFLAGS="-Wno-unused-const-variable -Wno-unused-but-set-variable"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/rtorrent/template b/srcpkgs/rtorrent/template
index 7d44897de237..c3278dc21049 100644
--- a/srcpkgs/rtorrent/template
+++ b/srcpkgs/rtorrent/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/rakshasa/rtorrent"
 distfiles="https://github.com/rakshasa/${pkgname}/archive/v${version}.tar.gz"
 checksum=bc889ce1dde475ec56aa72ae996912ff58723226a4f4256fef4f1f8636d991d4
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/rubberband/template b/srcpkgs/rubberband/template
index 0c1f15270aa0..fabb288f308b 100644
--- a/srcpkgs/rubberband/template
+++ b/srcpkgs/rubberband/template
@@ -13,6 +13,7 @@ homepage="https://breakfastquay.com/rubberband/"
 changelog="https://breakfastquay.com/news.html"
 distfiles="https://breakfastquay.com/files/releases/rubberband-${version}.tar.bz2"
 checksum=4f5b9509364ea876b4052fc390c079a3ad4ab63a2683aad09662fb905c2dc026
+patch_args=-Np0
 
 librubberband_package() {
 	short_desc+=" - Runtime libraries"
diff --git a/srcpkgs/ruby/template b/srcpkgs/ruby/template
index 29c1c2eac3c3..ad72d57520c9 100644
--- a/srcpkgs/ruby/template
+++ b/srcpkgs/ruby/template
@@ -1,5 +1,6 @@
 # Template file for 'ruby'
 _ruby_abiver=2.7.0
+patch_args=-Np0
 
 pkgname=ruby
 version=2.7.3
diff --git a/srcpkgs/ruler/template b/srcpkgs/ruler/template
index 0884fc46578f..7cac86683e03 100644
--- a/srcpkgs/ruler/template
+++ b/srcpkgs/ruler/template
@@ -11,6 +11,7 @@ license="ISC"
 homepage="https://github.com/tudurom/ruler"
 distfiles="https://github.com/tudurom/ruler/archive/v${version}.tar.gz"
 checksum=5355e19530bb158b504cca6ba18cc402585e9bdb488e01a2ee76492bc70923c7
+patch_args=-Np0
 
 LDFLAGS="-lxcb -lxcb-ewmh -lxcb-icccm -lwm"
 
diff --git a/srcpkgs/run-mailcap/template b/srcpkgs/run-mailcap/template
index 8eb80e3b58ed..5a88b519eadf 100644
--- a/srcpkgs/run-mailcap/template
+++ b/srcpkgs/run-mailcap/template
@@ -10,6 +10,7 @@ license="custom:ad-hoc, custom:Bellcore"
 homepage="http://packages.ubuntu.com/disco/mime-support"
 distfiles="${UBUNTU_SITE}/main/m/mime-support/mime-support_${version}ubuntu1.tar.xz"
 checksum=5007d2ebc25935bfca6d4bdac0efdfc089a38c1be49d19f0422559f666e4f2c4
+patch_args=-Np0
 
 do_install() {
 	local _aliases="see edit compose print"
diff --git a/srcpkgs/runit/template b/srcpkgs/runit/template
index 081d5fe2c732..68b400c1ef5c 100644
--- a/srcpkgs/runit/template
+++ b/srcpkgs/runit/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://smarden.org/runit/"
 distfiles="http://smarden.org/runit/runit-$version.tar.gz"
 checksum=6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18
+patch_args=-Np0
 
 build_options="static"
 
diff --git a/srcpkgs/rustup/template b/srcpkgs/rustup/template
index e4f985f74ec4..2be276c712b2 100644
--- a/srcpkgs/rustup/template
+++ b/srcpkgs/rustup/template
@@ -15,6 +15,7 @@ license="Apache-2.0, MIT"
 homepage="https://www.rustup.rs"
 distfiles="https://github.com/rust-lang/${pkgname}/archive/${version}.tar.gz"
 checksum=0203231bfe405ee1c7d5e7e1c013b9b8a2dc87fbd8474e77f500331d8c26365f
+patch_args=-Np0
 
 post_build() {
 	RUSTUP="target/${RUST_TARGET}/release/rustup-init"
diff --git a/srcpkgs/rxvt-unicode/template b/srcpkgs/rxvt-unicode/template
index c89633c12deb..8ae30a72963e 100644
--- a/srcpkgs/rxvt-unicode/template
+++ b/srcpkgs/rxvt-unicode/template
@@ -26,6 +26,7 @@ license="GPL-3.0-or-later"
 homepage="http://software.schmorp.de/pkg/rxvt-unicode.html"
 distfiles="http://dist.schmorp.de/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=643116b9a25d29ad29f4890131796d42e6d2d21312282a613ef66c80c5b8c98b
+patch_args=-Np0
 
 # Package build options
 build_options="gdk_pixbuf perl startup_notification unicode3"
diff --git a/srcpkgs/s3cmd/template b/srcpkgs/s3cmd/template
index 40cd669dc978..3571621f48c3 100644
--- a/srcpkgs/s3cmd/template
+++ b/srcpkgs/s3cmd/template
@@ -12,6 +12,7 @@ changelog="https://github.com/s3tools/s3cmd/raw/master/NEWS"
 homepage="http://s3tools.org/s3cmd"
 distfiles="https://github.com/s3tools/${pkgname}/archive/v${version}.tar.gz"
 checksum=2293f775fde77201bf8e489f20516fd594168c77897168f129e5c1a2b33b7e37
+patch_args=-Np0
 
 pre_install() {
 	export S3CMD_INSTPATH_DOC="share/doc"
diff --git a/srcpkgs/samba/template b/srcpkgs/samba/template
index 90be22e57059..8195f38fbf01 100644
--- a/srcpkgs/samba/template
+++ b/srcpkgs/samba/template
@@ -32,6 +32,7 @@ lib32disabled=yes
 conf_files="/etc/pam.d/samba /etc/samba/smb.conf"
 make_dirs="/etc/samba/private 0750 root root"
 subpackages="smbclient samba-ctdb samba-cups samba-devel samba-libs samba-python3"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/sandboxfs/template b/srcpkgs/sandboxfs/template
index 9ab7a626b206..979a457e1056 100644
--- a/srcpkgs/sandboxfs/template
+++ b/srcpkgs/sandboxfs/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="https://github.com/bazelbuild/sandboxfs"
 distfiles="https://github.com/bazelbuild/sandboxfs/archive/sandboxfs-${version}.tar.gz"
 checksum=bff68e7d33ae56a3f34a79a74b2576599f5ccc381a237bbc10b5a3c3ea106b60
+patch_args=-Np0
 
 post_install() {
 	vman man/sandboxfs.1
diff --git a/srcpkgs/sane/template b/srcpkgs/sane/template
index 35dac1cc846a..8a68e3b65a15 100644
--- a/srcpkgs/sane/template
+++ b/srcpkgs/sane/template
@@ -21,6 +21,7 @@ homepage="http://www.sane-project.org/"
 distfiles="https://gitlab.com/sane-project/backends/uploads/${_gitlab_release_hash}/sane-backends-${version}.tar.gz"
 checksum=4a3b10fcb398ed854777d979498645edfe66fcac2f2fd2b9117a79ff45e2a5aa
 noshlibprovides="avoid false detection of device drivers"
+patch_args=-Np0
 
 build_options="snmp"
 
diff --git a/srcpkgs/sauerbraten/template b/srcpkgs/sauerbraten/template
index 587cc3da5903..102bb584421b 100644
--- a/srcpkgs/sauerbraten/template
+++ b/srcpkgs/sauerbraten/template
@@ -13,6 +13,7 @@ license="Zlib"
 homepage="http://sauerbraten.org"
 distfiles="${SOURCEFORGE_SITE}/sauerbraten/sauerbraten_${version//./_}_collect_edition_linux.tar.bz2"
 checksum=45c20521e3e56374490b2d9112a211538e801cf0161197f35476b30b7b58a78e
+patch_args=-Np0
 
 restricted="Very large - not worth storing on current Void infrastructure"
 
diff --git a/srcpkgs/sbcl/template b/srcpkgs/sbcl/template
index 4fc8a569b50e..8e52f31ee67c 100644
--- a/srcpkgs/sbcl/template
+++ b/srcpkgs/sbcl/template
@@ -15,6 +15,7 @@ distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-source.tar.bz2"
 checksum=965807ecd65a9590d68a0ed408b544e7e49a1f6e337ebd2b25e34788bcc8a8c5
 nocross=yes
 nopie=yes
+patch_args=-Np0
 
 _bootstrap_lisp="bash ../sbcl-*-linux/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/sc3-plugins/template b/srcpkgs/sc3-plugins/template
index 8511caea26e0..a26e459fc3af 100644
--- a/srcpkgs/sc3-plugins/template
+++ b/srcpkgs/sc3-plugins/template
@@ -19,6 +19,7 @@ distfiles="https://github.com/supercollider/sc3-plugins/archive/Version-${versio
 checksum="b8144231ea1bfc1c9d8aa6780c7e963dfb642868794abbfd8ccab418ffbbdfbe
  9b2035a3a7942c61cbe89b00c35c7e16ac281c06786fe1c30dfd333194be499a
  df9f280daaad56fdadb5fa75d492ee6a06762a41d7346aa473aa49c1ac9ec9c8"
+patch_args=-Np0
 
 post_extract() {
 	rm -rf external_libraries/nova-simd
diff --git a/srcpkgs/scanmem/template b/srcpkgs/scanmem/template
index d694f33d3725..5e715569c8a2 100644
--- a/srcpkgs/scanmem/template
+++ b/srcpkgs/scanmem/template
@@ -13,6 +13,7 @@ homepage="https://github.com/scanmem/scanmem"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=f02054b91322cf41517506158fcb74554e9fc6644e696f8aa25e5acf162d374b
 CFLAGS="-D__NEED_pid_t"
+patch_args=-Np0
 
 nocross="checking for /proc/self/maps... configure: error"
 
diff --git a/srcpkgs/schroot/template b/srcpkgs/schroot/template
index 85416dee5e9c..d30517ec6415 100644
--- a/srcpkgs/schroot/template
+++ b/srcpkgs/schroot/template
@@ -55,6 +55,7 @@ checksum="
 3ce8dfd9cb97b099e4b6d4ccec421d6cc8c9ef84574681e928a12badb5643d0b
 56bc82fc8ae7f6ca7eef506ccc1dca1211b2c84d83efc50d24670b8bdb9ea8bb"
 nocross=yes
+patch_args=-Np0
 
 pre_configure() {
 	cat ../debian/patches/series | while read p; do
diff --git a/srcpkgs/screen/template b/srcpkgs/screen/template
index 613696d9f373..f6288cc075bf 100644
--- a/srcpkgs/screen/template
+++ b/srcpkgs/screen/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/s/screen/"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=6e11b13d8489925fde25dfb0935bf6ed71f9eb47eff233a181e078fde5655aa1
+patch_args=-Np0
 
 post_install() {
 	vinstall etc/etcscreenrc 0644 etc screenrc
diff --git a/srcpkgs/scrotty/template b/srcpkgs/scrotty/template
index 13b03a1d1567..69270af50e20 100644
--- a/srcpkgs/scrotty/template
+++ b/srcpkgs/scrotty/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/maandree/scrotty"
 distfiles="https://github.com/maandree/scrotty/archive/${version}.tar.gz"
 checksum=466528d6ecf0138f57c40541258389686e22771c28d40f28c00825faaeaab1a3
+patch_args=-Np0
 
 pre_configure() {
 	export EXTRA_CFLAGS="$CFLAGS"
diff --git a/srcpkgs/scummvm/template b/srcpkgs/scummvm/template
index 0cec3ab176d7..aa52ba65d1e0 100644
--- a/srcpkgs/scummvm/template
+++ b/srcpkgs/scummvm/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.scummvm.org/"
 distfiles="https://downloads.scummvm.org/frs/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
 checksum=1469657e593bd8acbcfac0b839b086f640ebf120633e93f116cab652b5b27387
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*);;
diff --git a/srcpkgs/sddm/template b/srcpkgs/sddm/template
index 2a87381c8e8a..6d58d2e52e02 100644
--- a/srcpkgs/sddm/template
+++ b/srcpkgs/sddm/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later, CC-BY-3.0"
 homepage="http://github.com/sddm/sddm"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=e76da1f13d5ad5e0179e3fec57543126044339405ef19c397e105e0807bd4e41
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" sddm qt5-host-tools qt5-qmake qt5-tools"
diff --git a/srcpkgs/seafile-client-qt/template b/srcpkgs/seafile-client-qt/template
index 76b9a41fe45a..1f9b122cce2f 100644
--- a/srcpkgs/seafile-client-qt/template
+++ b/srcpkgs/seafile-client-qt/template
@@ -15,6 +15,7 @@ license="Apache-2.0"
 homepage="https://seafile.com"
 distfiles="https://github.com/haiwen/seafile-client/archive/v${version}.tar.gz"
 checksum=a6be7e55236cd4fb6028259ab5f35163ce044811f45b6008f280d42f5cee9f8d
+patch_args=-Np0
 
 build_options="shibboleth"
 desc_option_shibboleth="Build with Shibboleth support"
diff --git a/srcpkgs/seexpr-krita/template b/srcpkgs/seexpr-krita/template
index efb21e6f6508..0aaba2375734 100644
--- a/srcpkgs/seexpr-krita/template
+++ b/srcpkgs/seexpr-krita/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://krita.org"
 distfiles="${KDE_SITE}/kseexpr/${version%.*}/kseexpr-${version}.tar.gz"
 checksum=13b8455883001668f5d79c5734821c1ad2a0fbc91d019af085bb7e31cf6ce926
+patch_args=-Np0
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -DBUILD_TESTS=ON"
diff --git a/srcpkgs/serf/template b/srcpkgs/serf/template
index a9ac8a6d35e4..b27fd1e4b009 100644
--- a/srcpkgs/serf/template
+++ b/srcpkgs/serf/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="http://serf.apache.org"
 distfiles="https://archive.apache.org/dist/serf/serf-${version}.tar.bz2"
 checksum=549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args+=" APR=${XBPS_WRAPPERDIR}/apr-1-config"
diff --git a/srcpkgs/shaderc/template b/srcpkgs/shaderc/template
index 7382d081551c..d0d810161d23 100644
--- a/srcpkgs/shaderc/template
+++ b/srcpkgs/shaderc/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="https://github.com/google/shaderc"
 distfiles="https://github.com/google/shaderc/archive/v${version}.tar.gz"
 checksum=e02e2a9d4c3960bc629ca8cdcf83d295bec9c80ed08a8c5062e4e294022605ec
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/glslang"
 
diff --git a/srcpkgs/shadow/template b/srcpkgs/shadow/template
index f01181a49bd6..556e2ce263f1 100644
--- a/srcpkgs/shadow/template
+++ b/srcpkgs/shadow/template
@@ -17,6 +17,7 @@ homepage="https://github.com/shadow-maint/shadow"
 distfiles="${homepage}/releases/download/${version}/shadow-${version}.tar.xz"
 checksum=a3ad4630bdc41372f02a647278a8c3514844295d36eefe68ece6c3a641c1ae62
 conf_files="/etc/pam.d/* /etc/default/* /etc/login.defs"
+patch_args=-Np0
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/shapelib/template b/srcpkgs/shapelib/template
index 67a6f9c0dc7d..230bf6980f77 100644
--- a/srcpkgs/shapelib/template
+++ b/srcpkgs/shapelib/template
@@ -9,6 +9,7 @@ license="LGPL-2.0-only"
 homepage="http://shapelib.maptools.org/"
 distfiles="http://download.osgeo.org/shapelib/shapelib-${version}.tar.gz"
 checksum=1fc0a480982caef9e7b9423070b47750ba34cd0ba82668f2e638fab1d07adae1
+patch_args=-Np0
 
 shapelib-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/shiboken2/template b/srcpkgs/shiboken2/template
index ed06a780e1a9..5cdf26b88421 100644
--- a/srcpkgs/shiboken2/template
+++ b/srcpkgs/shiboken2/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.qt.io/Qt_for_Python/Shiboken"
 distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
 checksum=b306504b0b8037079a8eab772ee774b9e877a2d84bab2dbefbe4fa6f83941418
+patch_args=-Np0
 
 python_version=3
 export CLANG_INSTALL_DIR=${XBPS_CROSS_BASE}/usr
diff --git a/srcpkgs/shmux/template b/srcpkgs/shmux/template
index 3f353a0df33b..d3c039b4f128 100644
--- a/srcpkgs/shmux/template
+++ b/srcpkgs/shmux/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/shmux/shmux"
 distfiles="https://github.com/shmux/shmux/archive/v${version}.tar.gz"
 checksum=c9f8863e2550e23e633cf5fc7a9c4c52d287059f424ef78aba6ecd98390fb9ab
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/shotwell/template b/srcpkgs/shotwell/template
index b0c1878e31bb..1076b974de75 100644
--- a/srcpkgs/shotwell/template
+++ b/srcpkgs/shotwell/template
@@ -17,6 +17,7 @@ homepage="https://wiki.gnome.org/Apps/Shotwell"
 distfiles="${GNOME_SITE}/shotwell/${version%.*}/shotwell-${version}.tar.xz"
 checksum=8de36f20488f4fb7d090194c8af46cd3661bcc81a3d65f980cb17667ed826af2
 lib32disabled=yes
+patch_args=-Np0
 
 post_extract() {
 	# because shotwell intelligently forces fatal warnings even for
diff --git a/srcpkgs/signond/template b/srcpkgs/signond/template
index 183c3b9481e7..585a4f7e28b7 100644
--- a/srcpkgs/signond/template
+++ b/srcpkgs/signond/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://gitlab.com/accounts-sso/signond"
 distfiles="https://gitlab.com/accounts-sso/signond/repository/archive.tar.gz?ref=VERSION_${version}>signond-${version}.tar.gz"
 checksum=a9cd90cf3e8b1a8bdbe5acf46c797a817092e77946c69fc3ed3a76930f3a76aa
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 8e9f28786b9e..fb99e1fcd88d 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.sile-typesetter.org/"
 distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
 checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
diff --git a/srcpkgs/silly/template b/srcpkgs/silly/template
index 432cefdabc93..8fa0632c361c 100644
--- a/srcpkgs/silly/template
+++ b/srcpkgs/silly/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://sourceforge.net/projects/crayzedsgui/"
 distfiles="${SOURCEFORGE_SITE}/project/crayzedsgui/${pkgname^^}/${version}/${pkgname^^}-${version}.tar.gz"
 checksum=afa064f70433008ec9837fb601c8d73e73db07856e4566f8bee010758c5304ac
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/simgear/template b/srcpkgs/simgear/template
index 4a15e27896ef..58f19d499e50 100644
--- a/srcpkgs/simgear/template
+++ b/srcpkgs/simgear/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.flightgear.org/"
 distfiles="$SOURCEFORGE_SITE/project/flightgear/release-${version%.*}/${pkgname}-${version}.tar.bz2"
 checksum=66da2c4f68058f6854206f2dd9c03c9223851ade24a50216e88b4e50598c13d1
+patch_args=-Np0
 
 # Suppress warnings regarding auto_ptr
 CXXFLAGS="-Wno-deprecated-declarations"
diff --git a/srcpkgs/simutron/template b/srcpkgs/simutron/template
index cdcf68c2a435..15a6accf2010 100644
--- a/srcpkgs/simutron/template
+++ b/srcpkgs/simutron/template
@@ -13,6 +13,7 @@ maintainer="Artur Sinila <opensource@logarithmus.dev>"
 license="GPL-3.0-only"
 homepage="https://sourceforge.net/projects/simutron/"
 nostrip_files="LCD20x4Test.elf"
+patch_args=-Np0
 
 do_fetch() {
 	svn checkout "https://svn.code.sf.net/p/${pkgname}/code/branches/RB-${_version}-${_rev}" "$wrksrc"
diff --git a/srcpkgs/sisl/template b/srcpkgs/sisl/template
index 1fdf40b02dbf..0457d6e17fe2 100644
--- a/srcpkgs/sisl/template
+++ b/srcpkgs/sisl/template
@@ -10,6 +10,7 @@ license="AGPL-3.0-only"
 homepage="https://github.com/SINTEF-Geometry/SISL"
 distfiles="$homepage/archive/SISL-$version.tar.gz"
 checksum=b207fe6b4b20775e3064168633256fddd475ff98573408f6f5088a938c086f86
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/skroll/template b/srcpkgs/skroll/template
index e01de5aa0647..9263b38cd5c0 100644
--- a/srcpkgs/skroll/template
+++ b/srcpkgs/skroll/template
@@ -10,6 +10,7 @@ license="WTFPL"
 homepage="http://git.z3bra.org/skroll/log.html"
 distfiles="http://dl.z3bra.org/releases/${pkgname}-${version}.tar.bz2"
 checksum=32221fef51f6814a7bf3cf4207b8a2466624544a2fd1e5b110ee2af3580d2959
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/slcp/template b/srcpkgs/slcp/template
index 1873bcc6f233..614c5844ad11 100644
--- a/srcpkgs/slcp/template
+++ b/srcpkgs/slcp/template
@@ -10,6 +10,7 @@ license="Beerware"
 homepage="https://github.com/schachmat/slcp"
 distfiles="https://github.com/schachmat/slcp/archive/${version}.tar.gz"
 checksum=a26e56832e37dbf1c7b776ddb137e422c987c19330575708a5945697e08e7cfe
+patch_args=-Np0
 
 pre_build() {
 	sed -i 's|^CFLAGS =|override CFLAGS +=|g' config.mk
diff --git a/srcpkgs/sleuthkit/template b/srcpkgs/sleuthkit/template
index f7d3ebf142f5..c61696b35270 100644
--- a/srcpkgs/sleuthkit/template
+++ b/srcpkgs/sleuthkit/template
@@ -15,6 +15,7 @@ homepage="https://www.sleuthkit.org/"
 changelog="https://github.com/sleuthkit/sleuthkit/releases"
 distfiles="https://github.com/sleuthkit/sleuthkit/archive/sleuthkit-${version}.tar.gz"
 checksum=da9a336c37e03b78bd912acf243953254a3215f0b3646f9d2c526f4b502e6f11
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's:sys/fcntl.h:fcntl.h:g' tsk/fs/tsk_fs_i.h
diff --git a/srcpkgs/slim/template b/srcpkgs/slim/template
index b7382cac3085..43d025a1e9b5 100644
--- a/srcpkgs/slim/template
+++ b/srcpkgs/slim/template
@@ -15,6 +15,7 @@ homepage="http://sourceforge.net/projects/slim.berlios/"
 distfiles="${SOURCEFORGE_SITE}/slim.berlios/slim-${version}.tar.gz"
 checksum=21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df
 lib32disabled=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) CXXFLAGS="-DNEEDS_BASENAME";;
diff --git a/srcpkgs/sloccount/template b/srcpkgs/sloccount/template
index f33b58e0aea4..861d5883cb80 100644
--- a/srcpkgs/sloccount/template
+++ b/srcpkgs/sloccount/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://dwheeler.com/sloccount/"
 distfiles="https://dwheeler.com/sloccount/sloccount-${version}.tar.gz"
 checksum=fa7fa2bbf2f627dd2d0fdb958bd8ec4527231254c120a8b4322405d8a4e3d12b
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/bin
diff --git a/srcpkgs/slurm-wlm/template b/srcpkgs/slurm-wlm/template
index e01f3912697f..420663fbb7ee 100644
--- a/srcpkgs/slurm-wlm/template
+++ b/srcpkgs/slurm-wlm/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="http://slurm.schedmd.com/slurm.html"
 distfiles="https://github.com/SchedMD/slurm/archive/slurm-${_distver}.tar.gz"
 checksum=e53e67bd0bb4c37a9c481998764a746467a96bc41d6527569080514f36452c07
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/smpeg/template b/srcpkgs/smpeg/template
index 9a958bd1bbae..e8dfe2e4452f 100644
--- a/srcpkgs/smpeg/template
+++ b/srcpkgs/smpeg/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-only"
 homepage="https://icculus.org/smpeg/"
 distfiles="ftp://slackware.oregonstate.edu/.1/vectorlinux/VL64-7.0/source/sourceVL/smpeg/${version}/src/smpeg-${version}.tar.gz"
 checksum=1839c12e88d5dbbc767a7b94eeab2aa3efe4f0eebb7eb7c7240270ba93689a2b
+patch_args=-Np0
 
 post_install() {
 	# Remove unused stuff
diff --git a/srcpkgs/smpeg2/template b/srcpkgs/smpeg2/template
index 5c87e4416dae..5afde1920c59 100644
--- a/srcpkgs/smpeg2/template
+++ b/srcpkgs/smpeg2/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="https://icculus.org/smpeg/"
 distfiles="https://www.libsdl.org/projects/smpeg/release/smpeg2-${version}.tar.gz"
 checksum=979a65b211744a44fa641a9b6e4d64e64a12ff703ae776bafe3c4c4cd85494b3
+patch_args=-Np0
 
 # Package build options
 build_options="rpi"
diff --git a/srcpkgs/snapper/template b/srcpkgs/snapper/template
index bd58ab951c24..a2dd275709e7 100644
--- a/srcpkgs/snapper/template
+++ b/srcpkgs/snapper/template
@@ -19,6 +19,7 @@ homepage="http://snapper.io"
 distfiles="https://github.com/openSUSE/snapper/archive/v${version}.tar.gz"
 checksum=ca7b17d0213aa5281ff08d968b4e029b78bb3870eb79fd7bc7f879b17f5c969e
 lib32disabled=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]
 then
diff --git a/srcpkgs/snappy/template b/srcpkgs/snappy/template
index 7e9e5214fb7d..36d572f0da93 100644
--- a/srcpkgs/snappy/template
+++ b/srcpkgs/snappy/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://google.github.io/snappy"
 distfiles="https://github.com/google/snappy/archive/${version}.tar.gz"
 checksum=75c1fbb3d618dd3a0483bff0e26d0a92b495bbe5059c8b4f1c962b478b6e06e7
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/socat/template b/srcpkgs/socat/template
index d4e0f0a9bbdb..bbbe7dccb42c 100644
--- a/srcpkgs/socat/template
+++ b/srcpkgs/socat/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.dest-unreach.org/socat/"
 distfiles="http://www.dest-unreach.org/socat/download/socat-${version}.tar.bz2"
 checksum=3faca25614e89123dff5045680549ecef519d02e331aaf3c4f5a8f6837c675e9
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) CFLAGS="-D_LINUX_IF_ETHER_H";;
diff --git a/srcpkgs/socklog/template b/srcpkgs/socklog/template
index 3df32c8ebeb5..0d77880ebb04 100644
--- a/srcpkgs/socklog/template
+++ b/srcpkgs/socklog/template
@@ -9,6 +9,7 @@ license="custom"
 homepage="http://smarden.org/socklog/"
 distfiles="http://smarden.org/socklog/socklog-${version}.tar.gz"
 checksum=aa869a787ee004da4e5509b5a0031bcc17a4ab4ac650c2ce8d4e488123acb455
+patch_args=-Np0
 
 build_options="static"
 
diff --git a/srcpkgs/sombok/template b/srcpkgs/sombok/template
index 622a1e6fc961..3c6fcaff53d1 100644
--- a/srcpkgs/sombok/template
+++ b/srcpkgs/sombok/template
@@ -12,6 +12,7 @@ license="Artistic, GPL-1"
 homepage="https://github.com/hatukanezumi/sombok"
 distfiles="https://github.com/hatukanezumi/${pkgname}/archive/${pkgname}-${version}.tar.gz"
 checksum=14d9dcd3621bf9d591a7158aeac99b4d4a60296558173be51d57b54b8f9d70a2
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -i
diff --git a/srcpkgs/sonic-visualiser/template b/srcpkgs/sonic-visualiser/template
index 4daa56060eea..583e5d4d3fe3 100644
--- a/srcpkgs/sonic-visualiser/template
+++ b/srcpkgs/sonic-visualiser/template
@@ -16,6 +16,7 @@ homepage="https://www.sonicvisualiser.org/"
 changelog="https://code.soundsoftware.ac.uk/projects/sonic-visualiser/repository/entry/CHANGELOG"
 distfiles="https://code.soundsoftware.ac.uk/attachments/download/2755/${pkgname}-${version}.tar.gz"
 checksum=38e91a4035962ad177905a9f1249136fe88d4b596fd9b8f40c82b60dadca5bf3
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/sopwith/template b/srcpkgs/sopwith/template
index aa160fdbb870..2c0b91f10be4 100644
--- a/srcpkgs/sopwith/template
+++ b/srcpkgs/sopwith/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://sdl-sopwith.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/sdl-sopwith/sdl_sopwith/${version}/sopwith-${version}.tar.gz"
 checksum=a5ecb795a7aeff6be3ebfb99f1c6218054b73048786809f8468a92c952c17bd0
+patch_args=-Np0
 
 pre_configure() {
 	mv configure.{in,ac}
diff --git a/srcpkgs/soundmodem/template b/srcpkgs/soundmodem/template
index 91ae349d3c1a..f38d83b2f88d 100644
--- a/srcpkgs/soundmodem/template
+++ b/srcpkgs/soundmodem/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://soundmodem.vk4msl.yi.org/"
 distfiles="http://soundmodem.vk4msl.yi.org/soundmodem-${version}.tar.gz"
 checksum=f033c1716df1378cda646dbb1c48ea9fb9a068772c6686f2ca411bfa64245c1c
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/spacefm/template b/srcpkgs/spacefm/template
index f89a4cd5ad5c..cb2b3b59b9d0 100644
--- a/srcpkgs/spacefm/template
+++ b/srcpkgs/spacefm/template
@@ -15,6 +15,7 @@ homepage="http://ignorantguru.github.io/spacefm/"
 distfiles="https://github.com/IgnorantGuru/spacefm/archive/${version}.tar.gz"
 checksum=fedea9fcad776e0af4b8d90c5a1c86684a9c96ef1cdd4e959530ce93bdebe7c9
 conf_files="/etc/spacefm/spacefm.conf"
+patch_args=-Np0
 
 build_options="gtk3"
 build_options_default="gtk3"
diff --git a/srcpkgs/spamassassin/template b/srcpkgs/spamassassin/template
index d778f76ba3eb..f36e91661fac 100644
--- a/srcpkgs/spamassassin/template
+++ b/srcpkgs/spamassassin/template
@@ -25,6 +25,7 @@ conf_files="
  /etc/mail/spamassassin/v320.pre
  /etc/mail/spamassassin/init.pre
  /etc/mail/spamassassin/local.cf"
+patch_args=-Np0
 
 post_install() {
 	vinstall $FILESDIR/sa-update 755 /etc/cron.weekly
diff --git a/srcpkgs/spampd/template b/srcpkgs/spampd/template
index 4380aae4f8bc..f64c6dccde75 100644
--- a/srcpkgs/spampd/template
+++ b/srcpkgs/spampd/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/downloads/mpaperno/$pkgname/$pkgname-$version.tar.
 checksum=c980e55f46c7757fd45294e5268766253123490d0158d2ee36ad5700ddf823bb
 system_accounts="_spampd"
 _spampd_homedir="/var/lib/spampd"
+patch_args=-Np0
 
 pre_install() {
 	sed -i '/INSTALL.* \(spampd.default\|spampd-init.sh\) /d' Makefile
diff --git a/srcpkgs/speech-dispatcher/template b/srcpkgs/speech-dispatcher/template
index 810692a434b1..fac86abc1d75 100644
--- a/srcpkgs/speech-dispatcher/template
+++ b/srcpkgs/speech-dispatcher/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, GFDL-1.2-or-later"
 homepage="http://devel.freebsoft.org/speechd"
 distfiles="https://github.com/brailcom/speechd/archive/${version}.tar.gz"
 checksum=0c702d4acc4920818db3daa28ecf14004123b64514b4575c138874618835104c
+patch_args=-Np0
 
 conf_files="
  /etc/speech-dispatcher/clients/*.conf
diff --git a/srcpkgs/speed-dreams/template b/srcpkgs/speed-dreams/template
index fadabc891c88..47786d859bbb 100644
--- a/srcpkgs/speed-dreams/template
+++ b/srcpkgs/speed-dreams/template
@@ -29,6 +29,7 @@ replaces="speed-dreams-data>=0"
 CFLAGS=-fpermissive
 CXXFLAGS=-fpermissive
 lib32disabled=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	broken="Segmentation fault"
diff --git a/srcpkgs/spice-gtk/template b/srcpkgs/spice-gtk/template
index 7218e837891f..613328430c20 100644
--- a/srcpkgs/spice-gtk/template
+++ b/srcpkgs/spice-gtk/template
@@ -22,6 +22,7 @@ license="LGPL-2.1-or-later"
 homepage="https://spice-space.org"
 distfiles="https://spice-space.org/download/gtk/${pkgname}-${version}.tar.xz"
 checksum=23acbee197eaaec9bce6e6bfd885bd8f79708332639243ff04833020865713cd
+patch_args=-Np0
 
 CFLAGS="-Wno-error -Wno-error=unused-but-set-variable"
 
diff --git a/srcpkgs/spim/template b/srcpkgs/spim/template
index 347ff447611b..aada991a2d50 100644
--- a/srcpkgs/spim/template
+++ b/srcpkgs/spim/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="http://spimsimulator.sourceforge.net/"
 distfiles="http://pages.cs.wisc.edu/~larus/SPIM/spim-${version}.tar.gz"
 checksum="6f205776cb9fa112729507008843b289012190ed3131cbd426c610a58387ee4b"
+patch_args=-Np0
 
 pre_configure() {
 	sed '/Copyright (c) 1990-2010, James R. Larus./,+26!d' README > LICENSE
diff --git a/srcpkgs/splix/template b/srcpkgs/splix/template
index 366aab114bce..47c4ef173356 100644
--- a/srcpkgs/splix/template
+++ b/srcpkgs/splix/template
@@ -11,6 +11,7 @@ homepage="http://splix.ap2c.org"
 distfiles="${DEBIAN_SITE}/main/s/$pkgname/${pkgname}_$version.orig.tar.gz"
 checksum="578a81bd5b1b97756a539c3bb6339fd109d54419887a73e705941da8aa7fac52"
 CXXFLAGS="-fno-strict-aliasing"
+patch_args=-Np0
 
 do_build() {
 	vsed -i rules.mk \
diff --git a/srcpkgs/spreed-webrtc/template b/srcpkgs/spreed-webrtc/template
index 7baa339cc7e5..4480b5dabec9 100644
--- a/srcpkgs/spreed-webrtc/template
+++ b/srcpkgs/spreed-webrtc/template
@@ -13,6 +13,7 @@ license="AGPL-3.0-or-later"
 homepage="https://github.com/strukturag/spreed-webrtc"
 distfiles="https://github.com/strukturag/spreed-webrtc/archive/v${version}.tar.gz"
 checksum=d05b820fe3883840eadf8b96bda663397991849d9bda4750fc7c4e642c9c3268
+patch_args=-Np0
 
 system_accounts="_spreed_webrtc"
 
diff --git a/srcpkgs/sqmail/template b/srcpkgs/sqmail/template
index 78c0af18eadb..ac118d931dfd 100644
--- a/srcpkgs/sqmail/template
+++ b/srcpkgs/sqmail/template
@@ -16,6 +16,7 @@ nocross="custom build system"
 provides="smtp-server-0_1"
 replaces="smtp-server>=0"
 conf_files="/etc/sv/*/run /etc/sv/*/log/run"
+patch_args=-Np0
 
 system_groups="_nofiles:798 _sqmail:799"
 
diff --git a/srcpkgs/squashfs-tools/template b/srcpkgs/squashfs-tools/template
index d49d6c5602a8..f66e2db53916 100644
--- a/srcpkgs/squashfs-tools/template
+++ b/srcpkgs/squashfs-tools/template
@@ -12,6 +12,7 @@ short_desc="Tool to create and append to squashfs filesystems"
 maintainer="Duncaen <duncaen@voidlinux.org>"
 distfiles="${SOURCEFORGE_SITE}/squashfs/squashfs${version}.tar.gz"
 checksum=a981b3f3f2054b5a2e658851a3c06a2460ad04a9a8a645e0afe063a63fdbb07e
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/srb2/template b/srcpkgs/srb2/template
index 08a2bff0886c..de8c22c3a5b6 100644
--- a/srcpkgs/srb2/template
+++ b/srcpkgs/srb2/template
@@ -19,6 +19,7 @@ distfiles="https://github.com/STJr/SRB2/archive/SRB2_release_${version}.tar.gz
 checksum="5f7eeb08e90323e28cdcb02ad25c904eef25ce75316720609b995a1e4ffd154a
  48cf787a70f44b31fa7a56db4053a404a7103a494f1e09fd2bbfd563672a3534"
 restricted=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*) makedepends+=" nasm" ;;
diff --git a/srcpkgs/ssoma/template b/srcpkgs/ssoma/template
index 9fbee6bead10..7de2723c4bc9 100644
--- a/srcpkgs/ssoma/template
+++ b/srcpkgs/ssoma/template
@@ -14,6 +14,7 @@ license="AGPL-3.0-or-later"
 homepage="https://ssoma.public-inbox.org/"
 distfiles="https://ssoma.public-inbox.org/files/${pkgname}-${version}.tar.gz"
 checksum=7455bafb344aaa8eeac78ae5efcca2384d11baface1194c35bafd30353168faf
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/sssd/template b/srcpkgs/sssd/template
index 61ead1c9e44e..758022a785c1 100644
--- a/srcpkgs/sssd/template
+++ b/srcpkgs/sssd/template
@@ -32,6 +32,7 @@ python_version=3
 nocross="configure attempts to run compiled output"
 # These modules in /usr/lib/sssd are required by sssd-python3
 shlib_provides="libsss_util.so libsss_crypt.so libsss_debug.so"
+patch_args=-Np0
 
 do_check() {
 	export CK_TIMEOUT_MULTIPLIER=10
diff --git a/srcpkgs/stack/template b/srcpkgs/stack/template
index 257aba10e50d..7a4ddad1a029 100644
--- a/srcpkgs/stack/template
+++ b/srcpkgs/stack/template
@@ -17,6 +17,7 @@ checksum="f29d63b91ff2bddd130b29ddee90a1f450706271a13d5d80b653b50379ffa076
 skip_extraction="cabal.config-${_stackage}"
 nocross=yes
 nopie_files="/usr/bin/stack"
+patch_args=-Np0
 
 do_build() {
 	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/cabal.config-${_stackage} cabal.config
diff --git a/srcpkgs/starplot/template b/srcpkgs/starplot/template
index ccc2232d4608..0c5bbe729448 100644
--- a/srcpkgs/starplot/template
+++ b/srcpkgs/starplot/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://starplot.org/"
 distfiles="${homepage}downloads/${pkgname}-${version}.tar.gz"
 checksum=e320f141b736b3a6468e7d0c08a93961db6615e9eb4d533d554eea31c3fa845a
+patch_args=-Np0
 
 pre_build() {
 	sed -i 's/_STRINGS_H/V_STRINGS_H/' src/classes/strings.h
diff --git a/srcpkgs/stepmania/template b/srcpkgs/stepmania/template
index 07afdba93ce6..0da6a45d7751 100644
--- a/srcpkgs/stepmania/template
+++ b/srcpkgs/stepmania/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.stepmania.com/"
 distfiles="https://github.com/stepmania/stepmania/archive/v${version}.tar.gz"
 checksum=df79bcadd69d4ed60cf560d45386ec275181343495ffd744c3ff8f73c83d4755
+patch_args=-Np0
 
 # Upstream has stated that only x86 hardware can meed the performance
 # constraints and that musl is not supported due to interop issues
diff --git a/srcpkgs/stfl/template b/srcpkgs/stfl/template
index 0d970c9d2c26..f38cd252e8ac 100644
--- a/srcpkgs/stfl/template
+++ b/srcpkgs/stfl/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.clifford.at/stfl/"
 distfiles="http://www.clifford.at/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=d4a7aa181a475aaf8a8914a8ccb2a7ff28919d4c8c0f8a061e17a0c36869c090
+patch_args=-Np0
 
 post_install() {
 	ln -sf libstfl.so.${version} ${DESTDIR}/usr/lib/libstfl.so.0
diff --git a/srcpkgs/stk/template b/srcpkgs/stk/template
index 42b5918ced65..d0eecb39a8f2 100644
--- a/srcpkgs/stk/template
+++ b/srcpkgs/stk/template
@@ -16,6 +16,7 @@ license="custom:MIT-like"
 homepage="https://ccrma.stanford.edu/software/stk/"
 distfiles="https://github.com/thestk/stk/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=8e0c362dd82421bae8f3e789d238a1c27aeac1a2697d7830eb51abc90fc17281
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 autoreconf -fi
diff --git a/srcpkgs/stlink/template b/srcpkgs/stlink/template
index 06f39a7cf256..e6b504938b54 100644
--- a/srcpkgs/stlink/template
+++ b/srcpkgs/stlink/template
@@ -14,6 +14,7 @@ homepage="https://github.com/texane/stlink"
 changelog="https://raw.githubusercontent.com/texane/stlink/master/CHANGELOG.md"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=ca9a640f84c3e2c9873bd51759594bc05c00cdf6e1f21b434ae2c0e7985433d8
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.md LICENSE
diff --git a/srcpkgs/stockfish/template b/srcpkgs/stockfish/template
index 1749c9c3692d..24ccc14fa432 100644
--- a/srcpkgs/stockfish/template
+++ b/srcpkgs/stockfish/template
@@ -18,6 +18,7 @@ distfiles="https://github.com/official-stockfish/Stockfish/archive/sf_${version}
 checksum="15d14721b3be17c597535bdbb44fb951a1ee948312d90fbf55fa0e52b8b81d62
  62ef826d1a6d11b9e814188025aa02a60815c037292e0ef9bbb9bf4f724e5e63"
 skip_extraction="${_net_file}"
+patch_args=-Np0
 
 LDFLAGS+="-lpthread -Wl,-z,stack-size=2097152"
 
diff --git a/srcpkgs/strawberry/template b/srcpkgs/strawberry/template
index 35828b1e3c24..1d51eaf7fc2a 100644
--- a/srcpkgs/strawberry/template
+++ b/srcpkgs/strawberry/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.strawberrymusicplayer.org/"
 distfiles="https://files.strawberrymusicplayer.org/${pkgname}-${version}.tar.xz"
 checksum=0fe9c38c4d1e2f10c1130dbd87ea6e740bef729fe78820a84ffabe524a80c83e
+patch_args=-Np0
 
 build_options="qt6"
 build_options_default=""
diff --git a/srcpkgs/subversion-kwallet-auth/template b/srcpkgs/subversion-kwallet-auth/template
index 12210f250d51..00ad190384b9 100644
--- a/srcpkgs/subversion-kwallet-auth/template
+++ b/srcpkgs/subversion-kwallet-auth/template
@@ -24,6 +24,7 @@ changelog="https://subversion.apache.org/docs/release-notes/${version%.*}.html"
 distfiles="http://apache.uvigo.es/subversion/subversion-${version}.tar.bz2"
 checksum=2c5da93c255d2e5569fa91d92457fdb65396b0666fad4fd59b22e154d986e1a9
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	# Based on native build values
diff --git a/srcpkgs/subversion/template b/srcpkgs/subversion/template
index e10c80ec8b18..70b4cedbfa6a 100644
--- a/srcpkgs/subversion/template
+++ b/srcpkgs/subversion/template
@@ -22,6 +22,7 @@ homepage="http://subversion.apache.org/"
 changelog="https://subversion.apache.org/docs/release-notes/${version%.*}.html"
 distfiles="http://apache.uvigo.es/subversion/subversion-${version}.tar.bz2"
 checksum=2c5da93c255d2e5569fa91d92457fdb65396b0666fad4fd59b22e154d986e1a9
+patch_args=-Np0
 
 pre_configure() {
 	# Based on native build values
diff --git a/srcpkgs/sudo/template b/srcpkgs/sudo/template
index f70418dd6b75..cae14ef1cf4b 100644
--- a/srcpkgs/sudo/template
+++ b/srcpkgs/sudo/template
@@ -18,6 +18,7 @@ distfiles="https://www.sudo.ws/dist/sudo-${version}.tar.gz"
 checksum=2bbe7c2d6699b84d950ef9a43f09d4d967b8bc244b73bc095c4202068ddbe549
 conf_files="/etc/pam.d/sudo /etc/sudoers"
 lib32disabled=yes
+patch_args=-Np0
 
 post_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/sudoku/template b/srcpkgs/sudoku/template
index 606bdd9557c6..a863e9f84bdf 100644
--- a/srcpkgs/sudoku/template
+++ b/srcpkgs/sudoku/template
@@ -10,6 +10,7 @@ license="Public Domain"
 homepage="https://github.com/cinemast/sudoku"
 distfiles="https://github.com/cinemast/sudoku/archive/v${version}.tar.gz"
 checksum=3ce6d9b237546d4ac7cdb7a6bb0e47d5c99e696a710b8935bce40dc706d32ff2
+patch_args=-Np0
 
 do_install() {
 	vbin sudoku
diff --git a/srcpkgs/sunxi-tools/template b/srcpkgs/sunxi-tools/template
index f4f547c7947d..e88e962b5939 100644
--- a/srcpkgs/sunxi-tools/template
+++ b/srcpkgs/sunxi-tools/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/linux-sunxi/sunxi-tools"
 distfiles="$homepage/archive/$_commit.tar.gz"
 checksum=93922d654df5153d468b0f7900f96fe858fe457894ff2dd0f5dfb5c94b65475b
+patch_args=-Np0
 
 CFLAGS="-std=c99 -I./include"
 
diff --git a/srcpkgs/supercollider/template b/srcpkgs/supercollider/template
index c7a878f91c09..421b50cf8aac 100644
--- a/srcpkgs/supercollider/template
+++ b/srcpkgs/supercollider/template
@@ -18,6 +18,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/supercollider/supercollider"
 distfiles="https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source.tar.bz2"
 checksum=2dd2f8179a55de4735ac940e2e2d0df4e68cc3a33172628e4dd99ae89c74856b
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/supertux2/template b/srcpkgs/supertux2/template
index 4c39b458dad4..75b6b37e3dbd 100644
--- a/srcpkgs/supertux2/template
+++ b/srcpkgs/supertux2/template
@@ -20,5 +20,6 @@ homepage="https://supertux.github.io/"
 distfiles="https://github.com/SuperTux/supertux/releases/download/v${version}/SuperTux-v${version}-Source.tar.gz"
 checksum=26a9e56ea2d284148849f3239177d777dda5b675a10ab2d76ee65854c91ff598
 replaces="supertux2-data>=0"
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
diff --git a/srcpkgs/supertuxkart/template b/srcpkgs/supertuxkart/template
index 519bc615782d..aa4734caa91f 100644
--- a/srcpkgs/supertuxkart/template
+++ b/srcpkgs/supertuxkart/template
@@ -17,6 +17,7 @@ license="GPL-3.0-or-later"
 homepage="https://supertuxkart.net"
 distfiles="https://github.com/${pkgname}/stk-code/releases/download/${version}/SuperTuxKart-${version}-src.tar.xz"
 checksum=052edf0afdbeb99583fe8676fb0ab80ecb6103fb88b7540f858d1b5fa1297d37
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/sutils/template b/srcpkgs/sutils/template
index 640b14ce66d8..6ecc796f206f 100644
--- a/srcpkgs/sutils/template
+++ b/srcpkgs/sutils/template
@@ -10,6 +10,7 @@ license="Unlicense"
 homepage="https://github.com/baskerville/sutils/"
 distfiles="https://github.com/baskerville/sutils/archive/${version}.tar.gz"
 checksum=da8cccace32094430be572cf59d85256023edf9107b12c926c7beb29586c56a3
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/sway/template b/srcpkgs/sway/template
index 4a77658518e8..dd8800028931 100644
--- a/srcpkgs/sway/template
+++ b/srcpkgs/sway/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="https://swaywm.org"
 distfiles="https://github.com/swaywm/${pkgname}/archive/${version}.tar.gz"
 checksum=9ecfd2f38239f7e90922a13cd348fc95fc059e8fa0e4b75b8ffcc7b61685a5fb
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/swiften/template b/srcpkgs/swiften/template
index 969ef1eb5d78..f549e1abcb42 100644
--- a/srcpkgs/swiften/template
+++ b/srcpkgs/swiften/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="http://swift.im/"
 distfiles="http://swift.im/git/swift/snapshot/swift-${version}.tar.bz2"
 checksum=6a3f93e807afb51f1b8ab6ec8fef379dfcc50ba71fef6abeee7c123348da66b0
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/sword/template b/srcpkgs/sword/template
index 13240a993160..15a4213b6d54 100644
--- a/srcpkgs/sword/template
+++ b/srcpkgs/sword/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="https://crosswire.org/sword/index.jsp"
 distfiles="https://crosswire.org/ftpmirror/pub/sword/source/v1.8/sword-${version}.tar.gz"
 checksum=ce9aa8f721a737f406115d35ff438bd07c829fce1605f0d6dcdabc4318bc5e93
+patch_args=-Np0
 
 CXXFLAGS=' -DU_USING_ICU_NAMESPACE=1'
 
diff --git a/srcpkgs/sxiv/template b/srcpkgs/sxiv/template
index 3baaa111f613..f5a5adc2b264 100644
--- a/srcpkgs/sxiv/template
+++ b/srcpkgs/sxiv/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/muennich/sxiv"
 distfiles="https://github.com/muennich/sxiv/archive/v${version}.tar.gz"
 checksum=a382ad57734243818e828ba161fc0357b48d8f3a7f8c29cac183492b46b58949
+patch_args=-Np0
 
 pre_build() {
 	[ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h ||:
diff --git a/srcpkgs/sylpheed/template b/srcpkgs/sylpheed/template
index 5df8312b53dc..a37c3ced4ec8 100644
--- a/srcpkgs/sylpheed/template
+++ b/srcpkgs/sylpheed/template
@@ -13,6 +13,7 @@ homepage="http://sylpheed.sraoss.jp"
 distfiles="http://sylpheed.sraoss.jp/sylpheed/v${version%.*}/$pkgname-$version.tar.bz2"
 checksum=eb23e6bda2c02095dfb0130668cf7c75d1f256904e3a7337815b4da5cb72eb04
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	aclocal -I ac
diff --git a/srcpkgs/synergy/template b/srcpkgs/synergy/template
index 0c4f3b4f130a..79bcf7db11fb 100644
--- a/srcpkgs/synergy/template
+++ b/srcpkgs/synergy/template
@@ -15,6 +15,7 @@ license="GPL-2.0-only"
 homepage="http://synergy-foss.org/"
 distfiles="https://github.com/symless/synergy-core/archive/v${version}-stable.tar.gz"
 checksum=a57989dd2d3ae30657f2b95cba3cae112c189f9bbbc3d1b25b3874859afeb94d
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/share/examples/${pkgname}
diff --git a/srcpkgs/synfigstudio/template b/srcpkgs/synfigstudio/template
index 3e40a99fb28c..a04916c78689 100644
--- a/srcpkgs/synfigstudio/template
+++ b/srcpkgs/synfigstudio/template
@@ -14,6 +14,7 @@ distfiles="https://github.com/synfig/synfig/releases/download/v${version}/synfig
 checksum=af9a9b0064064907ae24a693b607dcba633a8a2cd45fa1357f61c035efd6020e
 python_version=3
 CXXFLAGS="-Wno-deprecated-copy -DHAVE_LOCALE_H=1"
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	# uses synfig to create some icons
diff --git a/srcpkgs/sysbench/template b/srcpkgs/sysbench/template
index e2fe7be0cc8b..88a162b2dc8b 100644
--- a/srcpkgs/sysbench/template
+++ b/srcpkgs/sysbench/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/akopytov/sysbench"
 distfiles="https://github.com/akopytov/sysbench/archive/${version}.tar.gz"
 checksum=e8ee79b1f399b2d167e6a90de52ccc90e52408f7ade1b9b7135727efe181347f
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/sysdig/template b/srcpkgs/sysdig/template
index 8932775a781f..712895300344 100644
--- a/srcpkgs/sysdig/template
+++ b/srcpkgs/sysdig/template
@@ -23,6 +23,7 @@ checksum=b9d05854493d245a7a7e75f77fc654508f720aab5e5e8a3a932bd8eb54e49bda
 disable_parallel_build=yes
 dkms_modules="sysdig ${version}"
 nocross=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args+=" -DMUSL_OPTIMIZED_BUILD=On"
diff --git a/srcpkgs/sysexxer-ng/template b/srcpkgs/sysexxer-ng/template
index 18b2a6e776a6..e09476331dfc 100644
--- a/srcpkgs/sysexxer-ng/template
+++ b/srcpkgs/sysexxer-ng/template
@@ -11,6 +11,7 @@ license="BSL-1.0"
 homepage="https://github.com/linuxmao-org/sysexxer-ng"
 distfiles="${homepage}/releases/download/v${version}/sysexxer-ng-${version}.tar.gz"
 checksum=66e2eb66b7ab34b8287bba3230009a311b7db1870c47911049666c523fced5a9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/sysprof/template b/srcpkgs/sysprof/template
index eae51ea7356b..39ea0ae1b9c4 100644
--- a/srcpkgs/sysprof/template
+++ b/srcpkgs/sysprof/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="http://sysprof.com/"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=8bcd728dc2f74e6f589410370dfb1b8801468bb3cc1803aa240735a7cff241ce
+patch_args=-Np0
 
 # for ITS rules
 if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/taskd/template b/srcpkgs/taskd/template
index 414501166719..8ab72bc17ef5 100644
--- a/srcpkgs/taskd/template
+++ b/srcpkgs/taskd/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://taskwarrior.org"
 distfiles="http://taskwarrior.org/download/${pkgname}-${version}.tar.gz"
 checksum=7b8488e687971ae56729ff4e2e5209ff8806cf8cd57718bfd7e521be130621b4
+patch_args=-Np0
 
 system_accounts="taskd"
 taskd_homedir="/var/lib/taskd"
diff --git a/srcpkgs/tbb/template b/srcpkgs/tbb/template
index aeef6ebdd061..17fad3bc5e3a 100644
--- a/srcpkgs/tbb/template
+++ b/srcpkgs/tbb/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://www.threadingbuildingblocks.org"
 distfiles="https://github.com/oneapi-src/oneTBB/archive/${_ver}.tar.gz"
 checksum=2103cc6238c935664f87680618f6684d57501d4a2fa8ea8f6c97ad6ff7dc722a
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*)
diff --git a/srcpkgs/tc-play/template b/srcpkgs/tc-play/template
index 0f49755ebaf9..85cd91f5d7d5 100644
--- a/srcpkgs/tc-play/template
+++ b/srcpkgs/tc-play/template
@@ -14,6 +14,7 @@ license="BSD-2-clause"
 homepage="https://github.com/bwalex/tc-play"
 distfiles="https://github.com/bwalex/${pkgname}/archive/v${version}.tar.gz"
 checksum=ad53cd814a23b4f61a1b2b6dc2539624ffb550504c400c45cbd8cd1da4c7d90a
+patch_args=-Np0
 
 pre_build() {
 	sed -i Makefile.classic -e"s; -o tcplay; ${LDFLAGS}&;"
diff --git a/srcpkgs/tcl/template b/srcpkgs/tcl/template
index d36663d8b1fa..e20273428365 100644
--- a/srcpkgs/tcl/template
+++ b/srcpkgs/tcl/template
@@ -16,6 +16,7 @@ license="TCL"
 homepage="http://www.tcl.tk"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}${version}-src.tar.gz"
 checksum=8c0486668586672c5693d7d95817cb05a18c5ecca2f40e2836b9578064088258
+patch_args=-Np0
 
 shlib_provides="libtcl${version%.*}.so"
 
diff --git a/srcpkgs/tcpdump/template b/srcpkgs/tcpdump/template
index 1956a1ce16b3..724a066b8a22 100644
--- a/srcpkgs/tcpdump/template
+++ b/srcpkgs/tcpdump/template
@@ -12,6 +12,7 @@ homepage="https://www.tcpdump.org"
 changelog="https://www.tcpdump.org/tcpdump-changes.txt"
 distfiles="https://www.tcpdump.org/release/${pkgname}-${version}.tar.gz"
 checksum=79b36985fb2703146618d87c4acde3e068b91c553fb93f021a337f175fd10ebe
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/teensy_loader_cli/template b/srcpkgs/teensy_loader_cli/template
index 267415fa1561..a02e5ea78fed 100644
--- a/srcpkgs/teensy_loader_cli/template
+++ b/srcpkgs/teensy_loader_cli/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://www.pjrc.com/teensy/loader_cli.html"
 distfiles="https://github.com/PaulStoffregen/teensy_loader_cli/archive/${version}.tar.gz"
 checksum=5c36fe45b9a3a71ac38848b076cd692bf7ca8826a69941c249daac3a1d95e388
+patch_args=-Np0
 
 do_install() {
 	vbin teensy_loader_cli
diff --git a/srcpkgs/teeworlds/template b/srcpkgs/teeworlds/template
index 268c85e43ac8..69c907e600c3 100644
--- a/srcpkgs/teeworlds/template
+++ b/srcpkgs/teeworlds/template
@@ -10,6 +10,7 @@ license="custom"
 homepage="https://www.teeworlds.com"
 distfiles="https://github.com/teeworlds/teeworlds/archive/${version}.tar.gz"
 checksum=6e67846b38750d2a372d7835fa3775db016458a20a85aa52f1c758102ddd4abe
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686) _ARCH=x86;;
diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template
index 30a1d2ec6eec..f0026056b7dd 100644
--- a/srcpkgs/telegram-desktop/template
+++ b/srcpkgs/telegram-desktop/template
@@ -26,6 +26,7 @@ homepage="https://desktop.telegram.org/"
 changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
 distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
 checksum=97526f0b4adf04cf86b605ae84f3efaacf58eb8f828bab8f4fe752a4fac62fb2
+patch_args=-Np0
 
 build_options="spellcheck"
 build_options_default="spellcheck"
diff --git a/srcpkgs/telepathy-mission-control/template b/srcpkgs/telepathy-mission-control/template
index f539aa07f1c8..a2c3275fcf6b 100644
--- a/srcpkgs/telepathy-mission-control/template
+++ b/srcpkgs/telepathy-mission-control/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="http://telepathy.freedesktop.org"
 distfiles="${homepage}/releases/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=4c6b433b8b9079fd7df3e29aefcad6755a2081a9a634ffb6b33936c7d0d8bd03
+patch_args=-Np0
 
 telepathy-mission-control-devel_package() {
 	depends="telepathy-glib-devel>=0.22 ${sourcepkg}>=${version}"
diff --git a/srcpkgs/tepl/template b/srcpkgs/tepl/template
index 2213a79cc0f1..ec5879500caf 100644
--- a/srcpkgs/tepl/template
+++ b/srcpkgs/tepl/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Projects/Tepl"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=a86397a895dca9c0de7a5ccb063bda8f7ef691cccb950ce2cfdee367903e7a63
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/terminal_markdown_viewer/template b/srcpkgs/terminal_markdown_viewer/template
index b13f8ac93fbf..0093b049b9ab 100644
--- a/srcpkgs/terminal_markdown_viewer/template
+++ b/srcpkgs/terminal_markdown_viewer/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/axiros/terminal_markdown_viewer"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=58dbdf8c051a2d7f8c00e4dc13c655c335cbc2bc96851dd0388d73a21c4507b6
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/tesseract-ocr/template b/srcpkgs/tesseract-ocr/template
index 7ed37c53c848..c6c574f4c483 100644
--- a/srcpkgs/tesseract-ocr/template
+++ b/srcpkgs/tesseract-ocr/template
@@ -18,6 +18,7 @@ distfiles="
  https://github.com/tesseract-ocr/tessdata/archive/${_tessdataver}.tar.gz>tessdata-${_tessdataver}.tar.gz"
 checksum="2a66ff0d8595bff8f04032165e6c936389b1e5727c3ce5a27b3e059d218db1cb
  38c637d3a1763f6c3d32e8f1d979f045668676ec5feb8ee1869ee77cedd31b08"
+patch_args=-Np0
 
 build_options="openmp"
 build_options_default="openmp"
diff --git a/srcpkgs/tesseract/template b/srcpkgs/tesseract/template
index 5eca40635fd4..e073eee88791 100644
--- a/srcpkgs/tesseract/template
+++ b/srcpkgs/tesseract/template
@@ -12,6 +12,7 @@ license="zlib"
 homepage="http://tesseract.gg/"
 distfiles="http://download.tuxfamily.org/tesseract/tesseract_2014_05_12_first_edition_linux.tar.xz"
 checksum=8d6e07dd154a40a3f593e52289335c036f06cf90a0ebc400c4650adb3395a0f4
+patch_args=-Np0
 
 pre_build() {
 	for dim in 16 32 48 64 128 256 512; do
diff --git a/srcpkgs/tevent/template b/srcpkgs/tevent/template
index 731d707efaaa..86bbe45ef744 100644
--- a/srcpkgs/tevent/template
+++ b/srcpkgs/tevent/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://tevent.samba.org"
 distfiles="https://ftp.samba.org/pub/tevent/tevent-${version}.tar.gz"
 checksum=f8427822e5b2878fb8b28d6f50d96848734f3f3130612fb574fdd2d2148a6696
+patch_args=-Np0
 
 export PYTHON_CONFIG="${XBPS_CROSS_BASE}/usr/bin/python3-config"
 
diff --git a/srcpkgs/texi2mdoc/template b/srcpkgs/texi2mdoc/template
index 1d3eceaee503..d6b6bd659a8d 100644
--- a/srcpkgs/texi2mdoc/template
+++ b/srcpkgs/texi2mdoc/template
@@ -9,6 +9,7 @@ license="ISC"
 homepage="http://mdocml.bsd.lv/texi2mdoc"
 distfiles="http://mdocml.bsd.lv/texi2mdoc/snapshots/${pkgname}-${version}.tgz"
 checksum=7a45fd87c27cc8970a18db9ddddb2f09f18b8dd5152bf0ca377c3a5e7d304bfe
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/texlab/template b/srcpkgs/texlab/template
index c61ac718f0ac..33cffac2c276 100644
--- a/srcpkgs/texlab/template
+++ b/srcpkgs/texlab/template
@@ -11,6 +11,7 @@ distfiles="https://github.com/latex-lsp/${pkgname}/archive/v${version}.tar.gz
  https://github.com/salsa-rs/salsa/archive/v0.13.2.tar.gz"
 checksum="04978b118b455607b5debd0a886f0728ca6c498289d2a0c60d8f83b316dc5ebc
  2e33e20d22692f6bcd4d638392b9c2cfb716bcd28998e809db0dd88be4f70a31"
+patch_args=-Np0
 
 post_extract() {
 	mv ../salsa-* salsa
diff --git a/srcpkgs/texlive/template b/srcpkgs/texlive/template
index b9a19c12a347..bbbf04254bf3 100644
--- a/srcpkgs/texlive/template
+++ b/srcpkgs/texlive/template
@@ -81,6 +81,7 @@ checksum=e32f3d08cbbbcf21d8d3f96f2143b64a1f5e4cb01b06b761d6249c8785249078
 python_version=3
 # Virtual package cares only about year part of version
 provides="tex-${version%${version#????}}_1"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ] ; then
 	# Tangle is required for cross compile
diff --git a/srcpkgs/texstudio/template b/srcpkgs/texstudio/template
index 9ae4a1805c9a..b6462e019170 100644
--- a/srcpkgs/texstudio/template
+++ b/srcpkgs/texstudio/template
@@ -18,6 +18,7 @@ homepage="https://texstudio.org/"
 changelog="https://raw.githubusercontent.com/texstudio-org/texstudio/master/utilities/manual/CHANGELOG.txt"
 distfiles="https://github.com/texstudio-org/texstudio/archive/${version}.tar.gz"
 checksum=7251f8e6f2b17395c428e9ff13bfc2c58e5f07ec09aae1036ab912dcf89f6fad
+patch_args=-Np0
 
 build_options="phonon poppler"
 desc_option_phonon="build with phonon (=media support for pdf preview)"
diff --git a/srcpkgs/textosaurus/template b/srcpkgs/textosaurus/template
index 5223d1f5566d..bc317d479553 100644
--- a/srcpkgs/textosaurus/template
+++ b/srcpkgs/textosaurus/template
@@ -16,6 +16,7 @@ distfiles="${homepage}/archive/${version}.tar.gz
  https://github.com/martinrotter/scintilla/archive/${_scommit}.tar.gz"
 checksum="82093b6c8725d104498ce4a66e4cf5a3aa1f057b34600bd5d67413dce9bff2cf
  fad739e3493dea0f7435114ac936dc255d3b1471bd61c7e7349845ab626b95d9"
+patch_args=-Np0
 
 post_extract() {
 	cp -Trp ${XBPS_BUILDDIR}/scintilla-${_scommit} ${wrksrc}/src/libtextosaurus/3rd-party/scintilla
diff --git a/srcpkgs/texworks/template b/srcpkgs/texworks/template
index 87ca84049343..92402d6d98ee 100644
--- a/srcpkgs/texworks/template
+++ b/srcpkgs/texworks/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.tug.org/texworks"
 distfiles="https://github.com/texworks/texworks/archive/release-${version}.tar.gz"
 checksum=b4695539b9666935d2c467cc618c7d79c174e2ec728e31f72df8534862a5c290
+patch_args=-Np0
 
 do_check() {
 	: # requires xserver
diff --git a/srcpkgs/tgt/template b/srcpkgs/tgt/template
index c5a638e6e3a5..90a37ec9d1ae 100644
--- a/srcpkgs/tgt/template
+++ b/srcpkgs/tgt/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="http://stgt.sourceforge.net/"
 distfiles="https://github.com/fujita/tgt/archive/v${version}.tar.gz"
 checksum=e2255482f1a2797c115a6d545c37428b10a4ba6276a2af787da5378fa4e34e75
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/CFLAGS/MYCFLAGS/; s/\$(MYCFLAGS)/& $(CFLAGS) -Wno-error=stringop-truncation/g' usr/Makefile
diff --git a/srcpkgs/thingylaunch/template b/srcpkgs/thingylaunch/template
index 5e862376125b..6db8f5ef127a 100644
--- a/srcpkgs/thingylaunch/template
+++ b/srcpkgs/thingylaunch/template
@@ -12,6 +12,7 @@ license="BSD"
 homepage="https://gahr.ch/thingylaunch/"
 distfiles="https://github.com/gahr/${pkgname}/archive/${version}.tar.gz"
 checksum=4d9cc6b826bddb3d02836f721316bfc24c2b31f75c9c2d5077ae162eb3d60b60
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYRIGHT
diff --git a/srcpkgs/thunderbird/template b/srcpkgs/thunderbird/template
index 72155ef786e4..4d152829f945 100644
--- a/srcpkgs/thunderbird/template
+++ b/srcpkgs/thunderbird/template
@@ -12,6 +12,7 @@ license="MPL-2.0, GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.thunderbird.net/"
 distfiles="${MOZILLA_SITE}/${pkgname}/releases/${version}/source/${pkgname}-${version}.source.tar.xz"
 checksum=ad070eb27ed5087819b62495e8f96ec0c8d8827598c415648c69ef989c634676
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/tickr/template b/srcpkgs/tickr/template
index 285e2419fccf..5bd58b02022f 100644
--- a/srcpkgs/tickr/template
+++ b/srcpkgs/tickr/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.open-tickr.net/"
 distfiles="https://www.open-tickr.net/src/${pkgname}-${version}.tar.gz"
 checksum=37dd2d970cd9bf9b0ebc5e6cbf6605ea460008f577a43a7500e506e9dffcd802
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	arm*|ppc64|ppc) configure_args+=" LIBS=-lm" ;;
diff --git a/srcpkgs/tidy5/template b/srcpkgs/tidy5/template
index 616b746d8cd1..eecaf052f7d3 100644
--- a/srcpkgs/tidy5/template
+++ b/srcpkgs/tidy5/template
@@ -14,6 +14,7 @@ license="W3C"
 homepage="http://www.htacg.org/${_reponame}/"
 distfiles="https://github.com/htacg/${_reponame}/archive/${version}.tar.gz"
 checksum=5caa2c769204f506e24ea4986a45abe23f71d14f0fe968314f20065f342ffdba
+patch_args=-Np0
 
 provides="tidy-${version}_${revision}"
 replaces="tidy>0"
diff --git a/srcpkgs/tilp2/template b/srcpkgs/tilp2/template
index 276c85e6e74b..a8c9e0851d4b 100644
--- a/srcpkgs/tilp2/template
+++ b/srcpkgs/tilp2/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.ticalc.org"
 distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${version}/${pkgname}-${version}.tar.bz2"
 checksum=7b3ab363eeb52504d6ef5811c5d264f8016060bb7bd427be5a064c2ed7384e47
+patch_args=-Np0
 
 pre_configure() {
 	mkdir -p m4
diff --git a/srcpkgs/tinyxml/template b/srcpkgs/tinyxml/template
index 29c19bb162d8..291c14f84dd5 100644
--- a/srcpkgs/tinyxml/template
+++ b/srcpkgs/tinyxml/template
@@ -9,6 +9,7 @@ homepage="http://www.grinninglizard.com/tinyxml/"
 license="zlib"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_2_6_2.tar.gz"
 checksum=15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593
+patch_args=-Np0
 
 do_build() {
 	# Fix Makefile
diff --git a/srcpkgs/tlsh/template b/srcpkgs/tlsh/template
index 4ee1ccdc728a..a173f36f8225 100644
--- a/srcpkgs/tlsh/template
+++ b/srcpkgs/tlsh/template
@@ -11,6 +11,7 @@ license="Apache-2.0, BSD-3-Clause"
 homepage="https://github.com/trendmicro/tlsh"
 distfiles="https://github.com/trendmicro/tlsh/archive/${version}.tar.gz"
 checksum=a8a7972d8bafb5fd66bd597b72037356dd9882e71a7e9b5f37281751a99ce686
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i src/CMakeLists.txt -e 's/set(TLSH_SHARED_LIBRARY 0)/set(TLSH_SHARED_LIBRARY 1)/'
diff --git a/srcpkgs/tmines/template b/srcpkgs/tmines/template
index 7669477aea95..8a8a4f4a12af 100644
--- a/srcpkgs/tmines/template
+++ b/srcpkgs/tmines/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://github.com/tropf/tmines"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=7b5037c7cedd6c744ec63d10fa59b415e5e3654e52b0cfda561ac545af8576cf
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone";;
diff --git a/srcpkgs/tnftp/template b/srcpkgs/tnftp/template
index c0b75c164f25..362abdd4718c 100644
--- a/srcpkgs/tnftp/template
+++ b/srcpkgs/tnftp/template
@@ -11,6 +11,7 @@ license="BSD"
 homepage="http://netbsd.gw.com/cgi-bin/man-cgi?ftp"
 distfiles="ftp://ftp.netbsd.org/pub/NetBSD/misc/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=ba4a92b693d04179664524eef0801c8eed4447941c9855f377f98f119f221c03
+patch_args=-Np0
 
 alternatives="
  ftp:ftp:/usr/bin/${pkgname}
diff --git a/srcpkgs/tomahawk/template b/srcpkgs/tomahawk/template
index 0edbacc5f8ad..23cdba671dd8 100644
--- a/srcpkgs/tomahawk/template
+++ b/srcpkgs/tomahawk/template
@@ -31,6 +31,7 @@ desc_option_hatchet="Enable support for http://hatchet.is"
 desc_option_kde="Enable support for KDE"
 desc_option_xmpp="Enable support for XMPP"
 build_options_default="xmpp upower"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake"
diff --git a/srcpkgs/tor/template b/srcpkgs/tor/template
index 42370ea8ba21..eb10de66fa9f 100644
--- a/srcpkgs/tor/template
+++ b/srcpkgs/tor/template
@@ -15,6 +15,7 @@ homepage="https://www.torproject.org/"
 changelog="https://gitweb.torproject.org/tor.git/plain/ReleaseNotes"
 distfiles="https://dist.torproject.org/tor-${version}.tar.gz"
 checksum=57ded091e8bcdcebb0013fe7ef4a4439827cb169358c7874fd05fa00d813e227
+patch_args=-Np0
 
 conf_files="/etc/tor/torrc"
 system_accounts="tor"
diff --git a/srcpkgs/torbrowser-launcher/template b/srcpkgs/torbrowser-launcher/template
index 2d8ce5bf282e..9634f108bb05 100644
--- a/srcpkgs/torbrowser-launcher/template
+++ b/srcpkgs/torbrowser-launcher/template
@@ -14,6 +14,7 @@ homepage="https://github.com/micahflee/torbrowser-launcher"
 changelog="https://raw.githubusercontent.com/micahflee/torbrowser-launcher/master/CHANGELOG.md"
 distfiles="https://github.com/micahflee/torbrowser-launcher/archive/v${version}.tar.gz"
 checksum=58b17bd5a9a6f35fe78d83e69fdf77919ffa8c2492b1add1d47aed6237794f93
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/touchegg/template b/srcpkgs/touchegg/template
index 538277a2c683..a09ec9637486 100644
--- a/srcpkgs/touchegg/template
+++ b/srcpkgs/touchegg/template
@@ -13,6 +13,7 @@ homepage="https://github.com/JoseExposito/touchegg"
 distfiles="https://github.com/JoseExposito/touchegg/archive/${version}.tar.gz"
 checksum=efff0f2011078cea15f2f130d1501714f8e3f82b7e883e81eccf956ac7966d0e
 system_accounts="_touchegg"
+patch_args=-Np0
 
 post_install() {
 	# we don't want the package being installed to mean it should be autostarted
diff --git a/srcpkgs/trace-cmd/template b/srcpkgs/trace-cmd/template
index 34f9bcb40d42..4410e51bca9c 100644
--- a/srcpkgs/trace-cmd/template
+++ b/srcpkgs/trace-cmd/template
@@ -16,6 +16,7 @@ homepage="http://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git/"
 distfiles="http://git.kernel.org/cgit/linux/kernel/git/rostedt/${pkgname}.git/snapshot/${pkgname}-v${version}.tar.gz"
 checksum=9404fc3cf540ea795304608068c9db6cdb38b90584c7f3c43249785913d54b38
 disable_parallel_build=yes
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/share/bash-completion/completions
diff --git a/srcpkgs/traceroute/template b/srcpkgs/traceroute/template
index f92c929c300f..4a65dc7fb2e2 100644
--- a/srcpkgs/traceroute/template
+++ b/srcpkgs/traceroute/template
@@ -8,6 +8,7 @@ license="GPL-2"
 homepage="http://traceroute.sourceforge.net"
 distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz"
 checksum=3669d22a34d3f38ed50caba18cd525ba55c5c00d5465f2d20d7472e5d81603b6
+patch_args=-Np0
 
 alternatives="
  traceroute:traceroute:/usr/bin/linux-traceroute
diff --git a/srcpkgs/tracker/template b/srcpkgs/tracker/template
index 810675677fe5..c99b997dd55f 100644
--- a/srcpkgs/tracker/template
+++ b/srcpkgs/tracker/template
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later"
 homepage="https://live.gnome.org/Tracker"
 distfiles="${GNOME_SITE}/tracker/${version%.*}/tracker-${version}.tar.xz"
 checksum=bd1eb4122135296fa7b57b1c3fa0ed602cf7d06c0b8e534d0bd17ff5f97feef2
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" dbus"
diff --git a/srcpkgs/tracker3-miners/template b/srcpkgs/tracker3-miners/template
index 6ea8e49a1a51..47a75439b428 100644
--- a/srcpkgs/tracker3-miners/template
+++ b/srcpkgs/tracker3-miners/template
@@ -27,6 +27,7 @@ license="GPL-2.0-or-later"
 homepage="https://developer.gnome.org/libtracker-miner/stable"
 distfiles="${GNOME_SITE}/tracker-miners/${version%.*}/tracker-miners-${version}.tar.xz"
 checksum=c9be14871b1398e6e656a354a8f8f59e69e93169017f2b28308ef439324fd12b
+patch_args=-Np0
 
 # relies on unsupported ops in chroot
 do_check() {
diff --git a/srcpkgs/transcode/template b/srcpkgs/transcode/template
index 775cd09fc4e3..518a9c20c1ab 100644
--- a/srcpkgs/transcode/template
+++ b/srcpkgs/transcode/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://bitbucket.org/mojaves/transcode-tcforge"
 distfiles="https://bitbucket.org/mojaves/transcode-tcforge/get/release-1_1_7.tar.bz2"
 checksum=4693e3f4226f48fb37c8ae9609601724e8a276ca09f8686ddb43f8a255d994fe
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/transmission/template b/srcpkgs/transmission/template
index 5a61a0a2bdd3..794d5c49fff4 100644
--- a/srcpkgs/transmission/template
+++ b/srcpkgs/transmission/template
@@ -14,6 +14,7 @@ license="MIT, GPL-2.0-or-later"
 homepage="https://www.transmissionbt.com"
 distfiles="https://github.com/transmission/transmission-releases/raw/master/${pkgname}-${version}.tar.xz"
 checksum=9144652fe742f7f7dd6657716e378da60b751aaeda8bef8344b3eefc4db255f2
+patch_args=-Np0
 
 # Create transmission system user/group
 system_accounts="transmission"
diff --git a/srcpkgs/treesheets/template b/srcpkgs/treesheets/template
index 4cd41afbd932..fa39eb3426d0 100644
--- a/srcpkgs/treesheets/template
+++ b/srcpkgs/treesheets/template
@@ -11,6 +11,7 @@ license="Zlib"
 homepage="http://strlen.com/treesheets/"
 distfiles="https://github.com/aardappel/treesheets/archive/v${version}.tar.gz"
 checksum=84eb82f122bc7be3ded399d2511536128911477a4a69c51b26b856de2160405f
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/lib/${pkgname}
diff --git a/srcpkgs/trinity/template b/srcpkgs/trinity/template
index a7a561e89cb8..77017a15a956 100644
--- a/srcpkgs/trinity/template
+++ b/srcpkgs/trinity/template
@@ -10,6 +10,7 @@ homepage="https://github.com/kernelslacker/trinity"
 distfiles="https://github.com/kernelslacker/trinity/archive/v${version}.tar.gz"
 checksum=9abd6cea3f6bd3b36794e038317d5ed6001dc52ad3b1cd7071f6cc7c5baecd3c
 nocross="Mis-use of memfd_create declaration"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/trojita/template b/srcpkgs/trojita/template
index 8a291182b516..e12ea1749665 100644
--- a/srcpkgs/trojita/template
+++ b/srcpkgs/trojita/template
@@ -14,6 +14,7 @@ license="GPL-2,GPL-3"
 homepage="http://trojita.flaska.net/"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=e08da881721cafa00ecd772eaef6b99fd37d068cb703eeb532de0ed1ea0136d9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/trousers/template b/srcpkgs/trousers/template
index 5d962adec91a..2f8044e52f45 100644
--- a/srcpkgs/trousers/template
+++ b/srcpkgs/trousers/template
@@ -15,6 +15,7 @@ homepage="http://trousers.sourceforge.net/"
 # distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 distfiles="https://sources.voidlinux.org/trousers-${version}/trousers-${version}.tar.gz"
 checksum=ce50713a261d14b735ec9ccd97609f0ad5ce69540af560e8c3ce9eb5f2d28f47
+patch_args=-Np0
 
 make_dirs="/var/lib/tpm 0700 tss tss"
 
diff --git a/srcpkgs/tsocks/template b/srcpkgs/tsocks/template
index e1a8ff7ff7c2..e24ac3e48325 100644
--- a/srcpkgs/tsocks/template
+++ b/srcpkgs/tsocks/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://tsocks.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/tsocks/tsocks-$version.tar.gz"
 checksum=849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b347
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ttyrec/template b/srcpkgs/ttyrec/template
index cff70746cc57..144b33595d6f 100644
--- a/srcpkgs/ttyrec/template
+++ b/srcpkgs/ttyrec/template
@@ -8,6 +8,7 @@ license="BSD-4-Clause-UC"
 homepage="http://0xcc.net/ttyrec"
 distfiles="http://0xcc.net/ttyrec/${pkgname}-${version}.tar.gz"
 checksum=ef5e9bf276b65bb831f9c2554cd8784bd5b4ee65353808f82b7e2aef851587ec
+patch_args=-Np0
 
 do_build() {
 	sed -i 's/\$(CFLAGS)/$(LDFLAGS)/' Makefile
diff --git a/srcpkgs/tup/template b/srcpkgs/tup/template
index bb07b10f5826..afd6a942f1be 100644
--- a/srcpkgs/tup/template
+++ b/srcpkgs/tup/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://gittup.org/tup/index.html"
 distfiles="https://github.com/gittup/${pkgname}/archive/v${version}.tar.gz"
 checksum=9b0951afaa749186eb55d88860405b2f6b3d88632d1b5df1ec4a0bf973d8d326
+patch_args=-Np0
 
 do_configure() {
 	sed -i "s/git describe/echo ${version}/" src/tup/link.sh
diff --git a/srcpkgs/turbovnc/template b/srcpkgs/turbovnc/template
index 8bb508ee94a2..77a81c1d8c16 100644
--- a/srcpkgs/turbovnc/template
+++ b/srcpkgs/turbovnc/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://turbovnc.org"
 distfiles="${SOURCEFORGE_SITE}/turbovnc/${pkgname}-${version}.tar.gz"
 checksum=71ff553dbad24f8339e168fe90e09bc2b13c21e453f28276d0e5c9c408bd9de2
+patch_args=-Np0
 
 conf_files="/etc/*.conf"
 archs="i686* x86_64* ppc64*"
diff --git a/srcpkgs/txr/template b/srcpkgs/txr/template
index bcbe6d85b0d7..5ebfdb697ebf 100644
--- a/srcpkgs/txr/template
+++ b/srcpkgs/txr/template
@@ -15,6 +15,7 @@ changelog="http://www.kylheku.com/cgit/txr/tree/RELNOTES"
 distfiles="http://www.kylheku.com/cgit/txr/snapshot/${pkgname}-${version}.tar.bz2"
 checksum=58e3e19bb7f3f9a440761f046fdacbc4d619b11c494a4ed9f8ad25c7a2974ddc
 nopie=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" txr"
diff --git a/srcpkgs/typespeed/template b/srcpkgs/typespeed/template
index 52d5bf5291a1..a2570048b47e 100644
--- a/srcpkgs/typespeed/template
+++ b/srcpkgs/typespeed/template
@@ -12,6 +12,7 @@ homepage="http://typespeed.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum="5c860385ceed8a60f13217cc0192c4c2b4705c3e80f9866f7d72ff306eb72961"
 mutable_files="/var/games/typespeed.score"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/u2f-hidraw-policy/template b/srcpkgs/u2f-hidraw-policy/template
index 26250c88a571..dc013c10cd8c 100644
--- a/srcpkgs/u2f-hidraw-policy/template
+++ b/srcpkgs/u2f-hidraw-policy/template
@@ -11,6 +11,7 @@ license="LGPL-2.0-or-later"
 homepage="https://github.com/amluto/u2f-hidraw-policy"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=50e327a9df3dd3db3b292af41fb119cc4c8d9bc29abddfb442e972053bf5e6d1
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr
diff --git a/srcpkgs/u9fs/template b/srcpkgs/u9fs/template
index 79decd0299d0..adeadd264e52 100644
--- a/srcpkgs/u9fs/template
+++ b/srcpkgs/u9fs/template
@@ -12,6 +12,7 @@ license="custom:MIT-like"
 homepage="https://bitbucket.org/plan9-from-bell-labs/u9fs"
 distfiles="https://bitbucket.org/plan9-from-bell-labs/u9fs/get/${_commit}.tar.gz"
 checksum=201619c1c29bad1c9ed1bc886afe7b4965cfd0781b2296c9de87db10ba71615d
+patch_args=-Np0
 
 do_install() {
 	vbin u9fs
diff --git a/srcpkgs/ucspi-ssl/template b/srcpkgs/ucspi-ssl/template
index 1f2c6c36793c..c90b0c6c2378 100644
--- a/srcpkgs/ucspi-ssl/template
+++ b/srcpkgs/ucspi-ssl/template
@@ -17,6 +17,7 @@ distfiles="http://www.fehcom.de/ipnet/ucspi-ssl/ucspi-ssl-${version}.tgz"
 checksum=e7fcd4ceec351a0f36b7d27188758709a6c095460ed4dce434e0c5d463c4c4ea
 # ad hoc build system breaks parallel build and cross-compilation
 disable_parallel_build="ad hoc build system breaks parallel build"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/udptunnel/template b/srcpkgs/udptunnel/template
index dfc7ee1fe5ed..79c54ae0ad68 100644
--- a/srcpkgs/udptunnel/template
+++ b/srcpkgs/udptunnel/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="http://www.cs.columbia.edu/~lennox/udptunnel/"
 distfiles="http://www.cs.columbia.edu/~lennox/udptunnel/udptunnel-${version}.tar.gz"
 checksum=45c0e12045735bc55734076ebbdc7622c746d1fe4e6f7267fa122e2421754670
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -vfi
diff --git a/srcpkgs/ufoai/template b/srcpkgs/ufoai/template
index 3b36cf0d6db1..41c4c4998898 100644
--- a/srcpkgs/ufoai/template
+++ b/srcpkgs/ufoai/template
@@ -22,6 +22,7 @@ checksum="0c7cc3bc9efeb276f71cbe6ee8ff7c76f98d183de79f1a069fa63059cf182a8f
 replaces="ufoai-data>=0"
 ignore_elf_dirs="/usr/share/ufoai"
 broken="game doesn't work"
+patch_args=-Np0
 
 # suppress a lot of warnings
 CXXFLAGS="-Wno-cast-align -Wno-cast-qual -Wno-inline"
diff --git a/srcpkgs/ufraw/template b/srcpkgs/ufraw/template
index 476435c6abab..8cec750cdaa4 100644
--- a/srcpkgs/ufraw/template
+++ b/srcpkgs/ufraw/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://ufraw.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/ufraw/ufraw/ufraw-${version}/ufraw-${version}.tar.gz"
 checksum=f7abd28ce587db2a74b4c54149bd8a2523a7ddc09bedf4f923246ff0ae09a25e
+patch_args=-Np0
 
 build_options="extras"
 
diff --git a/srcpkgs/uftrace/template b/srcpkgs/uftrace/template
index 9f4f44d47652..ed711e2f1c06 100644
--- a/srcpkgs/uftrace/template
+++ b/srcpkgs/uftrace/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/namhyung/uftrace"
 distfiles="https://github.com/namhyung/uftrace/archive/v${version}.tar.gz"
 checksum=b8b56d540ea95c3eafe56440d6a998e0a140d53ca2584916b6ca82702795bbd9
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone"; export LDFLAGS=-largp;;
diff --git a/srcpkgs/uim/template b/srcpkgs/uim/template
index 1a782b680f78..6ea0e07ba05f 100644
--- a/srcpkgs/uim/template
+++ b/srcpkgs/uim/template
@@ -17,6 +17,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/uim/uim/wiki"
 distfiles="https://github.com/uim/uim/releases/download/${version}/uim-${version}.tar.bz2"
 checksum=34599bbcc4e5ab87832370763e38be5100984a64237555e9234a1ea225a0fadc
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/ulauncher/template b/srcpkgs/ulauncher/template
index 78888538e064..be7bdd1bdfc0 100644
--- a/srcpkgs/ulauncher/template
+++ b/srcpkgs/ulauncher/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://ulauncher.io/"
 distfiles="https://github.com/Ulauncher/Ulauncher/releases/download/${version}/${pkgname}_${version}.tar.gz"
 checksum=c4433bb06d0d456a2e0eee8dc4d03de164f273290484f2380728c3936ca31e3a
+patch_args=-Np0
 
 pre_build() {
 	export DISPLAY=
diff --git a/srcpkgs/ulogd/template b/srcpkgs/ulogd/template
index 55e9ae34a0e1..98a990f5af42 100644
--- a/srcpkgs/ulogd/template
+++ b/srcpkgs/ulogd/template
@@ -15,6 +15,7 @@ distfiles="${homepage}/files/${pkgname}-${version}.tar.bz2"
 checksum=990a05494d9c16029ba0a83f3b7294fc05c756546b8d60d1c1572dc25249a92b
 CFLAGS="-D_GNU_SOURCE"
 system_accounts="_ulogd"
+patch_args=-Np0
 
 post_install() {
 	vinstall ulogd.conf 644 etc
diff --git a/srcpkgs/unison/template b/srcpkgs/unison/template
index c3cb8e454c85..a9f349f00f76 100644
--- a/srcpkgs/unison/template
+++ b/srcpkgs/unison/template
@@ -10,6 +10,7 @@ homepage="http://www.cis.upenn.edu/~bcpierce/unison/"
 distfiles="https://github.com/bcpierce00/unison/archive/v${version}.tar.gz"
 checksum=0c287d17f52729440b2bdc28edf4d19b2d5ea5869983d78e780d501c5866914b
 nocross="OCaml does not cross compile"
+patch_args=-Np0
 
 do_build() {
 	CFLAGS= make ${makejobs} UISTYLE=text DEBUGGING=false THREADS=true
diff --git a/srcpkgs/unknown-horizons/template b/srcpkgs/unknown-horizons/template
index 56404addb864..fa7dc8ad7edc 100644
--- a/srcpkgs/unknown-horizons/template
+++ b/srcpkgs/unknown-horizons/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later, MIT, BSD-3-Clause, CC-BY-SY-3.0"
 homepage="http://unknown-horizons.org"
 distfiles="https://github.com/unknown-horizons/unknown-horizons/archive/${version}.tar.gz"
 checksum=a417fd3d342212fd190e4f21be82ef13c10e1ed7c288fbbe46e46200cf3de4d8
+patch_args=-Np0
 
 pre_install() {
 	python3 horizons/engine/generate_atlases.py 2048
diff --git a/srcpkgs/urbanterror/template b/srcpkgs/urbanterror/template
index 947a12cf2d8f..27453d5f8e57 100644
--- a/srcpkgs/urbanterror/template
+++ b/srcpkgs/urbanterror/template
@@ -12,6 +12,7 @@ homepage="https://github.com/Barbatos/ioq3-for-UrbanTerror-4"
 distfiles="https://github.com/Barbatos/ioq3-for-UrbanTerror-4/archive/release-${version}.tar.gz"
 checksum=ce9d09a8ad149f8a1d36a85a586e1dd8ec9b8dcb3e5e9e82ec2a33017655bf43
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/urlview/template b/srcpkgs/urlview/template
index 7fdbb3119577..5144c2ea8b4d 100644
--- a/srcpkgs/urlview/template
+++ b/srcpkgs/urlview/template
@@ -12,6 +12,7 @@ license="GPL-2.0"
 homepage="https://github.com/sigpipe/urlview"
 distfiles="https://gnupg.org/ftp/mutt/contrib/$pkgname-$version.tar.gz"
 checksum=74d18026e84e3cd70a3fdd1a7247a68031b0c1c1c6d761d64b7063ff71091cc3
+patch_args=-Np0
 
 pre_configure() {
 	sed -i '/install-data-local/,/^$/d' Makefile.am
diff --git a/srcpkgs/usbguard/template b/srcpkgs/usbguard/template
index c2c6829a13ad..54ad0e6e9df9 100644
--- a/srcpkgs/usbguard/template
+++ b/srcpkgs/usbguard/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://usbguard.github.io"
 distfiles="https://github.com/USBGuard/usbguard/releases/download/usbguard-$version/usbguard-$version.tar.gz"
 checksum=5617986cd5dd1a2d311041648a1977d836cf4e33a4121d7f82599f21496abc42
+patch_args=-Np0
 
 post_install() {
 	vsv usbguard
diff --git a/srcpkgs/uwm/template b/srcpkgs/uwm/template
index 071a909fa447..f7fc99bf8be3 100644
--- a/srcpkgs/uwm/template
+++ b/srcpkgs/uwm/template
@@ -10,5 +10,6 @@ license="GPL-2.0-only"
 homepage="http://udeproject.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/project/udeproject/UWM/uwm-${version}%20stable/uwm-${version}.tar.gz"
 checksum=dd056857c98b75c9203861917db33bcaf87ba074bdd204cf732ce4cb777cb408
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/uwsgi/template b/srcpkgs/uwsgi/template
index 507987723d7b..30dc164b3334 100644
--- a/srcpkgs/uwsgi/template
+++ b/srcpkgs/uwsgi/template
@@ -10,6 +10,7 @@ license="GPL-2.0-linking-exception"
 homepage="http://projects.unbit.it/uwsgi"
 distfiles="https://github.com/unbit/uwsgi/archive/${version}.tar.gz"
 checksum=bf17cdbb9bd8bcb7c1633e34d9d7308cb4cc19eb0ff2d61057f840c1ba1fc41b
+patch_args=-Np0
 
 _libdir=usr/lib/uwsgi
 
diff --git a/srcpkgs/v4l-utils/template b/srcpkgs/v4l-utils/template
index 6ef76bb1e90d..590f2509212c 100644
--- a/srcpkgs/v4l-utils/template
+++ b/srcpkgs/v4l-utils/template
@@ -14,6 +14,7 @@ homepage="http://freshmeat.net/projects/libv4l"
 distfiles="http://linuxtv.org/downloads/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=956118713f7ccb405c55c7088a6a2490c32d54300dd9a30d8d5008c28d3726f7
 conf_files="/etc/rc_maps.cfg"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone"
diff --git a/srcpkgs/vala-panel/template b/srcpkgs/vala-panel/template
index 81ab10b9d2f0..de9a03c14052 100644
--- a/srcpkgs/vala-panel/template
+++ b/srcpkgs/vala-panel/template
@@ -13,6 +13,7 @@ license="LGPL-3.0-or-later"
 homepage="https://gitlab.com/vala-panel-project/vala-panel"
 distfiles="https://gitlab.com/vala-panel-project/vala-panel/uploads/$_glhash/vala-panel-${version}.tar.xz"
 checksum=ee3a9e000133da43b218ecd1738463c2de3f45783a5a09a11b9c263df4e233d1
+patch_args=-Np0
 
 # Package build options
 build_options="wayland"
diff --git a/srcpkgs/vanitygen/template b/srcpkgs/vanitygen/template
index 8fb4fa5ca443..e9baabe67a3e 100644
--- a/srcpkgs/vanitygen/template
+++ b/srcpkgs/vanitygen/template
@@ -11,6 +11,7 @@ homepage="https://github.com/exploitagency/vanitygen-plus"
 changelog="https://raw.githubusercontent.com/exploitagency/vanitygen-plus/master/CHANGELOG"
 distfiles="https://github.com/exploitagency/vanitygen-plus/archive/PLUS${version}.tar.gz"
 checksum=976a9afe2a4470551a8b6b0da97101a3a2e6c54c5a26dc870ae755bb2d8c7041
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC CFLAGS="$CFLAGS $LDFLAGS" ${makejobs}
diff --git a/srcpkgs/vapoursynth-editor/template b/srcpkgs/vapoursynth-editor/template
index 19903b77a6e3..0dc9f4bf80b5 100644
--- a/srcpkgs/vapoursynth-editor/template
+++ b/srcpkgs/vapoursynth-editor/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://bitbucket.org/mystery_keeper/vapoursynth-editor"
 distfiles="${homepage}/get/r${version}.tar.gz"
 checksum=41e09a6c1411536f7a223a16263145b31de4715189cfe2ebe62b4ad69d6ec342
+patch_args=-Np0
 
 pre_configure() {
 	mv pro/pro.pro .
diff --git a/srcpkgs/varnish/template b/srcpkgs/varnish/template
index fff05f21f786..8181268d7077 100644
--- a/srcpkgs/varnish/template
+++ b/srcpkgs/varnish/template
@@ -13,6 +13,7 @@ homepage="https://varnish-cache.org/"
 distfiles="https://varnish-cache.org/_downloads/${pkgname}-${version}.tgz"
 checksum=d5ff82f2041276dfaeb9a652a88b6d7287cfcf7ca345bb02c438fb65d2bca2e5
 lib32disabled=yes
+patch_args=-Np0
 
 build_options="pcrejit"
 
diff --git a/srcpkgs/vboot-utils/template b/srcpkgs/vboot-utils/template
index 591697d20cf4..14117b36c4f3 100644
--- a/srcpkgs/vboot-utils/template
+++ b/srcpkgs/vboot-utils/template
@@ -18,6 +18,7 @@ checksum=@3d8edd7e3a1672b29f02d93c4cf89f19ad7477694968b0653aa968783c8ba3e6
 # 2crypto specifies a section for some variables, which lead to text relocations in the binary
 # let's play it safe and disable PIE
 nopie=yes
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	x86_64*) _arch=x86_64 ;;
diff --git a/srcpkgs/vde2/template b/srcpkgs/vde2/template
index 5d0efce366ab..e502920a93d9 100644
--- a/srcpkgs/vde2/template
+++ b/srcpkgs/vde2/template
@@ -19,6 +19,7 @@ license="GPL-2, LGPL-2.1, BSD"
 homepage="http://sourceforge.net/projects/vde/"
 distfiles="${SOURCEFORGE_SITE}/vde/vde2-$version.tar.bz2"
 checksum=cbea9b7e03097f87a6b5e98b07890d2275848f1fe4b9fcda77b8994148bc9542
+patch_args=-Np0
 
 lib32disabled=yes
 disable_parallel_build=yes
diff --git a/srcpkgs/vdirsyncer/template b/srcpkgs/vdirsyncer/template
index 906b77950d36..f1e783316597 100644
--- a/srcpkgs/vdirsyncer/template
+++ b/srcpkgs/vdirsyncer/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://vdirsyncer.pimutils.org/"
 distfiles="${PYPI_SITE}/v/vdirsyncer/vdirsyncer-${version}.tar.gz"
 checksum=bfdb422f52e1d4d60bd0635d203fb59fa7f613397d079661eb48e79464ba13c5
+patch_args=-Np0
 
 pre_build() {
 	sed -i setup.py \
diff --git a/srcpkgs/vdrift/template b/srcpkgs/vdrift/template
index cc586376b4e6..c1c1989627eb 100644
--- a/srcpkgs/vdrift/template
+++ b/srcpkgs/vdrift/template
@@ -17,6 +17,7 @@ homepage="http://vdrift.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version//./-}.tar.bz2"
 checksum=458d45d59075c2ce943ec6bc271a5bd0eb6bc6ed123670b65038703345020be3
 python_version=2
+patch_args=-Np0
 
 post_install() {
 	# install .desktop file
diff --git a/srcpkgs/virglrenderer/template b/srcpkgs/virglrenderer/template
index 00a371c32a5e..8bfba79b29a6 100644
--- a/srcpkgs/virglrenderer/template
+++ b/srcpkgs/virglrenderer/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://gitlab.freedesktop.org/virgl/virglrenderer"
 distfiles="https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/virglrenderer-${version}/virglrenderer-virglrenderer-${version}.tar.gz"
 checksum=9fa93095cd9a3e5b13c740e5e3b656a989356732bdaf3e22acb7c38a1f1f4411
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/virtualbox-ose/template b/srcpkgs/virtualbox-ose/template
index b686236e1b0e..e95fd8cfbe64 100644
--- a/srcpkgs/virtualbox-ose/template
+++ b/srcpkgs/virtualbox-ose/template
@@ -10,6 +10,7 @@ homepage="https://www.virtualbox.org"
 changelog="https://www.virtualbox.org/wiki/Changelog"
 distfiles="http://download.virtualbox.org/virtualbox/${version}/VirtualBox-${version}.tar.bz2"
 checksum=e690c91974a2e7a5aca2c0939ad514382f9a2136797a5e0b96aab778e42bc8a7
+patch_args=-Np0
 
 nopie=yes
 lib32disabled=yes
diff --git a/srcpkgs/virtuoso/template b/srcpkgs/virtuoso/template
index 01de503942c0..7a7460e35af0 100644
--- a/srcpkgs/virtuoso/template
+++ b/srcpkgs/virtuoso/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/openlink/virtuoso-opensource/archive/v${version}.t
 checksum=3e4807e94098b8265f8cf00867d1215bb1e9d0d274878e59a420742d2de471c2
 # cannot execute binary file: Exec format error
 nocross="https://build.voidlinux.org/builders/armv6l_builder/builds/29187/steps/shell_3/logs/stdio"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" libexecinfo-devel"; LDFLAGS+=" -lexecinfo";;
diff --git a/srcpkgs/visitors/template b/srcpkgs/visitors/template
index 39f09c00fd28..b35eff508246 100644
--- a/srcpkgs/visitors/template
+++ b/srcpkgs/visitors/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://www.hping.org/visitors/"
 distfiles="http://www.hping.org/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=d2149e33ffe96b1f52b0587cff65973b0bc0b24ec43cdf072a782c1bd52148ab
+patch_args=-Np0
 
 do_install() {
 	vbin visitors
diff --git a/srcpkgs/vitetris/template b/srcpkgs/vitetris/template
index 833a3cb491ee..9fd22cf800dd 100644
--- a/srcpkgs/vitetris/template
+++ b/srcpkgs/vitetris/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="http://www.victornils.net/tetris/"
 distfiles="https://github.com/vicgeralds/vitetris/archive/v${version}.tar.gz"
 checksum=699443df03c8d4bf2051838c1015da72039bbbdd0ab0eede891c59c840bdf58d
+patch_args=-Np0
 
 post_install() {
 	sed -i 's/Exec=tetris/Exec=vitetris/' $DESTDIR/usr/share/applications/vitetris.desktop
diff --git a/srcpkgs/vlc/template b/srcpkgs/vlc/template
index c2cc1a43d314..09366bf5226c 100644
--- a/srcpkgs/vlc/template
+++ b/srcpkgs/vlc/template
@@ -18,6 +18,7 @@ homepage="https://www.videolan.org/vlc/"
 changelog="https://www.videolan.org/developers/vlc-branch/NEWS"
 distfiles="https://download.videolan.org/pub/videolan/vlc/${version}/vlc-${version}.tar.xz"
 checksum=7b9635061ae14dfdf71623a7fd479b4f0d6929de75ff3c23d39b6b4b65b31b56
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/voltron/template b/srcpkgs/voltron/template
index 310e41474fb2..4e465b5bc59e 100644
--- a/srcpkgs/voltron/template
+++ b/srcpkgs/voltron/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/snare/voltron"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=2919dabe5ebc05672dcedf400754e3fbce8c3b9f8608a64cea205591f3b47f63
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/volumeicon/template b/srcpkgs/volumeicon/template
index d92993ab771b..fedb3a7ed59b 100644
--- a/srcpkgs/volumeicon/template
+++ b/srcpkgs/volumeicon/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only, ISC, MIT"
 homepage="http://softwarebakery.com/maato/volumeicon.html"
 distfiles="http://softwarebakery.com/maato/files/volumeicon/volumeicon-${version}.tar.gz"
 checksum=24b8c1d0a81d708b201ce6e67301fc175d65588d892d01859f667b8db8a05da0
+patch_args=-Np0
 
 post_patch() {
 	sed -ne '/Copyright/,/IN THE SOFTWARE/s/ [*] *//p' src/bind.c >LICENSE.MIT
diff --git a/srcpkgs/vpcs/template b/srcpkgs/vpcs/template
index 34b4c0ddd86b..22871df35850 100644
--- a/srcpkgs/vpcs/template
+++ b/srcpkgs/vpcs/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="https://sourceforge.net/projects/vpcs"
 distfiles="${SOURCEFORGE_SITE}/project/vpcs/${version}/${pkgname}-${version}-src.tbz"
 checksum=dca602d0571ba852c916632c4c0060aa9557dd744059c0f7368860cfa8b3c993
+patch_args=-Np0
 
 archs="i686* x86_64*"
 
diff --git a/srcpkgs/vpn-ws/template b/srcpkgs/vpn-ws/template
index 498ca5775a82..673af28f5f35 100644
--- a/srcpkgs/vpn-ws/template
+++ b/srcpkgs/vpn-ws/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/unbit/vpn-ws"
 distfiles="https://github.com/unbit/vpn-ws/archive/v${version}.tar.gz"
 checksum=f35d16d192ef333390ccc7d342df4392676a86502fa087f310eab9758afd565a
+patch_args=-Np0
 
 CFLAGS+=" -Wno-stringop-truncation -fcommon"
 
diff --git a/srcpkgs/vsftpd/template b/srcpkgs/vsftpd/template
index 2e177d8b8987..a6def875a1a7 100644
--- a/srcpkgs/vsftpd/template
+++ b/srcpkgs/vsftpd/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://security.appspot.com/vsftpd.html"
 distfiles="https://security.appspot.com/downloads/${pkgname}-${version}.tar.gz"
 checksum=6b9421bd27e8a6cdeed5b31154f294a20b003a11a26c09500715a0a6b1b86a26
+patch_args=-Np0
 
 system_accounts="ftp"
 ftp_pgroup=nogroup
diff --git a/srcpkgs/vte3/template b/srcpkgs/vte3/template
index 346ebf038640..e15615e6d642 100644
--- a/srcpkgs/vte3/template
+++ b/srcpkgs/vte3/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later, LGPL-2.1-or-later, LGPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Terminal/VTE"
 distfiles="${GNOME_SITE}/vte/${version%.*}/vte-${version}.tar.xz"
 checksum=12fb41a9ff8e03c5f1711b46560910a4b9b3102aec3e9e7609ceef4dfa98aa2a
+patch_args=-Np0
 
 # Suppress warnings as errors for NULL format strings (musl libc)
 CXXFLAGS="-Wno-error=format="
diff --git a/srcpkgs/w_scan/template b/srcpkgs/w_scan/template
index eae95b0654ee..b4e2774eb925 100644
--- a/srcpkgs/w_scan/template
+++ b/srcpkgs/w_scan/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://wirbel.htpc-forum.de/w_scan/index2.html"
 distfiles="http://wirbel.htpc-forum.de/w_scan/w_scan-${version}.tar.bz2"
 checksum="38e0f38a7bf06cff6d6ea01652ad4ee60da2cb0e937360468f936da785b46ffe"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/waifu2x-converter-cpp/template b/srcpkgs/waifu2x-converter-cpp/template
index 4030c6f0da06..269cdd6c82c4 100644
--- a/srcpkgs/waifu2x-converter-cpp/template
+++ b/srcpkgs/waifu2x-converter-cpp/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/DeadSix27/waifu2x-converter-cpp"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=e10bd5c64015553d1340988cf886aa51ed3cf4108f1a3ba864b3ea818426de7d
+patch_args=-Np0
 
 # silly workaround to prevent vector/bool/etc from being defined
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/webkit2gtk/template b/srcpkgs/webkit2gtk/template
index ae7e80744d0b..6eb2f5a8f471 100644
--- a/srcpkgs/webkit2gtk/template
+++ b/srcpkgs/webkit2gtk/template
@@ -38,6 +38,7 @@ homepage="https://webkitgtk.org/"
 distfiles="${homepage}/releases/webkitgtk-${version}.tar.xz"
 checksum=136117317f70f66486f71b8edf5e46f8776403c5d8a296e914b11a36ef836917
 make_check=no
+patch_args=-Np0
 
 build_options="gir wayland x11 bubblewrap jit sampling_profiler minibrowser
  clang lto"
diff --git a/srcpkgs/wicd/template b/srcpkgs/wicd/template
index d4fe01b557d5..b8ecfc8f106d 100644
--- a/srcpkgs/wicd/template
+++ b/srcpkgs/wicd/template
@@ -15,6 +15,7 @@ homepage="http://wicd.sourceforge.net"
 distfiles="http://launchpad.net/wicd/1.7/${version}/+download/wicd-${version}.tar.gz"
 checksum=67989614004773db349791c37675efb914d084bdb221356a05e4369c35e7eb62
 python_version=2
+patch_args=-Np0
 
 do_build() {
 	python2 setup.py configure --verbose --no-install-init \
diff --git a/srcpkgs/widelands/template b/srcpkgs/widelands/template
index d0402050262e..7326e3f0cf45 100644
--- a/srcpkgs/widelands/template
+++ b/srcpkgs/widelands/template
@@ -17,6 +17,7 @@ homepage="http://www.widelands.org/"
 distfiles="https://github.com/widelands/widelands/archive/build${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=601e0e4c6f91b3fb0ece2cd1b83ecfb02344a1b9194fbb70ef3f70e06994e357
 replaces="widelands-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-DU_USING_ICU_NAMESPACE=1"
 
diff --git a/srcpkgs/wildmidi/template b/srcpkgs/wildmidi/template
index 634ad5bc88a5..b12ae74cd617 100644
--- a/srcpkgs/wildmidi/template
+++ b/srcpkgs/wildmidi/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later, LGPL-3.0-only"
 homepage="https://www.mindwerks.net/projects/wildmidi"
 distfiles="https://github.com/Mindwerks/${pkgname}/archive/${pkgname}-${version}.tar.gz"
 checksum=6f267c8d331e9859906837e2c197093fddec31829d2ebf7b958cf6b7ae935430
+patch_args=-Np0
 
 post_install() {
 	vsconf ${FILESDIR}/wildmidi.cfg
diff --git a/srcpkgs/wine/template b/srcpkgs/wine/template
index 68e6045d5a2b..1d45aeb5459b 100644
--- a/srcpkgs/wine/template
+++ b/srcpkgs/wine/template
@@ -15,6 +15,7 @@ distfiles="https://dl.winehq.org/wine/source/${version%.*}.x/wine-${_pkgver}.tar
  https://github.com/wine-staging/wine-staging/archive/v${_pkgver}.tar.gz"
 checksum="58ede148482d49188262d5a2d0c9d700a74c69c51ccaa11c5adf63d3f314419f
  fe3fbea8b31eab63c5aec0418041e012dc3f7fc7951b8df97e42d542041f01df"
+patch_args=-Np0
 
 build_options="mingw staging"
 build_options_default="mingw"
diff --git a/srcpkgs/wineasio/template b/srcpkgs/wineasio/template
index bc529e72b3cc..b64054e6cc62 100644
--- a/srcpkgs/wineasio/template
+++ b/srcpkgs/wineasio/template
@@ -18,6 +18,7 @@ distfiles="${SOURCEFORGE_SITE}/wineasio/${pkgname}-${version}.tar.gz
 	https://www.steinberg.net/sdk_downloads/asiosdk2.3.zip"
 checksum="9fbc2d10a4cec307dc0558bed82b887c864424d16da40a80f1d80f907d92af0b
 	69225020e9144af568784c6076b55939a55369edaf0ffcdf4d5e5b5898f31b9b"
+patch_args=-Np0
 
 pre_configure() {
 	cp -v ../ASIOSDK2.3/common/asio.h asio.h
diff --git a/srcpkgs/winusb/template b/srcpkgs/winusb/template
index 64ec8fce12b0..5d97248df431 100644
--- a/srcpkgs/winusb/template
+++ b/srcpkgs/winusb/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="http://en.congelli.eu/prog_info_winusb.html"
 distfiles="http://ponce.cc/slackware/sources/repo/${pkgname}-${version}.tar.gz"
 checksum=7bd8d2e63651134bd4173dcf358708fb9e6de1677c088e67d45995a1d5066bc9
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	x86_64*) depends+=" grub-x86_64-efi"; makedepends+=" grub-x86_64-efi" ;;
diff --git a/srcpkgs/wireshark/template b/srcpkgs/wireshark/template
index 78a97130f689..9b54aab6a0da 100644
--- a/srcpkgs/wireshark/template
+++ b/srcpkgs/wireshark/template
@@ -19,6 +19,7 @@ homepage="https://www.wireshark.org"
 distfiles="https://www.wireshark.org/download/src/${pkgname}-${version}.tar.xz"
 checksum=de1aafd100a1e1207c850d180e97dd91ab8da0f5eb6beec545f725cdb145d333
 system_groups="wireshark"
+patch_args=-Np0
 
 CFLAGS="-DNDEBUG -I${XBPS_CROSS_BASE}/usr/include/lua5.2"
 CXXFLAGS="-DNDEBUG -I${XBPS_CROSS_BASE}/usr/include/lua5.2"
diff --git a/srcpkgs/wm2/template b/srcpkgs/wm2/template
index 5109f3154942..835883ad15a4 100644
--- a/srcpkgs/wm2/template
+++ b/srcpkgs/wm2/template
@@ -10,6 +10,7 @@ license="BSD"
 homepage="http://www.all-day-breakfast.com/wm2"
 distfiles="http://www.all-day-breakfast.com/wm2/wm2-${version}.tar.gz"
 checksum=a6c3352390f958c5033408ce73e1abd9677372a7c8c5949e39a62fda433b054d
+patch_args=-Np0
 
 do_install() {
 	vbin wm2
diff --git a/srcpkgs/woff2/template b/srcpkgs/woff2/template
index 9af0c9f84283..a7f78a7002c7 100644
--- a/srcpkgs/woff2/template
+++ b/srcpkgs/woff2/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/google/woff2"
 distfiles="https://github.com/google/woff2/archive/v${version}.tar.gz"
 checksum=add272bb09e6384a4833ffca4896350fdb16e0ca22df68c0384773c67a175594
+patch_args=-Np0
 
 libwoff2common1.0.2_package() {
 	short_desc+=" - common library"
diff --git a/srcpkgs/wordgrinder/template b/srcpkgs/wordgrinder/template
index f742e039123b..521b18d044d1 100644
--- a/srcpkgs/wordgrinder/template
+++ b/srcpkgs/wordgrinder/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://cowlark.com/wordgrinder"
 distfiles="https://github.com/davidgiven/wordgrinder/archive/${version}.tar.gz"
 checksum=856cbed2b4ccd5127f61c4997a30e642d414247970f69932f25b4b5a81b18d3f
+patch_args=-Np0
 
 do_configure() {
 	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig:${XBPS_CROSS_BASE}/usr/share/pkgconfig
diff --git a/srcpkgs/workrave/template b/srcpkgs/workrave/template
index 151ffd7e38a0..7ba6ba02ebbc 100644
--- a/srcpkgs/workrave/template
+++ b/srcpkgs/workrave/template
@@ -18,6 +18,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.workrave.org/"
 distfiles="https://github.com/rcaelers/${pkgname}/archive/v${_realversion}.tar.gz"
 checksum=b9c8d1aaae16ca55c98d361a392f879a306a4ecf6db28663a7e96d0c205dabc0
+patch_args=-Np0
 
 build_options="pulseaudio"
 
diff --git a/srcpkgs/wtype/template b/srcpkgs/wtype/template
index 962c7cf82bec..6cb9a5bf481a 100644
--- a/srcpkgs/wtype/template
+++ b/srcpkgs/wtype/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/atx/wtype"
 distfiles="https://github.com/atx/${pkgname}/archive/v${version}.tar.gz"
 checksum=35615e61e57576a240d10308f9101ceb2ec7b3554fac60119b1416b84c1694b2
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/wvstreams/template b/srcpkgs/wvstreams/template
index 068c21944270..ace63917d2bc 100644
--- a/srcpkgs/wvstreams/template
+++ b/srcpkgs/wvstreams/template
@@ -13,6 +13,7 @@ checksum=8403f5fbf83aa9ac0c6ce15d97fd85607488152aa84e007b7d0621b8ebc07633
 configure_args="--sbindir=/usr/bin --without-dbus --without-tcl --without-qt"
 conf_files="/etc/uniconf.conf"
 replaces="uniconf>=0"
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/wxPython4/template b/srcpkgs/wxPython4/template
index 1f32be9131ce..aa2e9c4db957 100644
--- a/srcpkgs/wxPython4/template
+++ b/srcpkgs/wxPython4/template
@@ -16,6 +16,7 @@ license="custom:wxWindows"
 homepage="http://www.wxpython.org/"
 distfiles="${PYPI_SITE}/w/wxPython/wxPython-${version}.tar.gz"
 checksum=3be608bfdede3063678cc703453850ab0a018b82bafd5ee057302250b18f0233
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc} -I${XBPS_CROSS_BASE}/usr/include"
diff --git a/srcpkgs/wxWidgets-gtk3/template b/srcpkgs/wxWidgets-gtk3/template
index fe6dc777392b..fab25e0be351 100644
--- a/srcpkgs/wxWidgets-gtk3/template
+++ b/srcpkgs/wxWidgets-gtk3/template
@@ -15,6 +15,7 @@ license="custom:wxWindows"
 homepage="https://www.wxwidgets.org"
 distfiles="https://github.com/wxWidgets/wxWidgets/releases/download/v${version}/wxWidgets-${version}.tar.bz2"
 checksum=440f6e73cf5afb2cbf9af10cec8da6cdd3d3998d527598a53db87099524ac807
+patch_args=-Np0
 
 post_install() {
 	local _config="gtk3-unicode-3.0"
diff --git a/srcpkgs/wxWidgets/template b/srcpkgs/wxWidgets/template
index c7e8f9f3a381..1f220c311482 100644
--- a/srcpkgs/wxWidgets/template
+++ b/srcpkgs/wxWidgets/template
@@ -16,6 +16,7 @@ license="wxWindows"
 homepage="https://www.wxwidgets.org/"
 distfiles="https://github.com/wxWidgets/wxWidgets/releases/download/v${version}/wxWidgets-${version}.tar.bz2"
 checksum=440f6e73cf5afb2cbf9af10cec8da6cdd3d3998d527598a53db87099524ac807
+patch_args=-Np0
 
 post_install() {
 	local _config="gtk2-unicode-3.0"
diff --git a/srcpkgs/x11vnc/template b/srcpkgs/x11vnc/template
index 4b8ff04a9ebe..fabffd609621 100644
--- a/srcpkgs/x11vnc/template
+++ b/srcpkgs/x11vnc/template
@@ -13,6 +13,7 @@ homepage="http://www.karlrunge.com/x11vnc/"
 changelog="https://raw.githubusercontent.com/LibVNC/x11vnc/master/NEWS"
 distfiles="https://github.com/LibVNC/${pkgname}/archive/${version}.tar.gz"
 checksum=885e5b5f5f25eec6f9e4a1e8be3d0ac71a686331ee1cfb442dba391111bd32bd
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template
index 2b858bad487f..974fad438b4c 100644
--- a/srcpkgs/x265/template
+++ b/srcpkgs/x265/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://x265.org/"
 distfiles="https://bitbucket.org/multicoreware/x265_git/get/${version}.tar.gz"
 checksum=7f2771799bea0f53b5ab47603d5bea46ea2a221e047a7ff398115e9976fd5f86
+patch_args=-Np0
 
 build_options="altivec assembly"
 
diff --git a/srcpkgs/x42-plugins/template b/srcpkgs/x42-plugins/template
index 432739cded19..e8aa6531adf5 100644
--- a/srcpkgs/x42-plugins/template
+++ b/srcpkgs/x42-plugins/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://x42-plugins.com"
 distfiles="https://gareus.org/misc/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=4423ea27ccc3f6e93a687d344a8ad5177b830d2bac25be8c36ae12ed0e3092e4
+patch_args=-Np0
 
 pre_build() {
 	export OPTIMIZATIONS="-fomit-frame-pointer -O3 -fno-finite-math-only -DNDEBUG"
diff --git a/srcpkgs/xapian-core/template b/srcpkgs/xapian-core/template
index 369cccb082f0..9473eb738d20 100644
--- a/srcpkgs/xapian-core/template
+++ b/srcpkgs/xapian-core/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.xapian.org/"
 distfiles="https://oligarchy.co.uk/xapian/${version}/${pkgname}-${version}.tar.xz"
 checksum=196ddbb4ad10450100f0991a599e4ed944cbad92e4a6fe813be6dce160244b77
+patch_args=-Np0
 
 # xapian-config needs the .la
 keep_libtool_archives=yes
diff --git a/srcpkgs/xar/template b/srcpkgs/xar/template
index 79117d197a99..4e3ca4b5477b 100644
--- a/srcpkgs/xar/template
+++ b/srcpkgs/xar/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/mackyle/xar"
 distfiles="https://github.com/downloads/mackyle/xar/${pkgname}-${version}.tar.gz"
 checksum=ee46089968457cf710b8cf1bdeb98b7ef232eb8a4cdeb34502e1f16ef4d2153e
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 *-musl)
diff --git a/srcpkgs/xautolock/template b/srcpkgs/xautolock/template
index 673e57c9a787..676b1c5161eb 100644
--- a/srcpkgs/xautolock/template
+++ b/srcpkgs/xautolock/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="http://www.ibiblio.org/pub/Linux/X11/screensavers/"
 distfiles="${homepage}/${pkgname}-${version}.tgz"
 checksum=11f0275175634e6db756e96f5713ec91b8b1c41f8663df54e8a5d27dc71c4da2
+patch_args=-Np0
 
 do_build() {
 	CC=cc xmkmf
diff --git a/srcpkgs/xava/template b/srcpkgs/xava/template
index fa16f119e240..e4e7faa656ac 100644
--- a/srcpkgs/xava/template
+++ b/srcpkgs/xava/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/nikp123/xava"
 distfiles="https://github.com/nikp123/xava/archive/${version}.tar.gz"
 checksum=b38b810e4bfd71aff44f223b444ae4f158eb8d6428c5e9d42697343ccb5a19f9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/xboxdrv/template b/srcpkgs/xboxdrv/template
index 2b4905d88909..4f22555872a9 100644
--- a/srcpkgs/xboxdrv/template
+++ b/srcpkgs/xboxdrv/template
@@ -13,6 +13,7 @@ homepage="https://xboxdrv.gitlab.io/"
 distfiles="https://xboxdrv.gitlab.io/xboxdrv-linux-${version}.tar.bz2"
 checksum=f4fb8c09c0ce3841798f129ae4c2caf3f6db9786d78ad941994e425e3ffc168a
 python_version=3
+patch_args=-Np0
 
 do_install() {
 	make PREFIX=/usr DESTDIR=${DESTDIR} install
diff --git a/srcpkgs/xcolorsel/template b/srcpkgs/xcolorsel/template
index f3efb02dc904..d6551e23f241 100644
--- a/srcpkgs/xcolorsel/template
+++ b/srcpkgs/xcolorsel/template
@@ -16,6 +16,7 @@ homepage="http://packages.debian.org/stable/x11/xcolorsel"
 distfiles="${DEBIAN_SITE}/main/x/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=ba0813af427dfab7dfbd9eaadbedd217d432f8141179ac43bb39393b1424f7a2
 nocross=yes
+patch_args=-Np0
 
 do_configure() {
 	xmkmf -a -DHasSELinux=0 -DUseConfDirForAppDefaults=0
diff --git a/srcpkgs/xdg-utils/template b/srcpkgs/xdg-utils/template
index d4094a292126..fe7a9b7deb5a 100644
--- a/srcpkgs/xdg-utils/template
+++ b/srcpkgs/xdg-utils/template
@@ -13,6 +13,7 @@ homepage="https://www.freedesktop.org/wiki/Software/xdg-utils/"
 #changelog="https://cgit.freedesktop.org/xdg/xdg-utils/plain/ChangeLog"
 distfiles="https://portland.freedesktop.org/download/${pkgname}-${version}.tar.gz"
 checksum=d798b08af8a8e2063ddde6c9fa3398ca81484f27dec642c5627ffcaa0d4051d9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/xerces-c/template b/srcpkgs/xerces-c/template
index 56f12c4aab08..ba0edf7c4a63 100644
--- a/srcpkgs/xerces-c/template
+++ b/srcpkgs/xerces-c/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="http://xerces.apache.org/xerces-c/"
 distfiles="http://archive.apache.org/dist/xerces/c/3/sources/${pkgname}-${version}.tar.bz2"
 checksum=45c2329e684405f2b8854ecbddfb8d5b055cdf0fe4d35736cc352c504989bbb6
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/xf86-input-mtrack/template b/srcpkgs/xf86-input-mtrack/template
index 0f78142030d3..852900101d59 100644
--- a/srcpkgs/xf86-input-mtrack/template
+++ b/srcpkgs/xf86-input-mtrack/template
@@ -13,6 +13,7 @@ homepage="http://xorg.freedesktop.org/"
 distfiles="https://github.com/p2rkw/${pkgname}/archive/v${version}.tar.gz"
 checksum=a976723720028832afd45bfcaab479f60833ff6f1c780be727d1791675dc14c4
 lib32disabled=yes
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xf86-input-synaptics/template b/srcpkgs/xf86-input-synaptics/template
index 1c9f2be0a939..6d118bbe21ee 100644
--- a/srcpkgs/xf86-input-synaptics/template
+++ b/srcpkgs/xf86-input-synaptics/template
@@ -14,6 +14,7 @@ homepage="http://www.x.org/"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=7af83526eff1c76e8b9e1553b34245c203d029028d8044dd9dcf71eef1001576
 lib32disabled=yes
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xf86-video-ati/template b/srcpkgs/xf86-video-ati/template
index fe251dff4b37..a2715dcd5125 100644
--- a/srcpkgs/xf86-video-ati/template
+++ b/srcpkgs/xf86-video-ati/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://wiki.freedesktop.org/xorg"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=659f5a1629eea5f5334d9b39b18e6807a63aa1efa33c1236d9cc53acbb223c49
+patch_args=-Np0
 
 lib32disabled=yes
 CFLAGS="-fcommon"
diff --git a/srcpkgs/xf86-video-cirrus/template b/srcpkgs/xf86-video-cirrus/template
index f4f7c3a2f0a1..6c73923696f9 100644
--- a/srcpkgs/xf86-video-cirrus/template
+++ b/srcpkgs/xf86-video-cirrus/template
@@ -13,6 +13,7 @@ license="MIT"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=edc87b20a55259126b5239b5c1ef913419eab7ded0ed12ae9ae989460d7351ab
+patch_args=-Np0
 
 LDFLAGS="-Wl,-z,lazy"
 CFLAGS="-fcommon -Wno-pointer-arith -Wno-discarded-qualifiers -Wno-unused-label"
diff --git a/srcpkgs/xf86-video-fbdev/template b/srcpkgs/xf86-video-fbdev/template
index eafde10f3eab..297c1b4ca92a 100644
--- a/srcpkgs/xf86-video-fbdev/template
+++ b/srcpkgs/xf86-video-fbdev/template
@@ -13,6 +13,7 @@ homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=dcc3d85f378022180e437a9ec00a59b6cb7680ff79c40394d695060af2374699
 lib32disabled=yes
+patch_args=-Np0
 
 CFLAGS="-I$XBPS_CROSS_BASE/usr/include/xorg"
 LDFLAGS="-Wl,-z,lazy"
diff --git a/srcpkgs/xf86-video-fbturbo-sunxi/template b/srcpkgs/xf86-video-fbturbo-sunxi/template
index 3da5f84a572c..386a536c824d 100644
--- a/srcpkgs/xf86-video-fbturbo-sunxi/template
+++ b/srcpkgs/xf86-video-fbturbo-sunxi/template
@@ -13,6 +13,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://github.com/ssvb/xf86-video-fbturbo"
 distfiles="https://github.com/ssvb/xf86-video-fbturbo/archive/${version}.tar.gz"
 checksum=10411686de0a9d8b2cde300b0d68e9f1d22e3611470d357ef3afc337f123ca0f
+patch_args=-Np0
 
 archs="armv7l"
 conflicts="xf86-video-fbturbo>=0"
diff --git a/srcpkgs/xf86-video-fbturbo/template b/srcpkgs/xf86-video-fbturbo/template
index acfbff8c05d3..2b6784ccb160 100644
--- a/srcpkgs/xf86-video-fbturbo/template
+++ b/srcpkgs/xf86-video-fbturbo/template
@@ -9,6 +9,7 @@ license="MIT, GPL-2.0-or-later"
 homepage="http://github.com/ssvb/xf86-video-fbturbo"
 distfiles="https://github.com/ssvb/xf86-video-fbturbo/archive/${version}.tar.gz"
 checksum=10411686de0a9d8b2cde300b0d68e9f1d22e3611470d357ef3afc337f123ca0f
+patch_args=-Np0
 
 archs="armv6l* armv7l* aarch64*"
 hostmakedepends="pkg-config xorg-server-devel"
diff --git a/srcpkgs/xf86-video-intel/template b/srcpkgs/xf86-video-intel/template
index 2b589d009897..77eb791f02dc 100644
--- a/srcpkgs/xf86-video-intel/template
+++ b/srcpkgs/xf86-video-intel/template
@@ -18,6 +18,7 @@ homepage="https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/"
 distfiles="${homepage}/-/archive/master/xf86-video-intel-${_commit}.tar.gz"
 checksum=3cdcf2f84bddf9e9174a8413d8fc855dae893dbc53889329978dec62ee8f6e62
 lib32disabled=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 LDFLAGS="-Wl,-z,lazy"
diff --git a/srcpkgs/xf86-video-mach64/template b/srcpkgs/xf86-video-mach64/template
index 51fb61f466c1..a084652f48cf 100644
--- a/srcpkgs/xf86-video-mach64/template
+++ b/srcpkgs/xf86-video-mach64/template
@@ -16,6 +16,7 @@ lib32disabled=yes
 # fails at XORG_DRIVER_CHECK_EXT even though xorg-util-macros is on host
 nocross=yes
 LDFLAGS="-Wl,-z,lazy"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -if
diff --git a/srcpkgs/xf86-video-mga/template b/srcpkgs/xf86-video-mga/template
index 39edac52798d..41a806554577 100644
--- a/srcpkgs/xf86-video-mga/template
+++ b/srcpkgs/xf86-video-mga/template
@@ -13,6 +13,7 @@ homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=268946e1a13e9d80e4f724a0740df9e6e8c8bad37697fcbf456924e9fdbb5d79
 lib32disabled=yes
+patch_args=-Np0
 
 LDFLAGS="-Wl,-z,lazy"
 CFLAGS="-fcommon"
diff --git a/srcpkgs/xf86-video-r128/template b/srcpkgs/xf86-video-r128/template
index 4dbe1529aa5c..b05086aa3c59 100644
--- a/srcpkgs/xf86-video-r128/template
+++ b/srcpkgs/xf86-video-r128/template
@@ -14,6 +14,7 @@ distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=801c86882cbd2bbb3084d471dcc5cfee2c1754dcbfb4dc446676d58a6bd9e057
 lib32disabled=yes
 LDFLAGS="-Wl,-z,lazy"
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xf86-video-vmware/template b/srcpkgs/xf86-video-vmware/template
index 1da7f33d8ef1..12fad896b329 100644
--- a/srcpkgs/xf86-video-vmware/template
+++ b/srcpkgs/xf86-video-vmware/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/driver/$pkgname-$version.tar.bz2"
 checksum=47971924659e51666a757269ad941a059ef5afe7a47b5101c174a6022ac4066c
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/xfig/template b/srcpkgs/xfig/template
index 4c316f35b32d..e12459c56858 100644
--- a/srcpkgs/xfig/template
+++ b/srcpkgs/xfig/template
@@ -13,6 +13,7 @@ license="MIT-like"
 homepage="http://mcj.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/mcj/${pkgname}-${version}.tar.xz"
 checksum=ba43c0ea85b230d3efa5a951a3239e206d0b033d044c590a56208f875f888578
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/spell/aspell/' app-defaults/Fig.in
diff --git a/srcpkgs/xfsprogs/template b/srcpkgs/xfsprogs/template
index e00f8a5d34e0..f33cde7cc8c5 100644
--- a/srcpkgs/xfsprogs/template
+++ b/srcpkgs/xfsprogs/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://xfs.org/index.php/Main_Page"
 distfiles="${KERNEL_SITE}/utils/fs/xfs/xfsprogs/xfsprogs-${version}.tar.xz"
 checksum=bec44445cf18f49e63971d4f27dc4e90a17b118b852714a1104b621ea30e3507
+patch_args=-Np0
 
 post_extract() {
 	sed -i '1i#include <signal.h>' include/linux.h
diff --git a/srcpkgs/xinetd/template b/srcpkgs/xinetd/template
index dbdd441c063c..9456dbfdfcd9 100644
--- a/srcpkgs/xinetd/template
+++ b/srcpkgs/xinetd/template
@@ -11,6 +11,7 @@ license="xinetd"
 homepage="http://www.xinetd.org/"
 distfiles="http://ponce.cc/slackware/sources/repo/xinetd-${version}.tar.gz"
 checksum=bf4e060411c75605e4dcbdf2ac57c6bd9e1904470a2f91e01ba31b50a80a5be3
+patch_args=-Np0
 
 conf_files="/etc/xinetd.conf /etc/xinetd.d/servers /etc/xinetd.d/services"
 
diff --git a/srcpkgs/xinit/template b/srcpkgs/xinit/template
index be836ebc94ad..2bb4c8e43527 100644
--- a/srcpkgs/xinit/template
+++ b/srcpkgs/xinit/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://xorgwiki.freedesktop.org/xorg"
 distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.bz2"
 checksum=de9b8f617b68a70f6caf87da01fcf0ebd2b75690cdcba9c921d0ef54fa54abb9
+patch_args=-Np0
 
 conf_files="
 	/etc/X11/xinit/xinitrc
diff --git a/srcpkgs/xload/template b/srcpkgs/xload/template
index 74cbd8bbf5ed..62f070c1f25c 100644
--- a/srcpkgs/xload/template
+++ b/srcpkgs/xload/template
@@ -11,6 +11,7 @@ license="X11, MIT"
 homepage="http://www.x.org/archive/X11R6.8.1/doc/xload.1.html"
 distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.bz2"
 checksum=f34e4803871d771325cfe52bebd98cc5b6040d3f065184ec73de436f9a375907
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xlunch/template b/srcpkgs/xlunch/template
index 8c8eafcb029b..54335a705a6e 100644
--- a/srcpkgs/xlunch/template
+++ b/srcpkgs/xlunch/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://xlunch.org/"
 distfiles="https://github.com/Tomas-M/xlunch/archive/v${version}.tar.gz"
 checksum=08728beba2a86b1e8f0cccf14903b7e6625e099425b6a254418c75636f2515e6
+patch_args=-Np0
 
 do_install() {
 	vbin xlunch
diff --git a/srcpkgs/xnp2/template b/srcpkgs/xnp2/template
index 1070cad41c20..21ad123a5010 100644
--- a/srcpkgs/xnp2/template
+++ b/srcpkgs/xnp2/template
@@ -13,6 +13,7 @@ license="BSD"
 homepage="https://www.nonakap.org/np2"
 distfiles="https://www.nonakap.org/np2/release/xnp2-${version}.tar.bz2"
 checksum=e0b8c93f54682a4b3373907fd9ffe78094f95f7430dffc5038eccbcc4c3f78fd
+patch_args=-Np0
 
 do_install() {
 	vbin xnp2
diff --git a/srcpkgs/xonotic/template b/srcpkgs/xonotic/template
index 977c8cdce6e4..9622079c8c31 100644
--- a/srcpkgs/xonotic/template
+++ b/srcpkgs/xonotic/template
@@ -14,6 +14,7 @@ homepage="http://xonotic.org"
 distfiles="http://dl.xonotic.org/xonotic-${version}-source.zip"
 checksum=5e6916f1e6e9e22285bb71ddd075189102857383e74ed0b0a3d27cef08e0bd2b
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	local target
diff --git a/srcpkgs/xorg-cf-files/template b/srcpkgs/xorg-cf-files/template
index aea5c85748e2..d5d53e6296f6 100644
--- a/srcpkgs/xorg-cf-files/template
+++ b/srcpkgs/xorg-cf-files/template
@@ -10,6 +10,7 @@ license="X11"
 homepage="http://xorg.freedesktop.org/"
 distfiles="${XORG_SITE}/util/${pkgname}-${version}.tar.bz2"
 checksum=4dcf5a9dbe3c6ecb9d2dd05e629b3d373eae9ba12d13942df87107fdc1b3934d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/xorg-server/template b/srcpkgs/xorg-server/template
index 852c3ab2f573..a223cb08947d 100644
--- a/srcpkgs/xorg-server/template
+++ b/srcpkgs/xorg-server/template
@@ -31,6 +31,7 @@ provides="xserver-abi-extension-10_1 xserver-abi-input-24_1
  xserver-abi-video-24_1 xf86-video-modesetting-1_1"
 replaces="xf86-video-modesetting>=0 glamor-egl>=0"
 conf_files="/etc/X11/Xwrapper.config"
+patch_args=-Np0
 
 build_options="elogind"
 desc_option_elogind="Rootless Xorg support with elogind"
diff --git a/srcpkgs/xosview/template b/srcpkgs/xosview/template
index 3d6c3ab6c1f9..1c4b34de9d1c 100644
--- a/srcpkgs/xosview/template
+++ b/srcpkgs/xosview/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.pogo.org.uk/~mark/xosview"
 distfiles="http://www.pogo.org.uk/~mark/xosview/releases/xosview-${version}.tar.gz"
 checksum=901b75af2676b11b28b88f0c79c5bd0f4f01de4790c0c5385edf6d71aee1f83a
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	# does not have asm/io.h
diff --git a/srcpkgs/xplanet/template b/srcpkgs/xplanet/template
index 4650dd2556ca..abb07cf7fa58 100644
--- a/srcpkgs/xplanet/template
+++ b/srcpkgs/xplanet/template
@@ -12,6 +12,7 @@ license="GPL-2"
 homepage="http://xplanet.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4380d570a8bf27b81fb629c97a636c1673407f4ac4989ce931720078a90aece7
+patch_args=-Np0
 
 pre_configure() {
 	# make it build with giflib-5.1.0
diff --git a/srcpkgs/xrick/template b/srcpkgs/xrick/template
index 42b8a0febe94..628972531f22 100644
--- a/srcpkgs/xrick/template
+++ b/srcpkgs/xrick/template
@@ -12,6 +12,7 @@ restricted=yes
 homepage="http://www.bigorno.net/xrick/"
 distfiles="https://www.bigorno.net/xrick/xrick-${version}.tgz"
 checksum=aa8542120bec97a730258027a294bd16196eb8b3d66134483d085f698588fc2b
+patch_args=-Np0
 
 CFLAGS=-fcommon
 
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 863e61dd58c7..b84bedbe6d72 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.xsane.org"
 distfiles="${DEBIAN_SITE}/main/x/xsane/xsane_${version}.orig.tar.gz"
 checksum=5782d23e67dc961c81eef13a87b17eb0144cae3d1ffc5cf7e0322da751482b4b
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=.*/DATADIRNAME=share/' \
diff --git a/srcpkgs/xsettingsd/template b/srcpkgs/xsettingsd/template
index e2754ef00999..deb1a1228579 100644
--- a/srcpkgs/xsettingsd/template
+++ b/srcpkgs/xsettingsd/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/derat/xsettingsd"
 distfiles="https://github.com/derat/xsettingsd/archive/v${version}.tar.gz"
 checksum=69b5d1987608d1b5f2a0085f2f88cc55936a99b92279118e655d665ebb5e50d3
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xst/template b/srcpkgs/xst/template
index 8600c680ae36..5fded5ad0a2c 100644
--- a/srcpkgs/xst/template
+++ b/srcpkgs/xst/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/gnotclub/xst"
 distfiles="https://github.com/gnotclub/xst/archive/v${version}.tar.gz"
 checksum=cbeb2da6c289415d1168559c6f58b4ce47fd266edefbabc38fd59e8b7c87226d
+patch_args=-Np0
 
 do_install() {
 	vbin xst
diff --git a/srcpkgs/xstarter/template b/srcpkgs/xstarter/template
index 4363d36e3c39..5e49b3e3f73d 100644
--- a/srcpkgs/xstarter/template
+++ b/srcpkgs/xstarter/template
@@ -12,6 +12,7 @@ homepage="https://xstarter.org"
 changelog="https://raw.githubusercontent.com/lchsk/xstarter/master/CHANGELOG"
 distfiles="https://github.com/lchsk/xstarter/archive/v${version}.tar.gz"
 checksum=cb82bf837a2693cbbad468812d517256e079d6aae56dde770d473b245603030a
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e's;-Wall;-fcommon &;'
diff --git a/srcpkgs/xterm/template b/srcpkgs/xterm/template
index cde36bc4e134..92d4c5866d0c 100644
--- a/srcpkgs/xterm/template
+++ b/srcpkgs/xterm/template
@@ -21,6 +21,7 @@ homepage="http://invisible-island.net/xterm/"
 changelog="http://invisible-island.net/xterm/xterm.log.html"
 distfiles="https://invisible-mirror.net/archives/xterm/xterm-${version}.tgz"
 checksum=2ff5169930b6b49ef0bafb5e1331c94f1a98c310442bba7798add821c76ae712
+patch_args=-Np0
 
 post_install() {
 	for f in {u,}xterm.desktop; do
diff --git a/srcpkgs/xye/template b/srcpkgs/xye/template
index d36a89c9ad29..7d9472e29e6e 100644
--- a/srcpkgs/xye/template
+++ b/srcpkgs/xye/template
@@ -11,6 +11,7 @@ homepage="http://xye.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=5d7c04f37d6b4a1821594512c7ddbc8189f968e08ecfd5af55231302f2f917d8
 replaces="xye-data>=0"
+patch_args=-Np0
 
 post_install() {
 	vdoc ReadMe.html
diff --git a/srcpkgs/yabar/template b/srcpkgs/yabar/template
index 8bb8d1cd5795..c8dd3ff8ae73 100644
--- a/srcpkgs/yabar/template
+++ b/srcpkgs/yabar/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/geommer/yabar"
 distfiles="https://github.com/geommer/${pkgname}/archive/${version}.tar.gz"
 checksum=f8cc613413328af78944ccb8063a5ba8e6be11797a883c419876e973e102fed0
+patch_args=-Np0
 
 post_install() {
 	vdoc README.md
diff --git a/srcpkgs/yarn-bin/template b/srcpkgs/yarn-bin/template
index 111cdd494574..948d9c8d6c65 100644
--- a/srcpkgs/yarn-bin/template
+++ b/srcpkgs/yarn-bin/template
@@ -10,6 +10,7 @@ homepage="https://yarnpkg.com/"
 distfiles="https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz"
 checksum=7e433d4a77e2c79e6a7ae4866782608a8e8bcad3ec6783580577c59538381a6e
 conflicts="yarn>=0"
+patch_args=-Np0
 
 do_extract() {
 	bsdtar xfz ${XBPS_SRCDISTDIR}/${pkgname}-${version}/yarn-v${version}.tar.gz --strip-components=1 -C ${wrksrc}
diff --git a/srcpkgs/yarn/template b/srcpkgs/yarn/template
index aa9f68e53c4c..4b699e2cf02f 100644
--- a/srcpkgs/yarn/template
+++ b/srcpkgs/yarn/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="https://yarnpkg.com/"
 distfiles="https://github.com/yarnpkg/${pkgname}/archive/v${version}.tar.gz"
 checksum=66153f5fdd3078ce320c775990e4b4f03d5b596186f0e1fbceb34225abe3cd3e
+patch_args=-Np0
 
 conflicts="yarn-bin>=0"
 
diff --git a/srcpkgs/yeahconsole/template b/srcpkgs/yeahconsole/template
index ef7d82067398..997c438199a2 100644
--- a/srcpkgs/yeahconsole/template
+++ b/srcpkgs/yeahconsole/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="http://phrat.de/yeahtools.html"
 distfiles="http://phrat.de/yeahconsole-${version}.tar.gz"
 checksum=fcf3481f78a263a70f1cb5163630fc22e78bb0915013eb05689c6f4aeb0583ef
+patch_args=-Np0
 
 do_install() {
 	vbin yeahconsole
diff --git a/srcpkgs/yeahwm/template b/srcpkgs/yeahwm/template
index 3574b02200e6..0a241f71ee91 100644
--- a/srcpkgs/yeahwm/template
+++ b/srcpkgs/yeahwm/template
@@ -11,6 +11,7 @@ license="Public Domain"
 homepage="http://phrat.de"
 distfiles="http://phrat.de/${pkgname}_${version}.tar.gz"
 checksum=c92ce98848c8b88d9b67c128e30710944c04a6454310254535c102b2b6fcee05
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/yersinia/template b/srcpkgs/yersinia/template
index f9d57cfe9ffd..84c3b898a958 100644
--- a/srcpkgs/yersinia/template
+++ b/srcpkgs/yersinia/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/tomac/yersinia"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=964f528dbffd904376ab7986e69b1e8639591c929e2f39186ac9ebf2d3bc761f
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ${makedepends}"
diff --git a/srcpkgs/ympd/template b/srcpkgs/ympd/template
index 450c079b2ca3..3cea700b1264 100644
--- a/srcpkgs/ympd/template
+++ b/srcpkgs/ympd/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://www.ympd.org"
 distfiles="https://github.com/notandy/ympd/archive/v${version}.tar.gz"
 checksum=d9f68920cd93d1cfa971e1d7b9162a2b1724909bc9753c1338cecb3688d234d5
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e"s;-std=gnu99 -Wall;& -fcommon;"
diff --git a/srcpkgs/yoshimi/template b/srcpkgs/yoshimi/template
index b836098f1c82..33bc95745815 100644
--- a/srcpkgs/yoshimi/template
+++ b/srcpkgs/yoshimi/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://yoshimi.github.io/"
 distfiles="https://github.com/Yoshimi/$pkgname/archive/$version.tar.gz"
 checksum=b80a8b49bdf0e1f6c382627afc46c82d03219b7e45cdecd933e6fc046a939967
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone";;
diff --git a/srcpkgs/yosys/template b/srcpkgs/yosys/template
index 72e7da38f402..de5ad13629ca 100644
--- a/srcpkgs/yosys/template
+++ b/srcpkgs/yosys/template
@@ -16,6 +16,7 @@ license="ISC, MIT"
 homepage="http://www.clifford.at/yosys/about.html"
 distfiles="https://github.com/cliffordwolf/yosys/archive/yosys-${version}.tar.gz"
 checksum=f2e31371f9cf1b36cb4f57b23fd6eb849adc7d935dcf49f3c905aa5136382c2f
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's,-I[$](PREFIX)/include,,' \
diff --git a/srcpkgs/z3/template b/srcpkgs/z3/template
index 789712fa6450..0bf58a1ce64e 100644
--- a/srcpkgs/z3/template
+++ b/srcpkgs/z3/template
@@ -16,6 +16,7 @@ license="MIT"
 homepage="https://github.com/Z3Prover/z3"
 distfiles="https://github.com/Z3Prover/z3/archive/z3-${version}.tar.gz"
 checksum=99e912b9af76a17f8827f89afcf4da117736f3877a8bbdd737c548c6541009d7
+patch_args=-Np0
 
 build_options="ocaml"
 desc_option_ocaml="Enable support for OCaml bindings"
diff --git a/srcpkgs/z80ex/template b/srcpkgs/z80ex/template
index 5437f53d33d5..d71d6304ee1a 100644
--- a/srcpkgs/z80ex/template
+++ b/srcpkgs/z80ex/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="https://sourceforge.net/projects/z80ex/"
 distfiles="${SOURCEFORGE_SITE}/project/z80ex/z80ex/${version}/z80ex-${version}.tar.gz"
 checksum=6f5e521d068a614b41e10180ad4ae45b1bc258ec28c962543feb9078856c2530
+patch_args=-Np0
 
 z80ex-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/zabbix/template b/srcpkgs/zabbix/template
index 5db05d0d5d45..9cc6ed5f43a0 100644
--- a/srcpkgs/zabbix/template
+++ b/srcpkgs/zabbix/template
@@ -23,6 +23,7 @@ conf_files="/etc/zabbix_server.conf"
 system_accounts="_zabbix_server"
 system_groups="_zabbix_server"
 make_dirs="/var/log/zabbix-server 0750 _zabbix_server _zabbix_server"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# configure scripts is bad at checking, problably runs code instead of
diff --git a/srcpkgs/zbar/template b/srcpkgs/zbar/template
index f64d87fcfe81..6bd2833da871 100644
--- a/srcpkgs/zbar/template
+++ b/srcpkgs/zbar/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="https://git.linuxtv.org/zbar.git/"
 distfiles="https://linuxtv.org/downloads/zbar/${pkgname}-${version}.tar.bz2"
 checksum=dad260b47ef887a639e840a89e5e6e132217b6bba2a8473565d1f459bcb97c1f
+patch_args=-Np0
 
 build_options="qt"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/zeal/template b/srcpkgs/zeal/template
index 9db6b15584d6..16905d094d3e 100644
--- a/srcpkgs/zeal/template
+++ b/srcpkgs/zeal/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://zealdocs.org/"
 distfiles="https://github.com/zealdocs/zeal/archive/v${version}.tar.gz"
 checksum=095c08f9903071849d5c79878abd48237ce1615f16d324afff1873ab6b5f0026
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake"
diff --git a/srcpkgs/zeek/template b/srcpkgs/zeek/template
index e071ae02cb68..2e5267e20f59 100644
--- a/srcpkgs/zeek/template
+++ b/srcpkgs/zeek/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="https://www.zeek.org"
 distfiles="https://old.zeek.org/downloads/zeek-${version}.tar.gz"
 checksum=659a890f433cb730519966bdc41f1a03fb67e27e94b5d52ad9ee890022a12c3a
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-fts-devel musl-legacy-compat"
diff --git a/srcpkgs/zerofree/template b/srcpkgs/zerofree/template
index 82d05a933846..4bbff91d1d86 100644
--- a/srcpkgs/zerofree/template
+++ b/srcpkgs/zerofree/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://frippery.org/uml/index.html"
 distfiles="https://frippery.org/uml/${pkgname}-${version}.tgz"
 checksum=956bc861b55ba0a2b7593c58d32339dab1a0e7da6ea2b813d27c80f08b723867
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's|\(-lext2fs\)|$(LDFLAGS) \1|' Makefile
diff --git a/srcpkgs/zfs/template b/srcpkgs/zfs/template
index 40d6bcd78509..bd20fd9b8ed0 100644
--- a/srcpkgs/zfs/template
+++ b/srcpkgs/zfs/template
@@ -19,6 +19,7 @@ checksum=7d1344c5433b91823f02c2e40b33d181fa6faf286bea5591f4b1965f23d45f6c
 # dkms must be before initramfs-regenerate to build modules before images
 triggers="dkms initramfs-regenerate"
 dkms_modules="zfs ${version}"
+patch_args=-Np0
 
 replaces="spl<=0.7.13_1" # Because SPL was merged into zfs in 0.8.0
 
diff --git a/srcpkgs/zimg/template b/srcpkgs/zimg/template
index a0b0ff763198..1dc610bf781f 100644
--- a/srcpkgs/zimg/template
+++ b/srcpkgs/zimg/template
@@ -11,6 +11,7 @@ license="WTFPL"
 homepage="https://github.com/sekrit-twc/zimg"
 distfiles="https://github.com/sekrit-twc/zimg/archive/release-${version}.tar.gz"
 checksum=a15c0483fbe945ffe695a1a989bc43b3381c8bf33e2d1760464ec21d32cdf30b
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/zinnia/template b/srcpkgs/zinnia/template
index fc0f6a2a5a6b..2dc564a9a281 100644
--- a/srcpkgs/zinnia/template
+++ b/srcpkgs/zinnia/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="https://taku910.github.io/zinnia/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.gz"
 checksum=ece3af93f937282971634fd81d3e997f848e8cfa958220e26a4564ca064ac20b
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/zip/template b/srcpkgs/zip/template
index 94cb4c961033..720fa31b6b64 100644
--- a/srcpkgs/zip/template
+++ b/srcpkgs/zip/template
@@ -9,6 +9,7 @@ license="Info-ZIP"
 homepage="http://infozip.sf.net/"
 distfiles="${SOURCEFORGE_SITE}/infozip/zip30.tar.gz"
 checksum=f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
+patch_args=-Np0
 
 do_build() {
 	sed -e "s|generic CC=gcc CPP=\"gcc -E\"|zips CC=$CC CPP=\"$CPP -E\" CFLAGS=\"-DLARGE_FILE_SUPPORT $CFLAGS \${CFLAGS_NOOPT}\" LFLAGS2=\"$LDFLAGS\"|g" -i unix/Makefile
diff --git a/srcpkgs/zlib/template b/srcpkgs/zlib/template
index a6462e5616a2..b7519dafd23f 100644
--- a/srcpkgs/zlib/template
+++ b/srcpkgs/zlib/template
@@ -10,6 +10,7 @@ license="Zlib"
 homepage="http://www.zlib.net"
 distfiles="$homepage/$pkgname-$version.tar.gz"
 checksum=c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
+patch_args=-Np0
 
 do_configure() {
 	LDFLAGS= LDSHAREDLIBC= ./configure --prefix=/usr --shared
diff --git a/srcpkgs/zsnes/template b/srcpkgs/zsnes/template
index df49c9c7d3e7..1d961f28744b 100644
--- a/srcpkgs/zsnes/template
+++ b/srcpkgs/zsnes/template
@@ -5,6 +5,7 @@ archs="i686"
 lib32mode="full"
 wrksrc="zsnes_1_51"
 build_wrksrc="src"
+patch_args=-Np0
 
 pkgname=zsnes
 version=1.51
diff --git a/srcpkgs/zulucrypt/template b/srcpkgs/zulucrypt/template
index cc596dc63dc2..7a197d0af329 100644
--- a/srcpkgs/zulucrypt/template
+++ b/srcpkgs/zulucrypt/template
@@ -21,6 +21,7 @@ homepage="https://mhogomchungu.github.io/zuluCrypt"
 changelog="https://raw.githubusercontent.com/mhogomchungu/zuluCrypt/master/changelog"
 distfiles="https://github.com/mhogomchungu/zuluCrypt/archive/${version}.tar.gz"
 checksum=f1bc599446e6dc82c6af16672fcbd4a88679d3b3dba2cfa3921ac514cb211add
+patch_args=-Np0
 
 #https://github.com/mhogomchungu/zuluCrypt/blob/e138cc4459545b2e0f729814791a045c31b63014/BUILD_INSTRUCTIONS
 build_options="udev kde gnome pwquality polkit homemount"
diff --git a/srcpkgs/zutils/template b/srcpkgs/zutils/template
index 8549ede01b59..9ad5a4b3aae6 100644
--- a/srcpkgs/zutils/template
+++ b/srcpkgs/zutils/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.nongnu.org/zutils/zutils.html"
 distfiles="http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${version}.tar.lz"
 checksum=0dd44138292d5757648037195b6945c3df70b316221b4285520ad38f2eaeb195
+patch_args=-Np0
 
 post_install() {
 	cd ${DESTDIR}/usr/bin
diff --git a/srcpkgs/zynaddsubfx/template b/srcpkgs/zynaddsubfx/template
index 844d14016a06..42b639e637de 100644
--- a/srcpkgs/zynaddsubfx/template
+++ b/srcpkgs/zynaddsubfx/template
@@ -15,6 +15,7 @@ homepage="http://zynaddsubfx.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
 checksum=7447322268114a1e0ac5f281ac37a09a78e761a7be61999caf79100049789f63
 replaces="zynaddsubfx-data>=0"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	armv5*) configure_args+=" -DSUPPORT_NEON=NO";;

From cc3a25e6e29f2b101e6c9fd73637dec6d30be514 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:33:02 +0700
Subject: [PATCH 4/9] srcpkgs: add patch_args=-Np0 en-mass

Generated with:

        git ls-files 'srcpkgs/**/patches/*' |
        cut -d/ -f2 | uniq |
        xargs printf 'srcpkgs/%s/template\n'  |
        xargs grep -L 'patch_args=' |
        xargs sed -i '$a patch_args=-Np0"
---
 srcpkgs/64tass/template                     | 1 +
 srcpkgs/EmptyEpsilon/template               | 1 +
 srcpkgs/FreeDoko/template                   | 1 +
 srcpkgs/SoapyUHD/template                   | 1 +
 srcpkgs/Terminal/template                   | 1 +
 srcpkgs/a2jmidid/template                   | 1 +
 srcpkgs/apvlv/template                      | 1 +
 srcpkgs/auto-auto-complete/template         | 1 +
 srcpkgs/azpainter/template                  | 1 +
 srcpkgs/balsa/template                      | 1 +
 srcpkgs/batctl14/template                   | 1 +
 srcpkgs/biosdisk/template                   | 1 +
 srcpkgs/birdtray/template                   | 1 +
 srcpkgs/bitwise/template                    | 1 +
 srcpkgs/bti/template                        | 1 +
 srcpkgs/bzflag/template                     | 1 +
 srcpkgs/cantata/template                    | 1 +
 srcpkgs/cinnamon-session/template           | 1 +
 srcpkgs/clazy/template                      | 1 +
 srcpkgs/curlftpfs/template                  | 1 +
 srcpkgs/cutecom/template                    | 1 +
 srcpkgs/cvs/template                        | 1 +
 srcpkgs/darkice/template                    | 1 +
 srcpkgs/ddd/template                        | 1 +
 srcpkgs/dhewm3/template                     | 1 +
 srcpkgs/dialogbox/template                  | 1 +
 srcpkgs/dillo/template                      | 1 +
 srcpkgs/dislocker/template                  | 1 +
 srcpkgs/dmg2img/template                    | 1 +
 srcpkgs/dvdbackup/template                  | 1 +
 srcpkgs/edb-debugger/template               | 1 +
 srcpkgs/endless-sky/template                | 1 +
 srcpkgs/eolie/template                      | 1 +
 srcpkgs/epson-inkjet-printer-escpr/template | 1 +
 srcpkgs/exfat-utils/template                | 1 +
 srcpkgs/extundelete/template                | 1 +
 srcpkgs/fastjar/template                    | 1 +
 srcpkgs/fceux/template                      | 1 +
 srcpkgs/fifengine/template                  | 1 +
 srcpkgs/filelight/template                  | 1 +
 srcpkgs/fuse-emulator/template              | 1 +
 srcpkgs/gcal/template                       | 1 +
 srcpkgs/gftp/template                       | 1 +
 srcpkgs/gfuzz/template                      | 1 +
 srcpkgs/git-mediate/template                | 1 +
 srcpkgs/gltron/template                     | 1 +
 srcpkgs/gnome-recipes/template              | 1 +
 srcpkgs/gnupod/template                     | 1 +
 srcpkgs/gupnp-tools/template                | 1 +
 srcpkgs/helm/template                       | 1 +
 srcpkgs/html-xml-utils/template             | 1 +
 srcpkgs/hxtools/template                    | 1 +
 srcpkgs/icecast/template                    | 1 +
 srcpkgs/imagewriter/template                | 1 +
 srcpkgs/img2pdf/template                    | 1 +
 srcpkgs/intel-undervolt/template            | 1 +
 srcpkgs/intltool/template                   | 1 +
 srcpkgs/io.elementary.photos/template       | 1 +
 srcpkgs/ipv6calc/template                   | 1 +
 srcpkgs/itstool/template                    | 1 +
 srcpkgs/iwgtk/template                      | 1 +
 srcpkgs/jigdo/template                      | 1 +
 srcpkgs/k3b/template                        | 1 +
 srcpkgs/kcm-wacomtablet/template            | 1 +
 srcpkgs/kcov/template                       | 1 +
 srcpkgs/keditbookmarks/template             | 1 +
 srcpkgs/kig/template                        | 1 +
 srcpkgs/krusader/template                   | 1 +
 srcpkgs/ksysguard/template                  | 1 +
 srcpkgs/lbreakouthd/template                | 1 +
 srcpkgs/lbzip2/template                     | 1 +
 srcpkgs/lcov/template                       | 1 +
 srcpkgs/libeatmydata/template               | 1 +
 srcpkgs/libva-vdpau-driver/template         | 1 +
 srcpkgs/libwm/template                      | 1 +
 srcpkgs/lltag/template                      | 1 +
 srcpkgs/lrzsz/template                      | 1 +
 srcpkgs/macchanger/template                 | 1 +
 srcpkgs/mate-power-manager/template         | 1 +
 srcpkgs/mcomix/template                     | 1 +
 srcpkgs/mftrace/template                    | 1 +
 srcpkgs/nm-tray/template                    | 1 +
 srcpkgs/nootka/template                     | 1 +
 srcpkgs/olive/template                      | 1 +
 srcpkgs/pam_rundir/template                 | 1 +
 srcpkgs/pdfgrep/template                    | 1 +
 srcpkgs/pdfsandwich/template                | 1 +
 srcpkgs/pekwm/template                      | 1 +
 srcpkgs/perl-Authen-SASL/template           | 1 +
 srcpkgs/perl-Crypt-DH/template              | 1 +
 srcpkgs/perl-Crypt-Rijndael/template        | 1 +
 srcpkgs/perl-Fuse/template                  | 1 +
 srcpkgs/perl-OpenGL/template                | 1 +
 srcpkgs/perl-XML-LibXSLT/template           | 1 +
 srcpkgs/perl-XML-SAX/template               | 1 +
 srcpkgs/pidgin-gpg/template                 | 1 +
 srcpkgs/pidgin-sipe/template                | 1 +
 srcpkgs/plasma-desktop/template             | 1 +
 srcpkgs/pokoy/template                      | 1 +
 srcpkgs/polkit-kde-agent/template           | 1 +
 srcpkgs/posixovl/template                   | 1 +
 srcpkgs/powertop/template                   | 1 +
 srcpkgs/python3-orocos-kdl/template         | 1 +
 srcpkgs/python3-pykeepass/template          | 1 +
 srcpkgs/python3-transifex-client/template   | 1 +
 srcpkgs/python3-yara/template               | 1 +
 srcpkgs/qmltermwidget/template              | 1 +
 srcpkgs/qomui/template                      | 1 +
 srcpkgs/qtcurve/template                    | 1 +
 srcpkgs/qtfm/template                       | 1 +
 srcpkgs/recoll/template                     | 1 +
 srcpkgs/recordmydesktop/template            | 1 +
 srcpkgs/rofs-filtered/template              | 1 +
 srcpkgs/sasm/template                       | 1 +
 srcpkgs/scribus/template                    | 1 +
 srcpkgs/seahorse-nautilus/template          | 1 +
 srcpkgs/seq2gif/template                    | 1 +
 srcpkgs/sgfutils/template                   | 1 +
 srcpkgs/sidplayfp/template                  | 1 +
 srcpkgs/smbnetfs/template                   | 1 +
 srcpkgs/solvespace/template                 | 1 +
 srcpkgs/sonata/template                     | 1 +
 srcpkgs/stellarium/template                 | 1 +
 srcpkgs/streamripper/template               | 1 +
 srcpkgs/stress-ng/template                  | 1 +
 srcpkgs/swell-foop/template                 | 1 +
 srcpkgs/switchboard-plug-printers/template  | 1 +
 srcpkgs/telepathy-haze/template             | 1 +
 srcpkgs/tellico/template                    | 1 +
 srcpkgs/texmaker/template                   | 1 +
 srcpkgs/tmfs/template                       | 1 +
 srcpkgs/trackballs/template                 | 1 +
 srcpkgs/tremc/template                      | 1 +
 srcpkgs/ttfautohint/template                | 1 +
 srcpkgs/tworld/template                     | 1 +
 srcpkgs/ucl/template                        | 1 +
 srcpkgs/uhubctl/template                    | 1 +
 srcpkgs/usb-modeswitch-data/template        | 1 +
 srcpkgs/usb-modeswitch/template             | 1 +
 srcpkgs/valabind/template                   | 1 +
 srcpkgs/vba-m/template                      | 1 +
 srcpkgs/wdisplays/template                  | 1 +
 srcpkgs/wfuzz/template                      | 1 +
 srcpkgs/whysynth/template                   | 1 +
 srcpkgs/wmctrl/template                     | 1 +
 srcpkgs/wofi/template                       | 1 +
 srcpkgs/wvdial/template                     | 1 +
 srcpkgs/xbindkeys/template                  | 1 +
 srcpkgs/xdg-dbus-proxy/template             | 1 +
 srcpkgs/xfce4-power-manager/template        | 1 +
 srcpkgs/xkblayout-state/template            | 1 +
 srcpkgs/xnots/template                      | 1 +
 srcpkgs/xsel/template                       | 1 +
 srcpkgs/xseticon/template                   | 1 +
 srcpkgs/yabause-gtk/template                | 1 +
 srcpkgs/zaz/template                        | 1 +
 srcpkgs/zbackup/template                    | 1 +
 157 files changed, 157 insertions(+)

diff --git a/srcpkgs/64tass/template b/srcpkgs/64tass/template
index ae06411d48bc..5cb4cefd8189 100644
--- a/srcpkgs/64tass/template
+++ b/srcpkgs/64tass/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="http://tass64.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/tass64/64tass-${version}-src.zip"
 checksum=067d0a54cb3c473b26aa5d69ea3f1f956be7cccc9044f1117fc20cb84aa63880
+patch_args=-Np0
diff --git a/srcpkgs/EmptyEpsilon/template b/srcpkgs/EmptyEpsilon/template
index f191433eec50..c9ba6f8595b5 100644
--- a/srcpkgs/EmptyEpsilon/template
+++ b/srcpkgs/EmptyEpsilon/template
@@ -22,3 +22,4 @@ distfiles="https://github.com/daid/EmptyEpsilon/archive/EE-${version}.tar.gz
  https://github.com/daid/SeriousProton/archive/EE-${version}.tar.gz>SP-${version}.tar.gz"
 checksum="c1c4f11fefe1afac6076c795e8785c7507a297ba3f7f2be9ed30c97b1e93cb24
  62ab03dc904bd10f017fff338e55ec97c86f0bc3903a18d6c44285b86776a2d7"
+patch_args=-Np0
diff --git a/srcpkgs/FreeDoko/template b/srcpkgs/FreeDoko/template
index 6ec209a18922..80746fe5d893 100644
--- a/srcpkgs/FreeDoko/template
+++ b/srcpkgs/FreeDoko/template
@@ -13,3 +13,4 @@ homepage="http://free-doko.sourceforge.net/en/FreeDoko.html"
 license="GPL-2.0-or-later"
 distfiles="${SOURCEFORGE_SITE}/free-doko/FreeDoko_${version}.src.zip"
 checksum=5b9ca3ad915f36dba17a4bd22b3d7d68ac2526cf125d045a819aa8d4a2cceb4c
+patch_args=-Np0
diff --git a/srcpkgs/SoapyUHD/template b/srcpkgs/SoapyUHD/template
index 90f51db7b9c6..5549897fda77 100644
--- a/srcpkgs/SoapyUHD/template
+++ b/srcpkgs/SoapyUHD/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/pothosware/SoapyUHD"
 distfiles="${homepage}/archive/soapy-uhd-${version}.tar.gz"
 checksum=0ac7fd0967e6922f16d1ba1a7ecb72f1fbcc14dd80e5134af9a5c9b86c1bccb8
+patch_args=-Np0
diff --git a/srcpkgs/Terminal/template b/srcpkgs/Terminal/template
index 9cd7970fcc2e..d2fddec6eb3d 100644
--- a/srcpkgs/Terminal/template
+++ b/srcpkgs/Terminal/template
@@ -15,3 +15,4 @@ homepage="http://gap.nongnu.org/terminal/"
 distfiles="${NONGNU_SITE}/gap/${pkgname}-${version}.tar.gz"
 checksum=27f81bbecdbd10cde8c080012cde4973bec20e551c58c29f353733cf03c220e9
 nocross="objc doesn't get cross build at present within gcc (see gnustep-base)"
+patch_args=-Np0
diff --git a/srcpkgs/a2jmidid/template b/srcpkgs/a2jmidid/template
index b39aa31eef1c..eca329aec5f1 100644
--- a/srcpkgs/a2jmidid/template
+++ b/srcpkgs/a2jmidid/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/linuxaudio/a2jmidid/"
 distfiles="https://github.com/linuxaudio/a2jmidid/archive/${version}.tar.gz"
 checksum=2828d283e0c9a65f0683881f09676c8c35c45c97a8a56cf77b43b4ef0231df06
+patch_args=-Np0
diff --git a/srcpkgs/apvlv/template b/srcpkgs/apvlv/template
index 8d343dbe3358..8cd23927d55a 100644
--- a/srcpkgs/apvlv/template
+++ b/srcpkgs/apvlv/template
@@ -14,3 +14,4 @@ homepage="http://naihe2010.github.io/apvlv/"
 distfiles="https://github.com/naihe2010/apvlv/archive/v${version}.tar.gz"
 checksum=a4a2f42a7e42715a21d2356def3ed93c180c6ae41128580addee42835e5374c2
 replaces="apvlv-git>=0"
+patch_args=-Np0
diff --git a/srcpkgs/auto-auto-complete/template b/srcpkgs/auto-auto-complete/template
index 065d615c2b59..24a3eb40df42 100644
--- a/srcpkgs/auto-auto-complete/template
+++ b/srcpkgs/auto-auto-complete/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/maandree/auto-auto-complete"
 distfiles="https://github.com/maandree/${pkgname}/archive/${version}.tar.gz"
 checksum=5e54025c6ef65dfff5ba976d23eb778a0936b0678763ebcd78359d460300301e
+patch_args=-Np0
diff --git a/srcpkgs/azpainter/template b/srcpkgs/azpainter/template
index 05bd1be32771..b47d36fbe7ac 100644
--- a/srcpkgs/azpainter/template
+++ b/srcpkgs/azpainter/template
@@ -13,3 +13,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/Symbian9/azpainter"
 distfiles="https://github.com/Symbian9/azpainter/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=85f3f935e76b420f2e5e272514368fdfbe4c25c01daa1e161ac28a6e1edb0d2c
+patch_args=-Np0
diff --git a/srcpkgs/balsa/template b/srcpkgs/balsa/template
index 255ae0f226a5..5d3f410bf0b3 100644
--- a/srcpkgs/balsa/template
+++ b/srcpkgs/balsa/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://pawsa.fedorapeople.org/balsa/"
 distfiles="https://pawsa.fedorapeople.org/balsa/balsa-${version}.tar.bz2"
 checksum=6441772cb5e1870f10c358c21f7e709da8cc0bfa6cc005ec744b9f1b00ea7df6
+patch_args=-Np0
diff --git a/srcpkgs/batctl14/template b/srcpkgs/batctl14/template
index 4ca1b15ed0ea..9fc5556c20f2 100644
--- a/srcpkgs/batctl14/template
+++ b/srcpkgs/batctl14/template
@@ -14,3 +14,4 @@ homepage="http://www.open-mesh.net/"
 distfiles="http://downloads.open-mesh.net/batman/releases/batman-adv-${version}/batctl-${version}.tar.gz"
 checksum=4deae3b6664d0d13acf7a8ece74175a31a72fe58fb15cb9112a9a2014b32cb4c
 conflicts="batctl>=0"
+patch_args=-Np0
diff --git a/srcpkgs/biosdisk/template b/srcpkgs/biosdisk/template
index ccbc76f4e55a..ea5ad3aebcab 100644
--- a/srcpkgs/biosdisk/template
+++ b/srcpkgs/biosdisk/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/dell/biosdisk"
 distfiles="https://github.com/dell/biosdisk/archive/${version}.tar.gz"
 checksum=e89cf680914ab3d5bbb549c124c6c29594ef495880befc0d059ec8a3aaf1e3e7
+patch_args=-Np0
diff --git a/srcpkgs/birdtray/template b/srcpkgs/birdtray/template
index 8695820eccec..acf7c1d9c19c 100644
--- a/srcpkgs/birdtray/template
+++ b/srcpkgs/birdtray/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/gyunaev/birdtray"
 distfiles="https://github.com/gyunaev/birdtray/archive/v${version}.tar.gz"
 checksum=672256bfadbde2841dcd6bad00662aeba825a4f041fa9a1980763f9eb29294d0
+patch_args=-Np0
diff --git a/srcpkgs/bitwise/template b/srcpkgs/bitwise/template
index 16b8b2a23fe4..9e3fe3fa18c7 100644
--- a/srcpkgs/bitwise/template
+++ b/srcpkgs/bitwise/template
@@ -12,3 +12,4 @@ license="GPL-3.0-only"
 homepage="https://github.com/mellowcandle/bitwise"
 distfiles="${homepage}/releases/download/v${version}/bitwise-v${version}.tar.gz"
 checksum=d3d43cef47bf8f49e85f7ed381c3eaf1df921ca51805e0962f1a97a517e1d1d2
+patch_args=-Np0
diff --git a/srcpkgs/bti/template b/srcpkgs/bti/template
index a914e9e75d60..82d1af711e15 100644
--- a/srcpkgs/bti/template
+++ b/srcpkgs/bti/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://gregkh.github.com/bti/"
 distfiles="https://www.kernel.org/pub/software/web/bti/bti-${version}.tar.xz"
 checksum=8b4a1a11f529f83956468acadaea9d11db4f03e82afe07fecb84b2d00e9eae83
+patch_args=-Np0
diff --git a/srcpkgs/bzflag/template b/srcpkgs/bzflag/template
index d58270495975..e7315f51646a 100644
--- a/srcpkgs/bzflag/template
+++ b/srcpkgs/bzflag/template
@@ -12,3 +12,4 @@ homepage="https://www.bzflag.org"
 changelog="https://raw.githubusercontent.com/BZFlag-Dev/bzflag/2.4/ChangeLog"
 distfiles="https://download.bzflag.org/bzflag/source/${version}/bzflag-${version}.tar.bz2"
 checksum=9e64653302b657bd8b5f96fe1150a9ff80a1d53a6d7e8a35138c6b1b02006a4d
+patch_args=-Np0
diff --git a/srcpkgs/cantata/template b/srcpkgs/cantata/template
index 8ce1d756ace9..428ce3175cf6 100644
--- a/srcpkgs/cantata/template
+++ b/srcpkgs/cantata/template
@@ -17,3 +17,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/cdrummond/cantata"
 distfiles="https://github.com/CDrummond/cantata/releases/download/v${version}/${pkgname}-${version}.tar.bz2"
 checksum=3ed25d0c838720af7ed08b89a30f3e05d6952d40a5f520f29b3558b2eacdec82
+patch_args=-Np0
diff --git a/srcpkgs/cinnamon-session/template b/srcpkgs/cinnamon-session/template
index c27272b802a3..fa112215531a 100644
--- a/srcpkgs/cinnamon-session/template
+++ b/srcpkgs/cinnamon-session/template
@@ -17,3 +17,4 @@ license="GPL-2.0-or-later, LGPL-2.0-or-later"
 homepage="https://linuxmint-developer-guide.readthedocs.io/en/latest/cinnamon.html#cinnamon-session"
 distfiles="https://github.com/linuxmint/${pkgname}/archive/${version}.tar.gz"
 checksum=66301a1eb748f646c419ced76f3388d8d6af0436716c737842cd85f359bd38d4
+patch_args=-Np0
diff --git a/srcpkgs/clazy/template b/srcpkgs/clazy/template
index 2c958d5d481f..92023b704232 100644
--- a/srcpkgs/clazy/template
+++ b/srcpkgs/clazy/template
@@ -12,3 +12,4 @@ homepage="https://apps.kde.org/en/clazy"
 distfiles="${KDE_SITE}/clazy/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=4c6c2e473e6aa011cc5fab120ebcffec3fc11a9cc677e21ad8c3ea676eb076f8
 nocross="Clang cannot be installed as makedep"
+patch_args=-Np0
diff --git a/srcpkgs/curlftpfs/template b/srcpkgs/curlftpfs/template
index c1f06571aa24..aaabe2018457 100644
--- a/srcpkgs/curlftpfs/template
+++ b/srcpkgs/curlftpfs/template
@@ -11,3 +11,4 @@ homepage="http://curlftpfs.sourceforge.net/"
 license="GPL-2"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4eb44739c7078ba0edde177bdd266c4cfb7c621075f47f64c85a06b12b3c6958
+patch_args=-Np0
diff --git a/srcpkgs/cutecom/template b/srcpkgs/cutecom/template
index 4aad5728d348..e5cd27e3ea63 100644
--- a/srcpkgs/cutecom/template
+++ b/srcpkgs/cutecom/template
@@ -12,3 +12,4 @@ license="GPL-3.0-only"
 homepage="https://gitlab.com/cutecom/cutecom/"
 distfiles="https://gitlab.com/cutecom/cutecom/-/archive/v${version}/cutecom-v${version}.tar.gz"
 checksum=4b2591daa983b31716091bd1602988b5a06a19c1a3402150826fc36233edbedd
+patch_args=-Np0
diff --git a/srcpkgs/cvs/template b/srcpkgs/cvs/template
index c37384b54302..25d4446d64d7 100644
--- a/srcpkgs/cvs/template
+++ b/srcpkgs/cvs/template
@@ -14,3 +14,4 @@ homepage="http://www.nongnu.org/cvs/"
 license="GPL-1, LGPL-2"
 distfiles="http://ftp.gnu.org/non-gnu/cvs/source/feature/$version/cvs-$version.tar.bz2"
 checksum=78853613b9a6873a30e1cc2417f738c330e75f887afdaf7b3d0800cb19ca515e
+patch_args=-Np0
diff --git a/srcpkgs/darkice/template b/srcpkgs/darkice/template
index b61c6d8c7f8a..d6afbebc3446 100644
--- a/srcpkgs/darkice/template
+++ b/srcpkgs/darkice/template
@@ -21,3 +21,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.darkice.org"
 distfiles="${SOURCEFORGE_SITE}/project/darkice/darkice/${version}/darkice-${version}.tar.gz"
 checksum=2c0d0faaa627c0273b2ce8b38775a73ef97e34ef866862a398f660ad8f6e9de6
+patch_args=-Np0
diff --git a/srcpkgs/ddd/template b/srcpkgs/ddd/template
index 24f44a9abc23..71dc933f1045 100644
--- a/srcpkgs/ddd/template
+++ b/srcpkgs/ddd/template
@@ -10,3 +10,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/ddd"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=3ad6cd67d7f4b1d6b2d38537261564a0d26aaed077bf25c51efc1474d0e8b65c
+patch_args=-Np0
diff --git a/srcpkgs/dhewm3/template b/srcpkgs/dhewm3/template
index 5509900e8c0b..f2cfd2c0f79c 100644
--- a/srcpkgs/dhewm3/template
+++ b/srcpkgs/dhewm3/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://dhewm3.org/"
 distfiles="https://github.com/dhewm/dhewm3/releases/download/${version}/dhewm3-${version}-src.tar.xz"
 checksum=31671f35fb6f83272dfa2a27c0dad6183bc228f1f1a448ef925052cf4dcf4b68
+patch_args=-Np0
diff --git a/srcpkgs/dialogbox/template b/srcpkgs/dialogbox/template
index 31d985e61769..f213a4c2d3a0 100644
--- a/srcpkgs/dialogbox/template
+++ b/srcpkgs/dialogbox/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/martynets/dialogbox"
 distfiles="https://github.com/martynets/dialogbox/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=554e59712a616772cff5734206e2a223171ad57c0e922421d8383a763b11640e
+patch_args=-Np0
diff --git a/srcpkgs/dillo/template b/srcpkgs/dillo/template
index d2bdc4bf77e8..16a821062d9f 100644
--- a/srcpkgs/dillo/template
+++ b/srcpkgs/dillo/template
@@ -15,3 +15,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.dillo.org/download/"
 distfiles="http://www.dillo.org/download/${pkgname}-${version}.tar.bz2"
 checksum=db1be16c1c5842ebe07b419aa7c6ef11a45603a75df2877f99635f4f8345148b
+patch_args=-Np0
diff --git a/srcpkgs/dislocker/template b/srcpkgs/dislocker/template
index a5580034c6fd..97b42c35a35e 100644
--- a/srcpkgs/dislocker/template
+++ b/srcpkgs/dislocker/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Aorimn/dislocker"
 distfiles="https://github.com/Aorimn/${pkgname}/archive/v${version}.tar.gz"
 checksum=8d5275577c44f2bd87f6e05dd61971a71c0e56a9cbedf000bd38deadd8b6c1e6
+patch_args=-Np0
diff --git a/srcpkgs/dmg2img/template b/srcpkgs/dmg2img/template
index a14781b0c3b1..bfe2c851b263 100644
--- a/srcpkgs/dmg2img/template
+++ b/srcpkgs/dmg2img/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://vu1tur.eu.org/dmg2img"
 distfiles="http://vu1tur.eu.org/tools/dmg2img-${version}.tar.gz"
 checksum=02aea6d05c5b810074913b954296ddffaa43497ed720ac0a671da4791ec4d018
+patch_args=-Np0
diff --git a/srcpkgs/dvdbackup/template b/srcpkgs/dvdbackup/template
index 0d823b6f97ef..11d83f016517 100644
--- a/srcpkgs/dvdbackup/template
+++ b/srcpkgs/dvdbackup/template
@@ -10,3 +10,4 @@ license="GPL-3.0-or-later"
 homepage="http://dvdbackup.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/dvdbackup/dvdbackup-${version}.tar.xz"
 checksum=ef8c56fbb82b15b7eef00d2d3118c8253f9770009ed7bb2a5d4849acf88183e6
+patch_args=-Np0
diff --git a/srcpkgs/edb-debugger/template b/srcpkgs/edb-debugger/template
index e2d24e173f10..1f78ae3755d5 100644
--- a/srcpkgs/edb-debugger/template
+++ b/srcpkgs/edb-debugger/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/eteran/edb-debugger"
 distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tgz"
 checksum=86df4a0940a39c1480a6fc789f167f94e87a7a330f2d8163fe871f42c754afe8
+patch_args=-Np0
diff --git a/srcpkgs/endless-sky/template b/srcpkgs/endless-sky/template
index 00583361ce76..1cd6906a89b3 100644
--- a/srcpkgs/endless-sky/template
+++ b/srcpkgs/endless-sky/template
@@ -12,3 +12,4 @@ homepage="http://endless-sky.github.io/"
 distfiles="https://github.com/endless-sky/endless-sky/archive/v${version}.tar.gz"
 checksum=001c8a28bbec7491f2725fbaa52b1ade813d33cec2d16521f241c80d04685b9d
 replaces="endless-sky-data>=0"
+patch_args=-Np0
diff --git a/srcpkgs/eolie/template b/srcpkgs/eolie/template
index 4249e3426296..8dfb6676db8e 100644
--- a/srcpkgs/eolie/template
+++ b/srcpkgs/eolie/template
@@ -15,3 +15,4 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Eolie"
 distfiles="https://gitlab.gnome.org/World/eolie/uploads/${_eolie_hash}/eolie-${version}.tar.xz"
 checksum=9da359895306cf5929a01acb60d1506afb0a04ddbbd0d80ae1d0ba831e34671b
+patch_args=-Np0
diff --git a/srcpkgs/epson-inkjet-printer-escpr/template b/srcpkgs/epson-inkjet-printer-escpr/template
index dda44942fff6..fb4053ab40a7 100644
--- a/srcpkgs/epson-inkjet-printer-escpr/template
+++ b/srcpkgs/epson-inkjet-printer-escpr/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
 distfiles="https://download3.ebz.epson.net/dsc/f/03/00/10/49/18/f3016be6120a7271a6d9cb64872f817bce1920b8/${pkgname}-${version}-1lsb3.2.tar.gz"
 checksum=8d964368a1395a8902b8637e3dc176d6793f0afdfe3f21e95509f29894700d4e
+patch_args=-Np0
diff --git a/srcpkgs/exfat-utils/template b/srcpkgs/exfat-utils/template
index 6c62704fa511..6ca86c434c4c 100644
--- a/srcpkgs/exfat-utils/template
+++ b/srcpkgs/exfat-utils/template
@@ -9,3 +9,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/relan/exfat"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=dfebd07a7b907e2d603d3a9626e6440bd43ec6c4e8c07ccfc57ce9502b724835
+patch_args=-Np0
diff --git a/srcpkgs/extundelete/template b/srcpkgs/extundelete/template
index 3ae6119c38dc..87b9c1fdf9b7 100644
--- a/srcpkgs/extundelete/template
+++ b/srcpkgs/extundelete/template
@@ -10,3 +10,4 @@ license="GPL-2.0-only"
 homepage="http://extundelete.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=a1f9dd61247056d36401ce5d6785e74d08a184340eebd3865c345ddaa93f19f4
+patch_args=-Np0
diff --git a/srcpkgs/fastjar/template b/srcpkgs/fastjar/template
index 6eab069f60ef..f3a6c5fb87c0 100644
--- a/srcpkgs/fastjar/template
+++ b/srcpkgs/fastjar/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://savannah.nongnu.org/projects/fastjar"
 distfiles="http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=f156abc5de8658f22ee8f08d7a72c88f9409ebd8c7933e9466b0842afeb2f145
+patch_args=-Np0
diff --git a/srcpkgs/fceux/template b/srcpkgs/fceux/template
index 5ecaa9c7e08f..10c3b17d433b 100644
--- a/srcpkgs/fceux/template
+++ b/srcpkgs/fceux/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://fceux.com/web/home.html"
 distfiles="https://github.com/TASVideos/fceux/archive/fceux-${version}.tar.gz"
 checksum=0d3b02b3f15032f7675acb95423fd81fae286615313dfbc58cdd4de2bce17f6e
+patch_args=-Np0
diff --git a/srcpkgs/fifengine/template b/srcpkgs/fifengine/template
index 6a2cc79a4487..d3bf756eabe7 100644
--- a/srcpkgs/fifengine/template
+++ b/srcpkgs/fifengine/template
@@ -14,3 +14,4 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/fifengine/fifengine"
 distfiles="https://github.com/fifengine/fifengine/archive/${version}.tar.gz"
 checksum=e882b55befa36ae2f1a89ada16af0f814a1b78f7cbe6021ec5b1605604cf8ff8
+patch_args=-Np0
diff --git a/srcpkgs/filelight/template b/srcpkgs/filelight/template
index 35cd560b1f96..197232071e80 100644
--- a/srcpkgs/filelight/template
+++ b/srcpkgs/filelight/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://utils.kde.org/projects/filelight/"
 distfiles="${KDE_SITE}/release-service/${version}/src/filelight-${version}.tar.xz"
 checksum=618f91b9da8eebbb6b96e3d74d9e89a7c088ca08b1682ff6c4e65b53a3da5d20
+patch_args=-Np0
diff --git a/srcpkgs/fuse-emulator/template b/srcpkgs/fuse-emulator/template
index e1159f258700..957c8796eb0e 100644
--- a/srcpkgs/fuse-emulator/template
+++ b/srcpkgs/fuse-emulator/template
@@ -14,3 +14,4 @@ license="GPL-2.0-or-later"
 homepage="http://fuse-emulator.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/fuse-emulator/fuse-${version}.tar.gz"
 checksum=f0e2583f2642cdc3b2a737910d24e289d46e4f7e151805e3b0827024b2b45e4d
+patch_args=-Np0
diff --git a/srcpkgs/gcal/template b/srcpkgs/gcal/template
index 3c535d1c099c..7107cee8ef52 100644
--- a/srcpkgs/gcal/template
+++ b/srcpkgs/gcal/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/gcal/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=91b56c40b93eee9bda27ec63e95a6316d848e3ee047b5880ed71e5e8e60f61ab
+patch_args=-Np0
diff --git a/srcpkgs/gftp/template b/srcpkgs/gftp/template
index 0820b29da2d3..30a3556d628e 100644
--- a/srcpkgs/gftp/template
+++ b/srcpkgs/gftp/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.gftp.org"
 distfiles="https://sources.voidlinux.org/gftp-${version}/gftp-${version}.tar.bz2"
 checksum=5306a46be96d6f4d23906cb1836fb3d732039621a6c7fcfa921acc21ac110bfd
+patch_args=-Np0
diff --git a/srcpkgs/gfuzz/template b/srcpkgs/gfuzz/template
index 3925f06c9500..31faee7c4a90 100644
--- a/srcpkgs/gfuzz/template
+++ b/srcpkgs/gfuzz/template
@@ -12,3 +12,4 @@ license="Apache-2.0"
 homepage="https://github.com/braaaax/gfz"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=8b6a3df0c385fe993ead673df53daa290943220f2cde73e6b1c706ef94aa4e5f
+patch_args=-Np0
diff --git a/srcpkgs/git-mediate/template b/srcpkgs/git-mediate/template
index aa3979d3435a..7923a1743d95 100644
--- a/srcpkgs/git-mediate/template
+++ b/srcpkgs/git-mediate/template
@@ -13,3 +13,4 @@ distfiles="https://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-
 checksum=81220f7e20a3913bc147b69681666ad22e60e5b759a1becad78ee28dcad8013d
 nocross=yes
 nopie_files="/usr/bin/git-mediate"
+patch_args=-Np0
diff --git a/srcpkgs/gltron/template b/srcpkgs/gltron/template
index 1239a1742e5d..4aad84aeb45e 100644
--- a/srcpkgs/gltron/template
+++ b/srcpkgs/gltron/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://gltron.org/"
 distfiles="${SOURCEFORGE_SITE}/gltron/gltron-${version}-source.tar.gz"
 checksum="e0c8ebb41a18a1f8d7302a9c2cb466f5b1dd63e9a9966c769075e6b6bdad8bb0"
+patch_args=-Np0
diff --git a/srcpkgs/gnome-recipes/template b/srcpkgs/gnome-recipes/template
index 30f81ab265b6..847e736a4844 100644
--- a/srcpkgs/gnome-recipes/template
+++ b/srcpkgs/gnome-recipes/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Recipes"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=1be9d2fcb7404a97aa029d2409880643f15071c37039247a6a4320e7478cd5fb
+patch_args=-Np0
diff --git a/srcpkgs/gnupod/template b/srcpkgs/gnupod/template
index 09c35988a9d8..6515b87aa61b 100644
--- a/srcpkgs/gnupod/template
+++ b/srcpkgs/gnupod/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/gnupod/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tgz"
 checksum=bd566295a2e14352e6d05f5c816cab36b0e80d3ab36d29c4bbb45c581d3f3c31
+patch_args=-Np0
diff --git a/srcpkgs/gupnp-tools/template b/srcpkgs/gupnp-tools/template
index 09507922f46c..6c02534f0453 100644
--- a/srcpkgs/gupnp-tools/template
+++ b/srcpkgs/gupnp-tools/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://gupnp.org/"
 distfiles="${GNOME_SITE}/gupnp-tools/${version%.*}/gupnp-tools-${version}.tar.xz"
 checksum=41da7ff5ba8e2425adcb64ca5e04c81f57ca20ec6fdb84923939fdad42c6a18d
+patch_args=-Np0
diff --git a/srcpkgs/helm/template b/srcpkgs/helm/template
index e7d7b59c10b2..57ad3b36321a 100644
--- a/srcpkgs/helm/template
+++ b/srcpkgs/helm/template
@@ -13,3 +13,4 @@ homepage="http://tytel.org/helm"
 distfiles="https://github.com/mtytel/helm/archive/v${version}.tar.gz"
 checksum=4004c11fd1d773cc2a12adb5336873bc86c5ecbd370b8da2820fed6ef5ec58ad
 nocross="./lv2_ttl_generator: ./lv2_ttl_generator: cannot execute binary file"
+patch_args=-Np0
diff --git a/srcpkgs/html-xml-utils/template b/srcpkgs/html-xml-utils/template
index a2f0a8d6f528..ab69c1e16d33 100644
--- a/srcpkgs/html-xml-utils/template
+++ b/srcpkgs/html-xml-utils/template
@@ -10,3 +10,4 @@ license="W3C"
 homepage="https://www.w3.org/Tools/HTML-XML-utils/README"
 distfiles="https://www.w3.org/Tools/HTML-XML-utils/${pkgname}-${version}.tar.gz"
 checksum=d86ac96ea660316bef814c17b2a96d54cdf91c69e59614459865c2bfdaee433f
+patch_args=-Np0
diff --git a/srcpkgs/hxtools/template b/srcpkgs/hxtools/template
index 87be5bb16f1a..33a37ff0b971 100644
--- a/srcpkgs/hxtools/template
+++ b/srcpkgs/hxtools/template
@@ -12,3 +12,4 @@ homepage="http://inai.de/projects/hxtools"
 distfiles="http://inai.de/files/hxtools/hxtools-${version}.tar.xz"
 checksum=45ceee8db0b9b926712b336ebb91c572f2247cec64862f6171fc416db4e9e12f
 conflicts="bsd-games>=0"
+patch_args=-Np0
diff --git a/srcpkgs/icecast/template b/srcpkgs/icecast/template
index 920d6ffe9d31..b3fed3c37602 100644
--- a/srcpkgs/icecast/template
+++ b/srcpkgs/icecast/template
@@ -13,3 +13,4 @@ homepage="http://www.icecast.org/"
 distfiles="http://downloads.xiph.org/releases/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=49b5979f9f614140b6a38046154203ee28218d8fc549888596a683ad604e4d44
 conf_files="/etc/icecast.xml"
+patch_args=-Np0
diff --git a/srcpkgs/imagewriter/template b/srcpkgs/imagewriter/template
index cd4d3c9af695..197bc5476340 100644
--- a/srcpkgs/imagewriter/template
+++ b/srcpkgs/imagewriter/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/openSUSE/imagewriter"
 distfiles="https://github.com/openSUSE/imagewriter/archive/${_commit}.tar.gz"
 checksum=7761ee45b16b5841c6b62b091c7f9d0b8c64b14b79d77e9909ca813e1dc9885d
+patch_args=-Np0
diff --git a/srcpkgs/img2pdf/template b/srcpkgs/img2pdf/template
index 206bf3cbccc6..9b7cae086496 100644
--- a/srcpkgs/img2pdf/template
+++ b/srcpkgs/img2pdf/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.mister-muffin.de/josch/img2pdf"
 distfiles="${PYPI_SITE}/i/img2pdf/img2pdf-${version}.tar.gz"
 checksum=38a1229ca84b211d7782d1d65ad7251a9781bf24f6f6497c738c755fcfed5552
+patch_args=-Np0
diff --git a/srcpkgs/intel-undervolt/template b/srcpkgs/intel-undervolt/template
index d631eb2222a8..e9d1bf651d07 100644
--- a/srcpkgs/intel-undervolt/template
+++ b/srcpkgs/intel-undervolt/template
@@ -10,3 +10,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/kitsunyan/intel-undervolt"
 distfiles="https://github.com/kitsunyan/intel-undervolt/archive/${version}.tar.gz"
 checksum=29a7ebaee4830d65d0b5cefa6d497887d4f23f34659876dfe944f3a020cf33ff
+patch_args=-Np0
diff --git a/srcpkgs/intltool/template b/srcpkgs/intltool/template
index cfba730f2e67..b3b26d28aded 100644
--- a/srcpkgs/intltool/template
+++ b/srcpkgs/intltool/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://edge.launchpad.net/intltool"
 distfiles="http://launchpad.net/intltool/trunk/$version/+download/$pkgname-$version.tar.gz"
 checksum=67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd
+patch_args=-Np0
diff --git a/srcpkgs/io.elementary.photos/template b/srcpkgs/io.elementary.photos/template
index 81c1734164ba..a07e9b5a4912 100644
--- a/srcpkgs/io.elementary.photos/template
+++ b/srcpkgs/io.elementary.photos/template
@@ -20,3 +20,4 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/elementary/photos"
 distfiles="https://github.com/elementary/photos/archive/${version}.tar.gz"
 checksum=9f6ad409d053e3239b9ec7fc59429afe9ce89e40878697a73c2c3f215556a074
+patch_args=-Np0
diff --git a/srcpkgs/ipv6calc/template b/srcpkgs/ipv6calc/template
index fdeb909b06e9..7873da6a9847 100644
--- a/srcpkgs/ipv6calc/template
+++ b/srcpkgs/ipv6calc/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://www.deepspace6.net/projects/ipv6calc.html"
 distfiles="https://github.com/pbiering/ipv6calc/archive/${version}.tar.gz"
 checksum=db690da55a31db063f87af7731cf5c913d8622057fc6c9f66f879725b1540496
+patch_args=-Np0
diff --git a/srcpkgs/itstool/template b/srcpkgs/itstool/template
index 5618fa120fff..d83b9b2fe397 100644
--- a/srcpkgs/itstool/template
+++ b/srcpkgs/itstool/template
@@ -13,3 +13,4 @@ license="GPL-3.0-or-later"
 homepage="http://itstool.org/"
 distfiles="http://files.itstool.org/itstool/${pkgname}-${version}.tar.bz2"
 checksum=6233cc22726a9a5a83664bf67d1af79549a298c23185d926c3677afa917b92a9
+patch_args=-Np0
diff --git a/srcpkgs/iwgtk/template b/srcpkgs/iwgtk/template
index a9b23b80f0ca..a4461b5602a9 100644
--- a/srcpkgs/iwgtk/template
+++ b/srcpkgs/iwgtk/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/J-Lentz/iwgtk/"
 distfiles="https://github.com/J-Lentz/iwgtk/archive/refs/tags/v${version}.tar.gz"
 checksum=71bb85546a55bf710052d4947f6be5f5a01033d04d2d14a85a7e734dd570657d
+patch_args=-Np0
diff --git a/srcpkgs/jigdo/template b/srcpkgs/jigdo/template
index 16edbc817c8a..aff25631a6ff 100644
--- a/srcpkgs/jigdo/template
+++ b/srcpkgs/jigdo/template
@@ -12,3 +12,4 @@ license="GPL-2"
 homepage="http://atterer.org/jigdo/"
 distfiles="http://atterer.org/sites/atterer/files/2009-08/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum="875c069abad67ce67d032a9479228acdb37c8162236c0e768369505f264827f0"
+patch_args=-Np0
diff --git a/srcpkgs/k3b/template b/srcpkgs/k3b/template
index f02f12356d52..3ff3d73d1304 100644
--- a/srcpkgs/k3b/template
+++ b/srcpkgs/k3b/template
@@ -16,3 +16,4 @@ license="GPL-2.0-or-later"
 homepage="https://kde.org/applications/en/multimedia/org.kde.k3b"
 distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=986c5073c944dbda5b49e3c1a2fbf340fb1c6af941e80b6a0020fadd1be9034b
+patch_args=-Np0
diff --git a/srcpkgs/kcm-wacomtablet/template b/srcpkgs/kcm-wacomtablet/template
index 0e1234c6218b..926fc17457fe 100644
--- a/srcpkgs/kcm-wacomtablet/template
+++ b/srcpkgs/kcm-wacomtablet/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://invent.kde.org/system/wacomtablet"
 distfiles="${KDE_SITE}/wacomtablet/${version}/wacomtablet-${version}.tar.xz"
 checksum=c80ce63a41f6fcbb50ac4c2130ed2f8273c4b744e62e33d4b714bf83e8e5f7a4
+patch_args=-Np0
diff --git a/srcpkgs/kcov/template b/srcpkgs/kcov/template
index cb361bd65b1a..038549b26466 100644
--- a/srcpkgs/kcov/template
+++ b/srcpkgs/kcov/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://simonkagstrom.github.io/kcov/index.html"
 distfiles="https://github.com/SimonKagstrom/kcov/archive/v${version}.tar.gz"
 checksum=b37af60d81a9b1e3b140f9473bdcb7975af12040feb24cc666f9bb2bb0be68b4
+patch_args=-Np0
diff --git a/srcpkgs/keditbookmarks/template b/srcpkgs/keditbookmarks/template
index 51fe33866304..efc8fcb830e9 100644
--- a/srcpkgs/keditbookmarks/template
+++ b/srcpkgs/keditbookmarks/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later, GFDL-1.2-only"
 homepage="https://www.kde.org/"
 distfiles="${KDE_SITE}/release-service/${version}/src/keditbookmarks-${version}.tar.xz"
 checksum=a57eec8ff05b6a6fea5367b489f67d8de7483aaede4c39692c347da15ba9eec3
+patch_args=-Np0
diff --git a/srcpkgs/kig/template b/srcpkgs/kig/template
index 1431f85bde84..82957d1c25c8 100644
--- a/srcpkgs/kig/template
+++ b/srcpkgs/kig/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://www.kde.org/applications/education/kig/"
 distfiles="${KDE_SITE}/release-service/${version}/src/kig-${version}.tar.xz"
 checksum=5939d298b40d265f1ddef4bd81540b1a26204d858f85db5847cc102366a5ce58
+patch_args=-Np0
diff --git a/srcpkgs/krusader/template b/srcpkgs/krusader/template
index dbc7743a0dd8..93f8662bf8d5 100644
--- a/srcpkgs/krusader/template
+++ b/srcpkgs/krusader/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.krusader.org/"
 distfiles="${KDE_SITE}/krusader/${version}/krusader-${version}.tar.xz"
 checksum=41a39a43b3c42dd1d1ecaea86df30caff6a061fecc1d66f60859b2a3ca976109
+patch_args=-Np0
diff --git a/srcpkgs/ksysguard/template b/srcpkgs/ksysguard/template
index c276f9d7bbbc..23288bfb15fe 100644
--- a/srcpkgs/ksysguard/template
+++ b/srcpkgs/ksysguard/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later, GFDL-1.2-only"
 homepage="https://invent.kde.org/plasma/ksysguard"
 distfiles="${KDE_SITE}/ksysguard/${version}/${pkgname}-${version}.tar.xz"
 checksum=0f9c624e5fbb2aee906d8d9563c5a7eb09eaf38bc8e4382c072f9e6d8854622d
+patch_args=-Np0
diff --git a/srcpkgs/lbreakouthd/template b/srcpkgs/lbreakouthd/template
index 1f9accfb4ab9..c0025345fa9b 100644
--- a/srcpkgs/lbreakouthd/template
+++ b/srcpkgs/lbreakouthd/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://lgames.sourceforge.net/LBreakoutHD/"
 distfiles="${SOURCEFORGE_SITE}/lgames/$pkgname-$version.tar.gz"
 checksum=df5f8ad88bcf20bd34e1dfd77697b49a168d83ad43d8fdf5a3fee1fe272e15bd
+patch_args=-Np0
diff --git a/srcpkgs/lbzip2/template b/srcpkgs/lbzip2/template
index c6973fe171b5..3ac6ff9ec10a 100644
--- a/srcpkgs/lbzip2/template
+++ b/srcpkgs/lbzip2/template
@@ -9,3 +9,4 @@ license="GPL-3.0-or-later"
 homepage="http://lbzip2.org/"
 distfiles="http://archive.lbzip2.org/lbzip2-${version}.tar.gz"
 checksum=46c75ee93cc95eedc6005625442b2b8e59a2bef3ba80987d0491f055185650e9
+patch_args=-Np0
diff --git a/srcpkgs/lcov/template b/srcpkgs/lcov/template
index 2d23c19f0cc3..787296423df5 100644
--- a/srcpkgs/lcov/template
+++ b/srcpkgs/lcov/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://ltp.sourceforge.net/coverage/lcov.php"
 distfiles="https://github.com/linux-test-project/${pkgname}/archive/v${version}.tar.gz"
 checksum=d88b0718f59815862785ac379aed56974b9edd8037567347ae70081cd4a3542a
+patch_args=-Np0
diff --git a/srcpkgs/libeatmydata/template b/srcpkgs/libeatmydata/template
index 3334ca236d94..7470acc97fdd 100644
--- a/srcpkgs/libeatmydata/template
+++ b/srcpkgs/libeatmydata/template
@@ -9,3 +9,4 @@ license="GPL-3.0-only"
 homepage="http://www.flamingspork.com/projects/libeatmydata/"
 distfiles="http://www.flamingspork.com/projects/libeatmydata/${pkgname}-${version}.tar.gz"
 checksum=bdd2d068b6b27cf47cd22aa4c5da43b3d4a05944cfe0ad1b0d843d360ed3a8dd
+patch_args=-Np0
diff --git a/srcpkgs/libva-vdpau-driver/template b/srcpkgs/libva-vdpau-driver/template
index 391ba5296f4e..82104939cfdf 100644
--- a/srcpkgs/libva-vdpau-driver/template
+++ b/srcpkgs/libva-vdpau-driver/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="http://freedesktop.org/wiki/Software/vaapi"
 distfiles="${FREEDESKTOP_SITE}/vaapi/releases/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=155c1982f0ac3f5435ba20b221bcaa11be212c37db548cd1f2a030ffa17e9bb9
+patch_args=-Np0
diff --git a/srcpkgs/libwm/template b/srcpkgs/libwm/template
index df29afde53aa..e88e7eb4a5ed 100644
--- a/srcpkgs/libwm/template
+++ b/srcpkgs/libwm/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/wmutils/libwm"
 distfiles="https://github.com/wmutils/libwm/archive/v${version}.tar.gz"
 checksum=db80ef40d6b105f046c1d0bc138470b3e23e7bd1000afc3163d9e62f403f0f6a
+patch_args=-Np0
diff --git a/srcpkgs/lltag/template b/srcpkgs/lltag/template
index c540ae3ddef8..565369c9a986 100644
--- a/srcpkgs/lltag/template
+++ b/srcpkgs/lltag/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="http://bgoglin.free.fr/lltag/"
 distfiles="https://github.com/bgoglin/lltag/archive/lltag-${version}.tar.gz"
 checksum=e24c88866d89f90c11bcf89d9d1b4e8af78f486f1f7454a28210b10b8af17252
+patch_args=-Np0
diff --git a/srcpkgs/lrzsz/template b/srcpkgs/lrzsz/template
index e90aaeba3a21..98b4e7fb1c30 100644
--- a/srcpkgs/lrzsz/template
+++ b/srcpkgs/lrzsz/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://ohse.de/uwe/software/lrzsz.html"
 distfiles="http://ohse.de/uwe/releases/$pkgname-$version.tar.gz"
 checksum=c28b36b14bddb014d9e9c97c52459852f97bd405f89113f30bee45ed92728ff1
+patch_args=-Np0
diff --git a/srcpkgs/macchanger/template b/srcpkgs/macchanger/template
index 9af205a0d0f4..3d4402e208bf 100644
--- a/srcpkgs/macchanger/template
+++ b/srcpkgs/macchanger/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/macchanger"
 distfiles="https://github.com/alobbs/macchanger/archive/${version}.tar.gz"
 checksum=1d75c07a626321e07b48a5fe2dbefbdb98c3038bb8230923ba8d32bda5726e4f
+patch_args=-Np0
diff --git a/srcpkgs/mate-power-manager/template b/srcpkgs/mate-power-manager/template
index 4f2f7d77c8f1..c1afcc458a43 100644
--- a/srcpkgs/mate-power-manager/template
+++ b/srcpkgs/mate-power-manager/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=d24b9fce23b086817d5494f7e65e58f18367af6eb5d0d4ade45de5396e20d13a
+patch_args=-Np0
diff --git a/srcpkgs/mcomix/template b/srcpkgs/mcomix/template
index c413e5e00288..5557136c1ace 100644
--- a/srcpkgs/mcomix/template
+++ b/srcpkgs/mcomix/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="http://sourceforge.net/projects/mcomix/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/MComix-${version}/${pkgname}-${version}.tar.bz2"
 checksum=7e43159dc585bc9bc31970a44bd2b4e42c303660c4c8cf7f0eda413a6f72fa3b
+patch_args=-Np0
diff --git a/srcpkgs/mftrace/template b/srcpkgs/mftrace/template
index 10f2c1ecfdc1..09ee52a11a3e 100644
--- a/srcpkgs/mftrace/template
+++ b/srcpkgs/mftrace/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://lilypond.org/mftrace"
 distfiles="http://lilypond.org/downloads/sources/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=626b7a9945a768c086195ba392632a68d6af5ea24ef525dcd0a4a8b199ea5f6f
+patch_args=-Np0
diff --git a/srcpkgs/nm-tray/template b/srcpkgs/nm-tray/template
index b2a3e85cf57e..2acc4a68f434 100644
--- a/srcpkgs/nm-tray/template
+++ b/srcpkgs/nm-tray/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/palinek/nm-tray"
 distfiles="https://github.com/palinek/nm-tray/archive/${version}.tar.gz"
 checksum=1611c053582189091efa74c2f26277afc872a57cfd4ec9e54463f68c25ad284b
+patch_args=-Np0
diff --git a/srcpkgs/nootka/template b/srcpkgs/nootka/template
index 8726ab984e8c..3ee39181a314 100644
--- a/srcpkgs/nootka/template
+++ b/srcpkgs/nootka/template
@@ -12,3 +12,4 @@ license="GPL-3.0-only"
 homepage="https://nootka.sourceforge.io"
 distfiles="${SOURCEFORGE_SITE}/nootka/Nootka-${version}/nootka-${version}-source.tar.bz2"
 checksum=1d85a2970ddb51117b0a98df4d84ca9e9498fbd1d2b1c55bfa62931333a73cf9
+patch_args=-Np0
diff --git a/srcpkgs/olive/template b/srcpkgs/olive/template
index 11468a8b04cf..c001284d41d0 100644
--- a/srcpkgs/olive/template
+++ b/srcpkgs/olive/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://www.olivevideoeditor.org"
 distfiles="https://github.com/olive-editor/olive/archive/${version}.tar.gz"
 checksum=cb9a5b109e67a47f03448633cbc7a257aa8e6c3c76a59c1fada77fd3d97875c1
+patch_args=-Np0
diff --git a/srcpkgs/pam_rundir/template b/srcpkgs/pam_rundir/template
index f08238ddb5fd..578d660bf4c1 100644
--- a/srcpkgs/pam_rundir/template
+++ b/srcpkgs/pam_rundir/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://jjacky.com/pam_rundir"
 distfiles="https://jjacky.com/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c779b699ed23777a3bdba87b7f67ed395fe957f3c96138faee45f87a27bcc020
+patch_args=-Np0
diff --git a/srcpkgs/pdfgrep/template b/srcpkgs/pdfgrep/template
index 20fe67c72035..b7270c1af890 100644
--- a/srcpkgs/pdfgrep/template
+++ b/srcpkgs/pdfgrep/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://pdfgrep.org"
 distfiles="https://pdfgrep.org/download/pdfgrep-${version}.tar.gz"
 checksum=0ef3dca1d749323f08112ffe68e6f4eb7bc25f56f90a2e933db477261b082aba
+patch_args=-Np0
diff --git a/srcpkgs/pdfsandwich/template b/srcpkgs/pdfsandwich/template
index 67c1a011ba78..37d4290fef56 100644
--- a/srcpkgs/pdfsandwich/template
+++ b/srcpkgs/pdfsandwich/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://www.tobias-elze.de/pdfsandwich/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=9795ffea84b9b6b501f38d49a4620cf0469ddf15aac31bac6dbdc9ec1716fa39
+patch_args=-Np0
diff --git a/srcpkgs/pekwm/template b/srcpkgs/pekwm/template
index 367691f8cb7d..908b9f20e31c 100644
--- a/srcpkgs/pekwm/template
+++ b/srcpkgs/pekwm/template
@@ -15,3 +15,4 @@ homepage="https://www.pekwm.se/"
 distfiles="https://github.com/pekdon/pekwm/archive/release-${version}.tar.gz"
 checksum=e04e14ab7b212ec7c3a36e4c24b6228383df4ca3768f9fea7ba22dcd107d5d5a
 conf_files="/etc/pekwm/*"
+patch_args=-Np0
diff --git a/srcpkgs/perl-Authen-SASL/template b/srcpkgs/perl-Authen-SASL/template
index c9aea8eb9587..66b079daaa30 100644
--- a/srcpkgs/perl-Authen-SASL/template
+++ b/srcpkgs/perl-Authen-SASL/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/Authen-SASL"
 distfiles="${CPAN_SITE}/Authen/${pkgname/perl-/}-${version}.tar.gz"
 checksum=6614fa7518f094f853741b63c73f3627168c5d3aca89b1d02b1016dc32854e09
+patch_args=-Np0
diff --git a/srcpkgs/perl-Crypt-DH/template b/srcpkgs/perl-Crypt-DH/template
index 95fe7e66836a..d4fc6f20a4c5 100644
--- a/srcpkgs/perl-Crypt-DH/template
+++ b/srcpkgs/perl-Crypt-DH/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/Crypt-DH"
 distfiles="${CPAN_SITE}/Crypt/Crypt-DH-${version}.tar.gz"
 checksum=c88cf3423b01e6782e8986d7fe5304436ab84b0925c4498c6fdfa17ef9a37f5f
+patch_args=-Np0
diff --git a/srcpkgs/perl-Crypt-Rijndael/template b/srcpkgs/perl-Crypt-Rijndael/template
index 5154d035b35c..a2c97d0d4ce9 100644
--- a/srcpkgs/perl-Crypt-Rijndael/template
+++ b/srcpkgs/perl-Crypt-Rijndael/template
@@ -13,3 +13,4 @@ license="LGPL-2.0-or-later"
 homepage="https://metacpan.org/release/Crypt-Rijndael"
 distfiles="${CPAN_SITE}/Crypt/Crypt-Rijndael-${version}.tar.gz"
 checksum=6451c3dffe8703523be2bb08d1adca97e77df2a8a4dd46944d18a99330b7850e
+patch_args=-Np0
diff --git a/srcpkgs/perl-Fuse/template b/srcpkgs/perl-Fuse/template
index 9793fbb001fb..3fb06c90e33b 100644
--- a/srcpkgs/perl-Fuse/template
+++ b/srcpkgs/perl-Fuse/template
@@ -13,3 +13,4 @@ license="LGPL-2.1-only"
 homepage="https://metacpan.org/release/Fuse"
 distfiles="${CPAN_SITE}/Fuse/Fuse-$version.tar.gz"
 checksum=30a939fe5816b00ba9cabb6cd811f894e6a74361ce29d786ae1811b0021d7aa1
+patch_args=-Np0
diff --git a/srcpkgs/perl-OpenGL/template b/srcpkgs/perl-OpenGL/template
index 31c5362852db..3628d85f23e0 100644
--- a/srcpkgs/perl-OpenGL/template
+++ b/srcpkgs/perl-OpenGL/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/OpenGL"
 distfiles="${CPAN_SITE}/OpenGL/${pkgname#perl-}-${version}.tar.gz"
 checksum=b20e2af4404b4901ab35bba6ad5e3a8aa60bff72413c99288f01018c4cf874e0
+patch_args=-Np0
diff --git a/srcpkgs/perl-XML-LibXSLT/template b/srcpkgs/perl-XML-LibXSLT/template
index 24fa3f44b1b5..2b6eecc07722 100644
--- a/srcpkgs/perl-XML-LibXSLT/template
+++ b/srcpkgs/perl-XML-LibXSLT/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/XML-LibXSLT/"
 distfiles="${CPAN_SITE}/XML/${pkgname/perl-/}-${version}.tar.gz"
 checksum=127e17a877fb61e47b9e8b87bf8daad31339a62a00121f9751d522b438b0f7f0
+patch_args=-Np0
diff --git a/srcpkgs/perl-XML-SAX/template b/srcpkgs/perl-XML-SAX/template
index d72f1eac7e8f..445c4c6e20ff 100644
--- a/srcpkgs/perl-XML-SAX/template
+++ b/srcpkgs/perl-XML-SAX/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/XML-SAX"
 distfiles="${CPAN_SITE}/XML/XML-SAX-${version}.tar.gz"
 checksum=4506c387043aa6a77b455f00f57409f3720aa7e553495ab2535263b4ed1ea12a
+patch_args=-Np0
diff --git a/srcpkgs/pidgin-gpg/template b/srcpkgs/pidgin-gpg/template
index 2442f04ea12f..b67e21ce24f0 100644
--- a/srcpkgs/pidgin-gpg/template
+++ b/srcpkgs/pidgin-gpg/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://github.com/segler-alex/Pidgin-GPG"
 distfiles="http://github.com/downloads/segler-alex/Pidgin-GPG/${pkgname}-${version}.tar.gz"
 checksum=736681cb25da31eb8ced96055d4150d649fe6ef6e523b6f65846c3446ac09a96
+patch_args=-Np0
diff --git a/srcpkgs/pidgin-sipe/template b/srcpkgs/pidgin-sipe/template
index 9ea248618f43..d9bead87f864 100644
--- a/srcpkgs/pidgin-sipe/template
+++ b/srcpkgs/pidgin-sipe/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="http://sipe.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/sipe/sipe/${pkgname}-${version}.tar.xz"
 checksum=738b121b11f2b3f1744150c00cb381222eb6cf67161a7742797eb4f03e64a2ba
+patch_args=-Np0
diff --git a/srcpkgs/plasma-desktop/template b/srcpkgs/plasma-desktop/template
index 4ec04abb501c..eeaf614bca95 100644
--- a/srcpkgs/plasma-desktop/template
+++ b/srcpkgs/plasma-desktop/template
@@ -21,3 +21,4 @@ distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=9be7d61a042b5d74c1a65ecc8101c81390d45c2fec766b5115d5924b5dac0972
 replaces="user-manager>=0"
 python_version=3
+patch_args=-Np0
diff --git a/srcpkgs/pokoy/template b/srcpkgs/pokoy/template
index 490067f7d9ff..f66ffc35c3fd 100644
--- a/srcpkgs/pokoy/template
+++ b/srcpkgs/pokoy/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://github.com/ttygde/pokoy"
 distfiles="https://github.com/ttygde/pokoy/archive/v${version}.tar.gz"
 checksum=ae3ee5935e503d1f48f7fc8e4df2071e9d4586a52dfe778ef643deb28ca6a22f
+patch_args=-Np0
diff --git a/srcpkgs/polkit-kde-agent/template b/srcpkgs/polkit-kde-agent/template
index a9182b185f1a..2d383314caa9 100644
--- a/srcpkgs/polkit-kde-agent/template
+++ b/srcpkgs/polkit-kde-agent/template
@@ -14,3 +14,4 @@ license="GPL-2.0-or-later"
 homepage="https://commits.kde.org/polkit-kde-agent"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-1-${version}.tar.xz"
 checksum=de9a6f1bdf434d013a8d6f0c1498257bc4a48349e652375b4dd036eb161214ee
+patch_args=-Np0
diff --git a/srcpkgs/posixovl/template b/srcpkgs/posixovl/template
index 1146191fcf82..221b61c832b3 100644
--- a/srcpkgs/posixovl/template
+++ b/srcpkgs/posixovl/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/posixovl/"
 distfiles="${SOURCEFORGE_SITE}/posixovl/files/${pkgname}-${version}.tar.xz"
 checksum=a827798b02c0f27b37d8a10502e76c21adac43b887a49e7234e8d27668f62e72
+patch_args=-Np0
diff --git a/srcpkgs/powertop/template b/srcpkgs/powertop/template
index d0841935e7f4..2c9c25319c65 100644
--- a/srcpkgs/powertop/template
+++ b/srcpkgs/powertop/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://01.org/powertop/"
 distfiles="https://01.org/sites/default/files/downloads/powertop-${version}.tar.gz"
 checksum=a65f992ca4a419bc73b623651060eb9fc00c5a86fa03556358cd9db011ef3178
+patch_args=-Np0
diff --git a/srcpkgs/python3-orocos-kdl/template b/srcpkgs/python3-orocos-kdl/template
index 281ea8978c5f..d27ab90a9b7a 100644
--- a/srcpkgs/python3-orocos-kdl/template
+++ b/srcpkgs/python3-orocos-kdl/template
@@ -15,3 +15,4 @@ license="LGPL-2.1-only"
 homepage="http://www.orocos.org/kdl"
 distfiles="https://github.com/orocos/orocos_kinematics_dynamics/archive/v${version}.tar.gz"
 checksum=05b93e759923684dc07433ccae1e476d158d89b3c2be5079c20062406da7b4dd
+patch_args=-Np0
diff --git a/srcpkgs/python3-pykeepass/template b/srcpkgs/python3-pykeepass/template
index dc3fe59fa411..7223950538bc 100644
--- a/srcpkgs/python3-pykeepass/template
+++ b/srcpkgs/python3-pykeepass/template
@@ -15,3 +15,4 @@ homepage="https://github.com/libkeepass/pykeepass"
 changelog="https://raw.githubusercontent.com/libkeepass/pykeepass/master/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/p/pykeepass/pykeepass-${version}.tar.gz"
 checksum=b3e07eb2dd3aeb1dfa1a2d2d17be77066ee560c1e770f1c72d7ea5608117d284
+patch_args=-Np0
diff --git a/srcpkgs/python3-transifex-client/template b/srcpkgs/python3-transifex-client/template
index e34c310c0a85..c71fd7a32338 100644
--- a/srcpkgs/python3-transifex-client/template
+++ b/srcpkgs/python3-transifex-client/template
@@ -13,3 +13,4 @@ license="GPL-2.0-only"
 homepage="https://www.transifex.com"
 distfiles="https://github.com/transifex/transifex-client/archive/${version}.tar.gz"
 checksum=460f3a829e57b8025280e03a6ad497a87beba142adb2e1579678227f49d4a9ab
+patch_args=-Np0
diff --git a/srcpkgs/python3-yara/template b/srcpkgs/python3-yara/template
index d3c42f7fa06f..359edc090a5b 100644
--- a/srcpkgs/python3-yara/template
+++ b/srcpkgs/python3-yara/template
@@ -13,3 +13,4 @@ license="Apache-2.0"
 homepage="http://virustotal.github.io/yara/"
 distfiles="https://github.com/VirusTotal/yara-python/archive/v${version}.tar.gz"
 checksum=4bc1a69bc9c5f70419806e15a05123a7879456b52a9c50832c34c22eecb4de81
+patch_args=-Np0
diff --git a/srcpkgs/qmltermwidget/template b/srcpkgs/qmltermwidget/template
index 8a5b2fa230eb..a770f2f1fd29 100644
--- a/srcpkgs/qmltermwidget/template
+++ b/srcpkgs/qmltermwidget/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Swordfish90/qmltermwidget"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=23e19eedb59d6fe3e37ecc06872f54befd94384946926e009c42c4b39914cfe2
+patch_args=-Np0
diff --git a/srcpkgs/qomui/template b/srcpkgs/qomui/template
index b74138381bef..73235d778f87 100644
--- a/srcpkgs/qomui/template
+++ b/srcpkgs/qomui/template
@@ -15,3 +15,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/corrad1nho/qomui"
 distfiles="https://github.com/corrad1nho/qomui/archive/v${version}.tar.gz"
 checksum=78187864a4368fed06f6e58c4d411053a1d1193d625ee79be0a57bf0938b1d0b
+patch_args=-Np0
diff --git a/srcpkgs/qtcurve/template b/srcpkgs/qtcurve/template
index 19a4d792d66f..7f98001a6e91 100644
--- a/srcpkgs/qtcurve/template
+++ b/srcpkgs/qtcurve/template
@@ -16,3 +16,4 @@ homepage="https://quickgit.kde.org/?p=qtcurve.git"
 distfiles="https://github.com/KDE/qtcurve/archive/${version}.tar.gz"
 checksum=fbfdafdac90d4c540dd55a4accfecfc3a17c1f532c5241e28003348beafaca15
 nocross="tries to execute a helper binary compiled for target on the host"
+patch_args=-Np0
diff --git a/srcpkgs/qtfm/template b/srcpkgs/qtfm/template
index f2c8e889e6c3..5013481bb259 100644
--- a/srcpkgs/qtfm/template
+++ b/srcpkgs/qtfm/template
@@ -14,3 +14,4 @@ homepage="https://github.com/rodlie/qtfm"
 changelog="https://raw.githubusercontent.com/rodlie/qtfm/master/ChangeLog"
 distfiles="https://github.com/rodlie/qtfm/archive/${version}.tar.gz"
 checksum=b9c707443e20644f6e5f0393ce5158843724ac08f92cf8d7ea8e1109957b5c00
+patch_args=-Np0
diff --git a/srcpkgs/recoll/template b/srcpkgs/recoll/template
index 8c5de6966a46..1f83b2715db2 100644
--- a/srcpkgs/recoll/template
+++ b/srcpkgs/recoll/template
@@ -16,3 +16,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.lesbonscomptes.com/recoll/"
 distfiles="https://www.lesbonscomptes.com/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=17a8e684a8d5560dc7b44cd4b2962cb46476a75bdc107f622051235076d11885
+patch_args=-Np0
diff --git a/srcpkgs/recordmydesktop/template b/srcpkgs/recordmydesktop/template
index eb509e5efd4a..b460f1355e4a 100644
--- a/srcpkgs/recordmydesktop/template
+++ b/srcpkgs/recordmydesktop/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://recordmydesktop.sourceforge.net/about.php"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=33a2e208186ae78e2db2a27b0f5047b50fb7819c47fe15483b0765200b9d738c
+patch_args=-Np0
diff --git a/srcpkgs/rofs-filtered/template b/srcpkgs/rofs-filtered/template
index 2bb8a2304312..3ad1be74b367 100644
--- a/srcpkgs/rofs-filtered/template
+++ b/srcpkgs/rofs-filtered/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/gburca/rofs-filtered"
 distfiles="https://github.com/gburca/rofs-filtered/archive/rel-${version}.tar.gz"
 checksum=d66066dfd0274a2fb7b71dd929445377dd23100b9fa43e3888dbe3fc7e8228e8
+patch_args=-Np0
diff --git a/srcpkgs/sasm/template b/srcpkgs/sasm/template
index 3c624065b5de..a3a705648cdf 100644
--- a/srcpkgs/sasm/template
+++ b/srcpkgs/sasm/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="http://dman95.github.io/SASM/"
 distfiles="https://github.com/Dman95/SASM/archive/v${version}.tar.gz"
 checksum=2c551d4a04f2e11f000eb1716885a646110305f8f2892d1a7761c0d4670d19a0
+patch_args=-Np0
diff --git a/srcpkgs/scribus/template b/srcpkgs/scribus/template
index 0898252efc43..00685dfba6a0 100644
--- a/srcpkgs/scribus/template
+++ b/srcpkgs/scribus/template
@@ -19,3 +19,4 @@ homepage="https://scribus.net"
 distfiles="$SOURCEFORGE_SITE/scribus/scribus-devel/${version}/scribus-${version}.tar.xz"
 checksum=318316b2cfc7a76191d3e0d3f8c2265147daea0570162028e243c292d826f8ce
 python_version=3
+patch_args=-Np0
diff --git a/srcpkgs/seahorse-nautilus/template b/srcpkgs/seahorse-nautilus/template
index 04424cc4acdb..c468cc13836f 100644
--- a/srcpkgs/seahorse-nautilus/template
+++ b/srcpkgs/seahorse-nautilus/template
@@ -15,3 +15,4 @@ homepage="http://www.gnome.org/projects/seahorse/"
 distfiles="${GNOME_SITE}/seahorse-nautilus/${version%.*}/seahorse-nautilus-${version}.tar.xz"
 checksum=eacaf33bba920cf117641393a6eef483dbc075009349082e77d22f79afbd823a
 lib32disabled=yes
+patch_args=-Np0
diff --git a/srcpkgs/seq2gif/template b/srcpkgs/seq2gif/template
index 8146d539a284..63ba990a96cf 100644
--- a/srcpkgs/seq2gif/template
+++ b/srcpkgs/seq2gif/template
@@ -9,3 +9,4 @@ license="GPL-3.0-or-later"
 homepage="http://saitoha.github.io/seq2gif/"
 distfiles="https://github.com/saitoha/seq2gif/archive/v${version}.tar.gz"
 checksum=738805bf8eb7ee5171ded7f43326cca7caecb77031283720f97253c234261f29
+patch_args=-Np0
diff --git a/srcpkgs/sgfutils/template b/srcpkgs/sgfutils/template
index 67980c8d32fb..1ad41f0ea177 100644
--- a/srcpkgs/sgfutils/template
+++ b/srcpkgs/sgfutils/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.cwi.nl/~aeb/go/sgfutils/html/"
 distfiles="https://homepages.cwi.nl/~aeb/go/${pkgname}/${pkgname}.tgz"
 checksum=4b26b321fbe255722f1d7e57233614da89a4da5bab031ae4ef7118ae3c7436a2
+patch_args=-Np0
diff --git a/srcpkgs/sidplayfp/template b/srcpkgs/sidplayfp/template
index c98648586c91..f63c893694a0 100644
--- a/srcpkgs/sidplayfp/template
+++ b/srcpkgs/sidplayfp/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/sidplay-residfp/"
 distfiles="${SOURCEFORGE_SITE}/sidplay-residfp/${pkgname}/${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=1c9dd519c39f7c811c33a7b8f516f33c36b36d29af6075316a7ec7320f9d9155
+patch_args=-Np0
diff --git a/srcpkgs/smbnetfs/template b/srcpkgs/smbnetfs/template
index 12806eaaa37d..bc89fbc198b1 100644
--- a/srcpkgs/smbnetfs/template
+++ b/srcpkgs/smbnetfs/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="http://smbnetfs.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=eac37b9769fbe9c3f4baf3eb64c61a6b59ad4f2aa05dfddcba5a1ac4adf4d560
+patch_args=-Np0
diff --git a/srcpkgs/solvespace/template b/srcpkgs/solvespace/template
index 377c0e4cbd15..c191a028aedc 100644
--- a/srcpkgs/solvespace/template
+++ b/srcpkgs/solvespace/template
@@ -13,3 +13,4 @@ homepage="https://solvespace.com/index.pl"
 distfiles="https://github.com/solvespace/solvespace/releases/download/v${version}/solvespace-source.tar.gz"
 checksum=0be0b2100c0b01eddded2a4dc60455d61cf67816189905af0e73082bfef96000
 nocross="https://travis-ci.org/bobertlo/void-packages/jobs/487251265"
+patch_args=-Np0
diff --git a/srcpkgs/sonata/template b/srcpkgs/sonata/template
index f4456abd175d..ea07e0620a62 100644
--- a/srcpkgs/sonata/template
+++ b/srcpkgs/sonata/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.nongnu.org/sonata/"
 distfiles="https://github.com/multani/sonata/archive/v${version}.tar.gz"
 checksum=401f6b796ca3cc176813b9f1639741a3fd226499c7ab25bbc740778ebb15f81d
+patch_args=-Np0
diff --git a/srcpkgs/stellarium/template b/srcpkgs/stellarium/template
index 188f87a3d397..f7f61f7f2e90 100644
--- a/srcpkgs/stellarium/template
+++ b/srcpkgs/stellarium/template
@@ -14,3 +14,4 @@ homepage="https://stellarium.org/"
 distfiles="https://github.com/Stellarium/stellarium/releases/download/v${version}/stellarium-${version}.tar.gz"
 checksum=977fcd6776a47d34b1646727853d15968a1410c34c8ba1b3e5cfbf24b5126f13
 replaces="stellarium-data>=0"
+patch_args=-Np0
diff --git a/srcpkgs/streamripper/template b/srcpkgs/streamripper/template
index 8530d816be12..d08ed26d3a49 100644
--- a/srcpkgs/streamripper/template
+++ b/srcpkgs/streamripper/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://streamripper.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=c1d75f2e9c7b38fd4695be66eff4533395248132f3cc61f375196403c4d8de42
+patch_args=-Np0
diff --git a/srcpkgs/stress-ng/template b/srcpkgs/stress-ng/template
index 97cfd9cf39c8..5610d73a24ce 100644
--- a/srcpkgs/stress-ng/template
+++ b/srcpkgs/stress-ng/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://kernel.ubuntu.com/~cking/stress-ng/"
 distfiles="http://kernel.ubuntu.com/~cking/tarballs/stress-ng/${pkgname}-${version}.tar.xz"
 checksum=bd167b6559fa8a28680371b1defd3ffe2344eb550129d58dd7d5e2d568f2786e
+patch_args=-Np0
diff --git a/srcpkgs/swell-foop/template b/srcpkgs/swell-foop/template
index afb8dd466c3e..45a2532e3c19 100644
--- a/srcpkgs/swell-foop/template
+++ b/srcpkgs/swell-foop/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Swell%20Foop"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=61c6b6ff9047c00bdc0dbe11a880058a5462921c702123a2d6d1a652bbbe6280
+patch_args=-Np0
diff --git a/srcpkgs/switchboard-plug-printers/template b/srcpkgs/switchboard-plug-printers/template
index caecd10c886c..76c235fbda57 100644
--- a/srcpkgs/switchboard-plug-printers/template
+++ b/srcpkgs/switchboard-plug-printers/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/elementary/${pkgname}"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=fe2c748e3737c3304ea8613d43d5ba8596f95499a65b8d13f93c4f702901f442
+patch_args=-Np0
diff --git a/srcpkgs/telepathy-haze/template b/srcpkgs/telepathy-haze/template
index 60b65b83eced..36f0c56c702f 100644
--- a/srcpkgs/telepathy-haze/template
+++ b/srcpkgs/telepathy-haze/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://telepathy.freedesktop.org"
 distfiles="${homepage}/releases/$pkgname/$pkgname-$version.tar.gz"
 checksum=3e76049c05f2cd5900c5c0c1cfebdf7ae79eec987a599f1090946673c5b8f9c9
+patch_args=-Np0
diff --git a/srcpkgs/tellico/template b/srcpkgs/tellico/template
index d20e33769d9a..aaf6a88cb14b 100644
--- a/srcpkgs/tellico/template
+++ b/srcpkgs/tellico/template
@@ -27,3 +27,4 @@ desc_option_xmp="Support for reading PDF/XMP metadata"
 desc_option_yaz="Support for searching z39.50 databases"
 desc_option_cddb="Support for CDDB searches"
 desc_option_scanner="Support for adding scanned images to a collection"
+patch_args=-Np0
diff --git a/srcpkgs/texmaker/template b/srcpkgs/texmaker/template
index bd07f0b84ce0..91035c31d4b9 100644
--- a/srcpkgs/texmaker/template
+++ b/srcpkgs/texmaker/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://www.xm1math.net/texmaker/index.html"
 distfiles="http://www.xm1math.net/$pkgname/$pkgname-$version.tar.bz2"
 checksum=1de3ab3f6d6bee37a7d0b528ca1cbb7ce8e7aef5ec6a4405aff2caf9d12bd0e2
+patch_args=-Np0
diff --git a/srcpkgs/tmfs/template b/srcpkgs/tmfs/template
index 1dbed3e0eb72..65c541ebb044 100644
--- a/srcpkgs/tmfs/template
+++ b/srcpkgs/tmfs/template
@@ -14,3 +14,4 @@ checksum="897ad09e21ddd8e912dc1baba4466d8a65a09b3abdeb31e4640c2d770915f2f4"
 post_install() {
 	vlicense LICENSE
 }
+patch_args=-Np0
diff --git a/srcpkgs/trackballs/template b/srcpkgs/trackballs/template
index 4fe2df36d959..8f52f522c4ca 100644
--- a/srcpkgs/trackballs/template
+++ b/srcpkgs/trackballs/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://trackballs.github.io/"
 distfiles="https://github.com/trackballs/trackballs/archive/v${version}.tar.gz"
 checksum=fd4c3e4860db8ca6e8e7ad870a5973d51323a77ed8d7b40d859d9b277c53fc02
+patch_args=-Np0
diff --git a/srcpkgs/tremc/template b/srcpkgs/tremc/template
index 227ca61dc2c5..ca00423bc7b0 100644
--- a/srcpkgs/tremc/template
+++ b/srcpkgs/tremc/template
@@ -10,3 +10,4 @@ license="GPL-3.0-only"
 homepage="https://github.com/tremc/tremc"
 distfiles="https://github.com/tremc/tremc/archive/${version}.tar.gz"
 checksum=ea31ff593c64bbf2c471f6c45ef09129e1e9cb55e8f8bd90e2916976a7053c61
+patch_args=-Np0
diff --git a/srcpkgs/ttfautohint/template b/srcpkgs/ttfautohint/template
index 6096ec06eb44..ee71bc04a032 100644
--- a/srcpkgs/ttfautohint/template
+++ b/srcpkgs/ttfautohint/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://www.freetype.org/ttfautohint/"
 distfiles="http://download.savannah.gnu.org/releases/freetype/ttfautohint-${version}.tar.gz"
 checksum=87bb4932571ad57536a7cc20b31fd15bc68cb5429977eb43d903fa61617cf87e
+patch_args=-Np0
diff --git a/srcpkgs/tworld/template b/srcpkgs/tworld/template
index bc9f0faeb8fc..53238ac4dcd9 100644
--- a/srcpkgs/tworld/template
+++ b/srcpkgs/tworld/template
@@ -10,3 +10,4 @@ license="GPL-2.0-only"
 homepage="http://www.muppetlabs.com/~breadbox/software/tworld/"
 distfiles="http://www.muppetlabs.com/~breadbox/pub/software/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=472fce08de124d965cccb20070b0be2b8b4c5ad717fc5ece32828baacd46d861
+patch_args=-Np0
diff --git a/srcpkgs/ucl/template b/srcpkgs/ucl/template
index fa5dc492fae7..3c62edf1d412 100644
--- a/srcpkgs/ucl/template
+++ b/srcpkgs/ucl/template
@@ -10,3 +10,4 @@ homepage="http://www.oberhumer.com/opensource/ucl/"
 distfiles="http://www.oberhumer.com/opensource/ucl/download/ucl-${version}.tar.gz"
 checksum=b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348
 conflicts="libucl-devel>=0"
+patch_args=-Np0
diff --git a/srcpkgs/uhubctl/template b/srcpkgs/uhubctl/template
index 748b10a9b32a..7b8416384177 100644
--- a/srcpkgs/uhubctl/template
+++ b/srcpkgs/uhubctl/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://github.com/mvp/uhubctl"
 distfiles="https://github.com/mvp/uhubctl/archive/v${version}.tar.gz"
 checksum=227fdd541067b84eaa0e15cdc171458a56de7591f7a1deaff3e6d42d2809450b
+patch_args=-Np0
diff --git a/srcpkgs/usb-modeswitch-data/template b/srcpkgs/usb-modeswitch-data/template
index 6412b7035a85..4da5049e3ced 100644
--- a/srcpkgs/usb-modeswitch-data/template
+++ b/srcpkgs/usb-modeswitch-data/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://www.draisberghof.de/usb_modeswitch/"
 distfiles="http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${version}.tar.bz2"
 checksum=3f039b60791c21c7cb15c7986cac89650f076dc274798fa242231b910785eaf9
+patch_args=-Np0
diff --git a/srcpkgs/usb-modeswitch/template b/srcpkgs/usb-modeswitch/template
index 475c1695fab1..f38c8b46cdb8 100644
--- a/srcpkgs/usb-modeswitch/template
+++ b/srcpkgs/usb-modeswitch/template
@@ -14,3 +14,4 @@ license="GPL-2"
 homepage="http://www.draisberghof.de/usb_modeswitch/"
 distfiles="http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-${version}.tar.bz2"
 checksum=c215236e6bada6e659fc195a31d611ea298a4bdb4d57a0d68c553b56585f8ba3
+patch_args=-Np0
diff --git a/srcpkgs/valabind/template b/srcpkgs/valabind/template
index d2af2f9be152..c29263464e53 100644
--- a/srcpkgs/valabind/template
+++ b/srcpkgs/valabind/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://radare.org/r/"
 distfiles="https://github.com/radare/valabind/archive/${version}.tar.gz"
 checksum=643c1ddc85e31de975df361a20e3f39d385f5ced0e50483c6e96b33bb3d32261
+patch_args=-Np0
diff --git a/srcpkgs/vba-m/template b/srcpkgs/vba-m/template
index 8e6447f5c6f5..270df8dee158 100644
--- a/srcpkgs/vba-m/template
+++ b/srcpkgs/vba-m/template
@@ -16,3 +16,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/visualboyadvance-m/visualboyadvance-m/"
 distfiles="https://github.com/visualboyadvance-m/visualboyadvance-m/archive/v${version}.tar.gz"
 checksum=8342e017212842de66b0d86bc7610c82349af2d4e59951d969a33fff956c39ba
+patch_args=-Np0
diff --git a/srcpkgs/wdisplays/template b/srcpkgs/wdisplays/template
index 6378c2a118c1..fc2ff5f563d9 100644
--- a/srcpkgs/wdisplays/template
+++ b/srcpkgs/wdisplays/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://cyclopsian.github.io/wdisplays/"
 distfiles="https://github.com/cyclopsian/wdisplays/archive/${version}.tar.gz"
 checksum=fa34d5bdfd87d833e18a89b2acacc27833d7297374719773a705f2d3e89cdddf
+patch_args=-Np0
diff --git a/srcpkgs/wfuzz/template b/srcpkgs/wfuzz/template
index f0f7b1b0fe0a..b27ec12f675e 100644
--- a/srcpkgs/wfuzz/template
+++ b/srcpkgs/wfuzz/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://wfuzz.org"
 distfiles="https://github.com/xmendez/wfuzz/archive/v${version}.tar.gz"
 checksum=60798e56274a377f8770d162935a040d4d6e27919bfbb46cf13a7a0a34896be9
+patch_args=-Np0
diff --git a/srcpkgs/whysynth/template b/srcpkgs/whysynth/template
index 2c2631da2509..95813353f234 100644
--- a/srcpkgs/whysynth/template
+++ b/srcpkgs/whysynth/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://smbolton.com/whysynth.html"
 distfiles="http://smbolton.com/whysynth/whysynth-${version}.tar.bz2"
 checksum=a602d685a6bf48b01a82e1c077a50fe3d115805865ecfe49f531d8bd20b00b0b
+patch_args=-Np0
diff --git a/srcpkgs/wmctrl/template b/srcpkgs/wmctrl/template
index 774c4ca6f200..2f989ed2e8ee 100644
--- a/srcpkgs/wmctrl/template
+++ b/srcpkgs/wmctrl/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://sites.google.com/site/tstyblo/wmctrl/"
 distfiles="https://sites.google.com/site/tstyblo/wmctrl/wmctrl-${version}.tar.gz"
 checksum=d78a1efdb62f18674298ad039c5cbdb1edb6e8e149bb3a8e3a01a4750aa3cca9
+patch_args=-Np0
diff --git a/srcpkgs/wofi/template b/srcpkgs/wofi/template
index 5fe2c5b63ed2..8ecf7d5985c5 100644
--- a/srcpkgs/wofi/template
+++ b/srcpkgs/wofi/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://hg.sr.ht/~scoopta/wofi"
 distfiles="https://hg.sr.ht/~scoopta/wofi/archive/v${version}.tar.gz"
 checksum=@fee85efc35e97946d3a94562775b902982c4ab1f521208308ecc4bb41547a5e3
+patch_args=-Np0
diff --git a/srcpkgs/wvdial/template b/srcpkgs/wvdial/template
index 3813dea5f5ef..1b5b82c4d16b 100644
--- a/srcpkgs/wvdial/template
+++ b/srcpkgs/wvdial/template
@@ -13,3 +13,4 @@ homepage="https://code.google.com/p/wvstreams/"
 distfiles="${DEBIAN_SITE}/main/w/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=5753d2005115aa4e365a1638f4eb6c076d4e2deafa46c3de38964918e7f62709
 conf_files="/etc/ppp/peers/wvdial /etc/ppp/peers/wvdial-pipe"
+patch_args=-Np0
diff --git a/srcpkgs/xbindkeys/template b/srcpkgs/xbindkeys/template
index 54486843942a..ea2d1e8b3037 100644
--- a/srcpkgs/xbindkeys/template
+++ b/srcpkgs/xbindkeys/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://www.nongnu.org/xbindkeys/xbindkeys.html"
 distfiles="http://www.nongnu.org/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=a29b86a8ec91d4abc83b420e547da27470847d0efe808aa6e75147aa0adb82f2
+patch_args=-Np0
diff --git a/srcpkgs/xdg-dbus-proxy/template b/srcpkgs/xdg-dbus-proxy/template
index 3d01f5e60b1b..805d7404ab4c 100644
--- a/srcpkgs/xdg-dbus-proxy/template
+++ b/srcpkgs/xdg-dbus-proxy/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/flatpak/xdg-dbus-proxy"
 distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.xz"
 checksum=1749d6f9f46dcc9edc87725641cf56cf91dcad1b01707891ea0850c1000c520f
+patch_args=-Np0
diff --git a/srcpkgs/xfce4-power-manager/template b/srcpkgs/xfce4-power-manager/template
index edc9a58e27b9..84d7d1514098 100644
--- a/srcpkgs/xfce4-power-manager/template
+++ b/srcpkgs/xfce4-power-manager/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://xfce.org/"
 distfiles="https://archive.xfce.org/src/xfce/$pkgname/${version%.*}/$pkgname-$version.tar.bz2"
 checksum=eb9c587c01b502fa45a32e7fc2aba98fa6d8391475133883654f77e562c43bf3
+patch_args=-Np0
diff --git a/srcpkgs/xkblayout-state/template b/srcpkgs/xkblayout-state/template
index e3b1f4131db9..78407cc1ba56 100644
--- a/srcpkgs/xkblayout-state/template
+++ b/srcpkgs/xkblayout-state/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/nonpop/xkblayout-state"
 distfiles="https://github.com/nonpop/xkblayout-state/archive/v${version}.tar.gz"
 checksum=ddf2de9949edbea2cb25933c22a6b76d4f868ee3012120216555ac96e9b536d4
+patch_args=-Np0
diff --git a/srcpkgs/xnots/template b/srcpkgs/xnots/template
index c08b06c26d6f..05a565630c8a 100644
--- a/srcpkgs/xnots/template
+++ b/srcpkgs/xnots/template
@@ -14,3 +14,4 @@ license="GPL-2.0-only"
 homepage="http://xnots.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/project/${pkgname}/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=80bbab0334880f79aa12cf17ebffc5730a85dc537e8e6208169720656ecd72ca
+patch_args=-Np0
diff --git a/srcpkgs/xsel/template b/srcpkgs/xsel/template
index edc001dba405..4121c1140936 100644
--- a/srcpkgs/xsel/template
+++ b/srcpkgs/xsel/template
@@ -10,3 +10,4 @@ license="custom"
 homepage="http://www.vergenet.net/~conrad/software/xsel/"
 distfiles="http://www.vergenet.net/~conrad/software/xsel/download/xsel-${version}.tar.gz"
 checksum=b927ce08dc82f4c30140223959b90cf65e1076f000ce95e520419ec32f5b141c
+patch_args=-Np0
diff --git a/srcpkgs/xseticon/template b/srcpkgs/xseticon/template
index 130726aa45c3..d3655f7d0c0f 100644
--- a/srcpkgs/xseticon/template
+++ b/srcpkgs/xseticon/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/xeyownt/xseticon"
 distfiles="https://github.com/xeyownt/xseticon/archive/${version}.tar.gz"
 checksum=d34c349ff09ea42393fb3bac3fd2be0e7b9a244388e2f4b32cc92636967a4a2c
+patch_args=-Np0
diff --git a/srcpkgs/yabause-gtk/template b/srcpkgs/yabause-gtk/template
index 2b85120a5a7f..fab9fa26cb84 100644
--- a/srcpkgs/yabause-gtk/template
+++ b/srcpkgs/yabause-gtk/template
@@ -17,3 +17,4 @@ checksum=4334c43fe0f3ff297bac8e91f4e059fe5fd276291faff2489e37b5b3a4ccc2b2
 nopie=yes
 # Would need m68kmake built for the host
 nocross=yes
+patch_args=-Np0
diff --git a/srcpkgs/zaz/template b/srcpkgs/zaz/template
index c99dbca901dd..e9bf8c19bc9d 100644
--- a/srcpkgs/zaz/template
+++ b/srcpkgs/zaz/template
@@ -13,3 +13,4 @@ homepage="http://zaz.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=e332cc1a6559e18a2b632940c53d20e2f2d2b583ba9dc1fd02a586437f9f0397
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/freetype2"
+patch_args=-Np0
diff --git a/srcpkgs/zbackup/template b/srcpkgs/zbackup/template
index c69c8e711cfd..997fc5b349f9 100644
--- a/srcpkgs/zbackup/template
+++ b/srcpkgs/zbackup/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://zbackup.org/"
 distfiles="https://github.com/zbackup/zbackup/archive/${version}.tar.gz"
 checksum=efccccd2a045da91576c591968374379da1dc4ca2e3dec4d3f8f12628fa29a85
+patch_args=-Np0

From 0f5d2447ee2b7e8ff926a4d36bf964f17328cedb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:38:20 +0700
Subject: [PATCH 5/9] do-patch: switch default patch_args to -Np1

All templates that require -Np0 have patch_args appended.
Let's flip the switch.
---
 Manual.md                           | 4 ++--
 common/hooks/do-patch/00-patches.sh | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Manual.md b/Manual.md
index 238db04f04b3..dc20f1e0db00 100644
--- a/Manual.md
+++ b/Manual.md
@@ -601,7 +601,7 @@ current directory with respect to the install.
 
 - `patch_args` The arguments to be passed in to the `patch(1)` command when applying
 patches to the package sources during `do_patch()`. Patches are stored in
-`srcpkgs/<pkgname>/patches` and must be in `-p0` format. By default set to `-Np0`.
+`srcpkgs/<pkgname>/patches` and must be in `-p0` format. By default set to `-Np1`.
 
 - `disable_parallel_build` If set the package won't be built in parallel
 and `XBPS_MAKEJOBS` has no effect.
@@ -874,7 +874,7 @@ been found or to fix compilation with new software.
 
 To handle this, xbps-src has patching functionality. It will look for all files
 that match the glob `srcpkgs/$pkgname/patches/*.{diff,patch}` and will
-automatically apply all files it finds using `patch(1)` with `-Np0`. This happens
+automatically apply all files it finds using `patch(1)` with `-Np1`. This happens
 during the `do_patch()` phase. The variable `PATCHESDIR` is
 available in the template, pointing to the `patches` directory.
 
diff --git a/common/hooks/do-patch/00-patches.sh b/common/hooks/do-patch/00-patches.sh
index 64e934c39818..f8ce2d37fee5 100644
--- a/common/hooks/do-patch/00-patches.sh
+++ b/common/hooks/do-patch/00-patches.sh
@@ -3,7 +3,7 @@
 _process_patch() {
 	local _args= _patch= i=$1
 
-	_args="-Np0"
+	_args="-Np1"
 	_patch=${i##*/}
 
 	if [ -f $PATCHESDIR/${_patch}.args ]; then

From 6cadb4ecf254e8bf750e02500f53121c0566f1e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 08:20:04 +0700
Subject: [PATCH 6/9] srcpkgs: remove patch_args=-Np1 en-mass

	git grep -l '^patch_args=.*p1' 'srcpkgs/*/template'  |
	xargs -r sed -i '/^patch_args=/d'
---
 srcpkgs/EternalTerminal/template         | 1 -
 srcpkgs/Ice/template                     | 1 -
 srcpkgs/Marker/template                  | 1 -
 srcpkgs/NetworkManager/template          | 1 -
 srcpkgs/OTPClient/template               | 1 -
 srcpkgs/RyzenAdj/template                | 1 -
 srcpkgs/VirtualGL/template               | 1 -
 srcpkgs/abiword/template                 | 1 -
 srcpkgs/acfgfs/template                  | 1 -
 srcpkgs/acr/template                     | 1 -
 srcpkgs/alot/template                    | 1 -
 srcpkgs/alsa-lib/template                | 1 -
 srcpkgs/alure/template                   | 1 -
 srcpkgs/apparmor/template                | 1 -
 srcpkgs/arcan/template                   | 1 -
 srcpkgs/atril/template                   | 1 -
 srcpkgs/audit/template                   | 1 -
 srcpkgs/babeld/template                  | 1 -
 srcpkgs/bibletime/template               | 1 -
 srcpkgs/binutils/template                | 1 -
 srcpkgs/blender/template                 | 1 -
 srcpkgs/blobby2/template                 | 1 -
 srcpkgs/bluez/template                   | 1 -
 srcpkgs/bolt/template                    | 1 -
 srcpkgs/brotli/template                  | 1 -
 srcpkgs/bsd-games/template               | 1 -
 srcpkgs/cairo-dock-plugins/template      | 1 -
 srcpkgs/cairo/template                   | 1 -
 srcpkgs/caribou/template                 | 1 -
 srcpkgs/catimg/template                  | 1 -
 srcpkgs/cheese/template                  | 1 -
 srcpkgs/chuck/template                   | 1 -
 srcpkgs/clockspeed/template              | 1 -
 srcpkgs/cmake/template                   | 1 -
 srcpkgs/crex/template                    | 1 -
 srcpkgs/cryfs/template                   | 1 -
 srcpkgs/curl/template                    | 1 -
 srcpkgs/cyrus-sasl/template              | 1 -
 srcpkgs/dbus-elogind/template            | 1 -
 srcpkgs/ddgtk/template                   | 1 -
 srcpkgs/deluge/template                  | 1 -
 srcpkgs/diffr/template                   | 1 -
 srcpkgs/docbook2x/template               | 1 -
 srcpkgs/efitools/template                | 1 -
 srcpkgs/efivar/template                  | 1 -
 srcpkgs/electrum-ltc/template            | 1 -
 srcpkgs/embree/template                  | 1 -
 srcpkgs/empathy/template                 | 1 -
 srcpkgs/enchant/template                 | 1 -
 srcpkgs/ettercap/template                | 1 -
 srcpkgs/exempi/template                  | 1 -
 srcpkgs/ext4magic/template               | 1 -
 srcpkgs/fbset/template                   | 1 -
 srcpkgs/fcitx5-anthy/template            | 1 -
 srcpkgs/fcitx5-qt/template               | 1 -
 srcpkgs/fcitx5/template                  | 1 -
 srcpkgs/firebird3/template               | 1 -
 srcpkgs/flac/template                    | 1 -
 srcpkgs/flann/template                   | 1 -
 srcpkgs/fonttosfnt/template              | 1 -
 srcpkgs/fortune-mod/template             | 1 -
 srcpkgs/fwupd/template                   | 1 -
 srcpkgs/gcc6/template                    | 1 -
 srcpkgs/gdb/template                     | 1 -
 srcpkgs/geeqie/template                  | 1 -
 srcpkgs/gettext/template                 | 1 -
 srcpkgs/ghc/template                     | 1 -
 srcpkgs/ghdl/template                    | 1 -
 srcpkgs/ghostscript/template             | 1 -
 srcpkgs/gjs/template                     | 1 -
 srcpkgs/glibc/template                   | 1 -
 srcpkgs/glm/template                     | 1 -
 srcpkgs/glu/template                     | 1 -
 srcpkgs/gnac/template                    | 1 -
 srcpkgs/gnome-builder/template           | 1 -
 srcpkgs/gnome-doc-utils/template         | 1 -
 srcpkgs/gnome-panel/template             | 1 -
 srcpkgs/gnome-todo/template              | 1 -
 srcpkgs/gobject-introspection/template   | 1 -
 srcpkgs/gpicview/template                | 1 -
 srcpkgs/graphene/template                | 1 -
 srcpkgs/growlight/template               | 1 -
 srcpkgs/grub-btrfs/template              | 1 -
 srcpkgs/grub/template                    | 1 -
 srcpkgs/gsimplecal-gtk2/template         | 1 -
 srcpkgs/gtk-doc/template                 | 1 -
 srcpkgs/hostapd/template                 | 1 -
 srcpkgs/ifstatus/template                | 1 -
 srcpkgs/iio-sensor-proxy/template        | 1 -
 srcpkgs/incron/template                  | 1 -
 srcpkgs/inkscape/template                | 1 -
 srcpkgs/interbench/template              | 1 -
 srcpkgs/ispc/template                    | 1 -
 srcpkgs/jasper/template                  | 1 -
 srcpkgs/json-c/template                  | 1 -
 srcpkgs/judy/template                    | 1 -
 srcpkgs/julia/template                   | 1 -
 srcpkgs/kakasi/template                  | 1 -
 srcpkgs/kitty/template                   | 1 -
 srcpkgs/kmymoney/template                | 1 -
 srcpkgs/kodi-rpi/template                | 1 -
 srcpkgs/kodi/template                    | 1 -
 srcpkgs/kreport/template                 | 1 -
 srcpkgs/kwin/template                    | 1 -
 srcpkgs/libbaseencode/template           | 1 -
 srcpkgs/libcotp/template                 | 1 -
 srcpkgs/libextractor/template            | 1 -
 srcpkgs/libfcitx-qt5/template            | 1 -
 srcpkgs/libgcrypt/template               | 1 -
 srcpkgs/libgpg-error/template            | 1 -
 srcpkgs/libhugetlbfs/template            | 1 -
 srcpkgs/libical/template                 | 1 -
 srcpkgs/libid3tag/template               | 1 -
 srcpkgs/libknet1/template                | 1 -
 srcpkgs/libode/template                  | 1 -
 srcpkgs/libogdf/template                 | 1 -
 srcpkgs/libopenshot/template             | 1 -
 srcpkgs/libpgf/template                  | 1 -
 srcpkgs/libsasl/template                 | 1 -
 srcpkgs/libtar/template                  | 1 -
 srcpkgs/libtls/template                  | 1 -
 srcpkgs/libtomcrypt/template             | 1 -
 srcpkgs/libunique1/template              | 1 -
 srcpkgs/libvorbis/template               | 1 -
 srcpkgs/lightdm-gtk-greeter/template     | 1 -
 srcpkgs/linux-driver-management/template | 1 -
 srcpkgs/linux4.14/template               | 1 -
 srcpkgs/linux4.19/template               | 1 -
 srcpkgs/linux4.9/template                | 1 -
 srcpkgs/linux5.10/template               | 1 -
 srcpkgs/linux5.11/template               | 1 -
 srcpkgs/linux5.12/template               | 1 -
 srcpkgs/linux5.4/template                | 1 -
 srcpkgs/loudgain/template                | 1 -
 srcpkgs/lxde-common/template             | 1 -
 srcpkgs/lxlauncher/template              | 1 -
 srcpkgs/lxsession/template               | 1 -
 srcpkgs/m4/template                      | 1 -
 srcpkgs/mac-fdisk/template               | 1 -
 srcpkgs/mailx/template                   | 1 -
 srcpkgs/make/template                    | 1 -
 srcpkgs/mbuffer/template                 | 1 -
 srcpkgs/mellowplayer/template            | 1 -
 srcpkgs/mkinitcpio-nfs-utils/template    | 1 -
 srcpkgs/mkinitcpio/template              | 1 -
 srcpkgs/motif/template                   | 1 -
 srcpkgs/mouseemu/template                | 1 -
 srcpkgs/mozjs78/template                 | 1 -
 srcpkgs/mupdf/template                   | 1 -
 srcpkgs/musl/template                    | 1 -
 srcpkgs/ndppd/template                   | 1 -
 srcpkgs/network-manager-applet/template  | 1 -
 srcpkgs/nfs-utils/template               | 1 -
 srcpkgs/nomad/template                   | 1 -
 srcpkgs/notmuch/template                 | 1 -
 srcpkgs/numix-themes/template            | 1 -
 srcpkgs/nvi/template                     | 1 -
 srcpkgs/ocaml/template                   | 1 -
 srcpkgs/onboard/template                 | 1 -
 srcpkgs/openjdk10-bootstrap/template     | 1 -
 srcpkgs/openjdk7-bootstrap/template      | 1 -
 srcpkgs/openjdk8/template                | 1 -
 srcpkgs/openjdk9-bootstrap/template      | 1 -
 srcpkgs/orientdb/template                | 1 -
 srcpkgs/p11-kit/template                 | 1 -
 srcpkgs/parallel-rust/template           | 1 -
 srcpkgs/patch/template                   | 1 -
 srcpkgs/pavucontrol/template             | 1 -
 srcpkgs/pbbuttonsd/template              | 1 -
 srcpkgs/pcsxr/template                   | 1 -
 srcpkgs/pinebookpro-kernel/template      | 1 -
 srcpkgs/pinephone-kernel/template        | 1 -
 srcpkgs/ponysay/template                 | 1 -
 srcpkgs/poppler-qt5/template             | 1 -
 srcpkgs/poppler/template                 | 1 -
 srcpkgs/procmail/template                | 1 -
 srcpkgs/psutils/template                 | 1 -
 srcpkgs/python-notify/template           | 1 -
 srcpkgs/qemu/template                    | 1 -
 srcpkgs/qt5-webengine/template           | 1 -
 srcpkgs/rdup/template                    | 1 -
 srcpkgs/recode/template                  | 1 -
 srcpkgs/rng-tools/template               | 1 -
 srcpkgs/rust/template                    | 1 -
 srcpkgs/sakura/template                  | 1 -
 srcpkgs/sbc/template                     | 1 -
 srcpkgs/sbsigntool/template              | 1 -
 srcpkgs/sharutils/template               | 1 -
 srcpkgs/spdlog/template                  | 1 -
 srcpkgs/stegsnow/template                | 1 -
 srcpkgs/sun7i-kernel/template            | 1 -
 srcpkgs/syslinux/template                | 1 -
 srcpkgs/tilix/template                   | 1 -
 srcpkgs/tmux/template                    | 1 -
 srcpkgs/ucspi-tcp/template               | 1 -
 srcpkgs/unixbench/template               | 1 -
 srcpkgs/unzip/template                   | 1 -
 srcpkgs/util-linux/template              | 1 -
 srcpkgs/utox/template                    | 1 -
 srcpkgs/valgrind/template                | 1 -
 srcpkgs/viking/template                  | 1 -
 srcpkgs/vscode/template                  | 1 -
 srcpkgs/vtk/template                     | 1 -
 srcpkgs/wayfire-plugins-extra/template   | 1 -
 srcpkgs/webrtc-audio-processing/template | 1 -
 srcpkgs/whipper/template                 | 1 -
 srcpkgs/wireplumber/template             | 1 -
 srcpkgs/wlsunset/template                | 1 -
 srcpkgs/wpa_supplicant/template          | 1 -
 srcpkgs/wrk/template                     | 1 -
 srcpkgs/x2goserver/template              | 1 -
 srcpkgs/xbps/template                    | 1 -
 srcpkgs/xdgmenumaker/template            | 1 -
 srcpkgs/xen/template                     | 1 -
 srcpkgs/xpdf/template                    | 1 -
 srcpkgs/xzoom/template                   | 1 -
 srcpkgs/yaboot/template                  | 1 -
 srcpkgs/zeroc-mcpp/template              | 1 -
 srcpkgs/zziplib/template                 | 1 -
 219 files changed, 219 deletions(-)

diff --git a/srcpkgs/EternalTerminal/template b/srcpkgs/EternalTerminal/template
index e2555e2f8642..f4f2b4720362 100644
--- a/srcpkgs/EternalTerminal/template
+++ b/srcpkgs/EternalTerminal/template
@@ -13,7 +13,6 @@ homepage="https://eternalterminal.dev/"
 distfiles="https://github.com/MisterTea/EternalTerminal/archive/et-v${version}.tar.gz"
 checksum=728c3a444d666897c710e33fe473d8d289263a59574451b13aa53ec3c6ac88b3
 system_accounts="_eternal"
-patch_args=-Np1
 
 LDFLAGS="-lgflags"
 
diff --git a/srcpkgs/Ice/template b/srcpkgs/Ice/template
index 6c3e6971874d..f85b38df28d6 100644
--- a/srcpkgs/Ice/template
+++ b/srcpkgs/Ice/template
@@ -15,7 +15,6 @@ license="GPL-2.0-only, custom:ICE"
 homepage="https://www.zeroc.com"
 distfiles="https://github.com/zeroc-ice/ice/archive/v${version}.tar.gz"
 checksum=36bf45591a95e6ee7216153d45d8eca05ff00c1da35608f0c400e6ddc8049da9
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	# Cross build requires the host's slice2cpp
diff --git a/srcpkgs/Marker/template b/srcpkgs/Marker/template
index 2c57664b3c68..be02723dc4ed 100644
--- a/srcpkgs/Marker/template
+++ b/srcpkgs/Marker/template
@@ -14,7 +14,6 @@ license="GPL-3.0-or-later, ISC"
 homepage="https://fabiocolacio.github.io/Marker/"
 distfiles="https://github.com/fabiocolacio/Marker/releases/download/${version}/marker.zip"
 checksum=ca493e7e94f171c15f7ffc9f697ce265d3b4fdb20fae157601d091d89dd6fb40
-patch_args="-Np1"
 
 post_extract() {
 	# don't include bundled mathjax
diff --git a/srcpkgs/NetworkManager/template b/srcpkgs/NetworkManager/template
index 2f159a9f55c4..7af0685be910 100644
--- a/srcpkgs/NetworkManager/template
+++ b/srcpkgs/NetworkManager/template
@@ -46,7 +46,6 @@ make_dirs="
  /etc/NetworkManager/VPN 0755 root root
  /var/lib/NetworkManager 0755 root root
 "
-patch_args=-Np1
 
 # Package build options
 build_options="gir elogind"
diff --git a/srcpkgs/OTPClient/template b/srcpkgs/OTPClient/template
index bea17c56a1e4..28de82117c9a 100644
--- a/srcpkgs/OTPClient/template
+++ b/srcpkgs/OTPClient/template
@@ -12,4 +12,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/paolostivanin/OTPClient"
 distfiles="https://github.com/paolostivanin/OTPClient/archive/v${version}.tar.gz"
 checksum=5b976782906f15e2a4e001d73909a05f6146010cea83d78e3ad5c850f4049da4
-patch_args=-Np1
diff --git a/srcpkgs/RyzenAdj/template b/srcpkgs/RyzenAdj/template
index 1ceb4fec1e4a..ccea4932b6f2 100644
--- a/srcpkgs/RyzenAdj/template
+++ b/srcpkgs/RyzenAdj/template
@@ -11,7 +11,6 @@ license="LGPL-3.0-only"
 homepage="https://github.com/FlyGoat/RyzenAdj"
 distfiles="https://github.com/FlyGoat/RyzenAdj/archive/v${version}.tar.gz"
 checksum=fff8a08e657ba35f919bd564fbe2e15e7c615ac6e2a357ffcc3472069e8081f6
-patch_args=-Np1
 
 do_install() {
 	vbin build/ryzenadj
diff --git a/srcpkgs/VirtualGL/template b/srcpkgs/VirtualGL/template
index bf25920d2cb7..58ff1859ea80 100644
--- a/srcpkgs/VirtualGL/template
+++ b/srcpkgs/VirtualGL/template
@@ -14,7 +14,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.virtualgl.org/"
 distfiles="${SOURCEFORGE_SITE}/virtualgl/${version}/${pkgname}-${version}.tar.gz"
 checksum=79dff857862890215794509ac65826005625925d03bf0874a486d695aae6f859
-patch_args="-Np1"
 
 archs="i686* x86_64*"
 
diff --git a/srcpkgs/abiword/template b/srcpkgs/abiword/template
index 0f48222f8180..782d023e01dc 100644
--- a/srcpkgs/abiword/template
+++ b/srcpkgs/abiword/template
@@ -18,7 +18,6 @@ license="GPL-2.0-or-later"
 homepage="http://www.abisource.com/"
 distfiles="${homepage}/downloads/${pkgname}/${version}/source/${pkgname}-${version}.tar.gz"
 checksum=e93096cb192e5bc19d62e180fc5eda643206465315a710113ae5036bc2a1a5d7
-patch_args=-Np1
 
 build_options="goffice"
 build_options_default="goffice"
diff --git a/srcpkgs/acfgfs/template b/srcpkgs/acfgfs/template
index b66760cb1ea4..0e1ced9d4f06 100644
--- a/srcpkgs/acfgfs/template
+++ b/srcpkgs/acfgfs/template
@@ -14,7 +14,6 @@ license="BSD-3-Clause"
 homepage="https://arcan-fe.com"
 distfiles="https://github.com/letoram/arcan/archive/${version}.tar.gz"
 checksum=7ae00a9dee79f9b58ac2bacbf532ff0631280297cfde30e8996382a3f42a52ed
-patch_args="-Np1"
 
 case "${XBPS_TARGET_MACHINE}" in
 	i686|armv6l|armv7l|ppc)
diff --git a/srcpkgs/acr/template b/srcpkgs/acr/template
index 88d79a1a6706..0574ea512016 100644
--- a/srcpkgs/acr/template
+++ b/srcpkgs/acr/template
@@ -11,4 +11,3 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/radare/acr"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=88bb2e4cb35b18370675710806c4ef03ef81a6ed521b939e272267754e8484c1
-patch_args=-Np1
diff --git a/srcpkgs/alot/template b/srcpkgs/alot/template
index 314bbe011aad..831b24deb8b4 100644
--- a/srcpkgs/alot/template
+++ b/srcpkgs/alot/template
@@ -13,7 +13,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/pazz/alot"
 distfiles="https://github.com/pazz/${pkgname}/archive/${version}.tar.gz"
 checksum=ee2c1ab1b43d022a8fe2078820ed57d8d72aec260a7d750776dac4ee841d1de4
-patch_args="-Np1"
 
 do_check() {
 	pytest3 -k 'not test_no_spawn_no_stdin_attached'
diff --git a/srcpkgs/alsa-lib/template b/srcpkgs/alsa-lib/template
index 7a6a58a8c5ea..454ede71606e 100644
--- a/srcpkgs/alsa-lib/template
+++ b/srcpkgs/alsa-lib/template
@@ -10,7 +10,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.alsa-project.org"
 distfiles="https://www.alsa-project.org/files/pub/lib/${pkgname}-${version}.tar.bz2"
 checksum=f7554be1a56cdff468b58fc1c29b95b64864c590038dd309c7a978c7116908f7
-patch_args="-Np1"
 
 alsa-lib-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/alure/template b/srcpkgs/alure/template
index 0acf8c80fd3d..04e40e3c8b20 100644
--- a/srcpkgs/alure/template
+++ b/srcpkgs/alure/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="https://github.com/kcat/alure"
 distfiles="${DEBIAN_SITE}/main/a/alure/alure_${version}.orig.tar.bz2"
 checksum=465e6adae68927be3a023903764662d64404e40c4c152d160e3a8838b1d70f71
-patch_args=-Np1
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/apparmor/template b/srcpkgs/apparmor/template
index 0d8c1ec7087e..2431832981c7 100644
--- a/srcpkgs/apparmor/template
+++ b/srcpkgs/apparmor/template
@@ -18,7 +18,6 @@ homepage="https://gitlab.com/apparmor/apparmor"
 changelog="https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_${version}"
 distfiles="https://gitlab.com/apparmor/apparmor/-/archive/v${version}/apparmor-v${version}.tar.gz"
 checksum=5f9afc157c5e2610737186a31fc9bd6a1d339a2ee85ac4f2667dce59cf60f1c7
-patch_args="-Np1"
 
 if [ -z "$CROSS_BUILD" ]; then
 	configure_args="--with-perl --with-python"
diff --git a/srcpkgs/arcan/template b/srcpkgs/arcan/template
index 7788f50d3329..f436db94479c 100644
--- a/srcpkgs/arcan/template
+++ b/srcpkgs/arcan/template
@@ -26,7 +26,6 @@ distfiles="https://github.com/letoram/${pkgname}/archive/${version}.tar.gz
  https://github.com/letoram/openal/archive/${_versionOpenal}.tar.gz>openal_arcan.${_versionOpenal}.tar.gz"
 checksum="7ae00a9dee79f9b58ac2bacbf532ff0631280297cfde30e8996382a3f42a52ed
  3a50a87c05b67c466a868cc77f8dc7f9cfc9466aeeafcd823daca0d108c504da"
-patch_args="-Np1"
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/atril/template b/srcpkgs/atril/template
index b26399624b01..97602c4b1b0b 100644
--- a/srcpkgs/atril/template
+++ b/srcpkgs/atril/template
@@ -20,7 +20,6 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=b48372a89813f31d2635de02d9e92ba38e794daddf625f06d80c3793248bde1a
-patch_args=-Np1
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/audit/template b/srcpkgs/audit/template
index fcd5de93732d..a093bfac8333 100644
--- a/srcpkgs/audit/template
+++ b/srcpkgs/audit/template
@@ -16,7 +16,6 @@ homepage="https://people.redhat.com/sgrubb/audit"
 changelog="https://raw.githubusercontent.com/linux-audit/audit-userspace/master/ChangeLog"
 distfiles="${homepage}/${pkgname}-${version}.tar.gz"
 checksum=994c4250d8fd43f3087a3c2ce73461832e30f1e9b278bf5bb03c3e07091155a5
-patch_args=-Np1
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args+=" --disable-zos-remote" ;;
diff --git a/srcpkgs/babeld/template b/srcpkgs/babeld/template
index c8a90adea73b..5a46f57aafaf 100644
--- a/srcpkgs/babeld/template
+++ b/srcpkgs/babeld/template
@@ -10,7 +10,6 @@ license="MIT"
 homepage="https://www.irif.fr/~jch/software/babel/"
 distfiles="https://github.com/jech/babeld/archive/babeld-${version}.tar.gz"
 checksum=d44a0ca3cf67595e1ed67ca219c975c3c011c6046028be75df254715c4611d31
-patch_args="-Np1"
 
 pre_build() {
 	echo ${version}-${revision} > version
diff --git a/srcpkgs/bibletime/template b/srcpkgs/bibletime/template
index bc005197cdb3..559755a9dd6f 100644
--- a/srcpkgs/bibletime/template
+++ b/srcpkgs/bibletime/template
@@ -18,7 +18,6 @@ license="GPL-2.0-or-later"
 homepage="http://bibletime.info"
 distfiles="https://github.com/bibletime/bibletime/releases/download/v${version}/bibletime-${version}.tar.xz"
 checksum=d6beef62ad44b255e3dc4c5e89214bf01a0e85c9136073b0be12fca3d2b22622
-patch_args=-Np1
 
 pre_build() {
 	. /etc/profile.d/10_openjdk11.sh
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 7a7966f440aa..6270f8618c87 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=3ced91db9bf01182b7e420eab68039f2083aed0a214c0424e257eae3ddee8607
-patch_args="-Np1"
 
 subpackages="binutils-doc"
 if [ "$CHROOT_READY" ]; then
diff --git a/srcpkgs/blender/template b/srcpkgs/blender/template
index 810c98ee7705..af946c2b7999 100644
--- a/srcpkgs/blender/template
+++ b/srcpkgs/blender/template
@@ -31,7 +31,6 @@ python_version=3
 CXXFLAGS="-DNDEBUG"
 CFLAGS="$CXXFLAGS"
 LDFLAGS="-Wl,-z,stack-size=2097152"
-patch_args="-Np1"
 # Blender tests are executed against a system installation of blender. This
 # is currently not supported by xbps-src.
 make_check=no
diff --git a/srcpkgs/blobby2/template b/srcpkgs/blobby2/template
index b47972ab884a..c8b9c65046c9 100644
--- a/srcpkgs/blobby2/template
+++ b/srcpkgs/blobby2/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://blobbyvolley.de"
 distfiles="${SOURCEFORGE_SITE}/blobby/${pkgname}-linux-${version}.tar.gz"
 checksum=ba7a049e298aaa2014c1e1ac1faf3b0256b4c66266cd4db06e7939e8695bf5e2
-patch_args="-Np1"
 
 post_install() {
 	vinstall ${FILESDIR}/blobby.desktop 644 usr/share/applications
diff --git a/srcpkgs/bluez/template b/srcpkgs/bluez/template
index e6ef1b9b6b0e..09bac4ff5eca 100644
--- a/srcpkgs/bluez/template
+++ b/srcpkgs/bluez/template
@@ -18,7 +18,6 @@ distfiles="${KERNEL_SITE}/bluetooth/$pkgname-$version.tar.xz"
 checksum=046b95b386d0bfb2a16311fe799d517ee7735045512d89902c4ed701db477316
 conf_files="/etc/bluetooth/main.conf"
 system_groups="bluetooth"
-patch_args="-Np1"
 
 build_options="mesh nfc experimental"
 
diff --git a/srcpkgs/bolt/template b/srcpkgs/bolt/template
index 20bccb2c3e09..02535303419d 100644
--- a/srcpkgs/bolt/template
+++ b/srcpkgs/bolt/template
@@ -14,7 +14,6 @@ license="LGPL-2.1-or-later"
 homepage="https://gitlab.freedesktop.org/bolt/bolt"
 distfiles="https://gitlab.freedesktop.org/bolt/bolt/-/archive/${version}/bolt-${version}.tar.gz"
 checksum=f938db68df79d0ada135a055fd01204f6f3436e17e962dfb8dc6699de77e1895
-patch_args="-Np1"
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/brotli/template b/srcpkgs/brotli/template
index 12b80d767fda..4e2b48ea88b5 100644
--- a/srcpkgs/brotli/template
+++ b/srcpkgs/brotli/template
@@ -9,7 +9,6 @@ license="MIT"
 homepage="https://github.com/google/brotli"
 distfiles="https://github.com/google/${pkgname}/archive/v${version}.tar.gz"
 checksum=f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46
-patch_args="-p1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/bsd-games/template b/srcpkgs/bsd-games/template
index 6a641a540bb9..600599b2b74c 100644
--- a/srcpkgs/bsd-games/template
+++ b/srcpkgs/bsd-games/template
@@ -35,7 +35,6 @@ mutable_files="/var/games/bsdgames/atc_score
  /var/games/bsdgames/phantasia/monsters
  /var/games/bsdgames/hack/record
  /var/games/bsdgames/hack/perm"
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	local _file _var
diff --git a/srcpkgs/cairo-dock-plugins/template b/srcpkgs/cairo-dock-plugins/template
index 38295ded98c2..32457494a085 100644
--- a/srcpkgs/cairo-dock-plugins/template
+++ b/srcpkgs/cairo-dock-plugins/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://launchpad.net/cairo-dock"
 distfiles="http://launchpad.net/cairo-dock-plug-ins/${version%.?}/${version}/+download/cairo-dock-plug-ins-${version}.tar.gz"
 checksum=e09b8e600398749d1f74b26e645b477a1844a3eea02fcadd6877935da3f8639e
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" python3-devel vala-devel"
diff --git a/srcpkgs/cairo/template b/srcpkgs/cairo/template
index 1e996086f45a..3af5d9914cb2 100644
--- a/srcpkgs/cairo/template
+++ b/srcpkgs/cairo/template
@@ -16,7 +16,6 @@ license="LGPL-2.1-or-later, MPL-1.1"
 homepage="https://cairographics.org"
 distfiles="https://cairographics.org/releases/cairo-${version}.tar.xz"
 checksum=5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331
-patch_args="-Np1"
 
 # Package build options
 build_options="gles2 opengl"
diff --git a/srcpkgs/caribou/template b/srcpkgs/caribou/template
index bf135b75f8b0..15bc2ccae74e 100644
--- a/srcpkgs/caribou/template
+++ b/srcpkgs/caribou/template
@@ -18,7 +18,6 @@ homepage="https://wiki.gnome.org/Projects/Caribou"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=9c43d9f4bd30f4fea7f780d4e8b14f7589107c52e9cb6bd202bd0d1c2064de55
 lib32disabled=yes
-patch_args=-Np1
 
 libcaribou_package() {
 	lib32disabled=yes
diff --git a/srcpkgs/catimg/template b/srcpkgs/catimg/template
index 6fbc5f1d9140..0392d3cfb598 100644
--- a/srcpkgs/catimg/template
+++ b/srcpkgs/catimg/template
@@ -9,7 +9,6 @@ license="MIT"
 homepage="https://github.com/posva/catimg"
 distfiles="https://github.com/posva/catimg/archive/${version}.tar.gz"
 checksum=3a6450316ff62fb07c3facb47ea208bf98f62abd02783e88c56f2a6508035139
-patch_args=-Np1
 CFLAGS="-fcommon"
 
 post_install() {
diff --git a/srcpkgs/cheese/template b/srcpkgs/cheese/template
index e23855c1ed2b..5717d1a4c80c 100644
--- a/srcpkgs/cheese/template
+++ b/srcpkgs/cheese/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Cheese"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=88d2732b421b903110a2628db25c0d61e219c42bdfb5971151033fba95a8d16f
-patch_args="-Np1"
 
 build_options="gir gtk_doc"
 build_options_default="gir"
diff --git a/srcpkgs/chuck/template b/srcpkgs/chuck/template
index 904b5e393b7d..acf5648af53b 100644
--- a/srcpkgs/chuck/template
+++ b/srcpkgs/chuck/template
@@ -16,7 +16,6 @@ changelog="https://chuck.cs.princeton.edu/release/VERSIONS"
 distfiles="http://chuck.cs.princeton.edu/release/files/$pkgname-$version.tgz"
 checksum=11a20c34b385e132bf43d5ae6a562c652f631828cc6b1562a4c029bc9a850ed4
 
-patch_args="-Np1"
 
 post_extract() {
 	# use CC, CXX and LD from environment
diff --git a/srcpkgs/clockspeed/template b/srcpkgs/clockspeed/template
index 04477817415e..685fb3a491e2 100644
--- a/srcpkgs/clockspeed/template
+++ b/srcpkgs/clockspeed/template
@@ -19,7 +19,6 @@ clocksd_groups="nogroup"
 clocksd_homedir="/var/lib/${pkgname}"
 clocksd_descr="User for clockspeed adjustments"
 conf_files="/etc/${pkgname}/${pkgname}.conf"
-patch_args="-p1"
 
 make_dirs="/var/lib/clockspeed/adjust 644 clocksd root"
 
diff --git a/srcpkgs/cmake/template b/srcpkgs/cmake/template
index e9ee3debf3c0..5d3308f93b5d 100644
--- a/srcpkgs/cmake/template
+++ b/srcpkgs/cmake/template
@@ -17,7 +17,6 @@ homepage="https://www.cmake.org"
 distfiles="https://www.cmake.org/files/v${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=4d008ac3461e271fcfac26a05936f77fc7ab64402156fb371d41284851a651b8
 replaces="cmake-bootstrap>=0"
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	build_style=cmake
diff --git a/srcpkgs/crex/template b/srcpkgs/crex/template
index 2f455a0b0c72..d2bc1e536bf8 100644
--- a/srcpkgs/crex/template
+++ b/srcpkgs/crex/template
@@ -9,7 +9,6 @@ license="MIT"
 homepage="https://github.com/octobanana/crex"
 distfiles="https://github.com/octobanana/crex/archive/${version}.tar.gz"
 checksum=c6a166b7a1e696a7babeaf7c5728eece1624704a18357f827129fc95ef2ecc56
-patch_args=-Np1
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/cryfs/template b/srcpkgs/cryfs/template
index 80938f905686..87912c2b7fe7 100644
--- a/srcpkgs/cryfs/template
+++ b/srcpkgs/cryfs/template
@@ -17,7 +17,6 @@ homepage="https://www.cryfs.org"
 changelog="https://github.com/cryfs/cryfs/raw/master/ChangeLog.txt"
 distfiles="https://github.com/cryfs/cryfs/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=004c7fdf537062e197aaa0bcdafd2682904a279802441bb6063cb72c1fba52d2
-patch_args=-Np1
 
 if [ "${XBPS_CHECK_PKGS}" ]; then
 	configure_args+=" -DBUILD_TESTING=on"
diff --git a/srcpkgs/curl/template b/srcpkgs/curl/template
index 8f9026309bfe..d1531465db05 100644
--- a/srcpkgs/curl/template
+++ b/srcpkgs/curl/template
@@ -25,7 +25,6 @@ homepage="https://curl.haxx.se"
 changelog="https://curl.haxx.se/changes.html#${version//./_}"
 distfiles="${homepage}/download/${pkgname}-${version}.tar.bz2"
 checksum=6c0c28868cb82593859fc43b9c8fdb769314c855c05cf1b56b023acf855df8ea
-patch_args="-Np1"
 build_options="gnutls gssapi ldap rtmp ssh ssl zstd"
 build_options_default="ssh ssl zstd"
 vopt_conflict ssl gnutls
diff --git a/srcpkgs/cyrus-sasl/template b/srcpkgs/cyrus-sasl/template
index 5bfe46557991..32bcc8ebc6ba 100644
--- a/srcpkgs/cyrus-sasl/template
+++ b/srcpkgs/cyrus-sasl/template
@@ -22,7 +22,6 @@ license="BSD-3-Clause-Attribution"
 homepage="https://www.cyrusimap.org/sasl/"
 distfiles="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-${version}/cyrus-sasl-${version}.tar.gz"
 checksum=26866b1549b00ffd020f188a43c258017fa1c382b3ddadd8201536f72efb05d5
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/dbus-elogind/template b/srcpkgs/dbus-elogind/template
index e527e8260851..7e92ccf7cd2b 100644
--- a/srcpkgs/dbus-elogind/template
+++ b/srcpkgs/dbus-elogind/template
@@ -24,7 +24,6 @@ checksum=f77620140ecb4cdc67f37fb444f8a6bea70b5b6461f12f1cbe2cec60fa7de5fe
 conf_files="/etc/dbus-1/*.conf"
 replaces="dbus>=0"
 provides="dbus-${version}_${revision}"
-patch_args="-Np1"
 
 # Create dbus:22 system account.
 system_accounts="dbus:22"
diff --git a/srcpkgs/ddgtk/template b/srcpkgs/ddgtk/template
index d5f27bb40934..5d45aeb4a8b9 100644
--- a/srcpkgs/ddgtk/template
+++ b/srcpkgs/ddgtk/template
@@ -11,4 +11,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/gort818/ddgtk"
 distfiles="https://github.com/gort818/ddgtk/archive/${version}.tar.gz"
 checksum=0386336681b24d648cdce3daa0c2b83c77a69773296e97a8427b67cbd27531ed
-patch_args="-Np1"
diff --git a/srcpkgs/deluge/template b/srcpkgs/deluge/template
index e54a8d571817..283fcd62d7fd 100644
--- a/srcpkgs/deluge/template
+++ b/srcpkgs/deluge/template
@@ -15,7 +15,6 @@ license="GPL-3.0-or-later"
 homepage="https://deluge-torrent.org/"
 distfiles="https://ftp.osuosl.org/pub/deluge/source/2.0/deluge-${version}.tar.xz"
 checksum=7e7ae8e6ca2a2bf0d487227cecf81e27332f0b92b567cc2bda38e47d859da891
-patch_args="-Np1"
 
 system_accounts="deluge"
 deluge_homedir="/var/lib/deluge"
diff --git a/srcpkgs/diffr/template b/srcpkgs/diffr/template
index 0bff9a8bfd08..f1e8f096375b 100644
--- a/srcpkgs/diffr/template
+++ b/srcpkgs/diffr/template
@@ -10,7 +10,6 @@ homepage="https://github.com/mookid/diffr"
 changelog="https://github.com/mookid/diffr/raw/master/CHANGELOG.md"
 distfiles="https://github.com/mookid/diffr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=2613b57778df4466a20349ef10b9e022d0017b4aee9a47fb07e78779f444f8cb
-patch_args="-Np1"
 
 do_install() {
 	vbin "target/${RUST_TARGET}/release/diffr"
diff --git a/srcpkgs/docbook2x/template b/srcpkgs/docbook2x/template
index 92233feb030a..b9cfbe848d7f 100644
--- a/srcpkgs/docbook2x/template
+++ b/srcpkgs/docbook2x/template
@@ -2,7 +2,6 @@
 pkgname=docbook2x
 version=0.8.8
 revision=5
-patch_args="-Np1"
 wrksrc="docbook2X-${version}"
 build_style=gnu-configure
 configure_args="--without-resolver-jars --without-saxon-jars --without-xalan-jars"
diff --git a/srcpkgs/efitools/template b/srcpkgs/efitools/template
index 83dc738ccbee..5d26a4208de0 100644
--- a/srcpkgs/efitools/template
+++ b/srcpkgs/efitools/template
@@ -12,7 +12,6 @@ license="GPL-2.0-only"
 homepage="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git"
 distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snapshot/${pkgname}-${version}.tar.gz"
 checksum=0f315b36e7d1ba74bfc97ab9f304f0a3072c47578bbe5e42594acae381f9acfe
-patch_args="-Nup1"
 
 post_patch() {
 	case "${XBPS_TARGET_MACHINE}" in
diff --git a/srcpkgs/efivar/template b/srcpkgs/efivar/template
index ef311f9b3998..39be825fab29 100644
--- a/srcpkgs/efivar/template
+++ b/srcpkgs/efivar/template
@@ -2,7 +2,6 @@
 pkgname=efivar
 version=37
 revision=1
-patch_args="-Np1"
 build_style=gnu-makefile
 hostmakedepends="pkg-config"
 short_desc="Tools to manipulate EFI variables"
diff --git a/srcpkgs/electrum-ltc/template b/srcpkgs/electrum-ltc/template
index a9a629a057e8..d62c43b5fa14 100644
--- a/srcpkgs/electrum-ltc/template
+++ b/srcpkgs/electrum-ltc/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="https://electrum-ltc.org/"
 distfiles="https://github.com/pooler/electrum-ltc/archive/${version}.tar.gz"
 checksum="6f4049abacfdb125b968e841ec9bc01e386e475f3fac8534103ffea1257b0f0f"
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENCE
diff --git a/srcpkgs/embree/template b/srcpkgs/embree/template
index 849ec3c26c1d..575b9bcb401c 100644
--- a/srcpkgs/embree/template
+++ b/srcpkgs/embree/template
@@ -14,7 +14,6 @@ license="Apache-2.0"
 homepage="https://embree.github.io/"
 distfiles="https://github.com/$pkgname/$pkgname/archive/v$version.tar.gz"
 checksum=c0694f287fa1fbb382aba3a895702e248d92f7e89c0e5f64aefee965482ec04c
-patch_args=-Np1
 
 embree-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/empathy/template b/srcpkgs/empathy/template
index 1c70413842b3..dcbd10cc0c1d 100644
--- a/srcpkgs/empathy/template
+++ b/srcpkgs/empathy/template
@@ -25,7 +25,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://live.gnome.org/Empathy"
 distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
 checksum=7d86942ce97edd10ade0e6ae6a210d35e4d627fe4d223377d71fd1840bc6e3a3
-patch_args=-Np1
 disable_parallel_build=yes
 # Disable checks, the only work with an irc server in place.
 make_check=no
diff --git a/srcpkgs/enchant/template b/srcpkgs/enchant/template
index bc7ca9e5239d..69458ae39180 100644
--- a/srcpkgs/enchant/template
+++ b/srcpkgs/enchant/template
@@ -13,7 +13,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.abisource.com/projects/enchant/"
 distfiles="http://www.abisource.com/downloads/enchant/${version}/enchant-${version}.tar.gz"
 checksum=2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ettercap/template b/srcpkgs/ettercap/template
index 611b4e9aded7..ce206d8bdaf0 100644
--- a/srcpkgs/ettercap/template
+++ b/srcpkgs/ettercap/template
@@ -15,7 +15,6 @@ homepage="http://ettercap.github.com/ettercap/"
 distfiles="https://github.com/Ettercap/ettercap/archive/v${version}.tar.gz"
 checksum=d0c3ef88dfc284b61d3d5b64d946c1160fd04276b448519c1ae4438a9cdffaf3
 lib32disabled=yes
-patch_args=-Np1
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/exempi/template b/srcpkgs/exempi/template
index 3925ca272300..14753617953a 100644
--- a/srcpkgs/exempi/template
+++ b/srcpkgs/exempi/template
@@ -2,7 +2,6 @@
 pkgname=exempi
 version=2.5.0
 revision=1
-patch_args="-Np1"
 build_style=gnu-configure
 configure_args="--with-boost=${XBPS_CROSS_BASE}/usr --disable-static --disable-unittest"
 makedepends="zlib-devel expat-devel boost-devel"
diff --git a/srcpkgs/ext4magic/template b/srcpkgs/ext4magic/template
index 0d7ed70cf107..fe570a962647 100644
--- a/srcpkgs/ext4magic/template
+++ b/srcpkgs/ext4magic/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="http://sourceforge.net/projects/ext4magic/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=8d9c6a594f212aecf4eb5410d277caeaea3adc03d35378257dfd017ef20ea115
-patch_args="-Np1"
 
 CFLAGS='-DHAVE_SYS_TYPES_H'
 post_extract() {
diff --git a/srcpkgs/fbset/template b/srcpkgs/fbset/template
index 22c51fae0eb7..67a18dee57be 100644
--- a/srcpkgs/fbset/template
+++ b/srcpkgs/fbset/template
@@ -11,7 +11,6 @@ license="GPL-2.0-only"
 homepage="http://users.telenet.be/geertu/Linux/fbdev/"
 distfiles="${DEBIAN_SITE}/main/f/fbset/fbset_${version}.orig.tar.gz"
 checksum=517fa062d7b2d367f931a1c6ebb2bef84907077f0ce3f0c899e34490bbea9338
-patch_args="-Np1"
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/fcitx5-anthy/template b/srcpkgs/fcitx5-anthy/template
index d0f9ab1d735c..5ec150b4ce75 100644
--- a/srcpkgs/fcitx5-anthy/template
+++ b/srcpkgs/fcitx5-anthy/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="https://fcitx-im.org/wiki/Fcitx"
 distfiles="https://download.fcitx-im.org/fcitx5/fcitx5-anthy/fcitx5-anthy-${version}.tar.xz"
 checksum=22364003e737cbe4ea6eaa83d9d274a8df8e38dea61d8f4576560ee7d5eaf44d
-patch_args=-Np1
 
 fcitx5-anthy-icons_package() {
 	short_desc+=" - icons"
diff --git a/srcpkgs/fcitx5-qt/template b/srcpkgs/fcitx5-qt/template
index 0d3dd57ed9b4..73796e6e8762 100644
--- a/srcpkgs/fcitx5-qt/template
+++ b/srcpkgs/fcitx5-qt/template
@@ -16,7 +16,6 @@ homepage="https://fcitx-im.org/wiki/Fcitx"
 distfiles="https://download.fcitx-im.org/fcitx5/fcitx5-qt/fcitx5-qt-${version}.tar.xz"
 checksum=c954d20bc4e332c0977639dc579bd641a6860926bfd0efe62bc13ee02b43e872
 lib32disabled=yes
-patch_args=-Np1
 
 if [ "$XBPS_TARGET_NOATOMIC8" ]; then
 	configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
diff --git a/srcpkgs/fcitx5/template b/srcpkgs/fcitx5/template
index db13f6ba807c..daedc89f5b3e 100644
--- a/srcpkgs/fcitx5/template
+++ b/srcpkgs/fcitx5/template
@@ -23,7 +23,6 @@ distfiles="https://download.fcitx-im.org/fcitx5/fcitx5/fcitx5-${version}.tar.xz
  https://download.fcitx-im.org/data/en_dict-${_en_dict_ver}.tar.gz"
 checksum="0ecf6cc763952ff3cbe6bd47d6e40f3f7987a4973547251af3cd1482f33c516f
  c44a5d7847925eea9e4d2d04748d442cd28dd9299a0b572ef7d91eac4f5a6ceb"
-patch_args=-Np1
 skip_extraction=en_dict-${_en_dict_ver}.tar.gz
 lib32disabled=yes
 
diff --git a/srcpkgs/firebird3/template b/srcpkgs/firebird3/template
index a84cc7ef9234..5675ac663073 100644
--- a/srcpkgs/firebird3/template
+++ b/srcpkgs/firebird3/template
@@ -36,7 +36,6 @@ homepage="https://www.firebirdsql.org/en/start/"
 distfiles="https://github.com/FirebirdSQL/firebird/releases/download/R${_uver%_*}/Firebird-${version}-${_build}.tar.bz2"
 checksum=34c1d2a29bbaf288e682cd1b5f8083f2baf73f351062245ace0bee35a3f7d35f
 replaces="firebird>=0"
-patch_args="-Np1"
 nocross="Fails to build gpre_boot for host but builds for target"
 
 CFLAGS="-fno-strict-aliasing"
diff --git a/srcpkgs/flac/template b/srcpkgs/flac/template
index 8166b9f00655..78d111c2e244 100644
--- a/srcpkgs/flac/template
+++ b/srcpkgs/flac/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause, GPL-2.0-or-later"
 homepage="http://flac.sourceforge.net/"
 distfiles="https://downloads.xiph.org/releases/flac/flac-${version}.tar.xz"
 checksum=213e82bd716c9de6db2f98bcadbc4c24c7e2efe8c75939a1a84e28539c4e1748
-patch_args="-Np1"
 # the tests fail when run as root and as such break in the CI containers
 make_check=ci-skip
 
diff --git a/srcpkgs/flann/template b/srcpkgs/flann/template
index 055c935a0cbb..af43cccd7808 100644
--- a/srcpkgs/flann/template
+++ b/srcpkgs/flann/template
@@ -2,7 +2,6 @@
 pkgname=flann
 version=1.9.1
 revision=4
-patch_args="-Np1"
 build_style=cmake
 makedepends="gtest-devel hdf5-devel"
 short_desc="Fast library for approximate nearest neighbors"
diff --git a/srcpkgs/fonttosfnt/template b/srcpkgs/fonttosfnt/template
index 1a85e32029eb..643173ceb6c1 100644
--- a/srcpkgs/fonttosfnt/template
+++ b/srcpkgs/fonttosfnt/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.bz2"
 checksum=1a1bb4ef25856dea7de3d491ae7231493225b400bee0f6a1f949017ffd203a64
-patch_args="-Np1"
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/fortune-mod/template b/srcpkgs/fortune-mod/template
index 27824c3617e3..59f0aa805009 100644
--- a/srcpkgs/fortune-mod/template
+++ b/srcpkgs/fortune-mod/template
@@ -10,7 +10,6 @@ license="BSD-4-Clause-UC"
 homepage="http://www.redellipse.net/code/fortune"
 distfiles="${DEBIAN_SITE}/main/f/fortune-mod/${pkgname}_${version}.orig.tar.gz"
 checksum=fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" fortune-mod"
diff --git a/srcpkgs/fwupd/template b/srcpkgs/fwupd/template
index b0828273d2f0..6e6612d9bfd9 100644
--- a/srcpkgs/fwupd/template
+++ b/srcpkgs/fwupd/template
@@ -29,7 +29,6 @@ homepage="https://github.com/hughsie/fwupd"
 distfiles="https://github.com/hughsie/fwupd/archive/${version}.tar.gz"
 checksum=4abecf930f02fc5b165831682f3915cc7f0e82e73be2e187e761220ae275a1a3
 replaces="fwupdate>=0"
-patch_args=-Np1
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|i686*)
diff --git a/srcpkgs/gcc6/template b/srcpkgs/gcc6/template
index 352ae9bbff52..88d4f729675b 100644
--- a/srcpkgs/gcc6/template
+++ b/srcpkgs/gcc6/template
@@ -25,7 +25,6 @@ checksum="
 skip_extraction="ecj-4.9.jar"
 nopie=yes
 lib32disabled=yes
-patch_args="-Np1"
 nocross=yes
 python_version=2 #unverified
 
diff --git a/srcpkgs/gdb/template b/srcpkgs/gdb/template
index 9648e927efad..56c0e01630b5 100644
--- a/srcpkgs/gdb/template
+++ b/srcpkgs/gdb/template
@@ -21,7 +21,6 @@ homepage="https://www.gnu.org/software/gdb/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=aaa1223d534c9b700a8bec952d9748ee1977513f178727e1bee520ee000b4f29
 python_version=3
-patch_args="-Np1"
 
 if [ "${CROSS_BUILD}" ]; then
 	# Make python3.x detection work in cross builds
diff --git a/srcpkgs/geeqie/template b/srcpkgs/geeqie/template
index d7fa37a384d3..f3ac2cd2859a 100644
--- a/srcpkgs/geeqie/template
+++ b/srcpkgs/geeqie/template
@@ -15,7 +15,6 @@ homepage="http://www.geeqie.org"
 changelog="http://www.geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=blob_plain;f=NEWS;hb=HEAD"
 distfiles="http://www.geeqie.org/geeqie-${version}.tar.xz"
 checksum="48f8a4474454d182353100e43878754b76227f3b8f30cfc258afc9d90a4e1920"
-patch_args="-Np1"
 
 CFLAGS="-Wno-error -fcommon"
 
diff --git a/srcpkgs/gettext/template b/srcpkgs/gettext/template
index 3c8250b976be..3cece9b46621 100644
--- a/srcpkgs/gettext/template
+++ b/srcpkgs/gettext/template
@@ -22,7 +22,6 @@ homepage="https://www.gnu.org/software/gettext/"
 changelog="https://git.savannah.gnu.org/cgit/gettext.git/plain/NEWS"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c77d0da3102aec9c07f43671e60611ebff89a996ef159497ce8e59d075786b12
-patch_args=-Np1
 
 subpackages="gettext-devel-examples gettext-devel gettext-devel-tools"
 unset _intl_lib
diff --git a/srcpkgs/ghc/template b/srcpkgs/ghc/template
index 0b1440b2f6d9..082c56f70358 100644
--- a/srcpkgs/ghc/template
+++ b/srcpkgs/ghc/template
@@ -15,7 +15,6 @@ license="BSD-3-Clause"
 homepage="http://www.haskell.org/ghc/"
 distfiles="http://www.haskell.org/ghc/dist/${version%[!0-9]}/${pkgname}-${version%[!0-9]}-src.tar.xz"
 checksum=f0505e38b2235ff9f1090b51f44d6c8efd371068e5a6bb42a2a6d8b67b5ffc2d
-patch_args="-Np1"
 nocross=yes # this is conditionally unset for cross bindist
 nodebug=yes # work around assembler error "Fatal error: duplicate .debug_line sections"
 _bindir="/usr/lib/${pkgname}-${version}/bin"
diff --git a/srcpkgs/ghdl/template b/srcpkgs/ghdl/template
index 1b6f0d50e327..e756d8c3cd87 100644
--- a/srcpkgs/ghdl/template
+++ b/srcpkgs/ghdl/template
@@ -18,7 +18,6 @@ homepage="https://github.com/ghdl/ghdl"
 distfiles="https://github.com/ghdl/ghdl/archive/v${version}.tar.gz"
 checksum=cb424766fbe831ff41bec84016a6af0406d735c272b0b639d507c3503df30495
 nocross=yes
-patch_args="-Np1"
 make_check=extended
 
 build_options="llvm mcode"
diff --git a/srcpkgs/ghostscript/template b/srcpkgs/ghostscript/template
index 1d7aed4dc834..5f1b5b7b64e3 100644
--- a/srcpkgs/ghostscript/template
+++ b/srcpkgs/ghostscript/template
@@ -12,7 +12,6 @@ license="AGPL-3.0-or-later, CPL-1.0"
 homepage="https://www.ghostscript.com/"
 distfiles="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${version//./}/ghostscript-${version}.tar.xz"
 checksum=c2b7b43cde600f4e70efb2cd95865f6d884a67315c3de235914697d8ccde6e3b
-patch_args="-Np1"
 
 build_options="cups"
 build_options_default="cups"
diff --git a/srcpkgs/gjs/template b/srcpkgs/gjs/template
index 27e376b4d092..4d73ae96b599 100644
--- a/srcpkgs/gjs/template
+++ b/srcpkgs/gjs/template
@@ -15,7 +15,6 @@ homepage="https://wiki.gnome.org/action/show/Projects/Gjs"
 changelog="https://gitlab.gnome.org/GNOME/gjs/blob/gnome-3-30/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=2ffa3ec2041104fcf9ab5dcc8f7cd9caa062278590318ffef9541956af5b4c70
-patch_args="-Np1"
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index b361bb98a1ea..c62a4d2aedf1 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -9,7 +9,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
 homepage="http://www.gnu.org/software/libc"
 distfiles="${GNU_SITE}/glibc/glibc-${version}.tar.xz"
 checksum=1627ea54f5a1a8467032563393e0901077626dc66f37f10ee6363bb722222836
-patch_args="-Np1"
 # Do not strip these files, objcopy errors out.
 nostrip_files="
 	XBS5_ILP32_OFFBIG
diff --git a/srcpkgs/glm/template b/srcpkgs/glm/template
index 47369d94e0da..f40f6fcf8fae 100644
--- a/srcpkgs/glm/template
+++ b/srcpkgs/glm/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="http://glm.g-truc.net"
 distfiles="https://github.com/g-truc/glm/releases/download/${version}/glm-${version}.zip"
 checksum=37e2a3d62ea3322e43593c34bae29f57e3e251ea89f4067506c94043769ade4c
-patch_args="-Np1"
 
 # No longer has install target
 # Install manually
diff --git a/srcpkgs/glu/template b/srcpkgs/glu/template
index b655d49fe569..49d8c41d9488 100644
--- a/srcpkgs/glu/template
+++ b/srcpkgs/glu/template
@@ -13,7 +13,6 @@ homepage="http://cgit.freedesktop.org/mesa/glu/"
 distfiles="https://mesa.freedesktop.org/archive/glu/glu-${version}.tar.gz"
 checksum=f6f484cfcd51e489afe88031afdea1e173aa652697e4c19ddbcb8260579a10f7
 replaces="libGLU<9.0"
-patch_args="-Np1"
 
 glu-devel_package() {
 	depends="MesaLib-devel>=9.0 glu>=${version}_${revision}"
diff --git a/srcpkgs/gnac/template b/srcpkgs/gnac/template
index 489783bdd850..ad01a1e97f91 100644
--- a/srcpkgs/gnac/template
+++ b/srcpkgs/gnac/template
@@ -18,7 +18,6 @@ license="GPL-3.0-or-later"
 homepage="http://gnac.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=8f9c4731bbc40fde57c311a2a7fabe4e3200198abfe7415c659b98a2d54869da
-patch_args="-Np1"
 CFLAGS="-fPIC -fcommon"
 
 pre_configure() {
diff --git a/srcpkgs/gnome-builder/template b/srcpkgs/gnome-builder/template
index a9011a5c7f80..ad0cc8cc6f20 100644
--- a/srcpkgs/gnome-builder/template
+++ b/srcpkgs/gnome-builder/template
@@ -21,7 +21,6 @@ homepage="https://wiki.gnome.org/Apps/Builder"
 changelog="https://gitlab.gnome.org/GNOME/gnome-builder/raw/gnome-builder-3-40/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=b2844cfde821311939fb6ed3b18a49cd331413aea720393091583ab6a99e719a
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)
diff --git a/srcpkgs/gnome-doc-utils/template b/srcpkgs/gnome-doc-utils/template
index f846f0e61253..8c55060aa4ae 100644
--- a/srcpkgs/gnome-doc-utils/template
+++ b/srcpkgs/gnome-doc-utils/template
@@ -15,7 +15,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Projects/GnomeDocUtils"
 distfiles="${GNOME_SITE}/${pkgname}/0.20/${pkgname}-${version}.tar.xz"
 checksum=cb0639ffa9550b6ddf3b62f3b1add92fb92ab4690d351f2353cffe668be8c4a6
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/gnome-panel/template b/srcpkgs/gnome-panel/template
index 315d4fc1f468..109489d8bba7 100644
--- a/srcpkgs/gnome-panel/template
+++ b/srcpkgs/gnome-panel/template
@@ -15,7 +15,6 @@ license="GPL-2.0-or-later, GFDL-1.1-or-later, LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Projects/GnomePanel"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=9f135075edc666cf2b9ca91de35c6703e2b1771c10a7707414fb656c28a59b3b
-patch_args="-Np1"
 
 gnome-panel-devel_package() {
 	depends="glib-devel gtk+3-devel ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/gnome-todo/template b/srcpkgs/gnome-todo/template
index 56bd6a405af2..5fe6d1d7bc84 100644
--- a/srcpkgs/gnome-todo/template
+++ b/srcpkgs/gnome-todo/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Todo"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=c7571fc040d8901dd0e528282ef0655687f23f29d304057c72548ab3e2c2cf23
-patch_args="-Np1"
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/gobject-introspection/template b/srcpkgs/gobject-introspection/template
index c6e616dd862f..6f8bffd88d22 100644
--- a/srcpkgs/gobject-introspection/template
+++ b/srcpkgs/gobject-introspection/template
@@ -15,7 +15,6 @@ homepage="https://wiki.gnome.org/Projects/GObjectIntrospection"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=d229242481a201b84a0c66716de1752bca41db4133672cfcfb37c93eb6e54a27
 python_version=3
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" gobject-introspection qemu-user-static prelink-cross"
diff --git a/srcpkgs/gpicview/template b/srcpkgs/gpicview/template
index 24ae856fa344..19de5b5cb1e8 100644
--- a/srcpkgs/gpicview/template
+++ b/srcpkgs/gpicview/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=38466058e53702450e5899193c4b264339959b563dd5cd81f6f690de32d82942
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/graphene/template b/srcpkgs/graphene/template
index 83bb559df998..40920cb1f5b7 100644
--- a/srcpkgs/graphene/template
+++ b/srcpkgs/graphene/template
@@ -14,7 +14,6 @@ license="MIT"
 homepage="https://github.com/ebassi/graphene"
 distfiles="${GNOME_SITE}/graphene/${version%.*}/graphene-${version}.tar.xz"
 checksum=80ae57723e4608e6875626a88aaa6f56dd25df75024bd16e9d77e718c3560b25
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) configure_args+=" -Dsse2=true" ;;
diff --git a/srcpkgs/growlight/template b/srcpkgs/growlight/template
index 863c318d4081..cc8ac363ec6f 100644
--- a/srcpkgs/growlight/template
+++ b/srcpkgs/growlight/template
@@ -15,7 +15,6 @@ license="GPL-3.0-or-later"
 homepage="https://nick-black.com/dankwiki/index.php/Growlight"
 distfiles="https://github.com/dankamongmen/growlight/archive/v${version}.tar.gz"
 checksum=ef26904412ff6134018c350fe9e1f943d37fb82a623d06327195f9bd2b939408
-patch_args=-Np1
 
 build_options="man zfs"
 
diff --git a/srcpkgs/grub-btrfs/template b/srcpkgs/grub-btrfs/template
index 2527806d6999..0e646c9c3f82 100644
--- a/srcpkgs/grub-btrfs/template
+++ b/srcpkgs/grub-btrfs/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/Antynea/grub-btrfs"
 distfiles="https://github.com/Antynea/grub-btrfs/archive/v${version}.tar.gz"
 checksum=62461133c697643e98a608239773f500edee3e4055c5729fef6639d1cd610243
-patch_args=-Np1
 
 post_install() {
 	rm -rf -- "${DESTDIR}"/usr/lib/systemd
diff --git a/srcpkgs/grub/template b/srcpkgs/grub/template
index 11cbdc495f67..69cea9ae19a3 100644
--- a/srcpkgs/grub/template
+++ b/srcpkgs/grub/template
@@ -16,7 +16,6 @@ checksum=e5292496995ad42dabe843a0192cf2a2c502e7ffcc7479398232b10a472df77d
 
 archs="i686* x86_64* aarch64* ppc ppc-musl ppc64*"
 nopie=yes
-patch_args=-Np1
 
 subpackages="grub-utils"
 # _SUPPLEMENTARY_BUILDS is a list of <TARGET>-<PLATFORN> version of grub to build
diff --git a/srcpkgs/gsimplecal-gtk2/template b/srcpkgs/gsimplecal-gtk2/template
index c7339f62d60e..73cf3bd39b88 100644
--- a/srcpkgs/gsimplecal-gtk2/template
+++ b/srcpkgs/gsimplecal-gtk2/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause"
 homepage="http://dmedvinsky.github.io/gsimplecal/"
 distfiles="https://github.com/dmedvinsky/${pkgname%-*}/archive/v${version}.tar.gz"
 checksum="660cac7333d3507203a008e142e2b8f5dfcf0735b6ccabdd8d3d902b5d2c40e9"
-patch_args=-Np1
 
 replaces="gsimplecal-gtk3>=0"
 
diff --git a/srcpkgs/gtk-doc/template b/srcpkgs/gtk-doc/template
index 9f3384a60472..ab149d7f33d5 100644
--- a/srcpkgs/gtk-doc/template
+++ b/srcpkgs/gtk-doc/template
@@ -17,4 +17,3 @@ homepage="http://www.gtk.org/gtk-doc/"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=d5e3b3f837174d246fa8482455740627efec1e5210aa15d0c7989ca68f72bb51
 python_version=3
-patch_args="-Np1"
diff --git a/srcpkgs/hostapd/template b/srcpkgs/hostapd/template
index 20e16a32fc0f..87cf12033e40 100644
--- a/srcpkgs/hostapd/template
+++ b/srcpkgs/hostapd/template
@@ -12,7 +12,6 @@ license="BSD-3-Clause"
 homepage="http://w1.fi/hostapd/"
 distfiles="http://w1.fi/releases/${pkgname}-${version}.tar.gz"
 checksum=881d7d6a90b2428479288d64233151448f8990ab4958e0ecaca7eeb3c9db2bd7
-patch_args=-Np1
 
 do_configure() {
 	cp -f ${FILESDIR}/config .config
diff --git a/srcpkgs/ifstatus/template b/srcpkgs/ifstatus/template
index f1e9d9f4d802..2515a71d669a 100644
--- a/srcpkgs/ifstatus/template
+++ b/srcpkgs/ifstatus/template
@@ -4,7 +4,6 @@ version=2.0.0
 revision=1
 wrksrc=ifstatus-v${version}
 build_style=gnu-makefile
-patch_args="-Np1"
 hostmakedepends="pkg-config"
 makedepends="ncurses-devel"
 short_desc="Display network traffic on console"
diff --git a/srcpkgs/iio-sensor-proxy/template b/srcpkgs/iio-sensor-proxy/template
index e8cff0494b99..a47ca09e8b2d 100644
--- a/srcpkgs/iio-sensor-proxy/template
+++ b/srcpkgs/iio-sensor-proxy/template
@@ -11,7 +11,6 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.freedesktop.org/hadess/iio-sensor-proxy"
 distfiles="${homepage}/-/archive/${version}/${pkgname}-${version}.tar.gz"
 checksum=77f6009050afcabdf324b187992c33c6f1d937fc9e2c18ec76d9120fa107f3ba
-patch_args="-Np1"
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/incron/template b/srcpkgs/incron/template
index cd7e3f34eaed..22082e501061 100644
--- a/srcpkgs/incron/template
+++ b/srcpkgs/incron/template
@@ -8,7 +8,6 @@ license="X11"
 homepage="https://github.com/ar-/incron"
 distfiles="https://github.com/ar-/incron/archive/${version}.tar.gz"
 checksum=cce80bd723bafce59f35464f2f851d02707e32efa102e2b941ed0e42bdd38f91
-patch_args="-Np1"
 
 make_dirs="/var/spool/incron 0755 root root
  /etc/incron.d 0755 root root"
diff --git a/srcpkgs/inkscape/template b/srcpkgs/inkscape/template
index 6e97a43a4ed5..84d99227e745 100644
--- a/srcpkgs/inkscape/template
+++ b/srcpkgs/inkscape/template
@@ -23,7 +23,6 @@ homepage="http://inkscape.org/"
 distfiles="https://media.inkscape.org/dl/resources/file/inkscape-${version}.tar.xz"
 checksum=71e6e8ce3fdf702f59dbc4a276665eb982eb7822b029bbdbeced2df4301795e6
 python_version=3
-patch_args=-Np1
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/interbench/template b/srcpkgs/interbench/template
index 26a7f9e41d27..ae38e3ca9561 100644
--- a/srcpkgs/interbench/template
+++ b/srcpkgs/interbench/template
@@ -10,7 +10,6 @@ homepage="http://users.on.net/~ckolivas/interbench"
 distfiles="http://ck.kolivas.org/apps/interbench/$pkgname-$version.tar.bz2"
 checksum=89d438b28aef22d26e79812762a57a9f9344a8dd8826edebfe60dad48ee1c784
 
-patch_args="-p1"
 
 pre_build() {
 	cp $FILESDIR/Makefile .
diff --git a/srcpkgs/ispc/template b/srcpkgs/ispc/template
index 585115923c0d..9c3acb42a9cf 100644
--- a/srcpkgs/ispc/template
+++ b/srcpkgs/ispc/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause"
 homepage="https://ispc.github.io"
 distfiles="https://github.com/ispc/ispc/archive/v${version}.tar.gz"
 checksum=2658ff00dc045ac9fcefbf6bd26dffaf723b059a942a27df91bbb61bc503a285
-patch_args="-p1"
 nocross=yes
 nopie=yes
 
diff --git a/srcpkgs/jasper/template b/srcpkgs/jasper/template
index ae02985e45d0..588dc517f017 100644
--- a/srcpkgs/jasper/template
+++ b/srcpkgs/jasper/template
@@ -12,7 +12,6 @@ license="JasPer-2.0"
 homepage="http://www.ece.uvic.ca/~mdadams/jasper"
 distfiles="https://github.com/mdadams/jasper/archive/version-${version}.tar.gz"
 checksum=f5bc48e2884bcabd2aca1737baff4ca962ec665b6eb673966ced1f7adea07edb
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/json-c/template b/srcpkgs/json-c/template
index 02e4d9d75ca0..daafc44f97ac 100644
--- a/srcpkgs/json-c/template
+++ b/srcpkgs/json-c/template
@@ -12,7 +12,6 @@ license="MIT"
 homepage="https://json-c.github.io/json-c"
 distfiles="https://s3.amazonaws.com/json-c_releases/releases/${pkgname}-${version}.tar.gz"
 checksum=b8d80a1ddb718b3ba7492916237bbf86609e9709fb007e7f7d4322f02341a4c6
-patch_args="-Np1"
 
 CFLAGS="-Wno-error"
 
diff --git a/srcpkgs/judy/template b/srcpkgs/judy/template
index 15bdb3548fa4..899c7a7622c6 100644
--- a/srcpkgs/judy/template
+++ b/srcpkgs/judy/template
@@ -11,7 +11,6 @@ homepage="http://judy.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/judy/Judy-${version}.tar.gz"
 checksum=d2704089f85fdb6f2cd7e77be21170ced4b4375c03ef1ad4cf1075bd414a63eb
 disable_parallel_build=yes
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 post_extract() {
diff --git a/srcpkgs/julia/template b/srcpkgs/julia/template
index 414e261e1c67..0e766ca53906 100644
--- a/srcpkgs/julia/template
+++ b/srcpkgs/julia/template
@@ -30,7 +30,6 @@ license="MIT"
 homepage="https://julialang.org"
 distfiles="https://github.com/JuliaLang/julia/releases/download/v${version}/julia-${version}-full.tar.gz"
 checksum=71d8e40611361370654e8934c407b2dec04944cf3917c5ecb6482d6b85ed767f
-patch_args=-Np1
 nocross="build system is a mess"
 # Targets for the vendored symlinks mentioned above
 shlib_requires="libgit2.so.1.0 libcurl.so.4 libmpfr.so.6 libgmp.so.10
diff --git a/srcpkgs/kakasi/template b/srcpkgs/kakasi/template
index 1a4bc42eb4f4..ad0fcbcc8fac 100644
--- a/srcpkgs/kakasi/template
+++ b/srcpkgs/kakasi/template
@@ -10,7 +10,6 @@ license="GPL-2.0-or-later"
 homepage="http://kakasi.namazu.org/"
 distfiles="http://kakasi.namazu.org/stable/kakasi-${version}.tar.gz"
 checksum=004276fd5619c003f514822d82d14ae83cd45fb9338e0cb56a44974b44961893
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" kakasi"
diff --git a/srcpkgs/kitty/template b/srcpkgs/kitty/template
index 5a8dcc8b4fb8..6ad4cffa0777 100644
--- a/srcpkgs/kitty/template
+++ b/srcpkgs/kitty/template
@@ -14,7 +14,6 @@ homepage="https://sw.kovidgoyal.net/kitty/"
 changelog="https://sw.kovidgoyal.net/kitty/changelog.html"
 distfiles="https://github.com/kovidgoyal/kitty/releases/download/v${version}/kitty-${version}.tar.xz"
 checksum=43596a1c5645fe476e96e748bb3b44afd680d84b4af409cd36b33de19b31933d
-patch_args="-Np1"
 python_version=3
 LDFLAGS+=" -Wl,-z,stack-size=2097152"
 
diff --git a/srcpkgs/kmymoney/template b/srcpkgs/kmymoney/template
index 3b7e889f93a8..7a95dd99ae13 100644
--- a/srcpkgs/kmymoney/template
+++ b/srcpkgs/kmymoney/template
@@ -19,7 +19,6 @@ license="GPL-2.0-or-later"
 homepage="https://kmymoney.org"
 distfiles="${KDE_SITE}/kmymoney/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=df7b9f78e8596f99d28295ca738708f0655ee057789dfd921c7b1bab96578298
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DENABLE_LIBICAL=0"
diff --git a/srcpkgs/kodi-rpi/template b/srcpkgs/kodi-rpi/template
index fc0fbd05ffba..d92a4f6217d8 100644
--- a/srcpkgs/kodi-rpi/template
+++ b/srcpkgs/kodi-rpi/template
@@ -13,7 +13,6 @@ distfiles="https://github.com/xbmc/xbmc/archive/${version}-${_codename}.tar.gz"
 checksum=6deb28f725880b1ab6c5920b55ef1190a79b0684ffb30b6e13b199d23a0af296
 LDFLAGS+=" -Wl,-z,stack-size=1048576"
 python_version=2
-patch_args="-Np1"
 
 nopie=yes
 archs="armv6l* armv7l*"
diff --git a/srcpkgs/kodi/template b/srcpkgs/kodi/template
index c64d926eb010..8f10f4f04887 100644
--- a/srcpkgs/kodi/template
+++ b/srcpkgs/kodi/template
@@ -33,7 +33,6 @@ checksum+=" 071e414e61b795f2ff9015b21a85fc009dde967f27780d23092643916538a57a"
 skip_extraction="crossguid-8f399e8bd4.tar.gz libdvdcss-1.4.2-Leia-Beta-5.tar.gz
  libdvdread-6.0.0-Leia-Alpha-3.tar.gz libdvdnav-6.0.0-Leia-Alpha-3.tar.gz"
 python_version=3
-patch_args="-Np1"
 LDFLAGS="-Wl,-z,stack-size=1048576"
 
 if [ "$XBPS_WORDSIZE" = 32 ]; then
diff --git a/srcpkgs/kreport/template b/srcpkgs/kreport/template
index 2dade86a8f47..af0a9d8509b0 100644
--- a/srcpkgs/kreport/template
+++ b/srcpkgs/kreport/template
@@ -12,7 +12,6 @@ license="LGPL-2.0-or-later"
 homepage="https://community.kde.org/KReport"
 distfiles="${KDE_SITE}/kreport/src/kreport-${version}.tar.xz"
 checksum=22716d719654e8f887fe4d33654e252ddf3d3d818c44e15a8af0e6f2e7d6ccd7
-patch_args=-Np1
 
 kreport-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision} kproperty-devel qt5-declarative-devel"
diff --git a/srcpkgs/kwin/template b/srcpkgs/kwin/template
index 7cb252b2d00b..23cf78df1ff1 100644
--- a/srcpkgs/kwin/template
+++ b/srcpkgs/kwin/template
@@ -19,7 +19,6 @@ license="GPL-2.0-or-later"
 homepage="https://invent.kde.org/plasma/kwin"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=5506ee878e151734893bbcc0a70d6499c894b8986488c9c57285de1deb422850
-patch_args=-Np1
 
 build_options="pipewire"
 build_options_default="pipewire"
diff --git a/srcpkgs/libbaseencode/template b/srcpkgs/libbaseencode/template
index d5929ad7bb51..1c9299b1beae 100644
--- a/srcpkgs/libbaseencode/template
+++ b/srcpkgs/libbaseencode/template
@@ -9,7 +9,6 @@ license="Apache-2.0"
 homepage="https://github.com/paolostivanin/libbaseencode"
 distfiles="https://github.com/paolostivanin/libbaseencode/archive/v${version}.tar.gz"
 checksum=a183d7cf30d931b2a078d6f0ef64616b71ab26f9258e5f4e191778c7ace7175d
-patch_args=-Np1
 
 libbaseencode-devel_package() {
 	depends="libbaseencode-${version}_${revision}"
diff --git a/srcpkgs/libcotp/template b/srcpkgs/libcotp/template
index 88337290d1e8..9e147ff7deb6 100644
--- a/srcpkgs/libcotp/template
+++ b/srcpkgs/libcotp/template
@@ -11,7 +11,6 @@ license="Apache-2.0"
 homepage="https://github.com/paolostivanin/libcotp"
 distfiles="https://github.com/paolostivanin/libcotp/archive/v${version}.tar.gz"
 checksum=25b45ffa4aece5cc689503ebea7356a2f760c194f0c41805934495d2fe7165b1
-patch_args=-Np1
 
 libcotp-devel_package() {
 	depends="libcotp-${version}_${revision}"
diff --git a/srcpkgs/libextractor/template b/srcpkgs/libextractor/template
index 884dbd8c09e8..29d5b8df01f8 100644
--- a/srcpkgs/libextractor/template
+++ b/srcpkgs/libextractor/template
@@ -14,7 +14,6 @@ license="GPL-3.0-or-later"
 homepage="https://www.gnu.org/software/libextractor/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=16f633ab8746a38547c4a1da3f4591192b0825ad83c4336f0575b85843d8bd8f
-patch_args="-Np1"
 
 post_install() {
 	sed -i "s|\(-specs=.*hardened-ld\)||g" ${DESTDIR}/usr/lib/pkgconfig/libextractor.pc
diff --git a/srcpkgs/libfcitx-qt5/template b/srcpkgs/libfcitx-qt5/template
index 057259b40232..c519a3b617bc 100644
--- a/srcpkgs/libfcitx-qt5/template
+++ b/srcpkgs/libfcitx-qt5/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
 homepage="https://fcitx-im.org/"
 distfiles="http://download.fcitx-im.org/fcitx-qt5/fcitx-qt5-${version}.tar.xz"
 checksum=e5c3ccdf406c19bde48ab5f59ac208967c3ca4f520626cdb66baf63f6160d946
-patch_args=-Np1
 
 post_install() {
 	vlicense COPYING.BSD
diff --git a/srcpkgs/libgcrypt/template b/srcpkgs/libgcrypt/template
index 3a6032d6cc6c..e466a315e7f3 100644
--- a/srcpkgs/libgcrypt/template
+++ b/srcpkgs/libgcrypt/template
@@ -11,7 +11,6 @@ license="LGPL-2.1-or-later"
 homepage="https://www.gnupg.org"
 distfiles="https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${version}.tar.bz2"
 checksum=97ebe4f94e2f7e35b752194ce15a0f3c66324e0ff6af26659bbfb5ff2ec328fd
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" ac_cv_sys_symbol_underscore=no"
diff --git a/srcpkgs/libgpg-error/template b/srcpkgs/libgpg-error/template
index 309860f3f5a7..98a7c475d1d3 100644
--- a/srcpkgs/libgpg-error/template
+++ b/srcpkgs/libgpg-error/template
@@ -9,7 +9,6 @@ license="LGPL-2.1-or-later, GPL-2.0-or-later"
 homepage="https://www.gnupg.org"
 distfiles="https://www.gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=fc07e70f6c615f8c4f590a8e37a9b8dd2e2ca1e9408f8e60459c67452b925e23
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends="qemu-user-static"
diff --git a/srcpkgs/libhugetlbfs/template b/srcpkgs/libhugetlbfs/template
index 33a645b07753..3a9de8e8d2cd 100644
--- a/srcpkgs/libhugetlbfs/template
+++ b/srcpkgs/libhugetlbfs/template
@@ -13,7 +13,6 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/libhugetlbfs/libhugetlbfs"
 distfiles="https://github.com/${pkgname}/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=b70672f1e807c61b7eb3adf41c1903b42917951f2e7f8aef6821841700c04479
-patch_args="-Np1"
 CFLAGS="-fPIC"
 
 do_check() {
diff --git a/srcpkgs/libical/template b/srcpkgs/libical/template
index 2d97ec032b62..a167a7b4f2e3 100644
--- a/srcpkgs/libical/template
+++ b/srcpkgs/libical/template
@@ -15,7 +15,6 @@ license="LGPL-2.1-only, MPL-2.0"
 homepage="http://libical.github.io/libical/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=09fecacaf75ba5a242159e3a9758a5446b5ce4d0ab684f98a7040864e1d1286f
-patch_args="-Np1"
 disable_parallel_build=yes
 
 build_options="gir"
diff --git a/srcpkgs/libid3tag/template b/srcpkgs/libid3tag/template
index 6ffa35b9387d..bd946e222c28 100644
--- a/srcpkgs/libid3tag/template
+++ b/srcpkgs/libid3tag/template
@@ -2,7 +2,6 @@
 pkgname=libid3tag
 version=0.15.1b
 revision=8
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="pkg-config gperf"
 makedepends="zlib-devel"
diff --git a/srcpkgs/libknet1/template b/srcpkgs/libknet1/template
index bdd6d2b14db1..d261c8c36c9d 100644
--- a/srcpkgs/libknet1/template
+++ b/srcpkgs/libknet1/template
@@ -17,7 +17,6 @@ homepage="https://www.kronosnet.org"
 distfiles="https://kronosnet.org/releases/kronosnet-${version}.tar.bz2"
 checksum=c2ee20a9b5b0791ed5379b38b0b51d549603933925a839f045455553f03e6114
 
-patch_args='-Np1'
 
 CFLAGS="-Wno-format-truncation"
 
diff --git a/srcpkgs/libode/template b/srcpkgs/libode/template
index a899f1024e4a..f6c855cbce75 100644
--- a/srcpkgs/libode/template
+++ b/srcpkgs/libode/template
@@ -12,7 +12,6 @@ license="LGPL-2/BSD"
 homepage="http://www.ode.org"
 distfiles="https://bitbucket.org/odedevs/ode/downloads/ode-${version}.tar.gz"
 checksum=4ba3b76f9c1314160de483b3db92b0569242a07452cbb25b368e75deb3cabf27
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libogdf/template b/srcpkgs/libogdf/template
index 5ca0549acc51..49090dc3a93c 100644
--- a/srcpkgs/libogdf/template
+++ b/srcpkgs/libogdf/template
@@ -15,7 +15,6 @@ homepage="https://ogdf.uos.de/"
 distfiles="https://ogdf.uos.de/wp-content/uploads/2019/04/ogdf-snapshot-${version//./-}.zip"
 checksum=347c3fa8dcdbb094f9c43008cbc2934bc5a64a532af4d3fe360a5fa54488440f
 nocross="can't find cpuid.h headers"
-patch_args=-Np1
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	broken="Non optional usage of broken mallinfo"
diff --git a/srcpkgs/libopenshot/template b/srcpkgs/libopenshot/template
index 7a3a5a2cfd9d..595ff6f7edcc 100644
--- a/srcpkgs/libopenshot/template
+++ b/srcpkgs/libopenshot/template
@@ -16,7 +16,6 @@ license="LGPL-3.0-or-later"
 homepage="https://github.com/OpenShot/libopenshot"
 distfiles="https://github.com/OpenShot/libopenshot/archive/v${version}.tar.gz"
 checksum=8ae7d226fbd2efbc84da4f7d9d8c7f3cc9616e4de46e1233e3b0a84ac0a429bc
-patch_args="-Np1"
 # FIXME: tests segfault
 make_check=extended
 
diff --git a/srcpkgs/libpgf/template b/srcpkgs/libpgf/template
index bf71a8d2fff9..54383332b2cb 100644
--- a/srcpkgs/libpgf/template
+++ b/srcpkgs/libpgf/template
@@ -2,7 +2,6 @@
 pkgname=libpgf
 version=6.14.12
 revision=3
-patch_args="-Np1"
 wrksrc="$pkgname"
 build_style=gnu-configure
 hostmakedepends="automake libtool"
diff --git a/srcpkgs/libsasl/template b/srcpkgs/libsasl/template
index c0d20324790b..b9dbe7bc2f86 100644
--- a/srcpkgs/libsasl/template
+++ b/srcpkgs/libsasl/template
@@ -17,7 +17,6 @@ license="BSD-3-Clause-Attribution"
 homepage="https://www.cyrusimap.org/sasl/"
 distfiles="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-${version}/cyrus-sasl-${version}.tar.gz"
 checksum=26866b1549b00ffd020f188a43c258017fa1c382b3ddadd8201536f72efb05d5
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libtar/template b/srcpkgs/libtar/template
index 1ba6d6a29050..84280b727ef9 100644
--- a/srcpkgs/libtar/template
+++ b/srcpkgs/libtar/template
@@ -3,7 +3,6 @@ pkgname=libtar
 version=1.2.20
 revision=3
 wrksrc="$pkgname"
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="automake libtool pkg-config"
 makedepends="zlib-devel"
diff --git a/srcpkgs/libtls/template b/srcpkgs/libtls/template
index a163b69eee98..5ab8c6c84e26 100644
--- a/srcpkgs/libtls/template
+++ b/srcpkgs/libtls/template
@@ -21,7 +21,6 @@ build_options="asm"
 desc_option_asm="Use platform assembly for faster crypto"
 
 build_options_default="asm"
-patch_args=-Np1
 
 if [ "$build_option_asm" ]; then
 	distfiles+=" https://github.com/q66/libressl-portable-asm/archive/v${_lssl_asm_ver}.tar.gz"
diff --git a/srcpkgs/libtomcrypt/template b/srcpkgs/libtomcrypt/template
index 63635e14c995..4475f1d5b33e 100644
--- a/srcpkgs/libtomcrypt/template
+++ b/srcpkgs/libtomcrypt/template
@@ -11,7 +11,6 @@ homepage="http://www.libtom.net/?page=features&newsitems=5&whatfile=crypt"
 distfiles="https://github.com/libtom/libtomcrypt/releases/download/v${version}/crypt-${version}.tar.xz"
 checksum=96ad4c3b8336050993c5bc2cf6c057484f2b0f9f763448151567fbab5e767b84
 
-patch_args="-Np1"
 CFLAGS="-DGMP_DESC -DLTM_DESC -DUSE_LTM"
 
 do_build() {
diff --git a/srcpkgs/libunique1/template b/srcpkgs/libunique1/template
index 7b3e81316b59..f73931b0c72b 100644
--- a/srcpkgs/libunique1/template
+++ b/srcpkgs/libunique1/template
@@ -14,7 +14,6 @@ license="LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Attic/LibUnique"
 distfiles="${GNOME_SITE}/libunique/1.1/libunique-${version}.tar.bz2"
 checksum=e5c8041cef8e33c55732f06a292381cb345db946cf792a4ae18aa5c66cdd4fbb
-patch_args="-Np1"
 
 CFLAGS="-Wno-deprecated-declarations"
 
diff --git a/srcpkgs/libvorbis/template b/srcpkgs/libvorbis/template
index e962ccbf512a..252ab68c7f94 100644
--- a/srcpkgs/libvorbis/template
+++ b/srcpkgs/libvorbis/template
@@ -2,7 +2,6 @@
 pkgname=libvorbis
 version=1.3.7
 revision=1
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="pkg-config"
 makedepends="libogg-devel"
diff --git a/srcpkgs/lightdm-gtk-greeter/template b/srcpkgs/lightdm-gtk-greeter/template
index 66651a7af8ad..c2c37197fe8c 100644
--- a/srcpkgs/lightdm-gtk-greeter/template
+++ b/srcpkgs/lightdm-gtk-greeter/template
@@ -16,7 +16,6 @@ homepage="https://launchpad.net/lightdm-gtk-greeter"
 distfiles="${homepage}/${version%.*}/${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=22386e787dc64ac372c63cf2cdce47bfa1c791d1cf8b5d3df68df24ecfbf7d68
 conflicts="lightdm-gtk3-greeter>=0"
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/linux-driver-management/template b/srcpkgs/linux-driver-management/template
index 2d8f51fa078c..0a8859cb73b4 100644
--- a/srcpkgs/linux-driver-management/template
+++ b/srcpkgs/linux-driver-management/template
@@ -17,7 +17,6 @@ license="LGPL-2.1-only"
 homepage="https://github.com/solus-project/linux-driver-management"
 distfiles="https://github.com/solus-project/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=968ef61fbb7e26b89ef9456f03cf31c616bdc8fc69531fcfd9f90ae0f4ff147b
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	# host needs glib-mkenums
diff --git a/srcpkgs/linux4.14/template b/srcpkgs/linux4.14/template
index be7732d07bc3..9d9d56af8c3f 100644
--- a/srcpkgs/linux4.14/template
+++ b/srcpkgs/linux4.14/template
@@ -13,7 +13,6 @@ checksum="f81d59477e90a130857ce18dc02f4fbe5725854911db1e7ba770c7cd350f96a7
  b9afed9ae1f63b67fa01d17b3146f23a2ab5ef8ce458f3aec4d0b174553d0c52"
 skip_extraction="patch-${version}.xz"
 python_version=2 #unverified
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/linux4.19/template b/srcpkgs/linux4.19/template
index 3bbe09617546..5792f6904911 100644
--- a/srcpkgs/linux4.19/template
+++ b/srcpkgs/linux4.19/template
@@ -10,7 +10,6 @@ homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${version}.tar.xz"
 checksum=aaaebdccf599f77148fe170642fa7dc2452cf994b5cbbb4d39cab9e7f4058896
 python_version=3
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/linux4.9/template b/srcpkgs/linux4.9/template
index 553f87b04f6a..bad95d88f072 100644
--- a/srcpkgs/linux4.9/template
+++ b/srcpkgs/linux4.9/template
@@ -13,7 +13,6 @@ checksum="029098dcffab74875e086ae970e3828456838da6e0ba22ce3f64ef764f3d7f1a
  f808e190ab3d4b254b22c8b93936747c135a47c1a66d657af0e494bfbc125ca5"
 python_version=2 #unverified
 skip_extraction="patch-${version}.xz"
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/linux5.10/template b/srcpkgs/linux5.10/template
index 5a6b35e18c74..b63592c5880b 100644
--- a/srcpkgs/linux5.10/template
+++ b/srcpkgs/linux5.10/template
@@ -10,7 +10,6 @@ homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${version}.tar.xz"
 checksum=77beefa59c854ce1e8353db947a71a8a91f2a907aed45c1335ac1f209983c767
 python_version=3
-patch_args="-Np1"
 
 # XXX Restrict archs until a proper <arch>-dotconfig is available in FILESDIR.
 archs="x86_64* i686* ppc* aarch64*"
diff --git a/srcpkgs/linux5.11/template b/srcpkgs/linux5.11/template
index ab3f6f627750..3d6e5facc176 100644
--- a/srcpkgs/linux5.11/template
+++ b/srcpkgs/linux5.11/template
@@ -13,7 +13,6 @@ checksum="04f07b54f0d40adfab02ee6cbd2a942c96728d87c1ef9e120d0cb9ba3fe067b4
  07aac31956d3f483a91506524befd45962f3bbfda2f8d43cf90713caf872d9ba"
 skip_extraction="patch-${version}.xz"
 python_version=3
-patch_args="-Np1"
 
 # XXX Restrict archs until a proper <arch>-dotconfig is available in FILESDIR.
 archs="x86_64* i686* aarch64* ppc*"
diff --git a/srcpkgs/linux5.12/template b/srcpkgs/linux5.12/template
index 5276698b36a0..06ead94605c9 100644
--- a/srcpkgs/linux5.12/template
+++ b/srcpkgs/linux5.12/template
@@ -13,7 +13,6 @@ checksum="7d0df6f2bf2384d68d0bd8e1fe3e071d64364dcdc6002e7b5c87c92d48fac366
  034eb39ad49f3a26fc1b4ef799ef481ce35fe03e2b24131e9cd3d2805a99ad19"
 skip_extraction="patch-${version}.xz"
 python_version=3
-patch_args="-Np1"
 
 # XXX Restrict archs until a proper <arch>-dotconfig is available in FILESDIR.
 archs="x86_64* i686* aarch64* ppc*"
diff --git a/srcpkgs/linux5.4/template b/srcpkgs/linux5.4/template
index 40fe79b4abca..1adba525e68d 100644
--- a/srcpkgs/linux5.4/template
+++ b/srcpkgs/linux5.4/template
@@ -10,7 +10,6 @@ homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${version}.tar.xz"
 checksum=17ee750a4aeb1c883d721e730d1f7e2855124585e2f47766864a1359a7ebe33c
 python_version=3
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/loudgain/template b/srcpkgs/loudgain/template
index 00b2d20d27d6..da4f2d56e94c 100644
--- a/srcpkgs/loudgain/template
+++ b/srcpkgs/loudgain/template
@@ -11,7 +11,6 @@ license="BSD-2-Clause"
 homepage="https://github.com/Moonbase59/loudgain"
 distfiles="https://github.com/Moonbase59/loudgain/archive/v${version}.tar.gz"
 checksum=1137c193ad941b366e87c5d84ccc95a7aa8571affc060db0bd1cf72c489aeaee
-patch_args=-Np1
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/lxde-common/template b/srcpkgs/lxde-common/template
index df521545d44e..f7521d1b9030 100644
--- a/srcpkgs/lxde-common/template
+++ b/srcpkgs/lxde-common/template
@@ -12,4 +12,3 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=1cd9bc900960c995d48ffbbdc86ecffda7c806168c67aaa50c53113794234856
-patch_args="-Np1"
diff --git a/srcpkgs/lxlauncher/template b/srcpkgs/lxlauncher/template
index 5b91dc9c7202..917049e5da74 100644
--- a/srcpkgs/lxlauncher/template
+++ b/srcpkgs/lxlauncher/template
@@ -16,7 +16,6 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=cd14b59cf337e7ba0d67efc95cd79859ab5f0f85af5a84c7aff771f868c3dca7
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/lxsession/template b/srcpkgs/lxsession/template
index bf5ad1543557..8fe456a1d43e 100644
--- a/srcpkgs/lxsession/template
+++ b/srcpkgs/lxsession/template
@@ -14,7 +14,6 @@ homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/$pkgname-$version.tar.xz"
 checksum=e43e0d9c033095559ab57c8821c2b84fea58009d267db1324d32dca8bd4dbb46
 replaces="lxpolkit>=0"
-patch_args="-Np1"
 
 pre_build() {
 	rm *.stamp
diff --git a/srcpkgs/m4/template b/srcpkgs/m4/template
index ad0d585a2649..78f3dae6184a 100644
--- a/srcpkgs/m4/template
+++ b/srcpkgs/m4/template
@@ -2,7 +2,6 @@
 pkgname=m4
 version=1.4.18
 revision=2
-patch_args="-Np1"
 bootstrap=yes
 replaces="chroot-m4>=0"
 build_style=gnu-configure
diff --git a/srcpkgs/mac-fdisk/template b/srcpkgs/mac-fdisk/template
index e49accf70f02..954609a0a23a 100644
--- a/srcpkgs/mac-fdisk/template
+++ b/srcpkgs/mac-fdisk/template
@@ -10,7 +10,6 @@ license="GPL-2.0-or-later"
 homepage="https://packages.debian.org/sid/mac-fdisk"
 distfiles="http://deb.debian.org/debian/pool/main/m/mac-fdisk/mac-fdisk_${version}.orig.tar.gz"
 checksum=7059fc4ba41ca2ef857e1092e9c56e910f27693d407b5c3d78f7102ad0c56a66
-patch_args="-Np1"
 
 CFLAGS="-D_GNU_SOURCE"
 
diff --git a/srcpkgs/mailx/template b/srcpkgs/mailx/template
index 63ec23e72e07..af0f33598b10 100644
--- a/srcpkgs/mailx/template
+++ b/srcpkgs/mailx/template
@@ -2,7 +2,6 @@
 pkgname=mailx
 version=12.5
 revision=25
-patch_args="-Np1"
 wrksrc="mailx-${version}"
 makedepends="openssl-devel mit-krb5-devel"
 conf_files="/etc/mailx.rc"
diff --git a/srcpkgs/make/template b/srcpkgs/make/template
index 0aebcbc70be6..9a980aa10dde 100644
--- a/srcpkgs/make/template
+++ b/srcpkgs/make/template
@@ -15,4 +15,3 @@ homepage="http://www.gnu.org/software/make"
 distfiles="${GNU_SITE}/make/${pkgname}-${version}.tar.lz"
 checksum=de1a441c4edf952521db30bfca80baae86a0ff1acd0a00402999344f04c45e82
 build_options=guile
-patch_args="-Np1"
diff --git a/srcpkgs/mbuffer/template b/srcpkgs/mbuffer/template
index 97e0daac30e8..b1b30619272f 100644
--- a/srcpkgs/mbuffer/template
+++ b/srcpkgs/mbuffer/template
@@ -11,5 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://www.maier-komor.de/mbuffer.html"
 distfiles="https://www.maier-komor.de/software/mbuffer/mbuffer-${version}.tgz"
 checksum=51b5b8d8488991a55fe1dfce90130f9e47bc1ce286ba03b4f628c04b784fdc5d
-patch_args=-Np1
 conf_files="/etc/mbuffer.rc"
diff --git a/srcpkgs/mellowplayer/template b/srcpkgs/mellowplayer/template
index 3bd4a704985a..3afe098a08f4 100644
--- a/srcpkgs/mellowplayer/template
+++ b/srcpkgs/mellowplayer/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://colinduquesnoy.gitlab.io/MellowPlayer/"
 distfiles="https://gitlab.com/ColinDuquesnoy/MellowPlayer/-/archive/${version}/MellowPlayer-${version}.tar.bz2"
 checksum=7571588a704d0e76e65764f7a7725cf2b22125e06d930f236d19f75c1ecf559d
-patch_args=-Np1
 
 if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
 	broken="webengine can be built only if word size matches"
diff --git a/srcpkgs/mkinitcpio-nfs-utils/template b/srcpkgs/mkinitcpio-nfs-utils/template
index d8f23343ad6a..f40c42735fd6 100644
--- a/srcpkgs/mkinitcpio-nfs-utils/template
+++ b/srcpkgs/mkinitcpio-nfs-utils/template
@@ -18,7 +18,6 @@ case "$XBPS_TARGET_MACHINE" in
 	;;
 esac
 
-patch_args="-Np1"
 
 post_extract() {
 	sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' */Makefile
diff --git a/srcpkgs/mkinitcpio/template b/srcpkgs/mkinitcpio/template
index 04277348348d..d3f89d781382 100644
--- a/srcpkgs/mkinitcpio/template
+++ b/srcpkgs/mkinitcpio/template
@@ -13,7 +13,6 @@ homepage="https://git.archlinux.org/mkinitcpio.git"
 distfiles="https://sources.archlinux.org/other/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c7725035a06d2ab6ef6e97601b69859d6061aec95c4551e2a1ad2e27d307258f
 conf_files="/etc/mkinitcpio.conf"
-patch_args="-Np1"
 replaces="mkinitcpio-udev>=0"
 
 pre_check() {
diff --git a/srcpkgs/motif/template b/srcpkgs/motif/template
index 56f330f259ab..6e38db0a9516 100644
--- a/srcpkgs/motif/template
+++ b/srcpkgs/motif/template
@@ -14,7 +14,6 @@ homepage="https://sourceforge.net/projects/motif/"
 distfiles="${SOURCEFORGE_SITE}/motif/Motif%20${version}%20Source%20Code/motif-${version}.tar.gz"
 checksum=859b723666eeac7df018209d66045c9853b50b4218cecadb794e2359619ebce7
 replaces="lesstif>=0"
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" $makedepends"
diff --git a/srcpkgs/mouseemu/template b/srcpkgs/mouseemu/template
index 1519c7b7ef6a..7a64d63acd85 100644
--- a/srcpkgs/mouseemu/template
+++ b/srcpkgs/mouseemu/template
@@ -11,7 +11,6 @@ homepage="http://geekounet.org/powerbook/"
 distfiles="http://deb.debian.org/debian/pool/main/m/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=bbef220a814931f8ee482c82dfd63ad0a8ec895fc7df7bac1a1ada880d59af59
 conf_files="/etc/sv/mouseemu/conf"
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|i686*) depends+=" dmidecode";;
diff --git a/srcpkgs/mozjs78/template b/srcpkgs/mozjs78/template
index ee443e7a64c8..87e90b422b4e 100644
--- a/srcpkgs/mozjs78/template
+++ b/srcpkgs/mozjs78/template
@@ -17,7 +17,6 @@ license="MPL-2.0"
 homepage="https://www.mozilla.org/firefox/"
 distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.xz"
 checksum=8e03ac1dfc5ac804c8b13a529414a9387e0425e545bb2f4462d74c3175e64864
-patch_args="-Np1"
 
 CXXFLAGS="-Wno-class-memaccess"
 LDFLAGS="-Wl,-z,stack-size=1048576"
diff --git a/srcpkgs/mupdf/template b/srcpkgs/mupdf/template
index 1279d8c680d4..de89007c8f06 100644
--- a/srcpkgs/mupdf/template
+++ b/srcpkgs/mupdf/template
@@ -16,7 +16,6 @@ license="AGPL-3.0-only"
 homepage="https://mupdf.com"
 distfiles="https://mupdf.com/downloads/archive/${pkgname}-${version}-source.tar.gz"
 checksum=8860ea6d01fc3c360ba5e0fa9fede241c6fbb2a73f5215b17a105de409a19266
-patch_args="-Np1"
 
 pre_build() {
 	# libmupdf-{threads,pkcs7}.a are required by fbpdf
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index eaa3dc12e8e5..337a3082faa9 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="http://www.musl-libc.org/"
 distfiles="http://www.musl-libc.org/releases/musl-${version}.tar.gz"
 checksum=1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
-patch_args=-Np1
 
 nostrip_files="libc.so"
 shlib_provides="libc.so"
diff --git a/srcpkgs/ndppd/template b/srcpkgs/ndppd/template
index 48f78c040ab2..e9cbba36942a 100644
--- a/srcpkgs/ndppd/template
+++ b/srcpkgs/ndppd/template
@@ -9,7 +9,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/DanielAdolfsson/ndppd"
 distfiles="https://github.com/DanielAdolfsson/ndppd/archive/${version}.tar.gz"
 checksum=ee934167f8357f0bd0015e201a77fbe4d028c59e89dc98113805c6855e1c3992
-patch_args="-Np1"
 
 do_install() {
 	vbin ndppd
diff --git a/srcpkgs/network-manager-applet/template b/srcpkgs/network-manager-applet/template
index 0f041aa80b27..e9bb40aa3e6f 100644
--- a/srcpkgs/network-manager-applet/template
+++ b/srcpkgs/network-manager-applet/template
@@ -17,5 +17,4 @@ homepage="https://wiki.gnome.org/Projects/NetworkManager"
 changelog="https://raw.githubusercontent.com/NetworkManager/network-manager-applet/master/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=c70d80b48d40a9cb99ec967cc4389f67e7f0301528a69d481572041331a646be
-patch_args=-Np1
 lib32disabled=yes
diff --git a/srcpkgs/nfs-utils/template b/srcpkgs/nfs-utils/template
index 4b5dc97ea19c..10e72d3054c8 100644
--- a/srcpkgs/nfs-utils/template
+++ b/srcpkgs/nfs-utils/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.linux-nfs.org/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
 checksum=51997d94e4c8bcef5456dd36a9ccc38e231207c4e9b6a9a2c108841e6aebe3dd
-patch_args="-Np1"
 replaces="rpcgen>=0"
 
 hostmakedepends="pkg-config libtirpc-devel rpcsvc-proto"
diff --git a/srcpkgs/nomad/template b/srcpkgs/nomad/template
index 8ebd079f55e2..989de0f270be 100644
--- a/srcpkgs/nomad/template
+++ b/srcpkgs/nomad/template
@@ -14,7 +14,6 @@ license="MPL-2.0"
 homepage="https://www.nomadproject.io/"
 distfiles="https://github.com/hashicorp/nomad/archive/v${version}.tar.gz"
 checksum=441d2f50a29568451cb16301a2208c9b744a480ded8c624e789983ee42ed3ea9
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) go_build_tags+=" nonvidia" ;;
diff --git a/srcpkgs/notmuch/template b/srcpkgs/notmuch/template
index d96cd07da6a3..0b176d22ebd9 100644
--- a/srcpkgs/notmuch/template
+++ b/srcpkgs/notmuch/template
@@ -21,7 +21,6 @@ skip_extraction="database-v1.tar.xz"
 # gpgme is optional dependency
 conflicts="gpgme<1.14.0_1"
 subpackages="libnotmuch libnotmuch-devel notmuch-mutt notmuch-python3"
-patch_args=-Np1
 
 if [ ! "$CROSS_BUILD" ]; then
 	hostmakedepends+=" desktop-file-utils"
diff --git a/srcpkgs/numix-themes/template b/srcpkgs/numix-themes/template
index 0e5b7b436c75..76814bab7d9e 100644
--- a/srcpkgs/numix-themes/template
+++ b/srcpkgs/numix-themes/template
@@ -12,4 +12,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/numixproject/numix-gtk-theme"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=2b997ad3eee0b802d0dd49dd772127fd3c337cca32d8863efd4897928e38879a
-patch_args=-Np1
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index a24dde6ca225..edc737186f93 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -2,7 +2,6 @@
 pkgname=nvi
 version=1.81.6
 revision=16
-patch_args="-Np1"
 build_style=gnu-configure
 build_wrksrc=dist
 makedepends="ncurses-devel db-devel"
diff --git a/srcpkgs/ocaml/template b/srcpkgs/ocaml/template
index c941d4b33684..0b760f5ffa5a 100644
--- a/srcpkgs/ocaml/template
+++ b/srcpkgs/ocaml/template
@@ -13,7 +13,6 @@ homepage="http://ocaml.org/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=cd3cd55d465028b161c8c33bafc14ee6ae1d91b5efe51098350f8e8a5f454baf
 nocross=yes
-patch_args="-Np1"
 
 export ASPP="cc -c"
 
diff --git a/srcpkgs/onboard/template b/srcpkgs/onboard/template
index 681de6199e0d..38b447de275e 100644
--- a/srcpkgs/onboard/template
+++ b/srcpkgs/onboard/template
@@ -14,4 +14,3 @@ license="GPL-3.0-or-later"
 homepage="https://launchpad.net/onboard"
 distfiles="https://launchpad.net/${pkgname}/${version%.*}/${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=01cae1ac5b1ef1ab985bd2d2d79ded6fc99ee04b1535cc1bb191e43a231a3865
-patch_args="-Np1"
diff --git a/srcpkgs/openjdk10-bootstrap/template b/srcpkgs/openjdk10-bootstrap/template
index 9695f1f1f431..92d066bb200b 100644
--- a/srcpkgs/openjdk10-bootstrap/template
+++ b/srcpkgs/openjdk10-bootstrap/template
@@ -51,7 +51,6 @@ if [ -n "$_use_zero" ]; then
 fi
 
 shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
-patch_args="-Np1"
 nocross=yes
 
 if [ -n "$XBPS_DEBUG_PKGS" ]; then
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index f273380c0ebb..b084713ea889 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -83,7 +83,6 @@ skip_extraction="
  hotspot-${_drops_ver}.tar.bz2"
 
 shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
-patch_args="-Np1"
 nocross=yes
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 478986b3ca6b..a6d99811d672 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -80,7 +80,6 @@ else
 fi
 
 provides="java-environment-${version}_1"
-patch_args="-Np1"
 
 if [ -n "$XBPS_DEBUG_PKGS" ]; then
 	configure_args+=" --with-native-debug-symbols=internal"
diff --git a/srcpkgs/openjdk9-bootstrap/template b/srcpkgs/openjdk9-bootstrap/template
index 7fc5dc69376f..bf2654033377 100644
--- a/srcpkgs/openjdk9-bootstrap/template
+++ b/srcpkgs/openjdk9-bootstrap/template
@@ -67,7 +67,6 @@ fi
 
 lib32disabled=yes
 shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
-patch_args="-Np1"
 nocross=yes
 
 if [ -n "$XBPS_DEBUG_PKGS" ]; then
diff --git a/srcpkgs/orientdb/template b/srcpkgs/orientdb/template
index c7c49f59af5b..5db277ac3232 100644
--- a/srcpkgs/orientdb/template
+++ b/srcpkgs/orientdb/template
@@ -11,7 +11,6 @@ license="Apache-2.0"
 homepage="https://orientdb.org"
 distfiles="https://s3.us-east-2.amazonaws.com/orientdb3/releases/${version}/orientdb-${version}.tar.gz"
 checksum=73830279a5587de17ea4f5864598a0829bb03212d6cd36d185fe126a46086236
-patch_args="-Np1"
 system_accounts="orientdb"
 
 do_install() {
diff --git a/srcpkgs/p11-kit/template b/srcpkgs/p11-kit/template
index 9947a2ec6567..cc0b11eb720f 100644
--- a/srcpkgs/p11-kit/template
+++ b/srcpkgs/p11-kit/template
@@ -14,7 +14,6 @@ license="BSD-3-Clause"
 homepage="https://github.com/p11-glue/p11-kit"
 distfiles="${homepage}/releases/download/${version}/p11-kit-${version}.tar.xz"
 checksum=8a8f40153dd5a3f8e7c03e641f8db400133fb2a6a9ab2aee1b6d0cb0495ec6b6
-patch_args=-Np1
 conf_files="/etc/pkcs11/pkcs11.conf"
 
 if [ "$XBPS_CHECK_PKGS" ]; then
diff --git a/srcpkgs/parallel-rust/template b/srcpkgs/parallel-rust/template
index f6a1df6cfd4f..d2a746db9108 100644
--- a/srcpkgs/parallel-rust/template
+++ b/srcpkgs/parallel-rust/template
@@ -3,7 +3,6 @@ pkgname=parallel-rust
 version=0.11.3
 revision=2
 wrksrc="parallel-${version}"
-patch_args="-Np1"
 build_style=cargo
 short_desc="Inspired by GNU Parallel, a command-line CPU load balancer written in Rust"
 maintainer="lemmi <lemmi@nerd2nerd.org>"
diff --git a/srcpkgs/patch/template b/srcpkgs/patch/template
index 54bfe06dada4..c850a4f74a71 100644
--- a/srcpkgs/patch/template
+++ b/srcpkgs/patch/template
@@ -11,7 +11,6 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/patch/patch.html"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=ac610bda97abe0d9f6b7c963255a11dcb196c25e337c61f94e4778d632f1d8fd
-patch_args="-Np1"
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	export ac_cv_lib_error_at_line=no
diff --git a/srcpkgs/pavucontrol/template b/srcpkgs/pavucontrol/template
index b80f1b85a7d2..1fd6de3d37cc 100644
--- a/srcpkgs/pavucontrol/template
+++ b/srcpkgs/pavucontrol/template
@@ -11,4 +11,3 @@ license="GPL-2.0-or-later"
 homepage="https://freedesktop.org/software/pulseaudio/pavucontrol/"
 distfiles="${homepage}/${pkgname}-${version}.tar.xz"
 checksum=8fc45bac9722aefa6f022999cbb76242d143c31b314e2dbb38f034f4069d14e2
-patch_args=-Np1
diff --git a/srcpkgs/pbbuttonsd/template b/srcpkgs/pbbuttonsd/template
index 2826198c71fa..242e9a49d4dc 100644
--- a/srcpkgs/pbbuttonsd/template
+++ b/srcpkgs/pbbuttonsd/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.berlios.de/software/pbbuttons"
 distfiles="${SOURCEFORGE_SITE}/pbbuttons/pbbuttonsd-${version}.tar.gz"
 checksum=254cc391bcb0a4a58a62224b4cca2b29fdf9ca174c1dc18ab0784f1a86465ed1
-patch_args="-Np1"
 
 post_extract() {
 	# fix cross builds (small build-only tool built with this)
diff --git a/srcpkgs/pcsxr/template b/srcpkgs/pcsxr/template
index 37bd5f2fe7f4..e95d3eb66634 100644
--- a/srcpkgs/pcsxr/template
+++ b/srcpkgs/pcsxr/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="http://pcsxr.codeplex.com/"
 distfiles="http://deb.debian.org/debian/pool/main/p/pcsxr/pcsxr_${version}.orig.tar.xz"
 checksum=8a366b68a7c236443aa75b422bea84b5115f8d8c23e5a78fd6951e643e90f660
-patch_args="-Np1"
 lib32disabled=yes
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/pinebookpro-kernel/template b/srcpkgs/pinebookpro-kernel/template
index 5908c8021ce4..09e202b279f2 100644
--- a/srcpkgs/pinebookpro-kernel/template
+++ b/srcpkgs/pinebookpro-kernel/template
@@ -10,7 +10,6 @@ license="GPL-2.0-only"
 homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${version}.tar.xz"
 checksum=ac37a19d45b77a87e58e3aae8b127a6e7eb85ed7467fc8e58474b387bfd498fd
-patch_args="-Np1"
 python_version=3
 
 nodebug=yes  # -dbg package is generated below manually
diff --git a/srcpkgs/pinephone-kernel/template b/srcpkgs/pinephone-kernel/template
index 73631552a9ba..0361e3edca81 100644
--- a/srcpkgs/pinephone-kernel/template
+++ b/srcpkgs/pinephone-kernel/template
@@ -11,7 +11,6 @@ homepage="https://www.kernel.org"
 distfiles="https://github.com/megous/linux/archive/${_tag}.tar.gz"
 checksum=7ef48ee91f6b6cfdc74f3dc73753903748bcda3282f1ac6e2ff33d392f6c30ca
 python_version=3
-patch_args="-Np1"
 
 archs="aarch64*"
 
diff --git a/srcpkgs/ponysay/template b/srcpkgs/ponysay/template
index 5fd3af284d2d..d2e146943e58 100644
--- a/srcpkgs/ponysay/template
+++ b/srcpkgs/ponysay/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="https://erkin.github.com/ponysay/"
 distfiles="https://github.com/erkin/${pkgname}/archive/${version}.tar.gz"
 checksum=c382d7f299fa63667d1a4469e1ffbf10b6813dcd29e861de6be55e56dc52b28a
-patch_args="-Np1"
 
 do_install() {
 	python3 setup.py --prefix=/usr --dest-dir=$DESTDIR \
diff --git a/srcpkgs/poppler-qt5/template b/srcpkgs/poppler-qt5/template
index 4fb165ecc22b..c130ecc74f79 100644
--- a/srcpkgs/poppler-qt5/template
+++ b/srcpkgs/poppler-qt5/template
@@ -21,7 +21,6 @@ distfiles="${homepage}/poppler-${version}.tar.xz"
 checksum=dafd537b680fad1215bc40fc53d1f38e8449d7c185bc60d5a89e1d26c90dbd8c
 # fails to find a bunch of files
 make_check=no
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DTHREADS_PTHREAD_ARG=2"
diff --git a/srcpkgs/poppler/template b/srcpkgs/poppler/template
index 72a961b24615..e78dc76cfaa8 100644
--- a/srcpkgs/poppler/template
+++ b/srcpkgs/poppler/template
@@ -19,7 +19,6 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://poppler.freedesktop.org"
 distfiles="${homepage}/${pkgname}-${version}.tar.xz"
 checksum=dafd537b680fad1215bc40fc53d1f38e8449d7c185bc60d5a89e1d26c90dbd8c
-patch_args=-Np1
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/procmail/template b/srcpkgs/procmail/template
index 4518f5caac58..12271d5f0a2d 100644
--- a/srcpkgs/procmail/template
+++ b/srcpkgs/procmail/template
@@ -10,7 +10,6 @@ license="GPL-2.0-or-later, Artistic-1.0-cl8"
 homepage="http://www.procmail.org"
 distfiles="https://fossies.org/linux/misc/old/procmail-${version}.tar.gz"
 checksum=087c75b34dd33d8b9df5afe9e42801c9395f4bf373a784d9bc97153b0062e117
-patch_args="-Np1"
 nocross="./autoconf: line 1396: ./_autotst: No such file or directory"
 
 post_extract() {
diff --git a/srcpkgs/psutils/template b/srcpkgs/psutils/template
index d377334ebb6a..0e47c23d0c25 100644
--- a/srcpkgs/psutils/template
+++ b/srcpkgs/psutils/template
@@ -12,7 +12,6 @@ homepage="http://knackered.org/angus/psutils/"
 wrksrc="psutils"
 distfiles="ftp://ftp.knackered.org/pub/psutils/${pkgname}-${version}.tar.gz"
 checksum="3853eb79584ba8fbe27a815425b65a9f7f15b258e0d43a05a856bdb75d588ae4"
-patch_args="-Np1"
 
 pre_configure() {
 	# install in /usr instead of /usr/local
diff --git a/srcpkgs/python-notify/template b/srcpkgs/python-notify/template
index 7bfe11b2da90..9bc07c76324e 100644
--- a/srcpkgs/python-notify/template
+++ b/srcpkgs/python-notify/template
@@ -15,7 +15,6 @@ homepage="http://www.galago-project.org/"
 distfiles="http://www.galago-project.org/files/releases/source/notify-python/notify-python-${version}.tar.gz"
 checksum=8c5ee28017fdc5b110c31cb76503e535e15e0c60b9a1f1e95ff6c018dd806022
 replaces="notify-python>=0"
-patch_args="-Np1"
 lib32disabled=yes
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/qemu/template b/srcpkgs/qemu/template
index 0a08ed821536..0fadb41f609c 100644
--- a/srcpkgs/qemu/template
+++ b/srcpkgs/qemu/template
@@ -30,7 +30,6 @@ nostrip_files="hppa-firmware.img openbios-ppc openbios-sparc32 openbios-sparc64
  opensbi-riscv64-generic-fw_dynamic.elf"
 # FIXME
 make_check=extended
-patch_args=-Np1
 
 build_options="gtk3 opengl sdl2 spice virgl smartcard numa iscsi"
 build_options_default="opengl gtk3 virgl sdl2 numa iscsi"
diff --git a/srcpkgs/qt5-webengine/template b/srcpkgs/qt5-webengine/template
index d9819ea7d71e..0819b3790345 100644
--- a/srcpkgs/qt5-webengine/template
+++ b/srcpkgs/qt5-webengine/template
@@ -33,7 +33,6 @@ distfiles="https://github.com/qt/qtwebengine/archive/${_commit}.tar.gz
  https://github.com/qt/qtwebengine-chromium/archive/${_chromium_commit}.tar.gz"
 checksum="cea995e14c599c0c46b53b9938fd16f2360b639bf77e88a28ea26f518bb7b578
  fa0cab27cc32284f5af227a3dabde05ed6755f06641db6a6ca1c66848b10f715"
-patch_args="-Np1"
 
 no_generic_pkgconfig_link=yes
 build_options="sndio pipewire"
diff --git a/srcpkgs/rdup/template b/srcpkgs/rdup/template
index a73f90839ef9..74936336c70a 100644
--- a/srcpkgs/rdup/template
+++ b/srcpkgs/rdup/template
@@ -13,7 +13,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/miekg/rdup"
 distfiles="https://github.com/miekg/rdup/archive/${version}.tar.gz"
 checksum=787b8c37e88be810a710210a9d9f6966b544b1389a738aadba3903c71e0c29cb
-patch_args="-Np1"
 
 post_patch() {
 	vsed -e 's/-Werror//' -i GNUmakefile.in
diff --git a/srcpkgs/recode/template b/srcpkgs/recode/template
index bba0c7862d47..531df1dedd33 100644
--- a/srcpkgs/recode/template
+++ b/srcpkgs/recode/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="http://recode.progiciels-bpi.ca/"
 distfiles="${DEBIAN_SITE}/main/r/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=e3e6a4f3f8e5c6052ab70155990c074d87aa0b614fc1be31d194750d1d962fcf
-patch_args="-Np1"
 
 pre_configure() {
 	vsed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.in
diff --git a/srcpkgs/rng-tools/template b/srcpkgs/rng-tools/template
index a6e67902ba89..9519739f2b48 100644
--- a/srcpkgs/rng-tools/template
+++ b/srcpkgs/rng-tools/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/nhorman/rng-tools"
 distfiles="https://github.com/nhorman/rng-tools/archive/v${version}.tar.gz"
 checksum=6fd5b52a700edec85eb1043970e22e8e2ad06a4b43851f35d33d90e09570e9d3
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	makedepends+=" argp-standalone" ;;
diff --git a/srcpkgs/rust/template b/srcpkgs/rust/template
index 6bb928e14783..92ed8935ab09 100644
--- a/srcpkgs/rust/template
+++ b/srcpkgs/rust/template
@@ -22,7 +22,6 @@ homepage="https://www.rust-lang.org/"
 distfiles="https://static.rust-lang.org/dist/rustc-${version}-src.tar.gz"
 checksum="0e763e6db47d5d6f91583284d2f989eacc49b84794d1443355b85c58d67ae43b"
 lib32disabled=yes
-patch_args="-Np1"
 
 build_options="bindist"
 desc_option_bindist="Generate tarballs for bootstrap"
diff --git a/srcpkgs/sakura/template b/srcpkgs/sakura/template
index 299dae396cce..04e5883e0909 100644
--- a/srcpkgs/sakura/template
+++ b/srcpkgs/sakura/template
@@ -12,4 +12,3 @@ license="GPL-2.0-only"
 homepage="https://launchpad.net/sakura"
 distfiles="https://launchpad.net/sakura/trunk/${version}/+download/sakura-${version}.tar.bz2"
 checksum=9ddfe8919ae0e11673ca22879ae324565d0987b14e948e1d2badff538fe1b5b9
-patch_args="-Np1"
diff --git a/srcpkgs/sbc/template b/srcpkgs/sbc/template
index 7645ce469d68..6fdca20e3e9c 100644
--- a/srcpkgs/sbc/template
+++ b/srcpkgs/sbc/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://www.bluez.org/"
 distfiles="${KERNEL_SITE}/bluetooth/${pkgname}-${version}.tar.xz"
 checksum=0cbad69823a99e8421fe0700e8cf9eeb8fa0c1ad28e8dbc2182b3353507931d2
-patch_args="-Np1"
 
 sbc-devel_package() {
 	depends="sbc>=${version}_${revision}"
diff --git a/srcpkgs/sbsigntool/template b/srcpkgs/sbsigntool/template
index 6e6c32ddf3e7..80d0f63781fa 100644
--- a/srcpkgs/sbsigntool/template
+++ b/srcpkgs/sbsigntool/template
@@ -19,7 +19,6 @@ distfiles="$homepage/snapshot/sbsigntools-$version.tar.gz
  $DEBIAN_SITE/main/s/sbsigntool/sbsigntool_0.9.2.orig.tar.gz"
 checksum="eddb7d21263ee2b07be8f0ed93b6ba021c3f943964730b2d86f44736fa1924d5
  1dc1e1de5f2dda50dbd2e6a83355fe7ae38ca0f79daeb404026421af70606653"
-patch_args="-Np1"
 skip_extraction="sbsigntool_0.9.2.orig.tar.gz"
 conf_files="/etc/default/sbsigntool-kernel-hook"
 
diff --git a/srcpkgs/sharutils/template b/srcpkgs/sharutils/template
index 26ff6c074408..e5195a44999f 100644
--- a/srcpkgs/sharutils/template
+++ b/srcpkgs/sharutils/template
@@ -2,7 +2,6 @@
 pkgname=sharutils
 version=4.15.2
 revision=2
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="perl"
 short_desc="Makes so-called shell archives out of many files"
diff --git a/srcpkgs/spdlog/template b/srcpkgs/spdlog/template
index ecf3e97a14ce..184a4d891698 100644
--- a/srcpkgs/spdlog/template
+++ b/srcpkgs/spdlog/template
@@ -14,7 +14,6 @@ license="MIT"
 homepage="https://github.com/gabime/spdlog"
 distfiles="https://github.com/gabime/spdlog/archive/v${version}.tar.gz"
 checksum=e20e6bd8f57e866eaf25a5417f0a38a116e537f1a77ac7b5409ca2b180cec0d5
-patch_args=-Np1
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -DSPDLOG_BUILD_TESTS_HO=ON"
diff --git a/srcpkgs/stegsnow/template b/srcpkgs/stegsnow/template
index 97251c1c7a58..f5cc9a5a3697 100644
--- a/srcpkgs/stegsnow/template
+++ b/srcpkgs/stegsnow/template
@@ -3,7 +3,6 @@ pkgname=stegsnow
 version=20130616
 revision=1
 wrksrc="snow-${version}"
-patch_args="-Np1"
 build_style=gnu-makefile
 short_desc="Whitespace steganography"
 maintainer="Orphaned <orphan@voidlinux.org>"
diff --git a/srcpkgs/sun7i-kernel/template b/srcpkgs/sun7i-kernel/template
index 3d7ae0956875..560ec8ad3732 100644
--- a/srcpkgs/sun7i-kernel/template
+++ b/srcpkgs/sun7i-kernel/template
@@ -32,7 +32,6 @@ archs="armv7l*"
 hostmakedepends="perl python kmod uboot-mkimage openssl bc"
 makedepends="ncurses-devel"
 triggers="kernel-hooks"
-patch_args=-Np1
 python_version=2
 # These files could be modified when an external module is built.
 mutable_files="
diff --git a/srcpkgs/syslinux/template b/srcpkgs/syslinux/template
index 2c8cfb05553e..b45c35819552 100644
--- a/srcpkgs/syslinux/template
+++ b/srcpkgs/syslinux/template
@@ -2,7 +2,6 @@
 pkgname=syslinux
 version=6.03
 revision=7
-patch_args="-Np1"
 hostmakedepends="perl python nasm"
 makedepends="gnu-efi-libs libuuid-devel"
 short_desc="Boot loader for the Linux operating system"
diff --git a/srcpkgs/tilix/template b/srcpkgs/tilix/template
index 952643b213fc..f53d8f86fd87 100644
--- a/srcpkgs/tilix/template
+++ b/srcpkgs/tilix/template
@@ -15,7 +15,6 @@ license="MPL-2.0"
 homepage="https://gnunn1.github.io/tilix-web/"
 distfiles="https://github.com/gnunn1/${pkgname}/archive/${version}.tar.gz"
 checksum=2a9482770391d11d5edc8351d426c700c2cc6c194a30391ef2ae25bb7095b59b
-patch_args=-Np1
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/tmux/template b/srcpkgs/tmux/template
index b0f2178d49ec..25a22045bb72 100644
--- a/srcpkgs/tmux/template
+++ b/srcpkgs/tmux/template
@@ -13,7 +13,6 @@ homepage="https://tmux.github.io"
 changelog="https://raw.githubusercontent.com/tmux/tmux/master/CHANGES"
 distfiles="https://github.com/tmux/tmux/releases/download/${version}/tmux-${version}.tar.gz"
 checksum=664d345338c11cbe429d7ff939b92a5191e231a7c1ef42f381cebacb1e08a399
-patch_args=-Np1
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ucspi-tcp/template b/srcpkgs/ucspi-tcp/template
index f4ef8b1df9db..9012d8a20a20 100644
--- a/srcpkgs/ucspi-tcp/template
+++ b/srcpkgs/ucspi-tcp/template
@@ -9,7 +9,6 @@ license="Public Domain"
 homepage="http://cr.yp.to/ucspi-tcp.html"
 distfiles="http://cr.yp.to/ucspi-tcp/ucspi-tcp-${version}.tar.gz"
 checksum=4a0615cab74886f5b4f7e8fd32933a07b955536a3476d74ea087a3ea66a23e9c
-patch_args="-Np1"
 make_check=no # checks are only designed to check if an installation worked
 
 do_install() {
diff --git a/srcpkgs/unixbench/template b/srcpkgs/unixbench/template
index 039da3c88615..fa652eb2d999 100644
--- a/srcpkgs/unixbench/template
+++ b/srcpkgs/unixbench/template
@@ -13,7 +13,6 @@ license="GPL-2.0-only"
 homepage="https://github.com/kdlucas/byte-unixbench"
 distfiles="$homepage/archive/$_commit.tar.gz"
 checksum=48e6ed4e705c86e5481ddf0c0d5ef2850f84a0da7050d438dbfe1052c81fd93f
-patch_args="-p1"
 
 do_build() {
 	export CFLAGS=$CFLAGS
diff --git a/srcpkgs/unzip/template b/srcpkgs/unzip/template
index 84796994944f..e0831b589d7f 100644
--- a/srcpkgs/unzip/template
+++ b/srcpkgs/unzip/template
@@ -10,7 +10,6 @@ license="Info-ZIP"
 homepage="http://infozip.sf.net/"
 distfiles="${SOURCEFORGE_SITE}/infozip/${pkgname}60.tar.gz"
 checksum=036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
-patch_args="-Np1"
 
 do_build() {
 	CFLAGS+=" -D_FILE_OFFSET_BITS=64 -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT \
diff --git a/srcpkgs/util-linux/template b/srcpkgs/util-linux/template
index fbd3f00e6f80..4fb8292531ba 100644
--- a/srcpkgs/util-linux/template
+++ b/srcpkgs/util-linux/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/utils/util-linux/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/v${version%.${version#*.*.}}/${pkgname}-${version}.tar.xz"
 checksum=f7516ba9d8689343594356f0e5e1a5f0da34adfbc89023437735872bb5024c5f
-patch_args=-Np1
 
 # Create uuidd system account for uuidd.
 system_accounts="_uuidd"
diff --git a/srcpkgs/utox/template b/srcpkgs/utox/template
index 39e0a28eb624..8bb66365933a 100644
--- a/srcpkgs/utox/template
+++ b/srcpkgs/utox/template
@@ -15,7 +15,6 @@ license="MIT"
 homepage="https://github.com/uTox/uTox/"
 distfiles="https://github.com/uTox/uTox/releases/download/v${version}/uTox-${version}-full.tar.gz"
 checksum=fc883483d86b1830674f3b08515daa27ae54ab47646c7edc48a067e8d1e8c114
-patch_args="-Np1"
 nocross=yes
 
 post_install() {
diff --git a/srcpkgs/valgrind/template b/srcpkgs/valgrind/template
index 6010f29ca56f..71f90795aa96 100644
--- a/srcpkgs/valgrind/template
+++ b/srcpkgs/valgrind/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://valgrind.org/"
 distfiles="https://sourceware.org/pub/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=c91f3a2f7b02db0f3bc99479861656154d241d2fdb265614ba918cc6720a33ca
-patch_args="-Np1"
 
 CFLAGS="-fno-stack-protector"
 CXXFLAGS="-fno-stack-protector"
diff --git a/srcpkgs/viking/template b/srcpkgs/viking/template
index 6f7a469c2042..b02ad7498482 100644
--- a/srcpkgs/viking/template
+++ b/srcpkgs/viking/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/viking"
 distfiles="${SOURCEFORGE_SITE}/viking/viking-${version}.tar.bz2"
 checksum=855cbccd5f17ef0dc6d7e2d080a4b20383a079dfb882edd04dba602297030fa8
-patch_args="-Np1"
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/vscode/template b/srcpkgs/vscode/template
index 11b5f3eea411..9d225f9ea1cf 100644
--- a/srcpkgs/vscode/template
+++ b/srcpkgs/vscode/template
@@ -12,7 +12,6 @@ license="MIT"
 homepage="https://code.visualstudio.com/"
 distfiles="https://github.com/Microsoft/vscode/archive/${version}.tar.gz"
 checksum=36d3062740125ea4477ba671c53c27293660a1ae61d712d936af12c7f89ab17e
-patch_args="-Np1"
 
 if [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
 	broken="FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory"
diff --git a/srcpkgs/vtk/template b/srcpkgs/vtk/template
index edaf9dfc827a..4c1710087f83 100644
--- a/srcpkgs/vtk/template
+++ b/srcpkgs/vtk/template
@@ -24,7 +24,6 @@ license="BSD-3-Clause"
 homepage="https://www.vtk.org"
 distfiles="https://www.vtk.org/files/release/${version:0:3}/VTK-${version}.tar.gz"
 checksum=1b39a5e191c282861e7af4101eaa8585969a2de05f5646c9199a161213a622c7
-patch_args=-Np1
 nocross="hdf5 is nocross"
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/wayfire-plugins-extra/template b/srcpkgs/wayfire-plugins-extra/template
index e53f0536c99c..71e8bddcf947 100644
--- a/srcpkgs/wayfire-plugins-extra/template
+++ b/srcpkgs/wayfire-plugins-extra/template
@@ -12,7 +12,6 @@ license="MIT"
 homepage="https://wayfire.org/"
 distfiles="https://github.com/WayfireWM/wayfire-plugins-extra/archive/v${version}.tar.gz"
 checksum=e6377e7f2cd6b0a19fe0a256c819f801ee1d963524ed4e4930b702474bc04287
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/webrtc-audio-processing/template b/srcpkgs/webrtc-audio-processing/template
index e85bb18e1f68..30a420b28f57 100644
--- a/srcpkgs/webrtc-audio-processing/template
+++ b/srcpkgs/webrtc-audio-processing/template
@@ -10,7 +10,6 @@ license="BSD-3-Clause"
 homepage="http://freedesktop.org/software/pulseaudio/webrtc-audio-processing"
 distfiles="${homepage}/${pkgname}-${version}.tar.xz"
 checksum=a0fdd938fd85272d67e81572c5a4d9e200a0c104753cb3c209ded175ce3c5dbf
-patch_args="-p1"
 
 case "$XBPS_TARGET_MACHINE" in
 	# Disable neon for the arm* architectures
diff --git a/srcpkgs/whipper/template b/srcpkgs/whipper/template
index 8826ee845ab9..f25ab359c284 100644
--- a/srcpkgs/whipper/template
+++ b/srcpkgs/whipper/template
@@ -15,7 +15,6 @@ homepage="https://github.com/whipper-team/whipper"
 distfiles="https://github.com/whipper-team/whipper/archive/v${version}.tar.gz"
 checksum=3caceeec7ca73c8b73147884b0f8eeacbe66af52900021b564118b88d23afbd2
 
-patch_args="-Np1"
 
 pre_build() {
 # Temporary workaround for https://github.com/whipper-team/whipper/issues/428
diff --git a/srcpkgs/wireplumber/template b/srcpkgs/wireplumber/template
index cf138e7d9e8b..9c8d44ab18e7 100644
--- a/srcpkgs/wireplumber/template
+++ b/srcpkgs/wireplumber/template
@@ -14,7 +14,6 @@ license="MIT"
 homepage="https://pipewire.pages.freedesktop.org/wireplumber"
 distfiles="https://gitlab.freedesktop.org/pipewire/wireplumber/-/archive/$version/wireplumber-$version.tar.gz"
 checksum=980a10986fea1ca7ff7daad41f467028db494741235697d4a09767236947d047
-patch_args=-Np1
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/wlsunset/template b/srcpkgs/wlsunset/template
index 5ec0aa3d8c45..984ee8cbfc67 100644
--- a/srcpkgs/wlsunset/template
+++ b/srcpkgs/wlsunset/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="https://sr.ht/~kennylevinsen/wlsunset/"
 distfiles="https://git.sr.ht/~kennylevinsen/wlsunset/archive/${version}.tar.gz"
 checksum=88bce695722a09d79545f14d404cc0659f7176bb08d5db5f4f23228b6ba8bb03
-patch_args=-Np1
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/wpa_supplicant/template b/srcpkgs/wpa_supplicant/template
index 064fd6f71f5d..d5f2a277cca8 100644
--- a/srcpkgs/wpa_supplicant/template
+++ b/srcpkgs/wpa_supplicant/template
@@ -9,7 +9,6 @@ license="BSD-3-Clause"
 homepage="http://w1.fi/wpa_supplicant/"
 distfiles="http://w1.fi/releases/${pkgname}-${version}.tar.gz"
 checksum=fcbdee7b4a64bea8177973299c8c824419c413ec2e3a95db63dd6a5dc3541f17
-patch_args="-Np1"
 
 hostmakedepends="pkg-config"
 makedepends="libnl3-devel openssl-devel $(vopt_if dbus dbus-devel) $(vopt_if readline readline-devel)"
diff --git a/srcpkgs/wrk/template b/srcpkgs/wrk/template
index b2deb5e0ffb8..2e85b6a8a510 100644
--- a/srcpkgs/wrk/template
+++ b/srcpkgs/wrk/template
@@ -12,7 +12,6 @@ license="Apache-2.0"
 homepage="https://github.com/wg/wrk"
 distfiles="https://github.com/wg/wrk/archive/${version}.tar.gz"
 checksum=6fa1020494de8c337913fd139d7aa1acb9a020de6f7eb9190753aa4b1e74271e
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*) ;;
diff --git a/srcpkgs/x2goserver/template b/srcpkgs/x2goserver/template
index 2774f84e960e..89fe76a4e8a1 100644
--- a/srcpkgs/x2goserver/template
+++ b/srcpkgs/x2goserver/template
@@ -19,7 +19,6 @@ checksum=6776aaa354f5a44e349f0b3c176d4988c88a618c2edf46c98a37ae89c069dcd0
 system_groups="x2gouser"
 system_accounts="x2gouser"
 x2gouser_homedir="/var/lib/x2go"
-patch_args="-Np1"
 conf_files="
  /etc/x2go/desktopsharing/*
  /etc/x2go/x2gosql/*
diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template
index c6af59bd635a..8f986d22f9f3 100644
--- a/srcpkgs/xbps/template
+++ b/srcpkgs/xbps/template
@@ -11,7 +11,6 @@ homepage="https://github.com/void-linux/xbps"
 changelog="https://github.com/void-linux/xbps/blob/master/NEWS"
 distfiles="https://github.com/void-linux/xbps/archive/${version}.tar.gz"
 checksum=0cbd8d5f23a62047c75974bca21da9f004a94efffd7f37c68562a8dbc869fb2a
-patch_args=-Np1
 
 hostmakedepends="pkgconf"
 checkdepends="kyua"
diff --git a/srcpkgs/xdgmenumaker/template b/srcpkgs/xdgmenumaker/template
index d79c6c0929a4..a71ccd9b3759 100644
--- a/srcpkgs/xdgmenumaker/template
+++ b/srcpkgs/xdgmenumaker/template
@@ -11,7 +11,6 @@ homepage="https://github.com/gapan/xdgmenumaker"
 distfiles="https://github.com/gapan/${pkgname}/archive/${version}.tar.gz"
 checksum=46192e7e4e25b024c0516d83e8fc2c503dd1ac8e5f8c1998d3e9e4b3cbf8919b
 python_version=3
-patch_args="-Np1"
 
 pre_install() {
 	# Install pre-generated man page
diff --git a/srcpkgs/xen/template b/srcpkgs/xen/template
index 092460ea73e5..d916f29ac384 100644
--- a/srcpkgs/xen/template
+++ b/srcpkgs/xen/template
@@ -27,7 +27,6 @@ checksum="cf0d7316ad674491f49b7ef0518cb1d906a2e3bfad639deef0ef2343b119ac0c
  4850691d6f196eaf4d6210f2de01383251b3ea1b928141da9ce28c0b06a90938"
 skip_extraction="${_git_tag_ipxe}.tar.gz"
 nopie=yes
-patch_args='-Np1'
 ignore_elf_dirs="/usr/share/xen/qemu /usr/share/qemu-xen/qemu"
 nostrip_files="
  hppa-firmware.img
diff --git a/srcpkgs/xpdf/template b/srcpkgs/xpdf/template
index 4f3c4f0ac66a..3c66f615f115 100644
--- a/srcpkgs/xpdf/template
+++ b/srcpkgs/xpdf/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="http://www.xpdfreader.com/"
 distfiles="https://dl.xpdfreader.com/xpdf-${version}.tar.gz"
 checksum=0fe4274374c330feaadcebb7bd7700cb91203e153b26aa95952f02bf130be846
-patch_args="-Np1"
 
 post_extract() {
 	sed -i 's:/usr/share/fonts/type1/gsfonts:/usr/share/fonts/Type1:' xpdf/GlobalParams.cc
diff --git a/srcpkgs/xzoom/template b/srcpkgs/xzoom/template
index ea5accf37d78..fd5c19eb6bed 100644
--- a/srcpkgs/xzoom/template
+++ b/srcpkgs/xzoom/template
@@ -10,7 +10,6 @@ license="Custom"
 homepage="http://sunsite.unc.edu/pub/linux/libs/X/"
 distfiles="http://webdiis.unizar.es/pub/unix/X11/${pkgname}-${version}.tgz"
 checksum=b26bfd692d3e1d30e8d524d4018fc3f0fe847983a2778a4a2496784bfc2df44b
-patch_args="-Np1"
 
 do_build() {
 	CC=cc xmkmf
diff --git a/srcpkgs/yaboot/template b/srcpkgs/yaboot/template
index bab154d8c93d..8d2adf264b73 100644
--- a/srcpkgs/yaboot/template
+++ b/srcpkgs/yaboot/template
@@ -15,7 +15,6 @@ distfiles="https://cdimage.debian.org/cdimage/cd-sources/yaboot_${version}.orig.
  http://ftp.be.debian.org/pub/linux/kernel/people/tytso/e2fsprogs/e2fsprogs-${_e2fsprogs_ver}.tar.gz"
 checksum="2fb738d8fd48b94ab2534a4fdf63738ad02c1a30f4b2add91f837baff8fa2aa1
  3f8ac1fedd7c4bec480afcbe4acabdd4ac59ec0446a0fd50c8975cd0aad7b176"
-patch_args="-Np1"
 # Don't want stripped yaboot bits to leak into -dbg
 nostrip_files=yaboot
 
diff --git a/srcpkgs/zeroc-mcpp/template b/srcpkgs/zeroc-mcpp/template
index 497813ba0e04..db9b9cc8e12b 100644
--- a/srcpkgs/zeroc-mcpp/template
+++ b/srcpkgs/zeroc-mcpp/template
@@ -14,7 +14,6 @@ distfiles="https://github.com/zeroc-ice/mcpp/archive/v${version}.tar.gz"
 checksum=1a426cf2d513ffd66634384d5445dcce1aac83be1789a56044013eab8ca8ffff
 nostrip=yes
 conflicts=mcpp-devel
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/zziplib/template b/srcpkgs/zziplib/template
index 2026f3e4a521..ab5af234af62 100644
--- a/srcpkgs/zziplib/template
+++ b/srcpkgs/zziplib/template
@@ -12,7 +12,6 @@ homepage="https://github.com/gdraheim/zziplib"
 changelog="https://raw.githubusercontent.com/gdraheim/zziplib/master/ChangeLog"
 distfiles="https://github.com/gdraheim/zziplib/archive/v${version}.tar.gz"
 checksum=93ef44bf1f1ea24fc66080426a469df82fa631d13ca3b2e4abaeab89538518dc
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DZZIPTEST=OFF"

From f6261f19e859e8fe4ea52a6e0f1d2c0a424b87b9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 18:28:11 +0700
Subject: [PATCH 7/9] srcpkgs/a*: convert patches to -Np1

* antiword is kept at -Np0

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,/^--- /dev/null,b
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s/\(.orig\)*	.*//
			}
			/^+++ /{
				s,\(^+++ \)\(./\)*,\1b/,
				s/	.*//
			}
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
---
 .../a2jmidid/patches/musl-no-execinfo.patch   |  4 +-
 srcpkgs/a2jmidid/patches/musl-ppc.patch       |  4 +-
 srcpkgs/a2jmidid/template                     |  1 -
 srcpkgs/a2ps/patches/CVE-2001-1593.diff       |  8 +--
 srcpkgs/a2ps/patches/CVE-2014-0466.diff       |  8 +--
 srcpkgs/a2ps/template                         |  1 -
 ...e-integer-types-in-protocol-messages.patch | 16 +++---
 ...0002-Fix-length-of-MSG_RESIZE-packet.patch |  4 +-
 ...SIZ-to-guarantee-system-independent-.patch |  4 +-
 ...Correct-EOF-handling-on-client-stdin.patch |  4 +-
 srcpkgs/abduco/template                       |  1 -
 srcpkgs/abook/patches/inline.patch            |  4 +-
 srcpkgs/abook/template                        |  1 -
 .../patches/musl-fgetspent_r.patch            |  4 +-
 .../accountsservice/patches/musl-wtmp.patch   |  4 +-
 srcpkgs/accountsservice/template              |  1 -
 srcpkgs/acct/patches/cross.patch              |  4 +-
 srcpkgs/acct/template                         |  1 -
 .../acpi_call-dkms/patches/linux4.12.patch    |  4 +-
 srcpkgs/acpi_call-dkms/patches/linux5.6.patch |  4 +-
 srcpkgs/acpi_call-dkms/template               |  1 -
 .../patches/disable-logging-to-console.patch  |  4 +-
 srcpkgs/acpid/patches/portability.patch       | 16 +++---
 srcpkgs/acpid/template                        |  1 -
 .../actiona/patches/bytearray-constdata.patch |  4 +-
 srcpkgs/actiona/patches/no-updater.patch      |  4 +-
 .../patches/socket-include-order.patch        |  4 +-
 .../actiona/patches/use-lrelease-qt5.patch    |  4 +-
 srcpkgs/actiona/template                      |  1 -
 .../patches/39-Fix-parallel-builds.patch      |  4 +-
 .../patches/40-Fix-few-gcc-warnings.patch     | 24 ++++-----
 .../patches/43-Fix-gcc-warning.patch          |  4 +-
 .../patches/44-Fix-build-with-gcc-5.patch     | 52 +++++++++----------
 .../45-Fix-libAfterBase-Makefile.patch        |  4 +-
 .../patches/50-cross-safe-min-max.patch       |  4 +-
 .../51-configure-pass-cross-alias-down.patch  |  4 +-
 .../patches/52-libafterimage-cross.patch      |  4 +-
 srcpkgs/afterstep/template                    |  1 -
 srcpkgs/agg/patches/agg-2.4-depends.patch     | 16 +++---
 srcpkgs/agg/patches/agg-2.5-pkgconfig.patch   |  4 +-
 srcpkgs/agg/patches/gcc82.patch               |  4 +-
 srcpkgs/agg/template                          |  1 -
 .../allegro4/patches/mesa10-uncompat.patch    |  4 +-
 srcpkgs/allegro4/template                     |  1 -
 srcpkgs/allegro5/patches/time64.patch         |  4 +-
 srcpkgs/allegro5/template                     |  1 -
 srcpkgs/alsa-firmware/patches/musl.patch      | 20 +++----
 srcpkgs/alsa-firmware/template                |  1 -
 .../patches/musl-__sighandler_t.patch         |  4 +-
 srcpkgs/alsa-tools/template                   |  1 -
 .../patches/cmake-build-type-none.patch       | 16 +++---
 srcpkgs/amdvlk/patches/musl.patch             |  4 +-
 srcpkgs/amdvlk/template                       |  1 -
 .../angrysearch/patches/00-fiximport.patch    |  4 +-
 srcpkgs/angrysearch/template                  |  1 -
 srcpkgs/anjuta/patches/fix-unistd_h.patch     |  4 +-
 srcpkgs/anjuta/patches/python.patch           |  4 +-
 srcpkgs/anjuta/patches/vala.patch             |  4 +-
 srcpkgs/anjuta/patches/vala048.patch          |  4 +-
 srcpkgs/anjuta/template                       |  1 -
 srcpkgs/anki/patches/fix_mpv_args.patch       |  8 +--
 srcpkgs/anki/template                         |  1 -
 srcpkgs/antimicrox/patches/time64.patch       |  4 +-
 srcpkgs/antimicrox/template                   |  1 -
 .../10_fix_buffer_overflow_wordole_c.patch    |  4 +-
 srcpkgs/apache/patches/libressl.patch         |  4 +-
 srcpkgs/apache/template                       |  1 -
 srcpkgs/apl/patches/musl.patch                |  4 +-
 srcpkgs/apl/patches/ppc.patch                 |  4 +-
 srcpkgs/apl/template                          |  1 -
 ...hive_entry_h-order-on-client-as-util.patch |  4 +-
 ...h-order-on-libappstream-glib-as-util.patch |  4 +-
 srcpkgs/appstream-glib/template               |  1 -
 srcpkgs/apr/patches/atomic64.patch            |  4 +-
 srcpkgs/apr/template                          |  1 -
 srcpkgs/apvlv/patches/cxxflags_from_env.patch |  4 +-
 srcpkgs/apvlv/template                        |  1 -
 srcpkgs/aqbanking/patches/cmake-prefix.patch  |  4 +-
 srcpkgs/aqbanking/template                    |  1 -
 srcpkgs/aqemu/patches/stdexcept.patch         |  4 +-
 srcpkgs/aqemu/template                        |  1 -
 srcpkgs/ardour/patches/6.0-fix-build.patch    |  4 +-
 srcpkgs/ardour/patches/6.0-fix-runtime.patch  |  4 +-
 .../ardour/patches/use-bundled-qm-dsp.patch   |  8 +--
 srcpkgs/ardour/template                       |  1 -
 srcpkgs/arduino/patches/astyle_fix.patch      |  8 +--
 .../patches/disable-dependency-build.patch    |  4 +-
 srcpkgs/arduino/template                      |  1 -
 srcpkgs/argon2/patches/explicit-bzero.patch   |  4 +-
 srcpkgs/argon2/patches/libdir.patch           |  4 +-
 srcpkgs/argon2/template                       |  1 -
 .../patches/fix-gcc6-attribute_numsup_h.patch |  4 +-
 srcpkgs/argyllcms/template                    |  1 -
 srcpkgs/ark/patches/disable-xar-test.patch    |  8 +--
 srcpkgs/ark/template                          |  1 -
 .../patches/9.700.2--include_dirs.patch       |  4 +-
 srcpkgs/armadillo/template                    |  1 -
 .../artyfx/patches/fix-avtk-cmake-sse.patch   |  4 +-
 srcpkgs/artyfx/patches/fix-lv2-1.18.patch     |  4 +-
 .../artyfx/patches/respect-our-cflags.patch   |  4 +-
 srcpkgs/artyfx/template                       |  1 -
 srcpkgs/asignify/patches/musl.patch           |  4 +-
 srcpkgs/asignify/template                     |  1 -
 srcpkgs/assimp/patches/musl.patch             |  4 +-
 srcpkgs/assimp/template                       |  1 -
 srcpkgs/astroid/patches/cross.patch           |  4 +-
 srcpkgs/astroid/template                      |  1 -
 srcpkgs/astyle/patches/musl.patch             |  4 +-
 srcpkgs/astyle/template                       |  1 -
 srcpkgs/at/patches/isleap.patch               |  4 +-
 srcpkgs/at/template                           |  1 -
 srcpkgs/aterm/patches/fix-pty-musl.patch      |  4 +-
 srcpkgs/aterm/template                        |  1 -
 .../atomicparsley/patches/musl-fpos_t.patch   |  4 +-
 srcpkgs/atomicparsley/template                |  1 -
 srcpkgs/atop/patches/atop-bb-compat.patch     |  4 +-
 srcpkgs/atop/patches/fix-cflags.patch         |  4 +-
 srcpkgs/atop/patches/musl-fix-includes.patch  |  8 +--
 srcpkgs/atop/template                         |  1 -
 srcpkgs/attic/patches/openssl.diff            |  4 +-
 srcpkgs/attic/template                        |  1 -
 srcpkgs/attract/patches/Makefile.patch        |  4 +-
 srcpkgs/attract/patches/fix-musl.patch        |  4 +-
 srcpkgs/attract/template                      |  1 -
 srcpkgs/aubio/patches/disable-tests.patch     |  4 +-
 srcpkgs/aubio/template                        |  1 -
 srcpkgs/audacity/patches/configure.patch      |  4 +-
 srcpkgs/audacity/template                     |  1 -
 .../audiofile/patches/004-CVE-2017-6829.patch |  4 +-
 ...017-6833-CVE-2017-6835-CVE-2017-6837.patch |  4 +-
 .../audiofile/patches/006-CVE-2017-6839.patch |  8 +--
 ...017-6834-CVE-2017-6836-CVE-2017-6838.patch |  4 +-
 .../audiofile/patches/009-CVE-2017-6831.patch |  4 +-
 .../patches/fix-gcc6-shift_left.patch         |  4 +-
 srcpkgs/audiofile/template                    |  1 -
 .../patches/fish-completion-vendor.patch      |  4 +-
 srcpkgs/auto-auto-complete/template           |  1 -
 .../patches/fix-perl-5.22-autoscan.patch      |  4 +-
 srcpkgs/autoconf/template                     |  1 -
 srcpkgs/autoconf213/patches/patch-aa.diff     |  4 +-
 srcpkgs/autoconf213/patches/patch-ab.diff     |  4 +-
 srcpkgs/autoconf213/patches/patch-ac.diff     |  4 +-
 srcpkgs/autoconf213/template                  |  1 -
 srcpkgs/autofs/patches/musl.patch             | 16 +++---
 srcpkgs/autofs/template                       |  1 -
 .../patches/autogen-5.18.16-rpath.patch       | 24 ++++-----
 srcpkgs/autogen/patches/build-aux.patch       |  8 +--
 srcpkgs/autogen/patches/configure.patch       |  4 +-
 srcpkgs/autogen/template                      |  1 -
 srcpkgs/avidemux/patches/musl-execinfo.patch  |  4 +-
 srcpkgs/avidemux/patches/musl-memcpy.patch    |  4 +-
 srcpkgs/avidemux/patches/use-realpath.patch   |  4 +-
 srcpkgs/avidemux/template                     |  1 -
 srcpkgs/avr-binutils/patches/avr-size.patch   |  4 +-
 srcpkgs/avr-binutils/template                 |  1 -
 .../patches/0001-fix-configure-error.patch    |  8 +--
 .../patches/fix-compiler-environment.patch    |  4 +-
 srcpkgs/azpainter/template                    |  1 -
 158 files changed, 308 insertions(+), 363 deletions(-)

diff --git a/srcpkgs/a2jmidid/patches/musl-no-execinfo.patch b/srcpkgs/a2jmidid/patches/musl-no-execinfo.patch
index 3cdbbc1be97c..82e902eb9ab1 100644
--- a/srcpkgs/a2jmidid/patches/musl-no-execinfo.patch
+++ b/srcpkgs/a2jmidid/patches/musl-no-execinfo.patch
@@ -1,5 +1,5 @@
---- sigsegv.c.orig	2016-06-06 15:56:47.355074711 +0200
-+++ sigsegv.c	2016-06-06 15:55:40.740071274 +0200
+--- a/sigsegv.c
++++ b/sigsegv.c
 @@ -28,7 +28,9 @@
  #include <signal.h>
  #include <ucontext.h>
diff --git a/srcpkgs/a2jmidid/patches/musl-ppc.patch b/srcpkgs/a2jmidid/patches/musl-ppc.patch
index c16523512ef9..3fef806d263e 100644
--- a/srcpkgs/a2jmidid/patches/musl-ppc.patch
+++ b/srcpkgs/a2jmidid/patches/musl-ppc.patch
@@ -1,8 +1,8 @@
 This fixes build on ppc32/musl but also fixes incorrect usage of uc_regs
 on glibc (uc_regs is an mcontext_t pointer, you can't index it directly)
 
---- sigsegv.c
-+++ sigsegv.c
+--- a/sigsegv.c
++++ b/sigsegv.c
 @@ -97,7 +97,11 @@ static void signal_segv(int signum, siginfo_t* info, void*ptr) {
      for(i = 0; i < NGREG; i++)
          a2j_error("reg[%02d]       = 0x" REGFORMAT, i,
diff --git a/srcpkgs/a2jmidid/template b/srcpkgs/a2jmidid/template
index eca329aec5f1..b39aa31eef1c 100644
--- a/srcpkgs/a2jmidid/template
+++ b/srcpkgs/a2jmidid/template
@@ -11,4 +11,3 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/linuxaudio/a2jmidid/"
 distfiles="https://github.com/linuxaudio/a2jmidid/archive/${version}.tar.gz"
 checksum=2828d283e0c9a65f0683881f09676c8c35c45c97a8a56cf77b43b4ef0231df06
-patch_args=-Np0
diff --git a/srcpkgs/a2ps/patches/CVE-2001-1593.diff b/srcpkgs/a2ps/patches/CVE-2001-1593.diff
index 85c95e10d898..17b7e7d932e2 100644
--- a/srcpkgs/a2ps/patches/CVE-2001-1593.diff
+++ b/srcpkgs/a2ps/patches/CVE-2001-1593.diff
@@ -1,7 +1,7 @@
 Index: b/lib/routines.c
 ===================================================================
---- lib/routines.c
-+++ lib/routines.c
+--- a/lib/routines.c
++++ b/lib/routines.c
 @@ -242,3 +242,50 @@
    /* Don't complain if you can't unlink.  Who cares of a tmp file? */
    unlink (filename);
@@ -55,8 +55,8 @@ Index: b/lib/routines.c
 +}
 Index: b/lib/routines.h
 ===================================================================
---- lib/routines.h
-+++ lib/routines.h
+--- a/lib/routines.h
++++ b/lib/routines.h
 @@ -255,7 +255,8 @@
  /* If _STR_ is not defined, give it a tempname in _TMPDIR_ */
  #define tempname_ensure(Str)				\
diff --git a/srcpkgs/a2ps/patches/CVE-2014-0466.diff b/srcpkgs/a2ps/patches/CVE-2014-0466.diff
index ce9f2542b5c3..85199e35b0ff 100644
--- a/srcpkgs/a2ps/patches/CVE-2014-0466.diff
+++ b/srcpkgs/a2ps/patches/CVE-2014-0466.diff
@@ -6,8 +6,8 @@ Bug-Debian: http://bugs.debian.org/742902
 Author: Salvatore Bonaccorso <carnil@debian.org>
 Last-Update: 2014-03-28
 
---- contrib/fixps.in
-+++ contrib/fixps.in
+--- a/contrib/fixps.in
++++ b/contrib/fixps.in
 @@ -389,7 +389,7 @@
    	eval "$command" ;;
        gs)
@@ -17,8 +17,8 @@ Last-Update: 2014-03-28
      esac
    )
  fi
---- contrib/fixps.m4
-+++ contrib/fixps.m4
+--- a/contrib/fixps.m4
++++ b/contrib/fixps.m4
 @@ -307,7 +307,7 @@
    	eval "$command" ;;
        gs)
diff --git a/srcpkgs/a2ps/template b/srcpkgs/a2ps/template
index 5497ec5a574e..9335f38e08e0 100644
--- a/srcpkgs/a2ps/template
+++ b/srcpkgs/a2ps/template
@@ -14,7 +14,6 @@ homepage="http://www.gnu.org/software/a2ps/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4
 conf_files="/etc/a2ps/a2ps.cfg /etc/a2ps/a2ps-site.cfg"
-patch_args=-Np0
 
 LDFLAGS="-lm"
 
diff --git a/srcpkgs/abduco/patches/0001-Use-fixed-size-integer-types-in-protocol-messages.patch b/srcpkgs/abduco/patches/0001-Use-fixed-size-integer-types-in-protocol-messages.patch
index ad4476863e00..e4027d2f2415 100644
--- a/srcpkgs/abduco/patches/0001-Use-fixed-size-integer-types-in-protocol-messages.patch
+++ b/srcpkgs/abduco/patches/0001-Use-fixed-size-integer-types-in-protocol-messages.patch
@@ -19,8 +19,8 @@ as client and server (anything else is unsupported anyway!).
 
 diff --git abduco.c abduco.c
 index 3c60a36..1bd6304 100644
---- abduco.c
-+++ abduco.c
+--- a/abduco.c
++++ b/abduco.c
 @@ -15,6 +15,7 @@
   */
  #include <errno.h>
@@ -51,8 +51,8 @@ index 3c60a36..1bd6304 100644
  
 diff --git client.c client.c
 index 744f061..2c2192b 100644
---- client.c
-+++ client.c
+--- a/client.c
++++ b/client.c
 @@ -78,7 +78,7 @@ static int client_mainloop(void) {
  			if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) != -1) {
  				Packet pkt = {
@@ -64,8 +64,8 @@ index 744f061..2c2192b 100644
  				if (client_send_packet(&pkt))
 diff --git debug.c debug.c
 index b5748ab..e904e33 100644
---- debug.c
-+++ debug.c
+--- a/debug.c
++++ b/debug.c
 @@ -29,7 +29,7 @@ static void print_packet(const char *prefix, Packet *pkt) {
  		fwrite(pkt->u.msg, pkt->len, 1, stderr);
  		break;
@@ -86,8 +86,8 @@ index b5748ab..e904e33 100644
  	fprintf(stderr, "\n");
 diff --git server.c server.c
 index 78ccbe2..6f62cfb 100644
---- server.c
-+++ server.c
+--- a/server.c
++++ b/server.c
 @@ -224,7 +224,10 @@ static void server_mainloop(void) {
  				case MSG_REDRAW:
  					if (!(c->flags & CLIENT_READONLY) && (client_packet.type == MSG_REDRAW || c == server.clients)) {
diff --git a/srcpkgs/abduco/patches/0002-Fix-length-of-MSG_RESIZE-packet.patch b/srcpkgs/abduco/patches/0002-Fix-length-of-MSG_RESIZE-packet.patch
index 1e7dde3c4c68..11dcc03f43b9 100644
--- a/srcpkgs/abduco/patches/0002-Fix-length-of-MSG_RESIZE-packet.patch
+++ b/srcpkgs/abduco/patches/0002-Fix-length-of-MSG_RESIZE-packet.patch
@@ -10,8 +10,8 @@ We no longer send the complete struct winsize.
 
 diff --git client.c client.c
 index 2c2192b..f26bc8f 100644
---- client.c
-+++ client.c
+--- a/client.c
++++ b/client.c
 @@ -79,7 +79,7 @@ static int client_mainloop(void) {
  				Packet pkt = {
  					.type = MSG_RESIZE,
diff --git a/srcpkgs/abduco/patches/0003-Avoid-use-of-BUFSIZ-to-guarantee-system-independent-.patch b/srcpkgs/abduco/patches/0003-Avoid-use-of-BUFSIZ-to-guarantee-system-independent-.patch
index 3bf277098ec2..917a012cb351 100644
--- a/srcpkgs/abduco/patches/0003-Avoid-use-of-BUFSIZ-to-guarantee-system-independent-.patch
+++ b/srcpkgs/abduco/patches/0003-Avoid-use-of-BUFSIZ-to-guarantee-system-independent-.patch
@@ -10,8 +10,8 @@ Subject: [PATCH 3/4] Avoid use of BUFSIZ to guarantee system independent
 
 diff --git abduco.c abduco.c
 index 1bd6304..335907d 100644
---- abduco.c
-+++ abduco.c
+--- a/abduco.c
++++ b/abduco.c
 @@ -75,7 +75,7 @@ typedef struct {
  	uint32_t type;
  	uint32_t len;
diff --git a/srcpkgs/abduco/patches/0004-Correct-EOF-handling-on-client-stdin.patch b/srcpkgs/abduco/patches/0004-Correct-EOF-handling-on-client-stdin.patch
index 75ba5c44c30b..6822c167f569 100644
--- a/srcpkgs/abduco/patches/0004-Correct-EOF-handling-on-client-stdin.patch
+++ b/srcpkgs/abduco/patches/0004-Correct-EOF-handling-on-client-stdin.patch
@@ -11,8 +11,8 @@ of #15.
 
 diff --git client.c client.c
 index f26bc8f..6cf70c7 100644
---- client.c
-+++ client.c
+--- a/client.c
++++ b/client.c
 @@ -129,6 +129,9 @@ static int client_mainloop(void) {
  				} else if (!(client.flags & CLIENT_READONLY)) {
  					client_send_packet(&pkt);
diff --git a/srcpkgs/abduco/template b/srcpkgs/abduco/template
index 6aa3a516c5e2..21fa18ce85ae 100644
--- a/srcpkgs/abduco/template
+++ b/srcpkgs/abduco/template
@@ -10,7 +10,6 @@ license="ISC"
 homepage="http://www.brain-dump.org/projects/abduco/"
 distfiles="http://www.brain-dump.org/projects/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c90909e13fa95770b5afc3b59f311b3d3d2fdfae23f9569fa4f96a3e192a35f4
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/abook/patches/inline.patch b/srcpkgs/abook/patches/inline.patch
index d437fde6ccb8..420ae2ad6c44 100644
--- a/srcpkgs/abook/patches/inline.patch
+++ b/srcpkgs/abook/patches/inline.patch
@@ -1,6 +1,6 @@
 diff -ur database.h database.h
---- database.h	2015-10-04 10:38:25.000000000 +0800
-+++ database.h	2018-02-15 21:11:46.311673251 +0800
+--- a/database.h
++++ b/database.h
 @@ -61,7 +61,7 @@
  /*
   * Field operations
diff --git a/srcpkgs/abook/template b/srcpkgs/abook/template
index c22614dedfb8..9538e8d1f4da 100644
--- a/srcpkgs/abook/template
+++ b/srcpkgs/abook/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="http://abook.sourceforge.net/"
 distfiles="http://abook.sourceforge.net/devel/${pkgname}-${version}.tar.gz"
 checksum=f0a90df8694fb34685ecdd45d97db28b88046c15c95e7b0700596028bd8bc0f9
-patch_args=-Np0
 
 post_extract() {
 	autoreconf --install
diff --git a/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch b/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch
index da1b68f93aa0..f5046d47c658 100644
--- a/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch
+++ b/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch
@@ -1,7 +1,7 @@
 diff --git a/src/daemon.c b/src/daemon.c
 index 312394a..e7b3c58 100644
---- src/daemon.c
-+++ src/daemon.c
+--- a/src/daemon.c
++++ b/src/daemon.c
 @@ -140,6 +140,28 @@ error_get_type (void)
  #define MAX_LOCAL_USERS 50
  #endif
diff --git a/srcpkgs/accountsservice/patches/musl-wtmp.patch b/srcpkgs/accountsservice/patches/musl-wtmp.patch
index ea95f4e40d2b..1d01e3173311 100644
--- a/srcpkgs/accountsservice/patches/musl-wtmp.patch
+++ b/srcpkgs/accountsservice/patches/musl-wtmp.patch
@@ -1,7 +1,7 @@
 Reason: fix build on musl
 Tidy up and send upstream soon...
---- meson.build
-+++ meson.build
+--- a/meson.build
++++ b/meson.build
 @@ -82,8 +82,7 @@ if cc.has_header_symbol('utmpx.h', 'WTMPX_FILENAME', prefix: '#define _GNU_SOURC
  elif cc.has_header_symbol('paths.h', '_PATH_WTMPX')
    config_h.set('PATH_WTMP', '_PATH_WTMPX')
diff --git a/srcpkgs/accountsservice/template b/srcpkgs/accountsservice/template
index 84c28f82c875..c00a4077d8f7 100644
--- a/srcpkgs/accountsservice/template
+++ b/srcpkgs/accountsservice/template
@@ -17,7 +17,6 @@ checksum=ff2b2419a7e06bd9cb335ffe391c7409b49a0f0130b890bd54692a3986699c9b
 make_dirs="
  /var/lib/AccountsService/users 755 root root
  /var/lib/AccountsService/icons 755 root root"
-patch_args=-Np0
 
 # Package build options
 build_options="elogind gir"
diff --git a/srcpkgs/acct/patches/cross.patch b/srcpkgs/acct/patches/cross.patch
index 826dd6af77f7..3b27f6c03377 100644
--- a/srcpkgs/acct/patches/cross.patch
+++ b/srcpkgs/acct/patches/cross.patch
@@ -1,5 +1,5 @@
---- configure.orig	2017-07-02 17:54:06.000000000 +0200
-+++ configure	2018-09-05 19:44:40.854646115 +0200
+--- a/configure
++++ b/configure
 @@ -29608,7 +29608,7 @@
  
  fi
diff --git a/srcpkgs/acct/template b/srcpkgs/acct/template
index b3ac5cc05599..860bb6b28ccf 100644
--- a/srcpkgs/acct/template
+++ b/srcpkgs/acct/template
@@ -9,7 +9,6 @@ license="GPL-3.0-or-later"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4c15bf2b58b16378bcc83f70e77d4d40ab0b194acf2ebeefdb507f151faa663f
-patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	post_extract() {
diff --git a/srcpkgs/acpi_call-dkms/patches/linux4.12.patch b/srcpkgs/acpi_call-dkms/patches/linux4.12.patch
index 10fe2e5e3862..bac0a9d5422a 100644
--- a/srcpkgs/acpi_call-dkms/patches/linux4.12.patch
+++ b/srcpkgs/acpi_call-dkms/patches/linux4.12.patch
@@ -1,5 +1,5 @@
---- acpi_call.c.orig	2017-01-03 17:17:55.000000000 +0000
-+++ acpi_call.c	2017-07-15 00:28:28.259960007 +0000
+--- a/acpi_call.c
++++ b/acpi_call.c
 @@ -7,7 +7,7 @@
  #include <linux/version.h>
  #include <linux/proc_fs.h>
diff --git a/srcpkgs/acpi_call-dkms/patches/linux5.6.patch b/srcpkgs/acpi_call-dkms/patches/linux5.6.patch
index 507d74326063..65c18ac488bb 100644
--- a/srcpkgs/acpi_call-dkms/patches/linux5.6.patch
+++ b/srcpkgs/acpi_call-dkms/patches/linux5.6.patch
@@ -1,5 +1,5 @@
---- acpi_call.c.orig	2017-01-03 18:17:55.000000000 +0100
-+++ acpi_call.c	2020-03-31 10:35:40.493575868 +0200
+--- a/acpi_call.c
++++ b/acpi_call.c
 @@ -347,11 +347,18 @@
      return ret;
  }
diff --git a/srcpkgs/acpi_call-dkms/template b/srcpkgs/acpi_call-dkms/template
index 752770b0da9d..2a24e481538f 100644
--- a/srcpkgs/acpi_call-dkms/template
+++ b/srcpkgs/acpi_call-dkms/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/damadmai/acpi_call"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=c48a0a8768d657a8da7b59d7dbf6276554313fa6a0cb012fa4cf85a77e55f44b
-patch_args=-Np0
 
 dkms_modules="acpi_call ${version}"
 depends="dkms"
diff --git a/srcpkgs/acpid/patches/disable-logging-to-console.patch b/srcpkgs/acpid/patches/disable-logging-to-console.patch
index 32acb35d8367..6bc3728038c2 100644
--- a/srcpkgs/acpid/patches/disable-logging-to-console.patch
+++ b/srcpkgs/acpid/patches/disable-logging-to-console.patch
@@ -1,5 +1,5 @@
---- acpid.c
-+++ acpid.c
+--- a/acpid.c
++++ b/acpid.c
 @@ -389,7 +389,7 @@ open_log(void)
  	int log_opts;
  
diff --git a/srcpkgs/acpid/patches/portability.patch b/srcpkgs/acpid/patches/portability.patch
index 03bdcbaee33d..2135600ab8e1 100644
--- a/srcpkgs/acpid/patches/portability.patch
+++ b/srcpkgs/acpid/patches/portability.patch
@@ -3,8 +3,8 @@ Portability fixes:
 - Do not use isfdtype()... rather use fstat(2).
 - Define TEMP_FAILURE_RETRY if needed.
 
---- acpid.h	2014-02-26 01:36:58.788146100 +0100
-+++ acpid.h	2014-12-28 06:58:18.252702509 +0100
+--- a/acpid.h
++++ b/acpid.h
 @@ -39,6 +39,15 @@
  
  #define PACKAGE 		"acpid"
@@ -21,8 +21,8 @@ Portability fixes:
  /*
   * acpid.c
   */
---- kacpimon/libnetlink.c	2013-02-24 14:20:06.624844873 +0100
-+++ kacpimon/libnetlink.c	2014-12-28 06:59:50.283706615 +0100
+--- a/kacpimon/libnetlink.c
++++ b/kacpimon/libnetlink.c
 @@ -24,6 +24,7 @@
  #include <time.h>
  #include <sys/uio.h>
@@ -31,8 +31,8 @@ Portability fixes:
  #include "libnetlink.h"
  
  void rtnl_close(struct rtnl_handle *rth)
---- libnetlink.c	2012-07-15 00:29:38.168312376 +0200
-+++ libnetlink.c	2014-12-28 06:59:17.379705147 +0100
+--- a/libnetlink.c
++++ b/libnetlink.c
 @@ -24,6 +24,7 @@
  #include <time.h>
  #include <sys/uio.h>
@@ -41,8 +41,8 @@ Portability fixes:
  #include "libnetlink.h"
  
  void rtnl_close(struct rtnl_handle *rth)
---- sock.c	2013-08-15 01:30:44.655673004 +0200
-+++ sock.c	2014-12-28 07:11:31.198737890 +0100
+--- a/sock.c
++++ b/sock.c
 @@ -53,7 +54,12 @@ int non_root_clients;
  int
  is_socket(int fd)
diff --git a/srcpkgs/acpid/template b/srcpkgs/acpid/template
index df44a949213a..8312d0e4e15a 100644
--- a/srcpkgs/acpid/template
+++ b/srcpkgs/acpid/template
@@ -10,7 +10,6 @@ homepage="https://sourceforge.net/projects/acpid2/"
 distfiles="${SOURCEFORGE_SITE}/acpid2/acpid-${version}.tar.xz"
 checksum=f2d2d30b3edc3234bd82f6f7186699a6aa3c85c8d20bc4e30e9b3c68a1ed157e
 conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"
-patch_args=-Np0
 
 post_install() {
 	vinstall ${FILESDIR}/handler.sh 755 etc/acpi
diff --git a/srcpkgs/actiona/patches/bytearray-constdata.patch b/srcpkgs/actiona/patches/bytearray-constdata.patch
index 0432bea0ce55..4f6e0355f0f3 100644
--- a/srcpkgs/actiona/patches/bytearray-constdata.patch
+++ b/srcpkgs/actiona/patches/bytearray-constdata.patch
@@ -1,5 +1,5 @@
---- actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp	2018-07-17 20:29:12.000000000 +0200
-+++ actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp	2018-07-28 13:26:14.340872982 +0200
+--- a/actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp
++++ b/actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp
 @@ -98,7 +98,7 @@
      }
  #else
diff --git a/srcpkgs/actiona/patches/no-updater.patch b/srcpkgs/actiona/patches/no-updater.patch
index 6cb9a6956577..634bf16c254a 100644
--- a/srcpkgs/actiona/patches/no-updater.patch
+++ b/srcpkgs/actiona/patches/no-updater.patch
@@ -1,5 +1,5 @@
---- actiona.pro	2015-06-22 17:22:46.000000000 +0200
-+++ actiona.pro	2015-10-08 12:08:09.582973444 +0200
+--- a/actiona.pro
++++ b/actiona.pro
 @@ -1,5 +1,6 @@
  TEMPLATE = subdirs
  CONFIG = ordered
diff --git a/srcpkgs/actiona/patches/socket-include-order.patch b/srcpkgs/actiona/patches/socket-include-order.patch
index bb8aac11a402..06faed7c5604 100644
--- a/srcpkgs/actiona/patches/socket-include-order.patch
+++ b/srcpkgs/actiona/patches/socket-include-order.patch
@@ -1,5 +1,5 @@
---- actions/actionpacksystem/systeminfo/linux/qnetworkinfo_linux.cpp	2018-07-17 20:29:12.000000000 +0200
-+++ actions/actionpacksystem/systeminfo/linux/qnetworkinfo_linux.cpp	2018-07-27 20:12:49.889568736 +0200
+--- a/actions/actionpacksystem/systeminfo/linux/qnetworkinfo_linux.cpp
++++ b/actions/actionpacksystem/systeminfo/linux/qnetworkinfo_linux.cpp
 @@ -62,11 +62,11 @@
  #endif // QT_NO_UDEV
  
diff --git a/srcpkgs/actiona/patches/use-lrelease-qt5.patch b/srcpkgs/actiona/patches/use-lrelease-qt5.patch
index 5123691334d6..0ca24638980d 100644
--- a/srcpkgs/actiona/patches/use-lrelease-qt5.patch
+++ b/srcpkgs/actiona/patches/use-lrelease-qt5.patch
@@ -1,5 +1,5 @@
---- actiona.pro	2020-05-07 12:41:07.738401940 +0200
-+++ actiona.pro	2020-05-07 12:47:22.744386988 +0200
+--- a/actiona.pro
++++ b/actiona.pro
 @@ -15,7 +15,7 @@
  
  isEmpty(QMAKE_LRELEASE) {
diff --git a/srcpkgs/actiona/template b/srcpkgs/actiona/template
index 9b66b6e673a2..6ce3ccdc6b41 100644
--- a/srcpkgs/actiona/template
+++ b/srcpkgs/actiona/template
@@ -14,7 +14,6 @@ license="GPL-3.0-or-later"
 homepage="https://actiona.tools/"
 distfiles="https://github.com/Jmgr/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=447065e380f8f37db4c8af01df8e1b9d7189cd256205f758845b71d8de6f37ea
-patch_args=-Np0
 
 post_build() {
 	lrelease-qt5 locale/*.ts
diff --git a/srcpkgs/afterstep/patches/39-Fix-parallel-builds.patch b/srcpkgs/afterstep/patches/39-Fix-parallel-builds.patch
index 5a7ea3bd9c2d..a422506b5b0e 100644
--- a/srcpkgs/afterstep/patches/39-Fix-parallel-builds.patch
+++ b/srcpkgs/afterstep/patches/39-Fix-parallel-builds.patch
@@ -15,8 +15,8 @@ https://buildd.debian.org/status/fetch.php?pkg=afterstep&arch=amd64&ver=2.2.12-1
 
 diff --git a/libAfterConf/Makefile.in b/libAfterConf/Makefile.in
 index fa049a3..686a958 100644
---- libAfterConf/Makefile.in
-+++ libAfterConf/Makefile.in
+--- a/libAfterConf/Makefile.in
++++ b/libAfterConf/Makefile.in
 @@ -52,7 +52,7 @@ make_standard_categories:	make_standard_categories.o
  PrintDesktopEntries.o:	DesktopEntry.c
  		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) -DPRINT_DESKTOP_ENTRIES $(INCLUDES) $(EXTRA_INCLUDES) -c DesktopEntry.c -o PrintDesktopEntries.o
diff --git a/srcpkgs/afterstep/patches/40-Fix-few-gcc-warnings.patch b/srcpkgs/afterstep/patches/40-Fix-few-gcc-warnings.patch
index a7e1e3cde21b..f93c475a1f05 100644
--- a/srcpkgs/afterstep/patches/40-Fix-few-gcc-warnings.patch
+++ b/srcpkgs/afterstep/patches/40-Fix-few-gcc-warnings.patch
@@ -13,8 +13,8 @@ Subject: 40 Fix few gcc warnings
 
 diff --git a/libAfterImage/import.c b/libAfterImage/import.c
 index f2c7ad1..c80b9c3 100644
---- libAfterImage/import.c
-+++ libAfterImage/import.c
+--- a/libAfterImage/import.c
++++ b/libAfterImage/import.c
 @@ -585,7 +585,7 @@ get_thumbnail_asimage( ASImageManager* imageman, const char *file, int thumb_wid
  
  	if (imageman && file)
@@ -53,8 +53,8 @@ index f2c7ad1..c80b9c3 100644
  	
 diff --git a/libAfterImage/ungif.c b/libAfterImage/ungif.c
 index cb9c628..faa1da7 100644
---- libAfterImage/ungif.c
-+++ libAfterImage/ungif.c
+--- a/libAfterImage/ungif.c
++++ b/libAfterImage/ungif.c
 @@ -153,7 +153,8 @@ get_gif_image_desc( GifFileType *gif, SavedImage *im )
  		{
  			im->ImageDesc.ColorMap = MakeMapObject(gif->Image.ColorMap->ColorCount, NULL);
@@ -67,8 +67,8 @@ index cb9c628..faa1da7 100644
   		}
 diff --git a/src/ASDocGen/ASDocGen.c b/src/ASDocGen/ASDocGen.c
 index f8d38e9..bed04b8 100644
---- src/ASDocGen/ASDocGen.c
-+++ src/ASDocGen/ASDocGen.c
+--- a/src/ASDocGen/ASDocGen.c
++++ b/src/ASDocGen/ASDocGen.c
 @@ -880,7 +880,7 @@ gen_glossary( const char *dest_dir, const char *file, ASDocType doc_type )
  	LOCAL_DEBUG_OUT( "Glossary has %ld items", Glossary->items_num);
  	if( (doc_type == DocType_HTML	|| doc_type == DocType_PHP ) && Glossary->items_num > 0 )
@@ -107,8 +107,8 @@ index f8d38e9..bed04b8 100644
  		
 diff --git a/src/ASMount/main.c b/src/ASMount/main.c
 index 9a42b49..ae22ad5 100644
---- src/ASMount/main.c
-+++ src/ASMount/main.c
+--- a/src/ASMount/main.c
++++ b/src/ASMount/main.c
 @@ -1238,7 +1238,9 @@ void init_ASMount(ASFlagType flags, const char *cmd)
  	reloadButtons();
  	AppState.volumes = create_asbidirlist (ASVolume_destroy);
@@ -131,8 +131,8 @@ index 9a42b49..ae22ad5 100644
  #else	
 diff --git a/src/afterstep/cover.c b/src/afterstep/cover.c
 index 5455c48..11a76a4 100644
---- src/afterstep/cover.c
-+++ src/afterstep/cover.c
+--- a/src/afterstep/cover.c
++++ b/src/afterstep/cover.c
 @@ -101,7 +101,7 @@ void do_anim_shape_blocks (void *vdata)
  #ifdef SHAPE
  	struct ASDeskAniBlocks *data = (struct ASDeskAniBlocks *)vdata;
@@ -154,8 +154,8 @@ index 5455c48..11a76a4 100644
  			continue;
 diff --git a/src/afterstep/dbus.c b/src/afterstep/dbus.c
 index d7594d9..d311094 100644
---- src/afterstep/dbus.c
-+++ src/afterstep/dbus.c
+--- a/src/afterstep/dbus.c
++++ b/src/afterstep/dbus.c
 @@ -240,11 +240,13 @@ Bool get_gnome_autosave ()
  {
  	Bool autosave = False;
diff --git a/srcpkgs/afterstep/patches/43-Fix-gcc-warning.patch b/srcpkgs/afterstep/patches/43-Fix-gcc-warning.patch
index 59f82b5c0ec9..d341d8f1c775 100644
--- a/srcpkgs/afterstep/patches/43-Fix-gcc-warning.patch
+++ b/srcpkgs/afterstep/patches/43-Fix-gcc-warning.patch
@@ -9,8 +9,8 @@ Fix "undefined behaviour" warning
 
 diff --git a/libAfterConf/Database.c b/libAfterConf/Database.c
 index c10df0d..1cfc7f9 100644
---- libAfterConf/Database.c
-+++ libAfterConf/Database.c
+--- a/libAfterConf/Database.c
++++ b/libAfterConf/Database.c
 @@ -578,7 +578,8 @@ void delete_name_list (name_list ** head)
  		style_delete (*head, head);
  }
diff --git a/srcpkgs/afterstep/patches/44-Fix-build-with-gcc-5.patch b/srcpkgs/afterstep/patches/44-Fix-build-with-gcc-5.patch
index be01406c1982..9447bcf990d9 100644
--- a/srcpkgs/afterstep/patches/44-Fix-build-with-gcc-5.patch
+++ b/srcpkgs/afterstep/patches/44-Fix-build-with-gcc-5.patch
@@ -25,8 +25,8 @@ Bug-Debian: https://bugs.debian.org/777768
 
 diff --git a/libAfterBase/asvector.h b/libAfterBase/asvector.h
 index 242bbb8..ec83231 100644
---- libAfterBase/asvector.h
-+++ libAfterBase/asvector.h
+--- a/libAfterBase/asvector.h
++++ b/libAfterBase/asvector.h
 @@ -38,7 +38,7 @@ ASVector *append_vector( ASVector *v, void * data, size_t size );
  /* returns index on success, -1 on failure */
  int vector_insert_elem( ASVector *v, void *data, size_t size, void *sibling, int before );
@@ -38,8 +38,8 @@ index 242bbb8..ec83231 100644
  int vector_remove_elem( ASVector *v, void *data );
 diff --git a/libAfterBase/output.h b/libAfterBase/output.h
 index fd186a7..ef21919 100644
---- libAfterBase/output.h
-+++ libAfterBase/output.h
+--- a/libAfterBase/output.h
++++ b/libAfterBase/output.h
 @@ -56,7 +56,7 @@ Bool show_debug( const char *file, const char *func, int line, const char *msg_f
  
  
@@ -51,8 +51,8 @@ index fd186a7..ef21919 100644
   * your compiler . Thanks!!! */
 diff --git a/libAfterBase/parse.h b/libAfterBase/parse.h
 index 193fbba..e4db499 100644
---- libAfterBase/parse.h
-+++ libAfterBase/parse.h
+--- a/libAfterBase/parse.h
++++ b/libAfterBase/parse.h
 @@ -73,7 +73,7 @@ format_geometry ( int x, int y, unsigned int width, unsigned int height, int fla
  
  double parse_math(const char* str, char** endptr, double size);
@@ -64,8 +64,8 @@ index 193fbba..e4db499 100644
  char *hex_to_buffer(void *data, size_t bytes, char* buffer);
 diff --git a/libAfterConf/Feel.c b/libAfterConf/Feel.c
 index 0f2224b..787964d 100644
---- libAfterConf/Feel.c
-+++ libAfterConf/Feel.c
+--- a/libAfterConf/Feel.c
++++ b/libAfterConf/Feel.c
 @@ -29,6 +29,8 @@
  
  #include "afterconf.h"
@@ -77,8 +77,8 @@ index 0f2224b..787964d 100644
  	{ASA_Virtual, WINDOWBOX_Virtual_ID, 0}
 diff --git a/libAfterStep/colorscheme.c b/libAfterStep/colorscheme.c
 index 6cdeb56..5b93107 100644
---- libAfterStep/colorscheme.c
-+++ libAfterStep/colorscheme.c
+--- a/libAfterStep/colorscheme.c
++++ b/libAfterStep/colorscheme.c
 @@ -162,7 +162,7 @@ static inline ARGB32 MAKE_ARGB32_SHADE100 (CARD32 a, int s100)
  	return MAKE_ARGB32_GREY8 (a, s8);
  }
@@ -90,8 +90,8 @@ index 6cdeb56..5b93107 100644
  {
 diff --git a/libAfterStep/event.c b/libAfterStep/event.c
 index a27759b..8c7a449 100644
---- libAfterStep/event.c
-+++ libAfterStep/event.c
+--- a/libAfterStep/event.c
++++ b/libAfterStep/event.c
 @@ -202,7 +202,7 @@ void sync_event_queue (Bool forget)
  /****************************************************************************
   * Records the time of the last processed event. Used in XSetInputFocus
@@ -103,8 +103,8 @@ index a27759b..8c7a449 100644
  		register Time *ptime =
 diff --git a/libAfterStep/functions.h b/libAfterStep/functions.h
 index fb565f1..a50f4e3 100644
---- libAfterStep/functions.h
-+++ libAfterStep/functions.h
+--- a/libAfterStep/functions.h
++++ b/libAfterStep/functions.h
 @@ -314,7 +314,7 @@ FunctionCode change_func_code (const char *func_name, FunctionCode new_code);
  void init_func_data (FunctionData * data);
  void copy_func_data (FunctionData * dst, FunctionData * src);
@@ -116,8 +116,8 @@ index fb565f1..a50f4e3 100644
  void destroy_func_data( FunctionData **pdata );
 diff --git a/libAfterStep/mylook.h b/libAfterStep/mylook.h
 index 7bff0b8..a002aa8 100644
---- libAfterStep/mylook.h
-+++ libAfterStep/mylook.h
+--- a/libAfterStep/mylook.h
++++ b/libAfterStep/mylook.h
 @@ -397,7 +397,7 @@ void myback_delete( MyBackground **myback, ASImageManager *imman );
  MyDesktopConfig *create_mydeskconfig( int desk, char *data );
  void init_deskconfigs_list( MyLook *look );
@@ -142,8 +142,8 @@ index 7bff0b8..a002aa8 100644
  
 diff --git a/libAfterStep/session.h b/libAfterStep/session.h
 index 536e225..73945d8 100644
---- libAfterStep/session.h
-+++ libAfterStep/session.h
+--- a/libAfterStep/session.h
++++ b/libAfterStep/session.h
 @@ -49,7 +49,7 @@ void 	   destroy_assession (ASSession * session);
  void       update_default_session ( ASSession *session, int func);
  
@@ -155,8 +155,8 @@ index 536e225..73945d8 100644
  void 	   change_desk_session (ASSession * session, int desk, const char *new_val, int function);
 diff --git a/src/WinList2/WinList.c b/src/WinList2/WinList.c
 index 6db35ac..6c98f38 100644
---- src/WinList2/WinList.c
-+++ src/WinList2/WinList.c
+--- a/src/WinList2/WinList.c
++++ b/src/WinList2/WinList.c
 @@ -976,7 +976,7 @@ moveresize_main_canvas( int width, int height )
  void
  postponed_rearrange_winlist( void *vdata )
@@ -168,8 +168,8 @@ index 6db35ac..6c98f38 100644
  
 diff --git a/src/afterstep/asinternals.h b/src/afterstep/asinternals.h
 index 81b3249..9f75fd8 100644
---- src/afterstep/asinternals.h
-+++ src/afterstep/asinternals.h
+--- a/src/afterstep/asinternals.h
++++ b/src/afterstep/asinternals.h
 @@ -575,6 +575,7 @@ void asdbus_shutdown();
  void asdbus_process_messages ();
  
@@ -202,8 +202,8 @@ index 81b3249..9f75fd8 100644
  				int pointer_mode, int keyboard_mode, Window confine_to, Cursor cursor);
 diff --git a/src/afterstep/events.c b/src/afterstep/events.c
 index 5588ffb..19e5441 100644
---- src/afterstep/events.c
-+++ src/afterstep/events.c
+--- a/src/afterstep/events.c
++++ b/src/afterstep/events.c
 @@ -46,6 +46,7 @@
  #include "../../libAfterStep/moveresize.h"
  
@@ -214,8 +214,8 @@ index 5588ffb..19e5441 100644
  # include <sys/shm.h>
 diff --git a/src/afterstep/menuitem.c b/src/afterstep/menuitem.c
 index 1adcb65..8a35186 100644
---- src/afterstep/menuitem.c
-+++ src/afterstep/menuitem.c
+--- a/src/afterstep/menuitem.c
++++ b/src/afterstep/menuitem.c
 @@ -55,6 +55,8 @@
  
  #include "dirtree.h"
diff --git a/srcpkgs/afterstep/patches/45-Fix-libAfterBase-Makefile.patch b/srcpkgs/afterstep/patches/45-Fix-libAfterBase-Makefile.patch
index 110ec8ae82bd..76d07b6d829e 100644
--- a/srcpkgs/afterstep/patches/45-Fix-libAfterBase-Makefile.patch
+++ b/srcpkgs/afterstep/patches/45-Fix-libAfterBase-Makefile.patch
@@ -11,8 +11,8 @@ by libAfterImage.
 
 diff --git a/libAfterBase/Makefile.in b/libAfterBase/Makefile.in
 index 41f53c6..3dc63b7 100644
---- libAfterBase/Makefile.in
-+++ libAfterBase/Makefile.in
+--- a/libAfterBase/Makefile.in
++++ b/libAfterBase/Makefile.in
 @@ -137,7 +137,6 @@ install.script:
  install.dyn:
  		@( echo "$(INSTALL_LIB) $(LIB_SHARED).$(LIBVER) $(LIBDIR)"; \
diff --git a/srcpkgs/afterstep/patches/50-cross-safe-min-max.patch b/srcpkgs/afterstep/patches/50-cross-safe-min-max.patch
index 71872c7763b4..36739e9d2ebd 100644
--- a/srcpkgs/afterstep/patches/50-cross-safe-min-max.patch
+++ b/srcpkgs/afterstep/patches/50-cross-safe-min-max.patch
@@ -1,7 +1,7 @@
 diff --git libAfterBase/configure.in libAfterBase/configure.in
 index 4bc2232..f250692 100644
---- libAfterBase/configure.in
-+++ libAfterBase/configure.in
+--- a/libAfterBase/configure.in
++++ b/libAfterBase/configure.in
 @@ -228,12 +228,7 @@ if test "x$enable_xlocale" = "xyes"; then
  fi
  
diff --git a/srcpkgs/afterstep/patches/51-configure-pass-cross-alias-down.patch b/srcpkgs/afterstep/patches/51-configure-pass-cross-alias-down.patch
index cc3f0f28db33..35a3879c151c 100644
--- a/srcpkgs/afterstep/patches/51-configure-pass-cross-alias-down.patch
+++ b/srcpkgs/afterstep/patches/51-configure-pass-cross-alias-down.patch
@@ -1,7 +1,7 @@
 diff --git configure configure
 index bc9a30e..95e7b3a 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -6254,6 +6254,8 @@ FROM_AFTERSTEP_CONFIGURE=yes
  export FROM_AFTERSTEP_CONFIGURE
  
diff --git a/srcpkgs/afterstep/patches/52-libafterimage-cross.patch b/srcpkgs/afterstep/patches/52-libafterimage-cross.patch
index 316d32216100..48e79bab4223 100644
--- a/srcpkgs/afterstep/patches/52-libafterimage-cross.patch
+++ b/srcpkgs/afterstep/patches/52-libafterimage-cross.patch
@@ -1,7 +1,7 @@
 diff --git libAfterImage/configure.in libAfterImage/configure.in
 index ca49a50..780e0ff 100644
---- libAfterImage/configure.in
-+++ libAfterImage/configure.in
+--- a/libAfterImage/configure.in
++++ b/libAfterImage/configure.in
 @@ -590,21 +590,21 @@ else
  					  )
  	  if test "x$have_ft2build" = "xno" ; then
diff --git a/srcpkgs/afterstep/template b/srcpkgs/afterstep/template
index f5b99af26493..ba9c15546dea 100644
--- a/srcpkgs/afterstep/template
+++ b/srcpkgs/afterstep/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="http://www.afterstep.org/"
 distfiles="https://github.com/sashavasko/${pkgname}-devel/archive/${version}.tar.gz"
 checksum=7a82d06a9ce432ef3b0856ff39f6da416aa8cbc249dbb2ff3c1cdcb02e2ca46d
-patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi libAfterBase
diff --git a/srcpkgs/agg/patches/agg-2.4-depends.patch b/srcpkgs/agg/patches/agg-2.4-depends.patch
index 8db32441ab36..5a1d07a64328 100644
--- a/srcpkgs/agg/patches/agg-2.4-depends.patch
+++ b/srcpkgs/agg/patches/agg-2.4-depends.patch
@@ -1,5 +1,5 @@
---- font_freetype/Makefile.am	2005-10-18 11:45:40.000000000 +0100
-+++ font_freetype/Makefile.am	2006-07-10 15:11:55.000000000 +0100
+--- a/font_freetype/Makefile.am
++++ b/font_freetype/Makefile.am
 @@ -4,8 +4,9 @@
  agginclude_HEADERS = agg_font_freetype.h
  lib_LTLIBRARIES = libaggfontfreetype.la
@@ -11,8 +11,8 @@
 +libaggfontfreetype_la_LIBADD = ../src/libagg.la @FREETYPE_LIBS@
  endif
  
---- src/platform/sdl/Makefile.am	2005-10-17 23:49:35.000000000 +0100
-+++ src/platform/sdl/Makefile.am	2006-07-10 15:11:55.000000000 +0100
+--- a/src/platform/sdl/Makefile.am
++++ b/src/platform/sdl/Makefile.am
 @@ -5,6 +5,6 @@
  libaggplatformsdl_la_LDFLAGS = -version-info @AGG_LIB_VERSION@
  libaggplatformsdl_la_SOURCES = agg_platform_support.cpp
@@ -21,8 +21,8 @@
 +libaggplatformsdl_la_LIBADD = ../../libagg.la @SDL_LIBS@
  endif
  
---- configure.in	2006-10-09 05:06:36.000000000 +0100
-+++ configure.in	2007-01-07 14:07:39.000000000 +0000
+--- a/configure.in
++++ b/configure.in
 @@ -122,7 +122,8 @@
  fi
  AM_CONDITIONAL(ENABLE_X11,[test x$no_x = x -a xno != x$enable_platform -a x$win32_host != xyes])
@@ -33,8 +33,8 @@
  dnl ###############################################
  
  dnl Settung up library version
---- src/platform/X11/Makefile.am	2006-12-11 00:59:45.000000000 +0000
-+++ src/platform/X11/Makefile.am	2007-01-07 14:07:39.000000000 +0000
+--- a/src/platform/X11/Makefile.am
++++ b/src/platform/X11/Makefile.am
 @@ -1,8 +1,8 @@
  if ENABLE_X11
  lib_LTLIBRARIES = libaggplatformX11.la
diff --git a/srcpkgs/agg/patches/agg-2.5-pkgconfig.patch b/srcpkgs/agg/patches/agg-2.5-pkgconfig.patch
index 431bed6c7a12..9bb31489c640 100644
--- a/srcpkgs/agg/patches/agg-2.5-pkgconfig.patch
+++ b/srcpkgs/agg/patches/agg-2.5-pkgconfig.patch
@@ -1,5 +1,5 @@
---- libagg.pc.in.orig	2007-01-07 13:58:28.000000000 +0000
-+++ libagg.pc.in	2007-01-07 14:02:40.000000000 +0000
+--- a/libagg.pc.in
++++ b/libagg.pc.in
 @@ -6,5 +6,6 @@
  Name: libagg
  Description: Anti Grain Geometry - A High Quality Rendering Engine for C++
diff --git a/srcpkgs/agg/patches/gcc82.patch b/srcpkgs/agg/patches/gcc82.patch
index eb535ff03181..a835dc66192a 100644
--- a/srcpkgs/agg/patches/gcc82.patch
+++ b/srcpkgs/agg/patches/gcc82.patch
@@ -1,5 +1,5 @@
---- include/agg_renderer_outline_aa.h	2006-10-09 06:07:08.000000000 +0200
-+++ include/agg_renderer_outline_aa.h	2018-08-22 11:06:28.038930861 +0200
+--- a/include/agg_renderer_outline_aa.h
++++ b/include/agg_renderer_outline_aa.h
 @@ -1375,7 +1375,7 @@
          //---------------------------------------------------------------------
          void profile(const line_profile_aa& prof) { m_profile = &prof; }
diff --git a/srcpkgs/agg/template b/srcpkgs/agg/template
index 5cdbcaa17b47..a313e19cb1f9 100644
--- a/srcpkgs/agg/template
+++ b/srcpkgs/agg/template
@@ -13,7 +13,6 @@ homepage="http://www.antigrain.com/"
 license="GPL-2.0-or-later"
 distfiles="http://www.antigrain.com/agg-${version}.tar.gz"
 checksum=ab1edc54cc32ba51a62ff120d501eecd55fceeedf869b9354e7e13812289911f
-patch_args=-Np0
 
 pre_configure() {
 	sed -e '/AM_C_PROTOTYPES/d' -i configure.in
diff --git a/srcpkgs/allegro4/patches/mesa10-uncompat.patch b/srcpkgs/allegro4/patches/mesa10-uncompat.patch
index ae1aa4440ef5..b197600d1a8e 100644
--- a/srcpkgs/allegro4/patches/mesa10-uncompat.patch
+++ b/srcpkgs/allegro4/patches/mesa10-uncompat.patch
@@ -7,8 +7,8 @@ once mesa-10 contains the above commit.
 
 	-- xtraeme
 
---- addons/allegrogl/include/allegrogl/GLext/glx_ext_api.h.orig	2014-01-05 09:08:26.796542194 +0100
-+++ addons/allegrogl/include/allegrogl/GLext/glx_ext_api.h	2014-01-05 09:08:46.115682136 +0100
+--- a/addons/allegrogl/include/allegrogl/GLext/glx_ext_api.h
++++ b/addons/allegrogl/include/allegrogl/GLext/glx_ext_api.h
 @@ -59,8 +59,8 @@ AGL_API(void, DestroyGLXVideoSourceSGIX,
  /* GLX_EXT_import_context */
  AGL_API(Display *, GetCurrentDisplayEXT, (void))
diff --git a/srcpkgs/allegro4/template b/srcpkgs/allegro4/template
index 99b570dcb675..f8901c34cecc 100644
--- a/srcpkgs/allegro4/template
+++ b/srcpkgs/allegro4/template
@@ -17,7 +17,6 @@ homepage="http://alleg.sourceforge.net/"
 homepage="https://liballeg.org"
 distfiles="https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz"
 checksum=ec19dbc9a021244582b4819b3583ee594b50141f9fcf6944a4ed8069cbf8d4d4
-patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/allegro5/patches/time64.patch b/srcpkgs/allegro5/patches/time64.patch
index 93b0491c6132..cd956abd1b7d 100644
--- a/srcpkgs/allegro5/patches/time64.patch
+++ b/srcpkgs/allegro5/patches/time64.patch
@@ -1,5 +1,5 @@
---- src/linux/lhaptic.c	2015-06-01 21:58:12.000000000 +0200
-+++ src/linux/lhaptic.c	2020-12-06 09:50:58.475010832 +0100
+--- a/src/linux/lhaptic.c
++++ b/src/linux/lhaptic.c
 @@ -57,6 +57,7 @@
  
  
diff --git a/srcpkgs/allegro5/template b/srcpkgs/allegro5/template
index d96d1b779231..f55a7eb6c144 100644
--- a/srcpkgs/allegro5/template
+++ b/srcpkgs/allegro5/template
@@ -17,7 +17,6 @@ license="Allegro License (MIT alike)"
 homepage="https://liballeg.org/"
 distfiles="https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz"
 checksum=5de8189ec051e1865f359654f86ec68e2a12a94edd00ad06d1106caa5ff27763
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/alsa-firmware/patches/musl.patch b/srcpkgs/alsa-firmware/patches/musl.patch
index f2c1ac2c5384..7785511436c5 100644
--- a/srcpkgs/alsa-firmware/patches/musl.patch
+++ b/srcpkgs/alsa-firmware/patches/musl.patch
@@ -1,5 +1,5 @@
---- hdsploader/multiface_firmware_rev11.dat.orig
-+++ hdsploader/multiface_firmware_rev11.dat
+--- a/hdsploader/multiface_firmware_rev11.dat.orig
++++ b/hdsploader/multiface_firmware_rev11.dat
 @@ -1,5 +1,5 @@
  /* stored in little-endian */
 -static u_int32_t multiface_firmware_rev11[24413] = {
@@ -7,8 +7,8 @@
  0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
  0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
  0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
---- hdsploader/digiface_firmware_rev11.dat.orig
-+++ hdsploader/digiface_firmware_rev11.dat
+--- a/hdsploader/digiface_firmware_rev11.dat.orig
++++ b/hdsploader/digiface_firmware_rev11.dat
 @@ -1,5 +1,5 @@
  /* stored in little-endian */
 -static u_int32_t digiface_firmware_rev11[24413] = {
@@ -16,8 +16,8 @@
  0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
  0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
  0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
---- hdsploader/digiface_firmware.dat.orig
-+++ hdsploader/digiface_firmware.dat
+--- a/hdsploader/digiface_firmware.dat.orig
++++ b/hdsploader/digiface_firmware.dat
 @@ -1,5 +1,5 @@
  /* stored in little-endian */
 -static u_int32_t digiface_firmware[24413] = {
@@ -25,8 +25,8 @@
  0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
  0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
  0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
---- hdsploader/tobin.c.orig
-+++ hdsploader/tobin.c
+--- a/hdsploader/tobin.c.orig
++++ b/hdsploader/tobin.c
 @@ -1,5 +1,6 @@
  #include <stdio.h>
  #include <stdlib.h>
@@ -43,8 +43,8 @@
  {
  	FILE *out;
  	
---- hdsploader/multiface_firmware.dat.orig
-+++ hdsploader/multiface_firmware.dat
+--- a/hdsploader/multiface_firmware.dat.orig
++++ b/hdsploader/multiface_firmware.dat
 @@ -1,5 +1,5 @@
  /* stored in little-endian */
 -static u_int32_t multiface_firmware[24413] = {
diff --git a/srcpkgs/alsa-firmware/template b/srcpkgs/alsa-firmware/template
index 8ded0831aa1c..b85bc791275d 100644
--- a/srcpkgs/alsa-firmware/template
+++ b/srcpkgs/alsa-firmware/template
@@ -12,7 +12,6 @@ distfiles="https://www.alsa-project.org/files/pub/firmware/${pkgname}-${version}
 checksum=b67b6d7d08bcfc247ef6ff0ab88a99c188305a3cf57ae2dfd0bcd9a5b36cd5bb
 nostrip=yes
 ignore_elf_files="/usr/share/alsa/firmware/mixartloader/miXart8.elf"
-patch_args=-Np0
 
 pre_configure() {
 	export CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" LDFLAGS="${BUILD_LDFLAGS}"
diff --git a/srcpkgs/alsa-tools/patches/musl-__sighandler_t.patch b/srcpkgs/alsa-tools/patches/musl-__sighandler_t.patch
index 7231d2e59ba7..de47ebd72e71 100644
--- a/srcpkgs/alsa-tools/patches/musl-__sighandler_t.patch
+++ b/srcpkgs/alsa-tools/patches/musl-__sighandler_t.patch
@@ -1,5 +1,5 @@
---- ./ld10k1/src/ld10k1_fnc1.c.orig	2015-09-10 22:54:40.229499746 -0400
-+++ ./ld10k1/src/ld10k1_fnc1.c	2015-09-10 23:09:37.236472375 -0400
+--- a/ld10k1/src/ld10k1_fnc1.c
++++ b/ld10k1/src/ld10k1_fnc1.c
 @@ -23,6 +23,10 @@
  #include "config.h"
  #endif
diff --git a/srcpkgs/alsa-tools/template b/srcpkgs/alsa-tools/template
index e96cc23f1547..1078472c79ae 100644
--- a/srcpkgs/alsa-tools/template
+++ b/srcpkgs/alsa-tools/template
@@ -12,7 +12,6 @@ homepage="http://alsa-project.org"
 distfiles="https://www.alsa-project.org/files/pub/tools/alsa-tools-${version}.tar.bz2"
 checksum=bfd3c7aae1289269605d3da02279159b10e3dabdd31e658cbceaa30170957349
 python_version=3
-patch_args=-Np0
 
 _tools="
 	as10k1 echomixer envy24control hdajackretask hdajacksensetest hda-verb hdspconf
diff --git a/srcpkgs/amdvlk/patches/cmake-build-type-none.patch b/srcpkgs/amdvlk/patches/cmake-build-type-none.patch
index 897bbe44b142..f70134f4748c 100644
--- a/srcpkgs/amdvlk/patches/cmake-build-type-none.patch
+++ b/srcpkgs/amdvlk/patches/cmake-build-type-none.patch
@@ -1,7 +1,7 @@
 Index: llvm-project/llvm/CMakeLists.txt
 ===================================================================
---- llvm-project/llvm/CMakeLists.txt.orig
-+++ llvm-project/llvm/CMakeLists.txt
+--- a/llvm-project/llvm/CMakeLists.txt.orig
++++ b/llvm-project/llvm/CMakeLists.txt
 @@ -251,11 +251,6 @@ endif()
  
  string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
@@ -16,8 +16,8 @@ Index: llvm-project/llvm/CMakeLists.txt
  set(LLVM_TOOLS_INSTALL_DIR "bin" CACHE STRING "Path for binary subdirectory (defaults to 'bin')")
 Index: pal/cmake/Modules/AmdCmakeHelper.cmake
 ===================================================================
---- pal/cmake/Modules/AmdCmakeHelper.cmake.orig
-+++ pal/cmake/Modules/AmdCmakeHelper.cmake
+--- a/pal/cmake/Modules/AmdCmakeHelper.cmake.orig
++++ b/pal/cmake/Modules/AmdCmakeHelper.cmake
 @@ -37,11 +37,6 @@ if (CMAKE_CONFIGURATION_TYPES)
  else()
      string(TOUPPER "${CMAKE_BUILD_TYPE}" capital_CMAKE_BUILD_TYPE)
@@ -32,8 +32,8 @@ Index: pal/cmake/Modules/AmdCmakeHelper.cmake
          set(CMAKE_BUILD_TYPE_RELEASE OFF)
 Index: xgl/CMakeLists.txt
 ===================================================================
---- xgl/CMakeLists.txt.orig
-+++ xgl/CMakeLists.txt
+--- a/xgl/CMakeLists.txt.orig
++++ b/xgl/CMakeLists.txt
 @@ -181,11 +181,6 @@ if (CMAKE_CONFIGURATION_TYPES)
  else()
      string(TOUPPER "${CMAKE_BUILD_TYPE}" capital_CMAKE_BUILD_TYPE)
@@ -46,8 +46,8 @@ Index: xgl/CMakeLists.txt
      if(capital_CMAKE_BUILD_TYPE STREQUAL "DEBUG")
          set(CMAKE_BUILD_TYPE_DEBUG ON)
          set(CMAKE_BUILD_TYPE_RELEASE OFF)
---- xgl/cmake/Modules/AmdCmakeHelper.cmake	2021-04-07 06:57:17.000000000 +0200
-+++ -	2021-04-26 14:11:03.415683706 +0200
+--- a/xgl/cmake/Modules/AmdCmakeHelper.cmake
++++ b/-
 @@ -35,11 +35,6 @@
  else()
      string(TOUPPER "${CMAKE_BUILD_TYPE}" capital_CMAKE_BUILD_TYPE)
diff --git a/srcpkgs/amdvlk/patches/musl.patch b/srcpkgs/amdvlk/patches/musl.patch
index 266bde5a8043..520eae14c380 100644
--- a/srcpkgs/amdvlk/patches/musl.patch
+++ b/srcpkgs/amdvlk/patches/musl.patch
@@ -1,5 +1,5 @@
---- pal/shared/gpuopen/src/posix/ddPosixSocket.cpp	2019-10-18 11:06:42.000000000 +0200
-+++ -	2019-10-29 20:15:35.614608453 +0100
+--- a/pal/shared/gpuopen/src/posix/ddPosixSocket.cpp
++++ b/-
 @@ -34,7 +34,7 @@
  #include <sys/types.h>
  #include <sys/socket.h>
diff --git a/srcpkgs/amdvlk/template b/srcpkgs/amdvlk/template
index 6a29a3bc9290..1182a174b558 100644
--- a/srcpkgs/amdvlk/template
+++ b/srcpkgs/amdvlk/template
@@ -42,7 +42,6 @@ checksum="ec17d7f7c7af5adaa2fee7744321da3665be215105df7c3fc72bfeff2575a509
  186060fbcf87165224ba7df0e1858b66ebc42cf190c481aef1df8d89ebab7abd"
 nocross=yes
 lib32files="/usr/share/vulkan/icd.d/amd_icd32.json"
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*) nodebug=yes;;
diff --git a/srcpkgs/angrysearch/patches/00-fiximport.patch b/srcpkgs/angrysearch/patches/00-fiximport.patch
index 7ea7efc0af25..4143059338de 100644
--- a/srcpkgs/angrysearch/patches/00-fiximport.patch
+++ b/srcpkgs/angrysearch/patches/00-fiximport.patch
@@ -1,7 +1,7 @@
 diff --git angrysearch.py angrysearch.py
 index 33c181d..ef9d5a2 100644
---- angrysearch.py
-+++ angrysearch.py
+--- a/angrysearch.py
++++ b/angrysearch.py
 @@ -18,6 +18,8 @@ import subprocess
  import sys
  import time
diff --git a/srcpkgs/angrysearch/template b/srcpkgs/angrysearch/template
index bf03527607a7..96b6b6604ba8 100644
--- a/srcpkgs/angrysearch/template
+++ b/srcpkgs/angrysearch/template
@@ -13,7 +13,6 @@ homepage="https://github.com/dotheevo/angrysearch/"
 distfiles="http://github.com/dotheevo/${pkgname}/archive/v${version}.tar.gz"
 checksum=9a550649c3efafb26660860758f2e75702ce96a0a0c50dc34ced2967b51a843f
 python_version=3
-patch_args=-Np0
 
 do_install() {
 	vinstall angrysearch.desktop 644 "usr/share/applications"
diff --git a/srcpkgs/anjuta/patches/fix-unistd_h.patch b/srcpkgs/anjuta/patches/fix-unistd_h.patch
index a4ca4fcec13a..1248ab5e9761 100644
--- a/srcpkgs/anjuta/patches/fix-unistd_h.patch
+++ b/srcpkgs/anjuta/patches/fix-unistd_h.patch
@@ -1,7 +1,7 @@
 Fix wrong include for musl libc.
 
---- launcher/anjuta-launcher.c	2014-10-17 21:35:31.000000000 +0200
-+++ launcher/anjuta-launcher.c	2015-09-09 22:09:06.719400546 +0200
+--- a/launcher/anjuta-launcher.c
++++ b/launcher/anjuta-launcher.c
 @@ -22,7 +22,7 @@
  #endif
  
diff --git a/srcpkgs/anjuta/patches/python.patch b/srcpkgs/anjuta/patches/python.patch
index e18651257272..614e80edbfda 100644
--- a/srcpkgs/anjuta/patches/python.patch
+++ b/srcpkgs/anjuta/patches/python.patch
@@ -1,5 +1,5 @@
---- configure.ac.orig	2020-07-04 20:59:04.718066026 +0700
-+++ configure.ac	2020-07-04 20:59:54.542554633 +0700
+--- a/configure.ac
++++ b/configure.ac
 @@ -370,7 +370,7 @@
  	[have_python="no"])
  
diff --git a/srcpkgs/anjuta/patches/vala.patch b/srcpkgs/anjuta/patches/vala.patch
index 178ed45b5ab4..d7400985fd85 100644
--- a/srcpkgs/anjuta/patches/vala.patch
+++ b/srcpkgs/anjuta/patches/vala.patch
@@ -1,5 +1,5 @@
---- configure.ac.orig	2020-07-04 20:32:36.223805943 +0700
-+++ configure.ac	2020-07-04 20:33:01.432033914 +0700
+--- a/configure.ac
++++ b/configure.ac
 @@ -338,7 +338,7 @@
  else
          AC_MSG_RESULT(no)
diff --git a/srcpkgs/anjuta/patches/vala048.patch b/srcpkgs/anjuta/patches/vala048.patch
index f9e11ba07b9f..bddaa488e096 100644
--- a/srcpkgs/anjuta/patches/vala048.patch
+++ b/srcpkgs/anjuta/patches/vala048.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] language-support-vala: Support for vala 0.48 API
 
 diff --git a/plugins/language-support-vala/plugin.vala b/plugins/language-support-vala/plugin.vala
 index 13d35fec4..718d74cc8 100644
---- plugins/language-support-vala/plugin.vala
-+++ plugins/language-support-vala/plugin.vala
+--- a/plugins/language-support-vala/plugin.vala
++++ b/plugins/language-support-vala/plugin.vala
 @@ -414,11 +414,19 @@ public class ValaPlugin : Plugin, IAnjuta.Preferences {
  			builder.append_printf ("%s sender", widget.get_full_name ());
  
diff --git a/srcpkgs/anjuta/template b/srcpkgs/anjuta/template
index e861c17df632..b46d58aeafe3 100644
--- a/srcpkgs/anjuta/template
+++ b/srcpkgs/anjuta/template
@@ -22,7 +22,6 @@ license="GPL-2.0-or-later"
 homepage="https://projects.gnome.org/anjuta"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=42a93130ed3ee02d064a7094e94e1ffae2032b3f35a87bf441e37fc3bb3a148f
-patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/anki/patches/fix_mpv_args.patch b/srcpkgs/anki/patches/fix_mpv_args.patch
index 96dec5eceaf0..0b99dd8fe856 100644
--- a/srcpkgs/anki/patches/fix_mpv_args.patch
+++ b/srcpkgs/anki/patches/fix_mpv_args.patch
@@ -1,5 +1,5 @@
---- ./anki/mpv.py
-+++ ./anki/mpv.py
+--- a/anki/mpv.py
++++ b/anki/mpv.py
 @@ -104,9 +104,9 @@
          """
          self.argv = [self.executable]
@@ -13,8 +13,8 @@
      def _start_process(self):
          """Start the mpv process.
 
---- ./anki/sound.py
-+++ ./anki/sound.py
+--- a/anki/sound.py
++++ b/anki/sound.py
 @@ -123,10 +123,7 @@
  
  def setMpvConfigBase(base):
diff --git a/srcpkgs/anki/template b/srcpkgs/anki/template
index 731999e63600..55976fbd26eb 100644
--- a/srcpkgs/anki/template
+++ b/srcpkgs/anki/template
@@ -13,7 +13,6 @@ homepage="https://apps.ankiweb.net"
 changelog="https://apps.ankiweb.net/docs/changes.html"
 distfiles="https://apps.ankiweb.net/downloads/archive/anki-$version-source.tgz"
 checksum=5a53760164c77d619f55107a13099cffe620566a7f610b61b6c4b52487f3bb89
-patch_args=-Np0
 
 python_version=3
 
diff --git a/srcpkgs/antimicrox/patches/time64.patch b/srcpkgs/antimicrox/patches/time64.patch
index 8d98f948e5ed..74af74b3442d 100644
--- a/srcpkgs/antimicrox/patches/time64.patch
+++ b/srcpkgs/antimicrox/patches/time64.patch
@@ -1,5 +1,5 @@
---- src/eventhandlers/uinputeventhandler.cpp	2020-10-02 09:51:36.000000000 +0200
-+++ src/eventhandlers/uinputeventhandler.cpp	2020-12-06 10:17:47.922175141 +0100
+--- a/src/eventhandlers/uinputeventhandler.cpp
++++ b/src/eventhandlers/uinputeventhandler.cpp
 @@ -498,9 +498,12 @@
  {
      struct input_event ev;
diff --git a/srcpkgs/antimicrox/template b/srcpkgs/antimicrox/template
index 1e4a1d081868..6a77e8e3a09b 100644
--- a/srcpkgs/antimicrox/template
+++ b/srcpkgs/antimicrox/template
@@ -13,7 +13,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/AntiMicroX/antimicrox"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=53c6b0e6c8ea8c3a5527b56e1ad052eae983ba36abfc090769c6164bc5f342dd
-patch_args=-Np0
 
 libantimicrox_package() {
 	short_desc+=" - libraries"
diff --git a/srcpkgs/antiword/patches/10_fix_buffer_overflow_wordole_c.patch b/srcpkgs/antiword/patches/10_fix_buffer_overflow_wordole_c.patch
index 61edb553ee42..7ebd43914ad8 100644
--- a/srcpkgs/antiword/patches/10_fix_buffer_overflow_wordole_c.patch
+++ b/srcpkgs/antiword/patches/10_fix_buffer_overflow_wordole_c.patch
@@ -3,8 +3,8 @@ Author: <eriks@debian.org>
 Bug-Debian: http://bugs.debian.org/407015
 Last-Update: 2009-06-03
 
---- antiword-0.37/wordole.c	2005-08-26 21:49:57.000000000 +0200
-+++ antiword-0.37/wordole.c	2009-06-03 22:31:15.948014682 +0200
+--- antiword-0.37/wordole.c
++++ antiword-0.37/wordole.c
 @@ -259,6 +259,10 @@
  		}
  		tNameSize = (size_t)usGetWord(0x40, aucBytes);
diff --git a/srcpkgs/apache/patches/libressl.patch b/srcpkgs/apache/patches/libressl.patch
index 7729a1e674bd..300bd7ee1fa6 100644
--- a/srcpkgs/apache/patches/libressl.patch
+++ b/srcpkgs/apache/patches/libressl.patch
@@ -1,5 +1,5 @@
---- modules/ssl/ssl_engine_init.c.orig  2018-10-30 16:25:09.084840429 +0100
-+++ modules/ssl/ssl_engine_init.c       2018-10-30 16:25:55.019411636 +0100
+--- a/modules/ssl/ssl_engine_init.c.orig  2018-10-30 16:25:09.084840429 +0100
++++ b/modules/ssl/ssl_engine_init.c       2018-10-30 16:25:55.019411636 +0100
 @@ -1492,7 +1492,7 @@
      X509_STORE_CTX *sctx;
      X509_STORE *store = SSL_CTX_get_cert_store(mctx->ssl_ctx);
diff --git a/srcpkgs/apache/template b/srcpkgs/apache/template
index 24fa60ac48a6..3c92ff8fc988 100644
--- a/srcpkgs/apache/template
+++ b/srcpkgs/apache/template
@@ -37,7 +37,6 @@ homepage="http://httpd.apache.org/"
 changelog="http://www.apache.org/dist/httpd/CHANGES_2.4"
 distfiles="https://archive.apache.org/dist/httpd/httpd-${version}.tar.bz2"
 checksum=1bc826e7b2e88108c7e4bf43c026636f77a41d849cfb667aa7b5c0b86dbf966c
-patch_args=-Np0
 
 system_accounts="_${pkgname}"
 _apache_homedir="/srv/www/$pkgname"
diff --git a/srcpkgs/apl/patches/musl.patch b/srcpkgs/apl/patches/musl.patch
index 76df82d020b8..4c546e17929b 100644
--- a/srcpkgs/apl/patches/musl.patch
+++ b/srcpkgs/apl/patches/musl.patch
@@ -1,5 +1,5 @@
---- src/Error.hh.orig	2019-06-24 11:12:35.825267571 +0200
-+++ src/Error.hh	2019-06-24 11:12:46.505396162 +0200
+--- a/src/Error.hh
++++ b/src/Error.hh
 @@ -26,6 +26,8 @@
  #include "ErrorCode.hh"
  #include "UCS_string.hh"
diff --git a/srcpkgs/apl/patches/ppc.patch b/srcpkgs/apl/patches/ppc.patch
index 1b373e13cdd0..9db0e0d13a1c 100644
--- a/srcpkgs/apl/patches/ppc.patch
+++ b/srcpkgs/apl/patches/ppc.patch
@@ -8,8 +8,8 @@ Tokenizer.cc:769:4: error: floating constant exceeds range of 'long double' [-We
     exp_0_9(1E30)
     ^~~~~~~
 
---- src/Tokenizer.cc
-+++ src/Tokenizer.cc
+--- a/src/Tokenizer.cc
++++ b/src/Tokenizer.cc
 @@ -755,10 +755,10 @@
         MAX_TOKENIZE_DIGITS = MAX_TOKENIZE_DIGITS_1 - 1   // excl. rounding digit
       };
diff --git a/srcpkgs/apl/template b/srcpkgs/apl/template
index 06472f651624..88b8d32b6720 100644
--- a/srcpkgs/apl/template
+++ b/srcpkgs/apl/template
@@ -14,7 +14,6 @@ distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=144f4c858a0d430ce8f28be90a35920dd8e0951e56976cb80b55053fa0d8bbcb
 nocross="execs target binary: ./Gtk_server --ev1 > Gtk_events1.asciidoc"
 CXXFLAGS="-Wno-format-truncation -Wno-class-memaccess -Wno-maybe-uninitialized -Wno-restrict -Wno-cpp"
-patch_args=-Np0
 
 post_install() {
 	vdoc support-files/Dyalog-Keyboard/apl.xkb
diff --git a/srcpkgs/appstream-glib/patches/0001-flip-archive_h-and-archive_entry_h-order-on-client-as-util.patch b/srcpkgs/appstream-glib/patches/0001-flip-archive_h-and-archive_entry_h-order-on-client-as-util.patch
index 5535c39ceff3..90d85364681d 100644
--- a/srcpkgs/appstream-glib/patches/0001-flip-archive_h-and-archive_entry_h-order-on-client-as-util.patch
+++ b/srcpkgs/appstream-glib/patches/0001-flip-archive_h-and-archive_entry_h-order-on-client-as-util.patch
@@ -1,7 +1,7 @@
 They are in the wrong order.
 
---- client/as-util.c
-+++ client/as-util.c
+--- a/client/as-util.c
++++ b/client/as-util.c
 @@ -27,8 +27,8 @@
  #include <gio/gio.h>
  
diff --git a/srcpkgs/appstream-glib/patches/0002-flip-archive_h-and-archive_entry_h-order-on-libappstream-glib-as-util.patch b/srcpkgs/appstream-glib/patches/0002-flip-archive_h-and-archive_entry_h-order-on-libappstream-glib-as-util.patch
index 8c5f70c480f3..2502048d75ac 100644
--- a/srcpkgs/appstream-glib/patches/0002-flip-archive_h-and-archive_entry_h-order-on-libappstream-glib-as-util.patch
+++ b/srcpkgs/appstream-glib/patches/0002-flip-archive_h-and-archive_entry_h-order-on-libappstream-glib-as-util.patch
@@ -1,7 +1,7 @@
 They are in the wrong order.
 
---- libappstream-glib/as-utils.c
-+++ libappstream-glib/as-utils.c
+--- a/libappstream-glib/as-utils.c
++++ b/libappstream-glib/as-utils.c
 @@ -34,8 +34,8 @@
  
  #include <fnmatch.h>
diff --git a/srcpkgs/appstream-glib/template b/srcpkgs/appstream-glib/template
index 36c6fffca5d1..5eaf493d53f6 100644
--- a/srcpkgs/appstream-glib/template
+++ b/srcpkgs/appstream-glib/template
@@ -16,7 +16,6 @@ homepage="https://people.freedesktop.org/~hughsient/appstream-glib/"
 changelog="https://raw.githubusercontent.com/hughsie/appstream-glib/master/NEWS"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
 checksum=ca1ed22e3bde3912cb903aaa7de085d55771da454f1c0573fd9608e1de9c4002
-patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/apr/patches/atomic64.patch b/srcpkgs/apr/patches/atomic64.patch
index afd06447e015..ced9b7df0abd 100644
--- a/srcpkgs/apr/patches/atomic64.patch
+++ b/srcpkgs/apr/patches/atomic64.patch
@@ -9,8 +9,8 @@ Date:   Fri Jan 10 13:04:37 2020 +0100
 
 diff --git atomic/unix/builtins64.c atomic/unix/builtins64.c
 index 4a4b685..90b5c5e 100644
---- atomic/unix/builtins64.c
-+++ atomic/unix/builtins64.c
+--- a/atomic/unix/builtins64.c
++++ b/atomic/unix/builtins64.c
 @@ -30,35 +30,34 @@ APR_DECLARE(void) apr_atomic_set64(volatile apr_uint64_t *mem, apr_uint64_t val)
  
  APR_DECLARE(apr_uint64_t) apr_atomic_add64(volatile apr_uint64_t *mem, apr_uint64_t val)
diff --git a/srcpkgs/apr/template b/srcpkgs/apr/template
index 1fa0399f64b6..f2dc1241668a 100644
--- a/srcpkgs/apr/template
+++ b/srcpkgs/apr/template
@@ -11,7 +11,6 @@ license="Apache-2.0"
 homepage="http://apr.apache.org/"
 distfiles="http://www.apache.org/dist/apr/apr-${version}.tar.bz2"
 checksum=e2e148f0b2e99b8e5c6caa09f6d4fb4dd3e83f744aa72a952f94f5a14436f7ea
-patch_args=-Np0
 
 # Do not redefine struct iovec in include/apr_want.h
 CFLAGS="-DAPR_IOVEC_DEFINED=1"
diff --git a/srcpkgs/apvlv/patches/cxxflags_from_env.patch b/srcpkgs/apvlv/patches/cxxflags_from_env.patch
index 45889baa52e3..191d32e96b2e 100644
--- a/srcpkgs/apvlv/patches/cxxflags_from_env.patch
+++ b/srcpkgs/apvlv/patches/cxxflags_from_env.patch
@@ -1,5 +1,5 @@
---- src/CMakeLists.txt.orig	2016-09-14 01:48:05.822928918 +0200
-+++ src/CMakeLists.txt	2016-09-14 01:48:54.906931451 +0200
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
 @@ -1,7 +1,7 @@
  IF (WIN32)
    ADD_DEFINITIONS (-D_CRT_SECURE_NO_WARNINGS)
diff --git a/srcpkgs/apvlv/template b/srcpkgs/apvlv/template
index 8cd23927d55a..8d343dbe3358 100644
--- a/srcpkgs/apvlv/template
+++ b/srcpkgs/apvlv/template
@@ -14,4 +14,3 @@ homepage="http://naihe2010.github.io/apvlv/"
 distfiles="https://github.com/naihe2010/apvlv/archive/v${version}.tar.gz"
 checksum=a4a2f42a7e42715a21d2356def3ed93c180c6ae41128580addee42835e5374c2
 replaces="apvlv-git>=0"
-patch_args=-Np0
diff --git a/srcpkgs/aqbanking/patches/cmake-prefix.patch b/srcpkgs/aqbanking/patches/cmake-prefix.patch
index a181d75530c2..5c1b7779687d 100644
--- a/srcpkgs/aqbanking/patches/cmake-prefix.patch
+++ b/srcpkgs/aqbanking/patches/cmake-prefix.patch
@@ -1,5 +1,5 @@
---- aqbanking-config.cmake.in	2018-01-10 16:09:39.079835643 +0100
-+++ aqbanking-config.cmake.in	2018-01-10 16:11:18.140403253 +0100
+--- a/aqbanking-config.cmake.in
++++ b/aqbanking-config.cmake.in
 @@ -19,7 +19,18 @@
  include(CMakeFindDependencyMacro)
  find_dependency(gwenhywfar "@GWENHYWFAR_MINIMUM_VERSION@")
diff --git a/srcpkgs/aqbanking/template b/srcpkgs/aqbanking/template
index 9f509f325469..ea55a80935d7 100644
--- a/srcpkgs/aqbanking/template
+++ b/srcpkgs/aqbanking/template
@@ -12,7 +12,6 @@ homepage="http://www.aquamaniac.de/aqbanking"
 distfiles="https://www.aquamaniac.de/rdm/attachments/download/372/${pkgname}-${version}.tar.gz"
 checksum=a0e85da2072c927bc32cfd808caaccfdabe34725e75618b08d8049306d8355cc
 disable_parallel_build=yes
-patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
diff --git a/srcpkgs/aqemu/patches/stdexcept.patch b/srcpkgs/aqemu/patches/stdexcept.patch
index 70c87ccd073c..401f45d70b06 100644
--- a/srcpkgs/aqemu/patches/stdexcept.patch
+++ b/srcpkgs/aqemu/patches/stdexcept.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] stdexcept
 
 diff --git src/docopt/docopt_value.h src/docopt/docopt_value.h
 index ddb8a8e..99aa545 100644
---- src/docopt/docopt_value.h
-+++ src/docopt/docopt_value.h
+--- a/src/docopt/docopt_value.h
++++ b/src/docopt/docopt_value.h
 @@ -13,7 +13,7 @@
  #include <iosfwd>
  #include <string>
diff --git a/srcpkgs/aqemu/template b/srcpkgs/aqemu/template
index 0ada7d5bc748..eea61aa562bc 100644
--- a/srcpkgs/aqemu/template
+++ b/srcpkgs/aqemu/template
@@ -12,7 +12,6 @@ license="GPL-2.0-only"
 homepage="http://aqemu.sourceforge.net"
 distfiles="https://github.com/TBK/aqemu/archive/v${version}.tar.gz"
 checksum=576ae78de936518a1de057355ffc192b59e42be934f0111122b2c5fcafe318a7
-patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/ardour/patches/6.0-fix-build.patch b/srcpkgs/ardour/patches/6.0-fix-build.patch
index 8228287d253d..b78b8dcc183c 100644
--- a/srcpkgs/ardour/patches/6.0-fix-build.patch
+++ b/srcpkgs/ardour/patches/6.0-fix-build.patch
@@ -1,7 +1,7 @@
 diff --git libs/ardour/wscript libs/ardour/wscript
 index 49cea6a..a7f8e84 100644
---- libs/ardour/wscript
-+++ libs/ardour/wscript
+--- a/libs/ardour/wscript
++++ b/libs/ardour/wscript
 @@ -384,7 +384,7 @@ def build(bld):
  
      # remove '${DEFINES_ST:DEFINES}' from run_str.
diff --git a/srcpkgs/ardour/patches/6.0-fix-runtime.patch b/srcpkgs/ardour/patches/6.0-fix-runtime.patch
index 1f438ca84e7e..0c76cd3a69f8 100644
--- a/srcpkgs/ardour/patches/6.0-fix-runtime.patch
+++ b/srcpkgs/ardour/patches/6.0-fix-runtime.patch
@@ -1,5 +1,5 @@
---- libs/pbd/pbd/pthread_utils.h.orig	2020-09-18 22:30:18.353441907 +0700
-+++ libs/pbd/pbd/pthread_utils.h	2020-09-18 22:37:07.059363532 +0700
+--- a/libs/pbd/pbd/pthread_utils.h
++++ b/libs/pbd/pbd/pthread_utils.h
 @@ -49,7 +49,7 @@
  #include "pbd/signals.h"
  
diff --git a/srcpkgs/ardour/patches/use-bundled-qm-dsp.patch b/srcpkgs/ardour/patches/use-bundled-qm-dsp.patch
index 86dca8dc5e7f..07e6c74963c1 100644
--- a/srcpkgs/ardour/patches/use-bundled-qm-dsp.patch
+++ b/srcpkgs/ardour/patches/use-bundled-qm-dsp.patch
@@ -10,8 +10,8 @@ Subject: [PATCH] use bundled qm-dsp
 
 diff --git libs/qm-dsp/wscript libs/qm-dsp/wscript
 index 92dc9502b1..dbbff16722 100644
---- libs/qm-dsp/wscript
-+++ libs/qm-dsp/wscript
+--- a/libs/qm-dsp/wscript
++++ b/libs/qm-dsp/wscript
 @@ -23,17 +23,10 @@ def options(opt):
      autowaf.set_options(opt)
  
@@ -34,8 +34,8 @@ index 92dc9502b1..dbbff16722 100644
      obj.source = '''
 diff --git wscript wscript
 index 4b5acb0ad7..c0358af37e 100644
---- wscript
-+++ wscript
+--- a/wscript
++++ b/wscript
 @@ -991,8 +991,6 @@ def configure(conf):
  
      if Options.options.use_external_libs:
diff --git a/srcpkgs/ardour/template b/srcpkgs/ardour/template
index 14e6810a0ac5..ae133e67b141 100644
--- a/srcpkgs/ardour/template
+++ b/srcpkgs/ardour/template
@@ -18,7 +18,6 @@ short_desc="Professional-grade digital audio workstation"
 maintainer="tibequadorian <tibequadorian@posteo.de>"
 license="GPL-2.0-or-later"
 homepage="http://ardour.org"
-patch_args=-Np0
 
 CXXFLAGS="-fpermissive"
 
diff --git a/srcpkgs/arduino/patches/astyle_fix.patch b/srcpkgs/arduino/patches/astyle_fix.patch
index 7b07f5744208..b3ddc4d3e457 100644
--- a/srcpkgs/arduino/patches/astyle_fix.patch
+++ b/srcpkgs/arduino/patches/astyle_fix.patch
@@ -1,5 +1,5 @@
---- astyle/src/astyle_main.cpp	2017-05-30 20:26:37.000000000 -0400
-+++ astyle/src/astyle_main.cpp	2019-09-11 20:38:02.155936887 -0400
+--- a/astyle/src/astyle_main.cpp
++++ b/astyle/src/astyle_main.cpp
 @@ -3749,7 +3749,7 @@
  // called by a java program to get the version number
  // the function name is constructed from method names in the calling java program
@@ -18,8 +18,8 @@
                                                  jobject obj,
                                                  jstring textInJava,
                                                  jstring optionsJava)
---- astyle/src/astyle_main.h	2017-05-30 20:26:37.000000000 -0400
-+++ astyle/src/astyle_main.h	2019-09-11 20:39:15.953536523 -0400
+--- a/astyle/src/astyle_main.h
++++ b/astyle/src/astyle_main.h
 @@ -406,9 +406,9 @@
  char* STDCALL javaMemoryAlloc(unsigned long memoryNeeded);
  // the following function names are constructed from method names in the calling java program
diff --git a/srcpkgs/arduino/patches/disable-dependency-build.patch b/srcpkgs/arduino/patches/disable-dependency-build.patch
index 6a7144c906c4..f2f227e9821e 100644
--- a/srcpkgs/arduino/patches/disable-dependency-build.patch
+++ b/srcpkgs/arduino/patches/disable-dependency-build.patch
@@ -1,5 +1,5 @@
---- Arduino-1.8.13/build/build.xml.orig	2020-12-27 20:34:41.813419495 +0100
-+++ Arduino-1.8.13/build/build.xml	2020-12-27 20:32:58.075425211 +0100
+--- a/Arduino-1.8.13/build/build.xml
++++ b/Arduino-1.8.13/build/build.xml
 @@ -345,7 +345,7 @@
  
      <!-- figure out the IDE version number in base.java -->
diff --git a/srcpkgs/arduino/template b/srcpkgs/arduino/template
index 5d6531ec93fc..d352962e73d3 100644
--- a/srcpkgs/arduino/template
+++ b/srcpkgs/arduino/template
@@ -19,7 +19,6 @@ checksum="2a2a7bf0a93d36dff2e27f50e490529f10ff73337d6a0b7b222fa6b1a529c9f7
  6c3ab029e0e4a75e2e603d449014374aa8269218fdd03a4aaa46ab743b1912fd"
 nostrip=yes
 nocross="cross build lacks essential libraries"
-patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	broken="downloads multiple binaries linked to glibc; segfaults with gcompat"
diff --git a/srcpkgs/argon2/patches/explicit-bzero.patch b/srcpkgs/argon2/patches/explicit-bzero.patch
index 57762d70a11f..2d49ff5fd348 100644
--- a/srcpkgs/argon2/patches/explicit-bzero.patch
+++ b/srcpkgs/argon2/patches/explicit-bzero.patch
@@ -1,7 +1,7 @@
 # reason: use explizit_bzero on musl too!
 
---- src/core.c
-+++ src/core.c
+--- a/src/core.c
++++ b/src/core.c
 @@ -27,6 +27,7 @@
  
  /* for explicit_bzero() on glibc */
diff --git a/srcpkgs/argon2/patches/libdir.patch b/srcpkgs/argon2/patches/libdir.patch
index 31b86db3eb8d..013adc1ca2b9 100644
--- a/srcpkgs/argon2/patches/libdir.patch
+++ b/srcpkgs/argon2/patches/libdir.patch
@@ -2,8 +2,8 @@
 #   upstream believes Ubuntu/Debian are the only ones
 #   to report "$(uname -s)-$(uname -m)" as Linux-x86_64 ...
 
---- Makefile
-+++ Makefile
+--- a/Makefile
++++ b/Makefile
 @@ -138,14 +138,6 @@
  LIBRARY_REL ?= lib
  PKGCONFIG_REL ?= libdata
diff --git a/srcpkgs/argon2/template b/srcpkgs/argon2/template
index 04bdaf7a1419..7cc1bb0617eb 100644
--- a/srcpkgs/argon2/template
+++ b/srcpkgs/argon2/template
@@ -14,7 +14,6 @@ license="CC0-1.0, Apache-2.0"
 homepage="https://github.com/P-H-C/phc-winner-argon2"
 distfiles="https://github.com/P-H-C/phc-winner-argon2/archive/${version}.tar.gz"
 checksum=daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c
-patch_args=-Np0
 
 libargon2_package() {
 	short_desc="Password hashing library"
diff --git a/srcpkgs/argyllcms/patches/fix-gcc6-attribute_numsup_h.patch b/srcpkgs/argyllcms/patches/fix-gcc6-attribute_numsup_h.patch
index a60961ebff58..bfd29d1ae7af 100644
--- a/srcpkgs/argyllcms/patches/fix-gcc6-attribute_numsup_h.patch
+++ b/srcpkgs/argyllcms/patches/fix-gcc6-attribute_numsup_h.patch
@@ -1,6 +1,6 @@
 
---- numlib/numsup.h	2015-10-26 05:17:33.000000000 +0100
-+++ numlib/numsup.h	2016-10-04 10:10:28.732000000 +0200
+--- a/numlib/numsup.h
++++ b/numlib/numsup.h
 @@ -324,7 +324,7 @@
  #define error_program g_log->tag
  extern void set_exe_path(char *arg0);
diff --git a/srcpkgs/argyllcms/template b/srcpkgs/argyllcms/template
index 33d0d14436cc..5fb8294254f7 100644
--- a/srcpkgs/argyllcms/template
+++ b/srcpkgs/argyllcms/template
@@ -12,7 +12,6 @@ license="AGPL-3.0-or-later, GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://www.argyllcms.com/"
 distfiles="https://www.argyllcms.com/Argyll_V${version}_src.zip"
 checksum=be378ca836b17b8684db05e9feaab138d711835ef00a04a76ac0ceacd386a3e3
-patch_args=-Np0
 
 # Build system look only under / for headers and libraries. Breaks cross.
 nocross=yes
diff --git a/srcpkgs/ark/patches/disable-xar-test.patch b/srcpkgs/ark/patches/disable-xar-test.patch
index e74584e7b1ff..beb04bf334a6 100644
--- a/srcpkgs/ark/patches/disable-xar-test.patch
+++ b/srcpkgs/ark/patches/disable-xar-test.patch
@@ -6,8 +6,8 @@ Subject: [PATCH] disable xar test
 
 diff --git autotests/kerfuffle/extracttest.cpp autotests/kerfuffle/extracttest.cpp
 index 9178611..c1d3f13 100644
---- autotests/kerfuffle/extracttest.cpp
-+++ autotests/kerfuffle/extracttest.cpp
+--- a/autotests/kerfuffle/extracttest.cpp
++++ b/autotests/kerfuffle/extracttest.cpp
 @@ -350,23 +350,6 @@ void ExtractTest::testExtraction_data()
          qDebug() << "lz4 executable not found in path. Skipping lz4 test.";
      }
@@ -34,8 +34,8 @@ index 9178611..c1d3f13 100644
              << archivePath
 diff --git autotests/kerfuffle/loadtest.cpp autotests/kerfuffle/loadtest.cpp
 index 8c5f52d..cbb47cf 100644
---- autotests/kerfuffle/loadtest.cpp
-+++ autotests/kerfuffle/loadtest.cpp
+--- a/autotests/kerfuffle/loadtest.cpp
++++ b/autotests/kerfuffle/loadtest.cpp
 @@ -181,13 +181,6 @@ void LoadTest::testProperties_data()
          qDebug() << "lz4 executable not found in path. Skipping lz4 test.";
      }
diff --git a/srcpkgs/ark/template b/srcpkgs/ark/template
index 22022fc8a649..dfa7870ed4ca 100644
--- a/srcpkgs/ark/template
+++ b/srcpkgs/ark/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://kde.org/applications/en/utilities/org.kde.ark"
 distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=09e0294c36a881585183bf165020ef832bfbbd181547ea26eb78268aab46a768
-patch_args=-Np0
 
 do_check() {
 	cd build
diff --git a/srcpkgs/armadillo/patches/9.700.2--include_dirs.patch b/srcpkgs/armadillo/patches/9.700.2--include_dirs.patch
index f6dea58c7c52..a19472dff135 100644
--- a/srcpkgs/armadillo/patches/9.700.2--include_dirs.patch
+++ b/srcpkgs/armadillo/patches/9.700.2--include_dirs.patch
@@ -6,8 +6,8 @@ Subject: [PATCH] Absolute paths can't match both cross and native use
 
 diff --git include/armadillo_bits/config.hpp.cmake include/armadillo_bits/config.hpp.cmake
 index be42243..a285e35 100644
---- include/armadillo_bits/config.hpp.cmake
-+++ include/armadillo_bits/config.hpp.cmake
+--- a/include/armadillo_bits/config.hpp.cmake
++++ b/include/armadillo_bits/config.hpp.cmake
 @@ -50,7 +50,7 @@
  #endif
  
diff --git a/srcpkgs/armadillo/template b/srcpkgs/armadillo/template
index 52e72128108d..9407c3aa8b48 100644
--- a/srcpkgs/armadillo/template
+++ b/srcpkgs/armadillo/template
@@ -12,7 +12,6 @@ license="Apache-2.0"
 homepage="http://arma.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/arma/${pkgname}-${version}.tar.xz"
 checksum=d78658c9442addf7f718eb05881150ee3ec25604d06dd3af4942422b3ce26d05
-patch_args=-Np0
 
 build_options="hdf5"
 desc_option_hdf5="HDF5 support"
diff --git a/srcpkgs/artyfx/patches/fix-avtk-cmake-sse.patch b/srcpkgs/artyfx/patches/fix-avtk-cmake-sse.patch
index 47ef4dd9b84e..344d155da29a 100644
--- a/srcpkgs/artyfx/patches/fix-avtk-cmake-sse.patch
+++ b/srcpkgs/artyfx/patches/fix-avtk-cmake-sse.patch
@@ -1,5 +1,5 @@
---- src/avtk/CMakeLists.txt	2016-12-24 19:36:45.000000000 +0000
-+++ src/avtk/CMakeLists.txt	2019-03-09 11:20:24.063980037 +0000
+--- a/src/avtk/CMakeLists.txt
++++ b/src/avtk/CMakeLists.txt
 @@ -55,8 +55,13 @@
  link_directories   ( ${X11_LIBRARY_DIRS} )
  
diff --git a/srcpkgs/artyfx/patches/fix-lv2-1.18.patch b/srcpkgs/artyfx/patches/fix-lv2-1.18.patch
index adf23e20fb08..d53abddf290e 100644
--- a/srcpkgs/artyfx/patches/fix-lv2-1.18.patch
+++ b/srcpkgs/artyfx/patches/fix-lv2-1.18.patch
@@ -1,5 +1,5 @@
---- src/ui/lv2_ui.cxx	2016-12-24 20:36:45.000000000 +0100
-+++ src/ui/lv2_ui.cxx	2020-12-25 22:17:21.206336431 +0100
+--- a/src/ui/lv2_ui.cxx
++++ b/src/ui/lv2_ui.cxx
 @@ -33,7 +33,7 @@
  #include "whaaa.hxx"
  
diff --git a/srcpkgs/artyfx/patches/respect-our-cflags.patch b/srcpkgs/artyfx/patches/respect-our-cflags.patch
index 7a32fd9df73b..a4badc431b75 100644
--- a/srcpkgs/artyfx/patches/respect-our-cflags.patch
+++ b/srcpkgs/artyfx/patches/respect-our-cflags.patch
@@ -1,7 +1,7 @@
 Index: CMakeLists.txt
 ===================================================================
---- CMakeLists.txt.orig
-+++ CMakeLists.txt
+--- a/CMakeLists.txt.orig
++++ b/CMakeLists.txt
 @@ -24,17 +24,17 @@ pkg_check_modules(SND sndfile REQUIRED)
  include_directories( ${SND_INCLUDE_DIRS}  )
  #target_link_libraries( avtkDemo ${CAIRO_LIBRARIES}  )
diff --git a/srcpkgs/artyfx/template b/srcpkgs/artyfx/template
index 279fa42510d9..f06781b63736 100644
--- a/srcpkgs/artyfx/template
+++ b/srcpkgs/artyfx/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="http://openavproductions.com/artyfx/"
 distfiles="https://github.com/openAVproductions/openAV-ArtyFX/archive/release-$version.tar.gz"
 checksum=a2a8d02b47bea44d0053cd4f8c6411f68a6fe9b9e4348a4139cd9bfd70105c00
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	armv7*)
diff --git a/srcpkgs/asignify/patches/musl.patch b/srcpkgs/asignify/patches/musl.patch
index f5967ae87ba8..a921b61e78db 100644
--- a/srcpkgs/asignify/patches/musl.patch
+++ b/srcpkgs/asignify/patches/musl.patch
@@ -1,5 +1,5 @@
---- libasignify/sha2.h.orig	2015-06-13 11:00:00.647603180 +0200
-+++ libasignify/sha2.h	2015-06-13 11:00:43.070069529 +0200
+--- a/libasignify/sha2.h
++++ b/libasignify/sha2.h
 @@ -59,7 +59,11 @@ typedef struct _SHA2_CTX {
  	uint8_t	buffer[SHA512_BLOCK_LENGTH];
  } SHA2_CTX;
diff --git a/srcpkgs/asignify/template b/srcpkgs/asignify/template
index a6bc88da22d8..24b6f55108ea 100644
--- a/srcpkgs/asignify/template
+++ b/srcpkgs/asignify/template
@@ -10,7 +10,6 @@ license="BSD-2-Clause"
 homepage="https://github.com/vstakhov/asignify"
 distfiles="https://github.com/vstakhov/asignify/archive/${version}.tar.gz"
 checksum=81272713900b51049633139549181fa23e56eeb580e0ea0325546d2fe7ca503d
-patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/assimp/patches/musl.patch b/srcpkgs/assimp/patches/musl.patch
index f2cf5b1a5e9f..613299078e42 100644
--- a/srcpkgs/assimp/patches/musl.patch
+++ b/srcpkgs/assimp/patches/musl.patch
@@ -1,5 +1,5 @@
---- contrib/zip/src/zip.h	2019-09-24 19:28:59.000000000 +0200
-+++ -	2019-09-29 00:15:02.408202128 +0200
+--- a/contrib/zip/src/zip.h
++++ b/-
 @@ -20,7 +20,7 @@
  #endif
  
diff --git a/srcpkgs/assimp/template b/srcpkgs/assimp/template
index 39b1cb64289c..7d45161ede5d 100644
--- a/srcpkgs/assimp/template
+++ b/srcpkgs/assimp/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause"
 homepage="http://assimp.sourceforge.net/"
 distfiles="https://github.com/assimp/assimp/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=11310ec1f2ad2cd46b95ba88faca8f7aaa1efe9aa12605c55e3de2b977b3dbfc
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/astroid/patches/cross.patch b/srcpkgs/astroid/patches/cross.patch
index 106aa2f143ca..812f1486b229 100644
--- a/srcpkgs/astroid/patches/cross.patch
+++ b/srcpkgs/astroid/patches/cross.patch
@@ -1,5 +1,5 @@
---- cmake/FindNotmuch.cmake.orig	2019-12-07 15:36:42.495906856 +0700
-+++ cmake/FindNotmuch.cmake	2019-12-07 15:37:24.330785115 +0700
+--- a/cmake/FindNotmuch.cmake
++++ b/cmake/FindNotmuch.cmake
 @@ -68,24 +68,4 @@
  check_symbol_exists (notmuch_database_index_file notmuch.h Notmuch_INDEX_FILE_API)
  
diff --git a/srcpkgs/astroid/template b/srcpkgs/astroid/template
index b1c72bcbe608..e37e50c628fe 100644
--- a/srcpkgs/astroid/template
+++ b/srcpkgs/astroid/template
@@ -13,7 +13,6 @@ license="GPL-3.0-or-later"
 homepage="http://astroidmail.github.io/"
 distfiles="https://github.com/astroidmail/astroid/archive/v${version}.tar.gz"
 checksum=8581bbdbc71bd00d4cdd473cfad8bc604628bb15616fe5eab5c623461f686c65
-patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qemu-user-static prelink-cross"
diff --git a/srcpkgs/astyle/patches/musl.patch b/srcpkgs/astyle/patches/musl.patch
index cff5b81f1533..8519d982f7c8 100644
--- a/srcpkgs/astyle/patches/musl.patch
+++ b/srcpkgs/astyle/patches/musl.patch
@@ -1,5 +1,5 @@
---- src/astyle_main.cpp	2018-01-11 18:18:19.000000000 +0100
-+++ src/astyle_main.cpp	2018-01-12 13:30:53.272485434 +0100
+--- a/src/astyle_main.cpp
++++ b/src/astyle_main.cpp
 @@ -35,6 +35,7 @@
  
  #include "astyle_main.h"
diff --git a/srcpkgs/astyle/template b/srcpkgs/astyle/template
index d6e09e75d70d..860e5840811c 100644
--- a/srcpkgs/astyle/template
+++ b/srcpkgs/astyle/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="http://astyle.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${version}_linux.tar.gz"
 checksum=cbcc4cf996294534bb56f025d6f199ebfde81aa4c271ccbd5ee1c1a3192745d7
-patch_args=-Np0
 
 do_install() {
 	vbin bin/astyle
diff --git a/srcpkgs/at/patches/isleap.patch b/srcpkgs/at/patches/isleap.patch
index 726e23f50344..f475c1748b04 100644
--- a/srcpkgs/at/patches/isleap.patch
+++ b/srcpkgs/at/patches/isleap.patch
@@ -1,5 +1,5 @@
---- parsetime.y.orig	2015-05-11 15:16:53.018305563 +0200
-+++ parsetime.y	2015-05-11 15:17:22.820153470 +0200
+--- a/parsetime.y
++++ b/parsetime.y
 @@ -6,6 +6,10 @@
  #include "parsetime.h"
  #include "panic.h"
diff --git a/srcpkgs/at/template b/srcpkgs/at/template
index 563b741d6af8..772c4582b3e7 100644
--- a/srcpkgs/at/template
+++ b/srcpkgs/at/template
@@ -16,7 +16,6 @@ homepage="http://packages.qa.debian.org/a/at.html"
 distfiles="${DEBIAN_SITE}/main/a/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=2211da14914fde1f9cc83592838fb6385a32fb11fcecb7816c77700df6559088
 disable_parallel_build=yes
-patch_args=-Np0
 
 conf_files="/etc/at.deny"
 system_accounts="at"
diff --git a/srcpkgs/aterm/patches/fix-pty-musl.patch b/srcpkgs/aterm/patches/fix-pty-musl.patch
index 4c6005504297..be05aa81f70b 100644
--- a/srcpkgs/aterm/patches/fix-pty-musl.patch
+++ b/srcpkgs/aterm/patches/fix-pty-musl.patch
@@ -1,5 +1,5 @@
---- src/command.c.orig	2016-03-05 22:06:06.710989576 +0000
-+++ src/command.c	2016-03-05 22:06:36.743614116 +0000
+--- a/src/command.c
++++ b/src/command.c
 @@ -556,7 +556,7 @@
      ptydev = ttydev = _getpty(&fd, O_RDWR | O_NDELAY, 0622, 0);
      if (ptydev == NULL)
diff --git a/srcpkgs/aterm/template b/srcpkgs/aterm/template
index 6608120fc2d9..cf474ff86dec 100644
--- a/srcpkgs/aterm/template
+++ b/srcpkgs/aterm/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="http://www.afterstep.org/aterm.php"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=a161c3b2d9c7149130a41963899993af21eae92e8e362f4b5b3c7c4cb16760ce
-patch_args=-Np0
 
 pre_build() {
 	sed -i '/INSTALL_PROGRAM/s,-c -s,-c ,g' src/Makefile
diff --git a/srcpkgs/atomicparsley/patches/musl-fpos_t.patch b/srcpkgs/atomicparsley/patches/musl-fpos_t.patch
index b9a56fdca0e0..b8fd77ab6ec2 100644
--- a/srcpkgs/atomicparsley/patches/musl-fpos_t.patch
+++ b/srcpkgs/atomicparsley/patches/musl-fpos_t.patch
@@ -1,5 +1,5 @@
---- src/parsley.cpp
-+++ src/parsley.cpp
+--- a/src/parsley.cpp
++++ b/src/parsley.cpp
 @@ -4585,10 +4585,11 @@
  #if defined(_MSC_VER)
  			fpos_t file_offset = dest_position + file_pos;
diff --git a/srcpkgs/atomicparsley/template b/srcpkgs/atomicparsley/template
index 4f6d6cc2d8f2..b82abf7d377c 100644
--- a/srcpkgs/atomicparsley/template
+++ b/srcpkgs/atomicparsley/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="https://bitbucket.org/wez/atomicparsley/"
 distfiles="https://bitbucket.org/wez/atomicparsley/get/${version}.tar.gz"
 checksum=8ba4e3e21d7a9239932e2a6f34842194d8f9eba84ce9eb83fb35369f5f3f05ab
-patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/atop/patches/atop-bb-compat.patch b/srcpkgs/atop/patches/atop-bb-compat.patch
index 5173ba56f874..20f849e97b9d 100644
--- a/srcpkgs/atop/patches/atop-bb-compat.patch
+++ b/srcpkgs/atop/patches/atop-bb-compat.patch
@@ -1,7 +1,7 @@
 diff --git atop.daily atop.daily
 index c72214c..ac4b3b7 100755
---- atop.daily
-+++ atop.daily
+--- a/atop.daily
++++ b/atop.daily
 @@ -1,4 +1,4 @@
 -#!/bin/bash
 +#!/bin/sh
diff --git a/srcpkgs/atop/patches/fix-cflags.patch b/srcpkgs/atop/patches/fix-cflags.patch
index bf26f434cdc7..e02e1459c8bf 100644
--- a/srcpkgs/atop/patches/fix-cflags.patch
+++ b/srcpkgs/atop/patches/fix-cflags.patch
@@ -1,5 +1,5 @@
---- Makefile.orig	2016-02-26 23:20:11.536799936 +0100
-+++ Makefile	2016-02-26 23:20:19.545799337 +0100
+--- a/Makefile
++++ b/Makefile
 @@ -39,7 +39,7 @@ atopacctd:	atopacctd.o netlink.o
  		$(CC) atopacctd.o netlink.o -o atopacctd $(LDFLAGS)
  
diff --git a/srcpkgs/atop/patches/musl-fix-includes.patch b/srcpkgs/atop/patches/musl-fix-includes.patch
index ae1cff096630..b5aab986ab91 100644
--- a/srcpkgs/atop/patches/musl-fix-includes.patch
+++ b/srcpkgs/atop/patches/musl-fix-includes.patch
@@ -1,5 +1,5 @@
---- deviate.c.orig
-+++ deviate.c
+--- a/deviate.c.orig
++++ b/deviate.c
 @@ -178,6 +178,7 @@
  #include <stdio.h>
  #include <errno.h>
@@ -8,8 +8,8 @@
  #include <unistd.h>
  #include <limits.h>
  #include <memory.h>
---- procdbase.c.orig
-+++ procdbase.c
+--- a/procdbase.c.orig
++++ b/procdbase.c
 @@ -67,7 +67,7 @@
  #include <fcntl.h>
  #include <unistd.h>
diff --git a/srcpkgs/atop/template b/srcpkgs/atop/template
index 8ba868d263e3..8c981e657879 100644
--- a/srcpkgs/atop/template
+++ b/srcpkgs/atop/template
@@ -12,7 +12,6 @@ homepage="https://www.atoptool.nl/"
 distfiles="https://www.atoptool.nl/download/atop-${version}.tar.gz"
 checksum=4b911057ce50463b6e8b3016c5963d48535c0cddeebc6eda817e292b22f93f33
 python_version=2 #unverified
-patch_args=-Np0
 
 make_dirs="/var/log/atop 755 root root"
 
diff --git a/srcpkgs/attic/patches/openssl.diff b/srcpkgs/attic/patches/openssl.diff
index c289a1dc267c..7ebc0a9d3a7a 100644
--- a/srcpkgs/attic/patches/openssl.diff
+++ b/srcpkgs/attic/patches/openssl.diff
@@ -1,5 +1,5 @@
---- attic/crypto.pyx
-+++ attic/crypto.pyx
+--- a/attic/crypto.pyx
++++ b/attic/crypto.pyx
 @@ -23,8 +23,9 @@ cdef extern from "openssl/evp.h":
          pass
      const EVP_MD *EVP_sha256()
diff --git a/srcpkgs/attic/template b/srcpkgs/attic/template
index 3e7feff29c04..153c0341edcb 100644
--- a/srcpkgs/attic/template
+++ b/srcpkgs/attic/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause"
 homepage="https://attic-backup.org/"
 distfiles="${PYPI_SITE}/A/Attic/Attic-${version}.tar.gz"
 checksum=6650cd28072101c2e05941e77b93a62f91da6179785e4e4b4880916c469bba2c
-patch_args=-Np0
 
 pre_build() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/attract/patches/Makefile.patch b/srcpkgs/attract/patches/Makefile.patch
index b530db21dc5e..273540bb8fc4 100644
--- a/srcpkgs/attract/patches/Makefile.patch
+++ b/srcpkgs/attract/patches/Makefile.patch
@@ -1,5 +1,5 @@
---- Makefile	2016-12-06 21:40:22.715155552 +0100
-+++ Makefile	2016-12-06 21:41:39.523155740 +0100
+--- a/Makefile
++++ b/Makefile
 @@ -50,12 +50,8 @@
  
  FE_VERSION=v2.2.0
diff --git a/srcpkgs/attract/patches/fix-musl.patch b/srcpkgs/attract/patches/fix-musl.patch
index c6bb5eacd8ba..568a7419b957 100644
--- a/srcpkgs/attract/patches/fix-musl.patch
+++ b/srcpkgs/attract/patches/fix-musl.patch
@@ -1,5 +1,5 @@
---- extlibs/gameswf/base/utility.cpp	2016-11-08 08:06:21.000000000 +0100
-+++ extlibs/gameswf/base/utility.cpp	2016-12-06 22:03:53.042131946 +0100
+--- a/extlibs/gameswf/base/utility.cpp
++++ b/extlibs/gameswf/base/utility.cpp
 @@ -41,7 +41,7 @@
  {
  
diff --git a/srcpkgs/attract/template b/srcpkgs/attract/template
index dd2419954f94..ceff4287193d 100644
--- a/srcpkgs/attract/template
+++ b/srcpkgs/attract/template
@@ -14,7 +14,6 @@ license="GPL-3.0-or-later"
 homepage="http://attractmode.org/"
 distfiles="https://github.com/mickelson/attract/archive/v${version}.tar.gz"
 checksum=4c17641ce0a0b9ff77da5e75f0cb26cc48e4c6295ef57d86a37db18b2bd9fbe9
-patch_args=-Np0
 
 CFLAGS="-std=gnu++11 \
 	-I extlibs/audio/include \
diff --git a/srcpkgs/aubio/patches/disable-tests.patch b/srcpkgs/aubio/patches/disable-tests.patch
index 1502fa79a048..4662ea0c4a49 100644
--- a/srcpkgs/aubio/patches/disable-tests.patch
+++ b/srcpkgs/aubio/patches/disable-tests.patch
@@ -2,8 +2,8 @@ breaks cross-compilation
 
 diff --git a/wscript b/wscript
 index c08298c..1443ae2 100644
---- wscript
-+++ wscript
+--- a/wscript
++++ b/wscript
 @@ -494,8 +494,6 @@ def build(bld):
              bld.options.testcmd = 'node %s'
          if bld.options.enable_examples:
diff --git a/srcpkgs/aubio/template b/srcpkgs/aubio/template
index c903e81ed8d5..eaab3e9fdb72 100644
--- a/srcpkgs/aubio/template
+++ b/srcpkgs/aubio/template
@@ -12,7 +12,6 @@ license="GPL-3.0-or-later"
 homepage="http://aubio.org"
 distfiles="${homepage}/pub/${pkgname}-${version}.tar.bz2"
 checksum=d48282ae4dab83b3dc94c16cf011bcb63835c1c02b515490e1883049c3d1f3da
-patch_args=-Np0
 
 libaubio_package() {
 	short_desc+=" - Runtime libraries"
diff --git a/srcpkgs/audacity/patches/configure.patch b/srcpkgs/audacity/patches/configure.patch
index 3b9c576c3f29..46020c1764f3 100644
--- a/srcpkgs/audacity/patches/configure.patch
+++ b/srcpkgs/audacity/patches/configure.patch
@@ -1,8 +1,8 @@
 configure uses AC_CHECK_FILE to test for file existence which is
 cross incompatible. Changed it to simple if/else statements.
 
---- configure.orig	2017-10-26 19:44:39.000000000 +0200
-+++ configure	2017-11-09 21:23:45.099433701 +0100
+--- a/configure
++++ b/configure
 @@ -20200,29 +20200,11 @@
     fi
  
diff --git a/srcpkgs/audacity/template b/srcpkgs/audacity/template
index 4ed153f8b74c..c91520872ce5 100644
--- a/srcpkgs/audacity/template
+++ b/srcpkgs/audacity/template
@@ -18,7 +18,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.audacityteam.org"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/Audacity-${version}.tar.gz"
 checksum=50240f07471373a7e5c2df65cc26eeeaaced9a0850ad1f95cb795f171ea3009f
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) ;;
diff --git a/srcpkgs/audiofile/patches/004-CVE-2017-6829.patch b/srcpkgs/audiofile/patches/004-CVE-2017-6829.patch
index 91330ba1bb69..c1047af06c5c 100644
--- a/srcpkgs/audiofile/patches/004-CVE-2017-6829.patch
+++ b/srcpkgs/audiofile/patches/004-CVE-2017-6829.patch
@@ -11,8 +11,8 @@ and https://blogs.gentoo.org/ago/2017/02/20/audiofile-global-buffer-overflow-in-
 
 diff --git a/libaudiofile/modules/IMA.cpp b/libaudiofile/modules/IMA.cpp
 index 7476d44..df4aad6 100644
---- libaudiofile/modules/IMA.cpp
-+++ libaudiofile/modules/IMA.cpp
+--- a/libaudiofile/modules/IMA.cpp
++++ b/libaudiofile/modules/IMA.cpp
 @@ -169,7 +169,7 @@ int IMA::decodeBlockWAVE(const uint8_t *encoded, int16_t *decoded)
  		if (encoded[1] & 0x80)
  			m_adpcmState[c].previousValue -= 0x10000;
diff --git a/srcpkgs/audiofile/patches/005-CVE-2017-6827-CVE-2017-6828-CVE-2017-6832-CVE-2017-6833-CVE-2017-6835-CVE-2017-6837.patch b/srcpkgs/audiofile/patches/005-CVE-2017-6827-CVE-2017-6828-CVE-2017-6832-CVE-2017-6833-CVE-2017-6835-CVE-2017-6837.patch
index 6914a46802e8..f9427cbe6191 100644
--- a/srcpkgs/audiofile/patches/005-CVE-2017-6827-CVE-2017-6828-CVE-2017-6832-CVE-2017-6833-CVE-2017-6835-CVE-2017-6837.patch
+++ b/srcpkgs/audiofile/patches/005-CVE-2017-6827-CVE-2017-6828-CVE-2017-6832-CVE-2017-6833-CVE-2017-6835-CVE-2017-6837.patch
@@ -13,8 +13,8 @@ This fixes the 00191-audiofile-indexoob issue in #41
 
 diff --git a/libaudiofile/WAVE.cpp b/libaudiofile/WAVE.cpp
 index 9dd8511..0fc48e8 100644
---- libaudiofile/WAVE.cpp
-+++ libaudiofile/WAVE.cpp
+--- a/libaudiofile/WAVE.cpp
++++ b/libaudiofile/WAVE.cpp
 @@ -281,6 +281,12 @@ status WAVEFile::parseFormat(const Tag &id, uint32_t size)
  
  			/* numCoefficients should be at least 7. */
diff --git a/srcpkgs/audiofile/patches/006-CVE-2017-6839.patch b/srcpkgs/audiofile/patches/006-CVE-2017-6839.patch
index f0e1bc56372b..2be930b92410 100644
--- a/srcpkgs/audiofile/patches/006-CVE-2017-6839.patch
+++ b/srcpkgs/audiofile/patches/006-CVE-2017-6839.patch
@@ -14,8 +14,8 @@ This fixes the 00193-audiofile-signintoverflow-MSADPCM case of #41
 
 diff --git a/libaudiofile/modules/BlockCodec.cpp b/libaudiofile/modules/BlockCodec.cpp
 index 45925e8..4731be1 100644
---- libaudiofile/modules/BlockCodec.cpp
-+++ libaudiofile/modules/BlockCodec.cpp
+--- a/libaudiofile/modules/BlockCodec.cpp
++++ b/libaudiofile/modules/BlockCodec.cpp
 @@ -52,8 +52,9 @@ void BlockCodec::runPull()
  	// Decompress into m_outChunk.
  	for (int i=0; i<blocksRead; i++)
@@ -30,8 +30,8 @@ index 45925e8..4731be1 100644
  	}
 diff --git a/libaudiofile/modules/MSADPCM.cpp b/libaudiofile/modules/MSADPCM.cpp
 index 8ea3c85..ef9c38c 100644
---- libaudiofile/modules/MSADPCM.cpp
-+++ libaudiofile/modules/MSADPCM.cpp
+--- a/libaudiofile/modules/MSADPCM.cpp
++++ b/libaudiofile/modules/MSADPCM.cpp
 @@ -101,24 +101,60 @@ static const int16_t adaptationTable[] =
  	768, 614, 512, 409, 307, 230, 230, 230
  };
diff --git a/srcpkgs/audiofile/patches/007-CVE-2017-6830-CVE-2017-6834-CVE-2017-6836-CVE-2017-6838.patch b/srcpkgs/audiofile/patches/007-CVE-2017-6830-CVE-2017-6834-CVE-2017-6836-CVE-2017-6838.patch
index ba24efa05fd1..0f17140d6b50 100644
--- a/srcpkgs/audiofile/patches/007-CVE-2017-6830-CVE-2017-6834-CVE-2017-6836-CVE-2017-6838.patch
+++ b/srcpkgs/audiofile/patches/007-CVE-2017-6830-CVE-2017-6834-CVE-2017-6836-CVE-2017-6838.patch
@@ -14,8 +14,8 @@ in #41
 
 diff --git a/sfcommands/sfconvert.c b/sfcommands/sfconvert.c
 index 80a1bc4..970a3e4 100644
---- sfcommands/sfconvert.c
-+++ sfcommands/sfconvert.c
+--- a/sfcommands/sfconvert.c
++++ b/sfcommands/sfconvert.c
 @@ -45,6 +45,33 @@ void printusage (void);
  void usageerror (void);
  bool copyaudiodata (AFfilehandle infile, AFfilehandle outfile, int trackid);
diff --git a/srcpkgs/audiofile/patches/009-CVE-2017-6831.patch b/srcpkgs/audiofile/patches/009-CVE-2017-6831.patch
index d0cdff4999a8..50cd3dc9a35c 100644
--- a/srcpkgs/audiofile/patches/009-CVE-2017-6831.patch
+++ b/srcpkgs/audiofile/patches/009-CVE-2017-6831.patch
@@ -16,8 +16,8 @@ https://blogs.gentoo.org/ago/2017/02/20/audiofile-heap-based-buffer-overflow-in-
 
 diff --git a/libaudiofile/WAVE.cpp b/libaudiofile/WAVE.cpp
 index 0fc48e8..d04b796 100644
---- libaudiofile/WAVE.cpp
-+++ libaudiofile/WAVE.cpp
+--- a/libaudiofile/WAVE.cpp
++++ b/libaudiofile/WAVE.cpp
 @@ -332,6 +332,7 @@ status WAVEFile::parseFormat(const Tag &id, uint32_t size)
  			{
  				_af_error(AF_BAD_NOT_IMPLEMENTED,
diff --git a/srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch b/srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch
index 77ec7675cdb5..469bea817080 100644
--- a/srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch
+++ b/srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch
@@ -1,5 +1,5 @@
---- libaudiofile/modules/SimpleModule.h	2013-03-07 08:14:57.000000000 +0100
-+++ libaudiofile/modules/SimpleModule.h	2016-09-27 13:49:59.329194632 +0200
+--- a/libaudiofile/modules/SimpleModule.h
++++ b/libaudiofile/modules/SimpleModule.h
 @@ -123,7 +123,7 @@
  	typedef typename IntTypes<Format>::UnsignedType UnsignedType;
  
diff --git a/srcpkgs/audiofile/template b/srcpkgs/audiofile/template
index 7779d5ec2034..a4eef3f40260 100644
--- a/srcpkgs/audiofile/template
+++ b/srcpkgs/audiofile/template
@@ -13,7 +13,6 @@ homepage="http://audiofile.68k.org"
 distfiles="http://github.com/mpruett/audiofile/archive/audiofile-${version}.tar.gz"
 checksum=52125fee6c7454d743acdc27ebda194c6b5c7b9111426c7d5fdea0754cd366cc
 disable_parallel_build=1
-patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/auto-auto-complete/patches/fish-completion-vendor.patch b/srcpkgs/auto-auto-complete/patches/fish-completion-vendor.patch
index 0d24ff97ae05..ff78edaa6e6e 100644
--- a/srcpkgs/auto-auto-complete/patches/fish-completion-vendor.patch
+++ b/srcpkgs/auto-auto-complete/patches/fish-completion-vendor.patch
@@ -19,8 +19,8 @@ This isn't an issue here (yet) but it conforms to the docs.
 
 diff --git a/Makefile b/Makefile
 index d7e331d..6506628 100644
---- Makefile
-+++ Makefile
+--- a/Makefile
++++ b/Makefile
 @@ -188,8 +188,8 @@ install-zsh: bin/auto-auto-complete.zsh
  
  .PHONY: install-fish
diff --git a/srcpkgs/auto-auto-complete/template b/srcpkgs/auto-auto-complete/template
index 24a3eb40df42..065d615c2b59 100644
--- a/srcpkgs/auto-auto-complete/template
+++ b/srcpkgs/auto-auto-complete/template
@@ -11,4 +11,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/maandree/auto-auto-complete"
 distfiles="https://github.com/maandree/${pkgname}/archive/${version}.tar.gz"
 checksum=5e54025c6ef65dfff5ba976d23eb778a0936b0678763ebcd78359d460300301e
-patch_args=-Np0
diff --git a/srcpkgs/autoconf/patches/fix-perl-5.22-autoscan.patch b/srcpkgs/autoconf/patches/fix-perl-5.22-autoscan.patch
index ca1703bcf12d..3054d22a5cf4 100644
--- a/srcpkgs/autoconf/patches/fix-perl-5.22-autoscan.patch
+++ b/srcpkgs/autoconf/patches/fix-perl-5.22-autoscan.patch
@@ -10,8 +10,8 @@ feature that is deprecated in Perl 5.17.  Reported by Ray Lauff in
  bin/autoscan.in | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
---- bin/autoscan.in
-+++ bin/autoscan.in
+--- a/bin/autoscan.in
++++ b/bin/autoscan.in
 @@ -358,7 +358,7 @@ sub scan_sh_file ($)
      {
        # Strip out comments and variable references.
diff --git a/srcpkgs/autoconf/template b/srcpkgs/autoconf/template
index a3018bf709b9..260e8c753f07 100644
--- a/srcpkgs/autoconf/template
+++ b/srcpkgs/autoconf/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/autoconf"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=64ebcec9f8ac5b2487125a86a7760d2591ac9e1d3dbd59489633f9de62a57684
-patch_args=-Np0
 
 pre_check() {
 	# Disable failing test by adding
diff --git a/srcpkgs/autoconf213/patches/patch-aa.diff b/srcpkgs/autoconf213/patches/patch-aa.diff
index 4fcbe3ba7bfb..1abc117e9638 100644
--- a/srcpkgs/autoconf213/patches/patch-aa.diff
+++ b/srcpkgs/autoconf213/patches/patch-aa.diff
@@ -1,7 +1,7 @@
 $NetBSD: patch-aa,v 1.2 2006/11/02 18:17:22 joerg Exp $
 
---- Makefile.in.orig	1999-01-05 13:27:16.000000000 +0000
-+++ Makefile.in
+--- a/Makefile.in
++++ b/Makefile.in
 @@ -137,36 +137,32 @@ installcheck: all install
  	cd testsuite && ${MAKE} AUTOCONF=${bindir}/autoconf $@
  
diff --git a/srcpkgs/autoconf213/patches/patch-ab.diff b/srcpkgs/autoconf213/patches/patch-ab.diff
index 3ed6ee487050..172b353bce00 100644
--- a/srcpkgs/autoconf213/patches/patch-ab.diff
+++ b/srcpkgs/autoconf213/patches/patch-ab.diff
@@ -1,7 +1,7 @@
 $NetBSD: patch-ab,v 1.1.1.1 2002/10/03 19:25:04 wiz Exp $
 
---- autoconf.texi.orig	Tue Jan  5 14:28:37 1999
-+++ autoconf.texi
+--- a/autoconf.texi
++++ b/autoconf.texi
 @@ -4,6 +4,7 @@
  @settitle Autoconf
  @c For double-sided printing, uncomment:
diff --git a/srcpkgs/autoconf213/patches/patch-ac.diff b/srcpkgs/autoconf213/patches/patch-ac.diff
index 6b5f4f1e6ab0..0a27e2178e8e 100644
--- a/srcpkgs/autoconf213/patches/patch-ac.diff
+++ b/srcpkgs/autoconf213/patches/patch-ac.diff
@@ -1,7 +1,7 @@
 $NetBSD: patch-ac,v 1.1.1.1 2002/10/03 19:25:04 wiz Exp $
 
---- autoreconf.sh.orig	Tue Jan  5 14:28:40 1999
-+++ autoreconf.sh
+--- a/autoreconf.sh
++++ b/autoreconf.sh
 @@ -143,7 +143,7 @@ while read dir; do
  	:
       else
diff --git a/srcpkgs/autoconf213/template b/srcpkgs/autoconf213/template
index ebbcb4df4549..31f07cb74c00 100644
--- a/srcpkgs/autoconf213/template
+++ b/srcpkgs/autoconf213/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://www.gnu.org/software/autoconf"
 distfiles="${GNU_SITE}/autoconf/autoconf-$version.tar.gz"
 checksum=f0611136bee505811e9ca11ca7ac188ef5323a8e2ef19cffd3edb3cf08fd791e
-patch_args=-Np0
 
 post_install() {
 	# Avoid conflict with other versions.
diff --git a/srcpkgs/autofs/patches/musl.patch b/srcpkgs/autofs/patches/musl.patch
index 5825d646a843..bb2e75c72ccb 100644
--- a/srcpkgs/autofs/patches/musl.patch
+++ b/srcpkgs/autofs/patches/musl.patch
@@ -1,5 +1,5 @@
---- lib/nss_parse.y.orig	2016-01-10 10:07:26.854512310 +0100
-+++ lib/nss_parse.y	2016-01-10 10:07:53.134783321 +0100
+--- a/lib/nss_parse.y
++++ b/lib/nss_parse.y
 @@ -28,6 +28,10 @@
  #include "nsswitch.h"
  #include "nss_parse.tab.h"
@@ -11,8 +11,8 @@
  static pthread_mutex_t parse_mutex = PTHREAD_MUTEX_INITIALIZER;
  
  static struct list_head *nss_list;
---- daemon/automount.c.orig	2016-01-10 10:10:23.680333952 +0100
-+++ daemon/automount.c	2016-01-10 10:10:35.599456586 +0100
+--- a/daemon/automount.c
++++ b/daemon/automount.c
 @@ -37,6 +37,14 @@
  #include <sys/vfs.h>
  #include <sys/utsname.h>
@@ -28,8 +28,8 @@
  #include "automount.h"
  #if defined(LIBXML2_WORKAROUND) || defined(TIRPC_WORKAROUND)
  #include <dlfcn.h>
---- lib/log.c.orig     2019-03-30 10:49:52.965336128 +0100
-+++ lib/log.c  2019-03-30 10:50:43.232710045 +0100
+--- a/lib/log.c.orig     2019-03-30 10:49:52.965336128 +0100
++++ b/lib/log.c  2019-03-30 10:50:43.232710045 +0100
 @@ -38,7 +38,11 @@ static char *prepare_attempt_prefix(cons
        char buffer[ATTEMPT_ID_SIZE + 1];
        char *prefixed_msg = NULL;
@@ -43,8 +43,8 @@
        if (attempt_id) {
                int len = sizeof(buffer) + 1 + strlen(msg) + 1;
  
---- include/hash.h.orig	2021-01-31 09:22:19.668222263 +0100
-+++ include/hash.h	2021-01-31 09:22:41.390327622 +0100
+--- a/include/hash.h
++++ b/include/hash.h
 @@ -5,6 +5,11 @@
  
  #include <sys/types.h>
diff --git a/srcpkgs/autofs/template b/srcpkgs/autofs/template
index bd2ab2792540..b306368242d3 100644
--- a/srcpkgs/autofs/template
+++ b/srcpkgs/autofs/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/daemons/autofs"
 distfiles="${KERNEL_SITE}/daemons/autofs/v5/autofs-${version}.tar.xz"
 checksum=a36b268611b79b07051749870ba540b139938efc84bc0293244c483e94f9ced7
-patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/gssglue -I${XBPS_CROSS_BASE}/usr/include/tirpc"
 
diff --git a/srcpkgs/autogen/patches/autogen-5.18.16-rpath.patch b/srcpkgs/autogen/patches/autogen-5.18.16-rpath.patch
index 27c9c33cbe75..ebca2c072bfc 100644
--- a/srcpkgs/autogen/patches/autogen-5.18.16-rpath.patch
+++ b/srcpkgs/autogen/patches/autogen-5.18.16-rpath.patch
@@ -1,5 +1,5 @@
---- agen5/Makefile.am
-+++ agen5/Makefile.am
+--- a/agen5/Makefile.am
++++ b/agen5/Makefile.am
 @@ -63,7 +63,7 @@ SNV_LIB         = $(top_builddir)/snprintfv/libsnprintfv.la
  nodist_autogen_SOURCES = ag.c
  autogen_SOURCES = $(gen_csrc)
@@ -9,8 +9,8 @@
  autogen_CFLAGS  = $(GUILE_CFLAGS)
  stamp_script    = $(srcdir)/mk-stamps.sh
 
---- agen5/Makefile.in
-+++ agen5/Makefile.in
+--- a/agen5/Makefile.in
++++ b/agen5/Makefile.in
 @@ -482,7 +482,7 @@ SNV_LIB = $(top_builddir)/snprintfv/libsnprintfv.la
  nodist_autogen_SOURCES = ag.c
  autogen_SOURCES = $(gen_csrc)
@@ -20,8 +20,8 @@
  autogen_CFLAGS = $(GUILE_CFLAGS)
  stamp_script = $(srcdir)/mk-stamps.sh
  AM_YFLAGS = -d
---- columns/Makefile.am
-+++ columns/Makefile.am
+--- a/columns/Makefile.am
++++ b/columns/Makefile.am
 @@ -20,7 +20,7 @@
  ## with this program.  If not, see <http://www.gnu.org/licenses/>.
  
@@ -31,8 +31,8 @@
  csrc            = opts.h columns.c opts.c
  nodist_columns_SOURCES = cols.c
  
---- columns/Makefile.in
-+++ columns/Makefile.in
+--- a/columns/Makefile.in
++++ b/columns/Makefile.in
 @@ -389,7 +389,7 @@ target_vendor = @target_vendor@
  top_build_prefix = @top_build_prefix@
  top_builddir = @top_builddir@
@@ -42,8 +42,8 @@
  csrc = opts.h columns.c opts.c
  nodist_columns_SOURCES = cols.c
  LO_LIB = $(top_builddir)/autoopts/libopts.la
---- getdefs/Makefile.am
-+++ getdefs/Makefile.am
+--- a/getdefs/Makefile.am
++++ b/getdefs/Makefile.am
 @@ -23,7 +23,7 @@
  TARG = getdefs
  
@@ -53,8 +53,8 @@
  gdsrcs          = getdefs.h proto.h gdemit.c gdinit.c getdefs.c
  getdefs_SOURCES = proto.h
  BUILT_SOURCES   = gd.c
---- getdefs/Makefile.in
-+++ getdefs/Makefile.in
+--- a/getdefs/Makefile.in
++++ b/getdefs/Makefile.in
 @@ -434,7 +434,7 @@ top_build_prefix = @top_build_prefix@
  top_builddir = @top_builddir@
  top_srcdir = @top_srcdir@
diff --git a/srcpkgs/autogen/patches/build-aux.patch b/srcpkgs/autogen/patches/build-aux.patch
index 9e5ac52deef2..bc586ecd3f08 100644
--- a/srcpkgs/autogen/patches/build-aux.patch
+++ b/srcpkgs/autogen/patches/build-aux.patch
@@ -1,7 +1,7 @@
 diff --git build-aux/run-ag.sh build-aux/run-ag.sh
 index 6ee7b85..f604462 100755
---- build-aux/run-ag.sh
-+++ build-aux/run-ag.sh
+--- a/build-aux/run-ag.sh
++++ b/build-aux/run-ag.sh
 @@ -25,7 +25,7 @@
  # any containing directory must be created. The target is created with a
  # very old time stamp.
@@ -13,8 +13,8 @@ index 6ee7b85..f604462 100755
    test -x "$exe" && return 0
 diff --git getdefs/Makefile.in getdefs/Makefile.in
 index 058d0a6..7a17783 100644
---- getdefs/Makefile.in
-+++ getdefs/Makefile.in
+--- a/getdefs/Makefile.in
++++ b/getdefs/Makefile.in
 @@ -275,7 +275,7 @@ AG_STATIC_AUTOGEN = @AG_STATIC_AUTOGEN@
  AG_TIMEOUT = @AG_TIMEOUT@
  AG_VERSION = @AG_VERSION@
diff --git a/srcpkgs/autogen/patches/configure.patch b/srcpkgs/autogen/patches/configure.patch
index bb9ece30ce55..5b66aaffd490 100644
--- a/srcpkgs/autogen/patches/configure.patch
+++ b/srcpkgs/autogen/patches/configure.patch
@@ -1,7 +1,7 @@
 diff --git configure configure
 index f149ede..e75e3f0 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -17324,7 +17324,7 @@ $as_echo_n "checking whether strcspn matches prototype and works... " >&6; }
    $as_echo_n "(cached) " >&6
  else
diff --git a/srcpkgs/autogen/template b/srcpkgs/autogen/template
index 3b6d72d5090d..cfc9d20c9df8 100644
--- a/srcpkgs/autogen/template
+++ b/srcpkgs/autogen/template
@@ -17,7 +17,6 @@ replaces="autogen-docs>=0 autogen-devel>=0"
 _libopts=libopts-42.1.17.tar.gz
 CFLAGS="-Wno-error=format-truncation -Wno-error=format-overflow
 	-Wno-error=unused-parameter"
-patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" autogen guile-devel"
diff --git a/srcpkgs/avidemux/patches/musl-execinfo.patch b/srcpkgs/avidemux/patches/musl-execinfo.patch
index 352f73520ab1..b3af1dbecda2 100644
--- a/srcpkgs/avidemux/patches/musl-execinfo.patch
+++ b/srcpkgs/avidemux/patches/musl-execinfo.patch
@@ -1,5 +1,5 @@
---- avidemux_core/ADM_core/src/ADM_crashdump_unix.cpp	2016-03-05 09:22:54.000000000 +0100
-+++ avidemux_core/ADM_core/src/ADM_crashdump_unix.cpp	2016-03-08 03:06:07.328943375 +0100
+--- a/avidemux_core/ADM_core/src/ADM_crashdump_unix.cpp
++++ b/avidemux_core/ADM_core/src/ADM_crashdump_unix.cpp
 @@ -30,7 +30,7 @@
  #define	_ELF64
  #endif
diff --git a/srcpkgs/avidemux/patches/musl-memcpy.patch b/srcpkgs/avidemux/patches/musl-memcpy.patch
index c4b082fc4f1a..a798fbda0018 100644
--- a/srcpkgs/avidemux/patches/musl-memcpy.patch
+++ b/srcpkgs/avidemux/patches/musl-memcpy.patch
@@ -1,5 +1,5 @@
---- avidemux_core/ADM_core/include/ADM_assert.h	2015-06-10 07:42:47.000000000 +0200
-+++ avidemux_core/ADM_core/include/ADM_assert.h	2015-09-28 08:08:55.729367070 +0200
+--- a/avidemux_core/ADM_core/include/ADM_assert.h
++++ b/avidemux_core/ADM_core/include/ADM_assert.h
 @@ -69,7 +69,7 @@
  
  #define ADM_dealloc(x) ADM_dezalloc( (void *)x)
diff --git a/srcpkgs/avidemux/patches/use-realpath.patch b/srcpkgs/avidemux/patches/use-realpath.patch
index ed32ae325e29..7404f7193a06 100644
--- a/srcpkgs/avidemux/patches/use-realpath.patch
+++ b/srcpkgs/avidemux/patches/use-realpath.patch
@@ -1,5 +1,5 @@
---- avidemux_core/ADM_core/src/ADM_folder_linux.cpp	2016-11-19 08:58:39.000000000 +0100
-+++ avidemux_core/ADM_core/src/ADM_folder_linux.cpp	2016-11-21 07:05:07.700699647 +0100
+--- a/avidemux_core/ADM_core/src/ADM_folder_linux.cpp
++++ b/avidemux_core/ADM_core/src/ADM_folder_linux.cpp
 @@ -39,7 +39,7 @@
  static std::string canonize(const std::string &in)
  {
diff --git a/srcpkgs/avidemux/template b/srcpkgs/avidemux/template
index abedf3e2bc0c..e62a3bc2c436 100644
--- a/srcpkgs/avidemux/template
+++ b/srcpkgs/avidemux/template
@@ -19,7 +19,6 @@ homepage="http://avidemux.sourceforge.net/"
 changelog="http://avidemux.sourceforge.net/news.html"
 distfiles="${SOURCEFORGE_SITE}/avidemux/avidemux/${version}/${pkgname}_${version}.tar.gz"
 checksum=9a88741f3535443d4bde35d4207ca2ff96d3b136db2e7232cb50dd6b4eb293cf
-patch_args=-Np0
 
 do_configure() {
 	MAKEFLAGS=${makejobs} \
diff --git a/srcpkgs/avr-binutils/patches/avr-size.patch b/srcpkgs/avr-binutils/patches/avr-size.patch
index e9065e9ec556..4abf872765e4 100644
--- a/srcpkgs/avr-binutils/patches/avr-size.patch
+++ b/srcpkgs/avr-binutils/patches/avr-size.patch
@@ -1,7 +1,7 @@
 AVR specific only
 ===========================================================
---- binutils/size.c	2007-08-06 13:56:14.000000000 -0600
-+++ binutils/size.c	2007-09-13 09:13:10.281250000 -0600
+--- a/binutils/size.c
++++ b/binutils/size.c
 @@ -36,10 +36,31 @@
  #include "getopt.h"
  #include "bucomm.h"
diff --git a/srcpkgs/avr-binutils/template b/srcpkgs/avr-binutils/template
index d00bec12e17a..7d3a15725c57 100644
--- a/srcpkgs/avr-binutils/template
+++ b/srcpkgs/avr-binutils/template
@@ -14,7 +14,6 @@ license="GPL-3.0-only"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="$GNU_SITE/binutils/binutils-$version.tar.xz"
 checksum=0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04
-patch_args=-Np0
 
 post_install() {
 	rm -rf "$DESTDIR"/usr/share/info \
diff --git a/srcpkgs/azpainter/patches/0001-fix-configure-error.patch b/srcpkgs/azpainter/patches/0001-fix-configure-error.patch
index 00ecc7e64ef9..25c9483144b8 100644
--- a/srcpkgs/azpainter/patches/0001-fix-configure-error.patch
+++ b/srcpkgs/azpainter/patches/0001-fix-configure-error.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] fix configure error
 
 diff --git configure configure
 index cb9a9f6..06e65e0 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -203,9 +203,6 @@ for opt;do
  		cf_check_lib=no ;;
  	*=*)
@@ -26,8 +26,8 @@ index cb9a9f6..06e65e0 100755
 
 diff --git configure configure
 index 06e65e0..b10aed0 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -201,8 +201,6 @@ for opt;do
  		cf_docdir=$tmp1 ;;
  	--no-check-lib)
diff --git a/srcpkgs/azpainter/patches/fix-compiler-environment.patch b/srcpkgs/azpainter/patches/fix-compiler-environment.patch
index 86418e450b80..0b264cbd1bde 100644
--- a/srcpkgs/azpainter/patches/fix-compiler-environment.patch
+++ b/srcpkgs/azpainter/patches/fix-compiler-environment.patch
@@ -1,5 +1,5 @@
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -150,10 +150,11 @@ fc_check_command_err sed
  #-------------
  # option
diff --git a/srcpkgs/azpainter/template b/srcpkgs/azpainter/template
index b47d36fbe7ac..05bd1be32771 100644
--- a/srcpkgs/azpainter/template
+++ b/srcpkgs/azpainter/template
@@ -13,4 +13,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/Symbian9/azpainter"
 distfiles="https://github.com/Symbian9/azpainter/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=85f3f935e76b420f2e5e272514368fdfbe4c25c01daa1e161ac28a6e1edb0d2c
-patch_args=-Np0

From 49d038a26603b878219e532b119be39c021e071b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 18:28:11 +0700
Subject: [PATCH 8/9] srcpkgs/b*: convert patches to -Np1

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,/^--- /dev/null,b
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s/\(.orig\)*	.*//
			}
			/^+++ /{
				s,\(^+++ \)\(./\)*,\1b/,
				s/	.*//
			}
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
---
 srcpkgs/bacula-common/patches/fix-cross.patch |  4 +-
 srcpkgs/bacula-common/patches/fix-musl.patch  |  4 +-
 srcpkgs/bacula-common/template                |  1 -
 srcpkgs/balsa/patches/portability.patch       |  4 +-
 srcpkgs/balsa/template                        |  1 -
 srcpkgs/bananapi-uboot/patches/musl.patch     | 12 +--
 .../no-inline-show_boot_progress.patch        |  4 +-
 .../patches/no-inline-weak.patch              |  4 +-
 .../patches/static-inline.patch               |  4 +-
 srcpkgs/bananapi-uboot/template               |  1 -
 srcpkgs/basu/patches/uid-nobody.patch         |  4 +-
 srcpkgs/basu/template                         |  1 -
 srcpkgs/batctl14/patches/musl.patch           | 16 ++--
 srcpkgs/batctl14/template                     |  1 -
 .../batman-adv14/patches/0001-fix-build.diff  | 88 +++++++++----------
 srcpkgs/batman-adv14/template                 |  1 -
 srcpkgs/bbkeys/patches/fix-cross.patch        |  8 +-
 srcpkgs/bbkeys/template                       |  1 -
 ...s-structure-for-kernel-version-5.6.0.patch |  4 +-
 .../0002-Add-missing-proc_fs.h-header.patch   |  4 +-
 srcpkgs/bbswitch/template                     |  1 -
 srcpkgs/bc/patches/read.patch                 |  4 +-
 srcpkgs/bc/template                           |  1 -
 srcpkgs/bcc/patches/musl.patch                | 20 ++---
 srcpkgs/bcc/template                          |  1 -
 .../bctoolbox/patches/cmake-bcunit-fix.patch  |  4 +-
 srcpkgs/bctoolbox/template                    |  1 -
 srcpkgs/beep/patches/CVE-2018-0492.patch      |  4 +-
 srcpkgs/beep/template                         |  1 -
 srcpkgs/beets/patches/python-3.8.patch        |  4 +-
 srcpkgs/beets/template                        |  1 -
 srcpkgs/beignet/patches/cl_uint.patch         |  8 +-
 ...419a0008e38ef2d9d255d9e9c74e9fba084b.patch | 24 ++---
 srcpkgs/beignet/patches/llvm06.patch          |  8 +-
 srcpkgs/beignet/patches/llvm08.patch          |  8 +-
 srcpkgs/beignet/patches/llvm09.patch          | 20 ++---
 srcpkgs/beignet/patches/llvm10.patch          | 44 +++++-----
 srcpkgs/beignet/patches/llvm11.patch          | 44 +++++-----
 srcpkgs/beignet/patches/llvm12.patch          | 20 ++---
 srcpkgs/beignet/patches/musl.patch            |  4 +-
 srcpkgs/beignet/template                      |  1 -
 srcpkgs/belle-sip/patches/musl.patch          |  4 +-
 srcpkgs/belle-sip/template                    |  1 -
 .../patches/remove_bzlib_convenience.patch    | 12 +--
 .../patches/remove_zlib_convenience.patch     | 16 ++--
 .../patches/reproducibility.patch             |  8 +-
 srcpkgs/berkeley-abc/template                 |  1 -
 srcpkgs/berry/patches/fix-cross.patch         |  4 +-
 srcpkgs/berry/template                        |  1 -
 srcpkgs/biew/patches/bool.patch               |  4 +-
 srcpkgs/biew/template                         |  1 -
 srcpkgs/bin86/patches/fix_x86_64.diff         |  4 +-
 srcpkgs/bin86/template                        |  1 -
 .../binwalk/patches/fallback-version.patch    |  4 +-
 srcpkgs/binwalk/template                      |  1 -
 srcpkgs/biosdisk/patches/fix-sbin.patch       |  4 +-
 srcpkgs/biosdisk/template                     |  1 -
 srcpkgs/bird/patches/fix-tests-musl.patch     |  4 +-
 srcpkgs/bird/template                         |  1 -
 srcpkgs/birdtray/patches/QPainterPath.patch   |  4 +-
 srcpkgs/birdtray/template                     |  1 -
 srcpkgs/bish/patches/fix-ldflags.patch        |  4 +-
 srcpkgs/bish/template                         |  1 -
 .../patches/bitchx-1.2.1-security.patch       |  8 +-
 srcpkgs/bitchx/patches/openssl-1.1.patch      |  8 +-
 srcpkgs/bitchx/template                       |  1 -
 srcpkgs/bitfighter/patches/cmake.patch        | 36 ++++----
 srcpkgs/bitfighter/template                   |  1 -
 .../bitwise/patches/tests-use-bcunit.patch    |  8 +-
 srcpkgs/bitwise/template                      |  1 -
 srcpkgs/blackboxwm/patches/time64.patch       |  4 +-
 srcpkgs/blackboxwm/template                   |  1 -
 srcpkgs/bmon/patches/Add_CTRL-N_CTRL-P.patch  |  4 +-
 srcpkgs/bmon/patches/out_curses.patch         |  4 +-
 srcpkgs/bmon/template                         |  1 -
 srcpkgs/boinc/patches/arm-not-android.patch   | 12 +--
 .../boinc/patches/boinc-am_conditional.patch  |  4 +-
 srcpkgs/boinc/template                        |  1 -
 srcpkgs/bomi/patches/ffmpeg3.x.patch          | 12 +--
 srcpkgs/bomi/patches/ffmpeg4.patch            | 32 +++----
 srcpkgs/bomi/patches/fix-cxx14.patch          | 24 ++---
 srcpkgs/bomi/patches/fix-sysctl_h.patch       |  8 +-
 srcpkgs/bomi/template                         |  1 -
 srcpkgs/bonnie++/patches/configure.patch      |  4 +-
 srcpkgs/bonnie++/template                     |  1 -
 .../patches/dont_include_toolchain-file.patch |  4 +-
 srcpkgs/boomerang/patches/fix-cflags.patch    |  4 +-
 .../boomerang/patches/include-stdint.patch    |  4 +-
 srcpkgs/boomerang/template                    |  1 -
 srcpkgs/boost/patches/mips.patch              |  4 +-
 srcpkgs/boost/patches/musl-memset.patch       |  4 +-
 srcpkgs/boost/template                        |  1 -
 srcpkgs/bootchart2/patches/python-3.9.patch   |  8 +-
 .../bootchart2/patches/rdinit-fix-panic.patch |  4 +-
 srcpkgs/bootchart2/template                   |  1 -
 .../patches/botan_types_include_climits.patch |  4 +-
 srcpkgs/botan/template                        |  1 -
 srcpkgs/bridge-utils/patches/cflags.patch     |  4 +-
 srcpkgs/bridge-utils/patches/fix-musl.patch   |  4 +-
 srcpkgs/bridge-utils/template                 |  1 -
 srcpkgs/brltty/patches/crosspython.patch      |  4 +-
 srcpkgs/brltty/patches/time64.patch           |  4 +-
 srcpkgs/brltty/template                       |  1 -
 .../patches/001-null-pointer-fix.patch        |  4 +-
 .../broadcom-wl-dkms/patches/gcc-4.9.patch    |  4 +-
 .../broadcom-wl-dkms/patches/linux-4.11.patch |  8 +-
 .../broadcom-wl-dkms/patches/linux-4.12.patch |  4 +-
 .../broadcom-wl-dkms/patches/linux-4.15.patch |  4 +-
 .../broadcom-wl-dkms/patches/linux-4.3.patch  |  4 +-
 .../broadcom-wl-dkms/patches/linux-4.7.patch  |  8 +-
 .../broadcom-wl-dkms/patches/linux-4.8.patch  |  4 +-
 .../broadcom-wl-dkms/patches/linux-5.1.patch  |  8 +-
 .../broadcom-wl-dkms/patches/linux-5.10.patch | 20 ++---
 .../broadcom-wl-dkms/patches/linux-5.6.patch  |  8 +-
 srcpkgs/broadcom-wl-dkms/template             |  1 -
 srcpkgs/browsh/patches/go-bindata.patch       |  4 +-
 srcpkgs/browsh/patches/modules.patch          | 16 ++--
 srcpkgs/browsh/template                       |  1 -
 srcpkgs/bsdiff/patches/CVE-2014-9862.diff     |  4 +-
 srcpkgs/bsdiff/template                       |  1 -
 srcpkgs/bsdunzip/patches/add-license.patch    |  4 +-
 srcpkgs/bsdunzip/template                     |  1 -
 ...dc6022f67a4e1f49397b8bf519b2a34f74c9.patch |  4 +-
 srcpkgs/bti/template                          |  1 -
 .../fix-TEMP_FAILTURE_RETRY-musl.patch        |  4 +-
 .../patches/realpath-workaround.patch         |  8 +-
 srcpkgs/bubblewrap/template                   |  1 -
 srcpkgs/buffer/patches/musl-sem.patch         |  4 +-
 srcpkgs/buffer/template                       |  1 -
 srcpkgs/buildbot/patches/terse-irc.patch      |  4 +-
 srcpkgs/buildbot/template                     |  1 -
 .../patches/0001-Use-system-cacerts.patch     |  4 +-
 srcpkgs/buku/template                         |  1 -
 srcpkgs/bullet/patches/disableExample.patch   |  4 +-
 srcpkgs/bullet/patches/musl.patch             | 12 +--
 srcpkgs/bullet/template                       |  1 -
 .../patches/10-modprobe-replace-rmmod.patch   |  4 +-
 .../20-better-module-load-unload.patch        | 72 +++++++--------
 srcpkgs/bumblebee/template                    |  1 -
 srcpkgs/bup/patches/disable-git-call.patch    |  4 +-
 srcpkgs/bup/template                          |  1 -
 .../patches/tests-disable-failing.patch       |  4 +-
 srcpkgs/burp2-server/template                 |  1 -
 ...ss_gunzip-Fix-DoS-if-gzip-is-corrupt.patch |  4 +-
 .../patches/testsuite-fix-date-works.patch    |  4 +-
 srcpkgs/busybox/template                      |  1 -
 srcpkgs/bzflag/patches/NetHandler-musl.patch  |  4 +-
 srcpkgs/bzflag/patches/bzfs-musl.patch        |  4 +-
 srcpkgs/bzflag/template                       |  1 -
 srcpkgs/bzip2/patches/soname.patch            |  8 +-
 srcpkgs/bzip2/template                        |  1 -
 151 files changed, 462 insertions(+), 516 deletions(-)

diff --git a/srcpkgs/bacula-common/patches/fix-cross.patch b/srcpkgs/bacula-common/patches/fix-cross.patch
index f7e6f861708b..411fe468ac4b 100644
--- a/srcpkgs/bacula-common/patches/fix-cross.patch
+++ b/srcpkgs/bacula-common/patches/fix-cross.patch
@@ -1,5 +1,5 @@
---- configure	2016-09-29 15:59:30.000000000 +0200
-+++ configure	2017-02-14 01:48:10.874916913 +0100
+--- a/configure
++++ b/configure
 @@ -23873,6 +23873,14 @@
                   POSTGRESQL_LIBDIR=/usr/lib/postgresql
                fi
diff --git a/srcpkgs/bacula-common/patches/fix-musl.patch b/srcpkgs/bacula-common/patches/fix-musl.patch
index 4710bc9435a8..c3fc60b43ec0 100644
--- a/srcpkgs/bacula-common/patches/fix-musl.patch
+++ b/srcpkgs/bacula-common/patches/fix-musl.patch
@@ -1,5 +1,5 @@
---- src/findlib/fstype.c	2016-09-29 15:59:30.000000000 +0200
-+++ src/findlib/fstype.c	2017-02-19 19:24:02.050639457 +0100
+--- a/src/findlib/fstype.c
++++ b/src/findlib/fstype.c
 @@ -162,6 +162,9 @@
  
  #include <sys/vfs.h>
diff --git a/srcpkgs/bacula-common/template b/srcpkgs/bacula-common/template
index 9facbbf2efe2..04b89e171ad8 100644
--- a/srcpkgs/bacula-common/template
+++ b/srcpkgs/bacula-common/template
@@ -17,7 +17,6 @@ distfiles="${SOURCEFORGE_SITE}/bacula/bacula-${version}.tar.gz"
 checksum=a40d04d2c48135972cecb6578405e835c4b9d798c0950017de0fad40ca94e8a0
 alternatives="bacula-db-backend:/usr/lib/libbaccats-${version}.so:/usr/lib/libbaccats-sqlite3-${version}.so"
 shlib_provides="libbaccats-${version}.so"
-patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/balsa/patches/portability.patch b/srcpkgs/balsa/patches/portability.patch
index 9add8f86d3ad..e8125a8f9f59 100644
--- a/srcpkgs/balsa/patches/portability.patch
+++ b/srcpkgs/balsa/patches/portability.patch
@@ -1,5 +1,5 @@
---- libbalsa/misc.c.orig	2015-05-31 10:17:19.494312782 +0200
-+++ libbalsa/misc.c	2015-05-31 10:17:27.054393821 +0200
+--- a/libbalsa/misc.c
++++ b/libbalsa/misc.c
 @@ -34,6 +34,7 @@
  #include <stdio.h>
  #include <stdlib.h>
diff --git a/srcpkgs/balsa/template b/srcpkgs/balsa/template
index 5d3f410bf0b3..255ae0f226a5 100644
--- a/srcpkgs/balsa/template
+++ b/srcpkgs/balsa/template
@@ -15,4 +15,3 @@ license="GPL-2.0-or-later"
 homepage="https://pawsa.fedorapeople.org/balsa/"
 distfiles="https://pawsa.fedorapeople.org/balsa/balsa-${version}.tar.bz2"
 checksum=6441772cb5e1870f10c358c21f7e709da8cc0bfa6cc005ec744b9f1b00ea7df6
-patch_args=-Np0
diff --git a/srcpkgs/bananapi-uboot/patches/musl.patch b/srcpkgs/bananapi-uboot/patches/musl.patch
index 3efa59142c56..4cf7f03e24d5 100644
--- a/srcpkgs/bananapi-uboot/patches/musl.patch
+++ b/srcpkgs/bananapi-uboot/patches/musl.patch
@@ -1,5 +1,5 @@
---- include/image.h	2014-08-19 08:42:46.000000000 +0200
-+++ include/image.h	2020-09-15 10:43:48.410147914 +0200
+--- a/include/image.h
++++ b/include/image.h
 @@ -19,6 +19,11 @@
  #include "compiler.h"
  #include <asm/byteorder.h>
@@ -12,8 +12,8 @@
  /* Define this to avoid #ifdefs later on */
  struct lmb;
  
---- tools/mkimage.h	2014-08-19 08:42:46.000000000 +0200
-+++ tools/mkimage.h	2020-09-15 10:46:44.221140904 +0200
+--- a/tools/mkimage.h
++++ b/tools/mkimage.h
 @@ -22,6 +22,11 @@
  #include "fdt_host.h"
  #include "imagetool.h"
@@ -26,8 +26,8 @@
  #undef MKIMAGE_DEBUG
  
  #ifdef MKIMAGE_DEBUG
---- tools/proftool.c	2014-08-19 08:42:46.000000000 +0200
-+++ tools/proftool.c	2020-09-15 10:48:28.212136757 +0200
+--- a/tools/proftool.c
++++ b/tools/proftool.c
 @@ -20,6 +20,11 @@
  #include <compiler.h>
  #include <trace.h>
diff --git a/srcpkgs/bananapi-uboot/patches/no-inline-show_boot_progress.patch b/srcpkgs/bananapi-uboot/patches/no-inline-show_boot_progress.patch
index fd56762f7063..0a622bee76c8 100644
--- a/srcpkgs/bananapi-uboot/patches/no-inline-show_boot_progress.patch
+++ b/srcpkgs/bananapi-uboot/patches/no-inline-show_boot_progress.patch
@@ -1,5 +1,5 @@
---- common/main.c	2014-08-19 08:42:46.000000000 +0200
-+++ common/main.c	2020-09-15 09:39:04.675302769 +0200
+--- a/common/main.c
++++ b/common/main.c
 @@ -27,7 +27,7 @@
  /*
   * Board-specific Platform code can reimplement show_boot_progress () if needed
diff --git a/srcpkgs/bananapi-uboot/patches/no-inline-weak.patch b/srcpkgs/bananapi-uboot/patches/no-inline-weak.patch
index c18d52171baa..849927003191 100644
--- a/srcpkgs/bananapi-uboot/patches/no-inline-weak.patch
+++ b/srcpkgs/bananapi-uboot/patches/no-inline-weak.patch
@@ -1,5 +1,5 @@
---- common/board_f.c	2014-08-19 08:42:46.000000000 +0200
-+++ common/board_f.c	2020-09-15 09:40:56.739298301 +0200
+--- a/common/board_f.c
++++ b/common/board_f.c
 @@ -78,24 +78,24 @@
   ************************************************************************
   * May be supplied by boards if desired
diff --git a/srcpkgs/bananapi-uboot/patches/static-inline.patch b/srcpkgs/bananapi-uboot/patches/static-inline.patch
index 40546d7ed643..500a9a1c4183 100644
--- a/srcpkgs/bananapi-uboot/patches/static-inline.patch
+++ b/srcpkgs/bananapi-uboot/patches/static-inline.patch
@@ -1,5 +1,5 @@
---- arch/arm/include/asm/io.h	2014-08-19 08:42:46.000000000 +0200
-+++ arch/arm/include/asm/io.h	2020-09-15 09:36:28.791308985 +0200
+--- a/arch/arm/include/asm/io.h
++++ b/arch/arm/include/asm/io.h
 @@ -75,7 +75,7 @@
  #define __arch_putw(v,a)		(*(volatile unsigned short *)(a) = (v))
  #define __arch_putl(v,a)		(*(volatile unsigned int *)(a) = (v))
diff --git a/srcpkgs/bananapi-uboot/template b/srcpkgs/bananapi-uboot/template
index 80acf0c6e8fd..fabedf3d5978 100644
--- a/srcpkgs/bananapi-uboot/template
+++ b/srcpkgs/bananapi-uboot/template
@@ -10,7 +10,6 @@ license="GPL-2.0-only"
 homepage="https://github.com/hardkernel/u-boot"
 distfiles="https://github.com/Bananian/u-boot-bananapi/archive/bananian-v${version}.tar.gz"
 checksum=8be162b0b8e85d3fbc2e14af3b71c4a204f4a9c63f6f13275f86629624c1d6a6
-patch_args=-Np0
 
 conf_files="/boot/uEnv.txt"
 archs="armv7l*"
diff --git a/srcpkgs/basu/patches/uid-nobody.patch b/srcpkgs/basu/patches/uid-nobody.patch
index 27524c0f474d..894ad82c3777 100644
--- a/srcpkgs/basu/patches/uid-nobody.patch
+++ b/srcpkgs/basu/patches/uid-nobody.patch
@@ -1,5 +1,5 @@
---- src/basic/user-util.h
-+++ src/basic/user-util.h
+--- a/src/basic/user-util.h
++++ b/src/basic/user-util.h
 @@ -17,7 +17,7 @@ char* uid_to_name(uid_t uid);
  
  #define UID_INVALID ((uid_t) -1)
diff --git a/srcpkgs/basu/template b/srcpkgs/basu/template
index 0244cc11cc20..1a3614b781c3 100644
--- a/srcpkgs/basu/template
+++ b/srcpkgs/basu/template
@@ -11,7 +11,6 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/emersion/basu"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=e2fda9b69fc6c4530173fcf8db94c29aa5f3ed932d948cc6a31892623cde5e4b
-patch_args=-Np0
 
 basu-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/batctl14/patches/musl.patch b/srcpkgs/batctl14/patches/musl.patch
index caca06495029..0579519a188e 100644
--- a/srcpkgs/batctl14/patches/musl.patch
+++ b/srcpkgs/batctl14/patches/musl.patch
@@ -1,7 +1,7 @@
 Use POSIX instead of Linux fields. Glibc has both, musl only has POSIX.
 
---- ioctl.c
-+++ ioctl.c
+--- a/ioctl.c
++++ b/ioctl.c
 @@ -25,6 +25,7 @@
  #include <stdlib.h>
  #include <string.h>
@@ -10,8 +10,8 @@ Use POSIX instead of Linux fields. Glibc has both, musl only has POSIX.
  #include <sys/ioctl.h>
  #include <sys/socket.h>
  #include <linux/if.h>
---- ping.c
-+++ ping.c
+--- a/ping.c
++++ b/ping.c
 @@ -30,6 +30,7 @@
  #include <fcntl.h>
  #include <string.h>
@@ -20,8 +20,8 @@ Use POSIX instead of Linux fields. Glibc has both, musl only has POSIX.
  
  #include "main.h"
  #include "ping.h"
---- tcpdump.c
-+++ tcpdump.c
+--- a/tcpdump.c
++++ b/tcpdump.c
 @@ -36,6 +36,7 @@
  #include <netinet/udp.h>
  #include <netinet/ip_icmp.h>
@@ -82,8 +82,8 @@ Use POSIX instead of Linux fields. Glibc has both, musl only has POSIX.
  				(size_t)buff_len - (iphdr->ihl * 4) - sizeof(struct udphdr));
  			break;
  		}
---- traceroute.c
-+++ traceroute.c
+--- a/traceroute.c
++++ b/traceroute.c
 @@ -28,6 +28,7 @@
  #include <unistd.h>
  #include <fcntl.h>
diff --git a/srcpkgs/batctl14/template b/srcpkgs/batctl14/template
index 9fc5556c20f2..4ca1b15ed0ea 100644
--- a/srcpkgs/batctl14/template
+++ b/srcpkgs/batctl14/template
@@ -14,4 +14,3 @@ homepage="http://www.open-mesh.net/"
 distfiles="http://downloads.open-mesh.net/batman/releases/batman-adv-${version}/batctl-${version}.tar.gz"
 checksum=4deae3b6664d0d13acf7a8ece74175a31a72fe58fb15cb9112a9a2014b32cb4c
 conflicts="batctl>=0"
-patch_args=-Np0
diff --git a/srcpkgs/batman-adv14/patches/0001-fix-build.diff b/srcpkgs/batman-adv14/patches/0001-fix-build.diff
index ee8fc175a5ab..aaeeb2b56347 100644
--- a/srcpkgs/batman-adv14/patches/0001-fix-build.diff
+++ b/srcpkgs/batman-adv14/patches/0001-fix-build.diff
@@ -1,7 +1,7 @@
 diff --git a/Makefile.kbuild b/Makefile.kbuild
 index 489bb36..8ddbfe6 100644
---- Makefile.kbuild
-+++ Makefile.kbuild
+--- a/Makefile.kbuild
++++ b/Makefile.kbuild
 @@ -38,4 +38,3 @@ batman-adv-y += soft-interface.o
  batman-adv-y += sysfs.o
  batman-adv-y += translation-table.o
@@ -9,8 +9,8 @@ index 489bb36..8ddbfe6 100644
 -batman-adv-y += vis.o
 diff --git a/README b/README
 index c1d8204..4c20e91 100644
---- README
-+++ README
+--- a/README
++++ b/README
 @@ -1,3 +1,34 @@
 +BATMAN-ADV-LEGACY
 +-----------------
@@ -68,8 +68,8 @@ index c1d8204..4c20e91 100644
 +Matthias Schiffer <mschiffer@universe-factory.net>
 diff --git a/bat_iv_ogm.c b/bat_iv_ogm.c
 index 2031071..6407369 100644
---- bat_iv_ogm.c
-+++ bat_iv_ogm.c
+--- a/bat_iv_ogm.c
++++ b/bat_iv_ogm.c
 @@ -687,11 +687,10 @@ static void batadv_iv_ogm_schedule(struct batadv_hard_iface *hard_iface)
  	struct batadv_ogm_packet *batadv_ogm_packet;
  	struct batadv_hard_iface *primary_if;
@@ -97,8 +97,8 @@ index 2031071..6407369 100644
  	    atomic_read(&bat_priv->gw_mode) == BATADV_GW_MODE_SERVER) {
 diff --git a/compat.h b/compat.h
 index 3e11f89..0f07edb 100644
---- compat.h
-+++ compat.h
+--- a/compat.h
++++ b/compat.h
 @@ -258,7 +258,6 @@ static int batadv_interface_set_mac_addr(struct net_device *dev, void *p) \
  }\
  static int __batadv_interface_set_mac_addr(x, y)
@@ -176,8 +176,8 @@ index 3e11f89..0f07edb 100644
  #endif /* _NET_BATMAN_ADV_COMPAT_H_ */
 diff --git a/debugfs.c b/debugfs.c
 index f186a55..049a7a2 100644
---- debugfs.c
-+++ debugfs.c
+--- a/debugfs.c
++++ b/debugfs.c
 @@ -28,7 +28,6 @@
  #include "gateway_common.h"
  #include "gateway_client.h"
@@ -217,8 +217,8 @@ index f186a55..049a7a2 100644
  #endif
 diff --git a/gateway_client.c b/gateway_client.c
 index 7614af3..6958356 100644
---- gateway_client.c
-+++ gateway_client.c
+--- a/gateway_client.c
++++ b/gateway_client.c
 @@ -115,16 +115,12 @@ batadv_gw_get_best_gw_node(struct batadv_priv *bat_priv)
  {
  	struct batadv_neigh_node *router;
@@ -278,8 +278,8 @@ index 7614af3..6958356 100644
  	if (curr_gw)
 diff --git a/gateway_common.c b/gateway_common.c
 index 84bb2b1..bb3f667 100644
---- gateway_common.c
-+++ gateway_common.c
+--- a/gateway_common.c
++++ b/gateway_common.c
 @@ -87,10 +87,10 @@ static bool batadv_parse_gw_bandwidth(struct net_device *net_dev, char *buff,
  	if (strlen(buff) > 4) {
  		tmp_ptr = buff + strlen(buff) - 4;
@@ -308,8 +308,8 @@ index 84bb2b1..bb3f667 100644
  		}
 diff --git a/gen-compat-autoconf.sh b/gen-compat-autoconf.sh
 index 78573e4..c5a3f5d 100755
---- gen-compat-autoconf.sh
-+++ gen-compat-autoconf.sh
+--- a/gen-compat-autoconf.sh
++++ b/gen-compat-autoconf.sh
 @@ -5,7 +5,8 @@ set -e
  TARGET=${1:="compat-autoconf.h"}
  TMP="${TARGET}.tmp"
@@ -322,8 +322,8 @@ index 78573e4..c5a3f5d 100755
  	KEY="${1}"
 diff --git a/hard-interface.c b/hard-interface.c
 index c478e6b..5948c80 100644
---- hard-interface.c
-+++ hard-interface.c
+--- a/hard-interface.c
++++ b/hard-interface.c
 @@ -83,19 +83,18 @@ static bool batadv_is_on_batman_iface(const struct net_device *net_dev)
  		return true;
  
@@ -391,8 +391,8 @@ index c478e6b..5948c80 100644
  
 diff --git a/main.c b/main.c
 index c8e0671..a718d07 100644
---- main.c
-+++ main.c
+--- a/main.c
++++ b/main.c
 @@ -32,7 +32,6 @@
  #include "gateway_client.h"
  #include "bridge_loop_avoidance.h"
@@ -432,8 +432,8 @@ index c8e0671..a718d07 100644
  	batadv_dat_free(bat_priv);
 diff --git a/main.h b/main.h
 index 2c0c14d..06e8971 100644
---- main.h
-+++ main.h
+--- a/main.h
++++ b/main.h
 @@ -86,8 +86,6 @@
  /* numbers of originator to contact for any PUT/GET DHT operation */
  #define BATADV_DAT_CANDIDATES_NUM 3
@@ -479,8 +479,8 @@ index 2c0c14d..06e8971 100644
  		struct net_device *_netdev = (net_dev);                 \
 diff --git a/originator.c b/originator.c
 index f50553a..af1b427 100644
---- originator.c
-+++ originator.c
+--- a/originator.c
++++ b/originator.c
 @@ -147,8 +147,6 @@ static void batadv_orig_node_free_rcu(struct rcu_head *rcu)
  	batadv_nc_purge_orig(orig_node->bat_priv, orig_node, NULL);
  
@@ -510,8 +510,8 @@ index f50553a..af1b427 100644
  			}
 diff --git a/packet.h b/packet.h
 index a51ccfc..d12da01 100644
---- packet.h
-+++ packet.h
+--- a/packet.h
++++ b/packet.h
 @@ -53,7 +53,6 @@ enum batadv_subtype {
  enum batadv_iv_flags {
  	BATADV_NOT_BEST_NEXT_HOP   = BIT(3),
@@ -544,8 +544,8 @@ index a51ccfc..d12da01 100644
  	uint8_t  prev_sender[ETH_ALEN];
 diff --git a/routing.c b/routing.c
 index 2f0bd3f..f69a32c 100644
---- routing.c
-+++ routing.c
+--- a/routing.c
++++ b/routing.c
 @@ -25,7 +25,6 @@
  #include "icmp_socket.h"
  #include "translation-table.h"
@@ -695,8 +695,8 @@ index 2f0bd3f..f69a32c 100644
  }
 diff --git a/send.c b/send.c
 index e9ff8d8..fd42c65 100644
---- send.c
-+++ send.c
+--- a/send.c
++++ b/send.c
 @@ -24,11 +24,11 @@
  #include "translation-table.h"
  #include "soft-interface.h"
@@ -741,8 +741,8 @@ index e9ff8d8..fd42c65 100644
  		if (skb1)
 diff --git a/soft-interface.c b/soft-interface.c
 index 33b6144..3e3f81c 100644
---- soft-interface.c
-+++ soft-interface.c
+--- a/soft-interface.c
++++ b/soft-interface.c
 @@ -162,7 +162,7 @@ static int batadv_interface_tx(struct sk_buff *skb,
  	if (atomic_read(&bat_priv->mesh_state) != BATADV_MESH_ACTIVE)
  		goto dropped;
@@ -792,8 +792,8 @@ index 33b6144..3e3f81c 100644
  
 diff --git a/sysfs-class-net-batman-adv b/sysfs-class-net-batman-adv
 index bdc0070..88f6f70 100644
---- sysfs-class-net-batman-adv
-+++ sysfs-class-net-batman-adv
+--- a/sysfs-class-net-batman-adv
++++ b/sysfs-class-net-batman-adv
 @@ -13,3 +13,13 @@ Description:
                  displays the batman mesh interface this <iface>
                  currently is associated with.
@@ -810,8 +810,8 @@ index bdc0070..88f6f70 100644
 +                break your mesh network, use at your own risk!
 diff --git a/sysfs.c b/sysfs.c
 index 929e304..944209a 100644
---- sysfs.c
-+++ sysfs.c
+--- a/sysfs.c
++++ b/sysfs.c
 @@ -25,7 +25,6 @@
  #include "hard-interface.h"
  #include "gateway_common.h"
@@ -998,8 +998,8 @@ index 929e304..944209a 100644
  
 diff --git a/translation-table.c b/translation-table.c
 index 429aeef..9a8aab6 100644
---- translation-table.c
-+++ translation-table.c
+--- a/translation-table.c
++++ b/translation-table.c
 @@ -1487,6 +1487,19 @@ static uint16_t batadv_tt_local_crc(struct batadv_priv *bat_priv)
  	return total;
  }
@@ -1076,8 +1076,8 @@ index 429aeef..9a8aab6 100644
  
 diff --git a/types.h b/types.h
 index b2c94e1..b4d38e4 100644
---- types.h
-+++ types.h
+--- a/types.h
++++ b/types.h
 @@ -85,6 +85,7 @@ struct batadv_hard_iface {
  	struct rcu_head rcu;
  	struct batadv_hard_iface_bat_iv bat_iv;
@@ -1227,8 +1227,8 @@ index b2c94e1..b4d38e4 100644
 diff --git a/vis.c b/vis.c
 deleted file mode 100644
 index 4983340..0000000
---- vis.c
-+++ /dev/null
+--- a/vis.c
++++ b//dev/null
 @@ -1,936 +0,0 @@
 -/* Copyright (C) 2008-2013 B.A.T.M.A.N. contributors:
 - *
@@ -2169,8 +2169,8 @@ index 4983340..0000000
 diff --git a/vis.h b/vis.h
 deleted file mode 100644
 index ad92b0e..0000000
---- vis.h
-+++ /dev/null
+--- a/vis.h
++++ b//dev/null
 @@ -1,36 +0,0 @@
 -/* Copyright (C) 2008-2013 B.A.T.M.A.N. contributors:
 - *
diff --git a/srcpkgs/batman-adv14/template b/srcpkgs/batman-adv14/template
index a1776f121092..8fb35827056a 100644
--- a/srcpkgs/batman-adv14/template
+++ b/srcpkgs/batman-adv14/template
@@ -11,7 +11,6 @@ distfiles="http://downloads.open-mesh.org/batman/releases/batman-adv-${version}/
 checksum=a9b1b7542c94cc6bf7c97b7b0d02bf071b5632a64480ae419358b9cb9cab6870
 provides="batman-adv-${version}_${revision}"
 conflicts="batman-adv>=0"
-patch_args=-Np0
 
 dkms_modules="batman-adv14 ${version}"
 depends="dkms"
diff --git a/srcpkgs/bbkeys/patches/fix-cross.patch b/srcpkgs/bbkeys/patches/fix-cross.patch
index 48dcdac17ac9..e84f1ffd8910 100644
--- a/srcpkgs/bbkeys/patches/fix-cross.patch
+++ b/srcpkgs/bbkeys/patches/fix-cross.patch
@@ -1,5 +1,5 @@
---- src/Makefile.in.orig
-+++ src/Makefile.in
+--- a/src/Makefile.in.orig
++++ b/src/Makefile.in
 @@ -108,7 +108,6 @@
  	Netclient.$(OBJEXT) ScreenHandler.$(OBJEXT) window.$(OBJEXT) \
  	WindowlistMenu.$(OBJEXT)
@@ -26,8 +26,8 @@
  	@rm -f bbkeys$(EXEEXT)
  	$(AM_V_CXXLD)$(CXXLINK) $(bbkeys_OBJECTS) $(bbkeys_LDADD) $(LIBS)
  
---- src/Makefile.am.orig
-+++ src/Makefile.am
+--- a/src/Makefile.am.orig
++++ b/src/Makefile.am
 @@ -31,6 +31,5 @@
  	window.hh \
  	WindowlistMenu.cpp \
diff --git a/srcpkgs/bbkeys/template b/srcpkgs/bbkeys/template
index 40ae05dec712..a9a52c11007a 100644
--- a/srcpkgs/bbkeys/template
+++ b/srcpkgs/bbkeys/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="https://github.com/bbidulock/bbkeys"
 distfiles="${homepage}/releases/download/rel-${version//.}/bbkeys-${version}.tar.lz"
 checksum=ece0113b2cc6367e2cad95f59cf43d7576b5a1a7eb8a9e3f10ce9814db67b95c
-patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/bbswitch/patches/0001-Use-proc_ops-structure-for-kernel-version-5.6.0.patch b/srcpkgs/bbswitch/patches/0001-Use-proc_ops-structure-for-kernel-version-5.6.0.patch
index 6c758c00aa90..bb13cea2bcdb 100644
--- a/srcpkgs/bbswitch/patches/0001-Use-proc_ops-structure-for-kernel-version-5.6.0.patch
+++ b/srcpkgs/bbswitch/patches/0001-Use-proc_ops-structure-for-kernel-version-5.6.0.patch
@@ -15,8 +15,8 @@ https://github.com/torvalds/linux/commit/d56c0d45f0e27f814e87a1676b6bdccccbc252e
 
 diff --git bbswitch.c bbswitch.c
 index 228d722..4ce9aae 100644
---- bbswitch.c
-+++ bbswitch.c
+--- a/bbswitch.c
++++ b/bbswitch.c
 @@ -35,6 +35,7 @@
  #include <linux/suspend.h>
  #include <linux/seq_file.h>
diff --git a/srcpkgs/bbswitch/patches/0002-Add-missing-proc_fs.h-header.patch b/srcpkgs/bbswitch/patches/0002-Add-missing-proc_fs.h-header.patch
index 4a51358ec062..37a27a6838dd 100644
--- a/srcpkgs/bbswitch/patches/0002-Add-missing-proc_fs.h-header.patch
+++ b/srcpkgs/bbswitch/patches/0002-Add-missing-proc_fs.h-header.patch
@@ -13,8 +13,8 @@ Required for 'struct proc_ops' since v5.7-rc1 with commit df23e2be3d24
 
 diff --git bbswitch.c bbswitch.c
 index 4ce9aae..c0c6713 100644
---- bbswitch.c
-+++ bbswitch.c
+--- a/bbswitch.c
++++ b/bbswitch.c
 @@ -35,6 +35,7 @@
  #include <linux/suspend.h>
  #include <linux/seq_file.h>
diff --git a/srcpkgs/bbswitch/template b/srcpkgs/bbswitch/template
index 049ba73bc327..4dc9d3235e60 100644
--- a/srcpkgs/bbswitch/template
+++ b/srcpkgs/bbswitch/template
@@ -11,7 +11,6 @@ homepage="http://github.com/Bumblebee-Project/bbswitch"
 distfiles="https://github.com/Bumblebee-Project/bbswitch/archive/v$version.tar.gz"
 checksum=76cabd3f734fb4fe6ebfe3ec9814138d0d6f47d47238521ecbd6a986b60d1477
 dkms_modules="${pkgname} ${version}"
-patch_args=-Np0
 
 do_install() {
 	vinstall Makefile 644 usr/src/${pkgname}-${version}
diff --git a/srcpkgs/bc/patches/read.patch b/srcpkgs/bc/patches/read.patch
index f45a2b0d2b7b..ce3dfa5d9b86 100644
--- a/srcpkgs/bc/patches/read.patch
+++ b/srcpkgs/bc/patches/read.patch
@@ -1,5 +1,5 @@
---- bc/execute.c
-+++ bc/execute.c
+--- a/bc/execute.c
++++ b/bc/execute.c
 @@ -638,19 +638,19 @@ push_constant (int (*in_char)(VOID), int conv_base)
        }
  
diff --git a/srcpkgs/bc/template b/srcpkgs/bc/template
index bff25a4c64e9..c6ca1b7d899a 100644
--- a/srcpkgs/bc/template
+++ b/srcpkgs/bc/template
@@ -18,7 +18,6 @@ alternatives="
  dc:dc:/usr/bin/gnu-dc
  dc:dc.1:/usr/share/man/man1/gnu-dc.1"
 disable_parallel_build=yes
-patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" bc"
diff --git a/srcpkgs/bcc/patches/musl.patch b/srcpkgs/bcc/patches/musl.patch
index bc7ac1e77261..963d7c12170d 100644
--- a/srcpkgs/bcc/patches/musl.patch
+++ b/srcpkgs/bcc/patches/musl.patch
@@ -1,5 +1,5 @@
---- src/cc/api/BPFTable.cc.orig
-+++ src/cc/api/BPFTable.cc
+--- a/src/cc/api/BPFTable.cc.orig
++++ b/src/cc/api/BPFTable.cc
 @@ -14,6 +14,7 @@
   * limitations under the License.
   */
@@ -8,8 +8,8 @@
  #include <fcntl.h>
  #include <linux/elf.h>
  #include <linux/perf_event.h>
---- src/cc/api/BPF.cc.orig
-+++ src/cc/api/BPF.cc
+--- a/src/cc/api/BPF.cc.orig
++++ b/src/cc/api/BPF.cc
 @@ -14,6 +14,7 @@
   * limitations under the License.
   */
@@ -18,8 +18,8 @@
  #include <linux/bpf.h>
  #include <linux/perf_event.h>
  #include <unistd.h>
---- src/cc/perf_reader.c.orig
-+++ src/cc/perf_reader.c
+--- a/src/cc/perf_reader.c.orig
++++ b/src/cc/perf_reader.c
 @@ -14,6 +14,7 @@
   * limitations under the License.
   */
@@ -28,8 +28,8 @@
  #include <inttypes.h>
  #include <poll.h>
  #include <stdio.h>
---- src/cc/libbpf/src/libbpf.c.orig
-+++ src/cc/libbpf/src/libbpf.c
+--- a/src/cc/libbpf/src/libbpf.c.orig
++++ b/src/cc/libbpf/src/libbpf.c
 @@ -12,6 +12,7 @@
  #ifndef _GNU_SOURCE
  #define _GNU_SOURCE
@@ -38,8 +38,8 @@
  #include <stdlib.h>
  #include <stdio.h>
  #include <stdarg.h>
---- src/cc/libbpf.c.orig
-+++ src/cc/libbpf.c
+--- a/src/cc/libbpf.c.orig
++++ b/src/cc/libbpf.c
 @@ -17,6 +17,7 @@
  #define _GNU_SOURCE
  #endif
diff --git a/srcpkgs/bcc/template b/srcpkgs/bcc/template
index 091ad9473a2d..cbdb9de0abcf 100644
--- a/srcpkgs/bcc/template
+++ b/srcpkgs/bcc/template
@@ -15,7 +15,6 @@ homepage="https://github.com/iovisor/bcc"
 distfiles="https://github.com/iovisor/bcc/releases/download/v${version}/bcc-src-with-submodule.tar.gz"
 checksum=93edc925675262aa509f5eaf146f2fc7dfa3e01d1b0336a5de01ee6d72fa493b
 python_version="3"
-patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/bctoolbox/patches/cmake-bcunit-fix.patch b/srcpkgs/bctoolbox/patches/cmake-bcunit-fix.patch
index 2a67c9a4c111..ef883d569068 100644
--- a/srcpkgs/bctoolbox/patches/cmake-bcunit-fix.patch
+++ b/srcpkgs/bctoolbox/patches/cmake-bcunit-fix.patch
@@ -1,7 +1,7 @@
 diff --git CMakeLists.txt CMakeLists.txt
 index 6828b3f..b41262f 100644
---- CMakeLists.txt
-+++ CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
 @@ -106,14 +106,9 @@ if(POLARSSL_FOUND)
  endif()
  
diff --git a/srcpkgs/bctoolbox/template b/srcpkgs/bctoolbox/template
index f308b6874143..4de00e55e201 100644
--- a/srcpkgs/bctoolbox/template
+++ b/srcpkgs/bctoolbox/template
@@ -12,7 +12,6 @@ license="GPL-2.0-only"
 homepage="https://gitlab.linphone.org/BC/public/bctoolbox"
 distfiles="https://gitlab.linphone.org/BC/public/bctoolbox/-/archive/${version}/bctoolbox-${version}.tar.gz"
 checksum=1364d5f42b5514546b9c6654c227804ff92cf9cf13fdc7cb6ca666e3bb5a7987
-patch_args=-Np0
 
 bctoolbox-devel_package() {
 	depends="bctoolbox-${version}_${revision}"
diff --git a/srcpkgs/beep/patches/CVE-2018-0492.patch b/srcpkgs/beep/patches/CVE-2018-0492.patch
index fd0a771d53f9..c3c20ab624dc 100644
--- a/srcpkgs/beep/patches/CVE-2018-0492.patch
+++ b/srcpkgs/beep/patches/CVE-2018-0492.patch
@@ -1,5 +1,5 @@
---- beep.c
-+++ beep.c
+--- a/beep.c
++++ b/beep.c
 @@ -109,6 +109,7 @@ void do_beep(int freq) {
       /* BEEP_TYPE_EVDEV */
       struct input_event e;
diff --git a/srcpkgs/beep/template b/srcpkgs/beep/template
index 3be4bf6147f3..0f3c10d9781f 100644
--- a/srcpkgs/beep/template
+++ b/srcpkgs/beep/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="http://www.johnath.com/beep/"
 distfiles="http://www.johnath.com/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=59acef7a987de5557cefd1a904666cc2691f132929af39e65450b182a581ec2d
-patch_args=-Np0
 
 post_extract() {
 	rm -f Makefile
diff --git a/srcpkgs/beets/patches/python-3.8.patch b/srcpkgs/beets/patches/python-3.8.patch
index 423f25985b20..fc394e59ba00 100644
--- a/srcpkgs/beets/patches/python-3.8.patch
+++ b/srcpkgs/beets/patches/python-3.8.patch
@@ -13,8 +13,8 @@ In fact, our generation of some Literals has been invalid since Python
 
 diff --git beets/util/functemplate.py beets/util/functemplate.py
 index af22b79082..266534a9b4 100644
---- beets/util/functemplate.py
-+++ beets/util/functemplate.py
+--- a/beets/util/functemplate.py
++++ b/beets/util/functemplate.py
 @@ -73,15 +73,26 @@ def ex_literal(val):
      """An int, float, long, bool, string, or None literal with the given
      value.
diff --git a/srcpkgs/beets/template b/srcpkgs/beets/template
index 60e86df7539f..8dfb44bf88ad 100644
--- a/srcpkgs/beets/template
+++ b/srcpkgs/beets/template
@@ -17,7 +17,6 @@ license="MIT"
 homepage="http://beets.radbox.org/"
 distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=d29b432cab0c80947b5229f548762948c4dd4a430e5d02760bfeb95da3cc8054
-patch_args=-Np0
 
 post_install() {
 	vman man/beet.1
diff --git a/srcpkgs/beignet/patches/cl_uint.patch b/srcpkgs/beignet/patches/cl_uint.patch
index 27f247cf009c..2aaec308b28a 100644
--- a/srcpkgs/beignet/patches/cl_uint.patch
+++ b/srcpkgs/beignet/patches/cl_uint.patch
@@ -1,5 +1,5 @@
---- src/cl_api_kernel.c	2017-09-22 10:05:22.000000000 +0200
-+++ src/cl_api_kernel.c	2020-03-24 18:27:40.186485887 +0100
+--- a/src/cl_api_kernel.c
++++ b/src/cl_api_kernel.c
 @@ -151,7 +151,7 @@
          fixed_local_sz[0] = 16;
          fixed_local_sz[1] = 1;
@@ -9,8 +9,8 @@
          size_t realGroupSize = 1;
          for (i = 0; i < work_dim; i++) {
            for (j = maxDimSize; j > 1; j--) {
---- src/cl_enqueue.c	2017-09-22 10:05:22.000000000 +0200
-+++ src/cl_enqueue.c	2020-03-24 18:30:12.031479833 +0100
+--- a/src/cl_enqueue.c
++++ b/src/cl_enqueue.c
 @@ -494,7 +494,7 @@
  cl_int cl_enqueue_svm_free(enqueue_data *data, cl_int status) {
    int i;
diff --git a/srcpkgs/beignet/patches/e1b2419a0008e38ef2d9d255d9e9c74e9fba084b.patch b/srcpkgs/beignet/patches/e1b2419a0008e38ef2d9d255d9e9c74e9fba084b.patch
index 36cdef7208ca..8de9e6e2f093 100644
--- a/srcpkgs/beignet/patches/e1b2419a0008e38ef2d9d255d9e9c74e9fba084b.patch
+++ b/srcpkgs/beignet/patches/e1b2419a0008e38ef2d9d255d9e9c74e9fba084b.patch
@@ -26,8 +26,8 @@ Reviewed-by: Yang Rong <rong.r.yang@intel.com>
 
 diff --git a/CMake/FindLLVM.cmake b/CMake/FindLLVM.cmake
 index 5457f24..f882589 100644
---- CMake/FindLLVM.cmake
-+++ CMake/FindLLVM.cmake
+--- a/CMake/FindLLVM.cmake
++++ b/CMake/FindLLVM.cmake
 @@ -113,10 +113,10 @@ macro(add_one_lib name)
  endmacro()
  
@@ -42,8 +42,8 @@ index 5457f24..f882589 100644
  add_one_lib("clangStaticAnalyzerCheckers")
 diff --git a/backend/src/backend/gen_program.cpp b/backend/src/backend/gen_program.cpp
 index 274c99c..4159234 100644
---- backend/src/backend/gen_program.cpp
-+++ backend/src/backend/gen_program.cpp
+--- a/backend/src/backend/gen_program.cpp
++++ b/backend/src/backend/gen_program.cpp
 @@ -454,7 +454,11 @@ namespace gbe {
  #ifdef GBE_COMPILER_AVAILABLE
        std::string str;
@@ -70,8 +70,8 @@ index 274c99c..4159234 100644
        if (LLVMLinkModules(wrap(dst), wrap(src), LLVMLinkerPreserveSource_Removed, &errMsg)) {
 diff --git a/backend/src/backend/program.cpp b/backend/src/backend/program.cpp
 index c37c595..b36f7b4 100644
---- backend/src/backend/program.cpp
-+++ backend/src/backend/program.cpp
+--- a/backend/src/backend/program.cpp
++++ b/backend/src/backend/program.cpp
 @@ -794,7 +794,11 @@ namespace gbe {
        llvm::raw_fd_ostream ostream (dumpSPIRBinaryName.c_str(),
                                      err, llvm::sys::fs::F_None);
@@ -86,8 +86,8 @@ index c37c595..b36f7b4 100644
      return true;
 diff --git a/backend/src/llvm/ExpandLargeIntegers.cpp b/backend/src/llvm/ExpandLargeIntegers.cpp
 index 8515dc1..4aec44e 100644
---- backend/src/llvm/ExpandLargeIntegers.cpp
-+++ backend/src/llvm/ExpandLargeIntegers.cpp
+--- a/backend/src/llvm/ExpandLargeIntegers.cpp
++++ b/backend/src/llvm/ExpandLargeIntegers.cpp
 @@ -99,8 +99,8 @@ using namespace llvm;
  
  #ifdef DEBUG
@@ -100,8 +100,8 @@ index 8515dc1..4aec44e 100644
  static const unsigned kChunkBytes = kChunkBits / CHAR_BIT;
 diff --git a/backend/src/llvm/llvm_bitcode_link.cpp b/backend/src/llvm/llvm_bitcode_link.cpp
 index ef56e4c..4c3e20e 100644
---- backend/src/llvm/llvm_bitcode_link.cpp
-+++ backend/src/llvm/llvm_bitcode_link.cpp
+--- a/backend/src/llvm/llvm_bitcode_link.cpp
++++ b/backend/src/llvm/llvm_bitcode_link.cpp
 @@ -340,7 +340,11 @@ namespace gbe
      /* We use beignet's bitcode as dst because it will have a lot of
         lazy functions which will not be loaded. */
@@ -116,8 +116,8 @@ index ef56e4c..4c3e20e 100644
      char* errorMsg;
 diff --git a/backend/src/llvm/llvm_includes.hpp b/backend/src/llvm/llvm_includes.hpp
 index 184553a..ffccf02 100644
---- backend/src/llvm/llvm_includes.hpp
-+++ backend/src/llvm/llvm_includes.hpp
+--- a/backend/src/llvm/llvm_includes.hpp
++++ b/backend/src/llvm/llvm_includes.hpp
 @@ -89,6 +89,10 @@
  #include "llvm/CodeGen/IntrinsicLowering.h"
  
diff --git a/srcpkgs/beignet/patches/llvm06.patch b/srcpkgs/beignet/patches/llvm06.patch
index ebd142ac098a..46cb414c451c 100644
--- a/srcpkgs/beignet/patches/llvm06.patch
+++ b/srcpkgs/beignet/patches/llvm06.patch
@@ -2,8 +2,8 @@ Source: Arch Linux
 Upstream: unknown
 Reason: fixes llvm6 compilation
 
---- backend/src/llvm/llvm_to_gen.cpp	2017-10-24 09:04:48.000000000 +0300
-+++ backend/src/llvm/llvm_to_gen.cpp	2018-03-16 16:08:54.669963824 +0200
+--- a/backend/src/llvm/llvm_to_gen.cpp
++++ b/backend/src/llvm/llvm_to_gen.cpp
 @@ -322,7 +322,11 @@ namespace gbe
      DataLayout DL(&mod);
      
@@ -16,8 +16,8 @@ Reason: fixes llvm6 compilation
  
  #if LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 37
      mod.setDataLayout(DL);
---- backend/src/llvm/llvm_unroll.cpp	2017-10-24 09:04:48.000000000 +0300
-+++ backend/src/llvm/llvm_unroll.cpp	2018-03-16 16:09:47.736403557 +0200
+--- a/backend/src/llvm/llvm_unroll.cpp
++++ b/backend/src/llvm/llvm_unroll.cpp
 @@ -205,7 +205,9 @@ namespace gbe {
            if (parentTripCount != 0 && currTripCount * parentTripCount > 32) {
              //Don't change the unrollID if doesn't force unroll.
diff --git a/srcpkgs/beignet/patches/llvm08.patch b/srcpkgs/beignet/patches/llvm08.patch
index 15128d1a1151..32a1e1d3bc26 100644
--- a/srcpkgs/beignet/patches/llvm08.patch
+++ b/srcpkgs/beignet/patches/llvm08.patch
@@ -19,8 +19,8 @@ backend/src/llvm/llvm_gen_backend.cpp:3083:5: error:
     TerminatorInst *term = bb->getTerminator();
     ^
 
---- backend/src/CMakeLists.txt.orig	2017-09-22 08:05:22 UTC
-+++ backend/src/CMakeLists.txt
+--- a/backend/src/CMakeLists.txt
++++ b/backend/src/CMakeLists.txt
 @@ -168,6 +168,7 @@ add_dependencies(gbe beignet_bitcode)
  endif (NOT (USE_STANDALONE_GBE_COMPILER STREQUAL "true"))
  
@@ -29,8 +29,8 @@ backend/src/llvm/llvm_gen_backend.cpp:3083:5: error:
  
  if (LLVM_VERSION_NODOT VERSION_EQUAL 34)
    find_library(TERMINFO NAMES tinfo ncurses)
---- backend/src/llvm/llvm_gen_backend.cpp.orig	2017-10-24 06:04:48 UTC
-+++ backend/src/llvm/llvm_gen_backend.cpp
+--- a/backend/src/llvm/llvm_gen_backend.cpp
++++ b/backend/src/llvm/llvm_gen_backend.cpp
 @@ -3073,14 +3073,22 @@ namespace gbe
  
  
diff --git a/srcpkgs/beignet/patches/llvm09.patch b/srcpkgs/beignet/patches/llvm09.patch
index bff503800b01..f3130e13f724 100644
--- a/srcpkgs/beignet/patches/llvm09.patch
+++ b/srcpkgs/beignet/patches/llvm09.patch
@@ -3,8 +3,8 @@ Source: FreeBSD + q66
 Mostly FreeBSD other than FindLLVM.cmake changes.
 Linking against clang-cpp does not work for us.
 
---- CMake/FindLLVM.cmake
-+++ CMake/FindLLVM.cmake
+--- a/CMake/FindLLVM.cmake
++++ b/CMake/FindLLVM.cmake
 @@ -140,6 +140,7 @@ add_one_lib("clangStaticAnalyzerCore")
  add_one_lib("clangAnalysis")
  add_one_lib("clangEdit")
@@ -13,8 +13,8 @@ Linking against clang-cpp does not work for us.
  add_one_lib("clangParse")
  add_one_lib("clangSema")
  add_one_lib("clangLex")
---- backend/src/llvm/llvm_intrinsic_lowering.cpp.orig	2017-10-24 06:04:48 UTC
-+++ backend/src/llvm/llvm_intrinsic_lowering.cpp
+--- a/backend/src/llvm/llvm_intrinsic_lowering.cpp
++++ b/backend/src/llvm/llvm_intrinsic_lowering.cpp
 @@ -77,7 +77,11 @@ namespace gbe {
          std::vector<Type *> ParamTys;
          for (Value** I = ArgBegin; I != ArgEnd; ++I)
@@ -27,8 +27,8 @@ Linking against clang-cpp does not work for us.
                                          FunctionType::get(RetTy, ParamTys, false));
  
          IRBuilder<> Builder(CI->getParent(), BasicBlock::iterator(CI));
---- backend/src/llvm/llvm_sampler_fix.cpp.orig	2017-10-24 06:04:48 UTC
-+++ backend/src/llvm/llvm_sampler_fix.cpp
+--- a/backend/src/llvm/llvm_sampler_fix.cpp
++++ b/backend/src/llvm/llvm_sampler_fix.cpp
 @@ -82,7 +82,11 @@ namespace gbe {
  #if LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 40
            Module *M = I->getParent()->getParent()->getParent();
@@ -53,8 +53,8 @@ Linking against clang-cpp does not work for us.
  #else
            Value* samplerCvt = M->getOrInsertFunction("__gen_ocl_sampler_to_int", i32Ty, I->getOperand(0)->getType(), nullptr);
  #endif
---- backend/src/llvm/llvm_profiling.cpp.orig	2017-10-24 06:04:48 UTC
-+++ backend/src/llvm/llvm_profiling.cpp
+--- a/backend/src/llvm/llvm_profiling.cpp
++++ b/backend/src/llvm/llvm_profiling.cpp
 @@ -163,10 +163,18 @@ namespace gbe
        // __gen_ocl_store_timestamp(int nth, int type);
        Value *Args[2] = {ConstantInt::get(intTy, pointNum++), ConstantInt::get(intTy, profilingType)};
@@ -93,8 +93,8 @@ Linking against clang-cpp does not work for us.
              ArrayRef<Value*>(Args2));
  #else
      builder->CreateCall(cast<llvm::Function>(module->getOrInsertFunction(
---- backend/src/llvm/llvm_device_enqueue.cpp.orig	2017-10-24 06:04:48 UTC
-+++ backend/src/llvm/llvm_device_enqueue.cpp
+--- a/backend/src/llvm/llvm_device_enqueue.cpp
++++ b/backend/src/llvm/llvm_device_enqueue.cpp
 @@ -398,8 +398,13 @@ namespace gbe {
                std::vector<Type *> ParamTys;
                for (Value** iter = args.begin(); iter != args.end(); ++iter)
diff --git a/srcpkgs/beignet/patches/llvm10.patch b/srcpkgs/beignet/patches/llvm10.patch
index 9a6cc5a8e8f8..8aafe48a240d 100644
--- a/srcpkgs/beignet/patches/llvm10.patch
+++ b/srcpkgs/beignet/patches/llvm10.patch
@@ -1,7 +1,7 @@
 diff --git CMake/FindLLVM.cmake CMake/FindLLVM.cmake
 index 0a59e47..6e90923 100644
---- CMake/FindLLVM.cmake
-+++ CMake/FindLLVM.cmake
+--- a/CMake/FindLLVM.cmake
++++ b/CMake/FindLLVM.cmake
 @@ -104,28 +104,16 @@ string(REGEX REPLACE " *\n" "" LLVM_SYSTEM_LIBS ${LLVM_SYSTEM_LIBS_ORIG})
  endif (LLVM_SYSTEM_LIBS_ORIG)
  endif (LLVM_VERSION_NODOT VERSION_GREATER 34)
@@ -38,8 +38,8 @@ index 0a59e47..6e90923 100644
 +add_one_lib("clang-cpp")
 diff --git CMakeLists.txt CMakeLists.txt
 index c11acbb..08f427d 100644
---- CMakeLists.txt
-+++ CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
 @@ -79,7 +79,7 @@ elseif (COMPILER STREQUAL "CLANG")
  elseif (COMPILER STREQUAL "ICC")
    set (CMAKE_C_CXX_FLAGS "${CMAKE_C_CXX_FLAGS}  -wd2928 -Wall -fPIC -fstrict-aliasing -fp-model fast -msse4.1 -Wl,-E")
@@ -51,8 +51,8 @@ index c11acbb..08f427d 100644
  set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -DGBE_DEBUG=1")
 diff --git backend/src/backend/program.cpp backend/src/backend/program.cpp
 index b36f7b4..e666031 100644
---- backend/src/backend/program.cpp
-+++ backend/src/backend/program.cpp
+--- a/backend/src/backend/program.cpp
++++ b/backend/src/backend/program.cpp
 @@ -694,9 +694,9 @@ namespace gbe {
  #endif
                  );
@@ -77,8 +77,8 @@ index b36f7b4..e666031 100644
  #endif
 diff --git backend/src/llvm/llvm_gen_backend.cpp backend/src/llvm/llvm_gen_backend.cpp
 index c6fc30d..82441d8 100644
---- backend/src/llvm/llvm_gen_backend.cpp
-+++ backend/src/llvm/llvm_gen_backend.cpp
+--- a/backend/src/llvm/llvm_gen_backend.cpp
++++ b/backend/src/llvm/llvm_gen_backend.cpp
 @@ -575,10 +575,12 @@ namespace gbe
          has_errors(false),
          legacyMode(true)
@@ -94,8 +94,8 @@ index c6fc30d..82441d8 100644
      }
 diff --git backend/src/llvm/llvm_gen_backend.hpp backend/src/llvm/llvm_gen_backend.hpp
 index b4715b1..8e74f7a 100644
---- backend/src/llvm/llvm_gen_backend.hpp
-+++ backend/src/llvm/llvm_gen_backend.hpp
+--- a/backend/src/llvm/llvm_gen_backend.hpp
++++ b/backend/src/llvm/llvm_gen_backend.hpp
 @@ -130,10 +130,10 @@ namespace gbe
    llvm::FunctionPass *createGenPass(ir::Unit &unit);
  
@@ -120,8 +120,8 @@ index b4715b1..8e74f7a 100644
    llvm::FunctionPass* createPrintfParserPass(ir::Unit &unit);
 diff --git backend/src/llvm/llvm_intrinsic_lowering.cpp backend/src/llvm/llvm_intrinsic_lowering.cpp
 index 94f0ce6..b5539e9 100644
---- backend/src/llvm/llvm_intrinsic_lowering.cpp
-+++ backend/src/llvm/llvm_intrinsic_lowering.cpp
+--- a/backend/src/llvm/llvm_intrinsic_lowering.cpp
++++ b/backend/src/llvm/llvm_intrinsic_lowering.cpp
 @@ -29,12 +29,12 @@
  using namespace llvm;
  
@@ -168,8 +168,8 @@ index 94f0ce6..b5539e9 100644
  } // end namespace
 diff --git backend/src/llvm/llvm_loadstore_optimization.cpp backend/src/llvm/llvm_loadstore_optimization.cpp
 index 5aa38be..e314302 100644
---- backend/src/llvm/llvm_loadstore_optimization.cpp
-+++ backend/src/llvm/llvm_loadstore_optimization.cpp
+--- a/backend/src/llvm/llvm_loadstore_optimization.cpp
++++ b/backend/src/llvm/llvm_loadstore_optimization.cpp
 @@ -26,13 +26,13 @@
  
  using namespace llvm;
@@ -237,8 +237,8 @@ index 5aa38be..e314302 100644
  };
 diff --git backend/src/llvm/llvm_passes.cpp backend/src/llvm/llvm_passes.cpp
 index 10752a3..b8f2282 100644
---- backend/src/llvm/llvm_passes.cpp
-+++ backend/src/llvm/llvm_passes.cpp
+--- a/backend/src/llvm/llvm_passes.cpp
++++ b/backend/src/llvm/llvm_passes.cpp
 @@ -37,7 +37,7 @@
  #include "sys/map.hpp"
  
@@ -298,8 +298,8 @@ index 10752a3..b8f2282 100644
  } /* namespace gbe */
 diff --git backend/src/llvm/llvm_sampler_fix.cpp backend/src/llvm/llvm_sampler_fix.cpp
 index 2a097c8..863be6d 100644
---- backend/src/llvm/llvm_sampler_fix.cpp
-+++ backend/src/llvm/llvm_sampler_fix.cpp
+--- a/backend/src/llvm/llvm_sampler_fix.cpp
++++ b/backend/src/llvm/llvm_sampler_fix.cpp
 @@ -33,10 +33,12 @@ namespace gbe {
    class SamplerFix : public FunctionPass {
    public:
@@ -315,8 +315,8 @@ index 2a097c8..863be6d 100644
  
 diff --git backend/src/llvm/llvm_scalarize.cpp backend/src/llvm/llvm_scalarize.cpp
 index e9a2a66..e9d2ee4 100644
---- backend/src/llvm/llvm_scalarize.cpp
-+++ backend/src/llvm/llvm_scalarize.cpp
+--- a/backend/src/llvm/llvm_scalarize.cpp
++++ b/backend/src/llvm/llvm_scalarize.cpp
 @@ -96,10 +96,12 @@ namespace gbe {
  
      Scalarize() : FunctionPass(ID)
@@ -332,8 +332,8 @@ index e9a2a66..e9d2ee4 100644
  
 diff --git utests/CMakeLists.txt utests/CMakeLists.txt
 index 300d87a..64179c7 100644
---- utests/CMakeLists.txt
-+++ utests/CMakeLists.txt
+--- a/utests/CMakeLists.txt
++++ b/utests/CMakeLists.txt
 @@ -26,8 +26,8 @@ if (NOT NOT_BUILD_STAND_ALONE_UTEST)
    # Threads
    Find_Package(Threads)
diff --git a/srcpkgs/beignet/patches/llvm11.patch b/srcpkgs/beignet/patches/llvm11.patch
index 9f3282676986..1262d17a0f2f 100644
--- a/srcpkgs/beignet/patches/llvm11.patch
+++ b/srcpkgs/beignet/patches/llvm11.patch
@@ -7,8 +7,8 @@ There were a few changes required for LLVM 11:
 * CallInst::getCalledValue() was renamed to CallInst::getCalledOperand()
 * Implicit conversion from MaybeAlign to Align was removed, so MaybeAlign::valueOrOne was used instead.
 
---- backend/src/llvm/StripAttributes.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/StripAttributes.cpp	2020-11-09 19:04:19.641897141 +0100
+--- a/backend/src/llvm/StripAttributes.cpp
++++ b/backend/src/llvm/StripAttributes.cpp
 @@ -107,9 +107,8 @@
         BB != E; ++BB) {
      for (BasicBlock::iterator Inst = BB->begin(), E = BB->end();
@@ -21,8 +21,8 @@ There were a few changes required for LLVM 11:
      }
    }
 
---- backend/src/llvm/llvm_bitcode_link.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_bitcode_link.cpp	2020-11-09 17:04:09.633753428 +0100
+--- a/backend/src/llvm/llvm_bitcode_link.cpp
++++ b/backend/src/llvm/llvm_bitcode_link.cpp
 @@ -98,7 +98,7 @@
          if (callFunc && callFunc->getIntrinsicID() != 0)
            continue;
@@ -32,8 +32,8 @@ There were a few changes required for LLVM 11:
 
          if (!MFS.insert(fnName).second) {
            continue;
---- backend/src/llvm/llvm_device_enqueue.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_device_enqueue.cpp	2020-11-09 19:01:49.201915008 +0100
+--- a/backend/src/llvm/llvm_device_enqueue.cpp
++++ b/backend/src/llvm/llvm_device_enqueue.cpp
 @@ -45,7 +45,7 @@
        return NULL;
 
@@ -119,8 +119,8 @@ There were a few changes required for LLVM 11:
                  }
                }
              } else if(isa<AllocaInst>(block)) {
---- backend/src/llvm/llvm_gen_backend.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_gen_backend.cpp	2020-11-09 18:33:50.919114327 +0100
+--- a/backend/src/llvm/llvm_gen_backend.cpp
++++ b/backend/src/llvm/llvm_gen_backend.cpp
 @@ -376,7 +376,7 @@
            GBE_ASSERT(index == 0);
            return this->_newScalar(value, key, type, index, uniform);
@@ -725,8 +725,8 @@ There were a few changes required for LLVM 11:
            case GEN_OCL_GET_PIPE:
            case GEN_OCL_MAKE_RID:
            case GEN_OCL_GET_RID:
---- backend/src/llvm/llvm_includes.hpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_includes.hpp	2020-11-09 19:00:09.955926795 +0100
+--- a/backend/src/llvm/llvm_includes.hpp
++++ b/backend/src/llvm/llvm_includes.hpp
 @@ -103,7 +103,6 @@
 
  #if LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 35
@@ -735,8 +735,8 @@ There were a few changes required for LLVM 11:
  #include "llvm/IR/CFG.h"
  #include "llvm/IR/InstVisitor.h"
  #include "llvm/IR/IRPrintingPasses.h"
---- backend/src/llvm/llvm_loadstore_optimization.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_loadstore_optimization.cpp	2020-11-09 19:10:37.141852308 +0100
+--- a/backend/src/llvm/llvm_loadstore_optimization.cpp
++++ b/backend/src/llvm/llvm_loadstore_optimization.cpp
 @@ -160,7 +160,7 @@
      Value *vecPtr = Builder.CreateBitCast(ld->getPointerOperand(),
                                          PointerType::get(vecTy, addrSpace));
@@ -755,8 +755,8 @@ There were a few changes required for LLVM 11:
    }
 
    // Find the safe iterator we can point to. If reorder happens, we need to
---- backend/src/llvm/llvm_passes.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_passes.cpp	2020-11-09 18:48:55.997006837 +0100
+--- a/backend/src/llvm/llvm_passes.cpp
++++ b/backend/src/llvm/llvm_passes.cpp
 @@ -87,14 +87,14 @@
    }
 
@@ -800,8 +800,8 @@ There were a few changes required for LLVM 11:
      GBE_ASSERT(elementType);
      return elementType;
    }
---- backend/src/llvm/llvm_printf_parser.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_printf_parser.cpp	2020-11-09 18:57:52.618943105 +0100
+--- a/backend/src/llvm/llvm_printf_parser.cpp
++++ b/backend/src/llvm/llvm_printf_parser.cpp
 @@ -323,8 +323,7 @@
 
    bool PrintfParser::parseOnePrintfInstruction(CallInst * call)
@@ -856,8 +856,8 @@ There were a few changes required for LLVM 11:
          bool sign = false;
 
          if (vec_num != slot.state.vector_n) {
---- backend/src/llvm/llvm_profiling.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_profiling.cpp	2020-11-09 18:59:50.120929150 +0100
+--- a/backend/src/llvm/llvm_profiling.cpp
++++ b/backend/src/llvm/llvm_profiling.cpp
 @@ -35,7 +35,6 @@
  #include "llvm/IR/IRBuilder.h"
 
@@ -866,8 +866,8 @@ There were a few changes required for LLVM 11:
  #include "llvm/IR/CFG.h"
  #else
  #include "llvm/Support/CallSite.h"
---- backend/src/llvm/llvm_sampler_fix.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_sampler_fix.cpp	2020-11-09 17:01:09.407774832 +0100
+--- a/backend/src/llvm/llvm_sampler_fix.cpp
++++ b/backend/src/llvm/llvm_sampler_fix.cpp
 @@ -45,8 +45,8 @@
      bool visitCallInst(CallInst *I) {
        if(!I)
@@ -897,8 +897,8 @@ There were a few changes required for LLVM 11:
          {
            const ConstantInt *ci = dyn_cast<ConstantInt>(init->getOperand(0));
            uint32_t samplerInt = ci->getZExtValue();
---- backend/src/llvm/llvm_scalarize.cpp	2020-11-09 16:48:20.823866112 +0100
-+++ backend/src/llvm/llvm_scalarize.cpp	2020-11-09 18:51:16.888990104 +0100
+--- a/backend/src/llvm/llvm_scalarize.cpp
++++ b/backend/src/llvm/llvm_scalarize.cpp
 @@ -178,7 +178,7 @@
        if(!type)
          return type;
diff --git a/srcpkgs/beignet/patches/llvm12.patch b/srcpkgs/beignet/patches/llvm12.patch
index a773b4488d91..6f8ab005c148 100644
--- a/srcpkgs/beignet/patches/llvm12.patch
+++ b/srcpkgs/beignet/patches/llvm12.patch
@@ -1,7 +1,7 @@
 diff --git backend/src/llvm/ExpandLargeIntegers.cpp backend/src/llvm/ExpandLargeIntegers.cpp
 index 8515dc13..27080380 100644
---- backend/src/llvm/ExpandLargeIntegers.cpp
-+++ backend/src/llvm/ExpandLargeIntegers.cpp
+--- a/backend/src/llvm/ExpandLargeIntegers.cpp
++++ b/backend/src/llvm/ExpandLargeIntegers.cpp
 @@ -328,7 +328,7 @@ static Value *buildVectorOrScalar(ConversionState &State, IRBuilder<> &IRB, Smal
      // splited, that's why these temporary values should be erased.
      bool KeepInsert = isLegalBitSize(ElemTy->getPrimitiveSizeInBits() * ElemNo);
@@ -31,8 +31,8 @@ index 8515dc13..27080380 100644
        }
 diff --git backend/src/llvm/llvm_gen_backend.cpp backend/src/llvm/llvm_gen_backend.cpp
 index c93d89cc..64d5b0e5 100644
---- backend/src/llvm/llvm_gen_backend.cpp
-+++ backend/src/llvm/llvm_gen_backend.cpp
+--- a/backend/src/llvm/llvm_gen_backend.cpp
++++ b/backend/src/llvm/llvm_gen_backend.cpp
 @@ -304,7 +304,7 @@ namespace gbe
        TYPESIZEVEC(long,8)
        TYPESIZEVEC(unsigned long,8)
@@ -44,8 +44,8 @@ index c93d89cc..64d5b0e5 100644
        }
 diff --git backend/src/llvm/llvm_loadstore_optimization.cpp backend/src/llvm/llvm_loadstore_optimization.cpp
 index 5aa38bef..6b5c1bad 100644
---- backend/src/llvm/llvm_loadstore_optimization.cpp
-+++ backend/src/llvm/llvm_loadstore_optimization.cpp
+--- a/backend/src/llvm/llvm_loadstore_optimization.cpp
++++ b/backend/src/llvm/llvm_loadstore_optimization.cpp
 @@ -152,7 +152,7 @@ namespace gbe {
      unsigned addrSpace = ld->getPointerAddressSpace();
      // insert before first load
@@ -66,8 +66,8 @@ index 5aa38bef..6b5c1bad 100644
        parent = Builder.CreateInsertElement(parent, values[i], ConstantInt::get(IntegerType::get(st->getContext(), 32), i));
 diff --git backend/src/llvm/llvm_printf_parser.cpp backend/src/llvm/llvm_printf_parser.cpp
 index 6bb7c52a..af459cd2 100644
---- backend/src/llvm/llvm_printf_parser.cpp
-+++ backend/src/llvm/llvm_printf_parser.cpp
+--- a/backend/src/llvm/llvm_printf_parser.cpp
++++ b/backend/src/llvm/llvm_printf_parser.cpp
 @@ -630,7 +630,7 @@ error:
              if (elt_type != elt_dst_type) {
                Value *II = NULL;
@@ -88,8 +88,8 @@ index 6bb7c52a..af459cd2 100644
                  Value* cvt  = builder->CreateFPCast(org, Type::getFloatTy(module->getContext()));
 diff --git backend/src/llvm/llvm_to_gen.cpp backend/src/llvm/llvm_to_gen.cpp
 index 7f7deffe..9e8ccc67 100644
---- backend/src/llvm/llvm_to_gen.cpp
-+++ backend/src/llvm/llvm_to_gen.cpp
+--- a/backend/src/llvm/llvm_to_gen.cpp
++++ b/backend/src/llvm/llvm_to_gen.cpp
 @@ -358,7 +358,7 @@ namespace gbe
      passes.add(createScalarReplAggregatesPass(64, true, -1, -1, 64));
  #endif
diff --git a/srcpkgs/beignet/patches/musl.patch b/srcpkgs/beignet/patches/musl.patch
index b6c9c68d5004..cefafbb65588 100644
--- a/srcpkgs/beignet/patches/musl.patch
+++ b/srcpkgs/beignet/patches/musl.patch
@@ -1,5 +1,5 @@
---- backend/src/backend/gen/gen_mesa_disasm.c
-+++ backend/src/backend/gen/gen_mesa_disasm.c
+--- a/backend/src/backend/gen/gen_mesa_disasm.c
++++ b/backend/src/backend/gen/gen_mesa_disasm.c
 @@ -1137,7 +1137,7 @@ static uint32_t __conv_half_to_float(uint16_t h)
        // Adjust mantissa so it's normalized (and keep
        // track of exponent adjustment)
diff --git a/srcpkgs/beignet/template b/srcpkgs/beignet/template
index dbe0d1888c67..29a1ef99dbda 100644
--- a/srcpkgs/beignet/template
+++ b/srcpkgs/beignet/template
@@ -14,7 +14,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.freedesktop.org/wiki/Software/Beignet/"
 distfiles="https://01.org/sites/default/files/${pkgname}-${version}-source.tar.gz"
 checksum=c555edba149de23243965a703f39f79fa06f15bcff5a3762b5544b0925010b43
-patch_args=-Np0
 
 post_install() {
 	# remove CL headers, we do use opencl-headers instead.
diff --git a/srcpkgs/belle-sip/patches/musl.patch b/srcpkgs/belle-sip/patches/musl.patch
index 2bbbddb198b1..f8bddfed8a60 100644
--- a/srcpkgs/belle-sip/patches/musl.patch
+++ b/srcpkgs/belle-sip/patches/musl.patch
@@ -1,5 +1,5 @@
---- src/belle_sip_resolver.c	2018-02-21 17:30:40.474348393 +0100
-+++ -	2018-02-21 17:32:31.892044464 +0100
+--- a/src/belle_sip_resolver.c
++++ b/-
 @@ -459,7 +459,11 @@
  }
  
diff --git a/srcpkgs/belle-sip/template b/srcpkgs/belle-sip/template
index 9f9c297d3589..6351feba635d 100644
--- a/srcpkgs/belle-sip/template
+++ b/srcpkgs/belle-sip/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.linphone.org"
 distfiles="https://gitlab.linphone.org/BC/public/belle-sip/-/archive/${version}/belle-sip-${version}.tar.gz"
 checksum=4f9218b0bbf55c2f68d70a0e83779e591ef9fe97f1caf7550768ea192ee34cee
-patch_args=-Np0
 
 belle-sip-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/berkeley-abc/patches/remove_bzlib_convenience.patch b/srcpkgs/berkeley-abc/patches/remove_bzlib_convenience.patch
index 00bf278ce703..e7fc2e89678a 100644
--- a/srcpkgs/berkeley-abc/patches/remove_bzlib_convenience.patch
+++ b/srcpkgs/berkeley-abc/patches/remove_bzlib_convenience.patch
@@ -14,8 +14,8 @@ Forwarded: doesn't make sense upstream
 
 diff --git Makefile Makefile
 index e0e8b8f..36b0f89 100644
---- Makefile
-+++ Makefile
+--- a/Makefile
++++ b/Makefile
 @@ -20,7 +20,7 @@ MODULES := \
  	src/map/mapper src/map/mio src/map/super src/map/if \
  	src/map/amap src/map/cov src/map/scl src/map/mpm \
@@ -36,8 +36,8 @@ index e0e8b8f..36b0f89 100644
     $(info $(MSG_PREFIX)Using explicit -lstdc++)
 diff --git src/base/io/ioReadAiger.c src/base/io/ioReadAiger.c
 index f87d971..4f0f6a3 100644
---- src/base/io/ioReadAiger.c
-+++ src/base/io/ioReadAiger.c
+--- a/src/base/io/ioReadAiger.c
++++ b/src/base/io/ioReadAiger.c
 @@ -26,7 +26,7 @@
  #include <string.h>
  #include <assert.h>
@@ -49,8 +49,8 @@ index f87d971..4f0f6a3 100644
  
 diff --git src/base/io/ioWriteAiger.c src/base/io/ioWriteAiger.c
 index 0a68c7e..f0744c6 100644
---- src/base/io/ioWriteAiger.c
-+++ src/base/io/ioWriteAiger.c
+--- a/src/base/io/ioWriteAiger.c
++++ b/src/base/io/ioWriteAiger.c
 @@ -26,7 +26,7 @@
  #include <string.h>
  #include <assert.h>
diff --git a/srcpkgs/berkeley-abc/patches/remove_zlib_convenience.patch b/srcpkgs/berkeley-abc/patches/remove_zlib_convenience.patch
index d869703569fb..64a63d3d7e55 100644
--- a/srcpkgs/berkeley-abc/patches/remove_zlib_convenience.patch
+++ b/srcpkgs/berkeley-abc/patches/remove_zlib_convenience.patch
@@ -15,8 +15,8 @@ Forwarded: doesn't make sense upstream
 
 diff --git Makefile Makefile
 index 36b0f89..68651d2 100644
---- Makefile
-+++ Makefile
+--- a/Makefile
++++ b/Makefile
 @@ -20,7 +20,7 @@ MODULES := \
  	src/map/mapper src/map/mio src/map/super src/map/if \
  	src/map/amap src/map/cov src/map/scl src/map/mpm \
@@ -36,8 +36,8 @@ index 36b0f89..68651d2 100644
     LIBS += -lstdc++
 diff --git src/base/io/ioReadAiger.c src/base/io/ioReadAiger.c
 index 4f0f6a3..e174ff6 100644
---- src/base/io/ioReadAiger.c
-+++ src/base/io/ioReadAiger.c
+--- a/src/base/io/ioReadAiger.c
++++ b/src/base/io/ioReadAiger.c
 @@ -27,7 +27,7 @@
  #include <assert.h>
  
@@ -49,8 +49,8 @@ index 4f0f6a3..e174ff6 100644
  ABC_NAMESPACE_IMPL_START
 diff --git src/base/io/ioWriteAiger.c src/base/io/ioWriteAiger.c
 index f0744c6..d265104 100644
---- src/base/io/ioWriteAiger.c
-+++ src/base/io/ioWriteAiger.c
+--- a/src/base/io/ioWriteAiger.c
++++ b/src/base/io/ioWriteAiger.c
 @@ -27,7 +27,7 @@
  #include <assert.h>
  
@@ -62,8 +62,8 @@ index f0744c6..d265104 100644
  
 diff --git src/sat/cnf/cnfMan.c src/sat/cnf/cnfMan.c
 index 5a125ec..54c582f 100644
---- src/sat/cnf/cnfMan.c
-+++ src/sat/cnf/cnfMan.c
+--- a/src/sat/cnf/cnfMan.c
++++ b/src/sat/cnf/cnfMan.c
 @@ -21,7 +21,7 @@
  #include "cnf.h"
  #include "sat/bsat/satSolver.h"
diff --git a/srcpkgs/berkeley-abc/patches/reproducibility.patch b/srcpkgs/berkeley-abc/patches/reproducibility.patch
index c807519fa423..4ab0c9a46b7b 100644
--- a/srcpkgs/berkeley-abc/patches/reproducibility.patch
+++ b/srcpkgs/berkeley-abc/patches/reproducibility.patch
@@ -11,8 +11,8 @@ Otherwise the debian package checking complains...
 
 diff --git src/base/cmd/cmdUtils.c src/base/cmd/cmdUtils.c
 index 3409543..9b7223f 100644
---- src/base/cmd/cmdUtils.c
-+++ src/base/cmd/cmdUtils.c
+--- a/src/base/cmd/cmdUtils.c
++++ b/src/base/cmd/cmdUtils.c
 @@ -589,7 +589,7 @@ void CmdCommandPrint( Abc_Frame_t * pAbc, int fPrintAll, int fDetails )
      nColumns = 79 / (LenghtMax + 2);
  
@@ -24,8 +24,8 @@ index 3409543..9b7223f 100644
      sGroupCur = NULL;
 diff --git src/base/main/mainUtils.c src/base/main/mainUtils.c
 index d1fe1d2..3668f3b 100644
---- src/base/main/mainUtils.c
-+++ src/base/main/mainUtils.c
+--- a/src/base/main/mainUtils.c
++++ b/src/base/main/mainUtils.c
 @@ -52,7 +52,7 @@ static char * DateReadFromDateString( char * datestr );
  char * Abc_UtilsGetVersion( Abc_Frame_t * pAbc )
  {
diff --git a/srcpkgs/berkeley-abc/template b/srcpkgs/berkeley-abc/template
index 280c3e0bce2c..f5aeb2a1e4fd 100644
--- a/srcpkgs/berkeley-abc/template
+++ b/srcpkgs/berkeley-abc/template
@@ -15,7 +15,6 @@ license="custom:University-of-California, BSD-4-Clause, MIT, BSD-2-Clause"
 homepage="http://www.eecs.berkeley.edu/~alanmi/abc/"
 distfiles="https://github.com/berkeley-abc/abc/archive/$_gitrev.tar.gz"
 checksum=52f1e9bf62c1e0d3b3cbe145f61b409a725e73fe606ba010efcbb2701a14171b
-patch_args=-Np0
 
 post_patch() {
 	vsed -i -e '/^CC *:=/d' -e '/^CXX *:=/d' -e '/^AR *:=/d' \
diff --git a/srcpkgs/berry/patches/fix-cross.patch b/srcpkgs/berry/patches/fix-cross.patch
index 2b069971ae53..d1da75e961b5 100644
--- a/srcpkgs/berry/patches/fix-cross.patch
+++ b/srcpkgs/berry/patches/fix-cross.patch
@@ -1,5 +1,5 @@
---- config.mk.orig
-+++ config.mk
+--- a/config.mk.orig
++++ b/config.mk
 @@ -9,11 +9,11 @@
  # Customize below to fit your system
  
diff --git a/srcpkgs/berry/template b/srcpkgs/berry/template
index a9fb2bf94342..05256589af24 100644
--- a/srcpkgs/berry/template
+++ b/srcpkgs/berry/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="https://github.com/JLErvin/berry"
 distfiles="https://github.com/JLErvin/berry/archive/${version}.tar.gz"
 checksum=1d6de883a0cd96ceb167c5ad2e855b0b15fa84872d41a22e05d0fdf0cf4be6b8
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/biew/patches/bool.patch b/srcpkgs/biew/patches/bool.patch
index 707af17de4aa..624cb500931f 100644
--- a/srcpkgs/biew/patches/bool.patch
+++ b/srcpkgs/biew/patches/bool.patch
@@ -2,8 +2,8 @@ The two underscores in the front violate namespace and
 break build at least on some systems, as __bool might be
 a builtin type name.
 
---- plugins/bin/ne.c
-+++ plugins/bin/ne.c
+--- a/plugins/bin/ne.c
++++ b/plugins/bin/ne.c
 @@ -465,16 +465,16 @@ static void __FASTCALL__ ShowProcListNE( int modno )
  {
   BGLOBAL handle;
diff --git a/srcpkgs/biew/template b/srcpkgs/biew/template
index 06db316d4c6a..73a17e44c8d6 100644
--- a/srcpkgs/biew/template
+++ b/srcpkgs/biew/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="http://beye.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/beye/${pkgname}/${version}/${pkgname}-${_shortversion}-src.tar.bz2"
 checksum=2e85f03c908dd6ec832461fbfbc79169a33f4caccf48c8fe60cbd29f5fb06d17
-patch_args=-Np0
 
 pre_configure() {
 	configure_args+=" --target-arch=generic --ld=$CC"
diff --git a/srcpkgs/bin86/patches/fix_x86_64.diff b/srcpkgs/bin86/patches/fix_x86_64.diff
index f8efc33d2ba7..05c374aeb6f2 100644
--- a/srcpkgs/bin86/patches/fix_x86_64.diff
+++ b/srcpkgs/bin86/patches/fix_x86_64.diff
@@ -1,5 +1,5 @@
---- ld/x86_aout.h    2005-11-07 20:07:31.506442000 +0100
-+++ ld/x86_aout.h 2020-02-07 20:07:41.106982496 +0100
+--- a/ld/x86_aout.h    2005-11-07 20:07:31.506442000 +0100
++++ b/ld/x86_aout.h 2020-02-07 20:07:41.106982496 +0100
 @@ -12,6 +12,9 @@
  #if defined(i386) || defined(__BCC__) || defined(MSDOS)
  typedef long Long;
diff --git a/srcpkgs/bin86/template b/srcpkgs/bin86/template
index fd37d2a267d3..8d711210193e 100644
--- a/srcpkgs/bin86/template
+++ b/srcpkgs/bin86/template
@@ -9,7 +9,6 @@ license="GPL-2"
 distfiles="http://v3.sk/~lkundrak/dev86/bin86-${version}.tar.gz"
 checksum=021e37cde3a20632c4c9000993cb4aa9f58cb82b1d3c26b9aeb62d6566925738
 archs="i686* x86_64*"
-patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" PREFIX=/usr
diff --git a/srcpkgs/binwalk/patches/fallback-version.patch b/srcpkgs/binwalk/patches/fallback-version.patch
index b319bfebb5e0..a94b8752e23e 100644
--- a/srcpkgs/binwalk/patches/fallback-version.patch
+++ b/srcpkgs/binwalk/patches/fallback-version.patch
@@ -1,5 +1,5 @@
---- src/binwalk/core/version.py.orig
-+++ src/binwalk/core/version.py
+--- a/src/binwalk/core/version.py.orig
++++ b/src/binwalk/core/version.py
 @@ -1,6 +1,10 @@
  try:
      from importlib import metadata
diff --git a/srcpkgs/binwalk/template b/srcpkgs/binwalk/template
index cec10ddb7e74..6c61fff87aeb 100644
--- a/srcpkgs/binwalk/template
+++ b/srcpkgs/binwalk/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="https://github.com/ReFirmLabs/binwalk"
 distfiles="https://github.com/ReFirmLabs/binwalk/archive/v${version}.tar.gz"
 checksum=7ec9d8fcb8686f4060d37e1096669e3ed8ce1194c91ad80199622448bcc01b19
-patch_args=-Np0
 
 post_extract() {
 	vsed -i -e 's;/etc/bash_completion.d/%s;%s.bash;' setup.py
diff --git a/srcpkgs/biosdisk/patches/fix-sbin.patch b/srcpkgs/biosdisk/patches/fix-sbin.patch
index 5914863cbbe7..2cba303287ff 100644
--- a/srcpkgs/biosdisk/patches/fix-sbin.patch
+++ b/srcpkgs/biosdisk/patches/fix-sbin.patch
@@ -1,5 +1,5 @@
---- Makefile.orig
-+++ Makefile
+--- a/Makefile.orig
++++ b/Makefile
 @@ -3,7 +3,7 @@
  DESTDIR =
  prefix ?= /usr/
diff --git a/srcpkgs/biosdisk/template b/srcpkgs/biosdisk/template
index ea5ad3aebcab..ccbc76f4e55a 100644
--- a/srcpkgs/biosdisk/template
+++ b/srcpkgs/biosdisk/template
@@ -10,4 +10,3 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/dell/biosdisk"
 distfiles="https://github.com/dell/biosdisk/archive/${version}.tar.gz"
 checksum=e89cf680914ab3d5bbb549c124c6c29594ef495880befc0d059ec8a3aaf1e3e7
-patch_args=-Np0
diff --git a/srcpkgs/bird/patches/fix-tests-musl.patch b/srcpkgs/bird/patches/fix-tests-musl.patch
index 2bac77b009d1..55403f6e75ee 100644
--- a/srcpkgs/bird/patches/fix-tests-musl.patch
+++ b/srcpkgs/bird/patches/fix-tests-musl.patch
@@ -1,5 +1,5 @@
---- lib/printf_test.c
-+++ lib/printf_test.c
+--- a/lib/printf_test.c
++++ b/lib/printf_test.c
 @@ -22,6 +22,7 @@ static int
  t_simple(void)
  {
diff --git a/srcpkgs/bird/template b/srcpkgs/bird/template
index 493605a5ceb1..bc40598b0360 100644
--- a/srcpkgs/bird/template
+++ b/srcpkgs/bird/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="https://bird.network.cz"
 distfiles="https://gitlab.labs.nic.cz/labs/bird/-/archive/v${version}/bird-v${version}.tar.gz"
 checksum=4d0eeea762dcd4422e1e276e2ed123cfed630cf1cce017b50463d79fcf2fff0c
-patch_args=-Np0
 
 conf_files="/etc/bird.conf"
 system_accounts="_bird"
diff --git a/srcpkgs/birdtray/patches/QPainterPath.patch b/srcpkgs/birdtray/patches/QPainterPath.patch
index c73ef6e6da5d..4b9235ccd440 100644
--- a/srcpkgs/birdtray/patches/QPainterPath.patch
+++ b/srcpkgs/birdtray/patches/QPainterPath.patch
@@ -1,5 +1,5 @@
---- src/trayicon.cpp	2020-04-29 13:40:12.000000000 +0200
-+++ src/trayicon.cpp	2020-08-31 20:47:56.018726289 +0200
+--- a/src/trayicon.cpp
++++ b/src/trayicon.cpp
 @@ -1,6 +1,7 @@
  #include <QMenu>
  #include <QTimer>
diff --git a/srcpkgs/birdtray/template b/srcpkgs/birdtray/template
index acf7c1d9c19c..8695820eccec 100644
--- a/srcpkgs/birdtray/template
+++ b/srcpkgs/birdtray/template
@@ -11,4 +11,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/gyunaev/birdtray"
 distfiles="https://github.com/gyunaev/birdtray/archive/v${version}.tar.gz"
 checksum=672256bfadbde2841dcd6bad00662aeba825a4f041fa9a1980763f9eb29294d0
-patch_args=-Np0
diff --git a/srcpkgs/bish/patches/fix-ldflags.patch b/srcpkgs/bish/patches/fix-ldflags.patch
index a3d8bc6c620d..07ee86bb742e 100644
--- a/srcpkgs/bish/patches/fix-ldflags.patch
+++ b/srcpkgs/bish/patches/fix-ldflags.patch
@@ -1,5 +1,5 @@
---- Makefile.orig	2016-05-24 14:29:52.349935460 +0200
-+++ Makefile	2016-05-24 14:30:01.190934798 +0200
+--- a/Makefile
++++ b/Makefile
 @@ -29,7 +29,7 @@ $(OBJ)/libbish.a: $(OBJECTS)
  	ranlib $@
  
diff --git a/srcpkgs/bish/template b/srcpkgs/bish/template
index f5140a9ac2d6..2355c664a428 100644
--- a/srcpkgs/bish/template
+++ b/srcpkgs/bish/template
@@ -9,7 +9,6 @@ license="MIT"
 homepage="https://github.com/tdenniston/bish"
 distfiles="https://github.com/tdenniston/bish/archive/v${version}.tar.gz"
 checksum=796d1efcbc9e8c7ea604881860aa8d857aad089c4eeb766283c21c210687942b
-patch_args=-Np0
 
 do_install() {
 	vbin bish
diff --git a/srcpkgs/bitchx/patches/bitchx-1.2.1-security.patch b/srcpkgs/bitchx/patches/bitchx-1.2.1-security.patch
index 4964db9c8476..d65bb1207cb1 100644
--- a/srcpkgs/bitchx/patches/bitchx-1.2.1-security.patch
+++ b/srcpkgs/bitchx/patches/bitchx-1.2.1-security.patch
@@ -1,7 +1,7 @@
 diff --git include/dcc.h include/dcc.h
 index 9cc1e7c..3e4f12d 100644
---- include/dcc.h
-+++ include/dcc.h
+--- a/include/dcc.h
++++ b/include/dcc.h
 @@ -97,6 +97,7 @@
  #define DCC_OFFER      0x00040000
  #define DCC_DELETE     0x00080000
@@ -12,8 +12,8 @@ index 9cc1e7c..3e4f12d 100644
  #define DCC_CNCT_PEND  0x00200000
 diff --git source/dcc.c source/dcc.c
 index d0706f8..b158189 100644
---- source/dcc.c
-+++ source/dcc.c
+--- a/source/dcc.c
++++ b/source/dcc.c
 @@ -1415,6 +1415,7 @@ UserList *ul = NULL;
  			if (autoresume && stat(fullname, &sb) != -1) {
  				n->transfer_orders.byteoffset = sb.st_size;
diff --git a/srcpkgs/bitchx/patches/openssl-1.1.patch b/srcpkgs/bitchx/patches/openssl-1.1.patch
index f062675dc67e..ef009186f164 100644
--- a/srcpkgs/bitchx/patches/openssl-1.1.patch
+++ b/srcpkgs/bitchx/patches/openssl-1.1.patch
@@ -10,8 +10,8 @@ Date:   Fri Mar 17 00:38:46 2017 +1100
 
 diff --git configure configure
 index d435491..f4af7bb 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -10630,9 +10630,9 @@ esac
  case "$with_ssl" in
      yes|check)
@@ -76,8 +76,8 @@ index d435491..f4af7bb 100755
  echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
 diff --git configure.in configure.in
 index 63d133f..3694a7f 100644
---- configure.in
-+++ configure.in
+--- a/configure.in
++++ b/configure.in
 @@ -562,8 +562,8 @@ case "$with_ssl" in
  esac
  case "$with_ssl" in
diff --git a/srcpkgs/bitchx/template b/srcpkgs/bitchx/template
index f5de7ac86973..450fde27deed 100644
--- a/srcpkgs/bitchx/template
+++ b/srcpkgs/bitchx/template
@@ -11,7 +11,6 @@ license="BSD-3-Clause"
 homepage="http://bitchx.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=2d270500dd42b5e2b191980d584f6587ca8a0dbda26b35ce7fadb519f53c83e2
-patch_args=-Np0
 
 disable_parallel_build=yes
 
diff --git a/srcpkgs/bitfighter/patches/cmake.patch b/srcpkgs/bitfighter/patches/cmake.patch
index 217ba740763a..edc244c53dc5 100644
--- a/srcpkgs/bitfighter/patches/cmake.patch
+++ b/srcpkgs/bitfighter/patches/cmake.patch
@@ -1,5 +1,5 @@
---- cmake/Platform/Linux.cmake.orig	2018-12-20 21:54:40.020718363 -0700
-+++ cmake/Platform/Linux.cmake	2018-12-20 21:54:49.064912089 -0700
+--- a/cmake/Platform/Linux.cmake
++++ b/cmake/Platform/Linux.cmake
 @@ -99,7 +99,7 @@ function(BF_PLATFORM_INSTALL targetName)
  
  	if(INSTALL_NOTIFIER)
@@ -9,8 +9,8 @@
  		# Modify python script to use proper path to the system-installed icon
  		install(CODE "execute_process(COMMAND sed -i -e \"s@redship48.png@bitfighter.png@\" -e \"s@^ICON_BASE =.*@ICON_BASE = \\\"${CMAKE_DESKTOP_DATA_PATH}/pixmaps/\\\"@\" ${CMAKE_SOURCE_DIR}/notifier/bitfighter_notifier.py)")
  		install(PROGRAMS ${CMAKE_SOURCE_DIR}/notifier/bitfighter_notifier.py DESTINATION ${CMAKE_BIN_PATH} RENAME bitfighter_notifier)
---- zap/bitfighterd.cmake.orig	2018-12-20 21:19:40.666559517 -0700
-+++ zap/bitfighterd.cmake	2018-12-20 21:19:44.866653338 -0700
+--- a/zap/bitfighterd.cmake
++++ b/zap/bitfighterd.cmake
 @@ -11,13 +11,13 @@ add_executable(bitfighterd
  add_dependencies(bitfighterd
  	tnl
@@ -26,8 +26,8 @@
  )
  
  set_target_properties(bitfighterd
---- ./zap/bitfighter_client.cmake.orig	2018-12-16 09:12:56.168753252 -0700
-+++ ./zap/bitfighter_client.cmake	2018-12-20 21:02:50.936433248 -0700
+--- a/zap/bitfighter_client.cmake
++++ b/zap/bitfighter_client.cmake
 @@ -11,13 +11,23 @@ add_library(bitfighter_client OBJECT
  	${OTHER_HEADERS}
  )
@@ -54,8 +54,8 @@
  )
  
  if(USE_GLES)
---- ./master/CMakeLists.txt.orig	2018-12-20 21:10:17.222088600 -0700
-+++ ./master/CMakeLists.txt	2018-12-20 21:13:57.550931398 -0700
+--- a/master/CMakeLists.txt
++++ b/master/CMakeLists.txt
 @@ -41,7 +41,11 @@ else()
  endif()
  
@@ -69,8 +69,8 @@
  
  set(MASTER_LIBS 
  	tnl
---- ./CMakeLists.txt.orig	2018-12-12 15:40:38.904058738 -0700
-+++ ./CMakeLists.txt	2018-12-20 21:09:57.017647629 -0700
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
 @@ -1,17 +1,6 @@
  project (bitfighter)
  cmake_minimum_required (VERSION 3.1.0)
@@ -90,8 +90,8 @@
  #
  # CMake options
 
---- zap/bitfighter_client.cmake	2019-01-07 02:43:43.453459870 +0100
-+++ -	2019-01-07 02:54:56.118124604 +0100
+--- a/zap/bitfighter_client.cmake
++++ b/-
 @@ -20,12 +20,13 @@
  if(NOT TOMCRYPT_FOUND)
  	list(APPEND CLIENT_EXTRA_DEPS tomcrypt)
@@ -108,8 +108,8 @@
  	poly2tri
  	${CLIENT_EXTRA_DEPS}
  )
---- zap/bitfighterd.cmake	2019-01-07 02:57:05.348462052 +0100
-+++ -	2019-01-07 02:59:39.300598740 +0100
+--- a/zap/bitfighterd.cmake
++++ b/-
 @@ -11,12 +11,12 @@
  add_dependencies(bitfighterd
  	tnl
@@ -124,8 +124,8 @@
  	${TOMCRYPT__LIBRARIES}
  )
  
---- zap/bitfighter_client.cmake	2019-01-07 03:03:15.449271742 +0100
-+++ -	2019-01-07 03:05:39.233731581 +0100
+--- a/zap/bitfighter_client.cmake
++++ b/-
 @@ -25,7 +25,6 @@
  endif()
  
@@ -134,8 +134,8 @@
  	tnl
  	poly2tri
  	${CLIENT_EXTRA_DEPS}
---- zap/bitfighterd.cmake	2019-01-07 03:03:15.456271777 +0100
-+++ -	2019-01-07 03:05:59.095945997 +0100
+--- a/zap/bitfighterd.cmake
++++ b/-
 @@ -10,12 +10,12 @@
  
  add_dependencies(bitfighterd
diff --git a/srcpkgs/bitfighter/template b/srcpkgs/bitfighter/template
index 58e033107399..c3b2cc22a265 100644
--- a/srcpkgs/bitfighter/template
+++ b/srcpkgs/bitfighter/template
@@ -20,7 +20,6 @@ checksum="cd47c453d9e6875ded627b987a645e2ff2c757363f394b152f62d868e1d81427
  d628a2b0af024a965b92877f321f2174d6309b7ce9236775af3bd86a67fcc72b"
 python_version=2
 replaces="bitfighter-data>=0"
-patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/bitwise/patches/tests-use-bcunit.patch b/srcpkgs/bitwise/patches/tests-use-bcunit.patch
index 154d098e7d6e..93a8aa4a4974 100644
--- a/srcpkgs/bitwise/patches/tests-use-bcunit.patch
+++ b/srcpkgs/bitwise/patches/tests-use-bcunit.patch
@@ -1,6 +1,6 @@
 diff '--color=auto' -ruN bitwise-v0.42/Makefile.in bitwise-v0.42_new/Makefile.in
---- Makefile.in	2021-04-16 17:21:30.000000000 +0200
-+++ Makefile.in	2021-04-17 09:36:46.661320033 +0200
+--- a/Makefile.in
++++ b/Makefile.in
 @@ -518,7 +518,7 @@
  								   src/misc.c \
                                     tests/test-shunting-yard.c
@@ -11,8 +11,8 @@ diff '--color=auto' -ruN bitwise-v0.42/Makefile.in bitwise-v0.42_new/Makefile.in
  all: all-am
  
 diff '--color=auto' -ruN bitwise-v0.42/tests/test-shunting-yard.c bitwise-v0.42_new/tests/test-shunting-yard.c
---- tests/test-shunting-yard.c	2021-04-16 17:17:19.000000000 +0200
-+++ tests/test-shunting-yard.c	2021-04-17 09:36:46.660320033 +0200
+--- a/tests/test-shunting-yard.c
++++ b/tests/test-shunting-yard.c
 @@ -7,7 +7,7 @@
  
  #include "../inc/shunting-yard.h"
diff --git a/srcpkgs/bitwise/template b/srcpkgs/bitwise/template
index 9e3fe3fa18c7..16b8b2a23fe4 100644
--- a/srcpkgs/bitwise/template
+++ b/srcpkgs/bitwise/template
@@ -12,4 +12,3 @@ license="GPL-3.0-only"
 homepage="https://github.com/mellowcandle/bitwise"
 distfiles="${homepage}/releases/download/v${version}/bitwise-v${version}.tar.gz"
 checksum=d3d43cef47bf8f49e85f7ed381c3eaf1df921ca51805e0962f1a97a517e1d1d2
-patch_args=-Np0
diff --git a/srcpkgs/blackboxwm/patches/time64.patch b/srcpkgs/blackboxwm/patches/time64.patch
index 9bbcf04b7427..1a2f92d967e1 100644
--- a/srcpkgs/blackboxwm/patches/time64.patch
+++ b/srcpkgs/blackboxwm/patches/time64.patch
@@ -1,5 +1,5 @@
---- src/Toolbar.cc	2020-12-13 23:57:20.285876509 +0100
-+++ src/Toolbar.cc	2020-12-13 23:58:32.570856812 +0100
+--- a/src/Toolbar.cc
++++ b/src/Toolbar.cc
 @@ -44,7 +44,7 @@
  {
    timeval now;
diff --git a/srcpkgs/blackboxwm/template b/srcpkgs/blackboxwm/template
index 05fffcbf3af0..10ad09eac501 100644
--- a/srcpkgs/blackboxwm/template
+++ b/srcpkgs/blackboxwm/template
@@ -12,7 +12,6 @@ license="MIT"
 homepage="https://github.com/bbidulock/blackboxwm"
 distfiles="${homepage}/releases/download/${version}/blackbox-${version}.tar.lz"
 checksum=e4f814fb02f6a977e9aab1c60192087597b79b0a56cc4a14e8a962b7d45d82d1
-patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/bmon/patches/Add_CTRL-N_CTRL-P.patch b/srcpkgs/bmon/patches/Add_CTRL-N_CTRL-P.patch
index c89f6242a631..4aace67218c6 100644
--- a/srcpkgs/bmon/patches/Add_CTRL-N_CTRL-P.patch
+++ b/srcpkgs/bmon/patches/Add_CTRL-N_CTRL-P.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] curses: Add CTRL-N/CTRL-P for next/previous element
 
 diff --git src/out_curses.c src/out_curses.c
 index 51b6391..330e8f6 100644
---- src/out_curses.c
-+++ src/out_curses.c
+--- a/src/out_curses.c
++++ b/src/out_curses.c
 @@ -45,6 +45,8 @@ enum {
  	KEY_TOGGLE_DETAILS	= 'd',
  	KEY_TOGGLE_INFO		= 'i',
diff --git a/srcpkgs/bmon/patches/out_curses.patch b/srcpkgs/bmon/patches/out_curses.patch
index 4cdf1355807f..334fb56cce03 100644
--- a/srcpkgs/bmon/patches/out_curses.patch
+++ b/srcpkgs/bmon/patches/out_curses.patch
@@ -16,8 +16,8 @@ Signed-off-by: Nachiketa Prachanda <nchkta@gmail.com>
 
 diff --git src/out_curses.c src/out_curses.c
 index 6d70ae3..e5317de 100644
---- src/out_curses.c
-+++ src/out_curses.c
+--- a/src/out_curses.c
++++ b/src/out_curses.c
 @@ -147,22 +147,24 @@ static char *float2str(double value, int width, int prec, char *buf, size_t len)
  static void put_line(const char *fmt, ...)
  {
diff --git a/srcpkgs/bmon/template b/srcpkgs/bmon/template
index 64f426cc2eca..67b13cb31a54 100644
--- a/srcpkgs/bmon/template
+++ b/srcpkgs/bmon/template
@@ -11,7 +11,6 @@ license="BSD-2-Clause, MIT"
 homepage="http://github.com/tgraf/bmon/"
 distfiles="http://github.com/tgraf/${pkgname}/archive/v${version}.tar.gz"
 checksum=d5e503ff6b116c681ebf4d10e238604dde836dceb9c0008eb92416a96c87ca40
-patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/boinc/patches/arm-not-android.patch b/srcpkgs/boinc/patches/arm-not-android.patch
index d04f8f780a84..634f6fdd0e95 100644
--- a/srcpkgs/boinc/patches/arm-not-android.patch
+++ b/srcpkgs/boinc/patches/arm-not-android.patch
@@ -1,5 +1,5 @@
---- client/Makefile.am	2020-05-31 01:43:58.000000000 -0400
-+++ client/Makefile.am	2020-06-06 11:31:53.051972845 -0400
+--- a/client/Makefile.am
++++ b/client/Makefile.am
 @@ -113,6 +113,7 @@
  
  boinc_clientdir = $(bindir)
@@ -16,8 +16,8 @@
  
  switcher_SOURCES = switcher.cpp
  switcher_LDFLAGS = $(AM_LDFLAGS) -L../lib
---- client/whetstone.cpp	2018-01-14 11:07:52.000000000 +0100
-+++ client/whetstone.cpp	2018-02-26 20:49:52.185904752 +0100
+--- a/client/whetstone.cpp
++++ b/client/whetstone.cpp
 @@ -290,6 +290,8 @@
      return 0;
  }
@@ -27,8 +27,8 @@
    }
  #endif // namespace closure
 +#endif
---- configure.ac	2020-05-31 01:43:58.000000000 -0400
-+++ configure.ac	2020-06-06 11:41:14.259984481 -0400
+--- a/configure.ac
++++ b/configure.ac
 @@ -1051,6 +1051,7 @@
  dnl or OS2
  AM_CONDITIONAL(OS_OS2, [echo $host_os | grep '^os2' > /dev/null])
diff --git a/srcpkgs/boinc/patches/boinc-am_conditional.patch b/srcpkgs/boinc/patches/boinc-am_conditional.patch
index a9f47e59702e..7d59f154340f 100644
--- a/srcpkgs/boinc/patches/boinc-am_conditional.patch
+++ b/srcpkgs/boinc/patches/boinc-am_conditional.patch
@@ -1,7 +1,7 @@
 Add objective c++ program and check for gtk2
 
---- configure.ac
-+++ configure.ac
+--- a/configure.ac
++++ b/configure.ac
 @@ -39,6 +39,7 @@ AC_PROG_CC
  AC_PROG_CXX
  AC_PROG_F77
diff --git a/srcpkgs/boinc/template b/srcpkgs/boinc/template
index 944fdaf172d3..1eba13495c2a 100644
--- a/srcpkgs/boinc/template
+++ b/srcpkgs/boinc/template
@@ -21,7 +21,6 @@ system_accounts="boinc"
 boinc_homedir="/var/lib/boinc"
 boinc_shell="/bin/bash"
 conflicts="boinc-nox>=0"
-patch_args=-Np0
 
 CXXFLAGS="-Wno-redundant-decls"
 
diff --git a/srcpkgs/bomi/patches/ffmpeg3.x.patch b/srcpkgs/bomi/patches/ffmpeg3.x.patch
index 561c6262e40f..c61080d83674 100644
--- a/srcpkgs/bomi/patches/ffmpeg3.x.patch
+++ b/srcpkgs/bomi/patches/ffmpeg3.x.patch
@@ -1,7 +1,7 @@
 libavutil/audioconvert.h is gone in ffmpeg3.x
 
---- src/mpv/audio/filter/af_lavcac3enc.c	2015-05-20 11:31:58.000000000 +0200
-+++ src/mpv/audio/filter/af_lavcac3enc.c	2016-09-22 19:52:47.730132367 +0200
+--- a/src/mpv/audio/filter/af_lavcac3enc.c
++++ b/src/mpv/audio/filter/af_lavcac3enc.c
 @@ -26,7 +26,6 @@
  #include <assert.h>
  
@@ -10,8 +10,8 @@ libavutil/audioconvert.h is gone in ffmpeg3.x
  #include <libavutil/intreadwrite.h>
  #include <libavutil/common.h>
  #include <libavutil/bswap.h>
---- src/mpv/audio/out/ao_lavc.c	2015-05-20 11:31:58.000000000 +0200
-+++ src/mpv/audio/out/ao_lavc.c	2016-09-22 19:54:50.291163189 +0200
+--- a/src/mpv/audio/out/ao_lavc.c
++++ b/src/mpv/audio/out/ao_lavc.c
 @@ -25,7 +25,6 @@
  #include <limits.h>
  
@@ -20,8 +20,8 @@ libavutil/audioconvert.h is gone in ffmpeg3.x
  
  #include "config.h"
  #include "options/options.h"
---- src/mpv/audio/filter/af_lavrresample.c	2015-05-20 11:31:58.000000000 +0200
-+++ src/mpv/audio/filter/af_lavrresample.c	2016-09-22 19:57:13.539200765 +0200
+--- a/src/mpv/audio/filter/af_lavrresample.c
++++ b/src/mpv/audio/filter/af_lavrresample.c
 @@ -28,7 +28,6 @@
  #include <assert.h>
  
diff --git a/srcpkgs/bomi/patches/ffmpeg4.patch b/srcpkgs/bomi/patches/ffmpeg4.patch
index 1ce9ea97b4b8..fefd786df654 100644
--- a/srcpkgs/bomi/patches/ffmpeg4.patch
+++ b/srcpkgs/bomi/patches/ffmpeg4.patch
@@ -2,8 +2,8 @@ source: https://github.com/d-s-x/bomi/commit/c1473b38bf92e9ac858fd58588a9d45fe71
 
 diff --git a/src/bomi/video/ffmpegfilters.hpp b/src/bomi/video/ffmpegfilters.hpp
 index 77b1df41c5..5365525c48 100644
---- src/bomi/video/ffmpegfilters.hpp
-+++ src/bomi/video/ffmpegfilters.hpp
+--- a/src/bomi/video/ffmpegfilters.hpp
++++ b/src/bomi/video/ffmpegfilters.hpp
 @@ -6,7 +6,7 @@
  extern "C" {
  #include <video/mp_image_pool.h>
@@ -15,8 +15,8 @@ index 77b1df41c5..5365525c48 100644
  #include "enum/deintmethod.hpp"
 diff --git a/src/mpv/audio/out/ao_lavc.c b/src/mpv/audio/out/ao_lavc.c
 index b322982566..d1991e1d37 100644
---- src/mpv/audio/out/ao_lavc.c
-+++ src/mpv/audio/out/ao_lavc.c
+--- a/src/mpv/audio/out/ao_lavc.c
++++ b/src/mpv/audio/out/ao_lavc.c
 @@ -156,8 +156,8 @@ static int init(struct ao *ao)
          ac->buffer_size =
              ac->aframesize * ac->sample_size * ao->channels.num * 2 + 200;
@@ -30,8 +30,8 @@ index b322982566..d1991e1d37 100644
      // enough frames for at least 0.25 seconds
 diff --git a/src/mpv/common/av_common.c b/src/mpv/common/av_common.c
 index 05c694702d..fb6206bc01 100644
---- src/mpv/common/av_common.c
-+++ src/mpv/common/av_common.c
+--- a/src/mpv/common/av_common.c
++++ b/src/mpv/common/av_common.c
 @@ -36,7 +36,7 @@ int mp_lavc_set_extradata(AVCodecContext *avctx, void *ptr, int size)
      if (size) {
          av_free(avctx->extradata);
@@ -52,8 +52,8 @@ index 05c694702d..fb6206bc01 100644
  // We merely pass-through our PTS/DTS as an int64_t; libavcodec won't use it.
 diff --git a/src/mpv/common/encode_lavc.c b/src/mpv/common/encode_lavc.c
 index 2a01bee380..9c97c97a88 100644
---- src/mpv/common/encode_lavc.c
-+++ src/mpv/common/encode_lavc.c
+--- a/src/mpv/common/encode_lavc.c
++++ b/src/mpv/common/encode_lavc.c
 @@ -476,7 +476,7 @@ static void encode_2pass_prepare(struct encode_lavc_context *ctx,
              if (!(*bytebuf = stream_open(buf, ctx->global))) {
                  MP_WARN(ctx, "%s: could not open '%s', "
@@ -83,8 +83,8 @@ index 2a01bee380..9c97c97a88 100644
                         "           ********************************************\n"
 diff --git a/src/mpv/demux/demux_lavf.c b/src/mpv/demux/demux_lavf.c
 index 943fb1d8af..6f438249ad 100644
---- src/mpv/demux/demux_lavf.c
-+++ src/mpv/demux/demux_lavf.c
+--- a/src/mpv/demux/demux_lavf.c
++++ b/src/mpv/demux/demux_lavf.c
 @@ -318,7 +318,7 @@ static int lavf_check_file(demuxer_t *demuxer, enum demux_check check)
          // Disable file-extension matching with normal checks
          .filename = check <= DEMUX_CHECK_REQUEST ? priv->filename : "",
@@ -96,8 +96,8 @@ index 943fb1d8af..6f438249ad 100644
          return -1;
 diff --git a/src/mpv/demux/packet.c b/src/mpv/demux/packet.c
 index 22b111b0ce..62cd90ef7e 100644
---- src/mpv/demux/packet.c
-+++ src/mpv/demux/packet.c
+--- a/src/mpv/demux/packet.c
++++ b/src/mpv/demux/packet.c
 @@ -92,7 +92,7 @@ void demux_packet_shorten(struct demux_packet *dp, size_t len)
  {
      assert(len <= dp->len);
@@ -109,8 +109,8 @@ index 22b111b0ce..62cd90ef7e 100644
  void free_demux_packet(struct demux_packet *dp)
 diff --git a/src/mpv/video/decode/vd_lavc.c b/src/mpv/video/decode/vd_lavc.c
 index ffd56350b6..2589faf4ec 100644
---- src/mpv/video/decode/vd_lavc.c
-+++ src/mpv/video/decode/vd_lavc.c
+--- a/src/mpv/video/decode/vd_lavc.c
++++ b/src/mpv/video/decode/vd_lavc.c
 @@ -377,15 +377,15 @@ static void init_avctx(struct dec_video *vd, const char *decoder,
          mp_set_avcodec_threads(vd->log, avctx, lavc_param->threads);
      }
@@ -135,8 +135,8 @@ index ffd56350b6..2589faf4ec 100644
  
 diff --git a/src/mpv/video/out/vo_lavc.c b/src/mpv/video/out/vo_lavc.c
 index 3a6903b7fd..895e0952a5 100644
---- src/mpv/video/out/vo_lavc.c
-+++ src/mpv/video/out/vo_lavc.c
+--- a/src/mpv/video/out/vo_lavc.c
++++ b/src/mpv/video/out/vo_lavc.c
 @@ -166,8 +166,8 @@ static int reconfig(struct vo *vo, struct mp_image_params *params, int flags)
          goto error;
  
diff --git a/srcpkgs/bomi/patches/fix-cxx14.patch b/srcpkgs/bomi/patches/fix-cxx14.patch
index ea01ffbc57bc..fb6a41c9b27d 100644
--- a/srcpkgs/bomi/patches/fix-cxx14.patch
+++ b/srcpkgs/bomi/patches/fix-cxx14.patch
@@ -1,5 +1,5 @@
---- src/bomi/bomi.pro	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/bomi.pro	2016-09-22 20:03:57.452315214 +0200
+--- a/src/bomi/bomi.pro
++++ b/src/bomi/bomi.pro
 @@ -19,6 +19,7 @@
  }
  
@@ -8,8 +8,8 @@
  
  contains(QMAKE_CXX, clang++) {
  QMAKE_CXXFLAGS += -Wno-missing-braces
---- src/bomi/misc/filenamegenerator.cpp	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/misc/filenamegenerator.cpp	2016-09-22 20:06:10.523355518 +0200
+--- a/src/bomi/misc/filenamegenerator.cpp
++++ b/src/bomi/misc/filenamegenerator.cpp
 @@ -51,8 +51,8 @@
          };
          get[u"%MEDIA_DISPLAY_NAME%"_q] = [] (const FileNameGenerator *g) { return g->mediaName; };
@@ -21,8 +21,8 @@
          return get;
      }();
      auto ret = func.value(ph);
---- src/bomi/misc/filenamegenerator.hpp	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/misc/filenamegenerator.hpp	2016-09-22 20:07:13.762375106 +0200
+--- a/src/bomi/misc/filenamegenerator.hpp
++++ b/src/bomi/misc/filenamegenerator.hpp
 @@ -11,7 +11,7 @@
      QTime start, end;
      QString mediaName;
@@ -32,8 +32,8 @@
  };
  
  #endif // FILENAMEGENERATOR_HPP
---- src/bomi/player/mainwindow_p.cpp	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/player/mainwindow_p.cpp	2016-09-22 20:08:20.590396090 +0200
+--- a/src/bomi/player/mainwindow_p.cpp
++++ b/src/bomi/player/mainwindow_p.cpp
 @@ -910,7 +910,7 @@
      g.dateTime = QDateTime::currentDateTime();
      g.start = QTime::fromMSecsSinceStartOfDay(e.time());
@@ -43,8 +43,8 @@
      g.mrl = e.mrl();
      g.mediaName = e.media()->name();
      return g;
---- src/bomi/player/mainwindow_p.hpp	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/player/mainwindow_p.hpp	2016-09-22 20:09:18.003414361 +0200
+--- a/src/bomi/player/mainwindow_p.hpp
++++ b/src/bomi/player/mainwindow_p.hpp
 @@ -101,7 +101,7 @@
  
      struct {
@@ -54,8 +54,8 @@
          QMap<QString, std::function<QString(void)>> get;
      } ph;
      QTimer waiter, hider, dialogWorkaround;
---- src/bomi/dialog/encoderdialog.cpp	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/dialog/encoderdialog.cpp	2016-09-22 20:05:18.684339670 +0200
+--- a/src/bomi/dialog/encoderdialog.cpp
++++ b/src/bomi/dialog/encoderdialog.cpp
 @@ -255,7 +255,7 @@
  {
      if (d->size.isEmpty())
diff --git a/srcpkgs/bomi/patches/fix-sysctl_h.patch b/srcpkgs/bomi/patches/fix-sysctl_h.patch
index 48bb772114b8..4a4150004b94 100644
--- a/srcpkgs/bomi/patches/fix-sysctl_h.patch
+++ b/srcpkgs/bomi/patches/fix-sysctl_h.patch
@@ -1,5 +1,5 @@
---- src/bomi/os/mac.mm	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/os/mac.mm	2021-01-16 10:51:12.701668482 +0100
+--- a/src/bomi/os/mac.mm
++++ b/src/bomi/os/mac.mm
 @@ -274,7 +274,7 @@
  
  
@@ -9,8 +9,8 @@
  #include <mach/mach_host.h>
  #include <mach/task.h>
  #include <libproc.h>
---- src/bomi/os/x11.cpp	2015-05-20 11:31:58.000000000 +0200
-+++ src/bomi/os/x11.cpp	2021-01-16 10:51:04.559292267 +0100
+--- a/src/bomi/os/x11.cpp
++++ b/src/bomi/os/x11.cpp
 @@ -15,7 +15,7 @@
  #include <fcntl.h>
  #include <time.h>
diff --git a/srcpkgs/bomi/template b/srcpkgs/bomi/template
index f66197af1d88..4cab853148a5 100644
--- a/srcpkgs/bomi/template
+++ b/srcpkgs/bomi/template
@@ -21,7 +21,6 @@ changelog="https://raw.githubusercontent.com/xylosper/bomi/master/CHANGES.txt"
 distfiles="https://github.com/xylosper/bomi/archive/v${version}.tar.gz"
 checksum=c76ac45733cdafa7003bbc178e5a90a683df9aec30cd85f188bb17c7af9e282e
 nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/1382/steps/shell_3/logs/stdio
-patch_args=-Np0
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/bonnie++/patches/configure.patch b/srcpkgs/bonnie++/patches/configure.patch
index 91bb9c1bb61c..c2be485c1d09 100644
--- a/srcpkgs/bonnie++/patches/configure.patch
+++ b/srcpkgs/bonnie++/patches/configure.patch
@@ -1,7 +1,7 @@
 diff --git configure configure
 index 4495abe..951dd7e 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -2664,7 +2664,7 @@ $as_echo "$ac_try_echo"; } >&5
      else
  	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
diff --git a/srcpkgs/bonnie++/template b/srcpkgs/bonnie++/template
index 5c1be95b51f3..8fa4be8c3d62 100644
--- a/srcpkgs/bonnie++/template
+++ b/srcpkgs/bonnie++/template
@@ -9,7 +9,6 @@ license="GPL-2.0-only"
 homepage="http://www.coker.com.au/bonnie++/"
 distfiles="http://www.coker.com.au/bonnie++/bonnie++-${version}.tgz"
 checksum=6e0bcbc08b78856fd998dd7bcb352d4615a99c26c2dc83d5b8345b102bad0b04
-patch_args=-Np0
 
 post_extract() {
 	sed -i  -e 's/sbin/bin/g' \
diff --git a/srcpkgs/boomerang/patches/dont_include_toolchain-file.patch b/srcpkgs/boomerang/patches/dont_include_toolchain-file.patch
index 3a0bb2eacb32..ca41b27dfdbf 100644
--- a/srcpkgs/boomerang/patches/dont_include_toolchain-file.patch
+++ b/srcpkgs/boomerang/patches/dont_include_toolchain-file.patch
@@ -1,5 +1,5 @@
---- CMakeLists.txt
-+++ CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
 @@ -16,9 +16,6 @@
      set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" CACHE STRING "")
  endif (DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
diff --git a/srcpkgs/boomerang/patches/fix-cflags.patch b/srcpkgs/boomerang/patches/fix-cflags.patch
index eb59766c1c5b..75fd0f274e09 100644
--- a/srcpkgs/boomerang/patches/fix-cflags.patch
+++ b/srcpkgs/boomerang/patches/fix-cflags.patch
@@ -1,7 +1,7 @@
 Index: cmake-scripts/boomerang-flags.cmake
 ===================================================================
---- cmake-scripts/boomerang-flags.cmake
-+++ cmake-scripts/boomerang-flags.cmake
+--- a/cmake-scripts/boomerang-flags.cmake
++++ b/cmake-scripts/boomerang-flags.cmake
 @@ -104,16 +104,6 @@ endif ()
  
  
diff --git a/srcpkgs/boomerang/patches/include-stdint.patch b/srcpkgs/boomerang/patches/include-stdint.patch
index 025d00c5dea1..00ab6341eab0 100644
--- a/srcpkgs/boomerang/patches/include-stdint.patch
+++ b/srcpkgs/boomerang/patches/include-stdint.patch
@@ -1,5 +1,5 @@
---- src/boomerang-plugins/codegen/c/ControlFlowAnalyzer.h
-+++ src/boomerang-plugins/codegen/c/ControlFlowAnalyzer.h
+--- a/src/boomerang-plugins/codegen/c/ControlFlowAnalyzer.h
++++ b/src/boomerang-plugins/codegen/c/ControlFlowAnalyzer.h
 @@ -9,7 +9,7 @@
  #pragma endregion License
  #pragma once
diff --git a/srcpkgs/boomerang/template b/srcpkgs/boomerang/template
index 00b49809a562..904e0e8571ff 100644
--- a/srcpkgs/boomerang/template
+++ b/srcpkgs/boomerang/template
@@ -14,7 +14,6 @@ license="BSD-3-Clause"
 homepage="https://github.com/BoomerangDecompiler/boomerang"
 distfiles="https://github.com/BoomerangDecompiler/boomerang/archive/v${version}.tar.gz"
 checksum=1d2c9c2f5de1a3e1d5fe3879e82bca268d1c49e6ba3d0a7848695f18c594384d
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*) ;;
diff --git a/srcpkgs/boost/patches/mips.patch b/srcpkgs/boost/patches/mips.patch
index 502ae1cf597a..42a10872e42d 100644
--- a/srcpkgs/boost/patches/mips.patch
+++ b/srcpkgs/boost/patches/mips.patch
@@ -1,5 +1,5 @@
---- boost/fiber/detail/cpu_relax.hpp	2017-09-02 11:56:11.000000000 +0200
-+++ boost/fiber/detail/cpu_relax.hpp	2017-11-09 17:25:40.258995963 +0100
+--- a/boost/fiber/detail/cpu_relax.hpp
++++ b/boost/fiber/detail/cpu_relax.hpp
 @@ -48,7 +48,7 @@
  #  define cpu_relax() asm volatile ("nop" ::: "memory");
  # endif
diff --git a/srcpkgs/boost/patches/musl-memset.patch b/srcpkgs/boost/patches/musl-memset.patch
index b7e2baa12c9d..f7f2ec75e0ae 100644
--- a/srcpkgs/boost/patches/musl-memset.patch
+++ b/srcpkgs/boost/patches/musl-memset.patch
@@ -1,5 +1,5 @@
---- libs/fiber/src/numa/linux/pin_thread.cpp.orig	2017-09-02 09:56:11.000000000 +0000
-+++ libs/fiber/src/numa/linux/pin_thread.cpp	2017-09-17 10:31:55.644242100 +0000
+--- a/libs/fiber/src/numa/linux/pin_thread.cpp
++++ b/libs/fiber/src/numa/linux/pin_thread.cpp
 @@ -9,6 +9,7 @@
  extern "C" {
  #include <pthread.h>
diff --git a/srcpkgs/boost/template b/srcpkgs/boost/template
index 23f6a6acc51c..5b559e932d18 100644
--- a/srcpkgs/boost/template
+++ b/srcpkgs/boost/template
@@ -12,7 +12,6 @@ homepage="http://www.boost.org/"
 distfiles="https://dl.bintray.com/boostorg/release/${version}/source/boost_${version//./_}.tar.bz2"
 checksum=59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417cc660722
 python_version=3
-patch_args=-Np0
 
 CXXFLAGS="-std=c++14"
 
diff --git a/srcpkgs/bootchart2/patches/python-3.9.patch b/srcpkgs/bootchart2/patches/python-3.9.patch
index 617e2e1586b4..a5f7995678ab 100644
--- a/srcpkgs/bootchart2/patches/python-3.9.patch
+++ b/srcpkgs/bootchart2/patches/python-3.9.patch
@@ -1,7 +1,7 @@
 Index: pybootchartgui/draw.py
 ===================================================================
---- pybootchartgui/draw.py.orig
-+++ pybootchartgui/draw.py
+--- a/pybootchartgui/draw.py.orig
++++ b/pybootchartgui/draw.py
 @@ -508,7 +508,7 @@ def draw_processes_recursively(ctx, proc
  		cmdString = proc.cmd
  	else:
@@ -22,8 +22,8 @@ Index: pybootchartgui/draw.py
  			v = 1.0
 Index: pybootchartgui/parsing.py
 ===================================================================
---- pybootchartgui/parsing.py.orig
-+++ pybootchartgui/parsing.py
+--- a/pybootchartgui/parsing.py.orig
++++ b/pybootchartgui/parsing.py
 @@ -98,7 +98,7 @@ class Trace:
      def compile(self, writer):
  
diff --git a/srcpkgs/bootchart2/patches/rdinit-fix-panic.patch b/srcpkgs/bootchart2/patches/rdinit-fix-panic.patch
index 2027d5d5b035..ac17335f2fba 100644
--- a/srcpkgs/bootchart2/patches/rdinit-fix-panic.patch
+++ b/srcpkgs/bootchart2/patches/rdinit-fix-panic.patch
@@ -1,5 +1,5 @@
---- bootchartd.in.orig	2021-01-24 15:52:43.339735933 +0700
-+++ bootchartd.in	2021-01-24 15:53:30.256889311 +0700
+--- a/bootchartd.in
++++ b/bootchartd.in
 @@ -32,6 +32,7 @@
  # some initrds don't have usleep etc.
  USLEEP="$COLLECTOR_BIN --usleep"
diff --git a/srcpkgs/bootchart2/template b/srcpkgs/bootchart2/template
index e63b864e5e44..62cd9d2116a3 100644
--- a/srcpkgs/bootchart2/template
+++ b/srcpkgs/bootchart2/template
@@ -16,7 +16,6 @@ distfiles="https://github.com/xrmx/bootchart/archive/${version}.tar.gz"
 checksum=cec7871c3dba47a1165873b0acde30a82221fde1d3a942da5e7dd09b513d2017
 make_dirs="/usr/lib/bootchart/tmpfs 0755 root root"
 conflicts="bootchart>=0"
-patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's,\$(EARLY_PREFIX)/sbin/,/usr/bin/,' Makefile
diff --git a/srcpkgs/botan/patches/botan_types_include_climits.patch b/srcpkgs/botan/patches/botan_types_include_climits.patch
index 1bc10aa8ff31..3029c38f68f8 100644
--- a/srcpkgs/botan/patches/botan_types_include_climits.patch
+++ b/srcpkgs/botan/patches/botan_types_include_climits.patch
@@ -1,5 +1,5 @@
---- src/lib/utils/types.h.orig	2017-10-13 08:08:04.055686756 +0000
-+++ src/lib/utils/types.h	2017-10-13 08:08:46.043688922 +0000
+--- a/src/lib/utils/types.h
++++ b/src/lib/utils/types.h
 @@ -12,6 +12,7 @@
  
  #include <botan/build.h> // IWYU pragma: export
diff --git a/srcpkgs/botan/template b/srcpkgs/botan/template
index 5e9e3c803e32..d2e6ffb9ccda 100644
--- a/srcpkgs/botan/template
+++ b/srcpkgs/botan/template
@@ -14,7 +14,6 @@ homepage="https://botan.randombit.net/"
 distfiles="https://botan.randombit.net/releases/Botan-${version}.tar.xz"
 checksum=92ed6ebc918d86bd1b04221ca518af4cf29cc326c4760740bd2d22e61cea2628
 python_version=3
-patch_args=-Np0
 
 LDFLAGS="-pthread"
 CXXFLAGS="-O3"
diff --git a/srcpkgs/bridge-utils/patches/cflags.patch b/srcpkgs/bridge-utils/patches/cflags.patch
index 15b200bbfb2f..01800bf05b57 100644
--- a/srcpkgs/bridge-utils/patches/cflags.patch
+++ b/srcpkgs/bridge-utils/patches/cflags.patch
@@ -1,5 +1,5 @@
---- libbridge/Makefile.in.orig
-+++ libbridge/Makefile.in
+--- a/libbridge/Makefile.in.orig
++++ b/libbridge/Makefile.in
 @@ -5,7 +5,7 @@
  RANLIB=@RANLIB@
  
diff --git a/srcpkgs/bridge-utils/patches/fix-musl.patch b/srcpkgs/bridge-utils/patches/fix-musl.patch
index bed389d113ca..fff022a4e37c 100644
--- a/srcpkgs/bridge-utils/patches/fix-musl.patch
+++ b/srcpkgs/bridge-utils/patches/fix-musl.patch
@@ -1,5 +1,5 @@
---- libbridge/libbridge.h.orig	2015-12-30 17:26:10.283593908 +0100
-+++ libbridge/libbridge.h	2015-12-30 17:26:21.535594424 +0100
+--- a/libbridge/libbridge.h
++++ b/libbridge/libbridge.h
 @@ -23,6 +23,7 @@
  #include <netinet/in.h>
  #include <linux/if.h>
diff --git a/srcpkgs/bridge-utils/template b/srcpkgs/bridge-utils/template
index e50ac51ba446..08827cd6ad58 100644
--- a/srcpkgs/bridge-utils/template
+++ b/srcpkgs/bridge-utils/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge"
 distfiles="${KERNEL_SITE}/utils/net/bridge-utils/bridge-utils-${version}.tar.xz"
 checksum=cc67efb5d5fb8928a6569b3fade2b4042ec17da04678dab127d96b46489e26c8
-patch_args=-Np0
 
 pre_configure() {
 	sed "s/u_int\([0-9]*\)_t/uint\1_t/" -i libbridge/libbridge.h
diff --git a/srcpkgs/brltty/patches/crosspython.patch b/srcpkgs/brltty/patches/crosspython.patch
index da3ee93a2b61..38a538936281 100644
--- a/srcpkgs/brltty/patches/crosspython.patch
+++ b/srcpkgs/brltty/patches/crosspython.patch
@@ -1,6 +1,6 @@
 diff -Naur brltty-5.5/Bindings/Python/Makefile.in brltty-5.5.new/Bindings/Python/Makefile.in
---- Bindings/Python/Makefile.in	2017-04-18 15:35:13.000000000 -0700
-+++ Bindings/Python/Makefile.in	2017-04-23 17:36:27.797793633 -0700
+--- a/Bindings/Python/Makefile.in
++++ b/Bindings/Python/Makefile.in
 @@ -1,3 +1,6 @@
 +export LDFLAGS= @LDFLAGS@ @PYTHON_LIBS@
 +export CFLAGS= @CFLAGS@ @PYTHON_CPPFLAGS@
diff --git a/srcpkgs/brltty/patches/time64.patch b/srcpkgs/brltty/patches/time64.patch
index 7efc1c7e54ad..d789746cab34 100644
--- a/srcpkgs/brltty/patches/time64.patch
+++ b/srcpkgs/brltty/patches/time64.patch
@@ -1,5 +1,5 @@
---- Programs/system_linux.c	2020-04-05 12:35:34.000000000 +0200
-+++ Programs/system_linux.c	2020-12-03 14:12:42.292642038 +0100
+--- a/Programs/system_linux.c
++++ b/Programs/system_linux.c
 @@ -957,9 +957,12 @@
  writeInputEvent (UinputObject *uinput, uint16_t type, uint16_t code, int32_t value) {
  #ifdef HAVE_LINUX_UINPUT_H
diff --git a/srcpkgs/brltty/template b/srcpkgs/brltty/template
index b9c6ba6ec6bf..53e15ed6ff03 100644
--- a/srcpkgs/brltty/template
+++ b/srcpkgs/brltty/template
@@ -14,7 +14,6 @@ homepage="http://mielke.cc/brltty/"
 distfiles="http://mielke.cc/brltty/archive/brltty-${version}.tar.xz"
 checksum=4a28e3f1879aee9082f9ce4100fd4053be47add7f8ab0f2af6d6a20590934b62
 python_version=3
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) configure_args="${configure_args} --with-ports-package=glibc";;
diff --git a/srcpkgs/broadcom-wl-dkms/patches/001-null-pointer-fix.patch b/srcpkgs/broadcom-wl-dkms/patches/001-null-pointer-fix.patch
index 1028097dc4a8..adef19f30af1 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/001-null-pointer-fix.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/001-null-pointer-fix.patch
@@ -10,8 +10,8 @@ Last-Update: 2015-08-18
 
 diff --git a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
 index 860b935..295156f 100644
---- src/wl/sys/wl_linux.c
-+++ src/wl/sys/wl_linux.c
+--- a/src/wl/sys/wl_linux.c
++++ b/src/wl/sys/wl_linux.c
 @@ -2157,8 +2157,8 @@ wl_start(struct sk_buff *skb, struct net_device *dev)
  	wlif = WL_DEV_IF(dev);
  	wl = WL_INFO(dev);
diff --git a/srcpkgs/broadcom-wl-dkms/patches/gcc-4.9.patch b/srcpkgs/broadcom-wl-dkms/patches/gcc-4.9.patch
index 6b58d1f600e8..2ba5d0d80d51 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/gcc-4.9.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/gcc-4.9.patch
@@ -1,7 +1,7 @@
 https://github.com/voidlinux/xbps-packages/issues/412
 
---- Makefile.orig	2014-05-21 12:47:46.915833131 +0200
-+++ Makefile	2014-05-21 12:48:54.027409879 +0200
+--- a/Makefile
++++ b/Makefile
 @@ -126,6 +126,8 @@ EXTRA_CFLAGS       += -I$(src)/src/wl/sy
  EXTRA_CFLAGS       += -I$(src)/src/shared/bcmwifi/include
  #EXTRA_CFLAGS       += -DBCMDBG_ASSERT
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-4.11.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-4.11.patch
index c618e8a28d24..ae73bcf9b6b1 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-4.11.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-4.11.patch
@@ -1,7 +1,7 @@
 diff --git a/src/wl/sys/wl_cfg80211_hybrid.c b/src/wl/sys/wl_cfg80211_hybrid.c
 index a9671e2..da36405 100644
---- src/wl/sys/wl_cfg80211_hybrid.c
-+++ src/wl/sys/wl_cfg80211_hybrid.c
+--- a/src/wl/sys/wl_cfg80211_hybrid.c
++++ b/src/wl/sys/wl_cfg80211_hybrid.c
 @@ -30,6 +30,9 @@
  #include <linux/kthread.h>
  #include <linux/netdevice.h>
@@ -14,8 +14,8 @@ index a9671e2..da36405 100644
  #include <net/rtnetlink.h>
 diff --git a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
 index 489c9f5..f8278ad 100644
---- src/wl/sys/wl_linux.c
-+++ src/wl/sys/wl_linux.c
+--- a/src/wl/sys/wl_linux.c
++++ b/src/wl/sys/wl_linux.c
 @@ -117,6 +117,9 @@ int wl_found = 0;
  
  typedef struct priv_link {
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-4.12.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-4.12.patch
index 40c379d0cec9..4458613c2df9 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-4.12.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-4.12.patch
@@ -1,6 +1,6 @@
 diff -ru work.orig/src/wl/sys/wl_cfg80211_hybrid.c work.patched/src/wl/sys/wl_cfg80211_hybrid.c
---- src/wl/sys/wl_cfg80211_hybrid.c	2017-06-10 15:50:27.328823384 -0700
-+++ src/wl/sys/wl_cfg80211_hybrid.c	2017-06-10 15:52:40.540809187 -0700
+--- a/src/wl/sys/wl_cfg80211_hybrid.c
++++ b/src/wl/sys/wl_cfg80211_hybrid.c
 @@ -52,8 +52,13 @@
  u32 wl_dbg_level = WL_DBG_ERR;
  #endif
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-4.15.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-4.15.patch
index 51c78b059162..38f82e0deaa0 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-4.15.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-4.15.patch
@@ -1,5 +1,5 @@
---- src/wl/sys/wl_linux.c     2018-01-31 11:33:26.000000000 +0100 
-+++ src/wl/sys/wl_linux.c     2018-01-31 15:27:18.000000000 +0100 
+--- a/src/wl/sys/wl_linux.c     2018-01-31 11:33:26.000000000 +0100 
++++ b/src/wl/sys/wl_linux.c     2018-01-31 15:27:18.000000000 +0100 
 @@ -93,7 +93,11 @@ 
   
  #include <wlc_wowl.h> 
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch
index 7373023db370..2e3a8f8aa738 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch
@@ -1,6 +1,6 @@
 diff -ru a/src/shared/linux_osl.c b/src/shared/linux_osl.c
---- src/shared/linux_osl.c	2015-09-18 15:47:30.000000000 -0700
-+++ src/shared/linux_osl.c	2015-11-14 15:38:10.484563014 -0800
+--- a/src/shared/linux_osl.c
++++ b/src/shared/linux_osl.c
 @@ -932,7 +932,11 @@
  	uint cycles;
  
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-4.7.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-4.7.patch
index df7c6962f37a..e2d0dfc23f22 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-4.7.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-4.7.patch
@@ -10,8 +10,8 @@ makes heavy use of that enum. The simple fix is to re-create the values.
 This patch came from the folks at Manjaro.
 https://github.com/manjaro/packages-extra/blob/master/broadcom-wl-dkms/linux-47.patch
 
---- src/wl/sys/wl_linux.h   2016-06-04 15:24:22.915341000 +0200
-+++ src/wl/sys/wl_linux.h   2016-06-04 15:29:36.236136244 +0200
+--- a/src/wl/sys/wl_linux.h   2016-06-04 15:24:22.915341000 +0200
++++ b/src/wl/sys/wl_linux.h   2016-06-04 15:29:36.236136244 +0200
 @@ -18,6 +18,13 @@
   * $Id: wl_linux.h 369548 2012-11-19 09:01:01Z $
   */
@@ -26,8 +26,8 @@ https://github.com/manjaro/packages-extra/blob/master/broadcom-wl-dkms/linux-47.
  #ifndef _wl_linux_h_
  #define _wl_linux_h_
 
---- src/wl/sys/wl_cfg80211_hybrid.h 2016-06-04 15:34:41.123022255 +0200
-+++ src/wl/sys/wl_cfg80211_hybrid.h 2016-06-04 15:37:25.391772105 +0200
+--- a/src/wl/sys/wl_cfg80211_hybrid.h 2016-06-04 15:34:41.123022255 +0200
++++ b/src/wl/sys/wl_cfg80211_hybrid.h 2016-06-04 15:37:25.391772105 +0200
 @@ -19,6 +19,13 @@
   * $Id: wl_cfg80211.h,v 1.1.8.1 2011-01-26 00:57:46 $
   */
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-4.8.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-4.8.patch
index 185376b9080b..467a4a484d5d 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-4.8.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-4.8.patch
@@ -1,7 +1,7 @@
 Reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839629
 
---- src/wl/sys/wl_cfg80211_hybrid.c	2016-10-03 10:53:55.588036464 +0200
-+++ src/wl/sys/wl_cfg80211_hybrid.c	2016-10-03 10:54:11.911695944 +0200
+--- a/src/wl/sys/wl_cfg80211_hybrid.c
++++ b/src/wl/sys/wl_cfg80211_hybrid.c
 @@ -2386,8 +2386,15 @@
  	s32 err = 0;
  
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-5.1.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-5.1.patch
index 3c87fbe6ad57..1820dff63c20 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-5.1.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-5.1.patch
@@ -1,5 +1,5 @@
---- src/wl/sys/wl_cfg80211_hybrid.c
-+++ src/wl/sys/wl_cfg80211_hybrid.c
+--- a/src/wl/sys/wl_cfg80211_hybrid.c
++++ b/src/wl/sys/wl_cfg80211_hybrid.c
 @@ -43,6 +43,9 @@
  #define EVENT_FLAGS(e) dtoh16((e)->flags)
  #define EVENT_STATUS(e) dtoh32((e)->status)
@@ -10,8 +10,8 @@
  #ifdef BCMDBG
  u32 wl_dbg_level = WL_DBG_ERR | WL_DBG_INFO;
  #else
---- src/wl/sys/wl_iw.c
-+++ src/wl/sys/wl_iw.c
+--- a/src/wl/sys/wl_iw.c
++++ b/src/wl/sys/wl_iw.c
 @@ -61,6 +61,9 @@ typedef struct priv_link {
  	wl_iw_t *wliw;
  } priv_link_t;
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-5.10.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-5.10.patch
index b3b136f55869..3e6101319c21 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-5.10.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-5.10.patch
@@ -26,8 +26,8 @@ Signed-off-by: Joan Bruguera <joanbrugueram@gmail.com>
  5 files changed, 42 insertions(+), 51 deletions(-)
 
 diff -u -r src/wl/sys/wl_cfg80211_hybrid.c src/wl/sys/wl_cfg80211_hybrid.c
---- src/wl/sys/wl_cfg80211_hybrid.c	2021-01-25 08:55:05.625224400 -0800
-+++ src/wl/sys/wl_cfg80211_hybrid.c	2021-01-25 08:58:30.000982902 -0800
+--- a/src/wl/sys/wl_cfg80211_hybrid.c
++++ b/src/wl/sys/wl_cfg80211_hybrid.c
 @@ -41,6 +41,7 @@
  #include <wlioctl.h>
  #include <proto/802.11.h>
@@ -69,8 +69,8 @@ diff -u -r src/wl/sys/wl_cfg80211_hybrid.c src/wl/sys/wl_cfg80211_hybrid.c
  
  static s32
 diff -u -r src/wl/sys/wl_iw.c src/wl/sys/wl_iw.c
---- src/wl/sys/wl_iw.c	2021-01-25 09:00:13.163543809 -0800
-+++ src/wl/sys/wl_iw.c	2021-01-25 09:02:04.218646005 -0800
+--- a/src/wl/sys/wl_iw.c
++++ b/src/wl/sys/wl_iw.c
 @@ -37,6 +37,7 @@
  
  #include <wl_dbg.h>
@@ -111,8 +111,8 @@ diff -u -r src/wl/sys/wl_iw.c src/wl/sys/wl_iw.c
  
  static int
 diff -u -r src/wl/sys/wl_linux.c src/wl/sys/wl_linux.c
---- src/wl/sys/wl_linux.c	2021-01-25 09:02:08.055475147 -0800
-+++ src/wl/sys/wl_linux.c	2021-01-25 09:06:11.894764339 -0800
+--- a/src/wl/sys/wl_linux.c
++++ b/src/wl/sys/wl_linux.c
 @@ -1650,10 +1650,7 @@
  		goto done2;
  	}
@@ -175,8 +175,8 @@ diff -u -r src/wl/sys/wl_linux.c src/wl/sys/wl_linux.c
  }
  
 diff -u -r src/wl/sys/wl_linux.h src/wl/sys/wl_linux.h
---- src/wl/sys/wl_linux.h	2021-01-25 09:06:15.188672391 -0800
-+++ src/wl/sys/wl_linux.h	2021-01-25 09:07:49.457810535 -0800
+--- a/src/wl/sys/wl_linux.h
++++ b/src/wl/sys/wl_linux.h
 @@ -29,6 +29,7 @@
  #define _wl_linux_h_
  
@@ -194,8 +194,8 @@ diff -u -r src/wl/sys/wl_linux.h src/wl/sys/wl_linux.h
  
  #endif 
 diff -u -r src/wl/sys/wlc_pub.h src/wl/sys/wlc_pub.h
---- src/wl/sys/wlc_pub.h	2021-01-25 09:07:54.543645032 -0800
-+++ src/wl/sys/wlc_pub.h	2021-01-25 09:08:10.772110464 -0800
+--- a/src/wl/sys/wlc_pub.h
++++ b/src/wl/sys/wlc_pub.h
 @@ -24,6 +24,7 @@
  
  #include <wlc_types.h>
diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-5.6.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-5.6.patch
index e97819c80e67..113fd092ecce 100644
--- a/srcpkgs/broadcom-wl-dkms/patches/linux-5.6.patch
+++ b/srcpkgs/broadcom-wl-dkms/patches/linux-5.6.patch
@@ -1,7 +1,7 @@
 diff --git src/shared/linux_osl.c src/shared/linux_osl.c
 index 6157d18..8237ec7 100644
---- src/shared/linux_osl.c
-+++ src/shared/linux_osl.c
+--- a/src/shared/linux_osl.c
++++ b/src/shared/linux_osl.c
 @@ -942,7 +942,7 @@ osl_getcycles(void)
  void *
  osl_reg_map(uint32 pa, uint size)
@@ -13,8 +13,8 @@ index 6157d18..8237ec7 100644
  void
 diff --git src/wl/sys/wl_linux.c src/wl/sys/wl_linux.c
 index 0d05100..2ed1f0d 100644
---- src/wl/sys/wl_linux.c
-+++ src/wl/sys/wl_linux.c
+--- a/src/wl/sys/wl_linux.c
++++ b/src/wl/sys/wl_linux.c
 @@ -582,7 +582,7 @@ wl_attach(uint16 vendor, uint16 device, ulong regs,
  	}
  	wl->bcm_bustype = bustype;
diff --git a/srcpkgs/broadcom-wl-dkms/template b/srcpkgs/broadcom-wl-dkms/template
index a31c8c385c7c..55bc9c0e1d36 100644
--- a/srcpkgs/broadcom-wl-dkms/template
+++ b/srcpkgs/broadcom-wl-dkms/template
@@ -1,5 +1,4 @@
 # Template file for 'broadcom-wl-dkms'
-patch_args=-Np0
 
 pkgname=broadcom-wl-dkms
 version=6.30.223.271
diff --git a/srcpkgs/browsh/patches/go-bindata.patch b/srcpkgs/browsh/patches/go-bindata.patch
index 08b9763ccc3c..6b9d9353bcda 100644
--- a/srcpkgs/browsh/patches/go-bindata.patch
+++ b/srcpkgs/browsh/patches/go-bindata.patch
@@ -5,8 +5,8 @@ end with one.
 ---
 diff --git interfacer/src/browsh/firefox.go interfacer/src/browsh/firefox.go
 index 00a9d72..2620522 100644
---- interfacer/src/browsh/firefox.go
-+++ interfacer/src/browsh/firefox.go
+--- a/interfacer/src/browsh/firefox.go
++++ b/interfacer/src/browsh/firefox.go
 @@ -227,7 +227,7 @@ func firefoxMarionette() {
  // Install the Browsh extension that was bundled with `go-bindata` under
  // `webextension.go`.
diff --git a/srcpkgs/browsh/patches/modules.patch b/srcpkgs/browsh/patches/modules.patch
index 8eb89a51c826..06790dc7e265 100644
--- a/srcpkgs/browsh/patches/modules.patch
+++ b/srcpkgs/browsh/patches/modules.patch
@@ -3,8 +3,8 @@ Patch from: https://github.com/browsh-org/browsh/commit/84f5382eda69e206c49bfaa7
 diff --git interfacer/cmd/browsh/main.go b/interfacer/cmd/browsh/main.go
 new file mode 100644
 index 0000000..c6693f4
---- /dev/null
-+++ interfacer/cmd/browsh/main.go
+--- a//dev/null
++++ b/interfacer/cmd/browsh/main.go
 @@ -0,0 +1,7 @@
 +package main
 +
@@ -16,8 +16,8 @@ index 0000000..c6693f4
 diff --git interfacer/go.mod b/interfacer/go.mod
 new file mode 100644
 index 0000000..0c92241
---- /dev/null
-+++ interfacer/go.mod
+--- a//dev/null
++++ b/interfacer/go.mod
 @@ -0,0 +1,34 @@
 +module github.com/browsh-org/browsh/interfacer
 +
@@ -56,8 +56,8 @@ index 0000000..0c92241
 diff --git interfacer/go.sum b/interfacer/go.sum
 new file mode 100644
 index 0000000..b1fe86f
---- /dev/null
-+++ interfacer/go.sum
+--- a//dev/null
++++ b/interfacer/go.sum
 @@ -0,0 +1,176 @@
 +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
 +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
@@ -238,8 +238,8 @@ index 0000000..b1fe86f
 diff --git interfacer/src/main.go b/interfacer/src/main.go
 deleted file mode 100644
 index 08e2bf5..0000000
---- interfacer/src/main.go
-+++ /dev/null
+--- a/interfacer/src/main.go
++++ b//dev/null
 @@ -1,7 +0,0 @@
 -package main
 -
diff --git a/srcpkgs/browsh/template b/srcpkgs/browsh/template
index 67675e7dcab0..856fefd13d78 100644
--- a/srcpkgs/browsh/template
+++ b/srcpkgs/browsh/template
@@ -17,7 +17,6 @@ distfiles="https://$go_import_path/archive/v$version.tar.gz
 checksum="965ce2d94d1d9e4b92411d344421c0bea40994527cafd694c5a6e8e206681ede
  b410527a69dba88a30d8a6d341a20eb5cb1f84b684e9bc8bb6bc88a2930e0eea"
 skip_extraction="browsh.xpi"
-patch_args=-Np0
 
 pre_build() {
 	_prefix="$XBPS_SRCDISTDIR/$pkgname-$version"
diff --git a/srcpkgs/bsdiff/patches/CVE-2014-9862.diff b/srcpkgs/bsdiff/patches/CVE-2014-9862.diff
index eb2710d8afbc..ef69f44ba908 100644
--- a/srcpkgs/bsdiff/patches/CVE-2014-9862.diff
+++ b/srcpkgs/bsdiff/patches/CVE-2014-9862.diff
@@ -1,5 +1,5 @@
---- bspatch.c.orig
-+++ bspatch.c
+--- a/bspatch.c.orig
++++ b/bspatch.c
 @@ -164,6 +164,10 @@
  		}
  
diff --git a/srcpkgs/bsdiff/template b/srcpkgs/bsdiff/template
index 5f038e447a77..d1396b8c707c 100644
--- a/srcpkgs/bsdiff/template
+++ b/srcpkgs/bsdiff/template
@@ -10,7 +10,6 @@ homepage="http://www.daemonology.net/bsdiff"
 distfiles="${DEBIAN_SITE}/main/b/bsdiff/bsdiff_${version}.orig.tar.gz"
 #distfiles="${homepage}/${pkgname}-${version}.tar.gz"
 checksum=18821588b2dc5bf159aa37d3bcb7b885d85ffd1e19f23a0c57a58723fea85f48
-patch_args=-Np0
 
 do_build() {
 	for i in diff patch; do
diff --git a/srcpkgs/bsdunzip/patches/add-license.patch b/srcpkgs/bsdunzip/patches/add-license.patch
index c235b57181c7..bd7c66773cca 100644
--- a/srcpkgs/bsdunzip/patches/add-license.patch
+++ b/srcpkgs/bsdunzip/patches/add-license.patch
@@ -8,8 +8,8 @@ Subject: [PATCH] Add LICENSE (closes #1)
  1 file changed, 24 insertions(+)
  create mode 100644 LICENSE
 
---- /dev/null
-+++ LICENSE
+--- a//dev/null
++++ b/LICENSE
 @@ -0,0 +1,24 @@
 +This license file only applies to the Makefile and README.md within the root
 +of this repository. I claim no copyright on `/usr.bin/unzip`, or any files
diff --git a/srcpkgs/bsdunzip/template b/srcpkgs/bsdunzip/template
index 922b71d2b7de..e6ac1e4a369f 100644
--- a/srcpkgs/bsdunzip/template
+++ b/srcpkgs/bsdunzip/template
@@ -10,7 +10,6 @@ license="BSD-2-Clause, ISC"
 homepage="https://github.com/somasis/bsdunzip"
 distfiles="https://github.com/somasis/bsdunzip/archive/${version}.tar.gz"
 checksum=06c52c77fa518732665aa2daa73f364cd2470a5d47a83c9c79f86f207cf3ecc1
-patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/bti/patches/0db8dc6022f67a4e1f49397b8bf519b2a34f74c9.patch b/srcpkgs/bti/patches/0db8dc6022f67a4e1f49397b8bf519b2a34f74c9.patch
index fcecd4e22037..1e214becc4e4 100644
--- a/srcpkgs/bti/patches/0db8dc6022f67a4e1f49397b8bf519b2a34f74c9.patch
+++ b/srcpkgs/bti/patches/0db8dc6022f67a4e1f49397b8bf519b2a34f74c9.patch
@@ -11,8 +11,8 @@ macro calls with a != NULL statement.
 
 diff --git a/bti.c b/bti.c
 index 7f485a8..9b68e17 100644
---- bti.c
-+++ bti.c
+--- a/bti.c
++++ b/bti.c
 @@ -451,7 +451,7 @@ static void parse_timeline(char *document, struct session *session)
  	struct json_object *val;				\
  	struct lh_entry *entry;					\
diff --git a/srcpkgs/bti/template b/srcpkgs/bti/template
index 82d1af711e15..a914e9e75d60 100644
--- a/srcpkgs/bti/template
+++ b/srcpkgs/bti/template
@@ -12,4 +12,3 @@ license="GPL-2.0-only"
 homepage="http://gregkh.github.com/bti/"
 distfiles="https://www.kernel.org/pub/software/web/bti/bti-${version}.tar.xz"
 checksum=8b4a1a11f529f83956468acadaea9d11db4f03e82afe07fecb84b2d00e9eae83
-patch_args=-Np0
diff --git a/srcpkgs/bubblewrap/patches/fix-TEMP_FAILTURE_RETRY-musl.patch b/srcpkgs/bubblewrap/patches/fix-TEMP_FAILTURE_RETRY-musl.patch
index 5781d7e7934c..1afa9e4f9832 100644
--- a/srcpkgs/bubblewrap/patches/fix-TEMP_FAILTURE_RETRY-musl.patch
+++ b/srcpkgs/bubblewrap/patches/fix-TEMP_FAILTURE_RETRY-musl.patch
@@ -1,5 +1,5 @@
---- bubblewrap.c
-+++ bubblewrap.c
+--- a/bubblewrap.c
++++ b/bubblewrap.c
 @@ -42,6 +42,16 @@
  #define CLONE_NEWCGROUP 0x02000000 /* New cgroup namespace */
  #endif
diff --git a/srcpkgs/bubblewrap/patches/realpath-workaround.patch b/srcpkgs/bubblewrap/patches/realpath-workaround.patch
index 6976590a1f29..826db0fb3a70 100644
--- a/srcpkgs/bubblewrap/patches/realpath-workaround.patch
+++ b/srcpkgs/bubblewrap/patches/realpath-workaround.patch
@@ -1,5 +1,5 @@
---- /dev/null	2020-10-18 09:26:32.312745755 +0200
-+++ LICENSE.realpath	2020-10-18 11:09:14.119929076 +0200
+--- a//dev/null
++++ b/LICENSE.realpath
 @@ -0,0 +1,29 @@
 +Copyright (c) 1989, 1991, 1993, 1995
 +     The Regents of the University of California.  All rights reserved.
@@ -30,8 +30,8 @@
 +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 +SUCH DAMAGE.
---- bind-mount.c	2018-09-26 14:55:17.000000000 +0200
-+++ bind-mount.c	2020-10-18 11:08:37.822931452 +0200
+--- a/bind-mount.c
++++ b/bind-mount.c
 @@ -22,6 +22,198 @@
  
  #include "utils.h"
diff --git a/srcpkgs/bubblewrap/template b/srcpkgs/bubblewrap/template
index c8d5dda04338..4df1dac59395 100644
--- a/srcpkgs/bubblewrap/template
+++ b/srcpkgs/bubblewrap/template
@@ -11,7 +11,6 @@ license="LGPL-2.0-or-later"
 homepage="https://github.com/containers/bubblewrap"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=b9c69b9b1c61a608f34325c8e1a495229bacf6e4a07cbb0c80cf7a814d7ccc03
-patch_args=-Np0
 
 post_install() {
 	if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/buffer/patches/musl-sem.patch b/srcpkgs/buffer/patches/musl-sem.patch
index d8a8d203f718..718d0ab41066 100644
--- a/srcpkgs/buffer/patches/musl-sem.patch
+++ b/srcpkgs/buffer/patches/musl-sem.patch
@@ -1,7 +1,7 @@
 The union semun is not defined in musl libc's sys/sem.h
 
---- sem.c	2014-11-26 23:41:09.000000000 +0100
-+++ sem.c	2016-08-12 10:14:48.225963726 +0200
+--- a/sem.c
++++ b/sem.c
 @@ -42,7 +42,7 @@
   *
   * mbuck@debian.org, 1999/08/29
diff --git a/srcpkgs/buffer/template b/srcpkgs/buffer/template
index e1c05e510af0..df0fb0c0c640 100644
--- a/srcpkgs/buffer/template
+++ b/srcpkgs/buffer/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/scotte/buffer"
 distfiles="https://github.com/scotte/buffer/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=14a881fcd070b1dcd8ec91d8d036f22094c22ac3769c274f0d7d6799038a73c3
-patch_args=-Np0
 
 pre_build() {
 	sed -i Makefile \
diff --git a/srcpkgs/buildbot/patches/terse-irc.patch b/srcpkgs/buildbot/patches/terse-irc.patch
index 5036cd9ebfe9..45b8abcbc3dd 100644
--- a/srcpkgs/buildbot/patches/terse-irc.patch
+++ b/srcpkgs/buildbot/patches/terse-irc.patch
@@ -1,5 +1,5 @@
---- buildbot/status/words.py.orig
-+++ buildbot/status/words.py
+--- a/buildbot/status/words.py.orig
++++ b/buildbot/status/words.py
 @@ -439,9 +439,9 @@
          self.send(r)
  
diff --git a/srcpkgs/buildbot/template b/srcpkgs/buildbot/template
index bec731f4e532..ae905fc67ab8 100644
--- a/srcpkgs/buildbot/template
+++ b/srcpkgs/buildbot/template
@@ -13,7 +13,6 @@ license="GPL-2.0-only"
 homepage="https://buildbot.net/"
 distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=331efd07bd7522c222a8fb258801e8d78332c88d778ee76416b9e1028676e964
-patch_args=-Np0
 
 pre_install() {
 	sed -i 's,#!/usr/bin/env jython,#!/usr/bin/python2,' contrib/run_maxq.py
diff --git a/srcpkgs/buku/patches/0001-Use-system-cacerts.patch b/srcpkgs/buku/patches/0001-Use-system-cacerts.patch
index b72aa9d7cd25..3c7251165752 100644
--- a/srcpkgs/buku/patches/0001-Use-system-cacerts.patch
+++ b/srcpkgs/buku/patches/0001-Use-system-cacerts.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] Use system cacerts
 
 diff --git buku buku
 index 936988a..079d3d2 100755
---- buku
-+++ buku
+--- a/buku
++++ b/buku
 @@ -45,7 +45,6 @@ import threading
  import time
  from typing import Any, Dict, Iterable, List, Optional, Tuple
diff --git a/srcpkgs/buku/template b/srcpkgs/buku/template
index 2785910412d1..b2c1962d9195 100644
--- a/srcpkgs/buku/template
+++ b/srcpkgs/buku/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/jarun/Buku"
 distfiles="https://github.com/jarun/Buku/archive/v${version}.tar.gz"
 checksum=2e1968016d3856184db8ac49cdc92a6c70869f62846185f28c8c60ead0c42888
-patch_args=-Np0
 
 do_install() {
 	vbin buku
diff --git a/srcpkgs/bullet/patches/disableExample.patch b/srcpkgs/bullet/patches/disableExample.patch
index a2fa26efd51c..1b6f106de82c 100644
--- a/srcpkgs/bullet/patches/disableExample.patch
+++ b/srcpkgs/bullet/patches/disableExample.patch
@@ -1,5 +1,5 @@
---- examples/CMakeLists.txt	2020-10-07 20:28:14.000000000 +0200
-+++ -	2020-10-10 21:40:10.823966203 +0200
+--- a/examples/CMakeLists.txt
++++ b/-
 @@ -1,6 +1,6 @@
  SUBDIRS( HelloWorld BasicDemo)
  IF(BUILD_BULLET3)
diff --git a/srcpkgs/bullet/patches/musl.patch b/srcpkgs/bullet/patches/musl.patch
index b11ce61278cb..d6977cb79aae 100644
--- a/srcpkgs/bullet/patches/musl.patch
+++ b/srcpkgs/bullet/patches/musl.patch
@@ -1,5 +1,5 @@
---- examples/ThirdPartyLibs/Gwen/Gwen.cpp.orig	2015-08-05 11:31:24.936137203 +0200
-+++ examples/ThirdPartyLibs/Gwen/Gwen.cpp	2015-08-05 11:31:33.447238474 +0200
+--- a/examples/ThirdPartyLibs/Gwen/Gwen.cpp
++++ b/examples/ThirdPartyLibs/Gwen/Gwen.cpp
 @@ -5,6 +5,7 @@
  */
  
@@ -8,15 +8,15 @@
  #include "Gwen/Gwen.h"
  
  
---- examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp.orig	2015-08-05 11:34:15.185162987 +0200
-+++ examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp	2015-08-05 11:34:24.896278540 +0200
+--- a/examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp
++++ b/examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp
 @@ -1,3 +1,4 @@
 +#include <stdio.h>
  #include "GwenParameterInterface.h"
  #include "gwenInternalData.h"
  
---- Extras/VHACD/inc/vhacdMutex.h	2021-05-07 20:04:02.000000000 +0200
-+++ -	2021-05-26 20:28:52.836634329 +0200
+--- a/Extras/VHACD/inc/vhacdMutex.h
++++ b/-
 @@ -69,7 +69,7 @@
  #include <pthread.h>
  #endif
diff --git a/srcpkgs/bullet/template b/srcpkgs/bullet/template
index 3f2af8aafdfd..9dabf7d89292 100644
--- a/srcpkgs/bullet/template
+++ b/srcpkgs/bullet/template
@@ -15,7 +15,6 @@ homepage="http://www.bulletphysics.com/Bullet/"
 distfiles="https://github.com/bulletphysics/bullet3/archive/${version}.tar.gz"
 checksum=baa642c906576d4d98d041d0acb80d85dd6eff6e3c16a009b1abf1ccd2bc0a61
 shlib_provides="libOpenGLWindow.so libgwen.so"
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/bumblebee/patches/10-modprobe-replace-rmmod.patch b/srcpkgs/bumblebee/patches/10-modprobe-replace-rmmod.patch
index 78684128f82b..82644d50b01f 100644
--- a/srcpkgs/bumblebee/patches/10-modprobe-replace-rmmod.patch
+++ b/srcpkgs/bumblebee/patches/10-modprobe-replace-rmmod.patch
@@ -4,8 +4,8 @@ Reason: Required for "20-better-module-load-unload.patch" to be successfully app
 
 diff --git src/module.c src/module.c
 index f7b99fa..f6d7144 100644
---- src/module.c
-+++ src/module.c
+--- a/src/module.c
++++ b/src/module.c
 @@ -96,7 +96,8 @@ int module_unload(char *driver) {
      int retries = 30;
      bb_log(LOG_INFO, "Unloading %s driver\n", driver);
diff --git a/srcpkgs/bumblebee/patches/20-better-module-load-unload.patch b/srcpkgs/bumblebee/patches/20-better-module-load-unload.patch
index 7e90dcd716ba..f202cb790664 100644
--- a/srcpkgs/bumblebee/patches/20-better-module-load-unload.patch
+++ b/srcpkgs/bumblebee/patches/20-better-module-load-unload.patch
@@ -4,8 +4,8 @@ Reason: Replaces modprobe with libkmod2, and adds recursive module unloading for
 
 diff --git Makefile.am Makefile.am
 index e690362..732e303 100644
---- Makefile.am
-+++ Makefile.am
+--- a/Makefile.am
++++ b/Makefile.am
 @@ -10,7 +10,7 @@ AM_CPPFLAGS = ${regular_CPPFLAGS} \
  		-DCONF_XORG='"$(bumblebeedconfdir)/xorg.conf.DRIVER"' \
  		-DCONF_XORG_DIR='"$(bumblebeedconfdir)/xorg.conf.d"'
@@ -32,8 +32,8 @@ index e690362..732e303 100644
  bumblebeedconf_DATA = conf/bumblebee.conf conf/xorg.conf.nouveau conf/xorg.conf.nvidia
 diff --git README.markdown README.markdown
 index b534a6c..5c2baa5 100644
---- README.markdown
-+++ README.markdown
+--- a/README.markdown
++++ b/README.markdown
 @@ -19,6 +19,7 @@ The following packages are dependencies for the build process:
  - pkg-config
  - glib-2.0 and development headers
@@ -44,8 +44,8 @@ index b534a6c..5c2baa5 100644
  
 diff --git configure.ac configure.ac
 index 8dd831a..067c1f8 100644
---- configure.ac
-+++ configure.ac
+--- a/configure.ac
++++ b/configure.ac
 @@ -122,6 +122,7 @@ AC_SUBST([regular_CFLAGS])
  # Checks for header files.
  PKG_CHECK_MODULES([x11], [x11])
@@ -56,8 +56,8 @@ index 8dd831a..067c1f8 100644
  		PKG_CHECK_EXISTS([libbsd = 0.2.0], [AC_DEFINE(HAVE_LIBBSD_020)])
 diff --git src/bbconfig.h src/bbconfig.h
 index 5596b64..c6ebb28 100644
---- src/bbconfig.h
-+++ src/bbconfig.h
+--- a/src/bbconfig.h
++++ b/src/bbconfig.h
 @@ -26,6 +26,7 @@
  #include <unistd.h> //for pid_t
  #include <limits.h> //for CHAR_MAX
@@ -76,8 +76,8 @@ index 5596b64..c6ebb28 100644
  /* Structure containing the configuration. */
 diff --git src/bumblebeed.c src/bumblebeed.c
 index a911da9..ef4a568 100644
---- src/bumblebeed.c
-+++ src/bumblebeed.c
+--- a/src/bumblebeed.c
++++ b/src/bumblebeed.c
 @@ -34,6 +34,7 @@
  #include <string.h>
  #include <errno.h>
@@ -113,8 +113,8 @@ index a911da9..ef4a568 100644
  }
 diff --git src/module.c src/module.c
 index f6d7144..aed2729 100644
---- src/module.c
-+++ src/module.c
+--- a/src/module.c
++++ b/src/module.c
 @@ -24,91 +24,151 @@
  #include <ctype.h>
  #include <stdlib.h>
@@ -351,8 +351,8 @@ index f6d7144..aed2729 100644
 
 diff --git Makefile.am Makefile.am
 index 732e303..abcb4e9 100644
---- Makefile.am
-+++ Makefile.am
+--- a/Makefile.am
++++ b/Makefile.am
 @@ -49,7 +49,7 @@ sbin_PROGRAMS = bin/bumblebeed
  bin_PROGRAMS = bin/optirun
  
@@ -364,8 +364,8 @@ index 732e303..abcb4e9 100644
  	src/bbsocket.c src/module.c src/bbsecondary.c src/switch/switching.c \
 diff --git src/optirun.c src/optirun.c
 index a4607ea..643222c 100644
---- src/optirun.c
-+++ src/optirun.c
+--- a/src/optirun.c
++++ b/src/optirun.c
 @@ -37,7 +37,6 @@
  #include "bbsocketclient.h"
  #include "bblogger.h"
@@ -377,8 +377,8 @@ index a4607ea..643222c 100644
 
 diff --git src/bumblebeed.c src/bumblebeed.c
 index ef4a568..ac7a02d 100644
---- src/bumblebeed.c
-+++ src/bumblebeed.c
+--- a/src/bumblebeed.c
++++ b/src/bumblebeed.c
 @@ -503,8 +503,7 @@ int main(int argc, char* argv[]) {
    config_dump();
  
@@ -392,8 +392,8 @@ index ef4a568..ac7a02d 100644
 
 diff --git src/bumblebeed.c src/bumblebeed.c
 index ac7a02d..688972d 100644
---- src/bumblebeed.c
-+++ src/bumblebeed.c
+--- a/src/bumblebeed.c
++++ b/src/bumblebeed.c
 @@ -461,6 +461,7 @@ int main(int argc, char* argv[]) {
    /* first load the config to make the logging verbosity level available */
    init_config();
@@ -413,8 +413,8 @@ index ac7a02d..688972d 100644
 
 diff --git src/module.c src/module.c
 index aed2729..08f6f4a 100644
---- src/module.c
-+++ src/module.c
+--- a/src/module.c
++++ b/src/module.c
 @@ -45,8 +45,9 @@ int module_is_loaded(char *driver) {
  
    err = kmod_module_new_from_name(bb_status.kmod_ctx, driver, &mod);
@@ -430,8 +430,8 @@ index aed2729..08f6f4a 100644
 
 diff --git src/module.c src/module.c
 index 08f6f4a..6a197dc 100644
---- src/module.c
-+++ src/module.c
+--- a/src/module.c
++++ b/src/module.c
 @@ -189,9 +189,10 @@ int module_is_available(char *module_name) {
    if(err < 0) {
      bb_log(LOG_DEBUG, "kmod_module_new_from_lookup(%s) failed (err: %d).\n",
@@ -447,8 +447,8 @@ index 08f6f4a..6a197dc 100644
 
 diff --git src/bumblebeed.c src/bumblebeed.c
 index 688972d..b1458ab 100644
---- src/bumblebeed.c
-+++ src/bumblebeed.c
+--- a/src/bumblebeed.c
++++ b/src/bumblebeed.c
 @@ -490,6 +490,14 @@ int main(int argc, char* argv[]) {
  
    free(pci_id_igd);
@@ -482,8 +482,8 @@ index 688972d..b1458ab 100644
 
 diff --git src/module.c src/module.c
 index 6a197dc..cdc4a9b 100644
---- src/module.c
-+++ src/module.c
+--- a/src/module.c
++++ b/src/module.c
 @@ -81,7 +81,7 @@ int module_load(char *module_name, char *driver) {
      }
  
@@ -496,8 +496,8 @@ index 6a197dc..cdc4a9b 100644
 
 diff --git src/bblogger.c src/bblogger.c
 index 804e5b8..caff8a8 100644
---- src/bblogger.c
-+++ src/bblogger.c
+--- a/src/bblogger.c
++++ b/src/bblogger.c
 @@ -228,7 +228,7 @@ void check_xorg_pipe(void){
          /* line / buffer is full, process the remaining buffer the next round */
          repeat = 1;
@@ -516,8 +516,8 @@ index 804e5b8..caff8a8 100644
  }/* check_xorg_pipe */
 diff --git src/module.c src/module.c
 index cdc4a9b..c378bd7 100644
---- src/module.c
-+++ src/module.c
+--- a/src/module.c
++++ b/src/module.c
 @@ -44,7 +44,7 @@ int module_is_loaded(char *driver) {
    struct kmod_module *mod;
  
@@ -591,8 +591,8 @@ index cdc4a9b..c378bd7 100644
 
 diff --git src/bbconfig.c src/bbconfig.c
 index 1dff5e0..af38098 100644
---- src/bbconfig.c
-+++ src/bbconfig.c
+--- a/src/bbconfig.c
++++ b/src/bbconfig.c
 @@ -251,12 +251,6 @@ Bumblebee homepage: <http://Bumblebee-Project.org/>\n", out);
   */
  static int bbconfig_parse_common(int opt, char *value) {
@@ -621,8 +621,8 @@ index 1dff5e0..af38098 100644
            break;
 diff --git src/bumblebeed.c src/bumblebeed.c
 index b1458ab..6e0ade5 100644
---- src/bumblebeed.c
-+++ src/bumblebeed.c
+--- a/src/bumblebeed.c
++++ b/src/bumblebeed.c
 @@ -461,7 +461,6 @@ int main(int argc, char* argv[]) {
    /* first load the config to make the logging verbosity level available */
    init_config();
diff --git a/srcpkgs/bumblebee/template b/srcpkgs/bumblebee/template
index 93aa7c8e3bf9..c54ea65d32c5 100644
--- a/srcpkgs/bumblebee/template
+++ b/srcpkgs/bumblebee/template
@@ -24,7 +24,6 @@ homepage="http://www.bumblebee-project.org/"
 distfiles="http://www.bumblebee-project.org/${pkgname}-${version}.tar.gz"
 checksum=1018703b07e2f607a4641249d69478ce076ae5a1e9dd6cff5694d394fa7ee30e
 system_groups="bumblebee"
-patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/bup/patches/disable-git-call.patch b/srcpkgs/bup/patches/disable-git-call.patch
index 3abedea5aba0..521a74e7ae8a 100644
--- a/srcpkgs/bup/patches/disable-git-call.patch
+++ b/srcpkgs/bup/patches/disable-git-call.patch
@@ -1,5 +1,5 @@
---- Makefile.orig	2016-05-25 16:57:27.966465927 +0200
-+++ Makefile	2016-05-25 16:57:32.091465618 +0200
+--- a/Makefile
++++ b/Makefile
 @@ -39,8 +39,8 @@ else
    test_tmp := $(CURDIR)/test/tmp
  endif
diff --git a/srcpkgs/bup/template b/srcpkgs/bup/template
index 5028dce8364d..b40c3cddbf68 100644
--- a/srcpkgs/bup/template
+++ b/srcpkgs/bup/template
@@ -14,7 +14,6 @@ distfiles="https://github.com/bup/bup/archive/${version}.tar.gz"
 checksum=a894cfa96c44b9ef48003b2c2104dc5fa6361dd2f4d519261a93178984a51259
 python_version=3
 nocross=yes
-patch_args=-Np0
 
 pre_configure() {
 	sed -i 's#^PREFIX=.*#PREFIX=/usr#' Makefile
diff --git a/srcpkgs/burp2-server/patches/tests-disable-failing.patch b/srcpkgs/burp2-server/patches/tests-disable-failing.patch
index 1d62cee74a2d..564a05a29408 100644
--- a/srcpkgs/burp2-server/patches/tests-disable-failing.patch
+++ b/srcpkgs/burp2-server/patches/tests-disable-failing.patch
@@ -1,7 +1,7 @@
 disable failing tests (3 of 395), probably because of chroot.
 
---- utest/main.c.ORIG	2021-05-02 05:04:07.000000000 +0200
-+++ utest/main.c	2021-05-09 23:36:25.321692936 +0200
+--- a/utest/main.c.ORIG
++++ b/utest/main.c
 @@ -28,14 +28,12 @@
  	srunner_add_suite(sr, suite_base64());
  #ifdef HAVE_ACL
diff --git a/srcpkgs/burp2-server/template b/srcpkgs/burp2-server/template
index c9d602c51242..f3d95a8f1523 100644
--- a/srcpkgs/burp2-server/template
+++ b/srcpkgs/burp2-server/template
@@ -1,6 +1,5 @@
 # Template file for 'burp2-server'
 _desc="Network-based backup and restore program"
-patch_args=-Np0
 
 pkgname=burp2-server
 version=2.4.0
diff --git a/srcpkgs/busybox/patches/decompress_gunzip-Fix-DoS-if-gzip-is-corrupt.patch b/srcpkgs/busybox/patches/decompress_gunzip-Fix-DoS-if-gzip-is-corrupt.patch
index fe973506737d..9074af438f44 100644
--- a/srcpkgs/busybox/patches/decompress_gunzip-Fix-DoS-if-gzip-is-corrupt.patch
+++ b/srcpkgs/busybox/patches/decompress_gunzip-Fix-DoS-if-gzip-is-corrupt.patch
@@ -20,8 +20,8 @@ Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
 
 diff --git archival/libarchive/decompress_gunzip.c archival/libarchive/decompress_gunzip.c
 index 03049cc9b..e0520190a 100644
---- archival/libarchive/decompress_gunzip.c
-+++ archival/libarchive/decompress_gunzip.c
+--- a/archival/libarchive/decompress_gunzip.c
++++ b/archival/libarchive/decompress_gunzip.c
 @@ -220,10 +220,20 @@ static const uint8_t border[] ALIGN1 = {
   * each table.
   * t: table to free
diff --git a/srcpkgs/busybox/patches/testsuite-fix-date-works.patch b/srcpkgs/busybox/patches/testsuite-fix-date-works.patch
index bf70ff8f0564..0f3e23eae6ac 100644
--- a/srcpkgs/busybox/patches/testsuite-fix-date-works.patch
+++ b/srcpkgs/busybox/patches/testsuite-fix-date-works.patch
@@ -1,7 +1,7 @@
 The format for the `date` command has changed and this test wasn't updated with it.
 
---- testsuite/date/date-works
-+++ testsuite/date/date-works
+--- a/testsuite/date/date-works
++++ b/testsuite/date/date-works
 @@ -1,6 +1,6 @@
  dt=`busybox date`
  # Expected format: Fri Apr 25 03:47:55 CEST 2008
diff --git a/srcpkgs/busybox/template b/srcpkgs/busybox/template
index b580ccc52e9b..07377569ba5f 100644
--- a/srcpkgs/busybox/template
+++ b/srcpkgs/busybox/template
@@ -10,7 +10,6 @@ license="GPL-2.0-only"
 homepage="https://www.busybox.net"
 distfiles="${homepage}/downloads/busybox-${version}.tar.bz2"
 checksum=9d57c4bd33974140fd4111260468af22856f12f5b5ef7c70c8d9b75c712a0dee
-patch_args=-Np0
 
 _alternatives_core="
  ash:ash:/usr/bin/busybox
diff --git a/srcpkgs/bzflag/patches/NetHandler-musl.patch b/srcpkgs/bzflag/patches/NetHandler-musl.patch
index f843ef9df51a..7534029aabba 100644
--- a/srcpkgs/bzflag/patches/NetHandler-musl.patch
+++ b/srcpkgs/bzflag/patches/NetHandler-musl.patch
@@ -1,5 +1,5 @@
---- src/game/NetHandler.cxx-orig	2018-01-22 12:28:31.043278572 -0600
-+++ src/game/NetHandler.cxx	2018-01-22 12:28:07.889568033 -0600
+--- a/src/game/NetHandler.cxx
++++ b/src/game/NetHandler.cxx
 @@ -135,7 +135,7 @@
    uint16_t code;
    while (true) {
diff --git a/srcpkgs/bzflag/patches/bzfs-musl.patch b/srcpkgs/bzflag/patches/bzfs-musl.patch
index dc322dda8ad9..49f13f92680a 100644
--- a/srcpkgs/bzflag/patches/bzfs-musl.patch
+++ b/srcpkgs/bzflag/patches/bzfs-musl.patch
@@ -1,5 +1,5 @@
---- src/bzfs/bzfs.cxx.orig	2018-09-27 08:34:45.781489776 +0200
-+++ src/bzfs/bzfs.cxx	2018-09-27 08:35:47.688492106 +0200
+--- a/src/bzfs/bzfs.cxx
++++ b/src/bzfs/bzfs.cxx
 @@ -1312,7 +1312,7 @@
      // accept incoming connection on our well known port
      struct sockaddr_in clientAddr;
diff --git a/srcpkgs/bzflag/template b/srcpkgs/bzflag/template
index e7315f51646a..d58270495975 100644
--- a/srcpkgs/bzflag/template
+++ b/srcpkgs/bzflag/template
@@ -12,4 +12,3 @@ homepage="https://www.bzflag.org"
 changelog="https://raw.githubusercontent.com/BZFlag-Dev/bzflag/2.4/ChangeLog"
 distfiles="https://download.bzflag.org/bzflag/source/${version}/bzflag-${version}.tar.bz2"
 checksum=9e64653302b657bd8b5f96fe1150a9ff80a1d53a6d7e8a35138c6b1b02006a4d
-patch_args=-Np0
diff --git a/srcpkgs/bzip2/patches/soname.patch b/srcpkgs/bzip2/patches/soname.patch
index 48440d5b8027..30b87db6ea65 100644
--- a/srcpkgs/bzip2/patches/soname.patch
+++ b/srcpkgs/bzip2/patches/soname.patch
@@ -1,5 +1,5 @@
---- Makefile-libbz2_so.orig	2019-07-17 21:09:34.798780817 +0200
-+++ Makefile-libbz2_so	2019-07-17 21:09:47.306781668 +0200
+--- a/Makefile-libbz2_so
++++ b/Makefile-libbz2_so
 @@ -22,9 +22,9 @@
  
  
@@ -25,8 +25,8 @@
  
  clean: 
  	rm -f $(OBJS) bzip2.o libbz2.so.1.0.8 libbz2.so.1.0 bzip2-shared
---- Makefile.orig	2019-07-17 21:15:28.649804898 +0200
-+++ Makefile	2019-07-17 21:16:14.981808051 +0200
+--- a/Makefile
++++ b/Makefile
 @@ -15,13 +15,13 @@
  SHELL=/bin/sh
  
diff --git a/srcpkgs/bzip2/template b/srcpkgs/bzip2/template
index d51b4a9e6efd..c39a9427efb1 100644
--- a/srcpkgs/bzip2/template
+++ b/srcpkgs/bzip2/template
@@ -10,7 +10,6 @@ homepage="https://sourceware.org/bzip2/"
 changelog="https://sourceware.org/bzip2/CHANGES"
 distfiles="https://sourceware.org/pub/bzip2/bzip2-${version}.tar.gz"
 checksum=ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269
-patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CFLAGS="$CFLAGS -fPIC $LDFLAGS" LDFLAGS="$LDFLAGS" -f Makefile-libbz2_so

From 6c854adaf434d70d8b0222cfb2f77f0880f0db4a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 18:28:11 +0700
Subject: [PATCH 9/9] srcpkgs/c*: convert patches to -Np1

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,/^--- /dev/null,b
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s/\(.orig\)*	.*//
			}
			/^+++ /{
				s,\(^+++ \)\(./\)*,\1b/,
				s/	.*//
			}
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
---
 srcpkgs/c-blosc/patches/musl.patch            |   4 +-
 srcpkgs/c-blosc/template                      |   1 -
 .../patches/1006_openssl1.1_autoverify.patch  |   4 +-
 .../c-client-2006k_GENTOO_amd64-so-fix.patch  |   4 +-
 srcpkgs/c-client/template                     |   1 -
 .../update-ca-certificates-destdir.patch      |   4 +-
 srcpkgs/ca-certificates/template              |   1 -
 srcpkgs/cabal-install/patches/ghc-8.8.4.patch |   4 +-
 srcpkgs/cabal-install/template                |   1 -
 srcpkgs/cackey/patches/no-rpath.patch         |   4 +-
 srcpkgs/cackey/template                       |   1 -
 srcpkgs/cadence/patches/QPainterPath.patch    |  12 +-
 srcpkgs/cadence/template                      |   1 -
 srcpkgs/calc/patches/endian-32.patch          |   4 +-
 srcpkgs/calc/template                         |   1 -
 srcpkgs/cantata/patches/musl.patch            |   8 +-
 srcpkgs/cantata/template                      |   1 -
 srcpkgs/caps/patches/musl.patch               |   4 +-
 srcpkgs/caps/template                         |   1 -
 srcpkgs/cargo/patches/fix-serde.diff          |   4 +-
 srcpkgs/cargo/patches/link-static.patch       |   4 +-
 srcpkgs/cargo/template                        |   1 -
 srcpkgs/catch2/patches/musl-test.patch        |   4 +-
 srcpkgs/catch2/template                       |   1 -
 .../001-XLS_parsing_improvements.patch        |   8 +-
 .../catdoc/patches/002-CVE-2017-11110.patch   |   4 +-
 .../patches/003-Fix_OLENAMELENGTH.patch       |   4 +-
 srcpkgs/catdoc/template                       |   1 -
 srcpkgs/cbang/patches/sys_time_h.patch        |   4 +-
 srcpkgs/cbang/template                        |   1 -
 .../patches/disable_arm_neon.patch            |   4 +-
 srcpkgs/ccextractor/template                  |   1 -
 srcpkgs/ccl/patches/musl-fixes.patch          |  16 +-
 srcpkgs/ccl/patches/nopie.patch               |   8 +-
 srcpkgs/ccl/template                          |   1 -
 srcpkgs/cclive/patches/fix-boost-067.patch    |   4 +-
 .../fix-missing-iostream-includes.patch       |  12 +-
 srcpkgs/cclive/patches/musl-strerror_r.patch  |   4 +-
 srcpkgs/cclive/template                       |   1 -
 srcpkgs/ccsm/patches/prefix.patch             |   4 +-
 srcpkgs/ccsm/template                         |   1 -
 srcpkgs/cdb/patches/errno.patch               |   4 +-
 srcpkgs/cdb/patches/makefile.patch            |   4 +-
 srcpkgs/cdb/template                          |   1 -
 .../cdecl/patches/fix-reserved_keyword.patch  |   4 +-
 srcpkgs/cdecl/template                        |   1 -
 srcpkgs/cdm/patches/fix-bashisms.patch        |   4 +-
 srcpkgs/cdm/template                          |   1 -
 .../patches/autoconf-init-ac_cv_objext.patch  |   4 +-
 srcpkgs/cdparanoia/patches/gcc.diff           |  24 +-
 .../patches/makefile.in-install.patch         |   4 +-
 srcpkgs/cdparanoia/patches/musl.patch         |   4 +-
 srcpkgs/cdparanoia/template                   |   1 -
 srcpkgs/cegui/patches/fix-ccache-rule.patch   |   4 +-
 srcpkgs/cegui/patches/musl_execinfo.patch     |   4 +-
 srcpkgs/cegui/template                        |   1 -
 srcpkgs/cegui07/patches/fix-build.patch       |  16 +-
 srcpkgs/cegui07/template                      |   1 -
 .../patches/NULL_notdecleared.patch           |   4 +-
 .../patches/Z_BEST_COMPRESSION.patch          |   4 +-
 .../patches/fix-stdint_redefine.patch         |   4 +-
 .../patches/memcpy_notdecleared.patch         |   8 +-
 .../patches/missing_mathlib.patch             |   4 +-
 srcpkgs/celestia-glut/template                |   1 -
 .../patches/NULL_notdecleared.patch           |   4 +-
 .../patches/Z_BEST_COMPRESSION.patch          |   4 +-
 .../patches/fix-stdint_redefine.patch         |   4 +-
 .../patches/memcpy_notdecleared.patch         |   8 +-
 .../patches/missing_mathlib.patch             |   4 +-
 srcpkgs/celestia-gtk/template                 |   1 -
 srcpkgs/chafa/patches/i686-musl.patch         |   4 +-
 srcpkgs/chafa/template                        |   1 -
 .../patches/0001-use-system-deps.patch        |   8 +-
 srcpkgs/chatterino2/template                  |   1 -
 srcpkgs/chatty/patches/config_dir.patch       |   4 +-
 .../patches/disable_version_check.patch       |   4 +-
 srcpkgs/chatty/template                       |   1 -
 srcpkgs/chkrootkit/patches/fcntl.patch        |  12 +-
 srcpkgs/chkrootkit/patches/path_max.patch     |   4 +-
 srcpkgs/chkrootkit/template                   |   1 -
 srcpkgs/chmlib/patches/aarch64-ppc64.patch    |   4 +-
 srcpkgs/chmlib/patches/arm-ppc-32.patch       |   4 +-
 srcpkgs/chmlib/template                       |   1 -
 .../choosenim/patches/system-libarchive.patch |  16 +-
 srcpkgs/choosenim/template                    |   1 -
 srcpkgs/choqok/patches/ftbfs.patch            |   4 +-
 srcpkgs/choqok/template                       |   1 -
 srcpkgs/chromium/patches/browser-size_t.patch |   4 +-
 .../patches/chromium-88-glibc-2.33.patch      |  20 +-
 .../patches/chromium-90-ruy-include.patch     |   4 +-
 .../chromium-revert-drop-of-system-java.patch |   4 +-
 .../patches/chromium-system-nodejs.patch      |   4 +-
 .../chromium/patches/chromium-webrtc-r0.patch |   4 +-
 .../patches/fix-crash-in-ThemeService.patch   |   4 +-
 srcpkgs/chromium/patches/libc_malloc.patch    |   8 +-
 ...-v8-monotonic-pthread-cont_timedwait.patch |   4 +-
 srcpkgs/chromium/patches/no-execinfo.patch    |   4 +-
 srcpkgs/chromium/patches/no-getcontext.patch  |   4 +-
 .../chromium/patches/sandbox-membarrier.patch |   4 +-
 .../patches/sandbox-sched_getparam.patch      |   4 +-
 srcpkgs/chromium/patches/sndio.patch          |  40 +-
 srcpkgs/chromium/patches/webrtc-include.patch |   4 +-
 srcpkgs/chromium/patches/webrtc-size_t.patch  |   4 +-
 .../chromium/patches/xxx-ppc64le-libvpx.patch |   8 +-
 .../patches/xxx-ppc64le-support.patch         | 420 +++++++++---------
 .../patches/xxx-ppc64le-swiftshader.patch     |   4 +-
 srcpkgs/chromium/template                     |   1 -
 .../cinnamon-session/patches/timeout.patch    |   8 +-
 srcpkgs/cinnamon-session/template             |   1 -
 srcpkgs/ck/patches/cross.patch                |   8 +-
 srcpkgs/ck/patches/ppc32.patch                |   4 +-
 srcpkgs/ck/template                           |   1 -
 srcpkgs/ckmame/patches/gnu_source.patch       |  12 +-
 srcpkgs/ckmame/patches/use-mkstemp.patch      |   4 +-
 srcpkgs/ckmame/template                       |   1 -
 ...a6e3393ebc75e16c91e606ad2015a16295c3.patch |   8 +-
 srcpkgs/clazy/template                        |   1 -
 srcpkgs/clementine/patches/musl.patch         |   4 +-
 srcpkgs/clementine/patches/pb_namespace.patch | 136 +++---
 srcpkgs/clementine/template                   |   1 -
 .../patches/use-system-opt.patch              |   4 +-
 srcpkgs/cli-visualizer/template               |   1 -
 srcpkgs/clib/patches/destdir.patch            |   4 +-
 srcpkgs/clib/template                         |   1 -
 srcpkgs/clisp/patches/no-page.h.patch         |   4 +-
 srcpkgs/clisp/patches/readline-7.patch        |   4 +-
 srcpkgs/clisp/template                        |   1 -
 srcpkgs/cln/patches/musl.patch                |   4 +-
 srcpkgs/cln/patches/unused.patch              |   4 +-
 srcpkgs/cln/template                          |   1 -
 srcpkgs/clog/patches/musl-limits_h.patch      |   4 +-
 srcpkgs/clog/template                         |   1 -
 srcpkgs/cloog/patches/install-fix.patch       |   4 +-
 srcpkgs/cloog/template                        |   1 -
 ...ne-core-2.3.3.4-install_contribs_lib.patch |   8 +-
 .../clucene-core-2.3.3.4-pkgconfig.patch      |   4 +-
 srcpkgs/clucene/patches/clucene-debug.patch   |   4 +-
 .../clucene/patches/clucene-gcc-atomics.patch |   8 +-
 .../patches/clucene-multimap-put.patch        |   4 +-
 .../clucene-narrowing-conversions.patch       |   8 +-
 .../clucene/patches/clucene-warnings.patch    |  20 +-
 srcpkgs/clucene/patches/fix-cl_test.patch     |   4 +-
 srcpkgs/clucene/patches/fix-test.patch        |   4 +-
 .../clucene/patches/fix_zlib_detections.diff  |   4 +-
 srcpkgs/clucene/patches/multithreading.patch  |  12 +-
 srcpkgs/clucene/template                      |   1 -
 .../patches/clutter-x11-startup-error.patch   |   4 +-
 srcpkgs/clutter/template                      |   1 -
 srcpkgs/cmocka/patches/musl_uintptr.patch     |   4 +-
 srcpkgs/cmocka/template                       |   1 -
 srcpkgs/cmus/patches/pass-ldlibs.patch        |   4 +-
 srcpkgs/cmus/template                         |   1 -
 .../patches/000.v20.03-r12008.patch           |   4 +-
 .../patches/001.v20.03-r12012.patch           |  32 +-
 srcpkgs/codeblocks/template                   |   1 -
 srcpkgs/codecrypt/patches/cryptopp.patch      |   4 +-
 srcpkgs/codecrypt/template                    |   1 -
 srcpkgs/codelite/patches/92ed90e07.patch      |   4 +-
 srcpkgs/codelite/patches/musl.patch           |  16 +-
 srcpkgs/codelite/patches/pango144.patch       |   4 +-
 srcpkgs/codelite/template                     |   1 -
 srcpkgs/coin3/patches/no-cpack.patch          |   4 +-
 srcpkgs/coin3/template                        |   1 -
 srcpkgs/collectd/patches/gnu_source.patch     |   4 +-
 srcpkgs/collectd/template                     |   1 -
 .../patches/add-introspection-switch.patch    |  12 +-
 srcpkgs/colord/patches/use-host-utils.patch   |   8 +-
 srcpkgs/colord/template                       |   1 -
 srcpkgs/commoncpp2/patches/applog.patch       |   4 +-
 srcpkgs/commoncpp2/patches/ftbfs.patch        |   4 +-
 srcpkgs/commoncpp2/template                   |   1 -
 .../patches/lowercase-boolean.patch           |   8 +-
 srcpkgs/connman-ncurses/template              |   1 -
 .../containers.image/patches/dockerhub.patch  |   4 +-
 srcpkgs/containers.image/template             |   1 -
 .../coreboot-utils/patches/ectool-musl.patch  |   4 +-
 .../patches/inteltool-musl-2.patch            |   4 +-
 .../patches/inteltool-musl.patch              |   4 +-
 .../patches/nvramtool-musl-2.patch            |   4 +-
 .../patches/nvramtool-musl.patch              |   4 +-
 .../patches/superiotool-musl.patch            |   8 +-
 srcpkgs/coreboot-utils/template               |   1 -
 ...8.31-behavior-on-removed-directories.patch |  12 +-
 srcpkgs/coreutils/template                    |   1 -
 srcpkgs/coturn/patches/Makefile.patch         |   4 +-
 srcpkgs/coturn/template                       |   1 -
 srcpkgs/cpuburn/patches/01-variables.patch    |  16 +-
 srcpkgs/cpuburn/patches/02-m32.patch          |   4 +-
 srcpkgs/cpuburn/template                      |   1 -
 srcpkgs/cpulimit/patches/musl_sysctl.patch    |   4 +-
 srcpkgs/cpulimit/template                     |   1 -
 srcpkgs/criu/patches/capsetget.patch          |   4 +-
 srcpkgs/criu/patches/ppc64-musl.patch         |  16 +-
 srcpkgs/criu/template                         |   1 -
 srcpkgs/crossguid/patches/no-O3.patch         |   4 +-
 srcpkgs/crossguid/template                    |   1 -
 .../crypto++/patches/musl-soname-links.patch  |   8 +-
 srcpkgs/crypto++/template                     |   1 -
 srcpkgs/csound/patches/arm.patch              |   4 +-
 srcpkgs/csound/template                       |   1 -
 srcpkgs/csync2/patches/CVE-2019-15522.patch   |   4 +-
 srcpkgs/csync2/patches/musl-strlcpy.patch     |   4 +-
 srcpkgs/csync2/template                       |   1 -
 .../0001-Strip-libiconv-dependant-tests.patch |  40 +-
 srcpkgs/ctags/template                        |   1 -
 srcpkgs/cubieboard2-uboot/patches/uuid.patch  |   4 +-
 srcpkgs/cubieboard2-uboot/template            |   1 -
 srcpkgs/cuetools/patches/unicode.diff         |   4 +-
 srcpkgs/cuetools/template                     |   1 -
 srcpkgs/cups-pdf/patches/print-to-home.patch  |   4 +-
 srcpkgs/cups-pdf/template                     |   1 -
 .../cups/patches/cups-no-export-ssllibs.patch |   4 +-
 srcpkgs/cups/template                         |   1 -
 srcpkgs/cura-engine/patches/fix-cflags.patch  |   4 +-
 srcpkgs/cura-engine/template                  |   1 -
 .../patches/curlftpfs-0.9.2-create-fix.patch  |   4 +-
 .../curlftpfs-0.9.2-memleak#591298.patch      |   4 +-
 ...urlftpfs-0.9.2-memleak-cached#591299.patch |   8 +-
 .../curlftpfs-0.9.2-offset_64_another.patch   |   4 +-
 srcpkgs/curlftpfs/patches/fix-musl.patch      |   4 +-
 srcpkgs/curlftpfs/template                    |   1 -
 srcpkgs/cutecom/patches/QPainterPath.patch    |   4 +-
 srcpkgs/cutecom/template                      |   1 -
 srcpkgs/cutemarked/patches/QAction.patch      |   4 +-
 srcpkgs/cutemarked/template                   |   1 -
 srcpkgs/cvs/patches/ssh.patch                 |   4 +-
 srcpkgs/cvs/patches/vasnprintf.diff           |   4 +-
 srcpkgs/cvs/template                          |   1 -
 srcpkgs/cvsps2/patches/inet_addr-64bit.patch  |   4 +-
 srcpkgs/cvsps2/template                       |   1 -
 230 files changed, 756 insertions(+), 834 deletions(-)

diff --git a/srcpkgs/c-blosc/patches/musl.patch b/srcpkgs/c-blosc/patches/musl.patch
index ae5956caa269..c5dfe850f656 100644
--- a/srcpkgs/c-blosc/patches/musl.patch
+++ b/srcpkgs/c-blosc/patches/musl.patch
@@ -1,5 +1,5 @@
---- bench/bench.c.orig	2020-03-04 10:56:43.124243579 +0100
-+++ bench/bench.c	2020-03-04 10:57:31.571747005 +0100
+--- a/bench/bench.c
++++ b/bench/bench.c
 @@ -38,7 +38,7 @@
    #include <sys/time.h>
  #elif defined(__unix__) || defined(__HAIKU__)
diff --git a/srcpkgs/c-blosc/template b/srcpkgs/c-blosc/template
index b272c4a370c0..a488bfbf05d7 100644
--- a/srcpkgs/c-blosc/template
+++ b/srcpkgs/c-blosc/template
@@ -12,7 +12,6 @@ license="BSD-3-Clause, MIT"
 homepage="https://www.blosc.org"
 distfiles="https://github.com/Blosc/c-blosc/archive/v${version}.tar.gz"
 checksum=42c4d3fcce52af9f8e2078f8f57681bfc711706a3330cb72b9b39e05ae18a413
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSES/BLOSC.txt
diff --git a/srcpkgs/c-client/patches/1006_openssl1.1_autoverify.patch b/srcpkgs/c-client/patches/1006_openssl1.1_autoverify.patch
index a8552ff26875..087e747d5986 100644
--- a/srcpkgs/c-client/patches/1006_openssl1.1_autoverify.patch
+++ b/srcpkgs/c-client/patches/1006_openssl1.1_autoverify.patch
@@ -4,8 +4,8 @@ Description: Support OpenSSL 1.1
  structs having been made opaque.
 Bug-Debian: https://bugs.debian.org/828589
 
---- src/osdep/unix/ssl_unix.c
-+++ src/osdep/unix/ssl_unix.c
+--- a/src/osdep/unix/ssl_unix.c
++++ b/src/osdep/unix/ssl_unix.c
 @@ -227,8 +227,16 @@ static char *ssl_start_work (SSLSTREAM *
  				/* disable certificate validation? */
    if (flags & NET_NOVALIDATECERT)
diff --git a/srcpkgs/c-client/patches/c-client-2006k_GENTOO_amd64-so-fix.patch b/srcpkgs/c-client/patches/c-client-2006k_GENTOO_amd64-so-fix.patch
index 53b94d05a625..b22164bc6eba 100644
--- a/srcpkgs/c-client/patches/c-client-2006k_GENTOO_amd64-so-fix.patch
+++ b/srcpkgs/c-client/patches/c-client-2006k_GENTOO_amd64-so-fix.patch
@@ -1,6 +1,6 @@
 diff -r 7c3e6c6ef2ba src/osdep/unix/Makefile
---- src/osdep/unix/Makefile	Thu Feb 21 18:51:32 2008 +0100
-+++ src/osdep/unix/Makefile	Thu Feb 21 18:53:15 2008 +0100
+--- a/src/osdep/unix/Makefile
++++ b/src/osdep/unix/Makefile
 @@ -962,6 +962,9 @@ onceenv:
  	 -DRSHPATH=\"$(RSHPATH)\" -DLOCKPGM=\"$(LOCKPGM)\" > OSCFLAGS
  	echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS
diff --git a/srcpkgs/c-client/template b/srcpkgs/c-client/template
index 83210555d177..bf65dc7277be 100644
--- a/srcpkgs/c-client/template
+++ b/srcpkgs/c-client/template
@@ -11,7 +11,6 @@ homepage="http://www.washington.edu/imap"
 distfiles="http://ftp.ntua.gr/pub/net/mail/imap/imap-${version}.tar.gz"
 checksum=53e15a2b5c1bc80161d42e9f69792a3fa18332b7b771910131004eb520004a28
 nocross=yes
-patch_args=-Np0
 
 do_configure() {
 	sed \
diff --git a/srcpkgs/ca-certificates/patches/update-ca-certificates-destdir.patch b/srcpkgs/ca-certificates/patches/update-ca-certificates-destdir.patch
index 35277d8d059a..5c535bf84350 100644
--- a/srcpkgs/ca-certificates/patches/update-ca-certificates-destdir.patch
+++ b/srcpkgs/ca-certificates/patches/update-ca-certificates-destdir.patch
@@ -1,5 +1,5 @@
---- sbin/update-ca-certificates.orig	2015-05-29 11:09:43.922158838 +0200
-+++ sbin/update-ca-certificates	2015-05-29 11:10:06.842632933 +0200
+--- a/sbin/update-ca-certificates
++++ b/sbin/update-ca-certificates
 @@ -24,12 +24,12 @@
  verbose=0
  fresh=0
diff --git a/srcpkgs/ca-certificates/template b/srcpkgs/ca-certificates/template
index cd82c7f4c9bc..854e76a613cd 100644
--- a/srcpkgs/ca-certificates/template
+++ b/srcpkgs/ca-certificates/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later, MPL-2.0"
 homepage="https://tracker.debian.org/pkg/ca-certificates"
 distfiles="${DEBIAN_SITE}/main/c/${pkgname}/${pkgname}_${version}.tar.xz"
 checksum=daa3afae563711c30a0586ddae4336e8e3974c2b627faaca404c4e0141b64665
-patch_args=-Np0
 
 post_extract() {
 	$BUILD_CC $BUILD_CFLAGS ${FILESDIR}/certdata2pem.c -o ${wrksrc}/mozilla/certdata2pem
diff --git a/srcpkgs/cabal-install/patches/ghc-8.8.4.patch b/srcpkgs/cabal-install/patches/ghc-8.8.4.patch
index 1dd08f07fb44..5f93e5c4e2be 100644
--- a/srcpkgs/cabal-install/patches/ghc-8.8.4.patch
+++ b/srcpkgs/cabal-install/patches/ghc-8.8.4.patch
@@ -1,5 +1,5 @@
---- bootstrap.sh	2001-09-09 03:46:40.000000000 +0200
-+++ bootstrap.sh	2020-09-12 15:29:54.913108294 +0200
+--- a/bootstrap.sh
++++ b/bootstrap.sh
 @@ -230,19 +230,19 @@
                         # >= 0.2.* && < 0.6
  MTL_VER="2.2.2";       MTL_VER_REGEXP="[2]\."
diff --git a/srcpkgs/cabal-install/template b/srcpkgs/cabal-install/template
index 1db0f1c792e6..2c15789b1f9d 100644
--- a/srcpkgs/cabal-install/template
+++ b/srcpkgs/cabal-install/template
@@ -13,7 +13,6 @@ distfiles="https://hackage.haskell.org/packages/archive/${pkgname}/${version}/${
 checksum=a0555e895aaf17ca08453fde8b19af96725da8398e027aa43a49c1658a600cb0
 nopie_files="/usr/bin/cabal"
 nocross=yes
-patch_args=-Np0
 
 do_build() {
 	PREFIX=$PWD/build sh bootstrap.sh --jobs ${XBPS_MAKEJOBS} --user
diff --git a/srcpkgs/cackey/patches/no-rpath.patch b/srcpkgs/cackey/patches/no-rpath.patch
index 11384655aa70..6bc02aa6c618 100644
--- a/srcpkgs/cackey/patches/no-rpath.patch
+++ b/srcpkgs/cackey/patches/no-rpath.patch
@@ -1,7 +1,7 @@
 Index: configure.ac
 ===================================================================
---- configure.ac.orig
-+++ configure.ac
+--- a/configure.ac.orig
++++ b/configure.ac
 @@ -212,9 +212,6 @@ fi
  dnl Set version script, to limit the scope of symbols
  DC_SETVERSIONSCRIPT(libcackey.vers, libcackey.syms)
diff --git a/srcpkgs/cackey/template b/srcpkgs/cackey/template
index 6358543e178f..468dcd1c7b1b 100644
--- a/srcpkgs/cackey/template
+++ b/srcpkgs/cackey/template
@@ -13,7 +13,6 @@ homepage="http://www.rkeene.org/projects/info/wiki/161"
 distfiles="http://cackey.rkeene.org/download/$version/cackey-$version.tar.gz"
 checksum=e2074055bab8eb1c277bfa3355767c50f792d5b87bf41f9c0d1af0e77f311583
 CPPFLAGS="-I$XBPS_CROSS_BASE/usr/include/PCSC"
-patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/cadence/patches/QPainterPath.patch b/srcpkgs/cadence/patches/QPainterPath.patch
index b05a38b4383b..741f61c0ae62 100644
--- a/srcpkgs/cadence/patches/QPainterPath.patch
+++ b/srcpkgs/cadence/patches/QPainterPath.patch
@@ -1,5 +1,5 @@
---- c++/patchcanvas/canvasbezierline.cpp	2019-11-17 21:34:05.000000000 +0100
-+++ c++/patchcanvas/canvasbezierline.cpp	2020-09-02 13:13:34.042234477 +0200
+--- a/c++/patchcanvas/canvasbezierline.cpp
++++ b/c++/patchcanvas/canvasbezierline.cpp
 @@ -18,6 +18,7 @@
  #include "canvasbezierline.h"
  
@@ -8,8 +8,8 @@
  
  #include "canvasport.h"
  #include "canvasportglow.h"
---- c++/patchcanvas/canvasbezierlinemov.cpp	2019-11-17 21:34:05.000000000 +0100
-+++ c++/patchcanvas/canvasbezierlinemov.cpp	2020-09-02 13:13:27.093234119 +0200
+--- a/c++/patchcanvas/canvasbezierlinemov.cpp
++++ b/c++/patchcanvas/canvasbezierlinemov.cpp
 @@ -18,6 +18,7 @@
  #include "canvasbezierlinemov.h"
  
@@ -18,8 +18,8 @@
  
  #include "canvasport.h"
  
---- c++/widgets/pixmapdial.cpp	2019-11-17 21:34:05.000000000 +0100
-+++ c++/widgets/pixmapdial.cpp	2020-09-02 13:13:16.853233591 +0200
+--- a/c++/widgets/pixmapdial.cpp
++++ b/c++/widgets/pixmapdial.cpp
 @@ -21,6 +21,7 @@
  
  #include <QtCore/QTimer>
diff --git a/srcpkgs/cadence/template b/srcpkgs/cadence/template
index 283dc9312e0b..b429ab1f0fcb 100644
--- a/srcpkgs/cadence/template
+++ b/srcpkgs/cadence/template
@@ -16,7 +16,6 @@ license="GPL-2.0-only"
 homepage="http://kxstudio.linuxaudio.org/Applications:Cadence"
 distfiles="https://github.com/falkTX/Cadence/archive/v${version}.tar.gz"
 checksum=e530787ded0d53a3004c7a8260114ddb970c2aea43875d62eccd599ac96e1fd1
-patch_args=-Np0
 
 post_extract() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/calc/patches/endian-32.patch b/srcpkgs/calc/patches/endian-32.patch
index a45f22210ade..6b1bedef735f 100644
--- a/srcpkgs/calc/patches/endian-32.patch
+++ b/srcpkgs/calc/patches/endian-32.patch
@@ -25,8 +25,8 @@ Bug-Debian: http://bugs.debian.org/414893
 Forwarded: yes
 Author: Martin Buck <mbuck@debian.org>
 ---
---- file.c
-+++ file.c
+--- a/file.c
++++ b/file.c
 @@ -1367,7 +1367,7 @@
  	ret.len = FILEPOS_BITS/BASEB;
  	ret.v = alloc(ret.len);
diff --git a/srcpkgs/calc/template b/srcpkgs/calc/template
index d5c191ab4da4..bc2087ca2bd3 100644
--- a/srcpkgs/calc/template
+++ b/srcpkgs/calc/template
@@ -11,7 +11,6 @@ homepage="http://www.isthe.com/chongo/tech/comp/calc/index.html"
 distfiles="http://www.isthe.com/chongo/src/calc/calc-${version}.tar.bz2"
 checksum=eb1dc5dd680019e30264109167e20539fe9ac869049d8b1639781a51d1dea84c
 disable_parallel_build=yes
-patch_args=-Np0
 
 post_extract() {
 	case $XBPS_TARGET_MACHINE in
diff --git a/srcpkgs/cantata/patches/musl.patch b/srcpkgs/cantata/patches/musl.patch
index 0e76404f9547..99d0ef771ba9 100644
--- a/srcpkgs/cantata/patches/musl.patch
+++ b/srcpkgs/cantata/patches/musl.patch
@@ -1,5 +1,5 @@
---- 3rdparty/solid-lite/backends/udisks2/udisksblock.h.orig	2016-01-08 19:44:42.000000000 +0100
-+++ 3rdparty/solid-lite/backends/udisks2/udisksblock.h	2017-03-09 11:41:06.071250302 +0100
+--- a/3rdparty/solid-lite/backends/udisks2/udisksblock.h
++++ b/3rdparty/solid-lite/backends/udisks2/udisksblock.h
 @@ -21,6 +21,7 @@
  #ifndef UDISKS2BLOCK_H
  #define UDISKS2BLOCK_H
@@ -8,8 +8,8 @@
  #include <solid-lite/ifaces/block.h>
  #include "udisksdeviceinterface.h"
  
---- gui/main.cpp.orig	2018-06-16 10:09:13.072771604 +0200
-+++ gui/main.cpp	2018-06-16 10:10:00.840162507 +0200
+--- a/gui/main.cpp
++++ b/gui/main.cpp
 @@ -260,7 +260,7 @@
      qInstallMessageHandler(cantataQtMsgHandler);
  }
diff --git a/srcpkgs/cantata/template b/srcpkgs/cantata/template
index 428ce3175cf6..8ce1d756ace9 100644
--- a/srcpkgs/cantata/template
+++ b/srcpkgs/cantata/template
@@ -17,4 +17,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/cdrummond/cantata"
 distfiles="https://github.com/CDrummond/cantata/releases/download/v${version}/${pkgname}-${version}.tar.bz2"
 checksum=3ed25d0c838720af7ed08b89a30f3e05d6952d40a5f520f29b3558b2eacdec82
-patch_args=-Np0
diff --git a/srcpkgs/caps/patches/musl.patch b/srcpkgs/caps/patches/musl.patch
index fda239c5fe5a..fc37af14ed2b 100644
--- a/srcpkgs/caps/patches/musl.patch
+++ b/srcpkgs/caps/patches/musl.patch
@@ -1,5 +1,5 @@
---- basics.h	2019-01-07 16:13:33.353999394 +0100
-+++ basics.h	2019-01-07 16:13:44.915942123 +0100
+--- a/basics.h
++++ b/basics.h
 @@ -46,17 +46,18 @@
  
  #include <assert.h>
diff --git a/srcpkgs/caps/template b/srcpkgs/caps/template
index 853aec8890bf..5555e35858a2 100644
--- a/srcpkgs/caps/template
+++ b/srcpkgs/caps/template
@@ -11,7 +11,6 @@ license="GPL-3.0-or-later"
 homepage="http://quitte.de/dsp/caps.html"
 distfiles="http://quitte.de/dsp/${pkgname}_${version}.tar.bz2"
 checksum=e7496c5bce05abebe3dcb635926153bbb58a9337a6e423f048d3b61d8a4f98c9
-patch_args=-Np0
 
 pre_build() {
 	make_build_args="CC=${CXX} LD=${LD}"
diff --git a/srcpkgs/cargo/patches/fix-serde.diff b/srcpkgs/cargo/patches/fix-serde.diff
index d76499f5cd9f..8fc2cffee09a 100644
--- a/srcpkgs/cargo/patches/fix-serde.diff
+++ b/srcpkgs/cargo/patches/fix-serde.diff
@@ -1,8 +1,8 @@
 This patch was downloaded from "https://github.com/alexcrichton/cargo/commit/f097d02ea62111493b9f06d096a94dfddd020415.diff"
 diff --git src/cargo/util/config/de.rs src/cargo/util/config/de.rs
 index 758f5c23f1..a70cd0dce8 100644
---- src/cargo/util/config/de.rs
-+++ src/cargo/util/config/de.rs
+--- a/src/cargo/util/config/de.rs
++++ b/src/cargo/util/config/de.rs
 @@ -527,7 +527,7 @@ impl<'de, 'config> de::MapAccess<'de> for ValueDeserializer<'config> {
                  seed.deserialize(Tuple2Deserializer(0i32, path.to_string_lossy()))
              }
diff --git a/srcpkgs/cargo/patches/link-static.patch b/srcpkgs/cargo/patches/link-static.patch
index fac8adbf4e04..2c9caed4a847 100644
--- a/srcpkgs/cargo/patches/link-static.patch
+++ b/srcpkgs/cargo/patches/link-static.patch
@@ -1,5 +1,5 @@
---- Cargo.toml	2019-01-02 22:49:06.000000000 +0100
-+++ Cargo.toml	2019-02-13 15:12:44.616810828 +0100
+--- a/Cargo.toml
++++ b/Cargo.toml
 @@ -116,3 +116,5 @@ doc = false
  deny-warnings = []
  vendored-openssl = ["openssl/vendored"]
diff --git a/srcpkgs/cargo/template b/srcpkgs/cargo/template
index 654bdfe4a906..9c9781d1fc47 100644
--- a/srcpkgs/cargo/template
+++ b/srcpkgs/cargo/template
@@ -14,7 +14,6 @@ homepage="https://crates.io/"
 distfiles="https://github.com/rust-lang/cargo/archive/${version}.tar.gz"
 checksum=59ba1ce05becb4a5e0772d334d75f9dce3d5487ca288ac986e786241bb1cbac5
 replaces="cargo-tree>=0"
-patch_args=-Np0
 
 build_options="static bindist"
 desc_option_bindist="Generate a tarball for bootstrap"
diff --git a/srcpkgs/catch2/patches/musl-test.patch b/srcpkgs/catch2/patches/musl-test.patch
index f469dc45e02d..00b0bdbaf714 100644
--- a/srcpkgs/catch2/patches/musl-test.patch
+++ b/srcpkgs/catch2/patches/musl-test.patch
@@ -2,8 +2,8 @@ From: Johnnynator
 
 errno on Musl and Glibc expand differently by one space
 ---
---- scripts/approvalTests.py	2019-12-28 21:24:04.000000000 +0100
-+++ -	2020-12-31 16:19:56.118506507 +0100
+--- a/scripts/approvalTests.py
++++ b/-
 @@ -44,7 +44,7 @@
  
  # errno macro expands into various names depending on platform, so we need to fix them up as well
diff --git a/srcpkgs/catch2/template b/srcpkgs/catch2/template
index 09607734bc90..23e59016d313 100644
--- a/srcpkgs/catch2/template
+++ b/srcpkgs/catch2/template
@@ -15,7 +15,6 @@ license="BSL-1.0"
 homepage="https://github.com/catchorg/Catch2"
 distfiles="https://github.com/catchorg/Catch2/archive/v${version}/${pkgname}-v${version}.tar.gz"
 checksum=e7eb70b3d0ac2ed7dcf14563ad808740c29e628edde99e973adad373a2b5e4df
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/catdoc/patches/001-XLS_parsing_improvements.patch b/srcpkgs/catdoc/patches/001-XLS_parsing_improvements.patch
index c5244947fb80..24c31da3e09d 100644
--- a/srcpkgs/catdoc/patches/001-XLS_parsing_improvements.patch
+++ b/srcpkgs/catdoc/patches/001-XLS_parsing_improvements.patch
@@ -6,8 +6,8 @@ Description: Improve the XLS parsing:
  * Accept different versions of BOF and XF records.
  * Add more #defines for record types.
 
---- src/xlsparse.c
-+++ src/xlsparse.c
+--- a/src/xlsparse.c
++++ b/src/xlsparse.c
 @@ -107,12 +107,13 @@
  			itemsread = catdoc_read(rec, 1, reclen, input);
  			rec[reclen] = '\0';
@@ -86,8 +86,8 @@ Description: Improve the XLS parsing:
  				if (!formatTable) {
  					fprintf(stderr,"Out of memory for format table");
  					exit (1);
---- src/xltypes.h
-+++ src/xltypes.h
+--- a/src/xltypes.h
++++ b/src/xltypes.h
 @@ -20,7 +20,7 @@
  #define AUTOFILTERINFO 		 0x9D
  #define BACKUP 		         0x40
diff --git a/srcpkgs/catdoc/patches/002-CVE-2017-11110.patch b/srcpkgs/catdoc/patches/002-CVE-2017-11110.patch
index 581e0ded9d24..d36d5d63ce6b 100644
--- a/srcpkgs/catdoc/patches/002-CVE-2017-11110.patch
+++ b/srcpkgs/catdoc/patches/002-CVE-2017-11110.patch
@@ -7,8 +7,8 @@ Author: Andreas Stieger <astieger@suse.com>
 Reviewed-by: Salvatore Bonaccorso <carnil@debian.org>
 Last-Update: 2017-07-20
 
---- src/ole.c
-+++ src/ole.c
+--- a/src/ole.c
++++ b/src/ole.c
 @@ -106,6 +106,11 @@ FILE* ole_init(FILE *f, void *buffer, si
  		return NULL;
  	}
diff --git a/srcpkgs/catdoc/patches/003-Fix_OLENAMELENGTH.patch b/srcpkgs/catdoc/patches/003-Fix_OLENAMELENGTH.patch
index 2c2b9461b58d..b752179020e9 100644
--- a/srcpkgs/catdoc/patches/003-Fix_OLENAMELENGTH.patch
+++ b/srcpkgs/catdoc/patches/003-Fix_OLENAMELENGTH.patch
@@ -4,8 +4,8 @@ Forwarded: no
 Author: Robert Zavalczki <robert.zavalczki@gmail.com>
 Last-Update: 2017-09-13
 
---- src/ole.c
-+++ src/ole.c
+--- a/src/ole.c
++++ b/src/ole.c
 @@ -342,7 +342,7 @@
  	e->blocks=NULL;
  
diff --git a/srcpkgs/catdoc/template b/srcpkgs/catdoc/template
index 06522d692116..ff26dbc5f7be 100644
--- a/srcpkgs/catdoc/template
+++ b/srcpkgs/catdoc/template
@@ -11,7 +11,6 @@ license="GPL-2.0-only"
 homepage="http://www.wagner.pp.ru/~vitus/software/catdoc/"
 distfiles="http://ftp.wagner.pp.ru/pub/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=514a84180352b6bf367c1d2499819dfa82b60d8c45777432fa643a5ed7d80796
-patch_args=-Np0
 
 do_install() {
 	vmkdir usr/share/man/man1
diff --git a/srcpkgs/cbang/patches/sys_time_h.patch b/srcpkgs/cbang/patches/sys_time_h.patch
index 4027989f41e7..9d4663ee72d7 100644
--- a/srcpkgs/cbang/patches/sys_time_h.patch
+++ b/srcpkgs/cbang/patches/sys_time_h.patch
@@ -1,5 +1,5 @@
---- src/cbang/time/Timer.h	2020-01-20 01:56:06.000000000 +0100
-+++ src/cbang/time/Timer.h	2020-04-06 09:05:08.440687355 +0200
+--- a/src/cbang/time/Timer.h
++++ b/src/cbang/time/Timer.h
 @@ -38,9 +38,7 @@
  #endif // _WIN32
  
diff --git a/srcpkgs/cbang/template b/srcpkgs/cbang/template
index 739b521d98c3..63388b2aa828 100644
--- a/srcpkgs/cbang/template
+++ b/srcpkgs/cbang/template
@@ -14,7 +14,6 @@ license="LGPL-2.1-only"
 homepage="https://github.com/CauldronDevelopmentLLC/cbang"
 distfiles="https://github.com/CauldronDevelopmentLLC/cbang/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=8aa5efacf419b712b5bd0172c9d56301bdcbd477cb590ceec25c3595a192e9c0
-patch_args=-Np0
 
 pre_build() {
 	make_build_args+=" prefix=$DESTDIR/usr"
diff --git a/srcpkgs/ccextractor/patches/disable_arm_neon.patch b/srcpkgs/ccextractor/patches/disable_arm_neon.patch
index 0eb114e1ddc0..fd34865b24a2 100644
--- a/srcpkgs/ccextractor/patches/disable_arm_neon.patch
+++ b/srcpkgs/ccextractor/patches/disable_arm_neon.patch
@@ -1,5 +1,5 @@
---- src/thirdparty/libpng/pngpriv.h.orig	2021-06-13 21:05:33.000000000 +0200
-+++ src/thirdparty/libpng/pngpriv.h	2021-06-17 17:35:17.217940102 +0200
+--- a/src/thirdparty/libpng/pngpriv.h
++++ b/src/thirdparty/libpng/pngpriv.h
 @@ -107,6 +107,7 @@
   * this in $(CC), e.g. "CC=gcc -mfpu=neon", but people who build libpng rarely
   * do this.
diff --git a/srcpkgs/ccextractor/template b/srcpkgs/ccextractor/template
index 9bdd5e05fc3f..fe27e68b04f5 100644
--- a/srcpkgs/ccextractor/template
+++ b/srcpkgs/ccextractor/template
@@ -15,7 +15,6 @@ changelog="https://raw.githubusercontent.com/CCExtractor/ccextractor/master/docs
 distfiles="https://github.com/CCExtractor/${pkgname}/archive/v${version}.tar.gz"
 checksum=bbe8d95347d0cf31bd26489b733fd959a7b98c681f14c59309bff54713fd539d
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/tesseract -DPNG_POWERPC_VSX_OPT=0 -fcommon"
-patch_args=-Np0
 
 pre_configure() {
 	sed -i -e "s/tesseract --version/tesseract-ocr --version/g" configure.ac
diff --git a/srcpkgs/ccl/patches/musl-fixes.patch b/srcpkgs/ccl/patches/musl-fixes.patch
index 4fee1f4420e1..73e7de7fc903 100644
--- a/srcpkgs/ccl/patches/musl-fixes.patch
+++ b/srcpkgs/ccl/patches/musl-fixes.patch
@@ -1,5 +1,5 @@
---- lisp-kernel/lisp-debug.c	2015-11-07 07:10:11.000000000 +1100
-+++ lisp-kernel/lisp-debug.c	2016-12-18 10:35:29.070710875 +1100
+--- a/lisp-kernel/lisp-debug.c
++++ b/lisp-kernel/lisp-debug.c
 @@ -36,6 +36,11 @@
  #include <dlfcn.h>
  #endif
@@ -12,8 +12,8 @@
  
  FILE *dbgout = NULL, *dbgin=NULL;
  
---- lisp-kernel/pmcl-kernel.c	2015-11-07 07:10:11.000000000 +1100
-+++ lisp-kernel/pmcl-kernel.c	2016-12-18 10:34:36.854708181 +1100
+--- a/lisp-kernel/pmcl-kernel.c
++++ b/lisp-kernel/pmcl-kernel.c
 @@ -36,7 +36,7 @@
  #endif
  
@@ -34,8 +34,8 @@
 +  #endif
    /*
     * According arch_prctl(2), there's no function prototype for
---- lisp-kernel/thread_manager.c	2015-11-07 07:10:11.000000000 +1100
-+++ lisp-kernel/thread_manager.c	2016-12-18 10:32:35.095701899 +1100
+--- a/lisp-kernel/thread_manager.c
++++ b/lisp-kernel/thread_manager.c
 @@ -185,7 +185,7 @@
  void
  set_thread_affinity(TCR *target, unsigned cpuno)
@@ -45,8 +45,8 @@
  #ifndef ANDROID                 /* too useful to be in Android ... */
    pthread_t thread = (pthread_t)(target->osid);
    cpu_set_t mask;
---- lisp-kernel/x86-exceptions.c	2015-11-07 07:10:11.000000000 +1100
-+++ lisp-kernel/x86-exceptions.c	2016-12-18 10:30:47.952696372 +1100
+--- a/lisp-kernel/x86-exceptions.c
++++ b/lisp-kernel/x86-exceptions.c
 @@ -29,7 +29,9 @@
  #ifdef LINUX
  #include <strings.h>
diff --git a/srcpkgs/ccl/patches/nopie.patch b/srcpkgs/ccl/patches/nopie.patch
index 328ceb4364af..8bdd6f5630c3 100644
--- a/srcpkgs/ccl/patches/nopie.patch
+++ b/srcpkgs/ccl/patches/nopie.patch
@@ -1,5 +1,5 @@
---- lisp-kernel/linuxx8664/Makefile.orig
-+++ lisp-kernel/linuxx8664/Makefile
+--- a/lisp-kernel/linuxx8664/Makefile.orig
++++ b/lisp-kernel/linuxx8664/Makefile
 @@ -69,7 +69,7 @@
  all:	../../lx86cl64
  
@@ -9,8 +9,8 @@
  LINK_MAP = ./elf_x86_64.x
  USE_LINK_MAP = # -T ./elf_x86_64.x
  
---- lisp-kernel/linuxx8632/Makefile.orig
-+++ lisp-kernel/linuxx8632/Makefile
+--- a/lisp-kernel/linuxx8632/Makefile.orig
++++ b/lisp-kernel/linuxx8632/Makefile
 @@ -69,7 +69,7 @@
  all:	../../lx86cl
  
diff --git a/srcpkgs/ccl/template b/srcpkgs/ccl/template
index d6a2bc83ee74..5972ddeb0ce6 100644
--- a/srcpkgs/ccl/template
+++ b/srcpkgs/ccl/template
@@ -21,7 +21,6 @@ nopie=1
 nostrip=1
 disable_parallel_build=1
 python_version=3
-patch_args=-Np0
 
 case $XBPS_MACHINE in
 	x86_64*) _arch=64 ;;
diff --git a/srcpkgs/cclive/patches/fix-boost-067.patch b/srcpkgs/cclive/patches/fix-boost-067.patch
index 0acd06ab0e20..17cbfe965c88 100644
--- a/srcpkgs/cclive/patches/fix-boost-067.patch
+++ b/srcpkgs/cclive/patches/fix-boost-067.patch
@@ -1,5 +1,5 @@
---- src/cc/progressbar.h	2013-11-23 11:46:27.000000000 +0200
-+++ src/cc/progressbar.h	2018-06-03 02:23:36.603414837 +0300
+--- a/src/cc/progressbar.h
++++ b/src/cc/progressbar.h
 @@ -316,7 +316,7 @@ private:
  
    static inline std::string eta_from_seconds(const double s)
diff --git a/srcpkgs/cclive/patches/fix-missing-iostream-includes.patch b/srcpkgs/cclive/patches/fix-missing-iostream-includes.patch
index 305bd7e14773..7b049a914b49 100644
--- a/srcpkgs/cclive/patches/fix-missing-iostream-includes.patch
+++ b/srcpkgs/cclive/patches/fix-missing-iostream-includes.patch
@@ -1,7 +1,7 @@
 diff --git a/src/cc/error.h b/src/cc/error.h
 index c1d80ab..98a4a10 100644
---- src/cc/error.h
-+++ src/cc/error.h
+--- a/src/cc/error.h
++++ b/src/cc/error.h
 @@ -21,6 +21,7 @@
  #ifndef cc__error_h
  #define cc__error_h
@@ -12,8 +12,8 @@ index c1d80ab..98a4a10 100644
  #include <boost/exception/diagnostic_information.hpp>
 diff --git a/src/cc/log.h b/src/cc/log.h
 index 2b2c986..77708f5 100644
---- src/cc/log.h
-+++ src/cc/log.h
+--- a/src/cc/log.h
++++ b/src/cc/log.h
 @@ -21,6 +21,7 @@
  #ifndef cc__log_h
  #define cc__log_h
@@ -24,8 +24,8 @@ index 2b2c986..77708f5 100644
  #include <boost/iostreams/filtering_stream.hpp>
 diff --git a/src/cc/options.h b/src/cc/options.h
 index 6c45ce8..d757bfb 100644
---- src/cc/options.h
-+++ src/cc/options.h
+--- a/src/cc/options.h
++++ b/src/cc/options.h
 @@ -21,6 +21,8 @@
  #ifndef cc__options_h
  #define cc__options_h
diff --git a/srcpkgs/cclive/patches/musl-strerror_r.patch b/srcpkgs/cclive/patches/musl-strerror_r.patch
index cec71dd684f3..ead3509f1747 100644
--- a/srcpkgs/cclive/patches/musl-strerror_r.patch
+++ b/srcpkgs/cclive/patches/musl-strerror_r.patch
@@ -1,5 +1,5 @@
---- src/cc/error.h	2018-12-29 15:15:13.042776367 +0100
-+++ -	2018-12-29 15:24:13.933668360 +0100
+--- a/src/cc/error.h
++++ b/-
 @@ -40,7 +40,8 @@
  static inline std::string strerror(const int ec)
  {
diff --git a/srcpkgs/cclive/template b/srcpkgs/cclive/template
index d221a95f2520..c43dbb94209c 100644
--- a/srcpkgs/cclive/template
+++ b/srcpkgs/cclive/template
@@ -12,7 +12,6 @@ homepage="http://cclive.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=2edeaf5d76455723577e0b593f0322a97f1e0c8b0cffcc70eca8b5d17374a495
 CPPFLAGS="-P"
-patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/ccsm/patches/prefix.patch b/srcpkgs/ccsm/patches/prefix.patch
index 7dfb532f40f8..95fb6da63350 100644
--- a/srcpkgs/ccsm/patches/prefix.patch
+++ b/srcpkgs/ccsm/patches/prefix.patch
@@ -1,5 +1,5 @@
---- setup.py	2017-03-02 11:35:41.688884000 -0800
-+++ setup.py	2017-03-02 11:36:07.745885086 -0800
+--- a/setup.py
++++ b/setup.py
 @@ -103,7 +103,7 @@
  if not prefix and "PREFIX" in os.environ:
      prefix = os.environ["PREFIX"]
diff --git a/srcpkgs/ccsm/template b/srcpkgs/ccsm/template
index 168445d7ec45..7f27e3317fc4 100644
--- a/srcpkgs/ccsm/template
+++ b/srcpkgs/ccsm/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/compiz-reloaded"
 distfiles="https://github.com/compiz-reloaded/ccsm/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=99192a021631cc5a82131fbc03d2f1b7e587892878902113d9bde57a6b00bfa4
-patch_args=-Np0
 
 if [ -z "$CROSS_BUILD" ]; then
 	makedepends+=" python-gobject-devel"
diff --git a/srcpkgs/cdb/patches/errno.patch b/srcpkgs/cdb/patches/errno.patch
index fe89c1eafed3..4211155a9f14 100644
--- a/srcpkgs/cdb/patches/errno.patch
+++ b/srcpkgs/cdb/patches/errno.patch
@@ -1,5 +1,5 @@
---- error.h	2016-02-22 14:53:04.541809816 +0000
-+++ error.h	2016-02-22 14:54:20.978714226 +0000
+--- a/error.h
++++ b/error.h
 @@ -1,3 +1,4 @@
 +#include <errno.h>
  #ifndef ERROR_H
diff --git a/srcpkgs/cdb/patches/makefile.patch b/srcpkgs/cdb/patches/makefile.patch
index 0ea5a86272a5..4efdd4879d93 100644
--- a/srcpkgs/cdb/patches/makefile.patch
+++ b/srcpkgs/cdb/patches/makefile.patch
@@ -1,5 +1,5 @@
---- Makefile.orig	2000-02-19 15:42:05.000000000 -0500
-+++ Makefile	2016-02-22 16:58:48.006067048 -0500
+--- a/Makefile
++++ b/Makefile
 @@ -2,7 +2,7 @@
  
  SHELL=/bin/sh
diff --git a/srcpkgs/cdb/template b/srcpkgs/cdb/template
index 410f978ee7f9..c95afff379bb 100644
--- a/srcpkgs/cdb/template
+++ b/srcpkgs/cdb/template
@@ -9,7 +9,6 @@ license="Public Domain"
 homepage="http://cr.yp.to/cdb.html"
 distfiles="http://cr.yp.to/cdb/cdb-${version}.tar.gz"
 checksum="1919577799a50c080a8a05a1cbfa5fa7e7abc823d8d7df2eeb181e624b7952c5"
-patch_args=-Np0
 
 alternatives="
  cdb:cdbdump:/usr/bin/cdb-dump
diff --git a/srcpkgs/cdecl/patches/fix-reserved_keyword.patch b/srcpkgs/cdecl/patches/fix-reserved_keyword.patch
index a8fde941b07a..6bd9b8ea7ca3 100644
--- a/srcpkgs/cdecl/patches/fix-reserved_keyword.patch
+++ b/srcpkgs/cdecl/patches/fix-reserved_keyword.patch
@@ -1,5 +1,5 @@
---- cdecl.c	2009-10-20 11:25:25.000000000 +0200
-+++ cdecl.c	2016-10-21 12:29:34.791599362 +0200
+--- a/cdecl.c
++++ b/cdecl.c
 @@ -245,7 +245,7 @@
  /* for unsupported combinations of types. */
  void mbcheck()
diff --git a/srcpkgs/cdecl/template b/srcpkgs/cdecl/template
index 6de896357130..e120ca3af500 100644
--- a/srcpkgs/cdecl/template
+++ b/srcpkgs/cdecl/template
@@ -14,7 +14,6 @@ homepage="http://cdecl.org/"
 distfiles="${homepage}files/${wrksrc}.tar.gz"
 checksum=9ee6402be7e4f5bb5e6ee60c6b9ea3862935bf070e6cecd0ab0842305406f3ac
 CFLAGS="-DUSE_READLINE"
-patch_args=-Np0
 
 pre_build() {
 	flex -l -o cdlex.c cdlex.l
diff --git a/srcpkgs/cdm/patches/fix-bashisms.patch b/srcpkgs/cdm/patches/fix-bashisms.patch
index a81f665c9483..81aa54af296a 100644
--- a/srcpkgs/cdm/patches/fix-bashisms.patch
+++ b/srcpkgs/cdm/patches/fix-bashisms.patch
@@ -2,8 +2,8 @@ Source: maxice8
 Upstream: to be upstreamed
 Reason: fixes running it with POSIX shells
 
---- src/profile.sh
-+++ src/profile.sh
+--- a/src/profile.sh
++++ b/src/profile.sh
 @@ -1,8 +1,8 @@
  # To avoid potential situation where cdm(1) crashes on every TTY, here we
  # default to execute cdm(1) on tty1 only, and leave other TTYs untouched.
diff --git a/srcpkgs/cdm/template b/srcpkgs/cdm/template
index 5f8a016741b4..f1fb8b2f646c 100644
--- a/srcpkgs/cdm/template
+++ b/srcpkgs/cdm/template
@@ -9,7 +9,6 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/evertiro/cdm"
 distfiles="https://github.com/evertiro/cdm/archive/${version}.tar.gz"
 checksum=530042165ce65cdff3ec62ba9f077d0e8c6744c13f5d449d84fe2506a79d2e56
-patch_args=-Np0
 
 do_install() {
 	sed -i 's| /| $PKGDESTDIR/|g' install.sh
diff --git a/srcpkgs/cdparanoia/patches/autoconf-init-ac_cv_objext.patch b/srcpkgs/cdparanoia/patches/autoconf-init-ac_cv_objext.patch
index c5978b3ab46b..5f431119a979 100644
--- a/srcpkgs/cdparanoia/patches/autoconf-init-ac_cv_objext.patch
+++ b/srcpkgs/cdparanoia/patches/autoconf-init-ac_cv_objext.patch
@@ -2,8 +2,8 @@ AC_PROG_CC will initialise a lot of value which is used by
 - AC_HEADER_STDC; and
 - AC_CHECK_SIZEOF
 ---
---- configure.in
-+++ configure.in
+--- a/configure.in
++++ b/configure.in
 @@ -5,9 +5,7 @@ cp $srcdir/configure.sub $srcdir/config.sub
  
  AC_CANONICAL_HOST
diff --git a/srcpkgs/cdparanoia/patches/gcc.diff b/srcpkgs/cdparanoia/patches/gcc.diff
index b157353e2865..182bd694d078 100644
--- a/srcpkgs/cdparanoia/patches/gcc.diff
+++ b/srcpkgs/cdparanoia/patches/gcc.diff
@@ -1,7 +1,7 @@
 Index: interface/test_interface.c
 ===================================================================
---- interface/test_interface.c	(Revision 15337)
-+++ interface/test_interface.c	(Revision 15340)
+--- a/interface/test_interface.c
++++ b/interface/test_interface.c
 @@ -66,9 +66,9 @@
    if(!fd)fd=fdopen(d->cdda_fd,"r");
  
@@ -16,8 +16,8 @@ Index: interface/test_interface.c
    sectors-=1;
 Index: interface/cdda_interface.h
 ===================================================================
---- interface/cdda_interface.h	(Revision 15337)
-+++ interface/cdda_interface.h	(Revision 15340)
+--- a/interface/cdda_interface.h
++++ b/interface/cdda_interface.h
 @@ -84,7 +84,7 @@
    int is_atapi;
    int is_mmc;
@@ -29,8 +29,8 @@ Index: interface/cdda_interface.h
  
 Index: interface/interface.c
 ===================================================================
---- interface/interface.c	(Revision 15337)
-+++ interface/interface.c	(Revision 15340)
+--- a/interface/interface.c
++++ b/interface/interface.c
 @@ -39,9 +39,9 @@
      if(d->drive_model)free(d->drive_model);
      if(d->cdda_fd!=-1)close(d->cdda_fd);
@@ -55,8 +55,8 @@ Index: interface/interface.c
    
 Index: interface/scsi_interface.c
 ===================================================================
---- interface/scsi_interface.c	(Revision 15337)
-+++ interface/scsi_interface.c	(Revision 15340)
+--- a/interface/scsi_interface.c
++++ b/interface/scsi_interface.c
 @@ -15,13 +15,13 @@
  static int timed_ioctl(cdrom_drive *d, int fd, int command, void *arg){
    struct timespec tv1;
@@ -490,8 +490,8 @@ Index: interface/scsi_interface.c
  }
 Index: interface/cooked_interface.c
 ===================================================================
---- interface/cooked_interface.c	(Revision 15337)
-+++ interface/cooked_interface.c	(Revision 15340)
+--- a/interface/cooked_interface.c
++++ b/interface/cooked_interface.c
 @@ -13,13 +13,13 @@
  static int timed_ioctl(cdrom_drive *d, int fd, int command, void *arg){
    struct timespec tv1;
@@ -512,8 +512,8 @@ Index: interface/cooked_interface.c
  }
 Index: interface/scan_devices.c
 ===================================================================
---- interface/scan_devices.c	(Revision 15337)
-+++ interface/scan_devices.c	(Revision 15340)
+--- a/interface/scan_devices.c
++++ b/interface/scan_devices.c
 @@ -264,11 +264,11 @@
    d->interface=COOKED_IOCTL;
    d->bigendianp=-1; /* We don't know yet... */
diff --git a/srcpkgs/cdparanoia/patches/makefile.in-install.patch b/srcpkgs/cdparanoia/patches/makefile.in-install.patch
index 6dbc6939a156..a9452ac881f4 100644
--- a/srcpkgs/cdparanoia/patches/makefile.in-install.patch
+++ b/srcpkgs/cdparanoia/patches/makefile.in-install.patch
@@ -1,5 +1,5 @@
---- Makefile.in
-+++ Makefile.in
+--- a/Makefile.in
++++ b/Makefile.in
 @@ -19,10 +19,10 @@ RANLIB=@RANLIB@
  INSTALL=@INSTALL@
  prefix=@prefix@
diff --git a/srcpkgs/cdparanoia/patches/musl.patch b/srcpkgs/cdparanoia/patches/musl.patch
index eab57ab42f19..a7ccd53cec90 100644
--- a/srcpkgs/cdparanoia/patches/musl.patch
+++ b/srcpkgs/cdparanoia/patches/musl.patch
@@ -1,5 +1,5 @@
---- utils.h.orig	2020-04-13 01:11:27.959275309 +0200
-+++ utils.h	2020-04-13 01:11:38.213384799 +0200
+--- a/utils.h
++++ b/utils.h
 @@ -3,6 +3,7 @@
  #include <stdio.h>
  #include <errno.h>
diff --git a/srcpkgs/cdparanoia/template b/srcpkgs/cdparanoia/template
index 956184ded118..3cf09587f215 100644
--- a/srcpkgs/cdparanoia/template
+++ b/srcpkgs/cdparanoia/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.xiph.org/paranoia/"
 distfiles="http://downloads.xiph.org/releases/$pkgname/$pkgname-III-$version.src.tgz"
 checksum=005db45ef4ee017f5c32ec124f913a0546e77014266c6a1c50df902a55fe64df
-patch_args=-Np0
 
 CFLAGS="-Du_int16_t=uint16_t -Du_int32_t=uint32_t"
 disable_parallel_build=yes
diff --git a/srcpkgs/cegui/patches/fix-ccache-rule.patch b/srcpkgs/cegui/patches/fix-ccache-rule.patch
index 66a1929bef85..4e4dd11426af 100644
--- a/srcpkgs/cegui/patches/fix-ccache-rule.patch
+++ b/srcpkgs/cegui/patches/fix-ccache-rule.patch
@@ -3,8 +3,8 @@ Set the ccache prefix by means of RULE_LAUNCH_COMPILE and
 RULE_LAUNCH_LINK only, if the environment's variable CXX is
 not already a symbolic link to ccache.
 
---- CMakeLists.txt
-+++ CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
 @@ -137,8 +137,14 @@
  find_program(CCACHE_FOUND ccache)
  if(CCACHE_FOUND)
diff --git a/srcpkgs/cegui/patches/musl_execinfo.patch b/srcpkgs/cegui/patches/musl_execinfo.patch
index 3232324b8127..feb659a09e59 100644
--- a/srcpkgs/cegui/patches/musl_execinfo.patch
+++ b/srcpkgs/cegui/patches/musl_execinfo.patch
@@ -1,5 +1,5 @@
---- cegui/src/Exceptions.cpp
-+++ cegui/src/Exceptions.cpp
+--- a/cegui/src/Exceptions.cpp
++++ b/cegui/src/Exceptions.cpp
 @@ -39,7 +39,7 @@
  #   include <dbghelp.h>
  #elif defined(__ANDROID__)
diff --git a/srcpkgs/cegui/template b/srcpkgs/cegui/template
index 14cd66cd83fb..070fa66aff81 100644
--- a/srcpkgs/cegui/template
+++ b/srcpkgs/cegui/template
@@ -23,7 +23,6 @@ homepage="http://cegui.org.uk/"
 distfiles="https://github.com/cegui/cegui/archive/${_githash}.tar.gz"
 checksum=70156257313b81d068d6592887157dd16b91d7bc0dfdcba02a96ed371d329e64
 replaces="cegui-data>=0 cegui-sample>=0"
-patch_args=-Np0
 
 build_options="gtk irrlicht ogre python"
 desc_option_irrlicht="Enable support for Irrlicht"
diff --git a/srcpkgs/cegui07/patches/fix-build.patch b/srcpkgs/cegui07/patches/fix-build.patch
index 42e360f9713e..a56b1a50da7f 100644
--- a/srcpkgs/cegui07/patches/fix-build.patch
+++ b/srcpkgs/cegui07/patches/fix-build.patch
@@ -1,5 +1,5 @@
---- cegui/include/CEGUISystem.h.orig
-+++ cegui/include/CEGUISystem.h
+--- a/cegui/include/CEGUISystem.h.orig
++++ b/cegui/include/CEGUISystem.h
 @@ -1123,12 +1123,6 @@
             ScriptModule* scriptModule, const String& configFile,
             const String& logFile);
@@ -27,8 +27,8 @@
  };
  
  } // End of  CEGUI namespace section
---- cegui/include/RendererModules/OpenGL/CEGUIOpenGLRenderer.h.orig
-+++ cegui/include/RendererModules/OpenGL/CEGUIOpenGLRenderer.h
+--- a/cegui/include/RendererModules/OpenGL/CEGUIOpenGLRenderer.h.orig
++++ b/cegui/include/RendererModules/OpenGL/CEGUIOpenGLRenderer.h
 @@ -291,12 +291,6 @@
      */
      OpenGLRenderer(const Size& display_size, const TextureTargetType tt_type);
@@ -56,8 +56,8 @@
    };
  
  } // End of  CEGUI namespace section
---- cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp.orig
-+++ cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp
+--- a/cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp.orig
++++ b/cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp
 @@ -145,7 +145,7 @@
                  processElement(childNode->ToElement());
                  break;
@@ -67,8 +67,8 @@
                      d_handler->text((utf8*)childNode->ToText()->Value());
                  break;
  
---- configure.ac.orig
-+++ configure.ac
+--- a/configure.ac.orig
++++ b/configure.ac
 @@ -14,7 +14,8 @@
  
  AC_INIT([CEGUI], [CEGUI_RELEASE_VERSION], [http://mantis.cegui.org.uk/], [CEGUI])
diff --git a/srcpkgs/cegui07/template b/srcpkgs/cegui07/template
index 352613cf01d5..3fa7f80a2ea7 100644
--- a/srcpkgs/cegui07/template
+++ b/srcpkgs/cegui07/template
@@ -20,7 +20,6 @@ license="MIT"
 homepage="http://cegui.org.uk/"
 distfiles="${SOURCEFORGE_SITE}/crayzedsgui/CEGUI%20Mk-2/${version}/CEGUI-${version}.tar.gz"
 checksum=7c3b264def08b46de749c2acaba363e907479d924612436f3bd09da2e474bb8c
-patch_args=-Np0
 
 build_options="irrlicht python"
 desc_option_irrlicht="Enable support for Irrlicht"
diff --git a/srcpkgs/celestia-glut/patches/NULL_notdecleared.patch b/srcpkgs/celestia-glut/patches/NULL_notdecleared.patch
index bc14c29a31e3..1499c577b313 100644
--- a/srcpkgs/celestia-glut/patches/NULL_notdecleared.patch
+++ b/srcpkgs/celestia-glut/patches/NULL_notdecleared.patch
@@ -1,5 +1,5 @@
---- src/celengine/frametree.h.orig	2014-04-26 16:08:47.217900392 +0200
-+++ src/celengine/frametree.h	2014-04-26 16:09:09.601899991 +0200
+--- a/src/celengine/frametree.h
++++ b/src/celengine/frametree.h
 @@ -13,6 +13,7 @@
  #ifndef _CELENGINE_FRAMETREE_H_
  #define _CELENGINE_FRAMETREE_H_
diff --git a/srcpkgs/celestia-glut/patches/Z_BEST_COMPRESSION.patch b/srcpkgs/celestia-glut/patches/Z_BEST_COMPRESSION.patch
index 90c6a34c1021..6dc542ff3b84 100644
--- a/srcpkgs/celestia-glut/patches/Z_BEST_COMPRESSION.patch
+++ b/srcpkgs/celestia-glut/patches/Z_BEST_COMPRESSION.patch
@@ -1,5 +1,5 @@
---- src/celestia/imagecapture.cpp.orig	2014-04-26 16:15:37.185893050 +0200
-+++ src/celestia/imagecapture.cpp	2014-04-26 16:16:56.697891627 +0200
+--- a/src/celestia/imagecapture.cpp
++++ b/src/celestia/imagecapture.cpp
 @@ -31,6 +31,9 @@
  #include "png.h"
  #endif
diff --git a/srcpkgs/celestia-glut/patches/fix-stdint_redefine.patch b/srcpkgs/celestia-glut/patches/fix-stdint_redefine.patch
index 2bd7de986dea..05b9fe646472 100644
--- a/srcpkgs/celestia-glut/patches/fix-stdint_redefine.patch
+++ b/srcpkgs/celestia-glut/patches/fix-stdint_redefine.patch
@@ -1,7 +1,7 @@
 Do not try to redefine INT64_MAX, if it is already defined.
 
---- src/celutil/basictypes.h	2011-06-05 18:11:15.000000000 +0200
-+++ src/celutil/basictypes.h	2016-09-02 17:41:33.335187908 +0200
+--- a/src/celutil/basictypes.h
++++ b/src/celutil/basictypes.h
 @@ -31,7 +31,9 @@
  #include <limits>
  typedef          int64_t int64;
diff --git a/srcpkgs/celestia-glut/patches/memcpy_notdecleared.patch b/srcpkgs/celestia-glut/patches/memcpy_notdecleared.patch
index 201721ba849f..e11108f37c1d 100644
--- a/srcpkgs/celestia-glut/patches/memcpy_notdecleared.patch
+++ b/srcpkgs/celestia-glut/patches/memcpy_notdecleared.patch
@@ -1,5 +1,5 @@
---- src/celengine/image.cpp.orig	2014-04-26 14:41:56.359993709 +0200
-+++ src/celengine/image.cpp	2014-04-26 14:42:16.886993341 +0200
+--- a/src/celengine/image.cpp
++++ b/src/celengine/image.cpp
 @@ -42,6 +42,7 @@
  #include "jpeglib.h"
  #else
@@ -9,8 +9,8 @@
  #endif
  }
 
---- src/celengine/texture.cpp.orig	2014-04-26 15:54:19.937915924 +0200
-+++ src/celengine/texture.cpp	2014-04-26 15:54:46.992915439 +0200
+--- a/src/celengine/texture.cpp
++++ b/src/celengine/texture.cpp
 @@ -28,6 +28,7 @@
  #include <cstdlib>
  #include <cstdio>
diff --git a/srcpkgs/celestia-glut/patches/missing_mathlib.patch b/srcpkgs/celestia-glut/patches/missing_mathlib.patch
index a2f2ba2674c8..fad7ffb08de6 100644
--- a/srcpkgs/celestia-glut/patches/missing_mathlib.patch
+++ b/srcpkgs/celestia-glut/patches/missing_mathlib.patch
@@ -1,5 +1,5 @@
---- src/celmath/intersect.h.orig	2014-04-26 15:57:58.793912004 +0200
-+++ src/celmath/intersect.h	2014-04-26 16:00:49.024908956 +0200
+--- a/src/celmath/intersect.h
++++ b/src/celmath/intersect.h
 @@ -15,7 +15,7 @@
  #include "ray.h"
  #include "sphere.h"
diff --git a/srcpkgs/celestia-glut/template b/srcpkgs/celestia-glut/template
index 22f9e62c648f..2ee6f0cd64fd 100644
--- a/srcpkgs/celestia-glut/template
+++ b/srcpkgs/celestia-glut/template
@@ -14,7 +14,6 @@ license="GPL-2.0-only"
 homepage="https://celestia.space"
 distfiles="${SOURCEFORGE_SITE}/celestia/celestia-${version}.tar.gz"
 checksum="d35570ccb9440fc0bd3e73eb9b4c3e8a4c25f3ae444a13d1175053fa16dc34c4"
-patch_args=-Np0
 
 provides="celestia-${version}_${revision}"
 replaces="celestia>=0"
diff --git a/srcpkgs/celestia-gtk/patches/NULL_notdecleared.patch b/srcpkgs/celestia-gtk/patches/NULL_notdecleared.patch
index bc14c29a31e3..1499c577b313 100644
--- a/srcpkgs/celestia-gtk/patches/NULL_notdecleared.patch
+++ b/srcpkgs/celestia-gtk/patches/NULL_notdecleared.patch
@@ -1,5 +1,5 @@
---- src/celengine/frametree.h.orig	2014-04-26 16:08:47.217900392 +0200
-+++ src/celengine/frametree.h	2014-04-26 16:09:09.601899991 +0200
+--- a/src/celengine/frametree.h
++++ b/src/celengine/frametree.h
 @@ -13,6 +13,7 @@
  #ifndef _CELENGINE_FRAMETREE_H_
  #define _CELENGINE_FRAMETREE_H_
diff --git a/srcpkgs/celestia-gtk/patches/Z_BEST_COMPRESSION.patch b/srcpkgs/celestia-gtk/patches/Z_BEST_COMPRESSION.patch
index 90c6a34c1021..6dc542ff3b84 100644
--- a/srcpkgs/celestia-gtk/patches/Z_BEST_COMPRESSION.patch
+++ b/srcpkgs/celestia-gtk/patches/Z_BEST_COMPRESSION.patch
@@ -1,5 +1,5 @@
---- src/celestia/imagecapture.cpp.orig	2014-04-26 16:15:37.185893050 +0200
-+++ src/celestia/imagecapture.cpp	2014-04-26 16:16:56.697891627 +0200
+--- a/src/celestia/imagecapture.cpp
++++ b/src/celestia/imagecapture.cpp
 @@ -31,6 +31,9 @@
  #include "png.h"
  #endif
diff --git a/srcpkgs/celestia-gtk/patches/fix-stdint_redefine.patch b/srcpkgs/celestia-gtk/patches/fix-stdint_redefine.patch
index 81e480a6c4be..b3f2f19838ef 100644
--- a/srcpkgs/celestia-gtk/patches/fix-stdint_redefine.patch
+++ b/srcpkgs/celestia-gtk/patches/fix-stdint_redefine.patch
@@ -1,5 +1,5 @@
---- src/celutil/basictypes.h	2011-06-05 18:11:15.000000000 +0200
-+++ src/celutil/basictypes.h	2016-09-02 17:41:33.335187908 +0200
+--- a/src/celutil/basictypes.h
++++ b/src/celutil/basictypes.h
 @@ -31,7 +31,9 @@
  #include <limits>
  typedef          int64_t int64;
diff --git a/srcpkgs/celestia-gtk/patches/memcpy_notdecleared.patch b/srcpkgs/celestia-gtk/patches/memcpy_notdecleared.patch
index 201721ba849f..e11108f37c1d 100644
--- a/srcpkgs/celestia-gtk/patches/memcpy_notdecleared.patch
+++ b/srcpkgs/celestia-gtk/patches/memcpy_notdecleared.patch
@@ -1,5 +1,5 @@
---- src/celengine/image.cpp.orig	2014-04-26 14:41:56.359993709 +0200
-+++ src/celengine/image.cpp	2014-04-26 14:42:16.886993341 +0200
+--- a/src/celengine/image.cpp
++++ b/src/celengine/image.cpp
 @@ -42,6 +42,7 @@
  #include "jpeglib.h"
  #else
@@ -9,8 +9,8 @@
  #endif
  }
 
---- src/celengine/texture.cpp.orig	2014-04-26 15:54:19.937915924 +0200
-+++ src/celengine/texture.cpp	2014-04-26 15:54:46.992915439 +0200
+--- a/src/celengine/texture.cpp
++++ b/src/celengine/texture.cpp
 @@ -28,6 +28,7 @@
  #include <cstdlib>
  #include <cstdio>
diff --git a/srcpkgs/celestia-gtk/patches/missing_mathlib.patch b/srcpkgs/celestia-gtk/patches/missing_mathlib.patch
index a2f2ba2674c8..fad7ffb08de6 100644
--- a/srcpkgs/celestia-gtk/patches/missing_mathlib.patch
+++ b/srcpkgs/celestia-gtk/patches/missing_mathlib.patch
@@ -1,5 +1,5 @@
---- src/celmath/intersect.h.orig	2014-04-26 15:57:58.793912004 +0200
-+++ src/celmath/intersect.h	2014-04-26 16:00:49.024908956 +0200
+--- a/src/celmath/intersect.h
++++ b/src/celmath/intersect.h
 @@ -15,7 +15,7 @@
  #include "ray.h"
  #include "sphere.h"
diff --git a/srcpkgs/celestia-gtk/template b/srcpkgs/celestia-gtk/template
index b0001ac504be..85e1c6ee1ed8 100644
--- a/srcpkgs/celestia-gtk/template
+++ b/srcpkgs/celestia-gtk/template
@@ -14,7 +14,6 @@ license="GPL-2.0-only"
 homepage="https://celestia.space"
 distfiles="${SOURCEFORGE_SITE}/celestia/celestia-${version}.tar.gz"
 checksum="d35570ccb9440fc0bd3e73eb9b4c3e8a4c25f3ae444a13d1175053fa16dc34c4"
-patch_args=-Np0
 
 provides="celestia-${version}_${revision}"
 replaces="celestia>=0"
diff --git a/srcpkgs/chafa/patches/i686-musl.patch b/srcpkgs/chafa/patches/i686-musl.patch
index 57d50f15b003..dc3469f9f032 100644
--- a/srcpkgs/chafa/patches/i686-musl.patch
+++ b/srcpkgs/chafa/patches/i686-musl.patch
@@ -1,5 +1,5 @@
---- chafa/internal/chafa-popcnt.c
-+++ chafa/internal/chafa-popcnt.c
+--- a/chafa/internal/chafa-popcnt.c
++++ b/chafa/internal/chafa-popcnt.c
 @@ -23,6 +23,10 @@
  #include "chafa/chafa.h"
  #include "chafa/chafa-private.h"
diff --git a/srcpkgs/chafa/template b/srcpkgs/chafa/template
index b6c87f0e2757..1b07026b9ea4 100644
--- a/srcpkgs/chafa/template
+++ b/srcpkgs/chafa/template
@@ -11,7 +11,6 @@ license="LGPL-3.0-or-later"
 homepage="https://hpjansson.org/chafa/"
 distfiles="https://hpjansson.org/chafa/releases/chafa-${version}.tar.xz"
 checksum=0706e101a6e0e806335aeb57445e2f6beffe0be29a761f561979e81691c2c681
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|i686*) ;;
diff --git a/srcpkgs/chatterino2/patches/0001-use-system-deps.patch b/srcpkgs/chatterino2/patches/0001-use-system-deps.patch
index 5f7ddfadb178..383c5ea23f43 100644
--- a/srcpkgs/chatterino2/patches/0001-use-system-deps.patch
+++ b/srcpkgs/chatterino2/patches/0001-use-system-deps.patch
@@ -1,7 +1,7 @@
 diff --git chatterino.pro chatterino.pro
 index d8b14bbe..f7657f06 100644
---- chatterino.pro
-+++ chatterino.pro
+--- a/chatterino.pro
++++ b/chatterino.pro
 @@ -12,10 +12,17 @@
  #  - BOOST_DIRECTORY (C:\local\boost\ by default) (Windows only)
 
@@ -40,8 +40,8 @@ index d8b14bbe..f7657f06 100644
      message("Using conan packages")
 diff --git src/common/Credentials.cpp src/common/Credentials.cpp
 index 87abecb9..5de78130 100644
---- src/common/Credentials.cpp
-+++ src/common/Credentials.cpp
+--- a/src/common/Credentials.cpp
++++ b/src/common/Credentials.cpp
 @@ -1,12 +1,12 @@
  #include "Credentials.hpp"
  
diff --git a/srcpkgs/chatterino2/template b/srcpkgs/chatterino2/template
index 642d3147fdd2..f69730b3a9fe 100644
--- a/srcpkgs/chatterino2/template
+++ b/srcpkgs/chatterino2/template
@@ -29,7 +29,6 @@ e8755e68ff6fc39b4338d424ee9aed2ed5a8eab6eb37af69de2ff21b8dc94e66
 f387cc7eaf27dec462bc85a212619f8086167cf0b47e11825b8580d35a740dfe
 5a5cd8338fcb0a14a4bbe0840f83505d0444a9000956145e85e5550feeb744b0
 eb492b89e67f4ec632bd43f2701d53e355f1d1afbec3cd3af5891c1a6aaaa454"
-patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/chatty/patches/config_dir.patch b/srcpkgs/chatty/patches/config_dir.patch
index c1a14ea4b5a8..1b22363b057e 100644
--- a/srcpkgs/chatty/patches/config_dir.patch
+++ b/srcpkgs/chatty/patches/config_dir.patch
@@ -1,5 +1,5 @@
 *** src/chatty/Chatty.java	2017-12-26 11:56:51.000000000 -0500
---- src/chatty/Chatty.patched.java	2018-02-19 04:41:33.348588121 -0500
+--- a/src/chatty/Chatty.patched.java
 ***************
 *** 91,97 ****
        * Custom Settings directory, either the current working directory if the
@@ -9,7 +9,7 @@
       
       /**
        * Parse the commandline arguments and start the actual chat client.
---- 91,97 ----
+--- a/91,97 ----
        * Custom Settings directory, either the current working directory if the
        * -cd parameter was used, or the directory specified with the -d parameter.
        */
diff --git a/srcpkgs/chatty/patches/disable_version_check.patch b/srcpkgs/chatty/patches/disable_version_check.patch
index e2abd26cee7f..db565ebe12a6 100644
--- a/srcpkgs/chatty/patches/disable_version_check.patch
+++ b/srcpkgs/chatty/patches/disable_version_check.patch
@@ -1,5 +1,5 @@
 *** src/chatty/Chatty.java	2018-02-19 04:22:40.961744905 -0500
---- src/chatty/Chatty.patched.java	2018-02-19 04:24:16.080555756 -0500
+--- a/src/chatty/Chatty.patched.java
 ***************
 *** 60,66 ****
        * Enable Version Checker (if you compile and distribute this yourself, you
@@ -9,7 +9,7 @@
       
       /**
        * The regular URL of the textfile where the most recent version is stored.
---- 60,66 ----
+--- a/60,66 ----
        * Enable Version Checker (if you compile and distribute this yourself, you
        * may want to disable this)
        */
diff --git a/srcpkgs/chatty/template b/srcpkgs/chatty/template
index c4ab65395aa6..a13ad9765b5a 100644
--- a/srcpkgs/chatty/template
+++ b/srcpkgs/chatty/template
@@ -10,7 +10,6 @@ license="GPL-3.0-only"
 homepage="http://chatty.github.io/"
 distfiles="https://github.com/chatty/chatty/archive/v${version}.tar.gz"
 checksum=2eed3a4ed4f1ea58d89e535182bd32771522e4bccb5aa3bf4329aec9d7ab554c
-patch_args=-Np0
 
 do_build() {
 	gradle shadowJar
diff --git a/srcpkgs/chkrootkit/patches/fcntl.patch b/srcpkgs/chkrootkit/patches/fcntl.patch
index dc0ee1594c58..26ab42c0e437 100644
--- a/srcpkgs/chkrootkit/patches/fcntl.patch
+++ b/srcpkgs/chkrootkit/patches/fcntl.patch
@@ -1,5 +1,5 @@
---- chklastlog.c
-+++ chklastlog.c
+--- a/chklastlog.c
++++ b/chklastlog.c
 @@ -41,6 +41,7 @@ int main () { return 0; }
  #include <stdlib.h>
  #endif
@@ -8,8 +8,8 @@
  #include <unistd.h>
  #include <string.h>
  #include <signal.h>
---- chkproc.c
-+++ chkproc.c
+--- a/chkproc.c
++++ b/chkproc.c
 @@ -62,6 +62,7 @@ int main (){ return 0; }
  #include <string.h>
  #include <errno.h>
@@ -18,8 +18,8 @@
  #include <dirent.h>
  #include <ctype.h>
  #include <stdlib.h>
---- chkwtmp.c
-+++ chkwtmp.c
+--- a/chkwtmp.c
++++ b/chkwtmp.c
 @@ -25,6 +25,7 @@ int main () { return 0; }
  #include <stdio.h>
  #include <stdlib.h>
diff --git a/srcpkgs/chkrootkit/patches/path_max.patch b/srcpkgs/chkrootkit/patches/path_max.patch
index 93534afa00ee..8046e9488992 100644
--- a/srcpkgs/chkrootkit/patches/path_max.patch
+++ b/srcpkgs/chkrootkit/patches/path_max.patch
@@ -1,5 +1,5 @@
---- chkdirs.c
-+++ chkdirs.c
+--- a/chkdirs.c
++++ b/chkdirs.c
 @@ -33,6 +33,7 @@
  #include <sys/syslimits.h>
  #endif
diff --git a/srcpkgs/chkrootkit/template b/srcpkgs/chkrootkit/template
index 1f614156b116..01558c933f81 100644
--- a/srcpkgs/chkrootkit/template
+++ b/srcpkgs/chkrootkit/template
@@ -10,7 +10,6 @@ license="BSD-2-Clause"
 homepage="http://www.chkrootkit.org"
 distfiles="ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit-${version}.tar.gz"
 checksum=7262dae33b338976828b5d156b70d159e0043c0db43ada8dee66c97387cf45b5
-patch_args=-Np0
 
 CFLAGS="-fPIC"
 LDFLAGS="-fPIC"
diff --git a/srcpkgs/chmlib/patches/aarch64-ppc64.patch b/srcpkgs/chmlib/patches/aarch64-ppc64.patch
index 83c515094788..dce4bcb1caba 100644
--- a/srcpkgs/chmlib/patches/aarch64-ppc64.patch
+++ b/srcpkgs/chmlib/patches/aarch64-ppc64.patch
@@ -1,5 +1,5 @@
---- src/chm_lib.c	2017-07-07 20:15:32.999769723 +0200
-+++ src/chm_lib.c	2017-07-07 20:16:22.291847266 +0200
+--- a/src/chm_lib.c
++++ b/src/chm_lib.c
 @@ -164,7 +164,7 @@
  
  /* x86-64 */
diff --git a/srcpkgs/chmlib/patches/arm-ppc-32.patch b/srcpkgs/chmlib/patches/arm-ppc-32.patch
index fba229460300..677cad21fad7 100644
--- a/srcpkgs/chmlib/patches/arm-ppc-32.patch
+++ b/srcpkgs/chmlib/patches/arm-ppc-32.patch
@@ -1,5 +1,5 @@
---- src/chm_lib.c	2009-05-23 08:43:31.000000000 -0600
-+++ src/chm_lib.c	2011-01-21 17:42:45.000000000 -0700
+--- a/src/chm_lib.c
++++ b/src/chm_lib.c
 @@ -153,7 +153,7 @@
  /* Sparc        */
  /* MIPS         */
diff --git a/srcpkgs/chmlib/template b/srcpkgs/chmlib/template
index 44f3de8568b4..a573c27d1499 100644
--- a/srcpkgs/chmlib/template
+++ b/srcpkgs/chmlib/template
@@ -10,7 +10,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.jedrea.com/chmlib/"
 distfiles="http://www.jedrea.com/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=3449d64b0cf71578b2c7e3ddc048d4af3661f44a83941ea074a7813f3a59ffa3
-patch_args=-Np0
 
 libchmlib_package() {
 	short_desc="Library for dealing with Microsoft ITSS/CHM format files"
diff --git a/srcpkgs/choosenim/patches/system-libarchive.patch b/srcpkgs/choosenim/patches/system-libarchive.patch
index a102f0c13b33..a4cab336e99d 100644
--- a/srcpkgs/choosenim/patches/system-libarchive.patch
+++ b/srcpkgs/choosenim/patches/system-libarchive.patch
@@ -1,7 +1,7 @@
 diff --git choosenim.nimble choosenim.nimble
 index 7ba9b36..dc47faa 100644
---- choosenim.nimble
-+++ choosenim.nimble
+--- a/choosenim.nimble
++++ b/choosenim.nimble
 @@ -14,7 +14,7 @@ skipExt = @["nim"]
  # Dependencies
  
@@ -13,8 +13,8 @@ index 7ba9b36..dc47faa 100644
  requires "osinfo >= 0.3.0"
 diff --git nimarchive/nimarchive/archive.nim nimarchive/nimarchive/archive.nim
 index 1d45140..d5361e0 100644
---- nimarchive/nimarchive/archive.nim
-+++ nimarchive/nimarchive/archive.nim
+--- a/nimarchive/nimarchive/archive.nim
++++ b/nimarchive/nimarchive/archive.nim
 @@ -2,28 +2,6 @@ import os, strutils
  
  import nimterop/[build, cimport]
@@ -59,8 +59,8 @@ index 1d45140..d5361e0 100644
 +cImport(@[archivePath, archiveEntryPath], recurse = false)
 diff --git nimarchive/nimarchive/iconv.nim nimarchive/nimarchive/iconv.nim
 index d983398..4f61a5b 100644
---- nimarchive/nimarchive/iconv.nim
-+++ nimarchive/nimarchive/iconv.nim
+--- a/nimarchive/nimarchive/iconv.nim
++++ b/nimarchive/nimarchive/iconv.nim
 @@ -2,15 +2,3 @@ import os, strutils
  
  import nimterop/build
@@ -79,8 +79,8 @@ index d983398..4f61a5b 100644
 -)
 diff --git src/choosenimpkg/ssl.nim src/choosenimpkg/ssl.nim
 index f20b246..7576066 100644
---- src/choosenimpkg/ssl.nim
-+++ src/choosenimpkg/ssl.nim
+--- a/src/choosenimpkg/ssl.nim
++++ b/src/choosenimpkg/ssl.nim
 @@ -2,19 +2,3 @@ import strutils
  
  import nimterop/[build, cimport]
diff --git a/srcpkgs/choosenim/template b/srcpkgs/choosenim/template
index eb5ee1d0fed6..e2fb62b08d8a 100644
--- a/srcpkgs/choosenim/template
+++ b/srcpkgs/choosenim/template
@@ -13,7 +13,6 @@ distfiles="${homepage}/archive/v${version}.tar.gz>choosenim-${version}.tar.gz
  https://github.com/genotrance/nimarchive/archive/v0.5.4.tar.gz>nimarchive-0.5.4.tar.gz"
 checksum="0e78a59cfb3cf7926f8dff3a4215949ccfaecd6c6dddc3b2e062098b5da03edb
  c38e8c66c2eac2bc021d450f2b60d0e45c5355df963d0133930448639c0bd8d4"
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc-musl) broken="ftbfs" ;;
diff --git a/srcpkgs/choqok/patches/ftbfs.patch b/srcpkgs/choqok/patches/ftbfs.patch
index 480ec481e274..600d28f95116 100644
--- a/srcpkgs/choqok/patches/ftbfs.patch
+++ b/srcpkgs/choqok/patches/ftbfs.patch
@@ -1,7 +1,7 @@
 Lots of things require QMap, no longer implicitly included.
 
---- libchoqok/plugin.h
-+++ libchoqok/plugin.h
+--- a/libchoqok/plugin.h
++++ b/libchoqok/plugin.h
 @@ -25,6 +25,7 @@
  #define CHOQOKPLUGIN_H
  
diff --git a/srcpkgs/choqok/template b/srcpkgs/choqok/template
index df6cbfc32b23..75a2c16f63e0 100644
--- a/srcpkgs/choqok/template
+++ b/srcpkgs/choqok/template
@@ -12,7 +12,6 @@ license="GPL-3.0-or-later"
 homepage="http://choqok.kde.org/"
 distfiles="${KDE_SITE}/${pkgname}/${version%.*}/src/${pkgname}-${version}.tar.xz"
 checksum=26600d95f152c3e04881efb7fb3eb07b5c52fa6ffee838690f28b45defb4a47e
-patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" kcoreaddons kdoctools ${makedepends}"
diff --git a/srcpkgs/chromium/patches/browser-size_t.patch b/srcpkgs/chromium/patches/browser-size_t.patch
index fa214d987d61..fc2ce91c1ddb 100644
--- a/srcpkgs/chromium/patches/browser-size_t.patch
+++ b/srcpkgs/chromium/patches/browser-size_t.patch
@@ -1,5 +1,5 @@
---- chrome/browser/search/background/ntp_backgrounds.h	2020-08-10 20:39:20.000000000 +0200
-+++ chrome/browser/search/background/ntp_backgrounds.h	2020-09-04 13:48:22.640023256 +0200
+--- a/chrome/browser/search/background/ntp_backgrounds.h
++++ b/chrome/browser/search/background/ntp_backgrounds.h
 @@ -6,6 +6,7 @@
  #define CHROME_BROWSER_SEARCH_BACKGROUND_NTP_BACKGROUNDS_H_
  
diff --git a/srcpkgs/chromium/patches/chromium-88-glibc-2.33.patch b/srcpkgs/chromium/patches/chromium-88-glibc-2.33.patch
index 64306d5e429e..a7fae0322adb 100644
--- a/srcpkgs/chromium/patches/chromium-88-glibc-2.33.patch
+++ b/srcpkgs/chromium/patches/chromium-88-glibc-2.33.patch
@@ -2,8 +2,8 @@
 # https://bugzilla.redhat.com/show_bug.cgi?id=1904652
 
 diff -up chromium-88.0.4324.96/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc.fstatfix chromium-88.0.4324.96/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
---- sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc.fstatfix	2021-01-25 10:11:45.427436398 -0500
-+++ sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc	2021-01-25 10:12:51.337699003 -0500
+--- a/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc.fstatfix
++++ b/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
 @@ -257,6 +257,18 @@ ResultExpr EvaluateSyscallImpl(int fs_de
      return RestrictKillTarget(current_pid, sysno);
    }
@@ -24,8 +24,8 @@ diff -up chromium-88.0.4324.96/sandbox/linux/seccomp-bpf-helpers/baseline_policy
        SyscallSets::IsCurrentDirectory(sysno)) {
      return Error(fs_denied_errno);
 diff -up chromium-88.0.4324.96/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc.fstatfix chromium-88.0.4324.96/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
---- sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc.fstatfix	2021-01-25 10:13:10.179774081 -0500
-+++ sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc	2021-01-25 10:16:18.790525746 -0500
+--- a/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc.fstatfix
++++ b/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
 @@ -6,6 +6,8 @@
  
  #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h"
@@ -83,8 +83,8 @@ diff -up chromium-88.0.4324.96/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers
  #if !defined(OS_NACL_NONSFI)
    if (seccomp_crash_key)
 diff -up chromium-88.0.4324.96/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h.fstatfix chromium-88.0.4324.96/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h
---- sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h.fstatfix	2021-01-25 10:16:36.982598236 -0500
-+++ sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h	2021-01-25 10:18:45.705111027 -0500
+--- a/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h.fstatfix
++++ b/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h
 @@ -62,6 +62,10 @@ SANDBOX_EXPORT intptr_t SIGSYSPtraceFail
  // sched_setparam(), sched_setscheduler()
  SANDBOX_EXPORT intptr_t SIGSYSSchedHandler(const arch_seccomp_data& args,
@@ -105,8 +105,8 @@ diff -up chromium-88.0.4324.96/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers
  // Allocates a crash key so that Seccomp information can be recorded.
  void AllocateCrashKeys();
 diff -up chromium-88.0.4324.96/sandbox/linux/services/syscall_wrappers.cc.fstatfix chromium-88.0.4324.96/sandbox/linux/services/syscall_wrappers.cc
---- sandbox/linux/services/syscall_wrappers.cc.fstatfix	2021-01-25 10:18:53.307141311 -0500
-+++ sandbox/linux/services/syscall_wrappers.cc	2021-01-25 10:19:46.982355293 -0500
+--- a/sandbox/linux/services/syscall_wrappers.cc.fstatfix
++++ b/sandbox/linux/services/syscall_wrappers.cc
 @@ -261,4 +261,13 @@ int sys_sigaction(int signum,
  
  #endif  // defined(MEMORY_SANITIZER)
@@ -122,8 +122,8 @@ diff -up chromium-88.0.4324.96/sandbox/linux/services/syscall_wrappers.cc.fstatf
 +
  }  // namespace sandbox
 diff -up chromium-88.0.4324.96/sandbox/linux/services/syscall_wrappers.h.fstatfix chromium-88.0.4324.96/sandbox/linux/services/syscall_wrappers.h
---- sandbox/linux/services/syscall_wrappers.h.fstatfix	2021-01-25 10:19:53.115379741 -0500
-+++ sandbox/linux/services/syscall_wrappers.h	2021-01-25 10:20:45.485588421 -0500
+--- a/sandbox/linux/services/syscall_wrappers.h.fstatfix
++++ b/sandbox/linux/services/syscall_wrappers.h
 @@ -17,6 +17,7 @@ struct sock_fprog;
  struct rlimit64;
  struct cap_hdr;
diff --git a/srcpkgs/chromium/patches/chromium-90-ruy-include.patch b/srcpkgs/chromium/patches/chromium-90-ruy-include.patch
index 09f64266f92c..81d5367807be 100644
--- a/srcpkgs/chromium/patches/chromium-90-ruy-include.patch
+++ b/srcpkgs/chromium/patches/chromium-90-ruy-include.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] IWYU: include limits for std::numeric_limits
 
 diff --git a/third_party/ruy/src/ruy/block_map.cc b/third_party/ruy/src/ruy/block_map.cc
 index 44e5039..a7a7559 100644
---- third_party/ruy/src/ruy/block_map.cc
-+++ third_party/ruy/src/ruy/block_map.cc
+--- a/third_party/ruy/src/ruy/block_map.cc
++++ b/third_party/ruy/src/ruy/block_map.cc
 @@ -17,6 +17,7 @@ limitations under the License.
  
  #include <algorithm>
diff --git a/srcpkgs/chromium/patches/chromium-revert-drop-of-system-java.patch b/srcpkgs/chromium/patches/chromium-revert-drop-of-system-java.patch
index 69c16fc0c487..2e05e569ecde 100644
--- a/srcpkgs/chromium/patches/chromium-revert-drop-of-system-java.patch
+++ b/srcpkgs/chromium/patches/chromium-revert-drop-of-system-java.patch
@@ -1,6 +1,6 @@
 This was dropped for some reason in 6951c37cecd05979b232a39e5c10e6346a0f74ef
---- third_party/closure_compiler/compiler.py	2021-05-20 04:17:53.000000000 +0200
-+++ -	2021-05-25 20:31:10.102971765 +0200
+--- a/third_party/closure_compiler/compiler.py
++++ b/-
 @@ -13,8 +13,9 @@
  
  
diff --git a/srcpkgs/chromium/patches/chromium-system-nodejs.patch b/srcpkgs/chromium/patches/chromium-system-nodejs.patch
index 866b516656fd..af369948672b 100644
--- a/srcpkgs/chromium/patches/chromium-system-nodejs.patch
+++ b/srcpkgs/chromium/patches/chromium-system-nodejs.patch
@@ -1,5 +1,5 @@
---- third_party/node/node.py	2021-05-20 04:17:54.000000000 +0200
-+++ -	2021-05-25 11:57:32.895222559 +0200
+--- a/third_party/node/node.py
++++ b/-
 @@ -17,11 +17,12 @@
    if platform.system() == 'Darwin' and platform.machine() == 'arm64':
        return os.path.join(os_path.join(os_path.dirname(__file__), 'mac',
diff --git a/srcpkgs/chromium/patches/chromium-webrtc-r0.patch b/srcpkgs/chromium/patches/chromium-webrtc-r0.patch
index 70bbede472f4..67574f6d540c 100644
--- a/srcpkgs/chromium/patches/chromium-webrtc-r0.patch
+++ b/srcpkgs/chromium/patches/chromium-webrtc-r0.patch
@@ -17,8 +17,8 @@ Commit-Queue: Raphael Kubo da Costa (rakuco) <raphael.kubo.da.costa@intel.com>
 Cr-Commit-Position: refs/heads/master@{#20292}
 ---
 
---- third_party/webrtc/p2p/base/port.cc
-+++ third_party/webrtc/p2p/base/port.cc
+--- a/third_party/webrtc/p2p/base/port.cc
++++ b/third_party/webrtc/p2p/base/port.cc
 @@ -10,6 +10,8 @@
  
  #include "p2p/base/port.h"
diff --git a/srcpkgs/chromium/patches/fix-crash-in-ThemeService.patch b/srcpkgs/chromium/patches/fix-crash-in-ThemeService.patch
index 419e6e9d7c9e..f2a696a3a735 100644
--- a/srcpkgs/chromium/patches/fix-crash-in-ThemeService.patch
+++ b/srcpkgs/chromium/patches/fix-crash-in-ThemeService.patch
@@ -21,8 +21,8 @@ Cr-Commit-Position: refs/heads/master@{#872164}
 
 diff --git chrome/browser/themes/theme_service.h chrome/browser/themes/theme_service.h
 index 592d40ae9de0f..337dfac9a040f 100644
---- chrome/browser/themes/theme_service.h
-+++ chrome/browser/themes/theme_service.h
+--- a/chrome/browser/themes/theme_service.h
++++ b/chrome/browser/themes/theme_service.h
 @@ -299,6 +299,10 @@ class ThemeService : public KeyedService,
    // The number of infobars currently displayed.
    int number_of_reinstallers_ = 0;
diff --git a/srcpkgs/chromium/patches/libc_malloc.patch b/srcpkgs/chromium/patches/libc_malloc.patch
index eda11ec86637..1f5e84b93d1b 100644
--- a/srcpkgs/chromium/patches/libc_malloc.patch
+++ b/srcpkgs/chromium/patches/libc_malloc.patch
@@ -1,5 +1,5 @@
---- base/process/memory_linux.cc.orig	2017-09-15 08:41:43.000000000 +0000
-+++ base/process/memory_linux.cc	2017-09-15 08:44:39.804995469 +0000
+--- a/base/process/memory_linux.cc
++++ b/base/process/memory_linux.cc
 @@ -21,6 +21,12 @@
  #include "third_party/tcmalloc/chromium/src/gperftools/tcmalloc.h"
  #endif
@@ -13,8 +13,8 @@
  namespace base {
  
  size_t g_oom_size = 0U;
---- base/process/memory_linux.cc.orig	2020-08-30 14:18:35.401132593 -0400
-+++ base/process/memory_linux.cc	2020-08-30 14:19:08.030199189 -0400
+--- a/base/process/memory_linux.cc
++++ b/base/process/memory_linux.cc
 @@ -141,7 +141,7 @@
      (!defined(LIBC_GLIBC) && !BUILDFLAG(USE_TCMALLOC))
    *result = malloc(size);
diff --git a/srcpkgs/chromium/patches/musl-v8-monotonic-pthread-cont_timedwait.patch b/srcpkgs/chromium/patches/musl-v8-monotonic-pthread-cont_timedwait.patch
index 33a8ea32c9c1..56a4ad1c807e 100644
--- a/srcpkgs/chromium/patches/musl-v8-monotonic-pthread-cont_timedwait.patch
+++ b/srcpkgs/chromium/patches/musl-v8-monotonic-pthread-cont_timedwait.patch
@@ -2,8 +2,8 @@ Use monotonic clock for pthread_cond_timedwait with musl too.
 
 diff --git a/v8/src/base/platform/condition-variable.cc b/v8/src/base/platform/condition-variable.cc
 index 5ea7083..c13027e 100644
---- ./v8/src/base/platform/condition-variable.cc
-+++ ./v8/src/base/platform/condition-variable.cc
+--- a/v8/src/base/platform/condition-variable.cc
++++ b/v8/src/base/platform/condition-variable.cc
 @@ -16,7 +16,7 @@ namespace base {
  
  ConditionVariable::ConditionVariable() {
diff --git a/srcpkgs/chromium/patches/no-execinfo.patch b/srcpkgs/chromium/patches/no-execinfo.patch
index 386997e8ed14..bdbddc6420c9 100644
--- a/srcpkgs/chromium/patches/no-execinfo.patch
+++ b/srcpkgs/chromium/patches/no-execinfo.patch
@@ -1,5 +1,5 @@
---- base/debug/stack_trace_posix.cc.orig	2019-05-14 14:49:44.000000000 -0400
-+++ base/debug/stack_trace_posix.cc	2019-07-02 10:43:43.490045013 -0400
+--- a/base/debug/stack_trace_posix.cc
++++ b/base/debug/stack_trace_posix.cc
 @@ -27,7 +27,7 @@
  #if !defined(USE_SYMBOLIZE)
  #include <cxxabi.h>
diff --git a/srcpkgs/chromium/patches/no-getcontext.patch b/srcpkgs/chromium/patches/no-getcontext.patch
index b2a498734c93..2b21ebaf03d6 100644
--- a/srcpkgs/chromium/patches/no-getcontext.patch
+++ b/srcpkgs/chromium/patches/no-getcontext.patch
@@ -1,5 +1,5 @@
---- third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc.orig	2015-12-06 09:59:55.554536646 +0100
-+++ third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc	2015-12-06 10:01:16.818238035 +0100
+--- a/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
++++ b/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
 @@ -477,7 +477,9 @@ bool ExceptionHandler::SimulateSignalDel
    siginfo.si_code = SI_USER;
    siginfo.si_pid = getpid();
diff --git a/srcpkgs/chromium/patches/sandbox-membarrier.patch b/srcpkgs/chromium/patches/sandbox-membarrier.patch
index 86ca16fc2d70..55ef2516194a 100644
--- a/srcpkgs/chromium/patches/sandbox-membarrier.patch
+++ b/srcpkgs/chromium/patches/sandbox-membarrier.patch
@@ -1,5 +1,5 @@
---- sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
-+++ sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
+--- a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
++++ b/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
 @@ -370,6 +370,7 @@
    switch (sysno) {
      case __NR_exit:
diff --git a/srcpkgs/chromium/patches/sandbox-sched_getparam.patch b/srcpkgs/chromium/patches/sandbox-sched_getparam.patch
index ba8af49c5f8f..5c9c171aeb29 100644
--- a/srcpkgs/chromium/patches/sandbox-sched_getparam.patch
+++ b/srcpkgs/chromium/patches/sandbox-sched_getparam.patch
@@ -3,8 +3,8 @@ musl uses them for pthread_getschedparam()
 
 source: https://git.alpinelinux.org/aports/commit/community/chromium?id=54af9f8ac24f52d382c5758e2445bf0206eff40e
 
---- sandbox/policy/linux/bpf_renderer_policy_linux.cc.orig	2019-10-08 21:03:18.253080425 +0200
-+++ sandbox/policy/linux/bpf_renderer_policy_linux.cc	2019-10-08 21:04:19.648549718 +0200
+--- a/sandbox/policy/linux/bpf_renderer_policy_linux.cc
++++ b/sandbox/policy/linux/bpf_renderer_policy_linux.cc
 @@ -88,10 +88,10 @@
      case __NR_sysinfo:
      case __NR_times:
diff --git a/srcpkgs/chromium/patches/sndio.patch b/srcpkgs/chromium/patches/sndio.patch
index 0e8f57236e19..f0ef665de2cc 100644
--- a/srcpkgs/chromium/patches/sndio.patch
+++ b/srcpkgs/chromium/patches/sndio.patch
@@ -1,6 +1,6 @@
 diff -Naur chromium-83.0.4103.97.orig/media/BUILD.gn chromium-83.0.4103.97/media/BUILD.gn
---- media/BUILD.gn.orig	2020-06-03 20:40:26.000000000 +0200
-+++ media/BUILD.gn	2020-06-13 17:32:28.510395975 +0200
+--- a/media/BUILD.gn
++++ b/media/BUILD.gn
 @@ -65,6 +65,9 @@
        defines += [ "DLOPEN_PULSEAUDIO" ]
      }
@@ -12,8 +12,8 @@ diff -Naur chromium-83.0.4103.97.orig/media/BUILD.gn chromium-83.0.4103.97/media
      defines += [ "USE_CRAS" ]
    }
 diff -Naur chromium-83.0.4103.97.orig/media/audio/BUILD.gn chromium-83.0.4103.97/media/audio/BUILD.gn
---- media/audio/BUILD.gn.orig	2020-06-03 20:39:37.000000000 +0200
-+++ media/audio/BUILD.gn	2020-06-13 17:32:28.511395969 +0200
+--- a/media/audio/BUILD.gn
++++ b/media/audio/BUILD.gn
 @@ -236,6 +236,17 @@
      sources += [ "linux/audio_manager_linux.cc" ]
    }
@@ -33,8 +33,8 @@ diff -Naur chromium-83.0.4103.97.orig/media/audio/BUILD.gn chromium-83.0.4103.97
      libs += [ "asound" ]
      sources += [
 diff -Naur chromium-83.0.4103.97.orig/media/audio/linux/audio_manager_linux.cc chromium-83.0.4103.97/media/audio/linux/audio_manager_linux.cc
---- media/audio/linux/audio_manager_linux.cc.orig	2020-06-03 20:39:37.000000000 +0200
-+++ media/audio/linux/audio_manager_linux.cc	2020-06-13 18:09:43.623333167 +0200
+--- a/media/audio/linux/audio_manager_linux.cc
++++ b/media/audio/linux/audio_manager_linux.cc
 @@ -19,6 +19,11 @@
  #include "media/audio/pulse/audio_manager_pulse.h"
  #include "media/audio/pulse/pulse_util.h"
@@ -75,8 +75,8 @@ diff -Naur chromium-83.0.4103.97.orig/media/audio/linux/audio_manager_linux.cc c
    if (base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kUseCras)) {
      UMA_HISTOGRAM_ENUMERATION("Media.LinuxAudioIO", kCras, kAudioIOMax + 1);
 diff -Naur chromium-83.0.4103.97.orig/media/audio/sndio/audio_manager_sndio.cc chromium-83.0.4103.97/media/audio/sndio/audio_manager_sndio.cc
---- media/audio/sndio/audio_manager_sndio.cc.orig	1970-01-01 01:00:00.000000000 +0100
-+++ media/audio/sndio/audio_manager_sndio.cc	2020-06-13 17:32:28.511395969 +0200
+--- a/media/audio/sndio/audio_manager_sndio.cc
++++ b/media/audio/sndio/audio_manager_sndio.cc
 @@ -0,0 +1,148 @@
 +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
 +// Use of this source code is governed by a BSD-style license that can be
@@ -227,8 +227,8 @@ diff -Naur chromium-83.0.4103.97.orig/media/audio/sndio/audio_manager_sndio.cc c
 +
 +}  // namespace media
 diff -Naur chromium-83.0.4103.97.orig/media/audio/sndio/audio_manager_sndio.h chromium-83.0.4103.97/media/audio/sndio/audio_manager_sndio.h
---- media/audio/sndio/audio_manager_sndio.h.orig	1970-01-01 01:00:00.000000000 +0100
-+++ media/audio/sndio/audio_manager_sndio.h	2020-06-13 17:32:28.511395969 +0200
+--- a/media/audio/sndio/audio_manager_sndio.h
++++ b/media/audio/sndio/audio_manager_sndio.h
 @@ -0,0 +1,65 @@
 +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
 +// Use of this source code is governed by a BSD-style license that can be
@@ -296,8 +296,8 @@ diff -Naur chromium-83.0.4103.97.orig/media/audio/sndio/audio_manager_sndio.h ch
 +
 +#endif  // MEDIA_AUDIO_SNDIO_AUDIO_MANAGER_SNDIO_H_
 diff -Naur chromium-83.0.4103.97.orig/media/audio/sndio/sndio_input.cc chromium-83.0.4103.97/media/audio/sndio/sndio_input.cc
---- media/audio/sndio/sndio_input.cc.orig	1970-01-01 01:00:00.000000000 +0100
-+++ media/audio/sndio/sndio_input.cc	2020-06-13 17:32:28.511395969 +0200
+--- a/media/audio/sndio/sndio_input.cc
++++ b/media/audio/sndio/sndio_input.cc
 @@ -0,0 +1,200 @@
 +// Copyright 2013 The Chromium Authors. All rights reserved.
 +// Use of this source code is governed by a BSD-style license that can be
@@ -500,8 +500,8 @@ diff -Naur chromium-83.0.4103.97.orig/media/audio/sndio/sndio_input.cc chromium-
 +
 +}  // namespace media
 diff -Naur chromium-83.0.4103.97.orig/media/audio/sndio/sndio_input.h chromium-83.0.4103.97/media/audio/sndio/sndio_input.h
---- media/audio/sndio/sndio_input.h.orig	1970-01-01 01:00:00.000000000 +0100
-+++ media/audio/sndio/sndio_input.h	2020-06-13 17:32:28.511395969 +0200
+--- a/media/audio/sndio/sndio_input.h
++++ b/media/audio/sndio/sndio_input.h
 @@ -0,0 +1,91 @@
 +// Copyright 2013 The Chromium Authors. All rights reserved.
 +// Use of this source code is governed by a BSD-style license that can be
@@ -595,8 +595,8 @@ diff -Naur chromium-83.0.4103.97.orig/media/audio/sndio/sndio_input.h chromium-8
 +
 +#endif  // MEDIA_AUDIO_SNDIO_SNDIO_INPUT_H_
 diff -Naur chromium-83.0.4103.97.orig/media/audio/sndio/sndio_output.cc chromium-83.0.4103.97/media/audio/sndio/sndio_output.cc
---- media/audio/sndio/sndio_output.cc.orig	1970-01-01 01:00:00.000000000 +0100
-+++ media/audio/sndio/sndio_output.cc	2020-06-13 17:32:28.511395969 +0200
+--- a/media/audio/sndio/sndio_output.cc
++++ b/media/audio/sndio/sndio_output.cc
 @@ -0,0 +1,183 @@
 +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
 +// Use of this source code is governed by a BSD-style license that can be
@@ -782,8 +782,8 @@ diff -Naur chromium-83.0.4103.97.orig/media/audio/sndio/sndio_output.cc chromium
 +
 +}  // namespace media
 diff -Naur chromium-83.0.4103.97.orig/media/audio/sndio/sndio_output.h chromium-83.0.4103.97/media/audio/sndio/sndio_output.h
---- media/audio/sndio/sndio_output.h.orig	1970-01-01 01:00:00.000000000 +0100
-+++ media/audio/sndio/sndio_output.h	2020-06-13 17:32:28.511395969 +0200
+--- a/media/audio/sndio/sndio_output.h
++++ b/media/audio/sndio/sndio_output.h
 @@ -0,0 +1,86 @@
 +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
 +// Use of this source code is governed by a BSD-style license that can be
@@ -872,8 +872,8 @@ diff -Naur chromium-83.0.4103.97.orig/media/audio/sndio/sndio_output.h chromium-
 +
 +#endif  // MEDIA_AUDIO_SNDIO_SNDIO_OUTPUT_H_
 diff -Naur chromium-83.0.4103.97.orig/media/media_options.gni chromium-83.0.4103.97/media/media_options.gni
---- media/media_options.gni.orig	2020-06-03 20:40:26.000000000 +0200
-+++ media/media_options.gni	2020-06-13 17:32:28.512395963 +0200
+--- a/media/media_options.gni
++++ b/media/media_options.gni
 @@ -119,6 +119,9 @@
    # Enables runtime selection of ALSA library for audio.
    use_alsa = false
diff --git a/srcpkgs/chromium/patches/webrtc-include.patch b/srcpkgs/chromium/patches/webrtc-include.patch
index 92ec272a89ac..70510917b8fe 100644
--- a/srcpkgs/chromium/patches/webrtc-include.patch
+++ b/srcpkgs/chromium/patches/webrtc-include.patch
@@ -1,5 +1,5 @@
---- third_party/webrtc/modules/desktop_capture/linux/window_capturer_x11.cc.orig	2019-02-21 21:21:24.488058990 +0100
-+++ third_party/webrtc/modules/desktop_capture/linux/window_capturer_x11.cc	2019-02-21 21:21:36.151961064 +0100
+--- a/third_party/webrtc/modules/desktop_capture/linux/window_capturer_x11.cc
++++ b/third_party/webrtc/modules/desktop_capture/linux/window_capturer_x11.cc
 @@ -16,6 +16,7 @@
  
  #include <memory>
diff --git a/srcpkgs/chromium/patches/webrtc-size_t.patch b/srcpkgs/chromium/patches/webrtc-size_t.patch
index ef7ea09cf632..bb30e62aea87 100644
--- a/srcpkgs/chromium/patches/webrtc-size_t.patch
+++ b/srcpkgs/chromium/patches/webrtc-size_t.patch
@@ -1,5 +1,5 @@
---- third_party/webrtc/modules/audio_processing/aec3/clockdrift_detector.h	2020-08-10 20:42:29.000000000 +0200
-+++ third_party/webrtc/modules/audio_processing/aec3/clockdrift_detector.h	2020-09-04 12:47:07.014833633 +0200
+--- a/third_party/webrtc/modules/audio_processing/aec3/clockdrift_detector.h
++++ b/third_party/webrtc/modules/audio_processing/aec3/clockdrift_detector.h
 @@ -12,6 +12,7 @@
  #define MODULES_AUDIO_PROCESSING_AEC3_CLOCKDRIFT_DETECTOR_H_
  
diff --git a/srcpkgs/chromium/patches/xxx-ppc64le-libvpx.patch b/srcpkgs/chromium/patches/xxx-ppc64le-libvpx.patch
index 792befb3a39d..6d423d4091c5 100644
--- a/srcpkgs/chromium/patches/xxx-ppc64le-libvpx.patch
+++ b/srcpkgs/chromium/patches/xxx-ppc64le-libvpx.patch
@@ -15,8 +15,8 @@ the template by running the appropriate scripts
 
 diff --git third_party/libvpx/BUILD.gn third_party/libvpx/BUILD.gn
 index 7198e59..3300485 100644
---- third_party/libvpx/BUILD.gn
-+++ third_party/libvpx/BUILD.gn
+--- a/third_party/libvpx/BUILD.gn
++++ b/third_party/libvpx/BUILD.gn
 @@ -336,6 +336,8 @@ static_library("libvpx") {
      } else {
        sources = libvpx_srcs_arm64
@@ -28,8 +28,8 @@ index 7198e59..3300485 100644
    configs -= [ "//build/config/compiler:chromium_code" ]
 diff --git third_party/libvpx/generate_gni.sh third_party/libvpx/generate_gni.sh
 index bcf84b0..8a3f4f1 100755
---- third_party/libvpx/generate_gni.sh
-+++ third_party/libvpx/generate_gni.sh
+--- a/third_party/libvpx/generate_gni.sh
++++ b/third_party/libvpx/generate_gni.sh
 @@ -361,6 +361,7 @@ gen_config_files linux/arm-neon-highbd "--target=armv7-linux-gcc ${all_platforms
  gen_config_files linux/arm64-highbd "--target=armv8-linux-gcc ${all_platforms} ${HIGHBD}"
  gen_config_files linux/mipsel "--target=mips32-linux-gcc ${all_platforms}"
diff --git a/srcpkgs/chromium/patches/xxx-ppc64le-support.patch b/srcpkgs/chromium/patches/xxx-ppc64le-support.patch
index 28fec2832142..a3d4fd6ef15b 100644
--- a/srcpkgs/chromium/patches/xxx-ppc64le-support.patch
+++ b/srcpkgs/chromium/patches/xxx-ppc64le-support.patch
@@ -6,8 +6,8 @@ Date:   Wed Mar 3 19:08:29 2021 +0100
 
 diff --git build/download_nacl_toolchains.py build/download_nacl_toolchains.py
 index 286a92a27..ec36a85d3 100755
---- build/download_nacl_toolchains.py
-+++ build/download_nacl_toolchains.py
+--- a/build/download_nacl_toolchains.py
++++ b/build/download_nacl_toolchains.py
 @@ -13,6 +13,10 @@ import sys
  
  
@@ -21,8 +21,8 @@ index 286a92a27..ec36a85d3 100755
    nacl_dir = os.path.join(src_dir, 'native_client')
 diff --git chrome/installer/linux/BUILD.gn chrome/installer/linux/BUILD.gn
 index 35f01d0a4..28f2e7475 100644
---- chrome/installer/linux/BUILD.gn
-+++ chrome/installer/linux/BUILD.gn
+--- a/chrome/installer/linux/BUILD.gn
++++ b/chrome/installer/linux/BUILD.gn
 @@ -94,8 +94,6 @@ packaging_files = packaging_files_binaries + [
                      "$root_out_dir/xdg-mime",
                      "$root_out_dir/xdg-settings",
@@ -42,8 +42,8 @@ index 35f01d0a4..28f2e7475 100644
    ]
 diff --git sandbox/features.gni sandbox/features.gni
 index db30ae6d6..9dc09bf53 100644
---- sandbox/features.gni
-+++ sandbox/features.gni
+--- a/sandbox/features.gni
++++ b/sandbox/features.gni
 @@ -11,7 +11,8 @@ import("//build/config/nacl/config.gni")
  use_seccomp_bpf = (is_linux || is_chromeos || is_android) &&
                    (current_cpu == "x86" || current_cpu == "x64" ||
@@ -56,8 +56,8 @@ index db30ae6d6..9dc09bf53 100644
  
 diff --git sandbox/linux/BUILD.gn sandbox/linux/BUILD.gn
 index e9a94b461..cca1a5da5 100644
---- sandbox/linux/BUILD.gn
-+++ sandbox/linux/BUILD.gn
+--- a/sandbox/linux/BUILD.gn
++++ b/sandbox/linux/BUILD.gn
 @@ -427,6 +427,8 @@ component("sandbox_services") {
  
  source_set("sandbox_services_headers") {
@@ -69,8 +69,8 @@ index e9a94b461..cca1a5da5 100644
      "system_headers/arm_linux_ucontext.h",
 diff --git sandbox/linux/bpf_dsl/linux_syscall_ranges.h sandbox/linux/bpf_dsl/linux_syscall_ranges.h
 index 313511f22..0ca3a326f 100644
---- sandbox/linux/bpf_dsl/linux_syscall_ranges.h
-+++ sandbox/linux/bpf_dsl/linux_syscall_ranges.h
+--- a/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
++++ b/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
 @@ -56,6 +56,13 @@
  #define MAX_PUBLIC_SYSCALL __NR_syscalls
  #define MAX_SYSCALL MAX_PUBLIC_SYSCALL
@@ -87,8 +87,8 @@ index 313511f22..0ca3a326f 100644
  #endif
 diff --git sandbox/linux/bpf_dsl/seccomp_macros.h sandbox/linux/bpf_dsl/seccomp_macros.h
 index 1a407b952..a6aec544e 100644
---- sandbox/linux/bpf_dsl/seccomp_macros.h
-+++ sandbox/linux/bpf_dsl/seccomp_macros.h
+--- a/sandbox/linux/bpf_dsl/seccomp_macros.h
++++ b/sandbox/linux/bpf_dsl/seccomp_macros.h
 @@ -16,6 +16,9 @@
  #if defined(__mips__)
  // sys/user.h in eglibc misses size_t definition
@@ -153,8 +153,8 @@ index 1a407b952..a6aec544e 100644
  
 diff --git sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
 index 6a1ec2389..f20c582dd 100644
---- sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
-+++ sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
+--- a/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
++++ b/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
 @@ -88,7 +88,8 @@ bool IsBaselinePolicyWatched(int sysno) {
           SyscallSets::IsPrctl(sysno) ||
           SyscallSets::IsProcessGroupOrSession(sysno) ||
@@ -195,8 +195,8 @@ index 6a1ec2389..f20c582dd 100644
  #endif
 diff --git sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
 index 01c046dda..7e5a6be82 100644
---- sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc.orig	2021-04-15 13:11:10.481579470 -0400
-+++ sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc	2021-04-15 13:12:43.524831376 -0400
+--- a/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
++++ b/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
 @@ -302,7 +302,7 @@
  TEST_BASELINE_SIGSYS(__NR_syslog)
  TEST_BASELINE_SIGSYS(__NR_timer_create)
@@ -208,8 +208,8 @@ index 01c046dda..7e5a6be82 100644
  #endif
 diff --git sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
 index 2a97d3916..8e81aa6cf 100644
---- sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.orig	2021-04-14 14:41:08.000000000 -0400
-+++ sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc	2021-04-15 13:17:57.808715733 -0400
+--- a/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
++++ b/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
 @@ -40,7 +40,8 @@
  #include <sys/ptrace.h>
  #if (defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) && \
@@ -295,8 +295,8 @@ index 2a97d3916..8e81aa6cf 100644
  #endif
 diff --git sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
 index ba4289f05..9a4d5ab2d 100644
---- sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
-+++ sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
+--- a/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
++++ b/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
 @@ -48,7 +48,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictMprotectFlags();
  // O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME.
  SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands();
@@ -308,8 +308,8 @@ index ba4289f05..9a4d5ab2d 100644
  SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand();
 diff --git sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
 index 642df7207..34f47eb73 100644
---- sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
-+++ sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
+--- a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
++++ b/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
 @@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int sysno) {
    switch (sysno) {
      case __NR_gettimeofday:
@@ -751,8 +751,8 @@ index 642df7207..34f47eb73 100644
        return true;
 diff --git sandbox/linux/seccomp-bpf-helpers/syscall_sets.h sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
 index 923533ec9..411f72acd 100644
---- sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
-+++ sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
+--- a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
++++ b/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
 @@ -43,13 +43,14 @@ class SANDBOX_EXPORT SyscallSets {
    static bool IsDeniedGetOrModifySocket(int sysno);
  
@@ -791,8 +791,8 @@ index 923533ec9..411f72acd 100644
  #endif
 diff --git sandbox/linux/seccomp-bpf/syscall.cc sandbox/linux/seccomp-bpf/syscall.cc
 index e47e98bf5..d53a7ff56 100644
---- sandbox/linux/seccomp-bpf/syscall.cc
-+++ sandbox/linux/seccomp-bpf/syscall.cc
+--- a/sandbox/linux/seccomp-bpf/syscall.cc
++++ b/sandbox/linux/seccomp-bpf/syscall.cc
 @@ -18,7 +18,7 @@ namespace sandbox {
  namespace {
  
@@ -891,8 +891,8 @@ index e47e98bf5..d53a7ff56 100644
  }
 diff --git sandbox/linux/seccomp-bpf/trap.cc sandbox/linux/seccomp-bpf/trap.cc
 index f5b86a73a..5e6c4a068 100644
---- sandbox/linux/seccomp-bpf/trap.cc
-+++ sandbox/linux/seccomp-bpf/trap.cc
+--- a/sandbox/linux/seccomp-bpf/trap.cc
++++ b/sandbox/linux/seccomp-bpf/trap.cc
 @@ -232,6 +232,20 @@ void Trap::SigSys(int nr, LinuxSigInfo* info, ucontext_t* ctx) {
        SetIsInSigHandler();
      }
@@ -916,8 +916,8 @@ index f5b86a73a..5e6c4a068 100644
      // evaluator registered with the sandbox.
 diff --git sandbox/linux/services/credentials.cc sandbox/linux/services/credentials.cc
 index d7b5d8c44..4adc6d0d4 100644
---- sandbox/linux/services/credentials.cc
-+++ sandbox/linux/services/credentials.cc
+--- a/sandbox/linux/services/credentials.cc
++++ b/sandbox/linux/services/credentials.cc
 @@ -81,7 +81,7 @@ bool ChrootToSafeEmptyDir() {
    pid_t pid = -1;
    alignas(16) char stack_buf[PTHREAD_STACK_MIN];
@@ -929,8 +929,8 @@ index d7b5d8c44..4adc6d0d4 100644
  #else
 diff --git sandbox/linux/services/syscall_wrappers.cc sandbox/linux/services/syscall_wrappers.cc
 index fcfd2aa12..f6eb32fb7 100644
---- sandbox/linux/services/syscall_wrappers.cc
-+++ sandbox/linux/services/syscall_wrappers.cc
+--- a/sandbox/linux/services/syscall_wrappers.cc
++++ b/sandbox/linux/services/syscall_wrappers.cc
 @@ -58,7 +58,7 @@ long sys_clone(unsigned long flags,
  #if defined(ARCH_CPU_X86_64)
    return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls);
@@ -942,8 +942,8 @@ index fcfd2aa12..f6eb32fb7 100644
  #endif
 diff --git sandbox/linux/syscall_broker/broker_process.cc sandbox/linux/syscall_broker/broker_process.cc
 index d72c9d238..77f1d95f5 100644
---- sandbox/linux/syscall_broker/broker_process.cc
-+++ sandbox/linux/syscall_broker/broker_process.cc
+--- a/sandbox/linux/syscall_broker/broker_process.cc
++++ b/sandbox/linux/syscall_broker/broker_process.cc
 @@ -169,7 +169,7 @@ bool BrokerProcess::IsSyscallBrokerable(int sysno, bool fast_check) const {
  #if defined(__NR_fstatat64)
      case __NR_fstatat64:
@@ -955,8 +955,8 @@ index d72c9d238..77f1d95f5 100644
        return !fast_check || allowed_command_set_.test(COMMAND_STAT);
 diff --git sandbox/linux/system_headers/linux_seccomp.h sandbox/linux/system_headers/linux_seccomp.h
 index 1fa47ed09..39cc9ab53 100644
---- sandbox/linux/system_headers/linux_seccomp.h
-+++ sandbox/linux/system_headers/linux_seccomp.h
+--- a/sandbox/linux/system_headers/linux_seccomp.h
++++ b/sandbox/linux/system_headers/linux_seccomp.h
 @@ -41,6 +41,9 @@
  #ifndef EM_AARCH64
  #define EM_AARCH64 183
@@ -982,8 +982,8 @@ index 1fa47ed09..39cc9ab53 100644
  #ifndef PR_SET_SECCOMP
 diff --git sandbox/linux/system_headers/linux_signal.h sandbox/linux/system_headers/linux_signal.h
 index f5a736761..515b21a5f 100644
---- sandbox/linux/system_headers/linux_signal.h
-+++ sandbox/linux/system_headers/linux_signal.h
+--- a/sandbox/linux/system_headers/linux_signal.h
++++ b/sandbox/linux/system_headers/linux_signal.h
 @@ -13,7 +13,7 @@
  // (not undefined, but defined different values and in different memory
  // layouts). So, fill the gap here.
@@ -995,8 +995,8 @@ index f5a736761..515b21a5f 100644
  #define LINUX_SIGINT 2
 diff --git sandbox/linux/system_headers/linux_syscalls.h sandbox/linux/system_headers/linux_syscalls.h
 index 2b78a0cc3..0a70f5ea5 100644
---- sandbox/linux/system_headers/linux_syscalls.h
-+++ sandbox/linux/system_headers/linux_syscalls.h
+--- a/sandbox/linux/system_headers/linux_syscalls.h
++++ b/sandbox/linux/system_headers/linux_syscalls.h
 @@ -35,5 +35,9 @@
  #include "sandbox/linux/system_headers/arm64_linux_syscalls.h"
  #endif
@@ -1009,8 +1009,8 @@ index 2b78a0cc3..0a70f5ea5 100644
  
 diff --git sandbox/linux/system_headers/linux_ucontext.h sandbox/linux/system_headers/linux_ucontext.h
 index 22ce78027..a69b024c2 100644
---- sandbox/linux/system_headers/linux_ucontext.h
-+++ sandbox/linux/system_headers/linux_ucontext.h
+--- a/sandbox/linux/system_headers/linux_ucontext.h
++++ b/sandbox/linux/system_headers/linux_ucontext.h
 @@ -11,6 +11,8 @@
  #include "sandbox/linux/system_headers/arm_linux_ucontext.h"
  #elif defined(__i386__)
@@ -1023,8 +1023,8 @@ index 22ce78027..a69b024c2 100644
 diff --git sandbox/linux/system_headers/ppc64_linux_syscalls.h sandbox/linux/system_headers/ppc64_linux_syscalls.h
 new file mode 100644
 index 000000000..ccacffe22
---- /dev/null
-+++ sandbox/linux/system_headers/ppc64_linux_syscalls.h
+--- a//dev/null
++++ b/sandbox/linux/system_headers/ppc64_linux_syscalls.h
 @@ -0,0 +1,12 @@
 +// Copyright 2014 The Chromium Authors. All rights reserved.
 +// Use of this source code is governed by a BSD-style license that can be
@@ -1041,8 +1041,8 @@ index 000000000..ccacffe22
 diff --git sandbox/linux/system_headers/ppc64_linux_ucontext.h sandbox/linux/system_headers/ppc64_linux_ucontext.h
 new file mode 100644
 index 000000000..07728e087
---- /dev/null
-+++ sandbox/linux/system_headers/ppc64_linux_ucontext.h
+--- a//dev/null
++++ b/sandbox/linux/system_headers/ppc64_linux_ucontext.h
 @@ -0,0 +1,12 @@
 +// Copyright 2014 The Chromium Authors. All rights reserved.
 +// Use of this source code is governed by a BSD-style license that can be
@@ -1058,8 +1058,8 @@ index 000000000..07728e087
 +#endif  // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_
 diff --git sandbox/policy/linux/bpf_renderer_policy_linux.cc sandbox/policy/linux/bpf_renderer_policy_linux.cc
 index 2588fc792..d455c4601 100644
---- sandbox/policy/linux/bpf_renderer_policy_linux.cc
-+++ sandbox/policy/linux/bpf_renderer_policy_linux.cc
+--- a/sandbox/policy/linux/bpf_renderer_policy_linux.cc
++++ b/sandbox/policy/linux/bpf_renderer_policy_linux.cc
 @@ -15,6 +15,11 @@
  #include "sandbox/linux/system_headers/linux_syscalls.h"
  #include "sandbox/policy/linux/sandbox_linux.h"
@@ -1074,8 +1074,8 @@ index 2588fc792..d455c4601 100644
  #include <linux/types.h>
 diff --git third_party/angle/src/compiler/translator/InfoSink.h third_party/angle/src/compiler/translator/InfoSink.h
 index 3a807e1e3..5258617a7 100644
---- third_party/angle/src/compiler/translator/InfoSink.h
-+++ third_party/angle/src/compiler/translator/InfoSink.h
+--- a/third_party/angle/src/compiler/translator/InfoSink.h
++++ b/third_party/angle/src/compiler/translator/InfoSink.h
 @@ -92,7 +92,16 @@ class TInfoSinkBase
              stream.precision(8);
              stream << f;
@@ -1096,8 +1096,8 @@ index 3a807e1e3..5258617a7 100644
      // Write boolean values as their names instead of integral value.
 diff --git third_party/angle/src/libANGLE/Constants.h third_party/angle/src/libANGLE/Constants.h
 index fcbc9246a..39ae66148 100644
---- third_party/angle/src/libANGLE/Constants.h
-+++ third_party/angle/src/libANGLE/Constants.h
+--- a/third_party/angle/src/libANGLE/Constants.h
++++ b/third_party/angle/src/libANGLE/Constants.h
 @@ -9,6 +9,7 @@
  #ifndef LIBANGLE_CONSTANTS_H_
  #define LIBANGLE_CONSTANTS_H_
@@ -1108,8 +1108,8 @@ index fcbc9246a..39ae66148 100644
  #include <stdint.h>
 diff --git third_party/boringssl/BUILD.gn third_party/boringssl/BUILD.gn
 index 17cf9cda9..8ce96bd32 100644
---- third_party/boringssl/BUILD.gn
-+++ third_party/boringssl/BUILD.gn
+--- a/third_party/boringssl/BUILD.gn
++++ b/third_party/boringssl/BUILD.gn
 @@ -103,6 +103,13 @@ if (is_win && !is_msan && current_cpu != "arm64") {
        } else {
          public_configs = [ ":no_asm_config" ]
@@ -1126,8 +1126,8 @@ index 17cf9cda9..8ce96bd32 100644
      }
 diff --git third_party/breakpad/BUILD.gn third_party/breakpad/BUILD.gn
 index 4af3d7bbf..adbf54159 100644
---- third_party/breakpad/BUILD.gn
-+++ third_party/breakpad/BUILD.gn
+--- a/third_party/breakpad/BUILD.gn
++++ b/third_party/breakpad/BUILD.gn
 @@ -596,7 +596,6 @@ if (is_linux || is_chromeos || is_android) {
        "breakpad/src/client/minidump_file_writer.h",
        "breakpad/src/common/convert_UTF.cc",
@@ -1161,8 +1161,8 @@ index 4af3d7bbf..adbf54159 100644
        "breakpad/src/common/linux/linux_libc_support_unittest.cc",
 diff --git third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h
 index 07d9171a0..9aed4cb36 100644
---- third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h
-+++ third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h
+--- a/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h
++++ b/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h
 @@ -44,6 +44,8 @@ typedef MDRawContextARM RawContextCPU;
  typedef MDRawContextARM64_Old RawContextCPU;
  #elif defined(__mips__)
@@ -1174,8 +1174,8 @@ index 07d9171a0..9aed4cb36 100644
  #endif
 diff --git third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc
 index aae1dc13b..03afec7a5 100644
---- third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc
-+++ third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc
+--- a/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc
++++ b/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc
 @@ -270,7 +270,42 @@ void ThreadInfo::FillCPUContext(RawContextCPU* out) const {
    out->float_save.fir = mcontext.fpc_eir;
  #endif
@@ -1260,8 +1260,8 @@ index aae1dc13b..03afec7a5 100644
  }  // namespace google_breakpad
 diff --git third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h
 index fb216fa6d..593aac822 100644
---- third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h
-+++ third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h
+--- a/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h
++++ b/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h
 @@ -68,6 +68,10 @@ struct ThreadInfo {
    // Use the structures defined in <sys/user.h>
    struct user_regs_struct regs;
@@ -1287,8 +1287,8 @@ index fb216fa6d..593aac822 100644
  }  // namespace google_breakpad
 diff --git third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc
 index 6eec1be24..741983a1a 100644
---- third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc
-+++ third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc
+--- a/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc
++++ b/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc
 @@ -254,6 +254,48 @@ void UContextReader::FillCPUContext(RawContextCPU* out, const ucontext_t* uc) {
    out->float_save.fir = uc->uc_mcontext.fpc_eir;  // Unused.
  #endif
@@ -1340,8 +1340,8 @@ index 6eec1be24..741983a1a 100644
  }  // namespace google_breakpad
 diff --git third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h
 index 7d4100881..c122ac92e 100644
---- third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h
-+++ third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h
+--- a/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h
++++ b/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h
 @@ -55,6 +55,9 @@ struct UContextReader {
  #elif defined(__aarch64__)
    static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc,
@@ -1354,8 +1354,8 @@ index 7d4100881..c122ac92e 100644
  #endif
 diff --git third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
 index a6cb5f984..ae16b64d9 100644
---- third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
-+++ third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
+--- a/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
++++ b/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
 @@ -461,9 +461,16 @@ bool ExceptionHandler::HandleSignal(int /*sig*/, siginfo_t* info, void* uc) {
      memcpy(&g_crash_context_.float_state, fp_ptr,
             sizeof(g_crash_context_.float_state));
@@ -1407,8 +1407,8 @@ index a6cb5f984..ae16b64d9 100644
  #endif
 diff --git third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h
 index f80843ea7..260dd10f7 100644
---- third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h
-+++ third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h
+--- a/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h
++++ b/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h
 @@ -192,7 +192,11 @@ class ExceptionHandler {
      siginfo_t siginfo;
      pid_t tid;  // the crashing thread.
@@ -1424,8 +1424,8 @@ index f80843ea7..260dd10f7 100644
      // 'float_state' is not required.
 diff --git third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc
 index 35dcbfd4d..7934370fd 100644
---- third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc
-+++ third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc
+--- a/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc
++++ b/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc
 @@ -307,7 +307,7 @@ TEST(ExceptionHandlerTest, ParallelChildCrashesDontHang) {
    }
  
@@ -1459,8 +1459,8 @@ index 35dcbfd4d..7934370fd 100644
    const pid_t child = fork();
 diff --git third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc
 index fa3c1713a..6ce709e2f 100644
---- third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc
-+++ third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc
+--- a/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc
++++ b/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc
 @@ -138,7 +138,9 @@ class MicrodumpWriter {
                    const MicrodumpExtraInfo& microdump_extra_info,
                    LinuxDumper* dumper)
@@ -1505,8 +1505,8 @@ index fa3c1713a..6ce709e2f 100644
    LinuxDumper* dumper_;
 diff --git third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc
 index 6339ac0cd..291af106b 100644
---- third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc
-+++ third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc
+--- a/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc
++++ b/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc
 @@ -279,10 +279,19 @@ TEST(MicrodumpWriterTest, BasicWithMappings) {
    CrashAndGetMicrodump(mappings, MicrodumpExtraInfo(), &buf);
    ASSERT_TRUE(ContainsMicrodump(buf));
@@ -1532,8 +1532,8 @@ index 6339ac0cd..291af106b 100644
              buf.find("M 00001000 0000002A 00001000 "
 diff --git third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc
 index 415068983..b93e4afcf 100644
---- third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc
-+++ third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc
+--- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc
++++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc
 @@ -112,6 +112,9 @@ bool LinuxCoreDumper::GetThreadInfoByIndex(size_t index, ThreadInfo* info) {
  #elif defined(__mips__)
    stack_pointer =
@@ -1558,8 +1558,8 @@ index 415068983..b93e4afcf 100644
            info.mcontext.gregs[i - EF_R0] = status->pr_reg[i];
 diff --git third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc
 index 7fd6532ad..199cbfffd 100644
---- third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc
-+++ third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc
+--- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc
++++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc
 @@ -765,7 +765,9 @@ bool LinuxDumper::GetStackInfo(const void** stack, size_t* stack_len,
        reinterpret_cast<uint8_t*>(int_stack_pointer & ~(page_size - 1));
  
@@ -1573,8 +1573,8 @@ index 7fd6532ad..199cbfffd 100644
    if (!mapping)
 diff --git third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h
 index 7bee160f1..07bb2b81a 100644
---- third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h
-+++ third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h
+--- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h
++++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h
 @@ -63,7 +63,8 @@ namespace google_breakpad {
   (defined(__mips__) && _MIPS_SIM == _ABIO32)
  typedef Elf32_auxv_t elf_aux_entry;
@@ -1587,8 +1587,8 @@ index 7bee160f1..07bb2b81a 100644
  
 diff --git third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc
 index 331f4bb34..3f722947f 100644
---- third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc
-+++ third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc
+--- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc
++++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc
 @@ -51,6 +51,8 @@
  #define TID_PTR_REGISTER "rcx"
  #elif defined(__mips__)
@@ -1600,8 +1600,8 @@ index 331f4bb34..3f722947f 100644
  #endif
 diff --git third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
 index e3ddb81a6..fa28575ef 100644
---- third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
-+++ third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
+--- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
++++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
 @@ -149,19 +149,27 @@ bool LinuxPtraceDumper::CopyFromProcess(void* dest, pid_t child,
    return true;
  }
@@ -1646,8 +1646,8 @@ index e3ddb81a6..fa28575ef 100644
  #endif
 diff --git third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc
 index da71e15dc..12bfb317a 100644
---- third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc
-+++ third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc
+--- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc
++++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc
 @@ -462,6 +462,9 @@ TEST(LinuxPtraceDumperTest, VerifyStackReadWithMultipleThreads) {
  #elif defined(__mips__)
      pid_t* process_tid_location =
@@ -1669,8 +1669,8 @@ index da71e15dc..12bfb317a 100644
  #endif
 diff --git third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc
 index 32634ef00..2a56948de 100644
---- third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc
-+++ third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc
+--- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc
++++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc
 @@ -136,7 +136,9 @@ class MinidumpWriter {
        : fd_(minidump_fd),
          path_(minidump_path),
@@ -1726,8 +1726,8 @@ index 32634ef00..2a56948de 100644
    LinuxDumper* dumper_;
 diff --git third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h
 index e3b0b16da..ccd8aa0a4 100644
---- third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h
-+++ third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h
+--- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h
++++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h
 @@ -48,6 +48,8 @@ class ExceptionHandler;
  
  #if defined(__aarch64__)
@@ -1739,8 +1739,8 @@ index e3b0b16da..ccd8aa0a4 100644
  #endif
 diff --git third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc
 index d192e5cbb..fc1bfa8d7 100644
---- third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc
-+++ third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc
+--- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc
++++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc
 @@ -715,6 +715,9 @@ TEST(MinidumpWriterTest, InvalidStackPointer) {
  #elif defined(__mips__)
    context.context.uc_mcontext.gregs[MD_CONTEXT_MIPS_REG_SP] =
@@ -1753,8 +1753,8 @@ index d192e5cbb..fc1bfa8d7 100644
  #endif
 diff --git third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc
 index 99362945c..c54ba7145 100644
---- third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc
-+++ third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc
+--- a/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc
++++ b/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc
 @@ -65,8 +65,7 @@ bool MemoryMappedFile::Map(const char* path, size_t offset) {
    }
  
@@ -1767,8 +1767,8 @@ index 99362945c..c54ba7145 100644
  #else
 diff --git third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc
 index fad59f40c..616496d67 100644
---- third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc
-+++ third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc
+--- a/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc
++++ b/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc
 @@ -176,9 +176,10 @@ TEST_F(MemoryMappedFileTest, RemapAfterMap) {
  TEST_F(MemoryMappedFileTest, MapWithOffset) {
    // Put more data in the test file this time. Offsets can only be
@@ -1785,8 +1785,8 @@ index fad59f40c..616496d67 100644
    }
 diff --git third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc
 index 5803b90d5..2a1cf14f0 100644
---- third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc
-+++ third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc
+--- a/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc
++++ b/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc
 @@ -57,8 +57,9 @@ TEST(PageAllocatorTest, LargeObject) {
  
    EXPECT_EQ(0U, allocator.pages_allocated());
@@ -1800,8 +1800,8 @@ index 5803b90d5..2a1cf14f0 100644
      ASSERT_FALSE(p == NULL);
 diff --git third_party/breakpad/breakpad/src/processor/exploitability_linux.cc third_party/breakpad/breakpad/src/processor/exploitability_linux.cc
 index 798056dfa..22bd81fff 100644
---- third_party/breakpad/breakpad/src/processor/exploitability_linux.cc
-+++ third_party/breakpad/breakpad/src/processor/exploitability_linux.cc
+--- a/third_party/breakpad/breakpad/src/processor/exploitability_linux.cc
++++ b/third_party/breakpad/breakpad/src/processor/exploitability_linux.cc
 @@ -202,12 +202,14 @@ bool ExploitabilityLinux::EndedOnIllegalWrite(uint64_t instruction_ptr) {
    // Check architecture and set architecture variable to corresponding flag
    // in objdump.
@@ -1819,8 +1819,8 @@ index 798056dfa..22bd81fff 100644
        // supported because objdump does not support ARM.
 diff --git third_party/breakpad/breakpad/src/processor/exploitability_unittest.cc third_party/breakpad/breakpad/src/processor/exploitability_unittest.cc
 index 528ee5f21..72764d6c1 100644
---- third_party/breakpad/breakpad/src/processor/exploitability_unittest.cc
-+++ third_party/breakpad/breakpad/src/processor/exploitability_unittest.cc
+--- a/third_party/breakpad/breakpad/src/processor/exploitability_unittest.cc
++++ b/third_party/breakpad/breakpad/src/processor/exploitability_unittest.cc
 @@ -104,6 +104,8 @@ ExploitabilityFor(const string& filename) {
  }
  
@@ -1877,8 +1877,8 @@ index 528ee5f21..72764d6c1 100644
  }  // namespace
 diff --git third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc
 index aade82c99..195aa73f3 100644
---- third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc
-+++ third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc
+--- a/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc
++++ b/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc
 @@ -77,6 +77,8 @@
    #define ELF_ARCH  EM_MIPS
  #elif defined(__aarch64__)
@@ -1961,8 +1961,8 @@ index aade82c99..195aa73f3 100644
  #endif
 diff --git third_party/crashpad/crashpad/CONTRIBUTORS third_party/crashpad/crashpad/CONTRIBUTORS
 index 8724b7f32..8e29424ef 100644
---- third_party/crashpad/crashpad/CONTRIBUTORS
-+++ third_party/crashpad/crashpad/CONTRIBUTORS
+--- a/third_party/crashpad/crashpad/CONTRIBUTORS
++++ b/third_party/crashpad/crashpad/CONTRIBUTORS
 @@ -13,3 +13,4 @@ Mark Mentovai <mark@chromium.org>
  Robert Sesek <rsesek@chromium.org>
  Scott Graham <scottmg@chromium.org>
@@ -1970,8 +1970,8 @@ index 8724b7f32..8e29424ef 100644
 +Shawn Anastasio <shawn@anastas.io>
 diff --git third_party/crashpad/crashpad/compat/linux/sys/user.h third_party/crashpad/crashpad/compat/linux/sys/user.h
 index 6ed77a98e..1fd83469a 100644
---- third_party/crashpad/crashpad/compat/linux/sys/user.h
-+++ third_party/crashpad/crashpad/compat/linux/sys/user.h
+--- a/third_party/crashpad/crashpad/compat/linux/sys/user.h
++++ b/third_party/crashpad/crashpad/compat/linux/sys/user.h
 @@ -15,6 +15,7 @@
  #ifndef CRASHPAD_COMPAT_LINUX_SYS_USER_H_
  #define CRASHPAD_COMPAT_LINUX_SYS_USER_H_
@@ -1982,8 +1982,8 @@ index 6ed77a98e..1fd83469a 100644
  #include <features.h>
 diff --git third_party/crashpad/crashpad/minidump/minidump_context.h third_party/crashpad/crashpad/minidump/minidump_context.h
 index 3a3e603cb..3118d9e9f 100644
---- third_party/crashpad/crashpad/minidump/minidump_context.h
-+++ third_party/crashpad/crashpad/minidump/minidump_context.h
+--- a/third_party/crashpad/crashpad/minidump/minidump_context.h
++++ b/third_party/crashpad/crashpad/minidump/minidump_context.h
 @@ -592,6 +592,70 @@ struct MinidumpContextMIPS64 {
    uint64_t fir;
  };
@@ -2057,8 +2057,8 @@ index 3a3e603cb..3118d9e9f 100644
  #endif  // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_H_
 diff --git third_party/crashpad/crashpad/minidump/minidump_context_writer.cc third_party/crashpad/crashpad/minidump/minidump_context_writer.cc
 index d7e53a493..d89eb9e01 100644
---- third_party/crashpad/crashpad/minidump/minidump_context_writer.cc
-+++ third_party/crashpad/crashpad/minidump/minidump_context_writer.cc
+--- a/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc
++++ b/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc
 @@ -101,6 +101,13 @@ MinidumpContextWriter::CreateFromSnapshot(const CPUContext* context_snapshot) {
        break;
      }
@@ -2123,8 +2123,8 @@ index d7e53a493..d89eb9e01 100644
  }  // namespace crashpad
 diff --git third_party/crashpad/crashpad/minidump/minidump_context_writer.h third_party/crashpad/crashpad/minidump/minidump_context_writer.h
 index d4ab936ee..1d22fc59c 100644
---- third_party/crashpad/crashpad/minidump/minidump_context_writer.h
-+++ third_party/crashpad/crashpad/minidump/minidump_context_writer.h
+--- a/third_party/crashpad/crashpad/minidump/minidump_context_writer.h
++++ b/third_party/crashpad/crashpad/minidump/minidump_context_writer.h
 @@ -315,6 +315,45 @@ class MinidumpContextMIPS64Writer final : public MinidumpContextWriter {
    DISALLOW_COPY_AND_ASSIGN(MinidumpContextMIPS64Writer);
  };
@@ -2173,8 +2173,8 @@ index d4ab936ee..1d22fc59c 100644
  #endif  // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_WRITER_H_
 diff --git third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc
 index 3216a906b..a9fcbe9d8 100644
---- third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc
-+++ third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc
+--- a/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc
++++ b/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc
 @@ -213,6 +213,21 @@ TEST(MinidumpContextWriter, MIPS64_FromSnapshot) {
        context, ExpectMinidumpContextMIPS64, kSeed);
  }
@@ -2199,8 +2199,8 @@ index 3216a906b..a9fcbe9d8 100644
  }  // namespace crashpad
 diff --git third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc
 index 0974e3ddf..b71ec5880 100644
---- third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc
-+++ third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc
+--- a/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc
++++ b/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc
 @@ -135,6 +135,8 @@ std::string MinidumpMiscInfoDebugBuildString() {
    static constexpr char kCPU[] = "mips";
  #elif defined(ARCH_CPU_MIPS64EL)
@@ -2212,8 +2212,8 @@ index 0974e3ddf..b71ec5880 100644
  #endif
 diff --git third_party/crashpad/crashpad/snapshot/capture_memory.cc third_party/crashpad/crashpad/snapshot/capture_memory.cc
 index 7a1b2763c..beda8da9e 100644
---- third_party/crashpad/crashpad/snapshot/capture_memory.cc
-+++ third_party/crashpad/crashpad/snapshot/capture_memory.cc
+--- a/third_party/crashpad/crashpad/snapshot/capture_memory.cc
++++ b/third_party/crashpad/crashpad/snapshot/capture_memory.cc
 @@ -112,6 +112,11 @@ void CaptureMemory::PointedToByContext(const CPUContext& context,
    for (size_t i = 0; i < base::size(context.mipsel->regs); ++i) {
      MaybeCaptureMemoryAround(delegate, context.mipsel->regs[i]);
@@ -2228,8 +2228,8 @@ index 7a1b2763c..beda8da9e 100644
  #endif
 diff --git third_party/crashpad/crashpad/snapshot/cpu_architecture.h third_party/crashpad/crashpad/snapshot/cpu_architecture.h
 index 811a72095..f4f83981d 100644
---- third_party/crashpad/crashpad/snapshot/cpu_architecture.h
-+++ third_party/crashpad/crashpad/snapshot/cpu_architecture.h
+--- a/third_party/crashpad/crashpad/snapshot/cpu_architecture.h
++++ b/third_party/crashpad/crashpad/snapshot/cpu_architecture.h
 @@ -43,7 +43,10 @@ enum CPUArchitecture {
    kCPUArchitectureMIPSEL,
  
@@ -2244,8 +2244,8 @@ index 811a72095..f4f83981d 100644
  }  // namespace crashpad
 diff --git third_party/crashpad/crashpad/snapshot/cpu_context.cc third_party/crashpad/crashpad/snapshot/cpu_context.cc
 index c75b5555e..aeade577a 100644
---- third_party/crashpad/crashpad/snapshot/cpu_context.cc
-+++ third_party/crashpad/crashpad/snapshot/cpu_context.cc
+--- a/third_party/crashpad/crashpad/snapshot/cpu_context.cc
++++ b/third_party/crashpad/crashpad/snapshot/cpu_context.cc
 @@ -169,6 +169,8 @@ uint64_t CPUContext::InstructionPointer() const {
        return arm->pc;
      case kCPUArchitectureARM64:
@@ -2274,8 +2274,8 @@ index c75b5555e..aeade577a 100644
      case kCPUArchitectureARM:
 diff --git third_party/crashpad/crashpad/snapshot/cpu_context.h third_party/crashpad/crashpad/snapshot/cpu_context.h
 index fb23c4679..eebede63c 100644
---- third_party/crashpad/crashpad/snapshot/cpu_context.h
-+++ third_party/crashpad/crashpad/snapshot/cpu_context.h
+--- a/third_party/crashpad/crashpad/snapshot/cpu_context.h
++++ b/third_party/crashpad/crashpad/snapshot/cpu_context.h
 @@ -352,6 +352,24 @@ struct CPUContextMIPS64 {
    uint64_t fir;
  };
@@ -2311,8 +2311,8 @@ index fb23c4679..eebede63c 100644
  
 diff --git third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h
 index 9f46a4897..aa677c4eb 100644
---- third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h
-+++ third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h
+--- a/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h
++++ b/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h
 @@ -15,6 +15,7 @@
  #ifndef CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_
  #define CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_
@@ -2402,8 +2402,8 @@ index 9f46a4897..aa677c4eb 100644
  
 diff --git third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc
 index d32bd1937..2dd538c2b 100644
---- third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc
-+++ third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc
+--- a/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc
++++ b/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc
 @@ -192,6 +192,8 @@ void TestAgainstTarget(PtraceConnection* connection) {
                device == 0 && inode == 0 && mapping_name == "[vdso]";
  #if defined(ARCH_CPU_X86)
@@ -2415,8 +2415,8 @@ index d32bd1937..2dd538c2b 100644
  #endif
 diff --git third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc
 index cd40b3b12..6bcf23b6f 100644
---- third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc
-+++ third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc
+--- a/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc
++++ b/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc
 @@ -323,6 +323,69 @@ bool ExceptionSnapshotLinux::ReadContext<ContextTraits64>(
        reader, context_address, context_.mips64);
  }
@@ -2489,8 +2489,8 @@ index cd40b3b12..6bcf23b6f 100644
  bool ExceptionSnapshotLinux::Initialize(ProcessReaderLinux* process_reader,
 diff --git third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h
 index ea0cd2106..e42df520f 100644
---- third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h
-+++ third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h
+--- a/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h
++++ b/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h
 @@ -84,6 +84,8 @@ class ExceptionSnapshotLinux final : public ExceptionSnapshot {
  #elif defined(ARCH_CPU_MIPS_FAMILY)
      CPUContextMIPS mipsel;
@@ -2502,8 +2502,8 @@ index ea0cd2106..e42df520f 100644
    CPUContext context_;
 diff --git third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc
 index c17170b43..b6a714cc6 100644
---- third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc
-+++ third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc
+--- a/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc
++++ b/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc
 @@ -296,7 +296,28 @@ void ExpectContext(const CPUContext& actual, const NativeCPUContext& expected) {
              0);
  #undef CPU_ARCH_NAME
@@ -2535,8 +2535,8 @@ index c17170b43..b6a714cc6 100644
  #endif
 diff --git third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc
 index ee246e8bc..9555dce04 100644
---- third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc
-+++ third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc
+--- a/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc
++++ b/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc
 @@ -108,6 +108,8 @@ void ProcessReaderLinux::Thread::InitializeStack(ProcessReaderLinux* reader) {
  #elif defined(ARCH_CPU_MIPS_FAMILY)
    stack_pointer = reader->Is64Bit() ? thread_info.thread_context.t64.regs[29]
@@ -2548,8 +2548,8 @@ index ee246e8bc..9555dce04 100644
  #endif
 diff --git third_party/crashpad/crashpad/snapshot/linux/signal_context.h third_party/crashpad/crashpad/snapshot/linux/signal_context.h
 index 110024680..a1f2da259 100644
---- third_party/crashpad/crashpad/snapshot/linux/signal_context.h
-+++ third_party/crashpad/crashpad/snapshot/linux/signal_context.h
+--- a/third_party/crashpad/crashpad/snapshot/linux/signal_context.h
++++ b/third_party/crashpad/crashpad/snapshot/linux/signal_context.h
 @@ -422,6 +422,89 @@ static_assert(offsetof(UContext<ContextTraits64>, mcontext.fpregs) ==
                "context offset mismatch");
  #endif
@@ -2642,8 +2642,8 @@ index 110024680..a1f2da259 100644
  #endif  // ARCH_CPU_X86_FAMILY
 diff --git third_party/crashpad/crashpad/snapshot/linux/system_snapshot_linux.cc third_party/crashpad/crashpad/snapshot/linux/system_snapshot_linux.cc
 index a99da3e4b..03b973083 100644
---- third_party/crashpad/crashpad/snapshot/linux/system_snapshot_linux.cc
-+++ third_party/crashpad/crashpad/snapshot/linux/system_snapshot_linux.cc
+--- a/third_party/crashpad/crashpad/snapshot/linux/system_snapshot_linux.cc
++++ b/third_party/crashpad/crashpad/snapshot/linux/system_snapshot_linux.cc
 @@ -204,6 +204,8 @@ CPUArchitecture SystemSnapshotLinux::GetCPUArchitecture() const {
  #elif defined(ARCH_CPU_MIPS_FAMILY)
    return process_reader_->Is64Bit() ? kCPUArchitectureMIPS64EL
@@ -2685,8 +2685,8 @@ index a99da3e4b..03b973083 100644
  #endif  // ARCH_CPU_X86_FAMILY
 diff --git third_party/crashpad/crashpad/snapshot/linux/test_modules.cc third_party/crashpad/crashpad/snapshot/linux/test_modules.cc
 index b2450c206..7ba78b2ae 100644
---- third_party/crashpad/crashpad/snapshot/linux/test_modules.cc
-+++ third_party/crashpad/crashpad/snapshot/linux/test_modules.cc
+--- a/third_party/crashpad/crashpad/snapshot/linux/test_modules.cc
++++ b/third_party/crashpad/crashpad/snapshot/linux/test_modules.cc
 @@ -110,6 +110,8 @@ bool WriteTestModule(const base::FilePath& module_path,
    module.ehdr.e_machine = EM_AARCH64;
  #elif defined(ARCH_CPU_MIPSEL) || defined(ARCH_CPU_MIPS64EL)
@@ -2698,8 +2698,8 @@ index b2450c206..7ba78b2ae 100644
    module.ehdr.e_version = EV_CURRENT;
 diff --git third_party/crashpad/crashpad/snapshot/linux/thread_snapshot_linux.cc third_party/crashpad/crashpad/snapshot/linux/thread_snapshot_linux.cc
 index e3e2bebdd..8ef43752e 100644
---- third_party/crashpad/crashpad/snapshot/linux/thread_snapshot_linux.cc
-+++ third_party/crashpad/crashpad/snapshot/linux/thread_snapshot_linux.cc
+--- a/third_party/crashpad/crashpad/snapshot/linux/thread_snapshot_linux.cc
++++ b/third_party/crashpad/crashpad/snapshot/linux/thread_snapshot_linux.cc
 @@ -186,6 +186,14 @@ bool ThreadSnapshotLinux::Initialize(ProcessReaderLinux* process_reader,
          thread.thread_info.float_context.f32,
          context_.mipsel);
@@ -2717,8 +2717,8 @@ index e3e2bebdd..8ef43752e 100644
  #endif
 diff --git third_party/crashpad/crashpad/snapshot/linux/thread_snapshot_linux.h third_party/crashpad/crashpad/snapshot/linux/thread_snapshot_linux.h
 index 44cc6f6d9..d4136461e 100644
---- third_party/crashpad/crashpad/snapshot/linux/thread_snapshot_linux.h
-+++ third_party/crashpad/crashpad/snapshot/linux/thread_snapshot_linux.h
+--- a/third_party/crashpad/crashpad/snapshot/linux/thread_snapshot_linux.h
++++ b/third_party/crashpad/crashpad/snapshot/linux/thread_snapshot_linux.h
 @@ -68,6 +68,8 @@ class ThreadSnapshotLinux final : public ThreadSnapshot {
  #elif defined(ARCH_CPU_MIPS_FAMILY)
      CPUContextMIPS mipsel;
@@ -2728,8 +2728,8 @@ index 44cc6f6d9..d4136461e 100644
  #else
  #error Port.
  #endif  // ARCH_CPU_X86_FAMILY
---- third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc
-+++ third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc
+--- a/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc
++++ b/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc
 @@ -236,6 +236,12 @@
  #elif defined(ARCH_CPU_BIG_ENDIAN)
      static constexpr char arch[] = "aarch64_be";
@@ -2745,8 +2745,8 @@ index 44cc6f6d9..d4136461e 100644
  #endif
 diff --git third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc
 index d3d5ebdfb..3fd730cb5 100644
---- third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc
-+++ third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc
+--- a/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc
++++ b/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc
 @@ -56,6 +56,11 @@ bool AuxiliaryVector::Read(PtraceConnection* connection) {
      if (type == AT_IGNORE) {
        continue;
@@ -2761,8 +2761,8 @@ index d3d5ebdfb..3fd730cb5 100644
        return false;
 diff --git third_party/crashpad/crashpad/util/linux/ptracer.cc third_party/crashpad/crashpad/util/linux/ptracer.cc
 index 557e0d363..08ae434b8 100644
---- third_party/crashpad/crashpad/util/linux/ptracer.cc
-+++ third_party/crashpad/crashpad/util/linux/ptracer.cc
+--- a/third_party/crashpad/crashpad/util/linux/ptracer.cc
++++ b/third_party/crashpad/crashpad/util/linux/ptracer.cc
 @@ -398,6 +398,64 @@ bool GetThreadArea64(pid_t tid,
    return true;
  }
@@ -2840,8 +2840,8 @@ index 557e0d363..08ae434b8 100644
                             &info->thread_specific_data_address,
 diff --git third_party/crashpad/crashpad/util/linux/thread_info.h third_party/crashpad/crashpad/util/linux/thread_info.h
 index 5b55c24a7..dea0d1f39 100644
---- third_party/crashpad/crashpad/util/linux/thread_info.h
-+++ third_party/crashpad/crashpad/util/linux/thread_info.h
+--- a/third_party/crashpad/crashpad/util/linux/thread_info.h
++++ b/third_party/crashpad/crashpad/util/linux/thread_info.h
 @@ -28,6 +28,10 @@
  #include <android/api-level.h>
  #endif
@@ -2962,8 +2962,8 @@ index 5b55c24a7..dea0d1f39 100644
  };
 diff --git third_party/crashpad/crashpad/util/misc/capture_context.h third_party/crashpad/crashpad/util/misc/capture_context.h
 index d21a24f19..acc325349 100644
---- third_party/crashpad/crashpad/util/misc/capture_context.h
-+++ third_party/crashpad/crashpad/util/misc/capture_context.h
+--- a/third_party/crashpad/crashpad/util/misc/capture_context.h
++++ b/third_party/crashpad/crashpad/util/misc/capture_context.h
 @@ -69,6 +69,7 @@ using NativeCPUContext = ucontext_t;
  //!     macOS/Linux/Fuchsia | x86_64       | `%%rdi`
  //!     Linux               | ARM/ARM64    | `r0`/`x0`
@@ -2974,8 +2974,8 @@ index d21a24f19..acc325349 100644
  //!     this function.
 diff --git third_party/crashpad/crashpad/util/misc/capture_context_linux.S third_party/crashpad/crashpad/util/misc/capture_context_linux.S
 index 52215ee5d..b3e4a3ec7 100644
---- third_party/crashpad/crashpad/util/misc/capture_context_linux.S
-+++ third_party/crashpad/crashpad/util/misc/capture_context_linux.S
+--- a/third_party/crashpad/crashpad/util/misc/capture_context_linux.S
++++ b/third_party/crashpad/crashpad/util/misc/capture_context_linux.S
 @@ -32,7 +32,7 @@
    .balign 4, 0x0
    .type CAPTURECONTEXT_SYMBOL, %function
@@ -3202,8 +3202,8 @@ index 52215ee5d..b3e4a3ec7 100644
  #endif  // __i386__
 diff --git third_party/crashpad/crashpad/util/misc/capture_context_test.cc third_party/crashpad/crashpad/util/misc/capture_context_test.cc
 index cf23c2def..5f264bc92 100644
---- third_party/crashpad/crashpad/util/misc/capture_context_test.cc
-+++ third_party/crashpad/crashpad/util/misc/capture_context_test.cc
+--- a/third_party/crashpad/crashpad/util/misc/capture_context_test.cc
++++ b/third_party/crashpad/crashpad/util/misc/capture_context_test.cc
 @@ -57,7 +57,7 @@ void TestCaptureContext() {
    uintptr_t pc = ProgramCounterFromContext(context_1);
  
@@ -3215,8 +3215,8 @@ index cf23c2def..5f264bc92 100644
    const uintptr_t kReferencePC =
 diff --git third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc
 index 30a2ab21d..60509f21d 100644
---- third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc
-+++ third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc
+--- a/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc
++++ b/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc
 @@ -35,6 +35,8 @@ void SanityCheckContext(const NativeCPUContext& context) {
    EXPECT_EQ(context.uc_mcontext.regs[0], FromPointerCast<uintptr_t>(&context));
  #elif defined(ARCH_CPU_MIPS_FAMILY)
@@ -3246,8 +3246,8 @@ index 30a2ab21d..60509f21d 100644
  
 diff --git third_party/crashpad/crashpad/util/posix/signals_test.cc third_party/crashpad/crashpad/util/posix/signals_test.cc
 index 54cc2f19f..298b5c993 100644
---- third_party/crashpad/crashpad/util/posix/signals_test.cc
-+++ third_party/crashpad/crashpad/util/posix/signals_test.cc
+--- a/third_party/crashpad/crashpad/util/posix/signals_test.cc
++++ b/third_party/crashpad/crashpad/util/posix/signals_test.cc
 @@ -46,9 +46,9 @@ bool CanCauseSignal(int sig) {
    return sig == SIGABRT ||
           sig == SIGALRM ||
@@ -3284,8 +3284,8 @@ index 54cc2f19f..298b5c993 100644
      case SIGILL: {
 diff --git third_party/dav1d/BUILD.gn third_party/dav1d/BUILD.gn
 index 6b4566fc3..c07f732ad 100644
---- third_party/dav1d/BUILD.gn
-+++ third_party/dav1d/BUILD.gn
+--- a/third_party/dav1d/BUILD.gn
++++ b/third_party/dav1d/BUILD.gn
 @@ -184,6 +184,8 @@ static_library("dav1d_8bit") {
      sources += arm_template_sources
    } else if (current_cpu == "arm64") {
@@ -3337,8 +3337,8 @@ index 6b4566fc3..c07f732ad 100644
 diff --git third_party/dav1d/config/linux/ppc64/config.h third_party/dav1d/config/linux/ppc64/config.h
 new file mode 100644
 index 000000000..9fbbf75cc
---- /dev/null
-+++ third_party/dav1d/config/linux/ppc64/config.h
+--- a//dev/null
++++ b/third_party/dav1d/config/linux/ppc64/config.h
 @@ -0,0 +1,39 @@
 +/*
 + * Autogenerated by the Meson build system.
@@ -3381,8 +3381,8 @@ index 000000000..9fbbf75cc
 +
 diff --git third_party/dav1d/dav1d_generated.gni third_party/dav1d/dav1d_generated.gni
 index c59cb0821..3060284a8 100644
---- third_party/dav1d/dav1d_generated.gni
-+++ third_party/dav1d/dav1d_generated.gni
+--- a/third_party/dav1d/dav1d_generated.gni
++++ b/third_party/dav1d/dav1d_generated.gni
 @@ -82,6 +82,11 @@ arm_template_sources = [
    "libdav1d/src/arm/mc_init_tmpl.c",
  ]
@@ -3397,8 +3397,8 @@ index c59cb0821..3060284a8 100644
    "libdav1d/src/cdef_tmpl.c",
 diff --git third_party/dav1d/generate_source.py third_party/dav1d/generate_source.py
 index 9ab5e00b8..ad3feffee 100755
---- third_party/dav1d/generate_source.py.orig	2021-04-15 13:11:10.489579490 -0400
-+++ third_party/dav1d/generate_source.py	2021-04-15 13:19:08.229913892 -0400
+--- a/third_party/dav1d/generate_source.py
++++ b/third_party/dav1d/generate_source.py
 @@ -57,6 +57,8 @@
    _WriteArray(fd, "arm64_asm_sources", _Glob("libdav1d/src/arm/64/*.S"))
    _WriteArray(fd, "arm_template_sources", _Glob("libdav1d/src/arm/*_tmpl.c"))
@@ -3410,8 +3410,8 @@ index 9ab5e00b8..ad3feffee 100755
  
 diff --git third_party/dav1d/libdav1d/src/ppc/types.h third_party/dav1d/libdav1d/src/ppc/types.h
 index 0b4bd72f0..a0caa5e71 100644
---- third_party/dav1d/libdav1d/src/ppc/types.h
-+++ third_party/dav1d/libdav1d/src/ppc/types.h
+--- a/third_party/dav1d/libdav1d/src/ppc/types.h
++++ b/third_party/dav1d/libdav1d/src/ppc/types.h
 @@ -51,4 +51,19 @@
  #define u16l_to_i32(v) ((i32x4) vec_mergel((u16x8) v, vec_splat_u16(0)))
  #define i16l_to_i32(v) ((i32x4) vec_unpackl((i16x8)v))
@@ -3434,8 +3434,8 @@ index 0b4bd72f0..a0caa5e71 100644
  #endif /* DAV1D_SRC_PPC_TYPES_H */
 diff --git third_party/eigen3/BUILD.gn third_party/eigen3/BUILD.gn
 index 0d4e184..f2ce484 100644
---- third_party/eigen3/BUILD.gn
-+++ third_party/eigen3/BUILD.gn
+--- a/third_party/eigen3/BUILD.gn
++++ b/third_party/eigen3/BUILD.gn
 @@ -22,4 +22,8 @@ config("eigen_includes") {
      # for this component on Windows on Arm due to compilation errors.
      defines += [ "EIGEN_DONT_VECTORIZE" ]
@@ -3448,8 +3448,8 @@ index 0d4e184..f2ce484 100644
 
 diff --git third_party/libaom/BUILD.gn third_party/libaom/BUILD.gn
 index 9b065bd..df3af02 100644
---- third_party/libaom/BUILD.gn
-+++ third_party/libaom/BUILD.gn
+--- a/third_party/libaom/BUILD.gn
++++ b/third_party/libaom/BUILD.gn
 @@ -36,6 +36,8 @@ if (enable_libaom) {
      } else {
        cpu_arch_full = "arm"
@@ -3461,8 +3461,8 @@ index 9b065bd..df3af02 100644
    }
 diff --git third_party/libgav1/options.gni third_party/libgav1/options.gni
 index 11af801..4b13d05 100644
---- third_party/libgav1/options.gni
-+++ third_party/libgav1/options.gni
+--- a/third_party/libgav1/options.gni
++++ b/third_party/libgav1/options.gni
 @@ -12,5 +12,5 @@ declare_args() {
        is_chromeos_ash && (target_cpu == "arm" || target_cpu == "arm64")
    use_libgav1_parser =
@@ -3472,8 +3472,8 @@ index 11af801..4b13d05 100644
  }
 diff --git third_party/lss/linux_syscall_support.h third_party/lss/linux_syscall_support.h
 index e4ac22644..1c57015db 100644
---- third_party/lss/linux_syscall_support.h
-+++ third_party/lss/linux_syscall_support.h
+--- a/third_party/lss/linux_syscall_support.h
++++ b/third_party/lss/linux_syscall_support.h
 @@ -3947,7 +3947,7 @@ struct kernel_statfs {
        LSS_REG(2, buf);
        LSS_BODY(void*, mmap2, "0"(__r2));
@@ -3494,8 +3494,8 @@ index e4ac22644..1c57015db 100644
      LSS_INLINE void* LSS_NAME(mmap)(void *s, size_t l, int p, int f, int d,
 diff --git third_party/pdfium/third_party/libpng16/pngpriv.h third_party/pdfium/third_party/libpng16/pngpriv.h
 index 583c26f..e03d697 100644
---- third_party/pdfium/third_party/libpng16/pngpriv.h
-+++ third_party/pdfium/third_party/libpng16/pngpriv.h
+--- a/third_party/pdfium/third_party/libpng16/pngpriv.h
++++ b/third_party/pdfium/third_party/libpng16/pngpriv.h
 @@ -196,11 +196,7 @@
  #endif
  
@@ -3511,8 +3511,8 @@ index 583c26f..e03d697 100644
  #ifndef PNG_INTEL_SSE_OPT
 diff --git third_party/pffft/src/pffft.c third_party/pffft/src/pffft.c
 index bdac4d784..51e0f2cac 100644
---- third_party/pffft/src/pffft.c
-+++ third_party/pffft/src/pffft.c
+--- a/third_party/pffft/src/pffft.c
++++ b/third_party/pffft/src/pffft.c
 @@ -100,6 +100,7 @@
     Altivec support macros 
  */
@@ -3523,8 +3523,8 @@ index bdac4d784..51e0f2cac 100644
  #  define VZERO() ((vector float) vec_splat_u8(0))
 diff --git third_party/skia/src/sksl/SkSLString.cpp third_party/skia/src/sksl/SkSLString.cpp
 index ec3e56964..4cf8999a2 100644
---- third_party/skia/src/sksl/SkSLString.cpp
-+++ third_party/skia/src/sksl/SkSLString.cpp
+--- a/third_party/skia/src/sksl/SkSLString.cpp
++++ b/third_party/skia/src/sksl/SkSLString.cpp
 @@ -234,7 +234,12 @@ String to_string(double value) {
      if (needsDotZero) {
          buffer << ".0";
@@ -3541,8 +3541,8 @@ index ec3e56964..4cf8999a2 100644
  bool stod(const StringFragment& s, SKSL_FLOAT* value) {
 diff --git third_party/sqlite/src/amalgamation/sqlite3.c third_party/sqlite/src/amalgamation/sqlite3.c
 index 6b4a7899d..b8c7fe414 100644
---- third_party/sqlite/src/amalgamation/sqlite3.c
-+++ third_party/sqlite/src/amalgamation/sqlite3.c
+--- a/third_party/sqlite/src/amalgamation/sqlite3.c
++++ b/third_party/sqlite/src/amalgamation/sqlite3.c
 @@ -14474,7 +14474,8 @@ typedef INT16_TYPE LogEst;
  # if defined(i386)      || defined(__i386__)      || defined(_M_IX86) ||    \
       defined(__x86_64)  || defined(__x86_64__)    || defined(_M_X64)  ||    \
@@ -3555,8 +3555,8 @@ index 6b4a7899d..b8c7fe414 100644
         defined(__ARMEB__) || defined(__AARCH64EB__)
 diff --git third_party/sqlite/src/amalgamation_dev/sqlite3.c third_party/sqlite/src/amalgamation_dev/sqlite3.c
 index d30c9b7de..cf75a69d9 100644
---- third_party/sqlite/src/amalgamation_dev/sqlite3.c
-+++ third_party/sqlite/src/amalgamation_dev/sqlite3.c
+--- a/third_party/sqlite/src/amalgamation_dev/sqlite3.c
++++ b/third_party/sqlite/src/amalgamation_dev/sqlite3.c
 @@ -14487,7 +14487,8 @@ typedef INT16_TYPE LogEst;
  # if defined(i386)      || defined(__i386__)      || defined(_M_IX86) ||    \
       defined(__x86_64)  || defined(__x86_64__)    || defined(_M_X64)  ||    \
@@ -3569,8 +3569,8 @@ index d30c9b7de..cf75a69d9 100644
         defined(__ARMEB__) || defined(__AARCH64EB__)
 diff --git third_party/sqlite/src/ext/rtree/rtree.c third_party/sqlite/src/ext/rtree/rtree.c
 index f5b57a5e2..80a2d0ad8 100644
---- third_party/sqlite/src/ext/rtree/rtree.c
-+++ third_party/sqlite/src/ext/rtree/rtree.c
+--- a/third_party/sqlite/src/ext/rtree/rtree.c
++++ b/third_party/sqlite/src/ext/rtree/rtree.c
 @@ -450,7 +450,7 @@ struct RtreeMatchArg {
  #if defined(i386)     || defined(__i386__)   || defined(_M_IX86) ||    \
      defined(__x86_64) || defined(__x86_64__) || defined(_M_X64)  ||    \
@@ -3582,8 +3582,8 @@ index f5b57a5e2..80a2d0ad8 100644
  # define SQLITE_BYTEORDER    4321
 diff --git third_party/sqlite/src/src/sqliteInt.h third_party/sqlite/src/src/sqliteInt.h
 index 245070d4f..b25164e95 100644
---- third_party/sqlite/src/src/sqliteInt.h
-+++ third_party/sqlite/src/src/sqliteInt.h
+--- a/third_party/sqlite/src/src/sqliteInt.h
++++ b/third_party/sqlite/src/src/sqliteInt.h
 @@ -877,7 +877,8 @@ typedef INT16_TYPE LogEst;
  # if defined(i386)      || defined(__i386__)      || defined(_M_IX86) ||    \
       defined(__x86_64)  || defined(__x86_64__)    || defined(_M_X64)  ||    \
@@ -3596,8 +3596,8 @@ index 245070d4f..b25164e95 100644
         defined(__ARMEB__) || defined(__AARCH64EB__)
 diff --git third_party/webrtc/modules/desktop_capture/differ_block.cc third_party/webrtc/modules/desktop_capture/differ_block.cc
 index 4f0c5430c..54ee0829e 100644
---- third_party/webrtc/modules/desktop_capture/differ_block.cc
-+++ third_party/webrtc/modules/desktop_capture/differ_block.cc
+--- a/third_party/webrtc/modules/desktop_capture/differ_block.cc
++++ b/third_party/webrtc/modules/desktop_capture/differ_block.cc
 @@ -30,11 +30,7 @@ bool VectorDifference(const uint8_t* image1, const uint8_t* image2) {
    static bool (*diff_proc)(const uint8_t*, const uint8_t*) = nullptr;
  
@@ -3624,8 +3624,8 @@ index 4f0c5430c..54ee0829e 100644
  
 diff --git third_party/webrtc/rtc_base/system/arch.h third_party/webrtc/rtc_base/system/arch.h
 index be2367b85..be4ee4233 100644
---- third_party/webrtc/rtc_base/system/arch.h
-+++ third_party/webrtc/rtc_base/system/arch.h
+--- a/third_party/webrtc/rtc_base/system/arch.h
++++ b/third_party/webrtc/rtc_base/system/arch.h
 @@ -79,6 +79,18 @@
  #elif defined(__EMSCRIPTEN__)
  #define WEBRTC_ARCH_32_BITS
@@ -3647,8 +3647,8 @@ index be2367b85..be4ee4233 100644
  #endif
 diff --git v8/BUILD.gn v8/BUILD.gn
 index f39529a3a..e84fc449e 100644
---- v8/BUILD.gn
-+++ v8/BUILD.gn
+--- a/v8/BUILD.gn
++++ b/v8/BUILD.gn
 @@ -850,6 +850,12 @@ config("toolchain") {
      }
      if (host_byteorder == "little") {
@@ -3664,8 +3664,8 @@ index f39529a3a..e84fc449e 100644
        if (current_os == "aix") {
 diff --git ui/gl/features.gni ui/gl/features.gni
 index 5fda9b6..3d2dd8b 100644
---- ui/gl/features.gni
-+++ ui/gl/features.gni
+--- a/ui/gl/features.gni
++++ b/ui/gl/features.gni
 @@ -32,5 +32,6 @@ declare_args() {
                          (is_mac && use_egl) || is_chromeos_ash || is_fuchsia) &&
                         (target_cpu == "x86" || target_cpu == "x64" ||
@@ -3676,8 +3676,8 @@ index 5fda9b6..3d2dd8b 100644
  }
 diff --git v8/test/BUILD.gn v8/test/BUILD.gn
 index fb872ad39..45fc585dd 100644
---- v8/test/BUILD.gn
-+++ v8/test/BUILD.gn
+--- a/v8/test/BUILD.gn
++++ b/v8/test/BUILD.gn
 @@ -36,7 +36,7 @@ group("gn_all") {
        "benchmarks/cpp:gn_all",
        "cctest:cctest",
diff --git a/srcpkgs/chromium/patches/xxx-ppc64le-swiftshader.patch b/srcpkgs/chromium/patches/xxx-ppc64le-swiftshader.patch
index 53549d17f5ac..df453f491d8c 100644
--- a/srcpkgs/chromium/patches/xxx-ppc64le-swiftshader.patch
+++ b/srcpkgs/chromium/patches/xxx-ppc64le-swiftshader.patch
@@ -1,5 +1,5 @@
---- third_party/swiftshader/third_party/llvm-10.0/BUILD.gn
-+++ third_party/swiftshader/third_party/llvm-10.0/BUILD.gn
+--- a/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn
++++ b/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn
 @@ -574,6 +574,7 @@ swiftshader_llvm_source_set("swiftshader
      "llvm/lib/MC/MCAsmInfoCOFF.cpp",
      "llvm/lib/MC/MCAsmInfoDarwin.cpp",
diff --git a/srcpkgs/chromium/template b/srcpkgs/chromium/template
index cbc7e092ac87..2c1bb5d7a35c 100644
--- a/srcpkgs/chromium/template
+++ b/srcpkgs/chromium/template
@@ -11,7 +11,6 @@ homepage="https://www.chromium.org/"
 distfiles="https://commondatastorage.googleapis.com/chromium-browser-official/${pkgname}-${version}.tar.xz"
 checksum=45d5a43ef798d20313c78fa8a075be0c22055e39c8481eb53eabda81df901b31
 nocross=yes
-patch_args=-Np0
 
 lib32disabled=yes
 nodebug=yes
diff --git a/srcpkgs/cinnamon-session/patches/timeout.patch b/srcpkgs/cinnamon-session/patches/timeout.patch
index ed3cf6add654..2121634b6f8e 100644
--- a/srcpkgs/cinnamon-session/patches/timeout.patch
+++ b/srcpkgs/cinnamon-session/patches/timeout.patch
@@ -1,5 +1,5 @@
---- cinnamon-session/csm-session-fill.c	2012-02-02 15:33:01.000000000 +0100
-+++ cinnamon-session/csm-session-fill.c	2012-06-10 02:39:46.184348462 +0200
+--- a/cinnamon-session/csm-session-fill.c
++++ b/cinnamon-session/csm-session-fill.c
 @@ -36,7 +36,7 @@
  #define CSM_KEYFILE_DEFAULT_PROVIDER_PREFIX "DefaultProvider"
  
@@ -9,8 +9,8 @@
  
  typedef void (*GsmFillHandleProvider) (const char *provides,
                                         const char *default_provider,
---- tools/cinnamon-session-check-accelerated.c	2011-03-22 21:31:43.000000000 +0100
-+++ tools/cinnamon-session-check-accelerated.c	2012-06-10 02:42:08.013218006 +0200
+--- a/tools/cinnamon-session-check-accelerated.c
++++ b/tools/cinnamon-session-check-accelerated.c
 @@ -30,7 +30,7 @@
  #include <X11/Xatom.h>
  
diff --git a/srcpkgs/cinnamon-session/template b/srcpkgs/cinnamon-session/template
index fa112215531a..c27272b802a3 100644
--- a/srcpkgs/cinnamon-session/template
+++ b/srcpkgs/cinnamon-session/template
@@ -17,4 +17,3 @@ license="GPL-2.0-or-later, LGPL-2.0-or-later"
 homepage="https://linuxmint-developer-guide.readthedocs.io/en/latest/cinnamon.html#cinnamon-session"
 distfiles="https://github.com/linuxmint/${pkgname}/archive/${version}.tar.gz"
 checksum=66301a1eb748f646c419ced76f3388d8d6af0436716c737842cd85f359bd38d4
-patch_args=-Np0
diff --git a/srcpkgs/ck/patches/cross.patch b/srcpkgs/ck/patches/cross.patch
index c2a9c4a5287e..ebb1a430110d 100644
--- a/srcpkgs/ck/patches/cross.patch
+++ b/srcpkgs/ck/patches/cross.patch
@@ -1,5 +1,5 @@
---- configure.orig
-+++ configure
+--- a/configure.orig
++++ b/configure
 @@ -636,10 +636,11 @@
  }
  EOF
@@ -16,8 +16,8 @@
  
  if test "$r" -ne 0; then
  	assert "" "update compiler"
---- src/Makefile.in.orig
-+++ src/Makefile.in
+--- a/src/Makefile.in.orig
++++ b/src/Makefile.in
 @@ -25,7 +25,7 @@
  	$(LD) $(LDFLAGS) -o $(TARGET_DIR)/libck.so $(OBJECTS)
  
diff --git a/srcpkgs/ck/patches/ppc32.patch b/srcpkgs/ck/patches/ppc32.patch
index 48317577e690..f791f94cbf55 100644
--- a/srcpkgs/ck/patches/ppc32.patch
+++ b/srcpkgs/ck/patches/ppc32.patch
@@ -1,7 +1,7 @@
 Support Linux uname-style platform identifier for ppc32.
 
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -398,7 +398,7 @@ if test "x$PLATFORM" = "x"; then
  fi
  
diff --git a/srcpkgs/ck/template b/srcpkgs/ck/template
index 4cfe121c7fe6..f67b160c87c7 100644
--- a/srcpkgs/ck/template
+++ b/srcpkgs/ck/template
@@ -10,7 +10,6 @@ license="BSD-2-Clause"
 homepage="http://concurrencykit.org/"
 distfiles="https://github.com/concurrencykit/ck/archive/${version}.tar.gz"
 checksum=e730cb448fb0ecf9d19bf4c7efe9efc3c04dd9127311d87d8f91484742b0da24
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/ckmame/patches/gnu_source.patch b/srcpkgs/ckmame/patches/gnu_source.patch
index 45625367f998..0b2c5c24fb62 100644
--- a/srcpkgs/ckmame/patches/gnu_source.patch
+++ b/srcpkgs/ckmame/patches/gnu_source.patch
@@ -1,5 +1,5 @@
---- src/dir.c	2018-12-18 12:11:40.000000000 +0100
-+++ src/dir.c	2020-02-27 19:32:00.653813072 +0100
+--- a/src/dir.c
++++ b/src/dir.c
 @@ -31,7 +31,7 @@
    IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
@@ -9,8 +9,8 @@
  #include <errno.h>
  #include <limits.h>
  #include <stdio.h>
---- src/ckmame.c	2018-12-18 12:11:40.000000000 +0100
-+++ src/ckmame.c	2020-02-27 19:39:05.451796134 +0100
+--- a/src/ckmame.c
++++ b/src/ckmame.c
 @@ -33,6 +33,7 @@
  
  #include "config.h"
@@ -19,8 +19,8 @@
  #include <signal.h>
  #include <stdio.h>
  #include <stdlib.h>
---- src/xmalloc.c	2018-12-18 12:11:40.000000000 +0100
-+++ src/xmalloc.c	2020-02-27 19:40:48.957792007 +0100
+--- a/src/xmalloc.c
++++ b/src/xmalloc.c
 @@ -33,6 +33,7 @@
  
  #include "config.h"
diff --git a/srcpkgs/ckmame/patches/use-mkstemp.patch b/srcpkgs/ckmame/patches/use-mkstemp.patch
index cc2eacba13f2..c6739135c291 100644
--- a/srcpkgs/ckmame/patches/use-mkstemp.patch
+++ b/srcpkgs/ckmame/patches/use-mkstemp.patch
@@ -1,5 +1,5 @@
---- src/archive_dir.c	2018-12-18 12:11:40.000000000 +0100
-+++ src/archive_dir.c	2020-02-27 19:36:16.564802868 +0100
+--- a/src/archive_dir.c
++++ b/src/archive_dir.c
 @@ -307,6 +307,7 @@
  make_tmp_name(archive_t *a, const char *name) {
      size_t i, len;
diff --git a/srcpkgs/ckmame/template b/srcpkgs/ckmame/template
index 3889029f0c9f..1b88f6a965cb 100644
--- a/srcpkgs/ckmame/template
+++ b/srcpkgs/ckmame/template
@@ -14,7 +14,6 @@ license="BSD-3-clause"
 homepage="https://nih.at/ckmame/"
 distfiles="https://github.com/nih-at/ckmame/archive/rel-${version//./-}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=9fc5dcf1d2dd75351b2cdf43ce10fecda7d97c8c1a8dd0fe1f653229bb316130
-patch_args=-Np0
 
 post_install() {
 	vlicense ${wrksrc}/LICENSE
diff --git a/srcpkgs/clazy/patches/2592a6e3393ebc75e16c91e606ad2015a16295c3.patch b/srcpkgs/clazy/patches/2592a6e3393ebc75e16c91e606ad2015a16295c3.patch
index 9a91341513d1..3862f40ad981 100644
--- a/srcpkgs/clazy/patches/2592a6e3393ebc75e16c91e606ad2015a16295c3.patch
+++ b/srcpkgs/clazy/patches/2592a6e3393ebc75e16c91e606ad2015a16295c3.patch
@@ -11,8 +11,8 @@ Required due to Clang changes https://github.com/llvm/llvm-project/commit/b3eff6
 
 diff --git a/src/SourceCompatibilityHelpers.h b/src/SourceCompatibilityHelpers.h
 index 4db141ab..1737d5a5 100644
---- src/SourceCompatibilityHelpers.h
-+++ src/SourceCompatibilityHelpers.h
+--- a/src/SourceCompatibilityHelpers.h
++++ b/src/SourceCompatibilityHelpers.h
 @@ -29,6 +29,7 @@
  #include <clang/Basic/SourceLocation.h>
  #include <clang/Basic/SourceManager.h>
@@ -55,8 +55,8 @@ index 4db141ab..1737d5a5 100644
  #endif
 diff --git a/src/SuppressionManager.cpp b/src/SuppressionManager.cpp
 index 9d774ea6..9881388d 100644
---- src/SuppressionManager.cpp
-+++ src/SuppressionManager.cpp
+--- a/src/SuppressionManager.cpp
++++ b/src/SuppressionManager.cpp
 @@ -24,7 +24,6 @@
  #include "clazy_stl.h"
  
diff --git a/srcpkgs/clazy/template b/srcpkgs/clazy/template
index 92023b704232..2c958d5d481f 100644
--- a/srcpkgs/clazy/template
+++ b/srcpkgs/clazy/template
@@ -12,4 +12,3 @@ homepage="https://apps.kde.org/en/clazy"
 distfiles="${KDE_SITE}/clazy/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=4c6c2e473e6aa011cc5fab120ebcffec3fc11a9cc677e21ad8c3ea676eb076f8
 nocross="Clang cannot be installed as makedep"
-patch_args=-Np0
diff --git a/srcpkgs/clementine/patches/musl.patch b/srcpkgs/clementine/patches/musl.patch
index ad39814196e5..6f738622319e 100644
--- a/srcpkgs/clementine/patches/musl.patch
+++ b/srcpkgs/clementine/patches/musl.patch
@@ -1,7 +1,7 @@
 diff --git a/ext/libclementine-common/core/logging.cpp b/ext/libclementine-common/core/logging.cpp
 index 8012c0c..ce77c77 100644
---- ext/libclementine-common/core/logging.cpp
-+++ ext/libclementine-common/core/logging.cpp
+--- a/ext/libclementine-common/core/logging.cpp
++++ b/ext/libclementine-common/core/logging.cpp
 @@ -21,7 +21,7 @@
  #include <cxxabi.h>
  
diff --git a/srcpkgs/clementine/patches/pb_namespace.patch b/srcpkgs/clementine/patches/pb_namespace.patch
index c6f51300bf9c..3474303f1099 100644
--- a/srcpkgs/clementine/patches/pb_namespace.patch
+++ b/srcpkgs/clementine/patches/pb_namespace.patch
@@ -1,6 +1,6 @@
 diff -ur ext/clementine-spotifyblob/spotifyclient.cpp ext/clementine-spotifyblob/spotifyclient.cpp
---- ext/clementine-spotifyblob/spotifyclient.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ ext/clementine-spotifyblob/spotifyclient.cpp	2021-02-19 12:03:48.233473023 -0500
+--- a/ext/clementine-spotifyblob/spotifyclient.cpp
++++ b/ext/clementine-spotifyblob/spotifyclient.cpp
 @@ -40,7 +40,7 @@
  const int SpotifyClient::kWaveHeaderSize = 44;
  
@@ -420,8 +420,8 @@ diff -ur ext/clementine-spotifyblob/spotifyclient.cpp ext/clementine-spotifyblob
    qApp->exit();
  }
 diff -ur ext/clementine-spotifyblob/spotifyclient.h ext/clementine-spotifyblob/spotifyclient.h
---- ext/clementine-spotifyblob/spotifyclient.h	2020-09-23 22:34:08.000000000 -0400
-+++ ext/clementine-spotifyblob/spotifyclient.h	2021-02-19 12:03:48.233473023 -0500
+--- a/ext/clementine-spotifyblob/spotifyclient.h
++++ b/ext/clementine-spotifyblob/spotifyclient.h
 @@ -35,7 +35,7 @@
  class MediaPipeline;
  class ResponseMessage;
@@ -528,8 +528,8 @@ diff -ur ext/clementine-spotifyblob/spotifyclient.h ext/clementine-spotifyblob/s
  
    QMap<sp_search*, QList<sp_albumbrowse*>> pending_search_album_browses_;
 diff -ur ext/clementine-tagreader/tagreaderworker.cpp ext/clementine-tagreader/tagreaderworker.cpp
---- ext/clementine-tagreader/tagreaderworker.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ ext/clementine-tagreader/tagreaderworker.cpp	2021-02-19 12:03:48.234473027 -0500
+--- a/ext/clementine-tagreader/tagreaderworker.cpp
++++ b/ext/clementine-tagreader/tagreaderworker.cpp
 @@ -25,10 +25,10 @@
  #include <QUrl>
  
@@ -563,8 +563,8 @@ diff -ur ext/clementine-tagreader/tagreaderworker.cpp ext/clementine-tagreader/t
    qApp->exit();
  }
 diff -ur ext/clementine-tagreader/tagreaderworker.h ext/clementine-tagreader/tagreaderworker.h
---- ext/clementine-tagreader/tagreaderworker.h	2020-09-23 22:34:08.000000000 -0400
-+++ ext/clementine-tagreader/tagreaderworker.h	2021-02-19 12:03:48.234473027 -0500
+--- a/ext/clementine-tagreader/tagreaderworker.h
++++ b/ext/clementine-tagreader/tagreaderworker.h
 @@ -23,12 +23,12 @@
  #include "tagreadermessages.pb.h"
  #include "core/messagehandler.h"
@@ -581,8 +581,8 @@ diff -ur ext/clementine-tagreader/tagreaderworker.h ext/clementine-tagreader/tag
  
   private:
 diff -ur ext/libclementine-remote/remotecontrolmessages.proto ext/libclementine-remote/remotecontrolmessages.proto
---- ext/libclementine-remote/remotecontrolmessages.proto	2020-09-23 22:34:08.000000000 -0400
-+++ ext/libclementine-remote/remotecontrolmessages.proto	2021-02-19 12:03:48.234473027 -0500
+--- a/ext/libclementine-remote/remotecontrolmessages.proto
++++ b/ext/libclementine-remote/remotecontrolmessages.proto
 @@ -20,7 +20,7 @@
  
  syntax = "proto2";
@@ -593,8 +593,8 @@ diff -ur ext/libclementine-remote/remotecontrolmessages.proto ext/libclementine-
  // The supported message types
  enum MsgType {
 diff -ur ext/libclementine-spotifyblob/spotifymessages.proto ext/libclementine-spotifyblob/spotifymessages.proto
---- ext/libclementine-spotifyblob/spotifymessages.proto	2020-09-23 22:34:08.000000000 -0400
-+++ ext/libclementine-spotifyblob/spotifymessages.proto	2021-02-19 12:03:48.234473027 -0500
+--- a/ext/libclementine-spotifyblob/spotifymessages.proto
++++ b/ext/libclementine-spotifyblob/spotifymessages.proto
 @@ -20,7 +20,7 @@
  
  syntax = "proto2";
@@ -605,8 +605,8 @@ diff -ur ext/libclementine-spotifyblob/spotifymessages.proto ext/libclementine-s
  message LoginRequest {
    required string username = 1;
 diff -ur ext/libclementine-tagreader/gmereader.cpp ext/libclementine-tagreader/gmereader.cpp
---- ext/libclementine-tagreader/gmereader.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ ext/libclementine-tagreader/gmereader.cpp	2021-02-19 12:03:48.234473027 -0500
+--- a/ext/libclementine-tagreader/gmereader.cpp
++++ b/ext/libclementine-tagreader/gmereader.cpp
 @@ -20,7 +20,7 @@
  }
  
@@ -653,8 +653,8 @@ diff -ur ext/libclementine-tagreader/gmereader.cpp ext/libclementine-tagreader/g
  
  bool GME::VGM::GetPlaybackLength(const QByteArray& sample_count_bytes,
 diff -ur ext/libclementine-tagreader/gmereader.h ext/libclementine-tagreader/gmereader.h
---- ext/libclementine-tagreader/gmereader.h	2020-09-23 22:34:08.000000000 -0400
-+++ ext/libclementine-tagreader/gmereader.h	2021-02-19 12:03:48.235473030 -0500
+--- a/ext/libclementine-tagreader/gmereader.h
++++ b/ext/libclementine-tagreader/gmereader.h
 @@ -10,7 +10,7 @@
  namespace GME {
  bool IsSupportedFormat(const QFileInfo& file_info);
@@ -683,8 +683,8 @@ diff -ur ext/libclementine-tagreader/gmereader.h ext/libclementine-tagreader/gme
   * is returned via output parameter out_length. Returns false on error. */
  bool GetPlaybackLength(const QByteArray& sample_count_bytes,
 diff -ur ext/libclementine-tagreader/tagreader.cpp ext/libclementine-tagreader/tagreader.cpp
---- ext/libclementine-tagreader/tagreader.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ ext/libclementine-tagreader/tagreader.cpp	2021-02-19 12:03:48.235473030 -0500
+--- a/ext/libclementine-tagreader/tagreader.cpp
++++ b/ext/libclementine-tagreader/tagreader.cpp
 @@ -143,7 +143,7 @@
  
  }  // namespace
@@ -858,8 +858,8 @@ diff -ur ext/libclementine-tagreader/tagreader.cpp ext/libclementine-tagreader/t
      if (tag->audioProperties()) {
        song->set_length_nanosec(tag->audioProperties()->length() * kNsecPerSec);
 diff -ur ext/libclementine-tagreader/tagreader.h ext/libclementine-tagreader/tagreader.h
---- ext/libclementine-tagreader/tagreader.h	2020-09-23 22:34:08.000000000 -0400
-+++ ext/libclementine-tagreader/tagreader.h	2021-02-19 12:03:48.235473030 -0500
+--- a/ext/libclementine-tagreader/tagreader.h
++++ b/ext/libclementine-tagreader/tagreader.h
 @@ -57,16 +57,16 @@
    TagReader();
  
@@ -923,8 +923,8 @@ diff -ur ext/libclementine-tagreader/tagreader.h ext/libclementine-tagreader/tag
  
    void SetUserTextFrame(const QString& description, const QString& value,
 diff -ur ext/libclementine-tagreader/tagreadermessages.proto ext/libclementine-tagreader/tagreadermessages.proto
---- ext/libclementine-tagreader/tagreadermessages.proto	2020-09-23 22:34:08.000000000 -0400
-+++ ext/libclementine-tagreader/tagreadermessages.proto	2021-02-19 12:03:48.235473030 -0500
+--- a/ext/libclementine-tagreader/tagreadermessages.proto
++++ b/ext/libclementine-tagreader/tagreadermessages.proto
 @@ -1,6 +1,6 @@
  syntax = "proto2";
  
@@ -934,8 +934,8 @@ diff -ur ext/libclementine-tagreader/tagreadermessages.proto ext/libclementine-t
  message SongMetadata {
    enum Type {
 diff -ur src/core/song.cpp src/core/song.cpp
---- src/core/song.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ src/core/song.cpp	2021-02-19 12:03:48.236473033 -0500
+--- a/src/core/song.cpp
++++ b/src/core/song.cpp
 @@ -526,7 +526,7 @@
    return codec->toUnicode(tag.toUtf8());
  }
@@ -964,8 +964,8 @@ diff -ur src/core/song.cpp src/core/song.cpp
  
  void Song::InitFromQuery(const SqlRow& q, bool reliable_metadata, int col) {
 diff -ur src/core/song.h src/core/song.h
---- src/core/song.h	2020-09-23 22:34:08.000000000 -0400
-+++ src/core/song.h	2021-02-19 12:04:03.092521906 -0500
+--- a/src/core/song.h
++++ b/src/core/song.h
 @@ -37,11 +37,11 @@
  #include "config.h"
  #include "engines/engine_fwd.h"
@@ -999,8 +999,8 @@ diff -ur src/core/song.h src/core/song.h
    // Simple accessors
    bool is_valid() const;
 diff -ur src/core/tagreaderclient.cpp src/core/tagreaderclient.cpp
---- src/core/tagreaderclient.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ src/core/tagreaderclient.cpp	2021-02-19 12:03:48.236473033 -0500
+--- a/src/core/tagreaderclient.cpp
++++ b/src/core/tagreaderclient.cpp
 @@ -58,8 +58,8 @@
  }
  
@@ -1079,8 +1079,8 @@ diff -ur src/core/tagreaderclient.cpp src/core/tagreaderclient.cpp
  
    const QString url_string = download_url.toEncoded();
 diff -ur src/core/tagreaderclient.h src/core/tagreaderclient.h
---- src/core/tagreaderclient.h	2020-09-23 22:34:08.000000000 -0400
-+++ src/core/tagreaderclient.h	2021-02-19 12:03:48.236473033 -0500
+--- a/src/core/tagreaderclient.h
++++ b/src/core/tagreaderclient.h
 @@ -37,7 +37,7 @@
   public:
    explicit TagReaderClient(QObject* parent = nullptr);
@@ -1100,8 +1100,8 @@ diff -ur src/core/tagreaderclient.h src/core/tagreaderclient.h
  
  typedef TagReaderClient::ReplyType TagReaderReply;
 diff -ur src/globalsearch/spotifysearchprovider.cpp src/globalsearch/spotifysearchprovider.cpp
---- src/globalsearch/spotifysearchprovider.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ src/globalsearch/spotifysearchprovider.cpp	2021-02-19 12:03:48.236473033 -0500
+--- a/src/globalsearch/spotifysearchprovider.cpp
++++ b/src/globalsearch/spotifysearchprovider.cpp
 @@ -49,16 +49,16 @@
    if (!service_->IsBlobInstalled()) return nullptr;
  
@@ -1188,8 +1188,8 @@ diff -ur src/globalsearch/spotifysearchprovider.cpp src/globalsearch/spotifysear
      AddSuggestionFromTrack(response.track(i));
    }
 diff -ur src/globalsearch/spotifysearchprovider.h src/globalsearch/spotifysearchprovider.h
---- src/globalsearch/spotifysearchprovider.h	2020-09-23 22:34:08.000000000 -0400
-+++ src/globalsearch/spotifysearchprovider.h	2021-02-19 12:03:48.237473037 -0500
+--- a/src/globalsearch/spotifysearchprovider.h
++++ b/src/globalsearch/spotifysearchprovider.h
 @@ -41,17 +41,17 @@
  
   private slots:
@@ -1214,8 +1214,8 @@ diff -ur src/globalsearch/spotifysearchprovider.h src/globalsearch/spotifysearch
   private:
    SpotifyServer* server_;
 diff -ur src/internet/core/cloudfileservice.cpp src/internet/core/cloudfileservice.cpp
---- src/internet/core/cloudfileservice.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ src/internet/core/cloudfileservice.cpp	2021-02-19 12:03:48.237473037 -0500
+--- a/src/internet/core/cloudfileservice.cpp
++++ b/src/internet/core/cloudfileservice.cpp
 @@ -192,14 +192,14 @@
                                     indexing_task_max_);
    }
@@ -1234,8 +1234,8 @@ diff -ur src/internet/core/cloudfileservice.cpp src/internet/core/cloudfileservi
    metadata_pb.MergeFrom(message.metadata());
  
 diff -ur src/internet/spotify/spotifyserver.cpp src/internet/spotify/spotifyserver.cpp
---- src/internet/spotify/spotifyserver.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ src/internet/spotify/spotifyserver.cpp	2021-02-19 12:03:48.237473037 -0500
+--- a/src/internet/spotify/spotifyserver.cpp
++++ b/src/internet/spotify/spotifyserver.cpp
 @@ -31,7 +31,7 @@
  #include "spotifymessages.pb.h"
  
@@ -1535,8 +1535,8 @@ diff -ur src/internet/spotify/spotifyserver.cpp src/internet/spotify/spotifyserv
    SendOrQueueMessage(message);
  }
 diff -ur src/internet/spotify/spotifyserver.h src/internet/spotify/spotifyserver.h
---- src/internet/spotify/spotifyserver.h	2020-09-23 22:34:08.000000000 -0400
-+++ src/internet/spotify/spotifyserver.h	2021-02-19 12:03:48.237473037 -0500
+--- a/src/internet/spotify/spotifyserver.h
++++ b/src/internet/spotify/spotifyserver.h
 @@ -31,7 +31,7 @@
  class QTcpServer;
  class QTcpSocket;
@@ -1626,8 +1626,8 @@ diff -ur src/internet/spotify/spotifyserver.h src/internet/spotify/spotifyserver
  
  #endif  // INTERNET_SPOTIFY_SPOTIFYSERVER_H_
 diff -ur src/internet/spotify/spotifyservice.cpp src/internet/spotify/spotifyservice.cpp
---- src/internet/spotify/spotifyservice.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ src/internet/spotify/spotifyservice.cpp	2021-02-19 12:03:48.238473040 -0500
+--- a/src/internet/spotify/spotifyservice.cpp
++++ b/src/internet/spotify/spotifyservice.cpp
 @@ -85,7 +85,7 @@
        search_box_(new SearchBoxWidget(this)),
        search_delay_(new QTimer(this)),
@@ -1860,8 +1860,8 @@ diff -ur src/internet/spotify/spotifyservice.cpp src/internet/spotify/spotifyser
      }
    }
 diff -ur src/internet/spotify/spotifyservice.h src/internet/spotify/spotifyservice.h
---- src/internet/spotify/spotifyservice.h	2020-09-23 22:34:08.000000000 -0400
-+++ src/internet/spotify/spotifyservice.h	2021-02-19 12:03:48.238473040 -0500
+--- a/src/internet/spotify/spotifyservice.h
++++ b/src/internet/spotify/spotifyservice.h
 @@ -93,7 +93,7 @@
    LoginState login_state() const { return login_state_; }
    bool IsLoggedIn() const { return login_state_ == LoginState_LoggedIn; }
@@ -1929,8 +1929,8 @@ diff -ur src/internet/spotify/spotifyservice.h src/internet/spotify/spotifyservi
  };
  
 diff -ur src/internet/spotify/spotifysettingspage.cpp src/internet/spotify/spotifysettingspage.cpp
---- src/internet/spotify/spotifysettingspage.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ src/internet/spotify/spotifysettingspage.cpp	2021-02-19 12:03:48.238473040 -0500
+--- a/src/internet/spotify/spotifysettingspage.cpp
++++ b/src/internet/spotify/spotifysettingspage.cpp
 @@ -59,9 +59,9 @@
    ui_->login_state->AddCredentialField(ui_->password);
    ui_->login_state->AddCredentialGroup(ui_->account_group);
@@ -1954,8 +1954,8 @@ diff -ur src/internet/spotify/spotifysettingspage.cpp src/internet/spotify/spoti
        s.value("volume_normalisation", false).toBool());
  
 diff -ur src/main.cpp src/main.cpp
---- src/main.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ src/main.cpp	2021-02-19 12:03:48.238473040 -0500
+--- a/src/main.cpp
++++ b/src/main.cpp
 @@ -191,7 +191,7 @@
        "304c6f756e67652e6d786dba012a28414c42554d2920476f74616e2050726f6a65637"
        "4202d20416d6269656e74204c6f756e67652e6d786dc001c7a7efd104c801bad685e4"
@@ -1966,8 +1966,8 @@ diff -ur src/main.cpp src/main.cpp
  }
  
 diff -ur src/networkremote/incomingdataparser.cpp src/networkremote/incomingdataparser.cpp
---- src/networkremote/incomingdataparser.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ src/networkremote/incomingdataparser.cpp	2021-02-19 12:03:48.239473043 -0500
+--- a/src/networkremote/incomingdataparser.cpp
++++ b/src/networkremote/incomingdataparser.cpp
 @@ -97,99 +97,99 @@
  
  bool IncomingDataParser::close_connection() { return close_connection_; }
@@ -2237,8 +2237,8 @@ diff -ur src/networkremote/incomingdataparser.cpp src/networkremote/incomingdata
    song.Init(QStringFromStdString(pb.title()), QStringFromStdString(pb.artist()),
              QStringFromStdString(pb.album()), pb.length() * kNsecPerSec);
 diff -ur src/networkremote/incomingdataparser.h src/networkremote/incomingdataparser.h
---- src/networkremote/incomingdataparser.h	2020-09-23 22:34:08.000000000 -0400
-+++ src/networkremote/incomingdataparser.h	2021-02-19 12:03:48.239473043 -0500
+--- a/src/networkremote/incomingdataparser.h
++++ b/src/networkremote/incomingdataparser.h
 @@ -16,7 +16,7 @@
    bool close_connection();
  
@@ -2283,8 +2283,8 @@ diff -ur src/networkremote/incomingdataparser.h src/networkremote/incomingdatapa
  
  #endif  // INCOMINGDATAPARSER_H
 diff -ur src/networkremote/networkremote.cpp src/networkremote/networkremote.cpp
---- src/networkremote/networkremote.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ src/networkremote/networkremote.cpp	2021-02-19 12:03:48.239473043 -0500
+--- a/src/networkremote/networkremote.cpp
++++ b/src/networkremote/networkremote.cpp
 @@ -214,8 +214,8 @@
      clients_.push_back(client);
  
@@ -2297,8 +2297,8 @@ diff -ur src/networkremote/networkremote.cpp src/networkremote/networkremote.cpp
  }
  
 diff -ur src/networkremote/outgoingdatacreator.cpp src/networkremote/outgoingdatacreator.cpp
---- src/networkremote/outgoingdatacreator.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ src/networkremote/outgoingdatacreator.cpp	2021-02-19 12:03:48.239473043 -0500
+--- a/src/networkremote/outgoingdatacreator.cpp
++++ b/src/networkremote/outgoingdatacreator.cpp
 @@ -144,7 +144,7 @@
    return nullptr;
  }
@@ -2711,8 +2711,8 @@ diff -ur src/networkremote/outgoingdatacreator.cpp src/networkremote/outgoingdat
    req.client_->SendData(&msg);
  
 diff -ur src/networkremote/outgoingdatacreator.h src/networkremote/outgoingdatacreator.h
---- src/networkremote/outgoingdatacreator.h	2020-09-23 22:34:08.000000000 -0400
-+++ src/networkremote/outgoingdatacreator.h	2021-02-19 12:03:48.239473043 -0500
+--- a/src/networkremote/outgoingdatacreator.h
++++ b/src/networkremote/outgoingdatacreator.h
 @@ -49,7 +49,7 @@
    void SetClients(QList<RemoteClient*>* clients);
  
@@ -2734,8 +2734,8 @@ diff -ur src/networkremote/outgoingdatacreator.h src/networkremote/outgoingdatac
    SongInfoProvider* ProviderByName(const QString& name) const;
  };
 diff -ur src/networkremote/remoteclient.cpp src/networkremote/remoteclient.cpp
---- src/networkremote/remoteclient.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ src/networkremote/remoteclient.cpp	2021-02-19 12:03:48.240473046 -0500
+--- a/src/networkremote/remoteclient.cpp
++++ b/src/networkremote/remoteclient.cpp
 @@ -103,33 +103,33 @@
  }
  
@@ -2818,8 +2818,8 @@ diff -ur src/networkremote/remoteclient.cpp src/networkremote/remoteclient.cpp
    if (authenticated_) {
      SendDataToClient(msg);
 diff -ur src/networkremote/remoteclient.h src/networkremote/remoteclient.h
---- src/networkremote/remoteclient.h	2020-09-23 22:34:08.000000000 -0400
-+++ src/networkremote/remoteclient.h	2021-02-19 12:03:48.240473046 -0500
+--- a/src/networkremote/remoteclient.h
++++ b/src/networkremote/remoteclient.h
 @@ -16,11 +16,11 @@
    ~RemoteClient();
  
@@ -2851,8 +2851,8 @@ diff -ur src/networkremote/remoteclient.h src/networkremote/remoteclient.h
    Application* app_;
  
 diff -ur src/networkremote/songsender.cpp src/networkremote/songsender.cpp
---- src/networkremote/songsender.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ src/networkremote/songsender.cpp	2021-02-19 12:03:48.240473046 -0500
+--- a/src/networkremote/songsender.cpp
++++ b/src/networkremote/songsender.cpp
 @@ -67,29 +67,29 @@
    transcoder_->Cancel();
  }
@@ -2970,8 +2970,8 @@ diff -ur src/networkremote/songsender.cpp src/networkremote/songsender.cpp
  
    // First gather all valid songs
 diff -ur src/networkremote/songsender.h src/networkremote/songsender.h
---- src/networkremote/songsender.h	2020-09-23 22:34:08.000000000 -0400
-+++ src/networkremote/songsender.h	2021-02-19 12:03:48.240473046 -0500
+--- a/src/networkremote/songsender.h
++++ b/src/networkremote/songsender.h
 @@ -30,7 +30,7 @@
    static const quint32 kFileChunkSize;
  
@@ -2991,8 +2991,8 @@ diff -ur src/networkremote/songsender.h src/networkremote/songsender.h
    void SendTotalFileSize();
    void TranscodeLosslessFiles();
 diff -ur tests/song_test.cpp tests/song_test.cpp
---- tests/song_test.cpp	2020-09-23 22:34:08.000000000 -0400
-+++ tests/song_test.cpp	2021-02-19 12:03:48.240473046 -0500
+--- a/tests/song_test.cpp
++++ b/tests/song_test.cpp
 @@ -45,7 +45,7 @@
    static Song ReadSongFromFile(const QString& filename) {
      TagReader tag_reader;
diff --git a/srcpkgs/clementine/template b/srcpkgs/clementine/template
index c150fcf650fc..40a6ac8c70a1 100644
--- a/srcpkgs/clementine/template
+++ b/srcpkgs/clementine/template
@@ -22,7 +22,6 @@ homepage="https://www.clementine-player.org/"
 distfiles="https://github.com/clementine-player/Clementine/releases/download/${_fullver}/${pkgname}-${_fullver}.tar.xz"
 checksum=e1fa2482b81336282a36a5451a0217c274e5b45aa3eeed83fe3fd29a5df59397
 build_options="spotify"
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64 | i686 | armv7l)
diff --git a/srcpkgs/cli-visualizer/patches/use-system-opt.patch b/srcpkgs/cli-visualizer/patches/use-system-opt.patch
index 7819bdd6131e..6178dbc0371c 100644
--- a/srcpkgs/cli-visualizer/patches/use-system-opt.patch
+++ b/srcpkgs/cli-visualizer/patches/use-system-opt.patch
@@ -1,8 +1,8 @@
 Don't let the buildsystem mess with optimization and debug flags and set stuff
 like -march=native which is not generic (and is very arch specific).
 
---- CMakeLists.txt
-+++ CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
 @@ -22,17 +22,13 @@ endif()
  set(PROJECT_VERSION ${vis_version})
  project(${PROJECT_NAME} VERSION ${vis_version} LANGUAGES CXX C)
diff --git a/srcpkgs/cli-visualizer/template b/srcpkgs/cli-visualizer/template
index d95ce4d4b367..e758562274e3 100644
--- a/srcpkgs/cli-visualizer/template
+++ b/srcpkgs/cli-visualizer/template
@@ -13,7 +13,6 @@ distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=927e4c18403c7a40397e8698ffefd1b37250be20fa0ec55fda9a82cf9cc8ba51
 build_options="pulseaudio"
 build_options_default="pulseaudio"
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/clib/patches/destdir.patch b/srcpkgs/clib/patches/destdir.patch
index 32664b748920..53629dc9d93d 100644
--- a/srcpkgs/clib/patches/destdir.patch
+++ b/srcpkgs/clib/patches/destdir.patch
@@ -1,5 +1,5 @@
---- Makefile.bck	2018-06-12 23:21:49.258145269 -0400
-+++ Makefile	2018-06-12 23:22:23.446097218 -0400
+--- a/Makefile.bck
++++ b/Makefile
 @@ -1,5 +1,6 @@
 -CC     ?= cc
 -PREFIX ?= /usr/local
diff --git a/srcpkgs/clib/template b/srcpkgs/clib/template
index f4802d32a731..6e3bf69b149d 100644
--- a/srcpkgs/clib/template
+++ b/srcpkgs/clib/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="https://github.com/clibs/clib"
 distfiles="https://github.com/clibs/clib/archive/${version}.tar.gz"
 checksum=74643374883651a272ed8ac8e8a6789c0b4a4b13e20a9d45798fd770821e620d
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/clisp/patches/no-page.h.patch b/srcpkgs/clisp/patches/no-page.h.patch
index df602bcb5b72..aafb98a31e7c 100644
--- a/srcpkgs/clisp/patches/no-page.h.patch
+++ b/srcpkgs/clisp/patches/no-page.h.patch
@@ -1,5 +1,5 @@
---- ./src/unix.d
-+++ ./src/unix.d
+--- a/src/unix.d
++++ b/src/unix.d
 @@ -135,9 +135,6 @@
    #ifdef UNIX_AUX
      #include <sys/mmu.h> /* for SHMLBA */
diff --git a/srcpkgs/clisp/patches/readline-7.patch b/srcpkgs/clisp/patches/readline-7.patch
index 939342c6f4fb..0965b2836359 100644
--- a/srcpkgs/clisp/patches/readline-7.patch
+++ b/srcpkgs/clisp/patches/readline-7.patch
@@ -1,5 +1,5 @@
---- modules/readline/readline.lisp.orig	2016-09-20 22:23:51.876046496 +0200
-+++ modules/readline/readline.lisp	2016-09-20 22:24:11.070047486 +0200
+--- a/modules/readline/readline.lisp
++++ b/modules/readline/readline.lisp
 @@ -424,7 +424,7 @@
     "The version of this incarnation of the readline library, e.g., 0x0402."))
  (def-c-var gnu-readline-p (:name "rl_gnu_readline_p") (:type int)
diff --git a/srcpkgs/clisp/template b/srcpkgs/clisp/template
index f062b8a1244b..ee0941a3d581 100644
--- a/srcpkgs/clisp/template
+++ b/srcpkgs/clisp/template
@@ -21,7 +21,6 @@ lib32disabled=yes
 disable_parallel_build=yes
 build_options="readline"
 build_options_default="readline"
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686-musl) broken="*** - MULTIPLE-VALUE-SETQ: variable EXTRA-FILE-TYPES has no value";;
diff --git a/srcpkgs/cln/patches/musl.patch b/srcpkgs/cln/patches/musl.patch
index 12b8fe62f305..0776dabc5af3 100644
--- a/srcpkgs/cln/patches/musl.patch
+++ b/srcpkgs/cln/patches/musl.patch
@@ -1,5 +1,5 @@
---- src/timing/cl_t_current2.cc.orig	2009-05-10 22:32:32.000000000 +0200
-+++ src/timing/cl_t_current2.cc	2017-06-07 15:14:54.972741636 +0200
+--- a/src/timing/cl_t_current2.cc
++++ b/src/timing/cl_t_current2.cc
 @@ -20,6 +20,7 @@
    #include <sys/types.h>
    #include <sys/param.h> // defines HZ, unit for times() is 1/HZ seconds
diff --git a/srcpkgs/cln/patches/unused.patch b/srcpkgs/cln/patches/unused.patch
index e9c70de7b893..6d9dbcb4bf07 100644
--- a/srcpkgs/cln/patches/unused.patch
+++ b/srcpkgs/cln/patches/unused.patch
@@ -1,5 +1,5 @@
---- src/base/cl_macros.h.orig	2014-07-30 15:19:17.474034947 +0200
-+++ src/base/cl_macros.h	2014-07-30 15:19:28.210034058 +0200
+--- a/src/base/cl_macros.h
++++ b/src/base/cl_macros.h
 @@ -66,11 +66,7 @@
  
  // Ignore a value (instead of assigning it to a variable).
diff --git a/srcpkgs/cln/template b/srcpkgs/cln/template
index 173890a0b830..fc771b0f9adf 100644
--- a/srcpkgs/cln/template
+++ b/srcpkgs/cln/template
@@ -10,7 +10,6 @@ license="GPL-2.0-only"
 homepage="https://www.ginac.de/CLN/"
 distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
 checksum=f492530e8879bda529009b6033e1923c8f4aae843149fc28c667c20b094d984a
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 arm*|aarch64*) CPPFLAGS="-DNO_ASM";;
diff --git a/srcpkgs/clog/patches/musl-limits_h.patch b/srcpkgs/clog/patches/musl-limits_h.patch
index 77930bbfc375..e9cb12760e67 100644
--- a/srcpkgs/clog/patches/musl-limits_h.patch
+++ b/srcpkgs/clog/patches/musl-limits_h.patch
@@ -1,5 +1,5 @@
---- src/libshared/src/FS.cpp
-+++ src/libshared/src/FS.cpp
+--- a/src/libshared/src/FS.cpp
++++ b/src/libshared/src/FS.cpp
 @@ -41,7 +41,7 @@
  #include <shared.h>
  #include <format.h>
diff --git a/srcpkgs/clog/template b/srcpkgs/clog/template
index 2195202ec954..b255ad949bc7 100644
--- a/srcpkgs/clog/template
+++ b/srcpkgs/clog/template
@@ -9,7 +9,6 @@ license="MIT"
 homepage="https://taskwarrior.org/docs/clog/"
 distfiles="http://gothenburgbitfactory.org/download/clog-${version}.tar.gz"
 checksum=fed44a8d398790ab0cf426c1b006e7246e20f3fcd56c0ec4132d24b05d5d2018
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/cloog/patches/install-fix.patch b/srcpkgs/cloog/patches/install-fix.patch
index 3d08bda24a30..21ffbbcec3d6 100644
--- a/srcpkgs/cloog/patches/install-fix.patch
+++ b/srcpkgs/cloog/patches/install-fix.patch
@@ -1,5 +1,5 @@
---- Makefile.in.orig	2014-09-08 11:00:35.966486373 +0200
-+++ Makefile.in	2014-09-08 11:00:45.406523577 +0200
+--- a/Makefile.in
++++ b/Makefile.in
 @@ -1341,10 +1341,6 @@ version.h: @GIT_INDEX@
  install-data-local:
  	@test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
diff --git a/srcpkgs/cloog/template b/srcpkgs/cloog/template
index d65b97fcf48b..18a84032fdd4 100644
--- a/srcpkgs/cloog/template
+++ b/srcpkgs/cloog/template
@@ -12,7 +12,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.bastoul.net/cloog/"
 distfiles="https://github.com/periscop/cloog/releases/download/cloog-${version}/cloog-${version}.tar.gz"
 checksum=835c49951ff57be71dcceb6234d19d2cc22a3a5df84aea0a9d9760d92166fc72
-patch_args=-Np0
 
 cloog-devel_package() {
 	depends="${makedepends} cloog>=${version}_${revision}"
diff --git a/srcpkgs/clucene/patches/clucene-core-2.3.3.4-install_contribs_lib.patch b/srcpkgs/clucene/patches/clucene-core-2.3.3.4-install_contribs_lib.patch
index 082f76ebf980..e44dde46053c 100644
--- a/srcpkgs/clucene/patches/clucene-core-2.3.3.4-install_contribs_lib.patch
+++ b/srcpkgs/clucene/patches/clucene-core-2.3.3.4-install_contribs_lib.patch
@@ -1,5 +1,5 @@
---- CMakeLists.txt	2011-03-17 03:21:07.000000000 +0300
-+++ CMakeLists.txt	2011-08-16 16:56:55.968268152 +0400
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
 @@ -163,7 +163,7 @@ IF ( BUILD_CONTRIBS )
    SET(BUILD_CONTRIBS_LIB 1)
  ENDIF ( BUILD_CONTRIBS )
@@ -9,8 +9,8 @@
  ENDIF ( BUILD_CONTRIBS_LIB )
  
  
---- src/contribs-lib/CMakeLists.txt	2011-03-17 03:21:07.000000000 +0300
-+++ src/contribs-lib/CMakeLists.txt	2011-08-16 17:14:13.499275499 +0400
+--- a/src/contribs-lib/CMakeLists.txt
++++ b/src/contribs-lib/CMakeLists.txt
 @@ -106,9 +106,26 @@ add_library(clucene-contribs-lib SHARED
  )
  TARGET_LINK_LIBRARIES(clucene-contribs-lib ${clucene_contrib_extra_libs})
diff --git a/srcpkgs/clucene/patches/clucene-core-2.3.3.4-pkgconfig.patch b/srcpkgs/clucene/patches/clucene-core-2.3.3.4-pkgconfig.patch
index 141ef83fb693..ebab48ab7a21 100644
--- a/srcpkgs/clucene/patches/clucene-core-2.3.3.4-pkgconfig.patch
+++ b/srcpkgs/clucene/patches/clucene-core-2.3.3.4-pkgconfig.patch
@@ -1,5 +1,5 @@
---- src/core/libclucene-core.pc.cmake.pkgconfig_sys_includes	2011-03-16 19:21:07.000000000 -0500
-+++ src/core/libclucene-core.pc.cmake	2012-03-19 09:01:00.689263954 -0500
+--- a/src/core/libclucene-core.pc.cmake.pkgconfig_sys_includes
++++ b/src/core/libclucene-core.pc.cmake
 @@ -6,6 +6,6 @@ includedir=${prefix}/include:${prefix}/i
  Name: libclucene
  Description: CLucene - a C++ search engine, ported from the popular Apache Lucene
diff --git a/srcpkgs/clucene/patches/clucene-debug.patch b/srcpkgs/clucene/patches/clucene-debug.patch
index 640454e2fb2d..46301179345e 100644
--- a/srcpkgs/clucene/patches/clucene-debug.patch
+++ b/srcpkgs/clucene/patches/clucene-debug.patch
@@ -1,5 +1,5 @@
---- src/core/CLucene/index/TermInfosReader.cpp
-+++ src/core/CLucene/index/TermInfosReader.cpp
+--- a/src/core/CLucene/index/TermInfosReader.cpp
++++ b/src/core/CLucene/index/TermInfosReader.cpp
 @@ -111,7 +111,7 @@
  	      //destroy their elements
  #ifdef _DEBUG
diff --git a/srcpkgs/clucene/patches/clucene-gcc-atomics.patch b/srcpkgs/clucene/patches/clucene-gcc-atomics.patch
index 819e9a7d7a3e..bb69cfa6f795 100644
--- a/srcpkgs/clucene/patches/clucene-gcc-atomics.patch
+++ b/srcpkgs/clucene/patches/clucene-gcc-atomics.patch
@@ -1,5 +1,5 @@
---- src/shared/CLucene/config/threads.cpp	2012-02-23 12:06:55.355506304 +0000
-+++ src/shared/CLucene/config/threads.cpp	2012-02-23 12:07:17.131766381 +0000
+--- a/src/shared/CLucene/config/threads.cpp
++++ b/src/shared/CLucene/config/threads.cpp
 @@ -185,7 +185,7 @@
      }
        
@@ -18,8 +18,8 @@
          return __sync_sub_and_fetch(theInteger, 1);
        #else
          SCOPED_LOCK_MUTEX(theInteger->THIS_LOCK)
---- src/shared/CLucene/LuceneThreads.h	2012-02-23 12:36:28.388299322 +0000
-+++ src/shared/CLucene/LuceneThreads.h	2012-02-23 12:37:23.131885433 +0000
+--- a/src/shared/CLucene/LuceneThreads.h
++++ b/src/shared/CLucene/LuceneThreads.h
 @@ -70,7 +70,7 @@
          		void NotifyAll();
  					};
diff --git a/srcpkgs/clucene/patches/clucene-multimap-put.patch b/srcpkgs/clucene/patches/clucene-multimap-put.patch
index 36ed1fe22b49..158de4decc29 100644
--- a/srcpkgs/clucene/patches/clucene-multimap-put.patch
+++ b/srcpkgs/clucene/patches/clucene-multimap-put.patch
@@ -1,5 +1,5 @@
---- src/core/CLucene/util/VoidMap.h
-+++ src/core/CLucene/util/VoidMap.h
+--- a/src/core/CLucene/util/VoidMap.h
++++ b/src/core/CLucene/util/VoidMap.h
 @@ -316,6 +316,7 @@ public:
  		if ( _this::dk || _this::dv )
  			_this::remove(k);
diff --git a/srcpkgs/clucene/patches/clucene-narrowing-conversions.patch b/srcpkgs/clucene/patches/clucene-narrowing-conversions.patch
index f0e971c55dd9..6ac1e9dedefb 100644
--- a/srcpkgs/clucene/patches/clucene-narrowing-conversions.patch
+++ b/srcpkgs/clucene/patches/clucene-narrowing-conversions.patch
@@ -1,5 +1,5 @@
---- src/core/CLucene/queryParser/QueryParser.cpp.sav	2011-03-17 01:21:07.000000000 +0100
-+++ src/core/CLucene/queryParser/QueryParser.cpp	2012-03-09 18:20:58.000000000 +0100
+--- a/src/core/CLucene/queryParser/QueryParser.cpp.sav
++++ b/src/core/CLucene/queryParser/QueryParser.cpp
 @@ -79,7 +79,7 @@
      _T("<RANGEEX_GOOP>")
  };
@@ -9,8 +9,8 @@
  const int32_t QueryParser::jj_la1_1[] = {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x0,0x0,0x0,0x0};
  
  struct QueryParser::JJCalls {
---- src/core/CLucene/queryParser/QueryParserTokenManager.cpp.sav	2011-03-17 01:21:07.000000000 +0100
-+++ src/core/CLucene/queryParser/QueryParserTokenManager.cpp	2012-03-09 18:20:24.000000000 +0100
+--- a/src/core/CLucene/queryParser/QueryParserTokenManager.cpp.sav
++++ b/src/core/CLucene/queryParser/QueryParserTokenManager.cpp
 @@ -15,9 +15,9 @@
  
  CL_NS_DEF(queryParser)
diff --git a/srcpkgs/clucene/patches/clucene-warnings.patch b/srcpkgs/clucene/patches/clucene-warnings.patch
index b9676d90260c..467894875a5a 100644
--- a/srcpkgs/clucene/patches/clucene-warnings.patch
+++ b/srcpkgs/clucene/patches/clucene-warnings.patch
@@ -1,5 +1,5 @@
---- src/core/CLucene/analysis/AnalysisHeader.h	2012-02-22 12:37:22.531637934 +0000
-+++ src/core/CLucene/analysis/AnalysisHeader.h	2012-02-22 12:39:15.369916728 +0000
+--- a/src/core/CLucene/analysis/AnalysisHeader.h
++++ b/src/core/CLucene/analysis/AnalysisHeader.h
 @@ -7,6 +7,8 @@
  #ifndef _lucene_analysis_AnalysisHeader_
  #define _lucene_analysis_AnalysisHeader_
@@ -9,8 +9,8 @@
  #include "CLucene/index/Payload.h"
  #include "CLucene/util/VoidList.h"
  #include "CLucene/LuceneThreads.h"
---- src/core/CLucene/search/Searchable.h	2012-02-22 12:37:22.513637729 +0000
-+++ src/core/CLucene/search/Searchable.h	2012-02-22 12:38:51.073641550 +0000
+--- a/src/core/CLucene/search/Searchable.h
++++ b/src/core/CLucene/search/Searchable.h
 @@ -7,6 +7,7 @@
  #ifndef _lucene_search_Searcher_
  #define _lucene_search_Searcher_
@@ -19,8 +19,8 @@
  
  //#include "CLucene/index/IndexReader.h"
  CL_CLASS_DEF(index,Term)
---- src/core/CLucene/store/IndexInput.h	2012-02-22 12:37:22.508637673 +0000
-+++ src/core/CLucene/store/IndexInput.h	2012-02-22 12:39:00.465747935 +0000
+--- a/src/core/CLucene/store/IndexInput.h
++++ b/src/core/CLucene/store/IndexInput.h
 @@ -7,6 +7,8 @@
  #ifndef _lucene_store_IndexInput_
  #define _lucene_store_IndexInput_
@@ -30,8 +30,8 @@
  #include "CLucene/LuceneThreads.h"
  #include "CLucene/util/Equators.h"
  
---- src/core/CLucene/util/Array.h	2012-02-22 12:37:22.510637696 +0000
-+++ src/core/CLucene/util/Array.h	2012-02-22 12:38:33.714444884 +0000
+--- a/src/core/CLucene/util/Array.h
++++ b/src/core/CLucene/util/Array.h
 @@ -7,6 +7,8 @@
  #ifndef _lucene_util_Array_
  #define _lucene_util_Array_
@@ -41,8 +41,8 @@
  #include <stdlib.h>
  #include <string.h>
  
---- src/core/CLucene/util/PriorityQueue.h	2012-02-22 12:37:22.510637696 +0000
-+++ src/core/CLucene/util/PriorityQueue.h	2012-02-22 12:38:40.316519685 +0000
+--- a/src/core/CLucene/util/PriorityQueue.h
++++ b/src/core/CLucene/util/PriorityQueue.h
 @@ -7,6 +7,8 @@
  #ifndef _lucene_util_PriorityQueue_
  #define _lucene_util_PriorityQueue_
diff --git a/srcpkgs/clucene/patches/fix-cl_test.patch b/srcpkgs/clucene/patches/fix-cl_test.patch
index 33b327195663..40a9f2150503 100644
--- a/srcpkgs/clucene/patches/fix-cl_test.patch
+++ b/srcpkgs/clucene/patches/fix-cl_test.patch
@@ -1,5 +1,5 @@
 *** src/test/contribs-lib/analysis/de/TestGermanStemFilter.cpp.orig	2020-08-27 19:02:04.024654943 -0300
---- src/test/contribs-lib/analysis/de/TestGermanStemFilter.cpp	2020-08-27 19:02:26.219672761 -0300
+--- a/src/test/contribs-lib/analysis/de/TestGermanStemFilter.cpp
 ***************
 *** 8,15 ****
   #include "test.h"
@@ -10,7 +10,7 @@
   #include "CLucene/analysis/standard/StandardTokenizer.h"
   
   CL_NS_USE(util)
---- 8,15 ----
+--- a/8,15 ----
   #include "test.h"
   #include "CLucene/util/CLStreams.h"
   #include "CLucene/analysis/Analyzers.h"
diff --git a/srcpkgs/clucene/patches/fix-test.patch b/srcpkgs/clucene/patches/fix-test.patch
index b9b063a9e27d..23f7a9251301 100644
--- a/srcpkgs/clucene/patches/fix-test.patch
+++ b/srcpkgs/clucene/patches/fix-test.patch
@@ -1,8 +1,8 @@
 *** src/test/test.h.orig	2020-08-27 18:47:10.782379958 -0300
---- src/test/test.h	2020-08-27 18:47:16.518388700 -0300
+--- a/src/test/test.h
 ***************
 *** 23,28 ****
---- 23,29 ----
+--- a/23,29 ----
   #include <iostream>
   #include <string.h>
   #include <stdio.h>
diff --git a/srcpkgs/clucene/patches/fix_zlib_detections.diff b/srcpkgs/clucene/patches/fix_zlib_detections.diff
index bcd732a910f3..2b08883f5923 100644
--- a/srcpkgs/clucene/patches/fix_zlib_detections.diff
+++ b/srcpkgs/clucene/patches/fix_zlib_detections.diff
@@ -8,8 +8,8 @@ Fixing ZLIB configuration in shared's CMakeLists
 
 diff --git a/src/shared/CMakeLists.txt b/src/shared/CMakeLists.txt
 index 68314a7..3d1975e 100644
---- src/shared/CMakeLists.txt
-+++ src/shared/CMakeLists.txt
+--- a/src/shared/CMakeLists.txt
++++ b/src/shared/CMakeLists.txt
 @@ -42,7 +42,7 @@ INCLUDE (CheckAtomicFunctions)
  find_package(ZLIB)
  IF ( ZLIB_FOUND )
diff --git a/srcpkgs/clucene/patches/multithreading.patch b/srcpkgs/clucene/patches/multithreading.patch
index dd1a12641271..de9a34fd1bcf 100644
--- a/srcpkgs/clucene/patches/multithreading.patch
+++ b/srcpkgs/clucene/patches/multithreading.patch
@@ -1,8 +1,8 @@
 Taken from https://code.foxkit.us/adelie/packages/-/blob/3acdda418554ecd64ea33df0f92ef51ba1548c8d/user/clucene/disable-threading.patch
 
 Adapted from https://sourceforge.net/p/clucene/bugs/197
---- src/shared/CLucene/util/Misc.cpp	2011-03-16 20:21:07.000000000 -0400
-+++ src/shared/CLucene/util/Misc.cpp	2018-05-20 19:24:09.219901243 -0400
+--- a/src/shared/CLucene/util/Misc.cpp
++++ b/src/shared/CLucene/util/Misc.cpp
 @@ -466,6 +466,7 @@
  std::string Misc::toString(const bool value){
    return value ? "true" : "false";
@@ -19,8 +19,8 @@ Adapted from https://sourceforge.net/p/clucene/bugs/197
  std::string Misc::toString(const int32_t value){
    char buf[20];
    TCHAR tbuf[20];
---- src/shared/CLucene/util/Misc.h	2011-03-16 20:21:07.000000000 -0400
-+++ src/shared/CLucene/util/Misc.h	2018-05-20 19:24:09.219901243 -0400
+--- a/src/shared/CLucene/util/Misc.h
++++ b/src/shared/CLucene/util/Misc.h
 @@ -67,7 +67,9 @@
  
    static std::string toString(const int32_t value);
@@ -31,8 +31,8 @@ Adapted from https://sourceforge.net/p/clucene/bugs/197
    static std::string toString(const bool value);
    static std::string toString(const float_t value);
    static std::string toString(const TCHAR* s, int32_t len=-1);
---- src/shared/CLucene/LuceneThreads.h	2011-03-16 20:21:07.000000000 -0400
-+++ src/shared/CLucene/LuceneThreads.h	2018-05-20 19:28:05.999899570 -0400
+--- a/src/shared/CLucene/LuceneThreads.h
++++ b/src/shared/CLucene/LuceneThreads.h
 @@ -13,10 +13,10 @@
  
  #if defined(_CL_DISABLE_MULTITHREADING)
diff --git a/srcpkgs/clucene/template b/srcpkgs/clucene/template
index 67d9d9641281..fe045cb36356 100644
--- a/srcpkgs/clucene/template
+++ b/srcpkgs/clucene/template
@@ -15,7 +15,6 @@ license="LGPL-2+/ASL-2.0"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-core-${version}.tar.gz"
 checksum=ddfdc433dd8ad31b5c5819cc4404a8d2127472a3b720d3e744e8c51d79732eab
-patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	# threading segfaults on musl
diff --git a/srcpkgs/clutter/patches/clutter-x11-startup-error.patch b/srcpkgs/clutter/patches/clutter-x11-startup-error.patch
index 8612c8a77574..afea91c0b8ab 100644
--- a/srcpkgs/clutter/patches/clutter-x11-startup-error.patch
+++ b/srcpkgs/clutter/patches/clutter-x11-startup-error.patch
@@ -19,8 +19,8 @@ Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
 
 diff --git a/clutter/clutter-backend.c b/clutter/clutter-backend.c
 index d150e7c..b4e5f82 100644
---- clutter/clutter-backend.c
-+++ clutter/clutter-backend.c
+--- a/clutter/clutter-backend.c
++++ b/clutter/clutter-backend.c
 @@ -545,12 +545,12 @@ static const struct {
  #ifdef CLUTTER_WINDOWING_GDK
    { CLUTTER_WINDOWING_GDK, clutter_backend_gdk_new },
diff --git a/srcpkgs/clutter/template b/srcpkgs/clutter/template
index 44b3ab7c88de..461e2fe07978 100644
--- a/srcpkgs/clutter/template
+++ b/srcpkgs/clutter/template
@@ -18,7 +18,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.clutter-project.org"
 distfiles="${GNOME_SITE}/clutter/${version%.*}/clutter-${version}.tar.xz"
 checksum=8b48fac159843f556d0a6be3dbfc6b083fc6d9c58a20a49a6b4919ab4263c4e6
-patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/cmocka/patches/musl_uintptr.patch b/srcpkgs/cmocka/patches/musl_uintptr.patch
index 6046cd4cd96b..184321944b3d 100644
--- a/srcpkgs/cmocka/patches/musl_uintptr.patch
+++ b/srcpkgs/cmocka/patches/musl_uintptr.patch
@@ -11,8 +11,8 @@ Date:   Wed Mar 29 15:22:38 2017 -0300
     
     Signed-off-by: Breno Leitao <breno.leitao@gmail.com>
 
---- include/cmocka.h
-+++ include/cmocka.h
+--- a/include/cmocka.h
++++ b/include/cmocka.h
 @@ -110,7 +110,7 @@
      ((LargestIntegralType)(value))
  
diff --git a/srcpkgs/cmocka/template b/srcpkgs/cmocka/template
index dfe97283fad1..ea0384420a33 100644
--- a/srcpkgs/cmocka/template
+++ b/srcpkgs/cmocka/template
@@ -13,7 +13,6 @@ license="Apache-2.0"
 homepage="https://cmocka.org/"
 distfiles="https://cmocka.org/files/${version%.*}/cmocka-${version}.tar.xz"
 checksum=f0ccd8242d55e2fd74b16ba518359151f6f8383ff8aef4976e48393f77bba8b6
-patch_args=-Np0
 
 cmocka-devel_package() {
 	depends="cmocka-${version}_${revision}"
diff --git a/srcpkgs/cmus/patches/pass-ldlibs.patch b/srcpkgs/cmus/patches/pass-ldlibs.patch
index 57f8096b44ed..902a1b143ef5 100644
--- a/srcpkgs/cmus/patches/pass-ldlibs.patch
+++ b/srcpkgs/cmus/patches/pass-ldlibs.patch
@@ -11,8 +11,8 @@ Last-Update: 2019-09-07
 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
 Index: cmus/Makefile
 ===================================================================
---- Makefile	2019-09-07 10:02:00.152453147 -0400
-+++ Makefile	2019-09-07 10:24:55.009937454 -0400
+--- a/Makefile
++++ b/Makefile
 @@ -22,7 +22,7 @@
  FFMPEG_LIBS += $(shell pkg-config --libs libswresample)
  
diff --git a/srcpkgs/cmus/template b/srcpkgs/cmus/template
index 891beaef9a5e..fd8e518e2af6 100644
--- a/srcpkgs/cmus/template
+++ b/srcpkgs/cmus/template
@@ -19,7 +19,6 @@ checksum=6fb799cae60db9324f03922bbb2e322107fd386ab429c0271996985294e2ef44
 build_options="elogind"
 build_options_default="elogind"
 desc_option_elogind="Support MPRIS interface via elogind"
-patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/codeblocks/patches/000.v20.03-r12008.patch b/srcpkgs/codeblocks/patches/000.v20.03-r12008.patch
index 252f0be0a4a4..b4a94a9bd062 100644
--- a/srcpkgs/codeblocks/patches/000.v20.03-r12008.patch
+++ b/srcpkgs/codeblocks/patches/000.v20.03-r12008.patch
@@ -7,8 +7,8 @@ r12008 | fuscated | 2020-03-30 19:14:41 +0200 (Mon, 30 Mar 2020) | 3 lines
 
 Index: src/plugins/contrib/dragscroll/dragscrollcfg.h
 ===================================================================
---- src/plugins/contrib/dragscroll/dragscrollcfg.h	(revision 12007)
-+++ src/plugins/contrib/dragscroll/dragscrollcfg.h	(revision 12008)
+--- a/src/plugins/contrib/dragscroll/dragscrollcfg.h
++++ b/src/plugins/contrib/dragscroll/dragscrollcfg.h
 @@ -35,7 +35,7 @@
          wxString GetBitmapBaseName() const;
          void OnApply();
diff --git a/srcpkgs/codeblocks/patches/001.v20.03-r12012.patch b/srcpkgs/codeblocks/patches/001.v20.03-r12012.patch
index 4c56dfc7fcbd..486ef11550b9 100644
--- a/srcpkgs/codeblocks/patches/001.v20.03-r12012.patch
+++ b/srcpkgs/codeblocks/patches/001.v20.03-r12012.patch
@@ -6,8 +6,8 @@ r12012 | mortenmacfly | 2020-03-31 17:44:13 +0200 (Tue, 31 Mar 2020) | 2 lines
 
 Index: src/plugins/contrib/keybinder/cbKeyConfigPanel.h
 ===================================================================
---- src/plugins/contrib/keybinder/cbKeyConfigPanel.h	(revision 12011)
-+++ src/plugins/contrib/keybinder/cbKeyConfigPanel.h	(revision 12012)
+--- a/src/plugins/contrib/keybinder/cbKeyConfigPanel.h
++++ b/src/plugins/contrib/keybinder/cbKeyConfigPanel.h
 @@ -10,10 +10,6 @@
  #ifndef CBKEYCONFIGPANEL_H
  #define CBKEYCONFIGPANEL_H
@@ -21,8 +21,8 @@ Index: src/plugins/contrib/keybinder/cbKeyConfigPanel.h
  // ----------------------------------------------------------------------------
 Index: src/plugins/contrib/keybinder/cbkeyConfigPanel.cpp
 ===================================================================
---- src/plugins/contrib/keybinder/cbkeyConfigPanel.cpp	(revision 12011)
-+++ src/plugins/contrib/keybinder/cbkeyConfigPanel.cpp	(revision 12012)
+--- a/src/plugins/contrib/keybinder/cbkeyConfigPanel.cpp
++++ b/src/plugins/contrib/keybinder/cbkeyConfigPanel.cpp
 @@ -12,10 +12,6 @@
  
  // Modified CodeBlocks KeyBnder v2.0 2019/04/8
@@ -36,8 +36,8 @@ Index: src/plugins/contrib/keybinder/cbkeyConfigPanel.cpp
  #include <sdk.h>
 Index: src/plugins/contrib/keybinder/cbkeybinder.cpp
 ===================================================================
---- src/plugins/contrib/keybinder/cbkeybinder.cpp	(revision 12011)
-+++ src/plugins/contrib/keybinder/cbkeybinder.cpp	(revision 12012)
+--- a/src/plugins/contrib/keybinder/cbkeybinder.cpp
++++ b/src/plugins/contrib/keybinder/cbkeybinder.cpp
 @@ -12,10 +12,6 @@
  
  // Modified CodeBlocks KeyBnder v2.0 2019/04/8
@@ -51,8 +51,8 @@ Index: src/plugins/contrib/keybinder/cbkeybinder.cpp
  #include <sdk.h>
 Index: src/plugins/contrib/keybinder/cbkeybinder.h
 ===================================================================
---- src/plugins/contrib/keybinder/cbkeybinder.h	(revision 12011)
-+++ src/plugins/contrib/keybinder/cbkeybinder.h	(revision 12012)
+--- a/src/plugins/contrib/keybinder/cbkeybinder.h
++++ b/src/plugins/contrib/keybinder/cbkeybinder.h
 @@ -10,14 +10,6 @@
  #ifndef CBKEYBINDER_H
  #define CBKEYBINDER_H
@@ -70,8 +70,8 @@ Index: src/plugins/contrib/keybinder/cbkeybinder.h
  #include <wx/listbook.h>
 Index: src/plugins/contrib/keybinder/keybinder.cpp
 ===================================================================
---- src/plugins/contrib/keybinder/keybinder.cpp	(revision 12011)
-+++ src/plugins/contrib/keybinder/keybinder.cpp	(revision 12012)
+--- a/src/plugins/contrib/keybinder/keybinder.cpp
++++ b/src/plugins/contrib/keybinder/keybinder.cpp
 @@ -12,11 +12,6 @@
  
  // Modified Keybinder for CodeBlocks KeyBnder v2.0 2019/04/8
@@ -86,8 +86,8 @@ Index: src/plugins/contrib/keybinder/keybinder.cpp
  #include <wx/frame.h> // Manager::Get()->GetAppWindow()
 Index: src/plugins/contrib/keybinder/keybinder.h
 ===================================================================
---- src/plugins/contrib/keybinder/keybinder.h	(revision 12011)
-+++ src/plugins/contrib/keybinder/keybinder.h	(revision 12012)
+--- a/src/plugins/contrib/keybinder/keybinder.h
++++ b/src/plugins/contrib/keybinder/keybinder.h
 @@ -16,10 +16,6 @@
  #ifndef __KEYBINDER_G__
  #define __KEYBINDER_G__
@@ -101,8 +101,8 @@ Index: src/plugins/contrib/keybinder/keybinder.h
  #include "wx/dialog.h"
 Index: src/plugins/contrib/keybinder/menuutils.cpp
 ===================================================================
---- src/plugins/contrib/keybinder/menuutils.cpp	(revision 12011)
-+++ src/plugins/contrib/keybinder/menuutils.cpp	(revision 12012)
+--- a/src/plugins/contrib/keybinder/menuutils.cpp
++++ b/src/plugins/contrib/keybinder/menuutils.cpp
 @@ -10,17 +10,10 @@
  // RCS-ID:      $Id$
  
@@ -123,8 +123,8 @@ Index: src/plugins/contrib/keybinder/menuutils.cpp
  #endif
 Index: src/plugins/contrib/keybinder/menuutils.h
 ===================================================================
---- src/plugins/contrib/keybinder/menuutils.h	(revision 12011)
-+++ src/plugins/contrib/keybinder/menuutils.h	(revision 12012)
+--- a/src/plugins/contrib/keybinder/menuutils.h
++++ b/src/plugins/contrib/keybinder/menuutils.h
 @@ -15,10 +15,6 @@
  #ifndef __WX_MENUUTILS_H__
  #define __WX_MENUUTILS_H__
diff --git a/srcpkgs/codeblocks/template b/srcpkgs/codeblocks/template
index c1f7945b39c2..33b9b9a77853 100644
--- a/srcpkgs/codeblocks/template
+++ b/srcpkgs/codeblocks/template
@@ -14,7 +14,6 @@ license="GPL-3.0-only"
 homepage="http://www.codeblocks.org"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/Sources/${version}/${pkgname}-${version}.tar.xz"
 checksum=15eeb3e28aea054e1f38b0c7f4671b4d4d1116fd05f63c07aa95a91db89eaac5
-patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" wxWidgets-devel tinyxml-devel"
diff --git a/srcpkgs/codecrypt/patches/cryptopp.patch b/srcpkgs/codecrypt/patches/cryptopp.patch
index d04c5add61c9..4b996fd6c837 100644
--- a/srcpkgs/codecrypt/patches/cryptopp.patch
+++ b/srcpkgs/codecrypt/patches/cryptopp.patch
@@ -1,5 +1,5 @@
---- configure.ac
-+++ configure.ac
+--- a/configure.ac
++++ b/configure.ac
 @@ -37,7 +37,7 @@ if test "$WITH_CRYPTOPP" = "yes"; then
  	
  	PKG_PROG_PKG_CONFIG([0.25])
diff --git a/srcpkgs/codecrypt/template b/srcpkgs/codecrypt/template
index 51c0dcbbd0b8..cd326930709d 100644
--- a/srcpkgs/codecrypt/template
+++ b/srcpkgs/codecrypt/template
@@ -11,7 +11,6 @@ license="LGPL-3.0-or-later"
 homepage="https://e-x-a.org/codecrypt"
 distfiles="https://github.com/exaexa/codecrypt/archive/v${version}.tar.gz"
 checksum=25f11bc361b4f8aca7245698334b5715b7d594d708a75e8cdb2aa732dc46eb96
-patch_args=-Np0
 
 LDFLAGS="-lpthread"
 
diff --git a/srcpkgs/codelite/patches/92ed90e07.patch b/srcpkgs/codelite/patches/92ed90e07.patch
index 89fba88f14d6..5a469602e40f 100644
--- a/srcpkgs/codelite/patches/92ed90e07.patch
+++ b/srcpkgs/codelite/patches/92ed90e07.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] Compilation fix for wx3.0 gtk+3 builds
 
 diff --git a/codelite_terminal/TextView.cpp b/codelite_terminal/TextView.cpp
 index 83d2e260c..5966f9972 100644
---- codelite_terminal/TextView.cpp
-+++ codelite_terminal/TextView.cpp
+--- a/codelite_terminal/TextView.cpp
++++ b/codelite_terminal/TextView.cpp
 @@ -12,7 +12,11 @@ TextView::TextView(wxWindow* parent, wxWindowID winid)
      m_ctrl->SetCaretStyle(wxSTC_CARETSTYLE_BLOCK);
      m_ctrl->SetYCaretPolicy(wxSTC_CARET_STRICT | wxSTC_CARET_SLOP, 4);
diff --git a/srcpkgs/codelite/patches/musl.patch b/srcpkgs/codelite/patches/musl.patch
index 8a345ed97532..40908df43f04 100644
--- a/srcpkgs/codelite/patches/musl.patch
+++ b/srcpkgs/codelite/patches/musl.patch
@@ -1,5 +1,5 @@
---- codelitegcc/main.cpp.orig	2019-06-29 08:37:38.818622077 +0200
-+++ codelitegcc/main.cpp	2019-06-29 08:38:04.090937646 +0200
+--- a/codelitegcc/main.cpp
++++ b/codelitegcc/main.cpp
 @@ -33,6 +33,7 @@ extern int ExecuteProcessWIN(const std::
  #include <sys/file.h>
  #include <sys/stat.h>
@@ -8,8 +8,8 @@
  
  void WriteContent( const std::string& logfile, const std::string& filename, const std::string& flags )
  {
---- sdk/codelite_indexer/libctags/read.c.orig	2019-06-29 08:54:26.592208449 +0200
-+++ sdk/codelite_indexer/libctags/read.c	2019-06-29 08:56:18.688608501 +0200
+--- a/sdk/codelite_indexer/libctags/read.c
++++ b/sdk/codelite_indexer/libctags/read.c
 @@ -605,6 +605,9 @@ extern int readChars (char *buffer, size
  #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
  	if(location < 0)
@@ -29,8 +29,8 @@
  #else
  	sizeToRead = endPos.__pos - location.__pos;
  #endif
---- sdk/codelite_indexer/network/named_pipe.cpp.orig	2019-06-29 09:06:20.260132366 +0200
-+++ sdk/codelite_indexer/network/named_pipe.cpp	2019-06-29 09:06:38.468360112 +0200
+--- a/sdk/codelite_indexer/network/named_pipe.cpp
++++ b/sdk/codelite_indexer/network/named_pipe.cpp
 @@ -27,9 +27,9 @@
  
  #ifndef __WXMSW__
@@ -42,8 +42,8 @@
  #endif
  
  #ifdef __WXMSW__
---- sdk/codelite_indexer/network/named_pipe_server.cpp.orig	2019-06-29 09:07:26.077955618 +0200
-+++ sdk/codelite_indexer/network/named_pipe_server.cpp	2019-06-29 09:07:35.484073269 +0200
+--- a/sdk/codelite_indexer/network/named_pipe_server.cpp
++++ b/sdk/codelite_indexer/network/named_pipe_server.cpp
 @@ -26,8 +26,8 @@
  #include "named_pipe_server.h"
  #ifndef __WXMSW__
diff --git a/srcpkgs/codelite/patches/pango144.patch b/srcpkgs/codelite/patches/pango144.patch
index cbb3762ac293..47a75e1d952d 100644
--- a/srcpkgs/codelite/patches/pango144.patch
+++ b/srcpkgs/codelite/patches/pango144.patch
@@ -1,7 +1,7 @@
 Pango now requires harfbuzz, but it's not searched for.
 
---- cmake/Modules/FindGTK3.cmake
-+++ cmake/Modules/FindGTK3.cmake
+--- a/cmake/Modules/FindGTK3.cmake
++++ b/cmake/Modules/FindGTK3.cmake
 @@ -60,6 +60,21 @@ if(NOT GLIB2_FOUND)
  	set(_GTK3_found_all false)
  endif()
diff --git a/srcpkgs/codelite/template b/srcpkgs/codelite/template
index db21463032db..cedc1e11c247 100644
--- a/srcpkgs/codelite/template
+++ b/srcpkgs/codelite/template
@@ -20,7 +20,6 @@ distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz"
 checksum=f2653fa42d6214999718236998cb223e6de00a498c0cfde795e901be693fb9ac
 nocross=yes
 python_version=2 #unverified
-patch_args=-Np0
 
 build_options="hunspell lldb mysql sftp"
 build_options_default="hunspell sftp"
diff --git a/srcpkgs/coin3/patches/no-cpack.patch b/srcpkgs/coin3/patches/no-cpack.patch
index 5417d2e66c93..2098b09712ee 100644
--- a/srcpkgs/coin3/patches/no-cpack.patch
+++ b/srcpkgs/coin3/patches/no-cpack.patch
@@ -1,5 +1,5 @@
---- CMakeLists.txt.ORIG
-+++ CMakeLists.txt
+--- a/CMakeLists.txt.ORIG
++++ b/CMakeLists.txt
 @@ -815,4 +815,4 @@
  
  # ############################################################################
diff --git a/srcpkgs/coin3/template b/srcpkgs/coin3/template
index 3ed1add5ffa6..2130c0b8b263 100644
--- a/srcpkgs/coin3/template
+++ b/srcpkgs/coin3/template
@@ -14,7 +14,6 @@ license="BSD-3-Clause"
 homepage="https://coin3d.github.io/"
 distfiles="https://github.com/coin3d/coin/archive/Coin-${version}.tar.gz"
 checksum=b00d2a8e9d962397cf9bf0d9baa81bcecfbd16eef675a98c792f5cf49eb6e805
-patch_args=-Np0
 
 CFLAGS=-DNDEBUG
 CXXFLAGS=-DNDEBUG
diff --git a/srcpkgs/collectd/patches/gnu_source.patch b/srcpkgs/collectd/patches/gnu_source.patch
index ac381e1f6034..323ce0faca2f 100644
--- a/srcpkgs/collectd/patches/gnu_source.patch
+++ b/srcpkgs/collectd/patches/gnu_source.patch
@@ -1,8 +1,8 @@
 #
 # Define GNU_SOURCE so perl will be properly detected
 #
---- configure.ac
-+++ configure.ac
+--- a/configure.ac
++++ b/configure.ac
 @@ -48,6 +48,8 @@
  
  PKG_PROG_PKG_CONFIG
diff --git a/srcpkgs/collectd/template b/srcpkgs/collectd/template
index b9fa1053465d..28fa815e85a9 100644
--- a/srcpkgs/collectd/template
+++ b/srcpkgs/collectd/template
@@ -23,7 +23,6 @@ homepage="https://collectd.org"
 distfiles="https://collectd.org/files/${pkgname}-${version}.tar.bz2"
 checksum=5bae043042c19c31f77eb8464e56a01a5454e0b39fa07cf7ad0f1bfc9c3a09d6
 LDFLAGS="-lgcrypt"
-patch_args=-Np0
 
 build_options="rrdtool perl notify prometheus"
 desc_option_rrdtool="Enable support for RRDTool"
diff --git a/srcpkgs/colord/patches/add-introspection-switch.patch b/srcpkgs/colord/patches/add-introspection-switch.patch
index 5c0dfa91ceff..6a995c798593 100644
--- a/srcpkgs/colord/patches/add-introspection-switch.patch
+++ b/srcpkgs/colord/patches/add-introspection-switch.patch
@@ -1,7 +1,7 @@
 diff --git lib/colord/meson.build lib/colord/meson.build
 index 61f0518..9f7a246 100644
---- lib/colord/meson.build
-+++ lib/colord/meson.build
+--- a/lib/colord/meson.build
++++ b/lib/colord/meson.build
 @@ -146,6 +146,7 @@ pkgg.generate(
    description : 'colord is a system daemon for managing color devices',
  )
@@ -20,8 +20,8 @@ index 61f0518..9f7a246 100644
  gnome.generate_vapi('colord',
 diff --git lib/colorhug/meson.build lib/colorhug/meson.build
 index 03aefb7..b6d2624 100644
---- lib/colorhug/meson.build
-+++ lib/colorhug/meson.build
+--- a/lib/colorhug/meson.build
++++ b/lib/colorhug/meson.build
 @@ -73,6 +73,7 @@ pkgg.generate(
    description : 'ColorHug is a simple display hardware colorimeter',
  )
@@ -40,8 +40,8 @@ index 03aefb7..b6d2624 100644
    testdatadir = join_paths(meson.source_root(), 'data', 'tests')
 diff --git meson_options.txt meson_options.txt
 index 52af113..6661e16 100644
---- meson_options.txt
-+++ meson_options.txt
+--- a/meson_options.txt
++++ b/meson_options.txt
 @@ -15,3 +15,4 @@ option('daemon_user', type : 'string', value : 'root', description : 'User for r
  option('pnp_ids', type : 'string', value : '', description : 'Location of pnp.ids if hwdb is not available')
  option('man', type : 'boolean', value : true, description : 'Generate man pages')
diff --git a/srcpkgs/colord/patches/use-host-utils.patch b/srcpkgs/colord/patches/use-host-utils.patch
index 856c0261f23a..867954f219b7 100644
--- a/srcpkgs/colord/patches/use-host-utils.patch
+++ b/srcpkgs/colord/patches/use-host-utils.patch
@@ -1,5 +1,5 @@
---- data/cmf/meson.build
-+++ data/cmf/meson.build
+--- a/data/cmf/meson.build
++++ b/data/cmf/meson.build
 @@ -1,3 +1,7 @@
 +if meson.is_cross_build()
 +  cd_idt8 = find_program('cd-it8')
@@ -8,8 +8,8 @@
  foreach arg: [ 'CIE1964-10deg-XYZ', 'CIE1931-2deg-XYZ' ]
    custom_target(arg,
      input: arg + '.csv',
---- data/profiles/meson.build
-+++ data/profiles/meson.build
+--- a/data/profiles/meson.build
++++ b/data/profiles/meson.build
 @@ -47,6 +47,10 @@ if get_option('print_profiles')
    icc_profiles += icc_print_profiles
  endif
diff --git a/srcpkgs/colord/template b/srcpkgs/colord/template
index 14bc56ad3856..98739d4802bf 100644
--- a/srcpkgs/colord/template
+++ b/srcpkgs/colord/template
@@ -17,7 +17,6 @@ license="GPL-2.0-only"
 homepage="https://www.freedesktop.org/software/colord"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
 checksum=b774ea443d239f4a2ee1853bd678426e669ddeda413dcb71cea1638c4d6c5e17
-patch_args=-Np0
 
 system_accounts="colord"
 colord_homedir="/var/lib/colord"
diff --git a/srcpkgs/commoncpp2/patches/applog.patch b/srcpkgs/commoncpp2/patches/applog.patch
index 9cc25480df83..0190f6161d95 100644
--- a/srcpkgs/commoncpp2/patches/applog.patch
+++ b/srcpkgs/commoncpp2/patches/applog.patch
@@ -1,5 +1,5 @@
---- src/applog.cpp.orig	2016-12-02 18:23:28.705313984 +0100
-+++ src/applog.cpp	2016-12-02 18:23:45.455313926 +0100
+--- a/src/applog.cpp
++++ b/src/applog.cpp
 @@ -45,6 +45,7 @@
  #include <cstdlib>
  #include <stdarg.h>
diff --git a/srcpkgs/commoncpp2/patches/ftbfs.patch b/srcpkgs/commoncpp2/patches/ftbfs.patch
index 09e1ead1dbe3..f586ed293272 100644
--- a/srcpkgs/commoncpp2/patches/ftbfs.patch
+++ b/srcpkgs/commoncpp2/patches/ftbfs.patch
@@ -1,8 +1,8 @@
 C++ does not allow specifying default arguments on friend declarations.
 We can simply do this as getline is not otherwise publicly declared.
 
---- inc/cc++/string.h
-+++ inc/cc++/string.h
+--- a/inc/cc++/string.h
++++ b/inc/cc++/string.h
 @@ -731,7 +731,7 @@ public:
       * @param delim deliminator to use.
       * @param size optional size limitor.
diff --git a/srcpkgs/commoncpp2/template b/srcpkgs/commoncpp2/template
index ddbd6ba58363..181a6a9e07bf 100644
--- a/srcpkgs/commoncpp2/template
+++ b/srcpkgs/commoncpp2/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage='http://www.gnu.org/software/commoncpp/'
 distfiles="${GNU_SITE}/commoncpp/$pkgname-${version}.tar.gz"
 checksum="53ced4aff74e28a1d8018eb2b4974519028db3c12471ab6dff1c873578c9af4e"
-patch_args=-Np0
 
 commoncpp2-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/connman-ncurses/patches/lowercase-boolean.patch b/srcpkgs/connman-ncurses/patches/lowercase-boolean.patch
index 41a91751ea2d..91fab7e0607d 100644
--- a/srcpkgs/connman-ncurses/patches/lowercase-boolean.patch
+++ b/srcpkgs/connman-ncurses/patches/lowercase-boolean.patch
@@ -1,5 +1,5 @@
---- json_utils.c	2020-05-31 00:39:12.983378846 -0400
-+++ json_utils.c	2020-05-31 00:39:26.062122347 -0400
+--- a/json_utils.c
++++ b/json_utils.c
 @@ -81,7 +81,7 @@
  		key_is_trusted = json_object_object_get_ex(jtrusted, key,
  				&tmp_trusted);
@@ -9,8 +9,8 @@
  			return false;
  
  		res = __json_type_dispatch(val, tmp_trusted);
---- json_regex.c	2020-05-31 00:44:07.233613212 -0400
-+++ json_regex.c	2020-05-31 00:48:33.307401463 -0400
+--- a/json_regex.c
++++ b/json_regex.c
 @@ -22,6 +22,7 @@
  #endif
  
diff --git a/srcpkgs/connman-ncurses/template b/srcpkgs/connman-ncurses/template
index 0d2f48a12e24..5fd4b33b08fc 100644
--- a/srcpkgs/connman-ncurses/template
+++ b/srcpkgs/connman-ncurses/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/eurogiciel-oss/connman-json-client"
 distfiles="https://github.com/eurogiciel-oss/connman-json-client/archive/v${version}.tar.gz"
 checksum=724604787b51cd3bd2ba5d2291f5f2efe0558a1ec78d92d3c92ebc78f6c63219
-patch_args=-Np0
 
 pre_configure() {
 	mkdir -p m4
diff --git a/srcpkgs/containers.image/patches/dockerhub.patch b/srcpkgs/containers.image/patches/dockerhub.patch
index c6b18a26c79d..99482c3f0b56 100644
--- a/srcpkgs/containers.image/patches/dockerhub.patch
+++ b/srcpkgs/containers.image/patches/dockerhub.patch
@@ -1,5 +1,5 @@
---- registries.conf
-+++ registries.conf
+--- a/registries.conf
++++ b/registries.conf
 @@ -9,7 +9,7 @@
  # Registries to search for images that are not fully-qualified.
  # i.e. foobar.com/my_image:latest vs my_image:latest
diff --git a/srcpkgs/containers.image/template b/srcpkgs/containers.image/template
index d292c68747b7..f587e0ef3640 100644
--- a/srcpkgs/containers.image/template
+++ b/srcpkgs/containers.image/template
@@ -11,7 +11,6 @@ license="Apache-2.0"
 homepage="https://github.com/containers/image"
 distfiles="https://github.com/containers/image/archive/v${version}.tar.gz"
 checksum=99440d59728ed741e6171046cf3a6a820c2e3414cd9c17ee640efd289a015c3f
-patch_args=-Np0
 
 do_build() {
 	mkdir -p build
diff --git a/srcpkgs/coreboot-utils/patches/ectool-musl.patch b/srcpkgs/coreboot-utils/patches/ectool-musl.patch
index 1bdbfbe551ee..1ad8e5555a69 100644
--- a/srcpkgs/coreboot-utils/patches/ectool-musl.patch
+++ b/srcpkgs/coreboot-utils/patches/ectool-musl.patch
@@ -1,5 +1,5 @@
---- util/ectool/Makefile	2020-05-20 15:20:52.396213112 +0200
-+++ -	2020-05-20 15:20:46.512212915 +0200
+--- a/util/ectool/Makefile
++++ b/-
 @@ -15,6 +15,8 @@
  LDFLAGS = -l$(shell uname -p)
  endif
diff --git a/srcpkgs/coreboot-utils/patches/inteltool-musl-2.patch b/srcpkgs/coreboot-utils/patches/inteltool-musl-2.patch
index 05d4d431b064..05d738507273 100644
--- a/srcpkgs/coreboot-utils/patches/inteltool-musl-2.patch
+++ b/srcpkgs/coreboot-utils/patches/inteltool-musl-2.patch
@@ -1,5 +1,5 @@
---- src/arch/x86/include/arch/mmio.h	2020-05-20 14:43:31.750138013 +0200
-+++ src/arch/x86/include/arch/mmio.h	2020-05-20 14:43:13.438137399 +0200
+--- a/src/arch/x86/include/arch/mmio.h
++++ b/src/arch/x86/include/arch/mmio.h
 @@ -4,6 +4,7 @@
  #define __ARCH_MMIO_H__
 
diff --git a/srcpkgs/coreboot-utils/patches/inteltool-musl.patch b/srcpkgs/coreboot-utils/patches/inteltool-musl.patch
index ecb9c7f696c8..b7bc94404cda 100644
--- a/srcpkgs/coreboot-utils/patches/inteltool-musl.patch
+++ b/srcpkgs/coreboot-utils/patches/inteltool-musl.patch
@@ -1,5 +1,5 @@
---- util/inteltool/inteltool.h	2018-08-27 12:35:48.049321340 +0200
-+++ util/inteltool/inteltool.h	2018-08-27 12:30:27.434969376 +0200
+--- a/util/inteltool/inteltool.h
++++ b/util/inteltool/inteltool.h
 @@ -21,7 +21,7 @@
  
  #include <stdint.h>
diff --git a/srcpkgs/coreboot-utils/patches/nvramtool-musl-2.patch b/srcpkgs/coreboot-utils/patches/nvramtool-musl-2.patch
index cd3078d10bed..ccd3e0d7d3df 100644
--- a/srcpkgs/coreboot-utils/patches/nvramtool-musl-2.patch
+++ b/srcpkgs/coreboot-utils/patches/nvramtool-musl-2.patch
@@ -1,5 +1,5 @@
---- util/nvramtool/Makefile	2020-05-20 15:19:20.652210037 +0200
-+++ -	2020-05-20 15:20:00.145211360 +0200
+--- a/util/nvramtool/Makefile
++++ b/-
 @@ -34,6 +34,8 @@
  CFLAGS += -D__GLIBC__
  endif
diff --git a/srcpkgs/coreboot-utils/patches/nvramtool-musl.patch b/srcpkgs/coreboot-utils/patches/nvramtool-musl.patch
index ba152cd5cb5b..c27ef86bb45b 100644
--- a/srcpkgs/coreboot-utils/patches/nvramtool-musl.patch
+++ b/srcpkgs/coreboot-utils/patches/nvramtool-musl.patch
@@ -1,5 +1,5 @@
---- util/nvramtool/accessors/cmos-hw-unix.c	2018-08-27 12:20:14.139599118 +0200
-+++ util/nvramtool/accessors/cmos-hw-unix.c	2018-08-27 12:19:45.558280906 +0200
+--- a/util/nvramtool/accessors/cmos-hw-unix.c
++++ b/util/nvramtool/accessors/cmos-hw-unix.c
 @@ -11,7 +11,7 @@
  #define INW(x) __extension__ ({ u_int tmp = (x); inw(tmp); })
  #define INL(x) __extension__ ({ u_int tmp = (x); inl(tmp); })
diff --git a/srcpkgs/coreboot-utils/patches/superiotool-musl.patch b/srcpkgs/coreboot-utils/patches/superiotool-musl.patch
index 779ccee3c310..0837f460f3fd 100644
--- a/srcpkgs/coreboot-utils/patches/superiotool-musl.patch
+++ b/srcpkgs/coreboot-utils/patches/superiotool-musl.patch
@@ -1,5 +1,5 @@
---- util/superiotool/Makefile	2018-05-16 21:00:17.000000000 +0200
-+++ util/superiotool/Makefile	2018-08-27 12:56:28.070741476 +0200
+--- a/util/superiotool/Makefile
++++ b/util/superiotool/Makefile
 @@ -25,7 +25,7 @@
  VERSION := -D'SUPERIOTOOL_VERSION="$(shell git describe 2>/dev/null)"'
  
@@ -9,8 +9,8 @@
  LDFLAGS += -lz
  
  OBJS = superiotool.o serverengines.o ali.o exar.o fintek.o ite.o nsc.o \
---- util/superiotool/superiotool.h	2018-05-16 21:00:17.000000000 +0200
-+++ util/superiotool/superiotool.h	2018-08-27 12:50:25.627387315 +0200
+--- a/util/superiotool/superiotool.h
++++ b/util/superiotool/superiotool.h
 @@ -25,7 +25,7 @@
  #include <stdint.h>
  #include <string.h>
diff --git a/srcpkgs/coreboot-utils/template b/srcpkgs/coreboot-utils/template
index 3f161fe47556..4eec377ecea6 100644
--- a/srcpkgs/coreboot-utils/template
+++ b/srcpkgs/coreboot-utils/template
@@ -13,7 +13,6 @@ license="GPL-2.0-only"
 homepage="https://coreboot.org"
 distfiles="https://coreboot.org/releases/coreboot-${version}.tar.xz"
 checksum=4779da645a25ddebc78f1bd2bd0b740fb1e6479572648d4650042a2b9502856a
-patch_args=-Np0
 
 do_build() {
 	for util in cbfstool cbmem ectool ifdtool inteltool intelmetool \
diff --git a/srcpkgs/coreutils/patches/0001-ls-restore-8.31-behavior-on-removed-directories.patch b/srcpkgs/coreutils/patches/0001-ls-restore-8.31-behavior-on-removed-directories.patch
index 0312eff04689..93ec0fd84c74 100644
--- a/srcpkgs/coreutils/patches/0001-ls-restore-8.31-behavior-on-removed-directories.patch
+++ b/srcpkgs/coreutils/patches/0001-ls-restore-8.31-behavior-on-removed-directories.patch
@@ -19,8 +19,8 @@ behavior.
 
 diff --git NEWS NEWS
 index fdc8bf5db..653e7178b 100644
---- NEWS
-+++ NEWS
+--- a/NEWS
++++ b/NEWS
 @@ -2,6 +2,12 @@ GNU coreutils NEWS                                    -*- outline -*-
  
  * Noteworthy changes in release ?.? (????-??-??) [?]
@@ -36,8 +36,8 @@ index fdc8bf5db..653e7178b 100644
  
 diff --git src/ls.c src/ls.c
 index 24b983287..4acf5f44d 100644
---- src/ls.c
-+++ src/ls.c
+--- a/src/ls.c
++++ b/src/ls.c
 @@ -49,10 +49,6 @@
  # include <sys/ptem.h>
  #endif
@@ -90,8 +90,8 @@ index 24b983287..4acf5f44d 100644
  
 diff --git tests/ls/removed-directory.sh tests/ls/removed-directory.sh
 index e8c835dab..fe8f929a1 100755
---- tests/ls/removed-directory.sh
-+++ tests/ls/removed-directory.sh
+--- a/tests/ls/removed-directory.sh
++++ b/tests/ls/removed-directory.sh
 @@ -26,20 +26,14 @@ case $host_triplet in
    *) skip_ 'non linux kernel' ;;
  esac
diff --git a/srcpkgs/coreutils/template b/srcpkgs/coreutils/template
index fd25f8220a78..b9148c854960 100644
--- a/srcpkgs/coreutils/template
+++ b/srcpkgs/coreutils/template
@@ -11,7 +11,6 @@ homepage="https://www.gnu.org/software/coreutils"
 changelog="https://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob_plain;f=NEWS;hb=HEAD"
 distfiles="${GNU_SITE}/coreutils/coreutils-${version}.tar.xz"
 checksum=4458d8de7849df44ccab15e16b1548b285224dbba5f08fac070c1c0e0bcc4cfa
-patch_args=-Np0
 
 replaces="chroot-coreutils>=0 coreutils-doc>=0 b2sum>=0"
 
diff --git a/srcpkgs/coturn/patches/Makefile.patch b/srcpkgs/coturn/patches/Makefile.patch
index ede8c802b98b..f7b5d18f3a0e 100644
--- a/srcpkgs/coturn/patches/Makefile.patch
+++ b/srcpkgs/coturn/patches/Makefile.patch
@@ -1,5 +1,5 @@
---- Makefile.in.bck	2017-10-24 23:56:45.227539877 -0400
-+++ Makefile.in	2017-10-24 23:57:02.000103162 -0400
+--- a/Makefile.in.bck
++++ b/Makefile.in
 @@ -165,7 +165,7 @@
  	${INSTALL_DATA} turndb/schema.stats.redis ${DESTDIR}${DOCSDIR}
  	${INSTALL_DATA} turndb/schema.stats.redis ${DESTDIR}${SCHEMADIR}
diff --git a/srcpkgs/coturn/template b/srcpkgs/coturn/template
index 1f662c41f17b..edfb526f4967 100644
--- a/srcpkgs/coturn/template
+++ b/srcpkgs/coturn/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause"
 homepage="https://github.com/coturn/coturn"
 distfiles="https://github.com/coturn/coturn/archive/${version}.tar.gz"
 checksum=4ff1f8c041ac71445018d81321d4b66e5dce4f171ef73a348d858dc9a0cc1cce
-patch_args=-Np0
 
 post_patch() {
 	# LibreSSL does not support FIPS mode
diff --git a/srcpkgs/cpuburn/patches/01-variables.patch b/srcpkgs/cpuburn/patches/01-variables.patch
index e855428eea33..5c5de7111b95 100644
--- a/srcpkgs/cpuburn/patches/01-variables.patch
+++ b/srcpkgs/cpuburn/patches/01-variables.patch
@@ -1,5 +1,5 @@
---- burnK7.S
-+++ burnK7.S
+--- a/burnK7.S
++++ b/burnK7.S
 @@ -74,6 +74,7 @@ int_exit:
  	push	%eax
  	int	$0x80
@@ -8,8 +8,8 @@
  .align 32,0
  	.fill 64
  half:	.long 0x7fffffff,0
---- burnP5.S
-+++ burnP5.S
+--- a/burnP5.S
++++ b/burnP5.S
 @@ -77,6 +77,7 @@ crunch:
  #else
  	int	$0x80
@@ -18,8 +18,8 @@
  .align 32,0
  half:	.long 0xffffffff,0x3fdfffff
  one:	.long 0xffffffff,0x3fefffff
---- burnP6.S
-+++ burnP6.S
+--- a/burnP6.S
++++ b/burnP6.S
 @@ -69,6 +69,7 @@ int_exit:			# error abort
  	push	%eax		# *BSD syscall
  	int	$0x80
@@ -28,8 +28,8 @@
  .align 32,0
  half:	.long 0x7fffffff,0
  e:	.long 0xffffffff,0x3fdfffff
---- burnK6.S
-+++ burnK6.S
+--- a/burnK6.S
++++ b/burnK6.S
 @@ -68,6 +68,7 @@ int_exit:
  	push	%eax
  	int	$0x80
diff --git a/srcpkgs/cpuburn/patches/02-m32.patch b/srcpkgs/cpuburn/patches/02-m32.patch
index 44a30bc89efa..6da74c20b0fd 100644
--- a/srcpkgs/cpuburn/patches/02-m32.patch
+++ b/srcpkgs/cpuburn/patches/02-m32.patch
@@ -1,5 +1,5 @@
---- Makefile
-+++ Makefile
+--- a/Makefile
++++ b/Makefile
 @@ -1,3 +1,3 @@
  all : burnP5 burnP6 burnK6 burnK7 burnBX burnMMX
  .S:
diff --git a/srcpkgs/cpuburn/template b/srcpkgs/cpuburn/template
index 735ecbcba22b..a215520fb764 100644
--- a/srcpkgs/cpuburn/template
+++ b/srcpkgs/cpuburn/template
@@ -9,7 +9,6 @@ license="GPL-2.0-only"
 homepage="https://launchpad.net/ubuntu/+source/cpuburn/"
 distfiles="https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${version}.orig.tar.gz"
 checksum=eb191ce9bfbf453d30c218c3419573df102a3588f96c4a43686c84bb9da4bed6
-patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/cpulimit/patches/musl_sysctl.patch b/srcpkgs/cpulimit/patches/musl_sysctl.patch
index 8ba5cd058b18..4e1721b6e222 100644
--- a/srcpkgs/cpulimit/patches/musl_sysctl.patch
+++ b/srcpkgs/cpulimit/patches/musl_sysctl.patch
@@ -1,5 +1,5 @@
---- ./src/cpulimit.c.orig	2015-10-05 04:12:08.510651801 -0400
-+++ ./src/cpulimit.c	2015-10-05 04:13:40.562657764 -0400
+--- a/src/cpulimit.c
++++ b/src/cpulimit.c
 @@ -38,7 +38,9 @@
  #include <string.h>
  #include <sys/stat.h>
diff --git a/srcpkgs/cpulimit/template b/srcpkgs/cpulimit/template
index f1a756a81a70..9fbf6eccf66c 100644
--- a/srcpkgs/cpulimit/template
+++ b/srcpkgs/cpulimit/template
@@ -9,7 +9,6 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/opsengine/cpulimit"
 distfiles="https://github.com/opsengine/${pkgname}/archive/v${version}.tar.gz"
 checksum=64312f9ac569ddcadb615593cd002c94b76e93a0d4625d3ce1abb49e08e2c2da
-patch_args=-Np0
 
 pre_build() {
 	export CFLAGS="$CFLAGS $LDFLAGS"
diff --git a/srcpkgs/criu/patches/capsetget.patch b/srcpkgs/criu/patches/capsetget.patch
index bd6f9d5017af..ef6afb46f9b9 100644
--- a/srcpkgs/criu/patches/capsetget.patch
+++ b/srcpkgs/criu/patches/capsetget.patch
@@ -1,7 +1,7 @@
 diff --git a/criu/namespaces.c b/criu/namespaces.c
 index 05d75d5..9d9bf5a 100644
---- criu/namespaces.c
-+++ criu/namespaces.c
+--- a/criu/namespaces.c
++++ b/criu/namespaces.c
 @@ -9,7 +9,7 @@
  #include <stdarg.h>
  #include <signal.h>
diff --git a/srcpkgs/criu/patches/ppc64-musl.patch b/srcpkgs/criu/patches/ppc64-musl.patch
index a1a4648eb481..eaf2a813f190 100644
--- a/srcpkgs/criu/patches/ppc64-musl.patch
+++ b/srcpkgs/criu/patches/ppc64-musl.patch
@@ -1,7 +1,7 @@
 Get rid of some header conflicts and glibc specific things.
 
---- compel/arch/ppc64/src/lib/include/uapi/asm/infect-types.h
-+++ compel/arch/ppc64/src/lib/include/uapi/asm/infect-types.h
+--- a/compel/arch/ppc64/src/lib/include/uapi/asm/infect-types.h
++++ b/compel/arch/ppc64/src/lib/include/uapi/asm/infect-types.h
 @@ -1,6 +1,8 @@
  #ifndef UAPI_COMPEL_ASM_TYPES_H__
  #define UAPI_COMPEL_ASM_TYPES_H__
@@ -33,8 +33,8 @@ Get rid of some header conflicts and glibc specific things.
  		uint64_t vsxregs[NVSXREG];
  	} tm;
  } user_fpregs_struct_t;
---- compel/arch/ppc64/src/lib/infect.c
-+++ compel/arch/ppc64/src/lib/infect.c
+--- a/compel/arch/ppc64/src/lib/infect.c
++++ b/compel/arch/ppc64/src/lib/infect.c
 @@ -1,7 +1,6 @@
  #include <sys/ptrace.h>
  #include <sys/types.h>
@@ -62,8 +62,8 @@ Get rid of some header conflicts and glibc specific things.
  	mc->v_regs = v_regs;
  }
  
---- criu/arch/ppc64/crtools.c
-+++ criu/arch/ppc64/crtools.c
+--- a/criu/arch/ppc64/crtools.c
++++ b/criu/arch/ppc64/crtools.c
 @@ -1,7 +1,6 @@
  #include <string.h>
  #include <unistd.h>
@@ -133,8 +133,8 @@ Get rid of some header conflicts and glibc specific things.
  	/* vscr has been restored with the previous memcpy which copied 32
  	 * 128bits registers + a 128bits field containing the vscr value in
  	 * the low part.
---- include/common/arch/ppc64/asm/cmpxchg.h
-+++ include/common/arch/ppc64/asm/cmpxchg.h
+--- a/include/common/arch/ppc64/asm/cmpxchg.h
++++ b/include/common/arch/ppc64/asm/cmpxchg.h
 @@ -1,6 +1,10 @@
  #ifndef __CR_CMPXCHG_H__
  #define __CR_CMPXCHG_H__
diff --git a/srcpkgs/criu/template b/srcpkgs/criu/template
index 2c9eda89e078..c9f68933e756 100644
--- a/srcpkgs/criu/template
+++ b/srcpkgs/criu/template
@@ -18,7 +18,6 @@ homepage="http://criu.org/"
 distfiles="https://download.openvz.org/criu/criu-${version}.tar.bz2"
 checksum=f63f30188b84e9a611429f732381f27e37c60cde0afc9821600f8597d21e39cb
 nocross="fails to run protobuf internals"
-patch_args=-Np0
 
 do_install() {
 	make DESTDIR=${DESTDIR} PREFIX=/usr LOGROTATEDIR=/etc/logrotate.d \
diff --git a/srcpkgs/crossguid/patches/no-O3.patch b/srcpkgs/crossguid/patches/no-O3.patch
index 983360a07ccf..fa13cbdd40b0 100644
--- a/srcpkgs/crossguid/patches/no-O3.patch
+++ b/srcpkgs/crossguid/patches/no-O3.patch
@@ -1,7 +1,7 @@
 Index: CMakeLists.txt
 ===================================================================
---- CMakeLists.txt.orig
-+++ CMakeLists.txt
+--- a/CMakeLists.txt.orig
++++ b/CMakeLists.txt
 @@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 3.5.1)
  project(CrossGuid)
  
diff --git a/srcpkgs/crossguid/template b/srcpkgs/crossguid/template
index acec95753554..c846590103fa 100644
--- a/srcpkgs/crossguid/template
+++ b/srcpkgs/crossguid/template
@@ -10,7 +10,6 @@ license="MIT"
 homepage="https://github.com/graeme-hill/crossguid"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=48321928473c682b0cdc7e17bbd3390f79f4b98ab22fef3b81a852dda81fd195
-patch_args=-Np0
 
 do_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/crypto++/patches/musl-soname-links.patch b/srcpkgs/crypto++/patches/musl-soname-links.patch
index 4d9b37e4c63f..b9cba6664285 100644
--- a/srcpkgs/crypto++/patches/musl-soname-links.patch
+++ b/srcpkgs/crypto++/patches/musl-soname-links.patch
@@ -1,5 +1,5 @@
---- GNUmakefile	2019-10-20 13:33:45.272028979 +0200
-+++ -	2019-10-20 13:37:32.987528589 +0200
+--- a/GNUmakefile
++++ b/-
 @@ -1256,7 +1256,7 @@
  	$(CHMOD) 0755 $(DESTDIR)$(LIBDIR)/libcryptopp.so$(SOLIB_VERSION_SUFFIX)
  ifeq ($(HAS_SOLIB_VERSION),1)
@@ -9,8 +9,8 @@
  endif
  endif
  ifneq ($(wildcard libcryptopp.pc),)
---- GNUmakefile-cross	2019-04-29 01:36:50.000000000 +0200
-+++ -	2019-10-20 13:38:49.796656638 +0200
+--- a/GNUmakefile-cross
++++ b/-
 @@ -732,7 +732,7 @@
  	$(CHMOD) 0755 $(DESTDIR)$(LIBDIR)/libcryptopp.so$(SOLIB_VERSION_SUFFIX)
  ifeq ($(HAS_SOLIB_VERSION),1)
diff --git a/srcpkgs/crypto++/template b/srcpkgs/crypto++/template
index ecc5291e1b3f..b524377319ea 100644
--- a/srcpkgs/crypto++/template
+++ b/srcpkgs/crypto++/template
@@ -14,7 +14,6 @@ license="BSL-1.0"
 homepage="http://www.cryptopp.com/"
 distfiles="https://github.com/weidai11/cryptopp/archive/CRYPTOPP_${version//./_}.tar.gz"
 checksum=63304c6f943f435a4e385273e15abb69cff3b85a44663150bf5a6069b84abd43
-patch_args=-Np0
 
 CXXFLAGS="-DNDEBUG -fPIC"
 
diff --git a/srcpkgs/csound/patches/arm.patch b/srcpkgs/csound/patches/arm.patch
index 122738a68d2b..581ecd7c8a6b 100644
--- a/srcpkgs/csound/patches/arm.patch
+++ b/srcpkgs/csound/patches/arm.patch
@@ -1,7 +1,7 @@
 diff --git OOps/pffft.c OOps/pffft.c
 index e9696a7..3163cf8 100644
---- OOps/pffft.c
-+++ OOps/pffft.c
+--- a/OOps/pffft.c
++++ b/OOps/pffft.c
 @@ -154,7 +154,7 @@ typedef __m128 v4sf;
  /*
    ARM NEON support macros
diff --git a/srcpkgs/csound/template b/srcpkgs/csound/template
index d38bf3627200..f02f97bc6325 100644
--- a/srcpkgs/csound/template
+++ b/srcpkgs/csound/template
@@ -18,7 +18,6 @@ license="LGPL-2.1-or-later"
 homepage="https://csound.com/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=d47ed0fb70c752cb06ee2655ee9f010d8d1e369fc73d09d2ac2bc1b3060bf724
-patch_args=-Np0
 
 CFLAGS="-fcommon"
 CXXFLAGS="-Wno-error -fcommon"
diff --git a/srcpkgs/csync2/patches/CVE-2019-15522.patch b/srcpkgs/csync2/patches/CVE-2019-15522.patch
index 3042473d0465..a37a8b453ca9 100644
--- a/srcpkgs/csync2/patches/CVE-2019-15522.patch
+++ b/srcpkgs/csync2/patches/CVE-2019-15522.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] fail HELLO command when SSL is required
 
 diff --git daemon.c daemon.c
 index 2d8407d..2a1a8af 100644
---- daemon.c
-+++ daemon.c
+--- a/daemon.c
++++ b/daemon.c
 @@ -747,6 +747,7 @@ void csync_daemon_session()
  						goto conn_without_ssl_ok;
  				}
diff --git a/srcpkgs/csync2/patches/musl-strlcpy.patch b/srcpkgs/csync2/patches/musl-strlcpy.patch
index 5b9342f55c44..5b665586689f 100644
--- a/srcpkgs/csync2/patches/musl-strlcpy.patch
+++ b/srcpkgs/csync2/patches/musl-strlcpy.patch
@@ -1,5 +1,5 @@
---- rsync.c	2015-03-09 15:08:51.000000000 +0100
-+++ rsync.c	2015-10-06 16:44:57.988159380 +0200
+--- a/rsync.c
++++ b/rsync.c
 @@ -39,6 +39,7 @@
  #endif
  
diff --git a/srcpkgs/csync2/template b/srcpkgs/csync2/template
index 1b16f75c10ee..f8738551c270 100644
--- a/srcpkgs/csync2/template
+++ b/srcpkgs/csync2/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://oss.linbit.com/csync2/"
 distfiles="https://github.com/LINBIT/csync2/archive/csync2-$version.tar.gz"
 checksum=a1c6b0364eb9f19986a92fccd369bae29aa5aa55300e0664dadaf80d80de23ff
-patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ctags/patches/0001-Strip-libiconv-dependant-tests.patch b/srcpkgs/ctags/patches/0001-Strip-libiconv-dependant-tests.patch
index 821d0d1f6c87..f4fe679fd8da 100644
--- a/srcpkgs/ctags/patches/0001-Strip-libiconv-dependant-tests.patch
+++ b/srcpkgs/ctags/patches/0001-Strip-libiconv-dependant-tests.patch
@@ -38,15 +38,15 @@ Signed-off-by: Reed Wade <reedwade@misterbanal.net>
 diff --git Tmain/input-encoding-option.d/exit-expected.txt Tmain/input-encoding-option.d/exit-expected.txt
 deleted file mode 100644
 index 573541ac..00000000
---- Tmain/input-encoding-option.d/exit-expected.txt
-+++ /dev/null
+--- a/Tmain/input-encoding-option.d/exit-expected.txt
++++ b//dev/null
 @@ -1 +0,0 @@
 -0
 diff --git Tmain/input-encoding-option.d/input.java Tmain/input-encoding-option.d/input.java
 deleted file mode 100644
 index f1ebd5d6..00000000
---- Tmain/input-encoding-option.d/input.java
-+++ /dev/null
+--- a/Tmain/input-encoding-option.d/input.java
++++ b//dev/null
 @@ -1,4 +0,0 @@
 -class Foo { // FooƒNƒ‰ƒX
 -	public Foo() { // ƒRƒ“ƒXƒgƒ‰ƒNƒ^
@@ -55,15 +55,15 @@ index f1ebd5d6..00000000
 diff --git Tmain/input-encoding-option.d/input.js Tmain/input-encoding-option.d/input.js
 deleted file mode 100644
 index 8bfcd659..00000000
---- Tmain/input-encoding-option.d/input.js
-+++ /dev/null
+--- a/Tmain/input-encoding-option.d/input.js
++++ b//dev/null
 @@ -1 +0,0 @@
 -var a = 1; // ÊÑ¿ô½é´ü²½
 diff --git Tmain/input-encoding-option.d/run.sh Tmain/input-encoding-option.d/run.sh
 deleted file mode 100644
 index 16a5d21b..00000000
---- Tmain/input-encoding-option.d/run.sh
-+++ /dev/null
+--- a/Tmain/input-encoding-option.d/run.sh
++++ b//dev/null
 @@ -1,22 +0,0 @@
 -#!/bin/sh
 -
@@ -96,8 +96,8 @@ index e69de29b..00000000
 diff --git Tmain/input-encoding-option.d/tags-expected.txt Tmain/input-encoding-option.d/tags-expected.txt
 deleted file mode 100644
 index 07ddd7d6..00000000
---- Tmain/input-encoding-option.d/tags-expected.txt
-+++ /dev/null
+--- a/Tmain/input-encoding-option.d/tags-expected.txt
++++ b//dev/null
 @@ -1,14 +0,0 @@
 -!_TAG_FILE_ENCODING	UTF-8	//
 -!_TAG_FILE_FORMAT	2	/extended format; --format=1 will not append ;" to lines/
@@ -116,15 +116,15 @@ index 07ddd7d6..00000000
 diff --git Tmain/output-encoding-option.d/exit-expected.txt Tmain/output-encoding-option.d/exit-expected.txt
 deleted file mode 100644
 index 573541ac..00000000
---- Tmain/output-encoding-option.d/exit-expected.txt
-+++ /dev/null
+--- a/Tmain/output-encoding-option.d/exit-expected.txt
++++ b//dev/null
 @@ -1 +0,0 @@
 -0
 diff --git Tmain/output-encoding-option.d/input.java Tmain/output-encoding-option.d/input.java
 deleted file mode 100644
 index 234c5b20..00000000
---- Tmain/output-encoding-option.d/input.java
-+++ /dev/null
+--- a/Tmain/output-encoding-option.d/input.java
++++ b//dev/null
 @@ -1,4 +0,0 @@
 -class Foo { // Fooクラス
 -	public Foo() { // コンストラクタ
@@ -133,15 +133,15 @@ index 234c5b20..00000000
 diff --git Tmain/output-encoding-option.d/input.js Tmain/output-encoding-option.d/input.js
 deleted file mode 100644
 index 8bfcd659..00000000
---- Tmain/output-encoding-option.d/input.js
-+++ /dev/null
+--- a/Tmain/output-encoding-option.d/input.js
++++ b//dev/null
 @@ -1 +0,0 @@
 -var a = 1; // ÊÑ¿ô½é´ü²½
 diff --git Tmain/output-encoding-option.d/run.sh Tmain/output-encoding-option.d/run.sh
 deleted file mode 100644
 index 0687e610..00000000
---- Tmain/output-encoding-option.d/run.sh
-+++ /dev/null
+--- a/Tmain/output-encoding-option.d/run.sh
++++ b//dev/null
 @@ -1,21 +0,0 @@
 -#!/bin/sh
 -# Copyright: 2015 Yasuhiro MATSUMOTO
@@ -173,8 +173,8 @@ index e69de29b..00000000
 diff --git Tmain/output-encoding-option.d/tags-expected.txt Tmain/output-encoding-option.d/tags-expected.txt
 deleted file mode 100644
 index be3eae3f..00000000
---- Tmain/output-encoding-option.d/tags-expected.txt
-+++ /dev/null
+--- a/Tmain/output-encoding-option.d/tags-expected.txt
++++ b//dev/null
 @@ -1,14 +0,0 @@
 -!_TAG_FILE_ENCODING	cp932	//
 -!_TAG_FILE_FORMAT	2	/extended format; --format=1 will not append ;" to lines/
diff --git a/srcpkgs/ctags/template b/srcpkgs/ctags/template
index 2395dacd8208..56b3c3dfdfa8 100644
--- a/srcpkgs/ctags/template
+++ b/srcpkgs/ctags/template
@@ -11,7 +11,6 @@ license="GPL-2.0-only"
 homepage="https://ctags.io/"
 distfiles="https://github.com/universal-ctags/ctags/archive/p${version}.tar.gz"
 checksum=26d9efe481a57e81195878cdb0baca730a3c4d234b9a7c4f6bf2c8def42bf42b
-patch_args=-Np0
 
 do_configure() {
 	./autogen.sh
diff --git a/srcpkgs/cubieboard2-uboot/patches/uuid.patch b/srcpkgs/cubieboard2-uboot/patches/uuid.patch
index 5a1cf45624d2..ac74fda8c843 100644
--- a/srcpkgs/cubieboard2-uboot/patches/uuid.patch
+++ b/srcpkgs/cubieboard2-uboot/patches/uuid.patch
@@ -1,5 +1,5 @@
---- include/config_distro_defaults.h
-+++ include/config_distro_defaults.h
+--- a/include/config_distro_defaults.h
++++ b/include/config_distro_defaults.h
 @@ -53,4 +53,7 @@
  #define CONFIG_SUPPORT_RAW_INITRD
  #define CONFIG_SYS_HUSH_PARSER
diff --git a/srcpkgs/cubieboard2-uboot/template b/srcpkgs/cubieboard2-uboot/template
index 8861e5c7b174..23f63f574f00 100644
--- a/srcpkgs/cubieboard2-uboot/template
+++ b/srcpkgs/cubieboard2-uboot/template
@@ -10,7 +10,6 @@ license="GPL-2"
 homepage="http://www.denx.de/wiki/U-Boot/WebHome"
 distfiles="ftp://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2"
 checksum=45813e6565dcc0436abe6752624324cdbf5f3ac106570d76d32b46ec529bcdc8
-patch_args=-Np0
 
 archs="armv7l*"
 
diff --git a/srcpkgs/cuetools/patches/unicode.diff b/srcpkgs/cuetools/patches/unicode.diff
index e5d15e2f60d9..22830e519dfb 100644
--- a/srcpkgs/cuetools/patches/unicode.diff
+++ b/srcpkgs/cuetools/patches/unicode.diff
@@ -1,5 +1,5 @@
---- src/lib/cue_scan.l
-+++ src/lib/cue_scan.l
+--- a/src/lib/cue_scan.l
++++ b/src/lib/cue_scan.l
 @@ -18,6 +18,20 @@ int cue_lineno = 1;
  ws		[ \t\r]
  nonws		[^ \t\r\n]
diff --git a/srcpkgs/cuetools/template b/srcpkgs/cuetools/template
index 8eb6785e684e..7e039c051c73 100644
--- a/srcpkgs/cuetools/template
+++ b/srcpkgs/cuetools/template
@@ -10,7 +10,6 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/svend/cuetools"
 distfiles="https://github.com/svend/${pkgname}/archive/${version}.tar.gz"
 checksum=24a2420f100c69a6539a9feeb4130d19532f9f8a0428a8b9b289c6da761eb107
-patch_args=-Np0
 
 pre_configure() {
 	aclocal
diff --git a/srcpkgs/cups-pdf/patches/print-to-home.patch b/srcpkgs/cups-pdf/patches/print-to-home.patch
index 9d1cd4e7377f..9386e6d1b256 100644
--- a/srcpkgs/cups-pdf/patches/print-to-home.patch
+++ b/srcpkgs/cups-pdf/patches/print-to-home.patch
@@ -1,7 +1,7 @@
 # reason: print to $HOME by default
 
---- extra/cups-pdf.conf
-+++ extra/cups-pdf.conf
+--- a/extra/cups-pdf.conf
++++ b/extra/cups-pdf.conf
 @@ -42,17 +42,17 @@
  ### Key: Out (config)
  ##  CUPS-PDF output directory 
diff --git a/srcpkgs/cups-pdf/template b/srcpkgs/cups-pdf/template
index b8339fc1bf21..897437df779b 100644
--- a/srcpkgs/cups-pdf/template
+++ b/srcpkgs/cups-pdf/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.cups-pdf.de/"
 distfiles="https://www.cups-pdf.de/src/${pkgname}_${version}.tar.gz"
 checksum=738669edff7f1469fe5e411202d87f93ba25b45f332a623fb607d49c59aa9531
-patch_args=-Np0
 
 do_build() {
 	$CC $CFLAGS -o $pkgname src/cups-pdf.c -lcups ${LDFLAGS}
diff --git a/srcpkgs/cups/patches/cups-no-export-ssllibs.patch b/srcpkgs/cups/patches/cups-no-export-ssllibs.patch
index 0a5a80f0430e..73dcf85e944c 100644
--- a/srcpkgs/cups/patches/cups-no-export-ssllibs.patch
+++ b/srcpkgs/cups/patches/cups-no-export-ssllibs.patch
@@ -1,5 +1,5 @@
---- config-scripts/cups-ssl.m4.no-export-ssllibs	2011-05-11 02:52:08.000000000 +0200
-+++ config-scripts/cups-ssl.m4	2011-05-23 17:47:27.000000000 +0200
+--- a/config-scripts/cups-ssl.m4.no-export-ssllibs
++++ b/config-scripts/cups-ssl.m4
 @@ -180,7 +180,7 @@
  AC_SUBST(SSLFLAGS)
  AC_SUBST(SSLLIBS)
diff --git a/srcpkgs/cups/template b/srcpkgs/cups/template
index 9520c2240a0a..66204733fa86 100644
--- a/srcpkgs/cups/template
+++ b/srcpkgs/cups/template
@@ -17,7 +17,6 @@ license="Apache-2.0"
 homepage="https://github.com/OpenPrinting/cups"
 distfiles="https://github.com/OpenPrinting/cups/releases/download/v${version}/cups-${version}-source.tar.gz"
 checksum=deb3575bbe79c0ae963402787f265bfcf8d804a71fc2c94318a74efec86f96df
-patch_args=-Np0
 
 conf_files="/etc/pam.d/cups /etc/cups/*.conf /etc/xinetd.d/cups-lpd"
 make_dirs="
diff --git a/srcpkgs/cura-engine/patches/fix-cflags.patch b/srcpkgs/cura-engine/patches/fix-cflags.patch
index e48a665523b8..2c8831e3a292 100644
--- a/srcpkgs/cura-engine/patches/fix-cflags.patch
+++ b/srcpkgs/cura-engine/patches/fix-cflags.patch
@@ -1,7 +1,7 @@
 Index: CMakeLists.txt
 ===================================================================
---- CMakeLists.txt.orig
-+++ CMakeLists.txt
+--- a/CMakeLists.txt.orig
++++ b/CMakeLists.txt
 @@ -42,7 +42,7 @@ endif()
  if(CMAKE_BUILD_TYPE_UPPER MATCHES "DEBUG")
      set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG_INIT}")
diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index adb5f59e0aad..e138e37605db 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -14,7 +14,6 @@ license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
 checksum=7e1e408f269a604418f37575ba8ef5f69323bebc4dd7f3091c1c2e9b000ffcbf
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-create-fix.patch b/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-create-fix.patch
index 5f071a38d33c..7d66aa2458ac 100644
--- a/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-create-fix.patch
+++ b/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-create-fix.patch
@@ -1,5 +1,5 @@
---- ftpfs.c	2013-05-12 14:31:57.000000000 +0400
-+++ ftpfs.c	2013-05-12 14:29:00.906721322 +0400
+--- a/ftpfs.c
++++ b/ftpfs.c
 @@ -759,13 +759,13 @@
  		err = -ENOTSUP;
  	  }
diff --git a/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-memleak#591298.patch b/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-memleak#591298.patch
index bc995aed60ad..e328a8638862 100644
--- a/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-memleak#591298.patch
+++ b/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-memleak#591298.patch
@@ -1,5 +1,5 @@
---- ftpfs.c	
-+++ ftpfs.c	
+--- a/ftpfs.c
++++ b/ftpfs.c
 @@ -615,6 +615,8 @@ static void free_ftpfs_file(struct ftpfs
    sem_destroy(&fh->data_need);
    sem_destroy(&fh->data_written);
diff --git a/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-memleak-cached#591299.patch b/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-memleak-cached#591299.patch
index fc7d8fcc801a..8ae2f72d082c 100644
--- a/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-memleak-cached#591299.patch
+++ b/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-memleak-cached#591299.patch
@@ -1,5 +1,5 @@
---- cache.c	
-+++ cache.c	
+--- a/cache.c
++++ b/cache.c
 @@ -25,7 +25,7 @@ struct cache {
      time_t last_cleaned;
  };
@@ -9,8 +9,8 @@
  
  struct node {
      struct stat stat;
---- ftpfs-ls.c	
-+++ ftpfs-ls.c	
+--- a/ftpfs-ls.c
++++ b/ftpfs-ls.c
 @@ -25,6 +25,13 @@ 
  #include "charset_utils.h"
  #include "ftpfs-ls.h"
diff --git a/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-offset_64_another.patch b/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-offset_64_another.patch
index 940ddb0191bd..6a00bb3b9ec3 100644
--- a/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-offset_64_another.patch
+++ b/srcpkgs/curlftpfs/patches/curlftpfs-0.9.2-offset_64_another.patch
@@ -1,5 +1,5 @@
---- ftpfs.c	
-+++ ftpfs.c	
+--- a/ftpfs.c
++++ b/ftpfs.c
 @@ -503,7 +503,6 @@ static void *ftpfs_write_thread(void *da
    
    curl_easy_setopt_or_die(fh->write_conn, CURLOPT_URL, fh->full_path);
diff --git a/srcpkgs/curlftpfs/patches/fix-musl.patch b/srcpkgs/curlftpfs/patches/fix-musl.patch
index f853b4b29945..cd3e01e2715d 100644
--- a/srcpkgs/curlftpfs/patches/fix-musl.patch
+++ b/srcpkgs/curlftpfs/patches/fix-musl.patch
@@ -1,5 +1,5 @@
---- ftpfs.c.orig	2019-03-21 19:21:55.591218591 +0100
-+++ ftpfs.c	2019-03-21 19:22:10.270696908 +0100
+--- a/ftpfs.c
++++ b/ftpfs.c
 @@ -687,7 +687,7 @@ static int test_exists(const char* path)
  	return ftpfs_getattr(path, &sbuf);
  }
diff --git a/srcpkgs/curlftpfs/template b/srcpkgs/curlftpfs/template
index aaabe2018457..c1f06571aa24 100644
--- a/srcpkgs/curlftpfs/template
+++ b/srcpkgs/curlftpfs/template
@@ -11,4 +11,3 @@ homepage="http://curlftpfs.sourceforge.net/"
 license="GPL-2"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4eb44739c7078ba0edde177bdd266c4cfb7c621075f47f64c85a06b12b3c6958
-patch_args=-Np0
diff --git a/srcpkgs/cutecom/patches/QPainterPath.patch b/srcpkgs/cutecom/patches/QPainterPath.patch
index 046b62dda02f..77643638da77 100644
--- a/srcpkgs/cutecom/patches/QPainterPath.patch
+++ b/srcpkgs/cutecom/patches/QPainterPath.patch
@@ -1,5 +1,5 @@
---- ctrlcharacterspopup.cpp	2018-09-01 13:46:58.000000000 +0200
-+++ ctrlcharacterspopup.cpp	2020-08-31 18:56:06.795380165 +0200
+--- a/ctrlcharacterspopup.cpp
++++ b/ctrlcharacterspopup.cpp
 @@ -23,6 +23,7 @@
  #include <QApplication>
  #include <QKeyEvent>
diff --git a/srcpkgs/cutecom/template b/srcpkgs/cutecom/template
index e5cd27e3ea63..4aad5728d348 100644
--- a/srcpkgs/cutecom/template
+++ b/srcpkgs/cutecom/template
@@ -12,4 +12,3 @@ license="GPL-3.0-only"
 homepage="https://gitlab.com/cutecom/cutecom/"
 distfiles="https://gitlab.com/cutecom/cutecom/-/archive/v${version}/cutecom-v${version}.tar.gz"
 checksum=4b2591daa983b31716091bd1602988b5a06a19c1a3402150826fc36233edbedd
-patch_args=-Np0
diff --git a/srcpkgs/cutemarked/patches/QAction.patch b/srcpkgs/cutemarked/patches/QAction.patch
index abed5ad1d4f6..43122de64776 100644
--- a/srcpkgs/cutemarked/patches/QAction.patch
+++ b/srcpkgs/cutemarked/patches/QAction.patch
@@ -1,5 +1,5 @@
---- app/optionsdialog.cpp	2016-03-28 13:48:50.000000000 +0200
-+++ -	2019-07-02 18:59:36.832374065 +0200
+--- a/app/optionsdialog.cpp
++++ b/-
 @@ -17,6 +17,7 @@
  #include "optionsdialog.h"
  #include "ui_optionsdialog.h"
diff --git a/srcpkgs/cutemarked/template b/srcpkgs/cutemarked/template
index ddf409fb9a76..39f15d81ea08 100644
--- a/srcpkgs/cutemarked/template
+++ b/srcpkgs/cutemarked/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="http://cloose.github.io/CuteMarkEd/"
 distfiles="https://github.com/cloose/${pkgname}/archive/v${version}.tar.gz"
 checksum=78a41808c2f0452375810abdff76eeaaee012f8d1368a2b8772ec6b4d2ceeec8
-patch_args=-Np0
 
 pre_build() {
 	lrelease app/app.pro
diff --git a/srcpkgs/cvs/patches/ssh.patch b/srcpkgs/cvs/patches/ssh.patch
index 21688953a520..a84360cdba81 100644
--- a/srcpkgs/cvs/patches/ssh.patch
+++ b/srcpkgs/cvs/patches/ssh.patch
@@ -1,7 +1,7 @@
 Fix for CVE-2017-12836, extracted from MirBSD repository.
 
---- src/rsh-client.c	2017/03/26 15:54:10	1.6
-+++ src/rsh-client.c	2017/08/11 20:41:40	1.7
+--- a/src/rsh-client.c
++++ b/src/rsh-client.c
 @@ -107,6 +108,9 @@ start_rsh_server (cvsroot_t *root, struc
  	rsh_argv[i++] = argvport;
      }
diff --git a/srcpkgs/cvs/patches/vasnprintf.diff b/srcpkgs/cvs/patches/vasnprintf.diff
index f6647177a88f..dc26cdc8820b 100644
--- a/srcpkgs/cvs/patches/vasnprintf.diff
+++ b/srcpkgs/cvs/patches/vasnprintf.diff
@@ -1,5 +1,5 @@
---- lib/vasnprintf.c.orig	2015-05-16 16:57:13.712246576 +0200
-+++ lib/vasnprintf.c	2015-05-16 16:57:38.471145720 +0200
+--- a/lib/vasnprintf.c
++++ b/lib/vasnprintf.c
 @@ -557,13 +557,7 @@
  		    break;
  		  }
diff --git a/srcpkgs/cvs/template b/srcpkgs/cvs/template
index 25d4446d64d7..c37384b54302 100644
--- a/srcpkgs/cvs/template
+++ b/srcpkgs/cvs/template
@@ -14,4 +14,3 @@ homepage="http://www.nongnu.org/cvs/"
 license="GPL-1, LGPL-2"
 distfiles="http://ftp.gnu.org/non-gnu/cvs/source/feature/$version/cvs-$version.tar.bz2"
 checksum=78853613b9a6873a30e1cc2417f738c330e75f887afdaf7b3d0800cb19ca515e
-patch_args=-Np0
diff --git a/srcpkgs/cvsps2/patches/inet_addr-64bit.patch b/srcpkgs/cvsps2/patches/inet_addr-64bit.patch
index c064941690e6..0073e33f4b7d 100644
--- a/srcpkgs/cvsps2/patches/inet_addr-64bit.patch
+++ b/srcpkgs/cvsps2/patches/inet_addr-64bit.patch
@@ -1,6 +1,6 @@
 Use INADDR_NONE instead of -1 to check inet_addr() result
---- cbtcommon/tcpsocket.c.1   2013-04-14 13:21:14.848464155 +0400
-+++ cbtcommon/tcpsocket.c     2013-04-14 13:23:23.015136709 +0400
+--- a/cbtcommon/tcpsocket.c.1   2013-04-14 13:21:14.848464155 +0400
++++ b/cbtcommon/tcpsocket.c     2013-04-14 13:23:23.015136709 +0400
 @@ -198,7 +198,7 @@
      memcpy(dest, &ip.s_addr, sizeof(ip.s_addr));
    }
diff --git a/srcpkgs/cvsps2/template b/srcpkgs/cvsps2/template
index b80618d32173..1bf720a7774c 100644
--- a/srcpkgs/cvsps2/template
+++ b/srcpkgs/cvsps2/template
@@ -11,7 +11,6 @@ license="GPL-2.0-only"
 homepage="http://cvsps.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/cvsps/cvsps-${version}.tar.gz"
 checksum=91d3198b33463861a581686d5fcf99a5c484e7c4d819384c04fda9cafec1075a
-patch_args=-Np0
 
 post_extract() {
 	sed -i 's/linux/__GLIBC__/g' cbtcommon/text_util.c

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [RFC] switch patch_args to -Np1
  2021-06-18  1:38 [PR PATCH] [RFC] switch patch_args to -Np1 sgn
                   ` (5 preceding siblings ...)
  2021-06-18 11:33 ` sgn
@ 2021-06-18 11:39 ` q66
  2021-06-18 12:03 ` [PR PATCH] [Updated] " sgn
  2021-06-18 16:51 ` q66
  8 siblings, 0 replies; 10+ messages in thread
From: q66 @ 2021-06-18 11:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 278 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/31550#issuecomment-863975429

Comment:
i just wonder if there's a point in doing it like this and not just modifying all the patches in one pass (considering it appears scriptable)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] [RFC] switch patch_args to -Np1
  2021-06-18  1:38 [PR PATCH] [RFC] switch patch_args to -Np1 sgn
                   ` (6 preceding siblings ...)
  2021-06-18 11:39 ` q66
@ 2021-06-18 12:03 ` sgn
  2021-06-18 16:51 ` q66
  8 siblings, 0 replies; 10+ messages in thread
From: sgn @ 2021-06-18 12:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 383 bytes --]

There is an updated pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages patch-args-Np1
https://github.com/void-linux/void-packages/pull/31550

[RFC] switch patch_args to -Np1
[ci skip]

Being suggested on IRC @void-linux/pkg-committers 

A patch file from https://github.com/void-linux/void-packages/pull/31550.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-patch-args-Np1-31550.patch --]
[-- Type: text/x-diff, Size: 1032126 bytes --]

From 6ca29cb8f814d664172d579c5ee61aef820134fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:09:47 +0700
Subject: [PATCH 1/7] grub: unify patch_args to -Np1

---
 .../0004-add-GRUB_COLOR_variables.patch       |  8 +++----
 .../grub-install-pvxen-paths.patch.args       |  1 -
 .../grub/patches/ieee1275-clear-reset.patch   |  4 ++--
 .../patches/install_powerpc_machtypes.patch   | 24 +++++++++----------
 srcpkgs/grub/patches/os-prober-osx86.patch    |  4 ++--
 .../grub/patches/ppc64el-disable-vsx.patch    |  4 ++--
 srcpkgs/grub/template                         |  1 +
 7 files changed, 23 insertions(+), 23 deletions(-)
 delete mode 100644 srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args

diff --git a/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch b/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch
index f899717c4d99..c113a81d5754 100644
--- a/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch
+++ b/srcpkgs/grub/patches/0004-add-GRUB_COLOR_variables.patch
@@ -1,7 +1,7 @@
 diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
 index 3390ba9..c416489 100644
---- util/grub-mkconfig.in
-+++ util/grub-mkconfig.in
+--- a/util/grub-mkconfig.in
++++ b/util/grub-mkconfig.in
 @@ -218,6 +218,8 @@ export GRUB_DEFAULT \
    GRUB_THEME \
    GRUB_GFXPAYLOAD_LINUX \
@@ -13,8 +13,8 @@ index 3390ba9..c416489 100644
    GRUB_ENABLE_CRYPTODISK \
 diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in
 index d2e7252..8259f45 100644
---- util/grub.d/00_header.in
-+++ util/grub.d/00_header.in
+--- a/util/grub.d/00_header.in
++++ b/util/grub.d/00_header.in
 @@ -125,6 +125,14 @@ cat <<EOF
  
  EOF
diff --git a/srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args b/srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args
deleted file mode 100644
index 2eba1cb3c5ce..000000000000
--- a/srcpkgs/grub/patches/grub-install-pvxen-paths.patch.args
+++ /dev/null
@@ -1 +0,0 @@
--Np1
diff --git a/srcpkgs/grub/patches/ieee1275-clear-reset.patch b/srcpkgs/grub/patches/ieee1275-clear-reset.patch
index 96b9bd63f125..18ff7733bdb1 100644
--- a/srcpkgs/grub/patches/ieee1275-clear-reset.patch
+++ b/srcpkgs/grub/patches/ieee1275-clear-reset.patch
@@ -19,8 +19,8 @@ Patch-Name: ieee1275-clear-reset.patch
 
 diff --git a/grub-core/term/terminfo.c b/grub-core/term/terminfo.c
 index f0d3e3deb..7cb7909c8 100644
---- grub-core/term/terminfo.c
-+++ grub-core/term/terminfo.c
+--- a/grub-core/term/terminfo.c
++++ b/grub-core/term/terminfo.c
 @@ -151,7 +151,7 @@ grub_terminfo_set_current (struct grub_term_output *term,
        /* Clear the screen.  Using serial console, screen(1) only recognizes the
         * ANSI escape sequence.  Using video console, Apple Open Firmware
diff --git a/srcpkgs/grub/patches/install_powerpc_machtypes.patch b/srcpkgs/grub/patches/install_powerpc_machtypes.patch
index ce5e36cb4a57..209b726c77ee 100644
--- a/srcpkgs/grub/patches/install_powerpc_machtypes.patch
+++ b/srcpkgs/grub/patches/install_powerpc_machtypes.patch
@@ -26,8 +26,8 @@ Patch-Name: install_powerpc_machtypes.patch
 
 diff --git a/grub-core/osdep/basic/platform.c b/grub-core/osdep/basic/platform.c
 index 4b5502aeb..2ab907976 100644
---- grub-core/osdep/basic/platform.c
-+++ grub-core/osdep/basic/platform.c
+--- a/grub-core/osdep/basic/platform.c
++++ b/grub-core/osdep/basic/platform.c
 @@ -24,3 +24,8 @@ grub_install_get_default_x86_platform (void)
    return "i386-pc";
  }
@@ -39,8 +39,8 @@ index 4b5502aeb..2ab907976 100644
 +}
 diff --git a/grub-core/osdep/linux/platform.c b/grub-core/osdep/linux/platform.c
 index 35f1bcc0e..9805c36d4 100644
---- grub-core/osdep/linux/platform.c
-+++ grub-core/osdep/linux/platform.c
+--- a/grub-core/osdep/linux/platform.c
++++ b/grub-core/osdep/linux/platform.c
 @@ -23,6 +23,7 @@
  #include <grub/emu/misc.h>
  #include <sys/types.h>
@@ -126,8 +126,8 @@ index 35f1bcc0e..9805c36d4 100644
 +}
 diff --git a/grub-core/osdep/unix/platform.c b/grub-core/osdep/unix/platform.c
 index a3fcfcaca..28cb37e15 100644
---- grub-core/osdep/unix/platform.c
-+++ grub-core/osdep/unix/platform.c
+--- a/grub-core/osdep/unix/platform.c
++++ b/grub-core/osdep/unix/platform.c
 @@ -212,13 +212,29 @@ grub_install_register_ieee1275 (int is_prep, const char *install_device,
    else
      boot_device = get_ofpathname (install_device);
@@ -166,8 +166,8 @@ index a3fcfcaca..28cb37e15 100644
    free (boot_device);
 diff --git a/grub-core/osdep/windows/platform.c b/grub-core/osdep/windows/platform.c
 index 912269191..c30025b13 100644
---- grub-core/osdep/windows/platform.c
-+++ grub-core/osdep/windows/platform.c
+--- a/grub-core/osdep/windows/platform.c
++++ b/grub-core/osdep/windows/platform.c
 @@ -128,6 +128,12 @@ grub_install_get_default_x86_platform (void)
      return "i386-efi";
  }
@@ -183,8 +183,8 @@ index 912269191..c30025b13 100644
  {
 diff --git a/include/grub/util/install.h b/include/grub/util/install.h
 index 5ca4811cd..9f517a1bb 100644
---- include/grub/util/install.h
-+++ include/grub/util/install.h
+--- a/include/grub/util/install.h
++++ b/include/grub/util/install.h
 @@ -206,6 +206,9 @@ grub_install_create_envblk_file (const char *name);
  const char *
  grub_install_get_default_x86_platform (void);
@@ -197,8 +197,8 @@ index 5ca4811cd..9f517a1bb 100644
  			   const char *efifile_path,
 diff --git a/util/grub-install.c b/util/grub-install.c
 index e1a0202da..70b22eec4 100644
---- util/grub-install.c
-+++ util/grub-install.c
+--- a/util/grub-install.c
++++ b/util/grub-install.c
 @@ -1155,7 +1155,18 @@ main (int argc, char *argv[])
  
    if (platform == GRUB_INSTALL_PLATFORM_POWERPC_IEEE1275)
diff --git a/srcpkgs/grub/patches/os-prober-osx86.patch b/srcpkgs/grub/patches/os-prober-osx86.patch
index 5fabbeb6d993..5226a6def3b2 100644
--- a/srcpkgs/grub/patches/os-prober-osx86.patch
+++ b/srcpkgs/grub/patches/os-prober-osx86.patch
@@ -1,7 +1,7 @@
 Patches OS X detection out of os-prober hook on non-x86 architectures. The
 menu entries generated for those are invalid for non-x86 Mac stuff.
---- util/grub.d/30_os-prober.in
-+++ util/grub.d/30_os-prober.in
+--- a/util/grub.d/30_os-prober.in
++++ b/util/grub.d/30_os-prober.in
 @@ -42,6 +42,11 @@ if [ -z "${OSPROBED}" ] ; then
  fi
  
diff --git a/srcpkgs/grub/patches/ppc64el-disable-vsx.patch b/srcpkgs/grub/patches/ppc64el-disable-vsx.patch
index 1f4c40181521..67744dd23beb 100644
--- a/srcpkgs/grub/patches/ppc64el-disable-vsx.patch
+++ b/srcpkgs/grub/patches/ppc64el-disable-vsx.patch
@@ -22,8 +22,8 @@ Patch-Name: ppc64el-disable-vsx.patch
 
 diff --git a/grub-core/kern/powerpc/ieee1275/startup.S b/grub-core/kern/powerpc/ieee1275/startup.S
 index 21c884b43..de9a9601a 100644
---- grub-core/kern/powerpc/ieee1275/startup.S
-+++ grub-core/kern/powerpc/ieee1275/startup.S
+--- a/grub-core/kern/powerpc/ieee1275/startup.S
++++ b/grub-core/kern/powerpc/ieee1275/startup.S
 @@ -20,6 +20,8 @@
  #include <grub/symbol.h>
  #include <grub/offsets.h>
diff --git a/srcpkgs/grub/template b/srcpkgs/grub/template
index 69cea9ae19a3..11cbdc495f67 100644
--- a/srcpkgs/grub/template
+++ b/srcpkgs/grub/template
@@ -16,6 +16,7 @@ checksum=e5292496995ad42dabe843a0192cf2a2c502e7ffcc7479398232b10a472df77d
 
 archs="i686* x86_64* aarch64* ppc ppc-musl ppc64*"
 nopie=yes
+patch_args=-Np1
 
 subpackages="grub-utils"
 # _SUPPLEMENTARY_BUILDS is a list of <TARGET>-<PLATFORN> version of grub to build

From c0e63bdd7ea0582973f15e23c21446de82409080 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 08:31:53 +0700
Subject: [PATCH 2/7] srcpkgs: adjust patch_args to -Np1 for patches being
 symlinked

---
 srcpkgs/cmake/patches/musl-test.patch          |  4 ++--
 srcpkgs/cmake/patches/test-none.patch          |  4 ++--
 srcpkgs/cmake/template                         |  1 +
 srcpkgs/gsimplecal-gtk2/patches/musl.patch     |  4 ++--
 srcpkgs/gsimplecal-gtk2/template               |  1 +
 ...list_unlink_in_pthread_exit_after_all.patch |  4 ++--
 ...threads_minus_1_as_relaxed_atomic_for.patch | 12 ++++++------
 ...down_size_of_some_libc_struct_members.patch |  4 ++--
 ...ipping_for_processes_that_return_to_s.patch | 16 ++++++++--------
 srcpkgs/musl/patches/CVE-2020-28928.patch      |  4 ++--
 srcpkgs/musl/patches/aarch64-fregs.patch       |  8 ++++----
 srcpkgs/musl/patches/epoll_cp.patch            |  4 ++--
 srcpkgs/musl/patches/isascii.patch             |  4 ++--
 srcpkgs/musl/patches/mo_lookup.patch           |  4 ++--
 srcpkgs/musl/patches/ppc-pt_regs.patch         |  8 ++++----
 srcpkgs/musl/patches/ppc64-fpregset_t.patch    |  4 ++--
 srcpkgs/musl/patches/ppcle.patch               |  4 ++--
 srcpkgs/musl/patches/reallocarray.patch        |  6 +++---
 srcpkgs/musl/template                          |  1 +
 ...al.c-define-__SIGRTMIN-MAX-for-non-GN.patch |  4 ++--
 .../patches/fix-softfloat-fesetround.patch     |  4 ++--
 srcpkgs/qemu/patches/mmap-mremap-efault.patch  |  4 ++--
 srcpkgs/qemu/patches/musl-9p-limits_h.patch    |  4 ++--
 .../qemu/patches/musl-fix-SIOCGSTAMPNS.patch   |  4 ++--
 .../musl-fix-sigevent-and-sigval_t.patch       |  4 ++--
 .../qemu/patches/musl-initialize-msghdr.patch  |  4 ++--
 srcpkgs/qemu/patches/musl-ppc.patch            | 12 ++++++------
 srcpkgs/qemu/patches/time64.patch              |  8 ++++----
 srcpkgs/qemu/patches/xxx-ppcle.patch           | 18 +++++++++---------
 srcpkgs/qemu/template                          |  1 +
 srcpkgs/util-linux/patches/fix-musl.patch      |  4 ++--
 srcpkgs/util-linux/template                    |  1 +
 srcpkgs/xbps/patches/cflags.patch              |  4 ++--
 srcpkgs/xbps/template                          |  1 +
 34 files changed, 90 insertions(+), 84 deletions(-)

diff --git a/srcpkgs/cmake/patches/musl-test.patch b/srcpkgs/cmake/patches/musl-test.patch
index 4da8c2f9cfc6..0329b5efd2f5 100644
--- a/srcpkgs/cmake/patches/musl-test.patch
+++ b/srcpkgs/cmake/patches/musl-test.patch
@@ -1,5 +1,5 @@
---- Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake.orig	2020-12-05 13:27:21.098078774 +0700
-+++ Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake	2020-12-05 13:29:19.931553018 +0700
+--- a/Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake.orig	2020-12-05 13:27:21.098078774 +0700
++++ b/Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/linux-all-check.cmake	2020-12-05 13:29:19.931553018 +0700
 @@ -33,9 +33,9 @@
    [[librunpath_parent_unresolved\.so]]
    [[librunpath_unresolved\.so]]
diff --git a/srcpkgs/cmake/patches/test-none.patch b/srcpkgs/cmake/patches/test-none.patch
index 3a5540551525..e0b6886bb0a2 100644
--- a/srcpkgs/cmake/patches/test-none.patch
+++ b/srcpkgs/cmake/patches/test-none.patch
@@ -24,8 +24,8 @@ Let's define them when non main stream like None is specified as CMAKE_BUILD_TY
 
 diff --git Tests/ConfigSources/CMakeLists.txt Tests/ConfigSources/CMakeLists.txt
 index a3d98f685f..f83759ca10 100644
---- Tests/ConfigSources/CMakeLists.txt
-+++ Tests/ConfigSources/CMakeLists.txt
+--- a/Tests/ConfigSources/CMakeLists.txt
++++ b/Tests/ConfigSources/CMakeLists.txt
 @@ -74,10 +74,10 @@ add_custom_command(APPEND
    VERBATIM
    )
diff --git a/srcpkgs/cmake/template b/srcpkgs/cmake/template
index 5d3308f93b5d..e9ee3debf3c0 100644
--- a/srcpkgs/cmake/template
+++ b/srcpkgs/cmake/template
@@ -17,6 +17,7 @@ homepage="https://www.cmake.org"
 distfiles="https://www.cmake.org/files/v${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=4d008ac3461e271fcfac26a05936f77fc7ab64402156fb371d41284851a651b8
 replaces="cmake-bootstrap>=0"
+patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	build_style=cmake
diff --git a/srcpkgs/gsimplecal-gtk2/patches/musl.patch b/srcpkgs/gsimplecal-gtk2/patches/musl.patch
index 2295d20b338d..eef2a786bb73 100644
--- a/srcpkgs/gsimplecal-gtk2/patches/musl.patch
+++ b/srcpkgs/gsimplecal-gtk2/patches/musl.patch
@@ -1,5 +1,5 @@
---- src/Unique.cpp.orig	2016-04-24 08:08:43.921536576 +0200
-+++ src/Unique.cpp	2016-04-24 08:09:18.615896283 +0200
+--- a/src/Unique.cpp.orig	2016-04-24 08:08:43.921536576 +0200
++++ b/src/Unique.cpp	2016-04-24 08:09:18.615896283 +0200
 @@ -1,10 +1,16 @@
 +#ifdef HAVE_CONFIG_H
 +#include "config.h"
diff --git a/srcpkgs/gsimplecal-gtk2/template b/srcpkgs/gsimplecal-gtk2/template
index 73cf3bd39b88..c7339f62d60e 100644
--- a/srcpkgs/gsimplecal-gtk2/template
+++ b/srcpkgs/gsimplecal-gtk2/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="http://dmedvinsky.github.io/gsimplecal/"
 distfiles="https://github.com/dmedvinsky/${pkgname%-*}/archive/v${version}.tar.gz"
 checksum="660cac7333d3507203a008e142e2b8f5dfcf0735b6ccabdd8d3d902b5d2c40e9"
+patch_args=-Np1
 
 replaces="gsimplecal-gtk3>=0"
 
diff --git a/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch b/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch
index e774afcd52e4..7c1a55bc85e3 100644
--- a/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch
+++ b/srcpkgs/musl/patches/0001_reorder_thread_list_unlink_in_pthread_exit_after_all.patch
@@ -16,8 +16,8 @@ __dl_thread_cleanup.
 
 diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c
 index 5f491092..6a3b0c21 100644
---- src/thread/pthread_create.c
-+++ src/thread/pthread_create.c
+--- a/src/thread/pthread_create.c
++++ b/src/thread/pthread_create.c
 @@ -90,14 +90,7 @@ _Noreturn void __pthread_exit(void *result)
  		exit(0);
  	}
diff --git a/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch b/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch
index 850c43c3cc78..e060762e99a6 100644
--- a/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch
+++ b/srcpkgs/musl/patches/0002_don_t_use_libc_threads_minus_1_as_relaxed_atomic_for.patch
@@ -36,8 +36,8 @@ needs to be taken to produce a safe design.
 
 diff --git a/src/internal/libc.h b/src/internal/libc.h
 index ac97dc7e..c0614852 100644
---- src/internal/libc.h
-+++ src/internal/libc.h
+--- a/src/internal/libc.h
++++ b/src/internal/libc.h
 @@ -21,7 +21,7 @@ struct __libc {
  	int can_do_threads;
  	int threaded;
@@ -49,8 +49,8 @@ index ac97dc7e..c0614852 100644
  	size_t tls_size, tls_align, tls_cnt;
 diff --git a/src/malloc/malloc.c b/src/malloc/malloc.c
 index 96982596..2553a62e 100644
---- src/malloc/malloc.c
-+++ src/malloc/malloc.c
+--- a/src/malloc/malloc.c
++++ b/src/malloc/malloc.c
 @@ -26,7 +26,7 @@ int __malloc_replaced;
  
  static inline void lock(volatile int *lk)
@@ -62,8 +62,8 @@ index 96982596..2553a62e 100644
  
 diff --git a/src/thread/__lock.c b/src/thread/__lock.c
 index 45557c88..5b9b144e 100644
---- src/thread/__lock.c
-+++ src/thread/__lock.c
+--- a/src/thread/__lock.c
++++ b/src/thread/__lock.c
 @@ -18,7 +18,7 @@
  
  void __lock(volatile int *l)
diff --git a/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch b/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch
index 60dcac24bda6..540c5d950195 100644
--- a/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch
+++ b/srcpkgs/musl/patches/0003_cut_down_size_of_some_libc_struct_members.patch
@@ -10,8 +10,8 @@ these are all flags that can be single-byte values.
 
 diff --git a/src/internal/libc.h b/src/internal/libc.h
 index c0614852..d47f58e0 100644
---- src/internal/libc.h
-+++ src/internal/libc.h
+--- a/src/internal/libc.h
++++ b/src/internal/libc.h
 @@ -18,9 +18,9 @@ struct tls_module {
  };
  
diff --git a/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch b/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch
index 09847c32b6a8..e703c1f403c5 100644
--- a/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch
+++ b/srcpkgs/musl/patches/0004_restore_lock_skipping_for_processes_that_return_to_s.patch
@@ -19,8 +19,8 @@ memory load after the lock is taken.
 
 diff --git a/src/internal/libc.h b/src/internal/libc.h
 index d47f58e0..619bba86 100644
---- src/internal/libc.h
-+++ src/internal/libc.h
+--- a/src/internal/libc.h
++++ b/src/internal/libc.h
 @@ -21,6 +21,7 @@ struct __libc {
  	char can_do_threads;
  	char threaded;
@@ -31,8 +31,8 @@ index d47f58e0..619bba86 100644
  	struct tls_module *tls_head;
 diff --git a/src/malloc/malloc.c b/src/malloc/malloc.c
 index 2553a62e..a803d4c9 100644
---- src/malloc/malloc.c
-+++ src/malloc/malloc.c
+--- a/src/malloc/malloc.c
++++ b/src/malloc/malloc.c
 @@ -26,8 +26,11 @@ int __malloc_replaced;
  
  static inline void lock(volatile int *lk)
@@ -48,8 +48,8 @@ index 2553a62e..a803d4c9 100644
  static inline void unlock(volatile int *lk)
 diff --git a/src/thread/__lock.c b/src/thread/__lock.c
 index 5b9b144e..60eece49 100644
---- src/thread/__lock.c
-+++ src/thread/__lock.c
+--- a/src/thread/__lock.c
++++ b/src/thread/__lock.c
 @@ -18,9 +18,11 @@
  
  void __lock(volatile int *l)
@@ -65,8 +65,8 @@ index 5b9b144e..60eece49 100644
  	for (unsigned i = 0; i < 10; ++i) {
 diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c
 index 6a3b0c21..6bdfb44f 100644
---- src/thread/pthread_create.c
-+++ src/thread/pthread_create.c
+--- a/src/thread/pthread_create.c
++++ b/src/thread/pthread_create.c
 @@ -118,8 +118,8 @@ _Noreturn void __pthread_exit(void *result)
  	 * until the lock is released, which only happens after SYS_exit
  	 * has been called, via the exit futex address pointing at the lock.
diff --git a/srcpkgs/musl/patches/CVE-2020-28928.patch b/srcpkgs/musl/patches/CVE-2020-28928.patch
index 9075ae1f8977..b3ff3b4ee08f 100644
--- a/srcpkgs/musl/patches/CVE-2020-28928.patch
+++ b/srcpkgs/musl/patches/CVE-2020-28928.patch
@@ -1,5 +1,5 @@
---- src/multibyte/wcsnrtombs.c
-+++ src/multibyte/wcsnrtombs.c
+--- a/src/multibyte/wcsnrtombs.c
++++ b/src/multibyte/wcsnrtombs.c
 @@ -1,41 +1,33 @@
  #include <wchar.h>
 +#include <limits.h>
diff --git a/srcpkgs/musl/patches/aarch64-fregs.patch b/srcpkgs/musl/patches/aarch64-fregs.patch
index 9c89de447320..024eed11a8e5 100644
--- a/srcpkgs/musl/patches/aarch64-fregs.patch
+++ b/srcpkgs/musl/patches/aarch64-fregs.patch
@@ -2,8 +2,8 @@ Use types compatible with glibc/kernel headers.
 
 diff --git a/arch/aarch64/bits/signal.h b/arch/aarch64/bits/signal.h
 index b71261f5..5098c734 100644
---- arch/aarch64/bits/signal.h
-+++ arch/aarch64/bits/signal.h
+--- a/arch/aarch64/bits/signal.h
++++ b/arch/aarch64/bits/signal.h
 @@ -11,7 +11,7 @@ typedef unsigned long greg_t;
  typedef unsigned long gregset_t[34];
  
@@ -24,8 +24,8 @@ index b71261f5..5098c734 100644
  	struct _aarch64_ctx head;
 diff --git a/arch/aarch64/bits/user.h b/arch/aarch64/bits/user.h
 index d12cdf7f..8a1002aa 100644
---- arch/aarch64/bits/user.h
-+++ arch/aarch64/bits/user.h
+--- a/arch/aarch64/bits/user.h
++++ b/arch/aarch64/bits/user.h
 @@ -6,7 +6,7 @@ struct user_regs_struct {
  };
  
diff --git a/srcpkgs/musl/patches/epoll_cp.patch b/srcpkgs/musl/patches/epoll_cp.patch
index 429aff70b137..92f47551ad8e 100644
--- a/srcpkgs/musl/patches/epoll_cp.patch
+++ b/srcpkgs/musl/patches/epoll_cp.patch
@@ -12,8 +12,8 @@ cancellation points should be done.
 
 diff --git src/linux/epoll.c src/linux/epoll.c
 index deff5b10..93baa814 100644
---- src/linux/epoll.c
-+++ src/linux/epoll.c
+--- a/src/linux/epoll.c
++++ b/src/linux/epoll.c
 @@ -24,9 +24,9 @@ int epoll_ctl(int fd, int op, int fd2, struct epoll_event *ev)
  
  int epoll_pwait(int fd, struct epoll_event *ev, int cnt, int to, const sigset_t *sigs)
diff --git a/srcpkgs/musl/patches/isascii.patch b/srcpkgs/musl/patches/isascii.patch
index 372ab1f44ab2..6719d2ee188f 100644
--- a/srcpkgs/musl/patches/isascii.patch
+++ b/srcpkgs/musl/patches/isascii.patch
@@ -7,8 +7,8 @@ analogous to commit a60457c84a4b59ab564d7f4abb660a70283ba98d.
 
 diff --git include/ctype.h include/ctype.h
 index 7936536f..32bcef4d 100644
---- include/ctype.h
-+++ include/ctype.h
+--- a/include/ctype.h
++++ b/include/ctype.h
 @@ -64,7 +64,9 @@ int   isascii(int);
  int   toascii(int);
  #define _tolower(a) ((a)|0x20)
diff --git a/srcpkgs/musl/patches/mo_lookup.patch b/srcpkgs/musl/patches/mo_lookup.patch
index c23eaf33bc37..ae86e33c9c70 100644
--- a/srcpkgs/musl/patches/mo_lookup.patch
+++ b/srcpkgs/musl/patches/mo_lookup.patch
@@ -6,8 +6,8 @@ and probably others.
 
 	--xtraeme
 
---- src/locale/__mo_lookup.c.orig	2019-06-26 09:55:36.843012674 +0200
-+++ src/locale/__mo_lookup.c	2019-06-26 09:56:11.529443955 +0200
+--- a/src/locale/__mo_lookup.c.orig	2019-06-26 09:55:36.843012674 +0200
++++ b/src/locale/__mo_lookup.c	2019-06-26 09:56:11.529443955 +0200
 @@ -13,7 +13,7 @@ const char *__mo_lookup(const void *p, s
  	uint32_t b = 0, n = swapc(mo[2], sw);
  	uint32_t o = swapc(mo[3], sw);
diff --git a/srcpkgs/musl/patches/ppc-pt_regs.patch b/srcpkgs/musl/patches/ppc-pt_regs.patch
index 93ab51e25c06..45815321bf0f 100644
--- a/srcpkgs/musl/patches/ppc-pt_regs.patch
+++ b/srcpkgs/musl/patches/ppc-pt_regs.patch
@@ -12,8 +12,8 @@ Date:   Sat Oct 19 15:53:43 2019 -0400
 
 diff --git a/arch/powerpc/bits/signal.h b/arch/powerpc/bits/signal.h
 index 06efb11c..c1bf3caf 100644
---- arch/powerpc/bits/signal.h
-+++ arch/powerpc/bits/signal.h
+--- a/arch/powerpc/bits/signal.h
++++ b/arch/powerpc/bits/signal.h
 @@ -28,7 +28,7 @@ struct sigcontext {
  	int signal;
  	unsigned long handler;
@@ -25,8 +25,8 @@ index 06efb11c..c1bf3caf 100644
  typedef struct {
 diff --git a/arch/powerpc64/bits/signal.h b/arch/powerpc64/bits/signal.h
 index 4dec22a5..d5493b18 100644
---- arch/powerpc64/bits/signal.h
-+++ arch/powerpc64/bits/signal.h
+--- a/arch/powerpc64/bits/signal.h
++++ b/arch/powerpc64/bits/signal.h
 @@ -32,7 +32,7 @@ typedef struct sigcontext {
  	int _pad0;
  	unsigned long handler;
diff --git a/srcpkgs/musl/patches/ppc64-fpregset_t.patch b/srcpkgs/musl/patches/ppc64-fpregset_t.patch
index 40c2a066acab..12617ba0ef7d 100644
--- a/srcpkgs/musl/patches/ppc64-fpregset_t.patch
+++ b/srcpkgs/musl/patches/ppc64-fpregset_t.patch
@@ -14,8 +14,8 @@ Date:   Sat Oct 19 15:39:45 2019 -0400
 
 diff --git a/arch/powerpc64/bits/signal.h b/arch/powerpc64/bits/signal.h
 index 2cc0604c..4dec22a5 100644
---- arch/powerpc64/bits/signal.h
-+++ arch/powerpc64/bits/signal.h
+--- a/arch/powerpc64/bits/signal.h
++++ b/arch/powerpc64/bits/signal.h
 @@ -9,11 +9,7 @@
  #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  
diff --git a/srcpkgs/musl/patches/ppcle.patch b/srcpkgs/musl/patches/ppcle.patch
index 568dcce2de82..7d49338a5a0f 100644
--- a/srcpkgs/musl/patches/ppcle.patch
+++ b/srcpkgs/musl/patches/ppcle.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] add ppc32 le subarch
 
 diff --git configure configure
 index 8680128..f1ca58e 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -645,6 +645,7 @@ fi
  if test "$ARCH" = "powerpc" ; then
  trycppif "__NO_FPRS__ && !_SOFT_FLOAT" "$t" && fail \
diff --git a/srcpkgs/musl/patches/reallocarray.patch b/srcpkgs/musl/patches/reallocarray.patch
index 6d5faf32ccf5..cfaab330e89a 100644
--- a/srcpkgs/musl/patches/reallocarray.patch
+++ b/srcpkgs/musl/patches/reallocarray.patch
@@ -11,8 +11,8 @@ while glibc 2.29 allows its usage in _DEFAULT_SOURCE.
 
 diff --git a/include/stdlib.h b/include/stdlib.h
 index 194c2033..b54a051f 100644
---- include/stdlib.h
-+++ include/stdlib.h
+--- a/include/stdlib.h
++++ b/include/stdlib.h
 @@ -145,6 +145,7 @@ int getloadavg(double *, int);
  int clearenv(void);
  #define WCOREDUMP(s) ((s) & 0x80)
@@ -25,7 +25,7 @@ diff --git a/src/malloc/reallocarray.c b/src/malloc/reallocarray.c
 new file mode 100644
 index 00000000..4a6ebe46
 --- /dev/null
-+++ src/malloc/reallocarray.c
++++ b/src/malloc/reallocarray.c
 @@ -0,0 +1,13 @@
 +#define _BSD_SOURCE
 +#include <errno.h>
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 337a3082faa9..eaa3dc12e8e5 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://www.musl-libc.org/"
 distfiles="http://www.musl-libc.org/releases/musl-${version}.tar.gz"
 checksum=1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
+patch_args=-Np1
 
 nostrip_files="libc.so"
 shlib_provides="libc.so"
diff --git a/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch b/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
index 9da918e4345f..528b5d5d8bf6 100644
--- a/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
+++ b/srcpkgs/qemu/patches/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
@@ -16,8 +16,8 @@ Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
 
 diff --git a/linux-user/signal.c b/linux-user/signal.c
 index 5ca6d62b15..e917c16d91 100644
---- linux-user/signal.c
-+++ linux-user/signal.c
+--- a/linux-user/signal.c
++++ b/linux-user/signal.c
 @@ -25,6 +25,13 @@
  #include "trace.h"
  #include "signal-common.h"
diff --git a/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch b/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch
index 009c3eab1b51..ecdd049f7921 100644
--- a/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch
+++ b/srcpkgs/qemu/patches/fix-softfloat-fesetround.patch
@@ -2,8 +2,8 @@ Source: @pullmoll
 Upstream: no
 Reason: Target architectures with soft float do not define these constants.
 
---- tests/fp/fp-bench.c	2020-12-08 17:59:44.000000000 +0100
-+++ tests/fp/fp-bench.c	2020-12-12 20:38:40.702235420 +0100
+--- a/tests/fp/fp-bench.c	2020-12-08 17:59:44.000000000 +0100
++++ b/tests/fp/fp-bench.c	2020-12-12 20:38:40.702235420 +0100
 @@ -485,16 +485,32 @@
  
      switch (rounding) {
diff --git a/srcpkgs/qemu/patches/mmap-mremap-efault.patch b/srcpkgs/qemu/patches/mmap-mremap-efault.patch
index be58a46df664..5a70e9658b30 100644
--- a/srcpkgs/qemu/patches/mmap-mremap-efault.patch
+++ b/srcpkgs/qemu/patches/mmap-mremap-efault.patch
@@ -8,8 +8,8 @@ Also speed up the loop when checking for increasing the mappings size to go
 in steps of TARGET_PAGE_SIZE and OR-in a check for the very last byte of the range.
 diff --git linux-user/mmap.c linux-user/mmap.c
 index 7e3b245..1e8d0f1 100644
---- linux-user/mmap.c
-+++ linux-user/mmap.c
+--- a/linux-user/mmap.c
++++ b/linux-user/mmap.c
 @@ -738,7 +738,7 @@ abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size,
           !guest_range_valid_untagged(new_addr, new_size)) ||
          ((flags & MREMAP_MAYMOVE) == 0 &&
diff --git a/srcpkgs/qemu/patches/musl-9p-limits_h.patch b/srcpkgs/qemu/patches/musl-9p-limits_h.patch
index fca3207c84a4..ee0f89886352 100644
--- a/srcpkgs/qemu/patches/musl-9p-limits_h.patch
+++ b/srcpkgs/qemu/patches/musl-9p-limits_h.patch
@@ -1,5 +1,5 @@
---- hw/9pfs/9p.c.orig	2016-12-21 15:53:59.997900753 +0100
-+++ hw/9pfs/9p.c	2016-12-21 15:54:03.006935717 +0100
+--- a/hw/9pfs/9p.c.orig	2016-12-21 15:53:59.997900753 +0100
++++ b/hw/9pfs/9p.c	2016-12-21 15:54:03.006935717 +0100
 @@ -11,6 +11,7 @@
   *
   */
diff --git a/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch b/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch
index 1b00c27e70a4..e0b76c4d3c25 100644
--- a/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch
+++ b/srcpkgs/qemu/patches/musl-fix-SIOCGSTAMPNS.patch
@@ -1,5 +1,5 @@
---- linux-user/syscall.c.orig	2017-04-25 23:46:47.896819860 +0200
-+++ linux-user/syscall.c	2017-04-26 08:43:48.821452132 +0200
+--- a/linux-user/syscall.c.orig	2017-04-25 23:46:47.896819860 +0200
++++ b/linux-user/syscall.c	2017-04-26 08:43:48.821452132 +0200
 @@ -34,6 +34,7 @@
  #include <sys/resource.h>
  #include <sys/swap.h>
diff --git a/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch b/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch
index 11497d5fc900..c51fca6cf432 100644
--- a/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch
+++ b/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch
@@ -1,5 +1,5 @@
---- linux-user/syscall.c.orig    2015-04-10 07:10:06.305662505 +0000
-+++ linux-user/syscall.c 2015-04-10 07:36:53.801871968 +0000
+--- a/linux-user/syscall.c.orig    2015-04-10 07:10:06.305662505 +0000
++++ b/linux-user/syscall.c 2015-04-10 07:36:53.801871968 +0000
 @@ -5020,9 +5020,20 @@
      return 0;
  }
diff --git a/srcpkgs/qemu/patches/musl-initialize-msghdr.patch b/srcpkgs/qemu/patches/musl-initialize-msghdr.patch
index c195f0c0b1f4..6d96b3511daf 100644
--- a/srcpkgs/qemu/patches/musl-initialize-msghdr.patch
+++ b/srcpkgs/qemu/patches/musl-initialize-msghdr.patch
@@ -2,8 +2,8 @@ Source: https://github.com/void-linux/void-packages/issues/23557
 
 diff --git linux-user/syscall.c linux-user/syscall.c
 index 945fc25..8d8b68a 100644
---- linux-user/syscall.c
-+++ linux-user/syscall.c
+--- a/linux-user/syscall.c
++++ b/linux-user/syscall.c
 @@ -3071,7 +3071,7 @@ static abi_long do_sendrecvmsg_locked(int fd, struct target_msghdr *msgp,
                                        int flags, int send)
  {
diff --git a/srcpkgs/qemu/patches/musl-ppc.patch b/srcpkgs/qemu/patches/musl-ppc.patch
index 6f066c0b30eb..744efe6a4980 100644
--- a/srcpkgs/qemu/patches/musl-ppc.patch
+++ b/srcpkgs/qemu/patches/musl-ppc.patch
@@ -1,5 +1,5 @@
---- accel/tcg/user-exec.c
-+++ accel/tcg/user-exec.c
+--- a/accel/tcg/user-exec.c
++++ b/accel/tcg/user-exec.c
 @@ -286,6 +286,7 @@ int cpu_signal_handler(int host_signum, void *pinfo,
   */
  #ifdef linux
@@ -44,8 +44,8 @@
  #endif /* linux */
  
  #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
---- linux-user/host/ppc64/hostdep.h
-+++ linux-user/host/ppc64/hostdep.h
+--- a/linux-user/host/ppc64/hostdep.h
++++ b/linux-user/host/ppc64/hostdep.h
 @@ -27,7 +27,11 @@ extern char safe_syscall_end[];
  static inline void rewind_if_in_safe_syscall(void *puc)
  {
@@ -58,8 +58,8 @@
  
      if (*pcreg > (uintptr_t)safe_syscall_start
          && *pcreg < (uintptr_t)safe_syscall_end) {
---- util/mmap-alloc.c
-+++ util/mmap-alloc.c
+--- a/util/mmap-alloc.c
++++ b/util/mmap-alloc.c
 @@ -25,6 +25,10 @@
  
  #ifdef CONFIG_LINUX
diff --git a/srcpkgs/qemu/patches/time64.patch b/srcpkgs/qemu/patches/time64.patch
index 7f74ed356934..28be93004891 100644
--- a/srcpkgs/qemu/patches/time64.patch
+++ b/srcpkgs/qemu/patches/time64.patch
@@ -1,5 +1,5 @@
---- contrib/vhost-user-input/main.c	2020-12-08 17:59:44.000000000 +0100
-+++ contrib/vhost-user-input/main.c	2020-12-12 20:59:04.316996648 +0100
+--- a/contrib/vhost-user-input/main.c	2020-12-08 17:59:44.000000000 +0100
++++ b/contrib/vhost-user-input/main.c	2020-12-12 20:59:04.316996648 +0100
 @@ -114,14 +114,17 @@
  
  static void vi_handle_status(VuInput *vi, virtio_input_event *event)
@@ -19,8 +19,8 @@
      evdev.type = le16toh(event->type);
      evdev.code = le16toh(event->code);
      evdev.value = le32toh(event->value);
---- hw/input/virtio-input-host.c	2020-12-08 17:59:44.000000000 +0100
-+++ hw/input/virtio-input-host.c	2020-12-12 21:33:44.750471890 +0100
+--- a/hw/input/virtio-input-host.c	2020-12-08 17:59:44.000000000 +0100
++++ b/hw/input/virtio-input-host.c	2020-12-12 21:33:44.750471890 +0100
 @@ -192,14 +192,17 @@
                                              virtio_input_event *event)
  {
diff --git a/srcpkgs/qemu/patches/xxx-ppcle.patch b/srcpkgs/qemu/patches/xxx-ppcle.patch
index 99396bff9dd5..c5325c9ca70e 100644
--- a/srcpkgs/qemu/patches/xxx-ppcle.patch
+++ b/srcpkgs/qemu/patches/xxx-ppcle.patch
@@ -14,8 +14,8 @@ Subject: [PATCH] support ppcle architecture
 
 diff --git configure configure
 index 18c26e0..03d3e18 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -653,7 +653,11 @@ elif check_define _ARCH_PPC ; then
        cpu="ppc64"
      fi
@@ -62,7 +62,7 @@ diff --git default-configs/targets/ppcle-linux-user.mak default-configs/targets/
 new file mode 100644
 index 0000000..2259243
 --- /dev/null
-+++ default-configs/targets/ppcle-linux-user.mak
++++ b/default-configs/targets/ppcle-linux-user.mak
 @@ -0,0 +1,4 @@
 +TARGET_ARCH=ppc
 +TARGET_SYSTBL_ABI=common,nospu,32
@@ -70,8 +70,8 @@ index 0000000..2259243
 +TARGET_XML_FILES= gdb-xml/power-core.xml gdb-xml/power-fpu.xml gdb-xml/power-altivec.xml gdb-xml/power-spe.xml
 diff --git linux-user/ppc/target_syscall.h linux-user/ppc/target_syscall.h
 index b9c4b81..cf26497 100644
---- linux-user/ppc/target_syscall.h
-+++ linux-user/ppc/target_syscall.h
+--- a/linux-user/ppc/target_syscall.h
++++ b/linux-user/ppc/target_syscall.h
 @@ -65,7 +65,11 @@ struct target_revectored_struct {
  #define UNAME_MACHINE "ppc64le"
  #endif
@@ -86,8 +86,8 @@ index b9c4b81..cf26497 100644
  
 diff --git scripts/qemu-binfmt-conf.sh scripts/qemu-binfmt-conf.sh
 index 9f1580a..393943f 100755
---- scripts/qemu-binfmt-conf.sh
-+++ scripts/qemu-binfmt-conf.sh
+--- a/scripts/qemu-binfmt-conf.sh
++++ b/scripts/qemu-binfmt-conf.sh
 @@ -46,6 +46,10 @@ ppc_magic='\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x
  ppc_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff'
  ppc_family=ppc
@@ -110,8 +110,8 @@ index 9f1580a..393943f 100755
      arm|armel|armhf|arm64|armv[4-9]*l|aarch64)
 diff --git tests/tcg/configure.sh tests/tcg/configure.sh
 index e1b70e2..e07f5fe 100755
---- tests/tcg/configure.sh
-+++ tests/tcg/configure.sh
+--- a/tests/tcg/configure.sh
++++ b/tests/tcg/configure.sh
 @@ -59,6 +59,8 @@ fi
  : $(cross_cc_mips="mips-linux-gnu-gcc")
  : ${cross_cc_ppc="powerpc-linux-gnu-gcc"}
diff --git a/srcpkgs/qemu/template b/srcpkgs/qemu/template
index 0fadb41f609c..0a08ed821536 100644
--- a/srcpkgs/qemu/template
+++ b/srcpkgs/qemu/template
@@ -30,6 +30,7 @@ nostrip_files="hppa-firmware.img openbios-ppc openbios-sparc32 openbios-sparc64
  opensbi-riscv64-generic-fw_dynamic.elf"
 # FIXME
 make_check=extended
+patch_args=-Np1
 
 build_options="gtk3 opengl sdl2 spice virgl smartcard numa iscsi"
 build_options_default="opengl gtk3 virgl sdl2 numa iscsi"
diff --git a/srcpkgs/util-linux/patches/fix-musl.patch b/srcpkgs/util-linux/patches/fix-musl.patch
index e426672183d1..8d1eeb9d2740 100644
--- a/srcpkgs/util-linux/patches/fix-musl.patch
+++ b/srcpkgs/util-linux/patches/fix-musl.patch
@@ -1,7 +1,7 @@
 Define __SWORD_TYPE for musl.
 
---- sys-utils/switch_root.c.orig	2014-09-20 21:33:27.551345526 +0200
-+++ sys-utils/switch_root.c	2014-09-20 21:34:17.958584374 +0200
+--- a/sys-utils/switch_root.c.orig	2014-09-20 21:33:27.551345526 +0200
++++ b/sys-utils/switch_root.c	2014-09-20 21:34:17.958584374 +0200
 @@ -47,6 +47,15 @@
  #define MNT_DETACH       0x00000002	/* Just detach from the tree */
  #endif
diff --git a/srcpkgs/util-linux/template b/srcpkgs/util-linux/template
index 4fb8292531ba..fbd3f00e6f80 100644
--- a/srcpkgs/util-linux/template
+++ b/srcpkgs/util-linux/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/utils/util-linux/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/v${version%.${version#*.*.}}/${pkgname}-${version}.tar.xz"
 checksum=f7516ba9d8689343594356f0e5e1a5f0da34adfbc89023437735872bb5024c5f
+patch_args=-Np1
 
 # Create uuidd system account for uuidd.
 system_accounts="_uuidd"
diff --git a/srcpkgs/xbps/patches/cflags.patch b/srcpkgs/xbps/patches/cflags.patch
index 8e576f2a887d..bf95fea3bebe 100644
--- a/srcpkgs/xbps/patches/cflags.patch
+++ b/srcpkgs/xbps/patches/cflags.patch
@@ -4,8 +4,8 @@ when using strong stack protector)
 
 diff --git lib/Makefile lib/Makefile
 index 65342ef..847bfdd 100644
---- lib/Makefile
-+++ lib/Makefile
+--- a/lib/Makefile
++++ b/lib/Makefile
 @@ -78,7 +78,7 @@ $(OBJS): %.o: %.c
  
  libxbps.so: $(LIBFETCH_OBJS) $(LIBPROP_OBJS) $(OBJS)
diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template
index 8f986d22f9f3..c6af59bd635a 100644
--- a/srcpkgs/xbps/template
+++ b/srcpkgs/xbps/template
@@ -11,6 +11,7 @@ homepage="https://github.com/void-linux/xbps"
 changelog="https://github.com/void-linux/xbps/blob/master/NEWS"
 distfiles="https://github.com/void-linux/xbps/archive/${version}.tar.gz"
 checksum=0cbd8d5f23a62047c75974bca21da9f004a94efffd7f37c68562a8dbc869fb2a
+patch_args=-Np1
 
 hostmakedepends="pkgconf"
 checkdepends="kyua"

From 1dad7a5b2a3483159bf2e1ad4e360dc0abcd77f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:28:34 +0700
Subject: [PATCH 3/7] srcpkgs: add patch_args=-Np0 en-mass

Generated with:

	git ls-files 'srcpkgs/**/patches/*' |
	cut -d/ -f2 | uniq |
	xargs printf 'srcpkgs/%s/template\n'  |
	xargs grep -L 'patch_args=' |
	xargs sed -i "$(printf '1,/^$/{/^$/i\\\npatch_args=-Np0\n}\n')"
---
 srcpkgs/0ad/template                                 | 1 +
 srcpkgs/66-tools/template                            | 1 +
 srcpkgs/7kaa/template                                | 1 +
 srcpkgs/9base/template                               | 1 +
 srcpkgs/9mount/template                              | 1 +
 srcpkgs/Aegisub/template                             | 1 +
 srcpkgs/Brainfunk/template                           | 1 +
 srcpkgs/CPU-X/template                               | 1 +
 srcpkgs/Carla/template                               | 1 +
 srcpkgs/Cataclysm-DDA/template                       | 1 +
 srcpkgs/Chipmunk2D/template                          | 1 +
 srcpkgs/Clight/template                              | 1 +
 srcpkgs/Clp/template                                 | 1 +
 srcpkgs/CoinMP/template                              | 1 +
 srcpkgs/CubicSDR/template                            | 1 +
 srcpkgs/DarkRadiant/template                         | 1 +
 srcpkgs/Fritzing/template                            | 1 +
 srcpkgs/GConf/template                               | 1 +
 srcpkgs/Gauche/template                              | 1 +
 srcpkgs/GraphicsMagick/template                      | 1 +
 srcpkgs/Haru/template                                | 1 +
 srcpkgs/LibreCAD/template                            | 1 +
 srcpkgs/LuaJIT/template                              | 1 +
 srcpkgs/MEGAcmd/template                             | 1 +
 srcpkgs/Maelstrom/template                           | 1 +
 srcpkgs/MonkeysAudio/template                        | 1 +
 srcpkgs/ORBit2/template                              | 1 +
 srcpkgs/OpenCPN/template                             | 1 +
 srcpkgs/OpenXcom/template                            | 1 +
 srcpkgs/PAmix/template                               | 1 +
 srcpkgs/PrusaSlicer/template                         | 1 +
 srcpkgs/QLC+/template                                | 1 +
 srcpkgs/SDL/template                                 | 1 +
 srcpkgs/SDL2/template                                | 1 +
 srcpkgs/SLADE/template                               | 1 +
 srcpkgs/SMC/template                                 | 1 +
 srcpkgs/Signal-Desktop/template                      | 1 +
 srcpkgs/TSC/template                                 | 1 +
 srcpkgs/VeraCrypt/template                           | 1 +
 srcpkgs/XyGrib/template                              | 1 +
 srcpkgs/ZMusic/template                              | 1 +
 srcpkgs/a2ps/template                                | 1 +
 srcpkgs/abduco/template                              | 1 +
 srcpkgs/abook/template                               | 1 +
 srcpkgs/accountsservice/template                     | 1 +
 srcpkgs/acct/template                                | 1 +
 srcpkgs/acpi_call-dkms/template                      | 1 +
 srcpkgs/acpid/template                               | 1 +
 srcpkgs/actiona/template                             | 1 +
 srcpkgs/afterstep/template                           | 1 +
 srcpkgs/agg/template                                 | 1 +
 srcpkgs/allegro4/template                            | 1 +
 srcpkgs/allegro5/template                            | 1 +
 srcpkgs/alsa-firmware/template                       | 1 +
 srcpkgs/alsa-tools/template                          | 1 +
 srcpkgs/amdvlk/template                              | 1 +
 srcpkgs/angrysearch/template                         | 1 +
 srcpkgs/anjuta/template                              | 1 +
 srcpkgs/anki/template                                | 1 +
 srcpkgs/antimicrox/template                          | 1 +
 srcpkgs/antiword/template                            | 1 +
 srcpkgs/apache/template                              | 1 +
 srcpkgs/apl/template                                 | 1 +
 srcpkgs/appstream-glib/template                      | 1 +
 srcpkgs/apr/template                                 | 1 +
 srcpkgs/aqbanking/template                           | 1 +
 srcpkgs/aqemu/template                               | 1 +
 srcpkgs/ardour/template                              | 1 +
 srcpkgs/arduino/template                             | 1 +
 srcpkgs/argon2/template                              | 1 +
 srcpkgs/argyllcms/template                           | 1 +
 srcpkgs/ark/template                                 | 1 +
 srcpkgs/armadillo/template                           | 1 +
 srcpkgs/artyfx/template                              | 1 +
 srcpkgs/asignify/template                            | 1 +
 srcpkgs/assimp/template                              | 1 +
 srcpkgs/astroid/template                             | 1 +
 srcpkgs/astyle/template                              | 1 +
 srcpkgs/at/template                                  | 1 +
 srcpkgs/aterm/template                               | 1 +
 srcpkgs/atomicparsley/template                       | 1 +
 srcpkgs/atop/template                                | 1 +
 srcpkgs/attic/template                               | 1 +
 srcpkgs/attract/template                             | 1 +
 srcpkgs/aubio/template                               | 1 +
 srcpkgs/audacity/template                            | 1 +
 srcpkgs/audiofile/template                           | 1 +
 srcpkgs/autoconf/template                            | 1 +
 srcpkgs/autoconf213/template                         | 1 +
 srcpkgs/autofs/template                              | 1 +
 srcpkgs/autogen/template                             | 1 +
 srcpkgs/avidemux/template                            | 1 +
 srcpkgs/avr-binutils/template                        | 1 +
 srcpkgs/bacula-common/template                       | 1 +
 srcpkgs/bananapi-uboot/template                      | 1 +
 srcpkgs/basu/template                                | 1 +
 srcpkgs/batman-adv14/template                        | 1 +
 srcpkgs/bbkeys/template                              | 1 +
 srcpkgs/bbswitch/template                            | 1 +
 srcpkgs/bc/template                                  | 1 +
 srcpkgs/bcc/template                                 | 1 +
 srcpkgs/bctoolbox/template                           | 1 +
 srcpkgs/beep/template                                | 1 +
 srcpkgs/beets/template                               | 1 +
 srcpkgs/beignet/template                             | 1 +
 srcpkgs/belle-sip/template                           | 1 +
 srcpkgs/berkeley-abc/template                        | 1 +
 srcpkgs/berry/template                               | 1 +
 srcpkgs/biew/template                                | 1 +
 srcpkgs/bin86/template                               | 1 +
 srcpkgs/binwalk/template                             | 1 +
 srcpkgs/bird/template                                | 1 +
 srcpkgs/bish/template                                | 1 +
 srcpkgs/bitchx/template                              | 1 +
 srcpkgs/bitfighter/template                          | 1 +
 srcpkgs/blackboxwm/template                          | 1 +
 srcpkgs/bmon/template                                | 1 +
 srcpkgs/boinc/template                               | 1 +
 srcpkgs/bomi/template                                | 1 +
 srcpkgs/bonnie++/template                            | 1 +
 srcpkgs/boomerang/template                           | 1 +
 srcpkgs/boost/template                               | 1 +
 srcpkgs/bootchart2/template                          | 1 +
 srcpkgs/botan/template                               | 1 +
 srcpkgs/bridge-utils/template                        | 1 +
 srcpkgs/brltty/template                              | 1 +
 srcpkgs/broadcom-wl-dkms/template                    | 1 +
 srcpkgs/browsh/template                              | 1 +
 srcpkgs/bsdiff/template                              | 1 +
 srcpkgs/bsdunzip/template                            | 1 +
 srcpkgs/bubblewrap/template                          | 1 +
 srcpkgs/buffer/template                              | 1 +
 srcpkgs/buildbot/template                            | 1 +
 srcpkgs/buku/template                                | 1 +
 srcpkgs/bullet/template                              | 1 +
 srcpkgs/bumblebee/template                           | 1 +
 srcpkgs/bup/template                                 | 1 +
 srcpkgs/burp2-server/template                        | 1 +
 srcpkgs/busybox/template                             | 1 +
 srcpkgs/bzip2/template                               | 1 +
 srcpkgs/c-blosc/template                             | 1 +
 srcpkgs/c-client/template                            | 1 +
 srcpkgs/ca-certificates/template                     | 1 +
 srcpkgs/cabal-install/template                       | 1 +
 srcpkgs/cackey/template                              | 1 +
 srcpkgs/cadence/template                             | 1 +
 srcpkgs/calc/template                                | 1 +
 srcpkgs/caps/template                                | 1 +
 srcpkgs/cargo/template                               | 1 +
 srcpkgs/catch2/template                              | 1 +
 srcpkgs/catdoc/template                              | 1 +
 srcpkgs/cbang/template                               | 1 +
 srcpkgs/ccextractor/template                         | 1 +
 srcpkgs/ccl/template                                 | 1 +
 srcpkgs/cclive/template                              | 1 +
 srcpkgs/ccsm/template                                | 1 +
 srcpkgs/cdb/template                                 | 1 +
 srcpkgs/cdecl/template                               | 1 +
 srcpkgs/cdm/template                                 | 1 +
 srcpkgs/cdparanoia/template                          | 1 +
 srcpkgs/cegui/template                               | 1 +
 srcpkgs/cegui07/template                             | 1 +
 srcpkgs/celestia-glut/template                       | 1 +
 srcpkgs/celestia-gtk/template                        | 1 +
 srcpkgs/chafa/template                               | 1 +
 srcpkgs/chatterino2/template                         | 1 +
 srcpkgs/chatty/template                              | 1 +
 srcpkgs/chkrootkit/template                          | 1 +
 srcpkgs/chmlib/template                              | 1 +
 srcpkgs/choosenim/template                           | 1 +
 srcpkgs/choqok/template                              | 1 +
 srcpkgs/chromium/template                            | 1 +
 srcpkgs/ck/template                                  | 1 +
 srcpkgs/ckmame/template                              | 1 +
 srcpkgs/clementine/template                          | 1 +
 srcpkgs/cli-visualizer/template                      | 1 +
 srcpkgs/clib/template                                | 1 +
 srcpkgs/clisp/template                               | 1 +
 srcpkgs/cln/template                                 | 1 +
 srcpkgs/clog/template                                | 1 +
 srcpkgs/cloog/template                               | 1 +
 srcpkgs/clucene/template                             | 1 +
 srcpkgs/clutter/template                             | 1 +
 srcpkgs/cmocka/template                              | 1 +
 srcpkgs/cmus/template                                | 1 +
 srcpkgs/codeblocks/template                          | 1 +
 srcpkgs/codecrypt/template                           | 1 +
 srcpkgs/codelite/template                            | 1 +
 srcpkgs/coin3/template                               | 1 +
 srcpkgs/collectd/template                            | 1 +
 srcpkgs/colord/template                              | 1 +
 srcpkgs/commoncpp2/template                          | 1 +
 srcpkgs/connman-ncurses/template                     | 1 +
 srcpkgs/containers.image/template                    | 1 +
 srcpkgs/coreboot-utils/template                      | 1 +
 srcpkgs/coreutils/template                           | 1 +
 srcpkgs/coturn/template                              | 1 +
 srcpkgs/cpuburn/template                             | 1 +
 srcpkgs/cpulimit/template                            | 1 +
 srcpkgs/criu/template                                | 1 +
 srcpkgs/crossguid/template                           | 1 +
 srcpkgs/crypto++/template                            | 1 +
 srcpkgs/csound/template                              | 1 +
 srcpkgs/csync2/template                              | 1 +
 srcpkgs/ctags/template                               | 1 +
 srcpkgs/cubieboard2-uboot/template                   | 1 +
 srcpkgs/cuetools/template                            | 1 +
 srcpkgs/cups-pdf/template                            | 1 +
 srcpkgs/cups/template                                | 1 +
 srcpkgs/cura-engine/template                         | 1 +
 srcpkgs/cutemarked/template                          | 1 +
 srcpkgs/cvsps2/template                              | 1 +
 srcpkgs/daemontools/template                         | 1 +
 srcpkgs/dante/template                               | 1 +
 srcpkgs/dar/template                                 | 1 +
 srcpkgs/darkplaces/template                          | 1 +
 srcpkgs/darktable/template                           | 1 +
 srcpkgs/dash/template                                | 1 +
 srcpkgs/davfs2/template                              | 1 +
 srcpkgs/db/template                                  | 1 +
 srcpkgs/dbus-glib/template                           | 1 +
 srcpkgs/dcraw/template                               | 1 +
 srcpkgs/dcron/template                               | 1 +
 srcpkgs/deadbeef-fb/template                         | 1 +
 srcpkgs/deadbeef/template                            | 1 +
 srcpkgs/debug-me/template                            | 1 +
 srcpkgs/desmume/template                             | 1 +
 srcpkgs/devil/template                               | 1 +
 srcpkgs/dhcp/template                                | 1 +
 srcpkgs/dhcpcd/template                              | 1 +
 srcpkgs/dia/template                                 | 1 +
 srcpkgs/diod/template                                | 1 +
 srcpkgs/discord-ptb/template                         | 1 +
 srcpkgs/discord/template                             | 1 +
 srcpkgs/discount/template                            | 1 +
 srcpkgs/dispcalGUI/template                          | 1 +
 srcpkgs/djview/template                              | 1 +
 srcpkgs/dma/template                                 | 1 +
 srcpkgs/dmd-bootstrap/template                       | 1 +
 srcpkgs/dmd2.081/template                            | 1 +
 srcpkgs/dmd2.091/template                            | 1 +
 srcpkgs/dmraid/template                              | 1 +
 srcpkgs/dmtx-utils/template                          | 1 +
 srcpkgs/docbook-xsl-ns/template                      | 1 +
 srcpkgs/docbook-xsl/template                         | 1 +
 srcpkgs/dolphin-emu/template                         | 1 +
 srcpkgs/dovecot/template                             | 1 +
 srcpkgs/doxygen/template                             | 1 +
 srcpkgs/dpdk/template                                | 1 +
 srcpkgs/dracut-crypt-ssh/template                    | 1 +
 srcpkgs/dracut/template                              | 1 +
 srcpkgs/drawterm/template                            | 1 +
 srcpkgs/drbd-utils/template                          | 1 +
 srcpkgs/dstat/template                               | 1 +
 srcpkgs/dua-cli/template                             | 1 +
 srcpkgs/dumpet/template                              | 1 +
 srcpkgs/dunelegacy/template                          | 1 +
 srcpkgs/duplicity/template                           | 1 +
 srcpkgs/dust3d/template                              | 1 +
 srcpkgs/dvd+rw-tools/template                        | 1 +
 srcpkgs/dvdauthor/template                           | 1 +
 srcpkgs/e2fsprogs/template                           | 1 +
 srcpkgs/eb/template                                  | 1 +
 srcpkgs/eboard/template                              | 1 +
 srcpkgs/ecl/template                                 | 1 +
 srcpkgs/ecryptfs-utils/template                      | 1 +
 srcpkgs/efibootmgr/template                          | 1 +
 srcpkgs/efl/template                                 | 1 +
 srcpkgs/electron10/template                          | 1 +
 srcpkgs/electron12/template                          | 1 +
 srcpkgs/elogind/template                             | 1 +
 srcpkgs/emerald/template                             | 1 +
 srcpkgs/endless-sky-gl21/template                    | 1 +
 srcpkgs/engrampa/template                            | 1 +
 srcpkgs/enigma/template                              | 1 +
 srcpkgs/enlightenment/template                       | 1 +
 srcpkgs/entr/template                                | 1 +
 srcpkgs/enyo-doom/template                           | 1 +
 srcpkgs/epdfview/template                            | 1 +
 srcpkgs/espeakup/template                            | 1 +
 srcpkgs/eukleides/template                           | 1 +
 srcpkgs/evemu/template                               | 1 +
 srcpkgs/evolution-data-server/template               | 1 +
 srcpkgs/evolution/template                           | 1 +
 srcpkgs/evtest/template                              | 1 +
 srcpkgs/ex-vi/template                               | 1 +
 srcpkgs/exfat-dkms/template                          | 1 +
 srcpkgs/exo/template                                 | 1 +
 srcpkgs/expect/template                              | 1 +
 srcpkgs/extra-cmake-modules/template                 | 1 +
 srcpkgs/faad2/template                               | 1 +
 srcpkgs/fake-hwclock/template                        | 1 +
 srcpkgs/fakeroot/template                            | 1 +
 srcpkgs/falkon/template                              | 1 +
 srcpkgs/farstream/template                           | 1 +
 srcpkgs/fastd/template                               | 1 +
 srcpkgs/faust/template                               | 1 +
 srcpkgs/fbida/template                               | 1 +
 srcpkgs/fbreader/template                            | 1 +
 srcpkgs/fbterm/template                              | 1 +
 srcpkgs/fbv/template                                 | 1 +
 srcpkgs/fbxkb/template                               | 1 +
 srcpkgs/fcitx-anthy/template                         | 1 +
 srcpkgs/fcitx/template                               | 1 +
 srcpkgs/fcron/template                               | 1 +
 srcpkgs/ferm/template                                | 1 +
 srcpkgs/ffmpeg/template                              | 1 +
 srcpkgs/fig2dev/template                             | 1 +
 srcpkgs/filezilla/template                           | 1 +
 srcpkgs/fingerprint-gui/template                     | 1 +
 srcpkgs/firefox-esr/template                         | 1 +
 srcpkgs/firefox/template                             | 1 +
 srcpkgs/firejail/template                            | 1 +
 srcpkgs/flatpak-builder/template                     | 1 +
 srcpkgs/flatpak/template                             | 1 +
 srcpkgs/flex/template                                | 1 +
 srcpkgs/flightgear/template                          | 1 +
 srcpkgs/flowcanvas/template                          | 1 +
 srcpkgs/foobillard++/template                        | 1 +
 srcpkgs/foomatic-db-engine/template                  | 1 +
 srcpkgs/foremost/template                            | 1 +
 srcpkgs/fossil/template                              | 1 +
 srcpkgs/fotoxx/template                              | 1 +
 srcpkgs/fpc/template                                 | 1 +
 srcpkgs/fprint_demo/template                         | 1 +
 srcpkgs/frame/template                               | 1 +
 srcpkgs/freecad/template                             | 1 +
 srcpkgs/freeciv/template                             | 1 +
 srcpkgs/freedroidClassic/template                    | 1 +
 srcpkgs/freeimage/template                           | 1 +
 srcpkgs/freeipmi/template                            | 1 +
 srcpkgs/freeorion/template                           | 1 +
 srcpkgs/freeplane/template                           | 1 +
 srcpkgs/freetds/template                             | 1 +
 srcpkgs/freetype/template                            | 1 +
 srcpkgs/freshplayerplugin/template                   | 1 +
 srcpkgs/fs-utils/template                            | 1 +
 srcpkgs/fuse/template                                | 1 +
 srcpkgs/gamin/template                               | 1 +
 srcpkgs/gammu/template                               | 1 +
 srcpkgs/gatling/template                             | 1 +
 srcpkgs/gavl/template                                | 1 +
 srcpkgs/gbdfed/template                              | 1 +
 srcpkgs/gcc-multilib/template                        | 1 +
 srcpkgs/gcc/template                                 | 1 +
 srcpkgs/gcolor2/template                             | 1 +
 srcpkgs/gdm/template                                 | 1 +
 srcpkgs/gdmap/template                               | 1 +
 srcpkgs/geary/template                               | 1 +
 srcpkgs/geda/template                                | 1 +
 srcpkgs/geis/template                                | 1 +
 srcpkgs/geos/template                                | 1 +
 srcpkgs/gfm/template                                 | 1 +
 srcpkgs/giac/template                                | 1 +
 srcpkgs/giflib/template                              | 1 +
 srcpkgs/giggle/template                              | 1 +
 srcpkgs/gimp/template                                | 1 +
 srcpkgs/git-annex/template                           | 1 +
 srcpkgs/gitea/template                               | 1 +
 srcpkgs/gitg/template                                | 1 +
 srcpkgs/gkrellm/template                             | 1 +
 srcpkgs/glances/template                             | 1 +
 srcpkgs/glib/template                                | 1 +
 srcpkgs/gloox/template                               | 1 +
 srcpkgs/glusterfs/template                           | 1 +
 srcpkgs/glyr/template                                | 1 +
 srcpkgs/gmrun/template                               | 1 +
 srcpkgs/gnome-authenticator/template                 | 1 +
 srcpkgs/gnome-desktop/template                       | 1 +
 srcpkgs/gnome-keyring/template                       | 1 +
 srcpkgs/gnome-latex/template                         | 1 +
 srcpkgs/gnome-photos/template                        | 1 +
 srcpkgs/gnome-screensaver/template                   | 1 +
 srcpkgs/gnome-session/template                       | 1 +
 srcpkgs/gnome-settings-daemon/template               | 1 +
 srcpkgs/gnome-terminal/template                      | 1 +
 srcpkgs/gnu-efi-libs/template                        | 1 +
 srcpkgs/gnucash/template                             | 1 +
 srcpkgs/gnupg2/template                              | 1 +
 srcpkgs/gnuradio-nrsc5/template                      | 1 +
 srcpkgs/gnustep-base/template                        | 1 +
 srcpkgs/gnustep-make/template                        | 1 +
 srcpkgs/gnutls/template                              | 1 +
 srcpkgs/goaccess/template                            | 1 +
 srcpkgs/godot/template                               | 1 +
 srcpkgs/gogglesmm/template                           | 1 +
 srcpkgs/goldendict/template                          | 1 +
 srcpkgs/gosu/template                                | 1 +
 srcpkgs/goxel/template                               | 1 +
 srcpkgs/gpart/template                               | 1 +
 srcpkgs/gperftools/template                          | 1 +
 srcpkgs/gpgme/template                               | 1 +
 srcpkgs/gpick/template                               | 1 +
 srcpkgs/gpm/template                                 | 1 +
 srcpkgs/gpsbabel/template                            | 1 +
 srcpkgs/gpsd/template                                | 1 +
 srcpkgs/grpc/template                                | 1 +
 srcpkgs/grub-customizer/template                     | 1 +
 srcpkgs/gscan2pdf/template                           | 1 +
 srcpkgs/gscope3/template                             | 1 +
 srcpkgs/gsl/template                                 | 1 +
 srcpkgs/gsoap/template                               | 1 +
 srcpkgs/gst-plugins-bad1/template                    | 1 +
 srcpkgs/gst-plugins-base1/template                   | 1 +
 srcpkgs/gst123/template                              | 1 +
 srcpkgs/gstreamermm/template                         | 1 +
 srcpkgs/gthumb/template                              | 1 +
 srcpkgs/gtk-sharp/template                           | 1 +
 srcpkgs/gtk-sharp2/template                          | 1 +
 srcpkgs/gtk-theme-config/template                    | 1 +
 srcpkgs/gtkglext/template                            | 1 +
 srcpkgs/gtkpod/template                              | 1 +
 srcpkgs/gtkspell/template                            | 1 +
 srcpkgs/gtypist/template                             | 1 +
 srcpkgs/guake/template                               | 1 +
 srcpkgs/guile/template                               | 1 +
 srcpkgs/guile1.8/template                            | 1 +
 srcpkgs/guitarix2/template                           | 1 +
 srcpkgs/gummiboot/template                           | 1 +
 srcpkgs/gupnp-igd/template                           | 1 +
 srcpkgs/guvcview/template                            | 1 +
 srcpkgs/gwenhywfar/template                          | 1 +
 srcpkgs/gxemul/template                              | 1 +
 srcpkgs/gzdoom/template                              | 1 +
 srcpkgs/h2o/template                                 | 1 +
 srcpkgs/halibut/template                             | 1 +
 srcpkgs/hamlib/template                              | 1 +
 srcpkgs/handbrake/template                           | 1 +
 srcpkgs/hardinfo/template                            | 1 +
 srcpkgs/heaptrack/template                           | 1 +
 srcpkgs/hedgewars/template                           | 1 +
 srcpkgs/hexchat/template                             | 1 +
 srcpkgs/hexer/template                               | 1 +
 srcpkgs/heyu/template                                | 1 +
 srcpkgs/hfsprogs/template                            | 1 +
 srcpkgs/higan/template                               | 1 +
 srcpkgs/hiredis/template                             | 1 +
 srcpkgs/hitch/template                               | 1 +
 srcpkgs/hlint/template                               | 1 +
 srcpkgs/hosts-update/template                        | 1 +
 srcpkgs/hplip/template                               | 1 +
 srcpkgs/hstr/template                                | 1 +
 srcpkgs/ht/template                                  | 1 +
 srcpkgs/http-parser/template                         | 1 +
 srcpkgs/httpdirfs/template                           | 1 +
 srcpkgs/hugin/template                               | 1 +
 srcpkgs/hunspell/template                            | 1 +
 srcpkgs/i3status/template                            | 1 +
 srcpkgs/ibus-anthy/template                          | 1 +
 srcpkgs/ibus-avro/template                           | 1 +
 srcpkgs/id3lib/template                              | 1 +
 srcpkgs/ifupdown/template                            | 1 +
 srcpkgs/igt-gpu-tools/template                       | 1 +
 srcpkgs/ilmbase/template                             | 1 +
 srcpkgs/imagescan/template                           | 1 +
 srcpkgs/imgbrd-grabber/template                      | 1 +
 srcpkgs/imwheel/template                             | 1 +
 srcpkgs/indent/template                              | 1 +
 srcpkgs/injeqt/template                              | 1 +
 srcpkgs/input-utils/template                         | 1 +
 srcpkgs/inspectrum/template                          | 1 +
 srcpkgs/invada-studio-plugins-lv2/template           | 1 +
 srcpkgs/io.elementary.calendar/template              | 1 +
 srcpkgs/io.elementary.code/template                  | 1 +
 srcpkgs/io.elementary.music/template                 | 1 +
 srcpkgs/iotop/template                               | 1 +
 srcpkgs/iouyap/template                              | 1 +
 srcpkgs/ipmitool/template                            | 1 +
 srcpkgs/ipp-usb/template                             | 1 +
 srcpkgs/ippusbxd/template                            | 1 +
 srcpkgs/iptables/template                            | 1 +
 srcpkgs/iscan/template                               | 1 +
 srcpkgs/iucode-tool/template                         | 1 +
 srcpkgs/iverilog/template                            | 1 +
 srcpkgs/iwd/template                                 | 1 +
 srcpkgs/j/template                                   | 1 +
 srcpkgs/jack/template                                | 1 +
 srcpkgs/janet/template                               | 1 +
 srcpkgs/jbig2dec/template                            | 1 +
 srcpkgs/jedit/template                               | 1 +
 srcpkgs/jfsutils/template                            | 1 +
 srcpkgs/jsonnet/template                             | 1 +
 srcpkgs/jwm/template                                 | 1 +
 srcpkgs/jxrlib/template                              | 1 +
 srcpkgs/kanshi/template                              | 1 +
 srcpkgs/katarakt/template                            | 1 +
 srcpkgs/kauth/template                               | 1 +
 srcpkgs/kbd/template                                 | 1 +
 srcpkgs/kcgi/template                                | 1 +
 srcpkgs/kconfig/template                             | 1 +
 srcpkgs/kcoreaddons/template                         | 1 +
 srcpkgs/kdb/template                                 | 1 +
 srcpkgs/kdelibs4support/template                     | 1 +
 srcpkgs/kdesignerplugin/template                     | 1 +
 srcpkgs/kdevelop-python/template                     | 1 +
 srcpkgs/kdevelop/template                            | 1 +
 srcpkgs/kdoctools/template                           | 1 +
 srcpkgs/kea/template                                 | 1 +
 srcpkgs/kernel-libc-headers/template                 | 1 +
 srcpkgs/kexec-tools/template                         | 1 +
 srcpkgs/kexi/template                                | 1 +
 srcpkgs/keyutils/template                            | 1 +
 srcpkgs/kicad/template                               | 1 +
 srcpkgs/kid3/template                                | 1 +
 srcpkgs/kinit/template                               | 1 +
 srcpkgs/kio/template                                 | 1 +
 srcpkgs/kmod/template                                | 1 +
 srcpkgs/kmscon/template                              | 1 +
 srcpkgs/kobodeluxe/template                          | 1 +
 srcpkgs/kodi-addon-inputstream-adaptive/template     | 1 +
 srcpkgs/kore/template                                | 1 +
 srcpkgs/krita/template                               | 1 +
 srcpkgs/kscreenlocker/template                       | 1 +
 srcpkgs/kvirc/template                               | 1 +
 srcpkgs/kwallet-cli/template                         | 1 +
 srcpkgs/ladish/template                              | 1 +
 srcpkgs/laditools/template                           | 1 +
 srcpkgs/ladspa-sdk/template                          | 1 +
 srcpkgs/lapack/template                              | 1 +
 srcpkgs/latencytop/template                          | 1 +
 srcpkgs/ldapvi/template                              | 1 +
 srcpkgs/ldb/template                                 | 1 +
 srcpkgs/ledger/template                              | 1 +
 srcpkgs/lfe/template                                 | 1 +
 srcpkgs/liba52/template                              | 1 +
 srcpkgs/libabigail/template                          | 1 +
 srcpkgs/libabw/template                              | 1 +
 srcpkgs/libaccounts-qt5/template                     | 1 +
 srcpkgs/libarchive/template                          | 1 +
 srcpkgs/libatasmart/template                         | 1 +
 srcpkgs/libax25/template                             | 1 +
 srcpkgs/libbsd/template                              | 1 +
 srcpkgs/libcanberra/template                         | 1 +
 srcpkgs/libcap-ng/template                           | 1 +
 srcpkgs/libcap/template                              | 1 +
 srcpkgs/libcec/template                              | 1 +
 srcpkgs/libcgroup/template                           | 1 +
 srcpkgs/libcmis/template                             | 1 +
 srcpkgs/libcprops/template                           | 1 +
 srcpkgs/libdaemon/template                           | 1 +
 srcpkgs/libdbus-c++/template                         | 1 +
 srcpkgs/libdill/template                             | 1 +
 srcpkgs/libdrm/template                              | 1 +
 srcpkgs/libesmtp/template                            | 1 +
 srcpkgs/libetpan/template                            | 1 +
 srcpkgs/libevdevPlus/template                        | 1 +
 srcpkgs/libexecinfo/template                         | 1 +
 srcpkgs/libfetch/template                            | 1 +
 srcpkgs/libffado/template                            | 1 +
 srcpkgs/libffi/template                              | 1 +
 srcpkgs/libfprint/template                           | 1 +
 srcpkgs/libfprint0/template                          | 1 +
 srcpkgs/libfreehand/template                         | 1 +
 srcpkgs/libgadu/template                             | 1 +
 srcpkgs/libgdal/template                             | 1 +
 srcpkgs/libgfshare/template                          | 1 +
 srcpkgs/libgit2-glib/template                        | 1 +
 srcpkgs/libglade/template                            | 1 +
 srcpkgs/libglvnd/template                            | 1 +
 srcpkgs/libgme/template                              | 1 +
 srcpkgs/libgpod/template                             | 1 +
 srcpkgs/libgsm/template                              | 1 +
 srcpkgs/libguestfs/template                          | 1 +
 srcpkgs/libieee1284/template                         | 1 +
 srcpkgs/libimobiledevice/template                    | 1 +
 srcpkgs/libindicator/template                        | 1 +
 srcpkgs/libiodbc/template                            | 1 +
 srcpkgs/libixion/template                            | 1 +
 srcpkgs/libmad/template                              | 1 +
 srcpkgs/libmemcached/template                        | 1 +
 srcpkgs/libmill/template                             | 1 +
 srcpkgs/libmilter/template                           | 1 +
 srcpkgs/libmirage/template                           | 1 +
 srcpkgs/libmowgli/template                           | 1 +
 srcpkgs/libmp4v2/template                            | 1 +
 srcpkgs/libmpd/template                              | 1 +
 srcpkgs/libmspub/template                            | 1 +
 srcpkgs/libmygpo-qt/template                         | 1 +
 srcpkgs/libmygui/template                            | 1 +
 srcpkgs/libnet/template                              | 1 +
 srcpkgs/libnetfilter_log/template                    | 1 +
 srcpkgs/libnfc/template                              | 1 +
 srcpkgs/libnfs/template                              | 1 +
 srcpkgs/libnih/template                              | 1 +
 srcpkgs/libnl/template                               | 1 +
 srcpkgs/libogre/template                             | 1 +
 srcpkgs/libomxil-bellagio/template                   | 1 +
 srcpkgs/libopenglrecorder/template                   | 1 +
 srcpkgs/libopenshot-audio/template                   | 1 +
 srcpkgs/libosinfo/template                           | 1 +
 srcpkgs/libostree/template                           | 1 +
 srcpkgs/libowfat/template                            | 1 +
 srcpkgs/libportal/template                           | 1 +
 srcpkgs/libproxy/template                            | 1 +
 srcpkgs/libpurple-steam/template                     | 1 +
 srcpkgs/libratbag/template                           | 1 +
 srcpkgs/libreadline8/template                        | 1 +
 srcpkgs/libreoffice/template                         | 1 +
 srcpkgs/libretro-mupen64plus-rpi/template            | 1 +
 srcpkgs/libretro-mupen64plus/template                | 1 +
 srcpkgs/librtas/template                             | 1 +
 srcpkgs/libscrypt/template                           | 1 +
 srcpkgs/libsearpc/template                           | 1 +
 srcpkgs/libselinux/template                          | 1 +
 srcpkgs/libsigrokdecode/template                     | 1 +
 srcpkgs/libsigsegv/template                          | 1 +
 srcpkgs/libsmbios/template                           | 1 +
 srcpkgs/libspnav/template                            | 1 +
 srcpkgs/libssh/template                              | 1 +
 srcpkgs/libtecla/template                            | 1 +
 srcpkgs/libticables2/template                        | 1 +
 srcpkgs/libtool/template                             | 1 +
 srcpkgs/libtorrent/template                          | 1 +
 srcpkgs/libu2f-host/template                         | 1 +
 srcpkgs/libu2f-server/template                       | 1 +
 srcpkgs/libucl/template                              | 1 +
 srcpkgs/libuninum/template                           | 1 +
 srcpkgs/libunique/template                           | 1 +
 srcpkgs/libunwind/template                           | 1 +
 srcpkgs/libusb-compat/template                       | 1 +
 srcpkgs/libusb/template                              | 1 +
 srcpkgs/libusbmuxd/template                          | 1 +
 srcpkgs/libuv/template                               | 1 +
 srcpkgs/libvdpau/template                            | 1 +
 srcpkgs/libvidstab/template                          | 1 +
 srcpkgs/libvirt-glib/template                        | 1 +
 srcpkgs/libwmf/template                              | 1 +
 srcpkgs/libxdg-basedir/template                      | 1 +
 srcpkgs/libxkbcommon/template                        | 1 +
 srcpkgs/libxml2-python/template                      | 1 +
 srcpkgs/libxml2/template                             | 1 +
 srcpkgs/libxo/template                               | 1 +
 srcpkgs/libzim/template                              | 1 +
 srcpkgs/lightdm-webkit2-greeter/template             | 1 +
 srcpkgs/lightdm/template                             | 1 +
 srcpkgs/lighttpd/template                            | 1 +
 srcpkgs/lightzone/template                           | 1 +
 srcpkgs/lilo/template                                | 1 +
 srcpkgs/lilyterm/template                            | 1 +
 srcpkgs/linphone-desktop/template                    | 1 +
 srcpkgs/linssid/template                             | 1 +
 srcpkgs/linux-tools/template                         | 1 +
 srcpkgs/linux-vt-setcolors/template                  | 1 +
 srcpkgs/linux4.4/template                            | 1 +
 srcpkgs/liquid-dsp/template                          | 1 +
 srcpkgs/liquidwar/template                           | 1 +
 srcpkgs/litecoin/template                            | 1 +
 srcpkgs/llvm11/template                              | 1 +
 srcpkgs/llvm12/template                              | 1 +
 srcpkgs/lmdb/template                                | 1 +
 srcpkgs/lmms/template                                | 1 +
 srcpkgs/log4cxx/template                             | 1 +
 srcpkgs/loksh/template                               | 1 +
 srcpkgs/loudmouth/template                           | 1 +
 srcpkgs/lshw/template                                | 1 +
 srcpkgs/ltrace/template                              | 1 +
 srcpkgs/lttng-tools/template                         | 1 +
 srcpkgs/lua51-luasocket/template                     | 1 +
 srcpkgs/lua51/template                               | 1 +
 srcpkgs/lua52/template                               | 1 +
 srcpkgs/lua53/template                               | 1 +
 srcpkgs/lua54-lgi/template                           | 1 +
 srcpkgs/lua54-lualdap/template                       | 1 +
 srcpkgs/lua54/template                               | 1 +
 srcpkgs/luakit/template                              | 1 +
 srcpkgs/lumina/template                              | 1 +
 srcpkgs/lvm2/template                                | 1 +
 srcpkgs/lwipv6/template                              | 1 +
 srcpkgs/lxappearance/template                        | 1 +
 srcpkgs/lxdm/template                                | 1 +
 srcpkgs/lxpanel/template                             | 1 +
 srcpkgs/lzf/template                                 | 1 +
 srcpkgs/mDNSResponder/template                       | 1 +
 srcpkgs/mairix/template                              | 1 +
 srcpkgs/makedumpfile/template                        | 1 +
 srcpkgs/makeself/template                            | 1 +
 srcpkgs/mame/template                                | 1 +
 srcpkgs/man-db/template                              | 1 +
 srcpkgs/marble5/template                             | 1 +
 srcpkgs/marco/template                               | 1 +
 srcpkgs/mariadb/template                             | 1 +
 srcpkgs/masterpassword-cli/template                  | 1 +
 srcpkgs/mate-utils/template                          | 1 +
 srcpkgs/matio/template                               | 1 +
 srcpkgs/maturin/template                             | 1 +
 srcpkgs/mc/template                                  | 1 +
 srcpkgs/mcpp/template                                | 1 +
 srcpkgs/mdadm/template                               | 1 +
 srcpkgs/mdocml/template                              | 1 +
 srcpkgs/mediastreamer/template                       | 1 +
 srcpkgs/mednafen/template                            | 1 +
 srcpkgs/memtest86+/template                          | 1 +
 srcpkgs/mergerfs/template                            | 1 +
 srcpkgs/merkaartor/template                          | 1 +
 srcpkgs/mesa/template                                | 1 +
 srcpkgs/meson/template                               | 1 +
 srcpkgs/mg/template                                  | 1 +
 srcpkgs/mhddfs/template                              | 1 +
 srcpkgs/milkytracker/template                        | 1 +
 srcpkgs/mimic/template                               | 1 +
 srcpkgs/minicom/template                             | 1 +
 srcpkgs/minidlna/template                            | 1 +
 srcpkgs/minijail/template                            | 1 +
 srcpkgs/minisat/template                             | 1 +
 srcpkgs/minissdpd/template                           | 1 +
 srcpkgs/mit-krb5/template                            | 1 +
 srcpkgs/mit-scheme-c/template                        | 1 +
 srcpkgs/mlocate/template                             | 1 +
 srcpkgs/mmv/template                                 | 1 +
 srcpkgs/moc/template                                 | 1 +
 srcpkgs/mod_wsgi/template                            | 1 +
 srcpkgs/mog/template                                 | 1 +
 srcpkgs/mon/template                                 | 1 +
 srcpkgs/monero/template                              | 1 +
 srcpkgs/mongoose/template                            | 1 +
 srcpkgs/monit/template                               | 1 +
 srcpkgs/mono/template                                | 1 +
 srcpkgs/moon-buggy/template                          | 1 +
 srcpkgs/moosefs/template                             | 1 +
 srcpkgs/mosh/template                                | 1 +
 srcpkgs/mosquitto/template                           | 1 +
 srcpkgs/mp3check/template                            | 1 +
 srcpkgs/mp3val/template                              | 1 +
 srcpkgs/mpg123/template                              | 1 +
 srcpkgs/mplayer/template                             | 1 +
 srcpkgs/mrxvt/template                               | 1 +
 srcpkgs/msg2/template                                | 1 +
 srcpkgs/msp430-toolchain/template                    | 1 +
 srcpkgs/mumble/template                              | 1 +
 srcpkgs/mupen64plus/template                         | 1 +
 srcpkgs/musikcube/template                           | 1 +
 srcpkgs/mutter/template                              | 1 +
 srcpkgs/mysql++/template                             | 1 +
 srcpkgs/nagstamon/template                           | 1 +
 srcpkgs/namecoin/template                            | 1 +
 srcpkgs/navit/template                               | 1 +
 srcpkgs/nemiver/template                             | 1 +
 srcpkgs/net-snmp/template                            | 1 +
 srcpkgs/netcat/template                              | 1 +
 srcpkgs/nethack/template                             | 1 +
 srcpkgs/netpgp/template                              | 1 +
 srcpkgs/netpgpverify/template                        | 1 +
 srcpkgs/nettle/template                              | 1 +
 srcpkgs/network-ups-tools/template                   | 1 +
 srcpkgs/newlisp/template                             | 1 +
 srcpkgs/nextcloud-client/template                    | 1 +
 srcpkgs/nfs4-acl-tools/template                      | 1 +
 srcpkgs/nginx/template                               | 1 +
 srcpkgs/ngspice/template                             | 1 +
 srcpkgs/nitroshare/template                          | 1 +
 srcpkgs/nmon/template                                | 1 +
 srcpkgs/nocache/template                             | 1 +
 srcpkgs/nodejs-lts-10/template                       | 1 +
 srcpkgs/nodejs-lts/template                          | 1 +
 srcpkgs/nodejs/template                              | 1 +
 srcpkgs/noip2/template                               | 1 +
 srcpkgs/notepadqq/template                           | 1 +
 srcpkgs/notes-up/template                            | 1 +
 srcpkgs/nrpe/template                                | 1 +
 srcpkgs/nsjail/template                              | 1 +
 srcpkgs/nspr/template                                | 1 +
 srcpkgs/nss/template                                 | 1 +
 srcpkgs/ntp/template                                 | 1 +
 srcpkgs/numactl/template                             | 1 +
 srcpkgs/nvme-cli/template                            | 1 +
 srcpkgs/nwipe/template                               | 1 +
 srcpkgs/nx-libs/template                             | 1 +
 srcpkgs/obexftp/template                             | 1 +
 srcpkgs/occt/template                                | 1 +
 srcpkgs/odroid-u2-kernel/template                    | 1 +
 srcpkgs/ofono/template                               | 1 +
 srcpkgs/ogmrip/template                              | 1 +
 srcpkgs/ogmtools/template                            | 1 +
 srcpkgs/oksh/template                                | 1 +
 srcpkgs/okteta/template                              | 1 +
 srcpkgs/okular/template                              | 1 +
 srcpkgs/olsrd/template                               | 1 +
 srcpkgs/omxplayer/template                           | 1 +
 srcpkgs/open-iscsi/template                          | 1 +
 srcpkgs/open-vm-tools/template                       | 1 +
 srcpkgs/openbabel/template                           | 1 +
 srcpkgs/openblas/template                            | 1 +
 srcpkgs/openbox/template                             | 1 +
 srcpkgs/openbsd-file/template                        | 1 +
 srcpkgs/opencollada/template                         | 1 +
 srcpkgs/opencolorio/template                         | 1 +
 srcpkgs/opencv/template                              | 1 +
 srcpkgs/opencv4/template                             | 1 +
 srcpkgs/opendkim/template                            | 1 +
 srcpkgs/openexr/template                             | 1 +
 srcpkgs/openjade/template                            | 1 +
 srcpkgs/openjpeg2/template                           | 1 +
 srcpkgs/openlierox/template                          | 1 +
 srcpkgs/openmpi/template                             | 1 +
 srcpkgs/openntpd/template                            | 1 +
 srcpkgs/opensm/template                              | 1 +
 srcpkgs/opensmtpd-extras/template                    | 1 +
 srcpkgs/opensmtpd/template                           | 1 +
 srcpkgs/opensonic/template                           | 1 +
 srcpkgs/openssh/template                             | 1 +
 srcpkgs/openssl/template                             | 1 +
 srcpkgs/opensurge/template                           | 1 +
 srcpkgs/opkg/template                                | 1 +
 srcpkgs/oprofile/template                            | 1 +
 srcpkgs/oragono/template                             | 1 +
 srcpkgs/orion/template                               | 1 +
 srcpkgs/os-prober/template                           | 1 +
 srcpkgs/osg/template                                 | 1 +
 srcpkgs/osmid/template                               | 1 +
 srcpkgs/otfcc/template                               | 1 +
 srcpkgs/otpw/template                                | 1 +
 srcpkgs/owncloudclient/template                      | 1 +
 srcpkgs/p7zip/template                               | 1 +
 srcpkgs/pa-applet/template                           | 1 +
 srcpkgs/pacman/template                              | 1 +
 srcpkgs/pahole/template                              | 1 +
 srcpkgs/pam-mount/template                           | 1 +
 srcpkgs/pam-u2f/template                             | 1 +
 srcpkgs/pam_ssh/template                             | 1 +
 srcpkgs/pam_ssh_agent_auth/template                  | 1 +
 srcpkgs/papi/template                                | 1 +
 srcpkgs/par/template                                 | 1 +
 srcpkgs/par2cmdline/template                         | 1 +
 srcpkgs/paraview/template                            | 1 +
 srcpkgs/parcellite/template                          | 1 +
 srcpkgs/partclone/template                           | 1 +
 srcpkgs/passwordsafe/template                        | 1 +
 srcpkgs/pax/template                                 | 1 +
 srcpkgs/pcaudiolib/template                          | 1 +
 srcpkgs/pcc/template                                 | 1 +
 srcpkgs/pchar/template                               | 1 +
 srcpkgs/pcsclite/template                            | 1 +
 srcpkgs/pcsx2/template                               | 1 +
 srcpkgs/pd/template                                  | 1 +
 srcpkgs/pdsh/template                                | 1 +
 srcpkgs/perl-Text-BibTeX/template                    | 1 +
 srcpkgs/perl-Tk/template                             | 1 +
 srcpkgs/perl-WWW-Curl/template                       | 1 +
 srcpkgs/perl/template                                | 1 +
 srcpkgs/pgadmin3/template                            | 1 +
 srcpkgs/php/template                                 | 1 +
 srcpkgs/pidgin-libnotify/template                    | 1 +
 srcpkgs/pidgin/template                              | 1 +
 srcpkgs/pijul/template                               | 1 +
 srcpkgs/pilot-link/template                          | 1 +
 srcpkgs/pinebookpro-uboot/template                   | 1 +
 srcpkgs/pingus/template                              | 1 +
 srcpkgs/pioneer/template                             | 1 +
 srcpkgs/pipenightdreams/template                     | 1 +
 srcpkgs/pipewire/template                            | 1 +
 srcpkgs/pjproject/template                           | 1 +
 srcpkgs/plasma-framework/template                    | 1 +
 srcpkgs/plasma-workspace/template                    | 1 +
 srcpkgs/plex-media-player/template                   | 1 +
 srcpkgs/plib/template                                | 1 +
 srcpkgs/plocate/template                             | 1 +
 srcpkgs/plotutils/template                           | 1 +
 srcpkgs/plume-creator/template                       | 1 +
 srcpkgs/plymouth/template                            | 1 +
 srcpkgs/pmount/template                              | 1 +
 srcpkgs/png++/template                               | 1 +
 srcpkgs/polkit-qt5/template                          | 1 +
 srcpkgs/polkit/template                              | 1 +
 srcpkgs/polygen/template                             | 1 +
 srcpkgs/portaudio/template                           | 1 +
 srcpkgs/portmidi/template                            | 1 +
 srcpkgs/postfix/template                             | 1 +
 srcpkgs/postgresql/template                          | 1 +
 srcpkgs/postgresql12/template                        | 1 +
 srcpkgs/postgresql13/template                        | 1 +
 srcpkgs/povray/template                              | 1 +
 srcpkgs/powerpc-utils/template                       | 1 +
 srcpkgs/ppp/template                                 | 1 +
 srcpkgs/pps-tools/template                           | 1 +
 srcpkgs/ppsspp/template                              | 1 +
 srcpkgs/pptpclient/template                          | 1 +
 srcpkgs/projectlibre/template                        | 1 +
 srcpkgs/proot/template                               | 1 +
 srcpkgs/protobuf-c/template                          | 1 +
 srcpkgs/prototype/template                           | 1 +
 srcpkgs/psensor/template                             | 1 +
 srcpkgs/ptii/template                                | 1 +
 srcpkgs/pugixml/template                             | 1 +
 srcpkgs/pulseview/template                           | 1 +
 srcpkgs/putty/template                               | 1 +
 srcpkgs/pvoc/template                                | 1 +
 srcpkgs/pwnat/template                               | 1 +
 srcpkgs/pygtk/template                               | 1 +
 srcpkgs/pymol/template                               | 1 +
 srcpkgs/pyside2-tools/template                       | 1 +
 srcpkgs/python-M2Crypto/template                     | 1 +
 srcpkgs/python-coverage/template                     | 1 +
 srcpkgs/python-docutils/template                     | 1 +
 srcpkgs/python-evdev/template                        | 1 +
 srcpkgs/python-nose/template                         | 1 +
 srcpkgs/python-pip/template                          | 1 +
 srcpkgs/python-requests/template                     | 1 +
 srcpkgs/python/template                              | 1 +
 srcpkgs/python3-PyBrowserID/template                 | 1 +
 srcpkgs/python3-PyQt5/template                       | 1 +
 srcpkgs/python3-aiohttp/template                     | 1 +
 srcpkgs/python3-boltons/template                     | 1 +
 srcpkgs/python3-cli_helpers/template                 | 1 +
 srcpkgs/python3-curtsies/template                    | 1 +
 srcpkgs/python3-entrypoints/template                 | 1 +
 srcpkgs/python3-gevent/template                      | 1 +
 srcpkgs/python3-gitchangelog/template                | 1 +
 srcpkgs/python3-grpcio/template                      | 1 +
 srcpkgs/python3-mygpoclient/template                 | 1 +
 srcpkgs/python3-nose2/template                       | 1 +
 srcpkgs/python3-pdfminer.six/template                | 1 +
 srcpkgs/python3-pikepdf/template                     | 1 +
 srcpkgs/python3-pip/template                         | 1 +
 srcpkgs/python3-pwntools/template                    | 1 +
 srcpkgs/python3-pylibgen/template                    | 1 +
 srcpkgs/python3-pyside2/template                     | 1 +
 srcpkgs/python3-repoze.sphinx.autointerface/template | 1 +
 srcpkgs/python3-telegram/template                    | 1 +
 srcpkgs/python3/template                             | 1 +
 srcpkgs/qca-qt5/template                             | 1 +
 srcpkgs/qdirstat/template                            | 1 +
 srcpkgs/qingy/template                               | 1 +
 srcpkgs/qmmp/template                                | 1 +
 srcpkgs/qpdfview/template                            | 1 +
 srcpkgs/qscintilla-qt5/template                      | 1 +
 srcpkgs/qsstv/template                               | 1 +
 srcpkgs/qt5-fsarchiver/template                      | 1 +
 srcpkgs/qt5-styleplugins/template                    | 1 +
 srcpkgs/qt5-webkit/template                          | 1 +
 srcpkgs/qt5/template                                 | 1 +
 srcpkgs/qt5pas/template                              | 1 +
 srcpkgs/qt6-base/template                            | 1 +
 srcpkgs/qtav/template                                | 1 +
 srcpkgs/qtcreator/template                           | 1 +
 srcpkgs/qtikz/template                               | 1 +
 srcpkgs/qtkeychain-qt5/template                      | 1 +
 srcpkgs/qtpass/template                              | 1 +
 srcpkgs/quassel/template                             | 1 +
 srcpkgs/quickjs/template                             | 1 +
 srcpkgs/quota/template                               | 1 +
 srcpkgs/qv4l2/template                               | 1 +
 srcpkgs/rabbitmq-c/template                          | 1 +
 srcpkgs/racket/template                              | 1 +
 srcpkgs/radare2/template                             | 1 +
 srcpkgs/rakarrack/template                           | 1 +
 srcpkgs/rapidjson/template                           | 1 +
 srcpkgs/raptor/template                              | 1 +
 srcpkgs/rdedup/template                              | 1 +
 srcpkgs/rdis-git/template                            | 1 +
 srcpkgs/re/template                                  | 1 +
 srcpkgs/redis/template                               | 1 +
 srcpkgs/redo/template                                | 1 +
 srcpkgs/refind/template                              | 1 +
 srcpkgs/reiserfsprogs/template                       | 1 +
 srcpkgs/renderdoc/template                           | 1 +
 srcpkgs/residualvm/template                          | 1 +
 srcpkgs/resvg/template                               | 1 +
 srcpkgs/retroshare/template                          | 1 +
 srcpkgs/rhythmbox/template                           | 1 +
 srcpkgs/rinse/template                               | 1 +
 srcpkgs/rix/template                                 | 1 +
 srcpkgs/rmilter/template                             | 1 +
 srcpkgs/rmlint/template                              | 1 +
 srcpkgs/rpcbind/template                             | 1 +
 srcpkgs/rpi-imager/template                          | 1 +
 srcpkgs/rpm/template                                 | 1 +
 srcpkgs/rspamd/template                              | 1 +
 srcpkgs/rsstail/template                             | 1 +
 srcpkgs/rstudio/template                             | 1 +
 srcpkgs/rsyslog/template                             | 1 +
 srcpkgs/rtl8812au-dkms/template                      | 1 +
 srcpkgs/rtl8822bu-dkms/template                      | 1 +
 srcpkgs/rtmpdump/template                            | 1 +
 srcpkgs/rtorrent/template                            | 1 +
 srcpkgs/rubberband/template                          | 1 +
 srcpkgs/ruby/template                                | 1 +
 srcpkgs/ruler/template                               | 1 +
 srcpkgs/run-mailcap/template                         | 1 +
 srcpkgs/runit/template                               | 1 +
 srcpkgs/rustup/template                              | 1 +
 srcpkgs/rxvt-unicode/template                        | 1 +
 srcpkgs/s3cmd/template                               | 1 +
 srcpkgs/samba/template                               | 1 +
 srcpkgs/sandboxfs/template                           | 1 +
 srcpkgs/sane/template                                | 1 +
 srcpkgs/sauerbraten/template                         | 1 +
 srcpkgs/sbcl/template                                | 1 +
 srcpkgs/sc3-plugins/template                         | 1 +
 srcpkgs/scanmem/template                             | 1 +
 srcpkgs/schroot/template                             | 1 +
 srcpkgs/screen/template                              | 1 +
 srcpkgs/scrotty/template                             | 1 +
 srcpkgs/scummvm/template                             | 1 +
 srcpkgs/sddm/template                                | 1 +
 srcpkgs/seafile-client-qt/template                   | 1 +
 srcpkgs/seexpr-krita/template                        | 1 +
 srcpkgs/serf/template                                | 1 +
 srcpkgs/shaderc/template                             | 1 +
 srcpkgs/shadow/template                              | 1 +
 srcpkgs/shapelib/template                            | 1 +
 srcpkgs/shiboken2/template                           | 1 +
 srcpkgs/shmux/template                               | 1 +
 srcpkgs/shotwell/template                            | 1 +
 srcpkgs/signond/template                             | 1 +
 srcpkgs/sile/template                                | 1 +
 srcpkgs/silly/template                               | 1 +
 srcpkgs/simgear/template                             | 1 +
 srcpkgs/simutron/template                            | 1 +
 srcpkgs/sisl/template                                | 1 +
 srcpkgs/skroll/template                              | 1 +
 srcpkgs/slcp/template                                | 1 +
 srcpkgs/sleuthkit/template                           | 1 +
 srcpkgs/slim/template                                | 1 +
 srcpkgs/sloccount/template                           | 1 +
 srcpkgs/slurm-wlm/template                           | 1 +
 srcpkgs/smpeg/template                               | 1 +
 srcpkgs/smpeg2/template                              | 1 +
 srcpkgs/snapper/template                             | 1 +
 srcpkgs/snappy/template                              | 1 +
 srcpkgs/socat/template                               | 1 +
 srcpkgs/socklog/template                             | 1 +
 srcpkgs/sombok/template                              | 1 +
 srcpkgs/sonic-visualiser/template                    | 1 +
 srcpkgs/sopwith/template                             | 1 +
 srcpkgs/soundmodem/template                          | 1 +
 srcpkgs/spacefm/template                             | 1 +
 srcpkgs/spamassassin/template                        | 1 +
 srcpkgs/spampd/template                              | 1 +
 srcpkgs/speech-dispatcher/template                   | 1 +
 srcpkgs/speed-dreams/template                        | 1 +
 srcpkgs/spice-gtk/template                           | 1 +
 srcpkgs/spim/template                                | 1 +
 srcpkgs/splix/template                               | 1 +
 srcpkgs/spreed-webrtc/template                       | 1 +
 srcpkgs/sqmail/template                              | 1 +
 srcpkgs/squashfs-tools/template                      | 1 +
 srcpkgs/srb2/template                                | 1 +
 srcpkgs/ssoma/template                               | 1 +
 srcpkgs/sssd/template                                | 1 +
 srcpkgs/stack/template                               | 1 +
 srcpkgs/starplot/template                            | 1 +
 srcpkgs/stepmania/template                           | 1 +
 srcpkgs/stfl/template                                | 1 +
 srcpkgs/stk/template                                 | 1 +
 srcpkgs/stlink/template                              | 1 +
 srcpkgs/stockfish/template                           | 1 +
 srcpkgs/strawberry/template                          | 1 +
 srcpkgs/subversion-kwallet-auth/template             | 1 +
 srcpkgs/subversion/template                          | 1 +
 srcpkgs/sudo/template                                | 1 +
 srcpkgs/sudoku/template                              | 1 +
 srcpkgs/sunxi-tools/template                         | 1 +
 srcpkgs/supercollider/template                       | 1 +
 srcpkgs/supertux2/template                           | 1 +
 srcpkgs/supertuxkart/template                        | 1 +
 srcpkgs/sutils/template                              | 1 +
 srcpkgs/sway/template                                | 1 +
 srcpkgs/swiften/template                             | 1 +
 srcpkgs/sword/template                               | 1 +
 srcpkgs/sxiv/template                                | 1 +
 srcpkgs/sylpheed/template                            | 1 +
 srcpkgs/synergy/template                             | 1 +
 srcpkgs/synfigstudio/template                        | 1 +
 srcpkgs/sysbench/template                            | 1 +
 srcpkgs/sysdig/template                              | 1 +
 srcpkgs/sysexxer-ng/template                         | 1 +
 srcpkgs/sysprof/template                             | 1 +
 srcpkgs/taskd/template                               | 1 +
 srcpkgs/tbb/template                                 | 1 +
 srcpkgs/tc-play/template                             | 1 +
 srcpkgs/tcl/template                                 | 1 +
 srcpkgs/tcpdump/template                             | 1 +
 srcpkgs/teensy_loader_cli/template                   | 1 +
 srcpkgs/teeworlds/template                           | 1 +
 srcpkgs/telegram-desktop/template                    | 1 +
 srcpkgs/telepathy-mission-control/template           | 1 +
 srcpkgs/tepl/template                                | 1 +
 srcpkgs/terminal_markdown_viewer/template            | 1 +
 srcpkgs/tesseract-ocr/template                       | 1 +
 srcpkgs/tesseract/template                           | 1 +
 srcpkgs/tevent/template                              | 1 +
 srcpkgs/texi2mdoc/template                           | 1 +
 srcpkgs/texlab/template                              | 1 +
 srcpkgs/texlive/template                             | 1 +
 srcpkgs/texstudio/template                           | 1 +
 srcpkgs/textosaurus/template                         | 1 +
 srcpkgs/texworks/template                            | 1 +
 srcpkgs/tgt/template                                 | 1 +
 srcpkgs/thingylaunch/template                        | 1 +
 srcpkgs/thunderbird/template                         | 1 +
 srcpkgs/tickr/template                               | 1 +
 srcpkgs/tidy5/template                               | 1 +
 srcpkgs/tilp2/template                               | 1 +
 srcpkgs/tinyxml/template                             | 1 +
 srcpkgs/tlsh/template                                | 1 +
 srcpkgs/tmines/template                              | 1 +
 srcpkgs/tnftp/template                               | 1 +
 srcpkgs/tomahawk/template                            | 1 +
 srcpkgs/tor/template                                 | 1 +
 srcpkgs/torbrowser-launcher/template                 | 1 +
 srcpkgs/touchegg/template                            | 1 +
 srcpkgs/trace-cmd/template                           | 1 +
 srcpkgs/traceroute/template                          | 1 +
 srcpkgs/tracker/template                             | 1 +
 srcpkgs/tracker3-miners/template                     | 1 +
 srcpkgs/transcode/template                           | 1 +
 srcpkgs/transmission/template                        | 1 +
 srcpkgs/treesheets/template                          | 1 +
 srcpkgs/trinity/template                             | 1 +
 srcpkgs/trojita/template                             | 1 +
 srcpkgs/trousers/template                            | 1 +
 srcpkgs/tsocks/template                              | 1 +
 srcpkgs/ttyrec/template                              | 1 +
 srcpkgs/tup/template                                 | 1 +
 srcpkgs/turbovnc/template                            | 1 +
 srcpkgs/txr/template                                 | 1 +
 srcpkgs/typespeed/template                           | 1 +
 srcpkgs/u2f-hidraw-policy/template                   | 1 +
 srcpkgs/u9fs/template                                | 1 +
 srcpkgs/ucspi-ssl/template                           | 1 +
 srcpkgs/udptunnel/template                           | 1 +
 srcpkgs/ufoai/template                               | 1 +
 srcpkgs/ufraw/template                               | 1 +
 srcpkgs/uftrace/template                             | 1 +
 srcpkgs/uim/template                                 | 1 +
 srcpkgs/ulauncher/template                           | 1 +
 srcpkgs/ulogd/template                               | 1 +
 srcpkgs/unison/template                              | 1 +
 srcpkgs/unknown-horizons/template                    | 1 +
 srcpkgs/urbanterror/template                         | 1 +
 srcpkgs/urlview/template                             | 1 +
 srcpkgs/usbguard/template                            | 1 +
 srcpkgs/uwm/template                                 | 1 +
 srcpkgs/uwsgi/template                               | 1 +
 srcpkgs/v4l-utils/template                           | 1 +
 srcpkgs/vala-panel/template                          | 1 +
 srcpkgs/vanitygen/template                           | 1 +
 srcpkgs/vapoursynth-editor/template                  | 1 +
 srcpkgs/varnish/template                             | 1 +
 srcpkgs/vboot-utils/template                         | 1 +
 srcpkgs/vde2/template                                | 1 +
 srcpkgs/vdirsyncer/template                          | 1 +
 srcpkgs/vdrift/template                              | 1 +
 srcpkgs/virglrenderer/template                       | 1 +
 srcpkgs/virtualbox-ose/template                      | 1 +
 srcpkgs/virtuoso/template                            | 1 +
 srcpkgs/visitors/template                            | 1 +
 srcpkgs/vitetris/template                            | 1 +
 srcpkgs/vlc/template                                 | 1 +
 srcpkgs/voltron/template                             | 1 +
 srcpkgs/volumeicon/template                          | 1 +
 srcpkgs/vpcs/template                                | 1 +
 srcpkgs/vpn-ws/template                              | 1 +
 srcpkgs/vsftpd/template                              | 1 +
 srcpkgs/vte3/template                                | 1 +
 srcpkgs/w_scan/template                              | 1 +
 srcpkgs/waifu2x-converter-cpp/template               | 1 +
 srcpkgs/webkit2gtk/template                          | 1 +
 srcpkgs/wicd/template                                | 1 +
 srcpkgs/widelands/template                           | 1 +
 srcpkgs/wildmidi/template                            | 1 +
 srcpkgs/wine/template                                | 1 +
 srcpkgs/wineasio/template                            | 1 +
 srcpkgs/winusb/template                              | 1 +
 srcpkgs/wireshark/template                           | 1 +
 srcpkgs/wm2/template                                 | 1 +
 srcpkgs/woff2/template                               | 1 +
 srcpkgs/wordgrinder/template                         | 1 +
 srcpkgs/workrave/template                            | 1 +
 srcpkgs/wtype/template                               | 1 +
 srcpkgs/wvstreams/template                           | 1 +
 srcpkgs/wxPython4/template                           | 1 +
 srcpkgs/wxWidgets-gtk3/template                      | 1 +
 srcpkgs/wxWidgets/template                           | 1 +
 srcpkgs/x11vnc/template                              | 1 +
 srcpkgs/x265/template                                | 1 +
 srcpkgs/x42-plugins/template                         | 1 +
 srcpkgs/xapian-core/template                         | 1 +
 srcpkgs/xar/template                                 | 1 +
 srcpkgs/xautolock/template                           | 1 +
 srcpkgs/xava/template                                | 1 +
 srcpkgs/xboxdrv/template                             | 1 +
 srcpkgs/xcolorsel/template                           | 1 +
 srcpkgs/xdg-utils/template                           | 1 +
 srcpkgs/xerces-c/template                            | 1 +
 srcpkgs/xf86-input-mtrack/template                   | 1 +
 srcpkgs/xf86-input-synaptics/template                | 1 +
 srcpkgs/xf86-video-ati/template                      | 1 +
 srcpkgs/xf86-video-cirrus/template                   | 1 +
 srcpkgs/xf86-video-fbdev/template                    | 1 +
 srcpkgs/xf86-video-fbturbo-sunxi/template            | 1 +
 srcpkgs/xf86-video-fbturbo/template                  | 1 +
 srcpkgs/xf86-video-intel/template                    | 1 +
 srcpkgs/xf86-video-mach64/template                   | 1 +
 srcpkgs/xf86-video-mga/template                      | 1 +
 srcpkgs/xf86-video-r128/template                     | 1 +
 srcpkgs/xf86-video-vmware/template                   | 1 +
 srcpkgs/xfig/template                                | 1 +
 srcpkgs/xfsprogs/template                            | 1 +
 srcpkgs/xinetd/template                              | 1 +
 srcpkgs/xinit/template                               | 1 +
 srcpkgs/xload/template                               | 1 +
 srcpkgs/xlunch/template                              | 1 +
 srcpkgs/xnp2/template                                | 1 +
 srcpkgs/xonotic/template                             | 1 +
 srcpkgs/xorg-cf-files/template                       | 1 +
 srcpkgs/xorg-server/template                         | 1 +
 srcpkgs/xosview/template                             | 1 +
 srcpkgs/xplanet/template                             | 1 +
 srcpkgs/xrick/template                               | 1 +
 srcpkgs/xsane/template                               | 1 +
 srcpkgs/xsettingsd/template                          | 1 +
 srcpkgs/xst/template                                 | 1 +
 srcpkgs/xstarter/template                            | 1 +
 srcpkgs/xterm/template                               | 1 +
 srcpkgs/xye/template                                 | 1 +
 srcpkgs/yabar/template                               | 1 +
 srcpkgs/yarn-bin/template                            | 1 +
 srcpkgs/yarn/template                                | 1 +
 srcpkgs/yeahconsole/template                         | 1 +
 srcpkgs/yeahwm/template                              | 1 +
 srcpkgs/yersinia/template                            | 1 +
 srcpkgs/ympd/template                                | 1 +
 srcpkgs/yoshimi/template                             | 1 +
 srcpkgs/yosys/template                               | 1 +
 srcpkgs/z3/template                                  | 1 +
 srcpkgs/z80ex/template                               | 1 +
 srcpkgs/zabbix/template                              | 1 +
 srcpkgs/zbar/template                                | 1 +
 srcpkgs/zeal/template                                | 1 +
 srcpkgs/zeek/template                                | 1 +
 srcpkgs/zerofree/template                            | 1 +
 srcpkgs/zfs/template                                 | 1 +
 srcpkgs/zimg/template                                | 1 +
 srcpkgs/zinnia/template                              | 1 +
 srcpkgs/zip/template                                 | 1 +
 srcpkgs/zlib/template                                | 1 +
 srcpkgs/zsnes/template                               | 1 +
 srcpkgs/zulucrypt/template                           | 1 +
 srcpkgs/zutils/template                              | 1 +
 srcpkgs/zynaddsubfx/template                         | 1 +
 1241 files changed, 1241 insertions(+)

diff --git a/srcpkgs/0ad/template b/srcpkgs/0ad/template
index d6bbdb483101..183936084930 100644
--- a/srcpkgs/0ad/template
+++ b/srcpkgs/0ad/template
@@ -17,6 +17,7 @@ distfiles="https://releases.wildfiregames.com/${pkgname}-${version}-alpha-unix-b
 checksum=325c23c9b6bfc16eb636af6a7a7bdaadbf19214b6eed0422d74cc0090bf137a8
 nocross="uses bundled third-party libraries that do not cross-compile"
 lib32disabled=yes
+patch_args=-Np0
 
 CXXFLAGS="-fpermissive"
 # Use BFD linker to avoid erroneous detection of llvm pr8927 with *-musl
diff --git a/srcpkgs/66-tools/template b/srcpkgs/66-tools/template
index b9c5e7c66a79..ca916507c9a6 100644
--- a/srcpkgs/66-tools/template
+++ b/srcpkgs/66-tools/template
@@ -17,6 +17,7 @@ homepage="http://web.obarun.org/software/index.html"
 changelog="https://framagit.org/Obarun/66-tools/-/raw/master/doc/upgrade.md"
 distfiles="https://framagit.org/Obarun/66-tools/-/archive/v${version}/66-tools-v${version}.tar.gz"
 checksum=c8cbe0d6c104e4d87d588d5980201770a6fd2fad11f99ff138a37ff918d68491
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/7kaa/template b/srcpkgs/7kaa/template
index 7aa6e152c8f1..b776195a806b 100644
--- a/srcpkgs/7kaa/template
+++ b/srcpkgs/7kaa/template
@@ -15,6 +15,7 @@ distfiles="https://github.com/the3dfxdude/7kaa/releases/download/v${version}/${p
 checksum="f0265c077025d77b435f1c10b8ba178bdb16329e51ab735330ebaa71a104fbf8
  b0d767b6e25719a14f5f34a93744a8022d7bc24af66275bee54dfc788695c1c3"
 replaces="7kaa-data>=0"
+patch_args=-Np0
 
 post_extract() {
 	mv ../7kaa-music .
diff --git a/srcpkgs/9base/template b/srcpkgs/9base/template
index e7cee72701f8..74ed0a369e03 100644
--- a/srcpkgs/9base/template
+++ b/srcpkgs/9base/template
@@ -17,6 +17,7 @@ distfiles="https://alpha.de.repo.voidlinux.org/distfiles/9base-${_githash}.tar.g
 checksum=b315509470c25db88595bd0e9478428dea54d7836fe2ba9d07279ae9496366fb
 conflicts="plan9port"
 provides="plan9port-20160418_4"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/9mount/template b/srcpkgs/9mount/template
index 5b1160ad2049..6cf8f4e2fc9c 100644
--- a/srcpkgs/9mount/template
+++ b/srcpkgs/9mount/template
@@ -10,6 +10,7 @@ license="ISC"
 homepage="http://sqweek.net/code/9mount/"
 distfiles="http://sqweek.net/9p/$pkgname-$version.tar.gz"
 checksum=820d80b9b478d05ecb022ad658477b37cfc2414a8669c3af17d192a522064c17
+patch_args=-Np0
 
 pre_build() {
 	sed -i '/chown/d' Makefile
diff --git a/srcpkgs/Aegisub/template b/srcpkgs/Aegisub/template
index 2ddf6c24ee6e..8dcd52f2a62c 100644
--- a/srcpkgs/Aegisub/template
+++ b/srcpkgs/Aegisub/template
@@ -17,6 +17,7 @@ license="BSD-3-Clause, MIT"
 homepage="http://www.aegisub.org"
 distfiles="https://github.com/Aegisub/Aegisub/archive/v${version}.tar.gz"
 checksum=62757dd491455268a240f983b59734a801cc2e899039a7493deeaf5e24a61dcd
+patch_args=-Np0
 
 build_options="fftw openal portaudio"
 build_options_default="fftw"
diff --git a/srcpkgs/Brainfunk/template b/srcpkgs/Brainfunk/template
index 309179b0715a..389100d545c3 100644
--- a/srcpkgs/Brainfunk/template
+++ b/srcpkgs/Brainfunk/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/GReaperEx/Brainfunk"
 distfiles="${homepage}/archive/v${version}-beta.tar.gz"
 checksum=6b48bd1fbe0dbce20f3e8af5c799023ea820ddc45aca8fac0ccecfa2de359ee2
+patch_args=-Np0
 
 do_install() {
 	vbin bfk
diff --git a/srcpkgs/CPU-X/template b/srcpkgs/CPU-X/template
index 0947bcfef816..f99e7a8e62a2 100644
--- a/srcpkgs/CPU-X/template
+++ b/srcpkgs/CPU-X/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://x0rg.github.io/CPU-X/"
 distfiles="https://github.com/X0rg/CPU-X/archive/v${version}.tar.gz"
 checksum=c41fbb3000e3e6f79e5228aa0237fde4f98b11df8ccb4c9a46f7e63a4a7011bf
+patch_args=-Np0
 
 build_options="gtk3"
 build_options_default="gtk3"
diff --git a/srcpkgs/Carla/template b/srcpkgs/Carla/template
index 701fd0ea30f7..bc39346ecec8 100644
--- a/srcpkgs/Carla/template
+++ b/srcpkgs/Carla/template
@@ -18,6 +18,7 @@ homepage="https://kxstudio.linuxaudio.org/Applications:Carla"
 distfiles="https://github.com/falkTX/Carla/archive/v${version}.tar.gz"
 checksum=a82ce08f3a82db9d878c8cb7e7e2f3b80834bf21801c6ec4ed95c0cfee25b963
 python_version=3
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	x86_64* | i686*);;
diff --git a/srcpkgs/Cataclysm-DDA/template b/srcpkgs/Cataclysm-DDA/template
index bbe66b9f29b9..8e57303fe874 100644
--- a/srcpkgs/Cataclysm-DDA/template
+++ b/srcpkgs/Cataclysm-DDA/template
@@ -15,6 +15,7 @@ license="CC-BY-SA-3.0, CC-BY-3.0"
 homepage="https://cataclysmdda.org/"
 distfiles="https://github.com/CleverRaven/Cataclysm-DDA/archive/${version}.tar.gz"
 checksum=b0af9a9292929e17332edcea770bca9a91f1d08ea47726d78a47e09281a42fa3
+patch_args=-Np0
 
 build_options="tiles backtrace"
 build_options_default="tiles"
diff --git a/srcpkgs/Chipmunk2D/template b/srcpkgs/Chipmunk2D/template
index 142051ec0a4a..1f4180bda367 100644
--- a/srcpkgs/Chipmunk2D/template
+++ b/srcpkgs/Chipmunk2D/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://chipmunk-physics.net/"
 distfiles="https://github.com/slembcke/Chipmunk2D/archive/Chipmunk-${version}.tar.gz"
 checksum=6b6d8d5d910c4442fb9c8c4c46a178126d8c21d075cdb3ce439a7f8d8757b0ca
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/Clight/template b/srcpkgs/Clight/template
index cff8201154a1..70d18bd53b78 100644
--- a/srcpkgs/Clight/template
+++ b/srcpkgs/Clight/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/FedeDP/Clight"
 distfiles="https://github.com/FedeDP/Clight/archive/${version}.tar.gz"
 checksum=2ce204edd58284c178b99e2ffec0105fc8e78d8a076350f64424b66c9878e91e
+patch_args=-Np0
 
 post_install() {
 	vcompletion Extra/completions/_clight zsh
diff --git a/srcpkgs/Clp/template b/srcpkgs/Clp/template
index 5b2af733ca37..fe3a9f916b18 100644
--- a/srcpkgs/Clp/template
+++ b/srcpkgs/Clp/template
@@ -10,6 +10,7 @@ license="EPL-1.0"
 homepage="http://projects.coin-or.org/Clp"
 distfiles="https://www.coin-or.org/Tarballs/${pkgname}/${pkgname}-${version}.tgz"
 checksum=a13bf54291ad503cf76f5f93f2643d2add4faa5d0e60ff2db902ef715c094573
+patch_args=-Np0
 
 libClp-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/CoinMP/template b/srcpkgs/CoinMP/template
index 995353eee428..a889ea92d33b 100644
--- a/srcpkgs/CoinMP/template
+++ b/srcpkgs/CoinMP/template
@@ -10,6 +10,7 @@ license="CPL-1.0"
 homepage="https://projects.coin-or.org/CoinMP"
 distfiles="http://www.coin-or.org/download/source/${pkgname}/${pkgname}-${version}.tgz"
 checksum=3459fb0ccbdd39342744684338984ac4cc153fb0434f4cae8cf74bd67490a38d
+patch_args=-Np0
 
 post_configure() {
 	# remove erroneous cross base prefix from include paths
diff --git a/srcpkgs/CubicSDR/template b/srcpkgs/CubicSDR/template
index f2eb67e7f9b5..fbc8339d6da0 100644
--- a/srcpkgs/CubicSDR/template
+++ b/srcpkgs/CubicSDR/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://cubicsdr.com"
 distfiles="https://github.com/cjcliffe/CubicSDR/archive/${version}.tar.gz"
 checksum=5cb44c110fcbbb70a468b7fa402cf35f84d8901b3dd42d471a90ac3f5db00f4d
+patch_args=-Np0
 
 build_options="alsa pulseaudio jack"
 build_options_default="alsa pulseaudio"
diff --git a/srcpkgs/DarkRadiant/template b/srcpkgs/DarkRadiant/template
index 1d47801303d3..e5a0057af193 100644
--- a/srcpkgs/DarkRadiant/template
+++ b/srcpkgs/DarkRadiant/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/codereader/DarkRadiant/"
 distfiles="https://github.com/codereader/DarkRadiant/archive/${version}.tar.gz"
 checksum=8c5dc0f7d160dea7e9c735f9739e36462dd8c8719a3022156f9584250fc3b867
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/lib/wx/include/gtk3-unicode-3.0"
 
diff --git a/srcpkgs/Fritzing/template b/srcpkgs/Fritzing/template
index d97ab1654a52..4dd6b0cb08f9 100644
--- a/srcpkgs/Fritzing/template
+++ b/srcpkgs/Fritzing/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/${pkgname}/${pkgname}-app/archive/${version}.tar.g
  https://github.com/${pkgname}/${pkgname}-parts/archive/${_partshash}.tar.gz>fritzing-parts-${_partshash}.tar.gz"
 checksum="2475a95aad2c1536eef3fdb72665c5c16590644b45bd110a0cde223c916625b8
  2d5882f0180d04c582ef418fd286bf1d04142409d316a4cd5c9ce3e2d91434dd"
+patch_args=-Np0
 
 post_extract() {
 	# looks for libgit2 and boost in the source tree
diff --git a/srcpkgs/GConf/template b/srcpkgs/GConf/template
index 4365c11e5844..51c792007cb0 100644
--- a/srcpkgs/GConf/template
+++ b/srcpkgs/GConf/template
@@ -22,6 +22,7 @@ make_dirs="/usr/share/gconf/schemas 0755 root root
  /etc/gconf/gconf.xml.defaults 0755 root root
  /etc/gconf/gconf.xml.mandatory 0755 root root
  /etc/gconf/gconf.xml.system 0755 root root"
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/Gauche/template b/srcpkgs/Gauche/template
index 74beafdc6863..f40f1d382f95 100644
--- a/srcpkgs/Gauche/template
+++ b/srcpkgs/Gauche/template
@@ -15,6 +15,7 @@ alternatives="
  scheme:scheme:/usr/bin/gauche
  scheme:scheme.1:/usr/share/man/man1/gauche.1
 "
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	# Gauche needs itself to bootstrap for cross compilation.
diff --git a/srcpkgs/GraphicsMagick/template b/srcpkgs/GraphicsMagick/template
index 35f5269eac7c..68825a0d4a7e 100644
--- a/srcpkgs/GraphicsMagick/template
+++ b/srcpkgs/GraphicsMagick/template
@@ -21,6 +21,7 @@ changelog="http://www.graphicsmagick.org/NEWS.html"
 distfiles="${SOURCEFORGE_SITE}/graphicsmagick/graphicsmagick/${version}/${pkgname}-${version}.tar.gz"
 checksum=1e6723c48c4abbb31197fadf8396b2d579d97e197123edc70a4f057f0533d563
 keep_libtool_archives=yes
+patch_args=-Np0
 
 post_install() {
 	vlicense Copyright.txt LICENSE
diff --git a/srcpkgs/Haru/template b/srcpkgs/Haru/template
index d1207b72b881..439b4f934042 100644
--- a/srcpkgs/Haru/template
+++ b/srcpkgs/Haru/template
@@ -12,6 +12,7 @@ license="Zlib"
 homepage="http://libharu.org/"
 distfiles="https://github.com/libharu/libharu/archive/RELEASE_${version//./_}.tar.gz"
 checksum=8f9e68cc5d5f7d53d1bc61a1ed876add1faf4f91070dbc360d8b259f46d9a4d2
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args="--with-zlib=${XBPS_CROSS_BASE}/usr"
diff --git a/srcpkgs/LibreCAD/template b/srcpkgs/LibreCAD/template
index 3a5224f907ee..da6fd2e7239a 100644
--- a/srcpkgs/LibreCAD/template
+++ b/srcpkgs/LibreCAD/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://librecad.org"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=74c4ede409b13d0365c65c0cd52dba04f1049530f6df706dc905443d5e60db06
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	configure_args+=" BOOST_DIR=${XBPS_CROSS_BASE}/usr"
diff --git a/srcpkgs/LuaJIT/template b/srcpkgs/LuaJIT/template
index 9fbc72cbe4e7..e270384ecd37 100644
--- a/srcpkgs/LuaJIT/template
+++ b/srcpkgs/LuaJIT/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://www.luajit.org"
 distfiles="http://luajit.org/download/${pkgname}-${_dist_version}.tar.gz"
 checksum=1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3
+patch_args=-Np0
 
 build_options="lua52compat"
 
diff --git a/srcpkgs/MEGAcmd/template b/srcpkgs/MEGAcmd/template
index eb94684afcf6..893d78c880cc 100644
--- a/srcpkgs/MEGAcmd/template
+++ b/srcpkgs/MEGAcmd/template
@@ -14,6 +14,7 @@ homepage="https://github.com/meganz/MEGAcmd"
 distfiles="https://github.com/meganz/MEGAcmd/archive/${version}_Linux.tar.gz"
 checksum=2a3626a9f1d22303fe2123f984a8ecf3779d6d59ac6c67c1bf43c2423dcb832d
 replaces="megacmd>=0"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args="--with-libtool-sysroot=${XBPS_CROSS_BASE}"
diff --git a/srcpkgs/Maelstrom/template b/srcpkgs/Maelstrom/template
index 7c4be8c13b2a..ea3d28d0c4f4 100644
--- a/srcpkgs/Maelstrom/template
+++ b/srcpkgs/Maelstrom/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.libsdl.org/projects/Maelstrom/"
 distfiles="${homepage}/src/${pkgname}-${version}.tar.gz"
 checksum=93680322f4b04d4727ea8e0b461f259b604dc69e7465cb91d2b9aad378a9a036
+patch_args=-Np0
 
 CXXFLAGS="-Wno-error -Wno-write-strings -Wno-unused-result"
 
diff --git a/srcpkgs/MonkeysAudio/template b/srcpkgs/MonkeysAudio/template
index 6b9f47eda5e6..202b419fa843 100644
--- a/srcpkgs/MonkeysAudio/template
+++ b/srcpkgs/MonkeysAudio/template
@@ -14,6 +14,7 @@ distfiles="https://monkeysaudio.com/files/MAC_SDK_${version//./}.zip
 checksum="0000cbfad5f008014bf3d963b72039c518a1e93ded55b23da715d912c830623e
  7d60dabaf760f32180e272b5955d5f1a2febcf9930eff13e49a1934a286a5819"
 skip_extraction="license.html"
+patch_args=-Np0
 
 do_build() {
 	cp -p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/license.html ${wrksrc}
diff --git a/srcpkgs/ORBit2/template b/srcpkgs/ORBit2/template
index 10e7f52924b6..34ac1a00a447 100644
--- a/srcpkgs/ORBit2/template
+++ b/srcpkgs/ORBit2/template
@@ -13,6 +13,7 @@ homepage="http://projects.gnome.org/ORBit2/"
 distfiles="http://ftp.acc.umu.se/pub/gnome/sources/${pkgname}/2.14/${pkgname}-${version}.tar.bz2"
 checksum=55c900a905482992730f575f3eef34d50bda717c197c97c08fa5a6eafd857550
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ORBit2"
diff --git a/srcpkgs/OpenCPN/template b/srcpkgs/OpenCPN/template
index ee67dbaff01c..63796b6f17db 100644
--- a/srcpkgs/OpenCPN/template
+++ b/srcpkgs/OpenCPN/template
@@ -20,6 +20,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.0-or-later, MIT, WxWindows-e
 homepage="https://opencpn.org/"
 distfiles="https://github.com/OpenCPN/OpenCPN/archive/v${version}.tar.gz"
 checksum=f6ec38989bc38f5a7f63234c5e0230adeb73f5626b4e3d3dfa680f0c240badc7
+patch_args=-Np0
 
 build_options="lzma libarchive exif crashreport"
 build_options_default="lzma libarchive exif"
diff --git a/srcpkgs/OpenXcom/template b/srcpkgs/OpenXcom/template
index f44cc1e9d916..fc79fbb7e1f7 100644
--- a/srcpkgs/OpenXcom/template
+++ b/srcpkgs/OpenXcom/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="http://openxcom.org/"
 distfiles="https://github.com/SupSuper/${pkgname}/archive/v${version}.tar.gz"
 checksum=45acb280010a01d60506b1c5f2951ae501c012cc6161aac470bd15c1e6981246
+patch_args=-Np0
 
 pre_configure() {
 	aclocal --install -Im4
diff --git a/srcpkgs/PAmix/template b/srcpkgs/PAmix/template
index dc087f8c7f07..fece21ed427a 100644
--- a/srcpkgs/PAmix/template
+++ b/srcpkgs/PAmix/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/patroclos/PAmix"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=b63522889d70920d64229c66e2ab6929950476538443af297f6b242f7e9dc406
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	*-musl) broken="Parts of ncurses, not available on musl";;
diff --git a/srcpkgs/PrusaSlicer/template b/srcpkgs/PrusaSlicer/template
index dd0e76cb8017..9a073edcf573 100644
--- a/srcpkgs/PrusaSlicer/template
+++ b/srcpkgs/PrusaSlicer/template
@@ -18,6 +18,7 @@ homepage="https://www.prusa3d.com/prusaslicer/"
 distfiles="https://github.com/prusa3d/Prusaslicer/archive/version_${version}.tar.gz"
 checksum=cd3bac5e29b5441fc4690f28cd7b1064e97dc00207bbdc88f7bd7832308d6ca5
 nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/25230/steps/shell_3/logs/stdio"
+patch_args=-Np0
 
 Slic3rPE_package() {
 	build_style=meta
diff --git a/srcpkgs/QLC+/template b/srcpkgs/QLC+/template
index 38322eb305cc..8da1cc17f80c 100644
--- a/srcpkgs/QLC+/template
+++ b/srcpkgs/QLC+/template
@@ -14,6 +14,7 @@ license="Apache-2.0"
 homepage="https://www.qlcplus.org/"
 distfiles="https://github.com/mcallegari/qlcplus/archive/QLC+_$version.tar.gz"
 checksum=cefb5e84dee04b3567733fcaf4f8125069eec859b506e790ba8a9d921f1e75cc
+patch_args=-Np0
 
 pre_build() {
 	vsed -i 's/QMAKE_CXXFLAGS/#QMAKE_CXXFLAGS/' variables.pri
diff --git a/srcpkgs/SDL/template b/srcpkgs/SDL/template
index d55ee7ab382e..03c5de1df7df 100644
--- a/srcpkgs/SDL/template
+++ b/srcpkgs/SDL/template
@@ -19,6 +19,7 @@ license="LGPL-2.1-only"
 homepage="http://www.libsdl.org/"
 distfiles="http://www.libsdl.org/release/SDL-${version}.tar.gz"
 checksum=d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00
+patch_args=-Np0
 
 # Package build options
 build_options="x11 opengl aalib pulseaudio"
diff --git a/srcpkgs/SDL2/template b/srcpkgs/SDL2/template
index 9013c2e73e21..7bc1e95d78b1 100644
--- a/srcpkgs/SDL2/template
+++ b/srcpkgs/SDL2/template
@@ -15,6 +15,7 @@ license="Zlib"
 homepage="http://www.libsdl.org/"
 distfiles="http://www.libsdl.org/release/${pkgname}-${version}.tar.gz"
 checksum=d8215b571a581be1332d2106f8036fcb03d12a70bae01e20f424976d275432bc
+patch_args=-Np0
 
 # Package build options
 build_options="gles opengl pulseaudio sndio vulkan wayland x11"
diff --git a/srcpkgs/SLADE/template b/srcpkgs/SLADE/template
index 030aac7a61b2..1557b2429b3c 100644
--- a/srcpkgs/SLADE/template
+++ b/srcpkgs/SLADE/template
@@ -15,6 +15,7 @@ homepage="https://github.com/sirjuddington/SLADE"
 changelog="https://github.com/sirjuddington/SLADE/releases/tag/${version}"
 distfiles="https://github.com/sirjuddington/SLADE/archive/${version}.tar.gz"
 checksum=7dc8a0089855f6321d2ec185fa5c97fcb7cc54857033aa3adec9a5ec8226ed60
+patch_args=-Np0
 
 pre_configure() {
 	case $XBPS_TARGET_MACHINE in
diff --git a/srcpkgs/SMC/template b/srcpkgs/SMC/template
index d67469fc18a8..15f8f14acef5 100644
--- a/srcpkgs/SMC/template
+++ b/srcpkgs/SMC/template
@@ -18,6 +18,7 @@ checksum="
  b4194e70d3f1de3da884dd1a11e4f5cec25a205f66a3b85cc9fc1c86289b237d
  c5bb2e1830c7cbe499c93851f5a02b2b900b4730d2c7a133a44a7b43a297dab8"
 replaces="SMC-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-fpermissive -std=c++11"
 LDFLAGS="-Wl,--no-as-needed -lX11 -lboost_system"
diff --git a/srcpkgs/Signal-Desktop/template b/srcpkgs/Signal-Desktop/template
index 8999b6e483ff..7fa1635eefff 100644
--- a/srcpkgs/Signal-Desktop/template
+++ b/srcpkgs/Signal-Desktop/template
@@ -14,6 +14,7 @@ homepage="https://github.com/signalapp/Signal-Desktop"
 distfiles="https://github.com/signalapp/Signal-Desktop/archive/v${version}.tar.gz"
 checksum=f9f55c0195579b43712bf370b753337432eda4bcf89809d1c8f3deb0b4ee4400
 nostrip_files="signal-desktop"
+patch_args=-Np0
 
 pre_build() {
 	vsed -e 's/"node": "/&>=/' -i package.json
diff --git a/srcpkgs/TSC/template b/srcpkgs/TSC/template
index 71534315cf7c..66ebf5dd530a 100644
--- a/srcpkgs/TSC/template
+++ b/srcpkgs/TSC/template
@@ -19,6 +19,7 @@ homepage="https://www.secretchronicles.org/"
 distfiles="https://ftp.secretchronicles.org/releases/${pkgname}-${version}.tar.gz"
 checksum=6a16765b4951e3d5d1ea2b84e6da8f67b0271460f0c570b53ccdab80d7396261
 replaces="TSC-data"
+patch_args=-Np0
 
 if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
 	broken="The host ($XBPS_WORDSIZE) and target ($XBPS_TARGET_WORDSIZE) word sizes need to be the same for cross building."
diff --git a/srcpkgs/VeraCrypt/template b/srcpkgs/VeraCrypt/template
index 2b4dd9fcc7e5..c95a8fa6b25d 100644
--- a/srcpkgs/VeraCrypt/template
+++ b/srcpkgs/VeraCrypt/template
@@ -16,6 +16,7 @@ license="Apache-2.0, custom:TrueCrypt-3.0"
 homepage="https://www.veracrypt.fr"
 distfiles="https://www.veracrypt.fr/code/VeraCrypt/snapshot/VeraCrypt-VeraCrypt_${_realversion}.tar.gz"
 checksum=cbdecffdfc258dccca6de1b79759e673dee3329280849b10d8253e802d45b41e
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) ;;
diff --git a/srcpkgs/XyGrib/template b/srcpkgs/XyGrib/template
index e4aa3a2e0265..ccad1528e349 100644
--- a/srcpkgs/XyGrib/template
+++ b/srcpkgs/XyGrib/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://opengribs.org/"
 distfiles="https://github.com/opengribs/XyGrib/archive/v${version}.tar.gz"
 checksum=2dc6099293ae6f7a4bfbfc0cab590cf7ad48241d608e6d7a76e35961b9fc2157
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args="LINK=${XBPS_CROSS_TRIPLET}-c++"
diff --git a/srcpkgs/ZMusic/template b/srcpkgs/ZMusic/template
index 23e805e3c99c..002c59fdc493 100644
--- a/srcpkgs/ZMusic/template
+++ b/srcpkgs/ZMusic/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/coelckers/ZMusic"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=73082f661b7b0bb33348d1d186c132deec9132a1613480348a00172b49c9fd68
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" musl-fts-devel"
diff --git a/srcpkgs/a2ps/template b/srcpkgs/a2ps/template
index 9335f38e08e0..5497ec5a574e 100644
--- a/srcpkgs/a2ps/template
+++ b/srcpkgs/a2ps/template
@@ -14,6 +14,7 @@ homepage="http://www.gnu.org/software/a2ps/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4
 conf_files="/etc/a2ps/a2ps.cfg /etc/a2ps/a2ps-site.cfg"
+patch_args=-Np0
 
 LDFLAGS="-lm"
 
diff --git a/srcpkgs/abduco/template b/srcpkgs/abduco/template
index 21fa18ce85ae..6aa3a516c5e2 100644
--- a/srcpkgs/abduco/template
+++ b/srcpkgs/abduco/template
@@ -10,6 +10,7 @@ license="ISC"
 homepage="http://www.brain-dump.org/projects/abduco/"
 distfiles="http://www.brain-dump.org/projects/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c90909e13fa95770b5afc3b59f311b3d3d2fdfae23f9569fa4f96a3e192a35f4
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/abook/template b/srcpkgs/abook/template
index 9538e8d1f4da..c22614dedfb8 100644
--- a/srcpkgs/abook/template
+++ b/srcpkgs/abook/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://abook.sourceforge.net/"
 distfiles="http://abook.sourceforge.net/devel/${pkgname}-${version}.tar.gz"
 checksum=f0a90df8694fb34685ecdd45d97db28b88046c15c95e7b0700596028bd8bc0f9
+patch_args=-Np0
 
 post_extract() {
 	autoreconf --install
diff --git a/srcpkgs/accountsservice/template b/srcpkgs/accountsservice/template
index c00a4077d8f7..84c28f82c875 100644
--- a/srcpkgs/accountsservice/template
+++ b/srcpkgs/accountsservice/template
@@ -17,6 +17,7 @@ checksum=ff2b2419a7e06bd9cb335ffe391c7409b49a0f0130b890bd54692a3986699c9b
 make_dirs="
  /var/lib/AccountsService/users 755 root root
  /var/lib/AccountsService/icons 755 root root"
+patch_args=-Np0
 
 # Package build options
 build_options="elogind gir"
diff --git a/srcpkgs/acct/template b/srcpkgs/acct/template
index 860bb6b28ccf..b3ac5cc05599 100644
--- a/srcpkgs/acct/template
+++ b/srcpkgs/acct/template
@@ -9,6 +9,7 @@ license="GPL-3.0-or-later"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4c15bf2b58b16378bcc83f70e77d4d40ab0b194acf2ebeefdb507f151faa663f
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	post_extract() {
diff --git a/srcpkgs/acpi_call-dkms/template b/srcpkgs/acpi_call-dkms/template
index 2a24e481538f..752770b0da9d 100644
--- a/srcpkgs/acpi_call-dkms/template
+++ b/srcpkgs/acpi_call-dkms/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/damadmai/acpi_call"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=c48a0a8768d657a8da7b59d7dbf6276554313fa6a0cb012fa4cf85a77e55f44b
+patch_args=-Np0
 
 dkms_modules="acpi_call ${version}"
 depends="dkms"
diff --git a/srcpkgs/acpid/template b/srcpkgs/acpid/template
index 8312d0e4e15a..df44a949213a 100644
--- a/srcpkgs/acpid/template
+++ b/srcpkgs/acpid/template
@@ -10,6 +10,7 @@ homepage="https://sourceforge.net/projects/acpid2/"
 distfiles="${SOURCEFORGE_SITE}/acpid2/acpid-${version}.tar.xz"
 checksum=f2d2d30b3edc3234bd82f6f7186699a6aa3c85c8d20bc4e30e9b3c68a1ed157e
 conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"
+patch_args=-Np0
 
 post_install() {
 	vinstall ${FILESDIR}/handler.sh 755 etc/acpi
diff --git a/srcpkgs/actiona/template b/srcpkgs/actiona/template
index 6ce3ccdc6b41..9b66b6e673a2 100644
--- a/srcpkgs/actiona/template
+++ b/srcpkgs/actiona/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://actiona.tools/"
 distfiles="https://github.com/Jmgr/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=447065e380f8f37db4c8af01df8e1b9d7189cd256205f758845b71d8de6f37ea
+patch_args=-Np0
 
 post_build() {
 	lrelease-qt5 locale/*.ts
diff --git a/srcpkgs/afterstep/template b/srcpkgs/afterstep/template
index ba9c15546dea..f5b99af26493 100644
--- a/srcpkgs/afterstep/template
+++ b/srcpkgs/afterstep/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://www.afterstep.org/"
 distfiles="https://github.com/sashavasko/${pkgname}-devel/archive/${version}.tar.gz"
 checksum=7a82d06a9ce432ef3b0856ff39f6da416aa8cbc249dbb2ff3c1cdcb02e2ca46d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi libAfterBase
diff --git a/srcpkgs/agg/template b/srcpkgs/agg/template
index a313e19cb1f9..5cdbcaa17b47 100644
--- a/srcpkgs/agg/template
+++ b/srcpkgs/agg/template
@@ -13,6 +13,7 @@ homepage="http://www.antigrain.com/"
 license="GPL-2.0-or-later"
 distfiles="http://www.antigrain.com/agg-${version}.tar.gz"
 checksum=ab1edc54cc32ba51a62ff120d501eecd55fceeedf869b9354e7e13812289911f
+patch_args=-Np0
 
 pre_configure() {
 	sed -e '/AM_C_PROTOTYPES/d' -i configure.in
diff --git a/srcpkgs/allegro4/template b/srcpkgs/allegro4/template
index f8901c34cecc..99b570dcb675 100644
--- a/srcpkgs/allegro4/template
+++ b/srcpkgs/allegro4/template
@@ -17,6 +17,7 @@ homepage="http://alleg.sourceforge.net/"
 homepage="https://liballeg.org"
 distfiles="https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz"
 checksum=ec19dbc9a021244582b4819b3583ee594b50141f9fcf6944a4ed8069cbf8d4d4
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/allegro5/template b/srcpkgs/allegro5/template
index f55a7eb6c144..d96d1b779231 100644
--- a/srcpkgs/allegro5/template
+++ b/srcpkgs/allegro5/template
@@ -17,6 +17,7 @@ license="Allegro License (MIT alike)"
 homepage="https://liballeg.org/"
 distfiles="https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz"
 checksum=5de8189ec051e1865f359654f86ec68e2a12a94edd00ad06d1106caa5ff27763
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/alsa-firmware/template b/srcpkgs/alsa-firmware/template
index b85bc791275d..8ded0831aa1c 100644
--- a/srcpkgs/alsa-firmware/template
+++ b/srcpkgs/alsa-firmware/template
@@ -12,6 +12,7 @@ distfiles="https://www.alsa-project.org/files/pub/firmware/${pkgname}-${version}
 checksum=b67b6d7d08bcfc247ef6ff0ab88a99c188305a3cf57ae2dfd0bcd9a5b36cd5bb
 nostrip=yes
 ignore_elf_files="/usr/share/alsa/firmware/mixartloader/miXart8.elf"
+patch_args=-Np0
 
 pre_configure() {
 	export CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" LDFLAGS="${BUILD_LDFLAGS}"
diff --git a/srcpkgs/alsa-tools/template b/srcpkgs/alsa-tools/template
index 1078472c79ae..e96cc23f1547 100644
--- a/srcpkgs/alsa-tools/template
+++ b/srcpkgs/alsa-tools/template
@@ -12,6 +12,7 @@ homepage="http://alsa-project.org"
 distfiles="https://www.alsa-project.org/files/pub/tools/alsa-tools-${version}.tar.bz2"
 checksum=bfd3c7aae1289269605d3da02279159b10e3dabdd31e658cbceaa30170957349
 python_version=3
+patch_args=-Np0
 
 _tools="
 	as10k1 echomixer envy24control hdajackretask hdajacksensetest hda-verb hdspconf
diff --git a/srcpkgs/amdvlk/template b/srcpkgs/amdvlk/template
index 1182a174b558..6a29a3bc9290 100644
--- a/srcpkgs/amdvlk/template
+++ b/srcpkgs/amdvlk/template
@@ -42,6 +42,7 @@ checksum="ec17d7f7c7af5adaa2fee7744321da3665be215105df7c3fc72bfeff2575a509
  186060fbcf87165224ba7df0e1858b66ebc42cf190c481aef1df8d89ebab7abd"
 nocross=yes
 lib32files="/usr/share/vulkan/icd.d/amd_icd32.json"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*) nodebug=yes;;
diff --git a/srcpkgs/angrysearch/template b/srcpkgs/angrysearch/template
index 96b6b6604ba8..bf03527607a7 100644
--- a/srcpkgs/angrysearch/template
+++ b/srcpkgs/angrysearch/template
@@ -13,6 +13,7 @@ homepage="https://github.com/dotheevo/angrysearch/"
 distfiles="http://github.com/dotheevo/${pkgname}/archive/v${version}.tar.gz"
 checksum=9a550649c3efafb26660860758f2e75702ce96a0a0c50dc34ced2967b51a843f
 python_version=3
+patch_args=-Np0
 
 do_install() {
 	vinstall angrysearch.desktop 644 "usr/share/applications"
diff --git a/srcpkgs/anjuta/template b/srcpkgs/anjuta/template
index b46d58aeafe3..e861c17df632 100644
--- a/srcpkgs/anjuta/template
+++ b/srcpkgs/anjuta/template
@@ -22,6 +22,7 @@ license="GPL-2.0-or-later"
 homepage="https://projects.gnome.org/anjuta"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=42a93130ed3ee02d064a7094e94e1ffae2032b3f35a87bf441e37fc3bb3a148f
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/anki/template b/srcpkgs/anki/template
index 55976fbd26eb..731999e63600 100644
--- a/srcpkgs/anki/template
+++ b/srcpkgs/anki/template
@@ -13,6 +13,7 @@ homepage="https://apps.ankiweb.net"
 changelog="https://apps.ankiweb.net/docs/changes.html"
 distfiles="https://apps.ankiweb.net/downloads/archive/anki-$version-source.tgz"
 checksum=5a53760164c77d619f55107a13099cffe620566a7f610b61b6c4b52487f3bb89
+patch_args=-Np0
 
 python_version=3
 
diff --git a/srcpkgs/antimicrox/template b/srcpkgs/antimicrox/template
index 6a77e8e3a09b..1e4a1d081868 100644
--- a/srcpkgs/antimicrox/template
+++ b/srcpkgs/antimicrox/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/AntiMicroX/antimicrox"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=53c6b0e6c8ea8c3a5527b56e1ad052eae983ba36abfc090769c6164bc5f342dd
+patch_args=-Np0
 
 libantimicrox_package() {
 	short_desc+=" - libraries"
diff --git a/srcpkgs/antiword/template b/srcpkgs/antiword/template
index a4dfb6ceb229..c33563fa0c9a 100644
--- a/srcpkgs/antiword/template
+++ b/srcpkgs/antiword/template
@@ -12,6 +12,7 @@ distfiles="http://www.winfield.demon.nl/linux/antiword-${version}.tar.gz
  http://sources.debian.net/data/main/a/antiword/0.37-10/debian/patches/docx.patch"
 checksum="8e2c000fcbc6d641b0e6ff95e13c846da3ff31097801e86702124a206888f5ac
  0ca787f8e31a2e05e6c0ff73406d9a7f0355fe27238a0cde3ed7cf6d3418c8aa"
+patch_args=-Np0
 
 do_build() {
 	# debian patch for better docx handling
diff --git a/srcpkgs/apache/template b/srcpkgs/apache/template
index 3c92ff8fc988..24fa60ac48a6 100644
--- a/srcpkgs/apache/template
+++ b/srcpkgs/apache/template
@@ -37,6 +37,7 @@ homepage="http://httpd.apache.org/"
 changelog="http://www.apache.org/dist/httpd/CHANGES_2.4"
 distfiles="https://archive.apache.org/dist/httpd/httpd-${version}.tar.bz2"
 checksum=1bc826e7b2e88108c7e4bf43c026636f77a41d849cfb667aa7b5c0b86dbf966c
+patch_args=-Np0
 
 system_accounts="_${pkgname}"
 _apache_homedir="/srv/www/$pkgname"
diff --git a/srcpkgs/apl/template b/srcpkgs/apl/template
index 88b8d32b6720..06472f651624 100644
--- a/srcpkgs/apl/template
+++ b/srcpkgs/apl/template
@@ -14,6 +14,7 @@ distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=144f4c858a0d430ce8f28be90a35920dd8e0951e56976cb80b55053fa0d8bbcb
 nocross="execs target binary: ./Gtk_server --ev1 > Gtk_events1.asciidoc"
 CXXFLAGS="-Wno-format-truncation -Wno-class-memaccess -Wno-maybe-uninitialized -Wno-restrict -Wno-cpp"
+patch_args=-Np0
 
 post_install() {
 	vdoc support-files/Dyalog-Keyboard/apl.xkb
diff --git a/srcpkgs/appstream-glib/template b/srcpkgs/appstream-glib/template
index 5eaf493d53f6..36c6fffca5d1 100644
--- a/srcpkgs/appstream-glib/template
+++ b/srcpkgs/appstream-glib/template
@@ -16,6 +16,7 @@ homepage="https://people.freedesktop.org/~hughsient/appstream-glib/"
 changelog="https://raw.githubusercontent.com/hughsie/appstream-glib/master/NEWS"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
 checksum=ca1ed22e3bde3912cb903aaa7de085d55771da454f1c0573fd9608e1de9c4002
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/apr/template b/srcpkgs/apr/template
index f2dc1241668a..1fa0399f64b6 100644
--- a/srcpkgs/apr/template
+++ b/srcpkgs/apr/template
@@ -11,6 +11,7 @@ license="Apache-2.0"
 homepage="http://apr.apache.org/"
 distfiles="http://www.apache.org/dist/apr/apr-${version}.tar.bz2"
 checksum=e2e148f0b2e99b8e5c6caa09f6d4fb4dd3e83f744aa72a952f94f5a14436f7ea
+patch_args=-Np0
 
 # Do not redefine struct iovec in include/apr_want.h
 CFLAGS="-DAPR_IOVEC_DEFINED=1"
diff --git a/srcpkgs/aqbanking/template b/srcpkgs/aqbanking/template
index ea55a80935d7..9f509f325469 100644
--- a/srcpkgs/aqbanking/template
+++ b/srcpkgs/aqbanking/template
@@ -12,6 +12,7 @@ homepage="http://www.aquamaniac.de/aqbanking"
 distfiles="https://www.aquamaniac.de/rdm/attachments/download/372/${pkgname}-${version}.tar.gz"
 checksum=a0e85da2072c927bc32cfd808caaccfdabe34725e75618b08d8049306d8355cc
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
diff --git a/srcpkgs/aqemu/template b/srcpkgs/aqemu/template
index eea61aa562bc..0ada7d5bc748 100644
--- a/srcpkgs/aqemu/template
+++ b/srcpkgs/aqemu/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://aqemu.sourceforge.net"
 distfiles="https://github.com/TBK/aqemu/archive/v${version}.tar.gz"
 checksum=576ae78de936518a1de057355ffc192b59e42be934f0111122b2c5fcafe318a7
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/ardour/template b/srcpkgs/ardour/template
index ae133e67b141..14e6810a0ac5 100644
--- a/srcpkgs/ardour/template
+++ b/srcpkgs/ardour/template
@@ -18,6 +18,7 @@ short_desc="Professional-grade digital audio workstation"
 maintainer="tibequadorian <tibequadorian@posteo.de>"
 license="GPL-2.0-or-later"
 homepage="http://ardour.org"
+patch_args=-Np0
 
 CXXFLAGS="-fpermissive"
 
diff --git a/srcpkgs/arduino/template b/srcpkgs/arduino/template
index d352962e73d3..5d6531ec93fc 100644
--- a/srcpkgs/arduino/template
+++ b/srcpkgs/arduino/template
@@ -19,6 +19,7 @@ checksum="2a2a7bf0a93d36dff2e27f50e490529f10ff73337d6a0b7b222fa6b1a529c9f7
  6c3ab029e0e4a75e2e603d449014374aa8269218fdd03a4aaa46ab743b1912fd"
 nostrip=yes
 nocross="cross build lacks essential libraries"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	broken="downloads multiple binaries linked to glibc; segfaults with gcompat"
diff --git a/srcpkgs/argon2/template b/srcpkgs/argon2/template
index 7cc1bb0617eb..04bdaf7a1419 100644
--- a/srcpkgs/argon2/template
+++ b/srcpkgs/argon2/template
@@ -14,6 +14,7 @@ license="CC0-1.0, Apache-2.0"
 homepage="https://github.com/P-H-C/phc-winner-argon2"
 distfiles="https://github.com/P-H-C/phc-winner-argon2/archive/${version}.tar.gz"
 checksum=daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c
+patch_args=-Np0
 
 libargon2_package() {
 	short_desc="Password hashing library"
diff --git a/srcpkgs/argyllcms/template b/srcpkgs/argyllcms/template
index 5fb8294254f7..33d0d14436cc 100644
--- a/srcpkgs/argyllcms/template
+++ b/srcpkgs/argyllcms/template
@@ -12,6 +12,7 @@ license="AGPL-3.0-or-later, GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://www.argyllcms.com/"
 distfiles="https://www.argyllcms.com/Argyll_V${version}_src.zip"
 checksum=be378ca836b17b8684db05e9feaab138d711835ef00a04a76ac0ceacd386a3e3
+patch_args=-Np0
 
 # Build system look only under / for headers and libraries. Breaks cross.
 nocross=yes
diff --git a/srcpkgs/ark/template b/srcpkgs/ark/template
index dfa7870ed4ca..22022fc8a649 100644
--- a/srcpkgs/ark/template
+++ b/srcpkgs/ark/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://kde.org/applications/en/utilities/org.kde.ark"
 distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=09e0294c36a881585183bf165020ef832bfbbd181547ea26eb78268aab46a768
+patch_args=-Np0
 
 do_check() {
 	cd build
diff --git a/srcpkgs/armadillo/template b/srcpkgs/armadillo/template
index 9407c3aa8b48..52e72128108d 100644
--- a/srcpkgs/armadillo/template
+++ b/srcpkgs/armadillo/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="http://arma.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/arma/${pkgname}-${version}.tar.xz"
 checksum=d78658c9442addf7f718eb05881150ee3ec25604d06dd3af4942422b3ce26d05
+patch_args=-Np0
 
 build_options="hdf5"
 desc_option_hdf5="HDF5 support"
diff --git a/srcpkgs/artyfx/template b/srcpkgs/artyfx/template
index f06781b63736..279fa42510d9 100644
--- a/srcpkgs/artyfx/template
+++ b/srcpkgs/artyfx/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://openavproductions.com/artyfx/"
 distfiles="https://github.com/openAVproductions/openAV-ArtyFX/archive/release-$version.tar.gz"
 checksum=a2a8d02b47bea44d0053cd4f8c6411f68a6fe9b9e4348a4139cd9bfd70105c00
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	armv7*)
diff --git a/srcpkgs/asignify/template b/srcpkgs/asignify/template
index 24b6f55108ea..a6bc88da22d8 100644
--- a/srcpkgs/asignify/template
+++ b/srcpkgs/asignify/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/vstakhov/asignify"
 distfiles="https://github.com/vstakhov/asignify/archive/${version}.tar.gz"
 checksum=81272713900b51049633139549181fa23e56eeb580e0ea0325546d2fe7ca503d
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/assimp/template b/srcpkgs/assimp/template
index 7d45161ede5d..39b1cb64289c 100644
--- a/srcpkgs/assimp/template
+++ b/srcpkgs/assimp/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="http://assimp.sourceforge.net/"
 distfiles="https://github.com/assimp/assimp/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=11310ec1f2ad2cd46b95ba88faca8f7aaa1efe9aa12605c55e3de2b977b3dbfc
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/astroid/template b/srcpkgs/astroid/template
index e37e50c628fe..b1c72bcbe608 100644
--- a/srcpkgs/astroid/template
+++ b/srcpkgs/astroid/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="http://astroidmail.github.io/"
 distfiles="https://github.com/astroidmail/astroid/archive/v${version}.tar.gz"
 checksum=8581bbdbc71bd00d4cdd473cfad8bc604628bb15616fe5eab5c623461f686c65
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qemu-user-static prelink-cross"
diff --git a/srcpkgs/astyle/template b/srcpkgs/astyle/template
index 860e5840811c..d6e09e75d70d 100644
--- a/srcpkgs/astyle/template
+++ b/srcpkgs/astyle/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://astyle.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${version}_linux.tar.gz"
 checksum=cbcc4cf996294534bb56f025d6f199ebfde81aa4c271ccbd5ee1c1a3192745d7
+patch_args=-Np0
 
 do_install() {
 	vbin bin/astyle
diff --git a/srcpkgs/at/template b/srcpkgs/at/template
index 772c4582b3e7..563b741d6af8 100644
--- a/srcpkgs/at/template
+++ b/srcpkgs/at/template
@@ -16,6 +16,7 @@ homepage="http://packages.qa.debian.org/a/at.html"
 distfiles="${DEBIAN_SITE}/main/a/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=2211da14914fde1f9cc83592838fb6385a32fb11fcecb7816c77700df6559088
 disable_parallel_build=yes
+patch_args=-Np0
 
 conf_files="/etc/at.deny"
 system_accounts="at"
diff --git a/srcpkgs/aterm/template b/srcpkgs/aterm/template
index cf474ff86dec..6608120fc2d9 100644
--- a/srcpkgs/aterm/template
+++ b/srcpkgs/aterm/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.afterstep.org/aterm.php"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=a161c3b2d9c7149130a41963899993af21eae92e8e362f4b5b3c7c4cb16760ce
+patch_args=-Np0
 
 pre_build() {
 	sed -i '/INSTALL_PROGRAM/s,-c -s,-c ,g' src/Makefile
diff --git a/srcpkgs/atomicparsley/template b/srcpkgs/atomicparsley/template
index b82abf7d377c..4f6d6cc2d8f2 100644
--- a/srcpkgs/atomicparsley/template
+++ b/srcpkgs/atomicparsley/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://bitbucket.org/wez/atomicparsley/"
 distfiles="https://bitbucket.org/wez/atomicparsley/get/${version}.tar.gz"
 checksum=8ba4e3e21d7a9239932e2a6f34842194d8f9eba84ce9eb83fb35369f5f3f05ab
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/atop/template b/srcpkgs/atop/template
index 8c981e657879..8ba868d263e3 100644
--- a/srcpkgs/atop/template
+++ b/srcpkgs/atop/template
@@ -12,6 +12,7 @@ homepage="https://www.atoptool.nl/"
 distfiles="https://www.atoptool.nl/download/atop-${version}.tar.gz"
 checksum=4b911057ce50463b6e8b3016c5963d48535c0cddeebc6eda817e292b22f93f33
 python_version=2 #unverified
+patch_args=-Np0
 
 make_dirs="/var/log/atop 755 root root"
 
diff --git a/srcpkgs/attic/template b/srcpkgs/attic/template
index 153c0341edcb..3e7feff29c04 100644
--- a/srcpkgs/attic/template
+++ b/srcpkgs/attic/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://attic-backup.org/"
 distfiles="${PYPI_SITE}/A/Attic/Attic-${version}.tar.gz"
 checksum=6650cd28072101c2e05941e77b93a62f91da6179785e4e4b4880916c469bba2c
+patch_args=-Np0
 
 pre_build() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/attract/template b/srcpkgs/attract/template
index ceff4287193d..dd2419954f94 100644
--- a/srcpkgs/attract/template
+++ b/srcpkgs/attract/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="http://attractmode.org/"
 distfiles="https://github.com/mickelson/attract/archive/v${version}.tar.gz"
 checksum=4c17641ce0a0b9ff77da5e75f0cb26cc48e4c6295ef57d86a37db18b2bd9fbe9
+patch_args=-Np0
 
 CFLAGS="-std=gnu++11 \
 	-I extlibs/audio/include \
diff --git a/srcpkgs/aubio/template b/srcpkgs/aubio/template
index eaab3e9fdb72..c903e81ed8d5 100644
--- a/srcpkgs/aubio/template
+++ b/srcpkgs/aubio/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="http://aubio.org"
 distfiles="${homepage}/pub/${pkgname}-${version}.tar.bz2"
 checksum=d48282ae4dab83b3dc94c16cf011bcb63835c1c02b515490e1883049c3d1f3da
+patch_args=-Np0
 
 libaubio_package() {
 	short_desc+=" - Runtime libraries"
diff --git a/srcpkgs/audacity/template b/srcpkgs/audacity/template
index c91520872ce5..4ed153f8b74c 100644
--- a/srcpkgs/audacity/template
+++ b/srcpkgs/audacity/template
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.audacityteam.org"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/Audacity-${version}.tar.gz"
 checksum=50240f07471373a7e5c2df65cc26eeeaaced9a0850ad1f95cb795f171ea3009f
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) ;;
diff --git a/srcpkgs/audiofile/template b/srcpkgs/audiofile/template
index a4eef3f40260..7779d5ec2034 100644
--- a/srcpkgs/audiofile/template
+++ b/srcpkgs/audiofile/template
@@ -13,6 +13,7 @@ homepage="http://audiofile.68k.org"
 distfiles="http://github.com/mpruett/audiofile/archive/audiofile-${version}.tar.gz"
 checksum=52125fee6c7454d743acdc27ebda194c6b5c7b9111426c7d5fdea0754cd366cc
 disable_parallel_build=1
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/autoconf/template b/srcpkgs/autoconf/template
index 260e8c753f07..a3018bf709b9 100644
--- a/srcpkgs/autoconf/template
+++ b/srcpkgs/autoconf/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/autoconf"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=64ebcec9f8ac5b2487125a86a7760d2591ac9e1d3dbd59489633f9de62a57684
+patch_args=-Np0
 
 pre_check() {
 	# Disable failing test by adding
diff --git a/srcpkgs/autoconf213/template b/srcpkgs/autoconf213/template
index 31f07cb74c00..ebbcb4df4549 100644
--- a/srcpkgs/autoconf213/template
+++ b/srcpkgs/autoconf213/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.gnu.org/software/autoconf"
 distfiles="${GNU_SITE}/autoconf/autoconf-$version.tar.gz"
 checksum=f0611136bee505811e9ca11ca7ac188ef5323a8e2ef19cffd3edb3cf08fd791e
+patch_args=-Np0
 
 post_install() {
 	# Avoid conflict with other versions.
diff --git a/srcpkgs/autofs/template b/srcpkgs/autofs/template
index b306368242d3..bd2ab2792540 100644
--- a/srcpkgs/autofs/template
+++ b/srcpkgs/autofs/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/daemons/autofs"
 distfiles="${KERNEL_SITE}/daemons/autofs/v5/autofs-${version}.tar.xz"
 checksum=a36b268611b79b07051749870ba540b139938efc84bc0293244c483e94f9ced7
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/gssglue -I${XBPS_CROSS_BASE}/usr/include/tirpc"
 
diff --git a/srcpkgs/autogen/template b/srcpkgs/autogen/template
index cfc9d20c9df8..3b6d72d5090d 100644
--- a/srcpkgs/autogen/template
+++ b/srcpkgs/autogen/template
@@ -17,6 +17,7 @@ replaces="autogen-docs>=0 autogen-devel>=0"
 _libopts=libopts-42.1.17.tar.gz
 CFLAGS="-Wno-error=format-truncation -Wno-error=format-overflow
 	-Wno-error=unused-parameter"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" autogen guile-devel"
diff --git a/srcpkgs/avidemux/template b/srcpkgs/avidemux/template
index e62a3bc2c436..abedf3e2bc0c 100644
--- a/srcpkgs/avidemux/template
+++ b/srcpkgs/avidemux/template
@@ -19,6 +19,7 @@ homepage="http://avidemux.sourceforge.net/"
 changelog="http://avidemux.sourceforge.net/news.html"
 distfiles="${SOURCEFORGE_SITE}/avidemux/avidemux/${version}/${pkgname}_${version}.tar.gz"
 checksum=9a88741f3535443d4bde35d4207ca2ff96d3b136db2e7232cb50dd6b4eb293cf
+patch_args=-Np0
 
 do_configure() {
 	MAKEFLAGS=${makejobs} \
diff --git a/srcpkgs/avr-binutils/template b/srcpkgs/avr-binutils/template
index 7d3a15725c57..d00bec12e17a 100644
--- a/srcpkgs/avr-binutils/template
+++ b/srcpkgs/avr-binutils/template
@@ -14,6 +14,7 @@ license="GPL-3.0-only"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="$GNU_SITE/binutils/binutils-$version.tar.xz"
 checksum=0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04
+patch_args=-Np0
 
 post_install() {
 	rm -rf "$DESTDIR"/usr/share/info \
diff --git a/srcpkgs/bacula-common/template b/srcpkgs/bacula-common/template
index 04b89e171ad8..9facbbf2efe2 100644
--- a/srcpkgs/bacula-common/template
+++ b/srcpkgs/bacula-common/template
@@ -17,6 +17,7 @@ distfiles="${SOURCEFORGE_SITE}/bacula/bacula-${version}.tar.gz"
 checksum=a40d04d2c48135972cecb6578405e835c4b9d798c0950017de0fad40ca94e8a0
 alternatives="bacula-db-backend:/usr/lib/libbaccats-${version}.so:/usr/lib/libbaccats-sqlite3-${version}.so"
 shlib_provides="libbaccats-${version}.so"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/bananapi-uboot/template b/srcpkgs/bananapi-uboot/template
index fabedf3d5978..80acf0c6e8fd 100644
--- a/srcpkgs/bananapi-uboot/template
+++ b/srcpkgs/bananapi-uboot/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/hardkernel/u-boot"
 distfiles="https://github.com/Bananian/u-boot-bananapi/archive/bananian-v${version}.tar.gz"
 checksum=8be162b0b8e85d3fbc2e14af3b71c4a204f4a9c63f6f13275f86629624c1d6a6
+patch_args=-Np0
 
 conf_files="/boot/uEnv.txt"
 archs="armv7l*"
diff --git a/srcpkgs/basu/template b/srcpkgs/basu/template
index 1a3614b781c3..0244cc11cc20 100644
--- a/srcpkgs/basu/template
+++ b/srcpkgs/basu/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/emersion/basu"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=e2fda9b69fc6c4530173fcf8db94c29aa5f3ed932d948cc6a31892623cde5e4b
+patch_args=-Np0
 
 basu-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/batman-adv14/template b/srcpkgs/batman-adv14/template
index 8fb35827056a..a1776f121092 100644
--- a/srcpkgs/batman-adv14/template
+++ b/srcpkgs/batman-adv14/template
@@ -11,6 +11,7 @@ distfiles="http://downloads.open-mesh.org/batman/releases/batman-adv-${version}/
 checksum=a9b1b7542c94cc6bf7c97b7b0d02bf071b5632a64480ae419358b9cb9cab6870
 provides="batman-adv-${version}_${revision}"
 conflicts="batman-adv>=0"
+patch_args=-Np0
 
 dkms_modules="batman-adv14 ${version}"
 depends="dkms"
diff --git a/srcpkgs/bbkeys/template b/srcpkgs/bbkeys/template
index a9a52c11007a..40ae05dec712 100644
--- a/srcpkgs/bbkeys/template
+++ b/srcpkgs/bbkeys/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/bbidulock/bbkeys"
 distfiles="${homepage}/releases/download/rel-${version//.}/bbkeys-${version}.tar.lz"
 checksum=ece0113b2cc6367e2cad95f59cf43d7576b5a1a7eb8a9e3f10ce9814db67b95c
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/bbswitch/template b/srcpkgs/bbswitch/template
index 4dc9d3235e60..049ba73bc327 100644
--- a/srcpkgs/bbswitch/template
+++ b/srcpkgs/bbswitch/template
@@ -11,6 +11,7 @@ homepage="http://github.com/Bumblebee-Project/bbswitch"
 distfiles="https://github.com/Bumblebee-Project/bbswitch/archive/v$version.tar.gz"
 checksum=76cabd3f734fb4fe6ebfe3ec9814138d0d6f47d47238521ecbd6a986b60d1477
 dkms_modules="${pkgname} ${version}"
+patch_args=-Np0
 
 do_install() {
 	vinstall Makefile 644 usr/src/${pkgname}-${version}
diff --git a/srcpkgs/bc/template b/srcpkgs/bc/template
index c6ca1b7d899a..bff25a4c64e9 100644
--- a/srcpkgs/bc/template
+++ b/srcpkgs/bc/template
@@ -18,6 +18,7 @@ alternatives="
  dc:dc:/usr/bin/gnu-dc
  dc:dc.1:/usr/share/man/man1/gnu-dc.1"
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" bc"
diff --git a/srcpkgs/bcc/template b/srcpkgs/bcc/template
index cbdb9de0abcf..091ad9473a2d 100644
--- a/srcpkgs/bcc/template
+++ b/srcpkgs/bcc/template
@@ -15,6 +15,7 @@ homepage="https://github.com/iovisor/bcc"
 distfiles="https://github.com/iovisor/bcc/releases/download/v${version}/bcc-src-with-submodule.tar.gz"
 checksum=93edc925675262aa509f5eaf146f2fc7dfa3e01d1b0336a5de01ee6d72fa493b
 python_version="3"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/bctoolbox/template b/srcpkgs/bctoolbox/template
index 4de00e55e201..f308b6874143 100644
--- a/srcpkgs/bctoolbox/template
+++ b/srcpkgs/bctoolbox/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="https://gitlab.linphone.org/BC/public/bctoolbox"
 distfiles="https://gitlab.linphone.org/BC/public/bctoolbox/-/archive/${version}/bctoolbox-${version}.tar.gz"
 checksum=1364d5f42b5514546b9c6654c227804ff92cf9cf13fdc7cb6ca666e3bb5a7987
+patch_args=-Np0
 
 bctoolbox-devel_package() {
 	depends="bctoolbox-${version}_${revision}"
diff --git a/srcpkgs/beep/template b/srcpkgs/beep/template
index 0f3c10d9781f..3be4bf6147f3 100644
--- a/srcpkgs/beep/template
+++ b/srcpkgs/beep/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.johnath.com/beep/"
 distfiles="http://www.johnath.com/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=59acef7a987de5557cefd1a904666cc2691f132929af39e65450b182a581ec2d
+patch_args=-Np0
 
 post_extract() {
 	rm -f Makefile
diff --git a/srcpkgs/beets/template b/srcpkgs/beets/template
index 8dfb44bf88ad..60e86df7539f 100644
--- a/srcpkgs/beets/template
+++ b/srcpkgs/beets/template
@@ -17,6 +17,7 @@ license="MIT"
 homepage="http://beets.radbox.org/"
 distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=d29b432cab0c80947b5229f548762948c4dd4a430e5d02760bfeb95da3cc8054
+patch_args=-Np0
 
 post_install() {
 	vman man/beet.1
diff --git a/srcpkgs/beignet/template b/srcpkgs/beignet/template
index 29a1ef99dbda..dbe0d1888c67 100644
--- a/srcpkgs/beignet/template
+++ b/srcpkgs/beignet/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.freedesktop.org/wiki/Software/Beignet/"
 distfiles="https://01.org/sites/default/files/${pkgname}-${version}-source.tar.gz"
 checksum=c555edba149de23243965a703f39f79fa06f15bcff5a3762b5544b0925010b43
+patch_args=-Np0
 
 post_install() {
 	# remove CL headers, we do use opencl-headers instead.
diff --git a/srcpkgs/belle-sip/template b/srcpkgs/belle-sip/template
index 6351feba635d..9f9c297d3589 100644
--- a/srcpkgs/belle-sip/template
+++ b/srcpkgs/belle-sip/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.linphone.org"
 distfiles="https://gitlab.linphone.org/BC/public/belle-sip/-/archive/${version}/belle-sip-${version}.tar.gz"
 checksum=4f9218b0bbf55c2f68d70a0e83779e591ef9fe97f1caf7550768ea192ee34cee
+patch_args=-Np0
 
 belle-sip-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/berkeley-abc/template b/srcpkgs/berkeley-abc/template
index f5aeb2a1e4fd..280c3e0bce2c 100644
--- a/srcpkgs/berkeley-abc/template
+++ b/srcpkgs/berkeley-abc/template
@@ -15,6 +15,7 @@ license="custom:University-of-California, BSD-4-Clause, MIT, BSD-2-Clause"
 homepage="http://www.eecs.berkeley.edu/~alanmi/abc/"
 distfiles="https://github.com/berkeley-abc/abc/archive/$_gitrev.tar.gz"
 checksum=52f1e9bf62c1e0d3b3cbe145f61b409a725e73fe606ba010efcbb2701a14171b
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e '/^CC *:=/d' -e '/^CXX *:=/d' -e '/^AR *:=/d' \
diff --git a/srcpkgs/berry/template b/srcpkgs/berry/template
index 05256589af24..a9fb2bf94342 100644
--- a/srcpkgs/berry/template
+++ b/srcpkgs/berry/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/JLErvin/berry"
 distfiles="https://github.com/JLErvin/berry/archive/${version}.tar.gz"
 checksum=1d6de883a0cd96ceb167c5ad2e855b0b15fa84872d41a22e05d0fdf0cf4be6b8
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/biew/template b/srcpkgs/biew/template
index 73a17e44c8d6..06db316d4c6a 100644
--- a/srcpkgs/biew/template
+++ b/srcpkgs/biew/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://beye.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/beye/${pkgname}/${version}/${pkgname}-${_shortversion}-src.tar.bz2"
 checksum=2e85f03c908dd6ec832461fbfbc79169a33f4caccf48c8fe60cbd29f5fb06d17
+patch_args=-Np0
 
 pre_configure() {
 	configure_args+=" --target-arch=generic --ld=$CC"
diff --git a/srcpkgs/bin86/template b/srcpkgs/bin86/template
index 8d711210193e..fd37d2a267d3 100644
--- a/srcpkgs/bin86/template
+++ b/srcpkgs/bin86/template
@@ -9,6 +9,7 @@ license="GPL-2"
 distfiles="http://v3.sk/~lkundrak/dev86/bin86-${version}.tar.gz"
 checksum=021e37cde3a20632c4c9000993cb4aa9f58cb82b1d3c26b9aeb62d6566925738
 archs="i686* x86_64*"
+patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" PREFIX=/usr
diff --git a/srcpkgs/binwalk/template b/srcpkgs/binwalk/template
index 6c61fff87aeb..cec10ddb7e74 100644
--- a/srcpkgs/binwalk/template
+++ b/srcpkgs/binwalk/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/ReFirmLabs/binwalk"
 distfiles="https://github.com/ReFirmLabs/binwalk/archive/v${version}.tar.gz"
 checksum=7ec9d8fcb8686f4060d37e1096669e3ed8ce1194c91ad80199622448bcc01b19
+patch_args=-Np0
 
 post_extract() {
 	vsed -i -e 's;/etc/bash_completion.d/%s;%s.bash;' setup.py
diff --git a/srcpkgs/bird/template b/srcpkgs/bird/template
index bc40598b0360..493605a5ceb1 100644
--- a/srcpkgs/bird/template
+++ b/srcpkgs/bird/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://bird.network.cz"
 distfiles="https://gitlab.labs.nic.cz/labs/bird/-/archive/v${version}/bird-v${version}.tar.gz"
 checksum=4d0eeea762dcd4422e1e276e2ed123cfed630cf1cce017b50463d79fcf2fff0c
+patch_args=-Np0
 
 conf_files="/etc/bird.conf"
 system_accounts="_bird"
diff --git a/srcpkgs/bish/template b/srcpkgs/bish/template
index 2355c664a428..f5140a9ac2d6 100644
--- a/srcpkgs/bish/template
+++ b/srcpkgs/bish/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/tdenniston/bish"
 distfiles="https://github.com/tdenniston/bish/archive/v${version}.tar.gz"
 checksum=796d1efcbc9e8c7ea604881860aa8d857aad089c4eeb766283c21c210687942b
+patch_args=-Np0
 
 do_install() {
 	vbin bish
diff --git a/srcpkgs/bitchx/template b/srcpkgs/bitchx/template
index 450fde27deed..f5de7ac86973 100644
--- a/srcpkgs/bitchx/template
+++ b/srcpkgs/bitchx/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://bitchx.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=2d270500dd42b5e2b191980d584f6587ca8a0dbda26b35ce7fadb519f53c83e2
+patch_args=-Np0
 
 disable_parallel_build=yes
 
diff --git a/srcpkgs/bitfighter/template b/srcpkgs/bitfighter/template
index c3b2cc22a265..58e033107399 100644
--- a/srcpkgs/bitfighter/template
+++ b/srcpkgs/bitfighter/template
@@ -20,6 +20,7 @@ checksum="cd47c453d9e6875ded627b987a645e2ff2c757363f394b152f62d868e1d81427
  d628a2b0af024a965b92877f321f2174d6309b7ce9236775af3bd86a67fcc72b"
 python_version=2
 replaces="bitfighter-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/blackboxwm/template b/srcpkgs/blackboxwm/template
index 10ad09eac501..05fffcbf3af0 100644
--- a/srcpkgs/blackboxwm/template
+++ b/srcpkgs/blackboxwm/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/bbidulock/blackboxwm"
 distfiles="${homepage}/releases/download/${version}/blackbox-${version}.tar.lz"
 checksum=e4f814fb02f6a977e9aab1c60192087597b79b0a56cc4a14e8a962b7d45d82d1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/bmon/template b/srcpkgs/bmon/template
index 67b13cb31a54..64f426cc2eca 100644
--- a/srcpkgs/bmon/template
+++ b/srcpkgs/bmon/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause, MIT"
 homepage="http://github.com/tgraf/bmon/"
 distfiles="http://github.com/tgraf/${pkgname}/archive/v${version}.tar.gz"
 checksum=d5e503ff6b116c681ebf4d10e238604dde836dceb9c0008eb92416a96c87ca40
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/boinc/template b/srcpkgs/boinc/template
index 1eba13495c2a..944fdaf172d3 100644
--- a/srcpkgs/boinc/template
+++ b/srcpkgs/boinc/template
@@ -21,6 +21,7 @@ system_accounts="boinc"
 boinc_homedir="/var/lib/boinc"
 boinc_shell="/bin/bash"
 conflicts="boinc-nox>=0"
+patch_args=-Np0
 
 CXXFLAGS="-Wno-redundant-decls"
 
diff --git a/srcpkgs/bomi/template b/srcpkgs/bomi/template
index 4cab853148a5..f66197af1d88 100644
--- a/srcpkgs/bomi/template
+++ b/srcpkgs/bomi/template
@@ -21,6 +21,7 @@ changelog="https://raw.githubusercontent.com/xylosper/bomi/master/CHANGES.txt"
 distfiles="https://github.com/xylosper/bomi/archive/v${version}.tar.gz"
 checksum=c76ac45733cdafa7003bbc178e5a90a683df9aec30cd85f188bb17c7af9e282e
 nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/1382/steps/shell_3/logs/stdio
+patch_args=-Np0
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/bonnie++/template b/srcpkgs/bonnie++/template
index 8fa4be8c3d62..5c1be95b51f3 100644
--- a/srcpkgs/bonnie++/template
+++ b/srcpkgs/bonnie++/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="http://www.coker.com.au/bonnie++/"
 distfiles="http://www.coker.com.au/bonnie++/bonnie++-${version}.tgz"
 checksum=6e0bcbc08b78856fd998dd7bcb352d4615a99c26c2dc83d5b8345b102bad0b04
+patch_args=-Np0
 
 post_extract() {
 	sed -i  -e 's/sbin/bin/g' \
diff --git a/srcpkgs/boomerang/template b/srcpkgs/boomerang/template
index 904e0e8571ff..00b49809a562 100644
--- a/srcpkgs/boomerang/template
+++ b/srcpkgs/boomerang/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/BoomerangDecompiler/boomerang"
 distfiles="https://github.com/BoomerangDecompiler/boomerang/archive/v${version}.tar.gz"
 checksum=1d2c9c2f5de1a3e1d5fe3879e82bca268d1c49e6ba3d0a7848695f18c594384d
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*) ;;
diff --git a/srcpkgs/boost/template b/srcpkgs/boost/template
index 5b559e932d18..23f6a6acc51c 100644
--- a/srcpkgs/boost/template
+++ b/srcpkgs/boost/template
@@ -12,6 +12,7 @@ homepage="http://www.boost.org/"
 distfiles="https://dl.bintray.com/boostorg/release/${version}/source/boost_${version//./_}.tar.bz2"
 checksum=59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417cc660722
 python_version=3
+patch_args=-Np0
 
 CXXFLAGS="-std=c++14"
 
diff --git a/srcpkgs/bootchart2/template b/srcpkgs/bootchart2/template
index 62cd9d2116a3..e63b864e5e44 100644
--- a/srcpkgs/bootchart2/template
+++ b/srcpkgs/bootchart2/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/xrmx/bootchart/archive/${version}.tar.gz"
 checksum=cec7871c3dba47a1165873b0acde30a82221fde1d3a942da5e7dd09b513d2017
 make_dirs="/usr/lib/bootchart/tmpfs 0755 root root"
 conflicts="bootchart>=0"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's,\$(EARLY_PREFIX)/sbin/,/usr/bin/,' Makefile
diff --git a/srcpkgs/botan/template b/srcpkgs/botan/template
index d2e6ffb9ccda..5e9e3c803e32 100644
--- a/srcpkgs/botan/template
+++ b/srcpkgs/botan/template
@@ -14,6 +14,7 @@ homepage="https://botan.randombit.net/"
 distfiles="https://botan.randombit.net/releases/Botan-${version}.tar.xz"
 checksum=92ed6ebc918d86bd1b04221ca518af4cf29cc326c4760740bd2d22e61cea2628
 python_version=3
+patch_args=-Np0
 
 LDFLAGS="-pthread"
 CXXFLAGS="-O3"
diff --git a/srcpkgs/bridge-utils/template b/srcpkgs/bridge-utils/template
index 08827cd6ad58..e50ac51ba446 100644
--- a/srcpkgs/bridge-utils/template
+++ b/srcpkgs/bridge-utils/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge"
 distfiles="${KERNEL_SITE}/utils/net/bridge-utils/bridge-utils-${version}.tar.xz"
 checksum=cc67efb5d5fb8928a6569b3fade2b4042ec17da04678dab127d96b46489e26c8
+patch_args=-Np0
 
 pre_configure() {
 	sed "s/u_int\([0-9]*\)_t/uint\1_t/" -i libbridge/libbridge.h
diff --git a/srcpkgs/brltty/template b/srcpkgs/brltty/template
index 53e15ed6ff03..b9c6ba6ec6bf 100644
--- a/srcpkgs/brltty/template
+++ b/srcpkgs/brltty/template
@@ -14,6 +14,7 @@ homepage="http://mielke.cc/brltty/"
 distfiles="http://mielke.cc/brltty/archive/brltty-${version}.tar.xz"
 checksum=4a28e3f1879aee9082f9ce4100fd4053be47add7f8ab0f2af6d6a20590934b62
 python_version=3
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) configure_args="${configure_args} --with-ports-package=glibc";;
diff --git a/srcpkgs/broadcom-wl-dkms/template b/srcpkgs/broadcom-wl-dkms/template
index 55bc9c0e1d36..a31c8c385c7c 100644
--- a/srcpkgs/broadcom-wl-dkms/template
+++ b/srcpkgs/broadcom-wl-dkms/template
@@ -1,4 +1,5 @@
 # Template file for 'broadcom-wl-dkms'
+patch_args=-Np0
 
 pkgname=broadcom-wl-dkms
 version=6.30.223.271
diff --git a/srcpkgs/browsh/template b/srcpkgs/browsh/template
index 856fefd13d78..67675e7dcab0 100644
--- a/srcpkgs/browsh/template
+++ b/srcpkgs/browsh/template
@@ -17,6 +17,7 @@ distfiles="https://$go_import_path/archive/v$version.tar.gz
 checksum="965ce2d94d1d9e4b92411d344421c0bea40994527cafd694c5a6e8e206681ede
  b410527a69dba88a30d8a6d341a20eb5cb1f84b684e9bc8bb6bc88a2930e0eea"
 skip_extraction="browsh.xpi"
+patch_args=-Np0
 
 pre_build() {
 	_prefix="$XBPS_SRCDISTDIR/$pkgname-$version"
diff --git a/srcpkgs/bsdiff/template b/srcpkgs/bsdiff/template
index d1396b8c707c..5f038e447a77 100644
--- a/srcpkgs/bsdiff/template
+++ b/srcpkgs/bsdiff/template
@@ -10,6 +10,7 @@ homepage="http://www.daemonology.net/bsdiff"
 distfiles="${DEBIAN_SITE}/main/b/bsdiff/bsdiff_${version}.orig.tar.gz"
 #distfiles="${homepage}/${pkgname}-${version}.tar.gz"
 checksum=18821588b2dc5bf159aa37d3bcb7b885d85ffd1e19f23a0c57a58723fea85f48
+patch_args=-Np0
 
 do_build() {
 	for i in diff patch; do
diff --git a/srcpkgs/bsdunzip/template b/srcpkgs/bsdunzip/template
index e6ac1e4a369f..922b71d2b7de 100644
--- a/srcpkgs/bsdunzip/template
+++ b/srcpkgs/bsdunzip/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause, ISC"
 homepage="https://github.com/somasis/bsdunzip"
 distfiles="https://github.com/somasis/bsdunzip/archive/${version}.tar.gz"
 checksum=06c52c77fa518732665aa2daa73f364cd2470a5d47a83c9c79f86f207cf3ecc1
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/bubblewrap/template b/srcpkgs/bubblewrap/template
index 4df1dac59395..c8d5dda04338 100644
--- a/srcpkgs/bubblewrap/template
+++ b/srcpkgs/bubblewrap/template
@@ -11,6 +11,7 @@ license="LGPL-2.0-or-later"
 homepage="https://github.com/containers/bubblewrap"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=b9c69b9b1c61a608f34325c8e1a495229bacf6e4a07cbb0c80cf7a814d7ccc03
+patch_args=-Np0
 
 post_install() {
 	if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/buffer/template b/srcpkgs/buffer/template
index df0fb0c0c640..e1c05e510af0 100644
--- a/srcpkgs/buffer/template
+++ b/srcpkgs/buffer/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/scotte/buffer"
 distfiles="https://github.com/scotte/buffer/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=14a881fcd070b1dcd8ec91d8d036f22094c22ac3769c274f0d7d6799038a73c3
+patch_args=-Np0
 
 pre_build() {
 	sed -i Makefile \
diff --git a/srcpkgs/buildbot/template b/srcpkgs/buildbot/template
index ae905fc67ab8..bec731f4e532 100644
--- a/srcpkgs/buildbot/template
+++ b/srcpkgs/buildbot/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://buildbot.net/"
 distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=331efd07bd7522c222a8fb258801e8d78332c88d778ee76416b9e1028676e964
+patch_args=-Np0
 
 pre_install() {
 	sed -i 's,#!/usr/bin/env jython,#!/usr/bin/python2,' contrib/run_maxq.py
diff --git a/srcpkgs/buku/template b/srcpkgs/buku/template
index b2c1962d9195..2785910412d1 100644
--- a/srcpkgs/buku/template
+++ b/srcpkgs/buku/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/jarun/Buku"
 distfiles="https://github.com/jarun/Buku/archive/v${version}.tar.gz"
 checksum=2e1968016d3856184db8ac49cdc92a6c70869f62846185f28c8c60ead0c42888
+patch_args=-Np0
 
 do_install() {
 	vbin buku
diff --git a/srcpkgs/bullet/template b/srcpkgs/bullet/template
index 9dabf7d89292..3f2af8aafdfd 100644
--- a/srcpkgs/bullet/template
+++ b/srcpkgs/bullet/template
@@ -15,6 +15,7 @@ homepage="http://www.bulletphysics.com/Bullet/"
 distfiles="https://github.com/bulletphysics/bullet3/archive/${version}.tar.gz"
 checksum=baa642c906576d4d98d041d0acb80d85dd6eff6e3c16a009b1abf1ccd2bc0a61
 shlib_provides="libOpenGLWindow.so libgwen.so"
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/bumblebee/template b/srcpkgs/bumblebee/template
index c54ea65d32c5..93aa7c8e3bf9 100644
--- a/srcpkgs/bumblebee/template
+++ b/srcpkgs/bumblebee/template
@@ -24,6 +24,7 @@ homepage="http://www.bumblebee-project.org/"
 distfiles="http://www.bumblebee-project.org/${pkgname}-${version}.tar.gz"
 checksum=1018703b07e2f607a4641249d69478ce076ae5a1e9dd6cff5694d394fa7ee30e
 system_groups="bumblebee"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/bup/template b/srcpkgs/bup/template
index b40c3cddbf68..5028dce8364d 100644
--- a/srcpkgs/bup/template
+++ b/srcpkgs/bup/template
@@ -14,6 +14,7 @@ distfiles="https://github.com/bup/bup/archive/${version}.tar.gz"
 checksum=a894cfa96c44b9ef48003b2c2104dc5fa6361dd2f4d519261a93178984a51259
 python_version=3
 nocross=yes
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's#^PREFIX=.*#PREFIX=/usr#' Makefile
diff --git a/srcpkgs/burp2-server/template b/srcpkgs/burp2-server/template
index f3d95a8f1523..c9d602c51242 100644
--- a/srcpkgs/burp2-server/template
+++ b/srcpkgs/burp2-server/template
@@ -1,5 +1,6 @@
 # Template file for 'burp2-server'
 _desc="Network-based backup and restore program"
+patch_args=-Np0
 
 pkgname=burp2-server
 version=2.4.0
diff --git a/srcpkgs/busybox/template b/srcpkgs/busybox/template
index 07377569ba5f..b580ccc52e9b 100644
--- a/srcpkgs/busybox/template
+++ b/srcpkgs/busybox/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://www.busybox.net"
 distfiles="${homepage}/downloads/busybox-${version}.tar.bz2"
 checksum=9d57c4bd33974140fd4111260468af22856f12f5b5ef7c70c8d9b75c712a0dee
+patch_args=-Np0
 
 _alternatives_core="
  ash:ash:/usr/bin/busybox
diff --git a/srcpkgs/bzip2/template b/srcpkgs/bzip2/template
index c39a9427efb1..d51b4a9e6efd 100644
--- a/srcpkgs/bzip2/template
+++ b/srcpkgs/bzip2/template
@@ -10,6 +10,7 @@ homepage="https://sourceware.org/bzip2/"
 changelog="https://sourceware.org/bzip2/CHANGES"
 distfiles="https://sourceware.org/pub/bzip2/bzip2-${version}.tar.gz"
 checksum=ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269
+patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CFLAGS="$CFLAGS -fPIC $LDFLAGS" LDFLAGS="$LDFLAGS" -f Makefile-libbz2_so
diff --git a/srcpkgs/c-blosc/template b/srcpkgs/c-blosc/template
index a488bfbf05d7..b272c4a370c0 100644
--- a/srcpkgs/c-blosc/template
+++ b/srcpkgs/c-blosc/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause, MIT"
 homepage="https://www.blosc.org"
 distfiles="https://github.com/Blosc/c-blosc/archive/v${version}.tar.gz"
 checksum=42c4d3fcce52af9f8e2078f8f57681bfc711706a3330cb72b9b39e05ae18a413
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSES/BLOSC.txt
diff --git a/srcpkgs/c-client/template b/srcpkgs/c-client/template
index bf65dc7277be..83210555d177 100644
--- a/srcpkgs/c-client/template
+++ b/srcpkgs/c-client/template
@@ -11,6 +11,7 @@ homepage="http://www.washington.edu/imap"
 distfiles="http://ftp.ntua.gr/pub/net/mail/imap/imap-${version}.tar.gz"
 checksum=53e15a2b5c1bc80161d42e9f69792a3fa18332b7b771910131004eb520004a28
 nocross=yes
+patch_args=-Np0
 
 do_configure() {
 	sed \
diff --git a/srcpkgs/ca-certificates/template b/srcpkgs/ca-certificates/template
index 854e76a613cd..cd82c7f4c9bc 100644
--- a/srcpkgs/ca-certificates/template
+++ b/srcpkgs/ca-certificates/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later, MPL-2.0"
 homepage="https://tracker.debian.org/pkg/ca-certificates"
 distfiles="${DEBIAN_SITE}/main/c/${pkgname}/${pkgname}_${version}.tar.xz"
 checksum=daa3afae563711c30a0586ddae4336e8e3974c2b627faaca404c4e0141b64665
+patch_args=-Np0
 
 post_extract() {
 	$BUILD_CC $BUILD_CFLAGS ${FILESDIR}/certdata2pem.c -o ${wrksrc}/mozilla/certdata2pem
diff --git a/srcpkgs/cabal-install/template b/srcpkgs/cabal-install/template
index 2c15789b1f9d..1db0f1c792e6 100644
--- a/srcpkgs/cabal-install/template
+++ b/srcpkgs/cabal-install/template
@@ -13,6 +13,7 @@ distfiles="https://hackage.haskell.org/packages/archive/${pkgname}/${version}/${
 checksum=a0555e895aaf17ca08453fde8b19af96725da8398e027aa43a49c1658a600cb0
 nopie_files="/usr/bin/cabal"
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	PREFIX=$PWD/build sh bootstrap.sh --jobs ${XBPS_MAKEJOBS} --user
diff --git a/srcpkgs/cackey/template b/srcpkgs/cackey/template
index 468dcd1c7b1b..6358543e178f 100644
--- a/srcpkgs/cackey/template
+++ b/srcpkgs/cackey/template
@@ -13,6 +13,7 @@ homepage="http://www.rkeene.org/projects/info/wiki/161"
 distfiles="http://cackey.rkeene.org/download/$version/cackey-$version.tar.gz"
 checksum=e2074055bab8eb1c277bfa3355767c50f792d5b87bf41f9c0d1af0e77f311583
 CPPFLAGS="-I$XBPS_CROSS_BASE/usr/include/PCSC"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/cadence/template b/srcpkgs/cadence/template
index b429ab1f0fcb..283dc9312e0b 100644
--- a/srcpkgs/cadence/template
+++ b/srcpkgs/cadence/template
@@ -16,6 +16,7 @@ license="GPL-2.0-only"
 homepage="http://kxstudio.linuxaudio.org/Applications:Cadence"
 distfiles="https://github.com/falkTX/Cadence/archive/v${version}.tar.gz"
 checksum=e530787ded0d53a3004c7a8260114ddb970c2aea43875d62eccd599ac96e1fd1
+patch_args=-Np0
 
 post_extract() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/calc/template b/srcpkgs/calc/template
index bc2087ca2bd3..d5c191ab4da4 100644
--- a/srcpkgs/calc/template
+++ b/srcpkgs/calc/template
@@ -11,6 +11,7 @@ homepage="http://www.isthe.com/chongo/tech/comp/calc/index.html"
 distfiles="http://www.isthe.com/chongo/src/calc/calc-${version}.tar.bz2"
 checksum=eb1dc5dd680019e30264109167e20539fe9ac869049d8b1639781a51d1dea84c
 disable_parallel_build=yes
+patch_args=-Np0
 
 post_extract() {
 	case $XBPS_TARGET_MACHINE in
diff --git a/srcpkgs/caps/template b/srcpkgs/caps/template
index 5555e35858a2..853aec8890bf 100644
--- a/srcpkgs/caps/template
+++ b/srcpkgs/caps/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://quitte.de/dsp/caps.html"
 distfiles="http://quitte.de/dsp/${pkgname}_${version}.tar.bz2"
 checksum=e7496c5bce05abebe3dcb635926153bbb58a9337a6e423f048d3b61d8a4f98c9
+patch_args=-Np0
 
 pre_build() {
 	make_build_args="CC=${CXX} LD=${LD}"
diff --git a/srcpkgs/cargo/template b/srcpkgs/cargo/template
index 9c9781d1fc47..654bdfe4a906 100644
--- a/srcpkgs/cargo/template
+++ b/srcpkgs/cargo/template
@@ -14,6 +14,7 @@ homepage="https://crates.io/"
 distfiles="https://github.com/rust-lang/cargo/archive/${version}.tar.gz"
 checksum=59ba1ce05becb4a5e0772d334d75f9dce3d5487ca288ac986e786241bb1cbac5
 replaces="cargo-tree>=0"
+patch_args=-Np0
 
 build_options="static bindist"
 desc_option_bindist="Generate a tarball for bootstrap"
diff --git a/srcpkgs/catch2/template b/srcpkgs/catch2/template
index 23e59016d313..09607734bc90 100644
--- a/srcpkgs/catch2/template
+++ b/srcpkgs/catch2/template
@@ -15,6 +15,7 @@ license="BSL-1.0"
 homepage="https://github.com/catchorg/Catch2"
 distfiles="https://github.com/catchorg/Catch2/archive/v${version}/${pkgname}-v${version}.tar.gz"
 checksum=e7eb70b3d0ac2ed7dcf14563ad808740c29e628edde99e973adad373a2b5e4df
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/catdoc/template b/srcpkgs/catdoc/template
index ff26dbc5f7be..06522d692116 100644
--- a/srcpkgs/catdoc/template
+++ b/srcpkgs/catdoc/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://www.wagner.pp.ru/~vitus/software/catdoc/"
 distfiles="http://ftp.wagner.pp.ru/pub/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=514a84180352b6bf367c1d2499819dfa82b60d8c45777432fa643a5ed7d80796
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/share/man/man1
diff --git a/srcpkgs/cbang/template b/srcpkgs/cbang/template
index 63388b2aa828..739b521d98c3 100644
--- a/srcpkgs/cbang/template
+++ b/srcpkgs/cbang/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://github.com/CauldronDevelopmentLLC/cbang"
 distfiles="https://github.com/CauldronDevelopmentLLC/cbang/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=8aa5efacf419b712b5bd0172c9d56301bdcbd477cb590ceec25c3595a192e9c0
+patch_args=-Np0
 
 pre_build() {
 	make_build_args+=" prefix=$DESTDIR/usr"
diff --git a/srcpkgs/ccextractor/template b/srcpkgs/ccextractor/template
index fe27e68b04f5..9bdd5e05fc3f 100644
--- a/srcpkgs/ccextractor/template
+++ b/srcpkgs/ccextractor/template
@@ -15,6 +15,7 @@ changelog="https://raw.githubusercontent.com/CCExtractor/ccextractor/master/docs
 distfiles="https://github.com/CCExtractor/${pkgname}/archive/v${version}.tar.gz"
 checksum=bbe8d95347d0cf31bd26489b733fd959a7b98c681f14c59309bff54713fd539d
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/tesseract -DPNG_POWERPC_VSX_OPT=0 -fcommon"
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e "s/tesseract --version/tesseract-ocr --version/g" configure.ac
diff --git a/srcpkgs/ccl/template b/srcpkgs/ccl/template
index 5972ddeb0ce6..d6a2bc83ee74 100644
--- a/srcpkgs/ccl/template
+++ b/srcpkgs/ccl/template
@@ -21,6 +21,7 @@ nopie=1
 nostrip=1
 disable_parallel_build=1
 python_version=3
+patch_args=-Np0
 
 case $XBPS_MACHINE in
 	x86_64*) _arch=64 ;;
diff --git a/srcpkgs/cclive/template b/srcpkgs/cclive/template
index c43dbb94209c..d221a95f2520 100644
--- a/srcpkgs/cclive/template
+++ b/srcpkgs/cclive/template
@@ -12,6 +12,7 @@ homepage="http://cclive.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=2edeaf5d76455723577e0b593f0322a97f1e0c8b0cffcc70eca8b5d17374a495
 CPPFLAGS="-P"
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/ccsm/template b/srcpkgs/ccsm/template
index 7f27e3317fc4..168445d7ec45 100644
--- a/srcpkgs/ccsm/template
+++ b/srcpkgs/ccsm/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/compiz-reloaded"
 distfiles="https://github.com/compiz-reloaded/ccsm/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=99192a021631cc5a82131fbc03d2f1b7e587892878902113d9bde57a6b00bfa4
+patch_args=-Np0
 
 if [ -z "$CROSS_BUILD" ]; then
 	makedepends+=" python-gobject-devel"
diff --git a/srcpkgs/cdb/template b/srcpkgs/cdb/template
index c95afff379bb..410f978ee7f9 100644
--- a/srcpkgs/cdb/template
+++ b/srcpkgs/cdb/template
@@ -9,6 +9,7 @@ license="Public Domain"
 homepage="http://cr.yp.to/cdb.html"
 distfiles="http://cr.yp.to/cdb/cdb-${version}.tar.gz"
 checksum="1919577799a50c080a8a05a1cbfa5fa7e7abc823d8d7df2eeb181e624b7952c5"
+patch_args=-Np0
 
 alternatives="
  cdb:cdbdump:/usr/bin/cdb-dump
diff --git a/srcpkgs/cdecl/template b/srcpkgs/cdecl/template
index e120ca3af500..6de896357130 100644
--- a/srcpkgs/cdecl/template
+++ b/srcpkgs/cdecl/template
@@ -14,6 +14,7 @@ homepage="http://cdecl.org/"
 distfiles="${homepage}files/${wrksrc}.tar.gz"
 checksum=9ee6402be7e4f5bb5e6ee60c6b9ea3862935bf070e6cecd0ab0842305406f3ac
 CFLAGS="-DUSE_READLINE"
+patch_args=-Np0
 
 pre_build() {
 	flex -l -o cdlex.c cdlex.l
diff --git a/srcpkgs/cdm/template b/srcpkgs/cdm/template
index f1fb8b2f646c..5f8a016741b4 100644
--- a/srcpkgs/cdm/template
+++ b/srcpkgs/cdm/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/evertiro/cdm"
 distfiles="https://github.com/evertiro/cdm/archive/${version}.tar.gz"
 checksum=530042165ce65cdff3ec62ba9f077d0e8c6744c13f5d449d84fe2506a79d2e56
+patch_args=-Np0
 
 do_install() {
 	sed -i 's| /| $PKGDESTDIR/|g' install.sh
diff --git a/srcpkgs/cdparanoia/template b/srcpkgs/cdparanoia/template
index 3cf09587f215..956184ded118 100644
--- a/srcpkgs/cdparanoia/template
+++ b/srcpkgs/cdparanoia/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.xiph.org/paranoia/"
 distfiles="http://downloads.xiph.org/releases/$pkgname/$pkgname-III-$version.src.tgz"
 checksum=005db45ef4ee017f5c32ec124f913a0546e77014266c6a1c50df902a55fe64df
+patch_args=-Np0
 
 CFLAGS="-Du_int16_t=uint16_t -Du_int32_t=uint32_t"
 disable_parallel_build=yes
diff --git a/srcpkgs/cegui/template b/srcpkgs/cegui/template
index 070fa66aff81..14cd66cd83fb 100644
--- a/srcpkgs/cegui/template
+++ b/srcpkgs/cegui/template
@@ -23,6 +23,7 @@ homepage="http://cegui.org.uk/"
 distfiles="https://github.com/cegui/cegui/archive/${_githash}.tar.gz"
 checksum=70156257313b81d068d6592887157dd16b91d7bc0dfdcba02a96ed371d329e64
 replaces="cegui-data>=0 cegui-sample>=0"
+patch_args=-Np0
 
 build_options="gtk irrlicht ogre python"
 desc_option_irrlicht="Enable support for Irrlicht"
diff --git a/srcpkgs/cegui07/template b/srcpkgs/cegui07/template
index 3fa7f80a2ea7..352613cf01d5 100644
--- a/srcpkgs/cegui07/template
+++ b/srcpkgs/cegui07/template
@@ -20,6 +20,7 @@ license="MIT"
 homepage="http://cegui.org.uk/"
 distfiles="${SOURCEFORGE_SITE}/crayzedsgui/CEGUI%20Mk-2/${version}/CEGUI-${version}.tar.gz"
 checksum=7c3b264def08b46de749c2acaba363e907479d924612436f3bd09da2e474bb8c
+patch_args=-Np0
 
 build_options="irrlicht python"
 desc_option_irrlicht="Enable support for Irrlicht"
diff --git a/srcpkgs/celestia-glut/template b/srcpkgs/celestia-glut/template
index 2ee6f0cd64fd..22f9e62c648f 100644
--- a/srcpkgs/celestia-glut/template
+++ b/srcpkgs/celestia-glut/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="https://celestia.space"
 distfiles="${SOURCEFORGE_SITE}/celestia/celestia-${version}.tar.gz"
 checksum="d35570ccb9440fc0bd3e73eb9b4c3e8a4c25f3ae444a13d1175053fa16dc34c4"
+patch_args=-Np0
 
 provides="celestia-${version}_${revision}"
 replaces="celestia>=0"
diff --git a/srcpkgs/celestia-gtk/template b/srcpkgs/celestia-gtk/template
index 85e1c6ee1ed8..b0001ac504be 100644
--- a/srcpkgs/celestia-gtk/template
+++ b/srcpkgs/celestia-gtk/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="https://celestia.space"
 distfiles="${SOURCEFORGE_SITE}/celestia/celestia-${version}.tar.gz"
 checksum="d35570ccb9440fc0bd3e73eb9b4c3e8a4c25f3ae444a13d1175053fa16dc34c4"
+patch_args=-Np0
 
 provides="celestia-${version}_${revision}"
 replaces="celestia>=0"
diff --git a/srcpkgs/chafa/template b/srcpkgs/chafa/template
index 1b07026b9ea4..b6c87f0e2757 100644
--- a/srcpkgs/chafa/template
+++ b/srcpkgs/chafa/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-or-later"
 homepage="https://hpjansson.org/chafa/"
 distfiles="https://hpjansson.org/chafa/releases/chafa-${version}.tar.xz"
 checksum=0706e101a6e0e806335aeb57445e2f6beffe0be29a761f561979e81691c2c681
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|i686*) ;;
diff --git a/srcpkgs/chatterino2/template b/srcpkgs/chatterino2/template
index f69730b3a9fe..642d3147fdd2 100644
--- a/srcpkgs/chatterino2/template
+++ b/srcpkgs/chatterino2/template
@@ -29,6 +29,7 @@ e8755e68ff6fc39b4338d424ee9aed2ed5a8eab6eb37af69de2ff21b8dc94e66
 f387cc7eaf27dec462bc85a212619f8086167cf0b47e11825b8580d35a740dfe
 5a5cd8338fcb0a14a4bbe0840f83505d0444a9000956145e85e5550feeb744b0
 eb492b89e67f4ec632bd43f2701d53e355f1d1afbec3cd3af5891c1a6aaaa454"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/chatty/template b/srcpkgs/chatty/template
index a13ad9765b5a..c4ab65395aa6 100644
--- a/srcpkgs/chatty/template
+++ b/srcpkgs/chatty/template
@@ -10,6 +10,7 @@ license="GPL-3.0-only"
 homepage="http://chatty.github.io/"
 distfiles="https://github.com/chatty/chatty/archive/v${version}.tar.gz"
 checksum=2eed3a4ed4f1ea58d89e535182bd32771522e4bccb5aa3bf4329aec9d7ab554c
+patch_args=-Np0
 
 do_build() {
 	gradle shadowJar
diff --git a/srcpkgs/chkrootkit/template b/srcpkgs/chkrootkit/template
index 01558c933f81..1f614156b116 100644
--- a/srcpkgs/chkrootkit/template
+++ b/srcpkgs/chkrootkit/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://www.chkrootkit.org"
 distfiles="ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit-${version}.tar.gz"
 checksum=7262dae33b338976828b5d156b70d159e0043c0db43ada8dee66c97387cf45b5
+patch_args=-Np0
 
 CFLAGS="-fPIC"
 LDFLAGS="-fPIC"
diff --git a/srcpkgs/chmlib/template b/srcpkgs/chmlib/template
index a573c27d1499..44f3de8568b4 100644
--- a/srcpkgs/chmlib/template
+++ b/srcpkgs/chmlib/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.jedrea.com/chmlib/"
 distfiles="http://www.jedrea.com/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=3449d64b0cf71578b2c7e3ddc048d4af3661f44a83941ea074a7813f3a59ffa3
+patch_args=-Np0
 
 libchmlib_package() {
 	short_desc="Library for dealing with Microsoft ITSS/CHM format files"
diff --git a/srcpkgs/choosenim/template b/srcpkgs/choosenim/template
index e2fb62b08d8a..eb5ee1d0fed6 100644
--- a/srcpkgs/choosenim/template
+++ b/srcpkgs/choosenim/template
@@ -13,6 +13,7 @@ distfiles="${homepage}/archive/v${version}.tar.gz>choosenim-${version}.tar.gz
  https://github.com/genotrance/nimarchive/archive/v0.5.4.tar.gz>nimarchive-0.5.4.tar.gz"
 checksum="0e78a59cfb3cf7926f8dff3a4215949ccfaecd6c6dddc3b2e062098b5da03edb
  c38e8c66c2eac2bc021d450f2b60d0e45c5355df963d0133930448639c0bd8d4"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc-musl) broken="ftbfs" ;;
diff --git a/srcpkgs/choqok/template b/srcpkgs/choqok/template
index 75a2c16f63e0..df6cbfc32b23 100644
--- a/srcpkgs/choqok/template
+++ b/srcpkgs/choqok/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="http://choqok.kde.org/"
 distfiles="${KDE_SITE}/${pkgname}/${version%.*}/src/${pkgname}-${version}.tar.xz"
 checksum=26600d95f152c3e04881efb7fb3eb07b5c52fa6ffee838690f28b45defb4a47e
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" kcoreaddons kdoctools ${makedepends}"
diff --git a/srcpkgs/chromium/template b/srcpkgs/chromium/template
index 2c1bb5d7a35c..cbc7e092ac87 100644
--- a/srcpkgs/chromium/template
+++ b/srcpkgs/chromium/template
@@ -11,6 +11,7 @@ homepage="https://www.chromium.org/"
 distfiles="https://commondatastorage.googleapis.com/chromium-browser-official/${pkgname}-${version}.tar.xz"
 checksum=45d5a43ef798d20313c78fa8a075be0c22055e39c8481eb53eabda81df901b31
 nocross=yes
+patch_args=-Np0
 
 lib32disabled=yes
 nodebug=yes
diff --git a/srcpkgs/ck/template b/srcpkgs/ck/template
index f67b160c87c7..4cfe121c7fe6 100644
--- a/srcpkgs/ck/template
+++ b/srcpkgs/ck/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://concurrencykit.org/"
 distfiles="https://github.com/concurrencykit/ck/archive/${version}.tar.gz"
 checksum=e730cb448fb0ecf9d19bf4c7efe9efc3c04dd9127311d87d8f91484742b0da24
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/ckmame/template b/srcpkgs/ckmame/template
index 1b88f6a965cb..3889029f0c9f 100644
--- a/srcpkgs/ckmame/template
+++ b/srcpkgs/ckmame/template
@@ -14,6 +14,7 @@ license="BSD-3-clause"
 homepage="https://nih.at/ckmame/"
 distfiles="https://github.com/nih-at/ckmame/archive/rel-${version//./-}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=9fc5dcf1d2dd75351b2cdf43ce10fecda7d97c8c1a8dd0fe1f653229bb316130
+patch_args=-Np0
 
 post_install() {
 	vlicense ${wrksrc}/LICENSE
diff --git a/srcpkgs/clementine/template b/srcpkgs/clementine/template
index 40a6ac8c70a1..c150fcf650fc 100644
--- a/srcpkgs/clementine/template
+++ b/srcpkgs/clementine/template
@@ -22,6 +22,7 @@ homepage="https://www.clementine-player.org/"
 distfiles="https://github.com/clementine-player/Clementine/releases/download/${_fullver}/${pkgname}-${_fullver}.tar.xz"
 checksum=e1fa2482b81336282a36a5451a0217c274e5b45aa3eeed83fe3fd29a5df59397
 build_options="spotify"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64 | i686 | armv7l)
diff --git a/srcpkgs/cli-visualizer/template b/srcpkgs/cli-visualizer/template
index e758562274e3..d95ce4d4b367 100644
--- a/srcpkgs/cli-visualizer/template
+++ b/srcpkgs/cli-visualizer/template
@@ -13,6 +13,7 @@ distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=927e4c18403c7a40397e8698ffefd1b37250be20fa0ec55fda9a82cf9cc8ba51
 build_options="pulseaudio"
 build_options_default="pulseaudio"
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/clib/template b/srcpkgs/clib/template
index 6e3bf69b149d..f4802d32a731 100644
--- a/srcpkgs/clib/template
+++ b/srcpkgs/clib/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/clibs/clib"
 distfiles="https://github.com/clibs/clib/archive/${version}.tar.gz"
 checksum=74643374883651a272ed8ac8e8a6789c0b4a4b13e20a9d45798fd770821e620d
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/clisp/template b/srcpkgs/clisp/template
index ee0941a3d581..f062b8a1244b 100644
--- a/srcpkgs/clisp/template
+++ b/srcpkgs/clisp/template
@@ -21,6 +21,7 @@ lib32disabled=yes
 disable_parallel_build=yes
 build_options="readline"
 build_options_default="readline"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686-musl) broken="*** - MULTIPLE-VALUE-SETQ: variable EXTRA-FILE-TYPES has no value";;
diff --git a/srcpkgs/cln/template b/srcpkgs/cln/template
index fc771b0f9adf..173890a0b830 100644
--- a/srcpkgs/cln/template
+++ b/srcpkgs/cln/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://www.ginac.de/CLN/"
 distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
 checksum=f492530e8879bda529009b6033e1923c8f4aae843149fc28c667c20b094d984a
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 arm*|aarch64*) CPPFLAGS="-DNO_ASM";;
diff --git a/srcpkgs/clog/template b/srcpkgs/clog/template
index b255ad949bc7..2195202ec954 100644
--- a/srcpkgs/clog/template
+++ b/srcpkgs/clog/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://taskwarrior.org/docs/clog/"
 distfiles="http://gothenburgbitfactory.org/download/clog-${version}.tar.gz"
 checksum=fed44a8d398790ab0cf426c1b006e7246e20f3fcd56c0ec4132d24b05d5d2018
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/cloog/template b/srcpkgs/cloog/template
index 18a84032fdd4..d65b97fcf48b 100644
--- a/srcpkgs/cloog/template
+++ b/srcpkgs/cloog/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.bastoul.net/cloog/"
 distfiles="https://github.com/periscop/cloog/releases/download/cloog-${version}/cloog-${version}.tar.gz"
 checksum=835c49951ff57be71dcceb6234d19d2cc22a3a5df84aea0a9d9760d92166fc72
+patch_args=-Np0
 
 cloog-devel_package() {
 	depends="${makedepends} cloog>=${version}_${revision}"
diff --git a/srcpkgs/clucene/template b/srcpkgs/clucene/template
index fe045cb36356..67d9d9641281 100644
--- a/srcpkgs/clucene/template
+++ b/srcpkgs/clucene/template
@@ -15,6 +15,7 @@ license="LGPL-2+/ASL-2.0"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-core-${version}.tar.gz"
 checksum=ddfdc433dd8ad31b5c5819cc4404a8d2127472a3b720d3e744e8c51d79732eab
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	# threading segfaults on musl
diff --git a/srcpkgs/clutter/template b/srcpkgs/clutter/template
index 461e2fe07978..44b3ab7c88de 100644
--- a/srcpkgs/clutter/template
+++ b/srcpkgs/clutter/template
@@ -18,6 +18,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.clutter-project.org"
 distfiles="${GNOME_SITE}/clutter/${version%.*}/clutter-${version}.tar.xz"
 checksum=8b48fac159843f556d0a6be3dbfc6b083fc6d9c58a20a49a6b4919ab4263c4e6
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/cmocka/template b/srcpkgs/cmocka/template
index ea0384420a33..dfe97283fad1 100644
--- a/srcpkgs/cmocka/template
+++ b/srcpkgs/cmocka/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://cmocka.org/"
 distfiles="https://cmocka.org/files/${version%.*}/cmocka-${version}.tar.xz"
 checksum=f0ccd8242d55e2fd74b16ba518359151f6f8383ff8aef4976e48393f77bba8b6
+patch_args=-Np0
 
 cmocka-devel_package() {
 	depends="cmocka-${version}_${revision}"
diff --git a/srcpkgs/cmus/template b/srcpkgs/cmus/template
index fd8e518e2af6..891beaef9a5e 100644
--- a/srcpkgs/cmus/template
+++ b/srcpkgs/cmus/template
@@ -19,6 +19,7 @@ checksum=6fb799cae60db9324f03922bbb2e322107fd386ab429c0271996985294e2ef44
 build_options="elogind"
 build_options_default="elogind"
 desc_option_elogind="Support MPRIS interface via elogind"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/codeblocks/template b/srcpkgs/codeblocks/template
index 33b9b9a77853..c1f7945b39c2 100644
--- a/srcpkgs/codeblocks/template
+++ b/srcpkgs/codeblocks/template
@@ -14,6 +14,7 @@ license="GPL-3.0-only"
 homepage="http://www.codeblocks.org"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/Sources/${version}/${pkgname}-${version}.tar.xz"
 checksum=15eeb3e28aea054e1f38b0c7f4671b4d4d1116fd05f63c07aa95a91db89eaac5
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" wxWidgets-devel tinyxml-devel"
diff --git a/srcpkgs/codecrypt/template b/srcpkgs/codecrypt/template
index cd326930709d..51c0dcbbd0b8 100644
--- a/srcpkgs/codecrypt/template
+++ b/srcpkgs/codecrypt/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-or-later"
 homepage="https://e-x-a.org/codecrypt"
 distfiles="https://github.com/exaexa/codecrypt/archive/v${version}.tar.gz"
 checksum=25f11bc361b4f8aca7245698334b5715b7d594d708a75e8cdb2aa732dc46eb96
+patch_args=-Np0
 
 LDFLAGS="-lpthread"
 
diff --git a/srcpkgs/codelite/template b/srcpkgs/codelite/template
index cedc1e11c247..db21463032db 100644
--- a/srcpkgs/codelite/template
+++ b/srcpkgs/codelite/template
@@ -20,6 +20,7 @@ distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz"
 checksum=f2653fa42d6214999718236998cb223e6de00a498c0cfde795e901be693fb9ac
 nocross=yes
 python_version=2 #unverified
+patch_args=-Np0
 
 build_options="hunspell lldb mysql sftp"
 build_options_default="hunspell sftp"
diff --git a/srcpkgs/coin3/template b/srcpkgs/coin3/template
index 2130c0b8b263..3ed1add5ffa6 100644
--- a/srcpkgs/coin3/template
+++ b/srcpkgs/coin3/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="https://coin3d.github.io/"
 distfiles="https://github.com/coin3d/coin/archive/Coin-${version}.tar.gz"
 checksum=b00d2a8e9d962397cf9bf0d9baa81bcecfbd16eef675a98c792f5cf49eb6e805
+patch_args=-Np0
 
 CFLAGS=-DNDEBUG
 CXXFLAGS=-DNDEBUG
diff --git a/srcpkgs/collectd/template b/srcpkgs/collectd/template
index 28fa815e85a9..b9fa1053465d 100644
--- a/srcpkgs/collectd/template
+++ b/srcpkgs/collectd/template
@@ -23,6 +23,7 @@ homepage="https://collectd.org"
 distfiles="https://collectd.org/files/${pkgname}-${version}.tar.bz2"
 checksum=5bae043042c19c31f77eb8464e56a01a5454e0b39fa07cf7ad0f1bfc9c3a09d6
 LDFLAGS="-lgcrypt"
+patch_args=-Np0
 
 build_options="rrdtool perl notify prometheus"
 desc_option_rrdtool="Enable support for RRDTool"
diff --git a/srcpkgs/colord/template b/srcpkgs/colord/template
index 98739d4802bf..14bc56ad3856 100644
--- a/srcpkgs/colord/template
+++ b/srcpkgs/colord/template
@@ -17,6 +17,7 @@ license="GPL-2.0-only"
 homepage="https://www.freedesktop.org/software/colord"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
 checksum=b774ea443d239f4a2ee1853bd678426e669ddeda413dcb71cea1638c4d6c5e17
+patch_args=-Np0
 
 system_accounts="colord"
 colord_homedir="/var/lib/colord"
diff --git a/srcpkgs/commoncpp2/template b/srcpkgs/commoncpp2/template
index 181a6a9e07bf..ddbd6ba58363 100644
--- a/srcpkgs/commoncpp2/template
+++ b/srcpkgs/commoncpp2/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage='http://www.gnu.org/software/commoncpp/'
 distfiles="${GNU_SITE}/commoncpp/$pkgname-${version}.tar.gz"
 checksum="53ced4aff74e28a1d8018eb2b4974519028db3c12471ab6dff1c873578c9af4e"
+patch_args=-Np0
 
 commoncpp2-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/connman-ncurses/template b/srcpkgs/connman-ncurses/template
index 5fd4b33b08fc..0d2f48a12e24 100644
--- a/srcpkgs/connman-ncurses/template
+++ b/srcpkgs/connman-ncurses/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/eurogiciel-oss/connman-json-client"
 distfiles="https://github.com/eurogiciel-oss/connman-json-client/archive/v${version}.tar.gz"
 checksum=724604787b51cd3bd2ba5d2291f5f2efe0558a1ec78d92d3c92ebc78f6c63219
+patch_args=-Np0
 
 pre_configure() {
 	mkdir -p m4
diff --git a/srcpkgs/containers.image/template b/srcpkgs/containers.image/template
index f587e0ef3640..d292c68747b7 100644
--- a/srcpkgs/containers.image/template
+++ b/srcpkgs/containers.image/template
@@ -11,6 +11,7 @@ license="Apache-2.0"
 homepage="https://github.com/containers/image"
 distfiles="https://github.com/containers/image/archive/v${version}.tar.gz"
 checksum=99440d59728ed741e6171046cf3a6a820c2e3414cd9c17ee640efd289a015c3f
+patch_args=-Np0
 
 do_build() {
 	mkdir -p build
diff --git a/srcpkgs/coreboot-utils/template b/srcpkgs/coreboot-utils/template
index 4eec377ecea6..3f161fe47556 100644
--- a/srcpkgs/coreboot-utils/template
+++ b/srcpkgs/coreboot-utils/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://coreboot.org"
 distfiles="https://coreboot.org/releases/coreboot-${version}.tar.xz"
 checksum=4779da645a25ddebc78f1bd2bd0b740fb1e6479572648d4650042a2b9502856a
+patch_args=-Np0
 
 do_build() {
 	for util in cbfstool cbmem ectool ifdtool inteltool intelmetool \
diff --git a/srcpkgs/coreutils/template b/srcpkgs/coreutils/template
index b9148c854960..fd25f8220a78 100644
--- a/srcpkgs/coreutils/template
+++ b/srcpkgs/coreutils/template
@@ -11,6 +11,7 @@ homepage="https://www.gnu.org/software/coreutils"
 changelog="https://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob_plain;f=NEWS;hb=HEAD"
 distfiles="${GNU_SITE}/coreutils/coreutils-${version}.tar.xz"
 checksum=4458d8de7849df44ccab15e16b1548b285224dbba5f08fac070c1c0e0bcc4cfa
+patch_args=-Np0
 
 replaces="chroot-coreutils>=0 coreutils-doc>=0 b2sum>=0"
 
diff --git a/srcpkgs/coturn/template b/srcpkgs/coturn/template
index edfb526f4967..1f662c41f17b 100644
--- a/srcpkgs/coturn/template
+++ b/srcpkgs/coturn/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/coturn/coturn"
 distfiles="https://github.com/coturn/coturn/archive/${version}.tar.gz"
 checksum=4ff1f8c041ac71445018d81321d4b66e5dce4f171ef73a348d858dc9a0cc1cce
+patch_args=-Np0
 
 post_patch() {
 	# LibreSSL does not support FIPS mode
diff --git a/srcpkgs/cpuburn/template b/srcpkgs/cpuburn/template
index a215520fb764..735ecbcba22b 100644
--- a/srcpkgs/cpuburn/template
+++ b/srcpkgs/cpuburn/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="https://launchpad.net/ubuntu/+source/cpuburn/"
 distfiles="https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${version}.orig.tar.gz"
 checksum=eb191ce9bfbf453d30c218c3419573df102a3588f96c4a43686c84bb9da4bed6
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/cpulimit/template b/srcpkgs/cpulimit/template
index 9fbf6eccf66c..f1a756a81a70 100644
--- a/srcpkgs/cpulimit/template
+++ b/srcpkgs/cpulimit/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/opsengine/cpulimit"
 distfiles="https://github.com/opsengine/${pkgname}/archive/v${version}.tar.gz"
 checksum=64312f9ac569ddcadb615593cd002c94b76e93a0d4625d3ce1abb49e08e2c2da
+patch_args=-Np0
 
 pre_build() {
 	export CFLAGS="$CFLAGS $LDFLAGS"
diff --git a/srcpkgs/criu/template b/srcpkgs/criu/template
index c9f68933e756..2c9eda89e078 100644
--- a/srcpkgs/criu/template
+++ b/srcpkgs/criu/template
@@ -18,6 +18,7 @@ homepage="http://criu.org/"
 distfiles="https://download.openvz.org/criu/criu-${version}.tar.bz2"
 checksum=f63f30188b84e9a611429f732381f27e37c60cde0afc9821600f8597d21e39cb
 nocross="fails to run protobuf internals"
+patch_args=-Np0
 
 do_install() {
 	make DESTDIR=${DESTDIR} PREFIX=/usr LOGROTATEDIR=/etc/logrotate.d \
diff --git a/srcpkgs/crossguid/template b/srcpkgs/crossguid/template
index c846590103fa..acec95753554 100644
--- a/srcpkgs/crossguid/template
+++ b/srcpkgs/crossguid/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://github.com/graeme-hill/crossguid"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=48321928473c682b0cdc7e17bbd3390f79f4b98ab22fef3b81a852dda81fd195
+patch_args=-Np0
 
 do_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/crypto++/template b/srcpkgs/crypto++/template
index b524377319ea..ecc5291e1b3f 100644
--- a/srcpkgs/crypto++/template
+++ b/srcpkgs/crypto++/template
@@ -14,6 +14,7 @@ license="BSL-1.0"
 homepage="http://www.cryptopp.com/"
 distfiles="https://github.com/weidai11/cryptopp/archive/CRYPTOPP_${version//./_}.tar.gz"
 checksum=63304c6f943f435a4e385273e15abb69cff3b85a44663150bf5a6069b84abd43
+patch_args=-Np0
 
 CXXFLAGS="-DNDEBUG -fPIC"
 
diff --git a/srcpkgs/csound/template b/srcpkgs/csound/template
index f02f97bc6325..d38bf3627200 100644
--- a/srcpkgs/csound/template
+++ b/srcpkgs/csound/template
@@ -18,6 +18,7 @@ license="LGPL-2.1-or-later"
 homepage="https://csound.com/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=d47ed0fb70c752cb06ee2655ee9f010d8d1e369fc73d09d2ac2bc1b3060bf724
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 CXXFLAGS="-Wno-error -fcommon"
diff --git a/srcpkgs/csync2/template b/srcpkgs/csync2/template
index f8738551c270..1b16f75c10ee 100644
--- a/srcpkgs/csync2/template
+++ b/srcpkgs/csync2/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://oss.linbit.com/csync2/"
 distfiles="https://github.com/LINBIT/csync2/archive/csync2-$version.tar.gz"
 checksum=a1c6b0364eb9f19986a92fccd369bae29aa5aa55300e0664dadaf80d80de23ff
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ctags/template b/srcpkgs/ctags/template
index 56b3c3dfdfa8..2395dacd8208 100644
--- a/srcpkgs/ctags/template
+++ b/srcpkgs/ctags/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://ctags.io/"
 distfiles="https://github.com/universal-ctags/ctags/archive/p${version}.tar.gz"
 checksum=26d9efe481a57e81195878cdb0baca730a3c4d234b9a7c4f6bf2c8def42bf42b
+patch_args=-Np0
 
 do_configure() {
 	./autogen.sh
diff --git a/srcpkgs/cubieboard2-uboot/template b/srcpkgs/cubieboard2-uboot/template
index 23f63f574f00..8861e5c7b174 100644
--- a/srcpkgs/cubieboard2-uboot/template
+++ b/srcpkgs/cubieboard2-uboot/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="http://www.denx.de/wiki/U-Boot/WebHome"
 distfiles="ftp://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2"
 checksum=45813e6565dcc0436abe6752624324cdbf5f3ac106570d76d32b46ec529bcdc8
+patch_args=-Np0
 
 archs="armv7l*"
 
diff --git a/srcpkgs/cuetools/template b/srcpkgs/cuetools/template
index 7e039c051c73..8eb6785e684e 100644
--- a/srcpkgs/cuetools/template
+++ b/srcpkgs/cuetools/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/svend/cuetools"
 distfiles="https://github.com/svend/${pkgname}/archive/${version}.tar.gz"
 checksum=24a2420f100c69a6539a9feeb4130d19532f9f8a0428a8b9b289c6da761eb107
+patch_args=-Np0
 
 pre_configure() {
 	aclocal
diff --git a/srcpkgs/cups-pdf/template b/srcpkgs/cups-pdf/template
index 897437df779b..b8339fc1bf21 100644
--- a/srcpkgs/cups-pdf/template
+++ b/srcpkgs/cups-pdf/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.cups-pdf.de/"
 distfiles="https://www.cups-pdf.de/src/${pkgname}_${version}.tar.gz"
 checksum=738669edff7f1469fe5e411202d87f93ba25b45f332a623fb607d49c59aa9531
+patch_args=-Np0
 
 do_build() {
 	$CC $CFLAGS -o $pkgname src/cups-pdf.c -lcups ${LDFLAGS}
diff --git a/srcpkgs/cups/template b/srcpkgs/cups/template
index 66204733fa86..9520c2240a0a 100644
--- a/srcpkgs/cups/template
+++ b/srcpkgs/cups/template
@@ -17,6 +17,7 @@ license="Apache-2.0"
 homepage="https://github.com/OpenPrinting/cups"
 distfiles="https://github.com/OpenPrinting/cups/releases/download/v${version}/cups-${version}-source.tar.gz"
 checksum=deb3575bbe79c0ae963402787f265bfcf8d804a71fc2c94318a74efec86f96df
+patch_args=-Np0
 
 conf_files="/etc/pam.d/cups /etc/cups/*.conf /etc/xinetd.d/cups-lpd"
 make_dirs="
diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index e138e37605db..adb5f59e0aad 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -14,6 +14,7 @@ license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
 checksum=7e1e408f269a604418f37575ba8ef5f69323bebc4dd7f3091c1c2e9b000ffcbf
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/cutemarked/template b/srcpkgs/cutemarked/template
index 39f15d81ea08..ddf409fb9a76 100644
--- a/srcpkgs/cutemarked/template
+++ b/srcpkgs/cutemarked/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://cloose.github.io/CuteMarkEd/"
 distfiles="https://github.com/cloose/${pkgname}/archive/v${version}.tar.gz"
 checksum=78a41808c2f0452375810abdff76eeaaee012f8d1368a2b8772ec6b4d2ceeec8
+patch_args=-Np0
 
 pre_build() {
 	lrelease app/app.pro
diff --git a/srcpkgs/cvsps2/template b/srcpkgs/cvsps2/template
index 1bf720a7774c..b80618d32173 100644
--- a/srcpkgs/cvsps2/template
+++ b/srcpkgs/cvsps2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://cvsps.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/cvsps/cvsps-${version}.tar.gz"
 checksum=91d3198b33463861a581686d5fcf99a5c484e7c4d819384c04fda9cafec1075a
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/linux/__GLIBC__/g' cbtcommon/text_util.c
diff --git a/srcpkgs/daemontools/template b/srcpkgs/daemontools/template
index 5999e2e426ac..f3efebc6eeec 100644
--- a/srcpkgs/daemontools/template
+++ b/srcpkgs/daemontools/template
@@ -12,6 +12,7 @@ homepage="http://cr.yp.to/daemontools.html"
 distfiles="http://cr.yp.to/daemontools/${pkgname}-${version}.tar.gz http://smarden.org/pape/djb/manpages/daemontools-0.76-man-20020131.tar.gz"
 checksum="a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f
  1b4d77afe0878a0df587672531a3f7bbe0feb7ad0e9acf50395426e3c434600a"
+patch_args=-Np0
 
 post_install() {
 	for m in $XBPS_BUILDDIR/daemontools-man/*.8; do
diff --git a/srcpkgs/dante/template b/srcpkgs/dante/template
index 17fe0f69ae60..62b5f04f9a47 100644
--- a/srcpkgs/dante/template
+++ b/srcpkgs/dante/template
@@ -10,6 +10,7 @@ license="MIT-CMU"
 homepage="http://www.inet.no/dante/index.html"
 distfiles="http://www.inet.no/dante/files/dante-${version}.tar.gz"
 checksum=4c97cff23e5c9b00ca1ec8a95ab22972813921d7fbf60fc453e3e06382fc38a7
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
 	configure_args="--with-libc=libc.so.6"
diff --git a/srcpkgs/dar/template b/srcpkgs/dar/template
index c289909e8122..ec40334f51f9 100644
--- a/srcpkgs/dar/template
+++ b/srcpkgs/dar/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://dar.linux.free.fr/"
 distfiles="${SOURCEFORGE_SITE}/dar/dar-${version}.tar.gz"
 checksum=3fea9ff9e55fb9827e17a080de7d1a2605b82c2320c0dec969071efefdbfd097
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --with-gpgme-prefix=${XBPS_CROSS_BASE}/usr
diff --git a/srcpkgs/darkplaces/template b/srcpkgs/darkplaces/template
index 9e282a061057..cb5f7671d680 100644
--- a/srcpkgs/darkplaces/template
+++ b/srcpkgs/darkplaces/template
@@ -12,6 +12,7 @@ license="GPL-2"
 homepage="http://icculus.org/twilight/darkplaces/"
 distfiles="http://icculus.org/twilight/$pkgname/files/darkplacesengine${version}.zip"
 checksum=69e5a50991884196e403bd6aab4a33bba553a934a167be366672ab4e223b06c9
+patch_args=-Np0
 
 post_extract() {
 	# Extract the real source code.
diff --git a/srcpkgs/darktable/template b/srcpkgs/darktable/template
index 24f17d36dda8..6b3d09a1c0a8 100644
--- a/srcpkgs/darktable/template
+++ b/srcpkgs/darktable/template
@@ -23,6 +23,7 @@ homepage="http://www.darktable.org/"
 changelog="https://github.com/darktable-org/darktable/releases"
 distfiles="https://github.com/darktable-org/darktable/releases/download/release-${version}/darktable-${version}.tar.xz"
 checksum=7fc3f851da9bcd7c5053ecd09f21aa3eb6103be98a6c58f52010b6f22174941e
+patch_args=-Np0
 
 build_options="gmic"
 
diff --git a/srcpkgs/dash/template b/srcpkgs/dash/template
index d966b55956b7..34375cdca66f 100644
--- a/srcpkgs/dash/template
+++ b/srcpkgs/dash/template
@@ -11,6 +11,7 @@ homepage="http://gondor.apana.org.au/~herbert/dash/"
 distfiles="http://gondor.apana.org.au/~herbert/dash/files/$pkgname-$version.tar.gz"
 checksum=4e15b7ba5363bcc2a443549910cdc15b5ad601df8196b5f294c712eff037e08d
 register_shell="/usr/bin/sh /usr/bin/dash /bin/sh /bin/dash"
+patch_args=-Np0
 
 alternatives="
  sh:sh:/usr/bin/dash
diff --git a/srcpkgs/davfs2/template b/srcpkgs/davfs2/template
index 01eb6336fc4f..0b38a2b6f8c4 100644
--- a/srcpkgs/davfs2/template
+++ b/srcpkgs/davfs2/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://savannah.nongnu.org/projects/davfs2"
 distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=2e6b675685bd917772be60f0999ae098c80f79ff20dc131e8fec4547cbb63b50
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index 2d340913b04b..217e0eb01397 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,7 @@ license="BSD-4-Clause"
 homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.html"
 distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
 checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+patch_args=-Np0
 
 post_install() {
 	chmod 755 ${DESTDIR}/usr/bin/*
diff --git a/srcpkgs/dbus-glib/template b/srcpkgs/dbus-glib/template
index ee905b75bfe6..3a273bea56b5 100644
--- a/srcpkgs/dbus-glib/template
+++ b/srcpkgs/dbus-glib/template
@@ -13,6 +13,7 @@ license="GPL-2"
 homepage="http://www.freedesktop.org/wiki/Software/DBusBindings"
 distfiles="http://dbus.freedesktop.org/releases/$pkgname/$pkgname-$version.tar.gz"
 checksum=7ce4760cf66c69148f6bd6c92feaabb8812dee30846b24cd0f7395c436d7e825
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --with-dbus-binding-tool=dbus-binding-tool"
diff --git a/srcpkgs/dcraw/template b/srcpkgs/dcraw/template
index 67cb2f426ef1..e05e4f27e3b7 100644
--- a/srcpkgs/dcraw/template
+++ b/srcpkgs/dcraw/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.dechifro.org/dcraw/"
 distfiles="https://www.dechifro.org/dcraw/archive/${pkgname}-${version}.tar.gz"
 checksum=2890c3da2642cd44c5f3bfed2c9b2c1db83da5cec09cc17e0fa72e17541fb4b9
+patch_args=-Np0
 
 do_build() {
 	$CC $CFLAGS $LDFLAGS \
diff --git a/srcpkgs/dcron/template b/srcpkgs/dcron/template
index eb975fd13a30..e7333970c76f 100644
--- a/srcpkgs/dcron/template
+++ b/srcpkgs/dcron/template
@@ -11,6 +11,7 @@ changelog="https://raw.githubusercontent.com/dubiousjim/dcron/v${version}/CHANGE
 distfiles="https://github.com/dubiousjim/dcron/archive/v${version}.tar.gz"
 checksum=7c047194b9339b781971b000bf5512c11e856d20a14fe5323d5a1823f04c2a3f
 provides="cron-daemon-0_1"
+patch_args=-Np0
 
 alternatives="
  crond:crond:/etc/sv/dcron
diff --git a/srcpkgs/deadbeef-fb/template b/srcpkgs/deadbeef-fb/template
index c62ae6fc7b40..ae67fbb103f4 100644
--- a/srcpkgs/deadbeef-fb/template
+++ b/srcpkgs/deadbeef-fb/template
@@ -17,6 +17,7 @@ distfiles="https://gitlab.com/zykure/${pkgname}/repository/${_commit}/archive.ta
 checksum=19a0c2ea3743926e71f9b20f616ff5bdbfd9839a553b33cc192dfed7bed3cb1d
 build_options="gtk3"
 build_options_default="gtk3"
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/deadbeef/template b/srcpkgs/deadbeef/template
index 5666c1d97c92..a070c45c9a26 100644
--- a/srcpkgs/deadbeef/template
+++ b/srcpkgs/deadbeef/template
@@ -26,6 +26,7 @@ checksum="cbfe873d5bd84b70011dd6131b249fea8c89318c37411696a890c55029ac3e27
  c5eeb3fa116d51d251fe7c7e5c44798680f6478c43a1fffdcb28c4caf1c68286
  35b58679dbfec2c3a2688b1896afb0fb73b5184ac05d5bdbb787a86b5c00430d"
 LDFLAGS+=" -Wl,-z,stack-size=1048576"
+patch_args=-Np0
 
 # The soundtouchup plugin was made default in 1.8.4 and fails to build on i686.
 # Fixing that might be a good maintainer task.
diff --git a/srcpkgs/debug-me/template b/srcpkgs/debug-me/template
index 3df514e0be48..e6f9059f38c9 100644
--- a/srcpkgs/debug-me/template
+++ b/srcpkgs/debug-me/template
@@ -12,6 +12,7 @@ distfiles="https://git.joeyh.name/index.cgi/${pkgname}.git/snapshot/${pkgname}-$
 checksum=9497dc9b85a58e5c499ea25fa1bed9f4fd6cdd2f57564f52a0e4152ad4fdc102
 nocross=yes # Can't yet cross compile Haskell
 nopie_files="/usr/bin/debug-me"
+patch_args=-Np0
 
 post_install() {
 	vlicense AGPL
diff --git a/srcpkgs/desmume/template b/srcpkgs/desmume/template
index 3afaa5027f74..db37ee4a51b5 100644
--- a/srcpkgs/desmume/template
+++ b/srcpkgs/desmume/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.desmume.org"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=3ab34ba6cc009566245025c1dd94bf449b6a1b416d24387cb42e183c78e38896
+patch_args=-Np0
 
 post_extract() {
 	# git eats CRLFs, so the patch has wrong line ending. Instead
diff --git a/srcpkgs/devil/template b/srcpkgs/devil/template
index 1dffc7bdd52c..1a76819b665a 100644
--- a/srcpkgs/devil/template
+++ b/srcpkgs/devil/template
@@ -16,6 +16,7 @@ distfiles="${SOURCEFORGE_SITE}/openil/DevIL-${version}.tar.gz"
 checksum=0075973ee7dd89f0507873e2580ac78336452d29d34a07134b208f44e2feb709
 # The examples subpkg is gone
 replaces="devil-examples<1.8.0"
+patch_args=-Np0
 
 devil-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/dhcp/template b/srcpkgs/dhcp/template
index 2db18dcc60b0..a466f6607a2e 100644
--- a/srcpkgs/dhcp/template
+++ b/srcpkgs/dhcp/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="https://www.isc.org/downloads/dhcp"
 distfiles="http://ftp.isc.org/isc/dhcp/${version/P/-P}/dhcp-${version/P/-P}.tar.gz"
 checksum=b05e04337539545a8faa0d6ac518defc61a07e5aec66a857f455e7f218c85a1a
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/dhcpcd/template b/srcpkgs/dhcpcd/template
index e651bd019067..dbd6f288fbb7 100644
--- a/srcpkgs/dhcpcd/template
+++ b/srcpkgs/dhcpcd/template
@@ -17,6 +17,7 @@ distfiles="https://roy.marples.name/downloads/dhcpcd/dhcpcd-${version}.tar.xz"
 checksum=41a69297f380bf15ee8f94f73154f8c2bca7157a087c0d5aca8de000ba1d4513
 lib32disabled=yes
 conf_files=/etc/dhcpcd.conf
+patch_args=-Np0
 
 system_accounts="_dhcpcd"
 _dhcpcd_homedir="/var/db/dhcpcd"
diff --git a/srcpkgs/dia/template b/srcpkgs/dia/template
index 45f48aab4dcf..62af8fcba806 100644
--- a/srcpkgs/dia/template
+++ b/srcpkgs/dia/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Dia"
 distfiles="${GNOME_SITE}/dia/${version%.*}/dia-${version}.tar.xz"
 checksum=22914e48ef48f894bb5143c5efc3d01ab96e0a0cde80de11058d3b4301377d34
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/diod/template b/srcpkgs/diod/template
index de62d6c62b71..548e1f9f0540 100644
--- a/srcpkgs/diod/template
+++ b/srcpkgs/diod/template
@@ -12,6 +12,7 @@ license="GPL-2"
 homepage="https://github.com/chaos/diod"
 distfiles="https://github.com/chaos/diod/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=f41d2b91c1a712132f5457d9d1c3caca985f069bdc8ef27bf4c148ac1d9f8c9f
+patch_args=-Np0
 
 post_install() {
 	vsv diod
diff --git a/srcpkgs/discord-ptb/template b/srcpkgs/discord-ptb/template
index b1467a7dc267..35bd7f20fa24 100644
--- a/srcpkgs/discord-ptb/template
+++ b/srcpkgs/discord-ptb/template
@@ -16,6 +16,7 @@ _license_checksum=9abbd207c86f76a59c0017c131dc7a30089c40b4dacb54a0f339272468344e
 nopie=yes
 restricted=yes
 repository=nonfree
+patch_args=-Np0
 
 post_extract() {
 	$XBPS_FETCH_CMD -o eula https://discord.com/terms; cat eula |
diff --git a/srcpkgs/discord/template b/srcpkgs/discord/template
index fc6a70079d8b..17f259b82067 100644
--- a/srcpkgs/discord/template
+++ b/srcpkgs/discord/template
@@ -14,6 +14,7 @@ checksum=adede954e9c696d96e254759b539527a24ab1d42f0d548c5c4309d1a3fc3c25e
 repository=nonfree
 restricted=yes
 nopie=yes
+patch_args=-Np0
 
 do_install() {
 	local package_location="usr/lib/$pkgname" item
diff --git a/srcpkgs/discount/template b/srcpkgs/discount/template
index d47f46518415..3bee85895390 100644
--- a/srcpkgs/discount/template
+++ b/srcpkgs/discount/template
@@ -12,6 +12,7 @@ homepage="http://www.pell.portland.or.us/~orc/Code/discount"
 distfiles="https://github.com/Orc/discount/archive/v${version}.tar.gz"
 checksum=72c1325ddfc40871d6810f1e272cf2d45b361f26357eb38f170fd04d737bb9f2
 disable_parallel_build=yes
+patch_args=-Np0
 
 do_install() {
 	make DESTDIR=${DESTDIR} install install.man
diff --git a/srcpkgs/dispcalGUI/template b/srcpkgs/dispcalGUI/template
index 1bb51316a5d1..6e86a157729e 100644
--- a/srcpkgs/dispcalGUI/template
+++ b/srcpkgs/dispcalGUI/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://displaycal.net/"
 distfiles="${SOURCEFORGE_SITE}/dispcalgui/${_name}-${version}.tar.gz"
 checksum=7c34dfbd9f66f24f1d4c88de4a5a0de688aad719f095874b6259637d30893bea
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's|MimeType=model/vrml;x-world/x-vrml;|MimeType=model/vrml;|' misc/displaycal-vrml-to-x3d-converter.desktop
diff --git a/srcpkgs/djview/template b/srcpkgs/djview/template
index 76a0d1cc4103..bade9c6f96bc 100644
--- a/srcpkgs/djview/template
+++ b/srcpkgs/djview/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://djvu.sourceforge.net/djview4.html"
 distfiles="${SOURCEFORGE_SITE}/djvu/${pkgname}-${version}.tar.gz"
 checksum=5673c6a8b7e195b91a1720b24091915b8145de34879db1158bc936b100eaf3e3
+patch_args=-Np0
 
 post_extract() {
 	vsed -i -e '/Exec/s/djview4/djview/' \
diff --git a/srcpkgs/dma/template b/srcpkgs/dma/template
index 71892496013f..5ec809adcf71 100644
--- a/srcpkgs/dma/template
+++ b/srcpkgs/dma/template
@@ -13,6 +13,7 @@ homepage="https://github.com/corecode/dma"
 distfiles="https://github.com/corecode/dma/archive/v${version}.tar.gz"
 checksum=9d4b903f2b750d888f51d668d08d2ea18404dedb0a52cffeb3c81376023c1946
 system_accounts="mail"
+patch_args=-Np0
 
 provides="smtp-server-0_1 smtp-forwarder-0_1"
 replaces="smtp-server>=0 smtp-forwarder>=0"
diff --git a/srcpkgs/dmd-bootstrap/template b/srcpkgs/dmd-bootstrap/template
index 029b0024faea..1a7c483982f1 100644
--- a/srcpkgs/dmd-bootstrap/template
+++ b/srcpkgs/dmd-bootstrap/template
@@ -21,6 +21,7 @@ checksum="
  7f4d84f2b5252c0cc33bffbb4de8aab9321df844b8512e27e90267cbb9bc7422
  57306f80a63b83b755043d05e85e83cf3178701c92d295c97d1a5a8be8ffce19"
 provides="d-compiler-${version}_${revision}"
+patch_args=-Np0
 
 post_extract() {
 	rm -rf dmd druntime phobos
diff --git a/srcpkgs/dmd2.081/template b/srcpkgs/dmd2.081/template
index 79aad0940085..f33ef534d0e7 100644
--- a/srcpkgs/dmd2.081/template
+++ b/srcpkgs/dmd2.081/template
@@ -24,6 +24,7 @@ provides="d-compiler-${version}_${revision}"
 conflicts="dmd-bootstrap"
 nopie=yes
 LDFLAGS="-lpthread"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _archbits=64;;
diff --git a/srcpkgs/dmd2.091/template b/srcpkgs/dmd2.091/template
index 72521df7cd3f..13e976b57a41 100644
--- a/srcpkgs/dmd2.091/template
+++ b/srcpkgs/dmd2.091/template
@@ -26,6 +26,7 @@ nopie=yes
 nocross=yes
 disable_parallel_build=yes
 LDFLAGS="-lpthread"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _archbits=64;;
diff --git a/srcpkgs/dmraid/template b/srcpkgs/dmraid/template
index 420749bc8aa6..5e51fa6f224b 100644
--- a/srcpkgs/dmraid/template
+++ b/srcpkgs/dmraid/template
@@ -17,6 +17,7 @@ distfiles="${homepage}/src/dmraid-${_distver}-${_patchver}.tar.bz2"
 checksum=93421bd169d71ff5e7d2db95b62b030bfa205a12010b6468dcdef80337d6fbd8
 disable_parallel_build=yes
 lib32disabled=yes
+patch_args=-Np0
 
 dmraid-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/dmtx-utils/template b/srcpkgs/dmtx-utils/template
index b251f0a2061b..a38d7cfcb776 100644
--- a/srcpkgs/dmtx-utils/template
+++ b/srcpkgs/dmtx-utils/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/dmtx/dmtx-utils"
 distfiles="https://github.com/dmtx/dmtx-utils/archive/v${version}/dmtx-utils-${version}.tar.gz"
 checksum=0d396ec14f32a8cf9e08369a4122a16aa2e5fa1675e02218f16f1ab777ea2a28
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/docbook-xsl-ns/template b/srcpkgs/docbook-xsl-ns/template
index 04b3c274e510..1b88e629d0a7 100644
--- a/srcpkgs/docbook-xsl-ns/template
+++ b/srcpkgs/docbook-xsl-ns/template
@@ -13,6 +13,7 @@ homepage="https://docbook.org/"
 distfiles="https://github.com/docbook/xslt10-stylesheets/releases/download/release/${version}/${wrksrc}.tar.bz2"
 checksum=316524ea444e53208a2fb90eeb676af755da96e1417835ba5f5eb719c81fa371
 xml_entries="nextCatalog /usr/share/xsl-ns/docbook/catalog.xml --"
+patch_args=-Np0
 
 do_install() {
 	local xslmods="assembly common eclipse epub epub3 fo highlighting html \
diff --git a/srcpkgs/docbook-xsl/template b/srcpkgs/docbook-xsl/template
index 5cf9b0d5fc98..260eee70d6f0 100644
--- a/srcpkgs/docbook-xsl/template
+++ b/srcpkgs/docbook-xsl/template
@@ -13,6 +13,7 @@ homepage="https://docbook.org/"
 distfiles="https://github.com/docbook/xslt10-stylesheets/releases/download/release/${version}/${wrksrc}.tar.bz2"
 checksum=ee8b9eca0b7a8f89075832a2da7534bce8c5478fc8fc2676f512d5d87d832102
 xml_entries="nextCatalog /usr/share/xsl/docbook/catalog.xml --"
+patch_args=-Np0
 
 do_install() {
 	local xslmods="assembly common eclipse epub epub3 fo highlighting html \
diff --git a/srcpkgs/dolphin-emu/template b/srcpkgs/dolphin-emu/template
index 729f66512d42..fdd4a636e7a5 100644
--- a/srcpkgs/dolphin-emu/template
+++ b/srcpkgs/dolphin-emu/template
@@ -22,6 +22,7 @@ homepage="http://dolphin-emu.org"
 distfiles="https://github.com/dolphin-emu/dolphin/archive/${_commit}.tar.gz"
 checksum=a7ce8390993b3309108dea8f23976b343d2d7cd527f3ded9ef4c2a0462c7f338
 nopie=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|aarch64*) ;;
diff --git a/srcpkgs/dovecot/template b/srcpkgs/dovecot/template
index 0222fd25026c..fddc5c1649db 100644
--- a/srcpkgs/dovecot/template
+++ b/srcpkgs/dovecot/template
@@ -21,6 +21,7 @@ homepage="https://dovecot.org/"
 distfiles="${homepage}/releases/2.3/${pkgname}-${version}.tar.gz"
 checksum=c8b3d7f3af1e558a3ff0f970309d4013a4d3ce136f8c02a53a3b05f345b9a34a
 keep_libtool_archives=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	_tsize=${XBPS_TARGET_WORDSIZE}
diff --git a/srcpkgs/doxygen/template b/srcpkgs/doxygen/template
index 051c1568bbb2..f86d771cb360 100644
--- a/srcpkgs/doxygen/template
+++ b/srcpkgs/doxygen/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.doxygen.org/"
 distfiles="http://doxygen.nl/files/doxygen-${version}.src.tar.gz"
 checksum=67aeae1be4e1565519898f46f1f7092f1973cce8a767e93101ee0111717091d1
+patch_args=-Np0
 
 build_options="wizard"
 desc_option_wizard="build Qt5 GUI configuration tool, doxywizard"
diff --git a/srcpkgs/dpdk/template b/srcpkgs/dpdk/template
index 0f74b4c99d64..acd23532f88c 100644
--- a/srcpkgs/dpdk/template
+++ b/srcpkgs/dpdk/template
@@ -18,6 +18,7 @@ distfiles="https://github.com/DPDK/${pkgname}/archive/v${version}.tar.gz"
 checksum=1ceff1a6f4f8d5f6f62c1682097249227ac5225ccd9638e0af09f5411c681038
 # import py3compat
 python_version=3
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	armv7l*) configure_args+=" -Dmachine=armv7-a";;
diff --git a/srcpkgs/dracut-crypt-ssh/template b/srcpkgs/dracut-crypt-ssh/template
index 1425d223052d..4a13f8ac5c1f 100644
--- a/srcpkgs/dracut-crypt-ssh/template
+++ b/srcpkgs/dracut-crypt-ssh/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/dracut-crypt-ssh/dracut-crypt-ssh"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=c50b57b16d4aea3707e1f3e86777fafdb1b3551f2f4b6c4de5576eeb3b2f6bbc
+patch_args=-Np0
 
 pre_configure() {
 	sed -i '111s/^/#/' configure
diff --git a/srcpkgs/dracut/template b/srcpkgs/dracut/template
index c8db2195c8a0..240e6661f2bf 100644
--- a/srcpkgs/dracut/template
+++ b/srcpkgs/dracut/template
@@ -17,6 +17,7 @@ checksum=d5a1b47cdb07919d8225d5b5f538e6ae604988f3df0afbde99a8dc775277b726
 subpackages="dracut-network"
 # Checks require distfiles come from a git repository
 make_check=no
+patch_args=-Np0
 
 make_dirs="
  /etc/dracut.conf.d 0755 root root
diff --git a/srcpkgs/drawterm/template b/srcpkgs/drawterm/template
index b871806e44e2..50dcbd25c798 100644
--- a/srcpkgs/drawterm/template
+++ b/srcpkgs/drawterm/template
@@ -11,6 +11,7 @@ license="LPL-1.02"
 homepage="http://drawterm.9front.org/"
 distfiles="https://code.9front.org/hg/${pkgname}/archive/${_hghash}.tar.gz"
 checksum=5740acc4f7eb8f0ea0524839847d993b7865d240070da69f7a28ca3b7aef6813
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	armv5*) CFLAGS+=" -DARMv5" ;;
diff --git a/srcpkgs/drbd-utils/template b/srcpkgs/drbd-utils/template
index 10574a2bee11..2b0963b34c1f 100644
--- a/srcpkgs/drbd-utils/template
+++ b/srcpkgs/drbd-utils/template
@@ -28,6 +28,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.drbd.org"
 distfiles="https://www.linbit.com/downloads/drbd/utils/${pkgname}-${version}.tar.gz"
 checksum=1102e2a2001a45685c2f4ce5cb14e5a8a099044f53389d38480b3a88f5db3fd1
+patch_args=-Np0
 
 # XXX mirror which is reachable from musl builders
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/dstat/template b/srcpkgs/dstat/template
index 9e9d9d3217ac..d23277b42bd1 100644
--- a/srcpkgs/dstat/template
+++ b/srcpkgs/dstat/template
@@ -11,6 +11,7 @@ homepage="http://dag.wiee.rs/home-made/dstat/"
 distfiles="https://github.com/dagwieers/dstat/archive/v${version}.tar.gz"
 checksum=4fbd58f3461c86d09a3ab97472aa204de37aa33d31a0493a3e5ed86a2045abea
 python_version="3"
+patch_args=-Np0
 
 do_install() {
 	make install DESTDIR=$DESTDIR
diff --git a/srcpkgs/dua-cli/template b/srcpkgs/dua-cli/template
index 4215cb087738..ef71afecf4d8 100644
--- a/srcpkgs/dua-cli/template
+++ b/srcpkgs/dua-cli/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/Byron/dua-cli"
 distfiles="https://github.com/Byron/dua-cli/archive/v${version}.tar.gz"
 checksum=2af2408eecca4a1a04d0d395322f110b97e49d5366eb435e2e0e36b8b92684bb
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/dumpet/template b/srcpkgs/dumpet/template
index 35204d8aa5e2..866d90e01bcc 100644
--- a/srcpkgs/dumpet/template
+++ b/srcpkgs/dumpet/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://tracker.debian.org/pkg/dumpet"
 distfiles="http://http.debian.net/debian/pool/main/d/dumpet/dumpet_${version}.orig.tar.bz2"
 checksum=2cc1fa3a1b06f885e4524d1be80bdacc5b6a55057d0577262f2f5186b49a4da3
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC CFLAGS="$CFLAGS -I${XBPS_CROSS_BASE}/usr/include/libxml2" \
diff --git a/srcpkgs/dunelegacy/template b/srcpkgs/dunelegacy/template
index b9373d6d47d0..2f87366e852f 100644
--- a/srcpkgs/dunelegacy/template
+++ b/srcpkgs/dunelegacy/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://dunelegacy.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}-src.tar.bz2"
 checksum=4740df9e94712b34f5d6fa1ca3c24658c4808b40431aa156ed66c318be9f4de8
+patch_args=-Np0
 
 post_install() {
 	vinstall dunelegacy.desktop 644 usr/share/applications
diff --git a/srcpkgs/duplicity/template b/srcpkgs/duplicity/template
index 85bfe1316380..5ca7c963de67 100644
--- a/srcpkgs/duplicity/template
+++ b/srcpkgs/duplicity/template
@@ -13,6 +13,7 @@ homepage="http://duplicity.nongnu.org/"
 changelog="http://duplicity.nongnu.org/vers8/CHANGELOG.md"
 distfiles="http://launchpad.net/duplicity/${version%.*}-series/${version}/+download/duplicity-${version}.tar.gz"
 checksum=2643fea0f52920a0fb114069c78389f9621f1c24db7f26bda77bbc239b01ae53
+patch_args=-Np0
 
 do_check() {
 	# Disable as tests don't work
diff --git a/srcpkgs/dust3d/template b/srcpkgs/dust3d/template
index 9ad934499983..ae6182905ced 100644
--- a/srcpkgs/dust3d/template
+++ b/srcpkgs/dust3d/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://dust3d.org/"
 distfiles="https://github.com/huxingyi/dust3d/archive/${_version}.tar.gz"
 checksum=7c29e1153e6b568459ab8a8fadbec3398a43b5d60f295018c3f0cdcad2d2b4b1
+patch_args=-Np0
 
 do_install() {
 	vbin dust3d
diff --git a/srcpkgs/dvd+rw-tools/template b/srcpkgs/dvd+rw-tools/template
index b3c996b8fc2f..29fac22fb794 100644
--- a/srcpkgs/dvd+rw-tools/template
+++ b/srcpkgs/dvd+rw-tools/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://fy.chalmers.se/~appro/linux/DVD+RW/"
 distfiles="http://fy.chalmers.se/~appro/linux/DVD+RW/tools/${pkgname}-${version}.tar.gz"
 checksum=f8d60f822e914128bcbc5f64fbe3ed131cbff9045dca7e12c5b77b26edde72ca
+patch_args=-Np0
 
 do_install() {
 	vbin growisofs
diff --git a/srcpkgs/dvdauthor/template b/srcpkgs/dvdauthor/template
index c4a81cd4aafe..499be371af64 100644
--- a/srcpkgs/dvdauthor/template
+++ b/srcpkgs/dvdauthor/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://dvdauthor.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/dvdauthor/dvdauthor-${version}.tar.gz"
 checksum="3020a92de9f78eb36f48b6f22d5a001c47107826634a785a62dfcd080f612eb7"
+patch_args=-Np0
 
 build_options="NTSC PAL"
 build_options_default="PAL"
diff --git a/srcpkgs/e2fsprogs/template b/srcpkgs/e2fsprogs/template
index ada38513b984..3ba60e34d293 100644
--- a/srcpkgs/e2fsprogs/template
+++ b/srcpkgs/e2fsprogs/template
@@ -19,6 +19,7 @@ homepage="http://e2fsprogs.sourceforge.net/"
 distfiles="${KERNEL_SITE}/kernel/people/tytso/e2fsprogs/v${version}/e2fsprogs-${version}.tar.xz"
 checksum=23aa093295c94e71ef1be490c4004871c5b01d216a8cb4d111fa6c0aac354168
 conf_files="/etc/mke2fs.conf /etc/e2scrub.conf"
+patch_args=-Np0
 
 do_check() {
 	ln -sfv /tools/lib/lib{blk,uu}id.so.1 lib
diff --git a/srcpkgs/eb/template b/srcpkgs/eb/template
index 9e71add969a7..6a2c71df08e9 100644
--- a/srcpkgs/eb/template
+++ b/srcpkgs/eb/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/2ion/eb"
 distfiles="https://github.com/2ion/eb/archive/${version}.tar.gz"
 checksum=16274f4d5ec34cc37ed308927390a1d0d09e0e6a2b35fbff7d17aacca0524a37
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/eboard/template b/srcpkgs/eboard/template
index 187fdd3651bf..c6d7fa2a681b 100644
--- a/srcpkgs/eboard/template
+++ b/srcpkgs/eboard/template
@@ -12,6 +12,7 @@ homepage="http://www.bergo.eng.br/eboard"
 distfiles="https://github.com/fbergo/eboard/archive/v${version}.tar.gz"
 checksum=2a1ba23a27c94ee4ec167bb31ab7dd6eedf148e139c9a96e8cb5ac36ec8423c1
 broken="ELF in /usr/share"
+patch_args=-Np0
 
 pre_install() {
 	mkdir -p "${DESTDIR}/usr/share/eboard"
diff --git a/srcpkgs/ecl/template b/srcpkgs/ecl/template
index a4e160c15bed..06d2acb9333d 100644
--- a/srcpkgs/ecl/template
+++ b/srcpkgs/ecl/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="https://common-lisp.net/project/ecl/"
 distfiles="https://common-lisp.net/project/ecl/static/files/release/ecl-${version}.tgz"
 checksum=76a585c616e8fa83a6b7209325a309da5bc0ca68e0658f396f49955638111254
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# Depend on system ecl
diff --git a/srcpkgs/ecryptfs-utils/template b/srcpkgs/ecryptfs-utils/template
index 6bdc07b97c32..72e1050a2516 100644
--- a/srcpkgs/ecryptfs-utils/template
+++ b/srcpkgs/ecryptfs-utils/template
@@ -17,6 +17,7 @@ homepage="http://ecryptfs.org/"
 distfiles="http://launchpad.net/ecryptfs/trunk/${version}/+download/${pkgname}_${version}.orig.tar.gz"
 checksum=112cb3e37e81a1ecd8e39516725dec0ce55c5f3df6284e0f4cc0f118750a987f
 lib32disabled=yes
+patch_args=-Np0
 
 CPPFLAGS="-D_FILE_OFFSET_BITS=64 -I${XBPS_CROSS_BASE}/usr/include/python2.7"
 
diff --git a/srcpkgs/efibootmgr/template b/srcpkgs/efibootmgr/template
index bd2e88bbbeac..7acb1f7500b6 100644
--- a/srcpkgs/efibootmgr/template
+++ b/srcpkgs/efibootmgr/template
@@ -11,6 +11,7 @@ homepage="https://github.com/rhinstaller/efibootmgr"
 distfiles="https://github.com/rhinstaller/efibootmgr/releases/download/${version}/${pkgname}-${version}.tar.bz2"
 distfiles="https://github.com/rhboot/efibootmgr/archive/${version}.tar.gz"
 checksum=22a95ebe0d5c9fb2915b3a100450f8f37484d1dbb8b296f55b343cc84f10397d
+patch_args=-Np0
 
 conf_files="/etc/default/efibootmgr-kernel-hook"
 
diff --git a/srcpkgs/efl/template b/srcpkgs/efl/template
index 8786d5d94edf..498040008735 100644
--- a/srcpkgs/efl/template
+++ b/srcpkgs/efl/template
@@ -56,6 +56,7 @@ changelog="https://git.enlightenment.org/core/efl.git/plain/NEWS"
 distfiles="https://download.enlightenment.org/rel/libs/efl/efl-${version}.tar.xz"
 checksum=351ca0211ca000234527a503585f039f985607ec9439e34b49d8b8bbf35a7e6b
 make_check=extended
+patch_args=-Np0
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -Dbuild-tests=true"
diff --git a/srcpkgs/electron10/template b/srcpkgs/electron10/template
index 0f2c83f6f483..9d6d3d0ef702 100644
--- a/srcpkgs/electron10/template
+++ b/srcpkgs/electron10/template
@@ -33,6 +33,7 @@ distfiles="https://github.com/electron/electron/archive/v$version.tar.gz>electro
 checksum="d75b78107656ef854cc99a967b225eeb1e5989c0a1307d9efad3f8039d387cd8
  e018547e54566410fb365d9f3dae10037c30fca5debe6ba8baceef3ad3b03d28
  dcd0a1e619ff326399ca8fd87f61c255f4d1e9bff47860064993f01e4ff37fe1"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*-musl) makedepends+=" libucontext-devel" ;;
diff --git a/srcpkgs/electron12/template b/srcpkgs/electron12/template
index 51c50b0f74ac..3f236d8decdb 100644
--- a/srcpkgs/electron12/template
+++ b/srcpkgs/electron12/template
@@ -34,6 +34,7 @@ distfiles="https://github.com/electron/electron/archive/v$version.tar.gz>electro
 checksum="1b4073baa3e93bb410591688b7ca6e59201ae9c8cf18f05e5a05ecfd7ffebfc8
  1a75ea6aeb98f2d3b6feae1fbf5692679e93d5b7631bc7c762dd873499deda5b
  bcdf869b0743405515ee897b1047b5e851a717e426b4974d26537c9b10dfd53a"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*-musl) makedepends+=" libucontext-devel" ;;
diff --git a/srcpkgs/elogind/template b/srcpkgs/elogind/template
index 8e9fb0ef6c81..bf02b6d0f530 100644
--- a/srcpkgs/elogind/template
+++ b/srcpkgs/elogind/template
@@ -22,6 +22,7 @@ checksum=dd2fcf22a89a078cad22e633d2f14a4cc9f4a9c8bae25c0e39fc4aec3e273bc9
 conf_files="/etc/elogind/*.conf"
 # tests fail differently due to containerization and kernel features
 make_check=ci-skip
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" -Dutmp=false"
diff --git a/srcpkgs/emerald/template b/srcpkgs/emerald/template
index 736828d1e670..e486c3a5757c 100644
--- a/srcpkgs/emerald/template
+++ b/srcpkgs/emerald/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/compiz-reloaded"
 distfiles="https://github.com/compiz-reloaded/emerald/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=53112b557c0d726ad75450b69df1649412ab5fcdf6c0827e383889f58bf437b1
+patch_args=-Np0
 
 pre_configure() {
 	mkdir -p m4
diff --git a/srcpkgs/endless-sky-gl21/template b/srcpkgs/endless-sky-gl21/template
index 5bb8355dc570..fe920ce65569 100644
--- a/srcpkgs/endless-sky-gl21/template
+++ b/srcpkgs/endless-sky-gl21/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/SolraBizna/endless-sky"
 distfiles="https://github.com/SolraBizna/endless-sky/archive/${_commit}.tar.gz"
 checksum=46918d0cc35aaeb1219194099223e3338245aa04aa3f29fd76e3376bf5779376
+patch_args=-Np0
 
 endless-sky-gl21-data_package() {
 	short_desc+=" - data files"
diff --git a/srcpkgs/engrampa/template b/srcpkgs/engrampa/template
index ac402d6fb4a9..3bf7459fc214 100644
--- a/srcpkgs/engrampa/template
+++ b/srcpkgs/engrampa/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=ee280d288c974732ec7bc2d1c3e18fa563b33a30f3e4cb3e976ebc71be6c4674
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/enigma/template b/srcpkgs/enigma/template
index d04fa5112492..861fec84d449 100644
--- a/srcpkgs/enigma/template
+++ b/srcpkgs/enigma/template
@@ -12,6 +12,7 @@ homepage="http://www.nongnu.org/enigma/"
 distfiles="${SOURCEFORGE_SITE}/enigma-game/Release%20${version}/${pkgname}-${version}.tar.gz"
 checksum=d872cf067d8eb560d3bb1cb17245814bc56ac3953ae1f12e2229c8eb6f82ce01
 replaces="enigma-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/SDL"
 
diff --git a/srcpkgs/enlightenment/template b/srcpkgs/enlightenment/template
index db9c886dc920..2ffabb259e5d 100644
--- a/srcpkgs/enlightenment/template
+++ b/srcpkgs/enlightenment/template
@@ -20,6 +20,7 @@ checksum=be18e2f18d6c0b058f633e769863d3cbc4c07b629058ae670dec74cd7906dff1
 lib32disabled=yes
 build_options="wayland"
 build_options_default="wayland"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" -a "$build_option_wayland" ]; then
 	hostmakedepends+=" wayland-devel"
diff --git a/srcpkgs/entr/template b/srcpkgs/entr/template
index fa608a4d0ddd..0e8f027eabe5 100644
--- a/srcpkgs/entr/template
+++ b/srcpkgs/entr/template
@@ -10,6 +10,7 @@ homepage="http://entrproject.org"
 changelog="https://raw.githubusercontent.com/eradman/entr/master/NEWS"
 distfiles="$homepage/code/$pkgname-$version.tar.gz"
 checksum=e256a4d2fbe46f6132460833ba447e65d7f35ba9d0b265e7c4150397cc4405a2
+patch_args=-Np0
 
 post_extract() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/enyo-doom/template b/srcpkgs/enyo-doom/template
index 9e900f2799a0..d529a514908e 100644
--- a/srcpkgs/enyo-doom/template
+++ b/srcpkgs/enyo-doom/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.com/sdcofer70/enyo-doom"
 distfiles="https://gitlab.com/sdcofer70/enyo-doom/-/archive/${version}/enyo-doom-${version}.tar.bz2"
 checksum=03d490081753dfd1d40b7cc8142b8f0e7642bad6f3d724f9ba9cfad0253f1a34
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/epdfview/template b/srcpkgs/epdfview/template
index 2c6b5774b49d..06d6a4fd4420 100644
--- a/srcpkgs/epdfview/template
+++ b/srcpkgs/epdfview/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://freshmeat.sourceforge.net/projects/epdfview"
 distfiles="http://anduin.linuxfromscratch.org/BLFS/epdfview/epdfview-${version}.tar.bz2"
 checksum=948648ae7c9d7b3b408d738bd4f48d87375b1196cae1129d6b846a8de0f2f8f0
+patch_args=-Np0
 
 post_install() {
 	for f in 24 32 48; do
diff --git a/srcpkgs/espeakup/template b/srcpkgs/espeakup/template
index 6cbc9d0da552..569162c6857e 100644
--- a/srcpkgs/espeakup/template
+++ b/srcpkgs/espeakup/template
@@ -10,6 +10,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/williamh/espeakup"
 distfiles="https://github.com/williamh/espeakup/archive/v${version}.tar.gz"
 checksum="4de284e30b6bdb0f9dee9c8ea02d13a3d20a61415b812338446b8b381e997ef4"
+patch_args=-Np0
 
 post_install() {
 	vsv espeakup
diff --git a/srcpkgs/eukleides/template b/srcpkgs/eukleides/template
index a955ef5bc911..992cfa8e25b6 100644
--- a/srcpkgs/eukleides/template
+++ b/srcpkgs/eukleides/template
@@ -12,6 +12,7 @@ homepage="http://www.eukleides.org/"
 distfiles="http://www.eukleides.org/files/${pkgname}-${version}.tar.bz2"
 checksum=18c489460cb2cb98f4ea9c0187519ef77b4422117fd43bcd4e4836580ef40c69
 disable_parallel_build=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/evemu/template b/srcpkgs/evemu/template
index e65f2f63ac98..bc53c54383e9 100644
--- a/srcpkgs/evemu/template
+++ b/srcpkgs/evemu/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-only, MIT"
 homepage="https://freedesktop.org/wiki/Evemu/"
 distfiles=${FREEDESKTOP_SITE}/evemu/evemu-$version.tar.xz
 checksum=78c9400d55eeeb5ab75161360543f9376438c4da4934cb34cdda5b46021ae379
+patch_args=-Np0
 
 post_install() {
 	sed -n '/Copyright/,/IN THE SOFTWARE/p' src/evemu.c >LICENSE
diff --git a/srcpkgs/evolution-data-server/template b/srcpkgs/evolution-data-server/template
index 136c47804c04..b4cc9ccbab4b 100644
--- a/srcpkgs/evolution-data-server/template
+++ b/srcpkgs/evolution-data-server/template
@@ -20,6 +20,7 @@ homepage="https://wiki.gnome.org/Apps/Evolution"
 changelog="https://raw.githubusercontent.com/GNOME/evolution-data-server/gnome-3-38/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=ec82951639f32a5cece80a8b0b9aa3f66b7d318e3ee2c1c35234f2e2bde8a418
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/evolution/template b/srcpkgs/evolution/template
index 1b3b6fa7e9f4..84071a14f9af 100644
--- a/srcpkgs/evolution/template
+++ b/srcpkgs/evolution/template
@@ -22,6 +22,7 @@ distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=9b4c31352332fb9dc0ff23625ba1552c13808f1c9ba019496b750be87e07a5fd
 shlib_provides="libevolution-calendar.so libevolution-util.so libemail-engine.so
  libevolution-mail.so libevolution-shell.so libevolution-mail-formatter.so"
+patch_args=-Np0
 
 evolution-devel_package() {
 	depends="webkit2gtk-devel gtk+3-devel libglib-devel evolution-data-server-devel
diff --git a/srcpkgs/evtest/template b/srcpkgs/evtest/template
index 1feed55a9d6c..ee6bca695ac8 100644
--- a/srcpkgs/evtest/template
+++ b/srcpkgs/evtest/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://cgit.freedesktop.org/evtest/"
 distfiles="https://cgit.freedesktop.org/evtest/snapshot/evtest-${version}.tar.xz"
 checksum=e49f1f160b30c8f7c2a4caef5ab655f1caf816483d19fdedd6db2d251d7ab80e
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ex-vi/template b/srcpkgs/ex-vi/template
index ea54bb437895..84e0dbe713d1 100644
--- a/srcpkgs/ex-vi/template
+++ b/srcpkgs/ex-vi/template
@@ -15,6 +15,7 @@ distfiles="${SOURCEFORGE_SITE}/$pkgname/ex-${version}.tar.bz2"
 checksum=da4be7cf67e94572463b19e56850aa36dc4e39eb0d933d3688fe8574bb632409
 CFLAGS=-I.
 disable_parallel_build=yes
+patch_args=-Np0
 
 alternatives="
  vi:ex:/usr/bin/ex-ex
diff --git a/srcpkgs/exfat-dkms/template b/srcpkgs/exfat-dkms/template
index f0d28ef17dfb..1f590f1e8c90 100644
--- a/srcpkgs/exfat-dkms/template
+++ b/srcpkgs/exfat-dkms/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/dorimanx/exfat-nofuse"
 distfiles="https://github.com/dorimanx/exfat-nofuse/archive/${_commit}.tar.gz"
 checksum=b88a98f0a7e1b987465f5ccfcafb384b293506c7fec9d3b91b803e0fe5b16e0a
+patch_args=-Np0
 
 dkms_modules="exfat ${version}"
 depends="dkms"
diff --git a/srcpkgs/exo/template b/srcpkgs/exo/template
index 65ff908fb98b..e872f31c77b8 100644
--- a/srcpkgs/exo/template
+++ b/srcpkgs/exo/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://xfce.org/"
 distfiles="https://archive.xfce.org/src/xfce/exo/${version%.*}/exo-${version}.tar.bz2"
 checksum=4e89f5536afbf1cb9191cceb720fb2764df1a4fae3459512b7320841ab5a9e9d
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/expect/template b/srcpkgs/expect/template
index 2d0bdbd4e44f..59a7d2c99aa9 100644
--- a/srcpkgs/expect/template
+++ b/srcpkgs/expect/template
@@ -14,6 +14,7 @@ license="Public Domain"
 homepage="http://www.nist.gov/el/msid/expect.cfm"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/Expect/${version}/${pkgname}${version}.tar.gz"
 checksum=49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34
+patch_args=-Np0
 
 alternatives="
  mkpasswd:mkpasswd:/usr/bin/expect-mkpasswd
diff --git a/srcpkgs/extra-cmake-modules/template b/srcpkgs/extra-cmake-modules/template
index 1723115fb094..ffc5946416c3 100644
--- a/srcpkgs/extra-cmake-modules/template
+++ b/srcpkgs/extra-cmake-modules/template
@@ -13,6 +13,7 @@ homepage="https://invent.kde.org/frameworks/extra-cmake-modules"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=5972ec6d78c3e95ab9cbecdb0661c158570e868466357c5cec2b63a4251ecce4
 python_version=3
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING-CMAKE-SCRIPTS
diff --git a/srcpkgs/faad2/template b/srcpkgs/faad2/template
index 33158709e655..e2e9b2ff1243 100644
--- a/srcpkgs/faad2/template
+++ b/srcpkgs/faad2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.audiocoding.com/"
 distfiles="https://github.com/knik0/faad2/archive/${version//./_}.tar.gz"
 checksum=0c6d9636c96f95c7d736f097d418829ced8ec6dbd899cc6cc82b728480a84bfb
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -vfi
diff --git a/srcpkgs/fake-hwclock/template b/srcpkgs/fake-hwclock/template
index 5e69b6e020e8..0a90feae5d28 100644
--- a/srcpkgs/fake-hwclock/template
+++ b/srcpkgs/fake-hwclock/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="https://tracker.debian.org/pkg/fake-hwclock"
 distfiles="${DEBIAN_SITE}/main/f/${pkgname}/${pkgname}_${version}.tar.xz"
 checksum=02a825f7460ab06b370c203250606c67b0effffa1645a4a4f7ff3928eec4957e
+patch_args=-Np0
 
 conf_files="/etc/default/fake-hwclock"
 
diff --git a/srcpkgs/fakeroot/template b/srcpkgs/fakeroot/template
index f9d2cf9bb085..cae58c1efc56 100644
--- a/srcpkgs/fakeroot/template
+++ b/srcpkgs/fakeroot/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://salsa.debian.org/clint/fakeroot"
 distfiles="${DEBIAN_SITE}/main/f/fakeroot/${pkgname}_${version}.orig.tar.gz"
 checksum=8e903683357f7f5bcc31b879fd743391ad47691d4be33d24a76be3b6c21e956c
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/falkon/template b/srcpkgs/falkon/template
index 1a5eb3cd60bc..4727e1fb6cc2 100644
--- a/srcpkgs/falkon/template
+++ b/srcpkgs/falkon/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/KDE/falkon"
 distfiles="${KDE_SITE}/falkon/${version%.*}/falkon-${version}.tar.xz"
 checksum=ce743cd80c0e2d525a784e29c9b487f73480119b0567f9ce8ef1f44cca527587
+patch_args=-Np0
 
 LDFLAGS="-Wl,--no-fatal-warnings"
 
diff --git a/srcpkgs/farstream/template b/srcpkgs/farstream/template
index 6162c2966a56..470b3cb4f761 100644
--- a/srcpkgs/farstream/template
+++ b/srcpkgs/farstream/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.freedesktop.org/wiki/Software/Farstream"
 distfiles="${FREEDESKTOP_SITE}/farstream/releases/$pkgname/$pkgname-$version.tar.gz"
 checksum=cb7d112433cf7c2e37a8ec918fb24f0ea5cb293cfa1002488e431de26482f47b
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/fastd/template b/srcpkgs/fastd/template
index d07de67b11dc..e03c1838342b 100644
--- a/srcpkgs/fastd/template
+++ b/srcpkgs/fastd/template
@@ -17,6 +17,7 @@ conf_files="
  /etc/fastd/fastd.conf"
 make_dirs="/etc/fastd/peers	755	root 	root"
 CFLAGS="-I$XBPS_CROSS_BASE/usr/include/sodium"
+patch_args=-Np0
 
 pre_configure() {
 	# remove ssse3 requirement to support older AMD CPUs.
diff --git a/srcpkgs/faust/template b/srcpkgs/faust/template
index 03b44b2f2580..bac06eafa812 100644
--- a/srcpkgs/faust/template
+++ b/srcpkgs/faust/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://faust.grame.fr/"
 distfiles=https://github.com/grame-cncm/faust/releases/download/${version}/${pkgname}-${version}.tar.gz
 checksum="6cf64b8ee92c2db74d7d83d726b0ecb6f7e141deeadf4cd40c60e467893e0bfc"
+patch_args=-Np0
 
 # Android stuffs, used by the 'faust2android' script.
 nostrip_files="libsndfile.so "
diff --git a/srcpkgs/fbida/template b/srcpkgs/fbida/template
index 347632343733..46290f5cb5d4 100644
--- a/srcpkgs/fbida/template
+++ b/srcpkgs/fbida/template
@@ -18,6 +18,7 @@ checksum=95b7c01556cb6ef9819f358b314ddfeb8a4cbe862b521a3ed62f03d163154438
 depends="fbida-exiftran-${version}_${revision} fbida-fbi-${version}_${revision}
  fbida-fbpdf-${version}_${revision} $(vopt_if ida fbida-ida-${version}_${revision})"
 nocross="Requires cairo-gl.pc for the target which Void does not have"
+patch_args=-Np0
 
 build_options="ida"
 desc_option_ida="Build ida motif application (needs motif-devel)"
diff --git a/srcpkgs/fbreader/template b/srcpkgs/fbreader/template
index 0ffe6f5aeeab..1dcbe6f1c552 100644
--- a/srcpkgs/fbreader/template
+++ b/srcpkgs/fbreader/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.fbreader.org/"
 distfiles="http://www.fbreader.org/files/desktop/${pkgname}-sources-${version}.tgz"
 checksum=3d7c31d5ea314589d2a963290ad16f4d3d631a41e802b8b39f8be0c9f71eb8e9
+patch_args=-Np0
 
 do_build() {
 	sed -e "s:-llinebreak:-lunibreak:" -i makefiles/config.mk zlibrary/text/Makefile
diff --git a/srcpkgs/fbterm/template b/srcpkgs/fbterm/template
index f97ecc509dc7..47a4ba3ff5bd 100644
--- a/srcpkgs/fbterm/template
+++ b/srcpkgs/fbterm/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/izmntuk/fbterm"
 distfiles="https://github.com/izmntuk/${pkgname}/archive/v${version%.*}.tar.gz"
 checksum=68e9742b23d6f143d809a5930f5f22c7e55d7c14a4ab2c8a842e0b5c27b1f863
+patch_args=-Np0
 
 post_configure() {
 	sed -i "s,tic,& -o $DESTDIR/usr/share/terminfo," terminfo/Makefile
diff --git a/srcpkgs/fbv/template b/srcpkgs/fbv/template
index 0df248768ceb..da3387dc2b63 100644
--- a/srcpkgs/fbv/template
+++ b/srcpkgs/fbv/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.eclis.ch/fbv/"
 distfiles="http://s-tech.elsat.net.pl/fbv/fbv-${version}.tar.gz"
 checksum=9b55b9dafd5eb01562060d860e267e309a1876e8ba5ce4d3303484b94129ab3c
+patch_args=-Np0
 
 do_configure() {
 	sed -i '/^CFLAGS/d' Makefile
diff --git a/srcpkgs/fbxkb/template b/srcpkgs/fbxkb/template
index 1356d32df971..123e36a95f25 100644
--- a/srcpkgs/fbxkb/template
+++ b/srcpkgs/fbxkb/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://fbxkb.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tgz"
 checksum="fcbaf4ed9a70f58ea1316b19da74e2ca8b3fb0e2de5a73c849317589ce840ef2"
+patch_args=-Np0
 
 pre_build() {
 # Substitute compiler,
diff --git a/srcpkgs/fcitx-anthy/template b/srcpkgs/fcitx-anthy/template
index 02150ea5ca5d..42a048057b17 100644
--- a/srcpkgs/fcitx-anthy/template
+++ b/srcpkgs/fcitx-anthy/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://fcitx-im.org/"
 distfiles="https://github.com/fcitx/fcitx-anthy/archive/${version}.tar.gz"
 checksum=dcb561138508757f37da8a85bdf296368b592649b15ab76e8706db47cc25402a
+patch_args=-Np0
 
 CXXFLAGS='-D_GNU_SOURCE'
 
diff --git a/srcpkgs/fcitx/template b/srcpkgs/fcitx/template
index 00675b1fedc0..d562bf7c9434 100644
--- a/srcpkgs/fcitx/template
+++ b/srcpkgs/fcitx/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, MIT"
 homepage="https://fcitx-im.org/"
 distfiles="http://download.fcitx-im.org/fcitx/fcitx-${version}_dict.tar.xz"
 checksum=bc3515cba0561546fe02dae81391d4a03e0e79a2d668aa794cd3a377284033c6
+patch_args=-Np0
 
 hostmakedepends="pkg-config doxygen extra-cmake-modules glib-devel"
 makedepends="iso-codes gettext-devel enchant-devel libxml2-devel
diff --git a/srcpkgs/fcron/template b/srcpkgs/fcron/template
index 11efd44b0bbd..ffb03fb0fceb 100644
--- a/srcpkgs/fcron/template
+++ b/srcpkgs/fcron/template
@@ -31,6 +31,7 @@ license="GPL-2.0-or-later"
 homepage="http://fcron.free.fr"
 distfiles="$homepage/archives/$pkgname-$version.src.tar.gz"
 checksum=9aead33a0926e2eec123698c502114c6d67b483fe1ec232969fae6809b0bab60
+patch_args=-Np0
 
 alternatives="
  crond:crond:/etc/sv/fcron
diff --git a/srcpkgs/ferm/template b/srcpkgs/ferm/template
index 3b623d0dd0cc..0183d4c4bee6 100644
--- a/srcpkgs/ferm/template
+++ b/srcpkgs/ferm/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://ferm.foo-projects.org/"
 distfiles="http://ferm.foo-projects.org/download/${version:0:3}/ferm-${version}.tar.xz"
 checksum=689541465e7c073cbd604c9cd18f113c31c0b41bb12614726a59b17e44058885
+patch_args=-Np0
 
 do_install() {
 	make install PREFIX=${DESTDIR}/usr
diff --git a/srcpkgs/ffmpeg/template b/srcpkgs/ffmpeg/template
index e6667478fe13..50ab8e58c2b5 100644
--- a/srcpkgs/ffmpeg/template
+++ b/srcpkgs/ffmpeg/template
@@ -10,6 +10,7 @@ homepage="https://www.ffmpeg.org"
 changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
 distfiles="${homepage}/releases/ffmpeg-${version}.tar.xz"
 checksum=46e4e64f1dd0233cbc0934b9f1c0da676008cad34725113fb7f802cfa84ccddb
+patch_args=-Np0
 
 hostmakedepends="pkg-config perl yasm"
 makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
diff --git a/srcpkgs/fig2dev/template b/srcpkgs/fig2dev/template
index 87bdbd3d8ad6..95003a4f225b 100644
--- a/srcpkgs/fig2dev/template
+++ b/srcpkgs/fig2dev/template
@@ -13,6 +13,7 @@ homepage="http://www.xfig.org/"
 distfiles="${SOURCEFORGE_SITE}/mcj/${pkgname}-${version}.tar.xz"
 checksum=6336ac492d0f71dfb7a1dd8f4d78eae17aa57a34f743d4e5ba9814991c2da7ae
 replaces="transfig>=0"
+patch_args=-Np0
 
 post_install() {
 	sed '/^$/q' <fig2dev/fig2dev.c >LICENSE
diff --git a/srcpkgs/filezilla/template b/srcpkgs/filezilla/template
index b115f782ed4c..00f456085434 100644
--- a/srcpkgs/filezilla/template
+++ b/srcpkgs/filezilla/template
@@ -16,6 +16,7 @@ homepage="https://filezilla-project.org"
 changelog="https://svn.filezilla-project.org/filezilla/FileZilla3/trunk/NEWS?view=co"
 distfiles="https://download.filezilla-project.org/client/FileZilla_${version}_src.tar.bz2"
 checksum=703a199c13bb681d6eb0e3fe6e1cc9d0b690016acdd47b26bd12a2a95ff4aa6a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" wxWidgets-gtk3-devel xdg-utils"
diff --git a/srcpkgs/fingerprint-gui/template b/srcpkgs/fingerprint-gui/template
index 08d226569eb8..52f7084d1d9a 100644
--- a/srcpkgs/fingerprint-gui/template
+++ b/srcpkgs/fingerprint-gui/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.ullrich-online.cc/fingerprint/"
 distfiles="https://github.com/maksbotan/${pkgname}/archive/v${version}-qt5.tar.gz"
 checksum=a28d43e7e505f8ed15c8360bd91603eaf3206c225a542d0116669caafd89154c
+patch_args=-Np0
 
 # build system deals poorly with cross headers so include
 # them manually
diff --git a/srcpkgs/firefox-esr/template b/srcpkgs/firefox-esr/template
index e4ea57638c2c..38251ae0a73c 100644
--- a/srcpkgs/firefox-esr/template
+++ b/srcpkgs/firefox-esr/template
@@ -25,6 +25,7 @@ distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${versi
 checksum=979141a6d94bbe303815e9cd1ab1d23b5ce2f9c77d9d5486871eaecf0ea2df40
 lib32disabled=yes
 conflicts="firefox>=0"
+patch_args=-Np0
 
 build_options="alsa jack dbus pulseaudio xscreensaver sndio wayland"
 build_options_default="alsa jack dbus pulseaudio xscreensaver sndio wayland"
diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template
index 3ce8a92ecbb0..01dfcc17657c 100644
--- a/srcpkgs/firefox/template
+++ b/srcpkgs/firefox/template
@@ -12,6 +12,7 @@ license="MPL-2.0, GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.mozilla.org/firefox/"
 distfiles="${MOZILLA_SITE}/${pkgname}/releases/${version}/source/${pkgname}-${version}.source.tar.xz"
 checksum=db43d7d5796455051a5b847f6daa3423393803c9288c8b6d7f1186f5e2e0a90a
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/firejail/template b/srcpkgs/firejail/template
index 6b6a27403ec4..ab0544ef2e04 100644
--- a/srcpkgs/firejail/template
+++ b/srcpkgs/firejail/template
@@ -14,5 +14,6 @@ changelog="https://github.com/netblue30/firejail/raw/master/RELNOTES"
 distfiles="https://github.com/netblue30/firejail/archive/${version}.tar.gz"
 checksum=17a20c4c9f114aa8fdab467cecb60309f599ad08b4bbb3e751c992d98a95ac18
 conf_files="/etc/firejail/* /etc/apparmor.d/local/firejail-default"
+patch_args=-Np0
 
 nocross=yes
diff --git a/srcpkgs/flatpak-builder/template b/srcpkgs/flatpak-builder/template
index 208481c58b25..6435f58c3f6e 100644
--- a/srcpkgs/flatpak-builder/template
+++ b/srcpkgs/flatpak-builder/template
@@ -14,6 +14,7 @@ distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.xz
 checksum=4780c1b8e0838ffb64e9639bd7801417964fd818c7c6d5e9afca4d5511ded2c8
 # Tests expects a Debian derivate hosts to build a flatpak container from.
 make_check=no
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" flatpak-devel"
diff --git a/srcpkgs/flatpak/template b/srcpkgs/flatpak/template
index da8807535ee1..d3bfe4578455 100644
--- a/srcpkgs/flatpak/template
+++ b/srcpkgs/flatpak/template
@@ -23,6 +23,7 @@ homepage="https://flatpak.org/"
 changelog="https://github.com/flatpak/flatpak/raw/master/NEWS"
 distfiles="https://github.com/flatpak/flatpak/releases/download/${version}/flatpak-${version}.tar.xz"
 checksum=db152739d072f8ff299e4e888d8963a1b4538da7b10e0b86525be438f2e1dde4
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/flex/template b/srcpkgs/flex/template
index f07dee0ee482..60b111758bdc 100644
--- a/srcpkgs/flex/template
+++ b/srcpkgs/flex/template
@@ -13,6 +13,7 @@ license="custom:flex"
 homepage="https://github.com/westes/flex"
 distfiles="https://github.com/westes/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995
+patch_args=-Np0
 
 # Required to enable the definition of reallocarray() in stdlib.h
 CFLAGS="-D_GNU_SOURCE"
diff --git a/srcpkgs/flightgear/template b/srcpkgs/flightgear/template
index e5528205b9e0..ac8cb4c9032c 100644
--- a/srcpkgs/flightgear/template
+++ b/srcpkgs/flightgear/template
@@ -22,6 +22,7 @@ checksum="
  1f07e8ef2c558dae3b9738e313b57e711d38e569f85d49fc2c5ae647e3949a17
  2196f4ffcdeaae3a8b0a2b6ebf62a456bfd0198abb6c0619f763204d89804a03"
 python_version=2
+patch_args=-Np0
 
 nocross=https://build.voidlinux.org/builders/armv7l-musl_builder/builds/4773/steps/shell_3/logs/stdio
 
diff --git a/srcpkgs/flowcanvas/template b/srcpkgs/flowcanvas/template
index 4b61be701061..10fd327e1c95 100644
--- a/srcpkgs/flowcanvas/template
+++ b/srcpkgs/flowcanvas/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://drobilla.net/software/flowcanvas/"
 distfiles="http://download.drobilla.net/${pkgname}-${version}.tar.bz2"
 checksum=047928d858fd1e9296a9984de7468c86bbe23fc42e286691b8f273541402c596
+patch_args=-Np0
 
 CXXFLAGS="-std=c++11"
 
diff --git a/srcpkgs/foobillard++/template b/srcpkgs/foobillard++/template
index d92355a8cabe..185f4f62b16a 100644
--- a/srcpkgs/foobillard++/template
+++ b/srcpkgs/foobillard++/template
@@ -19,6 +19,7 @@ CFLAGS="-fgnu89-inline"
 # flags from freetype-config and sdl-config
 CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/freetype2"
 CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/SDL -D_GNU_SOURCE=1"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/foomatic-db-engine/template b/srcpkgs/foomatic-db-engine/template
index dc1a21716e5a..909ca2605b93 100644
--- a/srcpkgs/foomatic-db-engine/template
+++ b/srcpkgs/foomatic-db-engine/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.openprinting.org/"
 distfiles="https://www.openprinting.org/download/foomatic/$pkgname-$version.tar.gz"
 checksum=b5c89027aa26967d2e6db62e2af7db0c4039d2480d4fbf2476a6ddcf609a5faf
+patch_args=-Np0
 
 post_configure() {
 	# Compiling and linking in one step requires $(LDFLAGS)
diff --git a/srcpkgs/foremost/template b/srcpkgs/foremost/template
index cb463049d370..91e336667023 100644
--- a/srcpkgs/foremost/template
+++ b/srcpkgs/foremost/template
@@ -9,6 +9,7 @@ license="Public Domain"
 homepage="http://foremost.sourceforge.net/"
 distfiles="http://foremost.sourceforge.net/pkg/foremost-${version}.tar.gz"
 checksum=502054ef212e3d90b292e99c7f7ac91f89f024720cd5a7e7680c3d1901ef5f34
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/fossil/template b/srcpkgs/fossil/template
index 0e8afbbdadf4..6773f5d85441 100644
--- a/srcpkgs/fossil/template
+++ b/srcpkgs/fossil/template
@@ -13,6 +13,7 @@ homepage="https://www.fossil-scm.org"
 changelog="https://www.fossil-scm.org/home/doc/trunk/www/changes.wiki"
 distfiles="https://www.fossil-scm.org/index.html/uv/fossil-src-${version}.tar.gz"
 checksum=80d27923c663b2a2c710f8ae8cd549862e04f8c04285706274c34ae3c8ca17d1
+patch_args=-Np0
 
 post_extract() {
 	vsed -i 's/test_system_sqlite$/# &/' auto.def  # failing on cross
diff --git a/srcpkgs/fotoxx/template b/srcpkgs/fotoxx/template
index a3c968fcdef0..d954ae814495 100644
--- a/srcpkgs/fotoxx/template
+++ b/srcpkgs/fotoxx/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.kornelix.net/fotoxx/fotoxx.html"
 distfiles="https://www.kornelix.net/downloads/downloads/fotoxx-${version}.tar.gz"
 checksum=0c16597053ce8e186fb8163839f4f4ed44548bf00e43e88951f4346a9dbbb620
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/champlain-0.12"
 
diff --git a/srcpkgs/fpc/template b/srcpkgs/fpc/template
index 7967b25165b1..c867802cf756 100644
--- a/srcpkgs/fpc/template
+++ b/srcpkgs/fpc/template
@@ -40,6 +40,7 @@ esac
 nocross=yes
 nopie=yes
 noverifyrdeps=yes
+patch_args=-Np0
 
 post_extract() {
 	# extract recursive tar files or otherwise post-process.
diff --git a/srcpkgs/fprint_demo/template b/srcpkgs/fprint_demo/template
index 723fa68f3f7d..8e08614dbf43 100644
--- a/srcpkgs/fprint_demo/template
+++ b/srcpkgs/fprint_demo/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.freedesktop.org/wiki/Software/fprint/fprint_demo/"
 distfiles="https://github.com/dsd/${pkgname}/archive/v${version}.tar.gz"
 checksum=6f54f43e0a015cd83504a2c726a59154c5aee83e229e8494d54e592624ee3ad5
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/frame/template b/srcpkgs/frame/template
index faf98cc44932..d43faff47cc3 100644
--- a/srcpkgs/frame/template
+++ b/srcpkgs/frame/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-only"
 homepage="https://launchpad.net/frame"
 distfiles="https://launchpad.net/${pkgname}/trunk/v${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=cfb9ab52cdccd926f1822a457264d0014c7eb9f4600a72626063dd073b26256f
+patch_args=-Np0
 
 frame-devel_package() {
 	depends="frame>=${version}_${revision}"
diff --git a/srcpkgs/freecad/template b/srcpkgs/freecad/template
index a11272680797..86abc16ea9e9 100644
--- a/srcpkgs/freecad/template
+++ b/srcpkgs/freecad/template
@@ -4,6 +4,7 @@ version=0.19.2
 revision=1
 wrksrc="FreeCAD-${version}"
 build_style=cmake
+patch_args=-Np0
 
 _inst_prefix=/usr/lib/${pkgname}
 configure_args="
diff --git a/srcpkgs/freeciv/template b/srcpkgs/freeciv/template
index cb6434529441..2dbb80c62a52 100644
--- a/srcpkgs/freeciv/template
+++ b/srcpkgs/freeciv/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://freeciv.org/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=6181ef3d3c76264383aabbe0eaf1550d8a65ca42639e6c17cc2938165e176c8f
+patch_args=-Np0
 
 subpackages="freeciv-gtk2 freeciv-gtk3 freeciv-sdl freeciv-xaw"
 if [ -z "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/freedroidClassic/template b/srcpkgs/freedroidClassic/template
index fe8b987c8ac7..a386f4e0ae04 100644
--- a/srcpkgs/freedroidClassic/template
+++ b/srcpkgs/freedroidClassic/template
@@ -13,6 +13,7 @@ license="GPL-2"
 homepage="http://freedroid.org"
 distfiles="http://sourceforge.net/projects/freedroid/files/${pkgname}/FreedroidClassic-${version}/freedroid-${version}.tar.gz"
 checksum=0934bd29fb2ad0367ea3bdfdce47537179f9af6aa960cbcc897c40da2e1a0ee3
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/freeimage/template b/srcpkgs/freeimage/template
index c45052a67b17..49167a736380 100644
--- a/srcpkgs/freeimage/template
+++ b/srcpkgs/freeimage/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later, FreeImage"
 homepage="http://freeimage.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/freeimage/Source%20Distribution/FreeImage${version//./}.zip"
 checksum=f41379682f9ada94ea7b34fe86bf9ee00935a3147be41b6569c9605a53e438fd
+patch_args=-Np0
 
 CFLAGS="-fPIC -DPIC -fexceptions -fvisibility=hidden -DPNG_POWERPC_VSX_OPT=0"
 CXXFLAGS="${CFLAGS} -Wno-ctor-dtor-privacy"
diff --git a/srcpkgs/freeipmi/template b/srcpkgs/freeipmi/template
index e6818b20f15c..0a0b14774420 100644
--- a/srcpkgs/freeipmi/template
+++ b/srcpkgs/freeipmi/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/freeipmi/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=cfa30179b44c582e73cf92c2ad0e54fe49f9fd87f7a0889be9dc2db5802e6aab
+patch_args=-Np0
 
 conf_files="/etc/freeipmi/*.conf"
 make_dirs="/var/cache/ipmiseld 0755 root root"
diff --git a/srcpkgs/freeorion/template b/srcpkgs/freeorion/template
index 37bfc09176c4..32ccda483397 100644
--- a/srcpkgs/freeorion/template
+++ b/srcpkgs/freeorion/template
@@ -16,6 +16,7 @@ homepage="https://freeorion.org/index.php/Main_Page"
 changelog="https://raw.githubusercontent.com/freeorion/freeorion/master/ChangeLog.md"
 distfiles="https://github.com/freeorion/freeorion/releases/download/v${version}/FreeOrion_v${_release}_Source.tar.gz"
 checksum=e72ab42cba1ee8842507340931ef389e64011e040a4adc74add5f4997bbcba8b
+patch_args=-Np0
 
 post_extract() {
 	_build_no=${_release/*_/}
diff --git a/srcpkgs/freeplane/template b/srcpkgs/freeplane/template
index 52a4365845f2..2d92e1536f59 100644
--- a/srcpkgs/freeplane/template
+++ b/srcpkgs/freeplane/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://freeplane.sourceforge.net/"
 distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname%20stable/${pkgname}_src-$version.tar.gz"
 checksum=7cb3abeda6a073262b63603852d3f3fe2cdb34e917435e9648209efa9c3b1e21
+patch_args=-Np0
 
 make_dirs="
 /usr/share/freeplane/fwdir/condperm/ 755 root root
diff --git a/srcpkgs/freetds/template b/srcpkgs/freetds/template
index c1e2b541a6b8..bc88622a836a 100644
--- a/srcpkgs/freetds/template
+++ b/srcpkgs/freetds/template
@@ -13,6 +13,7 @@ license="LGPL-2.0-or-later"
 homepage="https://www.freetds.org/"
 distfiles="https://www.freetds.org/files/stable/freetds-${version}.tar.gz"
 checksum=a2134ff1852003c0aeed82bd5f7842233ff287c3a14252b84d2653983aff7da1
+patch_args=-Np0
 
 conf_files="/etc/freetds/freetds.conf
  /etc/freetds/locales.conf
diff --git a/srcpkgs/freetype/template b/srcpkgs/freetype/template
index ba4c6ad900c4..b41edae73a6f 100644
--- a/srcpkgs/freetype/template
+++ b/srcpkgs/freetype/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, FTL"
 homepage="https://www.freetype.org/"
 distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=86a854d8905b19698bbc8f23b860bc104246ce4854dcea8e3b0fb21284f75784
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e "s/%PKG_CONFIG%/pkg-config/" builds/unix/freetype-config.in
diff --git a/srcpkgs/freshplayerplugin/template b/srcpkgs/freshplayerplugin/template
index a6205c0ba98d..7730d4954be2 100644
--- a/srcpkgs/freshplayerplugin/template
+++ b/srcpkgs/freshplayerplugin/template
@@ -13,6 +13,7 @@ homepage="https://github.com/i-rinat/freshplayerplugin"
 changelog="https://raw.githubusercontent.com/i-rinat/freshplayerplugin/master/ChangeLog"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=4fa4fe07e812f6e10784ff984e1389b9b444ca44b84101999c6fad8f55db59d9
+patch_args=-Np0
 
 do_install() {
 	vinstall build/libfreshwrapper-flashplayer.so 755 usr/lib/mozilla/plugins
diff --git a/srcpkgs/fs-utils/template b/srcpkgs/fs-utils/template
index 91a0d1dcc0d6..cc8fe606ab0a 100644
--- a/srcpkgs/fs-utils/template
+++ b/srcpkgs/fs-utils/template
@@ -15,6 +15,7 @@ distfiles="$homepage/archive/v$version.tar.gz
 checksum="0f63aa92f673f290d4bca9009ca6f213e70ac70519c5cdac3fa64acf5afa5bae
  228892fd0f669ee3051aee19f8660e4719bee9bd70c1b02adcaee518d4155866"
 skip_extraction="LICENSE"
+patch_args=-Np0
 
 post_install() {
 	vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/LICENSE
diff --git a/srcpkgs/fuse/template b/srcpkgs/fuse/template
index 10061307b416..812f9dfc16d1 100644
--- a/srcpkgs/fuse/template
+++ b/srcpkgs/fuse/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://github.com/libfuse/libfuse"
 distfiles="${homepage}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=d0e69d5d608cc22ff4843791ad097f554dd32540ddc9bed7638cc6fea7c1b4b5
+patch_args=-Np0
 
 post_install() {
 	# remove obsolete rules file provided by udev.
diff --git a/srcpkgs/gamin/template b/srcpkgs/gamin/template
index 3ed85f0bb6f3..bc4b244b5757 100644
--- a/srcpkgs/gamin/template
+++ b/srcpkgs/gamin/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.gnome.org/~veillard/gamin/"
 distfiles="$GNOME_SITE/gamin/0.1/gamin-${version}.tar.bz2"
 checksum=a59948b20ce2f14136c013f155abb8c8d51db2ea167c063ff33461e453fec10a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gammu/template b/srcpkgs/gammu/template
index bb5d54bcfe90..71ebeecdab9f 100644
--- a/srcpkgs/gammu/template
+++ b/srcpkgs/gammu/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://wammu.eu"
 distfiles="https://dl.cihar.com/gammu/releases/gammu-${version}.tar.bz2"
 checksum=6197f8b4d35746d31567e61880121def676f225eba05276648410eaa6ce60c9f
+patch_args=-Np0
 
 gammu-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/gatling/template b/srcpkgs/gatling/template
index 9993c3a0cd69..15aefdfd53d9 100644
--- a/srcpkgs/gatling/template
+++ b/srcpkgs/gatling/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.fefe.de/gatling"
 distfiles="https://www.fefe.de/gatling/$pkgname-$version.tar.xz"
 checksum=5f96438ee201d7f1f6c2e0849ff273b196bdc7493f29a719ce8ed08c8be6365b
+patch_args=-Np0
 
 CFLAGS="-std=c99 -I${XBPS_CROSS_BASE}/usr/include/libowfat -fcommon"
 
diff --git a/srcpkgs/gavl/template b/srcpkgs/gavl/template
index 0f5f50d93565..8abcc051e743 100644
--- a/srcpkgs/gavl/template
+++ b/srcpkgs/gavl/template
@@ -11,6 +11,7 @@ homepage="http://gmerlin.sourceforge.net/gavl.html"
 distfiles="${SOURCEFORGE_SITE}/gmerlin/gavl/${version}/gavl-${version}.tar.gz"
 checksum=51aaac41391a915bd9bad07710957424b046410a276e7deaff24a870929d33ce
 CFLAGS="-lm"
+patch_args=-Np0
 
 gavl-devel_package() {
 	depends="gavl>=${version}_${revision}"
diff --git a/srcpkgs/gbdfed/template b/srcpkgs/gbdfed/template
index 788a9abab08b..55de7fabe98c 100644
--- a/srcpkgs/gbdfed/template
+++ b/srcpkgs/gbdfed/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause, MIT"
 homepage="http://sofia.nmsu.edu/~mleisher/Software/gbdfed/"
 distfiles="https://src.fedoraproject.org/repo/pkgs/gbdfed/gbdfed-${version}.tar.bz2/2a2e1cbfe8566db6d302f0b9ab79b8dd/gbdfed-${version}.tar.bz2"
 checksum=5db25d4ce688dcb188dee056e58614a94a5e4fce4b6066fbb310951ab999093c
+patch_args=-Np0
 
 post_install() {
 	sed '/^$/q' <gbdfed.c >LICENSE
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 07ceeccc93d4..ade2f5007df0 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -2,6 +2,7 @@
 archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 _majorver=10.2
+patch_args=-Np0
 
 pkgname=gcc-multilib
 version=${_majorver}.1pre1
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index ba7084934857..4de5faa93f5a 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -8,6 +8,7 @@ _gmp_version=6.2.0
 _mpfr_version=4.1.0
 _mpc_version=1.1.0
 _isl_version=0.21
+patch_args=-Np0
 
 pkgname=gcc
 # we are using a 10-stable git snapshot alpine is using in order
diff --git a/srcpkgs/gcolor2/template b/srcpkgs/gcolor2/template
index 4aec89567aa9..7a3eaeb093a9 100644
--- a/srcpkgs/gcolor2/template
+++ b/srcpkgs/gcolor2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://gcolor2.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=89bd6c6d27ba5a679ec60057de8497855072f520515b490e5986fc3509774f23
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gdm/template b/srcpkgs/gdm/template
index c76e13c2de12..371445e58e2d 100644
--- a/srcpkgs/gdm/template
+++ b/srcpkgs/gdm/template
@@ -24,6 +24,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Projects/GDM"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=5ed74b739d3a232ffb1e4a132bcf965bdfe955d995b528773588775b02f2950e
+patch_args=-Np0
 
 conf_files="
 	/etc/gdm/custom.conf
diff --git a/srcpkgs/gdmap/template b/srcpkgs/gdmap/template
index 47b0105feb38..7b321c76487c 100644
--- a/srcpkgs/gdmap/template
+++ b/srcpkgs/gdmap/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://gdmap.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=a200c98004b349443f853bf611e49941403fce46f2335850913f85c710a2285b
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/geary/template b/srcpkgs/geary/template
index a74b1ff16cd2..17c2c0af3176 100644
--- a/srcpkgs/geary/template
+++ b/srcpkgs/geary/template
@@ -20,6 +20,7 @@ homepage="https://wiki.gnome.org/Apps/Geary"
 _series=${version%.${version#*.*.}}
 distfiles="${GNOME_SITE}/${pkgname}/${_series}/geary-${version}.tar.xz"
 checksum=e72e212798536657d5100e1e1a4a67f3836d6f0235340aae53e576f2a774e812
+patch_args=-Np0
 
 post_patch() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/geda/template b/srcpkgs/geda/template
index 6626bc91fd94..32afaf0681bb 100644
--- a/srcpkgs/geda/template
+++ b/srcpkgs/geda/template
@@ -18,6 +18,7 @@ distfiles="http://ftp.geda-project.org/geda-gaf/stable/v${version%.*}/${version}
 checksum=e862ab241528538fa3bee2739261f568011102b60c5e39a2f0358663c042c8a4
 python_version=2
 replaces="geda-data>=0"
+patch_args=-Np0
 
 CFLAGS="-Wno-deprecated-declarations -fcommon -Wno-unused-function"
 
diff --git a/srcpkgs/geis/template b/srcpkgs/geis/template
index ddad320d93a7..3f3b40e52315 100644
--- a/srcpkgs/geis/template
+++ b/srcpkgs/geis/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="https://launchpad.net/geis"
 distfiles="https://launchpad.net/geis/trunk/$version/+download/geis-$version.tar.xz"
 checksum=8a60f5683852094038904e690d23cc5a90a980fc52da67f0f28890baa25c70eb
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	configure_args+=" --enable-integration-tests=no"
diff --git a/srcpkgs/geos/template b/srcpkgs/geos/template
index efc698ab3dc8..bd7f56da854c 100644
--- a/srcpkgs/geos/template
+++ b/srcpkgs/geos/template
@@ -9,6 +9,7 @@ license="LGPL-2.1-or-later"
 homepage="https://trac.osgeo.org/geos"
 distfiles="https://download.osgeo.org/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=7e630507dcac9dc07565d249a26f06a15c9f5b0c52dd29129a0e3d381d7e382a
+patch_args=-Np0
 
 geos-devel_package() {
 	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
diff --git a/srcpkgs/gfm/template b/srcpkgs/gfm/template
index a21661053740..950339e880e7 100644
--- a/srcpkgs/gfm/template
+++ b/srcpkgs/gfm/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.ticalc.org"
 distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${_tilpver}/${pkgname}-${version}.tar.bz2"
 checksum=09031ac0abf686b6a8bc9935f331ef460415783a1057f11b0af993526b52017f
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" gettext-devel"
diff --git a/srcpkgs/giac/template b/srcpkgs/giac/template
index ca95534498f2..1e87c15d2b3f 100644
--- a/srcpkgs/giac/template
+++ b/srcpkgs/giac/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
 distfiles="https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_${version%.*}-${version##*.}.tar.gz"
 checksum=bbd6f0aafe373de3c9ed53d21878224e847359fdd9a7cdf9e9096e7c960f10b4
+patch_args=-Np0
 
 # need more than 4*65536 stack, see try_parse() in gen.cc line 11812
 LDFLAGS="-Wl,-z,stack-size=2097152"
diff --git a/srcpkgs/giflib/template b/srcpkgs/giflib/template
index 4f01f28e079e..9f3d399c6a5e 100644
--- a/srcpkgs/giflib/template
+++ b/srcpkgs/giflib/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://sourceforge.net/projects/giflib/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=31da5562f44c5f15d63340a09a4fd62b48c45620cd302f77a6d9acf0077879bd
+patch_args=-Np0
 
 CFLAGS="-fPIC"
 
diff --git a/srcpkgs/giggle/template b/srcpkgs/giggle/template
index 8240dd9afcd1..91eee3d7d911 100644
--- a/srcpkgs/giggle/template
+++ b/srcpkgs/giggle/template
@@ -14,6 +14,7 @@ homepage="https://wiki.gnome.org/Apps/giggle"
 distfiles="${GNOME_SITE}/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
 checksum=ae2e2237fa0d0999d99d0a0ee9b7ec147e80bd2472d59a045b2b01eb02261f59
 lib32disabled=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index 999c9a6f46f0..45a894853d35 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -23,6 +23,7 @@ checksum=bd1bb762368c0dd3175cf05006812dd676949c3707e21f4e6857435cb435989e
 python_version=2
 lib32disabled=yes
 no_generic_pkgconfig_link=yes
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 autoreconf -fi
diff --git a/srcpkgs/git-annex/template b/srcpkgs/git-annex/template
index cdcd6bb0f83c..25f8338e6833 100644
--- a/srcpkgs/git-annex/template
+++ b/srcpkgs/git-annex/template
@@ -15,6 +15,7 @@ distfiles="https://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-
 checksum=17109144b2aadfab79fa0e193df3e0c02fd80f738a5ed6eccb0d11692bedb01d
 nopie_files="/usr/bin/git-annex"
 nocross=yes
+patch_args=-Np0
 
 # These install steps are pulled from the install target in the
 # git-annex Makefile. The target can't be called directly because it is
diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template
index f375d2dcfa17..eae2e61b6819 100644
--- a/srcpkgs/gitea/template
+++ b/srcpkgs/gitea/template
@@ -33,6 +33,7 @@ homepage="https://gitea.io"
 changelog="https://github.com/go-gitea/gitea/blob/master/CHANGELOG.md"
 distfiles="https://github.com/go-gitea/gitea/releases/download/v${version}/gitea-src-${version}.tar.gz"
 checksum=d04bca934feba35600aaf739c82b7cbe7d8b911a086d7ac54f0710b689a85ac3
+patch_args=-Np0
 
 system_accounts="_gitea"
 _gitea_homedir="/var/lib/gitea"
diff --git a/srcpkgs/gitg/template b/srcpkgs/gitg/template
index e309a6a1462f..87376f22160e 100644
--- a/srcpkgs/gitg/template
+++ b/srcpkgs/gitg/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Gitg"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=24a4aabf8a42aa2e783e1fb5996ebb3c2a82a01b9689269f1329517ef124ef5a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -Dexe_wrapper=qemu-${XBPS_TARGET_QEMU_MACHINE}-static"
diff --git a/srcpkgs/gkrellm/template b/srcpkgs/gkrellm/template
index f2c1721ac5ee..59a20ddb0b90 100644
--- a/srcpkgs/gkrellm/template
+++ b/srcpkgs/gkrellm/template
@@ -11,6 +11,7 @@ license="GPL-3.0.or-later"
 homepage="http://gkrellm.srcbox.net"
 distfiles="${homepage}/releases/gkrellm-${version}.tar.bz2"
 checksum=1ee0643ed9ed99f88c1504c89d9ccb20780cf29319c904b68e80a8e7c8678c06
+patch_args=-Np0
 
 do_install() {
 	make PREFIX=/usr DESTDIR=${DESTDIR} STRIP= install
diff --git a/srcpkgs/glances/template b/srcpkgs/glances/template
index 29bc7790e11d..daf47f64f7a3 100644
--- a/srcpkgs/glances/template
+++ b/srcpkgs/glances/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-or-later"
 homepage="https://github.com/nicolargo/glances"
 distfiles="https://github.com/nicolargo/glances/archive/v${version}.tar.gz"
 checksum=5839a110af35af35b7a1d30c15e59c59359480c2eaec852d30480c96b8cf8d76
+patch_args=-Np0
 
 post_install() {
 	vsconf conf/glances.conf
diff --git a/srcpkgs/glib/template b/srcpkgs/glib/template
index 855a55856b31..9538134e3b36 100644
--- a/srcpkgs/glib/template
+++ b/srcpkgs/glib/template
@@ -17,6 +17,7 @@ homepage="https://wiki.gnome.org/Projects/GLib"
 changelog="https://gitlab.gnome.org/GNOME/glib/raw/master/NEWS"
 distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz"
 checksum=ecc7798a9cc034eabdfd7f246e6dd461cdbf1175fcc2e9867cc7da7b7309e0fb
+patch_args=-Np0
 
 build_options="gtk_doc"
 desc_option_gtk_doc="Build GTK API docs"
diff --git a/srcpkgs/gloox/template b/srcpkgs/gloox/template
index 0099876f5b22..f56bd1621233 100644
--- a/srcpkgs/gloox/template
+++ b/srcpkgs/gloox/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://camaya.net/gloox"
 distfiles="https://camaya.net/download/gloox-${version}.tar.bz2"
 checksum=4ade1b14848ccfcd89a505a4fff05116c24f13cef8d02fab0ade2717117ec964
+patch_args=-Np0
 
 gloox-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/glusterfs/template b/srcpkgs/glusterfs/template
index 93fd87eeda76..ec10ef21466f 100644
--- a/srcpkgs/glusterfs/template
+++ b/srcpkgs/glusterfs/template
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later, LGPL-3.0-only"
 homepage="https://www.gluster.org/"
 distfiles="https://download.gluster.org/pub/gluster/glusterfs/${version%.*}/${version}/${pkgname}-${version}.tar.gz"
 checksum=6f29ae4ab2c270ade0cd14a3f733d7d33fda78e79e81b148cd50711f65069d87
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) broken="not yet supported";;
diff --git a/srcpkgs/glyr/template b/srcpkgs/glyr/template
index 30dbe4e87f8e..6055834d3fb9 100644
--- a/srcpkgs/glyr/template
+++ b/srcpkgs/glyr/template
@@ -11,6 +11,7 @@ license="LGPL-3.0-or-later"
 homepage="https://github.com/sahib/glyr"
 distfiles="https://github.com/sahib/glyr/archive/${version}.tar.gz"
 checksum=77e8da60221c8d27612e4a36482069f26f8ed74a1b2768ebc373c8144ca806e8
+patch_args=-Np0
 
 glyr-devel_package() {
 	depends="glyr>=${version}_${revision}"
diff --git a/srcpkgs/gmrun/template b/srcpkgs/gmrun/template
index b3565fa4929e..4e6727f20d06 100644
--- a/srcpkgs/gmrun/template
+++ b/srcpkgs/gmrun/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://sf.net/projects/gmrun"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=17297bce53249ccc7145931db22251b47f77ac355f78cf8abf1e87ae16341fa0
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/gnome-authenticator/template b/srcpkgs/gnome-authenticator/template
index e1bd1ee9e443..ceca3efe8578 100644
--- a/srcpkgs/gnome-authenticator/template
+++ b/srcpkgs/gnome-authenticator/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.gnome.org/World/Authenticator"
 distfiles="${homepage}/-/archive/${version}/Authenticator-${version}.tar.gz"
 checksum="d7250fbef1de2dcb599a55ff3d40dcc6ed5618fe89d50ec795281d8ba3123d5b"
+patch_args=-Np0
 
 post_patch() {
 	find src/Authenticator/widgets -type f -exec \
diff --git a/srcpkgs/gnome-desktop/template b/srcpkgs/gnome-desktop/template
index b92478185d66..72565e7b28e8 100644
--- a/srcpkgs/gnome-desktop/template
+++ b/srcpkgs/gnome-desktop/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://gitlab.gnome.org/GNOME/gnome-desktop"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=02dd6e5860e90395b5d88745ee30239a919285afbb7a22cf17e3be25e9abfbf6
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/gnome-keyring/template b/srcpkgs/gnome-keyring/template
index b8defd1997dd..6ec17559c86f 100644
--- a/srcpkgs/gnome-keyring/template
+++ b/srcpkgs/gnome-keyring/template
@@ -17,6 +17,7 @@ homepage="https://www.gnome.org"
 distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
 checksum=a3d24db08ee2fdf240fbbf0971a98c8ee295aa0e1a774537f4ea938038a3b931
 lib32disabled=yes
+patch_args=-Np0
 
 do_check() {
 	# Requires X11 server
diff --git a/srcpkgs/gnome-latex/template b/srcpkgs/gnome-latex/template
index 4739891c8ff2..f1c5f3c7c3c4 100644
--- a/srcpkgs/gnome-latex/template
+++ b/srcpkgs/gnome-latex/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Apps/GNOME-LaTeX"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=a82a9fc6f056929ea18d6dffd121e71b2c21768808c86ef1f34da0f86e220d77
+patch_args=-Np0
 
 # for 00-port-to-tepl-6.patch
 hostmakedepends+=" automake gettext-devel-tools libtool"
diff --git a/srcpkgs/gnome-photos/template b/srcpkgs/gnome-photos/template
index fee19723ed89..57280f653793 100644
--- a/srcpkgs/gnome-photos/template
+++ b/srcpkgs/gnome-photos/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Photos"
 distfiles="${GNOME_SITE}/gnome-photos/${version%.*}/gnome-photos-${version}.tar.xz"
 checksum=e02d73e138af8b2868b5cad7faa1bdd278aeade3b6c3c92836511a4e6f3af1af
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/gnome-screensaver/template b/srcpkgs/gnome-screensaver/template
index 1a23f6dcfb06..d0a3a8968ce8 100644
--- a/srcpkgs/gnome-screensaver/template
+++ b/srcpkgs/gnome-screensaver/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Projects/GnomeScreensaver"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=f39b78d4f7fed748c7f0a31d694112fb907c6d3c4e63db22eb858df07e962cd0
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/gnome-session/template b/srcpkgs/gnome-session/template
index e5bc350e66fd..ff7a0d03e67c 100644
--- a/srcpkgs/gnome-session/template
+++ b/srcpkgs/gnome-session/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://gitlab.gnome.org/GNOME/gnome-session"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*.*}/${pkgname}-${version}.tar.xz"
 checksum=9c787829ee32e13e1508b9aee2b1d9ba42a02c48e6c8094e34f3e7f92af4df82
+patch_args=-Np0
 
 post_install() {
 	rm -rf ${DESTDIR}/tmp
diff --git a/srcpkgs/gnome-settings-daemon/template b/srcpkgs/gnome-settings-daemon/template
index 081c88ebfd73..f6d6acf73f2d 100644
--- a/srcpkgs/gnome-settings-daemon/template
+++ b/srcpkgs/gnome-settings-daemon/template
@@ -20,6 +20,7 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.gnome.org/GNOME/gnome-settings-daemon"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*.*}/${pkgname}-${version}.tar.xz"
 checksum=37dfac1b69a53e2e499228420259d6e134c1c06b74530af88fa855bda1187b21
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" polkit"
diff --git a/srcpkgs/gnome-terminal/template b/srcpkgs/gnome-terminal/template
index 4a397445dd1a..89ddda4dfea8 100644
--- a/srcpkgs/gnome-terminal/template
+++ b/srcpkgs/gnome-terminal/template
@@ -15,6 +15,7 @@ homepage="https://wiki.gnome.org/Apps/Terminal"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=4c79af8ffe8bd3a5daca1911ea2c0acd6872860a1dd5d7eea219f4ab4ae556ac
 lib32disabled=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --disable-search-provider"
diff --git a/srcpkgs/gnu-efi-libs/template b/srcpkgs/gnu-efi-libs/template
index 0b8c679b5225..e85a677cbae1 100644
--- a/srcpkgs/gnu-efi-libs/template
+++ b/srcpkgs/gnu-efi-libs/template
@@ -12,6 +12,7 @@ homepage="https://sourceforge.net/projects/gnu-efi/"
 distfiles="${SOURCEFORGE_SITE}/gnu-efi/gnu-efi-${version}.tar.bz2"
 checksum=0196f2e1fd3c334b66e610a608a0e59233474c7a01bec7bc53989639aa327669
 nostrip=yes
+patch_args=-Np0
 
 # If we are cross-building we need to pass the cross-compilation triplet
 # to the CROSS_COMPILE environment variable so the build system uses
diff --git a/srcpkgs/gnucash/template b/srcpkgs/gnucash/template
index fa8bd17d09ad..084157bb4735 100644
--- a/srcpkgs/gnucash/template
+++ b/srcpkgs/gnucash/template
@@ -18,6 +18,7 @@ homepage="http://www.gnucash.org"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 #distfiles="https://sources.voidlinux.org/gnucash-${version}/gnucash-${version}.tar.bz2"
 checksum=bc1f48a8453488a2e9f6b83b68613aa55caebe4d2983460bdac7e084b46cffdc
+patch_args=-Np0
 
 pycompile_dirs="usr/share/gnucash/python"
 conf_files="/etc/gnucash/environment"
diff --git a/srcpkgs/gnupg2/template b/srcpkgs/gnupg2/template
index 36fba35e68bb..0d7118e83c3a 100644
--- a/srcpkgs/gnupg2/template
+++ b/srcpkgs/gnupg2/template
@@ -22,6 +22,7 @@ distfiles="https://gnupg.org/ftp/gcrypt/gnupg/gnupg-${version}.tar.bz2"
 checksum=6ff891fc7583a9c3fb9f097ee0d1de0a12469d4b53997e7ba5064950637dfaec
 build_options="ldap"
 build_options_default="ldap"
+patch_args=-Np0
 
 post_patch() {
 	# On at least aarch64, configure sets this even though it doesn't exist
diff --git a/srcpkgs/gnuradio-nrsc5/template b/srcpkgs/gnuradio-nrsc5/template
index 6299e7c90b02..0f7ad2134ac2 100644
--- a/srcpkgs/gnuradio-nrsc5/template
+++ b/srcpkgs/gnuradio-nrsc5/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/argilo/gr-nrsc5/"
 distfiles="https://github.com/argilo/gr-nrsc5/archive/v${version}.tar.gz"
 checksum=d736c4cb1104254d07296d2a61880e07149c9bfd1a49aed504215672d4e09485
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/gnustep-base/template b/srcpkgs/gnustep-base/template
index 483dd8011bee..aaf01eaaf64e 100644
--- a/srcpkgs/gnustep-base/template
+++ b/srcpkgs/gnustep-base/template
@@ -13,6 +13,7 @@ homepage="http://www.gnustep.org/"
 distfiles="http://ftp.gnustep.org/pub/gnustep/core/gnustep-base-${version}.tar.gz"
 checksum=c7d7c6e64ac5f5d0a4d5c4369170fc24ed503209e91935eb0e2979d1601039ed
 make_check=extended
+patch_args=-Np0
 
 nocross="objc doesn't get cross build at present within gcc"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/gnustep-make/template b/srcpkgs/gnustep-make/template
index e77d199252d0..4c6407db9f5b 100644
--- a/srcpkgs/gnustep-make/template
+++ b/srcpkgs/gnustep-make/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnustep.org"
 distfiles="http://ftp.gnustep.org/pub/gnustep/core/${pkgname}-${version}.tar.gz"
 checksum=a0b066c11257879c7c85311dea69c67f6dc741ef339db6514f85b64992c40d2a
+patch_args=-Np0
 
 post_install() {
 	sed -i 's,/builddir/.xbps-gnustep-make/wrappers,/usr/bin,g' ${DESTDIR}/usr/share/GNUstep/Makefiles/config.make
diff --git a/srcpkgs/gnutls/template b/srcpkgs/gnutls/template
index 3f02c29d3b27..fc1a507c8b14 100644
--- a/srcpkgs/gnutls/template
+++ b/srcpkgs/gnutls/template
@@ -22,6 +22,7 @@ license="GPL-3.0-only, LGPL-2.1-or-later"
 homepage="https://gnutls.org"
 distfiles="https://www.gnupg.org/ftp/gcrypt/gnutls/v${version%.*}/gnutls-${version}.tar.xz"
 checksum=1b79b381ac283d8b054368b335c408fedcb9b7144e0c07f531e3537d4328f3b3
+patch_args=-Np0
 
 pre_check() {
 	# same as $PASS in tests/cert-tests/certtool
diff --git a/srcpkgs/goaccess/template b/srcpkgs/goaccess/template
index ce6231cc0253..2dec69e429b9 100644
--- a/srcpkgs/goaccess/template
+++ b/srcpkgs/goaccess/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://goaccess.io"
 distfiles="http://tar.goaccess.io/goaccess-${version}.tar.gz"
 checksum=c4820e781f75d9446f6b1be5fc8d11c6ec94a47fa8dd523001698c589f46c1ba
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/godot/template b/srcpkgs/godot/template
index aa63677d6d8c..134880e902c0 100644
--- a/srcpkgs/godot/template
+++ b/srcpkgs/godot/template
@@ -29,6 +29,7 @@ homepage="https://www.godotengine.org/"
 distfiles="https://github.com/godotengine/${pkgname}/archive/${version}-stable.tar.gz"
 checksum=595ff16eaef3d0b6c030575f4b7fcae8b805e407b90a2f71af3e4142362c1794
 nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/6342/steps/shell_3/logs/stdio
+patch_args=-Np0
 
 CFLAGS+=" -fPIE -fPIC"
 LDFLAGS+=" -pie"
diff --git a/srcpkgs/gogglesmm/template b/srcpkgs/gogglesmm/template
index 29579786726d..0b4c48ad6b25 100644
--- a/srcpkgs/gogglesmm/template
+++ b/srcpkgs/gogglesmm/template
@@ -17,6 +17,7 @@ distfiles="https://github.com/gogglesmm/gogglesmm/archive/${version}.tar.gz"
 checksum=f068667e0a825ac792eda344cbe94c29fe8668ddbdd269c094e5bf168acd2380
 python_version=2 #unverified
 nocross="Tries to execute compiled code"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) broken="PTHREAD_RWLOCK_PREFER_WRITER_NP usage" ;;
diff --git a/srcpkgs/goldendict/template b/srcpkgs/goldendict/template
index 7553e408d1a7..c987fefdac41 100644
--- a/srcpkgs/goldendict/template
+++ b/srcpkgs/goldendict/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="http://goldendict.org/"
 distfiles="https://github.com/goldendict/goldendict/archive/${version/RC/-RC}.tar.gz"
 checksum=bccee0a3d3902f8fa31e439e220a405065fff774e5f8c581be2b0743d3f83fde
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated"
 
diff --git a/srcpkgs/gosu/template b/srcpkgs/gosu/template
index 1dffcc0a7665..9bc74859e375 100644
--- a/srcpkgs/gosu/template
+++ b/srcpkgs/gosu/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://www.libgosu.org"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=4dbc4998e2c630ee7758544de4286c70c68e639524b6088ccdc7b5487c928695
+patch_args=-Np0
 
 CXXFLAGS+=" -D_GLIBCXX_USE_C99_STDIO=1"
 
diff --git a/srcpkgs/goxel/template b/srcpkgs/goxel/template
index e731c606727d..ee3c31ace469 100644
--- a/srcpkgs/goxel/template
+++ b/srcpkgs/goxel/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://guillaumechereau.github.io/goxel/"
 distfiles="https://github.com/guillaumechereau/goxel/archive/v${version}.tar.gz"
 checksum=dfb91e62bdd5332e3938923db924bae43f12eaa181040d16e4cc7082316adf1c
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/gpart/template b/srcpkgs/gpart/template
index d222fbf9a784..3c7332430024 100644
--- a/srcpkgs/gpart/template
+++ b/srcpkgs/gpart/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/baruch/gpart"
 distfiles="https://github.com/baruch/gpart/archive/${version}.tar.gz"
 checksum=ec56d12ec9ffdb9877c12692ea6e51620b1ae44473d3d253b27fc31ed9ebb4dd
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gperftools/template b/srcpkgs/gperftools/template
index de7e9423d343..859e6a4e874e 100644
--- a/srcpkgs/gperftools/template
+++ b/srcpkgs/gperftools/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/gperftools/gperftools"
 distfiles="${homepage}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=240deacdd628b6459671b83eb0c4db8e97baadf659f25b92e9a078d536bd513e
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	# needed by some newly enabled code
diff --git a/srcpkgs/gpgme/template b/srcpkgs/gpgme/template
index 072da12708d4..62f7384c0bf9 100644
--- a/srcpkgs/gpgme/template
+++ b/srcpkgs/gpgme/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.gnupg.org/software/gpgme/index.html"
 distfiles="https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-${version}.tar.bz2"
 checksum=eebc3c1b27f1c8979896ff361ba9bb4778b508b2496c2fc10e3775a40b1de1ad
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" ac_cv_sys_file_offset_bits=no"
diff --git a/srcpkgs/gpick/template b/srcpkgs/gpick/template
index b30108334144..aad5569a3320 100644
--- a/srcpkgs/gpick/template
+++ b/srcpkgs/gpick/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/thezbyg/gpick"
 distfiles="https://github.com/thezbyg/gpick/archive/${pkgname}-${version}.tar.gz"
 checksum=7d02be171cc88c44ad3e3572c0922bbabedc9d542b989f324fca9d5db3161e9c
+patch_args=-Np0
 
 post_install() {
 	rm -rf ${DESTDIR}/usr/share/doc
diff --git a/srcpkgs/gpm/template b/srcpkgs/gpm/template
index 360f58668c53..534422693feb 100644
--- a/srcpkgs/gpm/template
+++ b/srcpkgs/gpm/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.nico.schottelius.org/software/gpm/"
 distfiles="http://www.nico.schottelius.org/software/gpm/archives/gpm-${version}.tar.lzma"
 checksum=a955053b36556ffa7c628ce18fd6de7d625966573fa412fb08869533d8f7385c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gpsbabel/template b/srcpkgs/gpsbabel/template
index 24c0a420e09d..12305e0fe6e3 100644
--- a/srcpkgs/gpsbabel/template
+++ b/srcpkgs/gpsbabel/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.gpsbabel.org/"
 distfiles="https://github.com/gpsbabel/${pkgname}/archive/${pkgname}_${version//./_}.tar.gz"
 checksum=30b186631fb43db576b8177385ed5c31a5a15c02a6bc07bae1e0d7af9058a797
+patch_args=-Np0
 
 replaces="gpsbabel-gui>=0"
 
diff --git a/srcpkgs/gpsd/template b/srcpkgs/gpsd/template
index 4198bf214936..6d76d3417361 100644
--- a/srcpkgs/gpsd/template
+++ b/srcpkgs/gpsd/template
@@ -18,6 +18,7 @@ distfiles="http://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-${version}
 checksum=3998a5cbb728e97f896f46c3c83301b1e6c5d859393e58c2fad8c5426774d571
 python_version=3	# Must be same version as scons
 system_accounts="gpsd"
+patch_args=-Np0
 
 subpackages="gpsd-devel gpsd-qt gpsd-qt-devel"
 if [ -z "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/grpc/template b/srcpkgs/grpc/template
index 60677cf4f68b..d0763bb7db4b 100644
--- a/srcpkgs/grpc/template
+++ b/srcpkgs/grpc/template
@@ -20,6 +20,7 @@ distfiles="${homepage}/archive/v${version}/${pkgname}-${version}.tar.gz
  https://github.com/abseil/abseil-cpp/archive/${_abseilver}/abseil-cpp-${_abseilver}.tar.gz"
 checksum="abd9e52c69000f2c051761cfa1f12d52d8b7647b6c66828a91d462e796f2aede
  35f22ef5cb286f09954b7cc4c85b5a3f6221c9d4df6b8c4a1e9d399555b366ee"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# need host grpc_cpp_plugin
diff --git a/srcpkgs/grub-customizer/template b/srcpkgs/grub-customizer/template
index 67f3cfb3e7ee..f0ead5f9e0ed 100644
--- a/srcpkgs/grub-customizer/template
+++ b/srcpkgs/grub-customizer/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://launchpad.net/grub-customizer/"
 distfiles="https://launchpad.net/${pkgname}/${version%.*}/${version}/+download/${pkgname}_${version}.tar.gz"
 checksum=532f793eea4c6ee6cde4bc987966fa1924946c1da5e3c7b4d4a97f2689661ee0
+patch_args=-Np0
 
 pre_configure() {
 	# Modify desktop file for Void Linux
diff --git a/srcpkgs/gscan2pdf/template b/srcpkgs/gscan2pdf/template
index 9c137da14b8b..28cb1dd90131 100644
--- a/srcpkgs/gscan2pdf/template
+++ b/srcpkgs/gscan2pdf/template
@@ -18,6 +18,7 @@ homepage="http://gscan2pdf.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=e5c10a9e695674308d29fe8661c5bb7230e25dfbc098716c26a3188ef1e54074
 nocross=yes
+patch_args=-Np0
 
 do_check() {
 	# Tests require a Display server
diff --git a/srcpkgs/gscope3/template b/srcpkgs/gscope3/template
index ff6db18c2d4a..2a2d58f2f6f1 100644
--- a/srcpkgs/gscope3/template
+++ b/srcpkgs/gscope3/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://github.com/tefletch/gscope"
 distfiles="https://github.com/tefletch/gscope/archive/${_release}.tar.gz"
 checksum=06d0fd4351b4f8dc1850c81b07c112b0974bfb140f9fe56f8af6f865be3e0a2a
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gsl/template b/srcpkgs/gsl/template
index 1d6677032a30..c11a13e203bf 100644
--- a/srcpkgs/gsl/template
+++ b/srcpkgs/gsl/template
@@ -9,6 +9,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/gsl/gsl.html"
 distfiles="${GNU_SITE}/gsl/${pkgname}-${version}.tar.gz"
 checksum=b782339fc7a38fe17689cb39966c4d821236c28018b6593ddb6fd59ee40786a8
+patch_args=-Np0
 
 gsl-devel_package() {
 	depends="gsl>=${version}_${revision}"
diff --git a/srcpkgs/gsoap/template b/srcpkgs/gsoap/template
index c0cf0340566b..132f058dfe9a 100644
--- a/srcpkgs/gsoap/template
+++ b/srcpkgs/gsoap/template
@@ -14,6 +14,7 @@ homepage="http://www.cs.fsu.edu/~engelen/soap.html"
 distfiles="${SOURCEFORGE_SITE}/gsoap2/gsoap_${version}.zip"
 checksum=2ca21b5ab2b40d899566c559f71a1d51ed7eac3f00160ab78060027a3ee6488f
 disable_parallel_build=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 7b97a3e3184b..0cf2cdc941f9 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -37,6 +37,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://gstreamer.freedesktop.org"
 distfiles="${homepage}/src/${pkgname/1/}/${pkgname/1/}-${version}.tar.xz"
 checksum=74e806bc5595b18c70e9ca93571e27e79dfb808e5d2e7967afa952b52e99c85f
+patch_args=-Np0
 
 build_options="gir gme"
 build_options_default="gir"
diff --git a/srcpkgs/gst-plugins-base1/template b/srcpkgs/gst-plugins-base1/template
index 050521f071c3..ca6cdbf62db9 100644
--- a/srcpkgs/gst-plugins-base1/template
+++ b/srcpkgs/gst-plugins-base1/template
@@ -23,6 +23,7 @@ license="GPL-2.0-or-later, LGPL-2.0-or-later"
 homepage="https://gstreamer.freedesktop.org"
 distfiles="${homepage}/src/${pkgname/1/}/${pkgname/1/}-${version}.tar.xz"
 checksum=29e53229a84d01d722f6f6db13087231cdf6113dd85c25746b9b58c3d68e8323
+patch_args=-Np0
 
 build_options="cdparanoia gir sndio"
 build_options_default="cdparanoia gir"
diff --git a/srcpkgs/gst123/template b/srcpkgs/gst123/template
index f3a2d41316b2..fa17cc86b1f3 100644
--- a/srcpkgs/gst123/template
+++ b/srcpkgs/gst123/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://space.twc.de/~stefan/gst123.php/"
 distfiles="http://space.twc.de/~stefan/gst123/gst123-$version.tar.bz2"
 checksum=c7b4729773f66cc679e94df76bcc6a95a2222192730f906e527e72624f084a7d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gstreamermm/template b/srcpkgs/gstreamermm/template
index 863e982f34ea..54bec6d8dc2d 100644
--- a/srcpkgs/gstreamermm/template
+++ b/srcpkgs/gstreamermm/template
@@ -12,6 +12,7 @@ homepage="https://gstreamer.freedesktop.org/bindings/cplusplus.html"
 license="GPL-2, GPL-2.1"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=be58fe9ef7d7e392568ec85e80a84f4730adbf91fb0355ff7d7c616675ea8d60
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/gthumb/template b/srcpkgs/gthumb/template
index ed6afee1b837..e383495da80a 100644
--- a/srcpkgs/gthumb/template
+++ b/srcpkgs/gthumb/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://live.gnome.org/gthumb"
 distfiles="${GNOME_SITE}/gthumb/${version%.*}/gthumb-${version}.tar.xz"
 checksum=fdeae42818378f9b3cab00604eeeb5b7c0a7a5ecfe69de08b993867746435c93
+patch_args=-Np0
 
 LDFLAGS="-fPIC"
 
diff --git a/srcpkgs/gtk-sharp/template b/srcpkgs/gtk-sharp/template
index f3125a457881..d20183b8daad 100644
--- a/srcpkgs/gtk-sharp/template
+++ b/srcpkgs/gtk-sharp/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 short_desc="Graphical User Interface Toolkit for mono and .Net (Gtk#)"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=6440f571416267ae0cb5698071d087b31e3084693fa2c829b1db37ca7ea2c3a2
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	_have_mdoc="no"
diff --git a/srcpkgs/gtk-sharp2/template b/srcpkgs/gtk-sharp2/template
index 3137a6310b25..07e49e956fe7 100644
--- a/srcpkgs/gtk-sharp2/template
+++ b/srcpkgs/gtk-sharp2/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-only"
 homepage="https://www.mono-project.com/docs/gui/gtksharp/"
 distfiles="https://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-${version}.tar.gz"
 checksum=02680578e4535441064aac21d33315daa009d742cab8098ac8b2749d86fffb6a
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	_have_mdoc="no"
diff --git a/srcpkgs/gtk-theme-config/template b/srcpkgs/gtk-theme-config/template
index 6dd97132c14c..66ce7d1851fb 100644
--- a/srcpkgs/gtk-theme-config/template
+++ b/srcpkgs/gtk-theme-config/template
@@ -13,6 +13,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/satya164/gtk-theme-config"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=174aac3ea43966168d120dbd9e0f23d7900d095ee1b0cf32472d59b0fdea8448
+patch_args=-Np0
 
 pre_build() {
 	local _p _cflags _ldflags
diff --git a/srcpkgs/gtkglext/template b/srcpkgs/gtkglext/template
index 737a97415982..640d422140c7 100644
--- a/srcpkgs/gtkglext/template
+++ b/srcpkgs/gtkglext/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://projects.gnome.org/gtkglext"
 distfiles="${SOURCEFORGE_SITE}/gtkglext/gtkglext/${version}/gtkglext-${version}.tar.gz"
 checksum=e5073f3c6b816e7fa67d359d9745a5bb5de94a628ac85f624c992925a46844f9
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/gtkpod/template b/srcpkgs/gtkpod/template
index bfcb41e62193..5cb367989c0b 100644
--- a/srcpkgs/gtkpod/template
+++ b/srcpkgs/gtkpod/template
@@ -16,6 +16,7 @@ distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=a57dc8ae9138e0cb4cee98691e7a95001130c9ea7823e6a75cc72503facd3a76
 # Line 55: print in python 2 style
 python_version=2
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/gtkspell/template b/srcpkgs/gtkspell/template
index bf480eaae320..3b95f95dfed3 100644
--- a/srcpkgs/gtkspell/template
+++ b/srcpkgs/gtkspell/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://gtkspell.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=8fc7dc560167b2cb7193e76aca625a152dc19b0ebf49816b78539cbb90d80d02
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' \
diff --git a/srcpkgs/gtypist/template b/srcpkgs/gtypist/template
index d4bf9dc41846..f9e1bd306359 100644
--- a/srcpkgs/gtypist/template
+++ b/srcpkgs/gtypist/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.gnu.org/software/gtypist/"
 distfiles="$GNU_SITE/gtypist/gtypist-${version}.tar.xz"
 checksum="c13af40b12479f8219ffa6c66020618c0ce305ad305590fde02d2c20eb9cf977"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf
diff --git a/srcpkgs/guake/template b/srcpkgs/guake/template
index 9fbc1895da95..c31b734bc58a 100644
--- a/srcpkgs/guake/template
+++ b/srcpkgs/guake/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://guake-project.org/"
 distfiles="${PYPI_SITE}/g/guake/guake-${version}.tar.gz"
 checksum=31fd7d6f62aa0a5e0121e240682e6a9e5ce61cdb266f9438987837f52d552e47
+patch_args=-Np0
 
 pre_build() {
 	GUAKE_SCHEMA_DIR="/usr/share/glib-2.0/schemas"
diff --git a/srcpkgs/guile/template b/srcpkgs/guile/template
index f9ce43c06709..60eaa34eb6eb 100644
--- a/srcpkgs/guile/template
+++ b/srcpkgs/guile/template
@@ -14,6 +14,7 @@ homepage="http://www.gnu.org/software/guile"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=44b4c5fbbe257ccdebea18420212c9b3e90c3c86a54920d8554039fc6769a007
 subpackages="libguile guile-devel"
+patch_args=-Np0
 
 if [ "$XBPS_ENDIAN" != "$XBPS_TARGET_ENDIAN" ]; then
 	broken="opposite-endian host generates broken files"
diff --git a/srcpkgs/guile1.8/template b/srcpkgs/guile1.8/template
index 2f575000cbfe..47192116554f 100644
--- a/srcpkgs/guile1.8/template
+++ b/srcpkgs/guile1.8/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="https://www.gnu.org/software/guile/guile.html"
 distfiles="${GNU_SITE}/${pkgname/1.8/}/${pkgname/1.8/}-${version}.tar.gz"
 checksum=c3471fed2e72e5b04ad133bbaaf16369e8360283679bcf19800bc1b381024050
+patch_args=-Np0
 
 post_install() {
 	# conflicts with guile-2.0
diff --git a/srcpkgs/guitarix2/template b/srcpkgs/guitarix2/template
index 2d066a454c33..8435021d0db0 100644
--- a/srcpkgs/guitarix2/template
+++ b/srcpkgs/guitarix2/template
@@ -19,6 +19,7 @@ license="GPL-3.0-or-later"
 homepage="http://guitarix.org"
 distfiles="${SOURCEFORGE_SITE}/guitarix/guitarix/guitarix2-${version}.tar.xz"
 checksum=797e46e07148fba89e46fac4efe73a5b3a98f070bca85db3d143de781b142c80
+patch_args=-Np0
 
 build_options="avahi bluez"
 desc_option_avahi="Build with avahi support"
diff --git a/srcpkgs/gummiboot/template b/srcpkgs/gummiboot/template
index 68e6f5be926c..966eae785ea9 100644
--- a/srcpkgs/gummiboot/template
+++ b/srcpkgs/gummiboot/template
@@ -15,6 +15,7 @@ license="LGPL-2.0-or-later"
 homepage="https://pkgs.alpinelinux.org/package/edge/main/x86/gummiboot"
 distfiles="https://dev.alpinelinux.org/archive/gummiboot/gummiboot-${version}.tar.gz"
 checksum=2b649a6eb22007cd34bb355ba4ca6c1a8058e115c13048985f09a0f11f3d5295
+patch_args=-Np0
 
 CFLAGS="-std=gnu89"
 
diff --git a/srcpkgs/gupnp-igd/template b/srcpkgs/gupnp-igd/template
index 314a36472b85..416943f715b6 100644
--- a/srcpkgs/gupnp-igd/template
+++ b/srcpkgs/gupnp-igd/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="http://gupnp.org"
 distfiles="${GNOME_SITE}/${pkgname}/0.2/${pkgname}-${version}.tar.xz"
 checksum=8b4a1aa38bacbcac2c1755153147ead7ee9af7d4d1f544b6577cfc35e10e3b20
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/guvcview/template b/srcpkgs/guvcview/template
index 447b27aecf50..be0eba3ceed4 100644
--- a/srcpkgs/guvcview/template
+++ b/srcpkgs/guvcview/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="http://guvcview.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-src-${version}.tar.gz"
 checksum=95381cef5ee139e15f90b79d1425cc22bbaae43f87452cdce6674636aff37e85
+patch_args=-Np0
 
 post_extract() {
 	sed '31a#include <locale.h>' -i  guvcview/guvcview.c
diff --git a/srcpkgs/gwenhywfar/template b/srcpkgs/gwenhywfar/template
index c6e01f4bea86..fb27f03a88fd 100644
--- a/srcpkgs/gwenhywfar/template
+++ b/srcpkgs/gwenhywfar/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/aqbanking/gwenhywfar"
 distfiles="https://github.com/aqbanking/gwenhywfar/archive/${version}.tar.gz"
 checksum=9f2876770824a283d02fd730bb1f7a98970fa6f20121f4af433d6698831c3a84
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/gxemul/template b/srcpkgs/gxemul/template
index dabacd79492b..ea1ffa47d802 100644
--- a/srcpkgs/gxemul/template
+++ b/srcpkgs/gxemul/template
@@ -11,6 +11,7 @@ changelog="http://gavare.se/gxemul/gxemul-stable/HISTORY.html"
 distfiles="http://gavare.se/gxemul/src/gxemul-${version}.tar.gz"
 checksum=a703ac7965feb3c701c7677d78c353f0efa1af4d36a9508fb045eb63dd571547
 nocross="./_testpri: cannot execute binary file: Exec format error"
+patch_args=-Np0
 
 do_configure() {
 	PREFIX=/usr MANDIR=${DESTDIR}/usr/share/man ./configure
diff --git a/srcpkgs/gzdoom/template b/srcpkgs/gzdoom/template
index ce1204db0d01..1ecb236fea60 100644
--- a/srcpkgs/gzdoom/template
+++ b/srcpkgs/gzdoom/template
@@ -22,6 +22,7 @@ checksum="21eb1a221dae532a6c29f243584be3d5454f8eb4da85a67e405115f89666611d
  e0b85ca089a3714968f56acc9525f352dbec14f15e88e0aef1cdece64c4f3cbf"
 skip_extraction="${pkgname}_${version}_amd64.deb"
 nocross=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" musl-fts-devel libexecinfo-devel"
diff --git a/srcpkgs/h2o/template b/srcpkgs/h2o/template
index 3b300024f05c..054560ce7e78 100644
--- a/srcpkgs/h2o/template
+++ b/srcpkgs/h2o/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://h2o.examp1e.net/"
 distfiles="https://github.com/h2o/h2o/archive/v${version}.tar.gz"
 checksum=f8cbc1b530d85ff098f6efc2c3fdbc5e29baffb30614caac59d5c710f7bda201
+patch_args=-Np0
 
 system_accounts="h2o"
 
diff --git a/srcpkgs/halibut/template b/srcpkgs/halibut/template
index e428d771ea86..9ffa4c05c386 100644
--- a/srcpkgs/halibut/template
+++ b/srcpkgs/halibut/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://www.chiark.greenend.org.uk/~sgtatham/halibut/"
 distfiles="http://www.chiark.greenend.org.uk/~sgtatham/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=1aedfb6240f27190c36a390fcac9ce732edbdbaa31c85ee675b994e2b083163f
+patch_args=-Np0
 
 CFLAGS='-I../charset -I../build -fcommon'
 
diff --git a/srcpkgs/hamlib/template b/srcpkgs/hamlib/template
index 086b6c614c1f..bd96ed226bbc 100644
--- a/srcpkgs/hamlib/template
+++ b/srcpkgs/hamlib/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later, GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/hamlib/"
 distfiles="${SOURCEFORGE_SITE}/hamlib/${version}/${pkgname}-${version}.tar.gz"
 checksum=e200b22f307e9a0c826187c2b08fe81c7d0283cf07056e6db3463d1481580fd5
+patch_args=-Np0
 
 pre_configure() {
 	CFLAGS+=" -DNO_POSIX_2008_LOCALE -D_GNU_SOURCE"
diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template
index 6992bc520ed3..e1bf58b62889 100644
--- a/srcpkgs/handbrake/template
+++ b/srcpkgs/handbrake/template
@@ -24,6 +24,7 @@ homepage="https://handbrake.fr/"
 distfiles="https://github.com/HandBrake/HandBrake/releases/download/${version}/HandBrake-${version}-source.tar.bz2"
 checksum=218a37d95f48b5e7cf285363d3ab16c314d97627a7a710cab3758902ae877f85
 nocross=yes
+patch_args=-Np0
 
 build_options="fdk_aac nvenc"
 
diff --git a/srcpkgs/hardinfo/template b/srcpkgs/hardinfo/template
index 6c2745d675c3..a8c28a32a11e 100644
--- a/srcpkgs/hardinfo/template
+++ b/srcpkgs/hardinfo/template
@@ -13,6 +13,7 @@ homepage="http://sourceforge.net/projects/hardinfo.berlios/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}.berlios/${pkgname}-${version}.tar.bz2"
 checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a
 lib32disabled=yes
+patch_args=-Np0
 
 post_patch() {
 	local _arch
diff --git a/srcpkgs/heaptrack/template b/srcpkgs/heaptrack/template
index f4f4c35044f7..347ce6b4be41 100644
--- a/srcpkgs/heaptrack/template
+++ b/srcpkgs/heaptrack/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/KDE/heaptrack"
 distfiles="https://github.com/KDE/heaptrack/archive/v${version}.tar.gz"
 checksum=f299a4846b80e607a412f439e17cddae13f0529701ffdb05eaa7ba878865717e
+patch_args=-Np0
 
 heaptrack-gui_package() {
 	short_desc+=" - GUI"
diff --git a/srcpkgs/hedgewars/template b/srcpkgs/hedgewars/template
index 7060dbc37d95..0dc528ff7ce0 100644
--- a/srcpkgs/hedgewars/template
+++ b/srcpkgs/hedgewars/template
@@ -21,6 +21,7 @@ nopie_files="/usr/bin/hwengine"
 nocross="Needs investigation: fails to link hwengine"
 replaces="hedgewars-data>=0"
 export CMAKE_GENERATOR="Unix Makefiles"
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	x86_64*|ppc64le|ppc64)
diff --git a/srcpkgs/hexchat/template b/srcpkgs/hexchat/template
index 90b8de48193a..580dbd4a5eb5 100644
--- a/srcpkgs/hexchat/template
+++ b/srcpkgs/hexchat/template
@@ -20,6 +20,7 @@ distfiles="https://dl.hexchat.net/hexchat/${pkgname}-${version}.tar.xz"
 checksum=901a9d13db5a4da69b827f6093306bbd16863dc49016f7668bd3e4506512e882
 build_options="LuaJIT"
 lib32disabled=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	arm*-musl) : "LuaJIT is broken for musl cross arches" ;;
diff --git a/srcpkgs/hexer/template b/srcpkgs/hexer/template
index 2c2b7486a8d8..89b88a46a13e 100644
--- a/srcpkgs/hexer/template
+++ b/srcpkgs/hexer/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://devel.ringlet.net/editors/hexer/"
 distfiles="https://devel.ringlet.net/files/editors/hexer/hexer-${version}.tar.xz"
 checksum=e6b84ace5283825943f88ce7ec4ae836ec15ba41978b3a858d6d478cfe09ff94
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYRIGHT
diff --git a/srcpkgs/heyu/template b/srcpkgs/heyu/template
index 93b3ad7cc582..0bd88177c04d 100644
--- a/srcpkgs/heyu/template
+++ b/srcpkgs/heyu/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.heyu.org"
 distfiles="https://github.com/HeyuX10Automation/heyu/archive/v${version}.tar.gz"
 checksum=621a20f45eef62070b3f95ad17ecbc3e7e1f7352d25dac86093ff6938b606baa
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/hfsprogs/template b/srcpkgs/hfsprogs/template
index f1e0c690511d..12b6d3a31265 100644
--- a/srcpkgs/hfsprogs/template
+++ b/srcpkgs/hfsprogs/template
@@ -14,6 +14,7 @@ license="APSL-2.0"
 homepage="https://www.opensource.apple.com/"
 distfiles="https://src.fedoraproject.org/repo/pkgs/hfsplus-tools/diskdev_cmds-${version}.tar.gz/${_md5sum}/diskdev_cmds-${version}.tar.gz"
 checksum=b01b203a97f9a3bf36a027c13ddfc59292730552e62722d690d33bd5c24f5497
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/higan/template b/srcpkgs/higan/template
index 500c11f64aa4..c744321efe45 100644
--- a/srcpkgs/higan/template
+++ b/srcpkgs/higan/template
@@ -17,6 +17,7 @@ license="GPL-3.0-or-later, ISC"
 homepage="https://byuu.org/emulation/higan/"
 distfiles="https://byuu.org/download/higan/higan_v${version}-source.zip"
 checksum=1b70d85454aaae557fd5ba5aaed9add8cb8c939f2b7a07a6d3734f971bb07ab7
+patch_args=-Np0
 
 build_options="icarus"
 build_options_default="icarus"
diff --git a/srcpkgs/hiredis/template b/srcpkgs/hiredis/template
index 05e5d6cf565f..c4cca466c023 100644
--- a/srcpkgs/hiredis/template
+++ b/srcpkgs/hiredis/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/redis/hiredis"
 distfiles="https://github.com/redis/hiredis/archive/v${version}.tar.gz"
 checksum=2a0b5fe5119ec973a0c1966bfc4bd7ed39dbce1cb6d749064af9121fe971936f
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/hitch/template b/srcpkgs/hitch/template
index 805170a687f6..bf3889702cef 100644
--- a/srcpkgs/hitch/template
+++ b/srcpkgs/hitch/template
@@ -14,6 +14,7 @@ homepage="https://hitch-tls.org/"
 distfiles="https://hitch-tls.org/source/hitch-${version}.tar.gz"
 checksum=c97ef8f1e115156640c40dfdfe9662d5f6d57a796fccad3bbad198ec797ce5c4
 system_accounts="_hitch"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e "s/grep -Pq/grep -q/" -e 's/\\t/\t/' \
diff --git a/srcpkgs/hlint/template b/srcpkgs/hlint/template
index 16fbb03ce2b9..7a68e466759f 100644
--- a/srcpkgs/hlint/template
+++ b/srcpkgs/hlint/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/ndmitchell/${pkgname}/archive/v${version}.tar.gz"
 checksum=207539d3627efd3caed9e6fd3b1aeb8f1eb64553f1f9f166090adbf2fb71e172
 nocross=yes # Can't yet cross compile Haskell
 nopie_files="/usr/bin/hlint"
+patch_args=-Np0
 
 post_install() {
 	rm -f ${DESTDIR}/usr/bin/engine
diff --git a/srcpkgs/hosts-update/template b/srcpkgs/hosts-update/template
index 5d872b4f4e89..eaf1d2f63a30 100644
--- a/srcpkgs/hosts-update/template
+++ b/srcpkgs/hosts-update/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://github.com/graysky2/hosts-update"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum="9a0fdb028beaf9fa4c2ec5f1a0030fcfe1a996ea42b874b944ec07885ca0f2ba"
+patch_args=-Np0
 
 post_install() {
 	vlicense MIT
diff --git a/srcpkgs/hplip/template b/srcpkgs/hplip/template
index 397508c55a3f..3dc5da2ca413 100644
--- a/srcpkgs/hplip/template
+++ b/srcpkgs/hplip/template
@@ -33,6 +33,7 @@ homepage="https://developers.hp.com/hp-linux-imaging-and-printing"
 distfiles="${SOURCEFORGE_SITE}/hplip/hplip/${version}/hplip-${version}.tar.gz"
 checksum=36251189aa9cc349f6a3eacbb7ac3c4fd26fc9f087c9f75cee051010c85d2ddf
 conflicts="hplip-gui"
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libusb-1.0 -I${XBPS_CROSS_BASE}/${py3_inc}"
 
diff --git a/srcpkgs/hstr/template b/srcpkgs/hstr/template
index ee259a9eac03..443d455e8610 100644
--- a/srcpkgs/hstr/template
+++ b/srcpkgs/hstr/template
@@ -12,6 +12,7 @@ homepage="https://github.com/dvorka/hstr"
 changelog="https://raw.githubusercontent.com/dvorka/hstr/master/Changelog"
 distfiles="https://github.com/dvorka/hstr/archive/${version}.tar.gz"
 checksum=c7e7408671757b3f4be9c5a59b4e2d56e7a7b601ace2a94eb6b2b61f20ee890b
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i 's|ncursesw/curses.h|curses.h|g' src/include/hstr.h
diff --git a/srcpkgs/ht/template b/srcpkgs/ht/template
index 2506a2c97206..7535d6cca893 100644
--- a/srcpkgs/ht/template
+++ b/srcpkgs/ht/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://hte.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/hte/ht-source/${pkgname}-${version}.tar.bz2"
 checksum=31f5e8e2ca7f85d40bb18ef518bf1a105a6f602918a0755bc649f3f407b75d70
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/http-parser/template b/srcpkgs/http-parser/template
index a372064d4a79..67cf7f77d6c2 100644
--- a/srcpkgs/http-parser/template
+++ b/srcpkgs/http-parser/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/nodejs/http-parser"
 distfiles="${homepage}/archive/${_githash}.tar.gz"
 checksum=765a21444322ea2476ca1e3cfeb74d280eeb37f4713cf52d2bf398dabf6e4128
+patch_args=-Np0
 
 pre_install() {
 	vmkdir usr/lib/pkgconfig
diff --git a/srcpkgs/httpdirfs/template b/srcpkgs/httpdirfs/template
index 0028d235c5db..6b99f599778f 100644
--- a/srcpkgs/httpdirfs/template
+++ b/srcpkgs/httpdirfs/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/fangfufu/httpdirfs"
 distfiles="https://github.com/fangfufu/httpdirfs/archive/${version}.tar.gz"
 checksum=05be4d83434eaea002f550b77aed6c05ff135927662d53a6e2b224e766a50a9a
+patch_args=-Np0
 
 CFLAGS="-D_FILE_OFFSET_BITS=64"
 
diff --git a/srcpkgs/hugin/template b/srcpkgs/hugin/template
index 451e75fe6825..e3b975ff5298 100644
--- a/srcpkgs/hugin/template
+++ b/srcpkgs/hugin/template
@@ -19,6 +19,7 @@ homepage="http://hugin.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${pkgname}-${version%.*}/${pkgname}-${version}.tar.bz2"
 checksum=283e7601259a7914cb075333424410928a439dc5f84216f33e2fe55501fbcacb
 python_version=3
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" python3"
diff --git a/srcpkgs/hunspell/template b/srcpkgs/hunspell/template
index 929f4b1893e7..04144a0ade22 100644
--- a/srcpkgs/hunspell/template
+++ b/srcpkgs/hunspell/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1"
 homepage="https://hunspell.github.io/"
 distfiles="https://github.com/hunspell/hunspell/archive/v${version}.tar.gz"
 checksum=bb27b86eb910a8285407cf3ca33b62643a02798cf2eef468c0a74f6c3ee6bc8a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/i3status/template b/srcpkgs/i3status/template
index 5ef9f206834f..5edaa41782d5 100644
--- a/srcpkgs/i3status/template
+++ b/srcpkgs/i3status/template
@@ -16,6 +16,7 @@ homepage="https://www.i3wm.org/i3status/"
 distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
 checksum=ce89c9ff8565f62e88299f1a611229afdfc356b4e97368a5f8c4f06ad2fa1466
 conf_files="/etc/i3status.conf"
+patch_args=-Np0
 
 build_options="pulseaudio"
 build_options_default="pulseaudio"
diff --git a/srcpkgs/ibus-anthy/template b/srcpkgs/ibus-anthy/template
index 9b96fa820633..8e3bb449acd4 100644
--- a/srcpkgs/ibus-anthy/template
+++ b/srcpkgs/ibus-anthy/template
@@ -15,6 +15,7 @@ homepage="https://github.com/ibus/ibus/wiki"
 distfiles="https://github.com/ibus/${pkgname}/archive/${version}.tar.gz"
 checksum=57d42a302be72409708274aa680c6d7515077766853a2b9193b9974c9c6eeaf6
 make_check=extended
+patch_args=-Np0
 
 post_patch() {
 	2to3 -w gir/test.py
diff --git a/srcpkgs/ibus-avro/template b/srcpkgs/ibus-avro/template
index 22b51f29ee94..5067e69d7619 100644
--- a/srcpkgs/ibus-avro/template
+++ b/srcpkgs/ibus-avro/template
@@ -13,6 +13,7 @@ license="MPL-1.1"
 homepage="https://linux.omicronlab.com"
 distfiles="https://github.com/sarim/${pkgname}/archive/${version}.tar.gz"
 checksum=9d00f12f2d01916e56533fd0267173b644a57161770b60a0f4d9daa61fe8bd1a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -vfi
diff --git a/srcpkgs/id3lib/template b/srcpkgs/id3lib/template
index 44cb7f55f1dd..7452bae122e9 100644
--- a/srcpkgs/id3lib/template
+++ b/srcpkgs/id3lib/template
@@ -11,6 +11,7 @@ license="LGPL-2.0-or-later"
 homepage="http://id3lib.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=2749cc3c0cd7280b299518b1ddf5a5bcfe2d1100614519b68702230e26c7d079
+patch_args=-Np0
 
 pre_configure() {
 	libtoolize -fc
diff --git a/srcpkgs/ifupdown/template b/srcpkgs/ifupdown/template
index 584d52eea19b..fd60247ccc7f 100644
--- a/srcpkgs/ifupdown/template
+++ b/srcpkgs/ifupdown/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://tracker.debian.org/pkg/ifupdown"
 distfiles="http://http.debian.net/debian/pool/main/i/ifupdown/ifupdown_${version}.tar.xz"
 checksum=d754426562a63b7d0cf06e8b00abe353fe9fd7ac5aabe3745f6d4e294ca233a8
+patch_args=-Np0
 
 make_dirs="/etc/network/interfaces.d 0755 root root
  /etc/network/if-pre-up.d 0755 root root
diff --git a/srcpkgs/igt-gpu-tools/template b/srcpkgs/igt-gpu-tools/template
index 3b222ecd18d8..0bcf2cfe2c7f 100644
--- a/srcpkgs/igt-gpu-tools/template
+++ b/srcpkgs/igt-gpu-tools/template
@@ -17,6 +17,7 @@ distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.xz"
 checksum=40454d8f0484ea2477862007398a08eef78a6c252c4defce1c934548593fdd11
 # tests don't behave in containers
 make_check=ci-skip
+patch_args=-Np0
 
 lib32disabled=yes
 archs="i686* x86_64*"
diff --git a/srcpkgs/ilmbase/template b/srcpkgs/ilmbase/template
index 1dd24b5335f5..ca4c57337f15 100644
--- a/srcpkgs/ilmbase/template
+++ b/srcpkgs/ilmbase/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://www.openexr.com/"
 distfiles="https://github.com/openexr/openexr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=8e5bfd89f4ae1221f84216a163003edddf0d37b8aac4ee42b46edb55544599b9
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/imagescan/template b/srcpkgs/imagescan/template
index 0a0cb5e2b3f8..2deac5f8b877 100644
--- a/srcpkgs/imagescan/template
+++ b/srcpkgs/imagescan/template
@@ -18,6 +18,7 @@ homepage="https://gitlab.com/utsushi/imagescan/"
 distfiles="http://support.epson.net/linux/src/scanner/imagescanv3/debian/${pkgname}_${version}.orig.tar.gz"
 checksum=9440b103b8218863ab08e891d2a9dc9ef52db51485e11017d52fb2036e279477
 mutable_files="/etc/sane.d/dll.d/utsushi"
+patch_args=-Np0
 
 CFLAGS="-Wno-error"
 CXXFLAGS="-Wno-error"
diff --git a/srcpkgs/imgbrd-grabber/template b/srcpkgs/imgbrd-grabber/template
index d1e0ef6a5177..50232eb2998f 100644
--- a/srcpkgs/imgbrd-grabber/template
+++ b/srcpkgs/imgbrd-grabber/template
@@ -14,6 +14,7 @@ homepage="https://bionus.github.io/imgbrd-grabber"
 changelog="https://github.com/Bionus/imgbrd-grabber/releases"
 distfiles="https://github.com/Bionus/imgbrd-grabber/archive/v${version}.tar.gz"
 checksum=4ecb247f92fb4ba7c3245439bcd221e8c64dd037c1761065a663adb6b4571740
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake"
diff --git a/srcpkgs/imwheel/template b/srcpkgs/imwheel/template
index 85496586c7d9..5da49f1e4ff5 100644
--- a/srcpkgs/imwheel/template
+++ b/srcpkgs/imwheel/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="http://imwheel.sourceforge.net/"
 distfiles="https://sourceforge.net/projects/${pkgname}/files/${pkgname}-source/${version}pre12/${pkgname}-${version}pre12.tar.gz"
 checksum=2320ed019c95ca4d922968e1e1cbf0c075a914e865e3965d2bd694ca3d57cfe3
+patch_args=-Np0
 
 pre_configure() {
 	mv configure.{in,ac}
diff --git a/srcpkgs/indent/template b/srcpkgs/indent/template
index 3616080326f3..522b94c0e68d 100644
--- a/srcpkgs/indent/template
+++ b/srcpkgs/indent/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/s/indent/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=e77d68c0211515459b8812118d606812e300097cfac0b4e9fb3472664263bb8b
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's#^docdir = .*$#docdir = @docdir@#' doc/Makefile.in
diff --git a/srcpkgs/injeqt/template b/srcpkgs/injeqt/template
index 3efad365a492..3159202729e0 100644
--- a/srcpkgs/injeqt/template
+++ b/srcpkgs/injeqt/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/vogel/injeqt/"
 distfiles="https://github.com/vogel/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=77540cedb0b26affe993dd18124d796059e34c80a51d9ae6433fdff1860db135
+patch_args=-Np0
 
 CXXFLAGS="-fno-lifetime-dse -Wno-error=cast-align"
 
diff --git a/srcpkgs/input-utils/template b/srcpkgs/input-utils/template
index 35b48c548e26..319161f0e5db 100644
--- a/srcpkgs/input-utils/template
+++ b/srcpkgs/input-utils/template
@@ -10,6 +10,7 @@ license="GPL-2"
 distfiles="https://www.kraxel.org/releases/input/input-${version}.tar.gz"
 checksum=9142c34d508f2da4cd53d6348fee77e30b69c35c8dabfadfc5a6db09c4bd8087
 wrksrc="input-${version}"
+patch_args=-Np0
 
 do_install() {
 	vman lsinput.man lsinput.8
diff --git a/srcpkgs/inspectrum/template b/srcpkgs/inspectrum/template
index 83ba7b100956..232164d753f2 100644
--- a/srcpkgs/inspectrum/template
+++ b/srcpkgs/inspectrum/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/miek/inspectrum"
 distfiles="https://github.com/miek/inspectrum/archive/v${version}.tar.gz"
 checksum=7be5be96f50b0cea5b3dd647f06cc00adfa805a395484aa2ab84cf3e49b7227b
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-qmake qt5-host-tools"
diff --git a/srcpkgs/invada-studio-plugins-lv2/template b/srcpkgs/invada-studio-plugins-lv2/template
index 6bd6ddf74a5b..ee7f7a8ffe23 100644
--- a/srcpkgs/invada-studio-plugins-lv2/template
+++ b/srcpkgs/invada-studio-plugins-lv2/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://launchpad.net/invada-studio/"
 distfiles="https://launchpad.net/invada-studio/lv2/1.2/+download/${pkgname}_${version}-nopkg.tgz"
 checksum=c6cac7c32effc6b3052e3b017133244f385ef8e053147859d88eae6facaf7d12
+patch_args=-Np0
 
 post_patch() {
 	find . -name Makefile -exec \
diff --git a/srcpkgs/io.elementary.calendar/template b/srcpkgs/io.elementary.calendar/template
index 7ff446f97d15..936700ba2cd8 100644
--- a/srcpkgs/io.elementary.calendar/template
+++ b/srcpkgs/io.elementary.calendar/template
@@ -17,6 +17,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/elementary/calendar"
 distfiles="${homepage}/archive/${_git_commit}.tar.gz"
 checksum=3be3851baeed67144e5cbed209b2c1b982fe9830db13372e3051423295dee345
+patch_args=-Np0
 
 libio.elementary.calendar_package() {
 	short_desc+=" - library"
diff --git a/srcpkgs/io.elementary.code/template b/srcpkgs/io.elementary.code/template
index 8d43ad4130d2..c29de4c8c0ba 100644
--- a/srcpkgs/io.elementary.code/template
+++ b/srcpkgs/io.elementary.code/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/elementary/code"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=d84b38193b72cd93995aae604358c83c5b6976d8472ce985027b947cfed990bf
+patch_args=-Np0
 
 libio.elementary.code_package() {
 	short_desc+=" - library"
diff --git a/srcpkgs/io.elementary.music/template b/srcpkgs/io.elementary.music/template
index de6ae0f94d90..a4e05603f35b 100644
--- a/srcpkgs/io.elementary.music/template
+++ b/srcpkgs/io.elementary.music/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/elementary/music"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=ed7cba3b07189273890b321b21cda198f18b102e4466eb7207c0b5f27b31dfc9
+patch_args=-Np0
 
 libio.elementary.music_package() {
 	short_desc+=" - library"
diff --git a/srcpkgs/iotop/template b/srcpkgs/iotop/template
index 84a9f7886162..8af2af900ba0 100644
--- a/srcpkgs/iotop/template
+++ b/srcpkgs/iotop/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://guichaz.free.fr/iotop"
 distfiles="http://guichaz.free.fr/iotop/files/iotop-${version}.tar.bz2"
 checksum=3adea2a24eda49bbbaeb4e6ed2042355b441dbd7161e883067a02bfc8dcef75b
+patch_args=-Np0
 
 post_install() {
 	chmod 644 ${DESTDIR}/usr/share/man/man8/iotop.8
diff --git a/srcpkgs/iouyap/template b/srcpkgs/iouyap/template
index 09cd966c6e12..a7ddbbccf8c0 100644
--- a/srcpkgs/iouyap/template
+++ b/srcpkgs/iouyap/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="https://github.com/GNS3/iouyap"
 distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
 checksum=181850a4ce73a4d4035f9eb39b2656ae31d360f18b577ee65f5149132da3eccf
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/ipmitool/template b/srcpkgs/ipmitool/template
index eab8e525c878..7d48962c2230 100644
--- a/srcpkgs/ipmitool/template
+++ b/srcpkgs/ipmitool/template
@@ -10,6 +10,7 @@ license="BSD"
 homepage="http://ipmitool.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=0c1ba3b1555edefb7c32ae8cd6a3e04322056bc087918f07189eeedfc8b81e01
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/ipp-usb/template b/srcpkgs/ipp-usb/template
index 98b472d15998..79f18ba1d540 100644
--- a/srcpkgs/ipp-usb/template
+++ b/srcpkgs/ipp-usb/template
@@ -14,6 +14,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/OpenPrinting/ipp-usb"
 distfiles="https://github.com/OpenPrinting/ipp-usb/archive/$version.tar.gz"
 checksum=06855b4da0bcaad430a42534c117a3f3224c4f6b0f6321da898e3422ae97ae15
+patch_args=-Np0
 
 post_install() {
 	vsv ipp-usb
diff --git a/srcpkgs/ippusbxd/template b/srcpkgs/ippusbxd/template
index e81064e8b91d..0cf0278b951a 100644
--- a/srcpkgs/ippusbxd/template
+++ b/srcpkgs/ippusbxd/template
@@ -14,6 +14,7 @@ homepage="https://github.com/OpenPrinting/ippusbxd"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=996a572c8f6d1426a58ad3b95c21fea7f5b64d5db34a825c543d7869b3c77891
 conf_files="/etc/apparmor.d/usr.sbin.ippusbxd"
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/iptables/template b/srcpkgs/iptables/template
index 0d0ed43206db..3b0269d22f1e 100644
--- a/srcpkgs/iptables/template
+++ b/srcpkgs/iptables/template
@@ -20,6 +20,7 @@ alternatives="
  iptables:iptables:/usr/bin/xtables-legacy-multi
  iptables:iptables-restore:/usr/bin/xtables-legacy-multi
  iptables:iptables-save:/usr/bin/xtables-legacy-multi"
+patch_args=-Np0
 
 pre_build() {
 	rm include/linux/types.h
diff --git a/srcpkgs/iscan/template b/srcpkgs/iscan/template
index 18c0d969766c..c39d09a19fa1 100644
--- a/srcpkgs/iscan/template
+++ b/srcpkgs/iscan/template
@@ -17,6 +17,7 @@ distfiles="http://support.epson.net/linux/src/scanner/iscan/${pkgname}_${version
 checksum=597b9913de42d7a27f95bc82e533cbe778121ba13e3a03bc037f8d09a43447d5
 repository=nonfree
 LDFLAGS="-ldl -lpng16"
+patch_args=-Np0
 
 post_configure() {
 	# fix wrongly created link
diff --git a/srcpkgs/iucode-tool/template b/srcpkgs/iucode-tool/template
index d28c10461053..99a6f0f6b952 100644
--- a/srcpkgs/iucode-tool/template
+++ b/srcpkgs/iucode-tool/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://gitlab.com/iucode-tool/iucode-tool/wikis/home"
 distfiles="https://gitlab.com/iucode-tool/releases/raw/latest/iucode-tool_${version}.tar.xz"
 checksum=12b88efa4d0d95af08db05a50b3dcb217c0eb2bfc67b483779e33d498ddb2f95
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends="argp-standalone" ;;
diff --git a/srcpkgs/iverilog/template b/srcpkgs/iverilog/template
index b0f12c03fa84..1159f49d35d0 100644
--- a/srcpkgs/iverilog/template
+++ b/srcpkgs/iverilog/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://iverilog.icarus.com/"
 distfiles="https://github.com/steveicarus/iverilog/archive/v${version/./_}.tar.gz"
 checksum=6327fb900e66b46803d928b7ca439409a0dc32731d82143b20387be0833f1c95
+patch_args=-Np0
 
 nocross="draw_tt.exe: cannot execute binary file: Exec format error"
 
diff --git a/srcpkgs/iwd/template b/srcpkgs/iwd/template
index 3a1c0fc23121..c6b0f6fc503e 100644
--- a/srcpkgs/iwd/template
+++ b/srcpkgs/iwd/template
@@ -21,6 +21,7 @@ make_dirs="/var/lib/iwd 0600 root root
  /etc/iwd 755 root root"
 # tests depend on kernel features
 make_check=extended
+patch_args=-Np0
 
 do_check() {
 	dbus-run-session make check
diff --git a/srcpkgs/j/template b/srcpkgs/j/template
index c9b0c669497c..c1681088ec1a 100644
--- a/srcpkgs/j/template
+++ b/srcpkgs/j/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://jsoftware.com/"
 distfiles="https://github.com/jsoftware/jsource/archive/j${_vrel}.tar.gz"
 checksum=6b1cdcc1a0c3d955e400cf676f115de51ef9d1da495d08721ee999f48f6f9209
+patch_args=-Np0
 
 _jsz="j${XBPS_TARGET_WORDSIZE}"
 _jtype="release"
diff --git a/srcpkgs/jack/template b/srcpkgs/jack/template
index 092d7292d343..5ab29e6a32b8 100644
--- a/srcpkgs/jack/template
+++ b/srcpkgs/jack/template
@@ -17,6 +17,7 @@ homepage="https://jackaudio.org/"
 distfiles="https://github.com/jackaudio/jack2/archive/v${version}.tar.gz"
 checksum=5a1d64118034d58529d68a9af42710f9d4843536257c496118065ea3d3e4ae2c
 python_version=3
+patch_args=-Np0
 
 # Package build options
 build_options="ffado zalsa"
diff --git a/srcpkgs/janet/template b/srcpkgs/janet/template
index d3c71796a070..5805a21c0115 100644
--- a/srcpkgs/janet/template
+++ b/srcpkgs/janet/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://janet-lang.org/"
 distfiles="https://github.com/janet-lang/janet/archive/v${version}.tar.gz"
 checksum=ed9350ad7f0270e67f18a78dae4910b9534f19cd3f20f7183b757171e8cc79a5
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/jbig2dec/template b/srcpkgs/jbig2dec/template
index d0c23438982d..3ccef4e8ea2d 100644
--- a/srcpkgs/jbig2dec/template
+++ b/srcpkgs/jbig2dec/template
@@ -13,6 +13,7 @@ license="AGPL-3.0-or-later"
 homepage="https://www.jbig2dec.com"
 distfiles="https://github.com/ArtifexSoftware/jbig2dec/archive/${version}.tar.gz"
 checksum=e81b787ad0b147a437a52d9ce7de1a8f429655e8aa030383b6b2dd8919373717
+patch_args=-Np0
 
 pre_configure() {
 	sed -i '$ d' autogen.sh
diff --git a/srcpkgs/jedit/template b/srcpkgs/jedit/template
index cf7ac8cdd201..9c5c764194bb 100644
--- a/srcpkgs/jedit/template
+++ b/srcpkgs/jedit/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://jedit.org"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${version}/${pkgname}${version}source.tar.bz2"
 checksum=76c16ae0168d9b64ecddd8bf08aa49ab352adb2c9687191bc71895a96a8dfe1d
+patch_args=-Np0
 
 post_patch() {
 	# skip junit stuff, fails in chroot
diff --git a/srcpkgs/jfsutils/template b/srcpkgs/jfsutils/template
index 22f153adb299..98d7a0c90fda 100644
--- a/srcpkgs/jfsutils/template
+++ b/srcpkgs/jfsutils/template
@@ -10,5 +10,6 @@ license="GPL-2.0-or-later"
 homepage="http://jfs.sourceforge.net"
 distfiles="http://jfs.sourceforge.net/project/pub/${pkgname}-${version}.tar.gz"
 checksum=244a15f64015ce3ea17e49bdf6e1a0fb4f9af92b82fa9e05aa64cb30b5f07a4d
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/jsonnet/template b/srcpkgs/jsonnet/template
index b09df3187a0e..1f0d020e16ed 100644
--- a/srcpkgs/jsonnet/template
+++ b/srcpkgs/jsonnet/template
@@ -9,6 +9,7 @@ license="Apache-2.0"
 homepage="https://github.com/google/jsonnet"
 distfiles="https://github.com/google/jsonnet/archive/v${version}.tar.gz"
 checksum=076b52edf888c01097010ad4299e3b2e7a72b60a41abbc65af364af1ed3c8dbe
+patch_args=-Np0
 
 CXXFLAGS="-fPIC -Iinclude -Ithird_party/json -Ithird_party/md5"
 
diff --git a/srcpkgs/jwm/template b/srcpkgs/jwm/template
index 96efe18d60cc..08c2501eecfe 100644
--- a/srcpkgs/jwm/template
+++ b/srcpkgs/jwm/template
@@ -15,6 +15,7 @@ conf_files="/etc/system.jwmrc"
 homepage="http://joewing.net/projects/jwm"
 distfiles="http://joewing.net/projects/jwm/releases/jwm-$version.tar.xz"
 checksum=745d2f5df3a4ce9ecc8e75445edb3fbe31dd46c0c26d129cc14de7ad8b665326
+patch_args=-Np0
 
 post_install() {
 	vinstall ${FILESDIR}/jwm.desktop 644 usr/share/xsessions
diff --git a/srcpkgs/jxrlib/template b/srcpkgs/jxrlib/template
index 48f02dceab61..c9ed1e4c14aa 100644
--- a/srcpkgs/jxrlib/template
+++ b/srcpkgs/jxrlib/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/glencoesoftware/jxrlib"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=d1fbc5759a665949e7cb82de03c3258788bd07323f195a9e8ea9322504627cc3
+patch_args=-Np0
 
 jxrlib-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/kanshi/template b/srcpkgs/kanshi/template
index e6fe40f4a697..d9e4c799e616 100644
--- a/srcpkgs/kanshi/template
+++ b/srcpkgs/kanshi/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/emersion/kanshi"
 distfiles="https://github.com/emersion/kanshi/archive/v${version}.tar.gz"
 checksum=f7e782d2b49380aed370213b8d74af9fe806d9dc94b3c19179475f4b18e26566
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/katarakt/template b/srcpkgs/katarakt/template
index 13fc25ba6626..05c85364c95d 100644
--- a/srcpkgs/katarakt/template
+++ b/srcpkgs/katarakt/template
@@ -13,6 +13,7 @@ homepage="https://wwwcip.cs.fau.de/~go18gomu/katarakt"
 #distfiles="https://wwwcip.cs.fau.de/~go18gomu/katarakt/tarballs/katarakt-${version}.tar.xz"
 distfiles="https://gitlab.cs.fau.de/Qui_Sum/katarakt/-/archive/v${version}/katarakt-v${version}.tar.gz"
 checksum=f60b3b7477975301a6c6657eb0a24d5cc28d321cca70e9746d4d1ea91e239c46
+patch_args=-Np0
 
 post_build() {
 	make doc
diff --git a/srcpkgs/kauth/template b/srcpkgs/kauth/template
index 2ba239bf8e09..d69da9d53d72 100644
--- a/srcpkgs/kauth/template
+++ b/srcpkgs/kauth/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kauth"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=00aac14b7a28040a7598ed661254fb4b8c20b0708fc3379461caff7bc8ff9104
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" kcoreaddons qt5-host-tools qt5-qmake qt5-tools-devel polkit-qt5-devel"
diff --git a/srcpkgs/kbd/template b/srcpkgs/kbd/template
index 10b5c5dba294..0b0457f171dd 100644
--- a/srcpkgs/kbd/template
+++ b/srcpkgs/kbd/template
@@ -13,6 +13,7 @@ homepage="http://www.kbd-project.org/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=55f0740458cfd3a84e775e50d7e8b92dc01846db1edad8e2411ccc293ece9b9f
 replaces="kbd-data>=0"
+patch_args=-Np0
 
 post_patch() {
 	# Rename keymap files with the same names
diff --git a/srcpkgs/kcgi/template b/srcpkgs/kcgi/template
index 021c97022dc8..7a5b093157b6 100644
--- a/srcpkgs/kcgi/template
+++ b/srcpkgs/kcgi/template
@@ -16,6 +16,7 @@ homepage="http://kristaps.bsd.lv/kcgi/"
 changelog="https://kristaps.bsd.lv/kcgi/archive.html"
 distfiles="http://kristaps.bsd.lv/kcgi/snapshots/kcgi-${version}.tgz"
 checksum=06ed033de3723651d76e2fac1c2442aaa3a28ac231cbfda4142dfb8782cab363
+patch_args=-Np0
 
 seccomp_audit_get_suffix() {
 	case "$1" in
diff --git a/srcpkgs/kconfig/template b/srcpkgs/kconfig/template
index adc2fc3be0da..e56f6a58ff56 100644
--- a/srcpkgs/kconfig/template
+++ b/srcpkgs/kconfig/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-only, LGPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kconfig"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=234fc902d8a005291488def0a6a4b9d8b8500102e05aa2d1cfa3d5b6bb830a89
+patch_args=-Np0
 
 kconfig-devel_package() {
 	short_desc+=" - development"
diff --git a/srcpkgs/kcoreaddons/template b/srcpkgs/kcoreaddons/template
index 634dcec5c336..9403c06a9a64 100644
--- a/srcpkgs/kcoreaddons/template
+++ b/srcpkgs/kcoreaddons/template
@@ -13,6 +13,7 @@ license="LGPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kcoreaddons"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=12077aac579065ca5ca877aee3bbdce65c52b6d0e9ef8b1fc0e127dd2e7f6843
+patch_args=-Np0
 
 post_install() {
 	vsed -e 's;${_IMPORT_PREFIX};/usr;g' \
diff --git a/srcpkgs/kdb/template b/srcpkgs/kdb/template
index 0bc353bd7085..e28e194c4d55 100644
--- a/srcpkgs/kdb/template
+++ b/srcpkgs/kdb/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-or-later"
 homepage="http://www.kexi-project.org/"
 distfiles="${KDE_SITE}/kdb/src/kdb-${version}.tar.xz"
 checksum=8f8983bc8d143832dc14bc2003ba6af1af27688e477c0c791fd61445464f2069
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-qmake qt5-host-tools python3"
diff --git a/srcpkgs/kdelibs4support/template b/srcpkgs/kdelibs4support/template
index 306a952779ad..2841c1dcefcd 100644
--- a/srcpkgs/kdelibs4support/template
+++ b/srcpkgs/kdelibs4support/template
@@ -17,6 +17,7 @@ license="LGPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kdelibs4support"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/portingAids/${pkgname}-${version}.tar.xz"
 checksum=2f82f9241a1ceb08f4da7e9056612003b18d85879aff808f21d750b52edf4fe1
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# gettaddrinfo runtime test is always fine (can't be achieved in crossbuild)
diff --git a/srcpkgs/kdesignerplugin/template b/srcpkgs/kdesignerplugin/template
index 193e3fdc8320..8787bf11ced2 100644
--- a/srcpkgs/kdesignerplugin/template
+++ b/srcpkgs/kdesignerplugin/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://invent.kde.org/frameworks/kdesignerplugin"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/portingAids/${pkgname}-${version}.tar.xz"
 checksum=4556c3001f6558cf8ecaf9ce98b60bc130099b0af5d35be48561405b778d6f79
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake qt5-tools python kgendesignerplugin kdoctools"
diff --git a/srcpkgs/kdevelop-python/template b/srcpkgs/kdevelop-python/template
index 6d2f53fd0e60..d245fc817f01 100644
--- a/srcpkgs/kdevelop-python/template
+++ b/srcpkgs/kdevelop-python/template
@@ -18,6 +18,7 @@ homepage="https://www.kdevelop.org/"
 distfiles="${KDE_SITE}/kdevelop/${version}/src/kdev-python-${version}.tar.xz"
 checksum=20f9b771b961262ded986a4f32b8d259ad9f7bc48bb29eac0a5d5853be1d917f
 python_version=3
+patch_args=-Np0
 
 post_install() {
 	# don't install this python2 script: generates documentation_files, useless at runtime
diff --git a/srcpkgs/kdevelop/template b/srcpkgs/kdevelop/template
index 3adc84273607..60f85a97b137 100644
--- a/srcpkgs/kdevelop/template
+++ b/srcpkgs/kdevelop/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.kdevelop.org/"
 distfiles="${KDE_SITE}/${pkgname}/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=0f86bc3fe53f761c1e3e3f7544577a0c41433be8bff310cf2e729f76f4363bf6
+patch_args=-Np0
 
 build_options="webengine"
 desc_option_webengine="Use Qt5 WebEngine for documentation"
diff --git a/srcpkgs/kdoctools/template b/srcpkgs/kdoctools/template
index 12febaa475fc..6f9f52862b08 100644
--- a/srcpkgs/kdoctools/template
+++ b/srcpkgs/kdoctools/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/kdoctools"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=414fbb92521734664535b475bf1ea2b941c3d4bdde14c06fd243a2968d1531db
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake python kdoctools-devel"
diff --git a/srcpkgs/kea/template b/srcpkgs/kea/template
index dc0bcc5de3fc..bad3cab44ea2 100644
--- a/srcpkgs/kea/template
+++ b/srcpkgs/kea/template
@@ -21,6 +21,7 @@ license="MPL-2.0, Apache-2.0"
 homepage="https://kea.isc.org"
 distfiles="http://ftp.isc.org/isc/kea/${version/.P/-P}/kea-${version/.P/-P}.tar.gz"
 checksum=324a06f488645bee587e49a45d491b525f53417c56b219f1cb37461fdefd9d91
+patch_args=-Np0
 
 build_options="botan mysql pgsql"
 desc_option_botan="With Botan SSL support"
diff --git a/srcpkgs/kernel-libc-headers/template b/srcpkgs/kernel-libc-headers/template
index ff67067469e9..a21b03bc0ddc 100644
--- a/srcpkgs/kernel-libc-headers/template
+++ b/srcpkgs/kernel-libc-headers/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://www.kernel.org"
 distfiles="$KERNEL_SITE/kernel/v${version%%.*}.x/linux-${version}.tar.xz"
 checksum=904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+patch_args=-Np0
 
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="perl"
diff --git a/srcpkgs/kexec-tools/template b/srcpkgs/kexec-tools/template
index 06f6f4527138..dccec75fe3be 100644
--- a/srcpkgs/kexec-tools/template
+++ b/srcpkgs/kexec-tools/template
@@ -13,6 +13,7 @@ homepage="http://kernel.org/pub/linux/utils/kernel/kexec/"
 distfiles="${KERNEL_SITE}/utils/kernel/kexec/${pkgname}-${version}.tar.xz"
 checksum=96c97f49ed86049f8b72722cb53e7fe3693e5a4f31e78a3a6249e3d18dac49c2
 skip_extraction="${pkgname}-${version}.tar.xz"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/kexi/template b/srcpkgs/kexi/template
index 28d4a358ac65..640f5158ffcd 100644
--- a/srcpkgs/kexi/template
+++ b/srcpkgs/kexi/template
@@ -14,6 +14,7 @@ homepage="http://www.kexi-project.org/"
 distfiles="${KDE_SITE}/kexi/src/kexi-${version}.tar.xz"
 checksum=7a813f9ea815a09c1e733d0e7dc879c64eee85f075389e87e6aab99cf0c1c1ff
 replaces="calligra-kexi>=0"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ];then
 	hostmakedepends+=" qt5-qmake qt5-host-tools python3 kcoreaddons"
diff --git a/srcpkgs/keyutils/template b/srcpkgs/keyutils/template
index 2da74bdcd24b..2b0044799be1 100644
--- a/srcpkgs/keyutils/template
+++ b/srcpkgs/keyutils/template
@@ -9,6 +9,7 @@ homepage="https://www.kernel.org"
 distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/${pkgname}-${version}.tar.gz"
 checksum=a61d5706136ae4c05bd48f86186bcfdbd88dd8bd5107e3e195c924cfc1b39bb4
 conf_files="/etc/request-key.conf"
+patch_args=-Np0
 
 pre_build() {
 	# Fix musl build - doesn't hurt glibc either
diff --git a/srcpkgs/kicad/template b/srcpkgs/kicad/template
index c56f7422dbed..18f1c310daab 100644
--- a/srcpkgs/kicad/template
+++ b/srcpkgs/kicad/template
@@ -22,6 +22,7 @@ homepage="http://kicad-pcb.org"
 distfiles="https://gitlab.com/kicad/code/${pkgname}/-/archive/${version}/kicad-${version}.tar.gz"
 checksum=296341f30ada2c7f4a1c54720eab425835a93349527d4bf08f73f280d19695ed
 python_version=3
+patch_args=-Np0
 
 build_options="spice occt"
 build_options_default="spice occt"
diff --git a/srcpkgs/kid3/template b/srcpkgs/kid3/template
index e916cbabed1e..e743ffff1536 100644
--- a/srcpkgs/kid3/template
+++ b/srcpkgs/kid3/template
@@ -20,6 +20,7 @@ license="GPL-2.0-only"
 homepage="https://kid3.kde.org"
 distfiles="${SOURCEFORGE_SITE}/kid3/kid3-${version}.tar.gz"
 checksum=71ef8c58227302737ebbed3b7f476f9f48e76ea894952d916dc33d9c08f96e08
+patch_args=-Np0
 
 build_options="KDE mp3 mp4 flac vorbis taglib chromaprint"
 build_options_default="mp3 mp4 flac vorbis taglib chromaprint"
diff --git a/srcpkgs/kinit/template b/srcpkgs/kinit/template
index 0bc5c5dc295e..483a88c80473 100644
--- a/srcpkgs/kinit/template
+++ b/srcpkgs/kinit/template
@@ -13,6 +13,7 @@ license="LGPL-2.0-only"
 homepage="https://invent.kde.org/frameworks/kinit"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=8b1b9d34fe4a4345381ac954888190e65f28ffe8211c7c0a16376996a79dc168
+patch_args=-Np0
 
 kinit-devel_package() {
 	short_desc+=" - development"
diff --git a/srcpkgs/kio/template b/srcpkgs/kio/template
index 1a1751c72191..1b03e77eac62 100644
--- a/srcpkgs/kio/template
+++ b/srcpkgs/kio/template
@@ -16,6 +16,7 @@ license="LGPL-2.0-or-later"
 homepage="https://invent.kde.org/frameworks/kio"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=cb970d0550054fd0bb0957de010b9ea73b2d89e8df725c0d8344320e82473144
+patch_args=-Np0
 
 CXXFLAGS+=" -fpermissive"
 
diff --git a/srcpkgs/kmod/template b/srcpkgs/kmod/template
index e9b8c26161e8..9266a17dc233 100644
--- a/srcpkgs/kmod/template
+++ b/srcpkgs/kmod/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git"
 distfiles="${KERNEL_SITE}/utils/kernel/kmod/kmod-${version}.tar.xz"
 checksum=c1d3fbf16ca24b95f334c1de1b46f17bbe5a10b0e81e72668bdc922ebffbbc0c
+patch_args=-Np0
 
 post_install() {
 	vinstall ${FILESDIR}/depmod-search.conf 644 usr/lib/depmod.d search.conf
diff --git a/srcpkgs/kmscon/template b/srcpkgs/kmscon/template
index 0683ed5d0ce7..0e9b90b7d65d 100644
--- a/srcpkgs/kmscon/template
+++ b/srcpkgs/kmscon/template
@@ -15,6 +15,7 @@ homepage="http://www.freedesktop.org/wiki/Software/kmscon"
 distfiles="${FREEDESKTOP_SITE}/kmscon/releases/kmscon-${version}.tar.xz"
 checksum=0ab01c1cdc4fbd692ce765e80478bc2d9663a7c55a5c75cc7ac421366ee6ae2b
 lib32disabled=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc*) broken="ftbfs";;
diff --git a/srcpkgs/kobodeluxe/template b/srcpkgs/kobodeluxe/template
index 94e3e8329728..689d2f17965c 100644
--- a/srcpkgs/kobodeluxe/template
+++ b/srcpkgs/kobodeluxe/template
@@ -14,6 +14,7 @@ homepage="http://olofson.net/kobodl"
 distfiles="${homepage}/download/KoboDeluxe-${version}.tar.bz2"
 checksum=0f7b910a399d985437564af8c5d81d6dcf22b96b26b01488d72baa6a6fdb5c2c
 replaces="kobodeluxe-data>=0"
+patch_args=-Np0
 
 post_extract() {
 	bsdtar xf icons.tar.gz
diff --git a/srcpkgs/kodi-addon-inputstream-adaptive/template b/srcpkgs/kodi-addon-inputstream-adaptive/template
index 579f39bfb0e4..21bd7af334f6 100644
--- a/srcpkgs/kodi-addon-inputstream-adaptive/template
+++ b/srcpkgs/kodi-addon-inputstream-adaptive/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/peak3d/inputstream.adaptive"
 distfiles="https://github.com/peak3d/inputstream.adaptive/archive/${version}-${_kodi_release}.tar.gz"
 checksum=353207f5f98bf81ce8d79cec903c28da8c0227d7c7a632692c910d81e59c2dbe
+patch_args=-Np0
 
 if [ -n "${CROSS_BUILD}" ]; then
 	configure_args+=" -DCMAKE_MODULE_PATH=${XBPS_CROSS_BASE}/usr/share/kodi/cmake"
diff --git a/srcpkgs/kore/template b/srcpkgs/kore/template
index 6c6e2d1378c2..adccefbc13df 100644
--- a/srcpkgs/kore/template
+++ b/srcpkgs/kore/template
@@ -16,6 +16,7 @@ homepage="https://kore.io"
 distfiles="https://kore.io/releases/kore-${version}.tar.gz"
 checksum=b7d73b005fde0ea01c356a54e4bbd8a209a4dff9cf315802a127ce7267efbe61
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/krita/template b/srcpkgs/krita/template
index e909366f539d..f04f7a5bb8b3 100644
--- a/srcpkgs/krita/template
+++ b/srcpkgs/krita/template
@@ -23,6 +23,7 @@ distfiles="${KDE_SITE}/krita/${version}/krita-${version}.tar.gz"
 checksum=4bfd7280870d1060a00d1123d836fc1a5b5bf8a028676679f0268cd5e7fb7568
 python_version=3
 replaces="calligra-krita>=0"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) makedepends+=" vc";;
diff --git a/srcpkgs/kscreenlocker/template b/srcpkgs/kscreenlocker/template
index 36df46f2420e..19becb55ca02 100644
--- a/srcpkgs/kscreenlocker/template
+++ b/srcpkgs/kscreenlocker/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://invent.kde.org/plasma/kscreenlocker"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=9803b976b6cc14fa5216de17481609ebf46d28c314284d9e74e8f9b181cb9bba
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" wayland-devel"
diff --git a/srcpkgs/kvirc/template b/srcpkgs/kvirc/template
index 41255b18e928..801cc846a309 100644
--- a/srcpkgs/kvirc/template
+++ b/srcpkgs/kvirc/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.kvirc.net"
 distfiles="ftp://ftp.kvirc.net/pub/kvirc/${version}/source/KVIrc-${version}.tar.bz2"
 checksum=76cd4cdcaca5e4056f086cdcbb6122c2ca7e331d6e66c7ebc57d32565f626a65
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ];then
 	hostmakedepends+=" qt5-qmake qt5-host-tools"
diff --git a/srcpkgs/kwallet-cli/template b/srcpkgs/kwallet-cli/template
index 4e27ae4f5913..ddeacf49443f 100644
--- a/srcpkgs/kwallet-cli/template
+++ b/srcpkgs/kwallet-cli/template
@@ -14,6 +14,7 @@ license="custom:MirOS, LGPL-3.0-or-later"
 homepage="https://www.mirbsd.org/kwalletcli.htm"
 distfiles="http://www.mirbsd.org/MirOS/dist/hosted/kwalletcli/kwalletcli-${version}.tar.gz"
 checksum=f228e5b179f6eb92289b9635382e676990dd58cd193ce42b61d3150c8a06b12d
+patch_args=-Np0
 
 post_patch() {
 	vsed -i GNUmakefile -e "s|-I/usr/include|-I${XBPS_CROSS_BASE}/usr/include|g"
diff --git a/srcpkgs/ladish/template b/srcpkgs/ladish/template
index f0b36f188b2b..7824e497f211 100644
--- a/srcpkgs/ladish/template
+++ b/srcpkgs/ladish/template
@@ -17,6 +17,7 @@ homepage="http://ladish.org"
 distfiles="${DEBIAN_SITE}/main/l/ladish/ladish_1+dfsg0.orig.tar.bz2"
 checksum=39b09d5a4c2f2d65d37374eb8b53f35039f2229d96ea6ddef7b1ce154403383a
 python_version=2
+patch_args=-Np0
 
 CXXFLAGS=-std=c++11
 
diff --git a/srcpkgs/laditools/template b/srcpkgs/laditools/template
index 596f955b9d0c..d5c06f7015d4 100644
--- a/srcpkgs/laditools/template
+++ b/srcpkgs/laditools/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/alessio/laditools"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=ca99f4b6e17b7333ed87dd12a2d91da4d486e53d89dd2677edfa29170ec6efe5
+patch_args=-Np0
 
 post_install() {
 	# remove wmladi, we do not have wmdocklib.
diff --git a/srcpkgs/ladspa-sdk/template b/srcpkgs/ladspa-sdk/template
index 175f3cb2c405..4b3730a98f66 100644
--- a/srcpkgs/ladspa-sdk/template
+++ b/srcpkgs/ladspa-sdk/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://www.ladspa.org/"
 distfiles="http://www.ladspa.org/download/ladspa_sdk_${version}.tgz"
 checksum=4229959b09d20c88c8c86f4aa76427843011705df22d9c28b38359fd1829fded
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC CPP=$CXX LD=$LD -C src
diff --git a/srcpkgs/lapack/template b/srcpkgs/lapack/template
index 3ca60272736d..525d64b965c0 100644
--- a/srcpkgs/lapack/template
+++ b/srcpkgs/lapack/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://www.netlib.org/lapack/"
 distfiles="https://github.com/Reference-LAPACK/lapack/archive/v${version}.tar.gz"
 checksum=106087f1bb5f46afdfba7f569d0cbe23dacb9a07cd24733765a0e89dbe1ad573
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/latencytop/template b/srcpkgs/latencytop/template
index 67071c436a8a..0442408311b1 100644
--- a/srcpkgs/latencytop/template
+++ b/srcpkgs/latencytop/template
@@ -11,6 +11,7 @@ license="GPL-2"
 homepage="http://www.latencytop.org"
 distfiles="${DEBIAN_SITE}/main/l/$pkgname/${pkgname}_${version}.orig.tar.gz"
 checksum=9e7f72fbea7bd918e71212a1eabaad8488d2c602205d2e3c95d62cd57e9203ef
+patch_args=-Np0
 
 pre_build() {
 	export CFLAGS="$CFLAGS $LDFLAGS"
diff --git a/srcpkgs/ldapvi/template b/srcpkgs/ldapvi/template
index 1dda3c2ae6e8..3c5f6bae167e 100644
--- a/srcpkgs/ldapvi/template
+++ b/srcpkgs/ldapvi/template
@@ -12,6 +12,7 @@ homepage="http://www.lichteblau.com/ldapvi/"
 short_desc="An interactive LDAP client for Unix terminals"
 distfiles="http://www.lichteblau.com/download/ldapvi-${version}.tar.gz"
 checksum=6f62e92d20ff2ac0d06125024a914b8622e5b8a0a0c2d390bf3e7990cbd2e153
+patch_args=-Np0
 
 do_install() {
 	vbin ldapvi
diff --git a/srcpkgs/ldb/template b/srcpkgs/ldb/template
index ada2f2052210..356615c375e3 100644
--- a/srcpkgs/ldb/template
+++ b/srcpkgs/ldb/template
@@ -19,6 +19,7 @@ license="LGPL-3.0-or-later"
 homepage="https://www.samba.org/ldb/"
 distfiles="https://www.samba.org/ftp/pub/ldb/ldb-${version}.tar.gz"
 checksum=134bb51769709af59f30bf468e454d1377a8096acd4e80dcb42fd264f558bd5f
+patch_args=-Np0
 
 # workaround for cmocka's broken uintptr_t definition on musl
 if [ "$XBPS_TARGET_WORDSIZE" = "64" -a "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/ledger/template b/srcpkgs/ledger/template
index c94b72709dea..e1bd5419f0fa 100644
--- a/srcpkgs/ledger/template
+++ b/srcpkgs/ledger/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="https://www.ledger-cli.org/"
 distfiles="https://github.com/ledger/${pkgname}/archive/v${version}.tar.gz"
 checksum=92bf09bc385b171987f456fe3ee9fa998ed5e40b97b3acdd562b663aa364384a
+patch_args=-Np0
 
 post_install() {
 	rm -Rf ${DESTDIR}/usr/local
diff --git a/srcpkgs/lfe/template b/srcpkgs/lfe/template
index 31f33e64eeaf..b57f4ad541a8 100644
--- a/srcpkgs/lfe/template
+++ b/srcpkgs/lfe/template
@@ -10,6 +10,7 @@ license="Apache-2.0"
 homepage="http://lfe.io/"
 distfiles="https://github.com/rvirding/lfe/archive/v${version}.tar.gz"
 checksum=04634f2c700ecedb55f4369962837792669e6be809dba90d81974198fc2b7b72
+patch_args=-Np0
 
 do_build() {
 	make
diff --git a/srcpkgs/liba52/template b/srcpkgs/liba52/template
index f94b04c876d1..3c850ca622e0 100644
--- a/srcpkgs/liba52/template
+++ b/srcpkgs/liba52/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://liba52.sourceforge.net/"
 distfiles="http://liba52.sourceforge.net/files/a52dec-${version}.tar.gz"
 checksum=a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33
+patch_args=-Np0
 
 pre_configure() {
 	./bootstrap
diff --git a/srcpkgs/libabigail/template b/srcpkgs/libabigail/template
index ed30ffd85c54..03906b43ac00 100644
--- a/srcpkgs/libabigail/template
+++ b/srcpkgs/libabigail/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-or-later"
 homepage="https://www.sourceware.org/libabigail/"
 distfiles="http://mirrors.kernel.org/sourceware/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=86347c9f0a8666f263fd63f8c3fe4c4f9cb1bdb3ec4260ecbaf117d137e89787
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" musl-fts-devel"; LDFLAGS="-lfts" ;;
diff --git a/srcpkgs/libabw/template b/srcpkgs/libabw/template
index e617508a0b3d..3e0b95197ef1 100644
--- a/srcpkgs/libabw/template
+++ b/srcpkgs/libabw/template
@@ -11,6 +11,7 @@ distfiles="http://dev-www.libreoffice.org/src/${pkgname}/${pkgname}-${version}.t
 makedepends="librevenge-devel boost-devel libxml2-devel"
 hostmakedepends="automake libtool pkg-config perl gperf"
 checksum=e763a9dc21c3d2667402d66e202e3f8ef4db51b34b79ef41f56cacb86dcd6eed
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated-copy"
 
diff --git a/srcpkgs/libaccounts-qt5/template b/srcpkgs/libaccounts-qt5/template
index 73c98fb72bd4..98e0b0374d5b 100644
--- a/srcpkgs/libaccounts-qt5/template
+++ b/srcpkgs/libaccounts-qt5/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-only"
 homepage="https://gitlab.com/accounts-sso/libaccounts-qt"
 distfiles="${homepage}/repository/archive.tar.gz?ref=VERSION_${version}>${pkgname}-${version}.tar.gz"
 checksum=286eb02f936853e32e610003a2a332a12524050d226707e7630b6a29bd3bdf66
+patch_args=-Np0
 
 libaccounts-qt5-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libarchive/template b/srcpkgs/libarchive/template
index 605cac399d34..ea4b7e8f63e5 100644
--- a/srcpkgs/libarchive/template
+++ b/srcpkgs/libarchive/template
@@ -18,6 +18,7 @@ license="BSD-2-Clause"
 homepage="http://www.libarchive.org/"
 distfiles="https://github.com/libarchive/libarchive/releases/download/${version}/libarchive-${version}.tar.gz"
 checksum=9015d109ec00bb9ae1a384b172bf2fc1dff41e2c66e5a9eeddf933af9db37f5a
+patch_args=-Np0
 
 build_options="acl expat lzo lz4 ssl zstd"
 build_options_default="acl ssl lz4 zstd"
diff --git a/srcpkgs/libatasmart/template b/srcpkgs/libatasmart/template
index 7714dcbfe394..b79bd8661ae8 100644
--- a/srcpkgs/libatasmart/template
+++ b/srcpkgs/libatasmart/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://0pointer.de/blog/projects/being-smart.html"
 distfiles="http://0pointer.de/public/$pkgname-$version.tar.xz"
 checksum=61f0ea345f63d28ab2ff0dc352c22271661b66bf09642db3a4049ac9dbdb0f8d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libax25/template b/srcpkgs/libax25/template
index e4de77e6b59a..868268ce4abb 100644
--- a/srcpkgs/libax25/template
+++ b/srcpkgs/libax25/template
@@ -13,6 +13,7 @@ license="LGPL-2"
 homepage="http://www.linux-ax25.org/wiki/Libax25"
 distfiles="http://www.linux-ax25.org/pub/libax25/${wrksrc}.tar.gz"
 checksum=051bd736c3f3f3b242b3efea91af37f2e8d5afaebb5fe6e1df050bb1f6aeb986
+patch_args=-Np0
 
 libax25-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libbsd/template b/srcpkgs/libbsd/template
index aa36c7f4e0cc..28d3bc622698 100644
--- a/srcpkgs/libbsd/template
+++ b/srcpkgs/libbsd/template
@@ -10,6 +10,7 @@ license="ISC, MIT, Beerware, BSD-2-Clause, BSD-3-Clause, BSD-4-Clause"
 homepage="https://libbsd.freedesktop.org/"
 distfiles="https://libbsd.freedesktop.org/releases/libbsd-${version}.tar.xz"
 checksum=ff95cf8184151dacae4247832f8d4ea8800fa127dbd15033ecfe839f285b42a1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libcanberra/template b/srcpkgs/libcanberra/template
index de049b68e088..f853fb7e03ab 100644
--- a/srcpkgs/libcanberra/template
+++ b/srcpkgs/libcanberra/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="http://0pointer.de/lennart/projects/libcanberra/"
 distfiles="http://pkgs.fedoraproject.org/repo/pkgs/libcanberra/libcanberra-${version}.tar.xz/34cb7e4430afaf6f447c4ebdb9b42072/libcanberra-${version}.tar.xz"
 checksum=c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -if
diff --git a/srcpkgs/libcap-ng/template b/srcpkgs/libcap-ng/template
index 99eab8e614fc..7ea192957fb8 100644
--- a/srcpkgs/libcap-ng/template
+++ b/srcpkgs/libcap-ng/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://people.redhat.com/sgrubb/libcap-ng/"
 distfiles="http://people.redhat.com/sgrubb/$pkgname/$pkgname-$version.tar.gz"
 checksum=52c083b77c2b0d8449dee141f9c3eba76e6d4c5ad44ef05df25891126cb85ae9
+patch_args=-Np0
 
 subpackages="libcap-ng-devel libcap-ng-progs"
 
diff --git a/srcpkgs/libcap/template b/srcpkgs/libcap/template
index ad68fc72aed6..cadc03d056e2 100644
--- a/srcpkgs/libcap/template
+++ b/srcpkgs/libcap/template
@@ -15,6 +15,7 @@ homepage="http://sites.google.com/site/fullycapable/"
 changelog="https://sites.google.com/site/fullycapable/release-notes-for-libcap"
 distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/${pkgname}-${version}.tar.xz"
 checksum=47a57b8bd238b84c93c921a9b4ff82337551dbcb0cca071316aadf3e23b19261
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
diff --git a/srcpkgs/libcec/template b/srcpkgs/libcec/template
index bf232fb89eb8..c203167ef915 100644
--- a/srcpkgs/libcec/template
+++ b/srcpkgs/libcec/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Pulse-Eight/libcec"
 distfiles="https://github.com/Pulse-Eight/libcec/archive/libcec-${version}.tar.gz"
 checksum=090696d7a4fb772d7acebbb06f91ab92e025531c7c91824046b9e4e71ecb3377
+patch_args=-Np0
 
 build_options="rpi"
 
diff --git a/srcpkgs/libcgroup/template b/srcpkgs/libcgroup/template
index c9c19120e597..13b1318383bc 100644
--- a/srcpkgs/libcgroup/template
+++ b/srcpkgs/libcgroup/template
@@ -12,6 +12,7 @@ license="LGPL-2.1"
 homepage="http://libcg.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/libcg/${pkgname}-${version}.tar.bz2"
 checksum=e4e38bdc7ef70645ce33740ddcca051248d56b53283c0dc6d404e17706f6fb51
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	# Add musl-fts implementation
diff --git a/srcpkgs/libcmis/template b/srcpkgs/libcmis/template
index fac133d5e4d9..9e2aa911954b 100644
--- a/srcpkgs/libcmis/template
+++ b/srcpkgs/libcmis/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1"
 homepage="https://github.com/tdf/libcmis"
 distfiles="https://github.com/tdf/libcmis/releases/download/v${version}/libcmis-${version}.tar.gz"
 checksum=ed6f681a48abbf3c2324564b17a180d21fa9503230e8708825e1ad80daee4f81
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated"
 
diff --git a/srcpkgs/libcprops/template b/srcpkgs/libcprops/template
index 3460841477a1..2dc95f4e8a82 100644
--- a/srcpkgs/libcprops/template
+++ b/srcpkgs/libcprops/template
@@ -12,6 +12,7 @@ license="LGPL-2.1"
 distfiles="${SOURCEFORGE_SITE}/cprops/${pkgname}-${version}.tar.bz2"
 checksum=3737772d2718a2c550adf4ca92cc492e613aa9200aae2bbaaf128d90f4ef67f2
 nocross="autotools TRY_RUN checking for PTHREAD_MUTEX_RECURSIVE"
+patch_args=-Np0
 
 libcprops-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libdaemon/template b/srcpkgs/libdaemon/template
index 07fe35eaeeac..6d2bf5364075 100644
--- a/srcpkgs/libdaemon/template
+++ b/srcpkgs/libdaemon/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://0pointer.de/lennart/projects/$pkgname"
 distfiles="http://pkgs.fedoraproject.org/repo/pkgs/libdaemon/libdaemon-${version}.tar.gz/509dc27107c21bcd9fbf2f95f5669563/libdaemon-${version}.tar.gz"
 checksum=fd23eb5f6f986dcc7e708307355ba3289abe03cc381fc47a80bca4a50aa6b834
+patch_args=-Np0
 
 libdaemon-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libdbus-c++/template b/srcpkgs/libdbus-c++/template
index 29b4a109863d..91724cfdee6b 100644
--- a/srcpkgs/libdbus-c++/template
+++ b/srcpkgs/libdbus-c++/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="http://dbus-cplusplus.sourceforge.net/"
 distfiles="https://github.com/pkgw/dbus-cplusplus/releases/download/v${version}/libdbus-c---${version}.tar.gz"
 checksum=4f140668f2529ecbdce99afbb89f8a977aa47a36248d5f4943b3660316752ee8
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" libdbus-c++-devel dbus-devel glib-devel"
diff --git a/srcpkgs/libdill/template b/srcpkgs/libdill/template
index c641f17afb7f..38ba343f1e83 100644
--- a/srcpkgs/libdill/template
+++ b/srcpkgs/libdill/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://libdill.org/"
 distfiles="https://github.com/sustrik/libdill/archive/${version}.tar.gz"
 checksum=ebba0e5b433ec123b74a57d49b89dfa673aa258e03e6a452959e556b4c4529b9
+patch_args=-Np0
 
 pre_configure() {
 	export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=?/}"
diff --git a/srcpkgs/libdrm/template b/srcpkgs/libdrm/template
index ef96bcf5d129..21988cf5fc65 100644
--- a/srcpkgs/libdrm/template
+++ b/srcpkgs/libdrm/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://dri.freedesktop.org/"
 distfiles="https://gitlab.freedesktop.org/mesa/drm/-/archive/libdrm-${version}/drm-libdrm-${version}.tar.gz"
 checksum=0ba5017cafd4b7ac885356403c20105d40efcd11271ebf75727c1a5599e4ed53
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	aarch64*) configure_args+=" -Dvc4=true";;
diff --git a/srcpkgs/libesmtp/template b/srcpkgs/libesmtp/template
index 6719b024796c..0b88cd4b5035 100644
--- a/srcpkgs/libesmtp/template
+++ b/srcpkgs/libesmtp/template
@@ -12,6 +12,7 @@ homepage="http://brianstafford.info/libesmtp/"
 distfiles="https://sources.voidlinux.org/libesmtp-1.0.6/libesmtp-1.0.6.tar.bz2"
 #distfiles="http://brianstafford.info/libesmtp/libesmtp-${version}.tar.bz2"
 checksum=d0a61a5c52d99fa7ce7d00ed0a07e341dbda67101dbed1ab0cdae3f37db4eb0b
+patch_args=-Np0
 
 libesmtp-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libetpan/template b/srcpkgs/libetpan/template
index fb6c96eb33f2..9363e7ae26b1 100644
--- a/srcpkgs/libetpan/template
+++ b/srcpkgs/libetpan/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="http://www.etpan.org/libetpan.html"
 distfiles="https://github.com/dinhviethoa/libetpan/archive/${version}.tar.gz"
 checksum=591f97d5102f600e668502fe1dd5a341e910a840d8ea62e689a3a79d8bfbac87
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/libevdevPlus/template b/srcpkgs/libevdevPlus/template
index cf693a6e776c..dec92cb4bfd3 100644
--- a/srcpkgs/libevdevPlus/template
+++ b/srcpkgs/libevdevPlus/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/YukiWorkshop/libevdevPlus"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=c941b6b45f784c1e6c6f316f59256fabd604ac392db405cf7fd99de2686aaab0
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libexecinfo/template b/srcpkgs/libexecinfo/template
index dde582069514..5fe7d6fa72a2 100644
--- a/srcpkgs/libexecinfo/template
+++ b/srcpkgs/libexecinfo/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://www.freshports.org/devel/libexecinfo"
 distfiles="http://distcache.freebsd.org/local-distfiles/itetcu/libexecinfo-${version}.tar.bz2"
 checksum=c9a21913e7fdac8ef6b33250b167aa1fc0a7b8a175145e26913a4c19d8a59b1f
+patch_args=-Np0
 
 do_install() {
 	vsed -e "/Version:/s@version@${version}@" -i libexecinfo.pc
diff --git a/srcpkgs/libfetch/template b/srcpkgs/libfetch/template
index 5522f74d617f..dc3eaad7a71b 100644
--- a/srcpkgs/libfetch/template
+++ b/srcpkgs/libfetch/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="https://www.NetBSD.org"
 distfiles="https://alpha.de.repo.voidlinux.org/distfiles/libfetch-${version}.tar.xz"
 checksum=4e6d4541f213c9ab42ea94d49c2573f0a6f54b04f14668530960f1424b04f722
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC
diff --git a/srcpkgs/libffado/template b/srcpkgs/libffado/template
index cadd335b30e3..837d5443d972 100644
--- a/srcpkgs/libffado/template
+++ b/srcpkgs/libffado/template
@@ -20,6 +20,7 @@ license="GPL-2.0-only, GPL-3.0-only"
 homepage="http://www.ffado.org"
 distfiles="http://www.ffado.org/files/libffado-${version}.tgz"
 checksum=a47178cdc8c0c91e91edbaabe23d19ca12a752cbcf81c27314adb27cc00d60f0
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	makedepends+=" argp-standalone" ;;
diff --git a/srcpkgs/libffi/template b/srcpkgs/libffi/template
index d79ef2afe2d8..13469f65f514 100644
--- a/srcpkgs/libffi/template
+++ b/srcpkgs/libffi/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://sourceware.org/libffi"
 distfiles="ftp://sourceware.org/pub/$pkgname/$pkgname-$version.tar.gz"
 checksum=72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libfprint/template b/srcpkgs/libfprint/template
index 9f32d0bea086..eef79d8277ce 100644
--- a/srcpkgs/libfprint/template
+++ b/srcpkgs/libfprint/template
@@ -17,6 +17,7 @@ homepage="http://www.freedesktop.org/wiki/Software/fprint/"
 changelog="https://gitlab.freedesktop.org/libfprint/libfprint/raw/master/NEWS"
 distfiles="https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/v$version/libfprint-v$version.tar.bz2"
 checksum=d11acf183820812fd6a8cd808d58bbf197554bcc0f9119d4c873092ecd94ee29
+patch_args=-Np0
 
 libfprint-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libfprint0/template b/srcpkgs/libfprint0/template
index 2d31deb97f4b..9f12b576fe62 100644
--- a/srcpkgs/libfprint0/template
+++ b/srcpkgs/libfprint0/template
@@ -17,6 +17,7 @@ distfiles="https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/V_${vers
 checksum=22777a1d202ef912395b94842ae6b531338c8d48a8a813616e846b1bc96c5ad9
 provides="libfprint-${version}_${revision}"
 replaces="libfprint<=${version}_1"
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/lib/udev/rules.d
diff --git a/srcpkgs/libfreehand/template b/srcpkgs/libfreehand/template
index 10282b4bd0d4..c94cd8c453e0 100644
--- a/srcpkgs/libfreehand/template
+++ b/srcpkgs/libfreehand/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand"
 distfiles="http://dev-www.libreoffice.org/src/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=0e422d1564a6dbf22a9af598535425271e583514c0f7ba7d9091676420de34ac
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated-copy"
 
diff --git a/srcpkgs/libgadu/template b/srcpkgs/libgadu/template
index 3775a273ca97..c90ab53f9559 100644
--- a/srcpkgs/libgadu/template
+++ b/srcpkgs/libgadu/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-only"
 homepage="https://www.wasilczyk.pl/en/projects/libgadu/"
 distfiles="https://github.com/wojtekka/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=f53e703d7ad93ce222dbf7fc0cec77f62813af38817a3678e799e91f1c69c94d
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/libgdal/template b/srcpkgs/libgdal/template
index 72c96ff67605..246109c38cf6 100644
--- a/srcpkgs/libgdal/template
+++ b/srcpkgs/libgdal/template
@@ -17,6 +17,7 @@ homepage="http://www.gdal.org/"
 distfiles="http://download.osgeo.org/gdal/${version}/gdal-${version}.tar.xz"
 checksum=5569a4daa1abcbba47a9d535172fc335194d9214fdb96cd0f139bb57329ae277
 subpackages="libgdal-devel libgdal-tools"
+patch_args=-Np0
 
 if [ -z "$CROSS_BUILD" ]; then
 	makedepends+=" hdf5-devel"
diff --git a/srcpkgs/libgfshare/template b/srcpkgs/libgfshare/template
index db6177570707..74c7044cd865 100644
--- a/srcpkgs/libgfshare/template
+++ b/srcpkgs/libgfshare/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://git.gitano.org.uk/libgfshare.git"
 distfiles="http://www.digital-scurf.org/files/libgfshare/libgfshare-${version}.tar.bz2"
 checksum=86f602860133c828356b7cf7b8c319ba9b27adf70a624fe32275ba1ed268331f
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libgit2-glib/template b/srcpkgs/libgit2-glib/template
index 00e6439339ba..21f2430ff936 100644
--- a/srcpkgs/libgit2-glib/template
+++ b/srcpkgs/libgit2-glib/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/GNOME/libgit2-glib"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=22dccc7aa9ff6f29edf50352b17d58c3f9289ba1cfa7952f70d7feb48676f10c
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/libglade/template b/srcpkgs/libglade/template
index f9bbef8cfbe3..5057e12b4d5d 100644
--- a/srcpkgs/libglade/template
+++ b/srcpkgs/libglade/template
@@ -14,6 +14,7 @@ homepage="http://www.jamesh.id.au/software/libglade/"
 distfiles="${GNOME_SITE}/$pkgname/2.6/$pkgname-$version.tar.bz2"
 checksum=64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec
 python_version=2 #unverified
+patch_args=-Np0
 
 # Register DTDs with xmlcatmgr.
 xml_entries="system http://glade.gnome.org/glade-2.0.dtd /usr/share/xml/libglade/glade-2.0.dtd"
diff --git a/srcpkgs/libglvnd/template b/srcpkgs/libglvnd/template
index 2f6448cc9780..e97629209e6f 100644
--- a/srcpkgs/libglvnd/template
+++ b/srcpkgs/libglvnd/template
@@ -13,6 +13,7 @@ license="custom:MIT-alike"
 homepage="https://gitlab.freedesktop.org/glvnd/libglvnd"
 distfiles="https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/v${version}/libglvnd-v${version}.tar.gz"
 checksum=6332c27f4c792b09a3eb1d7ae18c2d6ff6a0acaf3a746489caf859e659fca2f7
+patch_args=-Np0
 
 provides="libGL-7.11_1 libEGL-7.11_1 libGLES-7.11_1"
 replaces="libGL>=0 libEGL>=0 libGLES>=0"
diff --git a/srcpkgs/libgme/template b/srcpkgs/libgme/template
index 30394ff33815..338848b520ba 100644
--- a/srcpkgs/libgme/template
+++ b/srcpkgs/libgme/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://bitbucket.org/mpyne/game-music-emu/wiki/Home"
 distfiles="https://bitbucket.org/mpyne/game-music-emu/downloads/game-music-emu-${version}.tar.xz"
 checksum=aba34e53ef0ec6a34b58b84e28bf8cfbccee6585cebca25333604c35db3e051d
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	CXXFLAGS="-DMSB_FIRST=1"
diff --git a/srcpkgs/libgpod/template b/srcpkgs/libgpod/template
index 8e547f1f9ebd..89f4bfd7fc37 100644
--- a/srcpkgs/libgpod/template
+++ b/srcpkgs/libgpod/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-only"
 homepage="http://www.gtkpod.org/libgpod/"
 distfiles="${SOURCEFORGE_SITE}/gtkpod/$pkgname-$version.tar.bz2"
 checksum=638a7959d04e95f1e62abad02bd33702e4e8dfef98485ac7d9d50395c37e955d
+patch_args=-Np0
 
 post_patch() {
 	vsed -i configure.ac -e '/PKG_CHECK_MODULES/s/libplist\b/libplist-2.0/g'
diff --git a/srcpkgs/libgsm/template b/srcpkgs/libgsm/template
index 1d7cc0a0dc20..55da1bc0275f 100644
--- a/srcpkgs/libgsm/template
+++ b/srcpkgs/libgsm/template
@@ -9,6 +9,7 @@ short_desc="GSM 06.10 lossy speech compression"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="custom"
 checksum=04f68087c3348bf156b78d59f4d8aff545da7f6e14f33be8f47d33f4efae2a10
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC LD=$CC AR=$AR CCFLAGS="$CFLAGS -c -DNeedFunctionPrototypes=1"
diff --git a/srcpkgs/libguestfs/template b/srcpkgs/libguestfs/template
index 81afe313d203..4f0b0283a00c 100644
--- a/srcpkgs/libguestfs/template
+++ b/srcpkgs/libguestfs/template
@@ -23,6 +23,7 @@ license=" GPL-2.0-or-later"
 homepage="http://libguestfs.org"
 distfiles="http://libguestfs.org/download/${_version_short}-stable/${pkgname}-${version}.tar.gz"
 checksum=72b7dcdd32da1c17c932cf5a0a70b3bd68bc93e94828ad66a539f2e616adb025
+patch_args=-Np0
 
 conf_files="etc/libguestfs-tools.conf
  etc/xdg/virt-builder/repos.d/libguestfs.conf
diff --git a/srcpkgs/libieee1284/template b/srcpkgs/libieee1284/template
index 885772156e50..d24ad9c78059 100644
--- a/srcpkgs/libieee1284/template
+++ b/srcpkgs/libieee1284/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://cyberelk.net/tim/libieee1284"
 distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.bz2"
 checksum=7730de107782e5d2b071bdcb5b06a44da74856f00ef4a9be85d1ba4806a38f1a
+patch_args=-Np0
 
 libieee1284-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libimobiledevice/template b/srcpkgs/libimobiledevice/template
index a8bb2d08e09a..19285ba975f8 100644
--- a/srcpkgs/libimobiledevice/template
+++ b/srcpkgs/libimobiledevice/template
@@ -13,6 +13,7 @@ homepage="https://libimobiledevice.org"
 changelog="https://raw.githubusercontent.com/libimobiledevice/libimobiledevice/master/NEWS"
 distfiles="https://github.com/libimobiledevice/libimobiledevice/archive/${version}.tar.gz"
 checksum=acbfb73eabee162e64c0d9de207d71c0a5f47c40cd5ad32a5097f734328ce10a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args="ac_cv_sys_file_offset_bits=yes ac_cv_sys_large_file=yes"
diff --git a/srcpkgs/libindicator/template b/srcpkgs/libindicator/template
index 1ad0e5f9c6e7..abe8951a83ad 100644
--- a/srcpkgs/libindicator/template
+++ b/srcpkgs/libindicator/template
@@ -12,6 +12,7 @@ license="GPL-3"
 homepage="https://launchpad.net/libindicator"
 distfiles="https://launchpad.net/libindicator/${version%.*}/${version}/+download/libindicator-${version}.tar.gz"
 checksum=b2d2e44c10313d5c9cd60db455d520f80b36dc39562df079a3f29495e8f9447f
+patch_args=-Np0
 
 CFLAGS="-Wno-deprecated-declarations"
 # Avoid errors for macros deprecated since glib-2.58 */
diff --git a/srcpkgs/libiodbc/template b/srcpkgs/libiodbc/template
index 85f0286a90bf..fec82642e70a 100644
--- a/srcpkgs/libiodbc/template
+++ b/srcpkgs/libiodbc/template
@@ -12,6 +12,7 @@ license="LGPL-2.1"
 homepage="http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/"
 distfiles="${SOURCEFORGE_SITE}/iodbc/${pkgname}-${version}.tar.gz"
 checksum=51c5ff3a7d9a54202486cb77a3514e0e379a135beefcd5d12b96d1901f9dfb62
+patch_args=-Np0
 
 post_install() {
 	rm -rf ${DESTDIR}/usr/share/libiodbc
diff --git a/srcpkgs/libixion/template b/srcpkgs/libixion/template
index 60a21b07ac94..52f55031e1a4 100644
--- a/srcpkgs/libixion/template
+++ b/srcpkgs/libixion/template
@@ -12,6 +12,7 @@ homepage="https://gitlab.com/ixion/ixion/"
 distfiles="http://kohei.us/files/ixion/src/${pkgname}-${version}.tar.xz"
 checksum=426c643b3c346d546027c0226619abb2e59848e94470b9b5aa6365e26125089f
 replaces="libixion11>=0"
+patch_args=-Np0
 
 libixion-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libmad/template b/srcpkgs/libmad/template
index b61acb3d8f4b..02d40edf5aa1 100644
--- a/srcpkgs/libmad/template
+++ b/srcpkgs/libmad/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.underbit.com/products/mad/"
 distfiles="${SOURCEFORGE_SITE}/mad/$pkgname-$version.tar.gz"
 checksum=bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690
+patch_args=-Np0
 
 pre_configure() {
 	sed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.ac
diff --git a/srcpkgs/libmemcached/template b/srcpkgs/libmemcached/template
index c39630b669cd..7365c00db928 100644
--- a/srcpkgs/libmemcached/template
+++ b/srcpkgs/libmemcached/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://libmemcached.org/libMemcached.html"
 distfiles="http://launchpad.net/${pkgname}/1.0/${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=e22c0bb032fde08f53de9ffbc5a128233041d9f33b5de022c0978a2149885f82
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libmill/template b/srcpkgs/libmill/template
index 5bde0ee21208..5df89def696b 100644
--- a/srcpkgs/libmill/template
+++ b/srcpkgs/libmill/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://libmill.org/"
 distfiles="https://github.com/sustrik/libmill/archive/${version}.tar.gz"
 checksum=ff6903cd05f45c4cc050921d03201a93d2723ab59c480eb924f8f1ca8c6f0614
+patch_args=-Np0
 
 pre_configure() {
 	export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=?/}"
diff --git a/srcpkgs/libmilter/template b/srcpkgs/libmilter/template
index f51b61430ced..d5ca00bb6afb 100644
--- a/srcpkgs/libmilter/template
+++ b/srcpkgs/libmilter/template
@@ -12,6 +12,7 @@ license="Sendmail"
 homepage="https://www.milter.org/developers/api/"
 distfiles="ftp://ftp.mirrorservice.org/sites/ftp.sendmail.org/pub/${_pkgname}/${_pkgname}.${_version}.tar.gz"
 checksum=24f94b5fd76705f15897a78932a5f2439a32b1a2fdc35769bb1a5f5d9b4db439
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/libmirage/template b/srcpkgs/libmirage/template
index 283a27e223ca..c3c66f1cf3be 100644
--- a/srcpkgs/libmirage/template
+++ b/srcpkgs/libmirage/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://cdemu.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/cdemu/libmirage-${version}.tar.xz"
 checksum=d50d97e15f180f99fddcdf388b0d9fec073fb8fe080ba6c69cd3674214141139
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/libmowgli/template b/srcpkgs/libmowgli/template
index cf17648a4b75..80f8da745be8 100644
--- a/srcpkgs/libmowgli/template
+++ b/srcpkgs/libmowgli/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/atheme/libmowgli-2"
 distfiles="https://github.com/atheme/libmowgli-2/archive/v${version}.tar.gz"
 checksum=b7faab2fb9f46366a52b51443054a2ed4ecdd04774c65754bf807c5e9bdda477
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libmp4v2/template b/srcpkgs/libmp4v2/template
index 674b6ee304ad..ef8115e38575 100644
--- a/srcpkgs/libmp4v2/template
+++ b/srcpkgs/libmp4v2/template
@@ -11,6 +11,7 @@ homepage="http://code.google.com/p/mp4v2/"
 license="MPL-1.1"
 distfiles="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/${wrksrc}.tar.bz2"
 checksum=0319b9a60b667cf10ee0ec7505eb7bdc0a2e21ca7a93db96ec5bd758e3428338
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/libmpd/template b/srcpkgs/libmpd/template
index 608057b0232a..65647c6d7061 100644
--- a/srcpkgs/libmpd/template
+++ b/srcpkgs/libmpd/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://gmpc.wikia.com/wiki/Gnome_Music_Player_Client"
 distfiles="http://download.sarine.nl/Programs/gmpc/${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=fe20326b0d10641f71c4673fae637bf9222a96e1712f71f170fca2fc34bf7a83
+patch_args=-Np0
 
 libmpd-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libmspub/template b/srcpkgs/libmspub/template
index 5c96ba407069..c74bfdaf9b9c 100644
--- a/srcpkgs/libmspub/template
+++ b/srcpkgs/libmspub/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://cgit.freedesktop.org/libreoffice/libmspub/commit/"
 distfiles="https://dev-www.libreoffice.org/src/${pkgname}-${version}.tar.xz"
 checksum=ef36c1a1aabb2ba3b0bedaaafe717bf4480be2ba8de6f3894be5fd3702b013ba
+patch_args=-Np0
 
 libmspub-devel_package() {
 	depends="libmspub>=${version}_${revision} $makedepends"
diff --git a/srcpkgs/libmygpo-qt/template b/srcpkgs/libmygpo-qt/template
index 1014491ae241..676772f69a4d 100644
--- a/srcpkgs/libmygpo-qt/template
+++ b/srcpkgs/libmygpo-qt/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/gpodder/libmygpo-qt"
 distfiles="https://github.com/gpodder/libmygpo-qt/archive/${version}.tar.gz"
 checksum=2eab976efbbdd39bae1b436e7dcd2ddffd35241432094f29b69308840a938459
+patch_args=-Np0
 
 libmygpo-qt-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libmygui/template b/srcpkgs/libmygui/template
index 902ad67b0d58..30627cf63f85 100644
--- a/srcpkgs/libmygui/template
+++ b/srcpkgs/libmygui/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="http://mygui.info"
 distfiles="https://github.com/MyGUI/mygui/archive/MyGUI${version}.tar.gz"
 checksum=d1d5f294670ae71f7200ed4b30859018281d8cfd45d6a38d18b97a4aba604c42
+patch_args=-Np0
 
 libmygui-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libnet/template b/srcpkgs/libnet/template
index d38ed97b349e..5454c3b9258f 100644
--- a/srcpkgs/libnet/template
+++ b/srcpkgs/libnet/template
@@ -9,6 +9,7 @@ license="GPL-3.0-only"
 homepage="https://github.com/sam-github/libnet"
 distfiles="https://github.com/sam-github/libnet/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=caa4868157d9e5f32e9c7eac9461efeff30cb28357f7f6bf07e73933fb4edaa7
+patch_args=-Np0
 
 libnet-devel_package() {
 	depends="${sourcepkg}-${version}_${revision}"
diff --git a/srcpkgs/libnetfilter_log/template b/srcpkgs/libnetfilter_log/template
index f2b85ead2ee6..d926f53b2784 100644
--- a/srcpkgs/libnetfilter_log/template
+++ b/srcpkgs/libnetfilter_log/template
@@ -11,6 +11,7 @@ homepage="http://www.netfilter.org/projects/libnetfilter_log/index.html"
 short_desc="A userspace library providing interface to packets that have been logged by the kernel packet filter"
 distfiles="http://www.netfilter.org/projects/${pkgname}/files/${pkgname}-${version}.tar.bz2"
 checksum=74e0fe75753dba3ac114531b5e73240452c789a3f3adccf5c51217da1d933b21
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's/u_int\([0-9]*\)_t/uint\1_t/' utils/* src/* include/libnetfilter_log/*
diff --git a/srcpkgs/libnfc/template b/srcpkgs/libnfc/template
index 7737dad56902..96841d882d66 100644
--- a/srcpkgs/libnfc/template
+++ b/srcpkgs/libnfc/template
@@ -13,6 +13,7 @@ homepage="http://nfc-tools.org/"
 distfiles="https://github.com/nfc-tools/libnfc/archive/libnfc-${version}.tar.gz"
 checksum=0ab7d9b41442e7edc2af7c54630396edc73ce51128aa28a5c6e4135dc5595495
 CFLAGS="-D_GNU_SOURCE"
+patch_args=-Np0
 
 pre_configure() {
 	sed -i "s|MODE=\"0664\", GROUP=\"plugdev\"|TAG+=\"uaccess\"|g" contrib/udev/93-pn53x.rules
diff --git a/srcpkgs/libnfs/template b/srcpkgs/libnfs/template
index f1e27dd15f57..792a882d68c5 100644
--- a/srcpkgs/libnfs/template
+++ b/srcpkgs/libnfs/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/sahlberg/libnfs"
 distfiles="https://github.com/sahlberg/libnfs/archive/${pkgname}-${version}.tar.gz"
 checksum=6ee77e9fe220e2d3e3b1f53cfea04fb319828cc7dbb97dd9df09e46e901d797d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libnih/template b/srcpkgs/libnih/template
index 52ebfddc9b7a..ae28525b1897 100644
--- a/srcpkgs/libnih/template
+++ b/srcpkgs/libnih/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/keybuk/${pkgname}"
 distfiles="${homepage}/archive/${_commit}.tar.gz"
 checksum=bd1ce78c9e4808fd02e06edaf581eb2b70fa43d7baae051848dfdbaf5b4d1a1c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libnl/template b/srcpkgs/libnl/template
index ab8c03352d7d..6b2f6cbe3941 100644
--- a/srcpkgs/libnl/template
+++ b/srcpkgs/libnl/template
@@ -9,6 +9,7 @@ license="LGPL-2.1-only"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="http://www.infradead.org/~tgr/libnl/files/libnl-${version}.tar.gz"
 checksum=4f80c21fe5bbcdde6e72b59b4f98306063a41421f909887c34e58d93e746d063
+patch_args=-Np0
 
 libnl-devel_package() {
 	depends="libnl>=${version}_${revision}"
diff --git a/srcpkgs/libogre/template b/srcpkgs/libogre/template
index df60f7b4f542..e36217268348 100644
--- a/srcpkgs/libogre/template
+++ b/srcpkgs/libogre/template
@@ -17,6 +17,7 @@ license="MIT"
 homepage="http://www.ogre3d.org"
 distfiles="https://github.com/OGRECave/ogre/archive/v$version.tar.gz"
 checksum=028e7d0bbfce8fd254e1102666b07b7cbb9379321e88885d82feee5e061342aa
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
diff --git a/srcpkgs/libomxil-bellagio/template b/srcpkgs/libomxil-bellagio/template
index 6b120a2a87c4..c6f3c9e38cc9 100644
--- a/srcpkgs/libomxil-bellagio/template
+++ b/srcpkgs/libomxil-bellagio/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="http://omxil.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/omxil/omxil/Bellagio%20${version}/${pkgname}-${version}.tar.gz"
 checksum=593c0729c8ef8c1467b3bfefcf355ec19a46dd92e31bfc280e17d96b0934d74c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libopenglrecorder/template b/srcpkgs/libopenglrecorder/template
index b0b06ee3797e..241bc09971cd 100644
--- a/srcpkgs/libopenglrecorder/template
+++ b/srcpkgs/libopenglrecorder/template
@@ -11,6 +11,7 @@ license="3-clause-BSD"
 homepage="https://github.com/Benau/libopenglrecorder"
 distfiles="https://github.com/Benau/libopenglrecorder/archive/v${version}.tar.gz"
 checksum=a90a99c23f868636f77003a8dc6ffe6c3699fc2759c47df5dbd44ff8b42d2e4f
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libopenshot-audio/template b/srcpkgs/libopenshot-audio/template
index 56c330eafcf1..6df0d294f841 100644
--- a/srcpkgs/libopenshot-audio/template
+++ b/srcpkgs/libopenshot-audio/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/OpenShot/libopenshot-audio"
 distfiles="https://github.com/OpenShot/libopenshot-audio/archive/v${version}.tar.gz"
 checksum=937ff4f1c2dfb8ab5d56ad85beacaa29dfd5a79af0d9cf647386034fe9882309
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/libosinfo/template b/srcpkgs/libosinfo/template
index e9210c52f08f..52283fceeca6 100644
--- a/srcpkgs/libosinfo/template
+++ b/srcpkgs/libosinfo/template
@@ -20,6 +20,7 @@ homepage="https://libosinfo.org/"
 changelog="https://gitlab.com/libosinfo/libosinfo/raw/master/NEWS"
 distfiles="https://gitlab.com/libosinfo/libosinfo/-/archive/v${version}/libosinfo-v${version}.tar.gz"
 checksum=7270d7a54f4ea46b21163aa1704caf69a5e8ed980434dac6b9951588cae62ea7
+patch_args=-Np0
 
 build_options="gtk_doc gir vala"
 desc_option_gtk_doc="Build GTK API docs"
diff --git a/srcpkgs/libostree/template b/srcpkgs/libostree/template
index 96ce2464312d..bb03d1c7c31d 100644
--- a/srcpkgs/libostree/template
+++ b/srcpkgs/libostree/template
@@ -20,6 +20,7 @@ homepage="https://ostree.readthedocs.io/en/latest/"
 changelog="https://github.com/ostreedev/ostree/releases"
 distfiles="https://github.com/ostreedev/ostree/releases/download/v${version}/libostree-${version}.tar.xz"
 checksum=854008e7c71d44f6b3670f0e9b8500db0f08ff8b297d0b30a7cb9a66f34c5d7c
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/libowfat/template b/srcpkgs/libowfat/template
index 95c7e9a812bf..3ab028281e03 100644
--- a/srcpkgs/libowfat/template
+++ b/srcpkgs/libowfat/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="https://www.fefe.de/libowfat/"
 distfiles="https://www.fefe.de/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=f4b9b3d9922dc25bc93adedf9e9ff8ddbebaf623f14c8e7a5f2301bfef7998c1
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libportal/template b/srcpkgs/libportal/template
index 48211c3767e1..9dee4f8c0d2c 100644
--- a/srcpkgs/libportal/template
+++ b/srcpkgs/libportal/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-or-later"
 homepage="https://github.com/flatpak/libportal"
 distfiles="https://github.com/flatpak/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.xz"
 checksum=fd35d66357169e63e33ef46c43fdf22ddc07dbd960ec3462b58ca9ef15a65bd7
+patch_args=-Np0
 
 build_options="gtk_doc"
 
diff --git a/srcpkgs/libproxy/template b/srcpkgs/libproxy/template
index d6103007032e..c678d6e8383e 100644
--- a/srcpkgs/libproxy/template
+++ b/srcpkgs/libproxy/template
@@ -13,6 +13,7 @@ homepage="http://github.com/libproxy/libproxy"
 license="LGPL-2.1"
 distfiles="https://github.com/libproxy/libproxy/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=18f58b0a0043b6881774187427ead158d310127fc46a1c668ad6d207fb28b4e0
+patch_args=-Np0
 
 libproxy-devel_package() {
 	depends="libproxy>=${version}_${revision}"
diff --git a/srcpkgs/libpurple-steam/template b/srcpkgs/libpurple-steam/template
index 06c8cc833682..844f7e3b7137 100644
--- a/srcpkgs/libpurple-steam/template
+++ b/srcpkgs/libpurple-steam/template
@@ -1,4 +1,5 @@
 # Template file for 'libpurple-steam'
+patch_args=-Np0
 
 pkgname="libpurple-steam"
 version="1.6.1"
diff --git a/srcpkgs/libratbag/template b/srcpkgs/libratbag/template
index 370d670157f6..b1acd757fa33 100644
--- a/srcpkgs/libratbag/template
+++ b/srcpkgs/libratbag/template
@@ -16,6 +16,7 @@ license="MIT"
 homepage="https://github.com/libratbag/libratbag"
 distfiles="https://github.com/libratbag/libratbag/archive/v${version}.tar.gz"
 checksum=9e6ad8d54daef8cc0f44784bdde9bf5a3879d8a66d11e0b990b87266f81f7329
+patch_args=-Np0
 
 post_install() {
 	vsv ratbagd
diff --git a/srcpkgs/libreadline8/template b/srcpkgs/libreadline8/template
index dbac03c6764b..44245746df7e 100644
--- a/srcpkgs/libreadline8/template
+++ b/srcpkgs/libreadline8/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://tiswww.cwru.edu/php/chet/readline/rltop.html"
 distfiles="${GNU_SITE}/readline/readline-${_dist_ver}.tar.gz"
 checksum=f8ceb4ee131e3232226a17f51b164afc46cd0b9e6cef344be87c65962cb82b02
+patch_args=-Np0
 
 post_patch() {
 	cd ${wrksrc}
diff --git a/srcpkgs/libreoffice/template b/srcpkgs/libreoffice/template
index f08066f12966..2c19e2ec70dc 100644
--- a/srcpkgs/libreoffice/template
+++ b/srcpkgs/libreoffice/template
@@ -5,6 +5,7 @@ revision=1
 build_style=meta
 make_build_target="build-nocheck"
 nocross="Several dependencies are nocross=yes"
+patch_args=-Np0
 
 hostmakedepends="automake flex git gperf hyphen icu libtool openldap which gettext xz
  perl-Archive-Zip pkg-config qt5-qmake sane ucpp unzip wget zip python3-setuptools
diff --git a/srcpkgs/libretro-mupen64plus-rpi/template b/srcpkgs/libretro-mupen64plus-rpi/template
index 47752ab573e9..2bf1f3af3e60 100644
--- a/srcpkgs/libretro-mupen64plus-rpi/template
+++ b/srcpkgs/libretro-mupen64plus-rpi/template
@@ -14,6 +14,7 @@ homepage="http://www.libretro.com/"
 distfiles="https://github.com/libretro/mupen64plus-libretro/archive/${_gitrev}.tar.gz"
 checksum=947abfb1d5ff34d6b22fecfb2df02bd3759fde3f4a0e5d238f65ec7e97d964d4
 conflicts="ĺibretro-mupen64plus>=0"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libretro-mupen64plus/template b/srcpkgs/libretro-mupen64plus/template
index 81adcec5d655..66259516c750 100644
--- a/srcpkgs/libretro-mupen64plus/template
+++ b/srcpkgs/libretro-mupen64plus/template
@@ -13,6 +13,7 @@ homepage="http://www.libretro.com/"
 distfiles="https://github.com/libretro/mupen64plus-libretro/archive/${_gitrev}.tar.gz"
 checksum=947abfb1d5ff34d6b22fecfb2df02bd3759fde3f4a0e5d238f65ec7e97d964d4
 conflicts="ĺibretro-mupen64plus-rpi>=0"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*) hostmakedepends+=" nasm";;
diff --git a/srcpkgs/librtas/template b/srcpkgs/librtas/template
index 65951b25fe13..f7d9c0411d49 100644
--- a/srcpkgs/librtas/template
+++ b/srcpkgs/librtas/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/ibm-power-utilities/librtas"
 distfiles="https://github.com/ibm-power-utilities/librtas/archive/v${version}.tar.gz"
 checksum=b47b2a6f140347ac265e2c66ddf68293f6cdcc7c0c9a78c6e21ff52846465415
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/libscrypt/template b/srcpkgs/libscrypt/template
index f3777bab08e8..debdb6e9c44b 100644
--- a/srcpkgs/libscrypt/template
+++ b/srcpkgs/libscrypt/template
@@ -9,6 +9,7 @@ license="2-clause-BSD"
 homepage="https://github.com/technion/"
 distfiles="https://github.com/technion/${pkgname}/archive/v${version}.tar.gz"
 checksum=68e377e79745c10d489b759b970e52d819dbb80dd8ca61f8c975185df3f457d3
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libsearpc/template b/srcpkgs/libsearpc/template
index 22fbb7987d06..8d527de8c27c 100644
--- a/srcpkgs/libsearpc/template
+++ b/srcpkgs/libsearpc/template
@@ -17,6 +17,7 @@ homepage="https://seafile.com"
 distfiles="https://github.com/haiwen/libsearpc/archive/${_gitrev}.tar.gz"
 checksum=2a58894cefbc1d7398581fc58103261688c93a9cf63f11afc5e92142ed948c00
 python_version=3
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/libselinux/template b/srcpkgs/libselinux/template
index fdd8d639932e..ec31b411ef3f 100644
--- a/srcpkgs/libselinux/template
+++ b/srcpkgs/libselinux/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://www.nsa.gov/what-we-do/research/selinux/"
 distfiles="https://github.com/SELinuxProject/selinux/releases/download/20191204/${pkgname}-${version}.tar.gz"
 checksum=2ea2b30f671dae9d6b1391cbe8fb2ce5d36a3ee4fb1cd3c32f0d933c31b82433
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" musl-fts-devel"
diff --git a/srcpkgs/libsigrokdecode/template b/srcpkgs/libsigrokdecode/template
index 8be3b7363730..a06923caeec7 100644
--- a/srcpkgs/libsigrokdecode/template
+++ b/srcpkgs/libsigrokdecode/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://sigrok.org/"
 distfiles="https://sigrok.org/download/source/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c50814aa6743cd8c4e88c84a0cdd8889d883c3be122289be90c63d7d67883fc0
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf
diff --git a/srcpkgs/libsigsegv/template b/srcpkgs/libsigsegv/template
index 13352c58bc46..977989a1db50 100644
--- a/srcpkgs/libsigsegv/template
+++ b/srcpkgs/libsigsegv/template
@@ -10,6 +10,7 @@ homepage="https://www.gnu.org/software/libsigsegv/"
 distfiles="https://ftpmirror.gnu.org/libsigsegv/libsigsegv-${version}.tar.gz"
 checksum=3ae1af359eebaa4ffc5896a1aee3568c052c99879316a1ab57f8fe1789c390b6
 configure_args="--enable-shared"
+patch_args=-Np0
 
 post_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/libsmbios/template b/srcpkgs/libsmbios/template
index 998437288504..fbd3633b480c 100644
--- a/srcpkgs/libsmbios/template
+++ b/srcpkgs/libsmbios/template
@@ -16,6 +16,7 @@ checksum=36c36a0f6b59190d6b4fef11696886e4511091929a5eb7ae7cf5fea0c32d3f58
 # explicitly list the subpackages to make sure they are installed in the
 # right order:
 subpackages="libsmbios-devel python3-libsmbios libsmbios-utils"
+patch_args=-Np0
 
 archs="i686* x86_64*"
 
diff --git a/srcpkgs/libspnav/template b/srcpkgs/libspnav/template
index df35072b2404..af3966aa1fd7 100644
--- a/srcpkgs/libspnav/template
+++ b/srcpkgs/libspnav/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://spacenav.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/spacenav/${pkgname}-${version}.tar.gz"
 checksum=7ae4d7bb7f6a5dda28b487891e01accc856311440f582299760dace6ee5f1f93
+patch_args=-Np0
 
 do_build() {
 	make CC="${CC}" AR="${AR}"
diff --git a/srcpkgs/libssh/template b/srcpkgs/libssh/template
index 9b57379bfc88..9c3194a779cf 100644
--- a/srcpkgs/libssh/template
+++ b/srcpkgs/libssh/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://www.libssh.org/"
 distfiles="https://git.libssh.org/projects/libssh.git/snapshot/${pkgname}-${version}.tar.gz"
 checksum=df65d6054554e8ff5458628808ce8d68b928175f4fefa1c833582b9568491e64
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args="-DHAVE_GLOB=0" ;;
diff --git a/srcpkgs/libtecla/template b/srcpkgs/libtecla/template
index 7055a50a638a..ee59c9c33667 100644
--- a/srcpkgs/libtecla/template
+++ b/srcpkgs/libtecla/template
@@ -11,6 +11,7 @@ license="MIT/X11"
 homepage="http://www.astro.caltech.edu/~mcs/tecla"
 distfiles="${homepage}/${pkgname}-${version}.tar.gz"
 checksum=f2757cc55040859fcf8f59a0b7b26e0184a22bece44ed9568a4534a478c1ee1a
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.TERMS LICENSE
diff --git a/srcpkgs/libticables2/template b/srcpkgs/libticables2/template
index 17f06ace976a..947288493728 100644
--- a/srcpkgs/libticables2/template
+++ b/srcpkgs/libticables2/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.ticalc.org"
 distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${_tilpver}/${pkgname}-${version}.tar.bz2"
 checksum=0c6fb6516e72ccab081ddb3aecceff694ed93aec689ddd2edba9c7c7406c4522
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" gettext-devel"
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index b9972df70341..1eafc55f90bb 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.gnu.org/software/libtool"
 distfiles="${GNU_SITE}/libtool/$pkgname-$version.tar.xz"
 checksum=7c87a8c2c8c0fc9cd5019e402bed4292462d00a718a7cd5f11218153bf28b26f
+patch_args=-Np0
 
 pre_configure() {
 	touch aclocal.m4 libltdl/aclocal.m4 Makefile.am libltdl/Makefile.am Makefile.in libltdl/Makefile.in
diff --git a/srcpkgs/libtorrent/template b/srcpkgs/libtorrent/template
index cadf0f5bb1dc..c358b89ebffe 100644
--- a/srcpkgs/libtorrent/template
+++ b/srcpkgs/libtorrent/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/rakshasa/libtorrent"
 distfiles="https://github.com/rakshasa/libtorrent/archive/v${version}.tar.gz"
 checksum=0f6c2e7ffd3a1723ab47fdac785ec40f85c0a5b5a42c1d002272205b988be722
+patch_args=-Np0
 
 # https://github.com/rakshasa/rtorrent/issues/156
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/libu2f-host/template b/srcpkgs/libu2f-host/template
index c2cd5b754dca..e8a14e5d4f39 100644
--- a/srcpkgs/libu2f-host/template
+++ b/srcpkgs/libu2f-host/template
@@ -15,6 +15,7 @@ homepage="https://developers.yubico.com/libu2f-host/"
 #changelog="https://raw.githubusercontent.com/Yubico/libu2f-host/master/NEWS"
 distfiles="https://github.com/Yubico/libu2f-host/archive/libu2f-host-${version}.tar.gz"
 checksum=45937c6c04349f865d9f047d3a68cc50ea24e9085d18ac2c7d31fa38eb749303
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libu2f-server/template b/srcpkgs/libu2f-server/template
index 661fc934531f..334b9bbe754a 100644
--- a/srcpkgs/libu2f-server/template
+++ b/srcpkgs/libu2f-server/template
@@ -12,6 +12,7 @@ license="BSD"
 homepage="https://developers.yubico.com/libu2f-server/"
 distfiles="https://github.com/Yubico/libu2f-server/archive/libu2f-server-${version}.tar.gz"
 checksum=6551109e692c9c4fea61e99f1cd8377e8e54e3033e421cc191da6d673311c860
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libucl/template b/srcpkgs/libucl/template
index 04b2608684d2..d5440d9b9606 100644
--- a/srcpkgs/libucl/template
+++ b/srcpkgs/libucl/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/vstakhov/libucl"
 distfiles="https://github.com/vstakhov/libucl/archive/${version}.tar.gz"
 checksum=a6397e179672f0e8171a0f9a2cfc37e01432b357fd748b13f4394436689d24ef
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/libuninum/template b/srcpkgs/libuninum/template
index e66a1df67ece..d2278fa24568 100644
--- a/srcpkgs/libuninum/template
+++ b/srcpkgs/libuninum/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-only"
 homepage="http://billposer.org/Software/libuninum.html"
 distfiles="http://billposer.org/Software/Downloads/libuninum-${version}.tar.bz2"
 checksum=e704983c3c00e9b76bd836b8b83ce31bfe4eb1752eee8be123cf97c1275076ea
+patch_args=-Np0
 
 libuninum-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libunique/template b/srcpkgs/libunique/template
index db488533acbf..316b811bfb7e 100644
--- a/srcpkgs/libunique/template
+++ b/srcpkgs/libunique/template
@@ -13,6 +13,7 @@ license="LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Attic/LibUnique"
 distfiles="${GNOME_SITE}/${pkgname}/3.0/${pkgname}-${version}.tar.bz2"
 checksum=50269a87c7aabf1e25f01b3bbb280133138ffd7b6776289894c614a4b6ca968d
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/libunwind/template b/srcpkgs/libunwind/template
index d4819ce54acd..808d89e49847 100644
--- a/srcpkgs/libunwind/template
+++ b/srcpkgs/libunwind/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://www.nongnu.org/libunwind/"
 distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version/rc/-rc}.tar.gz"
 checksum=90337653d92d4a13de590781371c604f9031cdb50520366aa1e3a91e1efb1017
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/libusb-compat/template b/srcpkgs/libusb-compat/template
index 016d5753f1d6..05585a0ad57a 100644
--- a/srcpkgs/libusb-compat/template
+++ b/srcpkgs/libusb-compat/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="http://libusb.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/libusb/$pkgname-$version.tar.bz2"
 checksum=404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a
+patch_args=-Np0
 
 libusb-compat-devel_package() {
 	depends="libusb-devel ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/libusb/template b/srcpkgs/libusb/template
index 8c5ff6054eed..6ec291f0778d 100644
--- a/srcpkgs/libusb/template
+++ b/srcpkgs/libusb/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://libusb.info"
 distfiles="https://github.com/libusb/libusb/releases/download/v${version}/libusb-${version}.tar.bz2"
 checksum=7efd2685f7b327326dcfb85cee426d9b871fd70e22caa15bb68d595ce2a2b12a
+patch_args=-Np0
 
 libusb-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/libusbmuxd/template b/srcpkgs/libusbmuxd/template
index e3ae03e51b9c..192aa8b4a0dc 100644
--- a/srcpkgs/libusbmuxd/template
+++ b/srcpkgs/libusbmuxd/template
@@ -12,6 +12,7 @@ homepage="https://libimobiledevice.org"
 changelog="https://raw.githubusercontent.com/libimobiledevice/libusbmuxd/master/NEWS"
 distfiles="https://github.com/libimobiledevice/libusbmuxd/archive/${version}.tar.gz"
 checksum=8ae3e1d9340177f8f3a785be276435869363de79f491d05d8a84a59efc8a8fdc
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libuv/template b/srcpkgs/libuv/template
index 76a36863f4b9..24938fe4bc0e 100644
--- a/srcpkgs/libuv/template
+++ b/srcpkgs/libuv/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/libuv/libuv/archive/v${version}.tar.gz"
 checksum=6cfeb5f4bab271462b4a2cc77d4ecec847fdbdc26b72019c27ae21509e6f94fa
 # the tests fail when run as root and as such break in the CI containers
 make_check="extended"
+patch_args=-Np0
 
 LDFLAGS="-pthread"
 
diff --git a/srcpkgs/libvdpau/template b/srcpkgs/libvdpau/template
index 8b1c817cfd07..81fa6d314465 100644
--- a/srcpkgs/libvdpau/template
+++ b/srcpkgs/libvdpau/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://freedesktop.org/wiki/Software/VDPAU/"
 distfiles="https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/${version}/libvdpau-${version}.tar.gz"
 checksum=240dd8f9ec08de707529917677827ba12e13b9fc299eeb3af13ea05e7fc74aba
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libvidstab/template b/srcpkgs/libvidstab/template
index 6d28468873b5..acd85fc894a0 100644
--- a/srcpkgs/libvidstab/template
+++ b/srcpkgs/libvidstab/template
@@ -11,6 +11,7 @@ license="GPL-2"
 homepage="http://public.hronopik.de/vid.stab/"
 distfiles="https://github.com/georgmartius/vid.stab/archive/v${version}.tar.gz"
 checksum=14d2a053e56edad4f397be0cb3ef8eb1ec3150404ce99a426c4eb641861dc0bb
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e 's/include (FindSSE)//' CMakeLists.txt
diff --git a/srcpkgs/libvirt-glib/template b/srcpkgs/libvirt-glib/template
index 032188df7f73..568e921d9902 100644
--- a/srcpkgs/libvirt-glib/template
+++ b/srcpkgs/libvirt-glib/template
@@ -16,6 +16,7 @@ homepage="https://libvirt.org"
 distfiles="http://libvirt.org/sources/glib/${pkgname}-${version}.tar.xz"
 checksum=8423f7069daa476307321d1c11e2ecc285340cd32ca9fc05207762843edeacbd
 replaces="libvirt-glib-python>=0"
+patch_args=-Np0
 
 build_options="doc gir vala"
 build_options_default="gir vala"
diff --git a/srcpkgs/libwmf/template b/srcpkgs/libwmf/template
index 938d07c5e6b4..c427559b43c9 100644
--- a/srcpkgs/libwmf/template
+++ b/srcpkgs/libwmf/template
@@ -17,6 +17,7 @@ homepage="http://wvware.sourceforge.net/libwmf.html"
 license="LGPL-2.1"
 distfiles="${SOURCEFORGE_SITE}/wvware/${pkgname}-${version}.tar.gz"
 checksum=5b345c69220545d003ad52bfd035d5d6f4f075e65204114a9e875e84895a7cf8
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libxdg-basedir/template b/srcpkgs/libxdg-basedir/template
index f9cc8880c438..f572dd6294c7 100644
--- a/srcpkgs/libxdg-basedir/template
+++ b/srcpkgs/libxdg-basedir/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/devnev/libxdg-basedir"
 distfiles="https://github.com/devnev/libxdg-basedir/archive/libxdg-basedir-${version}.tar.gz"
 checksum=1c2b0032a539033313b5be2e48ddd0ae94c84faf21d93956d53562eef4614868
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libxkbcommon/template b/srcpkgs/libxkbcommon/template
index 3cfefeb295d2..26668752a01f 100644
--- a/srcpkgs/libxkbcommon/template
+++ b/srcpkgs/libxkbcommon/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="https://xkbcommon.org/"
 distfiles="https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-${version}.tar.gz"
 checksum=e1b79838256549d72f42c824f720b4f14603374cfbe5587942e35a0cbb13ff9e
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/libxml2-python/template b/srcpkgs/libxml2-python/template
index 4208519dac3e..dca8e06333d5 100644
--- a/srcpkgs/libxml2-python/template
+++ b/srcpkgs/libxml2-python/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.xmlsoft.org/"
 distfiles="http://xmlsoft.org/sources/libxml2-${version}.tar.gz"
 checksum=aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f
+patch_args=-Np0
 
 post_patch() {
 	if [ "${CROSS_BUILD}" ]; then
diff --git a/srcpkgs/libxml2/template b/srcpkgs/libxml2/template
index c334f505ed0c..b45761f66b27 100644
--- a/srcpkgs/libxml2/template
+++ b/srcpkgs/libxml2/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="http://www.xmlsoft.org/"
 distfiles="http://xmlsoft.org/sources/${pkgname}-${version}.tar.gz"
 checksum=aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libxo/template b/srcpkgs/libxo/template
index fb0ae8cb85ca..0990f737af5b 100644
--- a/srcpkgs/libxo/template
+++ b/srcpkgs/libxo/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="https://juniper.github.io/libxo/libxo-manual.html"
 distfiles="https://github.com/Juniper/libxo/releases/download/${version}/libxo-${version}.tar.gz"
 checksum=aa842d9374bc0c640d9526abdeb6f1dc75c1a14e892eafd3c9e0ee2e8dfc1c43
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	*-musl)
diff --git a/srcpkgs/libzim/template b/srcpkgs/libzim/template
index fe3c53109803..bac5a114bbea 100644
--- a/srcpkgs/libzim/template
+++ b/srcpkgs/libzim/template
@@ -15,6 +15,7 @@ changelog="https://github.com/openzim/libzim/blob/${version}/ChangeLog"
 distfiles="https://github.com/openzim/libzim/archive/${version}.tar.gz"
 checksum=984d2f3881c507c9f0212dc2bc1b808d25cdeef6a62043f9211fcb78a231a986
 replaces="libzim-tools>=0"
+patch_args=-Np0
 
 build_options="xapian zlib zstd"
 build_options_default="xapian zlib zstd"
diff --git a/srcpkgs/lightdm-webkit2-greeter/template b/srcpkgs/lightdm-webkit2-greeter/template
index da5786768de8..376d8eb4c661 100644
--- a/srcpkgs/lightdm-webkit2-greeter/template
+++ b/srcpkgs/lightdm-webkit2-greeter/template
@@ -15,6 +15,7 @@ homepage="https://github.com/Antergos/web-greeter"
 distfiles="https://github.com/Antergos/web-greeter/archive/${version}.tar.gz"
 checksum=f3223db35d0efaae76b2157f312dd10979c133f5a85add8fc75fd66ecb3186e3
 conf_files="/etc/lightdm/lightdm-webkit2-greeter.conf"
+patch_args=-Np0
 
 post_extract() {
 	mv themes/antergos themes/void
diff --git a/srcpkgs/lightdm/template b/srcpkgs/lightdm/template
index b2fed5ac3c6a..cf14f96c4bf0 100644
--- a/srcpkgs/lightdm/template
+++ b/srcpkgs/lightdm/template
@@ -14,6 +14,7 @@ homepage="https://github.com/CanonicalLtd/lightdm"
 changelog="https://raw.githubusercontent.com/CanonicalLtd/lightdm/master/NEWS"
 distfiles="https://github.com/CanonicalLtd/lightdm/releases/download/${version}/lightdm-${version}.tar.xz"
 checksum=a118779650a3a5b20f05d53c4f9e377b484fbc1810a6b0914a60840d9a581f95
+patch_args=-Np0
 
 hostmakedepends="pkg-config intltool itstool $(vopt_if gir 'gobject-introspection vala')"
 makedepends="dbus-glib-devel libxklavier-devel libxml2-devel
diff --git a/srcpkgs/lighttpd/template b/srcpkgs/lighttpd/template
index 7ae82aecfc33..d52c74622bc0 100644
--- a/srcpkgs/lighttpd/template
+++ b/srcpkgs/lighttpd/template
@@ -21,6 +21,7 @@ license="BSD-3-Clause"
 homepage="https://lighttpd.net"
 distfiles="https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${version}.tar.xz"
 checksum=fb953db273daef08edb6e202556cae8a3d07eed6081c96bd9903db957d1084d5
+patch_args=-Np0
 
 conf_files="/etc/lighttpd/lighttpd.conf"
 system_accounts="_${pkgname}"
diff --git a/srcpkgs/lightzone/template b/srcpkgs/lightzone/template
index 13242f01cc77..ca214c932783 100644
--- a/srcpkgs/lightzone/template
+++ b/srcpkgs/lightzone/template
@@ -19,6 +19,7 @@ skip_extraction="ivy-${_ivy_version}.jar"
 # JNI binaries are not PIE
 nopie=yes
 replaces="lightzone-bin>=0"
+patch_args=-Np0
 
 do_build() {
 	mkdir -p lightcrafts/lib
diff --git a/srcpkgs/lilo/template b/srcpkgs/lilo/template
index f42a9eb5f5ba..bc8f1699d587 100644
--- a/srcpkgs/lilo/template
+++ b/srcpkgs/lilo/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://www.joonet.de/lilo"
 distfiles="${DEBIAN_SITE}/main/l/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=e158f19de4560c935ebe0507c21b79bff17618b9230d8076fe8c5fff9fdbd5b1
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/lilyterm/template b/srcpkgs/lilyterm/template
index 31bc2ad9dc05..deadaa80f37e 100644
--- a/srcpkgs/lilyterm/template
+++ b/srcpkgs/lilyterm/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/Tetralet/LilyTerm/archive/$_githash.tar.gz"
 conf_files="/etc/lilyterm.conf"
 checksum=e777122cb4db0c75b893368aa5a3ae7de1bdfe27e1efb8fad8f9c19acb0a802e
 CFLAGS="-Wno-deprecated-declarations"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e '/LDFLAGS.*BINARY/s/$/ -lX11/' \
diff --git a/srcpkgs/linphone-desktop/template b/srcpkgs/linphone-desktop/template
index 3991291c0b7f..5526b11c727b 100644
--- a/srcpkgs/linphone-desktop/template
+++ b/srcpkgs/linphone-desktop/template
@@ -19,6 +19,7 @@ checksum=a9c520851ec40ebd6bc28b5ebc0e4d2b5f62ef3b53e5d60bb241c0b2bd56ad62
 replaces="linphone-gui>=0"
 CFLAGS="-DLINPHONE_QT_GIT_VERSION=\\\"$version\\\""
 CXXFLAGS="-DLINPHONE_QT_GIT_VERSION=\\\"$version\\\""
+patch_args=-Np0
 
 linphone-gui_package() {
 	short_desc+=" - (transitional dummy package)"
diff --git a/srcpkgs/linssid/template b/srcpkgs/linssid/template
index 3347f193c3e7..6cfe9177df4c 100644
--- a/srcpkgs/linssid/template
+++ b/srcpkgs/linssid/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="https://sourceforge.net/projects/linssid/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=57301ee93f708f2512316668bf4e718502f37f21a5e93b68fc604a9032e3e49c
+patch_args=-Np0
 
 pre_configure() {
 	sed -e "s%/usr/include%${XBPS_CROSS_BASE}&%g" -i linssid-app/linssid-app.pro
diff --git a/srcpkgs/linux-tools/template b/srcpkgs/linux-tools/template
index f28f2b17ac19..a57726ab0076 100644
--- a/srcpkgs/linux-tools/template
+++ b/srcpkgs/linux-tools/template
@@ -18,6 +18,7 @@ homepage="https://www.kernel.org"
 distfiles="${KERNEL_SITE}/kernel/v5.x/linux-${version}.tar.xz"
 checksum=904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
 python_version=3
+patch_args=-Np0
 
 subpackages="cpupower freefall libcpupower libcpupower-devel libusbip libusbip-devel perf tmon usbip"
 
diff --git a/srcpkgs/linux-vt-setcolors/template b/srcpkgs/linux-vt-setcolors/template
index fa3f7681b75b..e46c87d3c50a 100644
--- a/srcpkgs/linux-vt-setcolors/template
+++ b/srcpkgs/linux-vt-setcolors/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/EvanPurkhiser/linux-vt-setcolors"
 distfiles="https://github.com/EvanPurkhiser/linux-vt-setcolors/archive/v${version}.tar.gz"
 checksum=ccad9aac5732faab749e8f6f6b40746ce44afec5633374aa77c8e3ac2a8eef42
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/linux4.4/template b/srcpkgs/linux4.4/template
index db6cf3d38e5f..152619d3ebf2 100644
--- a/srcpkgs/linux4.4/template
+++ b/srcpkgs/linux4.4/template
@@ -13,6 +13,7 @@ checksum="401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2
  7fe0edc77e6ba8d41035488402a2f05c58a64c101cb5556ea0f6e229dc306eed"
 skip_extraction="patch-${version}.xz"
 python_version=2 #unverified
+patch_args=-Np0
 
 nocross=yes
 nodebug=yes
diff --git a/srcpkgs/liquid-dsp/template b/srcpkgs/liquid-dsp/template
index 432adac62cf7..aec6f7222b9b 100644
--- a/srcpkgs/liquid-dsp/template
+++ b/srcpkgs/liquid-dsp/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://liquidsdr.org/"
 distfiles="https://github.com/jgaeddert/liquid-dsp/archive/v${version}.tar.gz"
 checksum=e3f66ce72a3b5d74eea5ccffb049c62c422c91b0ab92d6dbbef21af3c3bfec73
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/liquidwar/template b/srcpkgs/liquidwar/template
index 69bc87d1b1a7..5ef7aa9a4964 100644
--- a/srcpkgs/liquidwar/template
+++ b/srcpkgs/liquidwar/template
@@ -15,6 +15,7 @@ homepage="http://www.ufoot.org/liquidwar"
 distfiles="http://www.ufoot.org/download/${pkgname}/v5/${version}/${pkgname}-${version}.tar.gz"
 checksum=dad0aa84dd416cad055421ed9b40df39efae78d3df759c0583c64c54f7f2ff5f
 nocross="run build artifarts"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/litecoin/template b/srcpkgs/litecoin/template
index fc91bb89f120..3837c269d323 100644
--- a/srcpkgs/litecoin/template
+++ b/srcpkgs/litecoin/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.litecoin.org/"
 distfiles="https://github.com/litecoin-project/litecoin/archive/v${version}.tar.gz"
 checksum=2d67cba11adc5890b9698ccddeb68dd3c2ff6af19bf3ed0f1c719348b914042f
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools protobuf"
diff --git a/srcpkgs/llvm11/template b/srcpkgs/llvm11/template
index 6204f1e8e369..98b0af1bd19c 100644
--- a/srcpkgs/llvm11/template
+++ b/srcpkgs/llvm11/template
@@ -26,6 +26,7 @@ checksum="
  913f68c898dfb4a03b397c5e11c6a2f39d0f22ed7665c9cefa87a34423a72469"
 lib32disabled=yes
 python_version=3
+patch_args=-Np0
 
 post_patch() {
 	# patches
diff --git a/srcpkgs/llvm12/template b/srcpkgs/llvm12/template
index 38937f68564f..c4ed10574d23 100644
--- a/srcpkgs/llvm12/template
+++ b/srcpkgs/llvm12/template
@@ -56,6 +56,7 @@ checksum="
  eb1b7022a247332114985ed155a8fb632c28ce7c35a476e2c0caf865150f167d"
 lib32disabled=yes
 python_version=3
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" -DLIBCXX_HAS_MUSL_LIBC=YES"
diff --git a/srcpkgs/lmdb/template b/srcpkgs/lmdb/template
index 14509699fc5e..f2900a390a98 100644
--- a/srcpkgs/lmdb/template
+++ b/srcpkgs/lmdb/template
@@ -9,6 +9,7 @@ license="OLDAP-2.8"
 homepage="http://symas.com/mdb/"
 distfiles="https://github.com/LMDB/lmdb/archive/LMDB_${version}.tar.gz"
 checksum=22054926b426c66d8f2bc22071365df6e35f3aacf19ad943bc6167d4cae3bebb
+patch_args=-Np0
 
 do_build() {
 	cd libraries/liblmdb
diff --git a/srcpkgs/lmms/template b/srcpkgs/lmms/template
index 15b67a8f222c..a07507954e9a 100644
--- a/srcpkgs/lmms/template
+++ b/srcpkgs/lmms/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later"
 homepage="https://lmms.io/"
 distfiles="https://github.com/LMMS/lmms/releases/download/v${version}/lmms_${version}.tar.xz"
 checksum=b185507fb64ecfd8e31145135b58ab244b637f9efc09c4176caf70aa3cbaae1e
+patch_args=-Np0
 
 build_options="sndio"
 build_options_default="sndio"
diff --git a/srcpkgs/log4cxx/template b/srcpkgs/log4cxx/template
index 269147155f8e..2e64c18f71b2 100644
--- a/srcpkgs/log4cxx/template
+++ b/srcpkgs/log4cxx/template
@@ -11,6 +11,7 @@ homepage="https://logging.apache.org/log4cxx/"
 distfiles="http://apache.osuosl.org/logging/log4cxx/${version}/apache-log4cxx-${version}.tar.gz"
 checksum=0de0396220a9566a580166e66b39674cb40efd2176f52ad2c65486c99c920c8c
 wrksrc="apache-${pkgname}-${version}"
+patch_args=-Np0
 
 log4cxx-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/loksh/template b/srcpkgs/loksh/template
index 327ac3a7583d..54c65566e151 100644
--- a/srcpkgs/loksh/template
+++ b/srcpkgs/loksh/template
@@ -12,6 +12,7 @@ homepage="https://github.com/dimkr/loksh"
 distfiles="https://github.com/dimkr/loksh/releases/download/${version}/loksh-${version}.tar.xz"
 checksum=1633048cd5f1270c5fa28ab49d9cb9f7e8305ab6880601b0c15b88ecb92450f9
 register_shell="/bin/loksh"
+patch_args=-Np0
 
 alternatives="
  ksh:ksh:/usr/bin/loksh
diff --git a/srcpkgs/loudmouth/template b/srcpkgs/loudmouth/template
index 4178683d5de9..6dedbb71f7c0 100644
--- a/srcpkgs/loudmouth/template
+++ b/srcpkgs/loudmouth/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/mcabber/loudmouth"
 distfiles="https://github.com/mcabber/${pkgname}/archive/${version}.tar.gz"
 checksum=12972fcffd9bbcc4a3b2b9fbf4b0e549f7b4caf0f11c8d2af2059087ce4e8792
+patch_args=-Np0
 
 CFLAGS+=" -Wno-deprecated-declarations"
 
diff --git a/srcpkgs/lshw/template b/srcpkgs/lshw/template
index 6ba1bb44a956..88a5887251ba 100644
--- a/srcpkgs/lshw/template
+++ b/srcpkgs/lshw/template
@@ -16,6 +16,7 @@ license="GPL-2.0-only"
 homepage="https://ezix.org/project/wiki/HardwareLiSter"
 distfiles="https://ezix.org/software/files/lshw-${version}.tar.gz"
 checksum=9bb347ac87142339a366a1759ac845e3dbb337ec000aa1b99b50ac6758a80f80
+patch_args=-Np0
 
 post_patch() {
 	vsed -i src/Makefile src/gui/Makefile \
diff --git a/srcpkgs/ltrace/template b/srcpkgs/ltrace/template
index a26e64e3c797..4a44438964b1 100644
--- a/srcpkgs/ltrace/template
+++ b/srcpkgs/ltrace/template
@@ -13,6 +13,7 @@ homepage="http://ltrace.org"
 license="GPL-2"
 distfiles="https://github.com/dkogan/ltrace/archive/${_githash}.tar.gz"
 checksum=4aecf69e4a33331aed1e50ce4907e73a98cbccc4835febc3473863474304d547
+patch_args=-Np0
 
 CFLAGS="-Wno-error -D_GNU_SOURCE"
 
diff --git a/srcpkgs/lttng-tools/template b/srcpkgs/lttng-tools/template
index 96d4061584e3..b1ed6c1ad5ad 100644
--- a/srcpkgs/lttng-tools/template
+++ b/srcpkgs/lttng-tools/template
@@ -15,6 +15,7 @@ checksum=d729f8c2373a41194f171aeb0da0a9bb35ac181f31afa7e260786d19a500dea1
 # tests timeout
 make_check=no
 system_groups="tracing"
+patch_args=-Np0
 
 lttng-tools-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 63a505b4ecf4..58efbb3ff67b 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://w3.impa.br/~diego/software/luasocket/"
 distfiles="http://luaforge.net/frs/download.php/2664/luasocket-${version}.tar.gz"
 checksum=4fd9c775cfd98841299851e29b30176caf289370fea1ff1e00bb67c2d6842ca6
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC LD=$CC LUAINC=-I${XBPS_CROSS_BASE}/usr/include/lua5.1 ${makejobs}
diff --git a/srcpkgs/lua51/template b/srcpkgs/lua51/template
index 7aad299f0757..d57fdad05f18 100644
--- a/srcpkgs/lua51/template
+++ b/srcpkgs/lua51/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-$version.tar.gz"
 checksum=2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.1
diff --git a/srcpkgs/lua52/template b/srcpkgs/lua52/template
index f53cb345ebca..a8406f18d627 100644
--- a/srcpkgs/lua52/template
+++ b/srcpkgs/lua52/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-$version.tar.gz"
 checksum=b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.2
diff --git a/srcpkgs/lua53/template b/srcpkgs/lua53/template
index 7a923690a566..ac63a8bc1592 100644
--- a/srcpkgs/lua53/template
+++ b/srcpkgs/lua53/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-${version}.tar.gz"
 checksum=0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.3
diff --git a/srcpkgs/lua54-lgi/template b/srcpkgs/lua54-lgi/template
index abae56cc4310..9be201629b8d 100644
--- a/srcpkgs/lua54-lgi/template
+++ b/srcpkgs/lua54-lgi/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://github.com/pavouk/lgi"
 distfiles="https://github.com/pavouk/lgi/archive/$version.tar.gz"
 checksum=cfc4105482b4730b3a40097c9d9e7e35c46df2fb255370bdeb2f45a886548c4f
+patch_args=-Np0
 
 # requires X11
 do_check() {
diff --git a/srcpkgs/lua54-lualdap/template b/srcpkgs/lua54-lualdap/template
index 386222ce0c6d..d5379fc6e586 100644
--- a/srcpkgs/lua54-lualdap/template
+++ b/srcpkgs/lua54-lualdap/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/lualdap/lualdap"
 distfiles="https://github.com/lualdap/lualdap/archive/v${version}.tar.gz"
 checksum=3e028faa6a5798cf2f3d50b9853b9b3fb6eb562b62010747bd5b6f50b57bb1cc
+patch_args=-Np0
 
 post_patch() {
 	cd ${wrksrc}
diff --git a/srcpkgs/lua54/template b/srcpkgs/lua54/template
index 1abbe11246f1..1b4696399797 100644
--- a/srcpkgs/lua54/template
+++ b/srcpkgs/lua54/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://www.lua.org"
 distfiles="https://www.lua.org/ftp/lua-${version}.tar.gz"
 checksum=f8612276169e3bfcbcfb8f226195bfc6e466fe13042f1076cbde92b7ec96bbfb
+patch_args=-Np0
 
 alternatives="
  lua:lua:/usr/bin/lua5.4
diff --git a/srcpkgs/luakit/template b/srcpkgs/luakit/template
index 4fa00bb75712..aa089acc9dea 100644
--- a/srcpkgs/luakit/template
+++ b/srcpkgs/luakit/template
@@ -14,6 +14,7 @@ homepage="https://luakit.github.io/"
 changelog="https://github.com/luakit/luakit/blob/develop/CHANGELOG.md"
 distfiles="https://github.com/luakit/luakit/archive/${version}.tar.gz"
 checksum=c7026b4f0bdfa44f43798b80f87548d3e7ad56f5b923fc43b9c712bf18496095
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/lumina/template b/srcpkgs/lumina/template
index ed7ef97adfba..b2451f5dc92b 100644
--- a/srcpkgs/lumina/template
+++ b/srcpkgs/lumina/template
@@ -16,6 +16,7 @@ homepage="https://github.com/lumina-desktop/lumina"
 distfiles="https://github.com/lumina-desktop/lumina/archive/v${version}.tar.gz"
 checksum=f3512fca4d05e3cf3a6ac106f0f16c9618bda9fa546f1d23ffb0eab9a5ce7c8a
 replaces="lumina-git>=0"
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/lvm2/template b/srcpkgs/lvm2/template
index b7d287577c32..b04e9a0d46a1 100644
--- a/srcpkgs/lvm2/template
+++ b/srcpkgs/lvm2/template
@@ -24,6 +24,7 @@ conf_files="/etc/lvm/*.conf /etc/lvm/profile/*"
 make_dirs="
  /etc/lvm/archive 0755 root root
  /etc/lvm/backup 0755 root root"
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	*-musl) configure_args+=" --enable-static_link";;
diff --git a/srcpkgs/lwipv6/template b/srcpkgs/lwipv6/template
index 66ce29f506e4..441fe3e7e9da 100644
--- a/srcpkgs/lwipv6/template
+++ b/srcpkgs/lwipv6/template
@@ -11,6 +11,7 @@ homepage="http://wiki.v2.cs.unibo.it/wiki/index.php/LWIPV6"
 distfiles="${SOURCEFORGE_SITE}/view-os/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
 checksum=4ad9415c0bf9a2aca0aa858ac1601c20d7c04b5d051d000d4a03eb1eeb0ed05a
 CPPFLAGS='-DGNU_SOURCE -D__USE_MISC -D__caddr_t=caddr_t'
+patch_args=-Np0
 
 lwipv6-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/lxappearance/template b/srcpkgs/lxappearance/template
index 7fcaad225f8d..f1475690dc04 100644
--- a/srcpkgs/lxappearance/template
+++ b/srcpkgs/lxappearance/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=7222d858b8fef4b7967c42142d61e82ded6dd42dc5ef1d59caad775795928b38
+patch_args=-Np0
 
 build_options="gtk3 dbus"
 build_options_default="dbus gtk3"
diff --git a/srcpkgs/lxdm/template b/srcpkgs/lxdm/template
index 55ae9b5356eb..86684d3b5162 100644
--- a/srcpkgs/lxdm/template
+++ b/srcpkgs/lxdm/template
@@ -23,6 +23,7 @@ license="GPL-3.0-or-later"
 homepage="https://lxde.org"
 distfiles="${SOURCEFORGE_SITE}/lxdm/lxdm-${version}.tar.xz"
 checksum=4891efee81c72a400cc6703e40aa76f3f3853833d048b72ec805da0f93567f2f
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/lxpanel/template b/srcpkgs/lxpanel/template
index 6dff9ac554f9..3f3f3f2f98b0 100644
--- a/srcpkgs/lxpanel/template
+++ b/srcpkgs/lxpanel/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=1e318f57d7e36b61c23a504d03d2430c78dad142c1804451061f1b3ea5441ee8
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/lzf/template b/srcpkgs/lzf/template
index 1d4e437dc1d4..b8457facdcea 100644
--- a/srcpkgs/lzf/template
+++ b/srcpkgs/lzf/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="http://software.schmorp.de/pkg/liblzf.html"
 distfiles="http://dist.schmorp.de/liblzf/lib${pkgname}-${version}.tar.gz"
 checksum=9c5de01f7b9ccae40c3f619d26a7abec9986c06c36d260c179cedd04b89fb46a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/mDNSResponder/template b/srcpkgs/mDNSResponder/template
index c0425e7b34ee..9af08f79dff5 100644
--- a/srcpkgs/mDNSResponder/template
+++ b/srcpkgs/mDNSResponder/template
@@ -9,6 +9,7 @@ license="Apache-2.0, BSD-3-Clause"
 homepage="https://opensource.apple.com/"
 distfiles="https://opensource.apple.com/tarballs/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=097662447e1535573484697861d9f50eceaf2c52ec2742e451ee6ffe9bbf3e75
+patch_args=-Np0
 
 conf_files="/etc/nss_mdns.conf"
 conflicts="nss-mdns>=0"
diff --git a/srcpkgs/mairix/template b/srcpkgs/mairix/template
index 49f73671bcba..f0e7fdcce13b 100644
--- a/srcpkgs/mairix/template
+++ b/srcpkgs/mairix/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/vandry/mairix"
 distfiles="https://github.com/vandry/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=a0702e079c768b6fbe25687ebcbabe7965eb493d269a105998c7c1c2caef4a57
+patch_args=-Np0
 
 pre_build() {
 	make -C dfasyn CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS"
diff --git a/srcpkgs/makedumpfile/template b/srcpkgs/makedumpfile/template
index d23444187c90..cef2f4d14dab 100644
--- a/srcpkgs/makedumpfile/template
+++ b/srcpkgs/makedumpfile/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/makedumpfile/makedumpfile"
 distfiles="${homepage}/archive/refs/tags/${version}.tar.gz"
 checksum=393ea8f22393c059ad21de9b1c3f45d9d0d8dbeb0ccb1417815b835d03f7c350
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/makeself/template b/srcpkgs/makeself/template
index 4c498dce7734..68b71aa77a57 100644
--- a/srcpkgs/makeself/template
+++ b/srcpkgs/makeself/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="http://makeself.io"
 distfiles="https://github.com/megastep/makeself/archive/release-$version.tar.gz"
 checksum=8789312db5e93fc471a1e4fb88ec13227ef63a9c7aad297f3bbf35f9511f8d62
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/share/man/man1
diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template
index b13571dd4cd3..6317423767e2 100644
--- a/srcpkgs/mame/template
+++ b/srcpkgs/mame/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/mamedev/mame/archive/mame${version}.tar.gz"
 checksum=414921771ada0804a8c7f3540e33338e8495e16a3bca78a5a2b355abafa51e6a
 nodebug=yes
 replaces="sdlmame>=0 sdlmess>=0"
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.3 -I${XBPS_CROSS_BASE}/usr/include/libutf8proc"
 CXXFLAGS="$CFLAGS"
diff --git a/srcpkgs/man-db/template b/srcpkgs/man-db/template
index c8b873771d27..80bfd7964ff0 100644
--- a/srcpkgs/man-db/template
+++ b/srcpkgs/man-db/template
@@ -26,6 +26,7 @@ lib32disabled=yes
 system_accounts="_man"
 _man_homedir="/var/cache/man"
 make_dirs="/var/cache/man 0755 _man _man"
+patch_args=-Np0
 
 # among others, requires the _man user to be available in the masterdir
 make_check=no
diff --git a/srcpkgs/marble5/template b/srcpkgs/marble5/template
index 3efa3591ea58..5baadb8e3540 100644
--- a/srcpkgs/marble5/template
+++ b/srcpkgs/marble5/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later, GFDL-1.2-only"
 homepage="https://marble.kde.org"
 distfiles="${KDE_SITE}/release-service/${version}/src/marble-${version}.tar.xz"
 checksum=66e1fe73e248ba18245e2a1e234eecf49d531569b5080e19a4ca9dddbbbd0545
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e 's/-Wcast-align//'
diff --git a/srcpkgs/marco/template b/srcpkgs/marco/template
index 5abb62b91fec..3b36a8befada 100644
--- a/srcpkgs/marco/template
+++ b/srcpkgs/marco/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=498350cb12fc4d9c7c4a0355102c17b50043fbab258d11ad41b7d698b4f042a7
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/mariadb/template b/srcpkgs/mariadb/template
index a6176b43963e..5682c0078b72 100644
--- a/srcpkgs/mariadb/template
+++ b/srcpkgs/mariadb/template
@@ -35,6 +35,7 @@ system_accounts="mysql"
 mysql_homedir="/var/lib/mysql"
 make_dirs="/var/lib/mysql 0700 mysql mysql
  /usr/lib/mysql/plugin/auth_pam_tool_dir 0700 mysql root"
+patch_args=-Np0
 
 post_patch() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/masterpassword-cli/template b/srcpkgs/masterpassword-cli/template
index 8732491bfc55..8ce664513e5d 100644
--- a/srcpkgs/masterpassword-cli/template
+++ b/srcpkgs/masterpassword-cli/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/Lyndir/MasterPassword/archive/${version}-cli-3.tar
 checksum=35dc64bc74c04b534824c21da96e4a10fc7978da376fcc036d7ec08fd800ab7a
 # Apache-1.0 is incompatible with GPL-3+
 restricted=yes
+patch_args=-Np0
 
 pre_configure() {
 	echo "${version}-cli" > ${wrksrc}/${build_wrksrc}/VERSION
diff --git a/srcpkgs/mate-utils/template b/srcpkgs/mate-utils/template
index 855db8054d4d..ed900b594412 100644
--- a/srcpkgs/mate-utils/template
+++ b/srcpkgs/mate-utils/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=219673047fe2a14eb9c8bc23a5fb7c99d45e7acad4c05b4bf59a3d244cb026ac
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/matio/template b/srcpkgs/matio/template
index d22e883530b0..58930bee51e2 100644
--- a/srcpkgs/matio/template
+++ b/srcpkgs/matio/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/tbeu/matio"
 distfiles="https://github.com/tbeu/matio/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=5e455527d370ab297c4abe5a2ab4d599c93ac7c1a0c85d841cc5c22f8221c400
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" ac_cv_va_copy=C99"
diff --git a/srcpkgs/maturin/template b/srcpkgs/maturin/template
index 7ce8d5bd64c6..9cae482efdfd 100644
--- a/srcpkgs/maturin/template
+++ b/srcpkgs/maturin/template
@@ -18,6 +18,7 @@ distfiles="${homepage}/archive/v${version}.tar.gz
  https://github.com/bytecodealliance/target-lexicon/archive/v0.12.0.tar.gz"
 checksum="e6a9a67cc62ffe248654e60e7ec211bf23319c4c936ad87022f7a1fd0997430d
  18fead54e5dfa2cb0fa8af3db3c2765ca1c003b20cd4eca7be0553b30ce229de"
+patch_args=-Np0
 
 post_extract() {
 	mv ../target-lexicon* target-lexicon
diff --git a/srcpkgs/mc/template b/srcpkgs/mc/template
index ebf5141eb482..bea3ca89dd57 100644
--- a/srcpkgs/mc/template
+++ b/srcpkgs/mc/template
@@ -14,6 +14,7 @@ distfiles="https://www.midnight-commander.org/downloads/mc-${version}.tar.xz"
 #distfiles="http://fossies.org/linux/misc/mc-${version}.tar.gz"
 checksum=c6deadc50595f2d9a22dc6c299a9f28b393e358346ebf6ca444a8469dc166c27
 python_version=2
+patch_args=-Np0
 
 conf_files="
  /etc/mc/filehighlight.ini
diff --git a/srcpkgs/mcpp/template b/srcpkgs/mcpp/template
index 7a358883d06b..edccf45fe0b1 100644
--- a/srcpkgs/mcpp/template
+++ b/srcpkgs/mcpp/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="http://mcpp.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/mcpp/mcpp-${version}.tar.gz"
 checksum=3b9b4421888519876c4fc68ade324a3bbd81ceeb7092ecdbbc2055099fcb8864
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/mdadm/template b/srcpkgs/mdadm/template
index f776b6dc9d36..30aeed30ee96 100644
--- a/srcpkgs/mdadm/template
+++ b/srcpkgs/mdadm/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="https://git.kernel.org/cgit/utils/mdadm/mdadm.git/log/"
 distfiles="${KERNEL_SITE}/utils/raid/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=ab7688842908d3583a704d491956f31324c3a5fc9f6a04653cb75d19f1934f4a
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's,^install : mdadm mdmon,install: ,g' Makefile
diff --git a/srcpkgs/mdocml/template b/srcpkgs/mdocml/template
index 2332eb13dfc9..d19966633ba1 100644
--- a/srcpkgs/mdocml/template
+++ b/srcpkgs/mdocml/template
@@ -17,6 +17,7 @@ homepage="http://mandoc.bsd.lv"
 distfiles="http://mandoc.bsd.lv/snapshots/mandoc-${version}.tar.gz"
 checksum=8219b42cb56fc07b2aa660574e6211ac38eefdbf21f41b698d3348793ba5d8f7
 provides="man-0_1"
+patch_args=-Np0
 
 alternatives="
  man:man:/usr/bin/mandoc
diff --git a/srcpkgs/mediastreamer/template b/srcpkgs/mediastreamer/template
index 884237ddf436..ccf8e43ffb44 100644
--- a/srcpkgs/mediastreamer/template
+++ b/srcpkgs/mediastreamer/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.linphone.org/technical-corner/mediastreamer2"
 distfiles="https://gitlab.linphone.org/BC/public/mediastreamer2/-/archive/${version}/mediastreamer2-${version}.tar.gz"
 checksum=4f67262621a93349651cfb0b51a2157623bf7758126d070e1c122bff58c7d5b4
+patch_args=-Np0
 
 mediastreamer-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/mednafen/template b/srcpkgs/mednafen/template
index e56addb35013..aed46822a2b7 100644
--- a/srcpkgs/mednafen/template
+++ b/srcpkgs/mednafen/template
@@ -15,6 +15,7 @@ homepage="https://mednafen.github.io/"
 distfiles="https://mednafen.github.io/releases/files/mednafen-${version}.tar.xz"
 checksum=842907c25c4292c9ba497c9cb9229c7d10e04e22cb4740d154ab690e6587fdf4
 nopie=yes
+patch_args=-Np0
 
 build_options="altivec"
 desc_option_altivec="Enable AltiVec support on PowerPC"
diff --git a/srcpkgs/memtest86+/template b/srcpkgs/memtest86+/template
index c4850769d62e..04792c5dc082 100644
--- a/srcpkgs/memtest86+/template
+++ b/srcpkgs/memtest86+/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.memtest.org"
 distfiles="http://www.memtest.org/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=142127b7953fbd829b1057fb64a78d3340c2b771484230a7347e94530a0d9039
+patch_args=-Np0
 
 nostrip=yes
 noverifyrdeps=yes
diff --git a/srcpkgs/mergerfs/template b/srcpkgs/mergerfs/template
index db4399c448e6..d7226ee6103b 100644
--- a/srcpkgs/mergerfs/template
+++ b/srcpkgs/mergerfs/template
@@ -12,6 +12,7 @@ license="ISC"
 homepage="https://github.com/trapexit/mergerfs"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=8857d2058c38251bff539c77b6c90472ab139bda96265ce09485c3689d11a4ac
+patch_args=-Np0
 
 pre_build() {
 	# we build from source, spoof release tarball
diff --git a/srcpkgs/merkaartor/template b/srcpkgs/merkaartor/template
index 17c8d5dc361d..d917aef6ad94 100644
--- a/srcpkgs/merkaartor/template
+++ b/srcpkgs/merkaartor/template
@@ -13,5 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://merkaartor.be"
 distfiles="https://github.com/openstreetmap/merkaartor/archive/${version}.tar.gz"
 checksum=16e790507a5bb54e4b3c09ea063ebb095a4b014ce8ba937b771706d4c940976a
+patch_args=-Np0
 
 CXXFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template
index 414c918c7baf..1d5391040f4d 100644
--- a/srcpkgs/mesa/template
+++ b/srcpkgs/mesa/template
@@ -24,6 +24,7 @@ homepage="https://www.mesa3d.org/"
 changelog="https://docs.mesa3d.org/relnotes/${version}.html"
 distfiles="https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz"
 checksum=565c6f4bd2d5747b919454fc1d439963024fc78ca56fd05158c3b2cde2f6912b
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	configure_args+=" -Duse-elf-tls=false"
diff --git a/srcpkgs/meson/template b/srcpkgs/meson/template
index ee2cab625cbd..4561095b9074 100644
--- a/srcpkgs/meson/template
+++ b/srcpkgs/meson/template
@@ -16,6 +16,7 @@ homepage="https://mesonbuild.com"
 changelog="https://github.com/mesonbuild/meson/blob/master/docs/markdown/Release-notes-for-${version%.*}.0.md"
 distfiles="https://github.com/mesonbuild/meson/releases/download/$version/$pkgname-$version.tar.gz"
 checksum=3cb8bdb91383f7f8da642f916e4c44066a29262caa499341e2880f010edb87f4
+patch_args=-Np0
 
 # XXX: sanitizers aren't available on musl
 if [ "$XBPS_TARGET_LIBC" = glibc ]; then
diff --git a/srcpkgs/mg/template b/srcpkgs/mg/template
index 8bb7fd00185e..3414fa23e102 100644
--- a/srcpkgs/mg/template
+++ b/srcpkgs/mg/template
@@ -10,6 +10,7 @@ license="Public Domain"
 homepage="https://github.com/hboetes/mg"
 distfiles="https://github.com/hboetes/mg/archive/${version}.tar.gz"
 checksum=6820e76a0e27d9a744624d421b3b30b0030140c2a817df1310b25c3abe397106
+patch_args=-Np0
 
 CFLAGS="-DTCSASOFT=0"
 
diff --git a/srcpkgs/mhddfs/template b/srcpkgs/mhddfs/template
index b60fcb06a7bf..5dfe2cc2c7f4 100644
--- a/srcpkgs/mhddfs/template
+++ b/srcpkgs/mhddfs/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://mhddfs.uvw.ru/"
 distfiles="http://mhddfs.uvw.ru/downloads/${pkgname}_${version}.tar.gz"
 checksum=702fc5486460c1828898426b1935179ce60bc1ed16fc8bc575c9ec1d12acef91
+patch_args=-Np0
 
 pre_build() {
 	sed -i 's|^CFLAGS[[:blank:]]*=|override CFLAGS +=|g' Makefile
diff --git a/srcpkgs/milkytracker/template b/srcpkgs/milkytracker/template
index 9f5cffd61301..767cc2590664 100644
--- a/srcpkgs/milkytracker/template
+++ b/srcpkgs/milkytracker/template
@@ -13,6 +13,7 @@ license="GPL-3.0-only"
 homepage="http://milkytracker.titandemo.org/"
 distfiles="https://github.com/milkytracker/MilkyTracker/archive/v${version}.tar.gz"
 checksum=6bcb6e74ee333e831137435a25c0f2f3da6e1462864deec9e693ef7d23a16023
+patch_args=-Np0
 
 post_install() {
 	vinstall resources/milkytracker.desktop 644 usr/share/applications
diff --git a/srcpkgs/mimic/template b/srcpkgs/mimic/template
index ed11690e5bdc..3424c48ed870 100644
--- a/srcpkgs/mimic/template
+++ b/srcpkgs/mimic/template
@@ -14,6 +14,7 @@ homepage="https://github.com/MycroftAI/mimic"
 changelog="https://github.com/MycroftAI/mimic1/releases"
 distfiles="https://github.com/MycroftAI/mimic/archive/${version}.tar.gz"
 checksum=9041f5c7d3720899c90c890ada179c92c3b542b90bb655c247e4a4835df79249
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/minicom/template b/srcpkgs/minicom/template
index 8671f508256a..49a229db2575 100644
--- a/srcpkgs/minicom/template
+++ b/srcpkgs/minicom/template
@@ -10,5 +10,6 @@ license="GPL-2.0-or-later"
 homepage="https://tracker.debian.org/pkg/minicom"
 distfiles="https://deb.debian.org/debian/pool/main/m/minicom/minicom_${version}.orig.tar.gz"
 checksum=532f836b7a677eb0cb1dca8d70302b73729c3d30df26d58368d712e5cca041f1
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/minidlna/template b/srcpkgs/minidlna/template
index b112fb56efcc..aeb1f2f1b542 100644
--- a/srcpkgs/minidlna/template
+++ b/srcpkgs/minidlna/template
@@ -21,6 +21,7 @@ homepage="https://minidlna.sourceforge.net/"
 changelog="https://sourceforge.net/projects/minidlna/files/minidlna/${version}/README/view"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=47d9b06b4c48801a4c1112ec23d24782728b5495e95ec2195bbe5c81bc2d3c63
+patch_args=-Np0
 
 system_accounts="minidlna"
 minidlna_homedir="/var/lib/minidlna"
diff --git a/srcpkgs/minijail/template b/srcpkgs/minijail/template
index e3debe82a66e..d0ac4d9d5acb 100644
--- a/srcpkgs/minijail/template
+++ b/srcpkgs/minijail/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://android.googlesource.com/platform/external/minijail"
 distfiles="https://github.com/google/minijail/archive/linux-v${version}.tar.gz"
 checksum=1efb6224465cf8a5bb7a69659b35482e69786fce572f29125201e9a0e793bdd6
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
 	broken="bpf.h:110:2: error: #error Unsupported endianness"
diff --git a/srcpkgs/minisat/template b/srcpkgs/minisat/template
index e462c8ba34a6..29246f9a7a05 100644
--- a/srcpkgs/minisat/template
+++ b/srcpkgs/minisat/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://minisat.se/MiniSat.html"
 distfiles="http://minisat.se/downloads/minisat-2.2.0.tar.gz"
 checksum=92957d851cdc3baddfe07b5fc80ed5a0237c489d0c52ae72f62844b3b46d7808
+patch_args=-Np0
 
 do_install() {
 	vbin minisat_release minisat
diff --git a/srcpkgs/minissdpd/template b/srcpkgs/minissdpd/template
index b0d56f0058df..f5d497d014d2 100644
--- a/srcpkgs/minissdpd/template
+++ b/srcpkgs/minissdpd/template
@@ -10,6 +10,7 @@ license="3-clause-BSD"
 homepage="http://miniupnp.free.fr/minissdpd.html"
 distfiles="http://miniupnp.free.fr/files/minissdpd-${version}.tar.gz"
 checksum=dfd637b185731e1acb412a86faa9718eb93c04ca08280541a6d22d14d1fb890f
+patch_args=-Np0
 
 CFLAGS="-D_GNU_SOURCE"
 
diff --git a/srcpkgs/mit-krb5/template b/srcpkgs/mit-krb5/template
index fa18e58b7333..deabac5065f6 100644
--- a/srcpkgs/mit-krb5/template
+++ b/srcpkgs/mit-krb5/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://web.mit.edu/kerberos"
 distfiles="${homepage}/dist/krb5/${version%.*}/krb5-${version}.tar.gz"
 checksum=e61783c292b5efd9afb45c555a80dd267ac67eebabca42185362bee6c4fbd719
+patch_args=-Np0
 
 post_patch() {
 	vsed -e "/LDFLAGS=/d" -i src/build-tools/krb5-config.in
diff --git a/srcpkgs/mit-scheme-c/template b/srcpkgs/mit-scheme-c/template
index 92f3b637912a..e2a461e18e86 100644
--- a/srcpkgs/mit-scheme-c/template
+++ b/srcpkgs/mit-scheme-c/template
@@ -14,6 +14,7 @@ alternatives="
  scheme:scheme.1:/usr/share/man/man1/mit-scheme.1
 "
 nocross="Tries to build parts of the package with itself"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/mlocate/template b/srcpkgs/mlocate/template
index 9571f8c387d1..310ecb315e16 100644
--- a/srcpkgs/mlocate/template
+++ b/srcpkgs/mlocate/template
@@ -14,6 +14,7 @@ homepage="https://pagure.io/mlocate"
 distfiles="https://releases.pagure.org/mlocate/${pkgname}-${version}.tar.xz"
 checksum=3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e
 system_accounts="_mlocate"
+patch_args=-Np0
 
 alternatives="
  locate:locate:/usr/bin/mlocate
diff --git a/srcpkgs/mmv/template b/srcpkgs/mmv/template
index 1afd253685d5..4269d4aa9e4a 100644
--- a/srcpkgs/mmv/template
+++ b/srcpkgs/mmv/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://packages.debian.org/unstable/utils/mmv"
 distfiles="http://mirrors.kernel.org/gentoo/distfiles/${pkgname}_${version}.orig.tar.gz"
 checksum=0399c027ea1e51fd607266c1e33573866d4db89f64a74be8b4a1d2d1ff1fdeef
+patch_args=-Np0
 
 do_install() {
 	local l
diff --git a/srcpkgs/moc/template b/srcpkgs/moc/template
index c42be650a1d2..824b1aaccaaa 100644
--- a/srcpkgs/moc/template
+++ b/srcpkgs/moc/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://moc.daper.net"
 distfiles="http://ftp.daper.net/pub/soft/${pkgname}/stable/${pkgname}-${version}.tar.bz2"
 checksum=f3a68115602a4788b7cfa9bbe9397a9d5e24c68cb61a57695d1c2c3ecf49db08
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e "s|^ac_cpp='\$CPP |&-P |g" configure
diff --git a/srcpkgs/mod_wsgi/template b/srcpkgs/mod_wsgi/template
index 28872edf8d52..1ee69220f24f 100644
--- a/srcpkgs/mod_wsgi/template
+++ b/srcpkgs/mod_wsgi/template
@@ -13,6 +13,7 @@ changelog="https://modwsgi.readthedocs.io/en/latest/release-notes/version-${vers
 distfiles="https://github.com/GrahamDumpleton/${pkgname}/archive/${version}.tar.gz"
 checksum=2674e506719afe60fbc0547c832e8948d6caa2e054d40d336309993e6e867d35
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/mog/template b/srcpkgs/mog/template
index 88421ccef317..83afd02b478c 100644
--- a/srcpkgs/mog/template
+++ b/srcpkgs/mog/template
@@ -14,6 +14,7 @@ homepage="http://www.braingames.getput.com/mog/"
 distfiles="http://urchlay.naptime.net/~urchlay/src/mog.src_${version}-${_build}.tgz"
 checksum=707bbc1b167a55989916f803dbe55c288652fb54df6194be029c41be99e9ec3a
 broken="ELF in /usr/share"
+patch_args=-Np0
 
 CFLAGS="-g3 -O3 -Wno-write-strings -I${XBPS_CROSS_BASE}/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
 
diff --git a/srcpkgs/mon/template b/srcpkgs/mon/template
index 4ab9fc3bd8e2..9cb300f5a44a 100644
--- a/srcpkgs/mon/template
+++ b/srcpkgs/mon/template
@@ -9,6 +9,7 @@ license="MIT"
 homepage="https://github.com/tj/mon"
 distfiles="https://github.com/tj/mon/archive/${version}.tar.gz"
 checksum=978711a1d37ede3fc5a05c778a2365ee234b196a44b6c0c69078a6c459e686ac
+patch_args=-Np0
 
 CFLAGS="-Ideps -std=c99 -D_GNU_SOURCE"
 
diff --git a/srcpkgs/monero/template b/srcpkgs/monero/template
index 3617a446f098..5cfbb8da8823 100644
--- a/srcpkgs/monero/template
+++ b/srcpkgs/monero/template
@@ -29,6 +29,7 @@ checksum="5e9bd2e565a57b4ae9f0d851704725b2e0b18c4a94051e56d5deae4e74727496
  b973b9d8269ec4d97c3c3443f0dad96d09f72b1b30e616e0947557adbdbb03f7"
 skip_extraction="v${_randomx_version}.tar.gz ${_rapidjson_gitrev}.tar.gz ${_supercop_gitrev}.tar.gz"
 system_accounts="monero"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DTHREADS_PTHREAD_ARG=OFF"
diff --git a/srcpkgs/mongoose/template b/srcpkgs/mongoose/template
index eddadc647333..46fe4d3f99eb 100644
--- a/srcpkgs/mongoose/template
+++ b/srcpkgs/mongoose/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://cesanta.com/"
 distfiles="https://github.com/cesanta/mongoose/archive/${version}.tar.gz"
 checksum=f5c10346abc9c72f7cac7885d853ca064fb09aad57580433941a8fd7a3543769
+patch_args=-Np0
 
 mongoose-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/monit/template b/srcpkgs/monit/template
index e401ff3d8733..4062b351f9fa 100644
--- a/srcpkgs/monit/template
+++ b/srcpkgs/monit/template
@@ -17,6 +17,7 @@ homepage="https://mmonit.com/monit/"
 changelog="https://mmonit.com/monit/changes/"
 distfiles="https://mmonit.com/monit/dist/${pkgname}-${version}.tar.gz"
 checksum=9fc6287fd9570b25a85c5d5bf988ee8bd4c54d0e9e01ff04cc4b9398a159849c
+patch_args=-Np0
 
 pre_configure() {
 	./bootstrap
diff --git a/srcpkgs/mono/template b/srcpkgs/mono/template
index 3846d0a93e1e..599fabf094ad 100644
--- a/srcpkgs/mono/template
+++ b/srcpkgs/mono/template
@@ -15,6 +15,7 @@ distfiles="https://download.mono-project.com/sources/mono/${pkgname}-${version}.
 checksum=29c277660fc5e7513107aee1cbf8c5057c9370a4cdfeda2fc781be6986d89d23
 lib32disabled=yes
 python_version="3"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args+=" --disable-boehm --without-sigaltstack" ;;
diff --git a/srcpkgs/moon-buggy/template b/srcpkgs/moon-buggy/template
index 1ebb56ce31ff..1a8017da0314 100644
--- a/srcpkgs/moon-buggy/template
+++ b/srcpkgs/moon-buggy/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.seehuhn.de/pages/moon-buggy"
 distfiles="http://m.seehuhn.de/programs/$pkgname-$version.tar.gz"
 checksum=352dc16ccae4c66f1e87ab071e6a4ebeb94ff4e4f744ce1b12a769d02fe5d23f
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/key_name/Key_Name/g' keyboard.c
diff --git a/srcpkgs/moosefs/template b/srcpkgs/moosefs/template
index adc8125a13e6..fbf55ca74ac1 100644
--- a/srcpkgs/moosefs/template
+++ b/srcpkgs/moosefs/template
@@ -15,6 +15,7 @@ distfiles="http://ppa.moosefs.com/src/moosefs-${version}-1.tar.gz"
 checksum=f88cc0142b5fe8a6a4c3fcb2ae58053fcb98787848cf09286a57718a982093a9
 python_version=2 #unverified
 system_accounts="_mfs"
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's,AC_RUN_IFELSE,AC_LINK_IFELSE,g' configure.ac
diff --git a/srcpkgs/mosh/template b/srcpkgs/mosh/template
index a4641f66bb3e..a9030ce5cb51 100644
--- a/srcpkgs/mosh/template
+++ b/srcpkgs/mosh/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://mosh.org/"
 distfiles="https://mosh.org/mosh-${version}.tar.gz"
 checksum=da600573dfa827d88ce114e0fed30210689381bbdcff543c931e4d6a2e851216
+patch_args=-Np0
 
 pre_configure() {
 	# make local.test always succeed. It fails due to missing X server in chroot.
diff --git a/srcpkgs/mosquitto/template b/srcpkgs/mosquitto/template
index 53ab96eca22e..16723f0ce554 100644
--- a/srcpkgs/mosquitto/template
+++ b/srcpkgs/mosquitto/template
@@ -16,6 +16,7 @@ distfiles="${homepage}/files/source/${pkgname}-${version}.tar.gz"
 checksum=1b8553ef64a1cf5e4f4cfbe098330ae612adccd3d37f35b2db6f6fab501b01d4
 # CUnit dependency is missing
 make_check=no
+patch_args=-Np0
 
 system_accounts="_mosquitto"
 _mosquitto_homedir="/var/lib/mosquitto"
diff --git a/srcpkgs/mp3check/template b/srcpkgs/mp3check/template
index 6d25f52387fc..09d6a945c800 100644
--- a/srcpkgs/mp3check/template
+++ b/srcpkgs/mp3check/template
@@ -8,6 +8,7 @@ license="GPL-2.0-only"
 homepage="https://code.google.com/p/mp3check/"
 distfiles="${DEBIAN_SITE}/main/m/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=27d976ad8495671e9b9ce3c02e70cb834d962b6fdf1a7d437bb0e85454acdd0e
+patch_args=-Np0
 
 do_build() {
 	make ${makejobs} CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
diff --git a/srcpkgs/mp3val/template b/srcpkgs/mp3val/template
index 31c307f1ebbf..14e61a3c6fb8 100644
--- a/srcpkgs/mp3val/template
+++ b/srcpkgs/mp3val/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://mp3val.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/mp3val/mp3val-${version}-src.tar.gz"
 checksum=95a16efe3c352bb31d23d68ee5cb8bb8ebd9868d3dcf0d84c96864f80c31c39f
+patch_args=-Np0
 
 do_install() {
 	vbin mp3val
diff --git a/srcpkgs/mpg123/template b/srcpkgs/mpg123/template
index a08cb80f0969..4278b201e604 100644
--- a/srcpkgs/mpg123/template
+++ b/srcpkgs/mpg123/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://www.mpg123.org/"
 distfiles="${SOURCEFORGE_SITE}/mpg123/mpg123-${version}.tar.bz2"
 checksum=e49466853685026da5d113dc7ff026b1b2ad0b57d78df693a446add9db88a7d5
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	# No LFS required with musl
diff --git a/srcpkgs/mplayer/template b/srcpkgs/mplayer/template
index 6bf5f3d1b08d..981c97328805 100644
--- a/srcpkgs/mplayer/template
+++ b/srcpkgs/mplayer/template
@@ -22,6 +22,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.mplayerhq.hu/"
 distfiles="http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-${version}.tar.xz"
 checksum=82596ed558478d28248c7bc3828eb09e6948c099bbd76bb7ee745a0e3275b548
+patch_args=-Np0
 
 nocross=yes
 
diff --git a/srcpkgs/mrxvt/template b/srcpkgs/mrxvt/template
index 5d82c85d31f6..eb206d20ab9c 100644
--- a/srcpkgs/mrxvt/template
+++ b/srcpkgs/mrxvt/template
@@ -12,5 +12,6 @@ license="GPL-2.0-or-later"
 homepage="http://materm.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/materm/mrxvt-${version}.tar.gz"
 checksum=f403ad5a908fcd38a55ed0a7e1b85584cb77be8781199653a39b8af1a9ad10d7
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/msg2/template b/srcpkgs/msg2/template
index 473b3c4ec4d2..624f86b14c31 100644
--- a/srcpkgs/msg2/template
+++ b/srcpkgs/msg2/template
@@ -9,6 +9,7 @@ license="GPL-3.0-or-later"
 homepage="https://roboticoverlords.org/msg2/"
 distfiles="https://roboticoverlords.org/msg2/msg2-${version}.tar.xz"
 checksum=4834104465f62f0ecec7615e75ca2e50a5e42218854da8f6b022a120937702ac
+patch_args=-Np0
 
 post_install() {
 	vman msg2.1
diff --git a/srcpkgs/msp430-toolchain/template b/srcpkgs/msp430-toolchain/template
index 10f8d6b7fe45..acfabb65b166 100644
--- a/srcpkgs/msp430-toolchain/template
+++ b/srcpkgs/msp430-toolchain/template
@@ -16,6 +16,7 @@ checksum="d2110ec64e8a055ff89b7eef8217b3c233c30e370e2cb43e1ad835dad5907d1c
  1e2a0903e6b02d5e8aac2a7297ec0685e95a980b13b937b5c7f24f4cf6015407"
 nocross=yes
 nostrip=yes
+patch_args=-Np0
 
 _prefix=/usr/msp430
 _target=msp430-none-elf
diff --git a/srcpkgs/mumble/template b/srcpkgs/mumble/template
index d578a511d47e..7cb13105213d 100644
--- a/srcpkgs/mumble/template
+++ b/srcpkgs/mumble/template
@@ -20,6 +20,7 @@ license="BSD-3-Clause"
 homepage="http://mumble.sourceforge.net/"
 distfiles="https://github.com/mumble-voip/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=615f4ebfc3385d945163f369efd3e910c8b6d0f025797a7eed541515fccb6093
+patch_args=-Np0
 
 build_options="jack portaudio"
 build_options_default="jack portaudio"
diff --git a/srcpkgs/mupen64plus/template b/srcpkgs/mupen64plus/template
index 4984a7f4a777..747fd4d99531 100644
--- a/srcpkgs/mupen64plus/template
+++ b/srcpkgs/mupen64plus/template
@@ -15,6 +15,7 @@ distfiles="https://github.com/mupen64plus/mupen64plus-core/releases/download/${v
 checksum=d5243ddc00388ee2e538b3826a78a719dec2bd5da54ac6f3344fed861fb141a8
 nopie=yes
 nocross=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/musikcube/template b/srcpkgs/musikcube/template
index c786f86bef31..9ee39183a36f 100644
--- a/srcpkgs/musikcube/template
+++ b/srcpkgs/musikcube/template
@@ -17,6 +17,7 @@ license="BSD-3-Clause"
 homepage="https://musikcube.com/"
 distfiles="https://github.com/clangen/musikcube/archive/${version}.tar.gz"
 checksum=81922ec6e86c06061dc009be3ec7c4bc8e8fd5ed3bb92231dabede8bbccaf723
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/mutter/template b/srcpkgs/mutter/template
index fb42f099faaa..49595b486e5d 100644
--- a/srcpkgs/mutter/template
+++ b/srcpkgs/mutter/template
@@ -1,5 +1,6 @@
 # Template file for 'mutter'
 reverts="40.2_1"
+patch_args=-Np0
 
 pkgname=mutter
 version=40.1
diff --git a/srcpkgs/mysql++/template b/srcpkgs/mysql++/template
index 6dc18a421034..278fd00b049c 100644
--- a/srcpkgs/mysql++/template
+++ b/srcpkgs/mysql++/template
@@ -11,6 +11,7 @@ license="LGPL-2.1-or-later"
 homepage="https://tangentsoft.net/mysqlpp"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.gz"
 checksum=b780beeb3a9cd9ce6a9043028527484df8e822c58c5274d4d67ec5ba2fc0a778
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	configure_args="--exec_prefix=${XBPS_CROSS_BASE} --with-mysql-include=${XBPS_CROSS_BASE}/usr/include/mysql"
diff --git a/srcpkgs/nagstamon/template b/srcpkgs/nagstamon/template
index a3e92bfa761d..50e74fb4a478 100644
--- a/srcpkgs/nagstamon/template
+++ b/srcpkgs/nagstamon/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://nagstamon.ifw-dresden.de"
 distfiles="https://nagstamon.ifw-dresden.de/files/stable/Nagstamon-${version}.tar.gz"
 checksum=7a9611f40b08269bba4100ab2598ee089c7d0ebc6c4e9d7132689342f71150ec
+patch_args=-Np0
 
 post_patch() {
 	# This relies on /etc/os-release, which doesn't exist without
diff --git a/srcpkgs/namecoin/template b/srcpkgs/namecoin/template
index e4cfb3777b71..991026db606d 100644
--- a/srcpkgs/namecoin/template
+++ b/srcpkgs/namecoin/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="https://namecoin.org"
 distfiles="https://github.com/namecoin/namecoin-core/archive/nc${version}.tar.gz"
 checksum=7117a0a0b8f48d49e4abf3577660f8a4eb9a4dea753281d19d9470725fc75d8e
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/navit/template b/srcpkgs/navit/template
index 449ef1ca16d3..4ae5fbeaf5eb 100644
--- a/srcpkgs/navit/template
+++ b/srcpkgs/navit/template
@@ -16,6 +16,7 @@ license="GPL-2.0-only, LGPL-2.0-only"
 homepage="http://www.navit-project.org/"
 distfiles="https://github.com/navit-gps/navit/archive/v${version}.tar.gz"
 checksum=728d9dcad00e97769f6cd85bfad5518b0edf62ef75d60543fa4c48c1c3ab1243
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e 's/\(GET_FILENAME_COMPONENT (LIB_DIR ${LIBDIR}\) NAME/\1 DIRECTORY/' CMakeLists.txt
diff --git a/srcpkgs/nemiver/template b/srcpkgs/nemiver/template
index 947ef8352a17..122758b92660 100644
--- a/srcpkgs/nemiver/template
+++ b/srcpkgs/nemiver/template
@@ -17,6 +17,7 @@ homepage="https://wiki.gnome.org/Apps/Nemiver"
 distfiles="https://download.gnome.org/sources/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=85ab8cf6c4f83262f441cb0952a6147d075c3c53d0687389a3555e946b694ef2
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	cp data/nemiver.appdata.xml data/nemiver.appdata.xml.in
diff --git a/srcpkgs/net-snmp/template b/srcpkgs/net-snmp/template
index 0b91683e00a8..6dad6b0f7cc6 100644
--- a/srcpkgs/net-snmp/template
+++ b/srcpkgs/net-snmp/template
@@ -11,6 +11,7 @@ license="Net-SNMP"
 homepage="http://www.net-snmp.org/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=eb7fd4a44de6cddbffd9a92a85ad1309e5c1054fb9d5a7dd93079c8953f48c3f
+patch_args=-Np0
 
 LDFLAGS="-lpthread"
 
diff --git a/srcpkgs/netcat/template b/srcpkgs/netcat/template
index c588fc5ab7b4..2905db892d0d 100644
--- a/srcpkgs/netcat/template
+++ b/srcpkgs/netcat/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://netcat.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=30719c9a4ffbcf15676b8f528233ccc54ee6cba96cb4590975f5fd60c68a066f
+patch_args=-Np0
 
 alternatives="
  nc:nc:/usr/bin/gnetcat
diff --git a/srcpkgs/nethack/template b/srcpkgs/nethack/template
index e39eafb0b5c2..65c414f3620f 100644
--- a/srcpkgs/nethack/template
+++ b/srcpkgs/nethack/template
@@ -16,6 +16,7 @@ distfiles="https://www.nethack.org/download/${version}/nethack-${version//./}-sr
 checksum=cfde0c3ab6dd7c22ae82e1e5a59ab80152304eb23fb06e3129439271e5643ed2
 nocross=yes
 system_accounts="$pkgname"
+patch_args=-Np0
 
 do_configure() {
 	sh sys/unix/setup.sh sys/unix/hints/linux
diff --git a/srcpkgs/netpgp/template b/srcpkgs/netpgp/template
index 2bc40e253d09..30b5c9a4acbd 100644
--- a/srcpkgs/netpgp/template
+++ b/srcpkgs/netpgp/template
@@ -11,6 +11,7 @@ license="3-clause-BSD"
 homepage="http://www.netbsd.org"
 distfiles="ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/LOCAL_PORTS/netpgp-${version}.tar.gz"
 checksum=fbe403f037376a40afd19bc8a1786b55b67cf8092a723ef36a61d99260b66dbf
+patch_args=-Np0
 
 CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=cpp -Wno-format-truncation -Wno-stringop-truncation -Wno-stringop-overflow -Wno-error=format-overflow"
 
diff --git a/srcpkgs/netpgpverify/template b/srcpkgs/netpgpverify/template
index 03531032da54..e554b5bcce13 100644
--- a/srcpkgs/netpgpverify/template
+++ b/srcpkgs/netpgpverify/template
@@ -10,6 +10,7 @@ license="2-clause-BSD"
 homepage="http://www.netpgp.com"
 distfiles="http://www.netpgp.com/src/${pkgname}-${version}.tar.gz"
 checksum=1eedf30b35cacbf8f39b80fbc4ea6129ba8c7815b0ad7f3d1ae05e521f684b00
+patch_args=-Np0
 
 post_extract() {
 	sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' Makefile.in
diff --git a/srcpkgs/nettle/template b/srcpkgs/nettle/template
index 25eca0dcab04..3880c5167455 100644
--- a/srcpkgs/nettle/template
+++ b/srcpkgs/nettle/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://www.lysator.liu.se/~nisse/nettle/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=661f5eb03f048a3b924c3a8ad2515d4068e40f67e774e8a26827658007e3bcf0
+patch_args=-Np0
 
 nettle-devel_package() {
 	depends="gmp-devel ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/network-ups-tools/template b/srcpkgs/network-ups-tools/template
index 0f4f1ce5a3b4..b775d578f493 100644
--- a/srcpkgs/network-ups-tools/template
+++ b/srcpkgs/network-ups-tools/template
@@ -27,6 +27,7 @@ homepage="http://www.networkupstools.org/"
 distfiles="${homepage}source/${version%.*}/nut-${version}.tar.gz"
 checksum=980e82918c52d364605c0703a5dcf01f74ad2ef06e3d365949e43b7d406d25a7
 system_accounts="nut"
+patch_args=-Np0
 
 nopie=yes
 build_options="cgi"
diff --git a/srcpkgs/newlisp/template b/srcpkgs/newlisp/template
index d6459caa41c5..37e9c03cc423 100644
--- a/srcpkgs/newlisp/template
+++ b/srcpkgs/newlisp/template
@@ -9,6 +9,7 @@ license="GPL-3.0-only, GFDL-1.2-only, Zlib, $pkgname, BSD-3-Clause"
 homepage="http://www.newlisp.org"
 distfiles="$homepage/downloads/$pkgname-$version.tgz"
 checksum=dc2d0ff651c2b275bc4af3af8ba59851a6fb6e1eaddc20ae75fb60b1e90126ec
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/nextcloud-client/template b/srcpkgs/nextcloud-client/template
index ec201254d5ad..ebce167c2699 100644
--- a/srcpkgs/nextcloud-client/template
+++ b/srcpkgs/nextcloud-client/template
@@ -20,6 +20,7 @@ license="GPL-2.0-or-later"
 homepage="https://nextcloud.com/clients/"
 distfiles="https://github.com/nextcloud/desktop/archive/v${version}.tar.gz"
 checksum=f2d387d35276ea6e6da3ae339ede3d89be81dd4af735739ec280709008eb6645
+patch_args=-Np0
 
 build_options="dolphin"
 desc_option_dolphin="Build KDE dolphin support"
diff --git a/srcpkgs/nfs4-acl-tools/template b/srcpkgs/nfs4-acl-tools/template
index defeeccdfbfc..3ac57c339637 100644
--- a/srcpkgs/nfs4-acl-tools/template
+++ b/srcpkgs/nfs4-acl-tools/template
@@ -14,6 +14,7 @@ homepage="http://linux-nfs.org/wiki/index.php/Main_Page"
 distfiles="http://linux-nfs.org/~bfields/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=1b929f15b7b8d1701a416a0888df61a2a173b50eeaa9fed4f28543ffe8989503
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/nginx/template b/srcpkgs/nginx/template
index cd0b19da95c6..281ebf038e0d 100644
--- a/srcpkgs/nginx/template
+++ b/srcpkgs/nginx/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="https://nginx.org"
 distfiles="https://nginx.org/download/nginx-${version}.tar.gz"
 checksum=4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+patch_args=-Np0
 
 # NOTE:
 # On update, the pregenerated header file for ARM may need synchronization.
diff --git a/srcpkgs/ngspice/template b/srcpkgs/ngspice/template
index 05beffd8f841..8e7bde57e3da 100644
--- a/srcpkgs/ngspice/template
+++ b/srcpkgs/ngspice/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="http://ngspice.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/ngspice/ng-spice-rework/${version}/${pkgname}-${version}.tar.gz"
 checksum=b99db66cc1c57c44e9af1ef6ccb1dcbc8ae1df3e35acf570af578f606f8541f1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/nitroshare/template b/srcpkgs/nitroshare/template
index dc541b408d77..cfab290eea9d 100644
--- a/srcpkgs/nitroshare/template
+++ b/srcpkgs/nitroshare/template
@@ -17,6 +17,7 @@ homepage="http://nitroshare.net"
 distfiles="https://github.com/nitroshare/nitroshare-desktop/archive/${version}.tar.gz"
 checksum=29874e5909c29211a3c9e13f8c0f49b901ec2996e5d60d80af80d2fb80c3d7ec
 python_version=2 #unverified
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools"
diff --git a/srcpkgs/nmon/template b/srcpkgs/nmon/template
index 76f09917adea..1857023f5402 100644
--- a/srcpkgs/nmon/template
+++ b/srcpkgs/nmon/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://nmon.sourceforge.net/pmwiki.php?n=Main.HomePage"
 distfiles="${SOURCEFORGE_SITE}/nmon/files/lmon${version}.c"
 checksum=2bed4d45fdfdf1d1387ec91e139c04975d5f838e3e0d53c0fe2d803a707e5fc1
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/nocache/template b/srcpkgs/nocache/template
index 1c4198631e74..f48b963e9279 100644
--- a/srcpkgs/nocache/template
+++ b/srcpkgs/nocache/template
@@ -9,6 +9,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/Feh/nocache"
 distfiles="https://github.com/Feh/nocache/archive/v${version}.tar.gz"
 checksum=e5441b27f60e1af5551b76fe0c8a9da17b8c31675794d9d49bf59c7c47fbb9b9
+patch_args=-Np0
 
 pre_build() {
 	sed -i -e '/#include <error.h>/d' cachedel.c cachestats.c
diff --git a/srcpkgs/nodejs-lts-10/template b/srcpkgs/nodejs-lts-10/template
index 300667cb9782..864b387e62e5 100644
--- a/srcpkgs/nodejs-lts-10/template
+++ b/srcpkgs/nodejs-lts-10/template
@@ -21,6 +21,7 @@ homepage="https://nodejs.org/"
 distfiles="${homepage}/download/release/v${version}/node-v${version}.tar.xz"
 checksum=158273af66f891b2fca90aec7336c42f7574f467affad02c14e80ca163cb3acc
 python_version=3
+patch_args=-Np0
 
 build_options="ssl libuv http_parser icu nghttp2 cares"
 desc_option_ssl="Enable shared openssl"
diff --git a/srcpkgs/nodejs-lts/template b/srcpkgs/nodejs-lts/template
index d3912ae2cf05..4f7524766d88 100644
--- a/srcpkgs/nodejs-lts/template
+++ b/srcpkgs/nodejs-lts/template
@@ -20,6 +20,7 @@ homepage="https://nodejs.org/"
 distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz"
 checksum=36e862555bebc04b13f7afebf4472c4dd7ebf4c891f9d6746ec545a4f099d05e
 python_version=3
+patch_args=-Np0
 
 build_options="ssl libuv http_parser icu nghttp2 cares"
 desc_option_ssl="Enable shared openssl"
diff --git a/srcpkgs/nodejs/template b/srcpkgs/nodejs/template
index bcfaaa73ac4c..c8d7b6324ba3 100644
--- a/srcpkgs/nodejs/template
+++ b/srcpkgs/nodejs/template
@@ -20,6 +20,7 @@ homepage="https://nodejs.org/"
 distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz"
 checksum=f6b904b06951de4c52089dd4456155d853e835b0dc4640f75458c6eb49f9e8ce
 python_version=3
+patch_args=-Np0
 
 build_options="ssl libuv http_parser icu nghttp2 cares"
 desc_option_ssl="Enable shared openssl"
diff --git a/srcpkgs/noip2/template b/srcpkgs/noip2/template
index 9d930a41b73e..b6e7636edcfa 100644
--- a/srcpkgs/noip2/template
+++ b/srcpkgs/noip2/template
@@ -9,6 +9,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.noip.com"
 distfiles="https://www.noip.com/client/linux/noip-duc-linux.tar.gz"
 checksum=82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC PREFIX=/usr LIBS="$CFLAGS $LDFLAGS"
diff --git a/srcpkgs/notepadqq/template b/srcpkgs/notepadqq/template
index 194588600db8..85e8349e031b 100644
--- a/srcpkgs/notepadqq/template
+++ b/srcpkgs/notepadqq/template
@@ -12,6 +12,7 @@ homepage="https://notepadqq.com"
 license="GPL-3.0-or-later"
 distfiles="https://github.com/notepadqq/notepadqq/archive/v${version}.tar.gz"
 checksum=13fba9abd84c59de27fbe92f74e2763b57588fcf9c88af10ec67313b0abbc9d0
+patch_args=-Np0
 
 post_install() {
 	# no need for upstream's weird magic, leads to segfaults anyway
diff --git a/srcpkgs/notes-up/template b/srcpkgs/notes-up/template
index 8fcacc6f4d99..22f5e8b400b7 100644
--- a/srcpkgs/notes-up/template
+++ b/srcpkgs/notes-up/template
@@ -17,6 +17,7 @@ distfiles="https://github.com/Philip-Scott/Notes-up/archive/${version}.tar.gz"
 checksum=35eb1df71034a118e66e6e00f5394c68423cfba7ceac035bde156d77da933b17
 build_options="pantheon"
 desc_option_pantheon="build with Contractor support"
+patch_args=-Np0
 
 post_install() {
 	ln -s com.github.philip-scott.notes-up ${DESTDIR}/usr/bin/notes-up
diff --git a/srcpkgs/nrpe/template b/srcpkgs/nrpe/template
index 6a598b0909ee..fd07a1845533 100644
--- a/srcpkgs/nrpe/template
+++ b/srcpkgs/nrpe/template
@@ -21,6 +21,7 @@ changelog="https://github.com/NagiosEnterprises/nrpe/blob/master/CHANGELOG.md"
 distfiles="https://github.com/NagiosEnterprises/${pkgname}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=f907ba15381adfc6eef211508abd027f8e1973116080faa4534a1191211c0340
 system_accounts="_nagios"
+patch_args=-Np0
 
 post_install() {
 	vsv nrpe
diff --git a/srcpkgs/nsjail/template b/srcpkgs/nsjail/template
index acff592d2eee..8a883f9d1d6f 100644
--- a/srcpkgs/nsjail/template
+++ b/srcpkgs/nsjail/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/google/nsjail/archive/${version}.tar.gz
  https://github.com/google/kafel/archive/8e69b8efae415cde3debffbb1e379d9e7a16835a.tar.gz"
 checksum="cfa66d3ed136b2e221752287b95e544915e8a6760aa866f023b604d14a374919
  4a6c9a1a70ed99bbed767adc106081b017a3090307ea88cc7e329b82daa1373b"
+patch_args=-Np0
 
 archs="aarch64* armv5tel* armv6l* armv7l* x86_64*"
 
diff --git a/srcpkgs/nspr/template b/srcpkgs/nspr/template
index 2873d90183a6..f9f4c941d124 100644
--- a/srcpkgs/nspr/template
+++ b/srcpkgs/nspr/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="http://www.mozilla.org/projects/nspr/"
 distfiles="${MOZILLA_SITE}/nspr/releases/v${version}/src/${pkgname}-${version}.tar.gz"
 checksum=5729da87d5fbf1584b72840751e0c6f329b5d541850cacd1b61652c95015abc8
+patch_args=-Np0
 
 do_configure() {
 	CFLAGS="$CFLAGS -D_PR_POLL_AVAILABLE -D_PR_HAVE_OFF64_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP -D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO -D_PR_INET6_PROBE"
diff --git a/srcpkgs/nss/template b/srcpkgs/nss/template
index 24da85cec752..1ae8f62b0b9d 100644
--- a/srcpkgs/nss/template
+++ b/srcpkgs/nss/template
@@ -1,4 +1,5 @@
 # Template file for 'nss'
+patch_args=-Np0
 
 _nsprver=4.30
 
diff --git a/srcpkgs/ntp/template b/srcpkgs/ntp/template
index fa88f33f92b7..523c61db5c09 100644
--- a/srcpkgs/ntp/template
+++ b/srcpkgs/ntp/template
@@ -13,6 +13,7 @@ license="NTP"
 homepage="http://www.ntp.org/"
 distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${version}.tar.gz"
 checksum=f65840deab68614d5d7ceb2d0bb9304ff70dcdedd09abb79754a87536b849c19
+patch_args=-Np0
 
 make_dirs="/var/db/ntpd 0755 ntpd ntpd"
 conf_files="/etc/ntp.conf"
diff --git a/srcpkgs/numactl/template b/srcpkgs/numactl/template
index ca5ecf3b3f10..ca70de19109a 100644
--- a/srcpkgs/numactl/template
+++ b/srcpkgs/numactl/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-only"
 homepage="https://github.com/numactl/numactl"
 distfiles="https://github.com/numactl/numactl/archive/v${version}.tar.gz"
 checksum=1ee27abd07ff6ba140aaf9bc6379b37825e54496e01d6f7343330cf1a4487035
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
 	# XXX
diff --git a/srcpkgs/nvme-cli/template b/srcpkgs/nvme-cli/template
index 0da50f2663ef..35301436ec7d 100644
--- a/srcpkgs/nvme-cli/template
+++ b/srcpkgs/nvme-cli/template
@@ -15,6 +15,7 @@ homepage="http://nvmexpress.org"
 distfiles="https://github.com/linux-nvme/nvme-cli/archive/v${version}.tar.gz"
 checksum=03f4875f3e68d326b0280e16df2f027ca6b086cfa148c34e8569df61319b4b85
 conf_files="/etc/nvme/*.conf"
+patch_args=-Np0
 
 post_install() {
 	# these files are touch'd by install, remove so they aren't registered
diff --git a/srcpkgs/nwipe/template b/srcpkgs/nwipe/template
index e3cbc2b3b653..5b88dfcd2d9a 100644
--- a/srcpkgs/nwipe/template
+++ b/srcpkgs/nwipe/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/martijnvanbrummelen/nwipe"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=85faaa9c65557a6be187f0176c5b778e8cd080e1cd9b8a7168a8a9b8e410d46d
+patch_args=-Np0
 
 CFLAGS="-D_FILE_OFFSET_BITS=64"
 
diff --git a/srcpkgs/nx-libs/template b/srcpkgs/nx-libs/template
index f604983c82c9..108696f69aa7 100644
--- a/srcpkgs/nx-libs/template
+++ b/srcpkgs/nx-libs/template
@@ -22,6 +22,7 @@ checksum=3ce7ca4e6b57b3a2d7588b2d0f4009036d2566a8925ca2c62f08a8dc0df50357
 python_version=3
 nocross="imake attempts to run target executables on host"
 conf_files="/etc/nxagent/*"
+patch_args=-Np0
 
 post_patch() {
 	# Replace hard-coded /usr/local ProjectRoot
diff --git a/srcpkgs/obexftp/template b/srcpkgs/obexftp/template
index 9e4123be13c6..457386c803dd 100644
--- a/srcpkgs/obexftp/template
+++ b/srcpkgs/obexftp/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp"
 distfiles="${SOURCEFORGE_SITE}/openobex/${pkgname}-${version}-Source.tar.gz"
 checksum=d40fb48e0a0eea997b3e582774b29f793919a625d54b87182e31a3f3d1c989a3
+patch_args=-Np0
 
 post_install() {
 	# Do not require 'bluetooth', does not exist.
diff --git a/srcpkgs/occt/template b/srcpkgs/occt/template
index 9298edc76e08..c72fcd384402 100644
--- a/srcpkgs/occt/template
+++ b/srcpkgs/occt/template
@@ -19,6 +19,7 @@ homepage="https://www.opencascade.com"
 distfiles="https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/${_gittag};sf=tgz>occt-${_gittag}.tar.gz"
 checksum=e00fedc221560fda31653c23a8f3d0eda78095c87519f338d4f4088e2ee9a9c0
 conflicts="oce>=0"
+patch_args=-Np0
 
 post_install() {
 	rm ${PKGDESTDIR}/usr/share/doc/opencascade/*_LGPL_*.txt
diff --git a/srcpkgs/odroid-u2-kernel/template b/srcpkgs/odroid-u2-kernel/template
index 748f904ee1de..4369f4c8a95e 100644
--- a/srcpkgs/odroid-u2-kernel/template
+++ b/srcpkgs/odroid-u2-kernel/template
@@ -3,6 +3,7 @@
 # Latest commit as of 20140809
 _githash="0c5ca23376fdddc43a08e5709e4d4bf18bc747f0"
 _gitshort="${_githash:0:7}"
+patch_args=-Np0
 
 pkgname=odroid-u2-kernel
 version=3.8.13.28
diff --git a/srcpkgs/ofono/template b/srcpkgs/ofono/template
index 248e58d9502d..78f80264583a 100644
--- a/srcpkgs/ofono/template
+++ b/srcpkgs/ofono/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://01.org/ofono"
 distfiles="${KERNEL_SITE}/network/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=a15c5d28096c10eb30e47a68b6dc2e7c4a5a99d7f4cfedf0b69624f33d859e9b
+patch_args=-Np0
 
 post_install() {
 	vsv ofonod
diff --git a/srcpkgs/ogmrip/template b/srcpkgs/ogmrip/template
index 1905d67b6abc..7a6bc318a04b 100644
--- a/srcpkgs/ogmrip/template
+++ b/srcpkgs/ogmrip/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="http://ogmrip.sourceforge.net/en/index.html"
 distfiles="${SOURCEFORGE_SITE}/ogmrip/ogmrip/${version%.*}/${version}/ogmrip-${version}.tar.gz"
 checksum=4e2e9778ac4da9fe1ab159e3dc6d4367b7a9dbd8f3501df99733ecedb25b02ff
+patch_args=-Np0
 
 pre_configure() {
 	sed -i 's/enchant >=/enchant-2 >=/' configure
diff --git a/srcpkgs/ogmtools/template b/srcpkgs/ogmtools/template
index 29c7e04d6ea3..5dc3772bd7e1 100644
--- a/srcpkgs/ogmtools/template
+++ b/srcpkgs/ogmtools/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="http://www.bunkus.org/videotools/ogmtools/"
 distfiles="http://www.bunkus.org/videotools/ogmtools/ogmtools-${version}.tar.bz2"
 checksum=c8d61d1dbceb981dc7399c1a85e43b509fd3d071fb8d3ca89ea9385e6e40fdea
+patch_args=-Np0
 
 CFLAGS="-I./avilib"
 CXXFLAGS="${CFLAGS}"
diff --git a/srcpkgs/oksh/template b/srcpkgs/oksh/template
index 84e6085f54f0..932eac8c8205 100644
--- a/srcpkgs/oksh/template
+++ b/srcpkgs/oksh/template
@@ -11,6 +11,7 @@ homepage="https://github.com/ibara/oksh"
 distfiles="https://github.com/ibara/oksh/releases/download/oksh-${version}/oksh-${version}.tar.gz"
 checksum=c08d97b2ac9ee5d88e9e508d27c75502b2d06c20d4c5ab87b496cb3b9951bd35
 register_shell="/bin/oksh"
+patch_args=-Np0
 
 alternatives="
  ksh:ksh:/usr/bin/oksh
diff --git a/srcpkgs/okteta/template b/srcpkgs/okteta/template
index 7d3878ca031a..f767b376f4f2 100644
--- a/srcpkgs/okteta/template
+++ b/srcpkgs/okteta/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://apps.kde.org/okteta/"
 distfiles="${KDE_SITE}/okteta/${version}/src/okteta-${version}.tar.xz"
 checksum=c569cd5b55503e46df1a5b5c9162b08888c426aa52c6f3f2f926c658bee0144c
+patch_args=-Np0
 
 okteta-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/okular/template b/srcpkgs/okular/template
index 44c3b7e82b70..7fcc1686d39f 100644
--- a/srcpkgs/okular/template
+++ b/srcpkgs/okular/template
@@ -17,6 +17,7 @@ license="GPL-2.0-only"
 homepage="https://kde.org/applications/en/graphics/org.kde.okular"
 distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=330dbe847409bfc544093ac703754fb5f43398ea3dbea88b976dc393d3bda65c
+patch_args=-Np0
 
 do_check() {
 	cd build
diff --git a/srcpkgs/olsrd/template b/srcpkgs/olsrd/template
index 314527b83433..fe19e2a1a809 100644
--- a/srcpkgs/olsrd/template
+++ b/srcpkgs/olsrd/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://www.olsr.org/"
 distfiles="https://github.com/OLSR/olsrd/archive/v${version}.tar.gz"
 checksum=9baf2e4993dbb53babf18eea9e81a2e92ce79686632711a16a5b4f7776e94451
+patch_args=-Np0
 
 conf_files="/etc/olsrd.conf"
 
diff --git a/srcpkgs/omxplayer/template b/srcpkgs/omxplayer/template
index f20b056f406f..c6742b439a4d 100644
--- a/srcpkgs/omxplayer/template
+++ b/srcpkgs/omxplayer/template
@@ -6,6 +6,7 @@ short_desc="Commandline OMX player for the Raspberry Pi"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2"
 homepage="https://github.com/popcornmix/omxplayer"
+patch_args=-Np0
 
 _commit="f06235cc9690a6d58187514452df8cf8fcdaacec"
 wrksrc="omxplayer-$_commit"
diff --git a/srcpkgs/open-iscsi/template b/srcpkgs/open-iscsi/template
index 7cd8308b0498..e772af1da0e9 100644
--- a/srcpkgs/open-iscsi/template
+++ b/srcpkgs/open-iscsi/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.open-iscsi.com/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=5410474b23552016220d04aa181903cb50ae988f29e99cb03f3e2de86a109be4
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) CFLAGS+="-D_LINUX_IF_ETHER_H -Wno-error=format -Wno-error=cpp";;
diff --git a/srcpkgs/open-vm-tools/template b/srcpkgs/open-vm-tools/template
index c452f7365ac3..b965024f763b 100644
--- a/srcpkgs/open-vm-tools/template
+++ b/srcpkgs/open-vm-tools/template
@@ -20,6 +20,7 @@ homepage="https://github.com/vmware/open-vm-tools"
 changelog="https://github.com/vmware/open-vm-tools/blob/master/open-vm-tools/ChangeLog"
 distfiles="https://github.com/vmware/open-vm-tools/archive/stable-${version}.tar.gz"
 checksum=7c31bb8ef70a0e32b81cde6550cae390a53108e4abb28bb539b0ab5b9e4fc188
+patch_args=-Np0
 
 build_options="pam x11"
 build_options_default="pam x11"
diff --git a/srcpkgs/openbabel/template b/srcpkgs/openbabel/template
index 83eef561f8a4..9e16fb318d30 100644
--- a/srcpkgs/openbabel/template
+++ b/srcpkgs/openbabel/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="http://openbabel.org"
 distfiles="https://github.com/openbabel/openbabel/archive/openbabel-${_ver}.tar.gz"
 checksum=594c7f8a83f3502381469d643f7b185882da1dd4bc2280c16502ef980af2a776
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" python"
diff --git a/srcpkgs/openblas/template b/srcpkgs/openblas/template
index 58a75941be47..2e3773fc1073 100644
--- a/srcpkgs/openblas/template
+++ b/srcpkgs/openblas/template
@@ -14,6 +14,7 @@ homepage="https://www.openblas.net/"
 changelog="https://raw.githubusercontent.com/xianyi/OpenBLAS/v${version}/Changelog.txt"
 distfiles="https://github.com/xianyi/OpenBLAS/archive/v${version}.tar.gz"
 checksum=79197543b17cc314b7e43f7a33148c308b0807cd6381ee77f77e15acf3e6459e
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	armv5*) make_build_args+=" TARGET=ARMV5" ;;
diff --git a/srcpkgs/openbox/template b/srcpkgs/openbox/template
index fb62d8d4fedb..346329d63bc2 100644
--- a/srcpkgs/openbox/template
+++ b/srcpkgs/openbox/template
@@ -20,6 +20,7 @@ homepage="http://www.openbox.org"
 distfiles="http://openbox.org/dist/openbox/openbox-$version.tar.xz"
 checksum=abe75855cc5616554ffd47134ad15291fe37ebbebf1a80b69cbde9d670f0e26d
 python_version=2 #unverified
+patch_args=-Np0
 
 # Package build options
 build_options="svg"
diff --git a/srcpkgs/openbsd-file/template b/srcpkgs/openbsd-file/template
index 839afee47d07..0556a0f33b35 100644
--- a/srcpkgs/openbsd-file/template
+++ b/srcpkgs/openbsd-file/template
@@ -12,6 +12,7 @@ license="ISC"
 homepage="https://github.com/brynet/file/"
 distfiles="https://github.com/brynet/file/archive/v${version}.tar.gz"
 checksum=f6bf601f513bd83038e343bbd93b7982f373669a2ffa76dc52d48fa7251515b2
+patch_args=-Np0
 
 system_accounts="_file"
 
diff --git a/srcpkgs/opencollada/template b/srcpkgs/opencollada/template
index 6041120059b1..3bc1f23010f4 100644
--- a/srcpkgs/opencollada/template
+++ b/srcpkgs/opencollada/template
@@ -13,6 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/KhronosGroup/OpenCOLLADA"
 distfiles="https://github.com/KhronosGroup/OpenCOLLADA/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=d9db0c0a518aa6ac0359626f222707c6ca1b63a83cbf229d97a5999c9cde347b
+patch_args=-Np0
 
 CXXFLAGS="-fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
 if [ -n "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/opencolorio/template b/srcpkgs/opencolorio/template
index 179736598588..c444616b8c64 100644
--- a/srcpkgs/opencolorio/template
+++ b/srcpkgs/opencolorio/template
@@ -19,6 +19,7 @@ homepage="http://opencolorio.org"
 changelog="https://raw.githubusercontent.com/imageworks/OpenColorIO/master/ChangeLog"
 distfiles="https://github.com/imageworks/OpenColorIO/archive/v${version}.tar.gz"
 checksum=c9b5b9def907e1dafb29e37336b702fff22cc6306d445a13b1621b8a754c14c8
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/opencv/template b/srcpkgs/opencv/template
index 4ebf6fe915ed..a484fbc92560 100644
--- a/srcpkgs/opencv/template
+++ b/srcpkgs/opencv/template
@@ -18,6 +18,7 @@ license="BSD-3-Clause"
 homepage="https://opencv.org"
 distfiles="https://github.com/opencv/${pkgname}/archive/${version}.tar.gz"
 checksum=1ed6f5b02a7baf14daca04817566e7c98ec668cec381e0edf534fa49f10f58a2
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/opencv4/template b/srcpkgs/opencv4/template
index f15c5f1ec2f1..02a8e293b97b 100644
--- a/srcpkgs/opencv4/template
+++ b/srcpkgs/opencv4/template
@@ -24,6 +24,7 @@ distfiles="https://github.com/opencv/opencv/archive/${version}.tar.gz
 	https://github.com/opencv/opencv_contrib/archive/${version}.tar.gz>contrib.tar.gz"
 checksum="68bc40cbf47fdb8ee73dfaf0d9c6494cd095cf6294d99de445ab64cf853d278a
 	acb8e89c9e7d1174e63e40532125b60d248b00e517255a98a419d415228c6a55"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/opendkim/template b/srcpkgs/opendkim/template
index c9d0abfda66c..cccc65ca3f3b 100644
--- a/srcpkgs/opendkim/template
+++ b/srcpkgs/opendkim/template
@@ -13,6 +13,7 @@ homepage="http://www.opendkim.org"
 distfiles="${SOURCEFORGE_SITE}/project/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=43a0ba57bf942095fe159d0748d8933c6b1dd1117caf0273fa9a0003215e681b
 python_version=2 #unverified
+patch_args=-Np0
 
 pre_configure() {
 	 autoreconf -fi
diff --git a/srcpkgs/openexr/template b/srcpkgs/openexr/template
index 3f1b59753c1b..f99fd2d8ab51 100644
--- a/srcpkgs/openexr/template
+++ b/srcpkgs/openexr/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://www.openexr.com/"
 distfiles="https://github.com/openexr/openexr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=3ebbe9a8e67edb4a25890b98c598e9fe23b10f96d1416d6a3ff0732e99d001c1
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/openjade/template b/srcpkgs/openjade/template
index 5d27cec3f6cb..401ab09110bb 100644
--- a/srcpkgs/openjade/template
+++ b/srcpkgs/openjade/template
@@ -19,6 +19,7 @@ homepage="http://openjade.sourceforge.net/"
 license="MIT"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-$version.tar.gz"
 checksum=1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1
+patch_args=-Np0
 
 CXXFLAGS="-fno-lifetime-dse"
 
diff --git a/srcpkgs/openjpeg2/template b/srcpkgs/openjpeg2/template
index 4e6f16ac7ced..dae52dc78195 100644
--- a/srcpkgs/openjpeg2/template
+++ b/srcpkgs/openjpeg2/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="http://www.openjpeg.org/"
 distfiles="https://github.com/uclouvain/openjpeg/archive/v${version}.tar.gz"
 checksum=8702ba68b442657f11aaeb2b338443ca8d5fb95b0d845757968a7be31ef7f16d
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/openlierox/template b/srcpkgs/openlierox/template
index 7ae0e22f2d3d..343b26f494f7 100644
--- a/srcpkgs/openlierox/template
+++ b/srcpkgs/openlierox/template
@@ -17,6 +17,7 @@ distfiles="${SOURCEFORGE_SITE}/openlierox/OpenLieroX_${version/.rc/_rc}.src.tar.
 checksum=3e029aba20f22d902027293e1f1a196e2f1794455cb2483d099709d7fb6c5fbb
 python_version=2
 replaces="openlierox-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libxml2"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/openmpi/template b/srcpkgs/openmpi/template
index ce8585fa6835..0881292b2772 100644
--- a/srcpkgs/openmpi/template
+++ b/srcpkgs/openmpi/template
@@ -19,6 +19,7 @@ distfiles="${homepage}/software/ompi/v${version%.*}/downloads/${pkgname}-${versi
 checksum=e24f7a778bd11a71ad0c14587a7f5b00e68a71aa5623e2157bafee3d44c07cda
 nocross="configure attempts to run target binaries"
 lib32disabled=yes
+patch_args=-Np0
 
 post_extract() {
 	vsed -e 's,sys/unistd.h,unistd.h,g' -i opal/include/opal/sys/cma.h
diff --git a/srcpkgs/openntpd/template b/srcpkgs/openntpd/template
index 34bb4ed3a5eb..e8c003ec9fd8 100644
--- a/srcpkgs/openntpd/template
+++ b/srcpkgs/openntpd/template
@@ -13,6 +13,7 @@ license="ISC"
 homepage="http://openntpd.org/"
 distfiles="http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/${pkgname}-${version}.tar.gz"
 checksum=7b02691524197e01ba6b1b4b7595b33956e657ba6d5c4cf2fc20ea3f4914c13a
+patch_args=-Np0
 
 conf_files="/etc/ntpd.conf"
 provides="ntp-daemon-0_1"
diff --git a/srcpkgs/opensm/template b/srcpkgs/opensm/template
index 101bf3a27ce2..62b6cf0ea3aa 100644
--- a/srcpkgs/opensm/template
+++ b/srcpkgs/opensm/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/linux-rdma/opensm"
 distfiles="https://github.com/linux-rdma/opensm/releases/download/${version}/opensm-${version}.tar.gz"
 checksum=1e0dc56a5cf5f8e5cd68bd534591405a5f5f1975ace40509f61a43cc2fe74ca7
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/opensmtpd-extras/template b/srcpkgs/opensmtpd-extras/template
index f022e13ed9cb..b8b0a4b5a0a8 100644
--- a/srcpkgs/opensmtpd-extras/template
+++ b/srcpkgs/opensmtpd-extras/template
@@ -16,6 +16,7 @@ license="ISC"
 homepage="https://www.opensmtpd.org"
 distfiles="https://www.opensmtpd.org/archives/${pkgname}-${version}.tar.gz"
 checksum=126b023602e8bb222bf24543a056ee0a548343dc86d184669ff9d82dfca1fbdf
+patch_args=-Np0
 
 CFLAGS="-D_DEFAULT_SOURCE"
 
diff --git a/srcpkgs/opensmtpd/template b/srcpkgs/opensmtpd/template
index ab0b2e6a10ab..5dfe9d09b811 100644
--- a/srcpkgs/opensmtpd/template
+++ b/srcpkgs/opensmtpd/template
@@ -26,6 +26,7 @@ checksum=51bf05312fe56764748faab9e63170bfbb7c7d84a37c4117b62b2681eb3a4d17
 provides="smtp-forwarder-0_1 smtp-server-0_1"
 replaces="smtp-forwarder>=0 smtp-server>=0"
 system_accounts="_smtpd _smtpq"
+patch_args=-Np0
 
 CFLAGS=-D_DEFAULT_SOURCE
 
diff --git a/srcpkgs/opensonic/template b/srcpkgs/opensonic/template
index 4dff7f06bd79..5b438426d12c 100644
--- a/srcpkgs/opensonic/template
+++ b/srcpkgs/opensonic/template
@@ -17,6 +17,7 @@ distfiles="${SOURCEFORGE_SITE}/opensnc/opensnc-src-${version}.tar.gz
  https://github.com/t6/loggcompat/archive/${_loggcompat_ver}.tar.gz"
 checksum="3a4c3fa9538ee27c04b5ea848c9ad0a83f335471936d4617a18d3648c42588e9
  481fe569959eefa92d0babeca27709b2efcf7a815cd5c49596b6c0403db76a4e"
+patch_args=-Np0
 
 replaces="opensonic-data>=0"
 CFLAGS="-I./../loggcompat-${_loggcompat_ver}"
diff --git a/srcpkgs/openssh/template b/srcpkgs/openssh/template
index 95c8b31073b3..fdd089dab38a 100644
--- a/srcpkgs/openssh/template
+++ b/srcpkgs/openssh/template
@@ -26,6 +26,7 @@ distfiles="https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/${pkgname}-${ver
 checksum=c3e6e4da1621762c850d03b47eed1e48dff4cc9608ddeb547202a234df8ed7ae
 conf_files="/etc/ssh/moduli /etc/ssh/ssh_config /etc/ssh/sshd_config /etc/pam.d/sshd"
 make_dirs="/var/chroot/ssh 0755 root root"
+patch_args=-Np0
 
 # Package build options
 build_options="fido2 gssapi ldns ssl"
diff --git a/srcpkgs/openssl/template b/srcpkgs/openssl/template
index 01dfd74de14d..007e2fc5b3e2 100644
--- a/srcpkgs/openssl/template
+++ b/srcpkgs/openssl/template
@@ -20,6 +20,7 @@ distfiles="https://www.openssl.org/source/openssl-${version}.tar.gz"
 checksum=892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5
 conf_files="/etc/ssl/openssl.cnf"
 replaces="libressl>=0"
+patch_args=-Np0
 
 build_options=asm
 
diff --git a/srcpkgs/opensurge/template b/srcpkgs/opensurge/template
index f39fb0028075..90714ddef502 100644
--- a/srcpkgs/opensurge/template
+++ b/srcpkgs/opensurge/template
@@ -12,6 +12,7 @@ homepage="https://opensurge2d.org/"
 distfiles="https://github.com/alemart/opensurge/archive/v${version}.tar.gz"
 checksum=27764a82d97b54026c90044fbc31ea4a61f7836568020b869e63376322a155af
 replaces="opensurge-data>=0"
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e 's/GAME_BINDIR "games"/GAME_BINDIR "bin"/'
diff --git a/srcpkgs/opkg/template b/srcpkgs/opkg/template
index 33b8bdd334fe..04d4362ae15f 100644
--- a/srcpkgs/opkg/template
+++ b/srcpkgs/opkg/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://code.google.com/p/opkg/"
 distfiles="https://downloads.yoctoproject.org/releases/opkg/opkg-${version}.tar.gz"
 checksum=a1214a75fa34fb9228db8da47308e0e711b1c93fd8938cf164c10fd28eb50f1e
+patch_args=-Np0
 
 build_options="gpg lz4 ssl"
 build_options_default="ssl"
diff --git a/srcpkgs/oprofile/template b/srcpkgs/oprofile/template
index 6625c363438a..da5caf24f4c3 100644
--- a/srcpkgs/oprofile/template
+++ b/srcpkgs/oprofile/template
@@ -15,6 +15,7 @@ license="GPL-2.0-only"
 homepage="http://oprofile.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=7ba06f99d7c188389d20d1d5e53ee690c7733f87aa9af62bd664fa0ca235a412
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc*) makedepends+=" papi-devel";;
diff --git a/srcpkgs/oragono/template b/srcpkgs/oragono/template
index 33a91197e97c..d3e884253354 100644
--- a/srcpkgs/oragono/template
+++ b/srcpkgs/oragono/template
@@ -16,6 +16,7 @@ system_accounts="_oragono"
 _oragono_homedir="/var/lib/oragono"
 make_dirs="
  /var/lib/oragono 0755 _oragono _oragono"
+patch_args=-Np0
 
  post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/orion/template b/srcpkgs/orion/template
index d69f2ff04dd4..29feec2b0bd0 100644
--- a/srcpkgs/orion/template
+++ b/srcpkgs/orion/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/alamminsalo/orion"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=19d9c170d0bcf21d47947704d8c8e927cff5140f94cb840b51d2b8574b0149fb
+patch_args=-Np0
 
 do_install() {
 	vbin orion
diff --git a/srcpkgs/os-prober/template b/srcpkgs/os-prober/template
index f22ca4e63e9b..3cd0dcc7a0a3 100644
--- a/srcpkgs/os-prober/template
+++ b/srcpkgs/os-prober/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://packages.debian.org/sid/os-prober"
 distfiles="${DEBIAN_SITE}/main/o/${pkgname}/${pkgname}_${version}.tar.xz"
 checksum=6e909f511035698145ba01ad63fd53fce6ee24529c76e2698e346bbac49950e9
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) _ARCH="x86";;
diff --git a/srcpkgs/osg/template b/srcpkgs/osg/template
index 08bf6d4b6591..c01c0e253576 100644
--- a/srcpkgs/osg/template
+++ b/srcpkgs/osg/template
@@ -23,6 +23,7 @@ license="OSGPL-2.0-or-later"
 homepage="http://www.openscenegraph.org"
 distfiles="https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-${version}.tar.gz"
 checksum=930eb46f05781a76883ec16c5f49cfb29a059421db131005d75bec4d78401fd5
+patch_args=-Np0
 
 # Append CFLAGS and CXXFLAGS to set work around code which gcc6 would
 # otherwise regard as out-of-specification and allow it to produce a
diff --git a/srcpkgs/osmid/template b/srcpkgs/osmid/template
index f89e27caedc4..2482ca254713 100644
--- a/srcpkgs/osmid/template
+++ b/srcpkgs/osmid/template
@@ -11,6 +11,7 @@ license="MIT, ISC, GPL-3.0-or-later"
 homepage="https://github.com/llloret/osmid/"
 distfiles="https://github.com/llloret/osmid/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=774d6c2c7ba81d1ab9d4e7ee031ce15a1506f19ee940166d277dbdee98f87b50
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" libexecinfo-devel" ;;
diff --git a/srcpkgs/otfcc/template b/srcpkgs/otfcc/template
index b19fbcb5220d..38ec8833f280 100644
--- a/srcpkgs/otfcc/template
+++ b/srcpkgs/otfcc/template
@@ -11,6 +11,7 @@ license="Apache-2.0"
 homepage="https://github.com/caryll/otfcc"
 distfiles="https://github.com/caryll/otfcc/archive/v${version}.tar.gz"
 checksum=d9c74825ddac700eb429de31de7cb0a249636f47c6a4cc64eaa102a40966cf00
+patch_args=-Np0
 
 # Yes, there are architectures besides x86 and x64 :-P
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/otpw/template b/srcpkgs/otpw/template
index 03c9c86d6a19..2f86ba39e087 100644
--- a/srcpkgs/otpw/template
+++ b/srcpkgs/otpw/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="http://www.cl.cam.ac.uk/~mgk25/otpw.html"
 distfiles="https://www.cl.cam.ac.uk/%7Emgk25/download/otpw-${version}.tar.gz"
 checksum=98aca38a61c7713677b96f24426ca7053480c0fd077d91b1e99bc9f92ccb832a
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC LD=$LD CFLAGS="$CFLAGS -fPIC" LDFLAGS="$LDFLAGS" ${makejobs}
diff --git a/srcpkgs/owncloudclient/template b/srcpkgs/owncloudclient/template
index 2146b9110d17..cf7871bd6477 100644
--- a/srcpkgs/owncloudclient/template
+++ b/srcpkgs/owncloudclient/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.owncloud.org"
 distfiles="https://github.com/owncloud/client/archive/v${version}.tar.gz"
 checksum=aafc6044a4c6727ad747195cb90a6be8c3a5b28de50df97fa961b6b551fe6d89
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-tools-devel"
diff --git a/srcpkgs/p7zip/template b/srcpkgs/p7zip/template
index 642e24adaf52..192db3c04f6b 100644
--- a/srcpkgs/p7zip/template
+++ b/srcpkgs/p7zip/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="http://p7zip.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}_src_all.tar.bz2"
 checksum=5eb20ac0e2944f6cb9c2d51dd6c4518941c185347d4089ea89087ffdd6e2341f
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/pa-applet/template b/srcpkgs/pa-applet/template
index e190ff2d99ad..c4586b7be4f1 100644
--- a/srcpkgs/pa-applet/template
+++ b/srcpkgs/pa-applet/template
@@ -13,6 +13,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/fernandotcl/pa-applet"
 distfiles="$homepage/archive/$_commit.tar.gz"
 checksum=db30c04a6954e1d138c6bc80739dae80d667a0af151b015db503e48fb30b0b7a
+patch_args=-Np0
 
 pre_configure() {
 	sed -i -e 's| -Werror||' src/Makefile.am
diff --git a/srcpkgs/pacman/template b/srcpkgs/pacman/template
index d23aba0468bf..c676fb361132 100644
--- a/srcpkgs/pacman/template
+++ b/srcpkgs/pacman/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.archlinux.org/pacman/"
 distfiles="https://sources.archlinux.org/other/pacman/pacman-${version}.tar.gz"
 checksum=bb201a9f2fb53c28d011f661d50028efce6eef2c1d2a36728bdd0130189349a0
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	do_check() {
diff --git a/srcpkgs/pahole/template b/srcpkgs/pahole/template
index d3b720d72f24..ee34924e70c7 100644
--- a/srcpkgs/pahole/template
+++ b/srcpkgs/pahole/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://git.kernel.org/?p=devel/pahole/pahole.git;a=summary"
 distfiles="https://fedorapeople.org/~acme/dwarves/dwarves-${version}.tar.xz"
 checksum=33a8bed6c0e1a5889578e01d1afed3f752353dc087d8bda36d258fe83e42a476
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	*-musl) makedepends+=" musl-obstack-devel argp-standalone"
diff --git a/srcpkgs/pam-mount/template b/srcpkgs/pam-mount/template
index 0a8e38d9de8c..235c7025df49 100644
--- a/srcpkgs/pam-mount/template
+++ b/srcpkgs/pam-mount/template
@@ -16,6 +16,7 @@ homepage="http://pam-mount.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pam-mount/pam_mount/${version}/pam_mount-${version}.tar.xz"
 checksum=ae0207ea6c96189414f906a7b0880abc7751a98e26b3d0375c9afab3722471e7
 conf_files="/etc/security/pam_mount.conf.xml"
+patch_args=-Np0
 
 libpam-mount_package() {
 	short_desc+=" - runtime library"
diff --git a/srcpkgs/pam-u2f/template b/srcpkgs/pam-u2f/template
index 7c1b5034a28d..02fb19f2b41d 100644
--- a/srcpkgs/pam-u2f/template
+++ b/srcpkgs/pam-u2f/template
@@ -14,6 +14,7 @@ homepage="https://developers.yubico.com/pam-u2f/"
 #changelog="https://raw.githubusercontent.com/Yubico/pam-u2f/master/NEWS"
 distfiles="https://developers.yubico.com/pam-u2f/Releases/pam_u2f-${version}.tar.gz"
 checksum=0dc3bf96ebb69c6e398b5f8991493b37a8ce1af792948af71e694f695d5edc05
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/pam_ssh/template b/srcpkgs/pam_ssh/template
index eba01a0fa450..b2d2ae5f4483 100644
--- a/srcpkgs/pam_ssh/template
+++ b/srcpkgs/pam_ssh/template
@@ -14,6 +14,7 @@ license="BSD-2-Clause"
 homepage="http://pam-ssh.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pam-ssh/${pkgname}-${version}.tar.xz"
 checksum=0c456f6a5c9e47ce6825ac50d467e7a797e14239b2b9a72bfeb2df0100f4af31
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/pam_ssh_agent_auth/template b/srcpkgs/pam_ssh_agent_auth/template
index 507448245108..05c7a4f346c1 100644
--- a/srcpkgs/pam_ssh_agent_auth/template
+++ b/srcpkgs/pam_ssh_agent_auth/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://pamsshagentauth.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pamsshagentauth/${pkgname}-${version}.tar.bz2"
 checksum=3c53d358d6eaed1b211239df017c27c6f9970995d14102ae67bae16d4f47a763
+patch_args=-Np0
 
 post_extract() {
 	vsed -e '/^AR=/d' -i Makefile.in -i openbsd-compat/Makefile.in
diff --git a/srcpkgs/papi/template b/srcpkgs/papi/template
index f8010c4b1591..c8d6d1e79fbf 100644
--- a/srcpkgs/papi/template
+++ b/srcpkgs/papi/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://icl.cs.utk.edu/papi/"
 distfiles="http://icl.utk.edu/projects/papi/downloads/papi-${version}.tar.gz"
 checksum=d1a3bb848e292c805bc9f29e09c27870e2ff4cda6c2fba3b7da8b4bba6547589
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	_ARCH="${XBPS_TARGET_MACHINE%-musl}"
diff --git a/srcpkgs/par/template b/srcpkgs/par/template
index 54747129b79a..0f8b5c52e165 100644
--- a/srcpkgs/par/template
+++ b/srcpkgs/par/template
@@ -12,6 +12,7 @@ distfiles="http://www.nicemice.net/par/Par152-autoconf.tar.gz
  http://www.nicemice.net/par/Par152.tar.gz"
 checksum="034fb943236523629eefee0a33fc6afb5b881648a2fc5c6bef7fd1b89ce44d34
  33dcdae905f4b4267b4dc1f3efb032d79705ca8d2122e17efdecfd8162067082"
+patch_args=-Np0
 
 do_install() {
 	vbin par
diff --git a/srcpkgs/par2cmdline/template b/srcpkgs/par2cmdline/template
index 548de4363a7c..10e1b5c63f40 100644
--- a/srcpkgs/par2cmdline/template
+++ b/srcpkgs/par2cmdline/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Parchive/par2cmdline"
 distfiles="https://github.com/Parchive/par2cmdline/archive/v${version}.tar.gz"
 checksum=529f85857ec44e501cd8d95b0c8caf47477d7daa5bfb989e422c800bb71b689a
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/paraview/template b/srcpkgs/paraview/template
index 20a7f5589677..875b5d1f176b 100644
--- a/srcpkgs/paraview/template
+++ b/srcpkgs/paraview/template
@@ -34,6 +34,7 @@ license="BSD-3-Clause"
 homepage="https://www.paraview.org"
 distfiles="https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${version:0:3}&type=source&os=Sources&downloadFile=ParaView-v${version}.tar.xz>paraview-${version}.tar.xz"
 checksum=7653950392a0d7c0287c26f1d3a25cdbaa11baa7524b0af0e6a1a0d7d487d034
+patch_args=-Np0
 
 CFLAGS="-DYYERROR_VERBOSE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DGNU_SOURCE -fcommon"
 CXXFLAGS="${CFLAGS}"
diff --git a/srcpkgs/parcellite/template b/srcpkgs/parcellite/template
index 98f7b661cd74..cb4de9fe6082 100644
--- a/srcpkgs/parcellite/template
+++ b/srcpkgs/parcellite/template
@@ -12,5 +12,6 @@ license="GPL-3.0-or-later"
 homepage="http://parcellite.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/parcellite/${version}/parcellite-${version}.tar.gz"
 checksum=aba1c7c56c7607e219ce9855723eefa552c5376982891aefbfb5a2d3297ef046
+patch_args=-Np0
 
 export LIBS=-lgio-2.0
diff --git a/srcpkgs/partclone/template b/srcpkgs/partclone/template
index 4813a8a250dd..5140c3dcf878 100644
--- a/srcpkgs/partclone/template
+++ b/srcpkgs/partclone/template
@@ -16,6 +16,7 @@ homepage="http://www.partclone.org/"
 distfiles="https://github.com/Thomas-Tsai/${pkgname}/archive/${version}.tar.gz"
 checksum=ef1391db3801e4b3ef82fc9417f1d7f0542b7229b3394120072b2dfeae0bbbb0
 CFLAGS="-DBTRFS_DISABLE_BACKTRACE"
+patch_args=-Np0
 
 pre_configure() {
 	./autogen
diff --git a/srcpkgs/passwordsafe/template b/srcpkgs/passwordsafe/template
index c4eab0c120ec..7d07f7849bea 100644
--- a/srcpkgs/passwordsafe/template
+++ b/srcpkgs/passwordsafe/template
@@ -16,6 +16,7 @@ license="Artistic-2.0"
 homepage="https://pwsafe.org"
 distfiles="https://github.com/pwsafe/pwsafe/archive/${version}.tar.gz"
 checksum=8962edf57b7f901d9ed23496c8ec387a4f186855976e8ac98f2dd55560c82ebe
+patch_args=-Np0
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -DNO_GTEST=OFF"
diff --git a/srcpkgs/pax/template b/srcpkgs/pax/template
index 0612a94cfebe..5a678b9e614f 100644
--- a/srcpkgs/pax/template
+++ b/srcpkgs/pax/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://www.mirbsd.org/MirOS/dist/mir/cpio/"
 distfiles="https://www.mirbsd.org/MirOS/dist/mir/cpio/paxmirabilis-${version}.cpio.gz"
 checksum=fe3f99c28ba7a46c4bce0b329da3742908b87fe8fbe17f0db1f99a1bd053d46b
+patch_args=-Np0
 
 alternatives="
  pax:pax:/usr/bin/paxmirabilis
diff --git a/srcpkgs/pcaudiolib/template b/srcpkgs/pcaudiolib/template
index 7f40e0388e16..54a1bf27c10f 100644
--- a/srcpkgs/pcaudiolib/template
+++ b/srcpkgs/pcaudiolib/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/espeak-ng/pcaudiolib"
 distfiles="https://github.com/espeak-ng/pcaudiolib/archive/${version}.tar.gz"
 checksum=699a5a347b1e12dc5b122e192e19f4db01621826bf41b9ebefb1cbc63ae2180b
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/pcc/template b/srcpkgs/pcc/template
index 84b020278d6d..e770914485c4 100644
--- a/srcpkgs/pcc/template
+++ b/srcpkgs/pcc/template
@@ -19,6 +19,7 @@ distfiles="
 checksum="a114dfca04b8b0559ea5d67b87d2d0fcb2bae2b4d9b9ba16ebc27960b921c812
  e810aa4d6683e769f490f734b13a296b33c2511ddba646bc526eb85532f1a23a"
 nocross=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/pchar/template b/srcpkgs/pchar/template
index da229e4e94c8..8186eb4aac29 100644
--- a/srcpkgs/pchar/template
+++ b/srcpkgs/pchar/template
@@ -9,6 +9,7 @@ license="custom"
 homepage="http://www.kitchenlab.org/www/bmah/Software/pchar/"
 distfiles="http://www.kitchenlab.org/www/bmah/Software/pchar/${pkgname}-${version}.tar.gz"
 checksum=7019297084f1000557a019501532ecae67772851717329cc02227f5c17e36d27
+patch_args=-Np0
 
 do_install() {
 	vbin pchar
diff --git a/srcpkgs/pcsclite/template b/srcpkgs/pcsclite/template
index ad9e221bfbc7..9363f84af591 100644
--- a/srcpkgs/pcsclite/template
+++ b/srcpkgs/pcsclite/template
@@ -14,6 +14,7 @@ license="BSD-2-Clause"
 homepage="https://salsa.debian.org/debian/pcsc-lite"
 distfiles="https://salsa.debian.org/debian/pcsc-lite/-/archive/upstream/${version}/pcsc-lite-upstream-${version}.tar.gz"
 checksum=686fbd1c29e282388111f01b6fdfa4fe6b8349908236645b869115b21e4f73e8
+patch_args=-Np0
 
 post_install() {
 	vsv pcscd
diff --git a/srcpkgs/pcsx2/template b/srcpkgs/pcsx2/template
index 59f8dfcdce71..9fef26e81efb 100644
--- a/srcpkgs/pcsx2/template
+++ b/srcpkgs/pcsx2/template
@@ -2,6 +2,7 @@
 archs="i686*"
 lib32mode="full"
 nopie=yes
+patch_args=-Np0
 
 pkgname=pcsx2
 version=1.6.0
diff --git a/srcpkgs/pd/template b/srcpkgs/pd/template
index 544afccd5410..df8bcc64fb11 100644
--- a/srcpkgs/pd/template
+++ b/srcpkgs/pd/template
@@ -15,6 +15,7 @@ license="BSD-3-Clause"
 homepage="https://puredata.info"
 distfiles="http://msp.ucsd.edu/Software/pd-$_ver.src.tar.gz"
 checksum=52591f18316e9f2471ca21c3d6b41c56336e0615ec40a093232e95cc230bfcc1
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/pdsh/template b/srcpkgs/pdsh/template
index e03e90656ad0..21d327d84a38 100644
--- a/srcpkgs/pdsh/template
+++ b/srcpkgs/pdsh/template
@@ -26,6 +26,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/chaos/pdsh"
 distfiles="https://github.com/chaos/pdsh/archive/pdsh-${version}.tar.gz"
 checksum=36e1b3c734ae9b4baf054c656b9735206cc56b290d2c0ec4f7825cdd9f7dff54
+patch_args=-Np0
 
 build_options="rsh exec ssh mrsh xcpu netgroup readline"
 build_options_default="rsh exec ssh mrsh readline"
diff --git a/srcpkgs/perl-Text-BibTeX/template b/srcpkgs/perl-Text-BibTeX/template
index bf385a1c465e..af0285bd8a2a 100644
--- a/srcpkgs/perl-Text-BibTeX/template
+++ b/srcpkgs/perl-Text-BibTeX/template
@@ -13,6 +13,7 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/Text-BibTeX/"
 distfiles="${CPAN_SITE}/Text/${pkgname/perl-/}-${version}.tar.gz"
 checksum=b014586e68bdbcafb0a2cfa0401eb0a04ea5de8c4d5bc36dd0f7faeab6acf42c
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	_perlprefix=${XBPS_STATEDIR}/perlprefix-${XBPS_TARGET_MACHINE}
diff --git a/srcpkgs/perl-Tk/template b/srcpkgs/perl-Tk/template
index 3515340159f4..6c2dbb6e2690 100644
--- a/srcpkgs/perl-Tk/template
+++ b/srcpkgs/perl-Tk/template
@@ -14,6 +14,7 @@ homepage="https://metacpan.org/release/Tk"
 license="Artistic-1.0-Perl, GPL-1.0-or-later"
 distfiles="${CPAN_SITE}/Tk/Tk-${version}.tar.gz"
 checksum=4d2b80291ba6de34d8ec886a085a6dbd2b790b926035a087e99025614c5ffdd4
+patch_args=-Np0
 
 post_configure() {
 	sed -i 's,X11/Xproto.h,,; s,X11/Xutil.h,,' pTk/Makefile
diff --git a/srcpkgs/perl-WWW-Curl/template b/srcpkgs/perl-WWW-Curl/template
index 5ff52959bfb0..e3e11f40736e 100644
--- a/srcpkgs/perl-WWW-Curl/template
+++ b/srcpkgs/perl-WWW-Curl/template
@@ -13,6 +13,7 @@ homepage="https://metacpan.org/release/WWW-Curl"
 license="MIT"
 distfiles="${CPAN_SITE}/WWW/WWW-Curl-$version.tar.gz"
 checksum=52ffab110e32348d775f241c973eb56f96b08eedbc110d77d257cdb0a24ab7ba
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/perl/template b/srcpkgs/perl/template
index 29da654b2f30..c5929e12b783 100644
--- a/srcpkgs/perl/template
+++ b/srcpkgs/perl/template
@@ -16,6 +16,7 @@ distfiles="https://www.cpan.org/src/5.0/perl-${version}.tar.gz
  https://github.com/arsv/perl-cross/releases/download/${_perl_cross_version}/perl-cross-${_perl_cross_version}.tar.gz"
 checksum="03b693901cd8ae807231b1787798cf1f2e0b8a56218d07b7da44f784a7caeb2c
  91c66f6b2b99fccfd4fee14660b677380b0c98f9456359e91449798c2ad2ef25"
+patch_args=-Np0
 
 # Before updating this package to a new major version, run ${FILESDIR}/provides.pl
 # against ${wrksrc} to find the list of built in packages.
diff --git a/srcpkgs/pgadmin3/template b/srcpkgs/pgadmin3/template
index ad2465b3413c..c4fc9f3c2aab 100644
--- a/srcpkgs/pgadmin3/template
+++ b/srcpkgs/pgadmin3/template
@@ -13,6 +13,7 @@ homepage="http://www.pgadmin.org"
 distfiles="https://ftp.postgresql.org/pub/pgadmin/pgadmin3/v${version}/src/pgadmin3-${version}.tar.gz"
 checksum=9b68b0e3d3f0a261344fb8196825967d1e7acaca1d8cc82c42e12368ca5844ac
 nocross=yes
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/php/template b/srcpkgs/php/template
index bdc35ee2d846..4d5649ef85ba 100644
--- a/srcpkgs/php/template
+++ b/srcpkgs/php/template
@@ -14,6 +14,7 @@ license="PHP-3.01"
 homepage="https://www.php.net"
 distfiles="http://www.php.net/distributions/php-${version}.tar.xz"
 checksum=f9f3c37969fcd9006c1dbb1dd76ab53f28c698a1646fa2dde8547c3f45e02886
+patch_args=-Np0
 
 conf_files="/etc/php/php.ini"
 
diff --git a/srcpkgs/pidgin-libnotify/template b/srcpkgs/pidgin-libnotify/template
index 5a627f323836..670f6336a6d6 100644
--- a/srcpkgs/pidgin-libnotify/template
+++ b/srcpkgs/pidgin-libnotify/template
@@ -14,6 +14,7 @@ homepage="http://gaim-libnotify.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/gaim-libnotify/${pkgname}-${version}.tar.gz"
 checksum=74f4a9f20e0a483df39974178f1f2380786176189512bcd438e4ada280ec3abe
 lib32disabled=yes
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/pidgin/template b/srcpkgs/pidgin/template
index a2668cf685eb..fb6513a00455 100644
--- a/srcpkgs/pidgin/template
+++ b/srcpkgs/pidgin/template
@@ -18,6 +18,7 @@ distfiles="${SOURCEFORGE_SITE}/pidgin/pidgin-${version}.tar.bz2"
 checksum=2747150c6f711146bddd333c496870bfd55058bab22ffb7e4eb784018ec46d8f
 python_version=2 #unverified
 lib32disabled=yes
+patch_args=-Np0
 
 hostmakedepends="pkg-config intltool automake libtool gettext gettext-devel glib-devel"
 makedepends="libglib-devel gtk+-devel libXext-devel
diff --git a/srcpkgs/pijul/template b/srcpkgs/pijul/template
index 40df186b9387..ad8534111db3 100644
--- a/srcpkgs/pijul/template
+++ b/srcpkgs/pijul/template
@@ -14,6 +14,7 @@ distfiles="https://crates.io/api/v1/crates/pijul/${version}/download>pijul-${ver
  https://gitlab.com/sequoia-pgp/sequoia/-/archive/v${_sequoia_ver}/sequoia-v${_sequoia_ver}.tar.gz"
 checksum="f92a3f4063e780ca45c161ceb0f42baf34dfeddf3359ebf6c2e0442d9abb5889
  71823c88b9666611f3cfa6b1d923bd66fda92fa6a53368b195bd2f962fdf7f4b"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	export HOST_CC="$BUILD_CC"
diff --git a/srcpkgs/pilot-link/template b/srcpkgs/pilot-link/template
index 5b83232cef8c..e42936b5e2d3 100644
--- a/srcpkgs/pilot-link/template
+++ b/srcpkgs/pilot-link/template
@@ -18,6 +18,7 @@ homepage="http://www.pilot-link.org/"
 #distfiles="http://downloads.pilot-link.org/${pkgname}-${version}.tar.bz2"
 distfiles="https://mirrors.slackware.com/slackware/slackware-14.1/source/l/pilot-link/pilot-link-${version}.tar.bz2"
 checksum=d3f99ec04016b38995fb370265200254710318105c792c017d3aaccfb97a84b2
+patch_args=-Np0
 
 # Avoid error because of deprecation
 CFLAGS="-Wno-deprecated-declarations"
diff --git a/srcpkgs/pinebookpro-uboot/template b/srcpkgs/pinebookpro-uboot/template
index db629c4a8e53..ce053ca69d80 100644
--- a/srcpkgs/pinebookpro-uboot/template
+++ b/srcpkgs/pinebookpro-uboot/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only, BSD-3-Clause"
 homepage="https://www.denx.de/wiki/U-Boot/"
 distfiles="https://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2"
 checksum=0d481bbdc05c0ee74908ec2f56a6daa53166cc6a78a0e4fac2ac5d025770a622
+patch_args=-Np0
 
 do_configure() {
 	unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
diff --git a/srcpkgs/pingus/template b/srcpkgs/pingus/template
index 8e126cf7466e..a4f8d003f7f7 100644
--- a/srcpkgs/pingus/template
+++ b/srcpkgs/pingus/template
@@ -14,6 +14,7 @@ homepage="https://pingus.seul.org/"
 distfiles="https://gitlab.com/pingus/pingus/-/archive/v${version}/pingus-v${version}.tar.gz"
 checksum=31cb2c0ecddd49dbe03535648e8c7c2971da469c52af52cdf9dc2459798342c8
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	# XXX: defining CXXFLAGS breaks dependency detection.
diff --git a/srcpkgs/pioneer/template b/srcpkgs/pioneer/template
index 40812890ec7a..c4b81ba6968d 100644
--- a/srcpkgs/pioneer/template
+++ b/srcpkgs/pioneer/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://pioneerspacesim.net"
 distfiles="https://github.com/pioneerspacesim/pioneer/archive/${version}.tar.gz"
 checksum=fcbc57374123b44161e9d15d97bd950255f654a222840894f50bfc2be716ea68
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" pioneer-modelcompiler"
diff --git a/srcpkgs/pipenightdreams/template b/srcpkgs/pipenightdreams/template
index baf9b32f95d1..a8de6c96d19a 100644
--- a/srcpkgs/pipenightdreams/template
+++ b/srcpkgs/pipenightdreams/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.libsdl.org/projects/pipenightdreams"
 distfiles="${homepage}/packages/${pkgname}-${version}.tar.bz2"
 checksum=302f8ce6e0eb32ebd779700527095cf086c2c7132d47095bae9a43c346245541
+patch_args=-Np0
 
 pre_configure() {
 	find . -type f -exec sed -i "{}" -e "s;/games/;/;g" \;
diff --git a/srcpkgs/pipewire/template b/srcpkgs/pipewire/template
index 43e3c1cfc9b4..ac6ce7fffd6f 100644
--- a/srcpkgs/pipewire/template
+++ b/srcpkgs/pipewire/template
@@ -19,6 +19,7 @@ homepage="https://pipewire.org/"
 changelog="https://gitlab.freedesktop.org/pipewire/pipewire/-/raw/master/NEWS"
 distfiles="https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/${version}/pipewire-${version}.tar.gz"
 checksum=1d9271e121a5049aef379e9bb7c50524faa6f971e668806637d7b9df1b7cab88
+patch_args=-Np0
 
 build_options="sdl2"
 
diff --git a/srcpkgs/pjproject/template b/srcpkgs/pjproject/template
index c94ead90e9de..041dd40b5047 100644
--- a/srcpkgs/pjproject/template
+++ b/srcpkgs/pjproject/template
@@ -24,6 +24,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.pjsip.org/pjsua.htm"
 distfiles="http://www.pjsip.org/release/${version}/${pkgname}-${version}.tar.bz2"
 checksum=503d0bd7f9f13dc1492ac9b71b761b1089851fbb608b9a13996edc3c42006f79
+patch_args=-Np0
 
 pre_configure() {
 	export LD="${CC}"
diff --git a/srcpkgs/plasma-framework/template b/srcpkgs/plasma-framework/template
index 8dd0abc2a5a8..8888c18fdcaa 100644
--- a/srcpkgs/plasma-framework/template
+++ b/srcpkgs/plasma-framework/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="https://invent.kde.org/frameworks/plasma-framework"
 distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=f128726985a21b895591bf694520dac3580e539d517c6e80230fc80166f8b9a1
+patch_args=-Np0
 
 plasma-framework-devel_package() {
 	short_desc+=" - development"
diff --git a/srcpkgs/plasma-workspace/template b/srcpkgs/plasma-workspace/template
index 049bc5c1f28e..fe6fdbf28433 100644
--- a/srcpkgs/plasma-workspace/template
+++ b/srcpkgs/plasma-workspace/template
@@ -24,6 +24,7 @@ license="GPL-2.0-or-later, GFDL-1.2-or-later, LGPL-2.1-or-later"
 homepage="https://invent.kde.org/plasma/plasma-workspace"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=61ad5adab412c935ae156c4de3f38d1e2640752c95100ad6996b9e51e8539725
+patch_args=-Np0
 
 build_options="pipewire"
 build_options_default="pipewire"
diff --git a/srcpkgs/plex-media-player/template b/srcpkgs/plex-media-player/template
index 830d09f8579d..e2b23f24dfe6 100644
--- a/srcpkgs/plex-media-player/template
+++ b/srcpkgs/plex-media-player/template
@@ -38,6 +38,7 @@ skip_extraction="buildid-${_buildid_version}.cmake
  web-client-desktop-${_clientdesktop_version}.tar.xz.sha1
  web-client-tv-${_clienttv_version}.tar.xz
  web-client-tv-${_clienttv_version}.tar.xz.sha1"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-devel qt5-host-tools"
diff --git a/srcpkgs/plib/template b/srcpkgs/plib/template
index cde1e8335d24..c212ec3dd700 100644
--- a/srcpkgs/plib/template
+++ b/srcpkgs/plib/template
@@ -12,6 +12,7 @@ license="LGPL-2.0-or-later"
 homepage="http://plib.sourceforge.net"
 distfiles="http://plib.sourceforge.net/dist/plib-${version}.tar.gz"
 checksum=485b22bf6fdc0da067e34ead5e26f002b76326f6371e2ae006415dea6a380a32
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/plocate/template b/srcpkgs/plocate/template
index 58252651243d..fa184f7b94c5 100644
--- a/srcpkgs/plocate/template
+++ b/srcpkgs/plocate/template
@@ -15,6 +15,7 @@ homepage="https://plocate.sesse.net/"
 changelog="https://git.sesse.net/?p=plocate;a=blob_plain;f=NEWS;hb=HEAD"
 distfiles="https://plocate.sesse.net/download/plocate-${version}.tar.gz"
 checksum=13002f065c28a93623a03d44c911a44f1659e8b1841aad80fd8a566a1200f43c
+patch_args=-Np0
 
 system_accounts="_plocate"
 
diff --git a/srcpkgs/plotutils/template b/srcpkgs/plotutils/template
index 6b64353081be..b047906f96cd 100644
--- a/srcpkgs/plotutils/template
+++ b/srcpkgs/plotutils/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="http://directory.fsf.org/wiki/Plotutils"
 distfiles="${GNU_SITE}/plotutils/plotutils-${version}.tar.gz"
 checksum=4f4222820f97ca08c7ea707e4c53e5a3556af4d8f1ab51e0da6ff1627ff433ab
+patch_args=-Np0
 
 plotutils-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/plume-creator/template b/srcpkgs/plume-creator/template
index 3c415a06cdd8..86bd3b86ee41 100644
--- a/srcpkgs/plume-creator/template
+++ b/srcpkgs/plume-creator/template
@@ -20,6 +20,7 @@ distfiles="
 checksum="
  f88f9524184bcf60dae855d6ad37899aefa39de0edd56098e93ce3b97b679e0c
  7d473ee7283bc311c7d4dd3311d1e7726df7d45fa0123894265f355b436298e1"
+patch_args=-Np0
 
 post_extract() {
 	mv -f ${wrksrc}/../debian ${wrksrc}/
diff --git a/srcpkgs/plymouth/template b/srcpkgs/plymouth/template
index 17f801fc5315..9b15ecb110a5 100644
--- a/srcpkgs/plymouth/template
+++ b/srcpkgs/plymouth/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.freedesktop.org/wiki/Software/Plymouth/"
 distfiles="${FREEDESKTOP_SITE}/plymouth/releases/$pkgname-$version.tar.xz"
 checksum=ecae257f351d098340542a5bc06de029404c24dcee87e6ebb2abd5ef117fce86
+patch_args=-Np0
 
 build_options="gtk3 pango"
 build_options_default="gtk3 pango"
diff --git a/srcpkgs/pmount/template b/srcpkgs/pmount/template
index 8a826f4e0fe6..f4bb5a0939f8 100644
--- a/srcpkgs/pmount/template
+++ b/srcpkgs/pmount/template
@@ -12,6 +12,7 @@ homepage="http://pmount.alioth.debian.org/"
 distfiles="${DEBIAN_SITE}/main/p/${pkgname}/${pkgname}_${version}.orig.tar.bz2"
 checksum=db38fc290b710e8e9e9d442da2fb627d41e13b3ee80326c15cc2595ba00ea036
 conf_files="/etc/pmount.allow"
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/png++/template b/srcpkgs/png++/template
index b156d6063088..01788d947b49 100644
--- a/srcpkgs/png++/template
+++ b/srcpkgs/png++/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://www.nongnu.org/pngpp"
 distfiles="${NONGNU_SITE}/pngpp/${pkgname}-${version}.tar.gz"
 checksum=998af216ab16ebb88543fbaa2dbb9175855e944775b66f2996fc945c8444eee1
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/polkit-qt5/template b/srcpkgs/polkit-qt5/template
index 7edc26624f5c..b4fdd7b240ab 100644
--- a/srcpkgs/polkit-qt5/template
+++ b/srcpkgs/polkit-qt5/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="https://projects.kde.org/projects/kdesupport/polkit-qt-1"
 distfiles="${KDE_SITE}/polkit-qt-1/polkit-qt-1-${version}.tar.xz"
 checksum=5b866a2954ef10ffb66156e2fe8ad0321b5528a8df2e4a91b02f5041ce5563a7
+patch_args=-Np0
 
 polkit-qt5-devel_package() {
 	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/polkit/template b/srcpkgs/polkit/template
index 01d31d7dc6ae..0fc0d667eb22 100644
--- a/srcpkgs/polkit/template
+++ b/srcpkgs/polkit/template
@@ -22,6 +22,7 @@ checksum=6d54e984e7072339f0d3147179e16e34e5fe0705158f259a765d772dcf78956b
 system_accounts="polkitd"
 #replaces="polkit-elogind>=0"
 #provides="polkit-elogind-${version}_${revision}"
+patch_args=-Np0
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/polygen/template b/srcpkgs/polygen/template
index 22811a9f7b99..20c1f27c3037 100644
--- a/srcpkgs/polygen/template
+++ b/srcpkgs/polygen/template
@@ -12,6 +12,7 @@ homepage="http://www.polygen.org"
 distfiles="${DEBIAN_SITE}/main/p/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=60dbcec8aedcbb2545202ad97d41e592f232b8fc842ea25a7998c88a385148d5
 nocross=yes
+patch_args=-Np0
 
 do_check() {
 	:
diff --git a/srcpkgs/portaudio/template b/srcpkgs/portaudio/template
index 7032f8da9d41..eaaacb9b299f 100644
--- a/srcpkgs/portaudio/template
+++ b/srcpkgs/portaudio/template
@@ -14,6 +14,7 @@ homepage="http://www.portaudio.com"
 distfiles="http://www.${pkgname}.com/archives/pa_stable_v${version%.*}_${version#*.}.tgz"
 checksum=f5a21d7dcd6ee84397446fa1fa1a0675bb2e8a4a6dceb4305a8404698d8d1513
 disable_parallel_build=yes
+patch_args=-Np0
 
 # sndio disabled by default: non-upstream patch
 build_options="sndio"
diff --git a/srcpkgs/portmidi/template b/srcpkgs/portmidi/template
index e3afd5cd8314..88906d95e148 100644
--- a/srcpkgs/portmidi/template
+++ b/srcpkgs/portmidi/template
@@ -17,6 +17,7 @@ license="MIT"
 homepage="http://portmedia.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/portmedia/${pkgname}/${version}/${pkgname}-src-${version}.zip"
 checksum=08e9a892bd80bdb1115213fb72dc29a7bf2ff108b378180586aa65f3cfd42e0f
+patch_args=-Np0
 
 post_install() {
 	ln -s libportmidi.so ${DESTDIR}/usr/lib/libporttime.so
diff --git a/srcpkgs/postfix/template b/srcpkgs/postfix/template
index 80d321fb726c..7eef653977d5 100644
--- a/srcpkgs/postfix/template
+++ b/srcpkgs/postfix/template
@@ -11,6 +11,7 @@ license="IPL-1.0, EPL-2.0"
 homepage="http://www.postfix.org/"
 distfiles="http://ftp.porcupine.org/mirrors/postfix-release/official/${pkgname}-${version}.tar.gz"
 checksum=20a805625601e7b95989220832c8fa14ce374f0711da054188f8cec6a92fd71c
+patch_args=-Np0
 
 system_accounts="postfix"
 postfix_homedir="/var/spool/postfix"
diff --git a/srcpkgs/postgresql/template b/srcpkgs/postgresql/template
index 3167e0657fed..f638aa7642e9 100644
--- a/srcpkgs/postgresql/template
+++ b/srcpkgs/postgresql/template
@@ -22,6 +22,7 @@ distfiles="https://ftp.postgresql.org/pub/source/v${version}/${pkgname}-${versio
 checksum=3d32cd101025a0556813397c69feff3df3d63736adb8adeaf365c522f39f2930
 # initdb fails on github actions, works locally with xbps-uunshare
 make_check=ci-skip
+patch_args=-Np0
 
 conf_files="
 	/etc/default/${pkgname}
diff --git a/srcpkgs/postgresql12/template b/srcpkgs/postgresql12/template
index 02b9e6b1f794..5450b7828739 100644
--- a/srcpkgs/postgresql12/template
+++ b/srcpkgs/postgresql12/template
@@ -23,6 +23,7 @@ homepage="https://www.postgresql.org"
 changelog="https://www.postgresql.org/docs/current/release-${version//./-}.html"
 distfiles="https://ftp.postgresql.org/pub/source/v${version}/postgresql-${version}.tar.bz2"
 checksum=8490741f47c88edc8b6624af009ce19fda4dc9b31c4469ce2551d84075d5d995
+patch_args=-Np0
 
 conf_files="
  /${_prefix}/etc/default/postgresql
diff --git a/srcpkgs/postgresql13/template b/srcpkgs/postgresql13/template
index be54f0bafe4c..1757cac0a3a5 100644
--- a/srcpkgs/postgresql13/template
+++ b/srcpkgs/postgresql13/template
@@ -23,6 +23,7 @@ homepage="https://www.postgresql.org"
 changelog="https://www.postgresql.org/docs/current/release-${version//./-}.html"
 distfiles="https://ftp.postgresql.org/pub/source/v${version}/postgresql-${version}.tar.bz2"
 checksum=3cd9454fa8c7a6255b6743b767700925ead1b9ab0d7a0f9dcb1151010f8eb4a1
+patch_args=-Np0
 
 conf_files="
  /${_prefix}/etc/default/postgresql
diff --git a/srcpkgs/povray/template b/srcpkgs/povray/template
index 30a2baab2039..20f0417c2681 100644
--- a/srcpkgs/povray/template
+++ b/srcpkgs/povray/template
@@ -20,6 +20,7 @@ checksum=53d11ebd2972fc452af168a00eb83aefb61387662c10784e81b63e44aa575de4
 nocross="Builds fail on ARM architectures
  Logs are at https://travis-ci.org/void-linux/void-packages/builds/412583835."
 LDFLAGS+=" -Wl,-z,stack-size=1048576"
+patch_args=-Np0
 
 pre_configure() {
 	cd $wrksrc/unix
diff --git a/srcpkgs/powerpc-utils/template b/srcpkgs/powerpc-utils/template
index e975d94658a0..f33782a127da 100644
--- a/srcpkgs/powerpc-utils/template
+++ b/srcpkgs/powerpc-utils/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/ibm-power-utilities/powerpc-utils"
 distfiles="https://github.com/ibm-power-utilities/powerpc-utils/archive/v${version}.tar.gz"
 checksum=bb48758bca3b9d056141b522e700218ee4e814b517aadf5a01f53b970ad1d3c3
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --with-librtas ac_cv_lib_rtasevent_parse_rtas_event=yes"
diff --git a/srcpkgs/ppp/template b/srcpkgs/ppp/template
index 8f597b56516f..c59d266437f4 100644
--- a/srcpkgs/ppp/template
+++ b/srcpkgs/ppp/template
@@ -25,6 +25,7 @@ conf_files="
  /etc/ppp/options
  /etc/ppp/chap-secrets
  /etc/ppp/pap-secrets"
+patch_args=-Np0
 
 do_configure() {
 	./configure --prefix=/usr --cc="${CC}" --cflags="${CFLAGS}"
diff --git a/srcpkgs/pps-tools/template b/srcpkgs/pps-tools/template
index 2227ed811c0d..459a701ff5da 100644
--- a/srcpkgs/pps-tools/template
+++ b/srcpkgs/pps-tools/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://linuxpps.org/"
 distfiles="https://github.com/ago/pps-tools/archive/v${version}.tar.gz"
 checksum=1a7efd66152e5439b69143f1f380b40ac5decbbbef516b37a017410b8ba7dff4
+patch_args=-Np0
 
 pps-tools-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/ppsspp/template b/srcpkgs/ppsspp/template
index eaf14bc7cf14..eee3c9fe1a1a 100644
--- a/srcpkgs/ppsspp/template
+++ b/srcpkgs/ppsspp/template
@@ -36,6 +36,7 @@ checksum="503f046fa68e4be24d08822b0aa2280e653ad513d9a12c77a59809467b95c516
  f8a03906135fb6f2932b80b7ef5991f39ccac46b36ec3690776fb38c69775c3d
  20fe5dbd7a64f7a8fdbaeb81f8dd485df61121c5054e0f7f917c6193f209ff2e
  6819f0984fa647f69a74831a2333859a07099f64098ce58c35d8604d19532d3d"
+patch_args=-Np0
 
 # ppsspp always tries to compile x86 unittest
 # https://gist.github.com/Johnnynator/e18d59274451cff890b7235009d2e93d
diff --git a/srcpkgs/pptpclient/template b/srcpkgs/pptpclient/template
index 3761f308658d..4b75b7dd481b 100644
--- a/srcpkgs/pptpclient/template
+++ b/srcpkgs/pptpclient/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://pptpclient.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/pptpclient/files/pptp-${version}.tar.gz"
 checksum=82492db8e487ce73b182ee7f444251d20c44f5c26d6e96c553ec7093aefb5af4
+patch_args=-Np0
 
 pre_build() {
 	sed -i Makefile \
diff --git a/srcpkgs/projectlibre/template b/srcpkgs/projectlibre/template
index 4f6d94cef759..9bac53e4496b 100644
--- a/srcpkgs/projectlibre/template
+++ b/srcpkgs/projectlibre/template
@@ -9,6 +9,7 @@ license="CPAL-1.0"
 homepage="https://www.projectlibre.com/"
 distfiles="${SOURCEFORGE_SITE}/projectlibre/${version}/projectlibre-${version}.tar.gz"
 checksum=58160173ecb384d988a398b7fe5400fc9667209aab2dedc21f5445f4f88f09c4
+patch_args=-Np0
 
 do_install() {
 	_dest="usr/share/projectlibre"
diff --git a/srcpkgs/proot/template b/srcpkgs/proot/template
index bf03af65a909..de493094767c 100644
--- a/srcpkgs/proot/template
+++ b/srcpkgs/proot/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://proot-me.github.io"
 distfiles="https://github.com/proot-me/PRoot/archive/v${version}.tar.gz"
 checksum=ce0a3baca8312613bd10f65bb436a3aaa28e1034f498a22c35ad0693600e01dd
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/protobuf-c/template b/srcpkgs/protobuf-c/template
index ab3915524c66..cb483c410441 100644
--- a/srcpkgs/protobuf-c/template
+++ b/srcpkgs/protobuf-c/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/protobuf-c/protobuf-c"
 distfiles="${homepage}/releases/download/v${version}/protobuf-c-${version}.tar.gz"
 checksum=22956606ef50c60de1fabc13a78fbc50830a0447d780467d3c519f84ad527e78
+patch_args=-Np0
 
 # buildprocess calls compiler while building, disable it on cross build
 build_options="protoc"
diff --git a/srcpkgs/prototype/template b/srcpkgs/prototype/template
index 03d8f26c39be..653e15089878 100644
--- a/srcpkgs/prototype/template
+++ b/srcpkgs/prototype/template
@@ -9,6 +9,7 @@ license="Public Domain"
 homepage="https://github.com/ptitSeb/prototype"
 distfiles="https://github.com/ptitSeb/prototype/archive/v${version}.tar.gz"
 checksum=400f8a5c727c9feaa6b48b65c23c312db41dd238af9526659bf3342346c05af6
+patch_args=-Np0
 
 CXXFLAGS="-Wno-write-strings"
 
diff --git a/srcpkgs/psensor/template b/srcpkgs/psensor/template
index 00cf7ba46a69..b4841eed5884 100644
--- a/srcpkgs/psensor/template
+++ b/srcpkgs/psensor/template
@@ -16,6 +16,7 @@ changelog="https://gitlab.com/jeanfi/psensor/-/raw/master/NEWS"
 distfiles="https://wpitchoune.net/${pkgname}/files/${pkgname}-${version}.tar.gz"
 checksum=084f785d169f533d3010e50c5933436ed427afc70d41740b762f1db5034833ab
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ -z "$CROSS_BUILD" ]; then
 	hostmakedepends+=" help2man"
diff --git a/srcpkgs/ptii/template b/srcpkgs/ptii/template
index 572d59daad4d..a0c21edea43c 100644
--- a/srcpkgs/ptii/template
+++ b/srcpkgs/ptii/template
@@ -10,5 +10,6 @@ license="WTFPL"
 homepage="http://git.z3bra.org/cgit.cgi/ptii/"
 distfiles="https://sources.voidlinux.de/ptii-${version}/ptii-${version}.tar.bz2"
 checksum=2f130417251938c9947293f4df07b6db37909e03d4f600e0af025d1ae6a02d26
+patch_args=-Np0
 
 LDFLAGS="-lpthread"
diff --git a/srcpkgs/pugixml/template b/srcpkgs/pugixml/template
index 45d0d36a67b7..c34c9d86dde8 100644
--- a/srcpkgs/pugixml/template
+++ b/srcpkgs/pugixml/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://pugixml.org/"
 distfiles="http://github.com/zeux/pugixml/releases/download/v${version}/pugixml-${version}.tar.gz"
 checksum=8ddf57b65fb860416979a3f0640c2ad45ddddbbafa82508ef0a0af3ce7061716
+patch_args=-Np0
 
 post_install() {
 	tail -22 readme.txt > LICENSE
diff --git a/srcpkgs/pulseview/template b/srcpkgs/pulseview/template
index 83ce80bc39d9..b6e099c7b684 100644
--- a/srcpkgs/pulseview/template
+++ b/srcpkgs/pulseview/template
@@ -15,5 +15,6 @@ license="GPL-3"
 homepage="https://sigrok.org/"
 distfiles="https://sigrok.org/download/source/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=f042f77a3e1b35bf30666330e36ec38fab8d248c3693c37b7e35d401c3bfabcb
+patch_args=-Np0
 
 CXXFLAGS+=" -fext-numeric-literals"
diff --git a/srcpkgs/putty/template b/srcpkgs/putty/template
index e4efe58debd4..c87cbf5b6098 100644
--- a/srcpkgs/putty/template
+++ b/srcpkgs/putty/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://www.chiark.greenend.org.uk/~sgtatham/putty/"
 distfiles="http://the.earth.li/~sgtatham/putty/latest/putty-${version}.tar.gz"
 checksum=d3173b037eddbe9349abe978101277b4ba9f9959e25dedd44f87e7b85cc8f9f5
+patch_args=-Np0
 
 CFLAGS="-Wno-error"
 
diff --git a/srcpkgs/pvoc/template b/srcpkgs/pvoc/template
index da23784124aa..7d27e4d71084 100644
--- a/srcpkgs/pvoc/template
+++ b/srcpkgs/pvoc/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://quitte.de/dsp/pvoc.html"
 distfiles="http://quitte.de/dsp/pvoc_${version}.tar.gz"
 checksum=d519d416049143cb2c4775feae639021b5693f39e27e99b1f036392580baa32d
+patch_args=-Np0
 
 pre_build() {
 	sed -i "s@-O6.\+@${CFLAGS}@" Makefile
diff --git a/srcpkgs/pwnat/template b/srcpkgs/pwnat/template
index a1e9f92078dc..2fe12805a70a 100644
--- a/srcpkgs/pwnat/template
+++ b/srcpkgs/pwnat/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="http://samy.pl/pwnat/"
 distfiles="https://github.com/samyk/pwnat/archive/${_githash}.tar.gz"
 checksum=365da981ba1a39d7e3c8427fbcd9e7fcd3dd16cd30ae7e3b0aca50511fd8e1b1
+patch_args=-Np0
 
 do_configure() {
 	sed -i 's#sys/unistd.h#unistd.h#' $(find -name '*.[ch]')
diff --git a/srcpkgs/pygtk/template b/srcpkgs/pygtk/template
index 41554b81763a..ca12604df127 100644
--- a/srcpkgs/pygtk/template
+++ b/srcpkgs/pygtk/template
@@ -20,6 +20,7 @@ distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.bz2"
 checksum=cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5363e0f82c896e649f206912
 lib32disabled=yes
 python_version=2
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/pymol/template b/srcpkgs/pymol/template
index dfb9441f22a1..fe0fb1faa350 100644
--- a/srcpkgs/pymol/template
+++ b/srcpkgs/pymol/template
@@ -17,6 +17,7 @@ distfiles="https://github.com/schrodinger/pymol-open-source/archive/v${version}.
 checksum="5ede4ce2e8f53713c5ee64f5905b2d29bf01e4391da7e536ce8909d6b9116581
  0ea81faaf336becc669a193777d0dca55475d303d1236b57df25cf67ff7c2bcd"
 skip_extraction="${pkgname}.png"
+patch_args=-Np0
 
 export PREFIX_PATH="${XBPS_CROSS_BASE}/usr"
 # PREFIX_PATH isn't used for the py3 include path
diff --git a/srcpkgs/pyside2-tools/template b/srcpkgs/pyside2-tools/template
index 35d353aba95d..b7559676933a 100644
--- a/srcpkgs/pyside2-tools/template
+++ b/srcpkgs/pyside2-tools/template
@@ -17,6 +17,7 @@ homepage="https://wiki.qt.io/Qt_for_Python/Shiboken"
 distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
 checksum=b306504b0b8037079a8eab772ee774b9e877a2d84bab2dbefbe4fa6f83941418
 python_version=3
+patch_args=-Np0
 
 if [ ${CROSS_BUILD} ]; then
 	hostmakedepends+=" qt5-qmake qt5-host-tools"
diff --git a/srcpkgs/python-M2Crypto/template b/srcpkgs/python-M2Crypto/template
index 4c684d18f576..ac5752871e29 100644
--- a/srcpkgs/python-M2Crypto/template
+++ b/srcpkgs/python-M2Crypto/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://gitlab.com/m2crypto/m2crypto/"
 distfiles="${PYPI_SITE}/M/M2Crypto/M2Crypto-${version}.tar.gz"
 checksum=4c6ad45ffb88670c590233683074f2440d96aaccb05b831371869fc387cbd127
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENCE
diff --git a/srcpkgs/python-coverage/template b/srcpkgs/python-coverage/template
index 332e7baa3b7a..99b9a3c07ea3 100644
--- a/srcpkgs/python-coverage/template
+++ b/srcpkgs/python-coverage/template
@@ -14,6 +14,7 @@ homepage="https://bitbucket.org/ned/coveragepy"
 distfiles="${PYPI_SITE}/c/coverage/coverage-${version}.tar.gz"
 checksum=77afca04240c40450c331fa796b3eab6f1e15c5ecf8bf2b8bee9706cd5452fef
 alternatives="coverage:coverage:/usr/bin/coverage2"
+patch_args=-Np0
 
 python3-coverage_package() {
 	depends="python3-setuptools"
diff --git a/srcpkgs/python-docutils/template b/srcpkgs/python-docutils/template
index 02232f31a266..f2843fc47cf8 100644
--- a/srcpkgs/python-docutils/template
+++ b/srcpkgs/python-docutils/template
@@ -14,6 +14,7 @@ homepage="http://docutils.sourceforge.net"
 distfiles="${PYPI_SITE}/d/docutils/docutils-${version}.tar.gz"
 checksum=c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc
 checkdepends+="$depends python3-Pygments"
+patch_args=-Np0
 
 alternatives="
  docutils:rst2html:/usr/bin/rst2html.py2
diff --git a/srcpkgs/python-evdev/template b/srcpkgs/python-evdev/template
index ded33276800d..40b60c094724 100644
--- a/srcpkgs/python-evdev/template
+++ b/srcpkgs/python-evdev/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/gvalkov/python-evdev"
 distfiles="https://github.com/gvalkov/python-evdev/archive/v${version}.tar.gz"
 checksum=f788584510620251c6a6c68802935b71c4b474df99b87ee223e18b84dd1719a6
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python-nose/template b/srcpkgs/python-nose/template
index 95f3607a40aa..e0ee55d59fe8 100644
--- a/srcpkgs/python-nose/template
+++ b/srcpkgs/python-nose/template
@@ -15,6 +15,7 @@ homepage="https://github.com/nose-devs/nose"
 distfiles="${PYPI_SITE}/n/nose/nose-${version}.tar.gz"
 checksum=f1bffef9cbc82628f6e7d7b40d7e255aefaa1adb6a1b1d26c69a8b79e6208a98
 alternatives="nose:nosetests:/usr/bin/nosetests2"
+patch_args=-Np0
 
 python3-nose_package() {
 	pycompile_module="nose"
diff --git a/srcpkgs/python-pip/template b/srcpkgs/python-pip/template
index 096aa7b63b22..aca1c8836df7 100644
--- a/srcpkgs/python-pip/template
+++ b/srcpkgs/python-pip/template
@@ -13,6 +13,7 @@ homepage="https://pip.pypa.io/"
 changelog="https://raw.githubusercontent.com/pypa/pip/master/NEWS.rst"
 distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
 checksum=6773934e5f5fc3eaa8c5a44949b5b924fc122daa0a8aa9f80c835b4ca2a543fc
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/python-requests/template b/srcpkgs/python-requests/template
index bde0b03b9ef9..406e20f881ba 100644
--- a/srcpkgs/python-requests/template
+++ b/srcpkgs/python-requests/template
@@ -13,6 +13,7 @@ homepage="https://python-requests.org/"
 changelog="https://raw.githubusercontent.com/psf/requests/master/HISTORY.md"
 distfiles="${PYPI_SITE}/r/requests/requests-${version}.tar.gz"
 checksum=27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804
+patch_args=-Np0
 
 post_patch() {
 	vsed -i '/certifi/d' setup.py
diff --git a/srcpkgs/python/template b/srcpkgs/python/template
index fc52e87228ea..1412f66d4d62 100644
--- a/srcpkgs/python/template
+++ b/srcpkgs/python/template
@@ -17,6 +17,7 @@ license="Python-2.0"
 homepage="https://www.python.org"
 distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"
 checksum=b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43
+patch_args=-Np0
 
 alternatives="
  python:idle:/usr/bin/idle2.7
diff --git a/srcpkgs/python3-PyBrowserID/template b/srcpkgs/python3-PyBrowserID/template
index a8cdd9230d3c..f8b86f119e25 100644
--- a/srcpkgs/python3-PyBrowserID/template
+++ b/srcpkgs/python3-PyBrowserID/template
@@ -14,6 +14,7 @@ license="MPL-2.0"
 homepage="https://github.com/mozilla/PyBrowserID"
 distfiles="${PYPI_SITE}/P/PyBrowserID/PyBrowserID-${version}.tar.gz"
 checksum=6c227669e87cc25796ae76f6a0ef65025528c8ad82d352679fa9a3e5663a71e3
+patch_args=-Np0
 
 do_check() {
 	# needs network access (persona.org has been shut down anyway)
diff --git a/srcpkgs/python3-PyQt5/template b/srcpkgs/python3-PyQt5/template
index a704d41698bc..4b36464197e8 100644
--- a/srcpkgs/python3-PyQt5/template
+++ b/srcpkgs/python3-PyQt5/template
@@ -23,6 +23,7 @@ checksum=2a69597e0dd11caabe75fae133feca66387819fc9bc050f547e5551bce97e5be
 lib32disabled=yes
 CFLAGS=-I$XBPS_CROSS_BASE/usr/include/python$py3_ver
 CXXFLAGS="$CFLAGS"
+patch_args=-Np0
 
 export INCPATH=$XBPS_CROSS_BASE/usr/include/python$py3_ver
 
diff --git a/srcpkgs/python3-aiohttp/template b/srcpkgs/python3-aiohttp/template
index d8b4761c8b9b..65465ff7b6ad 100644
--- a/srcpkgs/python3-aiohttp/template
+++ b/srcpkgs/python3-aiohttp/template
@@ -14,6 +14,7 @@ license="Apache-2.0"
 homepage="https://aiohttp.readthedocs.io/"
 distfiles="${PYPI_SITE}/a/aiohttp/aiohttp-${version}.tar.gz"
 checksum=5d84ecc73141d0a0d61ece0742bb7ff5751b0657dab8405f899d3ceb104cc7de
+patch_args=-Np0
 
 post_patch() {
 	# use system http-parser
diff --git a/srcpkgs/python3-boltons/template b/srcpkgs/python3-boltons/template
index a4c71fb7713d..c08065036300 100644
--- a/srcpkgs/python3-boltons/template
+++ b/srcpkgs/python3-boltons/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/mahmoud/boltons"
 distfiles="https://github.com/mahmoud/boltons/archive/${version}.tar.gz"
 checksum=f5b63fba62bed021c5086e43b4cfdaf6c8396a3ae1ccdcb549b4eb2f36f8a794
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-cli_helpers/template b/srcpkgs/python3-cli_helpers/template
index 91e22d2471c2..ab7008da0cc9 100644
--- a/srcpkgs/python3-cli_helpers/template
+++ b/srcpkgs/python3-cli_helpers/template
@@ -15,6 +15,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/dbcli/cli_helpers"
 distfiles="${PYPI_SITE}/c/cli_helpers/cli_helpers-${version}.tar.gz"
 checksum=98db22eaa86827d99ee6af9f5f3923142d04df256425204530842b032849a165
+patch_args=-Np0
 
 do_check() {
 	python3 -m pytest
diff --git a/srcpkgs/python3-curtsies/template b/srcpkgs/python3-curtsies/template
index 0d03da5b9b3d..aa224291ddba 100644
--- a/srcpkgs/python3-curtsies/template
+++ b/srcpkgs/python3-curtsies/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/thomasballinger/curtsies"
 distfiles="${PYPI_SITE}/c/curtsies/curtsies-${version}.tar.gz"
 checksum=89c802ec051d01dec6fc983e9856a3706e4ea8265d2940b1f6d504a9e26ed3a9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-entrypoints/template b/srcpkgs/python3-entrypoints/template
index eb3318811dc6..89093839963c 100644
--- a/srcpkgs/python3-entrypoints/template
+++ b/srcpkgs/python3-entrypoints/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/takluyver/entrypoints"
 distfiles="https://github.com/takluyver/entrypoints/archive/${version}.tar.gz"
 checksum=f26eddc371e37d8e9f6663b77524d6731567f005bd1e4ac950c0e33c48fbc065
+patch_args=-Np0
 
 pre_build() {
 	vsed -i "s|@VERSION@|${version}|" setup.py
diff --git a/srcpkgs/python3-gevent/template b/srcpkgs/python3-gevent/template
index 4ec0c1ce42ea..e1ba65252141 100644
--- a/srcpkgs/python3-gevent/template
+++ b/srcpkgs/python3-gevent/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.gevent.org/"
 distfiles="https://github.com/gevent/gevent/archive/${version}.tar.gz"
 checksum=1fc6579fee04c0bc348cb1dcbc10f822129e6af7dcf2c52c24f1497cea3bd45c
+patch_args=-Np0
 
 post_extract() {
 	# purge bundled dependencies
diff --git a/srcpkgs/python3-gitchangelog/template b/srcpkgs/python3-gitchangelog/template
index 348dc2c83b6d..8c3a5cfb5aa9 100644
--- a/srcpkgs/python3-gitchangelog/template
+++ b/srcpkgs/python3-gitchangelog/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/vaab/gitchangelog"
 distfiles="${PYPI_SITE}/g/gitchangelog/gitchangelog-${version}.tar.gz"
 checksum=3d8d6a730450fbd5b0a9bc58d0dd3e269c967d7eb4fece0c5cff4372a3f77421
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-grpcio/template b/srcpkgs/python3-grpcio/template
index d96e11f9c149..654abdcfada3 100644
--- a/srcpkgs/python3-grpcio/template
+++ b/srcpkgs/python3-grpcio/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://grpc.io"
 distfiles="${PYPI_SITE}/g/grpcio/grpcio-${version}.tar.gz"
 checksum=abbf9c8c3df4d5233d5888c6cfa85c1bb68a6923749bd4dd1abc6e1e93986f17
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/python3-mygpoclient/template b/srcpkgs/python3-mygpoclient/template
index 6ed17293703c..5aa34ad58d15 100644
--- a/srcpkgs/python3-mygpoclient/template
+++ b/srcpkgs/python3-mygpoclient/template
@@ -13,6 +13,7 @@ homepage="https://github.com/gpodder/mygpoclient"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=65fcb3ab220a2ba2d32a77f969b423a2f663413b6c485b7b02e5a955b28e68d2
 conflicts="python-mygpoclient>=0"
+patch_args=-Np0
 
 pre_build() {
 	vsed -i '/share\/man\/man1/d' setup.py
diff --git a/srcpkgs/python3-nose2/template b/srcpkgs/python3-nose2/template
index d1f95c3e3736..ac13621690a6 100644
--- a/srcpkgs/python3-nose2/template
+++ b/srcpkgs/python3-nose2/template
@@ -13,6 +13,7 @@ homepage="https://github.com/nose-devs/nose2"
 distfiles="${PYPI_SITE}/n/nose2/nose2-${version}.tar.gz"
 checksum=9052f2b46807b63d9bdf68e0768da1f8386368889b50043fd5d0889c470258f3
 conflicts="python-nose2>=0"
+patch_args=-Np0
 
 post_install() {
 	vlicense license.txt
diff --git a/srcpkgs/python3-pdfminer.six/template b/srcpkgs/python3-pdfminer.six/template
index 753dbfb9b816..bb75c36e196b 100644
--- a/srcpkgs/python3-pdfminer.six/template
+++ b/srcpkgs/python3-pdfminer.six/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/pdfminer/pdfminer.six"
 distfiles="${homepage}/archive/refs/tags/${version}.tar.gz"
 checksum=0e9c8b0a9c40c2aee044c3091ad6b18b5e6279722e64b6b975f8aedc26bf8e38
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-pikepdf/template b/srcpkgs/python3-pikepdf/template
index c2ff79e138fa..21329296c6cd 100644
--- a/srcpkgs/python3-pikepdf/template
+++ b/srcpkgs/python3-pikepdf/template
@@ -14,6 +14,7 @@ license="MPL-2.0"
 homepage="https://github.com/pikepdf/pikepdf"
 distfiles="${PYPI_SITE}/p/pikepdf/pikepdf-${version}.tar.gz"
 checksum=5ff35499b1ae7b181277f78ce5b1bcc8d3009182bb389917791c5dc811fcc8e4
+patch_args=-Np0
 
 pre_build() {
 	vsed -e '/setuptools_scm_git_archive/d' -i setup.py
diff --git a/srcpkgs/python3-pip/template b/srcpkgs/python3-pip/template
index 4dbc22b73b49..b30bc6334120 100644
--- a/srcpkgs/python3-pip/template
+++ b/srcpkgs/python3-pip/template
@@ -15,6 +15,7 @@ distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
 checksum=eb5df6b9ab0af50fe1098a52fd439b04730b6e066887ff7497357b9ebd19f79b
 # Tests have unpackaged dependencies
 make_check=no
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/python3-pwntools/template b/srcpkgs/python3-pwntools/template
index 76ec9944221e..753c28f1c68d 100644
--- a/srcpkgs/python3-pwntools/template
+++ b/srcpkgs/python3-pwntools/template
@@ -17,6 +17,7 @@ license="MIT, BSD-2-Clause"
 homepage="https://github.com/Gallopsled/pwntools"
 distfiles="${PYPI_SITE}/p/pwntools/pwntools-${version}.tar.gz"
 checksum=97f945aed7ffa9d3e87f8759df83a5eac6dc2112907f35d0aee66a9bf62fd8eb
+patch_args=-Np0
 
 post_install() {
 	rm -f ${DESTDIR}/usr/lib/python*/site-packages/*.md
diff --git a/srcpkgs/python3-pylibgen/template b/srcpkgs/python3-pylibgen/template
index 4d77619ae935..d59a68eca8ae 100644
--- a/srcpkgs/python3-pylibgen/template
+++ b/srcpkgs/python3-pylibgen/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/JoshuaRLi/pylibgen"
 distfiles="${PYPI_SITE}/p/pylibgen/pylibgen-${version}.tar.gz"
 checksum=87b28a27fa7c1912e2b38020262dd6086b292d670b0c08d76baecbcd7678b9ee
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-pyside2/template b/srcpkgs/python3-pyside2/template
index 6040ef39243c..c0387c4d6d04 100644
--- a/srcpkgs/python3-pyside2/template
+++ b/srcpkgs/python3-pyside2/template
@@ -25,6 +25,7 @@ license="LGPL-3.0-or-later"
 homepage="https://wiki.qt.io/Qt_for_Python"
 distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
 checksum=b306504b0b8037079a8eab772ee774b9e877a2d84bab2dbefbe4fa6f83941418
+patch_args=-Np0
 
 build_options="webengine"
 desc_option_webengine="Build Qt5 WebEngine bindings"
diff --git a/srcpkgs/python3-repoze.sphinx.autointerface/template b/srcpkgs/python3-repoze.sphinx.autointerface/template
index 18141a5bd46a..9feb6d5a2739 100644
--- a/srcpkgs/python3-repoze.sphinx.autointerface/template
+++ b/srcpkgs/python3-repoze.sphinx.autointerface/template
@@ -13,6 +13,7 @@ license="BSD-4-Clause"
 homepage="https://github.com/repoze/repoze.sphinx.autointerface/"
 distfiles="${PYPI_SITE}/r/repoze.sphinx.autointerface/repoze.sphinx.autointerface-${version}.tar.gz"
 checksum=8ef0383276ab722efb1e4a6523726262058dfd82615ccf7e5004aee3fe8ecc23
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/python3-telegram/template b/srcpkgs/python3-telegram/template
index 13cc66ab33c7..a865f4799086 100644
--- a/srcpkgs/python3-telegram/template
+++ b/srcpkgs/python3-telegram/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/alexander-akhmetov/python-telegram"
 distfiles="https://github.com/alexander-akhmetov/python-telegram/archive/${version}.tar.gz"
 checksum=11b0a2387bae642eb7f134fe35b9ef67b8183aa961412bcdfa86ff404beed897
+patch_args=-Np0
 
 post_extract() {
 	rm -r telegram/lib
diff --git a/srcpkgs/python3/template b/srcpkgs/python3/template
index 40c6cc1ef8e5..6bcb10bfc66d 100644
--- a/srcpkgs/python3/template
+++ b/srcpkgs/python3/template
@@ -18,6 +18,7 @@ license="Python-2.0"
 homepage="https://www.python.org"
 distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"
 checksum=0c5a140665436ec3dbfbb79e2dfb6d192655f26ef4a29aeffcb6d1820d716d83
+patch_args=-Np0
 
 alternatives="
  python:idle:/usr/bin/idle${version%.*}
diff --git a/srcpkgs/qca-qt5/template b/srcpkgs/qca-qt5/template
index 9e1cd59b8395..a9effca5f71d 100644
--- a/srcpkgs/qca-qt5/template
+++ b/srcpkgs/qca-qt5/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="https://userbase.kde.org/QCA"
 distfiles="${KDE_SITE}/qca/${version}/qca-${version}.tar.xz"
 checksum=c13851109abefc4623370989fae3a745bf6b1acb3c2a13a8958539823e974e4b
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/qdirstat/template b/srcpkgs/qdirstat/template
index efed1890b409..05e775e52c3a 100644
--- a/srcpkgs/qdirstat/template
+++ b/srcpkgs/qdirstat/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/shundhammer/qdirstat"
 distfiles="https://github.com/shundhammer/qdirstat/archive/${version}.tar.gz"
 checksum=fb40181972092d80994d3d04802c43298b70a21f1e636d5490a2bfbd1cb407d9
+patch_args=-Np0
 
 post_install() {
 	vman man/qdirstat.1
diff --git a/srcpkgs/qingy/template b/srcpkgs/qingy/template
index 02c89bd1ccae..207775603de2 100644
--- a/srcpkgs/qingy/template
+++ b/srcpkgs/qingy/template
@@ -15,6 +15,7 @@ homepage="http://qingy.sourceforge.net"
 #distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 distfiles="https://sources.voidlinux.org/qingy-1.0.0/qingy-1.0.0.tar.bz2"
 checksum=de4b4b398d5ba81ab2544729864676a04ddc6ae818b357ee09a8770293740cd3
+patch_args=-Np0
 
 make_dirs="/var/lib/misc 0755 root root"
 
diff --git a/srcpkgs/qmmp/template b/srcpkgs/qmmp/template
index d8b8ec1d0d7a..c27e8e39090b 100644
--- a/srcpkgs/qmmp/template
+++ b/srcpkgs/qmmp/template
@@ -21,6 +21,7 @@ license="GPL-3.0-or-later"
 homepage="http://qmmp.ylsoftware.com"
 distfiles="http://qmmp.ylsoftware.com/files/${pkgname}-${version}.tar.bz2"
 checksum=f513774357836ad4983fa216c84cf5db634284faebec48c461733838917fd664
+patch_args=-Np0
 
 qmmp-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/qpdfview/template b/srcpkgs/qpdfview/template
index 19cb2bb34ad9..4aa5122a1934 100644
--- a/srcpkgs/qpdfview/template
+++ b/srcpkgs/qpdfview/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://launchpad.net/qpdfview"
 distfiles="https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-${version}.tar.gz"
 checksum=cc642e7fa74029373ca9b9fbc29adc4883f8b455130a78ad54746d6844a0396c
+patch_args=-Np0
 
 pre_configure() {
 	lrelease qpdfview.pro
diff --git a/srcpkgs/qscintilla-qt5/template b/srcpkgs/qscintilla-qt5/template
index 5bc6c8530757..1d68d8f70320 100644
--- a/srcpkgs/qscintilla-qt5/template
+++ b/srcpkgs/qscintilla-qt5/template
@@ -13,6 +13,7 @@ license="GPL-3.0-only"
 homepage="https://www.riverbankcomputing.com/software/qscintilla/intro"
 distfiles="https://www.riverbankcomputing.com/static/Downloads/QScintilla/${version}/QScintilla_gpl-${version}.tar.gz"
 checksum=029bdc476a069fda2cea3cd937ba19cc7fa614fb90578caef98ed703b658f4a1
+patch_args=-Np0
 
 qscintilla-qt5-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/qsstv/template b/srcpkgs/qsstv/template
index 73c1080fcadc..8230401d9197 100644
--- a/srcpkgs/qsstv/template
+++ b/srcpkgs/qsstv/template
@@ -14,6 +14,7 @@ homepage="http://users.telenet.be/on4qz/qsstv/"
 changelog="http://users.telenet.be/on4qz/qsstv/manual/changelog.html"
 distfiles="http://users.telenet.be/on4qz/qsstv/downloads/qsstv_${version}.tar.gz"
 checksum=177e286090c71f8a033646b39c3b6abe212cc06718c1ecc9ddc7024198cb7e40
+patch_args=-Np0
 
 post_install() {
 	vinstall icons/qsstv.png 644 usr/share/pixmaps
diff --git a/srcpkgs/qt5-fsarchiver/template b/srcpkgs/qt5-fsarchiver/template
index 46c87a9e7bdd..4eea7d4c7ec8 100644
--- a/srcpkgs/qt5-fsarchiver/template
+++ b/srcpkgs/qt5-fsarchiver/template
@@ -15,6 +15,7 @@ license="GPL-2.0-only"
 homepage="https://sourceforge.net/projects/qt4-fsarchiver"
 distfiles="${SOURCEFORGE_SITE}/qt4-fsarchiver/${pkgname}-${_realversion}.tar.gz"
 checksum=b32e02c9e1fc8038482752f5620d88b103b700ed29314bd55dcf6486f5c6f175
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/qt5-styleplugins/template b/srcpkgs/qt5-styleplugins/template
index 4399c87d86cd..33c7271cd772 100644
--- a/srcpkgs/qt5-styleplugins/template
+++ b/srcpkgs/qt5-styleplugins/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only, LGPL-3.0-only"
 homepage="https://github.com/qt/qtstyleplugins"
 distfiles="https://github.com/qt/qtstyleplugins/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=29ec24fa8df64be161ad06d0e5af3ba1a20bfe265004f5fe4ab9f5f3abf9a5ba
+patch_args=-Np0
 
 # Cross builds fail with -fuse-ld=gold
 LDFLAGS="-Wl,-fuse-ld=bfd"
diff --git a/srcpkgs/qt5-webkit/template b/srcpkgs/qt5-webkit/template
index b2e7813cc45e..353a7e6609be 100644
--- a/srcpkgs/qt5-webkit/template
+++ b/srcpkgs/qt5-webkit/template
@@ -25,6 +25,7 @@ license="LGPL-2.1-or-later"
 homepage="https://www.qt.io/"
 distfiles="https://download.qt.io/snapshots/ci/qtwebkit/${_v}/${_snap}/src/submodules/qtwebkit-opensource-src-${_v}.tar.xz"
 checksum=9a6ed083154c7ec850081102b299afa928ca7e48bbdf2b5f3ae152425e46eb17
+patch_args=-Np0
 
 CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
 CXXFLAGS="-fpermissive -Wno-class-memaccess -Wno-redundant-move -Wno-deprecated-copy"
diff --git a/srcpkgs/qt5/template b/srcpkgs/qt5/template
index a88df53ca345..1e05f7e7ff60 100644
--- a/srcpkgs/qt5/template
+++ b/srcpkgs/qt5/template
@@ -32,6 +32,7 @@ python_version=2 #unverified
 replaces="qt5-doc<5.6.0 qt5-quick1<5.6.0 qt5-quick1-devel<5.6.0 qt5-webkit<5.6.0 qt5-webkit-devel<5.6.0
  qt5-enginio<5.7.1 qt5-enginio-devel<5.7.1 qt5-plugin-gtk<5.7.1 qt5-canvas3d<5.13.0"
 lib32mode=full
+patch_args=-Np0
 
 CXXFLAGS="-Wno-deprecated-declarations -Wno-class-memaccess -Wno-packed-not-aligned"
 # Required for musl libc
diff --git a/srcpkgs/qt5pas/template b/srcpkgs/qt5pas/template
index 93113c717035..56747994f4a3 100644
--- a/srcpkgs/qt5pas/template
+++ b/srcpkgs/qt5pas/template
@@ -12,6 +12,7 @@ license="LGPL-3.0-or-later"
 homepage="https://svn.freepascal.org/svn/lazarus/trunk/lcl/interfaces/qt5/cbindings"
 distfiles="${DEBIAN_SITE}/main/libq/libqtpas/libqtpas_${version}.orig.tar.xz"
 checksum=fcc5f695d60d5f72bf501b2fa779e8a1a2636c8d991270b5b3fef3d0e990365c
+patch_args=-Np0
 
 post_install() {
 	vinstall qt5.pas 0644 usr/share/pascal/qt5
diff --git a/srcpkgs/qt6-base/template b/srcpkgs/qt6-base/template
index bb043213a360..a78f77930893 100644
--- a/srcpkgs/qt6-base/template
+++ b/srcpkgs/qt6-base/template
@@ -30,6 +30,7 @@ homepage="https://www.qt.io"
 distfiles="https://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qtbase-everywhere-src-${version}.tar.xz"
 checksum=21a8aa9f07170e047270c668c8b037536f40226db7adbc529a0b41c3a3cb3ff2
 python_version=3
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# QtSetup fails native builds if this is set
diff --git a/srcpkgs/qtav/template b/srcpkgs/qtav/template
index 0d85ec076482..b59c58a6f191 100644
--- a/srcpkgs/qtav/template
+++ b/srcpkgs/qtav/template
@@ -17,6 +17,7 @@ homepage="http://www.qtav.org"
 changelog="https://raw.githubusercontent.com/wang-bin/QtAV/master/Changelog"
 distfiles="https://github.com/wang-bin/QtAV/archive/v${version}.tar.gz"
 checksum=a493d54d105b32c526f05188e4d7a8cf3508ecac697aae088721ffad20982288
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/bin
diff --git a/srcpkgs/qtcreator/template b/srcpkgs/qtcreator/template
index e46558070581..0439190aee41 100644
--- a/srcpkgs/qtcreator/template
+++ b/srcpkgs/qtcreator/template
@@ -19,6 +19,7 @@ distfiles="https://download.qt.io/official_releases/qtcreator/${version%.*}/${ve
 checksum=5ca9457987e7af0af929c310cc995496388076b6a0b9c429828c60bf0eec1b4d
 replaces="qtcreator-data>=0"
 python_version=3
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" libexecinfo-devel"
diff --git a/srcpkgs/qtikz/template b/srcpkgs/qtikz/template
index 5ec999d3aae5..53aab78b8713 100644
--- a/srcpkgs/qtikz/template
+++ b/srcpkgs/qtikz/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.hackenberger.at/blog/ktikz-editor-for-the-tikz-language/"
 distfiles="https://github.com/fhackenberger/ktikz/archive/${version}.tar.gz"
 checksum=03f6ee335ca1abb23216870a6df71406ab44a4899875d4695b8594cfb789a127
+patch_args=-Np0
 
 post_patch() {
 	vsed -e '/include.*QPainter/a #include <QtGui/QPainterPath>' \
diff --git a/srcpkgs/qtkeychain-qt5/template b/srcpkgs/qtkeychain-qt5/template
index 4e4c982850a1..8b32a4cb72f8 100644
--- a/srcpkgs/qtkeychain-qt5/template
+++ b/srcpkgs/qtkeychain-qt5/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="https://github.com/frankosterfeld/qtkeychain"
 distfiles="https://github.com/frankosterfeld/${pkgname%-*}/archive/v${version}.tar.gz"
 checksum=77fc6841c1743d9e6bd499989481cd9239c21bc9bf0760d41a4f4068d2f0a49d
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-tools-devel"
diff --git a/srcpkgs/qtpass/template b/srcpkgs/qtpass/template
index cce56db19867..728711eeeef5 100644
--- a/srcpkgs/qtpass/template
+++ b/srcpkgs/qtpass/template
@@ -14,6 +14,7 @@ homepage="https://qtpass.org/"
 changelog="https://raw.githubusercontent.com/IJHack/QtPass/master/CHANGELOG.md"
 distfiles="https://github.com/IJHack/${pkgname}/archive/v${version}.tar.gz"
 checksum=7a68e1afe68462c878c212a79c40ade5ba14b72710c5e62450cf54c7b5621254
+patch_args=-Np0
 
 do_install() {
 	vbin main/qtpass
diff --git a/srcpkgs/quassel/template b/srcpkgs/quassel/template
index 47d529f56b8b..dae691d27457 100644
--- a/srcpkgs/quassel/template
+++ b/srcpkgs/quassel/template
@@ -18,6 +18,7 @@ license="GPL-2.0-only, GPL-3.0-only"
 homepage="https://www.quassel-irc.org"
 distfiles="https://quassel-irc.org/pub/quassel-${version}.tar.bz2"
 checksum=48efee9778743b1db9f44efb91d1c913104db01190c57f2ff57483c39a97e855
+patch_args=-Np0
 
 build_options="ldap"
 
diff --git a/srcpkgs/quickjs/template b/srcpkgs/quickjs/template
index a1c9f8d1c36a..42de1ba7fd9c 100644
--- a/srcpkgs/quickjs/template
+++ b/srcpkgs/quickjs/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://bellard.org/quickjs/"
 distfiles="https://bellard.org/quickjs/quickjs-${version//./-}.tar.xz"
 checksum=a45bface4c3379538dea8533878d694e289330488ea7028b105f72572fe7fe1a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args+=" CROSS_PREFIX=${XBPS_CROSS_TRIPLET}-"
diff --git a/srcpkgs/quota/template b/srcpkgs/quota/template
index 2751287061fd..9d103e08c4b3 100644
--- a/srcpkgs/quota/template
+++ b/srcpkgs/quota/template
@@ -13,6 +13,7 @@ license="GPL-2"
 homepage="https://sourceforge.net/projects/linuxquota/"
 distfiles="${SOURCEFORGE_SITE}/linuxquota/quota-tools/${pkgname}-${version}.tar.gz"
 checksum=2f3e03039f378d4f0d97acdb49daf581dcaad64d2e1ddf129495fd579fbd268d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/qv4l2/template b/srcpkgs/qv4l2/template
index 292be169c208..585527fe4716 100644
--- a/srcpkgs/qv4l2/template
+++ b/srcpkgs/qv4l2/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://linuxtv.org/"
 distfiles="https://linuxtv.org/downloads/v4l-utils/v4l-utils-${version}.tar.bz2"
 checksum=6cb60d822eeed20486a03cc23e0fc65956fbc1e85e0c1a7477f68bbd9802880d
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/rabbitmq-c/template b/srcpkgs/rabbitmq-c/template
index 95ad7a333435..ea3f0aaa3f5a 100644
--- a/srcpkgs/rabbitmq-c/template
+++ b/srcpkgs/rabbitmq-c/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/alanxz/rabbitmq-c"
 distfiles="https://github.com/alanxz/${pkgname}/archive/v${version}.tar.gz"
 checksum=6455efbaebad8891c59f274a852b75b5cc51f4d669dfc78d2ae7e6cc97fcd8c0
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE-MIT LICENSE
diff --git a/srcpkgs/racket/template b/srcpkgs/racket/template
index 1fee0a65e39d..0e0a4335986b 100644
--- a/srcpkgs/racket/template
+++ b/srcpkgs/racket/template
@@ -16,6 +16,7 @@ distfiles="http://mirror.racket-lang.org/installers/${version}/${pkgname}-${vers
 checksum=5578942066a9405fdbcad9522d08685356693f4ddd5dbe92b5273557a112b73e
 nostrip=yes
 nocross=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" --enable-racket=/usr/bin/racket"
diff --git a/srcpkgs/radare2/template b/srcpkgs/radare2/template
index 39818e99e7f2..fc79ad2b3c12 100644
--- a/srcpkgs/radare2/template
+++ b/srcpkgs/radare2/template
@@ -13,6 +13,7 @@ license="LGPL-3.0-only"
 homepage="http://www.radare.org"
 distfiles="https://github.com/radareorg/radare2/archive/${version}.tar.gz"
 checksum=517dd80ebd0569f31498887338eacb92e8cf054bc4625eef8ffe9ea174c1adae
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	mips*) CFLAGS="-Os";;
diff --git a/srcpkgs/rakarrack/template b/srcpkgs/rakarrack/template
index 0d4dcc83496c..9c94f004ff2c 100644
--- a/srcpkgs/rakarrack/template
+++ b/srcpkgs/rakarrack/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://rakarrack.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=7696d27a4814b140fe651d137612ddfa1f167858eccc119e278c14dbee30eee6
+patch_args=-Np0
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/rapidjson/template b/srcpkgs/rapidjson/template
index 99d92702cc9d..2591e261b370 100644
--- a/srcpkgs/rapidjson/template
+++ b/srcpkgs/rapidjson/template
@@ -9,6 +9,7 @@ license="BSD-3-Clause, MIT"
 homepage="https://github.com/miloyip/rapidjson"
 distfiles="https://github.com/miloyip/${pkgname}/archive/v${version}.tar.gz"
 checksum=bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e
+patch_args=-Np0
 
 # class-memaccess is required by https://github.com/Tencent/rapidjson/issues/1700
 CXXFLAGS="-Wno-type-limits -Wno-error=class-memaccess -DNDEBUG"
diff --git a/srcpkgs/raptor/template b/srcpkgs/raptor/template
index 5408f6b745fb..7f0b9ad13f81 100644
--- a/srcpkgs/raptor/template
+++ b/srcpkgs/raptor/template
@@ -13,6 +13,7 @@ license="LGPL-2.1"
 homepage="http://librdf.org/raptor"
 distfiles="http://librdf.org/dist/source/raptor2-${version}.tar.gz"
 checksum=ada7f0ba54787b33485d090d3d2680533520cd4426d2f7fb4782dd4a6a1480ed
+patch_args=-Np0
 
 libraptor_package() {
 	short_desc+=" - Runtime libraries"
diff --git a/srcpkgs/rdedup/template b/srcpkgs/rdedup/template
index c392e3c0e2fc..f7b9d6760a01 100644
--- a/srcpkgs/rdedup/template
+++ b/srcpkgs/rdedup/template
@@ -12,6 +12,7 @@ license="MPL-2.0"
 homepage="https://github.com/dpc/rdedup"
 distfiles="https://github.com/dpc/rdedup/archive/rdedup-v${version}.tar.gz"
 checksum=5e7c09c40897cd2f2635e8c213c2ff0f5c4d7ceccbd22980cd4cb0a16f3dfc28
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	export HOST_CC="$BUILD_CC"
diff --git a/srcpkgs/rdis-git/template b/srcpkgs/rdis-git/template
index 5aaa5d669b7a..4d754dd49627 100644
--- a/srcpkgs/rdis-git/template
+++ b/srcpkgs/rdis-git/template
@@ -8,6 +8,7 @@ short_desc="A binary analysis tool for Linux"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3"
 homepage="https://github.com/endeav0r/rdis"
+patch_args=-Np0
 
 do_fetch() {
 	git clone git://github.com/endeav0r/rdis.git $wrksrc
diff --git a/srcpkgs/re/template b/srcpkgs/re/template
index 726ba0360748..a1dd9a76a8f4 100644
--- a/srcpkgs/re/template
+++ b/srcpkgs/re/template
@@ -16,6 +16,7 @@ homepage="https://github.com/baresip/re/"
 distfiles="https://github.com/baresip/re/archive/v${version}.tar.gz"
 checksum=43aa439b96aff75fe5768b9f9d49dea97042e42e7647df47b345465763e2f7ed
 shlib_provides="libre.so"
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	i686*) arch="i686";;
diff --git a/srcpkgs/redis/template b/srcpkgs/redis/template
index 974305ff1f0f..27d4568d1a79 100644
--- a/srcpkgs/redis/template
+++ b/srcpkgs/redis/template
@@ -11,6 +11,7 @@ homepage="https://redis.io"
 changelog="https://raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTES"
 distfiles="http://download.redis.io/releases/${pkgname}-${version}.tar.gz"
 checksum=dc2bdcf81c620e9f09cfd12e85d3bc631c897b2db7a55218fd8a65eaa37f86dd
+patch_args=-Np0
 
 system_accounts="redis"
 redis_homedir="/var/lib/redis"
diff --git a/srcpkgs/redo/template b/srcpkgs/redo/template
index b8af94ccc102..e3e8315d91f6 100644
--- a/srcpkgs/redo/template
+++ b/srcpkgs/redo/template
@@ -10,6 +10,7 @@ license="ISC"
 homepage="http://jdebp.info/Softwares/redo/"
 distfiles="http://jdebp.info/Repository/freebsd/redo-${version}.tar.gz"
 checksum=5ff21779993418cf16f5632c593e30d9a2780bfc38cef9de9ab9427154736d36
+patch_args=-Np0
 
 do_configure() {
 	./package/prepare
diff --git a/srcpkgs/refind/template b/srcpkgs/refind/template
index 49d462907523..7115017b0881 100644
--- a/srcpkgs/refind/template
+++ b/srcpkgs/refind/template
@@ -13,6 +13,7 @@ distfiles="${SOURCEFORGE_SITE}/refind/refind-src-${version}.tar.gz"
 checksum=dd58944854a42df5a2a943f15e5dcfd995808f28580df96ad39d68fb1e48c970
 python_version=2
 conf_files="/etc/default/refind-kernel-hook.conf"
+patch_args=-Np0
 
 post_extract() {
 	vsed -e 's|RefindDir=\"\$ThisDir/refind\"|RefindDir="/usr/share/refind"|g' \
diff --git a/srcpkgs/reiserfsprogs/template b/srcpkgs/reiserfsprogs/template
index d98433876b42..9350966ac543 100644
--- a/srcpkgs/reiserfsprogs/template
+++ b/srcpkgs/reiserfsprogs/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/"
 distfiles="${KERNEL_SITE}/kernel/people/jeffm/${pkgname}/v${version}/${pkgname}-${version}.tar.xz"
 checksum=0e95b67fa7746a3c2d59145e9b9c2feb4a6be52853e83b497b182eae508e62e3
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)
diff --git a/srcpkgs/renderdoc/template b/srcpkgs/renderdoc/template
index 4615d45c52c9..6fe21f63ea27 100644
--- a/srcpkgs/renderdoc/template
+++ b/srcpkgs/renderdoc/template
@@ -16,6 +16,7 @@ license="MIT"
 homepage="https://github.com/baldurk/renderdoc"
 distfiles="https://github.com/baldurk/${pkgname}/archive/v${version}.tar.gz"
 checksum=4dece1b4cb859a76533b28fcd50e17321acfaa81c3435500a006c4a5ba15fddb
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	makedepends+=" libexecinfo-devel"
diff --git a/srcpkgs/residualvm/template b/srcpkgs/residualvm/template
index b0abb4052a9c..621b40a27528 100644
--- a/srcpkgs/residualvm/template
+++ b/srcpkgs/residualvm/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later, BSD-3-Clause, IS
 homepage="https://www.residualvm.org/"
 distfiles="https://www.residualvm.org/downloads/release/${version}/residualvm-${version}-sources.tar.bz2"
 checksum=f50c83bbc55a8121eefc279e83982b6ec590e608e145b7f750006619dd0bf9e9
+patch_args=-Np0
 
 build_options="sndio"
 build_options_default="sndio"
diff --git a/srcpkgs/resvg/template b/srcpkgs/resvg/template
index c48e52ae2f2e..5befcd0e4c3b 100644
--- a/srcpkgs/resvg/template
+++ b/srcpkgs/resvg/template
@@ -11,6 +11,7 @@ license="MPL-2.0"
 homepage="https://github.com/RazrFalcon/resvg"
 distfiles="https://github.com/RazrFalcon/resvg/releases/download/v${version}/resvg-${version}.tar.xz"
 checksum=7206f79f67b4c8610353134c375ed3ff9c5eb63b16fae267b94730c23ebe4ee1
+patch_args=-Np0
 
 do_build() {
 	for dir in capi tools/{render,u}svg; do
diff --git a/srcpkgs/retroshare/template b/srcpkgs/retroshare/template
index e65594a4b16e..3c0685fc053e 100644
--- a/srcpkgs/retroshare/template
+++ b/srcpkgs/retroshare/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later, AGPL-3.0-or-later"
 homepage="https://retroshare.cc"
 distfiles="https://github.com/RetroShare/RetroShare/archive/v${version}.tar.gz"
 checksum=901a1d1f282e04118fbe0e24190355b4a8f355a806cc5448738b1d691b46f5d5
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/rhythmbox/template b/srcpkgs/rhythmbox/template
index 1d229ee9428c..eb666718af6c 100644
--- a/srcpkgs/rhythmbox/template
+++ b/srcpkgs/rhythmbox/template
@@ -22,6 +22,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.rhythmbox.org"
 distfiles="${GNOME_SITE}/${pkgname}/${version::3}/${pkgname}-${version}.tar.xz"
 checksum=ee0eb0d7d7bdf696ac9471b19ff3bea3240d63b6cb8a134bf632054af8665d90
+patch_args=-Np0
 
 python_version=3
 pycompile_dirs="/usr/lib/rhythmbox/plugins /usr/lib/rhythmbox/sample-plugins"
diff --git a/srcpkgs/rinse/template b/srcpkgs/rinse/template
index 27d6d0acd2fb..54d42aaa68c0 100644
--- a/srcpkgs/rinse/template
+++ b/srcpkgs/rinse/template
@@ -15,6 +15,7 @@ homepage="https://salsa.debian.org/debian/rinse"
 changelog="https://salsa.debian.org/debian/rinse/raw/master/debian/changelog"
 distfiles="https://salsa.debian.org/debian/rinse/-/archive/${version}/rinse-${version}.tar.gz"
 checksum=ebe2384f2aa4565c5f29882b177f7afd4c7cdbca9de9525618c6040e63a76d23
+patch_args=-Np0
 
 
 conf_files="/etc/rinse/rinse.conf"
diff --git a/srcpkgs/rix/template b/srcpkgs/rix/template
index 23d16e5e2da2..9c1f78cbbe05 100644
--- a/srcpkgs/rix/template
+++ b/srcpkgs/rix/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="https://github.com/riolet/rix"
 distfiles="https://github.com/riolet/rix/archive/v${version}.tar.gz"
 checksum=8727fee17cbbecec3ca8083fac80db3a2ed234c8128ec8df5cc56293e1dbb09c
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/rmilter/template b/srcpkgs/rmilter/template
index 0c2e00b5169d..cf0ebd53e35b 100644
--- a/srcpkgs/rmilter/template
+++ b/srcpkgs/rmilter/template
@@ -17,6 +17,7 @@ checksum=ea80563fa7636afed0b5fd9a29aa2300f15793ed85788e4ce69c187d341a7d54
 system_accounts="rmilter"
 rmilter_pgroup="_rmilter"
 rmilter_homedir="/var/lib/rmilter"
+patch_args=-Np0
 
 post_install() {
 	vdoc rmilter.conf.sample
diff --git a/srcpkgs/rmlint/template b/srcpkgs/rmlint/template
index 52b0a13cfad5..5cd23e3659e0 100644
--- a/srcpkgs/rmlint/template
+++ b/srcpkgs/rmlint/template
@@ -12,6 +12,7 @@ homepage="http://rmlint.rtfd.org/"
 changelog="https://raw.githubusercontent.com/sahib/rmlint/master/CHANGELOG.md"
 distfiles="https://github.com/sahib/${pkgname}/archive/v${version}.tar.gz"
 checksum=10e72ba4dd9672d1b6519c0c94eae647c5069c7d11f1409a46e7011dd0c6b883
+patch_args=-Np0
 
 do_install() {
 	scons install --prefix=${DESTDIR}/usr
diff --git a/srcpkgs/rpcbind/template b/srcpkgs/rpcbind/template
index 2909a0827fb8..48adb776b709 100644
--- a/srcpkgs/rpcbind/template
+++ b/srcpkgs/rpcbind/template
@@ -14,6 +14,7 @@ homepage="https://rpcbind.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=5613746489cae5ae23a443bb85c05a11741a5f12c8f55d2bb5e83b9defeee8de
 system_accounts="rpc"
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/rpi-imager/template b/srcpkgs/rpi-imager/template
index e48f0312e162..133b762f6e8d 100644
--- a/srcpkgs/rpi-imager/template
+++ b/srcpkgs/rpi-imager/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://github.com/raspberrypi/rpi-imager"
 distfiles="https://github.com/raspberrypi/rpi-imager/archive/${version}.tar.gz"
 checksum="166d4926ab5a21f9a83096eff67a9a72f1a7f55702a36cb448cccf5f3b075509"
+patch_args=-Np0
 
 pre_configure() {
 	ln -sf /bin/true $XBPS_WRAPPERDIR/lsblk
diff --git a/srcpkgs/rpm/template b/srcpkgs/rpm/template
index 9f6f522b9a3b..dc4101698780 100644
--- a/srcpkgs/rpm/template
+++ b/srcpkgs/rpm/template
@@ -18,6 +18,7 @@ distfiles="http://ftp.rpm.org/releases/rpm-4.16.x/rpm-${version}.tar.bz2"
 checksum=513dc7f972b6e7ccfc9fc7f9c01d5310cc56ee853892e4314fa2cad71478e21d
 python_version=3
 conflicts="rpmextract>=0" # Both provide rpm2cpio
+patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
 CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/nss"
diff --git a/srcpkgs/rspamd/template b/srcpkgs/rspamd/template
index 7398b753622e..dca49ec662f1 100644
--- a/srcpkgs/rspamd/template
+++ b/srcpkgs/rspamd/template
@@ -19,6 +19,7 @@ checksum=e4720c1f45defd07dd17b9563d0ddc480c70beadbc1a833235c077960092e030
 system_accounts="rspamd"
 rspamd_homedir=/var/lib/rspamd
 conf_files="/etc/rspamd/*.conf /etc/rspamd/*.inc /etc/rspamd/modules.d/*.conf"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	aarch64*|arm*) configure_args+=" -DHAS_C11_ATOMICS_EXITCODE=0
diff --git a/srcpkgs/rsstail/template b/srcpkgs/rsstail/template
index 40a3d84ed70b..1cfc4cdff308 100644
--- a/srcpkgs/rsstail/template
+++ b/srcpkgs/rsstail/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="http://www.vanheusden.com/rsstail/"
 distfiles="http://www.vanheusden.com/${pkgname}/${pkgname}-${version}.tgz"
 checksum=42cb452178b21c15c470bafbe5b8b5339a7fb5b980bf8d93d36af89864776e71
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/bin
diff --git a/srcpkgs/rstudio/template b/srcpkgs/rstudio/template
index 904bec8ca964..c8c5627d9b00 100644
--- a/srcpkgs/rstudio/template
+++ b/srcpkgs/rstudio/template
@@ -29,6 +29,7 @@ checksum="af8dc5e71ee934043856938af2e2065d1f1efef08aba37962ed03f6ccb8201bb
  0b7af89fdadb4ec51cdb400ace94637d6fe9ffa401b168e2c3d372392a00a0a7"
 skip_extraction="core-dictionaries.zip
  gwt-${_gwt_version}.zip"
+patch_args=-Np0
 
 LDFLAGS="-Wl,-z,stack-size=2097152"
 
diff --git a/srcpkgs/rsyslog/template b/srcpkgs/rsyslog/template
index 33c55076e9be..8c5b041d218c 100644
--- a/srcpkgs/rsyslog/template
+++ b/srcpkgs/rsyslog/template
@@ -23,6 +23,7 @@ conf_files="/etc/rsyslog.conf"
 make_dirs="/etc/rsyslog.d 0755 root root"
 lib32disabled=yes
 disable_parallel_build=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/rtl8812au-dkms/template b/srcpkgs/rtl8812au-dkms/template
index 0dedc560b81a..062aa1bebe2e 100644
--- a/srcpkgs/rtl8812au-dkms/template
+++ b/srcpkgs/rtl8812au-dkms/template
@@ -13,6 +13,7 @@ homepage="http://www.dlink.com"
 distfiles="https://github.com/gordboy/rtl8812au-${_modver}/archive/${_gitrev}.tar.gz"
 checksum=72b04bb7e1ef01eae653222d6f75f71163f7442fa142198605ed495f30341bd9
 dkms_modules="rtl8812au ${_modver}"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _karch="x86_64";;
diff --git a/srcpkgs/rtl8822bu-dkms/template b/srcpkgs/rtl8822bu-dkms/template
index 548d0b6299cd..d994f402b2d9 100644
--- a/srcpkgs/rtl8822bu-dkms/template
+++ b/srcpkgs/rtl8822bu-dkms/template
@@ -12,6 +12,7 @@ homepage="https://www.tp-link.com"
 distfiles="https://github.com/EntropicEffect/rtl8822bu/archive/${_gitrev}.tar.gz"
 checksum=fb2dbcd0385d558af6c74571aaac9020d7cbb9e56cc4780299bd420559f29bb1
 dkms_modules="88x2bu ${version}"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) _karch="x86_64";;
diff --git a/srcpkgs/rtmpdump/template b/srcpkgs/rtmpdump/template
index 911122cc807a..aa3efa2397c7 100644
--- a/srcpkgs/rtmpdump/template
+++ b/srcpkgs/rtmpdump/template
@@ -11,6 +11,7 @@ license="GPL-2, LGPL-2.1"
 homepage="http://rtmpdump.mplayerhq.hu/"
 distfiles="https://alpha.de.repo.voidlinux.org/distfiles/${pkgname}-${version%.*}_p${_patchlevel}.tar.gz"
 checksum=d6da3b683f1045f02d94a81b0c583318dba021f69bdab970c5d5d73e8c38860f
+patch_args=-Np0
 
 CFLAGS="-Wno-unused-const-variable -Wno-unused-but-set-variable"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/rtorrent/template b/srcpkgs/rtorrent/template
index 7d44897de237..c3278dc21049 100644
--- a/srcpkgs/rtorrent/template
+++ b/srcpkgs/rtorrent/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/rakshasa/rtorrent"
 distfiles="https://github.com/rakshasa/${pkgname}/archive/v${version}.tar.gz"
 checksum=bc889ce1dde475ec56aa72ae996912ff58723226a4f4256fef4f1f8636d991d4
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/rubberband/template b/srcpkgs/rubberband/template
index 0c1f15270aa0..fabb288f308b 100644
--- a/srcpkgs/rubberband/template
+++ b/srcpkgs/rubberband/template
@@ -13,6 +13,7 @@ homepage="https://breakfastquay.com/rubberband/"
 changelog="https://breakfastquay.com/news.html"
 distfiles="https://breakfastquay.com/files/releases/rubberband-${version}.tar.bz2"
 checksum=4f5b9509364ea876b4052fc390c079a3ad4ab63a2683aad09662fb905c2dc026
+patch_args=-Np0
 
 librubberband_package() {
 	short_desc+=" - Runtime libraries"
diff --git a/srcpkgs/ruby/template b/srcpkgs/ruby/template
index 29c1c2eac3c3..ad72d57520c9 100644
--- a/srcpkgs/ruby/template
+++ b/srcpkgs/ruby/template
@@ -1,5 +1,6 @@
 # Template file for 'ruby'
 _ruby_abiver=2.7.0
+patch_args=-Np0
 
 pkgname=ruby
 version=2.7.3
diff --git a/srcpkgs/ruler/template b/srcpkgs/ruler/template
index 0884fc46578f..7cac86683e03 100644
--- a/srcpkgs/ruler/template
+++ b/srcpkgs/ruler/template
@@ -11,6 +11,7 @@ license="ISC"
 homepage="https://github.com/tudurom/ruler"
 distfiles="https://github.com/tudurom/ruler/archive/v${version}.tar.gz"
 checksum=5355e19530bb158b504cca6ba18cc402585e9bdb488e01a2ee76492bc70923c7
+patch_args=-Np0
 
 LDFLAGS="-lxcb -lxcb-ewmh -lxcb-icccm -lwm"
 
diff --git a/srcpkgs/run-mailcap/template b/srcpkgs/run-mailcap/template
index 8eb80e3b58ed..5a88b519eadf 100644
--- a/srcpkgs/run-mailcap/template
+++ b/srcpkgs/run-mailcap/template
@@ -10,6 +10,7 @@ license="custom:ad-hoc, custom:Bellcore"
 homepage="http://packages.ubuntu.com/disco/mime-support"
 distfiles="${UBUNTU_SITE}/main/m/mime-support/mime-support_${version}ubuntu1.tar.xz"
 checksum=5007d2ebc25935bfca6d4bdac0efdfc089a38c1be49d19f0422559f666e4f2c4
+patch_args=-Np0
 
 do_install() {
 	local _aliases="see edit compose print"
diff --git a/srcpkgs/runit/template b/srcpkgs/runit/template
index 081d5fe2c732..68b400c1ef5c 100644
--- a/srcpkgs/runit/template
+++ b/srcpkgs/runit/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="http://smarden.org/runit/"
 distfiles="http://smarden.org/runit/runit-$version.tar.gz"
 checksum=6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18
+patch_args=-Np0
 
 build_options="static"
 
diff --git a/srcpkgs/rustup/template b/srcpkgs/rustup/template
index e4f985f74ec4..2be276c712b2 100644
--- a/srcpkgs/rustup/template
+++ b/srcpkgs/rustup/template
@@ -15,6 +15,7 @@ license="Apache-2.0, MIT"
 homepage="https://www.rustup.rs"
 distfiles="https://github.com/rust-lang/${pkgname}/archive/${version}.tar.gz"
 checksum=0203231bfe405ee1c7d5e7e1c013b9b8a2dc87fbd8474e77f500331d8c26365f
+patch_args=-Np0
 
 post_build() {
 	RUSTUP="target/${RUST_TARGET}/release/rustup-init"
diff --git a/srcpkgs/rxvt-unicode/template b/srcpkgs/rxvt-unicode/template
index c89633c12deb..8ae30a72963e 100644
--- a/srcpkgs/rxvt-unicode/template
+++ b/srcpkgs/rxvt-unicode/template
@@ -26,6 +26,7 @@ license="GPL-3.0-or-later"
 homepage="http://software.schmorp.de/pkg/rxvt-unicode.html"
 distfiles="http://dist.schmorp.de/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=643116b9a25d29ad29f4890131796d42e6d2d21312282a613ef66c80c5b8c98b
+patch_args=-Np0
 
 # Package build options
 build_options="gdk_pixbuf perl startup_notification unicode3"
diff --git a/srcpkgs/s3cmd/template b/srcpkgs/s3cmd/template
index 40cd669dc978..3571621f48c3 100644
--- a/srcpkgs/s3cmd/template
+++ b/srcpkgs/s3cmd/template
@@ -12,6 +12,7 @@ changelog="https://github.com/s3tools/s3cmd/raw/master/NEWS"
 homepage="http://s3tools.org/s3cmd"
 distfiles="https://github.com/s3tools/${pkgname}/archive/v${version}.tar.gz"
 checksum=2293f775fde77201bf8e489f20516fd594168c77897168f129e5c1a2b33b7e37
+patch_args=-Np0
 
 pre_install() {
 	export S3CMD_INSTPATH_DOC="share/doc"
diff --git a/srcpkgs/samba/template b/srcpkgs/samba/template
index 90be22e57059..8195f38fbf01 100644
--- a/srcpkgs/samba/template
+++ b/srcpkgs/samba/template
@@ -32,6 +32,7 @@ lib32disabled=yes
 conf_files="/etc/pam.d/samba /etc/samba/smb.conf"
 make_dirs="/etc/samba/private 0750 root root"
 subpackages="smbclient samba-ctdb samba-cups samba-devel samba-libs samba-python3"
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/sandboxfs/template b/srcpkgs/sandboxfs/template
index 9ab7a626b206..979a457e1056 100644
--- a/srcpkgs/sandboxfs/template
+++ b/srcpkgs/sandboxfs/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="https://github.com/bazelbuild/sandboxfs"
 distfiles="https://github.com/bazelbuild/sandboxfs/archive/sandboxfs-${version}.tar.gz"
 checksum=bff68e7d33ae56a3f34a79a74b2576599f5ccc381a237bbc10b5a3c3ea106b60
+patch_args=-Np0
 
 post_install() {
 	vman man/sandboxfs.1
diff --git a/srcpkgs/sane/template b/srcpkgs/sane/template
index 35dac1cc846a..8a68e3b65a15 100644
--- a/srcpkgs/sane/template
+++ b/srcpkgs/sane/template
@@ -21,6 +21,7 @@ homepage="http://www.sane-project.org/"
 distfiles="https://gitlab.com/sane-project/backends/uploads/${_gitlab_release_hash}/sane-backends-${version}.tar.gz"
 checksum=4a3b10fcb398ed854777d979498645edfe66fcac2f2fd2b9117a79ff45e2a5aa
 noshlibprovides="avoid false detection of device drivers"
+patch_args=-Np0
 
 build_options="snmp"
 
diff --git a/srcpkgs/sauerbraten/template b/srcpkgs/sauerbraten/template
index 587cc3da5903..102bb584421b 100644
--- a/srcpkgs/sauerbraten/template
+++ b/srcpkgs/sauerbraten/template
@@ -13,6 +13,7 @@ license="Zlib"
 homepage="http://sauerbraten.org"
 distfiles="${SOURCEFORGE_SITE}/sauerbraten/sauerbraten_${version//./_}_collect_edition_linux.tar.bz2"
 checksum=45c20521e3e56374490b2d9112a211538e801cf0161197f35476b30b7b58a78e
+patch_args=-Np0
 
 restricted="Very large - not worth storing on current Void infrastructure"
 
diff --git a/srcpkgs/sbcl/template b/srcpkgs/sbcl/template
index 4fc8a569b50e..8e52f31ee67c 100644
--- a/srcpkgs/sbcl/template
+++ b/srcpkgs/sbcl/template
@@ -15,6 +15,7 @@ distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-source.tar.bz2"
 checksum=965807ecd65a9590d68a0ed408b544e7e49a1f6e337ebd2b25e34788bcc8a8c5
 nocross=yes
 nopie=yes
+patch_args=-Np0
 
 _bootstrap_lisp="bash ../sbcl-*-linux/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/sc3-plugins/template b/srcpkgs/sc3-plugins/template
index 8511caea26e0..a26e459fc3af 100644
--- a/srcpkgs/sc3-plugins/template
+++ b/srcpkgs/sc3-plugins/template
@@ -19,6 +19,7 @@ distfiles="https://github.com/supercollider/sc3-plugins/archive/Version-${versio
 checksum="b8144231ea1bfc1c9d8aa6780c7e963dfb642868794abbfd8ccab418ffbbdfbe
  9b2035a3a7942c61cbe89b00c35c7e16ac281c06786fe1c30dfd333194be499a
  df9f280daaad56fdadb5fa75d492ee6a06762a41d7346aa473aa49c1ac9ec9c8"
+patch_args=-Np0
 
 post_extract() {
 	rm -rf external_libraries/nova-simd
diff --git a/srcpkgs/scanmem/template b/srcpkgs/scanmem/template
index d694f33d3725..5e715569c8a2 100644
--- a/srcpkgs/scanmem/template
+++ b/srcpkgs/scanmem/template
@@ -13,6 +13,7 @@ homepage="https://github.com/scanmem/scanmem"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=f02054b91322cf41517506158fcb74554e9fc6644e696f8aa25e5acf162d374b
 CFLAGS="-D__NEED_pid_t"
+patch_args=-Np0
 
 nocross="checking for /proc/self/maps... configure: error"
 
diff --git a/srcpkgs/schroot/template b/srcpkgs/schroot/template
index 85416dee5e9c..d30517ec6415 100644
--- a/srcpkgs/schroot/template
+++ b/srcpkgs/schroot/template
@@ -55,6 +55,7 @@ checksum="
 3ce8dfd9cb97b099e4b6d4ccec421d6cc8c9ef84574681e928a12badb5643d0b
 56bc82fc8ae7f6ca7eef506ccc1dca1211b2c84d83efc50d24670b8bdb9ea8bb"
 nocross=yes
+patch_args=-Np0
 
 pre_configure() {
 	cat ../debian/patches/series | while read p; do
diff --git a/srcpkgs/screen/template b/srcpkgs/screen/template
index 613696d9f373..f6288cc075bf 100644
--- a/srcpkgs/screen/template
+++ b/srcpkgs/screen/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/s/screen/"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=6e11b13d8489925fde25dfb0935bf6ed71f9eb47eff233a181e078fde5655aa1
+patch_args=-Np0
 
 post_install() {
 	vinstall etc/etcscreenrc 0644 etc screenrc
diff --git a/srcpkgs/scrotty/template b/srcpkgs/scrotty/template
index 13b03a1d1567..69270af50e20 100644
--- a/srcpkgs/scrotty/template
+++ b/srcpkgs/scrotty/template
@@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/maandree/scrotty"
 distfiles="https://github.com/maandree/scrotty/archive/${version}.tar.gz"
 checksum=466528d6ecf0138f57c40541258389686e22771c28d40f28c00825faaeaab1a3
+patch_args=-Np0
 
 pre_configure() {
 	export EXTRA_CFLAGS="$CFLAGS"
diff --git a/srcpkgs/scummvm/template b/srcpkgs/scummvm/template
index 0cec3ab176d7..aa52ba65d1e0 100644
--- a/srcpkgs/scummvm/template
+++ b/srcpkgs/scummvm/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.scummvm.org/"
 distfiles="https://downloads.scummvm.org/frs/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
 checksum=1469657e593bd8acbcfac0b839b086f640ebf120633e93f116cab652b5b27387
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*);;
diff --git a/srcpkgs/sddm/template b/srcpkgs/sddm/template
index 2a87381c8e8a..6d58d2e52e02 100644
--- a/srcpkgs/sddm/template
+++ b/srcpkgs/sddm/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later, CC-BY-3.0"
 homepage="http://github.com/sddm/sddm"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=e76da1f13d5ad5e0179e3fec57543126044339405ef19c397e105e0807bd4e41
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" sddm qt5-host-tools qt5-qmake qt5-tools"
diff --git a/srcpkgs/seafile-client-qt/template b/srcpkgs/seafile-client-qt/template
index 76b9a41fe45a..1f9b122cce2f 100644
--- a/srcpkgs/seafile-client-qt/template
+++ b/srcpkgs/seafile-client-qt/template
@@ -15,6 +15,7 @@ license="Apache-2.0"
 homepage="https://seafile.com"
 distfiles="https://github.com/haiwen/seafile-client/archive/v${version}.tar.gz"
 checksum=a6be7e55236cd4fb6028259ab5f35163ce044811f45b6008f280d42f5cee9f8d
+patch_args=-Np0
 
 build_options="shibboleth"
 desc_option_shibboleth="Build with Shibboleth support"
diff --git a/srcpkgs/seexpr-krita/template b/srcpkgs/seexpr-krita/template
index efb21e6f6508..0aaba2375734 100644
--- a/srcpkgs/seexpr-krita/template
+++ b/srcpkgs/seexpr-krita/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://krita.org"
 distfiles="${KDE_SITE}/kseexpr/${version%.*}/kseexpr-${version}.tar.gz"
 checksum=13b8455883001668f5d79c5734821c1ad2a0fbc91d019af085bb7e31cf6ce926
+patch_args=-Np0
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -DBUILD_TESTS=ON"
diff --git a/srcpkgs/serf/template b/srcpkgs/serf/template
index a9ac8a6d35e4..b27fd1e4b009 100644
--- a/srcpkgs/serf/template
+++ b/srcpkgs/serf/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="http://serf.apache.org"
 distfiles="https://archive.apache.org/dist/serf/serf-${version}.tar.bz2"
 checksum=549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	make_build_args+=" APR=${XBPS_WRAPPERDIR}/apr-1-config"
diff --git a/srcpkgs/shaderc/template b/srcpkgs/shaderc/template
index 7382d081551c..d0d810161d23 100644
--- a/srcpkgs/shaderc/template
+++ b/srcpkgs/shaderc/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="https://github.com/google/shaderc"
 distfiles="https://github.com/google/shaderc/archive/v${version}.tar.gz"
 checksum=e02e2a9d4c3960bc629ca8cdcf83d295bec9c80ed08a8c5062e4e294022605ec
+patch_args=-Np0
 
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/glslang"
 
diff --git a/srcpkgs/shadow/template b/srcpkgs/shadow/template
index f01181a49bd6..556e2ce263f1 100644
--- a/srcpkgs/shadow/template
+++ b/srcpkgs/shadow/template
@@ -17,6 +17,7 @@ homepage="https://github.com/shadow-maint/shadow"
 distfiles="${homepage}/releases/download/${version}/shadow-${version}.tar.xz"
 checksum=a3ad4630bdc41372f02a647278a8c3514844295d36eefe68ece6c3a641c1ae62
 conf_files="/etc/pam.d/* /etc/default/* /etc/login.defs"
+patch_args=-Np0
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/shapelib/template b/srcpkgs/shapelib/template
index 67a6f9c0dc7d..230bf6980f77 100644
--- a/srcpkgs/shapelib/template
+++ b/srcpkgs/shapelib/template
@@ -9,6 +9,7 @@ license="LGPL-2.0-only"
 homepage="http://shapelib.maptools.org/"
 distfiles="http://download.osgeo.org/shapelib/shapelib-${version}.tar.gz"
 checksum=1fc0a480982caef9e7b9423070b47750ba34cd0ba82668f2e638fab1d07adae1
+patch_args=-Np0
 
 shapelib-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/shiboken2/template b/srcpkgs/shiboken2/template
index ed06a780e1a9..5cdf26b88421 100644
--- a/srcpkgs/shiboken2/template
+++ b/srcpkgs/shiboken2/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.qt.io/Qt_for_Python/Shiboken"
 distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
 checksum=b306504b0b8037079a8eab772ee774b9e877a2d84bab2dbefbe4fa6f83941418
+patch_args=-Np0
 
 python_version=3
 export CLANG_INSTALL_DIR=${XBPS_CROSS_BASE}/usr
diff --git a/srcpkgs/shmux/template b/srcpkgs/shmux/template
index 3f353a0df33b..d3c039b4f128 100644
--- a/srcpkgs/shmux/template
+++ b/srcpkgs/shmux/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/shmux/shmux"
 distfiles="https://github.com/shmux/shmux/archive/v${version}.tar.gz"
 checksum=c9f8863e2550e23e633cf5fc7a9c4c52d287059f424ef78aba6ecd98390fb9ab
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/shotwell/template b/srcpkgs/shotwell/template
index b0c1878e31bb..1076b974de75 100644
--- a/srcpkgs/shotwell/template
+++ b/srcpkgs/shotwell/template
@@ -17,6 +17,7 @@ homepage="https://wiki.gnome.org/Apps/Shotwell"
 distfiles="${GNOME_SITE}/shotwell/${version%.*}/shotwell-${version}.tar.xz"
 checksum=8de36f20488f4fb7d090194c8af46cd3661bcc81a3d65f980cb17667ed826af2
 lib32disabled=yes
+patch_args=-Np0
 
 post_extract() {
 	# because shotwell intelligently forces fatal warnings even for
diff --git a/srcpkgs/signond/template b/srcpkgs/signond/template
index 183c3b9481e7..585a4f7e28b7 100644
--- a/srcpkgs/signond/template
+++ b/srcpkgs/signond/template
@@ -14,6 +14,7 @@ license="LGPL-2.1-only"
 homepage="https://gitlab.com/accounts-sso/signond"
 distfiles="https://gitlab.com/accounts-sso/signond/repository/archive.tar.gz?ref=VERSION_${version}>signond-${version}.tar.gz"
 checksum=a9cd90cf3e8b1a8bdbe5acf46c797a817092e77946c69fc3ed3a76930f3a76aa
+patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 8e9f28786b9e..fb99e1fcd88d 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.sile-typesetter.org/"
 distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
 checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
diff --git a/srcpkgs/silly/template b/srcpkgs/silly/template
index 432cefdabc93..8fa0632c361c 100644
--- a/srcpkgs/silly/template
+++ b/srcpkgs/silly/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="http://sourceforge.net/projects/crayzedsgui/"
 distfiles="${SOURCEFORGE_SITE}/project/crayzedsgui/${pkgname^^}/${version}/${pkgname^^}-${version}.tar.gz"
 checksum=afa064f70433008ec9837fb601c8d73e73db07856e4566f8bee010758c5304ac
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/simgear/template b/srcpkgs/simgear/template
index 4a15e27896ef..58f19d499e50 100644
--- a/srcpkgs/simgear/template
+++ b/srcpkgs/simgear/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.flightgear.org/"
 distfiles="$SOURCEFORGE_SITE/project/flightgear/release-${version%.*}/${pkgname}-${version}.tar.bz2"
 checksum=66da2c4f68058f6854206f2dd9c03c9223851ade24a50216e88b4e50598c13d1
+patch_args=-Np0
 
 # Suppress warnings regarding auto_ptr
 CXXFLAGS="-Wno-deprecated-declarations"
diff --git a/srcpkgs/simutron/template b/srcpkgs/simutron/template
index cdcf68c2a435..15a6accf2010 100644
--- a/srcpkgs/simutron/template
+++ b/srcpkgs/simutron/template
@@ -13,6 +13,7 @@ maintainer="Artur Sinila <opensource@logarithmus.dev>"
 license="GPL-3.0-only"
 homepage="https://sourceforge.net/projects/simutron/"
 nostrip_files="LCD20x4Test.elf"
+patch_args=-Np0
 
 do_fetch() {
 	svn checkout "https://svn.code.sf.net/p/${pkgname}/code/branches/RB-${_version}-${_rev}" "$wrksrc"
diff --git a/srcpkgs/sisl/template b/srcpkgs/sisl/template
index 1fdf40b02dbf..0457d6e17fe2 100644
--- a/srcpkgs/sisl/template
+++ b/srcpkgs/sisl/template
@@ -10,6 +10,7 @@ license="AGPL-3.0-only"
 homepage="https://github.com/SINTEF-Geometry/SISL"
 distfiles="$homepage/archive/SISL-$version.tar.gz"
 checksum=b207fe6b4b20775e3064168633256fddd475ff98573408f6f5088a938c086f86
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/skroll/template b/srcpkgs/skroll/template
index e01de5aa0647..9263b38cd5c0 100644
--- a/srcpkgs/skroll/template
+++ b/srcpkgs/skroll/template
@@ -10,6 +10,7 @@ license="WTFPL"
 homepage="http://git.z3bra.org/skroll/log.html"
 distfiles="http://dl.z3bra.org/releases/${pkgname}-${version}.tar.bz2"
 checksum=32221fef51f6814a7bf3cf4207b8a2466624544a2fd1e5b110ee2af3580d2959
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/slcp/template b/srcpkgs/slcp/template
index 1873bcc6f233..614c5844ad11 100644
--- a/srcpkgs/slcp/template
+++ b/srcpkgs/slcp/template
@@ -10,6 +10,7 @@ license="Beerware"
 homepage="https://github.com/schachmat/slcp"
 distfiles="https://github.com/schachmat/slcp/archive/${version}.tar.gz"
 checksum=a26e56832e37dbf1c7b776ddb137e422c987c19330575708a5945697e08e7cfe
+patch_args=-Np0
 
 pre_build() {
 	sed -i 's|^CFLAGS =|override CFLAGS +=|g' config.mk
diff --git a/srcpkgs/sleuthkit/template b/srcpkgs/sleuthkit/template
index f7d3ebf142f5..c61696b35270 100644
--- a/srcpkgs/sleuthkit/template
+++ b/srcpkgs/sleuthkit/template
@@ -15,6 +15,7 @@ homepage="https://www.sleuthkit.org/"
 changelog="https://github.com/sleuthkit/sleuthkit/releases"
 distfiles="https://github.com/sleuthkit/sleuthkit/archive/sleuthkit-${version}.tar.gz"
 checksum=da9a336c37e03b78bd912acf243953254a3215f0b3646f9d2c526f4b502e6f11
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's:sys/fcntl.h:fcntl.h:g' tsk/fs/tsk_fs_i.h
diff --git a/srcpkgs/slim/template b/srcpkgs/slim/template
index b7382cac3085..43d025a1e9b5 100644
--- a/srcpkgs/slim/template
+++ b/srcpkgs/slim/template
@@ -15,6 +15,7 @@ homepage="http://sourceforge.net/projects/slim.berlios/"
 distfiles="${SOURCEFORGE_SITE}/slim.berlios/slim-${version}.tar.gz"
 checksum=21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df
 lib32disabled=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) CXXFLAGS="-DNEEDS_BASENAME";;
diff --git a/srcpkgs/sloccount/template b/srcpkgs/sloccount/template
index f33b58e0aea4..861d5883cb80 100644
--- a/srcpkgs/sloccount/template
+++ b/srcpkgs/sloccount/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://dwheeler.com/sloccount/"
 distfiles="https://dwheeler.com/sloccount/sloccount-${version}.tar.gz"
 checksum=fa7fa2bbf2f627dd2d0fdb958bd8ec4527231254c120a8b4322405d8a4e3d12b
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/bin
diff --git a/srcpkgs/slurm-wlm/template b/srcpkgs/slurm-wlm/template
index e01f3912697f..420663fbb7ee 100644
--- a/srcpkgs/slurm-wlm/template
+++ b/srcpkgs/slurm-wlm/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="http://slurm.schedmd.com/slurm.html"
 distfiles="https://github.com/SchedMD/slurm/archive/slurm-${_distver}.tar.gz"
 checksum=e53e67bd0bb4c37a9c481998764a746467a96bc41d6527569080514f36452c07
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/smpeg/template b/srcpkgs/smpeg/template
index 9a958bd1bbae..e8dfe2e4452f 100644
--- a/srcpkgs/smpeg/template
+++ b/srcpkgs/smpeg/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-only"
 homepage="https://icculus.org/smpeg/"
 distfiles="ftp://slackware.oregonstate.edu/.1/vectorlinux/VL64-7.0/source/sourceVL/smpeg/${version}/src/smpeg-${version}.tar.gz"
 checksum=1839c12e88d5dbbc767a7b94eeab2aa3efe4f0eebb7eb7c7240270ba93689a2b
+patch_args=-Np0
 
 post_install() {
 	# Remove unused stuff
diff --git a/srcpkgs/smpeg2/template b/srcpkgs/smpeg2/template
index 5c87e4416dae..5afde1920c59 100644
--- a/srcpkgs/smpeg2/template
+++ b/srcpkgs/smpeg2/template
@@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
 homepage="https://icculus.org/smpeg/"
 distfiles="https://www.libsdl.org/projects/smpeg/release/smpeg2-${version}.tar.gz"
 checksum=979a65b211744a44fa641a9b6e4d64e64a12ff703ae776bafe3c4c4cd85494b3
+patch_args=-Np0
 
 # Package build options
 build_options="rpi"
diff --git a/srcpkgs/snapper/template b/srcpkgs/snapper/template
index bd58ab951c24..a2dd275709e7 100644
--- a/srcpkgs/snapper/template
+++ b/srcpkgs/snapper/template
@@ -19,6 +19,7 @@ homepage="http://snapper.io"
 distfiles="https://github.com/openSUSE/snapper/archive/v${version}.tar.gz"
 checksum=ca7b17d0213aa5281ff08d968b4e029b78bb3870eb79fd7bc7f879b17f5c969e
 lib32disabled=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]
 then
diff --git a/srcpkgs/snappy/template b/srcpkgs/snappy/template
index 7e9e5214fb7d..36d572f0da93 100644
--- a/srcpkgs/snappy/template
+++ b/srcpkgs/snappy/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://google.github.io/snappy"
 distfiles="https://github.com/google/snappy/archive/${version}.tar.gz"
 checksum=75c1fbb3d618dd3a0483bff0e26d0a92b495bbe5059c8b4f1c962b478b6e06e7
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/socat/template b/srcpkgs/socat/template
index d4e0f0a9bbdb..bbbe7dccb42c 100644
--- a/srcpkgs/socat/template
+++ b/srcpkgs/socat/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://www.dest-unreach.org/socat/"
 distfiles="http://www.dest-unreach.org/socat/download/socat-${version}.tar.bz2"
 checksum=3faca25614e89123dff5045680549ecef519d02e331aaf3c4f5a8f6837c675e9
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) CFLAGS="-D_LINUX_IF_ETHER_H";;
diff --git a/srcpkgs/socklog/template b/srcpkgs/socklog/template
index 3df32c8ebeb5..0d77880ebb04 100644
--- a/srcpkgs/socklog/template
+++ b/srcpkgs/socklog/template
@@ -9,6 +9,7 @@ license="custom"
 homepage="http://smarden.org/socklog/"
 distfiles="http://smarden.org/socklog/socklog-${version}.tar.gz"
 checksum=aa869a787ee004da4e5509b5a0031bcc17a4ab4ac650c2ce8d4e488123acb455
+patch_args=-Np0
 
 build_options="static"
 
diff --git a/srcpkgs/sombok/template b/srcpkgs/sombok/template
index 622a1e6fc961..3c6fcaff53d1 100644
--- a/srcpkgs/sombok/template
+++ b/srcpkgs/sombok/template
@@ -12,6 +12,7 @@ license="Artistic, GPL-1"
 homepage="https://github.com/hatukanezumi/sombok"
 distfiles="https://github.com/hatukanezumi/${pkgname}/archive/${pkgname}-${version}.tar.gz"
 checksum=14d9dcd3621bf9d591a7158aeac99b4d4a60296558173be51d57b54b8f9d70a2
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -i
diff --git a/srcpkgs/sonic-visualiser/template b/srcpkgs/sonic-visualiser/template
index 4daa56060eea..583e5d4d3fe3 100644
--- a/srcpkgs/sonic-visualiser/template
+++ b/srcpkgs/sonic-visualiser/template
@@ -16,6 +16,7 @@ homepage="https://www.sonicvisualiser.org/"
 changelog="https://code.soundsoftware.ac.uk/projects/sonic-visualiser/repository/entry/CHANGELOG"
 distfiles="https://code.soundsoftware.ac.uk/attachments/download/2755/${pkgname}-${version}.tar.gz"
 checksum=38e91a4035962ad177905a9f1249136fe88d4b596fd9b8f40c82b60dadca5bf3
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/sopwith/template b/srcpkgs/sopwith/template
index aa160fdbb870..2c0b91f10be4 100644
--- a/srcpkgs/sopwith/template
+++ b/srcpkgs/sopwith/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://sdl-sopwith.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/sdl-sopwith/sdl_sopwith/${version}/sopwith-${version}.tar.gz"
 checksum=a5ecb795a7aeff6be3ebfb99f1c6218054b73048786809f8468a92c952c17bd0
+patch_args=-Np0
 
 pre_configure() {
 	mv configure.{in,ac}
diff --git a/srcpkgs/soundmodem/template b/srcpkgs/soundmodem/template
index 91ae349d3c1a..f38d83b2f88d 100644
--- a/srcpkgs/soundmodem/template
+++ b/srcpkgs/soundmodem/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://soundmodem.vk4msl.yi.org/"
 distfiles="http://soundmodem.vk4msl.yi.org/soundmodem-${version}.tar.gz"
 checksum=f033c1716df1378cda646dbb1c48ea9fb9a068772c6686f2ca411bfa64245c1c
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/spacefm/template b/srcpkgs/spacefm/template
index f89a4cd5ad5c..cb2b3b59b9d0 100644
--- a/srcpkgs/spacefm/template
+++ b/srcpkgs/spacefm/template
@@ -15,6 +15,7 @@ homepage="http://ignorantguru.github.io/spacefm/"
 distfiles="https://github.com/IgnorantGuru/spacefm/archive/${version}.tar.gz"
 checksum=fedea9fcad776e0af4b8d90c5a1c86684a9c96ef1cdd4e959530ce93bdebe7c9
 conf_files="/etc/spacefm/spacefm.conf"
+patch_args=-Np0
 
 build_options="gtk3"
 build_options_default="gtk3"
diff --git a/srcpkgs/spamassassin/template b/srcpkgs/spamassassin/template
index d778f76ba3eb..f36e91661fac 100644
--- a/srcpkgs/spamassassin/template
+++ b/srcpkgs/spamassassin/template
@@ -25,6 +25,7 @@ conf_files="
  /etc/mail/spamassassin/v320.pre
  /etc/mail/spamassassin/init.pre
  /etc/mail/spamassassin/local.cf"
+patch_args=-Np0
 
 post_install() {
 	vinstall $FILESDIR/sa-update 755 /etc/cron.weekly
diff --git a/srcpkgs/spampd/template b/srcpkgs/spampd/template
index 4380aae4f8bc..f64c6dccde75 100644
--- a/srcpkgs/spampd/template
+++ b/srcpkgs/spampd/template
@@ -13,6 +13,7 @@ distfiles="https://github.com/downloads/mpaperno/$pkgname/$pkgname-$version.tar.
 checksum=c980e55f46c7757fd45294e5268766253123490d0158d2ee36ad5700ddf823bb
 system_accounts="_spampd"
 _spampd_homedir="/var/lib/spampd"
+patch_args=-Np0
 
 pre_install() {
 	sed -i '/INSTALL.* \(spampd.default\|spampd-init.sh\) /d' Makefile
diff --git a/srcpkgs/speech-dispatcher/template b/srcpkgs/speech-dispatcher/template
index 810692a434b1..fac86abc1d75 100644
--- a/srcpkgs/speech-dispatcher/template
+++ b/srcpkgs/speech-dispatcher/template
@@ -19,6 +19,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, GFDL-1.2-or-later"
 homepage="http://devel.freebsoft.org/speechd"
 distfiles="https://github.com/brailcom/speechd/archive/${version}.tar.gz"
 checksum=0c702d4acc4920818db3daa28ecf14004123b64514b4575c138874618835104c
+patch_args=-Np0
 
 conf_files="
  /etc/speech-dispatcher/clients/*.conf
diff --git a/srcpkgs/speed-dreams/template b/srcpkgs/speed-dreams/template
index fadabc891c88..47786d859bbb 100644
--- a/srcpkgs/speed-dreams/template
+++ b/srcpkgs/speed-dreams/template
@@ -29,6 +29,7 @@ replaces="speed-dreams-data>=0"
 CFLAGS=-fpermissive
 CXXFLAGS=-fpermissive
 lib32disabled=yes
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	broken="Segmentation fault"
diff --git a/srcpkgs/spice-gtk/template b/srcpkgs/spice-gtk/template
index 7218e837891f..613328430c20 100644
--- a/srcpkgs/spice-gtk/template
+++ b/srcpkgs/spice-gtk/template
@@ -22,6 +22,7 @@ license="LGPL-2.1-or-later"
 homepage="https://spice-space.org"
 distfiles="https://spice-space.org/download/gtk/${pkgname}-${version}.tar.xz"
 checksum=23acbee197eaaec9bce6e6bfd885bd8f79708332639243ff04833020865713cd
+patch_args=-Np0
 
 CFLAGS="-Wno-error -Wno-error=unused-but-set-variable"
 
diff --git a/srcpkgs/spim/template b/srcpkgs/spim/template
index 347ff447611b..aada991a2d50 100644
--- a/srcpkgs/spim/template
+++ b/srcpkgs/spim/template
@@ -13,6 +13,7 @@ license="BSD-3-Clause"
 homepage="http://spimsimulator.sourceforge.net/"
 distfiles="http://pages.cs.wisc.edu/~larus/SPIM/spim-${version}.tar.gz"
 checksum="6f205776cb9fa112729507008843b289012190ed3131cbd426c610a58387ee4b"
+patch_args=-Np0
 
 pre_configure() {
 	sed '/Copyright (c) 1990-2010, James R. Larus./,+26!d' README > LICENSE
diff --git a/srcpkgs/splix/template b/srcpkgs/splix/template
index 366aab114bce..47c4ef173356 100644
--- a/srcpkgs/splix/template
+++ b/srcpkgs/splix/template
@@ -11,6 +11,7 @@ homepage="http://splix.ap2c.org"
 distfiles="${DEBIAN_SITE}/main/s/$pkgname/${pkgname}_$version.orig.tar.gz"
 checksum="578a81bd5b1b97756a539c3bb6339fd109d54419887a73e705941da8aa7fac52"
 CXXFLAGS="-fno-strict-aliasing"
+patch_args=-Np0
 
 do_build() {
 	vsed -i rules.mk \
diff --git a/srcpkgs/spreed-webrtc/template b/srcpkgs/spreed-webrtc/template
index 7baa339cc7e5..4480b5dabec9 100644
--- a/srcpkgs/spreed-webrtc/template
+++ b/srcpkgs/spreed-webrtc/template
@@ -13,6 +13,7 @@ license="AGPL-3.0-or-later"
 homepage="https://github.com/strukturag/spreed-webrtc"
 distfiles="https://github.com/strukturag/spreed-webrtc/archive/v${version}.tar.gz"
 checksum=d05b820fe3883840eadf8b96bda663397991849d9bda4750fc7c4e642c9c3268
+patch_args=-Np0
 
 system_accounts="_spreed_webrtc"
 
diff --git a/srcpkgs/sqmail/template b/srcpkgs/sqmail/template
index 78c0af18eadb..ac118d931dfd 100644
--- a/srcpkgs/sqmail/template
+++ b/srcpkgs/sqmail/template
@@ -16,6 +16,7 @@ nocross="custom build system"
 provides="smtp-server-0_1"
 replaces="smtp-server>=0"
 conf_files="/etc/sv/*/run /etc/sv/*/log/run"
+patch_args=-Np0
 
 system_groups="_nofiles:798 _sqmail:799"
 
diff --git a/srcpkgs/squashfs-tools/template b/srcpkgs/squashfs-tools/template
index d49d6c5602a8..f66e2db53916 100644
--- a/srcpkgs/squashfs-tools/template
+++ b/srcpkgs/squashfs-tools/template
@@ -12,6 +12,7 @@ short_desc="Tool to create and append to squashfs filesystems"
 maintainer="Duncaen <duncaen@voidlinux.org>"
 distfiles="${SOURCEFORGE_SITE}/squashfs/squashfs${version}.tar.gz"
 checksum=a981b3f3f2054b5a2e658851a3c06a2460ad04a9a8a645e0afe063a63fdbb07e
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/srb2/template b/srcpkgs/srb2/template
index 08a2bff0886c..de8c22c3a5b6 100644
--- a/srcpkgs/srb2/template
+++ b/srcpkgs/srb2/template
@@ -19,6 +19,7 @@ distfiles="https://github.com/STJr/SRB2/archive/SRB2_release_${version}.tar.gz
 checksum="5f7eeb08e90323e28cdcb02ad25c904eef25ce75316720609b995a1e4ffd154a
  48cf787a70f44b31fa7a56db4053a404a7103a494f1e09fd2bbfd563672a3534"
 restricted=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*) makedepends+=" nasm" ;;
diff --git a/srcpkgs/ssoma/template b/srcpkgs/ssoma/template
index 9fbee6bead10..7de2723c4bc9 100644
--- a/srcpkgs/ssoma/template
+++ b/srcpkgs/ssoma/template
@@ -14,6 +14,7 @@ license="AGPL-3.0-or-later"
 homepage="https://ssoma.public-inbox.org/"
 distfiles="https://ssoma.public-inbox.org/files/${pkgname}-${version}.tar.gz"
 checksum=7455bafb344aaa8eeac78ae5efcca2384d11baface1194c35bafd30353168faf
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/sssd/template b/srcpkgs/sssd/template
index 61ead1c9e44e..758022a785c1 100644
--- a/srcpkgs/sssd/template
+++ b/srcpkgs/sssd/template
@@ -32,6 +32,7 @@ python_version=3
 nocross="configure attempts to run compiled output"
 # These modules in /usr/lib/sssd are required by sssd-python3
 shlib_provides="libsss_util.so libsss_crypt.so libsss_debug.so"
+patch_args=-Np0
 
 do_check() {
 	export CK_TIMEOUT_MULTIPLIER=10
diff --git a/srcpkgs/stack/template b/srcpkgs/stack/template
index 257aba10e50d..7a4ddad1a029 100644
--- a/srcpkgs/stack/template
+++ b/srcpkgs/stack/template
@@ -17,6 +17,7 @@ checksum="f29d63b91ff2bddd130b29ddee90a1f450706271a13d5d80b653b50379ffa076
 skip_extraction="cabal.config-${_stackage}"
 nocross=yes
 nopie_files="/usr/bin/stack"
+patch_args=-Np0
 
 do_build() {
 	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/cabal.config-${_stackage} cabal.config
diff --git a/srcpkgs/starplot/template b/srcpkgs/starplot/template
index ccc2232d4608..0c5bbe729448 100644
--- a/srcpkgs/starplot/template
+++ b/srcpkgs/starplot/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://starplot.org/"
 distfiles="${homepage}downloads/${pkgname}-${version}.tar.gz"
 checksum=e320f141b736b3a6468e7d0c08a93961db6615e9eb4d533d554eea31c3fa845a
+patch_args=-Np0
 
 pre_build() {
 	sed -i 's/_STRINGS_H/V_STRINGS_H/' src/classes/strings.h
diff --git a/srcpkgs/stepmania/template b/srcpkgs/stepmania/template
index 07afdba93ce6..0da6a45d7751 100644
--- a/srcpkgs/stepmania/template
+++ b/srcpkgs/stepmania/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://www.stepmania.com/"
 distfiles="https://github.com/stepmania/stepmania/archive/v${version}.tar.gz"
 checksum=df79bcadd69d4ed60cf560d45386ec275181343495ffd744c3ff8f73c83d4755
+patch_args=-Np0
 
 # Upstream has stated that only x86 hardware can meed the performance
 # constraints and that musl is not supported due to interop issues
diff --git a/srcpkgs/stfl/template b/srcpkgs/stfl/template
index 0d970c9d2c26..f38cd252e8ac 100644
--- a/srcpkgs/stfl/template
+++ b/srcpkgs/stfl/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.clifford.at/stfl/"
 distfiles="http://www.clifford.at/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=d4a7aa181a475aaf8a8914a8ccb2a7ff28919d4c8c0f8a061e17a0c36869c090
+patch_args=-Np0
 
 post_install() {
 	ln -sf libstfl.so.${version} ${DESTDIR}/usr/lib/libstfl.so.0
diff --git a/srcpkgs/stk/template b/srcpkgs/stk/template
index 42b5918ced65..d0eecb39a8f2 100644
--- a/srcpkgs/stk/template
+++ b/srcpkgs/stk/template
@@ -16,6 +16,7 @@ license="custom:MIT-like"
 homepage="https://ccrma.stanford.edu/software/stk/"
 distfiles="https://github.com/thestk/stk/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=8e0c362dd82421bae8f3e789d238a1c27aeac1a2697d7830eb51abc90fc17281
+patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 autoreconf -fi
diff --git a/srcpkgs/stlink/template b/srcpkgs/stlink/template
index 06f39a7cf256..e6b504938b54 100644
--- a/srcpkgs/stlink/template
+++ b/srcpkgs/stlink/template
@@ -14,6 +14,7 @@ homepage="https://github.com/texane/stlink"
 changelog="https://raw.githubusercontent.com/texane/stlink/master/CHANGELOG.md"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=ca9a640f84c3e2c9873bd51759594bc05c00cdf6e1f21b434ae2c0e7985433d8
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.md LICENSE
diff --git a/srcpkgs/stockfish/template b/srcpkgs/stockfish/template
index 1749c9c3692d..24ccc14fa432 100644
--- a/srcpkgs/stockfish/template
+++ b/srcpkgs/stockfish/template
@@ -18,6 +18,7 @@ distfiles="https://github.com/official-stockfish/Stockfish/archive/sf_${version}
 checksum="15d14721b3be17c597535bdbb44fb951a1ee948312d90fbf55fa0e52b8b81d62
  62ef826d1a6d11b9e814188025aa02a60815c037292e0ef9bbb9bf4f724e5e63"
 skip_extraction="${_net_file}"
+patch_args=-Np0
 
 LDFLAGS+="-lpthread -Wl,-z,stack-size=2097152"
 
diff --git a/srcpkgs/strawberry/template b/srcpkgs/strawberry/template
index 35828b1e3c24..1d51eaf7fc2a 100644
--- a/srcpkgs/strawberry/template
+++ b/srcpkgs/strawberry/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.strawberrymusicplayer.org/"
 distfiles="https://files.strawberrymusicplayer.org/${pkgname}-${version}.tar.xz"
 checksum=0fe9c38c4d1e2f10c1130dbd87ea6e740bef729fe78820a84ffabe524a80c83e
+patch_args=-Np0
 
 build_options="qt6"
 build_options_default=""
diff --git a/srcpkgs/subversion-kwallet-auth/template b/srcpkgs/subversion-kwallet-auth/template
index 12210f250d51..00ad190384b9 100644
--- a/srcpkgs/subversion-kwallet-auth/template
+++ b/srcpkgs/subversion-kwallet-auth/template
@@ -24,6 +24,7 @@ changelog="https://subversion.apache.org/docs/release-notes/${version%.*}.html"
 distfiles="http://apache.uvigo.es/subversion/subversion-${version}.tar.bz2"
 checksum=2c5da93c255d2e5569fa91d92457fdb65396b0666fad4fd59b22e154d986e1a9
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	# Based on native build values
diff --git a/srcpkgs/subversion/template b/srcpkgs/subversion/template
index e10c80ec8b18..70b4cedbfa6a 100644
--- a/srcpkgs/subversion/template
+++ b/srcpkgs/subversion/template
@@ -22,6 +22,7 @@ homepage="http://subversion.apache.org/"
 changelog="https://subversion.apache.org/docs/release-notes/${version%.*}.html"
 distfiles="http://apache.uvigo.es/subversion/subversion-${version}.tar.bz2"
 checksum=2c5da93c255d2e5569fa91d92457fdb65396b0666fad4fd59b22e154d986e1a9
+patch_args=-Np0
 
 pre_configure() {
 	# Based on native build values
diff --git a/srcpkgs/sudo/template b/srcpkgs/sudo/template
index f70418dd6b75..cae14ef1cf4b 100644
--- a/srcpkgs/sudo/template
+++ b/srcpkgs/sudo/template
@@ -18,6 +18,7 @@ distfiles="https://www.sudo.ws/dist/sudo-${version}.tar.gz"
 checksum=2bbe7c2d6699b84d950ef9a43f09d4d967b8bc244b73bc095c4202068ddbe549
 conf_files="/etc/pam.d/sudo /etc/sudoers"
 lib32disabled=yes
+patch_args=-Np0
 
 post_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/sudoku/template b/srcpkgs/sudoku/template
index 606bdd9557c6..a863e9f84bdf 100644
--- a/srcpkgs/sudoku/template
+++ b/srcpkgs/sudoku/template
@@ -10,6 +10,7 @@ license="Public Domain"
 homepage="https://github.com/cinemast/sudoku"
 distfiles="https://github.com/cinemast/sudoku/archive/v${version}.tar.gz"
 checksum=3ce6d9b237546d4ac7cdb7a6bb0e47d5c99e696a710b8935bce40dc706d32ff2
+patch_args=-Np0
 
 do_install() {
 	vbin sudoku
diff --git a/srcpkgs/sunxi-tools/template b/srcpkgs/sunxi-tools/template
index f4f547c7947d..e88e962b5939 100644
--- a/srcpkgs/sunxi-tools/template
+++ b/srcpkgs/sunxi-tools/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/linux-sunxi/sunxi-tools"
 distfiles="$homepage/archive/$_commit.tar.gz"
 checksum=93922d654df5153d468b0f7900f96fe858fe457894ff2dd0f5dfb5c94b65475b
+patch_args=-Np0
 
 CFLAGS="-std=c99 -I./include"
 
diff --git a/srcpkgs/supercollider/template b/srcpkgs/supercollider/template
index c7a878f91c09..421b50cf8aac 100644
--- a/srcpkgs/supercollider/template
+++ b/srcpkgs/supercollider/template
@@ -18,6 +18,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/supercollider/supercollider"
 distfiles="https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source.tar.bz2"
 checksum=2dd2f8179a55de4735ac940e2e2d0df4e68cc3a33172628e4dd99ae89c74856b
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/supertux2/template b/srcpkgs/supertux2/template
index 4c39b458dad4..75b6b37e3dbd 100644
--- a/srcpkgs/supertux2/template
+++ b/srcpkgs/supertux2/template
@@ -20,5 +20,6 @@ homepage="https://supertux.github.io/"
 distfiles="https://github.com/SuperTux/supertux/releases/download/v${version}/SuperTux-v${version}-Source.tar.gz"
 checksum=26a9e56ea2d284148849f3239177d777dda5b675a10ab2d76ee65854c91ff598
 replaces="supertux2-data>=0"
+patch_args=-Np0
 
 export CMAKE_GENERATOR="Unix Makefiles"
diff --git a/srcpkgs/supertuxkart/template b/srcpkgs/supertuxkart/template
index 519bc615782d..aa4734caa91f 100644
--- a/srcpkgs/supertuxkart/template
+++ b/srcpkgs/supertuxkart/template
@@ -17,6 +17,7 @@ license="GPL-3.0-or-later"
 homepage="https://supertuxkart.net"
 distfiles="https://github.com/${pkgname}/stk-code/releases/download/${version}/SuperTuxKart-${version}-src.tar.xz"
 checksum=052edf0afdbeb99583fe8676fb0ab80ecb6103fb88b7540f858d1b5fa1297d37
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/sutils/template b/srcpkgs/sutils/template
index 640b14ce66d8..6ecc796f206f 100644
--- a/srcpkgs/sutils/template
+++ b/srcpkgs/sutils/template
@@ -10,6 +10,7 @@ license="Unlicense"
 homepage="https://github.com/baskerville/sutils/"
 distfiles="https://github.com/baskerville/sutils/archive/${version}.tar.gz"
 checksum=da8cccace32094430be572cf59d85256023edf9107b12c926c7beb29586c56a3
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/sway/template b/srcpkgs/sway/template
index 4a77658518e8..dd8800028931 100644
--- a/srcpkgs/sway/template
+++ b/srcpkgs/sway/template
@@ -15,6 +15,7 @@ license="MIT"
 homepage="https://swaywm.org"
 distfiles="https://github.com/swaywm/${pkgname}/archive/${version}.tar.gz"
 checksum=9ecfd2f38239f7e90922a13cd348fc95fc059e8fa0e4b75b8ffcc7b61685a5fb
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/swiften/template b/srcpkgs/swiften/template
index 969ef1eb5d78..f549e1abcb42 100644
--- a/srcpkgs/swiften/template
+++ b/srcpkgs/swiften/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only"
 homepage="http://swift.im/"
 distfiles="http://swift.im/git/swift/snapshot/swift-${version}.tar.bz2"
 checksum=6a3f93e807afb51f1b8ab6ec8fef379dfcc50ba71fef6abeee7c123348da66b0
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/sword/template b/srcpkgs/sword/template
index 13240a993160..15a4213b6d54 100644
--- a/srcpkgs/sword/template
+++ b/srcpkgs/sword/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="https://crosswire.org/sword/index.jsp"
 distfiles="https://crosswire.org/ftpmirror/pub/sword/source/v1.8/sword-${version}.tar.gz"
 checksum=ce9aa8f721a737f406115d35ff438bd07c829fce1605f0d6dcdabc4318bc5e93
+patch_args=-Np0
 
 CXXFLAGS=' -DU_USING_ICU_NAMESPACE=1'
 
diff --git a/srcpkgs/sxiv/template b/srcpkgs/sxiv/template
index 3baaa111f613..f5a5adc2b264 100644
--- a/srcpkgs/sxiv/template
+++ b/srcpkgs/sxiv/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/muennich/sxiv"
 distfiles="https://github.com/muennich/sxiv/archive/v${version}.tar.gz"
 checksum=a382ad57734243818e828ba161fc0357b48d8f3a7f8c29cac183492b46b58949
+patch_args=-Np0
 
 pre_build() {
 	[ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h ||:
diff --git a/srcpkgs/sylpheed/template b/srcpkgs/sylpheed/template
index 5df8312b53dc..a37c3ced4ec8 100644
--- a/srcpkgs/sylpheed/template
+++ b/srcpkgs/sylpheed/template
@@ -13,6 +13,7 @@ homepage="http://sylpheed.sraoss.jp"
 distfiles="http://sylpheed.sraoss.jp/sylpheed/v${version%.*}/$pkgname-$version.tar.bz2"
 checksum=eb23e6bda2c02095dfb0130668cf7c75d1f256904e3a7337815b4da5cb72eb04
 lib32disabled=yes
+patch_args=-Np0
 
 pre_configure() {
 	aclocal -I ac
diff --git a/srcpkgs/synergy/template b/srcpkgs/synergy/template
index 0c4f3b4f130a..79bcf7db11fb 100644
--- a/srcpkgs/synergy/template
+++ b/srcpkgs/synergy/template
@@ -15,6 +15,7 @@ license="GPL-2.0-only"
 homepage="http://synergy-foss.org/"
 distfiles="https://github.com/symless/synergy-core/archive/v${version}-stable.tar.gz"
 checksum=a57989dd2d3ae30657f2b95cba3cae112c189f9bbbc3d1b25b3874859afeb94d
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/share/examples/${pkgname}
diff --git a/srcpkgs/synfigstudio/template b/srcpkgs/synfigstudio/template
index 3e40a99fb28c..a04916c78689 100644
--- a/srcpkgs/synfigstudio/template
+++ b/srcpkgs/synfigstudio/template
@@ -14,6 +14,7 @@ distfiles="https://github.com/synfig/synfig/releases/download/v${version}/synfig
 checksum=af9a9b0064064907ae24a693b607dcba633a8a2cd45fa1357f61c035efd6020e
 python_version=3
 CXXFLAGS="-Wno-deprecated-copy -DHAVE_LOCALE_H=1"
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	# uses synfig to create some icons
diff --git a/srcpkgs/sysbench/template b/srcpkgs/sysbench/template
index e2fe7be0cc8b..88a162b2dc8b 100644
--- a/srcpkgs/sysbench/template
+++ b/srcpkgs/sysbench/template
@@ -17,6 +17,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/akopytov/sysbench"
 distfiles="https://github.com/akopytov/sysbench/archive/${version}.tar.gz"
 checksum=e8ee79b1f399b2d167e6a90de52ccc90e52408f7ade1b9b7135727efe181347f
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/sysdig/template b/srcpkgs/sysdig/template
index 8932775a781f..712895300344 100644
--- a/srcpkgs/sysdig/template
+++ b/srcpkgs/sysdig/template
@@ -23,6 +23,7 @@ checksum=b9d05854493d245a7a7e75f77fc654508f720aab5e5e8a3a932bd8eb54e49bda
 disable_parallel_build=yes
 dkms_modules="sysdig ${version}"
 nocross=yes
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args+=" -DMUSL_OPTIMIZED_BUILD=On"
diff --git a/srcpkgs/sysexxer-ng/template b/srcpkgs/sysexxer-ng/template
index 18b2a6e776a6..e09476331dfc 100644
--- a/srcpkgs/sysexxer-ng/template
+++ b/srcpkgs/sysexxer-ng/template
@@ -11,6 +11,7 @@ license="BSL-1.0"
 homepage="https://github.com/linuxmao-org/sysexxer-ng"
 distfiles="${homepage}/releases/download/v${version}/sysexxer-ng-${version}.tar.gz"
 checksum=66e2eb66b7ab34b8287bba3230009a311b7db1870c47911049666c523fced5a9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/sysprof/template b/srcpkgs/sysprof/template
index eae51ea7356b..39ea0ae1b9c4 100644
--- a/srcpkgs/sysprof/template
+++ b/srcpkgs/sysprof/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="http://sysprof.com/"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=8bcd728dc2f74e6f589410370dfb1b8801468bb3cc1803aa240735a7cff241ce
+patch_args=-Np0
 
 # for ITS rules
 if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/taskd/template b/srcpkgs/taskd/template
index 414501166719..8ab72bc17ef5 100644
--- a/srcpkgs/taskd/template
+++ b/srcpkgs/taskd/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="http://taskwarrior.org"
 distfiles="http://taskwarrior.org/download/${pkgname}-${version}.tar.gz"
 checksum=7b8488e687971ae56729ff4e2e5209ff8806cf8cd57718bfd7e521be130621b4
+patch_args=-Np0
 
 system_accounts="taskd"
 taskd_homedir="/var/lib/taskd"
diff --git a/srcpkgs/tbb/template b/srcpkgs/tbb/template
index aeef6ebdd061..17fad3bc5e3a 100644
--- a/srcpkgs/tbb/template
+++ b/srcpkgs/tbb/template
@@ -13,6 +13,7 @@ license="Apache-2.0"
 homepage="https://www.threadingbuildingblocks.org"
 distfiles="https://github.com/oneapi-src/oneTBB/archive/${_ver}.tar.gz"
 checksum=2103cc6238c935664f87680618f6684d57501d4a2fa8ea8f6c97ad6ff7dc722a
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*)
diff --git a/srcpkgs/tc-play/template b/srcpkgs/tc-play/template
index 0f49755ebaf9..85cd91f5d7d5 100644
--- a/srcpkgs/tc-play/template
+++ b/srcpkgs/tc-play/template
@@ -14,6 +14,7 @@ license="BSD-2-clause"
 homepage="https://github.com/bwalex/tc-play"
 distfiles="https://github.com/bwalex/${pkgname}/archive/v${version}.tar.gz"
 checksum=ad53cd814a23b4f61a1b2b6dc2539624ffb550504c400c45cbd8cd1da4c7d90a
+patch_args=-Np0
 
 pre_build() {
 	sed -i Makefile.classic -e"s; -o tcplay; ${LDFLAGS}&;"
diff --git a/srcpkgs/tcl/template b/srcpkgs/tcl/template
index d36663d8b1fa..e20273428365 100644
--- a/srcpkgs/tcl/template
+++ b/srcpkgs/tcl/template
@@ -16,6 +16,7 @@ license="TCL"
 homepage="http://www.tcl.tk"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}${version}-src.tar.gz"
 checksum=8c0486668586672c5693d7d95817cb05a18c5ecca2f40e2836b9578064088258
+patch_args=-Np0
 
 shlib_provides="libtcl${version%.*}.so"
 
diff --git a/srcpkgs/tcpdump/template b/srcpkgs/tcpdump/template
index 1956a1ce16b3..724a066b8a22 100644
--- a/srcpkgs/tcpdump/template
+++ b/srcpkgs/tcpdump/template
@@ -12,6 +12,7 @@ homepage="https://www.tcpdump.org"
 changelog="https://www.tcpdump.org/tcpdump-changes.txt"
 distfiles="https://www.tcpdump.org/release/${pkgname}-${version}.tar.gz"
 checksum=79b36985fb2703146618d87c4acde3e068b91c553fb93f021a337f175fd10ebe
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/teensy_loader_cli/template b/srcpkgs/teensy_loader_cli/template
index 267415fa1561..a02e5ea78fed 100644
--- a/srcpkgs/teensy_loader_cli/template
+++ b/srcpkgs/teensy_loader_cli/template
@@ -11,6 +11,7 @@ license="GPL-3"
 homepage="http://www.pjrc.com/teensy/loader_cli.html"
 distfiles="https://github.com/PaulStoffregen/teensy_loader_cli/archive/${version}.tar.gz"
 checksum=5c36fe45b9a3a71ac38848b076cd692bf7ca8826a69941c249daac3a1d95e388
+patch_args=-Np0
 
 do_install() {
 	vbin teensy_loader_cli
diff --git a/srcpkgs/teeworlds/template b/srcpkgs/teeworlds/template
index 268c85e43ac8..69c907e600c3 100644
--- a/srcpkgs/teeworlds/template
+++ b/srcpkgs/teeworlds/template
@@ -10,6 +10,7 @@ license="custom"
 homepage="https://www.teeworlds.com"
 distfiles="https://github.com/teeworlds/teeworlds/archive/${version}.tar.gz"
 checksum=6e67846b38750d2a372d7835fa3775db016458a20a85aa52f1c758102ddd4abe
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686) _ARCH=x86;;
diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template
index 30a1d2ec6eec..f0026056b7dd 100644
--- a/srcpkgs/telegram-desktop/template
+++ b/srcpkgs/telegram-desktop/template
@@ -26,6 +26,7 @@ homepage="https://desktop.telegram.org/"
 changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
 distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
 checksum=97526f0b4adf04cf86b605ae84f3efaacf58eb8f828bab8f4fe752a4fac62fb2
+patch_args=-Np0
 
 build_options="spellcheck"
 build_options_default="spellcheck"
diff --git a/srcpkgs/telepathy-mission-control/template b/srcpkgs/telepathy-mission-control/template
index f539aa07f1c8..a2c3275fcf6b 100644
--- a/srcpkgs/telepathy-mission-control/template
+++ b/srcpkgs/telepathy-mission-control/template
@@ -15,6 +15,7 @@ license="LGPL-2.1-or-later"
 homepage="http://telepathy.freedesktop.org"
 distfiles="${homepage}/releases/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=4c6b433b8b9079fd7df3e29aefcad6755a2081a9a634ffb6b33936c7d0d8bd03
+patch_args=-Np0
 
 telepathy-mission-control-devel_package() {
 	depends="telepathy-glib-devel>=0.22 ${sourcepkg}>=${version}"
diff --git a/srcpkgs/tepl/template b/srcpkgs/tepl/template
index 2213a79cc0f1..ec5879500caf 100644
--- a/srcpkgs/tepl/template
+++ b/srcpkgs/tepl/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Projects/Tepl"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=a86397a895dca9c0de7a5ccb063bda8f7ef691cccb950ce2cfdee367903e7a63
+patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/terminal_markdown_viewer/template b/srcpkgs/terminal_markdown_viewer/template
index b13f8ac93fbf..0093b049b9ab 100644
--- a/srcpkgs/terminal_markdown_viewer/template
+++ b/srcpkgs/terminal_markdown_viewer/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/axiros/terminal_markdown_viewer"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=58dbdf8c051a2d7f8c00e4dc13c655c335cbc2bc96851dd0388d73a21c4507b6
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/tesseract-ocr/template b/srcpkgs/tesseract-ocr/template
index 7ed37c53c848..c6c574f4c483 100644
--- a/srcpkgs/tesseract-ocr/template
+++ b/srcpkgs/tesseract-ocr/template
@@ -18,6 +18,7 @@ distfiles="
  https://github.com/tesseract-ocr/tessdata/archive/${_tessdataver}.tar.gz>tessdata-${_tessdataver}.tar.gz"
 checksum="2a66ff0d8595bff8f04032165e6c936389b1e5727c3ce5a27b3e059d218db1cb
  38c637d3a1763f6c3d32e8f1d979f045668676ec5feb8ee1869ee77cedd31b08"
+patch_args=-Np0
 
 build_options="openmp"
 build_options_default="openmp"
diff --git a/srcpkgs/tesseract/template b/srcpkgs/tesseract/template
index 5eca40635fd4..e073eee88791 100644
--- a/srcpkgs/tesseract/template
+++ b/srcpkgs/tesseract/template
@@ -12,6 +12,7 @@ license="zlib"
 homepage="http://tesseract.gg/"
 distfiles="http://download.tuxfamily.org/tesseract/tesseract_2014_05_12_first_edition_linux.tar.xz"
 checksum=8d6e07dd154a40a3f593e52289335c036f06cf90a0ebc400c4650adb3395a0f4
+patch_args=-Np0
 
 pre_build() {
 	for dim in 16 32 48 64 128 256 512; do
diff --git a/srcpkgs/tevent/template b/srcpkgs/tevent/template
index 731d707efaaa..86bbe45ef744 100644
--- a/srcpkgs/tevent/template
+++ b/srcpkgs/tevent/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later"
 homepage="https://tevent.samba.org"
 distfiles="https://ftp.samba.org/pub/tevent/tevent-${version}.tar.gz"
 checksum=f8427822e5b2878fb8b28d6f50d96848734f3f3130612fb574fdd2d2148a6696
+patch_args=-Np0
 
 export PYTHON_CONFIG="${XBPS_CROSS_BASE}/usr/bin/python3-config"
 
diff --git a/srcpkgs/texi2mdoc/template b/srcpkgs/texi2mdoc/template
index 1d3eceaee503..d6b6bd659a8d 100644
--- a/srcpkgs/texi2mdoc/template
+++ b/srcpkgs/texi2mdoc/template
@@ -9,6 +9,7 @@ license="ISC"
 homepage="http://mdocml.bsd.lv/texi2mdoc"
 distfiles="http://mdocml.bsd.lv/texi2mdoc/snapshots/${pkgname}-${version}.tgz"
 checksum=7a45fd87c27cc8970a18db9ddddb2f09f18b8dd5152bf0ca377c3a5e7d304bfe
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-legacy-compat"
diff --git a/srcpkgs/texlab/template b/srcpkgs/texlab/template
index c61ac718f0ac..33cffac2c276 100644
--- a/srcpkgs/texlab/template
+++ b/srcpkgs/texlab/template
@@ -11,6 +11,7 @@ distfiles="https://github.com/latex-lsp/${pkgname}/archive/v${version}.tar.gz
  https://github.com/salsa-rs/salsa/archive/v0.13.2.tar.gz"
 checksum="04978b118b455607b5debd0a886f0728ca6c498289d2a0c60d8f83b316dc5ebc
  2e33e20d22692f6bcd4d638392b9c2cfb716bcd28998e809db0dd88be4f70a31"
+patch_args=-Np0
 
 post_extract() {
 	mv ../salsa-* salsa
diff --git a/srcpkgs/texlive/template b/srcpkgs/texlive/template
index b9a19c12a347..bbbf04254bf3 100644
--- a/srcpkgs/texlive/template
+++ b/srcpkgs/texlive/template
@@ -81,6 +81,7 @@ checksum=e32f3d08cbbbcf21d8d3f96f2143b64a1f5e4cb01b06b761d6249c8785249078
 python_version=3
 # Virtual package cares only about year part of version
 provides="tex-${version%${version#????}}_1"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ] ; then
 	# Tangle is required for cross compile
diff --git a/srcpkgs/texstudio/template b/srcpkgs/texstudio/template
index 9ae4a1805c9a..b6462e019170 100644
--- a/srcpkgs/texstudio/template
+++ b/srcpkgs/texstudio/template
@@ -18,6 +18,7 @@ homepage="https://texstudio.org/"
 changelog="https://raw.githubusercontent.com/texstudio-org/texstudio/master/utilities/manual/CHANGELOG.txt"
 distfiles="https://github.com/texstudio-org/texstudio/archive/${version}.tar.gz"
 checksum=7251f8e6f2b17395c428e9ff13bfc2c58e5f07ec09aae1036ab912dcf89f6fad
+patch_args=-Np0
 
 build_options="phonon poppler"
 desc_option_phonon="build with phonon (=media support for pdf preview)"
diff --git a/srcpkgs/textosaurus/template b/srcpkgs/textosaurus/template
index 5223d1f5566d..bc317d479553 100644
--- a/srcpkgs/textosaurus/template
+++ b/srcpkgs/textosaurus/template
@@ -16,6 +16,7 @@ distfiles="${homepage}/archive/${version}.tar.gz
  https://github.com/martinrotter/scintilla/archive/${_scommit}.tar.gz"
 checksum="82093b6c8725d104498ce4a66e4cf5a3aa1f057b34600bd5d67413dce9bff2cf
  fad739e3493dea0f7435114ac936dc255d3b1471bd61c7e7349845ab626b95d9"
+patch_args=-Np0
 
 post_extract() {
 	cp -Trp ${XBPS_BUILDDIR}/scintilla-${_scommit} ${wrksrc}/src/libtextosaurus/3rd-party/scintilla
diff --git a/srcpkgs/texworks/template b/srcpkgs/texworks/template
index 87ca84049343..92402d6d98ee 100644
--- a/srcpkgs/texworks/template
+++ b/srcpkgs/texworks/template
@@ -16,6 +16,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.tug.org/texworks"
 distfiles="https://github.com/texworks/texworks/archive/release-${version}.tar.gz"
 checksum=b4695539b9666935d2c467cc618c7d79c174e2ec728e31f72df8534862a5c290
+patch_args=-Np0
 
 do_check() {
 	: # requires xserver
diff --git a/srcpkgs/tgt/template b/srcpkgs/tgt/template
index c5a638e6e3a5..90a37ec9d1ae 100644
--- a/srcpkgs/tgt/template
+++ b/srcpkgs/tgt/template
@@ -14,6 +14,7 @@ license="GPL-2.0-only"
 homepage="http://stgt.sourceforge.net/"
 distfiles="https://github.com/fujita/tgt/archive/v${version}.tar.gz"
 checksum=e2255482f1a2797c115a6d545c37428b10a4ba6276a2af787da5378fa4e34e75
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/CFLAGS/MYCFLAGS/; s/\$(MYCFLAGS)/& $(CFLAGS) -Wno-error=stringop-truncation/g' usr/Makefile
diff --git a/srcpkgs/thingylaunch/template b/srcpkgs/thingylaunch/template
index 5e862376125b..6db8f5ef127a 100644
--- a/srcpkgs/thingylaunch/template
+++ b/srcpkgs/thingylaunch/template
@@ -12,6 +12,7 @@ license="BSD"
 homepage="https://gahr.ch/thingylaunch/"
 distfiles="https://github.com/gahr/${pkgname}/archive/${version}.tar.gz"
 checksum=4d9cc6b826bddb3d02836f721316bfc24c2b31f75c9c2d5077ae162eb3d60b60
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYRIGHT
diff --git a/srcpkgs/thunderbird/template b/srcpkgs/thunderbird/template
index 72155ef786e4..4d152829f945 100644
--- a/srcpkgs/thunderbird/template
+++ b/srcpkgs/thunderbird/template
@@ -12,6 +12,7 @@ license="MPL-2.0, GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.thunderbird.net/"
 distfiles="${MOZILLA_SITE}/${pkgname}/releases/${version}/source/${pkgname}-${version}.source.tar.xz"
 checksum=ad070eb27ed5087819b62495e8f96ec0c8d8827598c415648c69ef989c634676
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/tickr/template b/srcpkgs/tickr/template
index 285e2419fccf..5bd58b02022f 100644
--- a/srcpkgs/tickr/template
+++ b/srcpkgs/tickr/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://www.open-tickr.net/"
 distfiles="https://www.open-tickr.net/src/${pkgname}-${version}.tar.gz"
 checksum=37dd2d970cd9bf9b0ebc5e6cbf6605ea460008f577a43a7500e506e9dffcd802
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	arm*|ppc64|ppc) configure_args+=" LIBS=-lm" ;;
diff --git a/srcpkgs/tidy5/template b/srcpkgs/tidy5/template
index 616b746d8cd1..eecaf052f7d3 100644
--- a/srcpkgs/tidy5/template
+++ b/srcpkgs/tidy5/template
@@ -14,6 +14,7 @@ license="W3C"
 homepage="http://www.htacg.org/${_reponame}/"
 distfiles="https://github.com/htacg/${_reponame}/archive/${version}.tar.gz"
 checksum=5caa2c769204f506e24ea4986a45abe23f71d14f0fe968314f20065f342ffdba
+patch_args=-Np0
 
 provides="tidy-${version}_${revision}"
 replaces="tidy>0"
diff --git a/srcpkgs/tilp2/template b/srcpkgs/tilp2/template
index 276c85e6e74b..a8c9e0851d4b 100644
--- a/srcpkgs/tilp2/template
+++ b/srcpkgs/tilp2/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.ticalc.org"
 distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${version}/${pkgname}-${version}.tar.bz2"
 checksum=7b3ab363eeb52504d6ef5811c5d264f8016060bb7bd427be5a064c2ed7384e47
+patch_args=-Np0
 
 pre_configure() {
 	mkdir -p m4
diff --git a/srcpkgs/tinyxml/template b/srcpkgs/tinyxml/template
index 29c19bb162d8..291c14f84dd5 100644
--- a/srcpkgs/tinyxml/template
+++ b/srcpkgs/tinyxml/template
@@ -9,6 +9,7 @@ homepage="http://www.grinninglizard.com/tinyxml/"
 license="zlib"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_2_6_2.tar.gz"
 checksum=15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593
+patch_args=-Np0
 
 do_build() {
 	# Fix Makefile
diff --git a/srcpkgs/tlsh/template b/srcpkgs/tlsh/template
index 4ee1ccdc728a..a173f36f8225 100644
--- a/srcpkgs/tlsh/template
+++ b/srcpkgs/tlsh/template
@@ -11,6 +11,7 @@ license="Apache-2.0, BSD-3-Clause"
 homepage="https://github.com/trendmicro/tlsh"
 distfiles="https://github.com/trendmicro/tlsh/archive/${version}.tar.gz"
 checksum=a8a7972d8bafb5fd66bd597b72037356dd9882e71a7e9b5f37281751a99ce686
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i src/CMakeLists.txt -e 's/set(TLSH_SHARED_LIBRARY 0)/set(TLSH_SHARED_LIBRARY 1)/'
diff --git a/srcpkgs/tmines/template b/srcpkgs/tmines/template
index 7669477aea95..8a8a4f4a12af 100644
--- a/srcpkgs/tmines/template
+++ b/srcpkgs/tmines/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="https://github.com/tropf/tmines"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=7b5037c7cedd6c744ec63d10fa59b415e5e3654e52b0cfda561ac545af8576cf
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone";;
diff --git a/srcpkgs/tnftp/template b/srcpkgs/tnftp/template
index c0b75c164f25..362abdd4718c 100644
--- a/srcpkgs/tnftp/template
+++ b/srcpkgs/tnftp/template
@@ -11,6 +11,7 @@ license="BSD"
 homepage="http://netbsd.gw.com/cgi-bin/man-cgi?ftp"
 distfiles="ftp://ftp.netbsd.org/pub/NetBSD/misc/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=ba4a92b693d04179664524eef0801c8eed4447941c9855f377f98f119f221c03
+patch_args=-Np0
 
 alternatives="
  ftp:ftp:/usr/bin/${pkgname}
diff --git a/srcpkgs/tomahawk/template b/srcpkgs/tomahawk/template
index 0edbacc5f8ad..23cdba671dd8 100644
--- a/srcpkgs/tomahawk/template
+++ b/srcpkgs/tomahawk/template
@@ -31,6 +31,7 @@ desc_option_hatchet="Enable support for http://hatchet.is"
 desc_option_kde="Enable support for KDE"
 desc_option_xmpp="Enable support for XMPP"
 build_options_default="xmpp upower"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake"
diff --git a/srcpkgs/tor/template b/srcpkgs/tor/template
index 42370ea8ba21..eb10de66fa9f 100644
--- a/srcpkgs/tor/template
+++ b/srcpkgs/tor/template
@@ -15,6 +15,7 @@ homepage="https://www.torproject.org/"
 changelog="https://gitweb.torproject.org/tor.git/plain/ReleaseNotes"
 distfiles="https://dist.torproject.org/tor-${version}.tar.gz"
 checksum=57ded091e8bcdcebb0013fe7ef4a4439827cb169358c7874fd05fa00d813e227
+patch_args=-Np0
 
 conf_files="/etc/tor/torrc"
 system_accounts="tor"
diff --git a/srcpkgs/torbrowser-launcher/template b/srcpkgs/torbrowser-launcher/template
index 2d8ce5bf282e..9634f108bb05 100644
--- a/srcpkgs/torbrowser-launcher/template
+++ b/srcpkgs/torbrowser-launcher/template
@@ -14,6 +14,7 @@ homepage="https://github.com/micahflee/torbrowser-launcher"
 changelog="https://raw.githubusercontent.com/micahflee/torbrowser-launcher/master/CHANGELOG.md"
 distfiles="https://github.com/micahflee/torbrowser-launcher/archive/v${version}.tar.gz"
 checksum=58b17bd5a9a6f35fe78d83e69fdf77919ffa8c2492b1add1d47aed6237794f93
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/touchegg/template b/srcpkgs/touchegg/template
index 538277a2c683..a09ec9637486 100644
--- a/srcpkgs/touchegg/template
+++ b/srcpkgs/touchegg/template
@@ -13,6 +13,7 @@ homepage="https://github.com/JoseExposito/touchegg"
 distfiles="https://github.com/JoseExposito/touchegg/archive/${version}.tar.gz"
 checksum=efff0f2011078cea15f2f130d1501714f8e3f82b7e883e81eccf956ac7966d0e
 system_accounts="_touchegg"
+patch_args=-Np0
 
 post_install() {
 	# we don't want the package being installed to mean it should be autostarted
diff --git a/srcpkgs/trace-cmd/template b/srcpkgs/trace-cmd/template
index 34f9bcb40d42..4410e51bca9c 100644
--- a/srcpkgs/trace-cmd/template
+++ b/srcpkgs/trace-cmd/template
@@ -16,6 +16,7 @@ homepage="http://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git/"
 distfiles="http://git.kernel.org/cgit/linux/kernel/git/rostedt/${pkgname}.git/snapshot/${pkgname}-v${version}.tar.gz"
 checksum=9404fc3cf540ea795304608068c9db6cdb38b90584c7f3c43249785913d54b38
 disable_parallel_build=yes
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr/share/bash-completion/completions
diff --git a/srcpkgs/traceroute/template b/srcpkgs/traceroute/template
index f92c929c300f..4a65dc7fb2e2 100644
--- a/srcpkgs/traceroute/template
+++ b/srcpkgs/traceroute/template
@@ -8,6 +8,7 @@ license="GPL-2"
 homepage="http://traceroute.sourceforge.net"
 distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz"
 checksum=3669d22a34d3f38ed50caba18cd525ba55c5c00d5465f2d20d7472e5d81603b6
+patch_args=-Np0
 
 alternatives="
  traceroute:traceroute:/usr/bin/linux-traceroute
diff --git a/srcpkgs/tracker/template b/srcpkgs/tracker/template
index 810675677fe5..c99b997dd55f 100644
--- a/srcpkgs/tracker/template
+++ b/srcpkgs/tracker/template
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later"
 homepage="https://live.gnome.org/Tracker"
 distfiles="${GNOME_SITE}/tracker/${version%.*}/tracker-${version}.tar.xz"
 checksum=bd1eb4122135296fa7b57b1c3fa0ed602cf7d06c0b8e534d0bd17ff5f97feef2
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" dbus"
diff --git a/srcpkgs/tracker3-miners/template b/srcpkgs/tracker3-miners/template
index 6ea8e49a1a51..47a75439b428 100644
--- a/srcpkgs/tracker3-miners/template
+++ b/srcpkgs/tracker3-miners/template
@@ -27,6 +27,7 @@ license="GPL-2.0-or-later"
 homepage="https://developer.gnome.org/libtracker-miner/stable"
 distfiles="${GNOME_SITE}/tracker-miners/${version%.*}/tracker-miners-${version}.tar.xz"
 checksum=c9be14871b1398e6e656a354a8f8f59e69e93169017f2b28308ef439324fd12b
+patch_args=-Np0
 
 # relies on unsupported ops in chroot
 do_check() {
diff --git a/srcpkgs/transcode/template b/srcpkgs/transcode/template
index 775cd09fc4e3..518a9c20c1ab 100644
--- a/srcpkgs/transcode/template
+++ b/srcpkgs/transcode/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://bitbucket.org/mojaves/transcode-tcforge"
 distfiles="https://bitbucket.org/mojaves/transcode-tcforge/get/release-1_1_7.tar.bz2"
 checksum=4693e3f4226f48fb37c8ae9609601724e8a276ca09f8686ddb43f8a255d994fe
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/transmission/template b/srcpkgs/transmission/template
index 5a61a0a2bdd3..794d5c49fff4 100644
--- a/srcpkgs/transmission/template
+++ b/srcpkgs/transmission/template
@@ -14,6 +14,7 @@ license="MIT, GPL-2.0-or-later"
 homepage="https://www.transmissionbt.com"
 distfiles="https://github.com/transmission/transmission-releases/raw/master/${pkgname}-${version}.tar.xz"
 checksum=9144652fe742f7f7dd6657716e378da60b751aaeda8bef8344b3eefc4db255f2
+patch_args=-Np0
 
 # Create transmission system user/group
 system_accounts="transmission"
diff --git a/srcpkgs/treesheets/template b/srcpkgs/treesheets/template
index 4cd41afbd932..fa39eb3426d0 100644
--- a/srcpkgs/treesheets/template
+++ b/srcpkgs/treesheets/template
@@ -11,6 +11,7 @@ license="Zlib"
 homepage="http://strlen.com/treesheets/"
 distfiles="https://github.com/aardappel/treesheets/archive/v${version}.tar.gz"
 checksum=84eb82f122bc7be3ded399d2511536128911477a4a69c51b26b856de2160405f
+patch_args=-Np0
 
 do_install() {
 	vmkdir usr/lib/${pkgname}
diff --git a/srcpkgs/trinity/template b/srcpkgs/trinity/template
index a7a561e89cb8..77017a15a956 100644
--- a/srcpkgs/trinity/template
+++ b/srcpkgs/trinity/template
@@ -10,6 +10,7 @@ homepage="https://github.com/kernelslacker/trinity"
 distfiles="https://github.com/kernelslacker/trinity/archive/v${version}.tar.gz"
 checksum=9abd6cea3f6bd3b36794e038317d5ed6001dc52ad3b1cd7071f6cc7c5baecd3c
 nocross="Mis-use of memfd_create declaration"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/trojita/template b/srcpkgs/trojita/template
index 8a291182b516..e12ea1749665 100644
--- a/srcpkgs/trojita/template
+++ b/srcpkgs/trojita/template
@@ -14,6 +14,7 @@ license="GPL-2,GPL-3"
 homepage="http://trojita.flaska.net/"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=e08da881721cafa00ecd772eaef6b99fd37d068cb703eeb532de0ed1ea0136d9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/trousers/template b/srcpkgs/trousers/template
index 5d962adec91a..2f8044e52f45 100644
--- a/srcpkgs/trousers/template
+++ b/srcpkgs/trousers/template
@@ -15,6 +15,7 @@ homepage="http://trousers.sourceforge.net/"
 # distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 distfiles="https://sources.voidlinux.org/trousers-${version}/trousers-${version}.tar.gz"
 checksum=ce50713a261d14b735ec9ccd97609f0ad5ce69540af560e8c3ce9eb5f2d28f47
+patch_args=-Np0
 
 make_dirs="/var/lib/tpm 0700 tss tss"
 
diff --git a/srcpkgs/tsocks/template b/srcpkgs/tsocks/template
index e1a8ff7ff7c2..e24ac3e48325 100644
--- a/srcpkgs/tsocks/template
+++ b/srcpkgs/tsocks/template
@@ -12,6 +12,7 @@ license="GPL-2.0-only"
 homepage="http://tsocks.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/tsocks/tsocks-$version.tar.gz"
 checksum=849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b347
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ttyrec/template b/srcpkgs/ttyrec/template
index cff70746cc57..144b33595d6f 100644
--- a/srcpkgs/ttyrec/template
+++ b/srcpkgs/ttyrec/template
@@ -8,6 +8,7 @@ license="BSD-4-Clause-UC"
 homepage="http://0xcc.net/ttyrec"
 distfiles="http://0xcc.net/ttyrec/${pkgname}-${version}.tar.gz"
 checksum=ef5e9bf276b65bb831f9c2554cd8784bd5b4ee65353808f82b7e2aef851587ec
+patch_args=-Np0
 
 do_build() {
 	sed -i 's/\$(CFLAGS)/$(LDFLAGS)/' Makefile
diff --git a/srcpkgs/tup/template b/srcpkgs/tup/template
index bb07b10f5826..afd6a942f1be 100644
--- a/srcpkgs/tup/template
+++ b/srcpkgs/tup/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://gittup.org/tup/index.html"
 distfiles="https://github.com/gittup/${pkgname}/archive/v${version}.tar.gz"
 checksum=9b0951afaa749186eb55d88860405b2f6b3d88632d1b5df1ec4a0bf973d8d326
+patch_args=-Np0
 
 do_configure() {
 	sed -i "s/git describe/echo ${version}/" src/tup/link.sh
diff --git a/srcpkgs/turbovnc/template b/srcpkgs/turbovnc/template
index 8bb508ee94a2..77a81c1d8c16 100644
--- a/srcpkgs/turbovnc/template
+++ b/srcpkgs/turbovnc/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="https://turbovnc.org"
 distfiles="${SOURCEFORGE_SITE}/turbovnc/${pkgname}-${version}.tar.gz"
 checksum=71ff553dbad24f8339e168fe90e09bc2b13c21e453f28276d0e5c9c408bd9de2
+patch_args=-Np0
 
 conf_files="/etc/*.conf"
 archs="i686* x86_64* ppc64*"
diff --git a/srcpkgs/txr/template b/srcpkgs/txr/template
index bcbe6d85b0d7..5ebfdb697ebf 100644
--- a/srcpkgs/txr/template
+++ b/srcpkgs/txr/template
@@ -15,6 +15,7 @@ changelog="http://www.kylheku.com/cgit/txr/tree/RELNOTES"
 distfiles="http://www.kylheku.com/cgit/txr/snapshot/${pkgname}-${version}.tar.bz2"
 checksum=58e3e19bb7f3f9a440761f046fdacbc4d619b11c494a4ed9f8ad25c7a2974ddc
 nopie=yes
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" txr"
diff --git a/srcpkgs/typespeed/template b/srcpkgs/typespeed/template
index 52d5bf5291a1..a2570048b47e 100644
--- a/srcpkgs/typespeed/template
+++ b/srcpkgs/typespeed/template
@@ -12,6 +12,7 @@ homepage="http://typespeed.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum="5c860385ceed8a60f13217cc0192c4c2b4705c3e80f9866f7d72ff306eb72961"
 mutable_files="/var/games/typespeed.score"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/u2f-hidraw-policy/template b/srcpkgs/u2f-hidraw-policy/template
index 26250c88a571..dc013c10cd8c 100644
--- a/srcpkgs/u2f-hidraw-policy/template
+++ b/srcpkgs/u2f-hidraw-policy/template
@@ -11,6 +11,7 @@ license="LGPL-2.0-or-later"
 homepage="https://github.com/amluto/u2f-hidraw-policy"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=50e327a9df3dd3db3b292af41fb119cc4c8d9bc29abddfb442e972053bf5e6d1
+patch_args=-Np0
 
 post_install() {
 	vmkdir usr
diff --git a/srcpkgs/u9fs/template b/srcpkgs/u9fs/template
index 79decd0299d0..adeadd264e52 100644
--- a/srcpkgs/u9fs/template
+++ b/srcpkgs/u9fs/template
@@ -12,6 +12,7 @@ license="custom:MIT-like"
 homepage="https://bitbucket.org/plan9-from-bell-labs/u9fs"
 distfiles="https://bitbucket.org/plan9-from-bell-labs/u9fs/get/${_commit}.tar.gz"
 checksum=201619c1c29bad1c9ed1bc886afe7b4965cfd0781b2296c9de87db10ba71615d
+patch_args=-Np0
 
 do_install() {
 	vbin u9fs
diff --git a/srcpkgs/ucspi-ssl/template b/srcpkgs/ucspi-ssl/template
index 1f2c6c36793c..c90b0c6c2378 100644
--- a/srcpkgs/ucspi-ssl/template
+++ b/srcpkgs/ucspi-ssl/template
@@ -17,6 +17,7 @@ distfiles="http://www.fehcom.de/ipnet/ucspi-ssl/ucspi-ssl-${version}.tgz"
 checksum=e7fcd4ceec351a0f36b7d27188758709a6c095460ed4dce434e0c5d463c4c4ea
 # ad hoc build system breaks parallel build and cross-compilation
 disable_parallel_build="ad hoc build system breaks parallel build"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/udptunnel/template b/srcpkgs/udptunnel/template
index dfc7ee1fe5ed..79c54ae0ad68 100644
--- a/srcpkgs/udptunnel/template
+++ b/srcpkgs/udptunnel/template
@@ -10,6 +10,7 @@ license="BSD-3-Clause"
 homepage="http://www.cs.columbia.edu/~lennox/udptunnel/"
 distfiles="http://www.cs.columbia.edu/~lennox/udptunnel/udptunnel-${version}.tar.gz"
 checksum=45c0e12045735bc55734076ebbdc7622c746d1fe4e6f7267fa122e2421754670
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -vfi
diff --git a/srcpkgs/ufoai/template b/srcpkgs/ufoai/template
index 3b36cf0d6db1..41c4c4998898 100644
--- a/srcpkgs/ufoai/template
+++ b/srcpkgs/ufoai/template
@@ -22,6 +22,7 @@ checksum="0c7cc3bc9efeb276f71cbe6ee8ff7c76f98d183de79f1a069fa63059cf182a8f
 replaces="ufoai-data>=0"
 ignore_elf_dirs="/usr/share/ufoai"
 broken="game doesn't work"
+patch_args=-Np0
 
 # suppress a lot of warnings
 CXXFLAGS="-Wno-cast-align -Wno-cast-qual -Wno-inline"
diff --git a/srcpkgs/ufraw/template b/srcpkgs/ufraw/template
index 476435c6abab..8cec750cdaa4 100644
--- a/srcpkgs/ufraw/template
+++ b/srcpkgs/ufraw/template
@@ -15,6 +15,7 @@ license="GPL-2.0-or-later"
 homepage="http://ufraw.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/ufraw/ufraw/ufraw-${version}/ufraw-${version}.tar.gz"
 checksum=f7abd28ce587db2a74b4c54149bd8a2523a7ddc09bedf4f923246ff0ae09a25e
+patch_args=-Np0
 
 build_options="extras"
 
diff --git a/srcpkgs/uftrace/template b/srcpkgs/uftrace/template
index 9f4f44d47652..ed711e2f1c06 100644
--- a/srcpkgs/uftrace/template
+++ b/srcpkgs/uftrace/template
@@ -13,6 +13,7 @@ license="GPL-2.0-only"
 homepage="https://github.com/namhyung/uftrace"
 distfiles="https://github.com/namhyung/uftrace/archive/v${version}.tar.gz"
 checksum=b8b56d540ea95c3eafe56440d6a998e0a140d53ca2584916b6ca82702795bbd9
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone"; export LDFLAGS=-largp;;
diff --git a/srcpkgs/uim/template b/srcpkgs/uim/template
index 1a782b680f78..6ea0e07ba05f 100644
--- a/srcpkgs/uim/template
+++ b/srcpkgs/uim/template
@@ -17,6 +17,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/uim/uim/wiki"
 distfiles="https://github.com/uim/uim/releases/download/${version}/uim-${version}.tar.bz2"
 checksum=34599bbcc4e5ab87832370763e38be5100984a64237555e9234a1ea225a0fadc
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/ulauncher/template b/srcpkgs/ulauncher/template
index 78888538e064..be7bdd1bdfc0 100644
--- a/srcpkgs/ulauncher/template
+++ b/srcpkgs/ulauncher/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="https://ulauncher.io/"
 distfiles="https://github.com/Ulauncher/Ulauncher/releases/download/${version}/${pkgname}_${version}.tar.gz"
 checksum=c4433bb06d0d456a2e0eee8dc4d03de164f273290484f2380728c3936ca31e3a
+patch_args=-Np0
 
 pre_build() {
 	export DISPLAY=
diff --git a/srcpkgs/ulogd/template b/srcpkgs/ulogd/template
index 55e9ae34a0e1..98a990f5af42 100644
--- a/srcpkgs/ulogd/template
+++ b/srcpkgs/ulogd/template
@@ -15,6 +15,7 @@ distfiles="${homepage}/files/${pkgname}-${version}.tar.bz2"
 checksum=990a05494d9c16029ba0a83f3b7294fc05c756546b8d60d1c1572dc25249a92b
 CFLAGS="-D_GNU_SOURCE"
 system_accounts="_ulogd"
+patch_args=-Np0
 
 post_install() {
 	vinstall ulogd.conf 644 etc
diff --git a/srcpkgs/unison/template b/srcpkgs/unison/template
index c3cb8e454c85..a9f349f00f76 100644
--- a/srcpkgs/unison/template
+++ b/srcpkgs/unison/template
@@ -10,6 +10,7 @@ homepage="http://www.cis.upenn.edu/~bcpierce/unison/"
 distfiles="https://github.com/bcpierce00/unison/archive/v${version}.tar.gz"
 checksum=0c287d17f52729440b2bdc28edf4d19b2d5ea5869983d78e780d501c5866914b
 nocross="OCaml does not cross compile"
+patch_args=-Np0
 
 do_build() {
 	CFLAGS= make ${makejobs} UISTYLE=text DEBUGGING=false THREADS=true
diff --git a/srcpkgs/unknown-horizons/template b/srcpkgs/unknown-horizons/template
index 56404addb864..fa7dc8ad7edc 100644
--- a/srcpkgs/unknown-horizons/template
+++ b/srcpkgs/unknown-horizons/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later, MIT, BSD-3-Clause, CC-BY-SY-3.0"
 homepage="http://unknown-horizons.org"
 distfiles="https://github.com/unknown-horizons/unknown-horizons/archive/${version}.tar.gz"
 checksum=a417fd3d342212fd190e4f21be82ef13c10e1ed7c288fbbe46e46200cf3de4d8
+patch_args=-Np0
 
 pre_install() {
 	python3 horizons/engine/generate_atlases.py 2048
diff --git a/srcpkgs/urbanterror/template b/srcpkgs/urbanterror/template
index 947a12cf2d8f..27453d5f8e57 100644
--- a/srcpkgs/urbanterror/template
+++ b/srcpkgs/urbanterror/template
@@ -12,6 +12,7 @@ homepage="https://github.com/Barbatos/ioq3-for-UrbanTerror-4"
 distfiles="https://github.com/Barbatos/ioq3-for-UrbanTerror-4/archive/release-${version}.tar.gz"
 checksum=ce9d09a8ad149f8a1d36a85a586e1dd8ec9b8dcb3e5e9e82ec2a33017655bf43
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/urlview/template b/srcpkgs/urlview/template
index 7fdbb3119577..5144c2ea8b4d 100644
--- a/srcpkgs/urlview/template
+++ b/srcpkgs/urlview/template
@@ -12,6 +12,7 @@ license="GPL-2.0"
 homepage="https://github.com/sigpipe/urlview"
 distfiles="https://gnupg.org/ftp/mutt/contrib/$pkgname-$version.tar.gz"
 checksum=74d18026e84e3cd70a3fdd1a7247a68031b0c1c1c6d761d64b7063ff71091cc3
+patch_args=-Np0
 
 pre_configure() {
 	sed -i '/install-data-local/,/^$/d' Makefile.am
diff --git a/srcpkgs/usbguard/template b/srcpkgs/usbguard/template
index c2c6829a13ad..54ad0e6e9df9 100644
--- a/srcpkgs/usbguard/template
+++ b/srcpkgs/usbguard/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://usbguard.github.io"
 distfiles="https://github.com/USBGuard/usbguard/releases/download/usbguard-$version/usbguard-$version.tar.gz"
 checksum=5617986cd5dd1a2d311041648a1977d836cf4e33a4121d7f82599f21496abc42
+patch_args=-Np0
 
 post_install() {
 	vsv usbguard
diff --git a/srcpkgs/uwm/template b/srcpkgs/uwm/template
index 071a909fa447..f7fc99bf8be3 100644
--- a/srcpkgs/uwm/template
+++ b/srcpkgs/uwm/template
@@ -10,5 +10,6 @@ license="GPL-2.0-only"
 homepage="http://udeproject.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/project/udeproject/UWM/uwm-${version}%20stable/uwm-${version}.tar.gz"
 checksum=dd056857c98b75c9203861917db33bcaf87ba074bdd204cf732ce4cb777cb408
+patch_args=-Np0
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/uwsgi/template b/srcpkgs/uwsgi/template
index 507987723d7b..30dc164b3334 100644
--- a/srcpkgs/uwsgi/template
+++ b/srcpkgs/uwsgi/template
@@ -10,6 +10,7 @@ license="GPL-2.0-linking-exception"
 homepage="http://projects.unbit.it/uwsgi"
 distfiles="https://github.com/unbit/uwsgi/archive/${version}.tar.gz"
 checksum=bf17cdbb9bd8bcb7c1633e34d9d7308cb4cc19eb0ff2d61057f840c1ba1fc41b
+patch_args=-Np0
 
 _libdir=usr/lib/uwsgi
 
diff --git a/srcpkgs/v4l-utils/template b/srcpkgs/v4l-utils/template
index 6ef76bb1e90d..590f2509212c 100644
--- a/srcpkgs/v4l-utils/template
+++ b/srcpkgs/v4l-utils/template
@@ -14,6 +14,7 @@ homepage="http://freshmeat.net/projects/libv4l"
 distfiles="http://linuxtv.org/downloads/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=956118713f7ccb405c55c7088a6a2490c32d54300dd9a30d8d5008c28d3726f7
 conf_files="/etc/rc_maps.cfg"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone"
diff --git a/srcpkgs/vala-panel/template b/srcpkgs/vala-panel/template
index 81ab10b9d2f0..de9a03c14052 100644
--- a/srcpkgs/vala-panel/template
+++ b/srcpkgs/vala-panel/template
@@ -13,6 +13,7 @@ license="LGPL-3.0-or-later"
 homepage="https://gitlab.com/vala-panel-project/vala-panel"
 distfiles="https://gitlab.com/vala-panel-project/vala-panel/uploads/$_glhash/vala-panel-${version}.tar.xz"
 checksum=ee3a9e000133da43b218ecd1738463c2de3f45783a5a09a11b9c263df4e233d1
+patch_args=-Np0
 
 # Package build options
 build_options="wayland"
diff --git a/srcpkgs/vanitygen/template b/srcpkgs/vanitygen/template
index 8fb4fa5ca443..e9baabe67a3e 100644
--- a/srcpkgs/vanitygen/template
+++ b/srcpkgs/vanitygen/template
@@ -11,6 +11,7 @@ homepage="https://github.com/exploitagency/vanitygen-plus"
 changelog="https://raw.githubusercontent.com/exploitagency/vanitygen-plus/master/CHANGELOG"
 distfiles="https://github.com/exploitagency/vanitygen-plus/archive/PLUS${version}.tar.gz"
 checksum=976a9afe2a4470551a8b6b0da97101a3a2e6c54c5a26dc870ae755bb2d8c7041
+patch_args=-Np0
 
 do_build() {
 	make CC=$CC CFLAGS="$CFLAGS $LDFLAGS" ${makejobs}
diff --git a/srcpkgs/vapoursynth-editor/template b/srcpkgs/vapoursynth-editor/template
index 19903b77a6e3..0dc9f4bf80b5 100644
--- a/srcpkgs/vapoursynth-editor/template
+++ b/srcpkgs/vapoursynth-editor/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="https://bitbucket.org/mystery_keeper/vapoursynth-editor"
 distfiles="${homepage}/get/r${version}.tar.gz"
 checksum=41e09a6c1411536f7a223a16263145b31de4715189cfe2ebe62b4ad69d6ec342
+patch_args=-Np0
 
 pre_configure() {
 	mv pro/pro.pro .
diff --git a/srcpkgs/varnish/template b/srcpkgs/varnish/template
index fff05f21f786..8181268d7077 100644
--- a/srcpkgs/varnish/template
+++ b/srcpkgs/varnish/template
@@ -13,6 +13,7 @@ homepage="https://varnish-cache.org/"
 distfiles="https://varnish-cache.org/_downloads/${pkgname}-${version}.tgz"
 checksum=d5ff82f2041276dfaeb9a652a88b6d7287cfcf7ca345bb02c438fb65d2bca2e5
 lib32disabled=yes
+patch_args=-Np0
 
 build_options="pcrejit"
 
diff --git a/srcpkgs/vboot-utils/template b/srcpkgs/vboot-utils/template
index 591697d20cf4..14117b36c4f3 100644
--- a/srcpkgs/vboot-utils/template
+++ b/srcpkgs/vboot-utils/template
@@ -18,6 +18,7 @@ checksum=@3d8edd7e3a1672b29f02d93c4cf89f19ad7477694968b0653aa968783c8ba3e6
 # 2crypto specifies a section for some variables, which lead to text relocations in the binary
 # let's play it safe and disable PIE
 nopie=yes
+patch_args=-Np0
 
 case $XBPS_TARGET_MACHINE in
 	x86_64*) _arch=x86_64 ;;
diff --git a/srcpkgs/vde2/template b/srcpkgs/vde2/template
index 5d0efce366ab..e502920a93d9 100644
--- a/srcpkgs/vde2/template
+++ b/srcpkgs/vde2/template
@@ -19,6 +19,7 @@ license="GPL-2, LGPL-2.1, BSD"
 homepage="http://sourceforge.net/projects/vde/"
 distfiles="${SOURCEFORGE_SITE}/vde/vde2-$version.tar.bz2"
 checksum=cbea9b7e03097f87a6b5e98b07890d2275848f1fe4b9fcda77b8994148bc9542
+patch_args=-Np0
 
 lib32disabled=yes
 disable_parallel_build=yes
diff --git a/srcpkgs/vdirsyncer/template b/srcpkgs/vdirsyncer/template
index 906b77950d36..f1e783316597 100644
--- a/srcpkgs/vdirsyncer/template
+++ b/srcpkgs/vdirsyncer/template
@@ -12,6 +12,7 @@ license="BSD-3-Clause"
 homepage="https://vdirsyncer.pimutils.org/"
 distfiles="${PYPI_SITE}/v/vdirsyncer/vdirsyncer-${version}.tar.gz"
 checksum=bfdb422f52e1d4d60bd0635d203fb59fa7f613397d079661eb48e79464ba13c5
+patch_args=-Np0
 
 pre_build() {
 	sed -i setup.py \
diff --git a/srcpkgs/vdrift/template b/srcpkgs/vdrift/template
index cc586376b4e6..c1c1989627eb 100644
--- a/srcpkgs/vdrift/template
+++ b/srcpkgs/vdrift/template
@@ -17,6 +17,7 @@ homepage="http://vdrift.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version//./-}.tar.bz2"
 checksum=458d45d59075c2ce943ec6bc271a5bd0eb6bc6ed123670b65038703345020be3
 python_version=2
+patch_args=-Np0
 
 post_install() {
 	# install .desktop file
diff --git a/srcpkgs/virglrenderer/template b/srcpkgs/virglrenderer/template
index 00a371c32a5e..8bfba79b29a6 100644
--- a/srcpkgs/virglrenderer/template
+++ b/srcpkgs/virglrenderer/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://gitlab.freedesktop.org/virgl/virglrenderer"
 distfiles="https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/virglrenderer-${version}/virglrenderer-virglrenderer-${version}.tar.gz"
 checksum=9fa93095cd9a3e5b13c740e5e3b656a989356732bdaf3e22acb7c38a1f1f4411
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/virtualbox-ose/template b/srcpkgs/virtualbox-ose/template
index b686236e1b0e..e95fd8cfbe64 100644
--- a/srcpkgs/virtualbox-ose/template
+++ b/srcpkgs/virtualbox-ose/template
@@ -10,6 +10,7 @@ homepage="https://www.virtualbox.org"
 changelog="https://www.virtualbox.org/wiki/Changelog"
 distfiles="http://download.virtualbox.org/virtualbox/${version}/VirtualBox-${version}.tar.bz2"
 checksum=e690c91974a2e7a5aca2c0939ad514382f9a2136797a5e0b96aab778e42bc8a7
+patch_args=-Np0
 
 nopie=yes
 lib32disabled=yes
diff --git a/srcpkgs/virtuoso/template b/srcpkgs/virtuoso/template
index 01de503942c0..7a7460e35af0 100644
--- a/srcpkgs/virtuoso/template
+++ b/srcpkgs/virtuoso/template
@@ -16,6 +16,7 @@ distfiles="https://github.com/openlink/virtuoso-opensource/archive/v${version}.t
 checksum=3e4807e94098b8265f8cf00867d1215bb1e9d0d274878e59a420742d2de471c2
 # cannot execute binary file: Exec format error
 nocross="https://build.voidlinux.org/builders/armv6l_builder/builds/29187/steps/shell_3/logs/stdio"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" libexecinfo-devel"; LDFLAGS+=" -lexecinfo";;
diff --git a/srcpkgs/visitors/template b/srcpkgs/visitors/template
index 39f09c00fd28..b35eff508246 100644
--- a/srcpkgs/visitors/template
+++ b/srcpkgs/visitors/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://www.hping.org/visitors/"
 distfiles="http://www.hping.org/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=d2149e33ffe96b1f52b0587cff65973b0bc0b24ec43cdf072a782c1bd52148ab
+patch_args=-Np0
 
 do_install() {
 	vbin visitors
diff --git a/srcpkgs/vitetris/template b/srcpkgs/vitetris/template
index 833a3cb491ee..9fd22cf800dd 100644
--- a/srcpkgs/vitetris/template
+++ b/srcpkgs/vitetris/template
@@ -12,6 +12,7 @@ license="BSD-2-Clause"
 homepage="http://www.victornils.net/tetris/"
 distfiles="https://github.com/vicgeralds/vitetris/archive/v${version}.tar.gz"
 checksum=699443df03c8d4bf2051838c1015da72039bbbdd0ab0eede891c59c840bdf58d
+patch_args=-Np0
 
 post_install() {
 	sed -i 's/Exec=tetris/Exec=vitetris/' $DESTDIR/usr/share/applications/vitetris.desktop
diff --git a/srcpkgs/vlc/template b/srcpkgs/vlc/template
index c2cc1a43d314..09366bf5226c 100644
--- a/srcpkgs/vlc/template
+++ b/srcpkgs/vlc/template
@@ -18,6 +18,7 @@ homepage="https://www.videolan.org/vlc/"
 changelog="https://www.videolan.org/developers/vlc-branch/NEWS"
 distfiles="https://download.videolan.org/pub/videolan/vlc/${version}/vlc-${version}.tar.xz"
 checksum=7b9635061ae14dfdf71623a7fd479b4f0d6929de75ff3c23d39b6b4b65b31b56
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/voltron/template b/srcpkgs/voltron/template
index 310e41474fb2..4e465b5bc59e 100644
--- a/srcpkgs/voltron/template
+++ b/srcpkgs/voltron/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/snare/voltron"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=2919dabe5ebc05672dcedf400754e3fbce8c3b9f8608a64cea205591f3b47f63
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/volumeicon/template b/srcpkgs/volumeicon/template
index d92993ab771b..fedb3a7ed59b 100644
--- a/srcpkgs/volumeicon/template
+++ b/srcpkgs/volumeicon/template
@@ -12,6 +12,7 @@ license="GPL-3.0-only, ISC, MIT"
 homepage="http://softwarebakery.com/maato/volumeicon.html"
 distfiles="http://softwarebakery.com/maato/files/volumeicon/volumeicon-${version}.tar.gz"
 checksum=24b8c1d0a81d708b201ce6e67301fc175d65588d892d01859f667b8db8a05da0
+patch_args=-Np0
 
 post_patch() {
 	sed -ne '/Copyright/,/IN THE SOFTWARE/s/ [*] *//p' src/bind.c >LICENSE.MIT
diff --git a/srcpkgs/vpcs/template b/srcpkgs/vpcs/template
index 34b4c0ddd86b..22871df35850 100644
--- a/srcpkgs/vpcs/template
+++ b/srcpkgs/vpcs/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="https://sourceforge.net/projects/vpcs"
 distfiles="${SOURCEFORGE_SITE}/project/vpcs/${version}/${pkgname}-${version}-src.tbz"
 checksum=dca602d0571ba852c916632c4c0060aa9557dd744059c0f7368860cfa8b3c993
+patch_args=-Np0
 
 archs="i686* x86_64*"
 
diff --git a/srcpkgs/vpn-ws/template b/srcpkgs/vpn-ws/template
index 498ca5775a82..673af28f5f35 100644
--- a/srcpkgs/vpn-ws/template
+++ b/srcpkgs/vpn-ws/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/unbit/vpn-ws"
 distfiles="https://github.com/unbit/vpn-ws/archive/v${version}.tar.gz"
 checksum=f35d16d192ef333390ccc7d342df4392676a86502fa087f310eab9758afd565a
+patch_args=-Np0
 
 CFLAGS+=" -Wno-stringop-truncation -fcommon"
 
diff --git a/srcpkgs/vsftpd/template b/srcpkgs/vsftpd/template
index 2e177d8b8987..a6def875a1a7 100644
--- a/srcpkgs/vsftpd/template
+++ b/srcpkgs/vsftpd/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://security.appspot.com/vsftpd.html"
 distfiles="https://security.appspot.com/downloads/${pkgname}-${version}.tar.gz"
 checksum=6b9421bd27e8a6cdeed5b31154f294a20b003a11a26c09500715a0a6b1b86a26
+patch_args=-Np0
 
 system_accounts="ftp"
 ftp_pgroup=nogroup
diff --git a/srcpkgs/vte3/template b/srcpkgs/vte3/template
index 346ebf038640..e15615e6d642 100644
--- a/srcpkgs/vte3/template
+++ b/srcpkgs/vte3/template
@@ -16,6 +16,7 @@ license="GPL-3.0-or-later, LGPL-2.1-or-later, LGPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Terminal/VTE"
 distfiles="${GNOME_SITE}/vte/${version%.*}/vte-${version}.tar.xz"
 checksum=12fb41a9ff8e03c5f1711b46560910a4b9b3102aec3e9e7609ceef4dfa98aa2a
+patch_args=-Np0
 
 # Suppress warnings as errors for NULL format strings (musl libc)
 CXXFLAGS="-Wno-error=format="
diff --git a/srcpkgs/w_scan/template b/srcpkgs/w_scan/template
index eae95b0654ee..b4e2774eb925 100644
--- a/srcpkgs/w_scan/template
+++ b/srcpkgs/w_scan/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="http://wirbel.htpc-forum.de/w_scan/index2.html"
 distfiles="http://wirbel.htpc-forum.de/w_scan/w_scan-${version}.tar.bz2"
 checksum="38e0f38a7bf06cff6d6ea01652ad4ee60da2cb0e937360468f936da785b46ffe"
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/waifu2x-converter-cpp/template b/srcpkgs/waifu2x-converter-cpp/template
index 4030c6f0da06..269cdd6c82c4 100644
--- a/srcpkgs/waifu2x-converter-cpp/template
+++ b/srcpkgs/waifu2x-converter-cpp/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://github.com/DeadSix27/waifu2x-converter-cpp"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=e10bd5c64015553d1340988cf886aa51ed3cf4108f1a3ba864b3ea818426de7d
+patch_args=-Np0
 
 # silly workaround to prevent vector/bool/etc from being defined
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/webkit2gtk/template b/srcpkgs/webkit2gtk/template
index ae7e80744d0b..6eb2f5a8f471 100644
--- a/srcpkgs/webkit2gtk/template
+++ b/srcpkgs/webkit2gtk/template
@@ -38,6 +38,7 @@ homepage="https://webkitgtk.org/"
 distfiles="${homepage}/releases/webkitgtk-${version}.tar.xz"
 checksum=136117317f70f66486f71b8edf5e46f8776403c5d8a296e914b11a36ef836917
 make_check=no
+patch_args=-Np0
 
 build_options="gir wayland x11 bubblewrap jit sampling_profiler minibrowser
  clang lto"
diff --git a/srcpkgs/wicd/template b/srcpkgs/wicd/template
index d4fe01b557d5..b8ecfc8f106d 100644
--- a/srcpkgs/wicd/template
+++ b/srcpkgs/wicd/template
@@ -15,6 +15,7 @@ homepage="http://wicd.sourceforge.net"
 distfiles="http://launchpad.net/wicd/1.7/${version}/+download/wicd-${version}.tar.gz"
 checksum=67989614004773db349791c37675efb914d084bdb221356a05e4369c35e7eb62
 python_version=2
+patch_args=-Np0
 
 do_build() {
 	python2 setup.py configure --verbose --no-install-init \
diff --git a/srcpkgs/widelands/template b/srcpkgs/widelands/template
index d0402050262e..7326e3f0cf45 100644
--- a/srcpkgs/widelands/template
+++ b/srcpkgs/widelands/template
@@ -17,6 +17,7 @@ homepage="http://www.widelands.org/"
 distfiles="https://github.com/widelands/widelands/archive/build${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=601e0e4c6f91b3fb0ece2cd1b83ecfb02344a1b9194fbb70ef3f70e06994e357
 replaces="widelands-data>=0"
+patch_args=-Np0
 
 CXXFLAGS="-DU_USING_ICU_NAMESPACE=1"
 
diff --git a/srcpkgs/wildmidi/template b/srcpkgs/wildmidi/template
index 634ad5bc88a5..b12ae74cd617 100644
--- a/srcpkgs/wildmidi/template
+++ b/srcpkgs/wildmidi/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later, LGPL-3.0-only"
 homepage="https://www.mindwerks.net/projects/wildmidi"
 distfiles="https://github.com/Mindwerks/${pkgname}/archive/${pkgname}-${version}.tar.gz"
 checksum=6f267c8d331e9859906837e2c197093fddec31829d2ebf7b958cf6b7ae935430
+patch_args=-Np0
 
 post_install() {
 	vsconf ${FILESDIR}/wildmidi.cfg
diff --git a/srcpkgs/wine/template b/srcpkgs/wine/template
index 68e6045d5a2b..1d45aeb5459b 100644
--- a/srcpkgs/wine/template
+++ b/srcpkgs/wine/template
@@ -15,6 +15,7 @@ distfiles="https://dl.winehq.org/wine/source/${version%.*}.x/wine-${_pkgver}.tar
  https://github.com/wine-staging/wine-staging/archive/v${_pkgver}.tar.gz"
 checksum="58ede148482d49188262d5a2d0c9d700a74c69c51ccaa11c5adf63d3f314419f
  fe3fbea8b31eab63c5aec0418041e012dc3f7fc7951b8df97e42d542041f01df"
+patch_args=-Np0
 
 build_options="mingw staging"
 build_options_default="mingw"
diff --git a/srcpkgs/wineasio/template b/srcpkgs/wineasio/template
index bc529e72b3cc..b64054e6cc62 100644
--- a/srcpkgs/wineasio/template
+++ b/srcpkgs/wineasio/template
@@ -18,6 +18,7 @@ distfiles="${SOURCEFORGE_SITE}/wineasio/${pkgname}-${version}.tar.gz
 	https://www.steinberg.net/sdk_downloads/asiosdk2.3.zip"
 checksum="9fbc2d10a4cec307dc0558bed82b887c864424d16da40a80f1d80f907d92af0b
 	69225020e9144af568784c6076b55939a55369edaf0ffcdf4d5e5b5898f31b9b"
+patch_args=-Np0
 
 pre_configure() {
 	cp -v ../ASIOSDK2.3/common/asio.h asio.h
diff --git a/srcpkgs/winusb/template b/srcpkgs/winusb/template
index 64ec8fce12b0..5d97248df431 100644
--- a/srcpkgs/winusb/template
+++ b/srcpkgs/winusb/template
@@ -15,6 +15,7 @@ license="GPL-3.0-or-later"
 homepage="http://en.congelli.eu/prog_info_winusb.html"
 distfiles="http://ponce.cc/slackware/sources/repo/${pkgname}-${version}.tar.gz"
 checksum=7bd8d2e63651134bd4173dcf358708fb9e6de1677c088e67d45995a1d5066bc9
+patch_args=-Np0
 
 case "${XBPS_TARGET_MACHINE}" in
 	x86_64*) depends+=" grub-x86_64-efi"; makedepends+=" grub-x86_64-efi" ;;
diff --git a/srcpkgs/wireshark/template b/srcpkgs/wireshark/template
index 78a97130f689..9b54aab6a0da 100644
--- a/srcpkgs/wireshark/template
+++ b/srcpkgs/wireshark/template
@@ -19,6 +19,7 @@ homepage="https://www.wireshark.org"
 distfiles="https://www.wireshark.org/download/src/${pkgname}-${version}.tar.xz"
 checksum=de1aafd100a1e1207c850d180e97dd91ab8da0f5eb6beec545f725cdb145d333
 system_groups="wireshark"
+patch_args=-Np0
 
 CFLAGS="-DNDEBUG -I${XBPS_CROSS_BASE}/usr/include/lua5.2"
 CXXFLAGS="-DNDEBUG -I${XBPS_CROSS_BASE}/usr/include/lua5.2"
diff --git a/srcpkgs/wm2/template b/srcpkgs/wm2/template
index 5109f3154942..835883ad15a4 100644
--- a/srcpkgs/wm2/template
+++ b/srcpkgs/wm2/template
@@ -10,6 +10,7 @@ license="BSD"
 homepage="http://www.all-day-breakfast.com/wm2"
 distfiles="http://www.all-day-breakfast.com/wm2/wm2-${version}.tar.gz"
 checksum=a6c3352390f958c5033408ce73e1abd9677372a7c8c5949e39a62fda433b054d
+patch_args=-Np0
 
 do_install() {
 	vbin wm2
diff --git a/srcpkgs/woff2/template b/srcpkgs/woff2/template
index 9af0c9f84283..a7f78a7002c7 100644
--- a/srcpkgs/woff2/template
+++ b/srcpkgs/woff2/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/google/woff2"
 distfiles="https://github.com/google/woff2/archive/v${version}.tar.gz"
 checksum=add272bb09e6384a4833ffca4896350fdb16e0ca22df68c0384773c67a175594
+patch_args=-Np0
 
 libwoff2common1.0.2_package() {
 	short_desc+=" - common library"
diff --git a/srcpkgs/wordgrinder/template b/srcpkgs/wordgrinder/template
index f742e039123b..521b18d044d1 100644
--- a/srcpkgs/wordgrinder/template
+++ b/srcpkgs/wordgrinder/template
@@ -10,6 +10,7 @@ license="MIT"
 homepage="http://cowlark.com/wordgrinder"
 distfiles="https://github.com/davidgiven/wordgrinder/archive/${version}.tar.gz"
 checksum=856cbed2b4ccd5127f61c4997a30e642d414247970f69932f25b4b5a81b18d3f
+patch_args=-Np0
 
 do_configure() {
 	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig:${XBPS_CROSS_BASE}/usr/share/pkgconfig
diff --git a/srcpkgs/workrave/template b/srcpkgs/workrave/template
index 151ffd7e38a0..7ba6ba02ebbc 100644
--- a/srcpkgs/workrave/template
+++ b/srcpkgs/workrave/template
@@ -18,6 +18,7 @@ license="GPL-3.0-or-later"
 homepage="http://www.workrave.org/"
 distfiles="https://github.com/rcaelers/${pkgname}/archive/v${_realversion}.tar.gz"
 checksum=b9c8d1aaae16ca55c98d361a392f879a306a4ecf6db28663a7e96d0c205dabc0
+patch_args=-Np0
 
 build_options="pulseaudio"
 
diff --git a/srcpkgs/wtype/template b/srcpkgs/wtype/template
index 962c7cf82bec..6cb9a5bf481a 100644
--- a/srcpkgs/wtype/template
+++ b/srcpkgs/wtype/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/atx/wtype"
 distfiles="https://github.com/atx/${pkgname}/archive/v${version}.tar.gz"
 checksum=35615e61e57576a240d10308f9101ceb2ec7b3554fac60119b1416b84c1694b2
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/wvstreams/template b/srcpkgs/wvstreams/template
index 068c21944270..ace63917d2bc 100644
--- a/srcpkgs/wvstreams/template
+++ b/srcpkgs/wvstreams/template
@@ -13,6 +13,7 @@ checksum=8403f5fbf83aa9ac0c6ce15d97fd85607488152aa84e007b7d0621b8ebc07633
 configure_args="--sbindir=/usr/bin --without-dbus --without-tcl --without-qt"
 conf_files="/etc/uniconf.conf"
 replaces="uniconf>=0"
+patch_args=-Np0
 
 CXXFLAGS="-Wno-narrowing"
 
diff --git a/srcpkgs/wxPython4/template b/srcpkgs/wxPython4/template
index 1f32be9131ce..aa2e9c4db957 100644
--- a/srcpkgs/wxPython4/template
+++ b/srcpkgs/wxPython4/template
@@ -16,6 +16,7 @@ license="custom:wxWindows"
 homepage="http://www.wxpython.org/"
 distfiles="${PYPI_SITE}/w/wxPython/wxPython-${version}.tar.gz"
 checksum=3be608bfdede3063678cc703453850ab0a018b82bafd5ee057302250b18f0233
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc} -I${XBPS_CROSS_BASE}/usr/include"
diff --git a/srcpkgs/wxWidgets-gtk3/template b/srcpkgs/wxWidgets-gtk3/template
index fe6dc777392b..fab25e0be351 100644
--- a/srcpkgs/wxWidgets-gtk3/template
+++ b/srcpkgs/wxWidgets-gtk3/template
@@ -15,6 +15,7 @@ license="custom:wxWindows"
 homepage="https://www.wxwidgets.org"
 distfiles="https://github.com/wxWidgets/wxWidgets/releases/download/v${version}/wxWidgets-${version}.tar.bz2"
 checksum=440f6e73cf5afb2cbf9af10cec8da6cdd3d3998d527598a53db87099524ac807
+patch_args=-Np0
 
 post_install() {
 	local _config="gtk3-unicode-3.0"
diff --git a/srcpkgs/wxWidgets/template b/srcpkgs/wxWidgets/template
index c7e8f9f3a381..1f220c311482 100644
--- a/srcpkgs/wxWidgets/template
+++ b/srcpkgs/wxWidgets/template
@@ -16,6 +16,7 @@ license="wxWindows"
 homepage="https://www.wxwidgets.org/"
 distfiles="https://github.com/wxWidgets/wxWidgets/releases/download/v${version}/wxWidgets-${version}.tar.bz2"
 checksum=440f6e73cf5afb2cbf9af10cec8da6cdd3d3998d527598a53db87099524ac807
+patch_args=-Np0
 
 post_install() {
 	local _config="gtk2-unicode-3.0"
diff --git a/srcpkgs/x11vnc/template b/srcpkgs/x11vnc/template
index 4b8ff04a9ebe..fabffd609621 100644
--- a/srcpkgs/x11vnc/template
+++ b/srcpkgs/x11vnc/template
@@ -13,6 +13,7 @@ homepage="http://www.karlrunge.com/x11vnc/"
 changelog="https://raw.githubusercontent.com/LibVNC/x11vnc/master/NEWS"
 distfiles="https://github.com/LibVNC/${pkgname}/archive/${version}.tar.gz"
 checksum=885e5b5f5f25eec6f9e4a1e8be3d0ac71a686331ee1cfb442dba391111bd32bd
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template
index 2b858bad487f..974fad438b4c 100644
--- a/srcpkgs/x265/template
+++ b/srcpkgs/x265/template
@@ -13,6 +13,7 @@ license="GPL-2.0-or-later"
 homepage="http://x265.org/"
 distfiles="https://bitbucket.org/multicoreware/x265_git/get/${version}.tar.gz"
 checksum=7f2771799bea0f53b5ab47603d5bea46ea2a221e047a7ff398115e9976fd5f86
+patch_args=-Np0
 
 build_options="altivec assembly"
 
diff --git a/srcpkgs/x42-plugins/template b/srcpkgs/x42-plugins/template
index 432739cded19..e8aa6531adf5 100644
--- a/srcpkgs/x42-plugins/template
+++ b/srcpkgs/x42-plugins/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://x42-plugins.com"
 distfiles="https://gareus.org/misc/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=4423ea27ccc3f6e93a687d344a8ad5177b830d2bac25be8c36ae12ed0e3092e4
+patch_args=-Np0
 
 pre_build() {
 	export OPTIMIZATIONS="-fomit-frame-pointer -O3 -fno-finite-math-only -DNDEBUG"
diff --git a/srcpkgs/xapian-core/template b/srcpkgs/xapian-core/template
index 369cccb082f0..9473eb738d20 100644
--- a/srcpkgs/xapian-core/template
+++ b/srcpkgs/xapian-core/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="https://www.xapian.org/"
 distfiles="https://oligarchy.co.uk/xapian/${version}/${pkgname}-${version}.tar.xz"
 checksum=196ddbb4ad10450100f0991a599e4ed944cbad92e4a6fe813be6dce160244b77
+patch_args=-Np0
 
 # xapian-config needs the .la
 keep_libtool_archives=yes
diff --git a/srcpkgs/xar/template b/srcpkgs/xar/template
index 79117d197a99..4e3ca4b5477b 100644
--- a/srcpkgs/xar/template
+++ b/srcpkgs/xar/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/mackyle/xar"
 distfiles="https://github.com/downloads/mackyle/xar/${pkgname}-${version}.tar.gz"
 checksum=ee46089968457cf710b8cf1bdeb98b7ef232eb8a4cdeb34502e1f16ef4d2153e
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 *-musl)
diff --git a/srcpkgs/xautolock/template b/srcpkgs/xautolock/template
index 673e57c9a787..676b1c5161eb 100644
--- a/srcpkgs/xautolock/template
+++ b/srcpkgs/xautolock/template
@@ -10,6 +10,7 @@ license="GPL-2"
 homepage="http://www.ibiblio.org/pub/Linux/X11/screensavers/"
 distfiles="${homepage}/${pkgname}-${version}.tgz"
 checksum=11f0275175634e6db756e96f5713ec91b8b1c41f8663df54e8a5d27dc71c4da2
+patch_args=-Np0
 
 do_build() {
 	CC=cc xmkmf
diff --git a/srcpkgs/xava/template b/srcpkgs/xava/template
index fa16f119e240..e4e7faa656ac 100644
--- a/srcpkgs/xava/template
+++ b/srcpkgs/xava/template
@@ -11,6 +11,7 @@ license="MIT"
 homepage="https://github.com/nikp123/xava"
 distfiles="https://github.com/nikp123/xava/archive/${version}.tar.gz"
 checksum=b38b810e4bfd71aff44f223b444ae4f158eb8d6428c5e9d42697343ccb5a19f9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/xboxdrv/template b/srcpkgs/xboxdrv/template
index 2b4905d88909..4f22555872a9 100644
--- a/srcpkgs/xboxdrv/template
+++ b/srcpkgs/xboxdrv/template
@@ -13,6 +13,7 @@ homepage="https://xboxdrv.gitlab.io/"
 distfiles="https://xboxdrv.gitlab.io/xboxdrv-linux-${version}.tar.bz2"
 checksum=f4fb8c09c0ce3841798f129ae4c2caf3f6db9786d78ad941994e425e3ffc168a
 python_version=3
+patch_args=-Np0
 
 do_install() {
 	make PREFIX=/usr DESTDIR=${DESTDIR} install
diff --git a/srcpkgs/xcolorsel/template b/srcpkgs/xcolorsel/template
index f3efb02dc904..d6551e23f241 100644
--- a/srcpkgs/xcolorsel/template
+++ b/srcpkgs/xcolorsel/template
@@ -16,6 +16,7 @@ homepage="http://packages.debian.org/stable/x11/xcolorsel"
 distfiles="${DEBIAN_SITE}/main/x/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=ba0813af427dfab7dfbd9eaadbedd217d432f8141179ac43bb39393b1424f7a2
 nocross=yes
+patch_args=-Np0
 
 do_configure() {
 	xmkmf -a -DHasSELinux=0 -DUseConfDirForAppDefaults=0
diff --git a/srcpkgs/xdg-utils/template b/srcpkgs/xdg-utils/template
index d4094a292126..fe7a9b7deb5a 100644
--- a/srcpkgs/xdg-utils/template
+++ b/srcpkgs/xdg-utils/template
@@ -13,6 +13,7 @@ homepage="https://www.freedesktop.org/wiki/Software/xdg-utils/"
 #changelog="https://cgit.freedesktop.org/xdg/xdg-utils/plain/ChangeLog"
 distfiles="https://portland.freedesktop.org/download/${pkgname}-${version}.tar.gz"
 checksum=d798b08af8a8e2063ddde6c9fa3398ca81484f27dec642c5627ffcaa0d4051d9
+patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/xerces-c/template b/srcpkgs/xerces-c/template
index 56f12c4aab08..ba0edf7c4a63 100644
--- a/srcpkgs/xerces-c/template
+++ b/srcpkgs/xerces-c/template
@@ -12,6 +12,7 @@ license="Apache-2.0"
 homepage="http://xerces.apache.org/xerces-c/"
 distfiles="http://archive.apache.org/dist/xerces/c/3/sources/${pkgname}-${version}.tar.bz2"
 checksum=45c2329e684405f2b8854ecbddfb8d5b055cdf0fe4d35736cc352c504989bbb6
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/xf86-input-mtrack/template b/srcpkgs/xf86-input-mtrack/template
index 0f78142030d3..852900101d59 100644
--- a/srcpkgs/xf86-input-mtrack/template
+++ b/srcpkgs/xf86-input-mtrack/template
@@ -13,6 +13,7 @@ homepage="http://xorg.freedesktop.org/"
 distfiles="https://github.com/p2rkw/${pkgname}/archive/v${version}.tar.gz"
 checksum=a976723720028832afd45bfcaab479f60833ff6f1c780be727d1791675dc14c4
 lib32disabled=yes
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xf86-input-synaptics/template b/srcpkgs/xf86-input-synaptics/template
index 1c9f2be0a939..6d118bbe21ee 100644
--- a/srcpkgs/xf86-input-synaptics/template
+++ b/srcpkgs/xf86-input-synaptics/template
@@ -14,6 +14,7 @@ homepage="http://www.x.org/"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=7af83526eff1c76e8b9e1553b34245c203d029028d8044dd9dcf71eef1001576
 lib32disabled=yes
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xf86-video-ati/template b/srcpkgs/xf86-video-ati/template
index fe251dff4b37..a2715dcd5125 100644
--- a/srcpkgs/xf86-video-ati/template
+++ b/srcpkgs/xf86-video-ati/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://wiki.freedesktop.org/xorg"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=659f5a1629eea5f5334d9b39b18e6807a63aa1efa33c1236d9cc53acbb223c49
+patch_args=-Np0
 
 lib32disabled=yes
 CFLAGS="-fcommon"
diff --git a/srcpkgs/xf86-video-cirrus/template b/srcpkgs/xf86-video-cirrus/template
index f4f7c3a2f0a1..6c73923696f9 100644
--- a/srcpkgs/xf86-video-cirrus/template
+++ b/srcpkgs/xf86-video-cirrus/template
@@ -13,6 +13,7 @@ license="MIT"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=edc87b20a55259126b5239b5c1ef913419eab7ded0ed12ae9ae989460d7351ab
+patch_args=-Np0
 
 LDFLAGS="-Wl,-z,lazy"
 CFLAGS="-fcommon -Wno-pointer-arith -Wno-discarded-qualifiers -Wno-unused-label"
diff --git a/srcpkgs/xf86-video-fbdev/template b/srcpkgs/xf86-video-fbdev/template
index eafde10f3eab..297c1b4ca92a 100644
--- a/srcpkgs/xf86-video-fbdev/template
+++ b/srcpkgs/xf86-video-fbdev/template
@@ -13,6 +13,7 @@ homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=dcc3d85f378022180e437a9ec00a59b6cb7680ff79c40394d695060af2374699
 lib32disabled=yes
+patch_args=-Np0
 
 CFLAGS="-I$XBPS_CROSS_BASE/usr/include/xorg"
 LDFLAGS="-Wl,-z,lazy"
diff --git a/srcpkgs/xf86-video-fbturbo-sunxi/template b/srcpkgs/xf86-video-fbturbo-sunxi/template
index 3da5f84a572c..386a536c824d 100644
--- a/srcpkgs/xf86-video-fbturbo-sunxi/template
+++ b/srcpkgs/xf86-video-fbturbo-sunxi/template
@@ -13,6 +13,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://github.com/ssvb/xf86-video-fbturbo"
 distfiles="https://github.com/ssvb/xf86-video-fbturbo/archive/${version}.tar.gz"
 checksum=10411686de0a9d8b2cde300b0d68e9f1d22e3611470d357ef3afc337f123ca0f
+patch_args=-Np0
 
 archs="armv7l"
 conflicts="xf86-video-fbturbo>=0"
diff --git a/srcpkgs/xf86-video-fbturbo/template b/srcpkgs/xf86-video-fbturbo/template
index acfbff8c05d3..2b6784ccb160 100644
--- a/srcpkgs/xf86-video-fbturbo/template
+++ b/srcpkgs/xf86-video-fbturbo/template
@@ -9,6 +9,7 @@ license="MIT, GPL-2.0-or-later"
 homepage="http://github.com/ssvb/xf86-video-fbturbo"
 distfiles="https://github.com/ssvb/xf86-video-fbturbo/archive/${version}.tar.gz"
 checksum=10411686de0a9d8b2cde300b0d68e9f1d22e3611470d357ef3afc337f123ca0f
+patch_args=-Np0
 
 archs="armv6l* armv7l* aarch64*"
 hostmakedepends="pkg-config xorg-server-devel"
diff --git a/srcpkgs/xf86-video-intel/template b/srcpkgs/xf86-video-intel/template
index 2b589d009897..77eb791f02dc 100644
--- a/srcpkgs/xf86-video-intel/template
+++ b/srcpkgs/xf86-video-intel/template
@@ -18,6 +18,7 @@ homepage="https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/"
 distfiles="${homepage}/-/archive/master/xf86-video-intel-${_commit}.tar.gz"
 checksum=3cdcf2f84bddf9e9174a8413d8fc855dae893dbc53889329978dec62ee8f6e62
 lib32disabled=yes
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 LDFLAGS="-Wl,-z,lazy"
diff --git a/srcpkgs/xf86-video-mach64/template b/srcpkgs/xf86-video-mach64/template
index 51fb61f466c1..a084652f48cf 100644
--- a/srcpkgs/xf86-video-mach64/template
+++ b/srcpkgs/xf86-video-mach64/template
@@ -16,6 +16,7 @@ lib32disabled=yes
 # fails at XORG_DRIVER_CHECK_EXT even though xorg-util-macros is on host
 nocross=yes
 LDFLAGS="-Wl,-z,lazy"
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -if
diff --git a/srcpkgs/xf86-video-mga/template b/srcpkgs/xf86-video-mga/template
index 39edac52798d..41a806554577 100644
--- a/srcpkgs/xf86-video-mga/template
+++ b/srcpkgs/xf86-video-mga/template
@@ -13,6 +13,7 @@ homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=268946e1a13e9d80e4f724a0740df9e6e8c8bad37697fcbf456924e9fdbb5d79
 lib32disabled=yes
+patch_args=-Np0
 
 LDFLAGS="-Wl,-z,lazy"
 CFLAGS="-fcommon"
diff --git a/srcpkgs/xf86-video-r128/template b/srcpkgs/xf86-video-r128/template
index 4dbe1529aa5c..b05086aa3c59 100644
--- a/srcpkgs/xf86-video-r128/template
+++ b/srcpkgs/xf86-video-r128/template
@@ -14,6 +14,7 @@ distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=801c86882cbd2bbb3084d471dcc5cfee2c1754dcbfb4dc446676d58a6bd9e057
 lib32disabled=yes
 LDFLAGS="-Wl,-z,lazy"
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xf86-video-vmware/template b/srcpkgs/xf86-video-vmware/template
index 1da7f33d8ef1..12fad896b329 100644
--- a/srcpkgs/xf86-video-vmware/template
+++ b/srcpkgs/xf86-video-vmware/template
@@ -14,6 +14,7 @@ license="MIT"
 homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/driver/$pkgname-$version.tar.bz2"
 checksum=47971924659e51666a757269ad941a059ef5afe7a47b5101c174a6022ac4066c
+patch_args=-Np0
 
 lib32disabled=yes
 
diff --git a/srcpkgs/xfig/template b/srcpkgs/xfig/template
index 4c316f35b32d..e12459c56858 100644
--- a/srcpkgs/xfig/template
+++ b/srcpkgs/xfig/template
@@ -13,6 +13,7 @@ license="MIT-like"
 homepage="http://mcj.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/mcj/${pkgname}-${version}.tar.xz"
 checksum=ba43c0ea85b230d3efa5a951a3239e206d0b033d044c590a56208f875f888578
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's/spell/aspell/' app-defaults/Fig.in
diff --git a/srcpkgs/xfsprogs/template b/srcpkgs/xfsprogs/template
index e00f8a5d34e0..f33cde7cc8c5 100644
--- a/srcpkgs/xfsprogs/template
+++ b/srcpkgs/xfsprogs/template
@@ -12,6 +12,7 @@ license="LGPL-2.1-or-later"
 homepage="http://xfs.org/index.php/Main_Page"
 distfiles="${KERNEL_SITE}/utils/fs/xfs/xfsprogs/xfsprogs-${version}.tar.xz"
 checksum=bec44445cf18f49e63971d4f27dc4e90a17b118b852714a1104b621ea30e3507
+patch_args=-Np0
 
 post_extract() {
 	sed -i '1i#include <signal.h>' include/linux.h
diff --git a/srcpkgs/xinetd/template b/srcpkgs/xinetd/template
index dbdd441c063c..9456dbfdfcd9 100644
--- a/srcpkgs/xinetd/template
+++ b/srcpkgs/xinetd/template
@@ -11,6 +11,7 @@ license="xinetd"
 homepage="http://www.xinetd.org/"
 distfiles="http://ponce.cc/slackware/sources/repo/xinetd-${version}.tar.gz"
 checksum=bf4e060411c75605e4dcbdf2ac57c6bd9e1904470a2f91e01ba31b50a80a5be3
+patch_args=-Np0
 
 conf_files="/etc/xinetd.conf /etc/xinetd.d/servers /etc/xinetd.d/services"
 
diff --git a/srcpkgs/xinit/template b/srcpkgs/xinit/template
index be836ebc94ad..2bb4c8e43527 100644
--- a/srcpkgs/xinit/template
+++ b/srcpkgs/xinit/template
@@ -12,6 +12,7 @@ license="MIT"
 homepage="https://xorgwiki.freedesktop.org/xorg"
 distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.bz2"
 checksum=de9b8f617b68a70f6caf87da01fcf0ebd2b75690cdcba9c921d0ef54fa54abb9
+patch_args=-Np0
 
 conf_files="
 	/etc/X11/xinit/xinitrc
diff --git a/srcpkgs/xload/template b/srcpkgs/xload/template
index 74cbd8bbf5ed..62f070c1f25c 100644
--- a/srcpkgs/xload/template
+++ b/srcpkgs/xload/template
@@ -11,6 +11,7 @@ license="X11, MIT"
 homepage="http://www.x.org/archive/X11R6.8.1/doc/xload.1.html"
 distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.bz2"
 checksum=f34e4803871d771325cfe52bebd98cc5b6040d3f065184ec73de436f9a375907
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xlunch/template b/srcpkgs/xlunch/template
index 8c8eafcb029b..54335a705a6e 100644
--- a/srcpkgs/xlunch/template
+++ b/srcpkgs/xlunch/template
@@ -11,6 +11,7 @@ license="GPL-3.0-or-later"
 homepage="http://xlunch.org/"
 distfiles="https://github.com/Tomas-M/xlunch/archive/v${version}.tar.gz"
 checksum=08728beba2a86b1e8f0cccf14903b7e6625e099425b6a254418c75636f2515e6
+patch_args=-Np0
 
 do_install() {
 	vbin xlunch
diff --git a/srcpkgs/xnp2/template b/srcpkgs/xnp2/template
index 1070cad41c20..21ad123a5010 100644
--- a/srcpkgs/xnp2/template
+++ b/srcpkgs/xnp2/template
@@ -13,6 +13,7 @@ license="BSD"
 homepage="https://www.nonakap.org/np2"
 distfiles="https://www.nonakap.org/np2/release/xnp2-${version}.tar.bz2"
 checksum=e0b8c93f54682a4b3373907fd9ffe78094f95f7430dffc5038eccbcc4c3f78fd
+patch_args=-Np0
 
 do_install() {
 	vbin xnp2
diff --git a/srcpkgs/xonotic/template b/srcpkgs/xonotic/template
index 977c8cdce6e4..9622079c8c31 100644
--- a/srcpkgs/xonotic/template
+++ b/srcpkgs/xonotic/template
@@ -14,6 +14,7 @@ homepage="http://xonotic.org"
 distfiles="http://dl.xonotic.org/xonotic-${version}-source.zip"
 checksum=5e6916f1e6e9e22285bb71ddd075189102857383e74ed0b0a3d27cef08e0bd2b
 nocross=yes
+patch_args=-Np0
 
 do_build() {
 	local target
diff --git a/srcpkgs/xorg-cf-files/template b/srcpkgs/xorg-cf-files/template
index aea5c85748e2..d5d53e6296f6 100644
--- a/srcpkgs/xorg-cf-files/template
+++ b/srcpkgs/xorg-cf-files/template
@@ -10,6 +10,7 @@ license="X11"
 homepage="http://xorg.freedesktop.org/"
 distfiles="${XORG_SITE}/util/${pkgname}-${version}.tar.bz2"
 checksum=4dcf5a9dbe3c6ecb9d2dd05e629b3d373eae9ba12d13942df87107fdc1b3934d
+patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/xorg-server/template b/srcpkgs/xorg-server/template
index 852c3ab2f573..a223cb08947d 100644
--- a/srcpkgs/xorg-server/template
+++ b/srcpkgs/xorg-server/template
@@ -31,6 +31,7 @@ provides="xserver-abi-extension-10_1 xserver-abi-input-24_1
  xserver-abi-video-24_1 xf86-video-modesetting-1_1"
 replaces="xf86-video-modesetting>=0 glamor-egl>=0"
 conf_files="/etc/X11/Xwrapper.config"
+patch_args=-Np0
 
 build_options="elogind"
 desc_option_elogind="Rootless Xorg support with elogind"
diff --git a/srcpkgs/xosview/template b/srcpkgs/xosview/template
index 3d6c3ab6c1f9..1c4b34de9d1c 100644
--- a/srcpkgs/xosview/template
+++ b/srcpkgs/xosview/template
@@ -10,6 +10,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.pogo.org.uk/~mark/xosview"
 distfiles="http://www.pogo.org.uk/~mark/xosview/releases/xosview-${version}.tar.gz"
 checksum=901b75af2676b11b28b88f0c79c5bd0f4f01de4790c0c5385edf6d71aee1f83a
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	# does not have asm/io.h
diff --git a/srcpkgs/xplanet/template b/srcpkgs/xplanet/template
index 4650dd2556ca..abb07cf7fa58 100644
--- a/srcpkgs/xplanet/template
+++ b/srcpkgs/xplanet/template
@@ -12,6 +12,7 @@ license="GPL-2"
 homepage="http://xplanet.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4380d570a8bf27b81fb629c97a636c1673407f4ac4989ce931720078a90aece7
+patch_args=-Np0
 
 pre_configure() {
 	# make it build with giflib-5.1.0
diff --git a/srcpkgs/xrick/template b/srcpkgs/xrick/template
index 42b8a0febe94..628972531f22 100644
--- a/srcpkgs/xrick/template
+++ b/srcpkgs/xrick/template
@@ -12,6 +12,7 @@ restricted=yes
 homepage="http://www.bigorno.net/xrick/"
 distfiles="https://www.bigorno.net/xrick/xrick-${version}.tgz"
 checksum=aa8542120bec97a730258027a294bd16196eb8b3d66134483d085f698588fc2b
+patch_args=-Np0
 
 CFLAGS=-fcommon
 
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 863e61dd58c7..b84bedbe6d72 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -11,6 +11,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.xsane.org"
 distfiles="${DEBIAN_SITE}/main/x/xsane/xsane_${version}.orig.tar.gz"
 checksum=5782d23e67dc961c81eef13a87b17eb0144cae3d1ffc5cf7e0322da751482b4b
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=.*/DATADIRNAME=share/' \
diff --git a/srcpkgs/xsettingsd/template b/srcpkgs/xsettingsd/template
index e2754ef00999..deb1a1228579 100644
--- a/srcpkgs/xsettingsd/template
+++ b/srcpkgs/xsettingsd/template
@@ -11,6 +11,7 @@ license="BSD-3-Clause"
 homepage="https://github.com/derat/xsettingsd"
 distfiles="https://github.com/derat/xsettingsd/archive/v${version}.tar.gz"
 checksum=69b5d1987608d1b5f2a0085f2f88cc55936a99b92279118e655d665ebb5e50d3
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/xst/template b/srcpkgs/xst/template
index 8600c680ae36..5fded5ad0a2c 100644
--- a/srcpkgs/xst/template
+++ b/srcpkgs/xst/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/gnotclub/xst"
 distfiles="https://github.com/gnotclub/xst/archive/v${version}.tar.gz"
 checksum=cbeb2da6c289415d1168559c6f58b4ce47fd266edefbabc38fd59e8b7c87226d
+patch_args=-Np0
 
 do_install() {
 	vbin xst
diff --git a/srcpkgs/xstarter/template b/srcpkgs/xstarter/template
index 4363d36e3c39..5e49b3e3f73d 100644
--- a/srcpkgs/xstarter/template
+++ b/srcpkgs/xstarter/template
@@ -12,6 +12,7 @@ homepage="https://xstarter.org"
 changelog="https://raw.githubusercontent.com/lchsk/xstarter/master/CHANGELOG"
 distfiles="https://github.com/lchsk/xstarter/archive/v${version}.tar.gz"
 checksum=cb82bf837a2693cbbad468812d517256e079d6aae56dde770d473b245603030a
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e's;-Wall;-fcommon &;'
diff --git a/srcpkgs/xterm/template b/srcpkgs/xterm/template
index cde36bc4e134..92d4c5866d0c 100644
--- a/srcpkgs/xterm/template
+++ b/srcpkgs/xterm/template
@@ -21,6 +21,7 @@ homepage="http://invisible-island.net/xterm/"
 changelog="http://invisible-island.net/xterm/xterm.log.html"
 distfiles="https://invisible-mirror.net/archives/xterm/xterm-${version}.tgz"
 checksum=2ff5169930b6b49ef0bafb5e1331c94f1a98c310442bba7798add821c76ae712
+patch_args=-Np0
 
 post_install() {
 	for f in {u,}xterm.desktop; do
diff --git a/srcpkgs/xye/template b/srcpkgs/xye/template
index d36a89c9ad29..7d9472e29e6e 100644
--- a/srcpkgs/xye/template
+++ b/srcpkgs/xye/template
@@ -11,6 +11,7 @@ homepage="http://xye.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=5d7c04f37d6b4a1821594512c7ddbc8189f968e08ecfd5af55231302f2f917d8
 replaces="xye-data>=0"
+patch_args=-Np0
 
 post_install() {
 	vdoc ReadMe.html
diff --git a/srcpkgs/yabar/template b/srcpkgs/yabar/template
index 8bb8d1cd5795..c8dd3ff8ae73 100644
--- a/srcpkgs/yabar/template
+++ b/srcpkgs/yabar/template
@@ -13,6 +13,7 @@ license="MIT"
 homepage="https://github.com/geommer/yabar"
 distfiles="https://github.com/geommer/${pkgname}/archive/${version}.tar.gz"
 checksum=f8cc613413328af78944ccb8063a5ba8e6be11797a883c419876e973e102fed0
+patch_args=-Np0
 
 post_install() {
 	vdoc README.md
diff --git a/srcpkgs/yarn-bin/template b/srcpkgs/yarn-bin/template
index 111cdd494574..948d9c8d6c65 100644
--- a/srcpkgs/yarn-bin/template
+++ b/srcpkgs/yarn-bin/template
@@ -10,6 +10,7 @@ homepage="https://yarnpkg.com/"
 distfiles="https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz"
 checksum=7e433d4a77e2c79e6a7ae4866782608a8e8bcad3ec6783580577c59538381a6e
 conflicts="yarn>=0"
+patch_args=-Np0
 
 do_extract() {
 	bsdtar xfz ${XBPS_SRCDISTDIR}/${pkgname}-${version}/yarn-v${version}.tar.gz --strip-components=1 -C ${wrksrc}
diff --git a/srcpkgs/yarn/template b/srcpkgs/yarn/template
index aa9f68e53c4c..4b699e2cf02f 100644
--- a/srcpkgs/yarn/template
+++ b/srcpkgs/yarn/template
@@ -10,6 +10,7 @@ license="BSD-2-Clause"
 homepage="https://yarnpkg.com/"
 distfiles="https://github.com/yarnpkg/${pkgname}/archive/v${version}.tar.gz"
 checksum=66153f5fdd3078ce320c775990e4b4f03d5b596186f0e1fbceb34225abe3cd3e
+patch_args=-Np0
 
 conflicts="yarn-bin>=0"
 
diff --git a/srcpkgs/yeahconsole/template b/srcpkgs/yeahconsole/template
index ef7d82067398..997c438199a2 100644
--- a/srcpkgs/yeahconsole/template
+++ b/srcpkgs/yeahconsole/template
@@ -10,6 +10,7 @@ license="GPL-3"
 homepage="http://phrat.de/yeahtools.html"
 distfiles="http://phrat.de/yeahconsole-${version}.tar.gz"
 checksum=fcf3481f78a263a70f1cb5163630fc22e78bb0915013eb05689c6f4aeb0583ef
+patch_args=-Np0
 
 do_install() {
 	vbin yeahconsole
diff --git a/srcpkgs/yeahwm/template b/srcpkgs/yeahwm/template
index 3574b02200e6..0a241f71ee91 100644
--- a/srcpkgs/yeahwm/template
+++ b/srcpkgs/yeahwm/template
@@ -11,6 +11,7 @@ license="Public Domain"
 homepage="http://phrat.de"
 distfiles="http://phrat.de/${pkgname}_${version}.tar.gz"
 checksum=c92ce98848c8b88d9b67c128e30710944c04a6454310254535c102b2b6fcee05
+patch_args=-Np0
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/yersinia/template b/srcpkgs/yersinia/template
index f9d57cfe9ffd..84c3b898a958 100644
--- a/srcpkgs/yersinia/template
+++ b/srcpkgs/yersinia/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/tomac/yersinia"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=964f528dbffd904376ab7986e69b1e8639591c929e2f39186ac9ebf2d3bc761f
+patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ${makedepends}"
diff --git a/srcpkgs/ympd/template b/srcpkgs/ympd/template
index 450c079b2ca3..3cea700b1264 100644
--- a/srcpkgs/ympd/template
+++ b/srcpkgs/ympd/template
@@ -11,6 +11,7 @@ license="GPL-2.0-only"
 homepage="https://www.ympd.org"
 distfiles="https://github.com/notandy/ympd/archive/v${version}.tar.gz"
 checksum=d9f68920cd93d1cfa971e1d7b9162a2b1724909bc9753c1338cecb3688d234d5
+patch_args=-Np0
 
 pre_configure() {
 	vsed -i CMakeLists.txt -e"s;-std=gnu99 -Wall;& -fcommon;"
diff --git a/srcpkgs/yoshimi/template b/srcpkgs/yoshimi/template
index b836098f1c82..33bc95745815 100644
--- a/srcpkgs/yoshimi/template
+++ b/srcpkgs/yoshimi/template
@@ -14,6 +14,7 @@ license="GPL-2.0-or-later"
 homepage="https://yoshimi.github.io/"
 distfiles="https://github.com/Yoshimi/$pkgname/archive/$version.tar.gz"
 checksum=b80a8b49bdf0e1f6c382627afc46c82d03219b7e45cdecd933e6fc046a939967
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone";;
diff --git a/srcpkgs/yosys/template b/srcpkgs/yosys/template
index 72e7da38f402..de5ad13629ca 100644
--- a/srcpkgs/yosys/template
+++ b/srcpkgs/yosys/template
@@ -16,6 +16,7 @@ license="ISC, MIT"
 homepage="http://www.clifford.at/yosys/about.html"
 distfiles="https://github.com/cliffordwolf/yosys/archive/yosys-${version}.tar.gz"
 checksum=f2e31371f9cf1b36cb4f57b23fd6eb849adc7d935dcf49f3c905aa5136382c2f
+patch_args=-Np0
 
 post_patch() {
 	vsed -i -e 's,-I[$](PREFIX)/include,,' \
diff --git a/srcpkgs/z3/template b/srcpkgs/z3/template
index 789712fa6450..0bf58a1ce64e 100644
--- a/srcpkgs/z3/template
+++ b/srcpkgs/z3/template
@@ -16,6 +16,7 @@ license="MIT"
 homepage="https://github.com/Z3Prover/z3"
 distfiles="https://github.com/Z3Prover/z3/archive/z3-${version}.tar.gz"
 checksum=99e912b9af76a17f8827f89afcf4da117736f3877a8bbdd737c548c6541009d7
+patch_args=-Np0
 
 build_options="ocaml"
 desc_option_ocaml="Enable support for OCaml bindings"
diff --git a/srcpkgs/z80ex/template b/srcpkgs/z80ex/template
index 5437f53d33d5..d71d6304ee1a 100644
--- a/srcpkgs/z80ex/template
+++ b/srcpkgs/z80ex/template
@@ -9,6 +9,7 @@ license="GPL-2.0-only"
 homepage="https://sourceforge.net/projects/z80ex/"
 distfiles="${SOURCEFORGE_SITE}/project/z80ex/z80ex/${version}/z80ex-${version}.tar.gz"
 checksum=6f5e521d068a614b41e10180ad4ae45b1bc258ec28c962543feb9078856c2530
+patch_args=-Np0
 
 z80ex-devel_package() {
 	short_desc+=" - development files"
diff --git a/srcpkgs/zabbix/template b/srcpkgs/zabbix/template
index 5db05d0d5d45..9cc6ed5f43a0 100644
--- a/srcpkgs/zabbix/template
+++ b/srcpkgs/zabbix/template
@@ -23,6 +23,7 @@ conf_files="/etc/zabbix_server.conf"
 system_accounts="_zabbix_server"
 system_groups="_zabbix_server"
 make_dirs="/var/log/zabbix-server 0750 _zabbix_server _zabbix_server"
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	# configure scripts is bad at checking, problably runs code instead of
diff --git a/srcpkgs/zbar/template b/srcpkgs/zbar/template
index f64d87fcfe81..6bd2833da871 100644
--- a/srcpkgs/zbar/template
+++ b/srcpkgs/zbar/template
@@ -16,6 +16,7 @@ license="LGPL-2.1-or-later"
 homepage="https://git.linuxtv.org/zbar.git/"
 distfiles="https://linuxtv.org/downloads/zbar/${pkgname}-${version}.tar.bz2"
 checksum=dad260b47ef887a639e840a89e5e6e132217b6bba2a8473565d1f459bcb97c1f
+patch_args=-Np0
 
 build_options="qt"
 case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/zeal/template b/srcpkgs/zeal/template
index 9db6b15584d6..16905d094d3e 100644
--- a/srcpkgs/zeal/template
+++ b/srcpkgs/zeal/template
@@ -14,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://zealdocs.org/"
 distfiles="https://github.com/zealdocs/zeal/archive/v${version}.tar.gz"
 checksum=095c08f9903071849d5c79878abd48237ce1615f16d324afff1873ab6b5f0026
+patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-qmake"
diff --git a/srcpkgs/zeek/template b/srcpkgs/zeek/template
index e071ae02cb68..2e5267e20f59 100644
--- a/srcpkgs/zeek/template
+++ b/srcpkgs/zeek/template
@@ -14,6 +14,7 @@ license="BSD-3-Clause"
 homepage="https://www.zeek.org"
 distfiles="https://old.zeek.org/downloads/zeek-${version}.tar.gz"
 checksum=659a890f433cb730519966bdc41f1a03fb67e27e94b5d52ad9ee890022a12c3a
+patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-fts-devel musl-legacy-compat"
diff --git a/srcpkgs/zerofree/template b/srcpkgs/zerofree/template
index 82d05a933846..4bbff91d1d86 100644
--- a/srcpkgs/zerofree/template
+++ b/srcpkgs/zerofree/template
@@ -10,6 +10,7 @@ license="GPL-2.0-only"
 homepage="https://frippery.org/uml/index.html"
 distfiles="https://frippery.org/uml/${pkgname}-${version}.tgz"
 checksum=956bc861b55ba0a2b7593c58d32339dab1a0e7da6ea2b813d27c80f08b723867
+patch_args=-Np0
 
 post_extract() {
 	sed -i 's|\(-lext2fs\)|$(LDFLAGS) \1|' Makefile
diff --git a/srcpkgs/zfs/template b/srcpkgs/zfs/template
index 40d6bcd78509..bd20fd9b8ed0 100644
--- a/srcpkgs/zfs/template
+++ b/srcpkgs/zfs/template
@@ -19,6 +19,7 @@ checksum=7d1344c5433b91823f02c2e40b33d181fa6faf286bea5591f4b1965f23d45f6c
 # dkms must be before initramfs-regenerate to build modules before images
 triggers="dkms initramfs-regenerate"
 dkms_modules="zfs ${version}"
+patch_args=-Np0
 
 replaces="spl<=0.7.13_1" # Because SPL was merged into zfs in 0.8.0
 
diff --git a/srcpkgs/zimg/template b/srcpkgs/zimg/template
index a0b0ff763198..1dc610bf781f 100644
--- a/srcpkgs/zimg/template
+++ b/srcpkgs/zimg/template
@@ -11,6 +11,7 @@ license="WTFPL"
 homepage="https://github.com/sekrit-twc/zimg"
 distfiles="https://github.com/sekrit-twc/zimg/archive/release-${version}.tar.gz"
 checksum=a15c0483fbe945ffe695a1a989bc43b3381c8bf33e2d1760464ec21d32cdf30b
+patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/zinnia/template b/srcpkgs/zinnia/template
index fc0f6a2a5a6b..2dc564a9a281 100644
--- a/srcpkgs/zinnia/template
+++ b/srcpkgs/zinnia/template
@@ -11,6 +11,7 @@ license="BSD-2-Clause"
 homepage="https://taku910.github.io/zinnia/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.gz"
 checksum=ece3af93f937282971634fd81d3e997f848e8cfa958220e26a4564ca064ac20b
+patch_args=-Np0
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/zip/template b/srcpkgs/zip/template
index 94cb4c961033..720fa31b6b64 100644
--- a/srcpkgs/zip/template
+++ b/srcpkgs/zip/template
@@ -9,6 +9,7 @@ license="Info-ZIP"
 homepage="http://infozip.sf.net/"
 distfiles="${SOURCEFORGE_SITE}/infozip/zip30.tar.gz"
 checksum=f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
+patch_args=-Np0
 
 do_build() {
 	sed -e "s|generic CC=gcc CPP=\"gcc -E\"|zips CC=$CC CPP=\"$CPP -E\" CFLAGS=\"-DLARGE_FILE_SUPPORT $CFLAGS \${CFLAGS_NOOPT}\" LFLAGS2=\"$LDFLAGS\"|g" -i unix/Makefile
diff --git a/srcpkgs/zlib/template b/srcpkgs/zlib/template
index a6462e5616a2..b7519dafd23f 100644
--- a/srcpkgs/zlib/template
+++ b/srcpkgs/zlib/template
@@ -10,6 +10,7 @@ license="Zlib"
 homepage="http://www.zlib.net"
 distfiles="$homepage/$pkgname-$version.tar.gz"
 checksum=c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
+patch_args=-Np0
 
 do_configure() {
 	LDFLAGS= LDSHAREDLIBC= ./configure --prefix=/usr --shared
diff --git a/srcpkgs/zsnes/template b/srcpkgs/zsnes/template
index df49c9c7d3e7..1d961f28744b 100644
--- a/srcpkgs/zsnes/template
+++ b/srcpkgs/zsnes/template
@@ -5,6 +5,7 @@ archs="i686"
 lib32mode="full"
 wrksrc="zsnes_1_51"
 build_wrksrc="src"
+patch_args=-Np0
 
 pkgname=zsnes
 version=1.51
diff --git a/srcpkgs/zulucrypt/template b/srcpkgs/zulucrypt/template
index cc596dc63dc2..7a197d0af329 100644
--- a/srcpkgs/zulucrypt/template
+++ b/srcpkgs/zulucrypt/template
@@ -21,6 +21,7 @@ homepage="https://mhogomchungu.github.io/zuluCrypt"
 changelog="https://raw.githubusercontent.com/mhogomchungu/zuluCrypt/master/changelog"
 distfiles="https://github.com/mhogomchungu/zuluCrypt/archive/${version}.tar.gz"
 checksum=f1bc599446e6dc82c6af16672fcbd4a88679d3b3dba2cfa3921ac514cb211add
+patch_args=-Np0
 
 #https://github.com/mhogomchungu/zuluCrypt/blob/e138cc4459545b2e0f729814791a045c31b63014/BUILD_INSTRUCTIONS
 build_options="udev kde gnome pwquality polkit homemount"
diff --git a/srcpkgs/zutils/template b/srcpkgs/zutils/template
index 8549ede01b59..9ad5a4b3aae6 100644
--- a/srcpkgs/zutils/template
+++ b/srcpkgs/zutils/template
@@ -12,6 +12,7 @@ license="GPL-2.0-or-later"
 homepage="http://www.nongnu.org/zutils/zutils.html"
 distfiles="http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${version}.tar.lz"
 checksum=0dd44138292d5757648037195b6945c3df70b316221b4285520ad38f2eaeb195
+patch_args=-Np0
 
 post_install() {
 	cd ${DESTDIR}/usr/bin
diff --git a/srcpkgs/zynaddsubfx/template b/srcpkgs/zynaddsubfx/template
index 844d14016a06..42b639e637de 100644
--- a/srcpkgs/zynaddsubfx/template
+++ b/srcpkgs/zynaddsubfx/template
@@ -15,6 +15,7 @@ homepage="http://zynaddsubfx.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
 checksum=7447322268114a1e0ac5f281ac37a09a78e761a7be61999caf79100049789f63
 replaces="zynaddsubfx-data>=0"
+patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	armv5*) configure_args+=" -DSUPPORT_NEON=NO";;

From cc3a25e6e29f2b101e6c9fd73637dec6d30be514 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:33:02 +0700
Subject: [PATCH 4/7] srcpkgs: add patch_args=-Np0 en-mass

Generated with:

        git ls-files 'srcpkgs/**/patches/*' |
        cut -d/ -f2 | uniq |
        xargs printf 'srcpkgs/%s/template\n'  |
        xargs grep -L 'patch_args=' |
        xargs sed -i '$a patch_args=-Np0"
---
 srcpkgs/64tass/template                     | 1 +
 srcpkgs/EmptyEpsilon/template               | 1 +
 srcpkgs/FreeDoko/template                   | 1 +
 srcpkgs/SoapyUHD/template                   | 1 +
 srcpkgs/Terminal/template                   | 1 +
 srcpkgs/a2jmidid/template                   | 1 +
 srcpkgs/apvlv/template                      | 1 +
 srcpkgs/auto-auto-complete/template         | 1 +
 srcpkgs/azpainter/template                  | 1 +
 srcpkgs/balsa/template                      | 1 +
 srcpkgs/batctl14/template                   | 1 +
 srcpkgs/biosdisk/template                   | 1 +
 srcpkgs/birdtray/template                   | 1 +
 srcpkgs/bitwise/template                    | 1 +
 srcpkgs/bti/template                        | 1 +
 srcpkgs/bzflag/template                     | 1 +
 srcpkgs/cantata/template                    | 1 +
 srcpkgs/cinnamon-session/template           | 1 +
 srcpkgs/clazy/template                      | 1 +
 srcpkgs/curlftpfs/template                  | 1 +
 srcpkgs/cutecom/template                    | 1 +
 srcpkgs/cvs/template                        | 1 +
 srcpkgs/darkice/template                    | 1 +
 srcpkgs/ddd/template                        | 1 +
 srcpkgs/dhewm3/template                     | 1 +
 srcpkgs/dialogbox/template                  | 1 +
 srcpkgs/dillo/template                      | 1 +
 srcpkgs/dislocker/template                  | 1 +
 srcpkgs/dmg2img/template                    | 1 +
 srcpkgs/dvdbackup/template                  | 1 +
 srcpkgs/edb-debugger/template               | 1 +
 srcpkgs/endless-sky/template                | 1 +
 srcpkgs/eolie/template                      | 1 +
 srcpkgs/epson-inkjet-printer-escpr/template | 1 +
 srcpkgs/exfat-utils/template                | 1 +
 srcpkgs/extundelete/template                | 1 +
 srcpkgs/fastjar/template                    | 1 +
 srcpkgs/fceux/template                      | 1 +
 srcpkgs/fifengine/template                  | 1 +
 srcpkgs/filelight/template                  | 1 +
 srcpkgs/fuse-emulator/template              | 1 +
 srcpkgs/gcal/template                       | 1 +
 srcpkgs/gftp/template                       | 1 +
 srcpkgs/gfuzz/template                      | 1 +
 srcpkgs/git-mediate/template                | 1 +
 srcpkgs/gltron/template                     | 1 +
 srcpkgs/gnome-recipes/template              | 1 +
 srcpkgs/gnupod/template                     | 1 +
 srcpkgs/gupnp-tools/template                | 1 +
 srcpkgs/helm/template                       | 1 +
 srcpkgs/html-xml-utils/template             | 1 +
 srcpkgs/hxtools/template                    | 1 +
 srcpkgs/icecast/template                    | 1 +
 srcpkgs/imagewriter/template                | 1 +
 srcpkgs/img2pdf/template                    | 1 +
 srcpkgs/intel-undervolt/template            | 1 +
 srcpkgs/intltool/template                   | 1 +
 srcpkgs/io.elementary.photos/template       | 1 +
 srcpkgs/ipv6calc/template                   | 1 +
 srcpkgs/itstool/template                    | 1 +
 srcpkgs/iwgtk/template                      | 1 +
 srcpkgs/jigdo/template                      | 1 +
 srcpkgs/k3b/template                        | 1 +
 srcpkgs/kcm-wacomtablet/template            | 1 +
 srcpkgs/kcov/template                       | 1 +
 srcpkgs/keditbookmarks/template             | 1 +
 srcpkgs/kig/template                        | 1 +
 srcpkgs/krusader/template                   | 1 +
 srcpkgs/ksysguard/template                  | 1 +
 srcpkgs/lbreakouthd/template                | 1 +
 srcpkgs/lbzip2/template                     | 1 +
 srcpkgs/lcov/template                       | 1 +
 srcpkgs/libeatmydata/template               | 1 +
 srcpkgs/libva-vdpau-driver/template         | 1 +
 srcpkgs/libwm/template                      | 1 +
 srcpkgs/lltag/template                      | 1 +
 srcpkgs/lrzsz/template                      | 1 +
 srcpkgs/macchanger/template                 | 1 +
 srcpkgs/mate-power-manager/template         | 1 +
 srcpkgs/mcomix/template                     | 1 +
 srcpkgs/mftrace/template                    | 1 +
 srcpkgs/nm-tray/template                    | 1 +
 srcpkgs/nootka/template                     | 1 +
 srcpkgs/olive/template                      | 1 +
 srcpkgs/pam_rundir/template                 | 1 +
 srcpkgs/pdfgrep/template                    | 1 +
 srcpkgs/pdfsandwich/template                | 1 +
 srcpkgs/pekwm/template                      | 1 +
 srcpkgs/perl-Authen-SASL/template           | 1 +
 srcpkgs/perl-Crypt-DH/template              | 1 +
 srcpkgs/perl-Crypt-Rijndael/template        | 1 +
 srcpkgs/perl-Fuse/template                  | 1 +
 srcpkgs/perl-OpenGL/template                | 1 +
 srcpkgs/perl-XML-LibXSLT/template           | 1 +
 srcpkgs/perl-XML-SAX/template               | 1 +
 srcpkgs/pidgin-gpg/template                 | 1 +
 srcpkgs/pidgin-sipe/template                | 1 +
 srcpkgs/plasma-desktop/template             | 1 +
 srcpkgs/pokoy/template                      | 1 +
 srcpkgs/polkit-kde-agent/template           | 1 +
 srcpkgs/posixovl/template                   | 1 +
 srcpkgs/powertop/template                   | 1 +
 srcpkgs/python3-orocos-kdl/template         | 1 +
 srcpkgs/python3-pykeepass/template          | 1 +
 srcpkgs/python3-transifex-client/template   | 1 +
 srcpkgs/python3-yara/template               | 1 +
 srcpkgs/qmltermwidget/template              | 1 +
 srcpkgs/qomui/template                      | 1 +
 srcpkgs/qtcurve/template                    | 1 +
 srcpkgs/qtfm/template                       | 1 +
 srcpkgs/recoll/template                     | 1 +
 srcpkgs/recordmydesktop/template            | 1 +
 srcpkgs/rofs-filtered/template              | 1 +
 srcpkgs/sasm/template                       | 1 +
 srcpkgs/scribus/template                    | 1 +
 srcpkgs/seahorse-nautilus/template          | 1 +
 srcpkgs/seq2gif/template                    | 1 +
 srcpkgs/sgfutils/template                   | 1 +
 srcpkgs/sidplayfp/template                  | 1 +
 srcpkgs/smbnetfs/template                   | 1 +
 srcpkgs/solvespace/template                 | 1 +
 srcpkgs/sonata/template                     | 1 +
 srcpkgs/stellarium/template                 | 1 +
 srcpkgs/streamripper/template               | 1 +
 srcpkgs/stress-ng/template                  | 1 +
 srcpkgs/swell-foop/template                 | 1 +
 srcpkgs/switchboard-plug-printers/template  | 1 +
 srcpkgs/telepathy-haze/template             | 1 +
 srcpkgs/tellico/template                    | 1 +
 srcpkgs/texmaker/template                   | 1 +
 srcpkgs/tmfs/template                       | 1 +
 srcpkgs/trackballs/template                 | 1 +
 srcpkgs/tremc/template                      | 1 +
 srcpkgs/ttfautohint/template                | 1 +
 srcpkgs/tworld/template                     | 1 +
 srcpkgs/ucl/template                        | 1 +
 srcpkgs/uhubctl/template                    | 1 +
 srcpkgs/usb-modeswitch-data/template        | 1 +
 srcpkgs/usb-modeswitch/template             | 1 +
 srcpkgs/valabind/template                   | 1 +
 srcpkgs/vba-m/template                      | 1 +
 srcpkgs/wdisplays/template                  | 1 +
 srcpkgs/wfuzz/template                      | 1 +
 srcpkgs/whysynth/template                   | 1 +
 srcpkgs/wmctrl/template                     | 1 +
 srcpkgs/wofi/template                       | 1 +
 srcpkgs/wvdial/template                     | 1 +
 srcpkgs/xbindkeys/template                  | 1 +
 srcpkgs/xdg-dbus-proxy/template             | 1 +
 srcpkgs/xfce4-power-manager/template        | 1 +
 srcpkgs/xkblayout-state/template            | 1 +
 srcpkgs/xnots/template                      | 1 +
 srcpkgs/xsel/template                       | 1 +
 srcpkgs/xseticon/template                   | 1 +
 srcpkgs/yabause-gtk/template                | 1 +
 srcpkgs/zaz/template                        | 1 +
 srcpkgs/zbackup/template                    | 1 +
 157 files changed, 157 insertions(+)

diff --git a/srcpkgs/64tass/template b/srcpkgs/64tass/template
index ae06411d48bc..5cb4cefd8189 100644
--- a/srcpkgs/64tass/template
+++ b/srcpkgs/64tass/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="http://tass64.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/tass64/64tass-${version}-src.zip"
 checksum=067d0a54cb3c473b26aa5d69ea3f1f956be7cccc9044f1117fc20cb84aa63880
+patch_args=-Np0
diff --git a/srcpkgs/EmptyEpsilon/template b/srcpkgs/EmptyEpsilon/template
index f191433eec50..c9ba6f8595b5 100644
--- a/srcpkgs/EmptyEpsilon/template
+++ b/srcpkgs/EmptyEpsilon/template
@@ -22,3 +22,4 @@ distfiles="https://github.com/daid/EmptyEpsilon/archive/EE-${version}.tar.gz
  https://github.com/daid/SeriousProton/archive/EE-${version}.tar.gz>SP-${version}.tar.gz"
 checksum="c1c4f11fefe1afac6076c795e8785c7507a297ba3f7f2be9ed30c97b1e93cb24
  62ab03dc904bd10f017fff338e55ec97c86f0bc3903a18d6c44285b86776a2d7"
+patch_args=-Np0
diff --git a/srcpkgs/FreeDoko/template b/srcpkgs/FreeDoko/template
index 6ec209a18922..80746fe5d893 100644
--- a/srcpkgs/FreeDoko/template
+++ b/srcpkgs/FreeDoko/template
@@ -13,3 +13,4 @@ homepage="http://free-doko.sourceforge.net/en/FreeDoko.html"
 license="GPL-2.0-or-later"
 distfiles="${SOURCEFORGE_SITE}/free-doko/FreeDoko_${version}.src.zip"
 checksum=5b9ca3ad915f36dba17a4bd22b3d7d68ac2526cf125d045a819aa8d4a2cceb4c
+patch_args=-Np0
diff --git a/srcpkgs/SoapyUHD/template b/srcpkgs/SoapyUHD/template
index 90f51db7b9c6..5549897fda77 100644
--- a/srcpkgs/SoapyUHD/template
+++ b/srcpkgs/SoapyUHD/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/pothosware/SoapyUHD"
 distfiles="${homepage}/archive/soapy-uhd-${version}.tar.gz"
 checksum=0ac7fd0967e6922f16d1ba1a7ecb72f1fbcc14dd80e5134af9a5c9b86c1bccb8
+patch_args=-Np0
diff --git a/srcpkgs/Terminal/template b/srcpkgs/Terminal/template
index 9cd7970fcc2e..d2fddec6eb3d 100644
--- a/srcpkgs/Terminal/template
+++ b/srcpkgs/Terminal/template
@@ -15,3 +15,4 @@ homepage="http://gap.nongnu.org/terminal/"
 distfiles="${NONGNU_SITE}/gap/${pkgname}-${version}.tar.gz"
 checksum=27f81bbecdbd10cde8c080012cde4973bec20e551c58c29f353733cf03c220e9
 nocross="objc doesn't get cross build at present within gcc (see gnustep-base)"
+patch_args=-Np0
diff --git a/srcpkgs/a2jmidid/template b/srcpkgs/a2jmidid/template
index b39aa31eef1c..eca329aec5f1 100644
--- a/srcpkgs/a2jmidid/template
+++ b/srcpkgs/a2jmidid/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/linuxaudio/a2jmidid/"
 distfiles="https://github.com/linuxaudio/a2jmidid/archive/${version}.tar.gz"
 checksum=2828d283e0c9a65f0683881f09676c8c35c45c97a8a56cf77b43b4ef0231df06
+patch_args=-Np0
diff --git a/srcpkgs/apvlv/template b/srcpkgs/apvlv/template
index 8d343dbe3358..8cd23927d55a 100644
--- a/srcpkgs/apvlv/template
+++ b/srcpkgs/apvlv/template
@@ -14,3 +14,4 @@ homepage="http://naihe2010.github.io/apvlv/"
 distfiles="https://github.com/naihe2010/apvlv/archive/v${version}.tar.gz"
 checksum=a4a2f42a7e42715a21d2356def3ed93c180c6ae41128580addee42835e5374c2
 replaces="apvlv-git>=0"
+patch_args=-Np0
diff --git a/srcpkgs/auto-auto-complete/template b/srcpkgs/auto-auto-complete/template
index 065d615c2b59..24a3eb40df42 100644
--- a/srcpkgs/auto-auto-complete/template
+++ b/srcpkgs/auto-auto-complete/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/maandree/auto-auto-complete"
 distfiles="https://github.com/maandree/${pkgname}/archive/${version}.tar.gz"
 checksum=5e54025c6ef65dfff5ba976d23eb778a0936b0678763ebcd78359d460300301e
+patch_args=-Np0
diff --git a/srcpkgs/azpainter/template b/srcpkgs/azpainter/template
index 05bd1be32771..b47d36fbe7ac 100644
--- a/srcpkgs/azpainter/template
+++ b/srcpkgs/azpainter/template
@@ -13,3 +13,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/Symbian9/azpainter"
 distfiles="https://github.com/Symbian9/azpainter/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=85f3f935e76b420f2e5e272514368fdfbe4c25c01daa1e161ac28a6e1edb0d2c
+patch_args=-Np0
diff --git a/srcpkgs/balsa/template b/srcpkgs/balsa/template
index 255ae0f226a5..5d3f410bf0b3 100644
--- a/srcpkgs/balsa/template
+++ b/srcpkgs/balsa/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://pawsa.fedorapeople.org/balsa/"
 distfiles="https://pawsa.fedorapeople.org/balsa/balsa-${version}.tar.bz2"
 checksum=6441772cb5e1870f10c358c21f7e709da8cc0bfa6cc005ec744b9f1b00ea7df6
+patch_args=-Np0
diff --git a/srcpkgs/batctl14/template b/srcpkgs/batctl14/template
index 4ca1b15ed0ea..9fc5556c20f2 100644
--- a/srcpkgs/batctl14/template
+++ b/srcpkgs/batctl14/template
@@ -14,3 +14,4 @@ homepage="http://www.open-mesh.net/"
 distfiles="http://downloads.open-mesh.net/batman/releases/batman-adv-${version}/batctl-${version}.tar.gz"
 checksum=4deae3b6664d0d13acf7a8ece74175a31a72fe58fb15cb9112a9a2014b32cb4c
 conflicts="batctl>=0"
+patch_args=-Np0
diff --git a/srcpkgs/biosdisk/template b/srcpkgs/biosdisk/template
index ccbc76f4e55a..ea5ad3aebcab 100644
--- a/srcpkgs/biosdisk/template
+++ b/srcpkgs/biosdisk/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/dell/biosdisk"
 distfiles="https://github.com/dell/biosdisk/archive/${version}.tar.gz"
 checksum=e89cf680914ab3d5bbb549c124c6c29594ef495880befc0d059ec8a3aaf1e3e7
+patch_args=-Np0
diff --git a/srcpkgs/birdtray/template b/srcpkgs/birdtray/template
index 8695820eccec..acf7c1d9c19c 100644
--- a/srcpkgs/birdtray/template
+++ b/srcpkgs/birdtray/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/gyunaev/birdtray"
 distfiles="https://github.com/gyunaev/birdtray/archive/v${version}.tar.gz"
 checksum=672256bfadbde2841dcd6bad00662aeba825a4f041fa9a1980763f9eb29294d0
+patch_args=-Np0
diff --git a/srcpkgs/bitwise/template b/srcpkgs/bitwise/template
index 16b8b2a23fe4..9e3fe3fa18c7 100644
--- a/srcpkgs/bitwise/template
+++ b/srcpkgs/bitwise/template
@@ -12,3 +12,4 @@ license="GPL-3.0-only"
 homepage="https://github.com/mellowcandle/bitwise"
 distfiles="${homepage}/releases/download/v${version}/bitwise-v${version}.tar.gz"
 checksum=d3d43cef47bf8f49e85f7ed381c3eaf1df921ca51805e0962f1a97a517e1d1d2
+patch_args=-Np0
diff --git a/srcpkgs/bti/template b/srcpkgs/bti/template
index a914e9e75d60..82d1af711e15 100644
--- a/srcpkgs/bti/template
+++ b/srcpkgs/bti/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://gregkh.github.com/bti/"
 distfiles="https://www.kernel.org/pub/software/web/bti/bti-${version}.tar.xz"
 checksum=8b4a1a11f529f83956468acadaea9d11db4f03e82afe07fecb84b2d00e9eae83
+patch_args=-Np0
diff --git a/srcpkgs/bzflag/template b/srcpkgs/bzflag/template
index d58270495975..e7315f51646a 100644
--- a/srcpkgs/bzflag/template
+++ b/srcpkgs/bzflag/template
@@ -12,3 +12,4 @@ homepage="https://www.bzflag.org"
 changelog="https://raw.githubusercontent.com/BZFlag-Dev/bzflag/2.4/ChangeLog"
 distfiles="https://download.bzflag.org/bzflag/source/${version}/bzflag-${version}.tar.bz2"
 checksum=9e64653302b657bd8b5f96fe1150a9ff80a1d53a6d7e8a35138c6b1b02006a4d
+patch_args=-Np0
diff --git a/srcpkgs/cantata/template b/srcpkgs/cantata/template
index 8ce1d756ace9..428ce3175cf6 100644
--- a/srcpkgs/cantata/template
+++ b/srcpkgs/cantata/template
@@ -17,3 +17,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/cdrummond/cantata"
 distfiles="https://github.com/CDrummond/cantata/releases/download/v${version}/${pkgname}-${version}.tar.bz2"
 checksum=3ed25d0c838720af7ed08b89a30f3e05d6952d40a5f520f29b3558b2eacdec82
+patch_args=-Np0
diff --git a/srcpkgs/cinnamon-session/template b/srcpkgs/cinnamon-session/template
index c27272b802a3..fa112215531a 100644
--- a/srcpkgs/cinnamon-session/template
+++ b/srcpkgs/cinnamon-session/template
@@ -17,3 +17,4 @@ license="GPL-2.0-or-later, LGPL-2.0-or-later"
 homepage="https://linuxmint-developer-guide.readthedocs.io/en/latest/cinnamon.html#cinnamon-session"
 distfiles="https://github.com/linuxmint/${pkgname}/archive/${version}.tar.gz"
 checksum=66301a1eb748f646c419ced76f3388d8d6af0436716c737842cd85f359bd38d4
+patch_args=-Np0
diff --git a/srcpkgs/clazy/template b/srcpkgs/clazy/template
index 2c958d5d481f..92023b704232 100644
--- a/srcpkgs/clazy/template
+++ b/srcpkgs/clazy/template
@@ -12,3 +12,4 @@ homepage="https://apps.kde.org/en/clazy"
 distfiles="${KDE_SITE}/clazy/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=4c6c2e473e6aa011cc5fab120ebcffec3fc11a9cc677e21ad8c3ea676eb076f8
 nocross="Clang cannot be installed as makedep"
+patch_args=-Np0
diff --git a/srcpkgs/curlftpfs/template b/srcpkgs/curlftpfs/template
index c1f06571aa24..aaabe2018457 100644
--- a/srcpkgs/curlftpfs/template
+++ b/srcpkgs/curlftpfs/template
@@ -11,3 +11,4 @@ homepage="http://curlftpfs.sourceforge.net/"
 license="GPL-2"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4eb44739c7078ba0edde177bdd266c4cfb7c621075f47f64c85a06b12b3c6958
+patch_args=-Np0
diff --git a/srcpkgs/cutecom/template b/srcpkgs/cutecom/template
index 4aad5728d348..e5cd27e3ea63 100644
--- a/srcpkgs/cutecom/template
+++ b/srcpkgs/cutecom/template
@@ -12,3 +12,4 @@ license="GPL-3.0-only"
 homepage="https://gitlab.com/cutecom/cutecom/"
 distfiles="https://gitlab.com/cutecom/cutecom/-/archive/v${version}/cutecom-v${version}.tar.gz"
 checksum=4b2591daa983b31716091bd1602988b5a06a19c1a3402150826fc36233edbedd
+patch_args=-Np0
diff --git a/srcpkgs/cvs/template b/srcpkgs/cvs/template
index c37384b54302..25d4446d64d7 100644
--- a/srcpkgs/cvs/template
+++ b/srcpkgs/cvs/template
@@ -14,3 +14,4 @@ homepage="http://www.nongnu.org/cvs/"
 license="GPL-1, LGPL-2"
 distfiles="http://ftp.gnu.org/non-gnu/cvs/source/feature/$version/cvs-$version.tar.bz2"
 checksum=78853613b9a6873a30e1cc2417f738c330e75f887afdaf7b3d0800cb19ca515e
+patch_args=-Np0
diff --git a/srcpkgs/darkice/template b/srcpkgs/darkice/template
index b61c6d8c7f8a..d6afbebc3446 100644
--- a/srcpkgs/darkice/template
+++ b/srcpkgs/darkice/template
@@ -21,3 +21,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.darkice.org"
 distfiles="${SOURCEFORGE_SITE}/project/darkice/darkice/${version}/darkice-${version}.tar.gz"
 checksum=2c0d0faaa627c0273b2ce8b38775a73ef97e34ef866862a398f660ad8f6e9de6
+patch_args=-Np0
diff --git a/srcpkgs/ddd/template b/srcpkgs/ddd/template
index 24f44a9abc23..71dc933f1045 100644
--- a/srcpkgs/ddd/template
+++ b/srcpkgs/ddd/template
@@ -10,3 +10,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/ddd"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=3ad6cd67d7f4b1d6b2d38537261564a0d26aaed077bf25c51efc1474d0e8b65c
+patch_args=-Np0
diff --git a/srcpkgs/dhewm3/template b/srcpkgs/dhewm3/template
index 5509900e8c0b..f2cfd2c0f79c 100644
--- a/srcpkgs/dhewm3/template
+++ b/srcpkgs/dhewm3/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://dhewm3.org/"
 distfiles="https://github.com/dhewm/dhewm3/releases/download/${version}/dhewm3-${version}-src.tar.xz"
 checksum=31671f35fb6f83272dfa2a27c0dad6183bc228f1f1a448ef925052cf4dcf4b68
+patch_args=-Np0
diff --git a/srcpkgs/dialogbox/template b/srcpkgs/dialogbox/template
index 31d985e61769..f213a4c2d3a0 100644
--- a/srcpkgs/dialogbox/template
+++ b/srcpkgs/dialogbox/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/martynets/dialogbox"
 distfiles="https://github.com/martynets/dialogbox/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=554e59712a616772cff5734206e2a223171ad57c0e922421d8383a763b11640e
+patch_args=-Np0
diff --git a/srcpkgs/dillo/template b/srcpkgs/dillo/template
index d2bdc4bf77e8..16a821062d9f 100644
--- a/srcpkgs/dillo/template
+++ b/srcpkgs/dillo/template
@@ -15,3 +15,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.dillo.org/download/"
 distfiles="http://www.dillo.org/download/${pkgname}-${version}.tar.bz2"
 checksum=db1be16c1c5842ebe07b419aa7c6ef11a45603a75df2877f99635f4f8345148b
+patch_args=-Np0
diff --git a/srcpkgs/dislocker/template b/srcpkgs/dislocker/template
index a5580034c6fd..97b42c35a35e 100644
--- a/srcpkgs/dislocker/template
+++ b/srcpkgs/dislocker/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Aorimn/dislocker"
 distfiles="https://github.com/Aorimn/${pkgname}/archive/v${version}.tar.gz"
 checksum=8d5275577c44f2bd87f6e05dd61971a71c0e56a9cbedf000bd38deadd8b6c1e6
+patch_args=-Np0
diff --git a/srcpkgs/dmg2img/template b/srcpkgs/dmg2img/template
index a14781b0c3b1..bfe2c851b263 100644
--- a/srcpkgs/dmg2img/template
+++ b/srcpkgs/dmg2img/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://vu1tur.eu.org/dmg2img"
 distfiles="http://vu1tur.eu.org/tools/dmg2img-${version}.tar.gz"
 checksum=02aea6d05c5b810074913b954296ddffaa43497ed720ac0a671da4791ec4d018
+patch_args=-Np0
diff --git a/srcpkgs/dvdbackup/template b/srcpkgs/dvdbackup/template
index 0d823b6f97ef..11d83f016517 100644
--- a/srcpkgs/dvdbackup/template
+++ b/srcpkgs/dvdbackup/template
@@ -10,3 +10,4 @@ license="GPL-3.0-or-later"
 homepage="http://dvdbackup.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/dvdbackup/dvdbackup-${version}.tar.xz"
 checksum=ef8c56fbb82b15b7eef00d2d3118c8253f9770009ed7bb2a5d4849acf88183e6
+patch_args=-Np0
diff --git a/srcpkgs/edb-debugger/template b/srcpkgs/edb-debugger/template
index e2d24e173f10..1f78ae3755d5 100644
--- a/srcpkgs/edb-debugger/template
+++ b/srcpkgs/edb-debugger/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/eteran/edb-debugger"
 distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tgz"
 checksum=86df4a0940a39c1480a6fc789f167f94e87a7a330f2d8163fe871f42c754afe8
+patch_args=-Np0
diff --git a/srcpkgs/endless-sky/template b/srcpkgs/endless-sky/template
index 00583361ce76..1cd6906a89b3 100644
--- a/srcpkgs/endless-sky/template
+++ b/srcpkgs/endless-sky/template
@@ -12,3 +12,4 @@ homepage="http://endless-sky.github.io/"
 distfiles="https://github.com/endless-sky/endless-sky/archive/v${version}.tar.gz"
 checksum=001c8a28bbec7491f2725fbaa52b1ade813d33cec2d16521f241c80d04685b9d
 replaces="endless-sky-data>=0"
+patch_args=-Np0
diff --git a/srcpkgs/eolie/template b/srcpkgs/eolie/template
index 4249e3426296..8dfb6676db8e 100644
--- a/srcpkgs/eolie/template
+++ b/srcpkgs/eolie/template
@@ -15,3 +15,4 @@ license="GPL-3.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Eolie"
 distfiles="https://gitlab.gnome.org/World/eolie/uploads/${_eolie_hash}/eolie-${version}.tar.xz"
 checksum=9da359895306cf5929a01acb60d1506afb0a04ddbbd0d80ae1d0ba831e34671b
+patch_args=-Np0
diff --git a/srcpkgs/epson-inkjet-printer-escpr/template b/srcpkgs/epson-inkjet-printer-escpr/template
index dda44942fff6..fb4053ab40a7 100644
--- a/srcpkgs/epson-inkjet-printer-escpr/template
+++ b/srcpkgs/epson-inkjet-printer-escpr/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
 distfiles="https://download3.ebz.epson.net/dsc/f/03/00/10/49/18/f3016be6120a7271a6d9cb64872f817bce1920b8/${pkgname}-${version}-1lsb3.2.tar.gz"
 checksum=8d964368a1395a8902b8637e3dc176d6793f0afdfe3f21e95509f29894700d4e
+patch_args=-Np0
diff --git a/srcpkgs/exfat-utils/template b/srcpkgs/exfat-utils/template
index 6c62704fa511..6ca86c434c4c 100644
--- a/srcpkgs/exfat-utils/template
+++ b/srcpkgs/exfat-utils/template
@@ -9,3 +9,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/relan/exfat"
 distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
 checksum=dfebd07a7b907e2d603d3a9626e6440bd43ec6c4e8c07ccfc57ce9502b724835
+patch_args=-Np0
diff --git a/srcpkgs/extundelete/template b/srcpkgs/extundelete/template
index 3ae6119c38dc..87b9c1fdf9b7 100644
--- a/srcpkgs/extundelete/template
+++ b/srcpkgs/extundelete/template
@@ -10,3 +10,4 @@ license="GPL-2.0-only"
 homepage="http://extundelete.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=a1f9dd61247056d36401ce5d6785e74d08a184340eebd3865c345ddaa93f19f4
+patch_args=-Np0
diff --git a/srcpkgs/fastjar/template b/srcpkgs/fastjar/template
index 6eab069f60ef..f3a6c5fb87c0 100644
--- a/srcpkgs/fastjar/template
+++ b/srcpkgs/fastjar/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://savannah.nongnu.org/projects/fastjar"
 distfiles="http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=f156abc5de8658f22ee8f08d7a72c88f9409ebd8c7933e9466b0842afeb2f145
+patch_args=-Np0
diff --git a/srcpkgs/fceux/template b/srcpkgs/fceux/template
index 5ecaa9c7e08f..10c3b17d433b 100644
--- a/srcpkgs/fceux/template
+++ b/srcpkgs/fceux/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://fceux.com/web/home.html"
 distfiles="https://github.com/TASVideos/fceux/archive/fceux-${version}.tar.gz"
 checksum=0d3b02b3f15032f7675acb95423fd81fae286615313dfbc58cdd4de2bce17f6e
+patch_args=-Np0
diff --git a/srcpkgs/fifengine/template b/srcpkgs/fifengine/template
index 6a2cc79a4487..d3bf756eabe7 100644
--- a/srcpkgs/fifengine/template
+++ b/srcpkgs/fifengine/template
@@ -14,3 +14,4 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/fifengine/fifengine"
 distfiles="https://github.com/fifengine/fifengine/archive/${version}.tar.gz"
 checksum=e882b55befa36ae2f1a89ada16af0f814a1b78f7cbe6021ec5b1605604cf8ff8
+patch_args=-Np0
diff --git a/srcpkgs/filelight/template b/srcpkgs/filelight/template
index 35cd560b1f96..197232071e80 100644
--- a/srcpkgs/filelight/template
+++ b/srcpkgs/filelight/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://utils.kde.org/projects/filelight/"
 distfiles="${KDE_SITE}/release-service/${version}/src/filelight-${version}.tar.xz"
 checksum=618f91b9da8eebbb6b96e3d74d9e89a7c088ca08b1682ff6c4e65b53a3da5d20
+patch_args=-Np0
diff --git a/srcpkgs/fuse-emulator/template b/srcpkgs/fuse-emulator/template
index e1159f258700..957c8796eb0e 100644
--- a/srcpkgs/fuse-emulator/template
+++ b/srcpkgs/fuse-emulator/template
@@ -14,3 +14,4 @@ license="GPL-2.0-or-later"
 homepage="http://fuse-emulator.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/fuse-emulator/fuse-${version}.tar.gz"
 checksum=f0e2583f2642cdc3b2a737910d24e289d46e4f7e151805e3b0827024b2b45e4d
+patch_args=-Np0
diff --git a/srcpkgs/gcal/template b/srcpkgs/gcal/template
index 3c535d1c099c..7107cee8ef52 100644
--- a/srcpkgs/gcal/template
+++ b/srcpkgs/gcal/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/gcal/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=91b56c40b93eee9bda27ec63e95a6316d848e3ee047b5880ed71e5e8e60f61ab
+patch_args=-Np0
diff --git a/srcpkgs/gftp/template b/srcpkgs/gftp/template
index 0820b29da2d3..30a3556d628e 100644
--- a/srcpkgs/gftp/template
+++ b/srcpkgs/gftp/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.gftp.org"
 distfiles="https://sources.voidlinux.org/gftp-${version}/gftp-${version}.tar.bz2"
 checksum=5306a46be96d6f4d23906cb1836fb3d732039621a6c7fcfa921acc21ac110bfd
+patch_args=-Np0
diff --git a/srcpkgs/gfuzz/template b/srcpkgs/gfuzz/template
index 3925f06c9500..31faee7c4a90 100644
--- a/srcpkgs/gfuzz/template
+++ b/srcpkgs/gfuzz/template
@@ -12,3 +12,4 @@ license="Apache-2.0"
 homepage="https://github.com/braaaax/gfz"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=8b6a3df0c385fe993ead673df53daa290943220f2cde73e6b1c706ef94aa4e5f
+patch_args=-Np0
diff --git a/srcpkgs/git-mediate/template b/srcpkgs/git-mediate/template
index aa3979d3435a..7923a1743d95 100644
--- a/srcpkgs/git-mediate/template
+++ b/srcpkgs/git-mediate/template
@@ -13,3 +13,4 @@ distfiles="https://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-
 checksum=81220f7e20a3913bc147b69681666ad22e60e5b759a1becad78ee28dcad8013d
 nocross=yes
 nopie_files="/usr/bin/git-mediate"
+patch_args=-Np0
diff --git a/srcpkgs/gltron/template b/srcpkgs/gltron/template
index 1239a1742e5d..4aad84aeb45e 100644
--- a/srcpkgs/gltron/template
+++ b/srcpkgs/gltron/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://gltron.org/"
 distfiles="${SOURCEFORGE_SITE}/gltron/gltron-${version}-source.tar.gz"
 checksum="e0c8ebb41a18a1f8d7302a9c2cb466f5b1dd63e9a9966c769075e6b6bdad8bb0"
+patch_args=-Np0
diff --git a/srcpkgs/gnome-recipes/template b/srcpkgs/gnome-recipes/template
index 30f81ab265b6..847e736a4844 100644
--- a/srcpkgs/gnome-recipes/template
+++ b/srcpkgs/gnome-recipes/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Recipes"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=1be9d2fcb7404a97aa029d2409880643f15071c37039247a6a4320e7478cd5fb
+patch_args=-Np0
diff --git a/srcpkgs/gnupod/template b/srcpkgs/gnupod/template
index 09c35988a9d8..6515b87aa61b 100644
--- a/srcpkgs/gnupod/template
+++ b/srcpkgs/gnupod/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/gnupod/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tgz"
 checksum=bd566295a2e14352e6d05f5c816cab36b0e80d3ab36d29c4bbb45c581d3f3c31
+patch_args=-Np0
diff --git a/srcpkgs/gupnp-tools/template b/srcpkgs/gupnp-tools/template
index 09507922f46c..6c02534f0453 100644
--- a/srcpkgs/gupnp-tools/template
+++ b/srcpkgs/gupnp-tools/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://gupnp.org/"
 distfiles="${GNOME_SITE}/gupnp-tools/${version%.*}/gupnp-tools-${version}.tar.xz"
 checksum=41da7ff5ba8e2425adcb64ca5e04c81f57ca20ec6fdb84923939fdad42c6a18d
+patch_args=-Np0
diff --git a/srcpkgs/helm/template b/srcpkgs/helm/template
index e7d7b59c10b2..57ad3b36321a 100644
--- a/srcpkgs/helm/template
+++ b/srcpkgs/helm/template
@@ -13,3 +13,4 @@ homepage="http://tytel.org/helm"
 distfiles="https://github.com/mtytel/helm/archive/v${version}.tar.gz"
 checksum=4004c11fd1d773cc2a12adb5336873bc86c5ecbd370b8da2820fed6ef5ec58ad
 nocross="./lv2_ttl_generator: ./lv2_ttl_generator: cannot execute binary file"
+patch_args=-Np0
diff --git a/srcpkgs/html-xml-utils/template b/srcpkgs/html-xml-utils/template
index a2f0a8d6f528..ab69c1e16d33 100644
--- a/srcpkgs/html-xml-utils/template
+++ b/srcpkgs/html-xml-utils/template
@@ -10,3 +10,4 @@ license="W3C"
 homepage="https://www.w3.org/Tools/HTML-XML-utils/README"
 distfiles="https://www.w3.org/Tools/HTML-XML-utils/${pkgname}-${version}.tar.gz"
 checksum=d86ac96ea660316bef814c17b2a96d54cdf91c69e59614459865c2bfdaee433f
+patch_args=-Np0
diff --git a/srcpkgs/hxtools/template b/srcpkgs/hxtools/template
index 87be5bb16f1a..33a37ff0b971 100644
--- a/srcpkgs/hxtools/template
+++ b/srcpkgs/hxtools/template
@@ -12,3 +12,4 @@ homepage="http://inai.de/projects/hxtools"
 distfiles="http://inai.de/files/hxtools/hxtools-${version}.tar.xz"
 checksum=45ceee8db0b9b926712b336ebb91c572f2247cec64862f6171fc416db4e9e12f
 conflicts="bsd-games>=0"
+patch_args=-Np0
diff --git a/srcpkgs/icecast/template b/srcpkgs/icecast/template
index 920d6ffe9d31..b3fed3c37602 100644
--- a/srcpkgs/icecast/template
+++ b/srcpkgs/icecast/template
@@ -13,3 +13,4 @@ homepage="http://www.icecast.org/"
 distfiles="http://downloads.xiph.org/releases/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=49b5979f9f614140b6a38046154203ee28218d8fc549888596a683ad604e4d44
 conf_files="/etc/icecast.xml"
+patch_args=-Np0
diff --git a/srcpkgs/imagewriter/template b/srcpkgs/imagewriter/template
index cd4d3c9af695..197bc5476340 100644
--- a/srcpkgs/imagewriter/template
+++ b/srcpkgs/imagewriter/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/openSUSE/imagewriter"
 distfiles="https://github.com/openSUSE/imagewriter/archive/${_commit}.tar.gz"
 checksum=7761ee45b16b5841c6b62b091c7f9d0b8c64b14b79d77e9909ca813e1dc9885d
+patch_args=-Np0
diff --git a/srcpkgs/img2pdf/template b/srcpkgs/img2pdf/template
index 206bf3cbccc6..9b7cae086496 100644
--- a/srcpkgs/img2pdf/template
+++ b/srcpkgs/img2pdf/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.mister-muffin.de/josch/img2pdf"
 distfiles="${PYPI_SITE}/i/img2pdf/img2pdf-${version}.tar.gz"
 checksum=38a1229ca84b211d7782d1d65ad7251a9781bf24f6f6497c738c755fcfed5552
+patch_args=-Np0
diff --git a/srcpkgs/intel-undervolt/template b/srcpkgs/intel-undervolt/template
index d631eb2222a8..e9d1bf651d07 100644
--- a/srcpkgs/intel-undervolt/template
+++ b/srcpkgs/intel-undervolt/template
@@ -10,3 +10,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/kitsunyan/intel-undervolt"
 distfiles="https://github.com/kitsunyan/intel-undervolt/archive/${version}.tar.gz"
 checksum=29a7ebaee4830d65d0b5cefa6d497887d4f23f34659876dfe944f3a020cf33ff
+patch_args=-Np0
diff --git a/srcpkgs/intltool/template b/srcpkgs/intltool/template
index cfba730f2e67..b3b26d28aded 100644
--- a/srcpkgs/intltool/template
+++ b/srcpkgs/intltool/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://edge.launchpad.net/intltool"
 distfiles="http://launchpad.net/intltool/trunk/$version/+download/$pkgname-$version.tar.gz"
 checksum=67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd
+patch_args=-Np0
diff --git a/srcpkgs/io.elementary.photos/template b/srcpkgs/io.elementary.photos/template
index 81c1734164ba..a07e9b5a4912 100644
--- a/srcpkgs/io.elementary.photos/template
+++ b/srcpkgs/io.elementary.photos/template
@@ -20,3 +20,4 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/elementary/photos"
 distfiles="https://github.com/elementary/photos/archive/${version}.tar.gz"
 checksum=9f6ad409d053e3239b9ec7fc59429afe9ce89e40878697a73c2c3f215556a074
+patch_args=-Np0
diff --git a/srcpkgs/ipv6calc/template b/srcpkgs/ipv6calc/template
index fdeb909b06e9..7873da6a9847 100644
--- a/srcpkgs/ipv6calc/template
+++ b/srcpkgs/ipv6calc/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://www.deepspace6.net/projects/ipv6calc.html"
 distfiles="https://github.com/pbiering/ipv6calc/archive/${version}.tar.gz"
 checksum=db690da55a31db063f87af7731cf5c913d8622057fc6c9f66f879725b1540496
+patch_args=-Np0
diff --git a/srcpkgs/itstool/template b/srcpkgs/itstool/template
index 5618fa120fff..d83b9b2fe397 100644
--- a/srcpkgs/itstool/template
+++ b/srcpkgs/itstool/template
@@ -13,3 +13,4 @@ license="GPL-3.0-or-later"
 homepage="http://itstool.org/"
 distfiles="http://files.itstool.org/itstool/${pkgname}-${version}.tar.bz2"
 checksum=6233cc22726a9a5a83664bf67d1af79549a298c23185d926c3677afa917b92a9
+patch_args=-Np0
diff --git a/srcpkgs/iwgtk/template b/srcpkgs/iwgtk/template
index a9b23b80f0ca..a4461b5602a9 100644
--- a/srcpkgs/iwgtk/template
+++ b/srcpkgs/iwgtk/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/J-Lentz/iwgtk/"
 distfiles="https://github.com/J-Lentz/iwgtk/archive/refs/tags/v${version}.tar.gz"
 checksum=71bb85546a55bf710052d4947f6be5f5a01033d04d2d14a85a7e734dd570657d
+patch_args=-Np0
diff --git a/srcpkgs/jigdo/template b/srcpkgs/jigdo/template
index 16edbc817c8a..aff25631a6ff 100644
--- a/srcpkgs/jigdo/template
+++ b/srcpkgs/jigdo/template
@@ -12,3 +12,4 @@ license="GPL-2"
 homepage="http://atterer.org/jigdo/"
 distfiles="http://atterer.org/sites/atterer/files/2009-08/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum="875c069abad67ce67d032a9479228acdb37c8162236c0e768369505f264827f0"
+patch_args=-Np0
diff --git a/srcpkgs/k3b/template b/srcpkgs/k3b/template
index f02f12356d52..3ff3d73d1304 100644
--- a/srcpkgs/k3b/template
+++ b/srcpkgs/k3b/template
@@ -16,3 +16,4 @@ license="GPL-2.0-or-later"
 homepage="https://kde.org/applications/en/multimedia/org.kde.k3b"
 distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=986c5073c944dbda5b49e3c1a2fbf340fb1c6af941e80b6a0020fadd1be9034b
+patch_args=-Np0
diff --git a/srcpkgs/kcm-wacomtablet/template b/srcpkgs/kcm-wacomtablet/template
index 0e1234c6218b..926fc17457fe 100644
--- a/srcpkgs/kcm-wacomtablet/template
+++ b/srcpkgs/kcm-wacomtablet/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://invent.kde.org/system/wacomtablet"
 distfiles="${KDE_SITE}/wacomtablet/${version}/wacomtablet-${version}.tar.xz"
 checksum=c80ce63a41f6fcbb50ac4c2130ed2f8273c4b744e62e33d4b714bf83e8e5f7a4
+patch_args=-Np0
diff --git a/srcpkgs/kcov/template b/srcpkgs/kcov/template
index cb361bd65b1a..038549b26466 100644
--- a/srcpkgs/kcov/template
+++ b/srcpkgs/kcov/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://simonkagstrom.github.io/kcov/index.html"
 distfiles="https://github.com/SimonKagstrom/kcov/archive/v${version}.tar.gz"
 checksum=b37af60d81a9b1e3b140f9473bdcb7975af12040feb24cc666f9bb2bb0be68b4
+patch_args=-Np0
diff --git a/srcpkgs/keditbookmarks/template b/srcpkgs/keditbookmarks/template
index 51fe33866304..efc8fcb830e9 100644
--- a/srcpkgs/keditbookmarks/template
+++ b/srcpkgs/keditbookmarks/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later, GFDL-1.2-only"
 homepage="https://www.kde.org/"
 distfiles="${KDE_SITE}/release-service/${version}/src/keditbookmarks-${version}.tar.xz"
 checksum=a57eec8ff05b6a6fea5367b489f67d8de7483aaede4c39692c347da15ba9eec3
+patch_args=-Np0
diff --git a/srcpkgs/kig/template b/srcpkgs/kig/template
index 1431f85bde84..82957d1c25c8 100644
--- a/srcpkgs/kig/template
+++ b/srcpkgs/kig/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://www.kde.org/applications/education/kig/"
 distfiles="${KDE_SITE}/release-service/${version}/src/kig-${version}.tar.xz"
 checksum=5939d298b40d265f1ddef4bd81540b1a26204d858f85db5847cc102366a5ce58
+patch_args=-Np0
diff --git a/srcpkgs/krusader/template b/srcpkgs/krusader/template
index dbc7743a0dd8..93f8662bf8d5 100644
--- a/srcpkgs/krusader/template
+++ b/srcpkgs/krusader/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.krusader.org/"
 distfiles="${KDE_SITE}/krusader/${version}/krusader-${version}.tar.xz"
 checksum=41a39a43b3c42dd1d1ecaea86df30caff6a061fecc1d66f60859b2a3ca976109
+patch_args=-Np0
diff --git a/srcpkgs/ksysguard/template b/srcpkgs/ksysguard/template
index c276f9d7bbbc..23288bfb15fe 100644
--- a/srcpkgs/ksysguard/template
+++ b/srcpkgs/ksysguard/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later, GFDL-1.2-only"
 homepage="https://invent.kde.org/plasma/ksysguard"
 distfiles="${KDE_SITE}/ksysguard/${version}/${pkgname}-${version}.tar.xz"
 checksum=0f9c624e5fbb2aee906d8d9563c5a7eb09eaf38bc8e4382c072f9e6d8854622d
+patch_args=-Np0
diff --git a/srcpkgs/lbreakouthd/template b/srcpkgs/lbreakouthd/template
index 1f9accfb4ab9..c0025345fa9b 100644
--- a/srcpkgs/lbreakouthd/template
+++ b/srcpkgs/lbreakouthd/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://lgames.sourceforge.net/LBreakoutHD/"
 distfiles="${SOURCEFORGE_SITE}/lgames/$pkgname-$version.tar.gz"
 checksum=df5f8ad88bcf20bd34e1dfd77697b49a168d83ad43d8fdf5a3fee1fe272e15bd
+patch_args=-Np0
diff --git a/srcpkgs/lbzip2/template b/srcpkgs/lbzip2/template
index c6973fe171b5..3ac6ff9ec10a 100644
--- a/srcpkgs/lbzip2/template
+++ b/srcpkgs/lbzip2/template
@@ -9,3 +9,4 @@ license="GPL-3.0-or-later"
 homepage="http://lbzip2.org/"
 distfiles="http://archive.lbzip2.org/lbzip2-${version}.tar.gz"
 checksum=46c75ee93cc95eedc6005625442b2b8e59a2bef3ba80987d0491f055185650e9
+patch_args=-Np0
diff --git a/srcpkgs/lcov/template b/srcpkgs/lcov/template
index 2d23c19f0cc3..787296423df5 100644
--- a/srcpkgs/lcov/template
+++ b/srcpkgs/lcov/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://ltp.sourceforge.net/coverage/lcov.php"
 distfiles="https://github.com/linux-test-project/${pkgname}/archive/v${version}.tar.gz"
 checksum=d88b0718f59815862785ac379aed56974b9edd8037567347ae70081cd4a3542a
+patch_args=-Np0
diff --git a/srcpkgs/libeatmydata/template b/srcpkgs/libeatmydata/template
index 3334ca236d94..7470acc97fdd 100644
--- a/srcpkgs/libeatmydata/template
+++ b/srcpkgs/libeatmydata/template
@@ -9,3 +9,4 @@ license="GPL-3.0-only"
 homepage="http://www.flamingspork.com/projects/libeatmydata/"
 distfiles="http://www.flamingspork.com/projects/libeatmydata/${pkgname}-${version}.tar.gz"
 checksum=bdd2d068b6b27cf47cd22aa4c5da43b3d4a05944cfe0ad1b0d843d360ed3a8dd
+patch_args=-Np0
diff --git a/srcpkgs/libva-vdpau-driver/template b/srcpkgs/libva-vdpau-driver/template
index 391ba5296f4e..82104939cfdf 100644
--- a/srcpkgs/libva-vdpau-driver/template
+++ b/srcpkgs/libva-vdpau-driver/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="http://freedesktop.org/wiki/Software/vaapi"
 distfiles="${FREEDESKTOP_SITE}/vaapi/releases/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=155c1982f0ac3f5435ba20b221bcaa11be212c37db548cd1f2a030ffa17e9bb9
+patch_args=-Np0
diff --git a/srcpkgs/libwm/template b/srcpkgs/libwm/template
index df29afde53aa..e88e7eb4a5ed 100644
--- a/srcpkgs/libwm/template
+++ b/srcpkgs/libwm/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/wmutils/libwm"
 distfiles="https://github.com/wmutils/libwm/archive/v${version}.tar.gz"
 checksum=db80ef40d6b105f046c1d0bc138470b3e23e7bd1000afc3163d9e62f403f0f6a
+patch_args=-Np0
diff --git a/srcpkgs/lltag/template b/srcpkgs/lltag/template
index c540ae3ddef8..565369c9a986 100644
--- a/srcpkgs/lltag/template
+++ b/srcpkgs/lltag/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="http://bgoglin.free.fr/lltag/"
 distfiles="https://github.com/bgoglin/lltag/archive/lltag-${version}.tar.gz"
 checksum=e24c88866d89f90c11bcf89d9d1b4e8af78f486f1f7454a28210b10b8af17252
+patch_args=-Np0
diff --git a/srcpkgs/lrzsz/template b/srcpkgs/lrzsz/template
index e90aaeba3a21..98b4e7fb1c30 100644
--- a/srcpkgs/lrzsz/template
+++ b/srcpkgs/lrzsz/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://ohse.de/uwe/software/lrzsz.html"
 distfiles="http://ohse.de/uwe/releases/$pkgname-$version.tar.gz"
 checksum=c28b36b14bddb014d9e9c97c52459852f97bd405f89113f30bee45ed92728ff1
+patch_args=-Np0
diff --git a/srcpkgs/macchanger/template b/srcpkgs/macchanger/template
index 9af205a0d0f4..3d4402e208bf 100644
--- a/srcpkgs/macchanger/template
+++ b/srcpkgs/macchanger/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/macchanger"
 distfiles="https://github.com/alobbs/macchanger/archive/${version}.tar.gz"
 checksum=1d75c07a626321e07b48a5fe2dbefbdb98c3038bb8230923ba8d32bda5726e4f
+patch_args=-Np0
diff --git a/srcpkgs/mate-power-manager/template b/srcpkgs/mate-power-manager/template
index 4f2f7d77c8f1..c1afcc458a43 100644
--- a/srcpkgs/mate-power-manager/template
+++ b/srcpkgs/mate-power-manager/template
@@ -15,3 +15,4 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=d24b9fce23b086817d5494f7e65e58f18367af6eb5d0d4ade45de5396e20d13a
+patch_args=-Np0
diff --git a/srcpkgs/mcomix/template b/srcpkgs/mcomix/template
index c413e5e00288..5557136c1ace 100644
--- a/srcpkgs/mcomix/template
+++ b/srcpkgs/mcomix/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="http://sourceforge.net/projects/mcomix/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/MComix-${version}/${pkgname}-${version}.tar.bz2"
 checksum=7e43159dc585bc9bc31970a44bd2b4e42c303660c4c8cf7f0eda413a6f72fa3b
+patch_args=-Np0
diff --git a/srcpkgs/mftrace/template b/srcpkgs/mftrace/template
index 10f2c1ecfdc1..09ee52a11a3e 100644
--- a/srcpkgs/mftrace/template
+++ b/srcpkgs/mftrace/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://lilypond.org/mftrace"
 distfiles="http://lilypond.org/downloads/sources/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=626b7a9945a768c086195ba392632a68d6af5ea24ef525dcd0a4a8b199ea5f6f
+patch_args=-Np0
diff --git a/srcpkgs/nm-tray/template b/srcpkgs/nm-tray/template
index b2a3e85cf57e..2acc4a68f434 100644
--- a/srcpkgs/nm-tray/template
+++ b/srcpkgs/nm-tray/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/palinek/nm-tray"
 distfiles="https://github.com/palinek/nm-tray/archive/${version}.tar.gz"
 checksum=1611c053582189091efa74c2f26277afc872a57cfd4ec9e54463f68c25ad284b
+patch_args=-Np0
diff --git a/srcpkgs/nootka/template b/srcpkgs/nootka/template
index 8726ab984e8c..3ee39181a314 100644
--- a/srcpkgs/nootka/template
+++ b/srcpkgs/nootka/template
@@ -12,3 +12,4 @@ license="GPL-3.0-only"
 homepage="https://nootka.sourceforge.io"
 distfiles="${SOURCEFORGE_SITE}/nootka/Nootka-${version}/nootka-${version}-source.tar.bz2"
 checksum=1d85a2970ddb51117b0a98df4d84ca9e9498fbd1d2b1c55bfa62931333a73cf9
+patch_args=-Np0
diff --git a/srcpkgs/olive/template b/srcpkgs/olive/template
index 11468a8b04cf..c001284d41d0 100644
--- a/srcpkgs/olive/template
+++ b/srcpkgs/olive/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://www.olivevideoeditor.org"
 distfiles="https://github.com/olive-editor/olive/archive/${version}.tar.gz"
 checksum=cb9a5b109e67a47f03448633cbc7a257aa8e6c3c76a59c1fada77fd3d97875c1
+patch_args=-Np0
diff --git a/srcpkgs/pam_rundir/template b/srcpkgs/pam_rundir/template
index f08238ddb5fd..578d660bf4c1 100644
--- a/srcpkgs/pam_rundir/template
+++ b/srcpkgs/pam_rundir/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://jjacky.com/pam_rundir"
 distfiles="https://jjacky.com/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c779b699ed23777a3bdba87b7f67ed395fe957f3c96138faee45f87a27bcc020
+patch_args=-Np0
diff --git a/srcpkgs/pdfgrep/template b/srcpkgs/pdfgrep/template
index 20fe67c72035..b7270c1af890 100644
--- a/srcpkgs/pdfgrep/template
+++ b/srcpkgs/pdfgrep/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://pdfgrep.org"
 distfiles="https://pdfgrep.org/download/pdfgrep-${version}.tar.gz"
 checksum=0ef3dca1d749323f08112ffe68e6f4eb7bc25f56f90a2e933db477261b082aba
+patch_args=-Np0
diff --git a/srcpkgs/pdfsandwich/template b/srcpkgs/pdfsandwich/template
index 67c1a011ba78..37d4290fef56 100644
--- a/srcpkgs/pdfsandwich/template
+++ b/srcpkgs/pdfsandwich/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://www.tobias-elze.de/pdfsandwich/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=9795ffea84b9b6b501f38d49a4620cf0469ddf15aac31bac6dbdc9ec1716fa39
+patch_args=-Np0
diff --git a/srcpkgs/pekwm/template b/srcpkgs/pekwm/template
index 367691f8cb7d..908b9f20e31c 100644
--- a/srcpkgs/pekwm/template
+++ b/srcpkgs/pekwm/template
@@ -15,3 +15,4 @@ homepage="https://www.pekwm.se/"
 distfiles="https://github.com/pekdon/pekwm/archive/release-${version}.tar.gz"
 checksum=e04e14ab7b212ec7c3a36e4c24b6228383df4ca3768f9fea7ba22dcd107d5d5a
 conf_files="/etc/pekwm/*"
+patch_args=-Np0
diff --git a/srcpkgs/perl-Authen-SASL/template b/srcpkgs/perl-Authen-SASL/template
index c9aea8eb9587..66b079daaa30 100644
--- a/srcpkgs/perl-Authen-SASL/template
+++ b/srcpkgs/perl-Authen-SASL/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/Authen-SASL"
 distfiles="${CPAN_SITE}/Authen/${pkgname/perl-/}-${version}.tar.gz"
 checksum=6614fa7518f094f853741b63c73f3627168c5d3aca89b1d02b1016dc32854e09
+patch_args=-Np0
diff --git a/srcpkgs/perl-Crypt-DH/template b/srcpkgs/perl-Crypt-DH/template
index 95fe7e66836a..d4fc6f20a4c5 100644
--- a/srcpkgs/perl-Crypt-DH/template
+++ b/srcpkgs/perl-Crypt-DH/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/Crypt-DH"
 distfiles="${CPAN_SITE}/Crypt/Crypt-DH-${version}.tar.gz"
 checksum=c88cf3423b01e6782e8986d7fe5304436ab84b0925c4498c6fdfa17ef9a37f5f
+patch_args=-Np0
diff --git a/srcpkgs/perl-Crypt-Rijndael/template b/srcpkgs/perl-Crypt-Rijndael/template
index 5154d035b35c..a2c97d0d4ce9 100644
--- a/srcpkgs/perl-Crypt-Rijndael/template
+++ b/srcpkgs/perl-Crypt-Rijndael/template
@@ -13,3 +13,4 @@ license="LGPL-2.0-or-later"
 homepage="https://metacpan.org/release/Crypt-Rijndael"
 distfiles="${CPAN_SITE}/Crypt/Crypt-Rijndael-${version}.tar.gz"
 checksum=6451c3dffe8703523be2bb08d1adca97e77df2a8a4dd46944d18a99330b7850e
+patch_args=-Np0
diff --git a/srcpkgs/perl-Fuse/template b/srcpkgs/perl-Fuse/template
index 9793fbb001fb..3fb06c90e33b 100644
--- a/srcpkgs/perl-Fuse/template
+++ b/srcpkgs/perl-Fuse/template
@@ -13,3 +13,4 @@ license="LGPL-2.1-only"
 homepage="https://metacpan.org/release/Fuse"
 distfiles="${CPAN_SITE}/Fuse/Fuse-$version.tar.gz"
 checksum=30a939fe5816b00ba9cabb6cd811f894e6a74361ce29d786ae1811b0021d7aa1
+patch_args=-Np0
diff --git a/srcpkgs/perl-OpenGL/template b/srcpkgs/perl-OpenGL/template
index 31c5362852db..3628d85f23e0 100644
--- a/srcpkgs/perl-OpenGL/template
+++ b/srcpkgs/perl-OpenGL/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/OpenGL"
 distfiles="${CPAN_SITE}/OpenGL/${pkgname#perl-}-${version}.tar.gz"
 checksum=b20e2af4404b4901ab35bba6ad5e3a8aa60bff72413c99288f01018c4cf874e0
+patch_args=-Np0
diff --git a/srcpkgs/perl-XML-LibXSLT/template b/srcpkgs/perl-XML-LibXSLT/template
index 24fa3f44b1b5..2b6eecc07722 100644
--- a/srcpkgs/perl-XML-LibXSLT/template
+++ b/srcpkgs/perl-XML-LibXSLT/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/XML-LibXSLT/"
 distfiles="${CPAN_SITE}/XML/${pkgname/perl-/}-${version}.tar.gz"
 checksum=127e17a877fb61e47b9e8b87bf8daad31339a62a00121f9751d522b438b0f7f0
+patch_args=-Np0
diff --git a/srcpkgs/perl-XML-SAX/template b/srcpkgs/perl-XML-SAX/template
index d72f1eac7e8f..445c4c6e20ff 100644
--- a/srcpkgs/perl-XML-SAX/template
+++ b/srcpkgs/perl-XML-SAX/template
@@ -13,3 +13,4 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/XML-SAX"
 distfiles="${CPAN_SITE}/XML/XML-SAX-${version}.tar.gz"
 checksum=4506c387043aa6a77b455f00f57409f3720aa7e553495ab2535263b4ed1ea12a
+patch_args=-Np0
diff --git a/srcpkgs/pidgin-gpg/template b/srcpkgs/pidgin-gpg/template
index 2442f04ea12f..b67e21ce24f0 100644
--- a/srcpkgs/pidgin-gpg/template
+++ b/srcpkgs/pidgin-gpg/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://github.com/segler-alex/Pidgin-GPG"
 distfiles="http://github.com/downloads/segler-alex/Pidgin-GPG/${pkgname}-${version}.tar.gz"
 checksum=736681cb25da31eb8ced96055d4150d649fe6ef6e523b6f65846c3446ac09a96
+patch_args=-Np0
diff --git a/srcpkgs/pidgin-sipe/template b/srcpkgs/pidgin-sipe/template
index 9ea248618f43..d9bead87f864 100644
--- a/srcpkgs/pidgin-sipe/template
+++ b/srcpkgs/pidgin-sipe/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="http://sipe.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/sipe/sipe/${pkgname}-${version}.tar.xz"
 checksum=738b121b11f2b3f1744150c00cb381222eb6cf67161a7742797eb4f03e64a2ba
+patch_args=-Np0
diff --git a/srcpkgs/plasma-desktop/template b/srcpkgs/plasma-desktop/template
index 4ec04abb501c..eeaf614bca95 100644
--- a/srcpkgs/plasma-desktop/template
+++ b/srcpkgs/plasma-desktop/template
@@ -21,3 +21,4 @@ distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=9be7d61a042b5d74c1a65ecc8101c81390d45c2fec766b5115d5924b5dac0972
 replaces="user-manager>=0"
 python_version=3
+patch_args=-Np0
diff --git a/srcpkgs/pokoy/template b/srcpkgs/pokoy/template
index 490067f7d9ff..f66ffc35c3fd 100644
--- a/srcpkgs/pokoy/template
+++ b/srcpkgs/pokoy/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://github.com/ttygde/pokoy"
 distfiles="https://github.com/ttygde/pokoy/archive/v${version}.tar.gz"
 checksum=ae3ee5935e503d1f48f7fc8e4df2071e9d4586a52dfe778ef643deb28ca6a22f
+patch_args=-Np0
diff --git a/srcpkgs/polkit-kde-agent/template b/srcpkgs/polkit-kde-agent/template
index a9182b185f1a..2d383314caa9 100644
--- a/srcpkgs/polkit-kde-agent/template
+++ b/srcpkgs/polkit-kde-agent/template
@@ -14,3 +14,4 @@ license="GPL-2.0-or-later"
 homepage="https://commits.kde.org/polkit-kde-agent"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-1-${version}.tar.xz"
 checksum=de9a6f1bdf434d013a8d6f0c1498257bc4a48349e652375b4dd036eb161214ee
+patch_args=-Np0
diff --git a/srcpkgs/posixovl/template b/srcpkgs/posixovl/template
index 1146191fcf82..221b61c832b3 100644
--- a/srcpkgs/posixovl/template
+++ b/srcpkgs/posixovl/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/posixovl/"
 distfiles="${SOURCEFORGE_SITE}/posixovl/files/${pkgname}-${version}.tar.xz"
 checksum=a827798b02c0f27b37d8a10502e76c21adac43b887a49e7234e8d27668f62e72
+patch_args=-Np0
diff --git a/srcpkgs/powertop/template b/srcpkgs/powertop/template
index d0841935e7f4..2c9c25319c65 100644
--- a/srcpkgs/powertop/template
+++ b/srcpkgs/powertop/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://01.org/powertop/"
 distfiles="https://01.org/sites/default/files/downloads/powertop-${version}.tar.gz"
 checksum=a65f992ca4a419bc73b623651060eb9fc00c5a86fa03556358cd9db011ef3178
+patch_args=-Np0
diff --git a/srcpkgs/python3-orocos-kdl/template b/srcpkgs/python3-orocos-kdl/template
index 281ea8978c5f..d27ab90a9b7a 100644
--- a/srcpkgs/python3-orocos-kdl/template
+++ b/srcpkgs/python3-orocos-kdl/template
@@ -15,3 +15,4 @@ license="LGPL-2.1-only"
 homepage="http://www.orocos.org/kdl"
 distfiles="https://github.com/orocos/orocos_kinematics_dynamics/archive/v${version}.tar.gz"
 checksum=05b93e759923684dc07433ccae1e476d158d89b3c2be5079c20062406da7b4dd
+patch_args=-Np0
diff --git a/srcpkgs/python3-pykeepass/template b/srcpkgs/python3-pykeepass/template
index dc3fe59fa411..7223950538bc 100644
--- a/srcpkgs/python3-pykeepass/template
+++ b/srcpkgs/python3-pykeepass/template
@@ -15,3 +15,4 @@ homepage="https://github.com/libkeepass/pykeepass"
 changelog="https://raw.githubusercontent.com/libkeepass/pykeepass/master/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/p/pykeepass/pykeepass-${version}.tar.gz"
 checksum=b3e07eb2dd3aeb1dfa1a2d2d17be77066ee560c1e770f1c72d7ea5608117d284
+patch_args=-Np0
diff --git a/srcpkgs/python3-transifex-client/template b/srcpkgs/python3-transifex-client/template
index e34c310c0a85..c71fd7a32338 100644
--- a/srcpkgs/python3-transifex-client/template
+++ b/srcpkgs/python3-transifex-client/template
@@ -13,3 +13,4 @@ license="GPL-2.0-only"
 homepage="https://www.transifex.com"
 distfiles="https://github.com/transifex/transifex-client/archive/${version}.tar.gz"
 checksum=460f3a829e57b8025280e03a6ad497a87beba142adb2e1579678227f49d4a9ab
+patch_args=-Np0
diff --git a/srcpkgs/python3-yara/template b/srcpkgs/python3-yara/template
index d3c42f7fa06f..359edc090a5b 100644
--- a/srcpkgs/python3-yara/template
+++ b/srcpkgs/python3-yara/template
@@ -13,3 +13,4 @@ license="Apache-2.0"
 homepage="http://virustotal.github.io/yara/"
 distfiles="https://github.com/VirusTotal/yara-python/archive/v${version}.tar.gz"
 checksum=4bc1a69bc9c5f70419806e15a05123a7879456b52a9c50832c34c22eecb4de81
+patch_args=-Np0
diff --git a/srcpkgs/qmltermwidget/template b/srcpkgs/qmltermwidget/template
index 8a5b2fa230eb..a770f2f1fd29 100644
--- a/srcpkgs/qmltermwidget/template
+++ b/srcpkgs/qmltermwidget/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/Swordfish90/qmltermwidget"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=23e19eedb59d6fe3e37ecc06872f54befd94384946926e009c42c4b39914cfe2
+patch_args=-Np0
diff --git a/srcpkgs/qomui/template b/srcpkgs/qomui/template
index b74138381bef..73235d778f87 100644
--- a/srcpkgs/qomui/template
+++ b/srcpkgs/qomui/template
@@ -15,3 +15,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/corrad1nho/qomui"
 distfiles="https://github.com/corrad1nho/qomui/archive/v${version}.tar.gz"
 checksum=78187864a4368fed06f6e58c4d411053a1d1193d625ee79be0a57bf0938b1d0b
+patch_args=-Np0
diff --git a/srcpkgs/qtcurve/template b/srcpkgs/qtcurve/template
index 19a4d792d66f..7f98001a6e91 100644
--- a/srcpkgs/qtcurve/template
+++ b/srcpkgs/qtcurve/template
@@ -16,3 +16,4 @@ homepage="https://quickgit.kde.org/?p=qtcurve.git"
 distfiles="https://github.com/KDE/qtcurve/archive/${version}.tar.gz"
 checksum=fbfdafdac90d4c540dd55a4accfecfc3a17c1f532c5241e28003348beafaca15
 nocross="tries to execute a helper binary compiled for target on the host"
+patch_args=-Np0
diff --git a/srcpkgs/qtfm/template b/srcpkgs/qtfm/template
index f2c8e889e6c3..5013481bb259 100644
--- a/srcpkgs/qtfm/template
+++ b/srcpkgs/qtfm/template
@@ -14,3 +14,4 @@ homepage="https://github.com/rodlie/qtfm"
 changelog="https://raw.githubusercontent.com/rodlie/qtfm/master/ChangeLog"
 distfiles="https://github.com/rodlie/qtfm/archive/${version}.tar.gz"
 checksum=b9c707443e20644f6e5f0393ce5158843724ac08f92cf8d7ea8e1109957b5c00
+patch_args=-Np0
diff --git a/srcpkgs/recoll/template b/srcpkgs/recoll/template
index 8c5de6966a46..1f83b2715db2 100644
--- a/srcpkgs/recoll/template
+++ b/srcpkgs/recoll/template
@@ -16,3 +16,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.lesbonscomptes.com/recoll/"
 distfiles="https://www.lesbonscomptes.com/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=17a8e684a8d5560dc7b44cd4b2962cb46476a75bdc107f622051235076d11885
+patch_args=-Np0
diff --git a/srcpkgs/recordmydesktop/template b/srcpkgs/recordmydesktop/template
index eb509e5efd4a..b460f1355e4a 100644
--- a/srcpkgs/recordmydesktop/template
+++ b/srcpkgs/recordmydesktop/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://recordmydesktop.sourceforge.net/about.php"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=33a2e208186ae78e2db2a27b0f5047b50fb7819c47fe15483b0765200b9d738c
+patch_args=-Np0
diff --git a/srcpkgs/rofs-filtered/template b/srcpkgs/rofs-filtered/template
index 2bb8a2304312..3ad1be74b367 100644
--- a/srcpkgs/rofs-filtered/template
+++ b/srcpkgs/rofs-filtered/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/gburca/rofs-filtered"
 distfiles="https://github.com/gburca/rofs-filtered/archive/rel-${version}.tar.gz"
 checksum=d66066dfd0274a2fb7b71dd929445377dd23100b9fa43e3888dbe3fc7e8228e8
+patch_args=-Np0
diff --git a/srcpkgs/sasm/template b/srcpkgs/sasm/template
index 3c624065b5de..a3a705648cdf 100644
--- a/srcpkgs/sasm/template
+++ b/srcpkgs/sasm/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="http://dman95.github.io/SASM/"
 distfiles="https://github.com/Dman95/SASM/archive/v${version}.tar.gz"
 checksum=2c551d4a04f2e11f000eb1716885a646110305f8f2892d1a7761c0d4670d19a0
+patch_args=-Np0
diff --git a/srcpkgs/scribus/template b/srcpkgs/scribus/template
index 0898252efc43..00685dfba6a0 100644
--- a/srcpkgs/scribus/template
+++ b/srcpkgs/scribus/template
@@ -19,3 +19,4 @@ homepage="https://scribus.net"
 distfiles="$SOURCEFORGE_SITE/scribus/scribus-devel/${version}/scribus-${version}.tar.xz"
 checksum=318316b2cfc7a76191d3e0d3f8c2265147daea0570162028e243c292d826f8ce
 python_version=3
+patch_args=-Np0
diff --git a/srcpkgs/seahorse-nautilus/template b/srcpkgs/seahorse-nautilus/template
index 04424cc4acdb..c468cc13836f 100644
--- a/srcpkgs/seahorse-nautilus/template
+++ b/srcpkgs/seahorse-nautilus/template
@@ -15,3 +15,4 @@ homepage="http://www.gnome.org/projects/seahorse/"
 distfiles="${GNOME_SITE}/seahorse-nautilus/${version%.*}/seahorse-nautilus-${version}.tar.xz"
 checksum=eacaf33bba920cf117641393a6eef483dbc075009349082e77d22f79afbd823a
 lib32disabled=yes
+patch_args=-Np0
diff --git a/srcpkgs/seq2gif/template b/srcpkgs/seq2gif/template
index 8146d539a284..63ba990a96cf 100644
--- a/srcpkgs/seq2gif/template
+++ b/srcpkgs/seq2gif/template
@@ -9,3 +9,4 @@ license="GPL-3.0-or-later"
 homepage="http://saitoha.github.io/seq2gif/"
 distfiles="https://github.com/saitoha/seq2gif/archive/v${version}.tar.gz"
 checksum=738805bf8eb7ee5171ded7f43326cca7caecb77031283720f97253c234261f29
+patch_args=-Np0
diff --git a/srcpkgs/sgfutils/template b/srcpkgs/sgfutils/template
index 67980c8d32fb..1ad41f0ea177 100644
--- a/srcpkgs/sgfutils/template
+++ b/srcpkgs/sgfutils/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://www.cwi.nl/~aeb/go/sgfutils/html/"
 distfiles="https://homepages.cwi.nl/~aeb/go/${pkgname}/${pkgname}.tgz"
 checksum=4b26b321fbe255722f1d7e57233614da89a4da5bab031ae4ef7118ae3c7436a2
+patch_args=-Np0
diff --git a/srcpkgs/sidplayfp/template b/srcpkgs/sidplayfp/template
index c98648586c91..f63c893694a0 100644
--- a/srcpkgs/sidplayfp/template
+++ b/srcpkgs/sidplayfp/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/sidplay-residfp/"
 distfiles="${SOURCEFORGE_SITE}/sidplay-residfp/${pkgname}/${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=1c9dd519c39f7c811c33a7b8f516f33c36b36d29af6075316a7ec7320f9d9155
+patch_args=-Np0
diff --git a/srcpkgs/smbnetfs/template b/srcpkgs/smbnetfs/template
index 12806eaaa37d..bc89fbc198b1 100644
--- a/srcpkgs/smbnetfs/template
+++ b/srcpkgs/smbnetfs/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="http://smbnetfs.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=eac37b9769fbe9c3f4baf3eb64c61a6b59ad4f2aa05dfddcba5a1ac4adf4d560
+patch_args=-Np0
diff --git a/srcpkgs/solvespace/template b/srcpkgs/solvespace/template
index 377c0e4cbd15..c191a028aedc 100644
--- a/srcpkgs/solvespace/template
+++ b/srcpkgs/solvespace/template
@@ -13,3 +13,4 @@ homepage="https://solvespace.com/index.pl"
 distfiles="https://github.com/solvespace/solvespace/releases/download/v${version}/solvespace-source.tar.gz"
 checksum=0be0b2100c0b01eddded2a4dc60455d61cf67816189905af0e73082bfef96000
 nocross="https://travis-ci.org/bobertlo/void-packages/jobs/487251265"
+patch_args=-Np0
diff --git a/srcpkgs/sonata/template b/srcpkgs/sonata/template
index f4456abd175d..ea07e0620a62 100644
--- a/srcpkgs/sonata/template
+++ b/srcpkgs/sonata/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="http://www.nongnu.org/sonata/"
 distfiles="https://github.com/multani/sonata/archive/v${version}.tar.gz"
 checksum=401f6b796ca3cc176813b9f1639741a3fd226499c7ab25bbc740778ebb15f81d
+patch_args=-Np0
diff --git a/srcpkgs/stellarium/template b/srcpkgs/stellarium/template
index 188f87a3d397..f7f61f7f2e90 100644
--- a/srcpkgs/stellarium/template
+++ b/srcpkgs/stellarium/template
@@ -14,3 +14,4 @@ homepage="https://stellarium.org/"
 distfiles="https://github.com/Stellarium/stellarium/releases/download/v${version}/stellarium-${version}.tar.gz"
 checksum=977fcd6776a47d34b1646727853d15968a1410c34c8ba1b3e5cfbf24b5126f13
 replaces="stellarium-data>=0"
+patch_args=-Np0
diff --git a/srcpkgs/streamripper/template b/srcpkgs/streamripper/template
index 8530d816be12..d08ed26d3a49 100644
--- a/srcpkgs/streamripper/template
+++ b/srcpkgs/streamripper/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://streamripper.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=c1d75f2e9c7b38fd4695be66eff4533395248132f3cc61f375196403c4d8de42
+patch_args=-Np0
diff --git a/srcpkgs/stress-ng/template b/srcpkgs/stress-ng/template
index 97cfd9cf39c8..5610d73a24ce 100644
--- a/srcpkgs/stress-ng/template
+++ b/srcpkgs/stress-ng/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://kernel.ubuntu.com/~cking/stress-ng/"
 distfiles="http://kernel.ubuntu.com/~cking/tarballs/stress-ng/${pkgname}-${version}.tar.xz"
 checksum=bd167b6559fa8a28680371b1defd3ffe2344eb550129d58dd7d5e2d568f2786e
+patch_args=-Np0
diff --git a/srcpkgs/swell-foop/template b/srcpkgs/swell-foop/template
index afb8dd466c3e..45a2532e3c19 100644
--- a/srcpkgs/swell-foop/template
+++ b/srcpkgs/swell-foop/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Swell%20Foop"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=61c6b6ff9047c00bdc0dbe11a880058a5462921c702123a2d6d1a652bbbe6280
+patch_args=-Np0
diff --git a/srcpkgs/switchboard-plug-printers/template b/srcpkgs/switchboard-plug-printers/template
index caecd10c886c..76c235fbda57 100644
--- a/srcpkgs/switchboard-plug-printers/template
+++ b/srcpkgs/switchboard-plug-printers/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/elementary/${pkgname}"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=fe2c748e3737c3304ea8613d43d5ba8596f95499a65b8d13f93c4f702901f442
+patch_args=-Np0
diff --git a/srcpkgs/telepathy-haze/template b/srcpkgs/telepathy-haze/template
index 60b65b83eced..36f0c56c702f 100644
--- a/srcpkgs/telepathy-haze/template
+++ b/srcpkgs/telepathy-haze/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://telepathy.freedesktop.org"
 distfiles="${homepage}/releases/$pkgname/$pkgname-$version.tar.gz"
 checksum=3e76049c05f2cd5900c5c0c1cfebdf7ae79eec987a599f1090946673c5b8f9c9
+patch_args=-Np0
diff --git a/srcpkgs/tellico/template b/srcpkgs/tellico/template
index d20e33769d9a..aaf6a88cb14b 100644
--- a/srcpkgs/tellico/template
+++ b/srcpkgs/tellico/template
@@ -27,3 +27,4 @@ desc_option_xmp="Support for reading PDF/XMP metadata"
 desc_option_yaz="Support for searching z39.50 databases"
 desc_option_cddb="Support for CDDB searches"
 desc_option_scanner="Support for adding scanned images to a collection"
+patch_args=-Np0
diff --git a/srcpkgs/texmaker/template b/srcpkgs/texmaker/template
index bd07f0b84ce0..91035c31d4b9 100644
--- a/srcpkgs/texmaker/template
+++ b/srcpkgs/texmaker/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://www.xm1math.net/texmaker/index.html"
 distfiles="http://www.xm1math.net/$pkgname/$pkgname-$version.tar.bz2"
 checksum=1de3ab3f6d6bee37a7d0b528ca1cbb7ce8e7aef5ec6a4405aff2caf9d12bd0e2
+patch_args=-Np0
diff --git a/srcpkgs/tmfs/template b/srcpkgs/tmfs/template
index 1dbed3e0eb72..65c541ebb044 100644
--- a/srcpkgs/tmfs/template
+++ b/srcpkgs/tmfs/template
@@ -14,3 +14,4 @@ checksum="897ad09e21ddd8e912dc1baba4466d8a65a09b3abdeb31e4640c2d770915f2f4"
 post_install() {
 	vlicense LICENSE
 }
+patch_args=-Np0
diff --git a/srcpkgs/trackballs/template b/srcpkgs/trackballs/template
index 4fe2df36d959..8f52f522c4ca 100644
--- a/srcpkgs/trackballs/template
+++ b/srcpkgs/trackballs/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="https://trackballs.github.io/"
 distfiles="https://github.com/trackballs/trackballs/archive/v${version}.tar.gz"
 checksum=fd4c3e4860db8ca6e8e7ad870a5973d51323a77ed8d7b40d859d9b277c53fc02
+patch_args=-Np0
diff --git a/srcpkgs/tremc/template b/srcpkgs/tremc/template
index 227ca61dc2c5..ca00423bc7b0 100644
--- a/srcpkgs/tremc/template
+++ b/srcpkgs/tremc/template
@@ -10,3 +10,4 @@ license="GPL-3.0-only"
 homepage="https://github.com/tremc/tremc"
 distfiles="https://github.com/tremc/tremc/archive/${version}.tar.gz"
 checksum=ea31ff593c64bbf2c471f6c45ef09129e1e9cb55e8f8bd90e2916976a7053c61
+patch_args=-Np0
diff --git a/srcpkgs/ttfautohint/template b/srcpkgs/ttfautohint/template
index 6096ec06eb44..ee71bc04a032 100644
--- a/srcpkgs/ttfautohint/template
+++ b/srcpkgs/ttfautohint/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="https://www.freetype.org/ttfautohint/"
 distfiles="http://download.savannah.gnu.org/releases/freetype/ttfautohint-${version}.tar.gz"
 checksum=87bb4932571ad57536a7cc20b31fd15bc68cb5429977eb43d903fa61617cf87e
+patch_args=-Np0
diff --git a/srcpkgs/tworld/template b/srcpkgs/tworld/template
index bc9f0faeb8fc..53238ac4dcd9 100644
--- a/srcpkgs/tworld/template
+++ b/srcpkgs/tworld/template
@@ -10,3 +10,4 @@ license="GPL-2.0-only"
 homepage="http://www.muppetlabs.com/~breadbox/software/tworld/"
 distfiles="http://www.muppetlabs.com/~breadbox/pub/software/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=472fce08de124d965cccb20070b0be2b8b4c5ad717fc5ece32828baacd46d861
+patch_args=-Np0
diff --git a/srcpkgs/ucl/template b/srcpkgs/ucl/template
index fa5dc492fae7..3c62edf1d412 100644
--- a/srcpkgs/ucl/template
+++ b/srcpkgs/ucl/template
@@ -10,3 +10,4 @@ homepage="http://www.oberhumer.com/opensource/ucl/"
 distfiles="http://www.oberhumer.com/opensource/ucl/download/ucl-${version}.tar.gz"
 checksum=b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348
 conflicts="libucl-devel>=0"
+patch_args=-Np0
diff --git a/srcpkgs/uhubctl/template b/srcpkgs/uhubctl/template
index 748b10a9b32a..7b8416384177 100644
--- a/srcpkgs/uhubctl/template
+++ b/srcpkgs/uhubctl/template
@@ -11,3 +11,4 @@ license="GPL-2.0-only"
 homepage="https://github.com/mvp/uhubctl"
 distfiles="https://github.com/mvp/uhubctl/archive/v${version}.tar.gz"
 checksum=227fdd541067b84eaa0e15cdc171458a56de7591f7a1deaff3e6d42d2809450b
+patch_args=-Np0
diff --git a/srcpkgs/usb-modeswitch-data/template b/srcpkgs/usb-modeswitch-data/template
index 6412b7035a85..4da5049e3ced 100644
--- a/srcpkgs/usb-modeswitch-data/template
+++ b/srcpkgs/usb-modeswitch-data/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="http://www.draisberghof.de/usb_modeswitch/"
 distfiles="http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${version}.tar.bz2"
 checksum=3f039b60791c21c7cb15c7986cac89650f076dc274798fa242231b910785eaf9
+patch_args=-Np0
diff --git a/srcpkgs/usb-modeswitch/template b/srcpkgs/usb-modeswitch/template
index 475c1695fab1..f38c8b46cdb8 100644
--- a/srcpkgs/usb-modeswitch/template
+++ b/srcpkgs/usb-modeswitch/template
@@ -14,3 +14,4 @@ license="GPL-2"
 homepage="http://www.draisberghof.de/usb_modeswitch/"
 distfiles="http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-${version}.tar.bz2"
 checksum=c215236e6bada6e659fc195a31d611ea298a4bdb4d57a0d68c553b56585f8ba3
+patch_args=-Np0
diff --git a/srcpkgs/valabind/template b/srcpkgs/valabind/template
index d2af2f9be152..c29263464e53 100644
--- a/srcpkgs/valabind/template
+++ b/srcpkgs/valabind/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://radare.org/r/"
 distfiles="https://github.com/radare/valabind/archive/${version}.tar.gz"
 checksum=643c1ddc85e31de975df361a20e3f39d385f5ced0e50483c6e96b33bb3d32261
+patch_args=-Np0
diff --git a/srcpkgs/vba-m/template b/srcpkgs/vba-m/template
index 8e6447f5c6f5..270df8dee158 100644
--- a/srcpkgs/vba-m/template
+++ b/srcpkgs/vba-m/template
@@ -16,3 +16,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/visualboyadvance-m/visualboyadvance-m/"
 distfiles="https://github.com/visualboyadvance-m/visualboyadvance-m/archive/v${version}.tar.gz"
 checksum=8342e017212842de66b0d86bc7610c82349af2d4e59951d969a33fff956c39ba
+patch_args=-Np0
diff --git a/srcpkgs/wdisplays/template b/srcpkgs/wdisplays/template
index 6378c2a118c1..fc2ff5f563d9 100644
--- a/srcpkgs/wdisplays/template
+++ b/srcpkgs/wdisplays/template
@@ -11,3 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://cyclopsian.github.io/wdisplays/"
 distfiles="https://github.com/cyclopsian/wdisplays/archive/${version}.tar.gz"
 checksum=fa34d5bdfd87d833e18a89b2acacc27833d7297374719773a705f2d3e89cdddf
+patch_args=-Np0
diff --git a/srcpkgs/wfuzz/template b/srcpkgs/wfuzz/template
index f0f7b1b0fe0a..b27ec12f675e 100644
--- a/srcpkgs/wfuzz/template
+++ b/srcpkgs/wfuzz/template
@@ -12,3 +12,4 @@ license="GPL-2.0-only"
 homepage="http://wfuzz.org"
 distfiles="https://github.com/xmendez/wfuzz/archive/v${version}.tar.gz"
 checksum=60798e56274a377f8770d162935a040d4d6e27919bfbb46cf13a7a0a34896be9
+patch_args=-Np0
diff --git a/srcpkgs/whysynth/template b/srcpkgs/whysynth/template
index 2c2631da2509..95813353f234 100644
--- a/srcpkgs/whysynth/template
+++ b/srcpkgs/whysynth/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://smbolton.com/whysynth.html"
 distfiles="http://smbolton.com/whysynth/whysynth-${version}.tar.bz2"
 checksum=a602d685a6bf48b01a82e1c077a50fe3d115805865ecfe49f531d8bd20b00b0b
+patch_args=-Np0
diff --git a/srcpkgs/wmctrl/template b/srcpkgs/wmctrl/template
index 774c4ca6f200..2f989ed2e8ee 100644
--- a/srcpkgs/wmctrl/template
+++ b/srcpkgs/wmctrl/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://sites.google.com/site/tstyblo/wmctrl/"
 distfiles="https://sites.google.com/site/tstyblo/wmctrl/wmctrl-${version}.tar.gz"
 checksum=d78a1efdb62f18674298ad039c5cbdb1edb6e8e149bb3a8e3a01a4750aa3cca9
+patch_args=-Np0
diff --git a/srcpkgs/wofi/template b/srcpkgs/wofi/template
index 5fe2c5b63ed2..8ecf7d5985c5 100644
--- a/srcpkgs/wofi/template
+++ b/srcpkgs/wofi/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://hg.sr.ht/~scoopta/wofi"
 distfiles="https://hg.sr.ht/~scoopta/wofi/archive/v${version}.tar.gz"
 checksum=@fee85efc35e97946d3a94562775b902982c4ab1f521208308ecc4bb41547a5e3
+patch_args=-Np0
diff --git a/srcpkgs/wvdial/template b/srcpkgs/wvdial/template
index 3813dea5f5ef..1b5b82c4d16b 100644
--- a/srcpkgs/wvdial/template
+++ b/srcpkgs/wvdial/template
@@ -13,3 +13,4 @@ homepage="https://code.google.com/p/wvstreams/"
 distfiles="${DEBIAN_SITE}/main/w/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=5753d2005115aa4e365a1638f4eb6c076d4e2deafa46c3de38964918e7f62709
 conf_files="/etc/ppp/peers/wvdial /etc/ppp/peers/wvdial-pipe"
+patch_args=-Np0
diff --git a/srcpkgs/xbindkeys/template b/srcpkgs/xbindkeys/template
index 54486843942a..ea2d1e8b3037 100644
--- a/srcpkgs/xbindkeys/template
+++ b/srcpkgs/xbindkeys/template
@@ -12,3 +12,4 @@ license="GPL-2.0-or-later"
 homepage="http://www.nongnu.org/xbindkeys/xbindkeys.html"
 distfiles="http://www.nongnu.org/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=a29b86a8ec91d4abc83b420e547da27470847d0efe808aa6e75147aa0adb82f2
+patch_args=-Np0
diff --git a/srcpkgs/xdg-dbus-proxy/template b/srcpkgs/xdg-dbus-proxy/template
index 3d01f5e60b1b..805d7404ab4c 100644
--- a/srcpkgs/xdg-dbus-proxy/template
+++ b/srcpkgs/xdg-dbus-proxy/template
@@ -12,3 +12,4 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/flatpak/xdg-dbus-proxy"
 distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.xz"
 checksum=1749d6f9f46dcc9edc87725641cf56cf91dcad1b01707891ea0850c1000c520f
+patch_args=-Np0
diff --git a/srcpkgs/xfce4-power-manager/template b/srcpkgs/xfce4-power-manager/template
index edc9a58e27b9..84d7d1514098 100644
--- a/srcpkgs/xfce4-power-manager/template
+++ b/srcpkgs/xfce4-power-manager/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://xfce.org/"
 distfiles="https://archive.xfce.org/src/xfce/$pkgname/${version%.*}/$pkgname-$version.tar.bz2"
 checksum=eb9c587c01b502fa45a32e7fc2aba98fa6d8391475133883654f77e562c43bf3
+patch_args=-Np0
diff --git a/srcpkgs/xkblayout-state/template b/srcpkgs/xkblayout-state/template
index e3b1f4131db9..78407cc1ba56 100644
--- a/srcpkgs/xkblayout-state/template
+++ b/srcpkgs/xkblayout-state/template
@@ -10,3 +10,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/nonpop/xkblayout-state"
 distfiles="https://github.com/nonpop/xkblayout-state/archive/v${version}.tar.gz"
 checksum=ddf2de9949edbea2cb25933c22a6b76d4f868ee3012120216555ac96e9b536d4
+patch_args=-Np0
diff --git a/srcpkgs/xnots/template b/srcpkgs/xnots/template
index c08b06c26d6f..05a565630c8a 100644
--- a/srcpkgs/xnots/template
+++ b/srcpkgs/xnots/template
@@ -14,3 +14,4 @@ license="GPL-2.0-only"
 homepage="http://xnots.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/project/${pkgname}/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
 checksum=80bbab0334880f79aa12cf17ebffc5730a85dc537e8e6208169720656ecd72ca
+patch_args=-Np0
diff --git a/srcpkgs/xsel/template b/srcpkgs/xsel/template
index edc001dba405..4121c1140936 100644
--- a/srcpkgs/xsel/template
+++ b/srcpkgs/xsel/template
@@ -10,3 +10,4 @@ license="custom"
 homepage="http://www.vergenet.net/~conrad/software/xsel/"
 distfiles="http://www.vergenet.net/~conrad/software/xsel/download/xsel-${version}.tar.gz"
 checksum=b927ce08dc82f4c30140223959b90cf65e1076f000ce95e520419ec32f5b141c
+patch_args=-Np0
diff --git a/srcpkgs/xseticon/template b/srcpkgs/xseticon/template
index 130726aa45c3..d3655f7d0c0f 100644
--- a/srcpkgs/xseticon/template
+++ b/srcpkgs/xseticon/template
@@ -13,3 +13,4 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/xeyownt/xseticon"
 distfiles="https://github.com/xeyownt/xseticon/archive/${version}.tar.gz"
 checksum=d34c349ff09ea42393fb3bac3fd2be0e7b9a244388e2f4b32cc92636967a4a2c
+patch_args=-Np0
diff --git a/srcpkgs/yabause-gtk/template b/srcpkgs/yabause-gtk/template
index 2b85120a5a7f..fab9fa26cb84 100644
--- a/srcpkgs/yabause-gtk/template
+++ b/srcpkgs/yabause-gtk/template
@@ -17,3 +17,4 @@ checksum=4334c43fe0f3ff297bac8e91f4e059fe5fd276291faff2489e37b5b3a4ccc2b2
 nopie=yes
 # Would need m68kmake built for the host
 nocross=yes
+patch_args=-Np0
diff --git a/srcpkgs/zaz/template b/srcpkgs/zaz/template
index c99dbca901dd..e9bf8c19bc9d 100644
--- a/srcpkgs/zaz/template
+++ b/srcpkgs/zaz/template
@@ -13,3 +13,4 @@ homepage="http://zaz.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=e332cc1a6559e18a2b632940c53d20e2f2d2b583ba9dc1fd02a586437f9f0397
 CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/freetype2"
+patch_args=-Np0
diff --git a/srcpkgs/zbackup/template b/srcpkgs/zbackup/template
index c69c8e711cfd..997fc5b349f9 100644
--- a/srcpkgs/zbackup/template
+++ b/srcpkgs/zbackup/template
@@ -11,3 +11,4 @@ license="GPL-2.0-or-later"
 homepage="http://zbackup.org/"
 distfiles="https://github.com/zbackup/zbackup/archive/${version}.tar.gz"
 checksum=efccccd2a045da91576c591968374379da1dc4ca2e3dec4d3f8f12628fa29a85
+patch_args=-Np0

From 0f5d2447ee2b7e8ff926a4d36bf964f17328cedb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 07:38:20 +0700
Subject: [PATCH 5/7] do-patch: switch default patch_args to -Np1

All templates that require -Np0 have patch_args appended.
Let's flip the switch.
---
 Manual.md                           | 4 ++--
 common/hooks/do-patch/00-patches.sh | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Manual.md b/Manual.md
index 238db04f04b3..dc20f1e0db00 100644
--- a/Manual.md
+++ b/Manual.md
@@ -601,7 +601,7 @@ current directory with respect to the install.
 
 - `patch_args` The arguments to be passed in to the `patch(1)` command when applying
 patches to the package sources during `do_patch()`. Patches are stored in
-`srcpkgs/<pkgname>/patches` and must be in `-p0` format. By default set to `-Np0`.
+`srcpkgs/<pkgname>/patches` and must be in `-p0` format. By default set to `-Np1`.
 
 - `disable_parallel_build` If set the package won't be built in parallel
 and `XBPS_MAKEJOBS` has no effect.
@@ -874,7 +874,7 @@ been found or to fix compilation with new software.
 
 To handle this, xbps-src has patching functionality. It will look for all files
 that match the glob `srcpkgs/$pkgname/patches/*.{diff,patch}` and will
-automatically apply all files it finds using `patch(1)` with `-Np0`. This happens
+automatically apply all files it finds using `patch(1)` with `-Np1`. This happens
 during the `do_patch()` phase. The variable `PATCHESDIR` is
 available in the template, pointing to the `patches` directory.
 
diff --git a/common/hooks/do-patch/00-patches.sh b/common/hooks/do-patch/00-patches.sh
index 64e934c39818..f8ce2d37fee5 100644
--- a/common/hooks/do-patch/00-patches.sh
+++ b/common/hooks/do-patch/00-patches.sh
@@ -3,7 +3,7 @@
 _process_patch() {
 	local _args= _patch= i=$1
 
-	_args="-Np0"
+	_args="-Np1"
 	_patch=${i##*/}
 
 	if [ -f $PATCHESDIR/${_patch}.args ]; then

From 6cadb4ecf254e8bf750e02500f53121c0566f1e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 08:20:04 +0700
Subject: [PATCH 6/7] srcpkgs: remove patch_args=-Np1 en-mass

	git grep -l '^patch_args=.*p1' 'srcpkgs/*/template'  |
	xargs -r sed -i '/^patch_args=/d'
---
 srcpkgs/EternalTerminal/template         | 1 -
 srcpkgs/Ice/template                     | 1 -
 srcpkgs/Marker/template                  | 1 -
 srcpkgs/NetworkManager/template          | 1 -
 srcpkgs/OTPClient/template               | 1 -
 srcpkgs/RyzenAdj/template                | 1 -
 srcpkgs/VirtualGL/template               | 1 -
 srcpkgs/abiword/template                 | 1 -
 srcpkgs/acfgfs/template                  | 1 -
 srcpkgs/acr/template                     | 1 -
 srcpkgs/alot/template                    | 1 -
 srcpkgs/alsa-lib/template                | 1 -
 srcpkgs/alure/template                   | 1 -
 srcpkgs/apparmor/template                | 1 -
 srcpkgs/arcan/template                   | 1 -
 srcpkgs/atril/template                   | 1 -
 srcpkgs/audit/template                   | 1 -
 srcpkgs/babeld/template                  | 1 -
 srcpkgs/bibletime/template               | 1 -
 srcpkgs/binutils/template                | 1 -
 srcpkgs/blender/template                 | 1 -
 srcpkgs/blobby2/template                 | 1 -
 srcpkgs/bluez/template                   | 1 -
 srcpkgs/bolt/template                    | 1 -
 srcpkgs/brotli/template                  | 1 -
 srcpkgs/bsd-games/template               | 1 -
 srcpkgs/cairo-dock-plugins/template      | 1 -
 srcpkgs/cairo/template                   | 1 -
 srcpkgs/caribou/template                 | 1 -
 srcpkgs/catimg/template                  | 1 -
 srcpkgs/cheese/template                  | 1 -
 srcpkgs/chuck/template                   | 1 -
 srcpkgs/clockspeed/template              | 1 -
 srcpkgs/cmake/template                   | 1 -
 srcpkgs/crex/template                    | 1 -
 srcpkgs/cryfs/template                   | 1 -
 srcpkgs/curl/template                    | 1 -
 srcpkgs/cyrus-sasl/template              | 1 -
 srcpkgs/dbus-elogind/template            | 1 -
 srcpkgs/ddgtk/template                   | 1 -
 srcpkgs/deluge/template                  | 1 -
 srcpkgs/diffr/template                   | 1 -
 srcpkgs/docbook2x/template               | 1 -
 srcpkgs/efitools/template                | 1 -
 srcpkgs/efivar/template                  | 1 -
 srcpkgs/electrum-ltc/template            | 1 -
 srcpkgs/embree/template                  | 1 -
 srcpkgs/empathy/template                 | 1 -
 srcpkgs/enchant/template                 | 1 -
 srcpkgs/ettercap/template                | 1 -
 srcpkgs/exempi/template                  | 1 -
 srcpkgs/ext4magic/template               | 1 -
 srcpkgs/fbset/template                   | 1 -
 srcpkgs/fcitx5-anthy/template            | 1 -
 srcpkgs/fcitx5-qt/template               | 1 -
 srcpkgs/fcitx5/template                  | 1 -
 srcpkgs/firebird3/template               | 1 -
 srcpkgs/flac/template                    | 1 -
 srcpkgs/flann/template                   | 1 -
 srcpkgs/fonttosfnt/template              | 1 -
 srcpkgs/fortune-mod/template             | 1 -
 srcpkgs/fwupd/template                   | 1 -
 srcpkgs/gcc6/template                    | 1 -
 srcpkgs/gdb/template                     | 1 -
 srcpkgs/geeqie/template                  | 1 -
 srcpkgs/gettext/template                 | 1 -
 srcpkgs/ghc/template                     | 1 -
 srcpkgs/ghdl/template                    | 1 -
 srcpkgs/ghostscript/template             | 1 -
 srcpkgs/gjs/template                     | 1 -
 srcpkgs/glibc/template                   | 1 -
 srcpkgs/glm/template                     | 1 -
 srcpkgs/glu/template                     | 1 -
 srcpkgs/gnac/template                    | 1 -
 srcpkgs/gnome-builder/template           | 1 -
 srcpkgs/gnome-doc-utils/template         | 1 -
 srcpkgs/gnome-panel/template             | 1 -
 srcpkgs/gnome-todo/template              | 1 -
 srcpkgs/gobject-introspection/template   | 1 -
 srcpkgs/gpicview/template                | 1 -
 srcpkgs/graphene/template                | 1 -
 srcpkgs/growlight/template               | 1 -
 srcpkgs/grub-btrfs/template              | 1 -
 srcpkgs/grub/template                    | 1 -
 srcpkgs/gsimplecal-gtk2/template         | 1 -
 srcpkgs/gtk-doc/template                 | 1 -
 srcpkgs/hostapd/template                 | 1 -
 srcpkgs/ifstatus/template                | 1 -
 srcpkgs/iio-sensor-proxy/template        | 1 -
 srcpkgs/incron/template                  | 1 -
 srcpkgs/inkscape/template                | 1 -
 srcpkgs/interbench/template              | 1 -
 srcpkgs/ispc/template                    | 1 -
 srcpkgs/jasper/template                  | 1 -
 srcpkgs/json-c/template                  | 1 -
 srcpkgs/judy/template                    | 1 -
 srcpkgs/julia/template                   | 1 -
 srcpkgs/kakasi/template                  | 1 -
 srcpkgs/kitty/template                   | 1 -
 srcpkgs/kmymoney/template                | 1 -
 srcpkgs/kodi-rpi/template                | 1 -
 srcpkgs/kodi/template                    | 1 -
 srcpkgs/kreport/template                 | 1 -
 srcpkgs/kwin/template                    | 1 -
 srcpkgs/libbaseencode/template           | 1 -
 srcpkgs/libcotp/template                 | 1 -
 srcpkgs/libextractor/template            | 1 -
 srcpkgs/libfcitx-qt5/template            | 1 -
 srcpkgs/libgcrypt/template               | 1 -
 srcpkgs/libgpg-error/template            | 1 -
 srcpkgs/libhugetlbfs/template            | 1 -
 srcpkgs/libical/template                 | 1 -
 srcpkgs/libid3tag/template               | 1 -
 srcpkgs/libknet1/template                | 1 -
 srcpkgs/libode/template                  | 1 -
 srcpkgs/libogdf/template                 | 1 -
 srcpkgs/libopenshot/template             | 1 -
 srcpkgs/libpgf/template                  | 1 -
 srcpkgs/libsasl/template                 | 1 -
 srcpkgs/libtar/template                  | 1 -
 srcpkgs/libtls/template                  | 1 -
 srcpkgs/libtomcrypt/template             | 1 -
 srcpkgs/libunique1/template              | 1 -
 srcpkgs/libvorbis/template               | 1 -
 srcpkgs/lightdm-gtk-greeter/template     | 1 -
 srcpkgs/linux-driver-management/template | 1 -
 srcpkgs/linux4.14/template               | 1 -
 srcpkgs/linux4.19/template               | 1 -
 srcpkgs/linux4.9/template                | 1 -
 srcpkgs/linux5.10/template               | 1 -
 srcpkgs/linux5.11/template               | 1 -
 srcpkgs/linux5.12/template               | 1 -
 srcpkgs/linux5.4/template                | 1 -
 srcpkgs/loudgain/template                | 1 -
 srcpkgs/lxde-common/template             | 1 -
 srcpkgs/lxlauncher/template              | 1 -
 srcpkgs/lxsession/template               | 1 -
 srcpkgs/m4/template                      | 1 -
 srcpkgs/mac-fdisk/template               | 1 -
 srcpkgs/mailx/template                   | 1 -
 srcpkgs/make/template                    | 1 -
 srcpkgs/mbuffer/template                 | 1 -
 srcpkgs/mellowplayer/template            | 1 -
 srcpkgs/mkinitcpio-nfs-utils/template    | 1 -
 srcpkgs/mkinitcpio/template              | 1 -
 srcpkgs/motif/template                   | 1 -
 srcpkgs/mouseemu/template                | 1 -
 srcpkgs/mozjs78/template                 | 1 -
 srcpkgs/mupdf/template                   | 1 -
 srcpkgs/musl/template                    | 1 -
 srcpkgs/ndppd/template                   | 1 -
 srcpkgs/network-manager-applet/template  | 1 -
 srcpkgs/nfs-utils/template               | 1 -
 srcpkgs/nomad/template                   | 1 -
 srcpkgs/notmuch/template                 | 1 -
 srcpkgs/numix-themes/template            | 1 -
 srcpkgs/nvi/template                     | 1 -
 srcpkgs/ocaml/template                   | 1 -
 srcpkgs/onboard/template                 | 1 -
 srcpkgs/openjdk10-bootstrap/template     | 1 -
 srcpkgs/openjdk7-bootstrap/template      | 1 -
 srcpkgs/openjdk8/template                | 1 -
 srcpkgs/openjdk9-bootstrap/template      | 1 -
 srcpkgs/orientdb/template                | 1 -
 srcpkgs/p11-kit/template                 | 1 -
 srcpkgs/parallel-rust/template           | 1 -
 srcpkgs/patch/template                   | 1 -
 srcpkgs/pavucontrol/template             | 1 -
 srcpkgs/pbbuttonsd/template              | 1 -
 srcpkgs/pcsxr/template                   | 1 -
 srcpkgs/pinebookpro-kernel/template      | 1 -
 srcpkgs/pinephone-kernel/template        | 1 -
 srcpkgs/ponysay/template                 | 1 -
 srcpkgs/poppler-qt5/template             | 1 -
 srcpkgs/poppler/template                 | 1 -
 srcpkgs/procmail/template                | 1 -
 srcpkgs/psutils/template                 | 1 -
 srcpkgs/python-notify/template           | 1 -
 srcpkgs/qemu/template                    | 1 -
 srcpkgs/qt5-webengine/template           | 1 -
 srcpkgs/rdup/template                    | 1 -
 srcpkgs/recode/template                  | 1 -
 srcpkgs/rng-tools/template               | 1 -
 srcpkgs/rust/template                    | 1 -
 srcpkgs/sakura/template                  | 1 -
 srcpkgs/sbc/template                     | 1 -
 srcpkgs/sbsigntool/template              | 1 -
 srcpkgs/sharutils/template               | 1 -
 srcpkgs/spdlog/template                  | 1 -
 srcpkgs/stegsnow/template                | 1 -
 srcpkgs/sun7i-kernel/template            | 1 -
 srcpkgs/syslinux/template                | 1 -
 srcpkgs/tilix/template                   | 1 -
 srcpkgs/tmux/template                    | 1 -
 srcpkgs/ucspi-tcp/template               | 1 -
 srcpkgs/unixbench/template               | 1 -
 srcpkgs/unzip/template                   | 1 -
 srcpkgs/util-linux/template              | 1 -
 srcpkgs/utox/template                    | 1 -
 srcpkgs/valgrind/template                | 1 -
 srcpkgs/viking/template                  | 1 -
 srcpkgs/vscode/template                  | 1 -
 srcpkgs/vtk/template                     | 1 -
 srcpkgs/wayfire-plugins-extra/template   | 1 -
 srcpkgs/webrtc-audio-processing/template | 1 -
 srcpkgs/whipper/template                 | 1 -
 srcpkgs/wireplumber/template             | 1 -
 srcpkgs/wlsunset/template                | 1 -
 srcpkgs/wpa_supplicant/template          | 1 -
 srcpkgs/wrk/template                     | 1 -
 srcpkgs/x2goserver/template              | 1 -
 srcpkgs/xbps/template                    | 1 -
 srcpkgs/xdgmenumaker/template            | 1 -
 srcpkgs/xen/template                     | 1 -
 srcpkgs/xpdf/template                    | 1 -
 srcpkgs/xzoom/template                   | 1 -
 srcpkgs/yaboot/template                  | 1 -
 srcpkgs/zeroc-mcpp/template              | 1 -
 srcpkgs/zziplib/template                 | 1 -
 219 files changed, 219 deletions(-)

diff --git a/srcpkgs/EternalTerminal/template b/srcpkgs/EternalTerminal/template
index e2555e2f8642..f4f2b4720362 100644
--- a/srcpkgs/EternalTerminal/template
+++ b/srcpkgs/EternalTerminal/template
@@ -13,7 +13,6 @@ homepage="https://eternalterminal.dev/"
 distfiles="https://github.com/MisterTea/EternalTerminal/archive/et-v${version}.tar.gz"
 checksum=728c3a444d666897c710e33fe473d8d289263a59574451b13aa53ec3c6ac88b3
 system_accounts="_eternal"
-patch_args=-Np1
 
 LDFLAGS="-lgflags"
 
diff --git a/srcpkgs/Ice/template b/srcpkgs/Ice/template
index 6c3e6971874d..f85b38df28d6 100644
--- a/srcpkgs/Ice/template
+++ b/srcpkgs/Ice/template
@@ -15,7 +15,6 @@ license="GPL-2.0-only, custom:ICE"
 homepage="https://www.zeroc.com"
 distfiles="https://github.com/zeroc-ice/ice/archive/v${version}.tar.gz"
 checksum=36bf45591a95e6ee7216153d45d8eca05ff00c1da35608f0c400e6ddc8049da9
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	# Cross build requires the host's slice2cpp
diff --git a/srcpkgs/Marker/template b/srcpkgs/Marker/template
index 2c57664b3c68..be02723dc4ed 100644
--- a/srcpkgs/Marker/template
+++ b/srcpkgs/Marker/template
@@ -14,7 +14,6 @@ license="GPL-3.0-or-later, ISC"
 homepage="https://fabiocolacio.github.io/Marker/"
 distfiles="https://github.com/fabiocolacio/Marker/releases/download/${version}/marker.zip"
 checksum=ca493e7e94f171c15f7ffc9f697ce265d3b4fdb20fae157601d091d89dd6fb40
-patch_args="-Np1"
 
 post_extract() {
 	# don't include bundled mathjax
diff --git a/srcpkgs/NetworkManager/template b/srcpkgs/NetworkManager/template
index 2f159a9f55c4..7af0685be910 100644
--- a/srcpkgs/NetworkManager/template
+++ b/srcpkgs/NetworkManager/template
@@ -46,7 +46,6 @@ make_dirs="
  /etc/NetworkManager/VPN 0755 root root
  /var/lib/NetworkManager 0755 root root
 "
-patch_args=-Np1
 
 # Package build options
 build_options="gir elogind"
diff --git a/srcpkgs/OTPClient/template b/srcpkgs/OTPClient/template
index bea17c56a1e4..28de82117c9a 100644
--- a/srcpkgs/OTPClient/template
+++ b/srcpkgs/OTPClient/template
@@ -12,4 +12,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/paolostivanin/OTPClient"
 distfiles="https://github.com/paolostivanin/OTPClient/archive/v${version}.tar.gz"
 checksum=5b976782906f15e2a4e001d73909a05f6146010cea83d78e3ad5c850f4049da4
-patch_args=-Np1
diff --git a/srcpkgs/RyzenAdj/template b/srcpkgs/RyzenAdj/template
index 1ceb4fec1e4a..ccea4932b6f2 100644
--- a/srcpkgs/RyzenAdj/template
+++ b/srcpkgs/RyzenAdj/template
@@ -11,7 +11,6 @@ license="LGPL-3.0-only"
 homepage="https://github.com/FlyGoat/RyzenAdj"
 distfiles="https://github.com/FlyGoat/RyzenAdj/archive/v${version}.tar.gz"
 checksum=fff8a08e657ba35f919bd564fbe2e15e7c615ac6e2a357ffcc3472069e8081f6
-patch_args=-Np1
 
 do_install() {
 	vbin build/ryzenadj
diff --git a/srcpkgs/VirtualGL/template b/srcpkgs/VirtualGL/template
index bf25920d2cb7..58ff1859ea80 100644
--- a/srcpkgs/VirtualGL/template
+++ b/srcpkgs/VirtualGL/template
@@ -14,7 +14,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.virtualgl.org/"
 distfiles="${SOURCEFORGE_SITE}/virtualgl/${version}/${pkgname}-${version}.tar.gz"
 checksum=79dff857862890215794509ac65826005625925d03bf0874a486d695aae6f859
-patch_args="-Np1"
 
 archs="i686* x86_64*"
 
diff --git a/srcpkgs/abiword/template b/srcpkgs/abiword/template
index 0f48222f8180..782d023e01dc 100644
--- a/srcpkgs/abiword/template
+++ b/srcpkgs/abiword/template
@@ -18,7 +18,6 @@ license="GPL-2.0-or-later"
 homepage="http://www.abisource.com/"
 distfiles="${homepage}/downloads/${pkgname}/${version}/source/${pkgname}-${version}.tar.gz"
 checksum=e93096cb192e5bc19d62e180fc5eda643206465315a710113ae5036bc2a1a5d7
-patch_args=-Np1
 
 build_options="goffice"
 build_options_default="goffice"
diff --git a/srcpkgs/acfgfs/template b/srcpkgs/acfgfs/template
index b66760cb1ea4..0e1ced9d4f06 100644
--- a/srcpkgs/acfgfs/template
+++ b/srcpkgs/acfgfs/template
@@ -14,7 +14,6 @@ license="BSD-3-Clause"
 homepage="https://arcan-fe.com"
 distfiles="https://github.com/letoram/arcan/archive/${version}.tar.gz"
 checksum=7ae00a9dee79f9b58ac2bacbf532ff0631280297cfde30e8996382a3f42a52ed
-patch_args="-Np1"
 
 case "${XBPS_TARGET_MACHINE}" in
 	i686|armv6l|armv7l|ppc)
diff --git a/srcpkgs/acr/template b/srcpkgs/acr/template
index 88d79a1a6706..0574ea512016 100644
--- a/srcpkgs/acr/template
+++ b/srcpkgs/acr/template
@@ -11,4 +11,3 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/radare/acr"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=88bb2e4cb35b18370675710806c4ef03ef81a6ed521b939e272267754e8484c1
-patch_args=-Np1
diff --git a/srcpkgs/alot/template b/srcpkgs/alot/template
index 314bbe011aad..831b24deb8b4 100644
--- a/srcpkgs/alot/template
+++ b/srcpkgs/alot/template
@@ -13,7 +13,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/pazz/alot"
 distfiles="https://github.com/pazz/${pkgname}/archive/${version}.tar.gz"
 checksum=ee2c1ab1b43d022a8fe2078820ed57d8d72aec260a7d750776dac4ee841d1de4
-patch_args="-Np1"
 
 do_check() {
 	pytest3 -k 'not test_no_spawn_no_stdin_attached'
diff --git a/srcpkgs/alsa-lib/template b/srcpkgs/alsa-lib/template
index 7a6a58a8c5ea..454ede71606e 100644
--- a/srcpkgs/alsa-lib/template
+++ b/srcpkgs/alsa-lib/template
@@ -10,7 +10,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.alsa-project.org"
 distfiles="https://www.alsa-project.org/files/pub/lib/${pkgname}-${version}.tar.bz2"
 checksum=f7554be1a56cdff468b58fc1c29b95b64864c590038dd309c7a978c7116908f7
-patch_args="-Np1"
 
 alsa-lib-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/alure/template b/srcpkgs/alure/template
index 0acf8c80fd3d..04e40e3c8b20 100644
--- a/srcpkgs/alure/template
+++ b/srcpkgs/alure/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="https://github.com/kcat/alure"
 distfiles="${DEBIAN_SITE}/main/a/alure/alure_${version}.orig.tar.bz2"
 checksum=465e6adae68927be3a023903764662d64404e40c4c152d160e3a8838b1d70f71
-patch_args=-Np1
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/apparmor/template b/srcpkgs/apparmor/template
index 0d8c1ec7087e..2431832981c7 100644
--- a/srcpkgs/apparmor/template
+++ b/srcpkgs/apparmor/template
@@ -18,7 +18,6 @@ homepage="https://gitlab.com/apparmor/apparmor"
 changelog="https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_${version}"
 distfiles="https://gitlab.com/apparmor/apparmor/-/archive/v${version}/apparmor-v${version}.tar.gz"
 checksum=5f9afc157c5e2610737186a31fc9bd6a1d339a2ee85ac4f2667dce59cf60f1c7
-patch_args="-Np1"
 
 if [ -z "$CROSS_BUILD" ]; then
 	configure_args="--with-perl --with-python"
diff --git a/srcpkgs/arcan/template b/srcpkgs/arcan/template
index 7788f50d3329..f436db94479c 100644
--- a/srcpkgs/arcan/template
+++ b/srcpkgs/arcan/template
@@ -26,7 +26,6 @@ distfiles="https://github.com/letoram/${pkgname}/archive/${version}.tar.gz
  https://github.com/letoram/openal/archive/${_versionOpenal}.tar.gz>openal_arcan.${_versionOpenal}.tar.gz"
 checksum="7ae00a9dee79f9b58ac2bacbf532ff0631280297cfde30e8996382a3f42a52ed
  3a50a87c05b67c466a868cc77f8dc7f9cfc9466aeeafcd823daca0d108c504da"
-patch_args="-Np1"
 
 export CMAKE_GENERATOR="Unix Makefiles"
 
diff --git a/srcpkgs/atril/template b/srcpkgs/atril/template
index b26399624b01..97602c4b1b0b 100644
--- a/srcpkgs/atril/template
+++ b/srcpkgs/atril/template
@@ -20,7 +20,6 @@ license="GPL-2.0-or-later"
 homepage="https://mate-desktop.org"
 distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=b48372a89813f31d2635de02d9e92ba38e794daddf625f06d80c3793248bde1a
-patch_args=-Np1
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/audit/template b/srcpkgs/audit/template
index fcd5de93732d..a093bfac8333 100644
--- a/srcpkgs/audit/template
+++ b/srcpkgs/audit/template
@@ -16,7 +16,6 @@ homepage="https://people.redhat.com/sgrubb/audit"
 changelog="https://raw.githubusercontent.com/linux-audit/audit-userspace/master/ChangeLog"
 distfiles="${homepage}/${pkgname}-${version}.tar.gz"
 checksum=994c4250d8fd43f3087a3c2ce73461832e30f1e9b278bf5bb03c3e07091155a5
-patch_args=-Np1
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args+=" --disable-zos-remote" ;;
diff --git a/srcpkgs/babeld/template b/srcpkgs/babeld/template
index c8a90adea73b..5a46f57aafaf 100644
--- a/srcpkgs/babeld/template
+++ b/srcpkgs/babeld/template
@@ -10,7 +10,6 @@ license="MIT"
 homepage="https://www.irif.fr/~jch/software/babel/"
 distfiles="https://github.com/jech/babeld/archive/babeld-${version}.tar.gz"
 checksum=d44a0ca3cf67595e1ed67ca219c975c3c011c6046028be75df254715c4611d31
-patch_args="-Np1"
 
 pre_build() {
 	echo ${version}-${revision} > version
diff --git a/srcpkgs/bibletime/template b/srcpkgs/bibletime/template
index bc005197cdb3..559755a9dd6f 100644
--- a/srcpkgs/bibletime/template
+++ b/srcpkgs/bibletime/template
@@ -18,7 +18,6 @@ license="GPL-2.0-or-later"
 homepage="http://bibletime.info"
 distfiles="https://github.com/bibletime/bibletime/releases/download/v${version}/bibletime-${version}.tar.xz"
 checksum=d6beef62ad44b255e3dc4c5e89214bf01a0e85c9136073b0be12fca3d2b22622
-patch_args=-Np1
 
 pre_build() {
 	. /etc/profile.d/10_openjdk11.sh
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 7a7966f440aa..6270f8618c87 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=3ced91db9bf01182b7e420eab68039f2083aed0a214c0424e257eae3ddee8607
-patch_args="-Np1"
 
 subpackages="binutils-doc"
 if [ "$CHROOT_READY" ]; then
diff --git a/srcpkgs/blender/template b/srcpkgs/blender/template
index 810c98ee7705..af946c2b7999 100644
--- a/srcpkgs/blender/template
+++ b/srcpkgs/blender/template
@@ -31,7 +31,6 @@ python_version=3
 CXXFLAGS="-DNDEBUG"
 CFLAGS="$CXXFLAGS"
 LDFLAGS="-Wl,-z,stack-size=2097152"
-patch_args="-Np1"
 # Blender tests are executed against a system installation of blender. This
 # is currently not supported by xbps-src.
 make_check=no
diff --git a/srcpkgs/blobby2/template b/srcpkgs/blobby2/template
index b47972ab884a..c8b9c65046c9 100644
--- a/srcpkgs/blobby2/template
+++ b/srcpkgs/blobby2/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://blobbyvolley.de"
 distfiles="${SOURCEFORGE_SITE}/blobby/${pkgname}-linux-${version}.tar.gz"
 checksum=ba7a049e298aaa2014c1e1ac1faf3b0256b4c66266cd4db06e7939e8695bf5e2
-patch_args="-Np1"
 
 post_install() {
 	vinstall ${FILESDIR}/blobby.desktop 644 usr/share/applications
diff --git a/srcpkgs/bluez/template b/srcpkgs/bluez/template
index e6ef1b9b6b0e..09bac4ff5eca 100644
--- a/srcpkgs/bluez/template
+++ b/srcpkgs/bluez/template
@@ -18,7 +18,6 @@ distfiles="${KERNEL_SITE}/bluetooth/$pkgname-$version.tar.xz"
 checksum=046b95b386d0bfb2a16311fe799d517ee7735045512d89902c4ed701db477316
 conf_files="/etc/bluetooth/main.conf"
 system_groups="bluetooth"
-patch_args="-Np1"
 
 build_options="mesh nfc experimental"
 
diff --git a/srcpkgs/bolt/template b/srcpkgs/bolt/template
index 20bccb2c3e09..02535303419d 100644
--- a/srcpkgs/bolt/template
+++ b/srcpkgs/bolt/template
@@ -14,7 +14,6 @@ license="LGPL-2.1-or-later"
 homepage="https://gitlab.freedesktop.org/bolt/bolt"
 distfiles="https://gitlab.freedesktop.org/bolt/bolt/-/archive/${version}/bolt-${version}.tar.gz"
 checksum=f938db68df79d0ada135a055fd01204f6f3436e17e962dfb8dc6699de77e1895
-patch_args="-Np1"
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/brotli/template b/srcpkgs/brotli/template
index 12b80d767fda..4e2b48ea88b5 100644
--- a/srcpkgs/brotli/template
+++ b/srcpkgs/brotli/template
@@ -9,7 +9,6 @@ license="MIT"
 homepage="https://github.com/google/brotli"
 distfiles="https://github.com/google/${pkgname}/archive/v${version}.tar.gz"
 checksum=f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46
-patch_args="-p1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/bsd-games/template b/srcpkgs/bsd-games/template
index 6a641a540bb9..600599b2b74c 100644
--- a/srcpkgs/bsd-games/template
+++ b/srcpkgs/bsd-games/template
@@ -35,7 +35,6 @@ mutable_files="/var/games/bsdgames/atc_score
  /var/games/bsdgames/phantasia/monsters
  /var/games/bsdgames/hack/record
  /var/games/bsdgames/hack/perm"
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	local _file _var
diff --git a/srcpkgs/cairo-dock-plugins/template b/srcpkgs/cairo-dock-plugins/template
index 38295ded98c2..32457494a085 100644
--- a/srcpkgs/cairo-dock-plugins/template
+++ b/srcpkgs/cairo-dock-plugins/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://launchpad.net/cairo-dock"
 distfiles="http://launchpad.net/cairo-dock-plug-ins/${version%.?}/${version}/+download/cairo-dock-plug-ins-${version}.tar.gz"
 checksum=e09b8e600398749d1f74b26e645b477a1844a3eea02fcadd6877935da3f8639e
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" python3-devel vala-devel"
diff --git a/srcpkgs/cairo/template b/srcpkgs/cairo/template
index 1e996086f45a..3af5d9914cb2 100644
--- a/srcpkgs/cairo/template
+++ b/srcpkgs/cairo/template
@@ -16,7 +16,6 @@ license="LGPL-2.1-or-later, MPL-1.1"
 homepage="https://cairographics.org"
 distfiles="https://cairographics.org/releases/cairo-${version}.tar.xz"
 checksum=5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331
-patch_args="-Np1"
 
 # Package build options
 build_options="gles2 opengl"
diff --git a/srcpkgs/caribou/template b/srcpkgs/caribou/template
index bf135b75f8b0..15bc2ccae74e 100644
--- a/srcpkgs/caribou/template
+++ b/srcpkgs/caribou/template
@@ -18,7 +18,6 @@ homepage="https://wiki.gnome.org/Projects/Caribou"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=9c43d9f4bd30f4fea7f780d4e8b14f7589107c52e9cb6bd202bd0d1c2064de55
 lib32disabled=yes
-patch_args=-Np1
 
 libcaribou_package() {
 	lib32disabled=yes
diff --git a/srcpkgs/catimg/template b/srcpkgs/catimg/template
index 6fbc5f1d9140..0392d3cfb598 100644
--- a/srcpkgs/catimg/template
+++ b/srcpkgs/catimg/template
@@ -9,7 +9,6 @@ license="MIT"
 homepage="https://github.com/posva/catimg"
 distfiles="https://github.com/posva/catimg/archive/${version}.tar.gz"
 checksum=3a6450316ff62fb07c3facb47ea208bf98f62abd02783e88c56f2a6508035139
-patch_args=-Np1
 CFLAGS="-fcommon"
 
 post_install() {
diff --git a/srcpkgs/cheese/template b/srcpkgs/cheese/template
index e23855c1ed2b..5717d1a4c80c 100644
--- a/srcpkgs/cheese/template
+++ b/srcpkgs/cheese/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Cheese"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=88d2732b421b903110a2628db25c0d61e219c42bdfb5971151033fba95a8d16f
-patch_args="-Np1"
 
 build_options="gir gtk_doc"
 build_options_default="gir"
diff --git a/srcpkgs/chuck/template b/srcpkgs/chuck/template
index 904b5e393b7d..acf5648af53b 100644
--- a/srcpkgs/chuck/template
+++ b/srcpkgs/chuck/template
@@ -16,7 +16,6 @@ changelog="https://chuck.cs.princeton.edu/release/VERSIONS"
 distfiles="http://chuck.cs.princeton.edu/release/files/$pkgname-$version.tgz"
 checksum=11a20c34b385e132bf43d5ae6a562c652f631828cc6b1562a4c029bc9a850ed4
 
-patch_args="-Np1"
 
 post_extract() {
 	# use CC, CXX and LD from environment
diff --git a/srcpkgs/clockspeed/template b/srcpkgs/clockspeed/template
index 04477817415e..685fb3a491e2 100644
--- a/srcpkgs/clockspeed/template
+++ b/srcpkgs/clockspeed/template
@@ -19,7 +19,6 @@ clocksd_groups="nogroup"
 clocksd_homedir="/var/lib/${pkgname}"
 clocksd_descr="User for clockspeed adjustments"
 conf_files="/etc/${pkgname}/${pkgname}.conf"
-patch_args="-p1"
 
 make_dirs="/var/lib/clockspeed/adjust 644 clocksd root"
 
diff --git a/srcpkgs/cmake/template b/srcpkgs/cmake/template
index e9ee3debf3c0..5d3308f93b5d 100644
--- a/srcpkgs/cmake/template
+++ b/srcpkgs/cmake/template
@@ -17,7 +17,6 @@ homepage="https://www.cmake.org"
 distfiles="https://www.cmake.org/files/v${version%.*}/${pkgname}-${version}.tar.gz"
 checksum=4d008ac3461e271fcfac26a05936f77fc7ab64402156fb371d41284851a651b8
 replaces="cmake-bootstrap>=0"
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	build_style=cmake
diff --git a/srcpkgs/crex/template b/srcpkgs/crex/template
index 2f455a0b0c72..d2bc1e536bf8 100644
--- a/srcpkgs/crex/template
+++ b/srcpkgs/crex/template
@@ -9,7 +9,6 @@ license="MIT"
 homepage="https://github.com/octobanana/crex"
 distfiles="https://github.com/octobanana/crex/archive/${version}.tar.gz"
 checksum=c6a166b7a1e696a7babeaf7c5728eece1624704a18357f827129fc95ef2ecc56
-patch_args=-Np1
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/cryfs/template b/srcpkgs/cryfs/template
index 80938f905686..87912c2b7fe7 100644
--- a/srcpkgs/cryfs/template
+++ b/srcpkgs/cryfs/template
@@ -17,7 +17,6 @@ homepage="https://www.cryfs.org"
 changelog="https://github.com/cryfs/cryfs/raw/master/ChangeLog.txt"
 distfiles="https://github.com/cryfs/cryfs/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=004c7fdf537062e197aaa0bcdafd2682904a279802441bb6063cb72c1fba52d2
-patch_args=-Np1
 
 if [ "${XBPS_CHECK_PKGS}" ]; then
 	configure_args+=" -DBUILD_TESTING=on"
diff --git a/srcpkgs/curl/template b/srcpkgs/curl/template
index 8f9026309bfe..d1531465db05 100644
--- a/srcpkgs/curl/template
+++ b/srcpkgs/curl/template
@@ -25,7 +25,6 @@ homepage="https://curl.haxx.se"
 changelog="https://curl.haxx.se/changes.html#${version//./_}"
 distfiles="${homepage}/download/${pkgname}-${version}.tar.bz2"
 checksum=6c0c28868cb82593859fc43b9c8fdb769314c855c05cf1b56b023acf855df8ea
-patch_args="-Np1"
 build_options="gnutls gssapi ldap rtmp ssh ssl zstd"
 build_options_default="ssh ssl zstd"
 vopt_conflict ssl gnutls
diff --git a/srcpkgs/cyrus-sasl/template b/srcpkgs/cyrus-sasl/template
index 5bfe46557991..32bcc8ebc6ba 100644
--- a/srcpkgs/cyrus-sasl/template
+++ b/srcpkgs/cyrus-sasl/template
@@ -22,7 +22,6 @@ license="BSD-3-Clause-Attribution"
 homepage="https://www.cyrusimap.org/sasl/"
 distfiles="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-${version}/cyrus-sasl-${version}.tar.gz"
 checksum=26866b1549b00ffd020f188a43c258017fa1c382b3ddadd8201536f72efb05d5
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/dbus-elogind/template b/srcpkgs/dbus-elogind/template
index e527e8260851..7e92ccf7cd2b 100644
--- a/srcpkgs/dbus-elogind/template
+++ b/srcpkgs/dbus-elogind/template
@@ -24,7 +24,6 @@ checksum=f77620140ecb4cdc67f37fb444f8a6bea70b5b6461f12f1cbe2cec60fa7de5fe
 conf_files="/etc/dbus-1/*.conf"
 replaces="dbus>=0"
 provides="dbus-${version}_${revision}"
-patch_args="-Np1"
 
 # Create dbus:22 system account.
 system_accounts="dbus:22"
diff --git a/srcpkgs/ddgtk/template b/srcpkgs/ddgtk/template
index d5f27bb40934..5d45aeb4a8b9 100644
--- a/srcpkgs/ddgtk/template
+++ b/srcpkgs/ddgtk/template
@@ -11,4 +11,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/gort818/ddgtk"
 distfiles="https://github.com/gort818/ddgtk/archive/${version}.tar.gz"
 checksum=0386336681b24d648cdce3daa0c2b83c77a69773296e97a8427b67cbd27531ed
-patch_args="-Np1"
diff --git a/srcpkgs/deluge/template b/srcpkgs/deluge/template
index e54a8d571817..283fcd62d7fd 100644
--- a/srcpkgs/deluge/template
+++ b/srcpkgs/deluge/template
@@ -15,7 +15,6 @@ license="GPL-3.0-or-later"
 homepage="https://deluge-torrent.org/"
 distfiles="https://ftp.osuosl.org/pub/deluge/source/2.0/deluge-${version}.tar.xz"
 checksum=7e7ae8e6ca2a2bf0d487227cecf81e27332f0b92b567cc2bda38e47d859da891
-patch_args="-Np1"
 
 system_accounts="deluge"
 deluge_homedir="/var/lib/deluge"
diff --git a/srcpkgs/diffr/template b/srcpkgs/diffr/template
index 0bff9a8bfd08..f1e8f096375b 100644
--- a/srcpkgs/diffr/template
+++ b/srcpkgs/diffr/template
@@ -10,7 +10,6 @@ homepage="https://github.com/mookid/diffr"
 changelog="https://github.com/mookid/diffr/raw/master/CHANGELOG.md"
 distfiles="https://github.com/mookid/diffr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=2613b57778df4466a20349ef10b9e022d0017b4aee9a47fb07e78779f444f8cb
-patch_args="-Np1"
 
 do_install() {
 	vbin "target/${RUST_TARGET}/release/diffr"
diff --git a/srcpkgs/docbook2x/template b/srcpkgs/docbook2x/template
index 92233feb030a..b9cfbe848d7f 100644
--- a/srcpkgs/docbook2x/template
+++ b/srcpkgs/docbook2x/template
@@ -2,7 +2,6 @@
 pkgname=docbook2x
 version=0.8.8
 revision=5
-patch_args="-Np1"
 wrksrc="docbook2X-${version}"
 build_style=gnu-configure
 configure_args="--without-resolver-jars --without-saxon-jars --without-xalan-jars"
diff --git a/srcpkgs/efitools/template b/srcpkgs/efitools/template
index 83dc738ccbee..5d26a4208de0 100644
--- a/srcpkgs/efitools/template
+++ b/srcpkgs/efitools/template
@@ -12,7 +12,6 @@ license="GPL-2.0-only"
 homepage="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git"
 distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snapshot/${pkgname}-${version}.tar.gz"
 checksum=0f315b36e7d1ba74bfc97ab9f304f0a3072c47578bbe5e42594acae381f9acfe
-patch_args="-Nup1"
 
 post_patch() {
 	case "${XBPS_TARGET_MACHINE}" in
diff --git a/srcpkgs/efivar/template b/srcpkgs/efivar/template
index ef311f9b3998..39be825fab29 100644
--- a/srcpkgs/efivar/template
+++ b/srcpkgs/efivar/template
@@ -2,7 +2,6 @@
 pkgname=efivar
 version=37
 revision=1
-patch_args="-Np1"
 build_style=gnu-makefile
 hostmakedepends="pkg-config"
 short_desc="Tools to manipulate EFI variables"
diff --git a/srcpkgs/electrum-ltc/template b/srcpkgs/electrum-ltc/template
index a9a629a057e8..d62c43b5fa14 100644
--- a/srcpkgs/electrum-ltc/template
+++ b/srcpkgs/electrum-ltc/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="https://electrum-ltc.org/"
 distfiles="https://github.com/pooler/electrum-ltc/archive/${version}.tar.gz"
 checksum="6f4049abacfdb125b968e841ec9bc01e386e475f3fac8534103ffea1257b0f0f"
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENCE
diff --git a/srcpkgs/embree/template b/srcpkgs/embree/template
index 849ec3c26c1d..575b9bcb401c 100644
--- a/srcpkgs/embree/template
+++ b/srcpkgs/embree/template
@@ -14,7 +14,6 @@ license="Apache-2.0"
 homepage="https://embree.github.io/"
 distfiles="https://github.com/$pkgname/$pkgname/archive/v$version.tar.gz"
 checksum=c0694f287fa1fbb382aba3a895702e248d92f7e89c0e5f64aefee965482ec04c
-patch_args=-Np1
 
 embree-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/empathy/template b/srcpkgs/empathy/template
index 1c70413842b3..dcbd10cc0c1d 100644
--- a/srcpkgs/empathy/template
+++ b/srcpkgs/empathy/template
@@ -25,7 +25,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://live.gnome.org/Empathy"
 distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
 checksum=7d86942ce97edd10ade0e6ae6a210d35e4d627fe4d223377d71fd1840bc6e3a3
-patch_args=-Np1
 disable_parallel_build=yes
 # Disable checks, the only work with an irc server in place.
 make_check=no
diff --git a/srcpkgs/enchant/template b/srcpkgs/enchant/template
index bc7ca9e5239d..69458ae39180 100644
--- a/srcpkgs/enchant/template
+++ b/srcpkgs/enchant/template
@@ -13,7 +13,6 @@ license="LGPL-2.1-or-later"
 homepage="http://www.abisource.com/projects/enchant/"
 distfiles="http://www.abisource.com/downloads/enchant/${version}/enchant-${version}.tar.gz"
 checksum=2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ettercap/template b/srcpkgs/ettercap/template
index 611b4e9aded7..ce206d8bdaf0 100644
--- a/srcpkgs/ettercap/template
+++ b/srcpkgs/ettercap/template
@@ -15,7 +15,6 @@ homepage="http://ettercap.github.com/ettercap/"
 distfiles="https://github.com/Ettercap/ettercap/archive/v${version}.tar.gz"
 checksum=d0c3ef88dfc284b61d3d5b64d946c1160fd04276b448519c1ae4438a9cdffaf3
 lib32disabled=yes
-patch_args=-Np1
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/exempi/template b/srcpkgs/exempi/template
index 3925ca272300..14753617953a 100644
--- a/srcpkgs/exempi/template
+++ b/srcpkgs/exempi/template
@@ -2,7 +2,6 @@
 pkgname=exempi
 version=2.5.0
 revision=1
-patch_args="-Np1"
 build_style=gnu-configure
 configure_args="--with-boost=${XBPS_CROSS_BASE}/usr --disable-static --disable-unittest"
 makedepends="zlib-devel expat-devel boost-devel"
diff --git a/srcpkgs/ext4magic/template b/srcpkgs/ext4magic/template
index 0d7ed70cf107..fe570a962647 100644
--- a/srcpkgs/ext4magic/template
+++ b/srcpkgs/ext4magic/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="http://sourceforge.net/projects/ext4magic/"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=8d9c6a594f212aecf4eb5410d277caeaea3adc03d35378257dfd017ef20ea115
-patch_args="-Np1"
 
 CFLAGS='-DHAVE_SYS_TYPES_H'
 post_extract() {
diff --git a/srcpkgs/fbset/template b/srcpkgs/fbset/template
index 22c51fae0eb7..67a18dee57be 100644
--- a/srcpkgs/fbset/template
+++ b/srcpkgs/fbset/template
@@ -11,7 +11,6 @@ license="GPL-2.0-only"
 homepage="http://users.telenet.be/geertu/Linux/fbdev/"
 distfiles="${DEBIAN_SITE}/main/f/fbset/fbset_${version}.orig.tar.gz"
 checksum=517fa062d7b2d367f931a1c6ebb2bef84907077f0ce3f0c899e34490bbea9338
-patch_args="-Np1"
 
 do_build() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/fcitx5-anthy/template b/srcpkgs/fcitx5-anthy/template
index d0f9ab1d735c..5ec150b4ce75 100644
--- a/srcpkgs/fcitx5-anthy/template
+++ b/srcpkgs/fcitx5-anthy/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="https://fcitx-im.org/wiki/Fcitx"
 distfiles="https://download.fcitx-im.org/fcitx5/fcitx5-anthy/fcitx5-anthy-${version}.tar.xz"
 checksum=22364003e737cbe4ea6eaa83d9d274a8df8e38dea61d8f4576560ee7d5eaf44d
-patch_args=-Np1
 
 fcitx5-anthy-icons_package() {
 	short_desc+=" - icons"
diff --git a/srcpkgs/fcitx5-qt/template b/srcpkgs/fcitx5-qt/template
index 0d3dd57ed9b4..73796e6e8762 100644
--- a/srcpkgs/fcitx5-qt/template
+++ b/srcpkgs/fcitx5-qt/template
@@ -16,7 +16,6 @@ homepage="https://fcitx-im.org/wiki/Fcitx"
 distfiles="https://download.fcitx-im.org/fcitx5/fcitx5-qt/fcitx5-qt-${version}.tar.xz"
 checksum=c954d20bc4e332c0977639dc579bd641a6860926bfd0efe62bc13ee02b43e872
 lib32disabled=yes
-patch_args=-Np1
 
 if [ "$XBPS_TARGET_NOATOMIC8" ]; then
 	configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
diff --git a/srcpkgs/fcitx5/template b/srcpkgs/fcitx5/template
index db13f6ba807c..daedc89f5b3e 100644
--- a/srcpkgs/fcitx5/template
+++ b/srcpkgs/fcitx5/template
@@ -23,7 +23,6 @@ distfiles="https://download.fcitx-im.org/fcitx5/fcitx5/fcitx5-${version}.tar.xz
  https://download.fcitx-im.org/data/en_dict-${_en_dict_ver}.tar.gz"
 checksum="0ecf6cc763952ff3cbe6bd47d6e40f3f7987a4973547251af3cd1482f33c516f
  c44a5d7847925eea9e4d2d04748d442cd28dd9299a0b572ef7d91eac4f5a6ceb"
-patch_args=-Np1
 skip_extraction=en_dict-${_en_dict_ver}.tar.gz
 lib32disabled=yes
 
diff --git a/srcpkgs/firebird3/template b/srcpkgs/firebird3/template
index a84cc7ef9234..5675ac663073 100644
--- a/srcpkgs/firebird3/template
+++ b/srcpkgs/firebird3/template
@@ -36,7 +36,6 @@ homepage="https://www.firebirdsql.org/en/start/"
 distfiles="https://github.com/FirebirdSQL/firebird/releases/download/R${_uver%_*}/Firebird-${version}-${_build}.tar.bz2"
 checksum=34c1d2a29bbaf288e682cd1b5f8083f2baf73f351062245ace0bee35a3f7d35f
 replaces="firebird>=0"
-patch_args="-Np1"
 nocross="Fails to build gpre_boot for host but builds for target"
 
 CFLAGS="-fno-strict-aliasing"
diff --git a/srcpkgs/flac/template b/srcpkgs/flac/template
index 8166b9f00655..78d111c2e244 100644
--- a/srcpkgs/flac/template
+++ b/srcpkgs/flac/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause, GPL-2.0-or-later"
 homepage="http://flac.sourceforge.net/"
 distfiles="https://downloads.xiph.org/releases/flac/flac-${version}.tar.xz"
 checksum=213e82bd716c9de6db2f98bcadbc4c24c7e2efe8c75939a1a84e28539c4e1748
-patch_args="-Np1"
 # the tests fail when run as root and as such break in the CI containers
 make_check=ci-skip
 
diff --git a/srcpkgs/flann/template b/srcpkgs/flann/template
index 055c935a0cbb..af43cccd7808 100644
--- a/srcpkgs/flann/template
+++ b/srcpkgs/flann/template
@@ -2,7 +2,6 @@
 pkgname=flann
 version=1.9.1
 revision=4
-patch_args="-Np1"
 build_style=cmake
 makedepends="gtest-devel hdf5-devel"
 short_desc="Fast library for approximate nearest neighbors"
diff --git a/srcpkgs/fonttosfnt/template b/srcpkgs/fonttosfnt/template
index 1a85e32029eb..643173ceb6c1 100644
--- a/srcpkgs/fonttosfnt/template
+++ b/srcpkgs/fonttosfnt/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="http://xorg.freedesktop.org"
 distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.bz2"
 checksum=1a1bb4ef25856dea7de3d491ae7231493225b400bee0f6a1f949017ffd203a64
-patch_args="-Np1"
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/fortune-mod/template b/srcpkgs/fortune-mod/template
index 27824c3617e3..59f0aa805009 100644
--- a/srcpkgs/fortune-mod/template
+++ b/srcpkgs/fortune-mod/template
@@ -10,7 +10,6 @@ license="BSD-4-Clause-UC"
 homepage="http://www.redellipse.net/code/fortune"
 distfiles="${DEBIAN_SITE}/main/f/fortune-mod/${pkgname}_${version}.orig.tar.gz"
 checksum=fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" fortune-mod"
diff --git a/srcpkgs/fwupd/template b/srcpkgs/fwupd/template
index b0828273d2f0..6e6612d9bfd9 100644
--- a/srcpkgs/fwupd/template
+++ b/srcpkgs/fwupd/template
@@ -29,7 +29,6 @@ homepage="https://github.com/hughsie/fwupd"
 distfiles="https://github.com/hughsie/fwupd/archive/${version}.tar.gz"
 checksum=4abecf930f02fc5b165831682f3915cc7f0e82e73be2e187e761220ae275a1a3
 replaces="fwupdate>=0"
-patch_args=-Np1
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|i686*)
diff --git a/srcpkgs/gcc6/template b/srcpkgs/gcc6/template
index 352ae9bbff52..88d4f729675b 100644
--- a/srcpkgs/gcc6/template
+++ b/srcpkgs/gcc6/template
@@ -25,7 +25,6 @@ checksum="
 skip_extraction="ecj-4.9.jar"
 nopie=yes
 lib32disabled=yes
-patch_args="-Np1"
 nocross=yes
 python_version=2 #unverified
 
diff --git a/srcpkgs/gdb/template b/srcpkgs/gdb/template
index 9648e927efad..56c0e01630b5 100644
--- a/srcpkgs/gdb/template
+++ b/srcpkgs/gdb/template
@@ -21,7 +21,6 @@ homepage="https://www.gnu.org/software/gdb/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=aaa1223d534c9b700a8bec952d9748ee1977513f178727e1bee520ee000b4f29
 python_version=3
-patch_args="-Np1"
 
 if [ "${CROSS_BUILD}" ]; then
 	# Make python3.x detection work in cross builds
diff --git a/srcpkgs/geeqie/template b/srcpkgs/geeqie/template
index d7fa37a384d3..f3ac2cd2859a 100644
--- a/srcpkgs/geeqie/template
+++ b/srcpkgs/geeqie/template
@@ -15,7 +15,6 @@ homepage="http://www.geeqie.org"
 changelog="http://www.geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=blob_plain;f=NEWS;hb=HEAD"
 distfiles="http://www.geeqie.org/geeqie-${version}.tar.xz"
 checksum="48f8a4474454d182353100e43878754b76227f3b8f30cfc258afc9d90a4e1920"
-patch_args="-Np1"
 
 CFLAGS="-Wno-error -fcommon"
 
diff --git a/srcpkgs/gettext/template b/srcpkgs/gettext/template
index 3c8250b976be..3cece9b46621 100644
--- a/srcpkgs/gettext/template
+++ b/srcpkgs/gettext/template
@@ -22,7 +22,6 @@ homepage="https://www.gnu.org/software/gettext/"
 changelog="https://git.savannah.gnu.org/cgit/gettext.git/plain/NEWS"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c77d0da3102aec9c07f43671e60611ebff89a996ef159497ce8e59d075786b12
-patch_args=-Np1
 
 subpackages="gettext-devel-examples gettext-devel gettext-devel-tools"
 unset _intl_lib
diff --git a/srcpkgs/ghc/template b/srcpkgs/ghc/template
index 0b1440b2f6d9..082c56f70358 100644
--- a/srcpkgs/ghc/template
+++ b/srcpkgs/ghc/template
@@ -15,7 +15,6 @@ license="BSD-3-Clause"
 homepage="http://www.haskell.org/ghc/"
 distfiles="http://www.haskell.org/ghc/dist/${version%[!0-9]}/${pkgname}-${version%[!0-9]}-src.tar.xz"
 checksum=f0505e38b2235ff9f1090b51f44d6c8efd371068e5a6bb42a2a6d8b67b5ffc2d
-patch_args="-Np1"
 nocross=yes # this is conditionally unset for cross bindist
 nodebug=yes # work around assembler error "Fatal error: duplicate .debug_line sections"
 _bindir="/usr/lib/${pkgname}-${version}/bin"
diff --git a/srcpkgs/ghdl/template b/srcpkgs/ghdl/template
index 1b6f0d50e327..e756d8c3cd87 100644
--- a/srcpkgs/ghdl/template
+++ b/srcpkgs/ghdl/template
@@ -18,7 +18,6 @@ homepage="https://github.com/ghdl/ghdl"
 distfiles="https://github.com/ghdl/ghdl/archive/v${version}.tar.gz"
 checksum=cb424766fbe831ff41bec84016a6af0406d735c272b0b639d507c3503df30495
 nocross=yes
-patch_args="-Np1"
 make_check=extended
 
 build_options="llvm mcode"
diff --git a/srcpkgs/ghostscript/template b/srcpkgs/ghostscript/template
index 1d7aed4dc834..5f1b5b7b64e3 100644
--- a/srcpkgs/ghostscript/template
+++ b/srcpkgs/ghostscript/template
@@ -12,7 +12,6 @@ license="AGPL-3.0-or-later, CPL-1.0"
 homepage="https://www.ghostscript.com/"
 distfiles="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${version//./}/ghostscript-${version}.tar.xz"
 checksum=c2b7b43cde600f4e70efb2cd95865f6d884a67315c3de235914697d8ccde6e3b
-patch_args="-Np1"
 
 build_options="cups"
 build_options_default="cups"
diff --git a/srcpkgs/gjs/template b/srcpkgs/gjs/template
index 27e376b4d092..4d73ae96b599 100644
--- a/srcpkgs/gjs/template
+++ b/srcpkgs/gjs/template
@@ -15,7 +15,6 @@ homepage="https://wiki.gnome.org/action/show/Projects/Gjs"
 changelog="https://gitlab.gnome.org/GNOME/gjs/blob/gnome-3-30/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=2ffa3ec2041104fcf9ab5dcc8f7cd9caa062278590318ffef9541956af5b4c70
-patch_args="-Np1"
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index b361bb98a1ea..c62a4d2aedf1 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -9,7 +9,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
 homepage="http://www.gnu.org/software/libc"
 distfiles="${GNU_SITE}/glibc/glibc-${version}.tar.xz"
 checksum=1627ea54f5a1a8467032563393e0901077626dc66f37f10ee6363bb722222836
-patch_args="-Np1"
 # Do not strip these files, objcopy errors out.
 nostrip_files="
 	XBS5_ILP32_OFFBIG
diff --git a/srcpkgs/glm/template b/srcpkgs/glm/template
index 47369d94e0da..f40f6fcf8fae 100644
--- a/srcpkgs/glm/template
+++ b/srcpkgs/glm/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="http://glm.g-truc.net"
 distfiles="https://github.com/g-truc/glm/releases/download/${version}/glm-${version}.zip"
 checksum=37e2a3d62ea3322e43593c34bae29f57e3e251ea89f4067506c94043769ade4c
-patch_args="-Np1"
 
 # No longer has install target
 # Install manually
diff --git a/srcpkgs/glu/template b/srcpkgs/glu/template
index b655d49fe569..49d8c41d9488 100644
--- a/srcpkgs/glu/template
+++ b/srcpkgs/glu/template
@@ -13,7 +13,6 @@ homepage="http://cgit.freedesktop.org/mesa/glu/"
 distfiles="https://mesa.freedesktop.org/archive/glu/glu-${version}.tar.gz"
 checksum=f6f484cfcd51e489afe88031afdea1e173aa652697e4c19ddbcb8260579a10f7
 replaces="libGLU<9.0"
-patch_args="-Np1"
 
 glu-devel_package() {
 	depends="MesaLib-devel>=9.0 glu>=${version}_${revision}"
diff --git a/srcpkgs/gnac/template b/srcpkgs/gnac/template
index 489783bdd850..ad01a1e97f91 100644
--- a/srcpkgs/gnac/template
+++ b/srcpkgs/gnac/template
@@ -18,7 +18,6 @@ license="GPL-3.0-or-later"
 homepage="http://gnac.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=8f9c4731bbc40fde57c311a2a7fabe4e3200198abfe7415c659b98a2d54869da
-patch_args="-Np1"
 CFLAGS="-fPIC -fcommon"
 
 pre_configure() {
diff --git a/srcpkgs/gnome-builder/template b/srcpkgs/gnome-builder/template
index a9011a5c7f80..ad0cc8cc6f20 100644
--- a/srcpkgs/gnome-builder/template
+++ b/srcpkgs/gnome-builder/template
@@ -21,7 +21,6 @@ homepage="https://wiki.gnome.org/Apps/Builder"
 changelog="https://gitlab.gnome.org/GNOME/gnome-builder/raw/gnome-builder-3-40/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=b2844cfde821311939fb6ed3b18a49cd331413aea720393091583ab6a99e719a
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)
diff --git a/srcpkgs/gnome-doc-utils/template b/srcpkgs/gnome-doc-utils/template
index f846f0e61253..8c55060aa4ae 100644
--- a/srcpkgs/gnome-doc-utils/template
+++ b/srcpkgs/gnome-doc-utils/template
@@ -15,7 +15,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Projects/GnomeDocUtils"
 distfiles="${GNOME_SITE}/${pkgname}/0.20/${pkgname}-${version}.tar.xz"
 checksum=cb0639ffa9550b6ddf3b62f3b1add92fb92ab4690d351f2353cffe668be8c4a6
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/gnome-panel/template b/srcpkgs/gnome-panel/template
index 315d4fc1f468..109489d8bba7 100644
--- a/srcpkgs/gnome-panel/template
+++ b/srcpkgs/gnome-panel/template
@@ -15,7 +15,6 @@ license="GPL-2.0-or-later, GFDL-1.1-or-later, LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Projects/GnomePanel"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=9f135075edc666cf2b9ca91de35c6703e2b1771c10a7707414fb656c28a59b3b
-patch_args="-Np1"
 
 gnome-panel-devel_package() {
 	depends="glib-devel gtk+3-devel ${sourcepkg}>=${version}_${revision}"
diff --git a/srcpkgs/gnome-todo/template b/srcpkgs/gnome-todo/template
index 56bd6a405af2..5fe6d1d7bc84 100644
--- a/srcpkgs/gnome-todo/template
+++ b/srcpkgs/gnome-todo/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Apps/Todo"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=c7571fc040d8901dd0e528282ef0655687f23f29d304057c72548ab3e2c2cf23
-patch_args="-Np1"
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/gobject-introspection/template b/srcpkgs/gobject-introspection/template
index c6e616dd862f..6f8bffd88d22 100644
--- a/srcpkgs/gobject-introspection/template
+++ b/srcpkgs/gobject-introspection/template
@@ -15,7 +15,6 @@ homepage="https://wiki.gnome.org/Projects/GObjectIntrospection"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=d229242481a201b84a0c66716de1752bca41db4133672cfcfb37c93eb6e54a27
 python_version=3
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" gobject-introspection qemu-user-static prelink-cross"
diff --git a/srcpkgs/gpicview/template b/srcpkgs/gpicview/template
index 24ae856fa344..19de5b5cb1e8 100644
--- a/srcpkgs/gpicview/template
+++ b/srcpkgs/gpicview/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=38466058e53702450e5899193c4b264339959b563dd5cd81f6f690de32d82942
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/graphene/template b/srcpkgs/graphene/template
index 83bb559df998..40920cb1f5b7 100644
--- a/srcpkgs/graphene/template
+++ b/srcpkgs/graphene/template
@@ -14,7 +14,6 @@ license="MIT"
 homepage="https://github.com/ebassi/graphene"
 distfiles="${GNOME_SITE}/graphene/${version%.*}/graphene-${version}.tar.xz"
 checksum=80ae57723e4608e6875626a88aaa6f56dd25df75024bd16e9d77e718c3560b25
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*) configure_args+=" -Dsse2=true" ;;
diff --git a/srcpkgs/growlight/template b/srcpkgs/growlight/template
index 863c318d4081..cc8ac363ec6f 100644
--- a/srcpkgs/growlight/template
+++ b/srcpkgs/growlight/template
@@ -15,7 +15,6 @@ license="GPL-3.0-or-later"
 homepage="https://nick-black.com/dankwiki/index.php/Growlight"
 distfiles="https://github.com/dankamongmen/growlight/archive/v${version}.tar.gz"
 checksum=ef26904412ff6134018c350fe9e1f943d37fb82a623d06327195f9bd2b939408
-patch_args=-Np1
 
 build_options="man zfs"
 
diff --git a/srcpkgs/grub-btrfs/template b/srcpkgs/grub-btrfs/template
index 2527806d6999..0e646c9c3f82 100644
--- a/srcpkgs/grub-btrfs/template
+++ b/srcpkgs/grub-btrfs/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/Antynea/grub-btrfs"
 distfiles="https://github.com/Antynea/grub-btrfs/archive/v${version}.tar.gz"
 checksum=62461133c697643e98a608239773f500edee3e4055c5729fef6639d1cd610243
-patch_args=-Np1
 
 post_install() {
 	rm -rf -- "${DESTDIR}"/usr/lib/systemd
diff --git a/srcpkgs/grub/template b/srcpkgs/grub/template
index 11cbdc495f67..69cea9ae19a3 100644
--- a/srcpkgs/grub/template
+++ b/srcpkgs/grub/template
@@ -16,7 +16,6 @@ checksum=e5292496995ad42dabe843a0192cf2a2c502e7ffcc7479398232b10a472df77d
 
 archs="i686* x86_64* aarch64* ppc ppc-musl ppc64*"
 nopie=yes
-patch_args=-Np1
 
 subpackages="grub-utils"
 # _SUPPLEMENTARY_BUILDS is a list of <TARGET>-<PLATFORN> version of grub to build
diff --git a/srcpkgs/gsimplecal-gtk2/template b/srcpkgs/gsimplecal-gtk2/template
index c7339f62d60e..73cf3bd39b88 100644
--- a/srcpkgs/gsimplecal-gtk2/template
+++ b/srcpkgs/gsimplecal-gtk2/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause"
 homepage="http://dmedvinsky.github.io/gsimplecal/"
 distfiles="https://github.com/dmedvinsky/${pkgname%-*}/archive/v${version}.tar.gz"
 checksum="660cac7333d3507203a008e142e2b8f5dfcf0735b6ccabdd8d3d902b5d2c40e9"
-patch_args=-Np1
 
 replaces="gsimplecal-gtk3>=0"
 
diff --git a/srcpkgs/gtk-doc/template b/srcpkgs/gtk-doc/template
index 9f3384a60472..ab149d7f33d5 100644
--- a/srcpkgs/gtk-doc/template
+++ b/srcpkgs/gtk-doc/template
@@ -17,4 +17,3 @@ homepage="http://www.gtk.org/gtk-doc/"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=d5e3b3f837174d246fa8482455740627efec1e5210aa15d0c7989ca68f72bb51
 python_version=3
-patch_args="-Np1"
diff --git a/srcpkgs/hostapd/template b/srcpkgs/hostapd/template
index 20e16a32fc0f..87cf12033e40 100644
--- a/srcpkgs/hostapd/template
+++ b/srcpkgs/hostapd/template
@@ -12,7 +12,6 @@ license="BSD-3-Clause"
 homepage="http://w1.fi/hostapd/"
 distfiles="http://w1.fi/releases/${pkgname}-${version}.tar.gz"
 checksum=881d7d6a90b2428479288d64233151448f8990ab4958e0ecaca7eeb3c9db2bd7
-patch_args=-Np1
 
 do_configure() {
 	cp -f ${FILESDIR}/config .config
diff --git a/srcpkgs/ifstatus/template b/srcpkgs/ifstatus/template
index f1e9d9f4d802..2515a71d669a 100644
--- a/srcpkgs/ifstatus/template
+++ b/srcpkgs/ifstatus/template
@@ -4,7 +4,6 @@ version=2.0.0
 revision=1
 wrksrc=ifstatus-v${version}
 build_style=gnu-makefile
-patch_args="-Np1"
 hostmakedepends="pkg-config"
 makedepends="ncurses-devel"
 short_desc="Display network traffic on console"
diff --git a/srcpkgs/iio-sensor-proxy/template b/srcpkgs/iio-sensor-proxy/template
index e8cff0494b99..a47ca09e8b2d 100644
--- a/srcpkgs/iio-sensor-proxy/template
+++ b/srcpkgs/iio-sensor-proxy/template
@@ -11,7 +11,6 @@ license="GPL-3.0-or-later"
 homepage="https://gitlab.freedesktop.org/hadess/iio-sensor-proxy"
 distfiles="${homepage}/-/archive/${version}/${pkgname}-${version}.tar.gz"
 checksum=77f6009050afcabdf324b187992c33c6f1d937fc9e2c18ec76d9120fa107f3ba
-patch_args="-Np1"
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/incron/template b/srcpkgs/incron/template
index cd7e3f34eaed..22082e501061 100644
--- a/srcpkgs/incron/template
+++ b/srcpkgs/incron/template
@@ -8,7 +8,6 @@ license="X11"
 homepage="https://github.com/ar-/incron"
 distfiles="https://github.com/ar-/incron/archive/${version}.tar.gz"
 checksum=cce80bd723bafce59f35464f2f851d02707e32efa102e2b941ed0e42bdd38f91
-patch_args="-Np1"
 
 make_dirs="/var/spool/incron 0755 root root
  /etc/incron.d 0755 root root"
diff --git a/srcpkgs/inkscape/template b/srcpkgs/inkscape/template
index 6e97a43a4ed5..84d99227e745 100644
--- a/srcpkgs/inkscape/template
+++ b/srcpkgs/inkscape/template
@@ -23,7 +23,6 @@ homepage="http://inkscape.org/"
 distfiles="https://media.inkscape.org/dl/resources/file/inkscape-${version}.tar.xz"
 checksum=71e6e8ce3fdf702f59dbc4a276665eb982eb7822b029bbdbeced2df4301795e6
 python_version=3
-patch_args=-Np1
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
diff --git a/srcpkgs/interbench/template b/srcpkgs/interbench/template
index 26a7f9e41d27..ae38e3ca9561 100644
--- a/srcpkgs/interbench/template
+++ b/srcpkgs/interbench/template
@@ -10,7 +10,6 @@ homepage="http://users.on.net/~ckolivas/interbench"
 distfiles="http://ck.kolivas.org/apps/interbench/$pkgname-$version.tar.bz2"
 checksum=89d438b28aef22d26e79812762a57a9f9344a8dd8826edebfe60dad48ee1c784
 
-patch_args="-p1"
 
 pre_build() {
 	cp $FILESDIR/Makefile .
diff --git a/srcpkgs/ispc/template b/srcpkgs/ispc/template
index 585115923c0d..9c3acb42a9cf 100644
--- a/srcpkgs/ispc/template
+++ b/srcpkgs/ispc/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause"
 homepage="https://ispc.github.io"
 distfiles="https://github.com/ispc/ispc/archive/v${version}.tar.gz"
 checksum=2658ff00dc045ac9fcefbf6bd26dffaf723b059a942a27df91bbb61bc503a285
-patch_args="-p1"
 nocross=yes
 nopie=yes
 
diff --git a/srcpkgs/jasper/template b/srcpkgs/jasper/template
index ae02985e45d0..588dc517f017 100644
--- a/srcpkgs/jasper/template
+++ b/srcpkgs/jasper/template
@@ -12,7 +12,6 @@ license="JasPer-2.0"
 homepage="http://www.ece.uvic.ca/~mdadams/jasper"
 distfiles="https://github.com/mdadams/jasper/archive/version-${version}.tar.gz"
 checksum=f5bc48e2884bcabd2aca1737baff4ca962ec665b6eb673966ced1f7adea07edb
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/json-c/template b/srcpkgs/json-c/template
index 02e4d9d75ca0..daafc44f97ac 100644
--- a/srcpkgs/json-c/template
+++ b/srcpkgs/json-c/template
@@ -12,7 +12,6 @@ license="MIT"
 homepage="https://json-c.github.io/json-c"
 distfiles="https://s3.amazonaws.com/json-c_releases/releases/${pkgname}-${version}.tar.gz"
 checksum=b8d80a1ddb718b3ba7492916237bbf86609e9709fb007e7f7d4322f02341a4c6
-patch_args="-Np1"
 
 CFLAGS="-Wno-error"
 
diff --git a/srcpkgs/judy/template b/srcpkgs/judy/template
index 15bdb3548fa4..899c7a7622c6 100644
--- a/srcpkgs/judy/template
+++ b/srcpkgs/judy/template
@@ -11,7 +11,6 @@ homepage="http://judy.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/judy/Judy-${version}.tar.gz"
 checksum=d2704089f85fdb6f2cd7e77be21170ced4b4375c03ef1ad4cf1075bd414a63eb
 disable_parallel_build=yes
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 post_extract() {
diff --git a/srcpkgs/julia/template b/srcpkgs/julia/template
index 414e261e1c67..0e766ca53906 100644
--- a/srcpkgs/julia/template
+++ b/srcpkgs/julia/template
@@ -30,7 +30,6 @@ license="MIT"
 homepage="https://julialang.org"
 distfiles="https://github.com/JuliaLang/julia/releases/download/v${version}/julia-${version}-full.tar.gz"
 checksum=71d8e40611361370654e8934c407b2dec04944cf3917c5ecb6482d6b85ed767f
-patch_args=-Np1
 nocross="build system is a mess"
 # Targets for the vendored symlinks mentioned above
 shlib_requires="libgit2.so.1.0 libcurl.so.4 libmpfr.so.6 libgmp.so.10
diff --git a/srcpkgs/kakasi/template b/srcpkgs/kakasi/template
index 1a4bc42eb4f4..ad0fcbcc8fac 100644
--- a/srcpkgs/kakasi/template
+++ b/srcpkgs/kakasi/template
@@ -10,7 +10,6 @@ license="GPL-2.0-or-later"
 homepage="http://kakasi.namazu.org/"
 distfiles="http://kakasi.namazu.org/stable/kakasi-${version}.tar.gz"
 checksum=004276fd5619c003f514822d82d14ae83cd45fb9338e0cb56a44974b44961893
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" kakasi"
diff --git a/srcpkgs/kitty/template b/srcpkgs/kitty/template
index 5a8dcc8b4fb8..6ad4cffa0777 100644
--- a/srcpkgs/kitty/template
+++ b/srcpkgs/kitty/template
@@ -14,7 +14,6 @@ homepage="https://sw.kovidgoyal.net/kitty/"
 changelog="https://sw.kovidgoyal.net/kitty/changelog.html"
 distfiles="https://github.com/kovidgoyal/kitty/releases/download/v${version}/kitty-${version}.tar.xz"
 checksum=43596a1c5645fe476e96e748bb3b44afd680d84b4af409cd36b33de19b31933d
-patch_args="-Np1"
 python_version=3
 LDFLAGS+=" -Wl,-z,stack-size=2097152"
 
diff --git a/srcpkgs/kmymoney/template b/srcpkgs/kmymoney/template
index 3b7e889f93a8..7a95dd99ae13 100644
--- a/srcpkgs/kmymoney/template
+++ b/srcpkgs/kmymoney/template
@@ -19,7 +19,6 @@ license="GPL-2.0-or-later"
 homepage="https://kmymoney.org"
 distfiles="${KDE_SITE}/kmymoney/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=df7b9f78e8596f99d28295ca738708f0655ee057789dfd921c7b1bab96578298
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DENABLE_LIBICAL=0"
diff --git a/srcpkgs/kodi-rpi/template b/srcpkgs/kodi-rpi/template
index fc0fbd05ffba..d92a4f6217d8 100644
--- a/srcpkgs/kodi-rpi/template
+++ b/srcpkgs/kodi-rpi/template
@@ -13,7 +13,6 @@ distfiles="https://github.com/xbmc/xbmc/archive/${version}-${_codename}.tar.gz"
 checksum=6deb28f725880b1ab6c5920b55ef1190a79b0684ffb30b6e13b199d23a0af296
 LDFLAGS+=" -Wl,-z,stack-size=1048576"
 python_version=2
-patch_args="-Np1"
 
 nopie=yes
 archs="armv6l* armv7l*"
diff --git a/srcpkgs/kodi/template b/srcpkgs/kodi/template
index c64d926eb010..8f10f4f04887 100644
--- a/srcpkgs/kodi/template
+++ b/srcpkgs/kodi/template
@@ -33,7 +33,6 @@ checksum+=" 071e414e61b795f2ff9015b21a85fc009dde967f27780d23092643916538a57a"
 skip_extraction="crossguid-8f399e8bd4.tar.gz libdvdcss-1.4.2-Leia-Beta-5.tar.gz
  libdvdread-6.0.0-Leia-Alpha-3.tar.gz libdvdnav-6.0.0-Leia-Alpha-3.tar.gz"
 python_version=3
-patch_args="-Np1"
 LDFLAGS="-Wl,-z,stack-size=1048576"
 
 if [ "$XBPS_WORDSIZE" = 32 ]; then
diff --git a/srcpkgs/kreport/template b/srcpkgs/kreport/template
index 2dade86a8f47..af0a9d8509b0 100644
--- a/srcpkgs/kreport/template
+++ b/srcpkgs/kreport/template
@@ -12,7 +12,6 @@ license="LGPL-2.0-or-later"
 homepage="https://community.kde.org/KReport"
 distfiles="${KDE_SITE}/kreport/src/kreport-${version}.tar.xz"
 checksum=22716d719654e8f887fe4d33654e252ddf3d3d818c44e15a8af0e6f2e7d6ccd7
-patch_args=-Np1
 
 kreport-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision} kproperty-devel qt5-declarative-devel"
diff --git a/srcpkgs/kwin/template b/srcpkgs/kwin/template
index 7cb252b2d00b..23cf78df1ff1 100644
--- a/srcpkgs/kwin/template
+++ b/srcpkgs/kwin/template
@@ -19,7 +19,6 @@ license="GPL-2.0-or-later"
 homepage="https://invent.kde.org/plasma/kwin"
 distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
 checksum=5506ee878e151734893bbcc0a70d6499c894b8986488c9c57285de1deb422850
-patch_args=-Np1
 
 build_options="pipewire"
 build_options_default="pipewire"
diff --git a/srcpkgs/libbaseencode/template b/srcpkgs/libbaseencode/template
index d5929ad7bb51..1c9299b1beae 100644
--- a/srcpkgs/libbaseencode/template
+++ b/srcpkgs/libbaseencode/template
@@ -9,7 +9,6 @@ license="Apache-2.0"
 homepage="https://github.com/paolostivanin/libbaseencode"
 distfiles="https://github.com/paolostivanin/libbaseencode/archive/v${version}.tar.gz"
 checksum=a183d7cf30d931b2a078d6f0ef64616b71ab26f9258e5f4e191778c7ace7175d
-patch_args=-Np1
 
 libbaseencode-devel_package() {
 	depends="libbaseencode-${version}_${revision}"
diff --git a/srcpkgs/libcotp/template b/srcpkgs/libcotp/template
index 88337290d1e8..9e147ff7deb6 100644
--- a/srcpkgs/libcotp/template
+++ b/srcpkgs/libcotp/template
@@ -11,7 +11,6 @@ license="Apache-2.0"
 homepage="https://github.com/paolostivanin/libcotp"
 distfiles="https://github.com/paolostivanin/libcotp/archive/v${version}.tar.gz"
 checksum=25b45ffa4aece5cc689503ebea7356a2f760c194f0c41805934495d2fe7165b1
-patch_args=-Np1
 
 libcotp-devel_package() {
 	depends="libcotp-${version}_${revision}"
diff --git a/srcpkgs/libextractor/template b/srcpkgs/libextractor/template
index 884dbd8c09e8..29d5b8df01f8 100644
--- a/srcpkgs/libextractor/template
+++ b/srcpkgs/libextractor/template
@@ -14,7 +14,6 @@ license="GPL-3.0-or-later"
 homepage="https://www.gnu.org/software/libextractor/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=16f633ab8746a38547c4a1da3f4591192b0825ad83c4336f0575b85843d8bd8f
-patch_args="-Np1"
 
 post_install() {
 	sed -i "s|\(-specs=.*hardened-ld\)||g" ${DESTDIR}/usr/lib/pkgconfig/libextractor.pc
diff --git a/srcpkgs/libfcitx-qt5/template b/srcpkgs/libfcitx-qt5/template
index 057259b40232..c519a3b617bc 100644
--- a/srcpkgs/libfcitx-qt5/template
+++ b/srcpkgs/libfcitx-qt5/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
 homepage="https://fcitx-im.org/"
 distfiles="http://download.fcitx-im.org/fcitx-qt5/fcitx-qt5-${version}.tar.xz"
 checksum=e5c3ccdf406c19bde48ab5f59ac208967c3ca4f520626cdb66baf63f6160d946
-patch_args=-Np1
 
 post_install() {
 	vlicense COPYING.BSD
diff --git a/srcpkgs/libgcrypt/template b/srcpkgs/libgcrypt/template
index 3a6032d6cc6c..e466a315e7f3 100644
--- a/srcpkgs/libgcrypt/template
+++ b/srcpkgs/libgcrypt/template
@@ -11,7 +11,6 @@ license="LGPL-2.1-or-later"
 homepage="https://www.gnupg.org"
 distfiles="https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${version}.tar.bz2"
 checksum=97ebe4f94e2f7e35b752194ce15a0f3c66324e0ff6af26659bbfb5ff2ec328fd
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" ac_cv_sys_symbol_underscore=no"
diff --git a/srcpkgs/libgpg-error/template b/srcpkgs/libgpg-error/template
index 309860f3f5a7..98a7c475d1d3 100644
--- a/srcpkgs/libgpg-error/template
+++ b/srcpkgs/libgpg-error/template
@@ -9,7 +9,6 @@ license="LGPL-2.1-or-later, GPL-2.0-or-later"
 homepage="https://www.gnupg.org"
 distfiles="https://www.gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=fc07e70f6c615f8c4f590a8e37a9b8dd2e2ca1e9408f8e60459c67452b925e23
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends="qemu-user-static"
diff --git a/srcpkgs/libhugetlbfs/template b/srcpkgs/libhugetlbfs/template
index 33a645b07753..3a9de8e8d2cd 100644
--- a/srcpkgs/libhugetlbfs/template
+++ b/srcpkgs/libhugetlbfs/template
@@ -13,7 +13,6 @@ license="LGPL-2.1-or-later"
 homepage="https://github.com/libhugetlbfs/libhugetlbfs"
 distfiles="https://github.com/${pkgname}/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
 checksum=b70672f1e807c61b7eb3adf41c1903b42917951f2e7f8aef6821841700c04479
-patch_args="-Np1"
 CFLAGS="-fPIC"
 
 do_check() {
diff --git a/srcpkgs/libical/template b/srcpkgs/libical/template
index 2d97ec032b62..a167a7b4f2e3 100644
--- a/srcpkgs/libical/template
+++ b/srcpkgs/libical/template
@@ -15,7 +15,6 @@ license="LGPL-2.1-only, MPL-2.0"
 homepage="http://libical.github.io/libical/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
 checksum=09fecacaf75ba5a242159e3a9758a5446b5ce4d0ab684f98a7040864e1d1286f
-patch_args="-Np1"
 disable_parallel_build=yes
 
 build_options="gir"
diff --git a/srcpkgs/libid3tag/template b/srcpkgs/libid3tag/template
index 6ffa35b9387d..bd946e222c28 100644
--- a/srcpkgs/libid3tag/template
+++ b/srcpkgs/libid3tag/template
@@ -2,7 +2,6 @@
 pkgname=libid3tag
 version=0.15.1b
 revision=8
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="pkg-config gperf"
 makedepends="zlib-devel"
diff --git a/srcpkgs/libknet1/template b/srcpkgs/libknet1/template
index bdd6d2b14db1..d261c8c36c9d 100644
--- a/srcpkgs/libknet1/template
+++ b/srcpkgs/libknet1/template
@@ -17,7 +17,6 @@ homepage="https://www.kronosnet.org"
 distfiles="https://kronosnet.org/releases/kronosnet-${version}.tar.bz2"
 checksum=c2ee20a9b5b0791ed5379b38b0b51d549603933925a839f045455553f03e6114
 
-patch_args='-Np1'
 
 CFLAGS="-Wno-format-truncation"
 
diff --git a/srcpkgs/libode/template b/srcpkgs/libode/template
index a899f1024e4a..f6c855cbce75 100644
--- a/srcpkgs/libode/template
+++ b/srcpkgs/libode/template
@@ -12,7 +12,6 @@ license="LGPL-2/BSD"
 homepage="http://www.ode.org"
 distfiles="https://bitbucket.org/odedevs/ode/downloads/ode-${version}.tar.gz"
 checksum=4ba3b76f9c1314160de483b3db92b0569242a07452cbb25b368e75deb3cabf27
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libogdf/template b/srcpkgs/libogdf/template
index 5ca0549acc51..49090dc3a93c 100644
--- a/srcpkgs/libogdf/template
+++ b/srcpkgs/libogdf/template
@@ -15,7 +15,6 @@ homepage="https://ogdf.uos.de/"
 distfiles="https://ogdf.uos.de/wp-content/uploads/2019/04/ogdf-snapshot-${version//./-}.zip"
 checksum=347c3fa8dcdbb094f9c43008cbc2934bc5a64a532af4d3fe360a5fa54488440f
 nocross="can't find cpuid.h headers"
-patch_args=-Np1
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	broken="Non optional usage of broken mallinfo"
diff --git a/srcpkgs/libopenshot/template b/srcpkgs/libopenshot/template
index 7a3a5a2cfd9d..595ff6f7edcc 100644
--- a/srcpkgs/libopenshot/template
+++ b/srcpkgs/libopenshot/template
@@ -16,7 +16,6 @@ license="LGPL-3.0-or-later"
 homepage="https://github.com/OpenShot/libopenshot"
 distfiles="https://github.com/OpenShot/libopenshot/archive/v${version}.tar.gz"
 checksum=8ae7d226fbd2efbc84da4f7d9d8c7f3cc9616e4de46e1233e3b0a84ac0a429bc
-patch_args="-Np1"
 # FIXME: tests segfault
 make_check=extended
 
diff --git a/srcpkgs/libpgf/template b/srcpkgs/libpgf/template
index bf71a8d2fff9..54383332b2cb 100644
--- a/srcpkgs/libpgf/template
+++ b/srcpkgs/libpgf/template
@@ -2,7 +2,6 @@
 pkgname=libpgf
 version=6.14.12
 revision=3
-patch_args="-Np1"
 wrksrc="$pkgname"
 build_style=gnu-configure
 hostmakedepends="automake libtool"
diff --git a/srcpkgs/libsasl/template b/srcpkgs/libsasl/template
index c0d20324790b..b9dbe7bc2f86 100644
--- a/srcpkgs/libsasl/template
+++ b/srcpkgs/libsasl/template
@@ -17,7 +17,6 @@ license="BSD-3-Clause-Attribution"
 homepage="https://www.cyrusimap.org/sasl/"
 distfiles="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-${version}/cyrus-sasl-${version}.tar.gz"
 checksum=26866b1549b00ffd020f188a43c258017fa1c382b3ddadd8201536f72efb05d5
-patch_args="-Np1"
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/libtar/template b/srcpkgs/libtar/template
index 1ba6d6a29050..84280b727ef9 100644
--- a/srcpkgs/libtar/template
+++ b/srcpkgs/libtar/template
@@ -3,7 +3,6 @@ pkgname=libtar
 version=1.2.20
 revision=3
 wrksrc="$pkgname"
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="automake libtool pkg-config"
 makedepends="zlib-devel"
diff --git a/srcpkgs/libtls/template b/srcpkgs/libtls/template
index a163b69eee98..5ab8c6c84e26 100644
--- a/srcpkgs/libtls/template
+++ b/srcpkgs/libtls/template
@@ -21,7 +21,6 @@ build_options="asm"
 desc_option_asm="Use platform assembly for faster crypto"
 
 build_options_default="asm"
-patch_args=-Np1
 
 if [ "$build_option_asm" ]; then
 	distfiles+=" https://github.com/q66/libressl-portable-asm/archive/v${_lssl_asm_ver}.tar.gz"
diff --git a/srcpkgs/libtomcrypt/template b/srcpkgs/libtomcrypt/template
index 63635e14c995..4475f1d5b33e 100644
--- a/srcpkgs/libtomcrypt/template
+++ b/srcpkgs/libtomcrypt/template
@@ -11,7 +11,6 @@ homepage="http://www.libtom.net/?page=features&newsitems=5&whatfile=crypt"
 distfiles="https://github.com/libtom/libtomcrypt/releases/download/v${version}/crypt-${version}.tar.xz"
 checksum=96ad4c3b8336050993c5bc2cf6c057484f2b0f9f763448151567fbab5e767b84
 
-patch_args="-Np1"
 CFLAGS="-DGMP_DESC -DLTM_DESC -DUSE_LTM"
 
 do_build() {
diff --git a/srcpkgs/libunique1/template b/srcpkgs/libunique1/template
index 7b3e81316b59..f73931b0c72b 100644
--- a/srcpkgs/libunique1/template
+++ b/srcpkgs/libunique1/template
@@ -14,7 +14,6 @@ license="LGPL-2.1-or-later"
 homepage="https://wiki.gnome.org/Attic/LibUnique"
 distfiles="${GNOME_SITE}/libunique/1.1/libunique-${version}.tar.bz2"
 checksum=e5c8041cef8e33c55732f06a292381cb345db946cf792a4ae18aa5c66cdd4fbb
-patch_args="-Np1"
 
 CFLAGS="-Wno-deprecated-declarations"
 
diff --git a/srcpkgs/libvorbis/template b/srcpkgs/libvorbis/template
index e962ccbf512a..252ab68c7f94 100644
--- a/srcpkgs/libvorbis/template
+++ b/srcpkgs/libvorbis/template
@@ -2,7 +2,6 @@
 pkgname=libvorbis
 version=1.3.7
 revision=1
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="pkg-config"
 makedepends="libogg-devel"
diff --git a/srcpkgs/lightdm-gtk-greeter/template b/srcpkgs/lightdm-gtk-greeter/template
index 66651a7af8ad..c2c37197fe8c 100644
--- a/srcpkgs/lightdm-gtk-greeter/template
+++ b/srcpkgs/lightdm-gtk-greeter/template
@@ -16,7 +16,6 @@ homepage="https://launchpad.net/lightdm-gtk-greeter"
 distfiles="${homepage}/${version%.*}/${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=22386e787dc64ac372c63cf2cdce47bfa1c791d1cf8b5d3df68df24ecfbf7d68
 conflicts="lightdm-gtk3-greeter>=0"
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/linux-driver-management/template b/srcpkgs/linux-driver-management/template
index 2d8f51fa078c..0a8859cb73b4 100644
--- a/srcpkgs/linux-driver-management/template
+++ b/srcpkgs/linux-driver-management/template
@@ -17,7 +17,6 @@ license="LGPL-2.1-only"
 homepage="https://github.com/solus-project/linux-driver-management"
 distfiles="https://github.com/solus-project/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=968ef61fbb7e26b89ef9456f03cf31c616bdc8fc69531fcfd9f90ae0f4ff147b
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	# host needs glib-mkenums
diff --git a/srcpkgs/linux4.14/template b/srcpkgs/linux4.14/template
index be7732d07bc3..9d9d56af8c3f 100644
--- a/srcpkgs/linux4.14/template
+++ b/srcpkgs/linux4.14/template
@@ -13,7 +13,6 @@ checksum="f81d59477e90a130857ce18dc02f4fbe5725854911db1e7ba770c7cd350f96a7
  b9afed9ae1f63b67fa01d17b3146f23a2ab5ef8ce458f3aec4d0b174553d0c52"
 skip_extraction="patch-${version}.xz"
 python_version=2 #unverified
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/linux4.19/template b/srcpkgs/linux4.19/template
index 3bbe09617546..5792f6904911 100644
--- a/srcpkgs/linux4.19/template
+++ b/srcpkgs/linux4.19/template
@@ -10,7 +10,6 @@ homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${version}.tar.xz"
 checksum=aaaebdccf599f77148fe170642fa7dc2452cf994b5cbbb4d39cab9e7f4058896
 python_version=3
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/linux4.9/template b/srcpkgs/linux4.9/template
index 553f87b04f6a..bad95d88f072 100644
--- a/srcpkgs/linux4.9/template
+++ b/srcpkgs/linux4.9/template
@@ -13,7 +13,6 @@ checksum="029098dcffab74875e086ae970e3828456838da6e0ba22ce3f64ef764f3d7f1a
  f808e190ab3d4b254b22c8b93936747c135a47c1a66d657af0e494bfbc125ca5"
 python_version=2 #unverified
 skip_extraction="patch-${version}.xz"
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/linux5.10/template b/srcpkgs/linux5.10/template
index 5a6b35e18c74..b63592c5880b 100644
--- a/srcpkgs/linux5.10/template
+++ b/srcpkgs/linux5.10/template
@@ -10,7 +10,6 @@ homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${version}.tar.xz"
 checksum=77beefa59c854ce1e8353db947a71a8a91f2a907aed45c1335ac1f209983c767
 python_version=3
-patch_args="-Np1"
 
 # XXX Restrict archs until a proper <arch>-dotconfig is available in FILESDIR.
 archs="x86_64* i686* ppc* aarch64*"
diff --git a/srcpkgs/linux5.11/template b/srcpkgs/linux5.11/template
index ab3f6f627750..3d6e5facc176 100644
--- a/srcpkgs/linux5.11/template
+++ b/srcpkgs/linux5.11/template
@@ -13,7 +13,6 @@ checksum="04f07b54f0d40adfab02ee6cbd2a942c96728d87c1ef9e120d0cb9ba3fe067b4
  07aac31956d3f483a91506524befd45962f3bbfda2f8d43cf90713caf872d9ba"
 skip_extraction="patch-${version}.xz"
 python_version=3
-patch_args="-Np1"
 
 # XXX Restrict archs until a proper <arch>-dotconfig is available in FILESDIR.
 archs="x86_64* i686* aarch64* ppc*"
diff --git a/srcpkgs/linux5.12/template b/srcpkgs/linux5.12/template
index 5276698b36a0..06ead94605c9 100644
--- a/srcpkgs/linux5.12/template
+++ b/srcpkgs/linux5.12/template
@@ -13,7 +13,6 @@ checksum="7d0df6f2bf2384d68d0bd8e1fe3e071d64364dcdc6002e7b5c87c92d48fac366
  034eb39ad49f3a26fc1b4ef799ef481ce35fe03e2b24131e9cd3d2805a99ad19"
 skip_extraction="patch-${version}.xz"
 python_version=3
-patch_args="-Np1"
 
 # XXX Restrict archs until a proper <arch>-dotconfig is available in FILESDIR.
 archs="x86_64* i686* aarch64* ppc*"
diff --git a/srcpkgs/linux5.4/template b/srcpkgs/linux5.4/template
index 40fe79b4abca..1adba525e68d 100644
--- a/srcpkgs/linux5.4/template
+++ b/srcpkgs/linux5.4/template
@@ -10,7 +10,6 @@ homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${version}.tar.xz"
 checksum=17ee750a4aeb1c883d721e730d1f7e2855124585e2f47766864a1359a7ebe33c
 python_version=3
-patch_args="-Np1"
 
 nodebug=yes  # -dbg package is generated below manually
 nostrip=yes
diff --git a/srcpkgs/loudgain/template b/srcpkgs/loudgain/template
index 00b2d20d27d6..da4f2d56e94c 100644
--- a/srcpkgs/loudgain/template
+++ b/srcpkgs/loudgain/template
@@ -11,7 +11,6 @@ license="BSD-2-Clause"
 homepage="https://github.com/Moonbase59/loudgain"
 distfiles="https://github.com/Moonbase59/loudgain/archive/v${version}.tar.gz"
 checksum=1137c193ad941b366e87c5d84ccc95a7aa8571affc060db0bd1cf72c489aeaee
-patch_args=-Np1
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/lxde-common/template b/srcpkgs/lxde-common/template
index df521545d44e..f7521d1b9030 100644
--- a/srcpkgs/lxde-common/template
+++ b/srcpkgs/lxde-common/template
@@ -12,4 +12,3 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=1cd9bc900960c995d48ffbbdc86ecffda7c806168c67aaa50c53113794234856
-patch_args="-Np1"
diff --git a/srcpkgs/lxlauncher/template b/srcpkgs/lxlauncher/template
index 5b91dc9c7202..917049e5da74 100644
--- a/srcpkgs/lxlauncher/template
+++ b/srcpkgs/lxlauncher/template
@@ -16,7 +16,6 @@ license="GPL-2.0-or-later"
 homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
 checksum=cd14b59cf337e7ba0d67efc95cd79859ab5f0f85af5a84c7aff771f868c3dca7
-patch_args="-Np1"
 
 post_patch() {
 	vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
diff --git a/srcpkgs/lxsession/template b/srcpkgs/lxsession/template
index bf5ad1543557..8fe456a1d43e 100644
--- a/srcpkgs/lxsession/template
+++ b/srcpkgs/lxsession/template
@@ -14,7 +14,6 @@ homepage="http://lxde.org/"
 distfiles="${SOURCEFORGE_SITE}/lxde/$pkgname-$version.tar.xz"
 checksum=e43e0d9c033095559ab57c8821c2b84fea58009d267db1324d32dca8bd4dbb46
 replaces="lxpolkit>=0"
-patch_args="-Np1"
 
 pre_build() {
 	rm *.stamp
diff --git a/srcpkgs/m4/template b/srcpkgs/m4/template
index ad0d585a2649..78f3dae6184a 100644
--- a/srcpkgs/m4/template
+++ b/srcpkgs/m4/template
@@ -2,7 +2,6 @@
 pkgname=m4
 version=1.4.18
 revision=2
-patch_args="-Np1"
 bootstrap=yes
 replaces="chroot-m4>=0"
 build_style=gnu-configure
diff --git a/srcpkgs/mac-fdisk/template b/srcpkgs/mac-fdisk/template
index e49accf70f02..954609a0a23a 100644
--- a/srcpkgs/mac-fdisk/template
+++ b/srcpkgs/mac-fdisk/template
@@ -10,7 +10,6 @@ license="GPL-2.0-or-later"
 homepage="https://packages.debian.org/sid/mac-fdisk"
 distfiles="http://deb.debian.org/debian/pool/main/m/mac-fdisk/mac-fdisk_${version}.orig.tar.gz"
 checksum=7059fc4ba41ca2ef857e1092e9c56e910f27693d407b5c3d78f7102ad0c56a66
-patch_args="-Np1"
 
 CFLAGS="-D_GNU_SOURCE"
 
diff --git a/srcpkgs/mailx/template b/srcpkgs/mailx/template
index 63ec23e72e07..af0f33598b10 100644
--- a/srcpkgs/mailx/template
+++ b/srcpkgs/mailx/template
@@ -2,7 +2,6 @@
 pkgname=mailx
 version=12.5
 revision=25
-patch_args="-Np1"
 wrksrc="mailx-${version}"
 makedepends="openssl-devel mit-krb5-devel"
 conf_files="/etc/mailx.rc"
diff --git a/srcpkgs/make/template b/srcpkgs/make/template
index 0aebcbc70be6..9a980aa10dde 100644
--- a/srcpkgs/make/template
+++ b/srcpkgs/make/template
@@ -15,4 +15,3 @@ homepage="http://www.gnu.org/software/make"
 distfiles="${GNU_SITE}/make/${pkgname}-${version}.tar.lz"
 checksum=de1a441c4edf952521db30bfca80baae86a0ff1acd0a00402999344f04c45e82
 build_options=guile
-patch_args="-Np1"
diff --git a/srcpkgs/mbuffer/template b/srcpkgs/mbuffer/template
index 97e0daac30e8..b1b30619272f 100644
--- a/srcpkgs/mbuffer/template
+++ b/srcpkgs/mbuffer/template
@@ -11,5 +11,4 @@ license="GPL-3.0-or-later"
 homepage="https://www.maier-komor.de/mbuffer.html"
 distfiles="https://www.maier-komor.de/software/mbuffer/mbuffer-${version}.tgz"
 checksum=51b5b8d8488991a55fe1dfce90130f9e47bc1ce286ba03b4f628c04b784fdc5d
-patch_args=-Np1
 conf_files="/etc/mbuffer.rc"
diff --git a/srcpkgs/mellowplayer/template b/srcpkgs/mellowplayer/template
index 3bd4a704985a..3afe098a08f4 100644
--- a/srcpkgs/mellowplayer/template
+++ b/srcpkgs/mellowplayer/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://colinduquesnoy.gitlab.io/MellowPlayer/"
 distfiles="https://gitlab.com/ColinDuquesnoy/MellowPlayer/-/archive/${version}/MellowPlayer-${version}.tar.bz2"
 checksum=7571588a704d0e76e65764f7a7725cf2b22125e06d930f236d19f75c1ecf559d
-patch_args=-Np1
 
 if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
 	broken="webengine can be built only if word size matches"
diff --git a/srcpkgs/mkinitcpio-nfs-utils/template b/srcpkgs/mkinitcpio-nfs-utils/template
index d8f23343ad6a..f40c42735fd6 100644
--- a/srcpkgs/mkinitcpio-nfs-utils/template
+++ b/srcpkgs/mkinitcpio-nfs-utils/template
@@ -18,7 +18,6 @@ case "$XBPS_TARGET_MACHINE" in
 	;;
 esac
 
-patch_args="-Np1"
 
 post_extract() {
 	sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' */Makefile
diff --git a/srcpkgs/mkinitcpio/template b/srcpkgs/mkinitcpio/template
index 04277348348d..d3f89d781382 100644
--- a/srcpkgs/mkinitcpio/template
+++ b/srcpkgs/mkinitcpio/template
@@ -13,7 +13,6 @@ homepage="https://git.archlinux.org/mkinitcpio.git"
 distfiles="https://sources.archlinux.org/other/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c7725035a06d2ab6ef6e97601b69859d6061aec95c4551e2a1ad2e27d307258f
 conf_files="/etc/mkinitcpio.conf"
-patch_args="-Np1"
 replaces="mkinitcpio-udev>=0"
 
 pre_check() {
diff --git a/srcpkgs/motif/template b/srcpkgs/motif/template
index 56f330f259ab..6e38db0a9516 100644
--- a/srcpkgs/motif/template
+++ b/srcpkgs/motif/template
@@ -14,7 +14,6 @@ homepage="https://sourceforge.net/projects/motif/"
 distfiles="${SOURCEFORGE_SITE}/motif/Motif%20${version}%20Source%20Code/motif-${version}.tar.gz"
 checksum=859b723666eeac7df018209d66045c9853b50b4218cecadb794e2359619ebce7
 replaces="lesstif>=0"
-patch_args="-Np1"
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" $makedepends"
diff --git a/srcpkgs/mouseemu/template b/srcpkgs/mouseemu/template
index 1519c7b7ef6a..7a64d63acd85 100644
--- a/srcpkgs/mouseemu/template
+++ b/srcpkgs/mouseemu/template
@@ -11,7 +11,6 @@ homepage="http://geekounet.org/powerbook/"
 distfiles="http://deb.debian.org/debian/pool/main/m/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=bbef220a814931f8ee482c82dfd63ad0a8ec895fc7df7bac1a1ada880d59af59
 conf_files="/etc/sv/mouseemu/conf"
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	x86_64*|i686*) depends+=" dmidecode";;
diff --git a/srcpkgs/mozjs78/template b/srcpkgs/mozjs78/template
index ee443e7a64c8..87e90b422b4e 100644
--- a/srcpkgs/mozjs78/template
+++ b/srcpkgs/mozjs78/template
@@ -17,7 +17,6 @@ license="MPL-2.0"
 homepage="https://www.mozilla.org/firefox/"
 distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.xz"
 checksum=8e03ac1dfc5ac804c8b13a529414a9387e0425e545bb2f4462d74c3175e64864
-patch_args="-Np1"
 
 CXXFLAGS="-Wno-class-memaccess"
 LDFLAGS="-Wl,-z,stack-size=1048576"
diff --git a/srcpkgs/mupdf/template b/srcpkgs/mupdf/template
index 1279d8c680d4..de89007c8f06 100644
--- a/srcpkgs/mupdf/template
+++ b/srcpkgs/mupdf/template
@@ -16,7 +16,6 @@ license="AGPL-3.0-only"
 homepage="https://mupdf.com"
 distfiles="https://mupdf.com/downloads/archive/${pkgname}-${version}-source.tar.gz"
 checksum=8860ea6d01fc3c360ba5e0fa9fede241c6fbb2a73f5215b17a105de409a19266
-patch_args="-Np1"
 
 pre_build() {
 	# libmupdf-{threads,pkcs7}.a are required by fbpdf
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index eaa3dc12e8e5..337a3082faa9 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="http://www.musl-libc.org/"
 distfiles="http://www.musl-libc.org/releases/musl-${version}.tar.gz"
 checksum=1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
-patch_args=-Np1
 
 nostrip_files="libc.so"
 shlib_provides="libc.so"
diff --git a/srcpkgs/ndppd/template b/srcpkgs/ndppd/template
index 48f78c040ab2..e9cbba36942a 100644
--- a/srcpkgs/ndppd/template
+++ b/srcpkgs/ndppd/template
@@ -9,7 +9,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/DanielAdolfsson/ndppd"
 distfiles="https://github.com/DanielAdolfsson/ndppd/archive/${version}.tar.gz"
 checksum=ee934167f8357f0bd0015e201a77fbe4d028c59e89dc98113805c6855e1c3992
-patch_args="-Np1"
 
 do_install() {
 	vbin ndppd
diff --git a/srcpkgs/network-manager-applet/template b/srcpkgs/network-manager-applet/template
index 0f041aa80b27..e9bb40aa3e6f 100644
--- a/srcpkgs/network-manager-applet/template
+++ b/srcpkgs/network-manager-applet/template
@@ -17,5 +17,4 @@ homepage="https://wiki.gnome.org/Projects/NetworkManager"
 changelog="https://raw.githubusercontent.com/NetworkManager/network-manager-applet/master/NEWS"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=c70d80b48d40a9cb99ec967cc4389f67e7f0301528a69d481572041331a646be
-patch_args=-Np1
 lib32disabled=yes
diff --git a/srcpkgs/nfs-utils/template b/srcpkgs/nfs-utils/template
index 4b5dc97ea19c..10e72d3054c8 100644
--- a/srcpkgs/nfs-utils/template
+++ b/srcpkgs/nfs-utils/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.linux-nfs.org/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
 checksum=51997d94e4c8bcef5456dd36a9ccc38e231207c4e9b6a9a2c108841e6aebe3dd
-patch_args="-Np1"
 replaces="rpcgen>=0"
 
 hostmakedepends="pkg-config libtirpc-devel rpcsvc-proto"
diff --git a/srcpkgs/nomad/template b/srcpkgs/nomad/template
index 8ebd079f55e2..989de0f270be 100644
--- a/srcpkgs/nomad/template
+++ b/srcpkgs/nomad/template
@@ -14,7 +14,6 @@ license="MPL-2.0"
 homepage="https://www.nomadproject.io/"
 distfiles="https://github.com/hashicorp/nomad/archive/v${version}.tar.gz"
 checksum=441d2f50a29568451cb16301a2208c9b744a480ded8c624e789983ee42ed3ea9
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) go_build_tags+=" nonvidia" ;;
diff --git a/srcpkgs/notmuch/template b/srcpkgs/notmuch/template
index d96cd07da6a3..0b176d22ebd9 100644
--- a/srcpkgs/notmuch/template
+++ b/srcpkgs/notmuch/template
@@ -21,7 +21,6 @@ skip_extraction="database-v1.tar.xz"
 # gpgme is optional dependency
 conflicts="gpgme<1.14.0_1"
 subpackages="libnotmuch libnotmuch-devel notmuch-mutt notmuch-python3"
-patch_args=-Np1
 
 if [ ! "$CROSS_BUILD" ]; then
 	hostmakedepends+=" desktop-file-utils"
diff --git a/srcpkgs/numix-themes/template b/srcpkgs/numix-themes/template
index 0e5b7b436c75..76814bab7d9e 100644
--- a/srcpkgs/numix-themes/template
+++ b/srcpkgs/numix-themes/template
@@ -12,4 +12,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/numixproject/numix-gtk-theme"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=2b997ad3eee0b802d0dd49dd772127fd3c337cca32d8863efd4897928e38879a
-patch_args=-Np1
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index a24dde6ca225..edc737186f93 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -2,7 +2,6 @@
 pkgname=nvi
 version=1.81.6
 revision=16
-patch_args="-Np1"
 build_style=gnu-configure
 build_wrksrc=dist
 makedepends="ncurses-devel db-devel"
diff --git a/srcpkgs/ocaml/template b/srcpkgs/ocaml/template
index c941d4b33684..0b760f5ffa5a 100644
--- a/srcpkgs/ocaml/template
+++ b/srcpkgs/ocaml/template
@@ -13,7 +13,6 @@ homepage="http://ocaml.org/"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
 checksum=cd3cd55d465028b161c8c33bafc14ee6ae1d91b5efe51098350f8e8a5f454baf
 nocross=yes
-patch_args="-Np1"
 
 export ASPP="cc -c"
 
diff --git a/srcpkgs/onboard/template b/srcpkgs/onboard/template
index 681de6199e0d..38b447de275e 100644
--- a/srcpkgs/onboard/template
+++ b/srcpkgs/onboard/template
@@ -14,4 +14,3 @@ license="GPL-3.0-or-later"
 homepage="https://launchpad.net/onboard"
 distfiles="https://launchpad.net/${pkgname}/${version%.*}/${version}/+download/${pkgname}-${version}.tar.gz"
 checksum=01cae1ac5b1ef1ab985bd2d2d79ded6fc99ee04b1535cc1bb191e43a231a3865
-patch_args="-Np1"
diff --git a/srcpkgs/openjdk10-bootstrap/template b/srcpkgs/openjdk10-bootstrap/template
index 9695f1f1f431..92d066bb200b 100644
--- a/srcpkgs/openjdk10-bootstrap/template
+++ b/srcpkgs/openjdk10-bootstrap/template
@@ -51,7 +51,6 @@ if [ -n "$_use_zero" ]; then
 fi
 
 shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
-patch_args="-Np1"
 nocross=yes
 
 if [ -n "$XBPS_DEBUG_PKGS" ]; then
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index f273380c0ebb..b084713ea889 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -83,7 +83,6 @@ skip_extraction="
  hotspot-${_drops_ver}.tar.bz2"
 
 shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
-patch_args="-Np1"
 nocross=yes
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 478986b3ca6b..a6d99811d672 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -80,7 +80,6 @@ else
 fi
 
 provides="java-environment-${version}_1"
-patch_args="-Np1"
 
 if [ -n "$XBPS_DEBUG_PKGS" ]; then
 	configure_args+=" --with-native-debug-symbols=internal"
diff --git a/srcpkgs/openjdk9-bootstrap/template b/srcpkgs/openjdk9-bootstrap/template
index 7fc5dc69376f..bf2654033377 100644
--- a/srcpkgs/openjdk9-bootstrap/template
+++ b/srcpkgs/openjdk9-bootstrap/template
@@ -67,7 +67,6 @@ fi
 
 lib32disabled=yes
 shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
-patch_args="-Np1"
 nocross=yes
 
 if [ -n "$XBPS_DEBUG_PKGS" ]; then
diff --git a/srcpkgs/orientdb/template b/srcpkgs/orientdb/template
index c7c49f59af5b..5db277ac3232 100644
--- a/srcpkgs/orientdb/template
+++ b/srcpkgs/orientdb/template
@@ -11,7 +11,6 @@ license="Apache-2.0"
 homepage="https://orientdb.org"
 distfiles="https://s3.us-east-2.amazonaws.com/orientdb3/releases/${version}/orientdb-${version}.tar.gz"
 checksum=73830279a5587de17ea4f5864598a0829bb03212d6cd36d185fe126a46086236
-patch_args="-Np1"
 system_accounts="orientdb"
 
 do_install() {
diff --git a/srcpkgs/p11-kit/template b/srcpkgs/p11-kit/template
index 9947a2ec6567..cc0b11eb720f 100644
--- a/srcpkgs/p11-kit/template
+++ b/srcpkgs/p11-kit/template
@@ -14,7 +14,6 @@ license="BSD-3-Clause"
 homepage="https://github.com/p11-glue/p11-kit"
 distfiles="${homepage}/releases/download/${version}/p11-kit-${version}.tar.xz"
 checksum=8a8f40153dd5a3f8e7c03e641f8db400133fb2a6a9ab2aee1b6d0cb0495ec6b6
-patch_args=-Np1
 conf_files="/etc/pkcs11/pkcs11.conf"
 
 if [ "$XBPS_CHECK_PKGS" ]; then
diff --git a/srcpkgs/parallel-rust/template b/srcpkgs/parallel-rust/template
index f6a1df6cfd4f..d2a746db9108 100644
--- a/srcpkgs/parallel-rust/template
+++ b/srcpkgs/parallel-rust/template
@@ -3,7 +3,6 @@ pkgname=parallel-rust
 version=0.11.3
 revision=2
 wrksrc="parallel-${version}"
-patch_args="-Np1"
 build_style=cargo
 short_desc="Inspired by GNU Parallel, a command-line CPU load balancer written in Rust"
 maintainer="lemmi <lemmi@nerd2nerd.org>"
diff --git a/srcpkgs/patch/template b/srcpkgs/patch/template
index 54bfe06dada4..c850a4f74a71 100644
--- a/srcpkgs/patch/template
+++ b/srcpkgs/patch/template
@@ -11,7 +11,6 @@ license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/patch/patch.html"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
 checksum=ac610bda97abe0d9f6b7c963255a11dcb196c25e337c61f94e4778d632f1d8fd
-patch_args="-Np1"
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	export ac_cv_lib_error_at_line=no
diff --git a/srcpkgs/pavucontrol/template b/srcpkgs/pavucontrol/template
index b80f1b85a7d2..1fd6de3d37cc 100644
--- a/srcpkgs/pavucontrol/template
+++ b/srcpkgs/pavucontrol/template
@@ -11,4 +11,3 @@ license="GPL-2.0-or-later"
 homepage="https://freedesktop.org/software/pulseaudio/pavucontrol/"
 distfiles="${homepage}/${pkgname}-${version}.tar.xz"
 checksum=8fc45bac9722aefa6f022999cbb76242d143c31b314e2dbb38f034f4069d14e2
-patch_args=-Np1
diff --git a/srcpkgs/pbbuttonsd/template b/srcpkgs/pbbuttonsd/template
index 2826198c71fa..242e9a49d4dc 100644
--- a/srcpkgs/pbbuttonsd/template
+++ b/srcpkgs/pbbuttonsd/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.berlios.de/software/pbbuttons"
 distfiles="${SOURCEFORGE_SITE}/pbbuttons/pbbuttonsd-${version}.tar.gz"
 checksum=254cc391bcb0a4a58a62224b4cca2b29fdf9ca174c1dc18ab0784f1a86465ed1
-patch_args="-Np1"
 
 post_extract() {
 	# fix cross builds (small build-only tool built with this)
diff --git a/srcpkgs/pcsxr/template b/srcpkgs/pcsxr/template
index 37bd5f2fe7f4..e95d3eb66634 100644
--- a/srcpkgs/pcsxr/template
+++ b/srcpkgs/pcsxr/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="http://pcsxr.codeplex.com/"
 distfiles="http://deb.debian.org/debian/pool/main/p/pcsxr/pcsxr_${version}.orig.tar.xz"
 checksum=8a366b68a7c236443aa75b422bea84b5115f8d8c23e5a78fd6951e643e90f660
-patch_args="-Np1"
 lib32disabled=yes
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/pinebookpro-kernel/template b/srcpkgs/pinebookpro-kernel/template
index 5908c8021ce4..09e202b279f2 100644
--- a/srcpkgs/pinebookpro-kernel/template
+++ b/srcpkgs/pinebookpro-kernel/template
@@ -10,7 +10,6 @@ license="GPL-2.0-only"
 homepage="https://www.kernel.org"
 distfiles="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${version}.tar.xz"
 checksum=ac37a19d45b77a87e58e3aae8b127a6e7eb85ed7467fc8e58474b387bfd498fd
-patch_args="-Np1"
 python_version=3
 
 nodebug=yes  # -dbg package is generated below manually
diff --git a/srcpkgs/pinephone-kernel/template b/srcpkgs/pinephone-kernel/template
index 73631552a9ba..0361e3edca81 100644
--- a/srcpkgs/pinephone-kernel/template
+++ b/srcpkgs/pinephone-kernel/template
@@ -11,7 +11,6 @@ homepage="https://www.kernel.org"
 distfiles="https://github.com/megous/linux/archive/${_tag}.tar.gz"
 checksum=7ef48ee91f6b6cfdc74f3dc73753903748bcda3282f1ac6e2ff33d392f6c30ca
 python_version=3
-patch_args="-Np1"
 
 archs="aarch64*"
 
diff --git a/srcpkgs/ponysay/template b/srcpkgs/ponysay/template
index 5fd3af284d2d..d2e146943e58 100644
--- a/srcpkgs/ponysay/template
+++ b/srcpkgs/ponysay/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="https://erkin.github.com/ponysay/"
 distfiles="https://github.com/erkin/${pkgname}/archive/${version}.tar.gz"
 checksum=c382d7f299fa63667d1a4469e1ffbf10b6813dcd29e861de6be55e56dc52b28a
-patch_args="-Np1"
 
 do_install() {
 	python3 setup.py --prefix=/usr --dest-dir=$DESTDIR \
diff --git a/srcpkgs/poppler-qt5/template b/srcpkgs/poppler-qt5/template
index 4fb165ecc22b..c130ecc74f79 100644
--- a/srcpkgs/poppler-qt5/template
+++ b/srcpkgs/poppler-qt5/template
@@ -21,7 +21,6 @@ distfiles="${homepage}/poppler-${version}.tar.xz"
 checksum=dafd537b680fad1215bc40fc53d1f38e8449d7c185bc60d5a89e1d26c90dbd8c
 # fails to find a bunch of files
 make_check=no
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DTHREADS_PTHREAD_ARG=2"
diff --git a/srcpkgs/poppler/template b/srcpkgs/poppler/template
index 72a961b24615..e78dc76cfaa8 100644
--- a/srcpkgs/poppler/template
+++ b/srcpkgs/poppler/template
@@ -19,7 +19,6 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://poppler.freedesktop.org"
 distfiles="${homepage}/${pkgname}-${version}.tar.xz"
 checksum=dafd537b680fad1215bc40fc53d1f38e8449d7c185bc60d5a89e1d26c90dbd8c
-patch_args=-Np1
 
 # Package build options
 build_options="gir"
diff --git a/srcpkgs/procmail/template b/srcpkgs/procmail/template
index 4518f5caac58..12271d5f0a2d 100644
--- a/srcpkgs/procmail/template
+++ b/srcpkgs/procmail/template
@@ -10,7 +10,6 @@ license="GPL-2.0-or-later, Artistic-1.0-cl8"
 homepage="http://www.procmail.org"
 distfiles="https://fossies.org/linux/misc/old/procmail-${version}.tar.gz"
 checksum=087c75b34dd33d8b9df5afe9e42801c9395f4bf373a784d9bc97153b0062e117
-patch_args="-Np1"
 nocross="./autoconf: line 1396: ./_autotst: No such file or directory"
 
 post_extract() {
diff --git a/srcpkgs/psutils/template b/srcpkgs/psutils/template
index d377334ebb6a..0e47c23d0c25 100644
--- a/srcpkgs/psutils/template
+++ b/srcpkgs/psutils/template
@@ -12,7 +12,6 @@ homepage="http://knackered.org/angus/psutils/"
 wrksrc="psutils"
 distfiles="ftp://ftp.knackered.org/pub/psutils/${pkgname}-${version}.tar.gz"
 checksum="3853eb79584ba8fbe27a815425b65a9f7f15b258e0d43a05a856bdb75d588ae4"
-patch_args="-Np1"
 
 pre_configure() {
 	# install in /usr instead of /usr/local
diff --git a/srcpkgs/python-notify/template b/srcpkgs/python-notify/template
index 7bfe11b2da90..9bc07c76324e 100644
--- a/srcpkgs/python-notify/template
+++ b/srcpkgs/python-notify/template
@@ -15,7 +15,6 @@ homepage="http://www.galago-project.org/"
 distfiles="http://www.galago-project.org/files/releases/source/notify-python/notify-python-${version}.tar.gz"
 checksum=8c5ee28017fdc5b110c31cb76503e535e15e0c60b9a1f1e95ff6c018dd806022
 replaces="notify-python>=0"
-patch_args="-Np1"
 lib32disabled=yes
 
 CFLAGS="-fcommon"
diff --git a/srcpkgs/qemu/template b/srcpkgs/qemu/template
index 0a08ed821536..0fadb41f609c 100644
--- a/srcpkgs/qemu/template
+++ b/srcpkgs/qemu/template
@@ -30,7 +30,6 @@ nostrip_files="hppa-firmware.img openbios-ppc openbios-sparc32 openbios-sparc64
  opensbi-riscv64-generic-fw_dynamic.elf"
 # FIXME
 make_check=extended
-patch_args=-Np1
 
 build_options="gtk3 opengl sdl2 spice virgl smartcard numa iscsi"
 build_options_default="opengl gtk3 virgl sdl2 numa iscsi"
diff --git a/srcpkgs/qt5-webengine/template b/srcpkgs/qt5-webengine/template
index d9819ea7d71e..0819b3790345 100644
--- a/srcpkgs/qt5-webengine/template
+++ b/srcpkgs/qt5-webengine/template
@@ -33,7 +33,6 @@ distfiles="https://github.com/qt/qtwebengine/archive/${_commit}.tar.gz
  https://github.com/qt/qtwebengine-chromium/archive/${_chromium_commit}.tar.gz"
 checksum="cea995e14c599c0c46b53b9938fd16f2360b639bf77e88a28ea26f518bb7b578
  fa0cab27cc32284f5af227a3dabde05ed6755f06641db6a6ca1c66848b10f715"
-patch_args="-Np1"
 
 no_generic_pkgconfig_link=yes
 build_options="sndio pipewire"
diff --git a/srcpkgs/rdup/template b/srcpkgs/rdup/template
index a73f90839ef9..74936336c70a 100644
--- a/srcpkgs/rdup/template
+++ b/srcpkgs/rdup/template
@@ -13,7 +13,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/miekg/rdup"
 distfiles="https://github.com/miekg/rdup/archive/${version}.tar.gz"
 checksum=787b8c37e88be810a710210a9d9f6966b544b1389a738aadba3903c71e0c29cb
-patch_args="-Np1"
 
 post_patch() {
 	vsed -e 's/-Werror//' -i GNUmakefile.in
diff --git a/srcpkgs/recode/template b/srcpkgs/recode/template
index bba0c7862d47..531df1dedd33 100644
--- a/srcpkgs/recode/template
+++ b/srcpkgs/recode/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="http://recode.progiciels-bpi.ca/"
 distfiles="${DEBIAN_SITE}/main/r/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=e3e6a4f3f8e5c6052ab70155990c074d87aa0b614fc1be31d194750d1d962fcf
-patch_args="-Np1"
 
 pre_configure() {
 	vsed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.in
diff --git a/srcpkgs/rng-tools/template b/srcpkgs/rng-tools/template
index a6e67902ba89..9519739f2b48 100644
--- a/srcpkgs/rng-tools/template
+++ b/srcpkgs/rng-tools/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/nhorman/rng-tools"
 distfiles="https://github.com/nhorman/rng-tools/archive/v${version}.tar.gz"
 checksum=6fd5b52a700edec85eb1043970e22e8e2ad06a4b43851f35d33d90e09570e9d3
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	makedepends+=" argp-standalone" ;;
diff --git a/srcpkgs/rust/template b/srcpkgs/rust/template
index 6bb928e14783..92ed8935ab09 100644
--- a/srcpkgs/rust/template
+++ b/srcpkgs/rust/template
@@ -22,7 +22,6 @@ homepage="https://www.rust-lang.org/"
 distfiles="https://static.rust-lang.org/dist/rustc-${version}-src.tar.gz"
 checksum="0e763e6db47d5d6f91583284d2f989eacc49b84794d1443355b85c58d67ae43b"
 lib32disabled=yes
-patch_args="-Np1"
 
 build_options="bindist"
 desc_option_bindist="Generate tarballs for bootstrap"
diff --git a/srcpkgs/sakura/template b/srcpkgs/sakura/template
index 299dae396cce..04e5883e0909 100644
--- a/srcpkgs/sakura/template
+++ b/srcpkgs/sakura/template
@@ -12,4 +12,3 @@ license="GPL-2.0-only"
 homepage="https://launchpad.net/sakura"
 distfiles="https://launchpad.net/sakura/trunk/${version}/+download/sakura-${version}.tar.bz2"
 checksum=9ddfe8919ae0e11673ca22879ae324565d0987b14e948e1d2badff538fe1b5b9
-patch_args="-Np1"
diff --git a/srcpkgs/sbc/template b/srcpkgs/sbc/template
index 7645ce469d68..6fdca20e3e9c 100644
--- a/srcpkgs/sbc/template
+++ b/srcpkgs/sbc/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="http://www.bluez.org/"
 distfiles="${KERNEL_SITE}/bluetooth/${pkgname}-${version}.tar.xz"
 checksum=0cbad69823a99e8421fe0700e8cf9eeb8fa0c1ad28e8dbc2182b3353507931d2
-patch_args="-Np1"
 
 sbc-devel_package() {
 	depends="sbc>=${version}_${revision}"
diff --git a/srcpkgs/sbsigntool/template b/srcpkgs/sbsigntool/template
index 6e6c32ddf3e7..80d0f63781fa 100644
--- a/srcpkgs/sbsigntool/template
+++ b/srcpkgs/sbsigntool/template
@@ -19,7 +19,6 @@ distfiles="$homepage/snapshot/sbsigntools-$version.tar.gz
  $DEBIAN_SITE/main/s/sbsigntool/sbsigntool_0.9.2.orig.tar.gz"
 checksum="eddb7d21263ee2b07be8f0ed93b6ba021c3f943964730b2d86f44736fa1924d5
  1dc1e1de5f2dda50dbd2e6a83355fe7ae38ca0f79daeb404026421af70606653"
-patch_args="-Np1"
 skip_extraction="sbsigntool_0.9.2.orig.tar.gz"
 conf_files="/etc/default/sbsigntool-kernel-hook"
 
diff --git a/srcpkgs/sharutils/template b/srcpkgs/sharutils/template
index 26ff6c074408..e5195a44999f 100644
--- a/srcpkgs/sharutils/template
+++ b/srcpkgs/sharutils/template
@@ -2,7 +2,6 @@
 pkgname=sharutils
 version=4.15.2
 revision=2
-patch_args="-Np1"
 build_style=gnu-configure
 hostmakedepends="perl"
 short_desc="Makes so-called shell archives out of many files"
diff --git a/srcpkgs/spdlog/template b/srcpkgs/spdlog/template
index ecf3e97a14ce..184a4d891698 100644
--- a/srcpkgs/spdlog/template
+++ b/srcpkgs/spdlog/template
@@ -14,7 +14,6 @@ license="MIT"
 homepage="https://github.com/gabime/spdlog"
 distfiles="https://github.com/gabime/spdlog/archive/v${version}.tar.gz"
 checksum=e20e6bd8f57e866eaf25a5417f0a38a116e537f1a77ac7b5409ca2b180cec0d5
-patch_args=-Np1
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -DSPDLOG_BUILD_TESTS_HO=ON"
diff --git a/srcpkgs/stegsnow/template b/srcpkgs/stegsnow/template
index 97251c1c7a58..f5cc9a5a3697 100644
--- a/srcpkgs/stegsnow/template
+++ b/srcpkgs/stegsnow/template
@@ -3,7 +3,6 @@ pkgname=stegsnow
 version=20130616
 revision=1
 wrksrc="snow-${version}"
-patch_args="-Np1"
 build_style=gnu-makefile
 short_desc="Whitespace steganography"
 maintainer="Orphaned <orphan@voidlinux.org>"
diff --git a/srcpkgs/sun7i-kernel/template b/srcpkgs/sun7i-kernel/template
index 3d7ae0956875..560ec8ad3732 100644
--- a/srcpkgs/sun7i-kernel/template
+++ b/srcpkgs/sun7i-kernel/template
@@ -32,7 +32,6 @@ archs="armv7l*"
 hostmakedepends="perl python kmod uboot-mkimage openssl bc"
 makedepends="ncurses-devel"
 triggers="kernel-hooks"
-patch_args=-Np1
 python_version=2
 # These files could be modified when an external module is built.
 mutable_files="
diff --git a/srcpkgs/syslinux/template b/srcpkgs/syslinux/template
index 2c8cfb05553e..b45c35819552 100644
--- a/srcpkgs/syslinux/template
+++ b/srcpkgs/syslinux/template
@@ -2,7 +2,6 @@
 pkgname=syslinux
 version=6.03
 revision=7
-patch_args="-Np1"
 hostmakedepends="perl python nasm"
 makedepends="gnu-efi-libs libuuid-devel"
 short_desc="Boot loader for the Linux operating system"
diff --git a/srcpkgs/tilix/template b/srcpkgs/tilix/template
index 952643b213fc..f53d8f86fd87 100644
--- a/srcpkgs/tilix/template
+++ b/srcpkgs/tilix/template
@@ -15,7 +15,6 @@ license="MPL-2.0"
 homepage="https://gnunn1.github.io/tilix-web/"
 distfiles="https://github.com/gnunn1/${pkgname}/archive/${version}.tar.gz"
 checksum=2a9482770391d11d5edc8351d426c700c2cc6c194a30391ef2ae25bb7095b59b
-patch_args=-Np1
 
 pre_configure() {
 	case "$XBPS_TARGET_MACHINE" in
diff --git a/srcpkgs/tmux/template b/srcpkgs/tmux/template
index b0f2178d49ec..25a22045bb72 100644
--- a/srcpkgs/tmux/template
+++ b/srcpkgs/tmux/template
@@ -13,7 +13,6 @@ homepage="https://tmux.github.io"
 changelog="https://raw.githubusercontent.com/tmux/tmux/master/CHANGES"
 distfiles="https://github.com/tmux/tmux/releases/download/${version}/tmux-${version}.tar.gz"
 checksum=664d345338c11cbe429d7ff939b92a5191e231a7c1ef42f381cebacb1e08a399
-patch_args=-Np1
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/ucspi-tcp/template b/srcpkgs/ucspi-tcp/template
index f4ef8b1df9db..9012d8a20a20 100644
--- a/srcpkgs/ucspi-tcp/template
+++ b/srcpkgs/ucspi-tcp/template
@@ -9,7 +9,6 @@ license="Public Domain"
 homepage="http://cr.yp.to/ucspi-tcp.html"
 distfiles="http://cr.yp.to/ucspi-tcp/ucspi-tcp-${version}.tar.gz"
 checksum=4a0615cab74886f5b4f7e8fd32933a07b955536a3476d74ea087a3ea66a23e9c
-patch_args="-Np1"
 make_check=no # checks are only designed to check if an installation worked
 
 do_install() {
diff --git a/srcpkgs/unixbench/template b/srcpkgs/unixbench/template
index 039da3c88615..fa652eb2d999 100644
--- a/srcpkgs/unixbench/template
+++ b/srcpkgs/unixbench/template
@@ -13,7 +13,6 @@ license="GPL-2.0-only"
 homepage="https://github.com/kdlucas/byte-unixbench"
 distfiles="$homepage/archive/$_commit.tar.gz"
 checksum=48e6ed4e705c86e5481ddf0c0d5ef2850f84a0da7050d438dbfe1052c81fd93f
-patch_args="-p1"
 
 do_build() {
 	export CFLAGS=$CFLAGS
diff --git a/srcpkgs/unzip/template b/srcpkgs/unzip/template
index 84796994944f..e0831b589d7f 100644
--- a/srcpkgs/unzip/template
+++ b/srcpkgs/unzip/template
@@ -10,7 +10,6 @@ license="Info-ZIP"
 homepage="http://infozip.sf.net/"
 distfiles="${SOURCEFORGE_SITE}/infozip/${pkgname}60.tar.gz"
 checksum=036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
-patch_args="-Np1"
 
 do_build() {
 	CFLAGS+=" -D_FILE_OFFSET_BITS=64 -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT \
diff --git a/srcpkgs/util-linux/template b/srcpkgs/util-linux/template
index fbd3f00e6f80..4fb8292531ba 100644
--- a/srcpkgs/util-linux/template
+++ b/srcpkgs/util-linux/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/utils/util-linux/"
 distfiles="${KERNEL_SITE}/utils/${pkgname}/v${version%.${version#*.*.}}/${pkgname}-${version}.tar.xz"
 checksum=f7516ba9d8689343594356f0e5e1a5f0da34adfbc89023437735872bb5024c5f
-patch_args=-Np1
 
 # Create uuidd system account for uuidd.
 system_accounts="_uuidd"
diff --git a/srcpkgs/utox/template b/srcpkgs/utox/template
index 39e0a28eb624..8bb66365933a 100644
--- a/srcpkgs/utox/template
+++ b/srcpkgs/utox/template
@@ -15,7 +15,6 @@ license="MIT"
 homepage="https://github.com/uTox/uTox/"
 distfiles="https://github.com/uTox/uTox/releases/download/v${version}/uTox-${version}-full.tar.gz"
 checksum=fc883483d86b1830674f3b08515daa27ae54ab47646c7edc48a067e8d1e8c114
-patch_args="-Np1"
 nocross=yes
 
 post_install() {
diff --git a/srcpkgs/valgrind/template b/srcpkgs/valgrind/template
index 6010f29ca56f..71f90795aa96 100644
--- a/srcpkgs/valgrind/template
+++ b/srcpkgs/valgrind/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://valgrind.org/"
 distfiles="https://sourceware.org/pub/${pkgname}/${pkgname}-${version}.tar.bz2"
 checksum=c91f3a2f7b02db0f3bc99479861656154d241d2fdb265614ba918cc6720a33ca
-patch_args="-Np1"
 
 CFLAGS="-fno-stack-protector"
 CXXFLAGS="-fno-stack-protector"
diff --git a/srcpkgs/viking/template b/srcpkgs/viking/template
index 6f7a469c2042..b02ad7498482 100644
--- a/srcpkgs/viking/template
+++ b/srcpkgs/viking/template
@@ -17,7 +17,6 @@ license="GPL-2.0-or-later"
 homepage="https://sourceforge.net/projects/viking"
 distfiles="${SOURCEFORGE_SITE}/viking/viking-${version}.tar.bz2"
 checksum=855cbccd5f17ef0dc6d7e2d080a4b20383a079dfb882edd04dba602297030fa8
-patch_args="-Np1"
 
 CFLAGS="-fcommon"
 
diff --git a/srcpkgs/vscode/template b/srcpkgs/vscode/template
index 11b5f3eea411..9d225f9ea1cf 100644
--- a/srcpkgs/vscode/template
+++ b/srcpkgs/vscode/template
@@ -12,7 +12,6 @@ license="MIT"
 homepage="https://code.visualstudio.com/"
 distfiles="https://github.com/Microsoft/vscode/archive/${version}.tar.gz"
 checksum=36d3062740125ea4477ba671c53c27293660a1ae61d712d936af12c7f89ab17e
-patch_args="-Np1"
 
 if [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
 	broken="FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory"
diff --git a/srcpkgs/vtk/template b/srcpkgs/vtk/template
index edaf9dfc827a..4c1710087f83 100644
--- a/srcpkgs/vtk/template
+++ b/srcpkgs/vtk/template
@@ -24,7 +24,6 @@ license="BSD-3-Clause"
 homepage="https://www.vtk.org"
 distfiles="https://www.vtk.org/files/release/${version:0:3}/VTK-${version}.tar.gz"
 checksum=1b39a5e191c282861e7af4101eaa8585969a2de05f5646c9199a161213a622c7
-patch_args=-Np1
 nocross="hdf5 is nocross"
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
diff --git a/srcpkgs/wayfire-plugins-extra/template b/srcpkgs/wayfire-plugins-extra/template
index e53f0536c99c..71e8bddcf947 100644
--- a/srcpkgs/wayfire-plugins-extra/template
+++ b/srcpkgs/wayfire-plugins-extra/template
@@ -12,7 +12,6 @@ license="MIT"
 homepage="https://wayfire.org/"
 distfiles="https://github.com/WayfireWM/wayfire-plugins-extra/archive/v${version}.tar.gz"
 checksum=e6377e7f2cd6b0a19fe0a256c819f801ee1d963524ed4e4930b702474bc04287
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/webrtc-audio-processing/template b/srcpkgs/webrtc-audio-processing/template
index e85bb18e1f68..30a420b28f57 100644
--- a/srcpkgs/webrtc-audio-processing/template
+++ b/srcpkgs/webrtc-audio-processing/template
@@ -10,7 +10,6 @@ license="BSD-3-Clause"
 homepage="http://freedesktop.org/software/pulseaudio/webrtc-audio-processing"
 distfiles="${homepage}/${pkgname}-${version}.tar.xz"
 checksum=a0fdd938fd85272d67e81572c5a4d9e200a0c104753cb3c209ded175ce3c5dbf
-patch_args="-p1"
 
 case "$XBPS_TARGET_MACHINE" in
 	# Disable neon for the arm* architectures
diff --git a/srcpkgs/whipper/template b/srcpkgs/whipper/template
index 8826ee845ab9..f25ab359c284 100644
--- a/srcpkgs/whipper/template
+++ b/srcpkgs/whipper/template
@@ -15,7 +15,6 @@ homepage="https://github.com/whipper-team/whipper"
 distfiles="https://github.com/whipper-team/whipper/archive/v${version}.tar.gz"
 checksum=3caceeec7ca73c8b73147884b0f8eeacbe66af52900021b564118b88d23afbd2
 
-patch_args="-Np1"
 
 pre_build() {
 # Temporary workaround for https://github.com/whipper-team/whipper/issues/428
diff --git a/srcpkgs/wireplumber/template b/srcpkgs/wireplumber/template
index cf138e7d9e8b..9c8d44ab18e7 100644
--- a/srcpkgs/wireplumber/template
+++ b/srcpkgs/wireplumber/template
@@ -14,7 +14,6 @@ license="MIT"
 homepage="https://pipewire.pages.freedesktop.org/wireplumber"
 distfiles="https://gitlab.freedesktop.org/pipewire/wireplumber/-/archive/$version/wireplumber-$version.tar.gz"
 checksum=980a10986fea1ca7ff7daad41f467028db494741235697d4a09767236947d047
-patch_args=-Np1
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/wlsunset/template b/srcpkgs/wlsunset/template
index 5ec0aa3d8c45..984ee8cbfc67 100644
--- a/srcpkgs/wlsunset/template
+++ b/srcpkgs/wlsunset/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="https://sr.ht/~kennylevinsen/wlsunset/"
 distfiles="https://git.sr.ht/~kennylevinsen/wlsunset/archive/${version}.tar.gz"
 checksum=88bce695722a09d79545f14d404cc0659f7176bb08d5db5f4f23228b6ba8bb03
-patch_args=-Np1
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/wpa_supplicant/template b/srcpkgs/wpa_supplicant/template
index 064fd6f71f5d..d5f2a277cca8 100644
--- a/srcpkgs/wpa_supplicant/template
+++ b/srcpkgs/wpa_supplicant/template
@@ -9,7 +9,6 @@ license="BSD-3-Clause"
 homepage="http://w1.fi/wpa_supplicant/"
 distfiles="http://w1.fi/releases/${pkgname}-${version}.tar.gz"
 checksum=fcbdee7b4a64bea8177973299c8c824419c413ec2e3a95db63dd6a5dc3541f17
-patch_args="-Np1"
 
 hostmakedepends="pkg-config"
 makedepends="libnl3-devel openssl-devel $(vopt_if dbus dbus-devel) $(vopt_if readline readline-devel)"
diff --git a/srcpkgs/wrk/template b/srcpkgs/wrk/template
index b2deb5e0ffb8..2e85b6a8a510 100644
--- a/srcpkgs/wrk/template
+++ b/srcpkgs/wrk/template
@@ -12,7 +12,6 @@ license="Apache-2.0"
 homepage="https://github.com/wg/wrk"
 distfiles="https://github.com/wg/wrk/archive/${version}.tar.gz"
 checksum=6fa1020494de8c337913fd139d7aa1acb9a020de6f7eb9190753aa4b1e74271e
-patch_args="-Np1"
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*) ;;
diff --git a/srcpkgs/x2goserver/template b/srcpkgs/x2goserver/template
index 2774f84e960e..89fe76a4e8a1 100644
--- a/srcpkgs/x2goserver/template
+++ b/srcpkgs/x2goserver/template
@@ -19,7 +19,6 @@ checksum=6776aaa354f5a44e349f0b3c176d4988c88a618c2edf46c98a37ae89c069dcd0
 system_groups="x2gouser"
 system_accounts="x2gouser"
 x2gouser_homedir="/var/lib/x2go"
-patch_args="-Np1"
 conf_files="
  /etc/x2go/desktopsharing/*
  /etc/x2go/x2gosql/*
diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template
index c6af59bd635a..8f986d22f9f3 100644
--- a/srcpkgs/xbps/template
+++ b/srcpkgs/xbps/template
@@ -11,7 +11,6 @@ homepage="https://github.com/void-linux/xbps"
 changelog="https://github.com/void-linux/xbps/blob/master/NEWS"
 distfiles="https://github.com/void-linux/xbps/archive/${version}.tar.gz"
 checksum=0cbd8d5f23a62047c75974bca21da9f004a94efffd7f37c68562a8dbc869fb2a
-patch_args=-Np1
 
 hostmakedepends="pkgconf"
 checkdepends="kyua"
diff --git a/srcpkgs/xdgmenumaker/template b/srcpkgs/xdgmenumaker/template
index d79c6c0929a4..a71ccd9b3759 100644
--- a/srcpkgs/xdgmenumaker/template
+++ b/srcpkgs/xdgmenumaker/template
@@ -11,7 +11,6 @@ homepage="https://github.com/gapan/xdgmenumaker"
 distfiles="https://github.com/gapan/${pkgname}/archive/${version}.tar.gz"
 checksum=46192e7e4e25b024c0516d83e8fc2c503dd1ac8e5f8c1998d3e9e4b3cbf8919b
 python_version=3
-patch_args="-Np1"
 
 pre_install() {
 	# Install pre-generated man page
diff --git a/srcpkgs/xen/template b/srcpkgs/xen/template
index 092460ea73e5..d916f29ac384 100644
--- a/srcpkgs/xen/template
+++ b/srcpkgs/xen/template
@@ -27,7 +27,6 @@ checksum="cf0d7316ad674491f49b7ef0518cb1d906a2e3bfad639deef0ef2343b119ac0c
  4850691d6f196eaf4d6210f2de01383251b3ea1b928141da9ce28c0b06a90938"
 skip_extraction="${_git_tag_ipxe}.tar.gz"
 nopie=yes
-patch_args='-Np1'
 ignore_elf_dirs="/usr/share/xen/qemu /usr/share/qemu-xen/qemu"
 nostrip_files="
  hppa-firmware.img
diff --git a/srcpkgs/xpdf/template b/srcpkgs/xpdf/template
index 4f3c4f0ac66a..3c66f615f115 100644
--- a/srcpkgs/xpdf/template
+++ b/srcpkgs/xpdf/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="http://www.xpdfreader.com/"
 distfiles="https://dl.xpdfreader.com/xpdf-${version}.tar.gz"
 checksum=0fe4274374c330feaadcebb7bd7700cb91203e153b26aa95952f02bf130be846
-patch_args="-Np1"
 
 post_extract() {
 	sed -i 's:/usr/share/fonts/type1/gsfonts:/usr/share/fonts/Type1:' xpdf/GlobalParams.cc
diff --git a/srcpkgs/xzoom/template b/srcpkgs/xzoom/template
index ea5accf37d78..fd5c19eb6bed 100644
--- a/srcpkgs/xzoom/template
+++ b/srcpkgs/xzoom/template
@@ -10,7 +10,6 @@ license="Custom"
 homepage="http://sunsite.unc.edu/pub/linux/libs/X/"
 distfiles="http://webdiis.unizar.es/pub/unix/X11/${pkgname}-${version}.tgz"
 checksum=b26bfd692d3e1d30e8d524d4018fc3f0fe847983a2778a4a2496784bfc2df44b
-patch_args="-Np1"
 
 do_build() {
 	CC=cc xmkmf
diff --git a/srcpkgs/yaboot/template b/srcpkgs/yaboot/template
index bab154d8c93d..8d2adf264b73 100644
--- a/srcpkgs/yaboot/template
+++ b/srcpkgs/yaboot/template
@@ -15,7 +15,6 @@ distfiles="https://cdimage.debian.org/cdimage/cd-sources/yaboot_${version}.orig.
  http://ftp.be.debian.org/pub/linux/kernel/people/tytso/e2fsprogs/e2fsprogs-${_e2fsprogs_ver}.tar.gz"
 checksum="2fb738d8fd48b94ab2534a4fdf63738ad02c1a30f4b2add91f837baff8fa2aa1
  3f8ac1fedd7c4bec480afcbe4acabdd4ac59ec0446a0fd50c8975cd0aad7b176"
-patch_args="-Np1"
 # Don't want stripped yaboot bits to leak into -dbg
 nostrip_files=yaboot
 
diff --git a/srcpkgs/zeroc-mcpp/template b/srcpkgs/zeroc-mcpp/template
index 497813ba0e04..db9b9cc8e12b 100644
--- a/srcpkgs/zeroc-mcpp/template
+++ b/srcpkgs/zeroc-mcpp/template
@@ -14,7 +14,6 @@ distfiles="https://github.com/zeroc-ice/mcpp/archive/v${version}.tar.gz"
 checksum=1a426cf2d513ffd66634384d5445dcce1aac83be1789a56044013eab8ca8ffff
 nostrip=yes
 conflicts=mcpp-devel
-patch_args="-Np1"
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/zziplib/template b/srcpkgs/zziplib/template
index 2026f3e4a521..ab5af234af62 100644
--- a/srcpkgs/zziplib/template
+++ b/srcpkgs/zziplib/template
@@ -12,7 +12,6 @@ homepage="https://github.com/gdraheim/zziplib"
 changelog="https://raw.githubusercontent.com/gdraheim/zziplib/master/ChangeLog"
 distfiles="https://github.com/gdraheim/zziplib/archive/v${version}.tar.gz"
 checksum=93ef44bf1f1ea24fc66080426a469df82fa631d13ca3b2e4abaeab89538518dc
-patch_args=-Np1
 
 if [ "$CROSS_BUILD" ]; then
 	configure_args+=" -DZZIPTEST=OFF"

From a7775f2792819b0c076edd2bf044b68a2685dc31 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 18 Jun 2021 18:57:48 +0700
Subject: [PATCH 7/7] srcpkgs/a*: convert patch to -Np1

* antiword is kept at -Np0
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,/^--- /dev/null,b
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s/.orig	*.*//
				s/	.*//
			}
			/^+++ /{
				s,\(^+++ \)\(./\)*,\1b/,
				s/	.*//
			}
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
---
 .../a2jmidid/patches/musl-no-execinfo.patch   |  4 +-
 srcpkgs/a2jmidid/patches/musl-ppc.patch       |  4 +-
 srcpkgs/a2jmidid/template                     |  1 -
 srcpkgs/a2ps/patches/CVE-2001-1593.diff       |  8 +--
 srcpkgs/a2ps/patches/CVE-2014-0466.diff       |  8 +--
 srcpkgs/a2ps/template                         |  1 -
 ...e-integer-types-in-protocol-messages.patch | 16 +++---
 ...0002-Fix-length-of-MSG_RESIZE-packet.patch |  4 +-
 ...SIZ-to-guarantee-system-independent-.patch |  4 +-
 ...Correct-EOF-handling-on-client-stdin.patch |  4 +-
 srcpkgs/abduco/template                       |  1 -
 srcpkgs/abook/patches/inline.patch            |  4 +-
 srcpkgs/abook/template                        |  1 -
 .../patches/musl-fgetspent_r.patch            |  4 +-
 .../accountsservice/patches/musl-wtmp.patch   |  4 +-
 srcpkgs/accountsservice/template              |  1 -
 srcpkgs/acct/patches/cross.patch              |  4 +-
 srcpkgs/acct/template                         |  1 -
 .../acpi_call-dkms/patches/linux4.12.patch    |  4 +-
 srcpkgs/acpi_call-dkms/patches/linux5.6.patch |  4 +-
 srcpkgs/acpi_call-dkms/template               |  1 -
 .../patches/disable-logging-to-console.patch  |  4 +-
 srcpkgs/acpid/patches/portability.patch       | 16 +++---
 srcpkgs/acpid/template                        |  1 -
 .../actiona/patches/bytearray-constdata.patch |  4 +-
 srcpkgs/actiona/patches/no-updater.patch      |  4 +-
 .../patches/socket-include-order.patch        |  4 +-
 .../actiona/patches/use-lrelease-qt5.patch    |  4 +-
 srcpkgs/actiona/template                      |  1 -
 .../patches/39-Fix-parallel-builds.patch      |  4 +-
 .../patches/40-Fix-few-gcc-warnings.patch     | 24 ++++-----
 .../patches/43-Fix-gcc-warning.patch          |  4 +-
 .../patches/44-Fix-build-with-gcc-5.patch     | 52 +++++++++----------
 .../45-Fix-libAfterBase-Makefile.patch        |  4 +-
 .../patches/50-cross-safe-min-max.patch       |  4 +-
 .../51-configure-pass-cross-alias-down.patch  |  4 +-
 .../patches/52-libafterimage-cross.patch      |  4 +-
 srcpkgs/afterstep/template                    |  1 -
 srcpkgs/agg/patches/agg-2.4-depends.patch     | 16 +++---
 srcpkgs/agg/patches/agg-2.5-pkgconfig.patch   |  4 +-
 srcpkgs/agg/patches/gcc82.patch               |  4 +-
 srcpkgs/agg/template                          |  1 -
 .../allegro4/patches/mesa10-uncompat.patch    |  4 +-
 srcpkgs/allegro4/template                     |  1 -
 srcpkgs/allegro5/patches/time64.patch         |  4 +-
 srcpkgs/allegro5/template                     |  1 -
 srcpkgs/alsa-firmware/patches/musl.patch      | 20 +++----
 srcpkgs/alsa-firmware/template                |  1 -
 .../patches/musl-__sighandler_t.patch         |  4 +-
 srcpkgs/alsa-tools/template                   |  1 -
 .../patches/cmake-build-type-none.patch       | 16 +++---
 srcpkgs/amdvlk/patches/musl.patch             |  4 +-
 srcpkgs/amdvlk/template                       |  1 -
 .../angrysearch/patches/00-fiximport.patch    |  4 +-
 srcpkgs/angrysearch/template                  |  1 -
 srcpkgs/anjuta/patches/fix-unistd_h.patch     |  4 +-
 srcpkgs/anjuta/patches/python.patch           |  4 +-
 srcpkgs/anjuta/patches/vala.patch             |  4 +-
 srcpkgs/anjuta/patches/vala048.patch          |  4 +-
 srcpkgs/anjuta/template                       |  1 -
 srcpkgs/anki/patches/fix_mpv_args.patch       |  8 +--
 srcpkgs/anki/template                         |  1 -
 srcpkgs/antimicrox/patches/time64.patch       |  4 +-
 srcpkgs/antimicrox/template                   |  1 -
 srcpkgs/apache/patches/libressl.patch         |  4 +-
 srcpkgs/apache/template                       |  1 -
 srcpkgs/apl/patches/musl.patch                |  4 +-
 srcpkgs/apl/patches/ppc.patch                 |  4 +-
 srcpkgs/apl/template                          |  1 -
 ...hive_entry_h-order-on-client-as-util.patch |  4 +-
 ...h-order-on-libappstream-glib-as-util.patch |  4 +-
 srcpkgs/appstream-glib/template               |  1 -
 srcpkgs/apr/patches/atomic64.patch            |  4 +-
 srcpkgs/apr/template                          |  1 -
 srcpkgs/apvlv/patches/cxxflags_from_env.patch |  4 +-
 srcpkgs/apvlv/template                        |  1 -
 srcpkgs/aqbanking/patches/cmake-prefix.patch  |  4 +-
 srcpkgs/aqbanking/template                    |  1 -
 srcpkgs/aqemu/patches/stdexcept.patch         |  4 +-
 srcpkgs/aqemu/template                        |  1 -
 srcpkgs/ardour/patches/6.0-fix-build.patch    |  4 +-
 srcpkgs/ardour/patches/6.0-fix-runtime.patch  |  4 +-
 .../ardour/patches/use-bundled-qm-dsp.patch   |  8 +--
 srcpkgs/ardour/template                       |  1 -
 srcpkgs/arduino/patches/astyle_fix.patch      |  8 +--
 .../patches/disable-dependency-build.patch    |  4 +-
 srcpkgs/arduino/template                      |  1 -
 srcpkgs/argon2/patches/explicit-bzero.patch   |  4 +-
 srcpkgs/argon2/patches/libdir.patch           |  4 +-
 srcpkgs/argon2/template                       |  1 -
 .../patches/fix-gcc6-attribute_numsup_h.patch |  4 +-
 srcpkgs/argyllcms/template                    |  1 -
 srcpkgs/ark/patches/disable-xar-test.patch    |  8 +--
 srcpkgs/ark/template                          |  1 -
 .../patches/9.700.2--include_dirs.patch       |  4 +-
 srcpkgs/armadillo/template                    |  1 -
 .../artyfx/patches/fix-avtk-cmake-sse.patch   |  4 +-
 srcpkgs/artyfx/patches/fix-lv2-1.18.patch     |  4 +-
 .../artyfx/patches/respect-our-cflags.patch   |  4 +-
 srcpkgs/artyfx/template                       |  1 -
 srcpkgs/asignify/patches/musl.patch           |  4 +-
 srcpkgs/asignify/template                     |  1 -
 srcpkgs/assimp/patches/musl.patch             |  4 +-
 srcpkgs/assimp/template                       |  1 -
 srcpkgs/astroid/patches/cross.patch           |  4 +-
 srcpkgs/astroid/template                      |  1 -
 srcpkgs/astyle/patches/musl.patch             |  4 +-
 srcpkgs/astyle/template                       |  1 -
 srcpkgs/at/patches/isleap.patch               |  4 +-
 srcpkgs/at/template                           |  1 -
 srcpkgs/aterm/patches/fix-pty-musl.patch      |  4 +-
 srcpkgs/aterm/template                        |  1 -
 .../atomicparsley/patches/musl-fpos_t.patch   |  4 +-
 srcpkgs/atomicparsley/template                |  1 -
 srcpkgs/atop/patches/atop-bb-compat.patch     |  4 +-
 srcpkgs/atop/patches/fix-cflags.patch         |  4 +-
 srcpkgs/atop/patches/musl-fix-includes.patch  |  8 +--
 srcpkgs/atop/template                         |  1 -
 srcpkgs/attic/patches/openssl.diff            |  4 +-
 srcpkgs/attic/template                        |  1 -
 srcpkgs/attract/patches/Makefile.patch        |  4 +-
 srcpkgs/attract/patches/fix-musl.patch        |  4 +-
 srcpkgs/attract/template                      |  1 -
 srcpkgs/aubio/patches/disable-tests.patch     |  4 +-
 srcpkgs/aubio/template                        |  1 -
 srcpkgs/audacity/patches/configure.patch      |  4 +-
 srcpkgs/audacity/template                     |  1 -
 .../audiofile/patches/004-CVE-2017-6829.patch |  4 +-
 ...017-6833-CVE-2017-6835-CVE-2017-6837.patch |  4 +-
 .../audiofile/patches/006-CVE-2017-6839.patch |  8 +--
 ...017-6834-CVE-2017-6836-CVE-2017-6838.patch |  4 +-
 .../audiofile/patches/009-CVE-2017-6831.patch |  4 +-
 .../patches/fix-gcc6-shift_left.patch         |  4 +-
 srcpkgs/audiofile/template                    |  1 -
 .../patches/fish-completion-vendor.patch      |  4 +-
 srcpkgs/auto-auto-complete/template           |  1 -
 .../patches/fix-perl-5.22-autoscan.patch      |  4 +-
 srcpkgs/autoconf/template                     |  1 -
 srcpkgs/autoconf213/patches/patch-aa.diff     |  4 +-
 srcpkgs/autoconf213/patches/patch-ab.diff     |  4 +-
 srcpkgs/autoconf213/patches/patch-ac.diff     |  4 +-
 srcpkgs/autoconf213/template                  |  1 -
 srcpkgs/autofs/patches/musl.patch             | 16 +++---
 srcpkgs/autofs/template                       |  1 -
 .../patches/autogen-5.18.16-rpath.patch       | 24 ++++-----
 srcpkgs/autogen/patches/build-aux.patch       |  8 +--
 srcpkgs/autogen/patches/configure.patch       |  4 +-
 srcpkgs/autogen/template                      |  1 -
 srcpkgs/avidemux/patches/musl-execinfo.patch  |  4 +-
 srcpkgs/avidemux/patches/musl-memcpy.patch    |  4 +-
 srcpkgs/avidemux/patches/use-realpath.patch   |  4 +-
 srcpkgs/avidemux/template                     |  1 -
 srcpkgs/avr-binutils/patches/avr-size.patch   |  4 +-
 srcpkgs/avr-binutils/template                 |  1 -
 .../patches/0001-fix-configure-error.patch    |  8 +--
 .../patches/fix-compiler-environment.patch    |  4 +-
 srcpkgs/azpainter/template                    |  1 -
 157 files changed, 306 insertions(+), 361 deletions(-)

diff --git a/srcpkgs/a2jmidid/patches/musl-no-execinfo.patch b/srcpkgs/a2jmidid/patches/musl-no-execinfo.patch
index 3cdbbc1be97c..82e902eb9ab1 100644
--- a/srcpkgs/a2jmidid/patches/musl-no-execinfo.patch
+++ b/srcpkgs/a2jmidid/patches/musl-no-execinfo.patch
@@ -1,5 +1,5 @@
---- sigsegv.c.orig	2016-06-06 15:56:47.355074711 +0200
-+++ sigsegv.c	2016-06-06 15:55:40.740071274 +0200
+--- a/sigsegv.c
++++ b/sigsegv.c
 @@ -28,7 +28,9 @@
  #include <signal.h>
  #include <ucontext.h>
diff --git a/srcpkgs/a2jmidid/patches/musl-ppc.patch b/srcpkgs/a2jmidid/patches/musl-ppc.patch
index c16523512ef9..3fef806d263e 100644
--- a/srcpkgs/a2jmidid/patches/musl-ppc.patch
+++ b/srcpkgs/a2jmidid/patches/musl-ppc.patch
@@ -1,8 +1,8 @@
 This fixes build on ppc32/musl but also fixes incorrect usage of uc_regs
 on glibc (uc_regs is an mcontext_t pointer, you can't index it directly)
 
---- sigsegv.c
-+++ sigsegv.c
+--- a/sigsegv.c
++++ b/sigsegv.c
 @@ -97,7 +97,11 @@ static void signal_segv(int signum, siginfo_t* info, void*ptr) {
      for(i = 0; i < NGREG; i++)
          a2j_error("reg[%02d]       = 0x" REGFORMAT, i,
diff --git a/srcpkgs/a2jmidid/template b/srcpkgs/a2jmidid/template
index eca329aec5f1..b39aa31eef1c 100644
--- a/srcpkgs/a2jmidid/template
+++ b/srcpkgs/a2jmidid/template
@@ -11,4 +11,3 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/linuxaudio/a2jmidid/"
 distfiles="https://github.com/linuxaudio/a2jmidid/archive/${version}.tar.gz"
 checksum=2828d283e0c9a65f0683881f09676c8c35c45c97a8a56cf77b43b4ef0231df06
-patch_args=-Np0
diff --git a/srcpkgs/a2ps/patches/CVE-2001-1593.diff b/srcpkgs/a2ps/patches/CVE-2001-1593.diff
index 85c95e10d898..17b7e7d932e2 100644
--- a/srcpkgs/a2ps/patches/CVE-2001-1593.diff
+++ b/srcpkgs/a2ps/patches/CVE-2001-1593.diff
@@ -1,7 +1,7 @@
 Index: b/lib/routines.c
 ===================================================================
---- lib/routines.c
-+++ lib/routines.c
+--- a/lib/routines.c
++++ b/lib/routines.c
 @@ -242,3 +242,50 @@
    /* Don't complain if you can't unlink.  Who cares of a tmp file? */
    unlink (filename);
@@ -55,8 +55,8 @@ Index: b/lib/routines.c
 +}
 Index: b/lib/routines.h
 ===================================================================
---- lib/routines.h
-+++ lib/routines.h
+--- a/lib/routines.h
++++ b/lib/routines.h
 @@ -255,7 +255,8 @@
  /* If _STR_ is not defined, give it a tempname in _TMPDIR_ */
  #define tempname_ensure(Str)				\
diff --git a/srcpkgs/a2ps/patches/CVE-2014-0466.diff b/srcpkgs/a2ps/patches/CVE-2014-0466.diff
index ce9f2542b5c3..85199e35b0ff 100644
--- a/srcpkgs/a2ps/patches/CVE-2014-0466.diff
+++ b/srcpkgs/a2ps/patches/CVE-2014-0466.diff
@@ -6,8 +6,8 @@ Bug-Debian: http://bugs.debian.org/742902
 Author: Salvatore Bonaccorso <carnil@debian.org>
 Last-Update: 2014-03-28
 
---- contrib/fixps.in
-+++ contrib/fixps.in
+--- a/contrib/fixps.in
++++ b/contrib/fixps.in
 @@ -389,7 +389,7 @@
    	eval "$command" ;;
        gs)
@@ -17,8 +17,8 @@ Last-Update: 2014-03-28
      esac
    )
  fi
---- contrib/fixps.m4
-+++ contrib/fixps.m4
+--- a/contrib/fixps.m4
++++ b/contrib/fixps.m4
 @@ -307,7 +307,7 @@
    	eval "$command" ;;
        gs)
diff --git a/srcpkgs/a2ps/template b/srcpkgs/a2ps/template
index 5497ec5a574e..9335f38e08e0 100644
--- a/srcpkgs/a2ps/template
+++ b/srcpkgs/a2ps/template
@@ -14,7 +14,6 @@ homepage="http://www.gnu.org/software/a2ps/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4
 conf_files="/etc/a2ps/a2ps.cfg /etc/a2ps/a2ps-site.cfg"
-patch_args=-Np0
 
 LDFLAGS="-lm"
 
diff --git a/srcpkgs/abduco/patches/0001-Use-fixed-size-integer-types-in-protocol-messages.patch b/srcpkgs/abduco/patches/0001-Use-fixed-size-integer-types-in-protocol-messages.patch
index ad4476863e00..e4027d2f2415 100644
--- a/srcpkgs/abduco/patches/0001-Use-fixed-size-integer-types-in-protocol-messages.patch
+++ b/srcpkgs/abduco/patches/0001-Use-fixed-size-integer-types-in-protocol-messages.patch
@@ -19,8 +19,8 @@ as client and server (anything else is unsupported anyway!).
 
 diff --git abduco.c abduco.c
 index 3c60a36..1bd6304 100644
---- abduco.c
-+++ abduco.c
+--- a/abduco.c
++++ b/abduco.c
 @@ -15,6 +15,7 @@
   */
  #include <errno.h>
@@ -51,8 +51,8 @@ index 3c60a36..1bd6304 100644
  
 diff --git client.c client.c
 index 744f061..2c2192b 100644
---- client.c
-+++ client.c
+--- a/client.c
++++ b/client.c
 @@ -78,7 +78,7 @@ static int client_mainloop(void) {
  			if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) != -1) {
  				Packet pkt = {
@@ -64,8 +64,8 @@ index 744f061..2c2192b 100644
  				if (client_send_packet(&pkt))
 diff --git debug.c debug.c
 index b5748ab..e904e33 100644
---- debug.c
-+++ debug.c
+--- a/debug.c
++++ b/debug.c
 @@ -29,7 +29,7 @@ static void print_packet(const char *prefix, Packet *pkt) {
  		fwrite(pkt->u.msg, pkt->len, 1, stderr);
  		break;
@@ -86,8 +86,8 @@ index b5748ab..e904e33 100644
  	fprintf(stderr, "\n");
 diff --git server.c server.c
 index 78ccbe2..6f62cfb 100644
---- server.c
-+++ server.c
+--- a/server.c
++++ b/server.c
 @@ -224,7 +224,10 @@ static void server_mainloop(void) {
  				case MSG_REDRAW:
  					if (!(c->flags & CLIENT_READONLY) && (client_packet.type == MSG_REDRAW || c == server.clients)) {
diff --git a/srcpkgs/abduco/patches/0002-Fix-length-of-MSG_RESIZE-packet.patch b/srcpkgs/abduco/patches/0002-Fix-length-of-MSG_RESIZE-packet.patch
index 1e7dde3c4c68..11dcc03f43b9 100644
--- a/srcpkgs/abduco/patches/0002-Fix-length-of-MSG_RESIZE-packet.patch
+++ b/srcpkgs/abduco/patches/0002-Fix-length-of-MSG_RESIZE-packet.patch
@@ -10,8 +10,8 @@ We no longer send the complete struct winsize.
 
 diff --git client.c client.c
 index 2c2192b..f26bc8f 100644
---- client.c
-+++ client.c
+--- a/client.c
++++ b/client.c
 @@ -79,7 +79,7 @@ static int client_mainloop(void) {
  				Packet pkt = {
  					.type = MSG_RESIZE,
diff --git a/srcpkgs/abduco/patches/0003-Avoid-use-of-BUFSIZ-to-guarantee-system-independent-.patch b/srcpkgs/abduco/patches/0003-Avoid-use-of-BUFSIZ-to-guarantee-system-independent-.patch
index 3bf277098ec2..917a012cb351 100644
--- a/srcpkgs/abduco/patches/0003-Avoid-use-of-BUFSIZ-to-guarantee-system-independent-.patch
+++ b/srcpkgs/abduco/patches/0003-Avoid-use-of-BUFSIZ-to-guarantee-system-independent-.patch
@@ -10,8 +10,8 @@ Subject: [PATCH 3/4] Avoid use of BUFSIZ to guarantee system independent
 
 diff --git abduco.c abduco.c
 index 1bd6304..335907d 100644
---- abduco.c
-+++ abduco.c
+--- a/abduco.c
++++ b/abduco.c
 @@ -75,7 +75,7 @@ typedef struct {
  	uint32_t type;
  	uint32_t len;
diff --git a/srcpkgs/abduco/patches/0004-Correct-EOF-handling-on-client-stdin.patch b/srcpkgs/abduco/patches/0004-Correct-EOF-handling-on-client-stdin.patch
index 75ba5c44c30b..6822c167f569 100644
--- a/srcpkgs/abduco/patches/0004-Correct-EOF-handling-on-client-stdin.patch
+++ b/srcpkgs/abduco/patches/0004-Correct-EOF-handling-on-client-stdin.patch
@@ -11,8 +11,8 @@ of #15.
 
 diff --git client.c client.c
 index f26bc8f..6cf70c7 100644
---- client.c
-+++ client.c
+--- a/client.c
++++ b/client.c
 @@ -129,6 +129,9 @@ static int client_mainloop(void) {
  				} else if (!(client.flags & CLIENT_READONLY)) {
  					client_send_packet(&pkt);
diff --git a/srcpkgs/abduco/template b/srcpkgs/abduco/template
index 6aa3a516c5e2..21fa18ce85ae 100644
--- a/srcpkgs/abduco/template
+++ b/srcpkgs/abduco/template
@@ -10,7 +10,6 @@ license="ISC"
 homepage="http://www.brain-dump.org/projects/abduco/"
 distfiles="http://www.brain-dump.org/projects/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=c90909e13fa95770b5afc3b59f311b3d3d2fdfae23f9569fa4f96a3e192a35f4
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/abook/patches/inline.patch b/srcpkgs/abook/patches/inline.patch
index d437fde6ccb8..420ae2ad6c44 100644
--- a/srcpkgs/abook/patches/inline.patch
+++ b/srcpkgs/abook/patches/inline.patch
@@ -1,6 +1,6 @@
 diff -ur database.h database.h
---- database.h	2015-10-04 10:38:25.000000000 +0800
-+++ database.h	2018-02-15 21:11:46.311673251 +0800
+--- a/database.h
++++ b/database.h
 @@ -61,7 +61,7 @@
  /*
   * Field operations
diff --git a/srcpkgs/abook/template b/srcpkgs/abook/template
index c22614dedfb8..9538e8d1f4da 100644
--- a/srcpkgs/abook/template
+++ b/srcpkgs/abook/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later"
 homepage="http://abook.sourceforge.net/"
 distfiles="http://abook.sourceforge.net/devel/${pkgname}-${version}.tar.gz"
 checksum=f0a90df8694fb34685ecdd45d97db28b88046c15c95e7b0700596028bd8bc0f9
-patch_args=-Np0
 
 post_extract() {
 	autoreconf --install
diff --git a/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch b/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch
index da1b68f93aa0..f5046d47c658 100644
--- a/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch
+++ b/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch
@@ -1,7 +1,7 @@
 diff --git a/src/daemon.c b/src/daemon.c
 index 312394a..e7b3c58 100644
---- src/daemon.c
-+++ src/daemon.c
+--- a/src/daemon.c
++++ b/src/daemon.c
 @@ -140,6 +140,28 @@ error_get_type (void)
  #define MAX_LOCAL_USERS 50
  #endif
diff --git a/srcpkgs/accountsservice/patches/musl-wtmp.patch b/srcpkgs/accountsservice/patches/musl-wtmp.patch
index ea95f4e40d2b..1d01e3173311 100644
--- a/srcpkgs/accountsservice/patches/musl-wtmp.patch
+++ b/srcpkgs/accountsservice/patches/musl-wtmp.patch
@@ -1,7 +1,7 @@
 Reason: fix build on musl
 Tidy up and send upstream soon...
---- meson.build
-+++ meson.build
+--- a/meson.build
++++ b/meson.build
 @@ -82,8 +82,7 @@ if cc.has_header_symbol('utmpx.h', 'WTMPX_FILENAME', prefix: '#define _GNU_SOURC
  elif cc.has_header_symbol('paths.h', '_PATH_WTMPX')
    config_h.set('PATH_WTMP', '_PATH_WTMPX')
diff --git a/srcpkgs/accountsservice/template b/srcpkgs/accountsservice/template
index 84c28f82c875..c00a4077d8f7 100644
--- a/srcpkgs/accountsservice/template
+++ b/srcpkgs/accountsservice/template
@@ -17,7 +17,6 @@ checksum=ff2b2419a7e06bd9cb335ffe391c7409b49a0f0130b890bd54692a3986699c9b
 make_dirs="
  /var/lib/AccountsService/users 755 root root
  /var/lib/AccountsService/icons 755 root root"
-patch_args=-Np0
 
 # Package build options
 build_options="elogind gir"
diff --git a/srcpkgs/acct/patches/cross.patch b/srcpkgs/acct/patches/cross.patch
index 826dd6af77f7..3b27f6c03377 100644
--- a/srcpkgs/acct/patches/cross.patch
+++ b/srcpkgs/acct/patches/cross.patch
@@ -1,5 +1,5 @@
---- configure.orig	2017-07-02 17:54:06.000000000 +0200
-+++ configure	2018-09-05 19:44:40.854646115 +0200
+--- a/configure
++++ b/configure
 @@ -29608,7 +29608,7 @@
  
  fi
diff --git a/srcpkgs/acct/template b/srcpkgs/acct/template
index b3ac5cc05599..860bb6b28ccf 100644
--- a/srcpkgs/acct/template
+++ b/srcpkgs/acct/template
@@ -9,7 +9,6 @@ license="GPL-3.0-or-later"
 maintainer="Orphaned <orphan@voidlinux.org>"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
 checksum=4c15bf2b58b16378bcc83f70e77d4d40ab0b194acf2ebeefdb507f151faa663f
-patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	post_extract() {
diff --git a/srcpkgs/acpi_call-dkms/patches/linux4.12.patch b/srcpkgs/acpi_call-dkms/patches/linux4.12.patch
index 10fe2e5e3862..bac0a9d5422a 100644
--- a/srcpkgs/acpi_call-dkms/patches/linux4.12.patch
+++ b/srcpkgs/acpi_call-dkms/patches/linux4.12.patch
@@ -1,5 +1,5 @@
---- acpi_call.c.orig	2017-01-03 17:17:55.000000000 +0000
-+++ acpi_call.c	2017-07-15 00:28:28.259960007 +0000
+--- a/acpi_call.c
++++ b/acpi_call.c
 @@ -7,7 +7,7 @@
  #include <linux/version.h>
  #include <linux/proc_fs.h>
diff --git a/srcpkgs/acpi_call-dkms/patches/linux5.6.patch b/srcpkgs/acpi_call-dkms/patches/linux5.6.patch
index 507d74326063..65c18ac488bb 100644
--- a/srcpkgs/acpi_call-dkms/patches/linux5.6.patch
+++ b/srcpkgs/acpi_call-dkms/patches/linux5.6.patch
@@ -1,5 +1,5 @@
---- acpi_call.c.orig	2017-01-03 18:17:55.000000000 +0100
-+++ acpi_call.c	2020-03-31 10:35:40.493575868 +0200
+--- a/acpi_call.c
++++ b/acpi_call.c
 @@ -347,11 +347,18 @@
      return ret;
  }
diff --git a/srcpkgs/acpi_call-dkms/template b/srcpkgs/acpi_call-dkms/template
index 752770b0da9d..2a24e481538f 100644
--- a/srcpkgs/acpi_call-dkms/template
+++ b/srcpkgs/acpi_call-dkms/template
@@ -10,7 +10,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/damadmai/acpi_call"
 distfiles="$homepage/archive/v$version.tar.gz"
 checksum=c48a0a8768d657a8da7b59d7dbf6276554313fa6a0cb012fa4cf85a77e55f44b
-patch_args=-Np0
 
 dkms_modules="acpi_call ${version}"
 depends="dkms"
diff --git a/srcpkgs/acpid/patches/disable-logging-to-console.patch b/srcpkgs/acpid/patches/disable-logging-to-console.patch
index 32acb35d8367..6bc3728038c2 100644
--- a/srcpkgs/acpid/patches/disable-logging-to-console.patch
+++ b/srcpkgs/acpid/patches/disable-logging-to-console.patch
@@ -1,5 +1,5 @@
---- acpid.c
-+++ acpid.c
+--- a/acpid.c
++++ b/acpid.c
 @@ -389,7 +389,7 @@ open_log(void)
  	int log_opts;
  
diff --git a/srcpkgs/acpid/patches/portability.patch b/srcpkgs/acpid/patches/portability.patch
index 03bdcbaee33d..2135600ab8e1 100644
--- a/srcpkgs/acpid/patches/portability.patch
+++ b/srcpkgs/acpid/patches/portability.patch
@@ -3,8 +3,8 @@ Portability fixes:
 - Do not use isfdtype()... rather use fstat(2).
 - Define TEMP_FAILURE_RETRY if needed.
 
---- acpid.h	2014-02-26 01:36:58.788146100 +0100
-+++ acpid.h	2014-12-28 06:58:18.252702509 +0100
+--- a/acpid.h
++++ b/acpid.h
 @@ -39,6 +39,15 @@
  
  #define PACKAGE 		"acpid"
@@ -21,8 +21,8 @@ Portability fixes:
  /*
   * acpid.c
   */
---- kacpimon/libnetlink.c	2013-02-24 14:20:06.624844873 +0100
-+++ kacpimon/libnetlink.c	2014-12-28 06:59:50.283706615 +0100
+--- a/kacpimon/libnetlink.c
++++ b/kacpimon/libnetlink.c
 @@ -24,6 +24,7 @@
  #include <time.h>
  #include <sys/uio.h>
@@ -31,8 +31,8 @@ Portability fixes:
  #include "libnetlink.h"
  
  void rtnl_close(struct rtnl_handle *rth)
---- libnetlink.c	2012-07-15 00:29:38.168312376 +0200
-+++ libnetlink.c	2014-12-28 06:59:17.379705147 +0100
+--- a/libnetlink.c
++++ b/libnetlink.c
 @@ -24,6 +24,7 @@
  #include <time.h>
  #include <sys/uio.h>
@@ -41,8 +41,8 @@ Portability fixes:
  #include "libnetlink.h"
  
  void rtnl_close(struct rtnl_handle *rth)
---- sock.c	2013-08-15 01:30:44.655673004 +0200
-+++ sock.c	2014-12-28 07:11:31.198737890 +0100
+--- a/sock.c
++++ b/sock.c
 @@ -53,7 +54,12 @@ int non_root_clients;
  int
  is_socket(int fd)
diff --git a/srcpkgs/acpid/template b/srcpkgs/acpid/template
index df44a949213a..8312d0e4e15a 100644
--- a/srcpkgs/acpid/template
+++ b/srcpkgs/acpid/template
@@ -10,7 +10,6 @@ homepage="https://sourceforge.net/projects/acpid2/"
 distfiles="${SOURCEFORGE_SITE}/acpid2/acpid-${version}.tar.xz"
 checksum=f2d2d30b3edc3234bd82f6f7186699a6aa3c85c8d20bc4e30e9b3c68a1ed157e
 conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"
-patch_args=-Np0
 
 post_install() {
 	vinstall ${FILESDIR}/handler.sh 755 etc/acpi
diff --git a/srcpkgs/actiona/patches/bytearray-constdata.patch b/srcpkgs/actiona/patches/bytearray-constdata.patch
index 0432bea0ce55..4f6e0355f0f3 100644
--- a/srcpkgs/actiona/patches/bytearray-constdata.patch
+++ b/srcpkgs/actiona/patches/bytearray-constdata.patch
@@ -1,5 +1,5 @@
---- actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp	2018-07-17 20:29:12.000000000 +0200
-+++ actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp	2018-07-28 13:26:14.340872982 +0200
+--- a/actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp
++++ b/actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp
 @@ -98,7 +98,7 @@
      }
  #else
diff --git a/srcpkgs/actiona/patches/no-updater.patch b/srcpkgs/actiona/patches/no-updater.patch
index 6cb9a6956577..634bf16c254a 100644
--- a/srcpkgs/actiona/patches/no-updater.patch
+++ b/srcpkgs/actiona/patches/no-updater.patch
@@ -1,5 +1,5 @@
---- actiona.pro	2015-06-22 17:22:46.000000000 +0200
-+++ actiona.pro	2015-10-08 12:08:09.582973444 +0200
+--- a/actiona.pro
++++ b/actiona.pro
 @@ -1,5 +1,6 @@
  TEMPLATE = subdirs
  CONFIG = ordered
diff --git a/srcpkgs/actiona/patches/socket-include-order.patch b/srcpkgs/actiona/patches/socket-include-order.patch
index bb8aac11a402..06faed7c5604 100644
--- a/srcpkgs/actiona/patches/socket-include-order.patch
+++ b/srcpkgs/actiona/patches/socket-include-order.patch
@@ -1,5 +1,5 @@
---- actions/actionpacksystem/systeminfo/linux/qnetworkinfo_linux.cpp	2018-07-17 20:29:12.000000000 +0200
-+++ actions/actionpacksystem/systeminfo/linux/qnetworkinfo_linux.cpp	2018-07-27 20:12:49.889568736 +0200
+--- a/actions/actionpacksystem/systeminfo/linux/qnetworkinfo_linux.cpp
++++ b/actions/actionpacksystem/systeminfo/linux/qnetworkinfo_linux.cpp
 @@ -62,11 +62,11 @@
  #endif // QT_NO_UDEV
  
diff --git a/srcpkgs/actiona/patches/use-lrelease-qt5.patch b/srcpkgs/actiona/patches/use-lrelease-qt5.patch
index 5123691334d6..0ca24638980d 100644
--- a/srcpkgs/actiona/patches/use-lrelease-qt5.patch
+++ b/srcpkgs/actiona/patches/use-lrelease-qt5.patch
@@ -1,5 +1,5 @@
---- actiona.pro	2020-05-07 12:41:07.738401940 +0200
-+++ actiona.pro	2020-05-07 12:47:22.744386988 +0200
+--- a/actiona.pro
++++ b/actiona.pro
 @@ -15,7 +15,7 @@
  
  isEmpty(QMAKE_LRELEASE) {
diff --git a/srcpkgs/actiona/template b/srcpkgs/actiona/template
index 9b66b6e673a2..6ce3ccdc6b41 100644
--- a/srcpkgs/actiona/template
+++ b/srcpkgs/actiona/template
@@ -14,7 +14,6 @@ license="GPL-3.0-or-later"
 homepage="https://actiona.tools/"
 distfiles="https://github.com/Jmgr/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=447065e380f8f37db4c8af01df8e1b9d7189cd256205f758845b71d8de6f37ea
-patch_args=-Np0
 
 post_build() {
 	lrelease-qt5 locale/*.ts
diff --git a/srcpkgs/afterstep/patches/39-Fix-parallel-builds.patch b/srcpkgs/afterstep/patches/39-Fix-parallel-builds.patch
index 5a7ea3bd9c2d..a422506b5b0e 100644
--- a/srcpkgs/afterstep/patches/39-Fix-parallel-builds.patch
+++ b/srcpkgs/afterstep/patches/39-Fix-parallel-builds.patch
@@ -15,8 +15,8 @@ https://buildd.debian.org/status/fetch.php?pkg=afterstep&arch=amd64&ver=2.2.12-1
 
 diff --git a/libAfterConf/Makefile.in b/libAfterConf/Makefile.in
 index fa049a3..686a958 100644
---- libAfterConf/Makefile.in
-+++ libAfterConf/Makefile.in
+--- a/libAfterConf/Makefile.in
++++ b/libAfterConf/Makefile.in
 @@ -52,7 +52,7 @@ make_standard_categories:	make_standard_categories.o
  PrintDesktopEntries.o:	DesktopEntry.c
  		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) -DPRINT_DESKTOP_ENTRIES $(INCLUDES) $(EXTRA_INCLUDES) -c DesktopEntry.c -o PrintDesktopEntries.o
diff --git a/srcpkgs/afterstep/patches/40-Fix-few-gcc-warnings.patch b/srcpkgs/afterstep/patches/40-Fix-few-gcc-warnings.patch
index a7e1e3cde21b..f93c475a1f05 100644
--- a/srcpkgs/afterstep/patches/40-Fix-few-gcc-warnings.patch
+++ b/srcpkgs/afterstep/patches/40-Fix-few-gcc-warnings.patch
@@ -13,8 +13,8 @@ Subject: 40 Fix few gcc warnings
 
 diff --git a/libAfterImage/import.c b/libAfterImage/import.c
 index f2c7ad1..c80b9c3 100644
---- libAfterImage/import.c
-+++ libAfterImage/import.c
+--- a/libAfterImage/import.c
++++ b/libAfterImage/import.c
 @@ -585,7 +585,7 @@ get_thumbnail_asimage( ASImageManager* imageman, const char *file, int thumb_wid
  
  	if (imageman && file)
@@ -53,8 +53,8 @@ index f2c7ad1..c80b9c3 100644
  	
 diff --git a/libAfterImage/ungif.c b/libAfterImage/ungif.c
 index cb9c628..faa1da7 100644
---- libAfterImage/ungif.c
-+++ libAfterImage/ungif.c
+--- a/libAfterImage/ungif.c
++++ b/libAfterImage/ungif.c
 @@ -153,7 +153,8 @@ get_gif_image_desc( GifFileType *gif, SavedImage *im )
  		{
  			im->ImageDesc.ColorMap = MakeMapObject(gif->Image.ColorMap->ColorCount, NULL);
@@ -67,8 +67,8 @@ index cb9c628..faa1da7 100644
   		}
 diff --git a/src/ASDocGen/ASDocGen.c b/src/ASDocGen/ASDocGen.c
 index f8d38e9..bed04b8 100644
---- src/ASDocGen/ASDocGen.c
-+++ src/ASDocGen/ASDocGen.c
+--- a/src/ASDocGen/ASDocGen.c
++++ b/src/ASDocGen/ASDocGen.c
 @@ -880,7 +880,7 @@ gen_glossary( const char *dest_dir, const char *file, ASDocType doc_type )
  	LOCAL_DEBUG_OUT( "Glossary has %ld items", Glossary->items_num);
  	if( (doc_type == DocType_HTML	|| doc_type == DocType_PHP ) && Glossary->items_num > 0 )
@@ -107,8 +107,8 @@ index f8d38e9..bed04b8 100644
  		
 diff --git a/src/ASMount/main.c b/src/ASMount/main.c
 index 9a42b49..ae22ad5 100644
---- src/ASMount/main.c
-+++ src/ASMount/main.c
+--- a/src/ASMount/main.c
++++ b/src/ASMount/main.c
 @@ -1238,7 +1238,9 @@ void init_ASMount(ASFlagType flags, const char *cmd)
  	reloadButtons();
  	AppState.volumes = create_asbidirlist (ASVolume_destroy);
@@ -131,8 +131,8 @@ index 9a42b49..ae22ad5 100644
  #else	
 diff --git a/src/afterstep/cover.c b/src/afterstep/cover.c
 index 5455c48..11a76a4 100644
---- src/afterstep/cover.c
-+++ src/afterstep/cover.c
+--- a/src/afterstep/cover.c
++++ b/src/afterstep/cover.c
 @@ -101,7 +101,7 @@ void do_anim_shape_blocks (void *vdata)
  #ifdef SHAPE
  	struct ASDeskAniBlocks *data = (struct ASDeskAniBlocks *)vdata;
@@ -154,8 +154,8 @@ index 5455c48..11a76a4 100644
  			continue;
 diff --git a/src/afterstep/dbus.c b/src/afterstep/dbus.c
 index d7594d9..d311094 100644
---- src/afterstep/dbus.c
-+++ src/afterstep/dbus.c
+--- a/src/afterstep/dbus.c
++++ b/src/afterstep/dbus.c
 @@ -240,11 +240,13 @@ Bool get_gnome_autosave ()
  {
  	Bool autosave = False;
diff --git a/srcpkgs/afterstep/patches/43-Fix-gcc-warning.patch b/srcpkgs/afterstep/patches/43-Fix-gcc-warning.patch
index 59f82b5c0ec9..d341d8f1c775 100644
--- a/srcpkgs/afterstep/patches/43-Fix-gcc-warning.patch
+++ b/srcpkgs/afterstep/patches/43-Fix-gcc-warning.patch
@@ -9,8 +9,8 @@ Fix "undefined behaviour" warning
 
 diff --git a/libAfterConf/Database.c b/libAfterConf/Database.c
 index c10df0d..1cfc7f9 100644
---- libAfterConf/Database.c
-+++ libAfterConf/Database.c
+--- a/libAfterConf/Database.c
++++ b/libAfterConf/Database.c
 @@ -578,7 +578,8 @@ void delete_name_list (name_list ** head)
  		style_delete (*head, head);
  }
diff --git a/srcpkgs/afterstep/patches/44-Fix-build-with-gcc-5.patch b/srcpkgs/afterstep/patches/44-Fix-build-with-gcc-5.patch
index be01406c1982..9447bcf990d9 100644
--- a/srcpkgs/afterstep/patches/44-Fix-build-with-gcc-5.patch
+++ b/srcpkgs/afterstep/patches/44-Fix-build-with-gcc-5.patch
@@ -25,8 +25,8 @@ Bug-Debian: https://bugs.debian.org/777768
 
 diff --git a/libAfterBase/asvector.h b/libAfterBase/asvector.h
 index 242bbb8..ec83231 100644
---- libAfterBase/asvector.h
-+++ libAfterBase/asvector.h
+--- a/libAfterBase/asvector.h
++++ b/libAfterBase/asvector.h
 @@ -38,7 +38,7 @@ ASVector *append_vector( ASVector *v, void * data, size_t size );
  /* returns index on success, -1 on failure */
  int vector_insert_elem( ASVector *v, void *data, size_t size, void *sibling, int before );
@@ -38,8 +38,8 @@ index 242bbb8..ec83231 100644
  int vector_remove_elem( ASVector *v, void *data );
 diff --git a/libAfterBase/output.h b/libAfterBase/output.h
 index fd186a7..ef21919 100644
---- libAfterBase/output.h
-+++ libAfterBase/output.h
+--- a/libAfterBase/output.h
++++ b/libAfterBase/output.h
 @@ -56,7 +56,7 @@ Bool show_debug( const char *file, const char *func, int line, const char *msg_f
  
  
@@ -51,8 +51,8 @@ index fd186a7..ef21919 100644
   * your compiler . Thanks!!! */
 diff --git a/libAfterBase/parse.h b/libAfterBase/parse.h
 index 193fbba..e4db499 100644
---- libAfterBase/parse.h
-+++ libAfterBase/parse.h
+--- a/libAfterBase/parse.h
++++ b/libAfterBase/parse.h
 @@ -73,7 +73,7 @@ format_geometry ( int x, int y, unsigned int width, unsigned int height, int fla
  
  double parse_math(const char* str, char** endptr, double size);
@@ -64,8 +64,8 @@ index 193fbba..e4db499 100644
  char *hex_to_buffer(void *data, size_t bytes, char* buffer);
 diff --git a/libAfterConf/Feel.c b/libAfterConf/Feel.c
 index 0f2224b..787964d 100644
---- libAfterConf/Feel.c
-+++ libAfterConf/Feel.c
+--- a/libAfterConf/Feel.c
++++ b/libAfterConf/Feel.c
 @@ -29,6 +29,8 @@
  
  #include "afterconf.h"
@@ -77,8 +77,8 @@ index 0f2224b..787964d 100644
  	{ASA_Virtual, WINDOWBOX_Virtual_ID, 0}
 diff --git a/libAfterStep/colorscheme.c b/libAfterStep/colorscheme.c
 index 6cdeb56..5b93107 100644
---- libAfterStep/colorscheme.c
-+++ libAfterStep/colorscheme.c
+--- a/libAfterStep/colorscheme.c
++++ b/libAfterStep/colorscheme.c
 @@ -162,7 +162,7 @@ static inline ARGB32 MAKE_ARGB32_SHADE100 (CARD32 a, int s100)
  	return MAKE_ARGB32_GREY8 (a, s8);
  }
@@ -90,8 +90,8 @@ index 6cdeb56..5b93107 100644
  {
 diff --git a/libAfterStep/event.c b/libAfterStep/event.c
 index a27759b..8c7a449 100644
---- libAfterStep/event.c
-+++ libAfterStep/event.c
+--- a/libAfterStep/event.c
++++ b/libAfterStep/event.c
 @@ -202,7 +202,7 @@ void sync_event_queue (Bool forget)
  /****************************************************************************
   * Records the time of the last processed event. Used in XSetInputFocus
@@ -103,8 +103,8 @@ index a27759b..8c7a449 100644
  		register Time *ptime =
 diff --git a/libAfterStep/functions.h b/libAfterStep/functions.h
 index fb565f1..a50f4e3 100644
---- libAfterStep/functions.h
-+++ libAfterStep/functions.h
+--- a/libAfterStep/functions.h
++++ b/libAfterStep/functions.h
 @@ -314,7 +314,7 @@ FunctionCode change_func_code (const char *func_name, FunctionCode new_code);
  void init_func_data (FunctionData * data);
  void copy_func_data (FunctionData * dst, FunctionData * src);
@@ -116,8 +116,8 @@ index fb565f1..a50f4e3 100644
  void destroy_func_data( FunctionData **pdata );
 diff --git a/libAfterStep/mylook.h b/libAfterStep/mylook.h
 index 7bff0b8..a002aa8 100644
---- libAfterStep/mylook.h
-+++ libAfterStep/mylook.h
+--- a/libAfterStep/mylook.h
++++ b/libAfterStep/mylook.h
 @@ -397,7 +397,7 @@ void myback_delete( MyBackground **myback, ASImageManager *imman );
  MyDesktopConfig *create_mydeskconfig( int desk, char *data );
  void init_deskconfigs_list( MyLook *look );
@@ -142,8 +142,8 @@ index 7bff0b8..a002aa8 100644
  
 diff --git a/libAfterStep/session.h b/libAfterStep/session.h
 index 536e225..73945d8 100644
---- libAfterStep/session.h
-+++ libAfterStep/session.h
+--- a/libAfterStep/session.h
++++ b/libAfterStep/session.h
 @@ -49,7 +49,7 @@ void 	   destroy_assession (ASSession * session);
  void       update_default_session ( ASSession *session, int func);
  
@@ -155,8 +155,8 @@ index 536e225..73945d8 100644
  void 	   change_desk_session (ASSession * session, int desk, const char *new_val, int function);
 diff --git a/src/WinList2/WinList.c b/src/WinList2/WinList.c
 index 6db35ac..6c98f38 100644
---- src/WinList2/WinList.c
-+++ src/WinList2/WinList.c
+--- a/src/WinList2/WinList.c
++++ b/src/WinList2/WinList.c
 @@ -976,7 +976,7 @@ moveresize_main_canvas( int width, int height )
  void
  postponed_rearrange_winlist( void *vdata )
@@ -168,8 +168,8 @@ index 6db35ac..6c98f38 100644
  
 diff --git a/src/afterstep/asinternals.h b/src/afterstep/asinternals.h
 index 81b3249..9f75fd8 100644
---- src/afterstep/asinternals.h
-+++ src/afterstep/asinternals.h
+--- a/src/afterstep/asinternals.h
++++ b/src/afterstep/asinternals.h
 @@ -575,6 +575,7 @@ void asdbus_shutdown();
  void asdbus_process_messages ();
  
@@ -202,8 +202,8 @@ index 81b3249..9f75fd8 100644
  				int pointer_mode, int keyboard_mode, Window confine_to, Cursor cursor);
 diff --git a/src/afterstep/events.c b/src/afterstep/events.c
 index 5588ffb..19e5441 100644
---- src/afterstep/events.c
-+++ src/afterstep/events.c
+--- a/src/afterstep/events.c
++++ b/src/afterstep/events.c
 @@ -46,6 +46,7 @@
  #include "../../libAfterStep/moveresize.h"
  
@@ -214,8 +214,8 @@ index 5588ffb..19e5441 100644
  # include <sys/shm.h>
 diff --git a/src/afterstep/menuitem.c b/src/afterstep/menuitem.c
 index 1adcb65..8a35186 100644
---- src/afterstep/menuitem.c
-+++ src/afterstep/menuitem.c
+--- a/src/afterstep/menuitem.c
++++ b/src/afterstep/menuitem.c
 @@ -55,6 +55,8 @@
  
  #include "dirtree.h"
diff --git a/srcpkgs/afterstep/patches/45-Fix-libAfterBase-Makefile.patch b/srcpkgs/afterstep/patches/45-Fix-libAfterBase-Makefile.patch
index 110ec8ae82bd..76d07b6d829e 100644
--- a/srcpkgs/afterstep/patches/45-Fix-libAfterBase-Makefile.patch
+++ b/srcpkgs/afterstep/patches/45-Fix-libAfterBase-Makefile.patch
@@ -11,8 +11,8 @@ by libAfterImage.
 
 diff --git a/libAfterBase/Makefile.in b/libAfterBase/Makefile.in
 index 41f53c6..3dc63b7 100644
---- libAfterBase/Makefile.in
-+++ libAfterBase/Makefile.in
+--- a/libAfterBase/Makefile.in
++++ b/libAfterBase/Makefile.in
 @@ -137,7 +137,6 @@ install.script:
  install.dyn:
  		@( echo "$(INSTALL_LIB) $(LIB_SHARED).$(LIBVER) $(LIBDIR)"; \
diff --git a/srcpkgs/afterstep/patches/50-cross-safe-min-max.patch b/srcpkgs/afterstep/patches/50-cross-safe-min-max.patch
index 71872c7763b4..36739e9d2ebd 100644
--- a/srcpkgs/afterstep/patches/50-cross-safe-min-max.patch
+++ b/srcpkgs/afterstep/patches/50-cross-safe-min-max.patch
@@ -1,7 +1,7 @@
 diff --git libAfterBase/configure.in libAfterBase/configure.in
 index 4bc2232..f250692 100644
---- libAfterBase/configure.in
-+++ libAfterBase/configure.in
+--- a/libAfterBase/configure.in
++++ b/libAfterBase/configure.in
 @@ -228,12 +228,7 @@ if test "x$enable_xlocale" = "xyes"; then
  fi
  
diff --git a/srcpkgs/afterstep/patches/51-configure-pass-cross-alias-down.patch b/srcpkgs/afterstep/patches/51-configure-pass-cross-alias-down.patch
index cc3f0f28db33..35a3879c151c 100644
--- a/srcpkgs/afterstep/patches/51-configure-pass-cross-alias-down.patch
+++ b/srcpkgs/afterstep/patches/51-configure-pass-cross-alias-down.patch
@@ -1,7 +1,7 @@
 diff --git configure configure
 index bc9a30e..95e7b3a 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -6254,6 +6254,8 @@ FROM_AFTERSTEP_CONFIGURE=yes
  export FROM_AFTERSTEP_CONFIGURE
  
diff --git a/srcpkgs/afterstep/patches/52-libafterimage-cross.patch b/srcpkgs/afterstep/patches/52-libafterimage-cross.patch
index 316d32216100..48e79bab4223 100644
--- a/srcpkgs/afterstep/patches/52-libafterimage-cross.patch
+++ b/srcpkgs/afterstep/patches/52-libafterimage-cross.patch
@@ -1,7 +1,7 @@
 diff --git libAfterImage/configure.in libAfterImage/configure.in
 index ca49a50..780e0ff 100644
---- libAfterImage/configure.in
-+++ libAfterImage/configure.in
+--- a/libAfterImage/configure.in
++++ b/libAfterImage/configure.in
 @@ -590,21 +590,21 @@ else
  					  )
  	  if test "x$have_ft2build" = "xno" ; then
diff --git a/srcpkgs/afterstep/template b/srcpkgs/afterstep/template
index f5b99af26493..ba9c15546dea 100644
--- a/srcpkgs/afterstep/template
+++ b/srcpkgs/afterstep/template
@@ -13,7 +13,6 @@ license="MIT"
 homepage="http://www.afterstep.org/"
 distfiles="https://github.com/sashavasko/${pkgname}-devel/archive/${version}.tar.gz"
 checksum=7a82d06a9ce432ef3b0856ff39f6da416aa8cbc249dbb2ff3c1cdcb02e2ca46d
-patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi libAfterBase
diff --git a/srcpkgs/agg/patches/agg-2.4-depends.patch b/srcpkgs/agg/patches/agg-2.4-depends.patch
index 8db32441ab36..5a1d07a64328 100644
--- a/srcpkgs/agg/patches/agg-2.4-depends.patch
+++ b/srcpkgs/agg/patches/agg-2.4-depends.patch
@@ -1,5 +1,5 @@
---- font_freetype/Makefile.am	2005-10-18 11:45:40.000000000 +0100
-+++ font_freetype/Makefile.am	2006-07-10 15:11:55.000000000 +0100
+--- a/font_freetype/Makefile.am
++++ b/font_freetype/Makefile.am
 @@ -4,8 +4,9 @@
  agginclude_HEADERS = agg_font_freetype.h
  lib_LTLIBRARIES = libaggfontfreetype.la
@@ -11,8 +11,8 @@
 +libaggfontfreetype_la_LIBADD = ../src/libagg.la @FREETYPE_LIBS@
  endif
  
---- src/platform/sdl/Makefile.am	2005-10-17 23:49:35.000000000 +0100
-+++ src/platform/sdl/Makefile.am	2006-07-10 15:11:55.000000000 +0100
+--- a/src/platform/sdl/Makefile.am
++++ b/src/platform/sdl/Makefile.am
 @@ -5,6 +5,6 @@
  libaggplatformsdl_la_LDFLAGS = -version-info @AGG_LIB_VERSION@
  libaggplatformsdl_la_SOURCES = agg_platform_support.cpp
@@ -21,8 +21,8 @@
 +libaggplatformsdl_la_LIBADD = ../../libagg.la @SDL_LIBS@
  endif
  
---- configure.in	2006-10-09 05:06:36.000000000 +0100
-+++ configure.in	2007-01-07 14:07:39.000000000 +0000
+--- a/configure.in
++++ b/configure.in
 @@ -122,7 +122,8 @@
  fi
  AM_CONDITIONAL(ENABLE_X11,[test x$no_x = x -a xno != x$enable_platform -a x$win32_host != xyes])
@@ -33,8 +33,8 @@
  dnl ###############################################
  
  dnl Settung up library version
---- src/platform/X11/Makefile.am	2006-12-11 00:59:45.000000000 +0000
-+++ src/platform/X11/Makefile.am	2007-01-07 14:07:39.000000000 +0000
+--- a/src/platform/X11/Makefile.am
++++ b/src/platform/X11/Makefile.am
 @@ -1,8 +1,8 @@
  if ENABLE_X11
  lib_LTLIBRARIES = libaggplatformX11.la
diff --git a/srcpkgs/agg/patches/agg-2.5-pkgconfig.patch b/srcpkgs/agg/patches/agg-2.5-pkgconfig.patch
index 431bed6c7a12..9bb31489c640 100644
--- a/srcpkgs/agg/patches/agg-2.5-pkgconfig.patch
+++ b/srcpkgs/agg/patches/agg-2.5-pkgconfig.patch
@@ -1,5 +1,5 @@
---- libagg.pc.in.orig	2007-01-07 13:58:28.000000000 +0000
-+++ libagg.pc.in	2007-01-07 14:02:40.000000000 +0000
+--- a/libagg.pc.in
++++ b/libagg.pc.in
 @@ -6,5 +6,6 @@
  Name: libagg
  Description: Anti Grain Geometry - A High Quality Rendering Engine for C++
diff --git a/srcpkgs/agg/patches/gcc82.patch b/srcpkgs/agg/patches/gcc82.patch
index eb535ff03181..a835dc66192a 100644
--- a/srcpkgs/agg/patches/gcc82.patch
+++ b/srcpkgs/agg/patches/gcc82.patch
@@ -1,5 +1,5 @@
---- include/agg_renderer_outline_aa.h	2006-10-09 06:07:08.000000000 +0200
-+++ include/agg_renderer_outline_aa.h	2018-08-22 11:06:28.038930861 +0200
+--- a/include/agg_renderer_outline_aa.h
++++ b/include/agg_renderer_outline_aa.h
 @@ -1375,7 +1375,7 @@
          //---------------------------------------------------------------------
          void profile(const line_profile_aa& prof) { m_profile = &prof; }
diff --git a/srcpkgs/agg/template b/srcpkgs/agg/template
index 5cdbcaa17b47..a313e19cb1f9 100644
--- a/srcpkgs/agg/template
+++ b/srcpkgs/agg/template
@@ -13,7 +13,6 @@ homepage="http://www.antigrain.com/"
 license="GPL-2.0-or-later"
 distfiles="http://www.antigrain.com/agg-${version}.tar.gz"
 checksum=ab1edc54cc32ba51a62ff120d501eecd55fceeedf869b9354e7e13812289911f
-patch_args=-Np0
 
 pre_configure() {
 	sed -e '/AM_C_PROTOTYPES/d' -i configure.in
diff --git a/srcpkgs/allegro4/patches/mesa10-uncompat.patch b/srcpkgs/allegro4/patches/mesa10-uncompat.patch
index ae1aa4440ef5..b197600d1a8e 100644
--- a/srcpkgs/allegro4/patches/mesa10-uncompat.patch
+++ b/srcpkgs/allegro4/patches/mesa10-uncompat.patch
@@ -7,8 +7,8 @@ once mesa-10 contains the above commit.
 
 	-- xtraeme
 
---- addons/allegrogl/include/allegrogl/GLext/glx_ext_api.h.orig	2014-01-05 09:08:26.796542194 +0100
-+++ addons/allegrogl/include/allegrogl/GLext/glx_ext_api.h	2014-01-05 09:08:46.115682136 +0100
+--- a/addons/allegrogl/include/allegrogl/GLext/glx_ext_api.h
++++ b/addons/allegrogl/include/allegrogl/GLext/glx_ext_api.h
 @@ -59,8 +59,8 @@ AGL_API(void, DestroyGLXVideoSourceSGIX,
  /* GLX_EXT_import_context */
  AGL_API(Display *, GetCurrentDisplayEXT, (void))
diff --git a/srcpkgs/allegro4/template b/srcpkgs/allegro4/template
index 99b570dcb675..f8901c34cecc 100644
--- a/srcpkgs/allegro4/template
+++ b/srcpkgs/allegro4/template
@@ -17,7 +17,6 @@ homepage="http://alleg.sourceforge.net/"
 homepage="https://liballeg.org"
 distfiles="https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz"
 checksum=ec19dbc9a021244582b4819b3583ee594b50141f9fcf6944a4ed8069cbf8d4d4
-patch_args=-Np0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/allegro5/patches/time64.patch b/srcpkgs/allegro5/patches/time64.patch
index 93b0491c6132..cd956abd1b7d 100644
--- a/srcpkgs/allegro5/patches/time64.patch
+++ b/srcpkgs/allegro5/patches/time64.patch
@@ -1,5 +1,5 @@
---- src/linux/lhaptic.c	2015-06-01 21:58:12.000000000 +0200
-+++ src/linux/lhaptic.c	2020-12-06 09:50:58.475010832 +0100
+--- a/src/linux/lhaptic.c
++++ b/src/linux/lhaptic.c
 @@ -57,6 +57,7 @@
  
  
diff --git a/srcpkgs/allegro5/template b/srcpkgs/allegro5/template
index d96d1b779231..f55a7eb6c144 100644
--- a/srcpkgs/allegro5/template
+++ b/srcpkgs/allegro5/template
@@ -17,7 +17,6 @@ license="Allegro License (MIT alike)"
 homepage="https://liballeg.org/"
 distfiles="https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz"
 checksum=5de8189ec051e1865f359654f86ec68e2a12a94edd00ad06d1106caa5ff27763
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE.txt
diff --git a/srcpkgs/alsa-firmware/patches/musl.patch b/srcpkgs/alsa-firmware/patches/musl.patch
index f2c1ac2c5384..8f8db5d62c31 100644
--- a/srcpkgs/alsa-firmware/patches/musl.patch
+++ b/srcpkgs/alsa-firmware/patches/musl.patch
@@ -1,5 +1,5 @@
---- hdsploader/multiface_firmware_rev11.dat.orig
-+++ hdsploader/multiface_firmware_rev11.dat
+--- a/hdsploader/multiface_firmware_rev11.dat
++++ b/hdsploader/multiface_firmware_rev11.dat
 @@ -1,5 +1,5 @@
  /* stored in little-endian */
 -static u_int32_t multiface_firmware_rev11[24413] = {
@@ -7,8 +7,8 @@
  0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
  0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
  0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
---- hdsploader/digiface_firmware_rev11.dat.orig
-+++ hdsploader/digiface_firmware_rev11.dat
+--- a/hdsploader/digiface_firmware_rev11.dat
++++ b/hdsploader/digiface_firmware_rev11.dat
 @@ -1,5 +1,5 @@
  /* stored in little-endian */
 -static u_int32_t digiface_firmware_rev11[24413] = {
@@ -16,8 +16,8 @@
  0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
  0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
  0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
---- hdsploader/digiface_firmware.dat.orig
-+++ hdsploader/digiface_firmware.dat
+--- a/hdsploader/digiface_firmware.dat
++++ b/hdsploader/digiface_firmware.dat
 @@ -1,5 +1,5 @@
  /* stored in little-endian */
 -static u_int32_t digiface_firmware[24413] = {
@@ -25,8 +25,8 @@
  0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
  0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
  0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
---- hdsploader/tobin.c.orig
-+++ hdsploader/tobin.c
+--- a/hdsploader/tobin.c
++++ b/hdsploader/tobin.c
 @@ -1,5 +1,6 @@
  #include <stdio.h>
  #include <stdlib.h>
@@ -43,8 +43,8 @@
  {
  	FILE *out;
  	
---- hdsploader/multiface_firmware.dat.orig
-+++ hdsploader/multiface_firmware.dat
+--- a/hdsploader/multiface_firmware.dat
++++ b/hdsploader/multiface_firmware.dat
 @@ -1,5 +1,5 @@
  /* stored in little-endian */
 -static u_int32_t multiface_firmware[24413] = {
diff --git a/srcpkgs/alsa-firmware/template b/srcpkgs/alsa-firmware/template
index 8ded0831aa1c..b85bc791275d 100644
--- a/srcpkgs/alsa-firmware/template
+++ b/srcpkgs/alsa-firmware/template
@@ -12,7 +12,6 @@ distfiles="https://www.alsa-project.org/files/pub/firmware/${pkgname}-${version}
 checksum=b67b6d7d08bcfc247ef6ff0ab88a99c188305a3cf57ae2dfd0bcd9a5b36cd5bb
 nostrip=yes
 ignore_elf_files="/usr/share/alsa/firmware/mixartloader/miXart8.elf"
-patch_args=-Np0
 
 pre_configure() {
 	export CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" LDFLAGS="${BUILD_LDFLAGS}"
diff --git a/srcpkgs/alsa-tools/patches/musl-__sighandler_t.patch b/srcpkgs/alsa-tools/patches/musl-__sighandler_t.patch
index 7231d2e59ba7..de47ebd72e71 100644
--- a/srcpkgs/alsa-tools/patches/musl-__sighandler_t.patch
+++ b/srcpkgs/alsa-tools/patches/musl-__sighandler_t.patch
@@ -1,5 +1,5 @@
---- ./ld10k1/src/ld10k1_fnc1.c.orig	2015-09-10 22:54:40.229499746 -0400
-+++ ./ld10k1/src/ld10k1_fnc1.c	2015-09-10 23:09:37.236472375 -0400
+--- a/ld10k1/src/ld10k1_fnc1.c
++++ b/ld10k1/src/ld10k1_fnc1.c
 @@ -23,6 +23,10 @@
  #include "config.h"
  #endif
diff --git a/srcpkgs/alsa-tools/template b/srcpkgs/alsa-tools/template
index e96cc23f1547..1078472c79ae 100644
--- a/srcpkgs/alsa-tools/template
+++ b/srcpkgs/alsa-tools/template
@@ -12,7 +12,6 @@ homepage="http://alsa-project.org"
 distfiles="https://www.alsa-project.org/files/pub/tools/alsa-tools-${version}.tar.bz2"
 checksum=bfd3c7aae1289269605d3da02279159b10e3dabdd31e658cbceaa30170957349
 python_version=3
-patch_args=-Np0
 
 _tools="
 	as10k1 echomixer envy24control hdajackretask hdajacksensetest hda-verb hdspconf
diff --git a/srcpkgs/amdvlk/patches/cmake-build-type-none.patch b/srcpkgs/amdvlk/patches/cmake-build-type-none.patch
index 897bbe44b142..e783c88ee9c1 100644
--- a/srcpkgs/amdvlk/patches/cmake-build-type-none.patch
+++ b/srcpkgs/amdvlk/patches/cmake-build-type-none.patch
@@ -1,7 +1,7 @@
 Index: llvm-project/llvm/CMakeLists.txt
 ===================================================================
---- llvm-project/llvm/CMakeLists.txt.orig
-+++ llvm-project/llvm/CMakeLists.txt
+--- a/llvm-project/llvm/CMakeLists.txt
++++ b/llvm-project/llvm/CMakeLists.txt
 @@ -251,11 +251,6 @@ endif()
  
  string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
@@ -16,8 +16,8 @@ Index: llvm-project/llvm/CMakeLists.txt
  set(LLVM_TOOLS_INSTALL_DIR "bin" CACHE STRING "Path for binary subdirectory (defaults to 'bin')")
 Index: pal/cmake/Modules/AmdCmakeHelper.cmake
 ===================================================================
---- pal/cmake/Modules/AmdCmakeHelper.cmake.orig
-+++ pal/cmake/Modules/AmdCmakeHelper.cmake
+--- a/pal/cmake/Modules/AmdCmakeHelper.cmake
++++ b/pal/cmake/Modules/AmdCmakeHelper.cmake
 @@ -37,11 +37,6 @@ if (CMAKE_CONFIGURATION_TYPES)
  else()
      string(TOUPPER "${CMAKE_BUILD_TYPE}" capital_CMAKE_BUILD_TYPE)
@@ -32,8 +32,8 @@ Index: pal/cmake/Modules/AmdCmakeHelper.cmake
          set(CMAKE_BUILD_TYPE_RELEASE OFF)
 Index: xgl/CMakeLists.txt
 ===================================================================
---- xgl/CMakeLists.txt.orig
-+++ xgl/CMakeLists.txt
+--- a/xgl/CMakeLists.txt
++++ b/xgl/CMakeLists.txt
 @@ -181,11 +181,6 @@ if (CMAKE_CONFIGURATION_TYPES)
  else()
      string(TOUPPER "${CMAKE_BUILD_TYPE}" capital_CMAKE_BUILD_TYPE)
@@ -46,8 +46,8 @@ Index: xgl/CMakeLists.txt
      if(capital_CMAKE_BUILD_TYPE STREQUAL "DEBUG")
          set(CMAKE_BUILD_TYPE_DEBUG ON)
          set(CMAKE_BUILD_TYPE_RELEASE OFF)
---- xgl/cmake/Modules/AmdCmakeHelper.cmake	2021-04-07 06:57:17.000000000 +0200
-+++ -	2021-04-26 14:11:03.415683706 +0200
+--- a/xgl/cmake/Modules/AmdCmakeHelper.cmake
++++ b/-
 @@ -35,11 +35,6 @@
  else()
      string(TOUPPER "${CMAKE_BUILD_TYPE}" capital_CMAKE_BUILD_TYPE)
diff --git a/srcpkgs/amdvlk/patches/musl.patch b/srcpkgs/amdvlk/patches/musl.patch
index 266bde5a8043..520eae14c380 100644
--- a/srcpkgs/amdvlk/patches/musl.patch
+++ b/srcpkgs/amdvlk/patches/musl.patch
@@ -1,5 +1,5 @@
---- pal/shared/gpuopen/src/posix/ddPosixSocket.cpp	2019-10-18 11:06:42.000000000 +0200
-+++ -	2019-10-29 20:15:35.614608453 +0100
+--- a/pal/shared/gpuopen/src/posix/ddPosixSocket.cpp
++++ b/-
 @@ -34,7 +34,7 @@
  #include <sys/types.h>
  #include <sys/socket.h>
diff --git a/srcpkgs/amdvlk/template b/srcpkgs/amdvlk/template
index 6a29a3bc9290..1182a174b558 100644
--- a/srcpkgs/amdvlk/template
+++ b/srcpkgs/amdvlk/template
@@ -42,7 +42,6 @@ checksum="ec17d7f7c7af5adaa2fee7744321da3665be215105df7c3fc72bfeff2575a509
  186060fbcf87165224ba7df0e1858b66ebc42cf190c481aef1df8d89ebab7abd"
 nocross=yes
 lib32files="/usr/share/vulkan/icd.d/amd_icd32.json"
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*) nodebug=yes;;
diff --git a/srcpkgs/angrysearch/patches/00-fiximport.patch b/srcpkgs/angrysearch/patches/00-fiximport.patch
index 7ea7efc0af25..4143059338de 100644
--- a/srcpkgs/angrysearch/patches/00-fiximport.patch
+++ b/srcpkgs/angrysearch/patches/00-fiximport.patch
@@ -1,7 +1,7 @@
 diff --git angrysearch.py angrysearch.py
 index 33c181d..ef9d5a2 100644
---- angrysearch.py
-+++ angrysearch.py
+--- a/angrysearch.py
++++ b/angrysearch.py
 @@ -18,6 +18,8 @@ import subprocess
  import sys
  import time
diff --git a/srcpkgs/angrysearch/template b/srcpkgs/angrysearch/template
index bf03527607a7..96b6b6604ba8 100644
--- a/srcpkgs/angrysearch/template
+++ b/srcpkgs/angrysearch/template
@@ -13,7 +13,6 @@ homepage="https://github.com/dotheevo/angrysearch/"
 distfiles="http://github.com/dotheevo/${pkgname}/archive/v${version}.tar.gz"
 checksum=9a550649c3efafb26660860758f2e75702ce96a0a0c50dc34ced2967b51a843f
 python_version=3
-patch_args=-Np0
 
 do_install() {
 	vinstall angrysearch.desktop 644 "usr/share/applications"
diff --git a/srcpkgs/anjuta/patches/fix-unistd_h.patch b/srcpkgs/anjuta/patches/fix-unistd_h.patch
index a4ca4fcec13a..1248ab5e9761 100644
--- a/srcpkgs/anjuta/patches/fix-unistd_h.patch
+++ b/srcpkgs/anjuta/patches/fix-unistd_h.patch
@@ -1,7 +1,7 @@
 Fix wrong include for musl libc.
 
---- launcher/anjuta-launcher.c	2014-10-17 21:35:31.000000000 +0200
-+++ launcher/anjuta-launcher.c	2015-09-09 22:09:06.719400546 +0200
+--- a/launcher/anjuta-launcher.c
++++ b/launcher/anjuta-launcher.c
 @@ -22,7 +22,7 @@
  #endif
  
diff --git a/srcpkgs/anjuta/patches/python.patch b/srcpkgs/anjuta/patches/python.patch
index e18651257272..614e80edbfda 100644
--- a/srcpkgs/anjuta/patches/python.patch
+++ b/srcpkgs/anjuta/patches/python.patch
@@ -1,5 +1,5 @@
---- configure.ac.orig	2020-07-04 20:59:04.718066026 +0700
-+++ configure.ac	2020-07-04 20:59:54.542554633 +0700
+--- a/configure.ac
++++ b/configure.ac
 @@ -370,7 +370,7 @@
  	[have_python="no"])
  
diff --git a/srcpkgs/anjuta/patches/vala.patch b/srcpkgs/anjuta/patches/vala.patch
index 178ed45b5ab4..d7400985fd85 100644
--- a/srcpkgs/anjuta/patches/vala.patch
+++ b/srcpkgs/anjuta/patches/vala.patch
@@ -1,5 +1,5 @@
---- configure.ac.orig	2020-07-04 20:32:36.223805943 +0700
-+++ configure.ac	2020-07-04 20:33:01.432033914 +0700
+--- a/configure.ac
++++ b/configure.ac
 @@ -338,7 +338,7 @@
  else
          AC_MSG_RESULT(no)
diff --git a/srcpkgs/anjuta/patches/vala048.patch b/srcpkgs/anjuta/patches/vala048.patch
index f9e11ba07b9f..bddaa488e096 100644
--- a/srcpkgs/anjuta/patches/vala048.patch
+++ b/srcpkgs/anjuta/patches/vala048.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] language-support-vala: Support for vala 0.48 API
 
 diff --git a/plugins/language-support-vala/plugin.vala b/plugins/language-support-vala/plugin.vala
 index 13d35fec4..718d74cc8 100644
---- plugins/language-support-vala/plugin.vala
-+++ plugins/language-support-vala/plugin.vala
+--- a/plugins/language-support-vala/plugin.vala
++++ b/plugins/language-support-vala/plugin.vala
 @@ -414,11 +414,19 @@ public class ValaPlugin : Plugin, IAnjuta.Preferences {
  			builder.append_printf ("%s sender", widget.get_full_name ());
  
diff --git a/srcpkgs/anjuta/template b/srcpkgs/anjuta/template
index e861c17df632..b46d58aeafe3 100644
--- a/srcpkgs/anjuta/template
+++ b/srcpkgs/anjuta/template
@@ -22,7 +22,6 @@ license="GPL-2.0-or-later"
 homepage="https://projects.gnome.org/anjuta"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=42a93130ed3ee02d064a7094e94e1ffae2032b3f35a87bf441e37fc3bb3a148f
-patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/anki/patches/fix_mpv_args.patch b/srcpkgs/anki/patches/fix_mpv_args.patch
index 96dec5eceaf0..0b99dd8fe856 100644
--- a/srcpkgs/anki/patches/fix_mpv_args.patch
+++ b/srcpkgs/anki/patches/fix_mpv_args.patch
@@ -1,5 +1,5 @@
---- ./anki/mpv.py
-+++ ./anki/mpv.py
+--- a/anki/mpv.py
++++ b/anki/mpv.py
 @@ -104,9 +104,9 @@
          """
          self.argv = [self.executable]
@@ -13,8 +13,8 @@
      def _start_process(self):
          """Start the mpv process.
 
---- ./anki/sound.py
-+++ ./anki/sound.py
+--- a/anki/sound.py
++++ b/anki/sound.py
 @@ -123,10 +123,7 @@
  
  def setMpvConfigBase(base):
diff --git a/srcpkgs/anki/template b/srcpkgs/anki/template
index 731999e63600..55976fbd26eb 100644
--- a/srcpkgs/anki/template
+++ b/srcpkgs/anki/template
@@ -13,7 +13,6 @@ homepage="https://apps.ankiweb.net"
 changelog="https://apps.ankiweb.net/docs/changes.html"
 distfiles="https://apps.ankiweb.net/downloads/archive/anki-$version-source.tgz"
 checksum=5a53760164c77d619f55107a13099cffe620566a7f610b61b6c4b52487f3bb89
-patch_args=-Np0
 
 python_version=3
 
diff --git a/srcpkgs/antimicrox/patches/time64.patch b/srcpkgs/antimicrox/patches/time64.patch
index 8d98f948e5ed..74af74b3442d 100644
--- a/srcpkgs/antimicrox/patches/time64.patch
+++ b/srcpkgs/antimicrox/patches/time64.patch
@@ -1,5 +1,5 @@
---- src/eventhandlers/uinputeventhandler.cpp	2020-10-02 09:51:36.000000000 +0200
-+++ src/eventhandlers/uinputeventhandler.cpp	2020-12-06 10:17:47.922175141 +0100
+--- a/src/eventhandlers/uinputeventhandler.cpp
++++ b/src/eventhandlers/uinputeventhandler.cpp
 @@ -498,9 +498,12 @@
  {
      struct input_event ev;
diff --git a/srcpkgs/antimicrox/template b/srcpkgs/antimicrox/template
index 1e4a1d081868..6a77e8e3a09b 100644
--- a/srcpkgs/antimicrox/template
+++ b/srcpkgs/antimicrox/template
@@ -13,7 +13,6 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/AntiMicroX/antimicrox"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=53c6b0e6c8ea8c3a5527b56e1ad052eae983ba36abfc090769c6164bc5f342dd
-patch_args=-Np0
 
 libantimicrox_package() {
 	short_desc+=" - libraries"
diff --git a/srcpkgs/apache/patches/libressl.patch b/srcpkgs/apache/patches/libressl.patch
index 7729a1e674bd..b06ddd49d7ff 100644
--- a/srcpkgs/apache/patches/libressl.patch
+++ b/srcpkgs/apache/patches/libressl.patch
@@ -1,5 +1,5 @@
---- modules/ssl/ssl_engine_init.c.orig  2018-10-30 16:25:09.084840429 +0100
-+++ modules/ssl/ssl_engine_init.c       2018-10-30 16:25:55.019411636 +0100
+--- a/modules/ssl/ssl_engine_init.c
++++ b/modules/ssl/ssl_engine_init.c       2018-10-30 16:25:55.019411636 +0100
 @@ -1492,7 +1492,7 @@
      X509_STORE_CTX *sctx;
      X509_STORE *store = SSL_CTX_get_cert_store(mctx->ssl_ctx);
diff --git a/srcpkgs/apache/template b/srcpkgs/apache/template
index 24fa60ac48a6..3c92ff8fc988 100644
--- a/srcpkgs/apache/template
+++ b/srcpkgs/apache/template
@@ -37,7 +37,6 @@ homepage="http://httpd.apache.org/"
 changelog="http://www.apache.org/dist/httpd/CHANGES_2.4"
 distfiles="https://archive.apache.org/dist/httpd/httpd-${version}.tar.bz2"
 checksum=1bc826e7b2e88108c7e4bf43c026636f77a41d849cfb667aa7b5c0b86dbf966c
-patch_args=-Np0
 
 system_accounts="_${pkgname}"
 _apache_homedir="/srv/www/$pkgname"
diff --git a/srcpkgs/apl/patches/musl.patch b/srcpkgs/apl/patches/musl.patch
index 76df82d020b8..4c546e17929b 100644
--- a/srcpkgs/apl/patches/musl.patch
+++ b/srcpkgs/apl/patches/musl.patch
@@ -1,5 +1,5 @@
---- src/Error.hh.orig	2019-06-24 11:12:35.825267571 +0200
-+++ src/Error.hh	2019-06-24 11:12:46.505396162 +0200
+--- a/src/Error.hh
++++ b/src/Error.hh
 @@ -26,6 +26,8 @@
  #include "ErrorCode.hh"
  #include "UCS_string.hh"
diff --git a/srcpkgs/apl/patches/ppc.patch b/srcpkgs/apl/patches/ppc.patch
index 1b373e13cdd0..9db0e0d13a1c 100644
--- a/srcpkgs/apl/patches/ppc.patch
+++ b/srcpkgs/apl/patches/ppc.patch
@@ -8,8 +8,8 @@ Tokenizer.cc:769:4: error: floating constant exceeds range of 'long double' [-We
     exp_0_9(1E30)
     ^~~~~~~
 
---- src/Tokenizer.cc
-+++ src/Tokenizer.cc
+--- a/src/Tokenizer.cc
++++ b/src/Tokenizer.cc
 @@ -755,10 +755,10 @@
         MAX_TOKENIZE_DIGITS = MAX_TOKENIZE_DIGITS_1 - 1   // excl. rounding digit
       };
diff --git a/srcpkgs/apl/template b/srcpkgs/apl/template
index 06472f651624..88b8d32b6720 100644
--- a/srcpkgs/apl/template
+++ b/srcpkgs/apl/template
@@ -14,7 +14,6 @@ distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=144f4c858a0d430ce8f28be90a35920dd8e0951e56976cb80b55053fa0d8bbcb
 nocross="execs target binary: ./Gtk_server --ev1 > Gtk_events1.asciidoc"
 CXXFLAGS="-Wno-format-truncation -Wno-class-memaccess -Wno-maybe-uninitialized -Wno-restrict -Wno-cpp"
-patch_args=-Np0
 
 post_install() {
 	vdoc support-files/Dyalog-Keyboard/apl.xkb
diff --git a/srcpkgs/appstream-glib/patches/0001-flip-archive_h-and-archive_entry_h-order-on-client-as-util.patch b/srcpkgs/appstream-glib/patches/0001-flip-archive_h-and-archive_entry_h-order-on-client-as-util.patch
index 5535c39ceff3..90d85364681d 100644
--- a/srcpkgs/appstream-glib/patches/0001-flip-archive_h-and-archive_entry_h-order-on-client-as-util.patch
+++ b/srcpkgs/appstream-glib/patches/0001-flip-archive_h-and-archive_entry_h-order-on-client-as-util.patch
@@ -1,7 +1,7 @@
 They are in the wrong order.
 
---- client/as-util.c
-+++ client/as-util.c
+--- a/client/as-util.c
++++ b/client/as-util.c
 @@ -27,8 +27,8 @@
  #include <gio/gio.h>
  
diff --git a/srcpkgs/appstream-glib/patches/0002-flip-archive_h-and-archive_entry_h-order-on-libappstream-glib-as-util.patch b/srcpkgs/appstream-glib/patches/0002-flip-archive_h-and-archive_entry_h-order-on-libappstream-glib-as-util.patch
index 8c5f70c480f3..2502048d75ac 100644
--- a/srcpkgs/appstream-glib/patches/0002-flip-archive_h-and-archive_entry_h-order-on-libappstream-glib-as-util.patch
+++ b/srcpkgs/appstream-glib/patches/0002-flip-archive_h-and-archive_entry_h-order-on-libappstream-glib-as-util.patch
@@ -1,7 +1,7 @@
 They are in the wrong order.
 
---- libappstream-glib/as-utils.c
-+++ libappstream-glib/as-utils.c
+--- a/libappstream-glib/as-utils.c
++++ b/libappstream-glib/as-utils.c
 @@ -34,8 +34,8 @@
  
  #include <fnmatch.h>
diff --git a/srcpkgs/appstream-glib/template b/srcpkgs/appstream-glib/template
index 36c6fffca5d1..5eaf493d53f6 100644
--- a/srcpkgs/appstream-glib/template
+++ b/srcpkgs/appstream-glib/template
@@ -16,7 +16,6 @@ homepage="https://people.freedesktop.org/~hughsient/appstream-glib/"
 changelog="https://raw.githubusercontent.com/hughsie/appstream-glib/master/NEWS"
 distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
 checksum=ca1ed22e3bde3912cb903aaa7de085d55771da454f1c0573fd9608e1de9c4002
-patch_args=-Np0
 
 build_options="gir"
 build_options_default="gir"
diff --git a/srcpkgs/apr/patches/atomic64.patch b/srcpkgs/apr/patches/atomic64.patch
index afd06447e015..ced9b7df0abd 100644
--- a/srcpkgs/apr/patches/atomic64.patch
+++ b/srcpkgs/apr/patches/atomic64.patch
@@ -9,8 +9,8 @@ Date:   Fri Jan 10 13:04:37 2020 +0100
 
 diff --git atomic/unix/builtins64.c atomic/unix/builtins64.c
 index 4a4b685..90b5c5e 100644
---- atomic/unix/builtins64.c
-+++ atomic/unix/builtins64.c
+--- a/atomic/unix/builtins64.c
++++ b/atomic/unix/builtins64.c
 @@ -30,35 +30,34 @@ APR_DECLARE(void) apr_atomic_set64(volatile apr_uint64_t *mem, apr_uint64_t val)
  
  APR_DECLARE(apr_uint64_t) apr_atomic_add64(volatile apr_uint64_t *mem, apr_uint64_t val)
diff --git a/srcpkgs/apr/template b/srcpkgs/apr/template
index 1fa0399f64b6..f2dc1241668a 100644
--- a/srcpkgs/apr/template
+++ b/srcpkgs/apr/template
@@ -11,7 +11,6 @@ license="Apache-2.0"
 homepage="http://apr.apache.org/"
 distfiles="http://www.apache.org/dist/apr/apr-${version}.tar.bz2"
 checksum=e2e148f0b2e99b8e5c6caa09f6d4fb4dd3e83f744aa72a952f94f5a14436f7ea
-patch_args=-Np0
 
 # Do not redefine struct iovec in include/apr_want.h
 CFLAGS="-DAPR_IOVEC_DEFINED=1"
diff --git a/srcpkgs/apvlv/patches/cxxflags_from_env.patch b/srcpkgs/apvlv/patches/cxxflags_from_env.patch
index 45889baa52e3..191d32e96b2e 100644
--- a/srcpkgs/apvlv/patches/cxxflags_from_env.patch
+++ b/srcpkgs/apvlv/patches/cxxflags_from_env.patch
@@ -1,5 +1,5 @@
---- src/CMakeLists.txt.orig	2016-09-14 01:48:05.822928918 +0200
-+++ src/CMakeLists.txt	2016-09-14 01:48:54.906931451 +0200
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
 @@ -1,7 +1,7 @@
  IF (WIN32)
    ADD_DEFINITIONS (-D_CRT_SECURE_NO_WARNINGS)
diff --git a/srcpkgs/apvlv/template b/srcpkgs/apvlv/template
index 8cd23927d55a..8d343dbe3358 100644
--- a/srcpkgs/apvlv/template
+++ b/srcpkgs/apvlv/template
@@ -14,4 +14,3 @@ homepage="http://naihe2010.github.io/apvlv/"
 distfiles="https://github.com/naihe2010/apvlv/archive/v${version}.tar.gz"
 checksum=a4a2f42a7e42715a21d2356def3ed93c180c6ae41128580addee42835e5374c2
 replaces="apvlv-git>=0"
-patch_args=-Np0
diff --git a/srcpkgs/aqbanking/patches/cmake-prefix.patch b/srcpkgs/aqbanking/patches/cmake-prefix.patch
index a181d75530c2..5c1b7779687d 100644
--- a/srcpkgs/aqbanking/patches/cmake-prefix.patch
+++ b/srcpkgs/aqbanking/patches/cmake-prefix.patch
@@ -1,5 +1,5 @@
---- aqbanking-config.cmake.in	2018-01-10 16:09:39.079835643 +0100
-+++ aqbanking-config.cmake.in	2018-01-10 16:11:18.140403253 +0100
+--- a/aqbanking-config.cmake.in
++++ b/aqbanking-config.cmake.in
 @@ -19,7 +19,18 @@
  include(CMakeFindDependencyMacro)
  find_dependency(gwenhywfar "@GWENHYWFAR_MINIMUM_VERSION@")
diff --git a/srcpkgs/aqbanking/template b/srcpkgs/aqbanking/template
index 9f509f325469..ea55a80935d7 100644
--- a/srcpkgs/aqbanking/template
+++ b/srcpkgs/aqbanking/template
@@ -12,7 +12,6 @@ homepage="http://www.aquamaniac.de/aqbanking"
 distfiles="https://www.aquamaniac.de/rdm/attachments/download/372/${pkgname}-${version}.tar.gz"
 checksum=a0e85da2072c927bc32cfd808caaccfdabe34725e75618b08d8049306d8355cc
 disable_parallel_build=yes
-patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
diff --git a/srcpkgs/aqemu/patches/stdexcept.patch b/srcpkgs/aqemu/patches/stdexcept.patch
index 70c87ccd073c..401f45d70b06 100644
--- a/srcpkgs/aqemu/patches/stdexcept.patch
+++ b/srcpkgs/aqemu/patches/stdexcept.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] stdexcept
 
 diff --git src/docopt/docopt_value.h src/docopt/docopt_value.h
 index ddb8a8e..99aa545 100644
---- src/docopt/docopt_value.h
-+++ src/docopt/docopt_value.h
+--- a/src/docopt/docopt_value.h
++++ b/src/docopt/docopt_value.h
 @@ -13,7 +13,7 @@
  #include <iosfwd>
  #include <string>
diff --git a/srcpkgs/aqemu/template b/srcpkgs/aqemu/template
index 0ada7d5bc748..eea61aa562bc 100644
--- a/srcpkgs/aqemu/template
+++ b/srcpkgs/aqemu/template
@@ -12,7 +12,6 @@ license="GPL-2.0-only"
 homepage="http://aqemu.sourceforge.net"
 distfiles="https://github.com/TBK/aqemu/archive/v${version}.tar.gz"
 checksum=576ae78de936518a1de057355ffc192b59e42be934f0111122b2c5fcafe318a7
-patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
diff --git a/srcpkgs/ardour/patches/6.0-fix-build.patch b/srcpkgs/ardour/patches/6.0-fix-build.patch
index 8228287d253d..b78b8dcc183c 100644
--- a/srcpkgs/ardour/patches/6.0-fix-build.patch
+++ b/srcpkgs/ardour/patches/6.0-fix-build.patch
@@ -1,7 +1,7 @@
 diff --git libs/ardour/wscript libs/ardour/wscript
 index 49cea6a..a7f8e84 100644
---- libs/ardour/wscript
-+++ libs/ardour/wscript
+--- a/libs/ardour/wscript
++++ b/libs/ardour/wscript
 @@ -384,7 +384,7 @@ def build(bld):
  
      # remove '${DEFINES_ST:DEFINES}' from run_str.
diff --git a/srcpkgs/ardour/patches/6.0-fix-runtime.patch b/srcpkgs/ardour/patches/6.0-fix-runtime.patch
index 1f438ca84e7e..0c76cd3a69f8 100644
--- a/srcpkgs/ardour/patches/6.0-fix-runtime.patch
+++ b/srcpkgs/ardour/patches/6.0-fix-runtime.patch
@@ -1,5 +1,5 @@
---- libs/pbd/pbd/pthread_utils.h.orig	2020-09-18 22:30:18.353441907 +0700
-+++ libs/pbd/pbd/pthread_utils.h	2020-09-18 22:37:07.059363532 +0700
+--- a/libs/pbd/pbd/pthread_utils.h
++++ b/libs/pbd/pbd/pthread_utils.h
 @@ -49,7 +49,7 @@
  #include "pbd/signals.h"
  
diff --git a/srcpkgs/ardour/patches/use-bundled-qm-dsp.patch b/srcpkgs/ardour/patches/use-bundled-qm-dsp.patch
index 86dca8dc5e7f..07e6c74963c1 100644
--- a/srcpkgs/ardour/patches/use-bundled-qm-dsp.patch
+++ b/srcpkgs/ardour/patches/use-bundled-qm-dsp.patch
@@ -10,8 +10,8 @@ Subject: [PATCH] use bundled qm-dsp
 
 diff --git libs/qm-dsp/wscript libs/qm-dsp/wscript
 index 92dc9502b1..dbbff16722 100644
---- libs/qm-dsp/wscript
-+++ libs/qm-dsp/wscript
+--- a/libs/qm-dsp/wscript
++++ b/libs/qm-dsp/wscript
 @@ -23,17 +23,10 @@ def options(opt):
      autowaf.set_options(opt)
  
@@ -34,8 +34,8 @@ index 92dc9502b1..dbbff16722 100644
      obj.source = '''
 diff --git wscript wscript
 index 4b5acb0ad7..c0358af37e 100644
---- wscript
-+++ wscript
+--- a/wscript
++++ b/wscript
 @@ -991,8 +991,6 @@ def configure(conf):
  
      if Options.options.use_external_libs:
diff --git a/srcpkgs/ardour/template b/srcpkgs/ardour/template
index 14e6810a0ac5..ae133e67b141 100644
--- a/srcpkgs/ardour/template
+++ b/srcpkgs/ardour/template
@@ -18,7 +18,6 @@ short_desc="Professional-grade digital audio workstation"
 maintainer="tibequadorian <tibequadorian@posteo.de>"
 license="GPL-2.0-or-later"
 homepage="http://ardour.org"
-patch_args=-Np0
 
 CXXFLAGS="-fpermissive"
 
diff --git a/srcpkgs/arduino/patches/astyle_fix.patch b/srcpkgs/arduino/patches/astyle_fix.patch
index 7b07f5744208..b3ddc4d3e457 100644
--- a/srcpkgs/arduino/patches/astyle_fix.patch
+++ b/srcpkgs/arduino/patches/astyle_fix.patch
@@ -1,5 +1,5 @@
---- astyle/src/astyle_main.cpp	2017-05-30 20:26:37.000000000 -0400
-+++ astyle/src/astyle_main.cpp	2019-09-11 20:38:02.155936887 -0400
+--- a/astyle/src/astyle_main.cpp
++++ b/astyle/src/astyle_main.cpp
 @@ -3749,7 +3749,7 @@
  // called by a java program to get the version number
  // the function name is constructed from method names in the calling java program
@@ -18,8 +18,8 @@
                                                  jobject obj,
                                                  jstring textInJava,
                                                  jstring optionsJava)
---- astyle/src/astyle_main.h	2017-05-30 20:26:37.000000000 -0400
-+++ astyle/src/astyle_main.h	2019-09-11 20:39:15.953536523 -0400
+--- a/astyle/src/astyle_main.h
++++ b/astyle/src/astyle_main.h
 @@ -406,9 +406,9 @@
  char* STDCALL javaMemoryAlloc(unsigned long memoryNeeded);
  // the following function names are constructed from method names in the calling java program
diff --git a/srcpkgs/arduino/patches/disable-dependency-build.patch b/srcpkgs/arduino/patches/disable-dependency-build.patch
index 6a7144c906c4..f2f227e9821e 100644
--- a/srcpkgs/arduino/patches/disable-dependency-build.patch
+++ b/srcpkgs/arduino/patches/disable-dependency-build.patch
@@ -1,5 +1,5 @@
---- Arduino-1.8.13/build/build.xml.orig	2020-12-27 20:34:41.813419495 +0100
-+++ Arduino-1.8.13/build/build.xml	2020-12-27 20:32:58.075425211 +0100
+--- a/Arduino-1.8.13/build/build.xml
++++ b/Arduino-1.8.13/build/build.xml
 @@ -345,7 +345,7 @@
  
      <!-- figure out the IDE version number in base.java -->
diff --git a/srcpkgs/arduino/template b/srcpkgs/arduino/template
index 5d6531ec93fc..d352962e73d3 100644
--- a/srcpkgs/arduino/template
+++ b/srcpkgs/arduino/template
@@ -19,7 +19,6 @@ checksum="2a2a7bf0a93d36dff2e27f50e490529f10ff73337d6a0b7b222fa6b1a529c9f7
  6c3ab029e0e4a75e2e603d449014374aa8269218fdd03a4aaa46ab743b1912fd"
 nostrip=yes
 nocross="cross build lacks essential libraries"
-patch_args=-Np0
 
 if [ "$XBPS_TARGET_LIBC" = musl ]; then
 	broken="downloads multiple binaries linked to glibc; segfaults with gcompat"
diff --git a/srcpkgs/argon2/patches/explicit-bzero.patch b/srcpkgs/argon2/patches/explicit-bzero.patch
index 57762d70a11f..2d49ff5fd348 100644
--- a/srcpkgs/argon2/patches/explicit-bzero.patch
+++ b/srcpkgs/argon2/patches/explicit-bzero.patch
@@ -1,7 +1,7 @@
 # reason: use explizit_bzero on musl too!
 
---- src/core.c
-+++ src/core.c
+--- a/src/core.c
++++ b/src/core.c
 @@ -27,6 +27,7 @@
  
  /* for explicit_bzero() on glibc */
diff --git a/srcpkgs/argon2/patches/libdir.patch b/srcpkgs/argon2/patches/libdir.patch
index 31b86db3eb8d..013adc1ca2b9 100644
--- a/srcpkgs/argon2/patches/libdir.patch
+++ b/srcpkgs/argon2/patches/libdir.patch
@@ -2,8 +2,8 @@
 #   upstream believes Ubuntu/Debian are the only ones
 #   to report "$(uname -s)-$(uname -m)" as Linux-x86_64 ...
 
---- Makefile
-+++ Makefile
+--- a/Makefile
++++ b/Makefile
 @@ -138,14 +138,6 @@
  LIBRARY_REL ?= lib
  PKGCONFIG_REL ?= libdata
diff --git a/srcpkgs/argon2/template b/srcpkgs/argon2/template
index 04bdaf7a1419..7cc1bb0617eb 100644
--- a/srcpkgs/argon2/template
+++ b/srcpkgs/argon2/template
@@ -14,7 +14,6 @@ license="CC0-1.0, Apache-2.0"
 homepage="https://github.com/P-H-C/phc-winner-argon2"
 distfiles="https://github.com/P-H-C/phc-winner-argon2/archive/${version}.tar.gz"
 checksum=daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c
-patch_args=-Np0
 
 libargon2_package() {
 	short_desc="Password hashing library"
diff --git a/srcpkgs/argyllcms/patches/fix-gcc6-attribute_numsup_h.patch b/srcpkgs/argyllcms/patches/fix-gcc6-attribute_numsup_h.patch
index a60961ebff58..bfd29d1ae7af 100644
--- a/srcpkgs/argyllcms/patches/fix-gcc6-attribute_numsup_h.patch
+++ b/srcpkgs/argyllcms/patches/fix-gcc6-attribute_numsup_h.patch
@@ -1,6 +1,6 @@
 
---- numlib/numsup.h	2015-10-26 05:17:33.000000000 +0100
-+++ numlib/numsup.h	2016-10-04 10:10:28.732000000 +0200
+--- a/numlib/numsup.h
++++ b/numlib/numsup.h
 @@ -324,7 +324,7 @@
  #define error_program g_log->tag
  extern void set_exe_path(char *arg0);
diff --git a/srcpkgs/argyllcms/template b/srcpkgs/argyllcms/template
index 33d0d14436cc..5fb8294254f7 100644
--- a/srcpkgs/argyllcms/template
+++ b/srcpkgs/argyllcms/template
@@ -12,7 +12,6 @@ license="AGPL-3.0-or-later, GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="https://www.argyllcms.com/"
 distfiles="https://www.argyllcms.com/Argyll_V${version}_src.zip"
 checksum=be378ca836b17b8684db05e9feaab138d711835ef00a04a76ac0ceacd386a3e3
-patch_args=-Np0
 
 # Build system look only under / for headers and libraries. Breaks cross.
 nocross=yes
diff --git a/srcpkgs/ark/patches/disable-xar-test.patch b/srcpkgs/ark/patches/disable-xar-test.patch
index e74584e7b1ff..beb04bf334a6 100644
--- a/srcpkgs/ark/patches/disable-xar-test.patch
+++ b/srcpkgs/ark/patches/disable-xar-test.patch
@@ -6,8 +6,8 @@ Subject: [PATCH] disable xar test
 
 diff --git autotests/kerfuffle/extracttest.cpp autotests/kerfuffle/extracttest.cpp
 index 9178611..c1d3f13 100644
---- autotests/kerfuffle/extracttest.cpp
-+++ autotests/kerfuffle/extracttest.cpp
+--- a/autotests/kerfuffle/extracttest.cpp
++++ b/autotests/kerfuffle/extracttest.cpp
 @@ -350,23 +350,6 @@ void ExtractTest::testExtraction_data()
          qDebug() << "lz4 executable not found in path. Skipping lz4 test.";
      }
@@ -34,8 +34,8 @@ index 9178611..c1d3f13 100644
              << archivePath
 diff --git autotests/kerfuffle/loadtest.cpp autotests/kerfuffle/loadtest.cpp
 index 8c5f52d..cbb47cf 100644
---- autotests/kerfuffle/loadtest.cpp
-+++ autotests/kerfuffle/loadtest.cpp
+--- a/autotests/kerfuffle/loadtest.cpp
++++ b/autotests/kerfuffle/loadtest.cpp
 @@ -181,13 +181,6 @@ void LoadTest::testProperties_data()
          qDebug() << "lz4 executable not found in path. Skipping lz4 test.";
      }
diff --git a/srcpkgs/ark/template b/srcpkgs/ark/template
index 22022fc8a649..dfa7870ed4ca 100644
--- a/srcpkgs/ark/template
+++ b/srcpkgs/ark/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://kde.org/applications/en/utilities/org.kde.ark"
 distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
 checksum=09e0294c36a881585183bf165020ef832bfbbd181547ea26eb78268aab46a768
-patch_args=-Np0
 
 do_check() {
 	cd build
diff --git a/srcpkgs/armadillo/patches/9.700.2--include_dirs.patch b/srcpkgs/armadillo/patches/9.700.2--include_dirs.patch
index f6dea58c7c52..a19472dff135 100644
--- a/srcpkgs/armadillo/patches/9.700.2--include_dirs.patch
+++ b/srcpkgs/armadillo/patches/9.700.2--include_dirs.patch
@@ -6,8 +6,8 @@ Subject: [PATCH] Absolute paths can't match both cross and native use
 
 diff --git include/armadillo_bits/config.hpp.cmake include/armadillo_bits/config.hpp.cmake
 index be42243..a285e35 100644
---- include/armadillo_bits/config.hpp.cmake
-+++ include/armadillo_bits/config.hpp.cmake
+--- a/include/armadillo_bits/config.hpp.cmake
++++ b/include/armadillo_bits/config.hpp.cmake
 @@ -50,7 +50,7 @@
  #endif
  
diff --git a/srcpkgs/armadillo/template b/srcpkgs/armadillo/template
index 52e72128108d..9407c3aa8b48 100644
--- a/srcpkgs/armadillo/template
+++ b/srcpkgs/armadillo/template
@@ -12,7 +12,6 @@ license="Apache-2.0"
 homepage="http://arma.sourceforge.net/"
 distfiles="${SOURCEFORGE_SITE}/arma/${pkgname}-${version}.tar.xz"
 checksum=d78658c9442addf7f718eb05881150ee3ec25604d06dd3af4942422b3ce26d05
-patch_args=-Np0
 
 build_options="hdf5"
 desc_option_hdf5="HDF5 support"
diff --git a/srcpkgs/artyfx/patches/fix-avtk-cmake-sse.patch b/srcpkgs/artyfx/patches/fix-avtk-cmake-sse.patch
index 47ef4dd9b84e..344d155da29a 100644
--- a/srcpkgs/artyfx/patches/fix-avtk-cmake-sse.patch
+++ b/srcpkgs/artyfx/patches/fix-avtk-cmake-sse.patch
@@ -1,5 +1,5 @@
---- src/avtk/CMakeLists.txt	2016-12-24 19:36:45.000000000 +0000
-+++ src/avtk/CMakeLists.txt	2019-03-09 11:20:24.063980037 +0000
+--- a/src/avtk/CMakeLists.txt
++++ b/src/avtk/CMakeLists.txt
 @@ -55,8 +55,13 @@
  link_directories   ( ${X11_LIBRARY_DIRS} )
  
diff --git a/srcpkgs/artyfx/patches/fix-lv2-1.18.patch b/srcpkgs/artyfx/patches/fix-lv2-1.18.patch
index adf23e20fb08..d53abddf290e 100644
--- a/srcpkgs/artyfx/patches/fix-lv2-1.18.patch
+++ b/srcpkgs/artyfx/patches/fix-lv2-1.18.patch
@@ -1,5 +1,5 @@
---- src/ui/lv2_ui.cxx	2016-12-24 20:36:45.000000000 +0100
-+++ src/ui/lv2_ui.cxx	2020-12-25 22:17:21.206336431 +0100
+--- a/src/ui/lv2_ui.cxx
++++ b/src/ui/lv2_ui.cxx
 @@ -33,7 +33,7 @@
  #include "whaaa.hxx"
  
diff --git a/srcpkgs/artyfx/patches/respect-our-cflags.patch b/srcpkgs/artyfx/patches/respect-our-cflags.patch
index 7a32fd9df73b..53f4b8a27f91 100644
--- a/srcpkgs/artyfx/patches/respect-our-cflags.patch
+++ b/srcpkgs/artyfx/patches/respect-our-cflags.patch
@@ -1,7 +1,7 @@
 Index: CMakeLists.txt
 ===================================================================
---- CMakeLists.txt.orig
-+++ CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
 @@ -24,17 +24,17 @@ pkg_check_modules(SND sndfile REQUIRED)
  include_directories( ${SND_INCLUDE_DIRS}  )
  #target_link_libraries( avtkDemo ${CAIRO_LIBRARIES}  )
diff --git a/srcpkgs/artyfx/template b/srcpkgs/artyfx/template
index 279fa42510d9..f06781b63736 100644
--- a/srcpkgs/artyfx/template
+++ b/srcpkgs/artyfx/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="http://openavproductions.com/artyfx/"
 distfiles="https://github.com/openAVproductions/openAV-ArtyFX/archive/release-$version.tar.gz"
 checksum=a2a8d02b47bea44d0053cd4f8c6411f68a6fe9b9e4348a4139cd9bfd70105c00
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	armv7*)
diff --git a/srcpkgs/asignify/patches/musl.patch b/srcpkgs/asignify/patches/musl.patch
index f5967ae87ba8..a921b61e78db 100644
--- a/srcpkgs/asignify/patches/musl.patch
+++ b/srcpkgs/asignify/patches/musl.patch
@@ -1,5 +1,5 @@
---- libasignify/sha2.h.orig	2015-06-13 11:00:00.647603180 +0200
-+++ libasignify/sha2.h	2015-06-13 11:00:43.070069529 +0200
+--- a/libasignify/sha2.h
++++ b/libasignify/sha2.h
 @@ -59,7 +59,11 @@ typedef struct _SHA2_CTX {
  	uint8_t	buffer[SHA512_BLOCK_LENGTH];
  } SHA2_CTX;
diff --git a/srcpkgs/asignify/template b/srcpkgs/asignify/template
index a6bc88da22d8..24b6f55108ea 100644
--- a/srcpkgs/asignify/template
+++ b/srcpkgs/asignify/template
@@ -10,7 +10,6 @@ license="BSD-2-Clause"
 homepage="https://github.com/vstakhov/asignify"
 distfiles="https://github.com/vstakhov/asignify/archive/${version}.tar.gz"
 checksum=81272713900b51049633139549181fa23e56eeb580e0ea0325546d2fe7ca503d
-patch_args=-Np0
 
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
diff --git a/srcpkgs/assimp/patches/musl.patch b/srcpkgs/assimp/patches/musl.patch
index f2cf5b1a5e9f..613299078e42 100644
--- a/srcpkgs/assimp/patches/musl.patch
+++ b/srcpkgs/assimp/patches/musl.patch
@@ -1,5 +1,5 @@
---- contrib/zip/src/zip.h	2019-09-24 19:28:59.000000000 +0200
-+++ -	2019-09-29 00:15:02.408202128 +0200
+--- a/contrib/zip/src/zip.h
++++ b/-
 @@ -20,7 +20,7 @@
  #endif
  
diff --git a/srcpkgs/assimp/template b/srcpkgs/assimp/template
index 39b1cb64289c..7d45161ede5d 100644
--- a/srcpkgs/assimp/template
+++ b/srcpkgs/assimp/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause"
 homepage="http://assimp.sourceforge.net/"
 distfiles="https://github.com/assimp/assimp/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
 checksum=11310ec1f2ad2cd46b95ba88faca8f7aaa1efe9aa12605c55e3de2b977b3dbfc
-patch_args=-Np0
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/astroid/patches/cross.patch b/srcpkgs/astroid/patches/cross.patch
index 106aa2f143ca..812f1486b229 100644
--- a/srcpkgs/astroid/patches/cross.patch
+++ b/srcpkgs/astroid/patches/cross.patch
@@ -1,5 +1,5 @@
---- cmake/FindNotmuch.cmake.orig	2019-12-07 15:36:42.495906856 +0700
-+++ cmake/FindNotmuch.cmake	2019-12-07 15:37:24.330785115 +0700
+--- a/cmake/FindNotmuch.cmake
++++ b/cmake/FindNotmuch.cmake
 @@ -68,24 +68,4 @@
  check_symbol_exists (notmuch_database_index_file notmuch.h Notmuch_INDEX_FILE_API)
  
diff --git a/srcpkgs/astroid/template b/srcpkgs/astroid/template
index b1c72bcbe608..e37e50c628fe 100644
--- a/srcpkgs/astroid/template
+++ b/srcpkgs/astroid/template
@@ -13,7 +13,6 @@ license="GPL-3.0-or-later"
 homepage="http://astroidmail.github.io/"
 distfiles="https://github.com/astroidmail/astroid/archive/v${version}.tar.gz"
 checksum=8581bbdbc71bd00d4cdd473cfad8bc604628bb15616fe5eab5c623461f686c65
-patch_args=-Np0
 
 if [ -n "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qemu-user-static prelink-cross"
diff --git a/srcpkgs/astyle/patches/musl.patch b/srcpkgs/astyle/patches/musl.patch
index cff5b81f1533..8519d982f7c8 100644
--- a/srcpkgs/astyle/patches/musl.patch
+++ b/srcpkgs/astyle/patches/musl.patch
@@ -1,5 +1,5 @@
---- src/astyle_main.cpp	2018-01-11 18:18:19.000000000 +0100
-+++ src/astyle_main.cpp	2018-01-12 13:30:53.272485434 +0100
+--- a/src/astyle_main.cpp
++++ b/src/astyle_main.cpp
 @@ -35,6 +35,7 @@
  
  #include "astyle_main.h"
diff --git a/srcpkgs/astyle/template b/srcpkgs/astyle/template
index d6e09e75d70d..860e5840811c 100644
--- a/srcpkgs/astyle/template
+++ b/srcpkgs/astyle/template
@@ -11,7 +11,6 @@ license="MIT"
 homepage="http://astyle.sourceforge.net"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${version}_linux.tar.gz"
 checksum=cbcc4cf996294534bb56f025d6f199ebfde81aa4c271ccbd5ee1c1a3192745d7
-patch_args=-Np0
 
 do_install() {
 	vbin bin/astyle
diff --git a/srcpkgs/at/patches/isleap.patch b/srcpkgs/at/patches/isleap.patch
index 726e23f50344..f475c1748b04 100644
--- a/srcpkgs/at/patches/isleap.patch
+++ b/srcpkgs/at/patches/isleap.patch
@@ -1,5 +1,5 @@
---- parsetime.y.orig	2015-05-11 15:16:53.018305563 +0200
-+++ parsetime.y	2015-05-11 15:17:22.820153470 +0200
+--- a/parsetime.y
++++ b/parsetime.y
 @@ -6,6 +6,10 @@
  #include "parsetime.h"
  #include "panic.h"
diff --git a/srcpkgs/at/template b/srcpkgs/at/template
index 563b741d6af8..772c4582b3e7 100644
--- a/srcpkgs/at/template
+++ b/srcpkgs/at/template
@@ -16,7 +16,6 @@ homepage="http://packages.qa.debian.org/a/at.html"
 distfiles="${DEBIAN_SITE}/main/a/${pkgname}/${pkgname}_${version}.orig.tar.gz"
 checksum=2211da14914fde1f9cc83592838fb6385a32fb11fcecb7816c77700df6559088
 disable_parallel_build=yes
-patch_args=-Np0
 
 conf_files="/etc/at.deny"
 system_accounts="at"
diff --git a/srcpkgs/aterm/patches/fix-pty-musl.patch b/srcpkgs/aterm/patches/fix-pty-musl.patch
index 4c6005504297..be05aa81f70b 100644
--- a/srcpkgs/aterm/patches/fix-pty-musl.patch
+++ b/srcpkgs/aterm/patches/fix-pty-musl.patch
@@ -1,5 +1,5 @@
---- src/command.c.orig	2016-03-05 22:06:06.710989576 +0000
-+++ src/command.c	2016-03-05 22:06:36.743614116 +0000
+--- a/src/command.c
++++ b/src/command.c
 @@ -556,7 +556,7 @@
      ptydev = ttydev = _getpty(&fd, O_RDWR | O_NDELAY, 0622, 0);
      if (ptydev == NULL)
diff --git a/srcpkgs/aterm/template b/srcpkgs/aterm/template
index 6608120fc2d9..cf474ff86dec 100644
--- a/srcpkgs/aterm/template
+++ b/srcpkgs/aterm/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="http://www.afterstep.org/aterm.php"
 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
 checksum=a161c3b2d9c7149130a41963899993af21eae92e8e362f4b5b3c7c4cb16760ce
-patch_args=-Np0
 
 pre_build() {
 	sed -i '/INSTALL_PROGRAM/s,-c -s,-c ,g' src/Makefile
diff --git a/srcpkgs/atomicparsley/patches/musl-fpos_t.patch b/srcpkgs/atomicparsley/patches/musl-fpos_t.patch
index b9a56fdca0e0..b8fd77ab6ec2 100644
--- a/srcpkgs/atomicparsley/patches/musl-fpos_t.patch
+++ b/srcpkgs/atomicparsley/patches/musl-fpos_t.patch
@@ -1,5 +1,5 @@
---- src/parsley.cpp
-+++ src/parsley.cpp
+--- a/src/parsley.cpp
++++ b/src/parsley.cpp
 @@ -4585,10 +4585,11 @@
  #if defined(_MSC_VER)
  			fpos_t file_offset = dest_position + file_pos;
diff --git a/srcpkgs/atomicparsley/template b/srcpkgs/atomicparsley/template
index 4f6d6cc2d8f2..b82abf7d377c 100644
--- a/srcpkgs/atomicparsley/template
+++ b/srcpkgs/atomicparsley/template
@@ -12,7 +12,6 @@ license="GPL-2.0-or-later"
 homepage="https://bitbucket.org/wez/atomicparsley/"
 distfiles="https://bitbucket.org/wez/atomicparsley/get/${version}.tar.gz"
 checksum=8ba4e3e21d7a9239932e2a6f34842194d8f9eba84ce9eb83fb35369f5f3f05ab
-patch_args=-Np0
 
 pre_configure() {
 	./autogen.sh
diff --git a/srcpkgs/atop/patches/atop-bb-compat.patch b/srcpkgs/atop/patches/atop-bb-compat.patch
index 5173ba56f874..20f849e97b9d 100644
--- a/srcpkgs/atop/patches/atop-bb-compat.patch
+++ b/srcpkgs/atop/patches/atop-bb-compat.patch
@@ -1,7 +1,7 @@
 diff --git atop.daily atop.daily
 index c72214c..ac4b3b7 100755
---- atop.daily
-+++ atop.daily
+--- a/atop.daily
++++ b/atop.daily
 @@ -1,4 +1,4 @@
 -#!/bin/bash
 +#!/bin/sh
diff --git a/srcpkgs/atop/patches/fix-cflags.patch b/srcpkgs/atop/patches/fix-cflags.patch
index bf26f434cdc7..e02e1459c8bf 100644
--- a/srcpkgs/atop/patches/fix-cflags.patch
+++ b/srcpkgs/atop/patches/fix-cflags.patch
@@ -1,5 +1,5 @@
---- Makefile.orig	2016-02-26 23:20:11.536799936 +0100
-+++ Makefile	2016-02-26 23:20:19.545799337 +0100
+--- a/Makefile
++++ b/Makefile
 @@ -39,7 +39,7 @@ atopacctd:	atopacctd.o netlink.o
  		$(CC) atopacctd.o netlink.o -o atopacctd $(LDFLAGS)
  
diff --git a/srcpkgs/atop/patches/musl-fix-includes.patch b/srcpkgs/atop/patches/musl-fix-includes.patch
index ae1cff096630..eac397fec348 100644
--- a/srcpkgs/atop/patches/musl-fix-includes.patch
+++ b/srcpkgs/atop/patches/musl-fix-includes.patch
@@ -1,5 +1,5 @@
---- deviate.c.orig
-+++ deviate.c
+--- a/deviate.c
++++ b/deviate.c
 @@ -178,6 +178,7 @@
  #include <stdio.h>
  #include <errno.h>
@@ -8,8 +8,8 @@
  #include <unistd.h>
  #include <limits.h>
  #include <memory.h>
---- procdbase.c.orig
-+++ procdbase.c
+--- a/procdbase.c
++++ b/procdbase.c
 @@ -67,7 +67,7 @@
  #include <fcntl.h>
  #include <unistd.h>
diff --git a/srcpkgs/atop/template b/srcpkgs/atop/template
index 8ba868d263e3..8c981e657879 100644
--- a/srcpkgs/atop/template
+++ b/srcpkgs/atop/template
@@ -12,7 +12,6 @@ homepage="https://www.atoptool.nl/"
 distfiles="https://www.atoptool.nl/download/atop-${version}.tar.gz"
 checksum=4b911057ce50463b6e8b3016c5963d48535c0cddeebc6eda817e292b22f93f33
 python_version=2 #unverified
-patch_args=-Np0
 
 make_dirs="/var/log/atop 755 root root"
 
diff --git a/srcpkgs/attic/patches/openssl.diff b/srcpkgs/attic/patches/openssl.diff
index c289a1dc267c..7ebc0a9d3a7a 100644
--- a/srcpkgs/attic/patches/openssl.diff
+++ b/srcpkgs/attic/patches/openssl.diff
@@ -1,5 +1,5 @@
---- attic/crypto.pyx
-+++ attic/crypto.pyx
+--- a/attic/crypto.pyx
++++ b/attic/crypto.pyx
 @@ -23,8 +23,9 @@ cdef extern from "openssl/evp.h":
          pass
      const EVP_MD *EVP_sha256()
diff --git a/srcpkgs/attic/template b/srcpkgs/attic/template
index 3e7feff29c04..153c0341edcb 100644
--- a/srcpkgs/attic/template
+++ b/srcpkgs/attic/template
@@ -13,7 +13,6 @@ license="BSD-3-Clause"
 homepage="https://attic-backup.org/"
 distfiles="${PYPI_SITE}/A/Attic/Attic-${version}.tar.gz"
 checksum=6650cd28072101c2e05941e77b93a62f91da6179785e4e4b4880916c469bba2c
-patch_args=-Np0
 
 pre_build() {
 	if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/attract/patches/Makefile.patch b/srcpkgs/attract/patches/Makefile.patch
index b530db21dc5e..273540bb8fc4 100644
--- a/srcpkgs/attract/patches/Makefile.patch
+++ b/srcpkgs/attract/patches/Makefile.patch
@@ -1,5 +1,5 @@
---- Makefile	2016-12-06 21:40:22.715155552 +0100
-+++ Makefile	2016-12-06 21:41:39.523155740 +0100
+--- a/Makefile
++++ b/Makefile
 @@ -50,12 +50,8 @@
  
  FE_VERSION=v2.2.0
diff --git a/srcpkgs/attract/patches/fix-musl.patch b/srcpkgs/attract/patches/fix-musl.patch
index c6bb5eacd8ba..568a7419b957 100644
--- a/srcpkgs/attract/patches/fix-musl.patch
+++ b/srcpkgs/attract/patches/fix-musl.patch
@@ -1,5 +1,5 @@
---- extlibs/gameswf/base/utility.cpp	2016-11-08 08:06:21.000000000 +0100
-+++ extlibs/gameswf/base/utility.cpp	2016-12-06 22:03:53.042131946 +0100
+--- a/extlibs/gameswf/base/utility.cpp
++++ b/extlibs/gameswf/base/utility.cpp
 @@ -41,7 +41,7 @@
  {
  
diff --git a/srcpkgs/attract/template b/srcpkgs/attract/template
index dd2419954f94..ceff4287193d 100644
--- a/srcpkgs/attract/template
+++ b/srcpkgs/attract/template
@@ -14,7 +14,6 @@ license="GPL-3.0-or-later"
 homepage="http://attractmode.org/"
 distfiles="https://github.com/mickelson/attract/archive/v${version}.tar.gz"
 checksum=4c17641ce0a0b9ff77da5e75f0cb26cc48e4c6295ef57d86a37db18b2bd9fbe9
-patch_args=-Np0
 
 CFLAGS="-std=gnu++11 \
 	-I extlibs/audio/include \
diff --git a/srcpkgs/aubio/patches/disable-tests.patch b/srcpkgs/aubio/patches/disable-tests.patch
index 1502fa79a048..4662ea0c4a49 100644
--- a/srcpkgs/aubio/patches/disable-tests.patch
+++ b/srcpkgs/aubio/patches/disable-tests.patch
@@ -2,8 +2,8 @@ breaks cross-compilation
 
 diff --git a/wscript b/wscript
 index c08298c..1443ae2 100644
---- wscript
-+++ wscript
+--- a/wscript
++++ b/wscript
 @@ -494,8 +494,6 @@ def build(bld):
              bld.options.testcmd = 'node %s'
          if bld.options.enable_examples:
diff --git a/srcpkgs/aubio/template b/srcpkgs/aubio/template
index c903e81ed8d5..eaab3e9fdb72 100644
--- a/srcpkgs/aubio/template
+++ b/srcpkgs/aubio/template
@@ -12,7 +12,6 @@ license="GPL-3.0-or-later"
 homepage="http://aubio.org"
 distfiles="${homepage}/pub/${pkgname}-${version}.tar.bz2"
 checksum=d48282ae4dab83b3dc94c16cf011bcb63835c1c02b515490e1883049c3d1f3da
-patch_args=-Np0
 
 libaubio_package() {
 	short_desc+=" - Runtime libraries"
diff --git a/srcpkgs/audacity/patches/configure.patch b/srcpkgs/audacity/patches/configure.patch
index 3b9c576c3f29..46020c1764f3 100644
--- a/srcpkgs/audacity/patches/configure.patch
+++ b/srcpkgs/audacity/patches/configure.patch
@@ -1,8 +1,8 @@
 configure uses AC_CHECK_FILE to test for file existence which is
 cross incompatible. Changed it to simple if/else statements.
 
---- configure.orig	2017-10-26 19:44:39.000000000 +0200
-+++ configure	2017-11-09 21:23:45.099433701 +0100
+--- a/configure
++++ b/configure
 @@ -20200,29 +20200,11 @@
     fi
  
diff --git a/srcpkgs/audacity/template b/srcpkgs/audacity/template
index 4ed153f8b74c..c91520872ce5 100644
--- a/srcpkgs/audacity/template
+++ b/srcpkgs/audacity/template
@@ -18,7 +18,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.audacityteam.org"
 distfiles="https://github.com/${pkgname}/${pkgname}/archive/Audacity-${version}.tar.gz"
 checksum=50240f07471373a7e5c2df65cc26eeeaaced9a0850ad1f95cb795f171ea3009f
-patch_args=-Np0
 
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*) ;;
diff --git a/srcpkgs/audiofile/patches/004-CVE-2017-6829.patch b/srcpkgs/audiofile/patches/004-CVE-2017-6829.patch
index 91330ba1bb69..c1047af06c5c 100644
--- a/srcpkgs/audiofile/patches/004-CVE-2017-6829.patch
+++ b/srcpkgs/audiofile/patches/004-CVE-2017-6829.patch
@@ -11,8 +11,8 @@ and https://blogs.gentoo.org/ago/2017/02/20/audiofile-global-buffer-overflow-in-
 
 diff --git a/libaudiofile/modules/IMA.cpp b/libaudiofile/modules/IMA.cpp
 index 7476d44..df4aad6 100644
---- libaudiofile/modules/IMA.cpp
-+++ libaudiofile/modules/IMA.cpp
+--- a/libaudiofile/modules/IMA.cpp
++++ b/libaudiofile/modules/IMA.cpp
 @@ -169,7 +169,7 @@ int IMA::decodeBlockWAVE(const uint8_t *encoded, int16_t *decoded)
  		if (encoded[1] & 0x80)
  			m_adpcmState[c].previousValue -= 0x10000;
diff --git a/srcpkgs/audiofile/patches/005-CVE-2017-6827-CVE-2017-6828-CVE-2017-6832-CVE-2017-6833-CVE-2017-6835-CVE-2017-6837.patch b/srcpkgs/audiofile/patches/005-CVE-2017-6827-CVE-2017-6828-CVE-2017-6832-CVE-2017-6833-CVE-2017-6835-CVE-2017-6837.patch
index 6914a46802e8..f9427cbe6191 100644
--- a/srcpkgs/audiofile/patches/005-CVE-2017-6827-CVE-2017-6828-CVE-2017-6832-CVE-2017-6833-CVE-2017-6835-CVE-2017-6837.patch
+++ b/srcpkgs/audiofile/patches/005-CVE-2017-6827-CVE-2017-6828-CVE-2017-6832-CVE-2017-6833-CVE-2017-6835-CVE-2017-6837.patch
@@ -13,8 +13,8 @@ This fixes the 00191-audiofile-indexoob issue in #41
 
 diff --git a/libaudiofile/WAVE.cpp b/libaudiofile/WAVE.cpp
 index 9dd8511..0fc48e8 100644
---- libaudiofile/WAVE.cpp
-+++ libaudiofile/WAVE.cpp
+--- a/libaudiofile/WAVE.cpp
++++ b/libaudiofile/WAVE.cpp
 @@ -281,6 +281,12 @@ status WAVEFile::parseFormat(const Tag &id, uint32_t size)
  
  			/* numCoefficients should be at least 7. */
diff --git a/srcpkgs/audiofile/patches/006-CVE-2017-6839.patch b/srcpkgs/audiofile/patches/006-CVE-2017-6839.patch
index f0e1bc56372b..2be930b92410 100644
--- a/srcpkgs/audiofile/patches/006-CVE-2017-6839.patch
+++ b/srcpkgs/audiofile/patches/006-CVE-2017-6839.patch
@@ -14,8 +14,8 @@ This fixes the 00193-audiofile-signintoverflow-MSADPCM case of #41
 
 diff --git a/libaudiofile/modules/BlockCodec.cpp b/libaudiofile/modules/BlockCodec.cpp
 index 45925e8..4731be1 100644
---- libaudiofile/modules/BlockCodec.cpp
-+++ libaudiofile/modules/BlockCodec.cpp
+--- a/libaudiofile/modules/BlockCodec.cpp
++++ b/libaudiofile/modules/BlockCodec.cpp
 @@ -52,8 +52,9 @@ void BlockCodec::runPull()
  	// Decompress into m_outChunk.
  	for (int i=0; i<blocksRead; i++)
@@ -30,8 +30,8 @@ index 45925e8..4731be1 100644
  	}
 diff --git a/libaudiofile/modules/MSADPCM.cpp b/libaudiofile/modules/MSADPCM.cpp
 index 8ea3c85..ef9c38c 100644
---- libaudiofile/modules/MSADPCM.cpp
-+++ libaudiofile/modules/MSADPCM.cpp
+--- a/libaudiofile/modules/MSADPCM.cpp
++++ b/libaudiofile/modules/MSADPCM.cpp
 @@ -101,24 +101,60 @@ static const int16_t adaptationTable[] =
  	768, 614, 512, 409, 307, 230, 230, 230
  };
diff --git a/srcpkgs/audiofile/patches/007-CVE-2017-6830-CVE-2017-6834-CVE-2017-6836-CVE-2017-6838.patch b/srcpkgs/audiofile/patches/007-CVE-2017-6830-CVE-2017-6834-CVE-2017-6836-CVE-2017-6838.patch
index ba24efa05fd1..0f17140d6b50 100644
--- a/srcpkgs/audiofile/patches/007-CVE-2017-6830-CVE-2017-6834-CVE-2017-6836-CVE-2017-6838.patch
+++ b/srcpkgs/audiofile/patches/007-CVE-2017-6830-CVE-2017-6834-CVE-2017-6836-CVE-2017-6838.patch
@@ -14,8 +14,8 @@ in #41
 
 diff --git a/sfcommands/sfconvert.c b/sfcommands/sfconvert.c
 index 80a1bc4..970a3e4 100644
---- sfcommands/sfconvert.c
-+++ sfcommands/sfconvert.c
+--- a/sfcommands/sfconvert.c
++++ b/sfcommands/sfconvert.c
 @@ -45,6 +45,33 @@ void printusage (void);
  void usageerror (void);
  bool copyaudiodata (AFfilehandle infile, AFfilehandle outfile, int trackid);
diff --git a/srcpkgs/audiofile/patches/009-CVE-2017-6831.patch b/srcpkgs/audiofile/patches/009-CVE-2017-6831.patch
index d0cdff4999a8..50cd3dc9a35c 100644
--- a/srcpkgs/audiofile/patches/009-CVE-2017-6831.patch
+++ b/srcpkgs/audiofile/patches/009-CVE-2017-6831.patch
@@ -16,8 +16,8 @@ https://blogs.gentoo.org/ago/2017/02/20/audiofile-heap-based-buffer-overflow-in-
 
 diff --git a/libaudiofile/WAVE.cpp b/libaudiofile/WAVE.cpp
 index 0fc48e8..d04b796 100644
---- libaudiofile/WAVE.cpp
-+++ libaudiofile/WAVE.cpp
+--- a/libaudiofile/WAVE.cpp
++++ b/libaudiofile/WAVE.cpp
 @@ -332,6 +332,7 @@ status WAVEFile::parseFormat(const Tag &id, uint32_t size)
  			{
  				_af_error(AF_BAD_NOT_IMPLEMENTED,
diff --git a/srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch b/srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch
index 77ec7675cdb5..469bea817080 100644
--- a/srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch
+++ b/srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch
@@ -1,5 +1,5 @@
---- libaudiofile/modules/SimpleModule.h	2013-03-07 08:14:57.000000000 +0100
-+++ libaudiofile/modules/SimpleModule.h	2016-09-27 13:49:59.329194632 +0200
+--- a/libaudiofile/modules/SimpleModule.h
++++ b/libaudiofile/modules/SimpleModule.h
 @@ -123,7 +123,7 @@
  	typedef typename IntTypes<Format>::UnsignedType UnsignedType;
  
diff --git a/srcpkgs/audiofile/template b/srcpkgs/audiofile/template
index 7779d5ec2034..a4eef3f40260 100644
--- a/srcpkgs/audiofile/template
+++ b/srcpkgs/audiofile/template
@@ -13,7 +13,6 @@ homepage="http://audiofile.68k.org"
 distfiles="http://github.com/mpruett/audiofile/archive/audiofile-${version}.tar.gz"
 checksum=52125fee6c7454d743acdc27ebda194c6b5c7b9111426c7d5fdea0754cd366cc
 disable_parallel_build=1
-patch_args=-Np0
 
 pre_configure() {
 	autoreconf -fi
diff --git a/srcpkgs/auto-auto-complete/patches/fish-completion-vendor.patch b/srcpkgs/auto-auto-complete/patches/fish-completion-vendor.patch
index 0d24ff97ae05..ff78edaa6e6e 100644
--- a/srcpkgs/auto-auto-complete/patches/fish-completion-vendor.patch
+++ b/srcpkgs/auto-auto-complete/patches/fish-completion-vendor.patch
@@ -19,8 +19,8 @@ This isn't an issue here (yet) but it conforms to the docs.
 
 diff --git a/Makefile b/Makefile
 index d7e331d..6506628 100644
---- Makefile
-+++ Makefile
+--- a/Makefile
++++ b/Makefile
 @@ -188,8 +188,8 @@ install-zsh: bin/auto-auto-complete.zsh
  
  .PHONY: install-fish
diff --git a/srcpkgs/auto-auto-complete/template b/srcpkgs/auto-auto-complete/template
index 24a3eb40df42..065d615c2b59 100644
--- a/srcpkgs/auto-auto-complete/template
+++ b/srcpkgs/auto-auto-complete/template
@@ -11,4 +11,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/maandree/auto-auto-complete"
 distfiles="https://github.com/maandree/${pkgname}/archive/${version}.tar.gz"
 checksum=5e54025c6ef65dfff5ba976d23eb778a0936b0678763ebcd78359d460300301e
-patch_args=-Np0
diff --git a/srcpkgs/autoconf/patches/fix-perl-5.22-autoscan.patch b/srcpkgs/autoconf/patches/fix-perl-5.22-autoscan.patch
index ca1703bcf12d..3054d22a5cf4 100644
--- a/srcpkgs/autoconf/patches/fix-perl-5.22-autoscan.patch
+++ b/srcpkgs/autoconf/patches/fix-perl-5.22-autoscan.patch
@@ -10,8 +10,8 @@ feature that is deprecated in Perl 5.17.  Reported by Ray Lauff in
  bin/autoscan.in | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
---- bin/autoscan.in
-+++ bin/autoscan.in
+--- a/bin/autoscan.in
++++ b/bin/autoscan.in
 @@ -358,7 +358,7 @@ sub scan_sh_file ($)
      {
        # Strip out comments and variable references.
diff --git a/srcpkgs/autoconf/template b/srcpkgs/autoconf/template
index a3018bf709b9..260e8c753f07 100644
--- a/srcpkgs/autoconf/template
+++ b/srcpkgs/autoconf/template
@@ -11,7 +11,6 @@ license="GPL-2.0-or-later, GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/autoconf"
 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
 checksum=64ebcec9f8ac5b2487125a86a7760d2591ac9e1d3dbd59489633f9de62a57684
-patch_args=-Np0
 
 pre_check() {
 	# Disable failing test by adding
diff --git a/srcpkgs/autoconf213/patches/patch-aa.diff b/srcpkgs/autoconf213/patches/patch-aa.diff
index 4fcbe3ba7bfb..1abc117e9638 100644
--- a/srcpkgs/autoconf213/patches/patch-aa.diff
+++ b/srcpkgs/autoconf213/patches/patch-aa.diff
@@ -1,7 +1,7 @@
 $NetBSD: patch-aa,v 1.2 2006/11/02 18:17:22 joerg Exp $
 
---- Makefile.in.orig	1999-01-05 13:27:16.000000000 +0000
-+++ Makefile.in
+--- a/Makefile.in
++++ b/Makefile.in
 @@ -137,36 +137,32 @@ installcheck: all install
  	cd testsuite && ${MAKE} AUTOCONF=${bindir}/autoconf $@
  
diff --git a/srcpkgs/autoconf213/patches/patch-ab.diff b/srcpkgs/autoconf213/patches/patch-ab.diff
index 3ed6ee487050..172b353bce00 100644
--- a/srcpkgs/autoconf213/patches/patch-ab.diff
+++ b/srcpkgs/autoconf213/patches/patch-ab.diff
@@ -1,7 +1,7 @@
 $NetBSD: patch-ab,v 1.1.1.1 2002/10/03 19:25:04 wiz Exp $
 
---- autoconf.texi.orig	Tue Jan  5 14:28:37 1999
-+++ autoconf.texi
+--- a/autoconf.texi
++++ b/autoconf.texi
 @@ -4,6 +4,7 @@
  @settitle Autoconf
  @c For double-sided printing, uncomment:
diff --git a/srcpkgs/autoconf213/patches/patch-ac.diff b/srcpkgs/autoconf213/patches/patch-ac.diff
index 6b5f4f1e6ab0..0a27e2178e8e 100644
--- a/srcpkgs/autoconf213/patches/patch-ac.diff
+++ b/srcpkgs/autoconf213/patches/patch-ac.diff
@@ -1,7 +1,7 @@
 $NetBSD: patch-ac,v 1.1.1.1 2002/10/03 19:25:04 wiz Exp $
 
---- autoreconf.sh.orig	Tue Jan  5 14:28:40 1999
-+++ autoreconf.sh
+--- a/autoreconf.sh
++++ b/autoreconf.sh
 @@ -143,7 +143,7 @@ while read dir; do
  	:
       else
diff --git a/srcpkgs/autoconf213/template b/srcpkgs/autoconf213/template
index ebbcb4df4549..31f07cb74c00 100644
--- a/srcpkgs/autoconf213/template
+++ b/srcpkgs/autoconf213/template
@@ -13,7 +13,6 @@ license="GPL-2.0-or-later"
 homepage="http://www.gnu.org/software/autoconf"
 distfiles="${GNU_SITE}/autoconf/autoconf-$version.tar.gz"
 checksum=f0611136bee505811e9ca11ca7ac188ef5323a8e2ef19cffd3edb3cf08fd791e
-patch_args=-Np0
 
 post_install() {
 	# Avoid conflict with other versions.
diff --git a/srcpkgs/autofs/patches/musl.patch b/srcpkgs/autofs/patches/musl.patch
index 5825d646a843..472f53345c53 100644
--- a/srcpkgs/autofs/patches/musl.patch
+++ b/srcpkgs/autofs/patches/musl.patch
@@ -1,5 +1,5 @@
---- lib/nss_parse.y.orig	2016-01-10 10:07:26.854512310 +0100
-+++ lib/nss_parse.y	2016-01-10 10:07:53.134783321 +0100
+--- a/lib/nss_parse.y
++++ b/lib/nss_parse.y
 @@ -28,6 +28,10 @@
  #include "nsswitch.h"
  #include "nss_parse.tab.h"
@@ -11,8 +11,8 @@
  static pthread_mutex_t parse_mutex = PTHREAD_MUTEX_INITIALIZER;
  
  static struct list_head *nss_list;
---- daemon/automount.c.orig	2016-01-10 10:10:23.680333952 +0100
-+++ daemon/automount.c	2016-01-10 10:10:35.599456586 +0100
+--- a/daemon/automount.c
++++ b/daemon/automount.c
 @@ -37,6 +37,14 @@
  #include <sys/vfs.h>
  #include <sys/utsname.h>
@@ -28,8 +28,8 @@
  #include "automount.h"
  #if defined(LIBXML2_WORKAROUND) || defined(TIRPC_WORKAROUND)
  #include <dlfcn.h>
---- lib/log.c.orig     2019-03-30 10:49:52.965336128 +0100
-+++ lib/log.c  2019-03-30 10:50:43.232710045 +0100
+--- a/lib/log.c
++++ b/lib/log.c  2019-03-30 10:50:43.232710045 +0100
 @@ -38,7 +38,11 @@ static char *prepare_attempt_prefix(cons
        char buffer[ATTEMPT_ID_SIZE + 1];
        char *prefixed_msg = NULL;
@@ -43,8 +43,8 @@
        if (attempt_id) {
                int len = sizeof(buffer) + 1 + strlen(msg) + 1;
  
---- include/hash.h.orig	2021-01-31 09:22:19.668222263 +0100
-+++ include/hash.h	2021-01-31 09:22:41.390327622 +0100
+--- a/include/hash.h
++++ b/include/hash.h
 @@ -5,6 +5,11 @@
  
  #include <sys/types.h>
diff --git a/srcpkgs/autofs/template b/srcpkgs/autofs/template
index bd2ab2792540..b306368242d3 100644
--- a/srcpkgs/autofs/template
+++ b/srcpkgs/autofs/template
@@ -14,7 +14,6 @@ license="GPL-2.0-or-later"
 homepage="https://www.kernel.org/pub/linux/daemons/autofs"
 distfiles="${KERNEL_SITE}/daemons/autofs/v5/autofs-${version}.tar.xz"
 checksum=a36b268611b79b07051749870ba540b139938efc84bc0293244c483e94f9ced7
-patch_args=-Np0
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/gssglue -I${XBPS_CROSS_BASE}/usr/include/tirpc"
 
diff --git a/srcpkgs/autogen/patches/autogen-5.18.16-rpath.patch b/srcpkgs/autogen/patches/autogen-5.18.16-rpath.patch
index 27c9c33cbe75..ebca2c072bfc 100644
--- a/srcpkgs/autogen/patches/autogen-5.18.16-rpath.patch
+++ b/srcpkgs/autogen/patches/autogen-5.18.16-rpath.patch
@@ -1,5 +1,5 @@
---- agen5/Makefile.am
-+++ agen5/Makefile.am
+--- a/agen5/Makefile.am
++++ b/agen5/Makefile.am
 @@ -63,7 +63,7 @@ SNV_LIB         = $(top_builddir)/snprintfv/libsnprintfv.la
  nodist_autogen_SOURCES = ag.c
  autogen_SOURCES = $(gen_csrc)
@@ -9,8 +9,8 @@
  autogen_CFLAGS  = $(GUILE_CFLAGS)
  stamp_script    = $(srcdir)/mk-stamps.sh
 
---- agen5/Makefile.in
-+++ agen5/Makefile.in
+--- a/agen5/Makefile.in
++++ b/agen5/Makefile.in
 @@ -482,7 +482,7 @@ SNV_LIB = $(top_builddir)/snprintfv/libsnprintfv.la
  nodist_autogen_SOURCES = ag.c
  autogen_SOURCES = $(gen_csrc)
@@ -20,8 +20,8 @@
  autogen_CFLAGS = $(GUILE_CFLAGS)
  stamp_script = $(srcdir)/mk-stamps.sh
  AM_YFLAGS = -d
---- columns/Makefile.am
-+++ columns/Makefile.am
+--- a/columns/Makefile.am
++++ b/columns/Makefile.am
 @@ -20,7 +20,7 @@
  ## with this program.  If not, see <http://www.gnu.org/licenses/>.
  
@@ -31,8 +31,8 @@
  csrc            = opts.h columns.c opts.c
  nodist_columns_SOURCES = cols.c
  
---- columns/Makefile.in
-+++ columns/Makefile.in
+--- a/columns/Makefile.in
++++ b/columns/Makefile.in
 @@ -389,7 +389,7 @@ target_vendor = @target_vendor@
  top_build_prefix = @top_build_prefix@
  top_builddir = @top_builddir@
@@ -42,8 +42,8 @@
  csrc = opts.h columns.c opts.c
  nodist_columns_SOURCES = cols.c
  LO_LIB = $(top_builddir)/autoopts/libopts.la
---- getdefs/Makefile.am
-+++ getdefs/Makefile.am
+--- a/getdefs/Makefile.am
++++ b/getdefs/Makefile.am
 @@ -23,7 +23,7 @@
  TARG = getdefs
  
@@ -53,8 +53,8 @@
  gdsrcs          = getdefs.h proto.h gdemit.c gdinit.c getdefs.c
  getdefs_SOURCES = proto.h
  BUILT_SOURCES   = gd.c
---- getdefs/Makefile.in
-+++ getdefs/Makefile.in
+--- a/getdefs/Makefile.in
++++ b/getdefs/Makefile.in
 @@ -434,7 +434,7 @@ top_build_prefix = @top_build_prefix@
  top_builddir = @top_builddir@
  top_srcdir = @top_srcdir@
diff --git a/srcpkgs/autogen/patches/build-aux.patch b/srcpkgs/autogen/patches/build-aux.patch
index 9e5ac52deef2..bc586ecd3f08 100644
--- a/srcpkgs/autogen/patches/build-aux.patch
+++ b/srcpkgs/autogen/patches/build-aux.patch
@@ -1,7 +1,7 @@
 diff --git build-aux/run-ag.sh build-aux/run-ag.sh
 index 6ee7b85..f604462 100755
---- build-aux/run-ag.sh
-+++ build-aux/run-ag.sh
+--- a/build-aux/run-ag.sh
++++ b/build-aux/run-ag.sh
 @@ -25,7 +25,7 @@
  # any containing directory must be created. The target is created with a
  # very old time stamp.
@@ -13,8 +13,8 @@ index 6ee7b85..f604462 100755
    test -x "$exe" && return 0
 diff --git getdefs/Makefile.in getdefs/Makefile.in
 index 058d0a6..7a17783 100644
---- getdefs/Makefile.in
-+++ getdefs/Makefile.in
+--- a/getdefs/Makefile.in
++++ b/getdefs/Makefile.in
 @@ -275,7 +275,7 @@ AG_STATIC_AUTOGEN = @AG_STATIC_AUTOGEN@
  AG_TIMEOUT = @AG_TIMEOUT@
  AG_VERSION = @AG_VERSION@
diff --git a/srcpkgs/autogen/patches/configure.patch b/srcpkgs/autogen/patches/configure.patch
index bb9ece30ce55..5b66aaffd490 100644
--- a/srcpkgs/autogen/patches/configure.patch
+++ b/srcpkgs/autogen/patches/configure.patch
@@ -1,7 +1,7 @@
 diff --git configure configure
 index f149ede..e75e3f0 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -17324,7 +17324,7 @@ $as_echo_n "checking whether strcspn matches prototype and works... " >&6; }
    $as_echo_n "(cached) " >&6
  else
diff --git a/srcpkgs/autogen/template b/srcpkgs/autogen/template
index 3b6d72d5090d..cfc9d20c9df8 100644
--- a/srcpkgs/autogen/template
+++ b/srcpkgs/autogen/template
@@ -17,7 +17,6 @@ replaces="autogen-docs>=0 autogen-devel>=0"
 _libopts=libopts-42.1.17.tar.gz
 CFLAGS="-Wno-error=format-truncation -Wno-error=format-overflow
 	-Wno-error=unused-parameter"
-patch_args=-Np0
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" autogen guile-devel"
diff --git a/srcpkgs/avidemux/patches/musl-execinfo.patch b/srcpkgs/avidemux/patches/musl-execinfo.patch
index 352f73520ab1..b3af1dbecda2 100644
--- a/srcpkgs/avidemux/patches/musl-execinfo.patch
+++ b/srcpkgs/avidemux/patches/musl-execinfo.patch
@@ -1,5 +1,5 @@
---- avidemux_core/ADM_core/src/ADM_crashdump_unix.cpp	2016-03-05 09:22:54.000000000 +0100
-+++ avidemux_core/ADM_core/src/ADM_crashdump_unix.cpp	2016-03-08 03:06:07.328943375 +0100
+--- a/avidemux_core/ADM_core/src/ADM_crashdump_unix.cpp
++++ b/avidemux_core/ADM_core/src/ADM_crashdump_unix.cpp
 @@ -30,7 +30,7 @@
  #define	_ELF64
  #endif
diff --git a/srcpkgs/avidemux/patches/musl-memcpy.patch b/srcpkgs/avidemux/patches/musl-memcpy.patch
index c4b082fc4f1a..a798fbda0018 100644
--- a/srcpkgs/avidemux/patches/musl-memcpy.patch
+++ b/srcpkgs/avidemux/patches/musl-memcpy.patch
@@ -1,5 +1,5 @@
---- avidemux_core/ADM_core/include/ADM_assert.h	2015-06-10 07:42:47.000000000 +0200
-+++ avidemux_core/ADM_core/include/ADM_assert.h	2015-09-28 08:08:55.729367070 +0200
+--- a/avidemux_core/ADM_core/include/ADM_assert.h
++++ b/avidemux_core/ADM_core/include/ADM_assert.h
 @@ -69,7 +69,7 @@
  
  #define ADM_dealloc(x) ADM_dezalloc( (void *)x)
diff --git a/srcpkgs/avidemux/patches/use-realpath.patch b/srcpkgs/avidemux/patches/use-realpath.patch
index ed32ae325e29..7404f7193a06 100644
--- a/srcpkgs/avidemux/patches/use-realpath.patch
+++ b/srcpkgs/avidemux/patches/use-realpath.patch
@@ -1,5 +1,5 @@
---- avidemux_core/ADM_core/src/ADM_folder_linux.cpp	2016-11-19 08:58:39.000000000 +0100
-+++ avidemux_core/ADM_core/src/ADM_folder_linux.cpp	2016-11-21 07:05:07.700699647 +0100
+--- a/avidemux_core/ADM_core/src/ADM_folder_linux.cpp
++++ b/avidemux_core/ADM_core/src/ADM_folder_linux.cpp
 @@ -39,7 +39,7 @@
  static std::string canonize(const std::string &in)
  {
diff --git a/srcpkgs/avidemux/template b/srcpkgs/avidemux/template
index abedf3e2bc0c..e62a3bc2c436 100644
--- a/srcpkgs/avidemux/template
+++ b/srcpkgs/avidemux/template
@@ -19,7 +19,6 @@ homepage="http://avidemux.sourceforge.net/"
 changelog="http://avidemux.sourceforge.net/news.html"
 distfiles="${SOURCEFORGE_SITE}/avidemux/avidemux/${version}/${pkgname}_${version}.tar.gz"
 checksum=9a88741f3535443d4bde35d4207ca2ff96d3b136db2e7232cb50dd6b4eb293cf
-patch_args=-Np0
 
 do_configure() {
 	MAKEFLAGS=${makejobs} \
diff --git a/srcpkgs/avr-binutils/patches/avr-size.patch b/srcpkgs/avr-binutils/patches/avr-size.patch
index e9065e9ec556..4abf872765e4 100644
--- a/srcpkgs/avr-binutils/patches/avr-size.patch
+++ b/srcpkgs/avr-binutils/patches/avr-size.patch
@@ -1,7 +1,7 @@
 AVR specific only
 ===========================================================
---- binutils/size.c	2007-08-06 13:56:14.000000000 -0600
-+++ binutils/size.c	2007-09-13 09:13:10.281250000 -0600
+--- a/binutils/size.c
++++ b/binutils/size.c
 @@ -36,10 +36,31 @@
  #include "getopt.h"
  #include "bucomm.h"
diff --git a/srcpkgs/avr-binutils/template b/srcpkgs/avr-binutils/template
index d00bec12e17a..7d3a15725c57 100644
--- a/srcpkgs/avr-binutils/template
+++ b/srcpkgs/avr-binutils/template
@@ -14,7 +14,6 @@ license="GPL-3.0-only"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="$GNU_SITE/binutils/binutils-$version.tar.xz"
 checksum=0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04
-patch_args=-Np0
 
 post_install() {
 	rm -rf "$DESTDIR"/usr/share/info \
diff --git a/srcpkgs/azpainter/patches/0001-fix-configure-error.patch b/srcpkgs/azpainter/patches/0001-fix-configure-error.patch
index 00ecc7e64ef9..25c9483144b8 100644
--- a/srcpkgs/azpainter/patches/0001-fix-configure-error.patch
+++ b/srcpkgs/azpainter/patches/0001-fix-configure-error.patch
@@ -9,8 +9,8 @@ Subject: [PATCH] fix configure error
 
 diff --git configure configure
 index cb9a9f6..06e65e0 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -203,9 +203,6 @@ for opt;do
  		cf_check_lib=no ;;
  	*=*)
@@ -26,8 +26,8 @@ index cb9a9f6..06e65e0 100755
 
 diff --git configure configure
 index 06e65e0..b10aed0 100755
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -201,8 +201,6 @@ for opt;do
  		cf_docdir=$tmp1 ;;
  	--no-check-lib)
diff --git a/srcpkgs/azpainter/patches/fix-compiler-environment.patch b/srcpkgs/azpainter/patches/fix-compiler-environment.patch
index 86418e450b80..0b264cbd1bde 100644
--- a/srcpkgs/azpainter/patches/fix-compiler-environment.patch
+++ b/srcpkgs/azpainter/patches/fix-compiler-environment.patch
@@ -1,5 +1,5 @@
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -150,10 +150,11 @@ fc_check_command_err sed
  #-------------
  # option
diff --git a/srcpkgs/azpainter/template b/srcpkgs/azpainter/template
index b47d36fbe7ac..05bd1be32771 100644
--- a/srcpkgs/azpainter/template
+++ b/srcpkgs/azpainter/template
@@ -13,4 +13,3 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/Symbian9/azpainter"
 distfiles="https://github.com/Symbian9/azpainter/releases/download/v${version}/${pkgname}-${version}.tar.xz"
 checksum=85f3f935e76b420f2e5e272514368fdfbe4c25c01daa1e161ac28a6e1edb0d2c
-patch_args=-Np0

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [RFC] switch patch_args to -Np1
  2021-06-18  1:38 [PR PATCH] [RFC] switch patch_args to -Np1 sgn
                   ` (7 preceding siblings ...)
  2021-06-18 12:03 ` [PR PATCH] [Updated] " sgn
@ 2021-06-18 16:51 ` q66
  8 siblings, 0 replies; 10+ messages in thread
From: q66 @ 2021-06-18 16:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 211 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/31550#issuecomment-864162858

Comment:
that seems pretty sketchy to me, i think we can just convert them properly

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-06-18 16:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18  1:38 [PR PATCH] [RFC] switch patch_args to -Np1 sgn
2021-06-18  2:41 ` q66
2021-06-18  3:57 ` sgn
2021-06-18  4:13 ` Vaelatern
2021-06-18  7:27 ` sgn
2021-06-18 11:30 ` [PR PATCH] [Updated] " sgn
2021-06-18 11:33 ` sgn
2021-06-18 11:39 ` q66
2021-06-18 12:03 ` [PR PATCH] [Updated] " sgn
2021-06-18 16:51 ` q66

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).