bugGNU Octave - Bugs: bug #50285, Possible "rm" missing...

 
 

bug #50285: Possible "rm" missing from Makefile when attempting to replace gdbinit

Submitted by:  Dan Sebald <sebald>
Submitted on:  Sun 12 Feb 2017 04:46:35 AM UTC  
 
Category: Configuration and Build SystemSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Build Failure
Status: InvalidAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 13 Feb 2017 10:27:15 PM UTC, comment #4:

This ~/.octavegdbinit idea is in a sense already implemented. gdb has a variety of similar initialization options. See

https://sourceware.org/gdb/onlinedocs/gdb/gdbinit-man.html

https://sourceware.org/gdb/onlinedocs/gdb/Startup.html#Startup

https://sourceware.org/gdb/onlinedocs/gdb/System_002dwide-configuration.html#System_002dwide-configuration

https://sourceware.org/gdb/onlinedocs/gdb/System_002dwide-Configuration-Scripts.html#System_002dwide-Configuration-Scripts

The order of load precedence looks to be

1) System wide (first)
2) Account wide
3) Local working directory (last)

Maybe that order is a problem in the sense that one can't override <buildtree>/.gdbinit definitions with what's inside ~/.gdbinit. If that were the case, then it wouldn't be necessary to not-overwrite .gdbinit if it already exists. Maybe there is some way of accomplishing the same effect with one of the options in the links above.

Dan Sebald <sebald>
Mon 13 Feb 2017 03:47:17 AM UTC, comment #3:

Oh, that's why the message is worded the way it is. That "refusing to overwrite test/.gdbinit" message isn't an error, just a statement. I was thinking the goal was to overwrite the file and for some reason it was failing.

Is the .gdbinit a pre-compile or post-compile configuration? If it is post-compile, how about something similar to file octaverc? I.e., the same search rules so that the user may place something like

~/.octavegdbinit

in their root directory?

Dan Sebald <sebald>
Mon 13 Feb 2017 03:12:25 AM UTC, comment #2:

The reason for the test is to avoid wiping out someone's customized .gdbinit file. There may be a better way to do this, but the simple thing is just to avoid overwriting the file if it already exists.

John W. Eaton <jwe>
Project Administrator
Mon 13 Feb 2017 02:58:35 AM UTC, comment #1:

Bad configuration options were the fault of Octave hanging when building documentation. After a total rebuild from fresh clone, compilation builds fine.

It's also true that the error message I reported does not appear anymore. I see that '-f' means in bash:

As written, the script, i.e., "[ -f $@ ]", makes perfect sense.

Let's mark this "not-a-bug" and close.

Dan Sebald <sebald>
Sun 12 Feb 2017 04:46:35 AM UTC, original submission:

I've pulled the latest code, run ./bootstrap, run make (for which configure is re-run), and when reaching the point of documentation compiling notice the following error:

It seems that the reason for this error is that Makefile has a bad script within:

My guess is that the conditional should have something like "[ rm -f $@ ]" as opposed to just "[ -f $@ ]", which always fails.

Although, that may not quite be it, as I manually make the change from the build directory Makefile and still see a complaint, but success:

Any idea if this might be related to compilation being stuck at the last line shown? I.e., after " GEN doc/interpreter/voronoi.eps" the compilation whirls away at max CPU for the better part of an hour until I hit Cntl-C three times.

Dan Sebald <sebald>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by sebald (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 13 Feb 2017 03:12:25 AM UTCjweItem GroupMissed Error or Warning=>Build Failure
      StatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1