[oe-commits] Otavio Salvador : squashfs-tools: refactor 3.3 and 4. 0 recipes and use INC_PR

git version control git at git.openembedded.org
Thu Oct 8 00:45:00 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 2b7891e0ffb5be605a87f581c1f58930db9654c7
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2b7891e0ffb5be605a87f581c1f58930db9654c7

Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Sat Sep 26 16:25:50 2009 -0300

squashfs-tools: refactor 3.3 and 4.0 recipes and use INC_PR

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>

---

 .../squashfs-tools/squashfs-tools-native_3.3.bb    |    2 +-
 .../squashfs-tools/squashfs-tools-native_4.0.bb    |    2 +-
 recipes/squashfs-tools/squashfs-tools.inc          |    7 ++++++-
 recipes/squashfs-tools/squashfs-tools_3.3.bb       |    8 ++------
 recipes/squashfs-tools/squashfs-tools_4.0.bb       |   11 ++---------
 5 files changed, 12 insertions(+), 18 deletions(-)

diff --git a/recipes/squashfs-tools/squashfs-tools-native_3.3.bb b/recipes/squashfs-tools/squashfs-tools-native_3.3.bb
index 5858bb1..1a82323 100644
--- a/recipes/squashfs-tools/squashfs-tools-native_3.3.bb
+++ b/recipes/squashfs-tools/squashfs-tools-native_3.3.bb
@@ -1,5 +1,5 @@
 require squashfs-tools_${PV}.bb
-PR = "r0"
+PR = "${INC_PR}.1"
 
 inherit native
 
diff --git a/recipes/squashfs-tools/squashfs-tools-native_4.0.bb b/recipes/squashfs-tools/squashfs-tools-native_4.0.bb
index 5858bb1..1a82323 100644
--- a/recipes/squashfs-tools/squashfs-tools-native_4.0.bb
+++ b/recipes/squashfs-tools/squashfs-tools-native_4.0.bb
@@ -1,5 +1,5 @@
 require squashfs-tools_${PV}.bb
-PR = "r0"
+PR = "${INC_PR}.1"
 
 inherit native
 
diff --git a/recipes/squashfs-tools/squashfs-tools.inc b/recipes/squashfs-tools/squashfs-tools.inc
index f27d9ec..d06e1e5 100644
--- a/recipes/squashfs-tools/squashfs-tools.inc
+++ b/recipes/squashfs-tools/squashfs-tools.inc
@@ -1,11 +1,16 @@
 DESCRIPTION = "Squashfs is a highly compressed read-only filesystem for Linux."
 SECTION = "base"
 LICENSE = "GPLv2"
-
 DEPENDS = "zlib"
+INC_PR = "r1"
 
 S = "${WORKDIR}/squashfs${@bb.data.getVar('PV',d,1).replace('r','-r')}/squashfs-tools"
 
+# required to share same place with -lzma specific packages
+FILESPATHPKG = "squashfs-tools-${PV}:squashfs-tools:files"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/squashfs/squashfs${@bb.data.getVar('PV',d,1).replace('r','-r')}.tar.gz"
+
 prefix = ""
 
 do_compile() {
diff --git a/recipes/squashfs-tools/squashfs-tools_3.3.bb b/recipes/squashfs-tools/squashfs-tools_3.3.bb
index 2bf0a98..ce6b7ce 100644
--- a/recipes/squashfs-tools/squashfs-tools_3.3.bb
+++ b/recipes/squashfs-tools/squashfs-tools_3.3.bb
@@ -1,8 +1,4 @@
 require squashfs-tools.inc
-PR = "r0"
-
-# some release have .tgz, some have .tar.gz, so keep that outside the .inc file
-
-SRC_URI = "${SOURCEFORGE_MIRROR}/squashfs/squashfs${@bb.data.getVar('PV',d,1).replace('r','-r')}.tgz \
-file://Makefile.patch;patch=1"
+PR = "${INC_PR}.1"
 
+SRC_URI += " file://Makefile.patch;patch=1"
diff --git a/recipes/squashfs-tools/squashfs-tools_4.0.bb b/recipes/squashfs-tools/squashfs-tools_4.0.bb
index 8299cd6..0de5794 100644
--- a/recipes/squashfs-tools/squashfs-tools_4.0.bb
+++ b/recipes/squashfs-tools/squashfs-tools_4.0.bb
@@ -1,12 +1,5 @@
 require squashfs-tools.inc
-PR = "r0"
+PR = "${INC_PR}.1"
 
 DEFAULT_PREFERENCE = "-1"
-
-# some release have .tgz, some have .tar.gz, so keep that outside the .inc file
-
-#http://ovh.dl.sourceforge.net/sourceforge/squashfs/squashfs4.0.tar.gz
-
-SRC_URI = "${SOURCEFORGE_MIRROR}/squashfs/squashfs${@bb.data.getVar('PV',d,1).replace('r','-r')}.tar.gz \
-file://Makefile.patch;patch=1"
-
+SRC_URI += " file://Makefile.patch;patch=1"





More information about the Openembedded-commits mailing list