diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-extended/sed | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-extended/sed')
-rw-r--r-- | meta/recipes-extended/sed/sed-4.1.2/Makevars | 25 | ||||
-rw-r--r-- | meta/recipes-extended/sed/sed-4.1.2/fix_return_type.patch | 18 | ||||
-rw-r--r-- | meta/recipes-extended/sed/sed-4.1.2/sed-4.1.2_fix_for_automake-1.12.patch | 37 | ||||
-rw-r--r-- | meta/recipes-extended/sed/sed-4.2.2/run-ptest | 3 | ||||
-rw-r--r-- | meta/recipes-extended/sed/sed-4.2.2/sed-add-ptest.patch | 66 | ||||
-rw-r--r-- | meta/recipes-extended/sed/sed_4.1.2.bb | 34 | ||||
-rw-r--r-- | meta/recipes-extended/sed/sed_4.2.2.bb | 43 |
7 files changed, 226 insertions, 0 deletions
diff --git a/meta/recipes-extended/sed/sed-4.1.2/Makevars b/meta/recipes-extended/sed/sed-4.1.2/Makevars new file mode 100644 index 0000000000..8b09f53b0f --- /dev/null +++ b/meta/recipes-extended/sed/sed-4.1.2/Makevars | |||
@@ -0,0 +1,25 @@ | |||
1 | # Makefile variables for PO directory in any package using GNU gettext. | ||
2 | |||
3 | # Usually the message domain is the same as the package name. | ||
4 | DOMAIN = $(PACKAGE) | ||
5 | |||
6 | # These two variables depend on the location of this directory. | ||
7 | subdir = po | ||
8 | top_builddir = .. | ||
9 | |||
10 | # These options get passed to xgettext. | ||
11 | XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ | ||
12 | |||
13 | # This is the copyright holder that gets inserted into the header of the | ||
14 | # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding | ||
15 | # package. (Note that the msgstr strings, extracted from the package's | ||
16 | # sources, belong to the copyright holder of the package.) Translators are | ||
17 | # expected to transfer the copyright for their translations to this person | ||
18 | # or entity, or to disclaim their copyright. The empty string stands for | ||
19 | # the public domain; in this case the translators are expected to disclaim | ||
20 | # their copyright. | ||
21 | COPYRIGHT_HOLDER = Free Software Foundation, Inc. | ||
22 | |||
23 | # This is the list of locale categories, beyond LC_MESSAGES, for which the | ||
24 | # message catalogs shall be used. It is usually empty. | ||
25 | EXTRA_LOCALE_CATEGORIES = | ||
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..836551ea18 --- /dev/null +++ b/meta/recipes-extended/sed/sed-4.1.2/fix_return_type.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Change the getline return type to match its declaration. | ||
4 | |||
5 | Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> | ||
6 | |||
7 | diff -urN sed-4.1.2-orig/lib/getline.c sed-4.1.2/lib/getline.c | ||
8 | --- sed-4.1.2-orig/lib/getline.c 2010-08-31 08:47:50.070094024 +0800 | ||
9 | +++ sed-4.1.2/lib/getline.c 2010-08-31 08:48:50.982178172 +0800 | ||
10 | @@ -30,7 +30,7 @@ | ||
11 | necessary. Returns the number of characters read (not including the | ||
12 | null terminator), or -1 on error or EOF. */ | ||
13 | |||
14 | -size_t | ||
15 | +ssize_t | ||
16 | getline (lineptr, n, stream) | ||
17 | char **lineptr; | ||
18 | size_t *n; | ||
diff --git a/meta/recipes-extended/sed/sed-4.1.2/sed-4.1.2_fix_for_automake-1.12.patch b/meta/recipes-extended/sed/sed-4.1.2/sed-4.1.2_fix_for_automake-1.12.patch new file mode 100644 index 0000000000..80594068ac --- /dev/null +++ b/meta/recipes-extended/sed/sed-4.1.2/sed-4.1.2_fix_for_automake-1.12.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | automake-1.12.x has deprecated use of @mkdir_p@, fix the issue by using @MKDIR_P@ instead. | ||
4 | |||
5 | Avoid this build issue: | ||
6 | | make[1]: mkdir_p@: Command not found | ||
7 | | make[1]: *** [install-data-yes] Error 127 | ||
8 | |||
9 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
10 | 2012/07/13 | ||
11 | |||
12 | Index: sed-4.1.2/intl/Makefile.in | ||
13 | =================================================================== | ||
14 | --- sed-4.1.2.orig/intl/Makefile.in | ||
15 | +++ sed-4.1.2/intl/Makefile.in | ||
16 | @@ -40,7 +40,7 @@ subdir = intl | ||
17 | INSTALL = @INSTALL@ | ||
18 | INSTALL_DATA = @INSTALL_DATA@ | ||
19 | mkinstalldirs = $(mkdir_p) | ||
20 | -mkdir_p = @mkdir_p@ | ||
21 | +mkdir_p = @MKDIR_P@ | ||
22 | |||
23 | l = @INTL_LIBTOOL_SUFFIX_PREFIX@ | ||
24 | |||
25 | Index: sed-4.1.2/po/Makefile.in.in | ||
26 | =================================================================== | ||
27 | --- sed-4.1.2.orig/po/Makefile.in.in | ||
28 | +++ sed-4.1.2/po/Makefile.in.in | ||
29 | @@ -29,7 +29,7 @@ gettextsrcdir = $(datadir)/gettext/po | ||
30 | INSTALL = /srv/home/nitin/builds2/build0/tmp/sysroots/x86_64-linux/usr/bin/install -c | ||
31 | INSTALL_DATA = ${INSTALL} -m 644 | ||
32 | mkinstalldirs = $(mkdir_p) | ||
33 | -mkdir_p = @mkdir_p@ | ||
34 | +mkdir_p = @MKDIR_P@ | ||
35 | |||
36 | CC = i586-poky-linux-gcc -m32 -march=i586 --sysroot=/srv/home/nitin/builds2/build0/tmp/sysroots/qemux86 | ||
37 | GMSGFMT = /srv/home/nitin/builds2/build0/tmp/sysroots/x86_64-linux/usr/bin/msgfmt | ||
diff --git a/meta/recipes-extended/sed/sed-4.2.2/run-ptest b/meta/recipes-extended/sed/sed-4.2.2/run-ptest new file mode 100644 index 0000000000..7c0f62770e --- /dev/null +++ b/meta/recipes-extended/sed/sed-4.2.2/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | make -C testsuite -k runtest-TESTS | ||
diff --git a/meta/recipes-extended/sed/sed-4.2.2/sed-add-ptest.patch b/meta/recipes-extended/sed/sed-4.2.2/sed-add-ptest.patch new file mode 100644 index 0000000000..105e8b745b --- /dev/null +++ b/meta/recipes-extended/sed/sed-4.2.2/sed-add-ptest.patch | |||
@@ -0,0 +1,66 @@ | |||
1 | sed: add ptest | ||
2 | |||
3 | ptest needs buildtest-TESTS and runtest-TESTS targets. | ||
4 | serial-tests is required to generate those targets. | ||
5 | |||
6 | And fix following error after add serial-tests. | ||
7 | |||
8 | [snip] | ||
9 | help2man: can't get `--help' info from ../sed/sed | ||
10 | make[2]: *** [sed.1] Error 2 | ||
11 | [snip] | ||
12 | |||
13 | Upstream-Status: Inappropriate | ||
14 | |||
15 | Signed-off-by: Chong Lu <Chong.Lu@windriver.com> | ||
16 | --- | ||
17 | configure.ac | 2 +- | ||
18 | doc/Makefile.am | 2 +- | ||
19 | testsuite/Makefile.am | 6 ++++++ | ||
20 | 3 files changed, 8 insertions(+), 2 deletions(-) | ||
21 | |||
22 | diff --git a/configure.ac b/configure.ac | ||
23 | index 9d33ec9..4f0c532 100644 | ||
24 | --- a/configure.ac | ||
25 | +++ b/configure.ac | ||
26 | @@ -4,7 +4,7 @@ AC_CONFIG_AUX_DIR(build-aux) | ||
27 | AC_CONFIG_SRCDIR([sed/sed.c]) | ||
28 | AM_CONFIG_HEADER(config.h:config_h.in) | ||
29 | AC_PREREQ(2.60) | ||
30 | -AM_INIT_AUTOMAKE | ||
31 | +AM_INIT_AUTOMAKE([serial-tests]) | ||
32 | |||
33 | SED_FEATURE_VERSION=4.2.2 | ||
34 | AC_DEFINE_UNQUOTED(SED_FEATURE_VERSION, "$SED_FEATURE_VERSION", | ||
35 | diff --git a/doc/Makefile.am b/doc/Makefile.am | ||
36 | index af6975c..6fd8c9a 100644 | ||
37 | --- a/doc/Makefile.am | ||
38 | +++ b/doc/Makefile.am | ||
39 | @@ -25,7 +25,7 @@ $(srcdir)/s-texi: sed-in.texi $(srcdir)/groupify.sed | ||
40 | fi | ||
41 | echo stamp > $(srcdir)/s-texi | ||
42 | |||
43 | -sed.1: $(top_srcdir)/sed/sed.c $(top_srcdir)/configure.ac $(srcdir)/sed.x | ||
44 | +_sed.1: $(top_srcdir)/sed/sed.c $(top_srcdir)/configure.ac $(srcdir)/sed.x | ||
45 | $(HELP2MAN) --name "stream editor for filtering and transforming text" \ | ||
46 | -p sed --include $(srcdir)/sed.x -o $(srcdir)/sed.1 $(SED) | ||
47 | |||
48 | diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am | ||
49 | index d80e72c..b05f01e 100644 | ||
50 | --- a/testsuite/Makefile.am | ||
51 | +++ b/testsuite/Makefile.am | ||
52 | @@ -99,5 +99,11 @@ EXTRA_DIST = \ | ||
53 | # automake makes `check' depend on $(TESTS). Declare | ||
54 | # dummy targets for $(TESTS) so that make does not complain. | ||
55 | |||
56 | +install-ptest: | ||
57 | + cd $(BUILDDIR); tar -cf - $(TESTDIR) --exclude *.o | ( cd $(DESTDIR) && tar -xf - ) | ||
58 | + for i in $(EXTRA_DIST) tst-regex2.c; do install $(srcdir)/$$i $(DESTDIR)/$(TESTDIR); done | ||
59 | + sed -e 's/^Makefile:/_Makefile:/' -e 's/^srcdir = \(.*\)/srcdir = ./' -e 's/bash/sh/' -i $(DESTDIR)/$(TESTDIR)/Makefile | ||
60 | + for i in `grep -rl "../sed/sed" $(DESTDIR)/$(TESTDIR)`; do sed -e 's/..\/sed\/sed/sed/' -i $$i; done | ||
61 | + | ||
62 | .PHONY: $(SEDTESTS) | ||
63 | $(SEDTESTS): | ||
64 | -- | ||
65 | 1.7.9.5 | ||
66 | |||
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..fe242e16bd --- /dev/null +++ b/meta/recipes-extended/sed/sed_4.1.2.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | SUMMARY = "Stream EDitor (text filtering utility)" | ||
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 = "r7" | ||
8 | |||
9 | SRC_URI = "${GNU_MIRROR}/sed/sed-${PV}.tar.gz \ | ||
10 | file://fix_return_type.patch \ | ||
11 | file://sed-4.1.2_fix_for_automake-1.12.patch \ | ||
12 | file://Makevars" | ||
13 | |||
14 | SRC_URI[md5sum] = "928f0e06422f414091917401f1a834d0" | ||
15 | SRC_URI[sha256sum] = "638e837ba765d5da0a30c98b57c2953cecea96827882f594612acace93ceeeab" | ||
16 | |||
17 | inherit autotools texinfo update-alternatives gettext | ||
18 | |||
19 | do_configure_prepend () { | ||
20 | cp ${WORKDIR}/Makevars ${S}/po/ | ||
21 | } | ||
22 | |||
23 | do_install () { | ||
24 | autotools_do_install | ||
25 | install -d ${D}${base_bindir} | ||
26 | mv ${D}${bindir}/sed ${D}${base_bindir}/sed | ||
27 | rmdir ${D}${bindir}/ | ||
28 | } | ||
29 | |||
30 | ALTERNATIVE_${PN} = "sed" | ||
31 | ALTERNATIVE_LINK_NAME[sed] = "${base_bindir}/sed" | ||
32 | ALTERNATIVE_PRIORITY = "100" | ||
33 | |||
34 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-extended/sed/sed_4.2.2.bb b/meta/recipes-extended/sed/sed_4.2.2.bb new file mode 100644 index 0000000000..ea39dae435 --- /dev/null +++ b/meta/recipes-extended/sed/sed_4.2.2.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | SUMMARY = "Stream EDitor (text filtering utility)" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/sed/" | ||
3 | LICENSE = "GPLv3+" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949 \ | ||
5 | file://sed/sed.h;beginline=1;endline=17;md5=767ab3a06d7584f6fd0469abaec4412f" | ||
6 | SECTION = "console/utils" | ||
7 | |||
8 | SRC_URI = "${GNU_MIRROR}/sed/sed-${PV}.tar.gz \ | ||
9 | file://sed-add-ptest.patch \ | ||
10 | file://run-ptest \ | ||
11 | " | ||
12 | |||
13 | SRC_URI[md5sum] = "4111de4faa3b9848a0686b2f260c5056" | ||
14 | SRC_URI[sha256sum] = "fea0a94d4b605894f3e2d5572e3f96e4413bcad3a085aae7367c2cf07908b2ff" | ||
15 | |||
16 | inherit autotools texinfo update-alternatives gettext ptest | ||
17 | RDEPENDS_${PN}-ptest += "make locale-base-ru-ru ${PN}" | ||
18 | |||
19 | EXTRA_OECONF = "--disable-acl \ | ||
20 | ${@bb.utils.contains('PTEST_ENABLED', '1', '--enable-regex-tests', '', d)}" | ||
21 | |||
22 | do_install () { | ||
23 | autotools_do_install | ||
24 | install -d ${D}${base_bindir} | ||
25 | mv ${D}${bindir}/sed ${D}${base_bindir}/sed | ||
26 | rmdir ${D}${bindir}/ | ||
27 | } | ||
28 | |||
29 | ALTERNATIVE_${PN} = "sed" | ||
30 | ALTERNATIVE_LINK_NAME[sed] = "${base_bindir}/sed" | ||
31 | ALTERNATIVE_PRIORITY = "100" | ||
32 | |||
33 | TESTDIR = "testsuite" | ||
34 | |||
35 | do_compile_ptest() { | ||
36 | oe_runmake -C ${TESTDIR} buildtest-TESTS | ||
37 | } | ||
38 | |||
39 | do_install_ptest() { | ||
40 | oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR} | ||
41 | } | ||
42 | |||
43 | BBCLASSEXTEND = "native" | ||