summaryrefslogtreecommitdiff
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-21 11:26:09 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-21 14:32:15 +0000
commit7a98c0ef28822ae1fcee45b14db3edcfd4c7ad8f (patch)
treef9ab1e0f120dbe62f71d2229602d0184bb977d23 /meta/recipes-extended
parent518dffe20178f5969dddccb17d6ab347afb72beb (diff)
downloadopenembedded-core-7a98c0ef28822ae1fcee45b14db3edcfd4c7ad8f.tar.gz
openembedded-core-7a98c0ef28822ae1fcee45b14db3edcfd4c7ad8f.tar.bz2
openembedded-core-7a98c0ef28822ae1fcee45b14db3edcfd4c7ad8f.tar.xz
openembedded-core-7a98c0ef28822ae1fcee45b14db3edcfd4c7ad8f.zip
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/gzip/gzip_1.4.bb4
-rw-r--r--meta/recipes-extended/pigz/pigz_2.2.4.bb4
2 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-extended/gzip/gzip_1.4.bb b/meta/recipes-extended/gzip/gzip_1.4.bb
index ab8a74432..8f4a237ec 100644
--- a/meta/recipes-extended/gzip/gzip_1.4.bb
+++ b/meta/recipes-extended/gzip/gzip_1.4.bb
@@ -1,6 +1,8 @@
require gzip.inc
-PR = "r0"
+PR = "r1"
+
+NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"
BBCLASSEXTEND = "native"
diff --git a/meta/recipes-extended/pigz/pigz_2.2.4.bb b/meta/recipes-extended/pigz/pigz_2.2.4.bb
index 598bbe35b..eaf00c670 100644
--- a/meta/recipes-extended/pigz/pigz_2.2.4.bb
+++ b/meta/recipes-extended/pigz/pigz_2.2.4.bb
@@ -1,6 +1,8 @@
require pigz.inc
-PR = "r0"
+PR = "r1"
+
+NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"
BBCLASSEXTEND = "native"