From 3c69381a18b8cab686b3c5a89a8c4a62f01431d1 Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Tue, 13 Sep 2016 05:39:03 +0200 Subject: [PATCH] nemo: fix gcc6 build --- .../nemo/patches/fix-unused_variable.patch | 19 +++++++++++++++++++ srcpkgs/nemo/template | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/nemo/patches/fix-unused_variable.patch diff --git a/srcpkgs/nemo/patches/fix-unused_variable.patch b/srcpkgs/nemo/patches/fix-unused_variable.patch new file mode 100644 index 00000000000..e1f8479d5b1 --- /dev/null +++ b/srcpkgs/nemo/patches/fix-unused_variable.patch @@ -0,0 +1,19 @@ +The code using url_drag_types[] is #if 0 enclosed, so do +the same for the array to avoid gcc6 error -Wunused-const-variable= + +--- src/nemo-notebook.c 2016-03-07 18:19:50.000000000 +0100 ++++ src/nemo-notebook.c 2016-09-13 01:00:15.102303362 +0200 +@@ -51,11 +51,13 @@ + static void nemo_notebook_remove (GtkContainer *container, + GtkWidget *tab_widget); + ++#if 0 + static const GtkTargetEntry url_drag_types[] = + { + { NEMO_ICON_DND_GNOME_ICON_LIST_TYPE, 0, NEMO_ICON_DND_GNOME_ICON_LIST }, + { NEMO_ICON_DND_URI_LIST_TYPE, 0, NEMO_ICON_DND_URI_LIST }, + }; ++#endif + + enum + { diff --git a/srcpkgs/nemo/template b/srcpkgs/nemo/template index fce5b5349d5..4eae8e78519 100644 --- a/srcpkgs/nemo/template +++ b/srcpkgs/nemo/template @@ -1,7 +1,7 @@ # Template file for 'nemo' pkgname=nemo version=2.8.7 -revision=1 +revision=2 short_desc="The Cinnamon file manager (nautilus fork)" build_style=gnu-configure configure_args=" --disable-static --disable-update-mimedb