* Trying to filter out 2 strings from EXTRA_OECONF, why doesn't this work?
@ 2017-11-16 22:37 Matt Schepers
2017-11-17 7:03 ` Alexander Kanavin
0 siblings, 1 reply; 4+ messages in thread
From: Matt Schepers @ 2017-11-16 22:37 UTC (permalink / raw)
To: yocto@yoctoproject.org
I would like to filter out two configure flags from EXTRA_OECONF in a
.bbappend. When I filter out only one everything works, when I do the same
thing twice it doesn't.
Here is the .bbappend that works:
EXTRA_OECONF := "${@oe_filter_out('--with-term=rxvt', '${EXTRA_OECONF}', d)}"
EXTRA_OECONF += " --enable-256-color"
Here is the .bbappend that doesn't work:
EXTRA_OECONF := "${@oe_filter_out('--with-term=rxvt', '${EXTRA_OECONF}', d)}"
EXTRA_OECONF := "${@oe_filter_out('--with-name=rxvt', '${EXTRA_OECONF}', d)}"
EXTRA_OECONF += " --enable-256-color"
Here is the error at the command line for the one doesn't work:
Loading cache: 100% |###########################################################################################################################################################################################################| Time: 0:00:00
Loaded 2806 entries from dependency cache.
ERROR: ExpansionError during parsing /home/matt/nitrogen6x/yocto/meta/poky/meta/recipes-sato/rxvt-unicode/rxvt-unicode_9.22.bb | ETA: --:--:--
Traceback (most recent call last):
bb.data_smart.ExpansionError: Failure expanding variable EXTRA_OECONF[:=], expression was ${@oe_filter_out('--with-name=rxvt', '${@oe_filter_out('--with-term=rxvt', '--enable-xim --enable-utmp --enable-wtmp --enable-lastlog --with-term=rxvt --enable-keepscrolling --enable-xft --with-name=rxvt --enable-frills --enable-swapscreen --enable-transparency --with-codesets=eu --enable-pointer-blank --enable-text-blink --enable-rxvt-scroll --enable-combining --disable-perl --with-x=/home/matt/nitrogen6x/yocto/build/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/rxvt-unicode/%-r0/recipe-sysroot/usr --disable-static ${PACKAGECONFIG_CONFARGS}', d)} --disable-static ${PACKAGECONFIG_CONFARGS}', d)} which triggered exception SyntaxError: invalid syntax (EXTRA_OECONF[:=], line 1)
Question 1)
Why doesn't this work?
Question 2)
What do I have to do to filter out BOTH configure flags. I realize I can just write a new recipe, but I don't think that's the "correct" answer.
Thank you.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Trying to filter out 2 strings from EXTRA_OECONF, why doesn't this work?
2017-11-16 22:37 Trying to filter out 2 strings from EXTRA_OECONF, why doesn't this work? Matt Schepers
@ 2017-11-17 7:03 ` Alexander Kanavin
2017-11-17 17:07 ` Matt Schepers
0 siblings, 1 reply; 4+ messages in thread
From: Alexander Kanavin @ 2017-11-17 7:03 UTC (permalink / raw)
To: Matt Schepers, yocto@yoctoproject.org
On 11/17/2017 12:37 AM, Matt Schepers wrote:
> What do I have to do to filter out BOTH configure flags. I realize I can just write a new recipe, but I don't think that's the "correct" answer.
The best way to fix this is to modify the original recipe so that all
three options become PACKAGECONFIG-configurable, and submit the patch to
whoever maintains the recipe.
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Trying to filter out 2 strings from EXTRA_OECONF, why doesn't this work?
2017-11-17 7:03 ` Alexander Kanavin
@ 2017-11-17 17:07 ` Matt Schepers
2017-11-20 11:34 ` Ola x Nilsson
0 siblings, 1 reply; 4+ messages in thread
From: Matt Schepers @ 2017-11-17 17:07 UTC (permalink / raw)
To: Alexander Kanavin, yocto@yoctoproject.org
I ended up completely overriding EXTRA_OECONF in my .bbappend with the configure flags that I wanted.
I guess I don't understand the order of evaluation in yocto's .bbappend and .bb files. Based on the error I got, problem with double use of := operator, it seems that statements in .bbappend files are not evaluated in order.
________________________________________
From: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Sent: Friday, November 17, 2017 12:03 AM
To: Matt Schepers; yocto@yoctoproject.org
Subject: Re: [yocto] Trying to filter out 2 strings from EXTRA_OECONF, why doesn't this work?
On 11/17/2017 12:37 AM, Matt Schepers wrote:
> What do I have to do to filter out BOTH configure flags. I realize I can just write a new recipe, but I don't think that's the "correct" answer.
The best way to fix this is to modify the original recipe so that all
three options become PACKAGECONFIG-configurable, and submit the patch to
whoever maintains the recipe.
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Trying to filter out 2 strings from EXTRA_OECONF, why doesn't this work?
2017-11-17 17:07 ` Matt Schepers
@ 2017-11-20 11:34 ` Ola x Nilsson
0 siblings, 0 replies; 4+ messages in thread
From: Ola x Nilsson @ 2017-11-20 11:34 UTC (permalink / raw)
To: Matt Schepers, yocto@yoctoproject.org
This is not a typical use of variables in bitbake. I'm not sure whether it is defined behavior or not, but I doubt you'll find many such examples in the yocto layers.
You can write
EXTRA_OECONF_remove = "--with-term=rxvt --with-name=rxvt"
in your bbappend file.
The problem with this style is that you can never add these options again using _append or any of the += operators.
--
Ola Nilsson
________________________________________
From: yocto-bounces@yoctoproject.org <yocto-bounces@yoctoproject.org> on behalf of Matt Schepers <mschepers@telspandata.com>
Sent: Friday, November 17, 2017 18:07
To: Alexander Kanavin; yocto@yoctoproject.org
Subject: Re: [yocto] Trying to filter out 2 strings from EXTRA_OECONF, why doesn't this work?
I ended up completely overriding EXTRA_OECONF in my .bbappend with the configure flags that I wanted.
I guess I don't understand the order of evaluation in yocto's .bbappend and .bb files. Based on the error I got, problem with double use of := operator, it seems that statements in .bbappend files are not evaluated in order.
________________________________________
From: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Sent: Friday, November 17, 2017 12:03 AM
To: Matt Schepers; yocto@yoctoproject.org
Subject: Re: [yocto] Trying to filter out 2 strings from EXTRA_OECONF, why doesn't this work?
On 11/17/2017 12:37 AM, Matt Schepers wrote:
> What do I have to do to filter out BOTH configure flags. I realize I can just write a new recipe, but I don't think that's the "correct" answer.
The best way to fix this is to modify the original recipe so that all
three options become PACKAGECONFIG-configurable, and submit the patch to
whoever maintains the recipe.
Alex
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-11-20 11:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-16 22:37 Trying to filter out 2 strings from EXTRA_OECONF, why doesn't this work? Matt Schepers
2017-11-17 7:03 ` Alexander Kanavin
2017-11-17 17:07 ` Matt Schepers
2017-11-20 11:34 ` Ola x Nilsson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.