void-packages/srcpkgs/xorg-server/patches/autoconfig-sis.patch
Đoàn Trần Công Danh 3353bf4722 srcpkgs/x*: 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

21 lines
576 B
Diff

--- a/hw/xfree86/common/xf86pciBus.c 2011-09-24 10:53:45.421697668 +0000
+++ b/hw/xfree86/common/xf86pciBus.c 2011-09-24 10:55:56.416250708 +0000
@@ -1200,9 +1200,15 @@
break;
}
break;
- case 0x1039:
- driverList[0] = "sis";
- break;
+ case 0x1039:
+ switch (dev->device_id)
+ {
+ case 0x6350: case 0x6351:
+ driverList[0] = "sisimedia"; driverList[1] = "sis"; break;
+ default:
+ driverList[0] = "sis"; break;
+ }
+ break;
case 0x126f:
driverList[0] = "siliconmotion";
break;