Re: git: ba7383ebfaf6 - main - multimedia/gstreamer1-editing-services: limit supported python version

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Sat, 11 Jun 2022 13:00:39 UTC
Am 11.06.22 um 14:18 schrieb Charlie Li:
> Matthias Andree wrote:
>>
>> Am 22.03.22 um 20:47 schrieb Dmitry Marakasov:
>>> -USES=        compiler:c11 gmake gnome libtool pathfix perl5 
>>> python:3.6+ pkgconfig tar:xz
>>> +USES=        compiler:c11 gmake gnome libtool pathfix perl5 
>>> python:3.6-3.9 pkgconfig tar:xz
>>>   USE_LDCONFIG=    yes
>>>   USE_PERL5=    build
>>>   GNU_CONFIGURE=    yes
>>
>> Why, what breaks with Python 3.10?
> autotools doesn't handle Python 3.10 detection properly. Not really 
> worth patching since meson exists side-by-side in this release series 
> (1.16) and autotools has been completely removed in the latest upstream 
> release series (1.20).
> 

+ multimedia@

Oh, and it picks up python2.7 when building the port in a practical 
system that still has it (mine does) so it's broken anyways.

That can't be right.

> checking whether to build gtk-doc documentation... no
> configure: Looking for Python version >= 2.1
> checking for python... no
> checking for python2.2... no
> checking for python2.1... no
> checking for python2.0... no
> checking for python2... /usr/local/bin/python2
> checking "/usr/local/bin/python2":... okay
> checking local Python configuration... looks good
> checking for python version... 2.7
> checking for python platform... freebsd13
> checking for python script directory... ${prefix}/lib/python2.7/site-packages
> checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
> checking whether to build plugin documentation... no (gtk-doc disabled or not available)
> checking for PYGOBJECT... yes
> checking for GST_VALIDATE... no
[...]
> ===> Checking for items in STAGEDIR missing from pkg-plist
> Error: Orphaned: lib/python2.7/site-packages/gstreamer-editing-services/GES.py
> Error: Orphaned: lib/python2.7/site-packages/gstreamer-editing-services/GES.pyc
> Error: Orphaned: lib/python2.7/site-packages/gstreamer-editing-services/GES.pyo
> ===> Checking for items in pkg-plist which are not in STAGEDIR
> Error: Missing: %%PYTHON_SITELIBDIR%%/gstreamer-editing-services/GES.py
> Error: Missing: %%PYTHON_SITELIBDIR%%/gstreamer-editing-services/__pycache__/GES%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
> Error: Missing: %%PYTHON_SITELIBDIR%%/gstreamer-editing-services/__pycache__/GES%%PYTHON_EXT_SUFFIX%%.pyc
> ===> Error: Plist issues found.

I have a patch that I am testing.

If it fixes 3.10 along the way I will commit it with lifting the ban on 
 >= 3.10.

TTYL