diff options
| author | Fang Jia <fang.jia@windriver.com> | 2019-02-21 11:23:07 +0800 |
|---|---|---|
| committer | Richard Leitner <richard.leitner@skidata.com> | 2019-07-19 10:13:28 +0200 |
| commit | 75027f01429be0642c0488f1e68a983424be77b2 (patch) | |
| tree | a397b23c798a23e959f3f42ef4a5f909931679ad | |
| parent | bc98e3d33554d140ef6c5dd0169e8062183dc48f (diff) | |
| download | meta-java-75027f01429be0642c0488f1e68a983424be77b2.tar.gz | |
Revert "base-files: Define JAVA_HOME by default"
This reverts commit ada652564f09756a81f54495cbc2091125239625.
When enable multilib on a 64-bit system, probably both base-file and
lib32-base-files are installed.
Then both packages want to modify the file "profile", there will be
an error like:
"
Error: Transaction check error:
file /etc/profile conflicts between attempted installs of
lib32-base-files-3.0.14-r148.gpb_virt and
base-files-3.0.14-r148.gpb_virt
"
The task can be added by adding a file to ${sysconfdir}/profile.d/.
Signed-off-by: Fang Jia <fang.jia@windriver.com>
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
| -rw-r--r-- | recipes-core/base-files/base-files_3.0.14.bbappend | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/recipes-core/base-files/base-files_3.0.14.bbappend b/recipes-core/base-files/base-files_3.0.14.bbappend deleted file mode 100644 index 4651185..0000000 --- a/recipes-core/base-files/base-files_3.0.14.bbappend +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | do_install_append() { | ||
| 2 | cat >> ${D}${sysconfdir}/profile << EOT | ||
| 3 | JAVA_HOME="" | ||
| 4 | for dir in ${libdir}/jvm/*; do | ||
| 5 | if [ -x "\${dir}/bin/java" ]; then | ||
| 6 | [ -z "\${JAVA_HOME}" ] && JAVA_HOME="\${dir}" | ||
| 7 | fi | ||
| 8 | done | ||
| 9 | if [ -n "\${JAVA_HOME}" ]; then | ||
| 10 | export JAVA_HOME=\${JAVA_HOME} | ||
| 11 | fi | ||
| 12 | EOT | ||
| 13 | } | ||
