The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14855 
====================================================================== 
Reported By:                hansmi
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14855
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-03-31 15:06 EDT
Last Modified:              2014-03-31 15:06 EDT
====================================================================== 
Summary:                    Unpacking Qt 5.2.1 source distribution fails
(ExternalProject_Add)
Description: 
The Qt project offers their source code as a ZIP file for Windows systems[1].
CMake fails to extract the file with the error message
“archive_read_next_header(): Invalid central directory signature”[2] when
using it as an external project via ExternalProject_Add. Upstream libarchive
fixed an issue in this direction, which may be related:
<http://code.google.com/p/libarchive/issues/detail?id=257>.

[1]
http://download.qt-project.org/official_releases/qt/5.2/5.2.1/single/qt-everywhere-opensource-src-5.2.1.zip.mirrorlist
[2]
C:\build>mingw32-make -j4 qt5
-- Configuring done
-- Generating done
-- Build files have been written to: C:/build
[ 12%] Creating directories for 'qt5'
[ 25%] Performing download step (download, verify and extract) for 'qt5'
-- downloading...
    
src='http://download.qt-project.org/official_releases/qt/5.2/5.2.1/single/qt-everywhere-opensource-src-5.2.1.zip'
     dst='C:/build/qt5-download/qt-everywhere-opensource-src-5.2.1.zip'
     timeout='none'
-- downloading... done
-- verifying file...
     file='C:/build/qt5-download/qt-everywhere-opensource-src-5.2.1.zip'
-- verifying file... done
-- extracting...
     src='C:/build/qt5-download/qt-everywhere-opensource-src-5.2.1.zip'
     dst='C:/build/qt5-src'
-- extracting... [tar xfz]
CMake Error: Problem with archive_read_next_header(): Invalid central directory
signature
CMake Error: Problem extracting tar:
C:/build/qt5-download/qt-everywhere-opensource-src-5.2.1.zip
-- extracting... [error clean up]
[…]

Steps to Reproduce: 
include(ExternalProject)

ExternalProject_Add(qt5
  TMP_DIR qt5-tmp
  STAMP_DIR qt5-stamp
  DOWNLOAD_DIR qt5-download
  SOURCE_DIR qt5-src
  BINARY_DIR qt5-binary
  INSTALL_DIR qt5
  URL
"http://download.qt-project.org/official_releases/qt/5.2/5.2.1/single/qt-everywhere-opensource-src-5.2.1.zip";
  URL_MD5 7fea4e018220739251f9206d690076d0
  BUILD_IN_SOURCE 0
  )

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-03-31 15:06 hansmi         New Issue                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to