diff options
Diffstat (limited to 'meta/recipes-extended/libzypp/libzypp_git.bb')
-rw-r--r-- | meta/recipes-extended/libzypp/libzypp_git.bb | 160 |
1 files changed, 0 insertions, 160 deletions
diff --git a/meta/recipes-extended/libzypp/libzypp_git.bb b/meta/recipes-extended/libzypp/libzypp_git.bb deleted file mode 100644 index 1729c78a20..0000000000 --- a/meta/recipes-extended/libzypp/libzypp_git.bb +++ /dev/null | |||
@@ -1,160 +0,0 @@ | |||
1 | HOMEPAGE = "http://en.opensuse.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 gettext | ||
8 | |||
9 | DEPENDS = "rpm boost curl libxml2 zlib sat-solver expat openssl udev libproxy" | ||
10 | |||
11 | S = "${WORKDIR}/git" | ||
12 | SRCREV = "15b6c52260bbc52b3d8e585e271b67e10cc7c433" | ||
13 | PV = "0.0-git${SRCPV}" | ||
14 | PR = "r23" | ||
15 | |||
16 | SRC_URI = "git://github.com/openSUSE/libzypp.git;protocol=git \ | ||
17 | file://no-doc.patch \ | ||
18 | file://rpm5.patch \ | ||
19 | file://rpm5-no-rpmdbinit.patch \ | ||
20 | file://config-release.patch \ | ||
21 | file://libzypp-oearch.patch \ | ||
22 | file://libzypp-compatargs.patch \ | ||
23 | file://fix_for_compile_wth_gcc-4.6.0.patch \ | ||
24 | file://hardcode-lib-fix.patch \ | ||
25 | file://close.patch \ | ||
26 | file://libzypp-rpm549.patch \ | ||
27 | file://cstdio.patch \ | ||
28 | " | ||
29 | |||
30 | SRC_URI_append_mips = " file://mips-workaround-gcc-tribool-error.patch" | ||
31 | |||
32 | # ARM specific global constructor workaround | ||
33 | SRC_URI_append_arm = " file://arm-workaround-global-constructor.patch" | ||
34 | |||
35 | # rpmdb2solv from sat-solver is run from libzypp | ||
36 | RDEPENDS_${PN} = "sat-solver rpm-libs gzip ${RDEPGNUPG}" | ||
37 | |||
38 | RDEPGNUPG = "gnupg" | ||
39 | RDEPGNUPG_libc-uclibc = "" | ||
40 | |||
41 | PACKAGES =+ "${PN}-pkgmgt" | ||
42 | |||
43 | FILES_${PN} += "${libdir}/zypp ${datadir}/zypp ${datadir}/icons" | ||
44 | FILES_${PN}-dev += "${datadir}/cmake" | ||
45 | |||
46 | FILES_${PN}-pkgmgt = "${bindir}/package-manager \ | ||
47 | ${bindir}/package-manager-su \ | ||
48 | ${datadir}/applications/package-manager.desktop \ | ||
49 | " | ||
50 | |||
51 | EXTRA_OECMAKE += " -DLIB=${@os.path.basename('${libdir}')}" | ||
52 | OECMAKE_CXX_LINK_FLAGS_libc-uclibc += "-pthread" | ||
53 | |||
54 | LDFLAGS += "-lpthread" | ||
55 | |||
56 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
57 | |||
58 | AVOID_CONSTRUCTOR = "" | ||
59 | |||
60 | # Due to an ARM specific compiler issue | ||
61 | AVOID_CONSTRUCTOR_arm = "true" | ||
62 | |||
63 | # Due to a potential conflict with '_mips' being a define | ||
64 | AVOID_CONSTRUCTOR_mips = "true" | ||
65 | |||
66 | do_archgen () { | ||
67 | # We need to dynamically generate our arch file based on the machine | ||
68 | # configuration | ||
69 | echo "/* Automatically generated by the libzypp recipes */" > zypp/oe-arch.h | ||
70 | echo "/* Avoid Constructor: ${AVOID_CONSTRUCTOR} */" >> zypp/oe-arch.h | ||
71 | echo "" >> zypp/oe-arch.h | ||
72 | echo "#ifndef OE_ARCH_H" >> zypp/oe-arch.h | ||
73 | echo "#define OE_ARCH_H 1" >> zypp/oe-arch.h | ||
74 | echo "#define Arch_machine Arch_${MACHINE_ARCH}" | tr - _ >> zypp/oe-arch.h | ||
75 | echo "#endif /* OE_ARCH_H */" >> zypp/oe-arch.h | ||
76 | echo "" >> zypp/oe-arch.h | ||
77 | if [ "${AVOID_CONSTRUCTOR}" != "true" ]; then | ||
78 | echo "#ifdef DEF_BUILTIN" >> zypp/oe-arch.h | ||
79 | echo "/* Specify builtin types */" >> zypp/oe-arch.h | ||
80 | for each_arch in ${PACKAGE_ARCHS} ; do | ||
81 | case "$each_arch" in | ||
82 | all | any | noarch) | ||
83 | continue;; | ||
84 | esac | ||
85 | echo " DEF_BUILTIN( ${each_arch} );" | tr - _ >> zypp/oe-arch.h | ||
86 | done | ||
87 | echo "#endif /* DEF_BUILTIN */" >> zypp/oe-arch.h | ||
88 | echo "" >> zypp/oe-arch.h | ||
89 | fi | ||
90 | echo "#ifdef OE_EXTERN_PROTO" >> zypp/oe-arch.h | ||
91 | echo "/* Specify extern prototypes */" >> zypp/oe-arch.h | ||
92 | for each_arch in ${PACKAGE_ARCHS} ; do | ||
93 | case "$each_arch" in | ||
94 | all | any | noarch) | ||
95 | continue;; | ||
96 | esac | ||
97 | echo " extern const Arch Arch_${each_arch};" | tr - _ >> zypp/oe-arch.h | ||
98 | done | ||
99 | echo "#endif /* OE_EXTERN_PROTO */" >> zypp/oe-arch.h | ||
100 | echo "" >> zypp/oe-arch.h | ||
101 | echo "#ifdef OE_PROTO" >> zypp/oe-arch.h | ||
102 | echo "/* Specify prototypes */" >> zypp/oe-arch.h | ||
103 | for each_arch in ${PACKAGE_ARCHS} ; do | ||
104 | case "$each_arch" in | ||
105 | all | any | noarch) | ||
106 | continue;; | ||
107 | esac | ||
108 | if [ "${AVOID_CONSTRUCTOR}" != "true" ]; then | ||
109 | printf " const Arch Arch_${each_arch} " | tr - _ >> zypp/oe-arch.h | ||
110 | echo "(_${each_arch});" | tr - _ >> zypp/oe-arch.h | ||
111 | else | ||
112 | printf " const Arch Arch_${each_arch} " | tr - _ >> zypp/oe-arch.h | ||
113 | echo "( IdString ( \"${each_arch}\" ) );" | tr - _ >> zypp/oe-arch.h | ||
114 | fi | ||
115 | done | ||
116 | echo "#endif /* OE_PROTO */" >> zypp/oe-arch.h | ||
117 | echo "" >> zypp/oe-arch.h | ||
118 | echo "#ifdef OE_DEF_COMPAT" >> zypp/oe-arch.h | ||
119 | echo "/* Specify compatibility information */" >> zypp/oe-arch.h | ||
120 | INSTALL_PLATFORM_ARCHS="" | ||
121 | for each_arch in ${PACKAGE_ARCHS} ; do | ||
122 | INSTALL_PLATFORM_ARCHS="$each_arch $INSTALL_PLATFORM_ARCHS" | ||
123 | done | ||
124 | |||
125 | COMPAT_WITH="" | ||
126 | set -- ${INSTALL_PLATFORM_ARCHS} | ||
127 | while [ $# -gt 0 ]; do | ||
128 | case "$1" in | ||
129 | all | any | noarch) | ||
130 | shift ; continue;; | ||
131 | esac | ||
132 | if [ "${AVOID_CONSTRUCTOR}" != "true" ]; then | ||
133 | CARCH="_$1" | ||
134 | else | ||
135 | CARCH="IdString(\"$1\")" | ||
136 | fi | ||
137 | shift | ||
138 | COMPAT="" | ||
139 | for each_arch in "$@"; do | ||
140 | if [ -z "${AVOID_CONSTRUCTOR}" ]; then | ||
141 | arch_val="_${each_arch}" | ||
142 | else | ||
143 | arch_val="IdString(\"${each_arch}\")" | ||
144 | fi | ||
145 | if [ -z "$COMPAT" ]; then | ||
146 | COMPAT=${arch_val} | ||
147 | else | ||
148 | COMPAT="${arch_val},$COMPAT" | ||
149 | fi | ||
150 | done | ||
151 | COMPAT_WITH="${CARCH},${COMPAT} $COMPAT_WITH" | ||
152 | done | ||
153 | for each_compat in ${COMPAT_WITH} ; do | ||
154 | echo " defCompatibleWith( ${each_compat} );" | tr - _ >> zypp/oe-arch.h | ||
155 | done | ||
156 | echo "#endif /* DEF_COMPAT */" >> zypp/oe-arch.h | ||
157 | echo "" >> zypp/oe-arch.h | ||
158 | } | ||
159 | |||
160 | addtask archgen before do_configure after do_patch | ||