Skip to contentSkip to conversation

Fixed gcc-cross-canadian packaging warnings.

PATCH Applied Lianhao Lu 3 participants 4 messages Mar 26, 2012

lore
Share & tools
lore

Lianhao Lu

author
#0 lore raw

cover Fixed gcc-cross-canadian packaging warnings.

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(-)
author
#1 lore raw

PATCH 1/1 gcc-cross-canadian: Fixed packaging warnings.

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

---
 meta/recipes-devtools/gcc/gcc-package-sdk.inc |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
meta/recipes-devtools/gcc/gcc-package-sdk.inc +7 -0
index e2095e3..95d6804 100644
@@ -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}/
Signature · 1 line
1.7.0.4
#2 lore raw

Re: [PATCH 1/1] gcc-cross-canadian: Fixed packaging warnings.

Quoted 18 lines · Lianhao Lu

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

---
 meta/recipes-devtools/gcc/gcc-package-sdk.inc |    7 +++++++

 1 files changed, 7 insertions(+), 0 deletions(-)
meta/recipes-devtools/gcc/gcc-package-sdk.inc +0 -0
index e2095e3..95d6804 100644
@@ -46,6 +46,13 @@ do_install () {

       rm -f ${D}${libdir}/../lib/libiberty.a
       rm -f ${D}${libdir}/libiberty.a

Quoted 2 lines

+       # 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.

Quoted 16 lines

+       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
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#3 lore raw
In reply to Lianhao Lu
Quoted 10 lines · Lianhao Lu

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.

Quoted 7 lines

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