* [meta-oracle-java][PATCH v2] oracle-jse-jdk: Don't use ${D} installing symlink target
@ 2015-12-02 23:39 Kyle Russell
2015-12-04 12:05 ` Maxin B. John
2015-12-04 15:49 ` Bruce Ashfield
0 siblings, 2 replies; 3+ messages in thread
From: Kyle Russell @ 2015-12-02 23:39 UTC (permalink / raw)
To: yocto; +Cc: Kyle Russell
When installed to the sysroot, this makes the symlink point to the
workdir, which is invalid in the sstate package. Since we cd to
${D} before creating the symlink, this ensures the link is created
in the correct install location, so just point the link to the final
target so that the patch is correctly fixed up during populate_sysroot.
Signed-off-by: Kyle Russell <bkylerussell@gmail.com>
---
recipes-devtools/oracle-java/oracle-jse-jdk.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/recipes-devtools/oracle-java/oracle-jse-jdk.inc b/recipes-devtools/oracle-java/oracle-jse-jdk.inc
index 54e83b8..6f13125 100644
--- a/recipes-devtools/oracle-java/oracle-jse-jdk.inc
+++ b/recipes-devtools/oracle-java/oracle-jse-jdk.inc
@@ -16,7 +16,7 @@ do_install_class-native() {
install -d -m 0755 ${D}${bindir}
cp -a ${S}/${JDK_JRE}${PV}_${PV_UPDATE} ${D}${libdir}/
for prog in java javac; do
- ( cd ${D}${bindir} && ln -sf ${D}${libdir}/${JDK_JRE}${PV}_${PV_UPDATE}/bin/$prog )
+ ( cd ${D}${bindir} && ln -sf ${libdir}/${JDK_JRE}${PV}_${PV_UPDATE}/bin/$prog )
done
( cd ${D}${libdir}/${JDK_JRE}${PV}_${PV_UPDATE}/bin ; \
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [meta-oracle-java][PATCH v2] oracle-jse-jdk: Don't use ${D} installing symlink target
2015-12-02 23:39 [meta-oracle-java][PATCH v2] oracle-jse-jdk: Don't use ${D} installing symlink target Kyle Russell
@ 2015-12-04 12:05 ` Maxin B. John
2015-12-04 15:49 ` Bruce Ashfield
1 sibling, 0 replies; 3+ messages in thread
From: Maxin B. John @ 2015-12-04 12:05 UTC (permalink / raw)
To: Kyle Russell; +Cc: yocto
Hi,
On Wed, Dec 02, 2015 at 06:39:14PM -0500, Kyle Russell wrote:
> When installed to the sysroot, this makes the symlink point to the
> workdir, which is invalid in the sstate package. Since we cd to
> ${D} before creating the symlink, this ensures the link is created
> in the correct install location, so just point the link to the final
> target so that the patch is correctly fixed up during populate_sysroot.
>
> Signed-off-by: Kyle Russell <bkylerussell@gmail.com>
> ---
> recipes-devtools/oracle-java/oracle-jse-jdk.inc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/recipes-devtools/oracle-java/oracle-jse-jdk.inc b/recipes-devtools/oracle-java/oracle-jse-jdk.inc
> index 54e83b8..6f13125 100644
> --- a/recipes-devtools/oracle-java/oracle-jse-jdk.inc
> +++ b/recipes-devtools/oracle-java/oracle-jse-jdk.inc
> @@ -16,7 +16,7 @@ do_install_class-native() {
> install -d -m 0755 ${D}${bindir}
> cp -a ${S}/${JDK_JRE}${PV}_${PV_UPDATE} ${D}${libdir}/
> for prog in java javac; do
> - ( cd ${D}${bindir} && ln -sf ${D}${libdir}/${JDK_JRE}${PV}_${PV_UPDATE}/bin/$prog )
> + ( cd ${D}${bindir} && ln -sf ${libdir}/${JDK_JRE}${PV}_${PV_UPDATE}/bin/$prog )
> done
>
> ( cd ${D}${libdir}/${JDK_JRE}${PV}_${PV_UPDATE}/bin ; \
> --
> 1.7.9.5
Pushed to master. Thanks, Kyle Russell and Bruce.
Best Regards,
Maxin
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [meta-oracle-java][PATCH v2] oracle-jse-jdk: Don't use ${D} installing symlink target
2015-12-02 23:39 [meta-oracle-java][PATCH v2] oracle-jse-jdk: Don't use ${D} installing symlink target Kyle Russell
2015-12-04 12:05 ` Maxin B. John
@ 2015-12-04 15:49 ` Bruce Ashfield
1 sibling, 0 replies; 3+ messages in thread
From: Bruce Ashfield @ 2015-12-04 15:49 UTC (permalink / raw)
To: Kyle Russell, yocto
On 15-12-02 06:39 PM, Kyle Russell wrote:
> When installed to the sysroot, this makes the symlink point to the
> workdir, which is invalid in the sstate package. Since we cd to
> ${D} before creating the symlink, this ensures the link is created
> in the correct install location, so just point the link to the final
> target so that the patch is correctly fixed up during populate_sysroot.
Looks good to me: Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
>
> Signed-off-by: Kyle Russell <bkylerussell@gmail.com>
> ---
> recipes-devtools/oracle-java/oracle-jse-jdk.inc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/recipes-devtools/oracle-java/oracle-jse-jdk.inc b/recipes-devtools/oracle-java/oracle-jse-jdk.inc
> index 54e83b8..6f13125 100644
> --- a/recipes-devtools/oracle-java/oracle-jse-jdk.inc
> +++ b/recipes-devtools/oracle-java/oracle-jse-jdk.inc
> @@ -16,7 +16,7 @@ do_install_class-native() {
> install -d -m 0755 ${D}${bindir}
> cp -a ${S}/${JDK_JRE}${PV}_${PV_UPDATE} ${D}${libdir}/
> for prog in java javac; do
> - ( cd ${D}${bindir} && ln -sf ${D}${libdir}/${JDK_JRE}${PV}_${PV_UPDATE}/bin/$prog )
> + ( cd ${D}${bindir} && ln -sf ${libdir}/${JDK_JRE}${PV}_${PV_UPDATE}/bin/$prog )
> done
>
> ( cd ${D}${libdir}/${JDK_JRE}${PV}_${PV_UPDATE}/bin ; \
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-12-04 16:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-02 23:39 [meta-oracle-java][PATCH v2] oracle-jse-jdk: Don't use ${D} installing symlink target Kyle Russell
2015-12-04 12:05 ` Maxin B. John
2015-12-04 15:49 ` Bruce Ashfield
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.