Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,297
    • Issues 3,297
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Issues
  • #16741

Closed
Open
Created Mar 27, 2017 by MvdHurk@vanderhuContributor

Problem with archive_write_header(): Can't replace existing directory with non-directory

From CMake 3.6.3 until 3.8.0-RC3 unpacking a Java archive data (JAR) containing a directory reference it doesn't work:

CMake Error: Problem with archive_write_header(): Can't replace existing directory with non-directory CMake Error: Current file: test/ CMake Error: Problem extracting tar: ../test.zip

Where test.zip contains:

Archive: test.zip Length Date Time Name


    0  03-27-2017 20:21   test/
    0  03-27-2017 20:21   test/test2/
    0  03-27-2017 20:21   test/test2/testfile.txt
    0  03-27-2017 20:19   test/testfile.txt

This did work with 3.5.2 when executing before: cmake -E tar xzf test.zip and does work in CMake 3.6.3 and later when the file type is a Zip archive data instead.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
3.8.0
Milestone
3.8.0 (Past due)
Assign milestone
Time tracking
None
Due date
None