Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Mar 2023 21:28:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 270273] cad/kicad: Fix kicad-cli
Message-ID:  <bug-270273-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270273

            Bug ID: 270273
           Summary: cad/kicad: Fix kicad-cli
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: cmt@freebsd.org
          Reporter: porsolic@gmail.com
             Flags: maintainer-feedback?(cmt@freebsd.org)
          Assignee: cmt@freebsd.org

Created attachment 240904
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D240904&action=
=3Dedit
patch

Patch which enables kicad-cli to work as expected.

Otherwise kicad-cli won't crash, but it will return 2 (which is enum
CLI::EXIT_CODES::ERR_UNKNOWN) and won't work, e.g.:
% kicad-cli sch export pdf file.kicad_sch -o file.pdf
zsh: exit 2     kicad-cli sch export pdf file.kicad_sch -o file.pdf
% echo $?
2

After some debugging, it was found that variable aPdfJob after dynamic_cast
will be NULL. After changing to static_cast variable has normal address.

Tested on FreeBSD -STABLE and -CURRENT and it works - kicad-cli returns 0 a=
nd
exports sch/pcb to PDF.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270273-7788>