Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259076 - sys-apps/texinfo should have LZMA support
Summary: sys-apps/texinfo should have LZMA support
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-15 10:56 UTC by Guenther Brunthaler
Modified: 2009-12-27 17:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
This patch file should be put into the files/ subdirectory of the ebuild (texinfo-4.11-lzma-support.patch,1.66 KB, patch)
2009-02-15 10:56 UTC, Guenther Brunthaler
Details | Diff
Patch for ebuild: Makes 4.11-r1 into 4.11-r2 (texinfo-4.11-r1-to-r2.patch,988 bytes, patch)
2009-02-15 11:02 UTC, Guenther Brunthaler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guenther Brunthaler 2009-02-15 10:56:02 UTC
If someone sets

# The command used to compress documentation during the install phase.
PORTAGE_COMPRESS="lzma"

# Flags for the PORTAGE_COMPRESS command.
PORTAGE_COMPRESS_FLAGS="-9"

in make.conf, all *.info files will be LZMA-compressed instead of
*.bz2-compressed which is the default.

However, "info" does not support LZMA-compression, and so all installed
.info files will not be usable.

It follows that it is either a bug that $PORTAGE_COMPRESS applies to
the installed .info files, or "info" need to be enhanced in order to
also support LZMA-compressed files.

Reproducible: Always

Steps to Reproduce:
1.Emerge sys-apps/info with PORTAGE_COMPRESS="lzma" in /etc/make.conf
2.Run "info info"
3.It cannot even display its own help!

Actual Results:  
The "man" page is displayed, although the *.info.lzma-files are available.

Expected Results:  
The /usr/share/info/*.info.lzma-files should be displayed instead.

It was quite easy to add LZMA-support to sys-apps/info.

I have created a small patch and and added support for the "lzma" USE flag.
Comment 1 Guenther Brunthaler 2009-02-15 10:56:54 UTC
Created attachment 182109 [details, diff]
This patch file should be put into the files/ subdirectory of the ebuild
Comment 2 Guenther Brunthaler 2009-02-15 10:58:45 UTC
Comment on attachment 182109 [details, diff]
This patch file should be put into the files/ subdirectory of the ebuild

This is a patch for texinfo version 4.11
Comment 3 Guenther Brunthaler 2009-02-15 11:02:22 UTC
Created attachment 182113 [details, diff]
Patch for ebuild: Makes 4.11-r1 into 4.11-r2

Apply this patch to the 4.11-r1 ebuild and the into 4.11-r2 will result.
The new ebuild then requires the other patch file in the files/ directory.
Comment 4 Guenther Brunthaler 2009-02-15 11:04:24 UTC
As "lzma" is not a global USE flag yet, a corresponding line should be added to "/usr/portage/profiles/use.local.desc".
Comment 5 Guenther Brunthaler 2009-02-15 11:05:08 UTC
Tested successfully on amd64.
Comment 6 SpanKY gentoo-dev 2009-02-15 19:25:09 UTC
4.13 already has lzma support