summaryrefslogtreecommitdiff
path: root/Build/source/utils/lzma-utils/extra/texinfo/texinfo-4.8-lzma.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/lzma-utils/extra/texinfo/texinfo-4.8-lzma.patch')
-rw-r--r--Build/source/utils/lzma-utils/extra/texinfo/texinfo-4.8-lzma.patch53
1 files changed, 0 insertions, 53 deletions
diff --git a/Build/source/utils/lzma-utils/extra/texinfo/texinfo-4.8-lzma.patch b/Build/source/utils/lzma-utils/extra/texinfo/texinfo-4.8-lzma.patch
deleted file mode 100644
index b96469edea5..00000000000
--- a/Build/source/utils/lzma-utils/extra/texinfo/texinfo-4.8-lzma.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-# This patch has been put into the public domain
-# by Per Øyvind Karlsen <pkarlsen@mandriva.com>.
-
---- texinfo-4.8/util/install-info.c.lzma 2007-06-07 21:04:02.000000000 +0200
-+++ texinfo-4.8/util/install-info.c 2007-06-07 21:12:20.000000000 +0200
-@@ -338,6 +338,11 @@ strip_info_suffix (char *fname)
- len -= 4;
- ret[len] = 0;
- }
-+ else if (len > 5 && FILENAME_CMP (ret + len - 5, ".lzma") == 0)
-+ {
-+ len -= 5;
-+ ret[len] =0;
-+ }
-
- if (len > 5 && FILENAME_CMP (ret + len - 5, ".info") == 0)
- {
-@@ -556,6 +561,12 @@ open_possibly_compressed_file (char *fil
- *opened_filename = concat (filename, ".bz2", "");
- f = fopen (*opened_filename, FOPEN_RBIN);
- }
-+ if (!f)
-+ {
-+ free (*opened_filename);
-+ *opened_filename = concat (filename, ".lzma", "");
-+ f = fopen (*opened_filename, FOPEN_RBIN);
-+ }
-
- #ifdef __MSDOS__
- if (!f)
-@@ -624,6 +635,12 @@ open_possibly_compressed_file (char *fil
- #else
- *compression_program = "bzip";
- #endif
-+ else if(data[9] == '0x00' && data[10] == '0x00' && data[11] == '0x00' & data[12] == '0x00')
-+#ifndef STRIP_DOT_EXE
-+ *compression_program = "lzma.exe";
-+#else
-+ *compression_program = "lzma";
-+#endif
- else
- *compression_program = NULL;
-
---- texinfo-4.8/info/filesys.c.lzma 2004-07-30 19:17:40.000000000 +0200
-+++ texinfo-4.8/info/filesys.c 2007-06-07 21:21:49.000000000 +0200
-@@ -56,6 +56,7 @@ static char *info_suffixes[] = {
- static COMPRESSION_ALIST compress_suffixes[] = {
- { ".gz", "gunzip" },
- { ".bz2", "bunzip2" },
-+ { ".lzma", "unlzma" },
- { ".z", "gunzip" },
- { ".Z", "uncompress" },
- { ".Y", "unyabba" },