void-packages/srcpkgs/perl-Fuse/patches/build-fix.patch
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par 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
			/^[*-]\+ [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
```
2021-06-20 13:17:29 +07:00

25 lines
579 B
Diff

--- a/Fuse.xs 2013-09-13 06:16:35.000000000 +0400
+++ b/Fuse.xs 2013-10-29 14:38:44.000000000 +0400
@@ -754,6 +754,9 @@
int _PLfuse_release (const char *file, struct fuse_file_info *fi) {
int rv;
+#ifndef PERL_HAS_64BITINT
+ char *temp;
+#endif
int flags = fi->flags;
FUSE_CONTEXT_PRE;
DEBUGf("release begin\n");
diff --git Fuse.xs Fuse.xs
index b41c761..266978b 100755
--- a/Fuse.xs
+++ b/Fuse.xs
@@ -2,7 +2,7 @@
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
-
+#include <linux/ioctl.h>
#include <fuse.h>
#if defined(__linux__) || defined(__APPLE__)