[yocto] Trying to filter out 2 strings from EXTRA_OECONF, why doesn't this work?

Matt Schepers mschepers at telspandata.com
Thu Nov 16 14:37:28 PST 2017


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.





More information about the yocto mailing list