summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-05-19 20:56:00 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-20 11:40:44 (GMT)
commit7576968a0eebb1fef2b78f41026a7c83a56ffd32 (patch)
tree6f25d7e3b6d6d53985d7165982607001cb330ed2
parent9fbd9b93aea780c8168f6de2692148b14dd9d6a7 (diff)
downloadpoky-7576968a0eebb1fef2b78f41026a7c83a56ffd32.tar.gz
opkg-utils: Synchronise with OE
Import mtime-int.patch from OE commit c81990aecae3bdf70a7c924699776b248ab7a006 Pass LDFLAGS to linker to avoid missing GNU_HASH QA errors (From OE-Core rev: d85c4cb45159bbc1da138def38acd0134b9d0c4c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/opkg-utils/opkg-utils/mtime-int.patch29
-rw-r--r--meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb7
2 files changed, 34 insertions, 2 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils/mtime-int.patch b/meta/recipes-devtools/opkg-utils/opkg-utils/mtime-int.patch
new file mode 100644
index 0000000..fdbce21
--- /dev/null
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils/mtime-int.patch
@@ -0,0 +1,29 @@
1Convert mtime to int before comparing it
2
3The st_mtime attribute (which is a float) is compared against a value
4from the timestamp database, which was stored as an integer there.
5
6When working on a filesystem with precise timestamps the comparision
7will fail nearly everytime hence.
8
9Although it might be possible to enhance the database to store the
10fractional part too, this will complicate things more than we would
11gain by this change.
12
13Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
14
15Upstream-Status: Pending
16
17Index: opkg-utils/opkg-make-index
18===================================================================
19--- opkg-utils.orig/opkg-make-index
20+++ opkg-utils/opkg-make-index
21@@ -100,7 +100,7 @@ for filename in files:
22 pkg = None
23 fnameStat = os.stat(filename)
24 if old_pkg_hash.has_key(basename):
25- if pkgsStamps.has_key(basename) and fnameStat.st_mtime == pkgsStamps[basename]:
26+ if pkgsStamps.has_key(basename) and int(fnameStat.st_mtime) == pkgsStamps[basename]:
27 if (verbose):
28 sys.stderr.write("Found %s in Packages\n" % (filename,))
29 pkg = old_pkg_hash[basename]
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb
index 0db6f80..79cee2e 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb
@@ -9,10 +9,12 @@ RDEPENDS_${PN} = "python"
9RDEPENDS_${PN}_virtclass-native = "" 9RDEPENDS_${PN}_virtclass-native = ""
10SRCREV = "4747" 10SRCREV = "4747"
11PV = "0.1.8+svnr${SRCPV}" 11PV = "0.1.8+svnr${SRCPV}"
12PR = "r2" 12PR = "r3"
13 13
14SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http \ 14SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http \
15 file://index-ignore-filenotfound.patch" 15 file://index-ignore-filenotfound.patch \
16 file://mtime-int.patch \
17 "
16 18
17S = "${WORKDIR}/opkg-utils" 19S = "${WORKDIR}/opkg-utils"
18 20
@@ -24,3 +26,4 @@ do_install() {
24} 26}
25 27
26BBCLASSEXTEND = "native" 28BBCLASSEXTEND = "native"
29TARGET_CC_ARCH += "${LDFLAGS}"