Commit Graph

23 Commits

Author SHA1 Message Date
Robert Yang b74cfdb8a0 pigz: set downloadfilename
Otherwise, the filename is v${PV}.tar.gz which isn't straightforward.

(From OE-Core rev: e90e10f10413a7340dccd71c7dc7b256240b824a)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-23 12:49:51 -08:00
Richard Purdie ab0f46400c gzip/pigz/expat/image: Simplify gzip-native/pigz-native
With recipe specific sysroots, the gzip-replacement-native dance/class
is obsolete, simplify the code accordingly.

(From OE-Core rev: 39865fdf3698a130f792d41853f9c9ca1901e335)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-28 23:32:16 +00:00
Alexander Kanavin ffda25aa96 pigz: fix upstream version check
(From OE-Core rev: 0cfe7cb744466271e196c9a080168b62c4affb9b)

(From OE-Core rev: 91644687db25cc795682ab0d85fcf6aaa5f2afe8)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-12-17 09:57:03 +00:00
Fabio Berton 427864afd7 pigz: Update to version 2.3.4
- Change SRC_URI to fetch sources from Github archives. Pigz official
    site maintains only the latest tarball version and Github have all
    versions avaiable to download.

  - Remove patch link-order.patch. The following commit fix this issue:
    https://github.com/madler/pigz/commit/c3f91d1a12a6f

(From OE-Core rev: a6c2a2ce120a047d875ab1f1f9594403d1ff9dbc)

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-11-30 15:48:05 +00:00
Alexander Kanavin 12119cc1f9 pigz: fix upstream version check
(From OE-Core rev: 1e9fb4e0c529044d0c51c0c7fe02f7c1f4439d17)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-10-28 16:15:18 +01:00
Richard Purdie 84113ca50c pigz: Update SRC_URI
Upstream have released a new tarball and removed the old one. Revert to
the Yocto Project source mirror instead, preserving the upstream version
check.

(From OE-Core rev: 839b17ffd96abff3e9cf47fb4a6d680637c865b1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-10-05 10:10:51 +01:00
Mike Crowe 07e81c8bec pigz: Explicitly set EXTRA_OEMAKE as required
This recipe currently relies on EXTRA_OEMAKE having been set to
"-e MAKEFLAGS=" in bitbake.conf to operate. It is necessary to make this
explicit so that the default in bitbake.conf can be changed.

(From OE-Core rev: 75400306a6f27f5743499d37f0d52fd1f145d9e0)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-10 16:06:25 +00:00
Chen Qi c1ac5a800e pigz: set ALTERNATIVE for nativesdk package to empty
Set ALTERNATIVE for nativesdk package to empty to avoid warnings like below.

     WARNING: pigz: NOT adding alternative provide xxx/bin/gunzip: xxx/bin/pigz does not exist

(From OE-Core rev: 666e0b5c117202e9e866ef62eac99e0af9c8c2fb)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-04-30 23:04:17 +01:00
Andreas Oberritter f43d13c1d0 pigz: fix alternatives handling, use symlinks, provide zcat
The installed unpigz is a hardlink to pigz.

(From OE-Core rev: 5017ff434130c62fabb42f8224fb246801f13d0c)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-25 12:39:43 +00:00
Khem Raj 93842f0ec9 pigz: Upgrade to 2.3.3
Fix build issues due to libz being required but
is specified before use.

Change-Id: I1f26c8e656b330a4b5f1eeffee7ac13500fa98d0
(From OE-Core rev: c939b9cc5bd046261981dcaae6cae9d358ed7671)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-02-03 14:53:53 +00:00
Paul Eggleton 56e8fc5b13 pigz: add Apache-2.0 to LICENSE
As of version 2.3, pigz ships a copy of zopfli, which is Apache-2.0
licensed, so we need to add this to LICENSE.

Thanks to Clemens Lang for reporting this.

(From OE-Core rev: 84968d3db166b592c95b7a867d7a885752f8a428)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-01-16 23:08:23 +00:00
Konrad Scherer f7e849f07c pigz: Add pigz to buildtools tarball
When using the tar executable in the buildtools, tar will execute
gzip. If this happens before zlib-native is built, then the gzip
on the host will be used and can fail if the libz in the buildtools
is not compatible. Adding pigz to the build tools avoids this host
contamination.

(From OE-Core rev: af6424e8c2bf3a938fddabc669c0956d68964ed0)

Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-10-30 13:39:08 +00:00
Maxin B. John 78b91ab23d pigz: bump to 2.3.1
Update pigz to latest release - 2.3.1
Drop ldflags.patch as it has been merged upstream

(From OE-Core rev: 8081dcb03f54efd551d1c8fe8a0484f8270053e0)

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-10-26 16:08:41 +01:00
Saul Wold 0d8ee88b31 pigz: Fix typo in ALTERNATIVES line
(From OE-Core rev: 661897219bc50d569a2c87b414ab04a7f83f5a8e)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-07-24 11:35:31 +01:00
Saul Wold 05239ff8ef pigz: Update to 2.3
Rebased the patch and added math library to satify tree.c's log() requirement.

(From OE-Core rev: f235a69f8d5cee6f6d8e7feccd83e8e619e2ddcf)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-18 13:18:23 +00:00
Robert Yang d005b787df recipes-extended: replace virtclass-native(sdk) with class-native(sdk)
The overrides virtclass-native and virtclass-nativesdk are deprecated,
which should be replaced by class-native and class-nativesdk.

[YOCTO #3297]

(From OE-Core rev: 528b4ab831c7b0bc1412318d29e2b7f9cf711d57)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-02 16:18:29 +00:00
Mark Hatle cf7cff7d23 Cleanup: fix PN == BPN cases
When building target packages, it used to be enought to check for PN == BPN, however
with the multilib configurations, this can lead to subtle errors.  Change instances
of PN == BPN, to ${CLASSOVERRIDE} == 'class-target'.

(From OE-Core rev: acc988272b4e74a9ad1e6da5af5b2d208584197b)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02 11:40:50 +01:00
Björn Stenberg 311ba92115 pigz: Update to upstream version 2.2.5
Also added beginline/endline to LIC_FILES_CHKSUM to not track whole pigz.c.

(From OE-Core rev: 8bec1f82ab3a53c9b89cdd27b412417b123ce7b1)

Signed-off-by: Bjorn Stenberg <bjst@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-08-15 14:26:41 +01:00
Saul Wold 9f64e1396d pigz: cleanup update-alternatives deprecated code
(From OE-Core rev: ec30a17ca617d9251404938da95ce578ff6402cf)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-08-15 14:26:32 +01:00
Richard Purdie d95f6d0e32 pigz: Add update-alternatives support since this otherwise conflicts with busybox/gzip
(From OE-Core rev: 8903327ff483cd3dbde8cf692be2092462265188)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-23 12:29:56 +00:00
Richard Purdie 40f95685e6 gzip/pigz-native: Install into a prefix to avoid clashing with system binaries
Due to the system providing a copy of gzip, we face some issues when we
'shadow' that copy with our own leading to a varient of race type bugs,
and issues for example if a dependency such as libz is missing but the
binary is still present. We usually rely on our dependency logic to protect
us from this but for gzip, we don't have this protection since its not listed
by all its users (and doing so would be impractical).

This patch installed pigz and gzip into their own directory which we only
add to PATH when we explictly want these binaries in much the same way we do
with perl-native. This means dependency logic is correct when we use the binary
and everything should work well.

The patch adds an explict dependency into image.bbclass since the accelerated
speed of compression is most appreciated at rootfs time.

(From OE-Core rev: 7a98c0ef28822ae1fcee45b14db3edcfd4c7ad8f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-21 15:33:07 +00:00
Richard Purdie a9873f12e5 pigz: Ensure DEPENDS on zlib exists for native and target versions
This avoids a build failure for the target version when zlib hasn't built yet.

(From OE-Core rev: 3b0a69a99a3a56aa88d69c9288b17a38fa9956b8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-19 14:37:46 +00:00
Björn Stenberg 3f23b2f1b0 Add pigz as gzip-native alternative.
pigz, which stands for parallel implementation of gzip, is a fully functional replacement for gzip that exploits multiple processors and multiple cores to the hilt when compressing data. pigz was written by Mark Adler, and uses the zlib and pthread libraries.

This recipe adds pigz as an alternative gzip-native implementation only.

(From OE-Core rev: fe5f165c775ccef36a251bb83ca5dadbd209e355)

Signed-off-by: Björn Stenberg <bjst@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-19 14:37:35 +00:00