Adam Hunyadi created MINIFICPP-1420:
---------------------------------------

             Summary: Add alternate mirrors for libsodium
                 Key: MINIFICPP-1420
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1420
             Project: Apache NiFi MiNiFi C++
          Issue Type: Improvement
    Affects Versions: 0.8.0
            Reporter: Adam Hunyadi
            Assignee: Adam Hunyadi
             Fix For: 0.9.0


*Backgroud:*

The official libsodium downloads page is unstable, causing clean builds to fail 
with the following error:

{code:bash|title=Libsodium server not available}
CMake Error at 
/home/hunyadix/Documents/Projects/nifi-minifi-cpp_1/build/libsodium-external-prefix/src/libsodium-external-stamp/download-libsodium-external.cmake:170
 (message):                                                             
  Each download failed!                                                         
                                                                                
                                                                             
                                                                                
                                                                                
                                                                             
    error: downloading 
'https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz' 
failed                                                                          
                                                          
          status_code: 6                                                        
                                                                                
                                                                             
          status_string: "Couldn't resolve host name"                           
                                                                                
                                                                             
          log:                                                                  
                                                                                
                                                                             
          --- LOG BEGIN ---                                                     
                                                                                
                                                                             
          getaddrinfo(3) failed for download.libsodium.org:443                  
                                                                                
                                                                             
                                                                                
                                                                                
                                                                             
  Couldn't resolve host 'download.libsodium.org'                                
                                                                                
                                                                             
                                                                                
                                                                                
                                                                             
  Closing connection 0                                                          
                                                                                
                                                                             
                                                                                
                                                                                
                                                                             
                                                                                
                                                                                
                                                                             
                                                                                
                                                                                
                                                                             
          --- LOG END ---                                                       
                                                                                
                                                                             
          error: downloading 
'https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz' 
failed                                                                          
                                                    
          status_code: 6                                                        
                                                                                
                                                                             
          status_string: "Couldn't resolve host name"                           
                                                                                
                                                                             
          log:                                                                  
                                                                                
                                                                             
          --- LOG BEGIN ---                                                     
                                                                                
                                                                             
          getaddrinfo(3) failed for download.libsodium.org:443                  
                                                                                
                                                                             

  Couldn't resolve host 'download.libsodium.org'

  Closing connection 0

  (...)
{code}

*Proposal:*

We should add the following alternate mirrors to the ExternalProject_add cmake 
command:
 * 
https://github.com/jedisct1/libsodium/releases/download/1.0.18-RELEASE/libsodium-1.0.18.tar.gz
 
 * https://gentoo.osuosl.org/distfiles/libsodium-1.0.18.tar.gz



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to