openssl: fix multilib file install conflicts
PATCH 1/1 openssl: fix multilib file install conflicts
To avoid issue like below if run "bitbake lib32-wrlinux-image-glibc-std" with series userspace packages(LAMP,krb5...) added:
Error: Transaction check error:
file /usr/bin/c_rehash conflicts between attempted installs of lib32-openssl-bin-1.1.1-r0.armv7at2hf_neon and openssl-bin-1.1.1-r0.aarch64
--- meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +4 -0
@@ -206,3 +206,7 @@ RREPLACES_openssl-conf = "openssl10-conf" RCONFLICTS_openssl-conf = "openssl10-conf" BBCLASSEXTEND = "native nativesdk" + +inherit multilib_script + +MULTILIB_SCRIPTS = "${PN}:${bindir}/c_rehash"
Signature · 1 line
2.18.1
Xulin,
Thanks for sending this patch.
Quoted 1 line · Xulin Sun
To avoid issue like below if run "bitbake lib32-wrlinux-image-glibc-std"
For future oe-core commits, please use a core-image-minimal example that will be more familiar to people outside of Wind River.
Quoted 6 lines
with series userspace
packages(LAMP,krb5...)added:Error: Transaction check error:
file/usr/bin/c_rehashconflicts between attempted installs of lib32-openssl-bin-1.1.1-r0.armv7at2hf_neon and openssl-bin-1.1.1-r0.aarch64
Also, while your commit log explains what you fixed, it
doesn't describe the issue for those who don't know what c_rehash is so something like:
Add multilib_script support for openssl's c_rehash which is a perl script.
Followed by the example failure log that you showed.
Since this hasn't been merged to master/master-next, it would be nice if you sent a v2.
Thanks,
../Randy
Quoted 18 lines
Signed-off-by Xulin Sun <[email protected]>--- meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 4 ++++ 1 file changed, 4 insertions(+)meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +4
-0@@ -206,3 +206,7 @@ RREPLACES_openssl-conf = "openssl10-conf" RCONFLICTS_openssl-conf = "openssl10-conf" BBCLASSEXTEND = "native nativesdk" + +inherit multilib_script + +MULTILIB_SCRIPTS = "${PN}:${bindir}/c_rehash"
Signature · 2 lines
# Randy MacLeod # Wind River Linux
Quoted 57 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Randy MacLeod
Sent: den 22 januari 2019 00:01
To: Patches and discussions about the oe-core layer <openembedded- [email protected]>; Xulin Sun <[email protected]>
Subject: Re: [OE-core] [meta-oe][PATCH] openssl: fix multilib file install conflictsXulin,
Thanks for sending this patch.
Quoted 1 line · Xulin Sun
To avoid issue like below if run "bitbake lib32-wrlinux-image-glibc-
std"
For future oe-core commits, please use a core-image-minimal example that will be more familiar to people outside of Wind River.
Quoted 5 lines
with series userspace
packages(LAMP,krb5...)added:Error: Transaction check error:
file/usr/bin/c_rehashconflicts between attempted installs of lib32-openssl-bin-1.1.1-r0.armv7at2hf_neon and openssl-bin-1.1.1-r0.aarch64
Quoted 1 line
Also, while your commit log explains what you fixed, it doesn't describe the issue for those who don't know what
c_rehashis so something like:Add
multilib_scriptsupport for openssl'sc_rehashwhich is a perl script.Followed by the example failure log that you showed.
Since this hasn't been merged to master/master-next, it would be nice if you sent a v2.
Thanks,
../RandyReview
Quoted 6 lines
Signed-off-by Xulin Sun <[email protected]>--- meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 4 ++++ 1 file changed, 4 insertions(+)(quoted diff) +0
-0b/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb
Quoted 6 lines
index
5c4e69cfb7..21359fa68a100644meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +0
-0@@ -206,3 +206,7 @@ RREPLACES_openssl-conf = "openssl10-conf" RCONFLICTS_openssl-conf = "openssl10-conf"
Quoted 5 lines
meta/recipes-connectivity/openssl/openssl_1.1.1a.bb RREPLACES_openssl-conf = "openssl10-conf" · line 212
Quoted 5 lines
meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +4
-0BBCLASSEXTEND = "native nativesdk" + +inherit multilib_script + +MULTILIB_SCRIPTS = "${PN}:${bindir}/c_rehash"
Shouldn't that be:
MULTILIB_SCRIPTS = "${PN}-bin:${bindir}/c_rehash"
given that openssl inherits lib_package and ${bindir}/c_rehash thus ends up in the ${PN}-bin package?
//Peter
Quoted 62 lines · Peter Kjellerstedt
Quoted 55 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Randy MacLeod
Sent: den 22 januari 2019 00:01
To: Patches and discussions about the oe-core layer <openembedded- [email protected]>; Xulin Sun <[email protected]>
Subject: Re: [OE-core] [meta-oe][PATCH] openssl: fix multilib file install conflictsXulin,
Thanks for sending this patch.
Quoted 1 line · Xulin Sun
To avoid issue like below if run "bitbake lib32-wrlinux-image-glibc-
std"
For future oe-core commits, please use a core-image-minimal example that will be more familiar to people outside of Wind River.
Quoted 5 lines
with series userspace
packages(LAMP,krb5...)added:Error: Transaction check error:
file/usr/bin/c_rehashconflicts between attempted installs of lib32-openssl-bin-1.1.1-r0.armv7at2hf_neon and openssl-bin-1.1.1-r0.aarch64
Also, while your commit log explains what you fixed, it doesn't describe the issue for those who don't know whatc_rehashis so something like:Add
multilib_scriptsupport for openssl'sc_rehashwhich is a perl script.Followed by the example failure log that you showed.
Since this hasn't been merged to master/master-next, it would be nice if you sent a v2.
Thanks,
../RandyReview
Quoted 6 lines
Signed-off-by Xulin Sun <[email protected]>--- meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 4 ++++ 1 file changed, 4 insertions(+)(quoted diff) +0
-0b/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb
Quoted 6 lines
index
5c4e69cfb7..21359fa68a100644meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +0
-0@@ -206,3 +206,7 @@ RREPLACES_openssl-conf = "openssl10-conf" RCONFLICTS_openssl-conf = "openssl10-conf"Quoted 5 lines
meta/recipes-connectivity/openssl/openssl_1.1.1a.bb RREPLACES_openssl-conf = "openssl10-conf" · line 212
Quoted 5 lines
meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +4
-0BBCLASSEXTEND = "native nativesdk" + +inherit multilib_script + +MULTILIB_SCRIPTS = "${PN}:${bindir}/c_rehash"Shouldn't that be:
Quoted 4 lines
MULTILIB_SCRIPTS= "${PN}-bin:${bindir}/c_rehash"given that openssl inherits
lib_packageand ${bindir}/c_rehash thus ends up in the ${PN}-bin package?
It is verified that both these two modification method ( ${PN} or ${PN}-bin ) are all working and can fix the building error issue. Seems that after update to openssl 1.1.1, the file /usr/bin/openssl is packaged into openssl-bin.
Thanks
Xulin
Quoted 4 lines
//Peter
PATCH v2 1/1 openssl: fix multilib file install conflicts
In reply to Xulin SunTo avoid issue like below if run "bitbake lib32-core-image-minimal" with series userspace packages(LAMP,krb5...) added.
Add multilib_script support for openssl's c_rehash which is a perl script.
Error: Transaction check error:
file /usr/bin/c_rehash conflicts between attempted installs of lib32-openssl-bin-1.1.1-r0.armv7at2hf_neon and openssl-bin-1.1.1-r0.aarch64
--- meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +4 -0
@@ -206,3 +206,7 @@ RREPLACES_openssl-conf = "openssl10-conf" RCONFLICTS_openssl-conf = "openssl10-conf" BBCLASSEXTEND = "native nativesdk" + +inherit multilib_script + +MULTILIB_SCRIPTS = "${PN}:${bindir}/c_rehash"
Signature · 1 line
2.7.4
Quoted 22 lines · Xulin Sun
To avoid issue like below if run "bitbake lib32-core-image-minimal" with series userspace
packages(LAMP,krb5...)added.Add
multilib_scriptsupport for openssl'sc_rehashwhich is a perl script.Error: Transaction check error:
file/usr/bin/c_rehashconflicts between attempted installs of lib32-openssl-bin-1.1.1-r0.armv7at2hf_neon and openssl-bin-1.1.1-
r0.aarch64Signed-off-by Xulin Sun <[email protected]>--- meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 4 ++++ 1 file changed, 4 insertions(+)meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +0
-0
meta/recipes-connectivity/openssl/openssl_1.1.1a.bb RREPLACES_openssl-conf = "openssl10-conf" · line 212
Quoted 7 lines
meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +4
-0@@ -206,3 +206,7 @@ RREPLACES_openssl-conf = "openssl10-conf" RCONFLICTS_openssl-conf = "openssl10-conf" BBCLASSEXTEND = "native nativesdk" + +inherit multilib_script + +MULTILIB_SCRIPTS = "${PN}:${bindir}/c_rehash"
Peter's feedback still needs addressing on whether c_rehash is in ${PN} or ${PN}-bin?
Cheers,
Richard
Quoted 25 lines · Richard Purdie
Quoted 24 lines · Xulin Sun
To avoid issue like below if run "bitbake lib32-core-image-minimal" with series userspace
packages(LAMP,krb5...)added.Add
multilib_scriptsupport for openssl'sc_rehashwhich is a perl script.Error: Transaction check error:
file/usr/bin/c_rehashconflicts between attempted installs of lib32-openssl-bin-1.1.1-r0.armv7at2hf_neon and openssl-bin-1.1.1-
r0.aarch64Signed-off-by Xulin Sun <[email protected]>--- meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 4 ++++ 1 file changed, 4 insertions(+)meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +0
-0@@ -206,3 +206,7 @@ RREPLACES_openssl-conf = "openssl10-conf" RCONFLICTS_openssl-conf = "openssl10-conf"
Quoted 7 lines
meta/recipes-connectivity/openssl/openssl_1.1.1a.bb RREPLACES_openssl-conf = "openssl10-conf" · line 212
Quoted 5 lines
meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +4
-0BBCLASSEXTEND = "native nativesdk" + +inherit multilib_script + +MULTILIB_SCRIPTS = "${PN}:${bindir}/c_rehash"Peter's feedback still needs addressing on whether
c_rehashis in ${PN} or ${PN}-bin?
c_rehash is in ${PN}-bin. if no other concerns, v3 will be sent.
Thanks
Xulin
Quoted 6 lines
Cheers,
Richard
PATCH v3 1/1 openssl: fix multilib file install conflicts
In reply to Xulin SunTo avoid issue like below if run "bitbake lib32-core-image-minimal" with series userspace packages(LAMP,krb5...) added.
Add multilib_script support for openssl's c_rehash which is a perl script.
Error: Transaction check error:
file /usr/bin/c_rehash conflicts between attempted installs of lib32-openssl-bin-1.1.1-r0.armv7at2hf_neon and openssl-bin-1.1.1-r0.aarch64
--- meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +4 -0
@@ -206,3 +206,7 @@ RREPLACES_openssl-conf = "openssl10-conf" RCONFLICTS_openssl-conf = "openssl10-conf" BBCLASSEXTEND = "native nativesdk" + +inherit multilib_script + +MULTILIB_SCRIPTS = "${PN}-bin:${bindir}/c_rehash"
Signature · 1 line
2.7.4