From nobody Sun Dec 18 17:44:25 2022 X-Original-To: python@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 4NZqwC044Tz1GmYt for ; Sun, 18 Dec 2022 17:44:27 +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 4NZqw95dJ8z4JwK for ; Sun, 18 Dec 2022 17:44:25 +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=1671385465; 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: in-reply-to:in-reply-to:references:references; bh=7W+brGaoUbR1ApW8nY3ePYv/z4a2xbM76pf2MwLF1bg=; b=aQs4Sd629eGdcHLWh4l4fSoE6CXF5ZbO3SczjnksHa2uVQP7Fkmsbr1IO5BRQdjs55SxM+ f20YzHp6OT4BtXrdBK2bs3VZSJJ7zD8K0cD9mqa30kaDBm9gu8zGOLzpE+QzwhipJeflC2 UUw+1vz5PzmU6xAwGxPZIlP8j+WZ8Boxc+EcgsPCCDs1uWSZIFzhQRyWpBHSgxasrjnrWd 3U4dgEekPg/WAz8sHNIbkxcyZhhemwpD3iqPrzry8K4GdPw5iV8B6QC0rTgay2R3KNnY5k 1t9ag6nh9scMco0TxsNk+NwuT9hEeUCmpnTWSfu5sRgai2dHU675NqX4entxIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671385465; a=rsa-sha256; cv=none; b=t83zbPqCfcQoZU3RnOFKTTsZ7YXUArNb+YpwAPC29qf/JmrD3TAQq4fobMvumFL/FdrOpJ dSj6KxltX5u6KuPcu+0mSar4xIRtBMsX1LfQakTvppkh63MK9vVPVlf7GRX8yL58kmCi0+ 4YV/70BJKwQ3bhpoNdqbp8S8CuP0ArpVMgcc/5Zt9v6V1ujoMsUhoGlgSuH20fTGcxvYqQ 4jqdnny+gbYyWCB/fkiBlT3lL0pqucWH5o3ilu2AefsFWgxf9G41Y8ZxDkMe2B7Zs6qXxY 3vCCrCs/j9tjkxZKLjy/TbIRI+ja+aZm42y6cCTn5R1vhrY/U5WkNTLEEA4rcA== 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 4NZqw947gbzPwm for ; Sun, 18 Dec 2022 17:44:25 +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 2BIHiPEx004817 for ; Sun, 18 Dec 2022 17:44:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BIHiPWR004816 for python@FreeBSD.org; Sun, 18 Dec 2022 17:44:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 268278] graphics/py-pygraphviz: fix build with clang 15 Date: Sun, 18 Dec 2022 17:44:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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 Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268278 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3Df2f3ab67ff127029f70393a05f2f8e5= 60d70ccb4 commit f2f3ab67ff127029f70393a05f2f8e560d70ccb4 Author: Dimitry Andric AuthorDate: 2022-12-09 17:41:55 +0000 Commit: Dimitry Andric CommitDate: 2022-12-18 17:29:15 +0000 graphics/py-pygraphviz: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that graphics/py-pygraphviz failed to build with clang 15: pygraphviz/graphviz_wrap.c:3047:12: error: incompatible pointer to integer conversion returning 'Agsym_t *' (aka 'struct Agsym_s *') from a function with result type 'int' [-Wint-conversion] return agattr(g, kind, name, val); ^~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. In graphviz.i and the swig-generated graphviz_wrap.c, the agattr_label() function is incorrectly labeled as returning 'int', while it should return 'Agsym_t *' instead. Upstream fixed this as part of a much bigger commit [1], and they also regenerated the swig wrapper. For our case, it is simpler to patch the wrapper instead, as otherwise you would have to add swig as a build-time dependency. [1] https://github.com/pygraphviz/pygraphviz/commit/79fdee178785620b90241c70a0e= fab9dd57e3c86 PR: 268278 Approved by: portmgr (tcberner) MFH: 2022Q4 .../files/patch-pygraphviz_graphviz__wrap.c (new) | 36 ++++++++++++++++++= ++++ 1 file changed, 36 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=