Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH][master][jethro][fido][dizzy] image.bbclass: don't add BUILDNAME to do_rootfs vardeps
Date: Tue, 10 Nov 2015 10:05:27 +0100	[thread overview]
Message-ID: <20151110090527.GA2561@jama> (raw)
In-Reply-To: <1447145891-13916-1-git-send-email-Martin.Jansa@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 4899 bytes --]

On Tue, Nov 10, 2015 at 09:58:11AM +0100, Martin Jansa wrote:
> * it was explicitly excluded in rootfs_*.bbclass which doesn't use this
>   variable anymore, so we can drop it there, but I don't understand why
>   it was added explicitly in image.bbclass, we don't want image to
>   rebuild just because timestamp is different.
> * causes following ERROR when bitbake -S is used:
>   NOTE: Reparsing files to collect dependency data
>   Writing locked sigs to locked-sigs.inc
>   ERROR: Bitbake's cached basehash does not match the one we just generated (some-image.bb.do_rootfs)!
>   ERROR: The mismatched hashes were 508d48864b14ce94ca69ea6062f9e5f8 and f81487a10e995426d493a4a50b088721
>   $ bitbake-diffsigs BUILD/sstate-diff/c*/foo/bar/some-image/*do_rootfs.sig*
>   basehash changed from f81487a10e995426d493a4a50b088721 to 263d1d44d6fda0101c89de3b2a489af9
>   Variable BUILDNAME value changed from '201511100025' to '201511100037'

I'm sorry, only the rootfs_*.bbclass part does apply to all 4 branches
and it's just cleanup, so it doesn't need to be backported.

For image.bbclass in dizzy we need to backport eb6305d03723527830976c3a4ce2342a0e09eefc (included in fido).
Armin: can you take care of ^?

> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  meta/classes/image.bbclass      | 2 +-
>  meta/classes/rootfs_deb.bbclass | 1 -
>  meta/classes/rootfs_ipk.bbclass | 1 -
>  meta/classes/rootfs_rpm.bbclass | 1 -
>  4 files changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
> index 1c0fda7..c0f9775 100644
> --- a/meta/classes/image.bbclass
> +++ b/meta/classes/image.bbclass
> @@ -94,7 +94,7 @@ def rootfs_variables(d):
>                   'IMAGE_ROOTFS_MAXSIZE','IMAGE_NAME','IMAGE_LINK_NAME','IMAGE_MANIFEST','DEPLOY_DIR_IMAGE','RM_OLD_IMAGE','IMAGE_FSTYPES','IMAGE_INSTALL_COMPLEMENTARY','IMAGE_LINGUAS','SDK_OS',
>                   'SDK_OUTPUT','SDKPATHNATIVE','SDKTARGETSYSROOT','SDK_DIR','SDK_VENDOR','SDKIMAGE_INSTALL_COMPLEMENTARY','SDK_PACKAGE_ARCHS','SDK_OUTPUT','SDKTARGETSYSROOT','MULTILIBRE_ALLOW_REP',
>                   'MULTILIB_TEMP_ROOTFS','MULTILIB_VARIANTS','MULTILIBS','ALL_MULTILIB_PACKAGE_ARCHS','MULTILIB_GLOBAL_VARIANTS','BAD_RECOMMENDATIONS','NO_RECOMMENDATIONS','PACKAGE_ARCHS',
> -                 'PACKAGE_CLASSES','TARGET_VENDOR','TARGET_VENDOR','TARGET_ARCH','TARGET_OS','OVERRIDES','BBEXTENDVARIANT','FEED_DEPLOYDIR_BASE_URI','INTERCEPT_DIR','BUILDNAME','USE_DEVFS',
> +                 'PACKAGE_CLASSES','TARGET_VENDOR','TARGET_VENDOR','TARGET_ARCH','TARGET_OS','OVERRIDES','BBEXTENDVARIANT','FEED_DEPLOYDIR_BASE_URI','INTERCEPT_DIR','USE_DEVFS',
>                   'STAGING_KERNEL_DIR','COMPRESSIONTYPES']
>      variables.extend(command_variables(d))
>      variables.extend(variable_depends(d))
> diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass
> index d51b458..f79fca6 100644
> --- a/meta/classes/rootfs_deb.bbclass
> +++ b/meta/classes/rootfs_deb.bbclass
> @@ -8,7 +8,6 @@ ROOTFS_PKGMANAGE_BOOTSTRAP  = "run-postinsts"
>  do_rootfs[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot"
>  do_populate_sdk[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot bzip2-native:do_populate_sysroot"
>  do_rootfs[recrdeptask] += "do_package_write_deb"
> -rootfs_deb_do_rootfs[vardepsexclude] += "BUILDNAME"
>  do_rootfs[vardeps] += "PACKAGE_FEED_URIS"
>  
>  do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
> diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
> index 6139cc7..bb6f777 100644
> --- a/meta/classes/rootfs_ipk.bbclass
> +++ b/meta/classes/rootfs_ipk.bbclass
> @@ -13,7 +13,6 @@ do_rootfs[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_popu
>  do_populate_sdk[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot"
>  do_rootfs[recrdeptask] += "do_package_write_ipk"
>  do_rootfs[vardeps] += "PACKAGE_FEED_URIS"
> -rootfs_ipk_do_rootfs[vardepsexclude] += "BUILDNAME"
>  
>  do_rootfs[lockfiles] += "${WORKDIR}/ipk.lock"
>  do_populate_sdk[lockfiles] += "${WORKDIR}/ipk.lock"
> diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
> index d85d001..b4cd55b 100644
> --- a/meta/classes/rootfs_rpm.bbclass
> +++ b/meta/classes/rootfs_rpm.bbclass
> @@ -22,7 +22,6 @@ do_rootfs[depends] += "${RPMROOTFSDEPENDS}"
>  do_populate_sdk[depends] += "${RPMROOTFSDEPENDS}"
>  
>  do_rootfs[recrdeptask] += "do_package_write_rpm"
> -rootfs_rpm_do_rootfs[vardepsexclude] += "BUILDNAME"
>  do_rootfs[vardeps] += "PACKAGE_FEED_URIS"
>  
>  # RPM doesn't work with multiple rootfs generation at once due to collisions in the use of files 
> -- 
> 2.6.2
> 

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

  reply	other threads:[~2015-11-10  9:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-10  8:58 [PATCH][master][jethro][fido][dizzy] image.bbclass: don't add BUILDNAME to do_rootfs vardeps Martin Jansa
2015-11-10  9:05 ` Martin Jansa [this message]
2015-11-21 16:24   ` akuster808
2015-11-10  9:05 ` [PATCH] rootfs_*.bbclass: don't add BUILDNAME to do_rootfs vardepsexclude Martin Jansa
2015-11-10  9:07 ` [PATCH][dizzy] image.bbclass: don't let do_rootfs depend on BUILDNAME Martin Jansa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151110090527.GA2561@jama \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox