Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Aug 2010 11:39:30 -0700 (PDT)
From:      Renato Botelho <garga@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        vsevolod@FreeBSD.org
Subject:   ports/149970: [PATCH] devel/libev: Conditionize EV_MINIMAL check
Message-ID:  <20100825183926.93298.qmail@botelhor.bplab.local>
Resent-Message-ID: <201008251920.o7PJK5LM067718@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         149970
>Category:       ports
>Synopsis:       [PATCH] devel/libev: Conditionize EV_MINIMAL check
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 25 19:20:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Renato Botelho
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
FreeBSD.org
>Environment:
System: FreeBSD botelhor.bplab.local 9.0-CURRENT FreeBSD 9.0-CURRENT #6 r211712M: Tue Aug 24 10:14:56 BRT
>Description:
Check EV_MINIMAL version just when it's defined to avoid compiler warnings

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

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- libev-3.9_1,1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/devel/libev/Makefile,v
retrieving revision 1.8
diff -u -u -r1.8 Makefile
--- Makefile	17 Aug 2010 14:28:15 -0000	1.8
+++ Makefile	25 Aug 2010 18:38:46 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	libev
 PORTVERSION=	3.9
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://dist.schmorp.de/libev/ \
@@ -20,4 +21,9 @@
 
 MAN3=		ev.3
 
+post-patch:
+	@${REINPLACE_CMD} -e 's/if EV_MINIMAL/if defined(EV_MINIMAL) \&\& EV_MINIMAL/g' \
+		${WRKSRC}/ev.h \
+		${WRKSRC}/ev++.h
+
 .include <bsd.port.mk>
--- libev-3.9_1,1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100825183926.93298.qmail>