diff --git a/KEEP/leafpad-savebug.patch b/KEEP/leafpad-savebug.patch new file mode 100644 index 000000000..630a001f4 --- /dev/null +++ b/KEEP/leafpad-savebug.patch @@ -0,0 +1,11 @@ +--- leafpad-0.8.18.org/src/file.c 2013-10-19 23:33:43.767308069 +0000 ++++ leafpad-0.8.18/src/file.c 2013-10-19 23:34:34.263306257 +0000 +@@ -223,7 +223,7 @@ + GTK_MESSAGE_ERROR, _("Can't open file to write")); + return -1; + } +- if (fwrite(str, 1, wbytes, fp) != wbytes) { ++ if (fwrite(cstr, 1, wbytes, fp) != wbytes) { + run_dialog_message(gtk_widget_get_toplevel(view), + GTK_MESSAGE_ERROR, _("Can't write file")); + return -1; diff --git a/pkg/leafpad b/pkg/leafpad index 29facb39f..17ba201e7 100644 --- a/pkg/leafpad +++ b/pkg/leafpad @@ -9,8 +9,11 @@ sha512=315f5541dfe8d519ea832ad8b13b034a5ac173f8b9c0de7e3f774780b4ef42f2fab29e3ef gtk+2 [build] -#patch -p1 < "$K/some.patch" -CFLAGS=-D_GNU_SOURCE ./configure -C --prefix="$butch_prefix" \ +patch -p1 < "$K/"leafpad-savebug.patch || exit 1 + +CFLAGS="-D_GNU_SOURCE $optcflags" \ +LDFLAGS="$optldflags" \ +./configure -C --prefix="$butch_prefix" \ --disable-nls || exit 1 for i in po ; do