From nobody@FreeBSD.org  Sat Oct  5 20:28:50 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id A3C0B44F
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Oct 2013 20:28:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 8F1F0242F
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Oct 2013 20:28:50 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r95KSoiH067232
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 5 Oct 2013 20:28:50 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r95KSo4v067229;
	Sat, 5 Oct 2013 20:28:50 GMT
	(envelope-from nobody)
Message-Id: <201310052028.r95KSo4v067229@oldred.freebsd.org>
Date: Sat, 5 Oct 2013 20:28:50 GMT
From: Horia Racoviceanu <horia@racoviceanu.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Port audio/audacity tries to build the entire project with cmake [patch]
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: xxjack12xx@gmail.com

>Number:         182712
>Category:       ports
>Synopsis:       Port audio/audacity tries to build the entire project with cmake [patch]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 05 20:30:00 UTC 2013
>Closed-Date:    Sat Oct 26 03:39:34 UTC 2013
>Last-Modified:  Sat Oct 26 03:39:34 UTC 2013
>Originator:     Horia Racoviceanu
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
FreeBSD horia.lan 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep  9 21:34:37 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Main project uses gmake, one subdir uses cmake.

Cannot replace BUILD_DEPENDS=cmake with USES=cmake when libsamplerate=off
as that will try to build the entire project with cmake

===>  Performing in-source build
/bin/mkdir -p /var/ports/usr/ports/audio/audacity/work/audacity-src-2.0.4
CMake Error: The source directory "/var/ports/usr/ports/audio/audacity/work/audacity-src-2.0.4" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
*** [do-configure] Error code 1

Stop in /usr/ports/audio/audacity.
*** [build] Error code 1

Stop in /usr/ports/audio/audacity.

===>>> make failed for audio/audacity
===>>> Aborting update

===>>> Killing background jobs
Terminated
>How-To-Repeat:
cd /usr/ports/audio/audacity && make install
>Fix:
Makefile
- Change USES=cmake to BUILD_DEPENDS+=cmake:${PORTSDIR}/devel/cmake
  for libsamplerate=off

Patch attached with submission follows:

diff -ruN audacity-orig/Makefile audacity/Makefile
--- audacity-orig/Makefile	2013-10-05 16:14:55.000000000 -0400
+++ audacity/Makefile	2013-10-05 13:17:50.000000000 -0400
@@ -124,7 +124,9 @@
 LIB_DEPENDS+=		libsamplerate.so:${PORTSDIR}/audio/libsamplerate
 CONFIGURE_ARGS+=	--with-libsamplerate
 .else
-USES+=			cmake
+# main project uses gmake, one subdir uses cmake. cannot replace with USES=cmake
+# as that will try to build the entire project with cmake
+BUILD_DEPENDS+=		cmake:${PORTSDIR}/devel/cmake
 CONFIGURE_ARGS+=	--without-libsamplerate
 .endif
 


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sat Oct 5 20:30:07 UTC 2013 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

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

From: Edwin Groothuis <edwin@FreeBSD.org>
To: xxjack12xx@gmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/182712: Port audio/audacity tries to build the entire project with cmake [patch]
Date: Sat, 5 Oct 2013 20:30:07 UT

 Maintainer of audio/audacity,
 
 Please note that PR ports/182712 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/182712
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
State-Changed-From-To: feedback->closed 
State-Changed-By: danilo 
State-Changed-When: Sat Oct 26 03:39:33 UTC 2013 
State-Changed-Why:  
Deprecated by ports/183195 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182712 
>Unformatted:
