Re: [oe] [meta-qt5][PATCH] nativesdk-qtbase: fix environment.d dir permission

2018-04-18 Thread Christian Thaler

Thanks for the advice. I have signed-off the DCO now.
---
Fixed an issue with the nativesdk-cmake package, which sets the 
permission of

/opt/.../environment.d to rwxr-xr-x.
nativesdk-qtbase set the permission to rwxrwxr-x, leading to a conflict:

Error: Transaction check error:
  file /opt/poky/2.4.2/sysroots/x86_64-pokysdk-linux/environment-setup.d
  conflicts between attempted installs of
  nativesdk-cmake-3.8.2-r0.x86_64_nativesdk and
  nativesdk-qtbase-tools-5.9.4+git0+0d9208cecb-r0.x86_64_nativesdk

Recipe nativesdk-qtbase will now set the permission to rwxr-xr-x.

Signed-off-by: Christian Thaler <christian.tha...@tes-dst.com>
---
 recipes-qt/qt5/nativesdk-qtbase_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb 
b/recipes-qt/qt5/nativesdk-qtbase_git.bb

index 5b20b0a..a678b19 100644
--- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
+++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
@@ -171,7 +171,7 @@ do_install() {
 }

 fakeroot do_generate_qt_environment_file() {
-    mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d/
+    install -d -m 755 ${D}${SDKPATHNATIVE}/environment-setup.d/
 script=${D}${SDKPATHNATIVE}/environment-setup.d/qt5.sh

 echo 'export PATH=${OE_QMAKE_PATH_HOST_BINS}:$PATH' > $script
--
2.7.4

 Original Message 
*Subject: *Re: [oe] [meta-qt5][PATCH] nativesdk-qtbase: fix 
environment.d dir permission

*From: *Martin Jansa <martin.ja...@gmail.com>
*To: *c-thaler <christian.tha...@tes-dst.com>
*Cc: *openembedded-devel <openembedded-devel@lists.openembedded.org>, 
Dennis Menschel <mensche...@posteo.de>

*Date: *18.04.2018 13:33

Missing Signed-off-by and I might take alternative fix for this:
https://patchwork.openembedded.org/patch/150133/

On Mon, Apr 16, 2018 at 3:43 PM, c-thaler 
<christian.tha...@tes-dst.com <mailto:christian.tha...@tes-dst.com>> 
wrote:


Fixed an issue with the nativesdk-cmake package, which sets the
permission of
/opt/.../environment.d to rwxr-xr-x.
nativesdk-qtbase set the permission to rwxrwxr-x, leading to a
conflict:

Error: Transaction check error:
  file
/opt/poky/2.4.2/sysroots/x86_64-pokysdk-linux/environment-setup.d
  conflicts between attempted installs of
  nativesdk-cmake-3.8.2-r0.x86_64_nativesdk and
  nativesdk-qtbase-tools-5.9.4+git0+0d9208cecb-r0.x86_64_nativesdk

Recipe nativesdk-qtbase will now set the permission to rwxr-xr-x.
---
 recipes-qt/qt5/nativesdk-qtbase_git.bb
<http://nativesdk-qtbase_git.bb> | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb
<http://nativesdk-qtbase_git.bb>
b/recipes-qt/qt5/nativesdk-qtbase_git.bb
<http://nativesdk-qtbase_git.bb>
index 5b20b0a..a678b19 100644
--- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
<http://nativesdk-qtbase_git.bb>
+++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
<http://nativesdk-qtbase_git.bb>
@@ -171,7 +171,7 @@ do_install() {
 }

 fakeroot do_generate_qt_environment_file() {
-    mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d/
+    install -d -m 755 ${D}${SDKPATHNATIVE}/environment-setup.d/
     script=${D}${SDKPATHNATIVE}/environment-setup.d/qt5.sh

     echo 'export PATH=${OE_QMAKE_PATH_HOST_BINS}:$PATH' > $script
-- 
2.7.4


-- 
___

Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
<mailto:Openembedded-devel@lists.openembedded.org>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
<http://lists.openembedded.org/mailman/listinfo/openembedded-devel>




This e-mail has been scanned for all viruses by Claranet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.claranet.co.uk



--
Christian Thaler
E-mail: christian.tha...@tes-dst.com
Frankenstrasse 3, D-20097 Hamburg
Phone +49 (0)40-411611-60

TES Electronic Solutions GmbH
Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart HRB 20239,
Geschäftsführung: Jürgen Zeller

Wichtig!!
Diese E-Mail kann Betriebs- und Geschäftsgeheimnisse oder sonstige
vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtümlich
erhalten haben, ist Ihnen eine Kenntnisnahme des Inhalts, eine
Vervielfältigung oder Weitergabe der E-Mail ausdrücklich untersagt. Bitte
benachrichtigen Sie uns und vernichten Sie die E-Mail. Der Absender hat alle
erdenklichen Vorsichtsmaßnahmen getroffen, dass die Anlagen dieser E-Mail
frei von Computerviren o.ä. sind. Gleichwohl schließen wir die Haftung für
jeden Schaden aus, der durch Computerviren o.ä. veru

Re: [oe] [meta-qt5][PATCH] nativesdk-qtbase: fix environment.d dir permission

2018-04-18 Thread Martin Jansa
Missing Signed-off-by and I might take alternative fix for this:
https://patchwork.openembedded.org/patch/150133/

On Mon, Apr 16, 2018 at 3:43 PM, c-thaler 
wrote:

> Fixed an issue with the nativesdk-cmake package, which sets the permission
> of
> /opt/.../environment.d to rwxr-xr-x.
> nativesdk-qtbase set the permission to rwxrwxr-x, leading to a conflict:
>
> Error: Transaction check error:
>   file /opt/poky/2.4.2/sysroots/x86_64-pokysdk-linux/environment-setup.d
>   conflicts between attempted installs of
>   nativesdk-cmake-3.8.2-r0.x86_64_nativesdk and
>   nativesdk-qtbase-tools-5.9.4+git0+0d9208cecb-r0.x86_64_nativesdk
>
> Recipe nativesdk-qtbase will now set the permission to rwxr-xr-x.
> ---
>  recipes-qt/qt5/nativesdk-qtbase_git.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/
> nativesdk-qtbase_git.bb
> index 5b20b0a..a678b19 100644
> --- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
> +++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
> @@ -171,7 +171,7 @@ do_install() {
>  }
>
>  fakeroot do_generate_qt_environment_file() {
> -mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d/
> +install -d -m 755 ${D}${SDKPATHNATIVE}/environment-setup.d/
>  script=${D}${SDKPATHNATIVE}/environment-setup.d/qt5.sh
>
>  echo 'export PATH=${OE_QMAKE_PATH_HOST_BINS}:$PATH' > $script
> --
> 2.7.4
>
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel