diff options
| -rw-r--r-- | meta/recipes-devtools/rpm/rpm/rpm-stub-out-git_strerror.patch | 60 | ||||
| -rw-r--r-- | meta/recipes-devtools/rpm/rpm_5.4.9.bb | 3 |
2 files changed, 62 insertions, 1 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 @@ | |||
| 1 | git: fix: stud-out git_strerror when --without-git | ||
| 2 | |||
| 3 | Patch taken from the cvs repo,http://www.mail-archive.com/rpm-cvs@rpm5.org/msg08907.html. | ||
| 4 | |||
| 5 | Upstream-status: Backport | ||
| 6 | |||
| 7 | Signed-off-by: Morgan Little <morgan.little@windriver.com> | ||
| 8 | |||
| 9 | Server: rpm5.org Name: Jeff Johnson | ||
| 10 | Root: /v/rpm/cvs Email: j...@rpm5.org | ||
| 11 | Module: rpm Date: 07-Jun-2012 16:17:02 | ||
| 12 | Branch: rpm-5_4 Handle: 2012060714165803 | ||
| 13 | |||
| 14 | Modified files: (Branch: rpm-5_4) | ||
| 15 | rpm CHANGES | ||
| 16 | rpm/rpmio rpmgit.c tgit.c | ||
| 17 | |||
| 18 | Log: | ||
| 19 | - git: fix: stub-out git_strerror when --without-git. | ||
| 20 | |||
| 21 | Summary: | ||
| 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 | ____________________________________________________________________________ | ||
| 26 | Index: 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 | } | ||
| 48 | Index: 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 | |||
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.9.bb b/meta/recipes-devtools/rpm/rpm_5.4.9.bb index 41943652b0..671268bb85 100644 --- a/meta/recipes-devtools/rpm/rpm_5.4.9.bb +++ b/meta/recipes-devtools/rpm/rpm_5.4.9.bb | |||
| @@ -43,7 +43,7 @@ LICENSE = "LGPLv2.1" | |||
| 43 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" | 43 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" |
| 44 | 44 | ||
| 45 | DEPENDS = "libpcre attr acl popt ossp-uuid file bison-native" | 45 | DEPENDS = "libpcre attr acl popt ossp-uuid file bison-native" |
| 46 | PR = "r50" | 46 | PR = "r51" |
| 47 | 47 | ||
| 48 | # rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed | 48 | # rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed |
| 49 | # in order to extract the distribution SRPM into a format we can extract... | 49 | # in order to extract the distribution SRPM into a format we can extract... |
| @@ -78,6 +78,7 @@ SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.9-0.20120508.src.rpm;ex | |||
| 78 | file://dbconvert.patch \ | 78 | file://dbconvert.patch \ |
| 79 | file://rpm-uuid-include.patch \ | 79 | file://rpm-uuid-include.patch \ |
| 80 | file://makefile-am-exec-hook.patch \ | 80 | file://makefile-am-exec-hook.patch \ |
| 81 | file://rpm-stub-out-git_strerror.patch \ | ||
| 81 | " | 82 | " |
| 82 | 83 | ||
| 83 | SRC_URI[md5sum] = "60d56ace884340c1b3fcac6a1d58e768" | 84 | SRC_URI[md5sum] = "60d56ace884340c1b3fcac6a1d58e768" |
