public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* DISTRO is set too late
@ 2018-10-23  9:05 Harald Seiler
  2018-10-23  9:48 ` Maxim Yu. Osipov
  0 siblings, 1 reply; 7+ messages in thread
From: Harald Seiler @ 2018-10-23  9:05 UTC (permalink / raw)
  To: isar-users

I am currently porting our layer to `next`.  While doing so, I got
a build failure from c8e63614 (base-apt: Introduce base implementation):

bb.data_smart.ExpansionError: Failure expanding variable DISTRO_SUITE,
[...] triggered Exception IndexError: list index out of range

The offending line looks like this (base-apt-helper.bbclass):

DISTRO_SUITE ?= "${@ d.getVar('DISTRO', True).split('-')[1]}"

This would work perfectly if $DISTRO was already set to the distro from
multiconf, but because that seems to happen later on, $DISTRO is still
`poky` at this point.

Am I doing something wrong or does this need to be fixed upstream?

-- 
Harald

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-62  Fax: +49-8142-66989-80   Email: hws@denx.de 


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-10-30 15:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-23  9:05 DISTRO is set too late Harald Seiler
2018-10-23  9:48 ` Maxim Yu. Osipov
2018-10-23 10:10   ` Harald Seiler
2018-10-23 11:34     ` Maxim Yu. Osipov
2018-10-23 12:37       ` Harald Seiler
2018-10-25 13:21         ` Jan Kiszka
2018-10-30 15:56           ` Harald Seiler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox