[oe-commits] Richard Purdie : staging.bbclass: Don't stage doc/manpage/info files

git at git.openembedded.org git at git.openembedded.org
Thu Jul 19 16:20:20 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: ec4fea852bde2294ad7a7a703ccf11eb9a109c31
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=ec4fea852bde2294ad7a7a703ccf11eb9a109c31

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Thu Jul 19 13:09:59 2012 +0000

staging.bbclass: Don't stage doc/manpage/info files

There is no point in having doc, manpage or info files in the staging directory. They
just bloat the sstate package size and waste time as they're copied around.

We never used to stage these but it crept in when we started staging $datadir. This
patch corrects that so they're removed and stop making it into the sysroot.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/staging.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
index ee5a025..6540349 100644
--- a/meta/classes/staging.bbclass
+++ b/meta/classes/staging.bbclass
@@ -51,6 +51,8 @@ sysroot_stage_dirs() {
 		sysroot_stage_libdir $from${base_libdir} $to${base_libdir}
 	fi
 	sysroot_stage_dir $from${datadir} $to${datadir}
+	# We don't care about docs/info/manpages
+	rm -rf $to${mandir}/ $to${docdir}/ $to${infodir}/
 }
 
 sysroot_stage_all() {





More information about the Openembedded-commits mailing list