diff options
author | drochner <drochner> | 2009-01-28 12:47:35 +0000 |
---|---|---|
committer | drochner <drochner> | 2009-01-28 12:47:35 +0000 |
commit | 4dc80da21065c66af95c692ed86dafa393aad05b (patch) | |
tree | f8d52f137f7a03c93cfa32417532e334358e3faf | |
parent | 0888607c9256d8b8bc38b089dabc844932bbc9bf (diff) | |
download | pkgsrc-4dc80da21065c66af95c692ed86dafa393aad05b.tar.gz |
fix code which assumes that time_t fits into an int, bump PKGREVISION
-rw-r--r-- | audio/gmpc/Makefile | 3 | ||||
-rw-r--r-- | audio/gmpc/distinfo | 3 | ||||
-rw-r--r-- | audio/gmpc/patches/patch-ah | 40 |
3 files changed, 44 insertions, 2 deletions
diff --git a/audio/gmpc/Makefile b/audio/gmpc/Makefile index 4f28059c83b..cd4ae4ea90c 100644 --- a/audio/gmpc/Makefile +++ b/audio/gmpc/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.28 2009/01/20 22:46:09 drochner Exp $ +# $NetBSD: Makefile,v 1.29 2009/01/28 12:47:35 drochner Exp $ # DISTNAME= gmpc-0.17.0 +PKGREVISION= 1 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=musicpd/} diff --git a/audio/gmpc/distinfo b/audio/gmpc/distinfo index 181054fdd4d..bc05d430f6c 100644 --- a/audio/gmpc/distinfo +++ b/audio/gmpc/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.12 2009/01/20 22:46:09 drochner Exp $ +$NetBSD: distinfo,v 1.13 2009/01/28 12:47:35 drochner Exp $ SHA1 (gmpc-0.17.0.tar.gz) = 2b4d4f33e3374440936e91ddc790a98cff13ef1b RMD160 (gmpc-0.17.0.tar.gz) = 5ae15f833c333e6fcd47c7ee9712782ff169ae36 Size (gmpc-0.17.0.tar.gz) = 1041200 bytes SHA1 (patch-ag) = 16a41bf8acfac8738a1cc589aeae102a3f9ccecb +SHA1 (patch-ah) = 85884799c561c7e6941d1af66c156cb07b79180c diff --git a/audio/gmpc/patches/patch-ah b/audio/gmpc/patches/patch-ah new file mode 100644 index 00000000000..8f8f8c047f7 --- /dev/null +++ b/audio/gmpc/patches/patch-ah @@ -0,0 +1,40 @@ +$NetBSD: patch-ah,v 1.1 2009/01/28 12:47:35 drochner Exp $ + +--- src/playlist3-messages.c.orig 2009-01-28 14:06:46.000000000 +0100 ++++ src/playlist3-messages.c +@@ -29,7 +29,7 @@ void playlist3_message_init(void) + { + GError *error = NULL; + gchar *path = gmpc_get_user_path("gmpc.log"); +- message_list = gtk_list_store_new(3, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING); ++ message_list = gtk_list_store_new(3, G_TYPE_INT64, G_TYPE_STRING, G_TYPE_STRING); + + log_file = g_io_channel_new_file(path, "a", &error); + if(error) +@@ -54,10 +54,10 @@ void playlist3_show_error_message(const + gchar *string; + playlist3_message_init(); + gtk_list_store_prepend(message_list, &iter); +- gtk_list_store_set(message_list, &iter, 0,t, 2, message,-1); ++ gtk_list_store_set(message_list, &iter, 0, (gint64)t, 2, message,-1); + + +- lt = localtime((time_t *)&t); ++ lt = localtime(&t); + strftime(text, 64,"%d/%m/%Y-%H:%M:%S", lt); + + string = g_strdup_printf("%s:%s:%s\n",text,error_levels[el], message); +@@ -160,11 +160,11 @@ static void message_cell_data_func(GtkTr + gpointer data) + { + time_t t; +- guint id; ++ gint64 id; + gchar text[64]; + struct tm *lt; + gtk_tree_model_get(tree_model, iter, 0,&id, -1); +- /* gtk_list_store only knows the type unsigned int, not time_T ++ /* gtk_list_store only knows the type int64, not time_T + * so lets do some casting) + */ + t = (time_t) id; |