I can't reproduce your issue here. (I had to modify your code because CURRENT_BINARY_DIR was missing the CMAKE_ at its beginning. And since I modified it anyhow, I added SHOW_PROGRESS and made min req'd be 2.8.3...)<br>
<br>Are you sure you're using 2.8.3 when you see the problem?<br><br>Can you repro this on another windows machine? (Mine is a Windows 7 x64, up to date with updates, running VS 2010 and CMake 2.8.3 in a normal Windows command prompt... Maybe there's something in your ENV that triggers this...?)<br>
<br><br>Thanks,<br>David<br><br><br>Here's a transcript of what I did (and the results, void of errors or<br>warnings ... although it does show an interesting variation on the<br>notion of "progress" ...):<br>
==============================================<br><br>C:\Users\davidcole\Dashboards\My Tests\b16>mkdir b3<br><br>C:\Users\davidcole\Dashboards\My Tests\b16>type CMakeLists.txt<br>cmake_minimum_required(VERSION 2.8.3)<br>
set(url <a href="http://sourceforge.net/projects/docbook/files/docbook-xsl/1.75.2/docbook-xsl-1.75.2.tar.bz2/download">http://sourceforge.net/projects/docbook/files/docbook-xsl/1.75.2/docbook-xsl-1.75.2.tar.bz2/download</a>)<br>
set(archive ${CMAKE_CURRENT_BINARY_DIR}/archive.tar.bz2)<br>file(DOWNLOAD ${url} ${archive}<br> SHOW_PROGRESS<br> EXPECTED_MD5 0c76a58a8e6cb5ab49f819e79917308f)<br>execute_process(COMMAND ${CMAKE_COMMAND} -E tar xfz ${archive})<br>
<br>C:\Users\davidcole\Dashboards\My Tests\b16>cd b3<br><br>C:\Users\davidcole\Dashboards\My Tests\b16\b3>"C:\Users\davidcole\Dashboards\Support\cmake-2.8.3\bin\cmake.exe" --version<br>cmake version 2.8.3<br>
<br>C:\Users\davidcole\Dashboards\My Tests\b16\b3>"C:\Users\davidcole\Dashboards\Support\cmake-2.8.3\bin\cmake.exe" ..<br>-- Building for: Visual Studio 10<br>-- Check for working C compiler using: Visual Studio 10<br>
-- Check for working C compiler using: Visual Studio 10 -- works<br>-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info - done<br>-- Check for working CXX compiler using: Visual Studio 10<br>-- Check for working CXX compiler using: Visual Studio 10 -- works<br>
-- Detecting CXX compiler ABI info<br>-- Detecting CXX compiler ABI info - done<br>-- [download 0% complete]<br>-- [download 100% complete]<br>-- [download 0% complete]<br>-- [download 100% complete]<br>-- Configuring done<br>
-- Generating done<br>-- Build files have been written to: C:/Users/davidcole/Dashboards/My Tests/b16/b3<br><br>C:\Users\davidcole\Dashboards\My Tests\b16\b3>dir docbook-xsl-1.75.2<br> Volume in drive C is OS<br> Volume Serial Number is 9237-E092<br>
<br> Directory of C:\Users\davidcole\Dashboards\My Tests\b16\b3\docbook-xsl-1.75.2<br><br>01/28/2011 01:31 PM <DIR> .<br>01/28/2011 01:31 PM <DIR> ..<br>07/24/2007 01:40 PM 2,305 .CatalogManager.properties.example<br>
07/21/2009 12:40 PM 1,693 .cshrc.incl<br>07/21/2009 12:40 PM 217 .emacs.el<br>07/21/2009 12:40 PM 1,818 .profile.incl<br>07/21/2009 12:40 PM 54 .urilist<br>05/11/2008 05:27 PM 143 AUTHORS<br>
07/24/2007 01:43 PM 578 BUGS<br>07/21/2009 12:40 PM 606 catalog.xml<br>01/28/2011 01:31 PM <DIR> common<br>05/22/2008 11:11 AM 1,960 COPYING<br>01/28/2011 01:31 PM <DIR> doc<br>
07/21/2009 12:49 PM 2,236,416 DOCBOOK-BUILD.LOG<br>01/28/2011 01:31 PM <DIR> docsrc<br>01/28/2011 01:31 PM <DIR> eclipse<br>01/28/2011 01:31 PM <DIR> epub<br>
01/28/2011 01:31 PM <DIR> extensions<br>01/28/2011 01:31 PM <DIR> fo<br>01/28/2011 01:31 PM <DIR> highlighting<br>01/28/2011 01:31 PM <DIR> html<br>
01/28/2011 01:31 PM <DIR> htmlhelp<br>01/28/2011 01:31 PM <DIR> images<br>07/24/2007 01:43 PM 3,375 INSTALL<br>07/21/2009 12:40 PM 28,701 install.sh<br>01/28/2011 01:31 PM <DIR> javahelp<br>
01/28/2011 01:31 PM <DIR> lib<br>07/13/2009 03:18 PM 3,795 Makefile<br>01/28/2011 01:31 PM <DIR> manpages<br>07/21/2009 12:49 PM 3,809 NEWS<br>07/21/2009 12:49 PM 11,475 NEWS.html<br>
07/21/2009 12:48 PM 7,648 NEWS.xml<br>01/28/2011 01:31 PM <DIR> params<br>01/28/2011 01:31 PM <DIR> profiling<br>07/20/2009 08:12 PM 6,535 README<br>07/21/2009 12:49 PM 626,192 RELEASE-NOTES.html<br>
07/21/2009 12:49 PM 290,510 RELEASE-NOTES.txt<br>07/21/2009 09:22 AM 487,507 RELEASE-NOTES.xml<br>01/28/2011 01:31 PM <DIR> roundtrip<br>01/28/2011 01:31 PM <DIR> slides<br>
01/28/2011 01:31 PM <DIR> template<br>07/21/2009 12:40 PM 76 test.sh<br>01/28/2011 01:31 PM <DIR> tests<br>07/24/2007 01:43 PM 679 TODO<br>01/28/2011 01:31 PM <DIR> tools<br>
07/21/2009 12:40 PM 175 uninstall.sh<br>07/21/2009 09:05 AM 4,504 VERSION<br>01/28/2011 01:31 PM <DIR> website<br>01/28/2011 01:31 PM <DIR> xhtml<br>01/28/2011 01:31 PM <DIR> xhtml-1_1<br>
24 File(s) 3,720,771 bytes<br> 26 Dir(s) many, many bytes free<br><br><br>On Thu, Jan 27, 2011 at 2:34 PM, Daniel Pfeifer <<a href="mailto:daniel@pfeifer-mail.de">daniel@pfeifer-mail.de</a>> wrote:<br>
><br>> Am Donnerstag, den 27.01.2011, 12:48 +0100 schrieb David Cole<br>> <<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>>:<br>>><br>>> On Thu, Jan 27, 2011 at 12:45 PM, Daniel Pfeifer<br>
>> <<a href="mailto:daniel@pfeifer-mail.de">daniel@pfeifer-mail.de</a>> wrote:<br>>>><br>>>> Am Donnerstag, den 27.01.2011, 11:42 +0100 schrieb David Cole<br>>>> <<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>>:<br>
>>>><br>>>>> Are the time stamps actually restored on extract (when extracting with<br>>>>> CMake and ignoring the warning output)? Or do all files have "time of<br>>>>> extraction" as their modified times?<br>
>>><br>>>> No, the time stamps are not restored: All files have the current time as<br>>>> their last modified time.<br>>>> When extracting the same file with 7-Zip, the timestamps are correctly<br>
>>> restored.<br>>>><br>>>> CMake successfully restores the timestamps when extracting .zip files,<br>>>> but<br>>>> fails with .tar.bz2 and .tar.gz archives.<br>>>><br>
>>>> On Thu, Jan 27, 2011 at 11:37 AM, Daniel Pfeifer<br>>>>> <<a href="mailto:daniel@pfeifer-mail.de">daniel@pfeifer-mail.de</a>> wrote:<br>>>>>><br>>>>>> Hi David,<br>
>>>>><br>>>>>> Am Mittwoch, den 26.01.2011, 08:14 -0500 schrieb David Cole:<br>>>>>>><br>>>>>>> >From the libarchive source code, it looks like this message appears<br>
>>>>>> as<br>>>>>>> a "warning" and returns ARCHIVE_WARN.<br>>>>>>><br>>>>>>> CMake spits out an error message whenever a libarchive function<br>
>>>>>> returns anything other than ARCHIVE_OK.<br>>>>>>><br>>>>>>> Perhaps we should detect ARCHIVE_WARN and only emit a "CMake Warning"<br>>>>>>> message rather than a "CMake Error".<br>
>>>>><br>>>>>> Yes, that would be better.<br>>>>>><br>>>>>>> As to what could be causing it in the first place... perhaps there's a<br>>>>>>> permissions problem of some sort? Do you have full write permissions<br>
>>>>>> in the directory where you are extracting? Do the files actually<br>>>>>>> appear afterwards even though you're seeing these messages? Is it a<br>>>>>>> "deep" path (long name)?<br>
>>>>><br>>>>>> I am working with an administrator account on Windows, so I don't think<br>>>>>> that permissions cause the problem. The paths are quite shallow (direct<br>>>>>> subdirectory of 'C:\').<br>
>>>>> The files get extracted just fine. Maybe this warning can be safely<br>>>>>> ignored. It is just annoying that it produces so much output.<br>>>>>><br>>>>>>> If you untar the same archive.tgz file with another tar tool, do you<br>
>>>>>> get any warnings or errors from it?<br>>>>>><br>>>>>> Works without any warnings. But maybe the warnings are just not<br>>>>>> displayed...<br>>>>>><br>
>>>>> cheers, Daniel<br>>>>>><br>>>>>> _______________________________________________<br>>>>>> Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
>>>>><br>>>>>> Visit other Kitware open-source projects at<br>>>>>> <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
>>>>><br>>>>>> Please keep messages on-topic and check the CMake FAQ at:<br>>>>>> <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br>>>>>><br>
>>>>> Follow this link to subscribe/unsubscribe:<br>>>>>> <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br>>>>>><br>>>><br>
>>><br>>><br>>> So that's a real problem for people who require time-stamp<br>>> restoration.... I think we should leave the CMake output as an error<br>>> then.<br>>><br>>> We've not had any reports of this from anyone else, though, so the<br>
>> question is still: what causes this in your case?<br>>><br>>> Can you send us a *.tar.gz file that demonstrates this problem?<br>><br>> I can reproduce the problem with the following CMake code:<br>
><br>> cmake_minimum_required(VERSION 2.8)<br>> set(url<br>> <a href="http://sourceforge.net/projects/docbook/files/docbook-xsl/1.75.2/docbook-xsl-1.75.2.tar.bz2/download">http://sourceforge.net/projects/docbook/files/docbook-xsl/1.75.2/docbook-xsl-1.75.2.tar.bz2/download</a>)<br>
> set(archive ${CURRENT_BINARY_DIR}/archive.tar.bz2)<br>> file(DOWNLOAD ${url} ${archive} EXPECTED_MD5<br>> 0c76a58a8e6cb5ab49f819e79917308f)<br>> execute_process(COMMAND ${CMAKE_COMMAND} -E tar xfz ${archive})<br>
><br>>> Where did the tar.gz file come from?<br>><br>> When I download the file with my browser and call the cmake -E in a terminal<br>> I get the same errors.<br>><br>>> p.s. -- and if it's ok with you, let's keep this discussion on the<br>
>> CMake list for archiving and later-google-searching... (I'll wait for<br>>> your next reply before putting this one up on the list...)<br>><br>> Absolutely! I did not send my last message off-list on purpose; I just<br>
> forgot to double check the reply-address.<br>> A propos: Why is the reply address of the cmake mailing list not<br>> <a href="mailto:cmake@cmake.org">cmake@cmake.org</a> per default?<br>><br>> cheers, Daniel<br>
> _______________________________________________<br>> Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>><br>> Visit other Kitware open-source projects at<br>> <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
><br>> Please keep messages on-topic and check the CMake FAQ at:<br>> <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br>><br>> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br>><br><br>