Created attachment 188506 [details] Update to 0.4. The provided patch does: * update to version 0.4; * add new dependency * add "noflavors" to USE_PYTHON. The is python:2.7 only.
(In reply to Le Baron d'Merde from comment #0) > * add "noflavors" to USE_PYTHON. The is python:2.7 only. Are you sure about that? https://github.com/owncloud/pyocclient/ says it also supports Python >= 3.5.
That fail to build with anything python:3. >>>>>>>>>>>> Traceback (most recent call last): File "<string>", line 1, in <module> File "setup.py", line 18, in <module> + '\n') File "/usr/local/lib/python3.6/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 229: ordinal not in range(128) *** Error code 1 <<<<<<<<<<<< I do not know python, but its setup.py says: 'Development Status :: 3 - Alpha' what I suppose the python:3+ status is still in alpha. Doesn't it? Thanks!
Created attachment 188524 [details] pyocclient.diff (In reply to Le Baron d'Merde from comment #2) This fixes the build for all flavors (py27, py36). I'm not sure if it works at runtime though.
(In reply to Tobias Kortkamp from comment #3) Oh, looks like upstream already fixed it in the same way: https://github.com/owncloud/pyocclient/commit/aa6b4374a779bf0f9e060117b2e8d1e810342bc8#diff-2eeaed663bd0d25b7e608891384b7298
Created attachment 188527 [details] Fixing. I got the upstream patch. I could not find the way to restrict it to build all python FLAVORS but python:3.4! Thanks!
Created attachment 188528 [details] The actual the fix. I forgot I had to add the file to svn. :) Thanks!
A commit references this bug: Author: tobik Date: Thu Dec 21 16:07:08 UTC 2017 New revision: 456914 URL: https://svnweb.freebsd.org/changeset/ports/456914 Log: www/py-pyocclient: Update to 0.4 - Allow build for Python 3.x PR: 224068 Submitted by: lbdm@privacychain.ch Approved by: che@bein.link (maintainer timeout, 2 weeks) Changes: head/www/py-pyocclient/Makefile head/www/py-pyocclient/distinfo head/www/py-pyocclient/files/ head/www/py-pyocclient/files/patch-setup.py