void-packages/srcpkgs/milkytracker/patches/fix-jack-library-call.patch
Đoàn Trần Công Danh 765e304c4b srcpkgs/m*: 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

11 lines
459 B
Diff

--- a/src/milkyplay/drivers/jack/AudioDriver_JACK.cpp
+++ b/src/milkyplay/drivers/jack/AudioDriver_JACK.cpp
@@ -92,7 +92,7 @@
mp_sint32 AudioDriver_JACK::initDevice(mp_sint32 bufferSizeInWords, mp_uint32 mixFrequency, MasterMixer* mixer)
{
// First load libjack
- libJack = dlopen("libjack.so", RTLD_LAZY);
+ libJack = dlopen("libjack.so.0", RTLD_LAZY);
if(!libJack) {
fprintf(stderr, "JACK: Can't load libjack (is it installed?)\n");
return -1;