Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 182109 Details for
Bug 259076
sys-apps/texinfo should have LZMA support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
This patch file should be put into the files/ subdirectory of the ebuild
texinfo-4.11-lzma-support.patch (text/plain), 1.66 KB, created by
Guenther Brunthaler
on 2009-02-15 10:56:54 UTC
(
hide
)
Description:
This patch file should be put into the files/ subdirectory of the ebuild
Filename:
MIME Type:
Creator:
Guenther Brunthaler
Created:
2009-02-15 10:56:54 UTC
Size:
1.66 KB
patch
obsolete
>Add optional support for LZMA decompression > >Index: texinfo/util/install-info.c >=================================================================== >--- texinfo.orig/util/install-info.c >+++ texinfo/util/install-info.c >@@ -354,6 +354,13 @@ strip_info_suffix (char *fname) > len -= 4; > ret[len] = 0; > } >+#ifdef ACTIVATE_LZMA_PATCH >+ else if (len > 5 && FILENAME_CMP (ret + len - 5, ".lzma") == 0) >+ { >+ len -= 5; >+ ret[len] = 0; >+ } >+#endif > > if (len > 5 && FILENAME_CMP (ret + len - 5, ".info") == 0) > { >@@ -586,6 +593,14 @@ open_possibly_compressed_file (char *fil > *opened_filename = concat (filename, ".bz2", ""); > f = fopen (*opened_filename, FOPEN_RBIN); > } >+#ifdef ACTIVATE_LZMA_PATCH >+ if (!f) >+ { >+ free (*opened_filename); >+ *opened_filename = concat (filename, ".lzma", ""); >+ f = fopen (*opened_filename, FOPEN_RBIN); >+ } >+#endif > > #ifdef __MSDOS__ > if (!f) >@@ -654,6 +669,14 @@ open_possibly_compressed_file (char *fil > #else > *compression_program = "bzip"; > #endif >+#ifdef ACTIVATE_LZMA_PATCH >+ else if(data[0] == '\x5d' && data[1] == '\x00' && data[2] == '\x00') >+#ifndef STRIP_DOT_EXE >+ *compression_program = "lzma.exe"; >+#else >+ *compression_program = "lzma"; >+#endif >+#endif > else > *compression_program = NULL; > >Index: texinfo/info/filesys.c >=================================================================== >--- texinfo.orig/info/filesys.c >+++ texinfo/info/filesys.c >@@ -62,6 +62,9 @@ static COMPRESSION_ALIST compress_suffix > { "gz", "gunzip" }, > { "z", "gunzip" }, > #endif >+#ifdef ACTIVATE_LZMA_PATCH >+ { ".lzma", "unlzma" }, >+#endif > { (char *)NULL, (char *)NULL } > }; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 259076
: 182109 |
182113