All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging.bbclass: Don't stage doc/manpage/info files
@ 2012-07-19 13:22 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-07-19 13:22 UTC (permalink / raw)
  To: openembedded-core

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@linuxfoundation.org>
---
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() {





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-19 13:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-19 13:22 [PATCH] staging.bbclass: Don't stage doc/manpage/info files Richard Purdie

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.