Skip to contentSkip to conversation

imx-gpu-viv: correct file ownership

PATCH Superseded Sujith Haridasan 2 participants 3 messages Apr 21, 2016 Arm i.MX and Layerscape

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx-gpu-viv: correct file ownership

From: Sujith H <[email protected]>

This recipe copies binary files with cp, including cp -a, so the file ownership can end up being the same as the build user. Work around this by chown'ing everything to root:root.

This avoids a package_qa failure.

---
 recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | 5 +++++
 1 file changed, 5 insertions(+)
recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc +5 -0
index ce00724..151ae9b 100644
@@ -211,6 +211,11 @@ do_install () {
     find ${D}${includedir} -type f -exec chmod 644 {} \;
 }
 
+do_install[postfuncs] += "fixup_perms"
+fixup_perms () {
+    chown -R root:root "${D}"
+}
+
 ALLOW_EMPTY_${PN} = "1"
 
 FILES_libclc-mx6 = "${libdir}/libCLC${SOLIBS}"
Signature · 1 line
1.9.1
#1 lore raw

There's no need for this to use a postfunc, just integrate it into do_install. Use of the postfunc was an artifact of the fact that it was a bbappend.

-Chris
________________________________________
From: Sujith Haridasan [[email protected]]
Sent: Thursday, April 21, 2016 6:04 AM
To: [email protected]
Cc: Sujith H; Larson, Chris; Haridasan, Sujith
Subject: [meta-freescale] [meta-fsl-arm][PATCH] imx-gpu-viv: correct file ownership

From: Sujith H <[email protected]>

This recipe copies binary files with cp, including cp -a, so the file ownership can end up being the same as the build user. Work around this by chown'ing everything to root:root.

This avoids a package_qa failure.

---
 recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | 5 +++++
 1 file changed, 5 insertions(+)
recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc +5 -0
index ce00724..151ae9b 100644
@@ -211,6 +211,11 @@ do_install () {
     find ${D}${includedir} -type f -exec chmod 644 {} \;
 }
 
+do_install[postfuncs] += "fixup_perms"
+fixup_perms () {
+    chown -R root:root "${D}"
+}
+
 ALLOW_EMPTY_${PN} = "1"
 
 FILES_libclc-mx6 = "${libdir}/libCLC${SOLIBS}"

--
1.9.1

author
#2 lore raw

Hi Chris,

Quoted 4 lines · Chris

There's no need for this to use a postfunc, just integrate it into do_install. Use of the postfunc was an artifact of the fact that it was a bbappend.

Sure, I have created second version of the patch based on the review comment.

Quoted 45 lines

-Chris
________________________________________
From: Sujith Haridasan [[email protected]]
Sent: Thursday, April 21, 2016 6:04 AM
To: [email protected]
Cc: Sujith H; Larson, Chris; Haridasan, Sujith
Subject: [meta-freescale] [meta-fsl-arm][PATCH] imx-gpu-viv: correct file ownership

From: Sujith H <[email protected]>

This recipe copies binary files with cp, including cp -a, so the file ownership can end up being the same as the build user. Work around this by chown'ing everything to root:root.

This avoids a package_qa failure.

---
 recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | 5 +++++
 1 file changed, 5 insertions(+)
recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc +5 -1
index ce00724..151ae9b 100644
@@ -211,6 +211,11 @@ do_install () {
     find ${D}${includedir} -type f -exec chmod 644 {} \;
 }
 
+do_install[postfuncs] += "fixup_perms"
+fixup_perms () {
+    chown -R root:root "${D}"
+}
+
 ALLOW_EMPTY_${PN} = "1"
 
 FILES_libclc-mx6 = "${libdir}/libCLC${SOLIBS}"
--

1.9.1

Signature · 7 lines
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
<Project>Contributor to Yocto project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info
C-x C-c