Skip to contentSkip to conversation

questions about bitbake world

DISCUSSION Robert Yang 2 participants 6 messages Apr 10, 2012 – Apr 13, 2012

lore
Share & tools
lore
#0 lore raw

Hello experts,

In the following code:

def buildWorldTargetList(self):
...
for f in self.status.possible_world:
terminal = True
pn = self.status.pkg_fn[f]

for p in pn_provides[pn]:
if p.startswith('virtual/'):
parselog.debug(2, "World build skipping %s due to %s
provider starting with virtual/", f, p)
terminal = False
break
...

Does it mean that if a recipe contains:

PROVIDES = "virtual/something"

Then it would not be built until a pkg depends on it? Why we design it in this way, please?

Signature · 3 lines
Thanks

Robert
#1 lore raw
Quoted 16 lines · Robert Yang

In the following code:

def buildWorldTargetList(self):
...
       for f in self.status.possible_world:
           terminal = True
           pn = self.status.pkg_fn[f]

           for p in pn_provides[pn]:
               if p.startswith('virtual/'):
                   parselog.debug(2, "World build skipping %s due to %s provider starting with virtual/", f, p)
                   terminal = False
                   break
...

Quoted 7 lines

Does it mean that if a recipe contains:

PROVIDES = "virtual/something"

Then it would not be built until a pkg depends on it? Why we design it in this
way, please?

The original intent with world was that when two recipes provided the same thing, we'd still only want to build one of them, not both, as building both can cause problems with stepping on one another in sysroot, etc.

Signature · 1 line
Christopher Larson
#2 lore raw
Quoted 21 lines · Chris Larson
Quoted 20 lines · Robert Yang

In the following code:

def buildWorldTargetList(self):
...
for f in self.status.possible_world:
terminal = True
pn = self.status.pkg_fn[f]

for p in pn_provides[pn]:
if p.startswith('virtual/'):
parselog.debug(2, "World build skipping %s due to %s
provider starting with virtual/", f, p)
terminal = False
break
...

Does it mean that if a recipe contains:

PROVIDES = "virtual/something"

Quoted 8 lines
Quoted 3 lines

Then it would not be built until a pkg depends on it? Why we design it in this
way, please?

The original intent with world was that when two recipes provided the same thing, we'd still only want to build one of them, not both, as building both can cause problems with stepping on one another in sysroot, etc.

Thanks for your reply, but it seems that it builts none currently.

// Robert

#3 lore raw
Quoted 30 lines · Robert Yang
Quoted 29 lines · Chris Larson
Quoted 24 lines · Robert Yang

In the following code:

def buildWorldTargetList(self):
...
       for f in self.status.possible_world:
           terminal = True
           pn = self.status.pkg_fn[f]

           for p in pn_provides[pn]:
               if p.startswith('virtual/'):
                   parselog.debug(2, "World build skipping %s due to %s provider starting with virtual/", f, p)
                   terminal = False
                   break
...

Does it mean that if a recipe contains:

PROVIDES = "virtual/something"

Then it would not be built until a pkg depends on it? Why we design it in this
way, please?

Quoted 7 lines
Quoted 4 lines

The original intent with world was that when two recipes provided the same thing, we'd still only want to build one of them, not both, as building both can cause problems with stepping on one another in sysroot, etc.

Thanks for your reply, but it seems that it builts none currently.

Fair point, I think in certain cases we also only wanted to build things if they got pulled in via a dependency. For example, iirc native and cross both exclude themselves from world via a variable set in the classes. I don't recall if such was the case here, however.

Signature · 1 line
Christopher Larson
#4 lore raw

Thanks, is there a way to skip the pkg if I don't want to build it when bitbake world, please?

// Robert

Quoted 43 lines · Chris Larson
Quoted 30 lines · Robert Yang
Quoted 29 lines · Chris Larson
Quoted 24 lines · Robert Yang

In the following code:

def buildWorldTargetList(self):
...
for f in self.status.possible_world:
terminal = True
pn = self.status.pkg_fn[f]

for p in pn_provides[pn]:
if p.startswith('virtual/'):
parselog.debug(2, "World build skipping %s due to %s
provider starting with virtual/", f, p)
terminal = False
break
...

Does it mean that if a recipe contains:

PROVIDES = "virtual/something"

Then it would not be built until a pkg depends on it? Why we design it in this
way, please?

Quoted 7 lines
Quoted 4 lines

The original intent with world was that when two recipes provided the same thing, we'd still only want to build one of them, not both, as building both can cause problems with stepping on one another in sysroot, etc.

Thanks for your reply, but it seems that it builts none currently.

Fair point, I think in certain cases we also only wanted to build things if they got pulled in via a dependency. For example, iirc native and cross both exclude themselves from world via a variable set in the classes. I don't recall if such was the case here, however.

#5 lore raw

Define EXCLUDE_FROM_WORLD = "1" in the recipe.

Signature · 1 line
Christopher Larson
Quoted 58 lines · Robert Yang

Thanks, is there a way to skip the pkg if I don't want to build it when bitbake world, please?

// Robert

Quoted 48 lines · Chris Larson
Quoted 40 lines · Robert Yang
Quoted 31 lines · Chris Larson
Quoted 17 lines · Robert Yang

In the following code:

def buildWorldTargetList(self):
...
for f in self.status.possible_world:
terminal = True
pn = self.status.pkg_fn[f]

for p in pn_provides[pn]:
if p.startswith('virtual/'):
parselog.debug(2, "World build skipping %s due to %s provider starting with virtual/", f, p) terminal = False
break
...

Quoted 8 lines

Does it mean that if a recipe contains:

PROVIDES = "virtual/something"

Then it would not be built until a pkg depends on it? Why we design it in this
way, please?

Quoted 5 lines

The original intent with world was that when two recipes provided the same thing, we'd still only want to build one of them, not both, as building both can cause problems with stepping on one another in sysroot, etc.

Quoted 1 line

Thanks for your reply, but it seems that it builts none currently.

Fair point, I think in certain cases we also only wanted to build things if they got pulled in via a dependency. For example, iirc native and cross both exclude themselves from world via a variable set in the classes. I don't recall if such was the case here, however.