Skip to contentSkip to conversation

file: remove obsolete version check patch

PATCH New Jonathan Liu 1 participant 1 message May 31, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 file: remove obsolete version check patch

After e8d2a2a3646f964ec61ece62e14788cd7184dd01 [OE-Core], file --version returns file-5.14 instead of file.real-5.14 so the patch is no longer necessary and causes the build to fail with the following:

| Cannot use the installed version of file (file-5.14) to
| cross-compile file 5.14
| Please install file 5.14 locally first
---
 .../file/file/fix_version_check.patch               | 21 ---------------------
 meta/recipes-devtools/file/file_5.14.bb             |  1 -
 2 files changed, 22 deletions(-)
 delete mode 100644 meta/recipes-devtools/file/file/fix_version_check.patch
meta/recipes-devtools/file/file/fix_version_check.patch deleted +0 -21
deleted file mode 100644
index bd24ccb..0000000
@@ -1,21 +0,0 @@
-Since we are cross-compiling and need to have a cover script this
-version check sees "file.real-5.09" not "file-5.09", so fix the
-sed.
-
-Upstream-Status: Inapproriate [build-specific]
-
-Signed-off-by: Saul Wold <[email protected]>
-
-Index: file-5.09/magic/Makefile.am
-===================================================================
---- file-5.09.orig/magic/Makefile.am
-+++ file-5.09/magic/Makefile.am
-@@ -260,7 +260,7 @@ ${MAGIC}: $(EXTRA_DIST) $(FILE_COMPILE_D
- 	@(if expr "${FILE_COMPILE}" : '.*/.*' > /dev/null; then \
- 	    echo "Using ${FILE_COMPILE} to generate ${MAGIC}" > /dev/null; \
- 	  else \
--	    v=$$(file --version | sed -e s/file-// -e q); \
-+	    v=$$(file --version | sed -e s/file.real-// -e q); \
- 	    if [ "$$v" != "${PACKAGE_VERSION}" ]; then \
- 		echo "Cannot use the installed version of file ($$v) to"; \
- 		echo "cross-compile file ${PACKAGE_VERSION}"; \
meta/recipes-devtools/file/file_5.14.bb +0 -1
index 4270ff2..c8b902c 100644
@@ -13,7 +13,6 @@ DEPENDS_class-native = "zlib-native"
 PR = "r0"
 
 SRC_URI = "ftp://ftp.astron.com/pub/file/file-${PV}.tar.gz \
-           file://fix_version_check.patch \
            file://dump \
            file://filesystems"
 
Signature · 1 line
1.8.3