bugGNU Octave - Bugs: bug #43526, doc command to octave fails to...

 
 

bug #43526: doc command to octave fails to find /usr/share/info/octave.info.bz2

Submitter:  None
Submitted:  Tue 04 Nov 2014 02:18:41 PM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Ted Marston Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.8.2
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 05 Nov 2014 04:19:52 AM UTC, comment #7: 

Okay, I made the change on the development branch in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/e433efa383e4).  Closing report.

Rik <rik5>
Group administrator
Wed 05 Nov 2014 02:37:07 AM UTC, comment #6: 

No, just mentioning for completeness. I'm honestly surprised to see any other than .gz.

Mike Miller <mtmiller>
Group Member
Wed 05 Nov 2014 02:23:57 AM UTC, comment #5: 

Do we want to bother to support everything that info does?  I haven't seen .lz or .lzma used in a very long time.

Rik <rik5>
Group administrator
Wed 05 Nov 2014 02:12:32 AM UTC, comment #4: 

I took a quick look at the GNU Texinfo source to see what compression schemes it supports.

It appears to handle files named .gz, .xz, .bz2, .lz, .lzma, meaning it will try appending those extensions in turn after .info. Complicates the doc.m logic a bit more unfortunately.

Also worth reminding here that compressed Info currently does not work with the GUI help browser.

Mike Miller <mtmiller>
Group Member
Tue 04 Nov 2014 04:01:46 PM UTC, comment #3: 

I just did a quick test using the command line version of info and it does accept both gzip and bzip files, although not zip archives.  So it does seem like this change can be made safely.

Rik <rik5>
Group administrator
Tue 04 Nov 2014 02:50:34 PM UTC, comment #2: 

I am using Gentoo and yes info works fine with bzip2 files. I think it can also work with other compression formats too, but I have not tried them.

Ted Marston <ted>
Tue 04 Nov 2014 02:26:52 PM UTC, comment #1: 

Thanks for your bug report. I have not yet seen bzip-compressed info pages, what distribution is doing this? Does GNU Info work with the info files compressed this way?

Mike Miller <mtmiller>
Group Member
Tue 04 Nov 2014 02:18:41 PM UTC, original submission:  

scripts/help/doc.m does not look for a bzip2 compressed info file.
for example, giving the octave interpreter the command "doc" fails to find the info file /usr/share/info/octave.info.bz2.

a simple fix is:

*** scripts/help/doc.m.Orig     Wed Aug  6 18:57:55 2014
--- scripts/help/doc.m  Tue Nov  4 13:31:21 2014
***************
*** 81,87 ****
          info_file_name = info_file ();

          if (! exist (info_file_name, "file")
!             && ! exist ([info_file_name ".gz"], "file"))
            __gripe_missing_component__ ("doc", "info-file");
          endif
        endif
--- 81,88 ----
          info_file_name = info_file ();

          if (! exist (info_file_name, "file")
!             && ! exist ([info_file_name ".gz"], "file")
!             && ! exist ([info_file_name ".bz2"], "file"))
            __gripe_missing_component__ ("doc", "info-file");
          endif
        endif


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by ted (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-11-05 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2014-11-04 rik5 StatusNeed Info Confirmed
    2014-11-04 mtmiller StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code