From a3931e7dcf5d721c579d2ff75aa9e76c6b9343e6 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 14 Feb 2012 15:41:36 +0100 Subject: [PATCH] texinfo: add patch to fix large info index, properly fix index stuff. --- srcpkgs/texinfo/INSTALL | 9 ++++++ srcpkgs/texinfo/REMOVE | 5 +++ .../patches/texinfo-4.13a-data_types.patch | 31 +++++++++++++++++++ srcpkgs/texinfo/template | 5 ++- 4 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/texinfo/INSTALL create mode 100644 srcpkgs/texinfo/REMOVE create mode 100644 srcpkgs/texinfo/patches/texinfo-4.13a-data_types.patch diff --git a/srcpkgs/texinfo/INSTALL b/srcpkgs/texinfo/INSTALL new file mode 100644 index 00000000000..ec4da601667 --- /dev/null +++ b/srcpkgs/texinfo/INSTALL @@ -0,0 +1,9 @@ +case ${ACTION} in +post) + # Register all info files in case they weren't registered. + rm -f usr/share/info/dir + for f in $(find usr/share/info -type f ! -name dir); do + install-info $f usr/share/info/dir 2>/dev/null + done + ;; +esac diff --git a/srcpkgs/texinfo/REMOVE b/srcpkgs/texinfo/REMOVE new file mode 100644 index 00000000000..e91118faf47 --- /dev/null +++ b/srcpkgs/texinfo/REMOVE @@ -0,0 +1,5 @@ +case ${ACTION} in +pre) + [ "$UPDATE" = "no" ] && rm -f usr/share/info/dir + ;; +esac diff --git a/srcpkgs/texinfo/patches/texinfo-4.13a-data_types.patch b/srcpkgs/texinfo/patches/texinfo-4.13a-data_types.patch new file mode 100644 index 00000000000..bd25fbcb319 --- /dev/null +++ b/srcpkgs/texinfo/patches/texinfo-4.13a-data_types.patch @@ -0,0 +1,31 @@ +--- info/window.c_old 2009-08-04 13:46:15.000000000 +0200 ++++ info/window.c 2009-08-04 13:47:29.000000000 +0200 +@@ -1581,7 +1581,7 @@ process_node_text (WINDOW *win, char *st + const char *carried_over_ptr; + size_t carried_over_len, carried_over_count; + const char *cur_ptr = mbi_cur_ptr (iter); +- int cur_len = mb_len (mbi_cur (iter)); ++ size_t cur_len = mb_len (mbi_cur (iter)); + int replen; + int delim = 0; + int rc; +@@ -1754,7 +1754,7 @@ clean_manpage (char *manpage) + mbi_advance (iter)) + { + const char *cur_ptr = mbi_cur_ptr (iter); +- int cur_len = mb_len (mbi_cur (iter)); ++ size_t cur_len = mb_len (mbi_cur (iter)); + + if (cur_len == 1) + { +@@ -1852,8 +1852,8 @@ window_scan_line (WINDOW *win, int line, + mbi_advance (iter)) + { + const char *cur_ptr = mbi_cur_ptr (iter); +- int cur_len = mb_len (mbi_cur (iter)); +- int replen; ++ size_t cur_len = mb_len (mbi_cur (iter)); ++ size_t replen; + + if (cur_ptr >= endp) + break; diff --git a/srcpkgs/texinfo/template b/srcpkgs/texinfo/template index 663a90c4add..8d6aeec899e 100644 --- a/srcpkgs/texinfo/template +++ b/srcpkgs/texinfo/template @@ -1,12 +1,14 @@ # Template file for 'texinfo' pkgname=texinfo version=4.13a -revision=7 +revision=8 wrksrc="$pkgname-4.13" +homepage="http://www.gnu.org/software/texinfo/" distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version.tar.gz" build_style=gnu-configure short_desc="The GNU Documentation System" maintainer="Juan RP " +license="GPL-3" checksum=1303e91a1c752b69a32666a407e9fbdd6e936def4b09bc7de30f416301530d68 long_desc=" Texinfo is the official documentation format of the GNU project. It was @@ -23,6 +25,7 @@ if [ -n "$BOOTSTRAP_PKG_REBUILD" ]; then fi post_install() { + rm -f ${DESTDIR}/usr/share/info/dir # Compress manually info files. gzip -9 ${DESTDIR}/usr/share/info/* }