diff options
author | Huang Qiyu <huangqy.fnst@cn.fujitsu.com> | 2017-08-15 17:19:43 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-17 00:21:14 +0100 |
commit | 4776599ad23d65effc152b85966374addea7834c (patch) | |
tree | 8af257839db6b7083df08b1d8b40307531f3c017 /meta/recipes-support/nspr/nspr_4.16.bb | |
parent | 24baa5c9daaef049b191a3ce592a70afb21af6c8 (diff) | |
download | poky-4776599ad23d65effc152b85966374addea7834c.tar.gz |
nspr: 4.14 -> 4.16
Upgrade nspr from 4.14 to 4.16
(From OE-Core rev: bfc148a40fd5b9936e63e9af901b5c8aaf7e8e5b)
Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/nspr/nspr_4.16.bb')
-rw-r--r-- | meta/recipes-support/nspr/nspr_4.16.bb | 190 |
1 files changed, 190 insertions, 0 deletions
diff --git a/meta/recipes-support/nspr/nspr_4.16.bb b/meta/recipes-support/nspr/nspr_4.16.bb new file mode 100644 index 0000000000..a634afbf75 --- /dev/null +++ b/meta/recipes-support/nspr/nspr_4.16.bb | |||
@@ -0,0 +1,190 @@ | |||
1 | SUMMARY = "Netscape Portable Runtime Library" | ||
2 | HOMEPAGE = "http://www.mozilla.org/projects/nspr/" | ||
3 | LICENSE = "GPL-2.0 | MPL-2.0 | LGPL-2.1" | ||
4 | LIC_FILES_CHKSUM = "file://configure.in;beginline=3;endline=6;md5=90c2fdee38e45d6302abcfe475c8b5c5 \ | ||
5 | file://Makefile.in;beginline=4;endline=38;md5=beda1dbb98a515f557d3e58ef06bca99" | ||
6 | SECTION = "libs/network" | ||
7 | |||
8 | SRC_URI = "http://ftp.mozilla.org/pub/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz \ | ||
9 | file://remove-rpath-from-tests.patch \ | ||
10 | file://fix-build-on-x86_64.patch \ | ||
11 | file://remove-srcdir-from-configure-in.patch \ | ||
12 | file://0002-Add-nios2-support.patch \ | ||
13 | file://0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch \ | ||
14 | file://nspr.pc.in \ | ||
15 | " | ||
16 | |||
17 | CACHED_CONFIGUREVARS_append_libc-musl = " CFLAGS='${CFLAGS} -D_PR_POLL_AVAILABLE \ | ||
18 | -D_PR_HAVE_OFF64_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP \ | ||
19 | -D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO \ | ||
20 | -D_PR_INET6_PROBE -DNO_DLOPEN_NULL'" | ||
21 | |||
22 | UPSTREAM_CHECK_URI = "http://ftp.mozilla.org/pub/nspr/releases/" | ||
23 | UPSTREAM_CHECK_REGEX = "v(?P<pver>\d+(\.\d+)+)/" | ||
24 | |||
25 | SRC_URI[md5sum] = "42fd8963a4b394f62d43ba604f03fab7" | ||
26 | SRC_URI[sha256sum] = "9b3102d97665504aeee73363c11a21c062ad67a2522242368b7f019f96a53cd1" | ||
27 | |||
28 | CVE_PRODUCT = "netscape_portable_runtime" | ||
29 | |||
30 | S = "${WORKDIR}/nspr-${PV}/nspr" | ||
31 | |||
32 | RDEPENDS_${PN}-dev += "perl" | ||
33 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
34 | |||
35 | TESTS = " \ | ||
36 | accept \ | ||
37 | acceptread \ | ||
38 | acceptreademu \ | ||
39 | affinity \ | ||
40 | alarm \ | ||
41 | anonfm \ | ||
42 | atomic \ | ||
43 | attach \ | ||
44 | bigfile \ | ||
45 | cleanup \ | ||
46 | cltsrv \ | ||
47 | concur \ | ||
48 | cvar \ | ||
49 | cvar2 \ | ||
50 | dlltest \ | ||
51 | dtoa \ | ||
52 | errcodes \ | ||
53 | exit \ | ||
54 | fdcach \ | ||
55 | fileio \ | ||
56 | foreign \ | ||
57 | formattm \ | ||
58 | fsync \ | ||
59 | gethost \ | ||
60 | getproto \ | ||
61 | i2l \ | ||
62 | initclk \ | ||
63 | inrval \ | ||
64 | instrumt \ | ||
65 | intrio \ | ||
66 | intrupt \ | ||
67 | io_timeout \ | ||
68 | ioconthr \ | ||
69 | join \ | ||
70 | joinkk \ | ||
71 | joinku \ | ||
72 | joinuk \ | ||
73 | joinuu \ | ||
74 | layer \ | ||
75 | lazyinit \ | ||
76 | libfilename \ | ||
77 | lltest \ | ||
78 | lock \ | ||
79 | lockfile \ | ||
80 | logfile \ | ||
81 | logger \ | ||
82 | many_cv \ | ||
83 | multiwait \ | ||
84 | nameshm1 \ | ||
85 | nblayer \ | ||
86 | nonblock \ | ||
87 | ntioto \ | ||
88 | ntoh \ | ||
89 | op_2long \ | ||
90 | op_excl \ | ||
91 | op_filnf \ | ||
92 | op_filok \ | ||
93 | op_nofil \ | ||
94 | parent \ | ||
95 | parsetm \ | ||
96 | peek \ | ||
97 | perf \ | ||
98 | pipeping \ | ||
99 | pipeping2 \ | ||
100 | pipeself \ | ||
101 | poll_nm \ | ||
102 | poll_to \ | ||
103 | pollable \ | ||
104 | prftest \ | ||
105 | primblok \ | ||
106 | provider \ | ||
107 | prpollml \ | ||
108 | ranfile \ | ||
109 | randseed \ | ||
110 | reinit \ | ||
111 | rwlocktest \ | ||
112 | sel_spd \ | ||
113 | selct_er \ | ||
114 | selct_nm \ | ||
115 | selct_to \ | ||
116 | selintr \ | ||
117 | sema \ | ||
118 | semaerr \ | ||
119 | semaping \ | ||
120 | sendzlf \ | ||
121 | server_test \ | ||
122 | servr_kk \ | ||
123 | servr_uk \ | ||
124 | servr_ku \ | ||
125 | servr_uu \ | ||
126 | short_thread \ | ||
127 | sigpipe \ | ||
128 | socket \ | ||
129 | sockopt \ | ||
130 | sockping \ | ||
131 | sprintf \ | ||
132 | stack \ | ||
133 | stdio \ | ||
134 | str2addr \ | ||
135 | strod \ | ||
136 | switch \ | ||
137 | system \ | ||
138 | testbit \ | ||
139 | testfile \ | ||
140 | threads \ | ||
141 | timemac \ | ||
142 | timetest \ | ||
143 | tpd \ | ||
144 | udpsrv \ | ||
145 | vercheck \ | ||
146 | version \ | ||
147 | writev \ | ||
148 | xnotify \ | ||
149 | zerolen" | ||
150 | |||
151 | inherit autotools | ||
152 | |||
153 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" | ||
154 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | ||
155 | |||
156 | do_compile_prepend() { | ||
157 | oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export | ||
158 | } | ||
159 | |||
160 | do_compile_append() { | ||
161 | oe_runmake -C pr/tests | ||
162 | } | ||
163 | |||
164 | do_install_append() { | ||
165 | install -D ${WORKDIR}/nspr.pc.in ${D}${libdir}/pkgconfig/nspr.pc | ||
166 | sed -i \ | ||
167 | -e 's:NSPRVERSION:${PV}:g' \ | ||
168 | -e 's:OEPREFIX:${prefix}:g' \ | ||
169 | -e 's:OELIBDIR:${libdir}:g' \ | ||
170 | -e 's:OEINCDIR:${includedir}:g' \ | ||
171 | -e 's:OEEXECPREFIX:${exec_prefix}:g' \ | ||
172 | ${D}${libdir}/pkgconfig/nspr.pc | ||
173 | |||
174 | mkdir -p ${D}${libdir}/nspr/tests | ||
175 | install -m 0755 ${S}/pr/tests/runtests.pl ${D}${libdir}/nspr/tests | ||
176 | install -m 0755 ${S}/pr/tests/runtests.sh ${D}${libdir}/nspr/tests | ||
177 | cd ${B}/pr/tests | ||
178 | install -m 0755 ${TESTS} ${D}${libdir}/nspr/tests | ||
179 | |||
180 | # delete compile-et.pl and perr.properties from ${bindir} because these are | ||
181 | # only used to generate prerr.c and prerr.h files from prerr.et at compile | ||
182 | # time | ||
183 | rm ${D}${bindir}/compile-et.pl ${D}${bindir}/prerr.properties | ||
184 | } | ||
185 | |||
186 | FILES_${PN} = "${libdir}/lib*.so" | ||
187 | FILES_${PN}-dev = "${bindir}/* ${libdir}/nspr/tests/* ${libdir}/pkgconfig \ | ||
188 | ${includedir}/* ${datadir}/aclocal/* " | ||
189 | |||
190 | BBCLASSEXTEND = "native nativesdk" | ||