mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-28 22:55:24 +02:00
```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 /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
20 lines
645 B
Diff
20 lines
645 B
Diff
--- a/squashfs-tools/mksquashfs.c 2018-02-15 14:11:24.661930637 +0100
|
|
+++ b/squashfs-tools/mksquashfs.c 2018-02-15 14:12:28.218412025 +0100
|
|
@@ -44,6 +44,7 @@
|
|
#include <setjmp.h>
|
|
#include <sys/types.h>
|
|
+#include <sys/sysmacros.h>
|
|
#include <sys/mman.h>
|
|
#include <pthread.h>
|
|
#include <regex.h>
|
|
#include <sys/wait.h>
|
|
--- a/squashfs-tools/unsquashfs.c 2018-02-15 14:25:34.608263881 +0100
|
|
+++ b/squashfs-tools/unsquashfs.c 2018-02-15 14:26:01.376410327 +0100
|
|
@@ -36,6 +36,7 @@
|
|
#include <sys/types.h>
|
|
+#include <sys/sysmacros.h>
|
|
#include <sys/time.h>
|
|
#include <sys/resource.h>
|
|
#include <limits.h>
|
|
#include <ctype.h>
|
|
|