pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/49921 (Update multimedia/mpv to 0.9.2)



The following reply was made to PR pkg/49921; it has been noted by GNATS.

From: Leonardo Taccari <iamleot%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: bsiegert%NetBSD.org@localhost, adam%NetBSD.org@localhost
Subject: Re: pkg/49921 (Update multimedia/mpv to 0.9.2)
Date: Sat, 23 May 2015 18:37:00 +0200

 Hello Benny and Adam,
 Adam I have added you in cc: because it seems that you worked on this
 package in order to improve Darwin support and probably you have a
 better solution than me.
 
 bsiegert%NetBSD.org@localhost writes:
 > [...]
 > When trying to build this on Mac OS 10.10, I get the following error:
 > [ 12/232] Compiling DOCS/man/mpv.rst
 > Traceback (most recent call last):
 >   File "/usr/pkg/bin/rst2man-2.7.py", line 21, in <module>
 >     from docutils.core import publish_cmdline, default_description
 >   File "/usr/pkg/lib/python2.7/site-packages/docutils/core.py", line 20,=
  in <module>
 >     from docutils import frontend, io, utils, readers, writers
 >   File "/usr/pkg/lib/python2.7/site-packages/docutils/frontend.py", line=
  41, in <module>
 >     import docutils.utils
 >   File "/usr/pkg/lib/python2.7/site-packages/docutils/utils/__init__.py"=
 , line 20, in <module>
 >     import docutils.io
 >   File "/usr/pkg/lib/python2.7/site-packages/docutils/io.py", line 18, i=
 n <module>
 >     from docutils.utils.error_reporting import locale_encoding, ErrorStr=
 ing, ErrorOutput
 >   File "/usr/pkg/lib/python2.7/site-packages/docutils/utils/error_report=
 ing.py", line 47, in <module>
 >     locale_encoding =3D locale.getlocale()[1] or locale.getdefaultlocale=
 ()[1]
 >   File "/usr/pkg/lib/python2.7/locale.py", line 543, in getdefaultlocale
 >     return _parse_localename(localename)
 >   File "/usr/pkg/lib/python2.7/locale.py", line 475, in _parse_localenam=
 e
 >     raise ValueError, 'unknown locale: %s' % localename
 > ValueError: unknown locale: UTF-8
 > =
 
 > Waf: Leaving directory `/usr/pkgsrc/multimedia/mpv/work/mpv-0.9.2/build'
 > Build failed
 >  -> task in 'rst2man' failed (exit status 1): =
 
 > 	{task 4504363088: rst2man mpv.rst -> mpv.1}
 > ' /usr/pkg/bin/rst2man-2.7.py ../DOCS/man/mpv.rst DOCS/man/mpv.1 '
 > =
 
 > Any ideas? (full log: http://pastebin.com/UjxVDkLZ)
 I can reproduce that in this way (in order to isolate the problem...
 it seems rst2man specific) on NetBSD-current and pkgsrc-current:
 
  $ env LC_ALL=3D'UTF-8' rst2man-2.7.py
 
 After asking on #mpv on Freenode regarding that it seems a known issue
 and they pointed me to a kludge present in the homebrew formula in order
 to fix this issue (mpv-player/homebrew-mpv issue #30[0])... Maybe we can
 do something similar in pkgsrc:
 
  .if ${OPSYS} =3D=3D "Darwin"
  WAF_ENV+=3D	LC_ALL=3D"en_US.UTF-8"
  .endif
 
 ...but yes: this is a dirty hack and I would prefer to avoid it. Does
 anyone know a better solution or get similar errors with other packages
 that needs rst2man?
 
 
 Thank you for your attention!
 Ciao,
 L.
 
 
 [0]: https://github.com/mpv-player/homebrew-mpv/pull/30
 


Home | Main Index | Thread Index | Old Index