summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm/rpm-stub-out-git_strerror.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm/rpm-stub-out-git_strerror.patch')
-rw-r--r--meta/recipes-devtools/rpm/rpm/rpm-stub-out-git_strerror.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/rpm-stub-out-git_strerror.patch b/meta/recipes-devtools/rpm/rpm/rpm-stub-out-git_strerror.patch
new file mode 100644
index 0000000000..2cfc163fe1
--- /dev/null
+++ b/meta/recipes-devtools/rpm/rpm/rpm-stub-out-git_strerror.patch
@@ -0,0 +1,60 @@
1git: fix: stud-out git_strerror when --without-git
2
3Patch taken from the cvs repo,http://www.mail-archive.com/rpm-cvs@rpm5.org/msg08907.html.
4
5Upstream-status: Backport
6
7Signed-off-by: Morgan Little <morgan.little@windriver.com>
8
9Server: rpm5.org Name: Jeff Johnson
10Root: /v/rpm/cvs Email: j...@rpm5.org
11Module: rpm Date: 07-Jun-2012 16:17:02
12Branch: rpm-5_4 Handle: 2012060714165803
13
14Modified files: (Branch: rpm-5_4)
15 rpm CHANGES
16 rpm/rpmio rpmgit.c tgit.c
17
18Log:
19 - git: fix: stub-out git_strerror when --without-git.
20
21Summary:
22 Revision Changes Path
23 2.1.2.11 +3 -1 rpm/rpmio/rpmgit.c
24 1.1.2.7 +0 -1 rpm/rpmio/tgit.c
25____________________________________________________________________________
26Index: rpm/rpmio/rpmgit.c
27============================================================================
28--- rpm/rpmio/rpmgit.c
29+++ rpm/rpmio/rpmgit.c
30@@ -145,6 +145,9 @@
31 #endif /* defined(WITH_LIBGT2) */
32
33 /*==============================================================*/
34+#if !defined(WITH_LIBGIT2)
35+#define git_strerror(_rc) ""
36+#endif
37
38 static int Xchkgit(/*@unused@*/ rpmgit git, const char * msg,
39 int error, int printit,
40@@ -157,7 +157,6 @@
41 int rc = error;
42
43 if (printit && rc) {
44- /* XXX git_strerror? */
45 rpmlog(RPMLOG_ERR, "%s:%s:%u: %s(%d): %s\n",
46 func, fn, ln, msg, rc, git_strerror(rc));
47 }
48Index: rpm/rpmio/tgit.c
49============================================================================
50--- rpm/rpmio/tgit.c
51+++ rpm/rpmio/tgit.c
52@@ -34,7 +34,6 @@
53 int rc = error;
54
55 if (printit && rc) {
56- /* XXX git_strerror? */
57 rpmlog(RPMLOG_ERR, "%s:%s:%u: %s(%d): %s\n",
58 func, fn, ln, msg, rc, git_strerror(rc));
59 }
60