pal (0.4.3-7)
Replace deprecated G_CONST_RETURN with const.
'G_CONST_RETURN' has been deprecated[1] and removed in recent glib releases,
thus replace both occurences of it with 'const'.
This patch does not apply to a current pal svn snapshot, but the command used
to change the two affected files is the same for pal 0.4.3 and a pal snapshot:
sed -i 's/G_CONST_RETURN/const/' src/remind.c src/main.c
Thanks to Matthias Klose for trying to rebuild pal on Ubuntu Oneiric (it
currently contains libglib2.0-dev 2.29.16-0ubuntu2) and reporting an
according build failure[2].
Pal still builds on Debian Sid, which contains the older libglib2.0-dev
2.28.6-1 (tested on SPARC).
[1] https://bugzilla.gnome.org/show_bug.cgi?id=644611
[2] https://bugs.launchpad.net/ubuntu/+source/pal/+bug/832892
--- pal-0.4.3.orig/src/main.c
+++ pal-0.4.3/src/main.c
@@ -702,7 +702,7 @@ void pal_main_reload(void)
int main(gint argc, gchar** argv)
{
- G_CONST_RETURN gchar *charset = NULL;
+ const gchar *charset = NULL;
gint on_arg = 1;
GDate* today = g_date_new();
--- pal-0.4.3.orig/src/remind.c
+++ pal-0.4.3/src/remind.c
@@ -56,7 +56,7 @@ static void pal_remind_event(void)
FILE* tmp_stream;
int return_val;
gchar* email_add;
- G_CONST_RETURN gchar *charset;
+ const gchar *charset;
at_string = g_malloc(1024*sizeof(gchar));
pal_output_fg(BRIGHT, GREEN, "* * * ");