summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
W. Trevor King [Thu, 23 Oct 2014 22:34:26 +0000 (15:34 -0700)]
files/init.d/thumbor: Change the default port to 8888
Avoid:
Traceback (most recent call last):
File "/usr/lib/python-exec/python2.7/thumbor", line 9, in <module>
load_entry_point('thumbor==4.5.4', 'console_scripts', 'thumbor')()
File "/usr/lib64/python2.7/site-packages/thumbor/server.py", line 87, in main
server.bind(context.server.port, context.server.ip)
File "/usr/lib64/python2.7/site-packages/tornado/tcpserver.py", line 162, in bind
backlog=backlog)
File "/usr/lib64/python2.7/site-packages/tornado/netutil.py", line 90, in bind_sockets
sock.bind(sockaddr)
File "/usr/lib64/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 13] Permission denied
because port 80 is a privledged port, and it's not worth using an
additional service like authbind [1] to give us the capability to bind
to it. 8888 is unprivileged, and it's Thumbor's default [2]
[1]: http://en.wikipedia.org/wiki/Authbind
[2]: https://github.com/thumbor/thumbor/wiki/Running#-p-or---port
W. Trevor King [Thu, 23 Oct 2014 22:26:01 +0000 (15:26 -0700)]
files/init.d/thumbor: Remove --syslog option
Thumbor doesn't support syslog-logging out of the box (yet [1]).
[1]: https://github.com/thumbor/thumbor/issues/377
W. Trevor King [Thu, 23 Oct 2014 21:25:01 +0000 (14:25 -0700)]
thumbor-9999.ebuild: Hard-code OpenCV Python version
media-libs/opencv uses python-single-r1, which means it doesn't like
our ${PYTHON_USEDEP}:
emerge: there are no ebuilds built with USE flags to satisfy
"media-libs/opencv[python_targets_python2_7(-)?,-python_single_target_python2_7(-)]".
Note the '-' in front of python_single_target_python2_7. I'm not sure
what the best way to handle this is, since *without* the OpenCV
dependency, Thumbor could theoretically be installed for multiple
Python versions simultaneously. It would be nice to translate the
OpenCV ebuild to python-r1 or distutils-r1, but it ties the Python
binding config into its main CMake setup:
local mycmakeargs=(
...
$(cmake-utils_use_build python opencv_python)
...
)
That makes it hard to step in and build Python bindings for a
different version. Until someone thinks up (or tells me about) a
cleaner way to handle this, I'm just going to hardcode the
single-version we need.
W. Trevor King [Tue, 30 Sep 2014 19:10:12 +0000 (12:10 -0700)]
dev-python/thumbor: Add this image-thumbnailing service