Skip to content

[libxml2] v2.11.9 download fails on Windows due to Anubis bot protection #48035

@charlesgar

Description

@charlesgar

Library name

libxml2

New version number

2.11.9

Other information that may be useful (release notes, etc...)

Environment

  • OS: Windows 11
  • vcpkg sha1: ded511c
  • libxml2 version: v2.11.9

Description

When installing libxml2 v2.11.9 on Windows with vcpkg, the download of GNOME-libxml2-v2.11.9.tar.gz fails with a hash mismatch:

Downloading GNOME-libxml2-v2.11.9.tar.gz
Failed to download GNOME-libxml2-v2.11.9.tar.gz.

Manual download via browser or via curl works, but vcpkg fails:

  • By looking the content of the archive part, the root cause seems to be Anubis protection on GNOME GitLab.
  • vcpkg uses PowerShell (Invoke-WebRequest) to download files, which does not seems to pass the protection.
Invoke-WebRequest `
    -Uri "https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.11.9/libxml2-v2.11.9.tar.gz" `
    -OutFile "C:\vcpkg\downloads\GNOME-libxml2-v2.11.9.tar.gz.part" `
    -UseBasicParsing

I don't know why the problem has not been reported yet, today my only solution is to mirroring the port and the url.

Edit

Newer baseline b0772ba43046b07bb8c372e799f89ef8eed789ad seemed to have fixed it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:port-updateThe issue is with a library, which is requesting update new revision

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions