Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176411 - sci-mathematics/maxima: replace pkg_preinst bunzip2 kludge by docompress -x
Summary: sci-mathematics/maxima: replace pkg_preinst bunzip2 kludge by docompress -x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
: 487726 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-28 22:47 UTC by JoeSixpack
Modified: 2020-03-27 02:49 UTC (History)
4 users (show)

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 JoeSixpack 2007-04-28 22:47:50 UTC
I believe both maxima-5.9.1-r5 and 5.11.0-r2 (and possibly all maxima ebuilds in portage) install the maxima info files to /usr/share/info/foo.info.bz2.  However, maxima apparently cannot open bz2 files.

maxima uses these info files to provide interactive help.  So unless maxima is patched to understand bz2 (sounds hard) then maybe the info files for maxima should be extracted during emerge?

As it stands now, when a user installs maxima, any attempt to access help from within the software will give a lengthy error message.  However, when I did this:

cd /usr/share/info; sudo bunzip2 maxima*

then maxima commands like "describe(foo);" work fine again.


Reproducible: Always

Steps to Reproduce:
1.# emerge maxima
2.$ maxima
3.(%i1) describe(help);

Actual Results:  
Could not find `/usr/share/info/maxima-index.lisp' using paths in
file_search_lisp,system (combined values:
[/home/joe/.maxima/###.{o,lisp,lsp}, /usr/share/maxima/5.11.0/share/###.{o,lisp,lsp}
, /usr/share/maxima/5.11.0/share/{affine,algebra,algebra/charsets,algebra/solv\
er,calculus,combinatorics,contrib,contrib/boolsimp,contrib/descriptive,contrib\
/diffequations,contrib/diffequations/tests,contrib/distrib,contrib/dynamics,co\
ntrib/ezunits,contrib/format,contrib/gentran,contrib/gentran/test,contrib/Grob\
ner,contrib/lurkmathml,contrib/maximaMathML,contrib/mcclim,contrib/numericalio\
,contrib/pdiff,contrib/prim,contrib/rand,contrib/sarag,contrib/simplex,contrib\
/simplex/Tests,contrib/solve_rec,contrib/state,contrib/stats,contrib/stringpro\
c,contrib/unit,contrib/Zeilberger,diff_form,diffequations,lbfgs,linearalgebra,\
integequations,integration,macro,matrix,misc,numeric,orthopoly,physics,simplif\
ication,sym,tensor,tensor/tests,trigonometry,utils,vector}/###.{o,lisp,lsp},
/usr/share/maxima/5.11.0/src/###.{o,lisp,lsp},
/usr/lib/gcl-2.6.7/unixport/../src/foo.{o,lsp,lisp}] )
 -- an error.  To debug this try debugmode(true);


Expected Results:  
 0: Definitions for Help
 1: Introduction to Help
Enter space-separated numbers, `all' or `none': 
Still waiting:
Comment 1 Markus Dittrich (RETIRED) gentoo-dev 2007-04-30 03:26:56 UTC
Hi, 

Thanks for your bug report. The info files are installed and bzipped 
by portage. In principle, the default of using bzip2 can be changed
to gzip by putting PORTAGE_COMPRESS="gzip" into /etc/make.conf.
Unfortunately, this can't presently be done on a per ebuild basis.
A temporary solution might be a notice at the beginning of the 
emerge to notify the user. We could also try to fix maxima itself;
unfortunately, this will break once users select yet another 
compression method via  PORTAGE_COMPRESS="foo".
I'll have to think about what might be the most promising route
at this point.

For now, the PORTAGE_COMPRESS="gzip" should fix it for you
temporarily.

Best,
Markus


 
Comment 2 Ulrich Müller gentoo-dev 2009-03-17 09:14:33 UTC
I think that the proposed "docompress" feature (see bug 260118) will provide a nice solution for this.
Comment 3 Andrey Grozin gentoo-dev 2009-03-18 23:14:44 UTC
This has been fixed long ago, though by a kludge. Closing.
Comment 4 Casper Ti. Vector 2014-09-14 07:13:44 UTC
The ebuilds are only aware of bz2 compression.
Since they are all EAPI 5 now, the old trick can and should be replaced by `docompress -x /usr/share/info', which works for other PORTAGE_COMPRESS options as well.
Comment 5 Andrey Grozin gentoo-dev 2014-09-14 10:06:40 UTC
*maxima-5.34.1 (14 Sep 2014)

  14 Sep 2014; Andrey Grozin <grozin@gentoo.org> +maxima-5.34.1.ebuild:
  Version bump, no einstall (#521650), docompress (#176411)
Comment 6 Michael Orlitzky gentoo-dev 2020-03-27 02:49:14 UTC
*** Bug 487726 has been marked as a duplicate of this bug. ***