diff options
| author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-09-28 11:06:10 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-30 16:51:15 +0100 |
| commit | 9393b160733c19af1b1d70cc066b1bddac83bcee (patch) | |
| tree | ceb7bcda3dbdc83c650d814184e18dbeffdb58f9 /meta/recipes-support/db/db_6.0.30.bb | |
| parent | b6253350fb86d8e54792905342a5892af570d526 (diff) | |
| download | poky-9393b160733c19af1b1d70cc066b1bddac83bcee.tar.gz | |
db: Upgrade to 6.0.35
The SRC_URI was changed to point gentoo distfiles because now Oracle
request authorization for download the source code [1], there are no changes
in the LICENSE since version 6.0.20 when the LICENSE changes to AGPL-3
[2], also the md5sum was review to be sure that is the same.
This minor upgrade fix an issue related to multiple rpm instances querying
the database [3].
The bugfixes related are,
- Fixed a bug that may lead to a crash when opening multiple environments
in a multi-threaded program.
- Fixed a bug where closing a panic environment raised access violation
and crashed the program.
For see the complete list of changes mostly bugfixes between 6.0.30 and 6.0.35 [4].
[1] http://download.oracle.com/otn/berkeley-db/db-6.0.35.tar.gz
[2] http://download.oracle.com/otndocs/products/berkeleydb/html/changelog_6_0.html#idp509784
[3] https://bugzilla.yoctoproject.org/show_bug.cgi?id=10157#c0
[4] http://download.oracle.com/otndocs/products/berkeleydb/html/changelog_6_0.html#idp503384
[YOCTO #10157]
(From OE-Core rev: 8f72cae18961e9556e54db76a416bde497dc8b6d)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/db/db_6.0.30.bb')
| -rw-r--r-- | meta/recipes-support/db/db_6.0.30.bb | 123 |
1 files changed, 0 insertions, 123 deletions
diff --git a/meta/recipes-support/db/db_6.0.30.bb b/meta/recipes-support/db/db_6.0.30.bb deleted file mode 100644 index 072cbdf217..0000000000 --- a/meta/recipes-support/db/db_6.0.30.bb +++ /dev/null | |||
| @@ -1,123 +0,0 @@ | |||
| 1 | # Version 6 of the Berkeley DB from Oracle (formerly Sleepycat) | ||
| 2 | # | ||
| 3 | # At present this package only installs the DB code | ||
| 4 | # itself (shared libraries, .a in the dev package), | ||
| 5 | # documentation and headers. | ||
| 6 | # | ||
| 7 | # The headers have the same names as those as v3 | ||
| 8 | # of the DB, only one version can be used *for dev* | ||
| 9 | # at once - DB3 and DB6 can both be installed on the | ||
| 10 | # same system at the same time if really necessary. | ||
| 11 | SECTION = "libs" | ||
| 12 | SUMMARY = "Berkeley Database v6" | ||
| 13 | HOMEPAGE = "http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/overview/index.html" | ||
| 14 | LICENSE = "AGPL-3.0" | ||
| 15 | VIRTUAL_NAME ?= "virtual/db" | ||
| 16 | RCONFLICTS_${PN} = "db3" | ||
| 17 | |||
| 18 | PR = "r1" | ||
| 19 | |||
| 20 | # Note, when upgraded to 6.1.x, a patch in RPM will need to be removed to activate db 6.1 support. | ||
| 21 | |||
| 22 | SRC_URI = "http://download.oracle.com/berkeley-db/db-${PV}.tar.gz \ | ||
| 23 | file://arm-thumb-mutex_db5.patch \ | ||
| 24 | file://fix-parallel-build.patch \ | ||
| 25 | file://Makefile-let-libso_target-depend-on-bt_rec.patch \ | ||
| 26 | file://Makefile-let-libdb-6.0.la-depend-os_map.l.patch \ | ||
| 27 | " | ||
| 28 | |||
| 29 | SRC_URI[md5sum] = "ad28eb86ad3203b5422844db179c585b" | ||
| 30 | SRC_URI[sha256sum] = "608e4b1cf390e9bf54c0ef00c5bd9ca76d36e2261b9f4d33d54516f3f6a20fd2" | ||
| 31 | |||
| 32 | # Exclude NC versions which lack AES encryption | ||
| 33 | UPSTREAM_CHECK_REGEX = "db-(?P<pver>\d+\.\d+(\.\d+)?).tar" | ||
| 34 | UPSTREAM_CHECK_URI = "http://www.oracle.com/technetwork/products/berkeleydb/downloads/index-082944.html" | ||
| 35 | |||
| 36 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1ec8b0b17cc31513fe35ab10716f8490" | ||
| 37 | |||
| 38 | # Put virtual/db in any appropriate provider of a | ||
| 39 | # relational database, use it as a dependency in | ||
| 40 | # place of a specific db and use: | ||
| 41 | # | ||
| 42 | # PREFERRED_PROVIDER_virtual/db | ||
| 43 | # | ||
| 44 | # to select the correct db in the build (distro) .conf | ||
| 45 | PROVIDES += "${VIRTUAL_NAME}" | ||
| 46 | |||
| 47 | inherit autotools | ||
| 48 | |||
| 49 | # The executables go in a separate package - typically there | ||
| 50 | # is no need to install these unless doing real database | ||
| 51 | # management on the system. | ||
| 52 | inherit lib_package | ||
| 53 | |||
| 54 | PACKAGES =+ "${PN}-cxx" | ||
| 55 | FILES_${PN}-cxx = "${libdir}/*cxx*so" | ||
| 56 | |||
| 57 | # The dev package has the .so link (as in db3) and the .a's - | ||
| 58 | # it is therefore incompatible (cannot be installed at the | ||
| 59 | # same time) as the db3 package | ||
| 60 | # sort out the .so since they do version prior to the .so | ||
| 61 | SOLIBS = "-6*.so" | ||
| 62 | FILES_SOLIBSDEV = "${libdir}/libdb.so ${libdir}/libdb_cxx.so" | ||
| 63 | |||
| 64 | #configuration - set in local.conf to override | ||
| 65 | # All the --disable-* options replace --enable-smallbuild, which breaks a bunch of stuff (eg. postfix) | ||
| 66 | DB6_CONFIG ?= "--enable-o_direct --disable-cryptography --disable-queue --disable-replication --disable-verify --disable-compat185 --disable-sql" | ||
| 67 | |||
| 68 | EXTRA_OECONF = "${DB6_CONFIG} --enable-shared --enable-cxx --with-sysroot" | ||
| 69 | |||
| 70 | # Cancel the site stuff - it's set for db3 and destroys the configure. | ||
| 71 | CONFIG_SITE = "" | ||
| 72 | |||
| 73 | AUTOTOOLS_SCRIPT_PATH = "${S}/dist" | ||
| 74 | |||
| 75 | do_configure() { | ||
| 76 | cd ${B} | ||
| 77 | gnu-configize --force ${AUTOTOOLS_SCRIPT_PATH} | ||
| 78 | oe_runconf | ||
| 79 | } | ||
| 80 | |||
| 81 | # Override the MUTEX setting here, the POSIX library is | ||
| 82 | # the default - "POSIX/pthreads/library". | ||
| 83 | # Don't ignore the nice SWP instruction on the ARM: | ||
| 84 | # These enable the ARM assembler mutex code | ||
| 85 | ARM_MUTEX = "--with-mutex=ARM/gcc-assembly" | ||
| 86 | MUTEX = "" | ||
| 87 | MUTEX_arm = "${ARM_MUTEX}" | ||
| 88 | MUTEX_armeb = "${ARM_MUTEX}" | ||
| 89 | EXTRA_OECONF += "${MUTEX}" | ||
| 90 | EXTRA_OEMAKE_append_class-target = " LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool" | ||
| 91 | EXTRA_OEMAKE += "STRIP=true" | ||
| 92 | |||
| 93 | do_compile_prepend() { | ||
| 94 | # Stop libtool adding RPATHs | ||
| 95 | sed -i -e 's|hardcode_into_libs=yes|hardcode_into_libs=no|' ${B}/libtool | ||
| 96 | } | ||
| 97 | |||
| 98 | do_install_append() { | ||
| 99 | mkdir -p ${D}/${includedir}/db60 | ||
| 100 | mv ${D}/${includedir}/db.h ${D}/${includedir}/db60/. | ||
| 101 | mv ${D}/${includedir}/db_cxx.h ${D}/${includedir}/db60/. | ||
| 102 | ln -s db60/db.h ${D}/${includedir}/db.h | ||
| 103 | ln -s db60/db_cxx.h ${D}/${includedir}/db_cxx.h | ||
| 104 | |||
| 105 | # The docs end up in /usr/docs - not right. | ||
| 106 | if test -d "${D}/${prefix}/docs" | ||
| 107 | then | ||
| 108 | mkdir -p "${D}/${datadir}" | ||
| 109 | test ! -d "${D}/${docdir}" || rm -rf "${D}/${docdir}" | ||
| 110 | mv "${D}/${prefix}/docs" "${D}/${docdir}" | ||
| 111 | fi | ||
| 112 | |||
| 113 | chown -R root:root ${D} | ||
| 114 | } | ||
| 115 | |||
| 116 | # libdb isn't versioned in the typical manner (libdb-6.0.so is the full library | ||
| 117 | # name) so skip these checks. | ||
| 118 | INSANE_SKIP_${PN} = "dev-so" | ||
| 119 | INSANE_SKIP_${PN}-cxx = "dev-so" | ||
| 120 | |||
| 121 | BBCLASSEXTEND = "native nativesdk" | ||
| 122 | |||
| 123 | RECIPE_NO_UPDATE_REASON = "latest db does not work with RPM-5.x due to changes in locking semantics" | ||
