Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566134 - sci-mathematics/octave-4.0.0: please add macros.texi to the installation
Summary: sci-mathematics/octave-4.0.0: please add macros.texi to the installation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-18 15:41 UTC by Francisco J. Vazquez
Modified: 2016-05-02 22:42 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco J. Vazquez 2015-11-18 15:41:50 UTC
Octave is IMO quite useless without a 'help' command. Right now the help command only works with USE="+doc", because macros.texi (a 2505 bytes file!) is not installed otherwise. Not having macros.texi results in:

error: unable to open /usr/share/octave/4.0.0/etc/macros.texi for reading
error: called from
    __makeinfo__ at line 103 column 5
    help at line 102 column 22

every time help <command> is invoked. 

I can understand the technical reasoning behind the decision, but come on, this is *INSANE*:

[ebuild  N     ] dev-libs/kpathsea-6.2.1_p20150521:0/6.2.1::gentoo  USE="-doc -source -static-libs" 44435 KiB
[ebuild  N     ] sys-apps/ed-1.12::gentoo  86 KiB
[ebuild  N     ] dev-libs/zziplib-0.13.62::gentoo  USE="-doc -sdl -static-libs {-test}" 670 KiB
[ebuild  N     ] app-text/dvipsk-5.995_p20150521::gentoo  USE="-doc -source" 156 KiB
[ebuild  N     ] app-text/ps2pkm-1.7_p20150521::gentoo  0 KiB
[ebuild  N     ] dev-libs/icu-55.1:0/55::gentoo  USE="-debug -doc -examples -static-libs" ABI_X86="(64) -32 (-x32)" 25001 KiB
[ebuild  N     ] x11-proto/printproto-1.0.5-r1::gentoo  ABI_X86="(64) -32 (-x32)" 218 KiB
[ebuild  N     ] x11-libs/libXp-1.0.3::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 310 KiB
[ebuild  N     ] dev-tex/bibtexu-3.71_p20150521::gentoo  USE="-doc -source" 10 KiB
[ebuild  N     ] media-libs/openjpeg-2.1.0-r1:2/7::gentoo  USE="-doc -static-libs {-test}" ABI_X86="(64) -32 (-x32)" 1748 KiB
[ebuild  N     ] app-text/poppler-0.37.0:0/56::gentoo  USE="cairo cxx introspection jpeg jpeg2k lcms png tiff utils -cjk -curl -debug -doc -qt4 -qt5" 1599 KiB
[ebuild  N     ] app-text/texlive-core-2015::gentoo  USE="X luajittex -cjk -doc -source -tk -xetex" 1057 KiB
[ebuild  N     ] dev-texlive/texlive-basic-2015::gentoo  USE="luajittex -doc -source" 5547 KiB
[ebuild  N     ] dev-texlive/texlive-metapost-2015::gentoo  USE="-doc -source" 438 KiB
[ebuild  N     ] dev-texlive/texlive-genericrecommended-2015::gentoo  USE="-doc -source" 217 KiB
[ebuild  N     ] dev-texlive/texlive-fontutils-2015::gentoo  USE="-doc -source" 208 KiB
[ebuild  N     ] dev-texlive/texlive-latex-2015::gentoo  USE="-doc -source" 994 KiB
[ebuild  N     ] dev-texlive/texlive-latexrecommended-2015-r1::gentoo  USE="-doc -source" 12111 KiB
[ebuild  N     ] virtual/latex-base-1.0::gentoo  0 KiB
[ebuild   R    ] sci-mathematics/octave-4.0.0:0/4.0.0::local [4.0.0:0/4.0.0::gentoo] USE="X curl doc* glpk imagemagick opengl qhull qrupdate readline sparse zlib -fftw -gnuplot -gui -hdf5 -java -jit -postscript -static-libs" 0 KiB

when simply adding macros.texi to /usr/share/${PN}/${PV}/etc is enough to have a functioning help command. I've tested it, and adding 

     insinto /usr/share/${PN}/${PV}/etc
     doins doc/interpreter/macros.texi

to the end of src_install is enough (I assume it's because texinfo is already installed, but it could be pulled unconditionally, like screen does... at least texinfo is better than friggin' latex).

Please, consider adding this 2kB file to the installation in order to avoid the unneeded compilation of >90MB of sources.

Reproducible: Always
Comment 1 Mark Wright gentoo-dev 2016-05-02 22:42:47 UTC
commit e6801205709810eef87d39b74cf8d23edb25adad
Author: Mark Wright <gienah@gentoo.org>
Date:   Tue May 3 00:43:40 2016 +1000

    sci-mathematics/octave: Fix bug 566134, thanks to Francisco Vazquez for reporting.
    
    Gentoo-bug: 566134