diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-16 15:00:45 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-17 10:19:59 +0000 |
commit | 821a6f2a170cfcaf8fe51240a2558ae06328a998 (patch) | |
tree | 45976a803a68470f3195b665ac536336a418aa38 /meta/recipes-devtools/quilt/quilt.inc | |
parent | eea86c4f0a960d0094571a78dc0cf9d46d162a22 (diff) | |
download | poky-821a6f2a170cfcaf8fe51240a2558ae06328a998.tar.gz |
quilt: Merge recipe files into a more coherent form
The style of this recipe is dated, move most of the code into the main
shared include file, making some of the configuration much clearer using
modern overrides to do so.
(From OE-Core rev: b422d94b1b42fd3be42fd1ba95dbcab10e2ab4ef)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/quilt/quilt.inc')
-rw-r--r-- | meta/recipes-devtools/quilt/quilt.inc | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/meta/recipes-devtools/quilt/quilt.inc b/meta/recipes-devtools/quilt/quilt.inc index 48ed9babf7..150df3d572 100644 --- a/meta/recipes-devtools/quilt/quilt.inc +++ b/meta/recipes-devtools/quilt/quilt.inc | |||
@@ -11,14 +11,21 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/quilt/quilt-${PV}.tar.gz \ | |||
11 | file://0001-tests-Allow-different-output-from-mv.patch \ | 11 | file://0001-tests-Allow-different-output-from-mv.patch \ |
12 | " | 12 | " |
13 | 13 | ||
14 | SRC_URI_append_class-target = " file://gnu_patch_test_fix_target.patch" | ||
15 | |||
14 | SRC_URI[md5sum] = "c67ba0228f5b7b8bbe469474661f92d6" | 16 | SRC_URI[md5sum] = "c67ba0228f5b7b8bbe469474661f92d6" |
15 | SRC_URI[sha256sum] = "f6cbc788e5cbbb381a3c6eab5b9efce67c776a8662a7795c7432fd27aa096819" | 17 | SRC_URI[sha256sum] = "f6cbc788e5cbbb381a3c6eab5b9efce67c776a8662a7795c7432fd27aa096819" |
16 | 18 | ||
17 | inherit autotools-brokensep ptest | 19 | inherit autotools-brokensep ptest |
18 | 20 | ||
21 | INHIBIT_AUTOTOOLS_DEPS_class-native = "1" | ||
22 | PATCHTOOL_class-native = "patch" | ||
23 | |||
19 | CLEANBROKEN = "1" | 24 | CLEANBROKEN = "1" |
20 | 25 | ||
21 | EXTRA_OECONF = "--with-perl='${USRBINPATH}/env perl' --with-patch=patch" | 26 | EXTRA_OECONF = "--with-perl='${USRBINPATH}/env perl' --with-patch=patch" |
27 | EXTRA_OECONF_append_class-native = " --disable-nls" | ||
28 | EXTRA_AUTORECONF += "--exclude=aclocal" | ||
22 | 29 | ||
23 | CACHED_CONFIGUREVARS += "ac_cv_path_BASH=/bin/bash" | 30 | CACHED_CONFIGUREVARS += "ac_cv_path_BASH=/bin/bash" |
24 | 31 | ||
@@ -33,6 +40,10 @@ do_configure_append () { | |||
33 | sed -e 's,^COMPAT_SYMLINKS.*:=.*,COMPAT_SYMLINKS :=,' -i ${S}/Makefile | 40 | sed -e 's,^COMPAT_SYMLINKS.*:=.*,COMPAT_SYMLINKS :=,' -i ${S}/Makefile |
34 | } | 41 | } |
35 | 42 | ||
43 | do_configure_class-native () { | ||
44 | oe_runconf | ||
45 | } | ||
46 | |||
36 | # quilt Makefiles install to BUILD_ROOT instead of DESTDIR | 47 | # quilt Makefiles install to BUILD_ROOT instead of DESTDIR |
37 | do_install () { | 48 | do_install () { |
38 | oe_runmake 'BUILD_ROOT=${D}' install | 49 | oe_runmake 'BUILD_ROOT=${D}' install |
@@ -40,6 +51,12 @@ do_install () { | |||
40 | rm -rf ${D}/${datadir}/emacs | 51 | rm -rf ${D}/${datadir}/emacs |
41 | } | 52 | } |
42 | 53 | ||
54 | do_install_append_class-native () { | ||
55 | # Dummy quiltrc file for patch.bbclass | ||
56 | install -d ${D}${sysconfdir}/ | ||
57 | touch ${D}${sysconfdir}/quiltrc | ||
58 | } | ||
59 | |||
43 | do_compile_ptest() { | 60 | do_compile_ptest() { |
44 | oe_runmake bin/patch-wrapper test/.depend | 61 | oe_runmake bin/patch-wrapper test/.depend |
45 | } | 62 | } |
@@ -61,7 +78,9 @@ FILES_guards = "${bindir}/guards" | |||
61 | FILES_${PN}-doc = "${mandir}/man1/quilt.1 ${docdir}/${BPN}" | 78 | FILES_${PN}-doc = "${mandir}/man1/quilt.1 ${docdir}/${BPN}" |
62 | FILES_guards-doc = "${mandir}/man1/guards.1" | 79 | FILES_guards-doc = "${mandir}/man1/guards.1" |
63 | 80 | ||
64 | RDEPENDS_${PN} = "bash" | 81 | RDEPENDS_${PN} = "bash patch diffstat bzip2 util-linux" |
82 | RDEPENDS_${PN}_class-native = "diffstat-native patch-native bzip2-native" | ||
83 | |||
65 | RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \ | 84 | RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \ |
66 | perl-module-filehandle perl-module-getopt-std \ | 85 | perl-module-filehandle perl-module-getopt-std \ |
67 | perl-module-posix perl-module-file-temp \ | 86 | perl-module-posix perl-module-file-temp \ |