head 1.2; access; symbols pkgsrc-2014Q1:1.1.0.8 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.6 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.4 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.2 pkgsrc-2013Q2-base:1.1; locks; strict; comment @// @; 1.2 date 2014.05.14.04.35.20; author rodent; state dead; branches; next 1.1; commitid dFz6ZBNjMGAoFsAx; 1.1 date 2013.06.26.15.49.31; author joerg; state Exp; branches; next ; commitid Miud656iitEgK8Vw; desc @@ 1.2 log @Updated to latest release, 2.4.13, as requested by doc/TODO. Removed patches which were applied upstream or deprecated. USE_TOOLS+=groff to fix generation of a few .html files on OpenBSD. Depends on libgcrypt instead of openssl now. From ChangeLog: from 2.4.12 to 2.4.13 - adding initialization value for two variables to avoid inappropriate warning when compiling with -Wall option - reducing UNIX_PATH_MAX by the system when not defined from 108 to 104 bytes to accommodate BSD systems - fixing assignment operator of class criterium that was not returning any value as it should - removing useless boolean expression that always succeeds in logical AND expression - adding support for back-slash of quoting characters in DCF files - fixed compilation issues with clang / FreeBSD, Thanks to Neil Darlow's server ;-) - fixed compilation warning due to deprecated symbols in libgcrypt header files - replaced gnu make specific rules by legacy ones to avoid automake warning about them - removed old unused stuff from misc sub-directory - adding warning at compilation time if libgcrypt used is older than 1.6.0 - adding warning at execution time if hash computation is requested with slices greater than 256 Gio and ligbcrypt dynamically or statically linked is older than 1.6.0 - adding alternative methods in list_entry API class to return dates as number of seconds - fixed bug in hour-shift (-H option) when comparing dates from an old extracted catalogue (archive format 7 or older). - fixed documentation bug about the meaning of the compression ratio - fixed a display bug about the "compression flag" wrongly displayed for uncompressed files - fixed unhandled exception when giving non number argument to -1 option from 2.4.11 to 2.4.12 - for correctness fixed delete vs delete[] on vector of char (not incidence reported) - fixed out of range access in routine used to read very old archive format - fixed error in logical expression leading a sanity test to be useless - removed duplicated variable assignment - updated FAQ - fixed typo and spelling errors - fixed bug (reported by Torsten Bronger) in the escape layer leading libdar to wrongly reporting a file as corrupted at reading time - fixed bug in the sparse file detection mechanism that lead the minimum size hole detection to become a multiple of the default value or specified one. This implied a less efficient reduction of sparse files because smaller holes in files were ignored - fixed and updated man page about --go-into option - updated full-from-diff target in /etc/darrc default file - added a debug option in hash_file class (option only used from testing tools) to troubleshoot sha1/md5 hash problem on slices larger than (2**38)+63 bytes, bug reported by Mike Lenzen and understood by Yuriy Kaminskiy at libgcrypt. Note: This bug is still open due to an integer overflow in libgcrypt. - backported from current development code an additional and more simple way to read an archive using the libdar API. This API extension is not used by dar command-line tools for now. - Fixing installation of libdar header files on Darwin, where "DARwin" macros were not filtered out from the generated libdar header files. - Fixing self reported bug 'generic_file.cpp line 309' met while comparing an archive with a filesystem - Update code in order to compile with gcc-4.8.2 in g++11 mode (partial implementation and adaptation of Fabian Stanke's patch) - Fixing bug met while performing a verbose archive listing in sequential read mode - Added Ryan Schmidt's Patch to properly display status at end of ./configure script under BSD systems (in particular Mac OS X) - Updating configure.ac script to fix warning reported by autoconf when generating the ./configure script - Addressed portability problem with BSD systems that do not provide a -d option to the 'cp' command, preventing proper installation of the Doxygen documentation. Fix based on patch provided by Jan Gosmann. from 2.4.10 to 2.4.11 - Modified behavior of 'dar -h' and 'dar -V', both now return 0 as exist status instead of 1 (which means syntax error). - Fixed bug: -Q is now available with -V under the collapsed form -QV or -VQ - fixed typo in documentation - fixed memory leakage met when dar fails a merging operation because the resulting archive is specified in an directory that does not exist. - fixed bug met when isolating a differential backup in sequential read mode - fixed bug about slice file permission not taking care about umask variable when the --hash feature is used. - fixed performance issue when reading an archive over a pair of piles using dar_slave (possibly over ssh) when the archive makes use of escape marks and when no encryption is used - added target "full-from-diff" in /etc/darrc default file - fixed bug avoiding reading an truncated archive in direct access mode with the help of an external catalogue. - new and better implementation of archive extraction in sequential read mode - fixing bug (segfault) met when hitting CTRL-C while reading an archive in sequential mode - fixing libdar.pc for pkg-config for the cflags given to external applications - fixed memory allocation/desallocation mismatches (delete vs delete [] ) concerning four vector of chars. - fixed error in logical expression leading a sanity test to be useless @ text @$NetBSD: patch-src_dar__suite_dar__manager.cpp,v 1.1 2013/06/26 15:49:31 joerg Exp $ --- src/dar_suite/dar_manager.cpp.orig 2013-06-20 19:21:17.000000000 +0000 +++ src/dar_suite/dar_manager.cpp @@@@ -78,7 +78,7 @@@@ using namespace libdar; #define MISSING_ARG "Missing argument to -%c" #define INVALID_ARG "Invalid argument given to -%c (requires integer)" -enum operation { none_op, create, add, listing, del, chbase, where, options, dar, restore, used, files, stats, move, interactive, check, batch }; +enum operation { none_op, create, add, listing, del, chbase, where, options, dar, restore, used, files, stats, my_move, interactive, check, batch }; static S_I little_main(user_interaction & dialog, S_I argc, char *const argv[], const char **env); static bool command_line(user_interaction & dialog, @@@@ -183,7 +183,7 @@@@ S_I little_main(user_interaction & dialo case used: case files: case stats: - case move: + case my_move: case interactive: case check: case batch: @@@@ -386,7 +386,7 @@@@ static bool command_line(user_interactio case 'm': if(op != none_op) throw Erange("command_line", tools_printf(gettext(ONLY_ONCE), char(lu))); - op = move; + op = my_move; if(optarg == NULL) throw Erange("command_line", tools_printf(gettext(MISSING_ARG), char(lu))); num = tools_str2int(optarg); @@@@ -448,7 +448,7 @@@@ static bool command_line(user_interactio { try { - deci tmp = string(optarg); + libdar::deci tmp = string(optarg); date = tmp.computer(); } catch(Edeci & e) @@@@ -529,7 +529,7 @@@@ static bool command_line(user_interactio break; case options: break; - case move: + case my_move: if(rest.size() != 1) { dialog.warning(gettext("Missing argument to command line, aborting")); @@@@ -1068,7 +1068,7 @@@@ static void op_interactive(user_interact saved = false; break; case 'm': - input = dialog.get_string(gettext("Archive number to move: "), true); + input = dialog.get_string(gettext("Archive number to my_move: "), true); num = tools_str2int(input); input = dialog.get_string(gettext("In which position to insert this archive: "), true); num2 = tools_str2int(input); @@@@ -1298,7 +1298,7 @@@@ static void finalize(user_interaction & case where: case options: case dar: - case move: + case my_move: case batch: if(info_details) dialog.warning(gettext("Compressing and writing back database to file...")); @@@@ -1362,7 +1362,7 @@@@ static void action(user_interaction & di case stats: op_stats(dialog, dat, info_details); break; - case move: + case my_move: op_move(dialog, dat, num, num2, info_details); break; case interactive: @ 1.1 log @deci and move are part of a C++11 STL implementation. Explicitly include the namespace when using the former and rename the latter. @ text @d1 1 a1 1 $NetBSD$ @