diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2010-08-31 11:42:01 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-31 16:45:38 +0100 |
commit | 1f0ba7c2b0429909ead5ae8fc015a827b08edf85 (patch) | |
tree | a9679e910c26fd805fcf84085f9bdce0588ffa16 /meta/packages | |
parent | 4c00be1ecbfbad481a818a8275d7214458faee32 (diff) | |
download | poky-1f0ba7c2b0429909ead5ae8fc015a827b08edf85.tar.gz |
sed: Fix ppc build failure
sed will firstly check whether there is a working getline function
in system, if not (ppc), it use its self-defined getline().
However in 4.1.2, this function definition is not match with its
declaration. Fixes [BUGID #243]
Also fixes metadata.
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/sed/sed-4.1.2/fix_return_type.patch | 16 | ||||
-rw-r--r-- | meta/packages/sed/sed_4.1.2.bb | 12 |
2 files changed, 24 insertions, 4 deletions
diff --git a/meta/packages/sed/sed-4.1.2/fix_return_type.patch b/meta/packages/sed/sed-4.1.2/fix_return_type.patch new file mode 100644 index 0000000000..d91960b3ee --- /dev/null +++ b/meta/packages/sed/sed-4.1.2/fix_return_type.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | Change the getline return type to match its declaration. | ||
2 | |||
3 | Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> | ||
4 | |||
5 | diff -urN sed-4.1.2-orig/lib/getline.c sed-4.1.2/lib/getline.c | ||
6 | --- sed-4.1.2-orig/lib/getline.c 2010-08-31 08:47:50.070094024 +0800 | ||
7 | +++ sed-4.1.2/lib/getline.c 2010-08-31 08:48:50.982178172 +0800 | ||
8 | @@ -30,7 +30,7 @@ | ||
9 | necessary. Returns the number of characters read (not including the | ||
10 | null terminator), or -1 on error or EOF. */ | ||
11 | |||
12 | -size_t | ||
13 | +ssize_t | ||
14 | getline (lineptr, n, stream) | ||
15 | char **lineptr; | ||
16 | size_t *n; | ||
diff --git a/meta/packages/sed/sed_4.1.2.bb b/meta/packages/sed/sed_4.1.2.bb index 90bcc74f5c..09bd3e18cc 100644 --- a/meta/packages/sed/sed_4.1.2.bb +++ b/meta/packages/sed/sed_4.1.2.bb | |||
@@ -1,11 +1,15 @@ | |||
1 | LICENSE = "GPL" | ||
2 | SECTION = "console/utils" | ||
3 | DESCRIPTION = "sed is a Stream EDitor." | 1 | DESCRIPTION = "sed is a Stream EDitor." |
4 | PR = "r2" | 2 | HOMEPAGE = "http://www.gnu.org/software/sed/" |
3 | LICENSE = "GPLv2+" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
5 | file://sed/sed.h;beginline=1;endline=17;md5=e00ffd1837f298439a214fd197f6a407" | ||
6 | SECTION = "console/utils" | ||
7 | PR = "r3" | ||
5 | 8 | ||
6 | DEPENDS = "gettext" | 9 | DEPENDS = "gettext" |
7 | 10 | ||
8 | SRC_URI = "${GNU_MIRROR}/sed/sed-${PV}.tar.gz" | 11 | SRC_URI = "${GNU_MIRROR}/sed/sed-${PV}.tar.gz \ |
12 | file://fix_return_type.patch" | ||
9 | 13 | ||
10 | inherit autotools | 14 | inherit autotools |
11 | 15 | ||