Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jfrog.io closed the download URIs for Boost libraries #770

Open
twdragon opened this issue Jan 2, 2025 · 5 comments
Open

jfrog.io closed the download URIs for Boost libraries #770

twdragon opened this issue Jan 2, 2025 · 5 comments

Comments

@twdragon
Copy link

twdragon commented Jan 2, 2025

As jfrog.io extended URIs are now producing 409 Conflict error or redirected to the landing page, Hunter is not available anymore to download Boost sources from these URIs. Tests were performed from GARR eduroam network, so the issue will affect at least most of the European universities' networks.

Activating the link https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz
leads to a landing page:
img

It seem we need to implement a fallback to Sourceforge. To prove this possibility, I used this URI: https://altushost-swe.dl.sourceforge.net/project/boost/boost/1.86.0/boost_1_86_0.tar.gz

Test buildlog

-- [hunter] BOOST_ROOT: /home/twdragon/src/libp2p-cpp/build/hunter/_Base/3fb5849/abe67bf/251b1a7/Install (ver.: 1.86.0)
-- [hunter] Building Boost
loading initial cache file /home/twdragon/src/libp2p-cpp/build/hunter/_Base/3fb5849/abe67bf/251b1a7/cache.cmake
loading initial cache file /home/twdragon/src/libp2p-cpp/build/hunter/_Base/3fb5849/abe67bf/251b1a7/Build/Boost/args.cmake
-- The C compiler identification is Clang 15.0.0
-- The CXX compiler identification is Clang 15.0.0
-- Check for working C compiler: /util/llvm/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /util/llvm/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/twdragon/src/libp2p-cpp/build/hunter/_Base/3fb5849/abe67bf/251b1a7/Build/Boost/Build
[ 12%] Creating directories for 'Boost'
[ 25%] Performing download step (download, verify and extract) for 'Boost'
-- Downloading...
   dst='/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz'
-- [download 100% complete]
-- [download 9% complete]
-- [download 22% complete]
-- [download 34% complete]
-- [download 46% complete]
-- [download 58% complete]
-- [download 70% complete]
-- [download 82% complete]
-- [download 94% complete]
-- [download 100% complete]
-- verifying file...
       file='/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz'
-- SHA1 hash of
    /home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz
  does not match expected value
    expected: 'c248c60e2ce74c77cae3f678ede2f65491c4d815'
      actual: '7694f0b22c5217c4a12cd0fc1b4f74758b9d3fa3'
-- Hash mismatch, removing...
-- Using src='https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz'
-- [download 100% complete]
-- [download 9% complete]
-- [download 22% complete]
-- [download 34% complete]
-- [download 46% complete]
-- [download 58% complete]
-- [download 70% complete]
-- [download 82% complete]
-- [download 94% complete]
-- [download 100% complete]
-- verifying file...
       file='/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz'
-- SHA1 hash of
    /home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz
  does not match expected value
    expected: 'c248c60e2ce74c77cae3f678ede2f65491c4d815'
      actual: '7694f0b22c5217c4a12cd0fc1b4f74758b9d3fa3'
-- Hash mismatch, removing...
-- Using src='https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz'
-- [download 100% complete]
-- [download 9% complete]
-- [download 22% complete]
-- [download 34% complete]
-- [download 46% complete]
-- [download 58% complete]
-- [download 70% complete]
-- [download 82% complete]
-- [download 94% complete]
-- [download 100% complete]
-- verifying file...
       file='/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz'
-- SHA1 hash of
    /home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz
  does not match expected value
    expected: 'c248c60e2ce74c77cae3f678ede2f65491c4d815'
      actual: '7694f0b22c5217c4a12cd0fc1b4f74758b9d3fa3'
-- Hash mismatch, removing...
-- Using src='https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz'
-- [download 100% complete]
-- [download 9% complete]
-- [download 22% complete]
-- [download 34% complete]
-- [download 46% complete]
-- [download 58% complete]
-- [download 70% complete]
-- [download 82% complete]
-- [download 94% complete]
-- [download 100% complete]
-- verifying file...
       file='/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz'
-- SHA1 hash of
    /home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz
  does not match expected value
    expected: 'c248c60e2ce74c77cae3f678ede2f65491c4d815'
      actual: '7694f0b22c5217c4a12cd0fc1b4f74758b9d3fa3'
-- Hash mismatch, removing...
-- Using src='https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz'
-- [download 100% complete]
-- [download 9% complete]
-- [download 22% complete]
-- [download 34% complete]
-- [download 46% complete]
-- [download 58% complete]
-- [download 70% complete]
-- [download 82% complete]
-- [download 94% complete]
-- [download 100% complete]
-- verifying file...
       file='/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz'
-- SHA1 hash of
    /home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz
  does not match expected value
    expected: 'c248c60e2ce74c77cae3f678ede2f65491c4d815'
      actual: '7694f0b22c5217c4a12cd0fc1b4f74758b9d3fa3'
-- Hash mismatch, removing...
-- Using src='https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz'
-- [download 100% complete]
-- [download 9% complete]
-- [download 22% complete]
-- [download 34% complete]
-- [download 46% complete]
-- [download 58% complete]
-- [download 70% complete]
-- [download 82% complete]
-- [download 94% complete]
-- [download 100% complete]
-- verifying file...
       file='/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz'
-- SHA1 hash of
    /home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz
  does not match expected value
    expected: 'c248c60e2ce74c77cae3f678ede2f65491c4d815'
      actual: '7694f0b22c5217c4a12cd0fc1b4f74758b9d3fa3'
-- Hash mismatch, removing...
CMake Error at Build/Boost-prefix/src/Boost-stamp/download-Boost.cmake:170 (message):
  Each download failed!

    
    


gmake[2]: *** [CMakeFiles/Boost.dir/build.make:103: Boost-prefix/src/Boost-stamp/Boost-download] Ошибка 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/Boost.dir/all] Ошибка 2
gmake: *** [Makefile:91: all] Ошибка 2

[hunter ** FATAL ERROR **] Build step failed (dir: /home/twdragon/src/libp2p-cpp/build/hunter/_Base/3fb5849/abe67bf/251b1a7/Build/Boost
[hunter ** FATAL ERROR **] [Directory:/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Hunter/0.25.3-qdrvm23/3fb5849/Unpacked/cmake/projects/Boost]

------------------------------ ERROR -----------------------------
    https://hunter.readthedocs.io/en/latest/reference/errors/error.external.build.failed.html
------------------------------------------------------------------

CMake Error at build/hunter/_Base/Download/Hunter/0.25.3-qdrvm23/3fb5849/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message):
Call Stack (most recent call first):
  build/hunter/_Base/Download/Hunter/0.25.3-qdrvm23/3fb5849/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_error_page)
  build/hunter/_Base/Download/Hunter/0.25.3-qdrvm23/3fb5849/Unpacked/cmake/modules/hunter_download.cmake:623 (hunter_fatal_error)
  build/hunter/_Base/Download/Hunter/0.25.3-qdrvm23/3fb5849/Unpacked/cmake/projects/Boost/hunter.cmake:497 (hunter_download)
  build/hunter/_Base/Download/Hunter/0.25.3-qdrvm23/3fb5849/Unpacked/cmake/modules/hunter_add_package.cmake:62 (include)
  cmake/dependencies.cmake:14 (hunter_add_package)
  CMakeLists.txt:54 (include)


-- Configuring incomplete, errors occurred!
@neelfirst
Copy link

neelfirst commented Jan 6, 2025

From your logs, it doesn't look like you were able to direct Hunter to use the new URL. I'm running into the same issue, in my CMakeLists I have

hunter_config(Boost
    URL  "https://archives.boost.io/release/1.83.0/source/boost_1_83_0.tar.bz2"
    SHA1 "75b1f569134401d178ad2aaf97a2993898dd7ee3"
)
hunter_add_package(Boost)
find_package(Boost CONFIG REQUIRED)

And am still trying to get Hunter to recognize the URL

@twdragon
Copy link
Author

twdragon commented Jan 6, 2025

@neelfirst I documented only the error here, but the URL I used in hunter_config worked after deleting the cache folders both for CMake and HUNTER_ROOT.

@neelfirst
Copy link

Got it, I had to place this in hunter's config.cmake. Thanks 🙏

@TheNetos
Copy link

Boost have same issue every year 😃

boostorg/boost#842
boostorg/boost#996 (comment)

the url is now:

https://archives.boost.io/

@sdxqw
Copy link

sdxqw commented Jan 18, 2025

Hello any fixes to make it work again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants