void-packages/srcpkgs/ffmpeg/patches/armv5tel-floating-point.patch
Đoàn Trần Công Danh be5369a0cb srcpkgs/f*: convert patches to -Np1
* fpc 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

18 lines
464 B
Diff

--- a/libavfilter/vf_drawtext.c 2017-10-26 21:03:03.000000000 +0200
+++ b/libavfilter/vf_drawtext.c 2017-11-21 11:06:49.602284422 +0100
@@ -39,6 +39,15 @@
#endif
#include <fenv.h>
+#if (FE_ALL_EXCEPT == 0)
+/* E.g. ARM soft float does not define these */
+#define FE_INVALID 0
+#define FE_DIVBYZERO 0
+#define FE_OVERFLOW 0
+#define FE_UNDERFLOW 0
+#define FE_INEXACT 0
+#endif
+
#if CONFIG_LIBFONTCONFIG
#include <fontconfig/fontconfig.h>
#endif