void-packages/srcpkgs/ecl/patches/fix-libffi-system.patch
Đoàn Trần Công Danh a03d116397 srcpkgs/e*: 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
			/^[*-]\+ [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

16 lines
443 B
Diff

Source: @pullmoll
Upstream: no
Reason: ffitarget.h no longer defines FFI_SYSV for *nix
--- a/src/c/ffi.d 2016-12-19 11:25:00.000000000 +0100
+++ b/src/c/ffi.d 2020-04-25 13:29:05.385149890 +0200
@@ -133,8 +133,6 @@
#elif defined(X86_WIN64)
{@':win64', FFI_WIN64},
-#elif defined(X86_ANY) || defined(X86) || defined(X86_64)
- {@':cdecl', FFI_SYSV},
- {@':sysv', FFI_SYSV},
+#elif defined(X86_64)
{@':unix64', FFI_UNIX64},
#endif
};