From e1d1c3189093ebe384953519083f815a420c4a4e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 14 Sep 2016 20:50:35 +0200 Subject: opkg: vfork external gzip command to uncompress data Opkg's builtin decompression code is unsuitable to process nested archives as it uses a single shared state and relies on undefined seek behaviour for pipes. Rework the extraction logic to use the external gzip command as I/O filter for decompressing data and remove the builtin inflate code entirely. This shrinks the final opkg binary by about 4KB and results in less runtime memory consumption due to efficient use of vfork() and less copy-on-write operations in the forked child. Rework by Felix: create a thread that relays data to the gzip process instead of using a fragile poll loop Signed-off-by: Jo-Philipp Wich Signed-off-by: Felix Fietkau --- package/system/opkg/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/system/opkg/Makefile') diff --git a/package/system/opkg/Makefile b/package/system/opkg/Makefile index 8b8904a39a..cbd731f54c 100644 --- a/package/system/opkg/Makefile +++ b/package/system/opkg/Makefile @@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/version.mk include $(INCLUDE_DIR)/feeds.mk PKG_NAME:=opkg -PKG_RELEASE:=15 +PKG_RELEASE:=16 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=http://git.yoctoproject.org/git/opkg -- cgit v1.2.3