Skip to contentSkip to conversation

package/lrzip: new package

PATCH Superseded sam at gpsm.co.uk 2 participants 3 messages Sep 7, 2019 – Sep 8, 2019

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/lrzip: new package

From: Sam Lancia <[email protected]>

lrzip is a compression utility that excels at compressing large files (usually > 10-50 MB)

---
 DEVELOPERS                              |  3 +++
 package/Config.in                       |  1 +
 package/lrzip/0001-missing-stdarg.patch | 15 +++++++++++++++
 package/lrzip/Config.in                 | 23 +++++++++++++++++++++++
 package/lrzip/lrzip.hash                |  3 +++
 package/lrzip/lrzip.mk                  | 14 ++++++++++++++
 6 files changed, 59 insertions(+)
 create mode 100644 package/lrzip/0001-missing-stdarg.patch
 create mode 100644 package/lrzip/Config.in
 create mode 100644 package/lrzip/lrzip.hash
 create mode 100644 package/lrzip/lrzip.mk
DEVELOPERS +3 -0
index 0905237790..69d26d8de4 100644
@@ -2027,6 +2027,9 @@ N:	Sam Bobroff <[email protected]>
 F:	arch/Config.in.powerpc
 F:	package/librtas/
 
+N:	Sam Lancia <[email protected]>
+F:	package/lrzip/
+
 N:	Samuel Martin <[email protected]>
 F:	package/armadillo/
 F:	package/canfestival/
package/Config.in +1 -0
index 9336261c5d..c313fd55a5 100644
@@ -67,6 +67,7 @@ menu "Compressors and decompressors"
 	source "package/brotli/Config.in"
 	source "package/bzip2/Config.in"
 	source "package/gzip/Config.in"
+	source "package/lrzip/Config.in"
 	source "package/lz4/Config.in"
 	source "package/lzip/Config.in"
 	source "package/lzop/Config.in"
package/lrzip/0001-missing-stdarg.patch new file +15 -0
new file mode 100644
index 0000000000..7a19bc2834
@@ -0,0 +1,15 @@
+Lrzip.h: add missing header for va_list on some platforms
+
+Signed-off-by: Sam Lancia <[email protected]>
+
+--- a/Lrzip.h
++++ b/Lrzip.h
+@@ -20,6 +20,7 @@
+ #ifndef LIBLRZIP_H
+ #define LIBLRZIP_H
+ 
++#include <stdarg.h>
+ #include <stdbool.h>
+ #include <stdio.h>
+ #ifdef _WIN32
+
package/lrzip/Config.in new file +23 -0
new file mode 100644
index 0000000000..e18d65550f
@@ -0,0 +1,23 @@
+config BR2_PACKAGE_LRZIP
+	bool "lrzip"
+	depends on BR2_USE_MMU # fork()
+	depends on BR2_USE_WCHAR
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_ZLIB
+	select BR2_PACKAGE_LZO
+	select BR2_PACKAGE_BZIP2
+	help
+	  A compression utility that excels at compressing large files
+	  (usually > 10-50 MB). Larger files and/or more free RAM means
+	  that the utility will be able to more effectively compress
+	  your files (ie: faster / smaller size), especially if the
+	  filesize(s) exceed 100 MB. You can either choose to optimise
+	  for speed (fast compression / decompression) or size,
+	  but not both.
+
+	  https://github.com/ckolivas/lrzip
+
+comment "lrzip needs a toolchain w/ wchar"
+	depends on BR2_USE_MMU
+	depends on !BR2_USE_WCHAR
+	depends on BR2_TOOLCHAIN_HAS_THREADS
package/lrzip/lrzip.hash new file +3 -0
new file mode 100644
index 0000000000..bdf63f0ed8
@@ -0,0 +1,3 @@
+# Locally computed:
+sha256 10315c20d5a47590e7220c210735ba169677824d5672509266682eccec84d952  lrzip-0.631.tar.gz
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
package/lrzip/lrzip.mk new file +14 -0
new file mode 100644
index 0000000000..8f4cba5303
@@ -0,0 +1,14 @@
+################################################################################
+#
+# lrzip
+#
+################################################################################
+
+LRZIP_VERSION = 0.631
+LRZIP_SITE = $(call github,ckolivas,lrzip,v$(LRZIP_VERSION))
+LRZIP_AUTORECONF = YES
+LRZIP_LICENSE = GPL-2.0
+LRZIP_LICENSE_FILES = COPYING
+LRZIP_DEPENDENCIES = zlib lzo bzip2
+
+$(eval $(autotools-package))
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 package/lrzip: new package

Hello,

Thanks for this new version. When sending a new version for a patch, it is customary to use:

[PATCH v2]

as the patch prefix, which you can do using "git format-patch -v2".

And also, to include a changelog of the changes between the v1 and v2, below the "---", i.e...

Quoted 7 lines · On Sat, 7 Sep 2019 21:11:15 +0100 sam at gpsm.co.uk wrote:

From: Sam Lancia <[email protected]>

lrzip is a compression utility that excels at compressing large files (usually > 10-50 MB)

---

... here.

package/lrzip/0001-missing-stdarg.patch line 3

Quoted 9 lines
package/lrzip/0001-missing-stdarg.patch new file +3 -0
new file mode 100644
index 0000000000..7a19bc2834
@@ -0,0 +1,15 @@
+Lrzip.h: add missing header for va_list on some platforms
+
+Signed-off-by: Sam Lancia <[email protected]>

We would like patches for projects that are hosted on Git to be generated using git format-patch. So, grab the Git repo of the upstream project, and make a proper commit. This way, you can also easily send a pull request to the upstream lrzip project.

However, was this sufficient to fix all build issues ? Indeed stdarg.h was missing, but there were also some bswap related problems.

package/lrzip/0001-missing-stdarg.patch line 7

Quoted 4 lines
package/lrzip/0001-missing-stdarg.patch new file +4 -0
+comment "lrzip needs a toolchain w/ wchar"
+	depends on BR2_USE_MMU
+	depends on !BR2_USE_WCHAR
+	depends on BR2_TOOLCHAIN_HAS_THREADS

No, that's not the proper way. It should be:

comment "lrzip needs a toolchain w/ wchar, threads"

	depends on BR2_USE_MMU
	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author
#2 lore raw

PATCH 1/1 package/lrzip: new package

Thanks for the help Thomas.

Have updated the patch. No other changes seem to be required, the bswap issues appear to be warnings. utils/test-pkg passes

Quoted 56 lines · Thomas Petazzoni

Hello,

Thanks for this new version. When sending a new version for a patch, it is customary to use:

[PATCH v2]

as the patch prefix, which you can do using "git format-patch -v2".

And also, to include a changelog of the changes between the v1 and v2, below the "---", i.e...

Quoted 7 lines · On Sat, 7 Sep 2019 21:11:15 +0100 sam at gpsm.co.uk wrote:

From: Sam Lancia <[email protected]>

lrzip is a compression utility that excels at compressing large files (usually > 10-50 MB)

---

... here.

Review

Quoted 1 line
(quoted diff) +0 -0

b/package/lrzip/0001-missing-stdarg.patch

package/lrzip/0001-missing-stdarg.patch line 3

Quoted 8 lines

new file mode 100644
index 0000000000..7a19bc2834

package/lrzip/0001-missing-stdarg.patch new file +3 -0
@@ -0,0 +1,15 @@
+Lrzip.h: add missing header for va_list on some platforms
+
+Signed-off-by: Sam Lancia <[email protected]>

We would like patches for projects that are hosted on Git to be generated using git format-patch. So, grab the Git repo of the upstream project, and make a proper commit. This way, you can also easily send a pull request to the upstream lrzip project.

However, was this sufficient to fix all build issues ? Indeed stdarg.h was missing, but there were also some bswap related problems.

package/lrzip/0001-missing-stdarg.patch line 7

Quoted 4 lines
package/lrzip/0001-missing-stdarg.patch new file +4 -0
+comment "lrzip needs a toolchain w/ wchar"
+     depends on BR2_USE_MMU
+     depends on !BR2_USE_WCHAR
+     depends on BR2_TOOLCHAIN_HAS_THREADS

No, that's not the proper way. It should be:

comment "lrzip needs a toolchain w/ wchar, threads"
depends on BR2_USE_MMU
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS

Quoted 8 lines

Thanks!

Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190908/f20c11c5/attachment-0001.html>