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

[bug] required component package ... not in dependencies #17312

Open
tbsuht opened this issue Nov 13, 2024 · 7 comments
Open

[bug] required component package ... not in dependencies #17312

tbsuht opened this issue Nov 13, 2024 · 7 comments
Assignees

Comments

@tbsuht
Copy link

tbsuht commented Nov 13, 2024

Describe the bug

Hi,

I've just upgraded from conan 2.3.0 to 2.9.2 and one of our modules started not building anymore.

[cmake] ERROR: power-mgmt/2.0.0: required component package 'magic_enum::' not in dependencies

the conanfile of this component looks something like this:

def requirements(self):
        self.requires("magic_enum/0.9.3", transitive_headers=True)

 def package_info(self):
        self.cpp_info.set_property("cmake_find_mode", "both")
        self.cpp_info.set_property("cmake_file_name", "power-mgmt")

        # lib-power-mgmt
        self.cpp_info.components["lib-power-mgmt"].set_property(
            "cmake_target_name", "power-mgmt::lib-power-mgmt"
        )
        self.cpp_info.components["lib-power-mgmt"].libs = ["lib-power-mgmt"]
        self.cpp_info.components["lib-power-mgmt"].requires = [
            ...
            "magic_enum::magic_enum",
        ]

        # proc-power-mgmt
        self.cpp_info.components["proc-power-mgmt"].libs = []
        self.cpp_info.components["proc-power-mgmt"].requires = [
            ...,
            "magic_enum::magic_enum"
        ]

        # power-mgmt-utility
        self.cpp_info.components["power-mgmt-utility"].libs = []
        self.cpp_info.components["power-mgmt-utility"].requires = [
            ...
            "magic_enum::magic_enum",
        ]

I don't see an obvious error here and from the error message I'm not sure what is the problem. Can you help out?

How to reproduce it

No response

@AbrilRBS
Copy link
Member

Hi @tbsuht thanks for your report.

Without access to the full conanfile recipe/run log output it's hard to diagnose what the issue might be, and I can't reproduce with a similarly looking conanfile.

The conditions for that error currently are:

  • magic_enum is not a direct requires (It is in your case)
  • magic_enum is a tool_requires (Does not seem to be the case)
  • magic_enum is a test_requires (Same)
  • magic_enum has visible=False or override=True traits (Which also seems to not be the case)

So without further context it's hard to diagnose what might be happening. One potential improvement would be for the error message to clarify where the missing requirement is being declared

@tbsuht
Copy link
Author

tbsuht commented Nov 13, 2024

Does this help? Otherwise I will have to try providing the conanfile.

[main] Building folder: /workspaces/dev/ip-mgmt/build/ND-AARCH64/Release 
[main] The folder containing the CMake cache is missing. The cache will be regenerated.
[main] Configuring project: ip-mgmt 
[proc] Executing command: /usr/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES:STRING=/workspaces/dev/ip-mgmt/infrastructure/cmake/conan_provider.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_TOOLCHAIN_FILE:FILEPATH=/workspaces/dev/ip-mgmt/../build-common/cmake/toolchain-aarch64.cmake --no-warn-unused-cli -S/workspaces/dev/ip-mgmt -B/workspaces/dev/ip-mgmt/build/ND-AARCH64/Release -G "Unix Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] -- The CXX compiler identification is GNU 12.2.0
[cmake] -- Detecting CXX compiler ABI info
[cmake] -- Detecting CXX compiler ABI info - done
[cmake] -- Check for working CXX compiler: /usr/bin/aarch64-linux-gnu-g++ - skipped
[cmake] -- Detecting CXX compile features
[cmake] -- Detecting CXX compile features - done
[cmake] -- CMake-Conan: first find_package() found. Installing dependencies with Conan
[cmake] -- CMake-Conan: Installing single configuration Release
[cmake] -- CMake-Conan: conan install /workspaces/dev/ip-mgmt  -pr:h;host/linux_arm64_bookworm;-pr:b;build/linux_x86_64_bookworm;-s;build_type=Release;--build=missing;--update
[cmake] 
[cmake] ======== Input profiles ========
[cmake] Profile host:
[cmake] [settings]
[cmake] arch=armv8
[cmake] build_type=Release
[cmake] compiler=gcc
[cmake] compiler.cppstd=gnu20
[cmake] compiler.libcxx=libstdc++11
[cmake] compiler.version=12
[cmake] os=Linux
[cmake] [options]
[cmake] *:shared=True
[cmake] libbsd/*:with_libmd=True
[cmake] libgpiod/*:enable_bindings_cxx=True
[cmake] libtins/*:with_ack_tracker=False
[cmake] libtins/*:with_tcp_stream_custom_data=False
[cmake] libtins/*:with_wpa2=False
[cmake] mtd-utils/*:shared=False
[cmake] sysrepo/*:nacm_srmon_data_perm=660
[cmake] sysrepo/*:plugind_path=/usr/sysrepo-plugind/plugins
[cmake] sysrepo/*:sysrepo_group=sysrepo-owner
[cmake] [conf]
[cmake] 
[cmake] [buildenv]
[cmake] QEMU_LD_PREFIX=/usr/aarch64-linux-gnu
[cmake] CC=/usr/bin/aarch64-linux-gnu-gcc
[cmake] CXX=/usr/bin/aarch64-linux-gnu-g++
[cmake] STRIP=/usr/bin/aarch64-linux-gnu-strip
[cmake] RANLIB=/usr/bin/aarch64-linux-gnu-ranlib
[cmake] AR=/usr/bin/aarch64-linux-gnu-ar
[cmake] AS=/usr/bin/aarch64-linux-gnu-as
[cmake] OBJCOPY=/usr/bin/aarch64-linux-gnu-objcopy
[cmake] LD=/usr/bin/aarch64-linux-gnu-ld
[cmake] ARCH=arm64
[cmake] 
[cmake] Profile build:
[cmake] [settings]
[cmake] arch=x86_64
[cmake] build_type=Release
[cmake] compiler=gcc
[cmake] compiler.cppstd=gnu20
[cmake] compiler.libcxx=libstdc++11
[cmake] compiler.version=12
[cmake] os=Linux
[cmake] [options]
[cmake] *:shared=True
[cmake] [conf]
[cmake] 
[cmake] 
[cmake] xxx-conan-base/2.1.8: Checking remote: repo-conan-dev-local
[cmake] 
[cmake] ======== Computing dependency graph ========
[cmake] xxx-shared/2.19.0: Checking remote: repo-conan-dev-local
[cmake] xxx-conan-base/2.1.8: Checking remote: repo-conan-dev-local
[cmake] xxx-shared/2.19.0: WARN: xxx-shared/2.19.0: package_type 'shared-library' is defined, but 'shared' and/or 'header_only' options are present. The package_type will have precedence over the options regardless of their value.
[cmake] libbsd/0.11.7: Checking remote: repo-conan-dev-local
[cmake] libmd/1.1.0: Checking remote: repo-conan-dev-local
[cmake] libtool/2.4.7: Checking remote: repo-conan-dev-local
[cmake] automake/1.16.5: Checking remote: repo-conan-dev-local
[cmake] autoconf/2.71: Checking remote: repo-conan-dev-local
[cmake] m4/1.4.19: Checking remote: repo-conan-dev-local
[cmake] gnu-config/cci.20210814: Checking remote: repo-conan-dev-local
[cmake] libsystemd/252.26: Checking remote: repo-conan-dev-local
[cmake] libcap/2.69: Checking remote: repo-conan-dev-local
[cmake] libmount/2.39.2: Checking remote: repo-conan-dev-local
[cmake] libxcrypt/4.4.36: Checking remote: repo-conan-dev-local
[cmake] libselinux/3.6: Checking remote: repo-conan-dev-local
[cmake] pcre2/10.42: Checking remote: repo-conan-dev-local
[cmake] zlib/1.3.1: Checking remote: repo-conan-dev-local
[cmake] bzip2/1.0.8: Checking remote: repo-conan-dev-local
[cmake] flex/2.6.4: Checking remote: repo-conan-dev-local
[cmake] pkgconf/2.2.0: Checking remote: repo-conan-dev-local
[cmake] meson/1.2.2: Checking remote: repo-conan-dev-local
[cmake] ninja/1.11.1: Checking remote: repo-conan-dev-local
[cmake] lz4/1.9.4: Checking remote: repo-conan-dev-local
[cmake] xz_utils/5.4.5: Checking remote: repo-conan-dev-local
[cmake] zstd/1.5.5: Checking remote: repo-conan-dev-local
[cmake] meson/1.4.0: Checking remote: repo-conan-dev-local
[cmake] gperf/3.1: Checking remote: repo-conan-dev-local
[cmake] pkgconf/2.1.0: Checking remote: repo-conan-dev-local
[cmake] magic_enum/0.9.3: Checking remote: repo-conan-dev-local
[cmake] xxx-toolchain/1.1.3: Checking remote: repo-conan-dev-local
[cmake] xxx-build-files/2.1.0: Checking remote: repo-conan-dev-local
[cmake] gtest/1.14.0: Checking remote: repo-conan-dev-local
[cmake] hw-info/4.2.3: Checking remote: repo-conan-dev-local
[cmake] cpp-wrapper/4.14.2: Checking remote: repo-conan-dev-local
[cmake] nng/1.5.2: Checking remote: repo-conan-dev-local
[cmake] mdio-tools/1.3.0: Checking remote: repo-conan-dev-local
[cmake] libmnl/1.0.4: Checking remote: repo-conan-dev-local
[cmake] mtd-utils/2.1.5: Checking remote: repo-conan-dev-local
[cmake] lzo/2.10: Checking remote: repo-conan-dev-local
[cmake] util-linux-libuuid/2.39.2: Checking remote: repo-conan-dev-local
[cmake] libnl/3.8.0: Checking remote: repo-conan-dev-local
[cmake] bison/3.8.2: Checking remote: repo-conan-dev-local
[cmake] alpaca/0.2.1: Checking remote: repo-conan-dev-local
[cmake] lm-sensors/3.6.0: Checking remote: repo-conan-dev-local
[cmake] lldpd/1.0.18: Checking remote: repo-conan-dev-local
[cmake] editline/3.1: Checking remote: repo-conan-dev-local
[cmake] termcap/1.3.1: Checking remote: repo-conan-dev-local
[cmake] cxxopts/3.2.0: Checking remote: repo-conan-dev-local
[cmake] boost/1.83.0: Checking remote: repo-conan-dev-local
[cmake] libbacktrace/cci.20210118: Checking remote: repo-conan-dev-local
[cmake] b2/5.2.1: Checking remote: repo-conan-dev-local
[cmake] sysrepo-cpp/3.0.0: Checking remote: repo-conan-dev-local
[cmake] sysrepo/2.11.7: Checking remote: repo-conan-dev-local
[cmake] libyang/3.4.2: Checking remote: repo-conan-dev-local
[cmake] libyang-cpp/3.0.0: Checking remote: repo-conan-dev-local
[cmake] sysrepo-plugins/2.1.6: Checking remote: repo-conan-dev-local
[cmake] srpcpp/0.1.0.xxx.3: Checking remote: repo-conan-dev-local
[cmake] nl-wrapper/4.2.0: Checking remote: repo-conan-dev-local
[cmake] time-sync-manager/2.4.0: Checking remote: repo-conan-dev-local
[cmake] jsoncpp/1.9.5: Checking remote: repo-conan-dev-local
[cmake] libgpiod/1.6.3: Checking remote: repo-conan-dev-local
[cmake] linux-headers-generic/6.6.37: Checking remote: repo-conan-dev-local
[cmake] pkgconf/2.0.3: Checking remote: repo-conan-dev-local
[cmake] autoconf-archive/2022.09.03: Checking remote: repo-conan-dev-local
[cmake] dummy-shared/2.42.0.5-alpha.0: Checking remote: repo-conan-dev-local
[cmake] device-fsbc/1.6.0: Checking remote: repo-conan-dev-local
[cmake] power-mgmt/2.0.0: Checking remote: repo-conan-dev-local
[cmake] device-pwrc/4.4.2: Checking remote: repo-conan-dev-local
[cmake] hw-support/1.5.0: Checking remote: repo-conan-dev-local
[cmake] libubootenv/0.3.3: Checking remote: repo-conan-dev-local
[cmake] libblkid/2.39.2: Checking remote: repo-conan-dev-local
[cmake] mtd-info/1.0.6: Checking remote: repo-conan-dev-local
[cmake] Graph root
[cmake]     conanfile.py (ip-mgmt/2.2.0): /workspaces/dev/ip-mgmt/conanfile.py
[cmake] Requirements
[cmake]     alpaca/0.2.1#04c99741d60dd6e6c1a409cc6f17f063 - Cache (repo-conan-dev-local)
[cmake]     boost/1.83.0#57ac70a51dc4393c0bc26b25600aa176 - Cache (repo-conan-dev-local)
[cmake]     bzip2/1.0.8#8779e3ee0cf27649212cd3fc0db4438b - Cache (repo-conan-dev-local)
[cmake]     cpp-wrapper/4.14.2#5605edb5acd140c4d18443803e133496 - Cache (repo-conan-dev-local)
[cmake]     cxxopts/3.2.0#2f42e0b613b88dc04582c673907712fd - Cache (repo-conan-dev-local)
[cmake]     editline/3.1#73fcd798af05e0293518d8b17fea0a65 - Cache (repo-conan-dev-local)
[cmake]     xxx-build-files/2.1.0#d58a07f5456987599695339cdaaf299b - Cache (repo-conan-dev-local)
[cmake]     xxx-shared/2.19.0#40d7ba5499dbbbbdff2542001de9e59d - Cache (repo-conan-dev-local)
[cmake]     hw-info/4.2.3#e44824dd8004fa177ea0554a95e219fb - Cache (repo-conan-dev-local)
[cmake]     libbacktrace/cci.20210118#ba84656d36d95b6498cf23b3ff309457 - Cache (repo-conan-dev-local)
[cmake]     libbsd/0.11.7#b4f348332e75aac81ffb543f18288bb2 - Cache (repo-conan-dev-local)
[cmake]     libcap/2.69#c076309153f498b6c881da151d119373 - Cache (repo-conan-dev-local)
[cmake]     libmd/1.1.0#f8cdfeb46d637075f840aa9ec4829920 - Cache (repo-conan-dev-local)
[cmake]     libmnl/1.0.4#67f1ec0626ec681d0736c8272733aedf - Cache (repo-conan-dev-local)
[cmake]     libmount/2.39.2#f361a001692b786262cf72f7b625cf54 - Cache (repo-conan-dev-local)
[cmake]     libnl/3.8.0#4e68436b240bdf825e921b815c78840a - Cache (repo-conan-dev-local)
[cmake]     libselinux/3.6#86159b1b0f99aa21ac4e52a501492690 - Cache (repo-conan-dev-local)
[cmake]     libsystemd/252.26#7d233ea3f050a95a3734bbf8bc6c2fdb - Cache (repo-conan-dev-local)
[cmake]     libxcrypt/4.4.36#8c550334855cb025189eac5ac764db1e - Cache (repo-conan-dev-local)
[cmake]     libyang/3.4.2#9019ce5ee29325f19018714cf8bc98e5 - Cache (repo-conan-dev-local)
[cmake]     libyang-cpp/3.0.0#16fbdb3963aa03ef42a45ac9b796ac8e - Cache (repo-conan-dev-local)
[cmake]     lldpd/1.0.18#42a08511cbde1407932dc702993df348 - Cache (repo-conan-dev-local)
[cmake]     lm-sensors/3.6.0#f74d430b494c3e54969fc74c9ee40bc1 - Cache (repo-conan-dev-local)
[cmake]     lz4/1.9.4#c5afb86edd69ac0df30e3a9e192e43db - Cache (repo-conan-dev-local)
[cmake]     lzo/2.10#9517fc1bcc4d4cc229a79806003a1baa - Cache (repo-conan-dev-local)
[cmake]     magic_enum/0.9.3#aa8d4b4762b73de1cc18dd6dc44ff6b1 - Cache (repo-conan-dev-local)
[cmake]     mdio-tools/1.3.0#6c49e2832f769d4f9f960da055155c57 - Cache (repo-conan-dev-local)
[cmake]     mtd-utils/2.1.5#68242c177674a50b9dea6900a92a3c5a - Cache (repo-conan-dev-local)
[cmake]     nng/1.5.2#1445c1e7385b08830bd0cb15e403842d - Cache (repo-conan-dev-local)
[cmake]     pcre2/10.42#9db1c7718965b7c7fd31a313331ab716 - Cache (repo-conan-dev-local)
[cmake]     sysrepo/2.11.7#4a5ea90d66e6ff42a9c403b5e51ef4f7 - Cache (repo-conan-dev-local)
[cmake]     sysrepo-cpp/3.0.0#4f08e3895604e5949e654952613d4183 - Cache (repo-conan-dev-local)
[cmake]     termcap/1.3.1#db55088bf8517c27e877554f180b8b3e - Cache (repo-conan-dev-local)
[cmake]     util-linux-libuuid/2.39.2#39432ccf0c42d8833618f2a1a2bd0daa - Cache (repo-conan-dev-local)
[cmake]     xz_utils/5.4.5#a6d90890193dc851fa0d470163271c7a - Cache (repo-conan-dev-local)
[cmake]     zlib/1.3.1#e20364c96c45455608a72543f3a53133 - Cache (repo-conan-dev-local)
[cmake]     zstd/1.5.5#90247064db6580385e6745d033d12c63 - Cache (repo-conan-dev-local)
[cmake] Test requirements
[cmake]     dummy-shared/2.42.0.5-alpha.0#9fc261e33b8356d0443f8799a11d95b2 - Cache (repo-conan-dev-local)
[cmake]     device-fsbc/1.6.0#65a6a87ad6ac592891299a0370181880 - Cache (repo-conan-dev-local)
[cmake]     device-pwrc/4.4.2#76888c543de4181f10af919a133f466a - Cache (repo-conan-dev-local)
[cmake]     xxx-build-files/2.1.0#d58a07f5456987599695339cdaaf299b - Cache (repo-conan-dev-local)
[cmake]     gtest/1.14.0#f9548be18a41ccc6367efcb8146e92be - Cache (repo-conan-dev-local)
[cmake]     hw-support/1.5.0#7bbdb353a55fd9f59462c724bfae472b - Cache (repo-conan-dev-local)
[cmake]     jsoncpp/1.9.5#84500df77b1aee15462049693f055cc8 - Cache (repo-conan-dev-local)
[cmake]     libblkid/2.39.2#c4c1fb97f2106ac44ea6c1ab860ad813 - Cache (repo-conan-dev-local)
[cmake]     libgpiod/1.6.3#56bdc101c0549e43c4b8612fd81b214b - Cache (repo-conan-dev-local)
[cmake]     libubootenv/0.3.3#9e018ef2b1eef9fb84e45d1fc628187e - Cache (repo-conan-dev-local)
[cmake]     linux-headers-generic/6.6.37#17ccfb16590c373e9ce4342383201c14 - Cache (repo-conan-dev-local)
[cmake]     mtd-info/1.0.6#322675e9405ef64d4e65e0890e9e151c - Cache (repo-conan-dev-local)
[cmake]     nl-wrapper/4.2.0#f54dfae4412e4fdabf3a7620fd434801 - Cache (repo-conan-dev-local)
[cmake]     power-mgmt/2.0.0#e603495e13f45cbc7b898b247f091e46 - Cache (repo-conan-dev-local)
[cmake]     srpcpp/0.1.0.xxx.3#91e9f4a0ec1cebcc4df1bf1c65839e05 - Cache (repo-conan-dev-local)
[cmake]     sysrepo-plugins/2.1.6#8e1095cd1e0439ef193195832f40d9e9 - Cache (repo-conan-dev-local)
[cmake]     time-sync-manager/2.4.0#672ba933f9ec3dc9bde6a1c4aeda74cc - Cache (repo-conan-dev-local)
[cmake] Build requirements
[cmake]     autoconf/2.71#1befc79989703cf0bab297b6e0307ca7 - Cache (repo-conan-dev-local)
[cmake]     autoconf-archive/2022.09.03#32a525f605af99d759297ab07ee52d34 - Cache (repo-conan-dev-local)
[cmake]     automake/1.16.5#27a1996f8e84efd37c1bdacd9c8a5d7b - Cache (repo-conan-dev-local)
[cmake]     b2/5.2.1#a33168f1bcf9361c41a2d2de21fd3d36 - Cache (repo-conan-dev-local)
[cmake]     bison/3.8.2#15394364d6963dee0b10459b8f8d17f3 - Cache (repo-conan-dev-local)
[cmake]     xxx-toolchain/1.1.3#8c5b498844ba7ac1ead81785b9bfc802 - Cache (repo-conan-dev-local)
[cmake]     flex/2.6.4#affcf4f12ba095d6b1f7a214db28b1ba - Cache (repo-conan-dev-local)
[cmake]     gnu-config/cci.20210814#12da20e8cf2944f777a9ea286e5adb55 - Cache (repo-conan-dev-local)
[cmake]     gperf/3.1#ff445aa6439915b518b51273775f95d9 - Cache (repo-conan-dev-local)
[cmake]     libtool/2.4.7#95d373ad52578548281f0005dbf36aff - Cache (repo-conan-dev-local)
[cmake]     m4/1.4.19#f418fc0c03d5493b93ecc890159ed48c - Cache (repo-conan-dev-local)
[cmake]     meson/1.2.2#2e828e6f183b9d6e1d7b2d51fcede039 - Cache (repo-conan-dev-local)
[cmake]     meson/1.4.0#2e828e6f183b9d6e1d7b2d51fcede039 - Cache (repo-conan-dev-local)
[cmake]     ninja/1.11.1#cd30ca226f2040a979c359ebca4817d5 - Cache (repo-conan-dev-local)
[cmake]     pkgconf/2.0.3#eeea4dbd2877aea7d92676a1d0ae4d48 - Cache (repo-conan-dev-local)
[cmake]     pkgconf/2.1.0#89cc09d86584f09a5fc7bd831df72196 - Cache (repo-conan-dev-local)
[cmake]     pkgconf/2.2.0#5e854f942ebcc70b14760792fc2d5c37 - Cache (repo-conan-dev-local)
[cmake] Python requires
[cmake]     xxx-conan-base/2.1.8#ac455a8890de70d83c1708e4ad554d8a - Cache (repo-conan-dev-local)
[cmake] Resolved version ranges
[cmake]     b2/[>=5.2 <6]: b2/5.2.1
[cmake]     cpp-wrapper/[>=4.3.0 <5.0.0]: cpp-wrapper/4.14.2
[cmake]     device-fsbc/[>=1.4.0 <2.0.0]: device-fsbc/1.6.0
[cmake]     device-pwrc/[>=4.0.0 <5.0.0]: device-pwrc/4.4.2
[cmake]     xxx-build-files/[>=2.0.0 <3.0.0]: xxx-build-files/2.1.0
[cmake]     xxx-conan-base/[>=2.0.0 <3.0.0]: xxx-conan-base/2.1.8
[cmake]     xxx-shared/[>=2.0.0 <3.0.0]: xxx-shared/2.19.0
[cmake]     xxx-toolchain/[>=1.0.0 <2.0.0]: xxx-toolchain/1.1.3
[cmake]     hw-info/[>=4.0.0 <5.0.0]: hw-info/4.2.3
[cmake]     hw-support/[>=1.0.0 <2.0.0]: hw-support/1.5.0
[cmake]     mtd-info/[>=1.0.1 <2.0.0]: mtd-info/1.0.6
[cmake]     nl-wrapper/[>=4.2.0 <5.0.0]: nl-wrapper/4.2.0
[cmake]     pkgconf/[>=2.2 <3]: pkgconf/2.2.0
[cmake]     power-mgmt/[>=2.0.0 <3.0.0]: power-mgmt/2.0.0
[cmake]     sysrepo-plugins/[>=2.0.0 <3.0.0]: sysrepo-plugins/2.1.6
[cmake]     time-sync-manager/[>=2.2.1 <3.0.0]: time-sync-manager/2.4.0
[cmake]     zlib/[>=1.2.11 <2]: zlib/1.3.1
[cmake] 
[cmake] ======== Computing necessary packages ========
[cmake] Requirements
[cmake]     alpaca/0.2.1#04c99741d60dd6e6c1a409cc6f17f063:da39a3ee5e6b4b0d3255bfef95601890afd80709#8fb1d982fa5318c3f5fa7faf4ff08dd3 - Cache
[cmake]     boost/1.83.0#57ac70a51dc4393c0bc26b25600aa176:141a02c42499b99681afa379af2f6d733404f99c#7b1331c5a8e338fde03e4dbb3f2c2c91 - Cache
[cmake]     bzip2/1.0.8#8779e3ee0cf27649212cd3fc0db4438b:867e3facb8041d6ee0b7e6fe9486d5d24fdacca0#9c6c1664cd6e57be7d6f36d0599557ab - Cache
[cmake]     cpp-wrapper/4.14.2#5605edb5acd140c4d18443803e133496:da39a3ee5e6b4b0d3255bfef95601890afd80709#420b6d5d77e47f4edf2215dbf26cf587 - Cache
[cmake]     cxxopts/3.2.0#2f42e0b613b88dc04582c673907712fd:da39a3ee5e6b4b0d3255bfef95601890afd80709#c8627de67f989fcb71bf5fc42d1ce8e5 - Cache
[cmake]     editline/3.1#73fcd798af05e0293518d8b17fea0a65:d6f3620910409da29db3c93d529a2cb1461adf53#dd8157fc89b796c71bf35da836dd4f20 - Cache
[cmake]     xxx-build-files/2.1.0#d58a07f5456987599695339cdaaf299b:da39a3ee5e6b4b0d3255bfef95601890afd80709#0652a5cc3216823665f458cc5fffee55 - Cache
[cmake]     xxx-shared/2.19.0#40d7ba5499dbbbbdff2542001de9e59d:90f4c7e494b26225c6d7b0e41cba30f389c40f16#d21a3ba54d47745a53447cfe3397d9ff - Cache
[cmake]     hw-info/4.2.3#e44824dd8004fa177ea0554a95e219fb:3485d53bcd49fed41ae2cf618a42eb279b8f3914#c5952752ee486c9fc955bcb9cb13b57f - Cache
[cmake]     libbacktrace/cci.20210118#ba84656d36d95b6498cf23b3ff309457:7c8cfad338f72002bdf1a9bb397d98f3c423029e#37c8c2937a30609f07f77b570f0f527c - Cache
[cmake]     libbsd/0.11.7#b4f348332e75aac81ffb543f18288bb2:d346287f95173dd49f64550e930556d62b9e288f#1f0b7e56d4f1066aee1808cc3bb90217 - Cache
[cmake]     libcap/2.69#c076309153f498b6c881da151d119373:86a69f7cd747f7c98600f5b321090d8112ed19a2#26cbdc8ad2c944499cc3c391631c41a0 - Cache
[cmake]     libmd/1.1.0#f8cdfeb46d637075f840aa9ec4829920:7c8cfad338f72002bdf1a9bb397d98f3c423029e#8e855e7404f6fff4fffe18b5f227cbef - Cache
[cmake]     libmnl/1.0.4#67f1ec0626ec681d0736c8272733aedf:7c8cfad338f72002bdf1a9bb397d98f3c423029e#e3d654e98e1cf1fc16ae88507fabe120 - Cache
[cmake]     libmount/2.39.2#f361a001692b786262cf72f7b625cf54:7c8cfad338f72002bdf1a9bb397d98f3c423029e#0544cf6ff1a7d501261985d4db6fe9b7 - Cache
[cmake]     libnl/3.8.0#4e68436b240bdf825e921b815c78840a:7c8cfad338f72002bdf1a9bb397d98f3c423029e#f6c8bee97e1e9af78180c97fcdd07373 - Cache
[cmake]     libselinux/3.6#86159b1b0f99aa21ac4e52a501492690:9d78e4f017001d8c5de677a1f675bdbc56af2811#1b76b5950034de9bfa17832b89cfc14c - Cache
[cmake]     libsystemd/252.26#7d233ea3f050a95a3734bbf8bc6c2fdb:6bad9ecbfebc2bcc7a762d538f4169a86be43cb6#7be5da887a9c688253c75f55e47ef830 - Cache
[cmake]     libxcrypt/4.4.36#8c550334855cb025189eac5ac764db1e:7c8cfad338f72002bdf1a9bb397d98f3c423029e#e9a6d4dab0ba4124c86a29d993683288 - Cache
[cmake]     libyang-cpp/3.0.0#16fbdb3963aa03ef42a45ac9b796ac8e:465310ddeb0e024942d407fcc2a7fc48606b1730#66c04ca2fe690dc7d70727eeba80c2fd - Cache
[cmake]     libyang/3.4.2#9019ce5ee29325f19018714cf8bc98e5:9d78e4f017001d8c5de677a1f675bdbc56af2811#b13b6f8b369046d2c69558655e4b53fd - Cache
[cmake]     lldpd/1.0.18#42a08511cbde1407932dc702993df348:2c3cef08f1756c1cb323fb9c375052a446c4fed2#074eb48c29bf5f0a5386feae31bfa050 - Cache
[cmake]     lm-sensors/3.6.0#f74d430b494c3e54969fc74c9ee40bc1:4dfe2d6ffd00c6c6f4daa64441030231c63ce18e#cbef762ffac2f0f34d115356dce5dea7 - Cache
[cmake]     lz4/1.9.4#c5afb86edd69ac0df30e3a9e192e43db:7c8cfad338f72002bdf1a9bb397d98f3c423029e#219685c9f53a665779a47379a8453f18 - Cache
[cmake]     lzo/2.10#9517fc1bcc4d4cc229a79806003a1baa:7c8cfad338f72002bdf1a9bb397d98f3c423029e#ecb1701e1921ff3305be3f7e9aa51d79 - Cache
[cmake]     magic_enum/0.9.3#aa8d4b4762b73de1cc18dd6dc44ff6b1:da39a3ee5e6b4b0d3255bfef95601890afd80709#78bd9152e3c1d22c9ffa51e2a37f9ff2 - Cache
[cmake]     mdio-tools/1.3.0#6c49e2832f769d4f9f960da055155c57:75dcd0969bfd5c53ebcdf957e985cb085c39209a#d1a782f2abb2119b53ec399929438e47 - Cache
[cmake]     mtd-utils/2.1.5#68242c177674a50b9dea6900a92a3c5a:df0f09fec1aacffdd86bd7f403f43d2c8f5a09f4#44fc4ea48940ed81dd823c4709cbfed5 - Cache
[cmake]     nng/1.5.2#1445c1e7385b08830bd0cb15e403842d:b9d7bf1b761a9b20836156c6ee1458010ccdb4b3#7305b30f8fd630f6a1f9565ee509ddc6 - Cache
[cmake]     pcre2/10.42#9db1c7718965b7c7fd31a313331ab716:48b608c466956811796d28d85c80a4a20c82f81b#0b2f7446f4582818d0e616a0cc693665 - Cache
[cmake]     sysrepo-cpp/3.0.0#4f08e3895604e5949e654952613d4183:0f712966b574dcc6fefc24afc6e22296c5e4e8c8#639dda3b160b5fde9e61f401b7653733 - Cache
[cmake]     sysrepo/2.11.7#4a5ea90d66e6ff42a9c403b5e51ef4f7:ef483e8783f63c5d88511f0862cd869faa6ccdce#5bc7650cc2ea778a57e81abfc2c2b8f7 - Cache
[cmake]     termcap/1.3.1#db55088bf8517c27e877554f180b8b3e:7c8cfad338f72002bdf1a9bb397d98f3c423029e#ae9ce30daa71db800e935973ac931b99 - Cache
[cmake]     util-linux-libuuid/2.39.2#39432ccf0c42d8833618f2a1a2bd0daa:7c8cfad338f72002bdf1a9bb397d98f3c423029e#73f4131764f671e4d3ecbc5568b86af9 - Cache
[cmake]     xz_utils/5.4.5#a6d90890193dc851fa0d470163271c7a:7c8cfad338f72002bdf1a9bb397d98f3c423029e#b1795b7e81ac8cb40104235e161b6a93 - Cache
[cmake]     zlib/1.3.1#e20364c96c45455608a72543f3a53133:7c8cfad338f72002bdf1a9bb397d98f3c423029e#9c6cccc323f4466be72238bb71e317fb - Cache
[cmake]     zstd/1.5.5#90247064db6580385e6745d033d12c63:44b6dbd218c0cec3669040dbfe69063bfa7a1b7b#3d1ac19f5c6c74eb682f33af12dc1d4e - Cache
[cmake] Test requirements
[cmake]     dummy-shared/2.42.0.5-alpha.0#9fc261e33b8356d0443f8799a11d95b2:4dfe2d6ffd00c6c6f4daa64441030231c63ce18e#5418ee1c530585c1d37ad965e5dc8950 - Cache
[cmake]     device-fsbc/1.6.0#65a6a87ad6ac592891299a0370181880:d89f5d9155aef0e5b8c0849920882b946e4414a1#52a9f53e34f41a5897335900cc679f88 - Cache
[cmake]     device-pwrc/4.4.2#76888c543de4181f10af919a133f466a:3485d53bcd49fed41ae2cf618a42eb279b8f3914#71a45fbfa91101fb2894a2a118ede333 - Cache
[cmake]     gtest/1.14.0#f9548be18a41ccc6367efcb8146e92be:2db7f4f4316e8597c74fde0662366ec367d9b8ef#bc4591f9e8aebeb6ee64c79b76070b5f - Cache
[cmake]     hw-support/1.5.0#7bbdb353a55fd9f59462c724bfae472b:a0e7c6a31a51918b2af876f73ce102694b9649ae#7b0394c26eee3fbeacd7f52aff314655 - Cache
[cmake]     jsoncpp/1.9.5#84500df77b1aee15462049693f055cc8:a1bd43909725bdfa7e7b5b0b17f24bf1df455c30#6a8c7986455c0f9e472dbc65c415bc0e - Cache
[cmake]     libblkid/2.39.2#c4c1fb97f2106ac44ea6c1ab860ad813:a1bd43909725bdfa7e7b5b0b17f24bf1df455c30#cec8791932aaf1524703e9fa8dc86a17 - Cache
[cmake]     libgpiod/1.6.3#56bdc101c0549e43c4b8612fd81b214b:75ff15fd76fa06f1d078b508c5ca83ef5eb2a816#df28966a7b3b964c0e9b103404f11133 - Cache
[cmake]     libubootenv/0.3.3#9e018ef2b1eef9fb84e45d1fc628187e:9b0bbd6ecb2941a8ce0a173f6cd8de02e2d2cc08#1cc96ab575f2cdbf0d24cd5a7e91c192 - Cache
[cmake]     mtd-info/1.0.6#322675e9405ef64d4e65e0890e9e151c:3485d53bcd49fed41ae2cf618a42eb279b8f3914#86e0a07888cbfed6a0e1357c391cc153 - Cache
[cmake]     nl-wrapper/4.2.0#f54dfae4412e4fdabf3a7620fd434801:3485d53bcd49fed41ae2cf618a42eb279b8f3914#79d300258a3441fe96e70bb9d75c6e33 - Cache
[cmake]     power-mgmt/2.0.0#e603495e13f45cbc7b898b247f091e46:1981e676d99efc7656ba5151dd25dad1235d4a2a#fe051375c5b380f0f4b379622628bb8e - Cache
[cmake]     srpcpp/0.1.0.xxx.3#91e9f4a0ec1cebcc4df1bf1c65839e05:f5632415be3c105b869b56bff8a0695a2b2e932e#91101073d7dc620c55416f9fb17a0ecb - Cache
[cmake]     sysrepo-plugins/2.1.6#8e1095cd1e0439ef193195832f40d9e9:aeef291890f04eb9cf2ec4c3bd2dcbd52839ccbd#9ddcd82a1fc84d009dd587c6516138b6 - Cache
[cmake]     time-sync-manager/2.4.0#672ba933f9ec3dc9bde6a1c4aeda74cc:eb00702238ec8ac98743a0c8d905c5a0b05a97c9#21b9ada81dc58e40408a3a52e0fcb035 - Cache
[cmake] Build requirements
[cmake]     xxx-toolchain/1.1.3#8c5b498844ba7ac1ead81785b9bfc802:62e589af96a19807968167026d906e63ed4de1f5#0c07ecbff4de677eae205e4229a05aac - Cache
[cmake] Skipped binaries
[cmake]     xxx-build-files/2.1.0, linux-headers-generic/6.6.37, autoconf-archive/2022.09.03, autoconf/2.71, automake/1.16.5, b2/5.2.1, bison/3.8.2, flex/2.6.4, gnu-config/cci.20210814, gperf/3.1, libtool/2.4.7, m4/1.4.19, meson/1.2.2, meson/1.4.0, ninja/1.11.1, pkgconf/2.0.3, pkgconf/2.1.0, pkgconf/2.2.0
[cmake] 
[cmake] ======== Installing packages ========
[cmake] alpaca/0.2.1: Already installed! (1 of 53)
[cmake] dummy-shared/2.42.0.5-alpha.0: Already installed! (2 of 53)
[cmake] bzip2/1.0.8: Already installed! (3 of 53)
[cmake] cxxopts/3.2.0: Already installed! (4 of 53)
[cmake] xxx-build-files/2.1.0: Already installed! (5 of 53)
[cmake] xxx-toolchain/1.1.3: Already installed! (6 of 53)
[cmake] gtest/1.14.0: Already installed! (7 of 53)
[cmake] jsoncpp/1.9.5: Already installed! (8 of 53)
[cmake] libbacktrace/cci.20210118: Already installed! (9 of 53)
[cmake] libblkid/2.39.2: Already installed! (10 of 53)
[cmake] libcap/2.69: Already installed! (11 of 53)
[cmake] libmd/1.1.0: Already installed! (12 of 53)
[cmake] libmnl/1.0.4: Already installed! (13 of 53)
[cmake] libmount/2.39.2: Already installed! (14 of 53)
[cmake] lz4/1.9.4: Already installed! (15 of 53)
[cmake] lzo/2.10: Already installed! (16 of 53)
[cmake] magic_enum/0.9.3: Already installed! (17 of 53)
[cmake] nng/1.5.2: Already installed! (18 of 53)
[cmake] termcap/1.3.1: Already installed! (19 of 53)
[cmake] util-linux-libuuid/2.39.2: Already installed! (20 of 53)
[cmake] xz_utils/5.4.5: Already installed! (21 of 53)
[cmake] zlib/1.3.1: Already installed! (22 of 53)
[cmake] zstd/1.5.5: Already installed! (23 of 53)
[cmake] libnl/3.8.0: Already installed! (24 of 53)
[cmake] lm-sensors/3.6.0: Already installed! (25 of 53)
[cmake] libgpiod/1.6.3: Already installed! (26 of 53)
[cmake] libxcrypt/4.4.36: Already installed! (27 of 53)
[cmake] boost/1.83.0: Already installed! (28 of 53)
[cmake] editline/3.1: Already installed! (29 of 53)
[cmake] libubootenv/0.3.3: Already installed! (30 of 53)
[cmake] pcre2/10.42: Already installed! (31 of 53)
[cmake] pcre2/10.42: Appending PATH environment variable: /home/user/.conan2/p/pcre2dfd32727a9e4a/p/bin
[cmake] libbsd/0.11.7: Already installed! (32 of 53)
[cmake] mdio-tools/1.3.0: Already installed! (33 of 53)
[cmake] mtd-utils/2.1.5: Already installed! (34 of 53)
[cmake] libyang/3.4.2: Already installed! (35 of 53)
[cmake] libselinux/3.6: Already installed! (36 of 53)
[cmake] lldpd/1.0.18: Already installed! (37 of 53)
[cmake] libyang-cpp/3.0.0: Already installed! (38 of 53)
[cmake] libsystemd/252.26: Already installed! (39 of 53)
[cmake] xxx-shared/2.19.0: Already installed! (40 of 53)
[cmake] sysrepo/2.11.7: Already installed! (41 of 53)
[cmake] cpp-wrapper/4.14.2: Already installed! (42 of 53)
[cmake] sysrepo-cpp/3.0.0: Already installed! (43 of 53)
[cmake] device-fsbc/1.6.0: Already installed! (44 of 53)
[cmake] device-pwrc/4.4.2: Already installed! (45 of 53)
[cmake] hw-info/4.2.3: Already installed! (46 of 53)
[cmake] mtd-info/1.0.6: Already installed! (47 of 53)
[cmake] nl-wrapper/4.2.0: Already installed! (48 of 53)
[cmake] srpcpp/0.1.0.xxx.3: Already installed! (49 of 53)
[cmake] hw-support/1.5.0: Already installed! (50 of 53)
[cmake] time-sync-manager/2.4.0: Already installed! (51 of 53)
[cmake] power-mgmt/2.0.0: Already installed! (52 of 53)
[cmake] ERROR: power-mgmt/2.0.0: required component package 'magic_enum::' not in dependencies

@tbsuht
Copy link
Author

tbsuht commented Nov 13, 2024

The conanfile is using python_requires/python_requires_extend if that could be important.

@memsharded
Copy link
Member

First thing I suspected was if magic_enum was being skipped, but it is not:

Skipped binaries
     xxx-build-files/2.1.0, linux-headers-generic/6.6.37, autoconf-archive/2022.09.03, autoconf/2.71, automake/1.16.5, b2/5.2.1, bison/3.8.2, flex/2.6.4, gnu-config/cci.20210814, gperf/3.1, libtool/2.4.7, m4/1.4.19, meson/1.2.2, meson/1.4.0, ninja/1.11.1, pkgconf/2.0.3, pkgconf/2.1.0, pkgconf/2.2.0

The code that is being triggered is:

        # Only direct host (not test) dependencies can define required components
        # We use conanfile.dependencies to use the already replaced ones by "replace_requires"
        # So consumers can keep their ``self.cpp_info.requires = ["pkg_name::comp"]``
        direct_dependencies = [r.ref.name for r, d in conanfile.dependencies.items() if r.direct
                               and not r.build and not r.is_test and r.visible and not r.override]

        for e in external:
            if e not in direct_dependencies:
                raise ConanException(
                    f"{conanfile}: required component package '{e}::' not in dependencies")

But this should happen if self.requires("magic_enum/0.9.3", transitive_headers=True) is the exact requires().

Can you please add the following to the generate() code of your power-mgmt/2.0.0 package recipe?

def generate(self):
    ... 
    for r, d in self.dependencies.items(): 
            self.output.info(f"Requirement {r}")
            self.output.info(f"Is test {r.is_test} is override {r.override}")

Run again and share the output?

@tbsuht
Copy link
Author

tbsuht commented Nov 14, 2024

@memsharded The error seems to be triggered before generate() is called, I can't see the output in the logs, or?

@tbsuht
Copy link
Author

tbsuht commented Nov 14, 2024

@memsharded Sorry, I didn't read your instructions correctly and executed it for the wrong project.

That's the output for power-mgmt/2.0.0:

[cmake] conanfile.py (power-mgmt/2.0.0): Requirement device-pwrc/4.4.2, Traits: build=False, headers=True, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement hw-support/1.5.0, Traits: build=False, headers=True, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement libubootenv/0.3.3, Traits: build=False, headers=False, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement libblkid/2.39.2, Traits: build=False, headers=False, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement mtd-info/1.0.6, Traits: build=False, headers=False, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement hw-info/4.2.3, Traits: build=False, headers=True, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement cxxopts/3.2.0, Traits: build=False, headers=True, libs=True, run=False, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement cpp-wrapper/4.14.2, Traits: build=False, headers=True, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement xxx-shared/2.19.0, Traits: build=False, headers=True, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement nng/1.5.2, Traits: build=False, headers=True, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement mdio-tools/1.3.0, Traits: build=False, headers=True, libs=True, run=False, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement libmnl/1.0.4, Traits: build=False, headers=True, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement mtd-utils/2.1.5, Traits: build=False, headers=True, libs=True, run=False, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement lzo/2.10, Traits: build=False, headers=False, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement util-linux-libuuid/2.39.2, Traits: build=False, headers=False, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement libnl/3.8.0, Traits: build=False, headers=True, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement lm-sensors/3.6.0, Traits: build=False, headers=True, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement lldpd/1.0.18, Traits: build=False, headers=True, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement libbsd/0.11.7, Traits: build=False, headers=False, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement libmd/1.1.0, Traits: build=False, headers=False, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement editline/3.1, Traits: build=False, headers=False, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement termcap/1.3.1, Traits: build=False, headers=False, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement alpaca/0.2.1, Traits: build=False, headers=True, libs=True, run=False, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement sysrepo-cpp/3.0.0, Traits: build=False, headers=True, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement sysrepo/2.11.7, Traits: build=False, headers=False, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement libsystemd/252.26, Traits: build=False, headers=True, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement libcap/2.69, Traits: build=False, headers=False, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement libmount/2.39.2, Traits: build=False, headers=False, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement libxcrypt/4.4.36, Traits: build=False, headers=False, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement libselinux/3.6, Traits: build=False, headers=False, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement lz4/1.9.4, Traits: build=False, headers=False, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement xz_utils/5.4.5, Traits: build=False, headers=False, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement zstd/1.5.5, Traits: build=False, headers=False, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement libyang-cpp/3.0.0, Traits: build=False, headers=True, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement libyang/3.4.2, Traits: build=False, headers=True, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement pcre2/10.42, Traits: build=False, headers=True, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement zlib/1.3.1, Traits: build=False, headers=False, libs=True, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement bzip2/1.0.8, Traits: build=False, headers=False, libs=False, run=True, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement magic_enum/0.9.3, Traits: build=False, headers=True, libs=True, run=False, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test True is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement xxx-toolchain/1.1.3, Traits: build=True, headers=False, libs=False, run=True, visible=False
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement xxx-build-files/2.1.0, Traits: build=False, headers=False, libs=False, run=True, visible=False
[cmake] conanfile.py (power-mgmt/2.0.0): Is test None is override False
[cmake] conanfile.py (power-mgmt/2.0.0): Requirement gtest/1.14.0, Traits: build=False, headers=True, libs=True, run=True, visible=False
[cmake] conanfile.py (power-mgmt/2.0.0): Is test True is override False

@tbsuht
Copy link
Author

tbsuht commented Nov 14, 2024

[cmake] conanfile.py (power-mgmt/2.0.0): Requirement magic_enum/0.9.3, Traits: build=False, headers=True, libs=True, run=False, visible=True
[cmake] conanfile.py (power-mgmt/2.0.0): Is test True is override False

Hm I could find that hw-info/4.2.3 in the dependency tree is using self.test_requires("magic_enum/0.9.3")

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

No branches or pull requests

3 participants