Hello community, here is the log from the commit of package unrar for openSUSE:Factory:NonFree checked in at 2016-08-20 12:27:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old) and /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "unrar" Changes: -------- --- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes 2016-07-24 19:53:58.000000000 +0200 +++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2016-08-20 12:27:37.000000000 +0200 @@ -1,0 +2,18 @@ +Thu Aug 18 20:24:24 UTC 2016 - lazy.k...@opensuse.org + +- Update to 5.4.5. + * Based on final RAR 5.40. + * If RAR recovery volumes (.rev files) are present in the same + folder as usual RAR volumes, archive test command verifies .rev + contents after completing testing .rar files. + If you wish to test only .rev files without checking .rar + volumes, you can run: `unrar t arcname.part1.rev`. + * If -p switch is used without optional <pwd> parameter, a + password can be also set with file redirection or pipe. + * unrar treats 'arcname.partN' as 'arcname.partN.rar' if + 'arcname.partN' does not exist and 'arcname.part#.rar' exists. + For example, it is allowed to run: + `unrar x arcname.part01` to start extraction from + 'arcname.part01.rar'. + +------------------------------------------------------------------- Old: ---- unrarsrc-5.4.3.tar.gz New: ---- unrarsrc-5.4.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ unrar.spec ++++++ --- /var/tmp/diff_new_pack.gtP5tt/_old 2016-08-20 12:27:39.000000000 +0200 +++ /var/tmp/diff_new_pack.gtP5tt/_new 2016-08-20 12:27:39.000000000 +0200 @@ -18,10 +18,10 @@ # majorversion should match the major version number. %define majorversion 5 -%define libsuffix 5_4_3 +%define libsuffix 5_4_5 Name: unrar -Version: 5.4.3 +Version: 5.4.5 Release: 0 Summary: A program to extract, test, and view RAR archives License: SUSE-NonFree ++++++ unrarsrc-5.4.3.tar.gz -> unrarsrc-5.4.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc --- old/unrar/dll.rc 2016-07-21 10:54:58.000000000 +0200 +++ new/unrar/dll.rc 2016-08-14 21:14:25.000000000 +0200 @@ -2,8 +2,8 @@ #include <commctrl.h> VS_VERSION_INFO VERSIONINFO -FILEVERSION 5, 40, 4, 2032 -PRODUCTVERSION 5, 40, 4, 2032 +FILEVERSION 5, 40, 100, 2057 +PRODUCTVERSION 5, 40, 100, 2057 FILEOS VOS__WINDOWS32 FILETYPE VFT_APP { @@ -14,8 +14,8 @@ VALUE "CompanyName", "Alexander Roshal\0" VALUE "ProductName", "RAR decompression library\0" VALUE "FileDescription", "RAR decompression library\0" - VALUE "FileVersion", "5.40.4\0" - VALUE "ProductVersion", "5.40.4\0" + VALUE "FileVersion", "5.40.0\0" + VALUE "ProductVersion", "5.40.0\0" VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2016\0" VALUE "OriginalFilename", "Unrar.dll\0" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unrar/getbits.cpp new/unrar/getbits.cpp --- old/unrar/getbits.cpp 2016-07-21 10:59:36.000000000 +0200 +++ new/unrar/getbits.cpp 2016-08-14 21:17:47.000000000 +0200 @@ -38,7 +38,7 @@ uint BitInput::fgetbits() { // Function wrapped version of inline getbits to save code size. - return(getbits()); + return getbits(); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unrar/getbits.hpp new/unrar/getbits.hpp --- old/unrar/getbits.hpp 2016-07-21 10:59:36.000000000 +0200 +++ new/unrar/getbits.hpp 2016-08-14 21:17:47.000000000 +0200 @@ -37,7 +37,7 @@ BitField|=(uint)InBuf[InAddr+1] << 8; BitField|=(uint)InBuf[InAddr+2]; BitField >>= (8-InBit); - return(BitField & 0xffff); + return BitField & 0xffff; } // Return 32 bits from current position in the buffer. @@ -50,7 +50,7 @@ BitField|=(uint)InBuf[InAddr+3]; BitField <<= InBit; BitField|=(uint)InBuf[InAddr+4] >> (8-InBit); - return(BitField & 0xffffffff); + return BitField & 0xffffffff; } void faddbits(uint Bits); @@ -60,7 +60,7 @@ // if buffer will be overflown. bool Overflow(uint IncPtr) { - return(InAddr+IncPtr>=MAX_SIZE); + return InAddr+IncPtr>=MAX_SIZE; } void SetExternalBuffer(byte *Buf); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unrar/timefn.cpp new/unrar/timefn.cpp --- old/unrar/timefn.cpp 2016-07-21 10:59:37.000000000 +0200 +++ new/unrar/timefn.cpp 2016-08-14 21:17:47.000000000 +0200 @@ -175,6 +175,51 @@ } +void RarTime::SetUTC(RarLocalTime *lt) // Input is in UTC format. +{ +#ifdef _WIN_ALL + SYSTEMTIME st; + st.wYear=lt->Year; + st.wMonth=lt->Month; + st.wDay=lt->Day; + st.wHour=lt->Hour; + st.wMinute=lt->Minute; + st.wSecond=lt->Second; + st.wMilliseconds=0; + st.wDayOfWeek=0; + FILETIME ft; + if (SystemTimeToFileTime(&st,&ft)) + *this=ft; + else + Reset(); +#else + struct tm t; + + t.tm_sec=lt->Second; + t.tm_min=lt->Minute; + t.tm_hour=lt->Hour; + t.tm_mday=lt->Day; + t.tm_mon=lt->Month-1; + t.tm_year=lt->Year-1900; + t.tm_isdst=-1; + + /* get the local time for Jan 2, 1900 00:00 UTC */ + time_t zero = 24*60*60L; + struct tm *timeptr = localtime( &zero ); + int gmtime_hours = timeptr->tm_hour; + + /* if the local time is the "day before" the UTC, subtract 24 hours + from the hours to get the UTC offset */ + if( timeptr->tm_mday < 2 ) + gmtime_hours -= 24; + + *this=mktime(&t)+gmtime_hours*3600; + itime+=lt->Reminder; + +#endif +} + + // Return the stored time as 64-bit number of 100-nanosecond intervals since // 01.01.1601. Actually we do not care since which date this time starts from // as long as this date is the same for GetRaw and SetRaw. We use the value diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unrar/timefn.hpp new/unrar/timefn.hpp --- old/unrar/timefn.hpp 2016-07-21 10:59:37.000000000 +0200 +++ new/unrar/timefn.hpp 2016-08-14 21:17:47.000000000 +0200 @@ -17,6 +17,8 @@ class RarTime { + public: + static const uint TICKS_PER_SECOND = 10000000; // Raw time items per second. private: // Internal FILETIME like time representation in 100 nanoseconds // since 01.01.1601. @@ -39,6 +41,7 @@ bool operator >= (RarTime &rt) {return itime>rt.itime || itime==rt.itime;} void GetLocal(RarLocalTime *lt); void SetLocal(RarLocalTime *lt); + void SetUTC(RarLocalTime *lt); uint64 GetRaw(); void SetRaw(uint64 RawTime); uint GetDos(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unrar/unpack50mt.cpp new/unrar/unpack50mt.cpp --- old/unrar/unpack50mt.cpp 2016-07-21 10:59:37.000000000 +0200 +++ new/unrar/unpack50mt.cpp 2016-08-14 21:17:47.000000000 +0200 @@ -275,6 +275,7 @@ } } } + UnpPtr&=MaxWinMask; // ProcessDecoded and maybe others can leave UnpPtr > MaxWinMask here. UnpWriteBuf(); BlockHeader=UnpThreadData[LastBlockNum].BlockHeader; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unrar/version.hpp new/unrar/version.hpp --- old/unrar/version.hpp 2016-07-21 10:59:37.000000000 +0200 +++ new/unrar/version.hpp 2016-08-14 21:17:47.000000000 +0200 @@ -1,6 +1,6 @@ #define RARVER_MAJOR 5 #define RARVER_MINOR 40 -#define RARVER_BETA 4 -#define RARVER_DAY 21 -#define RARVER_MONTH 7 +#define RARVER_BETA 0 +#define RARVER_DAY 15 +#define RARVER_MONTH 8 #define RARVER_YEAR 2016