Skip to contentSkip to conversation

openssl: fix multilib file install conflicts

PATCH Superseded Xulin Sun 4 participants 8 messages Jan 18, 2019 – Jan 29, 2019

lore
Share & tools
lore

Xulin Sun

author
#0 lore raw

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
index 5c4e69cfb7..21359fa68a 100644
@@ -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
#1 lore raw

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_rehash conflicts 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
---
  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
index 5c4e69cfb7..21359fa68a 100644
@@ -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
#2 lore raw
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 conflicts

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 5 lines

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

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_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

Review

Quoted 6 lines
---
  meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 4 ++++
  1 file changed, 4 insertions(+)
(quoted diff) +0 -0

b/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb

Quoted 6 lines

index 5c4e69cfb7..21359fa68a 100644

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 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 -0
  BBCLASSEXTEND = "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

author
#3 lore raw
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 conflicts

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 5 lines

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
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

Review

Quoted 6 lines
---
   meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 4 ++++
   1 file changed, 4 insertions(+)
(quoted diff) +0 -0

b/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb

Quoted 6 lines

index 5c4e69cfb7..21359fa68a 100644

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 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 -0
   BBCLASSEXTEND = "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_package and ${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

author
#4 lore raw

PATCH v2 1/1 openssl: fix multilib file install conflicts

In reply to Xulin Sun

To 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
index 5c4e69c..21359fa 100644
@@ -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
#5 lore raw
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_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 +0 -0
index 5c4e69c..21359fa 100644

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

author
#6 lore raw
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_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 +0 -0
index 5c4e69c..21359fa 100644
@@ -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 -0
  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?

c_rehash is in ${PN}-bin.  if no other concerns, v3 will be sent.

Thanks
Xulin

Quoted 6 lines

Cheers,

Richard

author
#7 lore raw

PATCH v3 1/1 openssl: fix multilib file install conflicts

In reply to Xulin Sun

To 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
index 5c4e69c..6676614 100644
@@ -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