diff options
3 files changed, 70 insertions, 12 deletions
diff --git a/meta/recipes-extended/texinfo/texinfo-4.13a/disable-native-tools.patch b/meta/recipes-extended/texinfo/texinfo-4.13a/disable-native-tools.patch new file mode 100644 index 0000000000..ab6f1658aa --- /dev/null +++ b/meta/recipes-extended/texinfo/texinfo-4.13a/disable-native-tools.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | We already DEPEND on the native texinfo being present before building so | ||
2 | there isn't any need to try and build the required native texinfo binaries | ||
3 | before cross-compiling. This simplifies the recipe somewhat! | ||
4 | |||
5 | Upstream-Status: Inappropriate oe specific | ||
6 | |||
7 | Signed-off-by: Joshua Lock <josh@linux.intel.com> | ||
8 | |||
9 | Index: texinfo-4.13/configure.ac | ||
10 | =================================================================== | ||
11 | --- texinfo-4.13.orig/configure.ac | ||
12 | +++ texinfo-4.13/configure.ac | ||
13 | @@ -100,29 +100,7 @@ AC_CANONICAL_BUILD | ||
14 | # $native_tools is also added to SUBDIRS in the main Makefile.am, | ||
15 | # so that make compiles the native tools first. | ||
16 | # | ||
17 | -if test "$cross_compiling" = no; then | ||
18 | - native_tools= | ||
19 | -else | ||
20 | - native_tools=tools | ||
21 | - test -d "$native_tools" || mkdir "$native_tools" | ||
22 | - confdir=`(cd "$srcdir";pwd)` | ||
23 | - # Make sure the secondary configure won't fail with | ||
24 | - # "error: source directory already configured". | ||
25 | - rm -f config.status | ||
26 | - AC_MSG_NOTICE([[Doing configure of native tools (${build}).]]) | ||
27 | - cd "$native_tools" || exit 1 | ||
28 | - # Run secondary configure in alternate environment or | ||
29 | - # it gets the wrong CC etc. | ||
30 | - # env -i gives this build host configure a clean environment; | ||
31 | - # consequently, we have to re-initialize $PATH. | ||
32 | - env -i CC="$BUILD_CC" AR="$BUILD_AR" RANLIB="$BUILD_RANLIB" \ | ||
33 | - PATH="$PATH" \ | ||
34 | - tools_only=1 \ | ||
35 | - ${confdir}/configure --build=${build} --host=${build} \ | ||
36 | - --disable-rpath --disable-nls | ||
37 | - cd .. || exit 1 | ||
38 | - AC_MSG_NOTICE([[Continuing with main configure (${host}).]]) | ||
39 | -fi | ||
40 | +native_tools= | ||
41 | AC_SUBST(native_tools) | ||
42 | AM_CONDITIONAL(TOOLS_ONLY, [[test "x$tools_only" = x1]]) | ||
43 | |||
diff --git a/meta/recipes-extended/texinfo/texinfo-4.13a/link-zip.patch b/meta/recipes-extended/texinfo/texinfo-4.13a/link-zip.patch new file mode 100644 index 0000000000..629d329d7c --- /dev/null +++ b/meta/recipes-extended/texinfo/texinfo-4.13a/link-zip.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | install-info uses symbols from zlib so must link against it. | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Signed-off-by: Joshua Lock <josh@linux.intel.com> | ||
6 | |||
7 | Index: texinfo-4.13/install-info/Makefile.am | ||
8 | =================================================================== | ||
9 | --- texinfo-4.13.orig/install-info/Makefile.am | ||
10 | +++ texinfo-4.13/install-info/Makefile.am | ||
11 | @@ -28,4 +28,4 @@ AM_CPPFLAGS = \ | ||
12 | -I$(top_srcdir)/gnulib/lib \ | ||
13 | -I$(top_builddir)/gnulib/lib \ | ||
14 | -DLOCALEDIR=\"$(localedir)\" | ||
15 | -LDADD = ../lib/libtxi.a $(top_builddir)/gnulib/lib/libgnu.a $(LIBINTL) | ||
16 | +LDADD = ../lib/libtxi.a $(top_builddir)/gnulib/lib/libgnu.a $(LIBINTL) -lz | ||
diff --git a/meta/recipes-extended/texinfo/texinfo_4.13a.bb b/meta/recipes-extended/texinfo/texinfo_4.13a.bb index ac89b66b2d..5fd2d31a24 100644 --- a/meta/recipes-extended/texinfo/texinfo_4.13a.bb +++ b/meta/recipes-extended/texinfo/texinfo_4.13a.bb | |||
@@ -9,14 +9,17 @@ LICENSE = "GPLv3+" | |||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=adefda309052235aa5d1e99ce7557010" | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=adefda309052235aa5d1e99ce7557010" |
10 | PR = "r0" | 10 | PR = "r0" |
11 | 11 | ||
12 | DEPENDS = "zlib" | 12 | DEPENDS = "zlib ncurses texinfo-native" |
13 | DEPENDS_virtclass-native = "zlib-native ncurses-native" | ||
13 | 14 | ||
14 | SRC_URI = "${GNU_MIRROR}/texinfo/texinfo-${PV}.tar.gz \ | 15 | SRC_URI = "${GNU_MIRROR}/texinfo/texinfo-${PV}.tar.gz \ |
15 | file://texinfo-4.12-zlib.patch;striplevel=1 \ | 16 | file://texinfo-4.12-zlib.patch \ |
16 | file://texinfo-4.13a-data_types.patch;striplevel=1 \ | 17 | file://texinfo-4.13a-data_types.patch \ |
17 | file://texinfo-4.13a-mosdo-crash.patch;striplevel=1 \ | 18 | file://texinfo-4.13a-mosdo-crash.patch \ |
18 | file://texinfo-4.13a-powerpc.patch;striplevel=1 \ | 19 | file://texinfo-4.13a-powerpc.patch \ |
19 | file://texinfo-4.13a-help-index-segfault.patch;striplevel=1" | 20 | file://texinfo-4.13a-help-index-segfault.patch \ |
21 | file://disable-native-tools.patch \ | ||
22 | file://link-zip.patch" | ||
20 | 23 | ||
21 | SRC_URI[md5sum] = "71ba711519209b5fb583fed2b3d86fcb" | 24 | SRC_URI[md5sum] = "71ba711519209b5fb583fed2b3d86fcb" |
22 | SRC_URI[sha256sum] = "1303e91a1c752b69a32666a407e9fbdd6e936def4b09bc7de30f416301530d68" | 25 | SRC_URI[sha256sum] = "1303e91a1c752b69a32666a407e9fbdd6e936def4b09bc7de30f416301530d68" |
@@ -26,13 +29,9 @@ tex_texinfo = "texmf/tex/texinfo" | |||
26 | 29 | ||
27 | inherit gettext autotools | 30 | inherit gettext autotools |
28 | 31 | ||
29 | do_configure() { | 32 | do_compile_prepend() { |
30 | oe_runconf | ||
31 | } | ||
32 | |||
33 | do_compile_prepend(){ | ||
34 | if [ -d tools ];then | 33 | if [ -d tools ];then |
35 | make -C tools/gnulib/lib | 34 | oe_runmake -C tools/gnulib/lib |
36 | fi | 35 | fi |
37 | } | 36 | } |
38 | 37 | ||