All of lore.kernel.org
 help / color / mirror / Atom feed
* 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

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.