Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106308 - yacas help commands don't work
Summary: yacas help commands don't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-17 13:41 UTC by Mark Purtill
Modified: 2005-10-01 19:50 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 Mark Purtill 2005-09-17 13:41:33 UTC
At startup, yacas displays the messages:

Type ?? for help.
Or type ?function for help on a function.

But neither of these work.

Reproducible: Always
Steps to Reproduce:
1. Start yacas
2. Type ??
3. Type ?Factors

Actual Results:  
After 2, lynx displayed my current working directory.
After 3, lynx said "Alert! Unable to connect to ftp site", then yacas showed:


Looking up
Unable to locate remote host .
Alert!: Unable to connect to FTP host.

lynx: Can't access startfile file:///#Factor


Expected Results:  
After ??, yacas should have displayed some sort of general help.  After ?Factor,
it should have displayed information about the Factors command.

The file /usr/share/yacas/yacasinit.ys contains the following lines that may be
relevant:


Rule("Help",1,1,True)
[
  SystemCall(Browser:" \"file://":FindFile("documentation/ref.html"):"#":f:"\"");
];
Rule("Help",0,1,True)
[
  SystemCall(Browser:" \"file://":FindFile("documentation/books.html"):"\"");
];

Files called 'ref.html' and 'books.html' are installed by the yacas ebuild, but
they're located at:

/usr/share/doc/yacas-1.0.56/html/ref.html

and 

/usr/share/doc/yacas-1.0.56/html/books.html

However, changing yacasinit.ys to refer to 'html' instead of 'documentation'
doesn't solve the problem.  I have to replace those lines with:

Rule("Help",1,1,True)
[
  SystemCall(Browser:"
\"file://localhost/usr/share/doc/yacas-1.0.56/html/ref.html#":f:"\"");
];
Rule("Help",0,1,True)
[
  SystemCall(Browser:"
\"file://localhost/usr/share/doc/yacas-1.0.56/html/books.html\"");
];

to get ?? and ?Factors to work.

% emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1,
2.6.12-gentoo-r4 i686)
=================================================================
System uname: 2.6.12-gentoo-r4 i686 AMD Athlon(tm) XP 1900+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-g -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config
/usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-g -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages nostrip sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://gentoo.ccccom.com
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirror.datapipe.net/gentoo
http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.ccccom.com"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en ja"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d aalib alsa apm arts avi berkdb bindist bitmap-fonts canna
cdr cjk crypt cups curl debug doc dvd eds emboss encode esd fam flac foomaticdb
fortran freetype freewnn gd gdbm gif gnome gpm gstreamer gtk gtk2 guile
imagemagick imlib ipv6 java joystick jpeg junit kde libg++ libwww mad maildir
mbox mikmod mng mozilla mozsvg mp3 mpeg mule ncurses nls noantlr nobcel
nobeanutils nobsh nocommonslogging nocommonsnet nodrm nojdepend nojsch nojython
nolog4j nooro noregexp norhino noxalan noxerces ogg oggvorbis opengl oss pam
pdflib perl pic pngpython qt quicktime readline ruby scanner sdl slang speex
spell sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts
unicode usb vorbis wmf xine xinerama xml xml2 xmms xv zlib video_cards_matrox
linguas_en linguas_ja userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS
Comment 1 Olivier Fisette (RETIRED) gentoo-dev 2005-10-01 19:50:08 UTC
Thanks for reporting. This is now fixed in all the versions in Portage  
(including 1.0.58, which I just added). Unfortunately, there is no user  
function reference manual in versions later than 1.0.56 (it seems the manual 
is in the process of being rewritten, so only general help is available (per 
topic help is missing).