void-packages/srcpkgs/ogmrip/patches/enchant-2.patch
Đoàn Trần Công Danh 2fd8d4df94 srcpkgs/o*: 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

24 lines
667 B
Diff

Source: Arch Linux
Upstream: Unknown
Reason: Fixes compilation with enchant-2
--- a/src/ogmrip-spell-dialog.c
+++ b/src/ogmrip-spell-dialog.c
@@ -315,14 +315,14 @@
enchant_dict_add_to_session (dialog->priv->dict, word, len);
break;
case OGMRIP_SPELL_RESPONSE_ADD_WORD:
- enchant_dict_add_to_personal (dialog->priv->dict, word, len);
+ enchant_dict_add (dialog->priv->dict, word, len);
break;
default:
break;
}
if (suggs && n_suggs)
- enchant_dict_free_suggestions (dialog->priv->dict, suggs);
+ enchant_dict_free_string_list (dialog->priv->dict, suggs);
}
return status;