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

[cpython] Use util-linux-libuuid instead of deprecated libuuid #18558

Conversation

samuel-emrys
Copy link
Contributor

@samuel-emrys samuel-emrys commented Jul 15, 2023

Transition from deprecated libuuid recipe to util-linux-libuuid, which is actively maintained. See #17664 for discussion

The util-linux-libuuid package relies on an actively maintained project, see #17664.
The libuuid package uses a stale project. Use the active project instead to fix conflicts.

This should be part of a group of packages merged rapidly. See #17995 (comment) for discussion on challenges involved in a previous migration attempt.


@samuel-emrys
Copy link
Contributor Author

This is blocked by #18550, which is pulled in via the tk recipe causing a graph conflict with libuuid

@conan-center-bot

This comment has been minimized.

@ghost
Copy link

ghost commented Jul 15, 2023

I detected other pull requests that are modifying cpython/all recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@jcar87
Copy link
Contributor

jcar87 commented Aug 9, 2023

Relaunched the build jobs for this PR now that fontconfig has been updated - that should resolve the conflict, but will monitor this.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 4 (22dd3cb6653199de13543cb42972dcd062137e5e):

  • cpython/3.9.7:
    Didn't run or was cancelled before finishing

  • cpython/3.7.12:
    CI failed to create some packages (All logs)

    Logs for packageID 9089d33a4ee3d57555f67877a5078e6319682d92:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=10
    os=Linux
    [options]
    cpython:shared=False
    
    [...]
        ncurses/6.2 from 'conan-center' - Downloaded
        openssl/1.1.1l from 'conan-center' - Downloaded
        sqlite3/3.36.0 from 'conan-center' - Downloaded
        tcl/8.6.10 from 'conan-center' - Downloaded
        tk/8.6.10 from 'conan-center' - Downloaded
        util-linux-libuuid/2.39 from 'conan-center' - Downloaded
        xorg/system from 'conan-center' - Downloaded
        xz_utils/5.2.5 from 'conan-center' - Downloaded
        zlib/1.2.11 from 'conan-center' - Downloaded
    Packages
        brotli/1.0.9:bfdbb855937046dc347fec082c59cb7f733e8855 - Download
        bzip2/1.0.8:91a8b22c2c5a149bc617cfc06cdd21bf23b12567 - Download
        cpython/3.7.12:9089d33a4ee3d57555f67877a5078e6319682d92 - Build
        expat/2.4.1:859363389e24f9402c19222fd527806e3c413615 - Download
        fontconfig/2.13.93:67f7041625d33a5a3c06a438779bda65fadfab87 - Download
        freetype/2.13.0:bca7b8880d98719d556dd526ce612be20a815922 - Download
        gdbm/1.19:0bd38a9eb912cfcfcbde37d15e2263db4257e2c2 - Download
        libffi/3.2.1:19729b9559f3ae196cad45cb2b97468ccb75dcd1 - Download
        libpng/1.6.40:d5b3dc27faecfb4eb94086722000dd65bb9e6bff - Download
        libxcrypt/4.4.25:19729b9559f3ae196cad45cb2b97468ccb75dcd1 - Download
        mpdecimal/2.4.2:19729b9559f3ae196cad45cb2b97468ccb75dcd1 - Download
        ncurses/6.2:208e1714f3ce187f52ebc74d49beba71b8a3db65 - Missing
        openssl/1.1.1l:19729b9559f3ae196cad45cb2b97468ccb75dcd1 - Download
        sqlite3/3.36.0:b7e8530a7ce4dc98890a185b197886c549602572 - Download
        tcl/8.6.10:d8b88b49d6e7691941997f64ad700b4308d0ed8c - Download
        tk/8.6.10:1267decf4836f3723db6e1fe73e031e2ae79c546 - Download
        util-linux-libuuid/2.39:19729b9559f3ae196cad45cb2b97468ccb75dcd1 - Download
        xorg/system:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
        xz_utils/5.2.5:19729b9559f3ae196cad45cb2b97468ccb75dcd1 - Download
        zlib/1.2.11:19729b9559f3ae196cad45cb2b97468ccb75dcd1 - Download
    
    Installing (downloading, building) binaries...
    
    WARN: tcl/8.6.10: requirement zlib/1.2.13 overridden by tk/8.6.10 to zlib/1.2.11 
    WARN: fontconfig/2.13.93: requirement expat/2.5.0 overridden by tk/8.6.10 to expat/2.4.1 
    WARN: freetype/2.13.0: requirement zlib/[>=1.2 <1.3] overridden by fontconfig/2.13.93 to zlib/1.2.11 
    WARN: libpng/1.6.40: requirement zlib/1.2.13 overridden by freetype/2.13.0 to zlib/1.2.11 
    ERROR: Missing binary: ncurses/6.2:208e1714f3ce187f52ebc74d49beba71b8a3db65
    ncurses/6.2: WARN: Can't find a 'ncurses/6.2' package for the specified settings, options and dependencies:
    - Settings: arch=x86_64, build_type=Release, compiler=gcc, compiler.libcxx=libstdc++11, compiler.version=10, os=Linux
    - Options: fPIC=True, shared=False, with_cxx=True, with_extended_colors=True, with_pcre2=False, with_progs=True, with_reentrant=False, with_ticlib=auto, with_tinfo=auto, with_widec=True
    - Dependencies: 
    - Requirements: 
    - Package ID: 208e1714f3ce187f52ebc74d49beba71b8a3db65
    
    ERROR: Missing prebuilt package for 'ncurses/6.2'
    Use 'conan search ncurses/6.2@ --table=table.html -r=remote' and open the table.html file to see available packages
    Or try to build locally from sources with '--build=ncurses'
    
    More Info at 'https://docs.conan.io/en/latest/faq/troubleshooting.html#error-missing-prebuilt-package'
    
  • cpython/3.10.0:
    Didn't run or was cancelled before finishing

  • cpython/2.7.18:
    Didn't run or was cancelled before finishing

  • cpython/3.8.12:
    Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline ❌

Note: Conan v2 builds may be required once they are on the v2 ready list

The v2 pipeline failed. Please, review the errors and note this will be required for pull requests to be merged in the near future.

See details:

Failure in build 4 (22dd3cb6653199de13543cb42972dcd062137e5e):

  • cpython/3.10.0:
    Error running command conan export --name cpython --version 3.10.0 recipes/cpython/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-18558/recipes/cpython/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-18558/recipes/cpython/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-18558/recipes/cpython/all/conanfile.py", line 1, in <module>
        from conans import AutoToolsBuildEnvironment, ConanFile, MSBuild, tools
    ImportError: cannot import name 'AutoToolsBuildEnvironment' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • cpython/3.8.12:
    Error running command conan export --name cpython --version 3.8.12 recipes/cpython/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-18558/recipes/cpython/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-18558/recipes/cpython/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-18558/recipes/cpython/all/conanfile.py", line 1, in <module>
        from conans import AutoToolsBuildEnvironment, ConanFile, MSBuild, tools
    ImportError: cannot import name 'AutoToolsBuildEnvironment' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • cpython/3.9.7:
    Error running command conan export --name cpython --version 3.9.7 recipes/cpython/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-18558/recipes/cpython/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-18558/recipes/cpython/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-18558/recipes/cpython/all/conanfile.py", line 1, in <module>
        from conans import AutoToolsBuildEnvironment, ConanFile, MSBuild, tools
    ImportError: cannot import name 'AutoToolsBuildEnvironment' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • cpython/3.7.12:
    Error running command conan export --name cpython --version 3.7.12 recipes/cpython/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-18558/recipes/cpython/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-18558/recipes/cpython/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-18558/recipes/cpython/all/conanfile.py", line 1, in <module>
        from conans import AutoToolsBuildEnvironment, ConanFile, MSBuild, tools
    ImportError: cannot import name 'AutoToolsBuildEnvironment' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • cpython/2.7.18:
    Error running command conan export --name cpython --version 2.7.18 recipes/cpython/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-18558/recipes/cpython/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-18558/recipes/cpython/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-18558/recipes/cpython/all/conanfile.py", line 1, in <module>
        from conans import AutoToolsBuildEnvironment, ConanFile, MSBuild, tools
    ImportError: cannot import name 'AutoToolsBuildEnvironment' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

@ghost ghost mentioned this pull request Sep 1, 2023
3 tasks
@ghost ghost mentioned this pull request Sep 13, 2023
3 tasks
@stale
Copy link

stale bot commented Oct 15, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 15, 2023
@samuel-emrys
Copy link
Contributor Author

This is still necessary, but it looks like there's more broken with the cpython recipe that's blocking this issue. This might have to be incorporated into a conan 2 migration when the recipe is in a better state.

@stale stale bot removed the stale label Oct 24, 2023
@ghost ghost mentioned this pull request Nov 6, 2023
@Ahajha
Copy link
Contributor

Ahajha commented Nov 30, 2023

This is still necessary, but it looks like there's more broken with the cpython recipe that's blocking this issue. This might have to be incorporated into a conan 2 migration when the recipe is in a better state.

@valgur and I are working on the cpython recipe migration, but I've separated the dependency changes into a separate PR: #21426

@samuel-emrys
Copy link
Contributor Author

samuel-emrys commented Nov 30, 2023

@valgur and I are working on the cpython recipe migration, but I've separated the dependency changes into a separate PR: #21426

yes, this is why i tagged this PR in that issue - my observation above was that changes beyond just changing the dependency were required to enable the CI to pass, hence my suggestion that this should be incorporated into a conan 2 migration rather than segmented out on its own.

I might be wrong about that, but conan staff are slow enough to respond that it became intractable for me to troubleshoot in a reasonable amount of time which is why i closed it. Feel free to continue to attempt to resolve this issue with the same approach I took here (hopefully you're more successful than I was!), but my opinion is that your energy is probably better spent just getting the migration working.

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

Successfully merging this pull request may close these issues.

5 participants