Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Koen Kooi <k.kooi@student.utwente.nl>
To: openembedded-devel@openembedded.org
Subject: Re: [STABLE][PATCH 046/125] Shorten some full paths printed to the user.
Date: Tue, 23 Jun 2009 11:15:55 +0200	[thread overview]
Message-ID: <h1q6gb$a5v$16@ger.gmane.org> (raw)
In-Reply-To: <1245747394-31806-7-git-send-email-marcin@juszkiewicz.com.pl>

On 23-06-09 10:56, Marcin Juszkiewicz wrote:
> From: Chris Larson<clarson@mvista.com>
>
> Adds a base_path_out convenience function, which prepares a full path for
> display to the user.  The initial implementation just makes it relative to
> ${TOPDIR}.  This function is then used for some messages outputted to the
> user (packaged-staging, patch application, clean, unpack tasks).
>
> Signed-off-by: Chris Larson<clarson@mvista.com>
> Signed-off-by: Marcin Juszkiewicz<marcin@juszkiewicz.com.pl>

Acked-by: Koen Kooi <koen@openembedded.org>

> ---
>   classes/base.bbclass             |   17 +++++++++++++----
>   classes/packaged-staging.bbclass |    2 +-
>   classes/patch.bbclass            |    2 +-
>   3 files changed, 15 insertions(+), 6 deletions(-)
>
> diff --git a/classes/base.bbclass b/classes/base.bbclass
> index 3d4a426..e622aee 100644
> --- a/classes/base.bbclass
> +++ b/classes/base.bbclass
> @@ -39,6 +39,14 @@ def base_path_relative(src, dest):
>
>       return sep.join(relpath)
>
> +def base_path_out(path, d):
> +    """ Prepare a path for display to the user. """
> +    rel = base_path_relative(d.getVar("TOPDIR", 1), path)
> +    if len(rel)>  len(path):
> +        return path
> +    else:
> +        return rel
> +
>   # for MD5/SHA handling
>   def base_chk_load_parser(config_paths):
>       import ConfigParser, os, bb
> @@ -69,6 +77,7 @@ def base_chk_file(parser, pn, pv, src_uri, localpath, data):
>
>       # md5 and sha256 should be valid now
>       if not os.path.exists(localpath):
> +        localpath = base_path_out(localpath, data)
>           bb.note("The localpath does not exist '%s'" % localpath)
>           raise Exception("The path does not exist '%s'" % localpath)
>
> @@ -497,11 +506,11 @@ python base_do_clean() {
>   	"""clear the build and temp directories"""
>   	dir = bb.data.expand("${WORKDIR}", d)
>   	if dir == '//': raise bb.build.FuncFailed("wrong DATADIR")
> -	bb.note("removing " + dir)
> +	bb.note("removing " + base_path_out(dir, d))
>   	os.system('rm -rf ' + dir)
>
>   	dir = "%s.*" % bb.data.expand(bb.data.getVar('STAMP', d), d)
> -	bb.note("removing " + dir)
> +	bb.note("removing " + base_path_out(dir, d))
>   	os.system('rm -f '+ dir)
>   }
>
> @@ -556,7 +565,7 @@ python base_do_distclean() {
>   		except bb.MalformedUrl, e:
>   			bb.debug(1, 'Unable to generate local path for malformed uri: %s' % e)
>   		else:
> -			bb.note("removing %s" % local)
> +			bb.note("removing %s" % base_path_out(local, d))
>   			try:
>   				if os.path.exists(local + ".md5"):
>   					os.remove(local + ".md5")
> @@ -777,7 +786,7 @@ def oe_unpack_file(file, data, url = None):
>   		os.chdir(newdir)
>
>   	cmd = "PATH=\"%s\" %s" % (bb.data.getVar('PATH', data, 1), cmd)
> -	bb.note("Unpacking %s to %s/" % (file, os.getcwd()))
> +	bb.note("Unpacking %s to %s/" % (base_path_out(file, data), base_path_out(os.getcwd(), data)))
>   	ret = os.system(cmd)
>
>   	os.chdir(save_cwd)
> diff --git a/classes/packaged-staging.bbclass b/classes/packaged-staging.bbclass
> index 82c1a0d..bd7b9ea 100644
> --- a/classes/packaged-staging.bbclass
> +++ b/classes/packaged-staging.bbclass
> @@ -135,7 +135,7 @@ do_clean_prepend() {
>   	pstage_cleanpackage(removepkg, d)
>
>   	stagepkg = bb.data.expand("${PSTAGE_PKG}", d)
> -	bb.note("Removing staging package %s" % stagepkg)
> +	bb.note("Removing staging package %s" % base_path_out(stagepkg, d))
>   	os.system('rm -rf ' + stagepkg)
>   }
>
> diff --git a/classes/patch.bbclass b/classes/patch.bbclass
> index 8d2bde0..2f99e4c 100644
> --- a/classes/patch.bbclass
> +++ b/classes/patch.bbclass
> @@ -527,7 +527,7 @@ python patch_do_patch() {
>   				bb.note("Patch '%s' applies to earlier revisions" % pname)
>   				continue
>
> -		bb.note("Applying patch '%s' (%s)" % (pname, unpacked))
> +		bb.note("Applying patch '%s' (%s)" % (pname, base_path_out(unpacked, d)))
>   		try:
>   			patchset.Import({"file":unpacked, "remote":url, "strippath": pnum}, True)
>   		except:





  reply	other threads:[~2009-06-23  9:46 UTC|newest]

Thread overview: 177+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-04 16:38 Set of patches for stable/2009 Marcin Juszkiewicz
2009-06-04 16:52 ` Koen Kooi
2009-06-04 17:12   ` Michael Smith
2009-06-04 17:23   ` [PATCH] vim: fix alternative when prefix is /usr Michael Smith
2009-06-04 17:42     ` Koen Kooi
2009-06-04 21:12     ` Phil Blundell
2009-06-22  9:53 ` First set of patches - license updates Marcin Juszkiewicz
2009-06-23  2:05   ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 025/125] alsa-lib: This is LGPL not GPL Marcin Juszkiewicz
2009-06-22 10:04   ` Koen Kooi
2009-06-23  2:06     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 026/125] gettext: 0.17 is GPLv3 Marcin Juszkiewicz
2009-06-22 10:04   ` Koen Kooi
2009-06-23  2:06     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 027/125] gmp: 4.2.4 is GPLv3 LGPLv3 Marcin Juszkiewicz
2009-06-22 10:04   ` Koen Kooi
2009-06-23  2:06     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 028/125] gdb: 6.8 is GPLv3 Marcin Juszkiewicz
2009-06-22 11:05   ` Koen Kooi
2009-06-23  2:07     ` Denys Dmytriyenko
2009-06-23  1:51   ` Denys Dmytriyenko
2009-06-23  6:20     ` Koen Kooi
2009-06-23  9:03     ` Marcin Juszkiewicz
2009-06-22  9:53 ` [STABLE][PATCH 029/125] gnutls: The 'extra' lib (and package) " Marcin Juszkiewicz
2009-06-22 11:04   ` Koen Kooi
2009-06-23  2:07     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 030/125] libiconv: 1.12 has GPLv3 binaries LGPLv2.1 libraries Marcin Juszkiewicz
2009-06-22 11:04   ` Koen Kooi
2009-06-23  2:07     ` Denys Dmytriyenko
2009-06-23  1:58   ` Denys Dmytriyenko
2009-06-23  6:19     ` Koen Kooi
2009-06-22  9:53 ` [STABLE][PATCH 031/125] mpfr: Both GPL and LGPL components Marcin Juszkiewicz
2009-06-22 11:04   ` Koen Kooi
2009-06-23  2:08     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 032/125] samba: 3.2.8 and newer is GPLv3 Marcin Juszkiewicz
2009-06-22 11:04   ` Koen Kooi
2009-06-23  2:08     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 033/125] m4: 1.4.11 and 1.4.12 are GPLv3 Marcin Juszkiewicz
2009-06-22 11:04   ` Koen Kooi
2009-06-23  2:08     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 034/125] fixes wrong license value usage for GPLv2 Marcin Juszkiewicz
2009-06-22 11:04   ` Koen Kooi
2009-06-23  2:09     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 035/125] atd: fix spelling of LICENSE Marcin Juszkiewicz
2009-06-22 11:04   ` Koen Kooi
2009-06-23  2:09     ` Denys Dmytriyenko
2009-06-22 10:06 ` SRC_URI fixes Marcin Juszkiewicz
2009-06-22 11:11   ` [STABLE][PATCH 079/125] Fixed broken download URL for elvis Marcin Juszkiewicz
2009-06-22 12:10     ` Koen Kooi
2009-06-22 11:11   ` [STABLE][PATCH 080/125] mobilemesh: fixed broken download URL Marcin Juszkiewicz
2009-06-22 12:37     ` Koen Kooi
2009-06-22 11:11   ` [STABLE][PATCH 081/125] openswan: " Marcin Juszkiewicz
2009-06-22 12:10     ` Koen Kooi
2009-06-22 11:11   ` [STABLE][PATCH 082/125] syslog-ng: fix SRC_URIs Marcin Juszkiewicz
2009-06-22 12:10     ` Koen Kooi
2009-06-23  7:39 ` Documentation updates Marcin Juszkiewicz
2009-06-23  8:55   ` [STABLE][PATCH 047/125] doc: change openembedded.net reference to openembedded.org Marcin Juszkiewicz
2009-06-23  9:12     ` Koen Kooi
2009-06-23  8:55   ` [STABLE][PATCH 048/125] s/IPKG_INSTALL/PACKAGE_INSTALL/ Marcin Juszkiewicz
2009-06-23  9:12     ` Koen Kooi
2009-06-23  8:55   ` [STABLE][PATCH 049/125] Documentation for PACKAGE_ARCH is actually for PACKAGE_ARCHS Marcin Juszkiewicz
2009-06-23  9:12     ` Koen Kooi
2009-06-23  8:55   ` [STABLE][PATCH 050/125] docs: fix URL for bitbake manual. (Closes: #5122) Marcin Juszkiewicz
2009-06-23  9:12     ` Koen Kooi
2009-06-23  8:55   ` [STABLE][PATCH 051/125] docs: add copyright notice for 2009 Marcin Juszkiewicz
2009-06-23  9:11     ` Koen Kooi
2009-06-23  7:40 ` GNU_HASH fixes Marcin Juszkiewicz
2009-06-23  8:56   ` [STABLE][PATCH 052/125] evtest: Fixed GNU_HASH QA error Marcin Juszkiewicz
2009-06-23  9:13     ` Koen Kooi
2009-06-23 22:23       ` Denys Dmytriyenko
2009-06-23  8:56   ` [STABLE][PATCH 053/125] mpeg-encode: Make this aware of LDFLAGS, fixes QA GNU_HASH issue Marcin Juszkiewicz
2009-06-23  9:13     ` Koen Kooi
2009-06-23 22:23       ` Denys Dmytriyenko
2009-06-23  8:56   ` [STABLE][PATCH 054/125] netpbm: " Marcin Juszkiewicz
2009-06-23  9:13     ` Koen Kooi
2009-06-23 22:33       ` Denys Dmytriyenko
2009-06-23  8:56   ` [STABLE][PATCH 055/125] libsdl-gfx: GNU HASH QA fix Marcin Juszkiewicz
2009-06-23 10:26     ` Koen Kooi
2009-06-23 22:33       ` Denys Dmytriyenko
2009-06-23  8:56   ` [STABLE][PATCH 056/125] libsdl-ttf: " Marcin Juszkiewicz
2009-06-23 10:26     ` Koen Kooi
2009-06-23 22:33       ` Denys Dmytriyenko
2009-06-23  7:41 ` Misc updates for classes/ Marcin Juszkiewicz
2009-06-23  8:56   ` [STABLE][PATCH 021/125] rootfs_deb: make Packages.gz, not Packages.bz2 Marcin Juszkiewicz
2009-06-23  9:14     ` Koen Kooi
2009-06-23  8:56   ` [STABLE][PATCH 022/125] oestats-client: support working behind proxy Marcin Juszkiewicz
2009-06-23  9:14     ` Koen Kooi
2009-06-23  8:56   ` [STABLE][PATCH 023/125] seppuku: add support for working behind the proxy Marcin Juszkiewicz
2009-06-23  9:14     ` Koen Kooi
2009-06-23  8:56   ` [STABLE][PATCH 024/125] tinderclient: support sitting behind proxy Marcin Juszkiewicz
2009-06-23  9:14     ` Koen Kooi
2009-06-23  8:56   ` [STABLE][PATCH 042/125] Allow use of Itanium as build machine Marcin Juszkiewicz
2009-06-23  9:15     ` Koen Kooi
2009-06-23  8:56   ` [STABLE][PATCH 045/125] First pass of cleanup of messages outputted to the user Marcin Juszkiewicz
2009-06-23  9:15     ` Koen Kooi
2009-06-23 23:41       ` Denys Dmytriyenko
2009-06-23  8:56   ` [STABLE][PATCH 046/125] Shorten some full paths printed " Marcin Juszkiewicz
2009-06-23  9:15     ` Koen Kooi [this message]
2009-06-23 23:42       ` Denys Dmytriyenko
2009-06-23  8:56   ` [STABLE][PATCH 059/125] package_rpm: fix move wrong generated rpm name - closes #5078 Marcin Juszkiewicz
2009-06-23  9:16     ` Koen Kooi
2009-07-01 16:17 ` QEMU and OLDEST_KERNEL related changes Marcin Juszkiewicz
2009-07-01 17:21   ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 006/125] base.bbclass: check_gcc3 needs to check for gcc-3.4.6 first. Comment on what this function is used for primarily. The default gcc3-native that we build is called 'gcc-3.4.6' so look for that one first Marcin Juszkiewicz
2009-07-01 19:16     ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 007/125] base.bbclass: added 'gcc-3.4' to list of gcc3 versions (Debian systems) Marcin Juszkiewicz
2009-07-01 19:01     ` Denys Dmytriyenko
2009-07-01 19:16     ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 008/125] glibc: In various old recipes add RPROVIDES virtual-libc-dev, bump PR. In some cases we also add in 'libc-dev' if nothing was being provided and add RDEPENDS += linux-libc-headers-dev if that was missing Marcin Juszkiewicz
2009-07-01 19:00     ` Denys Dmytriyenko
2009-07-01 19:16     ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 009/125] qemu: add version 0.10.3, initial Marcin Juszkiewicz
2009-07-01 19:02     ` Denys Dmytriyenko
2009-07-01 19:16     ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 010/125] (e)glibc-package: fix kernel version passed to qemu Marcin Juszkiewicz
2009-07-01 19:15     ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 011/125] (e)glibc-package: set LD_LIBRARY_PATH on binary locale generation Marcin Juszkiewicz
2009-07-01 19:15     ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 012/125] (e)glibc-package: enable binary locale generation on x86 and x86_64 Marcin Juszkiewicz
2009-07-01 19:15     ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 013/125] qemu 0.10.3: port OE patches, make preferable version Marcin Juszkiewicz
2009-07-01 19:15     ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 014/125] qemu-native.inc : force qemu native to use our C/LDFLAGS so that you don't need the required dev packages installed on host. Use our OE versions Marcin Juszkiewicz
2009-08-28 14:37     ` Ihar Hrachyshka
2009-08-29 14:34       ` Koen Kooi
2009-09-01 16:58         ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 015/125] (e)glibc-package: enable binary locale generation for powerpc Marcin Juszkiewicz
2009-07-01 18:54   ` [STABLE][PATCH 016/125] bitbake.conf: weakly assign OLDEST_KERNEL ?= "2.4.0" *after* machine and distro configs are included Marcin Juszkiewicz
2009-07-01 19:23     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 017/125] angstrom 2009.X: weakly assign OLDEST_KERNEL Marcin Juszkiewicz
2009-07-01 19:23     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 018/125] Angstrom 2009.X: set OLDEST_KERNEL to 2.6.16 to avoid problems with ppoll() Marcin Juszkiewicz
2009-07-01 19:23     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 019/125] glibc 2.6.1: bump PR for oldest-kernel change Marcin Juszkiewicz
2009-07-01 18:54   ` [STABLE][PATCH 020/125] angstrom: stop disabling binary localegen for >=armv6 per RFC on the ml Marcin Juszkiewicz
2009-07-01 16:18 ` Get rid of base_set_filepath Marcin Juszkiewicz
2009-07-01 18:54   ` [STABLE][PATCH 036/125] u-boot_git.bb : Update FILESPATHPKG to include u-boot-git directory Marcin Juszkiewicz
2009-07-01 19:24     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 037/125] Replace obsolete base_set_filespath() with FILESPATHPKG in some recipes Marcin Juszkiewicz
2009-07-01 19:25     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 038/125] uclibc: remove calls to obsolete base_set_filespath() Marcin Juszkiewicz
2009-07-01 19:25     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 039/125] glibc/eglibc: " Marcin Juszkiewicz
2009-07-01 19:04     ` Michael Smith
2009-07-01 19:26     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 040/125] openssl-native: removed FILESPATH setting which is not needed Marcin Juszkiewicz
2009-07-01 19:26     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 041/125] Remove references to base_set_filespath() from recipes that don't need it Marcin Juszkiewicz
2009-07-01 19:27     ` Denys Dmytriyenko
2009-07-01 16:19 ` Misc machines related updates Marcin Juszkiewicz
2009-07-01 18:54   ` [STABLE][PATCH 077/125] kexecboot: require ../linux/linux.inc, not recipes/linux/linux.inc Marcin Juszkiewicz
2009-07-01 19:27     ` Koen Kooi
2009-07-02  3:06       ` Denys Dmytriyenko
2009-07-01 18:55   ` [STABLE][PATCH 098/125] linux-rp-2.6.24: fix compilation with gcc-4.3 Marcin Juszkiewicz
2009-07-01 19:27     ` Koen Kooi
2009-07-01 18:55   ` [STABLE][PATCH 099/125] linux-rp-2.6.23: " Marcin Juszkiewicz
2009-07-01 19:27     ` Koen Kooi
2009-07-01 18:55   ` [STABLE][PATCH 100/125] linux-kexecboot-2.6.24: fix compilation with gcc-4.3. Bump PR Marcin Juszkiewicz
2009-07-01 19:17     ` Koen Kooi
2009-07-01 18:55   ` [STABLE][PATCH 105/125] at2440evb.conf: Add AT2440EVB machine config Marcin Juszkiewicz
2009-07-01 19:16     ` Koen Kooi
2009-07-02  3:10       ` Denys Dmytriyenko
2009-07-01 18:55   ` [STABLE][PATCH 111/125] linux-2.6.28: Provide a default config for at91sam9g20ek board Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 112/125] Add support for AT91SAM9G20EK Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 113/125] Add support for at91cap9adk development board with a at91cap9500 processor Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 114/125] Add support for AT91SAM9RL64 Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 115/125] Add recipe for at91bootstrap-2.10 Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 116/125] Add recipe for u-boot-2009.01 Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 117/125] Add linux-2.6.28 support for SAM9260/1/SAM9G20/ATNGW100 Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 118/125] Update sam9260/1/3 and ap7000 (stk100, ngw100) to use linux-2.6.28, u-boot-2009.01 and at91bootstrap-2.10 Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 119/125] linux_2.6.28.bb : increment PR and add better defconfig that has MMC enabled so the board can at least be booted from MMC Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 120/125] linux: fixed defconfigs for at91sam* devboards Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 121/125] atngw100: do not set kernel version in machine config Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 122/125] linux: atngw100 uses 2.6.29 now (config updated with lot of changes) Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 123/125] linux: enabled lot of options for Atmel NGW100 device Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 124/125] linux: make 2.6.29 default for ep93xx (tested on edb9301) Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 125/125] linux: updated defconfig for ep93xx Marcin Juszkiewicz

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='h1q6gb$a5v$16@ger.gmane.org' \
    --to=k.kooi@student.utwente.nl \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=openembedded-devel@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