Skip to contentSkip to conversation

zlib-ng: new package

PATCH Superseded Stefan Fröberg 2 participants 3 messages Nov 5, 2017 – Nov 26, 2017

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 zlib-ng: new package

Changes v1 -> v2:

- Use correct license file (by Marcus)
- Use github helper (by Arnout)
- Add hash file (by Arnout)

---
 package/Config.in            |  1 +
 package/zlib-ng/Config.in    |  7 +++++++
 package/zlib-ng/zlib-ng.hash | 10 ++++++++++
 package/zlib-ng/zlib-ng.mk   | 13 +++++++++++++
 4 files changed, 31 insertions(+)
 create mode 100644 package/zlib-ng/Config.in
 create mode 100644 package/zlib-ng/zlib-ng.hash
 create mode 100644 package/zlib-ng/zlib-ng.mk
package/Config.in +1 -0
index fe5ccc4..07f38d0 100644
@@ -1003,6 +1003,7 @@ menu "Compression and decompression"
 	source "package/snappy/Config.in"
 	source "package/szip/Config.in"
 	source "package/zlib/Config.in"
+	source "package/zlib-ng/Config.in"
 endmenu
 
 menu "Crypto"
package/zlib-ng/Config.in new file +7 -0
new file mode 100644
index 0000000..55bbd57
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_ZLIB_NG
+	bool "zlib-ng"
+	help
+	  zlib replacement with optimizations for
+	  "next generation" systems.
+
+	  https://github.com/Dead2/zlib-ng
package/zlib-ng/zlib-ng.hash new file +10 -0
new file mode 100644
index 0000000..c78f974
@@ -0,0 +1,10 @@
+# Locally calculated
+
+md5	87676f8d7fcdea908476029f92b8103f  zlib-ng-e07a52dbaa35d003f5659b221b29d220c091667b.tar.gz
+sha1	126b84064783aa00d29e3a149e7c9701e6af243e  zlib-ng-e07a52dbaa35d003f5659b221b29d220c091667b.tar.gz
+sha256	c762c24d24d3ead93a21a0d540c49751b45058dbe5b00f71f48526b335e85b37  zlib-ng-e07a52dbaa35d003f5659b221b29d220c091667b.tar.gz
+
+md5	b133671347d1c0879cb72e6691debfe3  LICENSE.md
+sha1	1e0b08e7a2124c67c42261ac819e2340a2dd912c LICENSE.md
+sha256	d3c80be055d94d798eaa786116e84fa0b010bc11420b5d2060d978ea77845436 LICENSE.md
+
package/zlib-ng/zlib-ng.mk new file +13 -0
new file mode 100644
index 0000000..97d269f
@@ -0,0 +1,13 @@
+################################################################################
+#
+# zlib-ng
+#
+################################################################################
+
+ZLIB_NG_VERSION = e07a52dbaa35d003f5659b221b29d220c091667b
+ZLIB_NG_SITE = $(call github,Dead2,zlib-ng,$(ZLIB_NG_VERSION))
+ZLIB_NG_LICENSE = Zlib
+ZLIB_NG_LICENSE_FILES = LICENSE.md
+ZLIB_NG_INSTALL_STAGING = YES
+
+$(eval $(cmake-package))
Signature · 1 line
2.7.3
#1 lore raw

PATCH v2 1/1 zlib-ng: new package

Hello,

Quoted 5 lines · Stefan Fr?berg
 package/Config.in            |  1 +
 package/zlib-ng/Config.in    |  7 +++++++
 package/zlib-ng/zlib-ng.hash | 10 ++++++++++
 package/zlib-ng/zlib-ng.mk   | 13 +++++++++++++
 4 files changed, 31 insertions(+)

You forgot to update the DEVELOPERS file.

However, there is a bigger problem: zlib-ng overwrites zlib. I.e, both install the same libz.so and libz.so.1 libraries.

So installing both packages at the same time does not make sense. So, we need to do something like jpeg/libjpeg/jpeg-turbo.

Could you look into doing this ?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH v2 1/1 zlib-ng: new package

Hi

Sure. No problem at all, just have to quickly lookup howto make virutal pacakge (never done that before)

-S-

Thomas Petazzoni kirjoitti 25.11.2017 klo 14:31:

Quoted 22 lines

Hello,

Quoted 5 lines · Stefan Fr?berg
 package/Config.in            |  1 +
 package/zlib-ng/Config.in    |  7 +++++++
 package/zlib-ng/zlib-ng.hash | 10 ++++++++++
 package/zlib-ng/zlib-ng.mk   | 13 +++++++++++++
 4 files changed, 31 insertions(+)

You forgot to update the DEVELOPERS file.

However, there is a bigger problem: zlib-ng overwrites zlib. I.e, both install the same libz.so and libz.so.1 libraries.

So installing both packages at the same time does not make sense. So, we need to do something like jpeg/libjpeg/jpeg-turbo.

Could you look into doing this ?

Thanks!

Thomas