summaryrefslogtreecommitdiff
path: root/community/gnome-commander
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2012-11-30 21:47:08 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2012-11-30 21:47:08 -0500
commitf61090cc9177608c18cf176eb77e799fce9ef9df (patch)
tree7ab73b4d71e52be18f6678aaaee36bc608e06ba3 /community/gnome-commander
parentfcfce8c04b912e79644ee281d27120d40cc2e0df (diff)
Add gnome-commander-1.2.8.15-build.patch
Diffstat (limited to 'community/gnome-commander')
-rw-r--r--community/gnome-commander/PKGBUILD8
-rw-r--r--community/gnome-commander/gnome-commander-1.2.8.15-build.patch25
2 files changed, 30 insertions, 3 deletions
diff --git a/community/gnome-commander/PKGBUILD b/community/gnome-commander/PKGBUILD
index ec1bda143..3c9da448f 100644
--- a/community/gnome-commander/PKGBUILD
+++ b/community/gnome-commander/PKGBUILD
@@ -14,12 +14,14 @@ depends=('libgnomeui' 'gnome-vfs' 'gconf' 'python2' 'libsm')
makedepends=('perlxml' 'gnome-doc-utils>=0.20.1' 'intltool')
options=(!libtool)
install=gnome-commander.install
-source=(ftp://ftp.gnome.org/pub/GNOME/sources/gnome-commander/1.2/$pkgname-$pkgver.tar.xz)
-sha256sums=('d2feecf215db3e0faeb873c559087c2ad9af0a5aac26e2b1b32b28be939da37f')
+source=(ftp://ftp.gnome.org/pub/GNOME/sources/gnome-commander/1.2/$pkgname-$pkgver.tar.xz
+ gnome-commander-1.2.8.15-build.patch)
+sha256sums=('d2feecf215db3e0faeb873c559087c2ad9af0a5aac26e2b1b32b28be939da37f'
+ '856e9c1a17acbb97772ed93d01d81746098e03f5c06375cc976fc784a0011088')
build() {
cd "$srcdir/$pkgname-$pkgver"
-
+ patch -Np1 -i ${srcdir}/gnome-commander-1.2.8.15-build.patch
# python2 fix
for file in doc/*/gnome-commander.xml; do
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
diff --git a/community/gnome-commander/gnome-commander-1.2.8.15-build.patch b/community/gnome-commander/gnome-commander-1.2.8.15-build.patch
new file mode 100644
index 000000000..f78eea9d3
--- /dev/null
+++ b/community/gnome-commander/gnome-commander-1.2.8.15-build.patch
@@ -0,0 +1,25 @@
+--- gnome-commander-1.2.8.15.orig/src/gnome-cmd-pixmap.h 2011-12-06 14:10:28.000000000 -0500
++++ gnome-commander-1.2.8.15/src/gnome-cmd-pixmap.h 2012-11-29 15:57:52.389904563 -0500
+@@ -44,7 +44,7 @@
+ g_return_if_fail (pixmap->pixmap != NULL);
+ g_return_if_fail (pixmap->mask != NULL);
+
+- gdk_pixbuf_unref (pixmap->pixbuf);
++ g_object_unref (pixmap->pixbuf);
+ gdk_pixmap_unref (pixmap->pixmap);
+ gdk_bitmap_unref (pixmap->mask);
+
+
+--- gnome-commander-1.2.8.15.orig/src/dict.h 2011-11-07 18:26:25.000000000 -0500
++++ gnome-commander-1.2.8.15/src/dict.h 2012-11-29 16:22:17.341129719 -0500
+@@ -55,8 +55,8 @@
+ template <typename KEY, typename VAL>
+ inline void DICT<KEY,VAL>::add(const KEY k, const VAL &v)
+ {
+- std::pair<typename KEY_COLL::iterator,bool> k_pos = k_coll.insert(make_pair(k,(const VAL *) NULL));
+- std::pair<typename VAL_COLL::iterator,bool> v_pos = v_coll.insert(make_pair(v,(const KEY *) NULL));
++ std::pair<typename KEY_COLL::iterator,bool> k_pos = k_coll.insert(std::make_pair(k,(const VAL *) NULL));
++ std::pair<typename VAL_COLL::iterator,bool> v_pos = v_coll.insert(std::make_pair(v,(const KEY *) NULL));
+
+ if (k_pos.second)
+ k_pos.first->second = &v_pos.first->first;