* [PATCH] lz4: update to lastest 1.7.4
@ 2017-04-01 20:06 Armin Kuster
2017-04-03 14:11 ` Burton, Ross
2017-05-04 13:14 ` Burton, Ross
0 siblings, 2 replies; 3+ messages in thread
From: Armin Kuster @ 2017-04-01 20:06 UTC (permalink / raw)
To: akuster, openembedded-core
From: Armin Kuster <akuster@mvista.com>
update SRC_URI: as of 1.7.3, repo changed. same owner
Renamed recipe to reflect PV and added Epoch
Added ptest, tests added v1.7.3
updated LICENSE to be more accurate.
Signed-off-by: Armin Kuster <akuster@mvista.com>
---
meta/recipes-support/lz4/files/run-ptest | 43 ++++++++++++++++++++++++++++++++
meta/recipes-support/lz4/lz4.bb | 21 ----------------
meta/recipes-support/lz4/lz4_1.7.4.bb | 33 ++++++++++++++++++++++++
3 files changed, 76 insertions(+), 21 deletions(-)
create mode 100644 meta/recipes-support/lz4/files/run-ptest
delete mode 100644 meta/recipes-support/lz4/lz4.bb
create mode 100644 meta/recipes-support/lz4/lz4_1.7.4.bb
diff --git a/meta/recipes-support/lz4/files/run-ptest b/meta/recipes-support/lz4/files/run-ptest
new file mode 100644
index 0000000..d3bfc49
--- /dev/null
+++ b/meta/recipes-support/lz4/files/run-ptest
@@ -0,0 +1,43 @@
+#!/bin/sh
+cd testsuite
+
+echo -n "---- test-lz4 ----"
+make -C tests test-lz4 > /dev/null 2>&1
+
+if [ $? -eq 0 ]; then
+ echo "PASS"
+else
+ echo "FAIL"
+fi
+
+echo -n "---- test-fasttest ----"
+make -C tests test-fasttest > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+ echo "PASS"
+else
+ echo "FAIL"
+fi
+
+echo -n "---- test-frametest ----"
+make -C tests test-frametest > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+ echo "PASS"
+else
+ echo "FAIL"
+fi
+
+echo -n "---- test-fullbench ----"
+make -C tests test-fullbench > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+ echo "PASS"
+else
+ echo "FAIL"
+fi
+
+echo -n "---- test-fuzzer ----"
+make -C tests test-fuzzer > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+ echo "PASS"
+else
+ echo "FAIL"
+fi
diff --git a/meta/recipes-support/lz4/lz4.bb b/meta/recipes-support/lz4/lz4.bb
deleted file mode 100644
index 03c5a7a..0000000
--- a/meta/recipes-support/lz4/lz4.bb
+++ /dev/null
@@ -1,21 +0,0 @@
-SUMMARY = "Extremely Fast Compression algorithm"
-DESCRIPTION = "LZ4 is a very fast lossless compression algorithm, providing compression speed at 400 MB/s per core, scalable with multi-cores CPU. It also features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems."
-
-LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://lib/LICENSE;md5=0b0d063f37a4477b54af2459477dcafd"
-
-SRCREV = "d86dc916771c126afb797637dda9f6421c0cb998"
-
-PV = "131+git${SRCPV}"
-
-SRC_URI = "git://github.com/Cyan4973/lz4.git"
-
-S = "${WORKDIR}/git"
-
-EXTRA_OEMAKE = "PREFIX=${prefix} CC='${CC}' DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir}"
-
-do_install() {
- oe_runmake install
-}
-
-BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-support/lz4/lz4_1.7.4.bb b/meta/recipes-support/lz4/lz4_1.7.4.bb
new file mode 100644
index 0000000..5ddffd5
--- /dev/null
+++ b/meta/recipes-support/lz4/lz4_1.7.4.bb
@@ -0,0 +1,33 @@
+SUMMARY = "Extremely Fast Compression algorithm"
+DESCRIPTION = "LZ4 is a very fast lossless compression algorithm, providing compression speed at 400 MB/s per core, scalable with multi-cores CPU. It also features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems."
+
+LICENSE = "BSD | BSD-2-Clause | GPL-2.0"
+LIC_FILES_CHKSUM = "file://lib/LICENSE;md5=ebc2ea4814a64de7708f1571904b32cc\
+ file://programs/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+ file://LICENSE;md5=7f2857d58beff6d04137bf9b09e5ffb6"
+
+PE = "1"
+
+SRCREV = "7bb64ff2b69a9f8367de9ab483cdadf42b4c1b65"
+
+SRC_URI = "git://github.com/lz4/lz4.git \
+ file://run-ptest \
+"
+
+S = "${WORKDIR}/git"
+inherit ptest
+
+EXTRA_OEMAKE = "PREFIX=${prefix} CC='${CC}' DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir}"
+
+do_install() {
+ oe_runmake install
+}
+
+do_install_ptest () {
+ install -d ${D}${PTEST_PATH}/testsuite
+ cp -rf ${S}/* ${D}${PTEST_PATH}/testsuite
+}
+
+RDEPENDS_${PN}-ptest += "make python3"
+
+BBCLASSEXTEND = "native nativesdk"
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] lz4: update to lastest 1.7.4
2017-04-01 20:06 [PATCH] lz4: update to lastest 1.7.4 Armin Kuster
@ 2017-04-03 14:11 ` Burton, Ross
2017-05-04 13:14 ` Burton, Ross
1 sibling, 0 replies; 3+ messages in thread
From: Burton, Ross @ 2017-04-03 14:11 UTC (permalink / raw)
To: Armin Kuster; +Cc: Armin Kuster, OE-core
[-- Attachment #1: Type: text/plain, Size: 360 bytes --]
On 1 April 2017 at 21:06, Armin Kuster <akuster808@gmail.com> wrote:
> update SRC_URI: as of 1.7.3, repo changed. same owner
> Renamed recipe to reflect PV and added Epoch
> Added ptest, tests added v1.7.3
> updated LICENSE to be more accurate.
>
Are you happy for this to wait for master to re-open or do you want this
considered for 2.3?
Ross
[-- Attachment #2: Type: text/html, Size: 768 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] lz4: update to lastest 1.7.4
2017-04-01 20:06 [PATCH] lz4: update to lastest 1.7.4 Armin Kuster
2017-04-03 14:11 ` Burton, Ross
@ 2017-05-04 13:14 ` Burton, Ross
1 sibling, 0 replies; 3+ messages in thread
From: Burton, Ross @ 2017-05-04 13:14 UTC (permalink / raw)
To: Armin Kuster; +Cc: Armin Kuster, OE-core
[-- Attachment #1: Type: text/plain, Size: 291 bytes --]
On 1 April 2017 at 21:06, Armin Kuster <akuster808@gmail.com> wrote:
> +RDEPENDS_${PN}-ptest += "make python3"
>
Annoying this causes:
packages/corei7-64-poky-linux/lz4/lz4-dev: RRECOMMENDS: added "python3-dev
make-dev"
I wonder if theres a way to filter those out...
Ross
[-- Attachment #2: Type: text/html, Size: 961 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-04 13:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-01 20:06 [PATCH] lz4: update to lastest 1.7.4 Armin Kuster
2017-04-03 14:11 ` Burton, Ross
2017-05-04 13:14 ` Burton, Ross
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.