Patchwork [35/40] db: Fix file ownership

login
register
mail settings
Submitter Mark Hatle
Date June 22, 2011, 5:36 p.m.
Message ID <7b79e04d0a76dbcb8070f561c7bac8b9f39acb51.1308763995.git.mark.hatle@windriver.com>
Download mbox | patch
Permalink /patch/6333/
State New, archived
Headers show

Comments

Mark Hatle - June 22, 2011, 5:36 p.m.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/recipes-support/db/db_5.1.19.bb |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/recipes-support/db/db_5.1.19.bb b/meta/recipes-support/db/db_5.1.19.bb
index fc87c31..c5047b6 100644
--- a/meta/recipes-support/db/db_5.1.19.bb
+++ b/meta/recipes-support/db/db_5.1.19.bb
@@ -80,6 +80,10 @@  do_configure() {
 	oe_runconf
 }
 
+FIX_OWNERS = "chown -R root:root ${D}"
+FIX_OWNERS_virtclass-native = ""
+FIX_OWNERS_virtclass-nativesdk = ""
+
 do_install_append() {
 	mkdir -p ${D}/${includedir}/db51
 	#mv ${D}/${includedir}/db_185.h ${D}/${includedir}/db51/.
@@ -98,6 +102,8 @@  do_install_append() {
 		test ! -d "${D}/${docdir}" || rm -rf "${D}/${docdir}"
 		mv "${D}/${prefix}/docs" "${D}/${docdir}"
 	fi
+
+	test -n "${FIX_OWNERS}" && eval ${FIX_OWNERS} || :
 }
 
 BBCLASSEXTEND = "native nativesdk"