Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Dec 2022 18:16:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 268278] graphics/py-pygraphviz: fix build with clang 15
Message-ID:  <bug-268278-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



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