xmake-io / xmake-repo

📦 An official xmake package repository
https://xrepo.xmake.io
Apache License 2.0
669 stars 393 forks source link

jom distribution is not accessible from Russian Federation #5042

Open danil-kondr2016 opened 2 weeks ago

danil-kondr2016 commented 2 weeks ago

Xmake Version

2.9.4

Operating System Version and Architecture

Windows 11

Describe Bug

I'm creating the archiver project which requires OpenSSL for its build. OpenSSL has jom in its dependencies on Windows which can be accessed only from Qt servers. Since Qt has prohibited downloading from Russian Federation's IP addresses, I can't install OpenSSL into my project without using VPN or Tor.

Please include jom distribution into your mirror.

Expected Behavior

OpenSSL should be installed with its dependencies:

  -> nasm 2.16.01 [from:openssl3]
  -> strawberry-perl 5.32.0+1 [from:openssl3]
  -> jom 1.1.4 [private, from:openssl3]
  -> openssl3 3.3.1 [runtimes:"MT"]

Project Configuration

-- TODO replace with my IO
add_requires('openssl3')

add_defines("_FILE_OFFSET_BITS=64")

target("io")
        set_kind("static")
        add_files("src/io/*.c")
        add_headerfiles("include/(io/*.h)")
        add_includedirs("include", {public = true})

target("kcflib")
        set_kind("static")
        add_packages("openssl3")
        add_files("src/kcflib/*.c")
        add_headerfiles("include/(kcf/*.h)")
        add_includedirs("include", {public = true})
        add_rules("utils.install.cmake_importfiles")
        add_rules("utils.install.pkgconfig_importfiles")

Additional Information and Error Logs

PS C:\Users\Danila\kcf> xmake project -k compile_commands
checking for platform ... windows
checking for architecture ... x64
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.40.33811
updating repositories .. ok
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> nasm 2.16.01 [from:openssl3]
  -> strawberry-perl 5.32.0+1 [from:openssl3]
  -> jom 1.1.4 [private, from:openssl3]
  -> openssl3 3.3.1 [runtimes:"MT"]
please input: y (y/n/m)
y
  => download https://github.com/xmake-mirror/build-artifacts/releases/download/nasm-2.16.01/windows-x64-vc14.37.32822-632ea6d333c9481b9845516b90cbee69.7z .. ok
  => install nasm 2.16.01 .. ok
  => download https://download.qt.io/official_releases/jom/jom_1_1_4.zip .. failed

we can also download these packages manually:
  - https://download.qt.io/official_releases/jom/jom_1_1_4.zip
to the local search directories:
  - jom-1.1.4.zip, jom_1_1_4.zip
and we can run `xmake g --pkg_searchdirs=/xxx` to set the search directories.
  => download https://github.com/xmake-mirror/strawberry-perl/releases/download/5.32.0.1/strawberry-perl-5.32.0.1-64bit.zip .. failed
  => download http://strawberryperl.com/download/5.32.0.1/strawberry-perl-5.32.0.1-64bit.zip .. ok
  => install strawberry-perl 5.32.0+1 .. ok
ChrisCatCP commented 2 weeks ago

resolved #5043