diff options
-rw-r--r-- | meta/conf/distro/include/poky-default-revisions.inc | 2 | ||||
-rw-r--r-- | meta/recipes-extended/libzypp/libzypp/rpm5-no-rpmdbinit.patch | 25 | ||||
-rw-r--r-- | meta/recipes-extended/libzypp/libzypp_git.bb | 4 |
3 files changed, 29 insertions, 2 deletions
diff --git a/meta/conf/distro/include/poky-default-revisions.inc b/meta/conf/distro/include/poky-default-revisions.inc index 804667e10d..de3a1e386b 100644 --- a/meta/conf/distro/include/poky-default-revisions.inc +++ b/meta/conf/distro/include/poky-default-revisions.inc | |||
@@ -76,7 +76,7 @@ SRCREV_pn-libxcb-nativesdk ??= "625ed596cae6dd8175aeb6cb6f26784928042f22" | |||
76 | SRCREV_pn-libxext ??= "d1f3bc77a48c8e42771579e3fdf3370b35d3209d" | 76 | SRCREV_pn-libxext ??= "d1f3bc77a48c8e42771579e3fdf3370b35d3209d" |
77 | SRCREV_pn-libxext-nativesdk ??= "d1f3bc77a48c8e42771579e3fdf3370b35d3209d" | 77 | SRCREV_pn-libxext-nativesdk ??= "d1f3bc77a48c8e42771579e3fdf3370b35d3209d" |
78 | SRCREV_pn-libxi ??= "d0326fe8cdbb08d4f52d79fd3fd4e1b2a0951d5e" | 78 | SRCREV_pn-libxi ??= "d0326fe8cdbb08d4f52d79fd3fd4e1b2a0951d5e" |
79 | SRCREV_pn-libzypp = "4494797d5b0369365b1af63921de45b197ead64f" | 79 | SRCREV_pn-libzypp = "15b6c52260bbc52b3d8e585e271b67e10cc7c433" |
80 | SRCREV_pn-linux-firmware ??= "40c0f950be7040614dc45df54e25e54d00e3b73b" | 80 | SRCREV_pn-linux-firmware ??= "40c0f950be7040614dc45df54e25e54d00e3b73b" |
81 | SRCREV_pn-linux-openmoko ??= "5ccaca2adb1c37b5955a4733f68ae08a755e3d78" | 81 | SRCREV_pn-linux-openmoko ??= "5ccaca2adb1c37b5955a4733f68ae08a755e3d78" |
82 | SRCREV_pn-linux-omap ??= "58cf2f1425abfd3a449f9fe985e48be2d2555022" | 82 | SRCREV_pn-linux-omap ??= "58cf2f1425abfd3a449f9fe985e48be2d2555022" |
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 @@ | |||
1 | diff --git a/zypp/target/rpm/librpmDb.cc b/zypp/target/rpm/librpmDb.cc | ||
2 | index 1689fbb..4999cd9 100644 | ||
3 | --- a/zypp/target/rpm/librpmDb.cc | ||
4 | +++ b/zypp/target/rpm/librpmDb.cc | ||
5 | @@ -60,20 +60,6 @@ public: | ||
6 | const char * root = ( _root == "/" ? NULL : _root.asString().c_str() ); | ||
7 | int perms = 0644; | ||
8 | |||
9 | - // check whether to create a new db | ||
10 | - PathInfo master( _root + _dbPath + "Packages" ); | ||
11 | - if ( ! master.isFile() ) | ||
12 | - { | ||
13 | - // init database | ||
14 | - int res = ::rpmdbInit( root, perms ); | ||
15 | - if ( res ) | ||
16 | - { | ||
17 | - ERR << "rpmdbInit error(" << res << "): " << *this << endl; | ||
18 | - _error = shared_ptr<RpmInitException>(new RpmInitException(_root, _dbPath)); | ||
19 | - ZYPP_THROW(*_error); | ||
20 | - } | ||
21 | - } | ||
22 | - | ||
23 | // open database | ||
24 | int res = ::rpmdbOpen( root, &_db, (readonly_r ? O_RDONLY : O_RDWR ), perms ); | ||
25 | 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" | |||
17 | 17 | ||
18 | SRC_URI = "git://gitorious.org/opensuse/libzypp.git;protocol=git \ | 18 | SRC_URI = "git://gitorious.org/opensuse/libzypp.git;protocol=git \ |
19 | file://no-doc.patch \ | 19 | file://no-doc.patch \ |
20 | file://rpm5.patch " | 20 | file://rpm5.patch \ |
21 | file://rpm5-no-rpmdbinit.patch \ | ||
22 | " | ||
21 | 23 | ||
22 | SRC_URI_append_mips = " file://mips-workaround-gcc-tribool-error.patch" | 24 | SRC_URI_append_mips = " file://mips-workaround-gcc-tribool-error.patch" |
23 | 25 | ||