Page MenuHomeFreeBSD

Add dependency on ftp/py-pycurl
ClosedPublic

Authored by tcberner on Aug 4 2017, 7:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 13, 12:37 AM
Unknown Object (File)
Mon, Sep 22, 12:57 AM
Unknown Object (File)
Sep 15 2025, 5:45 PM
Unknown Object (File)
Sep 1 2025, 12:18 PM
Unknown Object (File)
Aug 24 2025, 11:03 PM
Unknown Object (File)
Jul 28 2025, 12:07 AM
Unknown Object (File)
Jul 26 2025, 7:46 AM
Unknown Object (File)
Jul 21 2025, 7:25 PM
Subscribers

Details

Summary

urlgrabber requires py-curl at runtime:

>>> import urlgrabber
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/urlgrabber/__init__.py", line 55, in <module>
    from grabber import urlgrab, urlopen, urlread
  File "/usr/local/lib/python2.7/site-packages/urlgrabber/grabber.py", line 532, in <module>
    import pycurl
ImportError: No module named pycurl

The issue can be seen here in the build of mythv, where the python binding is disabled because of urlgrabber failing to import in the test case:
http://beefy6.nyi.freebsd.org/data/103amd64-default/447190/logs/errors/mythtv-0.28.7_1.log

WARNING: disabling Python bindings; missing urlgrabber

See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221157

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

According to the py-urlgrabber git repo, they just removed the py-curl dependency from being needed at build time. It is still needed at run time. http://yum.baseurl.org/gitweb?p=urlgrabber.git;a=commit;h=e879aa8b7dd4f2f47ef6941ba6381a0eeafb5a13

This falls under portmgr blanket approval.

www/py-urlgrabber/Makefile
17 ↗(On Diff #31595)

That should be: RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycurl>=7.19.0_1:ftp/py-pycurl

This revision was automatically updated to reflect the committed changes.