void-packages/srcpkgs/lilyterm/patches/lilyterm-musl.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

17 lines
597 B
Diff

diff --git src/profile.c src/profile.c
index 3de9fb5..b7dc71f 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -2974,12 +2974,8 @@ GString *save_user_settings(GtkWidget *widget, struct Window *win_data)
// g_debug("save_user_settings(): profile = %s", profile);
// g_debug("\n%s", contents->str);
-# ifdef BSD
gchar resolved_patch[PATH_MAX+1];
gchar *real_file_name = g_strdup(realpath((const gchar *)profile, resolved_patch));
-# else
- gchar *real_file_name = canonicalize_file_name((const gchar *)profile);
-# endif
if (real_file_name==NULL)
{
//if (access(profile, F_OK))