diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2024-02-06 10:13:46 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-08 10:59:06 +0000 |
| commit | d426872674ab31a57cc593303a16ca409ecb0c1c (patch) | |
| tree | 016eee73a4b39e59db387827c3087dfb46a317aa /meta | |
| parent | 20b1e729e1b4d39c245b4e12729f239ff4342062 (diff) | |
| download | poky-d426872674ab31a57cc593303a16ca409ecb0c1c.tar.gz | |
lzlib: add a recipe
This is needed for rpm reproducibility, as otherwise libmagic
will call an external lzip executable, which is both
non-threadsafe, and non-deterministic w.r.t sysroot presence.
(From OE-Core rev: 0e4bde86e1aa499274fc85d01d36a74c3401762e)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/conf/distro/include/maintainers.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-extended/lzip/lzlib_1.14.bb | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index f0e27b8380..277e3b1636 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc | |||
| @@ -485,6 +485,7 @@ RECIPE_MAINTAINER:pn-lua = "Alexander Kanavin <alex.kanavin@gmail.com>" | |||
| 485 | RECIPE_MAINTAINER:pn-lz4 = "Denys Dmytriyenko <denis@denix.org>" | 485 | RECIPE_MAINTAINER:pn-lz4 = "Denys Dmytriyenko <denis@denix.org>" |
| 486 | RECIPE_MAINTAINER:pn-lzo = "Denys Dmytriyenko <denis@denix.org>" | 486 | RECIPE_MAINTAINER:pn-lzo = "Denys Dmytriyenko <denis@denix.org>" |
| 487 | RECIPE_MAINTAINER:pn-lzip = "Denys Dmytriyenko <denis@denix.org>" | 487 | RECIPE_MAINTAINER:pn-lzip = "Denys Dmytriyenko <denis@denix.org>" |
| 488 | RECIPE_MAINTAINER:pn-lzlib = "Denys Dmytriyenko <denis@denix.org>" | ||
| 488 | RECIPE_MAINTAINER:pn-m4 = "Robert Yang <liezhi.yang@windriver.com>" | 489 | RECIPE_MAINTAINER:pn-m4 = "Robert Yang <liezhi.yang@windriver.com>" |
| 489 | RECIPE_MAINTAINER:pn-m4-native = "Robert Yang <liezhi.yang@windriver.com>" | 490 | RECIPE_MAINTAINER:pn-m4-native = "Robert Yang <liezhi.yang@windriver.com>" |
| 490 | RECIPE_MAINTAINER:pn-make = "Robert Yang <liezhi.yang@windriver.com>" | 491 | RECIPE_MAINTAINER:pn-make = "Robert Yang <liezhi.yang@windriver.com>" |
diff --git a/meta/recipes-extended/lzip/lzlib_1.14.bb b/meta/recipes-extended/lzip/lzlib_1.14.bb new file mode 100644 index 0000000000..a6010bbf27 --- /dev/null +++ b/meta/recipes-extended/lzip/lzlib_1.14.bb | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | SUMMARY = "Data compression library providing in-memory LZMA compression and decompression functions" | ||
| 2 | HOMEPAGE = "https://www.nongnu.org/lzip/lzlib.html" | ||
| 3 | DESCRIPTION = "Lzlib is a data compression library providing in-memory LZMA compression and decompression functions, including integrity checking of the decompressed data. The compressed data format used by the library is the lzip format. Lzlib is written in C. " | ||
| 4 | LICENSE = "BSD-2-Clause" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=04d943636aa1482e0a97d924d9f4f68f \ | ||
| 6 | " | ||
| 7 | |||
| 8 | SRC_URI = "${SAVANNAH_GNU_MIRROR}/lzip/lzlib/lzlib-${PV}.tar.gz" | ||
| 9 | SRC_URI[sha256sum] = "5acac8714ed4f306020bae660dddce706e5f8a795863679037da9fe6bf4dcf6f" | ||
| 10 | |||
| 11 | B = "${WORKDIR}/build" | ||
| 12 | do_configure[cleandirs] = "${B}" | ||
| 13 | |||
| 14 | CONFIGUREOPTS = "\ | ||
| 15 | '--srcdir=${S}' \ | ||
| 16 | '--prefix=${prefix}' \ | ||
| 17 | '--exec-prefix=${exec_prefix}' \ | ||
| 18 | '--bindir=${bindir}' \ | ||
| 19 | '--datadir=${datadir}' \ | ||
| 20 | '--infodir=${infodir}' \ | ||
| 21 | '--libdir=${libdir}' \ | ||
| 22 | '--sysconfdir=${sysconfdir}' \ | ||
| 23 | '--enable-shared' \ | ||
| 24 | '--disable-static' \ | ||
| 25 | 'CC=${CC}' \ | ||
| 26 | 'CPPFLAGS=${CPPFLAGS}' \ | ||
| 27 | 'CXXFLAGS=${CXXFLAGS}' \ | ||
| 28 | 'LDFLAGS=${LDFLAGS}' \ | ||
| 29 | " | ||
| 30 | |||
| 31 | do_configure () { | ||
| 32 | ${S}/configure ${CONFIGUREOPTS} | ||
| 33 | } | ||
| 34 | |||
| 35 | do_install () { | ||
| 36 | oe_runmake 'DESTDIR=${D}' install | ||
| 37 | } | ||
| 38 | |||
| 39 | BBCLASSEXTEND = "native nativesdk" | ||
