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: Update deps (1.x only) #21426

Closed
wants to merge 5 commits into from

Conversation

Ahajha
Copy link
Contributor

@Ahajha Ahajha commented Nov 27, 2023

Specify library name and version: cpython/all

Since I was doing a small PR anyways, I wanted to add some of the simple Conan 2.0 migration steps to ease the diff in future PRs.

Current min version is set to 1.53.0, I don't know if the current version actually needs 1.53.0, probably around 1.51, but it will need to be 1.53.0 eventually anyways.


@ghost
Copy link

ghost commented Nov 27, 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.

This was referenced Nov 27, 2023
@Ahajha
Copy link
Contributor Author

Ahajha commented Nov 27, 2023

@RubenRBS :)

@conan-center-bot conan-center-bot added Failed Missing dependencies Build failed due missing dependencies in Conan Center labels Nov 27, 2023
@conan-center-bot

This comment has been minimized.

@AbrilRBS AbrilRBS self-assigned this Nov 27, 2023
@conan-center-bot

This comment has been minimized.

Copy link
Member

@AbrilRBS AbrilRBS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Now that the ncruses recipe has been merged, we can finally focus on this PR :)

I have only 1 question about the usage of the force traitm otherwise looks good!

self.requires("libuuid/1.0.3")
self.requires("libxcrypt/4.4.25")
if not is_apple_os(self):
self.requires("util-linux-libuuid/2.39.2", force=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking the PR now before merging, why is force needed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's getting a version conflict with another dependency that uses util-linux-libuuid, in 2.x this doesn't seem to force the version? Is there a better way to do this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ahajha which dependency is it conflicting with? I can't see anything in the logs - perhaps you need to update your local cache?

The normal resolution to this kind of issue is to bump the util-linux-libuuid version on the other dependency so that both are at the most recent version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, looks like it was a stale cache. It came from fontconfig, which comes from tk. I'll remove it.

@conan-center-bot conan-center-bot removed the Missing dependencies Build failed due missing dependencies in Conan Center label Dec 2, 2023
@conan-center-bot

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Dec 2, 2023

Hooks produced the following warnings for commit 30a42b0
cpython/2.7.18@#3da44cec5327d6a00056a7a2e12efb8d
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/python2.7/lib-dynload/nis.so' links to system library 'nsl' but it is not in cpp_info.system_libs.

@Ahajha
Copy link
Contributor Author

Ahajha commented Dec 2, 2023

I see CPython 2.x is failing, I'll try briefly to get it working again but I don't think it's worth too much effort currently.

@AbrilRBS
Copy link
Member

AbrilRBS commented Dec 2, 2023

We can merge this as-is on our end, no worries about that, and work on v2 compat at a later point :)

@Ahajha
Copy link
Contributor Author

Ahajha commented Dec 2, 2023

We can merge this as-is on our end, no worries about that, and work on v2 compat at a later point :)

I mean CPython 2.7.18, not Conan 2 :) I'll try briefly to see if I can find the cause, if not, I believe there was separate discussion about dropping support for it, at the very least it's low priority. It's also causing other packages to not be built, which I imagine we want.

Edit: Seems to be an issue when the package is actually downloaded, rather than a CPython 2.x issue. I'm guessing this test was added since the package was created last, it seems that there's a lot of hard-coding to paths that's happening. I'll take this into account in the 2.0 migration. Until then, review away :)

@Ahajha Ahajha changed the title Update cpython deps (1.x only) CPython: Update deps (1.x only) Dec 2, 2023
@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 5 (4cb4b61b790eaeead6731f19d8f95e23321bab0d):

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

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

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

    Logs for packageID 1cee7b23852b4ccf21b525d7fdf720d9e3b615d1:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=apple-clang
    compiler.libcxx=libc++
    compiler.version=13.0
    os=Macos
    [options]
    cpython:shared=False
    
    [...]
    		exit 1 ; \
    	fi
    running build
    running build_ext
    warning: openssl 0x00000000 is too old for _hashlib
    building dbm using ndbm
    cpython/2.7.18: 
    configure: WARNING:
    
      By default, distutils will build C++ extension modules with "c++".
      If this is not intended, then set CXX on the configure command line.
      
    source_subfolder/Python/random.c:177:1: warning: unused function 'dev_urandom_noraise' [-Wunused-function]
    dev_urandom_noraise(unsigned char *buffer, Py_ssize_t size)
    ^
    source_subfolder/Python/random.c:208:1: warning: unused function 'dev_urandom_python' [-Wunused-function]
    dev_urandom_python(char *buffer, Py_ssize_t size)
    ^
    source_subfolder/Python/random.c:300:1: warning: unused function 'dev_urandom_close' [-Wunused-function]
    dev_urandom_close(void)
    ^
    3 warnings generated.
    source_subfolder/Modules/getpath.c:410:50: warning: incompatible pointer types passing 'unsigned long *' to parameter of type 'uint32_t *' (aka 'unsigned int *') [-Wincompatible-pointer-types]
         else if(0 == _NSGetExecutablePath(progpath, &nsexeclength) && progpath[0] == SEP)
                                                     ^~~~~~~~~~~~~
    /Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/mach-o/dyld.h:98:54: note: passing argument to parameter 'bufsize' here
    extern int _NSGetExecutablePath(char* buf, uint32_t* bufsize)                 __OSX_AVAILABLE_STARTING(__MAC_10_2, __IPHONE_2_0);
                                                         ^
    1 warning generated.
    source_subfolder/Modules/posixmodule.c:363:13: warning: result of comparison of constant 9223372036854775807 with expression of type 'uid_t' (aka 'unsigned int') is always true [-Wtautological-constant-out-of-range-compare]
        if (uid <= LONG_MAX)
            ~~~ ^  ~~~~~~~~
    source_subfolder/Modules/posixmodule.c:371:13: warning: result of comparison of constant 9223372036854775807 with expression of type 'gid_t' (aka 'unsigned int') is always true [-Wtautological-constant-out-of-range-compare]
        if (gid <= LONG_MAX)
            ~~~ ^  ~~~~~~~~
    2 warnings generated.
    /Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython2.7.a(pymath.o) has no symbols
    /Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython2.7.a(pymath.o) has no symbols
    /Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython2.7.a(pymath.o) has no symbols
    /Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython2.7.a(pymath.o) has no symbols
    error: [Errno 2] No such file or directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/ffi/ffi.h'
    make: *** [sharedmods] Error 1
    WARN: openssl/3.2.0: requirement zlib/[>=1.2.11 <2] overridden by cpython/2.7.18 to zlib/1.3 
    WARN: tcl/8.6.10: requirement zlib/[>=1.2.11 <2] overridden by tk/8.6.10 to zlib/1.3 
    cpython/2.7.18: WARN: **** The 'AutoToolsBuildEnvironment' helper is deprecated. Please update your code and remove it. ****
    cpython/2.7.18: ERROR: Package '1cee7b23852b4ccf21b525d7fdf720d9e3b615d1' build failed
    cpython/2.7.18: WARN: Build folder /Users/jenkins/w/prod-v1/bsr@2/66853/fecbe/.conan/data/cpython/2.7.18/_/_/build/1cee7b23852b4ccf21b525d7fdf720d9e3b615d1
    ERROR: cpython/2.7.18: Error in build() method, line 435
    	autotools.make()
    	ConanException: Error 2 while executing make -j4
    
  • cpython/3.8.12:
    Didn't run or was cancelled before finishing

  • cpython/3.7.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 are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 5 (4cb4b61b790eaeead6731f19d8f95e23321bab0d):

  • 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-21426/recipes/cpython/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-21426/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-21426/recipes/cpython/all/conanfile.py", line 6, in <module>
        from conans import AutoToolsBuildEnvironment, 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.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-21426/recipes/cpython/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-21426/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-21426/recipes/cpython/all/conanfile.py", line 6, in <module>
        from conans import AutoToolsBuildEnvironment, 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-21426/recipes/cpython/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-21426/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-21426/recipes/cpython/all/conanfile.py", line 6, in <module>
        from conans import AutoToolsBuildEnvironment, 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-21426/recipes/cpython/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-21426/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-21426/recipes/cpython/all/conanfile.py", line 6, in <module>
        from conans import AutoToolsBuildEnvironment, 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-21426/recipes/cpython/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-21426/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-21426/recipes/cpython/all/conanfile.py", line 6, in <module>
        from conans import AutoToolsBuildEnvironment, 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.

@Ahajha
Copy link
Contributor Author

Ahajha commented Feb 6, 2024

Closing this in favor of #21387

@Ahajha Ahajha closed this Feb 6, 2024
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.

4 participants