[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-bug: [Bug 810202] Re: gnetlist bom trips on missing attrib file



A commit was made which affects this bug
git master commit fde0b77b96ef92d5e220dafeb31c92c03f7df0bf
http://git.gpleda.org/?p=gaf.git;a=commit;h=fde0b77b96ef92d5e220dafeb31c92c03f7df0bf

commit fde0b77b96ef92d5e220dafeb31c92c03f7df0bf
Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
Commit: Peter TB Brett <peter@xxxxxxxxxxxxx>

    gnetlist: Regenerate `bom' and `bom2' test results.
    
    In commit 76bc345ee043, the `bom' and `bom2' backends were modified to
    be more informative about attribute list specifications.  As a
    side-effect of this work, the backend options for these backends are
    now much more strictly validated.  Tests which pass `-O include_mode'
    or `-O sort_mode' to gnetlist therefore now fail for the BOM backends,
    and this patch updates the golden files appropriately.
    
    Affects-bug: lp-810202
    Reported-by: Dan McMahill <dan@xxxxxxxxxxxx>

-- 
You received this bug notification because you are a member of gEDA Bug
Team, which is subscribed to gEDA.
https://bugs.launchpad.net/bugs/810202

Title:
  gnetlist bom trips on missing attrib file

Status in GPL Electronic Design Automation tools:
  Fix Committed

Bug description:
  (as reported to geda-user by Girvin R. Herr)

  If there is no attribs file around, the backends bom and bom2 crash
  with an irritating error message on the command line:

  /---------------------------------------
  $gnetlist -g bom xx.sch
      Loading schematic
      [/home/gherr/projects/vds160/original/hardware/dac/docs/xx.sch]
      Backtrace:
      In current input:
          1: 0* [bom "output.net"]
      In /usr/local/share/gEDA/scheme/gnet-bom.scm:
         37: 1  (let ((port #) (attriblist #)) (bom:printlist (cons #
      attriblist) port) ...)
         40: 2* [bom:parseconfig ...
         40: 3*  [open-input-file "attribs"]
      In unknown file:
          ?: 4   [open-file "attribs" "r"]

  
      <unnamed port>: In procedure open-file in expression (open-file str
      OPEN_READ):
      <unnamed port>: No such file or directory: "attribs"
  \-------------------------------

  Suggestions:
  1) Check for the existence of the attribs file. 

  2a) Issue a newbie friendly message, if not.

  2b)  produce a sensible default attribs file on the fly.

  3) accept a file name on the command line, so you can have different
  attribs files for the same project

  4) accept a string on the command line to replace the contents of the
  attribs file

  ---<)kaimartin(>---

To manage notifications about this bug go to:
https://bugs.launchpad.net/geda/+bug/810202/+subscriptions


_______________________________________________
geda-bug mailing list
geda-bug@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-bug