diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-06-17 00:19:42 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-01 15:39:58 +0100 |
commit | 3f7e55baa6b65b39c5698bb58320f85876cebe23 (patch) | |
tree | 398e48b0e167f958d084ce1e8ccf25162ac9f0a8 /meta/recipes-devtools/perl/perl_5.20.0.bb | |
parent | a01d406f6b0d9e08ce6d7408c2928a433fdf1843 (diff) | |
download | poky-3f7e55baa6b65b39c5698bb58320f85876cebe23.tar.gz |
perl: 5.20.0 -> 5.22.0
* Remove:
- perl-5.14.3-fix-CVE-2010-4777.patch: backport
- fix-FF_MORE-crash.patch: backport
- perl-rprovides.inc: it was introduced by 5.8.7, the lines in it are like:
RPROVIDES_perl-module-b-asmdata = "perl-module-${TARGET_SYS}-b-asmdata"
If some packages do RPDEND on something like
perl-module-${TARGET_SYS}-b-asmdatam, we need update the package rather
than keep use RPROVIDES in perl-rprovides.inc, so remove it.
- perl-rprovides_5.20.0.inc: it only has one line:
RPROVIDES_perl-module-module-build, but the perl-module-module-build
is gone in 5.22.0, so remove it.
* Update:
- debian patches from http://ftp.de.debian.org/debian/pool/main/p/perl/perl_5.20.0-1.debian.tar.xz
- Makefile.SH.patch
- Merge 0001-Makefile.SH-fix-do_install-failed.patch into Makefile.SH.patch
- native-nopacklist.patch
- config.sh
* The CGI.pm and Module::Build disappear from core, so no
perl-module-module-build.rpm any more, more info:
http://perltricks.com/article/165/2015/4/10/A-preview-of-Perl-5-22
(From OE-Core rev: 06d43a90acbe63baea62d220659149a3ff2f9198)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/perl/perl_5.20.0.bb')
-rw-r--r-- | meta/recipes-devtools/perl/perl_5.20.0.bb | 388 |
1 files changed, 0 insertions, 388 deletions
diff --git a/meta/recipes-devtools/perl/perl_5.20.0.bb b/meta/recipes-devtools/perl/perl_5.20.0.bb deleted file mode 100644 index d100ff9b82..0000000000 --- a/meta/recipes-devtools/perl/perl_5.20.0.bb +++ /dev/null | |||
@@ -1,388 +0,0 @@ | |||
1 | SUMMARY = "Perl scripting language" | ||
2 | HOMEPAGE = "http://www.perl.org/" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "Artistic-1.0 | GPL-1.0+" | ||
5 | LIC_FILES_CHKSUM = "file://Copying;md5=5b122a36d0f6dc55279a0ebc69f3c60b \ | ||
6 | file://Artistic;md5=2e6fd2475335af892494fe1f7327baf3" | ||
7 | # We need gnugrep (for -I) | ||
8 | DEPENDS = "virtual/db grep-native" | ||
9 | DEPENDS += "gdbm zlib" | ||
10 | PR = "r1" | ||
11 | |||
12 | # 5.10.1 has Module::Build built-in | ||
13 | PROVIDES += "libmodule-build-perl" | ||
14 | |||
15 | SRC_URI = "http://www.cpan.org/src/5.0/perl-${PV}.tar.gz \ | ||
16 | " | ||
17 | |||
18 | # Pick up patches from debian | ||
19 | # http://ftp.de.debian.org/debian/pool/main/p/perl/perl_5.20.0-1.debian.tar.xz | ||
20 | SRC_URI += " \ | ||
21 | file://debian/cpan_definstalldirs.diff \ | ||
22 | file://debian/db_file_ver.diff \ | ||
23 | file://debian/doc_info.diff \ | ||
24 | file://debian/enc2xs_inc.diff \ | ||
25 | file://debian/errno_ver.diff \ | ||
26 | file://debian/libperl_embed_doc.diff \ | ||
27 | file://debian/fixes/respect_umask.diff \ | ||
28 | file://debian/writable_site_dirs.diff \ | ||
29 | file://debian/extutils_set_libperl_path.diff \ | ||
30 | file://debian/no_packlist_perllocal.diff \ | ||
31 | file://debian/prefix_changes.diff \ | ||
32 | file://debian/instmodsh_doc.diff \ | ||
33 | file://debian/ld_run_path.diff \ | ||
34 | file://debian/libnet_config_path.diff \ | ||
35 | file://debian/mod_paths.diff \ | ||
36 | file://debian/module_build_man_extensions.diff \ | ||
37 | file://debian/prune_libs.diff \ | ||
38 | file://debian/fixes/net_smtp_docs.diff \ | ||
39 | file://debian/perlivp.diff \ | ||
40 | file://debian/squelch-locale-warnings.diff \ | ||
41 | file://debian/skip-upstream-git-tests.diff \ | ||
42 | file://debian/skip-kfreebsd-crash.diff \ | ||
43 | file://debian/fixes/document_makemaker_ccflags.diff \ | ||
44 | file://debian/find_html2text.diff \ | ||
45 | file://debian/hurd_test_skip_stack.diff \ | ||
46 | file://debian/perl5db-x-terminal-emulator.patch \ | ||
47 | file://debian/cpan-missing-site-dirs.diff \ | ||
48 | file://debian/fixes/memoize_storable_nstore.diff \ | ||
49 | file://debian/regen-skip.diff \ | ||
50 | " | ||
51 | |||
52 | SRC_URI += " \ | ||
53 | file://Makefile.patch \ | ||
54 | file://Makefile.SH.patch \ | ||
55 | file://installperl.patch \ | ||
56 | file://perl-dynloader.patch \ | ||
57 | file://perl-moreconfig.patch \ | ||
58 | file://letgcc-find-errno.patch \ | ||
59 | file://generate-sh.patch \ | ||
60 | file://native-perlinc.patch \ | ||
61 | file://perl-enable-gdbm.patch \ | ||
62 | file://cross-generate_uudmap.patch \ | ||
63 | file://fix_bad_rpath.patch \ | ||
64 | file://perl-archlib-exp.patch \ | ||
65 | file://dynaloaderhack.patch \ | ||
66 | file://fix-FF_MORE-crash.patch \ | ||
67 | \ | ||
68 | \ | ||
69 | file://config.sh \ | ||
70 | file://config.sh-32 \ | ||
71 | file://config.sh-32-le \ | ||
72 | file://config.sh-32-be \ | ||
73 | file://config.sh-64 \ | ||
74 | file://config.sh-64-le \ | ||
75 | file://config.sh-64-be \ | ||
76 | file://perl-5.14.3-fix-CVE-2010-4777.patch \ | ||
77 | file://0001-Makefile.SH-fix-do_install-failed.patch \ | ||
78 | file://make_ext.pl-fix-regenerate-makefile-failed-while-cc-.patch \ | ||
79 | " | ||
80 | |||
81 | # Fix test case issues | ||
82 | SRC_URI_append_class-target = " \ | ||
83 | file://test/dist-threads-t-join.t-adjust-ps-option.patch \ | ||
84 | file://test/ext-DynaLoader-t-DynaLoader.t-fix-calling-dl_findfil.patch \ | ||
85 | " | ||
86 | |||
87 | SRC_URI[md5sum] = "406ec049ebe3afcc80d9c76ec78ca4f8" | ||
88 | SRC_URI[sha256sum] = "4e8c28ad6ecc89902f9cb2e76f2815bb1a8287ded278e15f7a36ca45f8bbcd02" | ||
89 | |||
90 | inherit perlnative siteinfo | ||
91 | |||
92 | # Where to find the native perl | ||
93 | HOSTPERL = "${STAGING_BINDIR_NATIVE}/perl-native/perl${PV}" | ||
94 | |||
95 | # Where to find .so files - use the -native versions not those from the target build | ||
96 | export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl-native/perl/${PV}/" | ||
97 | |||
98 | # Where to find perl @INC/#include files | ||
99 | # - use the -native versions not those from the target build | ||
100 | export PERL_LIB = "${STAGING_LIBDIR_NATIVE}/perl-native/perl/${PV}/" | ||
101 | export PERL_ARCHLIB = "${STAGING_LIBDIR_NATIVE}/perl-native/perl/${PV}/" | ||
102 | |||
103 | # LDFLAGS for shared libraries | ||
104 | export LDDLFLAGS = "${LDFLAGS} -shared" | ||
105 | |||
106 | LDFLAGS_append = " -fstack-protector" | ||
107 | |||
108 | # We're almost Debian, aren't we? | ||
109 | CFLAGS += "-DDEBIAN" | ||
110 | |||
111 | do_nolargefile() { | ||
112 | sed -i -e "s,\(uselargefiles=\)'define',\1'undef',g" \ | ||
113 | -e "s,\(d_readdir64_r=\)'define',\1'undef',g" \ | ||
114 | -e "s,\(readdir64_r_proto=\)'\w+',\1'0',g" \ | ||
115 | -e "/ccflags_uselargefiles/d" \ | ||
116 | -e "s/-Duselargefiles//" \ | ||
117 | -e "s/-D_FILE_OFFSET_BITS=64//" \ | ||
118 | -e "s/-D_LARGEFILE_SOURCE//" \ | ||
119 | ${S}/Cross/config.sh-${TARGET_ARCH}-${TARGET_OS} | ||
120 | } | ||
121 | |||
122 | do_configure() { | ||
123 | # Make hostperl in build directory be the native perl | ||
124 | ln -sf ${HOSTPERL} hostperl | ||
125 | |||
126 | if [ -n "${CONFIGURESTAMPFILE}" -a -e "${CONFIGURESTAMPFILE}" ]; then | ||
127 | if [ "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a -e Makefile ]; then | ||
128 | ${MAKE} clean | ||
129 | fi | ||
130 | find ${S} -name *.so -delete | ||
131 | fi | ||
132 | if [ -n "${CONFIGURESTAMPFILE}" ]; then | ||
133 | echo ${BB_TASKHASH} > ${CONFIGURESTAMPFILE} | ||
134 | fi | ||
135 | |||
136 | # Do our work in the cross subdir | ||
137 | cd Cross | ||
138 | |||
139 | # Generate configuration | ||
140 | rm -f config.sh-${TARGET_ARCH}-${TARGET_OS} | ||
141 | for i in ${WORKDIR}/config.sh \ | ||
142 | ${WORKDIR}/config.sh-${SITEINFO_BITS} \ | ||
143 | ${WORKDIR}/config.sh-${SITEINFO_BITS}-${SITEINFO_ENDIANNESS}; do | ||
144 | cat $i >> config.sh-${TARGET_ARCH}-${TARGET_OS} | ||
145 | done | ||
146 | |||
147 | # Fixups for uclibc | ||
148 | if [ "${TARGET_OS}" = "linux-uclibc" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then | ||
149 | sed -i -e "s,\(d_crypt_r=\)'define',\1'undef',g" \ | ||
150 | -e "s,\(d_futimes=\)'define',\1'undef',g" \ | ||
151 | -e "s,\(crypt_r_proto=\)'\w+',\1'0',g" \ | ||
152 | -e "s,\(d_getnetbyname_r=\)'define',\1'undef',g" \ | ||
153 | -e "s,\(getnetbyname_r_proto=\)'\w+',\1'0',g" \ | ||
154 | -e "s,\(d_getnetbyaddr_r=\)'define',\1'undef',g" \ | ||
155 | -e "s,\(getnetbyaddr_r_proto=\)'\w+',\1'0',g" \ | ||
156 | -e "s,\(d_getnetent_r=\)'define',\1'undef',g" \ | ||
157 | -e "s,\(getnetent_r_proto=\)'\w+',\1'0',g" \ | ||
158 | -e "s,\(d_sockatmark=\)'define',\1'undef',g" \ | ||
159 | -e "s,\(d_sockatmarkproto=\)'\w+',\1'0',g" \ | ||
160 | -e "s,\(d_eaccess=\)'define',\1'undef',g" \ | ||
161 | -e "s,\(d_stdio_ptr_lval=\)'define',\1'undef',g" \ | ||
162 | -e "s,\(d_stdio_ptr_lval_sets_cnt=\)'define',\1'undef',g" \ | ||
163 | -e "s,\(d_stdiobase=\)'define',\1'undef',g" \ | ||
164 | -e "s,\(d_stdstdio=\)'define',\1'undef',g" \ | ||
165 | -e "s,-fstack-protector,-fno-stack-protector,g" \ | ||
166 | config.sh-${TARGET_ARCH}-${TARGET_OS} | ||
167 | fi | ||
168 | # Fixups for musl | ||
169 | if [ "${TARGET_OS}" = "linux-musl" -o "${TARGET_OS}" = "linux-musleabi" ]; then | ||
170 | sed -i -e "s,\(d_libm_lib_version=\)'define',\1'undef',g" \ | ||
171 | -e "s,\(d_stdio_ptr_lval=\)'define',\1'undef',g" \ | ||
172 | -e "s,\(d_stdio_ptr_lval_sets_cnt=\)'define',\1'undef',g" \ | ||
173 | -e "s,\(d_stdiobase=\)'define',\1'undef',g" \ | ||
174 | -e "s,\(d_stdstdio=\)'define',\1'undef',g" \ | ||
175 | -e "s,\(d_getnetbyname_r=\)'define',\1'undef',g" \ | ||
176 | -e "s,\(getprotobyname_r=\)'define',\1'undef',g" \ | ||
177 | -e "s,\(getpwent_r=\)'define',\1'undef',g" \ | ||
178 | -e "s,\(getservent_r=\)'define',\1'undef',g" \ | ||
179 | -e "s,\(gethostent_r=\)'define',\1'undef',g" \ | ||
180 | -e "s,\(getnetent_r=\)'define',\1'undef',g" \ | ||
181 | -e "s,\(getnetbyaddr_r=\)'define',\1'undef',g" \ | ||
182 | -e "s,\(getprotoent_r=\)'define',\1'undef',g" \ | ||
183 | -e "s,\(getprotobynumber_r=\)'define',\1'undef',g" \ | ||
184 | -e "s,\(getgrent_r=\)'define',\1'undef',g" \ | ||
185 | -e "s,\(i_fcntl=\)'undef',\1'define',g" \ | ||
186 | -e "s,\(h_fcntl=\)'false',\1'true',g" \ | ||
187 | -e "s,-fstack-protector,-fno-stack-protector,g" \ | ||
188 | -e "s,-lnsl,,g" \ | ||
189 | config.sh-${TARGET_ARCH}-${TARGET_OS} | ||
190 | fi | ||
191 | |||
192 | ${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '', 'do_nolargefile', d)} | ||
193 | |||
194 | # Update some paths in the configuration | ||
195 | sed -i -e 's,@ARCH@-thread-multi,,g' \ | ||
196 | -e 's,@ARCH@,${TARGET_ARCH}-${TARGET_OS},g' \ | ||
197 | -e 's,@STAGINGDIR@,${STAGING_DIR_HOST},g' \ | ||
198 | -e "s,@INCLUDEDIR@,${STAGING_INCDIR},g" \ | ||
199 | -e "s,@LIBDIR@,${libdir},g" \ | ||
200 | -e "s,@BASELIBDIR@,${base_libdir},g" \ | ||
201 | -e "s,@EXECPREFIX@,${exec_prefix},g" \ | ||
202 | -e 's,@USRBIN@,${bindir},g' \ | ||
203 | config.sh-${TARGET_ARCH}-${TARGET_OS} | ||
204 | |||
205 | case "${TARGET_ARCH}" in | ||
206 | x86_64 | powerpc | s390) | ||
207 | sed -i -e "s,\(need_va_copy=\)'undef',\1'define',g" \ | ||
208 | config.sh-${TARGET_ARCH}-${TARGET_OS} | ||
209 | ;; | ||
210 | arm) | ||
211 | sed -i -e "s,\(d_u32align=\)'undef',\1'define',g" \ | ||
212 | config.sh-${TARGET_ARCH}-${TARGET_OS} | ||
213 | ;; | ||
214 | esac | ||
215 | # These are strewn all over the source tree | ||
216 | for foo in `grep -I --exclude="*.patch" --exclude="*.diff" --exclude="*.pod" --exclude="README*" -m1 "/usr/include/.*\.h" ${S}/* -r -l` ${S}/utils/h2xs.PL ; do | ||
217 | echo Fixing: $foo | ||
218 | sed -e 's|\([ "^'\''I]\+\)/usr/include/|\1${STAGING_INCDIR}/|g' -i $foo | ||
219 | done | ||
220 | |||
221 | rm -f config | ||
222 | echo "ARCH = ${TARGET_ARCH}" > config | ||
223 | echo "OS = ${TARGET_OS}" >> config | ||
224 | } | ||
225 | |||
226 | do_compile() { | ||
227 | # Fix to avoid recursive substitution of path | ||
228 | sed -i -e "s|\([ \"\']\+\)/usr/include|\1${STAGING_INCDIR}|g" ext/Errno/Errno_pm.PL | ||
229 | sed -i -e "s|\([ \"\']\+\)/usr/include|\1${STAGING_INCDIR}|g" cpan/Compress-Raw-Zlib/config.in | ||
230 | sed -i -e 's|/usr/lib|""|g' cpan/Compress-Raw-Zlib/config.in | ||
231 | sed -i -e 's|(@libpath, ".*"|(@libpath, "${STAGING_LIBDIR}"|g' cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm | ||
232 | |||
233 | cd Cross | ||
234 | oe_runmake perl LD="${CCLD}" | ||
235 | } | ||
236 | |||
237 | do_install() { | ||
238 | #export hostperl="${STAGING_BINDIR_NATIVE}/perl-native/perl${PV}" | ||
239 | oe_runmake install DESTDIR=${D} | ||
240 | # Add perl pointing at current version | ||
241 | ln -sf perl${PV} ${D}${bindir}/perl | ||
242 | |||
243 | ln -sf perl ${D}/${libdir}/perl5 | ||
244 | |||
245 | # Remove unwanted file and empty directories | ||
246 | rm -f ${D}/${libdir}/perl/${PV}/.packlist | ||
247 | rmdir ${D}/${libdir}/perl/site_perl/${PV} | ||
248 | rmdir ${D}/${libdir}/perl/site_perl | ||
249 | |||
250 | # Fix up shared library | ||
251 | mv ${D}/${libdir}/perl/${PV}/CORE/libperl.so ${D}/${libdir}/libperl.so.${PV} | ||
252 | ln -sf libperl.so.${PV} ${D}/${libdir}/libperl.so.5 | ||
253 | ln -sf ../../../libperl.so.${PV} ${D}/${libdir}/perl/${PV}/CORE/libperl.so | ||
254 | |||
255 | # target config, used by cpan.bbclass to extract version information | ||
256 | install config.sh ${D}${libdir}/perl | ||
257 | |||
258 | ln -s Config_heavy.pl ${D}${libdir}/perl/${PV}/Config_heavy-target.pl | ||
259 | } | ||
260 | |||
261 | do_install_append_class-nativesdk () { | ||
262 | create_wrapper ${D}${bindir}/perl \ | ||
263 | PERL5LIB='$PERL5LIB:$OECORE_NATIVE_SYSROOT/${libdir_nativesdk}/perl:$OECORE_NATIVE_SYSROOT/${libdir_nativesdk}/perl/${PV}:$OECORE_NATIVE_SYSROOT/${libdir_nativesdk}/perl/site_perl/${PV}:$OECORE_NATIVE_SYSROOT/${libdir_nativesdk}/perl/vendor_perl/${PV}' | ||
264 | } | ||
265 | |||
266 | PACKAGE_PREPROCESS_FUNCS += "perl_package_preprocess" | ||
267 | |||
268 | perl_package_preprocess () { | ||
269 | # Fix up installed configuration | ||
270 | sed -i -e "s,${D},,g" \ | ||
271 | -e "s,--sysroot=${STAGING_DIR_HOST},,g" \ | ||
272 | -e "s,-isystem${STAGING_INCDIR} ,,g" \ | ||
273 | -e "s,${STAGING_LIBDIR},${libdir},g" \ | ||
274 | -e "s,${STAGING_BINDIR},${bindir},g" \ | ||
275 | -e "s,${STAGING_INCDIR},${includedir},g" \ | ||
276 | -e "s,${STAGING_BINDIR_NATIVE}/perl-native/,${bindir}/,g" \ | ||
277 | -e "s,${STAGING_BINDIR_NATIVE}/,,g" \ | ||
278 | -e "s,${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX},${bindir},g" \ | ||
279 | ${PKGD}${bindir}/h2xs \ | ||
280 | ${PKGD}${bindir}/h2ph \ | ||
281 | ${PKGD}${bindir}/pod2man \ | ||
282 | ${PKGD}${bindir}/pod2text \ | ||
283 | ${PKGD}${bindir}/pod2usage \ | ||
284 | ${PKGD}${bindir}/podchecker \ | ||
285 | ${PKGD}${bindir}/podselect \ | ||
286 | ${PKGD}${libdir}/perl/${PV}/CORE/config.h \ | ||
287 | ${PKGD}${libdir}/perl/${PV}/CORE/perl.h \ | ||
288 | ${PKGD}${libdir}/perl/${PV}/CORE/pp.h \ | ||
289 | ${PKGD}${libdir}/perl/${PV}/Config.pm \ | ||
290 | ${PKGD}${libdir}/perl/${PV}/Config.pod \ | ||
291 | ${PKGD}${libdir}/perl/${PV}/Config_heavy.pl \ | ||
292 | ${PKGD}${libdir}/perl/${PV}/ExtUtils/Liblist/Kid.pm \ | ||
293 | ${PKGD}${libdir}/perl/${PV}/FileCache.pm \ | ||
294 | ${PKGD}${libdir}/perl/${PV}/pod/*.pod \ | ||
295 | ${PKGD}${libdir}/perl/config.sh | ||
296 | } | ||
297 | |||
298 | PACKAGES = "perl-dbg perl perl-misc perl-dev perl-pod perl-doc perl-lib \ | ||
299 | perl-module-cpan perl-module-cpanplus perl-module-unicore" | ||
300 | FILES_${PN} = "${bindir}/perl ${bindir}/perl${PV} \ | ||
301 | ${libdir}/perl/${PV}/Config.pm \ | ||
302 | ${libdir}/perl/${PV}/strict.pm \ | ||
303 | ${libdir}/perl/${PV}/warnings.pm \ | ||
304 | ${libdir}/perl/${PV}/warnings \ | ||
305 | ${libdir}/perl/${PV}/vars.pm \ | ||
306 | " | ||
307 | FILES_${PN}_append_class-nativesdk = " ${bindir}/perl.real" | ||
308 | RPROVIDES_${PN} += "perl-module-strict perl-module-vars perl-module-config perl-module-warnings \ | ||
309 | perl-module-warnings-register" | ||
310 | FILES_${PN}-dev = "${libdir}/perl/${PV}/CORE" | ||
311 | FILES_${PN}-lib = "${libdir}/libperl.so* \ | ||
312 | ${libdir}/perl5 \ | ||
313 | ${libdir}/perl/config.sh \ | ||
314 | ${libdir}/perl/${PV}/Config_heavy.pl \ | ||
315 | ${libdir}/perl/${PV}/Config_heavy-target.pl" | ||
316 | FILES_${PN}-pod = "${libdir}/perl/${PV}/pod \ | ||
317 | ${libdir}/perl/${PV}/*.pod \ | ||
318 | ${libdir}/perl/${PV}/*/*.pod \ | ||
319 | ${libdir}/perl/${PV}/*/*/*.pod " | ||
320 | FILES_perl-misc = "${bindir}/*" | ||
321 | FILES_${PN}-dbg += "${libdir}/perl/${PV}/auto/*/.debug \ | ||
322 | ${libdir}/perl/${PV}/auto/*/*/.debug \ | ||
323 | ${libdir}/perl/${PV}/auto/*/*/*/.debug \ | ||
324 | ${libdir}/perl/${PV}/CORE/.debug \ | ||
325 | ${libdir}/perl/${PV}/*/.debug \ | ||
326 | ${libdir}/perl/${PV}/*/*/.debug \ | ||
327 | ${libdir}/perl/${PV}/*/*/*/.debug " | ||
328 | FILES_${PN}-doc = "${libdir}/perl/${PV}/*/*.txt \ | ||
329 | ${libdir}/perl/${PV}/*/*/*.txt \ | ||
330 | ${libdir}/perl/${PV}/auto/XS/Typemap \ | ||
331 | ${libdir}/perl/${PV}/B/assemble \ | ||
332 | ${libdir}/perl/${PV}/B/cc_harness \ | ||
333 | ${libdir}/perl/${PV}/B/disassemble \ | ||
334 | ${libdir}/perl/${PV}/B/makeliblinks \ | ||
335 | ${libdir}/perl/${PV}/CGI/eg \ | ||
336 | ${libdir}/perl/${PV}/CPAN/PAUSE2003.pub \ | ||
337 | ${libdir}/perl/${PV}/CPAN/SIGNATURE \ | ||
338 | ${libdir}/perl/${PV}/CPANPLUS/Shell/Default/Plugins/HOWTO.pod \ | ||
339 | ${libdir}/perl/${PV}/Encode/encode.h \ | ||
340 | ${libdir}/perl/${PV}/ExtUtils/MANIFEST.SKIP \ | ||
341 | ${libdir}/perl/${PV}/ExtUtils/NOTES \ | ||
342 | ${libdir}/perl/${PV}/ExtUtils/PATCHING \ | ||
343 | ${libdir}/perl/${PV}/ExtUtils/typemap \ | ||
344 | ${libdir}/perl/${PV}/ExtUtils/xsubpp \ | ||
345 | ${libdir}/perl/${PV}/ExtUtils/Changes_EU-Install \ | ||
346 | ${libdir}/perl/${PV}/Net/*.eg \ | ||
347 | ${libdir}/perl/${PV}/unicore/mktables \ | ||
348 | ${libdir}/perl/${PV}/unicore/mktables.lst \ | ||
349 | ${libdir}/perl/${PV}/unicore/version " | ||
350 | |||
351 | FILES_perl-module-cpan += "${libdir}/perl/${PV}/CPAN \ | ||
352 | ${libdir}/perl/${PV}/CPAN.pm" | ||
353 | FILES_perl-module-cpanplus += "${libdir}/perl/${PV}/CPANPLUS \ | ||
354 | ${libdir}/perl/${PV}/CPANPLUS.pm" | ||
355 | FILES_perl-module-unicore += "${libdir}/perl/${PV}/unicore" | ||
356 | |||
357 | # Create a perl-modules package recommending all the other perl | ||
358 | # packages (actually the non modules packages and not created too) | ||
359 | ALLOW_EMPTY_perl-modules = "1" | ||
360 | PACKAGES_append = " perl-modules " | ||
361 | |||
362 | python populate_packages_prepend () { | ||
363 | libdir = d.expand('${libdir}/perl/${PV}') | ||
364 | do_split_packages(d, libdir, 'auto/([^.]*)/[^/]*\.(so|ld|ix|al)', 'perl-module-%s', 'perl module %s', recursive=True, match_path=True, prepend=False) | ||
365 | do_split_packages(d, libdir, 'Module/([^\/]*)\.pm', 'perl-module-%s', 'perl module %s', recursive=True, allow_dirs=False, match_path=True, prepend=False) | ||
366 | do_split_packages(d, libdir, 'Module/([^\/]*)/.*', 'perl-module-%s', 'perl module %s', recursive=True, allow_dirs=False, match_path=True, prepend=False) | ||
367 | do_split_packages(d, libdir, '(^(?!(CPAN\/|CPANPLUS\/|Module\/|unicore\/|auto\/)[^\/]).*)\.(pm|pl|e2x)', 'perl-module-%s', 'perl module %s', recursive=True, allow_dirs=False, match_path=True, prepend=False) | ||
368 | |||
369 | # perl-modules should recommend every perl module, and only the | ||
370 | # modules. Don't attempt to use the result of do_split_packages() as some | ||
371 | # modules are manually split (eg. perl-module-unicore). | ||
372 | packages = filter(lambda p: 'perl-module-' in p, d.getVar('PACKAGES', True).split()) | ||
373 | d.setVar("RRECOMMENDS_${PN}-modules", ' '.join(packages)) | ||
374 | } | ||
375 | |||
376 | PACKAGES_DYNAMIC += "^perl-module-.*" | ||
377 | PACKAGES_DYNAMIC_class-nativesdk += "^nativesdk-perl-module-.*" | ||
378 | |||
379 | RPROVIDES_perl-lib = "perl-lib" | ||
380 | |||
381 | require perl-rdepends_${PV}.inc | ||
382 | require perl-rprovides.inc | ||
383 | require perl-rprovides_${PV}.inc | ||
384 | require perl-ptest.inc | ||
385 | |||
386 | SSTATE_SCAN_FILES += "*.pm *.pod *.h *.pl *.sh" | ||
387 | |||
388 | BBCLASSEXTEND = "nativesdk" | ||