diff options
Diffstat (limited to 'meta/recipes-extended/sat-solver/sat-solver/rpm5-solvdb.patch')
-rw-r--r-- | meta/recipes-extended/sat-solver/sat-solver/rpm5-solvdb.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/meta/recipes-extended/sat-solver/sat-solver/rpm5-solvdb.patch b/meta/recipes-extended/sat-solver/sat-solver/rpm5-solvdb.patch deleted file mode 100644 index 8ce1b150c5..0000000000 --- a/meta/recipes-extended/sat-solver/sat-solver/rpm5-solvdb.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | sat-solver rpmdb based solv database construction | ||
2 | |||
3 | The first time the database is created on an RPM5 system it works | ||
4 | correctly. However any subsequent rebuilds cause an empty database to | ||
5 | occur. | ||
6 | |||
7 | The following is from Michael Schroeder <mls@suse.de>: | ||
8 | > rpmdb2solv contains a hack that makes it use the unchanged already | ||
9 | > converted packages. To do this, it needs to get the database id | ||
10 | > for every installed packages by reading the "Name" index. This | ||
11 | > somehow doesn't seem to work with rpm5. | ||
12 | > | ||
13 | > As a workaround you can add a "ref = 0;" line at the top of the | ||
14 | > repo_add_rpmdb() function in ext/repo_rpmdb.c. | ||
15 | |||
16 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
17 | |||
18 | diff -ur git.orig/ext/repo_rpmdb.c git/ext/repo_rpmdb.c | ||
19 | --- git.orig/ext/repo_rpmdb.c 2011-03-16 09:43:50.470008215 -0500 | ||
20 | +++ git/ext/repo_rpmdb.c 2011-03-16 09:47:55.503989694 -0500 | ||
21 | @@ -1344,6 +1344,9 @@ | ||
22 | memset(&dbkey, 0, sizeof(dbkey)); | ||
23 | memset(&dbdata, 0, sizeof(dbdata)); | ||
24 | |||
25 | + /* Workaround for RPM 5 database construction */ | ||
26 | + ref = 0; | ||
27 | + | ||
28 | if (!rootdir) | ||
29 | rootdir = ""; | ||
30 | |||