Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] Revert "base-files: Define JAVA_HOME by default"
@ 2019-02-21  3:23 Fang Jia
  2019-02-21  3:23 ` [PATCH 2/2] openjdk: add openjdk-config Fang Jia
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Fang Jia @ 2019-02-21  3:23 UTC (permalink / raw)
  To: git, openembedded-devel

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>
---
 recipes-core/base-files/base-files_3.0.14.bbappend | 13 -------------
 1 file changed, 13 deletions(-)
 delete mode 100644 recipes-core/base-files/base-files_3.0.14.bbappend

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 @@
-do_install_append() {
-	cat >> ${D}${sysconfdir}/profile << EOT
-JAVA_HOME=""
-for dir in ${libdir}/jvm/*; do
-	if [ -x "\${dir}/bin/java" ]; then
-		[ -z "\${JAVA_HOME}" ] && JAVA_HOME="\${dir}"
-	fi
-done
-if [ -n "\${JAVA_HOME}" ]; then
-	export JAVA_HOME=\${JAVA_HOME}
-fi
-EOT
-}
-- 
2.7.4



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

end of thread, other threads:[~2019-07-22  2:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-21  3:23 [PATCH 1/2] Revert "base-files: Define JAVA_HOME by default" Fang Jia
2019-02-21  3:23 ` [PATCH 2/2] openjdk: add openjdk-config Fang Jia
2019-07-22  2:53   ` Jia, Fang
2019-02-22  8:52 ` [PATCH 1/2] Revert "base-files: Define JAVA_HOME by default" Richard Leitner
2019-02-25  2:05   ` Jia, Fang
2019-05-30  8:33   ` Jia, Fang
2019-07-19  8:04 ` Richard Leitner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox