summaryrefslogtreecommitdiff
path: root/system/abuild/use-pigz.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-31 17:44:35 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-31 17:44:35 +0000
commitc8e3e4ae4e5bcd6ec65eaf7055b38da52a9a56db (patch)
treea6b485b6b22cad6b82bd80b415c63c251132eb34 /system/abuild/use-pigz.patch
parent99cab525cb92311fde8d096b776b04799c169832 (diff)
downloadpackages-c8e3e4ae4e5bcd6ec65eaf7055b38da52a9a56db.tar.gz
packages-c8e3e4ae4e5bcd6ec65eaf7055b38da52a9a56db.tar.bz2
packages-c8e3e4ae4e5bcd6ec65eaf7055b38da52a9a56db.tar.xz
packages-c8e3e4ae4e5bcd6ec65eaf7055b38da52a9a56db.zip
system/abuild: use pigz where available for faster compression
Diffstat (limited to 'system/abuild/use-pigz.patch')
-rw-r--r--system/abuild/use-pigz.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/system/abuild/use-pigz.patch b/system/abuild/use-pigz.patch
new file mode 100644
index 000000000..a917c8f81
--- /dev/null
+++ b/system/abuild/use-pigz.patch
@@ -0,0 +1,19 @@
+--- abuild-3.2.0_rc1+adelie/abuild.in.old 2018-05-20 03:17:19.884154704 +0000
++++ abuild-3.2.0_rc1+adelie/abuild.in 2018-08-31 17:42:34.900000000 +0000
+@@ -1466,6 +1466,7 @@
+ local datadir="$pkgbasedir"/$name
+ local subpkgname=$name
+ local subpkgarch=$(pkginfo_val arch $file)
++ local _mygzip=$(command -v pigz gzip | head -1)
+
+ trace_apk_deps "$name" "$dir" "$subpkgarch" || return 1
+ msg "Package size: ${size}"
+@@ -1478,7 +1479,7 @@
+ touch .dummy
+ set -- .dummy
+ fi
+- tar --format pax --xattrs -f - -c "$@" | abuild-tar --hash | gzip -9 >"$dir"/data.tar.gz
++ tar --format pax --xattrs -f - -c "$@" | abuild-tar --hash | $_mygzip -9 >"$dir"/data.tar.gz
+
+ msg "Create checksum..."
+ # append the hash for data.tar.gz