sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Vlad Glagolev (db10b36ac9a1ef65c2988f9cb9bdf53b19caf67f)
- From: Vlad Glagolev <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (db10b36ac9a1ef65c2988f9cb9bdf53b19caf67f)
- Date: Mon, 13 Apr 2015 12:13:06 -0500
GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:
ChangeLog | 2 +
editors/leafpad/DEPENDS | 2 -
editors/leafpad/DETAILS | 1
editors/leafpad/HISTORY | 9 ++++++
editors/leafpad/PRE_BUILD | 5 +++
editors/leafpad/format.patch | 52
++++++++++++++++++++++++++++++++++++++++
editors/leafpad/optimized.patch | 30 +++++++++++++++++++++++
perl-cpan/common-sense/DEPENDS | 1
perl-cpan/common-sense/DETAILS | 14 ++++++++++
perl-cpan/common-sense/HISTORY | 2 +
10 files changed, 117 insertions(+), 1 deletion(-)
New commits:
commit db10b36ac9a1ef65c2988f9cb9bdf53b19caf67f
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>
leafpad: accumulated fixes
commit 697b17cba9ca5c4cfa4783ecb9f2a865dd30f5a1
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>
common-sense: new spell, Perl common defaults with lower memory usage
diff --git a/ChangeLog b/ChangeLog
index a22ee27..654274b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
2015-04-13 Vlad Glagolev <stealth AT sourcemage.org>
* perl-cpan/io-socket-ip: new spell, family-neutral IP socket
supporting
both IPv4 and IPv6
+ * perl-cpan/common-sense: new spell, Perl common defaults with lower
+ memory usage
2015-04-12 Pavel Vinogradov <public AT sourcemage.org>
* database/sophia: new spell, a modern embeddable key-value database,
diff --git a/editors/leafpad/DEPENDS b/editors/leafpad/DEPENDS
index 5bc3825..edffa0e 100755
--- a/editors/leafpad/DEPENDS
+++ b/editors/leafpad/DEPENDS
@@ -1 +1 @@
-depends gtk+2
+depends gtk+2
diff --git a/editors/leafpad/DETAILS b/editors/leafpad/DETAILS
index 7352638..dda4426 100755
--- a/editors/leafpad/DETAILS
+++ b/editors/leafpad/DETAILS
@@ -1,5 +1,6 @@
SPELL=leafpad
VERSION=0.8.18.1
+ PATCHLEVEL=1
SOURCE=$SPELL-$VERSION.tar.gz
SOURCE2=$SOURCE.sig
SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
diff --git a/editors/leafpad/HISTORY b/editors/leafpad/HISTORY
index ffa433b..18a60aa 100644
--- a/editors/leafpad/HISTORY
+++ b/editors/leafpad/HISTORY
@@ -1,3 +1,12 @@
+2015-04-13 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS: PATCHLEVEL=1
+ * DEPENDS: removed tabs
+ * PRE_BUILD: added, to apply patches
+ * format.patch: added, backported the patch from Debian, fixes build
+ with '-Werror=format-security'
+ * optimized.patch: added, to fix freezing from the quit window after
+ pressing 'Cancel' in optimized (-Os) builds
+
2011-01-10 Vlad Glagolev <stealth AT sourcemage.org>
* DETAILS: updated spell to 0.8.18.1; quoting paths
diff --git a/editors/leafpad/PRE_BUILD b/editors/leafpad/PRE_BUILD
new file mode 100755
index 0000000..3bdf4a1
--- /dev/null
+++ b/editors/leafpad/PRE_BUILD
@@ -0,0 +1,5 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+patch -p0 < "$SPELL_DIRECTORY/optimized.patch" &&
+patch -p1 < "$SPELL_DIRECTORY/format.patch"
diff --git a/editors/leafpad/format.patch b/editors/leafpad/format.patch
new file mode 100644
index 0000000..cd4e992
--- /dev/null
+++ b/editors/leafpad/format.patch
@@ -0,0 +1,52 @@
+From 8fd99c3c6a6fdf7bb3dc7a2cd786e8a77011c879 Mon Sep 17 00:00:00 2001
+From: Jari Aalto <jari.aalto AT cante.net>
+Date: Wed, 8 Feb 2012 06:59:36 -0500
+Subject: [PATCH] gcc: format not a string literal and no format arguments
+Organization: Private
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Jari Aalto <jari.aalto AT cante.net>
+---
+ src/dialog.c | 4 ++--
+ src/gtkprint.c | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/dialog.c b/src/dialog.c
+index 14b69d7..06c0f21 100644
+--- a/src/dialog.c
++++ b/src/dialog.c
+@@ -36,7 +36,7 @@ void run_dialog_message(GtkWidget *window,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
+ type,
+ GTK_BUTTONS_NONE,
+- str);
++ (const gchar*) str, "");
+ gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE);
+ gtk_dialog_add_buttons(GTK_DIALOG(dialog),
+ GTK_STOCK_OK, GTK_RESPONSE_CANCEL, NULL);
+@@ -61,7 +61,7 @@ GtkWidget *create_dialog_message_question(GtkWidget
*window, gchar *message, ...
+ GTK_DIALOG_DESTROY_WITH_PARENT,
+ GTK_MESSAGE_QUESTION,
+ GTK_BUTTONS_NONE,
+- str);
++ (const gchar*) str, "");
+ gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE);
+ gtk_dialog_add_buttons(GTK_DIALOG(dialog),
+ GTK_STOCK_NO, GTK_RESPONSE_NO,
+diff --git a/src/gtkprint.c b/src/gtkprint.c
+index 3f39384..476a2be 100644
+--- a/src/gtkprint.c
++++ b/src/gtkprint.c
+@@ -165,7 +165,7 @@ static void create_error_dialog(GtkTextView *text_view,
gchar *message)
+ GTK_DIALOG_DESTROY_WITH_PARENT,
+ GTK_MESSAGE_ERROR,
+ GTK_BUTTONS_NONE,
+- message);
++ (const gchar*) message, "");
+ gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE);
+ gtk_dialog_add_buttons(GTK_DIALOG(dialog),
+ GTK_STOCK_OK, GTK_RESPONSE_CANCEL, NULL);
+--
+1.7.9
+
diff --git a/editors/leafpad/optimized.patch b/editors/leafpad/optimized.patch
new file mode 100644
index 0000000..f9482aa
--- /dev/null
+++ b/editors/leafpad/optimized.patch
@@ -0,0 +1,30 @@
+--- src/callback.h.orig 2007-09-11 19:14:32.000000000 +0400
++++ src/callback.h 2015-04-13 15:24:54.000000000 +0300
+@@ -27,7 +27,7 @@
+ void on_file_print_preview(void);
+ void on_file_print(void);
+ void on_file_close(void);
+-void on_file_quit(void);
++gboolean on_file_quit(void);
+ void on_edit_undo(void);
+ void on_edit_redo(void);
+ void on_edit_cut(void);
+--- src/callback.c.orig 2010-12-18 11:19:01.000000000 +0300
++++ src/callback.c 2015-04-13 15:25:34.000000000 +0300
+@@ -169,12 +169,15 @@
+ }
+ }
+
+-void on_file_quit(void)
++gboolean on_file_quit(void)
+ {
+ if (!check_text_modification()) {
+ save_config_file();
+ gtk_main_quit();
++ return FALSE;
+ }
++
++ return TRUE;
+ }
+
+ void on_edit_undo(void)
diff --git a/perl-cpan/common-sense/DEPENDS b/perl-cpan/common-sense/DEPENDS
new file mode 100755
index 0000000..6826bc7
--- /dev/null
+++ b/perl-cpan/common-sense/DEPENDS
@@ -0,0 +1 @@
+depends perl
diff --git a/perl-cpan/common-sense/DETAILS b/perl-cpan/common-sense/DETAILS
new file mode 100755
index 0000000..fef733d
--- /dev/null
+++ b/perl-cpan/common-sense/DETAILS
@@ -0,0 +1,14 @@
+ SPELL=common-sense
+ VERSION=3.73
+ SOURCE=$SPELL-$VERSION.tar.gz
+ SOURCE_URL[0]=http://www.cpan.org/authors/id/M/ML/MLEHMANN/$SOURCE
+
SOURCE_HASH=sha512:a4ee55326a2c67b782f42751487bd35a96f4cd2b4439dcf2f2117ac0f21786917377360a92ab708bf060baafe5f54105387e10d96bca7df53f6cc7d6172ea1c4
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ LICENSE=ART
+ WEB_SITE=http://search.cpan.org/dist/common-sense/
+ ENTERED=20150413
+ SHORT="Perl common defaults with lower memory usage"
+cat << EOF
+This module implements some sane defaults for Perl programs, as defined by
two
+typical (or not so typical - use your common sense) specimens of Perl coders.
+EOF
diff --git a/perl-cpan/common-sense/HISTORY b/perl-cpan/common-sense/HISTORY
new file mode 100644
index 0000000..8d14c98
--- /dev/null
+++ b/perl-cpan/common-sense/HISTORY
@@ -0,0 +1,2 @@
+2015-04-13 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS, DEPENDS: created spell, version 3.73
- [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (db10b36ac9a1ef65c2988f9cb9bdf53b19caf67f), Vlad Glagolev, 04/13/2015
Archive powered by MHonArc 2.6.24.