Please add support for constructs like: profile A, make.defaults: CFLAGS="-O2 -pipe", profile B, make.defaults: CFLAGS="${CFLAGS} -ggdb", profile C inherits from A and B in that order and wants to have CFLAGS="-O2 -pipe -ggdb" and NOT CFLAGS=" -ggdb". Thanks. From #gentoo-portage (2008-05-11): 23:39 < gk> zmedico: if my profile inherits something setting CFLAGS="-O2 -pipe" and then inherits something setting CFLAGS="${CFLAGS} -ggdb" - shouldn't it work as expected? 23:39 < gk> because right now I get CFLAGS=" -ggdb" as a result :/ 23:40 < antarus> I assume you are talking about make.globals? 23:40 < antarus> er s/globals/defaults/ 23:40 < gk> make.defaults 23:40 < gk> yes 23:40 < zmedico> make.defaults doesn't support variable substitution (at least not across multiple files) 23:41 < zmedico> it might work within one file 23:47 < zmedico> I wouldn't mind supporting normal variable substitution like you tried to do 23:48 < zmedico> if you file a feature request bug for better make.defaults variable substitution then I'll fix it 23:48 < zmedico> it can go into portage-2.1.5 23:49 < zmedico> I expect the patch to be pretty small 23:49 < zmedico> and it makes sense anyway. 23:49 < antarus> indeed it does Reproducible: Always Steps to Reproduce: profile A, make.defaults: CFLAGS="-O2 -pipe", profile B, make.defaults: CFLAGS="${CFLAGS} -ggdb", profile C inherits from A and B in that order. Actual Results: CFLAGS=" -ggdb" Expected Results: CFLAGS="-O2 -pipe -ggdb"
Created attachment 152881 [details, diff] enable variable substitution to work across multiple files
Actually, that patch has some unintended side-effects. I'll have another one in a few minutes.
Created attachment 152883 [details, diff] enable variable substitution to work across multiple files
This is fixed in 2.1.5.