From 483ee172cf522969a7e5eb7f81ba2be412db9ee4 Mon Sep 17 00:00:00 2001 From: Qing He Date: Tue, 11 Jan 2011 16:40:04 +0800 Subject: libzypp: upgrade to newer git version this works with rpm 5.4.0 Signed-off-by: Qing He --- .../libzypp/libzypp/rpm5-no-rpmdbinit.patch | 25 ++++++++++++++++++++++ meta/recipes-extended/libzypp/libzypp_git.bb | 4 +++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-extended/libzypp/libzypp/rpm5-no-rpmdbinit.patch (limited to 'meta/recipes-extended/libzypp') diff --git a/meta/recipes-extended/libzypp/libzypp/rpm5-no-rpmdbinit.patch b/meta/recipes-extended/libzypp/libzypp/rpm5-no-rpmdbinit.patch new file mode 100644 index 0000000000..f15bb68d51 --- /dev/null +++ b/meta/recipes-extended/libzypp/libzypp/rpm5-no-rpmdbinit.patch @@ -0,0 +1,25 @@ +diff --git a/zypp/target/rpm/librpmDb.cc b/zypp/target/rpm/librpmDb.cc +index 1689fbb..4999cd9 100644 +--- a/zypp/target/rpm/librpmDb.cc ++++ b/zypp/target/rpm/librpmDb.cc +@@ -60,20 +60,6 @@ public: + const char * root = ( _root == "/" ? NULL : _root.asString().c_str() ); + int perms = 0644; + +- // check whether to create a new db +- PathInfo master( _root + _dbPath + "Packages" ); +- if ( ! master.isFile() ) +- { +- // init database +- int res = ::rpmdbInit( root, perms ); +- if ( res ) +- { +- ERR << "rpmdbInit error(" << res << "): " << *this << endl; +- _error = shared_ptr(new RpmInitException(_root, _dbPath)); +- ZYPP_THROW(*_error); +- } +- } +- + // open database + int res = ::rpmdbOpen( root, &_db, (readonly_r ? O_RDONLY : O_RDWR ), perms ); + if ( res || !_db ) diff --git a/meta/recipes-extended/libzypp/libzypp_git.bb b/meta/recipes-extended/libzypp/libzypp_git.bb index c65ae46b05..b9110eb09e 100644 --- a/meta/recipes-extended/libzypp/libzypp_git.bb +++ b/meta/recipes-extended/libzypp/libzypp_git.bb @@ -17,7 +17,9 @@ PR = "r6" SRC_URI = "git://gitorious.org/opensuse/libzypp.git;protocol=git \ file://no-doc.patch \ - file://rpm5.patch " + file://rpm5.patch \ + file://rpm5-no-rpmdbinit.patch \ + " SRC_URI_append_mips = " file://mips-workaround-gcc-tribool-error.patch" -- cgit v1.2.3-54-g00ecf