diff options
Diffstat (limited to 'meta/recipes-core/zlib/zlib_1.3.1.bb')
-rw-r--r-- | meta/recipes-core/zlib/zlib_1.3.1.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-core/zlib/zlib_1.3.1.bb b/meta/recipes-core/zlib/zlib_1.3.1.bb new file mode 100644 index 0000000000..e6a81ef789 --- /dev/null +++ b/meta/recipes-core/zlib/zlib_1.3.1.bb | |||
@@ -0,0 +1,50 @@ | |||
1 | SUMMARY = "Zlib Compression Library" | ||
2 | DESCRIPTION = "Zlib is a general-purpose, patent-free, lossless data compression \ | ||
3 | library which is used by many different programs." | ||
4 | HOMEPAGE = "http://zlib.net/" | ||
5 | SECTION = "libs" | ||
6 | LICENSE = "Zlib" | ||
7 | LIC_FILES_CHKSUM = "file://zlib.h;beginline=6;endline=23;md5=5377232268e952e9ef63bc555f7aa6c0" | ||
8 | |||
9 | # The source tarball needs to be .gz as only the .gz ends up in fossils/ | ||
10 | SRC_URI = "https://zlib.net/${BP}.tar.gz \ | ||
11 | file://0001-configure-Pass-LDFLAGS-to-link-tests.patch \ | ||
12 | file://run-ptest \ | ||
13 | " | ||
14 | UPSTREAM_CHECK_URI = "http://zlib.net/" | ||
15 | |||
16 | SRC_URI[sha256sum] = "9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23" | ||
17 | |||
18 | # When a new release is made the previous release is moved to fossils/, so add this | ||
19 | # to PREMIRRORS so it is also searched automatically. | ||
20 | PREMIRRORS:append = " https://zlib.net/ https://zlib.net/fossils/" | ||
21 | |||
22 | CFLAGS += "-D_REENTRANT" | ||
23 | |||
24 | RDEPENDS:${PN}-ptest += "make" | ||
25 | |||
26 | inherit ptest | ||
27 | |||
28 | B = "${WORKDIR}/build" | ||
29 | |||
30 | do_configure() { | ||
31 | LDCONFIG=true ${S}/configure --prefix=${prefix} --shared --libdir=${libdir} --uname=GNU | ||
32 | } | ||
33 | do_configure[cleandirs] += "${B}" | ||
34 | |||
35 | do_compile() { | ||
36 | oe_runmake shared | ||
37 | } | ||
38 | |||
39 | do_install() { | ||
40 | oe_runmake DESTDIR=${D} install | ||
41 | } | ||
42 | |||
43 | do_install_ptest() { | ||
44 | install ${B}/examplesh ${D}${PTEST_PATH} | ||
45 | } | ||
46 | |||
47 | BBCLASSEXTEND = "native nativesdk" | ||
48 | |||
49 | CVE_STATUS[CVE-2023-45853] = "not-applicable-config: we don't build minizip" | ||
50 | CVE_STATUS[CVE-2023-6992] = "cpe-incorrect: this CVE is for cloudflare zlib" | ||