[arch-commits] Commit in tuxcmd-modules/trunk (5 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Thu Sep 11 05:37:02 UTC 2014
Date: Thursday, September 11, 2014 @ 07:37:02
Author: bpiotrowski
Revision: 118805
upgpkg: tuxcmd-modules 0.6.70-3
mtree rebuild
Added:
tuxcmd-modules/trunk/tuxcmd-module-gvfs_include-glib.patch
tuxcmd-modules/trunk/tuxcmd-module-libarchive_libarchive-3.0.0a.patch
tuxcmd-modules/trunk/tuxcmd-module-ziparchive-gcc-4.7-2.patch
tuxcmd-modules/trunk/tuxcmd-module-ziparchive-gcc-4.7.patch
Modified:
tuxcmd-modules/trunk/PKGBUILD
--------------------------------------------------+
PKGBUILD | 28 ++++++--
tuxcmd-module-gvfs_include-glib.patch | 11 +++
tuxcmd-module-libarchive_libarchive-3.0.0a.patch | 11 +++
tuxcmd-module-ziparchive-gcc-4.7-2.patch | 35 ++++++++++
tuxcmd-module-ziparchive-gcc-4.7.patch | 73 +++++++++++++++++++++
5 files changed, 152 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-09-11 05:26:00 UTC (rev 118804)
+++ PKGBUILD 2014-09-11 05:37:02 UTC (rev 118805)
@@ -3,7 +3,7 @@
pkgname=tuxcmd-modules
pkgver=0.6.70
-pkgrel=2
+pkgrel=3
pkgdesc='Modules for Tux Commander'
arch=('i686' 'x86_64')
url='http://tuxcmd.sourceforge.net/'
@@ -12,16 +12,32 @@
makedepends=('sharutils')
optdepends=('gvfs: for gvfs module')
options=('!docs' '!emptydirs')
-source=("http://downloads.sourceforge.net/project/tuxcmd/tuxcmd/tuxcmd-dev-${pkgver}/${pkgname}-${pkgver}.tar.bz2")
-md5sums=('e3e2471f6f245d3191e9a845c73518ff')
+source=("http://downloads.sourceforge.net/project/tuxcmd/tuxcmd/tuxcmd-dev-${pkgver}/${pkgname}-${pkgver}.tar.bz2"
+ tuxcmd-module-gvfs_include-glib.patch
+ tuxcmd-module-libarchive_libarchive-3.0.0a.patch
+ tuxcmd-module-ziparchive-gcc-4.7-2.patch
+ tuxcmd-module-ziparchive-gcc-4.7.patch)
+md5sums=('e3e2471f6f245d3191e9a845c73518ff'
+ '8c82d2c004d81d9a849a13a3e949dae2'
+ 'b57bfb177a0a519f015627d42ca6dd86'
+ 'fdfabb07e54b7de580d2a56b10c1d38b'
+ '12aacf065f993bcb2129dd55b20a9ef0')
-build() {
+prepare() {
cd ${pkgname}-${pkgver}
+ patch -p1 -i ../tuxcmd-module-gvfs_include-glib.patch
+ patch -p1 -i ../tuxcmd-module-libarchive_libarchive-3.0.0a.patch
+ patch -p1 -i ../tuxcmd-module-ziparchive-gcc-4.7.patch
+ patch -p1 -i ../tuxcmd-module-ziparchive-gcc-4.7-2.patch
- # fix Makefiles
+
sed -i 's|$(INSTALL) \(.*\) $(DESTDIR)/lib$(LIB_SUFFIX)/tuxcmd/|$(INSTALL) -D \1 $(DESTDIR)/lib/tuxcmd/\1|' */Makefile
+}
- make -j1
+build() {
+ cd ${pkgname}-${pkgver}
+
+ make
}
package() {
Added: tuxcmd-module-gvfs_include-glib.patch
===================================================================
--- tuxcmd-module-gvfs_include-glib.patch (rev 0)
+++ tuxcmd-module-gvfs_include-glib.patch 2014-09-11 05:37:02 UTC (rev 118805)
@@ -0,0 +1,11 @@
+--- tuxcmd-modules-0.6.70/gvfs/gvfs.c.orig 2011-11-20 14:07:03.990300572 +0000
++++ tuxcmd-modules-0.6.70/gvfs/gvfs.c 2011-11-20 14:07:19.440300466 +0000
+@@ -25,7 +25,7 @@
+ #include <errno.h>
+
+ #include <gio/gio.h>
+-#include <glib/gtypes.h>
++#include <glib.h>
+
+ #include "vfs_types.h"
+
Added: tuxcmd-module-libarchive_libarchive-3.0.0a.patch
===================================================================
--- tuxcmd-module-libarchive_libarchive-3.0.0a.patch (rev 0)
+++ tuxcmd-module-libarchive_libarchive-3.0.0a.patch 2014-09-11 05:37:02 UTC (rev 118805)
@@ -0,0 +1,11 @@
+--- tuxcmd-modules-0.6.70/libarchive/libarchive.c.orig 2011-11-20 12:49:20.348256064 +0000
++++ tuxcmd-modules-0.6.70/libarchive/libarchive.c 2011-11-20 12:50:10.253257075 +0000
+@@ -141,7 +141,7 @@
+
+ module_info->ID = g_strdup ("libarchive_plugin");
+ module_info->Name = g_strdup ("libarchive plugin");
+- module_info->About = g_strdup_printf ("version %s, build date: %s\nusing %s\n", VERSION, BUILD_DATE, ARCHIVE_LIBRARY_VERSION);
++ module_info->About = g_strdup_printf ("version %s, build date: %s\nusing %s\n", VERSION, BUILD_DATE, archive_version_string());
+ module_info->Copyright = g_strdup ("Plugin Copyright (C) 2008-2009 Tomáš Bžatek\nlibarchive sources Copyright (c) 2003-2007 Tim Kientzle");
+
+ return module_info;
Added: tuxcmd-module-ziparchive-gcc-4.7-2.patch
===================================================================
--- tuxcmd-module-ziparchive-gcc-4.7-2.patch (rev 0)
+++ tuxcmd-module-ziparchive-gcc-4.7-2.patch 2014-09-11 05:37:02 UTC (rev 118805)
@@ -0,0 +1,35 @@
+From f4d8292cf67ab481a27ea88f04e2edd6dc16119e Mon Sep 17 00:00:00 2001
+From: Tomas Bzatek <tbzatek at redhat.com>
+Date: Fri, 3 Feb 2012 15:37:06 +0100
+Subject: [PATCH] ZipArchive: More complete fix for gcc-4.7
+
+Reverting the #ifdef changes I did last time and adding an include
+should do the trick. More testing on older platforms is needed though.
+---
+ zip/ZipArchive/stdafx.h | 3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/zip/ZipArchive/stdafx.h b/zip/ZipArchive/stdafx.h
+index db54a41..ddb2fd4 100644
+--- a/zip/ZipArchive/stdafx.h
++++ b/zip/ZipArchive/stdafx.h
+@@ -23,6 +23,7 @@
+
+ #include "_features.h"
+ #include "_platform.h"
++#include <unistd.h>
+
+ #if _MSC_VER > 1000
+ #pragma once
+@@ -67,7 +68,7 @@
+ #define ZIP_SIZE_TYPE DWORD
+ #define ZIP_ZLIB_TYPE int
+
+-#if !defined(_INTPTR_T_DEFINED)
++#if !defined(_INTPTR_T_DEFINED) && !defined(__GNUC__)
+ #if defined (__BORLANDC__)
+ #include <stdint.h>
+ #elif _MSC_VER <= 1200 || !defined _MSC_VER
+--
+1.7.8.4
+
Added: tuxcmd-module-ziparchive-gcc-4.7.patch
===================================================================
--- tuxcmd-module-ziparchive-gcc-4.7.patch (rev 0)
+++ tuxcmd-module-ziparchive-gcc-4.7.patch 2014-09-11 05:37:02 UTC (rev 118805)
@@ -0,0 +1,73 @@
+From e932ebbf029a4cdb38c61a838e8f3669debd410e Mon Sep 17 00:00:00 2001
+From: Tomas Bzatek <tbzatek at redhat.com>
+Date: Tue, 31 Jan 2012 13:19:50 +0000
+Subject: ZipArchive: GCC 4.7 compatibility
+
+---
+diff --git a/zip/ZipArchive/ZipCollections_stl.h b/zip/ZipArchive/ZipCollections_stl.h
+index 8792a6e..3facaad 100644
+--- a/zip/ZipArchive/ZipCollections_stl.h
++++ b/zip/ZipArchive/ZipCollections_stl.h
+@@ -86,10 +86,10 @@ public:
+ }
+ TYPE& GetAt(size_t uIndex) {return this->at(uIndex);}
+ const TYPE& GetAt(size_t uIndex) const {return this->at(uIndex);}
+- size_t Add(const TYPE& x) {push_back(x);return GetUpperBound();}
++ size_t Add(const TYPE& x) {this->push_back(x);return GetUpperBound();}
+ void RemoveAll() {this->clear();}
+- void RemoveAt(size_t uIndex) { erase(GetIterFromIndex(uIndex));}
+- void InsertAt(size_t uIndex, const TYPE& x){insert(GetIterFromIndex(uIndex), x);}
++ void RemoveAt(size_t uIndex) { this->erase(GetIterFromIndex(uIndex));}
++ void InsertAt(size_t uIndex, const TYPE& x){this->insert(GetIterFromIndex(uIndex), x);}
+
+ TYPE& operator[](size_t uIndex)
+ {
+@@ -114,8 +114,8 @@ public:
+ typedef typename std::list<TYPE>::iterator iterator;
+ typedef typename std::list<TYPE>::const_iterator const_iterator;
+ size_t GetCount() const {return this->size();}
+- void AddTail(const TYPE& x){push_back(x);}
+- void AddHead(const TYPE& x){push_front(x);}
++ void AddTail(const TYPE& x){this->push_back(x);}
++ void AddHead(const TYPE& x){this->push_front(x);}
+ void RemoveHead() {this->pop_front();}
+ void RemoveTail() {this->pop_back();}
+ void RemoveAll() {this->clear();}
+@@ -131,7 +131,7 @@ public:
+ TYPE& GetPrev(iterator& pos) { return *pos--;}
+ TYPE GetPrev(iterator& pos) const{ return *pos--;}
+ iterator Find(TYPE& x) { return std::find(this->begin(), this->end(), x);}
+- void RemoveAt(iterator& pos) { erase(pos);}
++ void RemoveAt(iterator& pos) { this->erase(pos);}
+ bool IteratorValid(const_iterator &iter) const
+ {
+ return iter != this->end();
+@@ -167,11 +167,11 @@ public:
+ typedef typename std::map<KEY,VALUE, std::less<KEY>, std::allocator<std::pair<const KEY, VALUE> > >::value_type v_type;
+ void SetAt( KEY key, VALUE newValue)
+ {
+- insert(v_type(key, newValue));
++ this->insert(v_type(key, newValue));
+ }
+ ZBOOL RemoveKey( KEY key )
+ {
+- return erase(key) != 0;
++ return this->erase(key) != 0;
+ }
+ ZBOOL Lookup( KEY key, VALUE& rValue ) const
+ {
+diff --git a/zip/ZipArchive/stdafx.h b/zip/ZipArchive/stdafx.h
+index 9d96081..db54a41 100644
+--- a/zip/ZipArchive/stdafx.h
++++ b/zip/ZipArchive/stdafx.h
+@@ -67,7 +67,7 @@
+ #define ZIP_SIZE_TYPE DWORD
+ #define ZIP_ZLIB_TYPE int
+
+-#if !defined(_INTPTR_T_DEFINED) && !defined(__GNUC__)
++#if !defined(_INTPTR_T_DEFINED)
+ #if defined (__BORLANDC__)
+ #include <stdint.h>
+ #elif _MSC_VER <= 1200 || !defined _MSC_VER
+--
+cgit v0.9.0.2
More information about the arch-commits
mailing list