[oe-commits] Denys Dmytriyenko : git: fix configure failing on snprintf-returns-bogus check when cross-compiling

GIT User account git at amethyst.openembedded.net
Tue Nov 18 21:13:50 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 46e30ed6ebb1a872f919363c6ff047344049079c
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=46e30ed6ebb1a872f919363c6ff047344049079c

Author: Denys Dmytriyenko <denis at denix.org>
Date:   Tue Nov 18 16:08:52 2008 -0500

git: fix configure failing on snprintf-returns-bogus check when cross-compiling

---

 packages/git/files/snprintf-returns-bogus.patch |   12 ++++++++++++
 packages/git/git_1.6.0.4.bb                     |    7 ++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/packages/git/files/snprintf-returns-bogus.patch b/packages/git/files/snprintf-returns-bogus.patch
new file mode 100644
index 0000000..568bb1f
--- /dev/null
+++ b/packages/git/files/snprintf-returns-bogus.patch
@@ -0,0 +1,12 @@
+--- git-1.6.0.4-orig/configure.ac	2008-11-18 15:28:03.000000000 -0500
++++ git-1.6.0.4/configure.ac	2008-11-18 15:30:45.000000000 -0500
+@@ -373,7 +373,8 @@
+ 		  if (snprintf(buf, 3, "%s", "12345") != 5
+ 		      || strcmp(buf, "12")) return 1]])],
+ 	[ac_cv_snprintf_returns_bogus=no],
+-	[ac_cv_snprintf_returns_bogus=yes])
++	[ac_cv_snprintf_returns_bogus=yes],
++	[ac_cv_snprintf_returns_bogus=no])
+ ])
+ if test $ac_cv_snprintf_returns_bogus = yes; then
+ 	SNPRINTF_RETURNS_BOGUS=UnfortunatelyYes
diff --git a/packages/git/git_1.6.0.4.bb b/packages/git/git_1.6.0.4.bb
index e06a4b2..e839ab9 100644
--- a/packages/git/git_1.6.0.4.bb
+++ b/packages/git/git_1.6.0.4.bb
@@ -1,4 +1,9 @@
 require git.inc
+
+SRC_URI += "file://snprintf-returns-bogus.patch;patch=1"
+
 DEPENDS = "openssl curl zlib expat"
 RDEPENDS = "perl perl-module-file-path cpio findutils sed"
-PR = "r3"
+PR = "r4"
+
+FILES_${PN}-dbg += "${libexecdir}/git-core/.debug"





More information about the Openembedded-commits mailing list