From 60aa20b8b691e5a72a6a11bf795b86c6359db886 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 1 Nov 2017 13:52:19 +0000 Subject: db: change types to avoid headers changing between architectures Triggered by looking at why Python doesn't find db.h (because it greps db.h for a regex, and db.h is actually a oe_multilib_header wrapper) I realised that the only reason we have to oe_multilib_header db.h is because one typedef is different between 32-bit and 64-bit architectures. However, the typedef is for a 64-bit integer so instead of using long (64-bit) or long long (32-bit), just use int64_t. Some of the overly complicated configure tests need to be deleted after this change but that is safe as we're building in a controlled environment and can assume int64_t exists. With this done the header doesn't change between architectures, and it doesn't need to be wrapped by oe_multilib_header. Signed-off-by: Ross Burton --- meta/recipes-support/db/db_5.3.28.bb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'meta/recipes-support/db/db_5.3.28.bb') diff --git a/meta/recipes-support/db/db_5.3.28.bb b/meta/recipes-support/db/db_5.3.28.bb index 66282600f5..fb4befbaf7 100644 --- a/meta/recipes-support/db/db_5.3.28.bb +++ b/meta/recipes-support/db/db_5.3.28.bb @@ -23,6 +23,7 @@ SRC_URI += "file://arm-thumb-mutex_db5.patch \ file://fix-parallel-build.patch \ file://0001-atomic-Rename-local-__atomic_compare_exchange-to-avo.patch \ file://0001-configure-Add-explicit-tag-options-to-libtool-invoca.patch \ + file://sequence-type.patch \ " # We are not interested in official latest 6.x versions; # let's track what debian is using. @@ -34,7 +35,7 @@ SRC_URI[sha256sum] = "e0a992d740709892e81f9d93f06daf305cf73fb81b545afe7247804317 LIC_FILES_CHKSUM = "file://LICENSE;md5=ed1158e31437f4f87cdd4ab2b8613955" -inherit autotools multilib_header +inherit autotools # Put virtual/db in any appropriate provider of a # relational database, use it as a dependency in @@ -112,8 +113,6 @@ do_install_append() { ln -s db51/db.h ${D}/${includedir}/db.h ln -s db51/db_cxx.h ${D}/${includedir}/db_cxx.h - oe_multilib_header db51/db.h - # The docs end up in /usr/docs - not right. if test -d "${D}/${prefix}/docs" then -- cgit 1.2.3-korg