Skip to content

Commit

Permalink
[WIP] Replace gzip/bzip2/xz with pigz/pbzip2/pxz for multicore enviro…
Browse files Browse the repository at this point in the history
…nment

This PR is to fix issue #113. And It can be used as an alternative of PR #117.
In modern generation, most of the developers are using a machine based on
multi-core architecture. From now on, Let's prepare to support parallelism.

pigz is compatible with the existing gzip because pigz is using gzip's library.
pbzip2 is compatible with the existing pbzip2 because pbzip2 is using bzip2's library.
pxz is compatible with the existing xz because pxz is using xz's library.

Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
  • Loading branch information
leemgs committed Jan 13, 2017
1 parent d1c988b commit d09de8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions configure.ac
Expand Up @@ -92,7 +92,7 @@ dnl
dnl Find some common programs
dnl
AC_PATH_PROGS(__7ZIP, [7zip 7za 7z], /usr/bin/7za, $MYPATH)
AC_PATH_PROG(__BZIP2, bzip2, /usr/bin/bzip2, $MYPATH)
AC_PATH_PROG(__BZIP2, bzip2, /usr/bin/pbzip2, $MYPATH)
AC_PATH_PROG(__CAT, cat, /bin/cat, $MYPATH)
AC_PATH_PROG(__CHGRP, chgrp, /bin/chgrp, $MYPATH)
AC_PATH_PROG(__CHMOD, chmod, /bin/chmod, $MYPATH)
Expand All @@ -103,13 +103,13 @@ AC_PATH_PROG(__CURL, curl, /usr/bin/curl, $MYPATH)
AC_PATH_PROG(__FILE, file, /usr/bin/file, $MYPATH)
AC_PATH_PROGS(__GPG, gpg2 gpg, /usr/bin/gpg2, $MYPATH)
AC_PATH_PROG(__GREP, grep, /bin/grep, $MYPATH)
AC_PATH_PROG(__GZIP, gzip, /bin/gzip, $MYPATH)
AC_PATH_PROG(__UNZIP, unzip, /usr/bin/unzip, $MYPATH)
AC_PATH_PROG(__GZIP, gzip, /bin/pigz, $MYPATH)
AC_PATH_PROG(__UNZIP, unzip, /usr/bin/unpigz, $MYPATH)
AC_PATH_PROG(__ID, id, /usr/bin/id, $MYPATH)
AC_PATH_PROG(__INSTALL, install, /usr/bin/install, $MYPATH)
AC_PATH_PROG(__LRZIP, lrzip, /usr/bin/lrzip, $MYPATH)
AC_PATH_PROG(__LZIP, lzip, /usr/bin/lzip, $MYPATH)
AC_PATH_PROG(__XZ, xz, /usr/bin/xz, $MYPATH)
AC_PATH_PROG(__XZ, xz, /usr/bin/pxz, $MYPATH)
AC_PATH_PROG(__GEM, gem, /usr/bin/gem, $MYPATH)
AC_PATH_PROG(__MAKE, make, /usr/bin/make, $MYPATH)
AC_PATH_PROG(__MKDIR, mkdir, /bin/mkdir, $MYPATH)
Expand Down
1 change: 1 addition & 0 deletions doc/manual/builddependencies
Expand Up @@ -72,6 +72,7 @@ Here's what's in yyy (\<packagename\>::\<filename\> format):
binutils-2.9.1.0.23-7::/usr/lib/libbfd-2.9.1.0.24.so
binutils-2.9.1.0.23-7::/usr/lib/libopcodes-2.9.1.0.24.so
bzip2-0.9.5c-1::/usr/lib/libbz2.so.0
pbzip2-1.1.9::/usr/lib/libbz2.so.0
dev-2.7.10-2::/dev/null
diffutils-2.7-16::/usr/bin/cmp
egcs-1.1.2-25::/usr/bin/gcc
Expand Down
2 changes: 2 additions & 0 deletions doc/manual/macros
Expand Up @@ -79,7 +79,9 @@ to perform useful operations. The current list is
compressed. The expansion is
cat <file> # if not compressed
gzip -dc <file> # if gzip'ed
pigz -dc <file> # if pigz'ed
bzip2 -dc <file> # if bzip'ed
pbzip2 -dc <file> # if pbzip'ed
%{expand:...} like eval, expand ... to <body> and (re-)expand <body>

%{S:...} expand ... to <source> file name
Expand Down

0 comments on commit d09de8c

Please sign in to comment.