diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:11 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:57 +0100 |
commit | d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch) | |
tree | f36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-extended/sed | |
parent | caab7fc509bf27706ff3248689f6afd04225cfda (diff) | |
download | poky-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz |
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/sed')
-rw-r--r-- | meta/recipes-extended/sed/sed-4.1.2/fix_return_type.patch | 16 | ||||
-rw-r--r-- | meta/recipes-extended/sed/sed_4.1.2.bb | 32 |
2 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-extended/sed/sed-4.1.2/fix_return_type.patch b/meta/recipes-extended/sed/sed-4.1.2/fix_return_type.patch new file mode 100644 index 0000000000..d91960b3ee --- /dev/null +++ b/meta/recipes-extended/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/recipes-extended/sed/sed_4.1.2.bb b/meta/recipes-extended/sed/sed_4.1.2.bb new file mode 100644 index 0000000000..09bd3e18cc --- /dev/null +++ b/meta/recipes-extended/sed/sed_4.1.2.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | DESCRIPTION = "sed is a Stream EDitor." | ||
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" | ||
8 | |||
9 | DEPENDS = "gettext" | ||
10 | |||
11 | SRC_URI = "${GNU_MIRROR}/sed/sed-${PV}.tar.gz \ | ||
12 | file://fix_return_type.patch" | ||
13 | |||
14 | inherit autotools | ||
15 | |||
16 | do_install () { | ||
17 | autotools_do_install | ||
18 | install -d ${D}${base_bindir} | ||
19 | mv ${D}${bindir}/sed ${D}${base_bindir}/sed.${PN} | ||
20 | } | ||
21 | |||
22 | |||
23 | pkg_postinst_${PN} () { | ||
24 | update-alternatives --install ${base_bindir}/sed sed sed.${PN} 100 | ||
25 | } | ||
26 | |||
27 | |||
28 | pkg_prerm_${PN} () { | ||
29 | update-alternatives --remove sed sed.${PN} | ||
30 | } | ||
31 | |||
32 | BBCLASSEXTEND = "native" | ||