From 5ba74f45277f2abcd5cec91ac38d41a394e6a083 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Wed, 4 Dec 2024 07:49:12 +0100 Subject: texinfo: update 7.1 -> 7.1.1 Rather than try to patch out specific manpages needing help2man, simply don't build them: this is less prone to tricky rebase conflicts. (From OE-Core rev: 33bcc61ed8506b7cee339dc750999729a70ca078) Signed-off-by: Alexander Kanavin Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- .../0001-Makefile.am-do-not-build-manpages.patch | 29 +++++++ ...eral-changes-to-build-without-zlib-and-nc.patch | 12 +-- .../texinfo/0002-dont-depend-on-help2man.patch | 68 ---------------- .../texinfo/0003-texinfo-Update-to-5.1.patch | 11 +-- meta/recipes-extended/texinfo/texinfo_7.1.1.bb | 90 ++++++++++++++++++++++ meta/recipes-extended/texinfo/texinfo_7.1.bb | 90 ---------------------- 6 files changed, 127 insertions(+), 173 deletions(-) create mode 100644 meta/recipes-extended/texinfo/texinfo/0001-Makefile.am-do-not-build-manpages.patch delete mode 100644 meta/recipes-extended/texinfo/texinfo/0002-dont-depend-on-help2man.patch create mode 100644 meta/recipes-extended/texinfo/texinfo_7.1.1.bb delete mode 100644 meta/recipes-extended/texinfo/texinfo_7.1.bb diff --git a/meta/recipes-extended/texinfo/texinfo/0001-Makefile.am-do-not-build-manpages.patch b/meta/recipes-extended/texinfo/texinfo/0001-Makefile.am-do-not-build-manpages.patch new file mode 100644 index 0000000000..e3e8f30b5e --- /dev/null +++ b/meta/recipes-extended/texinfo/texinfo/0001-Makefile.am-do-not-build-manpages.patch @@ -0,0 +1,29 @@ +From f7572109b64db9ea5aa44078eaad25ad2a2283f8 Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin +Date: Thu, 28 Nov 2024 13:16:15 +0100 +Subject: [PATCH] Makefile.am: do not build manpages + +This requires help2man. + +Upstream-Status: Inappropriate [oe-core doesn't provide help2man] +Signed-off-by: Alexander Kanavin +--- + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index f733797..1013fcf 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -66,7 +66,7 @@ if HOST_IS_WINDOWS + endif + endif + SUBDIRS += install-info po po_document tp Pod-Simple-Texinfo texindex util \ +- doc man ++ doc + SUBDIRS += js + endif + +-- +2.39.5 + diff --git a/meta/recipes-extended/texinfo/texinfo/0001-texinfo-several-changes-to-build-without-zlib-and-nc.patch b/meta/recipes-extended/texinfo/texinfo/0001-texinfo-several-changes-to-build-without-zlib-and-nc.patch index b43a115b23..8ddf50261d 100644 --- a/meta/recipes-extended/texinfo/texinfo/0001-texinfo-several-changes-to-build-without-zlib-and-nc.patch +++ b/meta/recipes-extended/texinfo/texinfo/0001-texinfo-several-changes-to-build-without-zlib-and-nc.patch @@ -1,8 +1,7 @@ -From ee9d23373b488c4a499c561d71e6b6ba7ca1bd31 Mon Sep 17 00:00:00 2001 +From db2c41668d62c234fa69c71db18c162500dd403f Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Fri, 16 Sep 2011 15:35:48 -0700 -Subject: [PATCH 1/3] texinfo: several changes to build without zlib and - ncurses +Subject: [PATCH] texinfo: several changes to build without zlib and ncurses We already DEPEND on the native texinfo being present before building so there isn't any need to try and build the required native texinfo binaries @@ -16,10 +15,10 @@ Signed-off-by: Joshua Lock 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/configure.ac b/configure.ac -index 8094498..5b72fc1 100644 +index 00626a3..5b725fe 100644 --- a/configure.ac +++ b/configure.ac -@@ -247,29 +247,7 @@ AC_CANONICAL_BUILD +@@ -267,29 +267,7 @@ AC_CANONICAL_BUILD # $native_tools is also added to SUBDIRS in the main Makefile.am, # so that make compiles the native tools first. # @@ -50,6 +49,3 @@ index 8094498..5b72fc1 100644 AC_SUBST(native_tools) AM_CONDITIONAL(TOOLS_ONLY, [[test "x$tools_only" = x1]]) --- -2.39.2 - diff --git a/meta/recipes-extended/texinfo/texinfo/0002-dont-depend-on-help2man.patch b/meta/recipes-extended/texinfo/texinfo/0002-dont-depend-on-help2man.patch deleted file mode 100644 index f3b6827d58..0000000000 --- a/meta/recipes-extended/texinfo/texinfo/0002-dont-depend-on-help2man.patch +++ /dev/null @@ -1,68 +0,0 @@ -From e02be81fa68ddc7f939abd99de4e42759a0d5d8c Mon Sep 17 00:00:00 2001 -From: Edwin Plauchu -Date: Tue, 29 Nov 2016 13:43:24 -0600 -Subject: [PATCH 2/3] dont-depend-on-help2man - -Upstream-Status: Inappropriate - -Signed-off-by: Marko Lindqvist -Signed-off-by: Edwin Plauchu ---- - doc/Makefile.am | 2 +- - man/Makefile.am | 12 ++++++------ - 2 files changed, 7 insertions(+), 7 deletions(-) - -diff --git a/doc/Makefile.am b/doc/Makefile.am -index e9e6298..f1b9895 100644 ---- a/doc/Makefile.am -+++ b/doc/Makefile.am -@@ -63,7 +63,7 @@ refcard/txirefcard.pdf refcard/txirefcard-a4.pdf: refcard/txirefcard.tex - # Include our texinfo.tex, not Automake's. - EXTRA_DIST = epsf.tex texinfo.tex \ - fdl.texi \ -- $(man_MANS) $(TXI_XLATE) \ -+ $(TXI_XLATE) \ - $(refcard_files) \ - texinfo-tex-test.texi texinfo-tex-test.WIDOWs \ - texinfo-ja.tex short-sample-ja.texi \ -diff --git a/man/Makefile.am b/man/Makefile.am -index f2c703f..61caeeb 100644 ---- a/man/Makefile.am -+++ b/man/Makefile.am -@@ -11,27 +11,27 @@ - # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - # These are generated using help2man. --man_MANS = install-info.1 makeinfo.1 texindex.1 texi2dvi.1 -+#man_MANS = install-info.1 makeinfo.1 texindex.1 texi2dvi.1 - - # These require the build in info/, thus can't do if we failed to find a - # terminal library. - if HAVE_TERMLIBS --man_MANS += info.1 -+#man_MANS += info.1 - endif - - # These are hand-written. --man_MANS += info.5 texinfo.5 -+#man_MANS += info.5 texinfo.5 - --man_MANS += pod2texi.1 -+#man_MANS += pod2texi.1 - - pod2texi.1: $(top_srcdir)/Pod-Simple-Texinfo/pod2texi.pl - $(POD2MAN) $(top_srcdir)/Pod-Simple-Texinfo/pod2texi.pl >"$@" - - - # These are just .so's to the common program. --man_MANS += texi2any.1 texi2pdf.1 pdftexi2dvi.1 -+#man_MANS += texi2any.1 texi2pdf.1 pdftexi2dvi.1 - --EXTRA_DIST = $(man_MANS) ginfo.h2m -+EXTRA_DIST = ginfo.h2m - - # Maintainers should be able to regenerate. - MAINTAINERCLEANFILES = $(man_MANS) --- -2.39.2 - diff --git a/meta/recipes-extended/texinfo/texinfo/0003-texinfo-Update-to-5.1.patch b/meta/recipes-extended/texinfo/texinfo/0003-texinfo-Update-to-5.1.patch index f99f8b87d5..4985d30503 100644 --- a/meta/recipes-extended/texinfo/texinfo/0003-texinfo-Update-to-5.1.patch +++ b/meta/recipes-extended/texinfo/texinfo/0003-texinfo-Update-to-5.1.patch @@ -1,7 +1,7 @@ -From 33b85a3928895b812b37dc759c6de711802db45f Mon Sep 17 00:00:00 2001 +From 0131013100bf0baabfc0f9a44341e0d9d7cca794 Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Mon, 29 Jul 2013 15:02:34 -0700 -Subject: [PATCH 3/3] texinfo: Update to 5.1 +Subject: [PATCH] texinfo: Update to 5.1 Upstream-Status: Inappropriate [cross build specific] @@ -11,10 +11,10 @@ Signed-off-by: Saul Wold 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/info/Makefile.am b/info/Makefile.am -index f57b341..a019aa7 100644 +index 660d7f5..bed840a 100644 --- a/info/Makefile.am +++ b/info/Makefile.am -@@ -77,7 +77,7 @@ cmd_sources = $(srcdir)/session.c $(srcdir)/echo-area.c $(srcdir)/infodoc.c \ +@@ -81,7 +81,7 @@ cmd_sources = $(srcdir)/session.c $(srcdir)/echo-area.c $(srcdir)/infodoc.c \ # more than once. funs.h: makedoc$(EXEEXT) $(cmd_sources) rm -f $(generated_sources) @@ -23,6 +23,3 @@ index f57b341..a019aa7 100644 # The following hack is necessary to hint make before the automatic # dependencies are built. --- -2.39.2 - diff --git a/meta/recipes-extended/texinfo/texinfo_7.1.1.bb b/meta/recipes-extended/texinfo/texinfo_7.1.1.bb new file mode 100644 index 0000000000..cc8683f085 --- /dev/null +++ b/meta/recipes-extended/texinfo/texinfo_7.1.1.bb @@ -0,0 +1,90 @@ +SUMMARY = "Documentation system for on-line information and printed output" +DESCRIPTION = "Texinfo is a documentation system that can produce both \ +online information and printed output from a single source file. The \ +GNU Project uses the Texinfo file format for most of its documentation." +HOMEPAGE = "http://www.gnu.org/software/texinfo/" +SECTION = "console/utils" +LICENSE = "GPL-3.0-or-later" +LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464" + +PROVIDES:append:class-native = " texinfo-replacement-native" + +def compress_pkg(d): + if bb.data.inherits_class('compress_doc', d): + compress = d.getVar("DOC_COMPRESS") + if compress == "gz": + return "gzip" + elif compress == "bz2": + return "bzip2" + elif compress == "xz": + return "xz" + return "" + +RDEPENDS:info += "${@compress_pkg(d)}" + +DEPENDS = "zlib ncurses texinfo-replacement-native" +DEPENDS:class-native = "zlib-native ncurses-native" + +TARGET_PATCH = "file://0003-texinfo-Update-to-5.1.patch" +TARGET_PATCH:class-native = "" + +SRC_URI = "${GNU_MIRROR}/texinfo/${BP}.tar.gz \ + file://0001-texinfo-several-changes-to-build-without-zlib-and-nc.patch \ + file://0001-Makefile.am-do-not-build-manpages.patch \ + ${TARGET_PATCH} \ + " + +SRC_URI[sha256sum] = "a46b46b54fd79641a8af5be4ad525788956ccf9798d3113396abeafa9020ef63" + +tex_texinfo = "texmf/tex/texinfo" + +inherit gettext autotools multilib_script + +MULTILIB_SCRIPTS = "${PN}:${bindir}/texi2any" + +EXTRA_AUTORECONF += "-I ${S}/gnulib/m4" +CACHED_CONFIGUREVARS += "texinfo_cv_sys_iconv_converts_euc_cn=yes" + +do_configure:prepend () { + # autotools_do_configure updates po/Makefile.in.in, we also need + # update po_document. + cp -f ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/po_document/ +} + +do_compile:prepend() { + if [ -d tools ];then + oe_runmake -C tools/gnulib/lib + fi +} + +do_install:append() { + mkdir -p ${D}${datadir}/${tex_texinfo} + install -p -m644 ${S}/doc/texinfo.tex ${S}/doc/txi-??.tex ${D}${datadir}/${tex_texinfo} + sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/texi2any ${D}${bindir}/pod2texi + sed -i -e 's,${HOSTTOOLS_DIR},,' ${D}${bindir}/texindex +} + +do_install:append:class-native() { + install -m 755 info/makedoc ${D}${bindir} +} + +PACKAGES += "info info-doc" + +FILES:info = "${bindir}/info ${bindir}/infokey ${bindir}/install-info" +FILES:info-doc = "${infodir}/info.info* ${infodir}/dir ${infodir}/info-*.info* \ + ${mandir}/man1/info.1* ${mandir}/man5/info.5* \ + ${mandir}/man1/infokey.1* ${mandir}/man1/install-info.1*" + +FILES:${PN} = "${bindir}/makeinfo ${bindir}/texi* ${bindir}/pdftexi2dvi ${bindir}/pod2texi ${datadir}/texinfo" +RDEPENDS:${PN} = "perl" +FILES:${PN}-doc = "${infodir}/texi* \ + ${datadir}/${tex_texinfo} \ + ${mandir}/man1 ${mandir}/man5" + +# Lie about providing the Locale::gettext_xs module. It is not actually built, +# but the code will test for it and if not found use Locale::gettext_pp instead. +# However, this causes a file dependency on perl(Locale::gettext_xs) to be +# generated, which must be satisfied. +RPROVIDES:${PN} += "perl(Locale::gettext_xs)" + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-extended/texinfo/texinfo_7.1.bb b/meta/recipes-extended/texinfo/texinfo_7.1.bb deleted file mode 100644 index 65d8252fb9..0000000000 --- a/meta/recipes-extended/texinfo/texinfo_7.1.bb +++ /dev/null @@ -1,90 +0,0 @@ -SUMMARY = "Documentation system for on-line information and printed output" -DESCRIPTION = "Texinfo is a documentation system that can produce both \ -online information and printed output from a single source file. The \ -GNU Project uses the Texinfo file format for most of its documentation." -HOMEPAGE = "http://www.gnu.org/software/texinfo/" -SECTION = "console/utils" -LICENSE = "GPL-3.0-or-later" -LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464" - -PROVIDES:append:class-native = " texinfo-replacement-native" - -def compress_pkg(d): - if bb.data.inherits_class('compress_doc', d): - compress = d.getVar("DOC_COMPRESS") - if compress == "gz": - return "gzip" - elif compress == "bz2": - return "bzip2" - elif compress == "xz": - return "xz" - return "" - -RDEPENDS:info += "${@compress_pkg(d)}" - -DEPENDS = "zlib ncurses texinfo-replacement-native" -DEPENDS:class-native = "zlib-native ncurses-native" - -TARGET_PATCH = "file://0003-texinfo-Update-to-5.1.patch" -TARGET_PATCH:class-native = "" - -SRC_URI = "${GNU_MIRROR}/texinfo/${BP}.tar.gz \ - file://0001-texinfo-several-changes-to-build-without-zlib-and-nc.patch \ - file://0002-dont-depend-on-help2man.patch \ - ${TARGET_PATCH} \ - " - -SRC_URI[sha256sum] = "dd5710b3a53ac002644677a06145748e260592a35be182dc830ebebb79c5d5a0" - -tex_texinfo = "texmf/tex/texinfo" - -inherit gettext autotools multilib_script - -MULTILIB_SCRIPTS = "${PN}:${bindir}/texi2any" - -EXTRA_AUTORECONF += "-I ${S}/gnulib/m4" -CACHED_CONFIGUREVARS += "texinfo_cv_sys_iconv_converts_euc_cn=yes" - -do_configure:prepend () { - # autotools_do_configure updates po/Makefile.in.in, we also need - # update po_document. - cp -f ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/po_document/ -} - -do_compile:prepend() { - if [ -d tools ];then - oe_runmake -C tools/gnulib/lib - fi -} - -do_install:append() { - mkdir -p ${D}${datadir}/${tex_texinfo} - install -p -m644 ${S}/doc/texinfo.tex ${S}/doc/txi-??.tex ${D}${datadir}/${tex_texinfo} - sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/texi2any ${D}${bindir}/pod2texi - sed -i -e 's,${HOSTTOOLS_DIR},,' ${D}${bindir}/texindex -} - -do_install:append:class-native() { - install -m 755 info/makedoc ${D}${bindir} -} - -PACKAGES += "info info-doc" - -FILES:info = "${bindir}/info ${bindir}/infokey ${bindir}/install-info" -FILES:info-doc = "${infodir}/info.info* ${infodir}/dir ${infodir}/info-*.info* \ - ${mandir}/man1/info.1* ${mandir}/man5/info.5* \ - ${mandir}/man1/infokey.1* ${mandir}/man1/install-info.1*" - -FILES:${PN} = "${bindir}/makeinfo ${bindir}/texi* ${bindir}/pdftexi2dvi ${bindir}/pod2texi ${datadir}/texinfo" -RDEPENDS:${PN} = "perl" -FILES:${PN}-doc = "${infodir}/texi* \ - ${datadir}/${tex_texinfo} \ - ${mandir}/man1 ${mandir}/man5" - -# Lie about providing the Locale::gettext_xs module. It is not actually built, -# but the code will test for it and if not found use Locale::gettext_pp instead. -# However, this causes a file dependency on perl(Locale::gettext_xs) to be -# generated, which must be satisfied. -RPROVIDES:${PN} += "perl(Locale::gettext_xs)" - -BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf