Skip to contentSkip to conversation

native preferences

DISCUSSION Florian Boor 5 participants 8 messages Jul 26, 2010

lore
Share & tools
lore
#0 lore raw

Hi all,

I tried to build a "minimal" distribution image lately and ran into some trouble
because the old-style native packages seem to be preferred over the new ones
using BBCLASSEXTEND.
In this case we have glib-2.0-native 2.24.1 provided by the new mechanism and 2.22.1 gets build which is the latest old-style native bb.
To build an image we would have to set the preferences manually or drop all old native packages. I do not see a reason why this behaviour should be desirable - a native package should follow the same preferences rules like other packages independent from the mechanism that provides them. Or do I miss something here?

Greetings

Florian

Signature · 5 lines
The dream of yesterday                  Florian Boor
is the hope of today                    Tel: +49 271-771091-15
and the reality of tomorrow.            Fax: +49 271-771091-19
[Robert Hutchings Goddard, 1904]        [email protected]
                                        http://www.kernelconcepts.de/en
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 7 lines · Florian Boor

Hi all,

I tried to build a "minimal" distribution image lately and ran into some trouble
because the old-style native packages seem to be preferred over the new ones
using BBCLASSEXTEND.
In this case we have glib-2.0-native 2.24.1 provided by the new mechanism and 2.22.1 gets build which is the latest old-style native bb.

That's minimals broken by design behaviour, it refuses to pin any version. So either pin the version or switch to a sane distro like angstrom or shr.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMTXI1MkyGM64RGpERAi1eAJ4q5Zwx4OTwV4sfjDFQ4GBE4uClbACfd2wo dYefl4wTR0njfF5r+bezfKs=
=SfWy
-----END PGP SIGNATURE-----

#2 lore raw

2010/7/26 Koen Kooi <[email protected]>

Quoted 10 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 3 lines · Florian Boor

Hi all,

I tried to build a "minimal" distribution image lately and ran into some

trouble

Quoted 1 line

because the old-style native packages seem to be preferred over the new

ones

Quoted 9 lines
Quoted 2 lines

using BBCLASSEXTEND.
In this case we have glib-2.0-native 2.24.1 provided by the new mechanism

and

Quoted 1 line

2.22.1 gets build which is the latest old-style native bb.

That's minimals broken by design behaviour, it refuses to pin any version. So either pin the version or switch to a sane distro like angstrom or shr.

Hm. I would expect that if there is a glib-2.0 recipe 2.24.1 with BBCLASSEXTEND = "native" and no pinning and no DEFAULT_PREFERENCE being in effect, that 2.24.1 gets build and not 2.22.1 which has a real native recipe. To me recipes with -native and implict ones with BBCLASSEXTEND = "native" are equivalent prioritywise, so I'd say this is a bug in the class code.

Frans

Quoted 14 lines

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMTXI1MkyGM64RGpERAi1eAJ4q5Zwx4OTwV4sfjDFQ4GBE4uClbACfd2wo dYefl4wTR0njfF5r+bezfKs=
=SfWy
-----END PGP SIGNATURE-----

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Frans Meulenbroeks

2010/7/26 Koen Kooi <[email protected]>

Quoted 3 lines · Florian Boor
Quoted 3 lines
Quoted 3 lines

Hi all,

I tried to build a "minimal" distribution image lately and ran into some

trouble

Quoted 1 line
Quoted 1 line
Quoted 1 line

because the old-style native packages seem to be preferred over the new

ones

Quoted 17 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

using BBCLASSEXTEND.
In this case we have glib-2.0-native 2.24.1 provided by the new mechanism

and

Quoted 1 line
Quoted 1 line
Quoted 1 line

2.22.1 gets build which is the latest old-style native bb.

That's minimals broken by design behaviour, it refuses to pin any version. So either pin the version or switch to a sane distro like angstrom or shr.

Quoted 6 lines

Hm. I would expect that if there is a glib-2.0 recipe 2.24.1 with BBCLASSEXTEND = "native" and no pinning and no DEFAULT_PREFERENCE being in effect, that 2.24.1 gets build and not 2.22.1 which has a real native recipe. To me recipes with -native and implict ones with BBCLASSEXTEND = "native" are equivalent prioritywise, so I'd say this is a bug in the class code.

And that bug has been known for months and reported multiple times by people attempting to use minimal. And for so far the bug has been fixed in bitbake 1.10, but minimal still refuses to pin versions, so the advice to switch distro still stands.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMTX37MkyGM64RGpERArnKAJ9jd/pPEhb/XdRXTJstqJq0/5zD6ACfSToc 5nInC0ZKEPbp3x1zlBNPuDI=
=IBvv
-----END PGP SIGNATURE-----

#4 lore raw

Am 26.07.2010 um 14:22 schrieb Koen Kooi:

Quoted 31 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Frans Meulenbroeks

2010/7/26 Koen Kooi <[email protected]>

Quoted 3 lines · Florian Boor
Quoted 3 lines
Quoted 3 lines

Hi all,

I tried to build a "minimal" distribution image lately and ran into some

trouble

Quoted 1 line
Quoted 1 line
Quoted 1 line

because the old-style native packages seem to be preferred over the new

ones

Quoted 17 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

using BBCLASSEXTEND.
In this case we have glib-2.0-native 2.24.1 provided by the new mechanism

and

Quoted 1 line
Quoted 1 line
Quoted 1 line

2.22.1 gets build which is the latest old-style native bb.

That's minimals broken by design behaviour, it refuses to pin any version. So either pin the version or switch to a sane distro like angstrom or shr.

Quoted 6 lines

Hm. I would expect that if there is a glib-2.0 recipe 2.24.1 with BBCLASSEXTEND = "native" and no pinning and no DEFAULT_PREFERENCE being in effect, that 2.24.1 gets build and not 2.22.1 which has a real native recipe. To me recipes with -native and implict ones with BBCLASSEXTEND = "native" are equivalent prioritywise, so I'd say this is a bug in the class code.

Quoted 4 lines

And that bug has been known for months and reported multiple times by people attempting to use minimal. And for so far the bug has been fixed in bitbake 1.10, but minimal still refuses to pin versions, so the advice to switch distro still stands.

Of course the preferred way - rather than switching distros - is to fix this obvious bug in the OE metadata.

Cheers,

:M:

#5 lore raw

Hi,

Quoted 2 lines · Dr. Michael Lauer

Of course the preferred way - rather than switching distros - is to fix this obvious bug in the OE metadata.

yes I see it like this. Switching to a distribution that pins more versions is not really what I would call a fix. It is a workaround but should not become the default way to deal with such issues in OE.
What we introduced here is clearly a bug in OE and not the distributions fault.

Greetings

Florian

Signature · 5 lines
The dream of yesterday                  Florian Boor
is the hope of today                    Tel: +49 271-771091-15
and the reality of tomorrow.            Fax: +49 271-771091-19
[Robert Hutchings Goddard, 1904]        [email protected]
                                        http://www.kernelconcepts.de/en
#6 lore raw
Quoted 10 lines · Florian Boor

Hi,

Quoted 2 lines · Dr. Michael Lauer

Of course the preferred way - rather than switching distros - is to fix this obvious bug in the OE metadata.

yes I see it like this. Switching to a distribution that pins more versions is not really what I would call a fix. It is a workaround but should not become the default way to deal with such issues in OE.
What we introduced here is clearly a bug in OE and not the distributions fault.

Except that it's a bitbake issue, not a metadata issue, iirc (which is why it's fixed in the 1.10 branch, but not 1.8).

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#7 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 16 lines · Tom Rini
Quoted 7 lines · Florian Boor

Hi,

Quoted 3 lines · Dr. Michael Lauer

Of course the preferred way - rather than switching distros - is to fix this obvious bug
in the OE metadata.

Quoted 7 lines

yes I see it like this. Switching to a distribution that pins more versions is
not really what I would call a fix. It is a workaround but should not become the
default way to deal with such issues in OE.
What we introduced here is clearly a bug in OE and not the distributions fault.

Quoted 2 lines

Except that it's a bitbake issue, not a metadata issue, iirc (which is why it's fixed in the 1.10 branch, but not 1.8).

Yes, that's why I said "the bug has been fixed
in bitbake 1.10" earlier in the thread :)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMTdYqMkyGM64RGpERAnN3AKCdCvwWQhKF8Ta4A4x/vpctt45XGgCcC66C 7swo93nDkqCt95K4OPWbTxY=
=ENxb
-----END PGP SIGNATURE-----