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

glib: Depend on elfutils instead of libelf where possible #24059

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jwillikers
Copy link
Contributor

@jwillikers jwillikers commented May 21, 2024

The libelf library is antiquated.
The elfutils package is actively maintained and provides its own libelf implementation, which is the standard implementation on Linux. Since elfutils can not be used everywhere, only use it for supported configurations.

Requires:

The libelf library is antiquated.
The elfutils package is actively maintained and provides its own libelf implementation, which is the standard implementation on Linux.
Since elfutils can not be used everywhere, only use it for supported configurations.
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 7 (cccebb48b16f426101ab4b9551b552ee14363539):

  • glib/2.78.3:
    Didn't run or was cancelled before finishing

  • glib/2.78.1:
    CI failed to create some packages (All logs)

    Logs for packageID 2b9fb10988721126fe8412374b317e14ddfb784e:
    [settings]
    arch=armv8
    build_type=Debug
    compiler=apple-clang
    compiler.libcxx=libc++
    compiler.version=13.0
    os=Macos
    [options]
    glib:shared=False
    
    [...]
    > cmake --build '/Users/jenkins/workspace/prod-v1/bsr/cci-fe4a384d/recipes/glib/all/test_v1_package/build/086055217d08328634c56b1273d3a26d1e77ab18' '--' '-j8'
    -----------------
    [ 50%] Building C object test_package/CMakeFiles/test_package.dir/test_package.c.o
    [100%] Linking C executable ../bin/test_package
    [100%] Built target test_package
    glib/2.78.1 (test package): Running test()
    
    ----Running------
    > DYLD_LIBRARY_PATH="/Users/jenkins/workspace/prod-v1/bsr/47115/acabe/.conan/data/glib/2.78.1/_/_/package/2b9fb10988721126fe8412374b317e14ddfb784e/lib:/Users/jenkins/workspace/prod-v1/bsr/47115/acabe/.conan/data/libffi/3.4.4/_/_/package/3558c54d13382045caaf9174821b7c2ba01fc8bc/lib:/Users/jenkins/workspace/prod-v1/bsr/47115/acabe/.conan/data/pcre2/10.42/_/_/package/8b827986825b8d2910dd5f10427603aef3cfa35e/lib:/Users/jenkins/workspace/prod-v1/bsr/47115/acabe/.conan/data/libelf/0.8.13/_/_/package/3558c54d13382045caaf9174821b7c2ba01fc8bc/lib:/Users/jenkins/workspace/prod-v1/bsr/47115/acabe/.conan/data/libgettext/0.22/_/_/package/c8ba9d6f1c61c2b402385fd9257330e2c2f8713f/lib:/Users/jenkins/workspace/prod-v1/bsr/47115/acabe/.conan/data/zlib/1.3.1/_/_/package/3558c54d13382045caaf9174821b7c2ba01fc8bc/lib:/Users/jenkins/workspace/prod-v1/bsr/47115/acabe/.conan/data/bzip2/1.0.8/_/_/package/06955caeb41bcd97dbb7ebe09828eda1babd28fa/lib:/Users/jenkins/workspace/prod-v1/bsr/47115/acabe/.conan/data/libiconv/1.17/_/_/package/3558c54d13382045caaf9174821b7c2ba01fc8bc/lib" DYLD_FRAMEWORK_PATH="" bin/test_package
    -----------------
    glib 2.78.1
    glib interface age: 1
    glib binary age: 7801
    glib module supported: true
    type name for char: gchar
    CMake Warning:
      Manually-specified variables were not used by the project:
    
        CMAKE_EXPORT_NO_PACKAGE_REGISTRY
        CMAKE_INSTALL_BINDIR
        CMAKE_INSTALL_DATAROOTDIR
        CMAKE_INSTALL_INCLUDEDIR
        CMAKE_INSTALL_LIBDIR
        CMAKE_INSTALL_LIBEXECDIR
        CMAKE_INSTALL_OLDINCLUDEDIR
        CMAKE_INSTALL_SBINDIR
    
    
    WARN: *** Conan 1 is legacy and on a deprecation path ***
    WARN: *** Please upgrade to Conan 2 ***
    WARN: pcre2/10.42: requirement zlib/[>=1.2.11 <2] overridden by glib/2.78.1 to zlib/1.3.1 
    glib/2.78.1 (test package): WARN: 
         ************************************************
         The 'pkg_config' generator is deprecated.
         Please update your code and remove it.
         *************************************************
    
    glib/2.78.1 (test package): WARN: 
         ************************************************
         The 'cmake' generator is deprecated.
         Please update your code and remove it.
         *************************************************
    
    glib/2.78.1 (test package): WARN: 
         ************************************************
         The 'cmake_find_package_multi' generator is deprecated.
         Please update your code and remove it.
         *************************************************
    
    glib/2.78.1 (test package): WARN: **** The 'from conans import CMake' helper is deprecated. Please update your code and remove it. ****
    
  • glib/2.77.3:
    Didn't run or was cancelled before finishing

  • glib/2.78.0:
    Didn't run or was cancelled before finishing

  • glib/2.77.2:
    Didn't run or was cancelled before finishing

  • glib/2.75.3:
    Didn't run or was cancelled before finishing

  • glib/2.76.3:
    Didn't run or was cancelled before finishing

  • glib/2.77.0:
    Didn't run or was cancelled before finishing

  • glib/2.77.1:
    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 7 (cccebb48b16f426101ab4b9551b552ee14363539):

  • glib/2.78.1:
    CI failed to create some packages (All logs)

    Logs for packageID 6fe96753500f9abc483205a985235a00a377541e:
    [settings]
    arch=armv8
    build_type=Release
    compiler=apple-clang
    compiler.cppstd=17
    compiler.libcxx=libc++
    compiler.version=13
    os=Macos
    [options]
    */*:shared=False
    
    [...]
    glib/2.78.1 (test package): Generating aggregated env files
    glib/2.78.1 (test package): Generated aggregated env files: ['conanrun.sh', 'conanbuild.sh']
    
    ======== Testing the package: Building ========
    glib/2.78.1 (test package): Calling build()
    glib/2.78.1 (test package): Running CMake.configure()
    glib/2.78.1 (test package): RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/Users/jenkins/workspace/prod-v2/bsr@2/cci-6c804194/recipes/glib/all/test_package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/Users/jenkins/workspace/prod-v2/bsr@2/cci-6c804194/recipes/glib/all/test_package"
    -- Using Conan toolchain: /Users/jenkins/workspace/prod-v2/bsr@2/cci-6c804194/recipes/glib/all/test_package/build/apple-clang-13-armv8-17-release/generators/conan_toolchain.cmake
    -- Conan toolchain: C++ Standard 17 with extensions OFF
    -- The C compiler identification is AppleClang 13.0.0.13000029
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Found PkgConfig: /Users/jenkins/workspace/prod-v2/bsr@2/41779/aefcc/p/pkgcob5636adc1cb7b/p/bin/pkgconf (found version "2.0.3") 
    -- Checking for module 'glib-2.0'
    --   Found glib-2.0, version 2.78.1
    -- Checking for module 'gio-2.0'
    --   Found gio-2.0, version 2.78.1
    -- Checking for module 'gmodule-2.0'
    --   Found gmodule-2.0, version 2.78.1
    -- Checking for module 'gobject-2.0'
    --   Found gobject-2.0, version 2.78.1
    -- Checking for module 'gthread-2.0'
    --   Found gthread-2.0, version 2.78.1
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Users/jenkins/workspace/prod-v2/bsr@2/cci-6c804194/recipes/glib/all/test_package/build/apple-clang-13-armv8-17-release
    
    glib/2.78.1 (test package): Running CMake.build()
    glib/2.78.1 (test package): RUN: cmake --build "/Users/jenkins/workspace/prod-v2/bsr@2/cci-6c804194/recipes/glib/all/test_package/build/apple-clang-13-armv8-17-release" -- -j8
    [ 50%] Building C object CMakeFiles/test_package.dir/test_package.c.o
    [100%] Linking C executable test_package
    [100%] Built target test_package
    
    
    ======== Testing the package: Executing test ========
    glib/2.78.1 (test package): Running test()
    glib/2.78.1 (test package): RUN: ./test_package
    glib 2.78.1
    glib interface age: 1
    glib binary age: 7801
    glib module supported: true
    type name for char: gchar
    
    /bin/sh: pkg-config: command not found
    ERROR: glib/2.78.1 (test package): Error in test() method, line 58
    	gdbus_codegen = pkg_config.variables["gdbus_codegen"]
    	ConanException: Error 127 while executing
    
  • glib/2.78.3:
    Didn't run or was cancelled before finishing

  • glib/2.77.3:
    Didn't run or was cancelled before finishing

  • glib/2.78.0:
    Didn't run or was cancelled before finishing

  • glib/2.77.2:
    Didn't run or was cancelled before finishing

  • glib/2.77.0:
    Didn't run or was cancelled before finishing

  • glib/2.75.3:
    Didn't run or was cancelled before finishing

  • glib/2.77.1:
    Didn't run or was cancelled before finishing

  • glib/2.76.3:
    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.

@ghost ghost mentioned this pull request May 23, 2024
3 tasks
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.

3 participants