pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/boxbackup-client fix fime namespace problems ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/954d5a328161
branches:  trunk
changeset: 590679:954d5a328161
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Mon Jul 18 19:06:02 2011 +0000

description:
fix fime namespace problems to make this compile with g++-4.5

diffstat:

 sysutils/boxbackup-client/Makefile         |   3 +-
 sysutils/boxbackup-client/distinfo         |  12 ++++-
 sysutils/boxbackup-client/patches/patch-aa |  12 ++++
 sysutils/boxbackup-client/patches/patch-ab |  12 ++++
 sysutils/boxbackup-client/patches/patch-ac |  76 ++++++++++++++++++++++++++++++
 sysutils/boxbackup-client/patches/patch-ad |  13 +++++
 sysutils/boxbackup-client/patches/patch-ae |  12 ++++
 sysutils/boxbackup-client/patches/patch-af |  13 +++++
 sysutils/boxbackup-client/patches/patch-ag |  13 +++++
 sysutils/boxbackup-client/patches/patch-ah |  12 ++++
 sysutils/boxbackup-client/patches/patch-ai |  13 +++++
 sysutils/boxbackup-client/patches/patch-aj |  12 ++++
 12 files changed, 201 insertions(+), 2 deletions(-)

diffs (263 lines):

diff -r f0ec9fd31430 -r 954d5a328161 sysutils/boxbackup-client/Makefile
--- a/sysutils/boxbackup-client/Makefile        Mon Jul 18 17:06:42 2011 +0000
+++ b/sysutils/boxbackup-client/Makefile        Mon Jul 18 19:06:02 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2010/11/02 21:14:23 shattered Exp $
+# $NetBSD: Makefile,v 1.6 2011/07/18 19:06:02 drochner Exp $
 #
 
 DISTNAME=      boxbackup-0.10
@@ -32,4 +32,5 @@
 
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
+#.include "../../devel/readline/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r f0ec9fd31430 -r 954d5a328161 sysutils/boxbackup-client/distinfo
--- a/sysutils/boxbackup-client/distinfo        Mon Jul 18 17:06:42 2011 +0000
+++ b/sysutils/boxbackup-client/distinfo        Mon Jul 18 19:06:02 2011 +0000
@@ -1,5 +1,15 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/06/21 15:05:13 drochner Exp $
+$NetBSD: distinfo,v 1.2 2011/07/18 19:06:02 drochner Exp $
 
 SHA1 (boxbackup-0.10.tgz) = 60bee707c6bb59f471546ae83ad0b89625228ded
 RMD160 (boxbackup-0.10.tgz) = 26f906f37a3b095026ddf12c9284e16515ceb752
 Size (boxbackup-0.10.tgz) = 842450 bytes
+SHA1 (patch-aa) = 65a0144403f79858bcfb4d66d7186cda26f63078
+SHA1 (patch-ab) = dfa44b4a6ad7b016794edc666b8a7e8fa9808af3
+SHA1 (patch-ac) = ddd8e76ad509901f067f63352323a22ce03f4b10
+SHA1 (patch-ad) = 96acb9c93f082078d9641fc32ac6865b99915028
+SHA1 (patch-ae) = f757fe795f9a82c74928b75eb53e9ee9093bcd34
+SHA1 (patch-af) = 2268c52473c12bd31b0bd1cf60849446d61b00a9
+SHA1 (patch-ag) = 9db7ff785d78fac5318c9b6f91aa2e42f1debf66
+SHA1 (patch-ah) = f010964a4d06a8f724fdf3695e8e854d845c6446
+SHA1 (patch-ai) = 106c5b57765e203b7a912e5c20341004ae4d6b67
+SHA1 (patch-aj) = 7b413d31d711492edad876d87897ded2fabde0d3
diff -r f0ec9fd31430 -r 954d5a328161 sysutils/boxbackup-client/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/boxbackup-client/patches/patch-aa        Mon Jul 18 19:06:02 2011 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1 2011/07/18 19:06:02 drochner Exp $
+
+--- lib/common/Configuration.cpp.orig  2006-02-23 20:47:35.000000000 +0000
++++ lib/common/Configuration.cpp
+@@ -49,6 +49,7 @@
+ 
+ #include <stdlib.h>
+ #include <limits.h>
++#include <string.h>
+ 
+ #include "Configuration.h"
+ #include "CommonException.h"
diff -r f0ec9fd31430 -r 954d5a328161 sysutils/boxbackup-client/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/boxbackup-client/patches/patch-ab        Mon Jul 18 19:06:02 2011 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1 2011/07/18 19:06:02 drochner Exp $
+
+--- lib/common/WaitForEvent.cpp.orig   2006-02-23 20:47:35.000000000 +0000
++++ lib/common/WaitForEvent.cpp
+@@ -53,6 +53,7 @@
+ 
+ #include <errno.h>
+ #include <string.h>
++#include <stdlib.h>
+ 
+ #include "WaitForEvent.h"
+ 
diff -r f0ec9fd31430 -r 954d5a328161 sysutils/boxbackup-client/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/boxbackup-client/patches/patch-ac        Mon Jul 18 19:06:02 2011 +0000
@@ -0,0 +1,76 @@
+$NetBSD: patch-ac,v 1.1 2011/07/18 19:06:02 drochner Exp $
+
+--- lib/backupclient/BackupClientFileAttributes.cpp.orig       2006-02-23 20:47:37.000000000 +0000
++++ lib/backupclient/BackupClientFileAttributes.cpp
+@@ -481,7 +481,7 @@ void BackupClientFileAttributes::FillAtt
+       char* buffer = static_cast<char*>(outputBlock.GetBuffer());
+ 
+       // Add the path name for the symbolic link, and add 0 termination
+-      std::memcpy(buffer+oldSize, linkedTo, linkedToSize);
++      ::memcpy(buffer+oldSize, linkedTo, linkedToSize);
+       buffer[oldSize+linkedToSize] = '\0';
+ }
+ #endif
+@@ -549,9 +549,9 @@ void BackupClientFileAttributes::FillExt
+ 
+                               // Store length and text for attibute name
+                               u_int16_t keyLength = htons(attrKey.size()+1);
+-                              std::memcpy(buffer+xattrSize, &keyLength, sizeof(u_int16_t));
++                              ::memcpy(buffer+xattrSize, &keyLength, sizeof(u_int16_t));
+                               xattrSize += sizeof(u_int16_t);
+-                              std::memcpy(buffer+xattrSize, attrKey.c_str(), attrKey.size()+1);
++                              ::memcpy(buffer+xattrSize, attrKey.c_str(), attrKey.size()+1);
+                               xattrSize += attrKey.size()+1;
+ 
+                               // Leave space for value size
+@@ -584,12 +584,12 @@ void BackupClientFileAttributes::FillExt
+ 
+                               // Fill in value size
+                               u_int32_t valueLength = htonl(valueSize);
+-                              std::memcpy(buffer+valueSizeOffset, &valueLength, sizeof(u_int32_t));
++                              ::memcpy(buffer+valueSizeOffset, &valueLength, sizeof(u_int32_t));
+                       }
+ 
+                       // Fill in attribute block size
+                       u_int32_t xattrBlockLength = htonl(xattrSize-xattrBlockSizeOffset-sizeof(u_int32_t));
+-                      std::memcpy(buffer+xattrBlockSizeOffset, &xattrBlockLength, sizeof(u_int32_t));
++                      ::memcpy(buffer+xattrBlockSizeOffset, &xattrBlockLength, sizeof(u_int32_t));
+ 
+                       outputBlock.ResizeBlock(xattrSize);
+               }
+@@ -676,7 +676,7 @@ void BackupClientFileAttributes::WriteAt
+               }
+ #endif
+ 
+-              xattrOffset += std::strlen(reinterpret_cast<char*>(pattr+1))+1;
++              xattrOffset += ::strlen(reinterpret_cast<char*>(pattr+1))+1;
+       }
+       
+       // If working as root, set user IDs
+@@ -817,7 +817,7 @@ void BackupClientFileAttributes::WriteEx
+       const char* buffer = static_cast<char*>(mpClearAttributes->GetBuffer());
+ 
+       u_int32_t xattrBlockLength = 0;
+-      std::memcpy(&xattrBlockLength, buffer+xattrOffset, sizeof(u_int32_t));
++      ::memcpy(&xattrBlockLength, buffer+xattrOffset, sizeof(u_int32_t));
+       int xattrBlockSize = ntohl(xattrBlockLength);
+       xattrOffset += sizeof(u_int32_t);
+ 
+@@ -831,7 +831,7 @@ void BackupClientFileAttributes::WriteEx
+       while(xattrOffset<xattrEnd)
+       {
+               u_int16_t keyLength = 0;
+-              std::memcpy(&keyLength, buffer+xattrOffset, sizeof(u_int16_t));
++              ::memcpy(&keyLength, buffer+xattrOffset, sizeof(u_int16_t));
+               int keySize = ntohs(keyLength);
+               xattrOffset += sizeof(u_int16_t);
+ 
+@@ -839,7 +839,7 @@ void BackupClientFileAttributes::WriteEx
+               xattrOffset += keySize;
+ 
+               u_int32_t valueLength = 0;
+-              std::memcpy(&valueLength, buffer+xattrOffset, sizeof(u_int32_t));
++              ::memcpy(&valueLength, buffer+xattrOffset, sizeof(u_int32_t));
+               int valueSize = ntohl(valueLength);
+               xattrOffset += sizeof(u_int32_t);
+ 
diff -r f0ec9fd31430 -r 954d5a328161 sysutils/boxbackup-client/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/boxbackup-client/patches/patch-ad        Mon Jul 18 19:06:02 2011 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2011/07/18 19:06:02 drochner Exp $
+
+--- lib/backupclient/BackupStoreFile.h.orig    2006-02-23 20:47:37.000000000 +0000
++++ lib/backupclient/BackupStoreFile.h
+@@ -53,6 +53,8 @@
+ #include "BackupStoreFilename.h"
+ 
+ #include <memory>
++#include <stdlib.h>
++#include <string.h>
+ 
+ typedef struct 
+ {
diff -r f0ec9fd31430 -r 954d5a328161 sysutils/boxbackup-client/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/boxbackup-client/patches/patch-ae        Mon Jul 18 19:06:02 2011 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ae,v 1.1 2011/07/18 19:06:02 drochner Exp $
+
+--- bin/bbackupd/bbackupd.cpp.orig     2006-02-23 20:47:37.000000000 +0000
++++ bin/bbackupd/bbackupd.cpp
+@@ -59,6 +59,7 @@
+ 
+       extern Win32BackupService gDaemonService;
+ #endif
++#include <string.h>
+ 
+ int main(int argc, const char *argv[])
+ {
diff -r f0ec9fd31430 -r 954d5a328161 sysutils/boxbackup-client/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/boxbackup-client/patches/patch-af        Mon Jul 18 19:06:02 2011 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2011/07/18 19:06:02 drochner Exp $
+
+--- bin/bbackupquery/bbackupquery.cpp.orig     2006-02-23 20:47:38.000000000 +0000
++++ bin/bbackupquery/bbackupquery.cpp
+@@ -52,6 +52,8 @@
+ #endif
+ #include <stdio.h>
+ #include <sys/types.h>
++#include <string.h>
++#include <stdlib.h>
+ #ifdef HAVE_LIBREADLINE
+       #ifdef HAVE_READLINE_READLINE_H
+               #include <readline/readline.h>
diff -r f0ec9fd31430 -r 954d5a328161 sysutils/boxbackup-client/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/boxbackup-client/patches/patch-ag        Mon Jul 18 19:06:02 2011 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ag,v 1.1 2011/07/18 19:06:02 drochner Exp $
+
+--- bin/bbackupctl/bbackupctl.cpp.orig 2006-02-23 20:47:38.000000000 +0000
++++ bin/bbackupctl/bbackupctl.cpp
+@@ -52,6 +52,8 @@
+ #ifdef HAVE_UNISTD_H
+       #include <unistd.h>
+ #endif
++#include <string.h>
++#include <stdlib.h>
+ 
+ #include "MainHelper.h"
+ #include "BoxPortsAndFiles.h"
diff -r f0ec9fd31430 -r 954d5a328161 sysutils/boxbackup-client/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/boxbackup-client/patches/patch-ah        Mon Jul 18 19:06:02 2011 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ah,v 1.1 2011/07/18 19:06:02 drochner Exp $
+
+--- lib/raidfile/RaidFileRead.cpp.orig 2006-02-23 20:47:37.000000000 +0000
++++ lib/raidfile/RaidFileRead.cpp
+@@ -61,6 +61,7 @@
+ #include <string.h>
+ #include <memory>
+ #include <map>
++#include <stdlib.h>
+ 
+ #include "RaidFileRead.h"
+ #include "RaidFileException.h"
diff -r f0ec9fd31430 -r 954d5a328161 sysutils/boxbackup-client/patches/patch-ai
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/boxbackup-client/patches/patch-ai        Mon Jul 18 19:06:02 2011 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ai,v 1.1 2011/07/18 19:06:02 drochner Exp $
+
+--- bin/bbstored/bbstored.cpp.orig     2006-02-23 20:47:37.000000000 +0000
++++ bin/bbstored/bbstored.cpp
+@@ -51,6 +51,8 @@
+ 
+ #include "MemLeakFindOn.h"
+ 
++#include <string.h>
++
+ int main(int argc, const char *argv[])
+ {
+       MAINHELPER_START
diff -r f0ec9fd31430 -r 954d5a328161 sysutils/boxbackup-client/patches/patch-aj
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/boxbackup-client/patches/patch-aj        Mon Jul 18 19:06:02 2011 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-aj,v 1.1 2011/07/18 19:06:02 drochner Exp $
+
+--- bin/bbstoreaccounts/bbstoreaccounts.cpp.orig       2006-02-23 20:47:37.000000000 +0000
++++ bin/bbstoreaccounts/bbstoreaccounts.cpp
+@@ -53,6 +53,7 @@
+ #include <limits.h>
+ #include <vector>
+ #include <algorithm>
++#include <string.h>
+ 
+ #include "BoxPortsAndFiles.h"
+ #include "BackupStoreConfigVerify.h"



Home | Main Index | Thread Index | Old Index