diff options
| author | Qing He <qing.he@intel.com> | 2010-07-06 13:19:10 +0800 |
|---|---|---|
| committer | Joshua Lock <josh@linux.intel.com> | 2010-07-07 17:12:56 +0100 |
| commit | 21d586b47c8c5338913c5e8ca2ee604409cc57a0 (patch) | |
| tree | 27c72e76f95a54877cd814c90da3c878ca280267 | |
| parent | 71466ea8b3a0a5a2d2cc193eae8b1d23f1a7f5f8 (diff) | |
| download | poky-21d586b47c8c5338913c5e8ca2ee604409cc57a0.tar.gz | |
file: upgrade to version 5.04
from 4.18
changes:
- remove native-fix.patch and sed line in do_configure_prepend,
AM_CONDITIONAL(IS_CROSS_COMPILE, ...) works well
- fix the bug of not packaging ${datadir}/misc/magic.mgc,
without this file, this utility isn't very useful
- add zlib as explicit build dependency
Signed-off-by: Qing He <qing.he@intel.com>
| -rw-r--r-- | meta/packages/file/file/native-fix.diff | 13 | ||||
| -rw-r--r-- | meta/packages/file/file_5.04.bb (renamed from meta/packages/file/file_4.18.bb) | 10 |
2 files changed, 6 insertions, 17 deletions
diff --git a/meta/packages/file/file/native-fix.diff b/meta/packages/file/file/native-fix.diff deleted file mode 100644 index d17215a1b4..0000000000 --- a/meta/packages/file/file/native-fix.diff +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | Index: file-4.16/magic/Makefile.am | ||
| 2 | =================================================================== | ||
| 3 | --- file-4.16.orig/magic/Makefile.am 2005-08-18 17:20:49.000000000 +0200 | ||
| 4 | +++ file-4.16/magic/Makefile.am 2006-03-08 17:01:13.000000000 +0100 | ||
| 5 | @@ -18,7 +18,7 @@ | ||
| 6 | if IS_CROSS_COMPILE | ||
| 7 | FILE_COMPILE = file | ||
| 8 | else | ||
| 9 | -FILE_COMPILE = $(top_builddir)/src/file | ||
| 10 | +FILE_COMPILE = ../src/file | ||
| 11 | endif | ||
| 12 | |||
| 13 | magic.mgc: magic | ||
diff --git a/meta/packages/file/file_4.18.bb b/meta/packages/file/file_5.04.bb index 4c8e64c308..d872be5dfa 100644 --- a/meta/packages/file/file_4.18.bb +++ b/meta/packages/file/file_5.04.bb | |||
| @@ -5,21 +5,23 @@ SECTION = "console/utils" | |||
| 5 | 5 | ||
| 6 | # two clause BSD | 6 | # two clause BSD |
| 7 | LICENSE = "BSD" | 7 | LICENSE = "BSD" |
| 8 | LIC_FILES_CHKSUM = "file://COPYING;beginline=2;md5=6a7382872edb68d33e1a9398b6e03188" | ||
| 8 | 9 | ||
| 9 | DEPENDS = "file-native" | 10 | DEPENDS = "zlib file-native" |
| 10 | DEPENDS_virtclass-native = "" | 11 | DEPENDS_virtclass-native = "zlib-native" |
| 12 | PR = "r0" | ||
| 11 | 13 | ||
| 12 | SRC_URI = "ftp://ftp.astron.com/pub/file/file-${PV}.tar.gz \ | 14 | SRC_URI = "ftp://ftp.astron.com/pub/file/file-${PV}.tar.gz \ |
| 13 | file://dump \ | 15 | file://dump \ |
| 14 | file://filesystems" | 16 | file://filesystems" |
| 15 | SRC_URI_append_virtclass-native = " file://native-fix.diff;patch=1" | ||
| 16 | 17 | ||
| 17 | inherit autotools | 18 | inherit autotools |
| 18 | 19 | ||
| 19 | do_configure_prepend() { | 20 | do_configure_prepend() { |
| 20 | sed -i -e 's,$(top_builddir)/src/file,file,' ${S}/magic/Makefile.am | ||
| 21 | cp ${WORKDIR}/dump ${S}/magic/Magdir/ | 21 | cp ${WORKDIR}/dump ${S}/magic/Magdir/ |
| 22 | cp ${WORKDIR}/filesystems ${S}/magic/Magdir/ | 22 | cp ${WORKDIR}/filesystems ${S}/magic/Magdir/ |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | FILES_${PN} += "${datadir}/misc/*.mgc" | ||
| 26 | |||
| 25 | BBCLASSEXTEND = "native" | 27 | BBCLASSEXTEND = "native" |
