On Fri, 2023-03-24 at 16:36 +0800, Xiangyu Chen wrote: > From: Xiangyu Chen <xiangyu.c...@windriver.com> > > Currently, the latest version abseil-cpp contains a new library named > "absl_log_internal_format", it's > basic package config(.pc file) as below: > > prefix=/usr > exec_prefix=${prefix} > > ...... > > Requires: absl_config = 20230125, absl_core_headers = 20230125, > absl_log_internal_append_truncated = 20230125, > absl_log_internal_config = 20230125, absl_log_internal_globals = 20230125, > absl_log_severity = 20230125, > absl_strings = 20230125, absl_str_format = 20230125, absl_time = 20230125, > absl_span = 20230125 > ...... > > Normally, the process_pkgconfig() would process variable data before field > data in a .pc file, but in the > absl_log_internal_format, the field data in "Requires" section contains "xxxx > = xxxx" format, the > process_pkgconfig() treats them as normal variable and using the setVar() in > bitbake's data_smart.py > try to process. The absl_log_internal_format field data contains "_append_", > this hit the setVar() checking > and finally bitbake stop building and reporting an error as below: > > "Variable xxx contains an operation using the old override syntax. Please > convert this layer/metadata before attempting to use with a newer bitbake." > > This patch move the field data process before variable process to avoid the > process_pkgconfig() treat the field > data as variable. > > Signed-off-by: Xiangyu Chen <xiangyu.c...@windriver.com> > --- > > Changes: > V1 -> V2: changing the package.py instead of bitbake's data_smart.py > v1 thread please > refer:https://lists.openembedded.org/g/bitbake-devel/message/14525
This looks like a much better fix than the workaround in v1, thanks! Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#179026): https://lists.openembedded.org/g/openembedded-core/message/179026 Mute This Topic: https://lists.openembedded.org/mt/97819474/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-