Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682074 - emerge doesn't support cmake's ExternalProject
Summary: emerge doesn't support cmake's ExternalProject
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-30 19:49 UTC by Rafal Lalik
Modified: 2019-03-30 20:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild showing the problem (kdenlive-9999.ebuild,2.20 KB, text/plain)
2019-03-30 19:49 UTC, Rafal Lalik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafal Lalik 2019-03-30 19:49:03 UTC
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ł
Comment 1 Zac Medico gentoo-dev 2019-03-30 20:17:08 UTC
Try setting RESTRICT="network-sandbox" in the ebuild.
Comment 2 Rafal Lalik 2019-03-30 20:53:04 UTC
Ok, it fixed the problem. Thanks. Didn't know this trick.

Regards,
R.