Skip to contentSkip to conversation

rpm: update patch to support db-6.2.23

PATCH In review Maxin B. John 5 participants 8 messages Jun 3, 2016 – Jun 5, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 rpm: update patch to support db-6.2.23

Refresh the rpm-db60.patch to support db-6.2.23

---
 meta/recipes-devtools/rpm/rpm/rpm-db60.patch | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
meta/recipes-devtools/rpm/rpm/rpm-db60.patch +6 -6
index b4df8b7..403f3cb 100644
@@ -13,11 +13,11 @@ Index: rpm/configure.ac
  [RPM_CHECK_LIB(
      [Berkeley-DB], [db],
 -    [db-6.1], [db_create], [db.h],
-+    [db-6.0], [db_create], [db.h],
++    [db-6.2], [db_create], [db.h],
      [yes,external], [db6],
      [ DBLIBSRCS="$DBLIBSRCS db3.c"
 -      DBXY=db61
-+      DBXY=db60
++      DBXY=db62
        AM_CONDITIONAL(WITH_DB, [ true ])
        AM_CONDITIONAL(WITH_DB_INTERNAL, [ test ".$RPM_CHECK_LIB_LOCATION" = .internal ])
        if test ".$RPM_CHECK_LIB_LOCATION" = .internal; then
@@ -26,7 +26,7 @@ Index: rpm/configure.ac
  ])
  
 -if test ".$ac_cv_lib_db_6_1_db_create" != .yes -a ".$ac_cv_lib_db_5_3_db_create" != .yes; then
-+if test ".$ac_cv_lib_db_6_0_db_create" != .yes -a ".$ac_cv_lib_db_5_3_db_create" != .yes; then
++if test ".$ac_cv_lib_db_6_2_db_create" != .yes -a ".$ac_cv_lib_db_5_3_db_create" != .yes; then
      CPPFLAGS="${CPPFLAGS_save}"
  fi
  
@@ -36,12 +36,12 @@ Index: rpm/configure.ac
  
 -dnl # Sqlite 3.8.3.1 from db-6.1.19
 -if test ".$ac_cv_lib_db_6_1_db_create" = .yes; then
-+dnl # Sqlite 3.8.3.1 from db-6.0.30
-+if test ".$ac_cv_lib_db_6_0_db_create" = .yes; then
++dnl # Sqlite 3.8.3.1 from db-6.2.23
++if test ".$ac_cv_lib_db_6_2_db_create" = .yes; then
  RPM_CHECK_LIB(
      [Berkeley-DB (+SQLite3)], [dbsql],
 -    [db_sql-6.1], [sqlite3_open], [dbsql.h],
-+    [db_sql-6.0], [sqlite3_open], [dbsql.h],
++    [db_sql-6.2], [sqlite3_open], [dbsql.h],
      [yes,external], [db6/sql],
      [
        AM_CONDITIONAL(WITH_DBSQL, [ true ])
Signature · 1 line
2.4.0
#1 lore raw

PATCH 2/2 db: update to 6.2.23

6.0.30 -> 6.2.23

Disable atomicsupport as db fails to build with built-in atomic functions.

---
 meta/recipes-support/db/{db_6.0.30.bb => db_6.2.23.bb} | 17 +++--------------
 1 file changed, 3 insertions(+), 14 deletions(-)
 rename meta/recipes-support/db/{db_6.0.30.bb => db_6.2.23.bb} (86%)
meta/recipes-support/db/db_6.2.23.bb renamed from meta/recipes-support/db/db_6.0.30.bb +3 -14
similarity index 86%
rename from meta/recipes-support/db/db_6.0.30.bb
rename to meta/recipes-support/db/db_6.2.23.bb
index 50a469b..f53811e 100644
@@ -24,8 +24,8 @@ SRC_URI += "file://arm-thumb-mutex_db5.patch;patchdir=.. \
             file://Makefile-let-libdb-6.0.la-depend-os_map.l.patch;patchdir=.. \
            "
 
-SRC_URI[md5sum] = "ad28eb86ad3203b5422844db179c585b"
-SRC_URI[sha256sum] = "608e4b1cf390e9bf54c0ef00c5bd9ca76d36e2261b9f4d33d54516f3f6a20fd2"
+SRC_URI[md5sum] = "9da126afb937a48171ff1e569ce67cf1"
+SRC_URI[sha256sum] = "47612c8991aa9ac2f6be721267c8d3cdccf5ac83105df8e50809daea24e95dc7"
 
 # Exclude NC versions which lack AES encryption
 UPSTREAM_CHECK_REGEX = "db-(?P<pver>\d+\.\d+(\.\d+)?).tar"
@@ -70,21 +70,10 @@ FILES_SOLIBSDEV = "${libdir}/libdb.so ${libdir}/libdb_cxx.so"
 
 #configuration - set in local.conf to override
 # All the --disable-* options replace --enable-smallbuild, which breaks a bunch of stuff (eg. postfix)
-DB6_CONFIG ?= "--enable-o_direct --disable-cryptography --disable-queue --disable-replication --disable-verify --disable-compat185 --disable-sql"
+DB6_CONFIG ?= "--enable-o_direct --disable-cryptography --disable-queue --disable-replication --disable-verify --disable-compat185 --disable-sql --disable-atomicsupport"
 
 EXTRA_OECONF = "${DB6_CONFIG} --enable-shared --enable-cxx --with-sysroot"
 
-# Override the MUTEX setting here, the POSIX library is
-# the default - "POSIX/pthreads/library".
-# Don't ignore the nice SWP instruction on the ARM:
-# These enable the ARM assembler mutex code
-ARM_MUTEX = "--with-mutex=ARM/gcc-assembly"
-MUTEX = ""
-MUTEX_arm = "${ARM_MUTEX}"
-MUTEX_armeb = "${ARM_MUTEX}"
-EXTRA_OECONF += "${MUTEX}"
-EXTRA_OEMAKE_class-target = "LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool"
-
 # Cancel the site stuff - it's set for db3 and destroys the
 # configure.
 CONFIG_SITE = ""
Signature · 1 line
2.4.0
#2 lore raw
In reply to Maxin B. John
Quoted 1 line · Maxin B. John

Refresh the rpm-db60.patch to support db-6.2.23

NAK NAK NAK

Please do NOT merge this set.

6.2.23 does NOT work with the version of RPM.

They (BDB) changed something with the locking semantics. If you do anything more then a trivial test you will end up with a corrupted database.

The RPM5 community is working on a newer version of RPM5, that will likely adapt to the new semantics. I've not yet seen it released. When it does, -and- if it works w/ db 6.2.23, we can consider the upgrade at that time.

--Mark

Quoted 49 lines
---
 meta/recipes-devtools/rpm/rpm/rpm-db60.patch | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
meta/recipes-devtools/rpm/rpm/rpm-db60.patch +6 -6
index b4df8b7..403f3cb 100644
@@ -13,11 +13,11 @@ Index: rpm/configure.ac
  [RPM_CHECK_LIB(
      [Berkeley-DB], [db],
 -    [db-6.1], [db_create], [db.h],
-+    [db-6.0], [db_create], [db.h],
++    [db-6.2], [db_create], [db.h],
      [yes,external], [db6],
      [ DBLIBSRCS="$DBLIBSRCS db3.c"
 -      DBXY=db61
-+      DBXY=db60
++      DBXY=db62
        AM_CONDITIONAL(WITH_DB, [ true ])
        AM_CONDITIONAL(WITH_DB_INTERNAL, [ test ".$RPM_CHECK_LIB_LOCATION" = .internal ])
        if test ".$RPM_CHECK_LIB_LOCATION" = .internal; then
@@ -26,7 +26,7 @@ Index: rpm/configure.ac
  ])
 
 -if test ".$ac_cv_lib_db_6_1_db_create" != .yes -a ".$ac_cv_lib_db_5_3_db_create" != .yes; then
-+if test ".$ac_cv_lib_db_6_0_db_create" != .yes -a ".$ac_cv_lib_db_5_3_db_create" != .yes; then
++if test ".$ac_cv_lib_db_6_2_db_create" != .yes -a ".$ac_cv_lib_db_5_3_db_create" != .yes; then
      CPPFLAGS="${CPPFLAGS_save}"
  fi
 
@@ -36,12 +36,12 @@ Index: rpm/configure.ac
 
 -dnl # Sqlite 3.8.3.1 from db-6.1.19
 -if test ".$ac_cv_lib_db_6_1_db_create" = .yes; then
-+dnl # Sqlite 3.8.3.1 from db-6.0.30
-+if test ".$ac_cv_lib_db_6_0_db_create" = .yes; then
++dnl # Sqlite 3.8.3.1 from db-6.2.23
++if test ".$ac_cv_lib_db_6_2_db_create" = .yes; then
  RPM_CHECK_LIB(
      [Berkeley-DB (+SQLite3)], [dbsql],
 -    [db_sql-6.1], [sqlite3_open], [dbsql.h],
-+    [db_sql-6.0], [sqlite3_open], [dbsql.h],
++    [db_sql-6.2], [sqlite3_open], [dbsql.h],
      [yes,external], [db6/sql],
      [
        AM_CONDITIONAL(WITH_DBSQL, [ true ])
#3 lore raw
Quoted 8 lines · Maxin B. John
Quoted 1 line

Refresh the rpm-db60.patch to support db-6.2.23

NAK NAK NAK

Please do NOT merge this set.

6.2.23 does NOT work with the version of RPM.

Should db be updated to the latest 6.1 release then?

Generally, Mark, do you want to be the maintainer of db recipe? Since it is so tightly coupled with rpm, and is full of nontrivial issues like this, it makes sense that you take care of updating both.

Alex

#4 lore raw
Quoted 10 lines · On 6/3/16 2:33 PM, [email protected] wrote:
Quoted 8 lines · Maxin B. John
Quoted 1 line

Refresh the rpm-db60.patch to support db-6.2.23

NAK NAK NAK

Please do NOT merge this set.

6.2.23 does NOT work with the version of RPM.

Should db be updated to the latest 6.1 release then?

Latest 6.1 release has the same problem unfortunately. So it needs to wait as well.

Quoted 3 lines

Generally, Mark, do you want to be the maintainer of db recipe? Since it is so tightly coupled with rpm, and is full of nontrivial issues like this, it makes sense that you take care of updating both.

I'm fine with moving BDB maintenance to me, and I'll try to keep them in sync moving forward.. (for the most part they are decoupled, it was only recently that things broke like this.)

--Mark

Quoted 2 lines

Alex

#5 lore raw
Quoted 6 lines · Mark Hatle
Quoted 5 lines · On 6/3/16 2:33 PM, [email protected] wrote:
Quoted 5 lines · Maxin B. John
Quoted 1 line

Refresh the rpm-db60.patch to support db-6.2.23

NAK NAK NAK

Quoted 9 lines
Quoted 5 lines
Quoted 3 lines

Please do NOT merge this set.

6.2.23 does NOT work with the version of RPM.

Should db be updated to the latest 6.1 release then?

Latest 6.1 release has the same problem unfortunately. So it needs to wait as well.

They changed locking behaviour in a micro release?!

(more disappointed than surprised at this point)

Ross

#6 lore raw
In reply to Mark Hatle

Hi,

Quoted 6 lines · On 6/3/16 2:33 PM, [email protected] wrote:
Quoted 5 lines
Quoted 5 lines · Maxin B. John
Quoted 1 line

Refresh the rpm-db60.patch to support db-6.2.23

NAK NAK NAK

Quoted 11 lines
Quoted 5 lines
Quoted 3 lines

Please do NOT merge this set.

6.2.23 does NOT work with the version of RPM.

Should db be updated to the latest 6.1 release then?

Latest 6.1 release has the same problem unfortunately. So it needs to wait as well.

Quoted 3 lines

Generally, Mark, do you want to be the maintainer of db recipe? Since it is so tightly coupled with rpm, and is full of nontrivial issues like this, it makes sense that you take care of updating both.

Agree with Alex here. As it is coupled with rpm, it makes more sense to have the same maintainer for both these packages.

Quoted 3 lines

I'm fine with moving BDB maintenance to me, and I'll try to keep them in sync moving forward.. (for the most part they are decoupled, it was only recently that things broke like this.)

Mark, thanks a lot !

Quoted 4 lines

--Mark

Quoted 2 lines

Alex

Best Regards,
Maxin

A message that is not in the archive (sent off-list or not yet received): CACS+7ZT5B6UGjtjr+vwVrPttknKj0kLbE1n8v_+yV66Pqxzhuw@mail.gmail.com

#8 lore raw
Quoted 11 lines · Mark Hatle
Quoted 1 line · Maxin B. John

Refresh the rpm-db60.patch to support db-6.2.23

NAK NAK NAK

Please do NOT merge this set.

6.2.23 does NOT work with the version of RPM.

They (BDB) changed something with the locking semantics. If you do

anything

Quoted 3 lines

more then a trivial test you will end up with a corrupted database.

The RPM5 community is working on a newer version of RPM5, that will

likely adapt

Quoted 1 line

to the new semantics. I've not yet seen it released. When it does,

-and- if it

Quoted 1 line

works w/ db 6.2.23, we can consider the upgrade at that time.

Are they thinking of incorporating RPM4's new database format, or continuing to use db?

I seem to recall hearing both options discussed, but that was a while ago and on the rpm5 mailing list.

Quoted 9 lines

--Mark

Review

Quoted 6 lines
---
 meta/recipes-devtools/rpm/rpm/rpm-db60.patch | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
(quoted diff) +0 -0

b/meta/recipes-devtools/rpm/rpm/rpm-db60.patch

Quoted 8 lines
Quoted 8 lines

index b4df8b7..403f3cb 100644

meta/recipes-devtools/rpm/rpm/rpm-db60.patch +0 -1
@@ -13,11 +13,11 @@ Index: rpm/configure.ac
  [RPM_CHECK_LIB(
      [Berkeley-DB], [db],
 -    [db-6.1], [db_create], [db.h],
-+    [db-6.0], [db_create], [db.h],
Quoted 8 lines

meta/recipes-devtools/rpm/rpm/rpm-db60.patch Index: rpm/configure.ac

Quoted 8 lines
meta/recipes-devtools/rpm/rpm/rpm-db60.patch +2 -1
++    [db-6.2], [db_create], [db.h],
      [yes,external], [db6],
      [ DBLIBSRCS="$DBLIBSRCS db3.c"
 -      DBXY=db61
-+      DBXY=db60
++      DBXY=db62
        AM_CONDITIONAL(WITH_DB, [ true ])
        AM_CONDITIONAL(WITH_DB_INTERNAL, [ test

".$RPM_CHECK_LIB_LOCATION" = .internal ])

Quoted 5 lines

meta/recipes-devtools/rpm/rpm/rpm-db60.patch Index: rpm/configure.ac · line 28

Quoted 5 lines
meta/recipes-devtools/rpm/rpm/rpm-db60.patch +0 -0
        if test ".$RPM_CHECK_LIB_LOCATION" = .internal; then
@@ -26,7 +26,7 @@ Index: rpm/configure.ac
  ])
 
 -if test ".$ac_cv_lib_db_6_1_db_create" != .yes -a

".$ac_cv_lib_db_5_3_db_create" != .yes; then

Quoted 1 line

meta/recipes-devtools/rpm/rpm/rpm-db60.patch Index: rpm/configure.ac · line 29

Quoted 1 line
meta/recipes-devtools/rpm/rpm/rpm-db60.patch +0 -1
-+if test ".$ac_cv_lib_db_6_0_db_create" != .yes -a

".$ac_cv_lib_db_5_3_db_create" != .yes; then

Quoted 1 line

meta/recipes-devtools/rpm/rpm/rpm-db60.patch Index: rpm/configure.ac · line 29

Quoted 1 line
meta/recipes-devtools/rpm/rpm/rpm-db60.patch +1 -0
++if test ".$ac_cv_lib_db_6_2_db_create" != .yes -a

".$ac_cv_lib_db_5_3_db_create" != .yes; then

Quoted 26 lines
Quoted 10 lines
meta/recipes-devtools/rpm/rpm/rpm-db60.patch +0 -2
      CPPFLAGS="${CPPFLAGS_save}"
  fi
 
@@ -36,12 +36,12 @@ Index: rpm/configure.ac
 
 -dnl # Sqlite 3.8.3.1 from db-6.1.19
 -if test ".$ac_cv_lib_db_6_1_db_create" = .yes; then
-+dnl # Sqlite 3.8.3.1 from db-6.0.30
-+if test ".$ac_cv_lib_db_6_0_db_create" = .yes; then

meta/recipes-devtools/rpm/rpm/rpm-db60.patch Index: rpm/configure.ac · line 47

Quoted 10 lines
meta/recipes-devtools/rpm/rpm/rpm-db60.patch +3 -1
++dnl # Sqlite 3.8.3.1 from db-6.2.23
++if test ".$ac_cv_lib_db_6_2_db_create" = .yes; then
  RPM_CHECK_LIB(
      [Berkeley-DB (+SQLite3)], [dbsql],
 -    [db_sql-6.1], [sqlite3_open], [dbsql.h],
-+    [db_sql-6.0], [sqlite3_open], [dbsql.h],
++    [db_sql-6.2], [sqlite3_open], [dbsql.h],
      [yes,external], [db6/sql],
      [
        AM_CONDITIONAL(WITH_DBSQL, [ true ])

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core