ports/182446: [maintainer] [patch] databases/pgbouncer : switch to libevent2
Mikhail T.
m.tsatsenko at gmail.com
Fri Sep 27 19:40:00 UTC 2013
>Number: 182446
>Category: ports
>Synopsis: [maintainer] [patch] databases/pgbouncer : switch to libevent2
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 27 19:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Mikhail T.
>Release:
>Organization:
>Environment:
>Description:
- Switch to libevent2
- Bump PORTREVISION
- Pet portlint
Build logs:
https://redports.org/~mtsatsenko/20130927151417-02046-147565/pgbouncer-1.5.4_1.log
https://redports.org/~mtsatsenko/20130927151417-02046-147566/pgbouncer-1.5.4_1.log
https://redports.org/~mtsatsenko/20130927151417-02046-147567/pgbouncer-1.5.4_1.log
https://redports.org/~mtsatsenko/20130927151417-02046-147567/pgbouncer-1.5.4_1.log
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: Makefile
===================================================================
--- Makefile (revision 328507)
+++ Makefile (working copy)
@@ -3,6 +3,7 @@
PORTNAME= pgbouncer
PORTVERSION= 1.5.4
+PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://pgfoundry.org/frs/download.php/3393/
@@ -11,7 +12,7 @@
LICENSE= BSD
-LIB_DEPENDS= event-1.4:${PORTSDIR}/devel/libevent
+LIB_DEPENDS= event-2:${PORTSDIR}/devel/libevent2
PORTSCOUT= site:http://pgfoundry.org/frs/?group_id=1000258
@@ -29,7 +30,7 @@
MAN5= pgbouncer.5
.endif
-CONFIGURE_ARGS= --with-libevent=${LOCALBASE}
+CONFIGURE_ARGS= --with-libevent=${LOCALBASE} --enable-evdns
CONFIGURE_ENV+= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
PTHREAD_LIBS=${PTHREAD_LIBS}
Index: files/patch-configure
===================================================================
--- files/patch-configure (revision 0)
+++ files/patch-configure (working copy)
@@ -0,0 +1,14 @@
+--- configure.orig 2012-11-28 17:11:13.000000000 +0400
++++ configure 2013-09-25 23:54:23.465994180 +0400
+@@ -6332,8 +6332,8 @@
+ levent=yes
+ else
+ levent=yes
+- CPPFLAGS="$CPPFLAGS -I$withval/include"
+- LDFLAGS="$LDFLAGS -L$withval/lib"
++ CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/include/event2/compat"
++ LDFLAGS="$LDFLAGS -L$withval/lib/event2"
+ fi
+
+ fi
+
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list