From nobody Fri Dec 09 18:16:10 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 4NTK2y5ddpz4jvFd for ; Fri, 9 Dec 2022 18:16:10 +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 4NTK2y3PN0z3K1j for ; Fri, 9 Dec 2022 18:16:10 +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=1670609770; 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=+3vpUstU+K0pVCwS7f1s/rfACkzMbdKY3GGyJxeeGY8=; b=P7qhhxV9NXE8ZTEuGEEbo0xDMQBW6666kOEi5ZGS+ErEs4ucNrIuhcyx/yKBL7QBTGkuyz UYC/+a6Mk7akpmJpGZIgk3e83qkyOWIybVvEizaQnRK+4m+lv/eCJbWLn2au6ZP3+TYI17 IyHE5FRlJhFDuLhxjaYtMQGu+Fsfgwj6cCShMHgyueF8yPneDuqRnRBme2zakKeFgRGoCB l/r8r8VJmSa8LnBNZVj8ADO8gY2GkZ/4yPlc0yZ7KsPCVMq3fsmZSuK6HIXKxP77iOvpeA z2hSfxU7fVP2kn/pjQwHlYS0CpJ2lQzQvI3ekwad9xa2liE84OFdE+pgjfkRAg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670609770; a=rsa-sha256; cv=none; b=pWKsi/yUoi0YFyk3VTrVEGIAjoRZQye9J0q8+DtaqVnAX6BJbAygDzrwISnocNv6wv/HZ4 7SUaEsxl8eBLIZCJEcXLtXBG6XXOJClNqF+KfXARaTVzIjRVKXk9LPEq8J/untgSQatQ3S ta8MNZcr5YImciTeP/BhNedxP4fKZ13d1IcWHeA65LKdawn3EPHVQKfkFdmwF7lac5XRIh edhQCMHX2ClS2MiUiIn/gGyxwOI8JZGLzRHoJbi9YiBY3sBcOpXpSpe4R41Yb+u1p6pdUo 2bxmCnEdKv1UJAIxmf1yXyxY2IDhbRLE4XtPU+qqG26tGUgRz0HdSYKWZxKRxw== 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 4NTK2y2NNgzlHh for ; Fri, 9 Dec 2022 18:16:10 +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 2B9IGAKb062066 for ; Fri, 9 Dec 2022 18:16:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2B9IGA0V062065 for python@FreeBSD.org; Fri, 9 Dec 2022 18:16:10 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: python@FreeBSD.org Subject: [Bug 268278] graphics/py-pygraphviz: fix build with clang 15 Date: Fri, 09 Dec 2022 18:16:10 +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 Some People X-Bugzilla-Who: dim@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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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: 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 Bug ID: 268278 Summary: graphics/py-pygraphviz: fix build with clang 15 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: python@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: python@FreeBSD.org Flags: maintainer-feedback?(python@FreeBSD.org) 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 w= ith 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 --=20 You are receiving this mail because: You are the assignee for the bug.=