Skip to content

qt5-tools and qt5-declarative are not caching correctly.  #22873

@restitux

Description

@restitux

Describe the bug
Binary cache files for qt5-tools and qt5-declarative aren't being created correctly.

Environment

  • OS: Debian Bullseye inside a Docker container
    Cache directory is a folder bind mounted into the container
  • Compiler:
root@610d4497f851:~# gcc --version
gcc (Debian 10.2.1-6) 10.2.1 20210110
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

To Reproduce
Steps to reproduce the behavior:
Build the packages.
Rebuild and watch the cache fail to load.

Expected behavior
A clear and concise description of what you expected to happen.

Failure logs

qt5-tools

[DEBUG] system(cd /root/vcpkg/packages/qt5-tools_x64-linux && zip --quiet -y -r /root/vcpkg/buildtrees/qt5-tools/x64-linux.zip *)
[DEBUG] cmd_execute() returned 0 after 308600459 us
Stored binary cache: /root/.cache/vcpkg/archives/c8/c834a903ae721a3c8c66cd00277a7db24aae6ce19dc2ce6468aaaa0eec356532.zip
% ls -lah /mnt/builds/working-data/mumble-static/cache/vcpkg/archives/c8/c834a903ae721a3c8c66cd00277a7db24aae6ce19dc2ce6468aaaa0eec356532.zip
-rw-r--r-- 1 root root 2.0G Jan 31 00:36 /mnt/builds/working-data/mumble-static/cache/vcpkg/archives/c8/c834a903ae721a3c8c66cd00277a7db24aae6ce19dc2ce6468aaaa0eec356532.zip
% unzip /mnt/builds/working-data/mumble-static/cache/vcpkg/archives/c8/c834a903ae721a3c8c66cd00277a7db24aae6ce19dc2ce6468aaaa0eec356532.zip                                                            [0]
Archive:  /mnt/builds/working-data/mumble-static/cache/vcpkg/archives/c8/c834a903ae721a3c8c66cd00277a7db24aae6ce19dc2ce6468aaaa0eec356532.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /mnt/builds/working-data/mumble-static/cache/vcpkg/archives/c8/c834a903ae721a3c8c66cd00277a7db24aae6ce19dc2ce6468aaaa0eec356532.zip or
        /mnt/builds/working-data/mumble-static/cache/vcpkg/archives/c8/c834a903ae721a3c8c66cd00277a7db24aae6ce19dc2ce6468aaaa0eec356532.zip.zip, and cannot find /mnt/builds/working-data/mumble-static/cache/vcpkg/archives/c8/c834a903ae721a3c8c66cd00277a7db24aae6ce19dc2ce6468aaaa0eec356532.zip.ZIP, period.
[DEBUG] Failed to decompress archive package: /root/.cache/vcpkg/archives/c8/c834a903ae721a3c8c66cd00277a7db24aae6ce19dc2ce6468aaaa0eec356532.zip

qt5-declarative

[DEBUG] system(cd /root/vcpkg/packages/qt5-declarative_x64-linux && zip --quiet -y -r /root/vcpkg/buildtrees/qt5-declarative/x64-linux.zip *)
[DEBUG] cmd_execute() returned 0 after 262137796 us
Stored binary cache: /root/.cache/vcpkg/archives/f7/f7f268ee1852eda131908ff208ce869ab2e83d1f3f2cc061ec7b9329257085e9.zip
% ls -lah /mnt/builds/working-data/mumble-static/cache/vcpkg/archives/f7/f7f268ee1852eda131908ff208ce869ab2e83d1f3f2cc061ec7b9329257085e9.zip
-rw-r--r-- 1 root root 2.0G Jan 30 23:07 /mnt/builds/working-data/mumble-static/cache/vcpkg/archives/f7/f7f268ee1852eda131908ff208ce869ab2e83d1f3f2cc061ec7b9329257085e9.zip

% unzip /mnt/builds/working-data/mumble-static/cache/vcpkg/archives/f7/f7f268ee1852eda131908ff208ce869ab2e83d1f3f2cc061ec7b9329257085e9.zip                                                            [0]
Archive:  /mnt/builds/working-data/mumble-static/cache/vcpkg/archives/f7/f7f268ee1852eda131908ff208ce869ab2e83d1f3f2cc061ec7b9329257085e9.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /mnt/builds/working-data/mumble-static/cache/vcpkg/archives/f7/f7f268ee1852eda131908ff208ce869ab2e83d1f3f2cc061ec7b9329257085e9.zip or
        /mnt/builds/working-data/mumble-static/cache/vcpkg/archives/f7/f7f268ee1852eda131908ff208ce869ab2e83d1f3f2cc061ec7b9329257085e9.zip.zip, and cannot find /mnt/builds/working-data/mumble-static/cache/vcpkg/archives/f7/f7f268ee1852eda131908ff208ce869ab2e83d1f3f2cc061ec7b9329257085e9.zip.ZIP, period.
[DEBUG] Failed to decompress archive package: /root/.cache/vcpkg/archives/f7/f7f268ee1852eda131908ff208ce869ab2e83d1f3f2cc061ec7b9329257085e9.zip

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

category:vcpkg-bugThe issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions