diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2011-03-15 22:01:50 -0500 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2011-03-16 17:46:47 -0700 |
commit | b5afabf41b68afe4c7a81eebd4c4ee49b12dcb34 (patch) | |
tree | 12bfbd1ace1d366aef9cbf5ceed3e8f0e4bf2587 /meta/recipes-extended/libzypp | |
parent | b09e273fab8d8d11541be2ff5421970429ff06cb (diff) | |
download | poky-b5afabf41b68afe4c7a81eebd4c4ee49b12dcb34.tar.gz |
libzypp: Fix release query
Libzypp is looking for the "redhat-release" file and using that version
number to help adjust the system version. This ensures that there is
something on the system that returns a correct value.
This patch is likely not necessary.
(From OE-Core rev: a1bb79372e75269b8d135c0018955c533ba06027)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/libzypp')
-rw-r--r-- | meta/recipes-extended/libzypp/libzypp/config-release.patch | 21 | ||||
-rw-r--r-- | meta/recipes-extended/libzypp/libzypp_git.bb | 3 |
2 files changed, 23 insertions, 1 deletions
diff --git a/meta/recipes-extended/libzypp/libzypp/config-release.patch b/meta/recipes-extended/libzypp/libzypp/config-release.patch new file mode 100644 index 0000000000..9128237755 --- /dev/null +++ b/meta/recipes-extended/libzypp/libzypp/config-release.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | Configure distro version package | ||
2 | |||
3 | We need to configure a package that the system can use to determine the | ||
4 | system distribution version. | ||
5 | |||
6 | Hack: for now set to task-poky-rpm. | ||
7 | |||
8 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
9 | |||
10 | diff -ur git.orig/zypp/ZConfig.cc git/zypp/ZConfig.cc | ||
11 | --- git.orig/zypp/ZConfig.cc 2011-03-14 16:30:07.492786134 -0500 | ||
12 | +++ git/zypp/ZConfig.cc 2011-03-15 11:39:15.396801927 -0500 | ||
13 | @@ -821,7 +821,7 @@ | ||
14 | /////////////////////////////////////////////////////////////////// | ||
15 | |||
16 | std::string ZConfig::distroverpkg() const | ||
17 | - { return "redhat-release"; } | ||
18 | + { return "task-poky-rpm"; } | ||
19 | |||
20 | /////////////////////////////////////////////////////////////////// | ||
21 | |||
diff --git a/meta/recipes-extended/libzypp/libzypp_git.bb b/meta/recipes-extended/libzypp/libzypp_git.bb index 825339d126..621ce45da4 100644 --- a/meta/recipes-extended/libzypp/libzypp_git.bb +++ b/meta/recipes-extended/libzypp/libzypp_git.bb | |||
@@ -13,7 +13,7 @@ RDEPENDS_${PN} = "sat-solver" | |||
13 | 13 | ||
14 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
15 | PV = "0.0-git${SRCPV}" | 15 | PV = "0.0-git${SRCPV}" |
16 | PR = "r7" | 16 | PR = "r8" |
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 \ |
@@ -22,6 +22,7 @@ SRC_URI = "git://gitorious.org/opensuse/libzypp.git;protocol=git \ | |||
22 | file://builtin-arch.patch;apply=no \ | 22 | file://builtin-arch.patch;apply=no \ |
23 | file://no-builtin-arch.patch;apply=no \ | 23 | file://no-builtin-arch.patch;apply=no \ |
24 | file://archconf.patch;apply=no \ | 24 | file://archconf.patch;apply=no \ |
25 | file://config-release.patch \ | ||
25 | " | 26 | " |
26 | 27 | ||
27 | SRC_URI_append_mips = " file://mips-workaround-gcc-tribool-error.patch" | 28 | SRC_URI_append_mips = " file://mips-workaround-gcc-tribool-error.patch" |