org.oe.dev mtx-3a.conf, nylon-image-base.bb: removed remaints from old OE code (PACKAGE_INSTALL instead of IPKG_INSTALL)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Review
Quoted 6 lines · MartinDietze commit
mtx-3a.conf, nylon-image-base.bb: removed remaints from old OE code (
PACKAGE_INSTALLinstead ofIPKG_INSTALL)
TARGET_ARCH= "arm"(quoted diff) +1
-1-IPKG_ARCHS = "all arm ${MACHINE}" +#PACKAGE_ARCHS = "all arm ${MACHINE}"
Why is that commented?
Review
Quoted 6 lines
(quoted diff) +3
-3-inherit image_ipk -inherit nylon_image -LICENSE = MIT +inherit image +inherit nylon-image +LICENSE = "MIT"
Are you sure about that? image_ipk looks about right for me.
Regards,
:M:
Signature · 1 line
Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de
Quoted 9 lines · Dr. Michael 'Mickey' Lauer
Review
Quoted 6 lines · MartinDietze commit
mtx-3a.conf, nylon-image-base.bb: removed remaints from old OE code (
PACKAGE_INSTALLinstead ofIPKG_INSTALL)
TARGET_ARCH= "arm"(quoted diff) +1
-1-IPKG_ARCHS = "all arm ${MACHINE}" +#PACKAGE_ARCHS = "all arm ${MACHINE}"Why is that commented?
Since I mentioned that it wasn't needed after recent changes (which it isn't).
Quoted 8 lines
Review
Quoted 6 lines
(quoted diff) +3
-3-inherit image_ipk -inherit nylon_image -LICENSE = MIT +inherit image +inherit nylon-image +LICENSE = "MIT"Are you sure about that?
image_ipklooks about right for me.
image_ipk is incorrect and I'd mentioned this being a problem on the mailing list - it was causing parsing errors. We have multiple image generation types now and selecting them like that in .bb files doesn't make sense so images just inherit image.
Cheers,
Richard
Quoted 9 lines · Richard Purdie
Quoted 8 lines
Review
Quoted 6 lines
(quoted diff) +3
-3-inherit image_ipk -inherit nylon_image -LICENSE = MIT +inherit image +inherit nylon-image +LICENSE = "MIT"Are you sure about that?
image_ipklooks about right for me.
Quoted 4 lines
image_ipkis incorrect and I'd mentioned this being a problem on the mailing list - it was causing parsing errors. We have multiple image generation types now and selecting them like that in .bb files doesn't make sense so images just inherit image.
I just noticed that not inheriting image_ipk actually gives me problems because ipkg-native is no longer automatically DEPENDed. Is this a bug or a featuer? In the latter case - where are maintainers supposed to put the necessary configuration?
Cheers,
Martin
Signature · 7 lines
-------------- Martin Dietze --------------- / -- 4G Systeme GmbH Hamburg --- -- [email protected] -- / ---- [email protected] ---- ------------- / http://herbert.the-little-red-haired-girl.org / ------------- =+= Kommt ein Bratscher aufgeregt in das Musikgesch�ft: "Also, die Bratsche, die sie mir gestern verkauft haben, die k�nnen Sie gleich wiederhaben. Da ist ja bei jeder Saite ein anderer Ton drauf!"
Quoted 16 lines · Martin Dietze
Quoted 9 lines · Richard Purdie
Quoted 8 lines
Review
Quoted 6 lines
(quoted diff) +3
-3-inherit image_ipk -inherit nylon_image -LICENSE = MIT +inherit image +inherit nylon-image +LICENSE = "MIT"Are you sure about that?
image_ipklooks about right for me.Quoted 4 lines
image_ipkis incorrect and I'd mentioned this being a problem on the mailing list - it was causing parsing errors. We have multiple image generation types now and selecting them like that in .bb files doesn't make sense so images just inherit image.
Quoted 6 lines
I just noticed that not inheriting
image_ipkactually gives me problems because ipkg-native is no longer automatically DEPENDed. Is this a bug or a featuer? In the latter case - where are maintainers supposed to put the necessary configuration?
I believe that is meant to be inherited on a distro level. The images are generic and the distro chooses what package format it wants to use.
Signature · 1 line
Justin Patrin
Quoted 11 lines · Justin Patrin
Quoted 10 lines · Martin Dietze
Quoted 4 lines
image_ipkis incorrect and I'd mentioned this being a problem on the mailing list - it was causing parsing errors. We have multiple image generation types now and selecting them like that in .bb files doesn't make sense so images just inherit image.I just noticed that not inheriting
image_ipkactually gives me problems because ipkg-native is no longer automatically DEPENDed. Is this a bug or a featuer? In the latter case - where are maintainers supposed to put the necessary configuration?
Is this in OE.dev or in a different branch and which bitbake version? There have been some recent changes that had potential to stop certain DEPENDS from appearing.
Quoted 3 lines
I believe that is meant to be inherited on a distro level. The images are generic and the distro chooses what package format it wants to use.
Kind of. image_ipk.bbclass no longer exists in OE.dev which is why I've said it won't work. The top of image.bbclass does:
inherit rootfs_${IMAGE_PKGTYPE}
IMAGE_PKGTYPE is set by both package_ipk.bbclass and package_deb.bbclass
Users (or distros) have to inherit one or more of these to enable packaging. The first one inherited is used for rootfs generation. Having to select a package type isn't a problem in practise since rootfs generation currently depends on packages.
Cheers,
Richard
Quoted 9 lines · Richard Purdie
Quoted 5 lines
Quoted 5 lines
I just noticed that not inheriting
image_ipkactually gives me problems because ipkg-native is no longer automatically DEPENDed. Is this a bug or a featuer? In the latter case - where are maintainers supposed to put the necessary configuration?Is this in OE.dev or in a different branch and which bitbake version? There have been some recent changes that had potential to stop certain DEPENDS from appearing.
I am using bitbake 1.6.3 and OE.dev. I also tried bitbake 1.8.0 but this does not seem to make any difference.
Quoted 10 lines
Quoted 3 lines
I believe that is meant to be inherited on a distro level. The images are generic and the distro chooses what package format it wants to use.
Kind of. image_ipk.bbclass no longer exists in OE.dev which is why I've said it won't work. The top of image.bbclass does:
inherit rootfs_${IMAGE_PKGTYPE}
IMAGE_PKGTYPEis set by both package_ipk.bbclass and package_deb.bbclass
Yes, I've seen this, but it does not seem to have the effect I want. I had another look at it again today.
Quoted 4 lines
Users (or distros) have to inherit one or more of these to enable packaging. The first one inherited is used for rootfs generation. Having to select a package type isn't a problem in practise since rootfs generation currently depends on packages.
If I understand all this correctly this is supposed to be done by this:
INHERIT += "package_ipk ..."
... in conf/distro/my-distro.conf, which I expect to be used here:
classes/package_ipk.bbclass:IMAGE_PKGTYPE ?= "ipk"
... and which is then expanded here:
classes/image.bbclass:inherit rootfs_${IMAGE_PKGTYPE}
Unfortunately this does not work! The only way I get this to work is by adding a "inherit rootfs_ipk" in the different images' bitbake files, but this is surely not the way it is meant to be?
Cheers,
Martin
Signature · 6 lines
-------------- Martin Dietze --------------- / -- 4G Systeme GmbH Hamburg --- -- [email protected] -- / ---- [email protected] ---- ------------- / http://herbert.the-little-red-haired-girl.org / ------------- =+= Perl ist der gegl?ckte Versuch, einen braindump direkt ausf?hrbar zu machen. -- Lutz Donnerhacke in dasr
On Fri, April 20, 2007, Martin Dietze wrote:
<lengthy context>
Quoted 15 lines
Quoted 4 lines
Users (or distros) have to inherit one or more of these to enable packaging. The first one inherited is used for rootfs generation. Having to select a package type isn't a problem in practise since rootfs generation currently depends on packages.
If I understand all this correctly this is supposed to be done by this:
INHERIT += "
package_ipk..."... in
conf/distro/my-distro.conf, which I expect to be used here:classes/package_ipk.bbclass:IMAGE_PKGTYPE ?= "ipk"
Quoted 8 lines
... and which is then expanded here:
classes/image.bbclass:inherit rootfs_${IMAGE_PKGTYPE}
Unfortunately this does not work! The only way I get this to work is by adding a "inherit
rootfs_ipk" in the different images' bitbake files, but this is surely not the way it is meant to be?
</lengthy context>
Having played around with this for another while it seems like classes/rootfs_ipk should be patched as follows:
rootfs_ipk.bbclass 2007-04-20 14:10:43.406456119 +0200 renamed from rootfs_ipk.bbclass-orig 2007-04-20 14:13:53.534848585 +0200 +1 -0
@@ -9,6 +9,7 @@ IPKG_ARGS = "-f ${T}/ipkg.conf -o ${IMAGE_ROOTFS}" +DEPENDS += "ipkg-native" RDEPENDS += "ipkg ipkg-collateral" PACKAGE_INSTALL += "ipkg ipkg-collateral"
How about this? I would tend to believe that rootfs_deb may need something similar...
Cheers,
Martin
Signature · 6 lines
-------------- Martin Dietze --------------- / -- 4G Systeme GmbH Hamburg --- -- [email protected] -- / ---- [email protected] ---- ------------- / http://herbert.the-little-red-haired-girl.org / ------------- =+= Hlade's Law: If you have a difficult task, give it to a lazy person; they will find an easier way to do it.
[I just wrote]
Quoted 14 lines
Having played around with this for another while it seems like classes/rootfs_ipk should be patched as follows:
rootfs_ipk.bbclass 2007-04-20 14:10:43.406456119 +0200 renamed from rootfs_ipk.bbclass-orig 2007-04-20 14:13:53.534848585 +0200 +1
-0@@ -9,6 +9,7 @@ IPKG_ARGS = "-f ${T}/ipkg.conf -o ${IMAGE_ROOTFS}" +DEPENDS += "ipkg-native" RDEPENDS += "ipkg ipkg-collateral" PACKAGE_INSTALL += "ipkg ipkg-collateral"
Quoted 2 lines
How about this? I would tend to believe that
rootfs_debmay need something similar...
At second glance this does not look much better either. From classes/base.bbclass:
#
# Various backwards compatibility stuff to be removed
# when we switch to bitbake 1.8.2+ as a minimum version #
[...]
if bb.data.inherits_class('rootfs_ipk', d):
depends = "ipkg-native ipkg-utils-native fakeroot-native " + depends
I read from this that these dependencies should have been set somewhere else already. So where do they come from?
Cheers,
Martin
Signature · 5 lines
-------------- Martin Dietze --------------- / -- 4G Systeme GmbH Hamburg --- -- [email protected] -- / ---- [email protected] ---- ------------- / http://herbert.the-little-red-haired-girl.org / ------------- =+= Hier ich bin, steine Dich wie ein Wirbelwind.
Quoted 9 lines · Martin Dietze
[I just wrote]
Quoted 7 lines
Having played around with this for another while it seems like classes/rootfs_ipk should be patched as follows:
rootfs_ipk.bbclass 2007-04-20 14:10:43.406456119 +0200 renamed from rootfs_ipk.bbclass-orig 2007-04-20 14:13:53.534848585 +0200 +0
-0@@ -9,6 +9,7 @@
Quoted 5 lines
rootfs_ipk.bbclass 2007-04-20 14:10:43.406456119 +0200 line 14
Quoted 5 lines
rootfs_ipk.bbclass 2007-04-20 14:10:43.406456119 +0200 renamed from rootfs_ipk.bbclass-orig 2007-04-20 14:13:53.534848585 +0200 +1
-0IPKG_ARGS = "-f ${T}/ipkg.conf -o ${IMAGE_ROOTFS}" +DEPENDS += "ipkg-native" RDEPENDS += "ipkg ipkg-collateral" PACKAGE_INSTALL += "ipkg ipkg-collateral"
This shouldn't be needed as you later point out.
Quoted 11 lines
Quoted 2 lines
How about this? I would tend to believe that
rootfs_debmay need something similar...At second glance this does not look much better either. From classes/base.bbclass:
#
# Various backwards compatibility stuff to be removed# when we switch to bitbake 1.8.2+ as a minimum version #
Quoted 7 lines
[...]
if
bb.data.inherits_class('rootfs_ipk', d):
depends = "ipkg-native ipkg-utils-native fakeroot-native " + dependsI read from this that these dependencies should have been set somewhere else already. So where do they come from?
That is the code which is supposed to set them for bitbake 1.6.3.
For bitbake 1.8.1+, rootfs_ipk.bbclass says:
do_rootfs[depends] += "ipkg-native:do_populate_staging ipkg-utils-native:do_populate_staging"
Regards,
Richard
Quoted 5 lines · Richard Purdie
Quoted 4 lines · Dr. Michael 'Mickey' Lauer
Quoted 2 lines · MartinDietze commit
mtx-3a.conf, nylon-image-base.bb: removed remaints from old OE code (
PACKAGE_INSTALLinstead ofIPKG_INSTALL)
Quoted 8 lines
Quoted 5 lines
Review
Quoted 3 lines
TARGET_ARCH= "arm"(quoted diff) +1
-1-IPKG_ARCHS = "all arm ${MACHINE}" +#PACKAGE_ARCHS = "all arm ${MACHINE}"Why is that commented?
Since I mentioned that it wasn't needed after recent changes (which it isn't).
Ah.
Quoted 9 lines
Quoted 8 lines
Review
Quoted 6 lines
(quoted diff) +3
-3-inherit image_ipk -inherit nylon_image -LICENSE = MIT +inherit image +inherit nylon-image +LICENSE = "MIT"Are you sure about that?
image_ipklooks about right for me.
Quoted 4 lines
image_ipkis incorrect and I'd mentioned this being a problem on the mailing list - it was causing parsing errors. We have multiple image generation types now and selecting them like that in .bb files doesn't make sense so images just inherit image.
Oh.
Guess I should better refrain from commenting until I'm working with .dev again...
Regards,
:M:
Signature · 1 line
Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de