From nobody@FreeBSD.org  Sat Mar  8 13:39:39 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 04308BA0
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  8 Mar 2014 13:39:39 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id E54CF297
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  8 Mar 2014 13:39:38 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s28Ddcu0038491
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 8 Mar 2014 13:39:38 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s28Ddc3B038488;
	Sat, 8 Mar 2014 13:39:38 GMT
	(envelope-from nobody)
Message-Id: <201403081339.s28Ddc3B038488@cgiserv.freebsd.org>
Date: Sat, 8 Mar 2014 13:39:38 GMT
From: John Szakmeister <john@szakmeister.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: CMake's bundled libcurl is being built without ssl support
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         187374
>Category:       ports
>Synopsis:       CMake's bundled libcurl is being built without ssl support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 08 13:40:00 UTC 2014
>Closed-Date:    Sat Mar 08 23:22:51 UTC 2014
>Last-Modified:  Mon Mar 10 13:00:02 UTC 2014
>Originator:     John Szakmeister
>Release:        10
>Organization:
>Environment:
FreeBSD freebsd-10.local 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Dependencies are now being hosted more on GitHub, which uses ssl for everything--including to download archives.  Unfortunately, when using the "file(DOWNLOAD ...)" mechanism to download an archive from GitHub results in a zero-byte file and an error like:

    CMake Error at download-libuv.cmake:22 (message):
      error: downloading
      'https://github.com/joyent/libuv/archive/v0.11.21.tar.gz' failed
    
        status_code: 1
        status_string: "unsupported protocol"
        log: libcurl was built with SSL disabled, https: not supported!
    
      unsupported protocol


>How-To-Repeat:
Put this into a file (like download-libuv.cmake):

    file(DOWNLOAD
      "https://github.com/joyent/libuv/archive/v0.11.21.tar.gz"
      "/tmp/libuv/v0.11.21.tar.gz"
      SHOW_PROGRESS
      # EXPECTED_HASH;MD5=bc334c8da8618754ce9e2a4c5be73487
      # no TIMEOUT
      STATUS status
      LOG log)
    
    list(GET status 0 status_code)
    list(GET status 1 status_string)
    
    if(NOT status_code EQUAL 0)
      message(FATAL_ERROR "error: downloading 'https://github.com/joyent/libuv/archive/v0.11.21.tar.gz' failed
      status_code: ${status_code}
      status_string: ${status_string}
      log: ${log}
    ")
    endif()

Then run it with "cmake -P download-libuv.cmake".
>Fix:


>Release-Note:
>Audit-Trail:

From: John Szakmeister <john@szakmeister.net>
To: bug-followup@FreeBSD.org, john@szakmeister.net
Cc:  
Subject: Re: ports/187374: CMake&#39;s bundled libcurl is being built without
 ssl support
Date: Sat, 8 Mar 2014 08:54:37 -0500

 I should add that I installed cmake via "pkg install cmake".
 
 Thanks.
 
 -John
Responsible-Changed-From-To: freebsd-ports-bugs->kde 
Responsible-Changed-By: rakuco 
Responsible-Changed-When: Sat Mar 8 22:20:43 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187374 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/187374: commit references a PR
Date: Sat,  8 Mar 2014 23:16:55 +0000 (UTC)

 Author: rakuco
 Date: Sat Mar  8 23:16:42 2014
 New Revision: 347541
 URL: http://svnweb.freebsd.org/changeset/ports/347541
 QAT: https://qat.redports.org/buildarchive/r347541/
 
 Log:
   Enable use of OpenSSL in the bundled copy of libcurl.
   
   The default is off, which makes calls such as FILE(DOWNLOAD ...) from HTTPS
   locations fail.
   
   PR:		ports/187374
   MFH:		2014Q1
 
 Modified:
   head/devel/cmake/Makefile
   head/devel/cmake/files/InitialCache.cmake
 
 Modified: head/devel/cmake/Makefile
 ==============================================================================
 --- head/devel/cmake/Makefile	Sat Mar  8 22:51:16 2014	(r347540)
 +++ head/devel/cmake/Makefile	Sat Mar  8 23:16:42 2014	(r347541)
 @@ -3,7 +3,7 @@
  
  PORTNAME=	cmake
  PORTVERSION=	2.8.12.1
 -PORTREVISION?=	2
 +PORTREVISION?=	3
  CATEGORIES=	devel
  MASTER_SITES=	http://downloads.cmake.org/files/v2.8/
  
 
 Modified: head/devel/cmake/files/InitialCache.cmake
 ==============================================================================
 --- head/devel/cmake/files/InitialCache.cmake	Sat Mar  8 22:51:16 2014	(r347540)
 +++ head/devel/cmake/files/InitialCache.cmake	Sat Mar  8 23:16:42 2014	(r347541)
 @@ -4,3 +4,7 @@
  # devel/qt4-corelib is not).
  # See https://mail.kde.org/pipermail/kde-freebsd/2013-July/015703.html
  set(BUILD_TESTING OFF CACHE BOOL "Build the testing tree.")
 +
 +# Explicitly enable use of OpenSSL in the bundled copy of libcurl, as it
 +# defaults to off. See ports/187374.
 +set(CMAKE_USE_OPENSSL ON CACHE BOOL "Use OpenSSL code with curl.")
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: rakuco 
State-Changed-When: Sat Mar 8 23:22:50 UTC 2014 
State-Changed-Why:  
Fixed, thanks for the report. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187374 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/187374: commit references a PR
Date: Sat,  8 Mar 2014 23:35:20 +0000 (UTC)

 Author: rakuco
 Date: Sat Mar  8 23:35:13 2014
 New Revision: 347543
 URL: http://svnweb.freebsd.org/changeset/ports/347543
 QAT: https://qat.redports.org/buildarchive/r347543/
 
 Log:
   MFH: r347541
   
   Enable use of OpenSSL in the bundled copy of libcurl.
   
   The default is off, which makes calls such as FILE(DOWNLOAD ...) from HTTPS
   locations fail.
   
   PR:		ports/187374
   Approved by:	portmgr (miwi)
 
 Modified:
   branches/2014Q1/devel/cmake/Makefile
   branches/2014Q1/devel/cmake/files/InitialCache.cmake
 Directory Properties:
   branches/2014Q1/   (props changed)
 
 Modified: branches/2014Q1/devel/cmake/Makefile
 ==============================================================================
 --- branches/2014Q1/devel/cmake/Makefile	Sat Mar  8 23:24:34 2014	(r347542)
 +++ branches/2014Q1/devel/cmake/Makefile	Sat Mar  8 23:35:13 2014	(r347543)
 @@ -3,6 +3,7 @@
  
  PORTNAME=	cmake
  PORTVERSION=	2.8.12.1
 +PORTREVISION?=	1
  CATEGORIES=	devel
  MASTER_SITES=	http://downloads.cmake.org/files/v2.8/
  
 
 Modified: branches/2014Q1/devel/cmake/files/InitialCache.cmake
 ==============================================================================
 --- branches/2014Q1/devel/cmake/files/InitialCache.cmake	Sat Mar  8 23:24:34 2014	(r347542)
 +++ branches/2014Q1/devel/cmake/files/InitialCache.cmake	Sat Mar  8 23:35:13 2014	(r347543)
 @@ -4,3 +4,7 @@
  # devel/qt4-corelib is not).
  # See https://mail.kde.org/pipermail/kde-freebsd/2013-July/015703.html
  set(BUILD_TESTING OFF CACHE BOOL "Build the testing tree.")
 +
 +# Explicitly enable use of OpenSSL in the bundled copy of libcurl, as it
 +# defaults to off. See ports/187374.
 +set(CMAKE_USE_OPENSSL ON CACHE BOOL "Use OpenSSL code with curl.")
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 

From: John Szakmeister <john@szakmeister.net>
To: bug-followup@FreeBSD.org, john@szakmeister.net
Cc:  
Subject: Re: ports/187374: CMake&#39;s bundled libcurl is being built without
 ssl support
Date: Sun, 9 Mar 2014 15:44:20 -0400

 I'm not sure why it passed the ports build QA, but I can't build from
 the ports collection right now.  It's failing with:
 
 /usr/ports/devel/cmake/work/cmake-2.8.12.1/Utilities/cmcurl/multi.c:1708:11:
 error: expected parameter declarator
 CURLMcode curl_multi_socket(CURLM *multi_handle, curl_socket_t s,
           ^
 /usr/local/include/curl/multi.h:296:63: note: expanded from macro
 'curl_multi_socket'
 #define curl_multi_socket(x,y,z) curl_multi_socket_action(x,y,0,z)
                                                               ^
 /usr/ports/devel/cmake/work/cmake-2.8.12.1/Utilities/cmcurl/multi.c:1708:11:
 error: expected ')'
 /usr/local/include/curl/multi.h:296:63: note: expanded from macro
 'curl_multi_socket'
 #define curl_multi_socket(x,y,z) curl_multi_socket_action(x,y,0,z)
                                                               ^
 /usr/ports/devel/cmake/work/cmake-2.8.12.1/Utilities/cmcurl/multi.c:1708:11:
 note: to match this '('
 /usr/local/include/curl/multi.h:296:58: note: expanded from macro
 'curl_multi_socket'
 #define curl_multi_socket(x,y,z) curl_multi_socket_action(x,y,0,z)
                                                          ^
 /usr/ports/devel/cmake/work/cmake-2.8.12.1/Utilities/cmcurl/multi.c:1708:11:
 error: conflicting types for 'curl_multi_socket_action'
 CURLMcode curl_multi_socket(CURLM *multi_handle, curl_socket_t s,
           ^
 /usr/local/include/curl/multi.h:296:34: note: expanded from macro
 'curl_multi_socket'
 #define curl_multi_socket(x,y,z) curl_multi_socket_action(x,y,0,z)
                                  ^
 /usr/local/include/curl/multi.h:284:23: note: previous declaration is here
 CURL_EXTERN CURLMcode curl_multi_socket_action(CURLM *multi_handle,
                       ^
 [ 20%] Building C object
 Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/archive_entry_xattr.c.o
 /usr/ports/devel/cmake/work/cmake-2.8.12.1/Utilities/cmcurl/multi.c:1712:35:
 error: use of undeclared identifier 'running_handles'
                                   running_handles);
                                   ^
 4 errors generated.
 
 For reference, it built fine with the last recipe (but without SSL
 support), and if I comment out the CMAKE_USE_OPENSSL in the
 InitialCache.cmake, it builds fine (but again, without SSL support).
 It seems like something more is missing here. :-(
 
 -John

From: Raphael Kubo da Costa <rakuco@FreeBSD.org>
To: John Szakmeister <john@szakmeister.net>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/187374: CMake&#39; s bundled libcurl is being built without ssl support
Date: Mon, 10 Mar 2014 07:13:57 -0300

 John Szakmeister <john@szakmeister.net> writes:
 
 >  I'm not sure why it passed the ports build QA, but I can't build from
 >  the ports collection right now.  It's failing with:
 
 It was fixed by r347674 (2.8.12.1_4) -- it passed QA because this
 problem only shows up when security/openssl is installed.

From: John Szakmeister <john@szakmeister.net>
To: bug-followup@FreeBSD.org, john@szakmeister.net
Cc:  
Subject: Re: ports/187374: CMake&#39;s bundled libcurl is being built without
 ssl support
Date: Mon, 10 Mar 2014 08:57:37 -0400

 I suspected it might be something like that.  I tried the updated
 port, and it worked!  Thank you very much for taking care of this.
 
 -John
>Unformatted:
