Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] Fixed gcc-cross-canadian packaging warnings.
@ 2012-03-26  7:10 Lianhao Lu
  2012-03-26  7:10 ` [PATCH 1/1] gcc-cross-canadian: Fixed " Lianhao Lu
  2012-03-26 10:53 ` [PATCH 0/1] Fixed gcc-cross-canadian " Richard Purdie
  0 siblings, 2 replies; 4+ messages in thread
From: Lianhao Lu @ 2012-03-26  7:10 UTC (permalink / raw)
  To: openembedded-core

Fixed gcc-cross-canadian packaging warnings:
WARNING: For recipe gcc-cross-canadian-i586, the following files/directories were installed but not shipped in any package:
WARNING:   /opt/poky/1.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/i586-poky-linux
WARNING:   /opt/poky/1.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/i586-poky-linux/lib
WARNING:   /opt/poky/1.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/lib

The following changes since commit 647595821870693186c9ecad1bdfa12fe4ea334d:
  Robert P. J. Day (1):
        core-image-minimal-mtdutils.bb: Simple DESCRIPTION grammar fix.

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib llu/warningfix2
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=llu/warningfix2

Lianhao Lu (1):
  gcc-cross-canadian: Fixed packaging warnings.

 meta/recipes-devtools/gcc/gcc-package-sdk.inc |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)




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

* [PATCH 1/1] gcc-cross-canadian: Fixed packaging warnings.
  2012-03-26  7:10 [PATCH 0/1] Fixed gcc-cross-canadian packaging warnings Lianhao Lu
@ 2012-03-26  7:10 ` Lianhao Lu
  2012-03-26 22:37   ` Khem Raj
  2012-03-26 10:53 ` [PATCH 0/1] Fixed gcc-cross-canadian " Richard Purdie
  1 sibling, 1 reply; 4+ messages in thread
From: Lianhao Lu @ 2012-03-26  7:10 UTC (permalink / raw)
  To: openembedded-core

Removed non-shipped empty directories:
 -${prefix}/${TARGET_SYS}
 -${libdir}/../lib
 -${prefix}/include

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
---
 meta/recipes-devtools/gcc/gcc-package-sdk.inc |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-package-sdk.inc b/meta/recipes-devtools/gcc/gcc-package-sdk.inc
index e2095e3..95d6804 100644
--- a/meta/recipes-devtools/gcc/gcc-package-sdk.inc
+++ b/meta/recipes-devtools/gcc/gcc-package-sdk.inc
@@ -46,6 +46,13 @@ do_install () {
 	rm -f ${D}${libdir}/../lib/libiberty.a
 	rm -f ${D}${libdir}/libiberty.a
 
+	# Cleanup empty directories which are not shipped
+	# we use rmdir instead of 'rm -f' to ensure the directories are empty
+	rmdir ${D}${libdir}/../lib
+	rmdir ${D}${prefix}/${TARGET_SYS}/lib
+	rmdir ${D}${prefix}/${TARGET_SYS}
+	rmdir ${D}${includedir}
+
 	# Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
 	# found.
 	dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/
-- 
1.7.0.4




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

* Re: [PATCH 0/1] Fixed gcc-cross-canadian packaging warnings.
  2012-03-26  7:10 [PATCH 0/1] Fixed gcc-cross-canadian packaging warnings Lianhao Lu
  2012-03-26  7:10 ` [PATCH 1/1] gcc-cross-canadian: Fixed " Lianhao Lu
@ 2012-03-26 10:53 ` Richard Purdie
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2012-03-26 10:53 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, 2012-03-26 at 15:10 +0800, Lianhao Lu wrote:
> Fixed gcc-cross-canadian packaging warnings:
> WARNING: For recipe gcc-cross-canadian-i586, the following files/directories were installed but not shipped in any package:
> WARNING:   /opt/poky/1.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/i586-poky-linux
> WARNING:   /opt/poky/1.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/i586-poky-linux/lib
> WARNING:   /opt/poky/1.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/lib
> 
> The following changes since commit 647595821870693186c9ecad1bdfa12fe4ea334d:
>   Robert P. J. Day (1):
>         core-image-minimal-mtdutils.bb: Simple DESCRIPTION grammar fix.
> 
> are available in the git repository at:
> 
>   git://git.yoctoproject.org/poky-contrib llu/warningfix2
>   http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=llu/warningfix2
> 
> Lianhao Lu (1):
>   gcc-cross-canadian: Fixed packaging warnings.

Merged to master, thanks.

Richard




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

* Re: [PATCH 1/1] gcc-cross-canadian: Fixed packaging warnings.
  2012-03-26  7:10 ` [PATCH 1/1] gcc-cross-canadian: Fixed " Lianhao Lu
@ 2012-03-26 22:37   ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2012-03-26 22:37 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, Mar 26, 2012 at 12:10 AM, Lianhao Lu <lianhao.lu@intel.com> wrote:
> Removed non-shipped empty directories:
>  -${prefix}/${TARGET_SYS}
>  -${libdir}/../lib
>  -${prefix}/include
>
> Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
> ---
>  meta/recipes-devtools/gcc/gcc-package-sdk.inc |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/meta/recipes-devtools/gcc/gcc-package-sdk.inc b/meta/recipes-devtools/gcc/gcc-package-sdk.inc
> index e2095e3..95d6804 100644
> --- a/meta/recipes-devtools/gcc/gcc-package-sdk.inc
> +++ b/meta/recipes-devtools/gcc/gcc-package-sdk.inc
> @@ -46,6 +46,13 @@ do_install () {
>        rm -f ${D}${libdir}/../lib/libiberty.a
>        rm -f ${D}${libdir}/libiberty.a
>
> +       # Cleanup empty directories which are not shipped
> +       # we use rmdir instead of 'rm -f' to ensure the directories are empty

what if the directories don't exist at all ? then you break the build
unnecessarily.

> +       rmdir ${D}${libdir}/../lib
> +       rmdir ${D}${prefix}/${TARGET_SYS}/lib
> +       rmdir ${D}${prefix}/${TARGET_SYS}
> +       rmdir ${D}${includedir}
> +
>        # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
>        # found.
>        dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/
> --
> 1.7.0.4
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



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

end of thread, other threads:[~2012-03-26 22:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-26  7:10 [PATCH 0/1] Fixed gcc-cross-canadian packaging warnings Lianhao Lu
2012-03-26  7:10 ` [PATCH 1/1] gcc-cross-canadian: Fixed " Lianhao Lu
2012-03-26 22:37   ` Khem Raj
2012-03-26 10:53 ` [PATCH 0/1] Fixed gcc-cross-canadian " Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox