summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sat-solver/sat-solver/futimes.patch
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-01-23 12:10:12 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-24 20:09:00 +0000
commit7b5b8d1eb0bd5ffb7f116e2a8aba9e65a2cb281c (patch)
treef95ae27252d0baf9c9c4173aec9e23637b1bed10 /meta/recipes-extended/sat-solver/sat-solver/futimes.patch
parentfcdc8d7f6d10b3abf9f6a28cff55b1cc89b88bc9 (diff)
downloadpoky-7b5b8d1eb0bd5ffb7f116e2a8aba9e65a2cb281c.tar.gz
sat-solver: remove
This was only needed by libzypp, which has itself been removed. (From OE-Core rev: 905f0d407a259f89e420ccdbee5a471cb0fea8f5) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sat-solver/sat-solver/futimes.patch')
-rw-r--r--meta/recipes-extended/sat-solver/sat-solver/futimes.patch32
1 files changed, 0 insertions, 32 deletions
diff --git a/meta/recipes-extended/sat-solver/sat-solver/futimes.patch b/meta/recipes-extended/sat-solver/sat-solver/futimes.patch
deleted file mode 100644
index b24d852ae7..0000000000
--- a/meta/recipes-extended/sat-solver/sat-solver/futimes.patch
+++ /dev/null
@@ -1,32 +0,0 @@
1This patch uses utimes instead of futimes for uclibc
2since futimes is not available
3
4Upstream-Status: Pending
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6
7Index: git/examples/solv.c
8===================================================================
9--- git.orig/examples/solv.c 2012-06-01 12:06:22.041552848 -0700
10+++ git/examples/solv.c 2012-06-01 12:49:17.417677449 -0700
11@@ -1027,7 +1027,8 @@
12 int flags;
13
14 cinfo = repo->appdata;
15- if (!(fp = fopen(calccachepath(repo, repoext), "r")))
16+ const char* fname = calccachepath(repo, repoext);
17+ if (!(fp = fopen(fname, "r")))
18 return 0;
19 if (fseek(fp, -sizeof(mycookie), SEEK_END) || fread(mycookie, sizeof(mycookie), 1, fp) != 1)
20 {
21@@ -1068,7 +1069,11 @@
22 memcpy(cinfo->extcookie, myextcookie, sizeof(myextcookie));
23 }
24 if (mark)
25+#ifdef __UCLIBC__
26+ utimes(fname, 0); /* try to set modification time */
27+#else
28 futimes(fileno(fp), 0); /* try to set modification time */
29+#endif
30 fclose(fp);
31 return 1;
32 }