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-devtools/quilt | |
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-devtools/quilt')
-rw-r--r-- | meta/recipes-devtools/quilt/quilt-0.63.inc | 59 | ||||
-rw-r--r-- | meta/recipes-devtools/quilt/quilt-native.inc | 18 | ||||
-rw-r--r-- | meta/recipes-devtools/quilt/quilt-native_0.63.bb | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/quilt/quilt/Makefile | 13 | ||||
-rw-r--r-- | meta/recipes-devtools/quilt/quilt/aclocal.patch | 128 | ||||
-rw-r--r-- | meta/recipes-devtools/quilt/quilt/gnu_patch_test_fix_target.patch | 26 | ||||
-rw-r--r-- | meta/recipes-devtools/quilt/quilt/install.patch | 13 | ||||
-rwxr-xr-x | meta/recipes-devtools/quilt/quilt/run-ptest | 5 | ||||
-rw-r--r-- | meta/recipes-devtools/quilt/quilt_0.63.bb | 16 |
9 files changed, 280 insertions, 0 deletions
diff --git a/meta/recipes-devtools/quilt/quilt-0.63.inc b/meta/recipes-devtools/quilt/quilt-0.63.inc new file mode 100644 index 0000000000..433d6b4089 --- /dev/null +++ b/meta/recipes-devtools/quilt/quilt-0.63.inc | |||
@@ -0,0 +1,59 @@ | |||
1 | SUMMARY = "Tool for working with series of patches" | ||
2 | HOMEPAGE = "http://savannah.nongnu.org/projects/quilt/" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
6 | |||
7 | SRC_URI = "${SAVANNAH_GNU_MIRROR}/quilt/quilt-${PV}.tar.gz \ | ||
8 | file://install.patch \ | ||
9 | file://run-ptest \ | ||
10 | file://Makefile \ | ||
11 | " | ||
12 | |||
13 | SRC_URI[md5sum] = "c0ef4beb58a6fa72563b955e70624b6e" | ||
14 | SRC_URI[sha256sum] = "2846788221aa8844c54f10239c7cbc5e88031859162bcc285449446c3cfffe52" | ||
15 | |||
16 | inherit autotools-brokensep ptest | ||
17 | |||
18 | EXTRA_OECONF_darwin += "--without-date \ | ||
19 | --without-getopt \ | ||
20 | " | ||
21 | |||
22 | PACKAGES += "guards guards-doc" | ||
23 | FILES_${PN} = "${sysconfdir} ${datadir}/quilt \ | ||
24 | ${bindir}/quilt ${libdir}/quilt" | ||
25 | FILES_guards = "${bindir}/guards" | ||
26 | FILES_${PN}-doc = "${mandir}/man1/quilt.1 ${docdir}/${BPN}" | ||
27 | FILES_guards-doc = "${mandir}/man1/guards.1" | ||
28 | |||
29 | RDEPENDS_${PN} = "bash" | ||
30 | |||
31 | EXTRA_OE_MAKE_ARGS_darwin ?= "" | ||
32 | EXTRA_OE_MAKE_ARGS ?= "BUILD_ROOT=${D}" | ||
33 | |||
34 | CACHED_CONFIGUREVARS += "ac_cv_path_BASH=/bin/bash" | ||
35 | |||
36 | # quilt ignores DESTDIR | ||
37 | do_install () { | ||
38 | oe_runmake ${EXTRA_OE_MAKE_ARGS} install | ||
39 | # cleanup unpackaged files | ||
40 | rm -rf ${D}/${datadir}/emacs | ||
41 | } | ||
42 | |||
43 | do_compile_ptest() { | ||
44 | oe_runmake bin/patch-wrapper test/.depend | ||
45 | } | ||
46 | |||
47 | do_install_ptest() { | ||
48 | tar -cf - bin/ --exclude \*.in | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
49 | tar -cf - compat/ --exclude \*.in | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
50 | tar -cf - quilt/ --exclude \*.in | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
51 | tar -cf - test/ --exclude mail.test --exclude delete.test | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
52 | cp ${WORKDIR}/Makefile ${D}${PTEST_PATH} | ||
53 | } | ||
54 | |||
55 | RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \ | ||
56 | perl-module-filehandle perl-module-getopt-std \ | ||
57 | perl-module-posix perl-module-file-temp \ | ||
58 | perl-module-text-parsewords bash \ | ||
59 | " | ||
diff --git a/meta/recipes-devtools/quilt/quilt-native.inc b/meta/recipes-devtools/quilt/quilt-native.inc new file mode 100644 index 0000000000..5c4b0a217e --- /dev/null +++ b/meta/recipes-devtools/quilt/quilt-native.inc | |||
@@ -0,0 +1,18 @@ | |||
1 | RDEPENDS_${PN} = "diffstat-native patch-native bzip2-native util-linux-native" | ||
2 | |||
3 | INHIBIT_AUTOTOOLS_DEPS = "1" | ||
4 | |||
5 | inherit native | ||
6 | |||
7 | PATCHTOOL = "patch" | ||
8 | EXTRA_OECONF = "--disable-nls" | ||
9 | |||
10 | do_configure () { | ||
11 | oe_runconf | ||
12 | } | ||
13 | |||
14 | do_install_append () { | ||
15 | # Dummy quiltrc file for patch.bbclass | ||
16 | install -d ${D}${sysconfdir}/ | ||
17 | touch ${D}${sysconfdir}/quiltrc | ||
18 | } | ||
diff --git a/meta/recipes-devtools/quilt/quilt-native_0.63.bb b/meta/recipes-devtools/quilt/quilt-native_0.63.bb new file mode 100644 index 0000000000..a089a83aba --- /dev/null +++ b/meta/recipes-devtools/quilt/quilt-native_0.63.bb | |||
@@ -0,0 +1,2 @@ | |||
1 | require quilt-${PV}.inc | ||
2 | require quilt-native.inc | ||
diff --git a/meta/recipes-devtools/quilt/quilt/Makefile b/meta/recipes-devtools/quilt/quilt/Makefile new file mode 100644 index 0000000000..7b3ac8a492 --- /dev/null +++ b/meta/recipes-devtools/quilt/quilt/Makefile | |||
@@ -0,0 +1,13 @@ | |||
1 | PATH := $(CURDIR)/bin:$(CURDIR)/compat:$(PATH) | ||
2 | QUILT_DIR := $(CURDIR)/quilt | ||
3 | QUILTRC := $(CURDIR)/test/test.quiltrc | ||
4 | export QUILT_DIR QUILTRC | ||
5 | CHECK_ENV := P=patches/; _P=../patches/; export P _P | ||
6 | -include test/.depend | ||
7 | |||
8 | check-% : test/%.test | ||
9 | @LANG=C; LC_ALL=C; \ | ||
10 | export LANG LC_ALL; \ | ||
11 | $(CHECK_ENV); \ | ||
12 | cd $(<D); \ | ||
13 | ./run -q $(<F) | ||
diff --git a/meta/recipes-devtools/quilt/quilt/aclocal.patch b/meta/recipes-devtools/quilt/quilt/aclocal.patch new file mode 100644 index 0000000000..daf44295ec --- /dev/null +++ b/meta/recipes-devtools/quilt/quilt/aclocal.patch | |||
@@ -0,0 +1,128 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Add the aclocal.m4 as acinclude.m4 | ||
4 | |||
5 | Index: quilt-0.47/acinclude.m4 | ||
6 | =================================================================== | ||
7 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
8 | +++ quilt-0.47/acinclude.m4 2006-10-10 17:05:56.000000000 +0100 | ||
9 | @@ -0,0 +1,119 @@ | ||
10 | +dnl Allow configure to specify a specific binary | ||
11 | +dnl 1: Environment variable | ||
12 | +dnl 2: binary name | ||
13 | +dnl 3: optional list of alternative binary names | ||
14 | +dnl 4: optional list of additional search directories | ||
15 | +AC_DEFUN([QUILT_COMPAT_PROG_PATH],[ | ||
16 | + m4_define([internal_$2_cmd],[esyscmd(ls compat/$2.in 2>/dev/null)]) | ||
17 | + | ||
18 | + AC_ARG_WITH($2, AC_HELP_STRING( | ||
19 | + [--with-$2], [name of the $2 executable to use] | ||
20 | + m4_if(internal_$2_cmd,[],[],[ (use --without-$2 | ||
21 | + to use an internal mechanism)])), | ||
22 | + [ | ||
23 | + if test x"$withval" = xnone; then | ||
24 | + AC_MSG_ERROR([Invalid configure argument. use --without-$2]) | ||
25 | + fi | ||
26 | + if test x"$withval" != xno; then | ||
27 | + AC_MSG_CHECKING(for $2) | ||
28 | + $1="$withval" | ||
29 | + if test -e "$$1"; then | ||
30 | + if test ! -f "$$1" -a ! -h "$$1" || test ! -x "$$1"; then | ||
31 | + AC_MSG_ERROR([$$1 is not an executable file]) | ||
32 | + fi | ||
33 | + fi | ||
34 | + AC_MSG_RESULT([$$1]) | ||
35 | + if test ! -e "$$1"; then | ||
36 | + AC_MSG_WARN([$$1 does not exist]) | ||
37 | + fi | ||
38 | + COMPAT_SYMLINKS="$COMPAT_SYMLINKS $2" | ||
39 | + fi | ||
40 | + ],[ | ||
41 | + m4_if([$3],[],[ | ||
42 | + AC_PATH_PROG($1,$2,,$PATH:$4) | ||
43 | + ],[ | ||
44 | + AC_PATH_PROGS($1,$3,,$PATH:$4) | ||
45 | + if test -n "$$1" -a "`expr "$$1" : '.*/\([[^/]]*\)$'`" != "$2"; then | ||
46 | + COMPAT_SYMLINKS="$COMPAT_SYMLINKS $2" | ||
47 | + fi | ||
48 | + ]) | ||
49 | + m4_if([$4],[],[],[ | ||
50 | + if test -n "$$1"; then | ||
51 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
52 | + for dir in "$4"; do | ||
53 | + if test "`dirname $$1`" = "$dir"; then | ||
54 | + COMPAT_SYMLINKS="$COMPAT_SYMLINKS $2" | ||
55 | + break | ||
56 | + fi | ||
57 | + done | ||
58 | + IFS="$as_save_IFS" | ||
59 | + fi | ||
60 | + ]) | ||
61 | + ]) | ||
62 | + if test -z "$$1"; then | ||
63 | + m4_if(internal_$2_cmd,[],[ | ||
64 | + AC_MSG_ERROR([Please specify the location of $2 with the option '--with-$2']) | ||
65 | + ],[ | ||
66 | + AC_MSG_WARN([Using internal $2 mechanism. Use option '--with-$2' to override]) | ||
67 | + COMPAT_PROGRAMS="$COMPAT_PROGRAMS $2" | ||
68 | + $1=$2 | ||
69 | + INTERNAL_$1=1 | ||
70 | + ]) | ||
71 | + fi | ||
72 | + AC_SUBST($1) | ||
73 | +]) | ||
74 | + | ||
75 | +dnl Allow configure to specify a specific binary | ||
76 | +dnl This variant is for optional binaries. | ||
77 | +dnl 1: Environment variable | ||
78 | +dnl 2: binary name | ||
79 | +dnl 3: optional list of alternative binary names | ||
80 | +dnl 4: optional list of additional search directories | ||
81 | +AC_DEFUN([QUILT_COMPAT_PROG_PATH_OPT],[ | ||
82 | + AC_ARG_WITH($2, AC_HELP_STRING( | ||
83 | + [--with-$2], [name of the $2 executable to use]), | ||
84 | + [ | ||
85 | + if test x"$withval" != xno; then | ||
86 | + AC_MSG_CHECKING(for $2) | ||
87 | + $1="$withval" | ||
88 | + if test -e "$$1"; then | ||
89 | + if test ! -f "$$1" -a ! -h "$$1" || test ! -x "$$1"; then | ||
90 | + AC_MSG_ERROR([$$1 is not an executable file]) | ||
91 | + fi | ||
92 | + fi | ||
93 | + AC_MSG_RESULT([$$1]) | ||
94 | + if test ! -e "$$1"; then | ||
95 | + AC_MSG_WARN([$$1 does not exist]) | ||
96 | + fi | ||
97 | + COMPAT_SYMLINKS="$COMPAT_SYMLINKS $2" | ||
98 | + fi | ||
99 | + ],[ | ||
100 | + m4_if([$3],[],[ | ||
101 | + AC_PATH_PROG($1,$2,,$PATH:$4) | ||
102 | + ],[ | ||
103 | + AC_PATH_PROGS($1,$3,,$PATH:$4) | ||
104 | + if test -n "$$1" -a "`expr "$$1" : '.*/\([[^/]]*\)$'`" != "$2"; then | ||
105 | + COMPAT_SYMLINKS="$COMPAT_SYMLINKS $2" | ||
106 | + fi | ||
107 | + ]) | ||
108 | + m4_if([$4],[],[],[ | ||
109 | + if test -n "$$1"; then | ||
110 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
111 | + for dir in "$4"; do | ||
112 | + if test "`dirname $$1`" = "$dir"; then | ||
113 | + COMPAT_SYMLINKS="$COMPAT_SYMLINKS $2" | ||
114 | + break | ||
115 | + fi | ||
116 | + done | ||
117 | + IFS="$as_save_IFS" | ||
118 | + fi | ||
119 | + ]) | ||
120 | + if test -z "$$1"; then | ||
121 | + AC_MSG_WARN([$2 not found, some optional functionalities will be missing]) | ||
122 | + fi | ||
123 | + ]) | ||
124 | + if test -z "$$1"; then | ||
125 | + $1=$2 | ||
126 | + fi | ||
127 | + AC_SUBST($1) | ||
128 | +]) | ||
diff --git a/meta/recipes-devtools/quilt/quilt/gnu_patch_test_fix_target.patch b/meta/recipes-devtools/quilt/quilt/gnu_patch_test_fix_target.patch new file mode 100644 index 0000000000..672155bb65 --- /dev/null +++ b/meta/recipes-devtools/quilt/quilt/gnu_patch_test_fix_target.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | the test should be skipped for cross compiling. | ||
4 | |||
5 | Signed-off-by: Qing He <qing.he@intel.com> | ||
6 | |||
7 | diff --git a/configure.ac b/configure.ac | ||
8 | index 026a36c..8af591b 100644 | ||
9 | --- a/configure.ac | ||
10 | +++ b/configure.ac | ||
11 | @@ -245,6 +245,7 @@ fi | ||
12 | QUILT_COMPAT_PROG_PATH(DIFF, diff) | ||
13 | QUILT_COMPAT_PROG_PATH(PATCH, patch) | ||
14 | |||
15 | +if test "x$cross_compiling" != "xyes"; then | ||
16 | # Sun diff and others will not work because GNU patch options are used. | ||
17 | AC_MSG_CHECKING([the version of $DIFF]) | ||
18 | if $DIFF --version 2>/dev/null | grep GNU >/dev/null; then | ||
19 | @@ -293,6 +294,7 @@ current version of patch from ftp.gnu.org, or if you already have GNU patch | ||
20 | then you can supply its path with the '--with-patch=' option. | ||
21 | ]) | ||
22 | fi | ||
23 | +fi | ||
24 | |||
25 | QUILT_COMPAT_PROG_PATH(FIND, find) | ||
26 | |||
diff --git a/meta/recipes-devtools/quilt/quilt/install.patch b/meta/recipes-devtools/quilt/quilt/install.patch new file mode 100644 index 0000000000..e2a7af6550 --- /dev/null +++ b/meta/recipes-devtools/quilt/quilt/install.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | --- quilt-0.47/Makefile.in 2008-12-31 19:09:13.000000000 +0000 | ||
4 | +++ quilt-0.47/Makefile.in.orig 2008-08-21 13:21:32.000000000 +0100 | ||
5 | @@ -13,7 +13,7 @@ | ||
6 | mandir := @mandir@ | ||
7 | localedir := $(datadir)/locale | ||
8 | emacsdir := $(datadir)/emacs/site-lisp | ||
9 | -etcdir := $(subst /usr/etc,/etc,$(prefix)/etc) | ||
10 | +etcdir := @sysconfdir@ | ||
11 | |||
12 | INSTALL := @INSTALL@ | ||
13 | POD2MAN := @POD2MAN@ | ||
diff --git a/meta/recipes-devtools/quilt/quilt/run-ptest b/meta/recipes-devtools/quilt/quilt/run-ptest new file mode 100755 index 0000000000..958a9df5b6 --- /dev/null +++ b/meta/recipes-devtools/quilt/quilt/run-ptest | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | ln -sf /bin/ed /usr/bin/ed | ||
4 | for i in `ls test/*.test |awk -F. '{print $1}' |awk -F/ '{print $2}'`; do make check-$i; if [ $? -eq 0 ]; then echo PASS: $i.test; else echo FAIL: $i.test; fi; done | ||
5 | rm -f /usr/bin/ed | ||
diff --git a/meta/recipes-devtools/quilt/quilt_0.63.bb b/meta/recipes-devtools/quilt/quilt_0.63.bb new file mode 100644 index 0000000000..3a08d13eaf --- /dev/null +++ b/meta/recipes-devtools/quilt/quilt_0.63.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | require quilt-${PV}.inc | ||
2 | inherit gettext | ||
3 | RDEPENDS_${PN} += "patch diffstat bzip2 util-linux" | ||
4 | SRC_URI += "file://aclocal.patch \ | ||
5 | file://gnu_patch_test_fix_target.patch \ | ||
6 | " | ||
7 | |||
8 | # fix build-distro specific perl path in the target perl scripts | ||
9 | do_install_append() { | ||
10 | for perlscript in ${D}${datadir}/quilt/scripts/remove-trailing-ws ${D}${datadir}/quilt/scripts/dependency-graph ${D}${datadir}/quilt/scripts/edmail ${D}${bindir}/guards | ||
11 | do | ||
12 | if [ -f $perlscript ]; then | ||
13 | sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' $perlscript | ||
14 | fi | ||
15 | done | ||
16 | } | ||