diff --git a/app-arch/lz4/lz4-1.9.1.recipe b/app-arch/lz4/lz4-1.9.2.recipe similarity index 93% rename from app-arch/lz4/lz4-1.9.1.recipe rename to app-arch/lz4/lz4-1.9.2.recipe index 457fd7fac..0eaf5c5f6 100644 --- a/app-arch/lz4/lz4-1.9.1.recipe +++ b/app-arch/lz4/lz4-1.9.2.recipe @@ -4,12 +4,13 @@ compression speed at 400 MB/s per core, scalable with multi-core CPUs. It \ also features an extremely fast decoder, with speed in multiple GB/s per \ core, typically reaching RAM speed limits on multi-core systems." HOMEPAGE="https://lz4.github.io/lz4/" -COPYRIGHT="2011-2018 Yann Collet" +COPYRIGHT="2011-2019 Yann Collet" LICENSE="BSD (2-clause)" REVISION="1" SOURCE_URI="https://github.com/lz4/lz4/archive/v$portVersion.tar.gz" SOURCE_FILENAME="lz4-$portVersion.tar.gz" -CHECKSUM_SHA256="f8377c89dad5c9f266edc0be9b73595296ecafd5bfa1000de148096c50052dc4" +CHECKSUM_SHA256="658ba6191fa44c92280d4aa2c271b0f4fbc0e34d249578dd05e50e76d0e5efcc" +PATCHES="lz4-$portVersion.patchset" ARCHITECTURES="x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86_gcc2 x86" diff --git a/app-arch/lz4/patches/lz4-1.9.2.patchset b/app-arch/lz4/patches/lz4-1.9.2.patchset new file mode 100644 index 000000000..957cc4348 --- /dev/null +++ b/app-arch/lz4/patches/lz4-1.9.2.patchset @@ -0,0 +1,39 @@ +From 3816c7f84156e9957d126dd2d283402b30369879 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Sun, 8 Sep 2019 13:36:26 +0200 +Subject: Haiku patch + + +diff --git a/programs/lz4cli.c b/programs/lz4cli.c +index 5da7654..b55eca3 100644 +--- a/programs/lz4cli.c ++++ b/programs/lz4cli.c +@@ -658,7 +658,11 @@ int main(int argc, const char** argv) + if (!output_filename) output_filename = stdoutmark; + } + else{ ++#ifdef UTIL_HAS_CREATEFILELIST + if (!recursive && !UTIL_isRegFile(input_filename)) { ++#else ++ if (!UTIL_isRegFile(input_filename)) { ++#endif + DISPLAYLEVEL(1, "%s: is not a regular file \n", input_filename); + exit(1); + } +diff --git a/programs/platform.h b/programs/platform.h +index c0b3840..acb4f80 100644 +--- a/programs/platform.h ++++ b/programs/platform.h +@@ -81,7 +81,8 @@ extern "C" { + #if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)) /* UNIX-like OS */ \ + || defined(__midipix__) || defined(__VMS)) + # if (defined(__APPLE__) && defined(__MACH__)) || defined(__SVR4) || defined(_AIX) || defined(__hpux) /* POSIX.1–2001 (SUSv3) conformant */ \ +- || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__MidnightBSD__) /* BSD distros */ ++ || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__MidnightBSD__) /* BSD distros */ \ ++ || defined(__HAIKU__) + # define PLATFORM_POSIX_VERSION 200112L + # else + # if defined(__linux__) || defined(__linux) +-- +2.21.0 +