All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oracle-java][PATCH] Don't preserve ownership when copying files
@ 2017-11-06 14:33 Martin Nordqvist
  2017-11-08  8:31 ` Vincent Prince
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Nordqvist @ 2017-11-06 14:33 UTC (permalink / raw)
  To: yocto; +Cc: Martin Nordqvist

Don't preserve ownership when copying files. Instead let root be
owner of all files.
---
 recipes-devtools/oracle-java/oracle-jse-jdk.inc | 3 ++-
 recipes-devtools/oracle-java/oracle-jse.inc     | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/recipes-devtools/oracle-java/oracle-jse-jdk.inc b/recipes-devtools/oracle-java/oracle-jse-jdk.inc
index a7210d9..ca6af22 100644
--- a/recipes-devtools/oracle-java/oracle-jse-jdk.inc
+++ b/recipes-devtools/oracle-java/oracle-jse-jdk.inc
@@ -13,7 +13,8 @@ require oracle-jse.inc
 
 do_install_class-native() {
 	install -d				${D}${libdir_jvm}
-	cp -a ${S}/${JDK_JRE}${PV}_${PV_UPDATE}	${D}${JDK_HOME}
+	cp -a --no-preserve=ownership \
+		${S}/${JDK_JRE}${PV}_${PV_UPDATE}	${D}${JDK_HOME}
 
 	install -d				${D}${bindir}
 	ln -sf ${JDK_HOME}/bin/java		${D}${bindir}
diff --git a/recipes-devtools/oracle-java/oracle-jse.inc b/recipes-devtools/oracle-java/oracle-jse.inc
index 4346f23..5e5f406 100644
--- a/recipes-devtools/oracle-java/oracle-jse.inc
+++ b/recipes-devtools/oracle-java/oracle-jse.inc
@@ -19,7 +19,8 @@ JDK_HOME = "${libdir_jvm}/${JDK_DIR}"
 
 do_install () {
 	install -d -m 0755			${D}${libdir_jvm}
-	cp -a ${S}/${JDK_JRE}${PV}_${PV_UPDATE}	${D}${JDK_HOME}
+	cp -a --no-preserve=ownership \
+		${S}/${JDK_JRE}${PV}_${PV_UPDATE}	${D}${JDK_HOME}
 }
 
 # All the files are provided in a binaray package, and keeping all the
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-oracle-java][PATCH] Don't preserve ownership when copying files
  2017-11-06 14:33 [meta-oracle-java][PATCH] Don't preserve ownership when copying files Martin Nordqvist
@ 2017-11-08  8:31 ` Vincent Prince
  0 siblings, 0 replies; 2+ messages in thread
From: Vincent Prince @ 2017-11-08  8:31 UTC (permalink / raw)
  To: Martin Nordqvist; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1991 bytes --]

Hi Martin,

Any reason to give root rights to JDK?

Best Regards,
Vincent

2017-11-06 15:33 GMT+01:00 Martin Nordqvist <mano@hms.se>:

> Don't preserve ownership when copying files. Instead let root be
> owner of all files.
> ---
>  recipes-devtools/oracle-java/oracle-jse-jdk.inc | 3 ++-
>  recipes-devtools/oracle-java/oracle-jse.inc     | 3 ++-
>  2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/recipes-devtools/oracle-java/oracle-jse-jdk.inc
> b/recipes-devtools/oracle-java/oracle-jse-jdk.inc
> index a7210d9..ca6af22 100644
> --- a/recipes-devtools/oracle-java/oracle-jse-jdk.inc
> +++ b/recipes-devtools/oracle-java/oracle-jse-jdk.inc
> @@ -13,7 +13,8 @@ require oracle-jse.inc
>
>  do_install_class-native() {
>         install -d                              ${D}${libdir_jvm}
> -       cp -a ${S}/${JDK_JRE}${PV}_${PV_UPDATE} ${D}${JDK_HOME}
> +       cp -a --no-preserve=ownership \
> +               ${S}/${JDK_JRE}${PV}_${PV_UPDATE}       ${D}${JDK_HOME}
>
>         install -d                              ${D}${bindir}
>         ln -sf ${JDK_HOME}/bin/java             ${D}${bindir}
> diff --git a/recipes-devtools/oracle-java/oracle-jse.inc
> b/recipes-devtools/oracle-java/oracle-jse.inc
> index 4346f23..5e5f406 100644
> --- a/recipes-devtools/oracle-java/oracle-jse.inc
> +++ b/recipes-devtools/oracle-java/oracle-jse.inc
> @@ -19,7 +19,8 @@ JDK_HOME = "${libdir_jvm}/${JDK_DIR}"
>
>  do_install () {
>         install -d -m 0755                      ${D}${libdir_jvm}
> -       cp -a ${S}/${JDK_JRE}${PV}_${PV_UPDATE} ${D}${JDK_HOME}
> +       cp -a --no-preserve=ownership \
> +               ${S}/${JDK_JRE}${PV}_${PV_UPDATE}       ${D}${JDK_HOME}
>  }
>
>  # All the files are provided in a binaray package, and keeping all the
> --
> 1.9.1
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 2813 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-08  8:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-06 14:33 [meta-oracle-java][PATCH] Don't preserve ownership when copying files Martin Nordqvist
2017-11-08  8:31 ` Vincent Prince

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.