[cmake-developers] [CMake 0014855]: Unpacking Qt 5.2.1 source distribution fails (ExternalProject_Add)

Mantis Bug Tracker mantis at public.kitware.com
Mon Mar 31 15:06:00 EDT 2014


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                                    
======================================================================



More information about the cmake-developers mailing list