From nobody Thu Mar 16 21:28:52 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Pd0kX5Hddz3ycQy for ; Thu, 16 Mar 2023 21:28:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pd0kX4FqLz4Mkh for ; Thu, 16 Mar 2023 21:28:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679002132; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=d3NWnSrXRZBhc8RyjpB8PQVkdRCtNtVmaIgR06JQLmU=; b=ji0kJAYDpkO/q+cgKIU4AunM/zv65y67NKK2aRZ/gT+erAqDARAMmsu6i3Exf/WZoHKjMa XL44b9mxIgCqC0ig+2bpo2iCYTje6w40kOcjfd5LNFJLHlSDb/vC4Mm2TDdoLX006q15LO 7DKGziv8gmPe+CIHQQsXLesf0MUbFK90pf0Btdu7x88sKtju0fkbqBOML8cbSISmQgs1YB oJDgBQXY0O7BqLWwUG/JoK6Bg+wszQ0k7GLhS5cRlCxNhUBDLC+Bc4sz8VxW+kSnT8Pw0d MGBpEI5OYt1KgaVfeHJD+k+BoCl8zh5PCScwGelQKWC7cuZ9tRd+NcLa/jpDrQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679002132; a=rsa-sha256; cv=none; b=mSEvXsH6e5i7muoonLgDDCeEwnrD0mTMDmh8vIbwwqynLhyuffMkckdnEOV1wK8+l1/4JI Yp0KPlDySKoB7N82twCNNv2pSyGYDbLdiFik2tYvxI0kuf9R6f9JOK23qFVw7DA52tMoQI MhLjy7/QlRZtW4KWyPX5U0lFawzy68sF5glphnPnG/Hm95MGdZHtaFoyw1Xk+uhbXhB957 afMB0Dn4AacIP8xA0Ph86vDyL3W5Mc/sK8QmJw8dKa8sDb0BtzHIlUkdNnkI8//ZvtTOCh 3mNVVwSRCIHYUNVvzmklGq9p5GurMKtC/thj4PJDx+uT5mmad87aKJA4WA5FwA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Pd0kX39KZz101D for ; Thu, 16 Mar 2023 21:28:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 32GLSqI7015602 for ; Thu, 16 Mar 2023 21:28:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 32GLSqIL015600 for ports-bugs@FreeBSD.org; Thu, 16 Mar 2023 21:28:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 270273] cad/kicad: Fix kicad-cli Date: Thu, 16 Mar 2023 21:28:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: porsolic@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: cmt@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N 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.=