Skip to contentSkip to conversation

Problems adding native support packages

DISCUSSION Gary Thomas 6 participants 14 messages Mar 11, 2011 – Mar 13, 2011

lore
Share & tools
lore
#0 lore raw

I'm trying to import a native package from OE for which the main package depends on libiconv. This seems to imply that when I extend to the native package using BBCLASSEXTEND, the native package depends on virtual/libiconv-native

I can't figure out how to provide this. Any clues?

n.b. the recipe from OE is librsvg and importing it seems to be pretty invasive. To build the native package, I needed to add native support for all of these packages:

#       modified:   meta/recipes-gnome/gnome/libart-lgpl_2.3.21.bb
#       modified:   meta/recipes-gnome/gtk+/gtk+.inc
#       modified:   meta/recipes-graphics/cairo/cairo.inc
#       modified:   meta/recipes-graphics/pango/pango.inc
#       modified:   meta/recipes-graphics/xorg-lib/libxcomposite_0.4.3.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxcursor_1.1.11.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxdamage_1.1.3.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxfixes_4.0.5.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxft_2.2.0.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxrandr_1.3.1.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
#       modified:   meta/recipes-graphics/xorg-lib/pixman_0.20.2.bb
#       modified:   meta/recipes-graphics/xorg-proto/compositeproto_0.4.2.bb
#       modified:   meta/recipes-graphics/xorg-proto/damageproto_1.2.1.bb
#       modified:   meta/recipes-graphics/xorg-proto/fixesproto_4.1.2.bb
#       modified:   meta/recipes-graphics/xorg-proto/randrproto_1.3.2.bb
#       modified:   meta/recipes-graphics/xorg-proto/renderproto_0.11.1.bb
#       modified:   meta/recipes-graphics/xorg-proto/xineramaproto_1.2.1.bb
#       modified:   meta/recipes-multimedia/alsa/alsa-tools_1.0.20.bb
#       modified:   meta/recipes-support/atk/atk.inc
#       modified:   meta/recipes-support/libcroco/libcroco_0.6.2.bb
#       modified:   meta/recipes-support/libgcrypt/libgcrypt.inc
#       modified:   meta/recipes-support/libgpg-error/libgpg-error_1.9.bb

I also ran into a problem when I added native to atk, I get this error
which makes no sense at all to me:
NOTE: package atk-native-1.32.0-r0: task do_fetch: Started
ERROR: Function 'Fetcher failure for URL: 'http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2'. Unable to fetch URL
http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2 from any source.' failed
This seems to be the only package in the set above that wants to fetch a -native
tarball (there are no such files in the sources repository as far as I can tell)

Thanks

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw
Quoted 9 lines

From: Gary Thomas
Sent: Friday, March 11, 2011 11:29 AM

I'm trying to import a native package from OE for which the main package depends on libiconv. This seems to imply that when I extend to the native package using BBCLASSEXTEND, the native package depends on virtual/libiconv-native

I can't figure out how to provide this. Any clues?

I'm not sure about the problem here. do you want virtual/libiconv-native dependency or not? If target recipe already has a DEPENDS = "libiconv", then with BBCLASSEXTEND you have libiconv-native automatically.

Or if you only want to add libiconv-native for native recipe exclusively, then:

DEPENDS_virtclass-native = "virtual/libiconv-native"

Thanks
Kevin

Quoted 57 lines

n.b. the recipe from OE is librsvg and importing it seems to be pretty invasive. To build the native package, I needed to add native support for all of these packages:

#       modified:   meta/recipes-gnome/gnome/libart-lgpl_2.3.21.bb
#       modified:   meta/recipes-gnome/gtk+/gtk+.inc
#       modified:   meta/recipes-graphics/cairo/cairo.inc
#       modified:   meta/recipes-graphics/pango/pango.inc
#       modified:   meta/recipes-graphics/xorg-lib/libxcomposite_0.4.3.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxcursor_1.1.11.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxdamage_1.1.3.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxfixes_4.0.5.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxft_2.2.0.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxrandr_1.3.1.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
#       modified:   meta/recipes-graphics/xorg-lib/pixman_0.20.2.bb
#       modified:
meta/recipes-graphics/xorg-proto/compositeproto_0.4.2.bb
#       modified:
meta/recipes-graphics/xorg-proto/damageproto_1.2.1.bb
#       modified:   meta/recipes-graphics/xorg-proto/fixesproto_4.1.2.bb
#       modified:   meta/recipes-graphics/xorg-proto/randrproto_1.3.2.bb
#       modified:
meta/recipes-graphics/xorg-proto/renderproto_0.11.1.bb
#       modified:
meta/recipes-graphics/xorg-proto/xineramaproto_1.2.1.bb
#       modified:   meta/recipes-multimedia/alsa/alsa-tools_1.0.20.bb
#       modified:   meta/recipes-support/atk/atk.inc
#       modified:   meta/recipes-support/libcroco/libcroco_0.6.2.bb
#       modified:   meta/recipes-support/libgcrypt/libgcrypt.inc
#       modified:   meta/recipes-support/libgpg-error/libgpg-error_1.9.bb

I also ran into a problem when I added native to atk, I get this error which makes no sense at all to me:
NOTE: package atk-native-1.32.0-r0: task do_fetch: Started
ERROR: Function 'Fetcher failure for URL:
'http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2'. Unable to fetch URL
http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2 from any source.' failed
This seems to be the only package in the set above that wants to fetch a -native
tarball (there are no such files in the sources repository as far as I can tell)

Thanks

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

#2 lore raw
Quoted 15 lines · Kevin
Quoted 9 lines

From: Gary Thomas
Sent: Friday, March 11, 2011 11:29 AM

I'm trying to import a native package from OE for which the main package depends on libiconv. This seems to imply that when I extend to the native package using BBCLASSEXTEND, the native package depends on virtual/libiconv-native

I can't figure out how to provide this. Any clues?

I'm not sure about the problem here. do you want virtual/libiconv-native dependency or not? If target recipe already has a DEPENDS = "libiconv", then with BBCLASSEXTEND you have libiconv-native automatically.

Quoted 49 lines

Or if you only want to add libiconv-native for native recipe exclusively, then:

DEPENDS_virtclass-native = "virtual/libiconv-native"

Thanks
Kevin

Quoted 41 lines

n.b. the recipe from OE is librsvg and importing it seems to be pretty invasive. To build the native package, I needed to add native support for all of these packages:

#       modified:   meta/recipes-gnome/gnome/libart-lgpl_2.3.21.bb
#       modified:   meta/recipes-gnome/gtk+/gtk+.inc
#       modified:   meta/recipes-graphics/cairo/cairo.inc
#       modified:   meta/recipes-graphics/pango/pango.inc
#       modified:  
meta/recipes-graphics/xorg-lib/libxcomposite_0.4.3.bb #      
modified:   meta/recipes-graphics/xorg-lib/libxcursor_1.1.11.bb #   
modified:   meta/recipes-graphics/xorg-lib/libxdamage_1.1.3.bb #    
modified:   meta/recipes-graphics/xorg-lib/libxfixes_4.0.5.bb #     
modified:   meta/recipes-graphics/xorg-lib/libxft_2.2.0.bb #      
modified:   meta/recipes-graphics/xorg-lib/libxrandr_1.3.1.bb #     
modified:   meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb #    
modified:   meta/recipes-graphics/xorg-lib/pixman_0.20.2.bb #      
modified: meta/recipes-graphics/xorg-proto/compositeproto_0.4.2.bb #
modified: meta/recipes-graphics/xorg-proto/damageproto_1.2.1.bb #   
modified:   meta/recipes-graphics/xorg-proto/fixesproto_4.1.2.bb #  
modified:   meta/recipes-graphics/xorg-proto/randrproto_1.3.2.bb #  
modified: meta/recipes-graphics/xorg-proto/renderproto_0.11.1.bb #  
modified: meta/recipes-graphics/xorg-proto/xineramaproto_1.2.1.bb # 
modified:   meta/recipes-multimedia/alsa/alsa-tools_1.0.20.bb #     
modified:   meta/recipes-support/atk/atk.inc #       modified:  

meta/recipes-support/libcroco/libcroco_0.6.2.bb # modified:
meta/recipes-support/libgcrypt/libgcrypt.inc # modified:
meta/recipes-support/libgpg-error/libgpg-error_1.9.bb

I also ran into a problem when I added native to atk, I get this error which makes no sense at all to me:
NOTE: package atk-native-1.32.0-r0: task do_fetch: Started
ERROR: Function 'Fetcher failure for URL:
'http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2'. Unable to fetch URL
http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2
from any source.' failed This seems to be the only package in the set above that wants to fetch a -native tarball (there are no such files
in the sources repository as far as I can tell)

atk's SRC_URI is assigned like:

SRC_URI = "http://download.gnome.org/sources/atk/1.32/${PN}-${PV}.tar.bz2"

After introducing native to atk, PN is changed to atk-native, thus no resouce is found in the repo.

I will make a fix to that. But for your quick workaournd, you can change the atk's SRC_URI to:

SRC_URI = "http://download.gnome.org/sources/atk/1.32/atk-${PV}.tar.bz2"

Thanks,
Dongxiao

Quoted 17 lines
Quoted 4 lines

Thanks

Quoted 9 lines

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

#3 lore raw
Quoted 74 lines

From: Xu, Dongxiao
Sent: Friday, March 11, 2011 1:09 PM

Quoted 15 lines · Kevin
Quoted 9 lines

From: Gary Thomas
Sent: Friday, March 11, 2011 11:29 AM

I'm trying to import a native package from OE for which the main package depends on libiconv. This seems to imply that when I extend to the native package using BBCLASSEXTEND, the native package depends on virtual/libiconv-native

I can't figure out how to provide this. Any clues?

I'm not sure about the problem here. do you want virtual/libiconv-native dependency or not? If target recipe already has a DEPENDS = "libiconv", then with BBCLASSEXTEND you have libiconv-native automatically.

Quoted 49 lines

Or if you only want to add libiconv-native for native recipe exclusively, then:

DEPENDS_virtclass-native = "virtual/libiconv-native"

Thanks
Kevin

Quoted 41 lines

n.b. the recipe from OE is librsvg and importing it seems to be pretty invasive. To build the native package, I needed to add native support for all of these packages:

#       modified:   meta/recipes-gnome/gnome/libart-lgpl_2.3.21.bb
#       modified:   meta/recipes-gnome/gtk+/gtk+.inc
#       modified:   meta/recipes-graphics/cairo/cairo.inc
#       modified:   meta/recipes-graphics/pango/pango.inc
#       modified:
meta/recipes-graphics/xorg-lib/libxcomposite_0.4.3.bb #
modified:   meta/recipes-graphics/xorg-lib/libxcursor_1.1.11.bb #
modified:   meta/recipes-graphics/xorg-lib/libxdamage_1.1.3.bb #
modified:   meta/recipes-graphics/xorg-lib/libxfixes_4.0.5.bb #
modified:   meta/recipes-graphics/xorg-lib/libxft_2.2.0.bb #
modified:   meta/recipes-graphics/xorg-lib/libxrandr_1.3.1.bb #
modified:   meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb #
modified:   meta/recipes-graphics/xorg-lib/pixman_0.20.2.bb #
modified: meta/recipes-graphics/xorg-proto/compositeproto_0.4.2.bb #
modified: meta/recipes-graphics/xorg-proto/damageproto_1.2.1.bb #
modified:   meta/recipes-graphics/xorg-proto/fixesproto_4.1.2.bb #
modified:   meta/recipes-graphics/xorg-proto/randrproto_1.3.2.bb #
modified: meta/recipes-graphics/xorg-proto/renderproto_0.11.1.bb #
modified: meta/recipes-graphics/xorg-proto/xineramaproto_1.2.1.bb #
modified:   meta/recipes-multimedia/alsa/alsa-tools_1.0.20.bb #
modified:   meta/recipes-support/atk/atk.inc #       modified:

meta/recipes-support/libcroco/libcroco_0.6.2.bb # modified:
meta/recipes-support/libgcrypt/libgcrypt.inc # modified:
meta/recipes-support/libgpg-error/libgpg-error_1.9.bb

I also ran into a problem when I added native to atk, I get this error which makes no sense at all to me:
NOTE: package atk-native-1.32.0-r0: task do_fetch: Started
ERROR: Function 'Fetcher failure for URL:
'http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2'. Unable to fetch URL
http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2
from any source.' failed This seems to be the only package in the set above that wants to fetch a -native tarball (there are no such files
in the sources repository as far as I can tell)

atk's SRC_URI is assigned like:

SRC_URI = "http://download.gnome.org/sources/atk/1.32/${PN}-${PV}.tar.bz2"

Quoted 8 lines

After introducing native to atk, PN is changed to atk-native, thus no resouce is found in the repo.

I will make a fix to that. But for your quick workaournd, you can change the atk's SRC_URI to:

SRC_URI = "http://download.gnome.org/sources/atk/1.32/atk-${PV}.tar.bz2"

use ${BPN}-${PV} instead.

Thanks
Kevin

#4 lore raw
Quoted 75 lines · Kevin
Quoted 75 lines

From: Xu, Dongxiao
Sent: Friday, March 11, 2011 1:09 PM

Quoted 15 lines · Kevin
Quoted 9 lines

From: Gary Thomas
Sent: Friday, March 11, 2011 11:29 AM

I'm trying to import a native package from OE for which the main package depends on libiconv. This seems to imply that when I extend to the native package using BBCLASSEXTEND, the native package depends on virtual/libiconv-native

I can't figure out how to provide this. Any clues?

I'm not sure about the problem here. do you want virtual/libiconv-native dependency or not? If target recipe already has a DEPENDS = "libiconv", then with BBCLASSEXTEND you have libiconv-native automatically.

Quoted 47 lines

Or if you only want to add libiconv-native for native recipe exclusively, then:

DEPENDS_virtclass-native = "virtual/libiconv-native"

Thanks
Kevin

Quoted 39 lines

n.b. the recipe from OE is librsvg and importing it seems to be pretty invasive. To build the native package, I needed to add native support for all of these packages:

#       modified:   meta/recipes-gnome/gnome/libart-lgpl_2.3.21.bb
#       modified:   meta/recipes-gnome/gtk+/gtk+.inc
#       modified:   meta/recipes-graphics/cairo/cairo.inc
#       modified:   meta/recipes-graphics/pango/pango.inc #      
modified: meta/recipes-graphics/xorg-lib/libxcomposite_0.4.3.bb #
modified:   meta/recipes-graphics/xorg-lib/libxcursor_1.1.11.bb #
modified:   meta/recipes-graphics/xorg-lib/libxdamage_1.1.3.bb #
modified:   meta/recipes-graphics/xorg-lib/libxfixes_4.0.5.bb #
modified:   meta/recipes-graphics/xorg-lib/libxft_2.2.0.bb #
modified:   meta/recipes-graphics/xorg-lib/libxrandr_1.3.1.bb #
modified:   meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb #
modified:   meta/recipes-graphics/xorg-lib/pixman_0.20.2.bb #
modified: meta/recipes-graphics/xorg-proto/compositeproto_0.4.2.bb
# modified: meta/recipes-graphics/xorg-proto/damageproto_1.2.1.bb #
modified:   meta/recipes-graphics/xorg-proto/fixesproto_4.1.2.bb #
modified:   meta/recipes-graphics/xorg-proto/randrproto_1.3.2.bb #
modified: meta/recipes-graphics/xorg-proto/renderproto_0.11.1.bb #
modified: meta/recipes-graphics/xorg-proto/xineramaproto_1.2.1.bb #
modified:   meta/recipes-multimedia/alsa/alsa-tools_1.0.20.bb #
modified:   meta/recipes-support/atk/atk.inc #       modified:

meta/recipes-support/libcroco/libcroco_0.6.2.bb # modified:
meta/recipes-support/libgcrypt/libgcrypt.inc # modified:
meta/recipes-support/libgpg-error/libgpg-error_1.9.bb

I also ran into a problem when I added native to atk, I get this error which makes no sense at all to me:
NOTE: package atk-native-1.32.0-r0: task do_fetch: Started
ERROR: Function 'Fetcher failure for URL:
'http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2'. Unable to fetch URL
http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz
2 from any source.' failed This seems to be the only package in the set above that wants to fetch a -native tarball (there are no such files in the sources repository as far as I can tell)

atk's SRC_URI is assigned like:

SRC_URI = "http://download.gnome.org/sources/atk/1.32/${PN}-${PV}.tar.bz2"

After introducing native to atk, PN is changed to atk-native, thus no resouce is found in the repo.

Quoted 8 lines
Quoted 6 lines

I will make a fix to that. But for your quick workaournd, you can change the atk's SRC_URI to:

SRC_URI = "http://download.gnome.org/sources/atk/1.32/atk-${PV}.tar.bz2"

use ${BPN}-${PV} instead.

Yes. This is the right approach.

I checked in current poky meta recipes, there are about 67 recipes which directly uses ${PN} in the SRC_URI line.

Do we need to change all of them to ${BPN}?

Thanks,
Dongxiao

Quoted 3 lines

Thanks
Kevin

#5 lore raw
Quoted 86 lines

From: Xu, Dongxiao
Sent: Friday, March 11, 2011 1:19 PM

Quoted 82 lines · Kevin
Quoted 81 lines

From: Xu, Dongxiao
Sent: Friday, March 11, 2011 1:09 PM

Quoted 15 lines · Kevin
Quoted 9 lines

From: Gary Thomas
Sent: Friday, March 11, 2011 11:29 AM

I'm trying to import a native package from OE for which the main package depends on libiconv. This seems to imply that when I extend to the native package using BBCLASSEXTEND, the native package depends on virtual/libiconv-native

I can't figure out how to provide this. Any clues?

I'm not sure about the problem here. do you want virtual/libiconv-native dependency or not? If target recipe already has a DEPENDS = "libiconv", then with BBCLASSEXTEND you have libiconv-native automatically.

Quoted 47 lines

Or if you only want to add libiconv-native for native recipe exclusively, then:

DEPENDS_virtclass-native = "virtual/libiconv-native"

Thanks
Kevin

Quoted 39 lines

n.b. the recipe from OE is librsvg and importing it seems to be pretty invasive. To build the native package, I needed to add native support for all of these packages:

#       modified:   meta/recipes-gnome/gnome/libart-lgpl_2.3.21.bb
#       modified:   meta/recipes-gnome/gtk+/gtk+.inc
#       modified:   meta/recipes-graphics/cairo/cairo.inc
#       modified:   meta/recipes-graphics/pango/pango.inc #
modified: meta/recipes-graphics/xorg-lib/libxcomposite_0.4.3.bb #
modified:   meta/recipes-graphics/xorg-lib/libxcursor_1.1.11.bb #
modified:   meta/recipes-graphics/xorg-lib/libxdamage_1.1.3.bb #
modified:   meta/recipes-graphics/xorg-lib/libxfixes_4.0.5.bb #
modified:   meta/recipes-graphics/xorg-lib/libxft_2.2.0.bb #
modified:   meta/recipes-graphics/xorg-lib/libxrandr_1.3.1.bb #
modified:   meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb #
modified:   meta/recipes-graphics/xorg-lib/pixman_0.20.2.bb #
modified: meta/recipes-graphics/xorg-proto/compositeproto_0.4.2.bb
# modified: meta/recipes-graphics/xorg-proto/damageproto_1.2.1.bb #
modified:   meta/recipes-graphics/xorg-proto/fixesproto_4.1.2.bb #
modified:   meta/recipes-graphics/xorg-proto/randrproto_1.3.2.bb #
modified: meta/recipes-graphics/xorg-proto/renderproto_0.11.1.bb #
modified: meta/recipes-graphics/xorg-proto/xineramaproto_1.2.1.bb #
modified:   meta/recipes-multimedia/alsa/alsa-tools_1.0.20.bb #
modified:   meta/recipes-support/atk/atk.inc #       modified:

meta/recipes-support/libcroco/libcroco_0.6.2.bb # modified:
meta/recipes-support/libgcrypt/libgcrypt.inc # modified:
meta/recipes-support/libgpg-error/libgpg-error_1.9.bb

I also ran into a problem when I added native to atk, I get this error which makes no sense at all to me:
NOTE: package atk-native-1.32.0-r0: task do_fetch: Started
ERROR: Function 'Fetcher failure for URL:
'http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2'. Unable to fetch URL
http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz
2 from any source.' failed This seems to be the only package in the set above that wants to fetch a -native tarball (there are no such files in the sources repository as far as I can tell)

atk's SRC_URI is assigned like:

SRC_URI = "http://download.gnome.org/sources/atk/1.32/${PN}-${PV}.tar.bz2"

After introducing native to atk, PN is changed to atk-native, thus no resouce is found in the repo.

I will make a fix to that. But for your quick workaournd, you can change the atk's SRC_URI to:

SRC_URI = "http://download.gnome.org/sources/atk/1.32/atk-${PV}.tar.bz2"

Quoted 9 lines
Quoted 1 line

use ${BPN}-${PV} instead.

Yes. This is the right approach.

I checked in current poky meta recipes, there are about 67 recipes which directly uses ${PN} in the SRC_URI line.

Do we need to change all of them to ${BPN}?

I think it's a cleaner way to use BPN, or even simple BP. This would avoid an error alarm when extending some recipes to native. :-)

Thanks,
Kevin

#6 lore raw
Quoted 22 lines · Kevin

From: Xu, Dongxiao:

Quoted 21 lines
Quoted 9 lines · Kevin
Quoted 9 lines

atk's SRC_URI is assigned like:

SRC_URI = "http://download.gnome.org/sources/atk/1.32/${PN}-${PV}.tar.bz2"

After introducing native to atk, PN is changed to atk-native, thus no resouce is found in the repo.

Quoted 8 lines
Quoted 6 lines

I will make a fix to that. But for your quick workaournd, you can change the atk's SRC_URI to:

SRC_URI = "http://download.gnome.org/sources/atk/1.32/atk-${PV}.tar.bz2"

use ${BPN}-${PV} instead.

Yes. This is the right approach.

Quoted 8 lines
Quoted 5 lines

I checked in current poky meta recipes, there are about 67 recipes which directly uses ${PN} in the SRC_URI line.

Do we need to change all of them to ${BPN}?

I think it's a cleaner way to use BPN, or even simple BP. This would avoid an error alarm when extending some recipes to native. :-)

This is exactly the use case for the BPN variable so yes, making standardised use of that would be good.

Cheers,

Richard

#7 lore raw
Quoted 26 lines · Richard Purdie
Quoted 25 lines · Kevin

From: Xu, Dongxiao:

Quoted 24 lines
Quoted 9 lines · Kevin
Quoted 9 lines

atk's SRC_URI is assigned like:

SRC_URI = "http://download.gnome.org/sources/atk/1.32/${PN}-${PV}.tar.bz2"

After introducing native to atk, PN is changed to atk-native, thus no resouce is found in the repo.

Quoted 8 lines
Quoted 6 lines

I will make a fix to that. But for your quick workaournd, you can change the atk's SRC_URI to:

SRC_URI = "http://download.gnome.org/sources/atk/1.32/atk-${PV}.tar.bz2"

use ${BPN}-${PV} instead.

Yes. This is the right approach.

I checked in current poky meta recipes, there are about 67 recipes which directly uses ${PN} in the SRC_URI line.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Do we need to change all of them to ${BPN}?

I think it's a cleaner way to use BPN, or even simple BP. This would avoid an error alarm when extending some recipes to native. :-)

This is exactly the use case for the BPN variable so yes, making standardised use of that would be good.

I filed this as bug #860 so the problem is not forgotten.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#8 lore raw
In reply to Xu, Dongxiao
Quoted 83 lines · Dongxiao
Quoted 82 lines · Kevin
Quoted 81 lines

From: Xu, Dongxiao
Sent: Friday, March 11, 2011 1:09 PM

Quoted 15 lines · Kevin
Quoted 9 lines

From: Gary Thomas
Sent: Friday, March 11, 2011 11:29 AM

I'm trying to import a native package from OE for which the main package depends on libiconv. This seems to imply that when I extend to the native package using BBCLASSEXTEND, the native package depends on virtual/libiconv-native

I can't figure out how to provide this. Any clues?

I'm not sure about the problem here. do you want virtual/libiconv-native dependency or not? If target recipe already has a DEPENDS = "libiconv", then with BBCLASSEXTEND you have libiconv-native automatically.

Quoted 47 lines

Or if you only want to add libiconv-native for native recipe exclusively, then:

DEPENDS_virtclass-native = "virtual/libiconv-native"

Thanks
Kevin

Quoted 39 lines

n.b. the recipe from OE is librsvg and importing it seems to be pretty invasive. To build the native package, I needed to add native support for all of these packages:

#       modified:   meta/recipes-gnome/gnome/libart-lgpl_2.3.21.bb
#       modified:   meta/recipes-gnome/gtk+/gtk+.inc
#       modified:   meta/recipes-graphics/cairo/cairo.inc
#       modified:   meta/recipes-graphics/pango/pango.inc #
modified: meta/recipes-graphics/xorg-lib/libxcomposite_0.4.3.bb #
modified:   meta/recipes-graphics/xorg-lib/libxcursor_1.1.11.bb #
modified:   meta/recipes-graphics/xorg-lib/libxdamage_1.1.3.bb #
modified:   meta/recipes-graphics/xorg-lib/libxfixes_4.0.5.bb #
modified:   meta/recipes-graphics/xorg-lib/libxft_2.2.0.bb #
modified:   meta/recipes-graphics/xorg-lib/libxrandr_1.3.1.bb #
modified:   meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb #
modified:   meta/recipes-graphics/xorg-lib/pixman_0.20.2.bb #
modified: meta/recipes-graphics/xorg-proto/compositeproto_0.4.2.bb
# modified: meta/recipes-graphics/xorg-proto/damageproto_1.2.1.bb #
modified:   meta/recipes-graphics/xorg-proto/fixesproto_4.1.2.bb #
modified:   meta/recipes-graphics/xorg-proto/randrproto_1.3.2.bb #
modified: meta/recipes-graphics/xorg-proto/renderproto_0.11.1.bb #
modified: meta/recipes-graphics/xorg-proto/xineramaproto_1.2.1.bb #
modified:   meta/recipes-multimedia/alsa/alsa-tools_1.0.20.bb #
modified:   meta/recipes-support/atk/atk.inc #       modified:

meta/recipes-support/libcroco/libcroco_0.6.2.bb # modified:
meta/recipes-support/libgcrypt/libgcrypt.inc # modified:
meta/recipes-support/libgpg-error/libgpg-error_1.9.bb

I also ran into a problem when I added native to atk, I get this error which makes no sense at all to me:
NOTE: package atk-native-1.32.0-r0: task do_fetch: Started
ERROR: Function 'Fetcher failure for URL:
'http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2'. Unable to fetch URL
http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz
2 from any source.' failed This seems to be the only package in the set above that wants to fetch a -native tarball (there are no such files in the sources repository as far as I can tell)

atk's SRC_URI is assigned like:

SRC_URI = "http://download.gnome.org/sources/atk/1.32/${PN}-${PV}.tar.bz2"

After introducing native to atk, PN is changed to atk-native, thus no resouce is found in the repo.

I will make a fix to that. But for your quick workaournd, you can change the atk's SRC_URI to:

SRC_URI = "http://download.gnome.org/sources/atk/1.32/atk-${PV}.tar.bz2"

Quoted 7 lines
Quoted 1 line

use ${BPN}-${PV} instead.

Yes. This is the right approach.

I checked in current poky meta recipes, there are about 67 recipes which directly uses ${PN} in the SRC_URI line.

Do we need to change all of them to ${BPN}?

This worked fine, thanks. Now to figure out how to get virtual/libiconv-native built.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#9 lore raw
In reply to Xu, Dongxiao
Quoted 68 lines · Dongxiao
Quoted 15 lines · Kevin
Quoted 9 lines

From: Gary Thomas
Sent: Friday, March 11, 2011 11:29 AM

I'm trying to import a native package from OE for which the main package depends on libiconv. This seems to imply that when I extend to the native package using BBCLASSEXTEND, the native package depends on virtual/libiconv-native

I can't figure out how to provide this. Any clues?

I'm not sure about the problem here. do you want virtual/libiconv-native dependency or not? If target recipe already has a DEPENDS = "libiconv", then with BBCLASSEXTEND you have libiconv-native automatically.

Quoted 49 lines

Or if you only want to add libiconv-native for native recipe exclusively, then:

DEPENDS_virtclass-native = "virtual/libiconv-native"

Thanks
Kevin

Quoted 41 lines

n.b. the recipe from OE is librsvg and importing it seems to be pretty invasive. To build the native package, I needed to add native support for all of these packages:

#       modified:   meta/recipes-gnome/gnome/libart-lgpl_2.3.21.bb
#       modified:   meta/recipes-gnome/gtk+/gtk+.inc
#       modified:   meta/recipes-graphics/cairo/cairo.inc
#       modified:   meta/recipes-graphics/pango/pango.inc
#       modified:  
meta/recipes-graphics/xorg-lib/libxcomposite_0.4.3.bb #      
modified:   meta/recipes-graphics/xorg-lib/libxcursor_1.1.11.bb #   
modified:   meta/recipes-graphics/xorg-lib/libxdamage_1.1.3.bb #    
modified:   meta/recipes-graphics/xorg-lib/libxfixes_4.0.5.bb #     
modified:   meta/recipes-graphics/xorg-lib/libxft_2.2.0.bb #      
modified:   meta/recipes-graphics/xorg-lib/libxrandr_1.3.1.bb #     
modified:   meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb #    
modified:   meta/recipes-graphics/xorg-lib/pixman_0.20.2.bb #      
modified: meta/recipes-graphics/xorg-proto/compositeproto_0.4.2.bb #
modified: meta/recipes-graphics/xorg-proto/damageproto_1.2.1.bb #   
modified:   meta/recipes-graphics/xorg-proto/fixesproto_4.1.2.bb #  
modified:   meta/recipes-graphics/xorg-proto/randrproto_1.3.2.bb #  
modified: meta/recipes-graphics/xorg-proto/renderproto_0.11.1.bb #  
modified: meta/recipes-graphics/xorg-proto/xineramaproto_1.2.1.bb # 
modified:   meta/recipes-multimedia/alsa/alsa-tools_1.0.20.bb #     
modified:   meta/recipes-support/atk/atk.inc #       modified:  

meta/recipes-support/libcroco/libcroco_0.6.2.bb # modified:
meta/recipes-support/libgcrypt/libgcrypt.inc # modified:
meta/recipes-support/libgpg-error/libgpg-error_1.9.bb

I also ran into a problem when I added native to atk, I get this error which makes no sense at all to me:
NOTE: package atk-native-1.32.0-r0: task do_fetch: Started
ERROR: Function 'Fetcher failure for URL:
'http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2'. Unable to fetch URL
http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2
from any source.' failed This seems to be the only package in the set above that wants to fetch a -native tarball (there are no such files
in the sources repository as far as I can tell)

atk's SRC_URI is assigned like:

Quoted 7 lines

SRC_URI = "http://download.gnome.org/sources/atk/1.32/${PN}-${PV}.tar.bz2"

After introducing native to atk, PN is changed to atk-native, thus no resouce is found in the repo.

I will make a fix to that. But for your quick workaournd, you can change the atk's SRC_URI to:

SRC_URI = "http://download.gnome.org/sources/atk/1.32/atk-${PV}.tar.bz2"

Use BPN instead

#10 lore raw
In reply to Tian, Kevin
Quoted 10 lines · Kevin
Quoted 9 lines

From: Gary Thomas
Sent: Friday, March 11, 2011 11:29 AM

I'm trying to import a native package from OE for which the main package depends on libiconv. This seems to imply that when I extend to the native package using BBCLASSEXTEND, the native package depends on virtual/libiconv-native

I can't figure out how to provide this. Any clues?

Quoted 7 lines

I'm not sure about the problem here. do you want virtual/libiconv-native dependency or not? If target recipe already has a DEPENDS = "libiconv", then with BBCLASSEXTEND you have libiconv-native automatically.

Or if you only want to add libiconv-native for native recipe exclusively, then:

DEPENDS_virtclass-native = "virtual/libiconv-native"

Actually, the problem is that such a dependency was added automatically by BBCLASSEXTEND. virtual/libiconv is provided by eglibc package, but it's not clear if it can provide virtual/libiconv-native

The other problem is that there is a meta/recipes-support/libiconv/libiconv_1.9.2.bb recipe in the tree which does not build at all, native or target.

Quoted 57 lines
Quoted 57 lines

n.b. the recipe from OE is librsvg and importing it seems to be pretty invasive. To build the native package, I needed to add native support for all of these packages:

#       modified:   meta/recipes-gnome/gnome/libart-lgpl_2.3.21.bb
#       modified:   meta/recipes-gnome/gtk+/gtk+.inc
#       modified:   meta/recipes-graphics/cairo/cairo.inc
#       modified:   meta/recipes-graphics/pango/pango.inc
#       modified:   meta/recipes-graphics/xorg-lib/libxcomposite_0.4.3.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxcursor_1.1.11.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxdamage_1.1.3.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxfixes_4.0.5.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxft_2.2.0.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxrandr_1.3.1.bb
#       modified:   meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
#       modified:   meta/recipes-graphics/xorg-lib/pixman_0.20.2.bb
#       modified:
meta/recipes-graphics/xorg-proto/compositeproto_0.4.2.bb
#       modified:
meta/recipes-graphics/xorg-proto/damageproto_1.2.1.bb
#       modified:   meta/recipes-graphics/xorg-proto/fixesproto_4.1.2.bb
#       modified:   meta/recipes-graphics/xorg-proto/randrproto_1.3.2.bb
#       modified:
meta/recipes-graphics/xorg-proto/renderproto_0.11.1.bb
#       modified:
meta/recipes-graphics/xorg-proto/xineramaproto_1.2.1.bb
#       modified:   meta/recipes-multimedia/alsa/alsa-tools_1.0.20.bb
#       modified:   meta/recipes-support/atk/atk.inc
#       modified:   meta/recipes-support/libcroco/libcroco_0.6.2.bb
#       modified:   meta/recipes-support/libgcrypt/libgcrypt.inc
#       modified:   meta/recipes-support/libgpg-error/libgpg-error_1.9.bb

I also ran into a problem when I added native to atk, I get this error which makes no sense at all to me:
NOTE: package atk-native-1.32.0-r0: task do_fetch: Started
ERROR: Function 'Fetcher failure for URL:
'http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2'. Unable to fetch URL
http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2 from any source.' failed
This seems to be the only package in the set above that wants to fetch a -native
tarball (there are no such files in the sources repository as far as I can tell)

Thanks

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#11 lore raw
Quoted 15 lines · Gary Thomas
Quoted 14 lines · Kevin
Quoted 9 lines

From: Gary Thomas
Sent: Friday, March 11, 2011 11:29 AM

I'm trying to import a native package from OE for which the main package depends on libiconv. This seems to imply that when I extend to the native package using BBCLASSEXTEND, the native package depends on virtual/libiconv-native

I can't figure out how to provide this. Any clues?

I'm not sure about the problem here. do you want virtual/libiconv-native dependency or not? If target recipe already has a DEPENDS = "libiconv", then with BBCLASSEXTEND you have libiconv-native automatically.

Quoted 7 lines
Quoted 3 lines

Or if you only want to add libiconv-native for native recipe exclusively, then:

DEPENDS_virtclass-native = "virtual/libiconv-native"

Actually, the problem is that such a dependency was added automatically by BBCLASSEXTEND. virtual/libiconv is provided by eglibc package, but it's not clear if it can provide virtual/libiconv-native

It comes from this dependency which seems very hard to satisfy:
meta/recipes-graphics/pango/pango.inc:DEPENDS = "glib-2.0 fontconfig freetype zlib virtual/libiconv virtual/libx11 libxft gtk-doc-native cairo"

It looks like I can side-step this by adding
ASSUME_PROVIDED += " virtual/libiconv-native "

Quoted 62 lines

The other problem is that there is a meta/recipes-support/libiconv/libiconv_1.9.2.bb recipe in the tree which does not build at all, native or target.

Quoted 57 lines
Quoted 57 lines

n.b. the recipe from OE is librsvg and importing it seems to be pretty invasive. To build the native package, I needed to add native support for all of these packages:

# modified: meta/recipes-gnome/gnome/libart-lgpl_2.3.21.bb # modified: meta/recipes-gnome/gtk+/gtk+.inc
# modified: meta/recipes-graphics/cairo/cairo.inc
# modified: meta/recipes-graphics/pango/pango.inc
# modified: meta/recipes-graphics/xorg-lib/libxcomposite_0.4.3.bb # modified: meta/recipes-graphics/xorg-lib/libxcursor_1.1.11.bb # modified: meta/recipes-graphics/xorg-lib/libxdamage_1.1.3.bb # modified: meta/recipes-graphics/xorg-lib/libxfixes_4.0.5.bb # modified: meta/recipes-graphics/xorg-lib/libxft_2.2.0.bb # modified: meta/recipes-graphics/xorg-lib/libxrandr_1.3.1.bb # modified: meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb # modified: meta/recipes-graphics/xorg-lib/pixman_0.20.2.bb # modified:
meta/recipes-graphics/xorg-proto/compositeproto_0.4.2.bb # modified:
meta/recipes-graphics/xorg-proto/damageproto_1.2.1.bb
# modified: meta/recipes-graphics/xorg-proto/fixesproto_4.1.2.bb # modified: meta/recipes-graphics/xorg-proto/randrproto_1.3.2.bb # modified:
meta/recipes-graphics/xorg-proto/renderproto_0.11.1.bb # modified:
meta/recipes-graphics/xorg-proto/xineramaproto_1.2.1.bb # modified: meta/recipes-multimedia/alsa/alsa-tools_1.0.20.bb # modified: meta/recipes-support/atk/atk.inc
# modified: meta/recipes-support/libcroco/libcroco_0.6.2.bb # modified: meta/recipes-support/libgcrypt/libgcrypt.inc # modified: meta/recipes-support/libgpg-error/libgpg-error_1.9.bb

I also ran into a problem when I added native to atk, I get this error which makes no sense at all to me:
NOTE: package atk-native-1.32.0-r0: task do_fetch: Started
ERROR: Function 'Fetcher failure for URL:
'http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2'. Unable to fetch URL
http://download.gnome.org/sources/atk/1.32/atk-native-1.32.0.tar.bz2 from any source.' failed
This seems to be the only package in the set above that wants to fetch a -native
tarball (there are no such files in the sources repository as far as I can tell)

Thanks

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#12 lore raw
Quoted 18 lines · Gary Thomas
Quoted 17 lines · Gary Thomas
Quoted 16 lines · Kevin
Quoted 9 lines

From: Gary Thomas
Sent: Friday, March 11, 2011 11:29 AM

I'm trying to import a native package from OE for which the main package depends on libiconv. This seems to imply that when I extend to the native package using BBCLASSEXTEND, the native package depends on virtual/libiconv-native

I can't figure out how to provide this. Any clues?

I'm not sure about the problem here. do you want virtual/libiconv-native dependency or not? If target recipe already has a DEPENDS = "libiconv", then with BBCLASSEXTEND you have libiconv-native automatically.

Or if you only want to add libiconv-native for native recipe exclusively, then:

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

DEPENDS_virtclass-native = "virtual/libiconv-native"

Actually, the problem is that such a dependency was added automatically by BBCLASSEXTEND. virtual/libiconv is provided by eglibc package, but it's not clear if it can provide virtual/libiconv-native

It comes from this dependency which seems very hard to satisfy:
meta/recipes-graphics/pango/pango.inc:DEPENDS = "glib-2.0 fontconfig freetype zlib virtual/libiconv virtual/libx11 libxft gtk-doc-native cairo"

virtual/libiconv is set in the *libc.conf included by the distro:
meta/conf/distro/include/poky-eglibc.inc:PREFERRED_PROVIDER_virtual/libiconv ?= "eglibc" meta/conf/distro/include/poky-eglibc.inc:PREFERRED_PROVIDER_virtual/libiconv-nativesdk ?= "eglibc-nativesdk"

I guess we need a PREFERRED_PROVIDER_virtual/libiconv-natives ?= "eglibc-native" entry in this file?

Cheers,
Joshua

Signature · 3 lines
Joshua Lock
        Yocto Build System Monkey
        Intel Open Source Technology Centre
#13 lore raw
In reply to Gary Thomas
Quoted 30 lines

From: Gary Thomas [mailto:[email protected]]
Sent: Friday, March 11, 2011 8:14 PM

Quoted 4 lines · Gary Thomas
Quoted 3 lines · Kevin
Quoted 3 lines

From: Gary Thomas
Sent: Friday, March 11, 2011 11:29 AM

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

I'm trying to import a native package from OE for which the main package depends on libiconv. This seems to imply that when I extend to the native package using BBCLASSEXTEND, the native package depends on virtual/libiconv-native

I can't figure out how to provide this. Any clues?

I'm not sure about the problem here. do you want virtual/libiconv-native

dependency

Quoted 1 line
Quoted 1 line

or not? If target recipe already has a DEPENDS = "libiconv", then with

BBCLASSEXTEND

Quoted 7 lines
Quoted 5 lines

you have libiconv-native automatically.

Or if you only want to add libiconv-native for native recipe exclusively, then:

DEPENDS_virtclass-native = "virtual/libiconv-native"

Actually, the problem is that such a dependency was added automatically by

BBCLASSEXTEND.

Quoted 2 lines

virtual/libiconv is provided by eglibc package, but it's not clear if it can provide virtual/libiconv-native

Quoted 7 lines

It comes from this dependency which seems very hard to satisfy:
meta/recipes-graphics/pango/pango.inc:DEPENDS = "glib-2.0 fontconfig
freetype zlib virtual/libiconv virtual/libx11 libxft gtk-doc-native cairo"

It looks like I can side-step this by adding
ASSUME_PROVIDED += " virtual/libiconv-native "

the other alternative is to use DEPENDS_virtclass-native to list all dependencies you think the native recipe requires instead of implicitly sharing same DEPENDS from target recipe.

Thanks
Kevin