* [PATCH] zypper: Fix build with gcc 4.7
@ 2012-03-28 2:41 Khem Raj
2012-03-28 9:16 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2012-03-28 2:41 UTC (permalink / raw)
To: openembedded-core
More details in patch header
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../recipes-extended/zypper/zypper/gcc-scope.patch | 20 ++++++++++++++++++++
meta/recipes-extended/zypper/zypper_git.bb | 3 ++-
2 files changed, 22 insertions(+), 1 deletions(-)
create mode 100644 meta/recipes-extended/zypper/zypper/gcc-scope.patch
diff --git a/meta/recipes-extended/zypper/zypper/gcc-scope.patch b/meta/recipes-extended/zypper/zypper/gcc-scope.patch
new file mode 100644
index 0000000..a35c0d9
--- /dev/null
+++ b/meta/recipes-extended/zypper/zypper/gcc-scope.patch
@@ -0,0 +1,20 @@
+Fix errors like below
+
+| /home/kraj/work/openembedded-core/build/tmp-eglibc/work/qemumips-oe-linux/zypper-1.5.3-git1+2c5bb6ceb99ecd950ef993e43d77bf0569ea0582-r1/git/src/utils/console.cc:55:8: error: '::isatty' has not been declared
+| /home/kraj/work/openembedded-core/build/tmp-eglibc/work/qemumips-oe-linux/zypper-1.5.3-git1+2c5bb6ceb99ecd950ef993e43d77bf0569ea0582-r1/git/src/utils/console.cc:55:17: error: 'STDOUT_FILENO' was not declared in this scope
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+Upstream-Status: Pending
+Index: git/src/utils/console.cc
+===================================================================
+--- git.orig/src/utils/console.cc 2012-03-27 19:12:06.171036356 -0700
++++ git/src/utils/console.cc 2012-03-27 19:12:52.887038622 -0700
+@@ -15,6 +15,7 @@
+ #include <readline/readline.h>
+ #include <readline/history.h>
+ #include <cstdlib>
++#include <unistd.h>
+
+ using namespace std;
+
diff --git a/meta/recipes-extended/zypper/zypper_git.bb b/meta/recipes-extended/zypper/zypper_git.bb
index e5963be..56ccc86 100644
--- a/meta/recipes-extended/zypper/zypper_git.bb
+++ b/meta/recipes-extended/zypper/zypper_git.bb
@@ -5,7 +5,7 @@ LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=3201406e350b39e05a82e28b5020f413"
DEPENDS = "libzypp augeas"
-PR = "r1"
+PR = "r2"
SRCREV = "2c5bb6ceb99ecd950ef993e43d77bf0569ea0582"
inherit cmake
@@ -15,6 +15,7 @@ SRC_URI = "git://github.com/openSUSE/zypper.git;protocol=git \
file://cmake_libxml2.patch \
file://dso_linking_change_build_fix.patch \
file://rpm5-flag.patch \
+ file://gcc-scope.patch \
"
S = "${WORKDIR}/git"
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] zypper: Fix build with gcc 4.7
2012-03-28 2:41 [PATCH] zypper: Fix build with gcc 4.7 Khem Raj
@ 2012-03-28 9:16 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2012-03-28 9:16 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, 2012-03-27 at 19:41 -0700, Khem Raj wrote:
> More details in patch header
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> .../recipes-extended/zypper/zypper/gcc-scope.patch | 20 ++++++++++++++++++++
> meta/recipes-extended/zypper/zypper_git.bb | 3 ++-
> 2 files changed, 22 insertions(+), 1 deletions(-)
> create mode 100644 meta/recipes-extended/zypper/zypper/gcc-scope.patch
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-28 9:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-28 2:41 [PATCH] zypper: Fix build with gcc 4.7 Khem Raj
2012-03-28 9:16 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox