void-packages/srcpkgs/libdrm/patches/revert_set_fb_modifiers_flag.patch
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

10 lines
395 B
Diff

https://gitlab.freedesktop.org/mesa/drm/-/commit/40f73d0b0b3936ccadc693edc25aad70c1225766
--- a/xf86drmMode.c 2021-04-07 16:54:11.000000000 +0300
+++ b/xf86drmMode.c 2021-04-23 08:16:18.037479830 +0300
@@ -292,2 +292 @@ drm_public int drmModeAddFB2WithModifier
- if (modifier) {
- f.flags |= DRM_MODE_FB_MODIFIERS;
+ if (modifier)
@@ -295 +293,0 @@ drm_public int drmModeAddFB2WithModifier
- }