All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Couple of fixes to help new users
@ 2011-08-17 18:37 Paul Eggleton
  2011-08-17 18:37 ` [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files Paul Eggleton
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Paul Eggleton @ 2011-08-17 18:37 UTC (permalink / raw)
  To: openembedded-core

Please review the following changes for suitability for inclusion. If you have
any objections or suggestions for improvement, please respond to the patches. If
you agree with the changes, please provide your Acked-by.

The following changes since commit 2e83e6755441cb14bd907d306974338c15173189:

  kernel: restore crtsavres.o to enable building external modules on powerpc (2011-08-17 15:46:16 +0100)

are available in the git repository at:
  git://git.openembedded.org/openembedded-core-contrib paule/sanity3
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/sanity3

Paul Eggleton (2):
  image.bbclass, kernel.bbclass: create warning file about deleting
    deploydir files
  sanity.bbclass: add optional untested host distro warning

 meta/classes/image.bbclass      |    2 +
 meta/classes/kernel.bbclass     |    2 +
 meta/classes/sanity.bbclass     |   48 +++++++++++++++++++++++++++++++++++++++
 meta/files/deploydir_readme.txt |    8 ++++++
 4 files changed, 60 insertions(+), 0 deletions(-)
 create mode 100644 meta/files/deploydir_readme.txt

-- 
1.7.4.1




^ permalink raw reply	[flat|nested] 16+ messages in thread

* [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files
  2011-08-17 18:37 [RFC PATCH 0/2] Couple of fixes to help new users Paul Eggleton
@ 2011-08-17 18:37 ` Paul Eggleton
  2011-08-17 18:41   ` Phil Blundell
  2011-08-22 21:01   ` Koen Kooi
  2011-08-17 18:37 ` [RFC PATCH 2/2] sanity.bbclass: add optional untested host distro warning Paul Eggleton
  2011-08-23 15:14 ` [RFC PATCH 0/2] Couple of fixes to help new users Saul Wold
  2 siblings, 2 replies; 16+ messages in thread
From: Paul Eggleton @ 2011-08-17 18:37 UTC (permalink / raw)
  To: openembedded-core

New users sometimes delete files in tmp/deploy/images assuming they will
be re-created just by re-running the build, and then are confused when
this doesn't work. To discourage people from doing this, create a file
called README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt in
tmp/deploy/images containing an explanation of what needs to be done to
re-create files there.

Fixes [YOCTO #1315] and [YOCTO #1346].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/classes/image.bbclass      |    2 ++
 meta/classes/kernel.bbclass     |    2 ++
 meta/files/deploydir_readme.txt |    8 ++++++++
 3 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 meta/files/deploydir_readme.txt

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 54eb78b..286ae01 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -138,6 +138,8 @@ fakeroot do_rootfs () {
 	mkdir -p ${IMAGE_ROOTFS}
 	mkdir -p ${DEPLOY_DIR_IMAGE}
 
+	cp -n ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOY_DIR_IMAGE}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
+
 	if [ "${USE_DEVFS}" != "1" ]; then
 		for devtable in ${@get_devtable_list(d)}; do
 			makedevs -r ${IMAGE_ROOTFS} -D $devtable
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 386b05e..a2b10f2 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -500,6 +500,8 @@ kernel_do_deploy() {
 	cd ${DEPLOYDIR}
 	rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin
 	ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGE_SYMLINK_NAME}.bin
+
+	cp -n ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOYDIR}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
 }
 do_deploy[dirs] = "${DEPLOYDIR} ${B}"
 
diff --git a/meta/files/deploydir_readme.txt b/meta/files/deploydir_readme.txt
new file mode 100644
index 0000000..97ec185
--- /dev/null
+++ b/meta/files/deploydir_readme.txt
@@ -0,0 +1,8 @@
+Files in the deploy directory will not be re-created automatically if you
+delete them. If you do delete a file, you will need to run:
+
+  bitbake -c clean TARGET
+  bitbake TARGET
+
+where TARGET is the name of the appropriate package or target e.g.
+"virtual/kernel" for the kernel, an image, etc.
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [RFC PATCH 2/2] sanity.bbclass: add optional untested host distro warning
  2011-08-17 18:37 [RFC PATCH 0/2] Couple of fixes to help new users Paul Eggleton
  2011-08-17 18:37 ` [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files Paul Eggleton
@ 2011-08-17 18:37 ` Paul Eggleton
  2011-08-23 15:14 ` [RFC PATCH 0/2] Couple of fixes to help new users Saul Wold
  2 siblings, 0 replies; 16+ messages in thread
From: Paul Eggleton @ 2011-08-17 18:37 UTC (permalink / raw)
  To: openembedded-core

SANITY_TESTED_DISTROS, if specified, is expected to be a
newline-delimited list of distro identifier strings, e.g.

SANITY_TESTED_DISTROS = " \
        Ubuntu 11.04 \
        Fedora release 14 (Laughlin) \
        "

(spaces, tabs etc. are trimmed)

If SANITY_TESTED_DISTROS is defined, we will attempt to detect the host
distribution. If the distribution is not in SANITY_TESTED_DISTROS or we
could not detect the distribution then we show a warning during sanity
checking.

Provides the mechanism for fixing [YOCTO #1096].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/classes/sanity.bbclass |   48 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index d50c843..16af029 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -118,6 +118,52 @@ def check_connectivity(d):
 
     return retval
 
+def check_supported_distro(e):
+    tested_distros = e.data.getVar('SANITY_TESTED_DISTROS', True)
+    if not tested_distros:
+        return
+
+    if os.path.exists("/etc/redhat-release"):
+        f = open("/etc/redhat-release", "r")
+        try:
+            distro = f.readline()
+        finally:
+            f.close()
+    elif os.path.exists("/etc/SuSE-release"):
+        f = open("/etc/SuSE-release", "r")
+        try:
+            distro = f.readline()
+            # Remove the architecture suffix e.g. (i586)
+            distro = re.sub(r' \([a-zA-Z0-9\-_]*\)$', '', distro).strip()
+        finally:
+            f.close()
+    else:
+        # Use LSB method
+        import subprocess as sub
+        try:
+            p = sub.Popen(['lsb_release','-d','-s'],stdout=sub.PIPE,stderr=sub.PIPE)
+            out, err = p.communicate()
+            distro = out.rstrip()
+        except Exception:
+            distro = None
+
+        if not distro:
+            if os.path.exists("/etc/lsb-release"):
+                f = open("/etc/lsb-release", "r")
+                try:
+                    for line in f:
+                        lns = line.split('=')
+                        if lns[0] == "DISTRIB_DESCRIPTION":
+                            distro = lns[1].strip('"\n')
+                            break
+                finally:
+                    f.close()
+    if distro:
+        if distro not in [x.strip() for x in tested_distros.split('\n')]:
+            bb.warn('Host distribution "%s" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.' % distro)
+    else:
+        bb.warn('Host distribution could not be determined; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.')
+
 def check_sanity(e):
     from bb import note, error, data, __version__
 
@@ -249,6 +295,8 @@ def check_sanity(e):
     if pseudo_msg != "":
         messages = messages + pseudo_msg + '\n'
 
+    check_supported_distro(e)
+
     # Check if DISPLAY is set if IMAGETEST is set
     if not data.getVar( 'DISPLAY', e.data, True ) and data.getVar( 'IMAGETEST', e.data, True ) == 'qemu':
         messages = messages + 'qemuimagetest needs a X desktop to start qemu, please set DISPLAY correctly (e.g. DISPLAY=:1.0)\n'
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 16+ messages in thread

* Re: [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files
  2011-08-17 18:37 ` [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files Paul Eggleton
@ 2011-08-17 18:41   ` Phil Blundell
  2011-08-19 10:27     ` Paul Eggleton
  2011-08-22 21:01   ` Koen Kooi
  1 sibling, 1 reply; 16+ messages in thread
From: Phil Blundell @ 2011-08-17 18:41 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, 2011-08-17 at 19:37 +0100, Paul Eggleton wrote:
> +Files in the deploy directory will not be re-created automatically if you
> +delete them. If you do delete a file, you will need to run:
> +
> +  bitbake -c clean TARGET
> +  bitbake TARGET
> +
> +where TARGET is the name of the appropriate package or target e.g.
> +"virtual/kernel" for the kernel, an image, etc.

Doesn't it suffice to run "bitbake -f -c deploy TARGET"?

p.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files
  2011-08-17 18:41   ` Phil Blundell
@ 2011-08-19 10:27     ` Paul Eggleton
  2011-08-23 19:08       ` Darren Hart
  0 siblings, 1 reply; 16+ messages in thread
From: Paul Eggleton @ 2011-08-19 10:27 UTC (permalink / raw)
  To: Phil Blundell; +Cc: Patches and discussions about the oe-core layer

On Wednesday 17 August 2011 19:41:37 Phil Blundell wrote:
> On Wed, 2011-08-17 at 19:37 +0100, Paul Eggleton wrote:
> > +Files in the deploy directory will not be re-created automatically if
> > you +delete them. If you do delete a file, you will need to run:
> > +
> > +  bitbake -c clean TARGET
> > +  bitbake TARGET
> > +
> > +where TARGET is the name of the appropriate package or target e.g.
> > +"virtual/kernel" for the kernel, an image, etc.
> 
> Doesn't it suffice to run "bitbake -f -c deploy TARGET"?

I guess it would, but I'm not sure we really want to be encouraging users to 
use -f.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files
  2011-08-17 18:37 ` [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files Paul Eggleton
  2011-08-17 18:41   ` Phil Blundell
@ 2011-08-22 21:01   ` Koen Kooi
  2011-08-23  6:44     ` Anders Darander
  1 sibling, 1 reply; 16+ messages in thread
From: Koen Kooi @ 2011-08-22 21:01 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Paul Eggleton


Op 17 aug. 2011, om 20:37 heeft Paul Eggleton het volgende geschreven:

> New users sometimes delete files in tmp/deploy/images assuming they will
> be re-created just by re-running the build, and then are confused when
> this doesn't work. To discourage people from doing this, create a file
> called README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt in
> tmp/deploy/images containing an explanation of what needs to be done to
> re-create files there.
> 
> Fixes [YOCTO #1315] and [YOCTO #1346].
> 
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
> ---
> meta/classes/image.bbclass      |    2 ++
> meta/classes/kernel.bbclass     |    2 ++
> meta/files/deploydir_readme.txt |    8 ++++++++
> 3 files changed, 12 insertions(+), 0 deletions(-)
> create mode 100644 meta/files/deploydir_readme.txt
> 
> diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
> index 54eb78b..286ae01 100644
> --- a/meta/classes/image.bbclass
> +++ b/meta/classes/image.bbclass
> @@ -138,6 +138,8 @@ fakeroot do_rootfs () {
> 	mkdir -p ${IMAGE_ROOTFS}
> 	mkdir -p ${DEPLOY_DIR_IMAGE}
> 
> +	cp -n ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOY_DIR_IMAGE}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
> +

That doesn't work on my debian box:

| + cp -n /OE/tentacle/sources/openembedded-core/meta/files/deploydir_readme.txt /OE/tentacle/build/tmp-angstrom_2010_x-eglibc/deploy/images/beagleboard/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
| cp: invalid option -- 'n'
| Try `cp --help' for more information.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files
  2011-08-22 21:01   ` Koen Kooi
@ 2011-08-23  6:44     ` Anders Darander
  2011-08-23  8:33       ` Koen Kooi
  2011-08-23  9:22       ` Phil Blundell
  0 siblings, 2 replies; 16+ messages in thread
From: Anders Darander @ 2011-08-23  6:44 UTC (permalink / raw)
  To: openembedded-core

* Koen Kooi <koen@dominion.thruhere.net> [110822 23:01]:
> Op 17 aug. 2011, om 20:37 heeft Paul Eggleton het volgende geschreven:
> > +	cp -n ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOY_DIR_IMAGE}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
> > +

> That doesn't work on my debian box:

> | + cp -n /OE/tentacle/sources/openembedded-core/meta/files/deploydir_readme.txt /OE/tentacle/build/tmp-angstrom_2010_x-eglibc/deploy/images/beagleboard/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
> | cp: invalid option -- 'n'
> | Try `cp --help' for more information.

Which debian version are you running?

I've seen no problem, as far as I can tell, on neither my ubuntu, nor my
debian box. (Although I'm running debian sid on that one).

Cheers,
Anders

-- 
Anders Darander
ChargeStorm AB



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files
  2011-08-23  6:44     ` Anders Darander
@ 2011-08-23  8:33       ` Koen Kooi
  2011-08-23  9:22       ` Phil Blundell
  1 sibling, 0 replies; 16+ messages in thread
From: Koen Kooi @ 2011-08-23  8:33 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer


Op 23 aug. 2011, om 08:44 heeft Anders Darander het volgende geschreven:

> * Koen Kooi <koen@dominion.thruhere.net> [110822 23:01]:
>> Op 17 aug. 2011, om 20:37 heeft Paul Eggleton het volgende geschreven:
>>> +	cp -n ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOY_DIR_IMAGE}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
>>> +
> 
>> That doesn't work on my debian box:
> 
>> | + cp -n /OE/tentacle/sources/openembedded-core/meta/files/deploydir_readme.txt /OE/tentacle/build/tmp-angstrom_2010_x-eglibc/deploy/images/beagleboard/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
>> | cp: invalid option -- 'n'
>> | Try `cp --help' for more information.
> 
> Which debian version are you running?
> 
> I've seen no problem, as far as I can tell, on neither my ubuntu, nor my
> debian box. (Although I'm running debian sid on that one).

koen@dominion:/OE/tentacle/sources/openembedded-core$ lsb_release -a
/usr/bin/lsb_release:81: DeprecationWarning: the sets module is deprecated
  import sets
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 5.0 (lenny)
Release:	5.0
Codename:	lenny




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files
  2011-08-23  6:44     ` Anders Darander
  2011-08-23  8:33       ` Koen Kooi
@ 2011-08-23  9:22       ` Phil Blundell
  2011-08-23  9:32         ` Paul Eggleton
  1 sibling, 1 reply; 16+ messages in thread
From: Phil Blundell @ 2011-08-23  9:22 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Tue, 2011-08-23 at 08:44 +0200, Anders Darander wrote:
> * Koen Kooi <koen@dominion.thruhere.net> [110822 23:01]:
> > Op 17 aug. 2011, om 20:37 heeft Paul Eggleton het volgende geschreven:
> > > +	cp -n ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOY_DIR_IMAGE}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
> > > +
> 
> > That doesn't work on my debian box:
> 
> > | + cp -n /OE/tentacle/sources/openembedded-core/meta/files/deploydir_readme.txt /OE/tentacle/build/tmp-angstrom_2010_x-eglibc/deploy/images/beagleboard/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
> > | cp: invalid option -- 'n'
> > | Try `cp --help' for more information.
> 
> Which debian version are you running?
> 
> I've seen no problem, as far as I can tell, on neither my ubuntu, nor my
> debian box. (Although I'm running debian sid on that one).

Irrespective of whether it happens to work or not on some or other
distro, "cp -n" isn't POSIX and we shouldn't be relying on it.

I can't really see why the -n option is needed here anyway.  It looks to
me like it could just be removed with no ill effects.

p.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files
  2011-08-23  9:22       ` Phil Blundell
@ 2011-08-23  9:32         ` Paul Eggleton
  2011-08-23 10:37           ` Phil Blundell
  0 siblings, 1 reply; 16+ messages in thread
From: Paul Eggleton @ 2011-08-23  9:32 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Tuesday 23 August 2011 10:22:12 Phil Blundell wrote:
> Irrespective of whether it happens to work or not on some or other
> distro, "cp -n" isn't POSIX and we shouldn't be relying on it.
> 
> I can't really see why the -n option is needed here anyway.  It looks to
> me like it could just be removed with no ill effects.

Sorry, I wasn't aware that it was a non-standard option. I'll post a new 
version with it removed.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files
  2011-08-23  9:32         ` Paul Eggleton
@ 2011-08-23 10:37           ` Phil Blundell
  0 siblings, 0 replies; 16+ messages in thread
From: Phil Blundell @ 2011-08-23 10:37 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Tue, 2011-08-23 at 10:32 +0100, Paul Eggleton wrote:
> On Tuesday 23 August 2011 10:22:12 Phil Blundell wrote:
> > Irrespective of whether it happens to work or not on some or other
> > distro, "cp -n" isn't POSIX and we shouldn't be relying on it.
> > 
> > I can't really see why the -n option is needed here anyway.  It looks to
> > me like it could just be removed with no ill effects.
> 
> Sorry, I wasn't aware that it was a non-standard option. I'll post a new 
> version with it removed.

Yeah, POSIX cp only understands quite a restricted set of options.  It
supports -f, -i, -p, -R, plus -H, -L and -P in newer versions (and the
obsolescent -r).  Anything beyond that is not guaranteed.

p.




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC PATCH 0/2] Couple of fixes to help new users
  2011-08-17 18:37 [RFC PATCH 0/2] Couple of fixes to help new users Paul Eggleton
  2011-08-17 18:37 ` [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files Paul Eggleton
  2011-08-17 18:37 ` [RFC PATCH 2/2] sanity.bbclass: add optional untested host distro warning Paul Eggleton
@ 2011-08-23 15:14 ` Saul Wold
  2 siblings, 0 replies; 16+ messages in thread
From: Saul Wold @ 2011-08-23 15:14 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Paul Eggleton

On 08/17/2011 11:37 AM, Paul Eggleton wrote:
> Please review the following changes for suitability for inclusion. If you have
> any objections or suggestions for improvement, please respond to the patches. If
> you agree with the changes, please provide your Acked-by.
>
> The following changes since commit 2e83e6755441cb14bd907d306974338c15173189:
>
>    kernel: restore crtsavres.o to enable building external modules on powerpc (2011-08-17 15:46:16 +0100)
>
> are available in the git repository at:
>    git://git.openembedded.org/openembedded-core-contrib paule/sanity3
>    http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/sanity3
>
> Paul Eggleton (2):
>    image.bbclass, kernel.bbclass: create warning file about deleting
>      deploydir files
>    sanity.bbclass: add optional untested host distro warning
>
>   meta/classes/image.bbclass      |    2 +
>   meta/classes/kernel.bbclass     |    2 +
>   meta/classes/sanity.bbclass     |   48 +++++++++++++++++++++++++++++++++++++++
>   meta/files/deploydir_readme.txt |    8 ++++++
>   4 files changed, 60 insertions(+), 0 deletions(-)
>   create mode 100644 meta/files/deploydir_readme.txt
>

Merged into OE-Core

I know there is some additional fix for the image.bbclass, do we need 
one for kernel.bbclass also?

Thanks
	Sau!



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files
  2011-08-19 10:27     ` Paul Eggleton
@ 2011-08-23 19:08       ` Darren Hart
  2011-08-23 20:07         ` Paul Eggleton
  0 siblings, 1 reply; 16+ messages in thread
From: Darren Hart @ 2011-08-23 19:08 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer
  Cc: Paul Eggleton, Phil Blundell



On 08/19/2011 03:27 AM, Paul Eggleton wrote:
> On Wednesday 17 August 2011 19:41:37 Phil Blundell wrote:
>> On Wed, 2011-08-17 at 19:37 +0100, Paul Eggleton wrote:
>>> +Files in the deploy directory will not be re-created automatically if
>>> you +delete them. If you do delete a file, you will need to run:
>>> +
>>> +  bitbake -c clean TARGET
>>> +  bitbake TARGET
>>> +
>>> +where TARGET is the name of the appropriate package or target e.g.
>>> +"virtual/kernel" for the kernel, an image, etc.
>>
>> Doesn't it suffice to run "bitbake -f -c deploy TARGET"?
> 
> I guess it would, but I'm not sure we really want to be encouraging users to 
> use -f.

I don't see it as having the same negative conotation as the force
options to things like rpm and dpkg. Here it just means "I really want
to run this specific task again, even if you already ran it, likely
because I know I did something to undo what you just did." :-)

> 
> Cheers,
> Paul
> 

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files
  2011-08-23 19:08       ` Darren Hart
@ 2011-08-23 20:07         ` Paul Eggleton
  2011-08-23 21:39           ` Koen Kooi
  0 siblings, 1 reply; 16+ messages in thread
From: Paul Eggleton @ 2011-08-23 20:07 UTC (permalink / raw)
  To: Darren Hart; +Cc: openembedded-core

On Tuesday 23 August 2011 20:08:08 you wrote:
> On 08/19/2011 03:27 AM, Paul Eggleton wrote:
> > I guess it would, but I'm not sure we really want to be encouraging users
> > to use -f.
> 
> I don't see it as having the same negative conotation as the force
> options to things like rpm and dpkg. Here it just means "I really want
> to run this specific task again, even if you already ran it, likely
> because I know I did something to undo what you just did." :-)

My concern is that not all tasks are repeatable; people could run into all 
sorts of trouble using this option under the wrong circumstances and it might 
be difficult to debug after the fact.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files
  2011-08-23 20:07         ` Paul Eggleton
@ 2011-08-23 21:39           ` Koen Kooi
  2011-08-23 21:52             ` Paul Eggleton
  0 siblings, 1 reply; 16+ messages in thread
From: Koen Kooi @ 2011-08-23 21:39 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer
  Cc: Darren Hart, openembedded-core



Op 23 aug. 2011 om 22:07 heeft Paul Eggleton <paul.eggleton@linux.intel.com> het volgende geschreven:

> On Tuesday 23 August 2011 20:08:08 you wrote:
>> On 08/19/2011 03:27 AM, Paul Eggleton wrote:
>>> I guess it would, but I'm not sure we really want to be encouraging users
>>> to use -f.
>> 
>> I don't see it as having the same negative conotation as the force
>> options to things like rpm and dpkg. Here it just means "I really want
>> to run this specific task again, even if you already ran it, likely
>> because I know I did something to undo what you just did." :-)
> 
> My concern is that not all tasks are repeatable;

I consider that a bug :)


>  could run into all 
> sorts of trouble using this option under the wrong circumstances and it might 
> be difficult to debug after the fact.
> 
> Cheers,
> Paul
> 
> -- 
> 
> Paul Eggleton
> Intel Open Source Technology Centre
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files
  2011-08-23 21:39           ` Koen Kooi
@ 2011-08-23 21:52             ` Paul Eggleton
  0 siblings, 0 replies; 16+ messages in thread
From: Paul Eggleton @ 2011-08-23 21:52 UTC (permalink / raw)
  To: Koen Kooi; +Cc: Patches and discussions about the oe-core layer

On Tuesday 23 August 2011 22:39:41 Koen Kooi wrote:
> > My concern is that not all tasks are repeatable;
> 
> I consider that a bug :)

Why? If you use the system as intended it's never a problem.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-08-23 21:57 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-17 18:37 [RFC PATCH 0/2] Couple of fixes to help new users Paul Eggleton
2011-08-17 18:37 ` [RFC PATCH 1/2] image.bbclass, kernel.bbclass: create warning file about deleting deploydir files Paul Eggleton
2011-08-17 18:41   ` Phil Blundell
2011-08-19 10:27     ` Paul Eggleton
2011-08-23 19:08       ` Darren Hart
2011-08-23 20:07         ` Paul Eggleton
2011-08-23 21:39           ` Koen Kooi
2011-08-23 21:52             ` Paul Eggleton
2011-08-22 21:01   ` Koen Kooi
2011-08-23  6:44     ` Anders Darander
2011-08-23  8:33       ` Koen Kooi
2011-08-23  9:22       ` Phil Blundell
2011-08-23  9:32         ` Paul Eggleton
2011-08-23 10:37           ` Phil Blundell
2011-08-17 18:37 ` [RFC PATCH 2/2] sanity.bbclass: add optional untested host distro warning Paul Eggleton
2011-08-23 15:14 ` [RFC PATCH 0/2] Couple of fixes to help new users Saul Wold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.