Skip to contentSkip to conversation

"all" architecture packages

DISCUSSION Richard Purdie 2 participants 3 messages May 31, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

There have been various comments on the list and in the bugzilla about issues with "all" architecture recipes.

To start cleaning this up I've merged:

http://git.openembedded.net/cgit.cgi/openembedded-core/commit/?id=26e5e5feb695864b11e47e24017e254c28f14494

which creates an "allarch" class and starts to convert some recipes over to using it. There is further information in the commit message. Use of the class ensures the packages really are suitable for all architectures and that the sstate packages are reusable.

The list of packages which still need attention are:

meta/recipes-connectivity/resolvconf/resolvconf_1.48.bb meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc meta/recipes-gnome/gnome/gnome-common_2.28.0.bb meta/recipes-gnome/gnome/gnome-icon-theme_2.31.0.bb meta/recipes-gnome/hicolor-icon-theme/hicolor-icon-theme_0.12.bb meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb meta/recipes-graphics/ttf-fonts/liberation-fonts_1.06.bb meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme_0.1.1.bb meta/recipes-graphics/xorg-font/encodings_1.0.4.bb meta/recipes-graphics/xorg-font/font-alias_1.0.3.bb meta/recipes-graphics/xorg-font/font-util_1.2.0.bb meta/recipes-graphics/xorg-font/xorg-font-common.inc meta/recipes-graphics/xorg-font/xorg-minimal-fonts.bb meta/recipes-kernel/linux-firmware/linux-firmware_git.bb meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb meta/recipes-support/hal/hal-info.inc

Some of these are easy, some trigger configure tests for the cross compiler and are harder to fix.

If a package can't use allarch.bbclass, its a strong indicator it shouldn't be PACKAGE_ARCH = "all"...

Cheers,

Richard

#1 lore raw

Op 31 mei 2011, om 14:15 heeft Richard Purdie het volgende geschreven:

Quoted 35 lines

Hi,

There have been various comments on the list and in the bugzilla about issues with "all" architecture recipes.

To start cleaning this up I've merged:

http://git.openembedded.net/cgit.cgi/openembedded-core/commit/?id=26e5e5feb695864b11e47e24017e254c28f14494

which creates an "allarch" class and starts to convert some recipes over to using it. There is further information in the commit message. Use of the class ensures the packages really are suitable for all architectures and that the sstate packages are reusable.

The list of packages which still need attention are:

meta/recipes-connectivity/resolvconf/resolvconf_1.48.bb meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc meta/recipes-gnome/gnome/gnome-common_2.28.0.bb meta/recipes-gnome/gnome/gnome-icon-theme_2.31.0.bb meta/recipes-gnome/hicolor-icon-theme/hicolor-icon-theme_0.12.bb meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb meta/recipes-graphics/ttf-fonts/liberation-fonts_1.06.bb meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme_0.1.1.bb meta/recipes-graphics/xorg-font/encodings_1.0.4.bb meta/recipes-graphics/xorg-font/font-alias_1.0.3.bb meta/recipes-graphics/xorg-font/font-util_1.2.0.bb meta/recipes-graphics/xorg-font/xorg-font-common.inc meta/recipes-graphics/xorg-font/xorg-minimal-fonts.bb meta/recipes-kernel/linux-firmware/linux-firmware_git.bb meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb meta/recipes-support/hal/hal-info.inc

Quoted 5 lines

Some of these are easy, some trigger configure tests for the cross compiler and are harder to fix.

If a package can't use allarch.bbclass, its a strong indicator it shouldn't be PACKAGE_ARCH = "all"...

What about recipes that have an arch component and noarch config files split out? A made-up example would be udev and udev-rules. Is it still possible to do PACKAGE_ARCH_udev-rules = "all" in the udev recipe?

regards,

Koen

#2 lore raw
Quoted 40 lines · Koen Kooi

Op 31 mei 2011, om 14:15 heeft Richard Purdie het volgende geschreven:

Quoted 38 lines

Hi,

There have been various comments on the list and in the bugzilla about issues with "all" architecture recipes.

To start cleaning this up I've merged:

http://git.openembedded.net/cgit.cgi/openembedded-core/commit/?id=26e5e5feb695864b11e47e24017e254c28f14494

which creates an "allarch" class and starts to convert some recipes over to using it. There is further information in the commit message. Use of the class ensures the packages really are suitable for all architectures and that the sstate packages are reusable.

The list of packages which still need attention are:

meta/recipes-connectivity/resolvconf/resolvconf_1.48.bb meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc meta/recipes-gnome/gnome/gnome-common_2.28.0.bb meta/recipes-gnome/gnome/gnome-icon-theme_2.31.0.bb meta/recipes-gnome/hicolor-icon-theme/hicolor-icon-theme_0.12.bb meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb meta/recipes-graphics/ttf-fonts/liberation-fonts_1.06.bb meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme_0.1.1.bb meta/recipes-graphics/xorg-font/encodings_1.0.4.bb meta/recipes-graphics/xorg-font/font-alias_1.0.3.bb meta/recipes-graphics/xorg-font/font-util_1.2.0.bb meta/recipes-graphics/xorg-font/xorg-font-common.inc meta/recipes-graphics/xorg-font/xorg-minimal-fonts.bb meta/recipes-kernel/linux-firmware/linux-firmware_git.bb meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb meta/recipes-support/hal/hal-info.inc

Some of these are easy, some trigger configure tests for the cross compiler and are harder to fix.

Quoted 6 lines
Quoted 2 lines

If a package can't use allarch.bbclass, its a strong indicator it shouldn't be PACKAGE_ARCH = "all"...

What about recipes that have an arch component and noarch config files split out? A made-up example would be udev and udev-rules. Is it still possible to do PACKAGE_ARCH_udev-rules = "all" in the udev recipe?

Those continue to work as before, the recipe is built as target/machine specific with "all" shared components that overwrite each other.

I'm not 100% sure what value marking them as "all" has mind...

Cheers,

Richard