Bug 193972

Summary: multimedia/xbmc: Latest curl (7.38) breaks scrape/download
Product: Ports & Packages Reporter: Michał Jędrzejczak <mj>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Many People CC: freebsd-ports, mickael.maillot, mj, sunpoet
Priority: --- Keywords: needs-patch, needs-qa, regression
Version: LatestFlags: koobs: maintainer-feedback? (mickael.maillot)
Hardware: Any   
OS: Any   
URL: http://forum.xbmc.org/showthread.php?tid=204740
See Also: http://trac.xbmc.org/ticket/15441
Attachments:
Description Flags
patch for ftp/curl none

Description Michał Jędrzejczak 2014-09-27 12:27:34 UTC
FreeBSD 10.0 amd64. 

Xbmc with curl in version 7.38* have this errors : 

13:16:57 T:34763269120   ERROR: CCurlFile::CReadState::Connect, didn't get any data from stream.
13:16:57 T:34763269120   ERROR: Open - failed to open source <http://mirrors.xbmc.org/addons/gotham/addons.xml.md5>
13:16:59 T:34762557440   ERROR: CCurlFile::FillBuffer - Failed: Timeout was reached(28)
13:16:59 T:34762557440   ERROR: CCurlFile::CReadState::Connect, didn't get any data from stream.

After downgrade curl to version 7.37 everything with xbmc is ok. 

In this moments every new install of xbmc in FreeBSD don't work (from ports or pacages) .
Comment 1 Daniel Austin 2014-09-27 12:29:16 UTC
This isn't unique to FreeBSD either, it's reported around plenty of Linux forums too (all saying a downgrade of curl fixes the issue)
Comment 2 Michał Jędrzejczak 2014-09-27 12:42:17 UTC
Maybe if pkgng supported different versions of the software would be much easier for new users .. it was great to then write on the forums Linux "Hey FreeBSD works without a problem try :))

Regards
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2014-09-28 02:14:51 UTC
See also: https://bugs.archlinux.org/task/42001
Comment 4 mickael.maillot 2014-10-01 15:34:20 UTC
So if i understand correctly, the bug is fixed on the curl side ?
Comment 5 mickael.maillot 2014-10-05 18:42:16 UTC
Created attachment 148013 [details]
patch for ftp/curl
Comment 6 mickael.maillot 2014-10-05 18:43:52 UTC
OK so it's a simple patch for ftp/curl
simply put it in ftp/curl/files and rebuild curl.
no need to rebuild xbmc.
it fixed all fetching in my xbmc 13.2 and 14.0
Comment 7 commit-hook freebsd_committer freebsd_triage 2014-10-09 15:25:25 UTC
A commit references this bug:

Author: sunpoet
Date: Thu Oct  9 15:24:44 UTC 2014
New revision: 370549
URL: https://svnweb.freebsd.org/changeset/ports/370549

Log:
  - Fix threaded-resolver
  - Bump PORTREVISION for package change

  PR:		ports/193972
  Submitted by:	bsduser <local@o2.pl>, mickael.maillot@gmail.com
  Obtained by:	https://github.com/bagder/curl/commit/d9762a7cdb35e70f8cb0bf1c2f8019e8391616e1

Changes:
  head/ftp/curl/Makefile
  head/ftp/curl/files/patch-lib-asyn-thread.c
Comment 8 Po-Chuan Hsieh freebsd_committer freebsd_triage 2014-10-09 15:29:21 UTC
Committed. Thanks!