head 1.2; access; symbols pkgsrc-2014Q1:1.1.0.34 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.32 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.30 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.28 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.26 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.24 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.22 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.20 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.18 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.16 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.14 pkgsrc-2011Q3-base:1.1 pkgsrc-2011Q2:1.1.0.12 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.10 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.8 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.6 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.4 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.2 pkgsrc-2010Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2014.04.25.09.22.13; author wiz; state dead; branches; next 1.1; commitid qguiqaeyWkUkR2yx; 1.1 date 2010.02.21.15.07.40; author wiz; state Exp; branches; next ; desc @@ 1.2 log @Update to 0.6.5. 27 February 2014 Ike Devolder * release: 0.6.5 * fix blocksize calculation 25 February 2014 JCF Ploemen * lintian warning spelling fix 7 February 2014 Ike Devolder * add manfile for par2 29 January 2014 Jan van Haarst * README in Markdown 21 January 2014 Ike Devolder * add spelling fixes to cmdline output 18 January 2014 Jan van Haarst * fixed some spelling 6 January 2014 Ike Devolder * simplify FindFiles 4 January 2014 Ike Devolder * release: 0.6.4 * when directory is removed, recreate * add test to verify directory behaviour * add test with valgrind 16 December 2013 Ike Devolder * allow verification of files even with ducplicates in parfiles 15 December 2013 Ike Devolder * avoid adding of duplicates 14 December 2013 Ike Devolder * release: 0.6.3 * rework original tests so parallelisation is no issue * add test8 which makes sure the paths stored are relative * add test9 rename wrongly named file, passed to par2 result is correctly named files after repair 13 Decebmer 2013 Ike Devolder * move tests in separate folder, tests will be extended and otherwise eventually clutter the source too much 9 December 2013 Ike Devolder * rework parfilename handling + it fixes passing par filename without extension for repair 7 December 2013 Ike Devolder * release: 0.6.2 * basepath was not set correctly in restoring of 'old' way 5 December 2013 Ike Devolder * release: 0.6.1 * show usage / version / copyright on request * restore 'old' way of creating make -a optional 30 November 2013 Ike Devolder * release: 0.6.0 * test8: windows generated recovery files with subdir * windows recurses in . and .. which leads to deadlock so dont recurse in folders starting with . on windows * when recursion happens make sure windows can recover with unix created par2 files * fixed fc -> fd typo in windows part of diskfile * FTBFS fix on GNU/kFreeBSD (by Cyril Brulebois) * fixed non quiet output when creating par2 * Applied fix preventing a stack overflow (by Robert Schneider) 14 October 2013 Ike Devolder * Implemented recursion * NOTE: only for unix like systems * Windows can be done i guess but i have no access to windows machines 16 June 2013 Ike Devolder * Implemented initial subdir handling * added subdir tests 13 June 2013 Ike Devolder * Fixed failing testsuite 9 December 2012 Ike Devolder * rework purging of par(2) files because of possible segfaults and other inconsistencies 4 December 2012 Ike Devolder * fix purge option so it removes the par files when there is no repair needed * add purge option to verify so when there is no repair needed the par2 files are removed when the purge option is given 30 November 2012 Ike Devolder * add purge option remove backup files (mostly .1) and par files on request **USE AT YOUR OWN RISK * purge option available in par1 and par2 repair * fix memory leak when using par1 repair 30 January 2012 Ike Devolder * add inlining performance improvement of Gerard Putter * release: 0.5.4 19 January 2012 Ike Devolder * fix wrongly created par2 files in quiet mode this was related to the -q -qq fix * release: 0.5.3 17 January 2012 Ike Devolder * fix deadlock condition when repairing and filepath is longer than _MAX_PATH * increase _MAX_PATH, 255 is no longer of these days * release: 0.5.2 16 January 2012 Ike Devolder * fixup 0.5 version display * "par2 create" dumps core with -q or -qq, but non-quiet mode works fine FIXED * removed automake files * updated copyrights * release: 0.5.1 12 December 2011 Marcel Partap * Reanimate par2cmdline development on new github repository * Merge available distro patches since 2004 0.4 release back upstream * Release: Version 0.5 ;) 3 January 2005 Peter B Clements * par2creatorsourcefile.cpp: "offset" must be updated when computing file and block hashes even if progress is not being displayed. 23 June 2004 Peter B Clements * diskfile.cpp: Changed DiskFile::GetFileSize for WIN32 so that it uses _stati64() to get the size of a file. * par2creatorsourcefile.cpp: In UpdateHashes() the test that adjusts the length of the last block of a file when before updating the file hash was incorrect. 17 June 2004 Peter B Clements * par1repairer.cpp, par2repairer.cpp: Report empty files when scanning for data. @ text @$NetBSD: patch-ac,v 1.1 2010/02/21 15:07:40 wiz Exp $ http://bugs.gentoo.org/show_bug.cgi?id=137092 http://bugs.gentoo.org/attachment.cgi?id=91276&action=view --- md5.h.orig 2003-08-01 23:41:04.000000000 +0000 +++ md5.h @@@@ -20,6 +20,13 @@@@ #ifndef __MD5_H__ #define __MD5_H__ +#ifdef WIN32 +#pragma pack(push, 1) +#define PACKED +#else +#define PACKED __attribute__ ((packed)) +#endif + // This file defines the MD5Hash and MD5Context objects which are used // to compute and manipulate the MD5 Hash values for a block of data. @@@@ -35,12 +42,11 @@@@ // MD5 Hash value -class MD5Hash -{ -public: - // Constructor does not initialise the value - MD5Hash(void) {}; +struct MD5Hash; +ostream& operator<<(ostream &s, const MD5Hash &hash); +struct MD5Hash +{ // Comparison operators bool operator==(const MD5Hash &other) const; bool operator!=(const MD5Hash &other) const; @@@@ -54,13 +60,8 @@@@ public: friend ostream& operator<<(ostream &s, const MD5Hash &hash); string print(void) const; - // Copy and assignment - MD5Hash(const MD5Hash &other); - MD5Hash& operator=(const MD5Hash &other); - -public: u8 hash[16]; // 16 byte MD5 Hash value -}; +} PACKED; // Intermediate computation state @@@@ -144,16 +145,9 @@@@ inline bool MD5Hash::operator<=(const MD return !other.operator<(*this); } -inline MD5Hash::MD5Hash(const MD5Hash &other) -{ - memcpy(&hash, &other.hash, sizeof(hash)); -} - -inline MD5Hash& MD5Hash::operator=(const MD5Hash &other) -{ - memcpy(&hash, &other.hash, sizeof(hash)); - - return *this; -} +#ifdef WIN32 +#pragma pack(pop) +#endif +#undef PACKED #endif // __MD5_H__ @ 1.1 log @Add two patches for big-endian platforms from Fedora via gentoo and Nick Coleman in PR 40658. Bump PKGREVISION. Set LICENSE. @ text @d1 1 a1 1 $NetBSD$ @