From b10482d953ff26c4af511414fecee917cfafd91d Mon Sep 17 00:00:00 2001 From: Peter Wang Date: Tue, 12 Mar 2019 18:09:11 +1100 Subject: [PATCH] xfce4-places-plugin: patch for undefined symbol crash Fix from upstream https://bugzilla.xfce.org/show_bug.cgi?id=11939 --- .../patches/undefined-symbol.patch | 69 +++++++++++++++++++ srcpkgs/xfce4-places-plugin/template | 3 +- 2 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/xfce4-places-plugin/patches/undefined-symbol.patch diff --git a/srcpkgs/xfce4-places-plugin/patches/undefined-symbol.patch b/srcpkgs/xfce4-places-plugin/patches/undefined-symbol.patch new file mode 100644 index 0000000000..a94d9ea706 --- /dev/null +++ b/srcpkgs/xfce4-places-plugin/patches/undefined-symbol.patch @@ -0,0 +1,69 @@ +From 94d583d0ba257cdc96cde5794ebb7d38001ae3a5 Mon Sep 17 00:00:00 2001 +From: Andrzej +Date: Tue, 7 Jul 2015 22:26:51 +0100 +Subject: [PATCH] Bug 11939: xfce4-places-plugin 1.7.0 crashes with undefined + symbol + +Patch from Fedora. Submitted by Kevin Fenzi. +--- + panel-plugin/model.h | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +diff --git a/panel-plugin/model.h b/panel-plugin/model.h +index 06d9d6f..043e391 100644 +--- a/panel-plugin/model.h ++++ b/panel-plugin/model.h +@@ -36,13 +36,13 @@ struct _PlacesBookmarkAction + void (*finalize) (PlacesBookmarkAction *self); + }; + +-inline PlacesBookmarkAction* ++extern inline PlacesBookmarkAction* + places_bookmark_action_create(gchar *label); + +-inline void ++extern inline void + places_bookmark_action_destroy(PlacesBookmarkAction*); + +-inline void ++extern inline void + places_bookmark_action_call(PlacesBookmarkAction*); + + /* Places Bookmark */ +@@ -70,10 +70,10 @@ struct _PlacesBookmark + void (*finalize) (PlacesBookmark *self); + }; + +-inline PlacesBookmark* ++extern inline PlacesBookmark* + places_bookmark_create(gchar *label); + +-inline void ++extern inline void + places_bookmark_destroy(PlacesBookmark *bookmark); + + /* Places Bookmark Group */ +@@ -86,16 +86,16 @@ struct _PlacesBookmarkGroup + gpointer priv; + }; + +-inline GList* ++extern inline GList* + places_bookmark_group_get_bookmarks(PlacesBookmarkGroup*); + +-inline gboolean ++extern inline gboolean + places_bookmark_group_changed(PlacesBookmarkGroup*); + +-inline PlacesBookmarkGroup* ++extern inline PlacesBookmarkGroup* + places_bookmark_group_create(); + +-inline void ++extern inline void + places_bookmark_group_destroy(PlacesBookmarkGroup*); + + #endif +-- +2.6.4 + diff --git a/srcpkgs/xfce4-places-plugin/template b/srcpkgs/xfce4-places-plugin/template index a5a857ace7..b7f2d8ea2f 100644 --- a/srcpkgs/xfce4-places-plugin/template +++ b/srcpkgs/xfce4-places-plugin/template @@ -1,7 +1,7 @@ # Template file for 'xfce4-places-plugin' pkgname=xfce4-places-plugin version=1.7.0 -revision=2 +revision=3 build_style=gnu-configure hostmakedepends="intltool pkg-config" makedepends="exo-devel libglib-devel gtk+-devel libxfce4ui-devel libxfce4util-devel @@ -12,4 +12,5 @@ license="GPL-2.0-or-later" homepage="https://goodies.xfce.org/projects/panel-plugins/xfce4-places-plugin" distfiles="https://archive.xfce.org/src/panel-plugins/${pkgname}/${version%.*}/${pkgname}-${version}.tar.bz2" checksum=4175c614749abbb5bcf6f49c88125fb0dd36db69f4c374df23563907b16e2c3f +patch_args="-Np1"