maintainer-approval requested: [Bug 256272] sysutils/py-scandir: Fails to stage on Python 3.9: error: redefinition of 'PyStructSequence_UnnamedField' with a different type: 'char *' vs 'const char *const' (breaks www/py-graphite-web) : [Attachment 225411] www/py-graphite-web: Drop dependency on sysutils/py-scandir

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 31 May 2021 15:17:32 +0000
John W. O'Brien <john_at_saltant.com> has asked freebsd-ports-bugs (Nobody)
<ports-bugs_at_FreeBSD.org> for maintainer-approval:
Bug 256272: sysutils/py-scandir: Fails to stage on Python 3.9: error:
redefinition of 'PyStructSequence_UnnamedField' with a different type: 'char *'
vs 'const char *const' (breaks www/py-graphite-web)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256272

Attachment 225411: www/py-graphite-web: Drop dependency on sysutils/py-scandir
https://bugs.freebsd.org/bugzilla/attachment.cgi?id=225411&action=edit



--- Comment #2 from John W. O'Brien <john_at_saltant.com> ---
Created attachment 225411
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=225411&action=edit
www/py-graphite-web: Drop dependency on sysutils/py-scandir

Based on static analysis, I conclude that www/py-graphite-web supports scandir
from the standard library and will preferentially use it when it is available.
Therefore, the port can unconditionally drop the dependency because it is
already limited to Python 3.5 and newer. I have reported a bug [0] and proposed
a patch [1] upstream.

sysutils/scandir should be limited to python:3.6-3.8

[0] https://github.com/graphite-project/graphite-web/issues/2705
[1] https://github.com/graphite-project/graphite-web/pull/2706
Received on Mon May 31 2021 - 15:17:32 UTC

Original text of this message