Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] staging.bbclass: Might as well drop the applications, fonts and pixmap directories from ${datadir}
@ 2012-08-25 15:47 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-08-25 15:47 UTC (permalink / raw)
  To: openembedded-core

These cause various file conflicts and aren't useful within the sysroot anyway. We might
as well remove them. Whitelisting the contents of ${datadir} that *is* useful might
be a better option in future.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
index 8b3dcb4..82624cb 100644
--- a/meta/classes/staging.bbclass
+++ b/meta/classes/staging.bbclass
@@ -53,6 +53,7 @@ sysroot_stage_dirs() {
 	sysroot_stage_dir $from${datadir} $to${datadir}
 	# We don't care about docs/info/manpages/locales
 	rm -rf $to${mandir}/ $to${docdir}/ $to${infodir}/ ${to}${datadir}/locale/
+	rm -rf $to${datadir}/applications/ $to${datadir}/fonts/ $to${datadir}/pixmaps/
 }
 
 sysroot_stage_all() {





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

only message in thread, other threads:[~2012-08-25 15:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-25 15:47 [PATCH] staging.bbclass: Might as well drop the applications, fonts and pixmap directories from ${datadir} Richard Purdie

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