lzo: Add further info to a patch
PATCH 1/9 lzo: Add further info to a patch
From: Richard Purdie <[email protected]>
Add some further info to the patch based on upsream changes. Given the last release in 2017 and glaring issues on at least armv5, it does raise the question on whether we should drop this. There are probably better compression tools now.
--- .../lzo/0001-Use-memcpy-instead-of-reinventing-it.patch | 7 +++++++ 1 file changed, 7 insertions(+)
meta/recipes-support/lzo/lzo/0001-Use-memcpy-instead-of-reinventing-it.patch +7 -0
@@ -10,6 +10,13 @@ Change suggested by Julian Taylor. Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757037 +RP: Patch is still in debian as of 20220524 in a revised form: +https://sources.debian.org/patches/lzo2/2.10-2/ +https://sources.debian.org/patches/lzo2/2.10-2/0001-Conditionally-replace-reinvention-of-memcpy-with-cal.patch/ + +We likely need this in OE to prevent against unaligned accesses +on systems such as armv5. + Upstream-Status: Pending Signed-off-by: Saul Wold <[email protected]> ---
Signature · 1 line
2.25.1
PATCH 2/9 btrfs-tools: add a PACKAGECONFIG for lzo
LZO is a fairly obsolete compression format these days, so add an option to enable/disable LZO to btrfs-progs and disable it by default.
--- .../btrfs-tools/btrfs-tools/lzo-option.patch | 126 ++++++++++++++++++ .../btrfs-tools/btrfs-tools_5.16.2.bb | 4 +- 2 files changed, 129 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-devtools/btrfs-tools/btrfs-tools/lzo-option.patch
meta/recipes-devtools/btrfs-tools/btrfs-tools/lzo-option.patch new file +126 -0
@@ -0,0 +1,126 @@ +Upstream-Status: Submitted [https://github.com/kdave/btrfs-progs/pull/474] +Signed-off-by: Ross Burton <[email protected]> + +From 4f4eafe8ebcc86f84f6c85a5c5814c430d8f190c Mon Sep 17 00:00:00 2001 +From: Ross Burton <[email protected]> +Date: Tue, 24 May 2022 13:44:29 +0100 +Subject: [PATCH] btrfs-progs: add option to disable LZO support + +LZO as a compression format is pretty archaic these days, there are +better algorithsm in all metrics for compression and decompression, and +lzo hasn't had a new release since 2017. + +Add an option to disable LZO (defaulting to enabled), and respect it in +cmds/restore.c. + +Signed-off-by: Ross Burton <[email protected]> +--- + Makefile | 2 +- + Makefile.inc.in | 1 + + cmds/restore.c | 7 +++++++ + configure.ac | 30 ++++++++++++++++++++---------- + 4 files changed, 29 insertions(+), 11 deletions(-) + +diff --git a/Makefile b/Makefile +index af4908f9..0e8e05f3 100644 +--- a/Makefile ++++ b/Makefile +@@ -335,7 +335,7 @@ endif + btrfs_convert_cflags = -DBTRFSCONVERT_EXT2=$(BTRFSCONVERT_EXT2) + btrfs_convert_cflags += -DBTRFSCONVERT_REISERFS=$(BTRFSCONVERT_REISERFS) + btrfs_fragments_libs = -lgd -lpng -ljpeg -lfreetype +-cmds_restore_cflags = -DBTRFSRESTORE_ZSTD=$(BTRFSRESTORE_ZSTD) ++cmds_restore_cflags = -DBTRFSRESTORE_LZO=$(BTRFSRESTORE_LZO) -DBTRFSRESTORE_ZSTD=$(BTRFSRESTORE_ZSTD) + + ifeq ($(CRYPTOPROVIDER_BUILTIN),1) + CRYPTO_OBJECTS = crypto/sha224-256.o crypto/blake2b-ref.o +diff --git a/Makefile.inc.in b/Makefile.inc.in +index c995aef9..385b7ae1 100644 +--- a/Makefile.inc.in ++++ b/Makefile.inc.in +@@ -16,6 +16,7 @@ BUILD_PROGRAMS = @BUILD_PROGRAMS@ + BUILD_SHARED_LIBRARIES = @BUILD_SHARED_LIBRARIES@ + BUILD_STATIC_LIBRARIES = @BUILD_STATIC_LIBRARIES@ + BTRFSCONVERT_EXT2 = @BTRFSCONVERT_EXT2@ ++BTRFSRESTORE_LZO = @BTRFSRESTORE_LZO@ + BTRFSCONVERT_REISERFS = @BTRFSCONVERT_REISERFS@ + BTRFSRESTORE_ZSTD = @BTRFSRESTORE_ZSTD@ + PYTHON_BINDINGS = @PYTHON_BINDINGS@ +diff --git a/cmds/restore.c b/cmds/restore.c +index 5923d571..4dd79fce 100644 +--- a/cmds/restore.c ++++ b/cmds/restore.c +@@ -25,8 +25,10 @@ + #include <fcntl.h> + #include <sys/stat.h> + #include <sys/types.h> ++#if BTRFSRESTORE_LZO + #include <lzo/lzoconf.h> + #include <lzo/lzo1x.h> ++#endif + #include <zlib.h> + #if BTRFSRESTORE_ZSTD + #include <zstd.h> +@@ -98,6 +100,10 @@ static inline size_t read_compress_length(unsigned char *buf) + static int decompress_lzo(struct btrfs_root *root, unsigned char *inbuf, + char *outbuf, u64 compress_len, u64 *decompress_len) + { ++#if !BTRFSRESTORE_LZO ++ error("btrfs not compiled with lzo support"); ++ return -1; ++#else + size_t new_len; + size_t in_len; + size_t out_len = 0; +@@ -156,6 +162,7 @@ static int decompress_lzo(struct btrfs_root *root, unsigned char *inbuf, + *decompress_len = out_len; + + return 0; ++#endif + } + + static int decompress_zstd(const char *inbuf, char *outbuf, u64 compress_len, +diff --git a/configure.ac b/configure.ac +index d907636b..c1ad2c22 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -372,16 +372,26 @@ if ${PKG_CONFIG} udev --atleast-version 190; then + fi + AC_SUBST(UDEVDIR) + +-dnl lzo library does not provide pkg-config, let use classic way +-AC_CHECK_LIB([lzo2], [lzo_version], [ +- LZO2_LIBS="-llzo2" +- LZO2_CFLAGS="" +- LZO2_LIBS_STATIC="-llzo2"],[ +- AC_MSG_ERROR([cannot find lzo2 library]) +-]) +-AC_SUBST([LZO2_LIBS]) +-AC_SUBST([LZO2_LIBS_STATIC]) +-AC_SUBST([LZO2_CFLAGS]) ++AC_ARG_ENABLE([lzo], ++ AS_HELP_STRING([--disable-lzo], [build without lzo support]), ++ [], [enable_lzo=yes] ++) ++ ++if test "x$enable_lzo" = xyes; then ++ dnl lzo library does not provide pkg-config, let use classic way ++ AC_CHECK_LIB([lzo2], [lzo_version], [ ++ LZO2_LIBS="-llzo2" ++ LZO2_CFLAGS="" ++ LZO2_LIBS_STATIC="-llzo2"],[ ++ AC_MSG_ERROR([cannot find lzo2 library]) ++ ]) ++ AC_SUBST([LZO2_LIBS]) ++ AC_SUBST([LZO2_LIBS_STATIC]) ++ AC_SUBST([LZO2_CFLAGS]) ++fi ++ ++AS_IF([test "x$enable_lzo" = xyes], [BTRFSRESTORE_LZO=1], [BTRFSRESTORE_LZO=0]) ++AC_SUBST(BTRFSRESTORE_LZO) + + dnl call PKG_INSTALLDIR from pkg.m4 to set pkgconfigdir + m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], [AC_MSG_ERROR([please install pkgconf])]) +-- +2.25.1 +
meta/recipes-devtools/btrfs-tools/btrfs-tools_5.16.2.bb +3 -1
@@ -13,10 +13,11 @@ LIC_FILES_CHKSUM = " \ file://libbtrfsutil/COPYING;md5=4fbd65380cdd255951079008b364516c \ " SECTION = "base" -DEPENDS = "lzo util-linux zlib" +DEPENDS = "util-linux zlib" SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git;branch=master \ file://0001-Add-a-possibility-to-specify-where-python-modules-ar.patch \ + file://lzo-option.patch \ " SRCREV = "31458c9c81935abbed010221261897273a98d2c1" S = "${WORKDIR}/git"
@@ -32,6 +33,7 @@ PACKAGECONFIG[programs] = "--enable-programs,--disable-programs" PACKAGECONFIG[convert] = "--enable-convert --with-convert=ext2,--disable-convert --without-convert,e2fsprogs" PACKAGECONFIG[zoned] = "--enable-zoned,--disable-zoned" PACKAGECONFIG[python] = "--enable-python,--disable-python,python3-setuptools-native" +PACKAGECONFIG[lzo] = "--enable-lzo,--disable-lzo,lzo" PACKAGECONFIG[zstd] = "--enable-zstd,--disable-zstd,zstd" PACKAGECONFIG[udev] = "--enable-libudev,--disable-libudev,udev"
Signature · 1 line
2.25.1
PATCH 3/9 mtd-utils: disable LZO by default
In reply to Ross BurtonLZO is a fairly obsolete compression format these days, so disable it by default.
--- meta/recipes-devtools/mtd/mtd-utils_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/mtd/mtd-utils_git.bb +1 -1
@@ -23,7 +23,7 @@ S = "${WORKDIR}/git" # xattr support creates an additional compile-time dependency on acl because # the sys/acl.h header is needed. libacl is not needed and thus enabling xattr # regardless whether acl is enabled or disabled in the distro should be okay. -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)} lzo jffs ubifs" +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)} jffs ubifs" PACKAGECONFIG[lzo] = "--with-lzo,--without-lzo,lzo" PACKAGECONFIG[xattr] = "--with-xattr,--without-xattr,acl" PACKAGECONFIG[crypto] = "--with-crypto,--without-crypto,openssl"
Signature · 1 line
2.25.1
Re: [OE-core] [PATCH 3/9] mtd-utils: disable LZO by default
Quoted 13 lines · Ross Burton
LZO is a fairly obsolete compression format these days, so disable it by default.
Signed-off-by Ross Burton <[email protected]>--- meta/recipes-devtools/mtd/mtd-utils_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-devtools/mtd/mtd-utils_git.bb +0
-0
meta/recipes-devtools/mtd/mtd-utils_git.bb S = "${WORKDIR}/git" · line 29
Quoted 8 lines
meta/recipes-devtools/mtd/mtd-utils_git.bb +1
-1@@ -23,7 +23,7 @@ S = "${WORKDIR}/git" # xattr support creates an additional compile-time dependency on acl because # the sys/acl.h header is needed. libacl is not needed and thus enabling xattr # regardless whether acl is enabled or disabled in the distro should be okay. -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)} lzo jffs ubifs" +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)} jffs ubifs" PACKAGECONFIG[lzo] = "--with-lzo,--without-lzo,lzo" PACKAGECONFIG[xattr] = "--with-xattr,--without-xattr,acl" PACKAGECONFIG[crypto] = "--with-crypto,--without-crypto,openssl"
This and kernel compression are the two pieces that worry me a little. LZO is still probably one of the best speed/size compromises and was the reason it was added to jffs2. I'm not sure there are many devices that still use flash directly via jffs2 but this probably still does have a use there. Obviously it would still be in meta-oe but I'm worried the "off by default" will catch out a few old BSPs and be a pain to enable. At lot of this history was paged out in long term storage!
Cheers,
Richard
Re: [OE-core] [PATCH 3/9] mtd-utils: disable LZO by default
Quoted 8 lines
This and kernel compression are the two pieces that worry me a little. LZO is still probably one of the best speed/size compromises and was the reason it was added to jffs2. I'm not sure there are many devices that still use flash directly via jffs2 but this probably still does have a use there. Obviously it would still be in meta-oe but I'm worried the "off by default" will catch out a few old BSPs and be a pain to enable. At lot of this history was paged out in long term storage!
Enabling should just be a matter of pulling in meta-oe and flipping the packageconfigs, so I don’t see this as a huge problem.
Looking in the time machine that is meta-handheld, I see the zaurus machines turn on LZO in the JFFS2 kernel module, but they also build UBIFS images which explicitly use zlib instead of lzo. UBIFS also support Zstd now, so that’s probably a better option all around: it compresses almost as well as zlib but almost as fast as lzo[1].
Ross
[1] from btrfs benchmarks at https://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git/commit/?h=next&id=5c1aab1dd5445ed8bdcdbb575abc1b0d7ee5b2e7
Re: [OE-core] [PATCH 3/9] mtd-utils: disable LZO by default
Quoted 13 lines · Ross Burton
Quoted 4 lines
This and kernel compression are the two pieces that worry me a little.
LZO is still probably one of the best speed/size compromises and wasQuoted 8 lines
the reason it was added to jffs2. I'm not sure there are many devices
that still use flash directly via jffs2 but this probably still does
have a use there. Obviously it would still be in meta-oe but I'm worried the "off by default" will catch out a few old BSPs and be a pain to enable. At lot of this history was paged out in long term storage!
Quoted 2 lines
Enabling should just be a matter of pulling in meta-oe and flipping the packageconfigs, so I don’t see this as a huge problem.
My worry is that it changes the task checksums for the native tools and means the BSP can never be YP Compat.
Quoted 5 lines
Looking in the time machine that is meta-handheld, I see the zaurus machines turn on LZO in the JFFS2 kernel module, but they also build UBIFS images which explicitly use zlib instead of lzo. UBIFS also support Zstd now, so that’s probably a better option all around: it compresses almost as well as zlib but almost as fast as lzo[1].
If the zaurus moved to ubifs, there is probably less of an issue and just the kernel boot time remains but I'd hope zstd is being used there too now (or will be).
Cheers,
Richard
PATCH 4/9 squashfs-tools: disable LZO by default
In reply to Ross BurtonLZO is a fairly obsolete compression format these days, so disable it by default.
--- meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb +1 -1
@@ -18,7 +18,7 @@ S = "${WORKDIR}/git" EXTRA_OEMAKE = "${PACKAGECONFIG_CONFARGS}" -PACKAGECONFIG ??= "gzip xz lzo lz4 lzma xattr zstd reproducible" +PACKAGECONFIG ??= "gzip xz lz4 lzma xattr zstd reproducible" PACKAGECONFIG[gzip] = "GZIP_SUPPORT=1,GZIP_SUPPORT=0,zlib" PACKAGECONFIG[xz] = "XZ_SUPPORT=1,XZ_SUPPORT=0,xz" PACKAGECONFIG[lzo] = "LZO_SUPPORT=1,LZO_SUPPORT=0,lzo"
Signature · 1 line
2.25.1
PATCH 5/9 libarchive: disable LZO by default
In reply to Ross BurtonLZO is a fairly obsolete compression format these days, so disable it by default.
--- meta/recipes-extended/libarchive/libarchive_3.6.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/libarchive/libarchive_3.6.1.bb +1 -1
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d499814247adaee08d88080841cb5665" DEPENDS = "e2fsprogs-native" -PACKAGECONFIG ?= "zlib bz2 xz lzo zstd" +PACKAGECONFIG ?= "zlib bz2 xz zstd" PACKAGECONFIG:append:class-target = "\ ${@bb.utils.filter('DISTRO_FEATURES', 'acl xattr', d)} \
Signature · 1 line
2.25.1
PATCH 6/9 lzop: remove recipe from oe-core
In reply to Ross BurtonThere are no users of lzop in oe-core, and there hasn't been a release of lzop since 2017.
--- meta/conf/distro/include/maintainers.inc | 1 - meta/recipes-support/lzop/lzop/acinclude.m4 | 390 -------------------- meta/recipes-support/lzop/lzop_1.04.bb | 27 -- 3 files changed, 418 deletions(-) delete mode 100644 meta/recipes-support/lzop/lzop/acinclude.m4 delete mode 100644 meta/recipes-support/lzop/lzop_1.04.bb
meta/conf/distro/include/maintainers.inc +0 -1
@@ -472,7 +472,6 @@ RECIPE_MAINTAINER:pn-lua = "Alexander Kanavin <[email protected]>" RECIPE_MAINTAINER:pn-lz4 = "Denys Dmytriyenko <[email protected]>" RECIPE_MAINTAINER:pn-lzo = "Denys Dmytriyenko <[email protected]>" RECIPE_MAINTAINER:pn-lzip = "Denys Dmytriyenko <[email protected]>" -RECIPE_MAINTAINER:pn-lzop = "Denys Dmytriyenko <[email protected]>" RECIPE_MAINTAINER:pn-m4 = "Robert Yang <[email protected]>" RECIPE_MAINTAINER:pn-m4-native = "Robert Yang <[email protected]>" RECIPE_MAINTAINER:pn-make = "Robert Yang <[email protected]>"
meta/recipes-support/lzop/lzop/acinclude.m4 deleted +0 -390
390 lines not on this page · raw message
meta/recipes-support/lzop/lzop_1.04.bb deleted +0 -27
@@ -1,27 +0,0 @@ -SUMMARY = "Real-time file compressor" -DESCRIPTION = "lzop is a compression utility which is designed to be a companion to gzip. \n\ -It is based on the LZO data compression library and its main advantages over \n\ -gzip are much higher compression and decompression speed at the cost of some \n\ -compression ratio. The lzop compression utility was designed with the goals \n\ -of reliability, speed, portability and with reasonable drop-in compatibility \n\ -to gzip." -HOMEPAGE = "http://www.lzop.org/" -DEPENDS += "lzo" - -LICENSE = "GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ - file://src/lzop.c;beginline=5;endline=21;md5=23d767de7754eb24b9e900b025cf7fc8" - -SRC_URI = "http://www.lzop.org/download/${BP}.tar.gz \ - file://acinclude.m4 \ - " -SRC_URI[md5sum] = "271eb10fde77a0a96b9cbf745e719ddf" -SRC_URI[sha256sum] = "7e72b62a8a60aff5200a047eea0773a8fb205caf7acbe1774d95147f305a2f41" - -inherit autotools - -do_configure:prepend () { - install -Dm 0644 ${WORKDIR}/acinclude.m4 ${S}/acinclude.m4 -} - -BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 7/9 oeqa/selftest/imagefeatures: don't exercise lzo compression
In reply to Ross BurtonWe're removing lzo from oe-core, so don't exercise lzo compressed images in oe-selftest.
--- meta/lib/oeqa/selftest/cases/imagefeatures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oeqa/selftest/cases/imagefeatures.py +1 -1
@@ -171,7 +171,7 @@ class ImageFeatures(OESelftestTestCase): Author: Tom Rini <[email protected]> """ - conv = "ext4.bmap.gz.bz2.lzo.xz.u-boot" + conv = "ext4.bmap.gz.bz2.xz.u-boot" features = 'IMAGE_FSTYPES += "%s %s.sha256sum"' % (conv, conv) self.write_config(features)
Signature · 1 line
2.25.1
PATCH 8/9 packagegroup-self-hosted: remove lzo
In reply to Ross Burtonlzo isn't needed to build, so it doesn't need to be in the self-hosted packagegroup.
--- meta/recipes-core/packagegroups/packagegroup-self-hosted.bb | 1 - 1 file changed, 1 deletion(-)
meta/recipes-core/packagegroups/packagegroup-self-hosted.bb +0 -1
@@ -129,7 +129,6 @@ RDEPENDS:packagegroup-self-hosted-extended = "\ libusb1 \ libxml2 \ lsof \ - lzo \ man \ man-pages \ mdadm \
Signature · 1 line
2.25.1
PATCH 9/9 lzo: remove recipe from oe-core
In reply to Ross BurtonLZO is a fairly archaic compression format that hasn't been updated since 2017. It's now unused by anything else in oe-core, so remove the recipes.
--- meta/conf/distro/include/distro_alias.inc | 1 - meta/conf/distro/include/maintainers.inc | 1 - .../distro/include/ptest-packagelists.inc | 1 - ...onfigdir-to-solve-the-undefine-error.patch | 27 ------- ...Use-memcpy-instead-of-reinventing-it.patch | 77 ------------------- meta/recipes-support/lzo/lzo/run-ptest | 33 -------- meta/recipes-support/lzo/lzo_2.10.bb | 35 --------- 7 files changed, 175 deletions(-) delete mode 100644 meta/recipes-support/lzo/lzo/0001-Add-pkgconfigdir-to-solve-the-undefine-error.patch delete mode 100644 meta/recipes-support/lzo/lzo/0001-Use-memcpy-instead-of-reinventing-it.patch delete mode 100644 meta/recipes-support/lzo/lzo/run-ptest delete mode 100644 meta/recipes-support/lzo/lzo_2.10.bb
meta/conf/distro/include/distro_alias.inc +0 -1
@@ -186,7 +186,6 @@ DISTRO_PN_ALIAS:pn-lttng-modules = "OSPDT upstream=http://lttng.org/" DISTRO_PN_ALIAS:pn-lttng-tools = "OSPDT upstream=http://lttng.org/" DISTRO_PN_ALIAS:pn-lttng-ust = "OSPDT upstream=http://lttng.org/" DISTRO_PN_ALIAS:pn-lz4 = "Debian=lz4 Fedora=lz4" -DISTRO_PN_ALIAS:pn-lzo = "Debian=liblzo Ubuntu=liblzo Fedora=lzp" DISTRO_PN_ALIAS:pn-mailx = "Debian=bsd-mailx Ubuntu=bsd-mailx" DISTRO_PN_ALIAS:pn-makedepend = "Mandriva=makedepend Ubuntu=xutils-dev" DISTRO_PN_ALIAS:pn-makedevs = "OE-Core"
meta/conf/distro/include/maintainers.inc +0 -1
@@ -470,7 +470,6 @@ RECIPE_MAINTAINER:pn-lttng-tools = "Richard Purdie <richard.purdie@linuxfoundati RECIPE_MAINTAINER:pn-lttng-ust = "Richard Purdie <[email protected]>" RECIPE_MAINTAINER:pn-lua = "Alexander Kanavin <[email protected]>" RECIPE_MAINTAINER:pn-lz4 = "Denys Dmytriyenko <[email protected]>" -RECIPE_MAINTAINER:pn-lzo = "Denys Dmytriyenko <[email protected]>" RECIPE_MAINTAINER:pn-lzip = "Denys Dmytriyenko <[email protected]>" RECIPE_MAINTAINER:pn-m4 = "Robert Yang <[email protected]>" RECIPE_MAINTAINER:pn-m4-native = "Robert Yang <[email protected]>"
meta/conf/distro/include/ptest-packagelists.inc +0 -1
@@ -42,7 +42,6 @@ PTESTS_FAST = "\ libxml-simple-perl-ptest \ libxml2-ptest \ lua-ptest \ - lzo-ptest \ m4-ptest \ nettle-ptest \ openssl-ptest \
meta/recipes-support/lzo/lzo/0001-Add-pkgconfigdir-to-solve-the-undefine-error.patch deleted +0 -27
@@ -1,27 +0,0 @@ -From e730bfd7c2d3a4b5f3605878599cb9b20d31b1fd Mon Sep 17 00:00:00 2001 -From: Fan Xin <[email protected]> -Date: Fri, 2 Jun 2017 11:52:25 +0900 -Subject: [PATCH] Add pkgconfigdir to solve the undefine error. - -Upstream-Status: Pending - -Signed-off-by: Fan Xin <[email protected]> ---- - Makefile.am | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/Makefile.am b/Makefile.am -index e4d383b..c75023d 100644 ---- a/Makefile.am -+++ b/Makefile.am -@@ -14,6 +14,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir) - LDADD = src/liblzo2.la - lib_LTLIBRARIES = - noinst_PROGRAMS = -+pkgconfigdir = $(libdir)/pkgconfig - pkgconfig_DATA = lzo2.pc - - --- -1.9.1 -
meta/recipes-support/lzo/lzo/0001-Use-memcpy-instead-of-reinventing-it.patch deleted +0 -77
77 lines not on this page · raw message
meta/recipes-support/lzo/lzo/run-ptest deleted +0 -33
@@ -1,33 +0,0 @@ -#!/bin/sh - -./lzotest -mavail -n10 -q /etc/services -if [ $? -eq 0 ]; then - echo 'PASS: lzotest' -else - echo 'FAIL: lzotest' -fi -LZOTEST=./lzotest /bin/sh -e "./check.sh" "/etc" -./align -if [ $? -eq 0 ]; then - echo 'PASS: align' -else - echo 'FAIL: align' -fi -./chksum -if [ $? -eq 0 ]; then - echo 'PASS: chksum' -else - echo 'FAIL: chksum' -fi -./simple -if [ $? -eq 0 ]; then - echo 'PASS: simple' -else - echo 'FAIL: simple' -fi -./testmini -if [ $? -eq 0 ]; then - echo 'PASS: testmini' -else - echo 'FAIL: testmini' -fi
meta/recipes-support/lzo/lzo_2.10.bb deleted +0 -35
@@ -1,35 +0,0 @@ -SUMMARY = "Lossless data compression library" -DESCRIPTION = "A portable lossless data compression library written in \ -ANSI C that offers pretty fast compression and *extremely* fast decompression. " -HOMEPAGE = "http://www.oberhumer.com/opensource/lzo/" -SECTION = "libs" -LICENSE = "GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ - file://src/lzo_init.c;beginline=5;endline=25;md5=9ae697ca01829b0a383c5d2d163e0108" - -SRC_URI = "http://www.oberhumer.com/opensource/lzo/download/lzo-${PV}.tar.gz \ - file://0001-Use-memcpy-instead-of-reinventing-it.patch \ - file://0001-Add-pkgconfigdir-to-solve-the-undefine-error.patch \ - file://run-ptest \ - " - -SRC_URI[md5sum] = "39d3f3f9c55c87b1e5d6888e1420f4b5" -SRC_URI[sha256sum] = "c0f892943208266f9b6543b3ae308fab6284c5c90e627931446fb49b4221a072" - -inherit autotools ptest - -CVE_PRODUCT = "lzo oberhumer:lzo2" - -EXTRA_OECONF = "--enable-shared" - -do_install_ptest() { - t=${D}${PTEST_PATH} - cp ${S}/util/check.sh $t - cp ${B}/minilzo/testmini $t - for i in tests/align tests/chksum lzotest/lzotest examples/simple - do cp ${B}/`dirname $i`/.libs/`basename $i` $t; \ - done -} - - -BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
Re: [OE-core] [PATCH 9/9] lzo: remove recipe from oe-core
Hi Ross, Bruce,
Il giorno Tue, 24 May 2022 16:24:01 +0100
"Ross Burton" <[email protected]> ha scritto:
Quoted 5 lines
LZO is a fairly archaic compression format that hasn't been updated since 2017. It's now unused by anything else in oe-core, so remove the recipes.
Signed-off-by Ross Burton <[email protected]>
I love removals of archaic features...
...and how they make things explode :-)
stdio: ERROR: Nothing PROVIDES 'lzo' (but /home/pokybuild/yocto-worker/meta-virt/build/meta-virtualization/recipes-extended/xen/xen_4.16.bb, /home/pokybuild/yocto-worker/meta-virt/build/meta-virtualization/recipes-extended/xen/xen-tools_4.16.bb DEPENDS on or otherwise requires it)
https://autobuilder.yoctoproject.org/typhoon/#/builders/128/builds/124/steps/13/logs/errors
https://autobuilder.yoctoproject.org/typhoon/#/builders/128/builds/124/steps/13/logs/stdio
Signature · 3 lines
Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [OE-core] [PATCH 9/9] lzo: remove recipe from oe-core
Quoted 12 lines · Luca Ceresoli
Hi Ross, Bruce,
Il giorno Tue, 24 May 2022 16:24:01 +0100
"Ross Burton" <[email protected]> ha scritto:Quoted 5 lines
LZO is a fairly archaic compression format that hasn't been updated since 2017. It's now unused by anything else in oe-core, so remove the recipes.
Signed-off-by Ross Burton <[email protected]>
Quoted 8 lines
I love removals of archaic features...
...and how they make things explode :-)
stdio: ERROR: Nothing PROVIDES 'lzo' (but
/home/pokybuild/yocto-worker/meta-virt/build/meta-virtualization/recipes-extended/xen/xen_4.16.bb,/home/pokybuild/yocto-worker/meta-virt/build/meta-virtualization/recipes-extended/xen/xen-tools_4.16.bbDEPENDS on or otherwise requires it)
I’ve also just sent a RFC patch for xen to disable LZO entirely, but I’ll leave that up to Bruce to decide. If lzo is removed from core it will be added to meta-oe, so xen will continue to build either way.
Ross
Re: [OE-core] [PATCH 9/9] lzo: remove recipe from oe-core
Quoted 22 lines · Ross Burton
Quoted 10 lines · Luca Ceresoli
Hi Ross, Bruce,
Il giorno Tue, 24 May 2022 16:24:01 +0100
"Ross Burton" <[email protected]> ha scritto:Quoted 4 lines
LZO is a fairly archaic compression format that hasn't been updated since 2017. It's now unused by anything else in oe-core, so remove the recipes.
Quoted 8 lines
Quoted 1 line
Signed-off-by Ross Burton <[email protected]>I love removals of archaic features...
...and how they make things explode :-)
stdio: ERROR: Nothing PROVIDES 'lzo' (but
/home/pokybuild/yocto-worker/meta-virt/build/meta-virtualization/recipes-extended/xen/xen_4.16.bb,Quoted 1 line
Quoted 9 lines
/home/pokybuild/yocto-worker/meta-virt/build/meta-virtualization/recipes-extended/xen/xen-tools_4.16.bbQuoted 1 line
DEPENDS on or otherwise requires it)
I’ve also just sent a RFC patch for xen to disable LZO entirely, but I’ll leave that up to Bruce to decide. If lzo is removed from core it will be added to meta-oe, so xen will continue to build either way.
right.
We'll keep it as optional.
But isn't this just a timing issue for the failure ? Or are we missing a dependency in meta-virt on where this landed in meta-oe ? We definitely have meta-oe dependencies in meta-virt, so the AB should already have those in place .. so this must have only blown up because it hasn't landed in meta-oe yet (nor should it probably have, as this is a test of the removal in OEcore) .
Either way, I'll merge the meta-virt, make-it-optional patch shortly and this should be good to go.
Bruce
Quoted 1 line
Ross
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Re: [OE-core] [PATCH 9/9] lzo: remove recipe from oe-core
Yes, it mainly blew up because the tested oe-core branch had the removal of lzo but meta-oe didn’t have the addition.
Would you like a resend of the xen patch to add an option, but leave it as enabled? Or will you merge this patch which disables lzo?
Ross
From: Bruce Ashfield <[email protected]>
Date: Wednesday, 25 May 2022 at 13:59
To: Ross Burton <[email protected]>
Cc: Luca Ceresoli <[email protected]>, [email protected] <[email protected]>, nd <[email protected]>
Subject: Re: [OE-core] [PATCH 9/9] lzo: remove recipe from oe-core
On Wed, May 25, 2022 at 7:26 AM Ross Burton <[email protected]<mailto:[email protected]>> wrote:
Quoted 12 lines · On 25 May 2022, at 09:03, Luca Ceresoli <[email protected]<mailto:luca.…
Hi Ross, Bruce,
Il giorno Tue, 24 May 2022 16:24:01 +0100
"Ross Burton" <[email protected]<mailto:[email protected]>> ha scritto:Quoted 5 lines
LZO is a fairly archaic compression format that hasn't been updated since 2017. It's now unused by anything else in oe-core, so remove the recipes.
Quoted 8 lines
I love removals of archaic features...
...and how they make things explode :-)
stdio: ERROR: Nothing PROVIDES 'lzo' (but /home/pokybuild/yocto-worker/meta-virt/build/meta-virtualization/recipes-extended/xen/xen_4.16.bb<http://xen_4.16.bb>, /home/pokybuild/yocto-worker/meta-virt/build/meta-virtualization/recipes-extended/xen/xen-tools_4.16.bb<http://xen-tools_4.16.bb> DEPENDS on or otherwise requires it)
I’ve also just sent a RFC patch for xen to disable LZO entirely, but I’ll leave that up to Bruce to decide. If lzo is removed from core it will be added to meta-oe, so xen will continue to build either way.
right.
We'll keep it as optional.
But isn't this just a timing issue for the failure ? Or are we missing a dependency in meta-virt on where this landed in meta-oe ? We definitely have meta-oe dependencies in meta-virt, so the AB should already have those in place .. so this must have only blown up because it hasn't landed in meta-oe yet (nor should it probably have, as this is a test of the removal in OEcore) .
Either way, I'll merge the meta-virt, make-it-optional patch shortly and this should be good to go.
Bruce
Ross
--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
Re: [OE-core] [PATCH 9/9] lzo: remove recipe from oe-core
Quoted 8 lines · Ross Burton
Yes, it mainly blew up because the tested oe-core branch had the removal of lzo but meta-oe didn’t have the addition.
Would you like a resend of the xen patch to add an option, but leave it as enabled? Or will you merge this patch which disables lzo?
The patch is fine as-is. If someone needs it on by default, they can scream and send a patch to change that status :) It will still be available, so they can easily carry bbappend with a packageconfig.
Bruce
Quoted 74 lines
Ross
From: Bruce Ashfield <[email protected]>
Date: Wednesday, 25 May 2022 at 13:59
To: Ross Burton <[email protected]>
Cc: Luca Ceresoli <[email protected]>, [email protected] <[email protected]>, nd <[email protected]>
Subject: Re: [OE-core] [PATCH 9/9] lzo: remove recipe from oe-coreOn Wed, May 25, 2022 at 7:26 AM Ross Burton <[email protected]> wrote:
Quoted 12 lines · Luca Ceresoli
Hi Ross, Bruce,
Il giorno Tue, 24 May 2022 16:24:01 +0100
"Ross Burton" <[email protected]> ha scritto:Quoted 5 lines
LZO is a fairly archaic compression format that hasn't been updated since 2017. It's now unused by anything else in oe-core, so remove the recipes.
Signed-off-by Ross Burton <[email protected]>Quoted 8 lines
I love removals of archaic features...
...and how they make things explode :-)
stdio: ERROR: Nothing PROVIDES 'lzo' (but
/home/pokybuild/yocto-worker/meta-virt/build/meta-virtualization/recipes-extended/xen/xen_4.16.bb,/home/pokybuild/yocto-worker/meta-virt/build/meta-virtualization/recipes-extended/xen/xen-tools_4.16.bbDEPENDS on or otherwise requires it)I’ve also just sent a RFC patch for xen to disable LZO entirely, but I’ll leave that up to Bruce to decide. If lzo is removed from core it will be added to meta-oe, so xen will continue to build either way.
right.
We'll keep it as optional.
But isn't this just a timing issue for the failure ? Or are we missing a dependency in meta-virt on where this landed in meta-oe ? We definitely have meta-oe dependencies in meta-virt, so the AB should already have those in place .. so this must have only blown up because it hasn't landed in meta-oe yet (nor should it probably have, as this is a test of the removal in OEcore) .
Either way, I'll merge the meta-virt, make-it-optional patch shortly and this should be good to go.
Bruce
Ross
--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Hi Richard,
Il giorno Tue, 24 May 2022 16:23:53 +0100
"Ross Burton" <[email protected]> ha scritto:
Quoted 3 lines
From: Richard Purdie <[email protected]>
Add some further info to the patch based on upsream changes. Given
s/upsream/upstream/
Fixing it in my master-next branch.
Signature · 3 lines
Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com