diff options
author | Qing He <qing.he@intel.com> | 2010-08-20 11:08:34 +0800 |
---|---|---|
committer | Saul Wold <Saul.Wold@intel.com> | 2010-09-03 18:30:16 -0700 |
commit | 162c652a2ca36e5afc58f21cb86601a057a4e4bc (patch) | |
tree | 13ea22035b2190cea36e798dcc91fe12fcbfc67f | |
parent | 1fb94b77f833e612cbd75e71ac21e434c8cd9c56 (diff) | |
download | poky-162c652a2ca36e5afc58f21cb86601a057a4e4bc.tar.gz |
libzypp: add new package
Signed-off-by: Saul Wold <saul.wold@intel.com>
Signed-off-by: Qing He <qing.he@intel.com>
-rw-r--r-- | meta/recipes-extended/libzypp/libzypp/no-doc.patch | 31 | ||||
-rw-r--r-- | meta/recipes-extended/libzypp/libzypp/rpm5.patch | 30 | ||||
-rw-r--r-- | meta/recipes-extended/libzypp/libzypp_git.bb | 22 |
3 files changed, 83 insertions, 0 deletions
diff --git a/meta/recipes-extended/libzypp/libzypp/no-doc.patch b/meta/recipes-extended/libzypp/libzypp/no-doc.patch new file mode 100644 index 0000000000..3928980e51 --- /dev/null +++ b/meta/recipes-extended/libzypp/libzypp/no-doc.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | not building doc (doxygen based) | ||
2 | |||
3 | 8/19/2010 - created by Qing He <qing.he@intel.com> | ||
4 | |||
5 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
6 | index 0629b1f..41746cc 100644 | ||
7 | --- a/CMakeLists.txt | ||
8 | +++ b/CMakeLists.txt | ||
9 | @@ -110,13 +110,6 @@ FIND_PACKAGE(EXPAT REQUIRED) | ||
10 | FIND_PACKAGE(OpenSSL REQUIRED) | ||
11 | FIND_PACKAGE(Udev REQUIRED) | ||
12 | |||
13 | -FIND_PROGRAM( DOXYGEN doxygen ) | ||
14 | -IF ( NOT DOXYGEN ) | ||
15 | - MESSAGE( FATAL_ERROR "doxygen not found: install doxygen to build the documentation." ) | ||
16 | -ELSE ( NOT DOXYGEN ) | ||
17 | - MESSAGE( STATUS "doxygen found: ${DOXYGEN}" ) | ||
18 | -ENDIF ( NOT DOXYGEN ) | ||
19 | - | ||
20 | MESSAGE(STATUS "soname: ${LIBZYPP_VERSION_INFO}") | ||
21 | MESSAGE(STATUS "version: ${VERSION}") | ||
22 | |||
23 | @@ -154,7 +147,7 @@ ADD_SUBDIRECTORY( devel EXCLUDE_FROM_ALL ) | ||
24 | ADD_SUBDIRECTORY( tools ) | ||
25 | ADD_SUBDIRECTORY( examples ) | ||
26 | ADD_SUBDIRECTORY( po EXCLUDE_FROM_ALL ) | ||
27 | -ADD_SUBDIRECTORY( doc ) | ||
28 | +#ADD_SUBDIRECTORY( doc ) | ||
29 | ADD_SUBDIRECTORY( vendor ) | ||
30 | ADD_SUBDIRECTORY( tests EXCLUDE_FROM_ALL ) | ||
31 | |||
diff --git a/meta/recipes-extended/libzypp/libzypp/rpm5.patch b/meta/recipes-extended/libzypp/libzypp/rpm5.patch new file mode 100644 index 0000000000..b86463dc54 --- /dev/null +++ b/meta/recipes-extended/libzypp/libzypp/rpm5.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | build fix for rpm5 | ||
2 | |||
3 | 8/19/2010 - created by Qing He <qing.he@intel.com> | ||
4 | |||
5 | diff --git a/zypp/target/rpm/BinHeader.cc b/zypp/target/rpm/BinHeader.cc | ||
6 | index e9ad382..86a9c96 100644 | ||
7 | --- a/zypp/target/rpm/BinHeader.cc | ||
8 | +++ b/zypp/target/rpm/BinHeader.cc | ||
9 | @@ -19,7 +19,7 @@ extern "C" | ||
10 | |||
11 | #ifndef _RPM_4_4_COMPAT | ||
12 | #ifdef _RPM_5 | ||
13 | -typedef rpmuint32_t rpm_count_t; | ||
14 | +typedef uint32_t rpm_count_t; | ||
15 | #else | ||
16 | typedef int32_t rpm_count_t; | ||
17 | #endif | ||
18 | diff --git a/zypp/target/rpm/librpmDb.cv3.cc b/zypp/target/rpm/librpmDb.cv3.cc | ||
19 | index bf18e45..5454ea9 100644 | ||
20 | --- a/zypp/target/rpm/librpmDb.cv3.cc | ||
21 | +++ b/zypp/target/rpm/librpmDb.cv3.cc | ||
22 | @@ -14,7 +14,7 @@ extern "C" | ||
23 | { | ||
24 | #ifndef _RPM_4_4_COMPAT | ||
25 | #ifdef _RPM_5 | ||
26 | -typedef rpmuint32_t rpm_count_t; | ||
27 | +typedef uint32_t rpm_count_t; | ||
28 | #else | ||
29 | typedef int32_t rpm_count_t; | ||
30 | #endif | ||
diff --git a/meta/recipes-extended/libzypp/libzypp_git.bb b/meta/recipes-extended/libzypp/libzypp_git.bb new file mode 100644 index 0000000000..61a140050d --- /dev/null +++ b/meta/recipes-extended/libzypp/libzypp_git.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | HOMEPAGE = "http://en.opensue.org/Portal:Libzypp" | ||
2 | DESCRIPTION = "The ZYpp Linux Software management framework" | ||
3 | |||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=11fccc94d26293d78cb4996cb17e5fa7" | ||
6 | |||
7 | inherit cmake | ||
8 | |||
9 | DEPENDS = "rpm boost gettext curl libxml2 zlib sat-solver expat openssl udev" | ||
10 | |||
11 | S = "${WORKDIR}/git" | ||
12 | PV = "0.0-git${SRCPV}" | ||
13 | PR = "r0" | ||
14 | |||
15 | SRCREV = "4494797d5b0369365b1af63921de45b197ead64f" | ||
16 | |||
17 | SRC_URI = "git://gitorious.org/opensuse/libzypp.git;protocol=git \ | ||
18 | file://no-doc.patch \ | ||
19 | file://rpm5.patch" | ||
20 | |||
21 | FILES_${PN} += "${libdir}/zypp ${datadir}/zypp ${datadir}/icons" | ||
22 | FILES_${PN}-dev += "${datadir}/cmake" | ||