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 4NTK2y45Qzz4jvFc 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 4NTK2y28lCz3JwN 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: in-reply-to:in-reply-to:references:references; bh=DRIM2dxGHtcUVaDiIwdDK3BOUE9gTVIOz6jXShA6v1E=; b=LvBCfXsiQ+bGgQeIP6JLsm9lCfOHPBOdFIeVjJjjUh92hTXRyKHfI2QFOU8bnfF+BfUwuo y+XOEtBpk37GKWu2wzPpdV7FfNkG0zWHY3NQkBsNPdvsc48XMKDdDwnz3GIi/4FVGpBDJX WgzTuihinJwSOpYhIuTEiCl2pZSyK16r+mMQatQdXeq7pG2zPYAnjTdniJfERztRK2mDYS 75FNlVgGOJH1gDxLh8ISAIO8rLuiYEIlv2hBgZpSxPDGYijN4KB41J48Yiyr0vk/deSMKV pok/Y39iWbr7Hse+nPvrcRT5VUgeMspeJMrKcv51va3n0WFu2TYCWH6TTxEIlw== 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=LTGIAaIsM9YqP/sC/gGbOiAclbU2kBOtJU6e/P6ZblvBM0fAEmK/F4Ba9kIU4ucjeQZPD0 twcXqJ1Yl0ITBbuLyAA1yGssDnVQEl4jB7HUmAjwiBjFpRApgxZ3tt24jzL8gK+RQCQ/AE Fgn4epEgyM5aiE8kkFug33T7h7/yxinJ8lO65/5jK0dx+G4yMGlQXasOxngA+dHPm83y8P Y8wQ9N2HdL6+cvxUtqXmA1MRZGTyx3WOBG5VEQYP09o6DSAlishNTAoBhJfokHf5vlqXz8 nfAVxbTzyY4y3P2SidVXY/0Phd7skCZmwW2D9kRwS+NxryFTSOtLrwVl2KwZZA== 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 4NTK2y1Cqpzlll 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 2B9IGAbL062062 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 2B9IGAZL062061 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: maintainer-feedback requested: [Bug 268278] graphics/py-pygraphviz: fix build with clang 15 Date: Fri, 09 Dec 2022 18:16:10 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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 Bugzilla Automation has asked freebsd-python (Nobody) for maintainer-feedback: Bug 268278: graphics/py-pygraphviz: fix build with clang 15 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268278 --- Description --- 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= fab9 dd57e3c86