void-packages/srcpkgs/refind/patches/force-inline-musl.patch
Đoàn Trần Công Danh 103ab731ab srcpkgs/r*: convert patches to -Np1
* runit 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

33 lines
1.5 KiB
Diff

--- a/filesystems/zstd/fse_decompress.c 2019-11-11 17:00:57.423347660 +0700
+++ b/filesystems/zstd/fse_decompress.c 2019-11-11 17:01:52.654692140 +0700
@@ -40,7 +40,7 @@
/* **************************************************************
* Compiler specifics
****************************************************************/
-#define FORCE_INLINE static __always_inline
+#define FORCE_INLINE static inline __attribute__((__always_inline__))
/* **************************************************************
* Includes
--- a/filesystems/zstd/zstd_internal.h 2019-11-11 15:56:42.258217148 +0700
+++ b/filesystems/zstd/zstd_internal.h 2019-11-11 16:04:09.433867777 +0700
@@ -20,7 +20,7 @@
/*-*******************************************************
* Compiler specifics
*********************************************************/
-#define FORCE_INLINE static __always_inline
+#define FORCE_INLINE static inline __attribute__((__always_inline__))
#define FORCE_NOINLINE static /*noinline*/
/*-*************************************
--- a/filesystems/zstd/huf_decompress.c 2019-11-11 17:00:46.487280468 +0700
+++ b/filesystems/zstd/huf_decompress.c 2019-11-11 17:01:20.095488026 +0700
@@ -40,7 +40,7 @@
/* **************************************************************
* Compiler specifics
****************************************************************/
-#define FORCE_INLINE static __always_inline
+#define FORCE_INLINE static inline __attribute__((__always_inline__))
/* **************************************************************
* Dependencies