Created attachment 571294 [details] Ebuild showing the problem Hi, portage doesn't support ExternalProject's ExternalProject_Add feature. I have my own ebuild for kdenlive live ebuild (it was in the kde overlay but recently was gone). The CMake tries to download external project. While running it under portage supervision ('emerge kdenlive' or 'ebuild kdenlive.ebuild compile') the external project is not downloading and compilation breaks. When doing it manually (in the build folder prepared by portage in the earlier step) by running 'make' it works just fine. Portage way: -- Downloading... dst='/var/tmp/portage/kde-apps/kdenlive-9999/work/kdenlive-9999_build/rttr/src/v0.9.6.tar.gz' timeout='none' -- Using src='https://github.com/rttrorg/rttr/archive/v0.9.6.tar.gz' -- Retrying... -- Using src='https://github.com/rttrorg/rttr/archive/v0.9.6.tar.gz' -- Retry after 5 seconds (attempt #2) ... ... -- Using src='https://github.com/rttrorg/rttr/archive/v0.9.6.tar.gz' -- Retry after 60 seconds (attempt #5) ... -- Using src='https://github.com/rttrorg/rttr/archive/v0.9.6.tar.gz' CMake Error at rttr_project-stamp/download-rttr_project.cmake:157 (message): Each download failed! error: downloading 'https://github.com/rttrorg/rttr/archive/v0.9.6.tar.gz' failed status_code: 6 status_string: "Couldn't resolve host name" log: --- LOG BEGIN --- Expire in 0 ms for 6 (transfer 0x55d3fa825fc0) Expire in 1 ms for 1 (transfer 0x55d3fa825fc0) Expire in 0 ms for 1 (transfer 0x55d3fa825fc0) Expire in 1 ms for 1 (transfer 0x55d3fa825fc0) Expire in 0 ms for 1 (transfer 0x55d3fa825fc0) Expire in 0 ms for 1 (transfer 0x55d3fa825fc0) ... Plenty of messages like this Could not resolve host: github.com Expire in 0 ms for 1 (transfer 0x55d3fa829600) Closing connection 0 --- LOG END --- Manual way (the file was downloaded earlier): -- File already exists but no hash specified (use URL_HASH): file='/var/tmp/portage/kde-apps/kdenlive-9999/work/kdenlive-9999_build/rttr/src/v0.9.6.tar.gz' Old file will be removed and new file downloaded from URL. -- Downloading... dst='/var/tmp/portage/kde-apps/kdenlive-9999/work/kdenlive-9999_build/rttr/src/v0.9.6.tar.gz' timeout='none' -- Using src='https://github.com/rttrorg/rttr/archive/v0.9.6.tar.gz' -- Downloading... done -- extracting... src='/var/tmp/portage/kde-apps/kdenlive-9999/work/kdenlive-9999_build/rttr/src/v0.9.6.tar.gz' dst='/var/tmp/portage/kde-apps/kdenlive-9999/work/kdenlive-9999_build/rttr/src/rttr_project' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done I attached the ebuild which should reproduce the problem. Regards, Rafał
Try setting RESTRICT="network-sandbox" in the ebuild.
Ok, it fixed the problem. Thanks. Didn't know this trick. Regards, R.