* [RFC][PATCH] packagegroup.bbclass: Drop build-time dependencies @ 2013-11-01 12:12 Martin Jansa 2013-11-01 13:37 ` Paul Eggleton 2013-11-17 13:52 ` [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX Martin Jansa 0 siblings, 2 replies; 16+ messages in thread From: Martin Jansa @ 2013-11-01 12:12 UTC (permalink / raw) To: openembedded-core * RFC because: packagegroup.bbclass inherits allarch and by default sets PACKAGE_ARCH = "all", but then it has runtime-dependency on TUNE_PKGARCH packages and different signatures, so instead of setting INHIBIT_DEFAULT_DEPS in addition to inherit allarch I would like to drop default allarch completely. * drop virtual/kernel dependency from packagegroup-core-boot because kernel isn't needed to build packagegroup and building it doesn't influence if it's included in image or not. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> --- meta/classes/packagegroup.bbclass | 4 ++++ meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/classes/packagegroup.bbclass b/meta/classes/packagegroup.bbclass index 9bc9cc2..bd212fd 100644 --- a/meta/classes/packagegroup.bbclass +++ b/meta/classes/packagegroup.bbclass @@ -11,6 +11,10 @@ PACKAGES = "${PN}" # need to be set to MACHINE_ARCH after inheriting packagegroup.bbclass inherit allarch +# allarch.bbclass does that only when PACKAGE_ARCH = "all", +# but we don't want any build time dependencies even for MACHINE_ARCH packagegroups +INHIBIT_DEFAULT_DEPS = "1" + # This automatically adds -dbg and -dev flavours of all PACKAGES # to the list. Their dependencies (RRECOMMENDS) are handled as usual # by package_depchains in a following step. diff --git a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb index 486385a..5455899 100644 --- a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb +++ b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb @@ -5,7 +5,6 @@ SUMMARY = "Minimal boot requirements" DESCRIPTION = "The minimal set of packages required to boot the system" LICENSE = "MIT" -DEPENDS = "virtual/kernel" PR = "r11" inherit packagegroup -- 1.8.4.2 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [RFC][PATCH] packagegroup.bbclass: Drop build-time dependencies 2013-11-01 12:12 [RFC][PATCH] packagegroup.bbclass: Drop build-time dependencies Martin Jansa @ 2013-11-01 13:37 ` Paul Eggleton 2013-11-01 18:14 ` Richard Purdie 2013-11-17 13:52 ` [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX Martin Jansa 1 sibling, 1 reply; 16+ messages in thread From: Paul Eggleton @ 2013-11-01 13:37 UTC (permalink / raw) To: Martin Jansa; +Cc: openembedded-core Hi Martin, On Friday 01 November 2013 13:12:12 Martin Jansa wrote: > * RFC because: > packagegroup.bbclass inherits allarch and by default sets > PACKAGE_ARCH = "all", but then it has runtime-dependency on > TUNE_PKGARCH packages and different signatures, so instead > of setting INHIBIT_DEFAULT_DEPS in addition to inherit allarch > I would like to drop default allarch completely. The fix looks OK, but I don't think we should be going further and removing the inherit. To my mind, the question of dependencies comes down to whether or not the packagegroup output changes depending on TUNE_PKGARCH, which in the general case it should not do. If we need to do some optimisation to avoid the packagegroup recipe rebuilding when it shouldn't due to packages it "contains" changing, we can certainly look at that. > * drop virtual/kernel dependency from packagegroup-core-boot > because kernel isn't needed to build packagegroup and building > it doesn't influence if it's included in image or not. Yes, I agree this seems erroneous. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [RFC][PATCH] packagegroup.bbclass: Drop build-time dependencies 2013-11-01 13:37 ` Paul Eggleton @ 2013-11-01 18:14 ` Richard Purdie 2013-11-01 19:06 ` Paul Eggleton 0 siblings, 1 reply; 16+ messages in thread From: Richard Purdie @ 2013-11-01 18:14 UTC (permalink / raw) To: Paul Eggleton; +Cc: openembedded-core On Fri, 2013-11-01 at 13:37 +0000, Paul Eggleton wrote: > Hi Martin, > > On Friday 01 November 2013 13:12:12 Martin Jansa wrote: > > * RFC because: > > packagegroup.bbclass inherits allarch and by default sets > > PACKAGE_ARCH = "all", but then it has runtime-dependency on > > TUNE_PKGARCH packages and different signatures, so instead > > of setting INHIBIT_DEFAULT_DEPS in addition to inherit allarch > > I would like to drop default allarch completely. > > The fix looks OK, but I don't think we should be going further and removing the > inherit. To my mind, the question of dependencies comes down to whether or not > the packagegroup output changes depending on TUNE_PKGARCH, which in the > general case it should not do. > > If we need to do some optimisation to avoid the packagegroup recipe rebuilding > when it shouldn't due to packages it "contains" changing, we can certainly > look at that. A better idea might be something like: diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py index 852fb7e..23e28f0 100644 --- a/meta/lib/oe/sstatesig.py +++ b/meta/lib/oe/sstatesig.py @@ -11,6 +11,8 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache): def isKernel(fn): inherits = " ".join(dataCache.inherits[fn]) return inherits.find("module-base.bbclass") != -1 or inherits.find("linux-kernel-base.bbclass") != -1 + def isPackageGroup(x): + return "packagegroup-" in x # Always include our own inter-task dependencies if recipename == depname: @@ -27,6 +29,10 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache): # Only target packages beyond here + # packagegroups are assumed to have well behaved names which don't change between architecures/tunes + if isPackageGroup(recipename): + return False + # Drop native/cross/nativesdk dependencies from target recipes if isNative(depname) or isCross(depname) or isNativeSDK(depname): return False although this is untested and needs more careful thought... Cheers, Richard ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [RFC][PATCH] packagegroup.bbclass: Drop build-time dependencies 2013-11-01 18:14 ` Richard Purdie @ 2013-11-01 19:06 ` Paul Eggleton 0 siblings, 0 replies; 16+ messages in thread From: Paul Eggleton @ 2013-11-01 19:06 UTC (permalink / raw) To: Richard Purdie; +Cc: openembedded-core On Friday 01 November 2013 18:14:03 Richard Purdie wrote: > On Fri, 2013-11-01 at 13:37 +0000, Paul Eggleton wrote: > > On Friday 01 November 2013 13:12:12 Martin Jansa wrote: > > > * RFC because: > > > packagegroup.bbclass inherits allarch and by default sets > > > PACKAGE_ARCH = "all", but then it has runtime-dependency on > > > TUNE_PKGARCH packages and different signatures, so instead > > > of setting INHIBIT_DEFAULT_DEPS in addition to inherit allarch > > > I would like to drop default allarch completely. > > > > The fix looks OK, but I don't think we should be going further and > > removing the inherit. To my mind, the question of dependencies comes down > > to whether or not the packagegroup output changes depending on > > TUNE_PKGARCH, which in the general case it should not do. > > > > If we need to do some optimisation to avoid the packagegroup recipe > > rebuilding when it shouldn't due to packages it "contains" changing, we > > can certainly look at that. > > A better idea might be something like: > > diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py > index 852fb7e..23e28f0 100644 > --- a/meta/lib/oe/sstatesig.py > +++ b/meta/lib/oe/sstatesig.py > @@ -11,6 +11,8 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, > depname, dataCache): def isKernel(fn): > inherits = " ".join(dataCache.inherits[fn]) > return inherits.find("module-base.bbclass") != -1 or > inherits.find("linux-kernel-base.bbclass") != -1 > + def isPackageGroup(x): > + return "packagegroup-" in x OK, but I think we can rely on checking inheritance for this. It didn't used to be the case but after my task -> packagegroup cleanup some time ago all of these recipes inherit the packagegroup class. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX 2013-11-01 12:12 [RFC][PATCH] packagegroup.bbclass: Drop build-time dependencies Martin Jansa 2013-11-01 13:37 ` Paul Eggleton @ 2013-11-17 13:52 ` Martin Jansa 2013-11-17 13:52 ` [PATCH 2/7] packagegroup-core-boot: Drop build-time dependency on virtual/kernel Martin Jansa ` (6 more replies) 1 sibling, 7 replies; 16+ messages in thread From: Martin Jansa @ 2013-11-17 13:52 UTC (permalink / raw) To: openembedded-core * typical case where we inherit allarch and override PACKAGE_ARCH are packagegroup recipes, but those need default dependencies inhibited even when they are MACHINE_ARCH or TUNE_PKGARCH. I don't know about any recipe which inherits allarch and needs default dependencies. * set empty TARGET_PREFIX This has a bit weird reason caused by unsupported setup where external-toolchain is used in some DISTRO only for some MACHINEs and internal is used for other MACHINEs. Because external-toolchain usually comes with different TARGET_PREFIX it was causing allarch recipes to have different signatures even when they don't use toolchain at all. Empty TARGET_PREFIX also helps to find allarch recipes which still have default dependency on e.g. virtual/${TARGET_PREFIX}gcc. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> --- meta/classes/allarch.bbclass | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass index 5e13a5b..4a65f77 100644 --- a/meta/classes/allarch.bbclass +++ b/meta/classes/allarch.bbclass @@ -9,12 +9,13 @@ STAGING_DIR_HOST := "${STAGING_DIR_HOST}" PACKAGE_ARCH = "all" python () { + # No need for virtual/libc or a cross compiler even for recipes which + # change PACKAGE_ARCH e.g. to MACHINE_ARCH + d.setVar("INHIBIT_DEFAULT_DEPS","1") + # Allow this class to be included but overridden - only set # the values if we're still "all" package arch. if d.getVar("PACKAGE_ARCH") == "all": - # No need for virtual/libc or a cross compiler - d.setVar("INHIBIT_DEFAULT_DEPS","1") - # Set these to a common set of values, we shouldn't be using them other that for WORKDIR directory # naming anyway d.setVar("TARGET_ARCH", "allarch") @@ -23,6 +24,7 @@ python () { d.setVar("TARGET_LD_ARCH", "none") d.setVar("TARGET_AS_ARCH", "none") d.setVar("PACKAGE_EXTRA_ARCHS", "") + d.setVar("TARGET_PREFIX", "") # No need to do shared library processing or debug symbol handling d.setVar("EXCLUDE_FROM_SHLIBS", "1") -- 1.8.4.3 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH 2/7] packagegroup-core-boot: Drop build-time dependency on virtual/kernel 2013-11-17 13:52 ` [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX Martin Jansa @ 2013-11-17 13:52 ` Martin Jansa 2013-11-20 5:57 ` ChenQi 2013-11-17 13:52 ` [PATCH 3/7] xuser-account: Drop allarch inherit Martin Jansa ` (5 subsequent siblings) 6 siblings, 1 reply; 16+ messages in thread From: Martin Jansa @ 2013-11-17 13:52 UTC (permalink / raw) To: openembedded-core * because kernel isn't needed to build packagegroup and building it doesn't influence if it's included in image or not. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> --- meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 1 - 1 file changed, 1 deletion(-) diff --git a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb index 486385a..5455899 100644 --- a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb +++ b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb @@ -5,7 +5,6 @@ SUMMARY = "Minimal boot requirements" DESCRIPTION = "The minimal set of packages required to boot the system" LICENSE = "MIT" -DEPENDS = "virtual/kernel" PR = "r11" inherit packagegroup -- 1.8.4.3 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH 2/7] packagegroup-core-boot: Drop build-time dependency on virtual/kernel 2013-11-17 13:52 ` [PATCH 2/7] packagegroup-core-boot: Drop build-time dependency on virtual/kernel Martin Jansa @ 2013-11-20 5:57 ` ChenQi 0 siblings, 0 replies; 16+ messages in thread From: ChenQi @ 2013-11-20 5:57 UTC (permalink / raw) To: openembedded-core On 11/17/2013 09:52 PM, Martin Jansa wrote: > * because kernel isn't needed to build packagegroup and building > it doesn't influence if it's included in image or not. > > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> > --- > meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb > index 486385a..5455899 100644 > --- a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb > +++ b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb > @@ -5,7 +5,6 @@ > SUMMARY = "Minimal boot requirements" > DESCRIPTION = "The minimal set of packages required to boot the system" > LICENSE = "MIT" > -DEPENDS = "virtual/kernel" > PR = "r11" > > inherit packagegroup What about adding this dependency in image.bbclass? Otherwise, the kernel will not get built if it's not pulled in by other packages like v86d. For example, if we build core-image-minimal for qemumips, the kernel is not built by default and we have to `bitbake linux-yocto' before we can use `runqemu' to start target. Best Regards, Chen Qi ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 3/7] xuser-account: Drop allarch inherit 2013-11-17 13:52 ` [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX Martin Jansa 2013-11-17 13:52 ` [PATCH 2/7] packagegroup-core-boot: Drop build-time dependency on virtual/kernel Martin Jansa @ 2013-11-17 13:52 ` Martin Jansa 2013-11-17 13:52 ` [PATCH 4/7] linux-firmware: Drop allarch Martin Jansa ` (4 subsequent siblings) 6 siblings, 0 replies; 16+ messages in thread From: Martin Jansa @ 2013-11-17 13:52 UTC (permalink / raw) To: openembedded-core * has build time dependency on TUNE_PKGARCH recipes: bitbake-diffsigs sstate-diff/1383303628/*/all*/xuser-account/*do_configure* Hash for dependent task base-passwd_3.5.26.bb.do_populate_sysroot changed from 09b3168865b6212269d4e5512a963b9e to ffa22dc51e42a164a7392ec719151629 Hash for dependent task shadow_4.1.4.3.bb.do_populate_sysroot changed from f426f0c93b2d341050b2547804645314 to 89bdbb151f8c200553c9a74e89504457 Hash for dependent task shadow-sysroot_4.1.4.3.bb.do_populate_sysroot changed from c42103fe54ac5109eab8de4fb0eb9a75 to f83f628e766fdbd49eb2a44cf6134339 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> --- meta/recipes-support/user-creation/xuser-account_0.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-support/user-creation/xuser-account_0.1.bb b/meta/recipes-support/user-creation/xuser-account_0.1.bb index 58e8139..f9b8ccd 100644 --- a/meta/recipes-support/user-creation/xuser-account_0.1.bb +++ b/meta/recipes-support/user-creation/xuser-account_0.1.bb @@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384 SRC_URI = "" -inherit allarch useradd +inherit useradd do_configure() { : -- 1.8.4.3 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH 4/7] linux-firmware: Drop allarch 2013-11-17 13:52 ` [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX Martin Jansa 2013-11-17 13:52 ` [PATCH 2/7] packagegroup-core-boot: Drop build-time dependency on virtual/kernel Martin Jansa 2013-11-17 13:52 ` [PATCH 3/7] xuser-account: Drop allarch inherit Martin Jansa @ 2013-11-17 13:52 ` Martin Jansa 2013-11-18 10:57 ` Richard Purdie 2013-11-17 13:52 ` [PATCH 5/7] ppp-dialin: " Martin Jansa ` (3 subsequent siblings) 6 siblings, 1 reply; 16+ messages in thread From: Martin Jansa @ 2013-11-17 13:52 UTC (permalink / raw) To: openembedded-core * the recipe itself is allarch, but update-alternatives adds dependency on virtual/${MLPREFIX}update-alternatives which can be TUNE_PKGARCH opkg causing linux-firmware signature to be different for different TUNE_PKGARCHs Hash for dependent task opkg_svn.bb.do_populate_sysroot changed from 8d215059308161841a84542dd1dcbf3a to 80b280c741c392cf5b30dd67b61dd56e Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> --- meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb index e3a099a..ebb9c81 100644 --- a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +++ b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb @@ -32,7 +32,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware S = "${WORKDIR}/git" -inherit allarch update-alternatives +inherit update-alternatives do_compile() { : -- 1.8.4.3 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH 4/7] linux-firmware: Drop allarch 2013-11-17 13:52 ` [PATCH 4/7] linux-firmware: Drop allarch Martin Jansa @ 2013-11-18 10:57 ` Richard Purdie 0 siblings, 0 replies; 16+ messages in thread From: Richard Purdie @ 2013-11-18 10:57 UTC (permalink / raw) To: Martin Jansa; +Cc: openembedded-core On Sun, 2013-11-17 at 14:52 +0100, Martin Jansa wrote: > * the recipe itself is allarch, but update-alternatives adds dependency on > virtual/${MLPREFIX}update-alternatives which can be TUNE_PKGARCH opkg > causing linux-firmware signature to be different for different TUNE_PKGARCHs > Hash for dependent task opkg_svn.bb.do_populate_sysroot changed from 8d215059308161841a84542dd1dcbf3a to 80b280c741c392cf5b30dd67b61dd56e > > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> > --- > meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb > index e3a099a..ebb9c81 100644 > --- a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb > +++ b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb > @@ -32,7 +32,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware > > S = "${WORKDIR}/git" > > -inherit allarch update-alternatives > +inherit update-alternatives I think this is one case where we should whitelist update-alternatives as being ABI/API safe instead. There is no point in building the firmware multiple times. Cheers, Richard ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 5/7] ppp-dialin: Drop allarch 2013-11-17 13:52 ` [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX Martin Jansa ` (2 preceding siblings ...) 2013-11-17 13:52 ` [PATCH 4/7] linux-firmware: Drop allarch Martin Jansa @ 2013-11-17 13:52 ` Martin Jansa 2013-11-17 13:52 ` [PATCH 6/7] initramfs-framework: " Martin Jansa ` (2 subsequent siblings) 6 siblings, 0 replies; 16+ messages in thread From: Martin Jansa @ 2013-11-17 13:52 UTC (permalink / raw) To: openembedded-core * depends on some TUNE_PKGARCH recipes: base-passwd, ppp_, shadow-sysroot, shadow Hash for dependent task base-passwd_3.5.26.bb.do_populate_sysroot changed from ff08f0198f5424a21ccb61957325ffdf to d9d962e2d8c0d591b916ed68aa826efe Hash for dependent task ppp_2.4.5.bb.do_populate_sysroot changed from 515251fb9d5196733f9b6ca0f6cc041b to 5cfb0b7b71f4440c3147da52c22234cc Hash for dependent task shadow-sysroot_4.1.4.3.bb.do_populate_sysroot changed from 3e5bddc578887636c1809e4cdf28c1c2 to 8f03231a1d4bb1aea6c4adce1febc1b4 Hash for dependent task shadow_4.1.4.3.bb.do_populate_sysroot changed from 518f7edcba3545e5c60c3a13cef23169 to 7dbf1646de02a117bf0d573276b878c0 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> --- meta/recipes-connectivity/ppp-dialin/ppp-dialin_0.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-connectivity/ppp-dialin/ppp-dialin_0.1.bb b/meta/recipes-connectivity/ppp-dialin/ppp-dialin_0.1.bb index d239c20..6aeda4c 100644 --- a/meta/recipes-connectivity/ppp-dialin/ppp-dialin_0.1.bb +++ b/meta/recipes-connectivity/ppp-dialin/ppp-dialin_0.1.bb @@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3 SRC_URI = "file://host-peer \ file://ppp-dialin" -inherit allarch useradd +inherit useradd do_install() { install -d ${D}${sysconfdir}/ppp/peers -- 1.8.4.3 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH 6/7] initramfs-framework: Drop allarch 2013-11-17 13:52 ` [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX Martin Jansa ` (3 preceding siblings ...) 2013-11-17 13:52 ` [PATCH 5/7] ppp-dialin: " Martin Jansa @ 2013-11-17 13:52 ` Martin Jansa 2013-11-17 13:52 ` [PATCH 7/7] resolvconf: " Martin Jansa 2013-11-18 12:31 ` [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX Richard Purdie 6 siblings, 0 replies; 16+ messages in thread From: Martin Jansa @ 2013-11-17 13:52 UTC (permalink / raw) To: openembedded-core * depends on TUNE_PKGARCH busybox and udev Hash for dependent task busybox_1.20.2.bb.do_packagedata changed from b814437371de0c3253bdd3610c051f30 to 7dd9c851d5f7c675dd65cc7872c30743 Hash for dependent task udev_182.bb.do_packagedata changed from 1034300ce0e27d444e0e7d9e2a239605 to c13031b26b2a86dcf9bcce33b7823477 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> --- meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb | 2 -- 1 file changed, 2 deletions(-) diff --git a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb index a2c0813..c0c2a71 100644 --- a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb +++ b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb @@ -5,8 +5,6 @@ RDEPENDS_${PN} += "busybox" PR = "r2" -inherit allarch - SRC_URI = "file://init \ file://finish \ file://mdev \ -- 1.8.4.3 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH 7/7] resolvconf: Drop allarch 2013-11-17 13:52 ` [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX Martin Jansa ` (4 preceding siblings ...) 2013-11-17 13:52 ` [PATCH 6/7] initramfs-framework: " Martin Jansa @ 2013-11-17 13:52 ` Martin Jansa 2013-11-18 12:31 ` [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX Richard Purdie 6 siblings, 0 replies; 16+ messages in thread From: Martin Jansa @ 2013-11-17 13:52 UTC (permalink / raw) To: openembedded-core * has runtime dependency on TUNE_PKGARCH bash Hash for dependent task bash_4.2.bb.do_packagedata changed from d6eafb155c37bc2da7327492afa449fb to 0ae080aaa92025af690cf16ef0cd2b7e Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> --- meta/recipes-connectivity/resolvconf/resolvconf_1.74.bb | 2 -- 1 file changed, 2 deletions(-) diff --git a/meta/recipes-connectivity/resolvconf/resolvconf_1.74.bb b/meta/recipes-connectivity/resolvconf/resolvconf_1.74.bb index 5897e40..c1d7b19 100644 --- a/meta/recipes-connectivity/resolvconf/resolvconf_1.74.bb +++ b/meta/recipes-connectivity/resolvconf/resolvconf_1.74.bb @@ -16,8 +16,6 @@ SRC_URI = "${DEBIAN_MIRROR}/main/r/resolvconf/resolvconf_${PV}.tar.gz" SRC_URI[md5sum] = "2f190d3bb8960b69157f63590c262e93" SRC_URI[sha256sum] = "2e72e6884e9105cbf57101ab0f11e768717b6f76b7f5100c6a2a0cc69bb3d4a0" -inherit allarch - do_compile () { : } -- 1.8.4.3 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX 2013-11-17 13:52 ` [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX Martin Jansa ` (5 preceding siblings ...) 2013-11-17 13:52 ` [PATCH 7/7] resolvconf: " Martin Jansa @ 2013-11-18 12:31 ` Richard Purdie 2013-11-18 15:54 ` Martin Jansa 6 siblings, 1 reply; 16+ messages in thread From: Richard Purdie @ 2013-11-18 12:31 UTC (permalink / raw) To: Martin Jansa; +Cc: openembedded-core On Sun, 2013-11-17 at 14:52 +0100, Martin Jansa wrote: > * typical case where we inherit allarch and override PACKAGE_ARCH > are packagegroup recipes, but those need default dependencies > inhibited even when they are MACHINE_ARCH or TUNE_PKGARCH. > I don't know about any recipe which inherits allarch and needs > default dependencies. The code there was added to allow the allarch class to be enabled or disabled. I don't remember exactly why we needed to do that however it was added for a reason and making part of it unconditional again will probably break whyever we made it optional :(. I can understand how you came to this conclusion though. Which cases is this causing problems for? > * set empty TARGET_PREFIX > This has a bit weird reason caused by unsupported setup where > external-toolchain is used in some DISTRO only for some MACHINEs > and internal is used for other MACHINEs. > Because external-toolchain usually comes with different TARGET_PREFIX > it was causing allarch recipes to have different signatures even > when they don't use toolchain at all. > Empty TARGET_PREFIX also helps to find allarch recipes which still > have default dependency on e.g. virtual/${TARGET_PREFIX}gcc. This seems ok, I'd have taken it if it was a separate patch. Cheers, Richard ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX 2013-11-18 12:31 ` [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX Richard Purdie @ 2013-11-18 15:54 ` Martin Jansa 2013-11-18 15:58 ` Martin Jansa 0 siblings, 1 reply; 16+ messages in thread From: Martin Jansa @ 2013-11-18 15:54 UTC (permalink / raw) To: Richard Purdie; +Cc: openembedded-core [-- Attachment #1: Type: text/plain, Size: 2165 bytes --] On Mon, Nov 18, 2013 at 12:31:15PM +0000, Richard Purdie wrote: > On Sun, 2013-11-17 at 14:52 +0100, Martin Jansa wrote: > > * typical case where we inherit allarch and override PACKAGE_ARCH > > are packagegroup recipes, but those need default dependencies > > inhibited even when they are MACHINE_ARCH or TUNE_PKGARCH. > > I don't know about any recipe which inherits allarch and needs > > default dependencies. > > The code there was added to allow the allarch class to be enabled or > disabled. I don't remember exactly why we needed to do that however it > was added for a reason and making part of it unconditional again will > probably break whyever we made it optional :(. I think that use case was MACHINE_ARCH packagegroups loosing -gnueabi suffix, so that everything except packagegroups (or other MACHINE_ARCH allarch recipes) was built in workdir: MACHINE-oe-linux-gnueabi and packagegroups in MACHINE-oe-linux I don't think we had the use case where we needed to conditionally keep default deps (but of course my memory isn't perfect and I can be wrong). > I can understand how you came to this conclusion though. Which cases is > this causing problems for? > > > * set empty TARGET_PREFIX > > This has a bit weird reason caused by unsupported setup where > > external-toolchain is used in some DISTRO only for some MACHINEs > > and internal is used for other MACHINEs. > > Because external-toolchain usually comes with different TARGET_PREFIX > > it was causing allarch recipes to have different signatures even > > when they don't use toolchain at all. > > Empty TARGET_PREFIX also helps to find allarch recipes which still > > have default dependency on e.g. virtual/${TARGET_PREFIX}gcc. > > This seems ok, I'd have taken it if it was a separate patch. It's related to above, because "thanks" to empty TARGET_PREFIX I've found few MACHINE_ARCH+allarch recipes in meta-webos which weren't using toolchain, but default deps had nonexistent "virtual/gcc". So we cannot merge TARGET_PREFIX without the above part. -- Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 205 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX 2013-11-18 15:54 ` Martin Jansa @ 2013-11-18 15:58 ` Martin Jansa 0 siblings, 0 replies; 16+ messages in thread From: Martin Jansa @ 2013-11-18 15:58 UTC (permalink / raw) To: Richard Purdie; +Cc: openembedded-core [-- Attachment #1: Type: text/plain, Size: 2460 bytes --] On Mon, Nov 18, 2013 at 04:54:42PM +0100, Martin Jansa wrote: > On Mon, Nov 18, 2013 at 12:31:15PM +0000, Richard Purdie wrote: > > On Sun, 2013-11-17 at 14:52 +0100, Martin Jansa wrote: > > > * typical case where we inherit allarch and override PACKAGE_ARCH > > > are packagegroup recipes, but those need default dependencies > > > inhibited even when they are MACHINE_ARCH or TUNE_PKGARCH. > > > I don't know about any recipe which inherits allarch and needs > > > default dependencies. > > > > The code there was added to allow the allarch class to be enabled or > > disabled. I don't remember exactly why we needed to do that however it > > was added for a reason and making part of it unconditional again will > > probably break whyever we made it optional :(. > > I think that use case was MACHINE_ARCH packagegroups loosing -gnueabi > suffix, so that everything except packagegroups (or other MACHINE_ARCH > allarch recipes) was built in workdir: > MACHINE-oe-linux-gnueabi > and packagegroups in > MACHINE-oe-linux > > I don't think we had the use case where we needed to conditionally keep > default deps (but of course my memory isn't perfect and I can be wrong). > > > I can understand how you came to this conclusion though. Which cases is > > this causing problems for? > > > > > * set empty TARGET_PREFIX > > > This has a bit weird reason caused by unsupported setup where > > > external-toolchain is used in some DISTRO only for some MACHINEs > > > and internal is used for other MACHINEs. > > > Because external-toolchain usually comes with different TARGET_PREFIX > > > it was causing allarch recipes to have different signatures even > > > when they don't use toolchain at all. > > > Empty TARGET_PREFIX also helps to find allarch recipes which still > > > have default dependency on e.g. virtual/${TARGET_PREFIX}gcc. > > > > This seems ok, I'd have taken it if it was a separate patch. > > It's related to above, because "thanks" to empty TARGET_PREFIX I've > found few MACHINE_ARCH+allarch recipes in meta-webos which weren't using > toolchain, but default deps had nonexistent "virtual/gcc". Ah sorry this wasn't very accurate, I've found it with earlier version of this patch which was unconditionally inhibiting default deps only for packagegroup.bbclass not allarch.bbclass where it should be. -- Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 205 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2013-11-20 5:56 UTC | newest] Thread overview: 16+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-11-01 12:12 [RFC][PATCH] packagegroup.bbclass: Drop build-time dependencies Martin Jansa 2013-11-01 13:37 ` Paul Eggleton 2013-11-01 18:14 ` Richard Purdie 2013-11-01 19:06 ` Paul Eggleton 2013-11-17 13:52 ` [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX Martin Jansa 2013-11-17 13:52 ` [PATCH 2/7] packagegroup-core-boot: Drop build-time dependency on virtual/kernel Martin Jansa 2013-11-20 5:57 ` ChenQi 2013-11-17 13:52 ` [PATCH 3/7] xuser-account: Drop allarch inherit Martin Jansa 2013-11-17 13:52 ` [PATCH 4/7] linux-firmware: Drop allarch Martin Jansa 2013-11-18 10:57 ` Richard Purdie 2013-11-17 13:52 ` [PATCH 5/7] ppp-dialin: " Martin Jansa 2013-11-17 13:52 ` [PATCH 6/7] initramfs-framework: " Martin Jansa 2013-11-17 13:52 ` [PATCH 7/7] resolvconf: " Martin Jansa 2013-11-18 12:31 ` [PATCH 1/7] allarch: Always inhibit default dependencies and set empty TARGET_PREFIX Richard Purdie 2013-11-18 15:54 ` Martin Jansa 2013-11-18 15:58 ` Martin Jansa
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox