From sunpoet@sunpoet.net  Tue Nov 11 03:41:20 2008
Return-Path: <sunpoet@sunpoet.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DBE401065678
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 Nov 2008 03:41:20 +0000 (UTC)
	(envelope-from sunpoet@sunpoet.net)
Received: from sunpoet.net (sunpoet.net [203.204.205.212])
	by mx1.freebsd.org (Postfix) with ESMTP id 980398FC14
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 Nov 2008 03:41:20 +0000 (UTC)
	(envelope-from sunpoet@sunpoet.net)
Received: by sunpoet.net (Postfix, from userid 1000)
	id 77CA41EE8; Tue, 11 Nov 2008 11:40:02 +0800 (CST)
Message-Id: <20081111034002.77CA41EE8@sunpoet.net>
Date: Tue, 11 Nov 2008 11:40:02 +0800 (CST)
From: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: flz@FreeBSD.org
Subject: [PATCH] net-p2p/rtorrent: fix build while no extra patch exists
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         128775
>Category:       ports
>Synopsis:       [PATCH] net-p2p/rtorrent: fix build while no extra patch exists
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    flz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 11 03:50:01 UTC 2008
>Closed-Date:    Sun Nov 16 22:22:37 UTC 2008
>Last-Modified:  Sun Nov 16 22:30:02 UTC 2008
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 7.1-PRERELEASE amd64
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD bonjour.sunpoet.net 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #12: Thu Sep  4 10:55:47 CST
>Description:
- Wrap EXTRA_PATCHES in case no extra patch exists

Port maintainer (flz@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:

>Fix:

--- rtorrent-0.7.9_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/net-p2p/rtorrent/Makefile /usr/ports/sunpoet/rtorrent/Makefile
--- /usr/ports/net-p2p/rtorrent/Makefile	2008-11-11 09:02:47.109126845 +0800
+++ /usr/ports/sunpoet/rtorrent/Makefile	2008-11-11 11:32:05.567783462 +0800
@@ -27,7 +27,9 @@
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-debug
 
-EXTRA_PATCHES?=	${.CURDIR}/files/stable-*
+.if exists(${FILESDIR}/stable-*)
+EXTRA_PATCHES?=	${FILESDIR}/stable-*
+.endif
 
 SUB_FILES=	pkg-message
 
diff -ruN --exclude=CVS /usr/ports/net-p2p/rtorrent-devel/Makefile /usr/ports/sunpoet/rtorrent-devel/Makefile
--- /usr/ports/net-p2p/rtorrent-devel/Makefile	2008-11-11 09:02:47.111178502 +0800
+++ /usr/ports/sunpoet/rtorrent-devel/Makefile	2008-11-11 11:30:39.542123776 +0800
@@ -24,6 +24,9 @@
 CONFLICTS=	rtorrent-[0-9]*
 
 USE_GCC=	4.2+
+
+.if exists(${.CURDIR}/files/devel-*)
 EXTRA_PATCHES=	${.CURDIR}/files/devel-*
+.endif
 
 .include "${MASTERDIR}/Makefile"
--- rtorrent-0.7.9_2.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->flz 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Nov 11 03:50:28 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: "Florent Thoumie" <flz@xbsd.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/128775
Date: Tue, 11 Nov 2008 11:43:42 +0000

 ------=_Part_94995_2042694.1226403822300
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 Can you describe the failure? It works just fine here.
 
 -- 
 Florent Thoumie
 flz@FreeBSD.org
 FreeBSD Committer
 
 ------=_Part_94995_2042694.1226403822300
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 Can you describe the failure? It works just fine here.<br clear="all"><br>-- <br>Florent Thoumie<br>flz@FreeBSD.org<br>FreeBSD Committer<br>
 
 ------=_Part_94995_2042694.1226403822300--

From: Jase Thew <bazerka@beardz.net>
To: bug-followup@FreeBSD.org, sunpoet@sunpoet.net
Cc:  
Subject: Re: ports/128775: [PATCH] net-p2p/rtorrent: fix build while no extra
 patch exists
Date: Wed, 12 Nov 2008 18:46:08 +0000

 test# uname -rms
 FreeBSD 6.3-RELEASE-p1 amd64
 
 test# ident Makefile
 Makefile:
       $FreeBSD: ports/net-p2p/rtorrent/Makefile,v 1.42 2008/11/10 
 12:09:37 flz Exp $
 
 test# make install clean
 ===>  Vulnerability check disabled, database not found
 ===>  Found saved configuration for rtorrent-0.7.9_2
 => rtorrent-0.7.9.tar.gz doesn't seem to exist in /var/ports/distfiles/.
 => Attempting to fetch from http://libtorrent.rakshasa.no/downloads/.
 rtorrent-0.7.9.tar.gz                         100% of  477 kB  257 kBps
 ===>  Extracting for rtorrent-0.7.9_2
 => MD5 Checksum OK for rtorrent-0.7.9.tar.gz.
 => SHA256 Checksum OK for rtorrent-0.7.9.tar.gz.
 ===>  Patching for rtorrent-0.7.9_2
 ===>  Applying extra patch /usr/ports/net-p2p/rtorrent/files/stable-*
 cannot open /usr/ports/net-p2p/rtorrent/files/stable-*: No such file or 
 directory
 *** Error code 2
 
 Stop in /usr/ports/net-p2p/rtorrent.
 *** Error code 1
 
 Stop in /usr/ports/net-p2p/rtorrent.
 
 test# ls -al /usr/ports/net-p2p/rtorrent/files/
 total 6
 drwxr-xr-x  2 root  wheel  512 Nov 10 20:45 .
 drwxr-xr-x  3 root  wheel  512 Nov 10 20:45 ..
 -rw-r--r--  1 root  wheel  498 Oct 20  2005 pkg-message.in
 
 After applying the provided patch, the port builds successfully.
 
 Regards,
 
 Jase.

From: Christian Bygnes <cb@intersmurf.net>
To: bug-followup@FreeBSD.org, sunpoet@sunpoet.net
Cc:  
Subject: Re: ports/128775: [PATCH] net-p2p/rtorrent: fix build while no extra
 patch exists
Date: Thu, 13 Nov 2008 23:38:11 +0100

 sorry to ask, how to i apply the patch ?
 
 /chris

From: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
To: Christian Bygnes <cb@intersmurf.net>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/128775: [PATCH] net-p2p/rtorrent: fix build while no
	extra patch exists
Date: Fri, 14 Nov 2008 10:42:39 +0800

 On Thu, Nov 13, 2008 at 11:38:11PM +0100, Christian Bygnes wrote:
 > sorry to ask, how to i apply the patch ?
 >
 > /chris
 
 Just before this patch being committed, you may build net-p2p/rtorrent using
 "make EXTRA_PATCHES=" to skip EXTRA_PATCHES explicitly.
 
 - Sunpoet
State-Changed-From-To: open->closed 
State-Changed-By: flz 
State-Changed-When: Sun Nov 16 22:22:36 UTC 2008 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/128775: commit references a PR
Date: Sun, 16 Nov 2008 22:22:21 +0000 (UTC)

 flz         2008-11-16 22:22:06 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net-p2p/libtorrent   Makefile 
     net-p2p/libtorrent-devel Makefile 
     net-p2p/rtorrent     Makefile 
     net-p2p/rtorrent-devel Makefile 
   Log:
   Only add extra patches if they are present.
   
   PR:             ports/128775 [1], ports/128807 [2], ports/128921 [3]
   Submitted by:   Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net> [1]
                   Jimmie James <jimmiejaz@gmail.com> [2]
                   Falko Richter <xendorphin@gmail.com> [3]
   
   Revision  Changes    Path
   1.21      +2 -0      ports/net-p2p/libtorrent-devel/Makefile
   1.46      +2 -0      ports/net-p2p/libtorrent/Makefile
   1.23      +3 -0      ports/net-p2p/rtorrent-devel/Makefile
   1.43      +2 -0      ports/net-p2p/rtorrent/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
