Skip to contentSkip to conversation

jasper: Fix install conflict when enable multilib.

PATCH Applied [email protected] 2 participants 2 messages Dec 26, 2023 – Dec 31, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jasper: Fix install conflict when enable multilib.

From: Wang Mingyu <[email protected]>

Error: Transaction test error:
file /usr/include/jasper/jas_config.h conflicts between attempted installs of lib32-jasper-dev-4.1.1-r0.armv7ahf_neon and jasper-dev-4.1.1-r0.cortexa57

The differences between the two files are as follows:
@@ -44,10 +44,10 @@
/* #undef JAS_HAVE_INT128_T */

#define JAS_SIZEOF_INT 4
-#define JAS_SIZEOF_LONG 4
+#define JAS_SIZEOF_LONG 8
#define JAS_SIZEOF_LLONG 8
-#define JAS_SIZEOF_SIZE_T 4
-#define JAS_SIZEOF_SSIZE_T 4
+#define JAS_SIZEOF_SIZE_T 8
+#define JAS_SIZEOF_SSIZE_T 8

#define JAS_HAVE_FCNTL_H
/* #undef JAS_HAVE_IO_H */

---
 meta-oe/recipes-graphics/jasper/jasper_4.1.1.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-graphics/jasper/jasper_4.1.1.bb +2 -1
index 14f50d0b2..5281980ec 100644
@@ -10,7 +10,7 @@ CVE_STATUS[CVE-2015-8751] = "fixed-version: The CPE in the NVD database doesn't
 
 S = "${WORKDIR}/git"
 
-inherit cmake
+inherit cmake multilib_header
 
 do_configure:prepend() {
 	JAS_STDC_VERSION="$(echo __STDC_VERSION__ | ${CPP} -E -P -)"
@@ -29,5 +29,6 @@ do_install:append() {
     chrpath -d ${D}${bindir}/imginfo
     chrpath -d ${D}${bindir}/imgcmp
     chrpath -d ${D}${libdir}/libjasper.so.*
+    oe_multilib_header jasper/jas_config.h
 }
 
Signature · 1 line
2.34.1
Applied
#1 lore raw

Review line 45

Quoted 8 lines · On Tue, 26 Dec 2023 15:00:33 +0800, [email protected] wrote:

Error: Transaction test error:
file /usr/include/jasper/jas_config.h conflicts between attempted installs of lib32-jasper-dev-4.1.1-r0.armv7ahf_neon and jasper-dev-4.1.1-r0.cortexa57

The differences between the two files are as follows:

(quoted diff) +0 -0
@@ -44,10 +44,10 @@
 /* #undef JAS_HAVE_INT128_T */
 
[...]

Applied, thanks!

[1/1] jasper: Fix install conflict when enable multilib.

      commit: 85360acc4d93e135a647bf4819b9ba524df3cdf0

Best regards,

Signature · 1 line
Khem Raj <[email protected]>