Skip to content

Conversation

@rohieb
Copy link
Contributor

@rohieb rohieb commented Dec 1, 2020

Commits e2180b0 and 8edd760 added support for native builds for the opensc and pcsc-lite recipes, but building opensc-native fails after commit 40b3a51:

ERROR: Required build target 'opensc-native' has no buildable providers.
Missing or unbuildable dependency chain was: ['opensc-native', 'pcsc-lite-lib-native']

The commit in question is correct for target builds, but native builds don't have packages. The -lib part is also provided along with pcsc-lite-native, and there is no pcsc-lite-lib-native package.

Ideally we would fix this in the opensc recipe. However, using syntax like "PACKAGECONFIG_class-native[pcsc]" in the opensc recipe is apparently not possible to overwrite the dependency for a native build, and using RDEPENDS_remove has no effect either – apparently dependencies from PACKAGECONFIG are added after RDEPENDS_remove is evaluated. Therefore let pcsc-lite provide the missing package name for native builds, even if fixing this unrelated package is not the most elegant solution.

This is for dunfell, should I create a separate PR for master?

Commits e2180b0 and 8edd760 added support for
native builds for the opensc and pcsc-lite recipes, but building
opensc-native fails after commit 40b3a51 (2019-12-04,
"opensc: fix RDEPENDS in pcsc PACKAGECONFIG"):

    ERROR: Required build target 'opensc-native' has no buildable providers.
    Missing or unbuildable dependency chain was: ['opensc-native', 'pcsc-lite-lib-native']

The commit in question is correct for target builds, but native builds
don't have packages. The -lib part is also provided along with
pcsc-lite-native, and there is no pcsc-lite-lib-native package.

Ideally we would fix this in the opensc recipe. However, using syntax
like "PACKAGECONFIG_class-native[pcsc]" in the opensc recipe is
apparently not possible to overwrite the dependency for a native build,
and using RDEPENDS_remove has no effect either – apparently dependencies
from PACKAGECONFIG are added after RDEPENDS_remove is evaluated.
Therefore let pcsc-lite provide the missing package name for native
builds, even if fixing this unrelated package is not the most elegant
solution.

Fixes: 40b3a51 (2019-12-04, "opensc: fix RDEPENDS in pcsc PACKAGECONFIG")
Signed-off-by: Roland Hieber <[email protected]>
@akuster
Copy link
Contributor

akuster commented Dec 1, 2020

Yes, Master needs to be fixes first

@rohieb
Copy link
Contributor Author

rohieb commented Dec 8, 2020

OK, master is fixed now via #295.

@rohieb rohieb closed this Dec 13, 2020
@rohieb rohieb deleted the branch openembedded:dunfell December 13, 2020 17:32
@rohieb rohieb deleted the dunfell branch December 13, 2020 17:32
@rohieb rohieb restored the dunfell branch December 13, 2020 23:45
@rohieb
Copy link
Contributor Author

rohieb commented Dec 13, 2020

accidentally deleted the branch...

@rohieb rohieb reopened this Dec 13, 2020
@akuster
Copy link
Contributor

akuster commented Dec 14, 2020

this change is in my testing branch. Just waiting on resources @ home.

https://git.openembedded.org/meta-openembedded-contrib/log/?h=stable/dunfell-nut

@rohieb
Copy link
Contributor Author

rohieb commented Feb 19, 2021

Have resources @ home arrived? 🙂

@akuster
Copy link
Contributor

akuster commented Jul 7, 2021

@akuster akuster closed this Jul 7, 2021
@rohieb rohieb deleted the dunfell branch April 11, 2023 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants